fish: Link to virt-inspector from guestfish man page.
[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.11\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-11-19 22:30+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 ../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-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 ../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-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 ../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-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 ../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-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:957 ../src/guestfs.pod:961 ../src/guestfs.pod:965 ../src/guestfs.pod:970 ../src/guestfs.pod:978 ../src/guestfs.pod:997 ../src/guestfs.pod:1005 ../src/guestfs.pod:1027 ../src/guestfs.pod:1031 ../src/guestfs.pod:1035 ../src/guestfs.pod:1039 ../src/guestfs.pod:1043 ../src/guestfs.pod:1047 ../src/guestfs.pod:1529 ../src/guestfs.pod:1534 ../src/guestfs.pod:1538 ../src/guestfs.pod:1648 ../src/guestfs.pod:1653 ../src/guestfs.pod:1657 ../src/guestfs.pod:2001 ../src/guestfs.pod:2007 ../src/guestfs.pod:2012 ../src/guestfs.pod:2018 ../src/guestfs.pod:2125 ../src/guestfs.pod:2129 ../src/guestfs.pod:2133 ../src/guestfs.pod:2137 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577 ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591 ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599 ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775 ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785 ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:376 ../fish/guestfish.pod:380 ../fish/guestfish.pod:384 ../fish/guestfish.pod:388 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375 ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075 ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087 ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095 ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109 ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203 ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259 ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268 ../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.  For information about other security issues, "
822 "see L</SECURITY>."
823 msgstr ""
824
825 # type: textblock
826 #: ../src/guestfs.pod:412
827 msgid ""
828 "The two main API calls to run commands are L</guestfs_command> and "
829 "L</guestfs_sh> (there are also variations)."
830 msgstr ""
831
832 # type: textblock
833 #: ../src/guestfs.pod:415
834 msgid ""
835 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
836 "shell globs, redirections, etc will work."
837 msgstr ""
838
839 # type: =head2
840 #: ../src/guestfs.pod:418
841 msgid "CONFIGURATION FILES"
842 msgstr ""
843
844 # type: textblock
845 #: ../src/guestfs.pod:420
846 msgid ""
847 "To read and write configuration files in Linux guest filesystems, we "
848 "strongly recommend using Augeas.  For example, Augeas understands how to "
849 "read and write, say, a Linux shadow password file or X.org configuration "
850 "file, and so avoids you having to write that code."
851 msgstr ""
852
853 # type: textblock
854 #: ../src/guestfs.pod:425
855 msgid ""
856 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
857 "document Augeas itself here because there is excellent documentation on the "
858 "L<http://augeas.net/> website."
859 msgstr ""
860
861 # type: textblock
862 #: ../src/guestfs.pod:429
863 msgid ""
864 "If you don't want to use Augeas (you fool!) then try calling "
865 "L</guestfs_read_lines> to get the file as a list of lines which you can "
866 "iterate over."
867 msgstr ""
868
869 # type: =head2
870 #: ../src/guestfs.pod:433
871 msgid "SELINUX"
872 msgstr ""
873
874 # type: textblock
875 #: ../src/guestfs.pod:435
876 msgid ""
877 "We support SELinux guests.  To ensure that labeling happens correctly in "
878 "SELinux guests, you need to enable SELinux and load the guest's policy:"
879 msgstr ""
880
881 # type: =item
882 #: ../src/guestfs.pod:441 ../src/guestfs.pod:1150 ../src/guestfs.pod:1281
883 msgid "1."
884 msgstr ""
885
886 # type: textblock
887 #: ../src/guestfs.pod:443
888 msgid "Before launching, do:"
889 msgstr ""
890
891 # type: verbatim
892 #: ../src/guestfs.pod:445
893 #, no-wrap
894 msgid ""
895 " guestfs_set_selinux (g, 1);\n"
896 "\n"
897 msgstr ""
898
899 # type: =item
900 #: ../src/guestfs.pod:447 ../src/guestfs.pod:1154 ../src/guestfs.pod:1285
901 msgid "2."
902 msgstr ""
903
904 # type: textblock
905 #: ../src/guestfs.pod:449
906 msgid ""
907 "After mounting the guest's filesystem(s), load the policy.  This is best "
908 "done by running the L<load_policy(8)> command in the guest itself:"
909 msgstr ""
910
911 # type: verbatim
912 #: ../src/guestfs.pod:453
913 #, no-wrap
914 msgid ""
915 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
916 "\n"
917 msgstr ""
918
919 # type: textblock
920 #: ../src/guestfs.pod:455
921 msgid ""
922 "(Older versions of C<load_policy> require you to specify the name of the "
923 "policy file)."
924 msgstr ""
925
926 # type: =item
927 #: ../src/guestfs.pod:458 ../src/guestfs.pod:1291
928 msgid "3."
929 msgstr ""
930
931 # type: textblock
932 #: ../src/guestfs.pod:460
933 msgid ""
934 "Optionally, set the security context for the API.  The correct security "
935 "context to use can only be known by inspecting the guest.  As an example:"
936 msgstr ""
937
938 # type: verbatim
939 #: ../src/guestfs.pod:464
940 #, no-wrap
941 msgid ""
942 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
943 "\n"
944 msgstr ""
945
946 # type: textblock
947 #: ../src/guestfs.pod:468
948 msgid "This will work for running commands and editing existing files."
949 msgstr ""
950
951 # type: textblock
952 #: ../src/guestfs.pod:470
953 msgid ""
954 "When new files are created, you may need to label them explicitly, for "
955 "example by running the external command C<restorecon pathname>."
956 msgstr ""
957
958 # type: =head2
959 #: ../src/guestfs.pod:474
960 msgid "UMASK"
961 msgstr ""
962
963 # type: textblock
964 #: ../src/guestfs.pod:476
965 msgid ""
966 "Certain calls are affected by the current file mode creation mask (the "
967 "\"umask\").  In particular ones which create files or directories, such as "
968 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
969 "either the default mode that the file is created with or modifies the mode "
970 "that you supply."
971 msgstr ""
972
973 # type: textblock
974 #: ../src/guestfs.pod:482
975 msgid ""
976 "The default umask is C<022>, so files are created with modes such as C<0644> "
977 "and directories with C<0755>."
978 msgstr ""
979
980 # type: textblock
981 #: ../src/guestfs.pod:485
982 msgid ""
983 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
984 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
985 "L</guestfs_chmod> after creating each file or directory."
986 msgstr ""
987
988 # type: textblock
989 #: ../src/guestfs.pod:489
990 msgid "For more information about umask, see L<umask(2)>."
991 msgstr ""
992
993 # type: =head1
994 #: ../src/guestfs.pod:491 ../fish/guestfish.pod:669
995 msgid "ENCRYPTED DISKS"
996 msgstr ""
997
998 # type: textblock
999 #: ../src/guestfs.pod:493
1000 msgid ""
1001 "Libguestfs allows you to access Linux guests which have been encrypted using "
1002 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1003 "standard.  This includes nearly all whole disk encryption systems used by "
1004 "modern Linux guests."
1005 msgstr ""
1006
1007 # type: textblock
1008 #: ../src/guestfs.pod:499
1009 msgid ""
1010 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1011 "returns the string C<crypto_LUKS>)."
1012 msgstr ""
1013
1014 # type: textblock
1015 #: ../src/guestfs.pod:502
1016 msgid ""
1017 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1018 "will require the passphrase!"
1019 msgstr ""
1020
1021 # type: textblock
1022 #: ../src/guestfs.pod:505
1023 msgid ""
1024 "Opening a LUKS device creates a new device mapper device called "
1025 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1026 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1027 "decrypted from and encrypted to the underlying block device respectively."
1028 msgstr ""
1029
1030 # type: textblock
1031 #: ../src/guestfs.pod:511
1032 msgid ""
1033 "LVM volume groups on the device can be made visible by calling "
1034 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1035 "volume(s) can now be mounted in the usual way."
1036 msgstr ""
1037
1038 # type: textblock
1039 #: ../src/guestfs.pod:515
1040 msgid ""
1041 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1042 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1043 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1044 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1045 "underlying encrypted block device)."
1046 msgstr ""
1047
1048 # type: =head2
1049 #: ../src/guestfs.pod:522
1050 msgid "INSPECTION"
1051 msgstr ""
1052
1053 # type: textblock
1054 #: ../src/guestfs.pod:524
1055 msgid ""
1056 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1057 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1058 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1059 "frequently used part of this library has been rewritten in C and moved into "
1060 "the core code)."
1061 msgstr ""
1062
1063 # type: textblock
1064 #: ../src/guestfs.pod:530
1065 msgid ""
1066 "Add all disks belonging to the unknown virtual machine and call "
1067 "L</guestfs_launch> in the usual way."
1068 msgstr ""
1069
1070 # type: textblock
1071 #: ../src/guestfs.pod:533
1072 msgid ""
1073 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1074 "and certain heuristics, and returns a list of operating systems that were "
1075 "found.  An empty list means none were found.  A single element is the root "
1076 "filesystem of the operating system.  For dual- or multi-boot guests, "
1077 "multiple roots can be returned, each one corresponding to a separate "
1078 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1079 "world of virtualization, but since this scenario can happen, we have built "
1080 "libguestfs to deal with it.)"
1081 msgstr ""
1082
1083 # type: textblock
1084 #: ../src/guestfs.pod:542
1085 msgid ""
1086 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1087 "to get additional details about that operating system.  For example, call "
1088 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1089 "Windows and Linux-based operating systems respectively."
1090 msgstr ""
1091
1092 # type: textblock
1093 #: ../src/guestfs.pod:548
1094 msgid ""
1095 "Un*x-like and Linux-based operating systems usually consist of several "
1096 "filesystems which are mounted at boot time (for example, a separate boot "
1097 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1098 "filesystems correspond to mount points.  Call "
1099 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1100 "hash table like this example:"
1101 msgstr ""
1102
1103 # type: verbatim
1104 #: ../src/guestfs.pod:555
1105 #, no-wrap
1106 msgid ""
1107 " /boot => /dev/sda1\n"
1108 " /     => /dev/vg_guest/lv_root\n"
1109 " /usr  => /dev/vg_guest/lv_usr\n"
1110 "\n"
1111 msgstr ""
1112
1113 # type: textblock
1114 #: ../src/guestfs.pod:559
1115 msgid ""
1116 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1117 "filesystems as suggested."
1118 msgstr ""
1119
1120 # type: textblock
1121 #: ../src/guestfs.pod:562
1122 msgid ""
1123 "Be careful to mount filesystems in the right order (eg. C</> before "
1124 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1125 "work."
1126 msgstr ""
1127
1128 # type: textblock
1129 #: ../src/guestfs.pod:566
1130 msgid ""
1131 "Inspection currently only works for some common operating systems.  "
1132 "Contributors are welcome to send patches for other operating systems that we "
1133 "currently cannot detect."
1134 msgstr ""
1135
1136 # type: textblock
1137 #: ../src/guestfs.pod:570
1138 msgid ""
1139 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1140 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1141 "encrypted devices."
1142 msgstr ""
1143
1144 # type: textblock
1145 #: ../src/guestfs.pod:574
1146 msgid ""
1147 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1148 "inspection and caches the results in the guest handle.  Subsequent calls to "
1149 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1150 "re-read the disks.  If you change the content of the guest disks, you can "
1151 "redo inspection by calling L</guestfs_inspect_os> again.  "
1152 "(L</guestfs_inspect_list_applications> works a little differently from the "
1153 "other calls and does read the disks.  See documentation for that function "
1154 "for details)."
1155 msgstr ""
1156
1157 # type: =head2
1158 #: ../src/guestfs.pod:583
1159 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1160 msgstr ""
1161
1162 # type: textblock
1163 #: ../src/guestfs.pod:585
1164 msgid ""
1165 "Libguestfs can mount NTFS partitions.  It does this using the "
1166 "L<http://www.ntfs-3g.org/> driver."
1167 msgstr ""
1168
1169 # type: textblock
1170 #: ../src/guestfs.pod:588
1171 msgid ""
1172 "DOS and Windows still use drive letters, and the filesystems are always "
1173 "treated as case insensitive by Windows itself, and therefore you might find "
1174 "a Windows configuration file referring to a path like "
1175 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1176 "that directory might be referred to as C</WINDOWS/System32>."
1177 msgstr ""
1178
1179 # type: textblock
1180 #: ../src/guestfs.pod:594
1181 msgid ""
1182 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1183 "libguestfs to read the appropriate Windows Registry and configuration files, "
1184 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1185 "L<virt-inspector(1)>)."
1186 msgstr ""
1187
1188 # type: textblock
1189 #: ../src/guestfs.pod:599
1190 msgid ""
1191 "Replacing backslash characters with forward slash characters is also outside "
1192 "the scope of libguestfs, but something that you can easily do."
1193 msgstr ""
1194
1195 # type: textblock
1196 #: ../src/guestfs.pod:602
1197 msgid ""
1198 "Where we can help is in resolving the case insensitivity of paths.  For "
1199 "this, call L</guestfs_case_sensitive_path>."
1200 msgstr ""
1201
1202 # type: textblock
1203 #: ../src/guestfs.pod:605
1204 msgid ""
1205 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1206 "files, through the library C<hivex> which is part of the libguestfs project "
1207 "although ships as a separate tarball.  You have to locate and download the "
1208 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1209 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1210 "L<virt-win-reg(1)> for more help on this issue."
1211 msgstr ""
1212
1213 # type: =head2
1214 #: ../src/guestfs.pod:613
1215 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1216 msgstr ""
1217
1218 # type: textblock
1219 #: ../src/guestfs.pod:615
1220 msgid ""
1221 "Although we don't want to discourage you from using the C API, we will "
1222 "mention here that the same API is also available in other languages."
1223 msgstr ""
1224
1225 # type: textblock
1226 #: ../src/guestfs.pod:618
1227 msgid ""
1228 "The API is broadly identical in all supported languages.  This means that "
1229 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1230 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1231 "words, a straightforward, predictable isomorphism between each language."
1232 msgstr ""
1233
1234 # type: textblock
1235 #: ../src/guestfs.pod:624
1236 msgid ""
1237 "Error messages are automatically transformed into exceptions if the language "
1238 "supports it."
1239 msgstr ""
1240
1241 # type: textblock
1242 #: ../src/guestfs.pod:627
1243 msgid ""
1244 "We don't try to \"object orientify\" parts of the API in OO languages, "
1245 "although contributors are welcome to write higher level APIs above what we "
1246 "provide in their favourite languages if they wish."
1247 msgstr ""
1248
1249 # type: =item
1250 #: ../src/guestfs.pod:633
1251 msgid "B<C++>"
1252 msgstr ""
1253
1254 # type: textblock
1255 #: ../src/guestfs.pod:635
1256 msgid ""
1257 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1258 "identical to the C API.  C++ classes and exceptions are not used."
1259 msgstr ""
1260
1261 # type: =item
1262 #: ../src/guestfs.pod:639
1263 msgid "B<C#>"
1264 msgstr ""
1265
1266 # type: textblock
1267 #: ../src/guestfs.pod:641
1268 msgid ""
1269 "The C# bindings are highly experimental.  Please read the warnings at the "
1270 "top of C<csharp/Libguestfs.cs>."
1271 msgstr ""
1272
1273 # type: =item
1274 #: ../src/guestfs.pod:644
1275 msgid "B<Haskell>"
1276 msgstr ""
1277
1278 # type: textblock
1279 #: ../src/guestfs.pod:646
1280 msgid ""
1281 "This is the only language binding that is working but incomplete.  Only "
1282 "calls which return simple integers have been bound in Haskell, and we are "
1283 "looking for help to complete this binding."
1284 msgstr ""
1285
1286 # type: =item
1287 #: ../src/guestfs.pod:650
1288 msgid "B<Java>"
1289 msgstr ""
1290
1291 # type: textblock
1292 #: ../src/guestfs.pod:652
1293 msgid ""
1294 "Full documentation is contained in the Javadoc which is distributed with "
1295 "libguestfs."
1296 msgstr ""
1297
1298 # type: =item
1299 #: ../src/guestfs.pod:655
1300 msgid "B<OCaml>"
1301 msgstr ""
1302
1303 # type: textblock
1304 #: ../src/guestfs.pod:657
1305 msgid "For documentation see the file C<guestfs.mli>."
1306 msgstr ""
1307
1308 # type: =item
1309 #: ../src/guestfs.pod:659
1310 msgid "B<Perl>"
1311 msgstr ""
1312
1313 # type: textblock
1314 #: ../src/guestfs.pod:661
1315 msgid "For documentation see L<Sys::Guestfs(3)>."
1316 msgstr ""
1317
1318 # type: =item
1319 #: ../src/guestfs.pod:663
1320 msgid "B<PHP>"
1321 msgstr ""
1322
1323 # type: textblock
1324 #: ../src/guestfs.pod:665
1325 msgid ""
1326 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1327 "the php-libguestfs package for your distribution."
1328 msgstr ""
1329
1330 # type: textblock
1331 #: ../src/guestfs.pod:668
1332 msgid "The PHP binding only works correctly on 64 bit machines."
1333 msgstr ""
1334
1335 # type: =item
1336 #: ../src/guestfs.pod:670
1337 msgid "B<Python>"
1338 msgstr ""
1339
1340 # type: textblock
1341 #: ../src/guestfs.pod:672
1342 msgid "For documentation do:"
1343 msgstr ""
1344
1345 # type: verbatim
1346 #: ../src/guestfs.pod:674
1347 #, no-wrap
1348 msgid ""
1349 " $ python\n"
1350 " >>> import guestfs\n"
1351 " >>> help (guestfs)\n"
1352 "\n"
1353 msgstr ""
1354
1355 # type: =item
1356 #: ../src/guestfs.pod:678
1357 msgid "B<Ruby>"
1358 msgstr ""
1359
1360 # type: textblock
1361 #: ../src/guestfs.pod:680
1362 msgid ""
1363 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1364 "can find examples written in Ruby in the libguestfs source."
1365 msgstr ""
1366
1367 # type: =item
1368 #: ../src/guestfs.pod:683
1369 msgid "B<shell scripts>"
1370 msgstr ""
1371
1372 # type: textblock
1373 #: ../src/guestfs.pod:685
1374 msgid "For documentation see L<guestfish(1)>."
1375 msgstr ""
1376
1377 # type: =head2
1378 #: ../src/guestfs.pod:689
1379 msgid "LIBGUESTFS GOTCHAS"
1380 msgstr ""
1381
1382 # type: textblock
1383 #: ../src/guestfs.pod:691
1384 msgid ""
1385 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1386 "system [...] that works in the way it is documented but is counterintuitive "
1387 "and almost invites mistakes.\""
1388 msgstr ""
1389
1390 # type: textblock
1391 #: ../src/guestfs.pod:695
1392 msgid ""
1393 "Since we developed libguestfs and the associated tools, there are several "
1394 "things we would have designed differently, but are now stuck with for "
1395 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1396 "release, you can expect these to change.  Beware of them."
1397 msgstr ""
1398
1399 # type: =item
1400 #: ../src/guestfs.pod:703
1401 msgid "Autosync / forgetting to sync."
1402 msgstr ""
1403
1404 # type: textblock
1405 #: ../src/guestfs.pod:705
1406 msgid ""
1407 "When modifying a filesystem from C or another language, you B<must> unmount "
1408 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1409 "libguestfs handle.  You can also call:"
1410 msgstr ""
1411
1412 # type: verbatim
1413 #: ../src/guestfs.pod:709
1414 #, no-wrap
1415 msgid ""
1416 " guestfs_set_autosync (g, 1);\n"
1417 "\n"
1418 msgstr ""
1419
1420 # type: textblock
1421 #: ../src/guestfs.pod:711
1422 msgid ""
1423 "to have the unmount/sync done automatically for you when the handle 'g' is "
1424 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1425 "q.v.)"
1426 msgstr ""
1427
1428 # type: textblock
1429 #: ../src/guestfs.pod:715
1430 msgid ""
1431 "If you forget to do this, then it is entirely possible that your changes "
1432 "won't be written out, or will be partially written, or (very rarely) that "
1433 "you'll get disk corruption."
1434 msgstr ""
1435
1436 # type: textblock
1437 #: ../src/guestfs.pod:719
1438 msgid ""
1439 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1440 "guestfish scripts that forget to sync will work just fine, which can make "
1441 "this very puzzling if you are trying to debug a problem."
1442 msgstr ""
1443
1444 # type: textblock
1445 #: ../src/guestfs.pod:723
1446 msgid ""
1447 "Update: Autosync is enabled by default for all API users starting from "
1448 "libguestfs 1.5.24."
1449 msgstr ""
1450
1451 # type: =item
1452 #: ../src/guestfs.pod:726
1453 msgid "Mount option C<-o sync> should not be the default."
1454 msgstr ""
1455
1456 # type: textblock
1457 #: ../src/guestfs.pod:728
1458 msgid ""
1459 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1460 "However C<-o sync> does not add any reliability benefit, but does have a "
1461 "very large performance impact."
1462 msgstr ""
1463
1464 # type: textblock
1465 #: ../src/guestfs.pod:732
1466 msgid ""
1467 "The work around is to use L</guestfs_mount_options> and set the mount "
1468 "options that you actually want to use."
1469 msgstr ""
1470
1471 # type: =item
1472 #: ../src/guestfs.pod:735
1473 msgid "Read-only should be the default."
1474 msgstr ""
1475
1476 # type: textblock
1477 #: ../src/guestfs.pod:737
1478 msgid ""
1479 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1480 "specify I<--rw> if you want to make changes to the image."
1481 msgstr ""
1482
1483 # type: textblock
1484 #: ../src/guestfs.pod:740
1485 msgid "This would reduce the potential to corrupt live VM images."
1486 msgstr ""
1487
1488 # type: textblock
1489 #: ../src/guestfs.pod:742
1490 msgid ""
1491 "Note that many filesystems change the disk when you just mount and unmount, "
1492 "even if you didn't perform any writes.  You need to use "
1493 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1494 msgstr ""
1495
1496 # type: =item
1497 #: ../src/guestfs.pod:746
1498 msgid "guestfish command line is hard to use."
1499 msgstr ""
1500
1501 # type: textblock
1502 #: ../src/guestfs.pod:748
1503 msgid ""
1504 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1505 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1506 "exist, so it fails.  In earlier versions of guestfish the error message was "
1507 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1508 "we should have used C<guestfish -c command> to run commands."
1509 msgstr ""
1510
1511 # type: =item
1512 #: ../src/guestfs.pod:755
1513 msgid "guestfish megabyte modifiers don't work right on all commands"
1514 msgstr ""
1515
1516 # type: textblock
1517 #: ../src/guestfs.pod:757
1518 msgid ""
1519 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1520 "other modifiers).  What guestfish actually does is to multiply the number "
1521 "part by the modifier part and pass the result to the C API.  However this "
1522 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1523 "expecting some other unit (eg. megabytes)."
1524 msgstr ""
1525
1526 # type: textblock
1527 #: ../src/guestfs.pod:764
1528 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1529 msgstr ""
1530
1531 # type: verbatim
1532 #: ../src/guestfs.pod:766
1533 #, no-wrap
1534 msgid ""
1535 " lvcreate LV VG 100M\n"
1536 "\n"
1537 msgstr ""
1538
1539 # type: textblock
1540 #: ../src/guestfs.pod:768
1541 msgid ""
1542 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1543 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1544 "megabytes * megabytes) logical volume.  The error message you get from this "
1545 "is also a little obscure."
1546 msgstr ""
1547
1548 # type: textblock
1549 #: ../src/guestfs.pod:773
1550 msgid ""
1551 "This could be fixed in the generator by specially marking parameters and "
1552 "return values which take bytes or other units."
1553 msgstr ""
1554
1555 # type: =item
1556 #: ../src/guestfs.pod:776
1557 msgid "Ambiguity between devices and paths"
1558 msgstr ""
1559
1560 # type: textblock
1561 #: ../src/guestfs.pod:778
1562 msgid ""
1563 "There is a subtle ambiguity in the API between a device name "
1564 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1565 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1566 msgstr ""
1567
1568 # type: textblock
1569 #: ../src/guestfs.pod:783
1570 msgid ""
1571 "In the current API we usually resolve this ambiguity by having two separate "
1572 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1573 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1574 "detecting if the path supplied begins with C</dev/>."
1575 msgstr ""
1576
1577 # type: textblock
1578 #: ../src/guestfs.pod:789
1579 msgid ""
1580 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1581 "make paths/devices into structured names.  One way to do this would be to "
1582 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1583 "aspect of grub.  Another way would be to use a structured type, equivalent "
1584 "to this OCaml type:"
1585 msgstr ""
1586
1587 # type: verbatim
1588 #: ../src/guestfs.pod:795
1589 #, no-wrap
1590 msgid ""
1591 " type path = Path of string | Device of int | Partition of int * int\n"
1592 "\n"
1593 msgstr ""
1594
1595 # type: textblock
1596 #: ../src/guestfs.pod:797
1597 msgid "which would allow you to pass arguments like:"
1598 msgstr ""
1599
1600 # type: verbatim
1601 #: ../src/guestfs.pod:799
1602 #, no-wrap
1603 msgid ""
1604 " Path \"/foo/bar\"\n"
1605 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1606 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1607 " Path \"/dev/sdb2\"    (* not a device *)\n"
1608 "\n"
1609 msgstr ""
1610
1611 # type: textblock
1612 #: ../src/guestfs.pod:804
1613 msgid ""
1614 "As you can see there are still problems to resolve even with this "
1615 "representation.  Also consider how it might work in guestfish."
1616 msgstr ""
1617
1618 # type: =head2
1619 #: ../src/guestfs.pod:809
1620 msgid "PROTOCOL LIMITS"
1621 msgstr ""
1622
1623 # type: textblock
1624 #: ../src/guestfs.pod:811
1625 msgid ""
1626 "Internally libguestfs uses a message-based protocol to pass API calls and "
1627 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1628 "plenty more detail about this).  The maximum message size used by the "
1629 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1630 "aware of this limit.  The API calls which may be affected are individually "
1631 "documented, with a link back to this section of the documentation."
1632 msgstr ""
1633
1634 # type: textblock
1635 #: ../src/guestfs.pod:819
1636 msgid ""
1637 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1638 "a simple string.  Because this string is at some point internally encoded as "
1639 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1640 "the requested file is larger than this then you will get an error."
1641 msgstr ""
1642
1643 # type: textblock
1644 #: ../src/guestfs.pod:825
1645 msgid ""
1646 "In order to transfer large files into and out of the guest filesystem, you "
1647 "need to use particular calls that support this.  The sections L</UPLOADING> "
1648 "and L</DOWNLOADING> document how to do this."
1649 msgstr ""
1650
1651 # type: textblock
1652 #: ../src/guestfs.pod:829
1653 msgid ""
1654 "You might also consider mounting the disk image using our FUSE filesystem "
1655 "support (L<guestmount(1)>)."
1656 msgstr ""
1657
1658 # type: =head2
1659 #: ../src/guestfs.pod:832
1660 msgid "KEYS AND PASSPHRASES"
1661 msgstr ""
1662
1663 # type: textblock
1664 #: ../src/guestfs.pod:834
1665 msgid ""
1666 "Certain libguestfs calls take a parameter that contains sensitive key "
1667 "material, passed in as a C string."
1668 msgstr ""
1669
1670 # type: textblock
1671 #: ../src/guestfs.pod:837
1672 msgid ""
1673 "In the future we would hope to change the libguestfs implementation so that "
1674 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1675 "swap.  However this is I<not> done at the moment, because of the complexity "
1676 "of such an implementation."
1677 msgstr ""
1678
1679 # type: textblock
1680 #: ../src/guestfs.pod:842
1681 msgid ""
1682 "Therefore you should be aware that any key parameter you pass to libguestfs "
1683 "might end up being written out to the swap partition.  If this is a concern, "
1684 "scrub the swap partition or don't use libguestfs on encrypted devices."
1685 msgstr ""
1686
1687 # type: =head2
1688 #: ../src/guestfs.pod:847
1689 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1690 msgstr ""
1691
1692 # type: textblock
1693 #: ../src/guestfs.pod:849
1694 msgid ""
1695 "All high-level libguestfs actions are synchronous.  If you want to use "
1696 "libguestfs asynchronously then you must create a thread."
1697 msgstr ""
1698
1699 # type: textblock
1700 #: ../src/guestfs.pod:852
1701 msgid ""
1702 "Only use the handle from a single thread.  Either use the handle exclusively "
1703 "from one thread, or provide your own mutex so that two threads cannot issue "
1704 "calls on the same handle at the same time."
1705 msgstr ""
1706
1707 # type: textblock
1708 #: ../src/guestfs.pod:856
1709 msgid ""
1710 "See the graphical program guestfs-browser for one possible architecture for "
1711 "multithreaded programs using libvirt and libguestfs."
1712 msgstr ""
1713
1714 # type: =head2
1715 #: ../src/guestfs.pod:859
1716 msgid "PATH"
1717 msgstr ""
1718
1719 # type: textblock
1720 #: ../src/guestfs.pod:861
1721 msgid ""
1722 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1723 "internal path."
1724 msgstr ""
1725
1726 # type: textblock
1727 #: ../src/guestfs.pod:864
1728 msgid ""
1729 "By default it looks for these in the directory C<$libdir/guestfs> "
1730 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1731 msgstr ""
1732
1733 # type: textblock
1734 #: ../src/guestfs.pod:867
1735 msgid ""
1736 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1737 "to change the directories that libguestfs will search in.  The value is a "
1738 "colon-separated list of paths.  The current directory is I<not> searched "
1739 "unless the path contains an empty element or C<.>.  For example "
1740 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1741 "then C</usr/lib/guestfs>."
1742 msgstr ""
1743
1744 # type: =head2
1745 #: ../src/guestfs.pod:874
1746 msgid "QEMU WRAPPERS"
1747 msgstr ""
1748
1749 # type: textblock
1750 #: ../src/guestfs.pod:876
1751 msgid ""
1752 "If you want to compile your own qemu, run qemu from a non-standard location, "
1753 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1754 "around qemu."
1755 msgstr ""
1756
1757 # type: textblock
1758 #: ../src/guestfs.pod:880
1759 msgid ""
1760 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1761 "last command in the shell script (so that qemu replaces the shell and "
1762 "becomes the direct child of the libguestfs-using program).  If you don't do "
1763 "this, then the qemu process won't be cleaned up correctly."
1764 msgstr ""
1765
1766 # type: textblock
1767 #: ../src/guestfs.pod:885
1768 msgid ""
1769 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1770 "source:"
1771 msgstr ""
1772
1773 # type: verbatim
1774 #: ../src/guestfs.pod:888
1775 #, no-wrap
1776 msgid ""
1777 " #!/bin/sh -\n"
1778 " qemudir=/home/rjones/d/qemu\n"
1779 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
1780 "\"$@\"\n"
1781 "\n"
1782 msgstr ""
1783
1784 # type: textblock
1785 #: ../src/guestfs.pod:892
1786 msgid ""
1787 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1788 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1789 "example:"
1790 msgstr ""
1791
1792 # type: verbatim
1793 #: ../src/guestfs.pod:896
1794 #, no-wrap
1795 msgid ""
1796 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1797 "\n"
1798 msgstr ""
1799
1800 # type: textblock
1801 #: ../src/guestfs.pod:898
1802 msgid ""
1803 "Note that libguestfs also calls qemu with the -help and -version options in "
1804 "order to determine features."
1805 msgstr ""
1806
1807 # type: =head2
1808 #: ../src/guestfs.pod:901
1809 msgid "ABI GUARANTEE"
1810 msgstr ""
1811
1812 # type: textblock
1813 #: ../src/guestfs.pod:903
1814 msgid ""
1815 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1816 "actions as outlined in this section.  Although we will deprecate some "
1817 "actions, for example if they get replaced by newer calls, we will keep the "
1818 "old actions forever.  This allows you the developer to program in confidence "
1819 "against the libguestfs API."
1820 msgstr ""
1821
1822 # type: =head2
1823 #: ../src/guestfs.pod:909
1824 msgid "BLOCK DEVICE NAMING"
1825 msgstr ""
1826
1827 # type: textblock
1828 #: ../src/guestfs.pod:911
1829 msgid ""
1830 "In the kernel there is now quite a profusion of schemata for naming block "
1831 "devices (in this context, by I<block device> I mean a physical or virtual "
1832 "hard drive).  The original Linux IDE driver used names starting with "
1833 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
1834 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
1835 "replacement for the old IDE driver (particularly for SATA devices) those "
1836 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
1837 "machines with paravirtualized drivers.  This has created several different "
1838 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
1839 "Xen PV disks."
1840 msgstr ""
1841
1842 # type: textblock
1843 #: ../src/guestfs.pod:923
1844 msgid ""
1845 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1846 "Linux kernel to access block devices.  We can run a variety of appliances "
1847 "based on a variety of Linux kernels."
1848 msgstr ""
1849
1850 # type: textblock
1851 #: ../src/guestfs.pod:927
1852 msgid ""
1853 "This causes a problem for libguestfs because many API calls use device or "
1854 "partition names.  Working scripts and the recipe (example) scripts that we "
1855 "make available over the internet could fail if the naming scheme changes."
1856 msgstr ""
1857
1858 # type: textblock
1859 #: ../src/guestfs.pod:932
1860 msgid ""
1861 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1862 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1863 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1864 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1865 msgstr ""
1866
1867 # type: textblock
1868 #: ../src/guestfs.pod:938
1869 msgid ""
1870 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1871 "L</guestfs_list_partitions> and similar calls return the true names of the "
1872 "devices and partitions as known to the appliance."
1873 msgstr ""
1874
1875 # type: =head3
1876 #: ../src/guestfs.pod:943
1877 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1878 msgstr ""
1879
1880 # type: textblock
1881 #: ../src/guestfs.pod:945
1882 msgid ""
1883 "Usually this translation is transparent.  However in some (very rare)  cases "
1884 "you may need to know the exact algorithm.  Such cases include where you use "
1885 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
1886 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
1887 "devices."
1888 msgstr ""
1889
1890 # type: textblock
1891 #: ../src/guestfs.pod:951
1892 msgid ""
1893 "The algorithm is applied only to I<parameters> which are known to be either "
1894 "device or partition names.  Return values from functions such as "
1895 "L</guestfs_list_devices> are never changed."
1896 msgstr ""
1897
1898 # type: textblock
1899 #: ../src/guestfs.pod:959
1900 msgid "Is the string a parameter which is a device or partition name?"
1901 msgstr ""
1902
1903 # type: textblock
1904 #: ../src/guestfs.pod:963
1905 msgid "Does the string begin with C</dev/sd>?"
1906 msgstr ""
1907
1908 # type: textblock
1909 #: ../src/guestfs.pod:967
1910 msgid ""
1911 "Does the named device exist? If so, we use that device.  However if I<not> "
1912 "then we continue with this algorithm."
1913 msgstr ""
1914
1915 # type: textblock
1916 #: ../src/guestfs.pod:972
1917 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1918 msgstr ""
1919
1920 # type: textblock
1921 #: ../src/guestfs.pod:974
1922 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1923 msgstr ""
1924
1925 # type: textblock
1926 #: ../src/guestfs.pod:976
1927 msgid "If that named device exists, use it.  If not, continue."
1928 msgstr ""
1929
1930 # type: textblock
1931 #: ../src/guestfs.pod:980
1932 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1933 msgstr ""
1934
1935 # type: textblock
1936 #: ../src/guestfs.pod:982
1937 msgid "If that named device exists, use it.  If not, return an error."
1938 msgstr ""
1939
1940 # type: =head3
1941 #: ../src/guestfs.pod:986
1942 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1943 msgstr ""
1944
1945 # type: textblock
1946 #: ../src/guestfs.pod:988
1947 msgid ""
1948 "Although the standard naming scheme and automatic translation is useful for "
1949 "simple programs and guestfish scripts, for larger programs it is best not to "
1950 "rely on this mechanism."
1951 msgstr ""
1952
1953 # type: textblock
1954 #: ../src/guestfs.pod:992
1955 msgid ""
1956 "Where possible for maximum future portability programs using libguestfs "
1957 "should use these future-proof techniques:"
1958 msgstr ""
1959
1960 # type: textblock
1961 #: ../src/guestfs.pod:999
1962 msgid ""
1963 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
1964 "device names, and then use those names directly."
1965 msgstr ""
1966
1967 # type: textblock
1968 #: ../src/guestfs.pod:1002
1969 msgid "Since those device names exist by definition, they will never be translated."
1970 msgstr ""
1971
1972 # type: textblock
1973 #: ../src/guestfs.pod:1007
1974 msgid ""
1975 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
1976 "filesystem labels."
1977 msgstr ""
1978
1979 # type: =head1
1980 #: ../src/guestfs.pod:1012
1981 msgid "SECURITY"
1982 msgstr ""
1983
1984 # type: textblock
1985 #: ../src/guestfs.pod:1014
1986 msgid ""
1987 "This section discusses security implications of using libguestfs, "
1988 "particularly with untrusted or malicious guests or disk images."
1989 msgstr ""
1990
1991 # type: =head2
1992 #: ../src/guestfs.pod:1017
1993 msgid "GENERAL SECURITY CONSIDERATIONS"
1994 msgstr ""
1995
1996 # type: textblock
1997 #: ../src/guestfs.pod:1019
1998 msgid ""
1999 "Be careful with any files or data that you download from a guest (by "
2000 "\"download\" we mean not just the L</guestfs_download> command but any "
2001 "command that reads files, filenames, directories or anything else from a "
2002 "disk image).  An attacker could manipulate the data to fool your program "
2003 "into doing the wrong thing.  Consider cases such as:"
2004 msgstr ""
2005
2006 # type: textblock
2007 #: ../src/guestfs.pod:1029
2008 msgid "the data (file etc) not being present"
2009 msgstr ""
2010
2011 # type: textblock
2012 #: ../src/guestfs.pod:1033
2013 msgid "being present but empty"
2014 msgstr ""
2015
2016 # type: textblock
2017 #: ../src/guestfs.pod:1037
2018 msgid "being much larger than normal"
2019 msgstr ""
2020
2021 # type: textblock
2022 #: ../src/guestfs.pod:1041
2023 msgid "containing arbitrary 8 bit data"
2024 msgstr ""
2025
2026 # type: textblock
2027 #: ../src/guestfs.pod:1045
2028 msgid "being in an unexpected character encoding"
2029 msgstr ""
2030
2031 # type: textblock
2032 #: ../src/guestfs.pod:1049
2033 msgid "containing homoglyphs."
2034 msgstr ""
2035
2036 # type: =head2
2037 #: ../src/guestfs.pod:1053
2038 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2039 msgstr ""
2040
2041 # type: textblock
2042 #: ../src/guestfs.pod:1055
2043 msgid ""
2044 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2045 "(VFS) module can sometimes be escalated into exploits by deliberately "
2046 "creating a malicious, malformed filesystem.  These exploits are very severe "
2047 "for two reasons.  Firstly there are very many filesystem drivers in the "
2048 "kernel, and many of them are infrequently used and not much developer "
2049 "attention has been paid to the code.  Linux userspace helps potential "
2050 "crackers by detecting the filesystem type and automatically choosing the "
2051 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2052 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2053 "exploit (worse in some ways), giving immediate and total access to the "
2054 "system right down to the hardware level."
2055 msgstr ""
2056
2057 # type: textblock
2058 #: ../src/guestfs.pod:1068
2059 msgid ""
2060 "That explains why you should never mount a filesystem from an untrusted "
2061 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2062 "inside a qemu virtual machine, usually running as a non-root user.  The "
2063 "attacker would need to write a filesystem which first exploited the kernel, "
2064 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2065 "the libguestfs protocol, and finally to be as serious as the host kernel "
2066 "exploit it would need to escalate its privileges to root.  This multi-step "
2067 "escalation, performed by a static piece of data, is thought to be extremely "
2068 "hard to do, although we never say 'never' about security issues."
2069 msgstr ""
2070
2071 # type: textblock
2072 #: ../src/guestfs.pod:1079
2073 msgid ""
2074 "In any case callers can reduce the attack surface by forcing the filesystem "
2075 "type when mounting (use L</guestfs_mount_vfs>)."
2076 msgstr ""
2077
2078 # type: =head2
2079 #: ../src/guestfs.pod:1082
2080 msgid "PROTOCOL SECURITY"
2081 msgstr ""
2082
2083 # type: textblock
2084 #: ../src/guestfs.pod:1084
2085 msgid ""
2086 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2087 "defined upper message size.  However a program that uses libguestfs must "
2088 "also take care - for example you can write a program that downloads a binary "
2089 "from a disk image and executes it locally, and no amount of protocol "
2090 "security will save you from the consequences."
2091 msgstr ""
2092
2093 # type: =head2
2094 #: ../src/guestfs.pod:1090
2095 msgid "INSPECTION SECURITY"
2096 msgstr ""
2097
2098 # type: textblock
2099 #: ../src/guestfs.pod:1092
2100 msgid ""
2101 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2102 "directly from the guest, and these could contain any 8 bit data.  Callers "
2103 "should be careful to escape these before printing them to a structured file "
2104 "(for example, use HTML escaping if creating a web page)."
2105 msgstr ""
2106
2107 # type: textblock
2108 #: ../src/guestfs.pod:1098
2109 msgid ""
2110 "Guest configuration may be altered in unusual ways by the administrator of "
2111 "the virtual machine, and may not reflect reality (particularly for untrusted "
2112 "or actively malicious guests).  For example we parse the hostname from "
2113 "configuration files like C</etc/sysconfig/network> that we find in the "
2114 "guest, but the guest administrator can easily manipulate these files to "
2115 "provide the wrong hostname."
2116 msgstr ""
2117
2118 # type: textblock
2119 #: ../src/guestfs.pod:1106
2120 msgid ""
2121 "The inspection API parses guest configuration using two external libraries: "
2122 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2123 "designed to be robust in the face of malicious data, although denial of "
2124 "service attacks are still possible, for example with oversized configuration "
2125 "files."
2126 msgstr ""
2127
2128 # type: =head2
2129 #: ../src/guestfs.pod:1112
2130 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2131 msgstr ""
2132
2133 # type: textblock
2134 #: ../src/guestfs.pod:1114
2135 msgid ""
2136 "Be very cautious about running commands from the guest.  By running a "
2137 "command in the guest, you are giving CPU time to a binary that you do not "
2138 "control, under the same user account as the library, albeit wrapped in qemu "
2139 "virtualization.  More information and alternatives can be found in the "
2140 "section L</RUNNING COMMANDS>."
2141 msgstr ""
2142
2143 # type: =head2
2144 #: ../src/guestfs.pod:1120
2145 msgid "CVE-2010-3851"
2146 msgstr ""
2147
2148 # type: textblock
2149 #: ../src/guestfs.pod:1122
2150 msgid "https://bugzilla.redhat.com/642934"
2151 msgstr ""
2152
2153 # type: textblock
2154 #: ../src/guestfs.pod:1124
2155 msgid ""
2156 "This security bug concerns the automatic disk format detection that qemu "
2157 "does on disk images."
2158 msgstr ""
2159
2160 # type: textblock
2161 #: ../src/guestfs.pod:1127
2162 msgid ""
2163 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2164 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2165 "for one of the known headers, and if none is found then assuming the disk "
2166 "image must be raw."
2167 msgstr ""
2168
2169 # type: textblock
2170 #: ../src/guestfs.pod:1132
2171 msgid ""
2172 "This allows a guest which has been given a raw disk image to write some "
2173 "other header.  At next boot (or when the disk image is accessed by "
2174 "libguestfs) qemu would do autodetection and think the disk image format was, "
2175 "say, qcow2 based on the header written by the guest."
2176 msgstr ""
2177
2178 # type: textblock
2179 #: ../src/guestfs.pod:1137
2180 msgid ""
2181 "This in itself would not be a problem, but qcow2 offers many features, one "
2182 "of which is to allow a disk image to refer to another image (called the "
2183 "\"backing disk\").  It does this by placing the path to the backing disk "
2184 "into the qcow2 header.  This path is not validated and could point to any "
2185 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2186 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2187 "control of the attacker."
2188 msgstr ""
2189
2190 # type: textblock
2191 #: ../src/guestfs.pod:1145
2192 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
2193 msgstr ""
2194
2195 # type: textblock
2196 #: ../src/guestfs.pod:1152
2197 msgid "You have enabled the network or have opened the disk in write mode."
2198 msgstr ""
2199
2200 # type: textblock
2201 #: ../src/guestfs.pod:1156
2202 msgid ""
2203 "You are also running untrusted code from the guest (see L</RUNNING "
2204 "COMMANDS>)."
2205 msgstr ""
2206
2207 # type: textblock
2208 #: ../src/guestfs.pod:1161
2209 msgid ""
2210 "The way to avoid this is to specify the expected disk format when adding "
2211 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2212 "should always do this if the disk is raw format, and it's a good idea for "
2213 "other cases too."
2214 msgstr ""
2215
2216 # type: textblock
2217 #: ../src/guestfs.pod:1166
2218 msgid ""
2219 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2220 "format is fetched from libvirt and passed through."
2221 msgstr ""
2222
2223 # type: textblock
2224 #: ../src/guestfs.pod:1169
2225 msgid ""
2226 "For libguestfs tools, use the I<--format> command line parameter as "
2227 "appropriate."
2228 msgstr ""
2229
2230 # type: =head1
2231 #: ../src/guestfs.pod:1172
2232 msgid "CONNECTION MANAGEMENT"
2233 msgstr ""
2234
2235 # type: =head2
2236 #: ../src/guestfs.pod:1174
2237 msgid "guestfs_h *"
2238 msgstr ""
2239
2240 # type: textblock
2241 #: ../src/guestfs.pod:1176
2242 msgid ""
2243 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2244 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2245 "handle and release all resources used."
2246 msgstr ""
2247
2248 # type: textblock
2249 #: ../src/guestfs.pod:1180
2250 msgid ""
2251 "For information on using multiple handles and threads, see the section "
2252 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2253 msgstr ""
2254
2255 # type: =head2
2256 #: ../src/guestfs.pod:1183
2257 msgid "guestfs_create"
2258 msgstr ""
2259
2260 # type: verbatim
2261 #: ../src/guestfs.pod:1185
2262 #, no-wrap
2263 msgid ""
2264 " guestfs_h *guestfs_create (void);\n"
2265 "\n"
2266 msgstr ""
2267
2268 # type: textblock
2269 #: ../src/guestfs.pod:1187
2270 msgid "Create a connection handle."
2271 msgstr ""
2272
2273 # type: textblock
2274 #: ../src/guestfs.pod:1189
2275 msgid ""
2276 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2277 "on the handle at least once."
2278 msgstr ""
2279
2280 # type: textblock
2281 #: ../src/guestfs.pod:1192
2282 msgid ""
2283 "This function returns a non-NULL pointer to a handle on success or NULL on "
2284 "error."
2285 msgstr ""
2286
2287 # type: textblock
2288 #: ../src/guestfs.pod:1195
2289 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2290 msgstr ""
2291
2292 # type: textblock
2293 #: ../src/guestfs.pod:1197
2294 msgid ""
2295 "You may also want to configure error handling for the handle.  See L</ERROR "
2296 "HANDLING> section below."
2297 msgstr ""
2298
2299 # type: =head2
2300 #: ../src/guestfs.pod:1200
2301 msgid "guestfs_close"
2302 msgstr ""
2303
2304 # type: verbatim
2305 #: ../src/guestfs.pod:1202
2306 #, no-wrap
2307 msgid ""
2308 " void guestfs_close (guestfs_h *g);\n"
2309 "\n"
2310 msgstr ""
2311
2312 # type: textblock
2313 #: ../src/guestfs.pod:1204
2314 msgid "This closes the connection handle and frees up all resources used."
2315 msgstr ""
2316
2317 # type: =head1
2318 #: ../src/guestfs.pod:1206
2319 msgid "ERROR HANDLING"
2320 msgstr ""
2321
2322 # type: textblock
2323 #: ../src/guestfs.pod:1208
2324 msgid ""
2325 "API functions can return errors.  For example, almost all functions that "
2326 "return C<int> will return C<-1> to indicate an error."
2327 msgstr ""
2328
2329 # type: textblock
2330 #: ../src/guestfs.pod:1211
2331 msgid ""
2332 "Additional information is available for errors: an error message string and "
2333 "optionally an error number (errno) if the thing that failed was a system "
2334 "call."
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1215
2339 msgid ""
2340 "You can get at the additional information about the last error on the handle "
2341 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2342 "up an error handler with L</guestfs_set_error_handler>."
2343 msgstr ""
2344
2345 # type: textblock
2346 #: ../src/guestfs.pod:1220
2347 msgid ""
2348 "When the handle is created, a default error handler is installed which "
2349 "prints the error message string to C<stderr>.  For small short-running "
2350 "command line programs it is sufficient to do:"
2351 msgstr ""
2352
2353 # type: verbatim
2354 #: ../src/guestfs.pod:1224
2355 #, no-wrap
2356 msgid ""
2357 " if (guestfs_launch (g) == -1)\n"
2358 "   exit (EXIT_FAILURE);\n"
2359 "\n"
2360 msgstr ""
2361
2362 # type: textblock
2363 #: ../src/guestfs.pod:1227
2364 msgid ""
2365 "since the default error handler will ensure that an error message has been "
2366 "printed to C<stderr> before the program exits."
2367 msgstr ""
2368
2369 # type: textblock
2370 #: ../src/guestfs.pod:1230
2371 msgid ""
2372 "For other programs the caller will almost certainly want to install an "
2373 "alternate error handler or do error handling in-line like this:"
2374 msgstr ""
2375
2376 # type: verbatim
2377 #: ../src/guestfs.pod:1233
2378 #, no-wrap
2379 msgid ""
2380 " g = guestfs_create ();\n"
2381 " \n"
2382 msgstr ""
2383
2384 # type: verbatim
2385 #: ../src/guestfs.pod:1235
2386 #, no-wrap
2387 msgid ""
2388 " /* This disables the default behaviour of printing errors\n"
2389 "    on stderr. */\n"
2390 " guestfs_set_error_handler (g, NULL, NULL);\n"
2391 " \n"
2392 msgstr ""
2393
2394 # type: verbatim
2395 #: ../src/guestfs.pod:1239
2396 #, no-wrap
2397 msgid ""
2398 " if (guestfs_launch (g) == -1) {\n"
2399 "   /* Examine the error message and print it etc. */\n"
2400 "   char *msg = guestfs_last_error (g);\n"
2401 "   int errnum = guestfs_last_errno (g);\n"
2402 "   fprintf (stderr, \"%s\\n\", msg);\n"
2403 "   /* ... */\n"
2404 "  }\n"
2405 "\n"
2406 msgstr ""
2407
2408 # type: textblock
2409 #: ../src/guestfs.pod:1247
2410 msgid ""
2411 "Out of memory errors are handled differently.  The default action is to call "
2412 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
2413 "L</guestfs_set_out_of_memory_handler>."
2414 msgstr ""
2415
2416 # type: textblock
2417 #: ../src/guestfs.pod:1251
2418 msgid ""
2419 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2420 "because there is no handle if this happens there is no way to get additional "
2421 "error information.  However L</guestfs_create> is supposed to be a "
2422 "lightweight operation which can only fail because of insufficient memory (it "
2423 "returns NULL in this case)."
2424 msgstr ""
2425
2426 # type: =head2
2427 #: ../src/guestfs.pod:1257
2428 msgid "guestfs_last_error"
2429 msgstr ""
2430
2431 # type: verbatim
2432 #: ../src/guestfs.pod:1259
2433 #, no-wrap
2434 msgid ""
2435 " const char *guestfs_last_error (guestfs_h *g);\n"
2436 "\n"
2437 msgstr ""
2438
2439 # type: textblock
2440 #: ../src/guestfs.pod:1261
2441 msgid ""
2442 "This returns the last error message that happened on C<g>.  If there has not "
2443 "been an error since the handle was created, then this returns C<NULL>."
2444 msgstr ""
2445
2446 # type: textblock
2447 #: ../src/guestfs.pod:1265
2448 msgid ""
2449 "The lifetime of the returned string is until the next error occurs, or "
2450 "L</guestfs_close> is called."
2451 msgstr ""
2452
2453 # type: =head2
2454 #: ../src/guestfs.pod:1268
2455 msgid "guestfs_last_errno"
2456 msgstr ""
2457
2458 # type: verbatim
2459 #: ../src/guestfs.pod:1270
2460 #, no-wrap
2461 msgid ""
2462 " int guestfs_last_errno (guestfs_h *g);\n"
2463 "\n"
2464 msgstr ""
2465
2466 # type: textblock
2467 #: ../src/guestfs.pod:1272
2468 msgid "This returns the last error number (errno) that happened on C<g>."
2469 msgstr ""
2470
2471 # type: textblock
2472 #: ../src/guestfs.pod:1274
2473 msgid "If successful, an errno integer not equal to zero is returned."
2474 msgstr ""
2475
2476 # type: textblock
2477 #: ../src/guestfs.pod:1276
2478 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
2479 msgstr ""
2480
2481 # type: textblock
2482 #: ../src/guestfs.pod:1283
2483 msgid "There has not been any error on the handle."
2484 msgstr ""
2485
2486 # type: textblock
2487 #: ../src/guestfs.pod:1287
2488 msgid ""
2489 "There has been an error but the errno was meaningless.  This corresponds to "
2490 "the case where the error did not come from a failed system call, but for "
2491 "some other reason."
2492 msgstr ""
2493
2494 # type: textblock
2495 #: ../src/guestfs.pod:1293
2496 msgid ""
2497 "There was an error from a failed system call, but for some reason the errno "
2498 "was not captured and returned.  This usually indicates a bug in libguestfs."
2499 msgstr ""
2500
2501 # type: textblock
2502 #: ../src/guestfs.pod:1299
2503 msgid ""
2504 "Libguestfs tries to convert the errno from inside the applicance into a "
2505 "corresponding errno for the caller (not entirely trivial: the appliance "
2506 "might be running a completely different operating system from the library "
2507 "and error numbers are not standardized across Un*xen).  If this could not be "
2508 "done, then the error is translated to C<EINVAL>.  In practice this should "
2509 "only happen in very rare circumstances."
2510 msgstr ""
2511
2512 # type: =head2
2513 #: ../src/guestfs.pod:1307
2514 msgid "guestfs_set_error_handler"
2515 msgstr ""
2516
2517 # type: verbatim
2518 #: ../src/guestfs.pod:1309
2519 #, no-wrap
2520 msgid ""
2521 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2522 "                                           void *opaque,\n"
2523 "                                           const char *msg);\n"
2524 " void guestfs_set_error_handler (guestfs_h *g,\n"
2525 "                                 guestfs_error_handler_cb cb,\n"
2526 "                                 void *opaque);\n"
2527 "\n"
2528 msgstr ""
2529
2530 # type: textblock
2531 #: ../src/guestfs.pod:1316
2532 msgid ""
2533 "The callback C<cb> will be called if there is an error.  The parameters "
2534 "passed to the callback are an opaque data pointer and the error message "
2535 "string."
2536 msgstr ""
2537
2538 # type: textblock
2539 #: ../src/guestfs.pod:1320
2540 msgid ""
2541 "C<errno> is not passed to the callback.  To get that the callback must call "
2542 "L</guestfs_last_errno>."
2543 msgstr ""
2544
2545 # type: textblock
2546 #: ../src/guestfs.pod:1323
2547 msgid ""
2548 "Note that the message string C<msg> is freed as soon as the callback "
2549 "function returns, so if you want to stash it somewhere you must make your "
2550 "own copy."
2551 msgstr ""
2552
2553 # type: textblock
2554 #: ../src/guestfs.pod:1327
2555 msgid "The default handler prints messages on C<stderr>."
2556 msgstr ""
2557
2558 # type: textblock
2559 #: ../src/guestfs.pod:1329
2560 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2561 msgstr ""
2562
2563 # type: =head2
2564 #: ../src/guestfs.pod:1331
2565 msgid "guestfs_get_error_handler"
2566 msgstr ""
2567
2568 # type: verbatim
2569 #: ../src/guestfs.pod:1333
2570 #, no-wrap
2571 msgid ""
2572 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2573 "                                                     void **opaque_rtn);\n"
2574 "\n"
2575 msgstr ""
2576
2577 # type: textblock
2578 #: ../src/guestfs.pod:1336
2579 msgid "Returns the current error handler callback."
2580 msgstr ""
2581
2582 # type: =head2
2583 #: ../src/guestfs.pod:1338
2584 msgid "guestfs_set_out_of_memory_handler"
2585 msgstr ""
2586
2587 # type: verbatim
2588 #: ../src/guestfs.pod:1340
2589 #, no-wrap
2590 msgid ""
2591 " typedef void (*guestfs_abort_cb) (void);\n"
2592 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2593 "                                        guestfs_abort_cb);\n"
2594 "\n"
2595 msgstr ""
2596
2597 # type: textblock
2598 #: ../src/guestfs.pod:1344
2599 msgid ""
2600 "The callback C<cb> will be called if there is an out of memory situation.  "
2601 "I<Note this callback must not return>."
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1347
2606 msgid "The default is to call L<abort(3)>."
2607 msgstr ""
2608
2609 # type: textblock
2610 #: ../src/guestfs.pod:1349
2611 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2612 msgstr ""
2613
2614 # type: =head2
2615 #: ../src/guestfs.pod:1352
2616 msgid "guestfs_get_out_of_memory_handler"
2617 msgstr ""
2618
2619 # type: verbatim
2620 #: ../src/guestfs.pod:1354
2621 #, no-wrap
2622 msgid ""
2623 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2624 "\n"
2625 msgstr ""
2626
2627 # type: textblock
2628 #: ../src/guestfs.pod:1356
2629 msgid "This returns the current out of memory handler."
2630 msgstr ""
2631
2632 # type: =head1
2633 #: ../src/guestfs.pod:1358
2634 msgid "API CALLS"
2635 msgstr ""
2636
2637 # type: textblock
2638 #: ../src/guestfs.pod:1360 ../fish/guestfish.pod:907
2639 msgid "@ACTIONS@"
2640 msgstr ""
2641
2642 # type: =head1
2643 #: ../src/guestfs.pod:1362
2644 msgid "STRUCTURES"
2645 msgstr ""
2646
2647 # type: textblock
2648 #: ../src/guestfs.pod:1364
2649 msgid "@STRUCTS@"
2650 msgstr ""
2651
2652 # type: =head1
2653 #: ../src/guestfs.pod:1366
2654 msgid "AVAILABILITY"
2655 msgstr ""
2656
2657 # type: =head2
2658 #: ../src/guestfs.pod:1368
2659 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2660 msgstr ""
2661
2662 # type: textblock
2663 #: ../src/guestfs.pod:1370
2664 msgid ""
2665 "Using L</guestfs_available> you can test availability of the following "
2666 "groups of functions.  This test queries the appliance to see if the "
2667 "appliance you are currently using supports the functionality."
2668 msgstr ""
2669
2670 # type: textblock
2671 #: ../src/guestfs.pod:1375
2672 msgid "@AVAILABILITY@"
2673 msgstr ""
2674
2675 # type: =head2
2676 #: ../src/guestfs.pod:1377
2677 msgid "GUESTFISH supported COMMAND"
2678 msgstr ""
2679
2680 # type: textblock
2681 #: ../src/guestfs.pod:1379
2682 msgid ""
2683 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2684 "prints out the available groups and whether they are supported by this build "
2685 "of libguestfs.  Note however that you have to do C<run> first."
2686 msgstr ""
2687
2688 # type: =head2
2689 #: ../src/guestfs.pod:1384
2690 msgid "SINGLE CALLS AT COMPILE TIME"
2691 msgstr ""
2692
2693 # type: textblock
2694 #: ../src/guestfs.pod:1386
2695 msgid ""
2696 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2697 "function, such as:"
2698 msgstr ""
2699
2700 # type: verbatim
2701 #: ../src/guestfs.pod:1389
2702 #, no-wrap
2703 msgid ""
2704 " #define LIBGUESTFS_HAVE_DD 1\n"
2705 "\n"
2706 msgstr ""
2707
2708 # type: textblock
2709 #: ../src/guestfs.pod:1391
2710 msgid "if L</guestfs_dd> is available."
2711 msgstr ""
2712
2713 # type: textblock
2714 #: ../src/guestfs.pod:1393
2715 msgid ""
2716 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2717 "function is available at compile time, we recommended using build tools such "
2718 "as autoconf or cmake.  For example in autotools you could use:"
2719 msgstr ""
2720
2721 # type: verbatim
2722 #: ../src/guestfs.pod:1398
2723 #, no-wrap
2724 msgid ""
2725 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2726 " AC_CHECK_FUNCS([guestfs_dd])\n"
2727 "\n"
2728 msgstr ""
2729
2730 # type: textblock
2731 #: ../src/guestfs.pod:1401
2732 msgid ""
2733 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2734 "in your program."
2735 msgstr ""
2736
2737 # type: =head2
2738 #: ../src/guestfs.pod:1404
2739 msgid "SINGLE CALLS AT RUN TIME"
2740 msgstr ""
2741
2742 # type: textblock
2743 #: ../src/guestfs.pod:1406
2744 msgid ""
2745 "Testing at compile time doesn't guarantee that a function really exists in "
2746 "the library.  The reason is that you might be dynamically linked against a "
2747 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2748 "This situation unfortunately results in a segmentation fault, which is a "
2749 "shortcoming of the C dynamic linking system itself."
2750 msgstr ""
2751
2752 # type: textblock
2753 #: ../src/guestfs.pod:1413
2754 msgid ""
2755 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2756 "in this example program (note that you still need the compile time check as "
2757 "well):"
2758 msgstr ""
2759
2760 # type: verbatim
2761 #: ../src/guestfs.pod:1417
2762 #, no-wrap
2763 msgid ""
2764 " #include <stdio.h>\n"
2765 " #include <stdlib.h>\n"
2766 " #include <unistd.h>\n"
2767 " #include <dlfcn.h>\n"
2768 " #include <guestfs.h>\n"
2769 " \n"
2770 msgstr ""
2771
2772 # type: verbatim
2773 #: ../src/guestfs.pod:1423
2774 #, no-wrap
2775 msgid ""
2776 " main ()\n"
2777 " {\n"
2778 " #ifdef LIBGUESTFS_HAVE_DD\n"
2779 "   void *dl;\n"
2780 "   int has_function;\n"
2781 " \n"
2782 msgstr ""
2783
2784 # type: verbatim
2785 #: ../src/guestfs.pod:1429
2786 #, no-wrap
2787 msgid ""
2788 "   /* Test if the function guestfs_dd is really available. */\n"
2789 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2790 "   if (!dl) {\n"
2791 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2792 "     exit (EXIT_FAILURE);\n"
2793 "   }\n"
2794 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2795 "   dlclose (dl);\n"
2796 " \n"
2797 msgstr ""
2798
2799 # type: verbatim
2800 #: ../src/guestfs.pod:1438
2801 #, no-wrap
2802 msgid ""
2803 "   if (!has_function)\n"
2804 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2805 "   else {\n"
2806 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2807 "     /* Now it's safe to call\n"
2808 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2809 "     */\n"
2810 "   }\n"
2811 " #else\n"
2812 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2813 " #endif\n"
2814 "  }\n"
2815 "\n"
2816 msgstr ""
2817
2818 # type: textblock
2819 #: ../src/guestfs.pod:1451
2820 msgid ""
2821 "You may think the above is an awful lot of hassle, and it is.  There are "
2822 "other ways outside of the C linking system to ensure that this kind of "
2823 "incompatibility never arises, such as using package versioning:"
2824 msgstr ""
2825
2826 # type: verbatim
2827 #: ../src/guestfs.pod:1456
2828 #, no-wrap
2829 msgid ""
2830 " Requires: libguestfs >= 1.0.80\n"
2831 "\n"
2832 msgstr ""
2833
2834 # type: =head1
2835 #: ../src/guestfs.pod:1458
2836 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2837 msgstr ""
2838
2839 # type: textblock
2840 #: ../src/guestfs.pod:1460
2841 msgid ""
2842 "A recent feature of the API is the introduction of calls which take optional "
2843 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2844 "takes variable arguments (ie. C<...>), as in this example:"
2845 msgstr ""
2846
2847 # type: verbatim
2848 #: ../src/guestfs.pod:1465
2849 #, no-wrap
2850 msgid ""
2851 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2852 "\n"
2853 msgstr ""
2854
2855 # type: textblock
2856 #: ../src/guestfs.pod:1467
2857 msgid ""
2858 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2859 "call with no optional arguments specified:"
2860 msgstr ""
2861
2862 # type: verbatim
2863 #: ../src/guestfs.pod:1470
2864 #, no-wrap
2865 msgid ""
2866 " guestfs_add_drive_opts (g, filename, -1);\n"
2867 "\n"
2868 msgstr ""
2869
2870 # type: textblock
2871 #: ../src/guestfs.pod:1472
2872 msgid "With a single optional argument:"
2873 msgstr ""
2874
2875 # type: verbatim
2876 #: ../src/guestfs.pod:1474
2877 #, no-wrap
2878 msgid ""
2879 " guestfs_add_drive_opts (g, filename,\n"
2880 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2881 "                         -1);\n"
2882 "\n"
2883 msgstr ""
2884
2885 # type: textblock
2886 #: ../src/guestfs.pod:1478
2887 msgid "With two:"
2888 msgstr ""
2889
2890 # type: verbatim
2891 #: ../src/guestfs.pod:1480
2892 #, no-wrap
2893 msgid ""
2894 " guestfs_add_drive_opts (g, filename,\n"
2895 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2896 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2897 "                         -1);\n"
2898 "\n"
2899 msgstr ""
2900
2901 # type: textblock
2902 #: ../src/guestfs.pod:1485
2903 msgid ""
2904 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2905 "happen!"
2906 msgstr ""
2907
2908 # type: =head2
2909 #: ../src/guestfs.pod:1488
2910 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2911 msgstr ""
2912
2913 # type: textblock
2914 #: ../src/guestfs.pod:1490
2915 msgid ""
2916 "The second variant has the same name with the suffix C<_va>, which works the "
2917 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2918 "example function, this is declared:"
2919 msgstr ""
2920
2921 # type: verbatim
2922 #: ../src/guestfs.pod:1494
2923 #, no-wrap
2924 msgid ""
2925 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2926 "                                va_list args);\n"
2927 "\n"
2928 msgstr ""
2929
2930 # type: =head2
2931 #: ../src/guestfs.pod:1497
2932 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2933 msgstr ""
2934
2935 # type: textblock
2936 #: ../src/guestfs.pod:1499
2937 msgid ""
2938 "The third variant is useful where you need to construct these calls.  You "
2939 "pass in a structure where you fill in the optional fields.  The structure "
2940 "has a bitmask as the first element which you must set to indicate which "
2941 "fields you have filled in.  For our example function the structure and call "
2942 "are declared:"
2943 msgstr ""
2944
2945 # type: verbatim
2946 #: ../src/guestfs.pod:1505
2947 #, no-wrap
2948 msgid ""
2949 " struct guestfs_add_drive_opts_argv {\n"
2950 "   uint64_t bitmask;\n"
2951 "   int readonly;\n"
2952 "   const char *format;\n"
2953 "   /* ... */\n"
2954 " };\n"
2955 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2956 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2957 "\n"
2958 msgstr ""
2959
2960 # type: textblock
2961 #: ../src/guestfs.pod:1514
2962 msgid "You could call it like this:"
2963 msgstr ""
2964
2965 # type: verbatim
2966 #: ../src/guestfs.pod:1516
2967 #, no-wrap
2968 msgid ""
2969 " struct guestfs_add_drive_opts_argv optargs = {\n"
2970 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2971 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2972 "   .readonly = 1,\n"
2973 "   .format = \"qcow2\"\n"
2974 " };\n"
2975 " \n"
2976 msgstr ""
2977
2978 # type: verbatim
2979 #: ../src/guestfs.pod:1523
2980 #, no-wrap
2981 msgid ""
2982 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2983 "\n"
2984 msgstr ""
2985
2986 # type: textblock
2987 #: ../src/guestfs.pod:1525 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1255
2988 msgid "Notes:"
2989 msgstr ""
2990
2991 # type: textblock
2992 #: ../src/guestfs.pod:1531
2993 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2994 msgstr ""
2995
2996 # type: textblock
2997 #: ../src/guestfs.pod:1536
2998 msgid "You do not need to fill in all fields of the structure."
2999 msgstr ""
3000
3001 # type: textblock
3002 #: ../src/guestfs.pod:1540
3003 msgid ""
3004 "There must be a one-to-one correspondence between fields of the structure "
3005 "that are filled in, and bits set in the bitmask."
3006 msgstr ""
3007
3008 # type: =head2
3009 #: ../src/guestfs.pod:1545
3010 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3011 msgstr ""
3012
3013 # type: textblock
3014 #: ../src/guestfs.pod:1547
3015 msgid ""
3016 "In other languages, optional arguments are expressed in the way that is "
3017 "natural for that language.  We refer you to the language-specific "
3018 "documentation for more details on that."
3019 msgstr ""
3020
3021 # type: textblock
3022 #: ../src/guestfs.pod:1551
3023 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3024 msgstr ""
3025
3026 # type: =head2
3027 #: ../src/guestfs.pod:1553
3028 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3029 msgstr ""
3030
3031 # type: textblock
3032 #: ../src/guestfs.pod:1555
3033 msgid ""
3034 "The child process generates events in some situations.  Current events "
3035 "include: receiving a log message, the child process exits."
3036 msgstr ""
3037
3038 # type: textblock
3039 #: ../src/guestfs.pod:1558
3040 msgid ""
3041 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3042 "types of events."
3043 msgstr ""
3044
3045 # type: textblock
3046 #: ../src/guestfs.pod:1561
3047 msgid ""
3048 "Only I<one callback of each type> can be registered for each handle.  "
3049 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3050 "that type.  Cancel all callbacks of this type by calling this function with "
3051 "C<cb> set to C<NULL>."
3052 msgstr ""
3053
3054 # type: =head2
3055 #: ../src/guestfs.pod:1566
3056 msgid "guestfs_set_log_message_callback"
3057 msgstr ""
3058
3059 # type: verbatim
3060 #: ../src/guestfs.pod:1568
3061 #, no-wrap
3062 msgid ""
3063 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3064 "                                         char *buf, int len);\n"
3065 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3066 "                                        guestfs_log_message_cb cb,\n"
3067 "                                        void *opaque);\n"
3068 "\n"
3069 msgstr ""
3070
3071 # type: textblock
3072 #: ../src/guestfs.pod:1574
3073 msgid ""
3074 "The callback function C<cb> will be called whenever qemu or the guest writes "
3075 "anything to the console."
3076 msgstr ""
3077
3078 # type: textblock
3079 #: ../src/guestfs.pod:1577
3080 msgid "Use this function to capture kernel messages and similar."
3081 msgstr ""
3082
3083 # type: textblock
3084 #: ../src/guestfs.pod:1579
3085 msgid ""
3086 "Normally there is no log message handler, and log messages are just "
3087 "discarded."
3088 msgstr ""
3089
3090 # type: =head2
3091 #: ../src/guestfs.pod:1582
3092 msgid "guestfs_set_subprocess_quit_callback"
3093 msgstr ""
3094
3095 # type: verbatim
3096 #: ../src/guestfs.pod:1584
3097 #, no-wrap
3098 msgid ""
3099 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3100 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3101 "                                            guestfs_subprocess_quit_cb cb,\n"
3102 "                                            void *opaque);\n"
3103 "\n"
3104 msgstr ""
3105
3106 # type: textblock
3107 #: ../src/guestfs.pod:1589
3108 msgid ""
3109 "The callback function C<cb> will be called when the child process quits, "
3110 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3111 "corresponds to a transition from any state to the CONFIG state)."
3112 msgstr ""
3113
3114 # type: =head2
3115 #: ../src/guestfs.pod:1594
3116 msgid "guestfs_set_launch_done_callback"
3117 msgstr ""
3118
3119 # type: verbatim
3120 #: ../src/guestfs.pod:1596
3121 #, no-wrap
3122 msgid ""
3123 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3124 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3125 "                                        guestfs_launch_done_cb cb,\n"
3126 "                                        void *opaque);\n"
3127 "\n"
3128 msgstr ""
3129
3130 # type: textblock
3131 #: ../src/guestfs.pod:1601
3132 msgid ""
3133 "The callback function C<cb> will be called when the child process becomes "
3134 "ready first time after it has been launched.  (This corresponds to a "
3135 "transition from LAUNCHING to the READY state)."
3136 msgstr ""
3137
3138 # type: =head2
3139 #: ../src/guestfs.pod:1605
3140 msgid "guestfs_set_close_callback"
3141 msgstr ""
3142
3143 # type: verbatim
3144 #: ../src/guestfs.pod:1607
3145 #, no-wrap
3146 msgid ""
3147 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3148 " void guestfs_set_close_callback (guestfs_h *g,\n"
3149 "                                  guestfs_close_cb cb,\n"
3150 "                                  void *opaque);\n"
3151 "\n"
3152 msgstr ""
3153
3154 # type: textblock
3155 #: ../src/guestfs.pod:1612
3156 msgid ""
3157 "The callback function C<cb> will be called while the handle is being closed "
3158 "(synchronously from L</guestfs_close>)."
3159 msgstr ""
3160
3161 # type: textblock
3162 #: ../src/guestfs.pod:1615
3163 msgid ""
3164 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3165 "handles that are open when the program exits.  This means that this callback "
3166 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3167 "problems in higher-level languages (eg. if your HLL interpreter has already "
3168 "been cleaned up by the time this is called, and if your callback then jumps "
3169 "into some HLL function)."
3170 msgstr ""
3171
3172 # type: =head2
3173 #: ../src/guestfs.pod:1623
3174 msgid "guestfs_set_progress_callback"
3175 msgstr ""
3176
3177 # type: verbatim
3178 #: ../src/guestfs.pod:1625
3179 #, no-wrap
3180 msgid ""
3181 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3182 "                                      int proc_nr, int serial,\n"
3183 "                                      uint64_t position, uint64_t total);\n"
3184 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3185 "                                     guestfs_progress_cb cb,\n"
3186 "                                     void *opaque);\n"
3187 "\n"
3188 msgstr ""
3189
3190 # type: textblock
3191 #: ../src/guestfs.pod:1632
3192 msgid ""
3193 "Some long-running operations can generate progress messages.  If this "
3194 "callback is registered, then it will be called each time a progress message "
3195 "is generated (usually two seconds after the operation started, and three "
3196 "times per second thereafter until it completes, although the frequency may "
3197 "change in future versions)."
3198 msgstr ""
3199
3200 # type: textblock
3201 #: ../src/guestfs.pod:1638
3202 msgid ""
3203 "The callback receives two numbers: C<position> and C<total>.  The units of "
3204 "C<total> are not defined, although for some operations C<total> may relate "
3205 "in some way to the amount of data to be transferred (eg. in bytes or "
3206 "megabytes), and C<position> may be the portion which has been transferred."
3207 msgstr ""
3208
3209 # type: textblock
3210 #: ../src/guestfs.pod:1644
3211 msgid "The only defined and stable parts of the API are:"
3212 msgstr ""
3213
3214 # type: textblock
3215 #: ../src/guestfs.pod:1650
3216 msgid ""
3217 "The callback can display to the user some type of progress bar or indicator "
3218 "which shows the ratio of C<position>:C<total>."
3219 msgstr ""
3220
3221 # type: textblock
3222 #: ../src/guestfs.pod:1655
3223 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3224 msgstr ""
3225
3226 # type: textblock
3227 #: ../src/guestfs.pod:1659
3228 msgid ""
3229 "If any progress notification is sent during a call, then a final progress "
3230 "notification is always sent when C<position> = C<total>."
3231 msgstr ""
3232
3233 # type: textblock
3234 #: ../src/guestfs.pod:1662
3235 msgid ""
3236 "This is to simplify caller code, so callers can easily set the progress "
3237 "indicator to \"100%\" at the end of the operation, without requiring special "
3238 "code to detect this case."
3239 msgstr ""
3240
3241 # type: textblock
3242 #: ../src/guestfs.pod:1668
3243 msgid ""
3244 "The callback also receives the procedure number and serial number of the "
3245 "call.  These are only useful for debugging protocol issues, and the callback "
3246 "can normally ignore them.  The callback may want to print these numbers in "
3247 "error messages or debugging messages."
3248 msgstr ""
3249
3250 # type: =head1
3251 #: ../src/guestfs.pod:1673
3252 msgid "PRIVATE DATA AREA"
3253 msgstr ""
3254
3255 # type: textblock
3256 #: ../src/guestfs.pod:1675
3257 msgid ""
3258 "You can attach named pieces of private data to the libguestfs handle, and "
3259 "fetch them by name for the lifetime of the handle.  This is called the "
3260 "private data area and is only available from the C API."
3261 msgstr ""
3262
3263 # type: textblock
3264 #: ../src/guestfs.pod:1679
3265 msgid "To attach a named piece of data, use the following call:"
3266 msgstr ""
3267
3268 # type: verbatim
3269 #: ../src/guestfs.pod:1681
3270 #, no-wrap
3271 msgid ""
3272 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3273 "\n"
3274 msgstr ""
3275
3276 # type: textblock
3277 #: ../src/guestfs.pod:1683
3278 msgid ""
3279 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3280 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3281 "overwritten."
3282 msgstr ""
3283
3284 # type: textblock
3285 #: ../src/guestfs.pod:1687
3286 msgid ""
3287 "You can use any C<key> you want, but names beginning with an underscore "
3288 "character are reserved for internal libguestfs purposes (for implementing "
3289 "language bindings).  It is recommended to prefix the name with some unique "
3290 "string to avoid collisions with other users."
3291 msgstr ""
3292
3293 # type: textblock
3294 #: ../src/guestfs.pod:1692
3295 msgid "To retrieve the pointer, use:"
3296 msgstr ""
3297
3298 # type: verbatim
3299 #: ../src/guestfs.pod:1694
3300 #, no-wrap
3301 msgid ""
3302 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3303 "\n"
3304 msgstr ""
3305
3306 # type: textblock
3307 #: ../src/guestfs.pod:1696
3308 msgid ""
3309 "This function returns C<NULL> if either no data is found associated with "
3310 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3311 "C<NULL>."
3312 msgstr ""
3313
3314 # type: textblock
3315 #: ../src/guestfs.pod:1700
3316 msgid ""
3317 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3318 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3319 "all.  In particular, libguestfs does I<not> try to free the data when the "
3320 "handle is closed.  If the data must be freed, then the caller must either "
3321 "free it before calling L</guestfs_close> or must set up a close callback to "
3322 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3323 "can be registered for a handle)."
3324 msgstr ""
3325
3326 # type: textblock
3327 #: ../src/guestfs.pod:1708
3328 msgid ""
3329 "The private data area is implemented using a hash table, and should be "
3330 "reasonably efficient for moderate numbers of keys."
3331 msgstr ""
3332
3333 # type: =end
3334 #: ../src/guestfs.pod:1711 ../src/guestfs.pod:1716
3335 msgid "html"
3336 msgstr ""
3337
3338 # type: textblock
3339 #: ../src/guestfs.pod:1713
3340 msgid ""
3341 "<!-- old anchor for the next section --> <a "
3342 "name=\"state_machine_and_low_level_event_api\"/>"
3343 msgstr ""
3344
3345 # type: =head1
3346 #: ../src/guestfs.pod:1718
3347 msgid "ARCHITECTURE"
3348 msgstr ""
3349
3350 # type: textblock
3351 #: ../src/guestfs.pod:1720
3352 msgid ""
3353 "Internally, libguestfs is implemented by running an appliance (a special "
3354 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3355 "process of the main program."
3356 msgstr ""
3357
3358 # type: verbatim
3359 #: ../src/guestfs.pod:1724
3360 #, no-wrap
3361 msgid ""
3362 "  ___________________\n"
3363 " /                   \\\n"
3364 " | main program      |\n"
3365 " |                   |\n"
3366 " |                   |           child process / appliance\n"
3367 " |                   |           __________________________\n"
3368 " |                   |          / qemu                     \\\n"
3369 " +-------------------+   RPC    |      +-----------------+ |\n"
3370 " | libguestfs     <--------------------> guestfsd        | |\n"
3371 " |                   |          |      +-----------------+ |\n"
3372 " \\___________________/          |      | Linux kernel    | |\n"
3373 "                                |      +--^--------------+ |\n"
3374 "                                \\_________|________________/\n"
3375 "                                          |\n"
3376 "                                   _______v______\n"
3377 "                                  /              \\\n"
3378 "                                  | Device or    |\n"
3379 "                                  | disk image   |\n"
3380 "                                  \\______________/\n"
3381 "\n"
3382 msgstr ""
3383
3384 # type: textblock
3385 #: ../src/guestfs.pod:1744
3386 msgid ""
3387 "The library, linked to the main program, creates the child process and hence "
3388 "the appliance in the L</guestfs_launch> function."
3389 msgstr ""
3390
3391 # type: textblock
3392 #: ../src/guestfs.pod:1747
3393 msgid ""
3394 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3395 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3396 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3397 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3398 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3399 "attached to the qemu process which translates device access by the "
3400 "appliance's Linux kernel into accesses to the image."
3401 msgstr ""
3402
3403 # type: textblock
3404 #: ../src/guestfs.pod:1756
3405 msgid ""
3406 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3407 "Although the disk image you are attached to might also be used by some "
3408 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3409 "care if both libguestfs's qemu process and your virtual machine are trying "
3410 "to update the disk image at the same time, since these usually results in "
3411 "massive disk corruption)."
3412 msgstr ""
3413
3414 # type: =head1
3415 #: ../src/guestfs.pod:1763
3416 msgid "STATE MACHINE"
3417 msgstr ""
3418
3419 # type: textblock
3420 #: ../src/guestfs.pod:1765
3421 msgid "libguestfs uses a state machine to model the child process:"
3422 msgstr ""
3423
3424 # type: verbatim
3425 #: ../src/guestfs.pod:1767
3426 #, no-wrap
3427 msgid ""
3428 "                         |\n"
3429 "                    guestfs_create\n"
3430 "                         |\n"
3431 "                         |\n"
3432 "                     ____V_____\n"
3433 "                    /          \\\n"
3434 "                    |  CONFIG  |\n"
3435 "                    \\__________/\n"
3436 "                     ^ ^   ^  \\\n"
3437 "                    /  |    \\  \\ guestfs_launch\n"
3438 "                   /   |    _\\__V______\n"
3439 "                  /    |   /           \\\n"
3440 "                 /     |   | LAUNCHING |\n"
3441 "                /      |   \\___________/\n"
3442 "               /       |       /\n"
3443 "              /        |  guestfs_launch\n"
3444 "             /         |     /\n"
3445 "    ______  /        __|____V\n"
3446 "   /      \\ ------> /        \\\n"
3447 "   | BUSY |         | READY  |\n"
3448 "   \\______/ <------ \\________/\n"
3449 "\n"
3450 msgstr ""
3451
3452 # type: textblock
3453 #: ../src/guestfs.pod:1789
3454 msgid ""
3455 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3456 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3457 "(3) alternating between READY and BUSY as commands are issued to, and "
3458 "carried out by, the child process."
3459 msgstr ""
3460
3461 # type: textblock
3462 #: ../src/guestfs.pod:1794
3463 msgid ""
3464 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3465 "asynchronously at any time (eg. due to some internal error), and that causes "
3466 "the state to transition back to CONFIG."
3467 msgstr ""
3468
3469 # type: textblock
3470 #: ../src/guestfs.pod:1798
3471 msgid ""
3472 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3473 "issued when in the CONFIG state."
3474 msgstr ""
3475
3476 # type: textblock
3477 #: ../src/guestfs.pod:1801
3478 msgid ""
3479 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3480 "L</guestfs_launch> blocks until the child process is READY to accept "
3481 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3482 "moves the state from CONFIG to LAUNCHING while it is running."
3483 msgstr ""
3484
3485 # type: textblock
3486 #: ../src/guestfs.pod:1807
3487 msgid ""
3488 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3489 "state.  These API calls block waiting for the command to be carried out "
3490 "(ie. the state to transition to BUSY and then back to READY).  There are no "
3491 "non-blocking versions, and no way to issue more than one command per handle "
3492 "at the same time."
3493 msgstr ""
3494
3495 # type: textblock
3496 #: ../src/guestfs.pod:1813
3497 msgid ""
3498 "Finally, the child process sends asynchronous messages back to the main "
3499 "program, such as kernel log messages.  You can register a callback to "
3500 "receive these messages."
3501 msgstr ""
3502
3503 # type: =head1
3504 #: ../src/guestfs.pod:1817
3505 msgid "INTERNALS"
3506 msgstr ""
3507
3508 # type: =head2
3509 #: ../src/guestfs.pod:1819
3510 msgid "COMMUNICATION PROTOCOL"
3511 msgstr ""
3512
3513 # type: textblock
3514 #: ../src/guestfs.pod:1821
3515 msgid ""
3516 "Don't rely on using this protocol directly.  This section documents how it "
3517 "currently works, but it may change at any time."
3518 msgstr ""
3519
3520 # type: textblock
3521 #: ../src/guestfs.pod:1824
3522 msgid ""
3523 "The protocol used to talk between the library and the daemon running inside "
3524 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3525 "1014, RFC 1832, RFC 4506)."
3526 msgstr ""
3527
3528 # type: textblock
3529 #: ../src/guestfs.pod:1828
3530 msgid ""
3531 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3532 "this file is automatically generated)."
3533 msgstr ""
3534
3535 # type: textblock
3536 #: ../src/guestfs.pod:1831
3537 msgid ""
3538 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3539 "and C<FileOut> parameters, which are handled with very simple request/reply "
3540 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3541 "parameters, which use the same request and reply messages, but they may also "
3542 "be followed by files sent using a chunked encoding."
3543 msgstr ""
3544
3545 # type: =head3
3546 #: ../src/guestfs.pod:1838
3547 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3548 msgstr ""
3549
3550 # type: textblock
3551 #: ../src/guestfs.pod:1840
3552 msgid "For ordinary functions, the request message is:"
3553 msgstr ""
3554
3555 # type: verbatim
3556 #: ../src/guestfs.pod:1842
3557 #, no-wrap
3558 msgid ""
3559 " total length (header + arguments,\n"
3560 "      but not including the length word itself)\n"
3561 " struct guestfs_message_header (encoded as XDR)\n"
3562 " struct guestfs_<foo>_args (encoded as XDR)\n"
3563 "\n"
3564 msgstr ""
3565
3566 # type: textblock
3567 #: ../src/guestfs.pod:1847
3568 msgid ""
3569 "The total length field allows the daemon to allocate a fixed size buffer "
3570 "into which it slurps the rest of the message.  As a result, the total length "
3571 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3572 "effective size of any request is limited to somewhere under this size."
3573 msgstr ""
3574
3575 # type: textblock
3576 #: ../src/guestfs.pod:1853
3577 msgid ""
3578 "Note also that many functions don't take any arguments, in which case the "
3579 "C<guestfs_I<foo>_args> is completely omitted."
3580 msgstr ""
3581
3582 # type: textblock
3583 #: ../src/guestfs.pod:1856
3584 msgid ""
3585 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3586 "receiver knows what type of args structure to expect, or none at all."
3587 msgstr ""
3588
3589 # type: textblock
3590 #: ../src/guestfs.pod:1860
3591 msgid "The reply message for ordinary functions is:"
3592 msgstr ""
3593
3594 # type: verbatim
3595 #: ../src/guestfs.pod:1862
3596 #, no-wrap
3597 msgid ""
3598 " total length (header + ret,\n"
3599 "      but not including the length word itself)\n"
3600 " struct guestfs_message_header (encoded as XDR)\n"
3601 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3602 "\n"
3603 msgstr ""
3604
3605 # type: textblock
3606 #: ../src/guestfs.pod:1867
3607 msgid ""
3608 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3609 "functions that return no formal return values."
3610 msgstr ""
3611
3612 # type: textblock
3613 #: ../src/guestfs.pod:1870
3614 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3615 msgstr ""
3616
3617 # type: textblock
3618 #: ../src/guestfs.pod:1873
3619 msgid ""
3620 "In the case of an error, a flag is set in the header, and the reply message "
3621 "is slightly changed:"
3622 msgstr ""
3623
3624 # type: verbatim
3625 #: ../src/guestfs.pod:1876
3626 #, no-wrap
3627 msgid ""
3628 " total length (header + error,\n"
3629 "      but not including the length word itself)\n"
3630 " struct guestfs_message_header (encoded as XDR)\n"
3631 " struct guestfs_message_error (encoded as XDR)\n"
3632 "\n"
3633 msgstr ""
3634
3635 # type: textblock
3636 #: ../src/guestfs.pod:1881
3637 msgid ""
3638 "The C<guestfs_message_error> structure contains the error message as a "
3639 "string."
3640 msgstr ""
3641
3642 # type: =head3
3643 #: ../src/guestfs.pod:1884
3644 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3645 msgstr ""
3646
3647 # type: textblock
3648 #: ../src/guestfs.pod:1886
3649 msgid ""
3650 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3651 "The normal request message is sent (see above).  However this is followed by "
3652 "a sequence of file chunks."
3653 msgstr ""
3654
3655 # type: verbatim
3656 #: ../src/guestfs.pod:1890
3657 #, no-wrap
3658 msgid ""
3659 " total length (header + arguments,\n"
3660 "      but not including the length word itself,\n"
3661 "      and not including the chunks)\n"
3662 " struct guestfs_message_header (encoded as XDR)\n"
3663 " struct guestfs_<foo>_args (encoded as XDR)\n"
3664 " sequence of chunks for FileIn param #0\n"
3665 " sequence of chunks for FileIn param #1 etc.\n"
3666 "\n"
3667 msgstr ""
3668
3669 # type: textblock
3670 #: ../src/guestfs.pod:1898
3671 msgid "The \"sequence of chunks\" is:"
3672 msgstr ""
3673
3674 # type: verbatim
3675 #: ../src/guestfs.pod:1900
3676 #, no-wrap
3677 msgid ""
3678 " length of chunk (not including length word itself)\n"
3679 " struct guestfs_chunk (encoded as XDR)\n"
3680 " length of chunk\n"
3681 " struct guestfs_chunk (encoded as XDR)\n"
3682 "   ...\n"
3683 " length of chunk\n"
3684 " struct guestfs_chunk (with data.data_len == 0)\n"
3685 "\n"
3686 msgstr ""
3687
3688 # type: textblock
3689 #: ../src/guestfs.pod:1908
3690 msgid ""
3691 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3692 "is set in the final chunk to indicate either successful completion or early "
3693 "cancellation."
3694 msgstr ""
3695
3696 # type: textblock
3697 #: ../src/guestfs.pod:1912
3698 msgid ""
3699 "At time of writing there are no functions that have more than one FileIn "
3700 "parameter.  However this is (theoretically) supported, by sending the "
3701 "sequence of chunks for each FileIn parameter one after another (from left to "
3702 "right)."
3703 msgstr ""
3704
3705 # type: textblock
3706 #: ../src/guestfs.pod:1917
3707 msgid ""
3708 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3709 "transfer.  The library does this by sending a chunk with a special flag set "
3710 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3711 "RPC, does I<not> send any reply, and goes back to reading the next request."
3712 msgstr ""
3713
3714 # type: textblock
3715 #: ../src/guestfs.pod:1923
3716 msgid ""
3717 "The daemon may also cancel.  It does this by writing a special word "
3718 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3719 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3720 "cancel chunk).  The special word is chosen so that even if cancellation "
3721 "happens right at the end of the transfer (after the library has finished "
3722 "writing and has started listening for the reply), the \"spurious\" cancel "
3723 "flag will not be confused with the reply message."
3724 msgstr ""
3725
3726 # type: textblock
3727 #: ../src/guestfs.pod:1932
3728 msgid ""
3729 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3730 "limit), and also files where the size is not known in advance (eg. from "
3731 "pipes or sockets).  However the chunks are rather small "
3732 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3733 "to keep much in memory."
3734 msgstr ""
3735
3736 # type: =head3
3737 #: ../src/guestfs.pod:1938
3738 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3739 msgstr ""
3740
3741 # type: textblock
3742 #: ../src/guestfs.pod:1940
3743 msgid ""
3744 "The protocol for FileOut parameters is exactly the same as for FileIn "
3745 "parameters, but with the roles of daemon and library reversed."
3746 msgstr ""
3747
3748 # type: verbatim
3749 #: ../src/guestfs.pod:1943
3750 #, no-wrap
3751 msgid ""
3752 " total length (header + ret,\n"
3753 "      but not including the length word itself,\n"
3754 "      and not including the chunks)\n"
3755 " struct guestfs_message_header (encoded as XDR)\n"
3756 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3757 " sequence of chunks for FileOut param #0\n"
3758 " sequence of chunks for FileOut param #1 etc.\n"
3759 "\n"
3760 msgstr ""
3761
3762 # type: =head3
3763 #: ../src/guestfs.pod:1951
3764 msgid "INITIAL MESSAGE"
3765 msgstr ""
3766
3767 # type: textblock
3768 #: ../src/guestfs.pod:1953
3769 msgid ""
3770 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3771 "which indicates that the guest and daemon is alive.  This is what "
3772 "L</guestfs_launch> waits for."
3773 msgstr ""
3774
3775 # type: =head3
3776 #: ../src/guestfs.pod:1957
3777 msgid "PROGRESS NOTIFICATION MESSAGES"
3778 msgstr ""
3779
3780 # type: textblock
3781 #: ../src/guestfs.pod:1959
3782 msgid ""
3783 "The daemon may send progress notification messages at any time.  These are "
3784 "distinguished by the normal length word being replaced by "
3785 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3786 msgstr ""
3787
3788 # type: textblock
3789 #: ../src/guestfs.pod:1963
3790 msgid ""
3791 "The library turns them into progress callbacks (see "
3792 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3793 "discards them if not."
3794 msgstr ""
3795
3796 # type: textblock
3797 #: ../src/guestfs.pod:1967
3798 msgid ""
3799 "The daemon self-limits the frequency of progress messages it sends (see "
3800 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3801 "messages."
3802 msgstr ""
3803
3804 # type: =head1
3805 #: ../src/guestfs.pod:1971
3806 msgid "LIBGUESTFS VERSION NUMBERS"
3807 msgstr ""
3808
3809 # type: textblock
3810 #: ../src/guestfs.pod:1973
3811 msgid ""
3812 "Since April 2010, libguestfs has started to make separate development and "
3813 "stable releases, along with corresponding branches in our git repository.  "
3814 "These separate releases can be identified by version number:"
3815 msgstr ""
3816
3817 # type: verbatim
3818 #: ../src/guestfs.pod:1978
3819 #, no-wrap
3820 msgid ""
3821 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3822 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3823 "       |\n"
3824 "       v\n"
3825 " 1  .  3  .  5\n"
3826 " ^           ^\n"
3827 " |           |\n"
3828 " |           `-------- sub-version\n"
3829 " |\n"
3830 " `------ always '1' because we don't change the ABI\n"
3831 "\n"
3832 msgstr ""
3833
3834 # type: textblock
3835 #: ../src/guestfs.pod:1989
3836 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3837 msgstr ""
3838
3839 # type: textblock
3840 #: ../src/guestfs.pod:1991
3841 msgid ""
3842 "As time passes we cherry pick fixes from the development branch and backport "
3843 "those into the stable branch, the effect being that the stable branch should "
3844 "get more stable and less buggy over time.  So the stable releases are ideal "
3845 "for people who don't need new features but would just like the software to "
3846 "work."
3847 msgstr ""
3848
3849 # type: textblock
3850 #: ../src/guestfs.pod:1997
3851 msgid "Our criteria for backporting changes are:"
3852 msgstr ""
3853
3854 # type: textblock
3855 #: ../src/guestfs.pod:2003
3856 msgid ""
3857 "Documentation changes which don't affect any code are backported unless the "
3858 "documentation refers to a future feature which is not in stable."
3859 msgstr ""
3860
3861 # type: textblock
3862 #: ../src/guestfs.pod:2009
3863 msgid ""
3864 "Bug fixes which are not controversial, fix obvious problems, and have been "
3865 "well tested are backported."
3866 msgstr ""
3867
3868 # type: textblock
3869 #: ../src/guestfs.pod:2014
3870 msgid ""
3871 "Simple rearrangements of code which shouldn't affect how it works get "
3872 "backported.  This is so that the code in the two branches doesn't get too "
3873 "far out of step, allowing us to backport future fixes more easily."
3874 msgstr ""
3875
3876 # type: textblock
3877 #: ../src/guestfs.pod:2020
3878 msgid ""
3879 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3880 "exceptional case: the new feature is required in order to implement an "
3881 "important bug fix."
3882 msgstr ""
3883
3884 # type: textblock
3885 #: ../src/guestfs.pod:2026
3886 msgid ""
3887 "A new stable branch starts when we think the new features in development are "
3888 "substantial and compelling enough over the current stable branch to warrant "
3889 "it.  When that happens we create new stable and development versions 1.N.0 "
3890 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3891 "stable at this point, but by backporting fixes from development, that branch "
3892 "will stabilize over time."
3893 msgstr ""
3894
3895 # type: =head1
3896 #: ../src/guestfs.pod:2034 ../fish/guestfish.pod:914 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330 ../tools/virt-rescue.pl:255
3897 msgid "ENVIRONMENT VARIABLES"
3898 msgstr ""
3899
3900 # type: =item
3901 #: ../src/guestfs.pod:2038 ../fish/guestfish.pod:940
3902 msgid "LIBGUESTFS_APPEND"
3903 msgstr ""
3904
3905 # type: textblock
3906 #: ../src/guestfs.pod:2040 ../fish/guestfish.pod:942
3907 msgid "Pass additional options to the guest kernel."
3908 msgstr ""
3909
3910 # type: =item
3911 #: ../src/guestfs.pod:2042 ../fish/guestfish.pod:944
3912 msgid "LIBGUESTFS_DEBUG"
3913 msgstr ""
3914
3915 # type: textblock
3916 #: ../src/guestfs.pod:2044
3917 msgid ""
3918 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3919 "effect as calling C<guestfs_set_verbose (g, 1)>."
3920 msgstr ""
3921
3922 # type: =item
3923 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:949
3924 msgid "LIBGUESTFS_MEMSIZE"
3925 msgstr ""
3926
3927 # type: textblock
3928 #: ../src/guestfs.pod:2049 ../fish/guestfish.pod:951
3929 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3930 msgstr ""
3931
3932 # type: verbatim
3933 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:954
3934 #, no-wrap
3935 msgid ""
3936 " LIBGUESTFS_MEMSIZE=700\n"
3937 "\n"
3938 msgstr ""
3939
3940 # type: =item
3941 #: ../src/guestfs.pod:2054 ../fish/guestfish.pod:956
3942 msgid "LIBGUESTFS_PATH"
3943 msgstr ""
3944
3945 # type: textblock
3946 #: ../src/guestfs.pod:2056
3947 msgid ""
3948 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3949 "the discussion of paths in section PATH above."
3950 msgstr ""
3951
3952 # type: =item
3953 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:961
3954 msgid "LIBGUESTFS_QEMU"
3955 msgstr ""
3956
3957 # type: textblock
3958 #: ../src/guestfs.pod:2061 ../fish/guestfish.pod:963
3959 msgid ""
3960 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3961 "which was found at compile time by the configure script is used."
3962 msgstr ""
3963
3964 # type: textblock
3965 #: ../src/guestfs.pod:2065
3966 msgid "See also L</QEMU WRAPPERS> above."
3967 msgstr ""
3968
3969 # type: =item
3970 #: ../src/guestfs.pod:2067 ../fish/guestfish.pod:967
3971 msgid "LIBGUESTFS_TRACE"
3972 msgstr ""
3973
3974 # type: textblock
3975 #: ../src/guestfs.pod:2069
3976 msgid ""
3977 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3978 "effect as calling C<guestfs_set_trace (g, 1)>."
3979 msgstr ""
3980
3981 # type: =item
3982 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:976
3983 msgid "TMPDIR"
3984 msgstr ""
3985
3986 # type: textblock
3987 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:978
3988 msgid "Location of temporary directory, defaults to C</tmp>."
3989 msgstr ""
3990
3991 # type: textblock
3992 #: ../src/guestfs.pod:2076 ../fish/guestfish.pod:980
3993 msgid ""
3994 "If libguestfs was compiled to use the supermin appliance then the real "
3995 "appliance is cached in this directory, shared between all handles belonging "
3996 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3997 "use in case C</tmp> is not large enough."
3998 msgstr ""
3999
4000 # type: =head1
4001 #: ../src/guestfs.pod:2084 ../fish/guestfish.pod:1038 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233 ../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-tar.pl:281 ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
4002 msgid "SEE ALSO"
4003 msgstr ""
4004
4005 # type: textblock
4006 #: ../src/guestfs.pod:2086
4007 msgid ""
4008 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
4009 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
4010 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
4011 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4012 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4013 msgstr ""
4014
4015 # type: textblock
4016 #: ../src/guestfs.pod:2104
4017 msgid ""
4018 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
4019 "L<lvm(8)>, L<disktype(1)>."
4020 msgstr ""
4021
4022 # type: =head1
4023 #: ../src/guestfs.pod:2111 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
4024 msgid "BUGS"
4025 msgstr ""
4026
4027 # type: textblock
4028 #: ../src/guestfs.pod:2113
4029 msgid "To get a list of bugs against libguestfs use this link:"
4030 msgstr ""
4031
4032 # type: textblock
4033 #: ../src/guestfs.pod:2115
4034 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
4035 msgstr ""
4036
4037 # type: textblock
4038 #: ../src/guestfs.pod:2117
4039 msgid "To report a new bug against libguestfs use this link:"
4040 msgstr ""
4041
4042 # type: textblock
4043 #: ../src/guestfs.pod:2119
4044 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
4045 msgstr ""
4046
4047 # type: textblock
4048 #: ../src/guestfs.pod:2121
4049 msgid "When reporting a bug, please check:"
4050 msgstr ""
4051
4052 # type: textblock
4053 #: ../src/guestfs.pod:2127
4054 msgid "That the bug hasn't been reported already."
4055 msgstr ""
4056
4057 # type: textblock
4058 #: ../src/guestfs.pod:2131
4059 msgid "That you are testing a recent version."
4060 msgstr ""
4061
4062 # type: textblock
4063 #: ../src/guestfs.pod:2135
4064 msgid "Describe the bug accurately, and give a way to reproduce it."
4065 msgstr ""
4066
4067 # type: textblock
4068 #: ../src/guestfs.pod:2139
4069 msgid ""
4070 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4071 "bug report."
4072 msgstr ""
4073
4074 # type: =head1
4075 #: ../src/guestfs.pod:2144 ../fish/guestfish.pod:1055 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4076 msgid "AUTHORS"
4077 msgstr ""
4078
4079 # type: textblock
4080 #: ../src/guestfs.pod:2146 ../fish/guestfish.pod:1057 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4081 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4082 msgstr ""
4083
4084 # type: =head1
4085 #: ../src/guestfs.pod:2148 ../fish/guestfish.pod:1059 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248 ../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-tar.pl:296 ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
4086 msgid "COPYRIGHT"
4087 msgstr ""
4088
4089 # type: textblock
4090 #: ../src/guestfs.pod:2150 ../fish/guestfish.pod:1061 ../fuse/guestmount.pod:250
4091 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4092 msgstr ""
4093
4094 # type: textblock
4095 #: ../src/guestfs.pod:2153
4096 msgid ""
4097 "This library is free software; you can redistribute it and/or modify it "
4098 "under the terms of the GNU Lesser General Public License as published by the "
4099 "Free Software Foundation; either version 2 of the License, or (at your "
4100 "option) any later version."
4101 msgstr ""
4102
4103 # type: textblock
4104 #: ../src/guestfs.pod:2158
4105 msgid ""
4106 "This library is distributed in the hope that it will be useful, but WITHOUT "
4107 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4108 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4109 "for more details."
4110 msgstr ""
4111
4112 # type: textblock
4113 #: ../src/guestfs.pod:2163
4114 msgid ""
4115 "You should have received a copy of the GNU Lesser General Public License "
4116 "along with this library; if not, write to the Free Software Foundation, "
4117 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4118 msgstr ""
4119
4120 # type: =head2
4121 #: ../src/guestfs-actions.pod:1
4122 msgid "guestfs_add_cdrom"
4123 msgstr ""
4124
4125 # type: verbatim
4126 #: ../src/guestfs-actions.pod:3
4127 #, no-wrap
4128 msgid ""
4129 " int\n"
4130 " guestfs_add_cdrom (guestfs_h *g,\n"
4131 "                    const char *filename);\n"
4132 "\n"
4133 msgstr ""
4134
4135 # type: textblock
4136 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4137 msgid "This function adds a virtual CD-ROM disk image to the guest."
4138 msgstr ""
4139
4140 # type: textblock
4141 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4142 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4143 msgstr ""
4144
4145 # type: textblock
4146 #: ../src/guestfs-actions.pod:17
4147 msgid ""
4148 "This call checks for the existence of C<filename>.  This stops you from "
4149 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4150 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4151 "instead."
4152 msgstr ""
4153
4154 # type: textblock
4155 #: ../src/guestfs-actions.pod:24
4156 msgid ""
4157 "If you just want to add an ISO file (often you use this as an efficient way "
4158 "to transfer large files into the guest), then you should probably use "
4159 "C<guestfs_add_drive_ro> instead."
4160 msgstr ""
4161
4162 # type: textblock
4163 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126 ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224 ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428 ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487 ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633 ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779 ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090 ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161 ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262 ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2418 ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:3182 ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3383 ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3589 ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3706 ../src/guestfs-actions.pod:3742 ../src/guestfs-actions.pod:3758 ../src/guestfs-actions.pod:3771 ../src/guestfs-actions.pod:3786 ../src/guestfs-actions.pod:3803 ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:3929 ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:4092 ../src/guestfs-actions.pod:4112 ../src/guestfs-actions.pod:4161 ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4211 ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4259 ../src/guestfs-actions.pod:4272 ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4337 ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4452 ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4566 ../src/guestfs-actions.pod:4700 ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4829 ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4912 ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:4939 ../src/guestfs-actions.pod:5228 ../src/guestfs-actions.pod:5247 ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5313 ../src/guestfs-actions.pod:5329 ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5369 ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5487 ../src/guestfs-actions.pod:5506 ../src/guestfs-actions.pod:5523 ../src/guestfs-actions.pod:5551 ../src/guestfs-actions.pod:5575 ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5648 ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5704 ../src/guestfs-actions.pod:5727 ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5982 ../src/guestfs-actions.pod:5994 ../src/guestfs-actions.pod:6007 ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6042 ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6096 ../src/guestfs-actions.pod:6155 ../src/guestfs-actions.pod:6172 ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6204 ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6234 ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6290 ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6345 ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6376 ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:6642 ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6787 ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6879 ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6927
4164 msgid "This function returns 0 on success or -1 on error."
4165 msgstr ""
4166
4167 # type: textblock
4168 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4169 msgid ""
4170 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4171 "instead."
4172 msgstr ""
4173
4174 # type: textblock
4175 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243 ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942 ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6990 ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156 ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951 ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322 ../fish/guestfish-actions.pod:4549 ../fish/guestfish-actions.pod:4646
4176 msgid ""
4177 "Deprecated functions will not be removed from the API, but the fact that "
4178 "they are deprecated indicates that there are problems with correct use of "
4179 "these functions."
4180 msgstr ""
4181
4182 # type: textblock
4183 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128 ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3199 ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:5408 ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5635 ../src/guestfs-actions.pod:6098 ../src/guestfs-actions.pod:6223 ../src/guestfs-actions.pod:6735
4184 msgid "(Added in 0.3)"
4185 msgstr ""
4186
4187 # type: =head2
4188 #: ../src/guestfs-actions.pod:41
4189 msgid "guestfs_add_domain"
4190 msgstr ""
4191
4192 # type: verbatim
4193 #: ../src/guestfs-actions.pod:43
4194 #, no-wrap
4195 msgid ""
4196 " int\n"
4197 " guestfs_add_domain (guestfs_h *g,\n"
4198 "                     const char *dom,\n"
4199 "                     ...);\n"
4200 "\n"
4201 msgstr ""
4202
4203 # type: textblock
4204 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4205 msgid ""
4206 "You may supply a list of optional arguments to this call.  Use zero or more "
4207 "of the following pairs of parameters, and terminate the list with C<-1> on "
4208 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4209 msgstr ""
4210
4211 # type: verbatim
4212 #: ../src/guestfs-actions.pod:53
4213 #, no-wrap
4214 msgid ""
4215 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4216 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4217 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4218 "\n"
4219 msgstr ""
4220
4221 # type: textblock
4222 #: ../src/guestfs-actions.pod:57
4223 msgid ""
4224 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4225 "It works by connecting to libvirt, requesting the domain and domain XML from "
4226 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4227 "one."
4228 msgstr ""
4229
4230 # type: textblock
4231 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4232 msgid ""
4233 "The number of disks added is returned.  This operation is atomic: if an "
4234 "error is returned, then no disks are added."
4235 msgstr ""
4236
4237 # type: textblock
4238 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4239 msgid ""
4240 "This function does some minimal checks to make sure the libvirt domain is "
4241 "not running (unless C<readonly> is true).  In a future version we will try "
4242 "to acquire the libvirt lock on each disk."
4243 msgstr ""
4244
4245 # type: textblock
4246 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4247 msgid ""
4248 "Disks must be accessible locally.  This often means that adding disks from a "
4249 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4250 "unless those disks are accessible via the same device path locally too."
4251 msgstr ""
4252
4253 # type: textblock
4254 #: ../src/guestfs-actions.pod:74
4255 msgid ""
4256 "The optional C<libvirturi> parameter sets the libvirt URI (see "
4257 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
4258 "default libvirt URI (or one set through an environment variable, see the "
4259 "libvirt documentation for full details).  If you are using the C API "
4260 "directly then it is more flexible to create the libvirt connection object "
4261 "yourself, get the domain object, and call C<guestfs_add_libvirt_dom>."
4262 msgstr ""
4263
4264 # type: textblock
4265 #: ../src/guestfs-actions.pod:82
4266 msgid ""
4267 "The other optional parameters are passed directly through to "
4268 "C<guestfs_add_drive_opts>."
4269 msgstr ""
4270
4271 # type: textblock
4272 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:336 ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728 ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307 ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864 ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003 ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:2344 ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5035 ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6746 ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:6772
4273 msgid "On error this function returns -1."
4274 msgstr ""
4275
4276 # type: =head2
4277 #: ../src/guestfs-actions.pod:87
4278 msgid "guestfs_add_domain_va"
4279 msgstr ""
4280
4281 # type: verbatim
4282 #: ../src/guestfs-actions.pod:89
4283 #, no-wrap
4284 msgid ""
4285 " int\n"
4286 " guestfs_add_domain_va (guestfs_h *g,\n"
4287 "                        const char *dom,\n"
4288 "                        va_list args);\n"
4289 "\n"
4290 msgstr ""
4291
4292 # type: textblock
4293 #: ../src/guestfs-actions.pod:94
4294 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4295 msgstr ""
4296
4297 # type: textblock
4298 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107 ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4299 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4300 msgstr ""
4301
4302 # type: =head2
4303 #: ../src/guestfs-actions.pod:98
4304 msgid "guestfs_add_domain_argv"
4305 msgstr ""
4306
4307 # type: verbatim
4308 #: ../src/guestfs-actions.pod:100
4309 #, no-wrap
4310 msgid ""
4311 " int\n"
4312 " guestfs_add_domain_argv (guestfs_h *g,\n"
4313 "                          const char *dom,\n"
4314 "                          const struct guestfs_add_domain_argv *optargs);\n"
4315 "\n"
4316 msgstr ""
4317
4318 # type: textblock
4319 #: ../src/guestfs-actions.pod:105
4320 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4321 msgstr ""
4322
4323 # type: =head2
4324 #: ../src/guestfs-actions.pod:109
4325 msgid "guestfs_add_drive"
4326 msgstr ""
4327
4328 # type: verbatim
4329 #: ../src/guestfs-actions.pod:111
4330 #, no-wrap
4331 msgid ""
4332 " int\n"
4333 " guestfs_add_drive (guestfs_h *g,\n"
4334 "                    const char *filename);\n"
4335 "\n"
4336 msgstr ""
4337
4338 # type: textblock
4339 #: ../src/guestfs-actions.pod:115
4340 msgid ""
4341 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4342 "optional parameters, so the disk is added writable, with the format being "
4343 "detected automatically."
4344 msgstr ""
4345
4346 # type: textblock
4347 #: ../src/guestfs-actions.pod:119
4348 msgid ""
4349 "Automatic detection of the format opens you up to a potential security hole "
4350 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4351 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4352 "you should think about replacing calls to this function with calls to "
4353 "C<guestfs_add_drive_opts>, and specifying the format."
4354 msgstr ""
4355
4356 # type: =head2
4357 #: ../src/guestfs-actions.pod:130
4358 msgid "guestfs_add_drive_opts"
4359 msgstr ""
4360
4361 # type: verbatim
4362 #: ../src/guestfs-actions.pod:132
4363 #, no-wrap
4364 msgid ""
4365 " int\n"
4366 " guestfs_add_drive_opts (guestfs_h *g,\n"
4367 "                         const char *filename,\n"
4368 "                         ...);\n"
4369 "\n"
4370 msgstr ""
4371
4372 # type: verbatim
4373 #: ../src/guestfs-actions.pod:142
4374 #, no-wrap
4375 msgid ""
4376 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4377 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4378 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4379 "\n"
4380 msgstr ""
4381
4382 # type: textblock
4383 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4384 msgid ""
4385 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4386 "The first time you call this function, the disk appears as C</dev/sda>, the "
4387 "second time as C</dev/sdb>, and so on."
4388 msgstr ""
4389
4390 # type: textblock
4391 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4392 msgid ""
4393 "You don't necessarily need to be root when using libguestfs.  However you "
4394 "obviously do need sufficient permissions to access the filename for whatever "
4395 "operations you want to perform (ie. read access if you just want to read the "
4396 "image or write access if you want to modify the image)."
4397 msgstr ""
4398
4399 # type: textblock
4400 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4401 msgid "This call checks that C<filename> exists."
4402 msgstr ""
4403
4404 # type: textblock
4405 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4406 msgid "The optional arguments are:"
4407 msgstr ""
4408
4409 # type: =item
4410 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4411 msgid "C<readonly>"
4412 msgstr ""
4413
4414 # type: textblock
4415 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4416 msgid ""
4417 "If true then the image is treated as read-only.  Writes are still allowed, "
4418 "but they are stored in a temporary snapshot overlay which is discarded at "
4419 "the end.  The disk that you add is not modified."
4420 msgstr ""
4421
4422 # type: =item
4423 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4424 msgid "C<format>"
4425 msgstr ""
4426
4427 # type: textblock
4428 #: ../src/guestfs-actions.pod:171
4429 msgid ""
4430 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4431 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4432 "Possible formats include C<raw> and C<qcow2>."
4433 msgstr ""
4434
4435 # type: textblock
4436 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4437 msgid ""
4438 "Automatic detection of the format opens you up to a potential security hole "
4439 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4440 "RHBZ#642934.  Specifying the format closes this security hole."
4441 msgstr ""
4442
4443 # type: =item
4444 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4445 msgid "C<iface>"
4446 msgstr ""
4447
4448 # type: textblock
4449 #: ../src/guestfs-actions.pod:182
4450 msgid ""
4451 "This rarely-used option lets you emulate the behaviour of the deprecated "
4452 "C<guestfs_add_drive_with_if> call (q.v.)"
4453 msgstr ""
4454
4455 # type: textblock
4456 #: ../src/guestfs-actions.pod:189
4457 msgid "(Added in 1.5.23)"
4458 msgstr ""
4459
4460 # type: =head2
4461 #: ../src/guestfs-actions.pod:191
4462 msgid "guestfs_add_drive_opts_va"
4463 msgstr ""
4464
4465 # type: verbatim
4466 #: ../src/guestfs-actions.pod:193
4467 #, no-wrap
4468 msgid ""
4469 " int\n"
4470 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4471 "                            const char *filename,\n"
4472 "                            va_list args);\n"
4473 "\n"
4474 msgstr ""
4475
4476 # type: textblock
4477 #: ../src/guestfs-actions.pod:198
4478 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4479 msgstr ""
4480
4481 # type: =head2
4482 #: ../src/guestfs-actions.pod:202
4483 msgid "guestfs_add_drive_opts_argv"
4484 msgstr ""
4485
4486 # type: verbatim
4487 #: ../src/guestfs-actions.pod:204
4488 #, no-wrap
4489 msgid ""
4490 " int\n"
4491 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4492 "                              const char *filename,\n"
4493 "                              const struct guestfs_add_drive_opts_argv "
4494 "*optargs);\n"
4495 "\n"
4496 msgstr ""
4497
4498 # type: textblock
4499 #: ../src/guestfs-actions.pod:209
4500 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4501 msgstr ""
4502
4503 # type: =head2
4504 #: ../src/guestfs-actions.pod:213
4505 msgid "guestfs_add_drive_ro"
4506 msgstr ""
4507
4508 # type: verbatim
4509 #: ../src/guestfs-actions.pod:215
4510 #, no-wrap
4511 msgid ""
4512 " int\n"
4513 " guestfs_add_drive_ro (guestfs_h *g,\n"
4514 "                       const char *filename);\n"
4515 "\n"
4516 msgstr ""
4517
4518 # type: textblock
4519 #: ../src/guestfs-actions.pod:219
4520 msgid ""
4521 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4522 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4523 "disk is added read-only, with the format being detected automatically."
4524 msgstr ""
4525
4526 # type: textblock
4527 #: ../src/guestfs-actions.pod:226
4528 msgid "(Added in 1.0.38)"
4529 msgstr ""
4530
4531 # type: =head2
4532 #: ../src/guestfs-actions.pod:228
4533 msgid "guestfs_add_drive_ro_with_if"
4534 msgstr ""
4535
4536 # type: verbatim
4537 #: ../src/guestfs-actions.pod:230
4538 #, no-wrap
4539 msgid ""
4540 " int\n"
4541 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4542 "                               const char *filename,\n"
4543 "                               const char *iface);\n"
4544 "\n"
4545 msgstr ""
4546
4547 # type: textblock
4548 #: ../src/guestfs-actions.pod:235
4549 msgid ""
4550 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4551 "QEMU interface emulation to use at run time."
4552 msgstr ""
4553
4554 # type: textblock
4555 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268 ../src/guestfs-actions.pod:2303
4556 msgid "(Added in 1.0.84)"
4557 msgstr ""
4558
4559 # type: =head2
4560 #: ../src/guestfs-actions.pod:249
4561 msgid "guestfs_add_drive_with_if"
4562 msgstr ""
4563
4564 # type: verbatim
4565 #: ../src/guestfs-actions.pod:251
4566 #, no-wrap
4567 msgid ""
4568 " int\n"
4569 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4570 "                            const char *filename,\n"
4571 "                            const char *iface);\n"
4572 "\n"
4573 msgstr ""
4574
4575 # type: textblock
4576 #: ../src/guestfs-actions.pod:256
4577 msgid ""
4578 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4579 "QEMU interface emulation to use at run time."
4580 msgstr ""
4581
4582 # type: =head2
4583 #: ../src/guestfs-actions.pod:270
4584 msgid "guestfs_aug_clear"
4585 msgstr ""
4586
4587 # type: verbatim
4588 #: ../src/guestfs-actions.pod:272
4589 #, no-wrap
4590 msgid ""
4591 " int\n"
4592 " guestfs_aug_clear (guestfs_h *g,\n"
4593 "                    const char *augpath);\n"
4594 "\n"
4595 msgstr ""
4596
4597 # type: textblock
4598 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4599 msgid ""
4600 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4601 "L<augtool(1)> C<clear> command."
4602 msgstr ""
4603
4604 # type: textblock
4605 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4606 msgid "(Added in 1.3.4)"
4607 msgstr ""
4608
4609 # type: =head2
4610 #: ../src/guestfs-actions.pod:283
4611 msgid "guestfs_aug_close"
4612 msgstr ""
4613
4614 # type: verbatim
4615 #: ../src/guestfs-actions.pod:285
4616 #, no-wrap
4617 msgid ""
4618 " int\n"
4619 " guestfs_aug_close (guestfs_h *g);\n"
4620 "\n"
4621 msgstr ""
4622
4623 # type: textblock
4624 #: ../src/guestfs-actions.pod:288
4625 msgid ""
4626 "Close the current Augeas handle and free up any resources used by it.  After "
4627 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4628 "any other Augeas functions."
4629 msgstr ""
4630
4631 # type: textblock
4632 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320 ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430 ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475 ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535 ../src/guestfs-actions.pod:5086
4633 msgid "(Added in 0.7)"
4634 msgstr ""
4635
4636 # type: =head2
4637 #: ../src/guestfs-actions.pod:297
4638 msgid "guestfs_aug_defnode"
4639 msgstr ""
4640
4641 # type: verbatim
4642 #: ../src/guestfs-actions.pod:299
4643 #, no-wrap
4644 msgid ""
4645 " struct guestfs_int_bool *\n"
4646 " guestfs_aug_defnode (guestfs_h *g,\n"
4647 "                      const char *name,\n"
4648 "                      const char *expr,\n"
4649 "                      const char *val);\n"
4650 "\n"
4651 msgstr ""
4652
4653 # type: textblock
4654 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4655 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4656 msgstr ""
4657
4658 # type: textblock
4659 #: ../src/guestfs-actions.pod:308
4660 msgid ""
4661 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4662 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4663 "containing that single node."
4664 msgstr ""
4665
4666 # type: textblock
4667 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4668 msgid ""
4669 "On success this returns a pair containing the number of nodes in the "
4670 "nodeset, and a boolean flag if a node was created."
4671 msgstr ""
4672
4673 # type: textblock
4674 #: ../src/guestfs-actions.pod:316
4675 msgid ""
4676 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4677 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4678 msgstr ""
4679
4680 # type: =head2
4681 #: ../src/guestfs-actions.pod:322
4682 msgid "guestfs_aug_defvar"
4683 msgstr ""
4684
4685 # type: verbatim
4686 #: ../src/guestfs-actions.pod:324
4687 #, no-wrap
4688 msgid ""
4689 " int\n"
4690 " guestfs_aug_defvar (guestfs_h *g,\n"
4691 "                     const char *name,\n"
4692 "                     const char *expr);\n"
4693 "\n"
4694 msgstr ""
4695
4696 # type: textblock
4697 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4698 msgid ""
4699 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4700 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4701 msgstr ""
4702
4703 # type: textblock
4704 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4705 msgid ""
4706 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4707 "evaluates to something which is not a nodeset."
4708 msgstr ""
4709
4710 # type: =head2
4711 #: ../src/guestfs-actions.pod:340
4712 msgid "guestfs_aug_get"
4713 msgstr ""
4714
4715 # type: verbatim
4716 #: ../src/guestfs-actions.pod:342
4717 #, no-wrap
4718 msgid ""
4719 " char *\n"
4720 " guestfs_aug_get (guestfs_h *g,\n"
4721 "                  const char *augpath);\n"
4722 "\n"
4723 msgstr ""
4724
4725 # type: textblock
4726 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4727 msgid ""
4728 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4729 "node, the C<value> is returned."
4730 msgstr ""
4731
4732 # type: textblock
4733 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927 ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046 ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341 ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644 ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824 ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936 ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556 ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:2823 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3328 ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3848 ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:5162 ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:6495 ../src/guestfs-actions.pod:6514 ../src/guestfs-actions.pod:6532 ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:6984
4734 msgid ""
4735 "This function returns a string, or NULL on error.  I<The caller must free "
4736 "the returned string after use>."
4737 msgstr ""
4738
4739 # type: =head2
4740 #: ../src/guestfs-actions.pod:354
4741 msgid "guestfs_aug_init"
4742 msgstr ""
4743
4744 # type: verbatim
4745 #: ../src/guestfs-actions.pod:356
4746 #, no-wrap
4747 msgid ""
4748 " int\n"
4749 " guestfs_aug_init (guestfs_h *g,\n"
4750 "                   const char *root,\n"
4751 "                   int flags);\n"
4752 "\n"
4753 msgstr ""
4754
4755 # type: textblock
4756 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4757 msgid ""
4758 "Create a new Augeas handle for editing configuration files.  If there was "
4759 "any previous Augeas handle associated with this guestfs session, then it is "
4760 "closed."
4761 msgstr ""
4762
4763 # type: textblock
4764 #: ../src/guestfs-actions.pod:365
4765 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4766 msgstr ""
4767
4768 # type: textblock
4769 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4770 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4771 msgstr ""
4772
4773 # type: textblock
4774 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4775 msgid ""
4776 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4777 "logical I<or> of the following integers:"
4778 msgstr ""
4779
4780 # type: =item
4781 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
4782 msgid "C<AUG_SAVE_BACKUP> = 1"
4783 msgstr ""
4784
4785 # type: textblock
4786 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
4787 msgid "Keep the original file with a C<.augsave> extension."
4788 msgstr ""
4789
4790 # type: =item
4791 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
4792 msgid "C<AUG_SAVE_NEWFILE> = 2"
4793 msgstr ""
4794
4795 # type: textblock
4796 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
4797 msgid ""
4798 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4799 "original.  Overrides C<AUG_SAVE_BACKUP>."
4800 msgstr ""
4801
4802 # type: =item
4803 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
4804 msgid "C<AUG_TYPE_CHECK> = 4"
4805 msgstr ""
4806
4807 # type: textblock
4808 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
4809 msgid "Typecheck lenses (can be expensive)."
4810 msgstr ""
4811
4812 # type: =item
4813 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
4814 msgid "C<AUG_NO_STDINC> = 8"
4815 msgstr ""
4816
4817 # type: textblock
4818 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
4819 msgid "Do not use standard load path for modules."
4820 msgstr ""
4821
4822 # type: =item
4823 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
4824 msgid "C<AUG_SAVE_NOOP> = 16"
4825 msgstr ""
4826
4827 # type: textblock
4828 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
4829 msgid "Make save a no-op, just record what would have been changed."
4830 msgstr ""
4831
4832 # type: =item
4833 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
4834 msgid "C<AUG_NO_LOAD> = 32"
4835 msgstr ""
4836
4837 # type: textblock
4838 #: ../src/guestfs-actions.pod:400
4839 msgid "Do not load the tree in C<guestfs_aug_init>."
4840 msgstr ""
4841
4842 # type: textblock
4843 #: ../src/guestfs-actions.pod:404
4844 msgid "To close the handle, you can call C<guestfs_aug_close>."
4845 msgstr ""
4846
4847 # type: textblock
4848 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
4849 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4850 msgstr ""
4851
4852 # type: =head2
4853 #: ../src/guestfs-actions.pod:412
4854 msgid "guestfs_aug_insert"
4855 msgstr ""
4856
4857 # type: verbatim
4858 #: ../src/guestfs-actions.pod:414
4859 #, no-wrap
4860 msgid ""
4861 " int\n"
4862 " guestfs_aug_insert (guestfs_h *g,\n"
4863 "                     const char *augpath,\n"
4864 "                     const char *label,\n"
4865 "                     int before);\n"
4866 "\n"
4867 msgstr ""
4868
4869 # type: textblock
4870 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
4871 msgid ""
4872 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4873 "or after C<path> (depending on the boolean flag C<before>)."
4874 msgstr ""
4875
4876 # type: textblock
4877 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
4878 msgid ""
4879 "C<path> must match exactly one existing node in the tree, and C<label> must "
4880 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4881 msgstr ""
4882
4883 # type: =head2
4884 #: ../src/guestfs-actions.pod:432
4885 msgid "guestfs_aug_load"
4886 msgstr ""
4887
4888 # type: verbatim
4889 #: ../src/guestfs-actions.pod:434
4890 #, no-wrap
4891 msgid ""
4892 " int\n"
4893 " guestfs_aug_load (guestfs_h *g);\n"
4894 "\n"
4895 msgstr ""
4896
4897 # type: textblock
4898 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
4899 msgid "Load files into the tree."
4900 msgstr ""
4901
4902 # type: textblock
4903 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
4904 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4905 msgstr ""
4906
4907 # type: =head2
4908 #: ../src/guestfs-actions.pod:446
4909 msgid "guestfs_aug_ls"
4910 msgstr ""
4911
4912 # type: verbatim
4913 #: ../src/guestfs-actions.pod:448
4914 #, no-wrap
4915 msgid ""
4916 " char **\n"
4917 " guestfs_aug_ls (guestfs_h *g,\n"
4918 "                 const char *augpath);\n"
4919 "\n"
4920 msgstr ""
4921
4922 # type: textblock
4923 #: ../src/guestfs-actions.pod:452
4924 msgid ""
4925 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4926 "sorting the resulting nodes into alphabetical order."
4927 msgstr ""
4928
4929 # type: textblock
4930 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471 ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065 ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148 ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183 ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250 ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:3248 ../src/guestfs-actions.pod:3310 ../src/guestfs-actions.pod:3415 ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:5082 ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5963 ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6837 ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6941 ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7006 ../src/guestfs-actions.pod:7025
4931 msgid ""
4932 "This function returns a NULL-terminated array of strings (like "
4933 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4934 "strings and the array after use>."
4935 msgstr ""
4936
4937 # type: textblock
4938 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3102 ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:3931 ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:5275 ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5301 ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:6347 ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6589 ../src/guestfs-actions.pod:6792 ../src/guestfs-actions.pod:6825
4939 msgid "(Added in 0.8)"
4940 msgstr ""
4941
4942 # type: =head2
4943 #: ../src/guestfs-actions.pod:461
4944 msgid "guestfs_aug_match"
4945 msgstr ""
4946
4947 # type: verbatim
4948 #: ../src/guestfs-actions.pod:463
4949 #, no-wrap
4950 msgid ""
4951 " char **\n"
4952 " guestfs_aug_match (guestfs_h *g,\n"
4953 "                    const char *augpath);\n"
4954 "\n"
4955 msgstr ""
4956
4957 # type: textblock
4958 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
4959 msgid ""
4960 "Returns a list of paths which match the path expression C<path>.  The "
4961 "returned paths are sufficiently qualified so that they match exactly one "
4962 "node in the current tree."
4963 msgstr ""
4964
4965 # type: =head2
4966 #: ../src/guestfs-actions.pod:477
4967 msgid "guestfs_aug_mv"
4968 msgstr ""
4969
4970 # type: verbatim
4971 #: ../src/guestfs-actions.pod:479
4972 #, no-wrap
4973 msgid ""
4974 " int\n"
4975 " guestfs_aug_mv (guestfs_h *g,\n"
4976 "                 const char *src,\n"
4977 "                 const char *dest);\n"
4978 "\n"
4979 msgstr ""
4980
4981 # type: textblock
4982 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
4983 msgid ""
4984 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4985 "C<dest> is overwritten if it exists."
4986 msgstr ""
4987
4988 # type: =head2
4989 #: ../src/guestfs-actions.pod:491
4990 msgid "guestfs_aug_rm"
4991 msgstr ""
4992
4993 # type: verbatim
4994 #: ../src/guestfs-actions.pod:493
4995 #, no-wrap
4996 msgid ""
4997 " int\n"
4998 " guestfs_aug_rm (guestfs_h *g,\n"
4999 "                 const char *augpath);\n"
5000 "\n"
5001 msgstr ""
5002
5003 # type: textblock
5004 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5005 msgid "Remove C<path> and all of its children."
5006 msgstr ""
5007
5008 # type: textblock
5009 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5010 msgid "On success this returns the number of entries which were removed."
5011 msgstr ""
5012
5013 # type: =head2
5014 #: ../src/guestfs-actions.pod:505
5015 msgid "guestfs_aug_save"
5016 msgstr ""
5017
5018 # type: verbatim
5019 #: ../src/guestfs-actions.pod:507
5020 #, no-wrap
5021 msgid ""
5022 " int\n"
5023 " guestfs_aug_save (guestfs_h *g);\n"
5024 "\n"
5025 msgstr ""
5026
5027 # type: textblock
5028 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5029 msgid "This writes all pending changes to disk."
5030 msgstr ""
5031
5032 # type: textblock
5033 #: ../src/guestfs-actions.pod:512
5034 msgid ""
5035 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5036 "are saved."
5037 msgstr ""
5038
5039 # type: =head2
5040 #: ../src/guestfs-actions.pod:519
5041 msgid "guestfs_aug_set"
5042 msgstr ""
5043
5044 # type: verbatim
5045 #: ../src/guestfs-actions.pod:521
5046 #, no-wrap
5047 msgid ""
5048 " int\n"
5049 " guestfs_aug_set (guestfs_h *g,\n"
5050 "                  const char *augpath,\n"
5051 "                  const char *val);\n"
5052 "\n"
5053 msgstr ""
5054
5055 # type: textblock
5056 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5057 msgid "Set the value associated with C<path> to C<val>."
5058 msgstr ""
5059
5060 # type: textblock
5061 #: ../src/guestfs-actions.pod:528
5062 msgid ""
5063 "In the Augeas API, it is possible to clear a node by setting the value to "
5064 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5065 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5066 msgstr ""
5067
5068 # type: =head2
5069 #: ../src/guestfs-actions.pod:537
5070 msgid "guestfs_available"
5071 msgstr ""
5072
5073 # type: verbatim
5074 #: ../src/guestfs-actions.pod:539
5075 #, no-wrap
5076 msgid ""
5077 " int\n"
5078 " guestfs_available (guestfs_h *g,\n"
5079 "                    char *const *groups);\n"
5080 "\n"
5081 msgstr ""
5082
5083 # type: textblock
5084 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5085 msgid ""
5086 "This command is used to check the availability of some groups of "
5087 "functionality in the appliance, which not all builds of the libguestfs "
5088 "appliance will be able to provide."
5089 msgstr ""
5090
5091 # type: textblock
5092 #: ../src/guestfs-actions.pod:547
5093 msgid ""
5094 "The libguestfs groups, and the functions that those groups correspond to, "
5095 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5096 "runtime by calling C<guestfs_available_all_groups>."
5097 msgstr ""
5098
5099 # type: textblock
5100 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5101 msgid ""
5102 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
5103 "\"augeas\"]> would check for the availability of the Linux inotify functions "
5104 "and Augeas (configuration file editing) functions."
5105 msgstr ""
5106
5107 # type: textblock
5108 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5109 msgid "The command returns no error if I<all> requested groups are available."
5110 msgstr ""
5111
5112 # type: textblock
5113 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5114 msgid ""
5115 "It fails with an error if one or more of the requested groups is unavailable "
5116 "in the appliance."
5117 msgstr ""
5118
5119 # type: textblock
5120 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5121 msgid ""
5122 "If an unknown group name is included in the list of groups then an error is "
5123 "always returned."
5124 msgstr ""
5125
5126 # type: textblock
5127 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5128 msgid "I<Notes:>"
5129 msgstr ""
5130
5131 # type: textblock
5132 #: ../src/guestfs-actions.pod:571
5133 msgid "You must call C<guestfs_launch> before calling this function."
5134 msgstr ""
5135
5136 # type: textblock
5137 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5138 msgid ""
5139 "The reason is because we don't know what groups are supported by the "
5140 "appliance/daemon until it is running and can be queried."
5141 msgstr ""
5142
5143 # type: textblock
5144 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5145 msgid ""
5146 "If a group of functions is available, this does not necessarily mean that "
5147 "they will work.  You still have to check for errors when calling individual "
5148 "API functions even if they are available."
5149 msgstr ""
5150
5151 # type: textblock
5152 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5153 msgid ""
5154 "It is usually the job of distro packagers to build complete functionality "
5155 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5156 "with all requirements satisfied, will support everything."
5157 msgstr ""
5158
5159 # type: textblock
5160 #: ../src/guestfs-actions.pod:593
5161 msgid ""
5162 "This call was added in version C<1.0.80>.  In previous versions of "
5163 "libguestfs all you could do would be to speculatively execute a command to "
5164 "find out if the daemon implemented it.  See also C<guestfs_version>."
5165 msgstr ""
5166
5167 # type: textblock
5168 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5169 msgid "(Added in 1.0.80)"
5170 msgstr ""
5171
5172 # type: =head2
5173 #: ../src/guestfs-actions.pod:604
5174 msgid "guestfs_available_all_groups"
5175 msgstr ""
5176
5177 # type: verbatim
5178 #: ../src/guestfs-actions.pod:606
5179 #, no-wrap
5180 msgid ""
5181 " char **\n"
5182 " guestfs_available_all_groups (guestfs_h *g);\n"
5183 "\n"
5184 msgstr ""
5185
5186 # type: textblock
5187 #: ../src/guestfs-actions.pod:609
5188 msgid ""
5189 "This command returns a list of all optional groups that this daemon knows "
5190 "about.  Note this returns both supported and unsupported groups.  To find "
5191 "out which ones the daemon can actually support you have to call "
5192 "C<guestfs_available> on each member of the returned list."
5193 msgstr ""
5194
5195 # type: textblock
5196 #: ../src/guestfs-actions.pod:615
5197 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5198 msgstr ""
5199
5200 # type: textblock
5201 #: ../src/guestfs-actions.pod:621
5202 msgid "(Added in 1.3.15)"
5203 msgstr ""
5204
5205 # type: =head2
5206 #: ../src/guestfs-actions.pod:623
5207 msgid "guestfs_base64_in"
5208 msgstr ""
5209
5210 # type: verbatim
5211 #: ../src/guestfs-actions.pod:625
5212 #, no-wrap
5213 msgid ""
5214 " int\n"
5215 " guestfs_base64_in (guestfs_h *g,\n"
5216 "                    const char *base64file,\n"
5217 "                    const char *filename);\n"
5218 "\n"
5219 msgstr ""
5220
5221 # type: textblock
5222 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5223 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
5224 msgstr ""
5225
5226 # type: textblock
5227 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5228 msgid "(Added in 1.3.5)"
5229 msgstr ""
5230
5231 # type: =head2
5232 #: ../src/guestfs-actions.pod:637
5233 msgid "guestfs_base64_out"
5234 msgstr ""
5235
5236 # type: verbatim
5237 #: ../src/guestfs-actions.pod:639
5238 #, no-wrap
5239 msgid ""
5240 " int\n"
5241 " guestfs_base64_out (guestfs_h *g,\n"
5242 "                     const char *filename,\n"
5243 "                     const char *base64file);\n"
5244 "\n"
5245 msgstr ""
5246
5247 # type: textblock
5248 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5249 msgid ""
5250 "This command downloads the contents of C<filename>, writing it out to local "
5251 "file C<base64file> encoded as base64."
5252 msgstr ""
5253
5254 # type: =head2
5255 #: ../src/guestfs-actions.pod:651
5256 msgid "guestfs_blockdev_flushbufs"
5257 msgstr ""
5258
5259 # type: verbatim
5260 #: ../src/guestfs-actions.pod:653
5261 #, no-wrap
5262 msgid ""
5263 " int\n"
5264 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5265 "                             const char *device);\n"
5266 "\n"
5267 msgstr ""
5268
5269 # type: textblock
5270 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5271 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5272 msgstr ""
5273
5274 # type: textblock
5275 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677 ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454 ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498 ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5276 msgid "This uses the L<blockdev(8)> command."
5277 msgstr ""
5278
5279 # type: textblock
5280 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681 ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712 ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781 ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5281 msgid "(Added in 0.9.3)"
5282 msgstr ""
5283
5284 # type: =head2
5285 #: ../src/guestfs-actions.pod:666
5286 msgid "guestfs_blockdev_getbsz"
5287 msgstr ""
5288
5289 # type: verbatim
5290 #: ../src/guestfs-actions.pod:668
5291 #, no-wrap
5292 msgid ""
5293 " int\n"
5294 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5295 "                          const char *device);\n"
5296 "\n"
5297 msgstr ""
5298
5299 # type: textblock
5300 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5301 msgid "This returns the block size of a device."
5302 msgstr ""
5303
5304 # type: textblock
5305 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5306 msgid ""
5307 "(Note this is different from both I<size in blocks> and I<filesystem block "
5308 "size>)."
5309 msgstr ""
5310
5311 # type: =head2
5312 #: ../src/guestfs-actions.pod:683
5313 msgid "guestfs_blockdev_getro"
5314 msgstr ""
5315
5316 # type: verbatim
5317 #: ../src/guestfs-actions.pod:685
5318 #, no-wrap
5319 msgid ""
5320 " int\n"
5321 " guestfs_blockdev_getro (guestfs_h *g,\n"
5322 "                         const char *device);\n"
5323 "\n"
5324 msgstr ""
5325
5326 # type: textblock
5327 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5328 msgid ""
5329 "Returns a boolean indicating if the block device is read-only (true if "
5330 "read-only, false if not)."
5331 msgstr ""
5332
5333 # type: textblock
5334 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396 ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044 ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:3024 ../src/guestfs-actions.pod:3039 ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3069 ../src/guestfs-actions.pod:3084 ../src/guestfs-actions.pod:3100 ../src/guestfs-actions.pod:3114 ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3141 ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:4585
5335 msgid "This function returns a C truth value on success or -1 on error."
5336 msgstr ""
5337
5338 # type: =head2
5339 #: ../src/guestfs-actions.pod:698
5340 msgid "guestfs_blockdev_getsize64"
5341 msgstr ""
5342
5343 # type: verbatim
5344 #: ../src/guestfs-actions.pod:700
5345 #, no-wrap
5346 msgid ""
5347 " int64_t\n"
5348 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5349 "                             const char *device);\n"
5350 "\n"
5351 msgstr ""
5352
5353 # type: textblock
5354 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5355 msgid "This returns the size of the device in bytes."
5356 msgstr ""
5357
5358 # type: textblock
5359 #: ../src/guestfs-actions.pod:706
5360 msgid "See also C<guestfs_blockdev_getsz>."
5361 msgstr ""
5362
5363 # type: =head2
5364 #: ../src/guestfs-actions.pod:714
5365 msgid "guestfs_blockdev_getss"
5366 msgstr ""
5367
5368 # type: verbatim
5369 #: ../src/guestfs-actions.pod:716
5370 #, no-wrap
5371 msgid ""
5372 " int\n"
5373 " guestfs_blockdev_getss (guestfs_h *g,\n"
5374 "                         const char *device);\n"
5375 "\n"
5376 msgstr ""
5377
5378 # type: textblock
5379 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5380 msgid ""
5381 "This returns the size of sectors on a block device.  Usually 512, but can be "
5382 "larger for modern devices."
5383 msgstr ""
5384
5385 # type: textblock
5386 #: ../src/guestfs-actions.pod:723
5387 msgid ""
5388 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5389 "that)."
5390 msgstr ""
5391
5392 # type: =head2
5393 #: ../src/guestfs-actions.pod:732
5394 msgid "guestfs_blockdev_getsz"
5395 msgstr ""
5396
5397 # type: verbatim
5398 #: ../src/guestfs-actions.pod:734
5399 #, no-wrap
5400 msgid ""
5401 " int64_t\n"
5402 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5403 "                         const char *device);\n"
5404 "\n"
5405 msgstr ""
5406
5407 # type: textblock
5408 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5409 msgid ""
5410 "This returns the size of the device in units of 512-byte sectors (even if "
5411 "the sectorsize isn't 512 bytes ... weird)."
5412 msgstr ""
5413
5414 # type: textblock
5415 #: ../src/guestfs-actions.pod:741
5416 msgid ""
5417 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5418 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5419 msgstr ""
5420
5421 # type: =head2
5422 #: ../src/guestfs-actions.pod:751
5423 msgid "guestfs_blockdev_rereadpt"
5424 msgstr ""
5425
5426 # type: verbatim
5427 #: ../src/guestfs-actions.pod:753
5428 #, no-wrap
5429 msgid ""
5430 " int\n"
5431 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5432 "                            const char *device);\n"
5433 "\n"
5434 msgstr ""
5435
5436 # type: textblock
5437 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5438 msgid "Reread the partition table on C<device>."
5439 msgstr ""
5440
5441 # type: =head2
5442 #: ../src/guestfs-actions.pod:765
5443 msgid "guestfs_blockdev_setbsz"
5444 msgstr ""
5445
5446 # type: verbatim
5447 #: ../src/guestfs-actions.pod:767
5448 #, no-wrap
5449 msgid ""
5450 " int\n"
5451 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5452 "                          const char *device,\n"
5453 "                          int blocksize);\n"
5454 "\n"
5455 msgstr ""
5456
5457 # type: textblock
5458 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5459 msgid "This sets the block size of a device."
5460 msgstr ""
5461
5462 # type: =head2
5463 #: ../src/guestfs-actions.pod:783
5464 msgid "guestfs_blockdev_setro"
5465 msgstr ""
5466
5467 # type: verbatim
5468 #: ../src/guestfs-actions.pod:785
5469 #, no-wrap
5470 msgid ""
5471 " int\n"
5472 " guestfs_blockdev_setro (guestfs_h *g,\n"
5473 "                         const char *device);\n"
5474 "\n"
5475 msgstr ""
5476
5477 # type: textblock
5478 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5479 msgid "Sets the block device named C<device> to read-only."
5480 msgstr ""
5481
5482 # type: =head2
5483 #: ../src/guestfs-actions.pod:797
5484 msgid "guestfs_blockdev_setrw"
5485 msgstr ""
5486
5487 # type: verbatim
5488 #: ../src/guestfs-actions.pod:799
5489 #, no-wrap
5490 msgid ""
5491 " int\n"
5492 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5493 "                         const char *device);\n"
5494 "\n"
5495 msgstr ""
5496
5497 # type: textblock
5498 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5499 msgid "Sets the block device named C<device> to read-write."
5500 msgstr ""
5501
5502 # type: =head2
5503 #: ../src/guestfs-actions.pod:811
5504 msgid "guestfs_case_sensitive_path"
5505 msgstr ""
5506
5507 # type: verbatim
5508 #: ../src/guestfs-actions.pod:813
5509 #, no-wrap
5510 msgid ""
5511 " char *\n"
5512 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5513 "                              const char *path);\n"
5514 "\n"
5515 msgstr ""
5516
5517 # type: textblock
5518 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5519 msgid ""
5520 "This can be used to resolve case insensitive paths on a filesystem which is "
5521 "case sensitive.  The use case is to resolve paths which you have read from "
5522 "Windows configuration files or the Windows Registry, to the true path."
5523 msgstr ""
5524
5525 # type: textblock
5526 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5527 msgid ""
5528 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5529 "(and probably others), which is that although the underlying filesystem is "
5530 "case-insensitive, the driver exports the filesystem to Linux as "
5531 "case-sensitive."
5532 msgstr ""
5533
5534 # type: textblock
5535 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5536 msgid ""
5537 "One consequence of this is that special directories such as C<c:\\windows> "
5538 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5539 "precise details of how they were created.  In Windows itself this would not "
5540 "be a problem."
5541 msgstr ""
5542
5543 # type: textblock
5544 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5545 msgid ""
5546 "Bug or feature? You decide: "
5547 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5548 msgstr ""
5549
5550 # type: textblock
5551 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5552 msgid ""
5553 "This function resolves the true case of each element in the path and returns "
5554 "the case-sensitive path."
5555 msgstr ""
5556
5557 # type: textblock
5558 #: ../src/guestfs-actions.pod:839
5559 msgid ""
5560 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5561 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5562 "how the directories were originally created under Windows)."
5563 msgstr ""
5564
5565 # type: textblock
5566 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5567 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5568 msgstr ""
5569
5570 # type: textblock
5571 #: ../src/guestfs-actions.pod:847
5572 msgid "See also C<guestfs_realpath>."
5573 msgstr ""
5574
5575 # type: textblock
5576 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6517
5577 msgid "(Added in 1.0.75)"
5578 msgstr ""
5579
5580 # type: =head2
5581 #: ../src/guestfs-actions.pod:854
5582 msgid "guestfs_cat"
5583 msgstr ""
5584
5585 # type: verbatim
5586 #: ../src/guestfs-actions.pod:856
5587 #, no-wrap
5588 msgid ""
5589 " char *\n"
5590 " guestfs_cat (guestfs_h *g,\n"
5591 "              const char *path);\n"
5592 "\n"
5593 msgstr ""
5594
5595 # type: textblock
5596 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5597 msgid "Return the contents of the file named C<path>."
5598 msgstr ""
5599
5600 # type: textblock
5601 #: ../src/guestfs-actions.pod:862
5602 msgid ""
5603 "Note that this function cannot correctly handle binary files (specifically, "
5604 "files containing C<\\0> character which is treated as end of string).  For "
5605 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5606 "functions which have a more complex interface."
5607 msgstr ""
5608
5609 # type: textblock
5610 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049 ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360 ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482 ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750 ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254 ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300 ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4880 ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5037 ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5967 ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6841 ../src/guestfs-actions.pod:6860 ../src/guestfs-actions.pod:6945 ../src/guestfs-actions.pod:6964 ../src/guestfs-actions.pod:7010 ../src/guestfs-actions.pod:7029 ../fish/guestfish-actions.pod:582 ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729 ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915 ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992 ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462 ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500 ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525 ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3263 ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3354 ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3386 ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:4015 ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4115 ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:4543 ../fish/guestfish-actions.pod:4560 ../fish/guestfish-actions.pod:4570 ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4628 ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4667
5611 msgid ""
5612 "Because of the message protocol, there is a transfer limit of somewhere "
5613 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5614 msgstr ""
5615
5616 # type: textblock
5617 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3252 ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3331 ../src/guestfs-actions.pod:3419 ../src/guestfs-actions.pod:3824 ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:4960 ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:6676 ../src/guestfs-actions.pod:6690
5618 msgid "(Added in 0.4)"
5619 msgstr ""
5620
5621 # type: =head2
5622 #: ../src/guestfs-actions.pod:875
5623 msgid "guestfs_checksum"
5624 msgstr ""
5625
5626 # type: verbatim
5627 #: ../src/guestfs-actions.pod:877
5628 #, no-wrap
5629 msgid ""
5630 " char *\n"
5631 " guestfs_checksum (guestfs_h *g,\n"
5632 "                   const char *csumtype,\n"
5633 "                   const char *path);\n"
5634 "\n"
5635 msgstr ""
5636
5637 # type: textblock
5638 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5639 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5640 msgstr ""
5641
5642 # type: textblock
5643 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5644 msgid ""
5645 "The type of checksum to compute is given by the C<csumtype> parameter which "
5646 "must have one of the following values:"
5647 msgstr ""
5648
5649 # type: =item
5650 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5651 msgid "C<crc>"
5652 msgstr ""
5653
5654 # type: textblock
5655 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5656 msgid ""
5657 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5658 "C<cksum> command."
5659 msgstr ""
5660
5661 # type: =item
5662 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5663 msgid "C<md5>"
5664 msgstr ""
5665
5666 # type: textblock
5667 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5668 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5669 msgstr ""
5670
5671 # type: =item
5672 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5673 msgid "C<sha1>"
5674 msgstr ""
5675
5676 # type: textblock
5677 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5678 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5679 msgstr ""
5680
5681 # type: =item
5682 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
5683 msgid "C<sha224>"
5684 msgstr ""
5685
5686 # type: textblock
5687 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
5688 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5689 msgstr ""
5690
5691 # type: =item
5692 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
5693 msgid "C<sha256>"
5694 msgstr ""
5695
5696 # type: textblock
5697 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
5698 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5699 msgstr ""
5700
5701 # type: =item
5702 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
5703 msgid "C<sha384>"
5704 msgstr ""
5705
5706 # type: textblock
5707 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
5708 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5709 msgstr ""
5710
5711 # type: =item
5712 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
5713 msgid "C<sha512>"
5714 msgstr ""
5715
5716 # type: textblock
5717 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
5718 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5719 msgstr ""
5720
5721 # type: textblock
5722 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
5723 msgid "The checksum is returned as a printable string."
5724 msgstr ""
5725
5726 # type: textblock
5727 #: ../src/guestfs-actions.pod:923
5728 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5729 msgstr ""
5730
5731 # type: textblock
5732 #: ../src/guestfs-actions.pod:925
5733 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5734 msgstr ""
5735
5736 # type: textblock
5737 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3116 ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:6378
5738 msgid "(Added in 1.0.2)"
5739 msgstr ""
5740
5741 # type: =head2
5742 #: ../src/guestfs-actions.pod:932
5743 msgid "guestfs_checksum_device"
5744 msgstr ""
5745
5746 # type: verbatim
5747 #: ../src/guestfs-actions.pod:934
5748 #, no-wrap
5749 msgid ""
5750 " char *\n"
5751 " guestfs_checksum_device (guestfs_h *g,\n"
5752 "                          const char *csumtype,\n"
5753 "                          const char *device);\n"
5754 "\n"
5755 msgstr ""
5756
5757 # type: textblock
5758 #: ../src/guestfs-actions.pod:939
5759 msgid ""
5760 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5761 "device named C<device>.  For the types of checksums supported see the "
5762 "C<guestfs_checksum> command."
5763 msgstr ""
5764
5765 # type: textblock
5766 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:4781 ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6702
5767 msgid "(Added in 1.3.2)"
5768 msgstr ""
5769
5770 # type: =head2
5771 #: ../src/guestfs-actions.pod:948
5772 msgid "guestfs_checksums_out"
5773 msgstr ""
5774
5775 # type: verbatim
5776 #: ../src/guestfs-actions.pod:950
5777 #, no-wrap
5778 msgid ""
5779 " int\n"
5780 " guestfs_checksums_out (guestfs_h *g,\n"
5781 "                        const char *csumtype,\n"
5782 "                        const char *directory,\n"
5783 "                        const char *sumsfile);\n"
5784 "\n"
5785 msgstr ""
5786
5787 # type: textblock
5788 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
5789 msgid ""
5790 "This command computes the checksums of all regular files in C<directory> and "
5791 "then emits a list of those checksums to the local output file C<sumsfile>."
5792 msgstr ""
5793
5794 # type: textblock
5795 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
5796 msgid ""
5797 "This can be used for verifying the integrity of a virtual machine.  However "
5798 "to be properly secure you should pay attention to the output of the checksum "
5799 "command (it uses the ones from GNU coreutils).  In particular when the "
5800 "filename is not printable, coreutils uses a special backslash syntax.  For "
5801 "more information, see the GNU coreutils info file."
5802 msgstr ""
5803
5804 # type: textblock
5805 #: ../src/guestfs-actions.pod:970
5806 msgid "(Added in 1.3.7)"
5807 msgstr ""
5808
5809 # type: =head2
5810 #: ../src/guestfs-actions.pod:972
5811 msgid "guestfs_chmod"
5812 msgstr ""
5813
5814 # type: verbatim
5815 #: ../src/guestfs-actions.pod:974
5816 #, no-wrap
5817 msgid ""
5818 " int\n"
5819 " guestfs_chmod (guestfs_h *g,\n"
5820 "                int mode,\n"
5821 "                const char *path);\n"
5822 "\n"
5823 msgstr ""
5824
5825 # type: textblock
5826 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
5827 msgid ""
5828 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5829 "supported."
5830 msgstr ""
5831
5832 # type: textblock
5833 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
5834 msgid ""
5835 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5836 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5837 "C<700>."
5838 msgstr ""
5839
5840 # type: textblock
5841 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4075 ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:4209 ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:671 ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2838 ../fish/guestfish-actions.pod:2848 ../fish/guestfish-actions.pod:2858
5842 msgid "The mode actually set is affected by the umask."
5843 msgstr ""
5844
5845 # type: =head2
5846 #: ../src/guestfs-actions.pod:992
5847 msgid "guestfs_chown"
5848 msgstr ""
5849
5850 # type: verbatim
5851 #: ../src/guestfs-actions.pod:994
5852 #, no-wrap
5853 msgid ""
5854 " int\n"
5855 " guestfs_chown (guestfs_h *g,\n"
5856 "                int owner,\n"
5857 "                int group,\n"
5858 "                const char *path);\n"
5859 "\n"
5860 msgstr ""
5861
5862 # type: textblock
5863 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
5864 msgid "Change the file owner to C<owner> and group to C<group>."
5865 msgstr ""
5866
5867 # type: textblock
5868 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3213 ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
5869 msgid ""
5870 "Only numeric uid and gid are supported.  If you want to use names, you will "
5871 "need to locate and parse the password file yourself (Augeas support makes "
5872 "this relatively easy)."
5873 msgstr ""
5874
5875 # type: =head2
5876 #: ../src/guestfs-actions.pod:1010
5877 msgid "guestfs_command"
5878 msgstr ""
5879
5880 # type: verbatim
5881 #: ../src/guestfs-actions.pod:1012
5882 #, no-wrap
5883 msgid ""
5884 " char *\n"
5885 " guestfs_command (guestfs_h *g,\n"
5886 "                  char *const *arguments);\n"
5887 "\n"
5888 msgstr ""
5889
5890 # type: textblock
5891 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
5892 msgid ""
5893 "This call runs a command from the guest filesystem.  The filesystem must be "
5894 "mounted, and must contain a compatible operating system (ie. something "
5895 "Linux, with the same or compatible processor architecture)."
5896 msgstr ""
5897
5898 # type: textblock
5899 #: ../src/guestfs-actions.pod:1021
5900 msgid ""
5901 "The single parameter is an argv-style list of arguments.  The first element "
5902 "is the name of the program to run.  Subsequent elements are parameters.  The "
5903 "list must be non-empty (ie. must contain a program name).  Note that the "
5904 "command runs directly, and is I<not> invoked via the shell (see "
5905 "C<guestfs_sh>)."
5906 msgstr ""
5907
5908 # type: textblock
5909 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
5910 msgid "The return value is anything printed to I<stdout> by the command."
5911 msgstr ""
5912
5913 # type: textblock
5914 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
5915 msgid ""
5916 "If the command returns a non-zero exit status, then this function returns an "
5917 "error message.  The error message string is the content of I<stderr> from "
5918 "the command."
5919 msgstr ""
5920
5921 # type: textblock
5922 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
5923 msgid ""
5924 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5925 "C</bin>.  If you require a program from another location, you should provide "
5926 "the full path in the first parameter."
5927 msgstr ""
5928
5929 # type: textblock
5930 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
5931 msgid ""
5932 "Shared libraries and data files required by the program must be available on "
5933 "filesystems which are mounted in the correct places.  It is the caller's "
5934 "responsibility to ensure all filesystems that are needed are mounted at the "
5935 "right locations."
5936 msgstr ""
5937
5938 # type: textblock
5939 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1535
5940 msgid "(Added in 0.9.1)"
5941 msgstr ""
5942
5943 # type: =head2
5944 #: ../src/guestfs-actions.pod:1054
5945 msgid "guestfs_command_lines"
5946 msgstr ""
5947
5948 # type: verbatim
5949 #: ../src/guestfs-actions.pod:1056
5950 #, no-wrap
5951 msgid ""
5952 " char **\n"
5953 " guestfs_command_lines (guestfs_h *g,\n"
5954 "                        char *const *arguments);\n"
5955 "\n"
5956 msgstr ""
5957
5958 # type: textblock
5959 #: ../src/guestfs-actions.pod:1060
5960 msgid ""
5961 "This is the same as C<guestfs_command>, but splits the result into a list of "
5962 "lines."
5963 msgstr ""
5964
5965 # type: textblock
5966 #: ../src/guestfs-actions.pod:1063
5967 msgid "See also: C<guestfs_sh_lines>"
5968 msgstr ""
5969
5970 # type: =head2
5971 #: ../src/guestfs-actions.pod:1074
5972 msgid "guestfs_config"
5973 msgstr ""
5974
5975 # type: verbatim
5976 #: ../src/guestfs-actions.pod:1076
5977 #, no-wrap
5978 msgid ""
5979 " int\n"
5980 " guestfs_config (guestfs_h *g,\n"
5981 "                 const char *qemuparam,\n"
5982 "                 const char *qemuvalue);\n"
5983 "\n"
5984 msgstr ""
5985
5986 # type: textblock
5987 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
5988 msgid ""
5989 "This can be used to add arbitrary qemu command line parameters of the form "
5990 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5991 "setting some parameters which would interfere with parameters that we use."
5992 msgstr ""
5993
5994 # type: textblock
5995 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
5996 msgid "The first character of C<param> string must be a C<-> (dash)."
5997 msgstr ""
5998
5999 # type: textblock
6000 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
6001 msgid "C<value> can be NULL."
6002 msgstr ""
6003
6004 # type: =head2
6005 #: ../src/guestfs-actions.pod:1094
6006 msgid "guestfs_copy_size"
6007 msgstr ""
6008
6009 # type: verbatim
6010 #: ../src/guestfs-actions.pod:1096
6011 #, no-wrap
6012 msgid ""
6013 " int\n"
6014 " guestfs_copy_size (guestfs_h *g,\n"
6015 "                    const char *src,\n"
6016 "                    const char *dest,\n"
6017 "                    int64_t size);\n"
6018 "\n"
6019 msgstr ""
6020
6021 # type: textblock
6022 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6023 msgid ""
6024 "This command copies exactly C<size> bytes from one source device or file "
6025 "C<src> to another destination device or file C<dest>."
6026 msgstr ""
6027
6028 # type: textblock
6029 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6030 msgid ""
6031 "Note this will fail if the source is too short or if the destination is not "
6032 "large enough."
6033 msgstr ""
6034
6035 # type: textblock
6036 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6881 ../src/guestfs-actions.pod:6900
6037 msgid ""
6038 "This long-running command can generate progress notification messages so "
6039 "that the caller can display a progress bar or indicator.  To receive these "
6040 "messages, the caller must register a progress callback.  See "
6041 "L<guestfs(3)/guestfs_set_progress_callback>."
6042 msgstr ""
6043
6044 # type: textblock
6045 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3851 ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6715
6046 msgid "(Added in 1.0.87)"
6047 msgstr ""
6048
6049 # type: =head2
6050 #: ../src/guestfs-actions.pod:1117
6051 msgid "guestfs_cp"
6052 msgstr ""
6053
6054 # type: verbatim
6055 #: ../src/guestfs-actions.pod:1119
6056 #, no-wrap
6057 msgid ""
6058 " int\n"
6059 " guestfs_cp (guestfs_h *g,\n"
6060 "             const char *src,\n"
6061 "             const char *dest);\n"
6062 "\n"
6063 msgstr ""
6064
6065 # type: textblock
6066 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6067 msgid ""
6068 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6069 "destination filename or destination directory."
6070 msgstr ""
6071
6072 # type: textblock
6073 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4454 ../src/guestfs-actions.pod:4831
6074 msgid "(Added in 1.0.18)"
6075 msgstr ""
6076
6077 # type: =head2
6078 #: ../src/guestfs-actions.pod:1131
6079 msgid "guestfs_cp_a"
6080 msgstr ""
6081
6082 # type: verbatim
6083 #: ../src/guestfs-actions.pod:1133
6084 #, no-wrap
6085 msgid ""
6086 " int\n"
6087 " guestfs_cp_a (guestfs_h *g,\n"
6088 "               const char *src,\n"
6089 "               const char *dest);\n"
6090 "\n"
6091 msgstr ""
6092
6093 # type: textblock
6094 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6095 msgid ""
6096 "This copies a file or directory from C<src> to C<dest> recursively using the "
6097 "C<cp -a> command."
6098 msgstr ""
6099
6100 # type: =head2
6101 #: ../src/guestfs-actions.pod:1145
6102 msgid "guestfs_dd"
6103 msgstr ""
6104
6105 # type: verbatim
6106 #: ../src/guestfs-actions.pod:1147
6107 #, no-wrap
6108 msgid ""
6109 " int\n"
6110 " guestfs_dd (guestfs_h *g,\n"
6111 "             const char *src,\n"
6112 "             const char *dest);\n"
6113 "\n"
6114 msgstr ""
6115
6116 # type: textblock
6117 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6118 msgid ""
6119 "This command copies from one source device or file C<src> to another "
6120 "destination device or file C<dest>.  Normally you would use this to copy to "
6121 "or from a device or partition, for example to duplicate a filesystem."
6122 msgstr ""
6123
6124 # type: textblock
6125 #: ../src/guestfs-actions.pod:1157
6126 msgid ""
6127 "If the destination is a device, it must be as large or larger than the "
6128 "source file or device, otherwise the copy will fail.  This command cannot do "
6129 "partial copies (see C<guestfs_copy_size>)."
6130 msgstr ""
6131
6132 # type: =head2
6133 #: ../src/guestfs-actions.pod:1165
6134 msgid "guestfs_df"
6135 msgstr ""
6136
6137 # type: verbatim
6138 #: ../src/guestfs-actions.pod:1167
6139 #, no-wrap
6140 msgid ""
6141 " char *\n"
6142 " guestfs_df (guestfs_h *g);\n"
6143 "\n"
6144 msgstr ""
6145
6146 # type: textblock
6147 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6148 msgid "This command runs the C<df> command to report disk space used."
6149 msgstr ""
6150
6151 # type: textblock
6152 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189 ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6153 msgid ""
6154 "This command is mostly useful for interactive sessions.  It is I<not> "
6155 "intended that you try to parse the output string.  Use C<statvfs> from "
6156 "programs."
6157 msgstr ""
6158
6159 # type: textblock
6160 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325 ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6140 ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6761 ../src/guestfs-actions.pod:6774
6161 msgid "(Added in 1.0.54)"
6162 msgstr ""
6163
6164 # type: =head2
6165 #: ../src/guestfs-actions.pod:1181
6166 msgid "guestfs_df_h"
6167 msgstr ""
6168
6169 # type: verbatim
6170 #: ../src/guestfs-actions.pod:1183
6171 #, no-wrap
6172 msgid ""
6173 " char *\n"
6174 " guestfs_df_h (guestfs_h *g);\n"
6175 "\n"
6176 msgstr ""
6177
6178 # type: textblock
6179 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6180 msgid ""
6181 "This command runs the C<df -h> command to report disk space used in "
6182 "human-readable format."
6183 msgstr ""
6184
6185 # type: =head2
6186 #: ../src/guestfs-actions.pod:1198
6187 msgid "guestfs_dmesg"
6188 msgstr ""
6189
6190 # type: verbatim
6191 #: ../src/guestfs-actions.pod:1200
6192 #, no-wrap
6193 msgid ""
6194 " char *\n"
6195 " guestfs_dmesg (guestfs_h *g);\n"
6196 "\n"
6197 msgstr ""
6198
6199 # type: textblock
6200 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6201 msgid ""
6202 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6203 "This is sometimes useful for extended debugging of problems."
6204 msgstr ""
6205
6206 # type: textblock
6207 #: ../src/guestfs-actions.pod:1207
6208 msgid ""
6209 "Another way to get the same information is to enable verbose messages with "
6210 "C<guestfs_set_verbose> or by setting the environment variable "
6211 "C<LIBGUESTFS_DEBUG=1> before running the program."
6212 msgstr ""
6213
6214 # type: =head2
6215 #: ../src/guestfs-actions.pod:1217
6216 msgid "guestfs_download"
6217 msgstr ""
6218
6219 # type: verbatim
6220 #: ../src/guestfs-actions.pod:1219
6221 #, no-wrap
6222 msgid ""
6223 " int\n"
6224 " guestfs_download (guestfs_h *g,\n"
6225 "                   const char *remotefilename,\n"
6226 "                   const char *filename);\n"
6227 "\n"
6228 msgstr ""
6229
6230 # type: textblock
6231 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6232 msgid ""
6233 "Download file C<remotefilename> and save it as C<filename> on the local "
6234 "machine."
6235 msgstr ""
6236
6237 # type: textblock
6238 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6372 ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6239 msgid "C<filename> can also be a named pipe."
6240 msgstr ""
6241
6242 # type: textblock
6243 #: ../src/guestfs-actions.pod:1229
6244 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6245 msgstr ""
6246
6247 # type: =head2
6248 #: ../src/guestfs-actions.pod:1240
6249 msgid "guestfs_download_offset"
6250 msgstr ""
6251
6252 # type: verbatim
6253 #: ../src/guestfs-actions.pod:1242
6254 #, no-wrap
6255 msgid ""
6256 " int\n"
6257 " guestfs_download_offset (guestfs_h *g,\n"
6258 "                          const char *remotefilename,\n"
6259 "                          const char *filename,\n"
6260 "                          int64_t offset,\n"
6261 "                          int64_t size);\n"
6262 "\n"
6263 msgstr ""
6264
6265 # type: textblock
6266 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6267 msgid ""
6268 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6269 "region must be within the file or device)."
6270 msgstr ""
6271
6272 # type: textblock
6273 #: ../src/guestfs-actions.pod:1255
6274 msgid ""
6275 "Note that there is no limit on the amount of data that can be downloaded "
6276 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6277 "full amount unless an error occurs."
6278 msgstr ""
6279
6280 # type: textblock
6281 #: ../src/guestfs-actions.pod:1260
6282 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6283 msgstr ""
6284
6285 # type: textblock
6286 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6407
6287 msgid "(Added in 1.5.17)"
6288 msgstr ""
6289
6290 # type: =head2
6291 #: ../src/guestfs-actions.pod:1271
6292 msgid "guestfs_drop_caches"
6293 msgstr ""
6294
6295 # type: verbatim
6296 #: ../src/guestfs-actions.pod:1273
6297 #, no-wrap
6298 msgid ""
6299 " int\n"
6300 " guestfs_drop_caches (guestfs_h *g,\n"
6301 "                      int whattodrop);\n"
6302 "\n"
6303 msgstr ""
6304
6305 # type: textblock
6306 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6307 msgid ""
6308 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6309 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6310 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6311 msgstr ""
6312
6313 # type: textblock
6314 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6315 msgid "Setting C<whattodrop> to 3 should drop everything."
6316 msgstr ""
6317
6318 # type: textblock
6319 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6320 msgid ""
6321 "This automatically calls L<sync(2)> before the operation, so that the "
6322 "maximum guest memory is freed."
6323 msgstr ""
6324
6325 # type: =head2
6326 #: ../src/guestfs-actions.pod:1291
6327 msgid "guestfs_du"
6328 msgstr ""
6329
6330 # type: verbatim
6331 #: ../src/guestfs-actions.pod:1293
6332 #, no-wrap
6333 msgid ""
6334 " int64_t\n"
6335 " guestfs_du (guestfs_h *g,\n"
6336 "             const char *path);\n"
6337 "\n"
6338 msgstr ""
6339
6340 # type: textblock
6341 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6342 msgid ""
6343 "This command runs the C<du -s> command to estimate file space usage for "
6344 "C<path>."
6345 msgstr ""
6346
6347 # type: textblock
6348 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6349 msgid ""
6350 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6351 "estimate includes the contents of the directory and all subdirectories "
6352 "(recursively)."
6353 msgstr ""
6354
6355 # type: textblock
6356 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6357 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6358 msgstr ""
6359
6360 # type: =head2
6361 #: ../src/guestfs-actions.pod:1311
6362 msgid "guestfs_e2fsck_f"
6363 msgstr ""
6364
6365 # type: verbatim
6366 #: ../src/guestfs-actions.pod:1313
6367 #, no-wrap
6368 msgid ""
6369 " int\n"
6370 " guestfs_e2fsck_f (guestfs_h *g,\n"
6371 "                   const char *device);\n"
6372 "\n"
6373 msgstr ""
6374
6375 # type: textblock
6376 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6377 msgid ""
6378 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6379 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6380 "clean (C<-f>)."
6381 msgstr ""
6382
6383 # type: textblock
6384 #: ../src/guestfs-actions.pod:1321
6385 msgid ""
6386 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6387 "Normally you should use C<guestfs_fsck>."
6388 msgstr ""
6389
6390 # type: textblock
6391 #: ../src/guestfs-actions.pod:1326
6392 msgid "(Added in 1.0.29)"
6393 msgstr ""
6394
6395 # type: =head2
6396 #: ../src/guestfs-actions.pod:1328
6397 msgid "guestfs_echo_daemon"
6398 msgstr ""
6399
6400 # type: verbatim
6401 #: ../src/guestfs-actions.pod:1330
6402 #, no-wrap
6403 msgid ""
6404 " char *\n"
6405 " guestfs_echo_daemon (guestfs_h *g,\n"
6406 "                      char *const *words);\n"
6407 "\n"
6408 msgstr ""
6409
6410 # type: textblock
6411 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6412 msgid ""
6413 "This command concatenates the list of C<words> passed with single spaces "
6414 "between them and returns the resulting string."
6415 msgstr ""
6416
6417 # type: textblock
6418 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6419 msgid "You can use this command to test the connection through to the daemon."
6420 msgstr ""
6421
6422 # type: textblock
6423 #: ../src/guestfs-actions.pod:1339
6424 msgid "See also C<guestfs_ping_daemon>."
6425 msgstr ""
6426
6427 # type: textblock
6428 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:5620
6429 msgid "(Added in 1.0.69)"
6430 msgstr ""
6431
6432 # type: =head2
6433 #: ../src/guestfs-actions.pod:1346
6434 msgid "guestfs_egrep"
6435 msgstr ""
6436
6437 # type: verbatim
6438 #: ../src/guestfs-actions.pod:1348
6439 #, no-wrap
6440 msgid ""
6441 " char **\n"
6442 " guestfs_egrep (guestfs_h *g,\n"
6443 "                const char *regex,\n"
6444 "                const char *path);\n"
6445 "\n"
6446 msgstr ""
6447
6448 # type: textblock
6449 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6450 msgid "This calls the external C<egrep> program and returns the matching lines."
6451 msgstr ""
6452
6453 # type: textblock
6454 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171 ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442 ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3358 ../src/guestfs-actions.pod:3371 ../src/guestfs-actions.pod:3385 ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5984 ../src/guestfs-actions.pod:5996 ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6022 ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6863 ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6967 ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7032
6455 msgid "(Added in 1.0.66)"
6456 msgstr ""
6457
6458 # type: =head2
6459 #: ../src/guestfs-actions.pod:1365
6460 msgid "guestfs_egrepi"
6461 msgstr ""
6462
6463 # type: verbatim
6464 #: ../src/guestfs-actions.pod:1367
6465 #, no-wrap
6466 msgid ""
6467 " char **\n"
6468 " guestfs_egrepi (guestfs_h *g,\n"
6469 "                 const char *regex,\n"
6470 "                 const char *path);\n"
6471 "\n"
6472 msgstr ""
6473
6474 # type: textblock
6475 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6476 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6477 msgstr ""
6478
6479 # type: =head2
6480 #: ../src/guestfs-actions.pod:1384
6481 msgid "guestfs_equal"
6482 msgstr ""
6483
6484 # type: verbatim
6485 #: ../src/guestfs-actions.pod:1386
6486 #, no-wrap
6487 msgid ""
6488 " int\n"
6489 " guestfs_equal (guestfs_h *g,\n"
6490 "                const char *file1,\n"
6491 "                const char *file2);\n"
6492 "\n"
6493 msgstr ""
6494
6495 # type: textblock
6496 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6497 msgid ""
6498 "This compares the two files C<file1> and C<file2> and returns true if their "
6499 "content is exactly equal, or false otherwise."
6500 msgstr ""
6501
6502 # type: textblock
6503 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6504 msgid "The external L<cmp(1)> program is used for the comparison."
6505 msgstr ""
6506
6507 # type: =head2
6508 #: ../src/guestfs-actions.pod:1400
6509 msgid "guestfs_exists"
6510 msgstr ""
6511
6512 # type: verbatim
6513 #: ../src/guestfs-actions.pod:1402
6514 #, no-wrap
6515 msgid ""
6516 " int\n"
6517 " guestfs_exists (guestfs_h *g,\n"
6518 "                 const char *path);\n"
6519 "\n"
6520 msgstr ""
6521
6522 # type: textblock
6523 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6524 msgid ""
6525 "This returns C<true> if and only if there is a file, directory (or anything) "
6526 "with the given C<path> name."
6527 msgstr ""
6528
6529 # type: textblock
6530 #: ../src/guestfs-actions.pod:1409
6531 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6532 msgstr ""
6533
6534 # type: =head2
6535 #: ../src/guestfs-actions.pod:1415
6536 msgid "guestfs_fallocate"
6537 msgstr ""
6538
6539 # type: verbatim
6540 #: ../src/guestfs-actions.pod:1417
6541 #, no-wrap
6542 msgid ""
6543 " int\n"
6544 " guestfs_fallocate (guestfs_h *g,\n"
6545 "                    const char *path,\n"
6546 "                    int len);\n"
6547 "\n"
6548 msgstr ""
6549
6550 # type: textblock
6551 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6552 msgid ""
6553 "This command preallocates a file (containing zero bytes) named C<path> of "
6554 "size C<len> bytes.  If the file exists already, it is overwritten."
6555 msgstr ""
6556
6557 # type: textblock
6558 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6559 msgid ""
6560 "Do not confuse this with the guestfish-specific C<alloc> command which "
6561 "allocates a file in the host and attaches it as a device."
6562 msgstr ""
6563
6564 # type: textblock
6565 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6566 msgid ""
6567 "This function is deprecated.  In new code, use the C<fallocate64> call "
6568 "instead."
6569 msgstr ""
6570
6571 # type: =head2
6572 #: ../src/guestfs-actions.pod:1441
6573 msgid "guestfs_fallocate64"
6574 msgstr ""
6575
6576 # type: verbatim
6577 #: ../src/guestfs-actions.pod:1443
6578 #, no-wrap
6579 msgid ""
6580 " int\n"
6581 " guestfs_fallocate64 (guestfs_h *g,\n"
6582 "                      const char *path,\n"
6583 "                      int64_t len);\n"
6584 "\n"
6585 msgstr ""
6586
6587 # type: textblock
6588 #: ../src/guestfs-actions.pod:1452
6589 msgid ""
6590 "Note that this call allocates disk blocks for the file.  To create a sparse "
6591 "file use C<guestfs_truncate_size> instead."
6592 msgstr ""
6593
6594 # type: textblock
6595 #: ../src/guestfs-actions.pod:1455
6596 msgid ""
6597 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6598 "oversight it only allowed 30 bit lengths to be specified, effectively "
6599 "limiting the maximum size of files created through that call to 1GB."
6600 msgstr ""
6601
6602 # type: textblock
6603 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6604 msgid ""
6605 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6606 "commands which create a file in the host and attach it as a device."
6607 msgstr ""
6608
6609 # type: textblock
6610 #: ../src/guestfs-actions.pod:1466
6611 msgid "(Added in 1.3.17)"
6612 msgstr ""
6613
6614 # type: =head2
6615 #: ../src/guestfs-actions.pod:1468
6616 msgid "guestfs_fgrep"
6617 msgstr ""
6618
6619 # type: verbatim
6620 #: ../src/guestfs-actions.pod:1470
6621 #, no-wrap
6622 msgid ""
6623 " char **\n"
6624 " guestfs_fgrep (guestfs_h *g,\n"
6625 "                const char *pattern,\n"
6626 "                const char *path);\n"
6627 "\n"
6628 msgstr ""
6629
6630 # type: textblock
6631 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
6632 msgid "This calls the external C<fgrep> program and returns the matching lines."
6633 msgstr ""
6634
6635 # type: =head2
6636 #: ../src/guestfs-actions.pod:1487
6637 msgid "guestfs_fgrepi"
6638 msgstr ""
6639
6640 # type: verbatim
6641 #: ../src/guestfs-actions.pod:1489
6642 #, no-wrap
6643 msgid ""
6644 " char **\n"
6645 " guestfs_fgrepi (guestfs_h *g,\n"
6646 "                 const char *pattern,\n"
6647 "                 const char *path);\n"
6648 "\n"
6649 msgstr ""
6650
6651 # type: textblock
6652 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
6653 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6654 msgstr ""
6655
6656 # type: =head2
6657 #: ../src/guestfs-actions.pod:1506
6658 msgid "guestfs_file"
6659 msgstr ""
6660
6661 # type: verbatim
6662 #: ../src/guestfs-actions.pod:1508
6663 #, no-wrap
6664 msgid ""
6665 " char *\n"
6666 " guestfs_file (guestfs_h *g,\n"
6667 "               const char *path);\n"
6668 "\n"
6669 msgstr ""
6670
6671 # type: textblock
6672 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
6673 msgid ""
6674 "This call uses the standard L<file(1)> command to determine the type or "
6675 "contents of the file."
6676 msgstr ""
6677
6678 # type: textblock
6679 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
6680 msgid ""
6681 "This call will also transparently look inside various types of compressed "
6682 "file."
6683 msgstr ""
6684
6685 # type: textblock
6686 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
6687 msgid ""
6688 "The exact command which runs is C<file -zb path>.  Note in particular that "
6689 "the filename is not prepended to the output (the C<-b> option)."
6690 msgstr ""
6691
6692 # type: textblock
6693 #: ../src/guestfs-actions.pod:1522
6694 msgid ""
6695 "This command can also be used on C</dev/> devices (and partitions, LV "
6696 "names).  You can for example use this to determine if a device contains a "
6697 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6698 msgstr ""
6699
6700 # type: textblock
6701 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
6702 msgid ""
6703 "If the C<path> does not begin with C</dev/> then this command only works for "
6704 "the content of regular files.  For other file types (directory, symbolic "
6705 "link etc) it will just return the string C<directory> etc."
6706 msgstr ""
6707
6708 # type: =head2
6709 #: ../src/guestfs-actions.pod:1537
6710 msgid "guestfs_file_architecture"
6711 msgstr ""
6712
6713 # type: verbatim
6714 #: ../src/guestfs-actions.pod:1539
6715 #, no-wrap
6716 msgid ""
6717 " char *\n"
6718 " guestfs_file_architecture (guestfs_h *g,\n"
6719 "                            const char *filename);\n"
6720 "\n"
6721 msgstr ""
6722
6723 # type: textblock
6724 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
6725 msgid ""
6726 "This detects the architecture of the binary C<filename>, and returns it if "
6727 "known."
6728 msgstr ""
6729
6730 # type: textblock
6731 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
6732 msgid "Currently defined architectures are:"
6733 msgstr ""
6734
6735 # type: =item
6736 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
6737 msgid "\"i386\""
6738 msgstr ""
6739
6740 # type: textblock
6741 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
6742 msgid ""
6743 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6744 "irrespective of the precise processor requirements of the binary."
6745 msgstr ""
6746
6747 # type: =item
6748 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
6749 msgid "\"x86_64\""
6750 msgstr ""
6751
6752 # type: textblock
6753 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
6754 msgid "64 bit x86-64."
6755 msgstr ""
6756
6757 # type: =item
6758 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
6759 msgid "\"sparc\""
6760 msgstr ""
6761
6762 # type: textblock
6763 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
6764 msgid "32 bit SPARC."
6765 msgstr ""
6766
6767 # type: =item
6768 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
6769 msgid "\"sparc64\""
6770 msgstr ""
6771
6772 # type: textblock
6773 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
6774 msgid "64 bit SPARC V9 and above."
6775 msgstr ""
6776
6777 # type: =item
6778 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
6779 msgid "\"ia64\""
6780 msgstr ""
6781
6782 # type: textblock
6783 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
6784 msgid "Intel Itanium."
6785 msgstr ""
6786
6787 # type: =item
6788 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
6789 msgid "\"ppc\""
6790 msgstr ""
6791
6792 # type: textblock
6793 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
6794 msgid "32 bit Power PC."
6795 msgstr ""
6796
6797 # type: =item
6798 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
6799 msgid "\"ppc64\""
6800 msgstr ""
6801
6802 # type: textblock
6803 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
6804 msgid "64 bit Power PC."
6805 msgstr ""
6806
6807 # type: textblock
6808 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
6809 msgid "Libguestfs may return other architecture strings in future."
6810 msgstr ""
6811
6812 # type: textblock
6813 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
6814 msgid "The function works on at least the following types of files:"
6815 msgstr ""
6816
6817 # type: textblock
6818 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
6819 msgid "many types of Un*x and Linux binary"
6820 msgstr ""
6821
6822 # type: textblock
6823 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
6824 msgid "many types of Un*x and Linux shared library"
6825 msgstr ""
6826
6827 # type: textblock
6828 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
6829 msgid "Windows Win32 and Win64 binaries"
6830 msgstr ""
6831
6832 # type: textblock
6833 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
6834 msgid "Windows Win32 and Win64 DLLs"
6835 msgstr ""
6836
6837 # type: textblock
6838 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
6839 msgid "Win32 binaries and DLLs return C<i386>."
6840 msgstr ""
6841
6842 # type: textblock
6843 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
6844 msgid "Win64 binaries and DLLs return C<x86_64>."
6845 msgstr ""
6846
6847 # type: textblock
6848 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
6849 msgid "Linux kernel modules"
6850 msgstr ""
6851
6852 # type: textblock
6853 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
6854 msgid "Linux new-style initrd images"
6855 msgstr ""
6856
6857 # type: textblock
6858 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
6859 msgid "some non-x86 Linux vmlinuz kernels"
6860 msgstr ""
6861
6862 # type: textblock
6863 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
6864 msgid "What it can't do currently:"
6865 msgstr ""
6866
6867 # type: textblock
6868 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
6869 msgid "static libraries (libfoo.a)"
6870 msgstr ""
6871
6872 # type: textblock
6873 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
6874 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6875 msgstr ""
6876
6877 # type: textblock
6878 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
6879 msgid "x86 Linux vmlinuz kernels"
6880 msgstr ""
6881
6882 # type: textblock
6883 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
6884 msgid ""
6885 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6886 "compressed code, and are horribly hard to unpack.  If you want to find the "
6887 "architecture of a kernel, use the architecture of the associated initrd or "
6888 "kernel module(s) instead."
6889 msgstr ""
6890
6891 # type: textblock
6892 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810 ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478 ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2686 ../src/guestfs-actions.pod:2766 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:2997 ../src/guestfs-actions.pod:3129
6893 msgid "(Added in 1.5.3)"
6894 msgstr ""
6895
6896 # type: =head2
6897 #: ../src/guestfs-actions.pod:1649
6898 msgid "guestfs_filesize"
6899 msgstr ""
6900
6901 # type: verbatim
6902 #: ../src/guestfs-actions.pod:1651
6903 #, no-wrap
6904 msgid ""
6905 " int64_t\n"
6906 " guestfs_filesize (guestfs_h *g,\n"
6907 "                   const char *file);\n"
6908 "\n"
6909 msgstr ""
6910
6911 # type: textblock
6912 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
6913 msgid "This command returns the size of C<file> in bytes."
6914 msgstr ""
6915
6916 # type: textblock
6917 #: ../src/guestfs-actions.pod:1657
6918 msgid ""
6919 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6920 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6921 "devices, use C<guestfs_blockdev_getsize64>."
6922 msgstr ""
6923
6924 # type: textblock
6925 #: ../src/guestfs-actions.pod:1663
6926 msgid "(Added in 1.0.82)"
6927 msgstr ""
6928
6929 # type: =head2
6930 #: ../src/guestfs-actions.pod:1665
6931 msgid "guestfs_fill"
6932 msgstr ""
6933
6934 # type: verbatim
6935 #: ../src/guestfs-actions.pod:1667
6936 #, no-wrap
6937 msgid ""
6938 " int\n"
6939 " guestfs_fill (guestfs_h *g,\n"
6940 "               int c,\n"
6941 "               int len,\n"
6942 "               const char *path);\n"
6943 "\n"
6944 msgstr ""
6945
6946 # type: textblock
6947 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
6948 msgid ""
6949 "This command creates a new file called C<path>.  The initial content of the "
6950 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6951 "C<[0..255]>."
6952 msgstr ""
6953
6954 # type: textblock
6955 #: ../src/guestfs-actions.pod:1677
6956 msgid ""
6957 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6958 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6959 "bytes use C<guestfs_fill_pattern>."
6960 msgstr ""
6961
6962 # type: textblock
6963 #: ../src/guestfs-actions.pod:1689
6964 msgid "(Added in 1.0.79)"
6965 msgstr ""
6966
6967 # type: =head2
6968 #: ../src/guestfs-actions.pod:1691
6969 msgid "guestfs_fill_pattern"
6970 msgstr ""
6971
6972 # type: verbatim
6973 #: ../src/guestfs-actions.pod:1693
6974 #, no-wrap
6975 msgid ""
6976 " int\n"
6977 " guestfs_fill_pattern (guestfs_h *g,\n"
6978 "                       const char *pattern,\n"
6979 "                       int len,\n"
6980 "                       const char *path);\n"
6981 "\n"
6982 msgstr ""
6983
6984 # type: textblock
6985 #: ../src/guestfs-actions.pod:1699
6986 msgid ""
6987 "This function is like C<guestfs_fill> except that it creates a new file of "
6988 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6989 "pattern is truncated if necessary to ensure the length of the file is "
6990 "exactly C<len> bytes."
6991 msgstr ""
6992
6993 # type: textblock
6994 #: ../src/guestfs-actions.pod:1711
6995 msgid "(Added in 1.3.12)"
6996 msgstr ""
6997
6998 # type: =head2
6999 #: ../src/guestfs-actions.pod:1713
7000 msgid "guestfs_find"
7001 msgstr ""
7002
7003 # type: verbatim
7004 #: ../src/guestfs-actions.pod:1715
7005 #, no-wrap
7006 msgid ""
7007 " char **\n"
7008 " guestfs_find (guestfs_h *g,\n"
7009 "               const char *directory);\n"
7010 "\n"
7011 msgstr ""
7012
7013 # type: textblock
7014 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7015 msgid ""
7016 "This command lists out all files and directories, recursively, starting at "
7017 "C<directory>.  It is essentially equivalent to running the shell command "
7018 "C<find directory -print> but some post-processing happens on the output, "
7019 "described below."
7020 msgstr ""
7021
7022 # type: textblock
7023 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7024 msgid ""
7025 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7026 "structure was:"
7027 msgstr ""
7028
7029 # type: verbatim
7030 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7031 #, no-wrap
7032 msgid ""
7033 " /tmp/a\n"
7034 " /tmp/b\n"
7035 " /tmp/c/d\n"
7036 "\n"
7037 msgstr ""
7038
7039 # type: textblock
7040 #: ../src/guestfs-actions.pod:1731
7041 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7042 msgstr ""
7043
7044 # type: verbatim
7045 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7046 #, no-wrap
7047 msgid ""
7048 " a\n"
7049 " b\n"
7050 " c\n"
7051 " c/d\n"
7052 "\n"
7053 msgstr ""
7054
7055 # type: textblock
7056 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7057 msgid "If C<directory> is not a directory, then this command returns an error."
7058 msgstr ""
7059
7060 # type: textblock
7061 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7062 msgid "The returned list is sorted."
7063 msgstr ""
7064
7065 # type: textblock
7066 #: ../src/guestfs-actions.pod:1744
7067 msgid "See also C<guestfs_find0>."
7068 msgstr ""
7069
7070 # type: textblock
7071 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3788 ../src/guestfs-actions.pod:5249
7072 msgid "(Added in 1.0.27)"
7073 msgstr ""
7074
7075 # type: =head2
7076 #: ../src/guestfs-actions.pod:1755
7077 msgid "guestfs_find0"
7078 msgstr ""
7079
7080 # type: verbatim
7081 #: ../src/guestfs-actions.pod:1757
7082 #, no-wrap
7083 msgid ""
7084 " int\n"
7085 " guestfs_find0 (guestfs_h *g,\n"
7086 "                const char *directory,\n"
7087 "                const char *files);\n"
7088 "\n"
7089 msgstr ""
7090
7091 # type: textblock
7092 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7093 msgid ""
7094 "This command lists out all files and directories, recursively, starting at "
7095 "C<directory>, placing the resulting list in the external file called "
7096 "C<files>."
7097 msgstr ""
7098
7099 # type: textblock
7100 #: ../src/guestfs-actions.pod:1766
7101 msgid ""
7102 "This command works the same way as C<guestfs_find> with the following "
7103 "exceptions:"
7104 msgstr ""
7105
7106 # type: textblock
7107 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7108 msgid "The resulting list is written to an external file."
7109 msgstr ""
7110
7111 # type: textblock
7112 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7113 msgid ""
7114 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7115 "L<find(1)> option I<-print0>."
7116 msgstr ""
7117
7118 # type: textblock
7119 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7120 msgid "This command is not limited in the number of names that it can return."
7121 msgstr ""
7122
7123 # type: textblock
7124 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7125 msgid "The result list is not sorted."
7126 msgstr ""
7127
7128 # type: textblock
7129 #: ../src/guestfs-actions.pod:1793
7130 msgid "(Added in 1.0.74)"
7131 msgstr ""
7132
7133 # type: =head2
7134 #: ../src/guestfs-actions.pod:1795
7135 msgid "guestfs_findfs_label"
7136 msgstr ""
7137
7138 # type: verbatim
7139 #: ../src/guestfs-actions.pod:1797
7140 #, no-wrap
7141 msgid ""
7142 " char *\n"
7143 " guestfs_findfs_label (guestfs_h *g,\n"
7144 "                       const char *label);\n"
7145 "\n"
7146 msgstr ""
7147
7148 # type: textblock
7149 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7150 msgid ""
7151 "This command searches the filesystems and returns the one which has the "
7152 "given label.  An error is returned if no such filesystem can be found."
7153 msgstr ""
7154
7155 # type: textblock
7156 #: ../src/guestfs-actions.pod:1805
7157 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7158 msgstr ""
7159
7160 # type: =head2
7161 #: ../src/guestfs-actions.pod:1812
7162 msgid "guestfs_findfs_uuid"
7163 msgstr ""
7164
7165 # type: verbatim
7166 #: ../src/guestfs-actions.pod:1814
7167 #, no-wrap
7168 msgid ""
7169 " char *\n"
7170 " guestfs_findfs_uuid (guestfs_h *g,\n"
7171 "                      const char *uuid);\n"
7172 "\n"
7173 msgstr ""
7174
7175 # type: textblock
7176 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7177 msgid ""
7178 "This command searches the filesystems and returns the one which has the "
7179 "given UUID.  An error is returned if no such filesystem can be found."
7180 msgstr ""
7181
7182 # type: textblock
7183 #: ../src/guestfs-actions.pod:1822
7184 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7185 msgstr ""
7186
7187 # type: =head2
7188 #: ../src/guestfs-actions.pod:1829
7189 msgid "guestfs_fsck"
7190 msgstr ""
7191
7192 # type: verbatim
7193 #: ../src/guestfs-actions.pod:1831
7194 #, no-wrap
7195 msgid ""
7196 " int\n"
7197 " guestfs_fsck (guestfs_h *g,\n"
7198 "               const char *fstype,\n"
7199 "               const char *device);\n"
7200 "\n"
7201 msgstr ""
7202
7203 # type: textblock
7204 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7205 msgid ""
7206 "This runs the filesystem checker (fsck) on C<device> which should have "
7207 "filesystem type C<fstype>."
7208 msgstr ""
7209
7210 # type: textblock
7211 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7212 msgid ""
7213 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7214 "codes from C<fsck>."
7215 msgstr ""
7216
7217 # type: textblock
7218 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7219 msgid "Multiple status codes can be summed together."
7220 msgstr ""
7221
7222 # type: textblock
7223 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7224 msgid ""
7225 "A non-zero return code can mean \"success\", for example if errors have been "
7226 "corrected on the filesystem."
7227 msgstr ""
7228
7229 # type: textblock
7230 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7231 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7232 msgstr ""
7233
7234 # type: textblock
7235 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7236 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7237 msgstr ""
7238
7239 # type: textblock
7240 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6886
7241 msgid "(Added in 1.0.16)"
7242 msgstr ""
7243
7244 # type: =head2
7245 #: ../src/guestfs-actions.pod:1868
7246 msgid "guestfs_get_append"
7247 msgstr ""
7248
7249 # type: verbatim
7250 #: ../src/guestfs-actions.pod:1870
7251 #, no-wrap
7252 msgid ""
7253 " const char *\n"
7254 " guestfs_get_append (guestfs_h *g);\n"
7255 "\n"
7256 msgstr ""
7257
7258 # type: textblock
7259 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7260 msgid ""
7261 "Return the additional kernel options which are added to the guest kernel "
7262 "command line."
7263 msgstr ""
7264
7265 # type: textblock
7266 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7267 msgid "If C<NULL> then no options are added."
7268 msgstr ""
7269
7270 # type: textblock
7271 #: ../src/guestfs-actions.pod:1878
7272 msgid ""
7273 "This function returns a string which may be NULL.  There is no way to return "
7274 "an error from this function.  The string is owned by the guest handle and "
7275 "must I<not> be freed."
7276 msgstr ""
7277
7278 # type: textblock
7279 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4927 ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5758 ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5793 ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:6557 ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6929
7280 msgid "(Added in 1.0.26)"
7281 msgstr ""
7282
7283 # type: =head2
7284 #: ../src/guestfs-actions.pod:1884
7285 msgid "guestfs_get_autosync"
7286 msgstr ""
7287
7288 # type: verbatim
7289 #: ../src/guestfs-actions.pod:1886
7290 #, no-wrap
7291 msgid ""
7292 " int\n"
7293 " guestfs_get_autosync (guestfs_h *g);\n"
7294 "\n"
7295 msgstr ""
7296
7297 # type: textblock
7298 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7299 msgid "Get the autosync flag."
7300 msgstr ""
7301
7302 # type: =head2
7303 #: ../src/guestfs-actions.pod:1895
7304 msgid "guestfs_get_direct"
7305 msgstr ""
7306
7307 # type: verbatim
7308 #: ../src/guestfs-actions.pod:1897
7309 #, no-wrap
7310 msgid ""
7311 " int\n"
7312 " guestfs_get_direct (guestfs_h *g);\n"
7313 "\n"
7314 msgstr ""
7315
7316 # type: textblock
7317 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7318 msgid "Return the direct appliance mode flag."
7319 msgstr ""
7320
7321 # type: textblock
7322 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5431
7323 msgid "(Added in 1.0.72)"
7324 msgstr ""
7325
7326 # type: =head2
7327 #: ../src/guestfs-actions.pod:1906
7328 msgid "guestfs_get_e2label"
7329 msgstr ""
7330
7331 # type: verbatim
7332 #: ../src/guestfs-actions.pod:1908
7333 #, no-wrap
7334 msgid ""
7335 " char *\n"
7336 " guestfs_get_e2label (guestfs_h *g,\n"
7337 "                      const char *device);\n"
7338 "\n"
7339 msgstr ""
7340
7341 # type: textblock
7342 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7343 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7344 msgstr ""
7345
7346 # type: textblock
7347 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7348 msgid ""
7349 "This function is deprecated.  In new code, use the C<vfs_label> call "
7350 "instead."
7351 msgstr ""
7352
7353 # type: textblock
7354 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5468
7355 msgid "(Added in 1.0.15)"
7356 msgstr ""
7357
7358 # type: =head2
7359 #: ../src/guestfs-actions.pod:1927
7360 msgid "guestfs_get_e2uuid"
7361 msgstr ""
7362
7363 # type: verbatim
7364 #: ../src/guestfs-actions.pod:1929
7365 #, no-wrap
7366 msgid ""
7367 " char *\n"
7368 " guestfs_get_e2uuid (guestfs_h *g,\n"
7369 "                     const char *device);\n"
7370 "\n"
7371 msgstr ""
7372
7373 # type: textblock
7374 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7375 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7376 msgstr ""
7377
7378 # type: textblock
7379 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7380 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7381 msgstr ""
7382
7383 # type: =head2
7384 #: ../src/guestfs-actions.pod:1948
7385 msgid "guestfs_get_memsize"
7386 msgstr ""
7387
7388 # type: verbatim
7389 #: ../src/guestfs-actions.pod:1950
7390 #, no-wrap
7391 msgid ""
7392 " int\n"
7393 " guestfs_get_memsize (guestfs_h *g);\n"
7394 "\n"
7395 msgstr ""
7396
7397 # type: textblock
7398 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7399 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7400 msgstr ""
7401
7402 # type: textblock
7403 #: ../src/guestfs-actions.pod:1956
7404 msgid ""
7405 "If C<guestfs_set_memsize> was not called on this handle, and if "
7406 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7407 "value for memsize."
7408 msgstr ""
7409
7410 # type: textblock
7411 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5591 ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388 ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3767
7412 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7413 msgstr ""
7414
7415 # type: textblock
7416 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4213 ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5489 ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:6333
7417 msgid "(Added in 1.0.55)"
7418 msgstr ""
7419
7420 # type: =head2
7421 #: ../src/guestfs-actions.pod:1967
7422 msgid "guestfs_get_network"
7423 msgstr ""
7424
7425 # type: verbatim
7426 #: ../src/guestfs-actions.pod:1969
7427 #, no-wrap
7428 msgid ""
7429 " int\n"
7430 " guestfs_get_network (guestfs_h *g);\n"
7431 "\n"
7432 msgstr ""
7433
7434 # type: textblock
7435 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7436 msgid "This returns the enable network flag."
7437 msgstr ""
7438
7439 # type: textblock
7440 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5508
7441 msgid "(Added in 1.5.4)"
7442 msgstr ""
7443
7444 # type: =head2
7445 #: ../src/guestfs-actions.pod:1978
7446 msgid "guestfs_get_path"
7447 msgstr ""
7448
7449 # type: verbatim
7450 #: ../src/guestfs-actions.pod:1980
7451 #, no-wrap
7452 msgid ""
7453 " const char *\n"
7454 " guestfs_get_path (guestfs_h *g);\n"
7455 "\n"
7456 msgstr ""
7457
7458 # type: textblock
7459 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7460 msgid "Return the current search path."
7461 msgstr ""
7462
7463 # type: textblock
7464 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7465 msgid ""
7466 "This is always non-NULL.  If it wasn't set already, then this will return "
7467 "the default path."
7468 msgstr ""
7469
7470 # type: textblock
7471 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7472 msgid ""
7473 "This function returns a string, or NULL on error.  The string is owned by "
7474 "the guest handle and must I<not> be freed."
7475 msgstr ""
7476
7477 # type: =head2
7478 #: ../src/guestfs-actions.pod:1993
7479 msgid "guestfs_get_pid"
7480 msgstr ""
7481
7482 # type: verbatim
7483 #: ../src/guestfs-actions.pod:1995
7484 #, no-wrap
7485 msgid ""
7486 " int\n"
7487 " guestfs_get_pid (guestfs_h *g);\n"
7488 "\n"
7489 msgstr ""
7490
7491 # type: textblock
7492 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7493 msgid ""
7494 "Return the process ID of the qemu subprocess.  If there is no qemu "
7495 "subprocess, then this will return an error."
7496 msgstr ""
7497
7498 # type: textblock
7499 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7500 msgid "This is an internal call used for debugging and testing."
7501 msgstr ""
7502
7503 # type: textblock
7504 #: ../src/guestfs-actions.pod:2005
7505 msgid "(Added in 1.0.56)"
7506 msgstr ""
7507
7508 # type: =head2
7509 #: ../src/guestfs-actions.pod:2007
7510 msgid "guestfs_get_qemu"
7511 msgstr ""
7512
7513 # type: verbatim
7514 #: ../src/guestfs-actions.pod:2009
7515 #, no-wrap
7516 msgid ""
7517 " const char *\n"
7518 " guestfs_get_qemu (guestfs_h *g);\n"
7519 "\n"
7520 msgstr ""
7521
7522 # type: textblock
7523 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7524 msgid "Return the current qemu binary."
7525 msgstr ""
7526
7527 # type: textblock
7528 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7529 msgid ""
7530 "This is always non-NULL.  If it wasn't set already, then this will return "
7531 "the default qemu binary name."
7532 msgstr ""
7533
7534 # type: textblock
7535 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5553
7536 msgid "(Added in 1.0.6)"
7537 msgstr ""
7538
7539 # type: =head2
7540 #: ../src/guestfs-actions.pod:2022
7541 msgid "guestfs_get_recovery_proc"
7542 msgstr ""
7543
7544 # type: verbatim
7545 #: ../src/guestfs-actions.pod:2024
7546 #, no-wrap
7547 msgid ""
7548 " int\n"
7549 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7550 "\n"
7551 msgstr ""
7552
7553 # type: textblock
7554 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7555 msgid "Return the recovery process enabled flag."
7556 msgstr ""
7557
7558 # type: textblock
7559 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3219 ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3886 ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:4857 ../src/guestfs-actions.pod:5200 ../src/guestfs-actions.pod:5577 ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6438
7560 msgid "(Added in 1.0.77)"
7561 msgstr ""
7562
7563 # type: =head2
7564 #: ../src/guestfs-actions.pod:2033
7565 msgid "guestfs_get_selinux"
7566 msgstr ""
7567
7568 # type: verbatim
7569 #: ../src/guestfs-actions.pod:2035
7570 #, no-wrap
7571 msgid ""
7572 " int\n"
7573 " guestfs_get_selinux (guestfs_h *g);\n"
7574 "\n"
7575 msgstr ""
7576
7577 # type: textblock
7578 #: ../src/guestfs-actions.pod:2038
7579 msgid ""
7580 "This returns the current setting of the selinux flag which is passed to the "
7581 "appliance at boot time.  See C<guestfs_set_selinux>."
7582 msgstr ""
7583
7584 # type: textblock
7585 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109 ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5650
7586 msgid "(Added in 1.0.67)"
7587 msgstr ""
7588
7589 # type: =head2
7590 #: ../src/guestfs-actions.pod:2048
7591 msgid "guestfs_get_state"
7592 msgstr ""
7593
7594 # type: verbatim
7595 #: ../src/guestfs-actions.pod:2050
7596 #, no-wrap
7597 msgid ""
7598 " int\n"
7599 " guestfs_get_state (guestfs_h *g);\n"
7600 "\n"
7601 msgstr ""
7602
7603 # type: textblock
7604 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
7605 msgid ""
7606 "This returns the current state as an opaque integer.  This is only useful "
7607 "for printing debug and internal error messages."
7608 msgstr ""
7609
7610 # type: textblock
7611 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3022 ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3112 ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131 ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
7612 msgid "For more information on states, see L<guestfs(3)>."
7613 msgstr ""
7614
7615 # type: =head2
7616 #: ../src/guestfs-actions.pod:2062
7617 msgid "guestfs_get_trace"
7618 msgstr ""
7619
7620 # type: verbatim
7621 #: ../src/guestfs-actions.pod:2064
7622 #, no-wrap
7623 msgid ""
7624 " int\n"
7625 " guestfs_get_trace (guestfs_h *g);\n"
7626 "\n"
7627 msgstr ""
7628
7629 # type: textblock
7630 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
7631 msgid "Return the command trace flag."
7632 msgstr ""
7633
7634 # type: =head2
7635 #: ../src/guestfs-actions.pod:2073
7636 msgid "guestfs_get_umask"
7637 msgstr ""
7638
7639 # type: verbatim
7640 #: ../src/guestfs-actions.pod:2075
7641 #, no-wrap
7642 msgid ""
7643 " int\n"
7644 " guestfs_get_umask (guestfs_h *g);\n"
7645 "\n"
7646 msgstr ""
7647
7648 # type: textblock
7649 #: ../src/guestfs-actions.pod:2078
7650 msgid ""
7651 "Return the current umask.  By default the umask is C<022> unless it has been "
7652 "set by calling C<guestfs_umask>."
7653 msgstr ""
7654
7655 # type: =head2
7656 #: ../src/guestfs-actions.pod:2085
7657 msgid "guestfs_get_verbose"
7658 msgstr ""
7659
7660 # type: verbatim
7661 #: ../src/guestfs-actions.pod:2087
7662 #, no-wrap
7663 msgid ""
7664 " int\n"
7665 " guestfs_get_verbose (guestfs_h *g);\n"
7666 "\n"
7667 msgstr ""
7668
7669 # type: textblock
7670 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
7671 msgid "This returns the verbose messages flag."
7672 msgstr ""
7673
7674 # type: =head2
7675 #: ../src/guestfs-actions.pod:2096
7676 msgid "guestfs_getcon"
7677 msgstr ""
7678
7679 # type: verbatim
7680 #: ../src/guestfs-actions.pod:2098
7681 #, no-wrap
7682 msgid ""
7683 " char *\n"
7684 " guestfs_getcon (guestfs_h *g);\n"
7685 "\n"
7686 msgstr ""
7687
7688 # type: textblock
7689 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
7690 msgid "This gets the SELinux security context of the daemon."
7691 msgstr ""
7692
7693 # type: textblock
7694 #: ../src/guestfs-actions.pod:2103
7695 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7696 msgstr ""
7697
7698 # type: =head2
7699 #: ../src/guestfs-actions.pod:2111
7700 msgid "guestfs_getxattrs"
7701 msgstr ""
7702
7703 # type: verbatim
7704 #: ../src/guestfs-actions.pod:2113
7705 #, no-wrap
7706 msgid ""
7707 " struct guestfs_xattr_list *\n"
7708 " guestfs_getxattrs (guestfs_h *g,\n"
7709 "                    const char *path);\n"
7710 "\n"
7711 msgstr ""
7712
7713 # type: textblock
7714 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
7715 msgid "This call lists the extended attributes of the file or directory C<path>."
7716 msgstr ""
7717
7718 # type: textblock
7719 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
7720 msgid ""
7721 "At the system call level, this is a combination of the L<listxattr(2)> and "
7722 "L<getxattr(2)> calls."
7723 msgstr ""
7724
7725 # type: textblock
7726 #: ../src/guestfs-actions.pod:2123
7727 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7728 msgstr ""
7729
7730 # type: textblock
7731 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3231 ../src/guestfs-actions.pod:3882
7732 msgid ""
7733 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7734 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7735 msgstr ""
7736
7737 # type: textblock
7738 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3235 ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3436 ../src/guestfs-actions.pod:5230 ../src/guestfs-actions.pod:5669 ../src/guestfs-actions.pod:6994
7739 msgid "(Added in 1.0.59)"
7740 msgstr ""
7741
7742 # type: =head2
7743 #: ../src/guestfs-actions.pod:2131
7744 msgid "guestfs_glob_expand"
7745 msgstr ""
7746
7747 # type: verbatim
7748 #: ../src/guestfs-actions.pod:2133
7749 #, no-wrap
7750 msgid ""
7751 " char **\n"
7752 " guestfs_glob_expand (guestfs_h *g,\n"
7753 "                      const char *pattern);\n"
7754 "\n"
7755 msgstr ""
7756
7757 # type: textblock
7758 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
7759 msgid ""
7760 "This command searches for all the pathnames matching C<pattern> according to "
7761 "the wildcard expansion rules used by the shell."
7762 msgstr ""
7763
7764 # type: textblock
7765 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
7766 msgid "If no paths match, then this returns an empty list (note: not an error)."
7767 msgstr ""
7768
7769 # type: textblock
7770 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
7771 msgid ""
7772 "It is just a wrapper around the C L<glob(3)> function with flags "
7773 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7774 msgstr ""
7775
7776 # type: textblock
7777 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5851
7778 msgid "(Added in 1.0.50)"
7779 msgstr ""
7780
7781 # type: =head2
7782 #: ../src/guestfs-actions.pod:2154
7783 msgid "guestfs_grep"
7784 msgstr ""
7785
7786 # type: verbatim
7787 #: ../src/guestfs-actions.pod:2156
7788 #, no-wrap
7789 msgid ""
7790 " char **\n"
7791 " guestfs_grep (guestfs_h *g,\n"
7792 "               const char *regex,\n"
7793 "               const char *path);\n"
7794 "\n"
7795 msgstr ""
7796
7797 # type: textblock
7798 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
7799 msgid "This calls the external C<grep> program and returns the matching lines."
7800 msgstr ""
7801
7802 # type: =head2
7803 #: ../src/guestfs-actions.pod:2173
7804 msgid "guestfs_grepi"
7805 msgstr ""
7806
7807 # type: verbatim
7808 #: ../src/guestfs-actions.pod:2175
7809 #, no-wrap
7810 msgid ""
7811 " char **\n"
7812 " guestfs_grepi (guestfs_h *g,\n"
7813 "                const char *regex,\n"
7814 "                const char *path);\n"
7815 "\n"
7816 msgstr ""
7817
7818 # type: textblock
7819 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
7820 msgid "This calls the external C<grep -i> program and returns the matching lines."
7821 msgstr ""
7822
7823 # type: =head2
7824 #: ../src/guestfs-actions.pod:2192
7825 msgid "guestfs_grub_install"
7826 msgstr ""
7827
7828 # type: verbatim
7829 #: ../src/guestfs-actions.pod:2194
7830 #, no-wrap
7831 msgid ""
7832 " int\n"
7833 " guestfs_grub_install (guestfs_h *g,\n"
7834 "                       const char *root,\n"
7835 "                       const char *device);\n"
7836 "\n"
7837 msgstr ""
7838
7839 # type: textblock
7840 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
7841 msgid ""
7842 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7843 "the root directory being C<root>."
7844 msgstr ""
7845
7846 # type: textblock
7847 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
7848 msgid ""
7849 "Note: If grub-install reports the error \"No suitable drive was found in the "
7850 "generated device map.\" it may be that you need to create a "
7851 "C</boot/grub/device.map> file first that contains the mapping between grub "
7852 "device names and Linux device names.  It is usually sufficient to create a "
7853 "file containing:"
7854 msgstr ""
7855
7856 # type: verbatim
7857 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
7858 #, no-wrap
7859 msgid ""
7860 " (hd0) /dev/vda\n"
7861 "\n"
7862 msgstr ""
7863
7864 # type: textblock
7865 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
7866 msgid "replacing C</dev/vda> with the name of the installation device."
7867 msgstr ""
7868
7869 # type: textblock
7870 #: ../src/guestfs-actions.pod:2215
7871 msgid "(Added in 1.0.17)"
7872 msgstr ""
7873
7874 # type: =head2
7875 #: ../src/guestfs-actions.pod:2217
7876 msgid "guestfs_head"
7877 msgstr ""
7878
7879 # type: verbatim
7880 #: ../src/guestfs-actions.pod:2219
7881 #, no-wrap
7882 msgid ""
7883 " char **\n"
7884 " guestfs_head (guestfs_h *g,\n"
7885 "               const char *path);\n"
7886 "\n"
7887 msgstr ""
7888
7889 # type: textblock
7890 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
7891 msgid ""
7892 "This command returns up to the first 10 lines of a file as a list of "
7893 "strings."
7894 msgstr ""
7895
7896 # type: =head2
7897 #: ../src/guestfs-actions.pod:2235
7898 msgid "guestfs_head_n"
7899 msgstr ""
7900
7901 # type: verbatim
7902 #: ../src/guestfs-actions.pod:2237
7903 #, no-wrap
7904 msgid ""
7905 " char **\n"
7906 " guestfs_head_n (guestfs_h *g,\n"
7907 "                 int nrlines,\n"
7908 "                 const char *path);\n"
7909 "\n"
7910 msgstr ""
7911
7912 # type: textblock
7913 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
7914 msgid ""
7915 "If the parameter C<nrlines> is a positive number, this returns the first "
7916 "C<nrlines> lines of the file C<path>."
7917 msgstr ""
7918
7919 # type: textblock
7920 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
7921 msgid ""
7922 "If the parameter C<nrlines> is a negative number, this returns lines from "
7923 "the file C<path>, excluding the last C<nrlines> lines."
7924 msgstr ""
7925
7926 # type: textblock
7927 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:6131 ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
7928 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7929 msgstr ""
7930
7931 # type: =head2
7932 #: ../src/guestfs-actions.pod:2259
7933 msgid "guestfs_hexdump"
7934 msgstr ""
7935
7936 # type: verbatim
7937 #: ../src/guestfs-actions.pod:2261
7938 #, no-wrap
7939 msgid ""
7940 " char *\n"
7941 " guestfs_hexdump (guestfs_h *g,\n"
7942 "                  const char *path);\n"
7943 "\n"
7944 msgstr ""
7945
7946 # type: textblock
7947 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
7948 msgid ""
7949 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7950 "human-readable, canonical hex dump of the file."
7951 msgstr ""
7952
7953 # type: textblock
7954 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5915 ../src/guestfs-actions.pod:5970
7955 msgid "(Added in 1.0.22)"
7956 msgstr ""
7957
7958 # type: =head2
7959 #: ../src/guestfs-actions.pod:2276
7960 msgid "guestfs_initrd_cat"
7961 msgstr ""
7962
7963 # type: verbatim
7964 #: ../src/guestfs-actions.pod:2278
7965 #, no-wrap
7966 msgid ""
7967 " char *\n"
7968 " guestfs_initrd_cat (guestfs_h *g,\n"
7969 "                     const char *initrdpath,\n"
7970 "                     const char *filename,\n"
7971 "                     size_t *size_r);\n"
7972 "\n"
7973 msgstr ""
7974
7975 # type: textblock
7976 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
7977 msgid ""
7978 "This command unpacks the file C<filename> from the initrd file called "
7979 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7980 "character."
7981 msgstr ""
7982
7983 # type: textblock
7984 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
7985 msgid ""
7986 "For example, in guestfish you could use the following command to examine the "
7987 "boot script (usually called C</init>)  contained in a Linux initrd or "
7988 "initramfs image:"
7989 msgstr ""
7990
7991 # type: verbatim
7992 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
7993 #, no-wrap
7994 msgid ""
7995 " initrd-cat /boot/initrd-<version>.img init\n"
7996 "\n"
7997 msgstr ""
7998
7999 # type: textblock
8000 #: ../src/guestfs-actions.pod:2294
8001 msgid "See also C<guestfs_initrd_list>."
8002 msgstr ""
8003
8004 # type: textblock
8005 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4850 ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5057
8006 msgid ""
8007 "This function returns a buffer, or NULL on error.  The size of the returned "
8008 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8009 "after use>."
8010 msgstr ""
8011
8012 # type: =head2
8013 #: ../src/guestfs-actions.pod:2305
8014 msgid "guestfs_initrd_list"
8015 msgstr ""
8016
8017 # type: verbatim
8018 #: ../src/guestfs-actions.pod:2307
8019 #, no-wrap
8020 msgid ""
8021 " char **\n"
8022 " guestfs_initrd_list (guestfs_h *g,\n"
8023 "                      const char *path);\n"
8024 "\n"
8025 msgstr ""
8026
8027 # type: textblock
8028 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8029 msgid "This command lists out files contained in an initrd."
8030 msgstr ""
8031
8032 # type: textblock
8033 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8034 msgid ""
8035 "The files are listed without any initial C</> character.  The files are "
8036 "listed in the order they appear (not necessarily alphabetical).  Directory "
8037 "names are listed as separate items."
8038 msgstr ""
8039
8040 # type: textblock
8041 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8042 msgid ""
8043 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8044 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8045 "files)."
8046 msgstr ""
8047
8048 # type: =head2
8049 #: ../src/guestfs-actions.pod:2327
8050 msgid "guestfs_inotify_add_watch"
8051 msgstr ""
8052
8053 # type: verbatim
8054 #: ../src/guestfs-actions.pod:2329
8055 #, no-wrap
8056 msgid ""
8057 " int64_t\n"
8058 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8059 "                            const char *path,\n"
8060 "                            int mask);\n"
8061 "\n"
8062 msgstr ""
8063
8064 # type: textblock
8065 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8066 msgid "Watch C<path> for the events listed in C<mask>."
8067 msgstr ""
8068
8069 # type: textblock
8070 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8071 msgid ""
8072 "Note that if C<path> is a directory then events within that directory are "
8073 "watched, but this does I<not> happen recursively (in subdirectories)."
8074 msgstr ""
8075
8076 # type: textblock
8077 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8078 msgid ""
8079 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8080 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8081 msgstr ""
8082
8083 # type: =head2
8084 #: ../src/guestfs-actions.pod:2348
8085 msgid "guestfs_inotify_close"
8086 msgstr ""
8087
8088 # type: verbatim
8089 #: ../src/guestfs-actions.pod:2350
8090 #, no-wrap
8091 msgid ""
8092 " int\n"
8093 " guestfs_inotify_close (guestfs_h *g);\n"
8094 "\n"
8095 msgstr ""
8096
8097 # type: textblock
8098 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8099 msgid ""
8100 "This closes the inotify handle which was previously opened by inotify_init.  "
8101 "It removes all watches, throws away any pending events, and deallocates all "
8102 "resources."
8103 msgstr ""
8104
8105 # type: =head2
8106 #: ../src/guestfs-actions.pod:2361
8107 msgid "guestfs_inotify_files"
8108 msgstr ""
8109
8110 # type: verbatim
8111 #: ../src/guestfs-actions.pod:2363
8112 #, no-wrap
8113 msgid ""
8114 " char **\n"
8115 " guestfs_inotify_files (guestfs_h *g);\n"
8116 "\n"
8117 msgstr ""
8118
8119 # type: textblock
8120 #: ../src/guestfs-actions.pod:2366
8121 msgid ""
8122 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8123 "returns a list of pathnames of objects that were touched.  The returned "
8124 "pathnames are sorted and deduplicated."
8125 msgstr ""
8126
8127 # type: =head2
8128 #: ../src/guestfs-actions.pod:2376
8129 msgid "guestfs_inotify_init"
8130 msgstr ""
8131
8132 # type: verbatim
8133 #: ../src/guestfs-actions.pod:2378
8134 #, no-wrap
8135 msgid ""
8136 " int\n"
8137 " guestfs_inotify_init (guestfs_h *g,\n"
8138 "                       int maxevents);\n"
8139 "\n"
8140 msgstr ""
8141
8142 # type: textblock
8143 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8144 msgid ""
8145 "This command creates a new inotify handle.  The inotify subsystem can be "
8146 "used to notify events which happen to objects in the guest filesystem."
8147 msgstr ""
8148
8149 # type: textblock
8150 #: ../src/guestfs-actions.pod:2386
8151 msgid ""
8152 "C<maxevents> is the maximum number of events which will be queued up between "
8153 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8154 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8155 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8156 "throws away events, but records the fact that it threw them away by setting "
8157 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8158 "C<guestfs_inotify_read>)."
8159 msgstr ""
8160
8161 # type: textblock
8162 #: ../src/guestfs-actions.pod:2396
8163 msgid ""
8164 "Before any events are generated, you have to add some watches to the "
8165 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8166 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8167 msgstr ""
8168
8169 # type: textblock
8170 #: ../src/guestfs-actions.pod:2402
8171 msgid ""
8172 "Queued up events should be read periodically by calling "
8173 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8174 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8175 "often enough then you risk the internal queue overflowing."
8176 msgstr ""
8177
8178 # type: textblock
8179 #: ../src/guestfs-actions.pod:2409
8180 msgid ""
8181 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8182 "This also removes any watches automatically."
8183 msgstr ""
8184
8185 # type: textblock
8186 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8187 msgid ""
8188 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8189 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8190 "that there is one global inotify handle per libguestfs instance."
8191 msgstr ""
8192
8193 # type: =head2
8194 #: ../src/guestfs-actions.pod:2422
8195 msgid "guestfs_inotify_read"
8196 msgstr ""
8197
8198 # type: verbatim
8199 #: ../src/guestfs-actions.pod:2424
8200 #, no-wrap
8201 msgid ""
8202 " struct guestfs_inotify_event_list *\n"
8203 " guestfs_inotify_read (guestfs_h *g);\n"
8204 "\n"
8205 msgstr ""
8206
8207 # type: textblock
8208 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8209 msgid ""
8210 "Return the complete queue of events that have happened since the previous "
8211 "read call."
8212 msgstr ""
8213
8214 # type: textblock
8215 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8216 msgid "If no events have happened, this returns an empty list."
8217 msgstr ""
8218
8219 # type: textblock
8220 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8221 msgid ""
8222 "I<Note>: In order to make sure that all events have been read, you must call "
8223 "this function repeatedly until it returns an empty list.  The reason is that "
8224 "the call will read events up to the maximum appliance-to-host message size "
8225 "and leave remaining events in the queue."
8226 msgstr ""
8227
8228 # type: textblock
8229 #: ../src/guestfs-actions.pod:2438
8230 msgid ""
8231 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8232 "there was an error.  I<The caller must call "
8233 "C<guestfs_free_inotify_event_list> after use>."
8234 msgstr ""
8235
8236 # type: =head2
8237 #: ../src/guestfs-actions.pod:2444
8238 msgid "guestfs_inotify_rm_watch"
8239 msgstr ""
8240
8241 # type: verbatim
8242 #: ../src/guestfs-actions.pod:2446
8243 #, no-wrap
8244 msgid ""
8245 " int\n"
8246 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8247 "                           int wd);\n"
8248 "\n"
8249 msgstr ""
8250
8251 # type: textblock
8252 #: ../src/guestfs-actions.pod:2450
8253 msgid ""
8254 "Remove a previously defined inotify watch.  See "
8255 "C<guestfs_inotify_add_watch>."
8256 msgstr ""
8257
8258 # type: =head2
8259 #: ../src/guestfs-actions.pod:2457
8260 msgid "guestfs_inspect_get_arch"
8261 msgstr ""
8262
8263 # type: verbatim
8264 #: ../src/guestfs-actions.pod:2459
8265 #, no-wrap
8266 msgid ""
8267 " char *\n"
8268 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8269 "                           const char *root);\n"
8270 "\n"
8271 msgstr ""
8272
8273 # type: textblock
8274 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2593 ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2640 ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2694 ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2750 ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2834 ../src/guestfs-actions.pod:2857
8275 msgid ""
8276 "This function should only be called with a root device string as returned by "
8277 "C<guestfs_inspect_os>."
8278 msgstr ""
8279
8280 # type: textblock
8281 #: ../src/guestfs-actions.pod:2466
8282 msgid ""
8283 "This returns the architecture of the inspected operating system.  The "
8284 "possible return values are listed under C<guestfs_file_architecture>."
8285 msgstr ""
8286
8287 # type: textblock
8288 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8289 msgid ""
8290 "If the architecture could not be determined, then the string C<unknown> is "
8291 "returned."
8292 msgstr ""
8293
8294 # type: textblock
8295 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:2628 ../src/guestfs-actions.pod:2710 ../src/guestfs-actions.pod:2739 ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2780 ../src/guestfs-actions.pod:2821 ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:2989 ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741 ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795 ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879 ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909 ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960 ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8296 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8297 msgstr ""
8298
8299 # type: =head2
8300 #: ../src/guestfs-actions.pod:2480
8301 msgid "guestfs_inspect_get_distro"
8302 msgstr ""
8303
8304 # type: verbatim
8305 #: ../src/guestfs-actions.pod:2482
8306 #, no-wrap
8307 msgid ""
8308 " char *\n"
8309 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8310 "                             const char *root);\n"
8311 "\n"
8312 msgstr ""
8313
8314 # type: textblock
8315 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8316 msgid "This returns the distro (distribution) of the inspected operating system."
8317 msgstr ""
8318
8319 # type: textblock
8320 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8321 msgid "Currently defined distros are:"
8322 msgstr ""
8323
8324 # type: =item
8325 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8326 msgid "\"archlinux\""
8327 msgstr ""
8328
8329 # type: textblock
8330 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8331 msgid "Arch Linux."
8332 msgstr ""
8333
8334 # type: =item
8335 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8336 msgid "\"debian\""
8337 msgstr ""
8338
8339 # type: textblock
8340 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8341 msgid "Debian."
8342 msgstr ""
8343
8344 # type: =item
8345 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8346 msgid "\"fedora\""
8347 msgstr ""
8348
8349 # type: textblock
8350 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8351 msgid "Fedora."
8352 msgstr ""
8353
8354 # type: =item
8355 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8356 msgid "\"gentoo\""
8357 msgstr ""
8358
8359 # type: textblock
8360 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8361 msgid "Gentoo."
8362 msgstr ""
8363
8364 # type: =item
8365 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8366 msgid "\"linuxmint\""
8367 msgstr ""
8368
8369 # type: textblock
8370 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8371 msgid "Linux Mint."
8372 msgstr ""
8373
8374 # type: =item
8375 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8376 msgid "\"mandriva\""
8377 msgstr ""
8378
8379 # type: textblock
8380 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8381 msgid "Mandriva."
8382 msgstr ""
8383
8384 # type: =item
8385 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8386 msgid "\"meego\""
8387 msgstr ""
8388
8389 # type: textblock
8390 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8391 msgid "MeeGo."
8392 msgstr ""
8393
8394 # type: =item
8395 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8396 msgid "\"pardus\""
8397 msgstr ""
8398
8399 # type: textblock
8400 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8401 msgid "Pardus."
8402 msgstr ""
8403
8404 # type: =item
8405 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1715
8406 msgid "\"redhat-based\""
8407 msgstr ""
8408
8409 # type: textblock
8410 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8411 msgid "Some Red Hat-derived distro."
8412 msgstr ""
8413
8414 # type: =item
8415 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1719
8416 msgid "\"rhel\""
8417 msgstr ""
8418
8419 # type: textblock
8420 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1721
8421 msgid "Red Hat Enterprise Linux and some derivatives."
8422 msgstr ""
8423
8424 # type: =item
8425 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1723
8426 msgid "\"ubuntu\""
8427 msgstr ""
8428
8429 # type: textblock
8430 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1725
8431 msgid "Ubuntu."
8432 msgstr ""
8433
8434 # type: =item
8435 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8436 msgid "\"unknown\""
8437 msgstr ""
8438
8439 # type: textblock
8440 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1729
8441 msgid "The distro could not be determined."
8442 msgstr ""
8443
8444 # type: =item
8445 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2804 ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8446 msgid "\"windows\""
8447 msgstr ""
8448
8449 # type: textblock
8450 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1733
8451 msgid ""
8452 "Windows does not have distributions.  This string is returned if the OS type "
8453 "is Windows."
8454 msgstr ""
8455
8456 # type: textblock
8457 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2818 ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8458 msgid ""
8459 "Future versions of libguestfs may return other strings here.  The caller "
8460 "should be prepared to handle any string."
8461 msgstr ""
8462
8463 # type: =head2
8464 #: ../src/guestfs-actions.pod:2561
8465 msgid "guestfs_inspect_get_filesystems"
8466 msgstr ""
8467
8468 # type: verbatim
8469 #: ../src/guestfs-actions.pod:2563
8470 #, no-wrap
8471 msgid ""
8472 " char **\n"
8473 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8474 "                                  const char *root);\n"
8475 "\n"
8476 msgstr ""
8477
8478 # type: textblock
8479 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1750
8480 msgid ""
8481 "This returns a list of all the filesystems that we think are associated with "
8482 "this operating system.  This includes the root filesystem, other ordinary "
8483 "filesystems, and non-mounted devices like swap partitions."
8484 msgstr ""
8485
8486 # type: textblock
8487 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1755
8488 msgid ""
8489 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8490 "to be shared between operating systems."
8491 msgstr ""
8492
8493 # type: textblock
8494 #: ../src/guestfs-actions.pod:2578
8495 msgid ""
8496 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8497 "C<guestfs_inspect_get_mountpoints>."
8498 msgstr ""
8499
8500 # type: =head2
8501 #: ../src/guestfs-actions.pod:2587
8502 msgid "guestfs_inspect_get_hostname"
8503 msgstr ""
8504
8505 # type: verbatim
8506 #: ../src/guestfs-actions.pod:2589
8507 #, no-wrap
8508 msgid ""
8509 " char *\n"
8510 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8511 "                               const char *root);\n"
8512 "\n"
8513 msgstr ""
8514
8515 # type: textblock
8516 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1768
8517 msgid ""
8518 "This function returns the hostname of the operating system as found by "
8519 "inspection of the guest's configuration files."
8520 msgstr ""
8521
8522 # type: textblock
8523 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1771
8524 msgid ""
8525 "If the hostname could not be determined, then the string C<unknown> is "
8526 "returned."
8527 msgstr ""
8528
8529 # type: =head2
8530 #: ../src/guestfs-actions.pod:2607
8531 msgid "guestfs_inspect_get_major_version"
8532 msgstr ""
8533
8534 # type: verbatim
8535 #: ../src/guestfs-actions.pod:2609
8536 #, no-wrap
8537 msgid ""
8538 " int\n"
8539 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8540 "                                    const char *root);\n"
8541 "\n"
8542 msgstr ""
8543
8544 # type: textblock
8545 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1783
8546 msgid "This returns the major version number of the inspected operating system."
8547 msgstr ""
8548
8549 # type: textblock
8550 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1786
8551 msgid ""
8552 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8553 "popular public names used by the operating system.  Notably the operating "
8554 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8555 "1).  You can find out the real versions corresponding to releases of Windows "
8556 "by consulting Wikipedia or MSDN."
8557 msgstr ""
8558
8559 # type: textblock
8560 #: ../src/guestfs-actions.pod:2626 ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
8561 msgid "If the version could not be determined, then C<0> is returned."
8562 msgstr ""
8563
8564 # type: =head2
8565 #: ../src/guestfs-actions.pod:2634
8566 msgid "guestfs_inspect_get_minor_version"
8567 msgstr ""
8568
8569 # type: verbatim
8570 #: ../src/guestfs-actions.pod:2636
8571 #, no-wrap
8572 msgid ""
8573 " int\n"
8574 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8575 "                                    const char *root);\n"
8576 "\n"
8577 msgstr ""
8578
8579 # type: textblock
8580 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1804
8581 msgid "This returns the minor version number of the inspected operating system."
8582 msgstr ""
8583
8584 # type: textblock
8585 #: ../src/guestfs-actions.pod:2648
8586 msgid ""
8587 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8588 "C<guestfs_inspect_get_major_version>."
8589 msgstr ""
8590
8591 # type: =head2
8592 #: ../src/guestfs-actions.pod:2655
8593 msgid "guestfs_inspect_get_mountpoints"
8594 msgstr ""
8595
8596 # type: verbatim
8597 #: ../src/guestfs-actions.pod:2657
8598 #, no-wrap
8599 msgid ""
8600 " char **\n"
8601 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8602 "                                  const char *root);\n"
8603 "\n"
8604 msgstr ""
8605
8606 # type: textblock
8607 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1819
8608 msgid ""
8609 "This returns a hash of where we think the filesystems associated with this "
8610 "operating system should be mounted.  Callers should note that this is at "
8611 "best an educated guess made by reading configuration files such as "
8612 "C</etc/fstab>."
8613 msgstr ""
8614
8615 # type: textblock
8616 #: ../src/guestfs-actions.pod:2669 ../fish/guestfish-actions.pod:1824
8617 msgid ""
8618 "Each element in the returned hashtable has a key which is the path of the "
8619 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8620 "mounted there (eg. C</dev/sda1>)."
8621 msgstr ""
8622
8623 # type: textblock
8624 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1829
8625 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8626 msgstr ""
8627
8628 # type: textblock
8629 #: ../src/guestfs-actions.pod:2677
8630 msgid ""
8631 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8632 "C<guestfs_inspect_get_filesystems>."
8633 msgstr ""
8634
8635 # type: textblock
8636 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:3288 ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:6272
8637 msgid ""
8638 "This function returns a NULL-terminated array of strings, or NULL if there "
8639 "was an error.  The array of strings will always have length C<2n+1>, where "
8640 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8641 "caller must free the strings and the array after use>."
8642 msgstr ""
8643
8644 # type: =head2
8645 #: ../src/guestfs-actions.pod:2688
8646 msgid "guestfs_inspect_get_package_format"
8647 msgstr ""
8648
8649 # type: verbatim
8650 #: ../src/guestfs-actions.pod:2690
8651 #, no-wrap
8652 msgid ""
8653 " char *\n"
8654 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
8655 "                                     const char *root);\n"
8656 "\n"
8657 msgstr ""
8658
8659 # type: textblock
8660 #: ../src/guestfs-actions.pod:2697
8661 msgid ""
8662 "This function and C<guestfs_inspect_get_package_management> return the "
8663 "package format and package management tool used by the inspected operating "
8664 "system.  For example for Fedora these functions would return C<rpm> (package "
8665 "format) and C<yum> (package management)."
8666 msgstr ""
8667
8668 # type: textblock
8669 #: ../src/guestfs-actions.pod:2703 ../fish/guestfish-actions.pod:1848
8670 msgid ""
8671 "This returns the string C<unknown> if we could not determine the package "
8672 "format I<or> if the operating system does not have a real packaging system "
8673 "(eg. Windows)."
8674 msgstr ""
8675
8676 # type: textblock
8677 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1852
8678 msgid ""
8679 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8680 "Future versions of libguestfs may return other strings."
8681 msgstr ""
8682
8683 # type: =head2
8684 #: ../src/guestfs-actions.pod:2715
8685 msgid "guestfs_inspect_get_package_management"
8686 msgstr ""
8687
8688 # type: verbatim
8689 #: ../src/guestfs-actions.pod:2717
8690 #, no-wrap
8691 msgid ""
8692 " char *\n"
8693 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
8694 "                                         const char *root);\n"
8695 "\n"
8696 msgstr ""
8697
8698 # type: textblock
8699 #: ../src/guestfs-actions.pod:2724
8700 msgid ""
8701 "C<guestfs_inspect_get_package_format> and this function return the package "
8702 "format and package management tool used by the inspected operating system.  "
8703 "For example for Fedora these functions would return C<rpm> (package format) "
8704 "and C<yum> (package management)."
8705 msgstr ""
8706
8707 # type: textblock
8708 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
8709 msgid ""
8710 "This returns the string C<unknown> if we could not determine the package "
8711 "management tool I<or> if the operating system does not have a real packaging "
8712 "system (eg. Windows)."
8713 msgstr ""
8714
8715 # type: textblock
8716 #: ../src/guestfs-actions.pod:2734 ../fish/guestfish-actions.pod:1874
8717 msgid ""
8718 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8719 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8720 "libguestfs may return other strings."
8721 msgstr ""
8722
8723 # type: =head2
8724 #: ../src/guestfs-actions.pod:2744
8725 msgid "guestfs_inspect_get_product_name"
8726 msgstr ""
8727
8728 # type: verbatim
8729 #: ../src/guestfs-actions.pod:2746
8730 #, no-wrap
8731 msgid ""
8732 " char *\n"
8733 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8734 "                                   const char *root);\n"
8735 "\n"
8736 msgstr ""
8737
8738 # type: textblock
8739 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1888
8740 msgid ""
8741 "This returns the product name of the inspected operating system.  The "
8742 "product name is generally some freeform string which can be displayed to the "
8743 "user, but should not be parsed by programs."
8744 msgstr ""
8745
8746 # type: textblock
8747 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1893
8748 msgid ""
8749 "If the product name could not be determined, then the string C<unknown> is "
8750 "returned."
8751 msgstr ""
8752
8753 # type: =head2
8754 #: ../src/guestfs-actions.pod:2768
8755 msgid "guestfs_inspect_get_roots"
8756 msgstr ""
8757
8758 # type: verbatim
8759 #: ../src/guestfs-actions.pod:2770
8760 #, no-wrap
8761 msgid ""
8762 " char **\n"
8763 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8764 "\n"
8765 msgstr ""
8766
8767 # type: textblock
8768 #: ../src/guestfs-actions.pod:2773
8769 msgid ""
8770 "This function is a convenient way to get the list of root devices, as "
8771 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8772 "the whole inspection process."
8773 msgstr ""
8774
8775 # type: textblock
8776 #: ../src/guestfs-actions.pod:2777
8777 msgid ""
8778 "This returns an empty list if either no root devices were found or the "
8779 "caller has not called C<guestfs_inspect_os>."
8780 msgstr ""
8781
8782 # type: =head2
8783 #: ../src/guestfs-actions.pod:2786
8784 msgid "guestfs_inspect_get_type"
8785 msgstr ""
8786
8787 # type: verbatim
8788 #: ../src/guestfs-actions.pod:2788
8789 #, no-wrap
8790 msgid ""
8791 " char *\n"
8792 " guestfs_inspect_get_type (guestfs_h *g,\n"
8793 "                           const char *root);\n"
8794 "\n"
8795 msgstr ""
8796
8797 # type: textblock
8798 #: ../src/guestfs-actions.pod:2795 ../fish/guestfish-actions.pod:1918
8799 msgid ""
8800 "This returns the type of the inspected operating system.  Currently defined "
8801 "types are:"
8802 msgstr ""
8803
8804 # type: =item
8805 #: ../src/guestfs-actions.pod:2800 ../fish/guestfish-actions.pod:1923
8806 msgid "\"linux\""
8807 msgstr ""
8808
8809 # type: textblock
8810 #: ../src/guestfs-actions.pod:2802 ../fish/guestfish-actions.pod:1925
8811 msgid "Any Linux-based operating system."
8812 msgstr ""
8813
8814 # type: textblock
8815 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1929
8816 msgid "Any Microsoft Windows operating system."
8817 msgstr ""
8818
8819 # type: =item
8820 #: ../src/guestfs-actions.pod:2808 ../fish/guestfish-actions.pod:1931
8821 msgid "\"freebsd\""
8822 msgstr ""
8823
8824 # type: textblock
8825 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1933
8826 msgid "FreeBSD."
8827 msgstr ""
8828
8829 # type: textblock
8830 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1937
8831 msgid "The operating system type could not be determined."
8832 msgstr ""
8833
8834 # type: =head2
8835 #: ../src/guestfs-actions.pod:2828
8836 msgid "guestfs_inspect_get_windows_systemroot"
8837 msgstr ""
8838
8839 # type: verbatim
8840 #: ../src/guestfs-actions.pod:2830
8841 #, no-wrap
8842 msgid ""
8843 " char *\n"
8844 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8845 "                                         const char *root);\n"
8846 "\n"
8847 msgstr ""
8848
8849 # type: textblock
8850 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1953
8851 msgid ""
8852 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8853 "is a directory path such as C</WINDOWS>."
8854 msgstr ""
8855
8856 # type: textblock
8857 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1956
8858 msgid ""
8859 "This call assumes that the guest is Windows and that the systemroot could be "
8860 "determined by inspection.  If this is not the case then an error is "
8861 "returned."
8862 msgstr ""
8863
8864 # type: textblock
8865 #: ../src/guestfs-actions.pod:2849
8866 msgid "(Added in 1.5.25)"
8867 msgstr ""
8868
8869 # type: =head2
8870 #: ../src/guestfs-actions.pod:2851
8871 msgid "guestfs_inspect_list_applications"
8872 msgstr ""
8873
8874 # type: verbatim
8875 #: ../src/guestfs-actions.pod:2853
8876 #, no-wrap
8877 msgid ""
8878 " struct guestfs_application_list *\n"
8879 " guestfs_inspect_list_applications (guestfs_h *g,\n"
8880 "                                    const char *root);\n"
8881 "\n"
8882 msgstr ""
8883
8884 # type: textblock
8885 #: ../src/guestfs-actions.pod:2860 ../fish/guestfish-actions.pod:1969
8886 msgid "Return the list of applications installed in the operating system."
8887 msgstr ""
8888
8889 # type: textblock
8890 #: ../src/guestfs-actions.pod:2862
8891 msgid ""
8892 "I<Note:> This call works differently from other parts of the inspection "
8893 "API.  You have to call C<guestfs_inspect_os>, then "
8894 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
8895 "this.  Listing applications is a significantly more difficult operation "
8896 "which requires access to the full filesystem.  Also note that unlike the "
8897 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
8898 "the libguestfs handle, this call actually reads parts of the mounted "
8899 "filesystems during the call."
8900 msgstr ""
8901
8902 # type: textblock
8903 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1981
8904 msgid ""
8905 "This returns an empty list if the inspection code was not able to determine "
8906 "the list of applications."
8907 msgstr ""
8908
8909 # type: textblock
8910 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1984
8911 msgid "The application structure contains the following fields:"
8912 msgstr ""
8913
8914 # type: =item
8915 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:1988
8916 msgid "C<app_name>"
8917 msgstr ""
8918
8919 # type: textblock
8920 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1990
8921 msgid ""
8922 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8923 "guests, this is the package name."
8924 msgstr ""
8925
8926 # type: =item
8927 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1993
8928 msgid "C<app_display_name>"
8929 msgstr ""
8930
8931 # type: textblock
8932 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1995
8933 msgid ""
8934 "The display name of the application, sometimes localized to the install "
8935 "language of the guest operating system."
8936 msgstr ""
8937
8938 # type: textblock
8939 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1998
8940 msgid ""
8941 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8942 "to display something can use C<app_name> instead."
8943 msgstr ""
8944
8945 # type: =item
8946 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:2001
8947 msgid "C<app_epoch>"
8948 msgstr ""
8949
8950 # type: textblock
8951 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:2003
8952 msgid ""
8953 "For package managers which use epochs, this contains the epoch of the "
8954 "package (an integer).  If unavailable, this is returned as C<0>."
8955 msgstr ""
8956
8957 # type: =item
8958 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:2006
8959 msgid "C<app_version>"
8960 msgstr ""
8961
8962 # type: textblock
8963 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:2008
8964 msgid ""
8965 "The version string of the application or package.  If unavailable this is "
8966 "returned as an empty string C<\"\">."
8967 msgstr ""
8968
8969 # type: =item
8970 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2011
8971 msgid "C<app_release>"
8972 msgstr ""
8973
8974 # type: textblock
8975 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2013
8976 msgid ""
8977 "The release string of the application or package, for package managers that "
8978 "use this.  If unavailable this is returned as an empty string C<\"\">."
8979 msgstr ""
8980
8981 # type: =item
8982 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:2017
8983 msgid "C<app_install_path>"
8984 msgstr ""
8985
8986 # type: textblock
8987 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2019
8988 msgid ""
8989 "The installation path of the application (on operating systems such as "
8990 "Windows which use installation paths).  This path is in the format used by "
8991 "the guest operating system, it is not a libguestfs path."
8992 msgstr ""
8993
8994 # type: textblock
8995 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2024
8996 msgid "If unavailable this is returned as an empty string C<\"\">."
8997 msgstr ""
8998
8999 # type: =item
9000 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2026
9001 msgid "C<app_trans_path>"
9002 msgstr ""
9003
9004 # type: textblock
9005 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2028
9006 msgid ""
9007 "The install path translated into a libguestfs path.  If unavailable this is "
9008 "returned as an empty string C<\"\">."
9009 msgstr ""
9010
9011 # type: =item
9012 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2031
9013 msgid "C<app_publisher>"
9014 msgstr ""
9015
9016 # type: textblock
9017 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2033
9018 msgid ""
9019 "The name of the publisher of the application, for package managers that use "
9020 "this.  If unavailable this is returned as an empty string C<\"\">."
9021 msgstr ""
9022
9023 # type: =item
9024 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2037
9025 msgid "C<app_url>"
9026 msgstr ""
9027
9028 # type: textblock
9029 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2039
9030 msgid ""
9031 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9032 "returned as an empty string C<\"\">."
9033 msgstr ""
9034
9035 # type: =item
9036 #: ../src/guestfs-actions.pod:2933 ../fish/guestfish-actions.pod:2042
9037 msgid "C<app_source_package>"
9038 msgstr ""
9039
9040 # type: textblock
9041 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2044
9042 msgid ""
9043 "For packaging systems which support this, the name of the source package.  "
9044 "If unavailable this is returned as an empty string C<\"\">."
9045 msgstr ""
9046
9047 # type: =item
9048 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2047
9049 msgid "C<app_summary>"
9050 msgstr ""
9051
9052 # type: textblock
9053 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2049
9054 msgid ""
9055 "A short (usually one line) description of the application or package.  If "
9056 "unavailable this is returned as an empty string C<\"\">."
9057 msgstr ""
9058
9059 # type: =item
9060 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2052
9061 msgid "C<app_description>"
9062 msgstr ""
9063
9064 # type: textblock
9065 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2054
9066 msgid ""
9067 "A longer description of the application or package.  If unavailable this is "
9068 "returned as an empty string C<\"\">."
9069 msgstr ""
9070
9071 # type: textblock
9072 #: ../src/guestfs-actions.pod:2952
9073 msgid ""
9074 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9075 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9076 "after use>."
9077 msgstr ""
9078
9079 # type: =head2
9080 #: ../src/guestfs-actions.pod:2956
9081 msgid "guestfs_inspect_os"
9082 msgstr ""
9083
9084 # type: verbatim
9085 #: ../src/guestfs-actions.pod:2958
9086 #, no-wrap
9087 msgid ""
9088 " char **\n"
9089 " guestfs_inspect_os (guestfs_h *g);\n"
9090 "\n"
9091 msgstr ""
9092
9093 # type: textblock
9094 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:2065
9095 msgid ""
9096 "This function uses other libguestfs functions and certain heuristics to "
9097 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9098 "for operating systems."
9099 msgstr ""
9100
9101 # type: textblock
9102 #: ../src/guestfs-actions.pod:2965 ../fish/guestfish-actions.pod:2069
9103 msgid "The list returned is empty if no operating systems were found."
9104 msgstr ""
9105
9106 # type: textblock
9107 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2071
9108 msgid ""
9109 "If one operating system was found, then this returns a list with a single "
9110 "element, which is the name of the root filesystem of this operating system.  "
9111 "It is also possible for this function to return a list containing more than "
9112 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9113 "element being the root filesystem of one of the operating systems."
9114 msgstr ""
9115
9116 # type: textblock
9117 #: ../src/guestfs-actions.pod:2974
9118 msgid ""
9119 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9120 "functions in order to query further information about each operating system, "
9121 "such as the name and version."
9122 msgstr ""
9123
9124 # type: textblock
9125 #: ../src/guestfs-actions.pod:2979
9126 msgid ""
9127 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9128 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9129 "the contents.  This should be called with no disks currently mounted.  The "
9130 "function may also use Augeas, so any existing Augeas handle will be closed."
9131 msgstr ""
9132
9133 # type: textblock
9134 #: ../src/guestfs-actions.pod:2985 ../fish/guestfish-actions.pod:2089
9135 msgid ""
9136 "This function cannot decrypt encrypted disks.  The caller must do that first "
9137 "(supplying the necessary keys) if the disk is encrypted."
9138 msgstr ""
9139
9140 # type: textblock
9141 #: ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3246 ../src/guestfs-actions.pod:3308
9142 msgid "See also C<guestfs_list_filesystems>."
9143 msgstr ""
9144
9145 # type: =head2
9146 #: ../src/guestfs-actions.pod:2999
9147 msgid "guestfs_is_blockdev"
9148 msgstr ""
9149
9150 # type: verbatim
9151 #: ../src/guestfs-actions.pod:3001
9152 #, no-wrap
9153 msgid ""
9154 " int\n"
9155 " guestfs_is_blockdev (guestfs_h *g,\n"
9156 "                      const char *path);\n"
9157 "\n"
9158 msgstr ""
9159
9160 # type: textblock
9161 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2101
9162 msgid ""
9163 "This returns C<true> if and only if there is a block device with the given "
9164 "C<path> name."
9165 msgstr ""
9166
9167 # type: textblock
9168 #: ../src/guestfs-actions.pod:3008 ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3154 ../src/guestfs-actions.pod:3169
9169 msgid "See also C<guestfs_stat>."
9170 msgstr ""
9171
9172 # type: textblock
9173 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3158 ../src/guestfs-actions.pod:3173
9174 msgid "(Added in 1.5.10)"
9175 msgstr ""
9176
9177 # type: =head2
9178 #: ../src/guestfs-actions.pod:3014
9179 msgid "guestfs_is_busy"
9180 msgstr ""
9181
9182 # type: verbatim
9183 #: ../src/guestfs-actions.pod:3016
9184 #, no-wrap
9185 msgid ""
9186 " int\n"
9187 " guestfs_is_busy (guestfs_h *g);\n"
9188 "\n"
9189 msgstr ""
9190
9191 # type: textblock
9192 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:2110
9193 msgid ""
9194 "This returns true iff this handle is busy processing a command (in the "
9195 "C<BUSY> state)."
9196 msgstr ""
9197
9198 # type: =head2
9199 #: ../src/guestfs-actions.pod:3028
9200 msgid "guestfs_is_chardev"
9201 msgstr ""
9202
9203 # type: verbatim
9204 #: ../src/guestfs-actions.pod:3030
9205 #, no-wrap
9206 msgid ""
9207 " int\n"
9208 " guestfs_is_chardev (guestfs_h *g,\n"
9209 "                     const char *path);\n"
9210 "\n"
9211 msgstr ""
9212
9213 # type: textblock
9214 #: ../src/guestfs-actions.pod:3034 ../fish/guestfish-actions.pod:2119
9215 msgid ""
9216 "This returns C<true> if and only if there is a character device with the "
9217 "given C<path> name."
9218 msgstr ""
9219
9220 # type: =head2
9221 #: ../src/guestfs-actions.pod:3043
9222 msgid "guestfs_is_config"
9223 msgstr ""
9224
9225 # type: verbatim
9226 #: ../src/guestfs-actions.pod:3045
9227 #, no-wrap
9228 msgid ""
9229 " int\n"
9230 " guestfs_is_config (guestfs_h *g);\n"
9231 "\n"
9232 msgstr ""
9233
9234 # type: textblock
9235 #: ../src/guestfs-actions.pod:3048 ../fish/guestfish-actions.pod:2128
9236 msgid ""
9237 "This returns true iff this handle is being configured (in the C<CONFIG> "
9238 "state)."
9239 msgstr ""
9240
9241 # type: =head2
9242 #: ../src/guestfs-actions.pod:3057
9243 msgid "guestfs_is_dir"
9244 msgstr ""
9245
9246 # type: verbatim
9247 #: ../src/guestfs-actions.pod:3059
9248 #, no-wrap
9249 msgid ""
9250 " int\n"
9251 " guestfs_is_dir (guestfs_h *g,\n"
9252 "                 const char *path);\n"
9253 "\n"
9254 msgstr ""
9255
9256 # type: textblock
9257 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2137
9258 msgid ""
9259 "This returns C<true> if and only if there is a directory with the given "
9260 "C<path> name.  Note that it returns false for other objects like files."
9261 msgstr ""
9262
9263 # type: =head2
9264 #: ../src/guestfs-actions.pod:3073
9265 msgid "guestfs_is_fifo"
9266 msgstr ""
9267
9268 # type: verbatim
9269 #: ../src/guestfs-actions.pod:3075
9270 #, no-wrap
9271 msgid ""
9272 " int\n"
9273 " guestfs_is_fifo (guestfs_h *g,\n"
9274 "                  const char *path);\n"
9275 "\n"
9276 msgstr ""
9277
9278 # type: textblock
9279 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2147
9280 msgid ""
9281 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9282 "given C<path> name."
9283 msgstr ""
9284
9285 # type: =head2
9286 #: ../src/guestfs-actions.pod:3088
9287 msgid "guestfs_is_file"
9288 msgstr ""
9289
9290 # type: verbatim
9291 #: ../src/guestfs-actions.pod:3090
9292 #, no-wrap
9293 msgid ""
9294 " int\n"
9295 " guestfs_is_file (guestfs_h *g,\n"
9296 "                  const char *path);\n"
9297 "\n"
9298 msgstr ""
9299
9300 # type: textblock
9301 #: ../src/guestfs-actions.pod:3094 ../fish/guestfish-actions.pod:2156
9302 msgid ""
9303 "This returns C<true> if and only if there is a regular file with the given "
9304 "C<path> name.  Note that it returns false for other objects like "
9305 "directories."
9306 msgstr ""
9307
9308 # type: =head2
9309 #: ../src/guestfs-actions.pod:3104
9310 msgid "guestfs_is_launching"
9311 msgstr ""
9312
9313 # type: verbatim
9314 #: ../src/guestfs-actions.pod:3106
9315 #, no-wrap
9316 msgid ""
9317 " int\n"
9318 " guestfs_is_launching (guestfs_h *g);\n"
9319 "\n"
9320 msgstr ""
9321
9322 # type: textblock
9323 #: ../src/guestfs-actions.pod:3109 ../fish/guestfish-actions.pod:2166
9324 msgid ""
9325 "This returns true iff this handle is launching the subprocess (in the "
9326 "C<LAUNCHING> state)."
9327 msgstr ""
9328
9329 # type: =head2
9330 #: ../src/guestfs-actions.pod:3118
9331 msgid "guestfs_is_lv"
9332 msgstr ""
9333
9334 # type: verbatim
9335 #: ../src/guestfs-actions.pod:3120
9336 #, no-wrap
9337 msgid ""
9338 " int\n"
9339 " guestfs_is_lv (guestfs_h *g,\n"
9340 "                const char *device);\n"
9341 "\n"
9342 msgstr ""
9343
9344 # type: textblock
9345 #: ../src/guestfs-actions.pod:3124 ../fish/guestfish-actions.pod:2175
9346 msgid ""
9347 "This command tests whether C<device> is a logical volume, and returns true "
9348 "iff this is the case."
9349 msgstr ""
9350
9351 # type: =head2
9352 #: ../src/guestfs-actions.pod:3131
9353 msgid "guestfs_is_ready"
9354 msgstr ""
9355
9356 # type: verbatim
9357 #: ../src/guestfs-actions.pod:3133
9358 #, no-wrap
9359 msgid ""
9360 " int\n"
9361 " guestfs_is_ready (guestfs_h *g);\n"
9362 "\n"
9363 msgstr ""
9364
9365 # type: textblock
9366 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2182
9367 msgid ""
9368 "This returns true iff this handle is ready to accept commands (in the "
9369 "C<READY> state)."
9370 msgstr ""
9371
9372 # type: =head2
9373 #: ../src/guestfs-actions.pod:3145
9374 msgid "guestfs_is_socket"
9375 msgstr ""
9376
9377 # type: verbatim
9378 #: ../src/guestfs-actions.pod:3147
9379 #, no-wrap
9380 msgid ""
9381 " int\n"
9382 " guestfs_is_socket (guestfs_h *g,\n"
9383 "                    const char *path);\n"
9384 "\n"
9385 msgstr ""
9386
9387 # type: textblock
9388 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2191
9389 msgid ""
9390 "This returns C<true> if and only if there is a Unix domain socket with the "
9391 "given C<path> name."
9392 msgstr ""
9393
9394 # type: =head2
9395 #: ../src/guestfs-actions.pod:3160
9396 msgid "guestfs_is_symlink"
9397 msgstr ""
9398
9399 # type: verbatim
9400 #: ../src/guestfs-actions.pod:3162
9401 #, no-wrap
9402 msgid ""
9403 " int\n"
9404 " guestfs_is_symlink (guestfs_h *g,\n"
9405 "                     const char *path);\n"
9406 "\n"
9407 msgstr ""
9408
9409 # type: textblock
9410 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2200
9411 msgid ""
9412 "This returns C<true> if and only if there is a symbolic link with the given "
9413 "C<path> name."
9414 msgstr ""
9415
9416 # type: =head2
9417 #: ../src/guestfs-actions.pod:3175
9418 msgid "guestfs_kill_subprocess"
9419 msgstr ""
9420
9421 # type: verbatim
9422 #: ../src/guestfs-actions.pod:3177
9423 #, no-wrap
9424 msgid ""
9425 " int\n"
9426 " guestfs_kill_subprocess (guestfs_h *g);\n"
9427 "\n"
9428 msgstr ""
9429
9430 # type: textblock
9431 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2209
9432 msgid "This kills the qemu subprocess.  You should never need to call this."
9433 msgstr ""
9434
9435 # type: =head2
9436 #: ../src/guestfs-actions.pod:3186
9437 msgid "guestfs_launch"
9438 msgstr ""
9439
9440 # type: verbatim
9441 #: ../src/guestfs-actions.pod:3188
9442 #, no-wrap
9443 msgid ""
9444 " int\n"
9445 " guestfs_launch (guestfs_h *g);\n"
9446 "\n"
9447 msgstr ""
9448
9449 # type: textblock
9450 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2217
9451 msgid ""
9452 "Internally libguestfs is implemented by running a virtual machine using "
9453 "L<qemu(1)>."
9454 msgstr ""
9455
9456 # type: textblock
9457 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2220
9458 msgid ""
9459 "You should call this after configuring the handle (eg. adding drives) but "
9460 "before performing any actions."
9461 msgstr ""
9462
9463 # type: =head2
9464 #: ../src/guestfs-actions.pod:3201
9465 msgid "guestfs_lchown"
9466 msgstr ""
9467
9468 # type: verbatim
9469 #: ../src/guestfs-actions.pod:3203
9470 #, no-wrap
9471 msgid ""
9472 " int\n"
9473 " guestfs_lchown (guestfs_h *g,\n"
9474 "                 int owner,\n"
9475 "                 int group,\n"
9476 "                 const char *path);\n"
9477 "\n"
9478 msgstr ""
9479
9480 # type: textblock
9481 #: ../src/guestfs-actions.pod:3209
9482 msgid ""
9483 "Change the file owner to C<owner> and group to C<group>.  This is like "
9484 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9485 "changed, not the target."
9486 msgstr ""
9487
9488 # type: =head2
9489 #: ../src/guestfs-actions.pod:3221
9490 msgid "guestfs_lgetxattrs"
9491 msgstr ""
9492
9493 # type: verbatim
9494 #: ../src/guestfs-actions.pod:3223
9495 #, no-wrap
9496 msgid ""
9497 " struct guestfs_xattr_list *\n"
9498 " guestfs_lgetxattrs (guestfs_h *g,\n"
9499 "                     const char *path);\n"
9500 "\n"
9501 msgstr ""
9502
9503 # type: textblock
9504 #: ../src/guestfs-actions.pod:3227
9505 msgid ""
9506 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9507 "then it returns the extended attributes of the link itself."
9508 msgstr ""
9509
9510 # type: =head2
9511 #: ../src/guestfs-actions.pod:3237
9512 msgid "guestfs_list_devices"
9513 msgstr ""
9514
9515 # type: verbatim
9516 #: ../src/guestfs-actions.pod:3239
9517 #, no-wrap
9518 msgid ""
9519 " char **\n"
9520 " guestfs_list_devices (guestfs_h *g);\n"
9521 "\n"
9522 msgstr ""
9523
9524 # type: textblock
9525 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2247
9526 msgid "List all the block devices."
9527 msgstr ""
9528
9529 # type: textblock
9530 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2249
9531 msgid "The full block device names are returned, eg. C</dev/sda>."
9532 msgstr ""
9533
9534 # type: =head2
9535 #: ../src/guestfs-actions.pod:3254
9536 msgid "guestfs_list_filesystems"
9537 msgstr ""
9538
9539 # type: verbatim
9540 #: ../src/guestfs-actions.pod:3256
9541 #, no-wrap
9542 msgid ""
9543 " char **\n"
9544 " guestfs_list_filesystems (guestfs_h *g);\n"
9545 "\n"
9546 msgstr ""
9547
9548 # type: textblock
9549 #: ../src/guestfs-actions.pod:3259 ../fish/guestfish-actions.pod:2257
9550 msgid ""
9551 "This inspection command looks for filesystems on partitions, block devices "
9552 "and logical volumes, returning a list of devices containing filesystems and "
9553 "their type."
9554 msgstr ""
9555
9556 # type: textblock
9557 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2261
9558 msgid ""
9559 "The return value is a hash, where the keys are the devices containing "
9560 "filesystems, and the values are the filesystem types.  For example:"
9561 msgstr ""
9562
9563 # type: verbatim
9564 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2265
9565 #, no-wrap
9566 msgid ""
9567 " \"/dev/sda1\" => \"ntfs\"\n"
9568 " \"/dev/sda2\" => \"ext2\"\n"
9569 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9570 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9571 "\n"
9572 msgstr ""
9573
9574 # type: textblock
9575 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2270
9576 msgid ""
9577 "The value can have the special value \"unknown\", meaning the content of the "
9578 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9579 msgstr ""
9580
9581 # type: textblock
9582 #: ../src/guestfs-actions.pod:3276
9583 msgid ""
9584 "This command runs other libguestfs commands, which might include "
9585 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9586 "soon after launch and only when nothing is mounted."
9587 msgstr ""
9588
9589 # type: textblock
9590 #: ../src/guestfs-actions.pod:3280
9591 msgid ""
9592 "Not all of the filesystems returned will be mountable.  In particular, swap "
9593 "partitions are returned in the list.  Also this command does not check that "
9594 "each filesystem found is valid and mountable, and some filesystems might be "
9595 "mountable but require special options.  Filesystems may not all belong to a "
9596 "single logical operating system (use C<guestfs_inspect_os> to look for "
9597 "OSes)."
9598 msgstr ""
9599
9600 # type: textblock
9601 #: ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:4817
9602 msgid "(Added in 1.5.15)"
9603 msgstr ""
9604
9605 # type: =head2
9606 #: ../src/guestfs-actions.pod:3296
9607 msgid "guestfs_list_partitions"
9608 msgstr ""
9609
9610 # type: verbatim
9611 #: ../src/guestfs-actions.pod:3298
9612 #, no-wrap
9613 msgid ""
9614 " char **\n"
9615 " guestfs_list_partitions (guestfs_h *g);\n"
9616 "\n"
9617 msgstr ""
9618
9619 # type: textblock
9620 #: ../src/guestfs-actions.pod:3301 ../fish/guestfish-actions.pod:2290
9621 msgid "List all the partitions detected on all block devices."
9622 msgstr ""
9623
9624 # type: textblock
9625 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2292
9626 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9627 msgstr ""
9628
9629 # type: textblock
9630 #: ../src/guestfs-actions.pod:3305
9631 msgid ""
9632 "This does not return logical volumes.  For that you will need to call "
9633 "C<guestfs_lvs>."
9634 msgstr ""
9635
9636 # type: =head2
9637 #: ../src/guestfs-actions.pod:3316
9638 msgid "guestfs_ll"
9639 msgstr ""
9640
9641 # type: verbatim
9642 #: ../src/guestfs-actions.pod:3318
9643 #, no-wrap
9644 msgid ""
9645 " char *\n"
9646 " guestfs_ll (guestfs_h *g,\n"
9647 "             const char *directory);\n"
9648 "\n"
9649 msgstr ""
9650
9651 # type: textblock
9652 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2303
9653 msgid ""
9654 "List the files in C<directory> (relative to the root directory, there is no "
9655 "cwd) in the format of 'ls -la'."
9656 msgstr ""
9657
9658 # type: textblock
9659 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2306
9660 msgid ""
9661 "This command is mostly useful for interactive sessions.  It is I<not> "
9662 "intended that you try to parse the output string."
9663 msgstr ""
9664
9665 # type: =head2
9666 #: ../src/guestfs-actions.pod:3333
9667 msgid "guestfs_ln"
9668 msgstr ""
9669
9670 # type: verbatim
9671 #: ../src/guestfs-actions.pod:3335
9672 #, no-wrap
9673 msgid ""
9674 " int\n"
9675 " guestfs_ln (guestfs_h *g,\n"
9676 "             const char *target,\n"
9677 "             const char *linkname);\n"
9678 "\n"
9679 msgstr ""
9680
9681 # type: textblock
9682 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2313
9683 msgid "This command creates a hard link using the C<ln> command."
9684 msgstr ""
9685
9686 # type: =head2
9687 #: ../src/guestfs-actions.pod:3346
9688 msgid "guestfs_ln_f"
9689 msgstr ""
9690
9691 # type: verbatim
9692 #: ../src/guestfs-actions.pod:3348
9693 #, no-wrap
9694 msgid ""
9695 " int\n"
9696 " guestfs_ln_f (guestfs_h *g,\n"
9697 "               const char *target,\n"
9698 "               const char *linkname);\n"
9699 "\n"
9700 msgstr ""
9701
9702 # type: textblock
9703 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2319
9704 msgid ""
9705 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9706 "option removes the link (C<linkname>) if it exists already."
9707 msgstr ""
9708
9709 # type: =head2
9710 #: ../src/guestfs-actions.pod:3360
9711 msgid "guestfs_ln_s"
9712 msgstr ""
9713
9714 # type: verbatim
9715 #: ../src/guestfs-actions.pod:3362
9716 #, no-wrap
9717 msgid ""
9718 " int\n"
9719 " guestfs_ln_s (guestfs_h *g,\n"
9720 "               const char *target,\n"
9721 "               const char *linkname);\n"
9722 "\n"
9723 msgstr ""
9724
9725 # type: textblock
9726 #: ../src/guestfs-actions.pod:3367 ../fish/guestfish-actions.pod:2326
9727 msgid "This command creates a symbolic link using the C<ln -s> command."
9728 msgstr ""
9729
9730 # type: =head2
9731 #: ../src/guestfs-actions.pod:3373
9732 msgid "guestfs_ln_sf"
9733 msgstr ""
9734
9735 # type: verbatim
9736 #: ../src/guestfs-actions.pod:3375
9737 #, no-wrap
9738 msgid ""
9739 " int\n"
9740 " guestfs_ln_sf (guestfs_h *g,\n"
9741 "                const char *target,\n"
9742 "                const char *linkname);\n"
9743 "\n"
9744 msgstr ""
9745
9746 # type: textblock
9747 #: ../src/guestfs-actions.pod:3380 ../fish/guestfish-actions.pod:2332
9748 msgid ""
9749 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9750 "option removes the link (C<linkname>) if it exists already."
9751 msgstr ""
9752
9753 # type: =head2
9754 #: ../src/guestfs-actions.pod:3387
9755 msgid "guestfs_lremovexattr"
9756 msgstr ""
9757
9758 # type: verbatim
9759 #: ../src/guestfs-actions.pod:3389
9760 #, no-wrap
9761 msgid ""
9762 " int\n"
9763 " guestfs_lremovexattr (guestfs_h *g,\n"
9764 "                       const char *xattr,\n"
9765 "                       const char *path);\n"
9766 "\n"
9767 msgstr ""
9768
9769 # type: textblock
9770 #: ../src/guestfs-actions.pod:3394
9771 msgid ""
9772 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9773 "link, then it removes an extended attribute of the link itself."
9774 msgstr ""
9775
9776 # type: =head2
9777 #: ../src/guestfs-actions.pod:3402
9778 msgid "guestfs_ls"
9779 msgstr ""
9780
9781 # type: verbatim
9782 #: ../src/guestfs-actions.pod:3404
9783 #, no-wrap
9784 msgid ""
9785 " char **\n"
9786 " guestfs_ls (guestfs_h *g,\n"
9787 "             const char *directory);\n"
9788 "\n"
9789 msgstr ""
9790
9791 # type: textblock
9792 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2347
9793 msgid ""
9794 "List the files in C<directory> (relative to the root directory, there is no "
9795 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9796 "shown."
9797 msgstr ""
9798
9799 # type: textblock
9800 #: ../src/guestfs-actions.pod:3412
9801 msgid ""
9802 "This command is mostly useful for interactive sessions.  Programs should "
9803 "probably use C<guestfs_readdir> instead."
9804 msgstr ""
9805
9806 # type: =head2
9807 #: ../src/guestfs-actions.pod:3421
9808 msgid "guestfs_lsetxattr"
9809 msgstr ""
9810
9811 # type: verbatim
9812 #: ../src/guestfs-actions.pod:3423
9813 #, no-wrap
9814 msgid ""
9815 " int\n"
9816 " guestfs_lsetxattr (guestfs_h *g,\n"
9817 "                    const char *xattr,\n"
9818 "                    const char *val,\n"
9819 "                    int vallen,\n"
9820 "                    const char *path);\n"
9821 "\n"
9822 msgstr ""
9823
9824 # type: textblock
9825 #: ../src/guestfs-actions.pod:3430
9826 msgid ""
9827 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9828 "then it sets an extended attribute of the link itself."
9829 msgstr ""
9830
9831 # type: =head2
9832 #: ../src/guestfs-actions.pod:3438
9833 msgid "guestfs_lstat"
9834 msgstr ""
9835
9836 # type: verbatim
9837 #: ../src/guestfs-actions.pod:3440
9838 #, no-wrap
9839 msgid ""
9840 " struct guestfs_stat *\n"
9841 " guestfs_lstat (guestfs_h *g,\n"
9842 "                const char *path);\n"
9843 "\n"
9844 msgstr ""
9845
9846 # type: textblock
9847 #: ../src/guestfs-actions.pod:3444 ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
9848 msgid "Returns file information for the given C<path>."
9849 msgstr ""
9850
9851 # type: textblock
9852 #: ../src/guestfs-actions.pod:3446
9853 msgid ""
9854 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9855 "link, then the link is stat-ed, not the file it refers to."
9856 msgstr ""
9857
9858 # type: textblock
9859 #: ../src/guestfs-actions.pod:3450 ../fish/guestfish-actions.pod:2372
9860 msgid "This is the same as the C<lstat(2)> system call."
9861 msgstr ""
9862
9863 # type: textblock
9864 #: ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:5875
9865 msgid ""
9866 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9867 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9868 msgstr ""
9869
9870 # type: textblock
9871 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5879 ../src/guestfs-actions.pod:5897 ../src/guestfs-actions.pod:6278
9872 msgid "(Added in 0.9.2)"
9873 msgstr ""
9874
9875 # type: =head2
9876 #: ../src/guestfs-actions.pod:3458
9877 msgid "guestfs_lstatlist"
9878 msgstr ""
9879
9880 # type: verbatim
9881 #: ../src/guestfs-actions.pod:3460
9882 #, no-wrap
9883 msgid ""
9884 " struct guestfs_stat_list *\n"
9885 " guestfs_lstatlist (guestfs_h *g,\n"
9886 "                    const char *path,\n"
9887 "                    char *const *names);\n"
9888 "\n"
9889 msgstr ""
9890
9891 # type: textblock
9892 #: ../src/guestfs-actions.pod:3465
9893 msgid ""
9894 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9895 "files, where all files are in the directory C<path>.  C<names> is the list "
9896 "of files from this directory."
9897 msgstr ""
9898
9899 # type: textblock
9900 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2382
9901 msgid ""
9902 "On return you get a list of stat structs, with a one-to-one correspondence "
9903 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9904 "then the C<ino> field of that structure is set to C<-1>."
9905 msgstr ""
9906
9907 # type: textblock
9908 #: ../src/guestfs-actions.pod:3474
9909 msgid ""
9910 "This call is intended for programs that want to efficiently list a directory "
9911 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9912 "for a similarly efficient call for getting extended attributes.  Very long "
9913 "directory listings might cause the protocol message size to be exceeded, "
9914 "causing this call to fail.  The caller must split up such requests into "
9915 "smaller groups of names."
9916 msgstr ""
9917
9918 # type: textblock
9919 #: ../src/guestfs-actions.pod:3482
9920 msgid ""
9921 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
9922 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
9923 msgstr ""
9924
9925 # type: =head2
9926 #: ../src/guestfs-actions.pod:3488
9927 msgid "guestfs_luks_add_key"
9928 msgstr ""
9929
9930 # type: verbatim
9931 #: ../src/guestfs-actions.pod:3490
9932 #, no-wrap
9933 msgid ""
9934 " int\n"
9935 " guestfs_luks_add_key (guestfs_h *g,\n"
9936 "                       const char *device,\n"
9937 "                       const char *key,\n"
9938 "                       const char *newkey,\n"
9939 "                       int keyslot);\n"
9940 "\n"
9941 msgstr ""
9942
9943 # type: textblock
9944 #: ../src/guestfs-actions.pod:3497 ../fish/guestfish-actions.pod:2399
9945 msgid ""
9946 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9947 "existing key, and is used to access the device.  C<newkey> is the new key to "
9948 "add.  C<keyslot> is the key slot that will be replaced."
9949 msgstr ""
9950
9951 # type: textblock
9952 #: ../src/guestfs-actions.pod:3502
9953 msgid ""
9954 "Note that if C<keyslot> already contains a key, then this command will "
9955 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9956 msgstr ""
9957
9958 # type: textblock
9959 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3548 ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3591 ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3642
9960 msgid ""
9961 "This function takes a key or passphrase parameter which could contain "
9962 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9963 "information."
9964 msgstr ""
9965
9966 # type: textblock
9967 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3595
9968 msgid "(Added in 1.5.2)"
9969 msgstr ""
9970
9971 # type: =head2
9972 #: ../src/guestfs-actions.pod:3514
9973 msgid "guestfs_luks_close"
9974 msgstr ""
9975
9976 # type: verbatim
9977 #: ../src/guestfs-actions.pod:3516
9978 #, no-wrap
9979 msgid ""
9980 " int\n"
9981 " guestfs_luks_close (guestfs_h *g,\n"
9982 "                     const char *device);\n"
9983 "\n"
9984 msgstr ""
9985
9986 # type: textblock
9987 #: ../src/guestfs-actions.pod:3520
9988 msgid ""
9989 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9990 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9991 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9992 "underlying block device."
9993 msgstr ""
9994
9995 # type: textblock
9996 #: ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3627 ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3744
9997 msgid "(Added in 1.5.1)"
9998 msgstr ""
9999
10000 # type: =head2
10001 #: ../src/guestfs-actions.pod:3530
10002 msgid "guestfs_luks_format"
10003 msgstr ""
10004
10005 # type: verbatim
10006 #: ../src/guestfs-actions.pod:3532
10007 #, no-wrap
10008 msgid ""
10009 " int\n"
10010 " guestfs_luks_format (guestfs_h *g,\n"
10011 "                      const char *device,\n"
10012 "                      const char *key,\n"
10013 "                      int keyslot);\n"
10014 "\n"
10015 msgstr ""
10016
10017 # type: textblock
10018 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2425
10019 msgid ""
10020 "This command erases existing data on C<device> and formats the device as a "
10021 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10022 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10023 msgstr ""
10024
10025 # type: textblock
10026 #: ../src/guestfs-actions.pod:3545 ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:4568 ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5706 ../src/guestfs-actions.pod:5729 ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:6905 ../fish/guestfish-actions.pod:2433 ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530 ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3567 ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3863 ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:4593
10027 msgid ""
10028 "B<This command is dangerous.  Without careful use you can easily destroy all "
10029 "your data>."
10030 msgstr ""
10031
10032 # type: =head2
10033 #: ../src/guestfs-actions.pod:3554
10034 msgid "guestfs_luks_format_cipher"
10035 msgstr ""
10036
10037 # type: verbatim
10038 #: ../src/guestfs-actions.pod:3556
10039 #, no-wrap
10040 msgid ""
10041 " int\n"
10042 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10043 "                             const char *device,\n"
10044 "                             const char *key,\n"
10045 "                             int keyslot,\n"
10046 "                             const char *cipher);\n"
10047 "\n"
10048 msgstr ""
10049
10050 # type: textblock
10051 #: ../src/guestfs-actions.pod:3563
10052 msgid ""
10053 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10054 "set the C<cipher> used."
10055 msgstr ""
10056
10057 # type: =head2
10058 #: ../src/guestfs-actions.pod:3577
10059 msgid "guestfs_luks_kill_slot"
10060 msgstr ""
10061
10062 # type: verbatim
10063 #: ../src/guestfs-actions.pod:3579
10064 #, no-wrap
10065 msgid ""
10066 " int\n"
10067 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10068 "                         const char *device,\n"
10069 "                         const char *key,\n"
10070 "                         int keyslot);\n"
10071 "\n"
10072 msgstr ""
10073
10074 # type: textblock
10075 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2453
10076 msgid ""
10077 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10078 "device C<device>.  C<key> must be one of the I<other> keys."
10079 msgstr ""
10080
10081 # type: =head2
10082 #: ../src/guestfs-actions.pod:3597
10083 msgid "guestfs_luks_open"
10084 msgstr ""
10085
10086 # type: verbatim
10087 #: ../src/guestfs-actions.pod:3599
10088 #, no-wrap
10089 msgid ""
10090 " int\n"
10091 " guestfs_luks_open (guestfs_h *g,\n"
10092 "                    const char *device,\n"
10093 "                    const char *key,\n"
10094 "                    const char *mapname);\n"
10095 "\n"
10096 msgstr ""
10097
10098 # type: textblock
10099 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2464
10100 msgid ""
10101 "This command opens a block device which has been encrypted according to the "
10102 "Linux Unified Key Setup (LUKS) standard."
10103 msgstr ""
10104
10105 # type: textblock
10106 #: ../src/guestfs-actions.pod:3608 ../fish/guestfish-actions.pod:2467
10107 msgid "C<device> is the encrypted block device or partition."
10108 msgstr ""
10109
10110 # type: textblock
10111 #: ../src/guestfs-actions.pod:3610 ../fish/guestfish-actions.pod:2469
10112 msgid ""
10113 "The caller must supply one of the keys associated with the LUKS block "
10114 "device, in the C<key> parameter."
10115 msgstr ""
10116
10117 # type: textblock
10118 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2472
10119 msgid ""
10120 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10121 "writes to this block device are decrypted from and encrypted to the "
10122 "underlying C<device> respectively."
10123 msgstr ""
10124
10125 # type: textblock
10126 #: ../src/guestfs-actions.pod:3617
10127 msgid ""
10128 "If this block device contains LVM volume groups, then calling "
10129 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10130 "visible."
10131 msgstr ""
10132
10133 # type: =head2
10134 #: ../src/guestfs-actions.pod:3629
10135 msgid "guestfs_luks_open_ro"
10136 msgstr ""
10137
10138 # type: verbatim
10139 #: ../src/guestfs-actions.pod:3631
10140 #, no-wrap
10141 msgid ""
10142 " int\n"
10143 " guestfs_luks_open_ro (guestfs_h *g,\n"
10144 "                       const char *device,\n"
10145 "                       const char *key,\n"
10146 "                       const char *mapname);\n"
10147 "\n"
10148 msgstr ""
10149
10150 # type: textblock
10151 #: ../src/guestfs-actions.pod:3637
10152 msgid ""
10153 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10154 "created."
10155 msgstr ""
10156
10157 # type: =head2
10158 #: ../src/guestfs-actions.pod:3648
10159 msgid "guestfs_lvcreate"
10160 msgstr ""
10161
10162 # type: verbatim
10163 #: ../src/guestfs-actions.pod:3650
10164 #, no-wrap
10165 msgid ""
10166 " int\n"
10167 " guestfs_lvcreate (guestfs_h *g,\n"
10168 "                   const char *logvol,\n"
10169 "                   const char *volgroup,\n"
10170 "                   int mbytes);\n"
10171 "\n"
10172 msgstr ""
10173
10174 # type: textblock
10175 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2497
10176 msgid ""
10177 "This creates an LVM logical volume called C<logvol> on the volume group "
10178 "C<volgroup>, with C<size> megabytes."
10179 msgstr ""
10180
10181 # type: =head2
10182 #: ../src/guestfs-actions.pod:3663
10183 msgid "guestfs_lvm_canonical_lv_name"
10184 msgstr ""
10185
10186 # type: verbatim
10187 #: ../src/guestfs-actions.pod:3665
10188 #, no-wrap
10189 msgid ""
10190 " char *\n"
10191 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10192 "                                const char *lvname);\n"
10193 "\n"
10194 msgstr ""
10195
10196 # type: textblock
10197 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2504
10198 msgid ""
10199 "This converts alternative naming schemes for LVs that you might find to the "
10200 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
10201 "C</dev/VG/LV>."
10202 msgstr ""
10203
10204 # type: textblock
10205 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2508
10206 msgid ""
10207 "This command returns an error if the C<lvname> parameter does not refer to a "
10208 "logical volume."
10209 msgstr ""
10210
10211 # type: textblock
10212 #: ../src/guestfs-actions.pod:3676
10213 msgid "See also C<guestfs_is_lv>."
10214 msgstr ""
10215
10216 # type: textblock
10217 #: ../src/guestfs-actions.pod:3681
10218 msgid "(Added in 1.5.24)"
10219 msgstr ""
10220
10221 # type: =head2
10222 #: ../src/guestfs-actions.pod:3683
10223 msgid "guestfs_lvm_clear_filter"
10224 msgstr ""
10225
10226 # type: verbatim
10227 #: ../src/guestfs-actions.pod:3685
10228 #, no-wrap
10229 msgid ""
10230 " int\n"
10231 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10232 "\n"
10233 msgstr ""
10234
10235 # type: textblock
10236 #: ../src/guestfs-actions.pod:3688
10237 msgid ""
10238 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10239 "see every block device."
10240 msgstr ""
10241
10242 # type: textblock
10243 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3733 ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10244 msgid "This command also clears the LVM cache and performs a volume group scan."
10245 msgstr ""
10246
10247 # type: =head2
10248 #: ../src/guestfs-actions.pod:3698
10249 msgid "guestfs_lvm_remove_all"
10250 msgstr ""
10251
10252 # type: verbatim
10253 #: ../src/guestfs-actions.pod:3700
10254 #, no-wrap
10255 msgid ""
10256 " int\n"
10257 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10258 "\n"
10259 msgstr ""
10260
10261 # type: textblock
10262 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2527
10263 msgid ""
10264 "This command removes all LVM logical volumes, volume groups and physical "
10265 "volumes."
10266 msgstr ""
10267
10268 # type: =head2
10269 #: ../src/guestfs-actions.pod:3713
10270 msgid "guestfs_lvm_set_filter"
10271 msgstr ""
10272
10273 # type: verbatim
10274 #: ../src/guestfs-actions.pod:3715
10275 #, no-wrap
10276 msgid ""
10277 " int\n"
10278 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10279 "                         char *const *devices);\n"
10280 "\n"
10281 msgstr ""
10282
10283 # type: textblock
10284 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2537
10285 msgid ""
10286 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10287 "block devices in the list C<devices>, and will ignore all other attached "
10288 "block devices."
10289 msgstr ""
10290
10291 # type: textblock
10292 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2541
10293 msgid ""
10294 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10295 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10296 "there are two types of duplication possible: either cloned PVs/VGs which "
10297 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10298 "same name.  In normal operation you cannot create this situation, but you "
10299 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10300 "inside the LVM metadata."
10301 msgstr ""
10302
10303 # type: textblock
10304 #: ../src/guestfs-actions.pod:3736 ../fish/guestfish-actions.pod:2554
10305 msgid "You can filter whole block devices or individual partitions."
10306 msgstr ""
10307
10308 # type: textblock
10309 #: ../src/guestfs-actions.pod:3738 ../fish/guestfish-actions.pod:2556
10310 msgid ""
10311 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10312 "filesystem), even if you are not filtering out that VG."
10313 msgstr ""
10314
10315 # type: =head2
10316 #: ../src/guestfs-actions.pod:3746
10317 msgid "guestfs_lvremove"
10318 msgstr ""
10319
10320 # type: verbatim
10321 #: ../src/guestfs-actions.pod:3748
10322 #, no-wrap
10323 msgid ""
10324 " int\n"
10325 " guestfs_lvremove (guestfs_h *g,\n"
10326 "                   const char *device);\n"
10327 "\n"
10328 msgstr ""
10329
10330 # type: textblock
10331 #: ../src/guestfs-actions.pod:3752 ../fish/guestfish-actions.pod:2564
10332 msgid ""
10333 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10334 "LV, such as C</dev/VG/LV>."
10335 msgstr ""
10336
10337 # type: textblock
10338 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2567
10339 msgid ""
10340 "You can also remove all LVs in a volume group by specifying the VG name, "
10341 "C</dev/VG>."
10342 msgstr ""
10343
10344 # type: textblock
10345 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:4914 ../src/guestfs-actions.pod:6644
10346 msgid "(Added in 1.0.13)"
10347 msgstr ""
10348
10349 # type: =head2
10350 #: ../src/guestfs-actions.pod:3762
10351 msgid "guestfs_lvrename"
10352 msgstr ""
10353
10354 # type: verbatim
10355 #: ../src/guestfs-actions.pod:3764
10356 #, no-wrap
10357 msgid ""
10358 " int\n"
10359 " guestfs_lvrename (guestfs_h *g,\n"
10360 "                   const char *logvol,\n"
10361 "                   const char *newlogvol);\n"
10362 "\n"
10363 msgstr ""
10364
10365 # type: textblock
10366 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2574
10367 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10368 msgstr ""
10369
10370 # type: textblock
10371 #: ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:6657
10372 msgid "(Added in 1.0.83)"
10373 msgstr ""
10374
10375 # type: =head2
10376 #: ../src/guestfs-actions.pod:3775
10377 msgid "guestfs_lvresize"
10378 msgstr ""
10379
10380 # type: verbatim
10381 #: ../src/guestfs-actions.pod:3777
10382 #, no-wrap
10383 msgid ""
10384 " int\n"
10385 " guestfs_lvresize (guestfs_h *g,\n"
10386 "                   const char *device,\n"
10387 "                   int mbytes);\n"
10388 "\n"
10389 msgstr ""
10390
10391 # type: textblock
10392 #: ../src/guestfs-actions.pod:3782 ../fish/guestfish-actions.pod:2580
10393 msgid ""
10394 "This resizes (expands or shrinks) an existing LVM logical volume to "
10395 "C<mbytes>.  When reducing, data in the reduced part is lost."
10396 msgstr ""
10397
10398 # type: =head2
10399 #: ../src/guestfs-actions.pod:3790
10400 msgid "guestfs_lvresize_free"
10401 msgstr ""
10402
10403 # type: verbatim
10404 #: ../src/guestfs-actions.pod:3792
10405 #, no-wrap
10406 msgid ""
10407 " int\n"
10408 " guestfs_lvresize_free (guestfs_h *g,\n"
10409 "                        const char *lv,\n"
10410 "                        int percent);\n"
10411 "\n"
10412 msgstr ""
10413
10414 # type: textblock
10415 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2588
10416 msgid ""
10417 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10418 "remaining free space in the volume group.  Commonly you would call this with "
10419 "pc = 100 which expands the logical volume as much as possible, using all "
10420 "remaining free space in the volume group."
10421 msgstr ""
10422
10423 # type: textblock
10424 #: ../src/guestfs-actions.pod:3805
10425 msgid "(Added in 1.3.3)"
10426 msgstr ""
10427
10428 # type: =head2
10429 #: ../src/guestfs-actions.pod:3807
10430 msgid "guestfs_lvs"
10431 msgstr ""
10432
10433 # type: verbatim
10434 #: ../src/guestfs-actions.pod:3809
10435 #, no-wrap
10436 msgid ""
10437 " char **\n"
10438 " guestfs_lvs (guestfs_h *g);\n"
10439 "\n"
10440 msgstr ""
10441
10442 # type: textblock
10443 #: ../src/guestfs-actions.pod:3812 ../fish/guestfish-actions.pod:2598
10444 msgid ""
10445 "List all the logical volumes detected.  This is the equivalent of the "
10446 "L<lvs(8)> command."
10447 msgstr ""
10448
10449 # type: textblock
10450 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2601
10451 msgid ""
10452 "This returns a list of the logical volume device names "
10453 "(eg. C</dev/VolGroup00/LogVol00>)."
10454 msgstr ""
10455
10456 # type: textblock
10457 #: ../src/guestfs-actions.pod:3818
10458 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10459 msgstr ""
10460
10461 # type: =head2
10462 #: ../src/guestfs-actions.pod:3826
10463 msgid "guestfs_lvs_full"
10464 msgstr ""
10465
10466 # type: verbatim
10467 #: ../src/guestfs-actions.pod:3828
10468 #, no-wrap
10469 msgid ""
10470 " struct guestfs_lvm_lv_list *\n"
10471 " guestfs_lvs_full (guestfs_h *g);\n"
10472 "\n"
10473 msgstr ""
10474
10475 # type: textblock
10476 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
10477 msgid ""
10478 "List all the logical volumes detected.  This is the equivalent of the "
10479 "L<lvs(8)> command.  The \"full\" version includes all fields."
10480 msgstr ""
10481
10482 # type: textblock
10483 #: ../src/guestfs-actions.pod:3834
10484 msgid ""
10485 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10486 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
10487 "use>."
10488 msgstr ""
10489
10490 # type: =head2
10491 #: ../src/guestfs-actions.pod:3840
10492 msgid "guestfs_lvuuid"
10493 msgstr ""
10494
10495 # type: verbatim
10496 #: ../src/guestfs-actions.pod:3842
10497 #, no-wrap
10498 msgid ""
10499 " char *\n"
10500 " guestfs_lvuuid (guestfs_h *g,\n"
10501 "                 const char *device);\n"
10502 "\n"
10503 msgstr ""
10504
10505 # type: textblock
10506 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
10507 msgid "This command returns the UUID of the LVM LV C<device>."
10508 msgstr ""
10509
10510 # type: =head2
10511 #: ../src/guestfs-actions.pod:3853
10512 msgid "guestfs_lxattrlist"
10513 msgstr ""
10514
10515 # type: verbatim
10516 #: ../src/guestfs-actions.pod:3855
10517 #, no-wrap
10518 msgid ""
10519 " struct guestfs_xattr_list *\n"
10520 " guestfs_lxattrlist (guestfs_h *g,\n"
10521 "                     const char *path,\n"
10522 "                     char *const *names);\n"
10523 "\n"
10524 msgstr ""
10525
10526 # type: textblock
10527 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2623
10528 msgid ""
10529 "This call allows you to get the extended attributes of multiple files, where "
10530 "all files are in the directory C<path>.  C<names> is the list of files from "
10531 "this directory."
10532 msgstr ""
10533
10534 # type: textblock
10535 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2627
10536 msgid ""
10537 "On return you get a flat list of xattr structs which must be interpreted "
10538 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10539 "C<attrval> in this struct is zero-length to indicate there was an error "
10540 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10541 "number (the number of following attributes for this file, which could be "
10542 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10543 "attributes for the first named file.  This repeats for the second and "
10544 "subsequent files."
10545 msgstr ""
10546
10547 # type: textblock
10548 #: ../src/guestfs-actions.pod:3874
10549 msgid ""
10550 "This call is intended for programs that want to efficiently list a directory "
10551 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10552 "a similarly efficient call for getting standard stats.  Very long directory "
10553 "listings might cause the protocol message size to be exceeded, causing this "
10554 "call to fail.  The caller must split up such requests into smaller groups of "
10555 "names."
10556 msgstr ""
10557
10558 # type: =head2
10559 #: ../src/guestfs-actions.pod:3888
10560 msgid "guestfs_mkdir"
10561 msgstr ""
10562
10563 # type: verbatim
10564 #: ../src/guestfs-actions.pod:3890
10565 #, no-wrap
10566 msgid ""
10567 " int\n"
10568 " guestfs_mkdir (guestfs_h *g,\n"
10569 "                const char *path);\n"
10570 "\n"
10571 msgstr ""
10572
10573 # type: textblock
10574 #: ../src/guestfs-actions.pod:3894 ../fish/guestfish-actions.pod:2649
10575 msgid "Create a directory named C<path>."
10576 msgstr ""
10577
10578 # type: =head2
10579 #: ../src/guestfs-actions.pod:3900
10580 msgid "guestfs_mkdir_mode"
10581 msgstr ""
10582
10583 # type: verbatim
10584 #: ../src/guestfs-actions.pod:3902
10585 #, no-wrap
10586 msgid ""
10587 " int\n"
10588 " guestfs_mkdir_mode (guestfs_h *g,\n"
10589 "                     const char *path,\n"
10590 "                     int mode);\n"
10591 "\n"
10592 msgstr ""
10593
10594 # type: textblock
10595 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2655
10596 msgid ""
10597 "This command creates a directory, setting the initial permissions of the "
10598 "directory to C<mode>."
10599 msgstr ""
10600
10601 # type: textblock
10602 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2658
10603 msgid ""
10604 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10605 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10606 "other ways."
10607 msgstr ""
10608
10609 # type: textblock
10610 #: ../src/guestfs-actions.pod:3914
10611 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10612 msgstr ""
10613
10614 # type: =head2
10615 #: ../src/guestfs-actions.pod:3920
10616 msgid "guestfs_mkdir_p"
10617 msgstr ""
10618
10619 # type: verbatim
10620 #: ../src/guestfs-actions.pod:3922
10621 #, no-wrap
10622 msgid ""
10623 " int\n"
10624 " guestfs_mkdir_p (guestfs_h *g,\n"
10625 "                  const char *path);\n"
10626 "\n"
10627 msgstr ""
10628
10629 # type: textblock
10630 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2668
10631 msgid ""
10632 "Create a directory named C<path>, creating any parent directories as "
10633 "necessary.  This is like the C<mkdir -p> shell command."
10634 msgstr ""
10635
10636 # type: =head2
10637 #: ../src/guestfs-actions.pod:3933
10638 msgid "guestfs_mkdtemp"
10639 msgstr ""
10640
10641 # type: verbatim
10642 #: ../src/guestfs-actions.pod:3935
10643 #, no-wrap
10644 msgid ""
10645 " char *\n"
10646 " guestfs_mkdtemp (guestfs_h *g,\n"
10647 "                  const char *template);\n"
10648 "\n"
10649 msgstr ""
10650
10651 # type: textblock
10652 #: ../src/guestfs-actions.pod:3939 ../fish/guestfish-actions.pod:2675
10653 msgid ""
10654 "This command creates a temporary directory.  The C<template> parameter "
10655 "should be a full pathname for the temporary directory name with the final "
10656 "six characters being \"XXXXXX\"."
10657 msgstr ""
10658
10659 # type: textblock
10660 #: ../src/guestfs-actions.pod:3944 ../fish/guestfish-actions.pod:2680
10661 msgid ""
10662 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10663 "being suitable for Windows filesystems."
10664 msgstr ""
10665
10666 # type: textblock
10667 #: ../src/guestfs-actions.pod:3947 ../fish/guestfish-actions.pod:2683
10668 msgid "The name of the temporary directory that was created is returned."
10669 msgstr ""
10670
10671 # type: textblock
10672 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2686
10673 msgid "The temporary directory is created with mode 0700 and is owned by root."
10674 msgstr ""
10675
10676 # type: textblock
10677 #: ../src/guestfs-actions.pod:3953 ../fish/guestfish-actions.pod:2689
10678 msgid ""
10679 "The caller is responsible for deleting the temporary directory and its "
10680 "contents after use."
10681 msgstr ""
10682
10683 # type: textblock
10684 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2692
10685 msgid "See also: L<mkdtemp(3)>"
10686 msgstr ""
10687
10688 # type: =head2
10689 #: ../src/guestfs-actions.pod:3963
10690 msgid "guestfs_mke2fs_J"
10691 msgstr ""
10692
10693 # type: verbatim
10694 #: ../src/guestfs-actions.pod:3965
10695 #, no-wrap
10696 msgid ""
10697 " int\n"
10698 " guestfs_mke2fs_J (guestfs_h *g,\n"
10699 "                   const char *fstype,\n"
10700 "                   int blocksize,\n"
10701 "                   const char *device,\n"
10702 "                   const char *journal);\n"
10703 "\n"
10704 msgstr ""
10705
10706 # type: textblock
10707 #: ../src/guestfs-actions.pod:3972 ../fish/guestfish-actions.pod:2698
10708 msgid ""
10709 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10710 "C<journal>.  It is equivalent to the command:"
10711 msgstr ""
10712
10713 # type: verbatim
10714 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:2702
10715 #, no-wrap
10716 msgid ""
10717 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10718 "\n"
10719 msgstr ""
10720
10721 # type: textblock
10722 #: ../src/guestfs-actions.pod:3978
10723 msgid "See also C<guestfs_mke2journal>."
10724 msgstr ""
10725
10726 # type: textblock
10727 #: ../src/guestfs-actions.pod:3982 ../src/guestfs-actions.pod:4000 ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4062 ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4304
10728 msgid "(Added in 1.0.68)"
10729 msgstr ""
10730
10731 # type: =head2
10732 #: ../src/guestfs-actions.pod:3984
10733 msgid "guestfs_mke2fs_JL"
10734 msgstr ""
10735
10736 # type: verbatim
10737 #: ../src/guestfs-actions.pod:3986
10738 #, no-wrap
10739 msgid ""
10740 " int\n"
10741 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10742 "                    const char *fstype,\n"
10743 "                    int blocksize,\n"
10744 "                    const char *device,\n"
10745 "                    const char *label);\n"
10746 "\n"
10747 msgstr ""
10748
10749 # type: textblock
10750 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2710
10751 msgid ""
10752 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10753 "the journal labeled C<label>."
10754 msgstr ""
10755
10756 # type: textblock
10757 #: ../src/guestfs-actions.pod:3996
10758 msgid "See also C<guestfs_mke2journal_L>."
10759 msgstr ""
10760
10761 # type: =head2
10762 #: ../src/guestfs-actions.pod:4002
10763 msgid "guestfs_mke2fs_JU"
10764 msgstr ""
10765
10766 # type: verbatim
10767 #: ../src/guestfs-actions.pod:4004
10768 #, no-wrap
10769 msgid ""
10770 " int\n"
10771 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10772 "                    const char *fstype,\n"
10773 "                    int blocksize,\n"
10774 "                    const char *device,\n"
10775 "                    const char *uuid);\n"
10776 "\n"
10777 msgstr ""
10778
10779 # type: textblock
10780 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2719
10781 msgid ""
10782 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10783 "the journal with UUID C<uuid>."
10784 msgstr ""
10785
10786 # type: textblock
10787 #: ../src/guestfs-actions.pod:4014
10788 msgid "See also C<guestfs_mke2journal_U>."
10789 msgstr ""
10790
10791 # type: =head2
10792 #: ../src/guestfs-actions.pod:4020
10793 msgid "guestfs_mke2journal"
10794 msgstr ""
10795
10796 # type: verbatim
10797 #: ../src/guestfs-actions.pod:4022
10798 #, no-wrap
10799 msgid ""
10800 " int\n"
10801 " guestfs_mke2journal (guestfs_h *g,\n"
10802 "                      int blocksize,\n"
10803 "                      const char *device);\n"
10804 "\n"
10805 msgstr ""
10806
10807 # type: textblock
10808 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:2728
10809 msgid ""
10810 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10811 "command:"
10812 msgstr ""
10813
10814 # type: verbatim
10815 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2731
10816 #, no-wrap
10817 msgid ""
10818 " mke2fs -O journal_dev -b blocksize device\n"
10819 "\n"
10820 msgstr ""
10821
10822 # type: =head2
10823 #: ../src/guestfs-actions.pod:4036
10824 msgid "guestfs_mke2journal_L"
10825 msgstr ""
10826
10827 # type: verbatim
10828 #: ../src/guestfs-actions.pod:4038
10829 #, no-wrap
10830 msgid ""
10831 " int\n"
10832 " guestfs_mke2journal_L (guestfs_h *g,\n"
10833 "                        int blocksize,\n"
10834 "                        const char *label,\n"
10835 "                        const char *device);\n"
10836 "\n"
10837 msgstr ""
10838
10839 # type: textblock
10840 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2737
10841 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10842 msgstr ""
10843
10844 # type: =head2
10845 #: ../src/guestfs-actions.pod:4050
10846 msgid "guestfs_mke2journal_U"
10847 msgstr ""
10848
10849 # type: verbatim
10850 #: ../src/guestfs-actions.pod:4052
10851 #, no-wrap
10852 msgid ""
10853 " int\n"
10854 " guestfs_mke2journal_U (guestfs_h *g,\n"
10855 "                        int blocksize,\n"
10856 "                        const char *uuid,\n"
10857 "                        const char *device);\n"
10858 "\n"
10859 msgstr ""
10860
10861 # type: textblock
10862 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2743
10863 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10864 msgstr ""
10865
10866 # type: =head2
10867 #: ../src/guestfs-actions.pod:4064
10868 msgid "guestfs_mkfifo"
10869 msgstr ""
10870
10871 # type: verbatim
10872 #: ../src/guestfs-actions.pod:4066
10873 #, no-wrap
10874 msgid ""
10875 " int\n"
10876 " guestfs_mkfifo (guestfs_h *g,\n"
10877 "                 int mode,\n"
10878 "                 const char *path);\n"
10879 "\n"
10880 msgstr ""
10881
10882 # type: textblock
10883 #: ../src/guestfs-actions.pod:4071
10884 msgid ""
10885 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10886 "is just a convenient wrapper around C<guestfs_mknod>."
10887 msgstr ""
10888
10889 # type: =head2
10890 #: ../src/guestfs-actions.pod:4081
10891 msgid "guestfs_mkfs"
10892 msgstr ""
10893
10894 # type: verbatim
10895 #: ../src/guestfs-actions.pod:4083
10896 #, no-wrap
10897 msgid ""
10898 " int\n"
10899 " guestfs_mkfs (guestfs_h *g,\n"
10900 "               const char *fstype,\n"
10901 "               const char *device);\n"
10902 "\n"
10903 msgstr ""
10904
10905 # type: textblock
10906 #: ../src/guestfs-actions.pod:4088 ../fish/guestfish-actions.pod:2759
10907 msgid ""
10908 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10909 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10910 msgstr ""
10911
10912 # type: =head2
10913 #: ../src/guestfs-actions.pod:4096
10914 msgid "guestfs_mkfs_b"
10915 msgstr ""
10916
10917 # type: verbatim
10918 #: ../src/guestfs-actions.pod:4098
10919 #, no-wrap
10920 msgid ""
10921 " int\n"
10922 " guestfs_mkfs_b (guestfs_h *g,\n"
10923 "                 const char *fstype,\n"
10924 "                 int blocksize,\n"
10925 "                 const char *device);\n"
10926 "\n"
10927 msgstr ""
10928
10929 # type: textblock
10930 #: ../src/guestfs-actions.pod:4104
10931 msgid ""
10932 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10933 "block size of the resulting filesystem.  Supported block sizes depend on the "
10934 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10935 msgstr ""
10936
10937 # type: textblock
10938 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:2772
10939 msgid ""
10940 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10941 "cluster size."
10942 msgstr ""
10943
10944 # type: =head2
10945 #: ../src/guestfs-actions.pod:4116
10946 msgid "guestfs_mkmountpoint"
10947 msgstr ""
10948
10949 # type: verbatim
10950 #: ../src/guestfs-actions.pod:4118
10951 #, no-wrap
10952 msgid ""
10953 " int\n"
10954 " guestfs_mkmountpoint (guestfs_h *g,\n"
10955 "                       const char *exemptpath);\n"
10956 "\n"
10957 msgstr ""
10958
10959 # type: textblock
10960 #: ../src/guestfs-actions.pod:4122
10961 msgid ""
10962 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10963 "that can be used to create extra mountpoints before mounting the first "
10964 "filesystem."
10965 msgstr ""
10966
10967 # type: textblock
10968 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
10969 msgid ""
10970 "These calls are I<only> necessary in some very limited circumstances, mainly "
10971 "the case where you want to mount a mix of unrelated and/or read-only "
10972 "filesystems together."
10973 msgstr ""
10974
10975 # type: textblock
10976 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2787
10977 msgid ""
10978 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10979 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10980 "inside that.  You can unpack this as follows in guestfish:"
10981 msgstr ""
10982
10983 # type: verbatim
10984 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2792
10985 #, no-wrap
10986 msgid ""
10987 " add-ro Fedora-11-i686-Live.iso\n"
10988 " run\n"
10989 " mkmountpoint /cd\n"
10990 " mkmountpoint /sqsh\n"
10991 " mkmountpoint /ext3fs\n"
10992 " mount /dev/sda /cd\n"
10993 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10994 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10995 "\n"
10996 msgstr ""
10997
10998 # type: textblock
10999 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:2801
11000 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11001 msgstr ""
11002
11003 # type: textblock
11004 #: ../src/guestfs-actions.pod:4146
11005 msgid ""
11006 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11007 "may get unexpected errors if you try to mix these calls.  It is safest to "
11008 "manually unmount filesystems and remove mountpoints after use."
11009 msgstr ""
11010
11011 # type: textblock
11012 #: ../src/guestfs-actions.pod:4150
11013 msgid ""
11014 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11015 "first, so for this to work for manual mountpoints, you must ensure that the "
11016 "innermost mountpoints have the longest pathnames, as in the example code "
11017 "above."
11018 msgstr ""
11019
11020 # type: textblock
11021 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:2812
11022 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11023 msgstr ""
11024
11025 # type: textblock
11026 #: ../src/guestfs-actions.pod:4157
11027 msgid ""
11028 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11029 "means that C<guestfs_umount_all> is called when the handle is closed which "
11030 "can also trigger these issues."
11031 msgstr ""
11032
11033 # type: textblock
11034 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:5315
11035 msgid "(Added in 1.0.62)"
11036 msgstr ""
11037
11038 # type: =head2
11039 #: ../src/guestfs-actions.pod:4165
11040 msgid "guestfs_mknod"
11041 msgstr ""
11042
11043 # type: verbatim
11044 #: ../src/guestfs-actions.pod:4167
11045 #, no-wrap
11046 msgid ""
11047 " int\n"
11048 " guestfs_mknod (guestfs_h *g,\n"
11049 "                int mode,\n"
11050 "                int devmajor,\n"
11051 "                int devminor,\n"
11052 "                const char *path);\n"
11053 "\n"
11054 msgstr ""
11055
11056 # type: textblock
11057 #: ../src/guestfs-actions.pod:4174 ../fish/guestfish-actions.pod:2822
11058 msgid ""
11059 "This call creates block or character special devices, or named pipes "
11060 "(FIFOs)."
11061 msgstr ""
11062
11063 # type: textblock
11064 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2825
11065 msgid ""
11066 "The C<mode> parameter should be the mode, using the standard constants.  "
11067 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11068 "used when creating block and character special devices."
11069 msgstr ""
11070
11071 # type: textblock
11072 #: ../src/guestfs-actions.pod:4182
11073 msgid ""
11074 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11075 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11076 "regular file).  These constants are available in the standard Linux header "
11077 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11078 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11079 "the appropriate constant for you."
11080 msgstr ""
11081
11082 # type: =head2
11083 #: ../src/guestfs-actions.pod:4196
11084 msgid "guestfs_mknod_b"
11085 msgstr ""
11086
11087 # type: verbatim
11088 #: ../src/guestfs-actions.pod:4198
11089 #, no-wrap
11090 msgid ""
11091 " int\n"
11092 " guestfs_mknod_b (guestfs_h *g,\n"
11093 "                  int mode,\n"
11094 "                  int devmajor,\n"
11095 "                  int devminor,\n"
11096 "                  const char *path);\n"
11097 "\n"
11098 msgstr ""
11099
11100 # type: textblock
11101 #: ../src/guestfs-actions.pod:4205
11102 msgid ""
11103 "This call creates a block device node called C<path> with mode C<mode> and "
11104 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11105 "wrapper around C<guestfs_mknod>."
11106 msgstr ""
11107
11108 # type: =head2
11109 #: ../src/guestfs-actions.pod:4215
11110 msgid "guestfs_mknod_c"
11111 msgstr ""
11112
11113 # type: verbatim
11114 #: ../src/guestfs-actions.pod:4217
11115 #, no-wrap
11116 msgid ""
11117 " int\n"
11118 " guestfs_mknod_c (guestfs_h *g,\n"
11119 "                  int mode,\n"
11120 "                  int devmajor,\n"
11121 "                  int devminor,\n"
11122 "                  const char *path);\n"
11123 "\n"
11124 msgstr ""
11125
11126 # type: textblock
11127 #: ../src/guestfs-actions.pod:4224
11128 msgid ""
11129 "This call creates a char device node called C<path> with mode C<mode> and "
11130 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11131 "wrapper around C<guestfs_mknod>."
11132 msgstr ""
11133
11134 # type: =head2
11135 #: ../src/guestfs-actions.pod:4234
11136 msgid "guestfs_mkswap"
11137 msgstr ""
11138
11139 # type: verbatim
11140 #: ../src/guestfs-actions.pod:4236
11141 #, no-wrap
11142 msgid ""
11143 " int\n"
11144 " guestfs_mkswap (guestfs_h *g,\n"
11145 "                 const char *device);\n"
11146 "\n"
11147 msgstr ""
11148
11149 # type: textblock
11150 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:2864
11151 msgid "Create a swap partition on C<device>."
11152 msgstr ""
11153
11154 # type: =head2
11155 #: ../src/guestfs-actions.pod:4246
11156 msgid "guestfs_mkswap_L"
11157 msgstr ""
11158
11159 # type: verbatim
11160 #: ../src/guestfs-actions.pod:4248
11161 #, no-wrap
11162 msgid ""
11163 " int\n"
11164 " guestfs_mkswap_L (guestfs_h *g,\n"
11165 "                   const char *label,\n"
11166 "                   const char *device);\n"
11167 "\n"
11168 msgstr ""
11169
11170 # type: textblock
11171 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:2870
11172 msgid "Create a swap partition on C<device> with label C<label>."
11173 msgstr ""
11174
11175 # type: textblock
11176 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2872
11177 msgid ""
11178 "Note that you cannot attach a swap label to a block device "
11179 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
11180 "the kernel or swap tools."
11181 msgstr ""
11182
11183 # type: =head2
11184 #: ../src/guestfs-actions.pod:4263
11185 msgid "guestfs_mkswap_U"
11186 msgstr ""
11187
11188 # type: verbatim
11189 #: ../src/guestfs-actions.pod:4265
11190 #, no-wrap
11191 msgid ""
11192 " int\n"
11193 " guestfs_mkswap_U (guestfs_h *g,\n"
11194 "                   const char *uuid,\n"
11195 "                   const char *device);\n"
11196 "\n"
11197 msgstr ""
11198
11199 # type: textblock
11200 #: ../src/guestfs-actions.pod:4270 ../fish/guestfish-actions.pod:2880
11201 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11202 msgstr ""
11203
11204 # type: =head2
11205 #: ../src/guestfs-actions.pod:4276
11206 msgid "guestfs_mkswap_file"
11207 msgstr ""
11208
11209 # type: verbatim
11210 #: ../src/guestfs-actions.pod:4278
11211 #, no-wrap
11212 msgid ""
11213 " int\n"
11214 " guestfs_mkswap_file (guestfs_h *g,\n"
11215 "                      const char *path);\n"
11216 "\n"
11217 msgstr ""
11218
11219 # type: textblock
11220 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2886
11221 msgid "Create a swap file."
11222 msgstr ""
11223
11224 # type: textblock
11225 #: ../src/guestfs-actions.pod:4284
11226 msgid ""
11227 "This command just writes a swap file signature to an existing file.  To "
11228 "create the file itself, use something like C<guestfs_fallocate>."
11229 msgstr ""
11230
11231 # type: =head2
11232 #: ../src/guestfs-actions.pod:4291
11233 msgid "guestfs_modprobe"
11234 msgstr ""
11235
11236 # type: verbatim
11237 #: ../src/guestfs-actions.pod:4293
11238 #, no-wrap
11239 msgid ""
11240 " int\n"
11241 " guestfs_modprobe (guestfs_h *g,\n"
11242 "                   const char *modulename);\n"
11243 "\n"
11244 msgstr ""
11245
11246 # type: textblock
11247 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:2895
11248 msgid "This loads a kernel module in the appliance."
11249 msgstr ""
11250
11251 # type: textblock
11252 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2897
11253 msgid ""
11254 "The kernel module must have been whitelisted when libguestfs was built (see "
11255 "C<appliance/kmod.whitelist.in> in the source)."
11256 msgstr ""
11257
11258 # type: =head2
11259 #: ../src/guestfs-actions.pod:4306
11260 msgid "guestfs_mount"
11261 msgstr ""
11262
11263 # type: verbatim
11264 #: ../src/guestfs-actions.pod:4308
11265 #, no-wrap
11266 msgid ""
11267 " int\n"
11268 " guestfs_mount (guestfs_h *g,\n"
11269 "                const char *device,\n"
11270 "                const char *mountpoint);\n"
11271 "\n"
11272 msgstr ""
11273
11274 # type: textblock
11275 #: ../src/guestfs-actions.pod:4313 ../fish/guestfish-actions.pod:2904
11276 msgid ""
11277 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11278 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11279 "those block devices contain partitions, they will have the usual names "
11280 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11281 msgstr ""
11282
11283 # type: textblock
11284 #: ../src/guestfs-actions.pod:4319 ../fish/guestfish-actions.pod:2910
11285 msgid ""
11286 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11287 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11288 "mounted on directories which already exist."
11289 msgstr ""
11290
11291 # type: textblock
11292 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2915
11293 msgid ""
11294 "The mounted filesystem is writable, if we have sufficient permissions on the "
11295 "underlying device."
11296 msgstr ""
11297
11298 # type: textblock
11299 #: ../src/guestfs-actions.pod:4327
11300 msgid ""
11301 "B<Important note:> When you use this call, the filesystem options C<sync> "
11302 "and C<noatime> are set implicitly.  This was originally done because we "
11303 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11304 "very large negative performance impact and negligible effect on "
11305 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11306 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11307 "(use an empty string for the first parameter if you don't want any options)."
11308 msgstr ""
11309
11310 # type: =head2
11311 #: ../src/guestfs-actions.pod:4341
11312 msgid "guestfs_mount_loop"
11313 msgstr ""
11314
11315 # type: verbatim
11316 #: ../src/guestfs-actions.pod:4343
11317 #, no-wrap
11318 msgid ""
11319 " int\n"
11320 " guestfs_mount_loop (guestfs_h *g,\n"
11321 "                     const char *file,\n"
11322 "                     const char *mountpoint);\n"
11323 "\n"
11324 msgstr ""
11325
11326 # type: textblock
11327 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2932
11328 msgid ""
11329 "This command lets you mount C<file> (a filesystem image in a file) on a "
11330 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11331 "mountpoint>."
11332 msgstr ""
11333
11334 # type: =head2
11335 #: ../src/guestfs-actions.pod:4356
11336 msgid "guestfs_mount_options"
11337 msgstr ""
11338
11339 # type: verbatim
11340 #: ../src/guestfs-actions.pod:4358
11341 #, no-wrap
11342 msgid ""
11343 " int\n"
11344 " guestfs_mount_options (guestfs_h *g,\n"
11345 "                        const char *options,\n"
11346 "                        const char *device,\n"
11347 "                        const char *mountpoint);\n"
11348 "\n"
11349 msgstr ""
11350
11351 # type: textblock
11352 #: ../src/guestfs-actions.pod:4364
11353 msgid ""
11354 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11355 "the mount options as for the L<mount(8)> I<-o> flag."
11356 msgstr ""
11357
11358 # type: textblock
11359 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:2944
11360 msgid ""
11361 "If the C<options> parameter is an empty string, then no options are passed "
11362 "(all options default to whatever the filesystem uses)."
11363 msgstr ""
11364
11365 # type: textblock
11366 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4388 ../src/guestfs-actions.pod:4405
11367 msgid "(Added in 1.0.10)"
11368 msgstr ""
11369
11370 # type: =head2
11371 #: ../src/guestfs-actions.pod:4376
11372 msgid "guestfs_mount_ro"
11373 msgstr ""
11374
11375 # type: verbatim
11376 #: ../src/guestfs-actions.pod:4378
11377 #, no-wrap
11378 msgid ""
11379 " int\n"
11380 " guestfs_mount_ro (guestfs_h *g,\n"
11381 "                   const char *device,\n"
11382 "                   const char *mountpoint);\n"
11383 "\n"
11384 msgstr ""
11385
11386 # type: textblock
11387 #: ../src/guestfs-actions.pod:4383
11388 msgid ""
11389 "This is the same as the C<guestfs_mount> command, but it mounts the "
11390 "filesystem with the read-only (I<-o ro>) flag."
11391 msgstr ""
11392
11393 # type: =head2
11394 #: ../src/guestfs-actions.pod:4390
11395 msgid "guestfs_mount_vfs"
11396 msgstr ""
11397
11398 # type: verbatim
11399 #: ../src/guestfs-actions.pod:4392
11400 #, no-wrap
11401 msgid ""
11402 " int\n"
11403 " guestfs_mount_vfs (guestfs_h *g,\n"
11404 "                    const char *options,\n"
11405 "                    const char *vfstype,\n"
11406 "                    const char *device,\n"
11407 "                    const char *mountpoint);\n"
11408 "\n"
11409 msgstr ""
11410
11411 # type: textblock
11412 #: ../src/guestfs-actions.pod:4399
11413 msgid ""
11414 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11415 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
11416 "I<-t> flags."
11417 msgstr ""
11418
11419 # type: =head2
11420 #: ../src/guestfs-actions.pod:4407
11421 msgid "guestfs_mountpoints"
11422 msgstr ""
11423
11424 # type: verbatim
11425 #: ../src/guestfs-actions.pod:4409
11426 #, no-wrap
11427 msgid ""
11428 " char **\n"
11429 " guestfs_mountpoints (guestfs_h *g);\n"
11430 "\n"
11431 msgstr ""
11432
11433 # type: textblock
11434 #: ../src/guestfs-actions.pod:4412
11435 msgid ""
11436 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11437 "devices.  This one returns a hash table (map) of device name to directory "
11438 "where the device is mounted."
11439 msgstr ""
11440
11441 # type: =head2
11442 #: ../src/guestfs-actions.pod:4424
11443 msgid "guestfs_mounts"
11444 msgstr ""
11445
11446 # type: verbatim
11447 #: ../src/guestfs-actions.pod:4426
11448 #, no-wrap
11449 msgid ""
11450 " char **\n"
11451 " guestfs_mounts (guestfs_h *g);\n"
11452 "\n"
11453 msgstr ""
11454
11455 # type: textblock
11456 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:2975
11457 msgid ""
11458 "This returns the list of currently mounted filesystems.  It returns the list "
11459 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11460 msgstr ""
11461
11462 # type: textblock
11463 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2978
11464 msgid "Some internal mounts are not shown."
11465 msgstr ""
11466
11467 # type: textblock
11468 #: ../src/guestfs-actions.pod:4434
11469 msgid "See also: C<guestfs_mountpoints>"
11470 msgstr ""
11471
11472 # type: =head2
11473 #: ../src/guestfs-actions.pod:4442
11474 msgid "guestfs_mv"
11475 msgstr ""
11476
11477 # type: verbatim
11478 #: ../src/guestfs-actions.pod:4444
11479 #, no-wrap
11480 msgid ""
11481 " int\n"
11482 " guestfs_mv (guestfs_h *g,\n"
11483 "             const char *src,\n"
11484 "             const char *dest);\n"
11485 "\n"
11486 msgstr ""
11487
11488 # type: textblock
11489 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:2986
11490 msgid ""
11491 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11492 "destination filename or destination directory."
11493 msgstr ""
11494
11495 # type: =head2
11496 #: ../src/guestfs-actions.pod:4456
11497 msgid "guestfs_ntfs_3g_probe"
11498 msgstr ""
11499
11500 # type: verbatim
11501 #: ../src/guestfs-actions.pod:4458
11502 #, no-wrap
11503 msgid ""
11504 " int\n"
11505 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11506 "                        int rw,\n"
11507 "                        const char *device);\n"
11508 "\n"
11509 msgstr ""
11510
11511 # type: textblock
11512 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:2993
11513 msgid ""
11514 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11515 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11516 "read-write, and some cannot be mounted at all)."
11517 msgstr ""
11518
11519 # type: textblock
11520 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:2997
11521 msgid ""
11522 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11523 "can be mounted read-write.  Set it to false if you want to test if the "
11524 "volume can be mounted read-only."
11525 msgstr ""
11526
11527 # type: textblock
11528 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3001
11529 msgid ""
11530 "The return value is an integer which C<0> if the operation would succeed, or "
11531 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11532 msgstr ""
11533
11534 # type: textblock
11535 #: ../src/guestfs-actions.pod:4477
11536 msgid "(Added in 1.0.43)"
11537 msgstr ""
11538
11539 # type: =head2
11540 #: ../src/guestfs-actions.pod:4479
11541 msgid "guestfs_ntfsresize"
11542 msgstr ""
11543
11544 # type: verbatim
11545 #: ../src/guestfs-actions.pod:4481
11546 #, no-wrap
11547 msgid ""
11548 " int\n"
11549 " guestfs_ntfsresize (guestfs_h *g,\n"
11550 "                     const char *device);\n"
11551 "\n"
11552 msgstr ""
11553
11554 # type: textblock
11555 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
11556 msgid ""
11557 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11558 "size of the underlying device.  See also L<ntfsresize(8)>."
11559 msgstr ""
11560
11561 # type: =head2
11562 #: ../src/guestfs-actions.pod:4493
11563 msgid "guestfs_ntfsresize_size"
11564 msgstr ""
11565
11566 # type: verbatim
11567 #: ../src/guestfs-actions.pod:4495
11568 #, no-wrap
11569 msgid ""
11570 " int\n"
11571 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11572 "                          const char *device,\n"
11573 "                          int64_t size);\n"
11574 "\n"
11575 msgstr ""
11576
11577 # type: textblock
11578 #: ../src/guestfs-actions.pod:4500
11579 msgid ""
11580 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11581 "to specify the new size (in bytes) explicitly."
11582 msgstr ""
11583
11584 # type: textblock
11585 #: ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:4941 ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5263
11586 msgid "(Added in 1.3.14)"
11587 msgstr ""
11588
11589 # type: =head2
11590 #: ../src/guestfs-actions.pod:4507
11591 msgid "guestfs_part_add"
11592 msgstr ""
11593
11594 # type: verbatim
11595 #: ../src/guestfs-actions.pod:4509
11596 #, no-wrap
11597 msgid ""
11598 " int\n"
11599 " guestfs_part_add (guestfs_h *g,\n"
11600 "                   const char *device,\n"
11601 "                   const char *prlogex,\n"
11602 "                   int64_t startsect,\n"
11603 "                   int64_t endsect);\n"
11604 "\n"
11605 msgstr ""
11606
11607 # type: textblock
11608 #: ../src/guestfs-actions.pod:4516
11609 msgid ""
11610 "This command adds a partition to C<device>.  If there is no partition table "
11611 "on the device, call C<guestfs_part_init> first."
11612 msgstr ""
11613
11614 # type: textblock
11615 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:3027
11616 msgid ""
11617 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11618 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11619 "C<logical>) and C<e> (or C<extended>) partition types."
11620 msgstr ""
11621
11622 # type: textblock
11623 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3032
11624 msgid ""
11625 "C<startsect> and C<endsect> are the start and end of the partition in "
11626 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11627 "from the end of the disk (C<-1> is the last sector)."
11628 msgstr ""
11629
11630 # type: textblock
11631 #: ../src/guestfs-actions.pod:4528
11632 msgid ""
11633 "Creating a partition which covers the whole disk is not so easy.  Use "
11634 "C<guestfs_part_disk> to do that."
11635 msgstr ""
11636
11637 # type: textblock
11638 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:4799
11639 msgid "(Added in 1.0.78)"
11640 msgstr ""
11641
11642 # type: =head2
11643 #: ../src/guestfs-actions.pod:4535
11644 msgid "guestfs_part_del"
11645 msgstr ""
11646
11647 # type: verbatim
11648 #: ../src/guestfs-actions.pod:4537
11649 #, no-wrap
11650 msgid ""
11651 " int\n"
11652 " guestfs_part_del (guestfs_h *g,\n"
11653 "                   const char *device,\n"
11654 "                   int partnum);\n"
11655 "\n"
11656 msgstr ""
11657
11658 # type: textblock
11659 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3043
11660 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11661 msgstr ""
11662
11663 # type: textblock
11664 #: ../src/guestfs-actions.pod:4544 ../fish/guestfish-actions.pod:3045
11665 msgid ""
11666 "Note that in the case of MBR partitioning, deleting an extended partition "
11667 "also deletes any logical partitions it contains."
11668 msgstr ""
11669
11670 # type: =head2
11671 #: ../src/guestfs-actions.pod:4552
11672 msgid "guestfs_part_disk"
11673 msgstr ""
11674
11675 # type: verbatim
11676 #: ../src/guestfs-actions.pod:4554
11677 #, no-wrap
11678 msgid ""
11679 " int\n"
11680 " guestfs_part_disk (guestfs_h *g,\n"
11681 "                    const char *device,\n"
11682 "                    const char *parttype);\n"
11683 "\n"
11684 msgstr ""
11685
11686 # type: textblock
11687 #: ../src/guestfs-actions.pod:4559
11688 msgid ""
11689 "This command is simply a combination of C<guestfs_part_init> followed by "
11690 "C<guestfs_part_add> to create a single primary partition covering the whole "
11691 "disk."
11692 msgstr ""
11693
11694 # type: textblock
11695 #: ../src/guestfs-actions.pod:4563
11696 msgid ""
11697 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11698 "possible values are described in C<guestfs_part_init>."
11699 msgstr ""
11700
11701 # type: =head2
11702 #: ../src/guestfs-actions.pod:4573
11703 msgid "guestfs_part_get_bootable"
11704 msgstr ""
11705
11706 # type: verbatim
11707 #: ../src/guestfs-actions.pod:4575
11708 #, no-wrap
11709 msgid ""
11710 " int\n"
11711 " guestfs_part_get_bootable (guestfs_h *g,\n"
11712 "                            const char *device,\n"
11713 "                            int partnum);\n"
11714 "\n"
11715 msgstr ""
11716
11717 # type: textblock
11718 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3067
11719 msgid ""
11720 "This command returns true if the partition C<partnum> on C<device> has the "
11721 "bootable flag set."
11722 msgstr ""
11723
11724 # type: textblock
11725 #: ../src/guestfs-actions.pod:4583
11726 msgid "See also C<guestfs_part_set_bootable>."
11727 msgstr ""
11728
11729 # type: =head2
11730 #: ../src/guestfs-actions.pod:4589
11731 msgid "guestfs_part_get_mbr_id"
11732 msgstr ""
11733
11734 # type: verbatim
11735 #: ../src/guestfs-actions.pod:4591
11736 #, no-wrap
11737 msgid ""
11738 " int\n"
11739 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11740 "                          const char *device,\n"
11741 "                          int partnum);\n"
11742 "\n"
11743 msgstr ""
11744
11745 # type: textblock
11746 #: ../src/guestfs-actions.pod:4596 ../fish/guestfish-actions.pod:3076
11747 msgid ""
11748 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11749 "partition C<partnum>."
11750 msgstr ""
11751
11752 # type: textblock
11753 #: ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4775
11754 msgid ""
11755 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11756 "undefined results for other partition table types (see "
11757 "C<guestfs_part_get_parttype>)."
11758 msgstr ""
11759
11760 # type: =head2
11761 #: ../src/guestfs-actions.pod:4607
11762 msgid "guestfs_part_get_parttype"
11763 msgstr ""
11764
11765 # type: verbatim
11766 #: ../src/guestfs-actions.pod:4609
11767 #, no-wrap
11768 msgid ""
11769 " char *\n"
11770 " guestfs_part_get_parttype (guestfs_h *g,\n"
11771 "                            const char *device);\n"
11772 "\n"
11773 msgstr ""
11774
11775 # type: textblock
11776 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3087
11777 msgid ""
11778 "This command examines the partition table on C<device> and returns the "
11779 "partition table type (format) being used."
11780 msgstr ""
11781
11782 # type: textblock
11783 #: ../src/guestfs-actions.pod:4616
11784 msgid ""
11785 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11786 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11787 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11788 msgstr ""
11789
11790 # type: =head2
11791 #: ../src/guestfs-actions.pod:4626
11792 msgid "guestfs_part_init"
11793 msgstr ""
11794
11795 # type: verbatim
11796 #: ../src/guestfs-actions.pod:4628
11797 #, no-wrap
11798 msgid ""
11799 " int\n"
11800 " guestfs_part_init (guestfs_h *g,\n"
11801 "                    const char *device,\n"
11802 "                    const char *parttype);\n"
11803 "\n"
11804 msgstr ""
11805
11806 # type: textblock
11807 #: ../src/guestfs-actions.pod:4633 ../fish/guestfish-actions.pod:3099
11808 msgid ""
11809 "This creates an empty partition table on C<device> of one of the partition "
11810 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11811 "(for large disks)."
11812 msgstr ""
11813
11814 # type: textblock
11815 #: ../src/guestfs-actions.pod:4637
11816 msgid ""
11817 "Initially there are no partitions.  Following this, you should call "
11818 "C<guestfs_part_add> for each partition required."
11819 msgstr ""
11820
11821 # type: textblock
11822 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3106
11823 msgid "Possible values for C<parttype> are:"
11824 msgstr ""
11825
11826 # type: =item
11827 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3110
11828 msgid "B<efi> | B<gpt>"
11829 msgstr ""
11830
11831 # type: textblock
11832 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3112
11833 msgid "Intel EFI / GPT partition table."
11834 msgstr ""
11835
11836 # type: textblock
11837 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3114
11838 msgid ""
11839 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11840 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11841 "the C<mbr> format."
11842 msgstr ""
11843
11844 # type: =item
11845 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3118
11846 msgid "B<mbr> | B<msdos>"
11847 msgstr ""
11848
11849 # type: textblock
11850 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3120
11851 msgid ""
11852 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11853 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11854 "TB.  For large disks we recommend using C<gpt>."
11855 msgstr ""
11856
11857 # type: textblock
11858 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3127
11859 msgid "Other partition table types that may work but are not supported include:"
11860 msgstr ""
11861
11862 # type: =item
11863 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3132
11864 msgid "B<aix>"
11865 msgstr ""
11866
11867 # type: textblock
11868 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3134
11869 msgid "AIX disk labels."
11870 msgstr ""
11871
11872 # type: =item
11873 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3136
11874 msgid "B<amiga> | B<rdb>"
11875 msgstr ""
11876
11877 # type: textblock
11878 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3138
11879 msgid "Amiga \"Rigid Disk Block\" format."
11880 msgstr ""
11881
11882 # type: =item
11883 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3140
11884 msgid "B<bsd>"
11885 msgstr ""
11886
11887 # type: textblock
11888 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3142
11889 msgid "BSD disk labels."
11890 msgstr ""
11891
11892 # type: =item
11893 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3144
11894 msgid "B<dasd>"
11895 msgstr ""
11896
11897 # type: textblock
11898 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3146
11899 msgid "DASD, used on IBM mainframes."
11900 msgstr ""
11901
11902 # type: =item
11903 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3148
11904 msgid "B<dvh>"
11905 msgstr ""
11906
11907 # type: textblock
11908 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3150
11909 msgid "MIPS/SGI volumes."
11910 msgstr ""
11911
11912 # type: =item
11913 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3152
11914 msgid "B<mac>"
11915 msgstr ""
11916
11917 # type: textblock
11918 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3154
11919 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11920 msgstr ""
11921
11922 # type: =item
11923 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3156
11924 msgid "B<pc98>"
11925 msgstr ""
11926
11927 # type: textblock
11928 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3158
11929 msgid "NEC PC-98 format, common in Japan apparently."
11930 msgstr ""
11931
11932 # type: =item
11933 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3160
11934 msgid "B<sun>"
11935 msgstr ""
11936
11937 # type: textblock
11938 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3162
11939 msgid "Sun disk labels."
11940 msgstr ""
11941
11942 # type: =head2
11943 #: ../src/guestfs-actions.pod:4704
11944 msgid "guestfs_part_list"
11945 msgstr ""
11946
11947 # type: verbatim
11948 #: ../src/guestfs-actions.pod:4706
11949 #, no-wrap
11950 msgid ""
11951 " struct guestfs_partition_list *\n"
11952 " guestfs_part_list (guestfs_h *g,\n"
11953 "                    const char *device);\n"
11954 "\n"
11955 msgstr ""
11956
11957 # type: textblock
11958 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3170
11959 msgid ""
11960 "This command parses the partition table on C<device> and returns the list of "
11961 "partitions found."
11962 msgstr ""
11963
11964 # type: textblock
11965 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3173
11966 msgid "The fields in the returned structure are:"
11967 msgstr ""
11968
11969 # type: =item
11970 #: ../src/guestfs-actions.pod:4717 ../fish/guestfish-actions.pod:3177
11971 msgid "B<part_num>"
11972 msgstr ""
11973
11974 # type: textblock
11975 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3179
11976 msgid "Partition number, counting from 1."
11977 msgstr ""
11978
11979 # type: =item
11980 #: ../src/guestfs-actions.pod:4721 ../fish/guestfish-actions.pod:3181
11981 msgid "B<part_start>"
11982 msgstr ""
11983
11984 # type: textblock
11985 #: ../src/guestfs-actions.pod:4723
11986 msgid ""
11987 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11988 "the device's sector size, see C<guestfs_blockdev_getss>."
11989 msgstr ""
11990
11991 # type: =item
11992 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3186
11993 msgid "B<part_end>"
11994 msgstr ""
11995
11996 # type: textblock
11997 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3188
11998 msgid "End of the partition in bytes."
11999 msgstr ""
12000
12001 # type: =item
12002 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3190
12003 msgid "B<part_size>"
12004 msgstr ""
12005
12006 # type: textblock
12007 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3192
12008 msgid "Size of the partition in bytes."
12009 msgstr ""
12010
12011 # type: textblock
12012 #: ../src/guestfs-actions.pod:4736
12013 msgid ""
12014 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12015 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12016 "use>."
12017 msgstr ""
12018
12019 # type: =head2
12020 #: ../src/guestfs-actions.pod:4742
12021 msgid "guestfs_part_set_bootable"
12022 msgstr ""
12023
12024 # type: verbatim
12025 #: ../src/guestfs-actions.pod:4744
12026 #, no-wrap
12027 msgid ""
12028 " int\n"
12029 " guestfs_part_set_bootable (guestfs_h *g,\n"
12030 "                            const char *device,\n"
12031 "                            int partnum,\n"
12032 "                            int bootable);\n"
12033 "\n"
12034 msgstr ""
12035
12036 # type: textblock
12037 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3200
12038 msgid ""
12039 "This sets the bootable flag on partition numbered C<partnum> on device "
12040 "C<device>.  Note that partitions are numbered from 1."
12041 msgstr ""
12042
12043 # type: textblock
12044 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3203
12045 msgid ""
12046 "The bootable flag is used by some operating systems (notably Windows) to "
12047 "determine which partition to boot from.  It is by no means universally "
12048 "recognized."
12049 msgstr ""
12050
12051 # type: =head2
12052 #: ../src/guestfs-actions.pod:4761
12053 msgid "guestfs_part_set_mbr_id"
12054 msgstr ""
12055
12056 # type: verbatim
12057 #: ../src/guestfs-actions.pod:4763
12058 #, no-wrap
12059 msgid ""
12060 " int\n"
12061 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12062 "                          const char *device,\n"
12063 "                          int partnum,\n"
12064 "                          int idbyte);\n"
12065 "\n"
12066 msgstr ""
12067
12068 # type: textblock
12069 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3211
12070 msgid ""
12071 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12072 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12073 "documentation are in fact hexadecimal numbers, but usually documented "
12074 "without any leading \"0x\" which might be confusing."
12075 msgstr ""
12076
12077 # type: =head2
12078 #: ../src/guestfs-actions.pod:4783
12079 msgid "guestfs_part_set_name"
12080 msgstr ""
12081
12082 # type: verbatim
12083 #: ../src/guestfs-actions.pod:4785
12084 #, no-wrap
12085 msgid ""
12086 " int\n"
12087 " guestfs_part_set_name (guestfs_h *g,\n"
12088 "                        const char *device,\n"
12089 "                        int partnum,\n"
12090 "                        const char *name);\n"
12091 "\n"
12092 msgstr ""
12093
12094 # type: textblock
12095 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3225
12096 msgid ""
12097 "This sets the partition name on partition numbered C<partnum> on device "
12098 "C<device>.  Note that partitions are numbered from 1."
12099 msgstr ""
12100
12101 # type: textblock
12102 #: ../src/guestfs-actions.pod:4794 ../fish/guestfish-actions.pod:3228
12103 msgid ""
12104 "The partition name can only be set on certain types of partition table.  "
12105 "This works on C<gpt> but not on C<mbr> partitions."
12106 msgstr ""
12107
12108 # type: =head2
12109 #: ../src/guestfs-actions.pod:4801
12110 msgid "guestfs_part_to_dev"
12111 msgstr ""
12112
12113 # type: verbatim
12114 #: ../src/guestfs-actions.pod:4803
12115 #, no-wrap
12116 msgid ""
12117 " char *\n"
12118 " guestfs_part_to_dev (guestfs_h *g,\n"
12119 "                      const char *partition);\n"
12120 "\n"
12121 msgstr ""
12122
12123 # type: textblock
12124 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3235
12125 msgid ""
12126 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12127 "partition number, returning the device name (eg. \"/dev/sdb\")."
12128 msgstr ""
12129
12130 # type: textblock
12131 #: ../src/guestfs-actions.pod:4811
12132 msgid ""
12133 "The named partition must exist, for example as a string returned from "
12134 "C<guestfs_list_partitions>."
12135 msgstr ""
12136
12137 # type: =head2
12138 #: ../src/guestfs-actions.pod:4819
12139 msgid "guestfs_ping_daemon"
12140 msgstr ""
12141
12142 # type: verbatim
12143 #: ../src/guestfs-actions.pod:4821
12144 #, no-wrap
12145 msgid ""
12146 " int\n"
12147 " guestfs_ping_daemon (guestfs_h *g);\n"
12148 "\n"
12149 msgstr ""
12150
12151 # type: textblock
12152 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3246
12153 msgid ""
12154 "This is a test probe into the guestfs daemon running inside the qemu "
12155 "subprocess.  Calling this function checks that the daemon responds to the "
12156 "ping message, without affecting the daemon or attached block device(s) in "
12157 "any other way."
12158 msgstr ""
12159
12160 # type: =head2
12161 #: ../src/guestfs-actions.pod:4833
12162 msgid "guestfs_pread"
12163 msgstr ""
12164
12165 # type: verbatim
12166 #: ../src/guestfs-actions.pod:4835
12167 #, no-wrap
12168 msgid ""
12169 " char *\n"
12170 " guestfs_pread (guestfs_h *g,\n"
12171 "                const char *path,\n"
12172 "                int count,\n"
12173 "                int64_t offset,\n"
12174 "                size_t *size_r);\n"
12175 "\n"
12176 msgstr ""
12177
12178 # type: textblock
12179 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3255
12180 msgid ""
12181 "This command lets you read part of a file.  It reads C<count> bytes of the "
12182 "file, starting at C<offset>, from file C<path>."
12183 msgstr ""
12184
12185 # type: textblock
12186 #: ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4871 ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12187 msgid ""
12188 "This may read fewer bytes than requested.  For further details see the "
12189 "L<pread(2)> system call."
12190 msgstr ""
12191
12192 # type: textblock
12193 #: ../src/guestfs-actions.pod:4848
12194 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12195 msgstr ""
12196
12197 # type: =head2
12198 #: ../src/guestfs-actions.pod:4859
12199 msgid "guestfs_pread_device"
12200 msgstr ""
12201
12202 # type: verbatim
12203 #: ../src/guestfs-actions.pod:4861
12204 #, no-wrap
12205 msgid ""
12206 " char *\n"
12207 " guestfs_pread_device (guestfs_h *g,\n"
12208 "                       const char *device,\n"
12209 "                       int count,\n"
12210 "                       int64_t offset,\n"
12211 "                       size_t *size_r);\n"
12212 "\n"
12213 msgstr ""
12214
12215 # type: textblock
12216 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3270
12217 msgid ""
12218 "This command lets you read part of a file.  It reads C<count> bytes of "
12219 "C<device>, starting at C<offset>."
12220 msgstr ""
12221
12222 # type: textblock
12223 #: ../src/guestfs-actions.pod:4874
12224 msgid "See also C<guestfs_pread>."
12225 msgstr ""
12226
12227 # type: textblock
12228 #: ../src/guestfs-actions.pod:4883
12229 msgid "(Added in 1.5.21)"
12230 msgstr ""
12231
12232 # type: =head2
12233 #: ../src/guestfs-actions.pod:4885
12234 msgid "guestfs_pvcreate"
12235 msgstr ""
12236
12237 # type: verbatim
12238 #: ../src/guestfs-actions.pod:4887
12239 #, no-wrap
12240 msgid ""
12241 " int\n"
12242 " guestfs_pvcreate (guestfs_h *g,\n"
12243 "                   const char *device);\n"
12244 "\n"
12245 msgstr ""
12246
12247 # type: textblock
12248 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3285
12249 msgid ""
12250 "This creates an LVM physical volume on the named C<device>, where C<device> "
12251 "should usually be a partition name such as C</dev/sda1>."
12252 msgstr ""
12253
12254 # type: =head2
12255 #: ../src/guestfs-actions.pod:4899
12256 msgid "guestfs_pvremove"
12257 msgstr ""
12258
12259 # type: verbatim
12260 #: ../src/guestfs-actions.pod:4901
12261 #, no-wrap
12262 msgid ""
12263 " int\n"
12264 " guestfs_pvremove (guestfs_h *g,\n"
12265 "                   const char *device);\n"
12266 "\n"
12267 msgstr ""
12268
12269 # type: textblock
12270 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3293
12271 msgid ""
12272 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12273 "it."
12274 msgstr ""
12275
12276 # type: textblock
12277 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3296
12278 msgid ""
12279 "The implementation uses the C<pvremove> command which refuses to wipe "
12280 "physical volumes that contain any volume groups, so you have to remove those "
12281 "first."
12282 msgstr ""
12283
12284 # type: =head2
12285 #: ../src/guestfs-actions.pod:4916
12286 msgid "guestfs_pvresize"
12287 msgstr ""
12288
12289 # type: verbatim
12290 #: ../src/guestfs-actions.pod:4918
12291 #, no-wrap
12292 msgid ""
12293 " int\n"
12294 " guestfs_pvresize (guestfs_h *g,\n"
12295 "                   const char *device);\n"
12296 "\n"
12297 msgstr ""
12298
12299 # type: textblock
12300 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3304
12301 msgid ""
12302 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12303 "the new size of the underlying device."
12304 msgstr ""
12305
12306 # type: =head2
12307 #: ../src/guestfs-actions.pod:4929
12308 msgid "guestfs_pvresize_size"
12309 msgstr ""
12310
12311 # type: verbatim
12312 #: ../src/guestfs-actions.pod:4931
12313 #, no-wrap
12314 msgid ""
12315 " int\n"
12316 " guestfs_pvresize_size (guestfs_h *g,\n"
12317 "                        const char *device,\n"
12318 "                        int64_t size);\n"
12319 "\n"
12320 msgstr ""
12321
12322 # type: textblock
12323 #: ../src/guestfs-actions.pod:4936
12324 msgid ""
12325 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12326 "specify the new size (in bytes) explicitly."
12327 msgstr ""
12328
12329 # type: =head2
12330 #: ../src/guestfs-actions.pod:4943
12331 msgid "guestfs_pvs"
12332 msgstr ""
12333
12334 # type: verbatim
12335 #: ../src/guestfs-actions.pod:4945
12336 #, no-wrap
12337 msgid ""
12338 " char **\n"
12339 " guestfs_pvs (guestfs_h *g);\n"
12340 "\n"
12341 msgstr ""
12342
12343 # type: textblock
12344 #: ../src/guestfs-actions.pod:4948 ../fish/guestfish-actions.pod:3318
12345 msgid ""
12346 "List all the physical volumes detected.  This is the equivalent of the "
12347 "L<pvs(8)> command."
12348 msgstr ""
12349
12350 # type: textblock
12351 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3321
12352 msgid ""
12353 "This returns a list of just the device names that contain PVs "
12354 "(eg. C</dev/sda2>)."
12355 msgstr ""
12356
12357 # type: textblock
12358 #: ../src/guestfs-actions.pod:4954
12359 msgid "See also C<guestfs_pvs_full>."
12360 msgstr ""
12361
12362 # type: =head2
12363 #: ../src/guestfs-actions.pod:4962
12364 msgid "guestfs_pvs_full"
12365 msgstr ""
12366
12367 # type: verbatim
12368 #: ../src/guestfs-actions.pod:4964
12369 #, no-wrap
12370 msgid ""
12371 " struct guestfs_lvm_pv_list *\n"
12372 " guestfs_pvs_full (guestfs_h *g);\n"
12373 "\n"
12374 msgstr ""
12375
12376 # type: textblock
12377 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3330
12378 msgid ""
12379 "List all the physical volumes detected.  This is the equivalent of the "
12380 "L<pvs(8)> command.  The \"full\" version includes all fields."
12381 msgstr ""
12382
12383 # type: textblock
12384 #: ../src/guestfs-actions.pod:4970
12385 msgid ""
12386 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12387 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
12388 "use>."
12389 msgstr ""
12390
12391 # type: =head2
12392 #: ../src/guestfs-actions.pod:4976
12393 msgid "guestfs_pvuuid"
12394 msgstr ""
12395
12396 # type: verbatim
12397 #: ../src/guestfs-actions.pod:4978
12398 #, no-wrap
12399 msgid ""
12400 " char *\n"
12401 " guestfs_pvuuid (guestfs_h *g,\n"
12402 "                 const char *device);\n"
12403 "\n"
12404 msgstr ""
12405
12406 # type: textblock
12407 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3337
12408 msgid "This command returns the UUID of the LVM PV C<device>."
12409 msgstr ""
12410
12411 # type: =head2
12412 #: ../src/guestfs-actions.pod:4989
12413 msgid "guestfs_pwrite"
12414 msgstr ""
12415
12416 # type: verbatim
12417 #: ../src/guestfs-actions.pod:4991
12418 #, no-wrap
12419 msgid ""
12420 " int\n"
12421 " guestfs_pwrite (guestfs_h *g,\n"
12422 "                 const char *path,\n"
12423 "                 const char *content,\n"
12424 "                 size_t content_size,\n"
12425 "                 int64_t offset);\n"
12426 "\n"
12427 msgstr ""
12428
12429 # type: textblock
12430 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3343
12431 msgid ""
12432 "This command writes to part of a file.  It writes the data buffer C<content> "
12433 "to the file C<path> starting at offset C<offset>."
12434 msgstr ""
12435
12436 # type: textblock
12437 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3346
12438 msgid ""
12439 "This command implements the L<pwrite(2)> system call, and like that system "
12440 "call it may not write the full data requested.  The return value is the "
12441 "number of bytes that were actually written to the file.  This could even be "
12442 "0, although short writes are unlikely for regular files in ordinary "
12443 "circumstances."
12444 msgstr ""
12445
12446 # type: textblock
12447 #: ../src/guestfs-actions.pod:5007
12448 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12449 msgstr ""
12450
12451 # type: =head2
12452 #: ../src/guestfs-actions.pod:5016
12453 msgid "guestfs_pwrite_device"
12454 msgstr ""
12455
12456 # type: verbatim
12457 #: ../src/guestfs-actions.pod:5018
12458 #, no-wrap
12459 msgid ""
12460 " int\n"
12461 " guestfs_pwrite_device (guestfs_h *g,\n"
12462 "                        const char *device,\n"
12463 "                        const char *content,\n"
12464 "                        size_t content_size,\n"
12465 "                        int64_t offset);\n"
12466 "\n"
12467 msgstr ""
12468
12469 # type: textblock
12470 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3361
12471 msgid ""
12472 "This command writes to part of a device.  It writes the data buffer "
12473 "C<content> to C<device> starting at offset C<offset>."
12474 msgstr ""
12475
12476 # type: textblock
12477 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3364
12478 msgid ""
12479 "This command implements the L<pwrite(2)> system call, and like that system "
12480 "call it may not write the full data requested (although short writes to disk "
12481 "devices and partitions are probably impossible with standard Linux kernels)."
12482 msgstr ""
12483
12484 # type: textblock
12485 #: ../src/guestfs-actions.pod:5033
12486 msgid "See also C<guestfs_pwrite>."
12487 msgstr ""
12488
12489 # type: textblock
12490 #: ../src/guestfs-actions.pod:5040
12491 msgid "(Added in 1.5.20)"
12492 msgstr ""
12493
12494 # type: =head2
12495 #: ../src/guestfs-actions.pod:5042
12496 msgid "guestfs_read_file"
12497 msgstr ""
12498
12499 # type: verbatim
12500 #: ../src/guestfs-actions.pod:5044
12501 #, no-wrap
12502 msgid ""
12503 " char *\n"
12504 " guestfs_read_file (guestfs_h *g,\n"
12505 "                    const char *path,\n"
12506 "                    size_t *size_r);\n"
12507 "\n"
12508 msgstr ""
12509
12510 # type: textblock
12511 #: ../src/guestfs-actions.pod:5049 ../fish/guestfish-actions.pod:3378
12512 msgid "This calls returns the contents of the file C<path> as a buffer."
12513 msgstr ""
12514
12515 # type: textblock
12516 #: ../src/guestfs-actions.pod:5052
12517 msgid ""
12518 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12519 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12520 "function is limited in the total size of file that can be handled."
12521 msgstr ""
12522
12523 # type: textblock
12524 #: ../src/guestfs-actions.pod:5064
12525 msgid "(Added in 1.0.63)"
12526 msgstr ""
12527
12528 # type: =head2
12529 #: ../src/guestfs-actions.pod:5066
12530 msgid "guestfs_read_lines"
12531 msgstr ""
12532
12533 # type: verbatim
12534 #: ../src/guestfs-actions.pod:5068
12535 #, no-wrap
12536 msgid ""
12537 " char **\n"
12538 " guestfs_read_lines (guestfs_h *g,\n"
12539 "                     const char *path);\n"
12540 "\n"
12541 msgstr ""
12542
12543 # type: textblock
12544 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3395
12545 msgid ""
12546 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12547 "C<CRLF> character sequences are I<not> returned."
12548 msgstr ""
12549
12550 # type: textblock
12551 #: ../src/guestfs-actions.pod:5077
12552 msgid ""
12553 "Note that this function cannot correctly handle binary files (specifically, "
12554 "files containing C<\\0> character which is treated as end of line).  For "
12555 "those you need to use the C<guestfs_read_file> function which has a more "
12556 "complex interface."
12557 msgstr ""
12558
12559 # type: =head2
12560 #: ../src/guestfs-actions.pod:5088
12561 msgid "guestfs_readdir"
12562 msgstr ""
12563
12564 # type: verbatim
12565 #: ../src/guestfs-actions.pod:5090
12566 #, no-wrap
12567 msgid ""
12568 " struct guestfs_dirent_list *\n"
12569 " guestfs_readdir (guestfs_h *g,\n"
12570 "                  const char *dir);\n"
12571 "\n"
12572 msgstr ""
12573
12574 # type: textblock
12575 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3407
12576 msgid "This returns the list of directory entries in directory C<dir>."
12577 msgstr ""
12578
12579 # type: textblock
12580 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3409
12581 msgid ""
12582 "All entries in the directory are returned, including C<.> and C<..>.  The "
12583 "entries are I<not> sorted, but returned in the same order as the underlying "
12584 "filesystem."
12585 msgstr ""
12586
12587 # type: textblock
12588 #: ../src/guestfs-actions.pod:5100 ../fish/guestfish-actions.pod:3413
12589 msgid ""
12590 "Also this call returns basic file type information about each file.  The "
12591 "C<ftyp> field will contain one of the following characters:"
12592 msgstr ""
12593
12594 # type: =item
12595 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3418
12596 msgid "'b'"
12597 msgstr ""
12598
12599 # type: textblock
12600 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3420
12601 msgid "Block special"
12602 msgstr ""
12603
12604 # type: =item
12605 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3422
12606 msgid "'c'"
12607 msgstr ""
12608
12609 # type: textblock
12610 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3424
12611 msgid "Char special"
12612 msgstr ""
12613
12614 # type: =item
12615 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3426
12616 msgid "'d'"
12617 msgstr ""
12618
12619 # type: textblock
12620 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3428
12621 msgid "Directory"
12622 msgstr ""
12623
12624 # type: =item
12625 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3430
12626 msgid "'f'"
12627 msgstr ""
12628
12629 # type: textblock
12630 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3432
12631 msgid "FIFO (named pipe)"
12632 msgstr ""
12633
12634 # type: =item
12635 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3434
12636 msgid "'l'"
12637 msgstr ""
12638
12639 # type: textblock
12640 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3436
12641 msgid "Symbolic link"
12642 msgstr ""
12643
12644 # type: =item
12645 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3438
12646 msgid "'r'"
12647 msgstr ""
12648
12649 # type: textblock
12650 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3440
12651 msgid "Regular file"
12652 msgstr ""
12653
12654 # type: =item
12655 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3442
12656 msgid "'s'"
12657 msgstr ""
12658
12659 # type: textblock
12660 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3444
12661 msgid "Socket"
12662 msgstr ""
12663
12664 # type: =item
12665 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3446
12666 msgid "'u'"
12667 msgstr ""
12668
12669 # type: textblock
12670 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3448
12671 msgid "Unknown file type"
12672 msgstr ""
12673
12674 # type: =item
12675 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3450
12676 msgid "'?'"
12677 msgstr ""
12678
12679 # type: textblock
12680 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3452
12681 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12682 msgstr ""
12683
12684 # type: textblock
12685 #: ../src/guestfs-actions.pod:5144
12686 msgid ""
12687 "This function is primarily intended for use by programs.  To get a simple "
12688 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12689 "consumption, use C<guestfs_ll>."
12690 msgstr ""
12691
12692 # type: textblock
12693 #: ../src/guestfs-actions.pod:5148
12694 msgid ""
12695 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12696 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
12697 "use>."
12698 msgstr ""
12699
12700 # type: =head2
12701 #: ../src/guestfs-actions.pod:5154
12702 msgid "guestfs_readlink"
12703 msgstr ""
12704
12705 # type: verbatim
12706 #: ../src/guestfs-actions.pod:5156
12707 #, no-wrap
12708 msgid ""
12709 " char *\n"
12710 " guestfs_readlink (guestfs_h *g,\n"
12711 "                   const char *path);\n"
12712 "\n"
12713 msgstr ""
12714
12715 # type: textblock
12716 #: ../src/guestfs-actions.pod:5160 ../fish/guestfish-actions.pod:3465
12717 msgid "This command reads the target of a symbolic link."
12718 msgstr ""
12719
12720 # type: =head2
12721 #: ../src/guestfs-actions.pod:5167
12722 msgid "guestfs_readlinklist"
12723 msgstr ""
12724
12725 # type: verbatim
12726 #: ../src/guestfs-actions.pod:5169
12727 #, no-wrap
12728 msgid ""
12729 " char **\n"
12730 " guestfs_readlinklist (guestfs_h *g,\n"
12731 "                       const char *path,\n"
12732 "                       char *const *names);\n"
12733 "\n"
12734 msgstr ""
12735
12736 # type: textblock
12737 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3471
12738 msgid ""
12739 "This call allows you to do a C<readlink> operation on multiple files, where "
12740 "all files are in the directory C<path>.  C<names> is the list of files from "
12741 "this directory."
12742 msgstr ""
12743
12744 # type: textblock
12745 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3475
12746 msgid ""
12747 "On return you get a list of strings, with a one-to-one correspondence to the "
12748 "C<names> list.  Each string is the value of the symbolic link."
12749 msgstr ""
12750
12751 # type: textblock
12752 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3479
12753 msgid ""
12754 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12755 "result string is the empty string C<\"\">.  However the whole operation is "
12756 "completed even if there were C<readlink(2)> errors, and so you can call this "
12757 "function with names where you don't know if they are symbolic links already "
12758 "(albeit slightly less efficient)."
12759 msgstr ""
12760
12761 # type: textblock
12762 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3486
12763 msgid ""
12764 "This call is intended for programs that want to efficiently list a directory "
12765 "contents without making many round-trips.  Very long directory listings "
12766 "might cause the protocol message size to be exceeded, causing this call to "
12767 "fail.  The caller must split up such requests into smaller groups of names."
12768 msgstr ""
12769
12770 # type: =head2
12771 #: ../src/guestfs-actions.pod:5202
12772 msgid "guestfs_realpath"
12773 msgstr ""
12774
12775 # type: verbatim
12776 #: ../src/guestfs-actions.pod:5204
12777 #, no-wrap
12778 msgid ""
12779 " char *\n"
12780 " guestfs_realpath (guestfs_h *g,\n"
12781 "                   const char *path);\n"
12782 "\n"
12783 msgstr ""
12784
12785 # type: textblock
12786 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3497
12787 msgid ""
12788 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12789 "has no C<.>, C<..> or symbolic link path elements."
12790 msgstr ""
12791
12792 # type: =head2
12793 #: ../src/guestfs-actions.pod:5216
12794 msgid "guestfs_removexattr"
12795 msgstr ""
12796
12797 # type: verbatim
12798 #: ../src/guestfs-actions.pod:5218
12799 #, no-wrap
12800 msgid ""
12801 " int\n"
12802 " guestfs_removexattr (guestfs_h *g,\n"
12803 "                      const char *xattr,\n"
12804 "                      const char *path);\n"
12805 "\n"
12806 msgstr ""
12807
12808 # type: textblock
12809 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3504
12810 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12811 msgstr ""
12812
12813 # type: textblock
12814 #: ../src/guestfs-actions.pod:5226
12815 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12816 msgstr ""
12817
12818 # type: =head2
12819 #: ../src/guestfs-actions.pod:5232
12820 msgid "guestfs_resize2fs"
12821 msgstr ""
12822
12823 # type: verbatim
12824 #: ../src/guestfs-actions.pod:5234
12825 #, no-wrap
12826 msgid ""
12827 " int\n"
12828 " guestfs_resize2fs (guestfs_h *g,\n"
12829 "                    const char *device);\n"
12830 "\n"
12831 msgstr ""
12832
12833 # type: textblock
12834 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3513
12835 msgid ""
12836 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12837 "underlying device."
12838 msgstr ""
12839
12840 # type: textblock
12841 #: ../src/guestfs-actions.pod:5241
12842 msgid ""
12843 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12844 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12845 "sometimes gives an error about this and sometimes not.  In any case, it is "
12846 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12847 msgstr ""
12848
12849 # type: =head2
12850 #: ../src/guestfs-actions.pod:5251
12851 msgid "guestfs_resize2fs_size"
12852 msgstr ""
12853
12854 # type: verbatim
12855 #: ../src/guestfs-actions.pod:5253
12856 #, no-wrap
12857 msgid ""
12858 " int\n"
12859 " guestfs_resize2fs_size (guestfs_h *g,\n"
12860 "                         const char *device,\n"
12861 "                         int64_t size);\n"
12862 "\n"
12863 msgstr ""
12864
12865 # type: textblock
12866 #: ../src/guestfs-actions.pod:5258
12867 msgid ""
12868 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12869 "to specify the new size (in bytes) explicitly."
12870 msgstr ""
12871
12872 # type: =head2
12873 #: ../src/guestfs-actions.pod:5265
12874 msgid "guestfs_rm"
12875 msgstr ""
12876
12877 # type: verbatim
12878 #: ../src/guestfs-actions.pod:5267
12879 #, no-wrap
12880 msgid ""
12881 " int\n"
12882 " guestfs_rm (guestfs_h *g,\n"
12883 "             const char *path);\n"
12884 "\n"
12885 msgstr ""
12886
12887 # type: textblock
12888 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3533
12889 msgid "Remove the single file C<path>."
12890 msgstr ""
12891
12892 # type: =head2
12893 #: ../src/guestfs-actions.pod:5277
12894 msgid "guestfs_rm_rf"
12895 msgstr ""
12896
12897 # type: verbatim
12898 #: ../src/guestfs-actions.pod:5279
12899 #, no-wrap
12900 msgid ""
12901 " int\n"
12902 " guestfs_rm_rf (guestfs_h *g,\n"
12903 "                const char *path);\n"
12904 "\n"
12905 msgstr ""
12906
12907 # type: textblock
12908 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3539
12909 msgid ""
12910 "Remove the file or directory C<path>, recursively removing the contents if "
12911 "its a directory.  This is like the C<rm -rf> shell command."
12912 msgstr ""
12913
12914 # type: =head2
12915 #: ../src/guestfs-actions.pod:5291
12916 msgid "guestfs_rmdir"
12917 msgstr ""
12918
12919 # type: verbatim
12920 #: ../src/guestfs-actions.pod:5293
12921 #, no-wrap
12922 msgid ""
12923 " int\n"
12924 " guestfs_rmdir (guestfs_h *g,\n"
12925 "                const char *path);\n"
12926 "\n"
12927 msgstr ""
12928
12929 # type: textblock
12930 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3547
12931 msgid "Remove the single directory C<path>."
12932 msgstr ""
12933
12934 # type: =head2
12935 #: ../src/guestfs-actions.pod:5303
12936 msgid "guestfs_rmmountpoint"
12937 msgstr ""
12938
12939 # type: verbatim
12940 #: ../src/guestfs-actions.pod:5305
12941 #, no-wrap
12942 msgid ""
12943 " int\n"
12944 " guestfs_rmmountpoint (guestfs_h *g,\n"
12945 "                       const char *exemptpath);\n"
12946 "\n"
12947 msgstr ""
12948
12949 # type: textblock
12950 #: ../src/guestfs-actions.pod:5309
12951 msgid ""
12952 "This calls removes a mountpoint that was previously created with "
12953 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12954 msgstr ""
12955
12956 # type: =head2
12957 #: ../src/guestfs-actions.pod:5317
12958 msgid "guestfs_scrub_device"
12959 msgstr ""
12960
12961 # type: verbatim
12962 #: ../src/guestfs-actions.pod:5319
12963 #, no-wrap
12964 msgid ""
12965 " int\n"
12966 " guestfs_scrub_device (guestfs_h *g,\n"
12967 "                       const char *device);\n"
12968 "\n"
12969 msgstr ""
12970
12971 # type: textblock
12972 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3561
12973 msgid ""
12974 "This command writes patterns over C<device> to make data retrieval more "
12975 "difficult."
12976 msgstr ""
12977
12978 # type: textblock
12979 #: ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5347 ../src/guestfs-actions.pod:5366 ../fish/guestfish-actions.pod:3564 ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3592
12980 msgid ""
12981 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12982 "more details."
12983 msgstr ""
12984
12985 # type: textblock
12986 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5352 ../src/guestfs-actions.pod:5371
12987 msgid "(Added in 1.0.52)"
12988 msgstr ""
12989
12990 # type: =head2
12991 #: ../src/guestfs-actions.pod:5336
12992 msgid "guestfs_scrub_file"
12993 msgstr ""
12994
12995 # type: verbatim
12996 #: ../src/guestfs-actions.pod:5338
12997 #, no-wrap
12998 msgid ""
12999 " int\n"
13000 " guestfs_scrub_file (guestfs_h *g,\n"
13001 "                     const char *file);\n"
13002 "\n"
13003 msgstr ""
13004
13005 # type: textblock
13006 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3574
13007 msgid ""
13008 "This command writes patterns over a file to make data retrieval more "
13009 "difficult."
13010 msgstr ""
13011
13012 # type: textblock
13013 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3577
13014 msgid "The file is I<removed> after scrubbing."
13015 msgstr ""
13016
13017 # type: =head2
13018 #: ../src/guestfs-actions.pod:5354
13019 msgid "guestfs_scrub_freespace"
13020 msgstr ""
13021
13022 # type: verbatim
13023 #: ../src/guestfs-actions.pod:5356
13024 #, no-wrap
13025 msgid ""
13026 " int\n"
13027 " guestfs_scrub_freespace (guestfs_h *g,\n"
13028 "                          const char *dir);\n"
13029 "\n"
13030 msgstr ""
13031
13032 # type: textblock
13033 #: ../src/guestfs-actions.pod:5360
13034 msgid ""
13035 "This command creates the directory C<dir> and then fills it with files until "
13036 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13037 "and deletes them.  The intention is to scrub any free space on the partition "
13038 "containing C<dir>."
13039 msgstr ""
13040
13041 # type: =head2
13042 #: ../src/guestfs-actions.pod:5373
13043 msgid "guestfs_set_append"
13044 msgstr ""
13045
13046 # type: verbatim
13047 #: ../src/guestfs-actions.pod:5375
13048 #, no-wrap
13049 msgid ""
13050 " int\n"
13051 " guestfs_set_append (guestfs_h *g,\n"
13052 "                     const char *append);\n"
13053 "\n"
13054 msgstr ""
13055
13056 # type: textblock
13057 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3601
13058 msgid ""
13059 "This function is used to add additional options to the guest kernel command "
13060 "line."
13061 msgstr ""
13062
13063 # type: textblock
13064 #: ../src/guestfs-actions.pod:5382 ../fish/guestfish-actions.pod:3604
13065 msgid ""
13066 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13067 "environment variable."
13068 msgstr ""
13069
13070 # type: textblock
13071 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3607
13072 msgid ""
13073 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13074 "(libguestfs always adds a few of its own)."
13075 msgstr ""
13076
13077 # type: =head2
13078 #: ../src/guestfs-actions.pod:5392
13079 msgid "guestfs_set_autosync"
13080 msgstr ""
13081
13082 # type: verbatim
13083 #: ../src/guestfs-actions.pod:5394
13084 #, no-wrap
13085 msgid ""
13086 " int\n"
13087 " guestfs_set_autosync (guestfs_h *g,\n"
13088 "                       int autosync);\n"
13089 "\n"
13090 msgstr ""
13091
13092 # type: textblock
13093 #: ../src/guestfs-actions.pod:5398
13094 msgid ""
13095 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13096 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13097 "the handle is closed (also if the program exits without closing handles)."
13098 msgstr ""
13099
13100 # type: textblock
13101 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:3621
13102 msgid ""
13103 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13104 "disabled by default)."
13105 msgstr ""
13106
13107 # type: =head2
13108 #: ../src/guestfs-actions.pod:5410
13109 msgid "guestfs_set_direct"
13110 msgstr ""
13111
13112 # type: verbatim
13113 #: ../src/guestfs-actions.pod:5412
13114 #, no-wrap
13115 msgid ""
13116 " int\n"
13117 " guestfs_set_direct (guestfs_h *g,\n"
13118 "                     int direct);\n"
13119 "\n"
13120 msgstr ""
13121
13122 # type: textblock
13123 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3630
13124 msgid ""
13125 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13126 "passed directly through to the appliance once it is launched."
13127 msgstr ""
13128
13129 # type: textblock
13130 #: ../src/guestfs-actions.pod:5420
13131 msgid ""
13132 "One consequence of this is that log messages aren't caught by the library "
13133 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13134 "stdout."
13135 msgstr ""
13136
13137 # type: textblock
13138 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3638
13139 msgid "You probably don't want to use this unless you know what you are doing."
13140 msgstr ""
13141
13142 # type: textblock
13143 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:3641
13144 msgid "The default is disabled."
13145 msgstr ""
13146
13147 # type: =head2
13148 #: ../src/guestfs-actions.pod:5433
13149 msgid "guestfs_set_e2label"
13150 msgstr ""
13151
13152 # type: verbatim
13153 #: ../src/guestfs-actions.pod:5435
13154 #, no-wrap
13155 msgid ""
13156 " int\n"
13157 " guestfs_set_e2label (guestfs_h *g,\n"
13158 "                      const char *device,\n"
13159 "                      const char *label);\n"
13160 "\n"
13161 msgstr ""
13162
13163 # type: textblock
13164 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3647
13165 msgid ""
13166 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13167 "C<label>.  Filesystem labels are limited to 16 characters."
13168 msgstr ""
13169
13170 # type: textblock
13171 #: ../src/guestfs-actions.pod:5444
13172 msgid ""
13173 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13174 "the existing label on a filesystem."
13175 msgstr ""
13176
13177 # type: =head2
13178 #: ../src/guestfs-actions.pod:5451
13179 msgid "guestfs_set_e2uuid"
13180 msgstr ""
13181
13182 # type: verbatim
13183 #: ../src/guestfs-actions.pod:5453
13184 #, no-wrap
13185 msgid ""
13186 " int\n"
13187 " guestfs_set_e2uuid (guestfs_h *g,\n"
13188 "                     const char *device,\n"
13189 "                     const char *uuid);\n"
13190 "\n"
13191 msgstr ""
13192
13193 # type: textblock
13194 #: ../src/guestfs-actions.pod:5458 ../fish/guestfish-actions.pod:3658
13195 msgid ""
13196 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13197 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13198 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13199 msgstr ""
13200
13201 # type: textblock
13202 #: ../src/guestfs-actions.pod:5463
13203 msgid ""
13204 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13205 "the existing UUID of a filesystem."
13206 msgstr ""
13207
13208 # type: =head2
13209 #: ../src/guestfs-actions.pod:5470
13210 msgid "guestfs_set_memsize"
13211 msgstr ""
13212
13213 # type: verbatim
13214 #: ../src/guestfs-actions.pod:5472
13215 #, no-wrap
13216 msgid ""
13217 " int\n"
13218 " guestfs_set_memsize (guestfs_h *g,\n"
13219 "                      int memsize);\n"
13220 "\n"
13221 msgstr ""
13222
13223 # type: textblock
13224 #: ../src/guestfs-actions.pod:5476
13225 msgid ""
13226 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13227 "This only has any effect if called before C<guestfs_launch>."
13228 msgstr ""
13229
13230 # type: textblock
13231 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3676
13232 msgid ""
13233 "You can also change this by setting the environment variable "
13234 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13235 msgstr ""
13236
13237 # type: =head2
13238 #: ../src/guestfs-actions.pod:5491
13239 msgid "guestfs_set_network"
13240 msgstr ""
13241
13242 # type: verbatim
13243 #: ../src/guestfs-actions.pod:5493
13244 #, no-wrap
13245 msgid ""
13246 " int\n"
13247 " guestfs_set_network (guestfs_h *g,\n"
13248 "                      int network);\n"
13249 "\n"
13250 msgstr ""
13251
13252 # type: textblock
13253 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3689
13254 msgid ""
13255 "If C<network> is true, then the network is enabled in the libguestfs "
13256 "appliance.  The default is false."
13257 msgstr ""
13258
13259 # type: textblock
13260 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3692
13261 msgid ""
13262 "This affects whether commands are able to access the network (see "
13263 "L<guestfs(3)/RUNNING COMMANDS>)."
13264 msgstr ""
13265
13266 # type: textblock
13267 #: ../src/guestfs-actions.pod:5503
13268 msgid ""
13269 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13270 "effect."
13271 msgstr ""
13272
13273 # type: =head2
13274 #: ../src/guestfs-actions.pod:5510
13275 msgid "guestfs_set_path"
13276 msgstr ""
13277
13278 # type: verbatim
13279 #: ../src/guestfs-actions.pod:5512
13280 #, no-wrap
13281 msgid ""
13282 " int\n"
13283 " guestfs_set_path (guestfs_h *g,\n"
13284 "                   const char *searchpath);\n"
13285 "\n"
13286 msgstr ""
13287
13288 # type: textblock
13289 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3704
13290 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13291 msgstr ""
13292
13293 # type: textblock
13294 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3706
13295 msgid ""
13296 "The default is C<$libdir/guestfs> unless overridden by setting "
13297 "C<LIBGUESTFS_PATH> environment variable."
13298 msgstr ""
13299
13300 # type: textblock
13301 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3709
13302 msgid "Setting C<path> to C<NULL> restores the default path."
13303 msgstr ""
13304
13305 # type: =head2
13306 #: ../src/guestfs-actions.pod:5527
13307 msgid "guestfs_set_qemu"
13308 msgstr ""
13309
13310 # type: verbatim
13311 #: ../src/guestfs-actions.pod:5529
13312 #, no-wrap
13313 msgid ""
13314 " int\n"
13315 " guestfs_set_qemu (guestfs_h *g,\n"
13316 "                   const char *qemu);\n"
13317 "\n"
13318 msgstr ""
13319
13320 # type: textblock
13321 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3717
13322 msgid "Set the qemu binary that we will use."
13323 msgstr ""
13324
13325 # type: textblock
13326 #: ../src/guestfs-actions.pod:5535 ../fish/guestfish-actions.pod:3719
13327 msgid "The default is chosen when the library was compiled by the configure script."
13328 msgstr ""
13329
13330 # type: textblock
13331 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:3722
13332 msgid ""
13333 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13334 "variable."
13335 msgstr ""
13336
13337 # type: textblock
13338 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:3725
13339 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13340 msgstr ""
13341
13342 # type: textblock
13343 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3727
13344 msgid ""
13345 "Note that you should call this function as early as possible after creating "
13346 "the handle.  This is because some pre-launch operations depend on testing "
13347 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13348 "don't retest features, and so you might see inconsistent results.  Using the "
13349 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13350 "the qemu binary at the same time as the handle is created."
13351 msgstr ""
13352
13353 # type: =head2
13354 #: ../src/guestfs-actions.pod:5555
13355 msgid "guestfs_set_recovery_proc"
13356 msgstr ""
13357
13358 # type: verbatim
13359 #: ../src/guestfs-actions.pod:5557
13360 #, no-wrap
13361 msgid ""
13362 " int\n"
13363 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13364 "                            int recoveryproc);\n"
13365 "\n"
13366 msgstr ""
13367
13368 # type: textblock
13369 #: ../src/guestfs-actions.pod:5561
13370 msgid ""
13371 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13372 "not create a recovery process.  The purpose of the recovery process is to "
13373 "stop runaway qemu processes in the case where the main program aborts "
13374 "abruptly."
13375 msgstr ""
13376
13377 # type: textblock
13378 #: ../src/guestfs-actions.pod:5566
13379 msgid ""
13380 "This only has any effect if called before C<guestfs_launch>, and the default "
13381 "is true."
13382 msgstr ""
13383
13384 # type: textblock
13385 #: ../src/guestfs-actions.pod:5569 ../fish/guestfish-actions.pod:3749
13386 msgid ""
13387 "About the only time when you would want to disable this is if the main "
13388 "process will fork itself into the background (\"daemonize\" itself).  In "
13389 "this case the recovery process thinks that the main program has disappeared "
13390 "and so kills qemu, which is not very helpful."
13391 msgstr ""
13392
13393 # type: =head2
13394 #: ../src/guestfs-actions.pod:5579
13395 msgid "guestfs_set_selinux"
13396 msgstr ""
13397
13398 # type: verbatim
13399 #: ../src/guestfs-actions.pod:5581
13400 #, no-wrap
13401 msgid ""
13402 " int\n"
13403 " guestfs_set_selinux (guestfs_h *g,\n"
13404 "                      int selinux);\n"
13405 "\n"
13406 msgstr ""
13407
13408 # type: textblock
13409 #: ../src/guestfs-actions.pod:5585 ../fish/guestfish-actions.pod:3761
13410 msgid ""
13411 "This sets the selinux flag that is passed to the appliance at boot time.  "
13412 "The default is C<selinux=0> (disabled)."
13413 msgstr ""
13414
13415 # type: textblock
13416 #: ../src/guestfs-actions.pod:5588 ../fish/guestfish-actions.pod:3764
13417 msgid ""
13418 "Note that if SELinux is enabled, it is always in Permissive mode "
13419 "(C<enforcing=0>)."
13420 msgstr ""
13421
13422 # type: =head2
13423 #: ../src/guestfs-actions.pod:5598
13424 msgid "guestfs_set_trace"
13425 msgstr ""
13426
13427 # type: verbatim
13428 #: ../src/guestfs-actions.pod:5600
13429 #, no-wrap
13430 msgid ""
13431 " int\n"
13432 " guestfs_set_trace (guestfs_h *g,\n"
13433 "                    int trace);\n"
13434 "\n"
13435 msgstr ""
13436
13437 # type: textblock
13438 #: ../src/guestfs-actions.pod:5604 ../fish/guestfish-actions.pod:3776
13439 msgid ""
13440 "If the command trace flag is set to 1, then commands are printed on stderr "
13441 "before they are executed in a format which is very similar to the one used "
13442 "by guestfish.  In other words, you can run a program with this enabled, and "
13443 "you will get out a script which you can feed to guestfish to perform the "
13444 "same set of actions."
13445 msgstr ""
13446
13447 # type: textblock
13448 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3783
13449 msgid ""
13450 "If you want to trace C API calls into libguestfs (and other libraries) then "
13451 "possibly a better way is to use the external ltrace(1) command."
13452 msgstr ""
13453
13454 # type: textblock
13455 #: ../src/guestfs-actions.pod:5615 ../fish/guestfish-actions.pod:3787
13456 msgid ""
13457 "Command traces are disabled unless the environment variable "
13458 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13459 msgstr ""
13460
13461 # type: =head2
13462 #: ../src/guestfs-actions.pod:5622
13463 msgid "guestfs_set_verbose"
13464 msgstr ""
13465
13466 # type: verbatim
13467 #: ../src/guestfs-actions.pod:5624
13468 #, no-wrap
13469 msgid ""
13470 " int\n"
13471 " guestfs_set_verbose (guestfs_h *g,\n"
13472 "                      int verbose);\n"
13473 "\n"
13474 msgstr ""
13475
13476 # type: textblock
13477 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:3796
13478 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13479 msgstr ""
13480
13481 # type: textblock
13482 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3798
13483 msgid ""
13484 "Verbose messages are disabled unless the environment variable "
13485 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13486 msgstr ""
13487
13488 # type: =head2
13489 #: ../src/guestfs-actions.pod:5637
13490 msgid "guestfs_setcon"
13491 msgstr ""
13492
13493 # type: verbatim
13494 #: ../src/guestfs-actions.pod:5639
13495 #, no-wrap
13496 msgid ""
13497 " int\n"
13498 " guestfs_setcon (guestfs_h *g,\n"
13499 "                 const char *context);\n"
13500 "\n"
13501 msgstr ""
13502
13503 # type: textblock
13504 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3805
13505 msgid ""
13506 "This sets the SELinux security context of the daemon to the string "
13507 "C<context>."
13508 msgstr ""
13509
13510 # type: textblock
13511 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3808
13512 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13513 msgstr ""
13514
13515 # type: =head2
13516 #: ../src/guestfs-actions.pod:5652
13517 msgid "guestfs_setxattr"
13518 msgstr ""
13519
13520 # type: verbatim
13521 #: ../src/guestfs-actions.pod:5654
13522 #, no-wrap
13523 msgid ""
13524 " int\n"
13525 " guestfs_setxattr (guestfs_h *g,\n"
13526 "                   const char *xattr,\n"
13527 "                   const char *val,\n"
13528 "                   int vallen,\n"
13529 "                   const char *path);\n"
13530 "\n"
13531 msgstr ""
13532
13533 # type: textblock
13534 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:3814
13535 msgid ""
13536 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13537 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13538 msgstr ""
13539
13540 # type: textblock
13541 #: ../src/guestfs-actions.pod:5665
13542 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13543 msgstr ""
13544
13545 # type: =head2
13546 #: ../src/guestfs-actions.pod:5671
13547 msgid "guestfs_sfdisk"
13548 msgstr ""
13549
13550 # type: verbatim
13551 #: ../src/guestfs-actions.pod:5673
13552 #, no-wrap
13553 msgid ""
13554 " int\n"
13555 " guestfs_sfdisk (guestfs_h *g,\n"
13556 "                 const char *device,\n"
13557 "                 int cyls,\n"
13558 "                 int heads,\n"
13559 "                 int sectors,\n"
13560 "                 char *const *lines);\n"
13561 "\n"
13562 msgstr ""
13563
13564 # type: textblock
13565 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3824
13566 msgid ""
13567 "This is a direct interface to the L<sfdisk(8)> program for creating "
13568 "partitions on block devices."
13569 msgstr ""
13570
13571 # type: textblock
13572 #: ../src/guestfs-actions.pod:5684 ../fish/guestfish-actions.pod:3827
13573 msgid "C<device> should be a block device, for example C</dev/sda>."
13574 msgstr ""
13575
13576 # type: textblock
13577 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3829
13578 msgid ""
13579 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13580 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13581 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13582 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13583 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13584 "the kernel) cannot work out the right geometry and you will need to tell it."
13585 msgstr ""
13586
13587 # type: textblock
13588 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3837
13589 msgid ""
13590 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13591 "refer to the L<sfdisk(8)> manpage."
13592 msgstr ""
13593
13594 # type: textblock
13595 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:3840
13596 msgid ""
13597 "To create a single partition occupying the whole disk, you would pass "
13598 "C<lines> as a single element list, when the single element being the string "
13599 "C<,> (comma)."
13600 msgstr ""
13601
13602 # type: textblock
13603 #: ../src/guestfs-actions.pod:5701
13604 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13605 msgstr ""
13606
13607 # type: =head2
13608 #: ../src/guestfs-actions.pod:5711
13609 msgid "guestfs_sfdiskM"
13610 msgstr ""
13611
13612 # type: verbatim
13613 #: ../src/guestfs-actions.pod:5713
13614 #, no-wrap
13615 msgid ""
13616 " int\n"
13617 " guestfs_sfdiskM (guestfs_h *g,\n"
13618 "                  const char *device,\n"
13619 "                  char *const *lines);\n"
13620 "\n"
13621 msgstr ""
13622
13623 # type: textblock
13624 #: ../src/guestfs-actions.pod:5718
13625 msgid ""
13626 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13627 "partition sizes are specified in megabytes only (rounded to the nearest "
13628 "cylinder) and you don't need to specify the cyls, heads and sectors "
13629 "parameters which were rarely if ever used anyway."
13630 msgstr ""
13631
13632 # type: textblock
13633 #: ../src/guestfs-actions.pod:5724
13634 msgid ""
13635 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13636 "C<guestfs_part_disk>"
13637 msgstr ""
13638
13639 # type: =head2
13640 #: ../src/guestfs-actions.pod:5734
13641 msgid "guestfs_sfdisk_N"
13642 msgstr ""
13643
13644 # type: verbatim
13645 #: ../src/guestfs-actions.pod:5736
13646 #, no-wrap
13647 msgid ""
13648 " int\n"
13649 " guestfs_sfdisk_N (guestfs_h *g,\n"
13650 "                   const char *device,\n"
13651 "                   int partnum,\n"
13652 "                   int cyls,\n"
13653 "                   int heads,\n"
13654 "                   int sectors,\n"
13655 "                   const char *line);\n"
13656 "\n"
13657 msgstr ""
13658
13659 # type: textblock
13660 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3870
13661 msgid ""
13662 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13663 "(note: C<n> counts from 1)."
13664 msgstr ""
13665
13666 # type: textblock
13667 #: ../src/guestfs-actions.pod:5748
13668 msgid ""
13669 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13670 "for the cyls/heads/sectors parameters."
13671 msgstr ""
13672
13673 # type: textblock
13674 #: ../src/guestfs-actions.pod:5751
13675 msgid "See also: C<guestfs_part_add>"
13676 msgstr ""
13677
13678 # type: =head2
13679 #: ../src/guestfs-actions.pod:5760
13680 msgid "guestfs_sfdisk_disk_geometry"
13681 msgstr ""
13682
13683 # type: verbatim
13684 #: ../src/guestfs-actions.pod:5762
13685 #, no-wrap
13686 msgid ""
13687 " char *\n"
13688 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13689 "                               const char *device);\n"
13690 "\n"
13691 msgstr ""
13692
13693 # type: textblock
13694 #: ../src/guestfs-actions.pod:5766
13695 msgid ""
13696 "This displays the disk geometry of C<device> read from the partition table.  "
13697 "Especially in the case where the underlying block device has been resized, "
13698 "this can be different from the kernel's idea of the geometry (see "
13699 "C<guestfs_sfdisk_kernel_geometry>)."
13700 msgstr ""
13701
13702 # type: textblock
13703 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5787 ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
13704 msgid "The result is in human-readable format, and not designed to be parsed."
13705 msgstr ""
13706
13707 # type: =head2
13708 #: ../src/guestfs-actions.pod:5779
13709 msgid "guestfs_sfdisk_kernel_geometry"
13710 msgstr ""
13711
13712 # type: verbatim
13713 #: ../src/guestfs-actions.pod:5781
13714 #, no-wrap
13715 msgid ""
13716 " char *\n"
13717 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13718 "                                 const char *device);\n"
13719 "\n"
13720 msgstr ""
13721
13722 # type: textblock
13723 #: ../src/guestfs-actions.pod:5785 ../fish/guestfish-actions.pod:3897
13724 msgid "This displays the kernel's idea of the geometry of C<device>."
13725 msgstr ""
13726
13727 # type: =head2
13728 #: ../src/guestfs-actions.pod:5795
13729 msgid "guestfs_sfdisk_l"
13730 msgstr ""
13731
13732 # type: verbatim
13733 #: ../src/guestfs-actions.pod:5797
13734 #, no-wrap
13735 msgid ""
13736 " char *\n"
13737 " guestfs_sfdisk_l (guestfs_h *g,\n"
13738 "                   const char *device);\n"
13739 "\n"
13740 msgstr ""
13741
13742 # type: textblock
13743 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3906
13744 msgid ""
13745 "This displays the partition table on C<device>, in the human-readable output "
13746 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13747 msgstr ""
13748
13749 # type: textblock
13750 #: ../src/guestfs-actions.pod:5805
13751 msgid "See also: C<guestfs_part_list>"
13752 msgstr ""
13753
13754 # type: =head2
13755 #: ../src/guestfs-actions.pod:5812
13756 msgid "guestfs_sh"
13757 msgstr ""
13758
13759 # type: verbatim
13760 #: ../src/guestfs-actions.pod:5814
13761 #, no-wrap
13762 msgid ""
13763 " char *\n"
13764 " guestfs_sh (guestfs_h *g,\n"
13765 "             const char *command);\n"
13766 "\n"
13767 msgstr ""
13768
13769 # type: textblock
13770 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3916
13771 msgid ""
13772 "This call runs a command from the guest filesystem via the guest's "
13773 "C</bin/sh>."
13774 msgstr ""
13775
13776 # type: textblock
13777 #: ../src/guestfs-actions.pod:5821
13778 msgid "This is like C<guestfs_command>, but passes the command to:"
13779 msgstr ""
13780
13781 # type: verbatim
13782 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3921
13783 #, no-wrap
13784 msgid ""
13785 " /bin/sh -c \"command\"\n"
13786 "\n"
13787 msgstr ""
13788
13789 # type: textblock
13790 #: ../src/guestfs-actions.pod:5825 ../fish/guestfish-actions.pod:3923
13791 msgid ""
13792 "Depending on the guest's shell, this usually results in wildcards being "
13793 "expanded, shell expressions being interpolated and so on."
13794 msgstr ""
13795
13796 # type: textblock
13797 #: ../src/guestfs-actions.pod:5829
13798 msgid "All the provisos about C<guestfs_command> apply to this call."
13799 msgstr ""
13800
13801 # type: =head2
13802 #: ../src/guestfs-actions.pod:5836
13803 msgid "guestfs_sh_lines"
13804 msgstr ""
13805
13806 # type: verbatim
13807 #: ../src/guestfs-actions.pod:5838
13808 #, no-wrap
13809 msgid ""
13810 " char **\n"
13811 " guestfs_sh_lines (guestfs_h *g,\n"
13812 "                   const char *command);\n"
13813 "\n"
13814 msgstr ""
13815
13816 # type: textblock
13817 #: ../src/guestfs-actions.pod:5842
13818 msgid ""
13819 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13820 "lines."
13821 msgstr ""
13822
13823 # type: textblock
13824 #: ../src/guestfs-actions.pod:5845
13825 msgid "See also: C<guestfs_command_lines>"
13826 msgstr ""
13827
13828 # type: =head2
13829 #: ../src/guestfs-actions.pod:5853
13830 msgid "guestfs_sleep"
13831 msgstr ""
13832
13833 # type: verbatim
13834 #: ../src/guestfs-actions.pod:5855
13835 #, no-wrap
13836 msgid ""
13837 " int\n"
13838 " guestfs_sleep (guestfs_h *g,\n"
13839 "                int secs);\n"
13840 "\n"
13841 msgstr ""
13842
13843 # type: textblock
13844 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3942
13845 msgid "Sleep for C<secs> seconds."
13846 msgstr ""
13847
13848 # type: textblock
13849 #: ../src/guestfs-actions.pod:5863
13850 msgid "(Added in 1.0.41)"
13851 msgstr ""
13852
13853 # type: =head2
13854 #: ../src/guestfs-actions.pod:5865 ../src/guestfs-structs.pod:109
13855 msgid "guestfs_stat"
13856 msgstr ""
13857
13858 # type: verbatim
13859 #: ../src/guestfs-actions.pod:5867
13860 #, no-wrap
13861 msgid ""
13862 " struct guestfs_stat *\n"
13863 " guestfs_stat (guestfs_h *g,\n"
13864 "               const char *path);\n"
13865 "\n"
13866 msgstr ""
13867
13868 # type: textblock
13869 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3950
13870 msgid "This is the same as the C<stat(2)> system call."
13871 msgstr ""
13872
13873 # type: =head2
13874 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-structs.pod:135
13875 msgid "guestfs_statvfs"
13876 msgstr ""
13877
13878 # type: verbatim
13879 #: ../src/guestfs-actions.pod:5883
13880 #, no-wrap
13881 msgid ""
13882 " struct guestfs_statvfs *\n"
13883 " guestfs_statvfs (guestfs_h *g,\n"
13884 "                  const char *path);\n"
13885 "\n"
13886 msgstr ""
13887
13888 # type: textblock
13889 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3956
13890 msgid ""
13891 "Returns file system statistics for any mounted file system.  C<path> should "
13892 "be a file or directory in the mounted file system (typically it is the mount "
13893 "point itself, but it doesn't need to be)."
13894 msgstr ""
13895
13896 # type: textblock
13897 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3960
13898 msgid "This is the same as the C<statvfs(2)> system call."
13899 msgstr ""
13900
13901 # type: textblock
13902 #: ../src/guestfs-actions.pod:5893
13903 msgid ""
13904 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13905 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13906 msgstr ""
13907
13908 # type: =head2
13909 #: ../src/guestfs-actions.pod:5899
13910 msgid "guestfs_strings"
13911 msgstr ""
13912
13913 # type: verbatim
13914 #: ../src/guestfs-actions.pod:5901
13915 #, no-wrap
13916 msgid ""
13917 " char **\n"
13918 " guestfs_strings (guestfs_h *g,\n"
13919 "                  const char *path);\n"
13920 "\n"
13921 msgstr ""
13922
13923 # type: textblock
13924 #: ../src/guestfs-actions.pod:5905 ../fish/guestfish-actions.pod:3966
13925 msgid ""
13926 "This runs the L<strings(1)> command on a file and returns the list of "
13927 "printable strings found."
13928 msgstr ""
13929
13930 # type: =head2
13931 #: ../src/guestfs-actions.pod:5917
13932 msgid "guestfs_strings_e"
13933 msgstr ""
13934
13935 # type: verbatim
13936 #: ../src/guestfs-actions.pod:5919
13937 #, no-wrap
13938 msgid ""
13939 " char **\n"
13940 " guestfs_strings_e (guestfs_h *g,\n"
13941 "                    const char *encoding,\n"
13942 "                    const char *path);\n"
13943 "\n"
13944 msgstr ""
13945
13946 # type: textblock
13947 #: ../src/guestfs-actions.pod:5924
13948 msgid ""
13949 "This is like the C<guestfs_strings> command, but allows you to specify the "
13950 "encoding of strings that are looked for in the source file C<path>."
13951 msgstr ""
13952
13953 # type: textblock
13954 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3980
13955 msgid "Allowed encodings are:"
13956 msgstr ""
13957
13958 # type: =item
13959 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3984
13960 msgid "s"
13961 msgstr ""
13962
13963 # type: textblock
13964 #: ../src/guestfs-actions.pod:5934
13965 msgid ""
13966 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13967 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13968 msgstr ""
13969
13970 # type: =item
13971 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3989
13972 msgid "S"
13973 msgstr ""
13974
13975 # type: textblock
13976 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:3991
13977 msgid "Single 8-bit-byte characters."
13978 msgstr ""
13979
13980 # type: =item
13981 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3993
13982 msgid "b"
13983 msgstr ""
13984
13985 # type: textblock
13986 #: ../src/guestfs-actions.pod:5943 ../fish/guestfish-actions.pod:3995
13987 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13988 msgstr ""
13989
13990 # type: =item
13991 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:3998
13992 msgid "l (lower case letter L)"
13993 msgstr ""
13994
13995 # type: textblock
13996 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4000
13997 msgid ""
13998 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13999 "examining binaries in Windows guests."
14000 msgstr ""
14001
14002 # type: =item
14003 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:4003
14004 msgid "B"
14005 msgstr ""
14006
14007 # type: textblock
14008 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:4005
14009 msgid "32-bit big endian such as UCS-4BE."
14010 msgstr ""
14011
14012 # type: =item
14013 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:4007
14014 msgid "L"
14015 msgstr ""
14016
14017 # type: textblock
14018 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4009
14019 msgid "32-bit little endian such as UCS-4LE."
14020 msgstr ""
14021
14022 # type: textblock
14023 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4013
14024 msgid "The returned strings are transcoded to UTF-8."
14025 msgstr ""
14026
14027 # type: =head2
14028 #: ../src/guestfs-actions.pod:5972
14029 msgid "guestfs_swapoff_device"
14030 msgstr ""
14031
14032 # type: verbatim
14033 #: ../src/guestfs-actions.pod:5974
14034 #, no-wrap
14035 msgid ""
14036 " int\n"
14037 " guestfs_swapoff_device (guestfs_h *g,\n"
14038 "                         const char *device);\n"
14039 "\n"
14040 msgstr ""
14041
14042 # type: textblock
14043 #: ../src/guestfs-actions.pod:5978
14044 msgid ""
14045 "This command disables the libguestfs appliance swap device or partition "
14046 "named C<device>.  See C<guestfs_swapon_device>."
14047 msgstr ""
14048
14049 # type: =head2
14050 #: ../src/guestfs-actions.pod:5986
14051 msgid "guestfs_swapoff_file"
14052 msgstr ""
14053
14054 # type: verbatim
14055 #: ../src/guestfs-actions.pod:5988
14056 #, no-wrap
14057 msgid ""
14058 " int\n"
14059 " guestfs_swapoff_file (guestfs_h *g,\n"
14060 "                       const char *file);\n"
14061 "\n"
14062 msgstr ""
14063
14064 # type: textblock
14065 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:4030
14066 msgid "This command disables the libguestfs appliance swap on file."
14067 msgstr ""
14068
14069 # type: =head2
14070 #: ../src/guestfs-actions.pod:5998
14071 msgid "guestfs_swapoff_label"
14072 msgstr ""
14073
14074 # type: verbatim
14075 #: ../src/guestfs-actions.pod:6000
14076 #, no-wrap
14077 msgid ""
14078 " int\n"
14079 " guestfs_swapoff_label (guestfs_h *g,\n"
14080 "                        const char *label);\n"
14081 "\n"
14082 msgstr ""
14083
14084 # type: textblock
14085 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4036
14086 msgid ""
14087 "This command disables the libguestfs appliance swap on labeled swap "
14088 "partition."
14089 msgstr ""
14090
14091 # type: =head2
14092 #: ../src/guestfs-actions.pod:6011
14093 msgid "guestfs_swapoff_uuid"
14094 msgstr ""
14095
14096 # type: verbatim
14097 #: ../src/guestfs-actions.pod:6013
14098 #, no-wrap
14099 msgid ""
14100 " int\n"
14101 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14102 "                       const char *uuid);\n"
14103 "\n"
14104 msgstr ""
14105
14106 # type: textblock
14107 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4043
14108 msgid ""
14109 "This command disables the libguestfs appliance swap partition with the given "
14110 "UUID."
14111 msgstr ""
14112
14113 # type: =head2
14114 #: ../src/guestfs-actions.pod:6024
14115 msgid "guestfs_swapon_device"
14116 msgstr ""
14117
14118 # type: verbatim
14119 #: ../src/guestfs-actions.pod:6026
14120 #, no-wrap
14121 msgid ""
14122 " int\n"
14123 " guestfs_swapon_device (guestfs_h *g,\n"
14124 "                        const char *device);\n"
14125 "\n"
14126 msgstr ""
14127
14128 # type: textblock
14129 #: ../src/guestfs-actions.pod:6030
14130 msgid ""
14131 "This command enables the libguestfs appliance to use the swap device or "
14132 "partition named C<device>.  The increased memory is made available for all "
14133 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14134 msgstr ""
14135
14136 # type: textblock
14137 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4055
14138 msgid ""
14139 "Note that you should not swap to existing guest swap partitions unless you "
14140 "know what you are doing.  They may contain hibernation information, or other "
14141 "information that the guest doesn't want you to trash.  You also risk leaking "
14142 "information about the host to the guest this way.  Instead, attach a new "
14143 "host device to the guest and swap on that."
14144 msgstr ""
14145
14146 # type: =head2
14147 #: ../src/guestfs-actions.pod:6046
14148 msgid "guestfs_swapon_file"
14149 msgstr ""
14150
14151 # type: verbatim
14152 #: ../src/guestfs-actions.pod:6048
14153 #, no-wrap
14154 msgid ""
14155 " int\n"
14156 " guestfs_swapon_file (guestfs_h *g,\n"
14157 "                      const char *file);\n"
14158 "\n"
14159 msgstr ""
14160
14161 # type: textblock
14162 #: ../src/guestfs-actions.pod:6052
14163 msgid ""
14164 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14165 "notes."
14166 msgstr ""
14167
14168 # type: =head2
14169 #: ../src/guestfs-actions.pod:6059
14170 msgid "guestfs_swapon_label"
14171 msgstr ""
14172
14173 # type: verbatim
14174 #: ../src/guestfs-actions.pod:6061
14175 #, no-wrap
14176 msgid ""
14177 " int\n"
14178 " guestfs_swapon_label (guestfs_h *g,\n"
14179 "                       const char *label);\n"
14180 "\n"
14181 msgstr ""
14182
14183 # type: textblock
14184 #: ../src/guestfs-actions.pod:6065
14185 msgid ""
14186 "This command enables swap to a labeled swap partition.  See "
14187 "C<guestfs_swapon_device> for other notes."
14188 msgstr ""
14189
14190 # type: =head2
14191 #: ../src/guestfs-actions.pod:6072
14192 msgid "guestfs_swapon_uuid"
14193 msgstr ""
14194
14195 # type: verbatim
14196 #: ../src/guestfs-actions.pod:6074
14197 #, no-wrap
14198 msgid ""
14199 " int\n"
14200 " guestfs_swapon_uuid (guestfs_h *g,\n"
14201 "                      const char *uuid);\n"
14202 "\n"
14203 msgstr ""
14204
14205 # type: textblock
14206 #: ../src/guestfs-actions.pod:6078
14207 msgid ""
14208 "This command enables swap to a swap partition with the given UUID.  See "
14209 "C<guestfs_swapon_device> for other notes."
14210 msgstr ""
14211
14212 # type: =head2
14213 #: ../src/guestfs-actions.pod:6085
14214 msgid "guestfs_sync"
14215 msgstr ""
14216
14217 # type: verbatim
14218 #: ../src/guestfs-actions.pod:6087
14219 #, no-wrap
14220 msgid ""
14221 " int\n"
14222 " guestfs_sync (guestfs_h *g);\n"
14223 "\n"
14224 msgstr ""
14225
14226 # type: textblock
14227 #: ../src/guestfs-actions.pod:6090 ../fish/guestfish-actions.pod:4087
14228 msgid ""
14229 "This syncs the disk, so that any writes are flushed through to the "
14230 "underlying disk image."
14231 msgstr ""
14232
14233 # type: textblock
14234 #: ../src/guestfs-actions.pod:6093 ../fish/guestfish-actions.pod:4090
14235 msgid ""
14236 "You should always call this if you have modified a disk image, before "
14237 "closing the handle."
14238 msgstr ""
14239
14240 # type: =head2
14241 #: ../src/guestfs-actions.pod:6100
14242 msgid "guestfs_tail"
14243 msgstr ""
14244
14245 # type: verbatim
14246 #: ../src/guestfs-actions.pod:6102
14247 #, no-wrap
14248 msgid ""
14249 " char **\n"
14250 " guestfs_tail (guestfs_h *g,\n"
14251 "               const char *path);\n"
14252 "\n"
14253 msgstr ""
14254
14255 # type: textblock
14256 #: ../src/guestfs-actions.pod:6106 ../fish/guestfish-actions.pod:4097
14257 msgid "This command returns up to the last 10 lines of a file as a list of strings."
14258 msgstr ""
14259
14260 # type: =head2
14261 #: ../src/guestfs-actions.pod:6118
14262 msgid "guestfs_tail_n"
14263 msgstr ""
14264
14265 # type: verbatim
14266 #: ../src/guestfs-actions.pod:6120
14267 #, no-wrap
14268 msgid ""
14269 " char **\n"
14270 " guestfs_tail_n (guestfs_h *g,\n"
14271 "                 int nrlines,\n"
14272 "                 const char *path);\n"
14273 "\n"
14274 msgstr ""
14275
14276 # type: textblock
14277 #: ../src/guestfs-actions.pod:6125 ../fish/guestfish-actions.pod:4107
14278 msgid ""
14279 "If the parameter C<nrlines> is a positive number, this returns the last "
14280 "C<nrlines> lines of the file C<path>."
14281 msgstr ""
14282
14283 # type: textblock
14284 #: ../src/guestfs-actions.pod:6128 ../fish/guestfish-actions.pod:4110
14285 msgid ""
14286 "If the parameter C<nrlines> is a negative number, this returns lines from "
14287 "the file C<path>, starting with the C<-nrlines>th line."
14288 msgstr ""
14289
14290 # type: =head2
14291 #: ../src/guestfs-actions.pod:6142
14292 msgid "guestfs_tar_in"
14293 msgstr ""
14294
14295 # type: verbatim
14296 #: ../src/guestfs-actions.pod:6144
14297 #, no-wrap
14298 msgid ""
14299 " int\n"
14300 " guestfs_tar_in (guestfs_h *g,\n"
14301 "                 const char *tarfile,\n"
14302 "                 const char *directory);\n"
14303 "\n"
14304 msgstr ""
14305
14306 # type: textblock
14307 #: ../src/guestfs-actions.pod:6149 ../fish/guestfish-actions.pod:4122
14308 msgid ""
14309 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14310 "tar file) into C<directory>."
14311 msgstr ""
14312
14313 # type: textblock
14314 #: ../src/guestfs-actions.pod:6152
14315 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14316 msgstr ""
14317
14318 # type: textblock
14319 #: ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6190 ../src/guestfs-actions.pod:6206
14320 msgid "(Added in 1.0.3)"
14321 msgstr ""
14322
14323 # type: =head2
14324 #: ../src/guestfs-actions.pod:6159
14325 msgid "guestfs_tar_out"
14326 msgstr ""
14327
14328 # type: verbatim
14329 #: ../src/guestfs-actions.pod:6161
14330 #, no-wrap
14331 msgid ""
14332 " int\n"
14333 " guestfs_tar_out (guestfs_h *g,\n"
14334 "                  const char *directory,\n"
14335 "                  const char *tarfile);\n"
14336 "\n"
14337 msgstr ""
14338
14339 # type: textblock
14340 #: ../src/guestfs-actions.pod:6166 ../fish/guestfish-actions.pod:4134
14341 msgid ""
14342 "This command packs the contents of C<directory> and downloads it to local "
14343 "file C<tarfile>."
14344 msgstr ""
14345
14346 # type: textblock
14347 #: ../src/guestfs-actions.pod:6169
14348 msgid ""
14349 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14350 "C<guestfs_txz_out>."
14351 msgstr ""
14352
14353 # type: =head2
14354 #: ../src/guestfs-actions.pod:6176
14355 msgid "guestfs_tgz_in"
14356 msgstr ""
14357
14358 # type: verbatim
14359 #: ../src/guestfs-actions.pod:6178
14360 #, no-wrap
14361 msgid ""
14362 " int\n"
14363 " guestfs_tgz_in (guestfs_h *g,\n"
14364 "                 const char *tarball,\n"
14365 "                 const char *directory);\n"
14366 "\n"
14367 msgstr ""
14368
14369 # type: textblock
14370 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4146
14371 msgid ""
14372 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14373 "tar file) into C<directory>."
14374 msgstr ""
14375
14376 # type: textblock
14377 #: ../src/guestfs-actions.pod:6186
14378 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14379 msgstr ""
14380
14381 # type: =head2
14382 #: ../src/guestfs-actions.pod:6192
14383 msgid "guestfs_tgz_out"
14384 msgstr ""
14385
14386 # type: verbatim
14387 #: ../src/guestfs-actions.pod:6194
14388 #, no-wrap
14389 msgid ""
14390 " int\n"
14391 " guestfs_tgz_out (guestfs_h *g,\n"
14392 "                  const char *directory,\n"
14393 "                  const char *tarball);\n"
14394 "\n"
14395 msgstr ""
14396
14397 # type: textblock
14398 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4157
14399 msgid ""
14400 "This command packs the contents of C<directory> and downloads it to local "
14401 "file C<tarball>."
14402 msgstr ""
14403
14404 # type: textblock
14405 #: ../src/guestfs-actions.pod:6202
14406 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14407 msgstr ""
14408
14409 # type: =head2
14410 #: ../src/guestfs-actions.pod:6208
14411 msgid "guestfs_touch"
14412 msgstr ""
14413
14414 # type: verbatim
14415 #: ../src/guestfs-actions.pod:6210
14416 #, no-wrap
14417 msgid ""
14418 " int\n"
14419 " guestfs_touch (guestfs_h *g,\n"
14420 "                const char *path);\n"
14421 "\n"
14422 msgstr ""
14423
14424 # type: textblock
14425 #: ../src/guestfs-actions.pod:6214 ../fish/guestfish-actions.pod:4168
14426 msgid ""
14427 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14428 "timestamps on a file, or, if the file does not exist, to create a new "
14429 "zero-length file."
14430 msgstr ""
14431
14432 # type: textblock
14433 #: ../src/guestfs-actions.pod:6218 ../fish/guestfish-actions.pod:4172
14434 msgid ""
14435 "This command only works on regular files, and will fail on other file types "
14436 "such as directories, symbolic links, block special etc."
14437 msgstr ""
14438
14439 # type: =head2
14440 #: ../src/guestfs-actions.pod:6225
14441 msgid "guestfs_truncate"
14442 msgstr ""
14443
14444 # type: verbatim
14445 #: ../src/guestfs-actions.pod:6227
14446 #, no-wrap
14447 msgid ""
14448 " int\n"
14449 " guestfs_truncate (guestfs_h *g,\n"
14450 "                   const char *path);\n"
14451 "\n"
14452 msgstr ""
14453
14454 # type: textblock
14455 #: ../src/guestfs-actions.pod:6231 ../fish/guestfish-actions.pod:4179
14456 msgid ""
14457 "This command truncates C<path> to a zero-length file.  The file must exist "
14458 "already."
14459 msgstr ""
14460
14461 # type: =head2
14462 #: ../src/guestfs-actions.pod:6238
14463 msgid "guestfs_truncate_size"
14464 msgstr ""
14465
14466 # type: verbatim
14467 #: ../src/guestfs-actions.pod:6240
14468 #, no-wrap
14469 msgid ""
14470 " int\n"
14471 " guestfs_truncate_size (guestfs_h *g,\n"
14472 "                        const char *path,\n"
14473 "                        int64_t size);\n"
14474 "\n"
14475 msgstr ""
14476
14477 # type: textblock
14478 #: ../src/guestfs-actions.pod:6245 ../fish/guestfish-actions.pod:4186
14479 msgid ""
14480 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14481 "already."
14482 msgstr ""
14483
14484 # type: textblock
14485 #: ../src/guestfs-actions.pod:6248
14486 msgid ""
14487 "If the current file size is less than C<size> then the file is extended to "
14488 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14489 "blocks are not allocated for the file until you write to it).  To create a "
14490 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14491 msgstr ""
14492
14493 # type: =head2
14494 #: ../src/guestfs-actions.pod:6258
14495 msgid "guestfs_tune2fs_l"
14496 msgstr ""
14497
14498 # type: verbatim
14499 #: ../src/guestfs-actions.pod:6260
14500 #, no-wrap
14501 msgid ""
14502 " char **\n"
14503 " guestfs_tune2fs_l (guestfs_h *g,\n"
14504 "                    const char *device);\n"
14505 "\n"
14506 msgstr ""
14507
14508 # type: textblock
14509 #: ../src/guestfs-actions.pod:6264 ../fish/guestfish-actions.pod:4199
14510 msgid ""
14511 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14512 "C<device>."
14513 msgstr ""
14514
14515 # type: textblock
14516 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4202
14517 msgid ""
14518 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14519 "for more details.  The list of fields returned isn't clearly defined, and "
14520 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14521 "and the filesystem itself."
14522 msgstr ""
14523
14524 # type: =head2
14525 #: ../src/guestfs-actions.pod:6280
14526 msgid "guestfs_txz_in"
14527 msgstr ""
14528
14529 # type: verbatim
14530 #: ../src/guestfs-actions.pod:6282
14531 #, no-wrap
14532 msgid ""
14533 " int\n"
14534 " guestfs_txz_in (guestfs_h *g,\n"
14535 "                 const char *tarball,\n"
14536 "                 const char *directory);\n"
14537 "\n"
14538 msgstr ""
14539
14540 # type: textblock
14541 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4211
14542 msgid ""
14543 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14544 "tar file) into C<directory>."
14545 msgstr ""
14546
14547 # type: =head2
14548 #: ../src/guestfs-actions.pod:6294
14549 msgid "guestfs_txz_out"
14550 msgstr ""
14551
14552 # type: verbatim
14553 #: ../src/guestfs-actions.pod:6296
14554 #, no-wrap
14555 msgid ""
14556 " int\n"
14557 " guestfs_txz_out (guestfs_h *g,\n"
14558 "                  const char *directory,\n"
14559 "                  const char *tarball);\n"
14560 "\n"
14561 msgstr ""
14562
14563 # type: textblock
14564 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4220
14565 msgid ""
14566 "This command packs the contents of C<directory> and downloads it to local "
14567 "file C<tarball> (as an xz compressed tar archive)."
14568 msgstr ""
14569
14570 # type: =head2
14571 #: ../src/guestfs-actions.pod:6308
14572 msgid "guestfs_umask"
14573 msgstr ""
14574
14575 # type: verbatim
14576 #: ../src/guestfs-actions.pod:6310
14577 #, no-wrap
14578 msgid ""
14579 " int\n"
14580 " guestfs_umask (guestfs_h *g,\n"
14581 "                int mask);\n"
14582 "\n"
14583 msgstr ""
14584
14585 # type: textblock
14586 #: ../src/guestfs-actions.pod:6314 ../fish/guestfish-actions.pod:4229
14587 msgid ""
14588 "This function sets the mask used for creating new files and device nodes to "
14589 "C<mask & 0777>."
14590 msgstr ""
14591
14592 # type: textblock
14593 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4232
14594 msgid ""
14595 "Typical umask values would be C<022> which creates new files with "
14596 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14597 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14598 msgstr ""
14599
14600 # type: textblock
14601 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4237
14602 msgid ""
14603 "The default umask is C<022>.  This is important because it means that "
14604 "directories and device nodes will be created with C<0644> or C<0755> mode "
14605 "even if you specify C<0777>."
14606 msgstr ""
14607
14608 # type: textblock
14609 #: ../src/guestfs-actions.pod:6326
14610 msgid ""
14611 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14612 "C<guestfs_mkdir>."
14613 msgstr ""
14614
14615 # type: textblock
14616 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4244
14617 msgid "This call returns the previous umask."
14618 msgstr ""
14619
14620 # type: =head2
14621 #: ../src/guestfs-actions.pod:6335
14622 msgid "guestfs_umount"
14623 msgstr ""
14624
14625 # type: verbatim
14626 #: ../src/guestfs-actions.pod:6337
14627 #, no-wrap
14628 msgid ""
14629 " int\n"
14630 " guestfs_umount (guestfs_h *g,\n"
14631 "                 const char *pathordevice);\n"
14632 "\n"
14633 msgstr ""
14634
14635 # type: textblock
14636 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4252
14637 msgid ""
14638 "This unmounts the given filesystem.  The filesystem may be specified either "
14639 "by its mountpoint (path) or the device which contains the filesystem."
14640 msgstr ""
14641
14642 # type: =head2
14643 #: ../src/guestfs-actions.pod:6349
14644 msgid "guestfs_umount_all"
14645 msgstr ""
14646
14647 # type: verbatim
14648 #: ../src/guestfs-actions.pod:6351
14649 #, no-wrap
14650 msgid ""
14651 " int\n"
14652 " guestfs_umount_all (guestfs_h *g);\n"
14653 "\n"
14654 msgstr ""
14655
14656 # type: textblock
14657 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4262
14658 msgid "This unmounts all mounted filesystems."
14659 msgstr ""
14660
14661 # type: textblock
14662 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4264
14663 msgid "Some internal mounts are not unmounted by this call."
14664 msgstr ""
14665
14666 # type: =head2
14667 #: ../src/guestfs-actions.pod:6362
14668 msgid "guestfs_upload"
14669 msgstr ""
14670
14671 # type: verbatim
14672 #: ../src/guestfs-actions.pod:6364
14673 #, no-wrap
14674 msgid ""
14675 " int\n"
14676 " guestfs_upload (guestfs_h *g,\n"
14677 "                 const char *filename,\n"
14678 "                 const char *remotefilename);\n"
14679 "\n"
14680 msgstr ""
14681
14682 # type: textblock
14683 #: ../src/guestfs-actions.pod:6369 ../src/guestfs-actions.pod:6388 ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
14684 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14685 msgstr ""
14686
14687 # type: textblock
14688 #: ../src/guestfs-actions.pod:6374
14689 msgid "See also C<guestfs_download>."
14690 msgstr ""
14691
14692 # type: =head2
14693 #: ../src/guestfs-actions.pod:6380
14694 msgid "guestfs_upload_offset"
14695 msgstr ""
14696
14697 # type: verbatim
14698 #: ../src/guestfs-actions.pod:6382
14699 #, no-wrap
14700 msgid ""
14701 " int\n"
14702 " guestfs_upload_offset (guestfs_h *g,\n"
14703 "                        const char *filename,\n"
14704 "                        const char *remotefilename,\n"
14705 "                        int64_t offset);\n"
14706 "\n"
14707 msgstr ""
14708
14709 # type: textblock
14710 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4286
14711 msgid ""
14712 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14713 "The intention is to overwrite parts of existing files or devices, although "
14714 "if a non-existant file is specified then it is created with a \"hole\" "
14715 "before C<offset>.  The size of the data written is implicit in the size of "
14716 "the source C<filename>."
14717 msgstr ""
14718
14719 # type: textblock
14720 #: ../src/guestfs-actions.pod:6398
14721 msgid ""
14722 "Note that there is no limit on the amount of data that can be uploaded with "
14723 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14724 "full amount unless an error occurs."
14725 msgstr ""
14726
14727 # type: textblock
14728 #: ../src/guestfs-actions.pod:6403
14729 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14730 msgstr ""
14731
14732 # type: =head2
14733 #: ../src/guestfs-actions.pod:6409
14734 msgid "guestfs_utimens"
14735 msgstr ""
14736
14737 # type: verbatim
14738 #: ../src/guestfs-actions.pod:6411
14739 #, no-wrap
14740 msgid ""
14741 " int\n"
14742 " guestfs_utimens (guestfs_h *g,\n"
14743 "                  const char *path,\n"
14744 "                  int64_t atsecs,\n"
14745 "                  int64_t atnsecs,\n"
14746 "                  int64_t mtsecs,\n"
14747 "                  int64_t mtnsecs);\n"
14748 "\n"
14749 msgstr ""
14750
14751 # type: textblock
14752 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4306
14753 msgid "This command sets the timestamps of a file with nanosecond precision."
14754 msgstr ""
14755
14756 # type: textblock
14757 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4309
14758 msgid ""
14759 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14760 "from the epoch."
14761 msgstr ""
14762
14763 # type: textblock
14764 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4312
14765 msgid ""
14766 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14767 "nanoseconds from the epoch."
14768 msgstr ""
14769
14770 # type: textblock
14771 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4315
14772 msgid ""
14773 "If the C<*nsecs> field contains the special value C<-1> then the "
14774 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14775 "ignored in this case)."
14776 msgstr ""
14777
14778 # type: textblock
14779 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4319
14780 msgid ""
14781 "If the C<*nsecs> field contains the special value C<-2> then the "
14782 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14783 "in this case)."
14784 msgstr ""
14785
14786 # type: =head2
14787 #: ../src/guestfs-actions.pod:6440 ../src/guestfs-structs.pod:175
14788 msgid "guestfs_version"
14789 msgstr ""
14790
14791 # type: verbatim
14792 #: ../src/guestfs-actions.pod:6442
14793 #, no-wrap
14794 msgid ""
14795 " struct guestfs_version *\n"
14796 " guestfs_version (guestfs_h *g);\n"
14797 "\n"
14798 msgstr ""
14799
14800 # type: textblock
14801 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4327
14802 msgid "Return the libguestfs version number that the program is linked against."
14803 msgstr ""
14804
14805 # type: textblock
14806 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4330
14807 msgid ""
14808 "Note that because of dynamic linking this is not necessarily the version of "
14809 "libguestfs that you compiled against.  You can compile the program, and then "
14810 "at runtime dynamically link against a completely different C<libguestfs.so> "
14811 "library."
14812 msgstr ""
14813
14814 # type: textblock
14815 #: ../src/guestfs-actions.pod:6453 ../fish/guestfish-actions.pod:4335
14816 msgid ""
14817 "This call was added in version C<1.0.58>.  In previous versions of "
14818 "libguestfs there was no way to get the version number.  From C code you can "
14819 "use dynamic linker functions to find out if this symbol exists (if it "
14820 "doesn't, then it's an earlier version)."
14821 msgstr ""
14822
14823 # type: textblock
14824 #: ../src/guestfs-actions.pod:6459 ../fish/guestfish-actions.pod:4341
14825 msgid ""
14826 "The call returns a structure with four elements.  The first three (C<major>, "
14827 "C<minor> and C<release>) are numbers and correspond to the usual version "
14828 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14829 "but may be used for distro-specific information."
14830 msgstr ""
14831
14832 # type: textblock
14833 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4347
14834 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14835 msgstr ""
14836
14837 # type: textblock
14838 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4350
14839 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14840 msgstr ""
14841
14842 # type: textblock
14843 #: ../src/guestfs-actions.pod:6470
14844 msgid ""
14845 "I<Note:> Don't use this call to test for availability of features.  In "
14846 "enterprise distributions we backport features from later versions into "
14847 "earlier versions, making this an unreliable way to test for features.  Use "
14848 "C<guestfs_available> instead."
14849 msgstr ""
14850
14851 # type: textblock
14852 #: ../src/guestfs-actions.pod:6476
14853 msgid ""
14854 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14855 "error.  I<The caller must call C<guestfs_free_version> after use>."
14856 msgstr ""
14857
14858 # type: textblock
14859 #: ../src/guestfs-actions.pod:6480
14860 msgid "(Added in 1.0.58)"
14861 msgstr ""
14862
14863 # type: =head2
14864 #: ../src/guestfs-actions.pod:6482
14865 msgid "guestfs_vfs_label"
14866 msgstr ""
14867
14868 # type: verbatim
14869 #: ../src/guestfs-actions.pod:6484
14870 #, no-wrap
14871 msgid ""
14872 " char *\n"
14873 " guestfs_vfs_label (guestfs_h *g,\n"
14874 "                    const char *device);\n"
14875 "\n"
14876 msgstr ""
14877
14878 # type: textblock
14879 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4362
14880 msgid "This returns the filesystem label of the filesystem on C<device>."
14881 msgstr ""
14882
14883 # type: textblock
14884 #: ../src/guestfs-actions.pod:6491 ../fish/guestfish-actions.pod:4365
14885 msgid "If the filesystem is unlabeled, this returns the empty string."
14886 msgstr ""
14887
14888 # type: textblock
14889 #: ../src/guestfs-actions.pod:6493
14890 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14891 msgstr ""
14892
14893 # type: textblock
14894 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6535
14895 msgid "(Added in 1.3.18)"
14896 msgstr ""
14897
14898 # type: =head2
14899 #: ../src/guestfs-actions.pod:6500
14900 msgid "guestfs_vfs_type"
14901 msgstr ""
14902
14903 # type: verbatim
14904 #: ../src/guestfs-actions.pod:6502
14905 #, no-wrap
14906 msgid ""
14907 " char *\n"
14908 " guestfs_vfs_type (guestfs_h *g,\n"
14909 "                   const char *device);\n"
14910 "\n"
14911 msgstr ""
14912
14913 # type: textblock
14914 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4373
14915 msgid ""
14916 "This command gets the filesystem type corresponding to the filesystem on "
14917 "C<device>."
14918 msgstr ""
14919
14920 # type: textblock
14921 #: ../src/guestfs-actions.pod:6509 ../fish/guestfish-actions.pod:4376
14922 msgid ""
14923 "For most filesystems, the result is the name of the Linux VFS module which "
14924 "would be used to mount this filesystem if you mounted it without specifying "
14925 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14926 msgstr ""
14927
14928 # type: =head2
14929 #: ../src/guestfs-actions.pod:6519
14930 msgid "guestfs_vfs_uuid"
14931 msgstr ""
14932
14933 # type: verbatim
14934 #: ../src/guestfs-actions.pod:6521
14935 #, no-wrap
14936 msgid ""
14937 " char *\n"
14938 " guestfs_vfs_uuid (guestfs_h *g,\n"
14939 "                   const char *device);\n"
14940 "\n"
14941 msgstr ""
14942
14943 # type: textblock
14944 #: ../src/guestfs-actions.pod:6525 ../fish/guestfish-actions.pod:4385
14945 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14946 msgstr ""
14947
14948 # type: textblock
14949 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4388
14950 msgid "If the filesystem does not have a UUID, this returns the empty string."
14951 msgstr ""
14952
14953 # type: textblock
14954 #: ../src/guestfs-actions.pod:6530
14955 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14956 msgstr ""
14957
14958 # type: =head2
14959 #: ../src/guestfs-actions.pod:6537
14960 msgid "guestfs_vg_activate"
14961 msgstr ""
14962
14963 # type: verbatim
14964 #: ../src/guestfs-actions.pod:6539
14965 #, no-wrap
14966 msgid ""
14967 " int\n"
14968 " guestfs_vg_activate (guestfs_h *g,\n"
14969 "                      int activate,\n"
14970 "                      char *const *volgroups);\n"
14971 "\n"
14972 msgstr ""
14973
14974 # type: textblock
14975 #: ../src/guestfs-actions.pod:6544 ../fish/guestfish-actions.pod:4396
14976 msgid ""
14977 "This command activates or (if C<activate> is false) deactivates all logical "
14978 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14979 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14980 "deactivated, then those devices disappear."
14981 msgstr ""
14982
14983 # type: textblock
14984 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4402
14985 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14986 msgstr ""
14987
14988 # type: textblock
14989 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4404
14990 msgid ""
14991 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14992 "activated or deactivated."
14993 msgstr ""
14994
14995 # type: =head2
14996 #: ../src/guestfs-actions.pod:6559
14997 msgid "guestfs_vg_activate_all"
14998 msgstr ""
14999
15000 # type: verbatim
15001 #: ../src/guestfs-actions.pod:6561
15002 #, no-wrap
15003 msgid ""
15004 " int\n"
15005 " guestfs_vg_activate_all (guestfs_h *g,\n"
15006 "                          int activate);\n"
15007 "\n"
15008 msgstr ""
15009
15010 # type: textblock
15011 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4411
15012 msgid ""
15013 "This command activates or (if C<activate> is false) deactivates all logical "
15014 "volumes in all volume groups.  If activated, then they are made known to the "
15015 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15016 "those devices disappear."
15017 msgstr ""
15018
15019 # type: textblock
15020 #: ../src/guestfs-actions.pod:6571 ../fish/guestfish-actions.pod:4417
15021 msgid "This command is the same as running C<vgchange -a y|n>"
15022 msgstr ""
15023
15024 # type: =head2
15025 #: ../src/guestfs-actions.pod:6577
15026 msgid "guestfs_vgcreate"
15027 msgstr ""
15028
15029 # type: verbatim
15030 #: ../src/guestfs-actions.pod:6579
15031 #, no-wrap
15032 msgid ""
15033 " int\n"
15034 " guestfs_vgcreate (guestfs_h *g,\n"
15035 "                   const char *volgroup,\n"
15036 "                   char *const *physvols);\n"
15037 "\n"
15038 msgstr ""
15039
15040 # type: textblock
15041 #: ../src/guestfs-actions.pod:6584 ../fish/guestfish-actions.pod:4423
15042 msgid ""
15043 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15044 "of physical volumes C<physvols>."
15045 msgstr ""
15046
15047 # type: =head2
15048 #: ../src/guestfs-actions.pod:6591
15049 msgid "guestfs_vglvuuids"
15050 msgstr ""
15051
15052 # type: verbatim
15053 #: ../src/guestfs-actions.pod:6593
15054 #, no-wrap
15055 msgid ""
15056 " char **\n"
15057 " guestfs_vglvuuids (guestfs_h *g,\n"
15058 "                    const char *vgname);\n"
15059 "\n"
15060 msgstr ""
15061
15062 # type: textblock
15063 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4430
15064 msgid ""
15065 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15066 "volumes created in this volume group."
15067 msgstr ""
15068
15069 # type: textblock
15070 #: ../src/guestfs-actions.pod:6600
15071 msgid ""
15072 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15073 "associate logical volumes and volume groups."
15074 msgstr ""
15075
15076 # type: textblock
15077 #: ../src/guestfs-actions.pod:6603
15078 msgid "See also C<guestfs_vgpvuuids>."
15079 msgstr ""
15080
15081 # type: =head2
15082 #: ../src/guestfs-actions.pod:6611
15083 msgid "guestfs_vgpvuuids"
15084 msgstr ""
15085
15086 # type: verbatim
15087 #: ../src/guestfs-actions.pod:6613
15088 #, no-wrap
15089 msgid ""
15090 " char **\n"
15091 " guestfs_vgpvuuids (guestfs_h *g,\n"
15092 "                    const char *vgname);\n"
15093 "\n"
15094 msgstr ""
15095
15096 # type: textblock
15097 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4442
15098 msgid ""
15099 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15100 "volumes that this volume group resides on."
15101 msgstr ""
15102
15103 # type: textblock
15104 #: ../src/guestfs-actions.pod:6620
15105 msgid ""
15106 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15107 "associate physical volumes and volume groups."
15108 msgstr ""
15109
15110 # type: textblock
15111 #: ../src/guestfs-actions.pod:6623
15112 msgid "See also C<guestfs_vglvuuids>."
15113 msgstr ""
15114
15115 # type: =head2
15116 #: ../src/guestfs-actions.pod:6631
15117 msgid "guestfs_vgremove"
15118 msgstr ""
15119
15120 # type: verbatim
15121 #: ../src/guestfs-actions.pod:6633
15122 #, no-wrap
15123 msgid ""
15124 " int\n"
15125 " guestfs_vgremove (guestfs_h *g,\n"
15126 "                   const char *vgname);\n"
15127 "\n"
15128 msgstr ""
15129
15130 # type: textblock
15131 #: ../src/guestfs-actions.pod:6637 ../fish/guestfish-actions.pod:4454
15132 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15133 msgstr ""
15134
15135 # type: textblock
15136 #: ../src/guestfs-actions.pod:6639 ../fish/guestfish-actions.pod:4456
15137 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
15138 msgstr ""
15139
15140 # type: =head2
15141 #: ../src/guestfs-actions.pod:6646
15142 msgid "guestfs_vgrename"
15143 msgstr ""
15144
15145 # type: verbatim
15146 #: ../src/guestfs-actions.pod:6648
15147 #, no-wrap
15148 msgid ""
15149 " int\n"
15150 " guestfs_vgrename (guestfs_h *g,\n"
15151 "                   const char *volgroup,\n"
15152 "                   const char *newvolgroup);\n"
15153 "\n"
15154 msgstr ""
15155
15156 # type: textblock
15157 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4463
15158 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15159 msgstr ""
15160
15161 # type: =head2
15162 #: ../src/guestfs-actions.pod:6659
15163 msgid "guestfs_vgs"
15164 msgstr ""
15165
15166 # type: verbatim
15167 #: ../src/guestfs-actions.pod:6661
15168 #, no-wrap
15169 msgid ""
15170 " char **\n"
15171 " guestfs_vgs (guestfs_h *g);\n"
15172 "\n"
15173 msgstr ""
15174
15175 # type: textblock
15176 #: ../src/guestfs-actions.pod:6664 ../fish/guestfish-actions.pod:4469
15177 msgid ""
15178 "List all the volumes groups detected.  This is the equivalent of the "
15179 "L<vgs(8)> command."
15180 msgstr ""
15181
15182 # type: textblock
15183 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4472
15184 msgid ""
15185 "This returns a list of just the volume group names that were detected "
15186 "(eg. C<VolGroup00>)."
15187 msgstr ""
15188
15189 # type: textblock
15190 #: ../src/guestfs-actions.pod:6670
15191 msgid "See also C<guestfs_vgs_full>."
15192 msgstr ""
15193
15194 # type: =head2
15195 #: ../src/guestfs-actions.pod:6678
15196 msgid "guestfs_vgs_full"
15197 msgstr ""
15198
15199 # type: verbatim
15200 #: ../src/guestfs-actions.pod:6680
15201 #, no-wrap
15202 msgid ""
15203 " struct guestfs_lvm_vg_list *\n"
15204 " guestfs_vgs_full (guestfs_h *g);\n"
15205 "\n"
15206 msgstr ""
15207
15208 # type: textblock
15209 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4481
15210 msgid ""
15211 "List all the volumes groups detected.  This is the equivalent of the "
15212 "L<vgs(8)> command.  The \"full\" version includes all fields."
15213 msgstr ""
15214
15215 # type: textblock
15216 #: ../src/guestfs-actions.pod:6686
15217 msgid ""
15218 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15219 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
15220 "use>."
15221 msgstr ""
15222
15223 # type: =head2
15224 #: ../src/guestfs-actions.pod:6692
15225 msgid "guestfs_vgscan"
15226 msgstr ""
15227
15228 # type: verbatim
15229 #: ../src/guestfs-actions.pod:6694
15230 #, no-wrap
15231 msgid ""
15232 " int\n"
15233 " guestfs_vgscan (guestfs_h *g);\n"
15234 "\n"
15235 msgstr ""
15236
15237 # type: textblock
15238 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4488
15239 msgid ""
15240 "This rescans all block devices and rebuilds the list of LVM physical "
15241 "volumes, volume groups and logical volumes."
15242 msgstr ""
15243
15244 # type: =head2
15245 #: ../src/guestfs-actions.pod:6704
15246 msgid "guestfs_vguuid"
15247 msgstr ""
15248
15249 # type: verbatim
15250 #: ../src/guestfs-actions.pod:6706
15251 #, no-wrap
15252 msgid ""
15253 " char *\n"
15254 " guestfs_vguuid (guestfs_h *g,\n"
15255 "                 const char *vgname);\n"
15256 "\n"
15257 msgstr ""
15258
15259 # type: textblock
15260 #: ../src/guestfs-actions.pod:6710 ../fish/guestfish-actions.pod:4495
15261 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15262 msgstr ""
15263
15264 # type: =head2
15265 #: ../src/guestfs-actions.pod:6717
15266 msgid "guestfs_wait_ready"
15267 msgstr ""
15268
15269 # type: verbatim
15270 #: ../src/guestfs-actions.pod:6719
15271 #, no-wrap
15272 msgid ""
15273 " int\n"
15274 " guestfs_wait_ready (guestfs_h *g);\n"
15275 "\n"
15276 msgstr ""
15277
15278 # type: textblock
15279 #: ../src/guestfs-actions.pod:6722
15280 msgid "This function is a no op."
15281 msgstr ""
15282
15283 # type: textblock
15284 #: ../src/guestfs-actions.pod:6724
15285 msgid ""
15286 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15287 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15288 "is no longer necessary because C<guestfs_launch> now does the waiting."
15289 msgstr ""
15290
15291 # type: textblock
15292 #: ../src/guestfs-actions.pod:6729
15293 msgid ""
15294 "If you see any calls to this function in code then you can just remove them, "
15295 "unless you want to retain compatibility with older versions of the API."
15296 msgstr ""
15297
15298 # type: =head2
15299 #: ../src/guestfs-actions.pod:6737
15300 msgid "guestfs_wc_c"
15301 msgstr ""
15302
15303 # type: verbatim
15304 #: ../src/guestfs-actions.pod:6739
15305 #, no-wrap
15306 msgid ""
15307 " int\n"
15308 " guestfs_wc_c (guestfs_h *g,\n"
15309 "               const char *path);\n"
15310 "\n"
15311 msgstr ""
15312
15313 # type: textblock
15314 #: ../src/guestfs-actions.pod:6743 ../fish/guestfish-actions.pod:4501
15315 msgid ""
15316 "This command counts the characters in a file, using the C<wc -c> external "
15317 "command."
15318 msgstr ""
15319
15320 # type: =head2
15321 #: ../src/guestfs-actions.pod:6750
15322 msgid "guestfs_wc_l"
15323 msgstr ""
15324
15325 # type: verbatim
15326 #: ../src/guestfs-actions.pod:6752
15327 #, no-wrap
15328 msgid ""
15329 " int\n"
15330 " guestfs_wc_l (guestfs_h *g,\n"
15331 "               const char *path);\n"
15332 "\n"
15333 msgstr ""
15334
15335 # type: textblock
15336 #: ../src/guestfs-actions.pod:6756 ../fish/guestfish-actions.pod:4508
15337 msgid ""
15338 "This command counts the lines in a file, using the C<wc -l> external "
15339 "command."
15340 msgstr ""
15341
15342 # type: =head2
15343 #: ../src/guestfs-actions.pod:6763
15344 msgid "guestfs_wc_w"
15345 msgstr ""
15346
15347 # type: verbatim
15348 #: ../src/guestfs-actions.pod:6765
15349 #, no-wrap
15350 msgid ""
15351 " int\n"
15352 " guestfs_wc_w (guestfs_h *g,\n"
15353 "               const char *path);\n"
15354 "\n"
15355 msgstr ""
15356
15357 # type: textblock
15358 #: ../src/guestfs-actions.pod:6769 ../fish/guestfish-actions.pod:4515
15359 msgid ""
15360 "This command counts the words in a file, using the C<wc -w> external "
15361 "command."
15362 msgstr ""
15363
15364 # type: =head2
15365 #: ../src/guestfs-actions.pod:6776
15366 msgid "guestfs_write"
15367 msgstr ""
15368
15369 # type: verbatim
15370 #: ../src/guestfs-actions.pod:6778
15371 #, no-wrap
15372 msgid ""
15373 " int\n"
15374 " guestfs_write (guestfs_h *g,\n"
15375 "                const char *path,\n"
15376 "                const char *content,\n"
15377 "                size_t content_size);\n"
15378 "\n"
15379 msgstr ""
15380
15381 # type: textblock
15382 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4522
15383 msgid ""
15384 "This call creates a file called C<path>.  The content of the file is the "
15385 "string C<content> (which can contain any 8 bit data)."
15386 msgstr ""
15387
15388 # type: =head2
15389 #: ../src/guestfs-actions.pod:6794
15390 msgid "guestfs_write_file"
15391 msgstr ""
15392
15393 # type: verbatim
15394 #: ../src/guestfs-actions.pod:6796
15395 #, no-wrap
15396 msgid ""
15397 " int\n"
15398 " guestfs_write_file (guestfs_h *g,\n"
15399 "                     const char *path,\n"
15400 "                     const char *content,\n"
15401 "                     int size);\n"
15402 "\n"
15403 msgstr ""
15404
15405 # type: textblock
15406 #: ../src/guestfs-actions.pod:6802 ../fish/guestfish-actions.pod:4532
15407 msgid ""
15408 "This call creates a file called C<path>.  The contents of the file is the "
15409 "string C<content> (which can contain any 8 bit data), with length C<size>."
15410 msgstr ""
15411
15412 # type: textblock
15413 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4536
15414 msgid ""
15415 "As a special case, if C<size> is C<0> then the length is calculated using "
15416 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15417 msgstr ""
15418
15419 # type: textblock
15420 #: ../src/guestfs-actions.pod:6810 ../fish/guestfish-actions.pod:4540
15421 msgid ""
15422 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15423 "I<not> work, even if the length is specified."
15424 msgstr ""
15425
15426 # type: textblock
15427 #: ../src/guestfs-actions.pod:6818 ../fish/guestfish-actions.pod:4546
15428 msgid "This function is deprecated.  In new code, use the C<write> call instead."
15429 msgstr ""
15430
15431 # type: =head2
15432 #: ../src/guestfs-actions.pod:6827
15433 msgid "guestfs_zegrep"
15434 msgstr ""
15435
15436 # type: verbatim
15437 #: ../src/guestfs-actions.pod:6829
15438 #, no-wrap
15439 msgid ""
15440 " char **\n"
15441 " guestfs_zegrep (guestfs_h *g,\n"
15442 "                 const char *regex,\n"
15443 "                 const char *path);\n"
15444 "\n"
15445 msgstr ""
15446
15447 # type: textblock
15448 #: ../src/guestfs-actions.pod:6834 ../fish/guestfish-actions.pod:4557
15449 msgid "This calls the external C<zegrep> program and returns the matching lines."
15450 msgstr ""
15451
15452 # type: =head2
15453 #: ../src/guestfs-actions.pod:6846
15454 msgid "guestfs_zegrepi"
15455 msgstr ""
15456
15457 # type: verbatim
15458 #: ../src/guestfs-actions.pod:6848
15459 #, no-wrap
15460 msgid ""
15461 " char **\n"
15462 " guestfs_zegrepi (guestfs_h *g,\n"
15463 "                  const char *regex,\n"
15464 "                  const char *path);\n"
15465 "\n"
15466 msgstr ""
15467
15468 # type: textblock
15469 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4567
15470 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15471 msgstr ""
15472
15473 # type: =head2
15474 #: ../src/guestfs-actions.pod:6865
15475 msgid "guestfs_zero"
15476 msgstr ""
15477
15478 # type: verbatim
15479 #: ../src/guestfs-actions.pod:6867
15480 #, no-wrap
15481 msgid ""
15482 " int\n"
15483 " guestfs_zero (guestfs_h *g,\n"
15484 "               const char *device);\n"
15485 "\n"
15486 msgstr ""
15487
15488 # type: textblock
15489 #: ../src/guestfs-actions.pod:6871 ../fish/guestfish-actions.pod:4577
15490 msgid "This command writes zeroes over the first few blocks of C<device>."
15491 msgstr ""
15492
15493 # type: textblock
15494 #: ../src/guestfs-actions.pod:6873 ../fish/guestfish-actions.pod:4579
15495 msgid ""
15496 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15497 "securely wipe the device).  It should be sufficient to remove any partition "
15498 "tables, filesystem superblocks and so on."
15499 msgstr ""
15500
15501 # type: textblock
15502 #: ../src/guestfs-actions.pod:6877
15503 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15504 msgstr ""
15505
15506 # type: =head2
15507 #: ../src/guestfs-actions.pod:6888
15508 msgid "guestfs_zero_device"
15509 msgstr ""
15510
15511 # type: verbatim
15512 #: ../src/guestfs-actions.pod:6890
15513 #, no-wrap
15514 msgid ""
15515 " int\n"
15516 " guestfs_zero_device (guestfs_h *g,\n"
15517 "                      const char *device);\n"
15518 "\n"
15519 msgstr ""
15520
15521 # type: textblock
15522 #: ../src/guestfs-actions.pod:6894
15523 msgid ""
15524 "This command writes zeroes over the entire C<device>.  Compare with "
15525 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15526 msgstr ""
15527
15528 # type: textblock
15529 #: ../src/guestfs-actions.pod:6908
15530 msgid "(Added in 1.3.1)"
15531 msgstr ""
15532
15533 # type: =head2
15534 #: ../src/guestfs-actions.pod:6910
15535 msgid "guestfs_zerofree"
15536 msgstr ""
15537
15538 # type: verbatim
15539 #: ../src/guestfs-actions.pod:6912
15540 #, no-wrap
15541 msgid ""
15542 " int\n"
15543 " guestfs_zerofree (guestfs_h *g,\n"
15544 "                   const char *device);\n"
15545 "\n"
15546 msgstr ""
15547
15548 # type: textblock
15549 #: ../src/guestfs-actions.pod:6916 ../fish/guestfish-actions.pod:4600
15550 msgid ""
15551 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15552 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15553 "possible to compress the filesystem more effectively."
15554 msgstr ""
15555
15556 # type: textblock
15557 #: ../src/guestfs-actions.pod:6921 ../fish/guestfish-actions.pod:4605
15558 msgid "You should B<not> run this program if the filesystem is mounted."
15559 msgstr ""
15560
15561 # type: textblock
15562 #: ../src/guestfs-actions.pod:6924 ../fish/guestfish-actions.pod:4608
15563 msgid ""
15564 "It is possible that using this program can damage the filesystem or data on "
15565 "the filesystem."
15566 msgstr ""
15567
15568 # type: =head2
15569 #: ../src/guestfs-actions.pod:6931
15570 msgid "guestfs_zfgrep"
15571 msgstr ""
15572
15573 # type: verbatim
15574 #: ../src/guestfs-actions.pod:6933
15575 #, no-wrap
15576 msgid ""
15577 " char **\n"
15578 " guestfs_zfgrep (guestfs_h *g,\n"
15579 "                 const char *pattern,\n"
15580 "                 const char *path);\n"
15581 "\n"
15582 msgstr ""
15583
15584 # type: textblock
15585 #: ../src/guestfs-actions.pod:6938 ../fish/guestfish-actions.pod:4615
15586 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15587 msgstr ""
15588
15589 # type: =head2
15590 #: ../src/guestfs-actions.pod:6950
15591 msgid "guestfs_zfgrepi"
15592 msgstr ""
15593
15594 # type: verbatim
15595 #: ../src/guestfs-actions.pod:6952
15596 #, no-wrap
15597 msgid ""
15598 " char **\n"
15599 " guestfs_zfgrepi (guestfs_h *g,\n"
15600 "                  const char *pattern,\n"
15601 "                  const char *path);\n"
15602 "\n"
15603 msgstr ""
15604
15605 # type: textblock
15606 #: ../src/guestfs-actions.pod:6957 ../fish/guestfish-actions.pod:4625
15607 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15608 msgstr ""
15609
15610 # type: =head2
15611 #: ../src/guestfs-actions.pod:6969
15612 msgid "guestfs_zfile"
15613 msgstr ""
15614
15615 # type: verbatim
15616 #: ../src/guestfs-actions.pod:6971
15617 #, no-wrap
15618 msgid ""
15619 " char *\n"
15620 " guestfs_zfile (guestfs_h *g,\n"
15621 "                const char *meth,\n"
15622 "                const char *path);\n"
15623 "\n"
15624 msgstr ""
15625
15626 # type: textblock
15627 #: ../src/guestfs-actions.pod:6976 ../fish/guestfish-actions.pod:4635
15628 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15629 msgstr ""
15630
15631 # type: textblock
15632 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4638
15633 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15634 msgstr ""
15635
15636 # type: textblock
15637 #: ../src/guestfs-actions.pod:6981
15638 msgid ""
15639 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15640 "files."
15641 msgstr ""
15642
15643 # type: textblock
15644 #: ../src/guestfs-actions.pod:6987 ../fish/guestfish-actions.pod:4643
15645 msgid "This function is deprecated.  In new code, use the C<file> call instead."
15646 msgstr ""
15647
15648 # type: =head2
15649 #: ../src/guestfs-actions.pod:6996
15650 msgid "guestfs_zgrep"
15651 msgstr ""
15652
15653 # type: verbatim
15654 #: ../src/guestfs-actions.pod:6998
15655 #, no-wrap
15656 msgid ""
15657 " char **\n"
15658 " guestfs_zgrep (guestfs_h *g,\n"
15659 "                const char *regex,\n"
15660 "                const char *path);\n"
15661 "\n"
15662 msgstr ""
15663
15664 # type: textblock
15665 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4654
15666 msgid "This calls the external C<zgrep> program and returns the matching lines."
15667 msgstr ""
15668
15669 # type: =head2
15670 #: ../src/guestfs-actions.pod:7015
15671 msgid "guestfs_zgrepi"
15672 msgstr ""
15673
15674 # type: verbatim
15675 #: ../src/guestfs-actions.pod:7017
15676 #, no-wrap
15677 msgid ""
15678 " char **\n"
15679 " guestfs_zgrepi (guestfs_h *g,\n"
15680 "                 const char *regex,\n"
15681 "                 const char *path);\n"
15682 "\n"
15683 msgstr ""
15684
15685 # type: textblock
15686 #: ../src/guestfs-actions.pod:7022 ../fish/guestfish-actions.pod:4664
15687 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15688 msgstr ""
15689
15690 # type: =item
15691 #: ../src/guestfs-availability.pod:3
15692 msgid "B<augeas>"
15693 msgstr ""
15694
15695 # type: textblock
15696 #: ../src/guestfs-availability.pod:5
15697 msgid ""
15698 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15699 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15700 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15701 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15702 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15703 msgstr ""
15704
15705 # type: =item
15706 #: ../src/guestfs-availability.pod:21
15707 msgid "B<inotify>"
15708 msgstr ""
15709
15710 # type: textblock
15711 #: ../src/guestfs-availability.pod:23
15712 msgid ""
15713 "The following functions: L</guestfs_inotify_add_watch> "
15714 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15715 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15716 msgstr ""
15717
15718 # type: =item
15719 #: ../src/guestfs-availability.pod:31
15720 msgid "B<linuxfsuuid>"
15721 msgstr ""
15722
15723 # type: textblock
15724 #: ../src/guestfs-availability.pod:33
15725 msgid ""
15726 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15727 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15728 msgstr ""
15729
15730 # type: =item
15731 #: ../src/guestfs-availability.pod:40
15732 msgid "B<linuxmodules>"
15733 msgstr ""
15734
15735 # type: textblock
15736 #: ../src/guestfs-availability.pod:42
15737 msgid "The following functions: L</guestfs_modprobe>"
15738 msgstr ""
15739
15740 # type: =item
15741 #: ../src/guestfs-availability.pod:45
15742 msgid "B<linuxxattrs>"
15743 msgstr ""
15744
15745 # type: textblock
15746 #: ../src/guestfs-availability.pod:47
15747 msgid ""
15748 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
15749 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
15750 "L</guestfs_removexattr> L</guestfs_setxattr>"
15751 msgstr ""
15752
15753 # type: =item
15754 #: ../src/guestfs-availability.pod:56
15755 msgid "B<luks>"
15756 msgstr ""
15757
15758 # type: textblock
15759 #: ../src/guestfs-availability.pod:58
15760 msgid ""
15761 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
15762 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
15763 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15764 msgstr ""
15765
15766 # type: =item
15767 #: ../src/guestfs-availability.pod:67
15768 msgid "B<lvm2>"
15769 msgstr ""
15770
15771 # type: textblock
15772 #: ../src/guestfs-availability.pod:69
15773 msgid ""
15774 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
15775 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
15776 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
15777 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
15778 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
15779 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
15780 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
15781 "L</guestfs_vgs_full>"
15782 msgstr ""
15783
15784 # type: =item
15785 #: ../src/guestfs-availability.pod:92
15786 msgid "B<mknod>"
15787 msgstr ""
15788
15789 # type: textblock
15790 #: ../src/guestfs-availability.pod:94
15791 msgid ""
15792 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
15793 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
15794 msgstr ""
15795
15796 # type: =item
15797 #: ../src/guestfs-availability.pod:100
15798 msgid "B<ntfs3g>"
15799 msgstr ""
15800
15801 # type: textblock
15802 #: ../src/guestfs-availability.pod:102
15803 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15804 msgstr ""
15805
15806 # type: =item
15807 #: ../src/guestfs-availability.pod:105
15808 msgid "B<ntfsprogs>"
15809 msgstr ""
15810
15811 # type: textblock
15812 #: ../src/guestfs-availability.pod:107
15813 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15814 msgstr ""
15815
15816 # type: =item
15817 #: ../src/guestfs-availability.pod:111
15818 msgid "B<realpath>"
15819 msgstr ""
15820
15821 # type: textblock
15822 #: ../src/guestfs-availability.pod:113
15823 msgid "The following functions: L</guestfs_realpath>"
15824 msgstr ""
15825
15826 # type: =item
15827 #: ../src/guestfs-availability.pod:116
15828 msgid "B<scrub>"
15829 msgstr ""
15830
15831 # type: textblock
15832 #: ../src/guestfs-availability.pod:118
15833 msgid ""
15834 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
15835 "L</guestfs_scrub_freespace>"
15836 msgstr ""
15837
15838 # type: =item
15839 #: ../src/guestfs-availability.pod:123
15840 msgid "B<selinux>"
15841 msgstr ""
15842
15843 # type: textblock
15844 #: ../src/guestfs-availability.pod:125
15845 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15846 msgstr ""
15847
15848 # type: =item
15849 #: ../src/guestfs-availability.pod:129
15850 msgid "B<xz>"
15851 msgstr ""
15852
15853 # type: textblock
15854 #: ../src/guestfs-availability.pod:131
15855 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15856 msgstr ""
15857
15858 # type: =item
15859 #: ../src/guestfs-availability.pod:135
15860 msgid "B<zerofree>"
15861 msgstr ""
15862
15863 # type: textblock
15864 #: ../src/guestfs-availability.pod:137
15865 msgid "The following functions: L</guestfs_zerofree>"
15866 msgstr ""
15867
15868 # type: =head2
15869 #: ../src/guestfs-structs.pod:1
15870 msgid "guestfs_int_bool"
15871 msgstr ""
15872
15873 # type: verbatim
15874 #: ../src/guestfs-structs.pod:3
15875 #, no-wrap
15876 msgid ""
15877 " struct guestfs_int_bool {\n"
15878 "   int32_t i;\n"
15879 "   int32_t b;\n"
15880 " };\n"
15881 " \n"
15882 msgstr ""
15883
15884 # type: verbatim
15885 #: ../src/guestfs-structs.pod:8
15886 #, no-wrap
15887 msgid ""
15888 " struct guestfs_int_bool_list {\n"
15889 "   uint32_t len; /* Number of elements in list. */\n"
15890 "   struct guestfs_int_bool *val; /* Elements. */\n"
15891 " };\n"
15892 " \n"
15893 msgstr ""
15894
15895 # type: verbatim
15896 #: ../src/guestfs-structs.pod:13
15897 #, no-wrap
15898 msgid ""
15899 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15900 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15901 "\n"
15902 msgstr ""
15903
15904 # type: =head2
15905 #: ../src/guestfs-structs.pod:16
15906 msgid "guestfs_lvm_pv"
15907 msgstr ""
15908
15909 # type: verbatim
15910 #: ../src/guestfs-structs.pod:18
15911 #, no-wrap
15912 msgid ""
15913 " struct guestfs_lvm_pv {\n"
15914 "   char *pv_name;\n"
15915 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15916 "*/\n"
15917 "   char pv_uuid[32];\n"
15918 "   char *pv_fmt;\n"
15919 "   uint64_t pv_size;\n"
15920 "   uint64_t dev_size;\n"
15921 "   uint64_t pv_free;\n"
15922 "   uint64_t pv_used;\n"
15923 "   char *pv_attr;\n"
15924 "   int64_t pv_pe_count;\n"
15925 "   int64_t pv_pe_alloc_count;\n"
15926 "   char *pv_tags;\n"
15927 "   uint64_t pe_start;\n"
15928 "   int64_t pv_mda_count;\n"
15929 "   uint64_t pv_mda_free;\n"
15930 " };\n"
15931 " \n"
15932 msgstr ""
15933
15934 # type: verbatim
15935 #: ../src/guestfs-structs.pod:36
15936 #, no-wrap
15937 msgid ""
15938 " struct guestfs_lvm_pv_list {\n"
15939 "   uint32_t len; /* Number of elements in list. */\n"
15940 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15941 " };\n"
15942 " \n"
15943 msgstr ""
15944
15945 # type: verbatim
15946 #: ../src/guestfs-structs.pod:41
15947 #, no-wrap
15948 msgid ""
15949 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15950 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15951 "\n"
15952 msgstr ""
15953
15954 # type: =head2
15955 #: ../src/guestfs-structs.pod:44
15956 msgid "guestfs_lvm_vg"
15957 msgstr ""
15958
15959 # type: verbatim
15960 #: ../src/guestfs-structs.pod:46
15961 #, no-wrap
15962 msgid ""
15963 " struct guestfs_lvm_vg {\n"
15964 "   char *vg_name;\n"
15965 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15966 "*/\n"
15967 "   char vg_uuid[32];\n"
15968 "   char *vg_fmt;\n"
15969 "   char *vg_attr;\n"
15970 "   uint64_t vg_size;\n"
15971 "   uint64_t vg_free;\n"
15972 "   char *vg_sysid;\n"
15973 "   uint64_t vg_extent_size;\n"
15974 "   int64_t vg_extent_count;\n"
15975 "   int64_t vg_free_count;\n"
15976 "   int64_t max_lv;\n"
15977 "   int64_t max_pv;\n"
15978 "   int64_t pv_count;\n"
15979 "   int64_t lv_count;\n"
15980 "   int64_t snap_count;\n"
15981 "   int64_t vg_seqno;\n"
15982 "   char *vg_tags;\n"
15983 "   int64_t vg_mda_count;\n"
15984 "   uint64_t vg_mda_free;\n"
15985 " };\n"
15986 " \n"
15987 msgstr ""
15988
15989 # type: verbatim
15990 #: ../src/guestfs-structs.pod:69
15991 #, no-wrap
15992 msgid ""
15993 " struct guestfs_lvm_vg_list {\n"
15994 "   uint32_t len; /* Number of elements in list. */\n"
15995 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15996 " };\n"
15997 " \n"
15998 msgstr ""
15999
16000 # type: verbatim
16001 #: ../src/guestfs-structs.pod:74
16002 #, no-wrap
16003 msgid ""
16004 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16005 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16006 "\n"
16007 msgstr ""
16008
16009 # type: =head2
16010 #: ../src/guestfs-structs.pod:77
16011 msgid "guestfs_lvm_lv"
16012 msgstr ""
16013
16014 # type: verbatim
16015 #: ../src/guestfs-structs.pod:79
16016 #, no-wrap
16017 msgid ""
16018 " struct guestfs_lvm_lv {\n"
16019 "   char *lv_name;\n"
16020 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16021 "*/\n"
16022 "   char lv_uuid[32];\n"
16023 "   char *lv_attr;\n"
16024 "   int64_t lv_major;\n"
16025 "   int64_t lv_minor;\n"
16026 "   int64_t lv_kernel_major;\n"
16027 "   int64_t lv_kernel_minor;\n"
16028 "   uint64_t lv_size;\n"
16029 "   int64_t seg_count;\n"
16030 "   char *origin;\n"
16031 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16032 "   float snap_percent;\n"
16033 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16034 "   float copy_percent;\n"
16035 "   char *move_pv;\n"
16036 "   char *lv_tags;\n"
16037 "   char *mirror_log;\n"
16038 "   char *modules;\n"
16039 " };\n"
16040 " \n"
16041 msgstr ""
16042
16043 # type: verbatim
16044 #: ../src/guestfs-structs.pod:101
16045 #, no-wrap
16046 msgid ""
16047 " struct guestfs_lvm_lv_list {\n"
16048 "   uint32_t len; /* Number of elements in list. */\n"
16049 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16050 " };\n"
16051 " \n"
16052 msgstr ""
16053
16054 # type: verbatim
16055 #: ../src/guestfs-structs.pod:106
16056 #, no-wrap
16057 msgid ""
16058 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16059 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16060 "\n"
16061 msgstr ""
16062
16063 # type: verbatim
16064 #: ../src/guestfs-structs.pod:111
16065 #, no-wrap
16066 msgid ""
16067 " struct guestfs_stat {\n"
16068 "   int64_t dev;\n"
16069 "   int64_t ino;\n"
16070 "   int64_t mode;\n"
16071 "   int64_t nlink;\n"
16072 "   int64_t uid;\n"
16073 "   int64_t gid;\n"
16074 "   int64_t rdev;\n"
16075 "   int64_t size;\n"
16076 "   int64_t blksize;\n"
16077 "   int64_t blocks;\n"
16078 "   int64_t atime;\n"
16079 "   int64_t mtime;\n"
16080 "   int64_t ctime;\n"
16081 " };\n"
16082 " \n"
16083 msgstr ""
16084
16085 # type: verbatim
16086 #: ../src/guestfs-structs.pod:127
16087 #, no-wrap
16088 msgid ""
16089 " struct guestfs_stat_list {\n"
16090 "   uint32_t len; /* Number of elements in list. */\n"
16091 "   struct guestfs_stat *val; /* Elements. */\n"
16092 " };\n"
16093 " \n"
16094 msgstr ""
16095
16096 # type: verbatim
16097 #: ../src/guestfs-structs.pod:132
16098 #, no-wrap
16099 msgid ""
16100 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16101 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16102 "\n"
16103 msgstr ""
16104
16105 # type: verbatim
16106 #: ../src/guestfs-structs.pod:137
16107 #, no-wrap
16108 msgid ""
16109 " struct guestfs_statvfs {\n"
16110 "   int64_t bsize;\n"
16111 "   int64_t frsize;\n"
16112 "   int64_t blocks;\n"
16113 "   int64_t bfree;\n"
16114 "   int64_t bavail;\n"
16115 "   int64_t files;\n"
16116 "   int64_t ffree;\n"
16117 "   int64_t favail;\n"
16118 "   int64_t fsid;\n"
16119 "   int64_t flag;\n"
16120 "   int64_t namemax;\n"
16121 " };\n"
16122 " \n"
16123 msgstr ""
16124
16125 # type: verbatim
16126 #: ../src/guestfs-structs.pod:151
16127 #, no-wrap
16128 msgid ""
16129 " struct guestfs_statvfs_list {\n"
16130 "   uint32_t len; /* Number of elements in list. */\n"
16131 "   struct guestfs_statvfs *val; /* Elements. */\n"
16132 " };\n"
16133 " \n"
16134 msgstr ""
16135
16136 # type: verbatim
16137 #: ../src/guestfs-structs.pod:156
16138 #, no-wrap
16139 msgid ""
16140 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16141 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16142 "\n"
16143 msgstr ""
16144
16145 # type: =head2
16146 #: ../src/guestfs-structs.pod:159
16147 msgid "guestfs_dirent"
16148 msgstr ""
16149
16150 # type: verbatim
16151 #: ../src/guestfs-structs.pod:161
16152 #, no-wrap
16153 msgid ""
16154 " struct guestfs_dirent {\n"
16155 "   int64_t ino;\n"
16156 "   char ftyp;\n"
16157 "   char *name;\n"
16158 " };\n"
16159 " \n"
16160 msgstr ""
16161
16162 # type: verbatim
16163 #: ../src/guestfs-structs.pod:167
16164 #, no-wrap
16165 msgid ""
16166 " struct guestfs_dirent_list {\n"
16167 "   uint32_t len; /* Number of elements in list. */\n"
16168 "   struct guestfs_dirent *val; /* Elements. */\n"
16169 " };\n"
16170 " \n"
16171 msgstr ""
16172
16173 # type: verbatim
16174 #: ../src/guestfs-structs.pod:172
16175 #, no-wrap
16176 msgid ""
16177 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16178 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16179 "\n"
16180 msgstr ""
16181
16182 # type: verbatim
16183 #: ../src/guestfs-structs.pod:177
16184 #, no-wrap
16185 msgid ""
16186 " struct guestfs_version {\n"
16187 "   int64_t major;\n"
16188 "   int64_t minor;\n"
16189 "   int64_t release;\n"
16190 "   char *extra;\n"
16191 " };\n"
16192 " \n"
16193 msgstr ""
16194
16195 # type: verbatim
16196 #: ../src/guestfs-structs.pod:184
16197 #, no-wrap
16198 msgid ""
16199 " struct guestfs_version_list {\n"
16200 "   uint32_t len; /* Number of elements in list. */\n"
16201 "   struct guestfs_version *val; /* Elements. */\n"
16202 " };\n"
16203 " \n"
16204 msgstr ""
16205
16206 # type: verbatim
16207 #: ../src/guestfs-structs.pod:189
16208 #, no-wrap
16209 msgid ""
16210 " void guestfs_free_version (struct guestfs_free_version *);\n"
16211 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16212 "\n"
16213 msgstr ""
16214
16215 # type: =head2
16216 #: ../src/guestfs-structs.pod:192
16217 msgid "guestfs_xattr"
16218 msgstr ""
16219
16220 # type: verbatim
16221 #: ../src/guestfs-structs.pod:194
16222 #, no-wrap
16223 msgid ""
16224 " struct guestfs_xattr {\n"
16225 "   char *attrname;\n"
16226 "   /* The next two fields describe a byte array. */\n"
16227 "   uint32_t attrval_len;\n"
16228 "   char *attrval;\n"
16229 " };\n"
16230 " \n"
16231 msgstr ""
16232
16233 # type: verbatim
16234 #: ../src/guestfs-structs.pod:201
16235 #, no-wrap
16236 msgid ""
16237 " struct guestfs_xattr_list {\n"
16238 "   uint32_t len; /* Number of elements in list. */\n"
16239 "   struct guestfs_xattr *val; /* Elements. */\n"
16240 " };\n"
16241 " \n"
16242 msgstr ""
16243
16244 # type: verbatim
16245 #: ../src/guestfs-structs.pod:206
16246 #, no-wrap
16247 msgid ""
16248 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16249 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16250 "\n"
16251 msgstr ""
16252
16253 # type: =head2
16254 #: ../src/guestfs-structs.pod:209
16255 msgid "guestfs_inotify_event"
16256 msgstr ""
16257
16258 # type: verbatim
16259 #: ../src/guestfs-structs.pod:211
16260 #, no-wrap
16261 msgid ""
16262 " struct guestfs_inotify_event {\n"
16263 "   int64_t in_wd;\n"
16264 "   uint32_t in_mask;\n"
16265 "   uint32_t in_cookie;\n"
16266 "   char *in_name;\n"
16267 " };\n"
16268 " \n"
16269 msgstr ""
16270
16271 # type: verbatim
16272 #: ../src/guestfs-structs.pod:218
16273 #, no-wrap
16274 msgid ""
16275 " struct guestfs_inotify_event_list {\n"
16276 "   uint32_t len; /* Number of elements in list. */\n"
16277 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16278 " };\n"
16279 " \n"
16280 msgstr ""
16281
16282 # type: verbatim
16283 #: ../src/guestfs-structs.pod:223
16284 #, no-wrap
16285 msgid ""
16286 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16287 " void guestfs_free_inotify_event_list (struct "
16288 "guestfs_free_inotify_event_list *);\n"
16289 "\n"
16290 msgstr ""
16291
16292 # type: =head2
16293 #: ../src/guestfs-structs.pod:226
16294 msgid "guestfs_partition"
16295 msgstr ""
16296
16297 # type: verbatim
16298 #: ../src/guestfs-structs.pod:228
16299 #, no-wrap
16300 msgid ""
16301 " struct guestfs_partition {\n"
16302 "   int32_t part_num;\n"
16303 "   uint64_t part_start;\n"
16304 "   uint64_t part_end;\n"
16305 "   uint64_t part_size;\n"
16306 " };\n"
16307 " \n"
16308 msgstr ""
16309
16310 # type: verbatim
16311 #: ../src/guestfs-structs.pod:235
16312 #, no-wrap
16313 msgid ""
16314 " struct guestfs_partition_list {\n"
16315 "   uint32_t len; /* Number of elements in list. */\n"
16316 "   struct guestfs_partition *val; /* Elements. */\n"
16317 " };\n"
16318 " \n"
16319 msgstr ""
16320
16321 # type: verbatim
16322 #: ../src/guestfs-structs.pod:240
16323 #, no-wrap
16324 msgid ""
16325 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16326 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16327 "\n"
16328 msgstr ""
16329
16330 # type: =head2
16331 #: ../src/guestfs-structs.pod:243
16332 msgid "guestfs_application"
16333 msgstr ""
16334
16335 # type: verbatim
16336 #: ../src/guestfs-structs.pod:245
16337 #, no-wrap
16338 msgid ""
16339 " struct guestfs_application {\n"
16340 "   char *app_name;\n"
16341 "   char *app_display_name;\n"
16342 "   int32_t app_epoch;\n"
16343 "   char *app_version;\n"
16344 "   char *app_release;\n"
16345 "   char *app_install_path;\n"
16346 "   char *app_trans_path;\n"
16347 "   char *app_publisher;\n"
16348 "   char *app_url;\n"
16349 "   char *app_source_package;\n"
16350 "   char *app_summary;\n"
16351 "   char *app_description;\n"
16352 " };\n"
16353 " \n"
16354 msgstr ""
16355
16356 # type: verbatim
16357 #: ../src/guestfs-structs.pod:260
16358 #, no-wrap
16359 msgid ""
16360 " struct guestfs_application_list {\n"
16361 "   uint32_t len; /* Number of elements in list. */\n"
16362 "   struct guestfs_application *val; /* Elements. */\n"
16363 " };\n"
16364 " \n"
16365 msgstr ""
16366
16367 # type: verbatim
16368 #: ../src/guestfs-structs.pod:265
16369 #, no-wrap
16370 msgid ""
16371 " void guestfs_free_application (struct guestfs_free_application *);\n"
16372 " void guestfs_free_application_list (struct guestfs_free_application_list "
16373 "*);\n"
16374 "\n"
16375 msgstr ""
16376
16377 # type: textblock
16378 #: ../fish/guestfish.pod:5
16379 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16380 msgstr ""
16381
16382 # type: verbatim
16383 #: ../fish/guestfish.pod:9
16384 #, no-wrap
16385 msgid ""
16386 " guestfish [--options] [commands]\n"
16387 "\n"
16388 msgstr ""
16389
16390 # type: verbatim
16391 #: ../fish/guestfish.pod:11
16392 #, no-wrap
16393 msgid ""
16394 " guestfish\n"
16395 "\n"
16396 msgstr ""
16397
16398 # type: verbatim
16399 #: ../fish/guestfish.pod:13
16400 #, no-wrap
16401 msgid ""
16402 " guestfish [--ro|--rw] -a disk.img\n"
16403 "\n"
16404 msgstr ""
16405
16406 # type: verbatim
16407 #: ../fish/guestfish.pod:15
16408 #, no-wrap
16409 msgid ""
16410 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16411 "\n"
16412 msgstr ""
16413
16414 # type: verbatim
16415 #: ../fish/guestfish.pod:17
16416 #, no-wrap
16417 msgid ""
16418 " guestfish -d libvirt-domain\n"
16419 "\n"
16420 msgstr ""
16421
16422 # type: verbatim
16423 #: ../fish/guestfish.pod:19
16424 #, no-wrap
16425 msgid ""
16426 " guestfish [--ro|--rw] -a disk.img -i\n"
16427 "\n"
16428 msgstr ""
16429
16430 # type: verbatim
16431 #: ../fish/guestfish.pod:21
16432 #, no-wrap
16433 msgid ""
16434 " guestfish -d libvirt-domain -i\n"
16435 "\n"
16436 msgstr ""
16437
16438 # type: =head1
16439 #: ../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
16440 msgid "WARNING"
16441 msgstr ""
16442
16443 # type: textblock
16444 #: ../fish/guestfish.pod:25
16445 msgid ""
16446 "Using guestfish in read/write mode on live virtual machines can be "
16447 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16448 "option to use guestfish safely if the disk image or virtual machine might be "
16449 "live."
16450 msgstr ""
16451
16452 # type: textblock
16453 #: ../fish/guestfish.pod:32
16454 msgid ""
16455 "Guestfish is a shell and command-line tool for examining and modifying "
16456 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16457 "functionality of the guestfs API, see L<guestfs(3)>."
16458 msgstr ""
16459
16460 # type: textblock
16461 #: ../fish/guestfish.pod:36
16462 msgid ""
16463 "Guestfish gives you structured access to the libguestfs API, from shell "
16464 "scripts or the command line or interactively.  If you want to rescue a "
16465 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16466 "command."
16467 msgstr ""
16468
16469 # type: =head1
16470 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:846 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58 ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:45
16471 msgid "EXAMPLES"
16472 msgstr ""
16473
16474 # type: =head2
16475 #: ../fish/guestfish.pod:43
16476 msgid "As an interactive shell"
16477 msgstr ""
16478
16479 # type: verbatim
16480 #: ../fish/guestfish.pod:45
16481 #, no-wrap
16482 msgid ""
16483 " $ guestfish\n"
16484 " \n"
16485 msgstr ""
16486
16487 # type: verbatim
16488 #: ../fish/guestfish.pod:47
16489 #, no-wrap
16490 msgid ""
16491 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16492 " editing virtual machine filesystems.\n"
16493 " \n"
16494 msgstr ""
16495
16496 # type: verbatim
16497 #: ../fish/guestfish.pod:50
16498 #, no-wrap
16499 msgid ""
16500 " Type: 'help' for a list of commands\n"
16501 "       'man' to read the manual\n"
16502 "       'quit' to quit the shell\n"
16503 " \n"
16504 msgstr ""
16505
16506 # type: verbatim
16507 #: ../fish/guestfish.pod:54
16508 #, no-wrap
16509 msgid ""
16510 " ><fs> add-ro disk.img\n"
16511 " ><fs> run\n"
16512 " ><fs> list-filesystems\n"
16513 " /dev/sda1: ext4\n"
16514 " /dev/vg_guest/lv_root: ext4\n"
16515 " /dev/vg_guest/lv_swap: swap\n"
16516 " ><fs> mount /dev/vg_guest/lv_root /\n"
16517 " ><fs> cat /etc/fstab\n"
16518 " # /etc/fstab\n"
16519 " # Created by anaconda\n"
16520 " [...]\n"
16521 " ><fs> exit\n"
16522 "\n"
16523 msgstr ""
16524
16525 # type: =head2
16526 #: ../fish/guestfish.pod:67
16527 msgid "From shell scripts"
16528 msgstr ""
16529
16530 # type: textblock
16531 #: ../fish/guestfish.pod:69
16532 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16533 msgstr ""
16534
16535 # type: verbatim
16536 #: ../fish/guestfish.pod:71
16537 #, no-wrap
16538 msgid ""
16539 " guestfish <<_EOF_\n"
16540 " add disk.img\n"
16541 " run\n"
16542 " mount /dev/vg_guest/lv_root /\n"
16543 " write /etc/motd \"Welcome, new users\"\n"
16544 " _EOF_\n"
16545 "\n"
16546 msgstr ""
16547
16548 # type: textblock
16549 #: ../fish/guestfish.pod:78
16550 msgid "List the LVM logical volumes in a disk image:"
16551 msgstr ""
16552
16553 # type: verbatim
16554 #: ../fish/guestfish.pod:80
16555 #, no-wrap
16556 msgid ""
16557 " guestfish -a disk.img --ro <<_EOF_\n"
16558 " run\n"
16559 " lvs\n"
16560 " _EOF_\n"
16561 "\n"
16562 msgstr ""
16563
16564 # type: textblock
16565 #: ../fish/guestfish.pod:85
16566 msgid "List all the filesystems in a disk image:"
16567 msgstr ""
16568
16569 # type: verbatim
16570 #: ../fish/guestfish.pod:87
16571 #, no-wrap
16572 msgid ""
16573 " guestfish -a disk.img --ro <<_EOF_\n"
16574 " run\n"
16575 " list-filesystems\n"
16576 " _EOF_\n"
16577 "\n"
16578 msgstr ""
16579
16580 # type: =head2
16581 #: ../fish/guestfish.pod:92
16582 msgid "On one command line"
16583 msgstr ""
16584
16585 # type: textblock
16586 #: ../fish/guestfish.pod:94
16587 msgid "Update C</etc/resolv.conf> in a guest:"
16588 msgstr ""
16589
16590 # type: verbatim
16591 #: ../fish/guestfish.pod:96
16592 #, no-wrap
16593 msgid ""
16594 " guestfish \\\n"
16595 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16596 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16597 "\n"
16598 msgstr ""
16599
16600 # type: textblock
16601 #: ../fish/guestfish.pod:100
16602 msgid "Edit C</boot/grub/grub.conf> interactively:"
16603 msgstr ""
16604
16605 # type: verbatim
16606 #: ../fish/guestfish.pod:102
16607 #, no-wrap
16608 msgid ""
16609 " guestfish --rw --add disk.img \\\n"
16610 "   --mount /dev/vg_guest/lv_root \\\n"
16611 "   --mount /dev/sda1:/boot \\\n"
16612 "   edit /boot/grub/grub.conf\n"
16613 "\n"
16614 msgstr ""
16615
16616 # type: =head2
16617 #: ../fish/guestfish.pod:107
16618 msgid "Mount disks automatically"
16619 msgstr ""
16620
16621 # type: textblock
16622 #: ../fish/guestfish.pod:109
16623 msgid ""
16624 "Use the I<-i> option to automatically mount the disks from a virtual "
16625 "machine:"
16626 msgstr ""
16627
16628 # type: verbatim
16629 #: ../fish/guestfish.pod:112
16630 #, no-wrap
16631 msgid ""
16632 " guestfish --ro -a disk.img -i cat /etc/group\n"
16633 "\n"
16634 msgstr ""
16635
16636 # type: verbatim
16637 #: ../fish/guestfish.pod:114
16638 #, no-wrap
16639 msgid ""
16640 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16641 "\n"
16642 msgstr ""
16643
16644 # type: textblock
16645 #: ../fish/guestfish.pod:116
16646 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16647 msgstr ""
16648
16649 # type: verbatim
16650 #: ../fish/guestfish.pod:118
16651 #, no-wrap
16652 msgid ""
16653 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16654 "\n"
16655 msgstr ""
16656
16657 # type: =head2
16658 #: ../fish/guestfish.pod:120
16659 msgid "As a script interpreter"
16660 msgstr ""
16661
16662 # type: textblock
16663 #: ../fish/guestfish.pod:122
16664 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16665 msgstr ""
16666
16667 # type: verbatim
16668 #: ../fish/guestfish.pod:124
16669 #, no-wrap
16670 msgid ""
16671 " #!/usr/bin/guestfish -f\n"
16672 " sparse test1.img 100M\n"
16673 " run\n"
16674 " part-disk /dev/sda mbr\n"
16675 " mkfs ext2 /dev/sda1\n"
16676 "\n"
16677 msgstr ""
16678
16679 # type: =head2
16680 #: ../fish/guestfish.pod:130
16681 msgid "Start with a prepared disk"
16682 msgstr ""
16683
16684 # type: textblock
16685 #: ../fish/guestfish.pod:132
16686 msgid ""
16687 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16688 "single ext2-formatted partition:"
16689 msgstr ""
16690
16691 # type: verbatim
16692 #: ../fish/guestfish.pod:135
16693 #, no-wrap
16694 msgid ""
16695 " guestfish -N fs\n"
16696 "\n"
16697 msgstr ""
16698
16699 # type: textblock
16700 #: ../fish/guestfish.pod:137
16701 msgid "To list what is available do:"
16702 msgstr ""
16703
16704 # type: verbatim
16705 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
16706 #, no-wrap
16707 msgid ""
16708 " guestfish -N help | less\n"
16709 "\n"
16710 msgstr ""
16711
16712 # type: =head2
16713 #: ../fish/guestfish.pod:141
16714 msgid "Remote control"
16715 msgstr ""
16716
16717 # type: verbatim
16718 #: ../fish/guestfish.pod:143
16719 #, no-wrap
16720 msgid ""
16721 " eval \"`guestfish --listen`\"\n"
16722 " guestfish --remote add-ro disk.img\n"
16723 " guestfish --remote run\n"
16724 " guestfish --remote lvs\n"
16725 "\n"
16726 msgstr ""
16727
16728 # type: =head1
16729 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73 ../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-tar.pl:98 ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
16730 msgid "OPTIONS"
16731 msgstr ""
16732
16733 # type: =item
16734 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131 ../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-tar.pl:106 ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
16735 msgid "B<--help>"
16736 msgstr ""
16737
16738 # type: textblock
16739 #: ../fish/guestfish.pod:154
16740 msgid "Displays general help on options."
16741 msgstr ""
16742
16743 # type: =item
16744 #: ../fish/guestfish.pod:156
16745 msgid "B<-h> | B<--cmd-help>"
16746 msgstr ""
16747
16748 # type: textblock
16749 #: ../fish/guestfish.pod:158
16750 msgid "Lists all available guestfish commands."
16751 msgstr ""
16752
16753 # type: =item
16754 #: ../fish/guestfish.pod:160
16755 msgid "B<-h cmd> | B<--cmd-help cmd>"
16756 msgstr ""
16757
16758 # type: textblock
16759 #: ../fish/guestfish.pod:162
16760 msgid "Displays detailed help on a single command C<cmd>."
16761 msgstr ""
16762
16763 # type: =item
16764 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16765 msgid "B<-a image> | B<--add image>"
16766 msgstr ""
16767
16768 # type: textblock
16769 #: ../fish/guestfish.pod:166
16770 msgid "Add a block device or virtual machine image to the shell."
16771 msgstr ""
16772
16773 # type: textblock
16774 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16775 msgid ""
16776 "The format of the disk image is auto-detected.  To override this and force a "
16777 "particular format use the I<--format=..> option."
16778 msgstr ""
16779
16780 # type: =item
16781 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16782 msgid "B<-c URI> | B<--connect URI>"
16783 msgstr ""
16784
16785 # type: textblock
16786 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16787 msgid ""
16788 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16789 "URI to use.  The default is to use the default libvirt connection."
16790 msgstr ""
16791
16792 # type: =item
16793 #: ../fish/guestfish.pod:177
16794 msgid "B<--csh>"
16795 msgstr ""
16796
16797 # type: textblock
16798 #: ../fish/guestfish.pod:179
16799 msgid ""
16800 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16801 "section L</REMOTE CONTROL AND CSH> below."
16802 msgstr ""
16803
16804 # type: =item
16805 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16806 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16807 msgstr ""
16808
16809 # type: textblock
16810 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16811 msgid ""
16812 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16813 "used, then any libvirt domain can be used.  However in write mode, only "
16814 "libvirt domains which are shut down can be named here."
16815 msgstr ""
16816
16817 # type: =item
16818 #: ../fish/guestfish.pod:188
16819 msgid "B<-D> | B<--no-dest-paths>"
16820 msgstr ""
16821
16822 # type: textblock
16823 #: ../fish/guestfish.pod:190
16824 msgid ""
16825 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16826 "to hit the tab key to complete paths on the guest filesystem, but this "
16827 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16828 "allow this feature to be disabled."
16829 msgstr ""
16830
16831 # type: =item
16832 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16833 msgid "B<--echo-keys>"
16834 msgstr ""
16835
16836 # type: textblock
16837 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16838 msgid ""
16839 "When prompting for keys and passphrases, guestfish normally turns echoing "
16840 "off so you cannot see what you are typing.  If you are not worried about "
16841 "Tempest attacks and there is no one else in the room you can specify this "
16842 "flag to see what you are typing."
16843 msgstr ""
16844
16845 # type: =item
16846 #: ../fish/guestfish.pod:202
16847 msgid "B<-f file> | B<--file file>"
16848 msgstr ""
16849
16850 # type: textblock
16851 #: ../fish/guestfish.pod:204
16852 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16853 msgstr ""
16854
16855 # type: verbatim
16856 #: ../fish/guestfish.pod:207
16857 #, no-wrap
16858 msgid ""
16859 " #!/usr/bin/guestfish -f\n"
16860 "\n"
16861 msgstr ""
16862
16863 # type: =item
16864 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16865 msgid "B<--format=raw|qcow2|..> | B<--format>"
16866 msgstr ""
16867
16868 # type: textblock
16869 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
16870 msgid ""
16871 "The default for the I<-a> option is to auto-detect the format of the disk "
16872 "image.  Using this forces the disk format for I<-a> options which follow on "
16873 "the command line.  Using I<--format> with no argument switches back to "
16874 "auto-detection for subsequent I<-a> options."
16875 msgstr ""
16876
16877 # type: textblock
16878 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543
16879 msgid "For example:"
16880 msgstr ""
16881
16882 # type: verbatim
16883 #: ../fish/guestfish.pod:218
16884 #, no-wrap
16885 msgid ""
16886 " guestfish --format=raw -a disk.img\n"
16887 "\n"
16888 msgstr ""
16889
16890 # type: textblock
16891 #: ../fish/guestfish.pod:220
16892 msgid "forces raw format (no auto-detection) for C<disk.img>."
16893 msgstr ""
16894
16895 # type: verbatim
16896 #: ../fish/guestfish.pod:222
16897 #, no-wrap
16898 msgid ""
16899 " guestfish --format=raw -a disk.img --format -a another.img\n"
16900 "\n"
16901 msgstr ""
16902
16903 # type: textblock
16904 #: ../fish/guestfish.pod:224
16905 msgid ""
16906 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
16907 "auto-detection for C<another.img>."
16908 msgstr ""
16909
16910 # type: textblock
16911 #: ../fish/guestfish.pod:227
16912 msgid ""
16913 "If you have untrusted raw-format guest disk images, you should use this "
16914 "option to specify the disk format.  This avoids a possible security problem "
16915 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16916 msgstr ""
16917
16918 # type: =item
16919 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
16920 msgid "B<-i> | B<--inspector>"
16921 msgstr ""
16922
16923 # type: textblock
16924 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
16925 msgid ""
16926 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16927 "system and mount filesystems as they would be mounted on the real virtual "
16928 "machine."
16929 msgstr ""
16930
16931 # type: textblock
16932 #: ../fish/guestfish.pod:238
16933 msgid "Typical usage is either:"
16934 msgstr ""
16935
16936 # type: verbatim
16937 #: ../fish/guestfish.pod:240
16938 #, no-wrap
16939 msgid ""
16940 " guestfish -d myguest -i\n"
16941 "\n"
16942 msgstr ""
16943
16944 # type: textblock
16945 #: ../fish/guestfish.pod:242
16946 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16947 msgstr ""
16948
16949 # type: verbatim
16950 #: ../fish/guestfish.pod:244
16951 #, no-wrap
16952 msgid ""
16953 " guestfish --ro -d myguest -i\n"
16954 "\n"
16955 msgstr ""
16956
16957 # type: textblock
16958 #: ../fish/guestfish.pod:246
16959 msgid "(for active domains, readonly), or specify the block device directly:"
16960 msgstr ""
16961
16962 # type: verbatim
16963 #: ../fish/guestfish.pod:248
16964 #, no-wrap
16965 msgid ""
16966 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16967 "\n"
16968 msgstr ""
16969
16970 # type: textblock
16971 #: ../fish/guestfish.pod:250
16972 msgid ""
16973 "Note that the command line syntax changed slightly over older versions of "
16974 "guestfish.  You can still use the old syntax:"
16975 msgstr ""
16976
16977 # type: verbatim
16978 #: ../fish/guestfish.pod:253
16979 #, no-wrap
16980 msgid ""
16981 " guestfish [--ro] -i disk.img\n"
16982 "\n"
16983 msgstr ""
16984
16985 # type: verbatim
16986 #: ../fish/guestfish.pod:255
16987 #, no-wrap
16988 msgid ""
16989 " guestfish [--ro] -i libvirt-domain\n"
16990 "\n"
16991 msgstr ""
16992
16993 # type: =item
16994 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
16995 msgid "B<--keys-from-stdin>"
16996 msgstr ""
16997
16998 # type: textblock
16999 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17000 msgid ""
17001 "Read key or passphrase parameters from stdin.  The default is to try to read "
17002 "passphrases from the user by opening C</dev/tty>."
17003 msgstr ""
17004
17005 # type: =item
17006 #: ../fish/guestfish.pod:262
17007 msgid "B<--listen>"
17008 msgstr ""
17009
17010 # type: textblock
17011 #: ../fish/guestfish.pod:264
17012 msgid ""
17013 "Fork into the background and listen for remote commands.  See section "
17014 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17015 msgstr ""
17016
17017 # type: =item
17018 #: ../fish/guestfish.pod:267
17019 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17020 msgstr ""
17021
17022 # type: textblock
17023 #: ../fish/guestfish.pod:269
17024 msgid "Mount the named partition or logical volume on the given mountpoint."
17025 msgstr ""
17026
17027 # type: textblock
17028 #: ../fish/guestfish.pod:271
17029 msgid "If the mountpoint is omitted, it defaults to C</>."
17030 msgstr ""
17031
17032 # type: textblock
17033 #: ../fish/guestfish.pod:273
17034 msgid "You have to mount something on C</> before most commands will work."
17035 msgstr ""
17036
17037 # type: textblock
17038 #: ../fish/guestfish.pod:275
17039 msgid ""
17040 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17041 "launched."
17042 msgstr ""
17043
17044 # type: textblock
17045 #: ../fish/guestfish.pod:278
17046 msgid ""
17047 "If you don't know what filesystems a disk image contains, you can either run "
17048 "guestfish without this option, then list the partitions and LVs available "
17049 "(see L</list-partitions> and L</lvs> commands), or you can use the "
17050 "L<virt-list-filesystems(1)> program."
17051 msgstr ""
17052
17053 # type: =item
17054 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
17055 msgid "B<-n> | B<--no-sync>"
17056 msgstr ""
17057
17058 # type: textblock
17059 #: ../fish/guestfish.pod:285
17060 msgid ""
17061 "Disable autosync.  This is enabled by default.  See the discussion of "
17062 "autosync in the L<guestfs(3)> manpage."
17063 msgstr ""
17064
17065 # type: =item
17066 #: ../fish/guestfish.pod:288
17067 msgid "B<-N type> | B<--new type> | B<-N help>"
17068 msgstr ""
17069
17070 # type: textblock
17071 #: ../fish/guestfish.pod:290
17072 msgid ""
17073 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17074 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17075 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17076 "IMAGES> below."
17077 msgstr ""
17078
17079 # type: =item
17080 #: ../fish/guestfish.pod:295
17081 msgid "B<--progress-bars>"
17082 msgstr ""
17083
17084 # type: textblock
17085 #: ../fish/guestfish.pod:297
17086 msgid "Enable progress bars, even when guestfish is used non-interactively."
17087 msgstr ""
17088
17089 # type: textblock
17090 #: ../fish/guestfish.pod:299
17091 msgid ""
17092 "Progress bars are enabled by default when guestfish is used as an "
17093 "interactive shell."
17094 msgstr ""
17095
17096 # type: =item
17097 #: ../fish/guestfish.pod:302
17098 msgid "B<--no-progress-bars>"
17099 msgstr ""
17100
17101 # type: textblock
17102 #: ../fish/guestfish.pod:304
17103 msgid "Disable progress bars."
17104 msgstr ""
17105
17106 # type: =item
17107 #: ../fish/guestfish.pod:306
17108 msgid "B<--remote[=pid]>"
17109 msgstr ""
17110
17111 # type: textblock
17112 #: ../fish/guestfish.pod:308
17113 msgid ""
17114 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17115 "CONTROL GUESTFISH OVER A SOCKET> below."
17116 msgstr ""
17117
17118 # type: =item
17119 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
17120 msgid "B<-r> | B<--ro>"
17121 msgstr ""
17122
17123 # type: textblock
17124 #: ../fish/guestfish.pod:313
17125 msgid ""
17126 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17127 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17128 msgstr ""
17129
17130 # type: textblock
17131 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
17132 msgid ""
17133 "The option must always be used if the disk image or virtual machine might be "
17134 "running, and is generally recommended in cases where you don't need write "
17135 "access to the disk."
17136 msgstr ""
17137
17138 # type: textblock
17139 #: ../fish/guestfish.pod:320
17140 msgid ""
17141 "Note that prepared disk images created with I<-N> are not affected by the "
17142 "I<--ro> option."
17143 msgstr ""
17144
17145 # type: textblock
17146 #: ../fish/guestfish.pod:323
17147 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17148 msgstr ""
17149
17150 # type: =item
17151 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208 ../tools/virt-rescue.pl:195
17152 msgid "B<--selinux>"
17153 msgstr ""
17154
17155 # type: textblock
17156 #: ../fish/guestfish.pod:327
17157 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17158 msgstr ""
17159
17160 # type: =item
17161 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
17162 msgid "B<-v> | B<--verbose>"
17163 msgstr ""
17164
17165 # type: textblock
17166 #: ../fish/guestfish.pod:331
17167 msgid ""
17168 "Enable very verbose messages.  This is particularly useful if you find a "
17169 "bug."
17170 msgstr ""
17171
17172 # type: =item
17173 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
17174 msgid "B<-V> | B<--version>"
17175 msgstr ""
17176
17177 # type: textblock
17178 #: ../fish/guestfish.pod:336
17179 msgid "Display the guestfish / libguestfs version number and exit."
17180 msgstr ""
17181
17182 # type: =item
17183 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
17184 msgid "B<-w> | B<--rw>"
17185 msgstr ""
17186
17187 # type: textblock
17188 #: ../fish/guestfish.pod:340
17189 msgid ""
17190 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17191 "WRITE> below."
17192 msgstr ""
17193
17194 # type: =item
17195 #: ../fish/guestfish.pod:343
17196 msgid "B<-x>"
17197 msgstr ""
17198
17199 # type: textblock
17200 #: ../fish/guestfish.pod:345
17201 msgid "Echo each command before executing it."
17202 msgstr ""
17203
17204 # type: =head1
17205 #: ../fish/guestfish.pod:349
17206 msgid "COMMANDS ON COMMAND LINE"
17207 msgstr ""
17208
17209 # type: textblock
17210 #: ../fish/guestfish.pod:351
17211 msgid "Any additional (non-option) arguments are treated as commands to execute."
17212 msgstr ""
17213
17214 # type: textblock
17215 #: ../fish/guestfish.pod:354
17216 msgid ""
17217 "Commands to execute should be separated by a colon (C<:>), where the colon "
17218 "is a separate parameter.  Thus:"
17219 msgstr ""
17220
17221 # type: verbatim
17222 #: ../fish/guestfish.pod:357
17223 #, no-wrap
17224 msgid ""
17225 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17226 "\n"
17227 msgstr ""
17228
17229 # type: textblock
17230 #: ../fish/guestfish.pod:359
17231 msgid ""
17232 "If there are no additional arguments, then we enter a shell, either an "
17233 "interactive shell with a prompt (if the input is a terminal) or a "
17234 "non-interactive shell."
17235 msgstr ""
17236
17237 # type: textblock
17238 #: ../fish/guestfish.pod:363
17239 msgid ""
17240 "In either command line mode or non-interactive shell, the first command that "
17241 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17242 "prompt) if a command fails, you can continue to enter commands."
17243 msgstr ""
17244
17245 # type: =head1
17246 #: ../fish/guestfish.pod:368
17247 msgid "USING launch (OR run)"
17248 msgstr ""
17249
17250 # type: textblock
17251 #: ../fish/guestfish.pod:370
17252 msgid ""
17253 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17254 "then launch it, then mount any disks you need, and finally issue "
17255 "actions/commands.  So the general order of the day is:"
17256 msgstr ""
17257
17258 # type: textblock
17259 #: ../fish/guestfish.pod:378
17260 msgid "add or -a/--add"
17261 msgstr ""
17262
17263 # type: textblock
17264 #: ../fish/guestfish.pod:382
17265 msgid "launch (aka run)"
17266 msgstr ""
17267
17268 # type: textblock
17269 #: ../fish/guestfish.pod:386
17270 msgid "mount or -m/--mount"
17271 msgstr ""
17272
17273 # type: textblock
17274 #: ../fish/guestfish.pod:390
17275 msgid "any other commands"
17276 msgstr ""
17277
17278 # type: textblock
17279 #: ../fish/guestfish.pod:394
17280 msgid ""
17281 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17282 "guest before mounting or performing any other commands."
17283 msgstr ""
17284
17285 # type: textblock
17286 #: ../fish/guestfish.pod:397
17287 msgid ""
17288 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17289 "I<--new> options were given then C<run> is done automatically, simply "
17290 "because guestfish can't perform the action you asked for without doing this."
17291 msgstr ""
17292
17293 # type: =head1
17294 #: ../fish/guestfish.pod:402
17295 msgid "OPENING DISKS FOR READ AND WRITE"
17296 msgstr ""
17297
17298 # type: textblock
17299 #: ../fish/guestfish.pod:404
17300 msgid ""
17301 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17302 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17303 "open disk images read-only or for writing."
17304 msgstr ""
17305
17306 # type: textblock
17307 #: ../fish/guestfish.pod:408
17308 msgid ""
17309 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17310 "disk images supplied on the command line for write.  To open a disk image "
17311 "read-only you have to do I<-a image --ro>."
17312 msgstr ""
17313
17314 # type: textblock
17315 #: ../fish/guestfish.pod:412
17316 msgid ""
17317 "This matters: If you accidentally open a live VM disk image writable then "
17318 "you will cause irreversible disk corruption."
17319 msgstr ""
17320
17321 # type: textblock
17322 #: ../fish/guestfish.pod:415
17323 msgid ""
17324 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17325 "images will be opened read-only.  You will have to either specify "
17326 "I<guestfish --rw> or change a configuration file in order to get write "
17327 "access for disk images specified by those other command line options."
17328 msgstr ""
17329
17330 # type: textblock
17331 #: ../fish/guestfish.pod:420
17332 msgid ""
17333 "This version of guestfish has a I<--rw> option which does nothing (it is "
17334 "already the default).  However it is highly recommended that you use this "
17335 "option to indicate that guestfish needs write access, and to prepare your "
17336 "scripts for the day when this option will be required for write access."
17337 msgstr ""
17338
17339 # type: textblock
17340 #: ../fish/guestfish.pod:426
17341 msgid ""
17342 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17343 "other libguestfs program apart from guestfish and guestmount."
17344 msgstr ""
17345
17346 # type: =head1
17347 #: ../fish/guestfish.pod:429
17348 msgid "QUOTING"
17349 msgstr ""
17350
17351 # type: textblock
17352 #: ../fish/guestfish.pod:431
17353 msgid ""
17354 "You can quote ordinary parameters using either single or double quotes.  For "
17355 "example:"
17356 msgstr ""
17357
17358 # type: verbatim
17359 #: ../fish/guestfish.pod:434
17360 #, no-wrap
17361 msgid ""
17362 " add \"file with a space.img\"\n"
17363 "\n"
17364 msgstr ""
17365
17366 # type: verbatim
17367 #: ../fish/guestfish.pod:436
17368 #, no-wrap
17369 msgid ""
17370 " rm '/file name'\n"
17371 "\n"
17372 msgstr ""
17373
17374 # type: verbatim
17375 #: ../fish/guestfish.pod:438
17376 #, no-wrap
17377 msgid ""
17378 " rm '/\"'\n"
17379 "\n"
17380 msgstr ""
17381
17382 # type: textblock
17383 #: ../fish/guestfish.pod:440
17384 msgid ""
17385 "A few commands require a list of strings to be passed.  For these, use a "
17386 "whitespace-separated list, enclosed in quotes.  Strings containing "
17387 "whitespace to be passed through must be enclosed in single quotes.  A "
17388 "literal single quote must be escaped with a backslash."
17389 msgstr ""
17390
17391 # type: verbatim
17392 #: ../fish/guestfish.pod:445
17393 #, no-wrap
17394 msgid ""
17395 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17396 " command \"/bin/echo 'foo      bar'\"\n"
17397 " command \"/bin/echo \\'foo\\'\"\n"
17398 "\n"
17399 msgstr ""
17400
17401 # type: =head1
17402 #: ../fish/guestfish.pod:449
17403 msgid "OPTIONAL ARGUMENTS"
17404 msgstr ""
17405
17406 # type: textblock
17407 #: ../fish/guestfish.pod:451
17408 msgid ""
17409 "Some commands take optional arguments.  These arguments appear in this "
17410 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17411 msgstr ""
17412
17413 # type: verbatim
17414 #: ../fish/guestfish.pod:455
17415 #, no-wrap
17416 msgid ""
17417 " add-drive-opts filename\n"
17418 "\n"
17419 msgstr ""
17420
17421 # type: verbatim
17422 #: ../fish/guestfish.pod:457
17423 #, no-wrap
17424 msgid ""
17425 " add-drive-opts filename readonly:true\n"
17426 "\n"
17427 msgstr ""
17428
17429 # type: verbatim
17430 #: ../fish/guestfish.pod:459
17431 #, no-wrap
17432 msgid ""
17433 " add-drive-opts filename format:qcow2 readonly:false\n"
17434 "\n"
17435 msgstr ""
17436
17437 # type: textblock
17438 #: ../fish/guestfish.pod:461
17439 msgid ""
17440 "Each optional argument can appear at most once.  All optional arguments must "
17441 "appear after the required ones."
17442 msgstr ""
17443
17444 # type: =head1
17445 #: ../fish/guestfish.pod:464
17446 msgid "NUMBERS"
17447 msgstr ""
17448
17449 # type: textblock
17450 #: ../fish/guestfish.pod:466
17451 msgid "This section applies to all commands which can take integers as parameters."
17452 msgstr ""
17453
17454 # type: =head2
17455 #: ../fish/guestfish.pod:469
17456 msgid "SIZE SUFFIX"
17457 msgstr ""
17458
17459 # type: textblock
17460 #: ../fish/guestfish.pod:471
17461 msgid ""
17462 "When the command takes a parameter measured in bytes, you can use one of the "
17463 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17464 msgstr ""
17465
17466 # type: =item
17467 #: ../fish/guestfish.pod:477
17468 msgid "B<k> or B<K> or B<KiB>"
17469 msgstr ""
17470
17471 # type: textblock
17472 #: ../fish/guestfish.pod:479
17473 msgid "The size in kilobytes (multiplied by 1024)."
17474 msgstr ""
17475
17476 # type: =item
17477 #: ../fish/guestfish.pod:481
17478 msgid "B<KB>"
17479 msgstr ""
17480
17481 # type: textblock
17482 #: ../fish/guestfish.pod:483
17483 msgid "The size in SI 1000 byte units."
17484 msgstr ""
17485
17486 # type: =item
17487 #: ../fish/guestfish.pod:485
17488 msgid "B<M> or B<MiB>"
17489 msgstr ""
17490
17491 # type: textblock
17492 #: ../fish/guestfish.pod:487
17493 msgid "The size in megabytes (multiplied by 1048576)."
17494 msgstr ""
17495
17496 # type: =item
17497 #: ../fish/guestfish.pod:489
17498 msgid "B<MB>"
17499 msgstr ""
17500
17501 # type: textblock
17502 #: ../fish/guestfish.pod:491
17503 msgid "The size in SI 1000000 byte units."
17504 msgstr ""
17505
17506 # type: =item
17507 #: ../fish/guestfish.pod:493
17508 msgid "B<G> or B<GiB>"
17509 msgstr ""
17510
17511 # type: textblock
17512 #: ../fish/guestfish.pod:495
17513 msgid "The size in gigabytes (multiplied by 2**30)."
17514 msgstr ""
17515
17516 # type: =item
17517 #: ../fish/guestfish.pod:497
17518 msgid "B<GB>"
17519 msgstr ""
17520
17521 # type: textblock
17522 #: ../fish/guestfish.pod:499
17523 msgid "The size in SI 10**9 byte units."
17524 msgstr ""
17525
17526 # type: =item
17527 #: ../fish/guestfish.pod:501
17528 msgid "B<T> or B<TiB>"
17529 msgstr ""
17530
17531 # type: textblock
17532 #: ../fish/guestfish.pod:503
17533 msgid "The size in terabytes (multiplied by 2**40)."
17534 msgstr ""
17535
17536 # type: =item
17537 #: ../fish/guestfish.pod:505
17538 msgid "B<TB>"
17539 msgstr ""
17540
17541 # type: textblock
17542 #: ../fish/guestfish.pod:507
17543 msgid "The size in SI 10**12 byte units."
17544 msgstr ""
17545
17546 # type: =item
17547 #: ../fish/guestfish.pod:509
17548 msgid "B<P> or B<PiB>"
17549 msgstr ""
17550
17551 # type: textblock
17552 #: ../fish/guestfish.pod:511
17553 msgid "The size in petabytes (multiplied by 2**50)."
17554 msgstr ""
17555
17556 # type: =item
17557 #: ../fish/guestfish.pod:513
17558 msgid "B<PB>"
17559 msgstr ""
17560
17561 # type: textblock
17562 #: ../fish/guestfish.pod:515
17563 msgid "The size in SI 10**15 byte units."
17564 msgstr ""
17565
17566 # type: =item
17567 #: ../fish/guestfish.pod:517
17568 msgid "B<E> or B<EiB>"
17569 msgstr ""
17570
17571 # type: textblock
17572 #: ../fish/guestfish.pod:519
17573 msgid "The size in exabytes (multiplied by 2**60)."
17574 msgstr ""
17575
17576 # type: =item
17577 #: ../fish/guestfish.pod:521
17578 msgid "B<EB>"
17579 msgstr ""
17580
17581 # type: textblock
17582 #: ../fish/guestfish.pod:523
17583 msgid "The size in SI 10**18 byte units."
17584 msgstr ""
17585
17586 # type: =item
17587 #: ../fish/guestfish.pod:525
17588 msgid "B<Z> or B<ZiB>"
17589 msgstr ""
17590
17591 # type: textblock
17592 #: ../fish/guestfish.pod:527
17593 msgid "The size in zettabytes (multiplied by 2**70)."
17594 msgstr ""
17595
17596 # type: =item
17597 #: ../fish/guestfish.pod:529
17598 msgid "B<ZB>"
17599 msgstr ""
17600
17601 # type: textblock
17602 #: ../fish/guestfish.pod:531
17603 msgid "The size in SI 10**21 byte units."
17604 msgstr ""
17605
17606 # type: =item
17607 #: ../fish/guestfish.pod:533
17608 msgid "B<Y> or B<YiB>"
17609 msgstr ""
17610
17611 # type: textblock
17612 #: ../fish/guestfish.pod:535
17613 msgid "The size in yottabytes (multiplied by 2**80)."
17614 msgstr ""
17615
17616 # type: =item
17617 #: ../fish/guestfish.pod:537
17618 msgid "B<YB>"
17619 msgstr ""
17620
17621 # type: textblock
17622 #: ../fish/guestfish.pod:539
17623 msgid "The size in SI 10**24 byte units."
17624 msgstr ""
17625
17626 # type: verbatim
17627 #: ../fish/guestfish.pod:545
17628 #, no-wrap
17629 msgid ""
17630 " truncate-size /file 1G\n"
17631 "\n"
17632 msgstr ""
17633
17634 # type: textblock
17635 #: ../fish/guestfish.pod:547
17636 msgid "would truncate the file to 1 gigabyte."
17637 msgstr ""
17638
17639 # type: textblock
17640 #: ../fish/guestfish.pod:549
17641 msgid ""
17642 "Be careful because a few commands take sizes in kilobytes or megabytes "
17643 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17644 "Adding a suffix will probably not do what you expect."
17645 msgstr ""
17646
17647 # type: =head2
17648 #: ../fish/guestfish.pod:553
17649 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17650 msgstr ""
17651
17652 # type: textblock
17653 #: ../fish/guestfish.pod:555
17654 msgid ""
17655 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17656 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17657 msgstr ""
17658
17659 # type: verbatim
17660 #: ../fish/guestfish.pod:558
17661 #, no-wrap
17662 msgid ""
17663 " 1234      decimal number 1234\n"
17664 " 02322     octal number, equivalent to decimal 1234\n"
17665 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17666 "\n"
17667 msgstr ""
17668
17669 # type: textblock
17670 #: ../fish/guestfish.pod:562
17671 msgid ""
17672 "When using the C<chmod> command, you almost always want to specify an octal "
17673 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17674 "L<chmod(1)> program):"
17675 msgstr ""
17676
17677 # type: verbatim
17678 #: ../fish/guestfish.pod:566
17679 #, no-wrap
17680 msgid ""
17681 " chmod 0777 /public  # OK\n"
17682 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17683 "\n"
17684 msgstr ""
17685
17686 # type: textblock
17687 #: ../fish/guestfish.pod:569
17688 msgid ""
17689 "Commands that return numbers usually print them in decimal, but some "
17690 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17691 "octal, preceeded by C<0>)."
17692 msgstr ""
17693
17694 # type: =head1
17695 #: ../fish/guestfish.pod:573
17696 msgid "WILDCARDS AND GLOBBING"
17697 msgstr ""
17698
17699 # type: textblock
17700 #: ../fish/guestfish.pod:575
17701 msgid ""
17702 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17703 "(globbing) by default.  So for example the following will not do what you "
17704 "expect:"
17705 msgstr ""
17706
17707 # type: verbatim
17708 #: ../fish/guestfish.pod:579
17709 #, no-wrap
17710 msgid ""
17711 " rm-rf /home/*\n"
17712 "\n"
17713 msgstr ""
17714
17715 # type: textblock
17716 #: ../fish/guestfish.pod:581
17717 msgid ""
17718 "Assuming you don't have a directory called literally C</home/*> then the "
17719 "above command will return an error."
17720 msgstr ""
17721
17722 # type: textblock
17723 #: ../fish/guestfish.pod:584
17724 msgid "To perform wildcard expansion, use the C<glob> command."
17725 msgstr ""
17726
17727 # type: verbatim
17728 #: ../fish/guestfish.pod:586
17729 #, no-wrap
17730 msgid ""
17731 " glob rm-rf /home/*\n"
17732 "\n"
17733 msgstr ""
17734
17735 # type: textblock
17736 #: ../fish/guestfish.pod:588
17737 msgid ""
17738 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17739 "many times), equivalent to:"
17740 msgstr ""
17741
17742 # type: verbatim
17743 #: ../fish/guestfish.pod:591
17744 #, no-wrap
17745 msgid ""
17746 " rm-rf /home/jim\n"
17747 " rm-rf /home/joe\n"
17748 " rm-rf /home/mary\n"
17749 "\n"
17750 msgstr ""
17751
17752 # type: textblock
17753 #: ../fish/guestfish.pod:595
17754 msgid "C<glob> only works on simple guest paths and not on device names."
17755 msgstr ""
17756
17757 # type: textblock
17758 #: ../fish/guestfish.pod:597
17759 msgid ""
17760 "If you have several parameters, each containing a wildcard, then glob will "
17761 "perform a Cartesian product."
17762 msgstr ""
17763
17764 # type: =head1
17765 #: ../fish/guestfish.pod:600
17766 msgid "COMMENTS"
17767 msgstr ""
17768
17769 # type: textblock
17770 #: ../fish/guestfish.pod:602
17771 msgid ""
17772 "Any line which starts with a I<#> character is treated as a comment and "
17773 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17774 "a command.  For example:"
17775 msgstr ""
17776
17777 # type: verbatim
17778 #: ../fish/guestfish.pod:606
17779 #, no-wrap
17780 msgid ""
17781 " # this is a comment\n"
17782 "         # this is a comment\n"
17783 " foo # NOT a comment\n"
17784 "\n"
17785 msgstr ""
17786
17787 # type: textblock
17788 #: ../fish/guestfish.pod:610
17789 msgid "Blank lines are also ignored."
17790 msgstr ""
17791
17792 # type: =head1
17793 #: ../fish/guestfish.pod:612
17794 msgid "RUNNING COMMANDS LOCALLY"
17795 msgstr ""
17796
17797 # type: textblock
17798 #: ../fish/guestfish.pod:614
17799 msgid ""
17800 "Any line which starts with a I<!> character is treated as a command sent to "
17801 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17802 msgstr ""
17803
17804 # type: verbatim
17805 #: ../fish/guestfish.pod:618
17806 #, no-wrap
17807 msgid ""
17808 " !mkdir local\n"
17809 " tgz-out /remote local/remote-data.tar.gz\n"
17810 "\n"
17811 msgstr ""
17812
17813 # type: textblock
17814 #: ../fish/guestfish.pod:621
17815 msgid ""
17816 "will create a directory C<local> on the host, and then export the contents "
17817 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17818 "(See C<tgz-out>)."
17819 msgstr ""
17820
17821 # type: textblock
17822 #: ../fish/guestfish.pod:625
17823 msgid ""
17824 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17825 "effect, due to the way that subprocesses work in Unix."
17826 msgstr ""
17827
17828 # type: =head1
17829 #: ../fish/guestfish.pod:628
17830 msgid "PIPES"
17831 msgstr ""
17832
17833 # type: textblock
17834 #: ../fish/guestfish.pod:630
17835 msgid ""
17836 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17837 "command (a guestfish command) to the second command (any host command).  For "
17838 "example:"
17839 msgstr ""
17840
17841 # type: verbatim
17842 #: ../fish/guestfish.pod:634
17843 #, no-wrap
17844 msgid ""
17845 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17846 "\n"
17847 msgstr ""
17848
17849 # type: textblock
17850 #: ../fish/guestfish.pod:636
17851 msgid ""
17852 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17853 "program).  The above command would list all accounts in the guest filesystem "
17854 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17855 msgstr ""
17856
17857 # type: verbatim
17858 #: ../fish/guestfish.pod:641
17859 #, no-wrap
17860 msgid ""
17861 " hexdump /bin/ls | head\n"
17862 " list-devices | tail -1\n"
17863 " tgz-out / - | tar ztf -\n"
17864 "\n"
17865 msgstr ""
17866
17867 # type: textblock
17868 #: ../fish/guestfish.pod:645
17869 msgid ""
17870 "The space before the pipe symbol is required, any space after the pipe "
17871 "symbol is optional.  Everything after the pipe symbol is just passed "
17872 "straight to the host shell, so it can contain redirections, globs and "
17873 "anything else that makes sense on the host side."
17874 msgstr ""
17875
17876 # type: textblock
17877 #: ../fish/guestfish.pod:650
17878 msgid ""
17879 "To use a literal argument which begins with a pipe symbol, you have to quote "
17880 "it, eg:"
17881 msgstr ""
17882
17883 # type: verbatim
17884 #: ../fish/guestfish.pod:653
17885 #, no-wrap
17886 msgid ""
17887 " echo \"|\"\n"
17888 "\n"
17889 msgstr ""
17890
17891 # type: =head1
17892 #: ../fish/guestfish.pod:655
17893 msgid "HOME DIRECTORIES"
17894 msgstr ""
17895
17896 # type: textblock
17897 #: ../fish/guestfish.pod:657
17898 msgid ""
17899 "If a parameter starts with the character C<~> then the tilde may be expanded "
17900 "as a home directory path (either C<~> for the current user's home directory, "
17901 "or C<~user> for another user)."
17902 msgstr ""
17903
17904 # type: textblock
17905 #: ../fish/guestfish.pod:661
17906 msgid ""
17907 "Note that home directory expansion happens for users known I<on the host>, "
17908 "not in the guest filesystem."
17909 msgstr ""
17910
17911 # type: textblock
17912 #: ../fish/guestfish.pod:664
17913 msgid ""
17914 "To use a literal argument which begins with a tilde, you have to quote it, "
17915 "eg:"
17916 msgstr ""
17917
17918 # type: verbatim
17919 #: ../fish/guestfish.pod:667
17920 #, no-wrap
17921 msgid ""
17922 " echo \"~\"\n"
17923 "\n"
17924 msgstr ""
17925
17926 # type: textblock
17927 #: ../fish/guestfish.pod:671
17928 msgid ""
17929 "Libguestfs has some support for Linux guests encrypted according to the "
17930 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17931 "disk encryption systems used by modern Linux guests.  Currently only "
17932 "LVM-on-LUKS is supported."
17933 msgstr ""
17934
17935 # type: textblock
17936 #: ../fish/guestfish.pod:676
17937 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17938 msgstr ""
17939
17940 # type: verbatim
17941 #: ../fish/guestfish.pod:678
17942 #, no-wrap
17943 msgid ""
17944 " ><fs> vfs-type /dev/sda2\n"
17945 " crypto_LUKS\n"
17946 "\n"
17947 msgstr ""
17948
17949 # type: textblock
17950 #: ../fish/guestfish.pod:681
17951 msgid ""
17952 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17953 "device called C</dev/mapper/luksdev>."
17954 msgstr ""
17955
17956 # type: verbatim
17957 #: ../fish/guestfish.pod:684
17958 #, no-wrap
17959 msgid ""
17960 " ><fs> luks-open /dev/sda2 luksdev\n"
17961 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17962 "\n"
17963 msgstr ""
17964
17965 # type: textblock
17966 #: ../fish/guestfish.pod:687
17967 msgid ""
17968 "Finally you have to tell LVM to scan for volume groups on the newly created "
17969 "mapper device:"
17970 msgstr ""
17971
17972 # type: verbatim
17973 #: ../fish/guestfish.pod:690
17974 #, no-wrap
17975 msgid ""
17976 " vgscan\n"
17977 " vg-activate-all true\n"
17978 "\n"
17979 msgstr ""
17980
17981 # type: textblock
17982 #: ../fish/guestfish.pod:693
17983 msgid "The logical volume(s) can now be mounted in the usual way."
17984 msgstr ""
17985
17986 # type: textblock
17987 #: ../fish/guestfish.pod:695
17988 msgid ""
17989 "Before closing a LUKS device you must unmount any logical volumes on it and "
17990 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17991 "one.  Then you can close the mapper device:"
17992 msgstr ""
17993
17994 # type: verbatim
17995 #: ../fish/guestfish.pod:699
17996 #, no-wrap
17997 msgid ""
17998 " vg-activate false /dev/VG\n"
17999 " luks-close /dev/mapper/luksdev\n"
18000 "\n"
18001 msgstr ""
18002
18003 # type: =head1
18004 #: ../fish/guestfish.pod:702
18005 msgid "WINDOWS PATHS"
18006 msgstr ""
18007
18008 # type: textblock
18009 #: ../fish/guestfish.pod:704
18010 msgid ""
18011 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18012 "(with some limitations).  The following commands are equivalent:"
18013 msgstr ""
18014
18015 # type: verbatim
18016 #: ../fish/guestfish.pod:707
18017 #, no-wrap
18018 msgid ""
18019 " file /WINDOWS/system32/config/system.LOG\n"
18020 "\n"
18021 msgstr ""
18022
18023 # type: verbatim
18024 #: ../fish/guestfish.pod:709
18025 #, no-wrap
18026 msgid ""
18027 " file win:/windows/system32/config/system.log\n"
18028 "\n"
18029 msgstr ""
18030
18031 # type: verbatim
18032 #: ../fish/guestfish.pod:711
18033 #, no-wrap
18034 msgid ""
18035 " file win:\\windows\\system32\\config\\system.log\n"
18036 "\n"
18037 msgstr ""
18038
18039 # type: verbatim
18040 #: ../fish/guestfish.pod:713
18041 #, no-wrap
18042 msgid ""
18043 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18044 "\n"
18045 msgstr ""
18046
18047 # type: textblock
18048 #: ../fish/guestfish.pod:715
18049 msgid ""
18050 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18051 "handles case insensitivity like Windows would.  This only works in argument "
18052 "positions that expect a path."
18053 msgstr ""
18054
18055 # type: =head1
18056 #: ../fish/guestfish.pod:719
18057 msgid "UPLOADING AND DOWNLOADING FILES"
18058 msgstr ""
18059
18060 # type: textblock
18061 #: ../fish/guestfish.pod:721
18062 msgid ""
18063 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18064 "others which upload from or download to a local file, you can use the "
18065 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18066 msgstr ""
18067
18068 # type: verbatim
18069 #: ../fish/guestfish.pod:725
18070 #, no-wrap
18071 msgid ""
18072 " upload - /foo\n"
18073 "\n"
18074 msgstr ""
18075
18076 # type: textblock
18077 #: ../fish/guestfish.pod:727
18078 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
18079 msgstr ""
18080
18081 # type: verbatim
18082 #: ../fish/guestfish.pod:730
18083 #, no-wrap
18084 msgid ""
18085 " tar-out /etc - | tar tf -\n"
18086 "\n"
18087 msgstr ""
18088
18089 # type: textblock
18090 #: ../fish/guestfish.pod:732
18091 msgid ""
18092 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18093 "command (see L</PIPES>)."
18094 msgstr ""
18095
18096 # type: textblock
18097 #: ../fish/guestfish.pod:735
18098 msgid ""
18099 "When using C<-> to read from stdin, the input is read up to the end of "
18100 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18101 "some arbitrary end marker:"
18102 msgstr ""
18103
18104 # type: verbatim
18105 #: ../fish/guestfish.pod:739
18106 #, no-wrap
18107 msgid ""
18108 " upload -<<END /foo\n"
18109 " input line 1\n"
18110 " input line 2\n"
18111 " input line 3\n"
18112 " END\n"
18113 "\n"
18114 msgstr ""
18115
18116 # type: textblock
18117 #: ../fish/guestfish.pod:745
18118 msgid ""
18119 "Any string of characters can be used instead of C<END>.  The end marker must "
18120 "appear on a line of its own, without any preceeding or following characters "
18121 "(not even spaces)."
18122 msgstr ""
18123
18124 # type: textblock
18125 #: ../fish/guestfish.pod:749
18126 msgid ""
18127 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18128 "upload local files (so-called \"FileIn\" parameters in the generator)."
18129 msgstr ""
18130
18131 # type: =head1
18132 #: ../fish/guestfish.pod:752
18133 msgid "EXIT ON ERROR BEHAVIOUR"
18134 msgstr ""
18135
18136 # type: textblock
18137 #: ../fish/guestfish.pod:754
18138 msgid ""
18139 "By default, guestfish will ignore any errors when in interactive mode "
18140 "(ie. taking commands from a human over a tty), and will exit on the first "
18141 "error in non-interactive mode (scripts, commands given on the command line)."
18142 msgstr ""
18143
18144 # type: textblock
18145 #: ../fish/guestfish.pod:759
18146 msgid ""
18147 "If you prefix a command with a I<-> character, then that command will not "
18148 "cause guestfish to exit, even if that (one) command returns an error."
18149 msgstr ""
18150
18151 # type: =head1
18152 #: ../fish/guestfish.pod:763
18153 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18154 msgstr ""
18155
18156 # type: textblock
18157 #: ../fish/guestfish.pod:765
18158 msgid ""
18159 "Guestfish can be remote-controlled over a socket.  This is useful "
18160 "particularly in shell scripts where you want to make several different "
18161 "changes to a filesystem, but you don't want the overhead of starting up a "
18162 "guestfish process each time."
18163 msgstr ""
18164
18165 # type: textblock
18166 #: ../fish/guestfish.pod:770
18167 msgid "Start a guestfish server process using:"
18168 msgstr ""
18169
18170 # type: verbatim
18171 #: ../fish/guestfish.pod:772
18172 #, no-wrap
18173 msgid ""
18174 " eval \"`guestfish --listen`\"\n"
18175 "\n"
18176 msgstr ""
18177
18178 # type: textblock
18179 #: ../fish/guestfish.pod:774
18180 msgid "and then send it commands by doing:"
18181 msgstr ""
18182
18183 # type: verbatim
18184 #: ../fish/guestfish.pod:776
18185 #, no-wrap
18186 msgid ""
18187 " guestfish --remote cmd [...]\n"
18188 "\n"
18189 msgstr ""
18190
18191 # type: textblock
18192 #: ../fish/guestfish.pod:778
18193 msgid "To cause the server to exit, send it the exit command:"
18194 msgstr ""
18195
18196 # type: verbatim
18197 #: ../fish/guestfish.pod:780
18198 #, no-wrap
18199 msgid ""
18200 " guestfish --remote exit\n"
18201 "\n"
18202 msgstr ""
18203
18204 # type: textblock
18205 #: ../fish/guestfish.pod:782
18206 msgid ""
18207 "Note that the server will normally exit if there is an error in a command.  "
18208 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18209 "BEHAVIOUR>."
18210 msgstr ""
18211
18212 # type: =head2
18213 #: ../fish/guestfish.pod:786
18214 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18215 msgstr ""
18216
18217 # type: textblock
18218 #: ../fish/guestfish.pod:788
18219 msgid ""
18220 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18221 "is how the I<--remote> option knows where to send the commands.  You can "
18222 "have several guestfish listener processes running using:"
18223 msgstr ""
18224
18225 # type: verbatim
18226 #: ../fish/guestfish.pod:792
18227 #, no-wrap
18228 msgid ""
18229 " eval \"`guestfish --listen`\"\n"
18230 " pid1=$GUESTFISH_PID\n"
18231 " eval \"`guestfish --listen`\"\n"
18232 " pid2=$GUESTFISH_PID\n"
18233 " ...\n"
18234 " guestfish --remote=$pid1 cmd\n"
18235 " guestfish --remote=$pid2 cmd\n"
18236 "\n"
18237 msgstr ""
18238
18239 # type: =head2
18240 #: ../fish/guestfish.pod:800
18241 msgid "REMOTE CONTROL AND CSH"
18242 msgstr ""
18243
18244 # type: textblock
18245 #: ../fish/guestfish.pod:802
18246 msgid ""
18247 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18248 "option:"
18249 msgstr ""
18250
18251 # type: verbatim
18252 #: ../fish/guestfish.pod:805
18253 #, no-wrap
18254 msgid ""
18255 " eval \"`guestfish --listen --csh`\"\n"
18256 "\n"
18257 msgstr ""
18258
18259 # type: =head2
18260 #: ../fish/guestfish.pod:807
18261 msgid "REMOTE CONTROL DETAILS"
18262 msgstr ""
18263
18264 # type: textblock
18265 #: ../fish/guestfish.pod:809
18266 msgid ""
18267 "Remote control happens over a Unix domain socket called "
18268 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
18269 "of the process, and C<$PID> is the process ID of the server."
18270 msgstr ""
18271
18272 # type: textblock
18273 #: ../fish/guestfish.pod:813
18274 msgid "Guestfish client and server versions must match exactly."
18275 msgstr ""
18276
18277 # type: =head1
18278 #: ../fish/guestfish.pod:815
18279 msgid "PREPARED DISK IMAGES"
18280 msgstr ""
18281
18282 # type: textblock
18283 #: ../fish/guestfish.pod:817
18284 msgid ""
18285 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18286 "preformatted disk images that guestfish can make for you to save typing.  "
18287 "This is particularly useful for testing purposes.  This option is used "
18288 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18289 "can be mixed with I<-a>)."
18290 msgstr ""
18291
18292 # type: textblock
18293 #: ../fish/guestfish.pod:823
18294 msgid ""
18295 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18296 "the second and so on.  Existing files in the current directory are "
18297 "I<overwritten>."
18298 msgstr ""
18299
18300 # type: textblock
18301 #: ../fish/guestfish.pod:827
18302 msgid ""
18303 "The type briefly describes how the disk should be sized, partitioned, how "
18304 "filesystem(s) should be created, and how content should be added.  "
18305 "Optionally the type can be followed by extra parameters, separated by C<:> "
18306 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
18307 "sparsely-allocated disk, containing a single partition, with the partition "
18308 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
18309 "on a 1GB disk instead."
18310 msgstr ""
18311
18312 # type: textblock
18313 #: ../fish/guestfish.pod:835
18314 msgid "To list the available types and any extra parameters they take, run:"
18315 msgstr ""
18316
18317 # type: textblock
18318 #: ../fish/guestfish.pod:839
18319 msgid ""
18320 "Note that the prepared filesystem is not mounted.  You would usually have to "
18321 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18322 msgstr ""
18323
18324 # type: textblock
18325 #: ../fish/guestfish.pod:843
18326 msgid ""
18327 "If any I<-N> or I<--new> options are given, the guest is automatically "
18328 "launched."
18329 msgstr ""
18330
18331 # type: textblock
18332 #: ../fish/guestfish.pod:848
18333 msgid "Create a 100MB disk with an ext4-formatted partition:"
18334 msgstr ""
18335
18336 # type: verbatim
18337 #: ../fish/guestfish.pod:850
18338 #, no-wrap
18339 msgid ""
18340 " guestfish -N fs:ext4\n"
18341 "\n"
18342 msgstr ""
18343
18344 # type: textblock
18345 #: ../fish/guestfish.pod:852
18346 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18347 msgstr ""
18348
18349 # type: verbatim
18350 #: ../fish/guestfish.pod:854
18351 #, no-wrap
18352 msgid ""
18353 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18354 "\n"
18355 msgstr ""
18356
18357 # type: textblock
18358 #: ../fish/guestfish.pod:856
18359 msgid "Create a blank 200MB disk:"
18360 msgstr ""
18361
18362 # type: verbatim
18363 #: ../fish/guestfish.pod:858
18364 #, no-wrap
18365 msgid ""
18366 " guestfish -N disk:200M\n"
18367 "\n"
18368 msgstr ""
18369
18370 # type: =head1
18371 #: ../fish/guestfish.pod:860
18372 msgid "PROGRESS BARS"
18373 msgstr ""
18374
18375 # type: textblock
18376 #: ../fish/guestfish.pod:862
18377 msgid ""
18378 "Some (not all) long-running commands send progress notification messages as "
18379 "they are running.  Guestfish turns these messages into progress bars."
18380 msgstr ""
18381
18382 # type: textblock
18383 #: ../fish/guestfish.pod:866
18384 msgid ""
18385 "When a command that supports progress bars takes longer than two seconds to "
18386 "run, and if progress bars are enabled, then you will see one appearing below "
18387 "the command:"
18388 msgstr ""
18389
18390 # type: verbatim
18391 #: ../fish/guestfish.pod:870
18392 #, no-wrap
18393 msgid ""
18394 " ><fs> copy-size /large-file /another-file 2048M\n"
18395 " / 10% [#####-----------------------------------------] 00:30\n"
18396 "\n"
18397 msgstr ""
18398
18399 # type: textblock
18400 #: ../fish/guestfish.pod:873
18401 msgid ""
18402 "The spinner on the left hand side moves round once for every progress "
18403 "notification received from the backend.  This is a (reasonably) golden "
18404 "assurance that the command is \"doing something\" even if the progress bar "
18405 "is not moving, because the command is able to send the progress "
18406 "notifications.  When the bar reaches 100% and the command finishes, the "
18407 "spinner disappears."
18408 msgstr ""
18409
18410 # type: textblock
18411 #: ../fish/guestfish.pod:880
18412 msgid ""
18413 "Progress bars are enabled by default when guestfish is used interactively.  "
18414 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18415 "and you can disable them completely using I<--no-progress-bars>."
18416 msgstr ""
18417
18418 # type: =head1
18419 #: ../fish/guestfish.pod:885
18420 msgid "GUESTFISH COMMANDS"
18421 msgstr ""
18422
18423 # type: textblock
18424 #: ../fish/guestfish.pod:887
18425 msgid ""
18426 "The commands in this section are guestfish convenience commands, in other "
18427 "words, they are not part of the L<guestfs(3)> API."
18428 msgstr ""
18429
18430 # type: =head2
18431 #: ../fish/guestfish.pod:890
18432 msgid "help"
18433 msgstr ""
18434
18435 # type: verbatim
18436 #: ../fish/guestfish.pod:892
18437 #, no-wrap
18438 msgid ""
18439 " help\n"
18440 " help cmd\n"
18441 "\n"
18442 msgstr ""
18443
18444 # type: textblock
18445 #: ../fish/guestfish.pod:895
18446 msgid "Without any parameter, this provides general help."
18447 msgstr ""
18448
18449 # type: textblock
18450 #: ../fish/guestfish.pod:897
18451 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18452 msgstr ""
18453
18454 # type: =head2
18455 #: ../fish/guestfish.pod:899
18456 msgid "quit | exit"
18457 msgstr ""
18458
18459 # type: textblock
18460 #: ../fish/guestfish.pod:901
18461 msgid "This exits guestfish.  You can also use C<^D> key."
18462 msgstr ""
18463
18464 # type: textblock
18465 #: ../fish/guestfish.pod:903
18466 msgid "@FISH_COMMANDS@"
18467 msgstr ""
18468
18469 # type: =head1
18470 #: ../fish/guestfish.pod:905
18471 msgid "COMMANDS"
18472 msgstr ""
18473
18474 # type: =head1
18475 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
18476 msgid "EXIT CODE"
18477 msgstr ""
18478
18479 # type: textblock
18480 #: ../fish/guestfish.pod:911
18481 msgid ""
18482 "guestfish returns 0 if the commands completed without error, or 1 if there "
18483 "was an error."
18484 msgstr ""
18485
18486 # type: =item
18487 #: ../fish/guestfish.pod:918
18488 msgid "EDITOR"
18489 msgstr ""
18490
18491 # type: textblock
18492 #: ../fish/guestfish.pod:920
18493 msgid ""
18494 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18495 "C<vi>."
18496 msgstr ""
18497
18498 # type: =item
18499 #: ../fish/guestfish.pod:923
18500 msgid "GUESTFISH_PID"
18501 msgstr ""
18502
18503 # type: textblock
18504 #: ../fish/guestfish.pod:925
18505 msgid ""
18506 "Used with the I<--remote> option to specify the remote guestfish process to "
18507 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18508 msgstr ""
18509
18510 # type: =item
18511 #: ../fish/guestfish.pod:929
18512 msgid "HEXEDITOR"
18513 msgstr ""
18514
18515 # type: textblock
18516 #: ../fish/guestfish.pod:931
18517 msgid ""
18518 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18519 "not specified, the external L<hexedit(1)> program is used."
18520 msgstr ""
18521
18522 # type: =item
18523 #: ../fish/guestfish.pod:935
18524 msgid "HOME"
18525 msgstr ""
18526
18527 # type: textblock
18528 #: ../fish/guestfish.pod:937
18529 msgid ""
18530 "If compiled with GNU readline support, various files in the home directory "
18531 "can be used.  See L</FILES>."
18532 msgstr ""
18533
18534 # type: textblock
18535 #: ../fish/guestfish.pod:946
18536 msgid ""
18537 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18538 "effect as using the B<-v> option."
18539 msgstr ""
18540
18541 # type: textblock
18542 #: ../fish/guestfish.pod:958
18543 msgid ""
18544 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18545 "the discussion of paths in L<guestfs(3)>."
18546 msgstr ""
18547
18548 # type: textblock
18549 #: ../fish/guestfish.pod:969
18550 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18551 msgstr ""
18552
18553 # type: =item
18554 #: ../fish/guestfish.pod:971
18555 msgid "PAGER"
18556 msgstr ""
18557
18558 # type: textblock
18559 #: ../fish/guestfish.pod:973
18560 msgid ""
18561 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18562 "C<more>."
18563 msgstr ""
18564
18565 # type: =head1
18566 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
18567 msgid "FILES"
18568 msgstr ""
18569
18570 # type: =item
18571 #: ../fish/guestfish.pod:992
18572 msgid "$HOME/.guestfish"
18573 msgstr ""
18574
18575 # type: textblock
18576 #: ../fish/guestfish.pod:994
18577 msgid ""
18578 "If compiled with GNU readline support, then the command history is saved in "
18579 "this file."
18580 msgstr ""
18581
18582 # type: =item
18583 #: ../fish/guestfish.pod:997
18584 msgid "$HOME/.inputrc"
18585 msgstr ""
18586
18587 # type: =item
18588 #: ../fish/guestfish.pod:999
18589 msgid "/etc/inputrc"
18590 msgstr ""
18591
18592 # type: textblock
18593 #: ../fish/guestfish.pod:1001
18594 msgid ""
18595 "If compiled with GNU readline support, then these files can be used to "
18596 "configure readline.  For further information, please see "
18597 "L<readline(3)/INITIALIZATION FILE>."
18598 msgstr ""
18599
18600 # type: textblock
18601 #: ../fish/guestfish.pod:1005
18602 msgid "To write rules which only apply to guestfish, use:"
18603 msgstr ""
18604
18605 # type: verbatim
18606 #: ../fish/guestfish.pod:1007
18607 #, no-wrap
18608 msgid ""
18609 " $if guestfish\n"
18610 " ...\n"
18611 " $endif\n"
18612 "\n"
18613 msgstr ""
18614
18615 # type: textblock
18616 #: ../fish/guestfish.pod:1011
18617 msgid ""
18618 "Variables that you can set in inputrc that change the behaviour of guestfish "
18619 "in useful ways include:"
18620 msgstr ""
18621
18622 # type: =item
18623 #: ../fish/guestfish.pod:1016
18624 msgid "completion-ignore-case (default: on)"
18625 msgstr ""
18626
18627 # type: textblock
18628 #: ../fish/guestfish.pod:1018
18629 msgid ""
18630 "By default, guestfish will ignore case when tab-completing paths on the "
18631 "disk.  Use:"
18632 msgstr ""
18633
18634 # type: verbatim
18635 #: ../fish/guestfish.pod:1021
18636 #, no-wrap
18637 msgid ""
18638 " set completion-ignore-case off\n"
18639 "\n"
18640 msgstr ""
18641
18642 # type: textblock
18643 #: ../fish/guestfish.pod:1023
18644 msgid "to make guestfish case sensitive."
18645 msgstr ""
18646
18647 # type: =item
18648 #: ../fish/guestfish.pod:1027
18649 msgid "test1.img"
18650 msgstr ""
18651
18652 # type: =item
18653 #: ../fish/guestfish.pod:1029
18654 msgid "test2.img (etc)"
18655 msgstr ""
18656
18657 # type: textblock
18658 #: ../fish/guestfish.pod:1031
18659 msgid ""
18660 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18661 "will be created in the file C<test1.img> in the current directory.  The "
18662 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18663 "the same name will be overwritten."
18664 msgstr ""
18665
18666 # type: textblock
18667 #: ../fish/guestfish.pod:1040
18668 msgid ""
18669 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18670 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
18671 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
18672 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
18673 msgstr ""
18674
18675 # type: textblock
18676 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:253 ../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-tar.pl:300 ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:273
18677 msgid ""
18678 "This program is free software; you can redistribute it and/or modify it "
18679 "under the terms of the GNU General Public License as published by the Free "
18680 "Software Foundation; either version 2 of the License, or (at your option) "
18681 "any later version."
18682 msgstr ""
18683
18684 # type: textblock
18685 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:258 ../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-tar.pl:305 ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:278
18686 msgid ""
18687 "This program is distributed in the hope that it will be useful, but WITHOUT "
18688 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18689 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18690 "more details."
18691 msgstr ""
18692
18693 # type: textblock
18694 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:263 ../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-tar.pl:310 ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:283
18695 msgid ""
18696 "You should have received a copy of the GNU General Public License along with "
18697 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18698 "Ave, Cambridge, MA 02139, USA."
18699 msgstr ""
18700
18701 # type: =head2
18702 #: ../fish/guestfish-actions.pod:1
18703 msgid "add-cdrom"
18704 msgstr ""
18705
18706 # type: verbatim
18707 #: ../fish/guestfish-actions.pod:3
18708 #, no-wrap
18709 msgid ""
18710 " add-cdrom filename\n"
18711 "\n"
18712 msgstr ""
18713
18714 # type: textblock
18715 #: ../fish/guestfish-actions.pod:15
18716 msgid ""
18717 "This call checks for the existence of C<filename>.  This stops you from "
18718 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18719 "and C<http:> URLs.  To specify those, use the general L</config> call "
18720 "instead."
18721 msgstr ""
18722
18723 # type: textblock
18724 #: ../fish/guestfish-actions.pod:22
18725 msgid ""
18726 "If you just want to add an ISO file (often you use this as an efficient way "
18727 "to transfer large files into the guest), then you should probably use "
18728 "L</add-drive-ro> instead."
18729 msgstr ""
18730
18731 # type: =head2
18732 #: ../fish/guestfish-actions.pod:35
18733 msgid "add-domain"
18734 msgstr ""
18735
18736 # type: =head2
18737 #: ../fish/guestfish-actions.pod:37
18738 msgid "domain"
18739 msgstr ""
18740
18741 # type: verbatim
18742 #: ../fish/guestfish-actions.pod:39
18743 #, no-wrap
18744 msgid ""
18745 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18746 "\n"
18747 msgstr ""
18748
18749 # type: textblock
18750 #: ../fish/guestfish-actions.pod:41
18751 msgid ""
18752 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18753 "It works by connecting to libvirt, requesting the domain and domain XML from "
18754 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
18755 msgstr ""
18756
18757 # type: textblock
18758 #: ../fish/guestfish-actions.pod:58
18759 msgid ""
18760 "The optional C<libvirturi> parameter sets the libvirt URI (see "
18761 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
18762 "default libvirt URI (or one set through an environment variable, see the "
18763 "libvirt documentation for full details).  If you are using the C API "
18764 "directly then it is more flexible to create the libvirt connection object "
18765 "yourself, get the domain object, and call L</add-libvirt-dom>."
18766 msgstr ""
18767
18768 # type: textblock
18769 #: ../fish/guestfish-actions.pod:66
18770 msgid ""
18771 "The other optional parameters are passed directly through to "
18772 "L</add-drive-opts>."
18773 msgstr ""
18774
18775 # type: textblock
18776 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
18777 msgid ""
18778 "This command has one or more optional arguments.  See L</OPTIONAL "
18779 "ARGUMENTS>."
18780 msgstr ""
18781
18782 # type: =head2
18783 #: ../fish/guestfish-actions.pod:71
18784 msgid "add-drive"
18785 msgstr ""
18786
18787 # type: verbatim
18788 #: ../fish/guestfish-actions.pod:73
18789 #, no-wrap
18790 msgid ""
18791 " add-drive filename\n"
18792 "\n"
18793 msgstr ""
18794
18795 # type: textblock
18796 #: ../fish/guestfish-actions.pod:75
18797 msgid ""
18798 "This function is the equivalent of calling L</add-drive-opts> with no "
18799 "optional parameters, so the disk is added writable, with the format being "
18800 "detected automatically."
18801 msgstr ""
18802
18803 # type: textblock
18804 #: ../fish/guestfish-actions.pod:79
18805 msgid ""
18806 "Automatic detection of the format opens you up to a potential security hole "
18807 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18808 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18809 "you should think about replacing calls to this function with calls to "
18810 "L</add-drive-opts>, and specifying the format."
18811 msgstr ""
18812
18813 # type: =head2
18814 #: ../fish/guestfish-actions.pod:86
18815 msgid "add-drive-opts"
18816 msgstr ""
18817
18818 # type: =head2
18819 #: ../fish/guestfish-actions.pod:88
18820 msgid "add"
18821 msgstr ""
18822
18823 # type: verbatim
18824 #: ../fish/guestfish-actions.pod:90
18825 #, no-wrap
18826 msgid ""
18827 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18828 "\n"
18829 msgstr ""
18830
18831 # type: textblock
18832 #: ../fish/guestfish-actions.pod:117
18833 msgid ""
18834 "This forces the image format.  If you omit this (or use L</add-drive> or "
18835 "L</add-drive-ro>) then the format is automatically detected.  Possible "
18836 "formats include C<raw> and C<qcow2>."
18837 msgstr ""
18838
18839 # type: textblock
18840 #: ../fish/guestfish-actions.pod:128
18841 msgid ""
18842 "This rarely-used option lets you emulate the behaviour of the deprecated "
18843 "L</add-drive-with-if> call (q.v.)"
18844 msgstr ""
18845
18846 # type: =head2
18847 #: ../fish/guestfish-actions.pod:135
18848 msgid "add-drive-ro"
18849 msgstr ""
18850
18851 # type: =head2
18852 #: ../fish/guestfish-actions.pod:137
18853 msgid "add-ro"
18854 msgstr ""
18855
18856 # type: verbatim
18857 #: ../fish/guestfish-actions.pod:139
18858 #, no-wrap
18859 msgid ""
18860 " add-drive-ro filename\n"
18861 "\n"
18862 msgstr ""
18863
18864 # type: textblock
18865 #: ../fish/guestfish-actions.pod:141
18866 msgid ""
18867 "This function is the equivalent of calling L</add-drive-opts> with the "
18868 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18869 "is added read-only, with the format being detected automatically."
18870 msgstr ""
18871
18872 # type: =head2
18873 #: ../fish/guestfish-actions.pod:146
18874 msgid "add-drive-ro-with-if"
18875 msgstr ""
18876
18877 # type: verbatim
18878 #: ../fish/guestfish-actions.pod:148
18879 #, no-wrap
18880 msgid ""
18881 " add-drive-ro-with-if filename iface\n"
18882 "\n"
18883 msgstr ""
18884
18885 # type: textblock
18886 #: ../fish/guestfish-actions.pod:150
18887 msgid ""
18888 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18889 "interface emulation to use at run time."
18890 msgstr ""
18891
18892 # type: =head2
18893 #: ../fish/guestfish-actions.pod:160
18894 msgid "add-drive-with-if"
18895 msgstr ""
18896
18897 # type: verbatim
18898 #: ../fish/guestfish-actions.pod:162
18899 #, no-wrap
18900 msgid ""
18901 " add-drive-with-if filename iface\n"
18902 "\n"
18903 msgstr ""
18904
18905 # type: textblock
18906 #: ../fish/guestfish-actions.pod:164
18907 msgid ""
18908 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18909 "interface emulation to use at run time."
18910 msgstr ""
18911
18912 # type: =head2
18913 #: ../fish/guestfish-actions.pod:174
18914 msgid "aug-clear"
18915 msgstr ""
18916
18917 # type: verbatim
18918 #: ../fish/guestfish-actions.pod:176
18919 #, no-wrap
18920 msgid ""
18921 " aug-clear augpath\n"
18922 "\n"
18923 msgstr ""
18924
18925 # type: =head2
18926 #: ../fish/guestfish-actions.pod:181
18927 msgid "aug-close"
18928 msgstr ""
18929
18930 # type: verbatim
18931 #: ../fish/guestfish-actions.pod:183
18932 #, no-wrap
18933 msgid ""
18934 " aug-close\n"
18935 "\n"
18936 msgstr ""
18937
18938 # type: textblock
18939 #: ../fish/guestfish-actions.pod:185
18940 msgid ""
18941 "Close the current Augeas handle and free up any resources used by it.  After "
18942 "calling this, you have to call L</aug-init> again before you can use any "
18943 "other Augeas functions."
18944 msgstr ""
18945
18946 # type: =head2
18947 #: ../fish/guestfish-actions.pod:190
18948 msgid "aug-defnode"
18949 msgstr ""
18950
18951 # type: verbatim
18952 #: ../fish/guestfish-actions.pod:192
18953 #, no-wrap
18954 msgid ""
18955 " aug-defnode name expr val\n"
18956 "\n"
18957 msgstr ""
18958
18959 # type: textblock
18960 #: ../fish/guestfish-actions.pod:197
18961 msgid ""
18962 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18963 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18964 "containing that single node."
18965 msgstr ""
18966
18967 # type: =head2
18968 #: ../fish/guestfish-actions.pod:205
18969 msgid "aug-defvar"
18970 msgstr ""
18971
18972 # type: verbatim
18973 #: ../fish/guestfish-actions.pod:207
18974 #, no-wrap
18975 msgid ""
18976 " aug-defvar name expr\n"
18977 "\n"
18978 msgstr ""
18979
18980 # type: =head2
18981 #: ../fish/guestfish-actions.pod:216
18982 msgid "aug-get"
18983 msgstr ""
18984
18985 # type: verbatim
18986 #: ../fish/guestfish-actions.pod:218
18987 #, no-wrap
18988 msgid ""
18989 " aug-get augpath\n"
18990 "\n"
18991 msgstr ""
18992
18993 # type: =head2
18994 #: ../fish/guestfish-actions.pod:223
18995 msgid "aug-init"
18996 msgstr ""
18997
18998 # type: verbatim
18999 #: ../fish/guestfish-actions.pod:225
19000 #, no-wrap
19001 msgid ""
19002 " aug-init root flags\n"
19003 "\n"
19004 msgstr ""
19005
19006 # type: textblock
19007 #: ../fish/guestfish-actions.pod:231
19008 msgid "You must call this before using any other L</aug-*> commands."
19009 msgstr ""
19010
19011 # type: textblock
19012 #: ../fish/guestfish-actions.pod:266
19013 msgid "Do not load the tree in L</aug-init>."
19014 msgstr ""
19015
19016 # type: textblock
19017 #: ../fish/guestfish-actions.pod:270
19018 msgid "To close the handle, you can call L</aug-close>."
19019 msgstr ""
19020
19021 # type: =head2
19022 #: ../fish/guestfish-actions.pod:274
19023 msgid "aug-insert"
19024 msgstr ""
19025
19026 # type: verbatim
19027 #: ../fish/guestfish-actions.pod:276
19028 #, no-wrap
19029 msgid ""
19030 " aug-insert augpath label true|false\n"
19031 "\n"
19032 msgstr ""
19033
19034 # type: =head2
19035 #: ../fish/guestfish-actions.pod:286
19036 msgid "aug-load"
19037 msgstr ""
19038
19039 # type: verbatim
19040 #: ../fish/guestfish-actions.pod:288
19041 #, no-wrap
19042 msgid ""
19043 " aug-load\n"
19044 "\n"
19045 msgstr ""
19046
19047 # type: =head2
19048 #: ../fish/guestfish-actions.pod:295
19049 msgid "aug-ls"
19050 msgstr ""
19051
19052 # type: verbatim
19053 #: ../fish/guestfish-actions.pod:297
19054 #, no-wrap
19055 msgid ""
19056 " aug-ls augpath\n"
19057 "\n"
19058 msgstr ""
19059
19060 # type: textblock
19061 #: ../fish/guestfish-actions.pod:299
19062 msgid ""
19063 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19064 "resulting nodes into alphabetical order."
19065 msgstr ""
19066
19067 # type: =head2
19068 #: ../fish/guestfish-actions.pod:302
19069 msgid "aug-match"
19070 msgstr ""
19071
19072 # type: verbatim
19073 #: ../fish/guestfish-actions.pod:304
19074 #, no-wrap
19075 msgid ""
19076 " aug-match augpath\n"
19077 "\n"
19078 msgstr ""
19079
19080 # type: =head2
19081 #: ../fish/guestfish-actions.pod:310
19082 msgid "aug-mv"
19083 msgstr ""
19084
19085 # type: verbatim
19086 #: ../fish/guestfish-actions.pod:312
19087 #, no-wrap
19088 msgid ""
19089 " aug-mv src dest\n"
19090 "\n"
19091 msgstr ""
19092
19093 # type: =head2
19094 #: ../fish/guestfish-actions.pod:317
19095 msgid "aug-rm"
19096 msgstr ""
19097
19098 # type: verbatim
19099 #: ../fish/guestfish-actions.pod:319
19100 #, no-wrap
19101 msgid ""
19102 " aug-rm augpath\n"
19103 "\n"
19104 msgstr ""
19105
19106 # type: =head2
19107 #: ../fish/guestfish-actions.pod:325
19108 msgid "aug-save"
19109 msgstr ""
19110
19111 # type: verbatim
19112 #: ../fish/guestfish-actions.pod:327
19113 #, no-wrap
19114 msgid ""
19115 " aug-save\n"
19116 "\n"
19117 msgstr ""
19118
19119 # type: textblock
19120 #: ../fish/guestfish-actions.pod:331
19121 msgid ""
19122 "The flags which were passed to L</aug-init> affect exactly how files are "
19123 "saved."
19124 msgstr ""
19125
19126 # type: =head2
19127 #: ../fish/guestfish-actions.pod:334
19128 msgid "aug-set"
19129 msgstr ""
19130
19131 # type: verbatim
19132 #: ../fish/guestfish-actions.pod:336
19133 #, no-wrap
19134 msgid ""
19135 " aug-set augpath val\n"
19136 "\n"
19137 msgstr ""
19138
19139 # type: textblock
19140 #: ../fish/guestfish-actions.pod:340
19141 msgid ""
19142 "In the Augeas API, it is possible to clear a node by setting the value to "
19143 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19144 "this call.  Instead you must use the L</aug-clear> call."
19145 msgstr ""
19146
19147 # type: =head2
19148 #: ../fish/guestfish-actions.pod:345
19149 msgid "available"
19150 msgstr ""
19151
19152 # type: verbatim
19153 #: ../fish/guestfish-actions.pod:347
19154 #, no-wrap
19155 msgid ""
19156 " available 'groups ...'\n"
19157 "\n"
19158 msgstr ""
19159
19160 # type: textblock
19161 #: ../fish/guestfish-actions.pod:353
19162 msgid ""
19163 "The libguestfs groups, and the functions that those groups correspond to, "
19164 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19165 "runtime by calling L</available-all-groups>."
19166 msgstr ""
19167
19168 # type: textblock
19169 #: ../fish/guestfish-actions.pod:377
19170 msgid "You must call L</launch> before calling this function."
19171 msgstr ""
19172
19173 # type: textblock
19174 #: ../fish/guestfish-actions.pod:399
19175 msgid ""
19176 "This call was added in version C<1.0.80>.  In previous versions of "
19177 "libguestfs all you could do would be to speculatively execute a command to "
19178 "find out if the daemon implemented it.  See also L</version>."
19179 msgstr ""
19180
19181 # type: =head2
19182 #: ../fish/guestfish-actions.pod:406
19183 msgid "available-all-groups"
19184 msgstr ""
19185
19186 # type: verbatim
19187 #: ../fish/guestfish-actions.pod:408
19188 #, no-wrap
19189 msgid ""
19190 " available-all-groups\n"
19191 "\n"
19192 msgstr ""
19193
19194 # type: textblock
19195 #: ../fish/guestfish-actions.pod:410
19196 msgid ""
19197 "This command returns a list of all optional groups that this daemon knows "
19198 "about.  Note this returns both supported and unsupported groups.  To find "
19199 "out which ones the daemon can actually support you have to call "
19200 "L</available> on each member of the returned list."
19201 msgstr ""
19202
19203 # type: textblock
19204 #: ../fish/guestfish-actions.pod:416
19205 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19206 msgstr ""
19207
19208 # type: =head2
19209 #: ../fish/guestfish-actions.pod:418
19210 msgid "base64-in"
19211 msgstr ""
19212
19213 # type: verbatim
19214 #: ../fish/guestfish-actions.pod:420
19215 #, no-wrap
19216 msgid ""
19217 " base64-in (base64file|-) filename\n"
19218 "\n"
19219 msgstr ""
19220
19221 # type: textblock
19222 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434 ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827 ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223 ../fish/guestfish-actions.pod:4128 ../fish/guestfish-actions.pod:4140 ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4162 ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4223 ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4300
19223 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19224 msgstr ""
19225
19226 # type: =head2
19227 #: ../fish/guestfish-actions.pod:427
19228 msgid "base64-out"
19229 msgstr ""
19230
19231 # type: verbatim
19232 #: ../fish/guestfish-actions.pod:429
19233 #, no-wrap
19234 msgid ""
19235 " base64-out filename (base64file|-)\n"
19236 "\n"
19237 msgstr ""
19238
19239 # type: =head2
19240 #: ../fish/guestfish-actions.pod:436
19241 msgid "blockdev-flushbufs"
19242 msgstr ""
19243
19244 # type: verbatim
19245 #: ../fish/guestfish-actions.pod:438
19246 #, no-wrap
19247 msgid ""
19248 " blockdev-flushbufs device\n"
19249 "\n"
19250 msgstr ""
19251
19252 # type: =head2
19253 #: ../fish/guestfish-actions.pod:445
19254 msgid "blockdev-getbsz"
19255 msgstr ""
19256
19257 # type: verbatim
19258 #: ../fish/guestfish-actions.pod:447
19259 #, no-wrap
19260 msgid ""
19261 " blockdev-getbsz device\n"
19262 "\n"
19263 msgstr ""
19264
19265 # type: =head2
19266 #: ../fish/guestfish-actions.pod:456
19267 msgid "blockdev-getro"
19268 msgstr ""
19269
19270 # type: verbatim
19271 #: ../fish/guestfish-actions.pod:458
19272 #, no-wrap
19273 msgid ""
19274 " blockdev-getro device\n"
19275 "\n"
19276 msgstr ""
19277
19278 # type: =head2
19279 #: ../fish/guestfish-actions.pod:465
19280 msgid "blockdev-getsize64"
19281 msgstr ""
19282
19283 # type: verbatim
19284 #: ../fish/guestfish-actions.pod:467
19285 #, no-wrap
19286 msgid ""
19287 " blockdev-getsize64 device\n"
19288 "\n"
19289 msgstr ""
19290
19291 # type: textblock
19292 #: ../fish/guestfish-actions.pod:471
19293 msgid "See also L</blockdev-getsz>."
19294 msgstr ""
19295
19296 # type: =head2
19297 #: ../fish/guestfish-actions.pod:475
19298 msgid "blockdev-getss"
19299 msgstr ""
19300
19301 # type: verbatim
19302 #: ../fish/guestfish-actions.pod:477
19303 #, no-wrap
19304 msgid ""
19305 " blockdev-getss device\n"
19306 "\n"
19307 msgstr ""
19308
19309 # type: textblock
19310 #: ../fish/guestfish-actions.pod:482
19311 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19312 msgstr ""
19313
19314 # type: =head2
19315 #: ../fish/guestfish-actions.pod:487
19316 msgid "blockdev-getsz"
19317 msgstr ""
19318
19319 # type: verbatim
19320 #: ../fish/guestfish-actions.pod:489
19321 #, no-wrap
19322 msgid ""
19323 " blockdev-getsz device\n"
19324 "\n"
19325 msgstr ""
19326
19327 # type: textblock
19328 #: ../fish/guestfish-actions.pod:494
19329 msgid ""
19330 "See also L</blockdev-getss> for the real sector size of the device, and "
19331 "L</blockdev-getsize64> for the more useful I<size in bytes>."
19332 msgstr ""
19333
19334 # type: =head2
19335 #: ../fish/guestfish-actions.pod:500
19336 msgid "blockdev-rereadpt"
19337 msgstr ""
19338
19339 # type: verbatim
19340 #: ../fish/guestfish-actions.pod:502
19341 #, no-wrap
19342 msgid ""
19343 " blockdev-rereadpt device\n"
19344 "\n"
19345 msgstr ""
19346
19347 # type: =head2
19348 #: ../fish/guestfish-actions.pod:508
19349 msgid "blockdev-setbsz"
19350 msgstr ""
19351
19352 # type: verbatim
19353 #: ../fish/guestfish-actions.pod:510
19354 #, no-wrap
19355 msgid ""
19356 " blockdev-setbsz device blocksize\n"
19357 "\n"
19358 msgstr ""
19359
19360 # type: =head2
19361 #: ../fish/guestfish-actions.pod:519
19362 msgid "blockdev-setro"
19363 msgstr ""
19364
19365 # type: verbatim
19366 #: ../fish/guestfish-actions.pod:521
19367 #, no-wrap
19368 msgid ""
19369 " blockdev-setro device\n"
19370 "\n"
19371 msgstr ""
19372
19373 # type: =head2
19374 #: ../fish/guestfish-actions.pod:527
19375 msgid "blockdev-setrw"
19376 msgstr ""
19377
19378 # type: verbatim
19379 #: ../fish/guestfish-actions.pod:529
19380 #, no-wrap
19381 msgid ""
19382 " blockdev-setrw device\n"
19383 "\n"
19384 msgstr ""
19385
19386 # type: =head2
19387 #: ../fish/guestfish-actions.pod:535
19388 msgid "case-sensitive-path"
19389 msgstr ""
19390
19391 # type: verbatim
19392 #: ../fish/guestfish-actions.pod:537
19393 #, no-wrap
19394 msgid ""
19395 " case-sensitive-path path\n"
19396 "\n"
19397 msgstr ""
19398
19399 # type: textblock
19400 #: ../fish/guestfish-actions.pod:561
19401 msgid ""
19402 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
19403 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
19404 "how the directories were originally created under Windows)."
19405 msgstr ""
19406
19407 # type: textblock
19408 #: ../fish/guestfish-actions.pod:569
19409 msgid "See also L</realpath>."
19410 msgstr ""
19411
19412 # type: =head2
19413 #: ../fish/guestfish-actions.pod:571
19414 msgid "cat"
19415 msgstr ""
19416
19417 # type: verbatim
19418 #: ../fish/guestfish-actions.pod:573
19419 #, no-wrap
19420 msgid ""
19421 " cat path\n"
19422 "\n"
19423 msgstr ""
19424
19425 # type: textblock
19426 #: ../fish/guestfish-actions.pod:577
19427 msgid ""
19428 "Note that this function cannot correctly handle binary files (specifically, "
19429 "files containing C<\\0> character which is treated as end of string).  For "
19430 "those you need to use the L</read-file> or L</download> functions which have "
19431 "a more complex interface."
19432 msgstr ""
19433
19434 # type: =head2
19435 #: ../fish/guestfish-actions.pod:585
19436 msgid "checksum"
19437 msgstr ""
19438
19439 # type: verbatim
19440 #: ../fish/guestfish-actions.pod:587
19441 #, no-wrap
19442 msgid ""
19443 " checksum csumtype path\n"
19444 "\n"
19445 msgstr ""
19446
19447 # type: textblock
19448 #: ../fish/guestfish-actions.pod:630
19449 msgid "To get the checksum for a device, use L</checksum-device>."
19450 msgstr ""
19451
19452 # type: textblock
19453 #: ../fish/guestfish-actions.pod:632
19454 msgid "To get the checksums for many files, use L</checksums-out>."
19455 msgstr ""
19456
19457 # type: =head2
19458 #: ../fish/guestfish-actions.pod:634
19459 msgid "checksum-device"
19460 msgstr ""
19461
19462 # type: verbatim
19463 #: ../fish/guestfish-actions.pod:636
19464 #, no-wrap
19465 msgid ""
19466 " checksum-device csumtype device\n"
19467 "\n"
19468 msgstr ""
19469
19470 # type: textblock
19471 #: ../fish/guestfish-actions.pod:638
19472 msgid ""
19473 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19474 "device named C<device>.  For the types of checksums supported see the "
19475 "L</checksum> command."
19476 msgstr ""
19477
19478 # type: =head2
19479 #: ../fish/guestfish-actions.pod:642
19480 msgid "checksums-out"
19481 msgstr ""
19482
19483 # type: verbatim
19484 #: ../fish/guestfish-actions.pod:644
19485 #, no-wrap
19486 msgid ""
19487 " checksums-out csumtype directory (sumsfile|-)\n"
19488 "\n"
19489 msgstr ""
19490
19491 # type: =head2
19492 #: ../fish/guestfish-actions.pod:660
19493 msgid "chmod"
19494 msgstr ""
19495
19496 # type: verbatim
19497 #: ../fish/guestfish-actions.pod:662
19498 #, no-wrap
19499 msgid ""
19500 " chmod mode path\n"
19501 "\n"
19502 msgstr ""
19503
19504 # type: =head2
19505 #: ../fish/guestfish-actions.pod:673
19506 msgid "chown"
19507 msgstr ""
19508
19509 # type: verbatim
19510 #: ../fish/guestfish-actions.pod:675
19511 #, no-wrap
19512 msgid ""
19513 " chown owner group path\n"
19514 "\n"
19515 msgstr ""
19516
19517 # type: =head2
19518 #: ../fish/guestfish-actions.pod:683
19519 msgid "command"
19520 msgstr ""
19521
19522 # type: verbatim
19523 #: ../fish/guestfish-actions.pod:685
19524 #, no-wrap
19525 msgid ""
19526 " command 'arguments ...'\n"
19527 "\n"
19528 msgstr ""
19529
19530 # type: textblock
19531 #: ../fish/guestfish-actions.pod:692
19532 msgid ""
19533 "The single parameter is an argv-style list of arguments.  The first element "
19534 "is the name of the program to run.  Subsequent elements are parameters.  The "
19535 "list must be non-empty (ie. must contain a program name).  Note that the "
19536 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19537 msgstr ""
19538
19539 # type: =head2
19540 #: ../fish/guestfish-actions.pod:720
19541 msgid "command-lines"
19542 msgstr ""
19543
19544 # type: verbatim
19545 #: ../fish/guestfish-actions.pod:722
19546 #, no-wrap
19547 msgid ""
19548 " command-lines 'arguments ...'\n"
19549 "\n"
19550 msgstr ""
19551
19552 # type: textblock
19553 #: ../fish/guestfish-actions.pod:724
19554 msgid "This is the same as L</command>, but splits the result into a list of lines."
19555 msgstr ""
19556
19557 # type: textblock
19558 #: ../fish/guestfish-actions.pod:727
19559 msgid "See also: L</sh-lines>"
19560 msgstr ""
19561
19562 # type: =head2
19563 #: ../fish/guestfish-actions.pod:732
19564 msgid "config"
19565 msgstr ""
19566
19567 # type: verbatim
19568 #: ../fish/guestfish-actions.pod:734
19569 #, no-wrap
19570 msgid ""
19571 " config qemuparam qemuvalue\n"
19572 "\n"
19573 msgstr ""
19574
19575 # type: =head2
19576 #: ../fish/guestfish-actions.pod:745
19577 msgid "copy-size"
19578 msgstr ""
19579
19580 # type: verbatim
19581 #: ../fish/guestfish-actions.pod:747
19582 #, no-wrap
19583 msgid ""
19584 " copy-size src dest size\n"
19585 "\n"
19586 msgstr ""
19587
19588 # type: =head2
19589 #: ../fish/guestfish-actions.pod:755
19590 msgid "cp"
19591 msgstr ""
19592
19593 # type: verbatim
19594 #: ../fish/guestfish-actions.pod:757
19595 #, no-wrap
19596 msgid ""
19597 " cp src dest\n"
19598 "\n"
19599 msgstr ""
19600
19601 # type: =head2
19602 #: ../fish/guestfish-actions.pod:762
19603 msgid "cp-a"
19604 msgstr ""
19605
19606 # type: verbatim
19607 #: ../fish/guestfish-actions.pod:764
19608 #, no-wrap
19609 msgid ""
19610 " cp-a src dest\n"
19611 "\n"
19612 msgstr ""
19613
19614 # type: =head2
19615 #: ../fish/guestfish-actions.pod:769
19616 msgid "dd"
19617 msgstr ""
19618
19619 # type: verbatim
19620 #: ../fish/guestfish-actions.pod:771
19621 #, no-wrap
19622 msgid ""
19623 " dd src dest\n"
19624 "\n"
19625 msgstr ""
19626
19627 # type: textblock
19628 #: ../fish/guestfish-actions.pod:778
19629 msgid ""
19630 "If the destination is a device, it must be as large or larger than the "
19631 "source file or device, otherwise the copy will fail.  This command cannot do "
19632 "partial copies (see L</copy-size>)."
19633 msgstr ""
19634
19635 # type: =head2
19636 #: ../fish/guestfish-actions.pod:782
19637 msgid "df"
19638 msgstr ""
19639
19640 # type: verbatim
19641 #: ../fish/guestfish-actions.pod:784
19642 #, no-wrap
19643 msgid ""
19644 " df\n"
19645 "\n"
19646 msgstr ""
19647
19648 # type: =head2
19649 #: ../fish/guestfish-actions.pod:792
19650 msgid "df-h"
19651 msgstr ""
19652
19653 # type: verbatim
19654 #: ../fish/guestfish-actions.pod:794
19655 #, no-wrap
19656 msgid ""
19657 " df-h\n"
19658 "\n"
19659 msgstr ""
19660
19661 # type: =head2
19662 #: ../fish/guestfish-actions.pod:803
19663 msgid "dmesg"
19664 msgstr ""
19665
19666 # type: verbatim
19667 #: ../fish/guestfish-actions.pod:805
19668 #, no-wrap
19669 msgid ""
19670 " dmesg\n"
19671 "\n"
19672 msgstr ""
19673
19674 # type: textblock
19675 #: ../fish/guestfish-actions.pod:811
19676 msgid ""
19677 "Another way to get the same information is to enable verbose messages with "
19678 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19679 "before running the program."
19680 msgstr ""
19681
19682 # type: =head2
19683 #: ../fish/guestfish-actions.pod:816
19684 msgid "download"
19685 msgstr ""
19686
19687 # type: verbatim
19688 #: ../fish/guestfish-actions.pod:818
19689 #, no-wrap
19690 msgid ""
19691 " download remotefilename (filename|-)\n"
19692 "\n"
19693 msgstr ""
19694
19695 # type: textblock
19696 #: ../fish/guestfish-actions.pod:825
19697 msgid "See also L</upload>, L</cat>."
19698 msgstr ""
19699
19700 # type: =head2
19701 #: ../fish/guestfish-actions.pod:829
19702 msgid "download-offset"
19703 msgstr ""
19704
19705 # type: verbatim
19706 #: ../fish/guestfish-actions.pod:831
19707 #, no-wrap
19708 msgid ""
19709 " download-offset remotefilename (filename|-) offset size\n"
19710 "\n"
19711 msgstr ""
19712
19713 # type: textblock
19714 #: ../fish/guestfish-actions.pod:839
19715 msgid ""
19716 "Note that there is no limit on the amount of data that can be downloaded "
19717 "with this call, unlike with L</pread>, and this call always reads the full "
19718 "amount unless an error occurs."
19719 msgstr ""
19720
19721 # type: textblock
19722 #: ../fish/guestfish-actions.pod:844
19723 msgid "See also L</download>, L</pread>."
19724 msgstr ""
19725
19726 # type: =head2
19727 #: ../fish/guestfish-actions.pod:848
19728 msgid "drop-caches"
19729 msgstr ""
19730
19731 # type: verbatim
19732 #: ../fish/guestfish-actions.pod:850
19733 #, no-wrap
19734 msgid ""
19735 " drop-caches whattodrop\n"
19736 "\n"
19737 msgstr ""
19738
19739 # type: =head2
19740 #: ../fish/guestfish-actions.pod:862
19741 msgid "du"
19742 msgstr ""
19743
19744 # type: verbatim
19745 #: ../fish/guestfish-actions.pod:864
19746 #, no-wrap
19747 msgid ""
19748 " du path\n"
19749 "\n"
19750 msgstr ""
19751
19752 # type: =head2
19753 #: ../fish/guestfish-actions.pod:876
19754 msgid "e2fsck-f"
19755 msgstr ""
19756
19757 # type: verbatim
19758 #: ../fish/guestfish-actions.pod:878
19759 #, no-wrap
19760 msgid ""
19761 " e2fsck-f device\n"
19762 "\n"
19763 msgstr ""
19764
19765 # type: textblock
19766 #: ../fish/guestfish-actions.pod:884
19767 msgid ""
19768 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19769 "should use L</fsck>."
19770 msgstr ""
19771
19772 # type: =head2
19773 #: ../fish/guestfish-actions.pod:887
19774 msgid "echo-daemon"
19775 msgstr ""
19776
19777 # type: verbatim
19778 #: ../fish/guestfish-actions.pod:889
19779 #, no-wrap
19780 msgid ""
19781 " echo-daemon 'words ...'\n"
19782 "\n"
19783 msgstr ""
19784
19785 # type: textblock
19786 #: ../fish/guestfish-actions.pod:896
19787 msgid "See also L</ping-daemon>."
19788 msgstr ""
19789
19790 # type: =head2
19791 #: ../fish/guestfish-actions.pod:898
19792 msgid "egrep"
19793 msgstr ""
19794
19795 # type: verbatim
19796 #: ../fish/guestfish-actions.pod:900
19797 #, no-wrap
19798 msgid ""
19799 " egrep regex path\n"
19800 "\n"
19801 msgstr ""
19802
19803 # type: =head2
19804 #: ../fish/guestfish-actions.pod:908
19805 msgid "egrepi"
19806 msgstr ""
19807
19808 # type: verbatim
19809 #: ../fish/guestfish-actions.pod:910
19810 #, no-wrap
19811 msgid ""
19812 " egrepi regex path\n"
19813 "\n"
19814 msgstr ""
19815
19816 # type: =head2
19817 #: ../fish/guestfish-actions.pod:918
19818 msgid "equal"
19819 msgstr ""
19820
19821 # type: verbatim
19822 #: ../fish/guestfish-actions.pod:920
19823 #, no-wrap
19824 msgid ""
19825 " equal file1 file2\n"
19826 "\n"
19827 msgstr ""
19828
19829 # type: =head2
19830 #: ../fish/guestfish-actions.pod:927
19831 msgid "exists"
19832 msgstr ""
19833
19834 # type: verbatim
19835 #: ../fish/guestfish-actions.pod:929
19836 #, no-wrap
19837 msgid ""
19838 " exists path\n"
19839 "\n"
19840 msgstr ""
19841
19842 # type: textblock
19843 #: ../fish/guestfish-actions.pod:934
19844 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19845 msgstr ""
19846
19847 # type: =head2
19848 #: ../fish/guestfish-actions.pod:936
19849 msgid "fallocate"
19850 msgstr ""
19851
19852 # type: verbatim
19853 #: ../fish/guestfish-actions.pod:938
19854 #, no-wrap
19855 msgid ""
19856 " fallocate path len\n"
19857 "\n"
19858 msgstr ""
19859
19860 # type: =head2
19861 #: ../fish/guestfish-actions.pod:955
19862 msgid "fallocate64"
19863 msgstr ""
19864
19865 # type: verbatim
19866 #: ../fish/guestfish-actions.pod:957
19867 #, no-wrap
19868 msgid ""
19869 " fallocate64 path len\n"
19870 "\n"
19871 msgstr ""
19872
19873 # type: textblock
19874 #: ../fish/guestfish-actions.pod:963
19875 msgid ""
19876 "Note that this call allocates disk blocks for the file.  To create a sparse "
19877 "file use L</truncate-size> instead."
19878 msgstr ""
19879
19880 # type: textblock
19881 #: ../fish/guestfish-actions.pod:966
19882 msgid ""
19883 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19884 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19885 "maximum size of files created through that call to 1GB."
19886 msgstr ""
19887
19888 # type: =head2
19889 #: ../fish/guestfish-actions.pod:975
19890 msgid "fgrep"
19891 msgstr ""
19892
19893 # type: verbatim
19894 #: ../fish/guestfish-actions.pod:977
19895 #, no-wrap
19896 msgid ""
19897 " fgrep pattern path\n"
19898 "\n"
19899 msgstr ""
19900
19901 # type: =head2
19902 #: ../fish/guestfish-actions.pod:985
19903 msgid "fgrepi"
19904 msgstr ""
19905
19906 # type: verbatim
19907 #: ../fish/guestfish-actions.pod:987
19908 #, no-wrap
19909 msgid ""
19910 " fgrepi pattern path\n"
19911 "\n"
19912 msgstr ""
19913
19914 # type: =head2
19915 #: ../fish/guestfish-actions.pod:995
19916 msgid "file"
19917 msgstr ""
19918
19919 # type: verbatim
19920 #: ../fish/guestfish-actions.pod:997
19921 #, no-wrap
19922 msgid ""
19923 " file path\n"
19924 "\n"
19925 msgstr ""
19926
19927 # type: textblock
19928 #: ../fish/guestfish-actions.pod:1009
19929 msgid ""
19930 "This command can also be used on C</dev/> devices (and partitions, LV "
19931 "names).  You can for example use this to determine if a device contains a "
19932 "filesystem, although it's usually better to use L</vfs-type>."
19933 msgstr ""
19934
19935 # type: =head2
19936 #: ../fish/guestfish-actions.pod:1019
19937 msgid "file-architecture"
19938 msgstr ""
19939
19940 # type: verbatim
19941 #: ../fish/guestfish-actions.pod:1021
19942 #, no-wrap
19943 msgid ""
19944 " file-architecture filename\n"
19945 "\n"
19946 msgstr ""
19947
19948 # type: =head2
19949 #: ../fish/guestfish-actions.pod:1124
19950 msgid "filesize"
19951 msgstr ""
19952
19953 # type: verbatim
19954 #: ../fish/guestfish-actions.pod:1126
19955 #, no-wrap
19956 msgid ""
19957 " filesize file\n"
19958 "\n"
19959 msgstr ""
19960
19961 # type: textblock
19962 #: ../fish/guestfish-actions.pod:1130
19963 msgid ""
19964 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
19965 "L</is-file> etc.  To get the size of block devices, use "
19966 "L</blockdev-getsize64>."
19967 msgstr ""
19968
19969 # type: =head2
19970 #: ../fish/guestfish-actions.pod:1134
19971 msgid "fill"
19972 msgstr ""
19973
19974 # type: verbatim
19975 #: ../fish/guestfish-actions.pod:1136
19976 #, no-wrap
19977 msgid ""
19978 " fill c len path\n"
19979 "\n"
19980 msgstr ""
19981
19982 # type: textblock
19983 #: ../fish/guestfish-actions.pod:1142
19984 msgid ""
19985 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19986 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19987 "L</fill-pattern>."
19988 msgstr ""
19989
19990 # type: =head2
19991 #: ../fish/guestfish-actions.pod:1147
19992 msgid "fill-pattern"
19993 msgstr ""
19994
19995 # type: verbatim
19996 #: ../fish/guestfish-actions.pod:1149
19997 #, no-wrap
19998 msgid ""
19999 " fill-pattern pattern len path\n"
20000 "\n"
20001 msgstr ""
20002
20003 # type: textblock
20004 #: ../fish/guestfish-actions.pod:1151
20005 msgid ""
20006 "This function is like L</fill> except that it creates a new file of length "
20007 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20008 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20009 "bytes."
20010 msgstr ""
20011
20012 # type: =head2
20013 #: ../fish/guestfish-actions.pod:1156
20014 msgid "find"
20015 msgstr ""
20016
20017 # type: verbatim
20018 #: ../fish/guestfish-actions.pod:1158
20019 #, no-wrap
20020 msgid ""
20021 " find directory\n"
20022 "\n"
20023 msgstr ""
20024
20025 # type: textblock
20026 #: ../fish/guestfish-actions.pod:1172
20027 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20028 msgstr ""
20029
20030 # type: textblock
20031 #: ../fish/guestfish-actions.pod:1185
20032 msgid "See also L</find0>."
20033 msgstr ""
20034
20035 # type: =head2
20036 #: ../fish/guestfish-actions.pod:1190
20037 msgid "find0"
20038 msgstr ""
20039
20040 # type: verbatim
20041 #: ../fish/guestfish-actions.pod:1192
20042 #, no-wrap
20043 msgid ""
20044 " find0 directory (files|-)\n"
20045 "\n"
20046 msgstr ""
20047
20048 # type: textblock
20049 #: ../fish/guestfish-actions.pod:1198
20050 msgid "This command works the same way as L</find> with the following exceptions:"
20051 msgstr ""
20052
20053 # type: =head2
20054 #: ../fish/guestfish-actions.pod:1225
20055 msgid "findfs-label"
20056 msgstr ""
20057
20058 # type: verbatim
20059 #: ../fish/guestfish-actions.pod:1227
20060 #, no-wrap
20061 msgid ""
20062 " findfs-label label\n"
20063 "\n"
20064 msgstr ""
20065
20066 # type: textblock
20067 #: ../fish/guestfish-actions.pod:1233
20068 msgid "To find the label of a filesystem, use L</vfs-label>."
20069 msgstr ""
20070
20071 # type: =head2
20072 #: ../fish/guestfish-actions.pod:1235
20073 msgid "findfs-uuid"
20074 msgstr ""
20075
20076 # type: verbatim
20077 #: ../fish/guestfish-actions.pod:1237
20078 #, no-wrap
20079 msgid ""
20080 " findfs-uuid uuid\n"
20081 "\n"
20082 msgstr ""
20083
20084 # type: textblock
20085 #: ../fish/guestfish-actions.pod:1243
20086 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20087 msgstr ""
20088
20089 # type: =head2
20090 #: ../fish/guestfish-actions.pod:1245
20091 msgid "fsck"
20092 msgstr ""
20093
20094 # type: verbatim
20095 #: ../fish/guestfish-actions.pod:1247
20096 #, no-wrap
20097 msgid ""
20098 " fsck fstype device\n"
20099 "\n"
20100 msgstr ""
20101
20102 # type: =head2
20103 #: ../fish/guestfish-actions.pod:1277
20104 msgid "get-append"
20105 msgstr ""
20106
20107 # type: verbatim
20108 #: ../fish/guestfish-actions.pod:1279
20109 #, no-wrap
20110 msgid ""
20111 " get-append\n"
20112 "\n"
20113 msgstr ""
20114
20115 # type: =head2
20116 #: ../fish/guestfish-actions.pod:1286
20117 msgid "get-autosync"
20118 msgstr ""
20119
20120 # type: verbatim
20121 #: ../fish/guestfish-actions.pod:1288
20122 #, no-wrap
20123 msgid ""
20124 " get-autosync\n"
20125 "\n"
20126 msgstr ""
20127
20128 # type: =head2
20129 #: ../fish/guestfish-actions.pod:1292
20130 msgid "get-direct"
20131 msgstr ""
20132
20133 # type: verbatim
20134 #: ../fish/guestfish-actions.pod:1294
20135 #, no-wrap
20136 msgid ""
20137 " get-direct\n"
20138 "\n"
20139 msgstr ""
20140
20141 # type: =head2
20142 #: ../fish/guestfish-actions.pod:1298
20143 msgid "get-e2label"
20144 msgstr ""
20145
20146 # type: verbatim
20147 #: ../fish/guestfish-actions.pod:1300
20148 #, no-wrap
20149 msgid ""
20150 " get-e2label device\n"
20151 "\n"
20152 msgstr ""
20153
20154 # type: =head2
20155 #: ../fish/guestfish-actions.pod:1312
20156 msgid "get-e2uuid"
20157 msgstr ""
20158
20159 # type: verbatim
20160 #: ../fish/guestfish-actions.pod:1314
20161 #, no-wrap
20162 msgid ""
20163 " get-e2uuid device\n"
20164 "\n"
20165 msgstr ""
20166
20167 # type: =head2
20168 #: ../fish/guestfish-actions.pod:1326
20169 msgid "get-memsize"
20170 msgstr ""
20171
20172 # type: verbatim
20173 #: ../fish/guestfish-actions.pod:1328
20174 #, no-wrap
20175 msgid ""
20176 " get-memsize\n"
20177 "\n"
20178 msgstr ""
20179
20180 # type: textblock
20181 #: ../fish/guestfish-actions.pod:1333
20182 msgid ""
20183 "If L</set-memsize> was not called on this handle, and if "
20184 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20185 "value for memsize."
20186 msgstr ""
20187
20188 # type: =head2
20189 #: ../fish/guestfish-actions.pod:1340
20190 msgid "get-network"
20191 msgstr ""
20192
20193 # type: verbatim
20194 #: ../fish/guestfish-actions.pod:1342
20195 #, no-wrap
20196 msgid ""
20197 " get-network\n"
20198 "\n"
20199 msgstr ""
20200
20201 # type: =head2
20202 #: ../fish/guestfish-actions.pod:1346
20203 msgid "get-path"
20204 msgstr ""
20205
20206 # type: verbatim
20207 #: ../fish/guestfish-actions.pod:1348
20208 #, no-wrap
20209 msgid ""
20210 " get-path\n"
20211 "\n"
20212 msgstr ""
20213
20214 # type: =head2
20215 #: ../fish/guestfish-actions.pod:1355
20216 msgid "get-pid"
20217 msgstr ""
20218
20219 # type: =head2
20220 #: ../fish/guestfish-actions.pod:1357
20221 msgid "pid"
20222 msgstr ""
20223
20224 # type: verbatim
20225 #: ../fish/guestfish-actions.pod:1359
20226 #, no-wrap
20227 msgid ""
20228 " get-pid\n"
20229 "\n"
20230 msgstr ""
20231
20232 # type: =head2
20233 #: ../fish/guestfish-actions.pod:1366
20234 msgid "get-qemu"
20235 msgstr ""
20236
20237 # type: verbatim
20238 #: ../fish/guestfish-actions.pod:1368
20239 #, no-wrap
20240 msgid ""
20241 " get-qemu\n"
20242 "\n"
20243 msgstr ""
20244
20245 # type: =head2
20246 #: ../fish/guestfish-actions.pod:1375
20247 msgid "get-recovery-proc"
20248 msgstr ""
20249
20250 # type: verbatim
20251 #: ../fish/guestfish-actions.pod:1377
20252 #, no-wrap
20253 msgid ""
20254 " get-recovery-proc\n"
20255 "\n"
20256 msgstr ""
20257
20258 # type: =head2
20259 #: ../fish/guestfish-actions.pod:1381
20260 msgid "get-selinux"
20261 msgstr ""
20262
20263 # type: verbatim
20264 #: ../fish/guestfish-actions.pod:1383
20265 #, no-wrap
20266 msgid ""
20267 " get-selinux\n"
20268 "\n"
20269 msgstr ""
20270
20271 # type: textblock
20272 #: ../fish/guestfish-actions.pod:1385
20273 msgid ""
20274 "This returns the current setting of the selinux flag which is passed to the "
20275 "appliance at boot time.  See L</set-selinux>."
20276 msgstr ""
20277
20278 # type: =head2
20279 #: ../fish/guestfish-actions.pod:1391
20280 msgid "get-state"
20281 msgstr ""
20282
20283 # type: verbatim
20284 #: ../fish/guestfish-actions.pod:1393
20285 #, no-wrap
20286 msgid ""
20287 " get-state\n"
20288 "\n"
20289 msgstr ""
20290
20291 # type: =head2
20292 #: ../fish/guestfish-actions.pod:1400
20293 msgid "get-trace"
20294 msgstr ""
20295
20296 # type: verbatim
20297 #: ../fish/guestfish-actions.pod:1402
20298 #, no-wrap
20299 msgid ""
20300 " get-trace\n"
20301 "\n"
20302 msgstr ""
20303
20304 # type: =head2
20305 #: ../fish/guestfish-actions.pod:1406
20306 msgid "get-umask"
20307 msgstr ""
20308
20309 # type: verbatim
20310 #: ../fish/guestfish-actions.pod:1408
20311 #, no-wrap
20312 msgid ""
20313 " get-umask\n"
20314 "\n"
20315 msgstr ""
20316
20317 # type: textblock
20318 #: ../fish/guestfish-actions.pod:1410
20319 msgid ""
20320 "Return the current umask.  By default the umask is C<022> unless it has been "
20321 "set by calling L</umask>."
20322 msgstr ""
20323
20324 # type: =head2
20325 #: ../fish/guestfish-actions.pod:1413
20326 msgid "get-verbose"
20327 msgstr ""
20328
20329 # type: verbatim
20330 #: ../fish/guestfish-actions.pod:1415
20331 #, no-wrap
20332 msgid ""
20333 " get-verbose\n"
20334 "\n"
20335 msgstr ""
20336
20337 # type: =head2
20338 #: ../fish/guestfish-actions.pod:1419
20339 msgid "getcon"
20340 msgstr ""
20341
20342 # type: verbatim
20343 #: ../fish/guestfish-actions.pod:1421
20344 #, no-wrap
20345 msgid ""
20346 " getcon\n"
20347 "\n"
20348 msgstr ""
20349
20350 # type: textblock
20351 #: ../fish/guestfish-actions.pod:1425
20352 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20353 msgstr ""
20354
20355 # type: =head2
20356 #: ../fish/guestfish-actions.pod:1428
20357 msgid "getxattrs"
20358 msgstr ""
20359
20360 # type: verbatim
20361 #: ../fish/guestfish-actions.pod:1430
20362 #, no-wrap
20363 msgid ""
20364 " getxattrs path\n"
20365 "\n"
20366 msgstr ""
20367
20368 # type: textblock
20369 #: ../fish/guestfish-actions.pod:1438
20370 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20371 msgstr ""
20372
20373 # type: =head2
20374 #: ../fish/guestfish-actions.pod:1440
20375 msgid "glob-expand"
20376 msgstr ""
20377
20378 # type: verbatim
20379 #: ../fish/guestfish-actions.pod:1442
20380 #, no-wrap
20381 msgid ""
20382 " glob-expand pattern\n"
20383 "\n"
20384 msgstr ""
20385
20386 # type: =head2
20387 #: ../fish/guestfish-actions.pod:1455
20388 msgid "grep"
20389 msgstr ""
20390
20391 # type: verbatim
20392 #: ../fish/guestfish-actions.pod:1457
20393 #, no-wrap
20394 msgid ""
20395 " grep regex path\n"
20396 "\n"
20397 msgstr ""
20398
20399 # type: =head2
20400 #: ../fish/guestfish-actions.pod:1465
20401 msgid "grepi"
20402 msgstr ""
20403
20404 # type: verbatim
20405 #: ../fish/guestfish-actions.pod:1467
20406 #, no-wrap
20407 msgid ""
20408 " grepi regex path\n"
20409 "\n"
20410 msgstr ""
20411
20412 # type: =head2
20413 #: ../fish/guestfish-actions.pod:1475
20414 msgid "grub-install"
20415 msgstr ""
20416
20417 # type: verbatim
20418 #: ../fish/guestfish-actions.pod:1477
20419 #, no-wrap
20420 msgid ""
20421 " grub-install root device\n"
20422 "\n"
20423 msgstr ""
20424
20425 # type: =head2
20426 #: ../fish/guestfish-actions.pod:1493
20427 msgid "head"
20428 msgstr ""
20429
20430 # type: verbatim
20431 #: ../fish/guestfish-actions.pod:1495
20432 #, no-wrap
20433 msgid ""
20434 " head path\n"
20435 "\n"
20436 msgstr ""
20437
20438 # type: =head2
20439 #: ../fish/guestfish-actions.pod:1503
20440 msgid "head-n"
20441 msgstr ""
20442
20443 # type: verbatim
20444 #: ../fish/guestfish-actions.pod:1505
20445 #, no-wrap
20446 msgid ""
20447 " head-n nrlines path\n"
20448 "\n"
20449 msgstr ""
20450
20451 # type: =head2
20452 #: ../fish/guestfish-actions.pod:1518
20453 msgid "hexdump"
20454 msgstr ""
20455
20456 # type: verbatim
20457 #: ../fish/guestfish-actions.pod:1520
20458 #, no-wrap
20459 msgid ""
20460 " hexdump path\n"
20461 "\n"
20462 msgstr ""
20463
20464 # type: =head2
20465 #: ../fish/guestfish-actions.pod:1528
20466 msgid "initrd-cat"
20467 msgstr ""
20468
20469 # type: verbatim
20470 #: ../fish/guestfish-actions.pod:1530
20471 #, no-wrap
20472 msgid ""
20473 " initrd-cat initrdpath filename\n"
20474 "\n"
20475 msgstr ""
20476
20477 # type: textblock
20478 #: ../fish/guestfish-actions.pod:1542
20479 msgid "See also L</initrd-list>."
20480 msgstr ""
20481
20482 # type: =head2
20483 #: ../fish/guestfish-actions.pod:1547
20484 msgid "initrd-list"
20485 msgstr ""
20486
20487 # type: verbatim
20488 #: ../fish/guestfish-actions.pod:1549
20489 #, no-wrap
20490 msgid ""
20491 " initrd-list path\n"
20492 "\n"
20493 msgstr ""
20494
20495 # type: =head2
20496 #: ../fish/guestfish-actions.pod:1561
20497 msgid "inotify-add-watch"
20498 msgstr ""
20499
20500 # type: verbatim
20501 #: ../fish/guestfish-actions.pod:1563
20502 #, no-wrap
20503 msgid ""
20504 " inotify-add-watch path mask\n"
20505 "\n"
20506 msgstr ""
20507
20508 # type: =head2
20509 #: ../fish/guestfish-actions.pod:1575
20510 msgid "inotify-close"
20511 msgstr ""
20512
20513 # type: verbatim
20514 #: ../fish/guestfish-actions.pod:1577
20515 #, no-wrap
20516 msgid ""
20517 " inotify-close\n"
20518 "\n"
20519 msgstr ""
20520
20521 # type: =head2
20522 #: ../fish/guestfish-actions.pod:1583
20523 msgid "inotify-files"
20524 msgstr ""
20525
20526 # type: verbatim
20527 #: ../fish/guestfish-actions.pod:1585
20528 #, no-wrap
20529 msgid ""
20530 " inotify-files\n"
20531 "\n"
20532 msgstr ""
20533
20534 # type: textblock
20535 #: ../fish/guestfish-actions.pod:1587
20536 msgid ""
20537 "This function is a helpful wrapper around L</inotify-read> which just "
20538 "returns a list of pathnames of objects that were touched.  The returned "
20539 "pathnames are sorted and deduplicated."
20540 msgstr ""
20541
20542 # type: =head2
20543 #: ../fish/guestfish-actions.pod:1591
20544 msgid "inotify-init"
20545 msgstr ""
20546
20547 # type: verbatim
20548 #: ../fish/guestfish-actions.pod:1593
20549 #, no-wrap
20550 msgid ""
20551 " inotify-init maxevents\n"
20552 "\n"
20553 msgstr ""
20554
20555 # type: textblock
20556 #: ../fish/guestfish-actions.pod:1599
20557 msgid ""
20558 "C<maxevents> is the maximum number of events which will be queued up between "
20559 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20560 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20561 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20562 "but records the fact that it threw them away by setting a flag "
20563 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20564 msgstr ""
20565
20566 # type: textblock
20567 #: ../fish/guestfish-actions.pod:1609
20568 msgid ""
20569 "Before any events are generated, you have to add some watches to the "
20570 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20571 "L</inotify-watch-all>."
20572 msgstr ""
20573
20574 # type: textblock
20575 #: ../fish/guestfish-actions.pod:1615
20576 msgid ""
20577 "Queued up events should be read periodically by calling L</inotify-read> (or "
20578 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20579 "If you don't read the events out often enough then you risk the internal "
20580 "queue overflowing."
20581 msgstr ""
20582
20583 # type: textblock
20584 #: ../fish/guestfish-actions.pod:1622
20585 msgid ""
20586 "The handle should be closed after use by calling L</inotify-close>.  This "
20587 "also removes any watches automatically."
20588 msgstr ""
20589
20590 # type: =head2
20591 #: ../fish/guestfish-actions.pod:1631
20592 msgid "inotify-read"
20593 msgstr ""
20594
20595 # type: verbatim
20596 #: ../fish/guestfish-actions.pod:1633
20597 #, no-wrap
20598 msgid ""
20599 " inotify-read\n"
20600 "\n"
20601 msgstr ""
20602
20603 # type: =head2
20604 #: ../fish/guestfish-actions.pod:1646
20605 msgid "inotify-rm-watch"
20606 msgstr ""
20607
20608 # type: verbatim
20609 #: ../fish/guestfish-actions.pod:1648
20610 #, no-wrap
20611 msgid ""
20612 " inotify-rm-watch wd\n"
20613 "\n"
20614 msgstr ""
20615
20616 # type: textblock
20617 #: ../fish/guestfish-actions.pod:1650
20618 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20619 msgstr ""
20620
20621 # type: =head2
20622 #: ../fish/guestfish-actions.pod:1653
20623 msgid "inspect-get-arch"
20624 msgstr ""
20625
20626 # type: verbatim
20627 #: ../fish/guestfish-actions.pod:1655
20628 #, no-wrap
20629 msgid ""
20630 " inspect-get-arch root\n"
20631 "\n"
20632 msgstr ""
20633
20634 # type: textblock
20635 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673 ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765 ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839 ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885 ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950 ../fish/guestfish-actions.pod:1966
20636 msgid ""
20637 "This function should only be called with a root device string as returned by "
20638 "L</inspect-os>."
20639 msgstr ""
20640
20641 # type: textblock
20642 #: ../fish/guestfish-actions.pod:1660
20643 msgid ""
20644 "This returns the architecture of the inspected operating system.  The "
20645 "possible return values are listed under L</file-architecture>."
20646 msgstr ""
20647
20648 # type: =head2
20649 #: ../fish/guestfish-actions.pod:1669
20650 msgid "inspect-get-distro"
20651 msgstr ""
20652
20653 # type: verbatim
20654 #: ../fish/guestfish-actions.pod:1671
20655 #, no-wrap
20656 msgid ""
20657 " inspect-get-distro root\n"
20658 "\n"
20659 msgstr ""
20660
20661 # type: =head2
20662 #: ../fish/guestfish-actions.pod:1743
20663 msgid "inspect-get-filesystems"
20664 msgstr ""
20665
20666 # type: verbatim
20667 #: ../fish/guestfish-actions.pod:1745
20668 #, no-wrap
20669 msgid ""
20670 " inspect-get-filesystems root\n"
20671 "\n"
20672 msgstr ""
20673
20674 # type: textblock
20675 #: ../fish/guestfish-actions.pod:1758
20676 msgid ""
20677 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20678 "L</inspect-get-mountpoints>."
20679 msgstr ""
20680
20681 # type: =head2
20682 #: ../fish/guestfish-actions.pod:1761
20683 msgid "inspect-get-hostname"
20684 msgstr ""
20685
20686 # type: verbatim
20687 #: ../fish/guestfish-actions.pod:1763
20688 #, no-wrap
20689 msgid ""
20690 " inspect-get-hostname root\n"
20691 "\n"
20692 msgstr ""
20693
20694 # type: =head2
20695 #: ../fish/guestfish-actions.pod:1776
20696 msgid "inspect-get-major-version"
20697 msgstr ""
20698
20699 # type: verbatim
20700 #: ../fish/guestfish-actions.pod:1778
20701 #, no-wrap
20702 msgid ""
20703 " inspect-get-major-version root\n"
20704 "\n"
20705 msgstr ""
20706
20707 # type: =head2
20708 #: ../fish/guestfish-actions.pod:1797
20709 msgid "inspect-get-minor-version"
20710 msgstr ""
20711
20712 # type: verbatim
20713 #: ../fish/guestfish-actions.pod:1799
20714 #, no-wrap
20715 msgid ""
20716 " inspect-get-minor-version root\n"
20717 "\n"
20718 msgstr ""
20719
20720 # type: textblock
20721 #: ../fish/guestfish-actions.pod:1809
20722 msgid ""
20723 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20724 "L</inspect-get-major-version>."
20725 msgstr ""
20726
20727 # type: =head2
20728 #: ../fish/guestfish-actions.pod:1812
20729 msgid "inspect-get-mountpoints"
20730 msgstr ""
20731
20732 # type: verbatim
20733 #: ../fish/guestfish-actions.pod:1814
20734 #, no-wrap
20735 msgid ""
20736 " inspect-get-mountpoints root\n"
20737 "\n"
20738 msgstr ""
20739
20740 # type: textblock
20741 #: ../fish/guestfish-actions.pod:1832
20742 msgid ""
20743 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20744 "L</inspect-get-filesystems>."
20745 msgstr ""
20746
20747 # type: =head2
20748 #: ../fish/guestfish-actions.pod:1835
20749 msgid "inspect-get-package-format"
20750 msgstr ""
20751
20752 # type: verbatim
20753 #: ../fish/guestfish-actions.pod:1837
20754 #, no-wrap
20755 msgid ""
20756 " inspect-get-package-format root\n"
20757 "\n"
20758 msgstr ""
20759
20760 # type: textblock
20761 #: ../fish/guestfish-actions.pod:1842
20762 msgid ""
20763 "This function and L</inspect-get-package-management> return the package "
20764 "format and package management tool used by the inspected operating system.  "
20765 "For example for Fedora these functions would return C<rpm> (package format) "
20766 "and C<yum> (package management)."
20767 msgstr ""
20768
20769 # type: =head2
20770 #: ../fish/guestfish-actions.pod:1857
20771 msgid "inspect-get-package-management"
20772 msgstr ""
20773
20774 # type: verbatim
20775 #: ../fish/guestfish-actions.pod:1859
20776 #, no-wrap
20777 msgid ""
20778 " inspect-get-package-management root\n"
20779 "\n"
20780 msgstr ""
20781
20782 # type: textblock
20783 #: ../fish/guestfish-actions.pod:1864
20784 msgid ""
20785 "L</inspect-get-package-format> and this function return the package format "
20786 "and package management tool used by the inspected operating system.  For "
20787 "example for Fedora these functions would return C<rpm> (package format) and "
20788 "C<yum> (package management)."
20789 msgstr ""
20790
20791 # type: =head2
20792 #: ../fish/guestfish-actions.pod:1881
20793 msgid "inspect-get-product-name"
20794 msgstr ""
20795
20796 # type: verbatim
20797 #: ../fish/guestfish-actions.pod:1883
20798 #, no-wrap
20799 msgid ""
20800 " inspect-get-product-name root\n"
20801 "\n"
20802 msgstr ""
20803
20804 # type: =head2
20805 #: ../fish/guestfish-actions.pod:1898
20806 msgid "inspect-get-roots"
20807 msgstr ""
20808
20809 # type: verbatim
20810 #: ../fish/guestfish-actions.pod:1900
20811 #, no-wrap
20812 msgid ""
20813 " inspect-get-roots\n"
20814 "\n"
20815 msgstr ""
20816
20817 # type: textblock
20818 #: ../fish/guestfish-actions.pod:1902
20819 msgid ""
20820 "This function is a convenient way to get the list of root devices, as "
20821 "returned from a previous call to L</inspect-os>, but without redoing the "
20822 "whole inspection process."
20823 msgstr ""
20824
20825 # type: textblock
20826 #: ../fish/guestfish-actions.pod:1906
20827 msgid ""
20828 "This returns an empty list if either no root devices were found or the "
20829 "caller has not called L</inspect-os>."
20830 msgstr ""
20831
20832 # type: =head2
20833 #: ../fish/guestfish-actions.pod:1911
20834 msgid "inspect-get-type"
20835 msgstr ""
20836
20837 # type: verbatim
20838 #: ../fish/guestfish-actions.pod:1913
20839 #, no-wrap
20840 msgid ""
20841 " inspect-get-type root\n"
20842 "\n"
20843 msgstr ""
20844
20845 # type: =head2
20846 #: ../fish/guestfish-actions.pod:1946
20847 msgid "inspect-get-windows-systemroot"
20848 msgstr ""
20849
20850 # type: verbatim
20851 #: ../fish/guestfish-actions.pod:1948
20852 #, no-wrap
20853 msgid ""
20854 " inspect-get-windows-systemroot root\n"
20855 "\n"
20856 msgstr ""
20857
20858 # type: =head2
20859 #: ../fish/guestfish-actions.pod:1962
20860 msgid "inspect-list-applications"
20861 msgstr ""
20862
20863 # type: verbatim
20864 #: ../fish/guestfish-actions.pod:1964
20865 #, no-wrap
20866 msgid ""
20867 " inspect-list-applications root\n"
20868 "\n"
20869 msgstr ""
20870
20871 # type: textblock
20872 #: ../fish/guestfish-actions.pod:1971
20873 msgid ""
20874 "I<Note:> This call works differently from other parts of the inspection "
20875 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
20876 "then mount up the disks, before calling this.  Listing applications is a "
20877 "significantly more difficult operation which requires access to the full "
20878 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
20879 "are just returning data cached in the libguestfs handle, this call actually "
20880 "reads parts of the mounted filesystems during the call."
20881 msgstr ""
20882
20883 # type: =head2
20884 #: ../fish/guestfish-actions.pod:2061
20885 msgid "inspect-os"
20886 msgstr ""
20887
20888 # type: verbatim
20889 #: ../fish/guestfish-actions.pod:2063
20890 #, no-wrap
20891 msgid ""
20892 " inspect-os\n"
20893 "\n"
20894 msgstr ""
20895
20896 # type: textblock
20897 #: ../fish/guestfish-actions.pod:2078
20898 msgid ""
20899 "You can pass the root string(s) returned to other L</inspect-get-*> "
20900 "functions in order to query further information about each operating system, "
20901 "such as the name and version."
20902 msgstr ""
20903
20904 # type: textblock
20905 #: ../fish/guestfish-actions.pod:2083
20906 msgid ""
20907 "This function uses other libguestfs features such as L</mount-ro> and "
20908 "L</umount-all> in order to mount and unmount filesystems and look at the "
20909 "contents.  This should be called with no disks currently mounted.  The "
20910 "function may also use Augeas, so any existing Augeas handle will be closed."
20911 msgstr ""
20912
20913 # type: textblock
20914 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251 ../fish/guestfish-actions.pod:2297
20915 msgid "See also L</list-filesystems>."
20916 msgstr ""
20917
20918 # type: =head2
20919 #: ../fish/guestfish-actions.pod:2097
20920 msgid "is-blockdev"
20921 msgstr ""
20922
20923 # type: verbatim
20924 #: ../fish/guestfish-actions.pod:2099
20925 #, no-wrap
20926 msgid ""
20927 " is-blockdev path\n"
20928 "\n"
20929 msgstr ""
20930
20931 # type: textblock
20932 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2203
20933 msgid "See also L</stat>."
20934 msgstr ""
20935
20936 # type: =head2
20937 #: ../fish/guestfish-actions.pod:2106
20938 msgid "is-busy"
20939 msgstr ""
20940
20941 # type: verbatim
20942 #: ../fish/guestfish-actions.pod:2108
20943 #, no-wrap
20944 msgid ""
20945 " is-busy\n"
20946 "\n"
20947 msgstr ""
20948
20949 # type: =head2
20950 #: ../fish/guestfish-actions.pod:2115
20951 msgid "is-chardev"
20952 msgstr ""
20953
20954 # type: verbatim
20955 #: ../fish/guestfish-actions.pod:2117
20956 #, no-wrap
20957 msgid ""
20958 " is-chardev path\n"
20959 "\n"
20960 msgstr ""
20961
20962 # type: =head2
20963 #: ../fish/guestfish-actions.pod:2124
20964 msgid "is-config"
20965 msgstr ""
20966
20967 # type: verbatim
20968 #: ../fish/guestfish-actions.pod:2126
20969 #, no-wrap
20970 msgid ""
20971 " is-config\n"
20972 "\n"
20973 msgstr ""
20974
20975 # type: =head2
20976 #: ../fish/guestfish-actions.pod:2133
20977 msgid "is-dir"
20978 msgstr ""
20979
20980 # type: verbatim
20981 #: ../fish/guestfish-actions.pod:2135
20982 #, no-wrap
20983 msgid ""
20984 " is-dir path\n"
20985 "\n"
20986 msgstr ""
20987
20988 # type: =head2
20989 #: ../fish/guestfish-actions.pod:2143
20990 msgid "is-fifo"
20991 msgstr ""
20992
20993 # type: verbatim
20994 #: ../fish/guestfish-actions.pod:2145
20995 #, no-wrap
20996 msgid ""
20997 " is-fifo path\n"
20998 "\n"
20999 msgstr ""
21000
21001 # type: =head2
21002 #: ../fish/guestfish-actions.pod:2152
21003 msgid "is-file"
21004 msgstr ""
21005
21006 # type: verbatim
21007 #: ../fish/guestfish-actions.pod:2154
21008 #, no-wrap
21009 msgid ""
21010 " is-file path\n"
21011 "\n"
21012 msgstr ""
21013
21014 # type: =head2
21015 #: ../fish/guestfish-actions.pod:2162
21016 msgid "is-launching"
21017 msgstr ""
21018
21019 # type: verbatim
21020 #: ../fish/guestfish-actions.pod:2164
21021 #, no-wrap
21022 msgid ""
21023 " is-launching\n"
21024 "\n"
21025 msgstr ""
21026
21027 # type: =head2
21028 #: ../fish/guestfish-actions.pod:2171
21029 msgid "is-lv"
21030 msgstr ""
21031
21032 # type: verbatim
21033 #: ../fish/guestfish-actions.pod:2173
21034 #, no-wrap
21035 msgid ""
21036 " is-lv device\n"
21037 "\n"
21038 msgstr ""
21039
21040 # type: =head2
21041 #: ../fish/guestfish-actions.pod:2178
21042 msgid "is-ready"
21043 msgstr ""
21044
21045 # type: verbatim
21046 #: ../fish/guestfish-actions.pod:2180
21047 #, no-wrap
21048 msgid ""
21049 " is-ready\n"
21050 "\n"
21051 msgstr ""
21052
21053 # type: =head2
21054 #: ../fish/guestfish-actions.pod:2187
21055 msgid "is-socket"
21056 msgstr ""
21057
21058 # type: verbatim
21059 #: ../fish/guestfish-actions.pod:2189
21060 #, no-wrap
21061 msgid ""
21062 " is-socket path\n"
21063 "\n"
21064 msgstr ""
21065
21066 # type: =head2
21067 #: ../fish/guestfish-actions.pod:2196
21068 msgid "is-symlink"
21069 msgstr ""
21070
21071 # type: verbatim
21072 #: ../fish/guestfish-actions.pod:2198
21073 #, no-wrap
21074 msgid ""
21075 " is-symlink path\n"
21076 "\n"
21077 msgstr ""
21078
21079 # type: =head2
21080 #: ../fish/guestfish-actions.pod:2205
21081 msgid "kill-subprocess"
21082 msgstr ""
21083
21084 # type: verbatim
21085 #: ../fish/guestfish-actions.pod:2207
21086 #, no-wrap
21087 msgid ""
21088 " kill-subprocess\n"
21089 "\n"
21090 msgstr ""
21091
21092 # type: =head2
21093 #: ../fish/guestfish-actions.pod:2211
21094 msgid "launch"
21095 msgstr ""
21096
21097 # type: =head2
21098 #: ../fish/guestfish-actions.pod:2213
21099 msgid "run"
21100 msgstr ""
21101
21102 # type: verbatim
21103 #: ../fish/guestfish-actions.pod:2215
21104 #, no-wrap
21105 msgid ""
21106 " launch\n"
21107 "\n"
21108 msgstr ""
21109
21110 # type: =head2
21111 #: ../fish/guestfish-actions.pod:2223
21112 msgid "lchown"
21113 msgstr ""
21114
21115 # type: verbatim
21116 #: ../fish/guestfish-actions.pod:2225
21117 #, no-wrap
21118 msgid ""
21119 " lchown owner group path\n"
21120 "\n"
21121 msgstr ""
21122
21123 # type: textblock
21124 #: ../fish/guestfish-actions.pod:2227
21125 msgid ""
21126 "Change the file owner to C<owner> and group to C<group>.  This is like "
21127 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
21128 "the target."
21129 msgstr ""
21130
21131 # type: =head2
21132 #: ../fish/guestfish-actions.pod:2235
21133 msgid "lgetxattrs"
21134 msgstr ""
21135
21136 # type: verbatim
21137 #: ../fish/guestfish-actions.pod:2237
21138 #, no-wrap
21139 msgid ""
21140 " lgetxattrs path\n"
21141 "\n"
21142 msgstr ""
21143
21144 # type: textblock
21145 #: ../fish/guestfish-actions.pod:2239
21146 msgid ""
21147 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21148 "it returns the extended attributes of the link itself."
21149 msgstr ""
21150
21151 # type: =head2
21152 #: ../fish/guestfish-actions.pod:2243
21153 msgid "list-devices"
21154 msgstr ""
21155
21156 # type: verbatim
21157 #: ../fish/guestfish-actions.pod:2245
21158 #, no-wrap
21159 msgid ""
21160 " list-devices\n"
21161 "\n"
21162 msgstr ""
21163
21164 # type: =head2
21165 #: ../fish/guestfish-actions.pod:2253
21166 msgid "list-filesystems"
21167 msgstr ""
21168
21169 # type: verbatim
21170 #: ../fish/guestfish-actions.pod:2255
21171 #, no-wrap
21172 msgid ""
21173 " list-filesystems\n"
21174 "\n"
21175 msgstr ""
21176
21177 # type: textblock
21178 #: ../fish/guestfish-actions.pod:2274
21179 msgid ""
21180 "This command runs other libguestfs commands, which might include L</mount> "
21181 "and L</umount>, and therefore you should use this soon after launch and only "
21182 "when nothing is mounted."
21183 msgstr ""
21184
21185 # type: textblock
21186 #: ../fish/guestfish-actions.pod:2278
21187 msgid ""
21188 "Not all of the filesystems returned will be mountable.  In particular, swap "
21189 "partitions are returned in the list.  Also this command does not check that "
21190 "each filesystem found is valid and mountable, and some filesystems might be "
21191 "mountable but require special options.  Filesystems may not all belong to a "
21192 "single logical operating system (use L</inspect-os> to look for OSes)."
21193 msgstr ""
21194
21195 # type: =head2
21196 #: ../fish/guestfish-actions.pod:2286
21197 msgid "list-partitions"
21198 msgstr ""
21199
21200 # type: verbatim
21201 #: ../fish/guestfish-actions.pod:2288
21202 #, no-wrap
21203 msgid ""
21204 " list-partitions\n"
21205 "\n"
21206 msgstr ""
21207
21208 # type: textblock
21209 #: ../fish/guestfish-actions.pod:2294
21210 msgid ""
21211 "This does not return logical volumes.  For that you will need to call "
21212 "L</lvs>."
21213 msgstr ""
21214
21215 # type: =head2
21216 #: ../fish/guestfish-actions.pod:2299
21217 msgid "ll"
21218 msgstr ""
21219
21220 # type: verbatim
21221 #: ../fish/guestfish-actions.pod:2301
21222 #, no-wrap
21223 msgid ""
21224 " ll directory\n"
21225 "\n"
21226 msgstr ""
21227
21228 # type: =head2
21229 #: ../fish/guestfish-actions.pod:2309
21230 msgid "ln"
21231 msgstr ""
21232
21233 # type: verbatim
21234 #: ../fish/guestfish-actions.pod:2311
21235 #, no-wrap
21236 msgid ""
21237 " ln target linkname\n"
21238 "\n"
21239 msgstr ""
21240
21241 # type: =head2
21242 #: ../fish/guestfish-actions.pod:2315
21243 msgid "ln-f"
21244 msgstr ""
21245
21246 # type: verbatim
21247 #: ../fish/guestfish-actions.pod:2317
21248 #, no-wrap
21249 msgid ""
21250 " ln-f target linkname\n"
21251 "\n"
21252 msgstr ""
21253
21254 # type: =head2
21255 #: ../fish/guestfish-actions.pod:2322
21256 msgid "ln-s"
21257 msgstr ""
21258
21259 # type: verbatim
21260 #: ../fish/guestfish-actions.pod:2324
21261 #, no-wrap
21262 msgid ""
21263 " ln-s target linkname\n"
21264 "\n"
21265 msgstr ""
21266
21267 # type: =head2
21268 #: ../fish/guestfish-actions.pod:2328
21269 msgid "ln-sf"
21270 msgstr ""
21271
21272 # type: verbatim
21273 #: ../fish/guestfish-actions.pod:2330
21274 #, no-wrap
21275 msgid ""
21276 " ln-sf target linkname\n"
21277 "\n"
21278 msgstr ""
21279
21280 # type: =head2
21281 #: ../fish/guestfish-actions.pod:2335
21282 msgid "lremovexattr"
21283 msgstr ""
21284
21285 # type: verbatim
21286 #: ../fish/guestfish-actions.pod:2337
21287 #, no-wrap
21288 msgid ""
21289 " lremovexattr xattr path\n"
21290 "\n"
21291 msgstr ""
21292
21293 # type: textblock
21294 #: ../fish/guestfish-actions.pod:2339
21295 msgid ""
21296 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21297 "it removes an extended attribute of the link itself."
21298 msgstr ""
21299
21300 # type: =head2
21301 #: ../fish/guestfish-actions.pod:2343
21302 msgid "ls"
21303 msgstr ""
21304
21305 # type: verbatim
21306 #: ../fish/guestfish-actions.pod:2345
21307 #, no-wrap
21308 msgid ""
21309 " ls directory\n"
21310 "\n"
21311 msgstr ""
21312
21313 # type: textblock
21314 #: ../fish/guestfish-actions.pod:2351
21315 msgid ""
21316 "This command is mostly useful for interactive sessions.  Programs should "
21317 "probably use L</readdir> instead."
21318 msgstr ""
21319
21320 # type: =head2
21321 #: ../fish/guestfish-actions.pod:2354
21322 msgid "lsetxattr"
21323 msgstr ""
21324
21325 # type: verbatim
21326 #: ../fish/guestfish-actions.pod:2356
21327 #, no-wrap
21328 msgid ""
21329 " lsetxattr xattr val vallen path\n"
21330 "\n"
21331 msgstr ""
21332
21333 # type: textblock
21334 #: ../fish/guestfish-actions.pod:2358
21335 msgid ""
21336 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21337 "sets an extended attribute of the link itself."
21338 msgstr ""
21339
21340 # type: =head2
21341 #: ../fish/guestfish-actions.pod:2362
21342 msgid "lstat"
21343 msgstr ""
21344
21345 # type: verbatim
21346 #: ../fish/guestfish-actions.pod:2364
21347 #, no-wrap
21348 msgid ""
21349 " lstat path\n"
21350 "\n"
21351 msgstr ""
21352
21353 # type: textblock
21354 #: ../fish/guestfish-actions.pod:2368
21355 msgid ""
21356 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21357 "the link is stat-ed, not the file it refers to."
21358 msgstr ""
21359
21360 # type: =head2
21361 #: ../fish/guestfish-actions.pod:2374
21362 msgid "lstatlist"
21363 msgstr ""
21364
21365 # type: verbatim
21366 #: ../fish/guestfish-actions.pod:2376
21367 #, no-wrap
21368 msgid ""
21369 " lstatlist path 'names ...'\n"
21370 "\n"
21371 msgstr ""
21372
21373 # type: textblock
21374 #: ../fish/guestfish-actions.pod:2378
21375 msgid ""
21376 "This call allows you to perform the L</lstat> operation on multiple files, "
21377 "where all files are in the directory C<path>.  C<names> is the list of files "
21378 "from this directory."
21379 msgstr ""
21380
21381 # type: textblock
21382 #: ../fish/guestfish-actions.pod:2387
21383 msgid ""
21384 "This call is intended for programs that want to efficiently list a directory "
21385 "contents without making many round-trips.  See also L</lxattrlist> for a "
21386 "similarly efficient call for getting extended attributes.  Very long "
21387 "directory listings might cause the protocol message size to be exceeded, "
21388 "causing this call to fail.  The caller must split up such requests into "
21389 "smaller groups of names."
21390 msgstr ""
21391
21392 # type: =head2
21393 #: ../fish/guestfish-actions.pod:2395
21394 msgid "luks-add-key"
21395 msgstr ""
21396
21397 # type: verbatim
21398 #: ../fish/guestfish-actions.pod:2397
21399 #, no-wrap
21400 msgid ""
21401 " luks-add-key device keyslot\n"
21402 "\n"
21403 msgstr ""
21404
21405 # type: textblock
21406 #: ../fish/guestfish-actions.pod:2404
21407 msgid ""
21408 "Note that if C<keyslot> already contains a key, then this command will "
21409 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21410 msgstr ""
21411
21412 # type: textblock
21413 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430 ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457 ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
21414 msgid ""
21415 "This command has one or more key or passphrase parameters.  Guestfish will "
21416 "prompt for these separately."
21417 msgstr ""
21418
21419 # type: =head2
21420 #: ../fish/guestfish-actions.pod:2411
21421 msgid "luks-close"
21422 msgstr ""
21423
21424 # type: verbatim
21425 #: ../fish/guestfish-actions.pod:2413
21426 #, no-wrap
21427 msgid ""
21428 " luks-close device\n"
21429 "\n"
21430 msgstr ""
21431
21432 # type: textblock
21433 #: ../fish/guestfish-actions.pod:2415
21434 msgid ""
21435 "This closes a LUKS device that was created earlier by L</luks-open> or "
21436 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
21437 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
21438 "underlying block device."
21439 msgstr ""
21440
21441 # type: =head2
21442 #: ../fish/guestfish-actions.pod:2421
21443 msgid "luks-format"
21444 msgstr ""
21445
21446 # type: verbatim
21447 #: ../fish/guestfish-actions.pod:2423
21448 #, no-wrap
21449 msgid ""
21450 " luks-format device keyslot\n"
21451 "\n"
21452 msgstr ""
21453
21454 # type: =head2
21455 #: ../fish/guestfish-actions.pod:2436
21456 msgid "luks-format-cipher"
21457 msgstr ""
21458
21459 # type: verbatim
21460 #: ../fish/guestfish-actions.pod:2438
21461 #, no-wrap
21462 msgid ""
21463 " luks-format-cipher device keyslot cipher\n"
21464 "\n"
21465 msgstr ""
21466
21467 # type: textblock
21468 #: ../fish/guestfish-actions.pod:2440
21469 msgid ""
21470 "This command is the same as L</luks-format> but it also allows you to set "
21471 "the C<cipher> used."
21472 msgstr ""
21473
21474 # type: =head2
21475 #: ../fish/guestfish-actions.pod:2449
21476 msgid "luks-kill-slot"
21477 msgstr ""
21478
21479 # type: verbatim
21480 #: ../fish/guestfish-actions.pod:2451
21481 #, no-wrap
21482 msgid ""
21483 " luks-kill-slot device keyslot\n"
21484 "\n"
21485 msgstr ""
21486
21487 # type: =head2
21488 #: ../fish/guestfish-actions.pod:2460
21489 msgid "luks-open"
21490 msgstr ""
21491
21492 # type: verbatim
21493 #: ../fish/guestfish-actions.pod:2462
21494 #, no-wrap
21495 msgid ""
21496 " luks-open device mapname\n"
21497 "\n"
21498 msgstr ""
21499
21500 # type: textblock
21501 #: ../fish/guestfish-actions.pod:2476
21502 msgid ""
21503 "If this block device contains LVM volume groups, then calling L</vgscan> "
21504 "followed by L</vg-activate-all> will make them visible."
21505 msgstr ""
21506
21507 # type: =head2
21508 #: ../fish/guestfish-actions.pod:2483
21509 msgid "luks-open-ro"
21510 msgstr ""
21511
21512 # type: verbatim
21513 #: ../fish/guestfish-actions.pod:2485
21514 #, no-wrap
21515 msgid ""
21516 " luks-open-ro device mapname\n"
21517 "\n"
21518 msgstr ""
21519
21520 # type: textblock
21521 #: ../fish/guestfish-actions.pod:2487
21522 msgid ""
21523 "This is the same as L</luks-open> except that a read-only mapping is "
21524 "created."
21525 msgstr ""
21526
21527 # type: =head2
21528 #: ../fish/guestfish-actions.pod:2493
21529 msgid "lvcreate"
21530 msgstr ""
21531
21532 # type: verbatim
21533 #: ../fish/guestfish-actions.pod:2495
21534 #, no-wrap
21535 msgid ""
21536 " lvcreate logvol volgroup mbytes\n"
21537 "\n"
21538 msgstr ""
21539
21540 # type: =head2
21541 #: ../fish/guestfish-actions.pod:2500
21542 msgid "lvm-canonical-lv-name"
21543 msgstr ""
21544
21545 # type: verbatim
21546 #: ../fish/guestfish-actions.pod:2502
21547 #, no-wrap
21548 msgid ""
21549 " lvm-canonical-lv-name lvname\n"
21550 "\n"
21551 msgstr ""
21552
21553 # type: textblock
21554 #: ../fish/guestfish-actions.pod:2511
21555 msgid "See also L</is-lv>."
21556 msgstr ""
21557
21558 # type: =head2
21559 #: ../fish/guestfish-actions.pod:2513
21560 msgid "lvm-clear-filter"
21561 msgstr ""
21562
21563 # type: verbatim
21564 #: ../fish/guestfish-actions.pod:2515
21565 #, no-wrap
21566 msgid ""
21567 " lvm-clear-filter\n"
21568 "\n"
21569 msgstr ""
21570
21571 # type: textblock
21572 #: ../fish/guestfish-actions.pod:2517
21573 msgid ""
21574 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21575 "block device."
21576 msgstr ""
21577
21578 # type: =head2
21579 #: ../fish/guestfish-actions.pod:2523
21580 msgid "lvm-remove-all"
21581 msgstr ""
21582
21583 # type: verbatim
21584 #: ../fish/guestfish-actions.pod:2525
21585 #, no-wrap
21586 msgid ""
21587 " lvm-remove-all\n"
21588 "\n"
21589 msgstr ""
21590
21591 # type: =head2
21592 #: ../fish/guestfish-actions.pod:2533
21593 msgid "lvm-set-filter"
21594 msgstr ""
21595
21596 # type: verbatim
21597 #: ../fish/guestfish-actions.pod:2535
21598 #, no-wrap
21599 msgid ""
21600 " lvm-set-filter 'devices ...'\n"
21601 "\n"
21602 msgstr ""
21603
21604 # type: =head2
21605 #: ../fish/guestfish-actions.pod:2560
21606 msgid "lvremove"
21607 msgstr ""
21608
21609 # type: verbatim
21610 #: ../fish/guestfish-actions.pod:2562
21611 #, no-wrap
21612 msgid ""
21613 " lvremove device\n"
21614 "\n"
21615 msgstr ""
21616
21617 # type: =head2
21618 #: ../fish/guestfish-actions.pod:2570
21619 msgid "lvrename"
21620 msgstr ""
21621
21622 # type: verbatim
21623 #: ../fish/guestfish-actions.pod:2572
21624 #, no-wrap
21625 msgid ""
21626 " lvrename logvol newlogvol\n"
21627 "\n"
21628 msgstr ""
21629
21630 # type: =head2
21631 #: ../fish/guestfish-actions.pod:2576
21632 msgid "lvresize"
21633 msgstr ""
21634
21635 # type: verbatim
21636 #: ../fish/guestfish-actions.pod:2578
21637 #, no-wrap
21638 msgid ""
21639 " lvresize device mbytes\n"
21640 "\n"
21641 msgstr ""
21642
21643 # type: =head2
21644 #: ../fish/guestfish-actions.pod:2584
21645 msgid "lvresize-free"
21646 msgstr ""
21647
21648 # type: verbatim
21649 #: ../fish/guestfish-actions.pod:2586
21650 #, no-wrap
21651 msgid ""
21652 " lvresize-free lv percent\n"
21653 "\n"
21654 msgstr ""
21655
21656 # type: =head2
21657 #: ../fish/guestfish-actions.pod:2594
21658 msgid "lvs"
21659 msgstr ""
21660
21661 # type: verbatim
21662 #: ../fish/guestfish-actions.pod:2596
21663 #, no-wrap
21664 msgid ""
21665 " lvs\n"
21666 "\n"
21667 msgstr ""
21668
21669 # type: textblock
21670 #: ../fish/guestfish-actions.pod:2604
21671 msgid "See also L</lvs-full>, L</list-filesystems>."
21672 msgstr ""
21673
21674 # type: =head2
21675 #: ../fish/guestfish-actions.pod:2606
21676 msgid "lvs-full"
21677 msgstr ""
21678
21679 # type: verbatim
21680 #: ../fish/guestfish-actions.pod:2608
21681 #, no-wrap
21682 msgid ""
21683 " lvs-full\n"
21684 "\n"
21685 msgstr ""
21686
21687 # type: =head2
21688 #: ../fish/guestfish-actions.pod:2613
21689 msgid "lvuuid"
21690 msgstr ""
21691
21692 # type: verbatim
21693 #: ../fish/guestfish-actions.pod:2615
21694 #, no-wrap
21695 msgid ""
21696 " lvuuid device\n"
21697 "\n"
21698 msgstr ""
21699
21700 # type: =head2
21701 #: ../fish/guestfish-actions.pod:2619
21702 msgid "lxattrlist"
21703 msgstr ""
21704
21705 # type: verbatim
21706 #: ../fish/guestfish-actions.pod:2621
21707 #, no-wrap
21708 msgid ""
21709 " lxattrlist path 'names ...'\n"
21710 "\n"
21711 msgstr ""
21712
21713 # type: textblock
21714 #: ../fish/guestfish-actions.pod:2637
21715 msgid ""
21716 "This call is intended for programs that want to efficiently list a directory "
21717 "contents without making many round-trips.  See also L</lstatlist> for a "
21718 "similarly efficient call for getting standard stats.  Very long directory "
21719 "listings might cause the protocol message size to be exceeded, causing this "
21720 "call to fail.  The caller must split up such requests into smaller groups of "
21721 "names."
21722 msgstr ""
21723
21724 # type: =head2
21725 #: ../fish/guestfish-actions.pod:2645
21726 msgid "mkdir"
21727 msgstr ""
21728
21729 # type: verbatim
21730 #: ../fish/guestfish-actions.pod:2647
21731 #, no-wrap
21732 msgid ""
21733 " mkdir path\n"
21734 "\n"
21735 msgstr ""
21736
21737 # type: =head2
21738 #: ../fish/guestfish-actions.pod:2651
21739 msgid "mkdir-mode"
21740 msgstr ""
21741
21742 # type: verbatim
21743 #: ../fish/guestfish-actions.pod:2653
21744 #, no-wrap
21745 msgid ""
21746 " mkdir-mode path mode\n"
21747 "\n"
21748 msgstr ""
21749
21750 # type: textblock
21751 #: ../fish/guestfish-actions.pod:2662
21752 msgid "See also L</mkdir>, L</umask>"
21753 msgstr ""
21754
21755 # type: =head2
21756 #: ../fish/guestfish-actions.pod:2664
21757 msgid "mkdir-p"
21758 msgstr ""
21759
21760 # type: verbatim
21761 #: ../fish/guestfish-actions.pod:2666
21762 #, no-wrap
21763 msgid ""
21764 " mkdir-p path\n"
21765 "\n"
21766 msgstr ""
21767
21768 # type: =head2
21769 #: ../fish/guestfish-actions.pod:2671
21770 msgid "mkdtemp"
21771 msgstr ""
21772
21773 # type: verbatim
21774 #: ../fish/guestfish-actions.pod:2673
21775 #, no-wrap
21776 msgid ""
21777 " mkdtemp template\n"
21778 "\n"
21779 msgstr ""
21780
21781 # type: =head2
21782 #: ../fish/guestfish-actions.pod:2694
21783 msgid "mke2fs-J"
21784 msgstr ""
21785
21786 # type: verbatim
21787 #: ../fish/guestfish-actions.pod:2696
21788 #, no-wrap
21789 msgid ""
21790 " mke2fs-J fstype blocksize device journal\n"
21791 "\n"
21792 msgstr ""
21793
21794 # type: textblock
21795 #: ../fish/guestfish-actions.pod:2704
21796 msgid "See also L</mke2journal>."
21797 msgstr ""
21798
21799 # type: =head2
21800 #: ../fish/guestfish-actions.pod:2706
21801 msgid "mke2fs-JL"
21802 msgstr ""
21803
21804 # type: verbatim
21805 #: ../fish/guestfish-actions.pod:2708
21806 #, no-wrap
21807 msgid ""
21808 " mke2fs-JL fstype blocksize device label\n"
21809 "\n"
21810 msgstr ""
21811
21812 # type: textblock
21813 #: ../fish/guestfish-actions.pod:2713
21814 msgid "See also L</mke2journal-L>."
21815 msgstr ""
21816
21817 # type: =head2
21818 #: ../fish/guestfish-actions.pod:2715
21819 msgid "mke2fs-JU"
21820 msgstr ""
21821
21822 # type: verbatim
21823 #: ../fish/guestfish-actions.pod:2717
21824 #, no-wrap
21825 msgid ""
21826 " mke2fs-JU fstype blocksize device uuid\n"
21827 "\n"
21828 msgstr ""
21829
21830 # type: textblock
21831 #: ../fish/guestfish-actions.pod:2722
21832 msgid "See also L</mke2journal-U>."
21833 msgstr ""
21834
21835 # type: =head2
21836 #: ../fish/guestfish-actions.pod:2724
21837 msgid "mke2journal"
21838 msgstr ""
21839
21840 # type: verbatim
21841 #: ../fish/guestfish-actions.pod:2726
21842 #, no-wrap
21843 msgid ""
21844 " mke2journal blocksize device\n"
21845 "\n"
21846 msgstr ""
21847
21848 # type: =head2
21849 #: ../fish/guestfish-actions.pod:2733
21850 msgid "mke2journal-L"
21851 msgstr ""
21852
21853 # type: verbatim
21854 #: ../fish/guestfish-actions.pod:2735
21855 #, no-wrap
21856 msgid ""
21857 " mke2journal-L blocksize label device\n"
21858 "\n"
21859 msgstr ""
21860
21861 # type: =head2
21862 #: ../fish/guestfish-actions.pod:2739
21863 msgid "mke2journal-U"
21864 msgstr ""
21865
21866 # type: verbatim
21867 #: ../fish/guestfish-actions.pod:2741
21868 #, no-wrap
21869 msgid ""
21870 " mke2journal-U blocksize uuid device\n"
21871 "\n"
21872 msgstr ""
21873
21874 # type: =head2
21875 #: ../fish/guestfish-actions.pod:2745
21876 msgid "mkfifo"
21877 msgstr ""
21878
21879 # type: verbatim
21880 #: ../fish/guestfish-actions.pod:2747
21881 #, no-wrap
21882 msgid ""
21883 " mkfifo mode path\n"
21884 "\n"
21885 msgstr ""
21886
21887 # type: textblock
21888 #: ../fish/guestfish-actions.pod:2749
21889 msgid ""
21890 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21891 "is just a convenient wrapper around L</mknod>."
21892 msgstr ""
21893
21894 # type: =head2
21895 #: ../fish/guestfish-actions.pod:2755
21896 msgid "mkfs"
21897 msgstr ""
21898
21899 # type: verbatim
21900 #: ../fish/guestfish-actions.pod:2757
21901 #, no-wrap
21902 msgid ""
21903 " mkfs fstype device\n"
21904 "\n"
21905 msgstr ""
21906
21907 # type: =head2
21908 #: ../fish/guestfish-actions.pod:2763
21909 msgid "mkfs-b"
21910 msgstr ""
21911
21912 # type: verbatim
21913 #: ../fish/guestfish-actions.pod:2765
21914 #, no-wrap
21915 msgid ""
21916 " mkfs-b fstype blocksize device\n"
21917 "\n"
21918 msgstr ""
21919
21920 # type: textblock
21921 #: ../fish/guestfish-actions.pod:2767
21922 msgid ""
21923 "This call is similar to L</mkfs>, but it allows you to control the block "
21924 "size of the resulting filesystem.  Supported block sizes depend on the "
21925 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21926 msgstr ""
21927
21928 # type: =head2
21929 #: ../fish/guestfish-actions.pod:2775
21930 msgid "mkmountpoint"
21931 msgstr ""
21932
21933 # type: verbatim
21934 #: ../fish/guestfish-actions.pod:2777
21935 #, no-wrap
21936 msgid ""
21937 " mkmountpoint exemptpath\n"
21938 "\n"
21939 msgstr ""
21940
21941 # type: textblock
21942 #: ../fish/guestfish-actions.pod:2779
21943 msgid ""
21944 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21945 "to create extra mountpoints before mounting the first filesystem."
21946 msgstr ""
21947
21948 # type: textblock
21949 #: ../fish/guestfish-actions.pod:2803
21950 msgid ""
21951 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21952 "unexpected errors if you try to mix these calls.  It is safest to manually "
21953 "unmount filesystems and remove mountpoints after use."
21954 msgstr ""
21955
21956 # type: textblock
21957 #: ../fish/guestfish-actions.pod:2807
21958 msgid ""
21959 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21960 "for this to work for manual mountpoints, you must ensure that the innermost "
21961 "mountpoints have the longest pathnames, as in the example code above."
21962 msgstr ""
21963
21964 # type: textblock
21965 #: ../fish/guestfish-actions.pod:2814
21966 msgid ""
21967 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21968 "that L</umount-all> is called when the handle is closed which can also "
21969 "trigger these issues."
21970 msgstr ""
21971
21972 # type: =head2
21973 #: ../fish/guestfish-actions.pod:2818
21974 msgid "mknod"
21975 msgstr ""
21976
21977 # type: verbatim
21978 #: ../fish/guestfish-actions.pod:2820
21979 #, no-wrap
21980 msgid ""
21981 " mknod mode devmajor devminor path\n"
21982 "\n"
21983 msgstr ""
21984
21985 # type: textblock
21986 #: ../fish/guestfish-actions.pod:2830
21987 msgid ""
21988 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21989 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21990 "regular file).  These constants are available in the standard Linux header "
21991 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21992 "wrappers around this command which bitwise OR in the appropriate constant "
21993 "for you."
21994 msgstr ""
21995
21996 # type: =head2
21997 #: ../fish/guestfish-actions.pod:2840
21998 msgid "mknod-b"
21999 msgstr ""
22000
22001 # type: verbatim
22002 #: ../fish/guestfish-actions.pod:2842
22003 #, no-wrap
22004 msgid ""
22005 " mknod-b mode devmajor devminor path\n"
22006 "\n"
22007 msgstr ""
22008
22009 # type: textblock
22010 #: ../fish/guestfish-actions.pod:2844
22011 msgid ""
22012 "This call creates a block device node called C<path> with mode C<mode> and "
22013 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22014 "wrapper around L</mknod>."
22015 msgstr ""
22016
22017 # type: =head2
22018 #: ../fish/guestfish-actions.pod:2850
22019 msgid "mknod-c"
22020 msgstr ""
22021
22022 # type: verbatim
22023 #: ../fish/guestfish-actions.pod:2852
22024 #, no-wrap
22025 msgid ""
22026 " mknod-c mode devmajor devminor path\n"
22027 "\n"
22028 msgstr ""
22029
22030 # type: textblock
22031 #: ../fish/guestfish-actions.pod:2854
22032 msgid ""
22033 "This call creates a char device node called C<path> with mode C<mode> and "
22034 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22035 "wrapper around L</mknod>."
22036 msgstr ""
22037
22038 # type: =head2
22039 #: ../fish/guestfish-actions.pod:2860
22040 msgid "mkswap"
22041 msgstr ""
22042
22043 # type: verbatim
22044 #: ../fish/guestfish-actions.pod:2862
22045 #, no-wrap
22046 msgid ""
22047 " mkswap device\n"
22048 "\n"
22049 msgstr ""
22050
22051 # type: =head2
22052 #: ../fish/guestfish-actions.pod:2866
22053 msgid "mkswap-L"
22054 msgstr ""
22055
22056 # type: verbatim
22057 #: ../fish/guestfish-actions.pod:2868
22058 #, no-wrap
22059 msgid ""
22060 " mkswap-L label device\n"
22061 "\n"
22062 msgstr ""
22063
22064 # type: =head2
22065 #: ../fish/guestfish-actions.pod:2876
22066 msgid "mkswap-U"
22067 msgstr ""
22068
22069 # type: verbatim
22070 #: ../fish/guestfish-actions.pod:2878
22071 #, no-wrap
22072 msgid ""
22073 " mkswap-U uuid device\n"
22074 "\n"
22075 msgstr ""
22076
22077 # type: =head2
22078 #: ../fish/guestfish-actions.pod:2882
22079 msgid "mkswap-file"
22080 msgstr ""
22081
22082 # type: verbatim
22083 #: ../fish/guestfish-actions.pod:2884
22084 #, no-wrap
22085 msgid ""
22086 " mkswap-file path\n"
22087 "\n"
22088 msgstr ""
22089
22090 # type: textblock
22091 #: ../fish/guestfish-actions.pod:2888
22092 msgid ""
22093 "This command just writes a swap file signature to an existing file.  To "
22094 "create the file itself, use something like L</fallocate>."
22095 msgstr ""
22096
22097 # type: =head2
22098 #: ../fish/guestfish-actions.pod:2891
22099 msgid "modprobe"
22100 msgstr ""
22101
22102 # type: verbatim
22103 #: ../fish/guestfish-actions.pod:2893
22104 #, no-wrap
22105 msgid ""
22106 " modprobe modulename\n"
22107 "\n"
22108 msgstr ""
22109
22110 # type: =head2
22111 #: ../fish/guestfish-actions.pod:2900
22112 msgid "mount"
22113 msgstr ""
22114
22115 # type: verbatim
22116 #: ../fish/guestfish-actions.pod:2902
22117 #, no-wrap
22118 msgid ""
22119 " mount device mountpoint\n"
22120 "\n"
22121 msgstr ""
22122
22123 # type: textblock
22124 #: ../fish/guestfish-actions.pod:2918
22125 msgid ""
22126 "B<Important note:> When you use this call, the filesystem options C<sync> "
22127 "and C<noatime> are set implicitly.  This was originally done because we "
22128 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22129 "very large negative performance impact and negligible effect on "
22130 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22131 "code that needs performance, and instead use L</mount-options> (use an empty "
22132 "string for the first parameter if you don't want any options)."
22133 msgstr ""
22134
22135 # type: =head2
22136 #: ../fish/guestfish-actions.pod:2928
22137 msgid "mount-loop"
22138 msgstr ""
22139
22140 # type: verbatim
22141 #: ../fish/guestfish-actions.pod:2930
22142 #, no-wrap
22143 msgid ""
22144 " mount-loop file mountpoint\n"
22145 "\n"
22146 msgstr ""
22147
22148 # type: =head2
22149 #: ../fish/guestfish-actions.pod:2936
22150 msgid "mount-options"
22151 msgstr ""
22152
22153 # type: verbatim
22154 #: ../fish/guestfish-actions.pod:2938
22155 #, no-wrap
22156 msgid ""
22157 " mount-options options device mountpoint\n"
22158 "\n"
22159 msgstr ""
22160
22161 # type: textblock
22162 #: ../fish/guestfish-actions.pod:2940
22163 msgid ""
22164 "This is the same as the L</mount> command, but it allows you to set the "
22165 "mount options as for the L<mount(8)> I<-o> flag."
22166 msgstr ""
22167
22168 # type: =head2
22169 #: ../fish/guestfish-actions.pod:2948
22170 msgid "mount-ro"
22171 msgstr ""
22172
22173 # type: verbatim
22174 #: ../fish/guestfish-actions.pod:2950
22175 #, no-wrap
22176 msgid ""
22177 " mount-ro device mountpoint\n"
22178 "\n"
22179 msgstr ""
22180
22181 # type: textblock
22182 #: ../fish/guestfish-actions.pod:2952
22183 msgid ""
22184 "This is the same as the L</mount> command, but it mounts the filesystem with "
22185 "the read-only (I<-o ro>) flag."
22186 msgstr ""
22187
22188 # type: =head2
22189 #: ../fish/guestfish-actions.pod:2955
22190 msgid "mount-vfs"
22191 msgstr ""
22192
22193 # type: verbatim
22194 #: ../fish/guestfish-actions.pod:2957
22195 #, no-wrap
22196 msgid ""
22197 " mount-vfs options vfstype device mountpoint\n"
22198 "\n"
22199 msgstr ""
22200
22201 # type: textblock
22202 #: ../fish/guestfish-actions.pod:2959
22203 msgid ""
22204 "This is the same as the L</mount> command, but it allows you to set both the "
22205 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22206 msgstr ""
22207
22208 # type: =head2
22209 #: ../fish/guestfish-actions.pod:2963
22210 msgid "mountpoints"
22211 msgstr ""
22212
22213 # type: verbatim
22214 #: ../fish/guestfish-actions.pod:2965
22215 #, no-wrap
22216 msgid ""
22217 " mountpoints\n"
22218 "\n"
22219 msgstr ""
22220
22221 # type: textblock
22222 #: ../fish/guestfish-actions.pod:2967
22223 msgid ""
22224 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22225 "This one returns a hash table (map) of device name to directory where the "
22226 "device is mounted."
22227 msgstr ""
22228
22229 # type: =head2
22230 #: ../fish/guestfish-actions.pod:2971
22231 msgid "mounts"
22232 msgstr ""
22233
22234 # type: verbatim
22235 #: ../fish/guestfish-actions.pod:2973
22236 #, no-wrap
22237 msgid ""
22238 " mounts\n"
22239 "\n"
22240 msgstr ""
22241
22242 # type: textblock
22243 #: ../fish/guestfish-actions.pod:2980
22244 msgid "See also: L</mountpoints>"
22245 msgstr ""
22246
22247 # type: =head2
22248 #: ../fish/guestfish-actions.pod:2982
22249 msgid "mv"
22250 msgstr ""
22251
22252 # type: verbatim
22253 #: ../fish/guestfish-actions.pod:2984
22254 #, no-wrap
22255 msgid ""
22256 " mv src dest\n"
22257 "\n"
22258 msgstr ""
22259
22260 # type: =head2
22261 #: ../fish/guestfish-actions.pod:2989
22262 msgid "ntfs-3g-probe"
22263 msgstr ""
22264
22265 # type: verbatim
22266 #: ../fish/guestfish-actions.pod:2991
22267 #, no-wrap
22268 msgid ""
22269 " ntfs-3g-probe true|false device\n"
22270 "\n"
22271 msgstr ""
22272
22273 # type: =head2
22274 #: ../fish/guestfish-actions.pod:3005
22275 msgid "ntfsresize"
22276 msgstr ""
22277
22278 # type: verbatim
22279 #: ../fish/guestfish-actions.pod:3007
22280 #, no-wrap
22281 msgid ""
22282 " ntfsresize device\n"
22283 "\n"
22284 msgstr ""
22285
22286 # type: =head2
22287 #: ../fish/guestfish-actions.pod:3013
22288 msgid "ntfsresize-size"
22289 msgstr ""
22290
22291 # type: verbatim
22292 #: ../fish/guestfish-actions.pod:3015
22293 #, no-wrap
22294 msgid ""
22295 " ntfsresize-size device size\n"
22296 "\n"
22297 msgstr ""
22298
22299 # type: textblock
22300 #: ../fish/guestfish-actions.pod:3017
22301 msgid ""
22302 "This command is the same as L</ntfsresize> except that it allows you to "
22303 "specify the new size (in bytes) explicitly."
22304 msgstr ""
22305
22306 # type: =head2
22307 #: ../fish/guestfish-actions.pod:3020
22308 msgid "part-add"
22309 msgstr ""
22310
22311 # type: verbatim
22312 #: ../fish/guestfish-actions.pod:3022
22313 #, no-wrap
22314 msgid ""
22315 " part-add device prlogex startsect endsect\n"
22316 "\n"
22317 msgstr ""
22318
22319 # type: textblock
22320 #: ../fish/guestfish-actions.pod:3024
22321 msgid ""
22322 "This command adds a partition to C<device>.  If there is no partition table "
22323 "on the device, call L</part-init> first."
22324 msgstr ""
22325
22326 # type: textblock
22327 #: ../fish/guestfish-actions.pod:3036
22328 msgid ""
22329 "Creating a partition which covers the whole disk is not so easy.  Use "
22330 "L</part-disk> to do that."
22331 msgstr ""
22332
22333 # type: =head2
22334 #: ../fish/guestfish-actions.pod:3039
22335 msgid "part-del"
22336 msgstr ""
22337
22338 # type: verbatim
22339 #: ../fish/guestfish-actions.pod:3041
22340 #, no-wrap
22341 msgid ""
22342 " part-del device partnum\n"
22343 "\n"
22344 msgstr ""
22345
22346 # type: =head2
22347 #: ../fish/guestfish-actions.pod:3049
22348 msgid "part-disk"
22349 msgstr ""
22350
22351 # type: verbatim
22352 #: ../fish/guestfish-actions.pod:3051
22353 #, no-wrap
22354 msgid ""
22355 " part-disk device parttype\n"
22356 "\n"
22357 msgstr ""
22358
22359 # type: textblock
22360 #: ../fish/guestfish-actions.pod:3053
22361 msgid ""
22362 "This command is simply a combination of L</part-init> followed by "
22363 "L</part-add> to create a single primary partition covering the whole disk."
22364 msgstr ""
22365
22366 # type: textblock
22367 #: ../fish/guestfish-actions.pod:3057
22368 msgid ""
22369 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22370 "possible values are described in L</part-init>."
22371 msgstr ""
22372
22373 # type: =head2
22374 #: ../fish/guestfish-actions.pod:3063
22375 msgid "part-get-bootable"
22376 msgstr ""
22377
22378 # type: verbatim
22379 #: ../fish/guestfish-actions.pod:3065
22380 #, no-wrap
22381 msgid ""
22382 " part-get-bootable device partnum\n"
22383 "\n"
22384 msgstr ""
22385
22386 # type: textblock
22387 #: ../fish/guestfish-actions.pod:3070
22388 msgid "See also L</part-set-bootable>."
22389 msgstr ""
22390
22391 # type: =head2
22392 #: ../fish/guestfish-actions.pod:3072
22393 msgid "part-get-mbr-id"
22394 msgstr ""
22395
22396 # type: verbatim
22397 #: ../fish/guestfish-actions.pod:3074
22398 #, no-wrap
22399 msgid ""
22400 " part-get-mbr-id device partnum\n"
22401 "\n"
22402 msgstr ""
22403
22404 # type: textblock
22405 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22406 msgid ""
22407 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22408 "undefined results for other partition table types (see "
22409 "L</part-get-parttype>)."
22410 msgstr ""
22411
22412 # type: =head2
22413 #: ../fish/guestfish-actions.pod:3083
22414 msgid "part-get-parttype"
22415 msgstr ""
22416
22417 # type: verbatim
22418 #: ../fish/guestfish-actions.pod:3085
22419 #, no-wrap
22420 msgid ""
22421 " part-get-parttype device\n"
22422 "\n"
22423 msgstr ""
22424
22425 # type: textblock
22426 #: ../fish/guestfish-actions.pod:3090
22427 msgid ""
22428 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22429 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22430 "possible, although unusual.  See L</part-init> for a full list."
22431 msgstr ""
22432
22433 # type: =head2
22434 #: ../fish/guestfish-actions.pod:3095
22435 msgid "part-init"
22436 msgstr ""
22437
22438 # type: verbatim
22439 #: ../fish/guestfish-actions.pod:3097
22440 #, no-wrap
22441 msgid ""
22442 " part-init device parttype\n"
22443 "\n"
22444 msgstr ""
22445
22446 # type: textblock
22447 #: ../fish/guestfish-actions.pod:3103
22448 msgid ""
22449 "Initially there are no partitions.  Following this, you should call "
22450 "L</part-add> for each partition required."
22451 msgstr ""
22452
22453 # type: =head2
22454 #: ../fish/guestfish-actions.pod:3166
22455 msgid "part-list"
22456 msgstr ""
22457
22458 # type: verbatim
22459 #: ../fish/guestfish-actions.pod:3168
22460 #, no-wrap
22461 msgid ""
22462 " part-list device\n"
22463 "\n"
22464 msgstr ""
22465
22466 # type: textblock
22467 #: ../fish/guestfish-actions.pod:3183
22468 msgid ""
22469 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22470 "the device's sector size, see L</blockdev-getss>."
22471 msgstr ""
22472
22473 # type: =head2
22474 #: ../fish/guestfish-actions.pod:3196
22475 msgid "part-set-bootable"
22476 msgstr ""
22477
22478 # type: verbatim
22479 #: ../fish/guestfish-actions.pod:3198
22480 #, no-wrap
22481 msgid ""
22482 " part-set-bootable device partnum true|false\n"
22483 "\n"
22484 msgstr ""
22485
22486 # type: =head2
22487 #: ../fish/guestfish-actions.pod:3207
22488 msgid "part-set-mbr-id"
22489 msgstr ""
22490
22491 # type: verbatim
22492 #: ../fish/guestfish-actions.pod:3209
22493 #, no-wrap
22494 msgid ""
22495 " part-set-mbr-id device partnum idbyte\n"
22496 "\n"
22497 msgstr ""
22498
22499 # type: =head2
22500 #: ../fish/guestfish-actions.pod:3221
22501 msgid "part-set-name"
22502 msgstr ""
22503
22504 # type: verbatim
22505 #: ../fish/guestfish-actions.pod:3223
22506 #, no-wrap
22507 msgid ""
22508 " part-set-name device partnum name\n"
22509 "\n"
22510 msgstr ""
22511
22512 # type: =head2
22513 #: ../fish/guestfish-actions.pod:3231
22514 msgid "part-to-dev"
22515 msgstr ""
22516
22517 # type: verbatim
22518 #: ../fish/guestfish-actions.pod:3233
22519 #, no-wrap
22520 msgid ""
22521 " part-to-dev partition\n"
22522 "\n"
22523 msgstr ""
22524
22525 # type: textblock
22526 #: ../fish/guestfish-actions.pod:3239
22527 msgid ""
22528 "The named partition must exist, for example as a string returned from "
22529 "L</list-partitions>."
22530 msgstr ""
22531
22532 # type: =head2
22533 #: ../fish/guestfish-actions.pod:3242
22534 msgid "ping-daemon"
22535 msgstr ""
22536
22537 # type: verbatim
22538 #: ../fish/guestfish-actions.pod:3244
22539 #, no-wrap
22540 msgid ""
22541 " ping-daemon\n"
22542 "\n"
22543 msgstr ""
22544
22545 # type: =head2
22546 #: ../fish/guestfish-actions.pod:3251
22547 msgid "pread"
22548 msgstr ""
22549
22550 # type: verbatim
22551 #: ../fish/guestfish-actions.pod:3253
22552 #, no-wrap
22553 msgid ""
22554 " pread path count offset\n"
22555 "\n"
22556 msgstr ""
22557
22558 # type: textblock
22559 #: ../fish/guestfish-actions.pod:3261
22560 msgid "See also L</pwrite>, L</pread-device>."
22561 msgstr ""
22562
22563 # type: =head2
22564 #: ../fish/guestfish-actions.pod:3266
22565 msgid "pread-device"
22566 msgstr ""
22567
22568 # type: verbatim
22569 #: ../fish/guestfish-actions.pod:3268
22570 #, no-wrap
22571 msgid ""
22572 " pread-device device count offset\n"
22573 "\n"
22574 msgstr ""
22575
22576 # type: textblock
22577 #: ../fish/guestfish-actions.pod:3276
22578 msgid "See also L</pread>."
22579 msgstr ""
22580
22581 # type: =head2
22582 #: ../fish/guestfish-actions.pod:3281
22583 msgid "pvcreate"
22584 msgstr ""
22585
22586 # type: verbatim
22587 #: ../fish/guestfish-actions.pod:3283
22588 #, no-wrap
22589 msgid ""
22590 " pvcreate device\n"
22591 "\n"
22592 msgstr ""
22593
22594 # type: =head2
22595 #: ../fish/guestfish-actions.pod:3289
22596 msgid "pvremove"
22597 msgstr ""
22598
22599 # type: verbatim
22600 #: ../fish/guestfish-actions.pod:3291
22601 #, no-wrap
22602 msgid ""
22603 " pvremove device\n"
22604 "\n"
22605 msgstr ""
22606
22607 # type: =head2
22608 #: ../fish/guestfish-actions.pod:3300
22609 msgid "pvresize"
22610 msgstr ""
22611
22612 # type: verbatim
22613 #: ../fish/guestfish-actions.pod:3302
22614 #, no-wrap
22615 msgid ""
22616 " pvresize device\n"
22617 "\n"
22618 msgstr ""
22619
22620 # type: =head2
22621 #: ../fish/guestfish-actions.pod:3307
22622 msgid "pvresize-size"
22623 msgstr ""
22624
22625 # type: verbatim
22626 #: ../fish/guestfish-actions.pod:3309
22627 #, no-wrap
22628 msgid ""
22629 " pvresize-size device size\n"
22630 "\n"
22631 msgstr ""
22632
22633 # type: textblock
22634 #: ../fish/guestfish-actions.pod:3311
22635 msgid ""
22636 "This command is the same as L</pvresize> except that it allows you to "
22637 "specify the new size (in bytes) explicitly."
22638 msgstr ""
22639
22640 # type: =head2
22641 #: ../fish/guestfish-actions.pod:3314
22642 msgid "pvs"
22643 msgstr ""
22644
22645 # type: verbatim
22646 #: ../fish/guestfish-actions.pod:3316
22647 #, no-wrap
22648 msgid ""
22649 " pvs\n"
22650 "\n"
22651 msgstr ""
22652
22653 # type: textblock
22654 #: ../fish/guestfish-actions.pod:3324
22655 msgid "See also L</pvs-full>."
22656 msgstr ""
22657
22658 # type: =head2
22659 #: ../fish/guestfish-actions.pod:3326
22660 msgid "pvs-full"
22661 msgstr ""
22662
22663 # type: verbatim
22664 #: ../fish/guestfish-actions.pod:3328
22665 #, no-wrap
22666 msgid ""
22667 " pvs-full\n"
22668 "\n"
22669 msgstr ""
22670
22671 # type: =head2
22672 #: ../fish/guestfish-actions.pod:3333
22673 msgid "pvuuid"
22674 msgstr ""
22675
22676 # type: verbatim
22677 #: ../fish/guestfish-actions.pod:3335
22678 #, no-wrap
22679 msgid ""
22680 " pvuuid device\n"
22681 "\n"
22682 msgstr ""
22683
22684 # type: =head2
22685 #: ../fish/guestfish-actions.pod:3339
22686 msgid "pwrite"
22687 msgstr ""
22688
22689 # type: verbatim
22690 #: ../fish/guestfish-actions.pod:3341
22691 #, no-wrap
22692 msgid ""
22693 " pwrite path content offset\n"
22694 "\n"
22695 msgstr ""
22696
22697 # type: textblock
22698 #: ../fish/guestfish-actions.pod:3352
22699 msgid "See also L</pread>, L</pwrite-device>."
22700 msgstr ""
22701
22702 # type: =head2
22703 #: ../fish/guestfish-actions.pod:3357
22704 msgid "pwrite-device"
22705 msgstr ""
22706
22707 # type: verbatim
22708 #: ../fish/guestfish-actions.pod:3359
22709 #, no-wrap
22710 msgid ""
22711 " pwrite-device device content offset\n"
22712 "\n"
22713 msgstr ""
22714
22715 # type: textblock
22716 #: ../fish/guestfish-actions.pod:3369
22717 msgid "See also L</pwrite>."
22718 msgstr ""
22719
22720 # type: =head2
22721 #: ../fish/guestfish-actions.pod:3374
22722 msgid "read-file"
22723 msgstr ""
22724
22725 # type: verbatim
22726 #: ../fish/guestfish-actions.pod:3376
22727 #, no-wrap
22728 msgid ""
22729 " read-file path\n"
22730 "\n"
22731 msgstr ""
22732
22733 # type: textblock
22734 #: ../fish/guestfish-actions.pod:3381
22735 msgid ""
22736 "Unlike L</cat>, this function can correctly handle files that contain "
22737 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22738 "is limited in the total size of file that can be handled."
22739 msgstr ""
22740
22741 # type: =head2
22742 #: ../fish/guestfish-actions.pod:3389
22743 msgid "read-lines"
22744 msgstr ""
22745
22746 # type: verbatim
22747 #: ../fish/guestfish-actions.pod:3391
22748 #, no-wrap
22749 msgid ""
22750 " read-lines path\n"
22751 "\n"
22752 msgstr ""
22753
22754 # type: textblock
22755 #: ../fish/guestfish-actions.pod:3398
22756 msgid ""
22757 "Note that this function cannot correctly handle binary files (specifically, "
22758 "files containing C<\\0> character which is treated as end of line).  For "
22759 "those you need to use the L</read-file> function which has a more complex "
22760 "interface."
22761 msgstr ""
22762
22763 # type: =head2
22764 #: ../fish/guestfish-actions.pod:3403
22765 msgid "readdir"
22766 msgstr ""
22767
22768 # type: verbatim
22769 #: ../fish/guestfish-actions.pod:3405
22770 #, no-wrap
22771 msgid ""
22772 " readdir dir\n"
22773 "\n"
22774 msgstr ""
22775
22776 # type: textblock
22777 #: ../fish/guestfish-actions.pod:3457
22778 msgid ""
22779 "This function is primarily intended for use by programs.  To get a simple "
22780 "list of names, use L</ls>.  To get a printable directory for human "
22781 "consumption, use L</ll>."
22782 msgstr ""
22783
22784 # type: =head2
22785 #: ../fish/guestfish-actions.pod:3461
22786 msgid "readlink"
22787 msgstr ""
22788
22789 # type: verbatim
22790 #: ../fish/guestfish-actions.pod:3463
22791 #, no-wrap
22792 msgid ""
22793 " readlink path\n"
22794 "\n"
22795 msgstr ""
22796
22797 # type: =head2
22798 #: ../fish/guestfish-actions.pod:3467
22799 msgid "readlinklist"
22800 msgstr ""
22801
22802 # type: verbatim
22803 #: ../fish/guestfish-actions.pod:3469
22804 #, no-wrap
22805 msgid ""
22806 " readlinklist path 'names ...'\n"
22807 "\n"
22808 msgstr ""
22809
22810 # type: =head2
22811 #: ../fish/guestfish-actions.pod:3493
22812 msgid "realpath"
22813 msgstr ""
22814
22815 # type: verbatim
22816 #: ../fish/guestfish-actions.pod:3495
22817 #, no-wrap
22818 msgid ""
22819 " realpath path\n"
22820 "\n"
22821 msgstr ""
22822
22823 # type: =head2
22824 #: ../fish/guestfish-actions.pod:3500
22825 msgid "removexattr"
22826 msgstr ""
22827
22828 # type: verbatim
22829 #: ../fish/guestfish-actions.pod:3502
22830 #, no-wrap
22831 msgid ""
22832 " removexattr xattr path\n"
22833 "\n"
22834 msgstr ""
22835
22836 # type: textblock
22837 #: ../fish/guestfish-actions.pod:3507
22838 msgid "See also: L</lremovexattr>, L<attr(5)>."
22839 msgstr ""
22840
22841 # type: =head2
22842 #: ../fish/guestfish-actions.pod:3509
22843 msgid "resize2fs"
22844 msgstr ""
22845
22846 # type: verbatim
22847 #: ../fish/guestfish-actions.pod:3511
22848 #, no-wrap
22849 msgid ""
22850 " resize2fs device\n"
22851 "\n"
22852 msgstr ""
22853
22854 # type: textblock
22855 #: ../fish/guestfish-actions.pod:3516
22856 msgid ""
22857 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22858 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22859 "gives an error about this and sometimes not.  In any case, it is always safe "
22860 "to call L</e2fsck-f> before calling this function."
22861 msgstr ""
22862
22863 # type: =head2
22864 #: ../fish/guestfish-actions.pod:3522
22865 msgid "resize2fs-size"
22866 msgstr ""
22867
22868 # type: verbatim
22869 #: ../fish/guestfish-actions.pod:3524
22870 #, no-wrap
22871 msgid ""
22872 " resize2fs-size device size\n"
22873 "\n"
22874 msgstr ""
22875
22876 # type: textblock
22877 #: ../fish/guestfish-actions.pod:3526
22878 msgid ""
22879 "This command is the same as L</resize2fs> except that it allows you to "
22880 "specify the new size (in bytes) explicitly."
22881 msgstr ""
22882
22883 # type: =head2
22884 #: ../fish/guestfish-actions.pod:3529
22885 msgid "rm"
22886 msgstr ""
22887
22888 # type: verbatim
22889 #: ../fish/guestfish-actions.pod:3531
22890 #, no-wrap
22891 msgid ""
22892 " rm path\n"
22893 "\n"
22894 msgstr ""
22895
22896 # type: =head2
22897 #: ../fish/guestfish-actions.pod:3535
22898 msgid "rm-rf"
22899 msgstr ""
22900
22901 # type: verbatim
22902 #: ../fish/guestfish-actions.pod:3537
22903 #, no-wrap
22904 msgid ""
22905 " rm-rf path\n"
22906 "\n"
22907 msgstr ""
22908
22909 # type: =head2
22910 #: ../fish/guestfish-actions.pod:3543
22911 msgid "rmdir"
22912 msgstr ""
22913
22914 # type: verbatim
22915 #: ../fish/guestfish-actions.pod:3545
22916 #, no-wrap
22917 msgid ""
22918 " rmdir path\n"
22919 "\n"
22920 msgstr ""
22921
22922 # type: =head2
22923 #: ../fish/guestfish-actions.pod:3549
22924 msgid "rmmountpoint"
22925 msgstr ""
22926
22927 # type: verbatim
22928 #: ../fish/guestfish-actions.pod:3551
22929 #, no-wrap
22930 msgid ""
22931 " rmmountpoint exemptpath\n"
22932 "\n"
22933 msgstr ""
22934
22935 # type: textblock
22936 #: ../fish/guestfish-actions.pod:3553
22937 msgid ""
22938 "This calls removes a mountpoint that was previously created with "
22939 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
22940 msgstr ""
22941
22942 # type: =head2
22943 #: ../fish/guestfish-actions.pod:3557
22944 msgid "scrub-device"
22945 msgstr ""
22946
22947 # type: verbatim
22948 #: ../fish/guestfish-actions.pod:3559
22949 #, no-wrap
22950 msgid ""
22951 " scrub-device device\n"
22952 "\n"
22953 msgstr ""
22954
22955 # type: =head2
22956 #: ../fish/guestfish-actions.pod:3570
22957 msgid "scrub-file"
22958 msgstr ""
22959
22960 # type: verbatim
22961 #: ../fish/guestfish-actions.pod:3572
22962 #, no-wrap
22963 msgid ""
22964 " scrub-file file\n"
22965 "\n"
22966 msgstr ""
22967
22968 # type: =head2
22969 #: ../fish/guestfish-actions.pod:3582
22970 msgid "scrub-freespace"
22971 msgstr ""
22972
22973 # type: verbatim
22974 #: ../fish/guestfish-actions.pod:3584
22975 #, no-wrap
22976 msgid ""
22977 " scrub-freespace dir\n"
22978 "\n"
22979 msgstr ""
22980
22981 # type: textblock
22982 #: ../fish/guestfish-actions.pod:3586
22983 msgid ""
22984 "This command creates the directory C<dir> and then fills it with files until "
22985 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22986 "deletes them.  The intention is to scrub any free space on the partition "
22987 "containing C<dir>."
22988 msgstr ""
22989
22990 # type: =head2
22991 #: ../fish/guestfish-actions.pod:3595
22992 msgid "set-append"
22993 msgstr ""
22994
22995 # type: =head2
22996 #: ../fish/guestfish-actions.pod:3597
22997 msgid "append"
22998 msgstr ""
22999
23000 # type: verbatim
23001 #: ../fish/guestfish-actions.pod:3599
23002 #, no-wrap
23003 msgid ""
23004 " set-append append\n"
23005 "\n"
23006 msgstr ""
23007
23008 # type: =head2
23009 #: ../fish/guestfish-actions.pod:3610
23010 msgid "set-autosync"
23011 msgstr ""
23012
23013 # type: =head2
23014 #: ../fish/guestfish-actions.pod:3612
23015 msgid "autosync"
23016 msgstr ""
23017
23018 # type: verbatim
23019 #: ../fish/guestfish-actions.pod:3614
23020 #, no-wrap
23021 msgid ""
23022 " set-autosync true|false\n"
23023 "\n"
23024 msgstr ""
23025
23026 # type: textblock
23027 #: ../fish/guestfish-actions.pod:3616
23028 msgid ""
23029 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23030 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23031 "closed (also if the program exits without closing handles)."
23032 msgstr ""
23033
23034 # type: =head2
23035 #: ../fish/guestfish-actions.pod:3624
23036 msgid "set-direct"
23037 msgstr ""
23038
23039 # type: =head2
23040 #: ../fish/guestfish-actions.pod:3626
23041 msgid "direct"
23042 msgstr ""
23043
23044 # type: verbatim
23045 #: ../fish/guestfish-actions.pod:3628
23046 #, no-wrap
23047 msgid ""
23048 " set-direct true|false\n"
23049 "\n"
23050 msgstr ""
23051
23052 # type: textblock
23053 #: ../fish/guestfish-actions.pod:3634
23054 msgid ""
23055 "One consequence of this is that log messages aren't caught by the library "
23056 "and handled by L</set-log-message-callback>, but go straight to stdout."
23057 msgstr ""
23058
23059 # type: =head2
23060 #: ../fish/guestfish-actions.pod:3643
23061 msgid "set-e2label"
23062 msgstr ""
23063
23064 # type: verbatim
23065 #: ../fish/guestfish-actions.pod:3645
23066 #, no-wrap
23067 msgid ""
23068 " set-e2label device label\n"
23069 "\n"
23070 msgstr ""
23071
23072 # type: textblock
23073 #: ../fish/guestfish-actions.pod:3651
23074 msgid ""
23075 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23076 "label on a filesystem."
23077 msgstr ""
23078
23079 # type: =head2
23080 #: ../fish/guestfish-actions.pod:3654
23081 msgid "set-e2uuid"
23082 msgstr ""
23083
23084 # type: verbatim
23085 #: ../fish/guestfish-actions.pod:3656
23086 #, no-wrap
23087 msgid ""
23088 " set-e2uuid device uuid\n"
23089 "\n"
23090 msgstr ""
23091
23092 # type: textblock
23093 #: ../fish/guestfish-actions.pod:3663
23094 msgid ""
23095 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23096 "UUID of a filesystem."
23097 msgstr ""
23098
23099 # type: =head2
23100 #: ../fish/guestfish-actions.pod:3666
23101 msgid "set-memsize"
23102 msgstr ""
23103
23104 # type: =head2
23105 #: ../fish/guestfish-actions.pod:3668
23106 msgid "memsize"
23107 msgstr ""
23108
23109 # type: verbatim
23110 #: ../fish/guestfish-actions.pod:3670
23111 #, no-wrap
23112 msgid ""
23113 " set-memsize memsize\n"
23114 "\n"
23115 msgstr ""
23116
23117 # type: textblock
23118 #: ../fish/guestfish-actions.pod:3672
23119 msgid ""
23120 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23121 "This only has any effect if called before L</launch>."
23122 msgstr ""
23123
23124 # type: =head2
23125 #: ../fish/guestfish-actions.pod:3683
23126 msgid "set-network"
23127 msgstr ""
23128
23129 # type: =head2
23130 #: ../fish/guestfish-actions.pod:3685
23131 msgid "network"
23132 msgstr ""
23133
23134 # type: verbatim
23135 #: ../fish/guestfish-actions.pod:3687
23136 #, no-wrap
23137 msgid ""
23138 " set-network true|false\n"
23139 "\n"
23140 msgstr ""
23141
23142 # type: textblock
23143 #: ../fish/guestfish-actions.pod:3695
23144 msgid "You must call this before calling L</launch>, otherwise it has no effect."
23145 msgstr ""
23146
23147 # type: =head2
23148 #: ../fish/guestfish-actions.pod:3698
23149 msgid "set-path"
23150 msgstr ""
23151
23152 # type: =head2
23153 #: ../fish/guestfish-actions.pod:3700
23154 msgid "path"
23155 msgstr ""
23156
23157 # type: verbatim
23158 #: ../fish/guestfish-actions.pod:3702
23159 #, no-wrap
23160 msgid ""
23161 " set-path searchpath\n"
23162 "\n"
23163 msgstr ""
23164
23165 # type: =head2
23166 #: ../fish/guestfish-actions.pod:3711
23167 msgid "set-qemu"
23168 msgstr ""
23169
23170 # type: =head2
23171 #: ../fish/guestfish-actions.pod:3713
23172 msgid "qemu"
23173 msgstr ""
23174
23175 # type: verbatim
23176 #: ../fish/guestfish-actions.pod:3715
23177 #, no-wrap
23178 msgid ""
23179 " set-qemu qemu\n"
23180 "\n"
23181 msgstr ""
23182
23183 # type: =head2
23184 #: ../fish/guestfish-actions.pod:3735
23185 msgid "set-recovery-proc"
23186 msgstr ""
23187
23188 # type: =head2
23189 #: ../fish/guestfish-actions.pod:3737
23190 msgid "recovery-proc"
23191 msgstr ""
23192
23193 # type: verbatim
23194 #: ../fish/guestfish-actions.pod:3739
23195 #, no-wrap
23196 msgid ""
23197 " set-recovery-proc true|false\n"
23198 "\n"
23199 msgstr ""
23200
23201 # type: textblock
23202 #: ../fish/guestfish-actions.pod:3741
23203 msgid ""
23204 "If this is called with the parameter C<false> then L</launch> does not "
23205 "create a recovery process.  The purpose of the recovery process is to stop "
23206 "runaway qemu processes in the case where the main program aborts abruptly."
23207 msgstr ""
23208
23209 # type: textblock
23210 #: ../fish/guestfish-actions.pod:3746
23211 msgid ""
23212 "This only has any effect if called before L</launch>, and the default is "
23213 "true."
23214 msgstr ""
23215
23216 # type: =head2
23217 #: ../fish/guestfish-actions.pod:3755
23218 msgid "set-selinux"
23219 msgstr ""
23220
23221 # type: =head2
23222 #: ../fish/guestfish-actions.pod:3757
23223 msgid "selinux"
23224 msgstr ""
23225
23226 # type: verbatim
23227 #: ../fish/guestfish-actions.pod:3759
23228 #, no-wrap
23229 msgid ""
23230 " set-selinux true|false\n"
23231 "\n"
23232 msgstr ""
23233
23234 # type: =head2
23235 #: ../fish/guestfish-actions.pod:3770
23236 msgid "set-trace"
23237 msgstr ""
23238
23239 # type: =head2
23240 #: ../fish/guestfish-actions.pod:3772
23241 msgid "trace"
23242 msgstr ""
23243
23244 # type: verbatim
23245 #: ../fish/guestfish-actions.pod:3774
23246 #, no-wrap
23247 msgid ""
23248 " set-trace true|false\n"
23249 "\n"
23250 msgstr ""
23251
23252 # type: =head2
23253 #: ../fish/guestfish-actions.pod:3790
23254 msgid "set-verbose"
23255 msgstr ""
23256
23257 # type: =head2
23258 #: ../fish/guestfish-actions.pod:3792
23259 msgid "verbose"
23260 msgstr ""
23261
23262 # type: verbatim
23263 #: ../fish/guestfish-actions.pod:3794
23264 #, no-wrap
23265 msgid ""
23266 " set-verbose true|false\n"
23267 "\n"
23268 msgstr ""
23269
23270 # type: =head2
23271 #: ../fish/guestfish-actions.pod:3801
23272 msgid "setcon"
23273 msgstr ""
23274
23275 # type: verbatim
23276 #: ../fish/guestfish-actions.pod:3803
23277 #, no-wrap
23278 msgid ""
23279 " setcon context\n"
23280 "\n"
23281 msgstr ""
23282
23283 # type: =head2
23284 #: ../fish/guestfish-actions.pod:3810
23285 msgid "setxattr"
23286 msgstr ""
23287
23288 # type: verbatim
23289 #: ../fish/guestfish-actions.pod:3812
23290 #, no-wrap
23291 msgid ""
23292 " setxattr xattr val vallen path\n"
23293 "\n"
23294 msgstr ""
23295
23296 # type: textblock
23297 #: ../fish/guestfish-actions.pod:3818
23298 msgid "See also: L</lsetxattr>, L<attr(5)>."
23299 msgstr ""
23300
23301 # type: =head2
23302 #: ../fish/guestfish-actions.pod:3820
23303 msgid "sfdisk"
23304 msgstr ""
23305
23306 # type: verbatim
23307 #: ../fish/guestfish-actions.pod:3822
23308 #, no-wrap
23309 msgid ""
23310 " sfdisk device cyls heads sectors 'lines ...'\n"
23311 "\n"
23312 msgstr ""
23313
23314 # type: textblock
23315 #: ../fish/guestfish-actions.pod:3844
23316 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23317 msgstr ""
23318
23319 # type: =head2
23320 #: ../fish/guestfish-actions.pod:3850
23321 msgid "sfdiskM"
23322 msgstr ""
23323
23324 # type: verbatim
23325 #: ../fish/guestfish-actions.pod:3852
23326 #, no-wrap
23327 msgid ""
23328 " sfdiskM device 'lines ...'\n"
23329 "\n"
23330 msgstr ""
23331
23332 # type: textblock
23333 #: ../fish/guestfish-actions.pod:3854
23334 msgid ""
23335 "This is a simplified interface to the L</sfdisk> command, where partition "
23336 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23337 "you don't need to specify the cyls, heads and sectors parameters which were "
23338 "rarely if ever used anyway."
23339 msgstr ""
23340
23341 # type: textblock
23342 #: ../fish/guestfish-actions.pod:3860
23343 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23344 msgstr ""
23345
23346 # type: =head2
23347 #: ../fish/guestfish-actions.pod:3866
23348 msgid "sfdisk-N"
23349 msgstr ""
23350
23351 # type: verbatim
23352 #: ../fish/guestfish-actions.pod:3868
23353 #, no-wrap
23354 msgid ""
23355 " sfdisk-N device partnum cyls heads sectors line\n"
23356 "\n"
23357 msgstr ""
23358
23359 # type: textblock
23360 #: ../fish/guestfish-actions.pod:3873
23361 msgid ""
23362 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23363 "cyls/heads/sectors parameters."
23364 msgstr ""
23365
23366 # type: textblock
23367 #: ../fish/guestfish-actions.pod:3876
23368 msgid "See also: L</part-add>"
23369 msgstr ""
23370
23371 # type: =head2
23372 #: ../fish/guestfish-actions.pod:3881
23373 msgid "sfdisk-disk-geometry"
23374 msgstr ""
23375
23376 # type: verbatim
23377 #: ../fish/guestfish-actions.pod:3883
23378 #, no-wrap
23379 msgid ""
23380 " sfdisk-disk-geometry device\n"
23381 "\n"
23382 msgstr ""
23383
23384 # type: textblock
23385 #: ../fish/guestfish-actions.pod:3885
23386 msgid ""
23387 "This displays the disk geometry of C<device> read from the partition table.  "
23388 "Especially in the case where the underlying block device has been resized, "
23389 "this can be different from the kernel's idea of the geometry (see "
23390 "L</sfdisk-kernel-geometry>)."
23391 msgstr ""
23392
23393 # type: =head2
23394 #: ../fish/guestfish-actions.pod:3893
23395 msgid "sfdisk-kernel-geometry"
23396 msgstr ""
23397
23398 # type: verbatim
23399 #: ../fish/guestfish-actions.pod:3895
23400 #, no-wrap
23401 msgid ""
23402 " sfdisk-kernel-geometry device\n"
23403 "\n"
23404 msgstr ""
23405
23406 # type: =head2
23407 #: ../fish/guestfish-actions.pod:3902
23408 msgid "sfdisk-l"
23409 msgstr ""
23410
23411 # type: verbatim
23412 #: ../fish/guestfish-actions.pod:3904
23413 #, no-wrap
23414 msgid ""
23415 " sfdisk-l device\n"
23416 "\n"
23417 msgstr ""
23418
23419 # type: textblock
23420 #: ../fish/guestfish-actions.pod:3910
23421 msgid "See also: L</part-list>"
23422 msgstr ""
23423
23424 # type: =head2
23425 #: ../fish/guestfish-actions.pod:3912
23426 msgid "sh"
23427 msgstr ""
23428
23429 # type: verbatim
23430 #: ../fish/guestfish-actions.pod:3914
23431 #, no-wrap
23432 msgid ""
23433 " sh command\n"
23434 "\n"
23435 msgstr ""
23436
23437 # type: textblock
23438 #: ../fish/guestfish-actions.pod:3919
23439 msgid "This is like L</command>, but passes the command to:"
23440 msgstr ""
23441
23442 # type: textblock
23443 #: ../fish/guestfish-actions.pod:3927
23444 msgid "All the provisos about L</command> apply to this call."
23445 msgstr ""
23446
23447 # type: =head2
23448 #: ../fish/guestfish-actions.pod:3929
23449 msgid "sh-lines"
23450 msgstr ""
23451
23452 # type: verbatim
23453 #: ../fish/guestfish-actions.pod:3931
23454 #, no-wrap
23455 msgid ""
23456 " sh-lines command\n"
23457 "\n"
23458 msgstr ""
23459
23460 # type: textblock
23461 #: ../fish/guestfish-actions.pod:3933
23462 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23463 msgstr ""
23464
23465 # type: textblock
23466 #: ../fish/guestfish-actions.pod:3936
23467 msgid "See also: L</command-lines>"
23468 msgstr ""
23469
23470 # type: =head2
23471 #: ../fish/guestfish-actions.pod:3938
23472 msgid "sleep"
23473 msgstr ""
23474
23475 # type: verbatim
23476 #: ../fish/guestfish-actions.pod:3940
23477 #, no-wrap
23478 msgid ""
23479 " sleep secs\n"
23480 "\n"
23481 msgstr ""
23482
23483 # type: =head2
23484 #: ../fish/guestfish-actions.pod:3944
23485 msgid "stat"
23486 msgstr ""
23487
23488 # type: verbatim
23489 #: ../fish/guestfish-actions.pod:3946
23490 #, no-wrap
23491 msgid ""
23492 " stat path\n"
23493 "\n"
23494 msgstr ""
23495
23496 # type: =head2
23497 #: ../fish/guestfish-actions.pod:3952
23498 msgid "statvfs"
23499 msgstr ""
23500
23501 # type: verbatim
23502 #: ../fish/guestfish-actions.pod:3954
23503 #, no-wrap
23504 msgid ""
23505 " statvfs path\n"
23506 "\n"
23507 msgstr ""
23508
23509 # type: =head2
23510 #: ../fish/guestfish-actions.pod:3962
23511 msgid "strings"
23512 msgstr ""
23513
23514 # type: verbatim
23515 #: ../fish/guestfish-actions.pod:3964
23516 #, no-wrap
23517 msgid ""
23518 " strings path\n"
23519 "\n"
23520 msgstr ""
23521
23522 # type: =head2
23523 #: ../fish/guestfish-actions.pod:3972
23524 msgid "strings-e"
23525 msgstr ""
23526
23527 # type: verbatim
23528 #: ../fish/guestfish-actions.pod:3974
23529 #, no-wrap
23530 msgid ""
23531 " strings-e encoding path\n"
23532 "\n"
23533 msgstr ""
23534
23535 # type: textblock
23536 #: ../fish/guestfish-actions.pod:3976
23537 msgid ""
23538 "This is like the L</strings> command, but allows you to specify the encoding "
23539 "of strings that are looked for in the source file C<path>."
23540 msgstr ""
23541
23542 # type: textblock
23543 #: ../fish/guestfish-actions.pod:3986
23544 msgid ""
23545 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23546 "ISO-8859-X (this is what L</strings> uses)."
23547 msgstr ""
23548
23549 # type: =head2
23550 #: ../fish/guestfish-actions.pod:4018
23551 msgid "swapoff-device"
23552 msgstr ""
23553
23554 # type: verbatim
23555 #: ../fish/guestfish-actions.pod:4020
23556 #, no-wrap
23557 msgid ""
23558 " swapoff-device device\n"
23559 "\n"
23560 msgstr ""
23561
23562 # type: textblock
23563 #: ../fish/guestfish-actions.pod:4022
23564 msgid ""
23565 "This command disables the libguestfs appliance swap device or partition "
23566 "named C<device>.  See L</swapon-device>."
23567 msgstr ""
23568
23569 # type: =head2
23570 #: ../fish/guestfish-actions.pod:4026
23571 msgid "swapoff-file"
23572 msgstr ""
23573
23574 # type: verbatim
23575 #: ../fish/guestfish-actions.pod:4028
23576 #, no-wrap
23577 msgid ""
23578 " swapoff-file file\n"
23579 "\n"
23580 msgstr ""
23581
23582 # type: =head2
23583 #: ../fish/guestfish-actions.pod:4032
23584 msgid "swapoff-label"
23585 msgstr ""
23586
23587 # type: verbatim
23588 #: ../fish/guestfish-actions.pod:4034
23589 #, no-wrap
23590 msgid ""
23591 " swapoff-label label\n"
23592 "\n"
23593 msgstr ""
23594
23595 # type: =head2
23596 #: ../fish/guestfish-actions.pod:4039
23597 msgid "swapoff-uuid"
23598 msgstr ""
23599
23600 # type: verbatim
23601 #: ../fish/guestfish-actions.pod:4041
23602 #, no-wrap
23603 msgid ""
23604 " swapoff-uuid uuid\n"
23605 "\n"
23606 msgstr ""
23607
23608 # type: =head2
23609 #: ../fish/guestfish-actions.pod:4046
23610 msgid "swapon-device"
23611 msgstr ""
23612
23613 # type: verbatim
23614 #: ../fish/guestfish-actions.pod:4048
23615 #, no-wrap
23616 msgid ""
23617 " swapon-device device\n"
23618 "\n"
23619 msgstr ""
23620
23621 # type: textblock
23622 #: ../fish/guestfish-actions.pod:4050
23623 msgid ""
23624 "This command enables the libguestfs appliance to use the swap device or "
23625 "partition named C<device>.  The increased memory is made available for all "
23626 "commands, for example those run using L</command> or L</sh>."
23627 msgstr ""
23628
23629 # type: =head2
23630 #: ../fish/guestfish-actions.pod:4062
23631 msgid "swapon-file"
23632 msgstr ""
23633
23634 # type: verbatim
23635 #: ../fish/guestfish-actions.pod:4064
23636 #, no-wrap
23637 msgid ""
23638 " swapon-file file\n"
23639 "\n"
23640 msgstr ""
23641
23642 # type: textblock
23643 #: ../fish/guestfish-actions.pod:4066
23644 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
23645 msgstr ""
23646
23647 # type: =head2
23648 #: ../fish/guestfish-actions.pod:4069
23649 msgid "swapon-label"
23650 msgstr ""
23651
23652 # type: verbatim
23653 #: ../fish/guestfish-actions.pod:4071
23654 #, no-wrap
23655 msgid ""
23656 " swapon-label label\n"
23657 "\n"
23658 msgstr ""
23659
23660 # type: textblock
23661 #: ../fish/guestfish-actions.pod:4073
23662 msgid ""
23663 "This command enables swap to a labeled swap partition.  See "
23664 "L</swapon-device> for other notes."
23665 msgstr ""
23666
23667 # type: =head2
23668 #: ../fish/guestfish-actions.pod:4076
23669 msgid "swapon-uuid"
23670 msgstr ""
23671
23672 # type: verbatim
23673 #: ../fish/guestfish-actions.pod:4078
23674 #, no-wrap
23675 msgid ""
23676 " swapon-uuid uuid\n"
23677 "\n"
23678 msgstr ""
23679
23680 # type: textblock
23681 #: ../fish/guestfish-actions.pod:4080
23682 msgid ""
23683 "This command enables swap to a swap partition with the given UUID.  See "
23684 "L</swapon-device> for other notes."
23685 msgstr ""
23686
23687 # type: =head2
23688 #: ../fish/guestfish-actions.pod:4083
23689 msgid "sync"
23690 msgstr ""
23691
23692 # type: verbatim
23693 #: ../fish/guestfish-actions.pod:4085
23694 #, no-wrap
23695 msgid ""
23696 " sync\n"
23697 "\n"
23698 msgstr ""
23699
23700 # type: =head2
23701 #: ../fish/guestfish-actions.pod:4093
23702 msgid "tail"
23703 msgstr ""
23704
23705 # type: verbatim
23706 #: ../fish/guestfish-actions.pod:4095
23707 #, no-wrap
23708 msgid ""
23709 " tail path\n"
23710 "\n"
23711 msgstr ""
23712
23713 # type: =head2
23714 #: ../fish/guestfish-actions.pod:4103
23715 msgid "tail-n"
23716 msgstr ""
23717
23718 # type: verbatim
23719 #: ../fish/guestfish-actions.pod:4105
23720 #, no-wrap
23721 msgid ""
23722 " tail-n nrlines path\n"
23723 "\n"
23724 msgstr ""
23725
23726 # type: =head2
23727 #: ../fish/guestfish-actions.pod:4118
23728 msgid "tar-in"
23729 msgstr ""
23730
23731 # type: verbatim
23732 #: ../fish/guestfish-actions.pod:4120
23733 #, no-wrap
23734 msgid ""
23735 " tar-in (tarfile|-) directory\n"
23736 "\n"
23737 msgstr ""
23738
23739 # type: textblock
23740 #: ../fish/guestfish-actions.pod:4125
23741 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23742 msgstr ""
23743
23744 # type: =head2
23745 #: ../fish/guestfish-actions.pod:4130
23746 msgid "tar-out"
23747 msgstr ""
23748
23749 # type: verbatim
23750 #: ../fish/guestfish-actions.pod:4132
23751 #, no-wrap
23752 msgid ""
23753 " tar-out directory (tarfile|-)\n"
23754 "\n"
23755 msgstr ""
23756
23757 # type: textblock
23758 #: ../fish/guestfish-actions.pod:4137
23759 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23760 msgstr ""
23761
23762 # type: =head2
23763 #: ../fish/guestfish-actions.pod:4142
23764 msgid "tgz-in"
23765 msgstr ""
23766
23767 # type: verbatim
23768 #: ../fish/guestfish-actions.pod:4144
23769 #, no-wrap
23770 msgid ""
23771 " tgz-in (tarball|-) directory\n"
23772 "\n"
23773 msgstr ""
23774
23775 # type: textblock
23776 #: ../fish/guestfish-actions.pod:4149
23777 msgid "To upload an uncompressed tarball, use L</tar-in>."
23778 msgstr ""
23779
23780 # type: =head2
23781 #: ../fish/guestfish-actions.pod:4153
23782 msgid "tgz-out"
23783 msgstr ""
23784
23785 # type: verbatim
23786 #: ../fish/guestfish-actions.pod:4155
23787 #, no-wrap
23788 msgid ""
23789 " tgz-out directory (tarball|-)\n"
23790 "\n"
23791 msgstr ""
23792
23793 # type: textblock
23794 #: ../fish/guestfish-actions.pod:4160
23795 msgid "To download an uncompressed tarball, use L</tar-out>."
23796 msgstr ""
23797
23798 # type: =head2
23799 #: ../fish/guestfish-actions.pod:4164
23800 msgid "touch"
23801 msgstr ""
23802
23803 # type: verbatim
23804 #: ../fish/guestfish-actions.pod:4166
23805 #, no-wrap
23806 msgid ""
23807 " touch path\n"
23808 "\n"
23809 msgstr ""
23810
23811 # type: =head2
23812 #: ../fish/guestfish-actions.pod:4175
23813 msgid "truncate"
23814 msgstr ""
23815
23816 # type: verbatim
23817 #: ../fish/guestfish-actions.pod:4177
23818 #, no-wrap
23819 msgid ""
23820 " truncate path\n"
23821 "\n"
23822 msgstr ""
23823
23824 # type: =head2
23825 #: ../fish/guestfish-actions.pod:4182
23826 msgid "truncate-size"
23827 msgstr ""
23828
23829 # type: verbatim
23830 #: ../fish/guestfish-actions.pod:4184
23831 #, no-wrap
23832 msgid ""
23833 " truncate-size path size\n"
23834 "\n"
23835 msgstr ""
23836
23837 # type: textblock
23838 #: ../fish/guestfish-actions.pod:4189
23839 msgid ""
23840 "If the current file size is less than C<size> then the file is extended to "
23841 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23842 "blocks are not allocated for the file until you write to it).  To create a "
23843 "non-sparse file of zeroes, use L</fallocate64> instead."
23844 msgstr ""
23845
23846 # type: =head2
23847 #: ../fish/guestfish-actions.pod:4195
23848 msgid "tune2fs-l"
23849 msgstr ""
23850
23851 # type: verbatim
23852 #: ../fish/guestfish-actions.pod:4197
23853 #, no-wrap
23854 msgid ""
23855 " tune2fs-l device\n"
23856 "\n"
23857 msgstr ""
23858
23859 # type: =head2
23860 #: ../fish/guestfish-actions.pod:4207
23861 msgid "txz-in"
23862 msgstr ""
23863
23864 # type: verbatim
23865 #: ../fish/guestfish-actions.pod:4209
23866 #, no-wrap
23867 msgid ""
23868 " txz-in (tarball|-) directory\n"
23869 "\n"
23870 msgstr ""
23871
23872 # type: =head2
23873 #: ../fish/guestfish-actions.pod:4216
23874 msgid "txz-out"
23875 msgstr ""
23876
23877 # type: verbatim
23878 #: ../fish/guestfish-actions.pod:4218
23879 #, no-wrap
23880 msgid ""
23881 " txz-out directory (tarball|-)\n"
23882 "\n"
23883 msgstr ""
23884
23885 # type: =head2
23886 #: ../fish/guestfish-actions.pod:4225
23887 msgid "umask"
23888 msgstr ""
23889
23890 # type: verbatim
23891 #: ../fish/guestfish-actions.pod:4227
23892 #, no-wrap
23893 msgid ""
23894 " umask mask\n"
23895 "\n"
23896 msgstr ""
23897
23898 # type: textblock
23899 #: ../fish/guestfish-actions.pod:4241
23900 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23901 msgstr ""
23902
23903 # type: =head2
23904 #: ../fish/guestfish-actions.pod:4246
23905 msgid "umount"
23906 msgstr ""
23907
23908 # type: =head2
23909 #: ../fish/guestfish-actions.pod:4248
23910 msgid "unmount"
23911 msgstr ""
23912
23913 # type: verbatim
23914 #: ../fish/guestfish-actions.pod:4250
23915 #, no-wrap
23916 msgid ""
23917 " umount pathordevice\n"
23918 "\n"
23919 msgstr ""
23920
23921 # type: =head2
23922 #: ../fish/guestfish-actions.pod:4256
23923 msgid "umount-all"
23924 msgstr ""
23925
23926 # type: =head2
23927 #: ../fish/guestfish-actions.pod:4258
23928 msgid "unmount-all"
23929 msgstr ""
23930
23931 # type: verbatim
23932 #: ../fish/guestfish-actions.pod:4260
23933 #, no-wrap
23934 msgid ""
23935 " umount-all\n"
23936 "\n"
23937 msgstr ""
23938
23939 # type: =head2
23940 #: ../fish/guestfish-actions.pod:4266
23941 msgid "upload"
23942 msgstr ""
23943
23944 # type: verbatim
23945 #: ../fish/guestfish-actions.pod:4268
23946 #, no-wrap
23947 msgid ""
23948 " upload (filename|-) remotefilename\n"
23949 "\n"
23950 msgstr ""
23951
23952 # type: textblock
23953 #: ../fish/guestfish-actions.pod:4275
23954 msgid "See also L</download>."
23955 msgstr ""
23956
23957 # type: =head2
23958 #: ../fish/guestfish-actions.pod:4279
23959 msgid "upload-offset"
23960 msgstr ""
23961
23962 # type: verbatim
23963 #: ../fish/guestfish-actions.pod:4281
23964 #, no-wrap
23965 msgid ""
23966 " upload-offset (filename|-) remotefilename offset\n"
23967 "\n"
23968 msgstr ""
23969
23970 # type: textblock
23971 #: ../fish/guestfish-actions.pod:4293
23972 msgid ""
23973 "Note that there is no limit on the amount of data that can be uploaded with "
23974 "this call, unlike with L</pwrite>, and this call always writes the full "
23975 "amount unless an error occurs."
23976 msgstr ""
23977
23978 # type: textblock
23979 #: ../fish/guestfish-actions.pod:4298
23980 msgid "See also L</upload>, L</pwrite>."
23981 msgstr ""
23982
23983 # type: =head2
23984 #: ../fish/guestfish-actions.pod:4302
23985 msgid "utimens"
23986 msgstr ""
23987
23988 # type: verbatim
23989 #: ../fish/guestfish-actions.pod:4304
23990 #, no-wrap
23991 msgid ""
23992 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23993 "\n"
23994 msgstr ""
23995
23996 # type: =head2
23997 #: ../fish/guestfish-actions.pod:4323
23998 msgid "version"
23999 msgstr ""
24000
24001 # type: verbatim
24002 #: ../fish/guestfish-actions.pod:4325
24003 #, no-wrap
24004 msgid ""
24005 " version\n"
24006 "\n"
24007 msgstr ""
24008
24009 # type: textblock
24010 #: ../fish/guestfish-actions.pod:4352
24011 msgid ""
24012 "I<Note:> Don't use this call to test for availability of features.  In "
24013 "enterprise distributions we backport features from later versions into "
24014 "earlier versions, making this an unreliable way to test for features.  Use "
24015 "L</available> instead."
24016 msgstr ""
24017
24018 # type: =head2
24019 #: ../fish/guestfish-actions.pod:4358
24020 msgid "vfs-label"
24021 msgstr ""
24022
24023 # type: verbatim
24024 #: ../fish/guestfish-actions.pod:4360
24025 #, no-wrap
24026 msgid ""
24027 " vfs-label device\n"
24028 "\n"
24029 msgstr ""
24030
24031 # type: textblock
24032 #: ../fish/guestfish-actions.pod:4367
24033 msgid "To find a filesystem from the label, use L</findfs-label>."
24034 msgstr ""
24035
24036 # type: =head2
24037 #: ../fish/guestfish-actions.pod:4369
24038 msgid "vfs-type"
24039 msgstr ""
24040
24041 # type: verbatim
24042 #: ../fish/guestfish-actions.pod:4371
24043 #, no-wrap
24044 msgid ""
24045 " vfs-type device\n"
24046 "\n"
24047 msgstr ""
24048
24049 # type: =head2
24050 #: ../fish/guestfish-actions.pod:4381
24051 msgid "vfs-uuid"
24052 msgstr ""
24053
24054 # type: verbatim
24055 #: ../fish/guestfish-actions.pod:4383
24056 #, no-wrap
24057 msgid ""
24058 " vfs-uuid device\n"
24059 "\n"
24060 msgstr ""
24061
24062 # type: textblock
24063 #: ../fish/guestfish-actions.pod:4390
24064 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24065 msgstr ""
24066
24067 # type: =head2
24068 #: ../fish/guestfish-actions.pod:4392
24069 msgid "vg-activate"
24070 msgstr ""
24071
24072 # type: verbatim
24073 #: ../fish/guestfish-actions.pod:4394
24074 #, no-wrap
24075 msgid ""
24076 " vg-activate true|false 'volgroups ...'\n"
24077 "\n"
24078 msgstr ""
24079
24080 # type: =head2
24081 #: ../fish/guestfish-actions.pod:4407
24082 msgid "vg-activate-all"
24083 msgstr ""
24084
24085 # type: verbatim
24086 #: ../fish/guestfish-actions.pod:4409
24087 #, no-wrap
24088 msgid ""
24089 " vg-activate-all true|false\n"
24090 "\n"
24091 msgstr ""
24092
24093 # type: =head2
24094 #: ../fish/guestfish-actions.pod:4419
24095 msgid "vgcreate"
24096 msgstr ""
24097
24098 # type: verbatim
24099 #: ../fish/guestfish-actions.pod:4421
24100 #, no-wrap
24101 msgid ""
24102 " vgcreate volgroup 'physvols ...'\n"
24103 "\n"
24104 msgstr ""
24105
24106 # type: =head2
24107 #: ../fish/guestfish-actions.pod:4426
24108 msgid "vglvuuids"
24109 msgstr ""
24110
24111 # type: verbatim
24112 #: ../fish/guestfish-actions.pod:4428
24113 #, no-wrap
24114 msgid ""
24115 " vglvuuids vgname\n"
24116 "\n"
24117 msgstr ""
24118
24119 # type: textblock
24120 #: ../fish/guestfish-actions.pod:4433
24121 msgid ""
24122 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24123 "logical volumes and volume groups."
24124 msgstr ""
24125
24126 # type: textblock
24127 #: ../fish/guestfish-actions.pod:4436
24128 msgid "See also L</vgpvuuids>."
24129 msgstr ""
24130
24131 # type: =head2
24132 #: ../fish/guestfish-actions.pod:4438
24133 msgid "vgpvuuids"
24134 msgstr ""
24135
24136 # type: verbatim
24137 #: ../fish/guestfish-actions.pod:4440
24138 #, no-wrap
24139 msgid ""
24140 " vgpvuuids vgname\n"
24141 "\n"
24142 msgstr ""
24143
24144 # type: textblock
24145 #: ../fish/guestfish-actions.pod:4445
24146 msgid ""
24147 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24148 "physical volumes and volume groups."
24149 msgstr ""
24150
24151 # type: textblock
24152 #: ../fish/guestfish-actions.pod:4448
24153 msgid "See also L</vglvuuids>."
24154 msgstr ""
24155
24156 # type: =head2
24157 #: ../fish/guestfish-actions.pod:4450
24158 msgid "vgremove"
24159 msgstr ""
24160
24161 # type: verbatim
24162 #: ../fish/guestfish-actions.pod:4452
24163 #, no-wrap
24164 msgid ""
24165 " vgremove vgname\n"
24166 "\n"
24167 msgstr ""
24168
24169 # type: =head2
24170 #: ../fish/guestfish-actions.pod:4459
24171 msgid "vgrename"
24172 msgstr ""
24173
24174 # type: verbatim
24175 #: ../fish/guestfish-actions.pod:4461
24176 #, no-wrap
24177 msgid ""
24178 " vgrename volgroup newvolgroup\n"
24179 "\n"
24180 msgstr ""
24181
24182 # type: =head2
24183 #: ../fish/guestfish-actions.pod:4465
24184 msgid "vgs"
24185 msgstr ""
24186
24187 # type: verbatim
24188 #: ../fish/guestfish-actions.pod:4467
24189 #, no-wrap
24190 msgid ""
24191 " vgs\n"
24192 "\n"
24193 msgstr ""
24194
24195 # type: textblock
24196 #: ../fish/guestfish-actions.pod:4475
24197 msgid "See also L</vgs-full>."
24198 msgstr ""
24199
24200 # type: =head2
24201 #: ../fish/guestfish-actions.pod:4477
24202 msgid "vgs-full"
24203 msgstr ""
24204
24205 # type: verbatim
24206 #: ../fish/guestfish-actions.pod:4479
24207 #, no-wrap
24208 msgid ""
24209 " vgs-full\n"
24210 "\n"
24211 msgstr ""
24212
24213 # type: =head2
24214 #: ../fish/guestfish-actions.pod:4484
24215 msgid "vgscan"
24216 msgstr ""
24217
24218 # type: verbatim
24219 #: ../fish/guestfish-actions.pod:4486
24220 #, no-wrap
24221 msgid ""
24222 " vgscan\n"
24223 "\n"
24224 msgstr ""
24225
24226 # type: =head2
24227 #: ../fish/guestfish-actions.pod:4491
24228 msgid "vguuid"
24229 msgstr ""
24230
24231 # type: verbatim
24232 #: ../fish/guestfish-actions.pod:4493
24233 #, no-wrap
24234 msgid ""
24235 " vguuid vgname\n"
24236 "\n"
24237 msgstr ""
24238
24239 # type: =head2
24240 #: ../fish/guestfish-actions.pod:4497
24241 msgid "wc-c"
24242 msgstr ""
24243
24244 # type: verbatim
24245 #: ../fish/guestfish-actions.pod:4499
24246 #, no-wrap
24247 msgid ""
24248 " wc-c path\n"
24249 "\n"
24250 msgstr ""
24251
24252 # type: =head2
24253 #: ../fish/guestfish-actions.pod:4504
24254 msgid "wc-l"
24255 msgstr ""
24256
24257 # type: verbatim
24258 #: ../fish/guestfish-actions.pod:4506
24259 #, no-wrap
24260 msgid ""
24261 " wc-l path\n"
24262 "\n"
24263 msgstr ""
24264
24265 # type: =head2
24266 #: ../fish/guestfish-actions.pod:4511
24267 msgid "wc-w"
24268 msgstr ""
24269
24270 # type: verbatim
24271 #: ../fish/guestfish-actions.pod:4513
24272 #, no-wrap
24273 msgid ""
24274 " wc-w path\n"
24275 "\n"
24276 msgstr ""
24277
24278 # type: =head2
24279 #: ../fish/guestfish-actions.pod:4518
24280 msgid "write"
24281 msgstr ""
24282
24283 # type: verbatim
24284 #: ../fish/guestfish-actions.pod:4520
24285 #, no-wrap
24286 msgid ""
24287 " write path content\n"
24288 "\n"
24289 msgstr ""
24290
24291 # type: =head2
24292 #: ../fish/guestfish-actions.pod:4528
24293 msgid "write-file"
24294 msgstr ""
24295
24296 # type: verbatim
24297 #: ../fish/guestfish-actions.pod:4530
24298 #, no-wrap
24299 msgid ""
24300 " write-file path content size\n"
24301 "\n"
24302 msgstr ""
24303
24304 # type: =head2
24305 #: ../fish/guestfish-actions.pod:4553
24306 msgid "zegrep"
24307 msgstr ""
24308
24309 # type: verbatim
24310 #: ../fish/guestfish-actions.pod:4555
24311 #, no-wrap
24312 msgid ""
24313 " zegrep regex path\n"
24314 "\n"
24315 msgstr ""
24316
24317 # type: =head2
24318 #: ../fish/guestfish-actions.pod:4563
24319 msgid "zegrepi"
24320 msgstr ""
24321
24322 # type: verbatim
24323 #: ../fish/guestfish-actions.pod:4565
24324 #, no-wrap
24325 msgid ""
24326 " zegrepi regex path\n"
24327 "\n"
24328 msgstr ""
24329
24330 # type: =head2
24331 #: ../fish/guestfish-actions.pod:4573
24332 msgid "zero"
24333 msgstr ""
24334
24335 # type: verbatim
24336 #: ../fish/guestfish-actions.pod:4575
24337 #, no-wrap
24338 msgid ""
24339 " zero device\n"
24340 "\n"
24341 msgstr ""
24342
24343 # type: textblock
24344 #: ../fish/guestfish-actions.pod:4583
24345 msgid "See also: L</zero-device>, L</scrub-device>."
24346 msgstr ""
24347
24348 # type: =head2
24349 #: ../fish/guestfish-actions.pod:4585
24350 msgid "zero-device"
24351 msgstr ""
24352
24353 # type: verbatim
24354 #: ../fish/guestfish-actions.pod:4587
24355 #, no-wrap
24356 msgid ""
24357 " zero-device device\n"
24358 "\n"
24359 msgstr ""
24360
24361 # type: textblock
24362 #: ../fish/guestfish-actions.pod:4589
24363 msgid ""
24364 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24365 "which just zeroes the first few blocks of a device."
24366 msgstr ""
24367
24368 # type: =head2
24369 #: ../fish/guestfish-actions.pod:4596
24370 msgid "zerofree"
24371 msgstr ""
24372
24373 # type: verbatim
24374 #: ../fish/guestfish-actions.pod:4598
24375 #, no-wrap
24376 msgid ""
24377 " zerofree device\n"
24378 "\n"
24379 msgstr ""
24380
24381 # type: =head2
24382 #: ../fish/guestfish-actions.pod:4611
24383 msgid "zfgrep"
24384 msgstr ""
24385
24386 # type: verbatim
24387 #: ../fish/guestfish-actions.pod:4613
24388 #, no-wrap
24389 msgid ""
24390 " zfgrep pattern path\n"
24391 "\n"
24392 msgstr ""
24393
24394 # type: =head2
24395 #: ../fish/guestfish-actions.pod:4621
24396 msgid "zfgrepi"
24397 msgstr ""
24398
24399 # type: verbatim
24400 #: ../fish/guestfish-actions.pod:4623
24401 #, no-wrap
24402 msgid ""
24403 " zfgrepi pattern path\n"
24404 "\n"
24405 msgstr ""
24406
24407 # type: =head2
24408 #: ../fish/guestfish-actions.pod:4631
24409 msgid "zfile"
24410 msgstr ""
24411
24412 # type: verbatim
24413 #: ../fish/guestfish-actions.pod:4633
24414 #, no-wrap
24415 msgid ""
24416 " zfile meth path\n"
24417 "\n"
24418 msgstr ""
24419
24420 # type: textblock
24421 #: ../fish/guestfish-actions.pod:4640
24422 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
24423 msgstr ""
24424
24425 # type: =head2
24426 #: ../fish/guestfish-actions.pod:4650
24427 msgid "zgrep"
24428 msgstr ""
24429
24430 # type: verbatim
24431 #: ../fish/guestfish-actions.pod:4652
24432 #, no-wrap
24433 msgid ""
24434 " zgrep regex path\n"
24435 "\n"
24436 msgstr ""
24437
24438 # type: =head2
24439 #: ../fish/guestfish-actions.pod:4660
24440 msgid "zgrepi"
24441 msgstr ""
24442
24443 # type: verbatim
24444 #: ../fish/guestfish-actions.pod:4662
24445 #, no-wrap
24446 msgid ""
24447 " zgrepi regex path\n"
24448 "\n"
24449 msgstr ""
24450
24451 # type: =head2
24452 #: ../fish/guestfish-commands.pod:1
24453 msgid "alloc"
24454 msgstr ""
24455
24456 # type: =head2
24457 #: ../fish/guestfish-commands.pod:3
24458 msgid "allocate"
24459 msgstr ""
24460
24461 # type: verbatim
24462 #: ../fish/guestfish-commands.pod:5
24463 #, no-wrap
24464 msgid ""
24465 " alloc filename size\n"
24466 "\n"
24467 msgstr ""
24468
24469 # type: textblock
24470 #: ../fish/guestfish-commands.pod:7
24471 msgid ""
24472 "This creates an empty (zeroed) file of the given size, and then adds so it "
24473 "can be further examined."
24474 msgstr ""
24475
24476 # type: textblock
24477 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24478 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24479 msgstr ""
24480
24481 # type: textblock
24482 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24483 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24484 msgstr ""
24485
24486 # type: textblock
24487 #: ../fish/guestfish-commands.pod:14
24488 msgid ""
24489 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24490 "image, see L</PREPARED DISK IMAGES>."
24491 msgstr ""
24492
24493 # type: =head2
24494 #: ../fish/guestfish-commands.pod:17
24495 msgid "copy-in"
24496 msgstr ""
24497
24498 # type: verbatim
24499 #: ../fish/guestfish-commands.pod:19
24500 #, no-wrap
24501 msgid ""
24502 " copy-in local [local ...] /remotedir\n"
24503 "\n"
24504 msgstr ""
24505
24506 # type: textblock
24507 #: ../fish/guestfish-commands.pod:21
24508 msgid ""
24509 "C<copy-in> copies local files or directories recursively into the disk "
24510 "image, placing them in the directory called C</remotedir> (which must "
24511 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24512 "other commands as necessary."
24513 msgstr ""
24514
24515 # type: textblock
24516 #: ../fish/guestfish-commands.pod:26
24517 msgid ""
24518 "Multiple local files and directories can be specified, but the last "
24519 "parameter must always be a remote directory.  Wildcards cannot be used."
24520 msgstr ""
24521
24522 # type: =head2
24523 #: ../fish/guestfish-commands.pod:30
24524 msgid "copy-out"
24525 msgstr ""
24526
24527 # type: verbatim
24528 #: ../fish/guestfish-commands.pod:32
24529 #, no-wrap
24530 msgid ""
24531 " copy-out remote [remote ...] localdir\n"
24532 "\n"
24533 msgstr ""
24534
24535 # type: textblock
24536 #: ../fish/guestfish-commands.pod:34
24537 msgid ""
24538 "C<copy-out> copies remote files or directories recursively out of the disk "
24539 "image, placing them on the host disk in a local directory called C<localdir> "
24540 "(which must exist).  This guestfish meta-command turns into a sequence of "
24541 "L</download>, L</tar-out> and other commands as necessary."
24542 msgstr ""
24543
24544 # type: textblock
24545 #: ../fish/guestfish-commands.pod:40
24546 msgid ""
24547 "Multiple remote files and directories can be specified, but the last "
24548 "parameter must always be a local directory.  To download to the current "
24549 "directory, use C<.> as in:"
24550 msgstr ""
24551
24552 # type: verbatim
24553 #: ../fish/guestfish-commands.pod:44
24554 #, no-wrap
24555 msgid ""
24556 " copy-out /home .\n"
24557 "\n"
24558 msgstr ""
24559
24560 # type: textblock
24561 #: ../fish/guestfish-commands.pod:46
24562 msgid ""
24563 "Wildcards cannot be used in the ordinary command, but you can use them with "
24564 "the help of L</glob> like this:"
24565 msgstr ""
24566
24567 # type: verbatim
24568 #: ../fish/guestfish-commands.pod:49
24569 #, no-wrap
24570 msgid ""
24571 " glob copy-out /home/* .\n"
24572 "\n"
24573 msgstr ""
24574
24575 # type: =head2
24576 #: ../fish/guestfish-commands.pod:51
24577 msgid "echo"
24578 msgstr ""
24579
24580 # type: verbatim
24581 #: ../fish/guestfish-commands.pod:53
24582 #, no-wrap
24583 msgid ""
24584 " echo [params ...]\n"
24585 "\n"
24586 msgstr ""
24587
24588 # type: textblock
24589 #: ../fish/guestfish-commands.pod:55
24590 msgid "This echos the parameters to the terminal."
24591 msgstr ""
24592
24593 # type: =head2
24594 #: ../fish/guestfish-commands.pod:57
24595 msgid "edit"
24596 msgstr ""
24597
24598 # type: =head2
24599 #: ../fish/guestfish-commands.pod:59
24600 msgid "vi"
24601 msgstr ""
24602
24603 # type: =head2
24604 #: ../fish/guestfish-commands.pod:61
24605 msgid "emacs"
24606 msgstr ""
24607
24608 # type: verbatim
24609 #: ../fish/guestfish-commands.pod:63
24610 #, no-wrap
24611 msgid ""
24612 " edit filename\n"
24613 "\n"
24614 msgstr ""
24615
24616 # type: textblock
24617 #: ../fish/guestfish-commands.pod:65
24618 msgid ""
24619 "This is used to edit a file.  It downloads the file, edits it locally using "
24620 "your editor, then uploads the result."
24621 msgstr ""
24622
24623 # type: textblock
24624 #: ../fish/guestfish-commands.pod:68
24625 msgid ""
24626 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24627 "or C<emacs> you will get those corresponding editors."
24628 msgstr ""
24629
24630 # type: =head2
24631 #: ../fish/guestfish-commands.pod:72
24632 msgid "glob"
24633 msgstr ""
24634
24635 # type: verbatim
24636 #: ../fish/guestfish-commands.pod:74
24637 #, no-wrap
24638 msgid ""
24639 " glob command args...\n"
24640 "\n"
24641 msgstr ""
24642
24643 # type: textblock
24644 #: ../fish/guestfish-commands.pod:76
24645 msgid ""
24646 "Expand wildcards in any paths in the args list, and run C<command> "
24647 "repeatedly on each matching path."
24648 msgstr ""
24649
24650 # type: textblock
24651 #: ../fish/guestfish-commands.pod:79
24652 msgid "See L</WILDCARDS AND GLOBBING>."
24653 msgstr ""
24654
24655 # type: =head2
24656 #: ../fish/guestfish-commands.pod:81
24657 msgid "hexedit"
24658 msgstr ""
24659
24660 # type: verbatim
24661 #: ../fish/guestfish-commands.pod:83
24662 #, no-wrap
24663 msgid ""
24664 " hexedit <filename|device>\n"
24665 " hexedit <filename|device> <max>\n"
24666 " hexedit <filename|device> <start> <max>\n"
24667 "\n"
24668 msgstr ""
24669
24670 # type: textblock
24671 #: ../fish/guestfish-commands.pod:87
24672 msgid ""
24673 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24674 "device."
24675 msgstr ""
24676
24677 # type: textblock
24678 #: ../fish/guestfish-commands.pod:90
24679 msgid ""
24680 "This command works by downloading potentially the whole file or device, "
24681 "editing it locally, then uploading it.  If the file or device is large, you "
24682 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24683 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24684 "usual modifiers allowed such as C<1M> (1 megabyte)."
24685 msgstr ""
24686
24687 # type: textblock
24688 #: ../fish/guestfish-commands.pod:97
24689 msgid "For example to edit the first few sectors of a disk you might do:"
24690 msgstr ""
24691
24692 # type: verbatim
24693 #: ../fish/guestfish-commands.pod:100
24694 #, no-wrap
24695 msgid ""
24696 " hexedit /dev/sda 1M\n"
24697 "\n"
24698 msgstr ""
24699
24700 # type: textblock
24701 #: ../fish/guestfish-commands.pod:102
24702 msgid ""
24703 "which would allow you to edit anywhere within the first megabyte of the "
24704 "disk."
24705 msgstr ""
24706
24707 # type: textblock
24708 #: ../fish/guestfish-commands.pod:105
24709 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24710 msgstr ""
24711
24712 # type: verbatim
24713 #: ../fish/guestfish-commands.pod:107
24714 #, no-wrap
24715 msgid ""
24716 " hexedit /dev/sda1 0x400 0x400\n"
24717 "\n"
24718 msgstr ""
24719
24720 # type: textblock
24721 #: ../fish/guestfish-commands.pod:109
24722 msgid "(assuming the superblock is in the standard location)."
24723 msgstr ""
24724
24725 # type: textblock
24726 #: ../fish/guestfish-commands.pod:111
24727 msgid ""
24728 "This command requires the external L<hexedit(1)> program.  You can specify "
24729 "another program to use by setting the C<HEXEDITOR> environment variable."
24730 msgstr ""
24731
24732 # type: textblock
24733 #: ../fish/guestfish-commands.pod:115
24734 msgid "See also L</hexdump>."
24735 msgstr ""
24736
24737 # type: =head2
24738 #: ../fish/guestfish-commands.pod:117
24739 msgid "lcd"
24740 msgstr ""
24741
24742 # type: verbatim
24743 #: ../fish/guestfish-commands.pod:119
24744 #, no-wrap
24745 msgid ""
24746 " lcd directory\n"
24747 "\n"
24748 msgstr ""
24749
24750 # type: textblock
24751 #: ../fish/guestfish-commands.pod:121
24752 msgid "Change the local directory, ie. the current directory of guestfish itself."
24753 msgstr ""
24754
24755 # type: textblock
24756 #: ../fish/guestfish-commands.pod:124
24757 msgid "Note that C<!cd> won't do what you might expect."
24758 msgstr ""
24759
24760 # type: =head2
24761 #: ../fish/guestfish-commands.pod:126
24762 msgid "man"
24763 msgstr ""
24764
24765 # type: =head2
24766 #: ../fish/guestfish-commands.pod:128
24767 msgid "manual"
24768 msgstr ""
24769
24770 # type: verbatim
24771 #: ../fish/guestfish-commands.pod:130
24772 #, no-wrap
24773 msgid ""
24774 "  man\n"
24775 "\n"
24776 msgstr ""
24777
24778 # type: textblock
24779 #: ../fish/guestfish-commands.pod:132
24780 msgid "Opens the manual page for guestfish."
24781 msgstr ""
24782
24783 # type: =head2
24784 #: ../fish/guestfish-commands.pod:134
24785 msgid "more"
24786 msgstr ""
24787
24788 # type: =head2
24789 #: ../fish/guestfish-commands.pod:136
24790 msgid "less"
24791 msgstr ""
24792
24793 # type: verbatim
24794 #: ../fish/guestfish-commands.pod:138
24795 #, no-wrap
24796 msgid ""
24797 " more filename\n"
24798 "\n"
24799 msgstr ""
24800
24801 # type: verbatim
24802 #: ../fish/guestfish-commands.pod:140
24803 #, no-wrap
24804 msgid ""
24805 " less filename\n"
24806 "\n"
24807 msgstr ""
24808
24809 # type: textblock
24810 #: ../fish/guestfish-commands.pod:142
24811 msgid "This is used to view a file."
24812 msgstr ""
24813
24814 # type: textblock
24815 #: ../fish/guestfish-commands.pod:144
24816 msgid ""
24817 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24818 "C<less> you will get the C<less> command specifically."
24819 msgstr ""
24820
24821 # type: =head2
24822 #: ../fish/guestfish-commands.pod:147
24823 msgid "reopen"
24824 msgstr ""
24825
24826 # type: verbatim
24827 #: ../fish/guestfish-commands.pod:149
24828 #, no-wrap
24829 msgid ""
24830 "  reopen\n"
24831 "\n"
24832 msgstr ""
24833
24834 # type: textblock
24835 #: ../fish/guestfish-commands.pod:151
24836 msgid ""
24837 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24838 "normally, because the handle is closed properly when guestfish exits.  "
24839 "However this is occasionally useful for testing."
24840 msgstr ""
24841
24842 # type: =head2
24843 #: ../fish/guestfish-commands.pod:155
24844 msgid "sparse"
24845 msgstr ""
24846
24847 # type: verbatim
24848 #: ../fish/guestfish-commands.pod:157
24849 #, no-wrap
24850 msgid ""
24851 " sparse filename size\n"
24852 "\n"
24853 msgstr ""
24854
24855 # type: textblock
24856 #: ../fish/guestfish-commands.pod:159
24857 msgid ""
24858 "This creates an empty sparse file of the given size, and then adds so it can "
24859 "be further examined."
24860 msgstr ""
24861
24862 # type: textblock
24863 #: ../fish/guestfish-commands.pod:162
24864 msgid ""
24865 "In all respects it works the same as the L</alloc> command, except that the "
24866 "image file is allocated sparsely, which means that disk blocks are not "
24867 "assigned to the file until they are needed.  Sparse disk files only use "
24868 "space when written to, but they are slower and there is a danger you could "
24869 "run out of real disk space during a write operation."
24870 msgstr ""
24871
24872 # type: =head2
24873 #: ../fish/guestfish-commands.pod:172
24874 msgid "supported"
24875 msgstr ""
24876
24877 # type: verbatim
24878 #: ../fish/guestfish-commands.pod:174
24879 #, no-wrap
24880 msgid ""
24881 " supported\n"
24882 "\n"
24883 msgstr ""
24884
24885 # type: textblock
24886 #: ../fish/guestfish-commands.pod:176
24887 msgid ""
24888 "This command returns a list of the optional groups known to the daemon, and "
24889 "indicates which ones are supported by this build of the libguestfs "
24890 "appliance."
24891 msgstr ""
24892
24893 # type: textblock
24894 #: ../fish/guestfish-commands.pod:180
24895 msgid "See also L<guestfs(3)/AVAILABILITY>."
24896 msgstr ""
24897
24898 # type: =head2
24899 #: ../fish/guestfish-commands.pod:182
24900 msgid "time"
24901 msgstr ""
24902
24903 # type: verbatim
24904 #: ../fish/guestfish-commands.pod:184
24905 #, no-wrap
24906 msgid ""
24907 " time command args...\n"
24908 "\n"
24909 msgstr ""
24910
24911 # type: textblock
24912 #: ../fish/guestfish-commands.pod:186
24913 msgid ""
24914 "Run the command as usual, but print the elapsed time afterwards.  This can "
24915 "be useful for benchmarking operations."
24916 msgstr ""
24917
24918 # type: textblock
24919 #: ../test-tool/libguestfs-test-tool.pod:5
24920 msgid "libguestfs-test-tool - End user tests for libguestfs"
24921 msgstr ""
24922
24923 # type: verbatim
24924 #: ../test-tool/libguestfs-test-tool.pod:9
24925 #, no-wrap
24926 msgid ""
24927 " libguestfs-test-tool [--options]\n"
24928 "\n"
24929 msgstr ""
24930
24931 # type: textblock
24932 #: ../test-tool/libguestfs-test-tool.pod:13
24933 msgid ""
24934 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24935 "and developers, to allow them to check basic libguestfs functionality is "
24936 "working.  This is needed because libguestfs occasionally breaks for reasons "
24937 "beyond our control: usually because of changes in the underlying qemu or "
24938 "kernel packages, or the host environment."
24939 msgstr ""
24940
24941 # type: textblock
24942 #: ../test-tool/libguestfs-test-tool.pod:20
24943 msgid "If you suspect a problem in libguestfs, then just run:"
24944 msgstr ""
24945
24946 # type: verbatim
24947 #: ../test-tool/libguestfs-test-tool.pod:22
24948 #, no-wrap
24949 msgid ""
24950 " libguestfs-test-tool\n"
24951 "\n"
24952 msgstr ""
24953
24954 # type: textblock
24955 #: ../test-tool/libguestfs-test-tool.pod:24
24956 msgid "It will print lots of diagnostic messages."
24957 msgstr ""
24958
24959 # type: textblock
24960 #: ../test-tool/libguestfs-test-tool.pod:26
24961 msgid "If it runs to completion successfully, you will see this near the end:"
24962 msgstr ""
24963
24964 # type: verbatim
24965 #: ../test-tool/libguestfs-test-tool.pod:28
24966 #, no-wrap
24967 msgid ""
24968 " ===== TEST FINISHED OK =====\n"
24969 "\n"
24970 msgstr ""
24971
24972 # type: textblock
24973 #: ../test-tool/libguestfs-test-tool.pod:30
24974 msgid "and the test tool will exit with code 0."
24975 msgstr ""
24976
24977 # type: textblock
24978 #: ../test-tool/libguestfs-test-tool.pod:32
24979 msgid ""
24980 "If it fails (and/or exits with non-zero error code), please paste the "
24981 "B<complete, unedited> output of the test tool into a bug report.  More "
24982 "information about reporting bugs can be found on the "
24983 "L<http://libguestfs.org/> website."
24984 msgstr ""
24985
24986 # type: =item
24987 #: ../test-tool/libguestfs-test-tool.pod:41
24988 msgid "I<--help>"
24989 msgstr ""
24990
24991 # type: textblock
24992 #: ../test-tool/libguestfs-test-tool.pod:43
24993 msgid "Display short usage information and exit."
24994 msgstr ""
24995
24996 # type: =item
24997 #: ../test-tool/libguestfs-test-tool.pod:45
24998 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24999 msgstr ""
25000
25001 # type: textblock
25002 #: ../test-tool/libguestfs-test-tool.pod:47
25003 msgid ""
25004 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25005 "normally look in the C<$libexec> directory that was configured when the tool "
25006 "was built."
25007 msgstr ""
25008
25009 # type: =item
25010 #: ../test-tool/libguestfs-test-tool.pod:51
25011 msgid "I<--qemu qemu_binary>"
25012 msgstr ""
25013
25014 # type: textblock
25015 #: ../test-tool/libguestfs-test-tool.pod:53
25016 msgid ""
25017 "If you have downloaded another qemu binary, point this option at the full "
25018 "path of the binary to try it."
25019 msgstr ""
25020
25021 # type: =item
25022 #: ../test-tool/libguestfs-test-tool.pod:56
25023 msgid "I<--qemudir qemu_source_dir>"
25024 msgstr ""
25025
25026 # type: textblock
25027 #: ../test-tool/libguestfs-test-tool.pod:58
25028 msgid ""
25029 "If you have compiled qemu from source, point this option at the source "
25030 "directory to try it."
25031 msgstr ""
25032
25033 # type: =item
25034 #: ../test-tool/libguestfs-test-tool.pod:61
25035 msgid "I<--timeout N>"
25036 msgstr ""
25037
25038 # type: textblock
25039 #: ../test-tool/libguestfs-test-tool.pod:63
25040 msgid ""
25041 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25042 "does not usually need to be adjusted unless your machine is very slow."
25043 msgstr ""
25044
25045 # type: =head1
25046 #: ../test-tool/libguestfs-test-tool.pod:69
25047 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25048 msgstr ""
25049
25050 # type: textblock
25051 #: ../test-tool/libguestfs-test-tool.pod:71
25052 msgid ""
25053 "If you have compiled another version of qemu from source and would like to "
25054 "try that, then you can use the I<--qemudir> option to point to the qemu "
25055 "source directory."
25056 msgstr ""
25057
25058 # type: textblock
25059 #: ../test-tool/libguestfs-test-tool.pod:75
25060 msgid ""
25061 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25062 "option to point to the binary."
25063 msgstr ""
25064
25065 # type: textblock
25066 #: ../test-tool/libguestfs-test-tool.pod:78
25067 msgid ""
25068 "When using an alternate qemu with libguestfs, usually you would need to "
25069 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
25070 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
25071 "when you use either of the I<--qemudir> or I<--qemu> options."
25072 msgstr ""
25073
25074 # type: textblock
25075 #: ../test-tool/libguestfs-test-tool.pod:85
25076 msgid ""
25077 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25078 "I<1> if there was an error."
25079 msgstr ""
25080
25081 # type: =item
25082 #: ../test-tool/libguestfs-test-tool.pod:92
25083 msgid "/usr/libexec/libguestfs-test-tool-helper"
25084 msgstr ""
25085
25086 # type: textblock
25087 #: ../test-tool/libguestfs-test-tool.pod:94
25088 msgid ""
25089 "This helper program is run inside the appliance and provides additional "
25090 "tests."
25091 msgstr ""
25092
25093 # type: =item
25094 #: ../test-tool/libguestfs-test-tool.pod:97
25095 msgid "/usr/bin/mkisofs"
25096 msgstr ""
25097
25098 # type: textblock
25099 #: ../test-tool/libguestfs-test-tool.pod:99
25100 msgid ""
25101 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25102 "which is used as part of the tests."
25103 msgstr ""
25104
25105 # type: textblock
25106 #: ../test-tool/libguestfs-test-tool.pod:106
25107 msgid ""
25108 "For the full list of environment variables which may affect libguestfs, "
25109 "please see the L<guestfs(3)> manual page."
25110 msgstr ""
25111
25112 # type: textblock
25113 #: ../test-tool/libguestfs-test-tool.pod:111
25114 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25115 msgstr ""
25116
25117 # type: textblock
25118 #: ../test-tool/libguestfs-test-tool.pod:121
25119 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25120 msgstr ""
25121
25122 # type: textblock
25123 #: ../fuse/guestmount.pod:5
25124 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25125 msgstr ""
25126
25127 # type: verbatim
25128 #: ../fuse/guestmount.pod:9
25129 #, no-wrap
25130 msgid ""
25131 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25132 "\n"
25133 msgstr ""
25134
25135 # type: verbatim
25136 #: ../fuse/guestmount.pod:11
25137 #, no-wrap
25138 msgid ""
25139 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25140 "\n"
25141 msgstr ""
25142
25143 # type: verbatim
25144 #: ../fuse/guestmount.pod:13
25145 #, no-wrap
25146 msgid ""
25147 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25148 "\n"
25149 msgstr ""
25150
25151 # type: textblock
25152 #: ../fuse/guestmount.pod:17
25153 msgid ""
25154 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25155 "machines.  If you do this, you risk disk corruption in the VM."
25156 msgstr ""
25157
25158 # type: textblock
25159 #: ../fuse/guestmount.pod:22
25160 msgid ""
25161 "The guestmount program can be used to mount virtual machine filesystems and "
25162 "other disk images on the host.  It uses libguestfs for access to the guest "
25163 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25164 "a mountable device."
25165 msgstr ""
25166
25167 # type: textblock
25168 #: ../fuse/guestmount.pod:27
25169 msgid ""
25170 "Along with other options, you have to give at least one device (I<-a> "
25171 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25172 "option) or use the I<-i> inspection option.  How this works is better "
25173 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25174 "below."
25175 msgstr ""
25176
25177 # type: textblock
25178 #: ../fuse/guestmount.pod:33
25179 msgid ""
25180 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25181 "by you, and the filesystem will not be visible to any other users unless you "
25182 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25183 "the filesystem, use the C<fusermount -u> command."
25184 msgstr ""
25185
25186 # type: textblock
25187 #: ../fuse/guestmount.pod:41
25188 msgid ""
25189 "For a typical Windows guest which has its main filesystem on the first "
25190 "partition:"
25191 msgstr ""
25192
25193 # type: verbatim
25194 #: ../fuse/guestmount.pod:44
25195 #, no-wrap
25196 msgid ""
25197 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25198 "\n"
25199 msgstr ""
25200
25201 # type: textblock
25202 #: ../fuse/guestmount.pod:46
25203 msgid ""
25204 "For a typical Linux guest which has a /boot filesystem on the first "
25205 "partition, and the root filesystem on a logical volume:"
25206 msgstr ""
25207
25208 # type: verbatim
25209 #: ../fuse/guestmount.pod:49
25210 #, no-wrap
25211 msgid ""
25212 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25213 "\n"
25214 msgstr ""
25215
25216 # type: textblock
25217 #: ../fuse/guestmount.pod:51
25218 msgid "To get libguestfs to detect guest mountpoints for you:"
25219 msgstr ""
25220
25221 # type: verbatim
25222 #: ../fuse/guestmount.pod:53
25223 #, no-wrap
25224 msgid ""
25225 " guestmount -a guest.img -i --ro /mnt\n"
25226 "\n"
25227 msgstr ""
25228
25229 # type: textblock
25230 #: ../fuse/guestmount.pod:55
25231 msgid "For a libvirt guest called \"Guest\" you could do:"
25232 msgstr ""
25233
25234 # type: verbatim
25235 #: ../fuse/guestmount.pod:57
25236 #, no-wrap
25237 msgid ""
25238 " guestmount -d Guest -i --ro /mnt\n"
25239 "\n"
25240 msgstr ""
25241
25242 # type: textblock
25243 #: ../fuse/guestmount.pod:59
25244 msgid ""
25245 "If you don't know what filesystems are contained in a guest or disk image, "
25246 "use L<virt-list-filesystems(1)> first:"
25247 msgstr ""
25248
25249 # type: verbatim
25250 #: ../fuse/guestmount.pod:62
25251 #, no-wrap
25252 msgid ""
25253 " virt-list-filesystems MyGuest\n"
25254 "\n"
25255 msgstr ""
25256
25257 # type: textblock
25258 #: ../fuse/guestmount.pod:64
25259 msgid ""
25260 "If you want to trace the libguestfs calls but without excessive debugging "
25261 "information, we recommend:"
25262 msgstr ""
25263
25264 # type: verbatim
25265 #: ../fuse/guestmount.pod:67
25266 #, no-wrap
25267 msgid ""
25268 " guestmount [...] --trace /mnt\n"
25269 "\n"
25270 msgstr ""
25271
25272 # type: textblock
25273 #: ../fuse/guestmount.pod:69
25274 msgid "If you want to debug the program, we recommend:"
25275 msgstr ""
25276
25277 # type: verbatim
25278 #: ../fuse/guestmount.pod:71
25279 #, no-wrap
25280 msgid ""
25281 " guestmount [...] --trace --verbose /mnt\n"
25282 "\n"
25283 msgstr ""
25284
25285 # type: textblock
25286 #: ../fuse/guestmount.pod:79
25287 msgid "Add a block device or virtual machine image."
25288 msgstr ""
25289
25290 # type: =item
25291 #: ../fuse/guestmount.pod:96
25292 msgid "B<--dir-cache-timeout N>"
25293 msgstr ""
25294
25295 # type: textblock
25296 #: ../fuse/guestmount.pod:98
25297 msgid ""
25298 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25299 "seconds.  The readdir cache [actually, there are several semi-independent "
25300 "caches] is populated after a readdir(2) call with the stat and extended "
25301 "attributes of the files in the directory, in anticipation that they will be "
25302 "requested soon after."
25303 msgstr ""
25304
25305 # type: textblock
25306 #: ../fuse/guestmount.pod:104
25307 msgid ""
25308 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25309 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25310 "requests, only cache existing ones."
25311 msgstr ""
25312
25313 # type: textblock
25314 #: ../fuse/guestmount.pod:122
25315 msgid ""
25316 "If you have untrusted raw-format guest disk images, you should use this "
25317 "option to specify the disk format.  This avoids a possible security problem "
25318 "with malicious guests (CVE-2010-3851).  See also "
25319 "L<guestfs(3)/guestfs_add_drive_opts>."
25320 msgstr ""
25321
25322 # type: =item
25323 #: ../fuse/guestmount.pod:127
25324 msgid "B<--fuse-help>"
25325 msgstr ""
25326
25327 # type: textblock
25328 #: ../fuse/guestmount.pod:129
25329 msgid "Display help on special FUSE options (see I<-o> below)."
25330 msgstr ""
25331
25332 # type: textblock
25333 #: ../fuse/guestmount.pod:133
25334 msgid "Display brief help and exit."
25335 msgstr ""
25336
25337 # type: =item
25338 #: ../fuse/guestmount.pod:146
25339 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25340 msgstr ""
25341
25342 # type: textblock
25343 #: ../fuse/guestmount.pod:148
25344 msgid ""
25345 "Mount the named partition or logical volume on the given mountpoint B<in the "
25346 "guest> (this has nothing to do with mountpoints in the host)."
25347 msgstr ""
25348
25349 # type: textblock
25350 #: ../fuse/guestmount.pod:151
25351 msgid ""
25352 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25353 "something on C</>."
25354 msgstr ""
25355
25356 # type: textblock
25357 #: ../fuse/guestmount.pod:156
25358 msgid ""
25359 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25360 "unmounted.  If you specify this option, then we don't attempt to sync the "
25361 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25362 msgstr ""
25363
25364 # type: =item
25365 #: ../fuse/guestmount.pod:161
25366 msgid "B<-o option> | B<--option option>"
25367 msgstr ""
25368
25369 # type: textblock
25370 #: ../fuse/guestmount.pod:163
25371 msgid "Pass extra options to FUSE."
25372 msgstr ""
25373
25374 # type: textblock
25375 #: ../fuse/guestmount.pod:165
25376 msgid ""
25377 "To get a list of all the extra options supported by FUSE, use the command "
25378 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25379 "of them are a good idea."
25380 msgstr ""
25381
25382 # type: verbatim
25383 #: ../fuse/guestmount.pod:169
25384 #, no-wrap
25385 msgid ""
25386 " guestmount --fuse-help\n"
25387 "\n"
25388 msgstr ""
25389
25390 # type: textblock
25391 #: ../fuse/guestmount.pod:171
25392 msgid "Some potentially useful FUSE options:"
25393 msgstr ""
25394
25395 # type: =item
25396 #: ../fuse/guestmount.pod:175
25397 msgid "B<-o allow_other>"
25398 msgstr ""
25399
25400 # type: textblock
25401 #: ../fuse/guestmount.pod:177
25402 msgid "Allow other users to see the filesystem."
25403 msgstr ""
25404
25405 # type: =item
25406 #: ../fuse/guestmount.pod:179
25407 msgid "B<-o attr_timeout=N>"
25408 msgstr ""
25409
25410 # type: textblock
25411 #: ../fuse/guestmount.pod:181
25412 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25413 msgstr ""
25414
25415 # type: =item
25416 #: ../fuse/guestmount.pod:183
25417 msgid "B<-o kernel_cache>"
25418 msgstr ""
25419
25420 # type: textblock
25421 #: ../fuse/guestmount.pod:185
25422 msgid ""
25423 "Allow the kernel to cache files (reduces the number of reads that have to go "
25424 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25425 "afford the extra memory usage."
25426 msgstr ""
25427
25428 # type: =item
25429 #: ../fuse/guestmount.pod:189
25430 msgid "B<-o uid=N> B<-o gid=N>"
25431 msgstr ""
25432
25433 # type: textblock
25434 #: ../fuse/guestmount.pod:191
25435 msgid ""
25436 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25437 "the chosen values."
25438 msgstr ""
25439
25440 # type: textblock
25441 #: ../fuse/guestmount.pod:198
25442 msgid ""
25443 "Add devices and mount everything read-only.  Also disallow writes and make "
25444 "the disk appear read-only to FUSE."
25445 msgstr ""
25446
25447 # type: textblock
25448 #: ../fuse/guestmount.pod:201
25449 msgid ""
25450 "This is highly recommended if you are not going to edit the guest disk.  If "
25451 "the guest is running and this option is I<not> supplied, then there is a "
25452 "strong risk of disk corruption in the guest.  We try to prevent this from "
25453 "happening, but it is not always possible."
25454 msgstr ""
25455
25456 # type: textblock
25457 #: ../fuse/guestmount.pod:206
25458 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25459 msgstr ""
25460
25461 # type: textblock
25462 #: ../fuse/guestmount.pod:210
25463 msgid "Enable SELinux support for the guest."
25464 msgstr ""
25465
25466 # type: textblock
25467 #: ../fuse/guestmount.pod:214
25468 msgid "Enable verbose messages from underlying libguestfs."
25469 msgstr ""
25470
25471 # type: textblock
25472 #: ../fuse/guestmount.pod:218
25473 msgid "Display the program version and exit."
25474 msgstr ""
25475
25476 # type: textblock
25477 #: ../fuse/guestmount.pod:222
25478 msgid ""
25479 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25480 "FOR READ AND WRITE>."
25481 msgstr ""
25482
25483 # type: =item
25484 #: ../fuse/guestmount.pod:225
25485 msgid "B<-x> | B<--trace>"
25486 msgstr ""
25487
25488 # type: textblock
25489 #: ../fuse/guestmount.pod:227
25490 msgid "Trace libguestfs calls."
25491 msgstr ""
25492
25493 # type: textblock
25494 #: ../fuse/guestmount.pod:229
25495 msgid "This also stops the daemon from forking into the background."
25496 msgstr ""
25497
25498 # type: textblock
25499 #: ../fuse/guestmount.pod:235
25500 msgid ""
25501 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25502 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
25503 "L<http://fuse.sf.net/>."
25504 msgstr ""
25505
25506 # type: textblock
25507 #: ../tools/virt-edit.pl:34
25508 msgid "virt-edit - Edit a file in a virtual machine"
25509 msgstr ""
25510
25511 # type: verbatim
25512 #: ../tools/virt-edit.pl:38
25513 #, no-wrap
25514 msgid ""
25515 " virt-edit [--options] domname file\n"
25516 "\n"
25517 msgstr ""
25518
25519 # type: verbatim
25520 #: ../tools/virt-edit.pl:40
25521 #, no-wrap
25522 msgid ""
25523 " virt-edit [--options] disk.img [disk.img ...] file\n"
25524 "\n"
25525 msgstr ""
25526
25527 # type: verbatim
25528 #: ../tools/virt-edit.pl:42
25529 #, no-wrap
25530 msgid ""
25531 " virt-edit [domname|disk.img] file -e 'expr'\n"
25532 "\n"
25533 msgstr ""
25534
25535 # type: textblock
25536 #: ../tools/virt-edit.pl:46
25537 msgid ""
25538 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25539 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25540 "doing this, but doesn't catch all cases."
25541 msgstr ""
25542
25543 # type: textblock
25544 #: ../tools/virt-edit.pl:52
25545 msgid ""
25546 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25547 "the named virtual machine (or disk image)."
25548 msgstr ""
25549
25550 # type: textblock
25551 #: ../tools/virt-edit.pl:55
25552 msgid ""
25553 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25554 "you should look at the L<guestfish(1)> tool."
25555 msgstr ""
25556
25557 # type: textblock
25558 #: ../tools/virt-edit.pl:60
25559 msgid "Edit the named files interactively:"
25560 msgstr ""
25561
25562 # type: verbatim
25563 #: ../tools/virt-edit.pl:62
25564 #, no-wrap
25565 msgid ""
25566 " virt-edit mydomain /boot/grub/grub.conf\n"
25567 "\n"
25568 msgstr ""
25569
25570 # type: verbatim
25571 #: ../tools/virt-edit.pl:64
25572 #, no-wrap
25573 msgid ""
25574 " virt-edit mydomain /etc/passwd\n"
25575 "\n"
25576 msgstr ""
25577
25578 # type: textblock
25579 #: ../tools/virt-edit.pl:66
25580 msgid ""
25581 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25582 "below).  To change the init default level to 5:"
25583 msgstr ""
25584
25585 # type: verbatim
25586 #: ../tools/virt-edit.pl:70
25587 #, no-wrap
25588 msgid ""
25589 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25590 "\n"
25591 msgstr ""
25592
25593 # type: textblock
25594 #: ../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-tar.pl:108 ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
25595 msgid "Display brief help."
25596 msgstr ""
25597
25598 # type: =item
25599 #: ../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-tar.pl:114 ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
25600 msgid "B<--version>"
25601 msgstr ""
25602
25603 # type: textblock
25604 #: ../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-tar.pl:116 ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
25605 msgid "Display version number and exit."
25606 msgstr ""
25607
25608 # type: =item
25609 #: ../tools/virt-edit.pl:96
25610 msgid "B<--backup extension> | B<-b extension>"
25611 msgstr ""
25612
25613 # type: textblock
25614 #: ../tools/virt-edit.pl:98
25615 msgid ""
25616 "Create a backup of the original file I<in the guest disk image>.  The backup "
25617 "has the original filename with C<extension> added."
25618 msgstr ""
25619
25620 # type: textblock
25621 #: ../tools/virt-edit.pl:101
25622 msgid ""
25623 "Usually the first character of C<extension> would be a dot C<.> so you would "
25624 "write:"
25625 msgstr ""
25626
25627 # type: verbatim
25628 #: ../tools/virt-edit.pl:104
25629 #, no-wrap
25630 msgid ""
25631 " virt-edit -b .orig [etc]\n"
25632 "\n"
25633 msgstr ""
25634
25635 # type: textblock
25636 #: ../tools/virt-edit.pl:106
25637 msgid "By default, no backup file is made."
25638 msgstr ""
25639
25640 # type: =item
25641 #: ../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-tar.pl:122 ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
25642 msgid "B<--connect URI> | B<-c URI>"
25643 msgstr ""
25644
25645 # type: textblock
25646 #: ../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-tar.pl:124 ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
25647 msgid ""
25648 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25649 "to the default libvirt hypervisor."
25650 msgstr ""
25651
25652 # type: textblock
25653 #: ../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-tar.pl:127 ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
25654 msgid ""
25655 "If you specify guest block devices directly, then libvirt is not used at "
25656 "all."
25657 msgstr ""
25658
25659 # type: =item
25660 #: ../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-tar.pl:134 ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
25661 msgid "B<--format> raw"
25662 msgstr ""
25663
25664 # type: textblock
25665 #: ../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-tar.pl:136 ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
25666 msgid ""
25667 "Specify the format of disk images given on the command line.  If this is "
25668 "omitted then the format is autodetected from the content of the disk image."
25669 msgstr ""
25670
25671 # type: textblock
25672 #: ../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-tar.pl:140 ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
25673 msgid ""
25674 "If disk images are requested from libvirt, then this program asks libvirt "
25675 "for this information.  In this case, the value of the format parameter is "
25676 "ignored."
25677 msgstr ""
25678
25679 # type: textblock
25680 #: ../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-tar.pl:144 ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
25681 msgid ""
25682 "If working with untrusted raw-format guest disk images, you should ensure "
25683 "the format is always specified."
25684 msgstr ""
25685
25686 # type: =item
25687 #: ../tools/virt-edit.pl:141
25688 msgid "B<--expr EXPR> | B<-e EXPR>"
25689 msgstr ""
25690
25691 # type: textblock
25692 #: ../tools/virt-edit.pl:143
25693 msgid ""
25694 "Instead of launching the external editor, non-interactively apply the Perl "
25695 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25696 "EDITING> below."
25697 msgstr ""
25698
25699 # type: textblock
25700 #: ../tools/virt-edit.pl:147
25701 msgid ""
25702 "Be careful to properly quote the expression to prevent it from being altered "
25703 "by the shell."
25704 msgstr ""
25705
25706 # type: =head1
25707 #: ../tools/virt-edit.pl:268
25708 msgid "NON-INTERACTIVE EDITING"
25709 msgstr ""
25710
25711 # type: textblock
25712 #: ../tools/virt-edit.pl:270
25713 msgid ""
25714 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25715 "administrator can interactively edit the file."
25716 msgstr ""
25717
25718 # type: textblock
25719 #: ../tools/virt-edit.pl:273
25720 msgid ""
25721 "There are two ways also to use C<virt-edit> from scripts in order to make "
25722 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25723 "like this, it's less error-prone to write scripts directly using the "
25724 "libguestfs API and Augeas for configuration file editing.)"
25725 msgstr ""
25726
25727 # type: textblock
25728 #: ../tools/virt-edit.pl:279
25729 msgid ""
25730 "The first method is to temporarily set C<$EDITOR> to any script or program "
25731 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25732 "update C<tmpfile> in place however it likes."
25733 msgstr ""
25734
25735 # type: textblock
25736 #: ../tools/virt-edit.pl:283
25737 msgid ""
25738 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25739 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25740 "instances of C<foo> with C<bar> in a file:"
25741 msgstr ""
25742
25743 # type: verbatim
25744 #: ../tools/virt-edit.pl:287
25745 #, no-wrap
25746 msgid ""
25747 " virt-edit domname filename -e 's/foo/bar/'\n"
25748 "\n"
25749 msgstr ""
25750
25751 # type: textblock
25752 #: ../tools/virt-edit.pl:289
25753 msgid ""
25754 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25755 "For example to delete root's password you could do:"
25756 msgstr ""
25757
25758 # type: verbatim
25759 #: ../tools/virt-edit.pl:292
25760 #, no-wrap
25761 msgid ""
25762 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25763 "\n"
25764 msgstr ""
25765
25766 # type: textblock
25767 #: ../tools/virt-edit.pl:294
25768 msgid ""
25769 "What really happens is that the snippet is evaluated as a Perl expression "
25770 "for each line of the file.  The line, including the final C<\\n>, is passed "
25771 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25772 msgstr ""
25773
25774 # type: textblock
25775 #: ../tools/virt-edit.pl:299
25776 msgid ""
25777 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25778 "C<apache> user account from the password file you can do:"
25779 msgstr ""
25780
25781 # type: verbatim
25782 #: ../tools/virt-edit.pl:302
25783 #, no-wrap
25784 msgid ""
25785 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25786 "\n"
25787 msgstr ""
25788
25789 # type: textblock
25790 #: ../tools/virt-edit.pl:304
25791 msgid ""
25792 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25793 "the end of the file is rather difficult this way since there is no concept "
25794 "of \"last line of the file\" - your expression just doesn't get called "
25795 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25796 "want to do this."
25797 msgstr ""
25798
25799 # type: textblock
25800 #: ../tools/virt-edit.pl:310
25801 msgid ""
25802 "The variable C<$lineno> contains the current line number.  As is "
25803 "traditional, the first line in the file is number C<1>."
25804 msgstr ""
25805
25806 # type: textblock
25807 #: ../tools/virt-edit.pl:313
25808 msgid ""
25809 "The return value from the expression is ignored, but the expression may call "
25810 "C<die> in order to abort the whole program, leaving the original file "
25811 "untouched."
25812 msgstr ""
25813
25814 # type: textblock
25815 #: ../tools/virt-edit.pl:317
25816 msgid ""
25817 "Remember when matching the end of a line that C<$_> may contain the final "
25818 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25819 "newline then neither of these.  Thus to match or substitute some text at the "
25820 "end of a line, use this regular expression:"
25821 msgstr ""
25822
25823 # type: verbatim
25824 #: ../tools/virt-edit.pl:322
25825 #, no-wrap
25826 msgid ""
25827 " /some text(\\r?\\n)?$/\n"
25828 "\n"
25829 msgstr ""
25830
25831 # type: textblock
25832 #: ../tools/virt-edit.pl:324
25833 msgid ""
25834 "Alternately, use the perl C<chomp> function, being careful not to chomp "
25835 "C<$_> itself (since that would remove all newlines from the file):"
25836 msgstr ""
25837
25838 # type: verbatim
25839 #: ../tools/virt-edit.pl:328
25840 #, no-wrap
25841 msgid ""
25842 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25843 "\n"
25844 msgstr ""
25845
25846 # type: =item
25847 #: ../tools/virt-edit.pl:334
25848 msgid "C<EDITOR>"
25849 msgstr ""
25850
25851 # type: textblock
25852 #: ../tools/virt-edit.pl:336
25853 msgid ""
25854 "If set, this string is used as the editor.  It may contain arguments, "
25855 "eg. C<\"emacs -nw\">"
25856 msgstr ""
25857
25858 # type: textblock
25859 #: ../tools/virt-edit.pl:339
25860 msgid "If not set, C<vi> is used."
25861 msgstr ""
25862
25863 # type: =head1
25864 #: ../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-tar.pl:274 ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:247
25865 msgid "SHELL QUOTING"
25866 msgstr ""
25867
25868 # type: textblock
25869 #: ../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-tar.pl:276 ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
25870 msgid ""
25871 "Libvirt guest names can contain arbitrary characters, some of which have "
25872 "meaning to the shell such as C<#> and space.  You may need to quote or "
25873 "escape these characters on the command line.  See the shell manual page "
25874 "L<sh(1)> for details."
25875 msgstr ""
25876
25877 # type: textblock
25878 #: ../tools/virt-edit.pl:352
25879 msgid ""
25880 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25881 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
25882 "L<perl(1)>, L<perlre(1)>."
25883 msgstr ""
25884
25885 # type: =head1
25886 #: ../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-tar.pl:292 ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
25887 msgid "AUTHOR"
25888 msgstr ""
25889
25890 # type: textblock
25891 #: ../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-tar.pl:294 ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
25892 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25893 msgstr ""
25894
25895 # type: textblock
25896 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655 ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
25897 msgid "Copyright (C) 2009-2010 Red Hat Inc."
25898 msgstr ""
25899
25900 # type: textblock
25901 #: ../tools/virt-win-reg.pl:37
25902 msgid ""
25903 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
25904 "guest"
25905 msgstr ""
25906
25907 # type: verbatim
25908 #: ../tools/virt-win-reg.pl:41
25909 #, no-wrap
25910 msgid ""
25911 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25912 "\n"
25913 msgstr ""
25914
25915 # type: verbatim
25916 #: ../tools/virt-win-reg.pl:43
25917 #, no-wrap
25918 msgid ""
25919 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25920 "\n"
25921 msgstr ""
25922
25923 # type: verbatim
25924 #: ../tools/virt-win-reg.pl:45
25925 #, no-wrap
25926 msgid ""
25927 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25928 "\n"
25929 msgstr ""
25930
25931 # type: verbatim
25932 #: ../tools/virt-win-reg.pl:47
25933 #, no-wrap
25934 msgid ""
25935 " virt-win-reg --merge domname [input.reg ...]\n"
25936 "\n"
25937 msgstr ""
25938
25939 # type: verbatim
25940 #: ../tools/virt-win-reg.pl:49
25941 #, no-wrap
25942 msgid ""
25943 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25944 "\n"
25945 msgstr ""
25946
25947 # type: textblock
25948 #: ../tools/virt-win-reg.pl:53
25949 msgid ""
25950 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25951 "virtual machines.  If you do this, you I<will> get irreversible disk "
25952 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25953 "but doesn't catch all cases."
25954 msgstr ""
25955
25956 # type: textblock
25957 #: ../tools/virt-win-reg.pl:58
25958 msgid ""
25959 "Modifying the Windows Registry is an inherently risky operation.  The format "
25960 "is deliberately obscure and undocumented, and Registry changes can leave the "
25961 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25962 "you have a reliable backup first."
25963 msgstr ""
25964
25965 # type: textblock
25966 #: ../tools/virt-win-reg.pl:65
25967 msgid ""
25968 "This program can export and merge Windows Registry entries from a Windows "
25969 "guest."
25970 msgstr ""
25971
25972 # type: textblock
25973 #: ../tools/virt-win-reg.pl:68
25974 msgid ""
25975 "The first parameter is the libvirt guest name or the raw disk image of a "
25976 "Windows guest."
25977 msgstr ""
25978
25979 # type: textblock
25980 #: ../tools/virt-win-reg.pl:71
25981 msgid ""
25982 "If C<--merge> is I<not> specified, then the chosen registry key is "
25983 "displayed/exported (recursively).  For example:"
25984 msgstr ""
25985
25986 # type: verbatim
25987 #: ../tools/virt-win-reg.pl:74
25988 #, no-wrap
25989 msgid ""
25990 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25991 "\n"
25992 msgstr ""
25993
25994 # type: textblock
25995 #: ../tools/virt-win-reg.pl:76
25996 msgid "You can also display single values from within registry keys, for example:"
25997 msgstr ""
25998
25999 # type: verbatim
26000 #: ../tools/virt-win-reg.pl:79
26001 #, no-wrap
26002 msgid ""
26003 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26004 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26005 " Windows 7 Enterprise\n"
26006 "\n"
26007 msgstr ""
26008
26009 # type: textblock
26010 #: ../tools/virt-win-reg.pl:83
26011 msgid ""
26012 "With C<--merge>, you can merge a textual regedit file into the Windows "
26013 "Registry:"
26014 msgstr ""
26015
26016 # type: verbatim
26017 #: ../tools/virt-win-reg.pl:86
26018 #, no-wrap
26019 msgid ""
26020 " $ virt-win-reg --merge Windows7 changes.reg\n"
26021 "\n"
26022 msgstr ""
26023
26024 # type: =head2
26025 #: ../tools/virt-win-reg.pl:88
26026 msgid "SUPPORTED SYSTEMS"
26027 msgstr ""
26028
26029 # type: textblock
26030 #: ../tools/virt-win-reg.pl:90
26031 msgid ""
26032 "The program currently supports Windows NT-derived guests starting with "
26033 "Windows XP through to at least Windows 7."
26034 msgstr ""
26035
26036 # type: textblock
26037 #: ../tools/virt-win-reg.pl:93
26038 msgid ""
26039 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
26040 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
26041 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
26042 msgstr ""
26043
26044 # type: textblock
26045 #: ../tools/virt-win-reg.pl:97
26046 msgid ""
26047 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26048 "C<HKEY_USERS>."
26049 msgstr ""
26050
26051 # type: textblock
26052 #: ../tools/virt-win-reg.pl:100
26053 msgid ""
26054 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26055 "time."
26056 msgstr ""
26057
26058 # type: =head2
26059 #: ../tools/virt-win-reg.pl:103
26060 msgid "NOTE"
26061 msgstr ""
26062
26063 # type: textblock
26064 #: ../tools/virt-win-reg.pl:105
26065 msgid ""
26066 "This program is only meant for simple access to the registry.  If you want "
26067 "to do complicated things with the registry, we suggest you download the "
26068 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26069 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26070 "L<hivexregedit(1)>."
26071 msgstr ""
26072
26073 # type: =head2
26074 #: ../tools/virt-win-reg.pl:111
26075 msgid "ENCODING"
26076 msgstr ""
26077
26078 # type: textblock
26079 #: ../tools/virt-win-reg.pl:113
26080 msgid ""
26081 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26082 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
26083 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
26084 "with Windows-style line endings, you may need to reencode the whole file "
26085 "before or after processing."
26086 msgstr ""
26087
26088 # type: textblock
26089 #: ../tools/virt-win-reg.pl:119
26090 msgid ""
26091 "To reencode a file from Windows format to Linux (before processing it with "
26092 "the C<--merge> option), you would do something like this:"
26093 msgstr ""
26094
26095 # type: verbatim
26096 #: ../tools/virt-win-reg.pl:122
26097 #, no-wrap
26098 msgid ""
26099 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26100 "\n"
26101 msgstr ""
26102
26103 # type: textblock
26104 #: ../tools/virt-win-reg.pl:124
26105 msgid ""
26106 "To go in the opposite direction, after exporting and before sending the file "
26107 "to a Windows user, do something like this:"
26108 msgstr ""
26109
26110 # type: verbatim
26111 #: ../tools/virt-win-reg.pl:127
26112 #, no-wrap
26113 msgid ""
26114 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26115 "\n"
26116 msgstr ""
26117
26118 # type: textblock
26119 #: ../tools/virt-win-reg.pl:129
26120 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26121 msgstr ""
26122
26123 # type: textblock
26124 #: ../tools/virt-win-reg.pl:131
26125 msgid ""
26126 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26127 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
26128 "Windows-style (CRLF) line endings, like this:"
26129 msgstr ""
26130
26131 # type: verbatim
26132 #: ../tools/virt-win-reg.pl:135
26133 #, no-wrap
26134 msgid ""
26135 " $ file software.reg\n"
26136 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26137 " with CRLF line terminators\n"
26138 "\n"
26139 msgstr ""
26140
26141 # type: textblock
26142 #: ../tools/virt-win-reg.pl:139
26143 msgid "This file would need conversion before you could C<--merge> it."
26144 msgstr ""
26145
26146 # type: textblock
26147 #: ../tools/virt-win-reg.pl:143
26148 msgid ""
26149 "Be careful when passing parameters containing C<\\> (backslash) in the "
26150 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26151 "(but not both) to protect them from the shell."
26152 msgstr ""
26153
26154 # type: textblock
26155 #: ../tools/virt-win-reg.pl:147
26156 msgid "Paths and value names are case-insensitive."
26157 msgstr ""
26158
26159 # type: =head2
26160 #: ../tools/virt-win-reg.pl:149
26161 msgid "CurrentControlSet etc."
26162 msgstr ""
26163
26164 # type: textblock
26165 #: ../tools/virt-win-reg.pl:151
26166 msgid ""
26167 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26168 "Registry at the level of the hive file, and therefore you cannot modify "
26169 "these."
26170 msgstr ""
26171
26172 # type: textblock
26173 #: ../tools/virt-win-reg.pl:155
26174 msgid ""
26175 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26176 "circumstances it might refer to another control set.  The way to find out is "
26177 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26178 msgstr ""
26179
26180 # type: verbatim
26181 #: ../tools/virt-win-reg.pl:159
26182 #, no-wrap
26183 msgid ""
26184 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26185 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26186 " \"Current\"=dword:00000001\n"
26187 " \"Default\"=dword:00000001\n"
26188 " \"Failed\"=dword:00000000\n"
26189 " \"LastKnownGood\"=dword:00000002\n"
26190 "\n"
26191 msgstr ""
26192
26193 # type: textblock
26194 #: ../tools/virt-win-reg.pl:166
26195 msgid "\"Current\" is the one which Windows will choose when it boots."
26196 msgstr ""
26197
26198 # type: textblock
26199 #: ../tools/virt-win-reg.pl:168
26200 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
26201 msgstr ""
26202
26203 # type: =item
26204 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26205 msgid "B<--debug>"
26206 msgstr ""
26207
26208 # type: textblock
26209 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
26210 msgid "Enable debugging messages."
26211 msgstr ""
26212
26213 # type: =item
26214 #: ../tools/virt-win-reg.pl:232
26215 msgid "B<--merge>"
26216 msgstr ""
26217
26218 # type: textblock
26219 #: ../tools/virt-win-reg.pl:234
26220 msgid ""
26221 "In merge mode, this merges a textual regedit file into the Windows Registry "
26222 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26223 "displays or exports Registry entries instead."
26224 msgstr ""
26225
26226 # type: textblock
26227 #: ../tools/virt-win-reg.pl:238
26228 msgid ""
26229 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26230 "result in disk corruption.  However exporting (without this flag)  is always "
26231 "safe."
26232 msgstr ""
26233
26234 # type: =item
26235 #: ../tools/virt-win-reg.pl:246
26236 msgid "B<--encoding> UTF-16LE|ASCII"
26237 msgstr ""
26238
26239 # type: textblock
26240 #: ../tools/virt-win-reg.pl:248
26241 msgid ""
26242 "When merging (only), you may need to specify the encoding for strings to be "
26243 "used in the hive file.  This is explained in detail in "
26244 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
26245 msgstr ""
26246
26247 # type: textblock
26248 #: ../tools/virt-win-reg.pl:252
26249 msgid ""
26250 "The default is to use UTF-16LE, which should work with recent versions of "
26251 "Windows."
26252 msgstr ""
26253
26254 # type: textblock
26255 #: ../tools/virt-win-reg.pl:486
26256 msgid ""
26257 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
26258 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26259 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
26260 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26261 msgstr ""
26262
26263 # type: textblock
26264 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26265 msgid ""
26266 "When reporting bugs, please enable debugging and capture the I<complete> "
26267 "output:"
26268 msgstr ""
26269
26270 # type: verbatim
26271 #: ../tools/virt-win-reg.pl:504
26272 #, no-wrap
26273 msgid ""
26274 " export LIBGUESTFS_DEBUG=1\n"
26275 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26276 "\n"
26277 msgstr ""
26278
26279 # type: textblock
26280 #: ../tools/virt-win-reg.pl:507
26281 msgid ""
26282 "Attach /tmp/virt-win-reg.log to a new bug report at "
26283 "L<https://bugzilla.redhat.com/>"
26284 msgstr ""
26285
26286 # type: textblock
26287 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
26288 msgid "Copyright (C) 2010 Red Hat Inc."
26289 msgstr ""
26290
26291 # type: textblock
26292 #: ../tools/virt-df.pl:36
26293 msgid "virt-df - Display free space on virtual filesystems"
26294 msgstr ""
26295
26296 # type: verbatim
26297 #: ../tools/virt-df.pl:40
26298 #, no-wrap
26299 msgid ""
26300 " virt-df [--options]\n"
26301 "\n"
26302 msgstr ""
26303
26304 # type: verbatim
26305 #: ../tools/virt-df.pl:42
26306 #, no-wrap
26307 msgid ""
26308 " virt-df [--options] domname\n"
26309 "\n"
26310 msgstr ""
26311
26312 # type: verbatim
26313 #: ../tools/virt-df.pl:44
26314 #, no-wrap
26315 msgid ""
26316 " virt-df [--options] disk.img [disk.img ...]\n"
26317 "\n"
26318 msgstr ""
26319
26320 # type: textblock
26321 #: ../tools/virt-df.pl:48
26322 msgid ""
26323 "C<virt-df> is a command line tool to display free space on virtual machine "
26324 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26325 "space allocated to a virtual machine, but can look inside the virtual "
26326 "machine to see how much space is really being used."
26327 msgstr ""
26328
26329 # type: textblock
26330 #: ../tools/virt-df.pl:53
26331 msgid ""
26332 "It is like the L<df(1)> command, but for virtual machines, except that it "
26333 "also works for Windows virtual machines."
26334 msgstr ""
26335
26336 # type: textblock
26337 #: ../tools/virt-df.pl:56
26338 msgid ""
26339 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26340 "of all active and inactive guests, and performs a C<df>-type operation on "
26341 "each one in turn, printing out the results."
26342 msgstr ""
26343
26344 # type: textblock
26345 #: ../tools/virt-df.pl:60
26346 msgid ""
26347 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26348 "either the single named libvirt domain, or on the disk image(s) listed on "
26349 "the command line (which must all belong to a single VM).  In this mode (with "
26350 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26351 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26352 msgstr ""
26353
26354 # type: textblock
26355 #: ../tools/virt-df.pl:67
26356 msgid ""
26357 "Use the C<--csv> option to get a format which can be easily parsed by other "
26358 "programs.  Other options are mostly similar to standard C<df> options.  See "
26359 "below for the complete list."
26360 msgstr ""
26361
26362 # type: =item
26363 #: ../tools/virt-df.pl:107
26364 msgid "B<--csv>"
26365 msgstr ""
26366
26367 # type: textblock
26368 #: ../tools/virt-df.pl:109
26369 msgid ""
26370 "Write out the results in CSV format (comma-separated values).  This format "
26371 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26372 "ABOUT CSV FORMAT> below."
26373 msgstr ""
26374
26375 # type: =item
26376 #: ../tools/virt-df.pl:134
26377 msgid "B<--human-readable> | B<-h>"
26378 msgstr ""
26379
26380 # type: textblock
26381 #: ../tools/virt-df.pl:136
26382 msgid "Print sizes in human-readable format."
26383 msgstr ""
26384
26385 # type: textblock
26386 #: ../tools/virt-df.pl:138
26387 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26388 msgstr ""
26389
26390 # type: =item
26391 #: ../tools/virt-df.pl:144
26392 msgid "B<--inodes> | B<-i>"
26393 msgstr ""
26394
26395 # type: textblock
26396 #: ../tools/virt-df.pl:146
26397 msgid "Print inodes instead of blocks."
26398 msgstr ""
26399
26400 # type: =item
26401 #: ../tools/virt-df.pl:152
26402 msgid "B<--one-per-guest>"
26403 msgstr ""
26404
26405 # type: textblock
26406 #: ../tools/virt-df.pl:154
26407 msgid ""
26408 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
26409 "disks from several guests to a single libguestfs appliance."
26410 msgstr ""
26411
26412 # type: textblock
26413 #: ../tools/virt-df.pl:157
26414 msgid "You might use this option in the following circumstances:"
26415 msgstr ""
26416
26417 # type: textblock
26418 #: ../tools/virt-df.pl:163
26419 msgid ""
26420 "If you think an untrusted guest might actively try to exploit the libguestfs "
26421 "appliance kernel, then this prevents one guest from interfering with the "
26422 "stats printed for another guest."
26423 msgstr ""
26424
26425 # type: textblock
26426 #: ../tools/virt-df.pl:169
26427 msgid ""
26428 "If the kernel has a bug which stops it from accessing a filesystem in one "
26429 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
26430 "and report stats for further guests."
26431 msgstr ""
26432
26433 # type: =item
26434 #: ../tools/virt-df.pl:180
26435 msgid "B<--uuid>"
26436 msgstr ""
26437
26438 # type: textblock
26439 #: ../tools/virt-df.pl:182
26440 msgid ""
26441 "Print UUIDs instead of names.  This is useful for following a guest even "
26442 "when the guest is migrated or renamed, or when two guests happen to have the "
26443 "same name."
26444 msgstr ""
26445
26446 # type: textblock
26447 #: ../tools/virt-df.pl:186
26448 msgid ""
26449 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
26450 "images, we still print the disk image name even when this option is "
26451 "specified."
26452 msgstr ""
26453
26454 # type: =head1
26455 #: ../tools/virt-df.pl:609
26456 msgid "NOTE ABOUT CSV FORMAT"
26457 msgstr ""
26458
26459 # type: textblock
26460 #: ../tools/virt-df.pl:611
26461 msgid ""
26462 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
26463 "should be easy to parse, but it is definitely not easy to parse."
26464 msgstr ""
26465
26466 # type: textblock
26467 #: ../tools/virt-df.pl:614
26468 msgid ""
26469 "Myth: Just split fields at commas.  Reality: This does I<not> work "
26470 "reliably.  This example has two columns:"
26471 msgstr ""
26472
26473 # type: verbatim
26474 #: ../tools/virt-df.pl:617
26475 #, no-wrap
26476 msgid ""
26477 " \"foo,bar\",baz\n"
26478 "\n"
26479 msgstr ""
26480
26481 # type: textblock
26482 #: ../tools/virt-df.pl:619
26483 msgid ""
26484 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
26485 "reliably.  This example has one row:"
26486 msgstr ""
26487
26488 # type: verbatim
26489 #: ../tools/virt-df.pl:622
26490 #, no-wrap
26491 msgid ""
26492 " \"foo\n"
26493 " bar\",baz\n"
26494 "\n"
26495 msgstr ""
26496
26497 # type: textblock
26498 #: ../tools/virt-df.pl:625
26499 msgid ""
26500 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
26501 "packaged in major Linux distributions)."
26502 msgstr ""
26503
26504 # type: textblock
26505 #: ../tools/virt-df.pl:628
26506 msgid ""
26507 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
26508 "or Python's built-in csv library)."
26509 msgstr ""
26510
26511 # type: textblock
26512 #: ../tools/virt-df.pl:631
26513 msgid "Most spreadsheets and databases can import CSV directly."
26514 msgstr ""
26515
26516 # type: textblock
26517 #: ../tools/virt-df.pl:642
26518 msgid ""
26519 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26520 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26521 msgstr ""
26522
26523 # type: textblock
26524 #: ../tools/virt-ls.pl:34
26525 msgid "virt-ls - List files in a virtual machine"
26526 msgstr ""
26527
26528 # type: verbatim
26529 #: ../tools/virt-ls.pl:38
26530 #, no-wrap
26531 msgid ""
26532 " virt-ls [--options] domname directory\n"
26533 "\n"
26534 msgstr ""
26535
26536 # type: verbatim
26537 #: ../tools/virt-ls.pl:40
26538 #, no-wrap
26539 msgid ""
26540 " virt-ls [--options] disk.img [disk.img ...] directory\n"
26541 "\n"
26542 msgstr ""
26543
26544 # type: textblock
26545 #: ../tools/virt-ls.pl:44
26546 msgid ""
26547 "C<virt-ls> is a command line tool to list the names of files in a directory "
26548 "inside a virtual machine or disk image."
26549 msgstr ""
26550
26551 # type: textblock
26552 #: ../tools/virt-ls.pl:47
26553 msgid ""
26554 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
26555 "For more complex cases you should look at the L<guestfish(1)> tool."
26556 msgstr ""
26557
26558 # type: textblock
26559 #: ../tools/virt-ls.pl:51
26560 msgid ""
26561 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
26562 "simple listing is like the ordinary L<ls(1)> command:"
26563 msgstr ""
26564
26565 # type: verbatim
26566 #: ../tools/virt-ls.pl:54
26567 #, no-wrap
26568 msgid ""
26569 " $ virt-ls myguest /\n"
26570 " bin\n"
26571 " boot\n"
26572 " [etc.]\n"
26573 "\n"
26574 msgstr ""
26575
26576 # type: textblock
26577 #: ../tools/virt-ls.pl:59
26578 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
26579 msgstr ""
26580
26581 # type: verbatim
26582 #: ../tools/virt-ls.pl:61
26583 #, no-wrap
26584 msgid ""
26585 " $ virt-ls -l myguest /\n"
26586 " total 204\n"
26587 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
26588 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
26589 " [etc.]\n"
26590 "\n"
26591 msgstr ""
26592
26593 # type: textblock
26594 #: ../tools/virt-ls.pl:67
26595 msgid ""
26596 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
26597 "and directories recursively:"
26598 msgstr ""
26599
26600 # type: verbatim
26601 #: ../tools/virt-ls.pl:70
26602 #, no-wrap
26603 msgid ""
26604 " $ virt-ls -R myguest /tmp\n"
26605 " foo\n"
26606 " foo/bar\n"
26607 " [etc.]\n"
26608 "\n"
26609 msgstr ""
26610
26611 # type: textblock
26612 #: ../tools/virt-ls.pl:75
26613 msgid ""
26614 "You I<cannot> combine these options.  To do more complicated things, use "
26615 "L<guestfish(1)>."
26616 msgstr ""
26617
26618 # type: =item
26619 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103 ../tools/virt-list-partitions.pl:112
26620 msgid "B<-l> | B<--long>"
26621 msgstr ""
26622
26623 # type: =item
26624 #: ../tools/virt-ls.pl:133
26625 msgid "B<-R> | B<--recursive>"
26626 msgstr ""
26627
26628 # type: textblock
26629 #: ../tools/virt-ls.pl:135
26630 msgid ""
26631 "Select the mode.  With neither of these options, C<virt-ls> produces a "
26632 "simple, flat list of the files in the named directory."
26633 msgstr ""
26634
26635 # type: textblock
26636 #: ../tools/virt-ls.pl:138
26637 msgid ""
26638 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26639 "like the plain C<ls -l> command)."
26640 msgstr ""
26641
26642 # type: textblock
26643 #: ../tools/virt-ls.pl:141
26644 msgid ""
26645 "C<virt-ls -R> produces a recursive list of files starting at the named "
26646 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26647 "details."
26648 msgstr ""
26649
26650 # type: textblock
26651 #: ../tools/virt-ls.pl:145
26652 msgid "You cannot combine these options."
26653 msgstr ""
26654
26655 # type: textblock
26656 #: ../tools/virt-ls.pl:234
26657 msgid ""
26658 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
26659 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
26660 "L<http://libguestfs.org/>."
26661 msgstr ""
26662
26663 # type: textblock
26664 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:298
26665 msgid "Copyright (C) 2009 Red Hat Inc."
26666 msgstr ""
26667
26668 # type: textblock
26669 #: ../tools/virt-resize.pl:42
26670 msgid "virt-resize - Resize a virtual machine disk"
26671 msgstr ""
26672
26673 # type: verbatim
26674 #: ../tools/virt-resize.pl:46
26675 #, no-wrap
26676 msgid ""
26677 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26678 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26679 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26680 "\n"
26681 msgstr ""
26682
26683 # type: textblock
26684 #: ../tools/virt-resize.pl:52
26685 msgid ""
26686 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26687 "larger or smaller overall, and resizing or deleting any partitions contained "
26688 "within."
26689 msgstr ""
26690
26691 # type: textblock
26692 #: ../tools/virt-resize.pl:56
26693 msgid ""
26694 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26695 "not> be used on live virtual machines - for consistent results, shut the "
26696 "virtual machine down before resizing it."
26697 msgstr ""
26698
26699 # type: textblock
26700 #: ../tools/virt-resize.pl:60
26701 msgid ""
26702 "If you are not familiar with the associated tools: "
26703 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
26704 "we recommend you go and read those manual pages first."
26705 msgstr ""
26706
26707 # type: textblock
26708 #: ../tools/virt-resize.pl:68
26709 msgid ""
26710 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26711 "fill the extra 5GB of space."
26712 msgstr ""
26713
26714 # type: verbatim
26715 #: ../tools/virt-resize.pl:71
26716 #, no-wrap
26717 msgid ""
26718 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26719 " virt-list-partitions -lht olddisk\n"
26720 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26721 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26722 "\n"
26723 msgstr ""
26724
26725 # type: textblock
26726 #: ../tools/virt-resize.pl:76
26727 msgid ""
26728 "As above, but make the /boot partition 200MB bigger, while giving the "
26729 "remaining space to /dev/sda2:"
26730 msgstr ""
26731
26732 # type: verbatim
26733 #: ../tools/virt-resize.pl:79
26734 #, no-wrap
26735 msgid ""
26736 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26737 "\n"
26738 msgstr ""
26739
26740 # type: textblock
26741 #: ../tools/virt-resize.pl:81
26742 msgid "As above, but the output format will be uncompressed qcow2:"
26743 msgstr ""
26744
26745 # type: verbatim
26746 #: ../tools/virt-resize.pl:83
26747 #, no-wrap
26748 msgid ""
26749 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26750 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26751 "\n"
26752 msgstr ""
26753
26754 # type: =head1
26755 #: ../tools/virt-resize.pl:86
26756 msgid "DETAILED USAGE"
26757 msgstr ""
26758
26759 # type: =head2
26760 #: ../tools/virt-resize.pl:88
26761 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26762 msgstr ""
26763
26764 # type: =item
26765 #: ../tools/virt-resize.pl:92
26766 msgid "1. Shut down the virtual machine"
26767 msgstr ""
26768
26769 # type: =item
26770 #: ../tools/virt-resize.pl:94
26771 msgid "2. Locate input disk image"
26772 msgstr ""
26773
26774 # type: textblock
26775 #: ../tools/virt-resize.pl:96
26776 msgid ""
26777 "Locate the input disk image (ie. the file or device on the host containing "
26778 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26779 "dumpxml> like this to find the disk image name:"
26780 msgstr ""
26781
26782 # type: verbatim
26783 #: ../tools/virt-resize.pl:100
26784 #, no-wrap
26785 msgid ""
26786 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26787 " Found 1 nodes:\n"
26788 " -- NODE --\n"
26789 " <source dev=\"/dev/vg/lv_guest\" />\n"
26790 "\n"
26791 msgstr ""
26792
26793 # type: =item
26794 #: ../tools/virt-resize.pl:105
26795 msgid "3. Look at current sizing"
26796 msgstr ""
26797
26798 # type: textblock
26799 #: ../tools/virt-resize.pl:107
26800 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
26801 msgstr ""
26802
26803 # type: verbatim
26804 #: ../tools/virt-resize.pl:110
26805 #, no-wrap
26806 msgid ""
26807 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
26808 " /dev/sda1 ext3 101.9M\n"
26809 " /dev/sda2 pv 7.9G\n"
26810 " /dev/sda device 8.0G\n"
26811 "\n"
26812 msgstr ""
26813
26814 # type: textblock
26815 #: ../tools/virt-resize.pl:115
26816 msgid ""
26817 "(This example is a virtual machine with an 8 GB disk which we would like to "
26818 "expand up to 10 GB)."
26819 msgstr ""
26820
26821 # type: =item
26822 #: ../tools/virt-resize.pl:118
26823 msgid "4. Create output disk"
26824 msgstr ""
26825
26826 # type: textblock
26827 #: ../tools/virt-resize.pl:120
26828 msgid ""
26829 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26830 "to store the resized output disk."
26831 msgstr ""
26832
26833 # type: textblock
26834 #: ../tools/virt-resize.pl:123
26835 msgid "To store the resized disk image in a file, create a file of a suitable size:"
26836 msgstr ""
26837
26838 # type: verbatim
26839 #: ../tools/virt-resize.pl:126
26840 #, no-wrap
26841 msgid ""
26842 " # rm -f outdisk\n"
26843 " # truncate -s 10G outdisk\n"
26844 "\n"
26845 msgstr ""
26846
26847 # type: textblock
26848 #: ../tools/virt-resize.pl:129
26849 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26850 msgstr ""
26851
26852 # type: verbatim
26853 #: ../tools/virt-resize.pl:131
26854 #, no-wrap
26855 msgid ""
26856 " # lvcreate -L 10G -n lv_name vg_name\n"
26857 "\n"
26858 msgstr ""
26859
26860 # type: textblock
26861 #: ../tools/virt-resize.pl:133
26862 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26863 msgstr ""
26864
26865 # type: verbatim
26866 #: ../tools/virt-resize.pl:135
26867 #, no-wrap
26868 msgid ""
26869 " # virsh pool-list\n"
26870 " # virsh vol-create-as poolname newvol 10G\n"
26871 "\n"
26872 msgstr ""
26873
26874 # type: =item
26875 #: ../tools/virt-resize.pl:138
26876 msgid "5. Resize"
26877 msgstr ""
26878
26879 # type: textblock
26880 #: ../tools/virt-resize.pl:140
26881 msgid ""
26882 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26883 "file) and the output disk.  The output disk is the one created in the "
26884 "previous step."
26885 msgstr ""
26886
26887 # type: verbatim
26888 #: ../tools/virt-resize.pl:144
26889 #, no-wrap
26890 msgid ""
26891 " # virt-resize indisk outdisk\n"
26892 "\n"
26893 msgstr ""
26894
26895 # type: textblock
26896 #: ../tools/virt-resize.pl:146
26897 msgid ""
26898 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26899 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26900 "larger, then an extra, empty partition is created at the end of the disk "
26901 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26902 "error."
26903 msgstr ""
26904
26905 # type: textblock
26906 #: ../tools/virt-resize.pl:152
26907 msgid ""
26908 "More realistically you'd want to expand existing partitions in the disk "
26909 "image by passing extra options (for the full list see the L</OPTIONS> "
26910 "section below)."
26911 msgstr ""
26912
26913 # type: textblock
26914 #: ../tools/virt-resize.pl:156
26915 msgid ""
26916 "L</--expand> is the most useful option.  It expands the named partition "
26917 "within the disk to fill any extra space:"
26918 msgstr ""
26919
26920 # type: verbatim
26921 #: ../tools/virt-resize.pl:159
26922 #, no-wrap
26923 msgid ""
26924 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26925 "\n"
26926 msgstr ""
26927
26928 # type: textblock
26929 #: ../tools/virt-resize.pl:161
26930 msgid ""
26931 "(In this case, an extra partition is I<not> created at the end of the disk, "
26932 "because there will be no unused space)."
26933 msgstr ""
26934
26935 # type: textblock
26936 #: ../tools/virt-resize.pl:164
26937 msgid ""
26938 "L</--resize> is the other commonly used option.  The following would "
26939 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26940 "rest of the available space:"
26941 msgstr ""
26942
26943 # type: verbatim
26944 #: ../tools/virt-resize.pl:168
26945 #, no-wrap
26946 msgid ""
26947 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26948 "     indisk outdisk\n"
26949 "\n"
26950 msgstr ""
26951
26952 # type: textblock
26953 #: ../tools/virt-resize.pl:171
26954 msgid ""
26955 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26956 "if virt-resize knows how, it will resize the contents, the equivalent of "
26957 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
26958 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
26959 "filesystems, so you would have to online resize them after booting the "
26960 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
26961 "just resizes the PV itself and leaves the user to resize any LVs inside that "
26962 "PV as desired."
26963 msgstr ""
26964
26965 # type: textblock
26966 #: ../tools/virt-resize.pl:180
26967 msgid "Other options are covered below."
26968 msgstr ""
26969
26970 # type: =item
26971 #: ../tools/virt-resize.pl:182
26972 msgid "6. Test"
26973 msgstr ""
26974
26975 # type: textblock
26976 #: ../tools/virt-resize.pl:184
26977 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26978 msgstr ""
26979
26980 # type: textblock
26981 #: ../tools/virt-resize.pl:186
26982 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26983 msgstr ""
26984
26985 # type: verbatim
26986 #: ../tools/virt-resize.pl:188
26987 #, no-wrap
26988 msgid ""
26989 " # virsh edit guestname\n"
26990 "\n"
26991 msgstr ""
26992
26993 # type: textblock
26994 #: ../tools/virt-resize.pl:190
26995 msgid ""
26996 "Change E<lt>source ...E<gt>, see "
26997 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
26998 msgstr ""
26999
27000 # type: textblock
27001 #: ../tools/virt-resize.pl:193
27002 msgid "Then start up the domain with the new, resized disk:"
27003 msgstr ""
27004
27005 # type: verbatim
27006 #: ../tools/virt-resize.pl:195
27007 #, no-wrap
27008 msgid ""
27009 " # virsh start guestname\n"
27010 "\n"
27011 msgstr ""
27012
27013 # type: textblock
27014 #: ../tools/virt-resize.pl:197
27015 msgid ""
27016 "and check that it still works.  See also the L</NOTES> section below for "
27017 "additional information."
27018 msgstr ""
27019
27020 # type: =item
27021 #: ../tools/virt-resize.pl:200
27022 msgid "7. Resize LVs etc inside the guest"
27023 msgstr ""
27024
27025 # type: textblock
27026 #: ../tools/virt-resize.pl:202
27027 msgid "(This can also be done offline using L<guestfish(1)>)"
27028 msgstr ""
27029
27030 # type: textblock
27031 #: ../tools/virt-resize.pl:204
27032 msgid ""
27033 "Once the guest has booted you should see the new space available, at least "
27034 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27035 "may need to resize LVs inside PVs, and also resize filesystem types that "
27036 "virt-resize does not know how to expand."
27037 msgstr ""
27038
27039 # type: =head2
27040 #: ../tools/virt-resize.pl:211
27041 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27042 msgstr ""
27043
27044 # type: textblock
27045 #: ../tools/virt-resize.pl:213
27046 msgid ""
27047 "Shrinking is somewhat more complex than expanding, and only an overview is "
27048 "given here."
27049 msgstr ""
27050
27051 # type: textblock
27052 #: ../tools/virt-resize.pl:216
27053 msgid ""
27054 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27055 "filesystems).  The user has to shrink content before passing the disk image "
27056 "to virt-resize, and virt-resize will check that the content has been shrunk "
27057 "properly."
27058 msgstr ""
27059
27060 # type: textblock
27061 #: ../tools/virt-resize.pl:221
27062 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27063 msgstr ""
27064
27065 # type: textblock
27066 #: ../tools/virt-resize.pl:223
27067 msgid ""
27068 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27069 "steps 3 and 4 above to allocate a new disk image."
27070 msgstr ""
27071
27072 # type: textblock
27073 #: ../tools/virt-resize.pl:226
27074 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27075 msgstr ""
27076
27077 # type: =head2
27078 #: ../tools/virt-resize.pl:229
27079 msgid "IGNORING OR DELETING PARTITIONS"
27080 msgstr ""
27081
27082 # type: textblock
27083 #: ../tools/virt-resize.pl:231
27084 msgid ""
27085 "virt-resize also gives a convenient way to ignore or delete partitions when "
27086 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27087 "up the copy where you don't care about the existing contents of a "
27088 "partition.  Deleting a partition removes it completely, but note that it "
27089 "also renumbers any partitions after the one which is deleted, which can "
27090 "leave some guests unbootable."
27091 msgstr ""
27092
27093 # type: =head2
27094 #: ../tools/virt-resize.pl:238
27095 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27096 msgstr ""
27097
27098 # type: textblock
27099 #: ../tools/virt-resize.pl:240
27100 msgid ""
27101 "If the input disk is in qcow2 format, then you may prefer that the output is "
27102 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27103 "the fly.  The output format is simply determined by the format of the empty "
27104 "output container that you provide.  Thus to create qcow2 output, use:"
27105 msgstr ""
27106
27107 # type: verbatim
27108 #: ../tools/virt-resize.pl:246
27109 #, no-wrap
27110 msgid ""
27111 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27112 "\n"
27113 msgstr ""
27114
27115 # type: textblock
27116 #: ../tools/virt-resize.pl:248
27117 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27118 msgstr ""
27119
27120 # type: textblock
27121 #: ../tools/virt-resize.pl:250
27122 msgid "Similarly, to get non-sparse raw output use:"
27123 msgstr ""
27124
27125 # type: verbatim
27126 #: ../tools/virt-resize.pl:252
27127 #, no-wrap
27128 msgid ""
27129 " fallocate -l size outdisk\n"
27130 "\n"
27131 msgstr ""
27132
27133 # type: textblock
27134 #: ../tools/virt-resize.pl:254
27135 msgid ""
27136 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
27137 "if=/dev/zero of=outdisk bs=1M count=..>)"
27138 msgstr ""
27139
27140 # type: textblock
27141 #: ../tools/virt-resize.pl:267
27142 msgid "Display help."
27143 msgstr ""
27144
27145 # type: =item
27146 #: ../tools/virt-resize.pl:281
27147 msgid "B<--resize part=size>"
27148 msgstr ""
27149
27150 # type: textblock
27151 #: ../tools/virt-resize.pl:283
27152 msgid ""
27153 "Resize the named partition (expanding or shrinking it) so that it has the "
27154 "given size."
27155 msgstr ""
27156
27157 # type: textblock
27158 #: ../tools/virt-resize.pl:286
27159 msgid ""
27160 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27161 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27162 "Exabytes; or as a percentage of the current size; or as a relative number or "
27163 "percentage.  For example:"
27164 msgstr ""
27165
27166 # type: verbatim
27167 #: ../tools/virt-resize.pl:291
27168 #, no-wrap
27169 msgid ""
27170 " --resize /dev/sda2=10G\n"
27171 "\n"
27172 msgstr ""
27173
27174 # type: verbatim
27175 #: ../tools/virt-resize.pl:293
27176 #, no-wrap
27177 msgid ""
27178 " --resize /dev/sda4=90%\n"
27179 "\n"
27180 msgstr ""
27181
27182 # type: verbatim
27183 #: ../tools/virt-resize.pl:295
27184 #, no-wrap
27185 msgid ""
27186 " --resize /dev/sda2=+1G\n"
27187 "\n"
27188 msgstr ""
27189
27190 # type: verbatim
27191 #: ../tools/virt-resize.pl:297
27192 #, no-wrap
27193 msgid ""
27194 " --resize /dev/sda2=-200M\n"
27195 "\n"
27196 msgstr ""
27197
27198 # type: verbatim
27199 #: ../tools/virt-resize.pl:299
27200 #, no-wrap
27201 msgid ""
27202 " --resize /dev/sda1=+128K\n"
27203 "\n"
27204 msgstr ""
27205
27206 # type: verbatim
27207 #: ../tools/virt-resize.pl:301
27208 #, no-wrap
27209 msgid ""
27210 " --resize /dev/sda1=+10%\n"
27211 "\n"
27212 msgstr ""
27213
27214 # type: verbatim
27215 #: ../tools/virt-resize.pl:303
27216 #, no-wrap
27217 msgid ""
27218 " --resize /dev/sda1=-10%\n"
27219 "\n"
27220 msgstr ""
27221
27222 # type: textblock
27223 #: ../tools/virt-resize.pl:305
27224 msgid ""
27225 "You can increase the size of any partition.  Virt-resize will expand the "
27226 "direct content of the partition if it knows how (see C<--expand> below)."
27227 msgstr ""
27228
27229 # type: textblock
27230 #: ../tools/virt-resize.pl:309
27231 msgid ""
27232 "You can only I<decrease> the size of partitions that contain filesystems or "
27233 "PVs which have already been shrunk.  Virt-resize will check this has been "
27234 "done before proceeding, or else will print an error (see also "
27235 "C<--resize-force>)."
27236 msgstr ""
27237
27238 # type: textblock
27239 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
27240 msgid "You can give this option multiple times."
27241 msgstr ""
27242
27243 # type: =item
27244 #: ../tools/virt-resize.pl:320
27245 msgid "B<--resize-force part=size>"
27246 msgstr ""
27247
27248 # type: textblock
27249 #: ../tools/virt-resize.pl:322
27250 msgid ""
27251 "This is the same as C<--resize> except that it will let you decrease the "
27252 "size of any partition.  Generally this means you will lose any data which "
27253 "was at the end of the partition you shrink, but you may not care about that "
27254 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27255 "as a swap partition)."
27256 msgstr ""
27257
27258 # type: textblock
27259 #: ../tools/virt-resize.pl:328
27260 msgid "See also the C<--ignore> option."
27261 msgstr ""
27262
27263 # type: =item
27264 #: ../tools/virt-resize.pl:334
27265 msgid "B<--expand part>"
27266 msgstr ""
27267
27268 # type: textblock
27269 #: ../tools/virt-resize.pl:336
27270 msgid ""
27271 "Expand the named partition so it uses up all extra space (space left over "
27272 "after any other resize changes that you request have been done)."
27273 msgstr ""
27274
27275 # type: textblock
27276 #: ../tools/virt-resize.pl:339
27277 msgid ""
27278 "If virt-resize knows how, it will expand the direct content of the "
27279 "partition.  For example, if the partition is an LVM PV, it will expand the "
27280 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27281 "content it doesn't know about alone."
27282 msgstr ""
27283
27284 # type: textblock
27285 #: ../tools/virt-resize.pl:344
27286 msgid "Currently virt-resize can resize:"
27287 msgstr ""
27288
27289 # type: textblock
27290 #: ../tools/virt-resize.pl:350
27291 msgid ""
27292 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27293 "partition."
27294 msgstr ""
27295
27296 # type: textblock
27297 #: ../tools/virt-resize.pl:355
27298 msgid ""
27299 "NTFS filesystems contained directly in a partition, if libguestfs was "
27300 "compiled with support for NTFS."
27301 msgstr ""
27302
27303 # type: textblock
27304 #: ../tools/virt-resize.pl:358
27305 msgid ""
27306 "The filesystem must have been shut down consistently last time it was used.  "
27307 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27308 "consistency check, so at the first boot after resizing Windows will check "
27309 "the disk."
27310 msgstr ""
27311
27312 # type: textblock
27313 #: ../tools/virt-resize.pl:365
27314 msgid ""
27315 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27316 "inside the PV.  The user will have to resize LVs as desired."
27317 msgstr ""
27318
27319 # type: textblock
27320 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
27321 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27322 msgstr ""
27323
27324 # type: =item
27325 #: ../tools/virt-resize.pl:377
27326 msgid "B<--shrink part>"
27327 msgstr ""
27328
27329 # type: textblock
27330 #: ../tools/virt-resize.pl:379
27331 msgid ""
27332 "Shrink the named partition until the overall disk image fits in the "
27333 "destination.  The named partition B<must> contain a filesystem or PV which "
27334 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27335 "online tools).  Virt-resize will check this and give an error if it has not "
27336 "been done."
27337 msgstr ""
27338
27339 # type: textblock
27340 #: ../tools/virt-resize.pl:385
27341 msgid ""
27342 "The amount by which the overall disk must be shrunk (after carrying out all "
27343 "other operations requested by the user) is called the \"deficit\".  For "
27344 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27345 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27346 "would give an error unless the user specified a partition to shrink and that "
27347 "partition had more than a gigabyte of free space."
27348 msgstr ""
27349
27350 # type: =item
27351 #: ../tools/virt-resize.pl:399
27352 msgid "B<--ignore part>"
27353 msgstr ""
27354
27355 # type: textblock
27356 #: ../tools/virt-resize.pl:401
27357 msgid ""
27358 "Ignore the named partition.  Effectively this means the partition is "
27359 "allocated on the destination disk, but the content is not copied across from "
27360 "the source disk.  The content of the partition will be blank (all zero "
27361 "bytes)."
27362 msgstr ""
27363
27364 # type: =item
27365 #: ../tools/virt-resize.pl:412
27366 msgid "B<--delete part>"
27367 msgstr ""
27368
27369 # type: textblock
27370 #: ../tools/virt-resize.pl:414
27371 msgid ""
27372 "Delete the named partition.  It would be more accurate to describe this as "
27373 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27374 "the original disk image is left intact."
27375 msgstr ""
27376
27377 # type: textblock
27378 #: ../tools/virt-resize.pl:418
27379 msgid ""
27380 "Note that when you delete a partition, then anything contained in the "
27381 "partition is also deleted.  Furthermore, this causes any partitions that "
27382 "come after to be I<renumbered>, which can easily make your guest unbootable."
27383 msgstr ""
27384
27385 # type: =item
27386 #: ../tools/virt-resize.pl:429
27387 msgid "B<--LV-expand logvol>"
27388 msgstr ""
27389
27390 # type: textblock
27391 #: ../tools/virt-resize.pl:431
27392 msgid ""
27393 "This takes the logical volume and, as a final step, expands it to fill all "
27394 "the space available in its volume group.  A typical usage, assuming a Linux "
27395 "guest with a single PV C</dev/sda2> and a root device called "
27396 "C</dev/vg_guest/lv_root> would be:"
27397 msgstr ""
27398
27399 # type: verbatim
27400 #: ../tools/virt-resize.pl:436
27401 #, no-wrap
27402 msgid ""
27403 " virt-resize indisk outdisk \\\n"
27404 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27405 "\n"
27406 msgstr ""
27407
27408 # type: textblock
27409 #: ../tools/virt-resize.pl:439
27410 msgid ""
27411 "This would first expand the partition (and PV), and then expand the root "
27412 "device to fill the extra space in the PV."
27413 msgstr ""
27414
27415 # type: textblock
27416 #: ../tools/virt-resize.pl:442
27417 msgid ""
27418 "The contents of the LV are also resized if virt-resize knows how to do "
27419 "that.  You can stop virt-resize from trying to expand the content by using "
27420 "the option C<--no-expand-content>."
27421 msgstr ""
27422
27423 # type: textblock
27424 #: ../tools/virt-resize.pl:446
27425 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
27426 msgstr ""
27427
27428 # type: textblock
27429 #: ../tools/virt-resize.pl:449
27430 msgid ""
27431 "You can give this option multiple times, I<but> it doesn't make sense to do "
27432 "this unless the logical volumes you specify are all in different volume "
27433 "groups."
27434 msgstr ""
27435
27436 # type: =item
27437 #: ../tools/virt-resize.pl:457
27438 msgid "B<--no-copy-boot-loader>"
27439 msgstr ""
27440
27441 # type: textblock
27442 #: ../tools/virt-resize.pl:459
27443 msgid ""
27444 "By default, virt-resize copies over some sectors at the start of the disk "
27445 "(up to the beginning of the first partition).  Commonly these sectors "
27446 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27447 "in order for the guest to boot correctly."
27448 msgstr ""
27449
27450 # type: textblock
27451 #: ../tools/virt-resize.pl:464
27452 msgid ""
27453 "If you specify this flag, then this initial copy is not done.  You may need "
27454 "to reinstall the boot loader in this case."
27455 msgstr ""
27456
27457 # type: =item
27458 #: ../tools/virt-resize.pl:472
27459 msgid "B<--no-extra-partition>"
27460 msgstr ""
27461
27462 # type: textblock
27463 #: ../tools/virt-resize.pl:474
27464 msgid ""
27465 "By default, virt-resize creates an extra partition if there is any extra, "
27466 "unused space after all resizing has happened.  Use this option to prevent "
27467 "the extra partition from being created.  If you do this then the extra space "
27468 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27469 "tool in the guest."
27470 msgstr ""
27471
27472 # type: textblock
27473 #: ../tools/virt-resize.pl:480
27474 msgid ""
27475 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27476 "will be created."
27477 msgstr ""
27478
27479 # type: =item
27480 #: ../tools/virt-resize.pl:487
27481 msgid "B<--no-expand-content>"
27482 msgstr ""
27483
27484 # type: textblock
27485 #: ../tools/virt-resize.pl:489
27486 msgid ""
27487 "By default, virt-resize will try to expand the direct contents of "
27488 "partitions, if it knows how (see C<--expand> option above)."
27489 msgstr ""
27490
27491 # type: textblock
27492 #: ../tools/virt-resize.pl:492
27493 msgid ""
27494 "If you give the C<--no-expand-content> option then virt-resize will not "
27495 "attempt this."
27496 msgstr ""
27497
27498 # type: =item
27499 #: ../tools/virt-resize.pl:499
27500 msgid "B<-d> | B<--debug>"
27501 msgstr ""
27502
27503 # type: =item
27504 #: ../tools/virt-resize.pl:507
27505 msgid "B<-n> | B<--dryrun>"
27506 msgstr ""
27507
27508 # type: textblock
27509 #: ../tools/virt-resize.pl:509
27510 msgid "Print a summary of what would be done, but don't do anything."
27511 msgstr ""
27512
27513 # type: =item
27514 #: ../tools/virt-resize.pl:515
27515 msgid "B<-q> | B<--quiet>"
27516 msgstr ""
27517
27518 # type: textblock
27519 #: ../tools/virt-resize.pl:517
27520 msgid "Don't print the summary."
27521 msgstr ""
27522
27523 # type: textblock
27524 #: ../tools/virt-resize.pl:525
27525 msgid ""
27526 "Specify the format of the input disk image.  If this flag is not given then "
27527 "it is auto-detected from the image itself."
27528 msgstr ""
27529
27530 # type: textblock
27531 #: ../tools/virt-resize.pl:531
27532 msgid ""
27533 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27534 "AND NON-SPARSE RAW FORMATS>."
27535 msgstr ""
27536
27537 # type: =item
27538 #: ../tools/virt-resize.pl:538
27539 msgid "B<--output-format> raw"
27540 msgstr ""
27541
27542 # type: textblock
27543 #: ../tools/virt-resize.pl:540
27544 msgid ""
27545 "Specify the format of the output disk image.  If this flag is not given then "
27546 "it is auto-detected from the image itself."
27547 msgstr ""
27548
27549 # type: textblock
27550 #: ../tools/virt-resize.pl:546
27551 msgid ""
27552 "Note that you still need to create the output disk with the right format.  "
27553 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27554 msgstr ""
27555
27556 # type: =head2
27557 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
27558 msgid "NOTES"
27559 msgstr ""
27560
27561 # type: =head2
27562 #: ../tools/virt-resize.pl:1424
27563 msgid "\"Partition 1 does not end on cylinder boundary.\""
27564 msgstr ""
27565
27566 # type: textblock
27567 #: ../tools/virt-resize.pl:1426
27568 msgid ""
27569 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27570 "means the partitions will not be aligned to the ancient CHS geometry.  "
27571 "However CHS geometry is meaningless for disks manufactured since the early "
27572 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27573 "cylinders is not required by any modern operating system."
27574 msgstr ""
27575
27576 # type: =head2
27577 #: ../tools/virt-resize.pl:1433
27578 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27579 msgstr ""
27580
27581 # type: textblock
27582 #: ../tools/virt-resize.pl:1435
27583 msgid ""
27584 "In Windows Vista and later versions, Microsoft switched to using a separate "
27585 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27586 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27587 "the boot partition.  Doing so seems to break the guest completely.  However "
27588 "expanding the second partition (ie. C: drive) should work."
27589 msgstr ""
27590
27591 # type: textblock
27592 #: ../tools/virt-resize.pl:1442
27593 msgid ""
27594 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27595 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27596 "it find errors) is nothing to worry about."
27597 msgstr ""
27598
27599 # type: =head2
27600 #: ../tools/virt-resize.pl:1446
27601 msgid "GUEST BOOT STUCK AT \"GRUB\""
27602 msgstr ""
27603
27604 # type: textblock
27605 #: ../tools/virt-resize.pl:1448
27606 msgid ""
27607 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27608 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27609 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27610 "although we think is to do with partition alignment."
27611 msgstr ""
27612
27613 # type: verbatim
27614 #: ../tools/virt-resize.pl:1453
27615 #, no-wrap
27616 msgid ""
27617 " guestfish -i -a newdisk\n"
27618 " ><fs> cat /boot/grub/device.map\n"
27619 " # check the contents of this file are sensible or\n"
27620 " # edit the file if necessary\n"
27621 " ><fs> grub-install / /dev/vda\n"
27622 " ><fs> exit\n"
27623 "\n"
27624 msgstr ""
27625
27626 # type: textblock
27627 #: ../tools/virt-resize.pl:1460
27628 msgid ""
27629 "For more flexible guest reconfiguration, including if you need to specify "
27630 "other parameters to grub-install, use L<virt-rescue(1)>."
27631 msgstr ""
27632
27633 # type: =head1
27634 #: ../tools/virt-resize.pl:1463
27635 msgid "ALTERNATIVE TOOLS"
27636 msgstr ""
27637
27638 # type: textblock
27639 #: ../tools/virt-resize.pl:1465
27640 msgid ""
27641 "There are several proprietary tools for resizing partitions.  We won't "
27642 "mention any here."
27643 msgstr ""
27644
27645 # type: textblock
27646 #: ../tools/virt-resize.pl:1468
27647 msgid ""
27648 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27649 "operations on disk images.  They can resize and move partitions, but I don't "
27650 "think they can do anything with the contents, and they certainly don't "
27651 "understand LVM."
27652 msgstr ""
27653
27654 # type: textblock
27655 #: ../tools/virt-resize.pl:1473
27656 msgid ""
27657 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27658 "but at a much lower level.  You will probably end up hand-calculating sector "
27659 "offsets, which is something that virt-resize was designed to avoid.  If you "
27660 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27661 "C<--debug> flag."
27662 msgstr ""
27663
27664 # type: textblock
27665 #: ../tools/virt-resize.pl:1488
27666 msgid ""
27667 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27668 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27669 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
27670 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
27671 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27672 msgstr ""
27673
27674 # type: textblock
27675 #: ../tools/virt-list-filesystems.pl:32
27676 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27677 msgstr ""
27678
27679 # type: verbatim
27680 #: ../tools/virt-list-filesystems.pl:36
27681 #, no-wrap
27682 msgid ""
27683 " virt-list-filesystems [--options] domname\n"
27684 "\n"
27685 msgstr ""
27686
27687 # type: verbatim
27688 #: ../tools/virt-list-filesystems.pl:38
27689 #, no-wrap
27690 msgid ""
27691 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27692 "\n"
27693 msgstr ""
27694
27695 # type: textblock
27696 #: ../tools/virt-list-filesystems.pl:42
27697 msgid ""
27698 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27699 "are contained in a virtual machine or disk image."
27700 msgstr ""
27701
27702 # type: textblock
27703 #: ../tools/virt-list-filesystems.pl:46
27704 msgid ""
27705 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27706 "functionality.  For more complex cases you should look at the "
27707 "L<guestfish(1)> tool."
27708 msgstr ""
27709
27710 # type: textblock
27711 #: ../tools/virt-list-filesystems.pl:105
27712 msgid ""
27713 "With this option, C<virt-list-filesystems> displays the type of each "
27714 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27715 msgstr ""
27716
27717 # type: =item
27718 #: ../tools/virt-list-filesystems.pl:112
27719 msgid "B<-a> | B<--all>"
27720 msgstr ""
27721
27722 # type: textblock
27723 #: ../tools/virt-list-filesystems.pl:114
27724 msgid ""
27725 "Normally we only show mountable filesystems.  If this option is given then "
27726 "swap devices are shown too."
27727 msgstr ""
27728
27729 # type: textblock
27730 #: ../tools/virt-list-filesystems.pl:188
27731 msgid ""
27732 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
27733 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27734 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27735 msgstr ""
27736
27737 # type: textblock
27738 #: ../tools/virt-tar.pl:33
27739 msgid "virt-tar - Extract or upload files to a virtual machine"
27740 msgstr ""
27741
27742 # type: verbatim
27743 #: ../tools/virt-tar.pl:37
27744 #, no-wrap
27745 msgid ""
27746 " virt-tar [--options] -x domname directory tarball\n"
27747 "\n"
27748 msgstr ""
27749
27750 # type: verbatim
27751 #: ../tools/virt-tar.pl:39
27752 #, no-wrap
27753 msgid ""
27754 " virt-tar [--options] -u domname tarball directory\n"
27755 "\n"
27756 msgstr ""
27757
27758 # type: verbatim
27759 #: ../tools/virt-tar.pl:41
27760 #, no-wrap
27761 msgid ""
27762 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27763 "\n"
27764 msgstr ""
27765
27766 # type: verbatim
27767 #: ../tools/virt-tar.pl:43
27768 #, no-wrap
27769 msgid ""
27770 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27771 "\n"
27772 msgstr ""
27773
27774 # type: textblock
27775 #: ../tools/virt-tar.pl:47
27776 msgid "Download C</home> from the VM into a local tarball:"
27777 msgstr ""
27778
27779 # type: verbatim
27780 #: ../tools/virt-tar.pl:49
27781 #, no-wrap
27782 msgid ""
27783 " virt-tar -x domname /home home.tar\n"
27784 "\n"
27785 msgstr ""
27786
27787 # type: verbatim
27788 #: ../tools/virt-tar.pl:51
27789 #, no-wrap
27790 msgid ""
27791 " virt-tar -zx domname /home home.tar.gz\n"
27792 "\n"
27793 msgstr ""
27794
27795 # type: textblock
27796 #: ../tools/virt-tar.pl:53
27797 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27798 msgstr ""
27799
27800 # type: verbatim
27801 #: ../tools/virt-tar.pl:55
27802 #, no-wrap
27803 msgid ""
27804 " virt-tar -u domname uploadstuff.tar /tmp\n"
27805 "\n"
27806 msgstr ""
27807
27808 # type: verbatim
27809 #: ../tools/virt-tar.pl:57
27810 #, no-wrap
27811 msgid ""
27812 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27813 "\n"
27814 msgstr ""
27815
27816 # type: textblock
27817 #: ../tools/virt-tar.pl:61
27818 msgid ""
27819 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27820 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27821 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27822 msgstr ""
27823
27824 # type: textblock
27825 #: ../tools/virt-tar.pl:66
27826 msgid ""
27827 "You can use C<-x> (extract) on live virtual machines, but you might get "
27828 "inconsistent results or errors if there is filesystem activity inside the "
27829 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27830 "work, but the only way to guarantee consistent results is if the virtual "
27831 "machine is shut down."
27832 msgstr ""
27833
27834 # type: textblock
27835 #: ../tools/virt-tar.pl:74
27836 msgid ""
27837 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27838 "parts of a guest filesystem.  There are many possibilities: making backups, "
27839 "uploading data files, snooping on guest activity, fixing or customizing "
27840 "guests, etc."
27841 msgstr ""
27842
27843 # type: textblock
27844 #: ../tools/virt-tar.pl:79
27845 msgid ""
27846 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27847 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27848 "should look at the L<guestfish(1)> tool."
27849 msgstr ""
27850
27851 # type: textblock
27852 #: ../tools/virt-tar.pl:83
27853 msgid ""
27854 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27855 "its contents (recursively) from the virtual machine into a local tarball.  "
27856 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27857 "virtual machine.  You cannot use these two options together."
27858 msgstr ""
27859
27860 # type: textblock
27861 #: ../tools/virt-tar.pl:89
27862 msgid ""
27863 "In addition, you may need to use the C<-z> (gZip) option to enable "
27864 "compression.  When uploading, you have to specify C<-z> if the upload file "
27865 "is compressed because virt-tar won't detect this on its own."
27866 msgstr ""
27867
27868 # type: textblock
27869 #: ../tools/virt-tar.pl:93
27870 msgid ""
27871 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27872 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27873 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27874 "the L<libguestfs(3)> API)."
27875 msgstr ""
27876
27877 # type: =item
27878 #: ../tools/virt-tar.pl:151
27879 msgid "B<-x> | B<--extract> | B<--download>"
27880 msgstr ""
27881
27882 # type: =item
27883 #: ../tools/virt-tar.pl:153
27884 msgid "B<-u> | B<--upload>"
27885 msgstr ""
27886
27887 # type: textblock
27888 #: ../tools/virt-tar.pl:155
27889 msgid ""
27890 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27891 "local tarball."
27892 msgstr ""
27893
27894 # type: textblock
27895 #: ../tools/virt-tar.pl:158
27896 msgid ""
27897 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27898 "Please read the L</WARNING> section above before using this option."
27899 msgstr ""
27900
27901 # type: textblock
27902 #: ../tools/virt-tar.pl:162
27903 msgid "You must specify exactly one of these options."
27904 msgstr ""
27905
27906 # type: =item
27907 #: ../tools/virt-tar.pl:168
27908 msgid "B<-z> | B<--gzip>"
27909 msgstr ""
27910
27911 # type: textblock
27912 #: ../tools/virt-tar.pl:170
27913 msgid "Specify that the input or output tarball is gzip-compressed."
27914 msgstr ""
27915
27916 # type: textblock
27917 #: ../tools/virt-tar.pl:283
27918 msgid ""
27919 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
27920 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
27921 "L<http://libguestfs.org/>."
27922 msgstr ""
27923
27924 # type: textblock
27925 #: ../tools/virt-rescue.pl:33
27926 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27927 msgstr ""
27928
27929 # type: verbatim
27930 #: ../tools/virt-rescue.pl:37
27931 #, no-wrap
27932 msgid ""
27933 " virt-rescue [--options] domname\n"
27934 "\n"
27935 msgstr ""
27936
27937 # type: verbatim
27938 #: ../tools/virt-rescue.pl:39
27939 #, no-wrap
27940 msgid ""
27941 " virt-rescue [--options] disk.img [disk.img ...]\n"
27942 "\n"
27943 msgstr ""
27944
27945 # type: textblock
27946 #: ../tools/virt-rescue.pl:43
27947 msgid ""
27948 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27949 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27950 "you from doing this, but doesn't catch all cases."
27951 msgstr ""
27952
27953 # type: textblock
27954 #: ../tools/virt-rescue.pl:47
27955 msgid ""
27956 "However if you use the I<--ro> (read only) option, then you can attach a "
27957 "shell to a live virtual machine.  The results might be strange or "
27958 "inconsistent at times but you won't get disk corruption."
27959 msgstr ""
27960
27961 # type: textblock
27962 #: ../tools/virt-rescue.pl:53
27963 msgid ""
27964 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27965 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27966 "recovery tools which you can use to examine or rescue a virtual machine or "
27967 "disk image."
27968 msgstr ""
27969
27970 # type: textblock
27971 #: ../tools/virt-rescue.pl:58
27972 msgid ""
27973 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27974 "on disk image(s):"
27975 msgstr ""
27976
27977 # type: verbatim
27978 #: ../tools/virt-rescue.pl:61
27979 #, no-wrap
27980 msgid ""
27981 " virt-rescue GuestName\n"
27982 "\n"
27983 msgstr ""
27984
27985 # type: verbatim
27986 #: ../tools/virt-rescue.pl:63
27987 #, no-wrap
27988 msgid ""
27989 " virt-rescue --ro /path/to/disk.img\n"
27990 "\n"
27991 msgstr ""
27992
27993 # type: verbatim
27994 #: ../tools/virt-rescue.pl:65
27995 #, no-wrap
27996 msgid ""
27997 " virt-rescue /dev/sdc\n"
27998 "\n"
27999 msgstr ""
28000
28001 # type: textblock
28002 #: ../tools/virt-rescue.pl:67
28003 msgid "For live VMs you I<must> use the --ro option."
28004 msgstr ""
28005
28006 # type: textblock
28007 #: ../tools/virt-rescue.pl:69
28008 msgid ""
28009 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28010 "in an interactive bash shell where you can use many ordinary Linux "
28011 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28012 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28013 "is an empty directory called C</sysroot> where you can mount filesystems."
28014 msgstr ""
28015
28016 # type: textblock
28017 #: ../tools/virt-rescue.pl:76
28018 msgid ""
28019 "In the example below, we list logical volumes, then choose one to mount "
28020 "under C</sysroot>:"
28021 msgstr ""
28022
28023 # type: verbatim
28024 #: ../tools/virt-rescue.pl:79
28025 #, no-wrap
28026 msgid ""
28027 " ><rescue> lvs\n"
28028 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28029 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28030 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28031 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28032 " ><rescue> ls /sysroot\n"
28033 "\n"
28034 msgstr ""
28035
28036 # type: textblock
28037 #: ../tools/virt-rescue.pl:86
28038 msgid ""
28039 "If you don't know what filesystems are available on the virtual machine then "
28040 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28041 msgstr ""
28042
28043 # type: textblock
28044 #: ../tools/virt-rescue.pl:92
28045 msgid ""
28046 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28047 "virtual machine.  For example you can use it on a blank file if you want to "
28048 "partition that file (although we would recommend using L<guestfish(1)> "
28049 "instead as it is more suitable for this purpose).  You can even use "
28050 "virt-rescue on things like SD cards."
28051 msgstr ""
28052
28053 # type: textblock
28054 #: ../tools/virt-rescue.pl:98
28055 msgid ""
28056 "This tool is just designed for quick interactive hacking on a virtual "
28057 "machine.  For more structured access to a virtual machine disk image, you "
28058 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28059 "make scripted changes to guests, use L<guestfish(1)>."
28060 msgstr ""
28061
28062 # type: =item
28063 #: ../tools/virt-rescue.pl:127
28064 msgid "B<--append kernelopts>"
28065 msgstr ""
28066
28067 # type: textblock
28068 #: ../tools/virt-rescue.pl:129
28069 msgid "Pass additional options to the rescue kernel."
28070 msgstr ""
28071
28072 # type: =item
28073 #: ../tools/virt-rescue.pl:164
28074 msgid "B<--memsize MB> | B<-m MB>"
28075 msgstr ""
28076
28077 # type: textblock
28078 #: ../tools/virt-rescue.pl:166
28079 msgid ""
28080 "Change the amount of memory allocated to the rescue system.  The default is "
28081 "set by libguestfs and is small but adequate for running system tools.  The "
28082 "occasional program might need more memory.  The parameter is specified in "
28083 "megabytes."
28084 msgstr ""
28085
28086 # type: =item
28087 #: ../tools/virt-rescue.pl:175
28088 msgid "B<--network>"
28089 msgstr ""
28090
28091 # type: textblock
28092 #: ../tools/virt-rescue.pl:177
28093 msgid "Enable QEMU user networking in the guest."
28094 msgstr ""
28095
28096 # type: =item
28097 #: ../tools/virt-rescue.pl:183
28098 msgid "B<--ro> | B<-r>"
28099 msgstr ""
28100
28101 # type: textblock
28102 #: ../tools/virt-rescue.pl:185
28103 msgid "Open the image read-only."
28104 msgstr ""
28105
28106 # type: textblock
28107 #: ../tools/virt-rescue.pl:197
28108 msgid ""
28109 "Enable SELinux in the rescue appliance.  You should read "
28110 "L<guestfs(3)/SELINUX> before using this option."
28111 msgstr ""
28112
28113 # type: textblock
28114 #: ../tools/virt-rescue.pl:257
28115 msgid ""
28116 "Several environment variables affect virt-rescue.  See "
28117 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
28118 msgstr ""
28119
28120 # type: textblock
28121 #: ../tools/virt-rescue.pl:269
28122 msgid ""
28123 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
28124 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28125 msgstr ""
28126
28127 # type: textblock
28128 #: ../tools/virt-make-fs.pl:37
28129 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28130 msgstr ""
28131
28132 # type: verbatim
28133 #: ../tools/virt-make-fs.pl:41
28134 #, no-wrap
28135 msgid ""
28136 " virt-make-fs [--options] input.tar output.img\n"
28137 "\n"
28138 msgstr ""
28139
28140 # type: verbatim
28141 #: ../tools/virt-make-fs.pl:43
28142 #, no-wrap
28143 msgid ""
28144 " virt-make-fs [--options] input.tar.gz output.img\n"
28145 "\n"
28146 msgstr ""
28147
28148 # type: verbatim
28149 #: ../tools/virt-make-fs.pl:45
28150 #, no-wrap
28151 msgid ""
28152 " virt-make-fs [--options] directory output.img\n"
28153 "\n"
28154 msgstr ""
28155
28156 # type: textblock
28157 #: ../tools/virt-make-fs.pl:49
28158 msgid ""
28159 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28160 "archive or some files in a directory.  It is similar to tools like "
28161 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
28162 "it can create common filesystem types like ext2/3 or NTFS, which can be "
28163 "useful if you want to attach these filesystems to existing virtual machines "
28164 "(eg. to import large amounts of read-only data to a VM)."
28165 msgstr ""
28166
28167 # type: textblock
28168 #: ../tools/virt-make-fs.pl:57
28169 msgid "Basic usage is:"
28170 msgstr ""
28171
28172 # type: verbatim
28173 #: ../tools/virt-make-fs.pl:59
28174 #, no-wrap
28175 msgid ""
28176 " virt-make-fs input output\n"
28177 "\n"
28178 msgstr ""
28179
28180 # type: textblock
28181 #: ../tools/virt-make-fs.pl:61
28182 msgid ""
28183 "where C<input> is either a directory containing files that you want to add, "
28184 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28185 "C<output> is a disk image.  The input type is detected automatically.  The "
28186 "output disk image defaults to a raw ext2 image unless you specify extra "
28187 "flags (see L</OPTIONS> below)."
28188 msgstr ""
28189
28190 # type: =head2
28191 #: ../tools/virt-make-fs.pl:67
28192 msgid "EXTRA SPACE"
28193 msgstr ""
28194
28195 # type: textblock
28196 #: ../tools/virt-make-fs.pl:69
28197 msgid ""
28198 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28199 "the files that it contains, but might have extra space.  Depending on how "
28200 "you are going to use the output, you might think this extra space is wasted "
28201 "and want to minimize it, or you might want to leave space so that more files "
28202 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28203 "but you can use the C<--size> flag to leave space in the filesystem if you "
28204 "want it."
28205 msgstr ""
28206
28207 # type: textblock
28208 #: ../tools/virt-make-fs.pl:77
28209 msgid ""
28210 "An alternative way to leave extra space but not make the output image any "
28211 "bigger is to use an alternative disk image format (instead of the default "
28212 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28213 "image format (check your hypervisor supports this before using it).  This "
28214 "allows you to choose a large C<--size> but the extra space won't actually be "
28215 "allocated in the image until you try to store something in it."
28216 msgstr ""
28217
28218 # type: textblock
28219 #: ../tools/virt-make-fs.pl:85
28220 msgid ""
28221 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28222 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
28223 "virt-make-resize to build another image from scratch."
28224 msgstr ""
28225
28226 # type: =head3
28227 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
28228 msgid "EXAMPLE"
28229 msgstr ""
28230
28231 # type: verbatim
28232 #: ../tools/virt-make-fs.pl:91
28233 #, no-wrap
28234 msgid ""
28235 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28236 "\n"
28237 msgstr ""
28238
28239 # type: =head2
28240 #: ../tools/virt-make-fs.pl:93
28241 msgid "FILESYSTEM TYPE"
28242 msgstr ""
28243
28244 # type: textblock
28245 #: ../tools/virt-make-fs.pl:95
28246 msgid ""
28247 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28248 "libguestfs supports can be used (but I<not> read-only formats like "
28249 "ISO9660).  Here are some of the more common choices:"
28250 msgstr ""
28251
28252 # type: =item
28253 #: ../tools/virt-make-fs.pl:101
28254 msgid "I<ext3>"
28255 msgstr ""
28256
28257 # type: textblock
28258 #: ../tools/virt-make-fs.pl:103
28259 msgid ""
28260 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28261 "you are not going to use the filesystem in a way that requires the journal, "
28262 "then this is just wasted overhead."
28263 msgstr ""
28264
28265 # type: =item
28266 #: ../tools/virt-make-fs.pl:107
28267 msgid "I<ntfs> or I<vfat>"
28268 msgstr ""
28269
28270 # type: textblock
28271 #: ../tools/virt-make-fs.pl:109
28272 msgid "Useful if exporting data to a Windows guest."
28273 msgstr ""
28274
28275 # type: textblock
28276 #: ../tools/virt-make-fs.pl:111
28277 msgid ""
28278 "I<Note for vfat>: The tar archive or local directory must only contain files "
28279 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28280 "program running within libguestfs is unable to change the ownership of "
28281 "non-root files, since vfat itself does not support this."
28282 msgstr ""
28283
28284 # type: =item
28285 #: ../tools/virt-make-fs.pl:116
28286 msgid "I<minix>"
28287 msgstr ""
28288
28289 # type: textblock
28290 #: ../tools/virt-make-fs.pl:118
28291 msgid ""
28292 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28293 "total filesystem size."
28294 msgstr ""
28295
28296 # type: verbatim
28297 #: ../tools/virt-make-fs.pl:125
28298 #, no-wrap
28299 msgid ""
28300 " virt-make-fs --type=minix input minixfs.img\n"
28301 "\n"
28302 msgstr ""
28303
28304 # type: =head2
28305 #: ../tools/virt-make-fs.pl:127
28306 msgid "TO PARTITION OR NOT TO PARTITION"
28307 msgstr ""
28308
28309 # type: textblock
28310 #: ../tools/virt-make-fs.pl:129
28311 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28312 msgstr ""
28313
28314 # type: textblock
28315 #: ../tools/virt-make-fs.pl:131
28316 msgid ""
28317 "Adding a partition can make the disk image more compatible with certain "
28318 "virtualized operating systems which don't expect to see a filesystem "
28319 "directly located on a block device (Linux doesn't care and will happily "
28320 "handle both types)."
28321 msgstr ""
28322
28323 # type: textblock
28324 #: ../tools/virt-make-fs.pl:136
28325 msgid ""
28326 "On the other hand, if you have a partition table then the output image is no "
28327 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28328 "directly on a partitioned disk image.  (However libguestfs tools such as "
28329 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28330 msgstr ""
28331
28332 # type: textblock
28333 #: ../tools/virt-make-fs.pl:144
28334 msgid "Add an MBR partition:"
28335 msgstr ""
28336
28337 # type: verbatim
28338 #: ../tools/virt-make-fs.pl:146
28339 #, no-wrap
28340 msgid ""
28341 " virt-make-fs --partition -- input disk.img\n"
28342 "\n"
28343 msgstr ""
28344
28345 # type: textblock
28346 #: ../tools/virt-make-fs.pl:148
28347 msgid ""
28348 "If the output disk image could be terabyte-sized or larger, it's better to "
28349 "use an EFI/GPT-compatible partition table:"
28350 msgstr ""
28351
28352 # type: verbatim
28353 #: ../tools/virt-make-fs.pl:151
28354 #, no-wrap
28355 msgid ""
28356 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28357 "\n"
28358 msgstr ""
28359
28360 # type: textblock
28361 #: ../tools/virt-make-fs.pl:179
28362 msgid "Enable debugging information."
28363 msgstr ""
28364
28365 # type: =item
28366 #: ../tools/virt-make-fs.pl:185
28367 msgid "B<--size=E<lt>NE<gt>>"
28368 msgstr ""
28369
28370 # type: =item
28371 #: ../tools/virt-make-fs.pl:187
28372 msgid "B<--size=+E<lt>NE<gt>>"
28373 msgstr ""
28374
28375 # type: =item
28376 #: ../tools/virt-make-fs.pl:189
28377 msgid "B<-s E<lt>NE<gt>>"
28378 msgstr ""
28379
28380 # type: =item
28381 #: ../tools/virt-make-fs.pl:191
28382 msgid "B<-s +E<lt>NE<gt>>"
28383 msgstr ""
28384
28385 # type: textblock
28386 #: ../tools/virt-make-fs.pl:193
28387 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28388 msgstr ""
28389
28390 # type: textblock
28391 #: ../tools/virt-make-fs.pl:196
28392 msgid ""
28393 "If this option is I<not> given, then the output image will be just large "
28394 "enough to contain all the files, with not much wasted space."
28395 msgstr ""
28396
28397 # type: textblock
28398 #: ../tools/virt-make-fs.pl:199
28399 msgid ""
28400 "To choose a fixed size output disk, specify an absolute number followed by "
28401 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28402 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28403 "files, else you will get an error."
28404 msgstr ""
28405
28406 # type: textblock
28407 #: ../tools/virt-make-fs.pl:204
28408 msgid ""
28409 "To leave extra space, specify C<+> (plus sign) and a number followed by "
28410 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28411 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28412 "the input files, and (approximately) an extra 200 MB free space."
28413 msgstr ""
28414
28415 # type: textblock
28416 #: ../tools/virt-make-fs.pl:210
28417 msgid ""
28418 "Note that virt-make-fs estimates free space, and therefore will not produce "
28419 "filesystems containing precisely the free space requested.  (It is much more "
28420 "expensive and time-consuming to produce a filesystem which has precisely the "
28421 "desired free space)."
28422 msgstr ""
28423
28424 # type: =item
28425 #: ../tools/virt-make-fs.pl:219
28426 msgid "B<--format=E<lt>fmtE<gt>>"
28427 msgstr ""
28428
28429 # type: =item
28430 #: ../tools/virt-make-fs.pl:221
28431 msgid "B<-F E<lt>fmtE<gt>>"
28432 msgstr ""
28433
28434 # type: textblock
28435 #: ../tools/virt-make-fs.pl:223
28436 msgid "Choose the output disk image format."
28437 msgstr ""
28438
28439 # type: textblock
28440 #: ../tools/virt-make-fs.pl:225
28441 msgid "The default is C<raw> (raw disk image)."
28442 msgstr ""
28443
28444 # type: textblock
28445 #: ../tools/virt-make-fs.pl:227
28446 msgid ""
28447 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28448 "that would really make sense here is C<qcow2>."
28449 msgstr ""
28450
28451 # type: =item
28452 #: ../tools/virt-make-fs.pl:234
28453 msgid "B<--type=E<lt>fsE<gt>>"
28454 msgstr ""
28455
28456 # type: =item
28457 #: ../tools/virt-make-fs.pl:236
28458 msgid "B<-t E<lt>fsE<gt>>"
28459 msgstr ""
28460
28461 # type: textblock
28462 #: ../tools/virt-make-fs.pl:238
28463 msgid "Choose the output filesystem type."
28464 msgstr ""
28465
28466 # type: textblock
28467 #: ../tools/virt-make-fs.pl:240
28468 msgid "The default is C<ext2>."
28469 msgstr ""
28470
28471 # type: textblock
28472 #: ../tools/virt-make-fs.pl:242
28473 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
28474 msgstr ""
28475
28476 # type: =item
28477 #: ../tools/virt-make-fs.pl:249
28478 msgid "B<--partition>"
28479 msgstr ""
28480
28481 # type: =item
28482 #: ../tools/virt-make-fs.pl:251
28483 msgid "B<--partition=E<lt>parttypeE<gt>>"
28484 msgstr ""
28485
28486 # type: textblock
28487 #: ../tools/virt-make-fs.pl:253
28488 msgid ""
28489 "If specified, this flag adds an MBR partition table to the output disk "
28490 "image."
28491 msgstr ""
28492
28493 # type: textblock
28494 #: ../tools/virt-make-fs.pl:256
28495 msgid ""
28496 "You can change the partition table type, eg. C<--partition=gpt> for large "
28497 "disks."
28498 msgstr ""
28499
28500 # type: textblock
28501 #: ../tools/virt-make-fs.pl:259
28502 msgid ""
28503 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28504 "might consider the next parameter to be the partition type.  For example:"
28505 msgstr ""
28506
28507 # type: verbatim
28508 #: ../tools/virt-make-fs.pl:263
28509 #, no-wrap
28510 msgid ""
28511 " virt-make-fs --partition input.tar ...\n"
28512 "\n"
28513 msgstr ""
28514
28515 # type: textblock
28516 #: ../tools/virt-make-fs.pl:265
28517 msgid ""
28518 "would cause virt-make-fs to think you wanted to use a partition type of "
28519 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28520 "dash) between options and the input file argument:"
28521 msgstr ""
28522
28523 # type: verbatim
28524 #: ../tools/virt-make-fs.pl:269
28525 #, no-wrap
28526 msgid ""
28527 " virt-make-fs --partition -- input.tar ...\n"
28528 "\n"
28529 msgstr ""
28530
28531 # type: textblock
28532 #: ../tools/virt-make-fs.pl:536
28533 msgid ""
28534 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28535 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28536 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28537 msgstr ""
28538
28539 # type: verbatim
28540 #: ../tools/virt-make-fs.pl:553
28541 #, no-wrap
28542 msgid ""
28543 " export LIBGUESTFS_DEBUG=1\n"
28544 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28545 "\n"
28546 msgstr ""
28547
28548 # type: textblock
28549 #: ../tools/virt-make-fs.pl:556
28550 msgid ""
28551 "Attach /tmp/virt-make-fs.log to a new bug report at "
28552 "L<https://bugzilla.redhat.com/>"
28553 msgstr ""
28554
28555 # type: textblock
28556 #: ../tools/virt-list-partitions.pl:32
28557 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28558 msgstr ""
28559
28560 # type: verbatim
28561 #: ../tools/virt-list-partitions.pl:36
28562 #, no-wrap
28563 msgid ""
28564 " virt-list-partitions [--options] domname\n"
28565 "\n"
28566 msgstr ""
28567
28568 # type: verbatim
28569 #: ../tools/virt-list-partitions.pl:38
28570 #, no-wrap
28571 msgid ""
28572 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28573 "\n"
28574 msgstr ""
28575
28576 # type: textblock
28577 #: ../tools/virt-list-partitions.pl:42
28578 msgid ""
28579 "C<virt-list-partitions> is a command line tool to list the partitions that "
28580 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28581 "first step to using L<virt-resize(1)>."
28582 msgstr ""
28583
28584 # type: textblock
28585 #: ../tools/virt-list-partitions.pl:47
28586 msgid ""
28587 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28588 "functionality.  For more complex cases you should look at the "
28589 "L<guestfish(1)> tool."
28590 msgstr ""
28591
28592 # type: =item
28593 #: ../tools/virt-list-partitions.pl:104
28594 msgid "B<-h> | B<--human-readable>"
28595 msgstr ""
28596
28597 # type: textblock
28598 #: ../tools/virt-list-partitions.pl:106
28599 msgid "Show sizes in human-readable form (eg. \"1G\")."
28600 msgstr ""
28601
28602 # type: textblock
28603 #: ../tools/virt-list-partitions.pl:114
28604 msgid ""
28605 "With this option, C<virt-list-partitions> displays the type and size of each "
28606 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28607 msgstr ""
28608
28609 # type: =item
28610 #: ../tools/virt-list-partitions.pl:121
28611 msgid "B<-t> | B<--total>"
28612 msgstr ""
28613
28614 # type: textblock
28615 #: ../tools/virt-list-partitions.pl:123
28616 msgid "Display the total size of each block device (as a separate row or rows)."
28617 msgstr ""
28618
28619 # type: textblock
28620 #: ../tools/virt-list-partitions.pl:256
28621 msgid ""
28622 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
28623 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
28624 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28625 msgstr ""