Version 1.7.8.
[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.8\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-11-15 23:02+0000\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=utf-8\n"
17 "Content-Transfer-Encoding: ENCODING"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1 ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1 ../inspector/virt-inspector.pl:31 ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30 ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28 ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29 ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
21 msgid "utf8"
22 msgstr ""
23
24 # type: =head1
25 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pl:33 ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32 ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30 ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31 ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
26 msgid "NAME"
27 msgstr ""
28
29 # type: textblock
30 #: ../src/guestfs.pod:5
31 msgid "guestfs - Library for accessing and modifying virtual machine images"
32 msgstr ""
33
34 # type: =head1
35 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pl:37 ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36 ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34 ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35 ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
36 msgid "SYNOPSIS"
37 msgstr ""
38
39 # type: verbatim
40 #: ../src/guestfs.pod:9
41 #, no-wrap
42 msgid ""
43 " #include <guestfs.h>\n"
44 " \n"
45 msgstr ""
46
47 # type: verbatim
48 #: ../src/guestfs.pod:11
49 #, no-wrap
50 msgid ""
51 " guestfs_h *g = guestfs_create ();\n"
52 " guestfs_add_drive (g, \"guest.img\");\n"
53 " guestfs_launch (g);\n"
54 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
55 " guestfs_touch (g, \"/hello\");\n"
56 " guestfs_umount (g, \"/\");\n"
57 " guestfs_sync (g);\n"
58 " guestfs_close (g);\n"
59 "\n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:20
64 #, no-wrap
65 msgid ""
66 " cc prog.c -o prog -lguestfs\n"
67 "or:\n"
68 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
69 "\n"
70 msgstr ""
71
72 # type: =head1
73 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42 ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40 ../tools/virt-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:1521 ../src/guestfs.pod:1526 ../src/guestfs.pod:1530 ../src/guestfs.pod:1640 ../src/guestfs.pod:1645 ../src/guestfs.pod:1649 ../src/guestfs.pod:1993 ../src/guestfs.pod:1999 ../src/guestfs.pod:2004 ../src/guestfs.pod:2010 ../src/guestfs.pod:2117 ../src/guestfs.pod:2121 ../src/guestfs.pod:2125 ../src/guestfs.pod:2129 ../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 ../inspector/virt-inspector.pl:466 ../inspector/virt-inspector.pl:470 ../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:1142 ../src/guestfs.pod:1273
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:1146 ../src/guestfs.pod:1277
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:1283
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 "The inspection API parses guest configuration using two external libraries: "
2111 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2112 "designed to be robust in the face of malicious data, although denial of "
2113 "service attacks are still possible, for example with oversized configuration "
2114 "files."
2115 msgstr ""
2116
2117 # type: =head2
2118 #: ../src/guestfs.pod:1104
2119 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2120 msgstr ""
2121
2122 # type: textblock
2123 #: ../src/guestfs.pod:1106
2124 msgid ""
2125 "Be very cautious about running commands from the guest.  By running a "
2126 "command in the guest, you are giving CPU time to a binary that you do not "
2127 "control, under the same user account as the library, albeit wrapped in qemu "
2128 "virtualization.  More information and alternatives can be found in the "
2129 "section L</RUNNING COMMANDS>."
2130 msgstr ""
2131
2132 # type: =head2
2133 #: ../src/guestfs.pod:1112
2134 msgid "CVE-2010-3851"
2135 msgstr ""
2136
2137 # type: textblock
2138 #: ../src/guestfs.pod:1114
2139 msgid "https://bugzilla.redhat.com/642934"
2140 msgstr ""
2141
2142 # type: textblock
2143 #: ../src/guestfs.pod:1116
2144 msgid ""
2145 "This security bug concerns the automatic disk format detection that qemu "
2146 "does on disk images."
2147 msgstr ""
2148
2149 # type: textblock
2150 #: ../src/guestfs.pod:1119
2151 msgid ""
2152 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2153 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2154 "for one of the known headers, and if none is found then assuming the disk "
2155 "image must be raw."
2156 msgstr ""
2157
2158 # type: textblock
2159 #: ../src/guestfs.pod:1124
2160 msgid ""
2161 "This allows a guest which has been given a raw disk image to write some "
2162 "other header.  At next boot (or when the disk image is accessed by "
2163 "libguestfs) qemu would do autodetection and think the disk image format was, "
2164 "say, qcow2 based on the header written by the guest."
2165 msgstr ""
2166
2167 # type: textblock
2168 #: ../src/guestfs.pod:1129
2169 msgid ""
2170 "This in itself would not be a problem, but qcow2 offers many features, one "
2171 "of which is to allow a disk image to refer to another image (called the "
2172 "\"backing disk\").  It does this by placing the path to the backing disk "
2173 "into the qcow2 header.  This path is not validated and could point to any "
2174 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2175 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2176 "control of the attacker."
2177 msgstr ""
2178
2179 # type: textblock
2180 #: ../src/guestfs.pod:1137
2181 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
2182 msgstr ""
2183
2184 # type: textblock
2185 #: ../src/guestfs.pod:1144
2186 msgid "You have enabled the network or have opened the disk in write mode."
2187 msgstr ""
2188
2189 # type: textblock
2190 #: ../src/guestfs.pod:1148
2191 msgid ""
2192 "You are also running untrusted code from the guest (see L</RUNNING "
2193 "COMMANDS>)."
2194 msgstr ""
2195
2196 # type: textblock
2197 #: ../src/guestfs.pod:1153
2198 msgid ""
2199 "The way to avoid this is to specify the expected disk format when adding "
2200 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2201 "should always do this if the disk is raw format, and it's a good idea for "
2202 "other cases too."
2203 msgstr ""
2204
2205 # type: textblock
2206 #: ../src/guestfs.pod:1158
2207 msgid ""
2208 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2209 "format is fetched from libvirt and passed through."
2210 msgstr ""
2211
2212 # type: textblock
2213 #: ../src/guestfs.pod:1161
2214 msgid ""
2215 "For libguestfs tools, use the I<--format> command line parameter as "
2216 "appropriate."
2217 msgstr ""
2218
2219 # type: =head1
2220 #: ../src/guestfs.pod:1164
2221 msgid "CONNECTION MANAGEMENT"
2222 msgstr ""
2223
2224 # type: =head2
2225 #: ../src/guestfs.pod:1166
2226 msgid "guestfs_h *"
2227 msgstr ""
2228
2229 # type: textblock
2230 #: ../src/guestfs.pod:1168
2231 msgid ""
2232 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2233 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2234 "handle and release all resources used."
2235 msgstr ""
2236
2237 # type: textblock
2238 #: ../src/guestfs.pod:1172
2239 msgid ""
2240 "For information on using multiple handles and threads, see the section "
2241 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2242 msgstr ""
2243
2244 # type: =head2
2245 #: ../src/guestfs.pod:1175
2246 msgid "guestfs_create"
2247 msgstr ""
2248
2249 # type: verbatim
2250 #: ../src/guestfs.pod:1177
2251 #, no-wrap
2252 msgid ""
2253 " guestfs_h *guestfs_create (void);\n"
2254 "\n"
2255 msgstr ""
2256
2257 # type: textblock
2258 #: ../src/guestfs.pod:1179
2259 msgid "Create a connection handle."
2260 msgstr ""
2261
2262 # type: textblock
2263 #: ../src/guestfs.pod:1181
2264 msgid ""
2265 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2266 "on the handle at least once."
2267 msgstr ""
2268
2269 # type: textblock
2270 #: ../src/guestfs.pod:1184
2271 msgid ""
2272 "This function returns a non-NULL pointer to a handle on success or NULL on "
2273 "error."
2274 msgstr ""
2275
2276 # type: textblock
2277 #: ../src/guestfs.pod:1187
2278 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2279 msgstr ""
2280
2281 # type: textblock
2282 #: ../src/guestfs.pod:1189
2283 msgid ""
2284 "You may also want to configure error handling for the handle.  See L</ERROR "
2285 "HANDLING> section below."
2286 msgstr ""
2287
2288 # type: =head2
2289 #: ../src/guestfs.pod:1192
2290 msgid "guestfs_close"
2291 msgstr ""
2292
2293 # type: verbatim
2294 #: ../src/guestfs.pod:1194
2295 #, no-wrap
2296 msgid ""
2297 " void guestfs_close (guestfs_h *g);\n"
2298 "\n"
2299 msgstr ""
2300
2301 # type: textblock
2302 #: ../src/guestfs.pod:1196
2303 msgid "This closes the connection handle and frees up all resources used."
2304 msgstr ""
2305
2306 # type: =head1
2307 #: ../src/guestfs.pod:1198
2308 msgid "ERROR HANDLING"
2309 msgstr ""
2310
2311 # type: textblock
2312 #: ../src/guestfs.pod:1200
2313 msgid ""
2314 "API functions can return errors.  For example, almost all functions that "
2315 "return C<int> will return C<-1> to indicate an error."
2316 msgstr ""
2317
2318 # type: textblock
2319 #: ../src/guestfs.pod:1203
2320 msgid ""
2321 "Additional information is available for errors: an error message string and "
2322 "optionally an error number (errno) if the thing that failed was a system "
2323 "call."
2324 msgstr ""
2325
2326 # type: textblock
2327 #: ../src/guestfs.pod:1207
2328 msgid ""
2329 "You can get at the additional information about the last error on the handle "
2330 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2331 "up an error handler with L</guestfs_set_error_handler>."
2332 msgstr ""
2333
2334 # type: textblock
2335 #: ../src/guestfs.pod:1212
2336 msgid ""
2337 "When the handle is created, a default error handler is installed which "
2338 "prints the error message string to C<stderr>.  For small short-running "
2339 "command line programs it is sufficient to do:"
2340 msgstr ""
2341
2342 # type: verbatim
2343 #: ../src/guestfs.pod:1216
2344 #, no-wrap
2345 msgid ""
2346 " if (guestfs_launch (g) == -1)\n"
2347 "   exit (EXIT_FAILURE);\n"
2348 "\n"
2349 msgstr ""
2350
2351 # type: textblock
2352 #: ../src/guestfs.pod:1219
2353 msgid ""
2354 "since the default error handler will ensure that an error message has been "
2355 "printed to C<stderr> before the program exits."
2356 msgstr ""
2357
2358 # type: textblock
2359 #: ../src/guestfs.pod:1222
2360 msgid ""
2361 "For other programs the caller will almost certainly want to install an "
2362 "alternate error handler or do error handling in-line like this:"
2363 msgstr ""
2364
2365 # type: verbatim
2366 #: ../src/guestfs.pod:1225
2367 #, no-wrap
2368 msgid ""
2369 " g = guestfs_create ();\n"
2370 " \n"
2371 msgstr ""
2372
2373 # type: verbatim
2374 #: ../src/guestfs.pod:1227
2375 #, no-wrap
2376 msgid ""
2377 " /* This disables the default behaviour of printing errors\n"
2378 "    on stderr. */\n"
2379 " guestfs_set_error_handler (g, NULL, NULL);\n"
2380 " \n"
2381 msgstr ""
2382
2383 # type: verbatim
2384 #: ../src/guestfs.pod:1231
2385 #, no-wrap
2386 msgid ""
2387 " if (guestfs_launch (g) == -1) {\n"
2388 "   /* Examine the error message and print it etc. */\n"
2389 "   char *msg = guestfs_last_error (g);\n"
2390 "   int errnum = guestfs_last_errno (g);\n"
2391 "   fprintf (stderr, \"%s\\n\", msg);\n"
2392 "   /* ... */\n"
2393 "  }\n"
2394 "\n"
2395 msgstr ""
2396
2397 # type: textblock
2398 #: ../src/guestfs.pod:1239
2399 msgid ""
2400 "Out of memory errors are handled differently.  The default action is to call "
2401 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
2402 "L</guestfs_set_out_of_memory_handler>."
2403 msgstr ""
2404
2405 # type: textblock
2406 #: ../src/guestfs.pod:1243
2407 msgid ""
2408 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2409 "because there is no handle if this happens there is no way to get additional "
2410 "error information.  However L</guestfs_create> is supposed to be a "
2411 "lightweight operation which can only fail because of insufficient memory (it "
2412 "returns NULL in this case)."
2413 msgstr ""
2414
2415 # type: =head2
2416 #: ../src/guestfs.pod:1249
2417 msgid "guestfs_last_error"
2418 msgstr ""
2419
2420 # type: verbatim
2421 #: ../src/guestfs.pod:1251
2422 #, no-wrap
2423 msgid ""
2424 " const char *guestfs_last_error (guestfs_h *g);\n"
2425 "\n"
2426 msgstr ""
2427
2428 # type: textblock
2429 #: ../src/guestfs.pod:1253
2430 msgid ""
2431 "This returns the last error message that happened on C<g>.  If there has not "
2432 "been an error since the handle was created, then this returns C<NULL>."
2433 msgstr ""
2434
2435 # type: textblock
2436 #: ../src/guestfs.pod:1257
2437 msgid ""
2438 "The lifetime of the returned string is until the next error occurs, or "
2439 "L</guestfs_close> is called."
2440 msgstr ""
2441
2442 # type: =head2
2443 #: ../src/guestfs.pod:1260
2444 msgid "guestfs_last_errno"
2445 msgstr ""
2446
2447 # type: verbatim
2448 #: ../src/guestfs.pod:1262
2449 #, no-wrap
2450 msgid ""
2451 " int guestfs_last_errno (guestfs_h *g);\n"
2452 "\n"
2453 msgstr ""
2454
2455 # type: textblock
2456 #: ../src/guestfs.pod:1264
2457 msgid "This returns the last error number (errno) that happened on C<g>."
2458 msgstr ""
2459
2460 # type: textblock
2461 #: ../src/guestfs.pod:1266
2462 msgid "If successful, an errno integer not equal to zero is returned."
2463 msgstr ""
2464
2465 # type: textblock
2466 #: ../src/guestfs.pod:1268
2467 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
2468 msgstr ""
2469
2470 # type: textblock
2471 #: ../src/guestfs.pod:1275
2472 msgid "There has not been any error on the handle."
2473 msgstr ""
2474
2475 # type: textblock
2476 #: ../src/guestfs.pod:1279
2477 msgid ""
2478 "There has been an error but the errno was meaningless.  This corresponds to "
2479 "the case where the error did not come from a failed system call, but for "
2480 "some other reason."
2481 msgstr ""
2482
2483 # type: textblock
2484 #: ../src/guestfs.pod:1285
2485 msgid ""
2486 "There was an error from a failed system call, but for some reason the errno "
2487 "was not captured and returned.  This usually indicates a bug in libguestfs."
2488 msgstr ""
2489
2490 # type: textblock
2491 #: ../src/guestfs.pod:1291
2492 msgid ""
2493 "Libguestfs tries to convert the errno from inside the applicance into a "
2494 "corresponding errno for the caller (not entirely trivial: the appliance "
2495 "might be running a completely different operating system from the library "
2496 "and error numbers are not standardized across Un*xen).  If this could not be "
2497 "done, then the error is translated to C<EINVAL>.  In practice this should "
2498 "only happen in very rare circumstances."
2499 msgstr ""
2500
2501 # type: =head2
2502 #: ../src/guestfs.pod:1299
2503 msgid "guestfs_set_error_handler"
2504 msgstr ""
2505
2506 # type: verbatim
2507 #: ../src/guestfs.pod:1301
2508 #, no-wrap
2509 msgid ""
2510 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2511 "                                           void *opaque,\n"
2512 "                                           const char *msg);\n"
2513 " void guestfs_set_error_handler (guestfs_h *g,\n"
2514 "                                 guestfs_error_handler_cb cb,\n"
2515 "                                 void *opaque);\n"
2516 "\n"
2517 msgstr ""
2518
2519 # type: textblock
2520 #: ../src/guestfs.pod:1308
2521 msgid ""
2522 "The callback C<cb> will be called if there is an error.  The parameters "
2523 "passed to the callback are an opaque data pointer and the error message "
2524 "string."
2525 msgstr ""
2526
2527 # type: textblock
2528 #: ../src/guestfs.pod:1312
2529 msgid ""
2530 "C<errno> is not passed to the callback.  To get that the callback must call "
2531 "L</guestfs_last_errno>."
2532 msgstr ""
2533
2534 # type: textblock
2535 #: ../src/guestfs.pod:1315
2536 msgid ""
2537 "Note that the message string C<msg> is freed as soon as the callback "
2538 "function returns, so if you want to stash it somewhere you must make your "
2539 "own copy."
2540 msgstr ""
2541
2542 # type: textblock
2543 #: ../src/guestfs.pod:1319
2544 msgid "The default handler prints messages on C<stderr>."
2545 msgstr ""
2546
2547 # type: textblock
2548 #: ../src/guestfs.pod:1321
2549 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2550 msgstr ""
2551
2552 # type: =head2
2553 #: ../src/guestfs.pod:1323
2554 msgid "guestfs_get_error_handler"
2555 msgstr ""
2556
2557 # type: verbatim
2558 #: ../src/guestfs.pod:1325
2559 #, no-wrap
2560 msgid ""
2561 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2562 "                                                     void **opaque_rtn);\n"
2563 "\n"
2564 msgstr ""
2565
2566 # type: textblock
2567 #: ../src/guestfs.pod:1328
2568 msgid "Returns the current error handler callback."
2569 msgstr ""
2570
2571 # type: =head2
2572 #: ../src/guestfs.pod:1330
2573 msgid "guestfs_set_out_of_memory_handler"
2574 msgstr ""
2575
2576 # type: verbatim
2577 #: ../src/guestfs.pod:1332
2578 #, no-wrap
2579 msgid ""
2580 " typedef void (*guestfs_abort_cb) (void);\n"
2581 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2582 "                                        guestfs_abort_cb);\n"
2583 "\n"
2584 msgstr ""
2585
2586 # type: textblock
2587 #: ../src/guestfs.pod:1336
2588 msgid ""
2589 "The callback C<cb> will be called if there is an out of memory situation.  "
2590 "I<Note this callback must not return>."
2591 msgstr ""
2592
2593 # type: textblock
2594 #: ../src/guestfs.pod:1339
2595 msgid "The default is to call L<abort(3)>."
2596 msgstr ""
2597
2598 # type: textblock
2599 #: ../src/guestfs.pod:1341
2600 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2601 msgstr ""
2602
2603 # type: =head2
2604 #: ../src/guestfs.pod:1344
2605 msgid "guestfs_get_out_of_memory_handler"
2606 msgstr ""
2607
2608 # type: verbatim
2609 #: ../src/guestfs.pod:1346
2610 #, no-wrap
2611 msgid ""
2612 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2613 "\n"
2614 msgstr ""
2615
2616 # type: textblock
2617 #: ../src/guestfs.pod:1348
2618 msgid "This returns the current out of memory handler."
2619 msgstr ""
2620
2621 # type: =head1
2622 #: ../src/guestfs.pod:1350
2623 msgid "API CALLS"
2624 msgstr ""
2625
2626 # type: textblock
2627 #: ../src/guestfs.pod:1352 ../fish/guestfish.pod:907
2628 msgid "@ACTIONS@"
2629 msgstr ""
2630
2631 # type: =head1
2632 #: ../src/guestfs.pod:1354
2633 msgid "STRUCTURES"
2634 msgstr ""
2635
2636 # type: textblock
2637 #: ../src/guestfs.pod:1356
2638 msgid "@STRUCTS@"
2639 msgstr ""
2640
2641 # type: =head1
2642 #: ../src/guestfs.pod:1358
2643 msgid "AVAILABILITY"
2644 msgstr ""
2645
2646 # type: =head2
2647 #: ../src/guestfs.pod:1360
2648 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2649 msgstr ""
2650
2651 # type: textblock
2652 #: ../src/guestfs.pod:1362
2653 msgid ""
2654 "Using L</guestfs_available> you can test availability of the following "
2655 "groups of functions.  This test queries the appliance to see if the "
2656 "appliance you are currently using supports the functionality."
2657 msgstr ""
2658
2659 # type: textblock
2660 #: ../src/guestfs.pod:1367
2661 msgid "@AVAILABILITY@"
2662 msgstr ""
2663
2664 # type: =head2
2665 #: ../src/guestfs.pod:1369
2666 msgid "GUESTFISH supported COMMAND"
2667 msgstr ""
2668
2669 # type: textblock
2670 #: ../src/guestfs.pod:1371
2671 msgid ""
2672 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2673 "prints out the available groups and whether they are supported by this build "
2674 "of libguestfs.  Note however that you have to do C<run> first."
2675 msgstr ""
2676
2677 # type: =head2
2678 #: ../src/guestfs.pod:1376
2679 msgid "SINGLE CALLS AT COMPILE TIME"
2680 msgstr ""
2681
2682 # type: textblock
2683 #: ../src/guestfs.pod:1378
2684 msgid ""
2685 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2686 "function, such as:"
2687 msgstr ""
2688
2689 # type: verbatim
2690 #: ../src/guestfs.pod:1381
2691 #, no-wrap
2692 msgid ""
2693 " #define LIBGUESTFS_HAVE_DD 1\n"
2694 "\n"
2695 msgstr ""
2696
2697 # type: textblock
2698 #: ../src/guestfs.pod:1383
2699 msgid "if L</guestfs_dd> is available."
2700 msgstr ""
2701
2702 # type: textblock
2703 #: ../src/guestfs.pod:1385
2704 msgid ""
2705 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2706 "function is available at compile time, we recommended using build tools such "
2707 "as autoconf or cmake.  For example in autotools you could use:"
2708 msgstr ""
2709
2710 # type: verbatim
2711 #: ../src/guestfs.pod:1390
2712 #, no-wrap
2713 msgid ""
2714 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2715 " AC_CHECK_FUNCS([guestfs_dd])\n"
2716 "\n"
2717 msgstr ""
2718
2719 # type: textblock
2720 #: ../src/guestfs.pod:1393
2721 msgid ""
2722 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2723 "in your program."
2724 msgstr ""
2725
2726 # type: =head2
2727 #: ../src/guestfs.pod:1396
2728 msgid "SINGLE CALLS AT RUN TIME"
2729 msgstr ""
2730
2731 # type: textblock
2732 #: ../src/guestfs.pod:1398
2733 msgid ""
2734 "Testing at compile time doesn't guarantee that a function really exists in "
2735 "the library.  The reason is that you might be dynamically linked against a "
2736 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2737 "This situation unfortunately results in a segmentation fault, which is a "
2738 "shortcoming of the C dynamic linking system itself."
2739 msgstr ""
2740
2741 # type: textblock
2742 #: ../src/guestfs.pod:1405
2743 msgid ""
2744 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2745 "in this example program (note that you still need the compile time check as "
2746 "well):"
2747 msgstr ""
2748
2749 # type: verbatim
2750 #: ../src/guestfs.pod:1409
2751 #, no-wrap
2752 msgid ""
2753 " #include <stdio.h>\n"
2754 " #include <stdlib.h>\n"
2755 " #include <unistd.h>\n"
2756 " #include <dlfcn.h>\n"
2757 " #include <guestfs.h>\n"
2758 " \n"
2759 msgstr ""
2760
2761 # type: verbatim
2762 #: ../src/guestfs.pod:1415
2763 #, no-wrap
2764 msgid ""
2765 " main ()\n"
2766 " {\n"
2767 " #ifdef LIBGUESTFS_HAVE_DD\n"
2768 "   void *dl;\n"
2769 "   int has_function;\n"
2770 " \n"
2771 msgstr ""
2772
2773 # type: verbatim
2774 #: ../src/guestfs.pod:1421
2775 #, no-wrap
2776 msgid ""
2777 "   /* Test if the function guestfs_dd is really available. */\n"
2778 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2779 "   if (!dl) {\n"
2780 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2781 "     exit (EXIT_FAILURE);\n"
2782 "   }\n"
2783 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2784 "   dlclose (dl);\n"
2785 " \n"
2786 msgstr ""
2787
2788 # type: verbatim
2789 #: ../src/guestfs.pod:1430
2790 #, no-wrap
2791 msgid ""
2792 "   if (!has_function)\n"
2793 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2794 "   else {\n"
2795 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2796 "     /* Now it's safe to call\n"
2797 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2798 "     */\n"
2799 "   }\n"
2800 " #else\n"
2801 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2802 " #endif\n"
2803 "  }\n"
2804 "\n"
2805 msgstr ""
2806
2807 # type: textblock
2808 #: ../src/guestfs.pod:1443
2809 msgid ""
2810 "You may think the above is an awful lot of hassle, and it is.  There are "
2811 "other ways outside of the C linking system to ensure that this kind of "
2812 "incompatibility never arises, such as using package versioning:"
2813 msgstr ""
2814
2815 # type: verbatim
2816 #: ../src/guestfs.pod:1448
2817 #, no-wrap
2818 msgid ""
2819 " Requires: libguestfs >= 1.0.80\n"
2820 "\n"
2821 msgstr ""
2822
2823 # type: =head1
2824 #: ../src/guestfs.pod:1450
2825 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2826 msgstr ""
2827
2828 # type: textblock
2829 #: ../src/guestfs.pod:1452
2830 msgid ""
2831 "A recent feature of the API is the introduction of calls which take optional "
2832 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2833 "takes variable arguments (ie. C<...>), as in this example:"
2834 msgstr ""
2835
2836 # type: verbatim
2837 #: ../src/guestfs.pod:1457
2838 #, no-wrap
2839 msgid ""
2840 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2841 "\n"
2842 msgstr ""
2843
2844 # type: textblock
2845 #: ../src/guestfs.pod:1459
2846 msgid ""
2847 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2848 "call with no optional arguments specified:"
2849 msgstr ""
2850
2851 # type: verbatim
2852 #: ../src/guestfs.pod:1462
2853 #, no-wrap
2854 msgid ""
2855 " guestfs_add_drive_opts (g, filename, -1);\n"
2856 "\n"
2857 msgstr ""
2858
2859 # type: textblock
2860 #: ../src/guestfs.pod:1464
2861 msgid "With a single optional argument:"
2862 msgstr ""
2863
2864 # type: verbatim
2865 #: ../src/guestfs.pod:1466
2866 #, no-wrap
2867 msgid ""
2868 " guestfs_add_drive_opts (g, filename,\n"
2869 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2870 "                         -1);\n"
2871 "\n"
2872 msgstr ""
2873
2874 # type: textblock
2875 #: ../src/guestfs.pod:1470
2876 msgid "With two:"
2877 msgstr ""
2878
2879 # type: verbatim
2880 #: ../src/guestfs.pod:1472
2881 #, no-wrap
2882 msgid ""
2883 " guestfs_add_drive_opts (g, filename,\n"
2884 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2885 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2886 "                         -1);\n"
2887 "\n"
2888 msgstr ""
2889
2890 # type: textblock
2891 #: ../src/guestfs.pod:1477
2892 msgid ""
2893 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2894 "happen!"
2895 msgstr ""
2896
2897 # type: =head2
2898 #: ../src/guestfs.pod:1480
2899 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2900 msgstr ""
2901
2902 # type: textblock
2903 #: ../src/guestfs.pod:1482
2904 msgid ""
2905 "The second variant has the same name with the suffix C<_va>, which works the "
2906 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2907 "example function, this is declared:"
2908 msgstr ""
2909
2910 # type: verbatim
2911 #: ../src/guestfs.pod:1486
2912 #, no-wrap
2913 msgid ""
2914 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2915 "                                va_list args);\n"
2916 "\n"
2917 msgstr ""
2918
2919 # type: =head2
2920 #: ../src/guestfs.pod:1489
2921 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2922 msgstr ""
2923
2924 # type: textblock
2925 #: ../src/guestfs.pod:1491
2926 msgid ""
2927 "The third variant is useful where you need to construct these calls.  You "
2928 "pass in a structure where you fill in the optional fields.  The structure "
2929 "has a bitmask as the first element which you must set to indicate which "
2930 "fields you have filled in.  For our example function the structure and call "
2931 "are declared:"
2932 msgstr ""
2933
2934 # type: verbatim
2935 #: ../src/guestfs.pod:1497
2936 #, no-wrap
2937 msgid ""
2938 " struct guestfs_add_drive_opts_argv {\n"
2939 "   uint64_t bitmask;\n"
2940 "   int readonly;\n"
2941 "   const char *format;\n"
2942 "   /* ... */\n"
2943 " };\n"
2944 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2945 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2946 "\n"
2947 msgstr ""
2948
2949 # type: textblock
2950 #: ../src/guestfs.pod:1506
2951 msgid "You could call it like this:"
2952 msgstr ""
2953
2954 # type: verbatim
2955 #: ../src/guestfs.pod:1508
2956 #, no-wrap
2957 msgid ""
2958 " struct guestfs_add_drive_opts_argv optargs = {\n"
2959 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2960 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2961 "   .readonly = 1,\n"
2962 "   .format = \"qcow2\"\n"
2963 " };\n"
2964 " \n"
2965 msgstr ""
2966
2967 # type: verbatim
2968 #: ../src/guestfs.pod:1515
2969 #, no-wrap
2970 msgid ""
2971 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2972 "\n"
2973 msgstr ""
2974
2975 # type: textblock
2976 #: ../src/guestfs.pod:1517 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1255
2977 msgid "Notes:"
2978 msgstr ""
2979
2980 # type: textblock
2981 #: ../src/guestfs.pod:1523
2982 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2983 msgstr ""
2984
2985 # type: textblock
2986 #: ../src/guestfs.pod:1528
2987 msgid "You do not need to fill in all fields of the structure."
2988 msgstr ""
2989
2990 # type: textblock
2991 #: ../src/guestfs.pod:1532
2992 msgid ""
2993 "There must be a one-to-one correspondence between fields of the structure "
2994 "that are filled in, and bits set in the bitmask."
2995 msgstr ""
2996
2997 # type: =head2
2998 #: ../src/guestfs.pod:1537
2999 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3000 msgstr ""
3001
3002 # type: textblock
3003 #: ../src/guestfs.pod:1539
3004 msgid ""
3005 "In other languages, optional arguments are expressed in the way that is "
3006 "natural for that language.  We refer you to the language-specific "
3007 "documentation for more details on that."
3008 msgstr ""
3009
3010 # type: textblock
3011 #: ../src/guestfs.pod:1543
3012 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3013 msgstr ""
3014
3015 # type: =head2
3016 #: ../src/guestfs.pod:1545
3017 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3018 msgstr ""
3019
3020 # type: textblock
3021 #: ../src/guestfs.pod:1547
3022 msgid ""
3023 "The child process generates events in some situations.  Current events "
3024 "include: receiving a log message, the child process exits."
3025 msgstr ""
3026
3027 # type: textblock
3028 #: ../src/guestfs.pod:1550
3029 msgid ""
3030 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3031 "types of events."
3032 msgstr ""
3033
3034 # type: textblock
3035 #: ../src/guestfs.pod:1553
3036 msgid ""
3037 "Only I<one callback of each type> can be registered for each handle.  "
3038 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3039 "that type.  Cancel all callbacks of this type by calling this function with "
3040 "C<cb> set to C<NULL>."
3041 msgstr ""
3042
3043 # type: =head2
3044 #: ../src/guestfs.pod:1558
3045 msgid "guestfs_set_log_message_callback"
3046 msgstr ""
3047
3048 # type: verbatim
3049 #: ../src/guestfs.pod:1560
3050 #, no-wrap
3051 msgid ""
3052 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3053 "                                         char *buf, int len);\n"
3054 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3055 "                                        guestfs_log_message_cb cb,\n"
3056 "                                        void *opaque);\n"
3057 "\n"
3058 msgstr ""
3059
3060 # type: textblock
3061 #: ../src/guestfs.pod:1566
3062 msgid ""
3063 "The callback function C<cb> will be called whenever qemu or the guest writes "
3064 "anything to the console."
3065 msgstr ""
3066
3067 # type: textblock
3068 #: ../src/guestfs.pod:1569
3069 msgid "Use this function to capture kernel messages and similar."
3070 msgstr ""
3071
3072 # type: textblock
3073 #: ../src/guestfs.pod:1571
3074 msgid ""
3075 "Normally there is no log message handler, and log messages are just "
3076 "discarded."
3077 msgstr ""
3078
3079 # type: =head2
3080 #: ../src/guestfs.pod:1574
3081 msgid "guestfs_set_subprocess_quit_callback"
3082 msgstr ""
3083
3084 # type: verbatim
3085 #: ../src/guestfs.pod:1576
3086 #, no-wrap
3087 msgid ""
3088 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3089 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3090 "                                            guestfs_subprocess_quit_cb cb,\n"
3091 "                                            void *opaque);\n"
3092 "\n"
3093 msgstr ""
3094
3095 # type: textblock
3096 #: ../src/guestfs.pod:1581
3097 msgid ""
3098 "The callback function C<cb> will be called when the child process quits, "
3099 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3100 "corresponds to a transition from any state to the CONFIG state)."
3101 msgstr ""
3102
3103 # type: =head2
3104 #: ../src/guestfs.pod:1586
3105 msgid "guestfs_set_launch_done_callback"
3106 msgstr ""
3107
3108 # type: verbatim
3109 #: ../src/guestfs.pod:1588
3110 #, no-wrap
3111 msgid ""
3112 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3113 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3114 "                                        guestfs_launch_done_cb cb,\n"
3115 "                                        void *opaque);\n"
3116 "\n"
3117 msgstr ""
3118
3119 # type: textblock
3120 #: ../src/guestfs.pod:1593
3121 msgid ""
3122 "The callback function C<cb> will be called when the child process becomes "
3123 "ready first time after it has been launched.  (This corresponds to a "
3124 "transition from LAUNCHING to the READY state)."
3125 msgstr ""
3126
3127 # type: =head2
3128 #: ../src/guestfs.pod:1597
3129 msgid "guestfs_set_close_callback"
3130 msgstr ""
3131
3132 # type: verbatim
3133 #: ../src/guestfs.pod:1599
3134 #, no-wrap
3135 msgid ""
3136 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3137 " void guestfs_set_close_callback (guestfs_h *g,\n"
3138 "                                  guestfs_close_cb cb,\n"
3139 "                                  void *opaque);\n"
3140 "\n"
3141 msgstr ""
3142
3143 # type: textblock
3144 #: ../src/guestfs.pod:1604
3145 msgid ""
3146 "The callback function C<cb> will be called while the handle is being closed "
3147 "(synchronously from L</guestfs_close>)."
3148 msgstr ""
3149
3150 # type: textblock
3151 #: ../src/guestfs.pod:1607
3152 msgid ""
3153 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3154 "handles that are open when the program exits.  This means that this callback "
3155 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3156 "problems in higher-level languages (eg. if your HLL interpreter has already "
3157 "been cleaned up by the time this is called, and if your callback then jumps "
3158 "into some HLL function)."
3159 msgstr ""
3160
3161 # type: =head2
3162 #: ../src/guestfs.pod:1615
3163 msgid "guestfs_set_progress_callback"
3164 msgstr ""
3165
3166 # type: verbatim
3167 #: ../src/guestfs.pod:1617
3168 #, no-wrap
3169 msgid ""
3170 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3171 "                                      int proc_nr, int serial,\n"
3172 "                                      uint64_t position, uint64_t total);\n"
3173 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3174 "                                     guestfs_progress_cb cb,\n"
3175 "                                     void *opaque);\n"
3176 "\n"
3177 msgstr ""
3178
3179 # type: textblock
3180 #: ../src/guestfs.pod:1624
3181 msgid ""
3182 "Some long-running operations can generate progress messages.  If this "
3183 "callback is registered, then it will be called each time a progress message "
3184 "is generated (usually two seconds after the operation started, and three "
3185 "times per second thereafter until it completes, although the frequency may "
3186 "change in future versions)."
3187 msgstr ""
3188
3189 # type: textblock
3190 #: ../src/guestfs.pod:1630
3191 msgid ""
3192 "The callback receives two numbers: C<position> and C<total>.  The units of "
3193 "C<total> are not defined, although for some operations C<total> may relate "
3194 "in some way to the amount of data to be transferred (eg. in bytes or "
3195 "megabytes), and C<position> may be the portion which has been transferred."
3196 msgstr ""
3197
3198 # type: textblock
3199 #: ../src/guestfs.pod:1636
3200 msgid "The only defined and stable parts of the API are:"
3201 msgstr ""
3202
3203 # type: textblock
3204 #: ../src/guestfs.pod:1642
3205 msgid ""
3206 "The callback can display to the user some type of progress bar or indicator "
3207 "which shows the ratio of C<position>:C<total>."
3208 msgstr ""
3209
3210 # type: textblock
3211 #: ../src/guestfs.pod:1647
3212 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3213 msgstr ""
3214
3215 # type: textblock
3216 #: ../src/guestfs.pod:1651
3217 msgid ""
3218 "If any progress notification is sent during a call, then a final progress "
3219 "notification is always sent when C<position> = C<total>."
3220 msgstr ""
3221
3222 # type: textblock
3223 #: ../src/guestfs.pod:1654
3224 msgid ""
3225 "This is to simplify caller code, so callers can easily set the progress "
3226 "indicator to \"100%\" at the end of the operation, without requiring special "
3227 "code to detect this case."
3228 msgstr ""
3229
3230 # type: textblock
3231 #: ../src/guestfs.pod:1660
3232 msgid ""
3233 "The callback also receives the procedure number and serial number of the "
3234 "call.  These are only useful for debugging protocol issues, and the callback "
3235 "can normally ignore them.  The callback may want to print these numbers in "
3236 "error messages or debugging messages."
3237 msgstr ""
3238
3239 # type: =head1
3240 #: ../src/guestfs.pod:1665
3241 msgid "PRIVATE DATA AREA"
3242 msgstr ""
3243
3244 # type: textblock
3245 #: ../src/guestfs.pod:1667
3246 msgid ""
3247 "You can attach named pieces of private data to the libguestfs handle, and "
3248 "fetch them by name for the lifetime of the handle.  This is called the "
3249 "private data area and is only available from the C API."
3250 msgstr ""
3251
3252 # type: textblock
3253 #: ../src/guestfs.pod:1671
3254 msgid "To attach a named piece of data, use the following call:"
3255 msgstr ""
3256
3257 # type: verbatim
3258 #: ../src/guestfs.pod:1673
3259 #, no-wrap
3260 msgid ""
3261 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3262 "\n"
3263 msgstr ""
3264
3265 # type: textblock
3266 #: ../src/guestfs.pod:1675
3267 msgid ""
3268 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3269 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3270 "overwritten."
3271 msgstr ""
3272
3273 # type: textblock
3274 #: ../src/guestfs.pod:1679
3275 msgid ""
3276 "You can use any C<key> you want, but names beginning with an underscore "
3277 "character are reserved for internal libguestfs purposes (for implementing "
3278 "language bindings).  It is recommended to prefix the name with some unique "
3279 "string to avoid collisions with other users."
3280 msgstr ""
3281
3282 # type: textblock
3283 #: ../src/guestfs.pod:1684
3284 msgid "To retrieve the pointer, use:"
3285 msgstr ""
3286
3287 # type: verbatim
3288 #: ../src/guestfs.pod:1686
3289 #, no-wrap
3290 msgid ""
3291 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3292 "\n"
3293 msgstr ""
3294
3295 # type: textblock
3296 #: ../src/guestfs.pod:1688
3297 msgid ""
3298 "This function returns C<NULL> if either no data is found associated with "
3299 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3300 "C<NULL>."
3301 msgstr ""
3302
3303 # type: textblock
3304 #: ../src/guestfs.pod:1692
3305 msgid ""
3306 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3307 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3308 "all.  In particular, libguestfs does I<not> try to free the data when the "
3309 "handle is closed.  If the data must be freed, then the caller must either "
3310 "free it before calling L</guestfs_close> or must set up a close callback to "
3311 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3312 "can be registered for a handle)."
3313 msgstr ""
3314
3315 # type: textblock
3316 #: ../src/guestfs.pod:1700
3317 msgid ""
3318 "The private data area is implemented using a hash table, and should be "
3319 "reasonably efficient for moderate numbers of keys."
3320 msgstr ""
3321
3322 # type: =end
3323 #: ../src/guestfs.pod:1703 ../src/guestfs.pod:1708
3324 msgid "html"
3325 msgstr ""
3326
3327 # type: textblock
3328 #: ../src/guestfs.pod:1705
3329 msgid ""
3330 "<!-- old anchor for the next section --> <a "
3331 "name=\"state_machine_and_low_level_event_api\"/>"
3332 msgstr ""
3333
3334 # type: =head1
3335 #: ../src/guestfs.pod:1710
3336 msgid "ARCHITECTURE"
3337 msgstr ""
3338
3339 # type: textblock
3340 #: ../src/guestfs.pod:1712
3341 msgid ""
3342 "Internally, libguestfs is implemented by running an appliance (a special "
3343 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3344 "process of the main program."
3345 msgstr ""
3346
3347 # type: verbatim
3348 #: ../src/guestfs.pod:1716
3349 #, no-wrap
3350 msgid ""
3351 "  ___________________\n"
3352 " /                   \\\n"
3353 " | main program      |\n"
3354 " |                   |\n"
3355 " |                   |           child process / appliance\n"
3356 " |                   |           __________________________\n"
3357 " |                   |          / qemu                     \\\n"
3358 " +-------------------+   RPC    |      +-----------------+ |\n"
3359 " | libguestfs     <--------------------> guestfsd        | |\n"
3360 " |                   |          |      +-----------------+ |\n"
3361 " \\___________________/          |      | Linux kernel    | |\n"
3362 "                                |      +--^--------------+ |\n"
3363 "                                \\_________|________________/\n"
3364 "                                          |\n"
3365 "                                   _______v______\n"
3366 "                                  /              \\\n"
3367 "                                  | Device or    |\n"
3368 "                                  | disk image   |\n"
3369 "                                  \\______________/\n"
3370 "\n"
3371 msgstr ""
3372
3373 # type: textblock
3374 #: ../src/guestfs.pod:1736
3375 msgid ""
3376 "The library, linked to the main program, creates the child process and hence "
3377 "the appliance in the L</guestfs_launch> function."
3378 msgstr ""
3379
3380 # type: textblock
3381 #: ../src/guestfs.pod:1739
3382 msgid ""
3383 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3384 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3385 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3386 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3387 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3388 "attached to the qemu process which translates device access by the "
3389 "appliance's Linux kernel into accesses to the image."
3390 msgstr ""
3391
3392 # type: textblock
3393 #: ../src/guestfs.pod:1748
3394 msgid ""
3395 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3396 "Although the disk image you are attached to might also be used by some "
3397 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3398 "care if both libguestfs's qemu process and your virtual machine are trying "
3399 "to update the disk image at the same time, since these usually results in "
3400 "massive disk corruption)."
3401 msgstr ""
3402
3403 # type: =head1
3404 #: ../src/guestfs.pod:1755
3405 msgid "STATE MACHINE"
3406 msgstr ""
3407
3408 # type: textblock
3409 #: ../src/guestfs.pod:1757
3410 msgid "libguestfs uses a state machine to model the child process:"
3411 msgstr ""
3412
3413 # type: verbatim
3414 #: ../src/guestfs.pod:1759
3415 #, no-wrap
3416 msgid ""
3417 "                         |\n"
3418 "                    guestfs_create\n"
3419 "                         |\n"
3420 "                         |\n"
3421 "                     ____V_____\n"
3422 "                    /          \\\n"
3423 "                    |  CONFIG  |\n"
3424 "                    \\__________/\n"
3425 "                     ^ ^   ^  \\\n"
3426 "                    /  |    \\  \\ guestfs_launch\n"
3427 "                   /   |    _\\__V______\n"
3428 "                  /    |   /           \\\n"
3429 "                 /     |   | LAUNCHING |\n"
3430 "                /      |   \\___________/\n"
3431 "               /       |       /\n"
3432 "              /        |  guestfs_launch\n"
3433 "             /         |     /\n"
3434 "    ______  /        __|____V\n"
3435 "   /      \\ ------> /        \\\n"
3436 "   | BUSY |         | READY  |\n"
3437 "   \\______/ <------ \\________/\n"
3438 "\n"
3439 msgstr ""
3440
3441 # type: textblock
3442 #: ../src/guestfs.pod:1781
3443 msgid ""
3444 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3445 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3446 "(3) alternating between READY and BUSY as commands are issued to, and "
3447 "carried out by, the child process."
3448 msgstr ""
3449
3450 # type: textblock
3451 #: ../src/guestfs.pod:1786
3452 msgid ""
3453 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3454 "asynchronously at any time (eg. due to some internal error), and that causes "
3455 "the state to transition back to CONFIG."
3456 msgstr ""
3457
3458 # type: textblock
3459 #: ../src/guestfs.pod:1790
3460 msgid ""
3461 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3462 "issued when in the CONFIG state."
3463 msgstr ""
3464
3465 # type: textblock
3466 #: ../src/guestfs.pod:1793
3467 msgid ""
3468 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3469 "L</guestfs_launch> blocks until the child process is READY to accept "
3470 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3471 "moves the state from CONFIG to LAUNCHING while it is running."
3472 msgstr ""
3473
3474 # type: textblock
3475 #: ../src/guestfs.pod:1799
3476 msgid ""
3477 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3478 "state.  These API calls block waiting for the command to be carried out "
3479 "(ie. the state to transition to BUSY and then back to READY).  There are no "
3480 "non-blocking versions, and no way to issue more than one command per handle "
3481 "at the same time."
3482 msgstr ""
3483
3484 # type: textblock
3485 #: ../src/guestfs.pod:1805
3486 msgid ""
3487 "Finally, the child process sends asynchronous messages back to the main "
3488 "program, such as kernel log messages.  You can register a callback to "
3489 "receive these messages."
3490 msgstr ""
3491
3492 # type: =head1
3493 #: ../src/guestfs.pod:1809
3494 msgid "INTERNALS"
3495 msgstr ""
3496
3497 # type: =head2
3498 #: ../src/guestfs.pod:1811
3499 msgid "COMMUNICATION PROTOCOL"
3500 msgstr ""
3501
3502 # type: textblock
3503 #: ../src/guestfs.pod:1813
3504 msgid ""
3505 "Don't rely on using this protocol directly.  This section documents how it "
3506 "currently works, but it may change at any time."
3507 msgstr ""
3508
3509 # type: textblock
3510 #: ../src/guestfs.pod:1816
3511 msgid ""
3512 "The protocol used to talk between the library and the daemon running inside "
3513 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3514 "1014, RFC 1832, RFC 4506)."
3515 msgstr ""
3516
3517 # type: textblock
3518 #: ../src/guestfs.pod:1820
3519 msgid ""
3520 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3521 "this file is automatically generated)."
3522 msgstr ""
3523
3524 # type: textblock
3525 #: ../src/guestfs.pod:1823
3526 msgid ""
3527 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3528 "and C<FileOut> parameters, which are handled with very simple request/reply "
3529 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3530 "parameters, which use the same request and reply messages, but they may also "
3531 "be followed by files sent using a chunked encoding."
3532 msgstr ""
3533
3534 # type: =head3
3535 #: ../src/guestfs.pod:1830
3536 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3537 msgstr ""
3538
3539 # type: textblock
3540 #: ../src/guestfs.pod:1832
3541 msgid "For ordinary functions, the request message is:"
3542 msgstr ""
3543
3544 # type: verbatim
3545 #: ../src/guestfs.pod:1834
3546 #, no-wrap
3547 msgid ""
3548 " total length (header + arguments,\n"
3549 "      but not including the length word itself)\n"
3550 " struct guestfs_message_header (encoded as XDR)\n"
3551 " struct guestfs_<foo>_args (encoded as XDR)\n"
3552 "\n"
3553 msgstr ""
3554
3555 # type: textblock
3556 #: ../src/guestfs.pod:1839
3557 msgid ""
3558 "The total length field allows the daemon to allocate a fixed size buffer "
3559 "into which it slurps the rest of the message.  As a result, the total length "
3560 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3561 "effective size of any request is limited to somewhere under this size."
3562 msgstr ""
3563
3564 # type: textblock
3565 #: ../src/guestfs.pod:1845
3566 msgid ""
3567 "Note also that many functions don't take any arguments, in which case the "
3568 "C<guestfs_I<foo>_args> is completely omitted."
3569 msgstr ""
3570
3571 # type: textblock
3572 #: ../src/guestfs.pod:1848
3573 msgid ""
3574 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3575 "receiver knows what type of args structure to expect, or none at all."
3576 msgstr ""
3577
3578 # type: textblock
3579 #: ../src/guestfs.pod:1852
3580 msgid "The reply message for ordinary functions is:"
3581 msgstr ""
3582
3583 # type: verbatim
3584 #: ../src/guestfs.pod:1854
3585 #, no-wrap
3586 msgid ""
3587 " total length (header + ret,\n"
3588 "      but not including the length word itself)\n"
3589 " struct guestfs_message_header (encoded as XDR)\n"
3590 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3591 "\n"
3592 msgstr ""
3593
3594 # type: textblock
3595 #: ../src/guestfs.pod:1859
3596 msgid ""
3597 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3598 "functions that return no formal return values."
3599 msgstr ""
3600
3601 # type: textblock
3602 #: ../src/guestfs.pod:1862
3603 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3604 msgstr ""
3605
3606 # type: textblock
3607 #: ../src/guestfs.pod:1865
3608 msgid ""
3609 "In the case of an error, a flag is set in the header, and the reply message "
3610 "is slightly changed:"
3611 msgstr ""
3612
3613 # type: verbatim
3614 #: ../src/guestfs.pod:1868
3615 #, no-wrap
3616 msgid ""
3617 " total length (header + error,\n"
3618 "      but not including the length word itself)\n"
3619 " struct guestfs_message_header (encoded as XDR)\n"
3620 " struct guestfs_message_error (encoded as XDR)\n"
3621 "\n"
3622 msgstr ""
3623
3624 # type: textblock
3625 #: ../src/guestfs.pod:1873
3626 msgid ""
3627 "The C<guestfs_message_error> structure contains the error message as a "
3628 "string."
3629 msgstr ""
3630
3631 # type: =head3
3632 #: ../src/guestfs.pod:1876
3633 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3634 msgstr ""
3635
3636 # type: textblock
3637 #: ../src/guestfs.pod:1878
3638 msgid ""
3639 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3640 "The normal request message is sent (see above).  However this is followed by "
3641 "a sequence of file chunks."
3642 msgstr ""
3643
3644 # type: verbatim
3645 #: ../src/guestfs.pod:1882
3646 #, no-wrap
3647 msgid ""
3648 " total length (header + arguments,\n"
3649 "      but not including the length word itself,\n"
3650 "      and not including the chunks)\n"
3651 " struct guestfs_message_header (encoded as XDR)\n"
3652 " struct guestfs_<foo>_args (encoded as XDR)\n"
3653 " sequence of chunks for FileIn param #0\n"
3654 " sequence of chunks for FileIn param #1 etc.\n"
3655 "\n"
3656 msgstr ""
3657
3658 # type: textblock
3659 #: ../src/guestfs.pod:1890
3660 msgid "The \"sequence of chunks\" is:"
3661 msgstr ""
3662
3663 # type: verbatim
3664 #: ../src/guestfs.pod:1892
3665 #, no-wrap
3666 msgid ""
3667 " length of chunk (not including length word itself)\n"
3668 " struct guestfs_chunk (encoded as XDR)\n"
3669 " length of chunk\n"
3670 " struct guestfs_chunk (encoded as XDR)\n"
3671 "   ...\n"
3672 " length of chunk\n"
3673 " struct guestfs_chunk (with data.data_len == 0)\n"
3674 "\n"
3675 msgstr ""
3676
3677 # type: textblock
3678 #: ../src/guestfs.pod:1900
3679 msgid ""
3680 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3681 "is set in the final chunk to indicate either successful completion or early "
3682 "cancellation."
3683 msgstr ""
3684
3685 # type: textblock
3686 #: ../src/guestfs.pod:1904
3687 msgid ""
3688 "At time of writing there are no functions that have more than one FileIn "
3689 "parameter.  However this is (theoretically) supported, by sending the "
3690 "sequence of chunks for each FileIn parameter one after another (from left to "
3691 "right)."
3692 msgstr ""
3693
3694 # type: textblock
3695 #: ../src/guestfs.pod:1909
3696 msgid ""
3697 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3698 "transfer.  The library does this by sending a chunk with a special flag set "
3699 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3700 "RPC, does I<not> send any reply, and goes back to reading the next request."
3701 msgstr ""
3702
3703 # type: textblock
3704 #: ../src/guestfs.pod:1915
3705 msgid ""
3706 "The daemon may also cancel.  It does this by writing a special word "
3707 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3708 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3709 "cancel chunk).  The special word is chosen so that even if cancellation "
3710 "happens right at the end of the transfer (after the library has finished "
3711 "writing and has started listening for the reply), the \"spurious\" cancel "
3712 "flag will not be confused with the reply message."
3713 msgstr ""
3714
3715 # type: textblock
3716 #: ../src/guestfs.pod:1924
3717 msgid ""
3718 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3719 "limit), and also files where the size is not known in advance (eg. from "
3720 "pipes or sockets).  However the chunks are rather small "
3721 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3722 "to keep much in memory."
3723 msgstr ""
3724
3725 # type: =head3
3726 #: ../src/guestfs.pod:1930
3727 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3728 msgstr ""
3729
3730 # type: textblock
3731 #: ../src/guestfs.pod:1932
3732 msgid ""
3733 "The protocol for FileOut parameters is exactly the same as for FileIn "
3734 "parameters, but with the roles of daemon and library reversed."
3735 msgstr ""
3736
3737 # type: verbatim
3738 #: ../src/guestfs.pod:1935
3739 #, no-wrap
3740 msgid ""
3741 " total length (header + ret,\n"
3742 "      but not including the length word itself,\n"
3743 "      and not including the chunks)\n"
3744 " struct guestfs_message_header (encoded as XDR)\n"
3745 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3746 " sequence of chunks for FileOut param #0\n"
3747 " sequence of chunks for FileOut param #1 etc.\n"
3748 "\n"
3749 msgstr ""
3750
3751 # type: =head3
3752 #: ../src/guestfs.pod:1943
3753 msgid "INITIAL MESSAGE"
3754 msgstr ""
3755
3756 # type: textblock
3757 #: ../src/guestfs.pod:1945
3758 msgid ""
3759 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3760 "which indicates that the guest and daemon is alive.  This is what "
3761 "L</guestfs_launch> waits for."
3762 msgstr ""
3763
3764 # type: =head3
3765 #: ../src/guestfs.pod:1949
3766 msgid "PROGRESS NOTIFICATION MESSAGES"
3767 msgstr ""
3768
3769 # type: textblock
3770 #: ../src/guestfs.pod:1951
3771 msgid ""
3772 "The daemon may send progress notification messages at any time.  These are "
3773 "distinguished by the normal length word being replaced by "
3774 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3775 msgstr ""
3776
3777 # type: textblock
3778 #: ../src/guestfs.pod:1955
3779 msgid ""
3780 "The library turns them into progress callbacks (see "
3781 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3782 "discards them if not."
3783 msgstr ""
3784
3785 # type: textblock
3786 #: ../src/guestfs.pod:1959
3787 msgid ""
3788 "The daemon self-limits the frequency of progress messages it sends (see "
3789 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3790 "messages."
3791 msgstr ""
3792
3793 # type: =head1
3794 #: ../src/guestfs.pod:1963
3795 msgid "LIBGUESTFS VERSION NUMBERS"
3796 msgstr ""
3797
3798 # type: textblock
3799 #: ../src/guestfs.pod:1965
3800 msgid ""
3801 "Since April 2010, libguestfs has started to make separate development and "
3802 "stable releases, along with corresponding branches in our git repository.  "
3803 "These separate releases can be identified by version number:"
3804 msgstr ""
3805
3806 # type: verbatim
3807 #: ../src/guestfs.pod:1970
3808 #, no-wrap
3809 msgid ""
3810 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3811 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3812 "       |\n"
3813 "       v\n"
3814 " 1  .  3  .  5\n"
3815 " ^           ^\n"
3816 " |           |\n"
3817 " |           `-------- sub-version\n"
3818 " |\n"
3819 " `------ always '1' because we don't change the ABI\n"
3820 "\n"
3821 msgstr ""
3822
3823 # type: textblock
3824 #: ../src/guestfs.pod:1981
3825 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3826 msgstr ""
3827
3828 # type: textblock
3829 #: ../src/guestfs.pod:1983
3830 msgid ""
3831 "As time passes we cherry pick fixes from the development branch and backport "
3832 "those into the stable branch, the effect being that the stable branch should "
3833 "get more stable and less buggy over time.  So the stable releases are ideal "
3834 "for people who don't need new features but would just like the software to "
3835 "work."
3836 msgstr ""
3837
3838 # type: textblock
3839 #: ../src/guestfs.pod:1989
3840 msgid "Our criteria for backporting changes are:"
3841 msgstr ""
3842
3843 # type: textblock
3844 #: ../src/guestfs.pod:1995
3845 msgid ""
3846 "Documentation changes which don't affect any code are backported unless the "
3847 "documentation refers to a future feature which is not in stable."
3848 msgstr ""
3849
3850 # type: textblock
3851 #: ../src/guestfs.pod:2001
3852 msgid ""
3853 "Bug fixes which are not controversial, fix obvious problems, and have been "
3854 "well tested are backported."
3855 msgstr ""
3856
3857 # type: textblock
3858 #: ../src/guestfs.pod:2006
3859 msgid ""
3860 "Simple rearrangements of code which shouldn't affect how it works get "
3861 "backported.  This is so that the code in the two branches doesn't get too "
3862 "far out of step, allowing us to backport future fixes more easily."
3863 msgstr ""
3864
3865 # type: textblock
3866 #: ../src/guestfs.pod:2012
3867 msgid ""
3868 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3869 "exceptional case: the new feature is required in order to implement an "
3870 "important bug fix."
3871 msgstr ""
3872
3873 # type: textblock
3874 #: ../src/guestfs.pod:2018
3875 msgid ""
3876 "A new stable branch starts when we think the new features in development are "
3877 "substantial and compelling enough over the current stable branch to warrant "
3878 "it.  When that happens we create new stable and development versions 1.N.0 "
3879 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3880 "stable at this point, but by backporting fixes from development, that branch "
3881 "will stabilize over time."
3882 msgstr ""
3883
3884 # type: =head1
3885 #: ../src/guestfs.pod:2026 ../fish/guestfish.pod:914 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330 ../tools/virt-rescue.pl:255
3886 msgid "ENVIRONMENT VARIABLES"
3887 msgstr ""
3888
3889 # type: =item
3890 #: ../src/guestfs.pod:2030 ../fish/guestfish.pod:940
3891 msgid "LIBGUESTFS_APPEND"
3892 msgstr ""
3893
3894 # type: textblock
3895 #: ../src/guestfs.pod:2032 ../fish/guestfish.pod:942
3896 msgid "Pass additional options to the guest kernel."
3897 msgstr ""
3898
3899 # type: =item
3900 #: ../src/guestfs.pod:2034 ../fish/guestfish.pod:944
3901 msgid "LIBGUESTFS_DEBUG"
3902 msgstr ""
3903
3904 # type: textblock
3905 #: ../src/guestfs.pod:2036
3906 msgid ""
3907 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3908 "effect as calling C<guestfs_set_verbose (g, 1)>."
3909 msgstr ""
3910
3911 # type: =item
3912 #: ../src/guestfs.pod:2039 ../fish/guestfish.pod:949
3913 msgid "LIBGUESTFS_MEMSIZE"
3914 msgstr ""
3915
3916 # type: textblock
3917 #: ../src/guestfs.pod:2041 ../fish/guestfish.pod:951
3918 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3919 msgstr ""
3920
3921 # type: verbatim
3922 #: ../src/guestfs.pod:2044 ../fish/guestfish.pod:954
3923 #, no-wrap
3924 msgid ""
3925 " LIBGUESTFS_MEMSIZE=700\n"
3926 "\n"
3927 msgstr ""
3928
3929 # type: =item
3930 #: ../src/guestfs.pod:2046 ../fish/guestfish.pod:956
3931 msgid "LIBGUESTFS_PATH"
3932 msgstr ""
3933
3934 # type: textblock
3935 #: ../src/guestfs.pod:2048
3936 msgid ""
3937 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3938 "the discussion of paths in section PATH above."
3939 msgstr ""
3940
3941 # type: =item
3942 #: ../src/guestfs.pod:2051 ../fish/guestfish.pod:961
3943 msgid "LIBGUESTFS_QEMU"
3944 msgstr ""
3945
3946 # type: textblock
3947 #: ../src/guestfs.pod:2053 ../fish/guestfish.pod:963
3948 msgid ""
3949 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3950 "which was found at compile time by the configure script is used."
3951 msgstr ""
3952
3953 # type: textblock
3954 #: ../src/guestfs.pod:2057
3955 msgid "See also L</QEMU WRAPPERS> above."
3956 msgstr ""
3957
3958 # type: =item
3959 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:967
3960 msgid "LIBGUESTFS_TRACE"
3961 msgstr ""
3962
3963 # type: textblock
3964 #: ../src/guestfs.pod:2061
3965 msgid ""
3966 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3967 "effect as calling C<guestfs_set_trace (g, 1)>."
3968 msgstr ""
3969
3970 # type: =item
3971 #: ../src/guestfs.pod:2064 ../fish/guestfish.pod:976
3972 msgid "TMPDIR"
3973 msgstr ""
3974
3975 # type: textblock
3976 #: ../src/guestfs.pod:2066 ../fish/guestfish.pod:978
3977 msgid "Location of temporary directory, defaults to C</tmp>."
3978 msgstr ""
3979
3980 # type: textblock
3981 #: ../src/guestfs.pod:2068 ../fish/guestfish.pod:980
3982 msgid ""
3983 "If libguestfs was compiled to use the supermin appliance then the real "
3984 "appliance is cached in this directory, shared between all handles belonging "
3985 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3986 "use in case C</tmp> is not large enough."
3987 msgstr ""
3988
3989 # type: =head1
3990 #: ../src/guestfs.pod:2076 ../fish/guestfish.pod:1038 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233 ../inspector/virt-inspector.pl:452 ../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
3991 msgid "SEE ALSO"
3992 msgstr ""
3993
3994 # type: textblock
3995 #: ../src/guestfs.pod:2078
3996 msgid ""
3997 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
3998 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
3999 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
4000 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4001 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4002 msgstr ""
4003
4004 # type: textblock
4005 #: ../src/guestfs.pod:2096
4006 msgid ""
4007 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
4008 "L<lvm(8)>, L<disktype(1)>."
4009 msgstr ""
4010
4011 # type: =head1
4012 #: ../src/guestfs.pod:2103 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
4013 msgid "BUGS"
4014 msgstr ""
4015
4016 # type: textblock
4017 #: ../src/guestfs.pod:2105
4018 msgid "To get a list of bugs against libguestfs use this link:"
4019 msgstr ""
4020
4021 # type: textblock
4022 #: ../src/guestfs.pod:2107
4023 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
4024 msgstr ""
4025
4026 # type: textblock
4027 #: ../src/guestfs.pod:2109
4028 msgid "To report a new bug against libguestfs use this link:"
4029 msgstr ""
4030
4031 # type: textblock
4032 #: ../src/guestfs.pod:2111
4033 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
4034 msgstr ""
4035
4036 # type: textblock
4037 #: ../src/guestfs.pod:2113
4038 msgid "When reporting a bug, please check:"
4039 msgstr ""
4040
4041 # type: textblock
4042 #: ../src/guestfs.pod:2119
4043 msgid "That the bug hasn't been reported already."
4044 msgstr ""
4045
4046 # type: textblock
4047 #: ../src/guestfs.pod:2123
4048 msgid "That you are testing a recent version."
4049 msgstr ""
4050
4051 # type: textblock
4052 #: ../src/guestfs.pod:2127
4053 msgid "Describe the bug accurately, and give a way to reproduce it."
4054 msgstr ""
4055
4056 # type: textblock
4057 #: ../src/guestfs.pod:2131
4058 msgid ""
4059 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4060 "bug report."
4061 msgstr ""
4062
4063 # type: =head1
4064 #: ../src/guestfs.pod:2136 ../fish/guestfish.pod:1055 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:462
4065 msgid "AUTHORS"
4066 msgstr ""
4067
4068 # type: textblock
4069 #: ../src/guestfs.pod:2138 ../fish/guestfish.pod:1057 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4070 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4071 msgstr ""
4072
4073 # type: =head1
4074 #: ../src/guestfs.pod:2140 ../fish/guestfish.pod:1059 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248 ../inspector/virt-inspector.pl:476 ../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
4075 msgid "COPYRIGHT"
4076 msgstr ""
4077
4078 # type: textblock
4079 #: ../src/guestfs.pod:2142 ../fish/guestfish.pod:1061 ../fuse/guestmount.pod:250
4080 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4081 msgstr ""
4082
4083 # type: textblock
4084 #: ../src/guestfs.pod:2145
4085 msgid ""
4086 "This library is free software; you can redistribute it and/or modify it "
4087 "under the terms of the GNU Lesser General Public License as published by the "
4088 "Free Software Foundation; either version 2 of the License, or (at your "
4089 "option) any later version."
4090 msgstr ""
4091
4092 # type: textblock
4093 #: ../src/guestfs.pod:2150
4094 msgid ""
4095 "This library is distributed in the hope that it will be useful, but WITHOUT "
4096 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4097 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4098 "for more details."
4099 msgstr ""
4100
4101 # type: textblock
4102 #: ../src/guestfs.pod:2155
4103 msgid ""
4104 "You should have received a copy of the GNU Lesser General Public License "
4105 "along with this library; if not, write to the Free Software Foundation, "
4106 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4107 msgstr ""
4108
4109 # type: =head2
4110 #: ../src/guestfs-actions.pod:1
4111 msgid "guestfs_add_cdrom"
4112 msgstr ""
4113
4114 # type: verbatim
4115 #: ../src/guestfs-actions.pod:3
4116 #, no-wrap
4117 msgid ""
4118 " int\n"
4119 " guestfs_add_cdrom (guestfs_h *g,\n"
4120 "                    const char *filename);\n"
4121 "\n"
4122 msgstr ""
4123
4124 # type: textblock
4125 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4126 msgid "This function adds a virtual CD-ROM disk image to the guest."
4127 msgstr ""
4128
4129 # type: textblock
4130 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4131 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4132 msgstr ""
4133
4134 # type: textblock
4135 #: ../src/guestfs-actions.pod:17
4136 msgid ""
4137 "This call checks for the existence of C<filename>.  This stops you from "
4138 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4139 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4140 "instead."
4141 msgstr ""
4142
4143 # type: textblock
4144 #: ../src/guestfs-actions.pod:24
4145 msgid ""
4146 "If you just want to add an ISO file (often you use this as an efficient way "
4147 "to transfer large files into the guest), then you should probably use "
4148 "C<guestfs_add_drive_ro> instead."
4149 msgstr ""
4150
4151 # type: textblock
4152 #: ../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:3162 ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3322 ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3349 ../src/guestfs-actions.pod:3363 ../src/guestfs-actions.pod:3378 ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3523 ../src/guestfs-actions.pod:3546 ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3686 ../src/guestfs-actions.pod:3722 ../src/guestfs-actions.pod:3738 ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3766 ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3909 ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:3978 ../src/guestfs-actions.pod:3996 ../src/guestfs-actions.pod:4012 ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4072 ../src/guestfs-actions.pod:4092 ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4191 ../src/guestfs-actions.pod:4210 ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4239 ../src/guestfs-actions.pod:4252 ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4332 ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:4383 ../src/guestfs-actions.pod:4432 ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4511 ../src/guestfs-actions.pod:4528 ../src/guestfs-actions.pod:4546 ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:4809 ../src/guestfs-actions.pod:4875 ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:4905 ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5241 ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5267 ../src/guestfs-actions.pod:5279 ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5330 ../src/guestfs-actions.pod:5349 ../src/guestfs-actions.pod:5368 ../src/guestfs-actions.pod:5386 ../src/guestfs-actions.pod:5409 ../src/guestfs-actions.pod:5427 ../src/guestfs-actions.pod:5446 ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5486 ../src/guestfs-actions.pod:5503 ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:5555 ../src/guestfs-actions.pod:5574 ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5628 ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5841 ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5974 ../src/guestfs-actions.pod:5987 ../src/guestfs-actions.pod:6000 ../src/guestfs-actions.pod:6022 ../src/guestfs-actions.pod:6035 ../src/guestfs-actions.pod:6048 ../src/guestfs-actions.pod:6061 ../src/guestfs-actions.pod:6076 ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6168 ../src/guestfs-actions.pod:6184 ../src/guestfs-actions.pod:6201 ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6234 ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6284 ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6338 ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6416 ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6622 ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6680 ../src/guestfs-actions.pod:6713 ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:6793 ../src/guestfs-actions.pod:6859 ../src/guestfs-actions.pod:6878 ../src/guestfs-actions.pod:6907
4153 msgid "This function returns 0 on success or -1 on error."
4154 msgstr ""
4155
4156 # type: textblock
4157 #: ../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
4158 msgid ""
4159 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4160 "instead."
4161 msgstr ""
4162
4163 # type: textblock
4164 #: ../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:6801 ../src/guestfs-actions.pod:6970 ../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:4534 ../fish/guestfish-actions.pod:4631
4165 msgid ""
4166 "Deprecated functions will not be removed from the API, but the fact that "
4167 "they are deprecated indicates that there are problems with correct use of "
4168 "these functions."
4169 msgstr ""
4170
4171 # type: textblock
4172 #: ../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:3164 ../src/guestfs-actions.pod:3179 ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:6078 ../src/guestfs-actions.pod:6203 ../src/guestfs-actions.pod:6715
4173 msgid "(Added in 0.3)"
4174 msgstr ""
4175
4176 # type: =head2
4177 #: ../src/guestfs-actions.pod:41
4178 msgid "guestfs_add_domain"
4179 msgstr ""
4180
4181 # type: verbatim
4182 #: ../src/guestfs-actions.pod:43
4183 #, no-wrap
4184 msgid ""
4185 " int\n"
4186 " guestfs_add_domain (guestfs_h *g,\n"
4187 "                     const char *dom,\n"
4188 "                     ...);\n"
4189 "\n"
4190 msgstr ""
4191
4192 # type: textblock
4193 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4194 msgid ""
4195 "You may supply a list of optional arguments to this call.  Use zero or more "
4196 "of the following pairs of parameters, and terminate the list with C<-1> on "
4197 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4198 msgstr ""
4199
4200 # type: verbatim
4201 #: ../src/guestfs-actions.pod:53
4202 #, no-wrap
4203 msgid ""
4204 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4205 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4206 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4207 "\n"
4208 msgstr ""
4209
4210 # type: textblock
4211 #: ../src/guestfs-actions.pod:57
4212 msgid ""
4213 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4214 "It works by connecting to libvirt, requesting the domain and domain XML from "
4215 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4216 "one."
4217 msgstr ""
4218
4219 # type: textblock
4220 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4221 msgid ""
4222 "The number of disks added is returned.  This operation is atomic: if an "
4223 "error is returned, then no disks are added."
4224 msgstr ""
4225
4226 # type: textblock
4227 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4228 msgid ""
4229 "This function does some minimal checks to make sure the libvirt domain is "
4230 "not running (unless C<readonly> is true).  In a future version we will try "
4231 "to acquire the libvirt lock on each disk."
4232 msgstr ""
4233
4234 # type: textblock
4235 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4236 msgid ""
4237 "Disks must be accessible locally.  This often means that adding disks from a "
4238 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4239 "unless those disks are accessible via the same device path locally too."
4240 msgstr ""
4241
4242 # type: textblock
4243 #: ../src/guestfs-actions.pod:74
4244 msgid ""
4245 "The optional C<libvirturi> parameter sets the libvirt URI (see "
4246 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
4247 "default libvirt URI (or one set through an environment variable, see the "
4248 "libvirt documentation for full details).  If you are using the C API "
4249 "directly then it is more flexible to create the libvirt connection object "
4250 "yourself, get the domain object, and call C<guestfs_add_libvirt_dom>."
4251 msgstr ""
4252
4253 # type: textblock
4254 #: ../src/guestfs-actions.pod:82
4255 msgid ""
4256 "The other optional parameters are passed directly through to "
4257 "C<guestfs_add_drive_opts>."
4258 msgstr ""
4259
4260 # type: textblock
4261 #: ../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:2610 ../src/guestfs-actions.pod:2631 ../src/guestfs-actions.pod:4455 ../src/guestfs-actions.pod:4583 ../src/guestfs-actions.pod:4989 ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:6311 ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:6752
4262 msgid "On error this function returns -1."
4263 msgstr ""
4264
4265 # type: =head2
4266 #: ../src/guestfs-actions.pod:87
4267 msgid "guestfs_add_domain_va"
4268 msgstr ""
4269
4270 # type: verbatim
4271 #: ../src/guestfs-actions.pod:89
4272 #, no-wrap
4273 msgid ""
4274 " int\n"
4275 " guestfs_add_domain_va (guestfs_h *g,\n"
4276 "                        const char *dom,\n"
4277 "                        va_list args);\n"
4278 "\n"
4279 msgstr ""
4280
4281 # type: textblock
4282 #: ../src/guestfs-actions.pod:94
4283 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4284 msgstr ""
4285
4286 # type: textblock
4287 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107 ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4288 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4289 msgstr ""
4290
4291 # type: =head2
4292 #: ../src/guestfs-actions.pod:98
4293 msgid "guestfs_add_domain_argv"
4294 msgstr ""
4295
4296 # type: verbatim
4297 #: ../src/guestfs-actions.pod:100
4298 #, no-wrap
4299 msgid ""
4300 " int\n"
4301 " guestfs_add_domain_argv (guestfs_h *g,\n"
4302 "                          const char *dom,\n"
4303 "                          const struct guestfs_add_domain_argv *optargs);\n"
4304 "\n"
4305 msgstr ""
4306
4307 # type: textblock
4308 #: ../src/guestfs-actions.pod:105
4309 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4310 msgstr ""
4311
4312 # type: =head2
4313 #: ../src/guestfs-actions.pod:109
4314 msgid "guestfs_add_drive"
4315 msgstr ""
4316
4317 # type: verbatim
4318 #: ../src/guestfs-actions.pod:111
4319 #, no-wrap
4320 msgid ""
4321 " int\n"
4322 " guestfs_add_drive (guestfs_h *g,\n"
4323 "                    const char *filename);\n"
4324 "\n"
4325 msgstr ""
4326
4327 # type: textblock
4328 #: ../src/guestfs-actions.pod:115
4329 msgid ""
4330 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4331 "optional parameters, so the disk is added writable, with the format being "
4332 "detected automatically."
4333 msgstr ""
4334
4335 # type: textblock
4336 #: ../src/guestfs-actions.pod:119
4337 msgid ""
4338 "Automatic detection of the format opens you up to a potential security hole "
4339 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4340 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4341 "you should think about replacing calls to this function with calls to "
4342 "C<guestfs_add_drive_opts>, and specifying the format."
4343 msgstr ""
4344
4345 # type: =head2
4346 #: ../src/guestfs-actions.pod:130
4347 msgid "guestfs_add_drive_opts"
4348 msgstr ""
4349
4350 # type: verbatim
4351 #: ../src/guestfs-actions.pod:132
4352 #, no-wrap
4353 msgid ""
4354 " int\n"
4355 " guestfs_add_drive_opts (guestfs_h *g,\n"
4356 "                         const char *filename,\n"
4357 "                         ...);\n"
4358 "\n"
4359 msgstr ""
4360
4361 # type: verbatim
4362 #: ../src/guestfs-actions.pod:142
4363 #, no-wrap
4364 msgid ""
4365 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4366 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4367 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4368 "\n"
4369 msgstr ""
4370
4371 # type: textblock
4372 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4373 msgid ""
4374 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4375 "The first time you call this function, the disk appears as C</dev/sda>, the "
4376 "second time as C</dev/sdb>, and so on."
4377 msgstr ""
4378
4379 # type: textblock
4380 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4381 msgid ""
4382 "You don't necessarily need to be root when using libguestfs.  However you "
4383 "obviously do need sufficient permissions to access the filename for whatever "
4384 "operations you want to perform (ie. read access if you just want to read the "
4385 "image or write access if you want to modify the image)."
4386 msgstr ""
4387
4388 # type: textblock
4389 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4390 msgid "This call checks that C<filename> exists."
4391 msgstr ""
4392
4393 # type: textblock
4394 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4395 msgid "The optional arguments are:"
4396 msgstr ""
4397
4398 # type: =item
4399 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4400 msgid "C<readonly>"
4401 msgstr ""
4402
4403 # type: textblock
4404 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4405 msgid ""
4406 "If true then the image is treated as read-only.  Writes are still allowed, "
4407 "but they are stored in a temporary snapshot overlay which is discarded at "
4408 "the end.  The disk that you add is not modified."
4409 msgstr ""
4410
4411 # type: =item
4412 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4413 msgid "C<format>"
4414 msgstr ""
4415
4416 # type: textblock
4417 #: ../src/guestfs-actions.pod:171
4418 msgid ""
4419 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4420 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4421 "Possible formats include C<raw> and C<qcow2>."
4422 msgstr ""
4423
4424 # type: textblock
4425 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4426 msgid ""
4427 "Automatic detection of the format opens you up to a potential security hole "
4428 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4429 "RHBZ#642934.  Specifying the format closes this security hole."
4430 msgstr ""
4431
4432 # type: =item
4433 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4434 msgid "C<iface>"
4435 msgstr ""
4436
4437 # type: textblock
4438 #: ../src/guestfs-actions.pod:182
4439 msgid ""
4440 "This rarely-used option lets you emulate the behaviour of the deprecated "
4441 "C<guestfs_add_drive_with_if> call (q.v.)"
4442 msgstr ""
4443
4444 # type: textblock
4445 #: ../src/guestfs-actions.pod:189
4446 msgid "(Added in 1.5.23)"
4447 msgstr ""
4448
4449 # type: =head2
4450 #: ../src/guestfs-actions.pod:191
4451 msgid "guestfs_add_drive_opts_va"
4452 msgstr ""
4453
4454 # type: verbatim
4455 #: ../src/guestfs-actions.pod:193
4456 #, no-wrap
4457 msgid ""
4458 " int\n"
4459 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4460 "                            const char *filename,\n"
4461 "                            va_list args);\n"
4462 "\n"
4463 msgstr ""
4464
4465 # type: textblock
4466 #: ../src/guestfs-actions.pod:198
4467 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4468 msgstr ""
4469
4470 # type: =head2
4471 #: ../src/guestfs-actions.pod:202
4472 msgid "guestfs_add_drive_opts_argv"
4473 msgstr ""
4474
4475 # type: verbatim
4476 #: ../src/guestfs-actions.pod:204
4477 #, no-wrap
4478 msgid ""
4479 " int\n"
4480 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4481 "                              const char *filename,\n"
4482 "                              const struct guestfs_add_drive_opts_argv "
4483 "*optargs);\n"
4484 "\n"
4485 msgstr ""
4486
4487 # type: textblock
4488 #: ../src/guestfs-actions.pod:209
4489 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4490 msgstr ""
4491
4492 # type: =head2
4493 #: ../src/guestfs-actions.pod:213
4494 msgid "guestfs_add_drive_ro"
4495 msgstr ""
4496
4497 # type: verbatim
4498 #: ../src/guestfs-actions.pod:215
4499 #, no-wrap
4500 msgid ""
4501 " int\n"
4502 " guestfs_add_drive_ro (guestfs_h *g,\n"
4503 "                       const char *filename);\n"
4504 "\n"
4505 msgstr ""
4506
4507 # type: textblock
4508 #: ../src/guestfs-actions.pod:219
4509 msgid ""
4510 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4511 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4512 "disk is added read-only, with the format being detected automatically."
4513 msgstr ""
4514
4515 # type: textblock
4516 #: ../src/guestfs-actions.pod:226
4517 msgid "(Added in 1.0.38)"
4518 msgstr ""
4519
4520 # type: =head2
4521 #: ../src/guestfs-actions.pod:228
4522 msgid "guestfs_add_drive_ro_with_if"
4523 msgstr ""
4524
4525 # type: verbatim
4526 #: ../src/guestfs-actions.pod:230
4527 #, no-wrap
4528 msgid ""
4529 " int\n"
4530 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4531 "                               const char *filename,\n"
4532 "                               const char *iface);\n"
4533 "\n"
4534 msgstr ""
4535
4536 # type: textblock
4537 #: ../src/guestfs-actions.pod:235
4538 msgid ""
4539 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4540 "QEMU interface emulation to use at run time."
4541 msgstr ""
4542
4543 # type: textblock
4544 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268 ../src/guestfs-actions.pod:2303
4545 msgid "(Added in 1.0.84)"
4546 msgstr ""
4547
4548 # type: =head2
4549 #: ../src/guestfs-actions.pod:249
4550 msgid "guestfs_add_drive_with_if"
4551 msgstr ""
4552
4553 # type: verbatim
4554 #: ../src/guestfs-actions.pod:251
4555 #, no-wrap
4556 msgid ""
4557 " int\n"
4558 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4559 "                            const char *filename,\n"
4560 "                            const char *iface);\n"
4561 "\n"
4562 msgstr ""
4563
4564 # type: textblock
4565 #: ../src/guestfs-actions.pod:256
4566 msgid ""
4567 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4568 "QEMU interface emulation to use at run time."
4569 msgstr ""
4570
4571 # type: =head2
4572 #: ../src/guestfs-actions.pod:270
4573 msgid "guestfs_aug_clear"
4574 msgstr ""
4575
4576 # type: verbatim
4577 #: ../src/guestfs-actions.pod:272
4578 #, no-wrap
4579 msgid ""
4580 " int\n"
4581 " guestfs_aug_clear (guestfs_h *g,\n"
4582 "                    const char *augpath);\n"
4583 "\n"
4584 msgstr ""
4585
4586 # type: textblock
4587 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4588 msgid ""
4589 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4590 "L<augtool(1)> C<clear> command."
4591 msgstr ""
4592
4593 # type: textblock
4594 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4595 msgid "(Added in 1.3.4)"
4596 msgstr ""
4597
4598 # type: =head2
4599 #: ../src/guestfs-actions.pod:283
4600 msgid "guestfs_aug_close"
4601 msgstr ""
4602
4603 # type: verbatim
4604 #: ../src/guestfs-actions.pod:285
4605 #, no-wrap
4606 msgid ""
4607 " int\n"
4608 " guestfs_aug_close (guestfs_h *g);\n"
4609 "\n"
4610 msgstr ""
4611
4612 # type: textblock
4613 #: ../src/guestfs-actions.pod:288
4614 msgid ""
4615 "Close the current Augeas handle and free up any resources used by it.  After "
4616 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4617 "any other Augeas functions."
4618 msgstr ""
4619
4620 # type: textblock
4621 #: ../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:5066
4622 msgid "(Added in 0.7)"
4623 msgstr ""
4624
4625 # type: =head2
4626 #: ../src/guestfs-actions.pod:297
4627 msgid "guestfs_aug_defnode"
4628 msgstr ""
4629
4630 # type: verbatim
4631 #: ../src/guestfs-actions.pod:299
4632 #, no-wrap
4633 msgid ""
4634 " struct guestfs_int_bool *\n"
4635 " guestfs_aug_defnode (guestfs_h *g,\n"
4636 "                      const char *name,\n"
4637 "                      const char *expr,\n"
4638 "                      const char *val);\n"
4639 "\n"
4640 msgstr ""
4641
4642 # type: textblock
4643 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4644 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4645 msgstr ""
4646
4647 # type: textblock
4648 #: ../src/guestfs-actions.pod:308
4649 msgid ""
4650 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4651 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4652 "containing that single node."
4653 msgstr ""
4654
4655 # type: textblock
4656 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4657 msgid ""
4658 "On success this returns a pair containing the number of nodes in the "
4659 "nodeset, and a boolean flag if a node was created."
4660 msgstr ""
4661
4662 # type: textblock
4663 #: ../src/guestfs-actions.pod:316
4664 msgid ""
4665 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4666 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4667 msgstr ""
4668
4669 # type: =head2
4670 #: ../src/guestfs-actions.pod:322
4671 msgid "guestfs_aug_defvar"
4672 msgstr ""
4673
4674 # type: verbatim
4675 #: ../src/guestfs-actions.pod:324
4676 #, no-wrap
4677 msgid ""
4678 " int\n"
4679 " guestfs_aug_defvar (guestfs_h *g,\n"
4680 "                     const char *name,\n"
4681 "                     const char *expr);\n"
4682 "\n"
4683 msgstr ""
4684
4685 # type: textblock
4686 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4687 msgid ""
4688 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4689 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4690 msgstr ""
4691
4692 # type: textblock
4693 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4694 msgid ""
4695 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4696 "evaluates to something which is not a nodeset."
4697 msgstr ""
4698
4699 # type: =head2
4700 #: ../src/guestfs-actions.pod:340
4701 msgid "guestfs_aug_get"
4702 msgstr ""
4703
4704 # type: verbatim
4705 #: ../src/guestfs-actions.pod:342
4706 #, no-wrap
4707 msgid ""
4708 " char *\n"
4709 " guestfs_aug_get (guestfs_h *g,\n"
4710 "                  const char *augpath);\n"
4711 "\n"
4712 msgstr ""
4713
4714 # type: textblock
4715 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4716 msgid ""
4717 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4718 "node, the C<value> is returned."
4719 msgstr ""
4720
4721 # type: textblock
4722 #: ../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:2692 ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2803 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:3308 ../src/guestfs-actions.pod:3658 ../src/guestfs-actions.pod:3828 ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:4794 ../src/guestfs-actions.pod:4964 ../src/guestfs-actions.pod:5142 ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5754 ../src/guestfs-actions.pod:5770 ../src/guestfs-actions.pod:5787 ../src/guestfs-actions.pod:5811 ../src/guestfs-actions.pod:6475 ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6512 ../src/guestfs-actions.pod:6692 ../src/guestfs-actions.pod:6964
4723 msgid ""
4724 "This function returns a string, or NULL on error.  I<The caller must free "
4725 "the returned string after use>."
4726 msgstr ""
4727
4728 # type: =head2
4729 #: ../src/guestfs-actions.pod:354
4730 msgid "guestfs_aug_init"
4731 msgstr ""
4732
4733 # type: verbatim
4734 #: ../src/guestfs-actions.pod:356
4735 #, no-wrap
4736 msgid ""
4737 " int\n"
4738 " guestfs_aug_init (guestfs_h *g,\n"
4739 "                   const char *root,\n"
4740 "                   int flags);\n"
4741 "\n"
4742 msgstr ""
4743
4744 # type: textblock
4745 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4746 msgid ""
4747 "Create a new Augeas handle for editing configuration files.  If there was "
4748 "any previous Augeas handle associated with this guestfs session, then it is "
4749 "closed."
4750 msgstr ""
4751
4752 # type: textblock
4753 #: ../src/guestfs-actions.pod:365
4754 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4755 msgstr ""
4756
4757 # type: textblock
4758 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4759 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4760 msgstr ""
4761
4762 # type: textblock
4763 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4764 msgid ""
4765 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4766 "logical I<or> of the following integers:"
4767 msgstr ""
4768
4769 # type: =item
4770 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
4771 msgid "C<AUG_SAVE_BACKUP> = 1"
4772 msgstr ""
4773
4774 # type: textblock
4775 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
4776 msgid "Keep the original file with a C<.augsave> extension."
4777 msgstr ""
4778
4779 # type: =item
4780 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
4781 msgid "C<AUG_SAVE_NEWFILE> = 2"
4782 msgstr ""
4783
4784 # type: textblock
4785 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
4786 msgid ""
4787 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4788 "original.  Overrides C<AUG_SAVE_BACKUP>."
4789 msgstr ""
4790
4791 # type: =item
4792 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
4793 msgid "C<AUG_TYPE_CHECK> = 4"
4794 msgstr ""
4795
4796 # type: textblock
4797 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
4798 msgid "Typecheck lenses (can be expensive)."
4799 msgstr ""
4800
4801 # type: =item
4802 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
4803 msgid "C<AUG_NO_STDINC> = 8"
4804 msgstr ""
4805
4806 # type: textblock
4807 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
4808 msgid "Do not use standard load path for modules."
4809 msgstr ""
4810
4811 # type: =item
4812 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
4813 msgid "C<AUG_SAVE_NOOP> = 16"
4814 msgstr ""
4815
4816 # type: textblock
4817 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
4818 msgid "Make save a no-op, just record what would have been changed."
4819 msgstr ""
4820
4821 # type: =item
4822 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
4823 msgid "C<AUG_NO_LOAD> = 32"
4824 msgstr ""
4825
4826 # type: textblock
4827 #: ../src/guestfs-actions.pod:400
4828 msgid "Do not load the tree in C<guestfs_aug_init>."
4829 msgstr ""
4830
4831 # type: textblock
4832 #: ../src/guestfs-actions.pod:404
4833 msgid "To close the handle, you can call C<guestfs_aug_close>."
4834 msgstr ""
4835
4836 # type: textblock
4837 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
4838 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4839 msgstr ""
4840
4841 # type: =head2
4842 #: ../src/guestfs-actions.pod:412
4843 msgid "guestfs_aug_insert"
4844 msgstr ""
4845
4846 # type: verbatim
4847 #: ../src/guestfs-actions.pod:414
4848 #, no-wrap
4849 msgid ""
4850 " int\n"
4851 " guestfs_aug_insert (guestfs_h *g,\n"
4852 "                     const char *augpath,\n"
4853 "                     const char *label,\n"
4854 "                     int before);\n"
4855 "\n"
4856 msgstr ""
4857
4858 # type: textblock
4859 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
4860 msgid ""
4861 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4862 "or after C<path> (depending on the boolean flag C<before>)."
4863 msgstr ""
4864
4865 # type: textblock
4866 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
4867 msgid ""
4868 "C<path> must match exactly one existing node in the tree, and C<label> must "
4869 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4870 msgstr ""
4871
4872 # type: =head2
4873 #: ../src/guestfs-actions.pod:432
4874 msgid "guestfs_aug_load"
4875 msgstr ""
4876
4877 # type: verbatim
4878 #: ../src/guestfs-actions.pod:434
4879 #, no-wrap
4880 msgid ""
4881 " int\n"
4882 " guestfs_aug_load (guestfs_h *g);\n"
4883 "\n"
4884 msgstr ""
4885
4886 # type: textblock
4887 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
4888 msgid "Load files into the tree."
4889 msgstr ""
4890
4891 # type: textblock
4892 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
4893 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4894 msgstr ""
4895
4896 # type: =head2
4897 #: ../src/guestfs-actions.pod:446
4898 msgid "guestfs_aug_ls"
4899 msgstr ""
4900
4901 # type: verbatim
4902 #: ../src/guestfs-actions.pod:448
4903 #, no-wrap
4904 msgid ""
4905 " char **\n"
4906 " guestfs_aug_ls (guestfs_h *g,\n"
4907 "                 const char *augpath);\n"
4908 "\n"
4909 msgstr ""
4910
4911 # type: textblock
4912 #: ../src/guestfs-actions.pod:452
4913 msgid ""
4914 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4915 "sorting the resulting nodes into alphabetical order."
4916 msgstr ""
4917
4918 # type: textblock
4919 #: ../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:2762 ../src/guestfs-actions.pod:2973 ../src/guestfs-actions.pod:3228 ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3800 ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:4936 ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5827 ../src/guestfs-actions.pod:5888 ../src/guestfs-actions.pod:5943 ../src/guestfs-actions.pod:6089 ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6652 ../src/guestfs-actions.pod:6817 ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:6921 ../src/guestfs-actions.pod:6940 ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7005
4920 msgid ""
4921 "This function returns a NULL-terminated array of strings (like "
4922 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4923 "strings and the array after use>."
4924 msgstr ""
4925
4926 # type: textblock
4927 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3641 ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3878 ../src/guestfs-actions.pod:3911 ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4420 ../src/guestfs-actions.pod:4877 ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5269 ../src/guestfs-actions.pod:5281 ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:6327 ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6569 ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6805
4928 msgid "(Added in 0.8)"
4929 msgstr ""
4930
4931 # type: =head2
4932 #: ../src/guestfs-actions.pod:461
4933 msgid "guestfs_aug_match"
4934 msgstr ""
4935
4936 # type: verbatim
4937 #: ../src/guestfs-actions.pod:463
4938 #, no-wrap
4939 msgid ""
4940 " char **\n"
4941 " guestfs_aug_match (guestfs_h *g,\n"
4942 "                    const char *augpath);\n"
4943 "\n"
4944 msgstr ""
4945
4946 # type: textblock
4947 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
4948 msgid ""
4949 "Returns a list of paths which match the path expression C<path>.  The "
4950 "returned paths are sufficiently qualified so that they match exactly one "
4951 "node in the current tree."
4952 msgstr ""
4953
4954 # type: =head2
4955 #: ../src/guestfs-actions.pod:477
4956 msgid "guestfs_aug_mv"
4957 msgstr ""
4958
4959 # type: verbatim
4960 #: ../src/guestfs-actions.pod:479
4961 #, no-wrap
4962 msgid ""
4963 " int\n"
4964 " guestfs_aug_mv (guestfs_h *g,\n"
4965 "                 const char *src,\n"
4966 "                 const char *dest);\n"
4967 "\n"
4968 msgstr ""
4969
4970 # type: textblock
4971 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
4972 msgid ""
4973 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4974 "C<dest> is overwritten if it exists."
4975 msgstr ""
4976
4977 # type: =head2
4978 #: ../src/guestfs-actions.pod:491
4979 msgid "guestfs_aug_rm"
4980 msgstr ""
4981
4982 # type: verbatim
4983 #: ../src/guestfs-actions.pod:493
4984 #, no-wrap
4985 msgid ""
4986 " int\n"
4987 " guestfs_aug_rm (guestfs_h *g,\n"
4988 "                 const char *augpath);\n"
4989 "\n"
4990 msgstr ""
4991
4992 # type: textblock
4993 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
4994 msgid "Remove C<path> and all of its children."
4995 msgstr ""
4996
4997 # type: textblock
4998 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
4999 msgid "On success this returns the number of entries which were removed."
5000 msgstr ""
5001
5002 # type: =head2
5003 #: ../src/guestfs-actions.pod:505
5004 msgid "guestfs_aug_save"
5005 msgstr ""
5006
5007 # type: verbatim
5008 #: ../src/guestfs-actions.pod:507
5009 #, no-wrap
5010 msgid ""
5011 " int\n"
5012 " guestfs_aug_save (guestfs_h *g);\n"
5013 "\n"
5014 msgstr ""
5015
5016 # type: textblock
5017 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5018 msgid "This writes all pending changes to disk."
5019 msgstr ""
5020
5021 # type: textblock
5022 #: ../src/guestfs-actions.pod:512
5023 msgid ""
5024 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5025 "are saved."
5026 msgstr ""
5027
5028 # type: =head2
5029 #: ../src/guestfs-actions.pod:519
5030 msgid "guestfs_aug_set"
5031 msgstr ""
5032
5033 # type: verbatim
5034 #: ../src/guestfs-actions.pod:521
5035 #, no-wrap
5036 msgid ""
5037 " int\n"
5038 " guestfs_aug_set (guestfs_h *g,\n"
5039 "                  const char *augpath,\n"
5040 "                  const char *val);\n"
5041 "\n"
5042 msgstr ""
5043
5044 # type: textblock
5045 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5046 msgid "Set the value associated with C<path> to C<val>."
5047 msgstr ""
5048
5049 # type: textblock
5050 #: ../src/guestfs-actions.pod:528
5051 msgid ""
5052 "In the Augeas API, it is possible to clear a node by setting the value to "
5053 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5054 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5055 msgstr ""
5056
5057 # type: =head2
5058 #: ../src/guestfs-actions.pod:537
5059 msgid "guestfs_available"
5060 msgstr ""
5061
5062 # type: verbatim
5063 #: ../src/guestfs-actions.pod:539
5064 #, no-wrap
5065 msgid ""
5066 " int\n"
5067 " guestfs_available (guestfs_h *g,\n"
5068 "                    char *const *groups);\n"
5069 "\n"
5070 msgstr ""
5071
5072 # type: textblock
5073 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5074 msgid ""
5075 "This command is used to check the availability of some groups of "
5076 "functionality in the appliance, which not all builds of the libguestfs "
5077 "appliance will be able to provide."
5078 msgstr ""
5079
5080 # type: textblock
5081 #: ../src/guestfs-actions.pod:547
5082 msgid ""
5083 "The libguestfs groups, and the functions that those groups correspond to, "
5084 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5085 "runtime by calling C<guestfs_available_all_groups>."
5086 msgstr ""
5087
5088 # type: textblock
5089 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5090 msgid ""
5091 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
5092 "\"augeas\"]> would check for the availability of the Linux inotify functions "
5093 "and Augeas (configuration file editing) functions."
5094 msgstr ""
5095
5096 # type: textblock
5097 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5098 msgid "The command returns no error if I<all> requested groups are available."
5099 msgstr ""
5100
5101 # type: textblock
5102 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5103 msgid ""
5104 "It fails with an error if one or more of the requested groups is unavailable "
5105 "in the appliance."
5106 msgstr ""
5107
5108 # type: textblock
5109 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5110 msgid ""
5111 "If an unknown group name is included in the list of groups then an error is "
5112 "always returned."
5113 msgstr ""
5114
5115 # type: textblock
5116 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5117 msgid "I<Notes:>"
5118 msgstr ""
5119
5120 # type: textblock
5121 #: ../src/guestfs-actions.pod:571
5122 msgid "You must call C<guestfs_launch> before calling this function."
5123 msgstr ""
5124
5125 # type: textblock
5126 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5127 msgid ""
5128 "The reason is because we don't know what groups are supported by the "
5129 "appliance/daemon until it is running and can be queried."
5130 msgstr ""
5131
5132 # type: textblock
5133 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5134 msgid ""
5135 "If a group of functions is available, this does not necessarily mean that "
5136 "they will work.  You still have to check for errors when calling individual "
5137 "API functions even if they are available."
5138 msgstr ""
5139
5140 # type: textblock
5141 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5142 msgid ""
5143 "It is usually the job of distro packagers to build complete functionality "
5144 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5145 "with all requirements satisfied, will support everything."
5146 msgstr ""
5147
5148 # type: textblock
5149 #: ../src/guestfs-actions.pod:593
5150 msgid ""
5151 "This call was added in version C<1.0.80>.  In previous versions of "
5152 "libguestfs all you could do would be to speculatively execute a command to "
5153 "find out if the daemon implemented it.  See also C<guestfs_version>."
5154 msgstr ""
5155
5156 # type: textblock
5157 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5158 msgid "(Added in 1.0.80)"
5159 msgstr ""
5160
5161 # type: =head2
5162 #: ../src/guestfs-actions.pod:604
5163 msgid "guestfs_available_all_groups"
5164 msgstr ""
5165
5166 # type: verbatim
5167 #: ../src/guestfs-actions.pod:606
5168 #, no-wrap
5169 msgid ""
5170 " char **\n"
5171 " guestfs_available_all_groups (guestfs_h *g);\n"
5172 "\n"
5173 msgstr ""
5174
5175 # type: textblock
5176 #: ../src/guestfs-actions.pod:609
5177 msgid ""
5178 "This command returns a list of all optional groups that this daemon knows "
5179 "about.  Note this returns both supported and unsupported groups.  To find "
5180 "out which ones the daemon can actually support you have to call "
5181 "C<guestfs_available> on each member of the returned list."
5182 msgstr ""
5183
5184 # type: textblock
5185 #: ../src/guestfs-actions.pod:615
5186 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5187 msgstr ""
5188
5189 # type: textblock
5190 #: ../src/guestfs-actions.pod:621
5191 msgid "(Added in 1.3.15)"
5192 msgstr ""
5193
5194 # type: =head2
5195 #: ../src/guestfs-actions.pod:623
5196 msgid "guestfs_base64_in"
5197 msgstr ""
5198
5199 # type: verbatim
5200 #: ../src/guestfs-actions.pod:625
5201 #, no-wrap
5202 msgid ""
5203 " int\n"
5204 " guestfs_base64_in (guestfs_h *g,\n"
5205 "                    const char *base64file,\n"
5206 "                    const char *filename);\n"
5207 "\n"
5208 msgstr ""
5209
5210 # type: textblock
5211 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5212 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
5213 msgstr ""
5214
5215 # type: textblock
5216 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5217 msgid "(Added in 1.3.5)"
5218 msgstr ""
5219
5220 # type: =head2
5221 #: ../src/guestfs-actions.pod:637
5222 msgid "guestfs_base64_out"
5223 msgstr ""
5224
5225 # type: verbatim
5226 #: ../src/guestfs-actions.pod:639
5227 #, no-wrap
5228 msgid ""
5229 " int\n"
5230 " guestfs_base64_out (guestfs_h *g,\n"
5231 "                     const char *filename,\n"
5232 "                     const char *base64file);\n"
5233 "\n"
5234 msgstr ""
5235
5236 # type: textblock
5237 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5238 msgid ""
5239 "This command downloads the contents of C<filename>, writing it out to local "
5240 "file C<base64file> encoded as base64."
5241 msgstr ""
5242
5243 # type: =head2
5244 #: ../src/guestfs-actions.pod:651
5245 msgid "guestfs_blockdev_flushbufs"
5246 msgstr ""
5247
5248 # type: verbatim
5249 #: ../src/guestfs-actions.pod:653
5250 #, no-wrap
5251 msgid ""
5252 " int\n"
5253 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5254 "                             const char *device);\n"
5255 "\n"
5256 msgstr ""
5257
5258 # type: textblock
5259 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5260 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5261 msgstr ""
5262
5263 # type: textblock
5264 #: ../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
5265 msgid "This uses the L<blockdev(8)> command."
5266 msgstr ""
5267
5268 # type: textblock
5269 #: ../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
5270 msgid "(Added in 0.9.3)"
5271 msgstr ""
5272
5273 # type: =head2
5274 #: ../src/guestfs-actions.pod:666
5275 msgid "guestfs_blockdev_getbsz"
5276 msgstr ""
5277
5278 # type: verbatim
5279 #: ../src/guestfs-actions.pod:668
5280 #, no-wrap
5281 msgid ""
5282 " int\n"
5283 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5284 "                          const char *device);\n"
5285 "\n"
5286 msgstr ""
5287
5288 # type: textblock
5289 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5290 msgid "This returns the block size of a device."
5291 msgstr ""
5292
5293 # type: textblock
5294 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5295 msgid ""
5296 "(Note this is different from both I<size in blocks> and I<filesystem block "
5297 "size>)."
5298 msgstr ""
5299
5300 # type: =head2
5301 #: ../src/guestfs-actions.pod:683
5302 msgid "guestfs_blockdev_getro"
5303 msgstr ""
5304
5305 # type: verbatim
5306 #: ../src/guestfs-actions.pod:685
5307 #, no-wrap
5308 msgid ""
5309 " int\n"
5310 " guestfs_blockdev_getro (guestfs_h *g,\n"
5311 "                         const char *device);\n"
5312 "\n"
5313 msgstr ""
5314
5315 # type: textblock
5316 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5317 msgid ""
5318 "Returns a boolean indicating if the block device is read-only (true if "
5319 "read-only, false if not)."
5320 msgstr ""
5321
5322 # type: textblock
5323 #: ../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:2990 ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3019 ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3049 ../src/guestfs-actions.pod:3064 ../src/guestfs-actions.pod:3080 ../src/guestfs-actions.pod:3094 ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3121 ../src/guestfs-actions.pod:3136 ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:4565
5324 msgid "This function returns a C truth value on success or -1 on error."
5325 msgstr ""
5326
5327 # type: =head2
5328 #: ../src/guestfs-actions.pod:698
5329 msgid "guestfs_blockdev_getsize64"
5330 msgstr ""
5331
5332 # type: verbatim
5333 #: ../src/guestfs-actions.pod:700
5334 #, no-wrap
5335 msgid ""
5336 " int64_t\n"
5337 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5338 "                             const char *device);\n"
5339 "\n"
5340 msgstr ""
5341
5342 # type: textblock
5343 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5344 msgid "This returns the size of the device in bytes."
5345 msgstr ""
5346
5347 # type: textblock
5348 #: ../src/guestfs-actions.pod:706
5349 msgid "See also C<guestfs_blockdev_getsz>."
5350 msgstr ""
5351
5352 # type: =head2
5353 #: ../src/guestfs-actions.pod:714
5354 msgid "guestfs_blockdev_getss"
5355 msgstr ""
5356
5357 # type: verbatim
5358 #: ../src/guestfs-actions.pod:716
5359 #, no-wrap
5360 msgid ""
5361 " int\n"
5362 " guestfs_blockdev_getss (guestfs_h *g,\n"
5363 "                         const char *device);\n"
5364 "\n"
5365 msgstr ""
5366
5367 # type: textblock
5368 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5369 msgid ""
5370 "This returns the size of sectors on a block device.  Usually 512, but can be "
5371 "larger for modern devices."
5372 msgstr ""
5373
5374 # type: textblock
5375 #: ../src/guestfs-actions.pod:723
5376 msgid ""
5377 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5378 "that)."
5379 msgstr ""
5380
5381 # type: =head2
5382 #: ../src/guestfs-actions.pod:732
5383 msgid "guestfs_blockdev_getsz"
5384 msgstr ""
5385
5386 # type: verbatim
5387 #: ../src/guestfs-actions.pod:734
5388 #, no-wrap
5389 msgid ""
5390 " int64_t\n"
5391 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5392 "                         const char *device);\n"
5393 "\n"
5394 msgstr ""
5395
5396 # type: textblock
5397 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5398 msgid ""
5399 "This returns the size of the device in units of 512-byte sectors (even if "
5400 "the sectorsize isn't 512 bytes ... weird)."
5401 msgstr ""
5402
5403 # type: textblock
5404 #: ../src/guestfs-actions.pod:741
5405 msgid ""
5406 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5407 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5408 msgstr ""
5409
5410 # type: =head2
5411 #: ../src/guestfs-actions.pod:751
5412 msgid "guestfs_blockdev_rereadpt"
5413 msgstr ""
5414
5415 # type: verbatim
5416 #: ../src/guestfs-actions.pod:753
5417 #, no-wrap
5418 msgid ""
5419 " int\n"
5420 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5421 "                            const char *device);\n"
5422 "\n"
5423 msgstr ""
5424
5425 # type: textblock
5426 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5427 msgid "Reread the partition table on C<device>."
5428 msgstr ""
5429
5430 # type: =head2
5431 #: ../src/guestfs-actions.pod:765
5432 msgid "guestfs_blockdev_setbsz"
5433 msgstr ""
5434
5435 # type: verbatim
5436 #: ../src/guestfs-actions.pod:767
5437 #, no-wrap
5438 msgid ""
5439 " int\n"
5440 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5441 "                          const char *device,\n"
5442 "                          int blocksize);\n"
5443 "\n"
5444 msgstr ""
5445
5446 # type: textblock
5447 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5448 msgid "This sets the block size of a device."
5449 msgstr ""
5450
5451 # type: =head2
5452 #: ../src/guestfs-actions.pod:783
5453 msgid "guestfs_blockdev_setro"
5454 msgstr ""
5455
5456 # type: verbatim
5457 #: ../src/guestfs-actions.pod:785
5458 #, no-wrap
5459 msgid ""
5460 " int\n"
5461 " guestfs_blockdev_setro (guestfs_h *g,\n"
5462 "                         const char *device);\n"
5463 "\n"
5464 msgstr ""
5465
5466 # type: textblock
5467 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5468 msgid "Sets the block device named C<device> to read-only."
5469 msgstr ""
5470
5471 # type: =head2
5472 #: ../src/guestfs-actions.pod:797
5473 msgid "guestfs_blockdev_setrw"
5474 msgstr ""
5475
5476 # type: verbatim
5477 #: ../src/guestfs-actions.pod:799
5478 #, no-wrap
5479 msgid ""
5480 " int\n"
5481 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5482 "                         const char *device);\n"
5483 "\n"
5484 msgstr ""
5485
5486 # type: textblock
5487 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5488 msgid "Sets the block device named C<device> to read-write."
5489 msgstr ""
5490
5491 # type: =head2
5492 #: ../src/guestfs-actions.pod:811
5493 msgid "guestfs_case_sensitive_path"
5494 msgstr ""
5495
5496 # type: verbatim
5497 #: ../src/guestfs-actions.pod:813
5498 #, no-wrap
5499 msgid ""
5500 " char *\n"
5501 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5502 "                              const char *path);\n"
5503 "\n"
5504 msgstr ""
5505
5506 # type: textblock
5507 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5508 msgid ""
5509 "This can be used to resolve case insensitive paths on a filesystem which is "
5510 "case sensitive.  The use case is to resolve paths which you have read from "
5511 "Windows configuration files or the Windows Registry, to the true path."
5512 msgstr ""
5513
5514 # type: textblock
5515 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5516 msgid ""
5517 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5518 "(and probably others), which is that although the underlying filesystem is "
5519 "case-insensitive, the driver exports the filesystem to Linux as "
5520 "case-sensitive."
5521 msgstr ""
5522
5523 # type: textblock
5524 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5525 msgid ""
5526 "One consequence of this is that special directories such as C<c:\\windows> "
5527 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5528 "precise details of how they were created.  In Windows itself this would not "
5529 "be a problem."
5530 msgstr ""
5531
5532 # type: textblock
5533 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5534 msgid ""
5535 "Bug or feature? You decide: "
5536 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5537 msgstr ""
5538
5539 # type: textblock
5540 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5541 msgid ""
5542 "This function resolves the true case of each element in the path and returns "
5543 "the case-sensitive path."
5544 msgstr ""
5545
5546 # type: textblock
5547 #: ../src/guestfs-actions.pod:839
5548 msgid ""
5549 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5550 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5551 "how the directories were originally created under Windows)."
5552 msgstr ""
5553
5554 # type: textblock
5555 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5556 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5557 msgstr ""
5558
5559 # type: textblock
5560 #: ../src/guestfs-actions.pod:847
5561 msgid "See also C<guestfs_realpath>."
5562 msgstr ""
5563
5564 # type: textblock
5565 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6497
5566 msgid "(Added in 1.0.75)"
5567 msgstr ""
5568
5569 # type: =head2
5570 #: ../src/guestfs-actions.pod:854
5571 msgid "guestfs_cat"
5572 msgstr ""
5573
5574 # type: verbatim
5575 #: ../src/guestfs-actions.pod:856
5576 #, no-wrap
5577 msgid ""
5578 " char *\n"
5579 " guestfs_cat (guestfs_h *g,\n"
5580 "              const char *path);\n"
5581 "\n"
5582 msgstr ""
5583
5584 # type: textblock
5585 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5052 ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3378
5586 msgid "Return the contents of the file named C<path>."
5587 msgstr ""
5588
5589 # type: textblock
5590 #: ../src/guestfs-actions.pod:862
5591 msgid ""
5592 "Note that this function cannot correctly handle binary files (specifically, "
5593 "files containing C<\\0> character which is treated as end of string).  For "
5594 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5595 "functions which have a more complex interface."
5596 msgstr ""
5597
5598 # type: textblock
5599 #: ../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:4834 ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4991 ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5892 ../src/guestfs-actions.pod:5947 ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6117 ../src/guestfs-actions.pod:6769 ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6840 ../src/guestfs-actions.pod:6925 ../src/guestfs-actions.pod:6944 ../src/guestfs-actions.pod:6990 ../src/guestfs-actions.pod:7009 ../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:3248 ../fish/guestfish-actions.pod:3263 ../fish/guestfish-actions.pod:3339 ../fish/guestfish-actions.pod:3356 ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3954 ../fish/guestfish-actions.pod:4000 ../fish/guestfish-actions.pod:4085 ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4510 ../fish/guestfish-actions.pod:4528 ../fish/guestfish-actions.pod:4545 ../fish/guestfish-actions.pod:4555 ../fish/guestfish-actions.pod:4603 ../fish/guestfish-actions.pod:4613 ../fish/guestfish-actions.pod:4642 ../fish/guestfish-actions.pod:4652
5600 msgid ""
5601 "Because of the message protocol, there is a transfer limit of somewhere "
5602 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5603 msgstr ""
5604
5605 # type: textblock
5606 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3232 ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:3311 ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:3804 ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:6656 ../src/guestfs-actions.pod:6670
5607 msgid "(Added in 0.4)"
5608 msgstr ""
5609
5610 # type: =head2
5611 #: ../src/guestfs-actions.pod:875
5612 msgid "guestfs_checksum"
5613 msgstr ""
5614
5615 # type: verbatim
5616 #: ../src/guestfs-actions.pod:877
5617 #, no-wrap
5618 msgid ""
5619 " char *\n"
5620 " guestfs_checksum (guestfs_h *g,\n"
5621 "                   const char *csumtype,\n"
5622 "                   const char *path);\n"
5623 "\n"
5624 msgstr ""
5625
5626 # type: textblock
5627 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5628 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5629 msgstr ""
5630
5631 # type: textblock
5632 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5633 msgid ""
5634 "The type of checksum to compute is given by the C<csumtype> parameter which "
5635 "must have one of the following values:"
5636 msgstr ""
5637
5638 # type: =item
5639 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5640 msgid "C<crc>"
5641 msgstr ""
5642
5643 # type: textblock
5644 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5645 msgid ""
5646 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5647 "C<cksum> command."
5648 msgstr ""
5649
5650 # type: =item
5651 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5652 msgid "C<md5>"
5653 msgstr ""
5654
5655 # type: textblock
5656 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5657 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5658 msgstr ""
5659
5660 # type: =item
5661 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5662 msgid "C<sha1>"
5663 msgstr ""
5664
5665 # type: textblock
5666 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5667 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5668 msgstr ""
5669
5670 # type: =item
5671 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
5672 msgid "C<sha224>"
5673 msgstr ""
5674
5675 # type: textblock
5676 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
5677 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5678 msgstr ""
5679
5680 # type: =item
5681 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
5682 msgid "C<sha256>"
5683 msgstr ""
5684
5685 # type: textblock
5686 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
5687 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5688 msgstr ""
5689
5690 # type: =item
5691 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
5692 msgid "C<sha384>"
5693 msgstr ""
5694
5695 # type: textblock
5696 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
5697 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5698 msgstr ""
5699
5700 # type: =item
5701 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
5702 msgid "C<sha512>"
5703 msgstr ""
5704
5705 # type: textblock
5706 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
5707 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5708 msgstr ""
5709
5710 # type: textblock
5711 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
5712 msgid "The checksum is returned as a printable string."
5713 msgstr ""
5714
5715 # type: textblock
5716 #: ../src/guestfs-actions.pod:923
5717 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5718 msgstr ""
5719
5720 # type: textblock
5721 #: ../src/guestfs-actions.pod:925
5722 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5723 msgstr ""
5724
5725 # type: textblock
5726 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3006 ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3096 ../src/guestfs-actions.pod:3123 ../src/guestfs-actions.pod:6358
5727 msgid "(Added in 1.0.2)"
5728 msgstr ""
5729
5730 # type: =head2
5731 #: ../src/guestfs-actions.pod:932
5732 msgid "guestfs_checksum_device"
5733 msgstr ""
5734
5735 # type: verbatim
5736 #: ../src/guestfs-actions.pod:934
5737 #, no-wrap
5738 msgid ""
5739 " char *\n"
5740 " guestfs_checksum_device (guestfs_h *g,\n"
5741 "                          const char *csumtype,\n"
5742 "                          const char *device);\n"
5743 "\n"
5744 msgstr ""
5745
5746 # type: textblock
5747 #: ../src/guestfs-actions.pod:939
5748 msgid ""
5749 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5750 "device named C<device>.  For the types of checksums supported see the "
5751 "C<guestfs_checksum> command."
5752 msgstr ""
5753
5754 # type: textblock
5755 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4471 ../src/guestfs-actions.pod:4530 ../src/guestfs-actions.pod:4567 ../src/guestfs-actions.pod:4585 ../src/guestfs-actions.pod:4761 ../src/guestfs-actions.pod:6272 ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6682
5756 msgid "(Added in 1.3.2)"
5757 msgstr ""
5758
5759 # type: =head2
5760 #: ../src/guestfs-actions.pod:948
5761 msgid "guestfs_checksums_out"
5762 msgstr ""
5763
5764 # type: verbatim
5765 #: ../src/guestfs-actions.pod:950
5766 #, no-wrap
5767 msgid ""
5768 " int\n"
5769 " guestfs_checksums_out (guestfs_h *g,\n"
5770 "                        const char *csumtype,\n"
5771 "                        const char *directory,\n"
5772 "                        const char *sumsfile);\n"
5773 "\n"
5774 msgstr ""
5775
5776 # type: textblock
5777 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
5778 msgid ""
5779 "This command computes the checksums of all regular files in C<directory> and "
5780 "then emits a list of those checksums to the local output file C<sumsfile>."
5781 msgstr ""
5782
5783 # type: textblock
5784 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
5785 msgid ""
5786 "This can be used for verifying the integrity of a virtual machine.  However "
5787 "to be properly secure you should pay attention to the output of the checksum "
5788 "command (it uses the ones from GNU coreutils).  In particular when the "
5789 "filename is not printable, coreutils uses a special backslash syntax.  For "
5790 "more information, see the GNU coreutils info file."
5791 msgstr ""
5792
5793 # type: textblock
5794 #: ../src/guestfs-actions.pod:970
5795 msgid "(Added in 1.3.7)"
5796 msgstr ""
5797
5798 # type: =head2
5799 #: ../src/guestfs-actions.pod:972
5800 msgid "guestfs_chmod"
5801 msgstr ""
5802
5803 # type: verbatim
5804 #: ../src/guestfs-actions.pod:974
5805 #, no-wrap
5806 msgid ""
5807 " int\n"
5808 " guestfs_chmod (guestfs_h *g,\n"
5809 "                int mode,\n"
5810 "                const char *path);\n"
5811 "\n"
5812 msgstr ""
5813
5814 # type: textblock
5815 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
5816 msgid ""
5817 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5818 "supported."
5819 msgstr ""
5820
5821 # type: textblock
5822 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
5823 msgid ""
5824 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5825 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5826 "C<700>."
5827 msgstr ""
5828
5829 # type: textblock
5830 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4208 ../fish/guestfish-actions.pod:671 ../fish/guestfish-actions.pod:2738 ../fish/guestfish-actions.pod:2823 ../fish/guestfish-actions.pod:2833 ../fish/guestfish-actions.pod:2843
5831 msgid "The mode actually set is affected by the umask."
5832 msgstr ""
5833
5834 # type: =head2
5835 #: ../src/guestfs-actions.pod:992
5836 msgid "guestfs_chown"
5837 msgstr ""
5838
5839 # type: verbatim
5840 #: ../src/guestfs-actions.pod:994
5841 #, no-wrap
5842 msgid ""
5843 " int\n"
5844 " guestfs_chown (guestfs_h *g,\n"
5845 "                int owner,\n"
5846 "                int group,\n"
5847 "                const char *path);\n"
5848 "\n"
5849 msgstr ""
5850
5851 # type: textblock
5852 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
5853 msgid "Change the file owner to C<owner> and group to C<group>."
5854 msgstr ""
5855
5856 # type: textblock
5857 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3193 ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2216
5858 msgid ""
5859 "Only numeric uid and gid are supported.  If you want to use names, you will "
5860 "need to locate and parse the password file yourself (Augeas support makes "
5861 "this relatively easy)."
5862 msgstr ""
5863
5864 # type: =head2
5865 #: ../src/guestfs-actions.pod:1010
5866 msgid "guestfs_command"
5867 msgstr ""
5868
5869 # type: verbatim
5870 #: ../src/guestfs-actions.pod:1012
5871 #, no-wrap
5872 msgid ""
5873 " char *\n"
5874 " guestfs_command (guestfs_h *g,\n"
5875 "                  char *const *arguments);\n"
5876 "\n"
5877 msgstr ""
5878
5879 # type: textblock
5880 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
5881 msgid ""
5882 "This call runs a command from the guest filesystem.  The filesystem must be "
5883 "mounted, and must contain a compatible operating system (ie. something "
5884 "Linux, with the same or compatible processor architecture)."
5885 msgstr ""
5886
5887 # type: textblock
5888 #: ../src/guestfs-actions.pod:1021
5889 msgid ""
5890 "The single parameter is an argv-style list of arguments.  The first element "
5891 "is the name of the program to run.  Subsequent elements are parameters.  The "
5892 "list must be non-empty (ie. must contain a program name).  Note that the "
5893 "command runs directly, and is I<not> invoked via the shell (see "
5894 "C<guestfs_sh>)."
5895 msgstr ""
5896
5897 # type: textblock
5898 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
5899 msgid "The return value is anything printed to I<stdout> by the command."
5900 msgstr ""
5901
5902 # type: textblock
5903 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
5904 msgid ""
5905 "If the command returns a non-zero exit status, then this function returns an "
5906 "error message.  The error message string is the content of I<stderr> from "
5907 "the command."
5908 msgstr ""
5909
5910 # type: textblock
5911 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
5912 msgid ""
5913 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5914 "C</bin>.  If you require a program from another location, you should provide "
5915 "the full path in the first parameter."
5916 msgstr ""
5917
5918 # type: textblock
5919 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
5920 msgid ""
5921 "Shared libraries and data files required by the program must be available on "
5922 "filesystems which are mounted in the correct places.  It is the caller's "
5923 "responsibility to ensure all filesystems that are needed are mounted at the "
5924 "right locations."
5925 msgstr ""
5926
5927 # type: textblock
5928 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1535
5929 msgid "(Added in 0.9.1)"
5930 msgstr ""
5931
5932 # type: =head2
5933 #: ../src/guestfs-actions.pod:1054
5934 msgid "guestfs_command_lines"
5935 msgstr ""
5936
5937 # type: verbatim
5938 #: ../src/guestfs-actions.pod:1056
5939 #, no-wrap
5940 msgid ""
5941 " char **\n"
5942 " guestfs_command_lines (guestfs_h *g,\n"
5943 "                        char *const *arguments);\n"
5944 "\n"
5945 msgstr ""
5946
5947 # type: textblock
5948 #: ../src/guestfs-actions.pod:1060
5949 msgid ""
5950 "This is the same as C<guestfs_command>, but splits the result into a list of "
5951 "lines."
5952 msgstr ""
5953
5954 # type: textblock
5955 #: ../src/guestfs-actions.pod:1063
5956 msgid "See also: C<guestfs_sh_lines>"
5957 msgstr ""
5958
5959 # type: =head2
5960 #: ../src/guestfs-actions.pod:1074
5961 msgid "guestfs_config"
5962 msgstr ""
5963
5964 # type: verbatim
5965 #: ../src/guestfs-actions.pod:1076
5966 #, no-wrap
5967 msgid ""
5968 " int\n"
5969 " guestfs_config (guestfs_h *g,\n"
5970 "                 const char *qemuparam,\n"
5971 "                 const char *qemuvalue);\n"
5972 "\n"
5973 msgstr ""
5974
5975 # type: textblock
5976 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
5977 msgid ""
5978 "This can be used to add arbitrary qemu command line parameters of the form "
5979 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5980 "setting some parameters which would interfere with parameters that we use."
5981 msgstr ""
5982
5983 # type: textblock
5984 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
5985 msgid "The first character of C<param> string must be a C<-> (dash)."
5986 msgstr ""
5987
5988 # type: textblock
5989 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
5990 msgid "C<value> can be NULL."
5991 msgstr ""
5992
5993 # type: =head2
5994 #: ../src/guestfs-actions.pod:1094
5995 msgid "guestfs_copy_size"
5996 msgstr ""
5997
5998 # type: verbatim
5999 #: ../src/guestfs-actions.pod:1096
6000 #, no-wrap
6001 msgid ""
6002 " int\n"
6003 " guestfs_copy_size (guestfs_h *g,\n"
6004 "                    const char *src,\n"
6005 "                    const char *dest,\n"
6006 "                    int64_t size);\n"
6007 "\n"
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6012 msgid ""
6013 "This command copies exactly C<size> bytes from one source device or file "
6014 "C<src> to another destination device or file C<dest>."
6015 msgstr ""
6016
6017 # type: textblock
6018 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6019 msgid ""
6020 "Note this will fail if the source is too short or if the destination is not "
6021 "large enough."
6022 msgstr ""
6023
6024 # type: textblock
6025 #: ../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:6861 ../src/guestfs-actions.pod:6880
6026 msgid ""
6027 "This long-running command can generate progress notification messages so "
6028 "that the caller can display a progress bar or indicator.  To receive these "
6029 "messages, the caller must register a progress callback.  See "
6030 "L<guestfs(3)/guestfs_set_progress_callback>."
6031 msgstr ""
6032
6033 # type: textblock
6034 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3831 ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:6589 ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6695
6035 msgid "(Added in 1.0.87)"
6036 msgstr ""
6037
6038 # type: =head2
6039 #: ../src/guestfs-actions.pod:1117
6040 msgid "guestfs_cp"
6041 msgstr ""
6042
6043 # type: verbatim
6044 #: ../src/guestfs-actions.pod:1119
6045 #, no-wrap
6046 msgid ""
6047 " int\n"
6048 " guestfs_cp (guestfs_h *g,\n"
6049 "             const char *src,\n"
6050 "             const char *dest);\n"
6051 "\n"
6052 msgstr ""
6053
6054 # type: textblock
6055 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6056 msgid ""
6057 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6058 "destination filename or destination directory."
6059 msgstr ""
6060
6061 # type: textblock
6062 #: ../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:4434 ../src/guestfs-actions.pod:4811
6063 msgid "(Added in 1.0.18)"
6064 msgstr ""
6065
6066 # type: =head2
6067 #: ../src/guestfs-actions.pod:1131
6068 msgid "guestfs_cp_a"
6069 msgstr ""
6070
6071 # type: verbatim
6072 #: ../src/guestfs-actions.pod:1133
6073 #, no-wrap
6074 msgid ""
6075 " int\n"
6076 " guestfs_cp_a (guestfs_h *g,\n"
6077 "               const char *src,\n"
6078 "               const char *dest);\n"
6079 "\n"
6080 msgstr ""
6081
6082 # type: textblock
6083 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6084 msgid ""
6085 "This copies a file or directory from C<src> to C<dest> recursively using the "
6086 "C<cp -a> command."
6087 msgstr ""
6088
6089 # type: =head2
6090 #: ../src/guestfs-actions.pod:1145
6091 msgid "guestfs_dd"
6092 msgstr ""
6093
6094 # type: verbatim
6095 #: ../src/guestfs-actions.pod:1147
6096 #, no-wrap
6097 msgid ""
6098 " int\n"
6099 " guestfs_dd (guestfs_h *g,\n"
6100 "             const char *src,\n"
6101 "             const char *dest);\n"
6102 "\n"
6103 msgstr ""
6104
6105 # type: textblock
6106 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6107 msgid ""
6108 "This command copies from one source device or file C<src> to another "
6109 "destination device or file C<dest>.  Normally you would use this to copy to "
6110 "or from a device or partition, for example to duplicate a filesystem."
6111 msgstr ""
6112
6113 # type: textblock
6114 #: ../src/guestfs-actions.pod:1157
6115 msgid ""
6116 "If the destination is a device, it must be as large or larger than the "
6117 "source file or device, otherwise the copy will fail.  This command cannot do "
6118 "partial copies (see C<guestfs_copy_size>)."
6119 msgstr ""
6120
6121 # type: =head2
6122 #: ../src/guestfs-actions.pod:1165
6123 msgid "guestfs_df"
6124 msgstr ""
6125
6126 # type: verbatim
6127 #: ../src/guestfs-actions.pod:1167
6128 #, no-wrap
6129 msgid ""
6130 " char *\n"
6131 " guestfs_df (guestfs_h *g);\n"
6132 "\n"
6133 msgstr ""
6134
6135 # type: textblock
6136 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6137 msgid "This command runs the C<df> command to report disk space used."
6138 msgstr ""
6139
6140 # type: textblock
6141 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189 ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6142 msgid ""
6143 "This command is mostly useful for interactive sessions.  It is I<not> "
6144 "intended that you try to parse the output string.  Use C<statvfs> from "
6145 "programs."
6146 msgstr ""
6147
6148 # type: textblock
6149 #: ../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:3941 ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:6096 ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6728 ../src/guestfs-actions.pod:6741 ../src/guestfs-actions.pod:6754
6150 msgid "(Added in 1.0.54)"
6151 msgstr ""
6152
6153 # type: =head2
6154 #: ../src/guestfs-actions.pod:1181
6155 msgid "guestfs_df_h"
6156 msgstr ""
6157
6158 # type: verbatim
6159 #: ../src/guestfs-actions.pod:1183
6160 #, no-wrap
6161 msgid ""
6162 " char *\n"
6163 " guestfs_df_h (guestfs_h *g);\n"
6164 "\n"
6165 msgstr ""
6166
6167 # type: textblock
6168 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6169 msgid ""
6170 "This command runs the C<df -h> command to report disk space used in "
6171 "human-readable format."
6172 msgstr ""
6173
6174 # type: =head2
6175 #: ../src/guestfs-actions.pod:1198
6176 msgid "guestfs_dmesg"
6177 msgstr ""
6178
6179 # type: verbatim
6180 #: ../src/guestfs-actions.pod:1200
6181 #, no-wrap
6182 msgid ""
6183 " char *\n"
6184 " guestfs_dmesg (guestfs_h *g);\n"
6185 "\n"
6186 msgstr ""
6187
6188 # type: textblock
6189 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6190 msgid ""
6191 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6192 "This is sometimes useful for extended debugging of problems."
6193 msgstr ""
6194
6195 # type: textblock
6196 #: ../src/guestfs-actions.pod:1207
6197 msgid ""
6198 "Another way to get the same information is to enable verbose messages with "
6199 "C<guestfs_set_verbose> or by setting the environment variable "
6200 "C<LIBGUESTFS_DEBUG=1> before running the program."
6201 msgstr ""
6202
6203 # type: =head2
6204 #: ../src/guestfs-actions.pod:1217
6205 msgid "guestfs_download"
6206 msgstr ""
6207
6208 # type: verbatim
6209 #: ../src/guestfs-actions.pod:1219
6210 #, no-wrap
6211 msgid ""
6212 " int\n"
6213 " guestfs_download (guestfs_h *g,\n"
6214 "                   const char *remotefilename,\n"
6215 "                   const char *filename);\n"
6216 "\n"
6217 msgstr ""
6218
6219 # type: textblock
6220 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6221 msgid ""
6222 "Download file C<remotefilename> and save it as C<filename> on the local "
6223 "machine."
6224 msgstr ""
6225
6226 # type: textblock
6227 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6352 ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4258
6228 msgid "C<filename> can also be a named pipe."
6229 msgstr ""
6230
6231 # type: textblock
6232 #: ../src/guestfs-actions.pod:1229
6233 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6234 msgstr ""
6235
6236 # type: =head2
6237 #: ../src/guestfs-actions.pod:1240
6238 msgid "guestfs_download_offset"
6239 msgstr ""
6240
6241 # type: verbatim
6242 #: ../src/guestfs-actions.pod:1242
6243 #, no-wrap
6244 msgid ""
6245 " int\n"
6246 " guestfs_download_offset (guestfs_h *g,\n"
6247 "                          const char *remotefilename,\n"
6248 "                          const char *filename,\n"
6249 "                          int64_t offset,\n"
6250 "                          int64_t size);\n"
6251 "\n"
6252 msgstr ""
6253
6254 # type: textblock
6255 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6256 msgid ""
6257 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6258 "region must be within the file or device)."
6259 msgstr ""
6260
6261 # type: textblock
6262 #: ../src/guestfs-actions.pod:1255
6263 msgid ""
6264 "Note that there is no limit on the amount of data that can be downloaded "
6265 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6266 "full amount unless an error occurs."
6267 msgstr ""
6268
6269 # type: textblock
6270 #: ../src/guestfs-actions.pod:1260
6271 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6272 msgstr ""
6273
6274 # type: textblock
6275 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6387
6276 msgid "(Added in 1.5.17)"
6277 msgstr ""
6278
6279 # type: =head2
6280 #: ../src/guestfs-actions.pod:1271
6281 msgid "guestfs_drop_caches"
6282 msgstr ""
6283
6284 # type: verbatim
6285 #: ../src/guestfs-actions.pod:1273
6286 #, no-wrap
6287 msgid ""
6288 " int\n"
6289 " guestfs_drop_caches (guestfs_h *g,\n"
6290 "                      int whattodrop);\n"
6291 "\n"
6292 msgstr ""
6293
6294 # type: textblock
6295 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6296 msgid ""
6297 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6298 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6299 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6300 msgstr ""
6301
6302 # type: textblock
6303 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6304 msgid "Setting C<whattodrop> to 3 should drop everything."
6305 msgstr ""
6306
6307 # type: textblock
6308 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6309 msgid ""
6310 "This automatically calls L<sync(2)> before the operation, so that the "
6311 "maximum guest memory is freed."
6312 msgstr ""
6313
6314 # type: =head2
6315 #: ../src/guestfs-actions.pod:1291
6316 msgid "guestfs_du"
6317 msgstr ""
6318
6319 # type: verbatim
6320 #: ../src/guestfs-actions.pod:1293
6321 #, no-wrap
6322 msgid ""
6323 " int64_t\n"
6324 " guestfs_du (guestfs_h *g,\n"
6325 "             const char *path);\n"
6326 "\n"
6327 msgstr ""
6328
6329 # type: textblock
6330 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6331 msgid ""
6332 "This command runs the C<du -s> command to estimate file space usage for "
6333 "C<path>."
6334 msgstr ""
6335
6336 # type: textblock
6337 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6338 msgid ""
6339 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6340 "estimate includes the contents of the directory and all subdirectories "
6341 "(recursively)."
6342 msgstr ""
6343
6344 # type: textblock
6345 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6346 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6347 msgstr ""
6348
6349 # type: =head2
6350 #: ../src/guestfs-actions.pod:1311
6351 msgid "guestfs_e2fsck_f"
6352 msgstr ""
6353
6354 # type: verbatim
6355 #: ../src/guestfs-actions.pod:1313
6356 #, no-wrap
6357 msgid ""
6358 " int\n"
6359 " guestfs_e2fsck_f (guestfs_h *g,\n"
6360 "                   const char *device);\n"
6361 "\n"
6362 msgstr ""
6363
6364 # type: textblock
6365 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6366 msgid ""
6367 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6368 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6369 "clean (C<-f>)."
6370 msgstr ""
6371
6372 # type: textblock
6373 #: ../src/guestfs-actions.pod:1321
6374 msgid ""
6375 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6376 "Normally you should use C<guestfs_fsck>."
6377 msgstr ""
6378
6379 # type: textblock
6380 #: ../src/guestfs-actions.pod:1326
6381 msgid "(Added in 1.0.29)"
6382 msgstr ""
6383
6384 # type: =head2
6385 #: ../src/guestfs-actions.pod:1328
6386 msgid "guestfs_echo_daemon"
6387 msgstr ""
6388
6389 # type: verbatim
6390 #: ../src/guestfs-actions.pod:1330
6391 #, no-wrap
6392 msgid ""
6393 " char *\n"
6394 " guestfs_echo_daemon (guestfs_h *g,\n"
6395 "                      char *const *words);\n"
6396 "\n"
6397 msgstr ""
6398
6399 # type: textblock
6400 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6401 msgid ""
6402 "This command concatenates the list of C<words> passed with single spaces "
6403 "between them and returns the resulting string."
6404 msgstr ""
6405
6406 # type: textblock
6407 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6408 msgid "You can use this command to test the connection through to the daemon."
6409 msgstr ""
6410
6411 # type: textblock
6412 #: ../src/guestfs-actions.pod:1339
6413 msgid "See also C<guestfs_ping_daemon>."
6414 msgstr ""
6415
6416 # type: textblock
6417 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:5600
6418 msgid "(Added in 1.0.69)"
6419 msgstr ""
6420
6421 # type: =head2
6422 #: ../src/guestfs-actions.pod:1346
6423 msgid "guestfs_egrep"
6424 msgstr ""
6425
6426 # type: verbatim
6427 #: ../src/guestfs-actions.pod:1348
6428 #, no-wrap
6429 msgid ""
6430 " char **\n"
6431 " guestfs_egrep (guestfs_h *g,\n"
6432 "                const char *regex,\n"
6433 "                const char *path);\n"
6434 "\n"
6435 msgstr ""
6436
6437 # type: textblock
6438 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6439 msgid "This calls the external C<egrep> program and returns the matching lines."
6440 msgstr ""
6441
6442 # type: textblock
6443 #: ../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:3324 ../src/guestfs-actions.pod:3338 ../src/guestfs-actions.pod:3351 ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5194 ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:5989 ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6024 ../src/guestfs-actions.pod:6037 ../src/guestfs-actions.pod:6050 ../src/guestfs-actions.pod:6063 ../src/guestfs-actions.pod:6824 ../src/guestfs-actions.pod:6843 ../src/guestfs-actions.pod:6928 ../src/guestfs-actions.pod:6947 ../src/guestfs-actions.pod:6993 ../src/guestfs-actions.pod:7012
6444 msgid "(Added in 1.0.66)"
6445 msgstr ""
6446
6447 # type: =head2
6448 #: ../src/guestfs-actions.pod:1365
6449 msgid "guestfs_egrepi"
6450 msgstr ""
6451
6452 # type: verbatim
6453 #: ../src/guestfs-actions.pod:1367
6454 #, no-wrap
6455 msgid ""
6456 " char **\n"
6457 " guestfs_egrepi (guestfs_h *g,\n"
6458 "                 const char *regex,\n"
6459 "                 const char *path);\n"
6460 "\n"
6461 msgstr ""
6462
6463 # type: textblock
6464 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6465 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6466 msgstr ""
6467
6468 # type: =head2
6469 #: ../src/guestfs-actions.pod:1384
6470 msgid "guestfs_equal"
6471 msgstr ""
6472
6473 # type: verbatim
6474 #: ../src/guestfs-actions.pod:1386
6475 #, no-wrap
6476 msgid ""
6477 " int\n"
6478 " guestfs_equal (guestfs_h *g,\n"
6479 "                const char *file1,\n"
6480 "                const char *file2);\n"
6481 "\n"
6482 msgstr ""
6483
6484 # type: textblock
6485 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6486 msgid ""
6487 "This compares the two files C<file1> and C<file2> and returns true if their "
6488 "content is exactly equal, or false otherwise."
6489 msgstr ""
6490
6491 # type: textblock
6492 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6493 msgid "The external L<cmp(1)> program is used for the comparison."
6494 msgstr ""
6495
6496 # type: =head2
6497 #: ../src/guestfs-actions.pod:1400
6498 msgid "guestfs_exists"
6499 msgstr ""
6500
6501 # type: verbatim
6502 #: ../src/guestfs-actions.pod:1402
6503 #, no-wrap
6504 msgid ""
6505 " int\n"
6506 " guestfs_exists (guestfs_h *g,\n"
6507 "                 const char *path);\n"
6508 "\n"
6509 msgstr ""
6510
6511 # type: textblock
6512 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6513 msgid ""
6514 "This returns C<true> if and only if there is a file, directory (or anything) "
6515 "with the given C<path> name."
6516 msgstr ""
6517
6518 # type: textblock
6519 #: ../src/guestfs-actions.pod:1409
6520 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6521 msgstr ""
6522
6523 # type: =head2
6524 #: ../src/guestfs-actions.pod:1415
6525 msgid "guestfs_fallocate"
6526 msgstr ""
6527
6528 # type: verbatim
6529 #: ../src/guestfs-actions.pod:1417
6530 #, no-wrap
6531 msgid ""
6532 " int\n"
6533 " guestfs_fallocate (guestfs_h *g,\n"
6534 "                    const char *path,\n"
6535 "                    int len);\n"
6536 "\n"
6537 msgstr ""
6538
6539 # type: textblock
6540 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6541 msgid ""
6542 "This command preallocates a file (containing zero bytes) named C<path> of "
6543 "size C<len> bytes.  If the file exists already, it is overwritten."
6544 msgstr ""
6545
6546 # type: textblock
6547 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6548 msgid ""
6549 "Do not confuse this with the guestfish-specific C<alloc> command which "
6550 "allocates a file in the host and attaches it as a device."
6551 msgstr ""
6552
6553 # type: textblock
6554 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6555 msgid ""
6556 "This function is deprecated.  In new code, use the C<fallocate64> call "
6557 "instead."
6558 msgstr ""
6559
6560 # type: =head2
6561 #: ../src/guestfs-actions.pod:1441
6562 msgid "guestfs_fallocate64"
6563 msgstr ""
6564
6565 # type: verbatim
6566 #: ../src/guestfs-actions.pod:1443
6567 #, no-wrap
6568 msgid ""
6569 " int\n"
6570 " guestfs_fallocate64 (guestfs_h *g,\n"
6571 "                      const char *path,\n"
6572 "                      int64_t len);\n"
6573 "\n"
6574 msgstr ""
6575
6576 # type: textblock
6577 #: ../src/guestfs-actions.pod:1452
6578 msgid ""
6579 "Note that this call allocates disk blocks for the file.  To create a sparse "
6580 "file use C<guestfs_truncate_size> instead."
6581 msgstr ""
6582
6583 # type: textblock
6584 #: ../src/guestfs-actions.pod:1455
6585 msgid ""
6586 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6587 "oversight it only allowed 30 bit lengths to be specified, effectively "
6588 "limiting the maximum size of files created through that call to 1GB."
6589 msgstr ""
6590
6591 # type: textblock
6592 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6593 msgid ""
6594 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6595 "commands which create a file in the host and attach it as a device."
6596 msgstr ""
6597
6598 # type: textblock
6599 #: ../src/guestfs-actions.pod:1466
6600 msgid "(Added in 1.3.17)"
6601 msgstr ""
6602
6603 # type: =head2
6604 #: ../src/guestfs-actions.pod:1468
6605 msgid "guestfs_fgrep"
6606 msgstr ""
6607
6608 # type: verbatim
6609 #: ../src/guestfs-actions.pod:1470
6610 #, no-wrap
6611 msgid ""
6612 " char **\n"
6613 " guestfs_fgrep (guestfs_h *g,\n"
6614 "                const char *pattern,\n"
6615 "                const char *path);\n"
6616 "\n"
6617 msgstr ""
6618
6619 # type: textblock
6620 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
6621 msgid "This calls the external C<fgrep> program and returns the matching lines."
6622 msgstr ""
6623
6624 # type: =head2
6625 #: ../src/guestfs-actions.pod:1487
6626 msgid "guestfs_fgrepi"
6627 msgstr ""
6628
6629 # type: verbatim
6630 #: ../src/guestfs-actions.pod:1489
6631 #, no-wrap
6632 msgid ""
6633 " char **\n"
6634 " guestfs_fgrepi (guestfs_h *g,\n"
6635 "                 const char *pattern,\n"
6636 "                 const char *path);\n"
6637 "\n"
6638 msgstr ""
6639
6640 # type: textblock
6641 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
6642 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6643 msgstr ""
6644
6645 # type: =head2
6646 #: ../src/guestfs-actions.pod:1506
6647 msgid "guestfs_file"
6648 msgstr ""
6649
6650 # type: verbatim
6651 #: ../src/guestfs-actions.pod:1508
6652 #, no-wrap
6653 msgid ""
6654 " char *\n"
6655 " guestfs_file (guestfs_h *g,\n"
6656 "               const char *path);\n"
6657 "\n"
6658 msgstr ""
6659
6660 # type: textblock
6661 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
6662 msgid ""
6663 "This call uses the standard L<file(1)> command to determine the type or "
6664 "contents of the file."
6665 msgstr ""
6666
6667 # type: textblock
6668 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
6669 msgid ""
6670 "This call will also transparently look inside various types of compressed "
6671 "file."
6672 msgstr ""
6673
6674 # type: textblock
6675 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
6676 msgid ""
6677 "The exact command which runs is C<file -zb path>.  Note in particular that "
6678 "the filename is not prepended to the output (the C<-b> option)."
6679 msgstr ""
6680
6681 # type: textblock
6682 #: ../src/guestfs-actions.pod:1522
6683 msgid ""
6684 "This command can also be used on C</dev/> devices (and partitions, LV "
6685 "names).  You can for example use this to determine if a device contains a "
6686 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6687 msgstr ""
6688
6689 # type: textblock
6690 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
6691 msgid ""
6692 "If the C<path> does not begin with C</dev/> then this command only works for "
6693 "the content of regular files.  For other file types (directory, symbolic "
6694 "link etc) it will just return the string C<directory> etc."
6695 msgstr ""
6696
6697 # type: =head2
6698 #: ../src/guestfs-actions.pod:1537
6699 msgid "guestfs_file_architecture"
6700 msgstr ""
6701
6702 # type: verbatim
6703 #: ../src/guestfs-actions.pod:1539
6704 #, no-wrap
6705 msgid ""
6706 " char *\n"
6707 " guestfs_file_architecture (guestfs_h *g,\n"
6708 "                            const char *filename);\n"
6709 "\n"
6710 msgstr ""
6711
6712 # type: textblock
6713 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
6714 msgid ""
6715 "This detects the architecture of the binary C<filename>, and returns it if "
6716 "known."
6717 msgstr ""
6718
6719 # type: textblock
6720 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
6721 msgid "Currently defined architectures are:"
6722 msgstr ""
6723
6724 # type: =item
6725 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
6726 msgid "\"i386\""
6727 msgstr ""
6728
6729 # type: textblock
6730 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
6731 msgid ""
6732 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6733 "irrespective of the precise processor requirements of the binary."
6734 msgstr ""
6735
6736 # type: =item
6737 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
6738 msgid "\"x86_64\""
6739 msgstr ""
6740
6741 # type: textblock
6742 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
6743 msgid "64 bit x86-64."
6744 msgstr ""
6745
6746 # type: =item
6747 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
6748 msgid "\"sparc\""
6749 msgstr ""
6750
6751 # type: textblock
6752 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
6753 msgid "32 bit SPARC."
6754 msgstr ""
6755
6756 # type: =item
6757 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
6758 msgid "\"sparc64\""
6759 msgstr ""
6760
6761 # type: textblock
6762 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
6763 msgid "64 bit SPARC V9 and above."
6764 msgstr ""
6765
6766 # type: =item
6767 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
6768 msgid "\"ia64\""
6769 msgstr ""
6770
6771 # type: textblock
6772 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
6773 msgid "Intel Itanium."
6774 msgstr ""
6775
6776 # type: =item
6777 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
6778 msgid "\"ppc\""
6779 msgstr ""
6780
6781 # type: textblock
6782 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
6783 msgid "32 bit Power PC."
6784 msgstr ""
6785
6786 # type: =item
6787 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
6788 msgid "\"ppc64\""
6789 msgstr ""
6790
6791 # type: textblock
6792 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
6793 msgid "64 bit Power PC."
6794 msgstr ""
6795
6796 # type: textblock
6797 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
6798 msgid "Libguestfs may return other architecture strings in future."
6799 msgstr ""
6800
6801 # type: textblock
6802 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
6803 msgid "The function works on at least the following types of files:"
6804 msgstr ""
6805
6806 # type: textblock
6807 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
6808 msgid "many types of Un*x and Linux binary"
6809 msgstr ""
6810
6811 # type: textblock
6812 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
6813 msgid "many types of Un*x and Linux shared library"
6814 msgstr ""
6815
6816 # type: textblock
6817 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
6818 msgid "Windows Win32 and Win64 binaries"
6819 msgstr ""
6820
6821 # type: textblock
6822 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
6823 msgid "Windows Win32 and Win64 DLLs"
6824 msgstr ""
6825
6826 # type: textblock
6827 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
6828 msgid "Win32 binaries and DLLs return C<i386>."
6829 msgstr ""
6830
6831 # type: textblock
6832 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
6833 msgid "Win64 binaries and DLLs return C<x86_64>."
6834 msgstr ""
6835
6836 # type: textblock
6837 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
6838 msgid "Linux kernel modules"
6839 msgstr ""
6840
6841 # type: textblock
6842 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
6843 msgid "Linux new-style initrd images"
6844 msgstr ""
6845
6846 # type: textblock
6847 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
6848 msgid "some non-x86 Linux vmlinuz kernels"
6849 msgstr ""
6850
6851 # type: textblock
6852 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
6853 msgid "What it can't do currently:"
6854 msgstr ""
6855
6856 # type: textblock
6857 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
6858 msgid "static libraries (libfoo.a)"
6859 msgstr ""
6860
6861 # type: textblock
6862 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
6863 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6864 msgstr ""
6865
6866 # type: textblock
6867 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
6868 msgid "x86 Linux vmlinuz kernels"
6869 msgstr ""
6870
6871 # type: textblock
6872 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
6873 msgid ""
6874 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6875 "compressed code, and are horribly hard to unpack.  If you want to find the "
6876 "architecture of a kernel, use the architecture of the associated initrd or "
6877 "kernel module(s) instead."
6878 msgstr ""
6879
6880 # type: textblock
6881 #: ../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:2612 ../src/guestfs-actions.pod:2633 ../src/guestfs-actions.pod:2666 ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2806 ../src/guestfs-actions.pod:2977 ../src/guestfs-actions.pod:3109
6882 msgid "(Added in 1.5.3)"
6883 msgstr ""
6884
6885 # type: =head2
6886 #: ../src/guestfs-actions.pod:1649
6887 msgid "guestfs_filesize"
6888 msgstr ""
6889
6890 # type: verbatim
6891 #: ../src/guestfs-actions.pod:1651
6892 #, no-wrap
6893 msgid ""
6894 " int64_t\n"
6895 " guestfs_filesize (guestfs_h *g,\n"
6896 "                   const char *file);\n"
6897 "\n"
6898 msgstr ""
6899
6900 # type: textblock
6901 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
6902 msgid "This command returns the size of C<file> in bytes."
6903 msgstr ""
6904
6905 # type: textblock
6906 #: ../src/guestfs-actions.pod:1657
6907 msgid ""
6908 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6909 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6910 "devices, use C<guestfs_blockdev_getsize64>."
6911 msgstr ""
6912
6913 # type: textblock
6914 #: ../src/guestfs-actions.pod:1663
6915 msgid "(Added in 1.0.82)"
6916 msgstr ""
6917
6918 # type: =head2
6919 #: ../src/guestfs-actions.pod:1665
6920 msgid "guestfs_fill"
6921 msgstr ""
6922
6923 # type: verbatim
6924 #: ../src/guestfs-actions.pod:1667
6925 #, no-wrap
6926 msgid ""
6927 " int\n"
6928 " guestfs_fill (guestfs_h *g,\n"
6929 "               int c,\n"
6930 "               int len,\n"
6931 "               const char *path);\n"
6932 "\n"
6933 msgstr ""
6934
6935 # type: textblock
6936 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
6937 msgid ""
6938 "This command creates a new file called C<path>.  The initial content of the "
6939 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6940 "C<[0..255]>."
6941 msgstr ""
6942
6943 # type: textblock
6944 #: ../src/guestfs-actions.pod:1677
6945 msgid ""
6946 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6947 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6948 "bytes use C<guestfs_fill_pattern>."
6949 msgstr ""
6950
6951 # type: textblock
6952 #: ../src/guestfs-actions.pod:1689
6953 msgid "(Added in 1.0.79)"
6954 msgstr ""
6955
6956 # type: =head2
6957 #: ../src/guestfs-actions.pod:1691
6958 msgid "guestfs_fill_pattern"
6959 msgstr ""
6960
6961 # type: verbatim
6962 #: ../src/guestfs-actions.pod:1693
6963 #, no-wrap
6964 msgid ""
6965 " int\n"
6966 " guestfs_fill_pattern (guestfs_h *g,\n"
6967 "                       const char *pattern,\n"
6968 "                       int len,\n"
6969 "                       const char *path);\n"
6970 "\n"
6971 msgstr ""
6972
6973 # type: textblock
6974 #: ../src/guestfs-actions.pod:1699
6975 msgid ""
6976 "This function is like C<guestfs_fill> except that it creates a new file of "
6977 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6978 "pattern is truncated if necessary to ensure the length of the file is "
6979 "exactly C<len> bytes."
6980 msgstr ""
6981
6982 # type: textblock
6983 #: ../src/guestfs-actions.pod:1711
6984 msgid "(Added in 1.3.12)"
6985 msgstr ""
6986
6987 # type: =head2
6988 #: ../src/guestfs-actions.pod:1713
6989 msgid "guestfs_find"
6990 msgstr ""
6991
6992 # type: verbatim
6993 #: ../src/guestfs-actions.pod:1715
6994 #, no-wrap
6995 msgid ""
6996 " char **\n"
6997 " guestfs_find (guestfs_h *g,\n"
6998 "               const char *directory);\n"
6999 "\n"
7000 msgstr ""
7001
7002 # type: textblock
7003 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7004 msgid ""
7005 "This command lists out all files and directories, recursively, starting at "
7006 "C<directory>.  It is essentially equivalent to running the shell command "
7007 "C<find directory -print> but some post-processing happens on the output, "
7008 "described below."
7009 msgstr ""
7010
7011 # type: textblock
7012 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7013 msgid ""
7014 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7015 "structure was:"
7016 msgstr ""
7017
7018 # type: verbatim
7019 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7020 #, no-wrap
7021 msgid ""
7022 " /tmp/a\n"
7023 " /tmp/b\n"
7024 " /tmp/c/d\n"
7025 "\n"
7026 msgstr ""
7027
7028 # type: textblock
7029 #: ../src/guestfs-actions.pod:1731
7030 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7031 msgstr ""
7032
7033 # type: verbatim
7034 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7035 #, no-wrap
7036 msgid ""
7037 " a\n"
7038 " b\n"
7039 " c\n"
7040 " c/d\n"
7041 "\n"
7042 msgstr ""
7043
7044 # type: textblock
7045 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7046 msgid "If C<directory> is not a directory, then this command returns an error."
7047 msgstr ""
7048
7049 # type: textblock
7050 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7051 msgid "The returned list is sorted."
7052 msgstr ""
7053
7054 # type: textblock
7055 #: ../src/guestfs-actions.pod:1744
7056 msgid "See also C<guestfs_find0>."
7057 msgstr ""
7058
7059 # type: textblock
7060 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:5229
7061 msgid "(Added in 1.0.27)"
7062 msgstr ""
7063
7064 # type: =head2
7065 #: ../src/guestfs-actions.pod:1755
7066 msgid "guestfs_find0"
7067 msgstr ""
7068
7069 # type: verbatim
7070 #: ../src/guestfs-actions.pod:1757
7071 #, no-wrap
7072 msgid ""
7073 " int\n"
7074 " guestfs_find0 (guestfs_h *g,\n"
7075 "                const char *directory,\n"
7076 "                const char *files);\n"
7077 "\n"
7078 msgstr ""
7079
7080 # type: textblock
7081 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7082 msgid ""
7083 "This command lists out all files and directories, recursively, starting at "
7084 "C<directory>, placing the resulting list in the external file called "
7085 "C<files>."
7086 msgstr ""
7087
7088 # type: textblock
7089 #: ../src/guestfs-actions.pod:1766
7090 msgid ""
7091 "This command works the same way as C<guestfs_find> with the following "
7092 "exceptions:"
7093 msgstr ""
7094
7095 # type: textblock
7096 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7097 msgid "The resulting list is written to an external file."
7098 msgstr ""
7099
7100 # type: textblock
7101 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7102 msgid ""
7103 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7104 "L<find(1)> option I<-print0>."
7105 msgstr ""
7106
7107 # type: textblock
7108 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7109 msgid "This command is not limited in the number of names that it can return."
7110 msgstr ""
7111
7112 # type: textblock
7113 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7114 msgid "The result list is not sorted."
7115 msgstr ""
7116
7117 # type: textblock
7118 #: ../src/guestfs-actions.pod:1793
7119 msgid "(Added in 1.0.74)"
7120 msgstr ""
7121
7122 # type: =head2
7123 #: ../src/guestfs-actions.pod:1795
7124 msgid "guestfs_findfs_label"
7125 msgstr ""
7126
7127 # type: verbatim
7128 #: ../src/guestfs-actions.pod:1797
7129 #, no-wrap
7130 msgid ""
7131 " char *\n"
7132 " guestfs_findfs_label (guestfs_h *g,\n"
7133 "                       const char *label);\n"
7134 "\n"
7135 msgstr ""
7136
7137 # type: textblock
7138 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7139 msgid ""
7140 "This command searches the filesystems and returns the one which has the "
7141 "given label.  An error is returned if no such filesystem can be found."
7142 msgstr ""
7143
7144 # type: textblock
7145 #: ../src/guestfs-actions.pod:1805
7146 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7147 msgstr ""
7148
7149 # type: =head2
7150 #: ../src/guestfs-actions.pod:1812
7151 msgid "guestfs_findfs_uuid"
7152 msgstr ""
7153
7154 # type: verbatim
7155 #: ../src/guestfs-actions.pod:1814
7156 #, no-wrap
7157 msgid ""
7158 " char *\n"
7159 " guestfs_findfs_uuid (guestfs_h *g,\n"
7160 "                      const char *uuid);\n"
7161 "\n"
7162 msgstr ""
7163
7164 # type: textblock
7165 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7166 msgid ""
7167 "This command searches the filesystems and returns the one which has the "
7168 "given UUID.  An error is returned if no such filesystem can be found."
7169 msgstr ""
7170
7171 # type: textblock
7172 #: ../src/guestfs-actions.pod:1822
7173 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7174 msgstr ""
7175
7176 # type: =head2
7177 #: ../src/guestfs-actions.pod:1829
7178 msgid "guestfs_fsck"
7179 msgstr ""
7180
7181 # type: verbatim
7182 #: ../src/guestfs-actions.pod:1831
7183 #, no-wrap
7184 msgid ""
7185 " int\n"
7186 " guestfs_fsck (guestfs_h *g,\n"
7187 "               const char *fstype,\n"
7188 "               const char *device);\n"
7189 "\n"
7190 msgstr ""
7191
7192 # type: textblock
7193 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7194 msgid ""
7195 "This runs the filesystem checker (fsck) on C<device> which should have "
7196 "filesystem type C<fstype>."
7197 msgstr ""
7198
7199 # type: textblock
7200 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7201 msgid ""
7202 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7203 "codes from C<fsck>."
7204 msgstr ""
7205
7206 # type: textblock
7207 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7208 msgid "Multiple status codes can be summed together."
7209 msgstr ""
7210
7211 # type: textblock
7212 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7213 msgid ""
7214 "A non-zero return code can mean \"success\", for example if errors have been "
7215 "corrected on the filesystem."
7216 msgstr ""
7217
7218 # type: textblock
7219 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7220 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7221 msgstr ""
7222
7223 # type: textblock
7224 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7225 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7226 msgstr ""
7227
7228 # type: textblock
7229 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6866
7230 msgid "(Added in 1.0.16)"
7231 msgstr ""
7232
7233 # type: =head2
7234 #: ../src/guestfs-actions.pod:1868
7235 msgid "guestfs_get_append"
7236 msgstr ""
7237
7238 # type: verbatim
7239 #: ../src/guestfs-actions.pod:1870
7240 #, no-wrap
7241 msgid ""
7242 " const char *\n"
7243 " guestfs_get_append (guestfs_h *g);\n"
7244 "\n"
7245 msgstr ""
7246
7247 # type: textblock
7248 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7249 msgid ""
7250 "Return the additional kernel options which are added to the guest kernel "
7251 "command line."
7252 msgstr ""
7253
7254 # type: textblock
7255 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7256 msgid "If C<NULL> then no options are added."
7257 msgstr ""
7258
7259 # type: textblock
7260 #: ../src/guestfs-actions.pod:1878
7261 msgid ""
7262 "This function returns a string which may be NULL.  There is no way to return "
7263 "an error from this function.  The string is owned by the guest handle and "
7264 "must I<not> be freed."
7265 msgstr ""
7266
7267 # type: textblock
7268 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5738 ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5773 ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:6537 ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6909
7269 msgid "(Added in 1.0.26)"
7270 msgstr ""
7271
7272 # type: =head2
7273 #: ../src/guestfs-actions.pod:1884
7274 msgid "guestfs_get_autosync"
7275 msgstr ""
7276
7277 # type: verbatim
7278 #: ../src/guestfs-actions.pod:1886
7279 #, no-wrap
7280 msgid ""
7281 " int\n"
7282 " guestfs_get_autosync (guestfs_h *g);\n"
7283 "\n"
7284 msgstr ""
7285
7286 # type: textblock
7287 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7288 msgid "Get the autosync flag."
7289 msgstr ""
7290
7291 # type: =head2
7292 #: ../src/guestfs-actions.pod:1895
7293 msgid "guestfs_get_direct"
7294 msgstr ""
7295
7296 # type: verbatim
7297 #: ../src/guestfs-actions.pod:1897
7298 #, no-wrap
7299 msgid ""
7300 " int\n"
7301 " guestfs_get_direct (guestfs_h *g);\n"
7302 "\n"
7303 msgstr ""
7304
7305 # type: textblock
7306 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7307 msgid "Return the direct appliance mode flag."
7308 msgstr ""
7309
7310 # type: textblock
7311 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5411
7312 msgid "(Added in 1.0.72)"
7313 msgstr ""
7314
7315 # type: =head2
7316 #: ../src/guestfs-actions.pod:1906
7317 msgid "guestfs_get_e2label"
7318 msgstr ""
7319
7320 # type: verbatim
7321 #: ../src/guestfs-actions.pod:1908
7322 #, no-wrap
7323 msgid ""
7324 " char *\n"
7325 " guestfs_get_e2label (guestfs_h *g,\n"
7326 "                      const char *device);\n"
7327 "\n"
7328 msgstr ""
7329
7330 # type: textblock
7331 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7332 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7333 msgstr ""
7334
7335 # type: textblock
7336 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7337 msgid ""
7338 "This function is deprecated.  In new code, use the C<vfs_label> call "
7339 "instead."
7340 msgstr ""
7341
7342 # type: textblock
7343 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5448
7344 msgid "(Added in 1.0.15)"
7345 msgstr ""
7346
7347 # type: =head2
7348 #: ../src/guestfs-actions.pod:1927
7349 msgid "guestfs_get_e2uuid"
7350 msgstr ""
7351
7352 # type: verbatim
7353 #: ../src/guestfs-actions.pod:1929
7354 #, no-wrap
7355 msgid ""
7356 " char *\n"
7357 " guestfs_get_e2uuid (guestfs_h *g,\n"
7358 "                     const char *device);\n"
7359 "\n"
7360 msgstr ""
7361
7362 # type: textblock
7363 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7364 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7365 msgstr ""
7366
7367 # type: textblock
7368 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7369 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7370 msgstr ""
7371
7372 # type: =head2
7373 #: ../src/guestfs-actions.pod:1948
7374 msgid "guestfs_get_memsize"
7375 msgstr ""
7376
7377 # type: verbatim
7378 #: ../src/guestfs-actions.pod:1950
7379 #, no-wrap
7380 msgid ""
7381 " int\n"
7382 " guestfs_get_memsize (guestfs_h *g);\n"
7383 "\n"
7384 msgstr ""
7385
7386 # type: textblock
7387 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7388 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7389 msgstr ""
7390
7391 # type: textblock
7392 #: ../src/guestfs-actions.pod:1956
7393 msgid ""
7394 "If C<guestfs_set_memsize> was not called on this handle, and if "
7395 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7396 "value for memsize."
7397 msgstr ""
7398
7399 # type: textblock
7400 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:5571 ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388 ../fish/guestfish-actions.pod:3665 ../fish/guestfish-actions.pod:3752
7401 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7402 msgstr ""
7403
7404 # type: textblock
7405 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4059 ../src/guestfs-actions.pod:4174 ../src/guestfs-actions.pod:4193 ../src/guestfs-actions.pod:4212 ../src/guestfs-actions.pod:4224 ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4254 ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5469 ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:6313
7406 msgid "(Added in 1.0.55)"
7407 msgstr ""
7408
7409 # type: =head2
7410 #: ../src/guestfs-actions.pod:1967
7411 msgid "guestfs_get_network"
7412 msgstr ""
7413
7414 # type: verbatim
7415 #: ../src/guestfs-actions.pod:1969
7416 #, no-wrap
7417 msgid ""
7418 " int\n"
7419 " guestfs_get_network (guestfs_h *g);\n"
7420 "\n"
7421 msgstr ""
7422
7423 # type: textblock
7424 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7425 msgid "This returns the enable network flag."
7426 msgstr ""
7427
7428 # type: textblock
7429 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5488
7430 msgid "(Added in 1.5.4)"
7431 msgstr ""
7432
7433 # type: =head2
7434 #: ../src/guestfs-actions.pod:1978
7435 msgid "guestfs_get_path"
7436 msgstr ""
7437
7438 # type: verbatim
7439 #: ../src/guestfs-actions.pod:1980
7440 #, no-wrap
7441 msgid ""
7442 " const char *\n"
7443 " guestfs_get_path (guestfs_h *g);\n"
7444 "\n"
7445 msgstr ""
7446
7447 # type: textblock
7448 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7449 msgid "Return the current search path."
7450 msgstr ""
7451
7452 # type: textblock
7453 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7454 msgid ""
7455 "This is always non-NULL.  If it wasn't set already, then this will return "
7456 "the default path."
7457 msgstr ""
7458
7459 # type: textblock
7460 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7461 msgid ""
7462 "This function returns a string, or NULL on error.  The string is owned by "
7463 "the guest handle and must I<not> be freed."
7464 msgstr ""
7465
7466 # type: =head2
7467 #: ../src/guestfs-actions.pod:1993
7468 msgid "guestfs_get_pid"
7469 msgstr ""
7470
7471 # type: verbatim
7472 #: ../src/guestfs-actions.pod:1995
7473 #, no-wrap
7474 msgid ""
7475 " int\n"
7476 " guestfs_get_pid (guestfs_h *g);\n"
7477 "\n"
7478 msgstr ""
7479
7480 # type: textblock
7481 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7482 msgid ""
7483 "Return the process ID of the qemu subprocess.  If there is no qemu "
7484 "subprocess, then this will return an error."
7485 msgstr ""
7486
7487 # type: textblock
7488 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7489 msgid "This is an internal call used for debugging and testing."
7490 msgstr ""
7491
7492 # type: textblock
7493 #: ../src/guestfs-actions.pod:2005
7494 msgid "(Added in 1.0.56)"
7495 msgstr ""
7496
7497 # type: =head2
7498 #: ../src/guestfs-actions.pod:2007
7499 msgid "guestfs_get_qemu"
7500 msgstr ""
7501
7502 # type: verbatim
7503 #: ../src/guestfs-actions.pod:2009
7504 #, no-wrap
7505 msgid ""
7506 " const char *\n"
7507 " guestfs_get_qemu (guestfs_h *g);\n"
7508 "\n"
7509 msgstr ""
7510
7511 # type: textblock
7512 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7513 msgid "Return the current qemu binary."
7514 msgstr ""
7515
7516 # type: textblock
7517 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7518 msgid ""
7519 "This is always non-NULL.  If it wasn't set already, then this will return "
7520 "the default qemu binary name."
7521 msgstr ""
7522
7523 # type: textblock
7524 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5533
7525 msgid "(Added in 1.0.6)"
7526 msgstr ""
7527
7528 # type: =head2
7529 #: ../src/guestfs-actions.pod:2022
7530 msgid "guestfs_get_recovery_proc"
7531 msgstr ""
7532
7533 # type: verbatim
7534 #: ../src/guestfs-actions.pod:2024
7535 #, no-wrap
7536 msgid ""
7537 " int\n"
7538 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7539 "\n"
7540 msgstr ""
7541
7542 # type: textblock
7543 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7544 msgid "Return the recovery process enabled flag."
7545 msgstr ""
7546
7547 # type: textblock
7548 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3199 ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:6216 ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6418
7549 msgid "(Added in 1.0.77)"
7550 msgstr ""
7551
7552 # type: =head2
7553 #: ../src/guestfs-actions.pod:2033
7554 msgid "guestfs_get_selinux"
7555 msgstr ""
7556
7557 # type: verbatim
7558 #: ../src/guestfs-actions.pod:2035
7559 #, no-wrap
7560 msgid ""
7561 " int\n"
7562 " guestfs_get_selinux (guestfs_h *g);\n"
7563 "\n"
7564 msgstr ""
7565
7566 # type: textblock
7567 #: ../src/guestfs-actions.pod:2038
7568 msgid ""
7569 "This returns the current setting of the selinux flag which is passed to the "
7570 "appliance at boot time.  See C<guestfs_set_selinux>."
7571 msgstr ""
7572
7573 # type: textblock
7574 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109 ../src/guestfs-actions.pod:5576 ../src/guestfs-actions.pod:5630
7575 msgid "(Added in 1.0.67)"
7576 msgstr ""
7577
7578 # type: =head2
7579 #: ../src/guestfs-actions.pod:2048
7580 msgid "guestfs_get_state"
7581 msgstr ""
7582
7583 # type: verbatim
7584 #: ../src/guestfs-actions.pod:2050
7585 #, no-wrap
7586 msgid ""
7587 " int\n"
7588 " guestfs_get_state (guestfs_h *g);\n"
7589 "\n"
7590 msgstr ""
7591
7592 # type: textblock
7593 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
7594 msgid ""
7595 "This returns the current state as an opaque integer.  This is only useful "
7596 "for printing debug and internal error messages."
7597 msgstr ""
7598
7599 # type: textblock
7600 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3002 ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3092 ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:2098 ../fish/guestfish-actions.pod:2116 ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2170
7601 msgid "For more information on states, see L<guestfs(3)>."
7602 msgstr ""
7603
7604 # type: =head2
7605 #: ../src/guestfs-actions.pod:2062
7606 msgid "guestfs_get_trace"
7607 msgstr ""
7608
7609 # type: verbatim
7610 #: ../src/guestfs-actions.pod:2064
7611 #, no-wrap
7612 msgid ""
7613 " int\n"
7614 " guestfs_get_trace (guestfs_h *g);\n"
7615 "\n"
7616 msgstr ""
7617
7618 # type: textblock
7619 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
7620 msgid "Return the command trace flag."
7621 msgstr ""
7622
7623 # type: =head2
7624 #: ../src/guestfs-actions.pod:2073
7625 msgid "guestfs_get_umask"
7626 msgstr ""
7627
7628 # type: verbatim
7629 #: ../src/guestfs-actions.pod:2075
7630 #, no-wrap
7631 msgid ""
7632 " int\n"
7633 " guestfs_get_umask (guestfs_h *g);\n"
7634 "\n"
7635 msgstr ""
7636
7637 # type: textblock
7638 #: ../src/guestfs-actions.pod:2078
7639 msgid ""
7640 "Return the current umask.  By default the umask is C<022> unless it has been "
7641 "set by calling C<guestfs_umask>."
7642 msgstr ""
7643
7644 # type: =head2
7645 #: ../src/guestfs-actions.pod:2085
7646 msgid "guestfs_get_verbose"
7647 msgstr ""
7648
7649 # type: verbatim
7650 #: ../src/guestfs-actions.pod:2087
7651 #, no-wrap
7652 msgid ""
7653 " int\n"
7654 " guestfs_get_verbose (guestfs_h *g);\n"
7655 "\n"
7656 msgstr ""
7657
7658 # type: textblock
7659 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
7660 msgid "This returns the verbose messages flag."
7661 msgstr ""
7662
7663 # type: =head2
7664 #: ../src/guestfs-actions.pod:2096
7665 msgid "guestfs_getcon"
7666 msgstr ""
7667
7668 # type: verbatim
7669 #: ../src/guestfs-actions.pod:2098
7670 #, no-wrap
7671 msgid ""
7672 " char *\n"
7673 " guestfs_getcon (guestfs_h *g);\n"
7674 "\n"
7675 msgstr ""
7676
7677 # type: textblock
7678 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
7679 msgid "This gets the SELinux security context of the daemon."
7680 msgstr ""
7681
7682 # type: textblock
7683 #: ../src/guestfs-actions.pod:2103
7684 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7685 msgstr ""
7686
7687 # type: =head2
7688 #: ../src/guestfs-actions.pod:2111
7689 msgid "guestfs_getxattrs"
7690 msgstr ""
7691
7692 # type: verbatim
7693 #: ../src/guestfs-actions.pod:2113
7694 #, no-wrap
7695 msgid ""
7696 " struct guestfs_xattr_list *\n"
7697 " guestfs_getxattrs (guestfs_h *g,\n"
7698 "                    const char *path);\n"
7699 "\n"
7700 msgstr ""
7701
7702 # type: textblock
7703 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
7704 msgid "This call lists the extended attributes of the file or directory C<path>."
7705 msgstr ""
7706
7707 # type: textblock
7708 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
7709 msgid ""
7710 "At the system call level, this is a combination of the L<listxattr(2)> and "
7711 "L<getxattr(2)> calls."
7712 msgstr ""
7713
7714 # type: textblock
7715 #: ../src/guestfs-actions.pod:2123
7716 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7717 msgstr ""
7718
7719 # type: textblock
7720 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3211 ../src/guestfs-actions.pod:3862
7721 msgid ""
7722 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7723 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7724 msgstr ""
7725
7726 # type: textblock
7727 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3215 ../src/guestfs-actions.pod:3380 ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5649 ../src/guestfs-actions.pod:6974
7728 msgid "(Added in 1.0.59)"
7729 msgstr ""
7730
7731 # type: =head2
7732 #: ../src/guestfs-actions.pod:2131
7733 msgid "guestfs_glob_expand"
7734 msgstr ""
7735
7736 # type: verbatim
7737 #: ../src/guestfs-actions.pod:2133
7738 #, no-wrap
7739 msgid ""
7740 " char **\n"
7741 " guestfs_glob_expand (guestfs_h *g,\n"
7742 "                      const char *pattern);\n"
7743 "\n"
7744 msgstr ""
7745
7746 # type: textblock
7747 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
7748 msgid ""
7749 "This command searches for all the pathnames matching C<pattern> according to "
7750 "the wildcard expansion rules used by the shell."
7751 msgstr ""
7752
7753 # type: textblock
7754 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
7755 msgid "If no paths match, then this returns an empty list (note: not an error)."
7756 msgstr ""
7757
7758 # type: textblock
7759 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
7760 msgid ""
7761 "It is just a wrapper around the C L<glob(3)> function with flags "
7762 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7763 msgstr ""
7764
7765 # type: textblock
7766 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5814 ../src/guestfs-actions.pod:5831
7767 msgid "(Added in 1.0.50)"
7768 msgstr ""
7769
7770 # type: =head2
7771 #: ../src/guestfs-actions.pod:2154
7772 msgid "guestfs_grep"
7773 msgstr ""
7774
7775 # type: verbatim
7776 #: ../src/guestfs-actions.pod:2156
7777 #, no-wrap
7778 msgid ""
7779 " char **\n"
7780 " guestfs_grep (guestfs_h *g,\n"
7781 "               const char *regex,\n"
7782 "               const char *path);\n"
7783 "\n"
7784 msgstr ""
7785
7786 # type: textblock
7787 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
7788 msgid "This calls the external C<grep> program and returns the matching lines."
7789 msgstr ""
7790
7791 # type: =head2
7792 #: ../src/guestfs-actions.pod:2173
7793 msgid "guestfs_grepi"
7794 msgstr ""
7795
7796 # type: verbatim
7797 #: ../src/guestfs-actions.pod:2175
7798 #, no-wrap
7799 msgid ""
7800 " char **\n"
7801 " guestfs_grepi (guestfs_h *g,\n"
7802 "                const char *regex,\n"
7803 "                const char *path);\n"
7804 "\n"
7805 msgstr ""
7806
7807 # type: textblock
7808 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
7809 msgid "This calls the external C<grep -i> program and returns the matching lines."
7810 msgstr ""
7811
7812 # type: =head2
7813 #: ../src/guestfs-actions.pod:2192
7814 msgid "guestfs_grub_install"
7815 msgstr ""
7816
7817 # type: verbatim
7818 #: ../src/guestfs-actions.pod:2194
7819 #, no-wrap
7820 msgid ""
7821 " int\n"
7822 " guestfs_grub_install (guestfs_h *g,\n"
7823 "                       const char *root,\n"
7824 "                       const char *device);\n"
7825 "\n"
7826 msgstr ""
7827
7828 # type: textblock
7829 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
7830 msgid ""
7831 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7832 "the root directory being C<root>."
7833 msgstr ""
7834
7835 # type: textblock
7836 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
7837 msgid ""
7838 "Note: If grub-install reports the error \"No suitable drive was found in the "
7839 "generated device map.\" it may be that you need to create a "
7840 "C</boot/grub/device.map> file first that contains the mapping between grub "
7841 "device names and Linux device names.  It is usually sufficient to create a "
7842 "file containing:"
7843 msgstr ""
7844
7845 # type: verbatim
7846 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
7847 #, no-wrap
7848 msgid ""
7849 " (hd0) /dev/vda\n"
7850 "\n"
7851 msgstr ""
7852
7853 # type: textblock
7854 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
7855 msgid "replacing C</dev/vda> with the name of the installation device."
7856 msgstr ""
7857
7858 # type: textblock
7859 #: ../src/guestfs-actions.pod:2215
7860 msgid "(Added in 1.0.17)"
7861 msgstr ""
7862
7863 # type: =head2
7864 #: ../src/guestfs-actions.pod:2217
7865 msgid "guestfs_head"
7866 msgstr ""
7867
7868 # type: verbatim
7869 #: ../src/guestfs-actions.pod:2219
7870 #, no-wrap
7871 msgid ""
7872 " char **\n"
7873 " guestfs_head (guestfs_h *g,\n"
7874 "               const char *path);\n"
7875 "\n"
7876 msgstr ""
7877
7878 # type: textblock
7879 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
7880 msgid ""
7881 "This command returns up to the first 10 lines of a file as a list of "
7882 "strings."
7883 msgstr ""
7884
7885 # type: =head2
7886 #: ../src/guestfs-actions.pod:2235
7887 msgid "guestfs_head_n"
7888 msgstr ""
7889
7890 # type: verbatim
7891 #: ../src/guestfs-actions.pod:2237
7892 #, no-wrap
7893 msgid ""
7894 " char **\n"
7895 " guestfs_head_n (guestfs_h *g,\n"
7896 "                 int nrlines,\n"
7897 "                 const char *path);\n"
7898 "\n"
7899 msgstr ""
7900
7901 # type: textblock
7902 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
7903 msgid ""
7904 "If the parameter C<nrlines> is a positive number, this returns the first "
7905 "C<nrlines> lines of the file C<path>."
7906 msgstr ""
7907
7908 # type: textblock
7909 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
7910 msgid ""
7911 "If the parameter C<nrlines> is a negative number, this returns lines from "
7912 "the file C<path>, excluding the last C<nrlines> lines."
7913 msgstr ""
7914
7915 # type: textblock
7916 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:6111 ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4098
7917 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7918 msgstr ""
7919
7920 # type: =head2
7921 #: ../src/guestfs-actions.pod:2259
7922 msgid "guestfs_hexdump"
7923 msgstr ""
7924
7925 # type: verbatim
7926 #: ../src/guestfs-actions.pod:2261
7927 #, no-wrap
7928 msgid ""
7929 " char *\n"
7930 " guestfs_hexdump (guestfs_h *g,\n"
7931 "                  const char *path);\n"
7932 "\n"
7933 msgstr ""
7934
7935 # type: textblock
7936 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
7937 msgid ""
7938 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7939 "human-readable, canonical hex dump of the file."
7940 msgstr ""
7941
7942 # type: textblock
7943 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5895 ../src/guestfs-actions.pod:5950
7944 msgid "(Added in 1.0.22)"
7945 msgstr ""
7946
7947 # type: =head2
7948 #: ../src/guestfs-actions.pod:2276
7949 msgid "guestfs_initrd_cat"
7950 msgstr ""
7951
7952 # type: verbatim
7953 #: ../src/guestfs-actions.pod:2278
7954 #, no-wrap
7955 msgid ""
7956 " char *\n"
7957 " guestfs_initrd_cat (guestfs_h *g,\n"
7958 "                     const char *initrdpath,\n"
7959 "                     const char *filename,\n"
7960 "                     size_t *size_r);\n"
7961 "\n"
7962 msgstr ""
7963
7964 # type: textblock
7965 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
7966 msgid ""
7967 "This command unpacks the file C<filename> from the initrd file called "
7968 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7969 "character."
7970 msgstr ""
7971
7972 # type: textblock
7973 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
7974 msgid ""
7975 "For example, in guestfish you could use the following command to examine the "
7976 "boot script (usually called C</init>)  contained in a Linux initrd or "
7977 "initramfs image:"
7978 msgstr ""
7979
7980 # type: verbatim
7981 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
7982 #, no-wrap
7983 msgid ""
7984 " initrd-cat /boot/initrd-<version>.img init\n"
7985 "\n"
7986 msgstr ""
7987
7988 # type: textblock
7989 #: ../src/guestfs-actions.pod:2294
7990 msgid "See also C<guestfs_initrd_list>."
7991 msgstr ""
7992
7993 # type: textblock
7994 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4830 ../src/guestfs-actions.pod:4856 ../src/guestfs-actions.pod:5037
7995 msgid ""
7996 "This function returns a buffer, or NULL on error.  The size of the returned "
7997 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7998 "after use>."
7999 msgstr ""
8000
8001 # type: =head2
8002 #: ../src/guestfs-actions.pod:2305
8003 msgid "guestfs_initrd_list"
8004 msgstr ""
8005
8006 # type: verbatim
8007 #: ../src/guestfs-actions.pod:2307
8008 #, no-wrap
8009 msgid ""
8010 " char **\n"
8011 " guestfs_initrd_list (guestfs_h *g,\n"
8012 "                      const char *path);\n"
8013 "\n"
8014 msgstr ""
8015
8016 # type: textblock
8017 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8018 msgid "This command lists out files contained in an initrd."
8019 msgstr ""
8020
8021 # type: textblock
8022 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8023 msgid ""
8024 "The files are listed without any initial C</> character.  The files are "
8025 "listed in the order they appear (not necessarily alphabetical).  Directory "
8026 "names are listed as separate items."
8027 msgstr ""
8028
8029 # type: textblock
8030 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8031 msgid ""
8032 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8033 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8034 "files)."
8035 msgstr ""
8036
8037 # type: =head2
8038 #: ../src/guestfs-actions.pod:2327
8039 msgid "guestfs_inotify_add_watch"
8040 msgstr ""
8041
8042 # type: verbatim
8043 #: ../src/guestfs-actions.pod:2329
8044 #, no-wrap
8045 msgid ""
8046 " int64_t\n"
8047 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8048 "                            const char *path,\n"
8049 "                            int mask);\n"
8050 "\n"
8051 msgstr ""
8052
8053 # type: textblock
8054 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8055 msgid "Watch C<path> for the events listed in C<mask>."
8056 msgstr ""
8057
8058 # type: textblock
8059 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8060 msgid ""
8061 "Note that if C<path> is a directory then events within that directory are "
8062 "watched, but this does I<not> happen recursively (in subdirectories)."
8063 msgstr ""
8064
8065 # type: textblock
8066 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8067 msgid ""
8068 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8069 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8070 msgstr ""
8071
8072 # type: =head2
8073 #: ../src/guestfs-actions.pod:2348
8074 msgid "guestfs_inotify_close"
8075 msgstr ""
8076
8077 # type: verbatim
8078 #: ../src/guestfs-actions.pod:2350
8079 #, no-wrap
8080 msgid ""
8081 " int\n"
8082 " guestfs_inotify_close (guestfs_h *g);\n"
8083 "\n"
8084 msgstr ""
8085
8086 # type: textblock
8087 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8088 msgid ""
8089 "This closes the inotify handle which was previously opened by inotify_init.  "
8090 "It removes all watches, throws away any pending events, and deallocates all "
8091 "resources."
8092 msgstr ""
8093
8094 # type: =head2
8095 #: ../src/guestfs-actions.pod:2361
8096 msgid "guestfs_inotify_files"
8097 msgstr ""
8098
8099 # type: verbatim
8100 #: ../src/guestfs-actions.pod:2363
8101 #, no-wrap
8102 msgid ""
8103 " char **\n"
8104 " guestfs_inotify_files (guestfs_h *g);\n"
8105 "\n"
8106 msgstr ""
8107
8108 # type: textblock
8109 #: ../src/guestfs-actions.pod:2366
8110 msgid ""
8111 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8112 "returns a list of pathnames of objects that were touched.  The returned "
8113 "pathnames are sorted and deduplicated."
8114 msgstr ""
8115
8116 # type: =head2
8117 #: ../src/guestfs-actions.pod:2376
8118 msgid "guestfs_inotify_init"
8119 msgstr ""
8120
8121 # type: verbatim
8122 #: ../src/guestfs-actions.pod:2378
8123 #, no-wrap
8124 msgid ""
8125 " int\n"
8126 " guestfs_inotify_init (guestfs_h *g,\n"
8127 "                       int maxevents);\n"
8128 "\n"
8129 msgstr ""
8130
8131 # type: textblock
8132 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8133 msgid ""
8134 "This command creates a new inotify handle.  The inotify subsystem can be "
8135 "used to notify events which happen to objects in the guest filesystem."
8136 msgstr ""
8137
8138 # type: textblock
8139 #: ../src/guestfs-actions.pod:2386
8140 msgid ""
8141 "C<maxevents> is the maximum number of events which will be queued up between "
8142 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8143 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8144 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8145 "throws away events, but records the fact that it threw them away by setting "
8146 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8147 "C<guestfs_inotify_read>)."
8148 msgstr ""
8149
8150 # type: textblock
8151 #: ../src/guestfs-actions.pod:2396
8152 msgid ""
8153 "Before any events are generated, you have to add some watches to the "
8154 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8155 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8156 msgstr ""
8157
8158 # type: textblock
8159 #: ../src/guestfs-actions.pod:2402
8160 msgid ""
8161 "Queued up events should be read periodically by calling "
8162 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8163 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8164 "often enough then you risk the internal queue overflowing."
8165 msgstr ""
8166
8167 # type: textblock
8168 #: ../src/guestfs-actions.pod:2409
8169 msgid ""
8170 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8171 "This also removes any watches automatically."
8172 msgstr ""
8173
8174 # type: textblock
8175 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8176 msgid ""
8177 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8178 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8179 "that there is one global inotify handle per libguestfs instance."
8180 msgstr ""
8181
8182 # type: =head2
8183 #: ../src/guestfs-actions.pod:2422
8184 msgid "guestfs_inotify_read"
8185 msgstr ""
8186
8187 # type: verbatim
8188 #: ../src/guestfs-actions.pod:2424
8189 #, no-wrap
8190 msgid ""
8191 " struct guestfs_inotify_event_list *\n"
8192 " guestfs_inotify_read (guestfs_h *g);\n"
8193 "\n"
8194 msgstr ""
8195
8196 # type: textblock
8197 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8198 msgid ""
8199 "Return the complete queue of events that have happened since the previous "
8200 "read call."
8201 msgstr ""
8202
8203 # type: textblock
8204 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8205 msgid "If no events have happened, this returns an empty list."
8206 msgstr ""
8207
8208 # type: textblock
8209 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8210 msgid ""
8211 "I<Note>: In order to make sure that all events have been read, you must call "
8212 "this function repeatedly until it returns an empty list.  The reason is that "
8213 "the call will read events up to the maximum appliance-to-host message size "
8214 "and leave remaining events in the queue."
8215 msgstr ""
8216
8217 # type: textblock
8218 #: ../src/guestfs-actions.pod:2438
8219 msgid ""
8220 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8221 "there was an error.  I<The caller must call "
8222 "C<guestfs_free_inotify_event_list> after use>."
8223 msgstr ""
8224
8225 # type: =head2
8226 #: ../src/guestfs-actions.pod:2444
8227 msgid "guestfs_inotify_rm_watch"
8228 msgstr ""
8229
8230 # type: verbatim
8231 #: ../src/guestfs-actions.pod:2446
8232 #, no-wrap
8233 msgid ""
8234 " int\n"
8235 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8236 "                           int wd);\n"
8237 "\n"
8238 msgstr ""
8239
8240 # type: textblock
8241 #: ../src/guestfs-actions.pod:2450
8242 msgid ""
8243 "Remove a previously defined inotify watch.  See "
8244 "C<guestfs_inotify_add_watch>."
8245 msgstr ""
8246
8247 # type: =head2
8248 #: ../src/guestfs-actions.pod:2457
8249 msgid "guestfs_inspect_get_arch"
8250 msgstr ""
8251
8252 # type: verbatim
8253 #: ../src/guestfs-actions.pod:2459
8254 #, no-wrap
8255 msgid ""
8256 " char *\n"
8257 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8258 "                           const char *root);\n"
8259 "\n"
8260 msgstr ""
8261
8262 # type: textblock
8263 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2593 ../src/guestfs-actions.pod:2620 ../src/guestfs-actions.pod:2641 ../src/guestfs-actions.pod:2674 ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2772 ../src/guestfs-actions.pod:2814 ../src/guestfs-actions.pod:2837
8264 msgid ""
8265 "This function should only be called with a root device string as returned by "
8266 "C<guestfs_inspect_os>."
8267 msgstr ""
8268
8269 # type: textblock
8270 #: ../src/guestfs-actions.pod:2466
8271 msgid ""
8272 "This returns the architecture of the inspected operating system.  The "
8273 "possible return values are listed under C<guestfs_file_architecture>."
8274 msgstr ""
8275
8276 # type: textblock
8277 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8278 msgid ""
8279 "If the architecture could not be determined, then the string C<unknown> is "
8280 "returned."
8281 msgstr ""
8282
8283 # type: textblock
8284 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:2801 ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:2969 ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741 ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1840 ../fish/guestfish-actions.pod:1864 ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:1894 ../fish/guestfish-actions.pod:1929 ../fish/guestfish-actions.pod:1945 ../fish/guestfish-actions.pod:2044 ../fish/guestfish-actions.pod:2078
8285 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8286 msgstr ""
8287
8288 # type: =head2
8289 #: ../src/guestfs-actions.pod:2480
8290 msgid "guestfs_inspect_get_distro"
8291 msgstr ""
8292
8293 # type: verbatim
8294 #: ../src/guestfs-actions.pod:2482
8295 #, no-wrap
8296 msgid ""
8297 " char *\n"
8298 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8299 "                             const char *root);\n"
8300 "\n"
8301 msgstr ""
8302
8303 # type: textblock
8304 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8305 msgid "This returns the distro (distribution) of the inspected operating system."
8306 msgstr ""
8307
8308 # type: textblock
8309 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8310 msgid "Currently defined distros are:"
8311 msgstr ""
8312
8313 # type: =item
8314 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8315 msgid "\"archlinux\""
8316 msgstr ""
8317
8318 # type: textblock
8319 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8320 msgid "Arch Linux."
8321 msgstr ""
8322
8323 # type: =item
8324 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8325 msgid "\"debian\""
8326 msgstr ""
8327
8328 # type: textblock
8329 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8330 msgid "Debian."
8331 msgstr ""
8332
8333 # type: =item
8334 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8335 msgid "\"fedora\""
8336 msgstr ""
8337
8338 # type: textblock
8339 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8340 msgid "Fedora."
8341 msgstr ""
8342
8343 # type: =item
8344 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8345 msgid "\"gentoo\""
8346 msgstr ""
8347
8348 # type: textblock
8349 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8350 msgid "Gentoo."
8351 msgstr ""
8352
8353 # type: =item
8354 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8355 msgid "\"linuxmint\""
8356 msgstr ""
8357
8358 # type: textblock
8359 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8360 msgid "Linux Mint."
8361 msgstr ""
8362
8363 # type: =item
8364 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8365 msgid "\"mandriva\""
8366 msgstr ""
8367
8368 # type: textblock
8369 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8370 msgid "Mandriva."
8371 msgstr ""
8372
8373 # type: =item
8374 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8375 msgid "\"meego\""
8376 msgstr ""
8377
8378 # type: textblock
8379 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8380 msgid "MeeGo."
8381 msgstr ""
8382
8383 # type: =item
8384 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8385 msgid "\"pardus\""
8386 msgstr ""
8387
8388 # type: textblock
8389 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8390 msgid "Pardus."
8391 msgstr ""
8392
8393 # type: =item
8394 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1715
8395 msgid "\"redhat-based\""
8396 msgstr ""
8397
8398 # type: textblock
8399 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8400 msgid "Some Red Hat-derived distro."
8401 msgstr ""
8402
8403 # type: =item
8404 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1719
8405 msgid "\"rhel\""
8406 msgstr ""
8407
8408 # type: textblock
8409 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1721
8410 msgid "Red Hat Enterprise Linux and some derivatives."
8411 msgstr ""
8412
8413 # type: =item
8414 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1723
8415 msgid "\"ubuntu\""
8416 msgstr ""
8417
8418 # type: textblock
8419 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1725
8420 msgid "Ubuntu."
8421 msgstr ""
8422
8423 # type: =item
8424 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2792 ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1920
8425 msgid "\"unknown\""
8426 msgstr ""
8427
8428 # type: textblock
8429 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1729
8430 msgid "The distro could not be determined."
8431 msgstr ""
8432
8433 # type: =item
8434 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2784 ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1912
8435 msgid "\"windows\""
8436 msgstr ""
8437
8438 # type: textblock
8439 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1733
8440 msgid ""
8441 "Windows does not have distributions.  This string is returned if the OS type "
8442 "is Windows."
8443 msgstr ""
8444
8445 # type: textblock
8446 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2798 ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1926
8447 msgid ""
8448 "Future versions of libguestfs may return other strings here.  The caller "
8449 "should be prepared to handle any string."
8450 msgstr ""
8451
8452 # type: =head2
8453 #: ../src/guestfs-actions.pod:2561
8454 msgid "guestfs_inspect_get_filesystems"
8455 msgstr ""
8456
8457 # type: verbatim
8458 #: ../src/guestfs-actions.pod:2563
8459 #, no-wrap
8460 msgid ""
8461 " char **\n"
8462 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8463 "                                  const char *root);\n"
8464 "\n"
8465 msgstr ""
8466
8467 # type: textblock
8468 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1750
8469 msgid ""
8470 "This returns a list of all the filesystems that we think are associated with "
8471 "this operating system.  This includes the root filesystem, other ordinary "
8472 "filesystems, and non-mounted devices like swap partitions."
8473 msgstr ""
8474
8475 # type: textblock
8476 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1755
8477 msgid ""
8478 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8479 "to be shared between operating systems."
8480 msgstr ""
8481
8482 # type: textblock
8483 #: ../src/guestfs-actions.pod:2578
8484 msgid ""
8485 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8486 "C<guestfs_inspect_get_mountpoints>."
8487 msgstr ""
8488
8489 # type: =head2
8490 #: ../src/guestfs-actions.pod:2587
8491 msgid "guestfs_inspect_get_major_version"
8492 msgstr ""
8493
8494 # type: verbatim
8495 #: ../src/guestfs-actions.pod:2589
8496 #, no-wrap
8497 msgid ""
8498 " int\n"
8499 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8500 "                                    const char *root);\n"
8501 "\n"
8502 msgstr ""
8503
8504 # type: textblock
8505 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1768
8506 msgid "This returns the major version number of the inspected operating system."
8507 msgstr ""
8508
8509 # type: textblock
8510 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1771
8511 msgid ""
8512 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8513 "popular public names used by the operating system.  Notably the operating "
8514 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8515 "1).  You can find out the real versions corresponding to releases of Windows "
8516 "by consulting Wikipedia or MSDN."
8517 msgstr ""
8518
8519 # type: textblock
8520 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1778 ../fish/guestfish-actions.pod:1792
8521 msgid "If the version could not be determined, then C<0> is returned."
8522 msgstr ""
8523
8524 # type: =head2
8525 #: ../src/guestfs-actions.pod:2614
8526 msgid "guestfs_inspect_get_minor_version"
8527 msgstr ""
8528
8529 # type: verbatim
8530 #: ../src/guestfs-actions.pod:2616
8531 #, no-wrap
8532 msgid ""
8533 " int\n"
8534 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8535 "                                    const char *root);\n"
8536 "\n"
8537 msgstr ""
8538
8539 # type: textblock
8540 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1789
8541 msgid "This returns the minor version number of the inspected operating system."
8542 msgstr ""
8543
8544 # type: textblock
8545 #: ../src/guestfs-actions.pod:2628
8546 msgid ""
8547 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8548 "C<guestfs_inspect_get_major_version>."
8549 msgstr ""
8550
8551 # type: =head2
8552 #: ../src/guestfs-actions.pod:2635
8553 msgid "guestfs_inspect_get_mountpoints"
8554 msgstr ""
8555
8556 # type: verbatim
8557 #: ../src/guestfs-actions.pod:2637
8558 #, no-wrap
8559 msgid ""
8560 " char **\n"
8561 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8562 "                                  const char *root);\n"
8563 "\n"
8564 msgstr ""
8565
8566 # type: textblock
8567 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1804
8568 msgid ""
8569 "This returns a hash of where we think the filesystems associated with this "
8570 "operating system should be mounted.  Callers should note that this is at "
8571 "best an educated guess made by reading configuration files such as "
8572 "C</etc/fstab>."
8573 msgstr ""
8574
8575 # type: textblock
8576 #: ../src/guestfs-actions.pod:2649 ../fish/guestfish-actions.pod:1809
8577 msgid ""
8578 "Each element in the returned hashtable has a key which is the path of the "
8579 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8580 "mounted there (eg. C</dev/sda1>)."
8581 msgstr ""
8582
8583 # type: textblock
8584 #: ../src/guestfs-actions.pod:2654 ../fish/guestfish-actions.pod:1814
8585 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8586 msgstr ""
8587
8588 # type: textblock
8589 #: ../src/guestfs-actions.pod:2657
8590 msgid ""
8591 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8592 "C<guestfs_inspect_get_filesystems>."
8593 msgstr ""
8594
8595 # type: textblock
8596 #: ../src/guestfs-actions.pod:2660 ../src/guestfs-actions.pod:3268 ../src/guestfs-actions.pod:4396 ../src/guestfs-actions.pod:6252
8597 msgid ""
8598 "This function returns a NULL-terminated array of strings, or NULL if there "
8599 "was an error.  The array of strings will always have length C<2n+1>, where "
8600 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8601 "caller must free the strings and the array after use>."
8602 msgstr ""
8603
8604 # type: =head2
8605 #: ../src/guestfs-actions.pod:2668
8606 msgid "guestfs_inspect_get_package_format"
8607 msgstr ""
8608
8609 # type: verbatim
8610 #: ../src/guestfs-actions.pod:2670
8611 #, no-wrap
8612 msgid ""
8613 " char *\n"
8614 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
8615 "                                     const char *root);\n"
8616 "\n"
8617 msgstr ""
8618
8619 # type: textblock
8620 #: ../src/guestfs-actions.pod:2677
8621 msgid ""
8622 "This function and C<guestfs_inspect_get_package_management> return the "
8623 "package format and package management tool used by the inspected operating "
8624 "system.  For example for Fedora these functions would return C<rpm> (package "
8625 "format) and C<yum> (package management)."
8626 msgstr ""
8627
8628 # type: textblock
8629 #: ../src/guestfs-actions.pod:2683 ../fish/guestfish-actions.pod:1833
8630 msgid ""
8631 "This returns the string C<unknown> if we could not determine the package "
8632 "format I<or> if the operating system does not have a real packaging system "
8633 "(eg. Windows)."
8634 msgstr ""
8635
8636 # type: textblock
8637 #: ../src/guestfs-actions.pod:2687 ../fish/guestfish-actions.pod:1837
8638 msgid ""
8639 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8640 "Future versions of libguestfs may return other strings."
8641 msgstr ""
8642
8643 # type: =head2
8644 #: ../src/guestfs-actions.pod:2695
8645 msgid "guestfs_inspect_get_package_management"
8646 msgstr ""
8647
8648 # type: verbatim
8649 #: ../src/guestfs-actions.pod:2697
8650 #, no-wrap
8651 msgid ""
8652 " char *\n"
8653 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
8654 "                                         const char *root);\n"
8655 "\n"
8656 msgstr ""
8657
8658 # type: textblock
8659 #: ../src/guestfs-actions.pod:2704
8660 msgid ""
8661 "C<guestfs_inspect_get_package_format> and this function return the package "
8662 "format and package management tool used by the inspected operating system.  "
8663 "For example for Fedora these functions would return C<rpm> (package format) "
8664 "and C<yum> (package management)."
8665 msgstr ""
8666
8667 # type: textblock
8668 #: ../src/guestfs-actions.pod:2710 ../fish/guestfish-actions.pod:1855
8669 msgid ""
8670 "This returns the string C<unknown> if we could not determine the package "
8671 "management tool I<or> if the operating system does not have a real packaging "
8672 "system (eg. Windows)."
8673 msgstr ""
8674
8675 # type: textblock
8676 #: ../src/guestfs-actions.pod:2714 ../fish/guestfish-actions.pod:1859
8677 msgid ""
8678 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8679 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8680 "libguestfs may return other strings."
8681 msgstr ""
8682
8683 # type: =head2
8684 #: ../src/guestfs-actions.pod:2724
8685 msgid "guestfs_inspect_get_product_name"
8686 msgstr ""
8687
8688 # type: verbatim
8689 #: ../src/guestfs-actions.pod:2726
8690 #, no-wrap
8691 msgid ""
8692 " char *\n"
8693 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8694 "                                   const char *root);\n"
8695 "\n"
8696 msgstr ""
8697
8698 # type: textblock
8699 #: ../src/guestfs-actions.pod:2733 ../fish/guestfish-actions.pod:1873
8700 msgid ""
8701 "This returns the product name of the inspected operating system.  The "
8702 "product name is generally some freeform string which can be displayed to the "
8703 "user, but should not be parsed by programs."
8704 msgstr ""
8705
8706 # type: textblock
8707 #: ../src/guestfs-actions.pod:2738 ../fish/guestfish-actions.pod:1878
8708 msgid ""
8709 "If the product name could not be determined, then the string C<unknown> is "
8710 "returned."
8711 msgstr ""
8712
8713 # type: =head2
8714 #: ../src/guestfs-actions.pod:2748
8715 msgid "guestfs_inspect_get_roots"
8716 msgstr ""
8717
8718 # type: verbatim
8719 #: ../src/guestfs-actions.pod:2750
8720 #, no-wrap
8721 msgid ""
8722 " char **\n"
8723 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8724 "\n"
8725 msgstr ""
8726
8727 # type: textblock
8728 #: ../src/guestfs-actions.pod:2753
8729 msgid ""
8730 "This function is a convenient way to get the list of root devices, as "
8731 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8732 "the whole inspection process."
8733 msgstr ""
8734
8735 # type: textblock
8736 #: ../src/guestfs-actions.pod:2757
8737 msgid ""
8738 "This returns an empty list if either no root devices were found or the "
8739 "caller has not called C<guestfs_inspect_os>."
8740 msgstr ""
8741
8742 # type: =head2
8743 #: ../src/guestfs-actions.pod:2766
8744 msgid "guestfs_inspect_get_type"
8745 msgstr ""
8746
8747 # type: verbatim
8748 #: ../src/guestfs-actions.pod:2768
8749 #, no-wrap
8750 msgid ""
8751 " char *\n"
8752 " guestfs_inspect_get_type (guestfs_h *g,\n"
8753 "                           const char *root);\n"
8754 "\n"
8755 msgstr ""
8756
8757 # type: textblock
8758 #: ../src/guestfs-actions.pod:2775 ../fish/guestfish-actions.pod:1903
8759 msgid ""
8760 "This returns the type of the inspected operating system.  Currently defined "
8761 "types are:"
8762 msgstr ""
8763
8764 # type: =item
8765 #: ../src/guestfs-actions.pod:2780 ../fish/guestfish-actions.pod:1908
8766 msgid "\"linux\""
8767 msgstr ""
8768
8769 # type: textblock
8770 #: ../src/guestfs-actions.pod:2782 ../fish/guestfish-actions.pod:1910
8771 msgid "Any Linux-based operating system."
8772 msgstr ""
8773
8774 # type: textblock
8775 #: ../src/guestfs-actions.pod:2786 ../fish/guestfish-actions.pod:1914
8776 msgid "Any Microsoft Windows operating system."
8777 msgstr ""
8778
8779 # type: =item
8780 #: ../src/guestfs-actions.pod:2788 ../fish/guestfish-actions.pod:1916
8781 msgid "\"freebsd\""
8782 msgstr ""
8783
8784 # type: textblock
8785 #: ../src/guestfs-actions.pod:2790 ../fish/guestfish-actions.pod:1918
8786 msgid "FreeBSD."
8787 msgstr ""
8788
8789 # type: textblock
8790 #: ../src/guestfs-actions.pod:2794 ../fish/guestfish-actions.pod:1922
8791 msgid "The operating system type could not be determined."
8792 msgstr ""
8793
8794 # type: =head2
8795 #: ../src/guestfs-actions.pod:2808
8796 msgid "guestfs_inspect_get_windows_systemroot"
8797 msgstr ""
8798
8799 # type: verbatim
8800 #: ../src/guestfs-actions.pod:2810
8801 #, no-wrap
8802 msgid ""
8803 " char *\n"
8804 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8805 "                                         const char *root);\n"
8806 "\n"
8807 msgstr ""
8808
8809 # type: textblock
8810 #: ../src/guestfs-actions.pod:2817 ../fish/guestfish-actions.pod:1938
8811 msgid ""
8812 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8813 "is a directory path such as C</WINDOWS>."
8814 msgstr ""
8815
8816 # type: textblock
8817 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1941
8818 msgid ""
8819 "This call assumes that the guest is Windows and that the systemroot could be "
8820 "determined by inspection.  If this is not the case then an error is "
8821 "returned."
8822 msgstr ""
8823
8824 # type: textblock
8825 #: ../src/guestfs-actions.pod:2829
8826 msgid "(Added in 1.5.25)"
8827 msgstr ""
8828
8829 # type: =head2
8830 #: ../src/guestfs-actions.pod:2831
8831 msgid "guestfs_inspect_list_applications"
8832 msgstr ""
8833
8834 # type: verbatim
8835 #: ../src/guestfs-actions.pod:2833
8836 #, no-wrap
8837 msgid ""
8838 " struct guestfs_application_list *\n"
8839 " guestfs_inspect_list_applications (guestfs_h *g,\n"
8840 "                                    const char *root);\n"
8841 "\n"
8842 msgstr ""
8843
8844 # type: textblock
8845 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1954
8846 msgid "Return the list of applications installed in the operating system."
8847 msgstr ""
8848
8849 # type: textblock
8850 #: ../src/guestfs-actions.pod:2842
8851 msgid ""
8852 "I<Note:> This call works differently from other parts of the inspection "
8853 "API.  You have to call C<guestfs_inspect_os>, then "
8854 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
8855 "this.  Listing applications is a significantly more difficult operation "
8856 "which requires access to the full filesystem.  Also note that unlike the "
8857 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
8858 "the libguestfs handle, this call actually reads parts of the mounted "
8859 "filesystems during the call."
8860 msgstr ""
8861
8862 # type: textblock
8863 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1966
8864 msgid ""
8865 "This returns an empty list if the inspection code was not able to determine "
8866 "the list of applications."
8867 msgstr ""
8868
8869 # type: textblock
8870 #: ../src/guestfs-actions.pod:2855 ../fish/guestfish-actions.pod:1969
8871 msgid "The application structure contains the following fields:"
8872 msgstr ""
8873
8874 # type: =item
8875 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1973
8876 msgid "C<app_name>"
8877 msgstr ""
8878
8879 # type: textblock
8880 #: ../src/guestfs-actions.pod:2861 ../fish/guestfish-actions.pod:1975
8881 msgid ""
8882 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8883 "guests, this is the package name."
8884 msgstr ""
8885
8886 # type: =item
8887 #: ../src/guestfs-actions.pod:2864 ../fish/guestfish-actions.pod:1978
8888 msgid "C<app_display_name>"
8889 msgstr ""
8890
8891 # type: textblock
8892 #: ../src/guestfs-actions.pod:2866 ../fish/guestfish-actions.pod:1980
8893 msgid ""
8894 "The display name of the application, sometimes localized to the install "
8895 "language of the guest operating system."
8896 msgstr ""
8897
8898 # type: textblock
8899 #: ../src/guestfs-actions.pod:2869 ../fish/guestfish-actions.pod:1983
8900 msgid ""
8901 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8902 "to display something can use C<app_name> instead."
8903 msgstr ""
8904
8905 # type: =item
8906 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1986
8907 msgid "C<app_epoch>"
8908 msgstr ""
8909
8910 # type: textblock
8911 #: ../src/guestfs-actions.pod:2874 ../fish/guestfish-actions.pod:1988
8912 msgid ""
8913 "For package managers which use epochs, this contains the epoch of the "
8914 "package (an integer).  If unavailable, this is returned as C<0>."
8915 msgstr ""
8916
8917 # type: =item
8918 #: ../src/guestfs-actions.pod:2877 ../fish/guestfish-actions.pod:1991
8919 msgid "C<app_version>"
8920 msgstr ""
8921
8922 # type: textblock
8923 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:1993
8924 msgid ""
8925 "The version string of the application or package.  If unavailable this is "
8926 "returned as an empty string C<\"\">."
8927 msgstr ""
8928
8929 # type: =item
8930 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1996
8931 msgid "C<app_release>"
8932 msgstr ""
8933
8934 # type: textblock
8935 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1998
8936 msgid ""
8937 "The release string of the application or package, for package managers that "
8938 "use this.  If unavailable this is returned as an empty string C<\"\">."
8939 msgstr ""
8940
8941 # type: =item
8942 #: ../src/guestfs-actions.pod:2888 ../fish/guestfish-actions.pod:2002
8943 msgid "C<app_install_path>"
8944 msgstr ""
8945
8946 # type: textblock
8947 #: ../src/guestfs-actions.pod:2890 ../fish/guestfish-actions.pod:2004
8948 msgid ""
8949 "The installation path of the application (on operating systems such as "
8950 "Windows which use installation paths).  This path is in the format used by "
8951 "the guest operating system, it is not a libguestfs path."
8952 msgstr ""
8953
8954 # type: textblock
8955 #: ../src/guestfs-actions.pod:2895 ../fish/guestfish-actions.pod:2009
8956 msgid "If unavailable this is returned as an empty string C<\"\">."
8957 msgstr ""
8958
8959 # type: =item
8960 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:2011
8961 msgid "C<app_trans_path>"
8962 msgstr ""
8963
8964 # type: textblock
8965 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:2013
8966 msgid ""
8967 "The install path translated into a libguestfs path.  If unavailable this is "
8968 "returned as an empty string C<\"\">."
8969 msgstr ""
8970
8971 # type: =item
8972 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2016
8973 msgid "C<app_publisher>"
8974 msgstr ""
8975
8976 # type: textblock
8977 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2018
8978 msgid ""
8979 "The name of the publisher of the application, for package managers that use "
8980 "this.  If unavailable this is returned as an empty string C<\"\">."
8981 msgstr ""
8982
8983 # type: =item
8984 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:2022
8985 msgid "C<app_url>"
8986 msgstr ""
8987
8988 # type: textblock
8989 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2024
8990 msgid ""
8991 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8992 "returned as an empty string C<\"\">."
8993 msgstr ""
8994
8995 # type: =item
8996 #: ../src/guestfs-actions.pod:2913 ../fish/guestfish-actions.pod:2027
8997 msgid "C<app_source_package>"
8998 msgstr ""
8999
9000 # type: textblock
9001 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2029
9002 msgid ""
9003 "For packaging systems which support this, the name of the source package.  "
9004 "If unavailable this is returned as an empty string C<\"\">."
9005 msgstr ""
9006
9007 # type: =item
9008 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2032
9009 msgid "C<app_summary>"
9010 msgstr ""
9011
9012 # type: textblock
9013 #: ../src/guestfs-actions.pod:2920 ../fish/guestfish-actions.pod:2034
9014 msgid ""
9015 "A short (usually one line) description of the application or package.  If "
9016 "unavailable this is returned as an empty string C<\"\">."
9017 msgstr ""
9018
9019 # type: =item
9020 #: ../src/guestfs-actions.pod:2923 ../fish/guestfish-actions.pod:2037
9021 msgid "C<app_description>"
9022 msgstr ""
9023
9024 # type: textblock
9025 #: ../src/guestfs-actions.pod:2925 ../fish/guestfish-actions.pod:2039
9026 msgid ""
9027 "A longer description of the application or package.  If unavailable this is "
9028 "returned as an empty string C<\"\">."
9029 msgstr ""
9030
9031 # type: textblock
9032 #: ../src/guestfs-actions.pod:2932
9033 msgid ""
9034 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9035 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9036 "after use>."
9037 msgstr ""
9038
9039 # type: =head2
9040 #: ../src/guestfs-actions.pod:2936
9041 msgid "guestfs_inspect_os"
9042 msgstr ""
9043
9044 # type: verbatim
9045 #: ../src/guestfs-actions.pod:2938
9046 #, no-wrap
9047 msgid ""
9048 " char **\n"
9049 " guestfs_inspect_os (guestfs_h *g);\n"
9050 "\n"
9051 msgstr ""
9052
9053 # type: textblock
9054 #: ../src/guestfs-actions.pod:2941 ../fish/guestfish-actions.pod:2050
9055 msgid ""
9056 "This function uses other libguestfs functions and certain heuristics to "
9057 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9058 "for operating systems."
9059 msgstr ""
9060
9061 # type: textblock
9062 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2054
9063 msgid "The list returned is empty if no operating systems were found."
9064 msgstr ""
9065
9066 # type: textblock
9067 #: ../src/guestfs-actions.pod:2947 ../fish/guestfish-actions.pod:2056
9068 msgid ""
9069 "If one operating system was found, then this returns a list with a single "
9070 "element, which is the name of the root filesystem of this operating system.  "
9071 "It is also possible for this function to return a list containing more than "
9072 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9073 "element being the root filesystem of one of the operating systems."
9074 msgstr ""
9075
9076 # type: textblock
9077 #: ../src/guestfs-actions.pod:2954
9078 msgid ""
9079 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9080 "functions in order to query further information about each operating system, "
9081 "such as the name and version."
9082 msgstr ""
9083
9084 # type: textblock
9085 #: ../src/guestfs-actions.pod:2959
9086 msgid ""
9087 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9088 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9089 "the contents.  This should be called with no disks currently mounted.  The "
9090 "function may also use Augeas, so any existing Augeas handle will be closed."
9091 msgstr ""
9092
9093 # type: textblock
9094 #: ../src/guestfs-actions.pod:2965 ../fish/guestfish-actions.pod:2074
9095 msgid ""
9096 "This function cannot decrypt encrypted disks.  The caller must do that first "
9097 "(supplying the necessary keys) if the disk is encrypted."
9098 msgstr ""
9099
9100 # type: textblock
9101 #: ../src/guestfs-actions.pod:2971 ../src/guestfs-actions.pod:3226 ../src/guestfs-actions.pod:3288
9102 msgid "See also C<guestfs_list_filesystems>."
9103 msgstr ""
9104
9105 # type: =head2
9106 #: ../src/guestfs-actions.pod:2979
9107 msgid "guestfs_is_blockdev"
9108 msgstr ""
9109
9110 # type: verbatim
9111 #: ../src/guestfs-actions.pod:2981
9112 #, no-wrap
9113 msgid ""
9114 " int\n"
9115 " guestfs_is_blockdev (guestfs_h *g,\n"
9116 "                      const char *path);\n"
9117 "\n"
9118 msgstr ""
9119
9120 # type: textblock
9121 #: ../src/guestfs-actions.pod:2985 ../fish/guestfish-actions.pod:2086
9122 msgid ""
9123 "This returns C<true> if and only if there is a block device with the given "
9124 "C<path> name."
9125 msgstr ""
9126
9127 # type: textblock
9128 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3017 ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3062 ../src/guestfs-actions.pod:3078 ../src/guestfs-actions.pod:3134 ../src/guestfs-actions.pod:3149
9129 msgid "See also C<guestfs_stat>."
9130 msgstr ""
9131
9132 # type: textblock
9133 #: ../src/guestfs-actions.pod:2992 ../src/guestfs-actions.pod:3021 ../src/guestfs-actions.pod:3066 ../src/guestfs-actions.pod:3138 ../src/guestfs-actions.pod:3153
9134 msgid "(Added in 1.5.10)"
9135 msgstr ""
9136
9137 # type: =head2
9138 #: ../src/guestfs-actions.pod:2994
9139 msgid "guestfs_is_busy"
9140 msgstr ""
9141
9142 # type: verbatim
9143 #: ../src/guestfs-actions.pod:2996
9144 #, no-wrap
9145 msgid ""
9146 " int\n"
9147 " guestfs_is_busy (guestfs_h *g);\n"
9148 "\n"
9149 msgstr ""
9150
9151 # type: textblock
9152 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2095
9153 msgid ""
9154 "This returns true iff this handle is busy processing a command (in the "
9155 "C<BUSY> state)."
9156 msgstr ""
9157
9158 # type: =head2
9159 #: ../src/guestfs-actions.pod:3008
9160 msgid "guestfs_is_chardev"
9161 msgstr ""
9162
9163 # type: verbatim
9164 #: ../src/guestfs-actions.pod:3010
9165 #, no-wrap
9166 msgid ""
9167 " int\n"
9168 " guestfs_is_chardev (guestfs_h *g,\n"
9169 "                     const char *path);\n"
9170 "\n"
9171 msgstr ""
9172
9173 # type: textblock
9174 #: ../src/guestfs-actions.pod:3014 ../fish/guestfish-actions.pod:2104
9175 msgid ""
9176 "This returns C<true> if and only if there is a character device with the "
9177 "given C<path> name."
9178 msgstr ""
9179
9180 # type: =head2
9181 #: ../src/guestfs-actions.pod:3023
9182 msgid "guestfs_is_config"
9183 msgstr ""
9184
9185 # type: verbatim
9186 #: ../src/guestfs-actions.pod:3025
9187 #, no-wrap
9188 msgid ""
9189 " int\n"
9190 " guestfs_is_config (guestfs_h *g);\n"
9191 "\n"
9192 msgstr ""
9193
9194 # type: textblock
9195 #: ../src/guestfs-actions.pod:3028 ../fish/guestfish-actions.pod:2113
9196 msgid ""
9197 "This returns true iff this handle is being configured (in the C<CONFIG> "
9198 "state)."
9199 msgstr ""
9200
9201 # type: =head2
9202 #: ../src/guestfs-actions.pod:3037
9203 msgid "guestfs_is_dir"
9204 msgstr ""
9205
9206 # type: verbatim
9207 #: ../src/guestfs-actions.pod:3039
9208 #, no-wrap
9209 msgid ""
9210 " int\n"
9211 " guestfs_is_dir (guestfs_h *g,\n"
9212 "                 const char *path);\n"
9213 "\n"
9214 msgstr ""
9215
9216 # type: textblock
9217 #: ../src/guestfs-actions.pod:3043 ../fish/guestfish-actions.pod:2122
9218 msgid ""
9219 "This returns C<true> if and only if there is a directory with the given "
9220 "C<path> name.  Note that it returns false for other objects like files."
9221 msgstr ""
9222
9223 # type: =head2
9224 #: ../src/guestfs-actions.pod:3053
9225 msgid "guestfs_is_fifo"
9226 msgstr ""
9227
9228 # type: verbatim
9229 #: ../src/guestfs-actions.pod:3055
9230 #, no-wrap
9231 msgid ""
9232 " int\n"
9233 " guestfs_is_fifo (guestfs_h *g,\n"
9234 "                  const char *path);\n"
9235 "\n"
9236 msgstr ""
9237
9238 # type: textblock
9239 #: ../src/guestfs-actions.pod:3059 ../fish/guestfish-actions.pod:2132
9240 msgid ""
9241 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9242 "given C<path> name."
9243 msgstr ""
9244
9245 # type: =head2
9246 #: ../src/guestfs-actions.pod:3068
9247 msgid "guestfs_is_file"
9248 msgstr ""
9249
9250 # type: verbatim
9251 #: ../src/guestfs-actions.pod:3070
9252 #, no-wrap
9253 msgid ""
9254 " int\n"
9255 " guestfs_is_file (guestfs_h *g,\n"
9256 "                  const char *path);\n"
9257 "\n"
9258 msgstr ""
9259
9260 # type: textblock
9261 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2141
9262 msgid ""
9263 "This returns C<true> if and only if there is a regular file with the given "
9264 "C<path> name.  Note that it returns false for other objects like "
9265 "directories."
9266 msgstr ""
9267
9268 # type: =head2
9269 #: ../src/guestfs-actions.pod:3084
9270 msgid "guestfs_is_launching"
9271 msgstr ""
9272
9273 # type: verbatim
9274 #: ../src/guestfs-actions.pod:3086
9275 #, no-wrap
9276 msgid ""
9277 " int\n"
9278 " guestfs_is_launching (guestfs_h *g);\n"
9279 "\n"
9280 msgstr ""
9281
9282 # type: textblock
9283 #: ../src/guestfs-actions.pod:3089 ../fish/guestfish-actions.pod:2151
9284 msgid ""
9285 "This returns true iff this handle is launching the subprocess (in the "
9286 "C<LAUNCHING> state)."
9287 msgstr ""
9288
9289 # type: =head2
9290 #: ../src/guestfs-actions.pod:3098
9291 msgid "guestfs_is_lv"
9292 msgstr ""
9293
9294 # type: verbatim
9295 #: ../src/guestfs-actions.pod:3100
9296 #, no-wrap
9297 msgid ""
9298 " int\n"
9299 " guestfs_is_lv (guestfs_h *g,\n"
9300 "                const char *device);\n"
9301 "\n"
9302 msgstr ""
9303
9304 # type: textblock
9305 #: ../src/guestfs-actions.pod:3104 ../fish/guestfish-actions.pod:2160
9306 msgid ""
9307 "This command tests whether C<device> is a logical volume, and returns true "
9308 "iff this is the case."
9309 msgstr ""
9310
9311 # type: =head2
9312 #: ../src/guestfs-actions.pod:3111
9313 msgid "guestfs_is_ready"
9314 msgstr ""
9315
9316 # type: verbatim
9317 #: ../src/guestfs-actions.pod:3113
9318 #, no-wrap
9319 msgid ""
9320 " int\n"
9321 " guestfs_is_ready (guestfs_h *g);\n"
9322 "\n"
9323 msgstr ""
9324
9325 # type: textblock
9326 #: ../src/guestfs-actions.pod:3116 ../fish/guestfish-actions.pod:2167
9327 msgid ""
9328 "This returns true iff this handle is ready to accept commands (in the "
9329 "C<READY> state)."
9330 msgstr ""
9331
9332 # type: =head2
9333 #: ../src/guestfs-actions.pod:3125
9334 msgid "guestfs_is_socket"
9335 msgstr ""
9336
9337 # type: verbatim
9338 #: ../src/guestfs-actions.pod:3127
9339 #, no-wrap
9340 msgid ""
9341 " int\n"
9342 " guestfs_is_socket (guestfs_h *g,\n"
9343 "                    const char *path);\n"
9344 "\n"
9345 msgstr ""
9346
9347 # type: textblock
9348 #: ../src/guestfs-actions.pod:3131 ../fish/guestfish-actions.pod:2176
9349 msgid ""
9350 "This returns C<true> if and only if there is a Unix domain socket with the "
9351 "given C<path> name."
9352 msgstr ""
9353
9354 # type: =head2
9355 #: ../src/guestfs-actions.pod:3140
9356 msgid "guestfs_is_symlink"
9357 msgstr ""
9358
9359 # type: verbatim
9360 #: ../src/guestfs-actions.pod:3142
9361 #, no-wrap
9362 msgid ""
9363 " int\n"
9364 " guestfs_is_symlink (guestfs_h *g,\n"
9365 "                     const char *path);\n"
9366 "\n"
9367 msgstr ""
9368
9369 # type: textblock
9370 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2185
9371 msgid ""
9372 "This returns C<true> if and only if there is a symbolic link with the given "
9373 "C<path> name."
9374 msgstr ""
9375
9376 # type: =head2
9377 #: ../src/guestfs-actions.pod:3155
9378 msgid "guestfs_kill_subprocess"
9379 msgstr ""
9380
9381 # type: verbatim
9382 #: ../src/guestfs-actions.pod:3157
9383 #, no-wrap
9384 msgid ""
9385 " int\n"
9386 " guestfs_kill_subprocess (guestfs_h *g);\n"
9387 "\n"
9388 msgstr ""
9389
9390 # type: textblock
9391 #: ../src/guestfs-actions.pod:3160 ../fish/guestfish-actions.pod:2194
9392 msgid "This kills the qemu subprocess.  You should never need to call this."
9393 msgstr ""
9394
9395 # type: =head2
9396 #: ../src/guestfs-actions.pod:3166
9397 msgid "guestfs_launch"
9398 msgstr ""
9399
9400 # type: verbatim
9401 #: ../src/guestfs-actions.pod:3168
9402 #, no-wrap
9403 msgid ""
9404 " int\n"
9405 " guestfs_launch (guestfs_h *g);\n"
9406 "\n"
9407 msgstr ""
9408
9409 # type: textblock
9410 #: ../src/guestfs-actions.pod:3171 ../fish/guestfish-actions.pod:2202
9411 msgid ""
9412 "Internally libguestfs is implemented by running a virtual machine using "
9413 "L<qemu(1)>."
9414 msgstr ""
9415
9416 # type: textblock
9417 #: ../src/guestfs-actions.pod:3174 ../fish/guestfish-actions.pod:2205
9418 msgid ""
9419 "You should call this after configuring the handle (eg. adding drives) but "
9420 "before performing any actions."
9421 msgstr ""
9422
9423 # type: =head2
9424 #: ../src/guestfs-actions.pod:3181
9425 msgid "guestfs_lchown"
9426 msgstr ""
9427
9428 # type: verbatim
9429 #: ../src/guestfs-actions.pod:3183
9430 #, no-wrap
9431 msgid ""
9432 " int\n"
9433 " guestfs_lchown (guestfs_h *g,\n"
9434 "                 int owner,\n"
9435 "                 int group,\n"
9436 "                 const char *path);\n"
9437 "\n"
9438 msgstr ""
9439
9440 # type: textblock
9441 #: ../src/guestfs-actions.pod:3189
9442 msgid ""
9443 "Change the file owner to C<owner> and group to C<group>.  This is like "
9444 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9445 "changed, not the target."
9446 msgstr ""
9447
9448 # type: =head2
9449 #: ../src/guestfs-actions.pod:3201
9450 msgid "guestfs_lgetxattrs"
9451 msgstr ""
9452
9453 # type: verbatim
9454 #: ../src/guestfs-actions.pod:3203
9455 #, no-wrap
9456 msgid ""
9457 " struct guestfs_xattr_list *\n"
9458 " guestfs_lgetxattrs (guestfs_h *g,\n"
9459 "                     const char *path);\n"
9460 "\n"
9461 msgstr ""
9462
9463 # type: textblock
9464 #: ../src/guestfs-actions.pod:3207
9465 msgid ""
9466 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9467 "then it returns the extended attributes of the link itself."
9468 msgstr ""
9469
9470 # type: =head2
9471 #: ../src/guestfs-actions.pod:3217
9472 msgid "guestfs_list_devices"
9473 msgstr ""
9474
9475 # type: verbatim
9476 #: ../src/guestfs-actions.pod:3219
9477 #, no-wrap
9478 msgid ""
9479 " char **\n"
9480 " guestfs_list_devices (guestfs_h *g);\n"
9481 "\n"
9482 msgstr ""
9483
9484 # type: textblock
9485 #: ../src/guestfs-actions.pod:3222 ../fish/guestfish-actions.pod:2232
9486 msgid "List all the block devices."
9487 msgstr ""
9488
9489 # type: textblock
9490 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2234
9491 msgid "The full block device names are returned, eg. C</dev/sda>."
9492 msgstr ""
9493
9494 # type: =head2
9495 #: ../src/guestfs-actions.pod:3234
9496 msgid "guestfs_list_filesystems"
9497 msgstr ""
9498
9499 # type: verbatim
9500 #: ../src/guestfs-actions.pod:3236
9501 #, no-wrap
9502 msgid ""
9503 " char **\n"
9504 " guestfs_list_filesystems (guestfs_h *g);\n"
9505 "\n"
9506 msgstr ""
9507
9508 # type: textblock
9509 #: ../src/guestfs-actions.pod:3239 ../fish/guestfish-actions.pod:2242
9510 msgid ""
9511 "This inspection command looks for filesystems on partitions, block devices "
9512 "and logical volumes, returning a list of devices containing filesystems and "
9513 "their type."
9514 msgstr ""
9515
9516 # type: textblock
9517 #: ../src/guestfs-actions.pod:3243 ../fish/guestfish-actions.pod:2246
9518 msgid ""
9519 "The return value is a hash, where the keys are the devices containing "
9520 "filesystems, and the values are the filesystem types.  For example:"
9521 msgstr ""
9522
9523 # type: verbatim
9524 #: ../src/guestfs-actions.pod:3247 ../fish/guestfish-actions.pod:2250
9525 #, no-wrap
9526 msgid ""
9527 " \"/dev/sda1\" => \"ntfs\"\n"
9528 " \"/dev/sda2\" => \"ext2\"\n"
9529 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9530 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9531 "\n"
9532 msgstr ""
9533
9534 # type: textblock
9535 #: ../src/guestfs-actions.pod:3252 ../fish/guestfish-actions.pod:2255
9536 msgid ""
9537 "The value can have the special value \"unknown\", meaning the content of the "
9538 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9539 msgstr ""
9540
9541 # type: textblock
9542 #: ../src/guestfs-actions.pod:3256
9543 msgid ""
9544 "This command runs other libguestfs commands, which might include "
9545 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9546 "soon after launch and only when nothing is mounted."
9547 msgstr ""
9548
9549 # type: textblock
9550 #: ../src/guestfs-actions.pod:3260
9551 msgid ""
9552 "Not all of the filesystems returned will be mountable.  In particular, swap "
9553 "partitions are returned in the list.  Also this command does not check that "
9554 "each filesystem found is valid and mountable, and some filesystems might be "
9555 "mountable but require special options.  Filesystems may not all belong to a "
9556 "single logical operating system (use C<guestfs_inspect_os> to look for "
9557 "OSes)."
9558 msgstr ""
9559
9560 # type: textblock
9561 #: ../src/guestfs-actions.pod:3274 ../src/guestfs-actions.pod:4797
9562 msgid "(Added in 1.5.15)"
9563 msgstr ""
9564
9565 # type: =head2
9566 #: ../src/guestfs-actions.pod:3276
9567 msgid "guestfs_list_partitions"
9568 msgstr ""
9569
9570 # type: verbatim
9571 #: ../src/guestfs-actions.pod:3278
9572 #, no-wrap
9573 msgid ""
9574 " char **\n"
9575 " guestfs_list_partitions (guestfs_h *g);\n"
9576 "\n"
9577 msgstr ""
9578
9579 # type: textblock
9580 #: ../src/guestfs-actions.pod:3281 ../fish/guestfish-actions.pod:2275
9581 msgid "List all the partitions detected on all block devices."
9582 msgstr ""
9583
9584 # type: textblock
9585 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2277
9586 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9587 msgstr ""
9588
9589 # type: textblock
9590 #: ../src/guestfs-actions.pod:3285
9591 msgid ""
9592 "This does not return logical volumes.  For that you will need to call "
9593 "C<guestfs_lvs>."
9594 msgstr ""
9595
9596 # type: =head2
9597 #: ../src/guestfs-actions.pod:3296
9598 msgid "guestfs_ll"
9599 msgstr ""
9600
9601 # type: verbatim
9602 #: ../src/guestfs-actions.pod:3298
9603 #, no-wrap
9604 msgid ""
9605 " char *\n"
9606 " guestfs_ll (guestfs_h *g,\n"
9607 "             const char *directory);\n"
9608 "\n"
9609 msgstr ""
9610
9611 # type: textblock
9612 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2288
9613 msgid ""
9614 "List the files in C<directory> (relative to the root directory, there is no "
9615 "cwd) in the format of 'ls -la'."
9616 msgstr ""
9617
9618 # type: textblock
9619 #: ../src/guestfs-actions.pod:3305 ../fish/guestfish-actions.pod:2291
9620 msgid ""
9621 "This command is mostly useful for interactive sessions.  It is I<not> "
9622 "intended that you try to parse the output string."
9623 msgstr ""
9624
9625 # type: =head2
9626 #: ../src/guestfs-actions.pod:3313
9627 msgid "guestfs_ln"
9628 msgstr ""
9629
9630 # type: verbatim
9631 #: ../src/guestfs-actions.pod:3315
9632 #, no-wrap
9633 msgid ""
9634 " int\n"
9635 " guestfs_ln (guestfs_h *g,\n"
9636 "             const char *target,\n"
9637 "             const char *linkname);\n"
9638 "\n"
9639 msgstr ""
9640
9641 # type: textblock
9642 #: ../src/guestfs-actions.pod:3320 ../fish/guestfish-actions.pod:2298
9643 msgid "This command creates a hard link using the C<ln> command."
9644 msgstr ""
9645
9646 # type: =head2
9647 #: ../src/guestfs-actions.pod:3326
9648 msgid "guestfs_ln_f"
9649 msgstr ""
9650
9651 # type: verbatim
9652 #: ../src/guestfs-actions.pod:3328
9653 #, no-wrap
9654 msgid ""
9655 " int\n"
9656 " guestfs_ln_f (guestfs_h *g,\n"
9657 "               const char *target,\n"
9658 "               const char *linkname);\n"
9659 "\n"
9660 msgstr ""
9661
9662 # type: textblock
9663 #: ../src/guestfs-actions.pod:3333 ../fish/guestfish-actions.pod:2304
9664 msgid ""
9665 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9666 "option removes the link (C<linkname>) if it exists already."
9667 msgstr ""
9668
9669 # type: =head2
9670 #: ../src/guestfs-actions.pod:3340
9671 msgid "guestfs_ln_s"
9672 msgstr ""
9673
9674 # type: verbatim
9675 #: ../src/guestfs-actions.pod:3342
9676 #, no-wrap
9677 msgid ""
9678 " int\n"
9679 " guestfs_ln_s (guestfs_h *g,\n"
9680 "               const char *target,\n"
9681 "               const char *linkname);\n"
9682 "\n"
9683 msgstr ""
9684
9685 # type: textblock
9686 #: ../src/guestfs-actions.pod:3347 ../fish/guestfish-actions.pod:2311
9687 msgid "This command creates a symbolic link using the C<ln -s> command."
9688 msgstr ""
9689
9690 # type: =head2
9691 #: ../src/guestfs-actions.pod:3353
9692 msgid "guestfs_ln_sf"
9693 msgstr ""
9694
9695 # type: verbatim
9696 #: ../src/guestfs-actions.pod:3355
9697 #, no-wrap
9698 msgid ""
9699 " int\n"
9700 " guestfs_ln_sf (guestfs_h *g,\n"
9701 "                const char *target,\n"
9702 "                const char *linkname);\n"
9703 "\n"
9704 msgstr ""
9705
9706 # type: textblock
9707 #: ../src/guestfs-actions.pod:3360 ../fish/guestfish-actions.pod:2317
9708 msgid ""
9709 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9710 "option removes the link (C<linkname>) if it exists already."
9711 msgstr ""
9712
9713 # type: =head2
9714 #: ../src/guestfs-actions.pod:3367
9715 msgid "guestfs_lremovexattr"
9716 msgstr ""
9717
9718 # type: verbatim
9719 #: ../src/guestfs-actions.pod:3369
9720 #, no-wrap
9721 msgid ""
9722 " int\n"
9723 " guestfs_lremovexattr (guestfs_h *g,\n"
9724 "                       const char *xattr,\n"
9725 "                       const char *path);\n"
9726 "\n"
9727 msgstr ""
9728
9729 # type: textblock
9730 #: ../src/guestfs-actions.pod:3374
9731 msgid ""
9732 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9733 "link, then it removes an extended attribute of the link itself."
9734 msgstr ""
9735
9736 # type: =head2
9737 #: ../src/guestfs-actions.pod:3382
9738 msgid "guestfs_ls"
9739 msgstr ""
9740
9741 # type: verbatim
9742 #: ../src/guestfs-actions.pod:3384
9743 #, no-wrap
9744 msgid ""
9745 " char **\n"
9746 " guestfs_ls (guestfs_h *g,\n"
9747 "             const char *directory);\n"
9748 "\n"
9749 msgstr ""
9750
9751 # type: textblock
9752 #: ../src/guestfs-actions.pod:3388 ../fish/guestfish-actions.pod:2332
9753 msgid ""
9754 "List the files in C<directory> (relative to the root directory, there is no "
9755 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9756 "shown."
9757 msgstr ""
9758
9759 # type: textblock
9760 #: ../src/guestfs-actions.pod:3392
9761 msgid ""
9762 "This command is mostly useful for interactive sessions.  Programs should "
9763 "probably use C<guestfs_readdir> instead."
9764 msgstr ""
9765
9766 # type: =head2
9767 #: ../src/guestfs-actions.pod:3401
9768 msgid "guestfs_lsetxattr"
9769 msgstr ""
9770
9771 # type: verbatim
9772 #: ../src/guestfs-actions.pod:3403
9773 #, no-wrap
9774 msgid ""
9775 " int\n"
9776 " guestfs_lsetxattr (guestfs_h *g,\n"
9777 "                    const char *xattr,\n"
9778 "                    const char *val,\n"
9779 "                    int vallen,\n"
9780 "                    const char *path);\n"
9781 "\n"
9782 msgstr ""
9783
9784 # type: textblock
9785 #: ../src/guestfs-actions.pod:3410
9786 msgid ""
9787 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9788 "then it sets an extended attribute of the link itself."
9789 msgstr ""
9790
9791 # type: =head2
9792 #: ../src/guestfs-actions.pod:3418
9793 msgid "guestfs_lstat"
9794 msgstr ""
9795
9796 # type: verbatim
9797 #: ../src/guestfs-actions.pod:3420
9798 #, no-wrap
9799 msgid ""
9800 " struct guestfs_stat *\n"
9801 " guestfs_lstat (guestfs_h *g,\n"
9802 "                const char *path);\n"
9803 "\n"
9804 msgstr ""
9805
9806 # type: textblock
9807 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:5851 ../fish/guestfish-actions.pod:2351 ../fish/guestfish-actions.pod:3933
9808 msgid "Returns file information for the given C<path>."
9809 msgstr ""
9810
9811 # type: textblock
9812 #: ../src/guestfs-actions.pod:3426
9813 msgid ""
9814 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9815 "link, then the link is stat-ed, not the file it refers to."
9816 msgstr ""
9817
9818 # type: textblock
9819 #: ../src/guestfs-actions.pod:3430 ../fish/guestfish-actions.pod:2357
9820 msgid "This is the same as the C<lstat(2)> system call."
9821 msgstr ""
9822
9823 # type: textblock
9824 #: ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:5855
9825 msgid ""
9826 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9827 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9828 msgstr ""
9829
9830 # type: textblock
9831 #: ../src/guestfs-actions.pod:3436 ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:6258
9832 msgid "(Added in 0.9.2)"
9833 msgstr ""
9834
9835 # type: =head2
9836 #: ../src/guestfs-actions.pod:3438
9837 msgid "guestfs_lstatlist"
9838 msgstr ""
9839
9840 # type: verbatim
9841 #: ../src/guestfs-actions.pod:3440
9842 #, no-wrap
9843 msgid ""
9844 " struct guestfs_stat_list *\n"
9845 " guestfs_lstatlist (guestfs_h *g,\n"
9846 "                    const char *path,\n"
9847 "                    char *const *names);\n"
9848 "\n"
9849 msgstr ""
9850
9851 # type: textblock
9852 #: ../src/guestfs-actions.pod:3445
9853 msgid ""
9854 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9855 "files, where all files are in the directory C<path>.  C<names> is the list "
9856 "of files from this directory."
9857 msgstr ""
9858
9859 # type: textblock
9860 #: ../src/guestfs-actions.pod:3449 ../fish/guestfish-actions.pod:2367
9861 msgid ""
9862 "On return you get a list of stat structs, with a one-to-one correspondence "
9863 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9864 "then the C<ino> field of that structure is set to C<-1>."
9865 msgstr ""
9866
9867 # type: textblock
9868 #: ../src/guestfs-actions.pod:3454
9869 msgid ""
9870 "This call is intended for programs that want to efficiently list a directory "
9871 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9872 "for a similarly efficient call for getting extended attributes.  Very long "
9873 "directory listings might cause the protocol message size to be exceeded, "
9874 "causing this call to fail.  The caller must split up such requests into "
9875 "smaller groups of names."
9876 msgstr ""
9877
9878 # type: textblock
9879 #: ../src/guestfs-actions.pod:3462
9880 msgid ""
9881 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
9882 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
9883 msgstr ""
9884
9885 # type: =head2
9886 #: ../src/guestfs-actions.pod:3468
9887 msgid "guestfs_luks_add_key"
9888 msgstr ""
9889
9890 # type: verbatim
9891 #: ../src/guestfs-actions.pod:3470
9892 #, no-wrap
9893 msgid ""
9894 " int\n"
9895 " guestfs_luks_add_key (guestfs_h *g,\n"
9896 "                       const char *device,\n"
9897 "                       const char *key,\n"
9898 "                       const char *newkey,\n"
9899 "                       int keyslot);\n"
9900 "\n"
9901 msgstr ""
9902
9903 # type: textblock
9904 #: ../src/guestfs-actions.pod:3477 ../fish/guestfish-actions.pod:2384
9905 msgid ""
9906 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9907 "existing key, and is used to access the device.  C<newkey> is the new key to "
9908 "add.  C<keyslot> is the key slot that will be replaced."
9909 msgstr ""
9910
9911 # type: textblock
9912 #: ../src/guestfs-actions.pod:3482
9913 msgid ""
9914 "Note that if C<keyslot> already contains a key, then this command will "
9915 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9916 msgstr ""
9917
9918 # type: textblock
9919 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3622
9920 msgid ""
9921 "This function takes a key or passphrase parameter which could contain "
9922 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9923 "information."
9924 msgstr ""
9925
9926 # type: textblock
9927 #: ../src/guestfs-actions.pod:3492 ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3575
9928 msgid "(Added in 1.5.2)"
9929 msgstr ""
9930
9931 # type: =head2
9932 #: ../src/guestfs-actions.pod:3494
9933 msgid "guestfs_luks_close"
9934 msgstr ""
9935
9936 # type: verbatim
9937 #: ../src/guestfs-actions.pod:3496
9938 #, no-wrap
9939 msgid ""
9940 " int\n"
9941 " guestfs_luks_close (guestfs_h *g,\n"
9942 "                     const char *device);\n"
9943 "\n"
9944 msgstr ""
9945
9946 # type: textblock
9947 #: ../src/guestfs-actions.pod:3500
9948 msgid ""
9949 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9950 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9951 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9952 "underlying block device."
9953 msgstr ""
9954
9955 # type: textblock
9956 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3607 ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3676 ../src/guestfs-actions.pod:3724
9957 msgid "(Added in 1.5.1)"
9958 msgstr ""
9959
9960 # type: =head2
9961 #: ../src/guestfs-actions.pod:3510
9962 msgid "guestfs_luks_format"
9963 msgstr ""
9964
9965 # type: verbatim
9966 #: ../src/guestfs-actions.pod:3512
9967 #, no-wrap
9968 msgid ""
9969 " int\n"
9970 " guestfs_luks_format (guestfs_h *g,\n"
9971 "                      const char *device,\n"
9972 "                      const char *key,\n"
9973 "                      int keyslot);\n"
9974 "\n"
9975 msgstr ""
9976
9977 # type: textblock
9978 #: ../src/guestfs-actions.pod:3518 ../fish/guestfish-actions.pod:2410
9979 msgid ""
9980 "This command erases existing data on C<device> and formats the device as a "
9981 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9982 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9983 msgstr ""
9984
9985 # type: textblock
9986 #: ../src/guestfs-actions.pod:3525 ../src/guestfs-actions.pod:3548 ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:5311 ../src/guestfs-actions.pod:5686 ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:2418 ../fish/guestfish-actions.pod:2431 ../fish/guestfish-actions.pod:2515 ../fish/guestfish-actions.pod:3045 ../fish/guestfish-actions.pod:3552 ../fish/guestfish-actions.pod:3832 ../fish/guestfish-actions.pod:3848 ../fish/guestfish-actions.pod:3863 ../fish/guestfish-actions.pod:4578
9987 msgid ""
9988 "B<This command is dangerous.  Without careful use you can easily destroy all "
9989 "your data>."
9990 msgstr ""
9991
9992 # type: =head2
9993 #: ../src/guestfs-actions.pod:3534
9994 msgid "guestfs_luks_format_cipher"
9995 msgstr ""
9996
9997 # type: verbatim
9998 #: ../src/guestfs-actions.pod:3536
9999 #, no-wrap
10000 msgid ""
10001 " int\n"
10002 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10003 "                             const char *device,\n"
10004 "                             const char *key,\n"
10005 "                             int keyslot,\n"
10006 "                             const char *cipher);\n"
10007 "\n"
10008 msgstr ""
10009
10010 # type: textblock
10011 #: ../src/guestfs-actions.pod:3543
10012 msgid ""
10013 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10014 "set the C<cipher> used."
10015 msgstr ""
10016
10017 # type: =head2
10018 #: ../src/guestfs-actions.pod:3557
10019 msgid "guestfs_luks_kill_slot"
10020 msgstr ""
10021
10022 # type: verbatim
10023 #: ../src/guestfs-actions.pod:3559
10024 #, no-wrap
10025 msgid ""
10026 " int\n"
10027 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10028 "                         const char *device,\n"
10029 "                         const char *key,\n"
10030 "                         int keyslot);\n"
10031 "\n"
10032 msgstr ""
10033
10034 # type: textblock
10035 #: ../src/guestfs-actions.pod:3565 ../fish/guestfish-actions.pod:2438
10036 msgid ""
10037 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10038 "device C<device>.  C<key> must be one of the I<other> keys."
10039 msgstr ""
10040
10041 # type: =head2
10042 #: ../src/guestfs-actions.pod:3577
10043 msgid "guestfs_luks_open"
10044 msgstr ""
10045
10046 # type: verbatim
10047 #: ../src/guestfs-actions.pod:3579
10048 #, no-wrap
10049 msgid ""
10050 " int\n"
10051 " guestfs_luks_open (guestfs_h *g,\n"
10052 "                    const char *device,\n"
10053 "                    const char *key,\n"
10054 "                    const char *mapname);\n"
10055 "\n"
10056 msgstr ""
10057
10058 # type: textblock
10059 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2449
10060 msgid ""
10061 "This command opens a block device which has been encrypted according to the "
10062 "Linux Unified Key Setup (LUKS) standard."
10063 msgstr ""
10064
10065 # type: textblock
10066 #: ../src/guestfs-actions.pod:3588 ../fish/guestfish-actions.pod:2452
10067 msgid "C<device> is the encrypted block device or partition."
10068 msgstr ""
10069
10070 # type: textblock
10071 #: ../src/guestfs-actions.pod:3590 ../fish/guestfish-actions.pod:2454
10072 msgid ""
10073 "The caller must supply one of the keys associated with the LUKS block "
10074 "device, in the C<key> parameter."
10075 msgstr ""
10076
10077 # type: textblock
10078 #: ../src/guestfs-actions.pod:3593 ../fish/guestfish-actions.pod:2457
10079 msgid ""
10080 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10081 "writes to this block device are decrypted from and encrypted to the "
10082 "underlying C<device> respectively."
10083 msgstr ""
10084
10085 # type: textblock
10086 #: ../src/guestfs-actions.pod:3597
10087 msgid ""
10088 "If this block device contains LVM volume groups, then calling "
10089 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10090 "visible."
10091 msgstr ""
10092
10093 # type: =head2
10094 #: ../src/guestfs-actions.pod:3609
10095 msgid "guestfs_luks_open_ro"
10096 msgstr ""
10097
10098 # type: verbatim
10099 #: ../src/guestfs-actions.pod:3611
10100 #, no-wrap
10101 msgid ""
10102 " int\n"
10103 " guestfs_luks_open_ro (guestfs_h *g,\n"
10104 "                       const char *device,\n"
10105 "                       const char *key,\n"
10106 "                       const char *mapname);\n"
10107 "\n"
10108 msgstr ""
10109
10110 # type: textblock
10111 #: ../src/guestfs-actions.pod:3617
10112 msgid ""
10113 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10114 "created."
10115 msgstr ""
10116
10117 # type: =head2
10118 #: ../src/guestfs-actions.pod:3628
10119 msgid "guestfs_lvcreate"
10120 msgstr ""
10121
10122 # type: verbatim
10123 #: ../src/guestfs-actions.pod:3630
10124 #, no-wrap
10125 msgid ""
10126 " int\n"
10127 " guestfs_lvcreate (guestfs_h *g,\n"
10128 "                   const char *logvol,\n"
10129 "                   const char *volgroup,\n"
10130 "                   int mbytes);\n"
10131 "\n"
10132 msgstr ""
10133
10134 # type: textblock
10135 #: ../src/guestfs-actions.pod:3636 ../fish/guestfish-actions.pod:2482
10136 msgid ""
10137 "This creates an LVM logical volume called C<logvol> on the volume group "
10138 "C<volgroup>, with C<size> megabytes."
10139 msgstr ""
10140
10141 # type: =head2
10142 #: ../src/guestfs-actions.pod:3643
10143 msgid "guestfs_lvm_canonical_lv_name"
10144 msgstr ""
10145
10146 # type: verbatim
10147 #: ../src/guestfs-actions.pod:3645
10148 #, no-wrap
10149 msgid ""
10150 " char *\n"
10151 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10152 "                                const char *lvname);\n"
10153 "\n"
10154 msgstr ""
10155
10156 # type: textblock
10157 #: ../src/guestfs-actions.pod:3649 ../fish/guestfish-actions.pod:2489
10158 msgid ""
10159 "This converts alternative naming schemes for LVs that you might find to the "
10160 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
10161 "C</dev/VG/LV>."
10162 msgstr ""
10163
10164 # type: textblock
10165 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2493
10166 msgid ""
10167 "This command returns an error if the C<lvname> parameter does not refer to a "
10168 "logical volume."
10169 msgstr ""
10170
10171 # type: textblock
10172 #: ../src/guestfs-actions.pod:3656
10173 msgid "See also C<guestfs_is_lv>."
10174 msgstr ""
10175
10176 # type: textblock
10177 #: ../src/guestfs-actions.pod:3661
10178 msgid "(Added in 1.5.24)"
10179 msgstr ""
10180
10181 # type: =head2
10182 #: ../src/guestfs-actions.pod:3663
10183 msgid "guestfs_lvm_clear_filter"
10184 msgstr ""
10185
10186 # type: verbatim
10187 #: ../src/guestfs-actions.pod:3665
10188 #, no-wrap
10189 msgid ""
10190 " int\n"
10191 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10192 "\n"
10193 msgstr ""
10194
10195 # type: textblock
10196 #: ../src/guestfs-actions.pod:3668
10197 msgid ""
10198 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10199 "see every block device."
10200 msgstr ""
10201
10202 # type: textblock
10203 #: ../src/guestfs-actions.pod:3671 ../src/guestfs-actions.pod:3713 ../fish/guestfish-actions.pod:2505 ../fish/guestfish-actions.pod:2536
10204 msgid "This command also clears the LVM cache and performs a volume group scan."
10205 msgstr ""
10206
10207 # type: =head2
10208 #: ../src/guestfs-actions.pod:3678
10209 msgid "guestfs_lvm_remove_all"
10210 msgstr ""
10211
10212 # type: verbatim
10213 #: ../src/guestfs-actions.pod:3680
10214 #, no-wrap
10215 msgid ""
10216 " int\n"
10217 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10218 "\n"
10219 msgstr ""
10220
10221 # type: textblock
10222 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2512
10223 msgid ""
10224 "This command removes all LVM logical volumes, volume groups and physical "
10225 "volumes."
10226 msgstr ""
10227
10228 # type: =head2
10229 #: ../src/guestfs-actions.pod:3693
10230 msgid "guestfs_lvm_set_filter"
10231 msgstr ""
10232
10233 # type: verbatim
10234 #: ../src/guestfs-actions.pod:3695
10235 #, no-wrap
10236 msgid ""
10237 " int\n"
10238 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10239 "                         char *const *devices);\n"
10240 "\n"
10241 msgstr ""
10242
10243 # type: textblock
10244 #: ../src/guestfs-actions.pod:3699 ../fish/guestfish-actions.pod:2522
10245 msgid ""
10246 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10247 "block devices in the list C<devices>, and will ignore all other attached "
10248 "block devices."
10249 msgstr ""
10250
10251 # type: textblock
10252 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2526
10253 msgid ""
10254 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10255 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10256 "there are two types of duplication possible: either cloned PVs/VGs which "
10257 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10258 "same name.  In normal operation you cannot create this situation, but you "
10259 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10260 "inside the LVM metadata."
10261 msgstr ""
10262
10263 # type: textblock
10264 #: ../src/guestfs-actions.pod:3716 ../fish/guestfish-actions.pod:2539
10265 msgid "You can filter whole block devices or individual partitions."
10266 msgstr ""
10267
10268 # type: textblock
10269 #: ../src/guestfs-actions.pod:3718 ../fish/guestfish-actions.pod:2541
10270 msgid ""
10271 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10272 "filesystem), even if you are not filtering out that VG."
10273 msgstr ""
10274
10275 # type: =head2
10276 #: ../src/guestfs-actions.pod:3726
10277 msgid "guestfs_lvremove"
10278 msgstr ""
10279
10280 # type: verbatim
10281 #: ../src/guestfs-actions.pod:3728
10282 #, no-wrap
10283 msgid ""
10284 " int\n"
10285 " guestfs_lvremove (guestfs_h *g,\n"
10286 "                   const char *device);\n"
10287 "\n"
10288 msgstr ""
10289
10290 # type: textblock
10291 #: ../src/guestfs-actions.pod:3732 ../fish/guestfish-actions.pod:2549
10292 msgid ""
10293 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10294 "LV, such as C</dev/VG/LV>."
10295 msgstr ""
10296
10297 # type: textblock
10298 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2552
10299 msgid ""
10300 "You can also remove all LVs in a volume group by specifying the VG name, "
10301 "C</dev/VG>."
10302 msgstr ""
10303
10304 # type: textblock
10305 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:4894 ../src/guestfs-actions.pod:6624
10306 msgid "(Added in 1.0.13)"
10307 msgstr ""
10308
10309 # type: =head2
10310 #: ../src/guestfs-actions.pod:3742
10311 msgid "guestfs_lvrename"
10312 msgstr ""
10313
10314 # type: verbatim
10315 #: ../src/guestfs-actions.pod:3744
10316 #, no-wrap
10317 msgid ""
10318 " int\n"
10319 " guestfs_lvrename (guestfs_h *g,\n"
10320 "                   const char *logvol,\n"
10321 "                   const char *newlogvol);\n"
10322 "\n"
10323 msgstr ""
10324
10325 # type: textblock
10326 #: ../src/guestfs-actions.pod:3749 ../fish/guestfish-actions.pod:2559
10327 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10328 msgstr ""
10329
10330 # type: textblock
10331 #: ../src/guestfs-actions.pod:3753 ../src/guestfs-actions.pod:6637
10332 msgid "(Added in 1.0.83)"
10333 msgstr ""
10334
10335 # type: =head2
10336 #: ../src/guestfs-actions.pod:3755
10337 msgid "guestfs_lvresize"
10338 msgstr ""
10339
10340 # type: verbatim
10341 #: ../src/guestfs-actions.pod:3757
10342 #, no-wrap
10343 msgid ""
10344 " int\n"
10345 " guestfs_lvresize (guestfs_h *g,\n"
10346 "                   const char *device,\n"
10347 "                   int mbytes);\n"
10348 "\n"
10349 msgstr ""
10350
10351 # type: textblock
10352 #: ../src/guestfs-actions.pod:3762 ../fish/guestfish-actions.pod:2565
10353 msgid ""
10354 "This resizes (expands or shrinks) an existing LVM logical volume to "
10355 "C<mbytes>.  When reducing, data in the reduced part is lost."
10356 msgstr ""
10357
10358 # type: =head2
10359 #: ../src/guestfs-actions.pod:3770
10360 msgid "guestfs_lvresize_free"
10361 msgstr ""
10362
10363 # type: verbatim
10364 #: ../src/guestfs-actions.pod:3772
10365 #, no-wrap
10366 msgid ""
10367 " int\n"
10368 " guestfs_lvresize_free (guestfs_h *g,\n"
10369 "                        const char *lv,\n"
10370 "                        int percent);\n"
10371 "\n"
10372 msgstr ""
10373
10374 # type: textblock
10375 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2573
10376 msgid ""
10377 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10378 "remaining free space in the volume group.  Commonly you would call this with "
10379 "pc = 100 which expands the logical volume as much as possible, using all "
10380 "remaining free space in the volume group."
10381 msgstr ""
10382
10383 # type: textblock
10384 #: ../src/guestfs-actions.pod:3785
10385 msgid "(Added in 1.3.3)"
10386 msgstr ""
10387
10388 # type: =head2
10389 #: ../src/guestfs-actions.pod:3787
10390 msgid "guestfs_lvs"
10391 msgstr ""
10392
10393 # type: verbatim
10394 #: ../src/guestfs-actions.pod:3789
10395 #, no-wrap
10396 msgid ""
10397 " char **\n"
10398 " guestfs_lvs (guestfs_h *g);\n"
10399 "\n"
10400 msgstr ""
10401
10402 # type: textblock
10403 #: ../src/guestfs-actions.pod:3792 ../fish/guestfish-actions.pod:2583
10404 msgid ""
10405 "List all the logical volumes detected.  This is the equivalent of the "
10406 "L<lvs(8)> command."
10407 msgstr ""
10408
10409 # type: textblock
10410 #: ../src/guestfs-actions.pod:3795 ../fish/guestfish-actions.pod:2586
10411 msgid ""
10412 "This returns a list of the logical volume device names "
10413 "(eg. C</dev/VolGroup00/LogVol00>)."
10414 msgstr ""
10415
10416 # type: textblock
10417 #: ../src/guestfs-actions.pod:3798
10418 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10419 msgstr ""
10420
10421 # type: =head2
10422 #: ../src/guestfs-actions.pod:3806
10423 msgid "guestfs_lvs_full"
10424 msgstr ""
10425
10426 # type: verbatim
10427 #: ../src/guestfs-actions.pod:3808
10428 #, no-wrap
10429 msgid ""
10430 " struct guestfs_lvm_lv_list *\n"
10431 " guestfs_lvs_full (guestfs_h *g);\n"
10432 "\n"
10433 msgstr ""
10434
10435 # type: textblock
10436 #: ../src/guestfs-actions.pod:3811 ../fish/guestfish-actions.pod:2595
10437 msgid ""
10438 "List all the logical volumes detected.  This is the equivalent of the "
10439 "L<lvs(8)> command.  The \"full\" version includes all fields."
10440 msgstr ""
10441
10442 # type: textblock
10443 #: ../src/guestfs-actions.pod:3814
10444 msgid ""
10445 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10446 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
10447 "use>."
10448 msgstr ""
10449
10450 # type: =head2
10451 #: ../src/guestfs-actions.pod:3820
10452 msgid "guestfs_lvuuid"
10453 msgstr ""
10454
10455 # type: verbatim
10456 #: ../src/guestfs-actions.pod:3822
10457 #, no-wrap
10458 msgid ""
10459 " char *\n"
10460 " guestfs_lvuuid (guestfs_h *g,\n"
10461 "                 const char *device);\n"
10462 "\n"
10463 msgstr ""
10464
10465 # type: textblock
10466 #: ../src/guestfs-actions.pod:3826 ../fish/guestfish-actions.pod:2602
10467 msgid "This command returns the UUID of the LVM LV C<device>."
10468 msgstr ""
10469
10470 # type: =head2
10471 #: ../src/guestfs-actions.pod:3833
10472 msgid "guestfs_lxattrlist"
10473 msgstr ""
10474
10475 # type: verbatim
10476 #: ../src/guestfs-actions.pod:3835
10477 #, no-wrap
10478 msgid ""
10479 " struct guestfs_xattr_list *\n"
10480 " guestfs_lxattrlist (guestfs_h *g,\n"
10481 "                     const char *path,\n"
10482 "                     char *const *names);\n"
10483 "\n"
10484 msgstr ""
10485
10486 # type: textblock
10487 #: ../src/guestfs-actions.pod:3840 ../fish/guestfish-actions.pod:2608
10488 msgid ""
10489 "This call allows you to get the extended attributes of multiple files, where "
10490 "all files are in the directory C<path>.  C<names> is the list of files from "
10491 "this directory."
10492 msgstr ""
10493
10494 # type: textblock
10495 #: ../src/guestfs-actions.pod:3844 ../fish/guestfish-actions.pod:2612
10496 msgid ""
10497 "On return you get a flat list of xattr structs which must be interpreted "
10498 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10499 "C<attrval> in this struct is zero-length to indicate there was an error "
10500 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10501 "number (the number of following attributes for this file, which could be "
10502 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10503 "attributes for the first named file.  This repeats for the second and "
10504 "subsequent files."
10505 msgstr ""
10506
10507 # type: textblock
10508 #: ../src/guestfs-actions.pod:3854
10509 msgid ""
10510 "This call is intended for programs that want to efficiently list a directory "
10511 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10512 "a similarly efficient call for getting standard stats.  Very long directory "
10513 "listings might cause the protocol message size to be exceeded, causing this "
10514 "call to fail.  The caller must split up such requests into smaller groups of "
10515 "names."
10516 msgstr ""
10517
10518 # type: =head2
10519 #: ../src/guestfs-actions.pod:3868
10520 msgid "guestfs_mkdir"
10521 msgstr ""
10522
10523 # type: verbatim
10524 #: ../src/guestfs-actions.pod:3870
10525 #, no-wrap
10526 msgid ""
10527 " int\n"
10528 " guestfs_mkdir (guestfs_h *g,\n"
10529 "                const char *path);\n"
10530 "\n"
10531 msgstr ""
10532
10533 # type: textblock
10534 #: ../src/guestfs-actions.pod:3874 ../fish/guestfish-actions.pod:2634
10535 msgid "Create a directory named C<path>."
10536 msgstr ""
10537
10538 # type: =head2
10539 #: ../src/guestfs-actions.pod:3880
10540 msgid "guestfs_mkdir_mode"
10541 msgstr ""
10542
10543 # type: verbatim
10544 #: ../src/guestfs-actions.pod:3882
10545 #, no-wrap
10546 msgid ""
10547 " int\n"
10548 " guestfs_mkdir_mode (guestfs_h *g,\n"
10549 "                     const char *path,\n"
10550 "                     int mode);\n"
10551 "\n"
10552 msgstr ""
10553
10554 # type: textblock
10555 #: ../src/guestfs-actions.pod:3887 ../fish/guestfish-actions.pod:2640
10556 msgid ""
10557 "This command creates a directory, setting the initial permissions of the "
10558 "directory to C<mode>."
10559 msgstr ""
10560
10561 # type: textblock
10562 #: ../src/guestfs-actions.pod:3890 ../fish/guestfish-actions.pod:2643
10563 msgid ""
10564 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10565 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10566 "other ways."
10567 msgstr ""
10568
10569 # type: textblock
10570 #: ../src/guestfs-actions.pod:3894
10571 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10572 msgstr ""
10573
10574 # type: =head2
10575 #: ../src/guestfs-actions.pod:3900
10576 msgid "guestfs_mkdir_p"
10577 msgstr ""
10578
10579 # type: verbatim
10580 #: ../src/guestfs-actions.pod:3902
10581 #, no-wrap
10582 msgid ""
10583 " int\n"
10584 " guestfs_mkdir_p (guestfs_h *g,\n"
10585 "                  const char *path);\n"
10586 "\n"
10587 msgstr ""
10588
10589 # type: textblock
10590 #: ../src/guestfs-actions.pod:3906 ../fish/guestfish-actions.pod:2653
10591 msgid ""
10592 "Create a directory named C<path>, creating any parent directories as "
10593 "necessary.  This is like the C<mkdir -p> shell command."
10594 msgstr ""
10595
10596 # type: =head2
10597 #: ../src/guestfs-actions.pod:3913
10598 msgid "guestfs_mkdtemp"
10599 msgstr ""
10600
10601 # type: verbatim
10602 #: ../src/guestfs-actions.pod:3915
10603 #, no-wrap
10604 msgid ""
10605 " char *\n"
10606 " guestfs_mkdtemp (guestfs_h *g,\n"
10607 "                  const char *template);\n"
10608 "\n"
10609 msgstr ""
10610
10611 # type: textblock
10612 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:2660
10613 msgid ""
10614 "This command creates a temporary directory.  The C<template> parameter "
10615 "should be a full pathname for the temporary directory name with the final "
10616 "six characters being \"XXXXXX\"."
10617 msgstr ""
10618
10619 # type: textblock
10620 #: ../src/guestfs-actions.pod:3924 ../fish/guestfish-actions.pod:2665
10621 msgid ""
10622 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10623 "being suitable for Windows filesystems."
10624 msgstr ""
10625
10626 # type: textblock
10627 #: ../src/guestfs-actions.pod:3927 ../fish/guestfish-actions.pod:2668
10628 msgid "The name of the temporary directory that was created is returned."
10629 msgstr ""
10630
10631 # type: textblock
10632 #: ../src/guestfs-actions.pod:3930 ../fish/guestfish-actions.pod:2671
10633 msgid "The temporary directory is created with mode 0700 and is owned by root."
10634 msgstr ""
10635
10636 # type: textblock
10637 #: ../src/guestfs-actions.pod:3933 ../fish/guestfish-actions.pod:2674
10638 msgid ""
10639 "The caller is responsible for deleting the temporary directory and its "
10640 "contents after use."
10641 msgstr ""
10642
10643 # type: textblock
10644 #: ../src/guestfs-actions.pod:3936 ../fish/guestfish-actions.pod:2677
10645 msgid "See also: L<mkdtemp(3)>"
10646 msgstr ""
10647
10648 # type: =head2
10649 #: ../src/guestfs-actions.pod:3943
10650 msgid "guestfs_mke2fs_J"
10651 msgstr ""
10652
10653 # type: verbatim
10654 #: ../src/guestfs-actions.pod:3945
10655 #, no-wrap
10656 msgid ""
10657 " int\n"
10658 " guestfs_mke2fs_J (guestfs_h *g,\n"
10659 "                   const char *fstype,\n"
10660 "                   int blocksize,\n"
10661 "                   const char *device,\n"
10662 "                   const char *journal);\n"
10663 "\n"
10664 msgstr ""
10665
10666 # type: textblock
10667 #: ../src/guestfs-actions.pod:3952 ../fish/guestfish-actions.pod:2683
10668 msgid ""
10669 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10670 "C<journal>.  It is equivalent to the command:"
10671 msgstr ""
10672
10673 # type: verbatim
10674 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2687
10675 #, no-wrap
10676 msgid ""
10677 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10678 "\n"
10679 msgstr ""
10680
10681 # type: textblock
10682 #: ../src/guestfs-actions.pod:3958
10683 msgid "See also C<guestfs_mke2journal>."
10684 msgstr ""
10685
10686 # type: textblock
10687 #: ../src/guestfs-actions.pod:3962 ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:4028 ../src/guestfs-actions.pod:4042 ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4284
10688 msgid "(Added in 1.0.68)"
10689 msgstr ""
10690
10691 # type: =head2
10692 #: ../src/guestfs-actions.pod:3964
10693 msgid "guestfs_mke2fs_JL"
10694 msgstr ""
10695
10696 # type: verbatim
10697 #: ../src/guestfs-actions.pod:3966
10698 #, no-wrap
10699 msgid ""
10700 " int\n"
10701 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10702 "                    const char *fstype,\n"
10703 "                    int blocksize,\n"
10704 "                    const char *device,\n"
10705 "                    const char *label);\n"
10706 "\n"
10707 msgstr ""
10708
10709 # type: textblock
10710 #: ../src/guestfs-actions.pod:3973 ../fish/guestfish-actions.pod:2695
10711 msgid ""
10712 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10713 "the journal labeled C<label>."
10714 msgstr ""
10715
10716 # type: textblock
10717 #: ../src/guestfs-actions.pod:3976
10718 msgid "See also C<guestfs_mke2journal_L>."
10719 msgstr ""
10720
10721 # type: =head2
10722 #: ../src/guestfs-actions.pod:3982
10723 msgid "guestfs_mke2fs_JU"
10724 msgstr ""
10725
10726 # type: verbatim
10727 #: ../src/guestfs-actions.pod:3984
10728 #, no-wrap
10729 msgid ""
10730 " int\n"
10731 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10732 "                    const char *fstype,\n"
10733 "                    int blocksize,\n"
10734 "                    const char *device,\n"
10735 "                    const char *uuid);\n"
10736 "\n"
10737 msgstr ""
10738
10739 # type: textblock
10740 #: ../src/guestfs-actions.pod:3991 ../fish/guestfish-actions.pod:2704
10741 msgid ""
10742 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10743 "the journal with UUID C<uuid>."
10744 msgstr ""
10745
10746 # type: textblock
10747 #: ../src/guestfs-actions.pod:3994
10748 msgid "See also C<guestfs_mke2journal_U>."
10749 msgstr ""
10750
10751 # type: =head2
10752 #: ../src/guestfs-actions.pod:4000
10753 msgid "guestfs_mke2journal"
10754 msgstr ""
10755
10756 # type: verbatim
10757 #: ../src/guestfs-actions.pod:4002
10758 #, no-wrap
10759 msgid ""
10760 " int\n"
10761 " guestfs_mke2journal (guestfs_h *g,\n"
10762 "                      int blocksize,\n"
10763 "                      const char *device);\n"
10764 "\n"
10765 msgstr ""
10766
10767 # type: textblock
10768 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2713
10769 msgid ""
10770 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10771 "command:"
10772 msgstr ""
10773
10774 # type: verbatim
10775 #: ../src/guestfs-actions.pod:4010 ../fish/guestfish-actions.pod:2716
10776 #, no-wrap
10777 msgid ""
10778 " mke2fs -O journal_dev -b blocksize device\n"
10779 "\n"
10780 msgstr ""
10781
10782 # type: =head2
10783 #: ../src/guestfs-actions.pod:4016
10784 msgid "guestfs_mke2journal_L"
10785 msgstr ""
10786
10787 # type: verbatim
10788 #: ../src/guestfs-actions.pod:4018
10789 #, no-wrap
10790 msgid ""
10791 " int\n"
10792 " guestfs_mke2journal_L (guestfs_h *g,\n"
10793 "                        int blocksize,\n"
10794 "                        const char *label,\n"
10795 "                        const char *device);\n"
10796 "\n"
10797 msgstr ""
10798
10799 # type: textblock
10800 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2722
10801 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10802 msgstr ""
10803
10804 # type: =head2
10805 #: ../src/guestfs-actions.pod:4030
10806 msgid "guestfs_mke2journal_U"
10807 msgstr ""
10808
10809 # type: verbatim
10810 #: ../src/guestfs-actions.pod:4032
10811 #, no-wrap
10812 msgid ""
10813 " int\n"
10814 " guestfs_mke2journal_U (guestfs_h *g,\n"
10815 "                        int blocksize,\n"
10816 "                        const char *uuid,\n"
10817 "                        const char *device);\n"
10818 "\n"
10819 msgstr ""
10820
10821 # type: textblock
10822 #: ../src/guestfs-actions.pod:4038 ../fish/guestfish-actions.pod:2728
10823 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10824 msgstr ""
10825
10826 # type: =head2
10827 #: ../src/guestfs-actions.pod:4044
10828 msgid "guestfs_mkfifo"
10829 msgstr ""
10830
10831 # type: verbatim
10832 #: ../src/guestfs-actions.pod:4046
10833 #, no-wrap
10834 msgid ""
10835 " int\n"
10836 " guestfs_mkfifo (guestfs_h *g,\n"
10837 "                 int mode,\n"
10838 "                 const char *path);\n"
10839 "\n"
10840 msgstr ""
10841
10842 # type: textblock
10843 #: ../src/guestfs-actions.pod:4051
10844 msgid ""
10845 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10846 "is just a convenient wrapper around C<guestfs_mknod>."
10847 msgstr ""
10848
10849 # type: =head2
10850 #: ../src/guestfs-actions.pod:4061
10851 msgid "guestfs_mkfs"
10852 msgstr ""
10853
10854 # type: verbatim
10855 #: ../src/guestfs-actions.pod:4063
10856 #, no-wrap
10857 msgid ""
10858 " int\n"
10859 " guestfs_mkfs (guestfs_h *g,\n"
10860 "               const char *fstype,\n"
10861 "               const char *device);\n"
10862 "\n"
10863 msgstr ""
10864
10865 # type: textblock
10866 #: ../src/guestfs-actions.pod:4068 ../fish/guestfish-actions.pod:2744
10867 msgid ""
10868 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10869 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10870 msgstr ""
10871
10872 # type: =head2
10873 #: ../src/guestfs-actions.pod:4076
10874 msgid "guestfs_mkfs_b"
10875 msgstr ""
10876
10877 # type: verbatim
10878 #: ../src/guestfs-actions.pod:4078
10879 #, no-wrap
10880 msgid ""
10881 " int\n"
10882 " guestfs_mkfs_b (guestfs_h *g,\n"
10883 "                 const char *fstype,\n"
10884 "                 int blocksize,\n"
10885 "                 const char *device);\n"
10886 "\n"
10887 msgstr ""
10888
10889 # type: textblock
10890 #: ../src/guestfs-actions.pod:4084
10891 msgid ""
10892 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10893 "block size of the resulting filesystem.  Supported block sizes depend on the "
10894 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10895 msgstr ""
10896
10897 # type: textblock
10898 #: ../src/guestfs-actions.pod:4089 ../fish/guestfish-actions.pod:2757
10899 msgid ""
10900 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10901 "cluster size."
10902 msgstr ""
10903
10904 # type: =head2
10905 #: ../src/guestfs-actions.pod:4096
10906 msgid "guestfs_mkmountpoint"
10907 msgstr ""
10908
10909 # type: verbatim
10910 #: ../src/guestfs-actions.pod:4098
10911 #, no-wrap
10912 msgid ""
10913 " int\n"
10914 " guestfs_mkmountpoint (guestfs_h *g,\n"
10915 "                       const char *exemptpath);\n"
10916 "\n"
10917 msgstr ""
10918
10919 # type: textblock
10920 #: ../src/guestfs-actions.pod:4102
10921 msgid ""
10922 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10923 "that can be used to create extra mountpoints before mounting the first "
10924 "filesystem."
10925 msgstr ""
10926
10927 # type: textblock
10928 #: ../src/guestfs-actions.pod:4106 ../fish/guestfish-actions.pod:2768
10929 msgid ""
10930 "These calls are I<only> necessary in some very limited circumstances, mainly "
10931 "the case where you want to mount a mix of unrelated and/or read-only "
10932 "filesystems together."
10933 msgstr ""
10934
10935 # type: textblock
10936 #: ../src/guestfs-actions.pod:4110 ../fish/guestfish-actions.pod:2772
10937 msgid ""
10938 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10939 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10940 "inside that.  You can unpack this as follows in guestfish:"
10941 msgstr ""
10942
10943 # type: verbatim
10944 #: ../src/guestfs-actions.pod:4115 ../fish/guestfish-actions.pod:2777
10945 #, no-wrap
10946 msgid ""
10947 " add-ro Fedora-11-i686-Live.iso\n"
10948 " run\n"
10949 " mkmountpoint /cd\n"
10950 " mkmountpoint /sqsh\n"
10951 " mkmountpoint /ext3fs\n"
10952 " mount /dev/sda /cd\n"
10953 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10954 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10955 "\n"
10956 msgstr ""
10957
10958 # type: textblock
10959 #: ../src/guestfs-actions.pod:4124 ../fish/guestfish-actions.pod:2786
10960 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10961 msgstr ""
10962
10963 # type: textblock
10964 #: ../src/guestfs-actions.pod:4126
10965 msgid ""
10966 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10967 "may get unexpected errors if you try to mix these calls.  It is safest to "
10968 "manually unmount filesystems and remove mountpoints after use."
10969 msgstr ""
10970
10971 # type: textblock
10972 #: ../src/guestfs-actions.pod:4130
10973 msgid ""
10974 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10975 "first, so for this to work for manual mountpoints, you must ensure that the "
10976 "innermost mountpoints have the longest pathnames, as in the example code "
10977 "above."
10978 msgstr ""
10979
10980 # type: textblock
10981 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2797
10982 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10983 msgstr ""
10984
10985 # type: textblock
10986 #: ../src/guestfs-actions.pod:4137
10987 msgid ""
10988 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10989 "means that C<guestfs_umount_all> is called when the handle is closed which "
10990 "can also trigger these issues."
10991 msgstr ""
10992
10993 # type: textblock
10994 #: ../src/guestfs-actions.pod:4143 ../src/guestfs-actions.pod:4402 ../src/guestfs-actions.pod:5295
10995 msgid "(Added in 1.0.62)"
10996 msgstr ""
10997
10998 # type: =head2
10999 #: ../src/guestfs-actions.pod:4145
11000 msgid "guestfs_mknod"
11001 msgstr ""
11002
11003 # type: verbatim
11004 #: ../src/guestfs-actions.pod:4147
11005 #, no-wrap
11006 msgid ""
11007 " int\n"
11008 " guestfs_mknod (guestfs_h *g,\n"
11009 "                int mode,\n"
11010 "                int devmajor,\n"
11011 "                int devminor,\n"
11012 "                const char *path);\n"
11013 "\n"
11014 msgstr ""
11015
11016 # type: textblock
11017 #: ../src/guestfs-actions.pod:4154 ../fish/guestfish-actions.pod:2807
11018 msgid ""
11019 "This call creates block or character special devices, or named pipes "
11020 "(FIFOs)."
11021 msgstr ""
11022
11023 # type: textblock
11024 #: ../src/guestfs-actions.pod:4157 ../fish/guestfish-actions.pod:2810
11025 msgid ""
11026 "The C<mode> parameter should be the mode, using the standard constants.  "
11027 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11028 "used when creating block and character special devices."
11029 msgstr ""
11030
11031 # type: textblock
11032 #: ../src/guestfs-actions.pod:4162
11033 msgid ""
11034 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11035 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11036 "regular file).  These constants are available in the standard Linux header "
11037 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11038 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11039 "the appropriate constant for you."
11040 msgstr ""
11041
11042 # type: =head2
11043 #: ../src/guestfs-actions.pod:4176
11044 msgid "guestfs_mknod_b"
11045 msgstr ""
11046
11047 # type: verbatim
11048 #: ../src/guestfs-actions.pod:4178
11049 #, no-wrap
11050 msgid ""
11051 " int\n"
11052 " guestfs_mknod_b (guestfs_h *g,\n"
11053 "                  int mode,\n"
11054 "                  int devmajor,\n"
11055 "                  int devminor,\n"
11056 "                  const char *path);\n"
11057 "\n"
11058 msgstr ""
11059
11060 # type: textblock
11061 #: ../src/guestfs-actions.pod:4185
11062 msgid ""
11063 "This call creates a block device node called C<path> with mode C<mode> and "
11064 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11065 "wrapper around C<guestfs_mknod>."
11066 msgstr ""
11067
11068 # type: =head2
11069 #: ../src/guestfs-actions.pod:4195
11070 msgid "guestfs_mknod_c"
11071 msgstr ""
11072
11073 # type: verbatim
11074 #: ../src/guestfs-actions.pod:4197
11075 #, no-wrap
11076 msgid ""
11077 " int\n"
11078 " guestfs_mknod_c (guestfs_h *g,\n"
11079 "                  int mode,\n"
11080 "                  int devmajor,\n"
11081 "                  int devminor,\n"
11082 "                  const char *path);\n"
11083 "\n"
11084 msgstr ""
11085
11086 # type: textblock
11087 #: ../src/guestfs-actions.pod:4204
11088 msgid ""
11089 "This call creates a char device node called C<path> with mode C<mode> and "
11090 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11091 "wrapper around C<guestfs_mknod>."
11092 msgstr ""
11093
11094 # type: =head2
11095 #: ../src/guestfs-actions.pod:4214
11096 msgid "guestfs_mkswap"
11097 msgstr ""
11098
11099 # type: verbatim
11100 #: ../src/guestfs-actions.pod:4216
11101 #, no-wrap
11102 msgid ""
11103 " int\n"
11104 " guestfs_mkswap (guestfs_h *g,\n"
11105 "                 const char *device);\n"
11106 "\n"
11107 msgstr ""
11108
11109 # type: textblock
11110 #: ../src/guestfs-actions.pod:4220 ../fish/guestfish-actions.pod:2849
11111 msgid "Create a swap partition on C<device>."
11112 msgstr ""
11113
11114 # type: =head2
11115 #: ../src/guestfs-actions.pod:4226
11116 msgid "guestfs_mkswap_L"
11117 msgstr ""
11118
11119 # type: verbatim
11120 #: ../src/guestfs-actions.pod:4228
11121 #, no-wrap
11122 msgid ""
11123 " int\n"
11124 " guestfs_mkswap_L (guestfs_h *g,\n"
11125 "                   const char *label,\n"
11126 "                   const char *device);\n"
11127 "\n"
11128 msgstr ""
11129
11130 # type: textblock
11131 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:2855
11132 msgid "Create a swap partition on C<device> with label C<label>."
11133 msgstr ""
11134
11135 # type: textblock
11136 #: ../src/guestfs-actions.pod:4235 ../fish/guestfish-actions.pod:2857
11137 msgid ""
11138 "Note that you cannot attach a swap label to a block device "
11139 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
11140 "the kernel or swap tools."
11141 msgstr ""
11142
11143 # type: =head2
11144 #: ../src/guestfs-actions.pod:4243
11145 msgid "guestfs_mkswap_U"
11146 msgstr ""
11147
11148 # type: verbatim
11149 #: ../src/guestfs-actions.pod:4245
11150 #, no-wrap
11151 msgid ""
11152 " int\n"
11153 " guestfs_mkswap_U (guestfs_h *g,\n"
11154 "                   const char *uuid,\n"
11155 "                   const char *device);\n"
11156 "\n"
11157 msgstr ""
11158
11159 # type: textblock
11160 #: ../src/guestfs-actions.pod:4250 ../fish/guestfish-actions.pod:2865
11161 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11162 msgstr ""
11163
11164 # type: =head2
11165 #: ../src/guestfs-actions.pod:4256
11166 msgid "guestfs_mkswap_file"
11167 msgstr ""
11168
11169 # type: verbatim
11170 #: ../src/guestfs-actions.pod:4258
11171 #, no-wrap
11172 msgid ""
11173 " int\n"
11174 " guestfs_mkswap_file (guestfs_h *g,\n"
11175 "                      const char *path);\n"
11176 "\n"
11177 msgstr ""
11178
11179 # type: textblock
11180 #: ../src/guestfs-actions.pod:4262 ../fish/guestfish-actions.pod:2871
11181 msgid "Create a swap file."
11182 msgstr ""
11183
11184 # type: textblock
11185 #: ../src/guestfs-actions.pod:4264
11186 msgid ""
11187 "This command just writes a swap file signature to an existing file.  To "
11188 "create the file itself, use something like C<guestfs_fallocate>."
11189 msgstr ""
11190
11191 # type: =head2
11192 #: ../src/guestfs-actions.pod:4271
11193 msgid "guestfs_modprobe"
11194 msgstr ""
11195
11196 # type: verbatim
11197 #: ../src/guestfs-actions.pod:4273
11198 #, no-wrap
11199 msgid ""
11200 " int\n"
11201 " guestfs_modprobe (guestfs_h *g,\n"
11202 "                   const char *modulename);\n"
11203 "\n"
11204 msgstr ""
11205
11206 # type: textblock
11207 #: ../src/guestfs-actions.pod:4277 ../fish/guestfish-actions.pod:2880
11208 msgid "This loads a kernel module in the appliance."
11209 msgstr ""
11210
11211 # type: textblock
11212 #: ../src/guestfs-actions.pod:4279 ../fish/guestfish-actions.pod:2882
11213 msgid ""
11214 "The kernel module must have been whitelisted when libguestfs was built (see "
11215 "C<appliance/kmod.whitelist.in> in the source)."
11216 msgstr ""
11217
11218 # type: =head2
11219 #: ../src/guestfs-actions.pod:4286
11220 msgid "guestfs_mount"
11221 msgstr ""
11222
11223 # type: verbatim
11224 #: ../src/guestfs-actions.pod:4288
11225 #, no-wrap
11226 msgid ""
11227 " int\n"
11228 " guestfs_mount (guestfs_h *g,\n"
11229 "                const char *device,\n"
11230 "                const char *mountpoint);\n"
11231 "\n"
11232 msgstr ""
11233
11234 # type: textblock
11235 #: ../src/guestfs-actions.pod:4293 ../fish/guestfish-actions.pod:2889
11236 msgid ""
11237 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11238 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11239 "those block devices contain partitions, they will have the usual names "
11240 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11241 msgstr ""
11242
11243 # type: textblock
11244 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2895
11245 msgid ""
11246 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11247 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11248 "mounted on directories which already exist."
11249 msgstr ""
11250
11251 # type: textblock
11252 #: ../src/guestfs-actions.pod:4304 ../fish/guestfish-actions.pod:2900
11253 msgid ""
11254 "The mounted filesystem is writable, if we have sufficient permissions on the "
11255 "underlying device."
11256 msgstr ""
11257
11258 # type: textblock
11259 #: ../src/guestfs-actions.pod:4307
11260 msgid ""
11261 "B<Important note:> When you use this call, the filesystem options C<sync> "
11262 "and C<noatime> are set implicitly.  This was originally done because we "
11263 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11264 "very large negative performance impact and negligible effect on "
11265 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11266 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11267 "(use an empty string for the first parameter if you don't want any options)."
11268 msgstr ""
11269
11270 # type: =head2
11271 #: ../src/guestfs-actions.pod:4321
11272 msgid "guestfs_mount_loop"
11273 msgstr ""
11274
11275 # type: verbatim
11276 #: ../src/guestfs-actions.pod:4323
11277 #, no-wrap
11278 msgid ""
11279 " int\n"
11280 " guestfs_mount_loop (guestfs_h *g,\n"
11281 "                     const char *file,\n"
11282 "                     const char *mountpoint);\n"
11283 "\n"
11284 msgstr ""
11285
11286 # type: textblock
11287 #: ../src/guestfs-actions.pod:4328 ../fish/guestfish-actions.pod:2917
11288 msgid ""
11289 "This command lets you mount C<file> (a filesystem image in a file) on a "
11290 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11291 "mountpoint>."
11292 msgstr ""
11293
11294 # type: =head2
11295 #: ../src/guestfs-actions.pod:4336
11296 msgid "guestfs_mount_options"
11297 msgstr ""
11298
11299 # type: verbatim
11300 #: ../src/guestfs-actions.pod:4338
11301 #, no-wrap
11302 msgid ""
11303 " int\n"
11304 " guestfs_mount_options (guestfs_h *g,\n"
11305 "                        const char *options,\n"
11306 "                        const char *device,\n"
11307 "                        const char *mountpoint);\n"
11308 "\n"
11309 msgstr ""
11310
11311 # type: textblock
11312 #: ../src/guestfs-actions.pod:4344
11313 msgid ""
11314 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11315 "the mount options as for the L<mount(8)> I<-o> flag."
11316 msgstr ""
11317
11318 # type: textblock
11319 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2929
11320 msgid ""
11321 "If the C<options> parameter is an empty string, then no options are passed "
11322 "(all options default to whatever the filesystem uses)."
11323 msgstr ""
11324
11325 # type: textblock
11326 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:4368 ../src/guestfs-actions.pod:4385
11327 msgid "(Added in 1.0.10)"
11328 msgstr ""
11329
11330 # type: =head2
11331 #: ../src/guestfs-actions.pod:4356
11332 msgid "guestfs_mount_ro"
11333 msgstr ""
11334
11335 # type: verbatim
11336 #: ../src/guestfs-actions.pod:4358
11337 #, no-wrap
11338 msgid ""
11339 " int\n"
11340 " guestfs_mount_ro (guestfs_h *g,\n"
11341 "                   const char *device,\n"
11342 "                   const char *mountpoint);\n"
11343 "\n"
11344 msgstr ""
11345
11346 # type: textblock
11347 #: ../src/guestfs-actions.pod:4363
11348 msgid ""
11349 "This is the same as the C<guestfs_mount> command, but it mounts the "
11350 "filesystem with the read-only (I<-o ro>) flag."
11351 msgstr ""
11352
11353 # type: =head2
11354 #: ../src/guestfs-actions.pod:4370
11355 msgid "guestfs_mount_vfs"
11356 msgstr ""
11357
11358 # type: verbatim
11359 #: ../src/guestfs-actions.pod:4372
11360 #, no-wrap
11361 msgid ""
11362 " int\n"
11363 " guestfs_mount_vfs (guestfs_h *g,\n"
11364 "                    const char *options,\n"
11365 "                    const char *vfstype,\n"
11366 "                    const char *device,\n"
11367 "                    const char *mountpoint);\n"
11368 "\n"
11369 msgstr ""
11370
11371 # type: textblock
11372 #: ../src/guestfs-actions.pod:4379
11373 msgid ""
11374 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11375 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
11376 "I<-t> flags."
11377 msgstr ""
11378
11379 # type: =head2
11380 #: ../src/guestfs-actions.pod:4387
11381 msgid "guestfs_mountpoints"
11382 msgstr ""
11383
11384 # type: verbatim
11385 #: ../src/guestfs-actions.pod:4389
11386 #, no-wrap
11387 msgid ""
11388 " char **\n"
11389 " guestfs_mountpoints (guestfs_h *g);\n"
11390 "\n"
11391 msgstr ""
11392
11393 # type: textblock
11394 #: ../src/guestfs-actions.pod:4392
11395 msgid ""
11396 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11397 "devices.  This one returns a hash table (map) of device name to directory "
11398 "where the device is mounted."
11399 msgstr ""
11400
11401 # type: =head2
11402 #: ../src/guestfs-actions.pod:4404
11403 msgid "guestfs_mounts"
11404 msgstr ""
11405
11406 # type: verbatim
11407 #: ../src/guestfs-actions.pod:4406
11408 #, no-wrap
11409 msgid ""
11410 " char **\n"
11411 " guestfs_mounts (guestfs_h *g);\n"
11412 "\n"
11413 msgstr ""
11414
11415 # type: textblock
11416 #: ../src/guestfs-actions.pod:4409 ../fish/guestfish-actions.pod:2960
11417 msgid ""
11418 "This returns the list of currently mounted filesystems.  It returns the list "
11419 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11420 msgstr ""
11421
11422 # type: textblock
11423 #: ../src/guestfs-actions.pod:4412 ../fish/guestfish-actions.pod:2963
11424 msgid "Some internal mounts are not shown."
11425 msgstr ""
11426
11427 # type: textblock
11428 #: ../src/guestfs-actions.pod:4414
11429 msgid "See also: C<guestfs_mountpoints>"
11430 msgstr ""
11431
11432 # type: =head2
11433 #: ../src/guestfs-actions.pod:4422
11434 msgid "guestfs_mv"
11435 msgstr ""
11436
11437 # type: verbatim
11438 #: ../src/guestfs-actions.pod:4424
11439 #, no-wrap
11440 msgid ""
11441 " int\n"
11442 " guestfs_mv (guestfs_h *g,\n"
11443 "             const char *src,\n"
11444 "             const char *dest);\n"
11445 "\n"
11446 msgstr ""
11447
11448 # type: textblock
11449 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:2971
11450 msgid ""
11451 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11452 "destination filename or destination directory."
11453 msgstr ""
11454
11455 # type: =head2
11456 #: ../src/guestfs-actions.pod:4436
11457 msgid "guestfs_ntfs_3g_probe"
11458 msgstr ""
11459
11460 # type: verbatim
11461 #: ../src/guestfs-actions.pod:4438
11462 #, no-wrap
11463 msgid ""
11464 " int\n"
11465 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11466 "                        int rw,\n"
11467 "                        const char *device);\n"
11468 "\n"
11469 msgstr ""
11470
11471 # type: textblock
11472 #: ../src/guestfs-actions.pod:4443 ../fish/guestfish-actions.pod:2978
11473 msgid ""
11474 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11475 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11476 "read-write, and some cannot be mounted at all)."
11477 msgstr ""
11478
11479 # type: textblock
11480 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:2982
11481 msgid ""
11482 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11483 "can be mounted read-write.  Set it to false if you want to test if the "
11484 "volume can be mounted read-only."
11485 msgstr ""
11486
11487 # type: textblock
11488 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:2986
11489 msgid ""
11490 "The return value is an integer which C<0> if the operation would succeed, or "
11491 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11492 msgstr ""
11493
11494 # type: textblock
11495 #: ../src/guestfs-actions.pod:4457
11496 msgid "(Added in 1.0.43)"
11497 msgstr ""
11498
11499 # type: =head2
11500 #: ../src/guestfs-actions.pod:4459
11501 msgid "guestfs_ntfsresize"
11502 msgstr ""
11503
11504 # type: verbatim
11505 #: ../src/guestfs-actions.pod:4461
11506 #, no-wrap
11507 msgid ""
11508 " int\n"
11509 " guestfs_ntfsresize (guestfs_h *g,\n"
11510 "                     const char *device);\n"
11511 "\n"
11512 msgstr ""
11513
11514 # type: textblock
11515 #: ../src/guestfs-actions.pod:4465 ../fish/guestfish-actions.pod:2994
11516 msgid ""
11517 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11518 "size of the underlying device.  See also L<ntfsresize(8)>."
11519 msgstr ""
11520
11521 # type: =head2
11522 #: ../src/guestfs-actions.pod:4473
11523 msgid "guestfs_ntfsresize_size"
11524 msgstr ""
11525
11526 # type: verbatim
11527 #: ../src/guestfs-actions.pod:4475
11528 #, no-wrap
11529 msgid ""
11530 " int\n"
11531 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11532 "                          const char *device,\n"
11533 "                          int64_t size);\n"
11534 "\n"
11535 msgstr ""
11536
11537 # type: textblock
11538 #: ../src/guestfs-actions.pod:4480
11539 msgid ""
11540 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11541 "to specify the new size (in bytes) explicitly."
11542 msgstr ""
11543
11544 # type: textblock
11545 #: ../src/guestfs-actions.pod:4485 ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5243
11546 msgid "(Added in 1.3.14)"
11547 msgstr ""
11548
11549 # type: =head2
11550 #: ../src/guestfs-actions.pod:4487
11551 msgid "guestfs_part_add"
11552 msgstr ""
11553
11554 # type: verbatim
11555 #: ../src/guestfs-actions.pod:4489
11556 #, no-wrap
11557 msgid ""
11558 " int\n"
11559 " guestfs_part_add (guestfs_h *g,\n"
11560 "                   const char *device,\n"
11561 "                   const char *prlogex,\n"
11562 "                   int64_t startsect,\n"
11563 "                   int64_t endsect);\n"
11564 "\n"
11565 msgstr ""
11566
11567 # type: textblock
11568 #: ../src/guestfs-actions.pod:4496
11569 msgid ""
11570 "This command adds a partition to C<device>.  If there is no partition table "
11571 "on the device, call C<guestfs_part_init> first."
11572 msgstr ""
11573
11574 # type: textblock
11575 #: ../src/guestfs-actions.pod:4499 ../fish/guestfish-actions.pod:3012
11576 msgid ""
11577 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11578 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11579 "C<logical>) and C<e> (or C<extended>) partition types."
11580 msgstr ""
11581
11582 # type: textblock
11583 #: ../src/guestfs-actions.pod:4504 ../fish/guestfish-actions.pod:3017
11584 msgid ""
11585 "C<startsect> and C<endsect> are the start and end of the partition in "
11586 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11587 "from the end of the disk (C<-1> is the last sector)."
11588 msgstr ""
11589
11590 # type: textblock
11591 #: ../src/guestfs-actions.pod:4508
11592 msgid ""
11593 "Creating a partition which covers the whole disk is not so easy.  Use "
11594 "C<guestfs_part_disk> to do that."
11595 msgstr ""
11596
11597 # type: textblock
11598 #: ../src/guestfs-actions.pod:4513 ../src/guestfs-actions.pod:4551 ../src/guestfs-actions.pod:4604 ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4720 ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4779
11599 msgid "(Added in 1.0.78)"
11600 msgstr ""
11601
11602 # type: =head2
11603 #: ../src/guestfs-actions.pod:4515
11604 msgid "guestfs_part_del"
11605 msgstr ""
11606
11607 # type: verbatim
11608 #: ../src/guestfs-actions.pod:4517
11609 #, no-wrap
11610 msgid ""
11611 " int\n"
11612 " guestfs_part_del (guestfs_h *g,\n"
11613 "                   const char *device,\n"
11614 "                   int partnum);\n"
11615 "\n"
11616 msgstr ""
11617
11618 # type: textblock
11619 #: ../src/guestfs-actions.pod:4522 ../fish/guestfish-actions.pod:3028
11620 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11621 msgstr ""
11622
11623 # type: textblock
11624 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3030
11625 msgid ""
11626 "Note that in the case of MBR partitioning, deleting an extended partition "
11627 "also deletes any logical partitions it contains."
11628 msgstr ""
11629
11630 # type: =head2
11631 #: ../src/guestfs-actions.pod:4532
11632 msgid "guestfs_part_disk"
11633 msgstr ""
11634
11635 # type: verbatim
11636 #: ../src/guestfs-actions.pod:4534
11637 #, no-wrap
11638 msgid ""
11639 " int\n"
11640 " guestfs_part_disk (guestfs_h *g,\n"
11641 "                    const char *device,\n"
11642 "                    const char *parttype);\n"
11643 "\n"
11644 msgstr ""
11645
11646 # type: textblock
11647 #: ../src/guestfs-actions.pod:4539
11648 msgid ""
11649 "This command is simply a combination of C<guestfs_part_init> followed by "
11650 "C<guestfs_part_add> to create a single primary partition covering the whole "
11651 "disk."
11652 msgstr ""
11653
11654 # type: textblock
11655 #: ../src/guestfs-actions.pod:4543
11656 msgid ""
11657 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11658 "possible values are described in C<guestfs_part_init>."
11659 msgstr ""
11660
11661 # type: =head2
11662 #: ../src/guestfs-actions.pod:4553
11663 msgid "guestfs_part_get_bootable"
11664 msgstr ""
11665
11666 # type: verbatim
11667 #: ../src/guestfs-actions.pod:4555
11668 #, no-wrap
11669 msgid ""
11670 " int\n"
11671 " guestfs_part_get_bootable (guestfs_h *g,\n"
11672 "                            const char *device,\n"
11673 "                            int partnum);\n"
11674 "\n"
11675 msgstr ""
11676
11677 # type: textblock
11678 #: ../src/guestfs-actions.pod:4560 ../fish/guestfish-actions.pod:3052
11679 msgid ""
11680 "This command returns true if the partition C<partnum> on C<device> has the "
11681 "bootable flag set."
11682 msgstr ""
11683
11684 # type: textblock
11685 #: ../src/guestfs-actions.pod:4563
11686 msgid "See also C<guestfs_part_set_bootable>."
11687 msgstr ""
11688
11689 # type: =head2
11690 #: ../src/guestfs-actions.pod:4569
11691 msgid "guestfs_part_get_mbr_id"
11692 msgstr ""
11693
11694 # type: verbatim
11695 #: ../src/guestfs-actions.pod:4571
11696 #, no-wrap
11697 msgid ""
11698 " int\n"
11699 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11700 "                          const char *device,\n"
11701 "                          int partnum);\n"
11702 "\n"
11703 msgstr ""
11704
11705 # type: textblock
11706 #: ../src/guestfs-actions.pod:4576 ../fish/guestfish-actions.pod:3061
11707 msgid ""
11708 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11709 "partition C<partnum>."
11710 msgstr ""
11711
11712 # type: textblock
11713 #: ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4755
11714 msgid ""
11715 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11716 "undefined results for other partition table types (see "
11717 "C<guestfs_part_get_parttype>)."
11718 msgstr ""
11719
11720 # type: =head2
11721 #: ../src/guestfs-actions.pod:4587
11722 msgid "guestfs_part_get_parttype"
11723 msgstr ""
11724
11725 # type: verbatim
11726 #: ../src/guestfs-actions.pod:4589
11727 #, no-wrap
11728 msgid ""
11729 " char *\n"
11730 " guestfs_part_get_parttype (guestfs_h *g,\n"
11731 "                            const char *device);\n"
11732 "\n"
11733 msgstr ""
11734
11735 # type: textblock
11736 #: ../src/guestfs-actions.pod:4593 ../fish/guestfish-actions.pod:3072
11737 msgid ""
11738 "This command examines the partition table on C<device> and returns the "
11739 "partition table type (format) being used."
11740 msgstr ""
11741
11742 # type: textblock
11743 #: ../src/guestfs-actions.pod:4596
11744 msgid ""
11745 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11746 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11747 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11748 msgstr ""
11749
11750 # type: =head2
11751 #: ../src/guestfs-actions.pod:4606
11752 msgid "guestfs_part_init"
11753 msgstr ""
11754
11755 # type: verbatim
11756 #: ../src/guestfs-actions.pod:4608
11757 #, no-wrap
11758 msgid ""
11759 " int\n"
11760 " guestfs_part_init (guestfs_h *g,\n"
11761 "                    const char *device,\n"
11762 "                    const char *parttype);\n"
11763 "\n"
11764 msgstr ""
11765
11766 # type: textblock
11767 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3084
11768 msgid ""
11769 "This creates an empty partition table on C<device> of one of the partition "
11770 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11771 "(for large disks)."
11772 msgstr ""
11773
11774 # type: textblock
11775 #: ../src/guestfs-actions.pod:4617
11776 msgid ""
11777 "Initially there are no partitions.  Following this, you should call "
11778 "C<guestfs_part_add> for each partition required."
11779 msgstr ""
11780
11781 # type: textblock
11782 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3091
11783 msgid "Possible values for C<parttype> are:"
11784 msgstr ""
11785
11786 # type: =item
11787 #: ../src/guestfs-actions.pod:4624 ../fish/guestfish-actions.pod:3095
11788 msgid "B<efi> | B<gpt>"
11789 msgstr ""
11790
11791 # type: textblock
11792 #: ../src/guestfs-actions.pod:4626 ../fish/guestfish-actions.pod:3097
11793 msgid "Intel EFI / GPT partition table."
11794 msgstr ""
11795
11796 # type: textblock
11797 #: ../src/guestfs-actions.pod:4628 ../fish/guestfish-actions.pod:3099
11798 msgid ""
11799 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11800 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11801 "the C<mbr> format."
11802 msgstr ""
11803
11804 # type: =item
11805 #: ../src/guestfs-actions.pod:4632 ../fish/guestfish-actions.pod:3103
11806 msgid "B<mbr> | B<msdos>"
11807 msgstr ""
11808
11809 # type: textblock
11810 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3105
11811 msgid ""
11812 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11813 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11814 "TB.  For large disks we recommend using C<gpt>."
11815 msgstr ""
11816
11817 # type: textblock
11818 #: ../src/guestfs-actions.pod:4641 ../fish/guestfish-actions.pod:3112
11819 msgid "Other partition table types that may work but are not supported include:"
11820 msgstr ""
11821
11822 # type: =item
11823 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3117
11824 msgid "B<aix>"
11825 msgstr ""
11826
11827 # type: textblock
11828 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3119
11829 msgid "AIX disk labels."
11830 msgstr ""
11831
11832 # type: =item
11833 #: ../src/guestfs-actions.pod:4650 ../fish/guestfish-actions.pod:3121
11834 msgid "B<amiga> | B<rdb>"
11835 msgstr ""
11836
11837 # type: textblock
11838 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3123
11839 msgid "Amiga \"Rigid Disk Block\" format."
11840 msgstr ""
11841
11842 # type: =item
11843 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3125
11844 msgid "B<bsd>"
11845 msgstr ""
11846
11847 # type: textblock
11848 #: ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3127
11849 msgid "BSD disk labels."
11850 msgstr ""
11851
11852 # type: =item
11853 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3129
11854 msgid "B<dasd>"
11855 msgstr ""
11856
11857 # type: textblock
11858 #: ../src/guestfs-actions.pod:4660 ../fish/guestfish-actions.pod:3131
11859 msgid "DASD, used on IBM mainframes."
11860 msgstr ""
11861
11862 # type: =item
11863 #: ../src/guestfs-actions.pod:4662 ../fish/guestfish-actions.pod:3133
11864 msgid "B<dvh>"
11865 msgstr ""
11866
11867 # type: textblock
11868 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3135
11869 msgid "MIPS/SGI volumes."
11870 msgstr ""
11871
11872 # type: =item
11873 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3137
11874 msgid "B<mac>"
11875 msgstr ""
11876
11877 # type: textblock
11878 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3139
11879 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11880 msgstr ""
11881
11882 # type: =item
11883 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3141
11884 msgid "B<pc98>"
11885 msgstr ""
11886
11887 # type: textblock
11888 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3143
11889 msgid "NEC PC-98 format, common in Japan apparently."
11890 msgstr ""
11891
11892 # type: =item
11893 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3145
11894 msgid "B<sun>"
11895 msgstr ""
11896
11897 # type: textblock
11898 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3147
11899 msgid "Sun disk labels."
11900 msgstr ""
11901
11902 # type: =head2
11903 #: ../src/guestfs-actions.pod:4684
11904 msgid "guestfs_part_list"
11905 msgstr ""
11906
11907 # type: verbatim
11908 #: ../src/guestfs-actions.pod:4686
11909 #, no-wrap
11910 msgid ""
11911 " struct guestfs_partition_list *\n"
11912 " guestfs_part_list (guestfs_h *g,\n"
11913 "                    const char *device);\n"
11914 "\n"
11915 msgstr ""
11916
11917 # type: textblock
11918 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3155
11919 msgid ""
11920 "This command parses the partition table on C<device> and returns the list of "
11921 "partitions found."
11922 msgstr ""
11923
11924 # type: textblock
11925 #: ../src/guestfs-actions.pod:4693 ../fish/guestfish-actions.pod:3158
11926 msgid "The fields in the returned structure are:"
11927 msgstr ""
11928
11929 # type: =item
11930 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3162
11931 msgid "B<part_num>"
11932 msgstr ""
11933
11934 # type: textblock
11935 #: ../src/guestfs-actions.pod:4699 ../fish/guestfish-actions.pod:3164
11936 msgid "Partition number, counting from 1."
11937 msgstr ""
11938
11939 # type: =item
11940 #: ../src/guestfs-actions.pod:4701 ../fish/guestfish-actions.pod:3166
11941 msgid "B<part_start>"
11942 msgstr ""
11943
11944 # type: textblock
11945 #: ../src/guestfs-actions.pod:4703
11946 msgid ""
11947 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11948 "the device's sector size, see C<guestfs_blockdev_getss>."
11949 msgstr ""
11950
11951 # type: =item
11952 #: ../src/guestfs-actions.pod:4706 ../fish/guestfish-actions.pod:3171
11953 msgid "B<part_end>"
11954 msgstr ""
11955
11956 # type: textblock
11957 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3173
11958 msgid "End of the partition in bytes."
11959 msgstr ""
11960
11961 # type: =item
11962 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3175
11963 msgid "B<part_size>"
11964 msgstr ""
11965
11966 # type: textblock
11967 #: ../src/guestfs-actions.pod:4712 ../fish/guestfish-actions.pod:3177
11968 msgid "Size of the partition in bytes."
11969 msgstr ""
11970
11971 # type: textblock
11972 #: ../src/guestfs-actions.pod:4716
11973 msgid ""
11974 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
11975 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
11976 "use>."
11977 msgstr ""
11978
11979 # type: =head2
11980 #: ../src/guestfs-actions.pod:4722
11981 msgid "guestfs_part_set_bootable"
11982 msgstr ""
11983
11984 # type: verbatim
11985 #: ../src/guestfs-actions.pod:4724
11986 #, no-wrap
11987 msgid ""
11988 " int\n"
11989 " guestfs_part_set_bootable (guestfs_h *g,\n"
11990 "                            const char *device,\n"
11991 "                            int partnum,\n"
11992 "                            int bootable);\n"
11993 "\n"
11994 msgstr ""
11995
11996 # type: textblock
11997 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3185
11998 msgid ""
11999 "This sets the bootable flag on partition numbered C<partnum> on device "
12000 "C<device>.  Note that partitions are numbered from 1."
12001 msgstr ""
12002
12003 # type: textblock
12004 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3188
12005 msgid ""
12006 "The bootable flag is used by some operating systems (notably Windows) to "
12007 "determine which partition to boot from.  It is by no means universally "
12008 "recognized."
12009 msgstr ""
12010
12011 # type: =head2
12012 #: ../src/guestfs-actions.pod:4741
12013 msgid "guestfs_part_set_mbr_id"
12014 msgstr ""
12015
12016 # type: verbatim
12017 #: ../src/guestfs-actions.pod:4743
12018 #, no-wrap
12019 msgid ""
12020 " int\n"
12021 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12022 "                          const char *device,\n"
12023 "                          int partnum,\n"
12024 "                          int idbyte);\n"
12025 "\n"
12026 msgstr ""
12027
12028 # type: textblock
12029 #: ../src/guestfs-actions.pod:4749 ../fish/guestfish-actions.pod:3196
12030 msgid ""
12031 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12032 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12033 "documentation are in fact hexadecimal numbers, but usually documented "
12034 "without any leading \"0x\" which might be confusing."
12035 msgstr ""
12036
12037 # type: =head2
12038 #: ../src/guestfs-actions.pod:4763
12039 msgid "guestfs_part_set_name"
12040 msgstr ""
12041
12042 # type: verbatim
12043 #: ../src/guestfs-actions.pod:4765
12044 #, no-wrap
12045 msgid ""
12046 " int\n"
12047 " guestfs_part_set_name (guestfs_h *g,\n"
12048 "                        const char *device,\n"
12049 "                        int partnum,\n"
12050 "                        const char *name);\n"
12051 "\n"
12052 msgstr ""
12053
12054 # type: textblock
12055 #: ../src/guestfs-actions.pod:4771 ../fish/guestfish-actions.pod:3210
12056 msgid ""
12057 "This sets the partition name on partition numbered C<partnum> on device "
12058 "C<device>.  Note that partitions are numbered from 1."
12059 msgstr ""
12060
12061 # type: textblock
12062 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3213
12063 msgid ""
12064 "The partition name can only be set on certain types of partition table.  "
12065 "This works on C<gpt> but not on C<mbr> partitions."
12066 msgstr ""
12067
12068 # type: =head2
12069 #: ../src/guestfs-actions.pod:4781
12070 msgid "guestfs_part_to_dev"
12071 msgstr ""
12072
12073 # type: verbatim
12074 #: ../src/guestfs-actions.pod:4783
12075 #, no-wrap
12076 msgid ""
12077 " char *\n"
12078 " guestfs_part_to_dev (guestfs_h *g,\n"
12079 "                      const char *partition);\n"
12080 "\n"
12081 msgstr ""
12082
12083 # type: textblock
12084 #: ../src/guestfs-actions.pod:4787 ../fish/guestfish-actions.pod:3220
12085 msgid ""
12086 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12087 "partition number, returning the device name (eg. \"/dev/sdb\")."
12088 msgstr ""
12089
12090 # type: textblock
12091 #: ../src/guestfs-actions.pod:4791
12092 msgid ""
12093 "The named partition must exist, for example as a string returned from "
12094 "C<guestfs_list_partitions>."
12095 msgstr ""
12096
12097 # type: =head2
12098 #: ../src/guestfs-actions.pod:4799
12099 msgid "guestfs_ping_daemon"
12100 msgstr ""
12101
12102 # type: verbatim
12103 #: ../src/guestfs-actions.pod:4801
12104 #, no-wrap
12105 msgid ""
12106 " int\n"
12107 " guestfs_ping_daemon (guestfs_h *g);\n"
12108 "\n"
12109 msgstr ""
12110
12111 # type: textblock
12112 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3231
12113 msgid ""
12114 "This is a test probe into the guestfs daemon running inside the qemu "
12115 "subprocess.  Calling this function checks that the daemon responds to the "
12116 "ping message, without affecting the daemon or attached block device(s) in "
12117 "any other way."
12118 msgstr ""
12119
12120 # type: =head2
12121 #: ../src/guestfs-actions.pod:4813
12122 msgid "guestfs_pread"
12123 msgstr ""
12124
12125 # type: verbatim
12126 #: ../src/guestfs-actions.pod:4815
12127 #, no-wrap
12128 msgid ""
12129 " char *\n"
12130 " guestfs_pread (guestfs_h *g,\n"
12131 "                const char *path,\n"
12132 "                int count,\n"
12133 "                int64_t offset,\n"
12134 "                size_t *size_r);\n"
12135 "\n"
12136 msgstr ""
12137
12138 # type: textblock
12139 #: ../src/guestfs-actions.pod:4822 ../fish/guestfish-actions.pod:3240
12140 msgid ""
12141 "This command lets you read part of a file.  It reads C<count> bytes of the "
12142 "file, starting at C<offset>, from file C<path>."
12143 msgstr ""
12144
12145 # type: textblock
12146 #: ../src/guestfs-actions.pod:4825 ../src/guestfs-actions.pod:4851 ../fish/guestfish-actions.pod:3243 ../fish/guestfish-actions.pod:3258
12147 msgid ""
12148 "This may read fewer bytes than requested.  For further details see the "
12149 "L<pread(2)> system call."
12150 msgstr ""
12151
12152 # type: textblock
12153 #: ../src/guestfs-actions.pod:4828
12154 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12155 msgstr ""
12156
12157 # type: =head2
12158 #: ../src/guestfs-actions.pod:4839
12159 msgid "guestfs_pread_device"
12160 msgstr ""
12161
12162 # type: verbatim
12163 #: ../src/guestfs-actions.pod:4841
12164 #, no-wrap
12165 msgid ""
12166 " char *\n"
12167 " guestfs_pread_device (guestfs_h *g,\n"
12168 "                       const char *device,\n"
12169 "                       int count,\n"
12170 "                       int64_t offset,\n"
12171 "                       size_t *size_r);\n"
12172 "\n"
12173 msgstr ""
12174
12175 # type: textblock
12176 #: ../src/guestfs-actions.pod:4848 ../fish/guestfish-actions.pod:3255
12177 msgid ""
12178 "This command lets you read part of a file.  It reads C<count> bytes of "
12179 "C<device>, starting at C<offset>."
12180 msgstr ""
12181
12182 # type: textblock
12183 #: ../src/guestfs-actions.pod:4854
12184 msgid "See also C<guestfs_pread>."
12185 msgstr ""
12186
12187 # type: textblock
12188 #: ../src/guestfs-actions.pod:4863
12189 msgid "(Added in 1.5.21)"
12190 msgstr ""
12191
12192 # type: =head2
12193 #: ../src/guestfs-actions.pod:4865
12194 msgid "guestfs_pvcreate"
12195 msgstr ""
12196
12197 # type: verbatim
12198 #: ../src/guestfs-actions.pod:4867
12199 #, no-wrap
12200 msgid ""
12201 " int\n"
12202 " guestfs_pvcreate (guestfs_h *g,\n"
12203 "                   const char *device);\n"
12204 "\n"
12205 msgstr ""
12206
12207 # type: textblock
12208 #: ../src/guestfs-actions.pod:4871 ../fish/guestfish-actions.pod:3270
12209 msgid ""
12210 "This creates an LVM physical volume on the named C<device>, where C<device> "
12211 "should usually be a partition name such as C</dev/sda1>."
12212 msgstr ""
12213
12214 # type: =head2
12215 #: ../src/guestfs-actions.pod:4879
12216 msgid "guestfs_pvremove"
12217 msgstr ""
12218
12219 # type: verbatim
12220 #: ../src/guestfs-actions.pod:4881
12221 #, no-wrap
12222 msgid ""
12223 " int\n"
12224 " guestfs_pvremove (guestfs_h *g,\n"
12225 "                   const char *device);\n"
12226 "\n"
12227 msgstr ""
12228
12229 # type: textblock
12230 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3278
12231 msgid ""
12232 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12233 "it."
12234 msgstr ""
12235
12236 # type: textblock
12237 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3281
12238 msgid ""
12239 "The implementation uses the C<pvremove> command which refuses to wipe "
12240 "physical volumes that contain any volume groups, so you have to remove those "
12241 "first."
12242 msgstr ""
12243
12244 # type: =head2
12245 #: ../src/guestfs-actions.pod:4896
12246 msgid "guestfs_pvresize"
12247 msgstr ""
12248
12249 # type: verbatim
12250 #: ../src/guestfs-actions.pod:4898
12251 #, no-wrap
12252 msgid ""
12253 " int\n"
12254 " guestfs_pvresize (guestfs_h *g,\n"
12255 "                   const char *device);\n"
12256 "\n"
12257 msgstr ""
12258
12259 # type: textblock
12260 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3289
12261 msgid ""
12262 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12263 "the new size of the underlying device."
12264 msgstr ""
12265
12266 # type: =head2
12267 #: ../src/guestfs-actions.pod:4909
12268 msgid "guestfs_pvresize_size"
12269 msgstr ""
12270
12271 # type: verbatim
12272 #: ../src/guestfs-actions.pod:4911
12273 #, no-wrap
12274 msgid ""
12275 " int\n"
12276 " guestfs_pvresize_size (guestfs_h *g,\n"
12277 "                        const char *device,\n"
12278 "                        int64_t size);\n"
12279 "\n"
12280 msgstr ""
12281
12282 # type: textblock
12283 #: ../src/guestfs-actions.pod:4916
12284 msgid ""
12285 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12286 "specify the new size (in bytes) explicitly."
12287 msgstr ""
12288
12289 # type: =head2
12290 #: ../src/guestfs-actions.pod:4923
12291 msgid "guestfs_pvs"
12292 msgstr ""
12293
12294 # type: verbatim
12295 #: ../src/guestfs-actions.pod:4925
12296 #, no-wrap
12297 msgid ""
12298 " char **\n"
12299 " guestfs_pvs (guestfs_h *g);\n"
12300 "\n"
12301 msgstr ""
12302
12303 # type: textblock
12304 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3303
12305 msgid ""
12306 "List all the physical volumes detected.  This is the equivalent of the "
12307 "L<pvs(8)> command."
12308 msgstr ""
12309
12310 # type: textblock
12311 #: ../src/guestfs-actions.pod:4931 ../fish/guestfish-actions.pod:3306
12312 msgid ""
12313 "This returns a list of just the device names that contain PVs "
12314 "(eg. C</dev/sda2>)."
12315 msgstr ""
12316
12317 # type: textblock
12318 #: ../src/guestfs-actions.pod:4934
12319 msgid "See also C<guestfs_pvs_full>."
12320 msgstr ""
12321
12322 # type: =head2
12323 #: ../src/guestfs-actions.pod:4942
12324 msgid "guestfs_pvs_full"
12325 msgstr ""
12326
12327 # type: verbatim
12328 #: ../src/guestfs-actions.pod:4944
12329 #, no-wrap
12330 msgid ""
12331 " struct guestfs_lvm_pv_list *\n"
12332 " guestfs_pvs_full (guestfs_h *g);\n"
12333 "\n"
12334 msgstr ""
12335
12336 # type: textblock
12337 #: ../src/guestfs-actions.pod:4947 ../fish/guestfish-actions.pod:3315
12338 msgid ""
12339 "List all the physical volumes detected.  This is the equivalent of the "
12340 "L<pvs(8)> command.  The \"full\" version includes all fields."
12341 msgstr ""
12342
12343 # type: textblock
12344 #: ../src/guestfs-actions.pod:4950
12345 msgid ""
12346 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12347 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
12348 "use>."
12349 msgstr ""
12350
12351 # type: =head2
12352 #: ../src/guestfs-actions.pod:4956
12353 msgid "guestfs_pvuuid"
12354 msgstr ""
12355
12356 # type: verbatim
12357 #: ../src/guestfs-actions.pod:4958
12358 #, no-wrap
12359 msgid ""
12360 " char *\n"
12361 " guestfs_pvuuid (guestfs_h *g,\n"
12362 "                 const char *device);\n"
12363 "\n"
12364 msgstr ""
12365
12366 # type: textblock
12367 #: ../src/guestfs-actions.pod:4962 ../fish/guestfish-actions.pod:3322
12368 msgid "This command returns the UUID of the LVM PV C<device>."
12369 msgstr ""
12370
12371 # type: =head2
12372 #: ../src/guestfs-actions.pod:4969
12373 msgid "guestfs_pwrite"
12374 msgstr ""
12375
12376 # type: verbatim
12377 #: ../src/guestfs-actions.pod:4971
12378 #, no-wrap
12379 msgid ""
12380 " int\n"
12381 " guestfs_pwrite (guestfs_h *g,\n"
12382 "                 const char *path,\n"
12383 "                 const char *content,\n"
12384 "                 size_t content_size,\n"
12385 "                 int64_t offset);\n"
12386 "\n"
12387 msgstr ""
12388
12389 # type: textblock
12390 #: ../src/guestfs-actions.pod:4978 ../fish/guestfish-actions.pod:3328
12391 msgid ""
12392 "This command writes to part of a file.  It writes the data buffer C<content> "
12393 "to the file C<path> starting at offset C<offset>."
12394 msgstr ""
12395
12396 # type: textblock
12397 #: ../src/guestfs-actions.pod:4981 ../fish/guestfish-actions.pod:3331
12398 msgid ""
12399 "This command implements the L<pwrite(2)> system call, and like that system "
12400 "call it may not write the full data requested.  The return value is the "
12401 "number of bytes that were actually written to the file.  This could even be "
12402 "0, although short writes are unlikely for regular files in ordinary "
12403 "circumstances."
12404 msgstr ""
12405
12406 # type: textblock
12407 #: ../src/guestfs-actions.pod:4987
12408 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12409 msgstr ""
12410
12411 # type: =head2
12412 #: ../src/guestfs-actions.pod:4996
12413 msgid "guestfs_pwrite_device"
12414 msgstr ""
12415
12416 # type: verbatim
12417 #: ../src/guestfs-actions.pod:4998
12418 #, no-wrap
12419 msgid ""
12420 " int\n"
12421 " guestfs_pwrite_device (guestfs_h *g,\n"
12422 "                        const char *device,\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:5005 ../fish/guestfish-actions.pod:3346
12431 msgid ""
12432 "This command writes to part of a device.  It writes the data buffer "
12433 "C<content> to C<device> starting at offset C<offset>."
12434 msgstr ""
12435
12436 # type: textblock
12437 #: ../src/guestfs-actions.pod:5008 ../fish/guestfish-actions.pod:3349
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 (although short writes to disk "
12441 "devices and partitions are probably impossible with standard Linux kernels)."
12442 msgstr ""
12443
12444 # type: textblock
12445 #: ../src/guestfs-actions.pod:5013
12446 msgid "See also C<guestfs_pwrite>."
12447 msgstr ""
12448
12449 # type: textblock
12450 #: ../src/guestfs-actions.pod:5020
12451 msgid "(Added in 1.5.20)"
12452 msgstr ""
12453
12454 # type: =head2
12455 #: ../src/guestfs-actions.pod:5022
12456 msgid "guestfs_read_file"
12457 msgstr ""
12458
12459 # type: verbatim
12460 #: ../src/guestfs-actions.pod:5024
12461 #, no-wrap
12462 msgid ""
12463 " char *\n"
12464 " guestfs_read_file (guestfs_h *g,\n"
12465 "                    const char *path,\n"
12466 "                    size_t *size_r);\n"
12467 "\n"
12468 msgstr ""
12469
12470 # type: textblock
12471 #: ../src/guestfs-actions.pod:5029 ../fish/guestfish-actions.pod:3363
12472 msgid "This calls returns the contents of the file C<path> as a buffer."
12473 msgstr ""
12474
12475 # type: textblock
12476 #: ../src/guestfs-actions.pod:5032
12477 msgid ""
12478 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12479 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12480 "function is limited in the total size of file that can be handled."
12481 msgstr ""
12482
12483 # type: textblock
12484 #: ../src/guestfs-actions.pod:5044
12485 msgid "(Added in 1.0.63)"
12486 msgstr ""
12487
12488 # type: =head2
12489 #: ../src/guestfs-actions.pod:5046
12490 msgid "guestfs_read_lines"
12491 msgstr ""
12492
12493 # type: verbatim
12494 #: ../src/guestfs-actions.pod:5048
12495 #, no-wrap
12496 msgid ""
12497 " char **\n"
12498 " guestfs_read_lines (guestfs_h *g,\n"
12499 "                     const char *path);\n"
12500 "\n"
12501 msgstr ""
12502
12503 # type: textblock
12504 #: ../src/guestfs-actions.pod:5054 ../fish/guestfish-actions.pod:3380
12505 msgid ""
12506 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12507 "C<CRLF> character sequences are I<not> returned."
12508 msgstr ""
12509
12510 # type: textblock
12511 #: ../src/guestfs-actions.pod:5057
12512 msgid ""
12513 "Note that this function cannot correctly handle binary files (specifically, "
12514 "files containing C<\\0> character which is treated as end of line).  For "
12515 "those you need to use the C<guestfs_read_file> function which has a more "
12516 "complex interface."
12517 msgstr ""
12518
12519 # type: =head2
12520 #: ../src/guestfs-actions.pod:5068
12521 msgid "guestfs_readdir"
12522 msgstr ""
12523
12524 # type: verbatim
12525 #: ../src/guestfs-actions.pod:5070
12526 #, no-wrap
12527 msgid ""
12528 " struct guestfs_dirent_list *\n"
12529 " guestfs_readdir (guestfs_h *g,\n"
12530 "                  const char *dir);\n"
12531 "\n"
12532 msgstr ""
12533
12534 # type: textblock
12535 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3392
12536 msgid "This returns the list of directory entries in directory C<dir>."
12537 msgstr ""
12538
12539 # type: textblock
12540 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3394
12541 msgid ""
12542 "All entries in the directory are returned, including C<.> and C<..>.  The "
12543 "entries are I<not> sorted, but returned in the same order as the underlying "
12544 "filesystem."
12545 msgstr ""
12546
12547 # type: textblock
12548 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3398
12549 msgid ""
12550 "Also this call returns basic file type information about each file.  The "
12551 "C<ftyp> field will contain one of the following characters:"
12552 msgstr ""
12553
12554 # type: =item
12555 #: ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3403
12556 msgid "'b'"
12557 msgstr ""
12558
12559 # type: textblock
12560 #: ../src/guestfs-actions.pod:5087 ../fish/guestfish-actions.pod:3405
12561 msgid "Block special"
12562 msgstr ""
12563
12564 # type: =item
12565 #: ../src/guestfs-actions.pod:5089 ../fish/guestfish-actions.pod:3407
12566 msgid "'c'"
12567 msgstr ""
12568
12569 # type: textblock
12570 #: ../src/guestfs-actions.pod:5091 ../fish/guestfish-actions.pod:3409
12571 msgid "Char special"
12572 msgstr ""
12573
12574 # type: =item
12575 #: ../src/guestfs-actions.pod:5093 ../fish/guestfish-actions.pod:3411
12576 msgid "'d'"
12577 msgstr ""
12578
12579 # type: textblock
12580 #: ../src/guestfs-actions.pod:5095 ../fish/guestfish-actions.pod:3413
12581 msgid "Directory"
12582 msgstr ""
12583
12584 # type: =item
12585 #: ../src/guestfs-actions.pod:5097 ../fish/guestfish-actions.pod:3415
12586 msgid "'f'"
12587 msgstr ""
12588
12589 # type: textblock
12590 #: ../src/guestfs-actions.pod:5099 ../fish/guestfish-actions.pod:3417
12591 msgid "FIFO (named pipe)"
12592 msgstr ""
12593
12594 # type: =item
12595 #: ../src/guestfs-actions.pod:5101 ../fish/guestfish-actions.pod:3419
12596 msgid "'l'"
12597 msgstr ""
12598
12599 # type: textblock
12600 #: ../src/guestfs-actions.pod:5103 ../fish/guestfish-actions.pod:3421
12601 msgid "Symbolic link"
12602 msgstr ""
12603
12604 # type: =item
12605 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3423
12606 msgid "'r'"
12607 msgstr ""
12608
12609 # type: textblock
12610 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3425
12611 msgid "Regular file"
12612 msgstr ""
12613
12614 # type: =item
12615 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3427
12616 msgid "'s'"
12617 msgstr ""
12618
12619 # type: textblock
12620 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3429
12621 msgid "Socket"
12622 msgstr ""
12623
12624 # type: =item
12625 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3431
12626 msgid "'u'"
12627 msgstr ""
12628
12629 # type: textblock
12630 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3433
12631 msgid "Unknown file type"
12632 msgstr ""
12633
12634 # type: =item
12635 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3435
12636 msgid "'?'"
12637 msgstr ""
12638
12639 # type: textblock
12640 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3437
12641 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12642 msgstr ""
12643
12644 # type: textblock
12645 #: ../src/guestfs-actions.pod:5124
12646 msgid ""
12647 "This function is primarily intended for use by programs.  To get a simple "
12648 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12649 "consumption, use C<guestfs_ll>."
12650 msgstr ""
12651
12652 # type: textblock
12653 #: ../src/guestfs-actions.pod:5128
12654 msgid ""
12655 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12656 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
12657 "use>."
12658 msgstr ""
12659
12660 # type: =head2
12661 #: ../src/guestfs-actions.pod:5134
12662 msgid "guestfs_readlink"
12663 msgstr ""
12664
12665 # type: verbatim
12666 #: ../src/guestfs-actions.pod:5136
12667 #, no-wrap
12668 msgid ""
12669 " char *\n"
12670 " guestfs_readlink (guestfs_h *g,\n"
12671 "                   const char *path);\n"
12672 "\n"
12673 msgstr ""
12674
12675 # type: textblock
12676 #: ../src/guestfs-actions.pod:5140 ../fish/guestfish-actions.pod:3450
12677 msgid "This command reads the target of a symbolic link."
12678 msgstr ""
12679
12680 # type: =head2
12681 #: ../src/guestfs-actions.pod:5147
12682 msgid "guestfs_readlinklist"
12683 msgstr ""
12684
12685 # type: verbatim
12686 #: ../src/guestfs-actions.pod:5149
12687 #, no-wrap
12688 msgid ""
12689 " char **\n"
12690 " guestfs_readlinklist (guestfs_h *g,\n"
12691 "                       const char *path,\n"
12692 "                       char *const *names);\n"
12693 "\n"
12694 msgstr ""
12695
12696 # type: textblock
12697 #: ../src/guestfs-actions.pod:5154 ../fish/guestfish-actions.pod:3456
12698 msgid ""
12699 "This call allows you to do a C<readlink> operation on multiple files, where "
12700 "all files are in the directory C<path>.  C<names> is the list of files from "
12701 "this directory."
12702 msgstr ""
12703
12704 # type: textblock
12705 #: ../src/guestfs-actions.pod:5158 ../fish/guestfish-actions.pod:3460
12706 msgid ""
12707 "On return you get a list of strings, with a one-to-one correspondence to the "
12708 "C<names> list.  Each string is the value of the symbolic link."
12709 msgstr ""
12710
12711 # type: textblock
12712 #: ../src/guestfs-actions.pod:5162 ../fish/guestfish-actions.pod:3464
12713 msgid ""
12714 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12715 "result string is the empty string C<\"\">.  However the whole operation is "
12716 "completed even if there were C<readlink(2)> errors, and so you can call this "
12717 "function with names where you don't know if they are symbolic links already "
12718 "(albeit slightly less efficient)."
12719 msgstr ""
12720
12721 # type: textblock
12722 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:3471
12723 msgid ""
12724 "This call is intended for programs that want to efficiently list a directory "
12725 "contents without making many round-trips.  Very long directory listings "
12726 "might cause the protocol message size to be exceeded, causing this call to "
12727 "fail.  The caller must split up such requests into smaller groups of names."
12728 msgstr ""
12729
12730 # type: =head2
12731 #: ../src/guestfs-actions.pod:5182
12732 msgid "guestfs_realpath"
12733 msgstr ""
12734
12735 # type: verbatim
12736 #: ../src/guestfs-actions.pod:5184
12737 #, no-wrap
12738 msgid ""
12739 " char *\n"
12740 " guestfs_realpath (guestfs_h *g,\n"
12741 "                   const char *path);\n"
12742 "\n"
12743 msgstr ""
12744
12745 # type: textblock
12746 #: ../src/guestfs-actions.pod:5188 ../fish/guestfish-actions.pod:3482
12747 msgid ""
12748 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12749 "has no C<.>, C<..> or symbolic link path elements."
12750 msgstr ""
12751
12752 # type: =head2
12753 #: ../src/guestfs-actions.pod:5196
12754 msgid "guestfs_removexattr"
12755 msgstr ""
12756
12757 # type: verbatim
12758 #: ../src/guestfs-actions.pod:5198
12759 #, no-wrap
12760 msgid ""
12761 " int\n"
12762 " guestfs_removexattr (guestfs_h *g,\n"
12763 "                      const char *xattr,\n"
12764 "                      const char *path);\n"
12765 "\n"
12766 msgstr ""
12767
12768 # type: textblock
12769 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:3489
12770 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12771 msgstr ""
12772
12773 # type: textblock
12774 #: ../src/guestfs-actions.pod:5206
12775 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12776 msgstr ""
12777
12778 # type: =head2
12779 #: ../src/guestfs-actions.pod:5212
12780 msgid "guestfs_resize2fs"
12781 msgstr ""
12782
12783 # type: verbatim
12784 #: ../src/guestfs-actions.pod:5214
12785 #, no-wrap
12786 msgid ""
12787 " int\n"
12788 " guestfs_resize2fs (guestfs_h *g,\n"
12789 "                    const char *device);\n"
12790 "\n"
12791 msgstr ""
12792
12793 # type: textblock
12794 #: ../src/guestfs-actions.pod:5218 ../fish/guestfish-actions.pod:3498
12795 msgid ""
12796 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12797 "underlying device."
12798 msgstr ""
12799
12800 # type: textblock
12801 #: ../src/guestfs-actions.pod:5221
12802 msgid ""
12803 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12804 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12805 "sometimes gives an error about this and sometimes not.  In any case, it is "
12806 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12807 msgstr ""
12808
12809 # type: =head2
12810 #: ../src/guestfs-actions.pod:5231
12811 msgid "guestfs_resize2fs_size"
12812 msgstr ""
12813
12814 # type: verbatim
12815 #: ../src/guestfs-actions.pod:5233
12816 #, no-wrap
12817 msgid ""
12818 " int\n"
12819 " guestfs_resize2fs_size (guestfs_h *g,\n"
12820 "                         const char *device,\n"
12821 "                         int64_t size);\n"
12822 "\n"
12823 msgstr ""
12824
12825 # type: textblock
12826 #: ../src/guestfs-actions.pod:5238
12827 msgid ""
12828 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12829 "to specify the new size (in bytes) explicitly."
12830 msgstr ""
12831
12832 # type: =head2
12833 #: ../src/guestfs-actions.pod:5245
12834 msgid "guestfs_rm"
12835 msgstr ""
12836
12837 # type: verbatim
12838 #: ../src/guestfs-actions.pod:5247
12839 #, no-wrap
12840 msgid ""
12841 " int\n"
12842 " guestfs_rm (guestfs_h *g,\n"
12843 "             const char *path);\n"
12844 "\n"
12845 msgstr ""
12846
12847 # type: textblock
12848 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:3518
12849 msgid "Remove the single file C<path>."
12850 msgstr ""
12851
12852 # type: =head2
12853 #: ../src/guestfs-actions.pod:5257
12854 msgid "guestfs_rm_rf"
12855 msgstr ""
12856
12857 # type: verbatim
12858 #: ../src/guestfs-actions.pod:5259
12859 #, no-wrap
12860 msgid ""
12861 " int\n"
12862 " guestfs_rm_rf (guestfs_h *g,\n"
12863 "                const char *path);\n"
12864 "\n"
12865 msgstr ""
12866
12867 # type: textblock
12868 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3524
12869 msgid ""
12870 "Remove the file or directory C<path>, recursively removing the contents if "
12871 "its a directory.  This is like the C<rm -rf> shell command."
12872 msgstr ""
12873
12874 # type: =head2
12875 #: ../src/guestfs-actions.pod:5271
12876 msgid "guestfs_rmdir"
12877 msgstr ""
12878
12879 # type: verbatim
12880 #: ../src/guestfs-actions.pod:5273
12881 #, no-wrap
12882 msgid ""
12883 " int\n"
12884 " guestfs_rmdir (guestfs_h *g,\n"
12885 "                const char *path);\n"
12886 "\n"
12887 msgstr ""
12888
12889 # type: textblock
12890 #: ../src/guestfs-actions.pod:5277 ../fish/guestfish-actions.pod:3532
12891 msgid "Remove the single directory C<path>."
12892 msgstr ""
12893
12894 # type: =head2
12895 #: ../src/guestfs-actions.pod:5283
12896 msgid "guestfs_rmmountpoint"
12897 msgstr ""
12898
12899 # type: verbatim
12900 #: ../src/guestfs-actions.pod:5285
12901 #, no-wrap
12902 msgid ""
12903 " int\n"
12904 " guestfs_rmmountpoint (guestfs_h *g,\n"
12905 "                       const char *exemptpath);\n"
12906 "\n"
12907 msgstr ""
12908
12909 # type: textblock
12910 #: ../src/guestfs-actions.pod:5289
12911 msgid ""
12912 "This calls removes a mountpoint that was previously created with "
12913 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12914 msgstr ""
12915
12916 # type: =head2
12917 #: ../src/guestfs-actions.pod:5297
12918 msgid "guestfs_scrub_device"
12919 msgstr ""
12920
12921 # type: verbatim
12922 #: ../src/guestfs-actions.pod:5299
12923 #, no-wrap
12924 msgid ""
12925 " int\n"
12926 " guestfs_scrub_device (guestfs_h *g,\n"
12927 "                       const char *device);\n"
12928 "\n"
12929 msgstr ""
12930
12931 # type: textblock
12932 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:3546
12933 msgid ""
12934 "This command writes patterns over C<device> to make data retrieval more "
12935 "difficult."
12936 msgstr ""
12937
12938 # type: textblock
12939 #: ../src/guestfs-actions.pod:5306 ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5346 ../fish/guestfish-actions.pod:3549 ../fish/guestfish-actions.pod:3564 ../fish/guestfish-actions.pod:3577
12940 msgid ""
12941 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12942 "more details."
12943 msgstr ""
12944
12945 # type: textblock
12946 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5332 ../src/guestfs-actions.pod:5351
12947 msgid "(Added in 1.0.52)"
12948 msgstr ""
12949
12950 # type: =head2
12951 #: ../src/guestfs-actions.pod:5316
12952 msgid "guestfs_scrub_file"
12953 msgstr ""
12954
12955 # type: verbatim
12956 #: ../src/guestfs-actions.pod:5318
12957 #, no-wrap
12958 msgid ""
12959 " int\n"
12960 " guestfs_scrub_file (guestfs_h *g,\n"
12961 "                     const char *file);\n"
12962 "\n"
12963 msgstr ""
12964
12965 # type: textblock
12966 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:3559
12967 msgid ""
12968 "This command writes patterns over a file to make data retrieval more "
12969 "difficult."
12970 msgstr ""
12971
12972 # type: textblock
12973 #: ../src/guestfs-actions.pod:5325 ../fish/guestfish-actions.pod:3562
12974 msgid "The file is I<removed> after scrubbing."
12975 msgstr ""
12976
12977 # type: =head2
12978 #: ../src/guestfs-actions.pod:5334
12979 msgid "guestfs_scrub_freespace"
12980 msgstr ""
12981
12982 # type: verbatim
12983 #: ../src/guestfs-actions.pod:5336
12984 #, no-wrap
12985 msgid ""
12986 " int\n"
12987 " guestfs_scrub_freespace (guestfs_h *g,\n"
12988 "                          const char *dir);\n"
12989 "\n"
12990 msgstr ""
12991
12992 # type: textblock
12993 #: ../src/guestfs-actions.pod:5340
12994 msgid ""
12995 "This command creates the directory C<dir> and then fills it with files until "
12996 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12997 "and deletes them.  The intention is to scrub any free space on the partition "
12998 "containing C<dir>."
12999 msgstr ""
13000
13001 # type: =head2
13002 #: ../src/guestfs-actions.pod:5353
13003 msgid "guestfs_set_append"
13004 msgstr ""
13005
13006 # type: verbatim
13007 #: ../src/guestfs-actions.pod:5355
13008 #, no-wrap
13009 msgid ""
13010 " int\n"
13011 " guestfs_set_append (guestfs_h *g,\n"
13012 "                     const char *append);\n"
13013 "\n"
13014 msgstr ""
13015
13016 # type: textblock
13017 #: ../src/guestfs-actions.pod:5359 ../fish/guestfish-actions.pod:3586
13018 msgid ""
13019 "This function is used to add additional options to the guest kernel command "
13020 "line."
13021 msgstr ""
13022
13023 # type: textblock
13024 #: ../src/guestfs-actions.pod:5362 ../fish/guestfish-actions.pod:3589
13025 msgid ""
13026 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13027 "environment variable."
13028 msgstr ""
13029
13030 # type: textblock
13031 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:3592
13032 msgid ""
13033 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13034 "(libguestfs always adds a few of its own)."
13035 msgstr ""
13036
13037 # type: =head2
13038 #: ../src/guestfs-actions.pod:5372
13039 msgid "guestfs_set_autosync"
13040 msgstr ""
13041
13042 # type: verbatim
13043 #: ../src/guestfs-actions.pod:5374
13044 #, no-wrap
13045 msgid ""
13046 " int\n"
13047 " guestfs_set_autosync (guestfs_h *g,\n"
13048 "                       int autosync);\n"
13049 "\n"
13050 msgstr ""
13051
13052 # type: textblock
13053 #: ../src/guestfs-actions.pod:5378
13054 msgid ""
13055 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13056 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13057 "the handle is closed (also if the program exits without closing handles)."
13058 msgstr ""
13059
13060 # type: textblock
13061 #: ../src/guestfs-actions.pod:5383 ../fish/guestfish-actions.pod:3606
13062 msgid ""
13063 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13064 "disabled by default)."
13065 msgstr ""
13066
13067 # type: =head2
13068 #: ../src/guestfs-actions.pod:5390
13069 msgid "guestfs_set_direct"
13070 msgstr ""
13071
13072 # type: verbatim
13073 #: ../src/guestfs-actions.pod:5392
13074 #, no-wrap
13075 msgid ""
13076 " int\n"
13077 " guestfs_set_direct (guestfs_h *g,\n"
13078 "                     int direct);\n"
13079 "\n"
13080 msgstr ""
13081
13082 # type: textblock
13083 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:3615
13084 msgid ""
13085 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13086 "passed directly through to the appliance once it is launched."
13087 msgstr ""
13088
13089 # type: textblock
13090 #: ../src/guestfs-actions.pod:5400
13091 msgid ""
13092 "One consequence of this is that log messages aren't caught by the library "
13093 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13094 "stdout."
13095 msgstr ""
13096
13097 # type: textblock
13098 #: ../src/guestfs-actions.pod:5404 ../fish/guestfish-actions.pod:3623
13099 msgid "You probably don't want to use this unless you know what you are doing."
13100 msgstr ""
13101
13102 # type: textblock
13103 #: ../src/guestfs-actions.pod:5407 ../fish/guestfish-actions.pod:3626
13104 msgid "The default is disabled."
13105 msgstr ""
13106
13107 # type: =head2
13108 #: ../src/guestfs-actions.pod:5413
13109 msgid "guestfs_set_e2label"
13110 msgstr ""
13111
13112 # type: verbatim
13113 #: ../src/guestfs-actions.pod:5415
13114 #, no-wrap
13115 msgid ""
13116 " int\n"
13117 " guestfs_set_e2label (guestfs_h *g,\n"
13118 "                      const char *device,\n"
13119 "                      const char *label);\n"
13120 "\n"
13121 msgstr ""
13122
13123 # type: textblock
13124 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3632
13125 msgid ""
13126 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13127 "C<label>.  Filesystem labels are limited to 16 characters."
13128 msgstr ""
13129
13130 # type: textblock
13131 #: ../src/guestfs-actions.pod:5424
13132 msgid ""
13133 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13134 "the existing label on a filesystem."
13135 msgstr ""
13136
13137 # type: =head2
13138 #: ../src/guestfs-actions.pod:5431
13139 msgid "guestfs_set_e2uuid"
13140 msgstr ""
13141
13142 # type: verbatim
13143 #: ../src/guestfs-actions.pod:5433
13144 #, no-wrap
13145 msgid ""
13146 " int\n"
13147 " guestfs_set_e2uuid (guestfs_h *g,\n"
13148 "                     const char *device,\n"
13149 "                     const char *uuid);\n"
13150 "\n"
13151 msgstr ""
13152
13153 # type: textblock
13154 #: ../src/guestfs-actions.pod:5438 ../fish/guestfish-actions.pod:3643
13155 msgid ""
13156 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13157 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13158 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13159 msgstr ""
13160
13161 # type: textblock
13162 #: ../src/guestfs-actions.pod:5443
13163 msgid ""
13164 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13165 "the existing UUID of a filesystem."
13166 msgstr ""
13167
13168 # type: =head2
13169 #: ../src/guestfs-actions.pod:5450
13170 msgid "guestfs_set_memsize"
13171 msgstr ""
13172
13173 # type: verbatim
13174 #: ../src/guestfs-actions.pod:5452
13175 #, no-wrap
13176 msgid ""
13177 " int\n"
13178 " guestfs_set_memsize (guestfs_h *g,\n"
13179 "                      int memsize);\n"
13180 "\n"
13181 msgstr ""
13182
13183 # type: textblock
13184 #: ../src/guestfs-actions.pod:5456
13185 msgid ""
13186 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13187 "This only has any effect if called before C<guestfs_launch>."
13188 msgstr ""
13189
13190 # type: textblock
13191 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:3661
13192 msgid ""
13193 "You can also change this by setting the environment variable "
13194 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13195 msgstr ""
13196
13197 # type: =head2
13198 #: ../src/guestfs-actions.pod:5471
13199 msgid "guestfs_set_network"
13200 msgstr ""
13201
13202 # type: verbatim
13203 #: ../src/guestfs-actions.pod:5473
13204 #, no-wrap
13205 msgid ""
13206 " int\n"
13207 " guestfs_set_network (guestfs_h *g,\n"
13208 "                      int network);\n"
13209 "\n"
13210 msgstr ""
13211
13212 # type: textblock
13213 #: ../src/guestfs-actions.pod:5477 ../fish/guestfish-actions.pod:3674
13214 msgid ""
13215 "If C<network> is true, then the network is enabled in the libguestfs "
13216 "appliance.  The default is false."
13217 msgstr ""
13218
13219 # type: textblock
13220 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3677
13221 msgid ""
13222 "This affects whether commands are able to access the network (see "
13223 "L<guestfs(3)/RUNNING COMMANDS>)."
13224 msgstr ""
13225
13226 # type: textblock
13227 #: ../src/guestfs-actions.pod:5483
13228 msgid ""
13229 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13230 "effect."
13231 msgstr ""
13232
13233 # type: =head2
13234 #: ../src/guestfs-actions.pod:5490
13235 msgid "guestfs_set_path"
13236 msgstr ""
13237
13238 # type: verbatim
13239 #: ../src/guestfs-actions.pod:5492
13240 #, no-wrap
13241 msgid ""
13242 " int\n"
13243 " guestfs_set_path (guestfs_h *g,\n"
13244 "                   const char *searchpath);\n"
13245 "\n"
13246 msgstr ""
13247
13248 # type: textblock
13249 #: ../src/guestfs-actions.pod:5496 ../fish/guestfish-actions.pod:3689
13250 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13251 msgstr ""
13252
13253 # type: textblock
13254 #: ../src/guestfs-actions.pod:5498 ../fish/guestfish-actions.pod:3691
13255 msgid ""
13256 "The default is C<$libdir/guestfs> unless overridden by setting "
13257 "C<LIBGUESTFS_PATH> environment variable."
13258 msgstr ""
13259
13260 # type: textblock
13261 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:3694
13262 msgid "Setting C<path> to C<NULL> restores the default path."
13263 msgstr ""
13264
13265 # type: =head2
13266 #: ../src/guestfs-actions.pod:5507
13267 msgid "guestfs_set_qemu"
13268 msgstr ""
13269
13270 # type: verbatim
13271 #: ../src/guestfs-actions.pod:5509
13272 #, no-wrap
13273 msgid ""
13274 " int\n"
13275 " guestfs_set_qemu (guestfs_h *g,\n"
13276 "                   const char *qemu);\n"
13277 "\n"
13278 msgstr ""
13279
13280 # type: textblock
13281 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3702
13282 msgid "Set the qemu binary that we will use."
13283 msgstr ""
13284
13285 # type: textblock
13286 #: ../src/guestfs-actions.pod:5515 ../fish/guestfish-actions.pod:3704
13287 msgid "The default is chosen when the library was compiled by the configure script."
13288 msgstr ""
13289
13290 # type: textblock
13291 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3707
13292 msgid ""
13293 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13294 "variable."
13295 msgstr ""
13296
13297 # type: textblock
13298 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3710
13299 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13300 msgstr ""
13301
13302 # type: textblock
13303 #: ../src/guestfs-actions.pod:5523 ../fish/guestfish-actions.pod:3712
13304 msgid ""
13305 "Note that you should call this function as early as possible after creating "
13306 "the handle.  This is because some pre-launch operations depend on testing "
13307 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13308 "don't retest features, and so you might see inconsistent results.  Using the "
13309 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13310 "the qemu binary at the same time as the handle is created."
13311 msgstr ""
13312
13313 # type: =head2
13314 #: ../src/guestfs-actions.pod:5535
13315 msgid "guestfs_set_recovery_proc"
13316 msgstr ""
13317
13318 # type: verbatim
13319 #: ../src/guestfs-actions.pod:5537
13320 #, no-wrap
13321 msgid ""
13322 " int\n"
13323 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13324 "                            int recoveryproc);\n"
13325 "\n"
13326 msgstr ""
13327
13328 # type: textblock
13329 #: ../src/guestfs-actions.pod:5541
13330 msgid ""
13331 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13332 "not create a recovery process.  The purpose of the recovery process is to "
13333 "stop runaway qemu processes in the case where the main program aborts "
13334 "abruptly."
13335 msgstr ""
13336
13337 # type: textblock
13338 #: ../src/guestfs-actions.pod:5546
13339 msgid ""
13340 "This only has any effect if called before C<guestfs_launch>, and the default "
13341 "is true."
13342 msgstr ""
13343
13344 # type: textblock
13345 #: ../src/guestfs-actions.pod:5549 ../fish/guestfish-actions.pod:3734
13346 msgid ""
13347 "About the only time when you would want to disable this is if the main "
13348 "process will fork itself into the background (\"daemonize\" itself).  In "
13349 "this case the recovery process thinks that the main program has disappeared "
13350 "and so kills qemu, which is not very helpful."
13351 msgstr ""
13352
13353 # type: =head2
13354 #: ../src/guestfs-actions.pod:5559
13355 msgid "guestfs_set_selinux"
13356 msgstr ""
13357
13358 # type: verbatim
13359 #: ../src/guestfs-actions.pod:5561
13360 #, no-wrap
13361 msgid ""
13362 " int\n"
13363 " guestfs_set_selinux (guestfs_h *g,\n"
13364 "                      int selinux);\n"
13365 "\n"
13366 msgstr ""
13367
13368 # type: textblock
13369 #: ../src/guestfs-actions.pod:5565 ../fish/guestfish-actions.pod:3746
13370 msgid ""
13371 "This sets the selinux flag that is passed to the appliance at boot time.  "
13372 "The default is C<selinux=0> (disabled)."
13373 msgstr ""
13374
13375 # type: textblock
13376 #: ../src/guestfs-actions.pod:5568 ../fish/guestfish-actions.pod:3749
13377 msgid ""
13378 "Note that if SELinux is enabled, it is always in Permissive mode "
13379 "(C<enforcing=0>)."
13380 msgstr ""
13381
13382 # type: =head2
13383 #: ../src/guestfs-actions.pod:5578
13384 msgid "guestfs_set_trace"
13385 msgstr ""
13386
13387 # type: verbatim
13388 #: ../src/guestfs-actions.pod:5580
13389 #, no-wrap
13390 msgid ""
13391 " int\n"
13392 " guestfs_set_trace (guestfs_h *g,\n"
13393 "                    int trace);\n"
13394 "\n"
13395 msgstr ""
13396
13397 # type: textblock
13398 #: ../src/guestfs-actions.pod:5584 ../fish/guestfish-actions.pod:3761
13399 msgid ""
13400 "If the command trace flag is set to 1, then commands are printed on stderr "
13401 "before they are executed in a format which is very similar to the one used "
13402 "by guestfish.  In other words, you can run a program with this enabled, and "
13403 "you will get out a script which you can feed to guestfish to perform the "
13404 "same set of actions."
13405 msgstr ""
13406
13407 # type: textblock
13408 #: ../src/guestfs-actions.pod:5591 ../fish/guestfish-actions.pod:3768
13409 msgid ""
13410 "If you want to trace C API calls into libguestfs (and other libraries) then "
13411 "possibly a better way is to use the external ltrace(1) command."
13412 msgstr ""
13413
13414 # type: textblock
13415 #: ../src/guestfs-actions.pod:5595 ../fish/guestfish-actions.pod:3772
13416 msgid ""
13417 "Command traces are disabled unless the environment variable "
13418 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13419 msgstr ""
13420
13421 # type: =head2
13422 #: ../src/guestfs-actions.pod:5602
13423 msgid "guestfs_set_verbose"
13424 msgstr ""
13425
13426 # type: verbatim
13427 #: ../src/guestfs-actions.pod:5604
13428 #, no-wrap
13429 msgid ""
13430 " int\n"
13431 " guestfs_set_verbose (guestfs_h *g,\n"
13432 "                      int verbose);\n"
13433 "\n"
13434 msgstr ""
13435
13436 # type: textblock
13437 #: ../src/guestfs-actions.pod:5608 ../fish/guestfish-actions.pod:3781
13438 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13439 msgstr ""
13440
13441 # type: textblock
13442 #: ../src/guestfs-actions.pod:5610 ../fish/guestfish-actions.pod:3783
13443 msgid ""
13444 "Verbose messages are disabled unless the environment variable "
13445 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13446 msgstr ""
13447
13448 # type: =head2
13449 #: ../src/guestfs-actions.pod:5617
13450 msgid "guestfs_setcon"
13451 msgstr ""
13452
13453 # type: verbatim
13454 #: ../src/guestfs-actions.pod:5619
13455 #, no-wrap
13456 msgid ""
13457 " int\n"
13458 " guestfs_setcon (guestfs_h *g,\n"
13459 "                 const char *context);\n"
13460 "\n"
13461 msgstr ""
13462
13463 # type: textblock
13464 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:3790
13465 msgid ""
13466 "This sets the SELinux security context of the daemon to the string "
13467 "C<context>."
13468 msgstr ""
13469
13470 # type: textblock
13471 #: ../src/guestfs-actions.pod:5626 ../fish/guestfish-actions.pod:3793
13472 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13473 msgstr ""
13474
13475 # type: =head2
13476 #: ../src/guestfs-actions.pod:5632
13477 msgid "guestfs_setxattr"
13478 msgstr ""
13479
13480 # type: verbatim
13481 #: ../src/guestfs-actions.pod:5634
13482 #, no-wrap
13483 msgid ""
13484 " int\n"
13485 " guestfs_setxattr (guestfs_h *g,\n"
13486 "                   const char *xattr,\n"
13487 "                   const char *val,\n"
13488 "                   int vallen,\n"
13489 "                   const char *path);\n"
13490 "\n"
13491 msgstr ""
13492
13493 # type: textblock
13494 #: ../src/guestfs-actions.pod:5641 ../fish/guestfish-actions.pod:3799
13495 msgid ""
13496 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13497 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13498 msgstr ""
13499
13500 # type: textblock
13501 #: ../src/guestfs-actions.pod:5645
13502 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13503 msgstr ""
13504
13505 # type: =head2
13506 #: ../src/guestfs-actions.pod:5651
13507 msgid "guestfs_sfdisk"
13508 msgstr ""
13509
13510 # type: verbatim
13511 #: ../src/guestfs-actions.pod:5653
13512 #, no-wrap
13513 msgid ""
13514 " int\n"
13515 " guestfs_sfdisk (guestfs_h *g,\n"
13516 "                 const char *device,\n"
13517 "                 int cyls,\n"
13518 "                 int heads,\n"
13519 "                 int sectors,\n"
13520 "                 char *const *lines);\n"
13521 "\n"
13522 msgstr ""
13523
13524 # type: textblock
13525 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:3809
13526 msgid ""
13527 "This is a direct interface to the L<sfdisk(8)> program for creating "
13528 "partitions on block devices."
13529 msgstr ""
13530
13531 # type: textblock
13532 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:3812
13533 msgid "C<device> should be a block device, for example C</dev/sda>."
13534 msgstr ""
13535
13536 # type: textblock
13537 #: ../src/guestfs-actions.pod:5666 ../fish/guestfish-actions.pod:3814
13538 msgid ""
13539 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13540 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13541 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13542 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13543 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13544 "the kernel) cannot work out the right geometry and you will need to tell it."
13545 msgstr ""
13546
13547 # type: textblock
13548 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3822
13549 msgid ""
13550 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13551 "refer to the L<sfdisk(8)> manpage."
13552 msgstr ""
13553
13554 # type: textblock
13555 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:3825
13556 msgid ""
13557 "To create a single partition occupying the whole disk, you would pass "
13558 "C<lines> as a single element list, when the single element being the string "
13559 "C<,> (comma)."
13560 msgstr ""
13561
13562 # type: textblock
13563 #: ../src/guestfs-actions.pod:5681
13564 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13565 msgstr ""
13566
13567 # type: =head2
13568 #: ../src/guestfs-actions.pod:5691
13569 msgid "guestfs_sfdiskM"
13570 msgstr ""
13571
13572 # type: verbatim
13573 #: ../src/guestfs-actions.pod:5693
13574 #, no-wrap
13575 msgid ""
13576 " int\n"
13577 " guestfs_sfdiskM (guestfs_h *g,\n"
13578 "                  const char *device,\n"
13579 "                  char *const *lines);\n"
13580 "\n"
13581 msgstr ""
13582
13583 # type: textblock
13584 #: ../src/guestfs-actions.pod:5698
13585 msgid ""
13586 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13587 "partition sizes are specified in megabytes only (rounded to the nearest "
13588 "cylinder) and you don't need to specify the cyls, heads and sectors "
13589 "parameters which were rarely if ever used anyway."
13590 msgstr ""
13591
13592 # type: textblock
13593 #: ../src/guestfs-actions.pod:5704
13594 msgid ""
13595 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13596 "C<guestfs_part_disk>"
13597 msgstr ""
13598
13599 # type: =head2
13600 #: ../src/guestfs-actions.pod:5714
13601 msgid "guestfs_sfdisk_N"
13602 msgstr ""
13603
13604 # type: verbatim
13605 #: ../src/guestfs-actions.pod:5716
13606 #, no-wrap
13607 msgid ""
13608 " int\n"
13609 " guestfs_sfdisk_N (guestfs_h *g,\n"
13610 "                   const char *device,\n"
13611 "                   int partnum,\n"
13612 "                   int cyls,\n"
13613 "                   int heads,\n"
13614 "                   int sectors,\n"
13615 "                   const char *line);\n"
13616 "\n"
13617 msgstr ""
13618
13619 # type: textblock
13620 #: ../src/guestfs-actions.pod:5725 ../fish/guestfish-actions.pod:3855
13621 msgid ""
13622 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13623 "(note: C<n> counts from 1)."
13624 msgstr ""
13625
13626 # type: textblock
13627 #: ../src/guestfs-actions.pod:5728
13628 msgid ""
13629 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13630 "for the cyls/heads/sectors parameters."
13631 msgstr ""
13632
13633 # type: textblock
13634 #: ../src/guestfs-actions.pod:5731
13635 msgid "See also: C<guestfs_part_add>"
13636 msgstr ""
13637
13638 # type: =head2
13639 #: ../src/guestfs-actions.pod:5740
13640 msgid "guestfs_sfdisk_disk_geometry"
13641 msgstr ""
13642
13643 # type: verbatim
13644 #: ../src/guestfs-actions.pod:5742
13645 #, no-wrap
13646 msgid ""
13647 " char *\n"
13648 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13649 "                               const char *device);\n"
13650 "\n"
13651 msgstr ""
13652
13653 # type: textblock
13654 #: ../src/guestfs-actions.pod:5746
13655 msgid ""
13656 "This displays the disk geometry of C<device> read from the partition table.  "
13657 "Especially in the case where the underlying block device has been resized, "
13658 "this can be different from the kernel's idea of the geometry (see "
13659 "C<guestfs_sfdisk_kernel_geometry>)."
13660 msgstr ""
13661
13662 # type: textblock
13663 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5767 ../fish/guestfish-actions.pod:3875 ../fish/guestfish-actions.pod:3884
13664 msgid "The result is in human-readable format, and not designed to be parsed."
13665 msgstr ""
13666
13667 # type: =head2
13668 #: ../src/guestfs-actions.pod:5759
13669 msgid "guestfs_sfdisk_kernel_geometry"
13670 msgstr ""
13671
13672 # type: verbatim
13673 #: ../src/guestfs-actions.pod:5761
13674 #, no-wrap
13675 msgid ""
13676 " char *\n"
13677 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13678 "                                 const char *device);\n"
13679 "\n"
13680 msgstr ""
13681
13682 # type: textblock
13683 #: ../src/guestfs-actions.pod:5765 ../fish/guestfish-actions.pod:3882
13684 msgid "This displays the kernel's idea of the geometry of C<device>."
13685 msgstr ""
13686
13687 # type: =head2
13688 #: ../src/guestfs-actions.pod:5775
13689 msgid "guestfs_sfdisk_l"
13690 msgstr ""
13691
13692 # type: verbatim
13693 #: ../src/guestfs-actions.pod:5777
13694 #, no-wrap
13695 msgid ""
13696 " char *\n"
13697 " guestfs_sfdisk_l (guestfs_h *g,\n"
13698 "                   const char *device);\n"
13699 "\n"
13700 msgstr ""
13701
13702 # type: textblock
13703 #: ../src/guestfs-actions.pod:5781 ../fish/guestfish-actions.pod:3891
13704 msgid ""
13705 "This displays the partition table on C<device>, in the human-readable output "
13706 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13707 msgstr ""
13708
13709 # type: textblock
13710 #: ../src/guestfs-actions.pod:5785
13711 msgid "See also: C<guestfs_part_list>"
13712 msgstr ""
13713
13714 # type: =head2
13715 #: ../src/guestfs-actions.pod:5792
13716 msgid "guestfs_sh"
13717 msgstr ""
13718
13719 # type: verbatim
13720 #: ../src/guestfs-actions.pod:5794
13721 #, no-wrap
13722 msgid ""
13723 " char *\n"
13724 " guestfs_sh (guestfs_h *g,\n"
13725 "             const char *command);\n"
13726 "\n"
13727 msgstr ""
13728
13729 # type: textblock
13730 #: ../src/guestfs-actions.pod:5798 ../fish/guestfish-actions.pod:3901
13731 msgid ""
13732 "This call runs a command from the guest filesystem via the guest's "
13733 "C</bin/sh>."
13734 msgstr ""
13735
13736 # type: textblock
13737 #: ../src/guestfs-actions.pod:5801
13738 msgid "This is like C<guestfs_command>, but passes the command to:"
13739 msgstr ""
13740
13741 # type: verbatim
13742 #: ../src/guestfs-actions.pod:5803 ../fish/guestfish-actions.pod:3906
13743 #, no-wrap
13744 msgid ""
13745 " /bin/sh -c \"command\"\n"
13746 "\n"
13747 msgstr ""
13748
13749 # type: textblock
13750 #: ../src/guestfs-actions.pod:5805 ../fish/guestfish-actions.pod:3908
13751 msgid ""
13752 "Depending on the guest's shell, this usually results in wildcards being "
13753 "expanded, shell expressions being interpolated and so on."
13754 msgstr ""
13755
13756 # type: textblock
13757 #: ../src/guestfs-actions.pod:5809
13758 msgid "All the provisos about C<guestfs_command> apply to this call."
13759 msgstr ""
13760
13761 # type: =head2
13762 #: ../src/guestfs-actions.pod:5816
13763 msgid "guestfs_sh_lines"
13764 msgstr ""
13765
13766 # type: verbatim
13767 #: ../src/guestfs-actions.pod:5818
13768 #, no-wrap
13769 msgid ""
13770 " char **\n"
13771 " guestfs_sh_lines (guestfs_h *g,\n"
13772 "                   const char *command);\n"
13773 "\n"
13774 msgstr ""
13775
13776 # type: textblock
13777 #: ../src/guestfs-actions.pod:5822
13778 msgid ""
13779 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13780 "lines."
13781 msgstr ""
13782
13783 # type: textblock
13784 #: ../src/guestfs-actions.pod:5825
13785 msgid "See also: C<guestfs_command_lines>"
13786 msgstr ""
13787
13788 # type: =head2
13789 #: ../src/guestfs-actions.pod:5833
13790 msgid "guestfs_sleep"
13791 msgstr ""
13792
13793 # type: verbatim
13794 #: ../src/guestfs-actions.pod:5835
13795 #, no-wrap
13796 msgid ""
13797 " int\n"
13798 " guestfs_sleep (guestfs_h *g,\n"
13799 "                int secs);\n"
13800 "\n"
13801 msgstr ""
13802
13803 # type: textblock
13804 #: ../src/guestfs-actions.pod:5839 ../fish/guestfish-actions.pod:3927
13805 msgid "Sleep for C<secs> seconds."
13806 msgstr ""
13807
13808 # type: textblock
13809 #: ../src/guestfs-actions.pod:5843
13810 msgid "(Added in 1.0.41)"
13811 msgstr ""
13812
13813 # type: =head2
13814 #: ../src/guestfs-actions.pod:5845 ../src/guestfs-structs.pod:109
13815 msgid "guestfs_stat"
13816 msgstr ""
13817
13818 # type: verbatim
13819 #: ../src/guestfs-actions.pod:5847
13820 #, no-wrap
13821 msgid ""
13822 " struct guestfs_stat *\n"
13823 " guestfs_stat (guestfs_h *g,\n"
13824 "               const char *path);\n"
13825 "\n"
13826 msgstr ""
13827
13828 # type: textblock
13829 #: ../src/guestfs-actions.pod:5853 ../fish/guestfish-actions.pod:3935
13830 msgid "This is the same as the C<stat(2)> system call."
13831 msgstr ""
13832
13833 # type: =head2
13834 #: ../src/guestfs-actions.pod:5861 ../src/guestfs-structs.pod:135
13835 msgid "guestfs_statvfs"
13836 msgstr ""
13837
13838 # type: verbatim
13839 #: ../src/guestfs-actions.pod:5863
13840 #, no-wrap
13841 msgid ""
13842 " struct guestfs_statvfs *\n"
13843 " guestfs_statvfs (guestfs_h *g,\n"
13844 "                  const char *path);\n"
13845 "\n"
13846 msgstr ""
13847
13848 # type: textblock
13849 #: ../src/guestfs-actions.pod:5867 ../fish/guestfish-actions.pod:3941
13850 msgid ""
13851 "Returns file system statistics for any mounted file system.  C<path> should "
13852 "be a file or directory in the mounted file system (typically it is the mount "
13853 "point itself, but it doesn't need to be)."
13854 msgstr ""
13855
13856 # type: textblock
13857 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3945
13858 msgid "This is the same as the C<statvfs(2)> system call."
13859 msgstr ""
13860
13861 # type: textblock
13862 #: ../src/guestfs-actions.pod:5873
13863 msgid ""
13864 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13865 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13866 msgstr ""
13867
13868 # type: =head2
13869 #: ../src/guestfs-actions.pod:5879
13870 msgid "guestfs_strings"
13871 msgstr ""
13872
13873 # type: verbatim
13874 #: ../src/guestfs-actions.pod:5881
13875 #, no-wrap
13876 msgid ""
13877 " char **\n"
13878 " guestfs_strings (guestfs_h *g,\n"
13879 "                  const char *path);\n"
13880 "\n"
13881 msgstr ""
13882
13883 # type: textblock
13884 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3951
13885 msgid ""
13886 "This runs the L<strings(1)> command on a file and returns the list of "
13887 "printable strings found."
13888 msgstr ""
13889
13890 # type: =head2
13891 #: ../src/guestfs-actions.pod:5897
13892 msgid "guestfs_strings_e"
13893 msgstr ""
13894
13895 # type: verbatim
13896 #: ../src/guestfs-actions.pod:5899
13897 #, no-wrap
13898 msgid ""
13899 " char **\n"
13900 " guestfs_strings_e (guestfs_h *g,\n"
13901 "                    const char *encoding,\n"
13902 "                    const char *path);\n"
13903 "\n"
13904 msgstr ""
13905
13906 # type: textblock
13907 #: ../src/guestfs-actions.pod:5904
13908 msgid ""
13909 "This is like the C<guestfs_strings> command, but allows you to specify the "
13910 "encoding of strings that are looked for in the source file C<path>."
13911 msgstr ""
13912
13913 # type: textblock
13914 #: ../src/guestfs-actions.pod:5908 ../fish/guestfish-actions.pod:3965
13915 msgid "Allowed encodings are:"
13916 msgstr ""
13917
13918 # type: =item
13919 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3969
13920 msgid "s"
13921 msgstr ""
13922
13923 # type: textblock
13924 #: ../src/guestfs-actions.pod:5914
13925 msgid ""
13926 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13927 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13928 msgstr ""
13929
13930 # type: =item
13931 #: ../src/guestfs-actions.pod:5917 ../fish/guestfish-actions.pod:3974
13932 msgid "S"
13933 msgstr ""
13934
13935 # type: textblock
13936 #: ../src/guestfs-actions.pod:5919 ../fish/guestfish-actions.pod:3976
13937 msgid "Single 8-bit-byte characters."
13938 msgstr ""
13939
13940 # type: =item
13941 #: ../src/guestfs-actions.pod:5921 ../fish/guestfish-actions.pod:3978
13942 msgid "b"
13943 msgstr ""
13944
13945 # type: textblock
13946 #: ../src/guestfs-actions.pod:5923 ../fish/guestfish-actions.pod:3980
13947 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13948 msgstr ""
13949
13950 # type: =item
13951 #: ../src/guestfs-actions.pod:5926 ../fish/guestfish-actions.pod:3983
13952 msgid "l (lower case letter L)"
13953 msgstr ""
13954
13955 # type: textblock
13956 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3985
13957 msgid ""
13958 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13959 "examining binaries in Windows guests."
13960 msgstr ""
13961
13962 # type: =item
13963 #: ../src/guestfs-actions.pod:5931 ../fish/guestfish-actions.pod:3988
13964 msgid "B"
13965 msgstr ""
13966
13967 # type: textblock
13968 #: ../src/guestfs-actions.pod:5933 ../fish/guestfish-actions.pod:3990
13969 msgid "32-bit big endian such as UCS-4BE."
13970 msgstr ""
13971
13972 # type: =item
13973 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3992
13974 msgid "L"
13975 msgstr ""
13976
13977 # type: textblock
13978 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3994
13979 msgid "32-bit little endian such as UCS-4LE."
13980 msgstr ""
13981
13982 # type: textblock
13983 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3998
13984 msgid "The returned strings are transcoded to UTF-8."
13985 msgstr ""
13986
13987 # type: =head2
13988 #: ../src/guestfs-actions.pod:5952
13989 msgid "guestfs_swapoff_device"
13990 msgstr ""
13991
13992 # type: verbatim
13993 #: ../src/guestfs-actions.pod:5954
13994 #, no-wrap
13995 msgid ""
13996 " int\n"
13997 " guestfs_swapoff_device (guestfs_h *g,\n"
13998 "                         const char *device);\n"
13999 "\n"
14000 msgstr ""
14001
14002 # type: textblock
14003 #: ../src/guestfs-actions.pod:5958
14004 msgid ""
14005 "This command disables the libguestfs appliance swap device or partition "
14006 "named C<device>.  See C<guestfs_swapon_device>."
14007 msgstr ""
14008
14009 # type: =head2
14010 #: ../src/guestfs-actions.pod:5966
14011 msgid "guestfs_swapoff_file"
14012 msgstr ""
14013
14014 # type: verbatim
14015 #: ../src/guestfs-actions.pod:5968
14016 #, no-wrap
14017 msgid ""
14018 " int\n"
14019 " guestfs_swapoff_file (guestfs_h *g,\n"
14020 "                       const char *file);\n"
14021 "\n"
14022 msgstr ""
14023
14024 # type: textblock
14025 #: ../src/guestfs-actions.pod:5972 ../fish/guestfish-actions.pod:4015
14026 msgid "This command disables the libguestfs appliance swap on file."
14027 msgstr ""
14028
14029 # type: =head2
14030 #: ../src/guestfs-actions.pod:5978
14031 msgid "guestfs_swapoff_label"
14032 msgstr ""
14033
14034 # type: verbatim
14035 #: ../src/guestfs-actions.pod:5980
14036 #, no-wrap
14037 msgid ""
14038 " int\n"
14039 " guestfs_swapoff_label (guestfs_h *g,\n"
14040 "                        const char *label);\n"
14041 "\n"
14042 msgstr ""
14043
14044 # type: textblock
14045 #: ../src/guestfs-actions.pod:5984 ../fish/guestfish-actions.pod:4021
14046 msgid ""
14047 "This command disables the libguestfs appliance swap on labeled swap "
14048 "partition."
14049 msgstr ""
14050
14051 # type: =head2
14052 #: ../src/guestfs-actions.pod:5991
14053 msgid "guestfs_swapoff_uuid"
14054 msgstr ""
14055
14056 # type: verbatim
14057 #: ../src/guestfs-actions.pod:5993
14058 #, no-wrap
14059 msgid ""
14060 " int\n"
14061 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14062 "                       const char *uuid);\n"
14063 "\n"
14064 msgstr ""
14065
14066 # type: textblock
14067 #: ../src/guestfs-actions.pod:5997 ../fish/guestfish-actions.pod:4028
14068 msgid ""
14069 "This command disables the libguestfs appliance swap partition with the given "
14070 "UUID."
14071 msgstr ""
14072
14073 # type: =head2
14074 #: ../src/guestfs-actions.pod:6004
14075 msgid "guestfs_swapon_device"
14076 msgstr ""
14077
14078 # type: verbatim
14079 #: ../src/guestfs-actions.pod:6006
14080 #, no-wrap
14081 msgid ""
14082 " int\n"
14083 " guestfs_swapon_device (guestfs_h *g,\n"
14084 "                        const char *device);\n"
14085 "\n"
14086 msgstr ""
14087
14088 # type: textblock
14089 #: ../src/guestfs-actions.pod:6010
14090 msgid ""
14091 "This command enables the libguestfs appliance to use the swap device or "
14092 "partition named C<device>.  The increased memory is made available for all "
14093 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14094 msgstr ""
14095
14096 # type: textblock
14097 #: ../src/guestfs-actions.pod:6015 ../fish/guestfish-actions.pod:4040
14098 msgid ""
14099 "Note that you should not swap to existing guest swap partitions unless you "
14100 "know what you are doing.  They may contain hibernation information, or other "
14101 "information that the guest doesn't want you to trash.  You also risk leaking "
14102 "information about the host to the guest this way.  Instead, attach a new "
14103 "host device to the guest and swap on that."
14104 msgstr ""
14105
14106 # type: =head2
14107 #: ../src/guestfs-actions.pod:6026
14108 msgid "guestfs_swapon_file"
14109 msgstr ""
14110
14111 # type: verbatim
14112 #: ../src/guestfs-actions.pod:6028
14113 #, no-wrap
14114 msgid ""
14115 " int\n"
14116 " guestfs_swapon_file (guestfs_h *g,\n"
14117 "                      const char *file);\n"
14118 "\n"
14119 msgstr ""
14120
14121 # type: textblock
14122 #: ../src/guestfs-actions.pod:6032
14123 msgid ""
14124 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14125 "notes."
14126 msgstr ""
14127
14128 # type: =head2
14129 #: ../src/guestfs-actions.pod:6039
14130 msgid "guestfs_swapon_label"
14131 msgstr ""
14132
14133 # type: verbatim
14134 #: ../src/guestfs-actions.pod:6041
14135 #, no-wrap
14136 msgid ""
14137 " int\n"
14138 " guestfs_swapon_label (guestfs_h *g,\n"
14139 "                       const char *label);\n"
14140 "\n"
14141 msgstr ""
14142
14143 # type: textblock
14144 #: ../src/guestfs-actions.pod:6045
14145 msgid ""
14146 "This command enables swap to a labeled swap partition.  See "
14147 "C<guestfs_swapon_device> for other notes."
14148 msgstr ""
14149
14150 # type: =head2
14151 #: ../src/guestfs-actions.pod:6052
14152 msgid "guestfs_swapon_uuid"
14153 msgstr ""
14154
14155 # type: verbatim
14156 #: ../src/guestfs-actions.pod:6054
14157 #, no-wrap
14158 msgid ""
14159 " int\n"
14160 " guestfs_swapon_uuid (guestfs_h *g,\n"
14161 "                      const char *uuid);\n"
14162 "\n"
14163 msgstr ""
14164
14165 # type: textblock
14166 #: ../src/guestfs-actions.pod:6058
14167 msgid ""
14168 "This command enables swap to a swap partition with the given UUID.  See "
14169 "C<guestfs_swapon_device> for other notes."
14170 msgstr ""
14171
14172 # type: =head2
14173 #: ../src/guestfs-actions.pod:6065
14174 msgid "guestfs_sync"
14175 msgstr ""
14176
14177 # type: verbatim
14178 #: ../src/guestfs-actions.pod:6067
14179 #, no-wrap
14180 msgid ""
14181 " int\n"
14182 " guestfs_sync (guestfs_h *g);\n"
14183 "\n"
14184 msgstr ""
14185
14186 # type: textblock
14187 #: ../src/guestfs-actions.pod:6070 ../fish/guestfish-actions.pod:4072
14188 msgid ""
14189 "This syncs the disk, so that any writes are flushed through to the "
14190 "underlying disk image."
14191 msgstr ""
14192
14193 # type: textblock
14194 #: ../src/guestfs-actions.pod:6073 ../fish/guestfish-actions.pod:4075
14195 msgid ""
14196 "You should always call this if you have modified a disk image, before "
14197 "closing the handle."
14198 msgstr ""
14199
14200 # type: =head2
14201 #: ../src/guestfs-actions.pod:6080
14202 msgid "guestfs_tail"
14203 msgstr ""
14204
14205 # type: verbatim
14206 #: ../src/guestfs-actions.pod:6082
14207 #, no-wrap
14208 msgid ""
14209 " char **\n"
14210 " guestfs_tail (guestfs_h *g,\n"
14211 "               const char *path);\n"
14212 "\n"
14213 msgstr ""
14214
14215 # type: textblock
14216 #: ../src/guestfs-actions.pod:6086 ../fish/guestfish-actions.pod:4082
14217 msgid "This command returns up to the last 10 lines of a file as a list of strings."
14218 msgstr ""
14219
14220 # type: =head2
14221 #: ../src/guestfs-actions.pod:6098
14222 msgid "guestfs_tail_n"
14223 msgstr ""
14224
14225 # type: verbatim
14226 #: ../src/guestfs-actions.pod:6100
14227 #, no-wrap
14228 msgid ""
14229 " char **\n"
14230 " guestfs_tail_n (guestfs_h *g,\n"
14231 "                 int nrlines,\n"
14232 "                 const char *path);\n"
14233 "\n"
14234 msgstr ""
14235
14236 # type: textblock
14237 #: ../src/guestfs-actions.pod:6105 ../fish/guestfish-actions.pod:4092
14238 msgid ""
14239 "If the parameter C<nrlines> is a positive number, this returns the last "
14240 "C<nrlines> lines of the file C<path>."
14241 msgstr ""
14242
14243 # type: textblock
14244 #: ../src/guestfs-actions.pod:6108 ../fish/guestfish-actions.pod:4095
14245 msgid ""
14246 "If the parameter C<nrlines> is a negative number, this returns lines from "
14247 "the file C<path>, starting with the C<-nrlines>th line."
14248 msgstr ""
14249
14250 # type: =head2
14251 #: ../src/guestfs-actions.pod:6122
14252 msgid "guestfs_tar_in"
14253 msgstr ""
14254
14255 # type: verbatim
14256 #: ../src/guestfs-actions.pod:6124
14257 #, no-wrap
14258 msgid ""
14259 " int\n"
14260 " guestfs_tar_in (guestfs_h *g,\n"
14261 "                 const char *tarfile,\n"
14262 "                 const char *directory);\n"
14263 "\n"
14264 msgstr ""
14265
14266 # type: textblock
14267 #: ../src/guestfs-actions.pod:6129 ../fish/guestfish-actions.pod:4107
14268 msgid ""
14269 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14270 "tar file) into C<directory>."
14271 msgstr ""
14272
14273 # type: textblock
14274 #: ../src/guestfs-actions.pod:6132
14275 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14276 msgstr ""
14277
14278 # type: textblock
14279 #: ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6154 ../src/guestfs-actions.pod:6170 ../src/guestfs-actions.pod:6186
14280 msgid "(Added in 1.0.3)"
14281 msgstr ""
14282
14283 # type: =head2
14284 #: ../src/guestfs-actions.pod:6139
14285 msgid "guestfs_tar_out"
14286 msgstr ""
14287
14288 # type: verbatim
14289 #: ../src/guestfs-actions.pod:6141
14290 #, no-wrap
14291 msgid ""
14292 " int\n"
14293 " guestfs_tar_out (guestfs_h *g,\n"
14294 "                  const char *directory,\n"
14295 "                  const char *tarfile);\n"
14296 "\n"
14297 msgstr ""
14298
14299 # type: textblock
14300 #: ../src/guestfs-actions.pod:6146 ../fish/guestfish-actions.pod:4119
14301 msgid ""
14302 "This command packs the contents of C<directory> and downloads it to local "
14303 "file C<tarfile>."
14304 msgstr ""
14305
14306 # type: textblock
14307 #: ../src/guestfs-actions.pod:6149
14308 msgid ""
14309 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14310 "C<guestfs_txz_out>."
14311 msgstr ""
14312
14313 # type: =head2
14314 #: ../src/guestfs-actions.pod:6156
14315 msgid "guestfs_tgz_in"
14316 msgstr ""
14317
14318 # type: verbatim
14319 #: ../src/guestfs-actions.pod:6158
14320 #, no-wrap
14321 msgid ""
14322 " int\n"
14323 " guestfs_tgz_in (guestfs_h *g,\n"
14324 "                 const char *tarball,\n"
14325 "                 const char *directory);\n"
14326 "\n"
14327 msgstr ""
14328
14329 # type: textblock
14330 #: ../src/guestfs-actions.pod:6163 ../fish/guestfish-actions.pod:4131
14331 msgid ""
14332 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14333 "tar file) into C<directory>."
14334 msgstr ""
14335
14336 # type: textblock
14337 #: ../src/guestfs-actions.pod:6166
14338 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14339 msgstr ""
14340
14341 # type: =head2
14342 #: ../src/guestfs-actions.pod:6172
14343 msgid "guestfs_tgz_out"
14344 msgstr ""
14345
14346 # type: verbatim
14347 #: ../src/guestfs-actions.pod:6174
14348 #, no-wrap
14349 msgid ""
14350 " int\n"
14351 " guestfs_tgz_out (guestfs_h *g,\n"
14352 "                  const char *directory,\n"
14353 "                  const char *tarball);\n"
14354 "\n"
14355 msgstr ""
14356
14357 # type: textblock
14358 #: ../src/guestfs-actions.pod:6179 ../fish/guestfish-actions.pod:4142
14359 msgid ""
14360 "This command packs the contents of C<directory> and downloads it to local "
14361 "file C<tarball>."
14362 msgstr ""
14363
14364 # type: textblock
14365 #: ../src/guestfs-actions.pod:6182
14366 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14367 msgstr ""
14368
14369 # type: =head2
14370 #: ../src/guestfs-actions.pod:6188
14371 msgid "guestfs_touch"
14372 msgstr ""
14373
14374 # type: verbatim
14375 #: ../src/guestfs-actions.pod:6190
14376 #, no-wrap
14377 msgid ""
14378 " int\n"
14379 " guestfs_touch (guestfs_h *g,\n"
14380 "                const char *path);\n"
14381 "\n"
14382 msgstr ""
14383
14384 # type: textblock
14385 #: ../src/guestfs-actions.pod:6194 ../fish/guestfish-actions.pod:4153
14386 msgid ""
14387 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14388 "timestamps on a file, or, if the file does not exist, to create a new "
14389 "zero-length file."
14390 msgstr ""
14391
14392 # type: textblock
14393 #: ../src/guestfs-actions.pod:6198 ../fish/guestfish-actions.pod:4157
14394 msgid ""
14395 "This command only works on regular files, and will fail on other file types "
14396 "such as directories, symbolic links, block special etc."
14397 msgstr ""
14398
14399 # type: =head2
14400 #: ../src/guestfs-actions.pod:6205
14401 msgid "guestfs_truncate"
14402 msgstr ""
14403
14404 # type: verbatim
14405 #: ../src/guestfs-actions.pod:6207
14406 #, no-wrap
14407 msgid ""
14408 " int\n"
14409 " guestfs_truncate (guestfs_h *g,\n"
14410 "                   const char *path);\n"
14411 "\n"
14412 msgstr ""
14413
14414 # type: textblock
14415 #: ../src/guestfs-actions.pod:6211 ../fish/guestfish-actions.pod:4164
14416 msgid ""
14417 "This command truncates C<path> to a zero-length file.  The file must exist "
14418 "already."
14419 msgstr ""
14420
14421 # type: =head2
14422 #: ../src/guestfs-actions.pod:6218
14423 msgid "guestfs_truncate_size"
14424 msgstr ""
14425
14426 # type: verbatim
14427 #: ../src/guestfs-actions.pod:6220
14428 #, no-wrap
14429 msgid ""
14430 " int\n"
14431 " guestfs_truncate_size (guestfs_h *g,\n"
14432 "                        const char *path,\n"
14433 "                        int64_t size);\n"
14434 "\n"
14435 msgstr ""
14436
14437 # type: textblock
14438 #: ../src/guestfs-actions.pod:6225 ../fish/guestfish-actions.pod:4171
14439 msgid ""
14440 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14441 "already."
14442 msgstr ""
14443
14444 # type: textblock
14445 #: ../src/guestfs-actions.pod:6228
14446 msgid ""
14447 "If the current file size is less than C<size> then the file is extended to "
14448 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14449 "blocks are not allocated for the file until you write to it).  To create a "
14450 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14451 msgstr ""
14452
14453 # type: =head2
14454 #: ../src/guestfs-actions.pod:6238
14455 msgid "guestfs_tune2fs_l"
14456 msgstr ""
14457
14458 # type: verbatim
14459 #: ../src/guestfs-actions.pod:6240
14460 #, no-wrap
14461 msgid ""
14462 " char **\n"
14463 " guestfs_tune2fs_l (guestfs_h *g,\n"
14464 "                    const char *device);\n"
14465 "\n"
14466 msgstr ""
14467
14468 # type: textblock
14469 #: ../src/guestfs-actions.pod:6244 ../fish/guestfish-actions.pod:4184
14470 msgid ""
14471 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14472 "C<device>."
14473 msgstr ""
14474
14475 # type: textblock
14476 #: ../src/guestfs-actions.pod:6247 ../fish/guestfish-actions.pod:4187
14477 msgid ""
14478 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14479 "for more details.  The list of fields returned isn't clearly defined, and "
14480 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14481 "and the filesystem itself."
14482 msgstr ""
14483
14484 # type: =head2
14485 #: ../src/guestfs-actions.pod:6260
14486 msgid "guestfs_txz_in"
14487 msgstr ""
14488
14489 # type: verbatim
14490 #: ../src/guestfs-actions.pod:6262
14491 #, no-wrap
14492 msgid ""
14493 " int\n"
14494 " guestfs_txz_in (guestfs_h *g,\n"
14495 "                 const char *tarball,\n"
14496 "                 const char *directory);\n"
14497 "\n"
14498 msgstr ""
14499
14500 # type: textblock
14501 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4196
14502 msgid ""
14503 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14504 "tar file) into C<directory>."
14505 msgstr ""
14506
14507 # type: =head2
14508 #: ../src/guestfs-actions.pod:6274
14509 msgid "guestfs_txz_out"
14510 msgstr ""
14511
14512 # type: verbatim
14513 #: ../src/guestfs-actions.pod:6276
14514 #, no-wrap
14515 msgid ""
14516 " int\n"
14517 " guestfs_txz_out (guestfs_h *g,\n"
14518 "                  const char *directory,\n"
14519 "                  const char *tarball);\n"
14520 "\n"
14521 msgstr ""
14522
14523 # type: textblock
14524 #: ../src/guestfs-actions.pod:6281 ../fish/guestfish-actions.pod:4205
14525 msgid ""
14526 "This command packs the contents of C<directory> and downloads it to local "
14527 "file C<tarball> (as an xz compressed tar archive)."
14528 msgstr ""
14529
14530 # type: =head2
14531 #: ../src/guestfs-actions.pod:6288
14532 msgid "guestfs_umask"
14533 msgstr ""
14534
14535 # type: verbatim
14536 #: ../src/guestfs-actions.pod:6290
14537 #, no-wrap
14538 msgid ""
14539 " int\n"
14540 " guestfs_umask (guestfs_h *g,\n"
14541 "                int mask);\n"
14542 "\n"
14543 msgstr ""
14544
14545 # type: textblock
14546 #: ../src/guestfs-actions.pod:6294 ../fish/guestfish-actions.pod:4214
14547 msgid ""
14548 "This function sets the mask used for creating new files and device nodes to "
14549 "C<mask & 0777>."
14550 msgstr ""
14551
14552 # type: textblock
14553 #: ../src/guestfs-actions.pod:6297 ../fish/guestfish-actions.pod:4217
14554 msgid ""
14555 "Typical umask values would be C<022> which creates new files with "
14556 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14557 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14558 msgstr ""
14559
14560 # type: textblock
14561 #: ../src/guestfs-actions.pod:6302 ../fish/guestfish-actions.pod:4222
14562 msgid ""
14563 "The default umask is C<022>.  This is important because it means that "
14564 "directories and device nodes will be created with C<0644> or C<0755> mode "
14565 "even if you specify C<0777>."
14566 msgstr ""
14567
14568 # type: textblock
14569 #: ../src/guestfs-actions.pod:6306
14570 msgid ""
14571 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14572 "C<guestfs_mkdir>."
14573 msgstr ""
14574
14575 # type: textblock
14576 #: ../src/guestfs-actions.pod:6309 ../fish/guestfish-actions.pod:4229
14577 msgid "This call returns the previous umask."
14578 msgstr ""
14579
14580 # type: =head2
14581 #: ../src/guestfs-actions.pod:6315
14582 msgid "guestfs_umount"
14583 msgstr ""
14584
14585 # type: verbatim
14586 #: ../src/guestfs-actions.pod:6317
14587 #, no-wrap
14588 msgid ""
14589 " int\n"
14590 " guestfs_umount (guestfs_h *g,\n"
14591 "                 const char *pathordevice);\n"
14592 "\n"
14593 msgstr ""
14594
14595 # type: textblock
14596 #: ../src/guestfs-actions.pod:6321 ../fish/guestfish-actions.pod:4237
14597 msgid ""
14598 "This unmounts the given filesystem.  The filesystem may be specified either "
14599 "by its mountpoint (path) or the device which contains the filesystem."
14600 msgstr ""
14601
14602 # type: =head2
14603 #: ../src/guestfs-actions.pod:6329
14604 msgid "guestfs_umount_all"
14605 msgstr ""
14606
14607 # type: verbatim
14608 #: ../src/guestfs-actions.pod:6331
14609 #, no-wrap
14610 msgid ""
14611 " int\n"
14612 " guestfs_umount_all (guestfs_h *g);\n"
14613 "\n"
14614 msgstr ""
14615
14616 # type: textblock
14617 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4247
14618 msgid "This unmounts all mounted filesystems."
14619 msgstr ""
14620
14621 # type: textblock
14622 #: ../src/guestfs-actions.pod:6336 ../fish/guestfish-actions.pod:4249
14623 msgid "Some internal mounts are not unmounted by this call."
14624 msgstr ""
14625
14626 # type: =head2
14627 #: ../src/guestfs-actions.pod:6342
14628 msgid "guestfs_upload"
14629 msgstr ""
14630
14631 # type: verbatim
14632 #: ../src/guestfs-actions.pod:6344
14633 #, no-wrap
14634 msgid ""
14635 " int\n"
14636 " guestfs_upload (guestfs_h *g,\n"
14637 "                 const char *filename,\n"
14638 "                 const char *remotefilename);\n"
14639 "\n"
14640 msgstr ""
14641
14642 # type: textblock
14643 #: ../src/guestfs-actions.pod:6349 ../src/guestfs-actions.pod:6368 ../fish/guestfish-actions.pod:4255 ../fish/guestfish-actions.pod:4268
14644 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14645 msgstr ""
14646
14647 # type: textblock
14648 #: ../src/guestfs-actions.pod:6354
14649 msgid "See also C<guestfs_download>."
14650 msgstr ""
14651
14652 # type: =head2
14653 #: ../src/guestfs-actions.pod:6360
14654 msgid "guestfs_upload_offset"
14655 msgstr ""
14656
14657 # type: verbatim
14658 #: ../src/guestfs-actions.pod:6362
14659 #, no-wrap
14660 msgid ""
14661 " int\n"
14662 " guestfs_upload_offset (guestfs_h *g,\n"
14663 "                        const char *filename,\n"
14664 "                        const char *remotefilename,\n"
14665 "                        int64_t offset);\n"
14666 "\n"
14667 msgstr ""
14668
14669 # type: textblock
14670 #: ../src/guestfs-actions.pod:6371 ../fish/guestfish-actions.pod:4271
14671 msgid ""
14672 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14673 "The intention is to overwrite parts of existing files or devices, although "
14674 "if a non-existant file is specified then it is created with a \"hole\" "
14675 "before C<offset>.  The size of the data written is implicit in the size of "
14676 "the source C<filename>."
14677 msgstr ""
14678
14679 # type: textblock
14680 #: ../src/guestfs-actions.pod:6378
14681 msgid ""
14682 "Note that there is no limit on the amount of data that can be uploaded with "
14683 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14684 "full amount unless an error occurs."
14685 msgstr ""
14686
14687 # type: textblock
14688 #: ../src/guestfs-actions.pod:6383
14689 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14690 msgstr ""
14691
14692 # type: =head2
14693 #: ../src/guestfs-actions.pod:6389
14694 msgid "guestfs_utimens"
14695 msgstr ""
14696
14697 # type: verbatim
14698 #: ../src/guestfs-actions.pod:6391
14699 #, no-wrap
14700 msgid ""
14701 " int\n"
14702 " guestfs_utimens (guestfs_h *g,\n"
14703 "                  const char *path,\n"
14704 "                  int64_t atsecs,\n"
14705 "                  int64_t atnsecs,\n"
14706 "                  int64_t mtsecs,\n"
14707 "                  int64_t mtnsecs);\n"
14708 "\n"
14709 msgstr ""
14710
14711 # type: textblock
14712 #: ../src/guestfs-actions.pod:6399 ../fish/guestfish-actions.pod:4291
14713 msgid "This command sets the timestamps of a file with nanosecond precision."
14714 msgstr ""
14715
14716 # type: textblock
14717 #: ../src/guestfs-actions.pod:6402 ../fish/guestfish-actions.pod:4294
14718 msgid ""
14719 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14720 "from the epoch."
14721 msgstr ""
14722
14723 # type: textblock
14724 #: ../src/guestfs-actions.pod:6405 ../fish/guestfish-actions.pod:4297
14725 msgid ""
14726 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14727 "nanoseconds from the epoch."
14728 msgstr ""
14729
14730 # type: textblock
14731 #: ../src/guestfs-actions.pod:6408 ../fish/guestfish-actions.pod:4300
14732 msgid ""
14733 "If the C<*nsecs> field contains the special value C<-1> then the "
14734 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14735 "ignored in this case)."
14736 msgstr ""
14737
14738 # type: textblock
14739 #: ../src/guestfs-actions.pod:6412 ../fish/guestfish-actions.pod:4304
14740 msgid ""
14741 "If the C<*nsecs> field contains the special value C<-2> then the "
14742 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14743 "in this case)."
14744 msgstr ""
14745
14746 # type: =head2
14747 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-structs.pod:175
14748 msgid "guestfs_version"
14749 msgstr ""
14750
14751 # type: verbatim
14752 #: ../src/guestfs-actions.pod:6422
14753 #, no-wrap
14754 msgid ""
14755 " struct guestfs_version *\n"
14756 " guestfs_version (guestfs_h *g);\n"
14757 "\n"
14758 msgstr ""
14759
14760 # type: textblock
14761 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4312
14762 msgid "Return the libguestfs version number that the program is linked against."
14763 msgstr ""
14764
14765 # type: textblock
14766 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4315
14767 msgid ""
14768 "Note that because of dynamic linking this is not necessarily the version of "
14769 "libguestfs that you compiled against.  You can compile the program, and then "
14770 "at runtime dynamically link against a completely different C<libguestfs.so> "
14771 "library."
14772 msgstr ""
14773
14774 # type: textblock
14775 #: ../src/guestfs-actions.pod:6433 ../fish/guestfish-actions.pod:4320
14776 msgid ""
14777 "This call was added in version C<1.0.58>.  In previous versions of "
14778 "libguestfs there was no way to get the version number.  From C code you can "
14779 "use dynamic linker functions to find out if this symbol exists (if it "
14780 "doesn't, then it's an earlier version)."
14781 msgstr ""
14782
14783 # type: textblock
14784 #: ../src/guestfs-actions.pod:6439 ../fish/guestfish-actions.pod:4326
14785 msgid ""
14786 "The call returns a structure with four elements.  The first three (C<major>, "
14787 "C<minor> and C<release>) are numbers and correspond to the usual version "
14788 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14789 "but may be used for distro-specific information."
14790 msgstr ""
14791
14792 # type: textblock
14793 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4332
14794 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14795 msgstr ""
14796
14797 # type: textblock
14798 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4335
14799 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14800 msgstr ""
14801
14802 # type: textblock
14803 #: ../src/guestfs-actions.pod:6450
14804 msgid ""
14805 "I<Note:> Don't use this call to test for availability of features.  In "
14806 "enterprise distributions we backport features from later versions into "
14807 "earlier versions, making this an unreliable way to test for features.  Use "
14808 "C<guestfs_available> instead."
14809 msgstr ""
14810
14811 # type: textblock
14812 #: ../src/guestfs-actions.pod:6456
14813 msgid ""
14814 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14815 "error.  I<The caller must call C<guestfs_free_version> after use>."
14816 msgstr ""
14817
14818 # type: textblock
14819 #: ../src/guestfs-actions.pod:6460
14820 msgid "(Added in 1.0.58)"
14821 msgstr ""
14822
14823 # type: =head2
14824 #: ../src/guestfs-actions.pod:6462
14825 msgid "guestfs_vfs_label"
14826 msgstr ""
14827
14828 # type: verbatim
14829 #: ../src/guestfs-actions.pod:6464
14830 #, no-wrap
14831 msgid ""
14832 " char *\n"
14833 " guestfs_vfs_label (guestfs_h *g,\n"
14834 "                    const char *device);\n"
14835 "\n"
14836 msgstr ""
14837
14838 # type: textblock
14839 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4347
14840 msgid "This returns the filesystem label of the filesystem on C<device>."
14841 msgstr ""
14842
14843 # type: textblock
14844 #: ../src/guestfs-actions.pod:6471 ../fish/guestfish-actions.pod:4350
14845 msgid "If the filesystem is unlabeled, this returns the empty string."
14846 msgstr ""
14847
14848 # type: textblock
14849 #: ../src/guestfs-actions.pod:6473
14850 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14851 msgstr ""
14852
14853 # type: textblock
14854 #: ../src/guestfs-actions.pod:6478 ../src/guestfs-actions.pod:6515
14855 msgid "(Added in 1.3.18)"
14856 msgstr ""
14857
14858 # type: =head2
14859 #: ../src/guestfs-actions.pod:6480
14860 msgid "guestfs_vfs_type"
14861 msgstr ""
14862
14863 # type: verbatim
14864 #: ../src/guestfs-actions.pod:6482
14865 #, no-wrap
14866 msgid ""
14867 " char *\n"
14868 " guestfs_vfs_type (guestfs_h *g,\n"
14869 "                   const char *device);\n"
14870 "\n"
14871 msgstr ""
14872
14873 # type: textblock
14874 #: ../src/guestfs-actions.pod:6486 ../fish/guestfish-actions.pod:4358
14875 msgid ""
14876 "This command gets the filesystem type corresponding to the filesystem on "
14877 "C<device>."
14878 msgstr ""
14879
14880 # type: textblock
14881 #: ../src/guestfs-actions.pod:6489 ../fish/guestfish-actions.pod:4361
14882 msgid ""
14883 "For most filesystems, the result is the name of the Linux VFS module which "
14884 "would be used to mount this filesystem if you mounted it without specifying "
14885 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14886 msgstr ""
14887
14888 # type: =head2
14889 #: ../src/guestfs-actions.pod:6499
14890 msgid "guestfs_vfs_uuid"
14891 msgstr ""
14892
14893 # type: verbatim
14894 #: ../src/guestfs-actions.pod:6501
14895 #, no-wrap
14896 msgid ""
14897 " char *\n"
14898 " guestfs_vfs_uuid (guestfs_h *g,\n"
14899 "                   const char *device);\n"
14900 "\n"
14901 msgstr ""
14902
14903 # type: textblock
14904 #: ../src/guestfs-actions.pod:6505 ../fish/guestfish-actions.pod:4370
14905 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14906 msgstr ""
14907
14908 # type: textblock
14909 #: ../src/guestfs-actions.pod:6508 ../fish/guestfish-actions.pod:4373
14910 msgid "If the filesystem does not have a UUID, this returns the empty string."
14911 msgstr ""
14912
14913 # type: textblock
14914 #: ../src/guestfs-actions.pod:6510
14915 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14916 msgstr ""
14917
14918 # type: =head2
14919 #: ../src/guestfs-actions.pod:6517
14920 msgid "guestfs_vg_activate"
14921 msgstr ""
14922
14923 # type: verbatim
14924 #: ../src/guestfs-actions.pod:6519
14925 #, no-wrap
14926 msgid ""
14927 " int\n"
14928 " guestfs_vg_activate (guestfs_h *g,\n"
14929 "                      int activate,\n"
14930 "                      char *const *volgroups);\n"
14931 "\n"
14932 msgstr ""
14933
14934 # type: textblock
14935 #: ../src/guestfs-actions.pod:6524 ../fish/guestfish-actions.pod:4381
14936 msgid ""
14937 "This command activates or (if C<activate> is false) deactivates all logical "
14938 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14939 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14940 "deactivated, then those devices disappear."
14941 msgstr ""
14942
14943 # type: textblock
14944 #: ../src/guestfs-actions.pod:6530 ../fish/guestfish-actions.pod:4387
14945 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14946 msgstr ""
14947
14948 # type: textblock
14949 #: ../src/guestfs-actions.pod:6532 ../fish/guestfish-actions.pod:4389
14950 msgid ""
14951 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14952 "activated or deactivated."
14953 msgstr ""
14954
14955 # type: =head2
14956 #: ../src/guestfs-actions.pod:6539
14957 msgid "guestfs_vg_activate_all"
14958 msgstr ""
14959
14960 # type: verbatim
14961 #: ../src/guestfs-actions.pod:6541
14962 #, no-wrap
14963 msgid ""
14964 " int\n"
14965 " guestfs_vg_activate_all (guestfs_h *g,\n"
14966 "                          int activate);\n"
14967 "\n"
14968 msgstr ""
14969
14970 # type: textblock
14971 #: ../src/guestfs-actions.pod:6545 ../fish/guestfish-actions.pod:4396
14972 msgid ""
14973 "This command activates or (if C<activate> is false) deactivates all logical "
14974 "volumes in all volume groups.  If activated, then they are made known to the "
14975 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
14976 "those devices disappear."
14977 msgstr ""
14978
14979 # type: textblock
14980 #: ../src/guestfs-actions.pod:6551 ../fish/guestfish-actions.pod:4402
14981 msgid "This command is the same as running C<vgchange -a y|n>"
14982 msgstr ""
14983
14984 # type: =head2
14985 #: ../src/guestfs-actions.pod:6557
14986 msgid "guestfs_vgcreate"
14987 msgstr ""
14988
14989 # type: verbatim
14990 #: ../src/guestfs-actions.pod:6559
14991 #, no-wrap
14992 msgid ""
14993 " int\n"
14994 " guestfs_vgcreate (guestfs_h *g,\n"
14995 "                   const char *volgroup,\n"
14996 "                   char *const *physvols);\n"
14997 "\n"
14998 msgstr ""
14999
15000 # type: textblock
15001 #: ../src/guestfs-actions.pod:6564 ../fish/guestfish-actions.pod:4408
15002 msgid ""
15003 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15004 "of physical volumes C<physvols>."
15005 msgstr ""
15006
15007 # type: =head2
15008 #: ../src/guestfs-actions.pod:6571
15009 msgid "guestfs_vglvuuids"
15010 msgstr ""
15011
15012 # type: verbatim
15013 #: ../src/guestfs-actions.pod:6573
15014 #, no-wrap
15015 msgid ""
15016 " char **\n"
15017 " guestfs_vglvuuids (guestfs_h *g,\n"
15018 "                    const char *vgname);\n"
15019 "\n"
15020 msgstr ""
15021
15022 # type: textblock
15023 #: ../src/guestfs-actions.pod:6577 ../fish/guestfish-actions.pod:4415
15024 msgid ""
15025 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15026 "volumes created in this volume group."
15027 msgstr ""
15028
15029 # type: textblock
15030 #: ../src/guestfs-actions.pod:6580
15031 msgid ""
15032 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15033 "associate logical volumes and volume groups."
15034 msgstr ""
15035
15036 # type: textblock
15037 #: ../src/guestfs-actions.pod:6583
15038 msgid "See also C<guestfs_vgpvuuids>."
15039 msgstr ""
15040
15041 # type: =head2
15042 #: ../src/guestfs-actions.pod:6591
15043 msgid "guestfs_vgpvuuids"
15044 msgstr ""
15045
15046 # type: verbatim
15047 #: ../src/guestfs-actions.pod:6593
15048 #, no-wrap
15049 msgid ""
15050 " char **\n"
15051 " guestfs_vgpvuuids (guestfs_h *g,\n"
15052 "                    const char *vgname);\n"
15053 "\n"
15054 msgstr ""
15055
15056 # type: textblock
15057 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4427
15058 msgid ""
15059 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15060 "volumes that this volume group resides on."
15061 msgstr ""
15062
15063 # type: textblock
15064 #: ../src/guestfs-actions.pod:6600
15065 msgid ""
15066 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15067 "associate physical volumes and volume groups."
15068 msgstr ""
15069
15070 # type: textblock
15071 #: ../src/guestfs-actions.pod:6603
15072 msgid "See also C<guestfs_vglvuuids>."
15073 msgstr ""
15074
15075 # type: =head2
15076 #: ../src/guestfs-actions.pod:6611
15077 msgid "guestfs_vgremove"
15078 msgstr ""
15079
15080 # type: verbatim
15081 #: ../src/guestfs-actions.pod:6613
15082 #, no-wrap
15083 msgid ""
15084 " int\n"
15085 " guestfs_vgremove (guestfs_h *g,\n"
15086 "                   const char *vgname);\n"
15087 "\n"
15088 msgstr ""
15089
15090 # type: textblock
15091 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4439
15092 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15093 msgstr ""
15094
15095 # type: textblock
15096 #: ../src/guestfs-actions.pod:6619 ../fish/guestfish-actions.pod:4441
15097 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
15098 msgstr ""
15099
15100 # type: =head2
15101 #: ../src/guestfs-actions.pod:6626
15102 msgid "guestfs_vgrename"
15103 msgstr ""
15104
15105 # type: verbatim
15106 #: ../src/guestfs-actions.pod:6628
15107 #, no-wrap
15108 msgid ""
15109 " int\n"
15110 " guestfs_vgrename (guestfs_h *g,\n"
15111 "                   const char *volgroup,\n"
15112 "                   const char *newvolgroup);\n"
15113 "\n"
15114 msgstr ""
15115
15116 # type: textblock
15117 #: ../src/guestfs-actions.pod:6633 ../fish/guestfish-actions.pod:4448
15118 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15119 msgstr ""
15120
15121 # type: =head2
15122 #: ../src/guestfs-actions.pod:6639
15123 msgid "guestfs_vgs"
15124 msgstr ""
15125
15126 # type: verbatim
15127 #: ../src/guestfs-actions.pod:6641
15128 #, no-wrap
15129 msgid ""
15130 " char **\n"
15131 " guestfs_vgs (guestfs_h *g);\n"
15132 "\n"
15133 msgstr ""
15134
15135 # type: textblock
15136 #: ../src/guestfs-actions.pod:6644 ../fish/guestfish-actions.pod:4454
15137 msgid ""
15138 "List all the volumes groups detected.  This is the equivalent of the "
15139 "L<vgs(8)> command."
15140 msgstr ""
15141
15142 # type: textblock
15143 #: ../src/guestfs-actions.pod:6647 ../fish/guestfish-actions.pod:4457
15144 msgid ""
15145 "This returns a list of just the volume group names that were detected "
15146 "(eg. C<VolGroup00>)."
15147 msgstr ""
15148
15149 # type: textblock
15150 #: ../src/guestfs-actions.pod:6650
15151 msgid "See also C<guestfs_vgs_full>."
15152 msgstr ""
15153
15154 # type: =head2
15155 #: ../src/guestfs-actions.pod:6658
15156 msgid "guestfs_vgs_full"
15157 msgstr ""
15158
15159 # type: verbatim
15160 #: ../src/guestfs-actions.pod:6660
15161 #, no-wrap
15162 msgid ""
15163 " struct guestfs_lvm_vg_list *\n"
15164 " guestfs_vgs_full (guestfs_h *g);\n"
15165 "\n"
15166 msgstr ""
15167
15168 # type: textblock
15169 #: ../src/guestfs-actions.pod:6663 ../fish/guestfish-actions.pod:4466
15170 msgid ""
15171 "List all the volumes groups detected.  This is the equivalent of the "
15172 "L<vgs(8)> command.  The \"full\" version includes all fields."
15173 msgstr ""
15174
15175 # type: textblock
15176 #: ../src/guestfs-actions.pod:6666
15177 msgid ""
15178 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15179 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
15180 "use>."
15181 msgstr ""
15182
15183 # type: =head2
15184 #: ../src/guestfs-actions.pod:6672
15185 msgid "guestfs_vgscan"
15186 msgstr ""
15187
15188 # type: verbatim
15189 #: ../src/guestfs-actions.pod:6674
15190 #, no-wrap
15191 msgid ""
15192 " int\n"
15193 " guestfs_vgscan (guestfs_h *g);\n"
15194 "\n"
15195 msgstr ""
15196
15197 # type: textblock
15198 #: ../src/guestfs-actions.pod:6677 ../fish/guestfish-actions.pod:4473
15199 msgid ""
15200 "This rescans all block devices and rebuilds the list of LVM physical "
15201 "volumes, volume groups and logical volumes."
15202 msgstr ""
15203
15204 # type: =head2
15205 #: ../src/guestfs-actions.pod:6684
15206 msgid "guestfs_vguuid"
15207 msgstr ""
15208
15209 # type: verbatim
15210 #: ../src/guestfs-actions.pod:6686
15211 #, no-wrap
15212 msgid ""
15213 " char *\n"
15214 " guestfs_vguuid (guestfs_h *g,\n"
15215 "                 const char *vgname);\n"
15216 "\n"
15217 msgstr ""
15218
15219 # type: textblock
15220 #: ../src/guestfs-actions.pod:6690 ../fish/guestfish-actions.pod:4480
15221 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15222 msgstr ""
15223
15224 # type: =head2
15225 #: ../src/guestfs-actions.pod:6697
15226 msgid "guestfs_wait_ready"
15227 msgstr ""
15228
15229 # type: verbatim
15230 #: ../src/guestfs-actions.pod:6699
15231 #, no-wrap
15232 msgid ""
15233 " int\n"
15234 " guestfs_wait_ready (guestfs_h *g);\n"
15235 "\n"
15236 msgstr ""
15237
15238 # type: textblock
15239 #: ../src/guestfs-actions.pod:6702
15240 msgid "This function is a no op."
15241 msgstr ""
15242
15243 # type: textblock
15244 #: ../src/guestfs-actions.pod:6704
15245 msgid ""
15246 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15247 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15248 "is no longer necessary because C<guestfs_launch> now does the waiting."
15249 msgstr ""
15250
15251 # type: textblock
15252 #: ../src/guestfs-actions.pod:6709
15253 msgid ""
15254 "If you see any calls to this function in code then you can just remove them, "
15255 "unless you want to retain compatibility with older versions of the API."
15256 msgstr ""
15257
15258 # type: =head2
15259 #: ../src/guestfs-actions.pod:6717
15260 msgid "guestfs_wc_c"
15261 msgstr ""
15262
15263 # type: verbatim
15264 #: ../src/guestfs-actions.pod:6719
15265 #, no-wrap
15266 msgid ""
15267 " int\n"
15268 " guestfs_wc_c (guestfs_h *g,\n"
15269 "               const char *path);\n"
15270 "\n"
15271 msgstr ""
15272
15273 # type: textblock
15274 #: ../src/guestfs-actions.pod:6723 ../fish/guestfish-actions.pod:4486
15275 msgid ""
15276 "This command counts the characters in a file, using the C<wc -c> external "
15277 "command."
15278 msgstr ""
15279
15280 # type: =head2
15281 #: ../src/guestfs-actions.pod:6730
15282 msgid "guestfs_wc_l"
15283 msgstr ""
15284
15285 # type: verbatim
15286 #: ../src/guestfs-actions.pod:6732
15287 #, no-wrap
15288 msgid ""
15289 " int\n"
15290 " guestfs_wc_l (guestfs_h *g,\n"
15291 "               const char *path);\n"
15292 "\n"
15293 msgstr ""
15294
15295 # type: textblock
15296 #: ../src/guestfs-actions.pod:6736 ../fish/guestfish-actions.pod:4493
15297 msgid ""
15298 "This command counts the lines in a file, using the C<wc -l> external "
15299 "command."
15300 msgstr ""
15301
15302 # type: =head2
15303 #: ../src/guestfs-actions.pod:6743
15304 msgid "guestfs_wc_w"
15305 msgstr ""
15306
15307 # type: verbatim
15308 #: ../src/guestfs-actions.pod:6745
15309 #, no-wrap
15310 msgid ""
15311 " int\n"
15312 " guestfs_wc_w (guestfs_h *g,\n"
15313 "               const char *path);\n"
15314 "\n"
15315 msgstr ""
15316
15317 # type: textblock
15318 #: ../src/guestfs-actions.pod:6749 ../fish/guestfish-actions.pod:4500
15319 msgid ""
15320 "This command counts the words in a file, using the C<wc -w> external "
15321 "command."
15322 msgstr ""
15323
15324 # type: =head2
15325 #: ../src/guestfs-actions.pod:6756
15326 msgid "guestfs_write"
15327 msgstr ""
15328
15329 # type: verbatim
15330 #: ../src/guestfs-actions.pod:6758
15331 #, no-wrap
15332 msgid ""
15333 " int\n"
15334 " guestfs_write (guestfs_h *g,\n"
15335 "                const char *path,\n"
15336 "                const char *content,\n"
15337 "                size_t content_size);\n"
15338 "\n"
15339 msgstr ""
15340
15341 # type: textblock
15342 #: ../src/guestfs-actions.pod:6764 ../fish/guestfish-actions.pod:4507
15343 msgid ""
15344 "This call creates a file called C<path>.  The content of the file is the "
15345 "string C<content> (which can contain any 8 bit data)."
15346 msgstr ""
15347
15348 # type: =head2
15349 #: ../src/guestfs-actions.pod:6774
15350 msgid "guestfs_write_file"
15351 msgstr ""
15352
15353 # type: verbatim
15354 #: ../src/guestfs-actions.pod:6776
15355 #, no-wrap
15356 msgid ""
15357 " int\n"
15358 " guestfs_write_file (guestfs_h *g,\n"
15359 "                     const char *path,\n"
15360 "                     const char *content,\n"
15361 "                     int size);\n"
15362 "\n"
15363 msgstr ""
15364
15365 # type: textblock
15366 #: ../src/guestfs-actions.pod:6782 ../fish/guestfish-actions.pod:4517
15367 msgid ""
15368 "This call creates a file called C<path>.  The contents of the file is the "
15369 "string C<content> (which can contain any 8 bit data), with length C<size>."
15370 msgstr ""
15371
15372 # type: textblock
15373 #: ../src/guestfs-actions.pod:6786 ../fish/guestfish-actions.pod:4521
15374 msgid ""
15375 "As a special case, if C<size> is C<0> then the length is calculated using "
15376 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15377 msgstr ""
15378
15379 # type: textblock
15380 #: ../src/guestfs-actions.pod:6790 ../fish/guestfish-actions.pod:4525
15381 msgid ""
15382 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15383 "I<not> work, even if the length is specified."
15384 msgstr ""
15385
15386 # type: textblock
15387 #: ../src/guestfs-actions.pod:6798 ../fish/guestfish-actions.pod:4531
15388 msgid "This function is deprecated.  In new code, use the C<write> call instead."
15389 msgstr ""
15390
15391 # type: =head2
15392 #: ../src/guestfs-actions.pod:6807
15393 msgid "guestfs_zegrep"
15394 msgstr ""
15395
15396 # type: verbatim
15397 #: ../src/guestfs-actions.pod:6809
15398 #, no-wrap
15399 msgid ""
15400 " char **\n"
15401 " guestfs_zegrep (guestfs_h *g,\n"
15402 "                 const char *regex,\n"
15403 "                 const char *path);\n"
15404 "\n"
15405 msgstr ""
15406
15407 # type: textblock
15408 #: ../src/guestfs-actions.pod:6814 ../fish/guestfish-actions.pod:4542
15409 msgid "This calls the external C<zegrep> program and returns the matching lines."
15410 msgstr ""
15411
15412 # type: =head2
15413 #: ../src/guestfs-actions.pod:6826
15414 msgid "guestfs_zegrepi"
15415 msgstr ""
15416
15417 # type: verbatim
15418 #: ../src/guestfs-actions.pod:6828
15419 #, no-wrap
15420 msgid ""
15421 " char **\n"
15422 " guestfs_zegrepi (guestfs_h *g,\n"
15423 "                  const char *regex,\n"
15424 "                  const char *path);\n"
15425 "\n"
15426 msgstr ""
15427
15428 # type: textblock
15429 #: ../src/guestfs-actions.pod:6833 ../fish/guestfish-actions.pod:4552
15430 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15431 msgstr ""
15432
15433 # type: =head2
15434 #: ../src/guestfs-actions.pod:6845
15435 msgid "guestfs_zero"
15436 msgstr ""
15437
15438 # type: verbatim
15439 #: ../src/guestfs-actions.pod:6847
15440 #, no-wrap
15441 msgid ""
15442 " int\n"
15443 " guestfs_zero (guestfs_h *g,\n"
15444 "               const char *device);\n"
15445 "\n"
15446 msgstr ""
15447
15448 # type: textblock
15449 #: ../src/guestfs-actions.pod:6851 ../fish/guestfish-actions.pod:4562
15450 msgid "This command writes zeroes over the first few blocks of C<device>."
15451 msgstr ""
15452
15453 # type: textblock
15454 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4564
15455 msgid ""
15456 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15457 "securely wipe the device).  It should be sufficient to remove any partition "
15458 "tables, filesystem superblocks and so on."
15459 msgstr ""
15460
15461 # type: textblock
15462 #: ../src/guestfs-actions.pod:6857
15463 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15464 msgstr ""
15465
15466 # type: =head2
15467 #: ../src/guestfs-actions.pod:6868
15468 msgid "guestfs_zero_device"
15469 msgstr ""
15470
15471 # type: verbatim
15472 #: ../src/guestfs-actions.pod:6870
15473 #, no-wrap
15474 msgid ""
15475 " int\n"
15476 " guestfs_zero_device (guestfs_h *g,\n"
15477 "                      const char *device);\n"
15478 "\n"
15479 msgstr ""
15480
15481 # type: textblock
15482 #: ../src/guestfs-actions.pod:6874
15483 msgid ""
15484 "This command writes zeroes over the entire C<device>.  Compare with "
15485 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15486 msgstr ""
15487
15488 # type: textblock
15489 #: ../src/guestfs-actions.pod:6888
15490 msgid "(Added in 1.3.1)"
15491 msgstr ""
15492
15493 # type: =head2
15494 #: ../src/guestfs-actions.pod:6890
15495 msgid "guestfs_zerofree"
15496 msgstr ""
15497
15498 # type: verbatim
15499 #: ../src/guestfs-actions.pod:6892
15500 #, no-wrap
15501 msgid ""
15502 " int\n"
15503 " guestfs_zerofree (guestfs_h *g,\n"
15504 "                   const char *device);\n"
15505 "\n"
15506 msgstr ""
15507
15508 # type: textblock
15509 #: ../src/guestfs-actions.pod:6896 ../fish/guestfish-actions.pod:4585
15510 msgid ""
15511 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15512 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15513 "possible to compress the filesystem more effectively."
15514 msgstr ""
15515
15516 # type: textblock
15517 #: ../src/guestfs-actions.pod:6901 ../fish/guestfish-actions.pod:4590
15518 msgid "You should B<not> run this program if the filesystem is mounted."
15519 msgstr ""
15520
15521 # type: textblock
15522 #: ../src/guestfs-actions.pod:6904 ../fish/guestfish-actions.pod:4593
15523 msgid ""
15524 "It is possible that using this program can damage the filesystem or data on "
15525 "the filesystem."
15526 msgstr ""
15527
15528 # type: =head2
15529 #: ../src/guestfs-actions.pod:6911
15530 msgid "guestfs_zfgrep"
15531 msgstr ""
15532
15533 # type: verbatim
15534 #: ../src/guestfs-actions.pod:6913
15535 #, no-wrap
15536 msgid ""
15537 " char **\n"
15538 " guestfs_zfgrep (guestfs_h *g,\n"
15539 "                 const char *pattern,\n"
15540 "                 const char *path);\n"
15541 "\n"
15542 msgstr ""
15543
15544 # type: textblock
15545 #: ../src/guestfs-actions.pod:6918 ../fish/guestfish-actions.pod:4600
15546 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15547 msgstr ""
15548
15549 # type: =head2
15550 #: ../src/guestfs-actions.pod:6930
15551 msgid "guestfs_zfgrepi"
15552 msgstr ""
15553
15554 # type: verbatim
15555 #: ../src/guestfs-actions.pod:6932
15556 #, no-wrap
15557 msgid ""
15558 " char **\n"
15559 " guestfs_zfgrepi (guestfs_h *g,\n"
15560 "                  const char *pattern,\n"
15561 "                  const char *path);\n"
15562 "\n"
15563 msgstr ""
15564
15565 # type: textblock
15566 #: ../src/guestfs-actions.pod:6937 ../fish/guestfish-actions.pod:4610
15567 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15568 msgstr ""
15569
15570 # type: =head2
15571 #: ../src/guestfs-actions.pod:6949
15572 msgid "guestfs_zfile"
15573 msgstr ""
15574
15575 # type: verbatim
15576 #: ../src/guestfs-actions.pod:6951
15577 #, no-wrap
15578 msgid ""
15579 " char *\n"
15580 " guestfs_zfile (guestfs_h *g,\n"
15581 "                const char *meth,\n"
15582 "                const char *path);\n"
15583 "\n"
15584 msgstr ""
15585
15586 # type: textblock
15587 #: ../src/guestfs-actions.pod:6956 ../fish/guestfish-actions.pod:4620
15588 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15589 msgstr ""
15590
15591 # type: textblock
15592 #: ../src/guestfs-actions.pod:6959 ../fish/guestfish-actions.pod:4623
15593 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15594 msgstr ""
15595
15596 # type: textblock
15597 #: ../src/guestfs-actions.pod:6961
15598 msgid ""
15599 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15600 "files."
15601 msgstr ""
15602
15603 # type: textblock
15604 #: ../src/guestfs-actions.pod:6967 ../fish/guestfish-actions.pod:4628
15605 msgid "This function is deprecated.  In new code, use the C<file> call instead."
15606 msgstr ""
15607
15608 # type: =head2
15609 #: ../src/guestfs-actions.pod:6976
15610 msgid "guestfs_zgrep"
15611 msgstr ""
15612
15613 # type: verbatim
15614 #: ../src/guestfs-actions.pod:6978
15615 #, no-wrap
15616 msgid ""
15617 " char **\n"
15618 " guestfs_zgrep (guestfs_h *g,\n"
15619 "                const char *regex,\n"
15620 "                const char *path);\n"
15621 "\n"
15622 msgstr ""
15623
15624 # type: textblock
15625 #: ../src/guestfs-actions.pod:6983 ../fish/guestfish-actions.pod:4639
15626 msgid "This calls the external C<zgrep> program and returns the matching lines."
15627 msgstr ""
15628
15629 # type: =head2
15630 #: ../src/guestfs-actions.pod:6995
15631 msgid "guestfs_zgrepi"
15632 msgstr ""
15633
15634 # type: verbatim
15635 #: ../src/guestfs-actions.pod:6997
15636 #, no-wrap
15637 msgid ""
15638 " char **\n"
15639 " guestfs_zgrepi (guestfs_h *g,\n"
15640 "                 const char *regex,\n"
15641 "                 const char *path);\n"
15642 "\n"
15643 msgstr ""
15644
15645 # type: textblock
15646 #: ../src/guestfs-actions.pod:7002 ../fish/guestfish-actions.pod:4649
15647 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15648 msgstr ""
15649
15650 # type: =item
15651 #: ../src/guestfs-availability.pod:3
15652 msgid "B<augeas>"
15653 msgstr ""
15654
15655 # type: textblock
15656 #: ../src/guestfs-availability.pod:5
15657 msgid ""
15658 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15659 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15660 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15661 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15662 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15663 msgstr ""
15664
15665 # type: =item
15666 #: ../src/guestfs-availability.pod:21
15667 msgid "B<inotify>"
15668 msgstr ""
15669
15670 # type: textblock
15671 #: ../src/guestfs-availability.pod:23
15672 msgid ""
15673 "The following functions: L</guestfs_inotify_add_watch> "
15674 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15675 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15676 msgstr ""
15677
15678 # type: =item
15679 #: ../src/guestfs-availability.pod:31
15680 msgid "B<linuxfsuuid>"
15681 msgstr ""
15682
15683 # type: textblock
15684 #: ../src/guestfs-availability.pod:33
15685 msgid ""
15686 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15687 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15688 msgstr ""
15689
15690 # type: =item
15691 #: ../src/guestfs-availability.pod:40
15692 msgid "B<linuxmodules>"
15693 msgstr ""
15694
15695 # type: textblock
15696 #: ../src/guestfs-availability.pod:42
15697 msgid "The following functions: L</guestfs_modprobe>"
15698 msgstr ""
15699
15700 # type: =item
15701 #: ../src/guestfs-availability.pod:45
15702 msgid "B<linuxxattrs>"
15703 msgstr ""
15704
15705 # type: textblock
15706 #: ../src/guestfs-availability.pod:47
15707 msgid ""
15708 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
15709 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
15710 "L</guestfs_removexattr> L</guestfs_setxattr>"
15711 msgstr ""
15712
15713 # type: =item
15714 #: ../src/guestfs-availability.pod:56
15715 msgid "B<luks>"
15716 msgstr ""
15717
15718 # type: textblock
15719 #: ../src/guestfs-availability.pod:58
15720 msgid ""
15721 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
15722 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
15723 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15724 msgstr ""
15725
15726 # type: =item
15727 #: ../src/guestfs-availability.pod:67
15728 msgid "B<lvm2>"
15729 msgstr ""
15730
15731 # type: textblock
15732 #: ../src/guestfs-availability.pod:69
15733 msgid ""
15734 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
15735 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
15736 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
15737 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
15738 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
15739 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
15740 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
15741 "L</guestfs_vgs_full>"
15742 msgstr ""
15743
15744 # type: =item
15745 #: ../src/guestfs-availability.pod:92
15746 msgid "B<mknod>"
15747 msgstr ""
15748
15749 # type: textblock
15750 #: ../src/guestfs-availability.pod:94
15751 msgid ""
15752 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
15753 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
15754 msgstr ""
15755
15756 # type: =item
15757 #: ../src/guestfs-availability.pod:100
15758 msgid "B<ntfs3g>"
15759 msgstr ""
15760
15761 # type: textblock
15762 #: ../src/guestfs-availability.pod:102
15763 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15764 msgstr ""
15765
15766 # type: =item
15767 #: ../src/guestfs-availability.pod:105
15768 msgid "B<ntfsprogs>"
15769 msgstr ""
15770
15771 # type: textblock
15772 #: ../src/guestfs-availability.pod:107
15773 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15774 msgstr ""
15775
15776 # type: =item
15777 #: ../src/guestfs-availability.pod:111
15778 msgid "B<realpath>"
15779 msgstr ""
15780
15781 # type: textblock
15782 #: ../src/guestfs-availability.pod:113
15783 msgid "The following functions: L</guestfs_realpath>"
15784 msgstr ""
15785
15786 # type: =item
15787 #: ../src/guestfs-availability.pod:116
15788 msgid "B<scrub>"
15789 msgstr ""
15790
15791 # type: textblock
15792 #: ../src/guestfs-availability.pod:118
15793 msgid ""
15794 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
15795 "L</guestfs_scrub_freespace>"
15796 msgstr ""
15797
15798 # type: =item
15799 #: ../src/guestfs-availability.pod:123
15800 msgid "B<selinux>"
15801 msgstr ""
15802
15803 # type: textblock
15804 #: ../src/guestfs-availability.pod:125
15805 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15806 msgstr ""
15807
15808 # type: =item
15809 #: ../src/guestfs-availability.pod:129
15810 msgid "B<xz>"
15811 msgstr ""
15812
15813 # type: textblock
15814 #: ../src/guestfs-availability.pod:131
15815 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15816 msgstr ""
15817
15818 # type: =item
15819 #: ../src/guestfs-availability.pod:135
15820 msgid "B<zerofree>"
15821 msgstr ""
15822
15823 # type: textblock
15824 #: ../src/guestfs-availability.pod:137
15825 msgid "The following functions: L</guestfs_zerofree>"
15826 msgstr ""
15827
15828 # type: =head2
15829 #: ../src/guestfs-structs.pod:1
15830 msgid "guestfs_int_bool"
15831 msgstr ""
15832
15833 # type: verbatim
15834 #: ../src/guestfs-structs.pod:3
15835 #, no-wrap
15836 msgid ""
15837 " struct guestfs_int_bool {\n"
15838 "   int32_t i;\n"
15839 "   int32_t b;\n"
15840 " };\n"
15841 " \n"
15842 msgstr ""
15843
15844 # type: verbatim
15845 #: ../src/guestfs-structs.pod:8
15846 #, no-wrap
15847 msgid ""
15848 " struct guestfs_int_bool_list {\n"
15849 "   uint32_t len; /* Number of elements in list. */\n"
15850 "   struct guestfs_int_bool *val; /* Elements. */\n"
15851 " };\n"
15852 " \n"
15853 msgstr ""
15854
15855 # type: verbatim
15856 #: ../src/guestfs-structs.pod:13
15857 #, no-wrap
15858 msgid ""
15859 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15860 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15861 "\n"
15862 msgstr ""
15863
15864 # type: =head2
15865 #: ../src/guestfs-structs.pod:16
15866 msgid "guestfs_lvm_pv"
15867 msgstr ""
15868
15869 # type: verbatim
15870 #: ../src/guestfs-structs.pod:18
15871 #, no-wrap
15872 msgid ""
15873 " struct guestfs_lvm_pv {\n"
15874 "   char *pv_name;\n"
15875 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15876 "*/\n"
15877 "   char pv_uuid[32];\n"
15878 "   char *pv_fmt;\n"
15879 "   uint64_t pv_size;\n"
15880 "   uint64_t dev_size;\n"
15881 "   uint64_t pv_free;\n"
15882 "   uint64_t pv_used;\n"
15883 "   char *pv_attr;\n"
15884 "   int64_t pv_pe_count;\n"
15885 "   int64_t pv_pe_alloc_count;\n"
15886 "   char *pv_tags;\n"
15887 "   uint64_t pe_start;\n"
15888 "   int64_t pv_mda_count;\n"
15889 "   uint64_t pv_mda_free;\n"
15890 " };\n"
15891 " \n"
15892 msgstr ""
15893
15894 # type: verbatim
15895 #: ../src/guestfs-structs.pod:36
15896 #, no-wrap
15897 msgid ""
15898 " struct guestfs_lvm_pv_list {\n"
15899 "   uint32_t len; /* Number of elements in list. */\n"
15900 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15901 " };\n"
15902 " \n"
15903 msgstr ""
15904
15905 # type: verbatim
15906 #: ../src/guestfs-structs.pod:41
15907 #, no-wrap
15908 msgid ""
15909 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15910 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15911 "\n"
15912 msgstr ""
15913
15914 # type: =head2
15915 #: ../src/guestfs-structs.pod:44
15916 msgid "guestfs_lvm_vg"
15917 msgstr ""
15918
15919 # type: verbatim
15920 #: ../src/guestfs-structs.pod:46
15921 #, no-wrap
15922 msgid ""
15923 " struct guestfs_lvm_vg {\n"
15924 "   char *vg_name;\n"
15925 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15926 "*/\n"
15927 "   char vg_uuid[32];\n"
15928 "   char *vg_fmt;\n"
15929 "   char *vg_attr;\n"
15930 "   uint64_t vg_size;\n"
15931 "   uint64_t vg_free;\n"
15932 "   char *vg_sysid;\n"
15933 "   uint64_t vg_extent_size;\n"
15934 "   int64_t vg_extent_count;\n"
15935 "   int64_t vg_free_count;\n"
15936 "   int64_t max_lv;\n"
15937 "   int64_t max_pv;\n"
15938 "   int64_t pv_count;\n"
15939 "   int64_t lv_count;\n"
15940 "   int64_t snap_count;\n"
15941 "   int64_t vg_seqno;\n"
15942 "   char *vg_tags;\n"
15943 "   int64_t vg_mda_count;\n"
15944 "   uint64_t vg_mda_free;\n"
15945 " };\n"
15946 " \n"
15947 msgstr ""
15948
15949 # type: verbatim
15950 #: ../src/guestfs-structs.pod:69
15951 #, no-wrap
15952 msgid ""
15953 " struct guestfs_lvm_vg_list {\n"
15954 "   uint32_t len; /* Number of elements in list. */\n"
15955 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15956 " };\n"
15957 " \n"
15958 msgstr ""
15959
15960 # type: verbatim
15961 #: ../src/guestfs-structs.pod:74
15962 #, no-wrap
15963 msgid ""
15964 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
15965 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
15966 "\n"
15967 msgstr ""
15968
15969 # type: =head2
15970 #: ../src/guestfs-structs.pod:77
15971 msgid "guestfs_lvm_lv"
15972 msgstr ""
15973
15974 # type: verbatim
15975 #: ../src/guestfs-structs.pod:79
15976 #, no-wrap
15977 msgid ""
15978 " struct guestfs_lvm_lv {\n"
15979 "   char *lv_name;\n"
15980 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15981 "*/\n"
15982 "   char lv_uuid[32];\n"
15983 "   char *lv_attr;\n"
15984 "   int64_t lv_major;\n"
15985 "   int64_t lv_minor;\n"
15986 "   int64_t lv_kernel_major;\n"
15987 "   int64_t lv_kernel_minor;\n"
15988 "   uint64_t lv_size;\n"
15989 "   int64_t seg_count;\n"
15990 "   char *origin;\n"
15991 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15992 "   float snap_percent;\n"
15993 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15994 "   float copy_percent;\n"
15995 "   char *move_pv;\n"
15996 "   char *lv_tags;\n"
15997 "   char *mirror_log;\n"
15998 "   char *modules;\n"
15999 " };\n"
16000 " \n"
16001 msgstr ""
16002
16003 # type: verbatim
16004 #: ../src/guestfs-structs.pod:101
16005 #, no-wrap
16006 msgid ""
16007 " struct guestfs_lvm_lv_list {\n"
16008 "   uint32_t len; /* Number of elements in list. */\n"
16009 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16010 " };\n"
16011 " \n"
16012 msgstr ""
16013
16014 # type: verbatim
16015 #: ../src/guestfs-structs.pod:106
16016 #, no-wrap
16017 msgid ""
16018 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16019 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16020 "\n"
16021 msgstr ""
16022
16023 # type: verbatim
16024 #: ../src/guestfs-structs.pod:111
16025 #, no-wrap
16026 msgid ""
16027 " struct guestfs_stat {\n"
16028 "   int64_t dev;\n"
16029 "   int64_t ino;\n"
16030 "   int64_t mode;\n"
16031 "   int64_t nlink;\n"
16032 "   int64_t uid;\n"
16033 "   int64_t gid;\n"
16034 "   int64_t rdev;\n"
16035 "   int64_t size;\n"
16036 "   int64_t blksize;\n"
16037 "   int64_t blocks;\n"
16038 "   int64_t atime;\n"
16039 "   int64_t mtime;\n"
16040 "   int64_t ctime;\n"
16041 " };\n"
16042 " \n"
16043 msgstr ""
16044
16045 # type: verbatim
16046 #: ../src/guestfs-structs.pod:127
16047 #, no-wrap
16048 msgid ""
16049 " struct guestfs_stat_list {\n"
16050 "   uint32_t len; /* Number of elements in list. */\n"
16051 "   struct guestfs_stat *val; /* Elements. */\n"
16052 " };\n"
16053 " \n"
16054 msgstr ""
16055
16056 # type: verbatim
16057 #: ../src/guestfs-structs.pod:132
16058 #, no-wrap
16059 msgid ""
16060 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16061 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16062 "\n"
16063 msgstr ""
16064
16065 # type: verbatim
16066 #: ../src/guestfs-structs.pod:137
16067 #, no-wrap
16068 msgid ""
16069 " struct guestfs_statvfs {\n"
16070 "   int64_t bsize;\n"
16071 "   int64_t frsize;\n"
16072 "   int64_t blocks;\n"
16073 "   int64_t bfree;\n"
16074 "   int64_t bavail;\n"
16075 "   int64_t files;\n"
16076 "   int64_t ffree;\n"
16077 "   int64_t favail;\n"
16078 "   int64_t fsid;\n"
16079 "   int64_t flag;\n"
16080 "   int64_t namemax;\n"
16081 " };\n"
16082 " \n"
16083 msgstr ""
16084
16085 # type: verbatim
16086 #: ../src/guestfs-structs.pod:151
16087 #, no-wrap
16088 msgid ""
16089 " struct guestfs_statvfs_list {\n"
16090 "   uint32_t len; /* Number of elements in list. */\n"
16091 "   struct guestfs_statvfs *val; /* Elements. */\n"
16092 " };\n"
16093 " \n"
16094 msgstr ""
16095
16096 # type: verbatim
16097 #: ../src/guestfs-structs.pod:156
16098 #, no-wrap
16099 msgid ""
16100 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16101 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16102 "\n"
16103 msgstr ""
16104
16105 # type: =head2
16106 #: ../src/guestfs-structs.pod:159
16107 msgid "guestfs_dirent"
16108 msgstr ""
16109
16110 # type: verbatim
16111 #: ../src/guestfs-structs.pod:161
16112 #, no-wrap
16113 msgid ""
16114 " struct guestfs_dirent {\n"
16115 "   int64_t ino;\n"
16116 "   char ftyp;\n"
16117 "   char *name;\n"
16118 " };\n"
16119 " \n"
16120 msgstr ""
16121
16122 # type: verbatim
16123 #: ../src/guestfs-structs.pod:167
16124 #, no-wrap
16125 msgid ""
16126 " struct guestfs_dirent_list {\n"
16127 "   uint32_t len; /* Number of elements in list. */\n"
16128 "   struct guestfs_dirent *val; /* Elements. */\n"
16129 " };\n"
16130 " \n"
16131 msgstr ""
16132
16133 # type: verbatim
16134 #: ../src/guestfs-structs.pod:172
16135 #, no-wrap
16136 msgid ""
16137 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16138 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16139 "\n"
16140 msgstr ""
16141
16142 # type: verbatim
16143 #: ../src/guestfs-structs.pod:177
16144 #, no-wrap
16145 msgid ""
16146 " struct guestfs_version {\n"
16147 "   int64_t major;\n"
16148 "   int64_t minor;\n"
16149 "   int64_t release;\n"
16150 "   char *extra;\n"
16151 " };\n"
16152 " \n"
16153 msgstr ""
16154
16155 # type: verbatim
16156 #: ../src/guestfs-structs.pod:184
16157 #, no-wrap
16158 msgid ""
16159 " struct guestfs_version_list {\n"
16160 "   uint32_t len; /* Number of elements in list. */\n"
16161 "   struct guestfs_version *val; /* Elements. */\n"
16162 " };\n"
16163 " \n"
16164 msgstr ""
16165
16166 # type: verbatim
16167 #: ../src/guestfs-structs.pod:189
16168 #, no-wrap
16169 msgid ""
16170 " void guestfs_free_version (struct guestfs_free_version *);\n"
16171 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16172 "\n"
16173 msgstr ""
16174
16175 # type: =head2
16176 #: ../src/guestfs-structs.pod:192
16177 msgid "guestfs_xattr"
16178 msgstr ""
16179
16180 # type: verbatim
16181 #: ../src/guestfs-structs.pod:194
16182 #, no-wrap
16183 msgid ""
16184 " struct guestfs_xattr {\n"
16185 "   char *attrname;\n"
16186 "   /* The next two fields describe a byte array. */\n"
16187 "   uint32_t attrval_len;\n"
16188 "   char *attrval;\n"
16189 " };\n"
16190 " \n"
16191 msgstr ""
16192
16193 # type: verbatim
16194 #: ../src/guestfs-structs.pod:201
16195 #, no-wrap
16196 msgid ""
16197 " struct guestfs_xattr_list {\n"
16198 "   uint32_t len; /* Number of elements in list. */\n"
16199 "   struct guestfs_xattr *val; /* Elements. */\n"
16200 " };\n"
16201 " \n"
16202 msgstr ""
16203
16204 # type: verbatim
16205 #: ../src/guestfs-structs.pod:206
16206 #, no-wrap
16207 msgid ""
16208 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16209 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16210 "\n"
16211 msgstr ""
16212
16213 # type: =head2
16214 #: ../src/guestfs-structs.pod:209
16215 msgid "guestfs_inotify_event"
16216 msgstr ""
16217
16218 # type: verbatim
16219 #: ../src/guestfs-structs.pod:211
16220 #, no-wrap
16221 msgid ""
16222 " struct guestfs_inotify_event {\n"
16223 "   int64_t in_wd;\n"
16224 "   uint32_t in_mask;\n"
16225 "   uint32_t in_cookie;\n"
16226 "   char *in_name;\n"
16227 " };\n"
16228 " \n"
16229 msgstr ""
16230
16231 # type: verbatim
16232 #: ../src/guestfs-structs.pod:218
16233 #, no-wrap
16234 msgid ""
16235 " struct guestfs_inotify_event_list {\n"
16236 "   uint32_t len; /* Number of elements in list. */\n"
16237 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16238 " };\n"
16239 " \n"
16240 msgstr ""
16241
16242 # type: verbatim
16243 #: ../src/guestfs-structs.pod:223
16244 #, no-wrap
16245 msgid ""
16246 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16247 " void guestfs_free_inotify_event_list (struct "
16248 "guestfs_free_inotify_event_list *);\n"
16249 "\n"
16250 msgstr ""
16251
16252 # type: =head2
16253 #: ../src/guestfs-structs.pod:226
16254 msgid "guestfs_partition"
16255 msgstr ""
16256
16257 # type: verbatim
16258 #: ../src/guestfs-structs.pod:228
16259 #, no-wrap
16260 msgid ""
16261 " struct guestfs_partition {\n"
16262 "   int32_t part_num;\n"
16263 "   uint64_t part_start;\n"
16264 "   uint64_t part_end;\n"
16265 "   uint64_t part_size;\n"
16266 " };\n"
16267 " \n"
16268 msgstr ""
16269
16270 # type: verbatim
16271 #: ../src/guestfs-structs.pod:235
16272 #, no-wrap
16273 msgid ""
16274 " struct guestfs_partition_list {\n"
16275 "   uint32_t len; /* Number of elements in list. */\n"
16276 "   struct guestfs_partition *val; /* Elements. */\n"
16277 " };\n"
16278 " \n"
16279 msgstr ""
16280
16281 # type: verbatim
16282 #: ../src/guestfs-structs.pod:240
16283 #, no-wrap
16284 msgid ""
16285 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16286 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16287 "\n"
16288 msgstr ""
16289
16290 # type: =head2
16291 #: ../src/guestfs-structs.pod:243
16292 msgid "guestfs_application"
16293 msgstr ""
16294
16295 # type: verbatim
16296 #: ../src/guestfs-structs.pod:245
16297 #, no-wrap
16298 msgid ""
16299 " struct guestfs_application {\n"
16300 "   char *app_name;\n"
16301 "   char *app_display_name;\n"
16302 "   int32_t app_epoch;\n"
16303 "   char *app_version;\n"
16304 "   char *app_release;\n"
16305 "   char *app_install_path;\n"
16306 "   char *app_trans_path;\n"
16307 "   char *app_publisher;\n"
16308 "   char *app_url;\n"
16309 "   char *app_source_package;\n"
16310 "   char *app_summary;\n"
16311 "   char *app_description;\n"
16312 " };\n"
16313 " \n"
16314 msgstr ""
16315
16316 # type: verbatim
16317 #: ../src/guestfs-structs.pod:260
16318 #, no-wrap
16319 msgid ""
16320 " struct guestfs_application_list {\n"
16321 "   uint32_t len; /* Number of elements in list. */\n"
16322 "   struct guestfs_application *val; /* Elements. */\n"
16323 " };\n"
16324 " \n"
16325 msgstr ""
16326
16327 # type: verbatim
16328 #: ../src/guestfs-structs.pod:265
16329 #, no-wrap
16330 msgid ""
16331 " void guestfs_free_application (struct guestfs_free_application *);\n"
16332 " void guestfs_free_application_list (struct guestfs_free_application_list "
16333 "*);\n"
16334 "\n"
16335 msgstr ""
16336
16337 # type: textblock
16338 #: ../fish/guestfish.pod:5
16339 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16340 msgstr ""
16341
16342 # type: verbatim
16343 #: ../fish/guestfish.pod:9
16344 #, no-wrap
16345 msgid ""
16346 " guestfish [--options] [commands]\n"
16347 "\n"
16348 msgstr ""
16349
16350 # type: verbatim
16351 #: ../fish/guestfish.pod:11
16352 #, no-wrap
16353 msgid ""
16354 " guestfish\n"
16355 "\n"
16356 msgstr ""
16357
16358 # type: verbatim
16359 #: ../fish/guestfish.pod:13
16360 #, no-wrap
16361 msgid ""
16362 " guestfish [--ro|--rw] -a disk.img\n"
16363 "\n"
16364 msgstr ""
16365
16366 # type: verbatim
16367 #: ../fish/guestfish.pod:15
16368 #, no-wrap
16369 msgid ""
16370 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16371 "\n"
16372 msgstr ""
16373
16374 # type: verbatim
16375 #: ../fish/guestfish.pod:17
16376 #, no-wrap
16377 msgid ""
16378 " guestfish -d libvirt-domain\n"
16379 "\n"
16380 msgstr ""
16381
16382 # type: verbatim
16383 #: ../fish/guestfish.pod:19
16384 #, no-wrap
16385 msgid ""
16386 " guestfish [--ro|--rw] -a disk.img -i\n"
16387 "\n"
16388 msgstr ""
16389
16390 # type: verbatim
16391 #: ../fish/guestfish.pod:21
16392 #, no-wrap
16393 msgid ""
16394 " guestfish -d libvirt-domain -i\n"
16395 "\n"
16396 msgstr ""
16397
16398 # type: =head1
16399 #: ../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
16400 msgid "WARNING"
16401 msgstr ""
16402
16403 # type: textblock
16404 #: ../fish/guestfish.pod:25
16405 msgid ""
16406 "Using guestfish in read/write mode on live virtual machines can be "
16407 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16408 "option to use guestfish safely if the disk image or virtual machine might be "
16409 "live."
16410 msgstr ""
16411
16412 # type: textblock
16413 #: ../fish/guestfish.pod:32
16414 msgid ""
16415 "Guestfish is a shell and command-line tool for examining and modifying "
16416 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16417 "functionality of the guestfs API, see L<guestfs(3)>."
16418 msgstr ""
16419
16420 # type: textblock
16421 #: ../fish/guestfish.pod:36
16422 msgid ""
16423 "Guestfish gives you structured access to the libguestfs API, from shell "
16424 "scripts or the command line or interactively.  If you want to rescue a "
16425 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16426 "command."
16427 msgstr ""
16428
16429 # type: =head1
16430 #: ../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
16431 msgid "EXAMPLES"
16432 msgstr ""
16433
16434 # type: =head2
16435 #: ../fish/guestfish.pod:43
16436 msgid "As an interactive shell"
16437 msgstr ""
16438
16439 # type: verbatim
16440 #: ../fish/guestfish.pod:45
16441 #, no-wrap
16442 msgid ""
16443 " $ guestfish\n"
16444 " \n"
16445 msgstr ""
16446
16447 # type: verbatim
16448 #: ../fish/guestfish.pod:47
16449 #, no-wrap
16450 msgid ""
16451 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16452 " editing virtual machine filesystems.\n"
16453 " \n"
16454 msgstr ""
16455
16456 # type: verbatim
16457 #: ../fish/guestfish.pod:50
16458 #, no-wrap
16459 msgid ""
16460 " Type: 'help' for a list of commands\n"
16461 "       'man' to read the manual\n"
16462 "       'quit' to quit the shell\n"
16463 " \n"
16464 msgstr ""
16465
16466 # type: verbatim
16467 #: ../fish/guestfish.pod:54
16468 #, no-wrap
16469 msgid ""
16470 " ><fs> add-ro disk.img\n"
16471 " ><fs> run\n"
16472 " ><fs> list-filesystems\n"
16473 " /dev/sda1: ext4\n"
16474 " /dev/vg_guest/lv_root: ext4\n"
16475 " /dev/vg_guest/lv_swap: swap\n"
16476 " ><fs> mount /dev/vg_guest/lv_root /\n"
16477 " ><fs> cat /etc/fstab\n"
16478 " # /etc/fstab\n"
16479 " # Created by anaconda\n"
16480 " [...]\n"
16481 " ><fs> exit\n"
16482 "\n"
16483 msgstr ""
16484
16485 # type: =head2
16486 #: ../fish/guestfish.pod:67
16487 msgid "From shell scripts"
16488 msgstr ""
16489
16490 # type: textblock
16491 #: ../fish/guestfish.pod:69
16492 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16493 msgstr ""
16494
16495 # type: verbatim
16496 #: ../fish/guestfish.pod:71
16497 #, no-wrap
16498 msgid ""
16499 " guestfish <<_EOF_\n"
16500 " add disk.img\n"
16501 " run\n"
16502 " mount /dev/vg_guest/lv_root /\n"
16503 " write /etc/motd \"Welcome, new users\"\n"
16504 " _EOF_\n"
16505 "\n"
16506 msgstr ""
16507
16508 # type: textblock
16509 #: ../fish/guestfish.pod:78
16510 msgid "List the LVM logical volumes in a disk image:"
16511 msgstr ""
16512
16513 # type: verbatim
16514 #: ../fish/guestfish.pod:80
16515 #, no-wrap
16516 msgid ""
16517 " guestfish -a disk.img --ro <<_EOF_\n"
16518 " run\n"
16519 " lvs\n"
16520 " _EOF_\n"
16521 "\n"
16522 msgstr ""
16523
16524 # type: textblock
16525 #: ../fish/guestfish.pod:85
16526 msgid "List all the filesystems in a disk image:"
16527 msgstr ""
16528
16529 # type: verbatim
16530 #: ../fish/guestfish.pod:87
16531 #, no-wrap
16532 msgid ""
16533 " guestfish -a disk.img --ro <<_EOF_\n"
16534 " run\n"
16535 " list-filesystems\n"
16536 " _EOF_\n"
16537 "\n"
16538 msgstr ""
16539
16540 # type: =head2
16541 #: ../fish/guestfish.pod:92
16542 msgid "On one command line"
16543 msgstr ""
16544
16545 # type: textblock
16546 #: ../fish/guestfish.pod:94
16547 msgid "Update C</etc/resolv.conf> in a guest:"
16548 msgstr ""
16549
16550 # type: verbatim
16551 #: ../fish/guestfish.pod:96
16552 #, no-wrap
16553 msgid ""
16554 " guestfish \\\n"
16555 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16556 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16557 "\n"
16558 msgstr ""
16559
16560 # type: textblock
16561 #: ../fish/guestfish.pod:100
16562 msgid "Edit C</boot/grub/grub.conf> interactively:"
16563 msgstr ""
16564
16565 # type: verbatim
16566 #: ../fish/guestfish.pod:102
16567 #, no-wrap
16568 msgid ""
16569 " guestfish --rw --add disk.img \\\n"
16570 "   --mount /dev/vg_guest/lv_root \\\n"
16571 "   --mount /dev/sda1:/boot \\\n"
16572 "   edit /boot/grub/grub.conf\n"
16573 "\n"
16574 msgstr ""
16575
16576 # type: =head2
16577 #: ../fish/guestfish.pod:107
16578 msgid "Mount disks automatically"
16579 msgstr ""
16580
16581 # type: textblock
16582 #: ../fish/guestfish.pod:109
16583 msgid ""
16584 "Use the I<-i> option to automatically mount the disks from a virtual "
16585 "machine:"
16586 msgstr ""
16587
16588 # type: verbatim
16589 #: ../fish/guestfish.pod:112
16590 #, no-wrap
16591 msgid ""
16592 " guestfish --ro -a disk.img -i cat /etc/group\n"
16593 "\n"
16594 msgstr ""
16595
16596 # type: verbatim
16597 #: ../fish/guestfish.pod:114
16598 #, no-wrap
16599 msgid ""
16600 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16601 "\n"
16602 msgstr ""
16603
16604 # type: textblock
16605 #: ../fish/guestfish.pod:116
16606 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16607 msgstr ""
16608
16609 # type: verbatim
16610 #: ../fish/guestfish.pod:118
16611 #, no-wrap
16612 msgid ""
16613 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16614 "\n"
16615 msgstr ""
16616
16617 # type: =head2
16618 #: ../fish/guestfish.pod:120
16619 msgid "As a script interpreter"
16620 msgstr ""
16621
16622 # type: textblock
16623 #: ../fish/guestfish.pod:122
16624 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16625 msgstr ""
16626
16627 # type: verbatim
16628 #: ../fish/guestfish.pod:124
16629 #, no-wrap
16630 msgid ""
16631 " #!/usr/bin/guestfish -f\n"
16632 " sparse test1.img 100M\n"
16633 " run\n"
16634 " part-disk /dev/sda mbr\n"
16635 " mkfs ext2 /dev/sda1\n"
16636 "\n"
16637 msgstr ""
16638
16639 # type: =head2
16640 #: ../fish/guestfish.pod:130
16641 msgid "Start with a prepared disk"
16642 msgstr ""
16643
16644 # type: textblock
16645 #: ../fish/guestfish.pod:132
16646 msgid ""
16647 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16648 "single ext2-formatted partition:"
16649 msgstr ""
16650
16651 # type: verbatim
16652 #: ../fish/guestfish.pod:135
16653 #, no-wrap
16654 msgid ""
16655 " guestfish -N fs\n"
16656 "\n"
16657 msgstr ""
16658
16659 # type: textblock
16660 #: ../fish/guestfish.pod:137
16661 msgid "To list what is available do:"
16662 msgstr ""
16663
16664 # type: verbatim
16665 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
16666 #, no-wrap
16667 msgid ""
16668 " guestfish -N help | less\n"
16669 "\n"
16670 msgstr ""
16671
16672 # type: =head2
16673 #: ../fish/guestfish.pod:141
16674 msgid "Remote control"
16675 msgstr ""
16676
16677 # type: verbatim
16678 #: ../fish/guestfish.pod:143
16679 #, no-wrap
16680 msgid ""
16681 " eval \"`guestfish --listen`\"\n"
16682 " guestfish --remote add-ro disk.img\n"
16683 " guestfish --remote run\n"
16684 " guestfish --remote lvs\n"
16685 "\n"
16686 msgstr ""
16687
16688 # type: =head1
16689 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68 ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171 ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257 ../tools/virt-list-filesystems.pl:50 ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
16690 msgid "OPTIONS"
16691 msgstr ""
16692
16693 # type: =item
16694 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131 ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86 ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58 ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
16695 msgid "B<--help>"
16696 msgstr ""
16697
16698 # type: textblock
16699 #: ../fish/guestfish.pod:154
16700 msgid "Displays general help on options."
16701 msgstr ""
16702
16703 # type: =item
16704 #: ../fish/guestfish.pod:156
16705 msgid "B<-h> | B<--cmd-help>"
16706 msgstr ""
16707
16708 # type: textblock
16709 #: ../fish/guestfish.pod:158
16710 msgid "Lists all available guestfish commands."
16711 msgstr ""
16712
16713 # type: =item
16714 #: ../fish/guestfish.pod:160
16715 msgid "B<-h cmd> | B<--cmd-help cmd>"
16716 msgstr ""
16717
16718 # type: textblock
16719 #: ../fish/guestfish.pod:162
16720 msgid "Displays detailed help on a single command C<cmd>."
16721 msgstr ""
16722
16723 # type: =item
16724 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16725 msgid "B<-a image> | B<--add image>"
16726 msgstr ""
16727
16728 # type: textblock
16729 #: ../fish/guestfish.pod:166
16730 msgid "Add a block device or virtual machine image to the shell."
16731 msgstr ""
16732
16733 # type: textblock
16734 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16735 msgid ""
16736 "The format of the disk image is auto-detected.  To override this and force a "
16737 "particular format use the I<--format=..> option."
16738 msgstr ""
16739
16740 # type: =item
16741 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16742 msgid "B<-c URI> | B<--connect URI>"
16743 msgstr ""
16744
16745 # type: textblock
16746 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16747 msgid ""
16748 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16749 "URI to use.  The default is to use the default libvirt connection."
16750 msgstr ""
16751
16752 # type: =item
16753 #: ../fish/guestfish.pod:177
16754 msgid "B<--csh>"
16755 msgstr ""
16756
16757 # type: textblock
16758 #: ../fish/guestfish.pod:179
16759 msgid ""
16760 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16761 "section L</REMOTE CONTROL AND CSH> below."
16762 msgstr ""
16763
16764 # type: =item
16765 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16766 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16767 msgstr ""
16768
16769 # type: textblock
16770 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16771 msgid ""
16772 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16773 "used, then any libvirt domain can be used.  However in write mode, only "
16774 "libvirt domains which are shut down can be named here."
16775 msgstr ""
16776
16777 # type: =item
16778 #: ../fish/guestfish.pod:188
16779 msgid "B<-D> | B<--no-dest-paths>"
16780 msgstr ""
16781
16782 # type: textblock
16783 #: ../fish/guestfish.pod:190
16784 msgid ""
16785 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16786 "to hit the tab key to complete paths on the guest filesystem, but this "
16787 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16788 "allow this feature to be disabled."
16789 msgstr ""
16790
16791 # type: =item
16792 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16793 msgid "B<--echo-keys>"
16794 msgstr ""
16795
16796 # type: textblock
16797 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16798 msgid ""
16799 "When prompting for keys and passphrases, guestfish normally turns echoing "
16800 "off so you cannot see what you are typing.  If you are not worried about "
16801 "Tempest attacks and there is no one else in the room you can specify this "
16802 "flag to see what you are typing."
16803 msgstr ""
16804
16805 # type: =item
16806 #: ../fish/guestfish.pod:202
16807 msgid "B<-f file> | B<--file file>"
16808 msgstr ""
16809
16810 # type: textblock
16811 #: ../fish/guestfish.pod:204
16812 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16813 msgstr ""
16814
16815 # type: verbatim
16816 #: ../fish/guestfish.pod:207
16817 #, no-wrap
16818 msgid ""
16819 " #!/usr/bin/guestfish -f\n"
16820 "\n"
16821 msgstr ""
16822
16823 # type: =item
16824 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16825 msgid "B<--format=raw|qcow2|..> | B<--format>"
16826 msgstr ""
16827
16828 # type: textblock
16829 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
16830 msgid ""
16831 "The default for the I<-a> option is to auto-detect the format of the disk "
16832 "image.  Using this forces the disk format for I<-a> options which follow on "
16833 "the command line.  Using I<--format> with no argument switches back to "
16834 "auto-detection for subsequent I<-a> options."
16835 msgstr ""
16836
16837 # type: textblock
16838 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543 ../inspector/virt-inspector.pl:431
16839 msgid "For example:"
16840 msgstr ""
16841
16842 # type: verbatim
16843 #: ../fish/guestfish.pod:218
16844 #, no-wrap
16845 msgid ""
16846 " guestfish --format=raw -a disk.img\n"
16847 "\n"
16848 msgstr ""
16849
16850 # type: textblock
16851 #: ../fish/guestfish.pod:220
16852 msgid "forces raw format (no auto-detection) for C<disk.img>."
16853 msgstr ""
16854
16855 # type: verbatim
16856 #: ../fish/guestfish.pod:222
16857 #, no-wrap
16858 msgid ""
16859 " guestfish --format=raw -a disk.img --format -a another.img\n"
16860 "\n"
16861 msgstr ""
16862
16863 # type: textblock
16864 #: ../fish/guestfish.pod:224
16865 msgid ""
16866 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
16867 "auto-detection for C<another.img>."
16868 msgstr ""
16869
16870 # type: textblock
16871 #: ../fish/guestfish.pod:227
16872 msgid ""
16873 "If you have untrusted raw-format guest disk images, you should use this "
16874 "option to specify the disk format.  This avoids a possible security problem "
16875 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16876 msgstr ""
16877
16878 # type: =item
16879 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
16880 msgid "B<-i> | B<--inspector>"
16881 msgstr ""
16882
16883 # type: textblock
16884 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
16885 msgid ""
16886 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16887 "system and mount filesystems as they would be mounted on the real virtual "
16888 "machine."
16889 msgstr ""
16890
16891 # type: textblock
16892 #: ../fish/guestfish.pod:238
16893 msgid "Typical usage is either:"
16894 msgstr ""
16895
16896 # type: verbatim
16897 #: ../fish/guestfish.pod:240
16898 #, no-wrap
16899 msgid ""
16900 " guestfish -d myguest -i\n"
16901 "\n"
16902 msgstr ""
16903
16904 # type: textblock
16905 #: ../fish/guestfish.pod:242
16906 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16907 msgstr ""
16908
16909 # type: verbatim
16910 #: ../fish/guestfish.pod:244
16911 #, no-wrap
16912 msgid ""
16913 " guestfish --ro -d myguest -i\n"
16914 "\n"
16915 msgstr ""
16916
16917 # type: textblock
16918 #: ../fish/guestfish.pod:246
16919 msgid "(for active domains, readonly), or specify the block device directly:"
16920 msgstr ""
16921
16922 # type: verbatim
16923 #: ../fish/guestfish.pod:248
16924 #, no-wrap
16925 msgid ""
16926 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16927 "\n"
16928 msgstr ""
16929
16930 # type: textblock
16931 #: ../fish/guestfish.pod:250
16932 msgid ""
16933 "Note that the command line syntax changed slightly over older versions of "
16934 "guestfish.  You can still use the old syntax:"
16935 msgstr ""
16936
16937 # type: verbatim
16938 #: ../fish/guestfish.pod:253
16939 #, no-wrap
16940 msgid ""
16941 " guestfish [--ro] -i disk.img\n"
16942 "\n"
16943 msgstr ""
16944
16945 # type: verbatim
16946 #: ../fish/guestfish.pod:255
16947 #, no-wrap
16948 msgid ""
16949 " guestfish [--ro] -i libvirt-domain\n"
16950 "\n"
16951 msgstr ""
16952
16953 # type: =item
16954 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
16955 msgid "B<--keys-from-stdin>"
16956 msgstr ""
16957
16958 # type: textblock
16959 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
16960 msgid ""
16961 "Read key or passphrase parameters from stdin.  The default is to try to read "
16962 "passphrases from the user by opening C</dev/tty>."
16963 msgstr ""
16964
16965 # type: =item
16966 #: ../fish/guestfish.pod:262
16967 msgid "B<--listen>"
16968 msgstr ""
16969
16970 # type: textblock
16971 #: ../fish/guestfish.pod:264
16972 msgid ""
16973 "Fork into the background and listen for remote commands.  See section "
16974 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16975 msgstr ""
16976
16977 # type: =item
16978 #: ../fish/guestfish.pod:267
16979 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
16980 msgstr ""
16981
16982 # type: textblock
16983 #: ../fish/guestfish.pod:269
16984 msgid "Mount the named partition or logical volume on the given mountpoint."
16985 msgstr ""
16986
16987 # type: textblock
16988 #: ../fish/guestfish.pod:271
16989 msgid "If the mountpoint is omitted, it defaults to C</>."
16990 msgstr ""
16991
16992 # type: textblock
16993 #: ../fish/guestfish.pod:273
16994 msgid "You have to mount something on C</> before most commands will work."
16995 msgstr ""
16996
16997 # type: textblock
16998 #: ../fish/guestfish.pod:275
16999 msgid ""
17000 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17001 "launched."
17002 msgstr ""
17003
17004 # type: textblock
17005 #: ../fish/guestfish.pod:278
17006 msgid ""
17007 "If you don't know what filesystems a disk image contains, you can either run "
17008 "guestfish without this option, then list the partitions and LVs available "
17009 "(see L</list-partitions> and L</lvs> commands), or you can use the "
17010 "L<virt-list-filesystems(1)> program."
17011 msgstr ""
17012
17013 # type: =item
17014 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
17015 msgid "B<-n> | B<--no-sync>"
17016 msgstr ""
17017
17018 # type: textblock
17019 #: ../fish/guestfish.pod:285
17020 msgid ""
17021 "Disable autosync.  This is enabled by default.  See the discussion of "
17022 "autosync in the L<guestfs(3)> manpage."
17023 msgstr ""
17024
17025 # type: =item
17026 #: ../fish/guestfish.pod:288
17027 msgid "B<-N type> | B<--new type> | B<-N help>"
17028 msgstr ""
17029
17030 # type: textblock
17031 #: ../fish/guestfish.pod:290
17032 msgid ""
17033 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17034 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17035 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17036 "IMAGES> below."
17037 msgstr ""
17038
17039 # type: =item
17040 #: ../fish/guestfish.pod:295
17041 msgid "B<--progress-bars>"
17042 msgstr ""
17043
17044 # type: textblock
17045 #: ../fish/guestfish.pod:297
17046 msgid "Enable progress bars, even when guestfish is used non-interactively."
17047 msgstr ""
17048
17049 # type: textblock
17050 #: ../fish/guestfish.pod:299
17051 msgid ""
17052 "Progress bars are enabled by default when guestfish is used as an "
17053 "interactive shell."
17054 msgstr ""
17055
17056 # type: =item
17057 #: ../fish/guestfish.pod:302
17058 msgid "B<--no-progress-bars>"
17059 msgstr ""
17060
17061 # type: textblock
17062 #: ../fish/guestfish.pod:304
17063 msgid "Disable progress bars."
17064 msgstr ""
17065
17066 # type: =item
17067 #: ../fish/guestfish.pod:306
17068 msgid "B<--remote[=pid]>"
17069 msgstr ""
17070
17071 # type: textblock
17072 #: ../fish/guestfish.pod:308
17073 msgid ""
17074 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17075 "CONTROL GUESTFISH OVER A SOCKET> below."
17076 msgstr ""
17077
17078 # type: =item
17079 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
17080 msgid "B<-r> | B<--ro>"
17081 msgstr ""
17082
17083 # type: textblock
17084 #: ../fish/guestfish.pod:313
17085 msgid ""
17086 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17087 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17088 msgstr ""
17089
17090 # type: textblock
17091 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
17092 msgid ""
17093 "The option must always be used if the disk image or virtual machine might be "
17094 "running, and is generally recommended in cases where you don't need write "
17095 "access to the disk."
17096 msgstr ""
17097
17098 # type: textblock
17099 #: ../fish/guestfish.pod:320
17100 msgid ""
17101 "Note that prepared disk images created with I<-N> are not affected by the "
17102 "I<--ro> option."
17103 msgstr ""
17104
17105 # type: textblock
17106 #: ../fish/guestfish.pod:323
17107 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17108 msgstr ""
17109
17110 # type: =item
17111 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208 ../tools/virt-rescue.pl:195
17112 msgid "B<--selinux>"
17113 msgstr ""
17114
17115 # type: textblock
17116 #: ../fish/guestfish.pod:327
17117 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17118 msgstr ""
17119
17120 # type: =item
17121 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
17122 msgid "B<-v> | B<--verbose>"
17123 msgstr ""
17124
17125 # type: textblock
17126 #: ../fish/guestfish.pod:331
17127 msgid ""
17128 "Enable very verbose messages.  This is particularly useful if you find a "
17129 "bug."
17130 msgstr ""
17131
17132 # type: =item
17133 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
17134 msgid "B<-V> | B<--version>"
17135 msgstr ""
17136
17137 # type: textblock
17138 #: ../fish/guestfish.pod:336
17139 msgid "Display the guestfish / libguestfs version number and exit."
17140 msgstr ""
17141
17142 # type: =item
17143 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
17144 msgid "B<-w> | B<--rw>"
17145 msgstr ""
17146
17147 # type: textblock
17148 #: ../fish/guestfish.pod:340
17149 msgid ""
17150 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17151 "WRITE> below."
17152 msgstr ""
17153
17154 # type: =item
17155 #: ../fish/guestfish.pod:343
17156 msgid "B<-x>"
17157 msgstr ""
17158
17159 # type: textblock
17160 #: ../fish/guestfish.pod:345
17161 msgid "Echo each command before executing it."
17162 msgstr ""
17163
17164 # type: =head1
17165 #: ../fish/guestfish.pod:349
17166 msgid "COMMANDS ON COMMAND LINE"
17167 msgstr ""
17168
17169 # type: textblock
17170 #: ../fish/guestfish.pod:351
17171 msgid "Any additional (non-option) arguments are treated as commands to execute."
17172 msgstr ""
17173
17174 # type: textblock
17175 #: ../fish/guestfish.pod:354
17176 msgid ""
17177 "Commands to execute should be separated by a colon (C<:>), where the colon "
17178 "is a separate parameter.  Thus:"
17179 msgstr ""
17180
17181 # type: verbatim
17182 #: ../fish/guestfish.pod:357
17183 #, no-wrap
17184 msgid ""
17185 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17186 "\n"
17187 msgstr ""
17188
17189 # type: textblock
17190 #: ../fish/guestfish.pod:359
17191 msgid ""
17192 "If there are no additional arguments, then we enter a shell, either an "
17193 "interactive shell with a prompt (if the input is a terminal) or a "
17194 "non-interactive shell."
17195 msgstr ""
17196
17197 # type: textblock
17198 #: ../fish/guestfish.pod:363
17199 msgid ""
17200 "In either command line mode or non-interactive shell, the first command that "
17201 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17202 "prompt) if a command fails, you can continue to enter commands."
17203 msgstr ""
17204
17205 # type: =head1
17206 #: ../fish/guestfish.pod:368
17207 msgid "USING launch (OR run)"
17208 msgstr ""
17209
17210 # type: textblock
17211 #: ../fish/guestfish.pod:370
17212 msgid ""
17213 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17214 "then launch it, then mount any disks you need, and finally issue "
17215 "actions/commands.  So the general order of the day is:"
17216 msgstr ""
17217
17218 # type: textblock
17219 #: ../fish/guestfish.pod:378
17220 msgid "add or -a/--add"
17221 msgstr ""
17222
17223 # type: textblock
17224 #: ../fish/guestfish.pod:382
17225 msgid "launch (aka run)"
17226 msgstr ""
17227
17228 # type: textblock
17229 #: ../fish/guestfish.pod:386
17230 msgid "mount or -m/--mount"
17231 msgstr ""
17232
17233 # type: textblock
17234 #: ../fish/guestfish.pod:390
17235 msgid "any other commands"
17236 msgstr ""
17237
17238 # type: textblock
17239 #: ../fish/guestfish.pod:394
17240 msgid ""
17241 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17242 "guest before mounting or performing any other commands."
17243 msgstr ""
17244
17245 # type: textblock
17246 #: ../fish/guestfish.pod:397
17247 msgid ""
17248 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17249 "I<--new> options were given then C<run> is done automatically, simply "
17250 "because guestfish can't perform the action you asked for without doing this."
17251 msgstr ""
17252
17253 # type: =head1
17254 #: ../fish/guestfish.pod:402
17255 msgid "OPENING DISKS FOR READ AND WRITE"
17256 msgstr ""
17257
17258 # type: textblock
17259 #: ../fish/guestfish.pod:404
17260 msgid ""
17261 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17262 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17263 "open disk images read-only or for writing."
17264 msgstr ""
17265
17266 # type: textblock
17267 #: ../fish/guestfish.pod:408
17268 msgid ""
17269 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17270 "disk images supplied on the command line for write.  To open a disk image "
17271 "read-only you have to do I<-a image --ro>."
17272 msgstr ""
17273
17274 # type: textblock
17275 #: ../fish/guestfish.pod:412
17276 msgid ""
17277 "This matters: If you accidentally open a live VM disk image writable then "
17278 "you will cause irreversible disk corruption."
17279 msgstr ""
17280
17281 # type: textblock
17282 #: ../fish/guestfish.pod:415
17283 msgid ""
17284 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17285 "images will be opened read-only.  You will have to either specify "
17286 "I<guestfish --rw> or change a configuration file in order to get write "
17287 "access for disk images specified by those other command line options."
17288 msgstr ""
17289
17290 # type: textblock
17291 #: ../fish/guestfish.pod:420
17292 msgid ""
17293 "This version of guestfish has a I<--rw> option which does nothing (it is "
17294 "already the default).  However it is highly recommended that you use this "
17295 "option to indicate that guestfish needs write access, and to prepare your "
17296 "scripts for the day when this option will be required for write access."
17297 msgstr ""
17298
17299 # type: textblock
17300 #: ../fish/guestfish.pod:426
17301 msgid ""
17302 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17303 "other libguestfs program apart from guestfish and guestmount."
17304 msgstr ""
17305
17306 # type: =head1
17307 #: ../fish/guestfish.pod:429
17308 msgid "QUOTING"
17309 msgstr ""
17310
17311 # type: textblock
17312 #: ../fish/guestfish.pod:431
17313 msgid ""
17314 "You can quote ordinary parameters using either single or double quotes.  For "
17315 "example:"
17316 msgstr ""
17317
17318 # type: verbatim
17319 #: ../fish/guestfish.pod:434
17320 #, no-wrap
17321 msgid ""
17322 " add \"file with a space.img\"\n"
17323 "\n"
17324 msgstr ""
17325
17326 # type: verbatim
17327 #: ../fish/guestfish.pod:436
17328 #, no-wrap
17329 msgid ""
17330 " rm '/file name'\n"
17331 "\n"
17332 msgstr ""
17333
17334 # type: verbatim
17335 #: ../fish/guestfish.pod:438
17336 #, no-wrap
17337 msgid ""
17338 " rm '/\"'\n"
17339 "\n"
17340 msgstr ""
17341
17342 # type: textblock
17343 #: ../fish/guestfish.pod:440
17344 msgid ""
17345 "A few commands require a list of strings to be passed.  For these, use a "
17346 "whitespace-separated list, enclosed in quotes.  Strings containing "
17347 "whitespace to be passed through must be enclosed in single quotes.  A "
17348 "literal single quote must be escaped with a backslash."
17349 msgstr ""
17350
17351 # type: verbatim
17352 #: ../fish/guestfish.pod:445
17353 #, no-wrap
17354 msgid ""
17355 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17356 " command \"/bin/echo 'foo      bar'\"\n"
17357 " command \"/bin/echo \\'foo\\'\"\n"
17358 "\n"
17359 msgstr ""
17360
17361 # type: =head1
17362 #: ../fish/guestfish.pod:449
17363 msgid "OPTIONAL ARGUMENTS"
17364 msgstr ""
17365
17366 # type: textblock
17367 #: ../fish/guestfish.pod:451
17368 msgid ""
17369 "Some commands take optional arguments.  These arguments appear in this "
17370 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17371 msgstr ""
17372
17373 # type: verbatim
17374 #: ../fish/guestfish.pod:455
17375 #, no-wrap
17376 msgid ""
17377 " add-drive-opts filename\n"
17378 "\n"
17379 msgstr ""
17380
17381 # type: verbatim
17382 #: ../fish/guestfish.pod:457
17383 #, no-wrap
17384 msgid ""
17385 " add-drive-opts filename readonly:true\n"
17386 "\n"
17387 msgstr ""
17388
17389 # type: verbatim
17390 #: ../fish/guestfish.pod:459
17391 #, no-wrap
17392 msgid ""
17393 " add-drive-opts filename format:qcow2 readonly:false\n"
17394 "\n"
17395 msgstr ""
17396
17397 # type: textblock
17398 #: ../fish/guestfish.pod:461
17399 msgid ""
17400 "Each optional argument can appear at most once.  All optional arguments must "
17401 "appear after the required ones."
17402 msgstr ""
17403
17404 # type: =head1
17405 #: ../fish/guestfish.pod:464
17406 msgid "NUMBERS"
17407 msgstr ""
17408
17409 # type: textblock
17410 #: ../fish/guestfish.pod:466
17411 msgid "This section applies to all commands which can take integers as parameters."
17412 msgstr ""
17413
17414 # type: =head2
17415 #: ../fish/guestfish.pod:469
17416 msgid "SIZE SUFFIX"
17417 msgstr ""
17418
17419 # type: textblock
17420 #: ../fish/guestfish.pod:471
17421 msgid ""
17422 "When the command takes a parameter measured in bytes, you can use one of the "
17423 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17424 msgstr ""
17425
17426 # type: =item
17427 #: ../fish/guestfish.pod:477
17428 msgid "B<k> or B<K> or B<KiB>"
17429 msgstr ""
17430
17431 # type: textblock
17432 #: ../fish/guestfish.pod:479
17433 msgid "The size in kilobytes (multiplied by 1024)."
17434 msgstr ""
17435
17436 # type: =item
17437 #: ../fish/guestfish.pod:481
17438 msgid "B<KB>"
17439 msgstr ""
17440
17441 # type: textblock
17442 #: ../fish/guestfish.pod:483
17443 msgid "The size in SI 1000 byte units."
17444 msgstr ""
17445
17446 # type: =item
17447 #: ../fish/guestfish.pod:485
17448 msgid "B<M> or B<MiB>"
17449 msgstr ""
17450
17451 # type: textblock
17452 #: ../fish/guestfish.pod:487
17453 msgid "The size in megabytes (multiplied by 1048576)."
17454 msgstr ""
17455
17456 # type: =item
17457 #: ../fish/guestfish.pod:489
17458 msgid "B<MB>"
17459 msgstr ""
17460
17461 # type: textblock
17462 #: ../fish/guestfish.pod:491
17463 msgid "The size in SI 1000000 byte units."
17464 msgstr ""
17465
17466 # type: =item
17467 #: ../fish/guestfish.pod:493
17468 msgid "B<G> or B<GiB>"
17469 msgstr ""
17470
17471 # type: textblock
17472 #: ../fish/guestfish.pod:495
17473 msgid "The size in gigabytes (multiplied by 2**30)."
17474 msgstr ""
17475
17476 # type: =item
17477 #: ../fish/guestfish.pod:497
17478 msgid "B<GB>"
17479 msgstr ""
17480
17481 # type: textblock
17482 #: ../fish/guestfish.pod:499
17483 msgid "The size in SI 10**9 byte units."
17484 msgstr ""
17485
17486 # type: =item
17487 #: ../fish/guestfish.pod:501
17488 msgid "B<T> or B<TiB>"
17489 msgstr ""
17490
17491 # type: textblock
17492 #: ../fish/guestfish.pod:503
17493 msgid "The size in terabytes (multiplied by 2**40)."
17494 msgstr ""
17495
17496 # type: =item
17497 #: ../fish/guestfish.pod:505
17498 msgid "B<TB>"
17499 msgstr ""
17500
17501 # type: textblock
17502 #: ../fish/guestfish.pod:507
17503 msgid "The size in SI 10**12 byte units."
17504 msgstr ""
17505
17506 # type: =item
17507 #: ../fish/guestfish.pod:509
17508 msgid "B<P> or B<PiB>"
17509 msgstr ""
17510
17511 # type: textblock
17512 #: ../fish/guestfish.pod:511
17513 msgid "The size in petabytes (multiplied by 2**50)."
17514 msgstr ""
17515
17516 # type: =item
17517 #: ../fish/guestfish.pod:513
17518 msgid "B<PB>"
17519 msgstr ""
17520
17521 # type: textblock
17522 #: ../fish/guestfish.pod:515
17523 msgid "The size in SI 10**15 byte units."
17524 msgstr ""
17525
17526 # type: =item
17527 #: ../fish/guestfish.pod:517
17528 msgid "B<E> or B<EiB>"
17529 msgstr ""
17530
17531 # type: textblock
17532 #: ../fish/guestfish.pod:519
17533 msgid "The size in exabytes (multiplied by 2**60)."
17534 msgstr ""
17535
17536 # type: =item
17537 #: ../fish/guestfish.pod:521
17538 msgid "B<EB>"
17539 msgstr ""
17540
17541 # type: textblock
17542 #: ../fish/guestfish.pod:523
17543 msgid "The size in SI 10**18 byte units."
17544 msgstr ""
17545
17546 # type: =item
17547 #: ../fish/guestfish.pod:525
17548 msgid "B<Z> or B<ZiB>"
17549 msgstr ""
17550
17551 # type: textblock
17552 #: ../fish/guestfish.pod:527
17553 msgid "The size in zettabytes (multiplied by 2**70)."
17554 msgstr ""
17555
17556 # type: =item
17557 #: ../fish/guestfish.pod:529
17558 msgid "B<ZB>"
17559 msgstr ""
17560
17561 # type: textblock
17562 #: ../fish/guestfish.pod:531
17563 msgid "The size in SI 10**21 byte units."
17564 msgstr ""
17565
17566 # type: =item
17567 #: ../fish/guestfish.pod:533
17568 msgid "B<Y> or B<YiB>"
17569 msgstr ""
17570
17571 # type: textblock
17572 #: ../fish/guestfish.pod:535
17573 msgid "The size in yottabytes (multiplied by 2**80)."
17574 msgstr ""
17575
17576 # type: =item
17577 #: ../fish/guestfish.pod:537
17578 msgid "B<YB>"
17579 msgstr ""
17580
17581 # type: textblock
17582 #: ../fish/guestfish.pod:539
17583 msgid "The size in SI 10**24 byte units."
17584 msgstr ""
17585
17586 # type: verbatim
17587 #: ../fish/guestfish.pod:545
17588 #, no-wrap
17589 msgid ""
17590 " truncate-size /file 1G\n"
17591 "\n"
17592 msgstr ""
17593
17594 # type: textblock
17595 #: ../fish/guestfish.pod:547
17596 msgid "would truncate the file to 1 gigabyte."
17597 msgstr ""
17598
17599 # type: textblock
17600 #: ../fish/guestfish.pod:549
17601 msgid ""
17602 "Be careful because a few commands take sizes in kilobytes or megabytes "
17603 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17604 "Adding a suffix will probably not do what you expect."
17605 msgstr ""
17606
17607 # type: =head2
17608 #: ../fish/guestfish.pod:553
17609 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17610 msgstr ""
17611
17612 # type: textblock
17613 #: ../fish/guestfish.pod:555
17614 msgid ""
17615 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17616 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17617 msgstr ""
17618
17619 # type: verbatim
17620 #: ../fish/guestfish.pod:558
17621 #, no-wrap
17622 msgid ""
17623 " 1234      decimal number 1234\n"
17624 " 02322     octal number, equivalent to decimal 1234\n"
17625 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17626 "\n"
17627 msgstr ""
17628
17629 # type: textblock
17630 #: ../fish/guestfish.pod:562
17631 msgid ""
17632 "When using the C<chmod> command, you almost always want to specify an octal "
17633 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17634 "L<chmod(1)> program):"
17635 msgstr ""
17636
17637 # type: verbatim
17638 #: ../fish/guestfish.pod:566
17639 #, no-wrap
17640 msgid ""
17641 " chmod 0777 /public  # OK\n"
17642 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17643 "\n"
17644 msgstr ""
17645
17646 # type: textblock
17647 #: ../fish/guestfish.pod:569
17648 msgid ""
17649 "Commands that return numbers usually print them in decimal, but some "
17650 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17651 "octal, preceeded by C<0>)."
17652 msgstr ""
17653
17654 # type: =head1
17655 #: ../fish/guestfish.pod:573
17656 msgid "WILDCARDS AND GLOBBING"
17657 msgstr ""
17658
17659 # type: textblock
17660 #: ../fish/guestfish.pod:575
17661 msgid ""
17662 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17663 "(globbing) by default.  So for example the following will not do what you "
17664 "expect:"
17665 msgstr ""
17666
17667 # type: verbatim
17668 #: ../fish/guestfish.pod:579
17669 #, no-wrap
17670 msgid ""
17671 " rm-rf /home/*\n"
17672 "\n"
17673 msgstr ""
17674
17675 # type: textblock
17676 #: ../fish/guestfish.pod:581
17677 msgid ""
17678 "Assuming you don't have a directory called literally C</home/*> then the "
17679 "above command will return an error."
17680 msgstr ""
17681
17682 # type: textblock
17683 #: ../fish/guestfish.pod:584
17684 msgid "To perform wildcard expansion, use the C<glob> command."
17685 msgstr ""
17686
17687 # type: verbatim
17688 #: ../fish/guestfish.pod:586
17689 #, no-wrap
17690 msgid ""
17691 " glob rm-rf /home/*\n"
17692 "\n"
17693 msgstr ""
17694
17695 # type: textblock
17696 #: ../fish/guestfish.pod:588
17697 msgid ""
17698 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17699 "many times), equivalent to:"
17700 msgstr ""
17701
17702 # type: verbatim
17703 #: ../fish/guestfish.pod:591
17704 #, no-wrap
17705 msgid ""
17706 " rm-rf /home/jim\n"
17707 " rm-rf /home/joe\n"
17708 " rm-rf /home/mary\n"
17709 "\n"
17710 msgstr ""
17711
17712 # type: textblock
17713 #: ../fish/guestfish.pod:595
17714 msgid "C<glob> only works on simple guest paths and not on device names."
17715 msgstr ""
17716
17717 # type: textblock
17718 #: ../fish/guestfish.pod:597
17719 msgid ""
17720 "If you have several parameters, each containing a wildcard, then glob will "
17721 "perform a Cartesian product."
17722 msgstr ""
17723
17724 # type: =head1
17725 #: ../fish/guestfish.pod:600
17726 msgid "COMMENTS"
17727 msgstr ""
17728
17729 # type: textblock
17730 #: ../fish/guestfish.pod:602
17731 msgid ""
17732 "Any line which starts with a I<#> character is treated as a comment and "
17733 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17734 "a command.  For example:"
17735 msgstr ""
17736
17737 # type: verbatim
17738 #: ../fish/guestfish.pod:606
17739 #, no-wrap
17740 msgid ""
17741 " # this is a comment\n"
17742 "         # this is a comment\n"
17743 " foo # NOT a comment\n"
17744 "\n"
17745 msgstr ""
17746
17747 # type: textblock
17748 #: ../fish/guestfish.pod:610
17749 msgid "Blank lines are also ignored."
17750 msgstr ""
17751
17752 # type: =head1
17753 #: ../fish/guestfish.pod:612
17754 msgid "RUNNING COMMANDS LOCALLY"
17755 msgstr ""
17756
17757 # type: textblock
17758 #: ../fish/guestfish.pod:614
17759 msgid ""
17760 "Any line which starts with a I<!> character is treated as a command sent to "
17761 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17762 msgstr ""
17763
17764 # type: verbatim
17765 #: ../fish/guestfish.pod:618
17766 #, no-wrap
17767 msgid ""
17768 " !mkdir local\n"
17769 " tgz-out /remote local/remote-data.tar.gz\n"
17770 "\n"
17771 msgstr ""
17772
17773 # type: textblock
17774 #: ../fish/guestfish.pod:621
17775 msgid ""
17776 "will create a directory C<local> on the host, and then export the contents "
17777 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17778 "(See C<tgz-out>)."
17779 msgstr ""
17780
17781 # type: textblock
17782 #: ../fish/guestfish.pod:625
17783 msgid ""
17784 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17785 "effect, due to the way that subprocesses work in Unix."
17786 msgstr ""
17787
17788 # type: =head1
17789 #: ../fish/guestfish.pod:628
17790 msgid "PIPES"
17791 msgstr ""
17792
17793 # type: textblock
17794 #: ../fish/guestfish.pod:630
17795 msgid ""
17796 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17797 "command (a guestfish command) to the second command (any host command).  For "
17798 "example:"
17799 msgstr ""
17800
17801 # type: verbatim
17802 #: ../fish/guestfish.pod:634
17803 #, no-wrap
17804 msgid ""
17805 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17806 "\n"
17807 msgstr ""
17808
17809 # type: textblock
17810 #: ../fish/guestfish.pod:636
17811 msgid ""
17812 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17813 "program).  The above command would list all accounts in the guest filesystem "
17814 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17815 msgstr ""
17816
17817 # type: verbatim
17818 #: ../fish/guestfish.pod:641
17819 #, no-wrap
17820 msgid ""
17821 " hexdump /bin/ls | head\n"
17822 " list-devices | tail -1\n"
17823 " tgz-out / - | tar ztf -\n"
17824 "\n"
17825 msgstr ""
17826
17827 # type: textblock
17828 #: ../fish/guestfish.pod:645
17829 msgid ""
17830 "The space before the pipe symbol is required, any space after the pipe "
17831 "symbol is optional.  Everything after the pipe symbol is just passed "
17832 "straight to the host shell, so it can contain redirections, globs and "
17833 "anything else that makes sense on the host side."
17834 msgstr ""
17835
17836 # type: textblock
17837 #: ../fish/guestfish.pod:650
17838 msgid ""
17839 "To use a literal argument which begins with a pipe symbol, you have to quote "
17840 "it, eg:"
17841 msgstr ""
17842
17843 # type: verbatim
17844 #: ../fish/guestfish.pod:653
17845 #, no-wrap
17846 msgid ""
17847 " echo \"|\"\n"
17848 "\n"
17849 msgstr ""
17850
17851 # type: =head1
17852 #: ../fish/guestfish.pod:655
17853 msgid "HOME DIRECTORIES"
17854 msgstr ""
17855
17856 # type: textblock
17857 #: ../fish/guestfish.pod:657
17858 msgid ""
17859 "If a parameter starts with the character C<~> then the tilde may be expanded "
17860 "as a home directory path (either C<~> for the current user's home directory, "
17861 "or C<~user> for another user)."
17862 msgstr ""
17863
17864 # type: textblock
17865 #: ../fish/guestfish.pod:661
17866 msgid ""
17867 "Note that home directory expansion happens for users known I<on the host>, "
17868 "not in the guest filesystem."
17869 msgstr ""
17870
17871 # type: textblock
17872 #: ../fish/guestfish.pod:664
17873 msgid ""
17874 "To use a literal argument which begins with a tilde, you have to quote it, "
17875 "eg:"
17876 msgstr ""
17877
17878 # type: verbatim
17879 #: ../fish/guestfish.pod:667
17880 #, no-wrap
17881 msgid ""
17882 " echo \"~\"\n"
17883 "\n"
17884 msgstr ""
17885
17886 # type: textblock
17887 #: ../fish/guestfish.pod:671
17888 msgid ""
17889 "Libguestfs has some support for Linux guests encrypted according to the "
17890 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17891 "disk encryption systems used by modern Linux guests.  Currently only "
17892 "LVM-on-LUKS is supported."
17893 msgstr ""
17894
17895 # type: textblock
17896 #: ../fish/guestfish.pod:676
17897 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17898 msgstr ""
17899
17900 # type: verbatim
17901 #: ../fish/guestfish.pod:678
17902 #, no-wrap
17903 msgid ""
17904 " ><fs> vfs-type /dev/sda2\n"
17905 " crypto_LUKS\n"
17906 "\n"
17907 msgstr ""
17908
17909 # type: textblock
17910 #: ../fish/guestfish.pod:681
17911 msgid ""
17912 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17913 "device called C</dev/mapper/luksdev>."
17914 msgstr ""
17915
17916 # type: verbatim
17917 #: ../fish/guestfish.pod:684
17918 #, no-wrap
17919 msgid ""
17920 " ><fs> luks-open /dev/sda2 luksdev\n"
17921 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17922 "\n"
17923 msgstr ""
17924
17925 # type: textblock
17926 #: ../fish/guestfish.pod:687
17927 msgid ""
17928 "Finally you have to tell LVM to scan for volume groups on the newly created "
17929 "mapper device:"
17930 msgstr ""
17931
17932 # type: verbatim
17933 #: ../fish/guestfish.pod:690
17934 #, no-wrap
17935 msgid ""
17936 " vgscan\n"
17937 " vg-activate-all true\n"
17938 "\n"
17939 msgstr ""
17940
17941 # type: textblock
17942 #: ../fish/guestfish.pod:693
17943 msgid "The logical volume(s) can now be mounted in the usual way."
17944 msgstr ""
17945
17946 # type: textblock
17947 #: ../fish/guestfish.pod:695
17948 msgid ""
17949 "Before closing a LUKS device you must unmount any logical volumes on it and "
17950 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17951 "one.  Then you can close the mapper device:"
17952 msgstr ""
17953
17954 # type: verbatim
17955 #: ../fish/guestfish.pod:699
17956 #, no-wrap
17957 msgid ""
17958 " vg-activate false /dev/VG\n"
17959 " luks-close /dev/mapper/luksdev\n"
17960 "\n"
17961 msgstr ""
17962
17963 # type: =head1
17964 #: ../fish/guestfish.pod:702
17965 msgid "WINDOWS PATHS"
17966 msgstr ""
17967
17968 # type: textblock
17969 #: ../fish/guestfish.pod:704
17970 msgid ""
17971 "If a path is prefixed with C<win:> then you can use Windows-style paths "
17972 "(with some limitations).  The following commands are equivalent:"
17973 msgstr ""
17974
17975 # type: verbatim
17976 #: ../fish/guestfish.pod:707
17977 #, no-wrap
17978 msgid ""
17979 " file /WINDOWS/system32/config/system.LOG\n"
17980 "\n"
17981 msgstr ""
17982
17983 # type: verbatim
17984 #: ../fish/guestfish.pod:709
17985 #, no-wrap
17986 msgid ""
17987 " file win:/windows/system32/config/system.log\n"
17988 "\n"
17989 msgstr ""
17990
17991 # type: verbatim
17992 #: ../fish/guestfish.pod:711
17993 #, no-wrap
17994 msgid ""
17995 " file win:\\windows\\system32\\config\\system.log\n"
17996 "\n"
17997 msgstr ""
17998
17999 # type: verbatim
18000 #: ../fish/guestfish.pod:713
18001 #, no-wrap
18002 msgid ""
18003 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18004 "\n"
18005 msgstr ""
18006
18007 # type: textblock
18008 #: ../fish/guestfish.pod:715
18009 msgid ""
18010 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18011 "handles case insensitivity like Windows would.  This only works in argument "
18012 "positions that expect a path."
18013 msgstr ""
18014
18015 # type: =head1
18016 #: ../fish/guestfish.pod:719
18017 msgid "UPLOADING AND DOWNLOADING FILES"
18018 msgstr ""
18019
18020 # type: textblock
18021 #: ../fish/guestfish.pod:721
18022 msgid ""
18023 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18024 "others which upload from or download to a local file, you can use the "
18025 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18026 msgstr ""
18027
18028 # type: verbatim
18029 #: ../fish/guestfish.pod:725
18030 #, no-wrap
18031 msgid ""
18032 " upload - /foo\n"
18033 "\n"
18034 msgstr ""
18035
18036 # type: textblock
18037 #: ../fish/guestfish.pod:727
18038 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
18039 msgstr ""
18040
18041 # type: verbatim
18042 #: ../fish/guestfish.pod:730
18043 #, no-wrap
18044 msgid ""
18045 " tar-out /etc - | tar tf -\n"
18046 "\n"
18047 msgstr ""
18048
18049 # type: textblock
18050 #: ../fish/guestfish.pod:732
18051 msgid ""
18052 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18053 "command (see L</PIPES>)."
18054 msgstr ""
18055
18056 # type: textblock
18057 #: ../fish/guestfish.pod:735
18058 msgid ""
18059 "When using C<-> to read from stdin, the input is read up to the end of "
18060 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18061 "some arbitrary end marker:"
18062 msgstr ""
18063
18064 # type: verbatim
18065 #: ../fish/guestfish.pod:739
18066 #, no-wrap
18067 msgid ""
18068 " upload -<<END /foo\n"
18069 " input line 1\n"
18070 " input line 2\n"
18071 " input line 3\n"
18072 " END\n"
18073 "\n"
18074 msgstr ""
18075
18076 # type: textblock
18077 #: ../fish/guestfish.pod:745
18078 msgid ""
18079 "Any string of characters can be used instead of C<END>.  The end marker must "
18080 "appear on a line of its own, without any preceeding or following characters "
18081 "(not even spaces)."
18082 msgstr ""
18083
18084 # type: textblock
18085 #: ../fish/guestfish.pod:749
18086 msgid ""
18087 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18088 "upload local files (so-called \"FileIn\" parameters in the generator)."
18089 msgstr ""
18090
18091 # type: =head1
18092 #: ../fish/guestfish.pod:752
18093 msgid "EXIT ON ERROR BEHAVIOUR"
18094 msgstr ""
18095
18096 # type: textblock
18097 #: ../fish/guestfish.pod:754
18098 msgid ""
18099 "By default, guestfish will ignore any errors when in interactive mode "
18100 "(ie. taking commands from a human over a tty), and will exit on the first "
18101 "error in non-interactive mode (scripts, commands given on the command line)."
18102 msgstr ""
18103
18104 # type: textblock
18105 #: ../fish/guestfish.pod:759
18106 msgid ""
18107 "If you prefix a command with a I<-> character, then that command will not "
18108 "cause guestfish to exit, even if that (one) command returns an error."
18109 msgstr ""
18110
18111 # type: =head1
18112 #: ../fish/guestfish.pod:763
18113 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18114 msgstr ""
18115
18116 # type: textblock
18117 #: ../fish/guestfish.pod:765
18118 msgid ""
18119 "Guestfish can be remote-controlled over a socket.  This is useful "
18120 "particularly in shell scripts where you want to make several different "
18121 "changes to a filesystem, but you don't want the overhead of starting up a "
18122 "guestfish process each time."
18123 msgstr ""
18124
18125 # type: textblock
18126 #: ../fish/guestfish.pod:770
18127 msgid "Start a guestfish server process using:"
18128 msgstr ""
18129
18130 # type: verbatim
18131 #: ../fish/guestfish.pod:772
18132 #, no-wrap
18133 msgid ""
18134 " eval \"`guestfish --listen`\"\n"
18135 "\n"
18136 msgstr ""
18137
18138 # type: textblock
18139 #: ../fish/guestfish.pod:774
18140 msgid "and then send it commands by doing:"
18141 msgstr ""
18142
18143 # type: verbatim
18144 #: ../fish/guestfish.pod:776
18145 #, no-wrap
18146 msgid ""
18147 " guestfish --remote cmd [...]\n"
18148 "\n"
18149 msgstr ""
18150
18151 # type: textblock
18152 #: ../fish/guestfish.pod:778
18153 msgid "To cause the server to exit, send it the exit command:"
18154 msgstr ""
18155
18156 # type: verbatim
18157 #: ../fish/guestfish.pod:780
18158 #, no-wrap
18159 msgid ""
18160 " guestfish --remote exit\n"
18161 "\n"
18162 msgstr ""
18163
18164 # type: textblock
18165 #: ../fish/guestfish.pod:782
18166 msgid ""
18167 "Note that the server will normally exit if there is an error in a command.  "
18168 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18169 "BEHAVIOUR>."
18170 msgstr ""
18171
18172 # type: =head2
18173 #: ../fish/guestfish.pod:786
18174 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18175 msgstr ""
18176
18177 # type: textblock
18178 #: ../fish/guestfish.pod:788
18179 msgid ""
18180 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18181 "is how the I<--remote> option knows where to send the commands.  You can "
18182 "have several guestfish listener processes running using:"
18183 msgstr ""
18184
18185 # type: verbatim
18186 #: ../fish/guestfish.pod:792
18187 #, no-wrap
18188 msgid ""
18189 " eval \"`guestfish --listen`\"\n"
18190 " pid1=$GUESTFISH_PID\n"
18191 " eval \"`guestfish --listen`\"\n"
18192 " pid2=$GUESTFISH_PID\n"
18193 " ...\n"
18194 " guestfish --remote=$pid1 cmd\n"
18195 " guestfish --remote=$pid2 cmd\n"
18196 "\n"
18197 msgstr ""
18198
18199 # type: =head2
18200 #: ../fish/guestfish.pod:800
18201 msgid "REMOTE CONTROL AND CSH"
18202 msgstr ""
18203
18204 # type: textblock
18205 #: ../fish/guestfish.pod:802
18206 msgid ""
18207 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18208 "option:"
18209 msgstr ""
18210
18211 # type: verbatim
18212 #: ../fish/guestfish.pod:805
18213 #, no-wrap
18214 msgid ""
18215 " eval \"`guestfish --listen --csh`\"\n"
18216 "\n"
18217 msgstr ""
18218
18219 # type: =head2
18220 #: ../fish/guestfish.pod:807
18221 msgid "REMOTE CONTROL DETAILS"
18222 msgstr ""
18223
18224 # type: textblock
18225 #: ../fish/guestfish.pod:809
18226 msgid ""
18227 "Remote control happens over a Unix domain socket called "
18228 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
18229 "of the process, and C<$PID> is the process ID of the server."
18230 msgstr ""
18231
18232 # type: textblock
18233 #: ../fish/guestfish.pod:813
18234 msgid "Guestfish client and server versions must match exactly."
18235 msgstr ""
18236
18237 # type: =head1
18238 #: ../fish/guestfish.pod:815
18239 msgid "PREPARED DISK IMAGES"
18240 msgstr ""
18241
18242 # type: textblock
18243 #: ../fish/guestfish.pod:817
18244 msgid ""
18245 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18246 "preformatted disk images that guestfish can make for you to save typing.  "
18247 "This is particularly useful for testing purposes.  This option is used "
18248 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18249 "can be mixed with I<-a>)."
18250 msgstr ""
18251
18252 # type: textblock
18253 #: ../fish/guestfish.pod:823
18254 msgid ""
18255 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18256 "the second and so on.  Existing files in the current directory are "
18257 "I<overwritten>."
18258 msgstr ""
18259
18260 # type: textblock
18261 #: ../fish/guestfish.pod:827
18262 msgid ""
18263 "The type briefly describes how the disk should be sized, partitioned, how "
18264 "filesystem(s) should be created, and how content should be added.  "
18265 "Optionally the type can be followed by extra parameters, separated by C<:> "
18266 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
18267 "sparsely-allocated disk, containing a single partition, with the partition "
18268 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
18269 "on a 1GB disk instead."
18270 msgstr ""
18271
18272 # type: textblock
18273 #: ../fish/guestfish.pod:835
18274 msgid "To list the available types and any extra parameters they take, run:"
18275 msgstr ""
18276
18277 # type: textblock
18278 #: ../fish/guestfish.pod:839
18279 msgid ""
18280 "Note that the prepared filesystem is not mounted.  You would usually have to "
18281 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18282 msgstr ""
18283
18284 # type: textblock
18285 #: ../fish/guestfish.pod:843
18286 msgid ""
18287 "If any I<-N> or I<--new> options are given, the guest is automatically "
18288 "launched."
18289 msgstr ""
18290
18291 # type: textblock
18292 #: ../fish/guestfish.pod:848
18293 msgid "Create a 100MB disk with an ext4-formatted partition:"
18294 msgstr ""
18295
18296 # type: verbatim
18297 #: ../fish/guestfish.pod:850
18298 #, no-wrap
18299 msgid ""
18300 " guestfish -N fs:ext4\n"
18301 "\n"
18302 msgstr ""
18303
18304 # type: textblock
18305 #: ../fish/guestfish.pod:852
18306 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18307 msgstr ""
18308
18309 # type: verbatim
18310 #: ../fish/guestfish.pod:854
18311 #, no-wrap
18312 msgid ""
18313 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18314 "\n"
18315 msgstr ""
18316
18317 # type: textblock
18318 #: ../fish/guestfish.pod:856
18319 msgid "Create a blank 200MB disk:"
18320 msgstr ""
18321
18322 # type: verbatim
18323 #: ../fish/guestfish.pod:858
18324 #, no-wrap
18325 msgid ""
18326 " guestfish -N disk:200M\n"
18327 "\n"
18328 msgstr ""
18329
18330 # type: =head1
18331 #: ../fish/guestfish.pod:860
18332 msgid "PROGRESS BARS"
18333 msgstr ""
18334
18335 # type: textblock
18336 #: ../fish/guestfish.pod:862
18337 msgid ""
18338 "Some (not all) long-running commands send progress notification messages as "
18339 "they are running.  Guestfish turns these messages into progress bars."
18340 msgstr ""
18341
18342 # type: textblock
18343 #: ../fish/guestfish.pod:866
18344 msgid ""
18345 "When a command that supports progress bars takes longer than two seconds to "
18346 "run, and if progress bars are enabled, then you will see one appearing below "
18347 "the command:"
18348 msgstr ""
18349
18350 # type: verbatim
18351 #: ../fish/guestfish.pod:870
18352 #, no-wrap
18353 msgid ""
18354 " ><fs> copy-size /large-file /another-file 2048M\n"
18355 " / 10% [#####-----------------------------------------] 00:30\n"
18356 "\n"
18357 msgstr ""
18358
18359 # type: textblock
18360 #: ../fish/guestfish.pod:873
18361 msgid ""
18362 "The spinner on the left hand side moves round once for every progress "
18363 "notification received from the backend.  This is a (reasonably) golden "
18364 "assurance that the command is \"doing something\" even if the progress bar "
18365 "is not moving, because the command is able to send the progress "
18366 "notifications.  When the bar reaches 100% and the command finishes, the "
18367 "spinner disappears."
18368 msgstr ""
18369
18370 # type: textblock
18371 #: ../fish/guestfish.pod:880
18372 msgid ""
18373 "Progress bars are enabled by default when guestfish is used interactively.  "
18374 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18375 "and you can disable them completely using I<--no-progress-bars>."
18376 msgstr ""
18377
18378 # type: =head1
18379 #: ../fish/guestfish.pod:885
18380 msgid "GUESTFISH COMMANDS"
18381 msgstr ""
18382
18383 # type: textblock
18384 #: ../fish/guestfish.pod:887
18385 msgid ""
18386 "The commands in this section are guestfish convenience commands, in other "
18387 "words, they are not part of the L<guestfs(3)> API."
18388 msgstr ""
18389
18390 # type: =head2
18391 #: ../fish/guestfish.pod:890
18392 msgid "help"
18393 msgstr ""
18394
18395 # type: verbatim
18396 #: ../fish/guestfish.pod:892
18397 #, no-wrap
18398 msgid ""
18399 " help\n"
18400 " help cmd\n"
18401 "\n"
18402 msgstr ""
18403
18404 # type: textblock
18405 #: ../fish/guestfish.pod:895
18406 msgid "Without any parameter, this provides general help."
18407 msgstr ""
18408
18409 # type: textblock
18410 #: ../fish/guestfish.pod:897
18411 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18412 msgstr ""
18413
18414 # type: =head2
18415 #: ../fish/guestfish.pod:899
18416 msgid "quit | exit"
18417 msgstr ""
18418
18419 # type: textblock
18420 #: ../fish/guestfish.pod:901
18421 msgid "This exits guestfish.  You can also use C<^D> key."
18422 msgstr ""
18423
18424 # type: textblock
18425 #: ../fish/guestfish.pod:903
18426 msgid "@FISH_COMMANDS@"
18427 msgstr ""
18428
18429 # type: =head1
18430 #: ../fish/guestfish.pod:905
18431 msgid "COMMANDS"
18432 msgstr ""
18433
18434 # type: =head1
18435 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
18436 msgid "EXIT CODE"
18437 msgstr ""
18438
18439 # type: textblock
18440 #: ../fish/guestfish.pod:911
18441 msgid ""
18442 "guestfish returns 0 if the commands completed without error, or 1 if there "
18443 "was an error."
18444 msgstr ""
18445
18446 # type: =item
18447 #: ../fish/guestfish.pod:918
18448 msgid "EDITOR"
18449 msgstr ""
18450
18451 # type: textblock
18452 #: ../fish/guestfish.pod:920
18453 msgid ""
18454 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18455 "C<vi>."
18456 msgstr ""
18457
18458 # type: =item
18459 #: ../fish/guestfish.pod:923
18460 msgid "GUESTFISH_PID"
18461 msgstr ""
18462
18463 # type: textblock
18464 #: ../fish/guestfish.pod:925
18465 msgid ""
18466 "Used with the I<--remote> option to specify the remote guestfish process to "
18467 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18468 msgstr ""
18469
18470 # type: =item
18471 #: ../fish/guestfish.pod:929
18472 msgid "HEXEDITOR"
18473 msgstr ""
18474
18475 # type: textblock
18476 #: ../fish/guestfish.pod:931
18477 msgid ""
18478 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18479 "not specified, the external L<hexedit(1)> program is used."
18480 msgstr ""
18481
18482 # type: =item
18483 #: ../fish/guestfish.pod:935
18484 msgid "HOME"
18485 msgstr ""
18486
18487 # type: textblock
18488 #: ../fish/guestfish.pod:937
18489 msgid ""
18490 "If compiled with GNU readline support, various files in the home directory "
18491 "can be used.  See L</FILES>."
18492 msgstr ""
18493
18494 # type: textblock
18495 #: ../fish/guestfish.pod:946
18496 msgid ""
18497 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18498 "effect as using the B<-v> option."
18499 msgstr ""
18500
18501 # type: textblock
18502 #: ../fish/guestfish.pod:958
18503 msgid ""
18504 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18505 "the discussion of paths in L<guestfs(3)>."
18506 msgstr ""
18507
18508 # type: textblock
18509 #: ../fish/guestfish.pod:969
18510 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18511 msgstr ""
18512
18513 # type: =item
18514 #: ../fish/guestfish.pod:971
18515 msgid "PAGER"
18516 msgstr ""
18517
18518 # type: textblock
18519 #: ../fish/guestfish.pod:973
18520 msgid ""
18521 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18522 "C<more>."
18523 msgstr ""
18524
18525 # type: =head1
18526 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
18527 msgid "FILES"
18528 msgstr ""
18529
18530 # type: =item
18531 #: ../fish/guestfish.pod:992
18532 msgid "$HOME/.guestfish"
18533 msgstr ""
18534
18535 # type: textblock
18536 #: ../fish/guestfish.pod:994
18537 msgid ""
18538 "If compiled with GNU readline support, then the command history is saved in "
18539 "this file."
18540 msgstr ""
18541
18542 # type: =item
18543 #: ../fish/guestfish.pod:997
18544 msgid "$HOME/.inputrc"
18545 msgstr ""
18546
18547 # type: =item
18548 #: ../fish/guestfish.pod:999
18549 msgid "/etc/inputrc"
18550 msgstr ""
18551
18552 # type: textblock
18553 #: ../fish/guestfish.pod:1001
18554 msgid ""
18555 "If compiled with GNU readline support, then these files can be used to "
18556 "configure readline.  For further information, please see "
18557 "L<readline(3)/INITIALIZATION FILE>."
18558 msgstr ""
18559
18560 # type: textblock
18561 #: ../fish/guestfish.pod:1005
18562 msgid "To write rules which only apply to guestfish, use:"
18563 msgstr ""
18564
18565 # type: verbatim
18566 #: ../fish/guestfish.pod:1007
18567 #, no-wrap
18568 msgid ""
18569 " $if guestfish\n"
18570 " ...\n"
18571 " $endif\n"
18572 "\n"
18573 msgstr ""
18574
18575 # type: textblock
18576 #: ../fish/guestfish.pod:1011
18577 msgid ""
18578 "Variables that you can set in inputrc that change the behaviour of guestfish "
18579 "in useful ways include:"
18580 msgstr ""
18581
18582 # type: =item
18583 #: ../fish/guestfish.pod:1016
18584 msgid "completion-ignore-case (default: on)"
18585 msgstr ""
18586
18587 # type: textblock
18588 #: ../fish/guestfish.pod:1018
18589 msgid ""
18590 "By default, guestfish will ignore case when tab-completing paths on the "
18591 "disk.  Use:"
18592 msgstr ""
18593
18594 # type: verbatim
18595 #: ../fish/guestfish.pod:1021
18596 #, no-wrap
18597 msgid ""
18598 " set completion-ignore-case off\n"
18599 "\n"
18600 msgstr ""
18601
18602 # type: textblock
18603 #: ../fish/guestfish.pod:1023
18604 msgid "to make guestfish case sensitive."
18605 msgstr ""
18606
18607 # type: =item
18608 #: ../fish/guestfish.pod:1027
18609 msgid "test1.img"
18610 msgstr ""
18611
18612 # type: =item
18613 #: ../fish/guestfish.pod:1029
18614 msgid "test2.img (etc)"
18615 msgstr ""
18616
18617 # type: textblock
18618 #: ../fish/guestfish.pod:1031
18619 msgid ""
18620 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18621 "will be created in the file C<test1.img> in the current directory.  The "
18622 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18623 "the same name will be overwritten."
18624 msgstr ""
18625
18626 # type: textblock
18627 #: ../fish/guestfish.pod:1040
18628 msgid ""
18629 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18630 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
18631 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
18632 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
18633 msgstr ""
18634
18635 # type: textblock
18636 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:253 ../inspector/virt-inspector.pl:480 ../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
18637 msgid ""
18638 "This program is free software; you can redistribute it and/or modify it "
18639 "under the terms of the GNU General Public License as published by the Free "
18640 "Software Foundation; either version 2 of the License, or (at your option) "
18641 "any later version."
18642 msgstr ""
18643
18644 # type: textblock
18645 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:258 ../inspector/virt-inspector.pl:485 ../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
18646 msgid ""
18647 "This program is distributed in the hope that it will be useful, but WITHOUT "
18648 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18649 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18650 "more details."
18651 msgstr ""
18652
18653 # type: textblock
18654 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pl:490 ../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
18655 msgid ""
18656 "You should have received a copy of the GNU General Public License along with "
18657 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18658 "Ave, Cambridge, MA 02139, USA."
18659 msgstr ""
18660
18661 # type: =head2
18662 #: ../fish/guestfish-actions.pod:1
18663 msgid "add-cdrom"
18664 msgstr ""
18665
18666 # type: verbatim
18667 #: ../fish/guestfish-actions.pod:3
18668 #, no-wrap
18669 msgid ""
18670 " add-cdrom filename\n"
18671 "\n"
18672 msgstr ""
18673
18674 # type: textblock
18675 #: ../fish/guestfish-actions.pod:15
18676 msgid ""
18677 "This call checks for the existence of C<filename>.  This stops you from "
18678 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18679 "and C<http:> URLs.  To specify those, use the general L</config> call "
18680 "instead."
18681 msgstr ""
18682
18683 # type: textblock
18684 #: ../fish/guestfish-actions.pod:22
18685 msgid ""
18686 "If you just want to add an ISO file (often you use this as an efficient way "
18687 "to transfer large files into the guest), then you should probably use "
18688 "L</add-drive-ro> instead."
18689 msgstr ""
18690
18691 # type: =head2
18692 #: ../fish/guestfish-actions.pod:35
18693 msgid "add-domain"
18694 msgstr ""
18695
18696 # type: =head2
18697 #: ../fish/guestfish-actions.pod:37
18698 msgid "domain"
18699 msgstr ""
18700
18701 # type: verbatim
18702 #: ../fish/guestfish-actions.pod:39
18703 #, no-wrap
18704 msgid ""
18705 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18706 "\n"
18707 msgstr ""
18708
18709 # type: textblock
18710 #: ../fish/guestfish-actions.pod:41
18711 msgid ""
18712 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18713 "It works by connecting to libvirt, requesting the domain and domain XML from "
18714 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
18715 msgstr ""
18716
18717 # type: textblock
18718 #: ../fish/guestfish-actions.pod:58
18719 msgid ""
18720 "The optional C<libvirturi> parameter sets the libvirt URI (see "
18721 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
18722 "default libvirt URI (or one set through an environment variable, see the "
18723 "libvirt documentation for full details).  If you are using the C API "
18724 "directly then it is more flexible to create the libvirt connection object "
18725 "yourself, get the domain object, and call L</add-libvirt-dom>."
18726 msgstr ""
18727
18728 # type: textblock
18729 #: ../fish/guestfish-actions.pod:66
18730 msgid ""
18731 "The other optional parameters are passed directly through to "
18732 "L</add-drive-opts>."
18733 msgstr ""
18734
18735 # type: textblock
18736 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
18737 msgid ""
18738 "This command has one or more optional arguments.  See L</OPTIONAL "
18739 "ARGUMENTS>."
18740 msgstr ""
18741
18742 # type: =head2
18743 #: ../fish/guestfish-actions.pod:71
18744 msgid "add-drive"
18745 msgstr ""
18746
18747 # type: verbatim
18748 #: ../fish/guestfish-actions.pod:73
18749 #, no-wrap
18750 msgid ""
18751 " add-drive filename\n"
18752 "\n"
18753 msgstr ""
18754
18755 # type: textblock
18756 #: ../fish/guestfish-actions.pod:75
18757 msgid ""
18758 "This function is the equivalent of calling L</add-drive-opts> with no "
18759 "optional parameters, so the disk is added writable, with the format being "
18760 "detected automatically."
18761 msgstr ""
18762
18763 # type: textblock
18764 #: ../fish/guestfish-actions.pod:79
18765 msgid ""
18766 "Automatic detection of the format opens you up to a potential security hole "
18767 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18768 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18769 "you should think about replacing calls to this function with calls to "
18770 "L</add-drive-opts>, and specifying the format."
18771 msgstr ""
18772
18773 # type: =head2
18774 #: ../fish/guestfish-actions.pod:86
18775 msgid "add-drive-opts"
18776 msgstr ""
18777
18778 # type: =head2
18779 #: ../fish/guestfish-actions.pod:88
18780 msgid "add"
18781 msgstr ""
18782
18783 # type: verbatim
18784 #: ../fish/guestfish-actions.pod:90
18785 #, no-wrap
18786 msgid ""
18787 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18788 "\n"
18789 msgstr ""
18790
18791 # type: textblock
18792 #: ../fish/guestfish-actions.pod:117
18793 msgid ""
18794 "This forces the image format.  If you omit this (or use L</add-drive> or "
18795 "L</add-drive-ro>) then the format is automatically detected.  Possible "
18796 "formats include C<raw> and C<qcow2>."
18797 msgstr ""
18798
18799 # type: textblock
18800 #: ../fish/guestfish-actions.pod:128
18801 msgid ""
18802 "This rarely-used option lets you emulate the behaviour of the deprecated "
18803 "L</add-drive-with-if> call (q.v.)"
18804 msgstr ""
18805
18806 # type: =head2
18807 #: ../fish/guestfish-actions.pod:135
18808 msgid "add-drive-ro"
18809 msgstr ""
18810
18811 # type: =head2
18812 #: ../fish/guestfish-actions.pod:137
18813 msgid "add-ro"
18814 msgstr ""
18815
18816 # type: verbatim
18817 #: ../fish/guestfish-actions.pod:139
18818 #, no-wrap
18819 msgid ""
18820 " add-drive-ro filename\n"
18821 "\n"
18822 msgstr ""
18823
18824 # type: textblock
18825 #: ../fish/guestfish-actions.pod:141
18826 msgid ""
18827 "This function is the equivalent of calling L</add-drive-opts> with the "
18828 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18829 "is added read-only, with the format being detected automatically."
18830 msgstr ""
18831
18832 # type: =head2
18833 #: ../fish/guestfish-actions.pod:146
18834 msgid "add-drive-ro-with-if"
18835 msgstr ""
18836
18837 # type: verbatim
18838 #: ../fish/guestfish-actions.pod:148
18839 #, no-wrap
18840 msgid ""
18841 " add-drive-ro-with-if filename iface\n"
18842 "\n"
18843 msgstr ""
18844
18845 # type: textblock
18846 #: ../fish/guestfish-actions.pod:150
18847 msgid ""
18848 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18849 "interface emulation to use at run time."
18850 msgstr ""
18851
18852 # type: =head2
18853 #: ../fish/guestfish-actions.pod:160
18854 msgid "add-drive-with-if"
18855 msgstr ""
18856
18857 # type: verbatim
18858 #: ../fish/guestfish-actions.pod:162
18859 #, no-wrap
18860 msgid ""
18861 " add-drive-with-if filename iface\n"
18862 "\n"
18863 msgstr ""
18864
18865 # type: textblock
18866 #: ../fish/guestfish-actions.pod:164
18867 msgid ""
18868 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18869 "interface emulation to use at run time."
18870 msgstr ""
18871
18872 # type: =head2
18873 #: ../fish/guestfish-actions.pod:174
18874 msgid "aug-clear"
18875 msgstr ""
18876
18877 # type: verbatim
18878 #: ../fish/guestfish-actions.pod:176
18879 #, no-wrap
18880 msgid ""
18881 " aug-clear augpath\n"
18882 "\n"
18883 msgstr ""
18884
18885 # type: =head2
18886 #: ../fish/guestfish-actions.pod:181
18887 msgid "aug-close"
18888 msgstr ""
18889
18890 # type: verbatim
18891 #: ../fish/guestfish-actions.pod:183
18892 #, no-wrap
18893 msgid ""
18894 " aug-close\n"
18895 "\n"
18896 msgstr ""
18897
18898 # type: textblock
18899 #: ../fish/guestfish-actions.pod:185
18900 msgid ""
18901 "Close the current Augeas handle and free up any resources used by it.  After "
18902 "calling this, you have to call L</aug-init> again before you can use any "
18903 "other Augeas functions."
18904 msgstr ""
18905
18906 # type: =head2
18907 #: ../fish/guestfish-actions.pod:190
18908 msgid "aug-defnode"
18909 msgstr ""
18910
18911 # type: verbatim
18912 #: ../fish/guestfish-actions.pod:192
18913 #, no-wrap
18914 msgid ""
18915 " aug-defnode name expr val\n"
18916 "\n"
18917 msgstr ""
18918
18919 # type: textblock
18920 #: ../fish/guestfish-actions.pod:197
18921 msgid ""
18922 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18923 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18924 "containing that single node."
18925 msgstr ""
18926
18927 # type: =head2
18928 #: ../fish/guestfish-actions.pod:205
18929 msgid "aug-defvar"
18930 msgstr ""
18931
18932 # type: verbatim
18933 #: ../fish/guestfish-actions.pod:207
18934 #, no-wrap
18935 msgid ""
18936 " aug-defvar name expr\n"
18937 "\n"
18938 msgstr ""
18939
18940 # type: =head2
18941 #: ../fish/guestfish-actions.pod:216
18942 msgid "aug-get"
18943 msgstr ""
18944
18945 # type: verbatim
18946 #: ../fish/guestfish-actions.pod:218
18947 #, no-wrap
18948 msgid ""
18949 " aug-get augpath\n"
18950 "\n"
18951 msgstr ""
18952
18953 # type: =head2
18954 #: ../fish/guestfish-actions.pod:223
18955 msgid "aug-init"
18956 msgstr ""
18957
18958 # type: verbatim
18959 #: ../fish/guestfish-actions.pod:225
18960 #, no-wrap
18961 msgid ""
18962 " aug-init root flags\n"
18963 "\n"
18964 msgstr ""
18965
18966 # type: textblock
18967 #: ../fish/guestfish-actions.pod:231
18968 msgid "You must call this before using any other L</aug-*> commands."
18969 msgstr ""
18970
18971 # type: textblock
18972 #: ../fish/guestfish-actions.pod:266
18973 msgid "Do not load the tree in L</aug-init>."
18974 msgstr ""
18975
18976 # type: textblock
18977 #: ../fish/guestfish-actions.pod:270
18978 msgid "To close the handle, you can call L</aug-close>."
18979 msgstr ""
18980
18981 # type: =head2
18982 #: ../fish/guestfish-actions.pod:274
18983 msgid "aug-insert"
18984 msgstr ""
18985
18986 # type: verbatim
18987 #: ../fish/guestfish-actions.pod:276
18988 #, no-wrap
18989 msgid ""
18990 " aug-insert augpath label true|false\n"
18991 "\n"
18992 msgstr ""
18993
18994 # type: =head2
18995 #: ../fish/guestfish-actions.pod:286
18996 msgid "aug-load"
18997 msgstr ""
18998
18999 # type: verbatim
19000 #: ../fish/guestfish-actions.pod:288
19001 #, no-wrap
19002 msgid ""
19003 " aug-load\n"
19004 "\n"
19005 msgstr ""
19006
19007 # type: =head2
19008 #: ../fish/guestfish-actions.pod:295
19009 msgid "aug-ls"
19010 msgstr ""
19011
19012 # type: verbatim
19013 #: ../fish/guestfish-actions.pod:297
19014 #, no-wrap
19015 msgid ""
19016 " aug-ls augpath\n"
19017 "\n"
19018 msgstr ""
19019
19020 # type: textblock
19021 #: ../fish/guestfish-actions.pod:299
19022 msgid ""
19023 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19024 "resulting nodes into alphabetical order."
19025 msgstr ""
19026
19027 # type: =head2
19028 #: ../fish/guestfish-actions.pod:302
19029 msgid "aug-match"
19030 msgstr ""
19031
19032 # type: verbatim
19033 #: ../fish/guestfish-actions.pod:304
19034 #, no-wrap
19035 msgid ""
19036 " aug-match augpath\n"
19037 "\n"
19038 msgstr ""
19039
19040 # type: =head2
19041 #: ../fish/guestfish-actions.pod:310
19042 msgid "aug-mv"
19043 msgstr ""
19044
19045 # type: verbatim
19046 #: ../fish/guestfish-actions.pod:312
19047 #, no-wrap
19048 msgid ""
19049 " aug-mv src dest\n"
19050 "\n"
19051 msgstr ""
19052
19053 # type: =head2
19054 #: ../fish/guestfish-actions.pod:317
19055 msgid "aug-rm"
19056 msgstr ""
19057
19058 # type: verbatim
19059 #: ../fish/guestfish-actions.pod:319
19060 #, no-wrap
19061 msgid ""
19062 " aug-rm augpath\n"
19063 "\n"
19064 msgstr ""
19065
19066 # type: =head2
19067 #: ../fish/guestfish-actions.pod:325
19068 msgid "aug-save"
19069 msgstr ""
19070
19071 # type: verbatim
19072 #: ../fish/guestfish-actions.pod:327
19073 #, no-wrap
19074 msgid ""
19075 " aug-save\n"
19076 "\n"
19077 msgstr ""
19078
19079 # type: textblock
19080 #: ../fish/guestfish-actions.pod:331
19081 msgid ""
19082 "The flags which were passed to L</aug-init> affect exactly how files are "
19083 "saved."
19084 msgstr ""
19085
19086 # type: =head2
19087 #: ../fish/guestfish-actions.pod:334
19088 msgid "aug-set"
19089 msgstr ""
19090
19091 # type: verbatim
19092 #: ../fish/guestfish-actions.pod:336
19093 #, no-wrap
19094 msgid ""
19095 " aug-set augpath val\n"
19096 "\n"
19097 msgstr ""
19098
19099 # type: textblock
19100 #: ../fish/guestfish-actions.pod:340
19101 msgid ""
19102 "In the Augeas API, it is possible to clear a node by setting the value to "
19103 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19104 "this call.  Instead you must use the L</aug-clear> call."
19105 msgstr ""
19106
19107 # type: =head2
19108 #: ../fish/guestfish-actions.pod:345
19109 msgid "available"
19110 msgstr ""
19111
19112 # type: verbatim
19113 #: ../fish/guestfish-actions.pod:347
19114 #, no-wrap
19115 msgid ""
19116 " available 'groups ...'\n"
19117 "\n"
19118 msgstr ""
19119
19120 # type: textblock
19121 #: ../fish/guestfish-actions.pod:353
19122 msgid ""
19123 "The libguestfs groups, and the functions that those groups correspond to, "
19124 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19125 "runtime by calling L</available-all-groups>."
19126 msgstr ""
19127
19128 # type: textblock
19129 #: ../fish/guestfish-actions.pod:377
19130 msgid "You must call L</launch> before calling this function."
19131 msgstr ""
19132
19133 # type: textblock
19134 #: ../fish/guestfish-actions.pod:399
19135 msgid ""
19136 "This call was added in version C<1.0.80>.  In previous versions of "
19137 "libguestfs all you could do would be to speculatively execute a command to "
19138 "find out if the daemon implemented it.  See also L</version>."
19139 msgstr ""
19140
19141 # type: =head2
19142 #: ../fish/guestfish-actions.pod:406
19143 msgid "available-all-groups"
19144 msgstr ""
19145
19146 # type: verbatim
19147 #: ../fish/guestfish-actions.pod:408
19148 #, no-wrap
19149 msgid ""
19150 " available-all-groups\n"
19151 "\n"
19152 msgstr ""
19153
19154 # type: textblock
19155 #: ../fish/guestfish-actions.pod:410
19156 msgid ""
19157 "This command returns a list of all optional groups that this daemon knows "
19158 "about.  Note this returns both supported and unsupported groups.  To find "
19159 "out which ones the daemon can actually support you have to call "
19160 "L</available> on each member of the returned list."
19161 msgstr ""
19162
19163 # type: textblock
19164 #: ../fish/guestfish-actions.pod:416
19165 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19166 msgstr ""
19167
19168 # type: =head2
19169 #: ../fish/guestfish-actions.pod:418
19170 msgid "base64-in"
19171 msgstr ""
19172
19173 # type: verbatim
19174 #: ../fish/guestfish-actions.pod:420
19175 #, no-wrap
19176 msgid ""
19177 " base64-in (base64file|-) filename\n"
19178 "\n"
19179 msgstr ""
19180
19181 # type: textblock
19182 #: ../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:4113 ../fish/guestfish-actions.pod:4125 ../fish/guestfish-actions.pod:4136 ../fish/guestfish-actions.pod:4147 ../fish/guestfish-actions.pod:4199 ../fish/guestfish-actions.pod:4208 ../fish/guestfish-actions.pod:4262 ../fish/guestfish-actions.pod:4285
19183 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19184 msgstr ""
19185
19186 # type: =head2
19187 #: ../fish/guestfish-actions.pod:427
19188 msgid "base64-out"
19189 msgstr ""
19190
19191 # type: verbatim
19192 #: ../fish/guestfish-actions.pod:429
19193 #, no-wrap
19194 msgid ""
19195 " base64-out filename (base64file|-)\n"
19196 "\n"
19197 msgstr ""
19198
19199 # type: =head2
19200 #: ../fish/guestfish-actions.pod:436
19201 msgid "blockdev-flushbufs"
19202 msgstr ""
19203
19204 # type: verbatim
19205 #: ../fish/guestfish-actions.pod:438
19206 #, no-wrap
19207 msgid ""
19208 " blockdev-flushbufs device\n"
19209 "\n"
19210 msgstr ""
19211
19212 # type: =head2
19213 #: ../fish/guestfish-actions.pod:445
19214 msgid "blockdev-getbsz"
19215 msgstr ""
19216
19217 # type: verbatim
19218 #: ../fish/guestfish-actions.pod:447
19219 #, no-wrap
19220 msgid ""
19221 " blockdev-getbsz device\n"
19222 "\n"
19223 msgstr ""
19224
19225 # type: =head2
19226 #: ../fish/guestfish-actions.pod:456
19227 msgid "blockdev-getro"
19228 msgstr ""
19229
19230 # type: verbatim
19231 #: ../fish/guestfish-actions.pod:458
19232 #, no-wrap
19233 msgid ""
19234 " blockdev-getro device\n"
19235 "\n"
19236 msgstr ""
19237
19238 # type: =head2
19239 #: ../fish/guestfish-actions.pod:465
19240 msgid "blockdev-getsize64"
19241 msgstr ""
19242
19243 # type: verbatim
19244 #: ../fish/guestfish-actions.pod:467
19245 #, no-wrap
19246 msgid ""
19247 " blockdev-getsize64 device\n"
19248 "\n"
19249 msgstr ""
19250
19251 # type: textblock
19252 #: ../fish/guestfish-actions.pod:471
19253 msgid "See also L</blockdev-getsz>."
19254 msgstr ""
19255
19256 # type: =head2
19257 #: ../fish/guestfish-actions.pod:475
19258 msgid "blockdev-getss"
19259 msgstr ""
19260
19261 # type: verbatim
19262 #: ../fish/guestfish-actions.pod:477
19263 #, no-wrap
19264 msgid ""
19265 " blockdev-getss device\n"
19266 "\n"
19267 msgstr ""
19268
19269 # type: textblock
19270 #: ../fish/guestfish-actions.pod:482
19271 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19272 msgstr ""
19273
19274 # type: =head2
19275 #: ../fish/guestfish-actions.pod:487
19276 msgid "blockdev-getsz"
19277 msgstr ""
19278
19279 # type: verbatim
19280 #: ../fish/guestfish-actions.pod:489
19281 #, no-wrap
19282 msgid ""
19283 " blockdev-getsz device\n"
19284 "\n"
19285 msgstr ""
19286
19287 # type: textblock
19288 #: ../fish/guestfish-actions.pod:494
19289 msgid ""
19290 "See also L</blockdev-getss> for the real sector size of the device, and "
19291 "L</blockdev-getsize64> for the more useful I<size in bytes>."
19292 msgstr ""
19293
19294 # type: =head2
19295 #: ../fish/guestfish-actions.pod:500
19296 msgid "blockdev-rereadpt"
19297 msgstr ""
19298
19299 # type: verbatim
19300 #: ../fish/guestfish-actions.pod:502
19301 #, no-wrap
19302 msgid ""
19303 " blockdev-rereadpt device\n"
19304 "\n"
19305 msgstr ""
19306
19307 # type: =head2
19308 #: ../fish/guestfish-actions.pod:508
19309 msgid "blockdev-setbsz"
19310 msgstr ""
19311
19312 # type: verbatim
19313 #: ../fish/guestfish-actions.pod:510
19314 #, no-wrap
19315 msgid ""
19316 " blockdev-setbsz device blocksize\n"
19317 "\n"
19318 msgstr ""
19319
19320 # type: =head2
19321 #: ../fish/guestfish-actions.pod:519
19322 msgid "blockdev-setro"
19323 msgstr ""
19324
19325 # type: verbatim
19326 #: ../fish/guestfish-actions.pod:521
19327 #, no-wrap
19328 msgid ""
19329 " blockdev-setro device\n"
19330 "\n"
19331 msgstr ""
19332
19333 # type: =head2
19334 #: ../fish/guestfish-actions.pod:527
19335 msgid "blockdev-setrw"
19336 msgstr ""
19337
19338 # type: verbatim
19339 #: ../fish/guestfish-actions.pod:529
19340 #, no-wrap
19341 msgid ""
19342 " blockdev-setrw device\n"
19343 "\n"
19344 msgstr ""
19345
19346 # type: =head2
19347 #: ../fish/guestfish-actions.pod:535
19348 msgid "case-sensitive-path"
19349 msgstr ""
19350
19351 # type: verbatim
19352 #: ../fish/guestfish-actions.pod:537
19353 #, no-wrap
19354 msgid ""
19355 " case-sensitive-path path\n"
19356 "\n"
19357 msgstr ""
19358
19359 # type: textblock
19360 #: ../fish/guestfish-actions.pod:561
19361 msgid ""
19362 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
19363 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
19364 "how the directories were originally created under Windows)."
19365 msgstr ""
19366
19367 # type: textblock
19368 #: ../fish/guestfish-actions.pod:569
19369 msgid "See also L</realpath>."
19370 msgstr ""
19371
19372 # type: =head2
19373 #: ../fish/guestfish-actions.pod:571
19374 msgid "cat"
19375 msgstr ""
19376
19377 # type: verbatim
19378 #: ../fish/guestfish-actions.pod:573
19379 #, no-wrap
19380 msgid ""
19381 " cat path\n"
19382 "\n"
19383 msgstr ""
19384
19385 # type: textblock
19386 #: ../fish/guestfish-actions.pod:577
19387 msgid ""
19388 "Note that this function cannot correctly handle binary files (specifically, "
19389 "files containing C<\\0> character which is treated as end of string).  For "
19390 "those you need to use the L</read-file> or L</download> functions which have "
19391 "a more complex interface."
19392 msgstr ""
19393
19394 # type: =head2
19395 #: ../fish/guestfish-actions.pod:585
19396 msgid "checksum"
19397 msgstr ""
19398
19399 # type: verbatim
19400 #: ../fish/guestfish-actions.pod:587
19401 #, no-wrap
19402 msgid ""
19403 " checksum csumtype path\n"
19404 "\n"
19405 msgstr ""
19406
19407 # type: textblock
19408 #: ../fish/guestfish-actions.pod:630
19409 msgid "To get the checksum for a device, use L</checksum-device>."
19410 msgstr ""
19411
19412 # type: textblock
19413 #: ../fish/guestfish-actions.pod:632
19414 msgid "To get the checksums for many files, use L</checksums-out>."
19415 msgstr ""
19416
19417 # type: =head2
19418 #: ../fish/guestfish-actions.pod:634
19419 msgid "checksum-device"
19420 msgstr ""
19421
19422 # type: verbatim
19423 #: ../fish/guestfish-actions.pod:636
19424 #, no-wrap
19425 msgid ""
19426 " checksum-device csumtype device\n"
19427 "\n"
19428 msgstr ""
19429
19430 # type: textblock
19431 #: ../fish/guestfish-actions.pod:638
19432 msgid ""
19433 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19434 "device named C<device>.  For the types of checksums supported see the "
19435 "L</checksum> command."
19436 msgstr ""
19437
19438 # type: =head2
19439 #: ../fish/guestfish-actions.pod:642
19440 msgid "checksums-out"
19441 msgstr ""
19442
19443 # type: verbatim
19444 #: ../fish/guestfish-actions.pod:644
19445 #, no-wrap
19446 msgid ""
19447 " checksums-out csumtype directory (sumsfile|-)\n"
19448 "\n"
19449 msgstr ""
19450
19451 # type: =head2
19452 #: ../fish/guestfish-actions.pod:660
19453 msgid "chmod"
19454 msgstr ""
19455
19456 # type: verbatim
19457 #: ../fish/guestfish-actions.pod:662
19458 #, no-wrap
19459 msgid ""
19460 " chmod mode path\n"
19461 "\n"
19462 msgstr ""
19463
19464 # type: =head2
19465 #: ../fish/guestfish-actions.pod:673
19466 msgid "chown"
19467 msgstr ""
19468
19469 # type: verbatim
19470 #: ../fish/guestfish-actions.pod:675
19471 #, no-wrap
19472 msgid ""
19473 " chown owner group path\n"
19474 "\n"
19475 msgstr ""
19476
19477 # type: =head2
19478 #: ../fish/guestfish-actions.pod:683
19479 msgid "command"
19480 msgstr ""
19481
19482 # type: verbatim
19483 #: ../fish/guestfish-actions.pod:685
19484 #, no-wrap
19485 msgid ""
19486 " command 'arguments ...'\n"
19487 "\n"
19488 msgstr ""
19489
19490 # type: textblock
19491 #: ../fish/guestfish-actions.pod:692
19492 msgid ""
19493 "The single parameter is an argv-style list of arguments.  The first element "
19494 "is the name of the program to run.  Subsequent elements are parameters.  The "
19495 "list must be non-empty (ie. must contain a program name).  Note that the "
19496 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19497 msgstr ""
19498
19499 # type: =head2
19500 #: ../fish/guestfish-actions.pod:720
19501 msgid "command-lines"
19502 msgstr ""
19503
19504 # type: verbatim
19505 #: ../fish/guestfish-actions.pod:722
19506 #, no-wrap
19507 msgid ""
19508 " command-lines 'arguments ...'\n"
19509 "\n"
19510 msgstr ""
19511
19512 # type: textblock
19513 #: ../fish/guestfish-actions.pod:724
19514 msgid "This is the same as L</command>, but splits the result into a list of lines."
19515 msgstr ""
19516
19517 # type: textblock
19518 #: ../fish/guestfish-actions.pod:727
19519 msgid "See also: L</sh-lines>"
19520 msgstr ""
19521
19522 # type: =head2
19523 #: ../fish/guestfish-actions.pod:732
19524 msgid "config"
19525 msgstr ""
19526
19527 # type: verbatim
19528 #: ../fish/guestfish-actions.pod:734
19529 #, no-wrap
19530 msgid ""
19531 " config qemuparam qemuvalue\n"
19532 "\n"
19533 msgstr ""
19534
19535 # type: =head2
19536 #: ../fish/guestfish-actions.pod:745
19537 msgid "copy-size"
19538 msgstr ""
19539
19540 # type: verbatim
19541 #: ../fish/guestfish-actions.pod:747
19542 #, no-wrap
19543 msgid ""
19544 " copy-size src dest size\n"
19545 "\n"
19546 msgstr ""
19547
19548 # type: =head2
19549 #: ../fish/guestfish-actions.pod:755
19550 msgid "cp"
19551 msgstr ""
19552
19553 # type: verbatim
19554 #: ../fish/guestfish-actions.pod:757
19555 #, no-wrap
19556 msgid ""
19557 " cp src dest\n"
19558 "\n"
19559 msgstr ""
19560
19561 # type: =head2
19562 #: ../fish/guestfish-actions.pod:762
19563 msgid "cp-a"
19564 msgstr ""
19565
19566 # type: verbatim
19567 #: ../fish/guestfish-actions.pod:764
19568 #, no-wrap
19569 msgid ""
19570 " cp-a src dest\n"
19571 "\n"
19572 msgstr ""
19573
19574 # type: =head2
19575 #: ../fish/guestfish-actions.pod:769
19576 msgid "dd"
19577 msgstr ""
19578
19579 # type: verbatim
19580 #: ../fish/guestfish-actions.pod:771
19581 #, no-wrap
19582 msgid ""
19583 " dd src dest\n"
19584 "\n"
19585 msgstr ""
19586
19587 # type: textblock
19588 #: ../fish/guestfish-actions.pod:778
19589 msgid ""
19590 "If the destination is a device, it must be as large or larger than the "
19591 "source file or device, otherwise the copy will fail.  This command cannot do "
19592 "partial copies (see L</copy-size>)."
19593 msgstr ""
19594
19595 # type: =head2
19596 #: ../fish/guestfish-actions.pod:782
19597 msgid "df"
19598 msgstr ""
19599
19600 # type: verbatim
19601 #: ../fish/guestfish-actions.pod:784
19602 #, no-wrap
19603 msgid ""
19604 " df\n"
19605 "\n"
19606 msgstr ""
19607
19608 # type: =head2
19609 #: ../fish/guestfish-actions.pod:792
19610 msgid "df-h"
19611 msgstr ""
19612
19613 # type: verbatim
19614 #: ../fish/guestfish-actions.pod:794
19615 #, no-wrap
19616 msgid ""
19617 " df-h\n"
19618 "\n"
19619 msgstr ""
19620
19621 # type: =head2
19622 #: ../fish/guestfish-actions.pod:803
19623 msgid "dmesg"
19624 msgstr ""
19625
19626 # type: verbatim
19627 #: ../fish/guestfish-actions.pod:805
19628 #, no-wrap
19629 msgid ""
19630 " dmesg\n"
19631 "\n"
19632 msgstr ""
19633
19634 # type: textblock
19635 #: ../fish/guestfish-actions.pod:811
19636 msgid ""
19637 "Another way to get the same information is to enable verbose messages with "
19638 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19639 "before running the program."
19640 msgstr ""
19641
19642 # type: =head2
19643 #: ../fish/guestfish-actions.pod:816
19644 msgid "download"
19645 msgstr ""
19646
19647 # type: verbatim
19648 #: ../fish/guestfish-actions.pod:818
19649 #, no-wrap
19650 msgid ""
19651 " download remotefilename (filename|-)\n"
19652 "\n"
19653 msgstr ""
19654
19655 # type: textblock
19656 #: ../fish/guestfish-actions.pod:825
19657 msgid "See also L</upload>, L</cat>."
19658 msgstr ""
19659
19660 # type: =head2
19661 #: ../fish/guestfish-actions.pod:829
19662 msgid "download-offset"
19663 msgstr ""
19664
19665 # type: verbatim
19666 #: ../fish/guestfish-actions.pod:831
19667 #, no-wrap
19668 msgid ""
19669 " download-offset remotefilename (filename|-) offset size\n"
19670 "\n"
19671 msgstr ""
19672
19673 # type: textblock
19674 #: ../fish/guestfish-actions.pod:839
19675 msgid ""
19676 "Note that there is no limit on the amount of data that can be downloaded "
19677 "with this call, unlike with L</pread>, and this call always reads the full "
19678 "amount unless an error occurs."
19679 msgstr ""
19680
19681 # type: textblock
19682 #: ../fish/guestfish-actions.pod:844
19683 msgid "See also L</download>, L</pread>."
19684 msgstr ""
19685
19686 # type: =head2
19687 #: ../fish/guestfish-actions.pod:848
19688 msgid "drop-caches"
19689 msgstr ""
19690
19691 # type: verbatim
19692 #: ../fish/guestfish-actions.pod:850
19693 #, no-wrap
19694 msgid ""
19695 " drop-caches whattodrop\n"
19696 "\n"
19697 msgstr ""
19698
19699 # type: =head2
19700 #: ../fish/guestfish-actions.pod:862
19701 msgid "du"
19702 msgstr ""
19703
19704 # type: verbatim
19705 #: ../fish/guestfish-actions.pod:864
19706 #, no-wrap
19707 msgid ""
19708 " du path\n"
19709 "\n"
19710 msgstr ""
19711
19712 # type: =head2
19713 #: ../fish/guestfish-actions.pod:876
19714 msgid "e2fsck-f"
19715 msgstr ""
19716
19717 # type: verbatim
19718 #: ../fish/guestfish-actions.pod:878
19719 #, no-wrap
19720 msgid ""
19721 " e2fsck-f device\n"
19722 "\n"
19723 msgstr ""
19724
19725 # type: textblock
19726 #: ../fish/guestfish-actions.pod:884
19727 msgid ""
19728 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19729 "should use L</fsck>."
19730 msgstr ""
19731
19732 # type: =head2
19733 #: ../fish/guestfish-actions.pod:887
19734 msgid "echo-daemon"
19735 msgstr ""
19736
19737 # type: verbatim
19738 #: ../fish/guestfish-actions.pod:889
19739 #, no-wrap
19740 msgid ""
19741 " echo-daemon 'words ...'\n"
19742 "\n"
19743 msgstr ""
19744
19745 # type: textblock
19746 #: ../fish/guestfish-actions.pod:896
19747 msgid "See also L</ping-daemon>."
19748 msgstr ""
19749
19750 # type: =head2
19751 #: ../fish/guestfish-actions.pod:898
19752 msgid "egrep"
19753 msgstr ""
19754
19755 # type: verbatim
19756 #: ../fish/guestfish-actions.pod:900
19757 #, no-wrap
19758 msgid ""
19759 " egrep regex path\n"
19760 "\n"
19761 msgstr ""
19762
19763 # type: =head2
19764 #: ../fish/guestfish-actions.pod:908
19765 msgid "egrepi"
19766 msgstr ""
19767
19768 # type: verbatim
19769 #: ../fish/guestfish-actions.pod:910
19770 #, no-wrap
19771 msgid ""
19772 " egrepi regex path\n"
19773 "\n"
19774 msgstr ""
19775
19776 # type: =head2
19777 #: ../fish/guestfish-actions.pod:918
19778 msgid "equal"
19779 msgstr ""
19780
19781 # type: verbatim
19782 #: ../fish/guestfish-actions.pod:920
19783 #, no-wrap
19784 msgid ""
19785 " equal file1 file2\n"
19786 "\n"
19787 msgstr ""
19788
19789 # type: =head2
19790 #: ../fish/guestfish-actions.pod:927
19791 msgid "exists"
19792 msgstr ""
19793
19794 # type: verbatim
19795 #: ../fish/guestfish-actions.pod:929
19796 #, no-wrap
19797 msgid ""
19798 " exists path\n"
19799 "\n"
19800 msgstr ""
19801
19802 # type: textblock
19803 #: ../fish/guestfish-actions.pod:934
19804 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19805 msgstr ""
19806
19807 # type: =head2
19808 #: ../fish/guestfish-actions.pod:936
19809 msgid "fallocate"
19810 msgstr ""
19811
19812 # type: verbatim
19813 #: ../fish/guestfish-actions.pod:938
19814 #, no-wrap
19815 msgid ""
19816 " fallocate path len\n"
19817 "\n"
19818 msgstr ""
19819
19820 # type: =head2
19821 #: ../fish/guestfish-actions.pod:955
19822 msgid "fallocate64"
19823 msgstr ""
19824
19825 # type: verbatim
19826 #: ../fish/guestfish-actions.pod:957
19827 #, no-wrap
19828 msgid ""
19829 " fallocate64 path len\n"
19830 "\n"
19831 msgstr ""
19832
19833 # type: textblock
19834 #: ../fish/guestfish-actions.pod:963
19835 msgid ""
19836 "Note that this call allocates disk blocks for the file.  To create a sparse "
19837 "file use L</truncate-size> instead."
19838 msgstr ""
19839
19840 # type: textblock
19841 #: ../fish/guestfish-actions.pod:966
19842 msgid ""
19843 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19844 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19845 "maximum size of files created through that call to 1GB."
19846 msgstr ""
19847
19848 # type: =head2
19849 #: ../fish/guestfish-actions.pod:975
19850 msgid "fgrep"
19851 msgstr ""
19852
19853 # type: verbatim
19854 #: ../fish/guestfish-actions.pod:977
19855 #, no-wrap
19856 msgid ""
19857 " fgrep pattern path\n"
19858 "\n"
19859 msgstr ""
19860
19861 # type: =head2
19862 #: ../fish/guestfish-actions.pod:985
19863 msgid "fgrepi"
19864 msgstr ""
19865
19866 # type: verbatim
19867 #: ../fish/guestfish-actions.pod:987
19868 #, no-wrap
19869 msgid ""
19870 " fgrepi pattern path\n"
19871 "\n"
19872 msgstr ""
19873
19874 # type: =head2
19875 #: ../fish/guestfish-actions.pod:995
19876 msgid "file"
19877 msgstr ""
19878
19879 # type: verbatim
19880 #: ../fish/guestfish-actions.pod:997
19881 #, no-wrap
19882 msgid ""
19883 " file path\n"
19884 "\n"
19885 msgstr ""
19886
19887 # type: textblock
19888 #: ../fish/guestfish-actions.pod:1009
19889 msgid ""
19890 "This command can also be used on C</dev/> devices (and partitions, LV "
19891 "names).  You can for example use this to determine if a device contains a "
19892 "filesystem, although it's usually better to use L</vfs-type>."
19893 msgstr ""
19894
19895 # type: =head2
19896 #: ../fish/guestfish-actions.pod:1019
19897 msgid "file-architecture"
19898 msgstr ""
19899
19900 # type: verbatim
19901 #: ../fish/guestfish-actions.pod:1021
19902 #, no-wrap
19903 msgid ""
19904 " file-architecture filename\n"
19905 "\n"
19906 msgstr ""
19907
19908 # type: =head2
19909 #: ../fish/guestfish-actions.pod:1124
19910 msgid "filesize"
19911 msgstr ""
19912
19913 # type: verbatim
19914 #: ../fish/guestfish-actions.pod:1126
19915 #, no-wrap
19916 msgid ""
19917 " filesize file\n"
19918 "\n"
19919 msgstr ""
19920
19921 # type: textblock
19922 #: ../fish/guestfish-actions.pod:1130
19923 msgid ""
19924 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
19925 "L</is-file> etc.  To get the size of block devices, use "
19926 "L</blockdev-getsize64>."
19927 msgstr ""
19928
19929 # type: =head2
19930 #: ../fish/guestfish-actions.pod:1134
19931 msgid "fill"
19932 msgstr ""
19933
19934 # type: verbatim
19935 #: ../fish/guestfish-actions.pod:1136
19936 #, no-wrap
19937 msgid ""
19938 " fill c len path\n"
19939 "\n"
19940 msgstr ""
19941
19942 # type: textblock
19943 #: ../fish/guestfish-actions.pod:1142
19944 msgid ""
19945 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19946 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19947 "L</fill-pattern>."
19948 msgstr ""
19949
19950 # type: =head2
19951 #: ../fish/guestfish-actions.pod:1147
19952 msgid "fill-pattern"
19953 msgstr ""
19954
19955 # type: verbatim
19956 #: ../fish/guestfish-actions.pod:1149
19957 #, no-wrap
19958 msgid ""
19959 " fill-pattern pattern len path\n"
19960 "\n"
19961 msgstr ""
19962
19963 # type: textblock
19964 #: ../fish/guestfish-actions.pod:1151
19965 msgid ""
19966 "This function is like L</fill> except that it creates a new file of length "
19967 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
19968 "is truncated if necessary to ensure the length of the file is exactly C<len> "
19969 "bytes."
19970 msgstr ""
19971
19972 # type: =head2
19973 #: ../fish/guestfish-actions.pod:1156
19974 msgid "find"
19975 msgstr ""
19976
19977 # type: verbatim
19978 #: ../fish/guestfish-actions.pod:1158
19979 #, no-wrap
19980 msgid ""
19981 " find directory\n"
19982 "\n"
19983 msgstr ""
19984
19985 # type: textblock
19986 #: ../fish/guestfish-actions.pod:1172
19987 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
19988 msgstr ""
19989
19990 # type: textblock
19991 #: ../fish/guestfish-actions.pod:1185
19992 msgid "See also L</find0>."
19993 msgstr ""
19994
19995 # type: =head2
19996 #: ../fish/guestfish-actions.pod:1190
19997 msgid "find0"
19998 msgstr ""
19999
20000 # type: verbatim
20001 #: ../fish/guestfish-actions.pod:1192
20002 #, no-wrap
20003 msgid ""
20004 " find0 directory (files|-)\n"
20005 "\n"
20006 msgstr ""
20007
20008 # type: textblock
20009 #: ../fish/guestfish-actions.pod:1198
20010 msgid "This command works the same way as L</find> with the following exceptions:"
20011 msgstr ""
20012
20013 # type: =head2
20014 #: ../fish/guestfish-actions.pod:1225
20015 msgid "findfs-label"
20016 msgstr ""
20017
20018 # type: verbatim
20019 #: ../fish/guestfish-actions.pod:1227
20020 #, no-wrap
20021 msgid ""
20022 " findfs-label label\n"
20023 "\n"
20024 msgstr ""
20025
20026 # type: textblock
20027 #: ../fish/guestfish-actions.pod:1233
20028 msgid "To find the label of a filesystem, use L</vfs-label>."
20029 msgstr ""
20030
20031 # type: =head2
20032 #: ../fish/guestfish-actions.pod:1235
20033 msgid "findfs-uuid"
20034 msgstr ""
20035
20036 # type: verbatim
20037 #: ../fish/guestfish-actions.pod:1237
20038 #, no-wrap
20039 msgid ""
20040 " findfs-uuid uuid\n"
20041 "\n"
20042 msgstr ""
20043
20044 # type: textblock
20045 #: ../fish/guestfish-actions.pod:1243
20046 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20047 msgstr ""
20048
20049 # type: =head2
20050 #: ../fish/guestfish-actions.pod:1245
20051 msgid "fsck"
20052 msgstr ""
20053
20054 # type: verbatim
20055 #: ../fish/guestfish-actions.pod:1247
20056 #, no-wrap
20057 msgid ""
20058 " fsck fstype device\n"
20059 "\n"
20060 msgstr ""
20061
20062 # type: =head2
20063 #: ../fish/guestfish-actions.pod:1277
20064 msgid "get-append"
20065 msgstr ""
20066
20067 # type: verbatim
20068 #: ../fish/guestfish-actions.pod:1279
20069 #, no-wrap
20070 msgid ""
20071 " get-append\n"
20072 "\n"
20073 msgstr ""
20074
20075 # type: =head2
20076 #: ../fish/guestfish-actions.pod:1286
20077 msgid "get-autosync"
20078 msgstr ""
20079
20080 # type: verbatim
20081 #: ../fish/guestfish-actions.pod:1288
20082 #, no-wrap
20083 msgid ""
20084 " get-autosync\n"
20085 "\n"
20086 msgstr ""
20087
20088 # type: =head2
20089 #: ../fish/guestfish-actions.pod:1292
20090 msgid "get-direct"
20091 msgstr ""
20092
20093 # type: verbatim
20094 #: ../fish/guestfish-actions.pod:1294
20095 #, no-wrap
20096 msgid ""
20097 " get-direct\n"
20098 "\n"
20099 msgstr ""
20100
20101 # type: =head2
20102 #: ../fish/guestfish-actions.pod:1298
20103 msgid "get-e2label"
20104 msgstr ""
20105
20106 # type: verbatim
20107 #: ../fish/guestfish-actions.pod:1300
20108 #, no-wrap
20109 msgid ""
20110 " get-e2label device\n"
20111 "\n"
20112 msgstr ""
20113
20114 # type: =head2
20115 #: ../fish/guestfish-actions.pod:1312
20116 msgid "get-e2uuid"
20117 msgstr ""
20118
20119 # type: verbatim
20120 #: ../fish/guestfish-actions.pod:1314
20121 #, no-wrap
20122 msgid ""
20123 " get-e2uuid device\n"
20124 "\n"
20125 msgstr ""
20126
20127 # type: =head2
20128 #: ../fish/guestfish-actions.pod:1326
20129 msgid "get-memsize"
20130 msgstr ""
20131
20132 # type: verbatim
20133 #: ../fish/guestfish-actions.pod:1328
20134 #, no-wrap
20135 msgid ""
20136 " get-memsize\n"
20137 "\n"
20138 msgstr ""
20139
20140 # type: textblock
20141 #: ../fish/guestfish-actions.pod:1333
20142 msgid ""
20143 "If L</set-memsize> was not called on this handle, and if "
20144 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20145 "value for memsize."
20146 msgstr ""
20147
20148 # type: =head2
20149 #: ../fish/guestfish-actions.pod:1340
20150 msgid "get-network"
20151 msgstr ""
20152
20153 # type: verbatim
20154 #: ../fish/guestfish-actions.pod:1342
20155 #, no-wrap
20156 msgid ""
20157 " get-network\n"
20158 "\n"
20159 msgstr ""
20160
20161 # type: =head2
20162 #: ../fish/guestfish-actions.pod:1346
20163 msgid "get-path"
20164 msgstr ""
20165
20166 # type: verbatim
20167 #: ../fish/guestfish-actions.pod:1348
20168 #, no-wrap
20169 msgid ""
20170 " get-path\n"
20171 "\n"
20172 msgstr ""
20173
20174 # type: =head2
20175 #: ../fish/guestfish-actions.pod:1355
20176 msgid "get-pid"
20177 msgstr ""
20178
20179 # type: =head2
20180 #: ../fish/guestfish-actions.pod:1357
20181 msgid "pid"
20182 msgstr ""
20183
20184 # type: verbatim
20185 #: ../fish/guestfish-actions.pod:1359
20186 #, no-wrap
20187 msgid ""
20188 " get-pid\n"
20189 "\n"
20190 msgstr ""
20191
20192 # type: =head2
20193 #: ../fish/guestfish-actions.pod:1366
20194 msgid "get-qemu"
20195 msgstr ""
20196
20197 # type: verbatim
20198 #: ../fish/guestfish-actions.pod:1368
20199 #, no-wrap
20200 msgid ""
20201 " get-qemu\n"
20202 "\n"
20203 msgstr ""
20204
20205 # type: =head2
20206 #: ../fish/guestfish-actions.pod:1375
20207 msgid "get-recovery-proc"
20208 msgstr ""
20209
20210 # type: verbatim
20211 #: ../fish/guestfish-actions.pod:1377
20212 #, no-wrap
20213 msgid ""
20214 " get-recovery-proc\n"
20215 "\n"
20216 msgstr ""
20217
20218 # type: =head2
20219 #: ../fish/guestfish-actions.pod:1381
20220 msgid "get-selinux"
20221 msgstr ""
20222
20223 # type: verbatim
20224 #: ../fish/guestfish-actions.pod:1383
20225 #, no-wrap
20226 msgid ""
20227 " get-selinux\n"
20228 "\n"
20229 msgstr ""
20230
20231 # type: textblock
20232 #: ../fish/guestfish-actions.pod:1385
20233 msgid ""
20234 "This returns the current setting of the selinux flag which is passed to the "
20235 "appliance at boot time.  See L</set-selinux>."
20236 msgstr ""
20237
20238 # type: =head2
20239 #: ../fish/guestfish-actions.pod:1391
20240 msgid "get-state"
20241 msgstr ""
20242
20243 # type: verbatim
20244 #: ../fish/guestfish-actions.pod:1393
20245 #, no-wrap
20246 msgid ""
20247 " get-state\n"
20248 "\n"
20249 msgstr ""
20250
20251 # type: =head2
20252 #: ../fish/guestfish-actions.pod:1400
20253 msgid "get-trace"
20254 msgstr ""
20255
20256 # type: verbatim
20257 #: ../fish/guestfish-actions.pod:1402
20258 #, no-wrap
20259 msgid ""
20260 " get-trace\n"
20261 "\n"
20262 msgstr ""
20263
20264 # type: =head2
20265 #: ../fish/guestfish-actions.pod:1406
20266 msgid "get-umask"
20267 msgstr ""
20268
20269 # type: verbatim
20270 #: ../fish/guestfish-actions.pod:1408
20271 #, no-wrap
20272 msgid ""
20273 " get-umask\n"
20274 "\n"
20275 msgstr ""
20276
20277 # type: textblock
20278 #: ../fish/guestfish-actions.pod:1410
20279 msgid ""
20280 "Return the current umask.  By default the umask is C<022> unless it has been "
20281 "set by calling L</umask>."
20282 msgstr ""
20283
20284 # type: =head2
20285 #: ../fish/guestfish-actions.pod:1413
20286 msgid "get-verbose"
20287 msgstr ""
20288
20289 # type: verbatim
20290 #: ../fish/guestfish-actions.pod:1415
20291 #, no-wrap
20292 msgid ""
20293 " get-verbose\n"
20294 "\n"
20295 msgstr ""
20296
20297 # type: =head2
20298 #: ../fish/guestfish-actions.pod:1419
20299 msgid "getcon"
20300 msgstr ""
20301
20302 # type: verbatim
20303 #: ../fish/guestfish-actions.pod:1421
20304 #, no-wrap
20305 msgid ""
20306 " getcon\n"
20307 "\n"
20308 msgstr ""
20309
20310 # type: textblock
20311 #: ../fish/guestfish-actions.pod:1425
20312 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20313 msgstr ""
20314
20315 # type: =head2
20316 #: ../fish/guestfish-actions.pod:1428
20317 msgid "getxattrs"
20318 msgstr ""
20319
20320 # type: verbatim
20321 #: ../fish/guestfish-actions.pod:1430
20322 #, no-wrap
20323 msgid ""
20324 " getxattrs path\n"
20325 "\n"
20326 msgstr ""
20327
20328 # type: textblock
20329 #: ../fish/guestfish-actions.pod:1438
20330 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20331 msgstr ""
20332
20333 # type: =head2
20334 #: ../fish/guestfish-actions.pod:1440
20335 msgid "glob-expand"
20336 msgstr ""
20337
20338 # type: verbatim
20339 #: ../fish/guestfish-actions.pod:1442
20340 #, no-wrap
20341 msgid ""
20342 " glob-expand pattern\n"
20343 "\n"
20344 msgstr ""
20345
20346 # type: =head2
20347 #: ../fish/guestfish-actions.pod:1455
20348 msgid "grep"
20349 msgstr ""
20350
20351 # type: verbatim
20352 #: ../fish/guestfish-actions.pod:1457
20353 #, no-wrap
20354 msgid ""
20355 " grep regex path\n"
20356 "\n"
20357 msgstr ""
20358
20359 # type: =head2
20360 #: ../fish/guestfish-actions.pod:1465
20361 msgid "grepi"
20362 msgstr ""
20363
20364 # type: verbatim
20365 #: ../fish/guestfish-actions.pod:1467
20366 #, no-wrap
20367 msgid ""
20368 " grepi regex path\n"
20369 "\n"
20370 msgstr ""
20371
20372 # type: =head2
20373 #: ../fish/guestfish-actions.pod:1475
20374 msgid "grub-install"
20375 msgstr ""
20376
20377 # type: verbatim
20378 #: ../fish/guestfish-actions.pod:1477
20379 #, no-wrap
20380 msgid ""
20381 " grub-install root device\n"
20382 "\n"
20383 msgstr ""
20384
20385 # type: =head2
20386 #: ../fish/guestfish-actions.pod:1493
20387 msgid "head"
20388 msgstr ""
20389
20390 # type: verbatim
20391 #: ../fish/guestfish-actions.pod:1495
20392 #, no-wrap
20393 msgid ""
20394 " head path\n"
20395 "\n"
20396 msgstr ""
20397
20398 # type: =head2
20399 #: ../fish/guestfish-actions.pod:1503
20400 msgid "head-n"
20401 msgstr ""
20402
20403 # type: verbatim
20404 #: ../fish/guestfish-actions.pod:1505
20405 #, no-wrap
20406 msgid ""
20407 " head-n nrlines path\n"
20408 "\n"
20409 msgstr ""
20410
20411 # type: =head2
20412 #: ../fish/guestfish-actions.pod:1518
20413 msgid "hexdump"
20414 msgstr ""
20415
20416 # type: verbatim
20417 #: ../fish/guestfish-actions.pod:1520
20418 #, no-wrap
20419 msgid ""
20420 " hexdump path\n"
20421 "\n"
20422 msgstr ""
20423
20424 # type: =head2
20425 #: ../fish/guestfish-actions.pod:1528
20426 msgid "initrd-cat"
20427 msgstr ""
20428
20429 # type: verbatim
20430 #: ../fish/guestfish-actions.pod:1530
20431 #, no-wrap
20432 msgid ""
20433 " initrd-cat initrdpath filename\n"
20434 "\n"
20435 msgstr ""
20436
20437 # type: textblock
20438 #: ../fish/guestfish-actions.pod:1542
20439 msgid "See also L</initrd-list>."
20440 msgstr ""
20441
20442 # type: =head2
20443 #: ../fish/guestfish-actions.pod:1547
20444 msgid "initrd-list"
20445 msgstr ""
20446
20447 # type: verbatim
20448 #: ../fish/guestfish-actions.pod:1549
20449 #, no-wrap
20450 msgid ""
20451 " initrd-list path\n"
20452 "\n"
20453 msgstr ""
20454
20455 # type: =head2
20456 #: ../fish/guestfish-actions.pod:1561
20457 msgid "inotify-add-watch"
20458 msgstr ""
20459
20460 # type: verbatim
20461 #: ../fish/guestfish-actions.pod:1563
20462 #, no-wrap
20463 msgid ""
20464 " inotify-add-watch path mask\n"
20465 "\n"
20466 msgstr ""
20467
20468 # type: =head2
20469 #: ../fish/guestfish-actions.pod:1575
20470 msgid "inotify-close"
20471 msgstr ""
20472
20473 # type: verbatim
20474 #: ../fish/guestfish-actions.pod:1577
20475 #, no-wrap
20476 msgid ""
20477 " inotify-close\n"
20478 "\n"
20479 msgstr ""
20480
20481 # type: =head2
20482 #: ../fish/guestfish-actions.pod:1583
20483 msgid "inotify-files"
20484 msgstr ""
20485
20486 # type: verbatim
20487 #: ../fish/guestfish-actions.pod:1585
20488 #, no-wrap
20489 msgid ""
20490 " inotify-files\n"
20491 "\n"
20492 msgstr ""
20493
20494 # type: textblock
20495 #: ../fish/guestfish-actions.pod:1587
20496 msgid ""
20497 "This function is a helpful wrapper around L</inotify-read> which just "
20498 "returns a list of pathnames of objects that were touched.  The returned "
20499 "pathnames are sorted and deduplicated."
20500 msgstr ""
20501
20502 # type: =head2
20503 #: ../fish/guestfish-actions.pod:1591
20504 msgid "inotify-init"
20505 msgstr ""
20506
20507 # type: verbatim
20508 #: ../fish/guestfish-actions.pod:1593
20509 #, no-wrap
20510 msgid ""
20511 " inotify-init maxevents\n"
20512 "\n"
20513 msgstr ""
20514
20515 # type: textblock
20516 #: ../fish/guestfish-actions.pod:1599
20517 msgid ""
20518 "C<maxevents> is the maximum number of events which will be queued up between "
20519 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20520 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20521 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20522 "but records the fact that it threw them away by setting a flag "
20523 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20524 msgstr ""
20525
20526 # type: textblock
20527 #: ../fish/guestfish-actions.pod:1609
20528 msgid ""
20529 "Before any events are generated, you have to add some watches to the "
20530 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20531 "L</inotify-watch-all>."
20532 msgstr ""
20533
20534 # type: textblock
20535 #: ../fish/guestfish-actions.pod:1615
20536 msgid ""
20537 "Queued up events should be read periodically by calling L</inotify-read> (or "
20538 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20539 "If you don't read the events out often enough then you risk the internal "
20540 "queue overflowing."
20541 msgstr ""
20542
20543 # type: textblock
20544 #: ../fish/guestfish-actions.pod:1622
20545 msgid ""
20546 "The handle should be closed after use by calling L</inotify-close>.  This "
20547 "also removes any watches automatically."
20548 msgstr ""
20549
20550 # type: =head2
20551 #: ../fish/guestfish-actions.pod:1631
20552 msgid "inotify-read"
20553 msgstr ""
20554
20555 # type: verbatim
20556 #: ../fish/guestfish-actions.pod:1633
20557 #, no-wrap
20558 msgid ""
20559 " inotify-read\n"
20560 "\n"
20561 msgstr ""
20562
20563 # type: =head2
20564 #: ../fish/guestfish-actions.pod:1646
20565 msgid "inotify-rm-watch"
20566 msgstr ""
20567
20568 # type: verbatim
20569 #: ../fish/guestfish-actions.pod:1648
20570 #, no-wrap
20571 msgid ""
20572 " inotify-rm-watch wd\n"
20573 "\n"
20574 msgstr ""
20575
20576 # type: textblock
20577 #: ../fish/guestfish-actions.pod:1650
20578 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20579 msgstr ""
20580
20581 # type: =head2
20582 #: ../fish/guestfish-actions.pod:1653
20583 msgid "inspect-get-arch"
20584 msgstr ""
20585
20586 # type: verbatim
20587 #: ../fish/guestfish-actions.pod:1655
20588 #, no-wrap
20589 msgid ""
20590 " inspect-get-arch root\n"
20591 "\n"
20592 msgstr ""
20593
20594 # type: textblock
20595 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673 ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765 ../fish/guestfish-actions.pod:1786 ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1824 ../fish/guestfish-actions.pod:1846 ../fish/guestfish-actions.pod:1870 ../fish/guestfish-actions.pod:1900 ../fish/guestfish-actions.pod:1935 ../fish/guestfish-actions.pod:1951
20596 msgid ""
20597 "This function should only be called with a root device string as returned by "
20598 "L</inspect-os>."
20599 msgstr ""
20600
20601 # type: textblock
20602 #: ../fish/guestfish-actions.pod:1660
20603 msgid ""
20604 "This returns the architecture of the inspected operating system.  The "
20605 "possible return values are listed under L</file-architecture>."
20606 msgstr ""
20607
20608 # type: =head2
20609 #: ../fish/guestfish-actions.pod:1669
20610 msgid "inspect-get-distro"
20611 msgstr ""
20612
20613 # type: verbatim
20614 #: ../fish/guestfish-actions.pod:1671
20615 #, no-wrap
20616 msgid ""
20617 " inspect-get-distro root\n"
20618 "\n"
20619 msgstr ""
20620
20621 # type: =head2
20622 #: ../fish/guestfish-actions.pod:1743
20623 msgid "inspect-get-filesystems"
20624 msgstr ""
20625
20626 # type: verbatim
20627 #: ../fish/guestfish-actions.pod:1745
20628 #, no-wrap
20629 msgid ""
20630 " inspect-get-filesystems root\n"
20631 "\n"
20632 msgstr ""
20633
20634 # type: textblock
20635 #: ../fish/guestfish-actions.pod:1758
20636 msgid ""
20637 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20638 "L</inspect-get-mountpoints>."
20639 msgstr ""
20640
20641 # type: =head2
20642 #: ../fish/guestfish-actions.pod:1761
20643 msgid "inspect-get-major-version"
20644 msgstr ""
20645
20646 # type: verbatim
20647 #: ../fish/guestfish-actions.pod:1763
20648 #, no-wrap
20649 msgid ""
20650 " inspect-get-major-version root\n"
20651 "\n"
20652 msgstr ""
20653
20654 # type: =head2
20655 #: ../fish/guestfish-actions.pod:1782
20656 msgid "inspect-get-minor-version"
20657 msgstr ""
20658
20659 # type: verbatim
20660 #: ../fish/guestfish-actions.pod:1784
20661 #, no-wrap
20662 msgid ""
20663 " inspect-get-minor-version root\n"
20664 "\n"
20665 msgstr ""
20666
20667 # type: textblock
20668 #: ../fish/guestfish-actions.pod:1794
20669 msgid ""
20670 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20671 "L</inspect-get-major-version>."
20672 msgstr ""
20673
20674 # type: =head2
20675 #: ../fish/guestfish-actions.pod:1797
20676 msgid "inspect-get-mountpoints"
20677 msgstr ""
20678
20679 # type: verbatim
20680 #: ../fish/guestfish-actions.pod:1799
20681 #, no-wrap
20682 msgid ""
20683 " inspect-get-mountpoints root\n"
20684 "\n"
20685 msgstr ""
20686
20687 # type: textblock
20688 #: ../fish/guestfish-actions.pod:1817
20689 msgid ""
20690 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20691 "L</inspect-get-filesystems>."
20692 msgstr ""
20693
20694 # type: =head2
20695 #: ../fish/guestfish-actions.pod:1820
20696 msgid "inspect-get-package-format"
20697 msgstr ""
20698
20699 # type: verbatim
20700 #: ../fish/guestfish-actions.pod:1822
20701 #, no-wrap
20702 msgid ""
20703 " inspect-get-package-format root\n"
20704 "\n"
20705 msgstr ""
20706
20707 # type: textblock
20708 #: ../fish/guestfish-actions.pod:1827
20709 msgid ""
20710 "This function and L</inspect-get-package-management> return the package "
20711 "format and package management tool used by the inspected operating system.  "
20712 "For example for Fedora these functions would return C<rpm> (package format) "
20713 "and C<yum> (package management)."
20714 msgstr ""
20715
20716 # type: =head2
20717 #: ../fish/guestfish-actions.pod:1842
20718 msgid "inspect-get-package-management"
20719 msgstr ""
20720
20721 # type: verbatim
20722 #: ../fish/guestfish-actions.pod:1844
20723 #, no-wrap
20724 msgid ""
20725 " inspect-get-package-management root\n"
20726 "\n"
20727 msgstr ""
20728
20729 # type: textblock
20730 #: ../fish/guestfish-actions.pod:1849
20731 msgid ""
20732 "L</inspect-get-package-format> and this function return the package format "
20733 "and package management tool used by the inspected operating system.  For "
20734 "example for Fedora these functions would return C<rpm> (package format) and "
20735 "C<yum> (package management)."
20736 msgstr ""
20737
20738 # type: =head2
20739 #: ../fish/guestfish-actions.pod:1866
20740 msgid "inspect-get-product-name"
20741 msgstr ""
20742
20743 # type: verbatim
20744 #: ../fish/guestfish-actions.pod:1868
20745 #, no-wrap
20746 msgid ""
20747 " inspect-get-product-name root\n"
20748 "\n"
20749 msgstr ""
20750
20751 # type: =head2
20752 #: ../fish/guestfish-actions.pod:1883
20753 msgid "inspect-get-roots"
20754 msgstr ""
20755
20756 # type: verbatim
20757 #: ../fish/guestfish-actions.pod:1885
20758 #, no-wrap
20759 msgid ""
20760 " inspect-get-roots\n"
20761 "\n"
20762 msgstr ""
20763
20764 # type: textblock
20765 #: ../fish/guestfish-actions.pod:1887
20766 msgid ""
20767 "This function is a convenient way to get the list of root devices, as "
20768 "returned from a previous call to L</inspect-os>, but without redoing the "
20769 "whole inspection process."
20770 msgstr ""
20771
20772 # type: textblock
20773 #: ../fish/guestfish-actions.pod:1891
20774 msgid ""
20775 "This returns an empty list if either no root devices were found or the "
20776 "caller has not called L</inspect-os>."
20777 msgstr ""
20778
20779 # type: =head2
20780 #: ../fish/guestfish-actions.pod:1896
20781 msgid "inspect-get-type"
20782 msgstr ""
20783
20784 # type: verbatim
20785 #: ../fish/guestfish-actions.pod:1898
20786 #, no-wrap
20787 msgid ""
20788 " inspect-get-type root\n"
20789 "\n"
20790 msgstr ""
20791
20792 # type: =head2
20793 #: ../fish/guestfish-actions.pod:1931
20794 msgid "inspect-get-windows-systemroot"
20795 msgstr ""
20796
20797 # type: verbatim
20798 #: ../fish/guestfish-actions.pod:1933
20799 #, no-wrap
20800 msgid ""
20801 " inspect-get-windows-systemroot root\n"
20802 "\n"
20803 msgstr ""
20804
20805 # type: =head2
20806 #: ../fish/guestfish-actions.pod:1947
20807 msgid "inspect-list-applications"
20808 msgstr ""
20809
20810 # type: verbatim
20811 #: ../fish/guestfish-actions.pod:1949
20812 #, no-wrap
20813 msgid ""
20814 " inspect-list-applications root\n"
20815 "\n"
20816 msgstr ""
20817
20818 # type: textblock
20819 #: ../fish/guestfish-actions.pod:1956
20820 msgid ""
20821 "I<Note:> This call works differently from other parts of the inspection "
20822 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
20823 "then mount up the disks, before calling this.  Listing applications is a "
20824 "significantly more difficult operation which requires access to the full "
20825 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
20826 "are just returning data cached in the libguestfs handle, this call actually "
20827 "reads parts of the mounted filesystems during the call."
20828 msgstr ""
20829
20830 # type: =head2
20831 #: ../fish/guestfish-actions.pod:2046
20832 msgid "inspect-os"
20833 msgstr ""
20834
20835 # type: verbatim
20836 #: ../fish/guestfish-actions.pod:2048
20837 #, no-wrap
20838 msgid ""
20839 " inspect-os\n"
20840 "\n"
20841 msgstr ""
20842
20843 # type: textblock
20844 #: ../fish/guestfish-actions.pod:2063
20845 msgid ""
20846 "You can pass the root string(s) returned to other L</inspect-get-*> "
20847 "functions in order to query further information about each operating system, "
20848 "such as the name and version."
20849 msgstr ""
20850
20851 # type: textblock
20852 #: ../fish/guestfish-actions.pod:2068
20853 msgid ""
20854 "This function uses other libguestfs features such as L</mount-ro> and "
20855 "L</umount-all> in order to mount and unmount filesystems and look at the "
20856 "contents.  This should be called with no disks currently mounted.  The "
20857 "function may also use Augeas, so any existing Augeas handle will be closed."
20858 msgstr ""
20859
20860 # type: textblock
20861 #: ../fish/guestfish-actions.pod:2080 ../fish/guestfish-actions.pod:2236 ../fish/guestfish-actions.pod:2282
20862 msgid "See also L</list-filesystems>."
20863 msgstr ""
20864
20865 # type: =head2
20866 #: ../fish/guestfish-actions.pod:2082
20867 msgid "is-blockdev"
20868 msgstr ""
20869
20870 # type: verbatim
20871 #: ../fish/guestfish-actions.pod:2084
20872 #, no-wrap
20873 msgid ""
20874 " is-blockdev path\n"
20875 "\n"
20876 msgstr ""
20877
20878 # type: textblock
20879 #: ../fish/guestfish-actions.pod:2089 ../fish/guestfish-actions.pod:2107 ../fish/guestfish-actions.pod:2126 ../fish/guestfish-actions.pod:2135 ../fish/guestfish-actions.pod:2145 ../fish/guestfish-actions.pod:2179 ../fish/guestfish-actions.pod:2188
20880 msgid "See also L</stat>."
20881 msgstr ""
20882
20883 # type: =head2
20884 #: ../fish/guestfish-actions.pod:2091
20885 msgid "is-busy"
20886 msgstr ""
20887
20888 # type: verbatim
20889 #: ../fish/guestfish-actions.pod:2093
20890 #, no-wrap
20891 msgid ""
20892 " is-busy\n"
20893 "\n"
20894 msgstr ""
20895
20896 # type: =head2
20897 #: ../fish/guestfish-actions.pod:2100
20898 msgid "is-chardev"
20899 msgstr ""
20900
20901 # type: verbatim
20902 #: ../fish/guestfish-actions.pod:2102
20903 #, no-wrap
20904 msgid ""
20905 " is-chardev path\n"
20906 "\n"
20907 msgstr ""
20908
20909 # type: =head2
20910 #: ../fish/guestfish-actions.pod:2109
20911 msgid "is-config"
20912 msgstr ""
20913
20914 # type: verbatim
20915 #: ../fish/guestfish-actions.pod:2111
20916 #, no-wrap
20917 msgid ""
20918 " is-config\n"
20919 "\n"
20920 msgstr ""
20921
20922 # type: =head2
20923 #: ../fish/guestfish-actions.pod:2118
20924 msgid "is-dir"
20925 msgstr ""
20926
20927 # type: verbatim
20928 #: ../fish/guestfish-actions.pod:2120
20929 #, no-wrap
20930 msgid ""
20931 " is-dir path\n"
20932 "\n"
20933 msgstr ""
20934
20935 # type: =head2
20936 #: ../fish/guestfish-actions.pod:2128
20937 msgid "is-fifo"
20938 msgstr ""
20939
20940 # type: verbatim
20941 #: ../fish/guestfish-actions.pod:2130
20942 #, no-wrap
20943 msgid ""
20944 " is-fifo path\n"
20945 "\n"
20946 msgstr ""
20947
20948 # type: =head2
20949 #: ../fish/guestfish-actions.pod:2137
20950 msgid "is-file"
20951 msgstr ""
20952
20953 # type: verbatim
20954 #: ../fish/guestfish-actions.pod:2139
20955 #, no-wrap
20956 msgid ""
20957 " is-file path\n"
20958 "\n"
20959 msgstr ""
20960
20961 # type: =head2
20962 #: ../fish/guestfish-actions.pod:2147
20963 msgid "is-launching"
20964 msgstr ""
20965
20966 # type: verbatim
20967 #: ../fish/guestfish-actions.pod:2149
20968 #, no-wrap
20969 msgid ""
20970 " is-launching\n"
20971 "\n"
20972 msgstr ""
20973
20974 # type: =head2
20975 #: ../fish/guestfish-actions.pod:2156
20976 msgid "is-lv"
20977 msgstr ""
20978
20979 # type: verbatim
20980 #: ../fish/guestfish-actions.pod:2158
20981 #, no-wrap
20982 msgid ""
20983 " is-lv device\n"
20984 "\n"
20985 msgstr ""
20986
20987 # type: =head2
20988 #: ../fish/guestfish-actions.pod:2163
20989 msgid "is-ready"
20990 msgstr ""
20991
20992 # type: verbatim
20993 #: ../fish/guestfish-actions.pod:2165
20994 #, no-wrap
20995 msgid ""
20996 " is-ready\n"
20997 "\n"
20998 msgstr ""
20999
21000 # type: =head2
21001 #: ../fish/guestfish-actions.pod:2172
21002 msgid "is-socket"
21003 msgstr ""
21004
21005 # type: verbatim
21006 #: ../fish/guestfish-actions.pod:2174
21007 #, no-wrap
21008 msgid ""
21009 " is-socket path\n"
21010 "\n"
21011 msgstr ""
21012
21013 # type: =head2
21014 #: ../fish/guestfish-actions.pod:2181
21015 msgid "is-symlink"
21016 msgstr ""
21017
21018 # type: verbatim
21019 #: ../fish/guestfish-actions.pod:2183
21020 #, no-wrap
21021 msgid ""
21022 " is-symlink path\n"
21023 "\n"
21024 msgstr ""
21025
21026 # type: =head2
21027 #: ../fish/guestfish-actions.pod:2190
21028 msgid "kill-subprocess"
21029 msgstr ""
21030
21031 # type: verbatim
21032 #: ../fish/guestfish-actions.pod:2192
21033 #, no-wrap
21034 msgid ""
21035 " kill-subprocess\n"
21036 "\n"
21037 msgstr ""
21038
21039 # type: =head2
21040 #: ../fish/guestfish-actions.pod:2196
21041 msgid "launch"
21042 msgstr ""
21043
21044 # type: =head2
21045 #: ../fish/guestfish-actions.pod:2198
21046 msgid "run"
21047 msgstr ""
21048
21049 # type: verbatim
21050 #: ../fish/guestfish-actions.pod:2200
21051 #, no-wrap
21052 msgid ""
21053 " launch\n"
21054 "\n"
21055 msgstr ""
21056
21057 # type: =head2
21058 #: ../fish/guestfish-actions.pod:2208
21059 msgid "lchown"
21060 msgstr ""
21061
21062 # type: verbatim
21063 #: ../fish/guestfish-actions.pod:2210
21064 #, no-wrap
21065 msgid ""
21066 " lchown owner group path\n"
21067 "\n"
21068 msgstr ""
21069
21070 # type: textblock
21071 #: ../fish/guestfish-actions.pod:2212
21072 msgid ""
21073 "Change the file owner to C<owner> and group to C<group>.  This is like "
21074 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
21075 "the target."
21076 msgstr ""
21077
21078 # type: =head2
21079 #: ../fish/guestfish-actions.pod:2220
21080 msgid "lgetxattrs"
21081 msgstr ""
21082
21083 # type: verbatim
21084 #: ../fish/guestfish-actions.pod:2222
21085 #, no-wrap
21086 msgid ""
21087 " lgetxattrs path\n"
21088 "\n"
21089 msgstr ""
21090
21091 # type: textblock
21092 #: ../fish/guestfish-actions.pod:2224
21093 msgid ""
21094 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21095 "it returns the extended attributes of the link itself."
21096 msgstr ""
21097
21098 # type: =head2
21099 #: ../fish/guestfish-actions.pod:2228
21100 msgid "list-devices"
21101 msgstr ""
21102
21103 # type: verbatim
21104 #: ../fish/guestfish-actions.pod:2230
21105 #, no-wrap
21106 msgid ""
21107 " list-devices\n"
21108 "\n"
21109 msgstr ""
21110
21111 # type: =head2
21112 #: ../fish/guestfish-actions.pod:2238
21113 msgid "list-filesystems"
21114 msgstr ""
21115
21116 # type: verbatim
21117 #: ../fish/guestfish-actions.pod:2240
21118 #, no-wrap
21119 msgid ""
21120 " list-filesystems\n"
21121 "\n"
21122 msgstr ""
21123
21124 # type: textblock
21125 #: ../fish/guestfish-actions.pod:2259
21126 msgid ""
21127 "This command runs other libguestfs commands, which might include L</mount> "
21128 "and L</umount>, and therefore you should use this soon after launch and only "
21129 "when nothing is mounted."
21130 msgstr ""
21131
21132 # type: textblock
21133 #: ../fish/guestfish-actions.pod:2263
21134 msgid ""
21135 "Not all of the filesystems returned will be mountable.  In particular, swap "
21136 "partitions are returned in the list.  Also this command does not check that "
21137 "each filesystem found is valid and mountable, and some filesystems might be "
21138 "mountable but require special options.  Filesystems may not all belong to a "
21139 "single logical operating system (use L</inspect-os> to look for OSes)."
21140 msgstr ""
21141
21142 # type: =head2
21143 #: ../fish/guestfish-actions.pod:2271
21144 msgid "list-partitions"
21145 msgstr ""
21146
21147 # type: verbatim
21148 #: ../fish/guestfish-actions.pod:2273
21149 #, no-wrap
21150 msgid ""
21151 " list-partitions\n"
21152 "\n"
21153 msgstr ""
21154
21155 # type: textblock
21156 #: ../fish/guestfish-actions.pod:2279
21157 msgid ""
21158 "This does not return logical volumes.  For that you will need to call "
21159 "L</lvs>."
21160 msgstr ""
21161
21162 # type: =head2
21163 #: ../fish/guestfish-actions.pod:2284
21164 msgid "ll"
21165 msgstr ""
21166
21167 # type: verbatim
21168 #: ../fish/guestfish-actions.pod:2286
21169 #, no-wrap
21170 msgid ""
21171 " ll directory\n"
21172 "\n"
21173 msgstr ""
21174
21175 # type: =head2
21176 #: ../fish/guestfish-actions.pod:2294
21177 msgid "ln"
21178 msgstr ""
21179
21180 # type: verbatim
21181 #: ../fish/guestfish-actions.pod:2296
21182 #, no-wrap
21183 msgid ""
21184 " ln target linkname\n"
21185 "\n"
21186 msgstr ""
21187
21188 # type: =head2
21189 #: ../fish/guestfish-actions.pod:2300
21190 msgid "ln-f"
21191 msgstr ""
21192
21193 # type: verbatim
21194 #: ../fish/guestfish-actions.pod:2302
21195 #, no-wrap
21196 msgid ""
21197 " ln-f target linkname\n"
21198 "\n"
21199 msgstr ""
21200
21201 # type: =head2
21202 #: ../fish/guestfish-actions.pod:2307
21203 msgid "ln-s"
21204 msgstr ""
21205
21206 # type: verbatim
21207 #: ../fish/guestfish-actions.pod:2309
21208 #, no-wrap
21209 msgid ""
21210 " ln-s target linkname\n"
21211 "\n"
21212 msgstr ""
21213
21214 # type: =head2
21215 #: ../fish/guestfish-actions.pod:2313
21216 msgid "ln-sf"
21217 msgstr ""
21218
21219 # type: verbatim
21220 #: ../fish/guestfish-actions.pod:2315
21221 #, no-wrap
21222 msgid ""
21223 " ln-sf target linkname\n"
21224 "\n"
21225 msgstr ""
21226
21227 # type: =head2
21228 #: ../fish/guestfish-actions.pod:2320
21229 msgid "lremovexattr"
21230 msgstr ""
21231
21232 # type: verbatim
21233 #: ../fish/guestfish-actions.pod:2322
21234 #, no-wrap
21235 msgid ""
21236 " lremovexattr xattr path\n"
21237 "\n"
21238 msgstr ""
21239
21240 # type: textblock
21241 #: ../fish/guestfish-actions.pod:2324
21242 msgid ""
21243 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21244 "it removes an extended attribute of the link itself."
21245 msgstr ""
21246
21247 # type: =head2
21248 #: ../fish/guestfish-actions.pod:2328
21249 msgid "ls"
21250 msgstr ""
21251
21252 # type: verbatim
21253 #: ../fish/guestfish-actions.pod:2330
21254 #, no-wrap
21255 msgid ""
21256 " ls directory\n"
21257 "\n"
21258 msgstr ""
21259
21260 # type: textblock
21261 #: ../fish/guestfish-actions.pod:2336
21262 msgid ""
21263 "This command is mostly useful for interactive sessions.  Programs should "
21264 "probably use L</readdir> instead."
21265 msgstr ""
21266
21267 # type: =head2
21268 #: ../fish/guestfish-actions.pod:2339
21269 msgid "lsetxattr"
21270 msgstr ""
21271
21272 # type: verbatim
21273 #: ../fish/guestfish-actions.pod:2341
21274 #, no-wrap
21275 msgid ""
21276 " lsetxattr xattr val vallen path\n"
21277 "\n"
21278 msgstr ""
21279
21280 # type: textblock
21281 #: ../fish/guestfish-actions.pod:2343
21282 msgid ""
21283 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21284 "sets an extended attribute of the link itself."
21285 msgstr ""
21286
21287 # type: =head2
21288 #: ../fish/guestfish-actions.pod:2347
21289 msgid "lstat"
21290 msgstr ""
21291
21292 # type: verbatim
21293 #: ../fish/guestfish-actions.pod:2349
21294 #, no-wrap
21295 msgid ""
21296 " lstat path\n"
21297 "\n"
21298 msgstr ""
21299
21300 # type: textblock
21301 #: ../fish/guestfish-actions.pod:2353
21302 msgid ""
21303 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21304 "the link is stat-ed, not the file it refers to."
21305 msgstr ""
21306
21307 # type: =head2
21308 #: ../fish/guestfish-actions.pod:2359
21309 msgid "lstatlist"
21310 msgstr ""
21311
21312 # type: verbatim
21313 #: ../fish/guestfish-actions.pod:2361
21314 #, no-wrap
21315 msgid ""
21316 " lstatlist path 'names ...'\n"
21317 "\n"
21318 msgstr ""
21319
21320 # type: textblock
21321 #: ../fish/guestfish-actions.pod:2363
21322 msgid ""
21323 "This call allows you to perform the L</lstat> operation on multiple files, "
21324 "where all files are in the directory C<path>.  C<names> is the list of files "
21325 "from this directory."
21326 msgstr ""
21327
21328 # type: textblock
21329 #: ../fish/guestfish-actions.pod:2372
21330 msgid ""
21331 "This call is intended for programs that want to efficiently list a directory "
21332 "contents without making many round-trips.  See also L</lxattrlist> for a "
21333 "similarly efficient call for getting extended attributes.  Very long "
21334 "directory listings might cause the protocol message size to be exceeded, "
21335 "causing this call to fail.  The caller must split up such requests into "
21336 "smaller groups of names."
21337 msgstr ""
21338
21339 # type: =head2
21340 #: ../fish/guestfish-actions.pod:2380
21341 msgid "luks-add-key"
21342 msgstr ""
21343
21344 # type: verbatim
21345 #: ../fish/guestfish-actions.pod:2382
21346 #, no-wrap
21347 msgid ""
21348 " luks-add-key device keyslot\n"
21349 "\n"
21350 msgstr ""
21351
21352 # type: textblock
21353 #: ../fish/guestfish-actions.pod:2389
21354 msgid ""
21355 "Note that if C<keyslot> already contains a key, then this command will "
21356 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21357 msgstr ""
21358
21359 # type: textblock
21360 #: ../fish/guestfish-actions.pod:2393 ../fish/guestfish-actions.pod:2415 ../fish/guestfish-actions.pod:2428 ../fish/guestfish-actions.pod:2442 ../fish/guestfish-actions.pod:2465 ../fish/guestfish-actions.pod:2475
21361 msgid ""
21362 "This command has one or more key or passphrase parameters.  Guestfish will "
21363 "prompt for these separately."
21364 msgstr ""
21365
21366 # type: =head2
21367 #: ../fish/guestfish-actions.pod:2396
21368 msgid "luks-close"
21369 msgstr ""
21370
21371 # type: verbatim
21372 #: ../fish/guestfish-actions.pod:2398
21373 #, no-wrap
21374 msgid ""
21375 " luks-close device\n"
21376 "\n"
21377 msgstr ""
21378
21379 # type: textblock
21380 #: ../fish/guestfish-actions.pod:2400
21381 msgid ""
21382 "This closes a LUKS device that was created earlier by L</luks-open> or "
21383 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
21384 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
21385 "underlying block device."
21386 msgstr ""
21387
21388 # type: =head2
21389 #: ../fish/guestfish-actions.pod:2406
21390 msgid "luks-format"
21391 msgstr ""
21392
21393 # type: verbatim
21394 #: ../fish/guestfish-actions.pod:2408
21395 #, no-wrap
21396 msgid ""
21397 " luks-format device keyslot\n"
21398 "\n"
21399 msgstr ""
21400
21401 # type: =head2
21402 #: ../fish/guestfish-actions.pod:2421
21403 msgid "luks-format-cipher"
21404 msgstr ""
21405
21406 # type: verbatim
21407 #: ../fish/guestfish-actions.pod:2423
21408 #, no-wrap
21409 msgid ""
21410 " luks-format-cipher device keyslot cipher\n"
21411 "\n"
21412 msgstr ""
21413
21414 # type: textblock
21415 #: ../fish/guestfish-actions.pod:2425
21416 msgid ""
21417 "This command is the same as L</luks-format> but it also allows you to set "
21418 "the C<cipher> used."
21419 msgstr ""
21420
21421 # type: =head2
21422 #: ../fish/guestfish-actions.pod:2434
21423 msgid "luks-kill-slot"
21424 msgstr ""
21425
21426 # type: verbatim
21427 #: ../fish/guestfish-actions.pod:2436
21428 #, no-wrap
21429 msgid ""
21430 " luks-kill-slot device keyslot\n"
21431 "\n"
21432 msgstr ""
21433
21434 # type: =head2
21435 #: ../fish/guestfish-actions.pod:2445
21436 msgid "luks-open"
21437 msgstr ""
21438
21439 # type: verbatim
21440 #: ../fish/guestfish-actions.pod:2447
21441 #, no-wrap
21442 msgid ""
21443 " luks-open device mapname\n"
21444 "\n"
21445 msgstr ""
21446
21447 # type: textblock
21448 #: ../fish/guestfish-actions.pod:2461
21449 msgid ""
21450 "If this block device contains LVM volume groups, then calling L</vgscan> "
21451 "followed by L</vg-activate-all> will make them visible."
21452 msgstr ""
21453
21454 # type: =head2
21455 #: ../fish/guestfish-actions.pod:2468
21456 msgid "luks-open-ro"
21457 msgstr ""
21458
21459 # type: verbatim
21460 #: ../fish/guestfish-actions.pod:2470
21461 #, no-wrap
21462 msgid ""
21463 " luks-open-ro device mapname\n"
21464 "\n"
21465 msgstr ""
21466
21467 # type: textblock
21468 #: ../fish/guestfish-actions.pod:2472
21469 msgid ""
21470 "This is the same as L</luks-open> except that a read-only mapping is "
21471 "created."
21472 msgstr ""
21473
21474 # type: =head2
21475 #: ../fish/guestfish-actions.pod:2478
21476 msgid "lvcreate"
21477 msgstr ""
21478
21479 # type: verbatim
21480 #: ../fish/guestfish-actions.pod:2480
21481 #, no-wrap
21482 msgid ""
21483 " lvcreate logvol volgroup mbytes\n"
21484 "\n"
21485 msgstr ""
21486
21487 # type: =head2
21488 #: ../fish/guestfish-actions.pod:2485
21489 msgid "lvm-canonical-lv-name"
21490 msgstr ""
21491
21492 # type: verbatim
21493 #: ../fish/guestfish-actions.pod:2487
21494 #, no-wrap
21495 msgid ""
21496 " lvm-canonical-lv-name lvname\n"
21497 "\n"
21498 msgstr ""
21499
21500 # type: textblock
21501 #: ../fish/guestfish-actions.pod:2496
21502 msgid "See also L</is-lv>."
21503 msgstr ""
21504
21505 # type: =head2
21506 #: ../fish/guestfish-actions.pod:2498
21507 msgid "lvm-clear-filter"
21508 msgstr ""
21509
21510 # type: verbatim
21511 #: ../fish/guestfish-actions.pod:2500
21512 #, no-wrap
21513 msgid ""
21514 " lvm-clear-filter\n"
21515 "\n"
21516 msgstr ""
21517
21518 # type: textblock
21519 #: ../fish/guestfish-actions.pod:2502
21520 msgid ""
21521 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21522 "block device."
21523 msgstr ""
21524
21525 # type: =head2
21526 #: ../fish/guestfish-actions.pod:2508
21527 msgid "lvm-remove-all"
21528 msgstr ""
21529
21530 # type: verbatim
21531 #: ../fish/guestfish-actions.pod:2510
21532 #, no-wrap
21533 msgid ""
21534 " lvm-remove-all\n"
21535 "\n"
21536 msgstr ""
21537
21538 # type: =head2
21539 #: ../fish/guestfish-actions.pod:2518
21540 msgid "lvm-set-filter"
21541 msgstr ""
21542
21543 # type: verbatim
21544 #: ../fish/guestfish-actions.pod:2520
21545 #, no-wrap
21546 msgid ""
21547 " lvm-set-filter 'devices ...'\n"
21548 "\n"
21549 msgstr ""
21550
21551 # type: =head2
21552 #: ../fish/guestfish-actions.pod:2545
21553 msgid "lvremove"
21554 msgstr ""
21555
21556 # type: verbatim
21557 #: ../fish/guestfish-actions.pod:2547
21558 #, no-wrap
21559 msgid ""
21560 " lvremove device\n"
21561 "\n"
21562 msgstr ""
21563
21564 # type: =head2
21565 #: ../fish/guestfish-actions.pod:2555
21566 msgid "lvrename"
21567 msgstr ""
21568
21569 # type: verbatim
21570 #: ../fish/guestfish-actions.pod:2557
21571 #, no-wrap
21572 msgid ""
21573 " lvrename logvol newlogvol\n"
21574 "\n"
21575 msgstr ""
21576
21577 # type: =head2
21578 #: ../fish/guestfish-actions.pod:2561
21579 msgid "lvresize"
21580 msgstr ""
21581
21582 # type: verbatim
21583 #: ../fish/guestfish-actions.pod:2563
21584 #, no-wrap
21585 msgid ""
21586 " lvresize device mbytes\n"
21587 "\n"
21588 msgstr ""
21589
21590 # type: =head2
21591 #: ../fish/guestfish-actions.pod:2569
21592 msgid "lvresize-free"
21593 msgstr ""
21594
21595 # type: verbatim
21596 #: ../fish/guestfish-actions.pod:2571
21597 #, no-wrap
21598 msgid ""
21599 " lvresize-free lv percent\n"
21600 "\n"
21601 msgstr ""
21602
21603 # type: =head2
21604 #: ../fish/guestfish-actions.pod:2579
21605 msgid "lvs"
21606 msgstr ""
21607
21608 # type: verbatim
21609 #: ../fish/guestfish-actions.pod:2581
21610 #, no-wrap
21611 msgid ""
21612 " lvs\n"
21613 "\n"
21614 msgstr ""
21615
21616 # type: textblock
21617 #: ../fish/guestfish-actions.pod:2589
21618 msgid "See also L</lvs-full>, L</list-filesystems>."
21619 msgstr ""
21620
21621 # type: =head2
21622 #: ../fish/guestfish-actions.pod:2591
21623 msgid "lvs-full"
21624 msgstr ""
21625
21626 # type: verbatim
21627 #: ../fish/guestfish-actions.pod:2593
21628 #, no-wrap
21629 msgid ""
21630 " lvs-full\n"
21631 "\n"
21632 msgstr ""
21633
21634 # type: =head2
21635 #: ../fish/guestfish-actions.pod:2598
21636 msgid "lvuuid"
21637 msgstr ""
21638
21639 # type: verbatim
21640 #: ../fish/guestfish-actions.pod:2600
21641 #, no-wrap
21642 msgid ""
21643 " lvuuid device\n"
21644 "\n"
21645 msgstr ""
21646
21647 # type: =head2
21648 #: ../fish/guestfish-actions.pod:2604
21649 msgid "lxattrlist"
21650 msgstr ""
21651
21652 # type: verbatim
21653 #: ../fish/guestfish-actions.pod:2606
21654 #, no-wrap
21655 msgid ""
21656 " lxattrlist path 'names ...'\n"
21657 "\n"
21658 msgstr ""
21659
21660 # type: textblock
21661 #: ../fish/guestfish-actions.pod:2622
21662 msgid ""
21663 "This call is intended for programs that want to efficiently list a directory "
21664 "contents without making many round-trips.  See also L</lstatlist> for a "
21665 "similarly efficient call for getting standard stats.  Very long directory "
21666 "listings might cause the protocol message size to be exceeded, causing this "
21667 "call to fail.  The caller must split up such requests into smaller groups of "
21668 "names."
21669 msgstr ""
21670
21671 # type: =head2
21672 #: ../fish/guestfish-actions.pod:2630
21673 msgid "mkdir"
21674 msgstr ""
21675
21676 # type: verbatim
21677 #: ../fish/guestfish-actions.pod:2632
21678 #, no-wrap
21679 msgid ""
21680 " mkdir path\n"
21681 "\n"
21682 msgstr ""
21683
21684 # type: =head2
21685 #: ../fish/guestfish-actions.pod:2636
21686 msgid "mkdir-mode"
21687 msgstr ""
21688
21689 # type: verbatim
21690 #: ../fish/guestfish-actions.pod:2638
21691 #, no-wrap
21692 msgid ""
21693 " mkdir-mode path mode\n"
21694 "\n"
21695 msgstr ""
21696
21697 # type: textblock
21698 #: ../fish/guestfish-actions.pod:2647
21699 msgid "See also L</mkdir>, L</umask>"
21700 msgstr ""
21701
21702 # type: =head2
21703 #: ../fish/guestfish-actions.pod:2649
21704 msgid "mkdir-p"
21705 msgstr ""
21706
21707 # type: verbatim
21708 #: ../fish/guestfish-actions.pod:2651
21709 #, no-wrap
21710 msgid ""
21711 " mkdir-p path\n"
21712 "\n"
21713 msgstr ""
21714
21715 # type: =head2
21716 #: ../fish/guestfish-actions.pod:2656
21717 msgid "mkdtemp"
21718 msgstr ""
21719
21720 # type: verbatim
21721 #: ../fish/guestfish-actions.pod:2658
21722 #, no-wrap
21723 msgid ""
21724 " mkdtemp template\n"
21725 "\n"
21726 msgstr ""
21727
21728 # type: =head2
21729 #: ../fish/guestfish-actions.pod:2679
21730 msgid "mke2fs-J"
21731 msgstr ""
21732
21733 # type: verbatim
21734 #: ../fish/guestfish-actions.pod:2681
21735 #, no-wrap
21736 msgid ""
21737 " mke2fs-J fstype blocksize device journal\n"
21738 "\n"
21739 msgstr ""
21740
21741 # type: textblock
21742 #: ../fish/guestfish-actions.pod:2689
21743 msgid "See also L</mke2journal>."
21744 msgstr ""
21745
21746 # type: =head2
21747 #: ../fish/guestfish-actions.pod:2691
21748 msgid "mke2fs-JL"
21749 msgstr ""
21750
21751 # type: verbatim
21752 #: ../fish/guestfish-actions.pod:2693
21753 #, no-wrap
21754 msgid ""
21755 " mke2fs-JL fstype blocksize device label\n"
21756 "\n"
21757 msgstr ""
21758
21759 # type: textblock
21760 #: ../fish/guestfish-actions.pod:2698
21761 msgid "See also L</mke2journal-L>."
21762 msgstr ""
21763
21764 # type: =head2
21765 #: ../fish/guestfish-actions.pod:2700
21766 msgid "mke2fs-JU"
21767 msgstr ""
21768
21769 # type: verbatim
21770 #: ../fish/guestfish-actions.pod:2702
21771 #, no-wrap
21772 msgid ""
21773 " mke2fs-JU fstype blocksize device uuid\n"
21774 "\n"
21775 msgstr ""
21776
21777 # type: textblock
21778 #: ../fish/guestfish-actions.pod:2707
21779 msgid "See also L</mke2journal-U>."
21780 msgstr ""
21781
21782 # type: =head2
21783 #: ../fish/guestfish-actions.pod:2709
21784 msgid "mke2journal"
21785 msgstr ""
21786
21787 # type: verbatim
21788 #: ../fish/guestfish-actions.pod:2711
21789 #, no-wrap
21790 msgid ""
21791 " mke2journal blocksize device\n"
21792 "\n"
21793 msgstr ""
21794
21795 # type: =head2
21796 #: ../fish/guestfish-actions.pod:2718
21797 msgid "mke2journal-L"
21798 msgstr ""
21799
21800 # type: verbatim
21801 #: ../fish/guestfish-actions.pod:2720
21802 #, no-wrap
21803 msgid ""
21804 " mke2journal-L blocksize label device\n"
21805 "\n"
21806 msgstr ""
21807
21808 # type: =head2
21809 #: ../fish/guestfish-actions.pod:2724
21810 msgid "mke2journal-U"
21811 msgstr ""
21812
21813 # type: verbatim
21814 #: ../fish/guestfish-actions.pod:2726
21815 #, no-wrap
21816 msgid ""
21817 " mke2journal-U blocksize uuid device\n"
21818 "\n"
21819 msgstr ""
21820
21821 # type: =head2
21822 #: ../fish/guestfish-actions.pod:2730
21823 msgid "mkfifo"
21824 msgstr ""
21825
21826 # type: verbatim
21827 #: ../fish/guestfish-actions.pod:2732
21828 #, no-wrap
21829 msgid ""
21830 " mkfifo mode path\n"
21831 "\n"
21832 msgstr ""
21833
21834 # type: textblock
21835 #: ../fish/guestfish-actions.pod:2734
21836 msgid ""
21837 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21838 "is just a convenient wrapper around L</mknod>."
21839 msgstr ""
21840
21841 # type: =head2
21842 #: ../fish/guestfish-actions.pod:2740
21843 msgid "mkfs"
21844 msgstr ""
21845
21846 # type: verbatim
21847 #: ../fish/guestfish-actions.pod:2742
21848 #, no-wrap
21849 msgid ""
21850 " mkfs fstype device\n"
21851 "\n"
21852 msgstr ""
21853
21854 # type: =head2
21855 #: ../fish/guestfish-actions.pod:2748
21856 msgid "mkfs-b"
21857 msgstr ""
21858
21859 # type: verbatim
21860 #: ../fish/guestfish-actions.pod:2750
21861 #, no-wrap
21862 msgid ""
21863 " mkfs-b fstype blocksize device\n"
21864 "\n"
21865 msgstr ""
21866
21867 # type: textblock
21868 #: ../fish/guestfish-actions.pod:2752
21869 msgid ""
21870 "This call is similar to L</mkfs>, but it allows you to control the block "
21871 "size of the resulting filesystem.  Supported block sizes depend on the "
21872 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21873 msgstr ""
21874
21875 # type: =head2
21876 #: ../fish/guestfish-actions.pod:2760
21877 msgid "mkmountpoint"
21878 msgstr ""
21879
21880 # type: verbatim
21881 #: ../fish/guestfish-actions.pod:2762
21882 #, no-wrap
21883 msgid ""
21884 " mkmountpoint exemptpath\n"
21885 "\n"
21886 msgstr ""
21887
21888 # type: textblock
21889 #: ../fish/guestfish-actions.pod:2764
21890 msgid ""
21891 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21892 "to create extra mountpoints before mounting the first filesystem."
21893 msgstr ""
21894
21895 # type: textblock
21896 #: ../fish/guestfish-actions.pod:2788
21897 msgid ""
21898 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21899 "unexpected errors if you try to mix these calls.  It is safest to manually "
21900 "unmount filesystems and remove mountpoints after use."
21901 msgstr ""
21902
21903 # type: textblock
21904 #: ../fish/guestfish-actions.pod:2792
21905 msgid ""
21906 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21907 "for this to work for manual mountpoints, you must ensure that the innermost "
21908 "mountpoints have the longest pathnames, as in the example code above."
21909 msgstr ""
21910
21911 # type: textblock
21912 #: ../fish/guestfish-actions.pod:2799
21913 msgid ""
21914 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21915 "that L</umount-all> is called when the handle is closed which can also "
21916 "trigger these issues."
21917 msgstr ""
21918
21919 # type: =head2
21920 #: ../fish/guestfish-actions.pod:2803
21921 msgid "mknod"
21922 msgstr ""
21923
21924 # type: verbatim
21925 #: ../fish/guestfish-actions.pod:2805
21926 #, no-wrap
21927 msgid ""
21928 " mknod mode devmajor devminor path\n"
21929 "\n"
21930 msgstr ""
21931
21932 # type: textblock
21933 #: ../fish/guestfish-actions.pod:2815
21934 msgid ""
21935 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21936 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21937 "regular file).  These constants are available in the standard Linux header "
21938 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21939 "wrappers around this command which bitwise OR in the appropriate constant "
21940 "for you."
21941 msgstr ""
21942
21943 # type: =head2
21944 #: ../fish/guestfish-actions.pod:2825
21945 msgid "mknod-b"
21946 msgstr ""
21947
21948 # type: verbatim
21949 #: ../fish/guestfish-actions.pod:2827
21950 #, no-wrap
21951 msgid ""
21952 " mknod-b mode devmajor devminor path\n"
21953 "\n"
21954 msgstr ""
21955
21956 # type: textblock
21957 #: ../fish/guestfish-actions.pod:2829
21958 msgid ""
21959 "This call creates a block device node called C<path> with mode C<mode> and "
21960 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21961 "wrapper around L</mknod>."
21962 msgstr ""
21963
21964 # type: =head2
21965 #: ../fish/guestfish-actions.pod:2835
21966 msgid "mknod-c"
21967 msgstr ""
21968
21969 # type: verbatim
21970 #: ../fish/guestfish-actions.pod:2837
21971 #, no-wrap
21972 msgid ""
21973 " mknod-c mode devmajor devminor path\n"
21974 "\n"
21975 msgstr ""
21976
21977 # type: textblock
21978 #: ../fish/guestfish-actions.pod:2839
21979 msgid ""
21980 "This call creates a char device node called C<path> with mode C<mode> and "
21981 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21982 "wrapper around L</mknod>."
21983 msgstr ""
21984
21985 # type: =head2
21986 #: ../fish/guestfish-actions.pod:2845
21987 msgid "mkswap"
21988 msgstr ""
21989
21990 # type: verbatim
21991 #: ../fish/guestfish-actions.pod:2847
21992 #, no-wrap
21993 msgid ""
21994 " mkswap device\n"
21995 "\n"
21996 msgstr ""
21997
21998 # type: =head2
21999 #: ../fish/guestfish-actions.pod:2851
22000 msgid "mkswap-L"
22001 msgstr ""
22002
22003 # type: verbatim
22004 #: ../fish/guestfish-actions.pod:2853
22005 #, no-wrap
22006 msgid ""
22007 " mkswap-L label device\n"
22008 "\n"
22009 msgstr ""
22010
22011 # type: =head2
22012 #: ../fish/guestfish-actions.pod:2861
22013 msgid "mkswap-U"
22014 msgstr ""
22015
22016 # type: verbatim
22017 #: ../fish/guestfish-actions.pod:2863
22018 #, no-wrap
22019 msgid ""
22020 " mkswap-U uuid device\n"
22021 "\n"
22022 msgstr ""
22023
22024 # type: =head2
22025 #: ../fish/guestfish-actions.pod:2867
22026 msgid "mkswap-file"
22027 msgstr ""
22028
22029 # type: verbatim
22030 #: ../fish/guestfish-actions.pod:2869
22031 #, no-wrap
22032 msgid ""
22033 " mkswap-file path\n"
22034 "\n"
22035 msgstr ""
22036
22037 # type: textblock
22038 #: ../fish/guestfish-actions.pod:2873
22039 msgid ""
22040 "This command just writes a swap file signature to an existing file.  To "
22041 "create the file itself, use something like L</fallocate>."
22042 msgstr ""
22043
22044 # type: =head2
22045 #: ../fish/guestfish-actions.pod:2876
22046 msgid "modprobe"
22047 msgstr ""
22048
22049 # type: verbatim
22050 #: ../fish/guestfish-actions.pod:2878
22051 #, no-wrap
22052 msgid ""
22053 " modprobe modulename\n"
22054 "\n"
22055 msgstr ""
22056
22057 # type: =head2
22058 #: ../fish/guestfish-actions.pod:2885
22059 msgid "mount"
22060 msgstr ""
22061
22062 # type: verbatim
22063 #: ../fish/guestfish-actions.pod:2887
22064 #, no-wrap
22065 msgid ""
22066 " mount device mountpoint\n"
22067 "\n"
22068 msgstr ""
22069
22070 # type: textblock
22071 #: ../fish/guestfish-actions.pod:2903
22072 msgid ""
22073 "B<Important note:> When you use this call, the filesystem options C<sync> "
22074 "and C<noatime> are set implicitly.  This was originally done because we "
22075 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22076 "very large negative performance impact and negligible effect on "
22077 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22078 "code that needs performance, and instead use L</mount-options> (use an empty "
22079 "string for the first parameter if you don't want any options)."
22080 msgstr ""
22081
22082 # type: =head2
22083 #: ../fish/guestfish-actions.pod:2913
22084 msgid "mount-loop"
22085 msgstr ""
22086
22087 # type: verbatim
22088 #: ../fish/guestfish-actions.pod:2915
22089 #, no-wrap
22090 msgid ""
22091 " mount-loop file mountpoint\n"
22092 "\n"
22093 msgstr ""
22094
22095 # type: =head2
22096 #: ../fish/guestfish-actions.pod:2921
22097 msgid "mount-options"
22098 msgstr ""
22099
22100 # type: verbatim
22101 #: ../fish/guestfish-actions.pod:2923
22102 #, no-wrap
22103 msgid ""
22104 " mount-options options device mountpoint\n"
22105 "\n"
22106 msgstr ""
22107
22108 # type: textblock
22109 #: ../fish/guestfish-actions.pod:2925
22110 msgid ""
22111 "This is the same as the L</mount> command, but it allows you to set the "
22112 "mount options as for the L<mount(8)> I<-o> flag."
22113 msgstr ""
22114
22115 # type: =head2
22116 #: ../fish/guestfish-actions.pod:2933
22117 msgid "mount-ro"
22118 msgstr ""
22119
22120 # type: verbatim
22121 #: ../fish/guestfish-actions.pod:2935
22122 #, no-wrap
22123 msgid ""
22124 " mount-ro device mountpoint\n"
22125 "\n"
22126 msgstr ""
22127
22128 # type: textblock
22129 #: ../fish/guestfish-actions.pod:2937
22130 msgid ""
22131 "This is the same as the L</mount> command, but it mounts the filesystem with "
22132 "the read-only (I<-o ro>) flag."
22133 msgstr ""
22134
22135 # type: =head2
22136 #: ../fish/guestfish-actions.pod:2940
22137 msgid "mount-vfs"
22138 msgstr ""
22139
22140 # type: verbatim
22141 #: ../fish/guestfish-actions.pod:2942
22142 #, no-wrap
22143 msgid ""
22144 " mount-vfs options vfstype device mountpoint\n"
22145 "\n"
22146 msgstr ""
22147
22148 # type: textblock
22149 #: ../fish/guestfish-actions.pod:2944
22150 msgid ""
22151 "This is the same as the L</mount> command, but it allows you to set both the "
22152 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22153 msgstr ""
22154
22155 # type: =head2
22156 #: ../fish/guestfish-actions.pod:2948
22157 msgid "mountpoints"
22158 msgstr ""
22159
22160 # type: verbatim
22161 #: ../fish/guestfish-actions.pod:2950
22162 #, no-wrap
22163 msgid ""
22164 " mountpoints\n"
22165 "\n"
22166 msgstr ""
22167
22168 # type: textblock
22169 #: ../fish/guestfish-actions.pod:2952
22170 msgid ""
22171 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22172 "This one returns a hash table (map) of device name to directory where the "
22173 "device is mounted."
22174 msgstr ""
22175
22176 # type: =head2
22177 #: ../fish/guestfish-actions.pod:2956
22178 msgid "mounts"
22179 msgstr ""
22180
22181 # type: verbatim
22182 #: ../fish/guestfish-actions.pod:2958
22183 #, no-wrap
22184 msgid ""
22185 " mounts\n"
22186 "\n"
22187 msgstr ""
22188
22189 # type: textblock
22190 #: ../fish/guestfish-actions.pod:2965
22191 msgid "See also: L</mountpoints>"
22192 msgstr ""
22193
22194 # type: =head2
22195 #: ../fish/guestfish-actions.pod:2967
22196 msgid "mv"
22197 msgstr ""
22198
22199 # type: verbatim
22200 #: ../fish/guestfish-actions.pod:2969
22201 #, no-wrap
22202 msgid ""
22203 " mv src dest\n"
22204 "\n"
22205 msgstr ""
22206
22207 # type: =head2
22208 #: ../fish/guestfish-actions.pod:2974
22209 msgid "ntfs-3g-probe"
22210 msgstr ""
22211
22212 # type: verbatim
22213 #: ../fish/guestfish-actions.pod:2976
22214 #, no-wrap
22215 msgid ""
22216 " ntfs-3g-probe true|false device\n"
22217 "\n"
22218 msgstr ""
22219
22220 # type: =head2
22221 #: ../fish/guestfish-actions.pod:2990
22222 msgid "ntfsresize"
22223 msgstr ""
22224
22225 # type: verbatim
22226 #: ../fish/guestfish-actions.pod:2992
22227 #, no-wrap
22228 msgid ""
22229 " ntfsresize device\n"
22230 "\n"
22231 msgstr ""
22232
22233 # type: =head2
22234 #: ../fish/guestfish-actions.pod:2998
22235 msgid "ntfsresize-size"
22236 msgstr ""
22237
22238 # type: verbatim
22239 #: ../fish/guestfish-actions.pod:3000
22240 #, no-wrap
22241 msgid ""
22242 " ntfsresize-size device size\n"
22243 "\n"
22244 msgstr ""
22245
22246 # type: textblock
22247 #: ../fish/guestfish-actions.pod:3002
22248 msgid ""
22249 "This command is the same as L</ntfsresize> except that it allows you to "
22250 "specify the new size (in bytes) explicitly."
22251 msgstr ""
22252
22253 # type: =head2
22254 #: ../fish/guestfish-actions.pod:3005
22255 msgid "part-add"
22256 msgstr ""
22257
22258 # type: verbatim
22259 #: ../fish/guestfish-actions.pod:3007
22260 #, no-wrap
22261 msgid ""
22262 " part-add device prlogex startsect endsect\n"
22263 "\n"
22264 msgstr ""
22265
22266 # type: textblock
22267 #: ../fish/guestfish-actions.pod:3009
22268 msgid ""
22269 "This command adds a partition to C<device>.  If there is no partition table "
22270 "on the device, call L</part-init> first."
22271 msgstr ""
22272
22273 # type: textblock
22274 #: ../fish/guestfish-actions.pod:3021
22275 msgid ""
22276 "Creating a partition which covers the whole disk is not so easy.  Use "
22277 "L</part-disk> to do that."
22278 msgstr ""
22279
22280 # type: =head2
22281 #: ../fish/guestfish-actions.pod:3024
22282 msgid "part-del"
22283 msgstr ""
22284
22285 # type: verbatim
22286 #: ../fish/guestfish-actions.pod:3026
22287 #, no-wrap
22288 msgid ""
22289 " part-del device partnum\n"
22290 "\n"
22291 msgstr ""
22292
22293 # type: =head2
22294 #: ../fish/guestfish-actions.pod:3034
22295 msgid "part-disk"
22296 msgstr ""
22297
22298 # type: verbatim
22299 #: ../fish/guestfish-actions.pod:3036
22300 #, no-wrap
22301 msgid ""
22302 " part-disk device parttype\n"
22303 "\n"
22304 msgstr ""
22305
22306 # type: textblock
22307 #: ../fish/guestfish-actions.pod:3038
22308 msgid ""
22309 "This command is simply a combination of L</part-init> followed by "
22310 "L</part-add> to create a single primary partition covering the whole disk."
22311 msgstr ""
22312
22313 # type: textblock
22314 #: ../fish/guestfish-actions.pod:3042
22315 msgid ""
22316 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22317 "possible values are described in L</part-init>."
22318 msgstr ""
22319
22320 # type: =head2
22321 #: ../fish/guestfish-actions.pod:3048
22322 msgid "part-get-bootable"
22323 msgstr ""
22324
22325 # type: verbatim
22326 #: ../fish/guestfish-actions.pod:3050
22327 #, no-wrap
22328 msgid ""
22329 " part-get-bootable device partnum\n"
22330 "\n"
22331 msgstr ""
22332
22333 # type: textblock
22334 #: ../fish/guestfish-actions.pod:3055
22335 msgid "See also L</part-set-bootable>."
22336 msgstr ""
22337
22338 # type: =head2
22339 #: ../fish/guestfish-actions.pod:3057
22340 msgid "part-get-mbr-id"
22341 msgstr ""
22342
22343 # type: verbatim
22344 #: ../fish/guestfish-actions.pod:3059
22345 #, no-wrap
22346 msgid ""
22347 " part-get-mbr-id device partnum\n"
22348 "\n"
22349 msgstr ""
22350
22351 # type: textblock
22352 #: ../fish/guestfish-actions.pod:3064 ../fish/guestfish-actions.pod:3202
22353 msgid ""
22354 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22355 "undefined results for other partition table types (see "
22356 "L</part-get-parttype>)."
22357 msgstr ""
22358
22359 # type: =head2
22360 #: ../fish/guestfish-actions.pod:3068
22361 msgid "part-get-parttype"
22362 msgstr ""
22363
22364 # type: verbatim
22365 #: ../fish/guestfish-actions.pod:3070
22366 #, no-wrap
22367 msgid ""
22368 " part-get-parttype device\n"
22369 "\n"
22370 msgstr ""
22371
22372 # type: textblock
22373 #: ../fish/guestfish-actions.pod:3075
22374 msgid ""
22375 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22376 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22377 "possible, although unusual.  See L</part-init> for a full list."
22378 msgstr ""
22379
22380 # type: =head2
22381 #: ../fish/guestfish-actions.pod:3080
22382 msgid "part-init"
22383 msgstr ""
22384
22385 # type: verbatim
22386 #: ../fish/guestfish-actions.pod:3082
22387 #, no-wrap
22388 msgid ""
22389 " part-init device parttype\n"
22390 "\n"
22391 msgstr ""
22392
22393 # type: textblock
22394 #: ../fish/guestfish-actions.pod:3088
22395 msgid ""
22396 "Initially there are no partitions.  Following this, you should call "
22397 "L</part-add> for each partition required."
22398 msgstr ""
22399
22400 # type: =head2
22401 #: ../fish/guestfish-actions.pod:3151
22402 msgid "part-list"
22403 msgstr ""
22404
22405 # type: verbatim
22406 #: ../fish/guestfish-actions.pod:3153
22407 #, no-wrap
22408 msgid ""
22409 " part-list device\n"
22410 "\n"
22411 msgstr ""
22412
22413 # type: textblock
22414 #: ../fish/guestfish-actions.pod:3168
22415 msgid ""
22416 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22417 "the device's sector size, see L</blockdev-getss>."
22418 msgstr ""
22419
22420 # type: =head2
22421 #: ../fish/guestfish-actions.pod:3181
22422 msgid "part-set-bootable"
22423 msgstr ""
22424
22425 # type: verbatim
22426 #: ../fish/guestfish-actions.pod:3183
22427 #, no-wrap
22428 msgid ""
22429 " part-set-bootable device partnum true|false\n"
22430 "\n"
22431 msgstr ""
22432
22433 # type: =head2
22434 #: ../fish/guestfish-actions.pod:3192
22435 msgid "part-set-mbr-id"
22436 msgstr ""
22437
22438 # type: verbatim
22439 #: ../fish/guestfish-actions.pod:3194
22440 #, no-wrap
22441 msgid ""
22442 " part-set-mbr-id device partnum idbyte\n"
22443 "\n"
22444 msgstr ""
22445
22446 # type: =head2
22447 #: ../fish/guestfish-actions.pod:3206
22448 msgid "part-set-name"
22449 msgstr ""
22450
22451 # type: verbatim
22452 #: ../fish/guestfish-actions.pod:3208
22453 #, no-wrap
22454 msgid ""
22455 " part-set-name device partnum name\n"
22456 "\n"
22457 msgstr ""
22458
22459 # type: =head2
22460 #: ../fish/guestfish-actions.pod:3216
22461 msgid "part-to-dev"
22462 msgstr ""
22463
22464 # type: verbatim
22465 #: ../fish/guestfish-actions.pod:3218
22466 #, no-wrap
22467 msgid ""
22468 " part-to-dev partition\n"
22469 "\n"
22470 msgstr ""
22471
22472 # type: textblock
22473 #: ../fish/guestfish-actions.pod:3224
22474 msgid ""
22475 "The named partition must exist, for example as a string returned from "
22476 "L</list-partitions>."
22477 msgstr ""
22478
22479 # type: =head2
22480 #: ../fish/guestfish-actions.pod:3227
22481 msgid "ping-daemon"
22482 msgstr ""
22483
22484 # type: verbatim
22485 #: ../fish/guestfish-actions.pod:3229
22486 #, no-wrap
22487 msgid ""
22488 " ping-daemon\n"
22489 "\n"
22490 msgstr ""
22491
22492 # type: =head2
22493 #: ../fish/guestfish-actions.pod:3236
22494 msgid "pread"
22495 msgstr ""
22496
22497 # type: verbatim
22498 #: ../fish/guestfish-actions.pod:3238
22499 #, no-wrap
22500 msgid ""
22501 " pread path count offset\n"
22502 "\n"
22503 msgstr ""
22504
22505 # type: textblock
22506 #: ../fish/guestfish-actions.pod:3246
22507 msgid "See also L</pwrite>, L</pread-device>."
22508 msgstr ""
22509
22510 # type: =head2
22511 #: ../fish/guestfish-actions.pod:3251
22512 msgid "pread-device"
22513 msgstr ""
22514
22515 # type: verbatim
22516 #: ../fish/guestfish-actions.pod:3253
22517 #, no-wrap
22518 msgid ""
22519 " pread-device device count offset\n"
22520 "\n"
22521 msgstr ""
22522
22523 # type: textblock
22524 #: ../fish/guestfish-actions.pod:3261
22525 msgid "See also L</pread>."
22526 msgstr ""
22527
22528 # type: =head2
22529 #: ../fish/guestfish-actions.pod:3266
22530 msgid "pvcreate"
22531 msgstr ""
22532
22533 # type: verbatim
22534 #: ../fish/guestfish-actions.pod:3268
22535 #, no-wrap
22536 msgid ""
22537 " pvcreate device\n"
22538 "\n"
22539 msgstr ""
22540
22541 # type: =head2
22542 #: ../fish/guestfish-actions.pod:3274
22543 msgid "pvremove"
22544 msgstr ""
22545
22546 # type: verbatim
22547 #: ../fish/guestfish-actions.pod:3276
22548 #, no-wrap
22549 msgid ""
22550 " pvremove device\n"
22551 "\n"
22552 msgstr ""
22553
22554 # type: =head2
22555 #: ../fish/guestfish-actions.pod:3285
22556 msgid "pvresize"
22557 msgstr ""
22558
22559 # type: verbatim
22560 #: ../fish/guestfish-actions.pod:3287
22561 #, no-wrap
22562 msgid ""
22563 " pvresize device\n"
22564 "\n"
22565 msgstr ""
22566
22567 # type: =head2
22568 #: ../fish/guestfish-actions.pod:3292
22569 msgid "pvresize-size"
22570 msgstr ""
22571
22572 # type: verbatim
22573 #: ../fish/guestfish-actions.pod:3294
22574 #, no-wrap
22575 msgid ""
22576 " pvresize-size device size\n"
22577 "\n"
22578 msgstr ""
22579
22580 # type: textblock
22581 #: ../fish/guestfish-actions.pod:3296
22582 msgid ""
22583 "This command is the same as L</pvresize> except that it allows you to "
22584 "specify the new size (in bytes) explicitly."
22585 msgstr ""
22586
22587 # type: =head2
22588 #: ../fish/guestfish-actions.pod:3299
22589 msgid "pvs"
22590 msgstr ""
22591
22592 # type: verbatim
22593 #: ../fish/guestfish-actions.pod:3301
22594 #, no-wrap
22595 msgid ""
22596 " pvs\n"
22597 "\n"
22598 msgstr ""
22599
22600 # type: textblock
22601 #: ../fish/guestfish-actions.pod:3309
22602 msgid "See also L</pvs-full>."
22603 msgstr ""
22604
22605 # type: =head2
22606 #: ../fish/guestfish-actions.pod:3311
22607 msgid "pvs-full"
22608 msgstr ""
22609
22610 # type: verbatim
22611 #: ../fish/guestfish-actions.pod:3313
22612 #, no-wrap
22613 msgid ""
22614 " pvs-full\n"
22615 "\n"
22616 msgstr ""
22617
22618 # type: =head2
22619 #: ../fish/guestfish-actions.pod:3318
22620 msgid "pvuuid"
22621 msgstr ""
22622
22623 # type: verbatim
22624 #: ../fish/guestfish-actions.pod:3320
22625 #, no-wrap
22626 msgid ""
22627 " pvuuid device\n"
22628 "\n"
22629 msgstr ""
22630
22631 # type: =head2
22632 #: ../fish/guestfish-actions.pod:3324
22633 msgid "pwrite"
22634 msgstr ""
22635
22636 # type: verbatim
22637 #: ../fish/guestfish-actions.pod:3326
22638 #, no-wrap
22639 msgid ""
22640 " pwrite path content offset\n"
22641 "\n"
22642 msgstr ""
22643
22644 # type: textblock
22645 #: ../fish/guestfish-actions.pod:3337
22646 msgid "See also L</pread>, L</pwrite-device>."
22647 msgstr ""
22648
22649 # type: =head2
22650 #: ../fish/guestfish-actions.pod:3342
22651 msgid "pwrite-device"
22652 msgstr ""
22653
22654 # type: verbatim
22655 #: ../fish/guestfish-actions.pod:3344
22656 #, no-wrap
22657 msgid ""
22658 " pwrite-device device content offset\n"
22659 "\n"
22660 msgstr ""
22661
22662 # type: textblock
22663 #: ../fish/guestfish-actions.pod:3354
22664 msgid "See also L</pwrite>."
22665 msgstr ""
22666
22667 # type: =head2
22668 #: ../fish/guestfish-actions.pod:3359
22669 msgid "read-file"
22670 msgstr ""
22671
22672 # type: verbatim
22673 #: ../fish/guestfish-actions.pod:3361
22674 #, no-wrap
22675 msgid ""
22676 " read-file path\n"
22677 "\n"
22678 msgstr ""
22679
22680 # type: textblock
22681 #: ../fish/guestfish-actions.pod:3366
22682 msgid ""
22683 "Unlike L</cat>, this function can correctly handle files that contain "
22684 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22685 "is limited in the total size of file that can be handled."
22686 msgstr ""
22687
22688 # type: =head2
22689 #: ../fish/guestfish-actions.pod:3374
22690 msgid "read-lines"
22691 msgstr ""
22692
22693 # type: verbatim
22694 #: ../fish/guestfish-actions.pod:3376
22695 #, no-wrap
22696 msgid ""
22697 " read-lines path\n"
22698 "\n"
22699 msgstr ""
22700
22701 # type: textblock
22702 #: ../fish/guestfish-actions.pod:3383
22703 msgid ""
22704 "Note that this function cannot correctly handle binary files (specifically, "
22705 "files containing C<\\0> character which is treated as end of line).  For "
22706 "those you need to use the L</read-file> function which has a more complex "
22707 "interface."
22708 msgstr ""
22709
22710 # type: =head2
22711 #: ../fish/guestfish-actions.pod:3388
22712 msgid "readdir"
22713 msgstr ""
22714
22715 # type: verbatim
22716 #: ../fish/guestfish-actions.pod:3390
22717 #, no-wrap
22718 msgid ""
22719 " readdir dir\n"
22720 "\n"
22721 msgstr ""
22722
22723 # type: textblock
22724 #: ../fish/guestfish-actions.pod:3442
22725 msgid ""
22726 "This function is primarily intended for use by programs.  To get a simple "
22727 "list of names, use L</ls>.  To get a printable directory for human "
22728 "consumption, use L</ll>."
22729 msgstr ""
22730
22731 # type: =head2
22732 #: ../fish/guestfish-actions.pod:3446
22733 msgid "readlink"
22734 msgstr ""
22735
22736 # type: verbatim
22737 #: ../fish/guestfish-actions.pod:3448
22738 #, no-wrap
22739 msgid ""
22740 " readlink path\n"
22741 "\n"
22742 msgstr ""
22743
22744 # type: =head2
22745 #: ../fish/guestfish-actions.pod:3452
22746 msgid "readlinklist"
22747 msgstr ""
22748
22749 # type: verbatim
22750 #: ../fish/guestfish-actions.pod:3454
22751 #, no-wrap
22752 msgid ""
22753 " readlinklist path 'names ...'\n"
22754 "\n"
22755 msgstr ""
22756
22757 # type: =head2
22758 #: ../fish/guestfish-actions.pod:3478
22759 msgid "realpath"
22760 msgstr ""
22761
22762 # type: verbatim
22763 #: ../fish/guestfish-actions.pod:3480
22764 #, no-wrap
22765 msgid ""
22766 " realpath path\n"
22767 "\n"
22768 msgstr ""
22769
22770 # type: =head2
22771 #: ../fish/guestfish-actions.pod:3485
22772 msgid "removexattr"
22773 msgstr ""
22774
22775 # type: verbatim
22776 #: ../fish/guestfish-actions.pod:3487
22777 #, no-wrap
22778 msgid ""
22779 " removexattr xattr path\n"
22780 "\n"
22781 msgstr ""
22782
22783 # type: textblock
22784 #: ../fish/guestfish-actions.pod:3492
22785 msgid "See also: L</lremovexattr>, L<attr(5)>."
22786 msgstr ""
22787
22788 # type: =head2
22789 #: ../fish/guestfish-actions.pod:3494
22790 msgid "resize2fs"
22791 msgstr ""
22792
22793 # type: verbatim
22794 #: ../fish/guestfish-actions.pod:3496
22795 #, no-wrap
22796 msgid ""
22797 " resize2fs device\n"
22798 "\n"
22799 msgstr ""
22800
22801 # type: textblock
22802 #: ../fish/guestfish-actions.pod:3501
22803 msgid ""
22804 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22805 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22806 "gives an error about this and sometimes not.  In any case, it is always safe "
22807 "to call L</e2fsck-f> before calling this function."
22808 msgstr ""
22809
22810 # type: =head2
22811 #: ../fish/guestfish-actions.pod:3507
22812 msgid "resize2fs-size"
22813 msgstr ""
22814
22815 # type: verbatim
22816 #: ../fish/guestfish-actions.pod:3509
22817 #, no-wrap
22818 msgid ""
22819 " resize2fs-size device size\n"
22820 "\n"
22821 msgstr ""
22822
22823 # type: textblock
22824 #: ../fish/guestfish-actions.pod:3511
22825 msgid ""
22826 "This command is the same as L</resize2fs> except that it allows you to "
22827 "specify the new size (in bytes) explicitly."
22828 msgstr ""
22829
22830 # type: =head2
22831 #: ../fish/guestfish-actions.pod:3514
22832 msgid "rm"
22833 msgstr ""
22834
22835 # type: verbatim
22836 #: ../fish/guestfish-actions.pod:3516
22837 #, no-wrap
22838 msgid ""
22839 " rm path\n"
22840 "\n"
22841 msgstr ""
22842
22843 # type: =head2
22844 #: ../fish/guestfish-actions.pod:3520
22845 msgid "rm-rf"
22846 msgstr ""
22847
22848 # type: verbatim
22849 #: ../fish/guestfish-actions.pod:3522
22850 #, no-wrap
22851 msgid ""
22852 " rm-rf path\n"
22853 "\n"
22854 msgstr ""
22855
22856 # type: =head2
22857 #: ../fish/guestfish-actions.pod:3528
22858 msgid "rmdir"
22859 msgstr ""
22860
22861 # type: verbatim
22862 #: ../fish/guestfish-actions.pod:3530
22863 #, no-wrap
22864 msgid ""
22865 " rmdir path\n"
22866 "\n"
22867 msgstr ""
22868
22869 # type: =head2
22870 #: ../fish/guestfish-actions.pod:3534
22871 msgid "rmmountpoint"
22872 msgstr ""
22873
22874 # type: verbatim
22875 #: ../fish/guestfish-actions.pod:3536
22876 #, no-wrap
22877 msgid ""
22878 " rmmountpoint exemptpath\n"
22879 "\n"
22880 msgstr ""
22881
22882 # type: textblock
22883 #: ../fish/guestfish-actions.pod:3538
22884 msgid ""
22885 "This calls removes a mountpoint that was previously created with "
22886 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
22887 msgstr ""
22888
22889 # type: =head2
22890 #: ../fish/guestfish-actions.pod:3542
22891 msgid "scrub-device"
22892 msgstr ""
22893
22894 # type: verbatim
22895 #: ../fish/guestfish-actions.pod:3544
22896 #, no-wrap
22897 msgid ""
22898 " scrub-device device\n"
22899 "\n"
22900 msgstr ""
22901
22902 # type: =head2
22903 #: ../fish/guestfish-actions.pod:3555
22904 msgid "scrub-file"
22905 msgstr ""
22906
22907 # type: verbatim
22908 #: ../fish/guestfish-actions.pod:3557
22909 #, no-wrap
22910 msgid ""
22911 " scrub-file file\n"
22912 "\n"
22913 msgstr ""
22914
22915 # type: =head2
22916 #: ../fish/guestfish-actions.pod:3567
22917 msgid "scrub-freespace"
22918 msgstr ""
22919
22920 # type: verbatim
22921 #: ../fish/guestfish-actions.pod:3569
22922 #, no-wrap
22923 msgid ""
22924 " scrub-freespace dir\n"
22925 "\n"
22926 msgstr ""
22927
22928 # type: textblock
22929 #: ../fish/guestfish-actions.pod:3571
22930 msgid ""
22931 "This command creates the directory C<dir> and then fills it with files until "
22932 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22933 "deletes them.  The intention is to scrub any free space on the partition "
22934 "containing C<dir>."
22935 msgstr ""
22936
22937 # type: =head2
22938 #: ../fish/guestfish-actions.pod:3580
22939 msgid "set-append"
22940 msgstr ""
22941
22942 # type: =head2
22943 #: ../fish/guestfish-actions.pod:3582
22944 msgid "append"
22945 msgstr ""
22946
22947 # type: verbatim
22948 #: ../fish/guestfish-actions.pod:3584
22949 #, no-wrap
22950 msgid ""
22951 " set-append append\n"
22952 "\n"
22953 msgstr ""
22954
22955 # type: =head2
22956 #: ../fish/guestfish-actions.pod:3595
22957 msgid "set-autosync"
22958 msgstr ""
22959
22960 # type: =head2
22961 #: ../fish/guestfish-actions.pod:3597
22962 msgid "autosync"
22963 msgstr ""
22964
22965 # type: verbatim
22966 #: ../fish/guestfish-actions.pod:3599
22967 #, no-wrap
22968 msgid ""
22969 " set-autosync true|false\n"
22970 "\n"
22971 msgstr ""
22972
22973 # type: textblock
22974 #: ../fish/guestfish-actions.pod:3601
22975 msgid ""
22976 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
22977 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
22978 "closed (also if the program exits without closing handles)."
22979 msgstr ""
22980
22981 # type: =head2
22982 #: ../fish/guestfish-actions.pod:3609
22983 msgid "set-direct"
22984 msgstr ""
22985
22986 # type: =head2
22987 #: ../fish/guestfish-actions.pod:3611
22988 msgid "direct"
22989 msgstr ""
22990
22991 # type: verbatim
22992 #: ../fish/guestfish-actions.pod:3613
22993 #, no-wrap
22994 msgid ""
22995 " set-direct true|false\n"
22996 "\n"
22997 msgstr ""
22998
22999 # type: textblock
23000 #: ../fish/guestfish-actions.pod:3619
23001 msgid ""
23002 "One consequence of this is that log messages aren't caught by the library "
23003 "and handled by L</set-log-message-callback>, but go straight to stdout."
23004 msgstr ""
23005
23006 # type: =head2
23007 #: ../fish/guestfish-actions.pod:3628
23008 msgid "set-e2label"
23009 msgstr ""
23010
23011 # type: verbatim
23012 #: ../fish/guestfish-actions.pod:3630
23013 #, no-wrap
23014 msgid ""
23015 " set-e2label device label\n"
23016 "\n"
23017 msgstr ""
23018
23019 # type: textblock
23020 #: ../fish/guestfish-actions.pod:3636
23021 msgid ""
23022 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23023 "label on a filesystem."
23024 msgstr ""
23025
23026 # type: =head2
23027 #: ../fish/guestfish-actions.pod:3639
23028 msgid "set-e2uuid"
23029 msgstr ""
23030
23031 # type: verbatim
23032 #: ../fish/guestfish-actions.pod:3641
23033 #, no-wrap
23034 msgid ""
23035 " set-e2uuid device uuid\n"
23036 "\n"
23037 msgstr ""
23038
23039 # type: textblock
23040 #: ../fish/guestfish-actions.pod:3648
23041 msgid ""
23042 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23043 "UUID of a filesystem."
23044 msgstr ""
23045
23046 # type: =head2
23047 #: ../fish/guestfish-actions.pod:3651
23048 msgid "set-memsize"
23049 msgstr ""
23050
23051 # type: =head2
23052 #: ../fish/guestfish-actions.pod:3653
23053 msgid "memsize"
23054 msgstr ""
23055
23056 # type: verbatim
23057 #: ../fish/guestfish-actions.pod:3655
23058 #, no-wrap
23059 msgid ""
23060 " set-memsize memsize\n"
23061 "\n"
23062 msgstr ""
23063
23064 # type: textblock
23065 #: ../fish/guestfish-actions.pod:3657
23066 msgid ""
23067 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23068 "This only has any effect if called before L</launch>."
23069 msgstr ""
23070
23071 # type: =head2
23072 #: ../fish/guestfish-actions.pod:3668
23073 msgid "set-network"
23074 msgstr ""
23075
23076 # type: =head2
23077 #: ../fish/guestfish-actions.pod:3670
23078 msgid "network"
23079 msgstr ""
23080
23081 # type: verbatim
23082 #: ../fish/guestfish-actions.pod:3672
23083 #, no-wrap
23084 msgid ""
23085 " set-network true|false\n"
23086 "\n"
23087 msgstr ""
23088
23089 # type: textblock
23090 #: ../fish/guestfish-actions.pod:3680
23091 msgid "You must call this before calling L</launch>, otherwise it has no effect."
23092 msgstr ""
23093
23094 # type: =head2
23095 #: ../fish/guestfish-actions.pod:3683
23096 msgid "set-path"
23097 msgstr ""
23098
23099 # type: =head2
23100 #: ../fish/guestfish-actions.pod:3685
23101 msgid "path"
23102 msgstr ""
23103
23104 # type: verbatim
23105 #: ../fish/guestfish-actions.pod:3687
23106 #, no-wrap
23107 msgid ""
23108 " set-path searchpath\n"
23109 "\n"
23110 msgstr ""
23111
23112 # type: =head2
23113 #: ../fish/guestfish-actions.pod:3696
23114 msgid "set-qemu"
23115 msgstr ""
23116
23117 # type: =head2
23118 #: ../fish/guestfish-actions.pod:3698
23119 msgid "qemu"
23120 msgstr ""
23121
23122 # type: verbatim
23123 #: ../fish/guestfish-actions.pod:3700
23124 #, no-wrap
23125 msgid ""
23126 " set-qemu qemu\n"
23127 "\n"
23128 msgstr ""
23129
23130 # type: =head2
23131 #: ../fish/guestfish-actions.pod:3720
23132 msgid "set-recovery-proc"
23133 msgstr ""
23134
23135 # type: =head2
23136 #: ../fish/guestfish-actions.pod:3722
23137 msgid "recovery-proc"
23138 msgstr ""
23139
23140 # type: verbatim
23141 #: ../fish/guestfish-actions.pod:3724
23142 #, no-wrap
23143 msgid ""
23144 " set-recovery-proc true|false\n"
23145 "\n"
23146 msgstr ""
23147
23148 # type: textblock
23149 #: ../fish/guestfish-actions.pod:3726
23150 msgid ""
23151 "If this is called with the parameter C<false> then L</launch> does not "
23152 "create a recovery process.  The purpose of the recovery process is to stop "
23153 "runaway qemu processes in the case where the main program aborts abruptly."
23154 msgstr ""
23155
23156 # type: textblock
23157 #: ../fish/guestfish-actions.pod:3731
23158 msgid ""
23159 "This only has any effect if called before L</launch>, and the default is "
23160 "true."
23161 msgstr ""
23162
23163 # type: =head2
23164 #: ../fish/guestfish-actions.pod:3740
23165 msgid "set-selinux"
23166 msgstr ""
23167
23168 # type: =head2
23169 #: ../fish/guestfish-actions.pod:3742
23170 msgid "selinux"
23171 msgstr ""
23172
23173 # type: verbatim
23174 #: ../fish/guestfish-actions.pod:3744
23175 #, no-wrap
23176 msgid ""
23177 " set-selinux true|false\n"
23178 "\n"
23179 msgstr ""
23180
23181 # type: =head2
23182 #: ../fish/guestfish-actions.pod:3755
23183 msgid "set-trace"
23184 msgstr ""
23185
23186 # type: =head2
23187 #: ../fish/guestfish-actions.pod:3757
23188 msgid "trace"
23189 msgstr ""
23190
23191 # type: verbatim
23192 #: ../fish/guestfish-actions.pod:3759
23193 #, no-wrap
23194 msgid ""
23195 " set-trace true|false\n"
23196 "\n"
23197 msgstr ""
23198
23199 # type: =head2
23200 #: ../fish/guestfish-actions.pod:3775
23201 msgid "set-verbose"
23202 msgstr ""
23203
23204 # type: =head2
23205 #: ../fish/guestfish-actions.pod:3777
23206 msgid "verbose"
23207 msgstr ""
23208
23209 # type: verbatim
23210 #: ../fish/guestfish-actions.pod:3779
23211 #, no-wrap
23212 msgid ""
23213 " set-verbose true|false\n"
23214 "\n"
23215 msgstr ""
23216
23217 # type: =head2
23218 #: ../fish/guestfish-actions.pod:3786
23219 msgid "setcon"
23220 msgstr ""
23221
23222 # type: verbatim
23223 #: ../fish/guestfish-actions.pod:3788
23224 #, no-wrap
23225 msgid ""
23226 " setcon context\n"
23227 "\n"
23228 msgstr ""
23229
23230 # type: =head2
23231 #: ../fish/guestfish-actions.pod:3795
23232 msgid "setxattr"
23233 msgstr ""
23234
23235 # type: verbatim
23236 #: ../fish/guestfish-actions.pod:3797
23237 #, no-wrap
23238 msgid ""
23239 " setxattr xattr val vallen path\n"
23240 "\n"
23241 msgstr ""
23242
23243 # type: textblock
23244 #: ../fish/guestfish-actions.pod:3803
23245 msgid "See also: L</lsetxattr>, L<attr(5)>."
23246 msgstr ""
23247
23248 # type: =head2
23249 #: ../fish/guestfish-actions.pod:3805
23250 msgid "sfdisk"
23251 msgstr ""
23252
23253 # type: verbatim
23254 #: ../fish/guestfish-actions.pod:3807
23255 #, no-wrap
23256 msgid ""
23257 " sfdisk device cyls heads sectors 'lines ...'\n"
23258 "\n"
23259 msgstr ""
23260
23261 # type: textblock
23262 #: ../fish/guestfish-actions.pod:3829
23263 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23264 msgstr ""
23265
23266 # type: =head2
23267 #: ../fish/guestfish-actions.pod:3835
23268 msgid "sfdiskM"
23269 msgstr ""
23270
23271 # type: verbatim
23272 #: ../fish/guestfish-actions.pod:3837
23273 #, no-wrap
23274 msgid ""
23275 " sfdiskM device 'lines ...'\n"
23276 "\n"
23277 msgstr ""
23278
23279 # type: textblock
23280 #: ../fish/guestfish-actions.pod:3839
23281 msgid ""
23282 "This is a simplified interface to the L</sfdisk> command, where partition "
23283 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23284 "you don't need to specify the cyls, heads and sectors parameters which were "
23285 "rarely if ever used anyway."
23286 msgstr ""
23287
23288 # type: textblock
23289 #: ../fish/guestfish-actions.pod:3845
23290 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23291 msgstr ""
23292
23293 # type: =head2
23294 #: ../fish/guestfish-actions.pod:3851
23295 msgid "sfdisk-N"
23296 msgstr ""
23297
23298 # type: verbatim
23299 #: ../fish/guestfish-actions.pod:3853
23300 #, no-wrap
23301 msgid ""
23302 " sfdisk-N device partnum cyls heads sectors line\n"
23303 "\n"
23304 msgstr ""
23305
23306 # type: textblock
23307 #: ../fish/guestfish-actions.pod:3858
23308 msgid ""
23309 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23310 "cyls/heads/sectors parameters."
23311 msgstr ""
23312
23313 # type: textblock
23314 #: ../fish/guestfish-actions.pod:3861
23315 msgid "See also: L</part-add>"
23316 msgstr ""
23317
23318 # type: =head2
23319 #: ../fish/guestfish-actions.pod:3866
23320 msgid "sfdisk-disk-geometry"
23321 msgstr ""
23322
23323 # type: verbatim
23324 #: ../fish/guestfish-actions.pod:3868
23325 #, no-wrap
23326 msgid ""
23327 " sfdisk-disk-geometry device\n"
23328 "\n"
23329 msgstr ""
23330
23331 # type: textblock
23332 #: ../fish/guestfish-actions.pod:3870
23333 msgid ""
23334 "This displays the disk geometry of C<device> read from the partition table.  "
23335 "Especially in the case where the underlying block device has been resized, "
23336 "this can be different from the kernel's idea of the geometry (see "
23337 "L</sfdisk-kernel-geometry>)."
23338 msgstr ""
23339
23340 # type: =head2
23341 #: ../fish/guestfish-actions.pod:3878
23342 msgid "sfdisk-kernel-geometry"
23343 msgstr ""
23344
23345 # type: verbatim
23346 #: ../fish/guestfish-actions.pod:3880
23347 #, no-wrap
23348 msgid ""
23349 " sfdisk-kernel-geometry device\n"
23350 "\n"
23351 msgstr ""
23352
23353 # type: =head2
23354 #: ../fish/guestfish-actions.pod:3887
23355 msgid "sfdisk-l"
23356 msgstr ""
23357
23358 # type: verbatim
23359 #: ../fish/guestfish-actions.pod:3889
23360 #, no-wrap
23361 msgid ""
23362 " sfdisk-l device\n"
23363 "\n"
23364 msgstr ""
23365
23366 # type: textblock
23367 #: ../fish/guestfish-actions.pod:3895
23368 msgid "See also: L</part-list>"
23369 msgstr ""
23370
23371 # type: =head2
23372 #: ../fish/guestfish-actions.pod:3897
23373 msgid "sh"
23374 msgstr ""
23375
23376 # type: verbatim
23377 #: ../fish/guestfish-actions.pod:3899
23378 #, no-wrap
23379 msgid ""
23380 " sh command\n"
23381 "\n"
23382 msgstr ""
23383
23384 # type: textblock
23385 #: ../fish/guestfish-actions.pod:3904
23386 msgid "This is like L</command>, but passes the command to:"
23387 msgstr ""
23388
23389 # type: textblock
23390 #: ../fish/guestfish-actions.pod:3912
23391 msgid "All the provisos about L</command> apply to this call."
23392 msgstr ""
23393
23394 # type: =head2
23395 #: ../fish/guestfish-actions.pod:3914
23396 msgid "sh-lines"
23397 msgstr ""
23398
23399 # type: verbatim
23400 #: ../fish/guestfish-actions.pod:3916
23401 #, no-wrap
23402 msgid ""
23403 " sh-lines command\n"
23404 "\n"
23405 msgstr ""
23406
23407 # type: textblock
23408 #: ../fish/guestfish-actions.pod:3918
23409 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23410 msgstr ""
23411
23412 # type: textblock
23413 #: ../fish/guestfish-actions.pod:3921
23414 msgid "See also: L</command-lines>"
23415 msgstr ""
23416
23417 # type: =head2
23418 #: ../fish/guestfish-actions.pod:3923
23419 msgid "sleep"
23420 msgstr ""
23421
23422 # type: verbatim
23423 #: ../fish/guestfish-actions.pod:3925
23424 #, no-wrap
23425 msgid ""
23426 " sleep secs\n"
23427 "\n"
23428 msgstr ""
23429
23430 # type: =head2
23431 #: ../fish/guestfish-actions.pod:3929
23432 msgid "stat"
23433 msgstr ""
23434
23435 # type: verbatim
23436 #: ../fish/guestfish-actions.pod:3931
23437 #, no-wrap
23438 msgid ""
23439 " stat path\n"
23440 "\n"
23441 msgstr ""
23442
23443 # type: =head2
23444 #: ../fish/guestfish-actions.pod:3937
23445 msgid "statvfs"
23446 msgstr ""
23447
23448 # type: verbatim
23449 #: ../fish/guestfish-actions.pod:3939
23450 #, no-wrap
23451 msgid ""
23452 " statvfs path\n"
23453 "\n"
23454 msgstr ""
23455
23456 # type: =head2
23457 #: ../fish/guestfish-actions.pod:3947
23458 msgid "strings"
23459 msgstr ""
23460
23461 # type: verbatim
23462 #: ../fish/guestfish-actions.pod:3949
23463 #, no-wrap
23464 msgid ""
23465 " strings path\n"
23466 "\n"
23467 msgstr ""
23468
23469 # type: =head2
23470 #: ../fish/guestfish-actions.pod:3957
23471 msgid "strings-e"
23472 msgstr ""
23473
23474 # type: verbatim
23475 #: ../fish/guestfish-actions.pod:3959
23476 #, no-wrap
23477 msgid ""
23478 " strings-e encoding path\n"
23479 "\n"
23480 msgstr ""
23481
23482 # type: textblock
23483 #: ../fish/guestfish-actions.pod:3961
23484 msgid ""
23485 "This is like the L</strings> command, but allows you to specify the encoding "
23486 "of strings that are looked for in the source file C<path>."
23487 msgstr ""
23488
23489 # type: textblock
23490 #: ../fish/guestfish-actions.pod:3971
23491 msgid ""
23492 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23493 "ISO-8859-X (this is what L</strings> uses)."
23494 msgstr ""
23495
23496 # type: =head2
23497 #: ../fish/guestfish-actions.pod:4003
23498 msgid "swapoff-device"
23499 msgstr ""
23500
23501 # type: verbatim
23502 #: ../fish/guestfish-actions.pod:4005
23503 #, no-wrap
23504 msgid ""
23505 " swapoff-device device\n"
23506 "\n"
23507 msgstr ""
23508
23509 # type: textblock
23510 #: ../fish/guestfish-actions.pod:4007
23511 msgid ""
23512 "This command disables the libguestfs appliance swap device or partition "
23513 "named C<device>.  See L</swapon-device>."
23514 msgstr ""
23515
23516 # type: =head2
23517 #: ../fish/guestfish-actions.pod:4011
23518 msgid "swapoff-file"
23519 msgstr ""
23520
23521 # type: verbatim
23522 #: ../fish/guestfish-actions.pod:4013
23523 #, no-wrap
23524 msgid ""
23525 " swapoff-file file\n"
23526 "\n"
23527 msgstr ""
23528
23529 # type: =head2
23530 #: ../fish/guestfish-actions.pod:4017
23531 msgid "swapoff-label"
23532 msgstr ""
23533
23534 # type: verbatim
23535 #: ../fish/guestfish-actions.pod:4019
23536 #, no-wrap
23537 msgid ""
23538 " swapoff-label label\n"
23539 "\n"
23540 msgstr ""
23541
23542 # type: =head2
23543 #: ../fish/guestfish-actions.pod:4024
23544 msgid "swapoff-uuid"
23545 msgstr ""
23546
23547 # type: verbatim
23548 #: ../fish/guestfish-actions.pod:4026
23549 #, no-wrap
23550 msgid ""
23551 " swapoff-uuid uuid\n"
23552 "\n"
23553 msgstr ""
23554
23555 # type: =head2
23556 #: ../fish/guestfish-actions.pod:4031
23557 msgid "swapon-device"
23558 msgstr ""
23559
23560 # type: verbatim
23561 #: ../fish/guestfish-actions.pod:4033
23562 #, no-wrap
23563 msgid ""
23564 " swapon-device device\n"
23565 "\n"
23566 msgstr ""
23567
23568 # type: textblock
23569 #: ../fish/guestfish-actions.pod:4035
23570 msgid ""
23571 "This command enables the libguestfs appliance to use the swap device or "
23572 "partition named C<device>.  The increased memory is made available for all "
23573 "commands, for example those run using L</command> or L</sh>."
23574 msgstr ""
23575
23576 # type: =head2
23577 #: ../fish/guestfish-actions.pod:4047
23578 msgid "swapon-file"
23579 msgstr ""
23580
23581 # type: verbatim
23582 #: ../fish/guestfish-actions.pod:4049
23583 #, no-wrap
23584 msgid ""
23585 " swapon-file file\n"
23586 "\n"
23587 msgstr ""
23588
23589 # type: textblock
23590 #: ../fish/guestfish-actions.pod:4051
23591 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
23592 msgstr ""
23593
23594 # type: =head2
23595 #: ../fish/guestfish-actions.pod:4054
23596 msgid "swapon-label"
23597 msgstr ""
23598
23599 # type: verbatim
23600 #: ../fish/guestfish-actions.pod:4056
23601 #, no-wrap
23602 msgid ""
23603 " swapon-label label\n"
23604 "\n"
23605 msgstr ""
23606
23607 # type: textblock
23608 #: ../fish/guestfish-actions.pod:4058
23609 msgid ""
23610 "This command enables swap to a labeled swap partition.  See "
23611 "L</swapon-device> for other notes."
23612 msgstr ""
23613
23614 # type: =head2
23615 #: ../fish/guestfish-actions.pod:4061
23616 msgid "swapon-uuid"
23617 msgstr ""
23618
23619 # type: verbatim
23620 #: ../fish/guestfish-actions.pod:4063
23621 #, no-wrap
23622 msgid ""
23623 " swapon-uuid uuid\n"
23624 "\n"
23625 msgstr ""
23626
23627 # type: textblock
23628 #: ../fish/guestfish-actions.pod:4065
23629 msgid ""
23630 "This command enables swap to a swap partition with the given UUID.  See "
23631 "L</swapon-device> for other notes."
23632 msgstr ""
23633
23634 # type: =head2
23635 #: ../fish/guestfish-actions.pod:4068
23636 msgid "sync"
23637 msgstr ""
23638
23639 # type: verbatim
23640 #: ../fish/guestfish-actions.pod:4070
23641 #, no-wrap
23642 msgid ""
23643 " sync\n"
23644 "\n"
23645 msgstr ""
23646
23647 # type: =head2
23648 #: ../fish/guestfish-actions.pod:4078
23649 msgid "tail"
23650 msgstr ""
23651
23652 # type: verbatim
23653 #: ../fish/guestfish-actions.pod:4080
23654 #, no-wrap
23655 msgid ""
23656 " tail path\n"
23657 "\n"
23658 msgstr ""
23659
23660 # type: =head2
23661 #: ../fish/guestfish-actions.pod:4088
23662 msgid "tail-n"
23663 msgstr ""
23664
23665 # type: verbatim
23666 #: ../fish/guestfish-actions.pod:4090
23667 #, no-wrap
23668 msgid ""
23669 " tail-n nrlines path\n"
23670 "\n"
23671 msgstr ""
23672
23673 # type: =head2
23674 #: ../fish/guestfish-actions.pod:4103
23675 msgid "tar-in"
23676 msgstr ""
23677
23678 # type: verbatim
23679 #: ../fish/guestfish-actions.pod:4105
23680 #, no-wrap
23681 msgid ""
23682 " tar-in (tarfile|-) directory\n"
23683 "\n"
23684 msgstr ""
23685
23686 # type: textblock
23687 #: ../fish/guestfish-actions.pod:4110
23688 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23689 msgstr ""
23690
23691 # type: =head2
23692 #: ../fish/guestfish-actions.pod:4115
23693 msgid "tar-out"
23694 msgstr ""
23695
23696 # type: verbatim
23697 #: ../fish/guestfish-actions.pod:4117
23698 #, no-wrap
23699 msgid ""
23700 " tar-out directory (tarfile|-)\n"
23701 "\n"
23702 msgstr ""
23703
23704 # type: textblock
23705 #: ../fish/guestfish-actions.pod:4122
23706 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23707 msgstr ""
23708
23709 # type: =head2
23710 #: ../fish/guestfish-actions.pod:4127
23711 msgid "tgz-in"
23712 msgstr ""
23713
23714 # type: verbatim
23715 #: ../fish/guestfish-actions.pod:4129
23716 #, no-wrap
23717 msgid ""
23718 " tgz-in (tarball|-) directory\n"
23719 "\n"
23720 msgstr ""
23721
23722 # type: textblock
23723 #: ../fish/guestfish-actions.pod:4134
23724 msgid "To upload an uncompressed tarball, use L</tar-in>."
23725 msgstr ""
23726
23727 # type: =head2
23728 #: ../fish/guestfish-actions.pod:4138
23729 msgid "tgz-out"
23730 msgstr ""
23731
23732 # type: verbatim
23733 #: ../fish/guestfish-actions.pod:4140
23734 #, no-wrap
23735 msgid ""
23736 " tgz-out directory (tarball|-)\n"
23737 "\n"
23738 msgstr ""
23739
23740 # type: textblock
23741 #: ../fish/guestfish-actions.pod:4145
23742 msgid "To download an uncompressed tarball, use L</tar-out>."
23743 msgstr ""
23744
23745 # type: =head2
23746 #: ../fish/guestfish-actions.pod:4149
23747 msgid "touch"
23748 msgstr ""
23749
23750 # type: verbatim
23751 #: ../fish/guestfish-actions.pod:4151
23752 #, no-wrap
23753 msgid ""
23754 " touch path\n"
23755 "\n"
23756 msgstr ""
23757
23758 # type: =head2
23759 #: ../fish/guestfish-actions.pod:4160
23760 msgid "truncate"
23761 msgstr ""
23762
23763 # type: verbatim
23764 #: ../fish/guestfish-actions.pod:4162
23765 #, no-wrap
23766 msgid ""
23767 " truncate path\n"
23768 "\n"
23769 msgstr ""
23770
23771 # type: =head2
23772 #: ../fish/guestfish-actions.pod:4167
23773 msgid "truncate-size"
23774 msgstr ""
23775
23776 # type: verbatim
23777 #: ../fish/guestfish-actions.pod:4169
23778 #, no-wrap
23779 msgid ""
23780 " truncate-size path size\n"
23781 "\n"
23782 msgstr ""
23783
23784 # type: textblock
23785 #: ../fish/guestfish-actions.pod:4174
23786 msgid ""
23787 "If the current file size is less than C<size> then the file is extended to "
23788 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23789 "blocks are not allocated for the file until you write to it).  To create a "
23790 "non-sparse file of zeroes, use L</fallocate64> instead."
23791 msgstr ""
23792
23793 # type: =head2
23794 #: ../fish/guestfish-actions.pod:4180
23795 msgid "tune2fs-l"
23796 msgstr ""
23797
23798 # type: verbatim
23799 #: ../fish/guestfish-actions.pod:4182
23800 #, no-wrap
23801 msgid ""
23802 " tune2fs-l device\n"
23803 "\n"
23804 msgstr ""
23805
23806 # type: =head2
23807 #: ../fish/guestfish-actions.pod:4192
23808 msgid "txz-in"
23809 msgstr ""
23810
23811 # type: verbatim
23812 #: ../fish/guestfish-actions.pod:4194
23813 #, no-wrap
23814 msgid ""
23815 " txz-in (tarball|-) directory\n"
23816 "\n"
23817 msgstr ""
23818
23819 # type: =head2
23820 #: ../fish/guestfish-actions.pod:4201
23821 msgid "txz-out"
23822 msgstr ""
23823
23824 # type: verbatim
23825 #: ../fish/guestfish-actions.pod:4203
23826 #, no-wrap
23827 msgid ""
23828 " txz-out directory (tarball|-)\n"
23829 "\n"
23830 msgstr ""
23831
23832 # type: =head2
23833 #: ../fish/guestfish-actions.pod:4210
23834 msgid "umask"
23835 msgstr ""
23836
23837 # type: verbatim
23838 #: ../fish/guestfish-actions.pod:4212
23839 #, no-wrap
23840 msgid ""
23841 " umask mask\n"
23842 "\n"
23843 msgstr ""
23844
23845 # type: textblock
23846 #: ../fish/guestfish-actions.pod:4226
23847 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23848 msgstr ""
23849
23850 # type: =head2
23851 #: ../fish/guestfish-actions.pod:4231
23852 msgid "umount"
23853 msgstr ""
23854
23855 # type: =head2
23856 #: ../fish/guestfish-actions.pod:4233
23857 msgid "unmount"
23858 msgstr ""
23859
23860 # type: verbatim
23861 #: ../fish/guestfish-actions.pod:4235
23862 #, no-wrap
23863 msgid ""
23864 " umount pathordevice\n"
23865 "\n"
23866 msgstr ""
23867
23868 # type: =head2
23869 #: ../fish/guestfish-actions.pod:4241
23870 msgid "umount-all"
23871 msgstr ""
23872
23873 # type: =head2
23874 #: ../fish/guestfish-actions.pod:4243
23875 msgid "unmount-all"
23876 msgstr ""
23877
23878 # type: verbatim
23879 #: ../fish/guestfish-actions.pod:4245
23880 #, no-wrap
23881 msgid ""
23882 " umount-all\n"
23883 "\n"
23884 msgstr ""
23885
23886 # type: =head2
23887 #: ../fish/guestfish-actions.pod:4251
23888 msgid "upload"
23889 msgstr ""
23890
23891 # type: verbatim
23892 #: ../fish/guestfish-actions.pod:4253
23893 #, no-wrap
23894 msgid ""
23895 " upload (filename|-) remotefilename\n"
23896 "\n"
23897 msgstr ""
23898
23899 # type: textblock
23900 #: ../fish/guestfish-actions.pod:4260
23901 msgid "See also L</download>."
23902 msgstr ""
23903
23904 # type: =head2
23905 #: ../fish/guestfish-actions.pod:4264
23906 msgid "upload-offset"
23907 msgstr ""
23908
23909 # type: verbatim
23910 #: ../fish/guestfish-actions.pod:4266
23911 #, no-wrap
23912 msgid ""
23913 " upload-offset (filename|-) remotefilename offset\n"
23914 "\n"
23915 msgstr ""
23916
23917 # type: textblock
23918 #: ../fish/guestfish-actions.pod:4278
23919 msgid ""
23920 "Note that there is no limit on the amount of data that can be uploaded with "
23921 "this call, unlike with L</pwrite>, and this call always writes the full "
23922 "amount unless an error occurs."
23923 msgstr ""
23924
23925 # type: textblock
23926 #: ../fish/guestfish-actions.pod:4283
23927 msgid "See also L</upload>, L</pwrite>."
23928 msgstr ""
23929
23930 # type: =head2
23931 #: ../fish/guestfish-actions.pod:4287
23932 msgid "utimens"
23933 msgstr ""
23934
23935 # type: verbatim
23936 #: ../fish/guestfish-actions.pod:4289
23937 #, no-wrap
23938 msgid ""
23939 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23940 "\n"
23941 msgstr ""
23942
23943 # type: =head2
23944 #: ../fish/guestfish-actions.pod:4308
23945 msgid "version"
23946 msgstr ""
23947
23948 # type: verbatim
23949 #: ../fish/guestfish-actions.pod:4310
23950 #, no-wrap
23951 msgid ""
23952 " version\n"
23953 "\n"
23954 msgstr ""
23955
23956 # type: textblock
23957 #: ../fish/guestfish-actions.pod:4337
23958 msgid ""
23959 "I<Note:> Don't use this call to test for availability of features.  In "
23960 "enterprise distributions we backport features from later versions into "
23961 "earlier versions, making this an unreliable way to test for features.  Use "
23962 "L</available> instead."
23963 msgstr ""
23964
23965 # type: =head2
23966 #: ../fish/guestfish-actions.pod:4343
23967 msgid "vfs-label"
23968 msgstr ""
23969
23970 # type: verbatim
23971 #: ../fish/guestfish-actions.pod:4345
23972 #, no-wrap
23973 msgid ""
23974 " vfs-label device\n"
23975 "\n"
23976 msgstr ""
23977
23978 # type: textblock
23979 #: ../fish/guestfish-actions.pod:4352
23980 msgid "To find a filesystem from the label, use L</findfs-label>."
23981 msgstr ""
23982
23983 # type: =head2
23984 #: ../fish/guestfish-actions.pod:4354
23985 msgid "vfs-type"
23986 msgstr ""
23987
23988 # type: verbatim
23989 #: ../fish/guestfish-actions.pod:4356
23990 #, no-wrap
23991 msgid ""
23992 " vfs-type device\n"
23993 "\n"
23994 msgstr ""
23995
23996 # type: =head2
23997 #: ../fish/guestfish-actions.pod:4366
23998 msgid "vfs-uuid"
23999 msgstr ""
24000
24001 # type: verbatim
24002 #: ../fish/guestfish-actions.pod:4368
24003 #, no-wrap
24004 msgid ""
24005 " vfs-uuid device\n"
24006 "\n"
24007 msgstr ""
24008
24009 # type: textblock
24010 #: ../fish/guestfish-actions.pod:4375
24011 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24012 msgstr ""
24013
24014 # type: =head2
24015 #: ../fish/guestfish-actions.pod:4377
24016 msgid "vg-activate"
24017 msgstr ""
24018
24019 # type: verbatim
24020 #: ../fish/guestfish-actions.pod:4379
24021 #, no-wrap
24022 msgid ""
24023 " vg-activate true|false 'volgroups ...'\n"
24024 "\n"
24025 msgstr ""
24026
24027 # type: =head2
24028 #: ../fish/guestfish-actions.pod:4392
24029 msgid "vg-activate-all"
24030 msgstr ""
24031
24032 # type: verbatim
24033 #: ../fish/guestfish-actions.pod:4394
24034 #, no-wrap
24035 msgid ""
24036 " vg-activate-all true|false\n"
24037 "\n"
24038 msgstr ""
24039
24040 # type: =head2
24041 #: ../fish/guestfish-actions.pod:4404
24042 msgid "vgcreate"
24043 msgstr ""
24044
24045 # type: verbatim
24046 #: ../fish/guestfish-actions.pod:4406
24047 #, no-wrap
24048 msgid ""
24049 " vgcreate volgroup 'physvols ...'\n"
24050 "\n"
24051 msgstr ""
24052
24053 # type: =head2
24054 #: ../fish/guestfish-actions.pod:4411
24055 msgid "vglvuuids"
24056 msgstr ""
24057
24058 # type: verbatim
24059 #: ../fish/guestfish-actions.pod:4413
24060 #, no-wrap
24061 msgid ""
24062 " vglvuuids vgname\n"
24063 "\n"
24064 msgstr ""
24065
24066 # type: textblock
24067 #: ../fish/guestfish-actions.pod:4418
24068 msgid ""
24069 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24070 "logical volumes and volume groups."
24071 msgstr ""
24072
24073 # type: textblock
24074 #: ../fish/guestfish-actions.pod:4421
24075 msgid "See also L</vgpvuuids>."
24076 msgstr ""
24077
24078 # type: =head2
24079 #: ../fish/guestfish-actions.pod:4423
24080 msgid "vgpvuuids"
24081 msgstr ""
24082
24083 # type: verbatim
24084 #: ../fish/guestfish-actions.pod:4425
24085 #, no-wrap
24086 msgid ""
24087 " vgpvuuids vgname\n"
24088 "\n"
24089 msgstr ""
24090
24091 # type: textblock
24092 #: ../fish/guestfish-actions.pod:4430
24093 msgid ""
24094 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24095 "physical volumes and volume groups."
24096 msgstr ""
24097
24098 # type: textblock
24099 #: ../fish/guestfish-actions.pod:4433
24100 msgid "See also L</vglvuuids>."
24101 msgstr ""
24102
24103 # type: =head2
24104 #: ../fish/guestfish-actions.pod:4435
24105 msgid "vgremove"
24106 msgstr ""
24107
24108 # type: verbatim
24109 #: ../fish/guestfish-actions.pod:4437
24110 #, no-wrap
24111 msgid ""
24112 " vgremove vgname\n"
24113 "\n"
24114 msgstr ""
24115
24116 # type: =head2
24117 #: ../fish/guestfish-actions.pod:4444
24118 msgid "vgrename"
24119 msgstr ""
24120
24121 # type: verbatim
24122 #: ../fish/guestfish-actions.pod:4446
24123 #, no-wrap
24124 msgid ""
24125 " vgrename volgroup newvolgroup\n"
24126 "\n"
24127 msgstr ""
24128
24129 # type: =head2
24130 #: ../fish/guestfish-actions.pod:4450
24131 msgid "vgs"
24132 msgstr ""
24133
24134 # type: verbatim
24135 #: ../fish/guestfish-actions.pod:4452
24136 #, no-wrap
24137 msgid ""
24138 " vgs\n"
24139 "\n"
24140 msgstr ""
24141
24142 # type: textblock
24143 #: ../fish/guestfish-actions.pod:4460
24144 msgid "See also L</vgs-full>."
24145 msgstr ""
24146
24147 # type: =head2
24148 #: ../fish/guestfish-actions.pod:4462
24149 msgid "vgs-full"
24150 msgstr ""
24151
24152 # type: verbatim
24153 #: ../fish/guestfish-actions.pod:4464
24154 #, no-wrap
24155 msgid ""
24156 " vgs-full\n"
24157 "\n"
24158 msgstr ""
24159
24160 # type: =head2
24161 #: ../fish/guestfish-actions.pod:4469
24162 msgid "vgscan"
24163 msgstr ""
24164
24165 # type: verbatim
24166 #: ../fish/guestfish-actions.pod:4471
24167 #, no-wrap
24168 msgid ""
24169 " vgscan\n"
24170 "\n"
24171 msgstr ""
24172
24173 # type: =head2
24174 #: ../fish/guestfish-actions.pod:4476
24175 msgid "vguuid"
24176 msgstr ""
24177
24178 # type: verbatim
24179 #: ../fish/guestfish-actions.pod:4478
24180 #, no-wrap
24181 msgid ""
24182 " vguuid vgname\n"
24183 "\n"
24184 msgstr ""
24185
24186 # type: =head2
24187 #: ../fish/guestfish-actions.pod:4482
24188 msgid "wc-c"
24189 msgstr ""
24190
24191 # type: verbatim
24192 #: ../fish/guestfish-actions.pod:4484
24193 #, no-wrap
24194 msgid ""
24195 " wc-c path\n"
24196 "\n"
24197 msgstr ""
24198
24199 # type: =head2
24200 #: ../fish/guestfish-actions.pod:4489
24201 msgid "wc-l"
24202 msgstr ""
24203
24204 # type: verbatim
24205 #: ../fish/guestfish-actions.pod:4491
24206 #, no-wrap
24207 msgid ""
24208 " wc-l path\n"
24209 "\n"
24210 msgstr ""
24211
24212 # type: =head2
24213 #: ../fish/guestfish-actions.pod:4496
24214 msgid "wc-w"
24215 msgstr ""
24216
24217 # type: verbatim
24218 #: ../fish/guestfish-actions.pod:4498
24219 #, no-wrap
24220 msgid ""
24221 " wc-w path\n"
24222 "\n"
24223 msgstr ""
24224
24225 # type: =head2
24226 #: ../fish/guestfish-actions.pod:4503
24227 msgid "write"
24228 msgstr ""
24229
24230 # type: verbatim
24231 #: ../fish/guestfish-actions.pod:4505
24232 #, no-wrap
24233 msgid ""
24234 " write path content\n"
24235 "\n"
24236 msgstr ""
24237
24238 # type: =head2
24239 #: ../fish/guestfish-actions.pod:4513
24240 msgid "write-file"
24241 msgstr ""
24242
24243 # type: verbatim
24244 #: ../fish/guestfish-actions.pod:4515
24245 #, no-wrap
24246 msgid ""
24247 " write-file path content size\n"
24248 "\n"
24249 msgstr ""
24250
24251 # type: =head2
24252 #: ../fish/guestfish-actions.pod:4538
24253 msgid "zegrep"
24254 msgstr ""
24255
24256 # type: verbatim
24257 #: ../fish/guestfish-actions.pod:4540
24258 #, no-wrap
24259 msgid ""
24260 " zegrep regex path\n"
24261 "\n"
24262 msgstr ""
24263
24264 # type: =head2
24265 #: ../fish/guestfish-actions.pod:4548
24266 msgid "zegrepi"
24267 msgstr ""
24268
24269 # type: verbatim
24270 #: ../fish/guestfish-actions.pod:4550
24271 #, no-wrap
24272 msgid ""
24273 " zegrepi regex path\n"
24274 "\n"
24275 msgstr ""
24276
24277 # type: =head2
24278 #: ../fish/guestfish-actions.pod:4558
24279 msgid "zero"
24280 msgstr ""
24281
24282 # type: verbatim
24283 #: ../fish/guestfish-actions.pod:4560
24284 #, no-wrap
24285 msgid ""
24286 " zero device\n"
24287 "\n"
24288 msgstr ""
24289
24290 # type: textblock
24291 #: ../fish/guestfish-actions.pod:4568
24292 msgid "See also: L</zero-device>, L</scrub-device>."
24293 msgstr ""
24294
24295 # type: =head2
24296 #: ../fish/guestfish-actions.pod:4570
24297 msgid "zero-device"
24298 msgstr ""
24299
24300 # type: verbatim
24301 #: ../fish/guestfish-actions.pod:4572
24302 #, no-wrap
24303 msgid ""
24304 " zero-device device\n"
24305 "\n"
24306 msgstr ""
24307
24308 # type: textblock
24309 #: ../fish/guestfish-actions.pod:4574
24310 msgid ""
24311 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24312 "which just zeroes the first few blocks of a device."
24313 msgstr ""
24314
24315 # type: =head2
24316 #: ../fish/guestfish-actions.pod:4581
24317 msgid "zerofree"
24318 msgstr ""
24319
24320 # type: verbatim
24321 #: ../fish/guestfish-actions.pod:4583
24322 #, no-wrap
24323 msgid ""
24324 " zerofree device\n"
24325 "\n"
24326 msgstr ""
24327
24328 # type: =head2
24329 #: ../fish/guestfish-actions.pod:4596
24330 msgid "zfgrep"
24331 msgstr ""
24332
24333 # type: verbatim
24334 #: ../fish/guestfish-actions.pod:4598
24335 #, no-wrap
24336 msgid ""
24337 " zfgrep pattern path\n"
24338 "\n"
24339 msgstr ""
24340
24341 # type: =head2
24342 #: ../fish/guestfish-actions.pod:4606
24343 msgid "zfgrepi"
24344 msgstr ""
24345
24346 # type: verbatim
24347 #: ../fish/guestfish-actions.pod:4608
24348 #, no-wrap
24349 msgid ""
24350 " zfgrepi pattern path\n"
24351 "\n"
24352 msgstr ""
24353
24354 # type: =head2
24355 #: ../fish/guestfish-actions.pod:4616
24356 msgid "zfile"
24357 msgstr ""
24358
24359 # type: verbatim
24360 #: ../fish/guestfish-actions.pod:4618
24361 #, no-wrap
24362 msgid ""
24363 " zfile meth path\n"
24364 "\n"
24365 msgstr ""
24366
24367 # type: textblock
24368 #: ../fish/guestfish-actions.pod:4625
24369 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
24370 msgstr ""
24371
24372 # type: =head2
24373 #: ../fish/guestfish-actions.pod:4635
24374 msgid "zgrep"
24375 msgstr ""
24376
24377 # type: verbatim
24378 #: ../fish/guestfish-actions.pod:4637
24379 #, no-wrap
24380 msgid ""
24381 " zgrep regex path\n"
24382 "\n"
24383 msgstr ""
24384
24385 # type: =head2
24386 #: ../fish/guestfish-actions.pod:4645
24387 msgid "zgrepi"
24388 msgstr ""
24389
24390 # type: verbatim
24391 #: ../fish/guestfish-actions.pod:4647
24392 #, no-wrap
24393 msgid ""
24394 " zgrepi regex path\n"
24395 "\n"
24396 msgstr ""
24397
24398 # type: =head2
24399 #: ../fish/guestfish-commands.pod:1
24400 msgid "alloc"
24401 msgstr ""
24402
24403 # type: =head2
24404 #: ../fish/guestfish-commands.pod:3
24405 msgid "allocate"
24406 msgstr ""
24407
24408 # type: verbatim
24409 #: ../fish/guestfish-commands.pod:5
24410 #, no-wrap
24411 msgid ""
24412 " alloc filename size\n"
24413 "\n"
24414 msgstr ""
24415
24416 # type: textblock
24417 #: ../fish/guestfish-commands.pod:7
24418 msgid ""
24419 "This creates an empty (zeroed) file of the given size, and then adds so it "
24420 "can be further examined."
24421 msgstr ""
24422
24423 # type: textblock
24424 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24425 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24426 msgstr ""
24427
24428 # type: textblock
24429 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24430 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24431 msgstr ""
24432
24433 # type: textblock
24434 #: ../fish/guestfish-commands.pod:14
24435 msgid ""
24436 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24437 "image, see L</PREPARED DISK IMAGES>."
24438 msgstr ""
24439
24440 # type: =head2
24441 #: ../fish/guestfish-commands.pod:17
24442 msgid "copy-in"
24443 msgstr ""
24444
24445 # type: verbatim
24446 #: ../fish/guestfish-commands.pod:19
24447 #, no-wrap
24448 msgid ""
24449 " copy-in local [local ...] /remotedir\n"
24450 "\n"
24451 msgstr ""
24452
24453 # type: textblock
24454 #: ../fish/guestfish-commands.pod:21
24455 msgid ""
24456 "C<copy-in> copies local files or directories recursively into the disk "
24457 "image, placing them in the directory called C</remotedir> (which must "
24458 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24459 "other commands as necessary."
24460 msgstr ""
24461
24462 # type: textblock
24463 #: ../fish/guestfish-commands.pod:26
24464 msgid ""
24465 "Multiple local files and directories can be specified, but the last "
24466 "parameter must always be a remote directory.  Wildcards cannot be used."
24467 msgstr ""
24468
24469 # type: =head2
24470 #: ../fish/guestfish-commands.pod:30
24471 msgid "copy-out"
24472 msgstr ""
24473
24474 # type: verbatim
24475 #: ../fish/guestfish-commands.pod:32
24476 #, no-wrap
24477 msgid ""
24478 " copy-out remote [remote ...] localdir\n"
24479 "\n"
24480 msgstr ""
24481
24482 # type: textblock
24483 #: ../fish/guestfish-commands.pod:34
24484 msgid ""
24485 "C<copy-out> copies remote files or directories recursively out of the disk "
24486 "image, placing them on the host disk in a local directory called C<localdir> "
24487 "(which must exist).  This guestfish meta-command turns into a sequence of "
24488 "L</download>, L</tar-out> and other commands as necessary."
24489 msgstr ""
24490
24491 # type: textblock
24492 #: ../fish/guestfish-commands.pod:40
24493 msgid ""
24494 "Multiple remote files and directories can be specified, but the last "
24495 "parameter must always be a local directory.  To download to the current "
24496 "directory, use C<.> as in:"
24497 msgstr ""
24498
24499 # type: verbatim
24500 #: ../fish/guestfish-commands.pod:44
24501 #, no-wrap
24502 msgid ""
24503 " copy-out /home .\n"
24504 "\n"
24505 msgstr ""
24506
24507 # type: textblock
24508 #: ../fish/guestfish-commands.pod:46
24509 msgid ""
24510 "Wildcards cannot be used in the ordinary command, but you can use them with "
24511 "the help of L</glob> like this:"
24512 msgstr ""
24513
24514 # type: verbatim
24515 #: ../fish/guestfish-commands.pod:49
24516 #, no-wrap
24517 msgid ""
24518 " glob copy-out /home/* .\n"
24519 "\n"
24520 msgstr ""
24521
24522 # type: =head2
24523 #: ../fish/guestfish-commands.pod:51
24524 msgid "echo"
24525 msgstr ""
24526
24527 # type: verbatim
24528 #: ../fish/guestfish-commands.pod:53
24529 #, no-wrap
24530 msgid ""
24531 " echo [params ...]\n"
24532 "\n"
24533 msgstr ""
24534
24535 # type: textblock
24536 #: ../fish/guestfish-commands.pod:55
24537 msgid "This echos the parameters to the terminal."
24538 msgstr ""
24539
24540 # type: =head2
24541 #: ../fish/guestfish-commands.pod:57
24542 msgid "edit"
24543 msgstr ""
24544
24545 # type: =head2
24546 #: ../fish/guestfish-commands.pod:59
24547 msgid "vi"
24548 msgstr ""
24549
24550 # type: =head2
24551 #: ../fish/guestfish-commands.pod:61
24552 msgid "emacs"
24553 msgstr ""
24554
24555 # type: verbatim
24556 #: ../fish/guestfish-commands.pod:63
24557 #, no-wrap
24558 msgid ""
24559 " edit filename\n"
24560 "\n"
24561 msgstr ""
24562
24563 # type: textblock
24564 #: ../fish/guestfish-commands.pod:65
24565 msgid ""
24566 "This is used to edit a file.  It downloads the file, edits it locally using "
24567 "your editor, then uploads the result."
24568 msgstr ""
24569
24570 # type: textblock
24571 #: ../fish/guestfish-commands.pod:68
24572 msgid ""
24573 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24574 "or C<emacs> you will get those corresponding editors."
24575 msgstr ""
24576
24577 # type: =head2
24578 #: ../fish/guestfish-commands.pod:72
24579 msgid "glob"
24580 msgstr ""
24581
24582 # type: verbatim
24583 #: ../fish/guestfish-commands.pod:74
24584 #, no-wrap
24585 msgid ""
24586 " glob command args...\n"
24587 "\n"
24588 msgstr ""
24589
24590 # type: textblock
24591 #: ../fish/guestfish-commands.pod:76
24592 msgid ""
24593 "Expand wildcards in any paths in the args list, and run C<command> "
24594 "repeatedly on each matching path."
24595 msgstr ""
24596
24597 # type: textblock
24598 #: ../fish/guestfish-commands.pod:79
24599 msgid "See L</WILDCARDS AND GLOBBING>."
24600 msgstr ""
24601
24602 # type: =head2
24603 #: ../fish/guestfish-commands.pod:81
24604 msgid "hexedit"
24605 msgstr ""
24606
24607 # type: verbatim
24608 #: ../fish/guestfish-commands.pod:83
24609 #, no-wrap
24610 msgid ""
24611 " hexedit <filename|device>\n"
24612 " hexedit <filename|device> <max>\n"
24613 " hexedit <filename|device> <start> <max>\n"
24614 "\n"
24615 msgstr ""
24616
24617 # type: textblock
24618 #: ../fish/guestfish-commands.pod:87
24619 msgid ""
24620 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24621 "device."
24622 msgstr ""
24623
24624 # type: textblock
24625 #: ../fish/guestfish-commands.pod:90
24626 msgid ""
24627 "This command works by downloading potentially the whole file or device, "
24628 "editing it locally, then uploading it.  If the file or device is large, you "
24629 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24630 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24631 "usual modifiers allowed such as C<1M> (1 megabyte)."
24632 msgstr ""
24633
24634 # type: textblock
24635 #: ../fish/guestfish-commands.pod:97
24636 msgid "For example to edit the first few sectors of a disk you might do:"
24637 msgstr ""
24638
24639 # type: verbatim
24640 #: ../fish/guestfish-commands.pod:100
24641 #, no-wrap
24642 msgid ""
24643 " hexedit /dev/sda 1M\n"
24644 "\n"
24645 msgstr ""
24646
24647 # type: textblock
24648 #: ../fish/guestfish-commands.pod:102
24649 msgid ""
24650 "which would allow you to edit anywhere within the first megabyte of the "
24651 "disk."
24652 msgstr ""
24653
24654 # type: textblock
24655 #: ../fish/guestfish-commands.pod:105
24656 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24657 msgstr ""
24658
24659 # type: verbatim
24660 #: ../fish/guestfish-commands.pod:107
24661 #, no-wrap
24662 msgid ""
24663 " hexedit /dev/sda1 0x400 0x400\n"
24664 "\n"
24665 msgstr ""
24666
24667 # type: textblock
24668 #: ../fish/guestfish-commands.pod:109
24669 msgid "(assuming the superblock is in the standard location)."
24670 msgstr ""
24671
24672 # type: textblock
24673 #: ../fish/guestfish-commands.pod:111
24674 msgid ""
24675 "This command requires the external L<hexedit(1)> program.  You can specify "
24676 "another program to use by setting the C<HEXEDITOR> environment variable."
24677 msgstr ""
24678
24679 # type: textblock
24680 #: ../fish/guestfish-commands.pod:115
24681 msgid "See also L</hexdump>."
24682 msgstr ""
24683
24684 # type: =head2
24685 #: ../fish/guestfish-commands.pod:117
24686 msgid "lcd"
24687 msgstr ""
24688
24689 # type: verbatim
24690 #: ../fish/guestfish-commands.pod:119
24691 #, no-wrap
24692 msgid ""
24693 " lcd directory\n"
24694 "\n"
24695 msgstr ""
24696
24697 # type: textblock
24698 #: ../fish/guestfish-commands.pod:121
24699 msgid "Change the local directory, ie. the current directory of guestfish itself."
24700 msgstr ""
24701
24702 # type: textblock
24703 #: ../fish/guestfish-commands.pod:124
24704 msgid "Note that C<!cd> won't do what you might expect."
24705 msgstr ""
24706
24707 # type: =head2
24708 #: ../fish/guestfish-commands.pod:126
24709 msgid "man"
24710 msgstr ""
24711
24712 # type: =head2
24713 #: ../fish/guestfish-commands.pod:128
24714 msgid "manual"
24715 msgstr ""
24716
24717 # type: verbatim
24718 #: ../fish/guestfish-commands.pod:130
24719 #, no-wrap
24720 msgid ""
24721 "  man\n"
24722 "\n"
24723 msgstr ""
24724
24725 # type: textblock
24726 #: ../fish/guestfish-commands.pod:132
24727 msgid "Opens the manual page for guestfish."
24728 msgstr ""
24729
24730 # type: =head2
24731 #: ../fish/guestfish-commands.pod:134
24732 msgid "more"
24733 msgstr ""
24734
24735 # type: =head2
24736 #: ../fish/guestfish-commands.pod:136
24737 msgid "less"
24738 msgstr ""
24739
24740 # type: verbatim
24741 #: ../fish/guestfish-commands.pod:138
24742 #, no-wrap
24743 msgid ""
24744 " more filename\n"
24745 "\n"
24746 msgstr ""
24747
24748 # type: verbatim
24749 #: ../fish/guestfish-commands.pod:140
24750 #, no-wrap
24751 msgid ""
24752 " less filename\n"
24753 "\n"
24754 msgstr ""
24755
24756 # type: textblock
24757 #: ../fish/guestfish-commands.pod:142
24758 msgid "This is used to view a file."
24759 msgstr ""
24760
24761 # type: textblock
24762 #: ../fish/guestfish-commands.pod:144
24763 msgid ""
24764 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24765 "C<less> you will get the C<less> command specifically."
24766 msgstr ""
24767
24768 # type: =head2
24769 #: ../fish/guestfish-commands.pod:147
24770 msgid "reopen"
24771 msgstr ""
24772
24773 # type: verbatim
24774 #: ../fish/guestfish-commands.pod:149
24775 #, no-wrap
24776 msgid ""
24777 "  reopen\n"
24778 "\n"
24779 msgstr ""
24780
24781 # type: textblock
24782 #: ../fish/guestfish-commands.pod:151
24783 msgid ""
24784 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24785 "normally, because the handle is closed properly when guestfish exits.  "
24786 "However this is occasionally useful for testing."
24787 msgstr ""
24788
24789 # type: =head2
24790 #: ../fish/guestfish-commands.pod:155
24791 msgid "sparse"
24792 msgstr ""
24793
24794 # type: verbatim
24795 #: ../fish/guestfish-commands.pod:157
24796 #, no-wrap
24797 msgid ""
24798 " sparse filename size\n"
24799 "\n"
24800 msgstr ""
24801
24802 # type: textblock
24803 #: ../fish/guestfish-commands.pod:159
24804 msgid ""
24805 "This creates an empty sparse file of the given size, and then adds so it can "
24806 "be further examined."
24807 msgstr ""
24808
24809 # type: textblock
24810 #: ../fish/guestfish-commands.pod:162
24811 msgid ""
24812 "In all respects it works the same as the L</alloc> command, except that the "
24813 "image file is allocated sparsely, which means that disk blocks are not "
24814 "assigned to the file until they are needed.  Sparse disk files only use "
24815 "space when written to, but they are slower and there is a danger you could "
24816 "run out of real disk space during a write operation."
24817 msgstr ""
24818
24819 # type: =head2
24820 #: ../fish/guestfish-commands.pod:172
24821 msgid "supported"
24822 msgstr ""
24823
24824 # type: verbatim
24825 #: ../fish/guestfish-commands.pod:174
24826 #, no-wrap
24827 msgid ""
24828 " supported\n"
24829 "\n"
24830 msgstr ""
24831
24832 # type: textblock
24833 #: ../fish/guestfish-commands.pod:176
24834 msgid ""
24835 "This command returns a list of the optional groups known to the daemon, and "
24836 "indicates which ones are supported by this build of the libguestfs "
24837 "appliance."
24838 msgstr ""
24839
24840 # type: textblock
24841 #: ../fish/guestfish-commands.pod:180
24842 msgid "See also L<guestfs(3)/AVAILABILITY>."
24843 msgstr ""
24844
24845 # type: =head2
24846 #: ../fish/guestfish-commands.pod:182
24847 msgid "time"
24848 msgstr ""
24849
24850 # type: verbatim
24851 #: ../fish/guestfish-commands.pod:184
24852 #, no-wrap
24853 msgid ""
24854 " time command args...\n"
24855 "\n"
24856 msgstr ""
24857
24858 # type: textblock
24859 #: ../fish/guestfish-commands.pod:186
24860 msgid ""
24861 "Run the command as usual, but print the elapsed time afterwards.  This can "
24862 "be useful for benchmarking operations."
24863 msgstr ""
24864
24865 # type: textblock
24866 #: ../test-tool/libguestfs-test-tool.pod:5
24867 msgid "libguestfs-test-tool - End user tests for libguestfs"
24868 msgstr ""
24869
24870 # type: verbatim
24871 #: ../test-tool/libguestfs-test-tool.pod:9
24872 #, no-wrap
24873 msgid ""
24874 " libguestfs-test-tool [--options]\n"
24875 "\n"
24876 msgstr ""
24877
24878 # type: textblock
24879 #: ../test-tool/libguestfs-test-tool.pod:13
24880 msgid ""
24881 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24882 "and developers, to allow them to check basic libguestfs functionality is "
24883 "working.  This is needed because libguestfs occasionally breaks for reasons "
24884 "beyond our control: usually because of changes in the underlying qemu or "
24885 "kernel packages, or the host environment."
24886 msgstr ""
24887
24888 # type: textblock
24889 #: ../test-tool/libguestfs-test-tool.pod:20
24890 msgid "If you suspect a problem in libguestfs, then just run:"
24891 msgstr ""
24892
24893 # type: verbatim
24894 #: ../test-tool/libguestfs-test-tool.pod:22
24895 #, no-wrap
24896 msgid ""
24897 " libguestfs-test-tool\n"
24898 "\n"
24899 msgstr ""
24900
24901 # type: textblock
24902 #: ../test-tool/libguestfs-test-tool.pod:24
24903 msgid "It will print lots of diagnostic messages."
24904 msgstr ""
24905
24906 # type: textblock
24907 #: ../test-tool/libguestfs-test-tool.pod:26
24908 msgid "If it runs to completion successfully, you will see this near the end:"
24909 msgstr ""
24910
24911 # type: verbatim
24912 #: ../test-tool/libguestfs-test-tool.pod:28
24913 #, no-wrap
24914 msgid ""
24915 " ===== TEST FINISHED OK =====\n"
24916 "\n"
24917 msgstr ""
24918
24919 # type: textblock
24920 #: ../test-tool/libguestfs-test-tool.pod:30
24921 msgid "and the test tool will exit with code 0."
24922 msgstr ""
24923
24924 # type: textblock
24925 #: ../test-tool/libguestfs-test-tool.pod:32
24926 msgid ""
24927 "If it fails (and/or exits with non-zero error code), please paste the "
24928 "B<complete, unedited> output of the test tool into a bug report.  More "
24929 "information about reporting bugs can be found on the "
24930 "L<http://libguestfs.org/> website."
24931 msgstr ""
24932
24933 # type: =item
24934 #: ../test-tool/libguestfs-test-tool.pod:41
24935 msgid "I<--help>"
24936 msgstr ""
24937
24938 # type: textblock
24939 #: ../test-tool/libguestfs-test-tool.pod:43
24940 msgid "Display short usage information and exit."
24941 msgstr ""
24942
24943 # type: =item
24944 #: ../test-tool/libguestfs-test-tool.pod:45
24945 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24946 msgstr ""
24947
24948 # type: textblock
24949 #: ../test-tool/libguestfs-test-tool.pod:47
24950 msgid ""
24951 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
24952 "normally look in the C<$libexec> directory that was configured when the tool "
24953 "was built."
24954 msgstr ""
24955
24956 # type: =item
24957 #: ../test-tool/libguestfs-test-tool.pod:51
24958 msgid "I<--qemu qemu_binary>"
24959 msgstr ""
24960
24961 # type: textblock
24962 #: ../test-tool/libguestfs-test-tool.pod:53
24963 msgid ""
24964 "If you have downloaded another qemu binary, point this option at the full "
24965 "path of the binary to try it."
24966 msgstr ""
24967
24968 # type: =item
24969 #: ../test-tool/libguestfs-test-tool.pod:56
24970 msgid "I<--qemudir qemu_source_dir>"
24971 msgstr ""
24972
24973 # type: textblock
24974 #: ../test-tool/libguestfs-test-tool.pod:58
24975 msgid ""
24976 "If you have compiled qemu from source, point this option at the source "
24977 "directory to try it."
24978 msgstr ""
24979
24980 # type: =item
24981 #: ../test-tool/libguestfs-test-tool.pod:61
24982 msgid "I<--timeout N>"
24983 msgstr ""
24984
24985 # type: textblock
24986 #: ../test-tool/libguestfs-test-tool.pod:63
24987 msgid ""
24988 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
24989 "does not usually need to be adjusted unless your machine is very slow."
24990 msgstr ""
24991
24992 # type: =head1
24993 #: ../test-tool/libguestfs-test-tool.pod:69
24994 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
24995 msgstr ""
24996
24997 # type: textblock
24998 #: ../test-tool/libguestfs-test-tool.pod:71
24999 msgid ""
25000 "If you have compiled another version of qemu from source and would like to "
25001 "try that, then you can use the I<--qemudir> option to point to the qemu "
25002 "source directory."
25003 msgstr ""
25004
25005 # type: textblock
25006 #: ../test-tool/libguestfs-test-tool.pod:75
25007 msgid ""
25008 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25009 "option to point to the binary."
25010 msgstr ""
25011
25012 # type: textblock
25013 #: ../test-tool/libguestfs-test-tool.pod:78
25014 msgid ""
25015 "When using an alternate qemu with libguestfs, usually you would need to "
25016 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
25017 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
25018 "when you use either of the I<--qemudir> or I<--qemu> options."
25019 msgstr ""
25020
25021 # type: textblock
25022 #: ../test-tool/libguestfs-test-tool.pod:85
25023 msgid ""
25024 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25025 "I<1> if there was an error."
25026 msgstr ""
25027
25028 # type: =item
25029 #: ../test-tool/libguestfs-test-tool.pod:92
25030 msgid "/usr/libexec/libguestfs-test-tool-helper"
25031 msgstr ""
25032
25033 # type: textblock
25034 #: ../test-tool/libguestfs-test-tool.pod:94
25035 msgid ""
25036 "This helper program is run inside the appliance and provides additional "
25037 "tests."
25038 msgstr ""
25039
25040 # type: =item
25041 #: ../test-tool/libguestfs-test-tool.pod:97
25042 msgid "/usr/bin/mkisofs"
25043 msgstr ""
25044
25045 # type: textblock
25046 #: ../test-tool/libguestfs-test-tool.pod:99
25047 msgid ""
25048 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25049 "which is used as part of the tests."
25050 msgstr ""
25051
25052 # type: textblock
25053 #: ../test-tool/libguestfs-test-tool.pod:106
25054 msgid ""
25055 "For the full list of environment variables which may affect libguestfs, "
25056 "please see the L<guestfs(3)> manual page."
25057 msgstr ""
25058
25059 # type: textblock
25060 #: ../test-tool/libguestfs-test-tool.pod:111
25061 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25062 msgstr ""
25063
25064 # type: textblock
25065 #: ../test-tool/libguestfs-test-tool.pod:121
25066 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25067 msgstr ""
25068
25069 # type: textblock
25070 #: ../fuse/guestmount.pod:5
25071 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25072 msgstr ""
25073
25074 # type: verbatim
25075 #: ../fuse/guestmount.pod:9
25076 #, no-wrap
25077 msgid ""
25078 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25079 "\n"
25080 msgstr ""
25081
25082 # type: verbatim
25083 #: ../fuse/guestmount.pod:11
25084 #, no-wrap
25085 msgid ""
25086 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25087 "\n"
25088 msgstr ""
25089
25090 # type: verbatim
25091 #: ../fuse/guestmount.pod:13
25092 #, no-wrap
25093 msgid ""
25094 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25095 "\n"
25096 msgstr ""
25097
25098 # type: textblock
25099 #: ../fuse/guestmount.pod:17
25100 msgid ""
25101 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25102 "machines.  If you do this, you risk disk corruption in the VM."
25103 msgstr ""
25104
25105 # type: textblock
25106 #: ../fuse/guestmount.pod:22
25107 msgid ""
25108 "The guestmount program can be used to mount virtual machine filesystems and "
25109 "other disk images on the host.  It uses libguestfs for access to the guest "
25110 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25111 "a mountable device."
25112 msgstr ""
25113
25114 # type: textblock
25115 #: ../fuse/guestmount.pod:27
25116 msgid ""
25117 "Along with other options, you have to give at least one device (I<-a> "
25118 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25119 "option) or use the I<-i> inspection option.  How this works is better "
25120 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25121 "below."
25122 msgstr ""
25123
25124 # type: textblock
25125 #: ../fuse/guestmount.pod:33
25126 msgid ""
25127 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25128 "by you, and the filesystem will not be visible to any other users unless you "
25129 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25130 "the filesystem, use the C<fusermount -u> command."
25131 msgstr ""
25132
25133 # type: textblock
25134 #: ../fuse/guestmount.pod:41
25135 msgid ""
25136 "For a typical Windows guest which has its main filesystem on the first "
25137 "partition:"
25138 msgstr ""
25139
25140 # type: verbatim
25141 #: ../fuse/guestmount.pod:44
25142 #, no-wrap
25143 msgid ""
25144 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25145 "\n"
25146 msgstr ""
25147
25148 # type: textblock
25149 #: ../fuse/guestmount.pod:46
25150 msgid ""
25151 "For a typical Linux guest which has a /boot filesystem on the first "
25152 "partition, and the root filesystem on a logical volume:"
25153 msgstr ""
25154
25155 # type: verbatim
25156 #: ../fuse/guestmount.pod:49
25157 #, no-wrap
25158 msgid ""
25159 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25160 "\n"
25161 msgstr ""
25162
25163 # type: textblock
25164 #: ../fuse/guestmount.pod:51
25165 msgid "To get libguestfs to detect guest mountpoints for you:"
25166 msgstr ""
25167
25168 # type: verbatim
25169 #: ../fuse/guestmount.pod:53
25170 #, no-wrap
25171 msgid ""
25172 " guestmount -a guest.img -i --ro /mnt\n"
25173 "\n"
25174 msgstr ""
25175
25176 # type: textblock
25177 #: ../fuse/guestmount.pod:55
25178 msgid "For a libvirt guest called \"Guest\" you could do:"
25179 msgstr ""
25180
25181 # type: verbatim
25182 #: ../fuse/guestmount.pod:57
25183 #, no-wrap
25184 msgid ""
25185 " guestmount -d Guest -i --ro /mnt\n"
25186 "\n"
25187 msgstr ""
25188
25189 # type: textblock
25190 #: ../fuse/guestmount.pod:59
25191 msgid ""
25192 "If you don't know what filesystems are contained in a guest or disk image, "
25193 "use L<virt-list-filesystems(1)> first:"
25194 msgstr ""
25195
25196 # type: verbatim
25197 #: ../fuse/guestmount.pod:62
25198 #, no-wrap
25199 msgid ""
25200 " virt-list-filesystems MyGuest\n"
25201 "\n"
25202 msgstr ""
25203
25204 # type: textblock
25205 #: ../fuse/guestmount.pod:64
25206 msgid ""
25207 "If you want to trace the libguestfs calls but without excessive debugging "
25208 "information, we recommend:"
25209 msgstr ""
25210
25211 # type: verbatim
25212 #: ../fuse/guestmount.pod:67
25213 #, no-wrap
25214 msgid ""
25215 " guestmount [...] --trace /mnt\n"
25216 "\n"
25217 msgstr ""
25218
25219 # type: textblock
25220 #: ../fuse/guestmount.pod:69
25221 msgid "If you want to debug the program, we recommend:"
25222 msgstr ""
25223
25224 # type: verbatim
25225 #: ../fuse/guestmount.pod:71
25226 #, no-wrap
25227 msgid ""
25228 " guestmount [...] --trace --verbose /mnt\n"
25229 "\n"
25230 msgstr ""
25231
25232 # type: textblock
25233 #: ../fuse/guestmount.pod:79
25234 msgid "Add a block device or virtual machine image."
25235 msgstr ""
25236
25237 # type: =item
25238 #: ../fuse/guestmount.pod:96
25239 msgid "B<--dir-cache-timeout N>"
25240 msgstr ""
25241
25242 # type: textblock
25243 #: ../fuse/guestmount.pod:98
25244 msgid ""
25245 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25246 "seconds.  The readdir cache [actually, there are several semi-independent "
25247 "caches] is populated after a readdir(2) call with the stat and extended "
25248 "attributes of the files in the directory, in anticipation that they will be "
25249 "requested soon after."
25250 msgstr ""
25251
25252 # type: textblock
25253 #: ../fuse/guestmount.pod:104
25254 msgid ""
25255 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25256 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25257 "requests, only cache existing ones."
25258 msgstr ""
25259
25260 # type: textblock
25261 #: ../fuse/guestmount.pod:122
25262 msgid ""
25263 "If you have untrusted raw-format guest disk images, you should use this "
25264 "option to specify the disk format.  This avoids a possible security problem "
25265 "with malicious guests (CVE-2010-3851).  See also "
25266 "L<guestfs(3)/guestfs_add_drive_opts>."
25267 msgstr ""
25268
25269 # type: =item
25270 #: ../fuse/guestmount.pod:127
25271 msgid "B<--fuse-help>"
25272 msgstr ""
25273
25274 # type: textblock
25275 #: ../fuse/guestmount.pod:129
25276 msgid "Display help on special FUSE options (see I<-o> below)."
25277 msgstr ""
25278
25279 # type: textblock
25280 #: ../fuse/guestmount.pod:133
25281 msgid "Display brief help and exit."
25282 msgstr ""
25283
25284 # type: =item
25285 #: ../fuse/guestmount.pod:146
25286 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25287 msgstr ""
25288
25289 # type: textblock
25290 #: ../fuse/guestmount.pod:148
25291 msgid ""
25292 "Mount the named partition or logical volume on the given mountpoint B<in the "
25293 "guest> (this has nothing to do with mountpoints in the host)."
25294 msgstr ""
25295
25296 # type: textblock
25297 #: ../fuse/guestmount.pod:151
25298 msgid ""
25299 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25300 "something on C</>."
25301 msgstr ""
25302
25303 # type: textblock
25304 #: ../fuse/guestmount.pod:156
25305 msgid ""
25306 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25307 "unmounted.  If you specify this option, then we don't attempt to sync the "
25308 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25309 msgstr ""
25310
25311 # type: =item
25312 #: ../fuse/guestmount.pod:161
25313 msgid "B<-o option> | B<--option option>"
25314 msgstr ""
25315
25316 # type: textblock
25317 #: ../fuse/guestmount.pod:163
25318 msgid "Pass extra options to FUSE."
25319 msgstr ""
25320
25321 # type: textblock
25322 #: ../fuse/guestmount.pod:165
25323 msgid ""
25324 "To get a list of all the extra options supported by FUSE, use the command "
25325 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25326 "of them are a good idea."
25327 msgstr ""
25328
25329 # type: verbatim
25330 #: ../fuse/guestmount.pod:169
25331 #, no-wrap
25332 msgid ""
25333 " guestmount --fuse-help\n"
25334 "\n"
25335 msgstr ""
25336
25337 # type: textblock
25338 #: ../fuse/guestmount.pod:171
25339 msgid "Some potentially useful FUSE options:"
25340 msgstr ""
25341
25342 # type: =item
25343 #: ../fuse/guestmount.pod:175
25344 msgid "B<-o allow_other>"
25345 msgstr ""
25346
25347 # type: textblock
25348 #: ../fuse/guestmount.pod:177
25349 msgid "Allow other users to see the filesystem."
25350 msgstr ""
25351
25352 # type: =item
25353 #: ../fuse/guestmount.pod:179
25354 msgid "B<-o attr_timeout=N>"
25355 msgstr ""
25356
25357 # type: textblock
25358 #: ../fuse/guestmount.pod:181
25359 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25360 msgstr ""
25361
25362 # type: =item
25363 #: ../fuse/guestmount.pod:183
25364 msgid "B<-o kernel_cache>"
25365 msgstr ""
25366
25367 # type: textblock
25368 #: ../fuse/guestmount.pod:185
25369 msgid ""
25370 "Allow the kernel to cache files (reduces the number of reads that have to go "
25371 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25372 "afford the extra memory usage."
25373 msgstr ""
25374
25375 # type: =item
25376 #: ../fuse/guestmount.pod:189
25377 msgid "B<-o uid=N> B<-o gid=N>"
25378 msgstr ""
25379
25380 # type: textblock
25381 #: ../fuse/guestmount.pod:191
25382 msgid ""
25383 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25384 "the chosen values."
25385 msgstr ""
25386
25387 # type: textblock
25388 #: ../fuse/guestmount.pod:198
25389 msgid ""
25390 "Add devices and mount everything read-only.  Also disallow writes and make "
25391 "the disk appear read-only to FUSE."
25392 msgstr ""
25393
25394 # type: textblock
25395 #: ../fuse/guestmount.pod:201
25396 msgid ""
25397 "This is highly recommended if you are not going to edit the guest disk.  If "
25398 "the guest is running and this option is I<not> supplied, then there is a "
25399 "strong risk of disk corruption in the guest.  We try to prevent this from "
25400 "happening, but it is not always possible."
25401 msgstr ""
25402
25403 # type: textblock
25404 #: ../fuse/guestmount.pod:206
25405 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25406 msgstr ""
25407
25408 # type: textblock
25409 #: ../fuse/guestmount.pod:210
25410 msgid "Enable SELinux support for the guest."
25411 msgstr ""
25412
25413 # type: textblock
25414 #: ../fuse/guestmount.pod:214
25415 msgid "Enable verbose messages from underlying libguestfs."
25416 msgstr ""
25417
25418 # type: textblock
25419 #: ../fuse/guestmount.pod:218
25420 msgid "Display the program version and exit."
25421 msgstr ""
25422
25423 # type: textblock
25424 #: ../fuse/guestmount.pod:222
25425 msgid ""
25426 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25427 "FOR READ AND WRITE>."
25428 msgstr ""
25429
25430 # type: =item
25431 #: ../fuse/guestmount.pod:225
25432 msgid "B<-x> | B<--trace>"
25433 msgstr ""
25434
25435 # type: textblock
25436 #: ../fuse/guestmount.pod:227
25437 msgid "Trace libguestfs calls."
25438 msgstr ""
25439
25440 # type: textblock
25441 #: ../fuse/guestmount.pod:229
25442 msgid "This also stops the daemon from forking into the background."
25443 msgstr ""
25444
25445 # type: textblock
25446 #: ../fuse/guestmount.pod:235
25447 msgid ""
25448 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25449 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
25450 "L<http://fuse.sf.net/>."
25451 msgstr ""
25452
25453 # type: textblock
25454 #: ../inspector/virt-inspector.pl:35
25455 msgid ""
25456 "virt-inspector - Display operating system version and other information "
25457 "about a virtual machine"
25458 msgstr ""
25459
25460 # type: verbatim
25461 #: ../inspector/virt-inspector.pl:39
25462 #, no-wrap
25463 msgid ""
25464 " virt-inspector [--connect URI] domname\n"
25465 "\n"
25466 msgstr ""
25467
25468 # type: verbatim
25469 #: ../inspector/virt-inspector.pl:41
25470 #, no-wrap
25471 msgid ""
25472 " virt-inspector guest.img [guest.img ...]\n"
25473 "\n"
25474 msgstr ""
25475
25476 # type: textblock
25477 #: ../inspector/virt-inspector.pl:45
25478 msgid ""
25479 "B<virt-inspector> examines a virtual machine or disk image and tries to "
25480 "determine the version of the operating system and other information about "
25481 "the virtual machine."
25482 msgstr ""
25483
25484 # type: textblock
25485 #: ../inspector/virt-inspector.pl:49
25486 msgid "Virt-inspector produces XML output for feeding into other programs."
25487 msgstr ""
25488
25489 # type: textblock
25490 #: ../inspector/virt-inspector.pl:51
25491 msgid ""
25492 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
25493 "libvirt domain (see: C<virsh list --all>)."
25494 msgstr ""
25495
25496 # type: textblock
25497 #: ../inspector/virt-inspector.pl:54
25498 msgid ""
25499 "You can also run virt-inspector directly on disk images from a single "
25500 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
25501 "has several block devices, in which case you should list them one after "
25502 "another, with the first corresponding to the guest's C</dev/sda>, the second "
25503 "to the guest's C</dev/sdb> and so on."
25504 msgstr ""
25505
25506 # type: textblock
25507 #: ../inspector/virt-inspector.pl:60
25508 msgid ""
25509 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
25510 "inspect several virtual machines, you have to run virt-inspector several "
25511 "times (for example, from a shell script for-loop)."
25512 msgstr ""
25513
25514 # type: textblock
25515 #: ../inspector/virt-inspector.pl:65
25516 msgid ""
25517 "Because virt-inspector needs direct access to guest images, it won't "
25518 "normally work over remote libvirt connections."
25519 msgstr ""
25520
25521 # type: textblock
25522 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88 ../tools/virt-list-filesystems.pl:60 ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
25523 msgid "Display brief help."
25524 msgstr ""
25525
25526 # type: =item
25527 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94 ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66 ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
25528 msgid "B<--version>"
25529 msgstr ""
25530
25531 # type: textblock
25532 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96 ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68 ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
25533 msgid "Display version number and exit."
25534 msgstr ""
25535
25536 # type: =item
25537 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102 ../tools/virt-list-filesystems.pl:74 ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
25538 msgid "B<--connect URI> | B<-c URI>"
25539 msgstr ""
25540
25541 # type: textblock
25542 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104 ../tools/virt-list-filesystems.pl:76 ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
25543 msgid ""
25544 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25545 "to the default libvirt hypervisor."
25546 msgstr ""
25547
25548 # type: textblock
25549 #: ../inspector/virt-inspector.pl:97
25550 msgid ""
25551 "Libvirt is only used if you specify a C<domname> on the command line.  If "
25552 "you specify guest block devices directly, then libvirt is not used at all."
25553 msgstr ""
25554
25555 # type: =item
25556 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117 ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523 ../tools/virt-list-filesystems.pl:86 ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
25557 msgid "B<--format> raw"
25558 msgstr ""
25559
25560 # type: textblock
25561 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119 ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88 ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
25562 msgid ""
25563 "Specify the format of disk images given on the command line.  If this is "
25564 "omitted then the format is autodetected from the content of the disk image."
25565 msgstr ""
25566
25567 # type: textblock
25568 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123 ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92 ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
25569 msgid ""
25570 "If disk images are requested from libvirt, then this program asks libvirt "
25571 "for this information.  In this case, the value of the format parameter is "
25572 "ignored."
25573 msgstr ""
25574
25575 # type: textblock
25576 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127 ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528 ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96 ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
25577 msgid ""
25578 "If working with untrusted raw-format guest disk images, you should ensure "
25579 "the format is always specified."
25580 msgstr ""
25581
25582 # type: =head1
25583 #: ../inspector/virt-inspector.pl:149
25584 msgid "XML FORMAT"
25585 msgstr ""
25586
25587 # type: textblock
25588 #: ../inspector/virt-inspector.pl:151
25589 msgid ""
25590 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
25591 "supplied with libguestfs.  This section is just an overview."
25592 msgstr ""
25593
25594 # type: textblock
25595 #: ../inspector/virt-inspector.pl:154
25596 msgid ""
25597 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
25598 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
25599 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
25600 "which is vanishingly rare in real world VMs."
25601 msgstr ""
25602
25603 # type: =head2
25604 #: ../inspector/virt-inspector.pl:159
25605 msgid "E<lt>operatingsystemE<gt>"
25606 msgstr ""
25607
25608 # type: textblock
25609 #: ../inspector/virt-inspector.pl:161
25610 msgid ""
25611 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
25612 "describe the operating system, its architecture, the descriptive \"product "
25613 "name\" string, the type of OS and so on, as in this example:"
25614 msgstr ""
25615
25616 # type: verbatim
25617 #: ../inspector/virt-inspector.pl:165
25618 #, no-wrap
25619 msgid ""
25620 " <operatingsystems>\n"
25621 "   <operatingsystem>\n"
25622 "     <root>/dev/sda2</root>\n"
25623 "     <name>windows</name>\n"
25624 "     <arch>i386</arch>\n"
25625 "     <distro>windows</distro>\n"
25626 "     <product_name>Windows 7 Enterprise</product_name>\n"
25627 "     <major_version>6</major_version>\n"
25628 "     <minor_version>1</minor_version>\n"
25629 "     <windows_systemroot>/Windows</windows_systemroot>\n"
25630 "\n"
25631 msgstr ""
25632
25633 # type: textblock
25634 #: ../inspector/virt-inspector.pl:176
25635 msgid ""
25636 "These fields are derived from the libguestfs inspection API, and you can "
25637 "find more details in L<guestfs(3)/INSPECTION>."
25638 msgstr ""
25639
25640 # type: textblock
25641 #: ../inspector/virt-inspector.pl:179
25642 msgid ""
25643 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
25644 "of view of libguestfs (block devices may have completely different names "
25645 "inside the VM itself)."
25646 msgstr ""
25647
25648 # type: =head2
25649 #: ../inspector/virt-inspector.pl:246
25650 msgid "E<lt>mountpointsE<gt>"
25651 msgstr ""
25652
25653 # type: textblock
25654 #: ../inspector/virt-inspector.pl:248
25655 msgid ""
25656 "Un*x-like guests typically have multiple filesystems which are mounted at "
25657 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
25658 "element which looks like this:"
25659 msgstr ""
25660
25661 # type: verbatim
25662 #: ../inspector/virt-inspector.pl:252
25663 #, no-wrap
25664 msgid ""
25665 " <operatingsystems>\n"
25666 "   <operatingsystem>\n"
25667 "     ...\n"
25668 "     <mountpoints>\n"
25669 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
25670 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
25671 "     </mountpoints>\n"
25672 "\n"
25673 msgstr ""
25674
25675 # type: textblock
25676 #: ../inspector/virt-inspector.pl:260
25677 msgid ""
25678 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
25679 "and may have completely different names inside the guest.  Only mountable "
25680 "filesystems appear in this list, not things like swap devices."
25681 msgstr ""
25682
25683 # type: =head2
25684 #: ../inspector/virt-inspector.pl:282
25685 msgid "E<lt>filesystemsE<gt>"
25686 msgstr ""
25687
25688 # type: textblock
25689 #: ../inspector/virt-inspector.pl:284
25690 msgid ""
25691 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
25692 "filesystems belonging to the guest, including swap and empty partitions.  "
25693 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
25694 "this OS or shared by this OS and other OSes)."
25695 msgstr ""
25696
25697 # type: textblock
25698 #: ../inspector/virt-inspector.pl:289
25699 msgid "You might see something like this:"
25700 msgstr ""
25701
25702 # type: verbatim
25703 #: ../inspector/virt-inspector.pl:291
25704 #, no-wrap
25705 msgid ""
25706 " <operatingsystems>\n"
25707 "   <operatingsystem>\n"
25708 "     ...\n"
25709 "     <filesystems>\n"
25710 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25711 "         <type>ext4</type>\n"
25712 "         <label>Fedora-13-x86_64</label>\n"
25713 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
25714 "       </filesystem>\n"
25715 "\n"
25716 msgstr ""
25717
25718 # type: textblock
25719 #: ../inspector/virt-inspector.pl:301
25720 msgid ""
25721 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
25722 "the label, and the UUID."
25723 msgstr ""
25724
25725 # type: =head2
25726 #: ../inspector/virt-inspector.pl:343
25727 msgid "E<lt>applicationsE<gt>"
25728 msgstr ""
25729
25730 # type: textblock
25731 #: ../inspector/virt-inspector.pl:345
25732 msgid ""
25733 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
25734 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
25735 "machine.  At the moment we are only able to list RPMs and Debian packages "
25736 "installed, but in future we will support other Linux distros and Windows."
25737 msgstr ""
25738
25739 # type: textblock
25740 #: ../inspector/virt-inspector.pl:351
25741 msgid ""
25742 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
25743 "Typical values would be C<rpm> and C<deb>."
25744 msgstr ""
25745
25746 # type: textblock
25747 #: ../inspector/virt-inspector.pl:354
25748 msgid ""
25749 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
25750 "Typical values include C<yum>, C<up2date> and C<apt>"
25751 msgstr ""
25752
25753 # type: textblock
25754 #: ../inspector/virt-inspector.pl:357
25755 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
25756 msgstr ""
25757
25758 # type: verbatim
25759 #: ../inspector/virt-inspector.pl:360
25760 #, no-wrap
25761 msgid ""
25762 " <operatingsystems>\n"
25763 "   <operatingsystem>\n"
25764 "     ...\n"
25765 "     <applications>\n"
25766 "       <application>\n"
25767 "         <name>coreutils</name>\n"
25768 "         <version>8.5</version>\n"
25769 "         <release>1</release>\n"
25770 "       </application>\n"
25771 "\n"
25772 msgstr ""
25773
25774 # type: textblock
25775 #: ../inspector/virt-inspector.pl:370
25776 msgid ""
25777 "The version and release fields may not be available for some types guests.  "
25778 "Other fields are possible, see "
25779 "L<guestfs(3)/guestfs_inspect_list_applications>."
25780 msgstr ""
25781
25782 # type: =head1
25783 #: ../inspector/virt-inspector.pl:426
25784 msgid "USING XPATH"
25785 msgstr ""
25786
25787 # type: textblock
25788 #: ../inspector/virt-inspector.pl:428
25789 msgid ""
25790 "You can use the XPath query language, and/or the xpath tool, in order to "
25791 "select parts of the XML."
25792 msgstr ""
25793
25794 # type: verbatim
25795 #: ../inspector/virt-inspector.pl:433
25796 #, no-wrap
25797 msgid ""
25798 " $ virt-inspector Guest | xpath //filesystems\n"
25799 " Found 1 nodes:\n"
25800 " -- NODE --\n"
25801 " <filesystems>\n"
25802 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25803 "        <type>ext4</type>\n"
25804 " [etc]\n"
25805 "\n"
25806 msgstr ""
25807
25808 # type: verbatim
25809 #: ../inspector/virt-inspector.pl:441
25810 #, no-wrap
25811 msgid ""
25812 " $ virt-inspector Guest | \\\n"
25813 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
25814 " Query didn't return a nodeset. Value: ext4\n"
25815 "\n"
25816 msgstr ""
25817
25818 # type: =head1
25819 #: ../inspector/virt-inspector.pl:445 ../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
25820 msgid "SHELL QUOTING"
25821 msgstr ""
25822
25823 # type: textblock
25824 #: ../inspector/virt-inspector.pl:447 ../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
25825 msgid ""
25826 "Libvirt guest names can contain arbitrary characters, some of which have "
25827 "meaning to the shell such as C<#> and space.  You may need to quote or "
25828 "escape these characters on the command line.  See the shell manual page "
25829 "L<sh(1)> for details."
25830 msgstr ""
25831
25832 # type: textblock
25833 #: ../inspector/virt-inspector.pl:454
25834 msgid ""
25835 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25836 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
25837 msgstr ""
25838
25839 # type: textblock
25840 #: ../inspector/virt-inspector.pl:468 ../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
25841 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25842 msgstr ""
25843
25844 # type: textblock
25845 #: ../inspector/virt-inspector.pl:472
25846 msgid "Matthew Booth L<mbooth@redhat.com>"
25847 msgstr ""
25848
25849 # type: textblock
25850 #: ../inspector/virt-inspector.pl:478 ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
25851 msgid "Copyright (C) 2010 Red Hat Inc."
25852 msgstr ""
25853
25854 # type: textblock
25855 #: ../tools/virt-edit.pl:34
25856 msgid "virt-edit - Edit a file in a virtual machine"
25857 msgstr ""
25858
25859 # type: verbatim
25860 #: ../tools/virt-edit.pl:38
25861 #, no-wrap
25862 msgid ""
25863 " virt-edit [--options] domname file\n"
25864 "\n"
25865 msgstr ""
25866
25867 # type: verbatim
25868 #: ../tools/virt-edit.pl:40
25869 #, no-wrap
25870 msgid ""
25871 " virt-edit [--options] disk.img [disk.img ...] file\n"
25872 "\n"
25873 msgstr ""
25874
25875 # type: verbatim
25876 #: ../tools/virt-edit.pl:42
25877 #, no-wrap
25878 msgid ""
25879 " virt-edit [domname|disk.img] file -e 'expr'\n"
25880 "\n"
25881 msgstr ""
25882
25883 # type: textblock
25884 #: ../tools/virt-edit.pl:46
25885 msgid ""
25886 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25887 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25888 "doing this, but doesn't catch all cases."
25889 msgstr ""
25890
25891 # type: textblock
25892 #: ../tools/virt-edit.pl:52
25893 msgid ""
25894 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25895 "the named virtual machine (or disk image)."
25896 msgstr ""
25897
25898 # type: textblock
25899 #: ../tools/virt-edit.pl:55
25900 msgid ""
25901 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25902 "you should look at the L<guestfish(1)> tool."
25903 msgstr ""
25904
25905 # type: textblock
25906 #: ../tools/virt-edit.pl:60
25907 msgid "Edit the named files interactively:"
25908 msgstr ""
25909
25910 # type: verbatim
25911 #: ../tools/virt-edit.pl:62
25912 #, no-wrap
25913 msgid ""
25914 " virt-edit mydomain /boot/grub/grub.conf\n"
25915 "\n"
25916 msgstr ""
25917
25918 # type: verbatim
25919 #: ../tools/virt-edit.pl:64
25920 #, no-wrap
25921 msgid ""
25922 " virt-edit mydomain /etc/passwd\n"
25923 "\n"
25924 msgstr ""
25925
25926 # type: textblock
25927 #: ../tools/virt-edit.pl:66
25928 msgid ""
25929 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25930 "below).  To change the init default level to 5:"
25931 msgstr ""
25932
25933 # type: verbatim
25934 #: ../tools/virt-edit.pl:70
25935 #, no-wrap
25936 msgid ""
25937 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25938 "\n"
25939 msgstr ""
25940
25941 # type: =item
25942 #: ../tools/virt-edit.pl:96
25943 msgid "B<--backup extension> | B<-b extension>"
25944 msgstr ""
25945
25946 # type: textblock
25947 #: ../tools/virt-edit.pl:98
25948 msgid ""
25949 "Create a backup of the original file I<in the guest disk image>.  The backup "
25950 "has the original filename with C<extension> added."
25951 msgstr ""
25952
25953 # type: textblock
25954 #: ../tools/virt-edit.pl:101
25955 msgid ""
25956 "Usually the first character of C<extension> would be a dot C<.> so you would "
25957 "write:"
25958 msgstr ""
25959
25960 # type: verbatim
25961 #: ../tools/virt-edit.pl:104
25962 #, no-wrap
25963 msgid ""
25964 " virt-edit -b .orig [etc]\n"
25965 "\n"
25966 msgstr ""
25967
25968 # type: textblock
25969 #: ../tools/virt-edit.pl:106
25970 msgid "By default, no backup file is made."
25971 msgstr ""
25972
25973 # type: textblock
25974 #: ../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
25975 msgid ""
25976 "If you specify guest block devices directly, then libvirt is not used at "
25977 "all."
25978 msgstr ""
25979
25980 # type: =item
25981 #: ../tools/virt-edit.pl:141
25982 msgid "B<--expr EXPR> | B<-e EXPR>"
25983 msgstr ""
25984
25985 # type: textblock
25986 #: ../tools/virt-edit.pl:143
25987 msgid ""
25988 "Instead of launching the external editor, non-interactively apply the Perl "
25989 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25990 "EDITING> below."
25991 msgstr ""
25992
25993 # type: textblock
25994 #: ../tools/virt-edit.pl:147
25995 msgid ""
25996 "Be careful to properly quote the expression to prevent it from being altered "
25997 "by the shell."
25998 msgstr ""
25999
26000 # type: =head1
26001 #: ../tools/virt-edit.pl:268
26002 msgid "NON-INTERACTIVE EDITING"
26003 msgstr ""
26004
26005 # type: textblock
26006 #: ../tools/virt-edit.pl:270
26007 msgid ""
26008 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26009 "administrator can interactively edit the file."
26010 msgstr ""
26011
26012 # type: textblock
26013 #: ../tools/virt-edit.pl:273
26014 msgid ""
26015 "There are two ways also to use C<virt-edit> from scripts in order to make "
26016 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26017 "like this, it's less error-prone to write scripts directly using the "
26018 "libguestfs API and Augeas for configuration file editing.)"
26019 msgstr ""
26020
26021 # type: textblock
26022 #: ../tools/virt-edit.pl:279
26023 msgid ""
26024 "The first method is to temporarily set C<$EDITOR> to any script or program "
26025 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26026 "update C<tmpfile> in place however it likes."
26027 msgstr ""
26028
26029 # type: textblock
26030 #: ../tools/virt-edit.pl:283
26031 msgid ""
26032 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26033 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26034 "instances of C<foo> with C<bar> in a file:"
26035 msgstr ""
26036
26037 # type: verbatim
26038 #: ../tools/virt-edit.pl:287
26039 #, no-wrap
26040 msgid ""
26041 " virt-edit domname filename -e 's/foo/bar/'\n"
26042 "\n"
26043 msgstr ""
26044
26045 # type: textblock
26046 #: ../tools/virt-edit.pl:289
26047 msgid ""
26048 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26049 "For example to delete root's password you could do:"
26050 msgstr ""
26051
26052 # type: verbatim
26053 #: ../tools/virt-edit.pl:292
26054 #, no-wrap
26055 msgid ""
26056 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26057 "\n"
26058 msgstr ""
26059
26060 # type: textblock
26061 #: ../tools/virt-edit.pl:294
26062 msgid ""
26063 "What really happens is that the snippet is evaluated as a Perl expression "
26064 "for each line of the file.  The line, including the final C<\\n>, is passed "
26065 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26066 msgstr ""
26067
26068 # type: textblock
26069 #: ../tools/virt-edit.pl:299
26070 msgid ""
26071 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26072 "C<apache> user account from the password file you can do:"
26073 msgstr ""
26074
26075 # type: verbatim
26076 #: ../tools/virt-edit.pl:302
26077 #, no-wrap
26078 msgid ""
26079 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26080 "\n"
26081 msgstr ""
26082
26083 # type: textblock
26084 #: ../tools/virt-edit.pl:304
26085 msgid ""
26086 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26087 "the end of the file is rather difficult this way since there is no concept "
26088 "of \"last line of the file\" - your expression just doesn't get called "
26089 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26090 "want to do this."
26091 msgstr ""
26092
26093 # type: textblock
26094 #: ../tools/virt-edit.pl:310
26095 msgid ""
26096 "The variable C<$lineno> contains the current line number.  As is "
26097 "traditional, the first line in the file is number C<1>."
26098 msgstr ""
26099
26100 # type: textblock
26101 #: ../tools/virt-edit.pl:313
26102 msgid ""
26103 "The return value from the expression is ignored, but the expression may call "
26104 "C<die> in order to abort the whole program, leaving the original file "
26105 "untouched."
26106 msgstr ""
26107
26108 # type: textblock
26109 #: ../tools/virt-edit.pl:317
26110 msgid ""
26111 "Remember when matching the end of a line that C<$_> may contain the final "
26112 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26113 "newline then neither of these.  Thus to match or substitute some text at the "
26114 "end of a line, use this regular expression:"
26115 msgstr ""
26116
26117 # type: verbatim
26118 #: ../tools/virt-edit.pl:322
26119 #, no-wrap
26120 msgid ""
26121 " /some text(\\r?\\n)?$/\n"
26122 "\n"
26123 msgstr ""
26124
26125 # type: textblock
26126 #: ../tools/virt-edit.pl:324
26127 msgid ""
26128 "Alternately, use the perl C<chomp> function, being careful not to chomp "
26129 "C<$_> itself (since that would remove all newlines from the file):"
26130 msgstr ""
26131
26132 # type: verbatim
26133 #: ../tools/virt-edit.pl:328
26134 #, no-wrap
26135 msgid ""
26136 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26137 "\n"
26138 msgstr ""
26139
26140 # type: =item
26141 #: ../tools/virt-edit.pl:334
26142 msgid "C<EDITOR>"
26143 msgstr ""
26144
26145 # type: textblock
26146 #: ../tools/virt-edit.pl:336
26147 msgid ""
26148 "If set, this string is used as the editor.  It may contain arguments, "
26149 "eg. C<\"emacs -nw\">"
26150 msgstr ""
26151
26152 # type: textblock
26153 #: ../tools/virt-edit.pl:339
26154 msgid "If not set, C<vi> is used."
26155 msgstr ""
26156
26157 # type: textblock
26158 #: ../tools/virt-edit.pl:352
26159 msgid ""
26160 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26161 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
26162 "L<perl(1)>, L<perlre(1)>."
26163 msgstr ""
26164
26165 # type: =head1
26166 #: ../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
26167 msgid "AUTHOR"
26168 msgstr ""
26169
26170 # type: textblock
26171 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655 ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
26172 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26173 msgstr ""
26174
26175 # type: textblock
26176 #: ../tools/virt-win-reg.pl:37
26177 msgid ""
26178 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
26179 "guest"
26180 msgstr ""
26181
26182 # type: verbatim
26183 #: ../tools/virt-win-reg.pl:41
26184 #, no-wrap
26185 msgid ""
26186 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26187 "\n"
26188 msgstr ""
26189
26190 # type: verbatim
26191 #: ../tools/virt-win-reg.pl:43
26192 #, no-wrap
26193 msgid ""
26194 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26195 "\n"
26196 msgstr ""
26197
26198 # type: verbatim
26199 #: ../tools/virt-win-reg.pl:45
26200 #, no-wrap
26201 msgid ""
26202 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26203 "\n"
26204 msgstr ""
26205
26206 # type: verbatim
26207 #: ../tools/virt-win-reg.pl:47
26208 #, no-wrap
26209 msgid ""
26210 " virt-win-reg --merge domname [input.reg ...]\n"
26211 "\n"
26212 msgstr ""
26213
26214 # type: verbatim
26215 #: ../tools/virt-win-reg.pl:49
26216 #, no-wrap
26217 msgid ""
26218 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26219 "\n"
26220 msgstr ""
26221
26222 # type: textblock
26223 #: ../tools/virt-win-reg.pl:53
26224 msgid ""
26225 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26226 "virtual machines.  If you do this, you I<will> get irreversible disk "
26227 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26228 "but doesn't catch all cases."
26229 msgstr ""
26230
26231 # type: textblock
26232 #: ../tools/virt-win-reg.pl:58
26233 msgid ""
26234 "Modifying the Windows Registry is an inherently risky operation.  The format "
26235 "is deliberately obscure and undocumented, and Registry changes can leave the "
26236 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26237 "you have a reliable backup first."
26238 msgstr ""
26239
26240 # type: textblock
26241 #: ../tools/virt-win-reg.pl:65
26242 msgid ""
26243 "This program can export and merge Windows Registry entries from a Windows "
26244 "guest."
26245 msgstr ""
26246
26247 # type: textblock
26248 #: ../tools/virt-win-reg.pl:68
26249 msgid ""
26250 "The first parameter is the libvirt guest name or the raw disk image of a "
26251 "Windows guest."
26252 msgstr ""
26253
26254 # type: textblock
26255 #: ../tools/virt-win-reg.pl:71
26256 msgid ""
26257 "If C<--merge> is I<not> specified, then the chosen registry key is "
26258 "displayed/exported (recursively).  For example:"
26259 msgstr ""
26260
26261 # type: verbatim
26262 #: ../tools/virt-win-reg.pl:74
26263 #, no-wrap
26264 msgid ""
26265 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26266 "\n"
26267 msgstr ""
26268
26269 # type: textblock
26270 #: ../tools/virt-win-reg.pl:76
26271 msgid "You can also display single values from within registry keys, for example:"
26272 msgstr ""
26273
26274 # type: verbatim
26275 #: ../tools/virt-win-reg.pl:79
26276 #, no-wrap
26277 msgid ""
26278 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26279 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26280 " Windows 7 Enterprise\n"
26281 "\n"
26282 msgstr ""
26283
26284 # type: textblock
26285 #: ../tools/virt-win-reg.pl:83
26286 msgid ""
26287 "With C<--merge>, you can merge a textual regedit file into the Windows "
26288 "Registry:"
26289 msgstr ""
26290
26291 # type: verbatim
26292 #: ../tools/virt-win-reg.pl:86
26293 #, no-wrap
26294 msgid ""
26295 " $ virt-win-reg --merge Windows7 changes.reg\n"
26296 "\n"
26297 msgstr ""
26298
26299 # type: =head2
26300 #: ../tools/virt-win-reg.pl:88
26301 msgid "SUPPORTED SYSTEMS"
26302 msgstr ""
26303
26304 # type: textblock
26305 #: ../tools/virt-win-reg.pl:90
26306 msgid ""
26307 "The program currently supports Windows NT-derived guests starting with "
26308 "Windows XP through to at least Windows 7."
26309 msgstr ""
26310
26311 # type: textblock
26312 #: ../tools/virt-win-reg.pl:93
26313 msgid ""
26314 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
26315 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
26316 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
26317 msgstr ""
26318
26319 # type: textblock
26320 #: ../tools/virt-win-reg.pl:97
26321 msgid ""
26322 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26323 "C<HKEY_USERS>."
26324 msgstr ""
26325
26326 # type: textblock
26327 #: ../tools/virt-win-reg.pl:100
26328 msgid ""
26329 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26330 "time."
26331 msgstr ""
26332
26333 # type: =head2
26334 #: ../tools/virt-win-reg.pl:103
26335 msgid "NOTE"
26336 msgstr ""
26337
26338 # type: textblock
26339 #: ../tools/virt-win-reg.pl:105
26340 msgid ""
26341 "This program is only meant for simple access to the registry.  If you want "
26342 "to do complicated things with the registry, we suggest you download the "
26343 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26344 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26345 "L<hivexregedit(1)>."
26346 msgstr ""
26347
26348 # type: =head2
26349 #: ../tools/virt-win-reg.pl:111
26350 msgid "ENCODING"
26351 msgstr ""
26352
26353 # type: textblock
26354 #: ../tools/virt-win-reg.pl:113
26355 msgid ""
26356 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26357 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
26358 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
26359 "with Windows-style line endings, you may need to reencode the whole file "
26360 "before or after processing."
26361 msgstr ""
26362
26363 # type: textblock
26364 #: ../tools/virt-win-reg.pl:119
26365 msgid ""
26366 "To reencode a file from Windows format to Linux (before processing it with "
26367 "the C<--merge> option), you would do something like this:"
26368 msgstr ""
26369
26370 # type: verbatim
26371 #: ../tools/virt-win-reg.pl:122
26372 #, no-wrap
26373 msgid ""
26374 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26375 "\n"
26376 msgstr ""
26377
26378 # type: textblock
26379 #: ../tools/virt-win-reg.pl:124
26380 msgid ""
26381 "To go in the opposite direction, after exporting and before sending the file "
26382 "to a Windows user, do something like this:"
26383 msgstr ""
26384
26385 # type: verbatim
26386 #: ../tools/virt-win-reg.pl:127
26387 #, no-wrap
26388 msgid ""
26389 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26390 "\n"
26391 msgstr ""
26392
26393 # type: textblock
26394 #: ../tools/virt-win-reg.pl:129
26395 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26396 msgstr ""
26397
26398 # type: textblock
26399 #: ../tools/virt-win-reg.pl:131
26400 msgid ""
26401 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26402 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
26403 "Windows-style (CRLF) line endings, like this:"
26404 msgstr ""
26405
26406 # type: verbatim
26407 #: ../tools/virt-win-reg.pl:135
26408 #, no-wrap
26409 msgid ""
26410 " $ file software.reg\n"
26411 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26412 " with CRLF line terminators\n"
26413 "\n"
26414 msgstr ""
26415
26416 # type: textblock
26417 #: ../tools/virt-win-reg.pl:139
26418 msgid "This file would need conversion before you could C<--merge> it."
26419 msgstr ""
26420
26421 # type: textblock
26422 #: ../tools/virt-win-reg.pl:143
26423 msgid ""
26424 "Be careful when passing parameters containing C<\\> (backslash) in the "
26425 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26426 "(but not both) to protect them from the shell."
26427 msgstr ""
26428
26429 # type: textblock
26430 #: ../tools/virt-win-reg.pl:147
26431 msgid "Paths and value names are case-insensitive."
26432 msgstr ""
26433
26434 # type: =head2
26435 #: ../tools/virt-win-reg.pl:149
26436 msgid "CurrentControlSet etc."
26437 msgstr ""
26438
26439 # type: textblock
26440 #: ../tools/virt-win-reg.pl:151
26441 msgid ""
26442 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26443 "Registry at the level of the hive file, and therefore you cannot modify "
26444 "these."
26445 msgstr ""
26446
26447 # type: textblock
26448 #: ../tools/virt-win-reg.pl:155
26449 msgid ""
26450 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26451 "circumstances it might refer to another control set.  The way to find out is "
26452 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26453 msgstr ""
26454
26455 # type: verbatim
26456 #: ../tools/virt-win-reg.pl:159
26457 #, no-wrap
26458 msgid ""
26459 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26460 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26461 " \"Current\"=dword:00000001\n"
26462 " \"Default\"=dword:00000001\n"
26463 " \"Failed\"=dword:00000000\n"
26464 " \"LastKnownGood\"=dword:00000002\n"
26465 "\n"
26466 msgstr ""
26467
26468 # type: textblock
26469 #: ../tools/virt-win-reg.pl:166
26470 msgid "\"Current\" is the one which Windows will choose when it boots."
26471 msgstr ""
26472
26473 # type: textblock
26474 #: ../tools/virt-win-reg.pl:168
26475 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
26476 msgstr ""
26477
26478 # type: =item
26479 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26480 msgid "B<--debug>"
26481 msgstr ""
26482
26483 # type: textblock
26484 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
26485 msgid "Enable debugging messages."
26486 msgstr ""
26487
26488 # type: =item
26489 #: ../tools/virt-win-reg.pl:232
26490 msgid "B<--merge>"
26491 msgstr ""
26492
26493 # type: textblock
26494 #: ../tools/virt-win-reg.pl:234
26495 msgid ""
26496 "In merge mode, this merges a textual regedit file into the Windows Registry "
26497 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26498 "displays or exports Registry entries instead."
26499 msgstr ""
26500
26501 # type: textblock
26502 #: ../tools/virt-win-reg.pl:238
26503 msgid ""
26504 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26505 "result in disk corruption.  However exporting (without this flag)  is always "
26506 "safe."
26507 msgstr ""
26508
26509 # type: =item
26510 #: ../tools/virt-win-reg.pl:246
26511 msgid "B<--encoding> UTF-16LE|ASCII"
26512 msgstr ""
26513
26514 # type: textblock
26515 #: ../tools/virt-win-reg.pl:248
26516 msgid ""
26517 "When merging (only), you may need to specify the encoding for strings to be "
26518 "used in the hive file.  This is explained in detail in "
26519 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
26520 msgstr ""
26521
26522 # type: textblock
26523 #: ../tools/virt-win-reg.pl:252
26524 msgid ""
26525 "The default is to use UTF-16LE, which should work with recent versions of "
26526 "Windows."
26527 msgstr ""
26528
26529 # type: textblock
26530 #: ../tools/virt-win-reg.pl:486
26531 msgid ""
26532 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
26533 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26534 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
26535 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26536 msgstr ""
26537
26538 # type: textblock
26539 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26540 msgid ""
26541 "When reporting bugs, please enable debugging and capture the I<complete> "
26542 "output:"
26543 msgstr ""
26544
26545 # type: verbatim
26546 #: ../tools/virt-win-reg.pl:504
26547 #, no-wrap
26548 msgid ""
26549 " export LIBGUESTFS_DEBUG=1\n"
26550 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26551 "\n"
26552 msgstr ""
26553
26554 # type: textblock
26555 #: ../tools/virt-win-reg.pl:507
26556 msgid ""
26557 "Attach /tmp/virt-win-reg.log to a new bug report at "
26558 "L<https://bugzilla.redhat.com/>"
26559 msgstr ""
26560
26561 # type: textblock
26562 #: ../tools/virt-df.pl:36
26563 msgid "virt-df - Display free space on virtual filesystems"
26564 msgstr ""
26565
26566 # type: verbatim
26567 #: ../tools/virt-df.pl:40
26568 #, no-wrap
26569 msgid ""
26570 " virt-df [--options]\n"
26571 "\n"
26572 msgstr ""
26573
26574 # type: verbatim
26575 #: ../tools/virt-df.pl:42
26576 #, no-wrap
26577 msgid ""
26578 " virt-df [--options] domname\n"
26579 "\n"
26580 msgstr ""
26581
26582 # type: verbatim
26583 #: ../tools/virt-df.pl:44
26584 #, no-wrap
26585 msgid ""
26586 " virt-df [--options] disk.img [disk.img ...]\n"
26587 "\n"
26588 msgstr ""
26589
26590 # type: textblock
26591 #: ../tools/virt-df.pl:48
26592 msgid ""
26593 "C<virt-df> is a command line tool to display free space on virtual machine "
26594 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26595 "space allocated to a virtual machine, but can look inside the virtual "
26596 "machine to see how much space is really being used."
26597 msgstr ""
26598
26599 # type: textblock
26600 #: ../tools/virt-df.pl:53
26601 msgid ""
26602 "It is like the L<df(1)> command, but for virtual machines, except that it "
26603 "also works for Windows virtual machines."
26604 msgstr ""
26605
26606 # type: textblock
26607 #: ../tools/virt-df.pl:56
26608 msgid ""
26609 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26610 "of all active and inactive guests, and performs a C<df>-type operation on "
26611 "each one in turn, printing out the results."
26612 msgstr ""
26613
26614 # type: textblock
26615 #: ../tools/virt-df.pl:60
26616 msgid ""
26617 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26618 "either the single named libvirt domain, or on the disk image(s) listed on "
26619 "the command line (which must all belong to a single VM).  In this mode (with "
26620 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26621 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26622 msgstr ""
26623
26624 # type: textblock
26625 #: ../tools/virt-df.pl:67
26626 msgid ""
26627 "Use the C<--csv> option to get a format which can be easily parsed by other "
26628 "programs.  Other options are mostly similar to standard C<df> options.  See "
26629 "below for the complete list."
26630 msgstr ""
26631
26632 # type: =item
26633 #: ../tools/virt-df.pl:107
26634 msgid "B<--csv>"
26635 msgstr ""
26636
26637 # type: textblock
26638 #: ../tools/virt-df.pl:109
26639 msgid ""
26640 "Write out the results in CSV format (comma-separated values).  This format "
26641 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26642 "ABOUT CSV FORMAT> below."
26643 msgstr ""
26644
26645 # type: =item
26646 #: ../tools/virt-df.pl:134
26647 msgid "B<--human-readable> | B<-h>"
26648 msgstr ""
26649
26650 # type: textblock
26651 #: ../tools/virt-df.pl:136
26652 msgid "Print sizes in human-readable format."
26653 msgstr ""
26654
26655 # type: textblock
26656 #: ../tools/virt-df.pl:138
26657 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26658 msgstr ""
26659
26660 # type: =item
26661 #: ../tools/virt-df.pl:144
26662 msgid "B<--inodes> | B<-i>"
26663 msgstr ""
26664
26665 # type: textblock
26666 #: ../tools/virt-df.pl:146
26667 msgid "Print inodes instead of blocks."
26668 msgstr ""
26669
26670 # type: =item
26671 #: ../tools/virt-df.pl:152
26672 msgid "B<--one-per-guest>"
26673 msgstr ""
26674
26675 # type: textblock
26676 #: ../tools/virt-df.pl:154
26677 msgid ""
26678 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
26679 "disks from several guests to a single libguestfs appliance."
26680 msgstr ""
26681
26682 # type: textblock
26683 #: ../tools/virt-df.pl:157
26684 msgid "You might use this option in the following circumstances:"
26685 msgstr ""
26686
26687 # type: textblock
26688 #: ../tools/virt-df.pl:163
26689 msgid ""
26690 "If you think an untrusted guest might actively try to exploit the libguestfs "
26691 "appliance kernel, then this prevents one guest from interfering with the "
26692 "stats printed for another guest."
26693 msgstr ""
26694
26695 # type: textblock
26696 #: ../tools/virt-df.pl:169
26697 msgid ""
26698 "If the kernel has a bug which stops it from accessing a filesystem in one "
26699 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
26700 "and report stats for further guests."
26701 msgstr ""
26702
26703 # type: =item
26704 #: ../tools/virt-df.pl:180
26705 msgid "B<--uuid>"
26706 msgstr ""
26707
26708 # type: textblock
26709 #: ../tools/virt-df.pl:182
26710 msgid ""
26711 "Print UUIDs instead of names.  This is useful for following a guest even "
26712 "when the guest is migrated or renamed, or when two guests happen to have the "
26713 "same name."
26714 msgstr ""
26715
26716 # type: textblock
26717 #: ../tools/virt-df.pl:186
26718 msgid ""
26719 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
26720 "images, we still print the disk image name even when this option is "
26721 "specified."
26722 msgstr ""
26723
26724 # type: =head1
26725 #: ../tools/virt-df.pl:609
26726 msgid "NOTE ABOUT CSV FORMAT"
26727 msgstr ""
26728
26729 # type: textblock
26730 #: ../tools/virt-df.pl:611
26731 msgid ""
26732 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
26733 "should be easy to parse, but it is definitely not easy to parse."
26734 msgstr ""
26735
26736 # type: textblock
26737 #: ../tools/virt-df.pl:614
26738 msgid ""
26739 "Myth: Just split fields at commas.  Reality: This does I<not> work "
26740 "reliably.  This example has two columns:"
26741 msgstr ""
26742
26743 # type: verbatim
26744 #: ../tools/virt-df.pl:617
26745 #, no-wrap
26746 msgid ""
26747 " \"foo,bar\",baz\n"
26748 "\n"
26749 msgstr ""
26750
26751 # type: textblock
26752 #: ../tools/virt-df.pl:619
26753 msgid ""
26754 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
26755 "reliably.  This example has one row:"
26756 msgstr ""
26757
26758 # type: verbatim
26759 #: ../tools/virt-df.pl:622
26760 #, no-wrap
26761 msgid ""
26762 " \"foo\n"
26763 " bar\",baz\n"
26764 "\n"
26765 msgstr ""
26766
26767 # type: textblock
26768 #: ../tools/virt-df.pl:625
26769 msgid ""
26770 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
26771 "packaged in major Linux distributions)."
26772 msgstr ""
26773
26774 # type: textblock
26775 #: ../tools/virt-df.pl:628
26776 msgid ""
26777 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
26778 "or Python's built-in csv library)."
26779 msgstr ""
26780
26781 # type: textblock
26782 #: ../tools/virt-df.pl:631
26783 msgid "Most spreadsheets and databases can import CSV directly."
26784 msgstr ""
26785
26786 # type: textblock
26787 #: ../tools/virt-df.pl:642
26788 msgid ""
26789 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26790 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26791 msgstr ""
26792
26793 # type: textblock
26794 #: ../tools/virt-ls.pl:34
26795 msgid "virt-ls - List files in a virtual machine"
26796 msgstr ""
26797
26798 # type: verbatim
26799 #: ../tools/virt-ls.pl:38
26800 #, no-wrap
26801 msgid ""
26802 " virt-ls [--options] domname directory\n"
26803 "\n"
26804 msgstr ""
26805
26806 # type: verbatim
26807 #: ../tools/virt-ls.pl:40
26808 #, no-wrap
26809 msgid ""
26810 " virt-ls [--options] disk.img [disk.img ...] directory\n"
26811 "\n"
26812 msgstr ""
26813
26814 # type: textblock
26815 #: ../tools/virt-ls.pl:44
26816 msgid ""
26817 "C<virt-ls> is a command line tool to list the names of files in a directory "
26818 "inside a virtual machine or disk image."
26819 msgstr ""
26820
26821 # type: textblock
26822 #: ../tools/virt-ls.pl:47
26823 msgid ""
26824 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
26825 "For more complex cases you should look at the L<guestfish(1)> tool."
26826 msgstr ""
26827
26828 # type: textblock
26829 #: ../tools/virt-ls.pl:51
26830 msgid ""
26831 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
26832 "simple listing is like the ordinary L<ls(1)> command:"
26833 msgstr ""
26834
26835 # type: verbatim
26836 #: ../tools/virt-ls.pl:54
26837 #, no-wrap
26838 msgid ""
26839 " $ virt-ls myguest /\n"
26840 " bin\n"
26841 " boot\n"
26842 " [etc.]\n"
26843 "\n"
26844 msgstr ""
26845
26846 # type: textblock
26847 #: ../tools/virt-ls.pl:59
26848 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
26849 msgstr ""
26850
26851 # type: verbatim
26852 #: ../tools/virt-ls.pl:61
26853 #, no-wrap
26854 msgid ""
26855 " $ virt-ls -l myguest /\n"
26856 " total 204\n"
26857 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
26858 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
26859 " [etc.]\n"
26860 "\n"
26861 msgstr ""
26862
26863 # type: textblock
26864 #: ../tools/virt-ls.pl:67
26865 msgid ""
26866 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
26867 "and directories recursively:"
26868 msgstr ""
26869
26870 # type: verbatim
26871 #: ../tools/virt-ls.pl:70
26872 #, no-wrap
26873 msgid ""
26874 " $ virt-ls -R myguest /tmp\n"
26875 " foo\n"
26876 " foo/bar\n"
26877 " [etc.]\n"
26878 "\n"
26879 msgstr ""
26880
26881 # type: textblock
26882 #: ../tools/virt-ls.pl:75
26883 msgid ""
26884 "You I<cannot> combine these options.  To do more complicated things, use "
26885 "L<guestfish(1)>."
26886 msgstr ""
26887
26888 # type: =item
26889 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103 ../tools/virt-list-partitions.pl:112
26890 msgid "B<-l> | B<--long>"
26891 msgstr ""
26892
26893 # type: =item
26894 #: ../tools/virt-ls.pl:133
26895 msgid "B<-R> | B<--recursive>"
26896 msgstr ""
26897
26898 # type: textblock
26899 #: ../tools/virt-ls.pl:135
26900 msgid ""
26901 "Select the mode.  With neither of these options, C<virt-ls> produces a "
26902 "simple, flat list of the files in the named directory."
26903 msgstr ""
26904
26905 # type: textblock
26906 #: ../tools/virt-ls.pl:138
26907 msgid ""
26908 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26909 "like the plain C<ls -l> command)."
26910 msgstr ""
26911
26912 # type: textblock
26913 #: ../tools/virt-ls.pl:141
26914 msgid ""
26915 "C<virt-ls -R> produces a recursive list of files starting at the named "
26916 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26917 "details."
26918 msgstr ""
26919
26920 # type: textblock
26921 #: ../tools/virt-ls.pl:145
26922 msgid "You cannot combine these options."
26923 msgstr ""
26924
26925 # type: textblock
26926 #: ../tools/virt-ls.pl:234
26927 msgid ""
26928 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
26929 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
26930 "L<http://libguestfs.org/>."
26931 msgstr ""
26932
26933 # type: textblock
26934 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:298
26935 msgid "Copyright (C) 2009 Red Hat Inc."
26936 msgstr ""
26937
26938 # type: textblock
26939 #: ../tools/virt-resize.pl:42
26940 msgid "virt-resize - Resize a virtual machine disk"
26941 msgstr ""
26942
26943 # type: verbatim
26944 #: ../tools/virt-resize.pl:46
26945 #, no-wrap
26946 msgid ""
26947 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26948 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26949 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26950 "\n"
26951 msgstr ""
26952
26953 # type: textblock
26954 #: ../tools/virt-resize.pl:52
26955 msgid ""
26956 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26957 "larger or smaller overall, and resizing or deleting any partitions contained "
26958 "within."
26959 msgstr ""
26960
26961 # type: textblock
26962 #: ../tools/virt-resize.pl:56
26963 msgid ""
26964 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26965 "not> be used on live virtual machines - for consistent results, shut the "
26966 "virtual machine down before resizing it."
26967 msgstr ""
26968
26969 # type: textblock
26970 #: ../tools/virt-resize.pl:60
26971 msgid ""
26972 "If you are not familiar with the associated tools: "
26973 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
26974 "we recommend you go and read those manual pages first."
26975 msgstr ""
26976
26977 # type: textblock
26978 #: ../tools/virt-resize.pl:68
26979 msgid ""
26980 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26981 "fill the extra 5GB of space."
26982 msgstr ""
26983
26984 # type: verbatim
26985 #: ../tools/virt-resize.pl:71
26986 #, no-wrap
26987 msgid ""
26988 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26989 " virt-list-partitions -lht olddisk\n"
26990 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26991 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26992 "\n"
26993 msgstr ""
26994
26995 # type: textblock
26996 #: ../tools/virt-resize.pl:76
26997 msgid ""
26998 "As above, but make the /boot partition 200MB bigger, while giving the "
26999 "remaining space to /dev/sda2:"
27000 msgstr ""
27001
27002 # type: verbatim
27003 #: ../tools/virt-resize.pl:79
27004 #, no-wrap
27005 msgid ""
27006 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27007 "\n"
27008 msgstr ""
27009
27010 # type: textblock
27011 #: ../tools/virt-resize.pl:81
27012 msgid "As above, but the output format will be uncompressed qcow2:"
27013 msgstr ""
27014
27015 # type: verbatim
27016 #: ../tools/virt-resize.pl:83
27017 #, no-wrap
27018 msgid ""
27019 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27020 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27021 "\n"
27022 msgstr ""
27023
27024 # type: =head1
27025 #: ../tools/virt-resize.pl:86
27026 msgid "DETAILED USAGE"
27027 msgstr ""
27028
27029 # type: =head2
27030 #: ../tools/virt-resize.pl:88
27031 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27032 msgstr ""
27033
27034 # type: =item
27035 #: ../tools/virt-resize.pl:92
27036 msgid "1. Shut down the virtual machine"
27037 msgstr ""
27038
27039 # type: =item
27040 #: ../tools/virt-resize.pl:94
27041 msgid "2. Locate input disk image"
27042 msgstr ""
27043
27044 # type: textblock
27045 #: ../tools/virt-resize.pl:96
27046 msgid ""
27047 "Locate the input disk image (ie. the file or device on the host containing "
27048 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27049 "dumpxml> like this to find the disk image name:"
27050 msgstr ""
27051
27052 # type: verbatim
27053 #: ../tools/virt-resize.pl:100
27054 #, no-wrap
27055 msgid ""
27056 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27057 " Found 1 nodes:\n"
27058 " -- NODE --\n"
27059 " <source dev=\"/dev/vg/lv_guest\" />\n"
27060 "\n"
27061 msgstr ""
27062
27063 # type: =item
27064 #: ../tools/virt-resize.pl:105
27065 msgid "3. Look at current sizing"
27066 msgstr ""
27067
27068 # type: textblock
27069 #: ../tools/virt-resize.pl:107
27070 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
27071 msgstr ""
27072
27073 # type: verbatim
27074 #: ../tools/virt-resize.pl:110
27075 #, no-wrap
27076 msgid ""
27077 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
27078 " /dev/sda1 ext3 101.9M\n"
27079 " /dev/sda2 pv 7.9G\n"
27080 " /dev/sda device 8.0G\n"
27081 "\n"
27082 msgstr ""
27083
27084 # type: textblock
27085 #: ../tools/virt-resize.pl:115
27086 msgid ""
27087 "(This example is a virtual machine with an 8 GB disk which we would like to "
27088 "expand up to 10 GB)."
27089 msgstr ""
27090
27091 # type: =item
27092 #: ../tools/virt-resize.pl:118
27093 msgid "4. Create output disk"
27094 msgstr ""
27095
27096 # type: textblock
27097 #: ../tools/virt-resize.pl:120
27098 msgid ""
27099 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27100 "to store the resized output disk."
27101 msgstr ""
27102
27103 # type: textblock
27104 #: ../tools/virt-resize.pl:123
27105 msgid "To store the resized disk image in a file, create a file of a suitable size:"
27106 msgstr ""
27107
27108 # type: verbatim
27109 #: ../tools/virt-resize.pl:126
27110 #, no-wrap
27111 msgid ""
27112 " # rm -f outdisk\n"
27113 " # truncate -s 10G outdisk\n"
27114 "\n"
27115 msgstr ""
27116
27117 # type: textblock
27118 #: ../tools/virt-resize.pl:129
27119 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27120 msgstr ""
27121
27122 # type: verbatim
27123 #: ../tools/virt-resize.pl:131
27124 #, no-wrap
27125 msgid ""
27126 " # lvcreate -L 10G -n lv_name vg_name\n"
27127 "\n"
27128 msgstr ""
27129
27130 # type: textblock
27131 #: ../tools/virt-resize.pl:133
27132 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27133 msgstr ""
27134
27135 # type: verbatim
27136 #: ../tools/virt-resize.pl:135
27137 #, no-wrap
27138 msgid ""
27139 " # virsh pool-list\n"
27140 " # virsh vol-create-as poolname newvol 10G\n"
27141 "\n"
27142 msgstr ""
27143
27144 # type: =item
27145 #: ../tools/virt-resize.pl:138
27146 msgid "5. Resize"
27147 msgstr ""
27148
27149 # type: textblock
27150 #: ../tools/virt-resize.pl:140
27151 msgid ""
27152 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27153 "file) and the output disk.  The output disk is the one created in the "
27154 "previous step."
27155 msgstr ""
27156
27157 # type: verbatim
27158 #: ../tools/virt-resize.pl:144
27159 #, no-wrap
27160 msgid ""
27161 " # virt-resize indisk outdisk\n"
27162 "\n"
27163 msgstr ""
27164
27165 # type: textblock
27166 #: ../tools/virt-resize.pl:146
27167 msgid ""
27168 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27169 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27170 "larger, then an extra, empty partition is created at the end of the disk "
27171 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27172 "error."
27173 msgstr ""
27174
27175 # type: textblock
27176 #: ../tools/virt-resize.pl:152
27177 msgid ""
27178 "More realistically you'd want to expand existing partitions in the disk "
27179 "image by passing extra options (for the full list see the L</OPTIONS> "
27180 "section below)."
27181 msgstr ""
27182
27183 # type: textblock
27184 #: ../tools/virt-resize.pl:156
27185 msgid ""
27186 "L</--expand> is the most useful option.  It expands the named partition "
27187 "within the disk to fill any extra space:"
27188 msgstr ""
27189
27190 # type: verbatim
27191 #: ../tools/virt-resize.pl:159
27192 #, no-wrap
27193 msgid ""
27194 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27195 "\n"
27196 msgstr ""
27197
27198 # type: textblock
27199 #: ../tools/virt-resize.pl:161
27200 msgid ""
27201 "(In this case, an extra partition is I<not> created at the end of the disk, "
27202 "because there will be no unused space)."
27203 msgstr ""
27204
27205 # type: textblock
27206 #: ../tools/virt-resize.pl:164
27207 msgid ""
27208 "L</--resize> is the other commonly used option.  The following would "
27209 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27210 "rest of the available space:"
27211 msgstr ""
27212
27213 # type: verbatim
27214 #: ../tools/virt-resize.pl:168
27215 #, no-wrap
27216 msgid ""
27217 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27218 "     indisk outdisk\n"
27219 "\n"
27220 msgstr ""
27221
27222 # type: textblock
27223 #: ../tools/virt-resize.pl:171
27224 msgid ""
27225 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27226 "if virt-resize knows how, it will resize the contents, the equivalent of "
27227 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
27228 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
27229 "filesystems, so you would have to online resize them after booting the "
27230 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
27231 "just resizes the PV itself and leaves the user to resize any LVs inside that "
27232 "PV as desired."
27233 msgstr ""
27234
27235 # type: textblock
27236 #: ../tools/virt-resize.pl:180
27237 msgid "Other options are covered below."
27238 msgstr ""
27239
27240 # type: =item
27241 #: ../tools/virt-resize.pl:182
27242 msgid "6. Test"
27243 msgstr ""
27244
27245 # type: textblock
27246 #: ../tools/virt-resize.pl:184
27247 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27248 msgstr ""
27249
27250 # type: textblock
27251 #: ../tools/virt-resize.pl:186
27252 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27253 msgstr ""
27254
27255 # type: verbatim
27256 #: ../tools/virt-resize.pl:188
27257 #, no-wrap
27258 msgid ""
27259 " # virsh edit guestname\n"
27260 "\n"
27261 msgstr ""
27262
27263 # type: textblock
27264 #: ../tools/virt-resize.pl:190
27265 msgid ""
27266 "Change E<lt>source ...E<gt>, see "
27267 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
27268 msgstr ""
27269
27270 # type: textblock
27271 #: ../tools/virt-resize.pl:193
27272 msgid "Then start up the domain with the new, resized disk:"
27273 msgstr ""
27274
27275 # type: verbatim
27276 #: ../tools/virt-resize.pl:195
27277 #, no-wrap
27278 msgid ""
27279 " # virsh start guestname\n"
27280 "\n"
27281 msgstr ""
27282
27283 # type: textblock
27284 #: ../tools/virt-resize.pl:197
27285 msgid ""
27286 "and check that it still works.  See also the L</NOTES> section below for "
27287 "additional information."
27288 msgstr ""
27289
27290 # type: =item
27291 #: ../tools/virt-resize.pl:200
27292 msgid "7. Resize LVs etc inside the guest"
27293 msgstr ""
27294
27295 # type: textblock
27296 #: ../tools/virt-resize.pl:202
27297 msgid "(This can also be done offline using L<guestfish(1)>)"
27298 msgstr ""
27299
27300 # type: textblock
27301 #: ../tools/virt-resize.pl:204
27302 msgid ""
27303 "Once the guest has booted you should see the new space available, at least "
27304 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27305 "may need to resize LVs inside PVs, and also resize filesystem types that "
27306 "virt-resize does not know how to expand."
27307 msgstr ""
27308
27309 # type: =head2
27310 #: ../tools/virt-resize.pl:211
27311 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27312 msgstr ""
27313
27314 # type: textblock
27315 #: ../tools/virt-resize.pl:213
27316 msgid ""
27317 "Shrinking is somewhat more complex than expanding, and only an overview is "
27318 "given here."
27319 msgstr ""
27320
27321 # type: textblock
27322 #: ../tools/virt-resize.pl:216
27323 msgid ""
27324 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27325 "filesystems).  The user has to shrink content before passing the disk image "
27326 "to virt-resize, and virt-resize will check that the content has been shrunk "
27327 "properly."
27328 msgstr ""
27329
27330 # type: textblock
27331 #: ../tools/virt-resize.pl:221
27332 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27333 msgstr ""
27334
27335 # type: textblock
27336 #: ../tools/virt-resize.pl:223
27337 msgid ""
27338 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27339 "steps 3 and 4 above to allocate a new disk image."
27340 msgstr ""
27341
27342 # type: textblock
27343 #: ../tools/virt-resize.pl:226
27344 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27345 msgstr ""
27346
27347 # type: =head2
27348 #: ../tools/virt-resize.pl:229
27349 msgid "IGNORING OR DELETING PARTITIONS"
27350 msgstr ""
27351
27352 # type: textblock
27353 #: ../tools/virt-resize.pl:231
27354 msgid ""
27355 "virt-resize also gives a convenient way to ignore or delete partitions when "
27356 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27357 "up the copy where you don't care about the existing contents of a "
27358 "partition.  Deleting a partition removes it completely, but note that it "
27359 "also renumbers any partitions after the one which is deleted, which can "
27360 "leave some guests unbootable."
27361 msgstr ""
27362
27363 # type: =head2
27364 #: ../tools/virt-resize.pl:238
27365 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27366 msgstr ""
27367
27368 # type: textblock
27369 #: ../tools/virt-resize.pl:240
27370 msgid ""
27371 "If the input disk is in qcow2 format, then you may prefer that the output is "
27372 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27373 "the fly.  The output format is simply determined by the format of the empty "
27374 "output container that you provide.  Thus to create qcow2 output, use:"
27375 msgstr ""
27376
27377 # type: verbatim
27378 #: ../tools/virt-resize.pl:246
27379 #, no-wrap
27380 msgid ""
27381 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27382 "\n"
27383 msgstr ""
27384
27385 # type: textblock
27386 #: ../tools/virt-resize.pl:248
27387 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27388 msgstr ""
27389
27390 # type: textblock
27391 #: ../tools/virt-resize.pl:250
27392 msgid "Similarly, to get non-sparse raw output use:"
27393 msgstr ""
27394
27395 # type: verbatim
27396 #: ../tools/virt-resize.pl:252
27397 #, no-wrap
27398 msgid ""
27399 " fallocate -l size outdisk\n"
27400 "\n"
27401 msgstr ""
27402
27403 # type: textblock
27404 #: ../tools/virt-resize.pl:254
27405 msgid ""
27406 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
27407 "if=/dev/zero of=outdisk bs=1M count=..>)"
27408 msgstr ""
27409
27410 # type: textblock
27411 #: ../tools/virt-resize.pl:267
27412 msgid "Display help."
27413 msgstr ""
27414
27415 # type: =item
27416 #: ../tools/virt-resize.pl:281
27417 msgid "B<--resize part=size>"
27418 msgstr ""
27419
27420 # type: textblock
27421 #: ../tools/virt-resize.pl:283
27422 msgid ""
27423 "Resize the named partition (expanding or shrinking it) so that it has the "
27424 "given size."
27425 msgstr ""
27426
27427 # type: textblock
27428 #: ../tools/virt-resize.pl:286
27429 msgid ""
27430 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27431 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27432 "Exabytes; or as a percentage of the current size; or as a relative number or "
27433 "percentage.  For example:"
27434 msgstr ""
27435
27436 # type: verbatim
27437 #: ../tools/virt-resize.pl:291
27438 #, no-wrap
27439 msgid ""
27440 " --resize /dev/sda2=10G\n"
27441 "\n"
27442 msgstr ""
27443
27444 # type: verbatim
27445 #: ../tools/virt-resize.pl:293
27446 #, no-wrap
27447 msgid ""
27448 " --resize /dev/sda4=90%\n"
27449 "\n"
27450 msgstr ""
27451
27452 # type: verbatim
27453 #: ../tools/virt-resize.pl:295
27454 #, no-wrap
27455 msgid ""
27456 " --resize /dev/sda2=+1G\n"
27457 "\n"
27458 msgstr ""
27459
27460 # type: verbatim
27461 #: ../tools/virt-resize.pl:297
27462 #, no-wrap
27463 msgid ""
27464 " --resize /dev/sda2=-200M\n"
27465 "\n"
27466 msgstr ""
27467
27468 # type: verbatim
27469 #: ../tools/virt-resize.pl:299
27470 #, no-wrap
27471 msgid ""
27472 " --resize /dev/sda1=+128K\n"
27473 "\n"
27474 msgstr ""
27475
27476 # type: verbatim
27477 #: ../tools/virt-resize.pl:301
27478 #, no-wrap
27479 msgid ""
27480 " --resize /dev/sda1=+10%\n"
27481 "\n"
27482 msgstr ""
27483
27484 # type: verbatim
27485 #: ../tools/virt-resize.pl:303
27486 #, no-wrap
27487 msgid ""
27488 " --resize /dev/sda1=-10%\n"
27489 "\n"
27490 msgstr ""
27491
27492 # type: textblock
27493 #: ../tools/virt-resize.pl:305
27494 msgid ""
27495 "You can increase the size of any partition.  Virt-resize will expand the "
27496 "direct content of the partition if it knows how (see C<--expand> below)."
27497 msgstr ""
27498
27499 # type: textblock
27500 #: ../tools/virt-resize.pl:309
27501 msgid ""
27502 "You can only I<decrease> the size of partitions that contain filesystems or "
27503 "PVs which have already been shrunk.  Virt-resize will check this has been "
27504 "done before proceeding, or else will print an error (see also "
27505 "C<--resize-force>)."
27506 msgstr ""
27507
27508 # type: textblock
27509 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
27510 msgid "You can give this option multiple times."
27511 msgstr ""
27512
27513 # type: =item
27514 #: ../tools/virt-resize.pl:320
27515 msgid "B<--resize-force part=size>"
27516 msgstr ""
27517
27518 # type: textblock
27519 #: ../tools/virt-resize.pl:322
27520 msgid ""
27521 "This is the same as C<--resize> except that it will let you decrease the "
27522 "size of any partition.  Generally this means you will lose any data which "
27523 "was at the end of the partition you shrink, but you may not care about that "
27524 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27525 "as a swap partition)."
27526 msgstr ""
27527
27528 # type: textblock
27529 #: ../tools/virt-resize.pl:328
27530 msgid "See also the C<--ignore> option."
27531 msgstr ""
27532
27533 # type: =item
27534 #: ../tools/virt-resize.pl:334
27535 msgid "B<--expand part>"
27536 msgstr ""
27537
27538 # type: textblock
27539 #: ../tools/virt-resize.pl:336
27540 msgid ""
27541 "Expand the named partition so it uses up all extra space (space left over "
27542 "after any other resize changes that you request have been done)."
27543 msgstr ""
27544
27545 # type: textblock
27546 #: ../tools/virt-resize.pl:339
27547 msgid ""
27548 "If virt-resize knows how, it will expand the direct content of the "
27549 "partition.  For example, if the partition is an LVM PV, it will expand the "
27550 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27551 "content it doesn't know about alone."
27552 msgstr ""
27553
27554 # type: textblock
27555 #: ../tools/virt-resize.pl:344
27556 msgid "Currently virt-resize can resize:"
27557 msgstr ""
27558
27559 # type: textblock
27560 #: ../tools/virt-resize.pl:350
27561 msgid ""
27562 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27563 "partition."
27564 msgstr ""
27565
27566 # type: textblock
27567 #: ../tools/virt-resize.pl:355
27568 msgid ""
27569 "NTFS filesystems contained directly in a partition, if libguestfs was "
27570 "compiled with support for NTFS."
27571 msgstr ""
27572
27573 # type: textblock
27574 #: ../tools/virt-resize.pl:358
27575 msgid ""
27576 "The filesystem must have been shut down consistently last time it was used.  "
27577 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27578 "consistency check, so at the first boot after resizing Windows will check "
27579 "the disk."
27580 msgstr ""
27581
27582 # type: textblock
27583 #: ../tools/virt-resize.pl:365
27584 msgid ""
27585 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27586 "inside the PV.  The user will have to resize LVs as desired."
27587 msgstr ""
27588
27589 # type: textblock
27590 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
27591 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27592 msgstr ""
27593
27594 # type: =item
27595 #: ../tools/virt-resize.pl:377
27596 msgid "B<--shrink part>"
27597 msgstr ""
27598
27599 # type: textblock
27600 #: ../tools/virt-resize.pl:379
27601 msgid ""
27602 "Shrink the named partition until the overall disk image fits in the "
27603 "destination.  The named partition B<must> contain a filesystem or PV which "
27604 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27605 "online tools).  Virt-resize will check this and give an error if it has not "
27606 "been done."
27607 msgstr ""
27608
27609 # type: textblock
27610 #: ../tools/virt-resize.pl:385
27611 msgid ""
27612 "The amount by which the overall disk must be shrunk (after carrying out all "
27613 "other operations requested by the user) is called the \"deficit\".  For "
27614 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27615 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27616 "would give an error unless the user specified a partition to shrink and that "
27617 "partition had more than a gigabyte of free space."
27618 msgstr ""
27619
27620 # type: =item
27621 #: ../tools/virt-resize.pl:399
27622 msgid "B<--ignore part>"
27623 msgstr ""
27624
27625 # type: textblock
27626 #: ../tools/virt-resize.pl:401
27627 msgid ""
27628 "Ignore the named partition.  Effectively this means the partition is "
27629 "allocated on the destination disk, but the content is not copied across from "
27630 "the source disk.  The content of the partition will be blank (all zero "
27631 "bytes)."
27632 msgstr ""
27633
27634 # type: =item
27635 #: ../tools/virt-resize.pl:412
27636 msgid "B<--delete part>"
27637 msgstr ""
27638
27639 # type: textblock
27640 #: ../tools/virt-resize.pl:414
27641 msgid ""
27642 "Delete the named partition.  It would be more accurate to describe this as "
27643 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27644 "the original disk image is left intact."
27645 msgstr ""
27646
27647 # type: textblock
27648 #: ../tools/virt-resize.pl:418
27649 msgid ""
27650 "Note that when you delete a partition, then anything contained in the "
27651 "partition is also deleted.  Furthermore, this causes any partitions that "
27652 "come after to be I<renumbered>, which can easily make your guest unbootable."
27653 msgstr ""
27654
27655 # type: =item
27656 #: ../tools/virt-resize.pl:429
27657 msgid "B<--LV-expand logvol>"
27658 msgstr ""
27659
27660 # type: textblock
27661 #: ../tools/virt-resize.pl:431
27662 msgid ""
27663 "This takes the logical volume and, as a final step, expands it to fill all "
27664 "the space available in its volume group.  A typical usage, assuming a Linux "
27665 "guest with a single PV C</dev/sda2> and a root device called "
27666 "C</dev/vg_guest/lv_root> would be:"
27667 msgstr ""
27668
27669 # type: verbatim
27670 #: ../tools/virt-resize.pl:436
27671 #, no-wrap
27672 msgid ""
27673 " virt-resize indisk outdisk \\\n"
27674 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27675 "\n"
27676 msgstr ""
27677
27678 # type: textblock
27679 #: ../tools/virt-resize.pl:439
27680 msgid ""
27681 "This would first expand the partition (and PV), and then expand the root "
27682 "device to fill the extra space in the PV."
27683 msgstr ""
27684
27685 # type: textblock
27686 #: ../tools/virt-resize.pl:442
27687 msgid ""
27688 "The contents of the LV are also resized if virt-resize knows how to do "
27689 "that.  You can stop virt-resize from trying to expand the content by using "
27690 "the option C<--no-expand-content>."
27691 msgstr ""
27692
27693 # type: textblock
27694 #: ../tools/virt-resize.pl:446
27695 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
27696 msgstr ""
27697
27698 # type: textblock
27699 #: ../tools/virt-resize.pl:449
27700 msgid ""
27701 "You can give this option multiple times, I<but> it doesn't make sense to do "
27702 "this unless the logical volumes you specify are all in different volume "
27703 "groups."
27704 msgstr ""
27705
27706 # type: =item
27707 #: ../tools/virt-resize.pl:457
27708 msgid "B<--no-copy-boot-loader>"
27709 msgstr ""
27710
27711 # type: textblock
27712 #: ../tools/virt-resize.pl:459
27713 msgid ""
27714 "By default, virt-resize copies over some sectors at the start of the disk "
27715 "(up to the beginning of the first partition).  Commonly these sectors "
27716 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27717 "in order for the guest to boot correctly."
27718 msgstr ""
27719
27720 # type: textblock
27721 #: ../tools/virt-resize.pl:464
27722 msgid ""
27723 "If you specify this flag, then this initial copy is not done.  You may need "
27724 "to reinstall the boot loader in this case."
27725 msgstr ""
27726
27727 # type: =item
27728 #: ../tools/virt-resize.pl:472
27729 msgid "B<--no-extra-partition>"
27730 msgstr ""
27731
27732 # type: textblock
27733 #: ../tools/virt-resize.pl:474
27734 msgid ""
27735 "By default, virt-resize creates an extra partition if there is any extra, "
27736 "unused space after all resizing has happened.  Use this option to prevent "
27737 "the extra partition from being created.  If you do this then the extra space "
27738 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27739 "tool in the guest."
27740 msgstr ""
27741
27742 # type: textblock
27743 #: ../tools/virt-resize.pl:480
27744 msgid ""
27745 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27746 "will be created."
27747 msgstr ""
27748
27749 # type: =item
27750 #: ../tools/virt-resize.pl:487
27751 msgid "B<--no-expand-content>"
27752 msgstr ""
27753
27754 # type: textblock
27755 #: ../tools/virt-resize.pl:489
27756 msgid ""
27757 "By default, virt-resize will try to expand the direct contents of "
27758 "partitions, if it knows how (see C<--expand> option above)."
27759 msgstr ""
27760
27761 # type: textblock
27762 #: ../tools/virt-resize.pl:492
27763 msgid ""
27764 "If you give the C<--no-expand-content> option then virt-resize will not "
27765 "attempt this."
27766 msgstr ""
27767
27768 # type: =item
27769 #: ../tools/virt-resize.pl:499
27770 msgid "B<-d> | B<--debug>"
27771 msgstr ""
27772
27773 # type: =item
27774 #: ../tools/virt-resize.pl:507
27775 msgid "B<-n> | B<--dryrun>"
27776 msgstr ""
27777
27778 # type: textblock
27779 #: ../tools/virt-resize.pl:509
27780 msgid "Print a summary of what would be done, but don't do anything."
27781 msgstr ""
27782
27783 # type: =item
27784 #: ../tools/virt-resize.pl:515
27785 msgid "B<-q> | B<--quiet>"
27786 msgstr ""
27787
27788 # type: textblock
27789 #: ../tools/virt-resize.pl:517
27790 msgid "Don't print the summary."
27791 msgstr ""
27792
27793 # type: textblock
27794 #: ../tools/virt-resize.pl:525
27795 msgid ""
27796 "Specify the format of the input disk image.  If this flag is not given then "
27797 "it is auto-detected from the image itself."
27798 msgstr ""
27799
27800 # type: textblock
27801 #: ../tools/virt-resize.pl:531
27802 msgid ""
27803 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27804 "AND NON-SPARSE RAW FORMATS>."
27805 msgstr ""
27806
27807 # type: =item
27808 #: ../tools/virt-resize.pl:538
27809 msgid "B<--output-format> raw"
27810 msgstr ""
27811
27812 # type: textblock
27813 #: ../tools/virt-resize.pl:540
27814 msgid ""
27815 "Specify the format of the output disk image.  If this flag is not given then "
27816 "it is auto-detected from the image itself."
27817 msgstr ""
27818
27819 # type: textblock
27820 #: ../tools/virt-resize.pl:546
27821 msgid ""
27822 "Note that you still need to create the output disk with the right format.  "
27823 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27824 msgstr ""
27825
27826 # type: =head2
27827 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
27828 msgid "NOTES"
27829 msgstr ""
27830
27831 # type: =head2
27832 #: ../tools/virt-resize.pl:1424
27833 msgid "\"Partition 1 does not end on cylinder boundary.\""
27834 msgstr ""
27835
27836 # type: textblock
27837 #: ../tools/virt-resize.pl:1426
27838 msgid ""
27839 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27840 "means the partitions will not be aligned to the ancient CHS geometry.  "
27841 "However CHS geometry is meaningless for disks manufactured since the early "
27842 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27843 "cylinders is not required by any modern operating system."
27844 msgstr ""
27845
27846 # type: =head2
27847 #: ../tools/virt-resize.pl:1433
27848 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27849 msgstr ""
27850
27851 # type: textblock
27852 #: ../tools/virt-resize.pl:1435
27853 msgid ""
27854 "In Windows Vista and later versions, Microsoft switched to using a separate "
27855 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27856 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27857 "the boot partition.  Doing so seems to break the guest completely.  However "
27858 "expanding the second partition (ie. C: drive) should work."
27859 msgstr ""
27860
27861 # type: textblock
27862 #: ../tools/virt-resize.pl:1442
27863 msgid ""
27864 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27865 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27866 "it find errors) is nothing to worry about."
27867 msgstr ""
27868
27869 # type: =head2
27870 #: ../tools/virt-resize.pl:1446
27871 msgid "GUEST BOOT STUCK AT \"GRUB\""
27872 msgstr ""
27873
27874 # type: textblock
27875 #: ../tools/virt-resize.pl:1448
27876 msgid ""
27877 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27878 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27879 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27880 "although we think is to do with partition alignment."
27881 msgstr ""
27882
27883 # type: verbatim
27884 #: ../tools/virt-resize.pl:1453
27885 #, no-wrap
27886 msgid ""
27887 " guestfish -i -a newdisk\n"
27888 " ><fs> cat /boot/grub/device.map\n"
27889 " # check the contents of this file are sensible or\n"
27890 " # edit the file if necessary\n"
27891 " ><fs> grub-install / /dev/vda\n"
27892 " ><fs> exit\n"
27893 "\n"
27894 msgstr ""
27895
27896 # type: textblock
27897 #: ../tools/virt-resize.pl:1460
27898 msgid ""
27899 "For more flexible guest reconfiguration, including if you need to specify "
27900 "other parameters to grub-install, use L<virt-rescue(1)>."
27901 msgstr ""
27902
27903 # type: =head1
27904 #: ../tools/virt-resize.pl:1463
27905 msgid "ALTERNATIVE TOOLS"
27906 msgstr ""
27907
27908 # type: textblock
27909 #: ../tools/virt-resize.pl:1465
27910 msgid ""
27911 "There are several proprietary tools for resizing partitions.  We won't "
27912 "mention any here."
27913 msgstr ""
27914
27915 # type: textblock
27916 #: ../tools/virt-resize.pl:1468
27917 msgid ""
27918 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27919 "operations on disk images.  They can resize and move partitions, but I don't "
27920 "think they can do anything with the contents, and they certainly don't "
27921 "understand LVM."
27922 msgstr ""
27923
27924 # type: textblock
27925 #: ../tools/virt-resize.pl:1473
27926 msgid ""
27927 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27928 "but at a much lower level.  You will probably end up hand-calculating sector "
27929 "offsets, which is something that virt-resize was designed to avoid.  If you "
27930 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27931 "C<--debug> flag."
27932 msgstr ""
27933
27934 # type: textblock
27935 #: ../tools/virt-resize.pl:1488
27936 msgid ""
27937 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27938 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27939 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
27940 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
27941 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27942 msgstr ""
27943
27944 # type: textblock
27945 #: ../tools/virt-list-filesystems.pl:32
27946 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27947 msgstr ""
27948
27949 # type: verbatim
27950 #: ../tools/virt-list-filesystems.pl:36
27951 #, no-wrap
27952 msgid ""
27953 " virt-list-filesystems [--options] domname\n"
27954 "\n"
27955 msgstr ""
27956
27957 # type: verbatim
27958 #: ../tools/virt-list-filesystems.pl:38
27959 #, no-wrap
27960 msgid ""
27961 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27962 "\n"
27963 msgstr ""
27964
27965 # type: textblock
27966 #: ../tools/virt-list-filesystems.pl:42
27967 msgid ""
27968 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27969 "are contained in a virtual machine or disk image."
27970 msgstr ""
27971
27972 # type: textblock
27973 #: ../tools/virt-list-filesystems.pl:46
27974 msgid ""
27975 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27976 "functionality.  For more complex cases you should look at the "
27977 "L<guestfish(1)> tool."
27978 msgstr ""
27979
27980 # type: textblock
27981 #: ../tools/virt-list-filesystems.pl:105
27982 msgid ""
27983 "With this option, C<virt-list-filesystems> displays the type of each "
27984 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27985 msgstr ""
27986
27987 # type: =item
27988 #: ../tools/virt-list-filesystems.pl:112
27989 msgid "B<-a> | B<--all>"
27990 msgstr ""
27991
27992 # type: textblock
27993 #: ../tools/virt-list-filesystems.pl:114
27994 msgid ""
27995 "Normally we only show mountable filesystems.  If this option is given then "
27996 "swap devices are shown too."
27997 msgstr ""
27998
27999 # type: textblock
28000 #: ../tools/virt-list-filesystems.pl:188
28001 msgid ""
28002 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
28003 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
28004 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28005 msgstr ""
28006
28007 # type: textblock
28008 #: ../tools/virt-tar.pl:33
28009 msgid "virt-tar - Extract or upload files to a virtual machine"
28010 msgstr ""
28011
28012 # type: verbatim
28013 #: ../tools/virt-tar.pl:37
28014 #, no-wrap
28015 msgid ""
28016 " virt-tar [--options] -x domname directory tarball\n"
28017 "\n"
28018 msgstr ""
28019
28020 # type: verbatim
28021 #: ../tools/virt-tar.pl:39
28022 #, no-wrap
28023 msgid ""
28024 " virt-tar [--options] -u domname tarball directory\n"
28025 "\n"
28026 msgstr ""
28027
28028 # type: verbatim
28029 #: ../tools/virt-tar.pl:41
28030 #, no-wrap
28031 msgid ""
28032 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28033 "\n"
28034 msgstr ""
28035
28036 # type: verbatim
28037 #: ../tools/virt-tar.pl:43
28038 #, no-wrap
28039 msgid ""
28040 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28041 "\n"
28042 msgstr ""
28043
28044 # type: textblock
28045 #: ../tools/virt-tar.pl:47
28046 msgid "Download C</home> from the VM into a local tarball:"
28047 msgstr ""
28048
28049 # type: verbatim
28050 #: ../tools/virt-tar.pl:49
28051 #, no-wrap
28052 msgid ""
28053 " virt-tar -x domname /home home.tar\n"
28054 "\n"
28055 msgstr ""
28056
28057 # type: verbatim
28058 #: ../tools/virt-tar.pl:51
28059 #, no-wrap
28060 msgid ""
28061 " virt-tar -zx domname /home home.tar.gz\n"
28062 "\n"
28063 msgstr ""
28064
28065 # type: textblock
28066 #: ../tools/virt-tar.pl:53
28067 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28068 msgstr ""
28069
28070 # type: verbatim
28071 #: ../tools/virt-tar.pl:55
28072 #, no-wrap
28073 msgid ""
28074 " virt-tar -u domname uploadstuff.tar /tmp\n"
28075 "\n"
28076 msgstr ""
28077
28078 # type: verbatim
28079 #: ../tools/virt-tar.pl:57
28080 #, no-wrap
28081 msgid ""
28082 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28083 "\n"
28084 msgstr ""
28085
28086 # type: textblock
28087 #: ../tools/virt-tar.pl:61
28088 msgid ""
28089 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28090 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28091 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28092 msgstr ""
28093
28094 # type: textblock
28095 #: ../tools/virt-tar.pl:66
28096 msgid ""
28097 "You can use C<-x> (extract) on live virtual machines, but you might get "
28098 "inconsistent results or errors if there is filesystem activity inside the "
28099 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28100 "work, but the only way to guarantee consistent results is if the virtual "
28101 "machine is shut down."
28102 msgstr ""
28103
28104 # type: textblock
28105 #: ../tools/virt-tar.pl:74
28106 msgid ""
28107 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28108 "parts of a guest filesystem.  There are many possibilities: making backups, "
28109 "uploading data files, snooping on guest activity, fixing or customizing "
28110 "guests, etc."
28111 msgstr ""
28112
28113 # type: textblock
28114 #: ../tools/virt-tar.pl:79
28115 msgid ""
28116 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28117 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28118 "should look at the L<guestfish(1)> tool."
28119 msgstr ""
28120
28121 # type: textblock
28122 #: ../tools/virt-tar.pl:83
28123 msgid ""
28124 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28125 "its contents (recursively) from the virtual machine into a local tarball.  "
28126 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28127 "virtual machine.  You cannot use these two options together."
28128 msgstr ""
28129
28130 # type: textblock
28131 #: ../tools/virt-tar.pl:89
28132 msgid ""
28133 "In addition, you may need to use the C<-z> (gZip) option to enable "
28134 "compression.  When uploading, you have to specify C<-z> if the upload file "
28135 "is compressed because virt-tar won't detect this on its own."
28136 msgstr ""
28137
28138 # type: textblock
28139 #: ../tools/virt-tar.pl:93
28140 msgid ""
28141 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28142 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28143 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28144 "the L<libguestfs(3)> API)."
28145 msgstr ""
28146
28147 # type: =item
28148 #: ../tools/virt-tar.pl:151
28149 msgid "B<-x> | B<--extract> | B<--download>"
28150 msgstr ""
28151
28152 # type: =item
28153 #: ../tools/virt-tar.pl:153
28154 msgid "B<-u> | B<--upload>"
28155 msgstr ""
28156
28157 # type: textblock
28158 #: ../tools/virt-tar.pl:155
28159 msgid ""
28160 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28161 "local tarball."
28162 msgstr ""
28163
28164 # type: textblock
28165 #: ../tools/virt-tar.pl:158
28166 msgid ""
28167 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28168 "Please read the L</WARNING> section above before using this option."
28169 msgstr ""
28170
28171 # type: textblock
28172 #: ../tools/virt-tar.pl:162
28173 msgid "You must specify exactly one of these options."
28174 msgstr ""
28175
28176 # type: =item
28177 #: ../tools/virt-tar.pl:168
28178 msgid "B<-z> | B<--gzip>"
28179 msgstr ""
28180
28181 # type: textblock
28182 #: ../tools/virt-tar.pl:170
28183 msgid "Specify that the input or output tarball is gzip-compressed."
28184 msgstr ""
28185
28186 # type: textblock
28187 #: ../tools/virt-tar.pl:283
28188 msgid ""
28189 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
28190 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
28191 "L<http://libguestfs.org/>."
28192 msgstr ""
28193
28194 # type: textblock
28195 #: ../tools/virt-rescue.pl:33
28196 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28197 msgstr ""
28198
28199 # type: verbatim
28200 #: ../tools/virt-rescue.pl:37
28201 #, no-wrap
28202 msgid ""
28203 " virt-rescue [--options] domname\n"
28204 "\n"
28205 msgstr ""
28206
28207 # type: verbatim
28208 #: ../tools/virt-rescue.pl:39
28209 #, no-wrap
28210 msgid ""
28211 " virt-rescue [--options] disk.img [disk.img ...]\n"
28212 "\n"
28213 msgstr ""
28214
28215 # type: textblock
28216 #: ../tools/virt-rescue.pl:43
28217 msgid ""
28218 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28219 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28220 "you from doing this, but doesn't catch all cases."
28221 msgstr ""
28222
28223 # type: textblock
28224 #: ../tools/virt-rescue.pl:47
28225 msgid ""
28226 "However if you use the I<--ro> (read only) option, then you can attach a "
28227 "shell to a live virtual machine.  The results might be strange or "
28228 "inconsistent at times but you won't get disk corruption."
28229 msgstr ""
28230
28231 # type: textblock
28232 #: ../tools/virt-rescue.pl:53
28233 msgid ""
28234 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28235 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28236 "recovery tools which you can use to examine or rescue a virtual machine or "
28237 "disk image."
28238 msgstr ""
28239
28240 # type: textblock
28241 #: ../tools/virt-rescue.pl:58
28242 msgid ""
28243 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28244 "on disk image(s):"
28245 msgstr ""
28246
28247 # type: verbatim
28248 #: ../tools/virt-rescue.pl:61
28249 #, no-wrap
28250 msgid ""
28251 " virt-rescue GuestName\n"
28252 "\n"
28253 msgstr ""
28254
28255 # type: verbatim
28256 #: ../tools/virt-rescue.pl:63
28257 #, no-wrap
28258 msgid ""
28259 " virt-rescue --ro /path/to/disk.img\n"
28260 "\n"
28261 msgstr ""
28262
28263 # type: verbatim
28264 #: ../tools/virt-rescue.pl:65
28265 #, no-wrap
28266 msgid ""
28267 " virt-rescue /dev/sdc\n"
28268 "\n"
28269 msgstr ""
28270
28271 # type: textblock
28272 #: ../tools/virt-rescue.pl:67
28273 msgid "For live VMs you I<must> use the --ro option."
28274 msgstr ""
28275
28276 # type: textblock
28277 #: ../tools/virt-rescue.pl:69
28278 msgid ""
28279 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28280 "in an interactive bash shell where you can use many ordinary Linux "
28281 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28282 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28283 "is an empty directory called C</sysroot> where you can mount filesystems."
28284 msgstr ""
28285
28286 # type: textblock
28287 #: ../tools/virt-rescue.pl:76
28288 msgid ""
28289 "In the example below, we list logical volumes, then choose one to mount "
28290 "under C</sysroot>:"
28291 msgstr ""
28292
28293 # type: verbatim
28294 #: ../tools/virt-rescue.pl:79
28295 #, no-wrap
28296 msgid ""
28297 " ><rescue> lvs\n"
28298 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28299 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28300 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28301 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28302 " ><rescue> ls /sysroot\n"
28303 "\n"
28304 msgstr ""
28305
28306 # type: textblock
28307 #: ../tools/virt-rescue.pl:86
28308 msgid ""
28309 "If you don't know what filesystems are available on the virtual machine then "
28310 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28311 msgstr ""
28312
28313 # type: textblock
28314 #: ../tools/virt-rescue.pl:92
28315 msgid ""
28316 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28317 "virtual machine.  For example you can use it on a blank file if you want to "
28318 "partition that file (although we would recommend using L<guestfish(1)> "
28319 "instead as it is more suitable for this purpose).  You can even use "
28320 "virt-rescue on things like SD cards."
28321 msgstr ""
28322
28323 # type: textblock
28324 #: ../tools/virt-rescue.pl:98
28325 msgid ""
28326 "This tool is just designed for quick interactive hacking on a virtual "
28327 "machine.  For more structured access to a virtual machine disk image, you "
28328 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28329 "make scripted changes to guests, use L<guestfish(1)>."
28330 msgstr ""
28331
28332 # type: =item
28333 #: ../tools/virt-rescue.pl:127
28334 msgid "B<--append kernelopts>"
28335 msgstr ""
28336
28337 # type: textblock
28338 #: ../tools/virt-rescue.pl:129
28339 msgid "Pass additional options to the rescue kernel."
28340 msgstr ""
28341
28342 # type: =item
28343 #: ../tools/virt-rescue.pl:164
28344 msgid "B<--memsize MB> | B<-m MB>"
28345 msgstr ""
28346
28347 # type: textblock
28348 #: ../tools/virt-rescue.pl:166
28349 msgid ""
28350 "Change the amount of memory allocated to the rescue system.  The default is "
28351 "set by libguestfs and is small but adequate for running system tools.  The "
28352 "occasional program might need more memory.  The parameter is specified in "
28353 "megabytes."
28354 msgstr ""
28355
28356 # type: =item
28357 #: ../tools/virt-rescue.pl:175
28358 msgid "B<--network MB>"
28359 msgstr ""
28360
28361 # type: textblock
28362 #: ../tools/virt-rescue.pl:177
28363 msgid "Enable QEMU user networking in the guest."
28364 msgstr ""
28365
28366 # type: =item
28367 #: ../tools/virt-rescue.pl:183
28368 msgid "B<--ro> | B<-r>"
28369 msgstr ""
28370
28371 # type: textblock
28372 #: ../tools/virt-rescue.pl:185
28373 msgid "Open the image read-only."
28374 msgstr ""
28375
28376 # type: textblock
28377 #: ../tools/virt-rescue.pl:197
28378 msgid ""
28379 "Enable SELinux in the rescue appliance.  You should read "
28380 "L<guestfs(3)/SELINUX> before using this option."
28381 msgstr ""
28382
28383 # type: textblock
28384 #: ../tools/virt-rescue.pl:257
28385 msgid ""
28386 "Several environment variables affect virt-rescue.  See "
28387 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
28388 msgstr ""
28389
28390 # type: textblock
28391 #: ../tools/virt-rescue.pl:269
28392 msgid ""
28393 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
28394 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28395 msgstr ""
28396
28397 # type: textblock
28398 #: ../tools/virt-make-fs.pl:37
28399 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28400 msgstr ""
28401
28402 # type: verbatim
28403 #: ../tools/virt-make-fs.pl:41
28404 #, no-wrap
28405 msgid ""
28406 " virt-make-fs [--options] input.tar output.img\n"
28407 "\n"
28408 msgstr ""
28409
28410 # type: verbatim
28411 #: ../tools/virt-make-fs.pl:43
28412 #, no-wrap
28413 msgid ""
28414 " virt-make-fs [--options] input.tar.gz output.img\n"
28415 "\n"
28416 msgstr ""
28417
28418 # type: verbatim
28419 #: ../tools/virt-make-fs.pl:45
28420 #, no-wrap
28421 msgid ""
28422 " virt-make-fs [--options] directory output.img\n"
28423 "\n"
28424 msgstr ""
28425
28426 # type: textblock
28427 #: ../tools/virt-make-fs.pl:49
28428 msgid ""
28429 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28430 "archive or some files in a directory.  It is similar to tools like "
28431 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
28432 "it can create common filesystem types like ext2/3 or NTFS, which can be "
28433 "useful if you want to attach these filesystems to existing virtual machines "
28434 "(eg. to import large amounts of read-only data to a VM)."
28435 msgstr ""
28436
28437 # type: textblock
28438 #: ../tools/virt-make-fs.pl:57
28439 msgid "Basic usage is:"
28440 msgstr ""
28441
28442 # type: verbatim
28443 #: ../tools/virt-make-fs.pl:59
28444 #, no-wrap
28445 msgid ""
28446 " virt-make-fs input output\n"
28447 "\n"
28448 msgstr ""
28449
28450 # type: textblock
28451 #: ../tools/virt-make-fs.pl:61
28452 msgid ""
28453 "where C<input> is either a directory containing files that you want to add, "
28454 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28455 "C<output> is a disk image.  The input type is detected automatically.  The "
28456 "output disk image defaults to a raw ext2 image unless you specify extra "
28457 "flags (see L</OPTIONS> below)."
28458 msgstr ""
28459
28460 # type: =head2
28461 #: ../tools/virt-make-fs.pl:67
28462 msgid "EXTRA SPACE"
28463 msgstr ""
28464
28465 # type: textblock
28466 #: ../tools/virt-make-fs.pl:69
28467 msgid ""
28468 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28469 "the files that it contains, but might have extra space.  Depending on how "
28470 "you are going to use the output, you might think this extra space is wasted "
28471 "and want to minimize it, or you might want to leave space so that more files "
28472 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28473 "but you can use the C<--size> flag to leave space in the filesystem if you "
28474 "want it."
28475 msgstr ""
28476
28477 # type: textblock
28478 #: ../tools/virt-make-fs.pl:77
28479 msgid ""
28480 "An alternative way to leave extra space but not make the output image any "
28481 "bigger is to use an alternative disk image format (instead of the default "
28482 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28483 "image format (check your hypervisor supports this before using it).  This "
28484 "allows you to choose a large C<--size> but the extra space won't actually be "
28485 "allocated in the image until you try to store something in it."
28486 msgstr ""
28487
28488 # type: textblock
28489 #: ../tools/virt-make-fs.pl:85
28490 msgid ""
28491 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28492 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
28493 "virt-make-resize to build another image from scratch."
28494 msgstr ""
28495
28496 # type: =head3
28497 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
28498 msgid "EXAMPLE"
28499 msgstr ""
28500
28501 # type: verbatim
28502 #: ../tools/virt-make-fs.pl:91
28503 #, no-wrap
28504 msgid ""
28505 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28506 "\n"
28507 msgstr ""
28508
28509 # type: =head2
28510 #: ../tools/virt-make-fs.pl:93
28511 msgid "FILESYSTEM TYPE"
28512 msgstr ""
28513
28514 # type: textblock
28515 #: ../tools/virt-make-fs.pl:95
28516 msgid ""
28517 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28518 "libguestfs supports can be used (but I<not> read-only formats like "
28519 "ISO9660).  Here are some of the more common choices:"
28520 msgstr ""
28521
28522 # type: =item
28523 #: ../tools/virt-make-fs.pl:101
28524 msgid "I<ext3>"
28525 msgstr ""
28526
28527 # type: textblock
28528 #: ../tools/virt-make-fs.pl:103
28529 msgid ""
28530 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28531 "you are not going to use the filesystem in a way that requires the journal, "
28532 "then this is just wasted overhead."
28533 msgstr ""
28534
28535 # type: =item
28536 #: ../tools/virt-make-fs.pl:107
28537 msgid "I<ntfs> or I<vfat>"
28538 msgstr ""
28539
28540 # type: textblock
28541 #: ../tools/virt-make-fs.pl:109
28542 msgid "Useful if exporting data to a Windows guest."
28543 msgstr ""
28544
28545 # type: textblock
28546 #: ../tools/virt-make-fs.pl:111
28547 msgid ""
28548 "I<Note for vfat>: The tar archive or local directory must only contain files "
28549 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28550 "program running within libguestfs is unable to change the ownership of "
28551 "non-root files, since vfat itself does not support this."
28552 msgstr ""
28553
28554 # type: =item
28555 #: ../tools/virt-make-fs.pl:116
28556 msgid "I<minix>"
28557 msgstr ""
28558
28559 # type: textblock
28560 #: ../tools/virt-make-fs.pl:118
28561 msgid ""
28562 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28563 "total filesystem size."
28564 msgstr ""
28565
28566 # type: verbatim
28567 #: ../tools/virt-make-fs.pl:125
28568 #, no-wrap
28569 msgid ""
28570 " virt-make-fs --type=minix input minixfs.img\n"
28571 "\n"
28572 msgstr ""
28573
28574 # type: =head2
28575 #: ../tools/virt-make-fs.pl:127
28576 msgid "TO PARTITION OR NOT TO PARTITION"
28577 msgstr ""
28578
28579 # type: textblock
28580 #: ../tools/virt-make-fs.pl:129
28581 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28582 msgstr ""
28583
28584 # type: textblock
28585 #: ../tools/virt-make-fs.pl:131
28586 msgid ""
28587 "Adding a partition can make the disk image more compatible with certain "
28588 "virtualized operating systems which don't expect to see a filesystem "
28589 "directly located on a block device (Linux doesn't care and will happily "
28590 "handle both types)."
28591 msgstr ""
28592
28593 # type: textblock
28594 #: ../tools/virt-make-fs.pl:136
28595 msgid ""
28596 "On the other hand, if you have a partition table then the output image is no "
28597 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28598 "directly on a partitioned disk image.  (However libguestfs tools such as "
28599 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28600 msgstr ""
28601
28602 # type: textblock
28603 #: ../tools/virt-make-fs.pl:144
28604 msgid "Add an MBR partition:"
28605 msgstr ""
28606
28607 # type: verbatim
28608 #: ../tools/virt-make-fs.pl:146
28609 #, no-wrap
28610 msgid ""
28611 " virt-make-fs --partition -- input disk.img\n"
28612 "\n"
28613 msgstr ""
28614
28615 # type: textblock
28616 #: ../tools/virt-make-fs.pl:148
28617 msgid ""
28618 "If the output disk image could be terabyte-sized or larger, it's better to "
28619 "use an EFI/GPT-compatible partition table:"
28620 msgstr ""
28621
28622 # type: verbatim
28623 #: ../tools/virt-make-fs.pl:151
28624 #, no-wrap
28625 msgid ""
28626 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28627 "\n"
28628 msgstr ""
28629
28630 # type: textblock
28631 #: ../tools/virt-make-fs.pl:179
28632 msgid "Enable debugging information."
28633 msgstr ""
28634
28635 # type: =item
28636 #: ../tools/virt-make-fs.pl:185
28637 msgid "B<--size=E<lt>NE<gt>>"
28638 msgstr ""
28639
28640 # type: =item
28641 #: ../tools/virt-make-fs.pl:187
28642 msgid "B<--size=+E<lt>NE<gt>>"
28643 msgstr ""
28644
28645 # type: =item
28646 #: ../tools/virt-make-fs.pl:189
28647 msgid "B<-s E<lt>NE<gt>>"
28648 msgstr ""
28649
28650 # type: =item
28651 #: ../tools/virt-make-fs.pl:191
28652 msgid "B<-s +E<lt>NE<gt>>"
28653 msgstr ""
28654
28655 # type: textblock
28656 #: ../tools/virt-make-fs.pl:193
28657 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28658 msgstr ""
28659
28660 # type: textblock
28661 #: ../tools/virt-make-fs.pl:196
28662 msgid ""
28663 "If this option is I<not> given, then the output image will be just large "
28664 "enough to contain all the files, with not much wasted space."
28665 msgstr ""
28666
28667 # type: textblock
28668 #: ../tools/virt-make-fs.pl:199
28669 msgid ""
28670 "To choose a fixed size output disk, specify an absolute number followed by "
28671 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28672 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28673 "files, else you will get an error."
28674 msgstr ""
28675
28676 # type: textblock
28677 #: ../tools/virt-make-fs.pl:204
28678 msgid ""
28679 "To leave extra space, specify C<+> (plus sign) and a number followed by "
28680 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28681 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28682 "the input files, and (approximately) an extra 200 MB free space."
28683 msgstr ""
28684
28685 # type: textblock
28686 #: ../tools/virt-make-fs.pl:210
28687 msgid ""
28688 "Note that virt-make-fs estimates free space, and therefore will not produce "
28689 "filesystems containing precisely the free space requested.  (It is much more "
28690 "expensive and time-consuming to produce a filesystem which has precisely the "
28691 "desired free space)."
28692 msgstr ""
28693
28694 # type: =item
28695 #: ../tools/virt-make-fs.pl:219
28696 msgid "B<--format=E<lt>fmtE<gt>>"
28697 msgstr ""
28698
28699 # type: =item
28700 #: ../tools/virt-make-fs.pl:221
28701 msgid "B<-F E<lt>fmtE<gt>>"
28702 msgstr ""
28703
28704 # type: textblock
28705 #: ../tools/virt-make-fs.pl:223
28706 msgid "Choose the output disk image format."
28707 msgstr ""
28708
28709 # type: textblock
28710 #: ../tools/virt-make-fs.pl:225
28711 msgid "The default is C<raw> (raw disk image)."
28712 msgstr ""
28713
28714 # type: textblock
28715 #: ../tools/virt-make-fs.pl:227
28716 msgid ""
28717 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28718 "that would really make sense here is C<qcow2>."
28719 msgstr ""
28720
28721 # type: =item
28722 #: ../tools/virt-make-fs.pl:234
28723 msgid "B<--type=E<lt>fsE<gt>>"
28724 msgstr ""
28725
28726 # type: =item
28727 #: ../tools/virt-make-fs.pl:236
28728 msgid "B<-t E<lt>fsE<gt>>"
28729 msgstr ""
28730
28731 # type: textblock
28732 #: ../tools/virt-make-fs.pl:238
28733 msgid "Choose the output filesystem type."
28734 msgstr ""
28735
28736 # type: textblock
28737 #: ../tools/virt-make-fs.pl:240
28738 msgid "The default is C<ext2>."
28739 msgstr ""
28740
28741 # type: textblock
28742 #: ../tools/virt-make-fs.pl:242
28743 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
28744 msgstr ""
28745
28746 # type: =item
28747 #: ../tools/virt-make-fs.pl:249
28748 msgid "B<--partition>"
28749 msgstr ""
28750
28751 # type: =item
28752 #: ../tools/virt-make-fs.pl:251
28753 msgid "B<--partition=E<lt>parttypeE<gt>>"
28754 msgstr ""
28755
28756 # type: textblock
28757 #: ../tools/virt-make-fs.pl:253
28758 msgid ""
28759 "If specified, this flag adds an MBR partition table to the output disk "
28760 "image."
28761 msgstr ""
28762
28763 # type: textblock
28764 #: ../tools/virt-make-fs.pl:256
28765 msgid ""
28766 "You can change the partition table type, eg. C<--partition=gpt> for large "
28767 "disks."
28768 msgstr ""
28769
28770 # type: textblock
28771 #: ../tools/virt-make-fs.pl:259
28772 msgid ""
28773 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28774 "might consider the next parameter to be the partition type.  For example:"
28775 msgstr ""
28776
28777 # type: verbatim
28778 #: ../tools/virt-make-fs.pl:263
28779 #, no-wrap
28780 msgid ""
28781 " virt-make-fs --partition input.tar ...\n"
28782 "\n"
28783 msgstr ""
28784
28785 # type: textblock
28786 #: ../tools/virt-make-fs.pl:265
28787 msgid ""
28788 "would cause virt-make-fs to think you wanted to use a partition type of "
28789 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28790 "dash) between options and the input file argument:"
28791 msgstr ""
28792
28793 # type: verbatim
28794 #: ../tools/virt-make-fs.pl:269
28795 #, no-wrap
28796 msgid ""
28797 " virt-make-fs --partition -- input.tar ...\n"
28798 "\n"
28799 msgstr ""
28800
28801 # type: textblock
28802 #: ../tools/virt-make-fs.pl:536
28803 msgid ""
28804 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28805 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28806 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28807 msgstr ""
28808
28809 # type: verbatim
28810 #: ../tools/virt-make-fs.pl:553
28811 #, no-wrap
28812 msgid ""
28813 " export LIBGUESTFS_DEBUG=1\n"
28814 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28815 "\n"
28816 msgstr ""
28817
28818 # type: textblock
28819 #: ../tools/virt-make-fs.pl:556
28820 msgid ""
28821 "Attach /tmp/virt-make-fs.log to a new bug report at "
28822 "L<https://bugzilla.redhat.com/>"
28823 msgstr ""
28824
28825 # type: textblock
28826 #: ../tools/virt-list-partitions.pl:32
28827 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28828 msgstr ""
28829
28830 # type: verbatim
28831 #: ../tools/virt-list-partitions.pl:36
28832 #, no-wrap
28833 msgid ""
28834 " virt-list-partitions [--options] domname\n"
28835 "\n"
28836 msgstr ""
28837
28838 # type: verbatim
28839 #: ../tools/virt-list-partitions.pl:38
28840 #, no-wrap
28841 msgid ""
28842 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28843 "\n"
28844 msgstr ""
28845
28846 # type: textblock
28847 #: ../tools/virt-list-partitions.pl:42
28848 msgid ""
28849 "C<virt-list-partitions> is a command line tool to list the partitions that "
28850 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28851 "first step to using L<virt-resize(1)>."
28852 msgstr ""
28853
28854 # type: textblock
28855 #: ../tools/virt-list-partitions.pl:47
28856 msgid ""
28857 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28858 "functionality.  For more complex cases you should look at the "
28859 "L<guestfish(1)> tool."
28860 msgstr ""
28861
28862 # type: =item
28863 #: ../tools/virt-list-partitions.pl:104
28864 msgid "B<-h> | B<--human-readable>"
28865 msgstr ""
28866
28867 # type: textblock
28868 #: ../tools/virt-list-partitions.pl:106
28869 msgid "Show sizes in human-readable form (eg. \"1G\")."
28870 msgstr ""
28871
28872 # type: textblock
28873 #: ../tools/virt-list-partitions.pl:114
28874 msgid ""
28875 "With this option, C<virt-list-partitions> displays the type and size of each "
28876 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28877 msgstr ""
28878
28879 # type: =item
28880 #: ../tools/virt-list-partitions.pl:121
28881 msgid "B<-t> | B<--total>"
28882 msgstr ""
28883
28884 # type: textblock
28885 #: ../tools/virt-list-partitions.pl:123
28886 msgid "Display the total size of each block device (as a separate row or rows)."
28887 msgstr ""
28888
28889 # type: textblock
28890 #: ../tools/virt-list-partitions.pl:256
28891 msgid ""
28892 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
28893 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
28894 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28895 msgstr ""