Version 1.7.5.
[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.5\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-11-12 22:55+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:1224 ../src/guestfs.pod:1229 ../src/guestfs.pod:1233 ../src/guestfs.pod:1449 ../src/guestfs.pod:1454 ../src/guestfs.pod:1458 ../src/guestfs.pod:1560 ../src/guestfs.pod:1564 ../src/guestfs.pod:1568 ../src/guestfs.pod:1573 ../src/guestfs.pod:1581 ../src/guestfs.pod:1600 ../src/guestfs.pod:1608 ../src/guestfs.pod:1838 ../src/guestfs.pod:1844 ../src/guestfs.pod:1849 ../src/guestfs.pod:1855 ../src/guestfs.pod:1962 ../src/guestfs.pod:1966 ../src/guestfs.pod:1970 ../src/guestfs.pod:1974 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod: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:550 ../inspector/virt-inspector.pl:554 ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348 ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
757 msgid "*"
758 msgstr ""
759
760 # type: textblock
761 #: ../src/guestfs.pod:362
762 msgid ""
763 "The kernel version that the command runs under will be different from what "
764 "it expects."
765 msgstr ""
766
767 # type: textblock
768 #: ../src/guestfs.pod:367
769 msgid ""
770 "If the command needs to communicate with daemons, then most likely they "
771 "won't be running."
772 msgstr ""
773
774 # type: textblock
775 #: ../src/guestfs.pod:372
776 msgid "The command will be running in limited memory."
777 msgstr ""
778
779 # type: textblock
780 #: ../src/guestfs.pod:376
781 msgid ""
782 "The network may not be available unless you enable it (see "
783 "L</guestfs_set_network>)."
784 msgstr ""
785
786 # type: textblock
787 #: ../src/guestfs.pod:381
788 msgid "Only supports Linux guests (not Windows, BSD, etc)."
789 msgstr ""
790
791 # type: textblock
792 #: ../src/guestfs.pod:385
793 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
794 msgstr ""
795
796 # type: textblock
797 #: ../src/guestfs.pod:390
798 msgid ""
799 "For SELinux guests, you may need to enable SELinux and load policy first.  "
800 "See L</SELINUX> in this manpage."
801 msgstr ""
802
803 # type: textblock
804 #: ../src/guestfs.pod:395
805 msgid ""
806 "I<Security:> It is not safe to run commands from untrusted, possibly "
807 "malicious guests.  These commands may attempt to exploit your program by "
808 "sending unexpected output.  They could also try to exploit the Linux kernel "
809 "or qemu provided by the libguestfs appliance.  They could use the network "
810 "provided by the libguestfs appliance to bypass ordinary network partitions "
811 "and firewalls.  They could use the elevated privileges or different SELinux "
812 "context of your program to their advantage."
813 msgstr ""
814
815 # type: textblock
816 #: ../src/guestfs.pod:404
817 msgid ""
818 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
819 "(a script which runs when the guest next boots normally), and to have this "
820 "script run the commands you want in the normal context of the running guest, "
821 "network security and so on."
822 msgstr ""
823
824 # type: textblock
825 #: ../src/guestfs.pod:411
826 msgid ""
827 "The two main API calls to run commands are L</guestfs_command> and "
828 "L</guestfs_sh> (there are also variations)."
829 msgstr ""
830
831 # type: textblock
832 #: ../src/guestfs.pod:414
833 msgid ""
834 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
835 "shell globs, redirections, etc will work."
836 msgstr ""
837
838 # type: =head2
839 #: ../src/guestfs.pod:417
840 msgid "CONFIGURATION FILES"
841 msgstr ""
842
843 # type: textblock
844 #: ../src/guestfs.pod:419
845 msgid ""
846 "To read and write configuration files in Linux guest filesystems, we "
847 "strongly recommend using Augeas.  For example, Augeas understands how to "
848 "read and write, say, a Linux shadow password file or X.org configuration "
849 "file, and so avoids you having to write that code."
850 msgstr ""
851
852 # type: textblock
853 #: ../src/guestfs.pod:424
854 msgid ""
855 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
856 "document Augeas itself here because there is excellent documentation on the "
857 "L<http://augeas.net/> website."
858 msgstr ""
859
860 # type: textblock
861 #: ../src/guestfs.pod:428
862 msgid ""
863 "If you don't want to use Augeas (you fool!) then try calling "
864 "L</guestfs_read_lines> to get the file as a list of lines which you can "
865 "iterate over."
866 msgstr ""
867
868 # type: =head2
869 #: ../src/guestfs.pod:432
870 msgid "SELINUX"
871 msgstr ""
872
873 # type: textblock
874 #: ../src/guestfs.pod:434
875 msgid ""
876 "We support SELinux guests.  To ensure that labeling happens correctly in "
877 "SELinux guests, you need to enable SELinux and load the guest's policy:"
878 msgstr ""
879
880 # type: =item
881 #: ../src/guestfs.pod:440 ../src/guestfs.pod:953
882 msgid "1."
883 msgstr ""
884
885 # type: textblock
886 #: ../src/guestfs.pod:442
887 msgid "Before launching, do:"
888 msgstr ""
889
890 # type: verbatim
891 #: ../src/guestfs.pod:444
892 #, no-wrap
893 msgid ""
894 " guestfs_set_selinux (g, 1);\n"
895 "\n"
896 msgstr ""
897
898 # type: =item
899 #: ../src/guestfs.pod:446 ../src/guestfs.pod:957
900 msgid "2."
901 msgstr ""
902
903 # type: textblock
904 #: ../src/guestfs.pod:448
905 msgid ""
906 "After mounting the guest's filesystem(s), load the policy.  This is best "
907 "done by running the L<load_policy(8)> command in the guest itself:"
908 msgstr ""
909
910 # type: verbatim
911 #: ../src/guestfs.pod:452
912 #, no-wrap
913 msgid ""
914 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
915 "\n"
916 msgstr ""
917
918 # type: textblock
919 #: ../src/guestfs.pod:454
920 msgid ""
921 "(Older versions of C<load_policy> require you to specify the name of the "
922 "policy file)."
923 msgstr ""
924
925 # type: =item
926 #: ../src/guestfs.pod:457 ../src/guestfs.pod:963
927 msgid "3."
928 msgstr ""
929
930 # type: textblock
931 #: ../src/guestfs.pod:459
932 msgid ""
933 "Optionally, set the security context for the API.  The correct security "
934 "context to use can only be known by inspecting the guest.  As an example:"
935 msgstr ""
936
937 # type: verbatim
938 #: ../src/guestfs.pod:463
939 #, no-wrap
940 msgid ""
941 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
942 "\n"
943 msgstr ""
944
945 # type: textblock
946 #: ../src/guestfs.pod:467
947 msgid "This will work for running commands and editing existing files."
948 msgstr ""
949
950 # type: textblock
951 #: ../src/guestfs.pod:469
952 msgid ""
953 "When new files are created, you may need to label them explicitly, for "
954 "example by running the external command C<restorecon pathname>."
955 msgstr ""
956
957 # type: =head2
958 #: ../src/guestfs.pod:473
959 msgid "UMASK"
960 msgstr ""
961
962 # type: textblock
963 #: ../src/guestfs.pod:475
964 msgid ""
965 "Certain calls are affected by the current file mode creation mask (the "
966 "\"umask\").  In particular ones which create files or directories, such as "
967 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
968 "either the default mode that the file is created with or modifies the mode "
969 "that you supply."
970 msgstr ""
971
972 # type: textblock
973 #: ../src/guestfs.pod:481
974 msgid ""
975 "The default umask is C<022>, so files are created with modes such as C<0644> "
976 "and directories with C<0755>."
977 msgstr ""
978
979 # type: textblock
980 #: ../src/guestfs.pod:484
981 msgid ""
982 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
983 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
984 "L</guestfs_chmod> after creating each file or directory."
985 msgstr ""
986
987 # type: textblock
988 #: ../src/guestfs.pod:488
989 msgid "For more information about umask, see L<umask(2)>."
990 msgstr ""
991
992 # type: =head1
993 #: ../src/guestfs.pod:490 ../fish/guestfish.pod:669
994 msgid "ENCRYPTED DISKS"
995 msgstr ""
996
997 # type: textblock
998 #: ../src/guestfs.pod:492
999 msgid ""
1000 "Libguestfs allows you to access Linux guests which have been encrypted using "
1001 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1002 "standard.  This includes nearly all whole disk encryption systems used by "
1003 "modern Linux guests."
1004 msgstr ""
1005
1006 # type: textblock
1007 #: ../src/guestfs.pod:498
1008 msgid ""
1009 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1010 "returns the string C<crypto_LUKS>)."
1011 msgstr ""
1012
1013 # type: textblock
1014 #: ../src/guestfs.pod:501
1015 msgid ""
1016 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1017 "will require the passphrase!"
1018 msgstr ""
1019
1020 # type: textblock
1021 #: ../src/guestfs.pod:504
1022 msgid ""
1023 "Opening a LUKS device creates a new device mapper device called "
1024 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1025 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1026 "decrypted from and encrypted to the underlying block device respectively."
1027 msgstr ""
1028
1029 # type: textblock
1030 #: ../src/guestfs.pod:510
1031 msgid ""
1032 "LVM volume groups on the device can be made visible by calling "
1033 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1034 "volume(s) can now be mounted in the usual way."
1035 msgstr ""
1036
1037 # type: textblock
1038 #: ../src/guestfs.pod:514
1039 msgid ""
1040 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1041 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1042 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1043 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1044 "underlying encrypted block device)."
1045 msgstr ""
1046
1047 # type: =head2
1048 #: ../src/guestfs.pod:521
1049 msgid "INSPECTION"
1050 msgstr ""
1051
1052 # type: textblock
1053 #: ../src/guestfs.pod:523
1054 msgid ""
1055 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1056 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1057 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1058 "frequently used part of this library has been rewritten in C and moved into "
1059 "the core code)."
1060 msgstr ""
1061
1062 # type: textblock
1063 #: ../src/guestfs.pod:529
1064 msgid ""
1065 "Add all disks belonging to the unknown virtual machine and call "
1066 "L</guestfs_launch> in the usual way."
1067 msgstr ""
1068
1069 # type: textblock
1070 #: ../src/guestfs.pod:532
1071 msgid ""
1072 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1073 "and certain heuristics, and returns a list of operating systems that were "
1074 "found.  An empty list means none were found.  A single element is the root "
1075 "filesystem of the operating system.  For dual- or multi-boot guests, "
1076 "multiple roots can be returned, each one corresponding to a separate "
1077 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1078 "world of virtualization, but since this scenario can happen, we have built "
1079 "libguestfs to deal with it.)"
1080 msgstr ""
1081
1082 # type: textblock
1083 #: ../src/guestfs.pod:541
1084 msgid ""
1085 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1086 "to get additional details about that operating system.  For example, call "
1087 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1088 "Windows and Linux-based operating systems respectively."
1089 msgstr ""
1090
1091 # type: textblock
1092 #: ../src/guestfs.pod:547
1093 msgid ""
1094 "Un*x-like and Linux-based operating systems usually consist of several "
1095 "filesystems which are mounted at boot time (for example, a separate boot "
1096 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1097 "filesystems correspond to mount points.  Call "
1098 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1099 "hash table like this example:"
1100 msgstr ""
1101
1102 # type: verbatim
1103 #: ../src/guestfs.pod:554
1104 #, no-wrap
1105 msgid ""
1106 " /boot => /dev/sda1\n"
1107 " /     => /dev/vg_guest/lv_root\n"
1108 " /usr  => /dev/vg_guest/lv_usr\n"
1109 "\n"
1110 msgstr ""
1111
1112 # type: textblock
1113 #: ../src/guestfs.pod:558
1114 msgid ""
1115 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1116 "filesystems as suggested."
1117 msgstr ""
1118
1119 # type: textblock
1120 #: ../src/guestfs.pod:561
1121 msgid ""
1122 "Be careful to mount filesystems in the right order (eg. C</> before "
1123 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1124 "work."
1125 msgstr ""
1126
1127 # type: textblock
1128 #: ../src/guestfs.pod:565
1129 msgid ""
1130 "Inspection currently only works for some common operating systems.  "
1131 "Contributors are welcome to send patches for other operating systems that we "
1132 "currently cannot detect."
1133 msgstr ""
1134
1135 # type: textblock
1136 #: ../src/guestfs.pod:569
1137 msgid ""
1138 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1139 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1140 "encrypted devices."
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:573
1145 msgid ""
1146 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1147 "inspection and caches the results in the guest handle.  Subsequent calls to "
1148 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1149 "re-read the disks.  If you change the content of the guest disks, you can "
1150 "redo inspection by calling L</guestfs_inspect_os> again."
1151 msgstr ""
1152
1153 # type: =head2
1154 #: ../src/guestfs.pod:580
1155 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1156 msgstr ""
1157
1158 # type: textblock
1159 #: ../src/guestfs.pod:582
1160 msgid ""
1161 "Libguestfs can mount NTFS partitions.  It does this using the "
1162 "L<http://www.ntfs-3g.org/> driver."
1163 msgstr ""
1164
1165 # type: textblock
1166 #: ../src/guestfs.pod:585
1167 msgid ""
1168 "DOS and Windows still use drive letters, and the filesystems are always "
1169 "treated as case insensitive by Windows itself, and therefore you might find "
1170 "a Windows configuration file referring to a path like "
1171 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1172 "that directory might be referred to as C</WINDOWS/System32>."
1173 msgstr ""
1174
1175 # type: textblock
1176 #: ../src/guestfs.pod:591
1177 msgid ""
1178 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1179 "libguestfs to read the appropriate Windows Registry and configuration files, "
1180 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1181 "L<virt-inspector(1)>)."
1182 msgstr ""
1183
1184 # type: textblock
1185 #: ../src/guestfs.pod:596
1186 msgid ""
1187 "Replacing backslash characters with forward slash characters is also outside "
1188 "the scope of libguestfs, but something that you can easily do."
1189 msgstr ""
1190
1191 # type: textblock
1192 #: ../src/guestfs.pod:599
1193 msgid ""
1194 "Where we can help is in resolving the case insensitivity of paths.  For "
1195 "this, call L</guestfs_case_sensitive_path>."
1196 msgstr ""
1197
1198 # type: textblock
1199 #: ../src/guestfs.pod:602
1200 msgid ""
1201 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1202 "files, through the library C<hivex> which is part of the libguestfs project "
1203 "although ships as a separate tarball.  You have to locate and download the "
1204 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1205 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1206 "L<virt-win-reg(1)> for more help on this issue."
1207 msgstr ""
1208
1209 # type: =head2
1210 #: ../src/guestfs.pod:610
1211 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1212 msgstr ""
1213
1214 # type: textblock
1215 #: ../src/guestfs.pod:612
1216 msgid ""
1217 "Although we don't want to discourage you from using the C API, we will "
1218 "mention here that the same API is also available in other languages."
1219 msgstr ""
1220
1221 # type: textblock
1222 #: ../src/guestfs.pod:615
1223 msgid ""
1224 "The API is broadly identical in all supported languages.  This means that "
1225 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1226 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1227 "words, a straightforward, predictable isomorphism between each language."
1228 msgstr ""
1229
1230 # type: textblock
1231 #: ../src/guestfs.pod:621
1232 msgid ""
1233 "Error messages are automatically transformed into exceptions if the language "
1234 "supports it."
1235 msgstr ""
1236
1237 # type: textblock
1238 #: ../src/guestfs.pod:624
1239 msgid ""
1240 "We don't try to \"object orientify\" parts of the API in OO languages, "
1241 "although contributors are welcome to write higher level APIs above what we "
1242 "provide in their favourite languages if they wish."
1243 msgstr ""
1244
1245 # type: =item
1246 #: ../src/guestfs.pod:630
1247 msgid "B<C++>"
1248 msgstr ""
1249
1250 # type: textblock
1251 #: ../src/guestfs.pod:632
1252 msgid ""
1253 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1254 "identical to the C API.  C++ classes and exceptions are not used."
1255 msgstr ""
1256
1257 # type: =item
1258 #: ../src/guestfs.pod:636
1259 msgid "B<C#>"
1260 msgstr ""
1261
1262 # type: textblock
1263 #: ../src/guestfs.pod:638
1264 msgid ""
1265 "The C# bindings are highly experimental.  Please read the warnings at the "
1266 "top of C<csharp/Libguestfs.cs>."
1267 msgstr ""
1268
1269 # type: =item
1270 #: ../src/guestfs.pod:641
1271 msgid "B<Haskell>"
1272 msgstr ""
1273
1274 # type: textblock
1275 #: ../src/guestfs.pod:643
1276 msgid ""
1277 "This is the only language binding that is working but incomplete.  Only "
1278 "calls which return simple integers have been bound in Haskell, and we are "
1279 "looking for help to complete this binding."
1280 msgstr ""
1281
1282 # type: =item
1283 #: ../src/guestfs.pod:647
1284 msgid "B<Java>"
1285 msgstr ""
1286
1287 # type: textblock
1288 #: ../src/guestfs.pod:649
1289 msgid ""
1290 "Full documentation is contained in the Javadoc which is distributed with "
1291 "libguestfs."
1292 msgstr ""
1293
1294 # type: =item
1295 #: ../src/guestfs.pod:652
1296 msgid "B<OCaml>"
1297 msgstr ""
1298
1299 # type: textblock
1300 #: ../src/guestfs.pod:654
1301 msgid "For documentation see the file C<guestfs.mli>."
1302 msgstr ""
1303
1304 # type: =item
1305 #: ../src/guestfs.pod:656
1306 msgid "B<Perl>"
1307 msgstr ""
1308
1309 # type: textblock
1310 #: ../src/guestfs.pod:658
1311 msgid "For documentation see L<Sys::Guestfs(3)>."
1312 msgstr ""
1313
1314 # type: =item
1315 #: ../src/guestfs.pod:660
1316 msgid "B<PHP>"
1317 msgstr ""
1318
1319 # type: textblock
1320 #: ../src/guestfs.pod:662
1321 msgid ""
1322 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1323 "the php-libguestfs package for your distribution."
1324 msgstr ""
1325
1326 # type: textblock
1327 #: ../src/guestfs.pod:665
1328 msgid "The PHP binding only works correctly on 64 bit machines."
1329 msgstr ""
1330
1331 # type: =item
1332 #: ../src/guestfs.pod:667
1333 msgid "B<Python>"
1334 msgstr ""
1335
1336 # type: textblock
1337 #: ../src/guestfs.pod:669
1338 msgid "For documentation do:"
1339 msgstr ""
1340
1341 # type: verbatim
1342 #: ../src/guestfs.pod:671
1343 #, no-wrap
1344 msgid ""
1345 " $ python\n"
1346 " >>> import guestfs\n"
1347 " >>> help (guestfs)\n"
1348 "\n"
1349 msgstr ""
1350
1351 # type: =item
1352 #: ../src/guestfs.pod:675
1353 msgid "B<Ruby>"
1354 msgstr ""
1355
1356 # type: textblock
1357 #: ../src/guestfs.pod:677
1358 msgid ""
1359 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1360 "can find examples written in Ruby in the libguestfs source."
1361 msgstr ""
1362
1363 # type: =item
1364 #: ../src/guestfs.pod:680
1365 msgid "B<shell scripts>"
1366 msgstr ""
1367
1368 # type: textblock
1369 #: ../src/guestfs.pod:682
1370 msgid "For documentation see L<guestfish(1)>."
1371 msgstr ""
1372
1373 # type: =head2
1374 #: ../src/guestfs.pod:686
1375 msgid "LIBGUESTFS GOTCHAS"
1376 msgstr ""
1377
1378 # type: textblock
1379 #: ../src/guestfs.pod:688
1380 msgid ""
1381 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1382 "system [...] that works in the way it is documented but is counterintuitive "
1383 "and almost invites mistakes.\""
1384 msgstr ""
1385
1386 # type: textblock
1387 #: ../src/guestfs.pod:692
1388 msgid ""
1389 "Since we developed libguestfs and the associated tools, there are several "
1390 "things we would have designed differently, but are now stuck with for "
1391 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1392 "release, you can expect these to change.  Beware of them."
1393 msgstr ""
1394
1395 # type: =item
1396 #: ../src/guestfs.pod:700
1397 msgid "Autosync / forgetting to sync."
1398 msgstr ""
1399
1400 # type: textblock
1401 #: ../src/guestfs.pod:702
1402 msgid ""
1403 "When modifying a filesystem from C or another language, you B<must> unmount "
1404 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1405 "libguestfs handle.  You can also call:"
1406 msgstr ""
1407
1408 # type: verbatim
1409 #: ../src/guestfs.pod:706
1410 #, no-wrap
1411 msgid ""
1412 " guestfs_set_autosync (g, 1);\n"
1413 "\n"
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:708
1418 msgid ""
1419 "to have the unmount/sync done automatically for you when the handle 'g' is "
1420 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1421 "q.v.)"
1422 msgstr ""
1423
1424 # type: textblock
1425 #: ../src/guestfs.pod:712
1426 msgid ""
1427 "If you forget to do this, then it is entirely possible that your changes "
1428 "won't be written out, or will be partially written, or (very rarely) that "
1429 "you'll get disk corruption."
1430 msgstr ""
1431
1432 # type: textblock
1433 #: ../src/guestfs.pod:716
1434 msgid ""
1435 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1436 "guestfish scripts that forget to sync will work just fine, which can make "
1437 "this very puzzling if you are trying to debug a problem."
1438 msgstr ""
1439
1440 # type: textblock
1441 #: ../src/guestfs.pod:720
1442 msgid ""
1443 "Update: Autosync is enabled by default for all API users starting from "
1444 "libguestfs 1.5.24."
1445 msgstr ""
1446
1447 # type: =item
1448 #: ../src/guestfs.pod:723
1449 msgid "Mount option C<-o sync> should not be the default."
1450 msgstr ""
1451
1452 # type: textblock
1453 #: ../src/guestfs.pod:725
1454 msgid ""
1455 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1456 "However C<-o sync> does not add any reliability benefit, but does have a "
1457 "very large performance impact."
1458 msgstr ""
1459
1460 # type: textblock
1461 #: ../src/guestfs.pod:729
1462 msgid ""
1463 "The work around is to use L</guestfs_mount_options> and set the mount "
1464 "options that you actually want to use."
1465 msgstr ""
1466
1467 # type: =item
1468 #: ../src/guestfs.pod:732
1469 msgid "Read-only should be the default."
1470 msgstr ""
1471
1472 # type: textblock
1473 #: ../src/guestfs.pod:734
1474 msgid ""
1475 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1476 "specify I<--rw> if you want to make changes to the image."
1477 msgstr ""
1478
1479 # type: textblock
1480 #: ../src/guestfs.pod:737
1481 msgid "This would reduce the potential to corrupt live VM images."
1482 msgstr ""
1483
1484 # type: textblock
1485 #: ../src/guestfs.pod:739
1486 msgid ""
1487 "Note that many filesystems change the disk when you just mount and unmount, "
1488 "even if you didn't perform any writes.  You need to use "
1489 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1490 msgstr ""
1491
1492 # type: =item
1493 #: ../src/guestfs.pod:743
1494 msgid "guestfish command line is hard to use."
1495 msgstr ""
1496
1497 # type: textblock
1498 #: ../src/guestfs.pod:745
1499 msgid ""
1500 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1501 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1502 "exist, so it fails.  In earlier versions of guestfish the error message was "
1503 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1504 "we should have used C<guestfish -c command> to run commands."
1505 msgstr ""
1506
1507 # type: =item
1508 #: ../src/guestfs.pod:752
1509 msgid "guestfish megabyte modifiers don't work right on all commands"
1510 msgstr ""
1511
1512 # type: textblock
1513 #: ../src/guestfs.pod:754
1514 msgid ""
1515 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1516 "other modifiers).  What guestfish actually does is to multiply the number "
1517 "part by the modifier part and pass the result to the C API.  However this "
1518 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1519 "expecting some other unit (eg. megabytes)."
1520 msgstr ""
1521
1522 # type: textblock
1523 #: ../src/guestfs.pod:761
1524 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1525 msgstr ""
1526
1527 # type: verbatim
1528 #: ../src/guestfs.pod:763
1529 #, no-wrap
1530 msgid ""
1531 " lvcreate LV VG 100M\n"
1532 "\n"
1533 msgstr ""
1534
1535 # type: textblock
1536 #: ../src/guestfs.pod:765
1537 msgid ""
1538 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1539 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1540 "megabytes * megabytes) logical volume.  The error message you get from this "
1541 "is also a little obscure."
1542 msgstr ""
1543
1544 # type: textblock
1545 #: ../src/guestfs.pod:770
1546 msgid ""
1547 "This could be fixed in the generator by specially marking parameters and "
1548 "return values which take bytes or other units."
1549 msgstr ""
1550
1551 # type: =item
1552 #: ../src/guestfs.pod:773
1553 msgid "Ambiguity between devices and paths"
1554 msgstr ""
1555
1556 # type: textblock
1557 #: ../src/guestfs.pod:775
1558 msgid ""
1559 "There is a subtle ambiguity in the API between a device name "
1560 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1561 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1562 msgstr ""
1563
1564 # type: textblock
1565 #: ../src/guestfs.pod:780
1566 msgid ""
1567 "In the current API we usually resolve this ambiguity by having two separate "
1568 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1569 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1570 "detecting if the path supplied begins with C</dev/>."
1571 msgstr ""
1572
1573 # type: textblock
1574 #: ../src/guestfs.pod:786
1575 msgid ""
1576 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1577 "make paths/devices into structured names.  One way to do this would be to "
1578 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1579 "aspect of grub.  Another way would be to use a structured type, equivalent "
1580 "to this OCaml type:"
1581 msgstr ""
1582
1583 # type: verbatim
1584 #: ../src/guestfs.pod:792
1585 #, no-wrap
1586 msgid ""
1587 " type path = Path of string | Device of int | Partition of int * int\n"
1588 "\n"
1589 msgstr ""
1590
1591 # type: textblock
1592 #: ../src/guestfs.pod:794
1593 msgid "which would allow you to pass arguments like:"
1594 msgstr ""
1595
1596 # type: verbatim
1597 #: ../src/guestfs.pod:796
1598 #, no-wrap
1599 msgid ""
1600 " Path \"/foo/bar\"\n"
1601 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1602 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1603 " Path \"/dev/sdb2\"    (* not a device *)\n"
1604 "\n"
1605 msgstr ""
1606
1607 # type: textblock
1608 #: ../src/guestfs.pod:801
1609 msgid ""
1610 "As you can see there are still problems to resolve even with this "
1611 "representation.  Also consider how it might work in guestfish."
1612 msgstr ""
1613
1614 # type: =head2
1615 #: ../src/guestfs.pod:806
1616 msgid "PROTOCOL LIMITS"
1617 msgstr ""
1618
1619 # type: textblock
1620 #: ../src/guestfs.pod:808
1621 msgid ""
1622 "Internally libguestfs uses a message-based protocol to pass API calls and "
1623 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1624 "plenty more detail about this).  The maximum message size used by the "
1625 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1626 "aware of this limit.  The API calls which may be affected are individually "
1627 "documented, with a link back to this section of the documentation."
1628 msgstr ""
1629
1630 # type: textblock
1631 #: ../src/guestfs.pod:816
1632 msgid ""
1633 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1634 "a simple string.  Because this string is at some point internally encoded as "
1635 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1636 "the requested file is larger than this then you will get an error."
1637 msgstr ""
1638
1639 # type: textblock
1640 #: ../src/guestfs.pod:822
1641 msgid ""
1642 "In order to transfer large files into and out of the guest filesystem, you "
1643 "need to use particular calls that support this.  The sections L</UPLOADING> "
1644 "and L</DOWNLOADING> document how to do this."
1645 msgstr ""
1646
1647 # type: textblock
1648 #: ../src/guestfs.pod:826
1649 msgid ""
1650 "You might also consider mounting the disk image using our FUSE filesystem "
1651 "support (L<guestmount(1)>)."
1652 msgstr ""
1653
1654 # type: =head2
1655 #: ../src/guestfs.pod:829
1656 msgid "KEYS AND PASSPHRASES"
1657 msgstr ""
1658
1659 # type: textblock
1660 #: ../src/guestfs.pod:831
1661 msgid ""
1662 "Certain libguestfs calls take a parameter that contains sensitive key "
1663 "material, passed in as a C string."
1664 msgstr ""
1665
1666 # type: textblock
1667 #: ../src/guestfs.pod:834
1668 msgid ""
1669 "In the future we would hope to change the libguestfs implementation so that "
1670 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1671 "swap.  However this is I<not> done at the moment, because of the complexity "
1672 "of such an implementation."
1673 msgstr ""
1674
1675 # type: textblock
1676 #: ../src/guestfs.pod:839
1677 msgid ""
1678 "Therefore you should be aware that any key parameter you pass to libguestfs "
1679 "might end up being written out to the swap partition.  If this is a concern, "
1680 "scrub the swap partition or don't use libguestfs on encrypted devices."
1681 msgstr ""
1682
1683 # type: =head1
1684 #: ../src/guestfs.pod:844
1685 msgid "CONNECTION MANAGEMENT"
1686 msgstr ""
1687
1688 # type: =head2
1689 #: ../src/guestfs.pod:846
1690 msgid "guestfs_h *"
1691 msgstr ""
1692
1693 # type: textblock
1694 #: ../src/guestfs.pod:848
1695 msgid ""
1696 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1697 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1698 "handle and release all resources used."
1699 msgstr ""
1700
1701 # type: textblock
1702 #: ../src/guestfs.pod:852
1703 msgid ""
1704 "For information on using multiple handles and threads, see the section "
1705 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1706 msgstr ""
1707
1708 # type: =head2
1709 #: ../src/guestfs.pod:855
1710 msgid "guestfs_create"
1711 msgstr ""
1712
1713 # type: verbatim
1714 #: ../src/guestfs.pod:857
1715 #, no-wrap
1716 msgid ""
1717 " guestfs_h *guestfs_create (void);\n"
1718 "\n"
1719 msgstr ""
1720
1721 # type: textblock
1722 #: ../src/guestfs.pod:859
1723 msgid "Create a connection handle."
1724 msgstr ""
1725
1726 # type: textblock
1727 #: ../src/guestfs.pod:861
1728 msgid ""
1729 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1730 "on the handle at least once."
1731 msgstr ""
1732
1733 # type: textblock
1734 #: ../src/guestfs.pod:864
1735 msgid ""
1736 "This function returns a non-NULL pointer to a handle on success or NULL on "
1737 "error."
1738 msgstr ""
1739
1740 # type: textblock
1741 #: ../src/guestfs.pod:867
1742 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1743 msgstr ""
1744
1745 # type: textblock
1746 #: ../src/guestfs.pod:869
1747 msgid ""
1748 "You may also want to configure error handling for the handle.  See L</ERROR "
1749 "HANDLING> section below."
1750 msgstr ""
1751
1752 # type: =head2
1753 #: ../src/guestfs.pod:872
1754 msgid "guestfs_close"
1755 msgstr ""
1756
1757 # type: verbatim
1758 #: ../src/guestfs.pod:874
1759 #, no-wrap
1760 msgid ""
1761 " void guestfs_close (guestfs_h *g);\n"
1762 "\n"
1763 msgstr ""
1764
1765 # type: textblock
1766 #: ../src/guestfs.pod:876
1767 msgid "This closes the connection handle and frees up all resources used."
1768 msgstr ""
1769
1770 # type: =head1
1771 #: ../src/guestfs.pod:878
1772 msgid "ERROR HANDLING"
1773 msgstr ""
1774
1775 # type: textblock
1776 #: ../src/guestfs.pod:880
1777 msgid ""
1778 "API functions can return errors.  For example, almost all functions that "
1779 "return C<int> will return C<-1> to indicate an error."
1780 msgstr ""
1781
1782 # type: textblock
1783 #: ../src/guestfs.pod:883
1784 msgid ""
1785 "Additional information is available for errors: an error message string and "
1786 "optionally an error number (errno) if the thing that failed was a system "
1787 "call."
1788 msgstr ""
1789
1790 # type: textblock
1791 #: ../src/guestfs.pod:887
1792 msgid ""
1793 "You can get at the additional information about the last error on the handle "
1794 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
1795 "up an error handler with L</guestfs_set_error_handler>."
1796 msgstr ""
1797
1798 # type: textblock
1799 #: ../src/guestfs.pod:892
1800 msgid ""
1801 "When the handle is created, a default error handler is installed which "
1802 "prints the error message string to C<stderr>.  For small short-running "
1803 "command line programs it is sufficient to do:"
1804 msgstr ""
1805
1806 # type: verbatim
1807 #: ../src/guestfs.pod:896
1808 #, no-wrap
1809 msgid ""
1810 " if (guestfs_launch (g) == -1)\n"
1811 "   exit (EXIT_FAILURE);\n"
1812 "\n"
1813 msgstr ""
1814
1815 # type: textblock
1816 #: ../src/guestfs.pod:899
1817 msgid ""
1818 "since the default error handler will ensure that an error message has been "
1819 "printed to C<stderr> before the program exits."
1820 msgstr ""
1821
1822 # type: textblock
1823 #: ../src/guestfs.pod:902
1824 msgid ""
1825 "For other programs the caller will almost certainly want to install an "
1826 "alternate error handler or do error handling in-line like this:"
1827 msgstr ""
1828
1829 # type: verbatim
1830 #: ../src/guestfs.pod:905
1831 #, no-wrap
1832 msgid ""
1833 " g = guestfs_create ();\n"
1834 " \n"
1835 msgstr ""
1836
1837 # type: verbatim
1838 #: ../src/guestfs.pod:907
1839 #, no-wrap
1840 msgid ""
1841 " /* This disables the default behaviour of printing errors\n"
1842 "    on stderr. */\n"
1843 " guestfs_set_error_handler (g, NULL, NULL);\n"
1844 " \n"
1845 msgstr ""
1846
1847 # type: verbatim
1848 #: ../src/guestfs.pod:911
1849 #, no-wrap
1850 msgid ""
1851 " if (guestfs_launch (g) == -1) {\n"
1852 "   /* Examine the error message and print it etc. */\n"
1853 "   char *msg = guestfs_last_error (g);\n"
1854 "   int errnum = guestfs_last_errno (g);\n"
1855 "   fprintf (stderr, \"%s\\n\", msg);\n"
1856 "   /* ... */\n"
1857 "  }\n"
1858 "\n"
1859 msgstr ""
1860
1861 # type: textblock
1862 #: ../src/guestfs.pod:919
1863 msgid ""
1864 "Out of memory errors are handled differently.  The default action is to call "
1865 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
1866 "L</guestfs_set_out_of_memory_handler>."
1867 msgstr ""
1868
1869 # type: textblock
1870 #: ../src/guestfs.pod:923
1871 msgid ""
1872 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
1873 "because there is no handle if this happens there is no way to get additional "
1874 "error information.  However L</guestfs_create> is supposed to be a "
1875 "lightweight operation which can only fail because of insufficient memory (it "
1876 "returns NULL in this case)."
1877 msgstr ""
1878
1879 # type: =head2
1880 #: ../src/guestfs.pod:929
1881 msgid "guestfs_last_error"
1882 msgstr ""
1883
1884 # type: verbatim
1885 #: ../src/guestfs.pod:931
1886 #, no-wrap
1887 msgid ""
1888 " const char *guestfs_last_error (guestfs_h *g);\n"
1889 "\n"
1890 msgstr ""
1891
1892 # type: textblock
1893 #: ../src/guestfs.pod:933
1894 msgid ""
1895 "This returns the last error message that happened on C<g>.  If there has not "
1896 "been an error since the handle was created, then this returns C<NULL>."
1897 msgstr ""
1898
1899 # type: textblock
1900 #: ../src/guestfs.pod:937
1901 msgid ""
1902 "The lifetime of the returned string is until the next error occurs, or "
1903 "L</guestfs_close> is called."
1904 msgstr ""
1905
1906 # type: =head2
1907 #: ../src/guestfs.pod:940
1908 msgid "guestfs_last_errno"
1909 msgstr ""
1910
1911 # type: verbatim
1912 #: ../src/guestfs.pod:942
1913 #, no-wrap
1914 msgid ""
1915 " int guestfs_last_errno (guestfs_h *g);\n"
1916 "\n"
1917 msgstr ""
1918
1919 # type: textblock
1920 #: ../src/guestfs.pod:944
1921 msgid "This returns the last error number (errno) that happened on C<g>."
1922 msgstr ""
1923
1924 # type: textblock
1925 #: ../src/guestfs.pod:946
1926 msgid "If successful, an errno integer not equal to zero is returned."
1927 msgstr ""
1928
1929 # type: textblock
1930 #: ../src/guestfs.pod:948
1931 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
1932 msgstr ""
1933
1934 # type: textblock
1935 #: ../src/guestfs.pod:955
1936 msgid "There has not been any error on the handle."
1937 msgstr ""
1938
1939 # type: textblock
1940 #: ../src/guestfs.pod:959
1941 msgid ""
1942 "There has been an error but the errno was meaningless.  This corresponds to "
1943 "the case where the error did not come from a failed system call, but for "
1944 "some other reason."
1945 msgstr ""
1946
1947 # type: textblock
1948 #: ../src/guestfs.pod:965
1949 msgid ""
1950 "There was an error from a failed system call, but for some reason the errno "
1951 "was not captured and returned.  This usually indicates a bug in libguestfs."
1952 msgstr ""
1953
1954 # type: textblock
1955 #: ../src/guestfs.pod:971
1956 msgid ""
1957 "Libguestfs tries to convert the errno from inside the applicance into a "
1958 "corresponding errno for the caller (not entirely trivial: the appliance "
1959 "might be running a completely different operating system from the library "
1960 "and error numbers are not standardized across Un*xen).  If this could not be "
1961 "done, then the error is translated to C<EINVAL>.  In practice this should "
1962 "only happen in very rare circumstances."
1963 msgstr ""
1964
1965 # type: =head2
1966 #: ../src/guestfs.pod:979
1967 msgid "guestfs_set_error_handler"
1968 msgstr ""
1969
1970 # type: verbatim
1971 #: ../src/guestfs.pod:981
1972 #, no-wrap
1973 msgid ""
1974 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1975 "                                           void *opaque,\n"
1976 "                                           const char *msg);\n"
1977 " void guestfs_set_error_handler (guestfs_h *g,\n"
1978 "                                 guestfs_error_handler_cb cb,\n"
1979 "                                 void *opaque);\n"
1980 "\n"
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:988
1985 msgid ""
1986 "The callback C<cb> will be called if there is an error.  The parameters "
1987 "passed to the callback are an opaque data pointer and the error message "
1988 "string."
1989 msgstr ""
1990
1991 # type: textblock
1992 #: ../src/guestfs.pod:992
1993 msgid ""
1994 "C<errno> is not passed to the callback.  To get that the callback must call "
1995 "L</guestfs_last_errno>."
1996 msgstr ""
1997
1998 # type: textblock
1999 #: ../src/guestfs.pod:995
2000 msgid ""
2001 "Note that the message string C<msg> is freed as soon as the callback "
2002 "function returns, so if you want to stash it somewhere you must make your "
2003 "own copy."
2004 msgstr ""
2005
2006 # type: textblock
2007 #: ../src/guestfs.pod:999
2008 msgid "The default handler prints messages on C<stderr>."
2009 msgstr ""
2010
2011 # type: textblock
2012 #: ../src/guestfs.pod:1001
2013 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2014 msgstr ""
2015
2016 # type: =head2
2017 #: ../src/guestfs.pod:1003
2018 msgid "guestfs_get_error_handler"
2019 msgstr ""
2020
2021 # type: verbatim
2022 #: ../src/guestfs.pod:1005
2023 #, no-wrap
2024 msgid ""
2025 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2026 "                                                     void **opaque_rtn);\n"
2027 "\n"
2028 msgstr ""
2029
2030 # type: textblock
2031 #: ../src/guestfs.pod:1008
2032 msgid "Returns the current error handler callback."
2033 msgstr ""
2034
2035 # type: =head2
2036 #: ../src/guestfs.pod:1010
2037 msgid "guestfs_set_out_of_memory_handler"
2038 msgstr ""
2039
2040 # type: verbatim
2041 #: ../src/guestfs.pod:1012
2042 #, no-wrap
2043 msgid ""
2044 " typedef void (*guestfs_abort_cb) (void);\n"
2045 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2046 "                                        guestfs_abort_cb);\n"
2047 "\n"
2048 msgstr ""
2049
2050 # type: textblock
2051 #: ../src/guestfs.pod:1016
2052 msgid ""
2053 "The callback C<cb> will be called if there is an out of memory situation.  "
2054 "I<Note this callback must not return>."
2055 msgstr ""
2056
2057 # type: textblock
2058 #: ../src/guestfs.pod:1019
2059 msgid "The default is to call L<abort(3)>."
2060 msgstr ""
2061
2062 # type: textblock
2063 #: ../src/guestfs.pod:1021
2064 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2065 msgstr ""
2066
2067 # type: =head2
2068 #: ../src/guestfs.pod:1024
2069 msgid "guestfs_get_out_of_memory_handler"
2070 msgstr ""
2071
2072 # type: verbatim
2073 #: ../src/guestfs.pod:1026
2074 #, no-wrap
2075 msgid ""
2076 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2077 "\n"
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:1028
2082 msgid "This returns the current out of memory handler."
2083 msgstr ""
2084
2085 # type: =head1
2086 #: ../src/guestfs.pod:1030
2087 msgid "PATH"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:1032
2092 msgid ""
2093 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2094 "internal path."
2095 msgstr ""
2096
2097 # type: textblock
2098 #: ../src/guestfs.pod:1035
2099 msgid ""
2100 "By default it looks for these in the directory C<$libdir/guestfs> "
2101 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2102 msgstr ""
2103
2104 # type: textblock
2105 #: ../src/guestfs.pod:1038
2106 msgid ""
2107 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2108 "to change the directories that libguestfs will search in.  The value is a "
2109 "colon-separated list of paths.  The current directory is I<not> searched "
2110 "unless the path contains an empty element or C<.>.  For example "
2111 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2112 "then C</usr/lib/guestfs>."
2113 msgstr ""
2114
2115 # type: =head1
2116 #: ../src/guestfs.pod:1045
2117 msgid "HIGH-LEVEL API ACTIONS"
2118 msgstr ""
2119
2120 # type: =head2
2121 #: ../src/guestfs.pod:1047
2122 msgid "ABI GUARANTEE"
2123 msgstr ""
2124
2125 # type: textblock
2126 #: ../src/guestfs.pod:1049
2127 msgid ""
2128 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2129 "actions as outlined in this section.  Although we will deprecate some "
2130 "actions, for example if they get replaced by newer calls, we will keep the "
2131 "old actions forever.  This allows you the developer to program in confidence "
2132 "against the libguestfs API."
2133 msgstr ""
2134
2135 # type: textblock
2136 #: ../src/guestfs.pod:1055 ../fish/guestfish.pod:907
2137 msgid "@ACTIONS@"
2138 msgstr ""
2139
2140 # type: =head1
2141 #: ../src/guestfs.pod:1057
2142 msgid "STRUCTURES"
2143 msgstr ""
2144
2145 # type: textblock
2146 #: ../src/guestfs.pod:1059
2147 msgid "@STRUCTS@"
2148 msgstr ""
2149
2150 # type: =head1
2151 #: ../src/guestfs.pod:1061
2152 msgid "AVAILABILITY"
2153 msgstr ""
2154
2155 # type: =head2
2156 #: ../src/guestfs.pod:1063
2157 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2158 msgstr ""
2159
2160 # type: textblock
2161 #: ../src/guestfs.pod:1065
2162 msgid ""
2163 "Using L</guestfs_available> you can test availability of the following "
2164 "groups of functions.  This test queries the appliance to see if the "
2165 "appliance you are currently using supports the functionality."
2166 msgstr ""
2167
2168 # type: textblock
2169 #: ../src/guestfs.pod:1070
2170 msgid "@AVAILABILITY@"
2171 msgstr ""
2172
2173 # type: =head2
2174 #: ../src/guestfs.pod:1072
2175 msgid "GUESTFISH supported COMMAND"
2176 msgstr ""
2177
2178 # type: textblock
2179 #: ../src/guestfs.pod:1074
2180 msgid ""
2181 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2182 "prints out the available groups and whether they are supported by this build "
2183 "of libguestfs.  Note however that you have to do C<run> first."
2184 msgstr ""
2185
2186 # type: =head2
2187 #: ../src/guestfs.pod:1079
2188 msgid "SINGLE CALLS AT COMPILE TIME"
2189 msgstr ""
2190
2191 # type: textblock
2192 #: ../src/guestfs.pod:1081
2193 msgid ""
2194 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2195 "function, such as:"
2196 msgstr ""
2197
2198 # type: verbatim
2199 #: ../src/guestfs.pod:1084
2200 #, no-wrap
2201 msgid ""
2202 " #define LIBGUESTFS_HAVE_DD 1\n"
2203 "\n"
2204 msgstr ""
2205
2206 # type: textblock
2207 #: ../src/guestfs.pod:1086
2208 msgid "if L</guestfs_dd> is available."
2209 msgstr ""
2210
2211 # type: textblock
2212 #: ../src/guestfs.pod:1088
2213 msgid ""
2214 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2215 "function is available at compile time, we recommended using build tools such "
2216 "as autoconf or cmake.  For example in autotools you could use:"
2217 msgstr ""
2218
2219 # type: verbatim
2220 #: ../src/guestfs.pod:1093
2221 #, no-wrap
2222 msgid ""
2223 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2224 " AC_CHECK_FUNCS([guestfs_dd])\n"
2225 "\n"
2226 msgstr ""
2227
2228 # type: textblock
2229 #: ../src/guestfs.pod:1096
2230 msgid ""
2231 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2232 "in your program."
2233 msgstr ""
2234
2235 # type: =head2
2236 #: ../src/guestfs.pod:1099
2237 msgid "SINGLE CALLS AT RUN TIME"
2238 msgstr ""
2239
2240 # type: textblock
2241 #: ../src/guestfs.pod:1101
2242 msgid ""
2243 "Testing at compile time doesn't guarantee that a function really exists in "
2244 "the library.  The reason is that you might be dynamically linked against a "
2245 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2246 "This situation unfortunately results in a segmentation fault, which is a "
2247 "shortcoming of the C dynamic linking system itself."
2248 msgstr ""
2249
2250 # type: textblock
2251 #: ../src/guestfs.pod:1108
2252 msgid ""
2253 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2254 "in this example program (note that you still need the compile time check as "
2255 "well):"
2256 msgstr ""
2257
2258 # type: verbatim
2259 #: ../src/guestfs.pod:1112
2260 #, no-wrap
2261 msgid ""
2262 " #include <stdio.h>\n"
2263 " #include <stdlib.h>\n"
2264 " #include <unistd.h>\n"
2265 " #include <dlfcn.h>\n"
2266 " #include <guestfs.h>\n"
2267 " \n"
2268 msgstr ""
2269
2270 # type: verbatim
2271 #: ../src/guestfs.pod:1118
2272 #, no-wrap
2273 msgid ""
2274 " main ()\n"
2275 " {\n"
2276 " #ifdef LIBGUESTFS_HAVE_DD\n"
2277 "   void *dl;\n"
2278 "   int has_function;\n"
2279 " \n"
2280 msgstr ""
2281
2282 # type: verbatim
2283 #: ../src/guestfs.pod:1124
2284 #, no-wrap
2285 msgid ""
2286 "   /* Test if the function guestfs_dd is really available. */\n"
2287 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2288 "   if (!dl) {\n"
2289 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2290 "     exit (EXIT_FAILURE);\n"
2291 "   }\n"
2292 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2293 "   dlclose (dl);\n"
2294 " \n"
2295 msgstr ""
2296
2297 # type: verbatim
2298 #: ../src/guestfs.pod:1133
2299 #, no-wrap
2300 msgid ""
2301 "   if (!has_function)\n"
2302 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2303 "   else {\n"
2304 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2305 "     /* Now it's safe to call\n"
2306 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2307 "     */\n"
2308 "   }\n"
2309 " #else\n"
2310 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2311 " #endif\n"
2312 "  }\n"
2313 "\n"
2314 msgstr ""
2315
2316 # type: textblock
2317 #: ../src/guestfs.pod:1146
2318 msgid ""
2319 "You may think the above is an awful lot of hassle, and it is.  There are "
2320 "other ways outside of the C linking system to ensure that this kind of "
2321 "incompatibility never arises, such as using package versioning:"
2322 msgstr ""
2323
2324 # type: verbatim
2325 #: ../src/guestfs.pod:1151
2326 #, no-wrap
2327 msgid ""
2328 " Requires: libguestfs >= 1.0.80\n"
2329 "\n"
2330 msgstr ""
2331
2332 # type: =head1
2333 #: ../src/guestfs.pod:1153
2334 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1155
2339 msgid ""
2340 "A recent feature of the API is the introduction of calls which take optional "
2341 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2342 "takes variable arguments (ie. C<...>), as in this example:"
2343 msgstr ""
2344
2345 # type: verbatim
2346 #: ../src/guestfs.pod:1160
2347 #, no-wrap
2348 msgid ""
2349 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2350 "\n"
2351 msgstr ""
2352
2353 # type: textblock
2354 #: ../src/guestfs.pod:1162
2355 msgid ""
2356 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2357 "call with no optional arguments specified:"
2358 msgstr ""
2359
2360 # type: verbatim
2361 #: ../src/guestfs.pod:1165
2362 #, no-wrap
2363 msgid ""
2364 " guestfs_add_drive_opts (g, filename, -1);\n"
2365 "\n"
2366 msgstr ""
2367
2368 # type: textblock
2369 #: ../src/guestfs.pod:1167
2370 msgid "With a single optional argument:"
2371 msgstr ""
2372
2373 # type: verbatim
2374 #: ../src/guestfs.pod:1169
2375 #, no-wrap
2376 msgid ""
2377 " guestfs_add_drive_opts (g, filename,\n"
2378 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2379 "                         -1);\n"
2380 "\n"
2381 msgstr ""
2382
2383 # type: textblock
2384 #: ../src/guestfs.pod:1173
2385 msgid "With two:"
2386 msgstr ""
2387
2388 # type: verbatim
2389 #: ../src/guestfs.pod:1175
2390 #, no-wrap
2391 msgid ""
2392 " guestfs_add_drive_opts (g, filename,\n"
2393 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2394 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2395 "                         -1);\n"
2396 "\n"
2397 msgstr ""
2398
2399 # type: textblock
2400 #: ../src/guestfs.pod:1180
2401 msgid ""
2402 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2403 "happen!"
2404 msgstr ""
2405
2406 # type: =head2
2407 #: ../src/guestfs.pod:1183
2408 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2409 msgstr ""
2410
2411 # type: textblock
2412 #: ../src/guestfs.pod:1185
2413 msgid ""
2414 "The second variant has the same name with the suffix C<_va>, which works the "
2415 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2416 "example function, this is declared:"
2417 msgstr ""
2418
2419 # type: verbatim
2420 #: ../src/guestfs.pod:1189
2421 #, no-wrap
2422 msgid ""
2423 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2424 "                                va_list args);\n"
2425 "\n"
2426 msgstr ""
2427
2428 # type: =head2
2429 #: ../src/guestfs.pod:1192
2430 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2431 msgstr ""
2432
2433 # type: textblock
2434 #: ../src/guestfs.pod:1194
2435 msgid ""
2436 "The third variant is useful where you need to construct these calls.  You "
2437 "pass in a structure where you fill in the optional fields.  The structure "
2438 "has a bitmask as the first element which you must set to indicate which "
2439 "fields you have filled in.  For our example function the structure and call "
2440 "are declared:"
2441 msgstr ""
2442
2443 # type: verbatim
2444 #: ../src/guestfs.pod:1200
2445 #, no-wrap
2446 msgid ""
2447 " struct guestfs_add_drive_opts_argv {\n"
2448 "   uint64_t bitmask;\n"
2449 "   int readonly;\n"
2450 "   const char *format;\n"
2451 "   /* ... */\n"
2452 " };\n"
2453 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2454 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2455 "\n"
2456 msgstr ""
2457
2458 # type: textblock
2459 #: ../src/guestfs.pod:1209
2460 msgid "You could call it like this:"
2461 msgstr ""
2462
2463 # type: verbatim
2464 #: ../src/guestfs.pod:1211
2465 #, no-wrap
2466 msgid ""
2467 " struct guestfs_add_drive_opts_argv optargs = {\n"
2468 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2469 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2470 "   .readonly = 1,\n"
2471 "   .format = \"qcow2\"\n"
2472 " };\n"
2473 " \n"
2474 msgstr ""
2475
2476 # type: verbatim
2477 #: ../src/guestfs.pod:1218
2478 #, no-wrap
2479 msgid ""
2480 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2481 "\n"
2482 msgstr ""
2483
2484 # type: textblock
2485 #: ../src/guestfs.pod:1220 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1255
2486 msgid "Notes:"
2487 msgstr ""
2488
2489 # type: textblock
2490 #: ../src/guestfs.pod:1226
2491 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2492 msgstr ""
2493
2494 # type: textblock
2495 #: ../src/guestfs.pod:1231
2496 msgid "You do not need to fill in all fields of the structure."
2497 msgstr ""
2498
2499 # type: textblock
2500 #: ../src/guestfs.pod:1235
2501 msgid ""
2502 "There must be a one-to-one correspondence between fields of the structure "
2503 "that are filled in, and bits set in the bitmask."
2504 msgstr ""
2505
2506 # type: =head2
2507 #: ../src/guestfs.pod:1240
2508 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2509 msgstr ""
2510
2511 # type: textblock
2512 #: ../src/guestfs.pod:1242
2513 msgid ""
2514 "In other languages, optional arguments are expressed in the way that is "
2515 "natural for that language.  We refer you to the language-specific "
2516 "documentation for more details on that."
2517 msgstr ""
2518
2519 # type: textblock
2520 #: ../src/guestfs.pod:1246
2521 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2522 msgstr ""
2523
2524 # type: =end
2525 #: ../src/guestfs.pod:1248 ../src/guestfs.pod:1253
2526 msgid "html"
2527 msgstr ""
2528
2529 # type: textblock
2530 #: ../src/guestfs.pod:1250
2531 msgid ""
2532 "<!-- old anchor for the next section --> <a "
2533 "name=\"state_machine_and_low_level_event_api\"/>"
2534 msgstr ""
2535
2536 # type: =head1
2537 #: ../src/guestfs.pod:1255
2538 msgid "ARCHITECTURE"
2539 msgstr ""
2540
2541 # type: textblock
2542 #: ../src/guestfs.pod:1257
2543 msgid ""
2544 "Internally, libguestfs is implemented by running an appliance (a special "
2545 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2546 "process of the main program."
2547 msgstr ""
2548
2549 # type: verbatim
2550 #: ../src/guestfs.pod:1261
2551 #, no-wrap
2552 msgid ""
2553 "  ___________________\n"
2554 " /                   \\\n"
2555 " | main program      |\n"
2556 " |                   |\n"
2557 " |                   |           child process / appliance\n"
2558 " |                   |           __________________________\n"
2559 " |                   |          / qemu                     \\\n"
2560 " +-------------------+   RPC    |      +-----------------+ |\n"
2561 " | libguestfs     <--------------------> guestfsd        | |\n"
2562 " |                   |          |      +-----------------+ |\n"
2563 " \\___________________/          |      | Linux kernel    | |\n"
2564 "                                |      +--^--------------+ |\n"
2565 "                                \\_________|________________/\n"
2566 "                                          |\n"
2567 "                                   _______v______\n"
2568 "                                  /              \\\n"
2569 "                                  | Device or    |\n"
2570 "                                  | disk image   |\n"
2571 "                                  \\______________/\n"
2572 "\n"
2573 msgstr ""
2574
2575 # type: textblock
2576 #: ../src/guestfs.pod:1281
2577 msgid ""
2578 "The library, linked to the main program, creates the child process and hence "
2579 "the appliance in the L</guestfs_launch> function."
2580 msgstr ""
2581
2582 # type: textblock
2583 #: ../src/guestfs.pod:1284
2584 msgid ""
2585 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2586 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2587 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2588 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2589 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2590 "attached to the qemu process which translates device access by the "
2591 "appliance's Linux kernel into accesses to the image."
2592 msgstr ""
2593
2594 # type: textblock
2595 #: ../src/guestfs.pod:1293
2596 msgid ""
2597 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2598 "Although the disk image you are attached to might also be used by some "
2599 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2600 "care if both libguestfs's qemu process and your virtual machine are trying "
2601 "to update the disk image at the same time, since these usually results in "
2602 "massive disk corruption)."
2603 msgstr ""
2604
2605 # type: =head1
2606 #: ../src/guestfs.pod:1300
2607 msgid "STATE MACHINE"
2608 msgstr ""
2609
2610 # type: textblock
2611 #: ../src/guestfs.pod:1302
2612 msgid "libguestfs uses a state machine to model the child process:"
2613 msgstr ""
2614
2615 # type: verbatim
2616 #: ../src/guestfs.pod:1304
2617 #, no-wrap
2618 msgid ""
2619 "                         |\n"
2620 "                    guestfs_create\n"
2621 "                         |\n"
2622 "                         |\n"
2623 "                     ____V_____\n"
2624 "                    /          \\\n"
2625 "                    |  CONFIG  |\n"
2626 "                    \\__________/\n"
2627 "                     ^ ^   ^  \\\n"
2628 "                    /  |    \\  \\ guestfs_launch\n"
2629 "                   /   |    _\\__V______\n"
2630 "                  /    |   /           \\\n"
2631 "                 /     |   | LAUNCHING |\n"
2632 "                /      |   \\___________/\n"
2633 "               /       |       /\n"
2634 "              /        |  guestfs_launch\n"
2635 "             /         |     /\n"
2636 "    ______  /        __|____V\n"
2637 "   /      \\ ------> /        \\\n"
2638 "   | BUSY |         | READY  |\n"
2639 "   \\______/ <------ \\________/\n"
2640 "\n"
2641 msgstr ""
2642
2643 # type: textblock
2644 #: ../src/guestfs.pod:1326
2645 msgid ""
2646 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2647 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2648 "(3) alternating between READY and BUSY as commands are issued to, and "
2649 "carried out by, the child process."
2650 msgstr ""
2651
2652 # type: textblock
2653 #: ../src/guestfs.pod:1331
2654 msgid ""
2655 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2656 "asynchronously at any time (eg. due to some internal error), and that causes "
2657 "the state to transition back to CONFIG."
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1335
2662 msgid ""
2663 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2664 "issued when in the CONFIG state."
2665 msgstr ""
2666
2667 # type: textblock
2668 #: ../src/guestfs.pod:1338
2669 msgid ""
2670 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2671 "L</guestfs_launch> blocks until the child process is READY to accept "
2672 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2673 "moves the state from CONFIG to LAUNCHING while it is running."
2674 msgstr ""
2675
2676 # type: textblock
2677 #: ../src/guestfs.pod:1344
2678 msgid ""
2679 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2680 "state.  These API calls block waiting for the command to be carried out "
2681 "(ie. the state to transition to BUSY and then back to READY).  There are no "
2682 "non-blocking versions, and no way to issue more than one command per handle "
2683 "at the same time."
2684 msgstr ""
2685
2686 # type: textblock
2687 #: ../src/guestfs.pod:1350
2688 msgid ""
2689 "Finally, the child process sends asynchronous messages back to the main "
2690 "program, such as kernel log messages.  You can register a callback to "
2691 "receive these messages."
2692 msgstr ""
2693
2694 # type: =head2
2695 #: ../src/guestfs.pod:1354
2696 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2697 msgstr ""
2698
2699 # type: textblock
2700 #: ../src/guestfs.pod:1356
2701 msgid ""
2702 "The child process generates events in some situations.  Current events "
2703 "include: receiving a log message, the child process exits."
2704 msgstr ""
2705
2706 # type: textblock
2707 #: ../src/guestfs.pod:1359
2708 msgid ""
2709 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2710 "types of events."
2711 msgstr ""
2712
2713 # type: textblock
2714 #: ../src/guestfs.pod:1362
2715 msgid ""
2716 "Only I<one callback of each type> can be registered for each handle.  "
2717 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2718 "that type.  Cancel all callbacks of this type by calling this function with "
2719 "C<cb> set to C<NULL>."
2720 msgstr ""
2721
2722 # type: =head2
2723 #: ../src/guestfs.pod:1367
2724 msgid "guestfs_set_log_message_callback"
2725 msgstr ""
2726
2727 # type: verbatim
2728 #: ../src/guestfs.pod:1369
2729 #, no-wrap
2730 msgid ""
2731 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2732 "                                         char *buf, int len);\n"
2733 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2734 "                                        guestfs_log_message_cb cb,\n"
2735 "                                        void *opaque);\n"
2736 "\n"
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1375
2741 msgid ""
2742 "The callback function C<cb> will be called whenever qemu or the guest writes "
2743 "anything to the console."
2744 msgstr ""
2745
2746 # type: textblock
2747 #: ../src/guestfs.pod:1378
2748 msgid "Use this function to capture kernel messages and similar."
2749 msgstr ""
2750
2751 # type: textblock
2752 #: ../src/guestfs.pod:1380
2753 msgid ""
2754 "Normally there is no log message handler, and log messages are just "
2755 "discarded."
2756 msgstr ""
2757
2758 # type: =head2
2759 #: ../src/guestfs.pod:1383
2760 msgid "guestfs_set_subprocess_quit_callback"
2761 msgstr ""
2762
2763 # type: verbatim
2764 #: ../src/guestfs.pod:1385
2765 #, no-wrap
2766 msgid ""
2767 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2768 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2769 "                                            guestfs_subprocess_quit_cb cb,\n"
2770 "                                            void *opaque);\n"
2771 "\n"
2772 msgstr ""
2773
2774 # type: textblock
2775 #: ../src/guestfs.pod:1390
2776 msgid ""
2777 "The callback function C<cb> will be called when the child process quits, "
2778 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2779 "corresponds to a transition from any state to the CONFIG state)."
2780 msgstr ""
2781
2782 # type: =head2
2783 #: ../src/guestfs.pod:1395
2784 msgid "guestfs_set_launch_done_callback"
2785 msgstr ""
2786
2787 # type: verbatim
2788 #: ../src/guestfs.pod:1397
2789 #, no-wrap
2790 msgid ""
2791 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2792 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2793 "                                        guestfs_launch_done_cb cb,\n"
2794 "                                        void *opaque);\n"
2795 "\n"
2796 msgstr ""
2797
2798 # type: textblock
2799 #: ../src/guestfs.pod:1402
2800 msgid ""
2801 "The callback function C<cb> will be called when the child process becomes "
2802 "ready first time after it has been launched.  (This corresponds to a "
2803 "transition from LAUNCHING to the READY state)."
2804 msgstr ""
2805
2806 # type: =head2
2807 #: ../src/guestfs.pod:1406
2808 msgid "guestfs_set_close_callback"
2809 msgstr ""
2810
2811 # type: verbatim
2812 #: ../src/guestfs.pod:1408
2813 #, no-wrap
2814 msgid ""
2815 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2816 " void guestfs_set_close_callback (guestfs_h *g,\n"
2817 "                                  guestfs_close_cb cb,\n"
2818 "                                  void *opaque);\n"
2819 "\n"
2820 msgstr ""
2821
2822 # type: textblock
2823 #: ../src/guestfs.pod:1413
2824 msgid ""
2825 "The callback function C<cb> will be called while the handle is being closed "
2826 "(synchronously from L</guestfs_close>)."
2827 msgstr ""
2828
2829 # type: textblock
2830 #: ../src/guestfs.pod:1416
2831 msgid ""
2832 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2833 "handles that are open when the program exits.  This means that this callback "
2834 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2835 "problems in higher-level languages (eg. if your HLL interpreter has already "
2836 "been cleaned up by the time this is called, and if your callback then jumps "
2837 "into some HLL function)."
2838 msgstr ""
2839
2840 # type: =head2
2841 #: ../src/guestfs.pod:1424
2842 msgid "guestfs_set_progress_callback"
2843 msgstr ""
2844
2845 # type: verbatim
2846 #: ../src/guestfs.pod:1426
2847 #, no-wrap
2848 msgid ""
2849 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2850 "                                      int proc_nr, int serial,\n"
2851 "                                      uint64_t position, uint64_t total);\n"
2852 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2853 "                                     guestfs_progress_cb cb,\n"
2854 "                                     void *opaque);\n"
2855 "\n"
2856 msgstr ""
2857
2858 # type: textblock
2859 #: ../src/guestfs.pod:1433
2860 msgid ""
2861 "Some long-running operations can generate progress messages.  If this "
2862 "callback is registered, then it will be called each time a progress message "
2863 "is generated (usually two seconds after the operation started, and three "
2864 "times per second thereafter until it completes, although the frequency may "
2865 "change in future versions)."
2866 msgstr ""
2867
2868 # type: textblock
2869 #: ../src/guestfs.pod:1439
2870 msgid ""
2871 "The callback receives two numbers: C<position> and C<total>.  The units of "
2872 "C<total> are not defined, although for some operations C<total> may relate "
2873 "in some way to the amount of data to be transferred (eg. in bytes or "
2874 "megabytes), and C<position> may be the portion which has been transferred."
2875 msgstr ""
2876
2877 # type: textblock
2878 #: ../src/guestfs.pod:1445
2879 msgid "The only defined and stable parts of the API are:"
2880 msgstr ""
2881
2882 # type: textblock
2883 #: ../src/guestfs.pod:1451
2884 msgid ""
2885 "The callback can display to the user some type of progress bar or indicator "
2886 "which shows the ratio of C<position>:C<total>."
2887 msgstr ""
2888
2889 # type: textblock
2890 #: ../src/guestfs.pod:1456
2891 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2892 msgstr ""
2893
2894 # type: textblock
2895 #: ../src/guestfs.pod:1460
2896 msgid ""
2897 "If any progress notification is sent during a call, then a final progress "
2898 "notification is always sent when C<position> = C<total>."
2899 msgstr ""
2900
2901 # type: textblock
2902 #: ../src/guestfs.pod:1463
2903 msgid ""
2904 "This is to simplify caller code, so callers can easily set the progress "
2905 "indicator to \"100%\" at the end of the operation, without requiring special "
2906 "code to detect this case."
2907 msgstr ""
2908
2909 # type: textblock
2910 #: ../src/guestfs.pod:1469
2911 msgid ""
2912 "The callback also receives the procedure number and serial number of the "
2913 "call.  These are only useful for debugging protocol issues, and the callback "
2914 "can normally ignore them.  The callback may want to print these numbers in "
2915 "error messages or debugging messages."
2916 msgstr ""
2917
2918 # type: =head1
2919 #: ../src/guestfs.pod:1474
2920 msgid "PRIVATE DATA AREA"
2921 msgstr ""
2922
2923 # type: textblock
2924 #: ../src/guestfs.pod:1476
2925 msgid ""
2926 "You can attach named pieces of private data to the libguestfs handle, and "
2927 "fetch them by name for the lifetime of the handle.  This is called the "
2928 "private data area and is only available from the C API."
2929 msgstr ""
2930
2931 # type: textblock
2932 #: ../src/guestfs.pod:1480
2933 msgid "To attach a named piece of data, use the following call:"
2934 msgstr ""
2935
2936 # type: verbatim
2937 #: ../src/guestfs.pod:1482
2938 #, no-wrap
2939 msgid ""
2940 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2941 "\n"
2942 msgstr ""
2943
2944 # type: textblock
2945 #: ../src/guestfs.pod:1484
2946 msgid ""
2947 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2948 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2949 "overwritten."
2950 msgstr ""
2951
2952 # type: textblock
2953 #: ../src/guestfs.pod:1488
2954 msgid ""
2955 "You can use any C<key> you want, but names beginning with an underscore "
2956 "character are reserved for internal libguestfs purposes (for implementing "
2957 "language bindings).  It is recommended to prefix the name with some unique "
2958 "string to avoid collisions with other users."
2959 msgstr ""
2960
2961 # type: textblock
2962 #: ../src/guestfs.pod:1493
2963 msgid "To retrieve the pointer, use:"
2964 msgstr ""
2965
2966 # type: verbatim
2967 #: ../src/guestfs.pod:1495
2968 #, no-wrap
2969 msgid ""
2970 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2971 "\n"
2972 msgstr ""
2973
2974 # type: textblock
2975 #: ../src/guestfs.pod:1497
2976 msgid ""
2977 "This function returns C<NULL> if either no data is found associated with "
2978 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2979 "C<NULL>."
2980 msgstr ""
2981
2982 # type: textblock
2983 #: ../src/guestfs.pod:1501
2984 msgid ""
2985 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2986 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2987 "all.  In particular, libguestfs does I<not> try to free the data when the "
2988 "handle is closed.  If the data must be freed, then the caller must either "
2989 "free it before calling L</guestfs_close> or must set up a close callback to "
2990 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2991 "can be registered for a handle)."
2992 msgstr ""
2993
2994 # type: textblock
2995 #: ../src/guestfs.pod:1509
2996 msgid ""
2997 "The private data area is implemented using a hash table, and should be "
2998 "reasonably efficient for moderate numbers of keys."
2999 msgstr ""
3000
3001 # type: =head1
3002 #: ../src/guestfs.pod:1512
3003 msgid "BLOCK DEVICE NAMING"
3004 msgstr ""
3005
3006 # type: textblock
3007 #: ../src/guestfs.pod:1514
3008 msgid ""
3009 "In the kernel there is now quite a profusion of schemata for naming block "
3010 "devices (in this context, by I<block device> I mean a physical or virtual "
3011 "hard drive).  The original Linux IDE driver used names starting with "
3012 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
3013 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
3014 "replacement for the old IDE driver (particularly for SATA devices) those "
3015 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
3016 "machines with paravirtualized drivers.  This has created several different "
3017 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
3018 "Xen PV disks."
3019 msgstr ""
3020
3021 # type: textblock
3022 #: ../src/guestfs.pod:1526
3023 msgid ""
3024 "As discussed above, libguestfs uses a qemu appliance running an embedded "
3025 "Linux kernel to access block devices.  We can run a variety of appliances "
3026 "based on a variety of Linux kernels."
3027 msgstr ""
3028
3029 # type: textblock
3030 #: ../src/guestfs.pod:1530
3031 msgid ""
3032 "This causes a problem for libguestfs because many API calls use device or "
3033 "partition names.  Working scripts and the recipe (example) scripts that we "
3034 "make available over the internet could fail if the naming scheme changes."
3035 msgstr ""
3036
3037 # type: textblock
3038 #: ../src/guestfs.pod:1535
3039 msgid ""
3040 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
3041 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
3042 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
3043 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
3044 msgstr ""
3045
3046 # type: textblock
3047 #: ../src/guestfs.pod:1541
3048 msgid ""
3049 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
3050 "L</guestfs_list_partitions> and similar calls return the true names of the "
3051 "devices and partitions as known to the appliance."
3052 msgstr ""
3053
3054 # type: =head2
3055 #: ../src/guestfs.pod:1546
3056 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
3057 msgstr ""
3058
3059 # type: textblock
3060 #: ../src/guestfs.pod:1548
3061 msgid ""
3062 "Usually this translation is transparent.  However in some (very rare)  cases "
3063 "you may need to know the exact algorithm.  Such cases include where you use "
3064 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
3065 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
3066 "devices."
3067 msgstr ""
3068
3069 # type: textblock
3070 #: ../src/guestfs.pod:1554
3071 msgid ""
3072 "The algorithm is applied only to I<parameters> which are known to be either "
3073 "device or partition names.  Return values from functions such as "
3074 "L</guestfs_list_devices> are never changed."
3075 msgstr ""
3076
3077 # type: textblock
3078 #: ../src/guestfs.pod:1562
3079 msgid "Is the string a parameter which is a device or partition name?"
3080 msgstr ""
3081
3082 # type: textblock
3083 #: ../src/guestfs.pod:1566
3084 msgid "Does the string begin with C</dev/sd>?"
3085 msgstr ""
3086
3087 # type: textblock
3088 #: ../src/guestfs.pod:1570
3089 msgid ""
3090 "Does the named device exist? If so, we use that device.  However if I<not> "
3091 "then we continue with this algorithm."
3092 msgstr ""
3093
3094 # type: textblock
3095 #: ../src/guestfs.pod:1575
3096 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1577
3101 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3102 msgstr ""
3103
3104 # type: textblock
3105 #: ../src/guestfs.pod:1579
3106 msgid "If that named device exists, use it.  If not, continue."
3107 msgstr ""
3108
3109 # type: textblock
3110 #: ../src/guestfs.pod:1583
3111 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3112 msgstr ""
3113
3114 # type: textblock
3115 #: ../src/guestfs.pod:1585
3116 msgid "If that named device exists, use it.  If not, return an error."
3117 msgstr ""
3118
3119 # type: =head2
3120 #: ../src/guestfs.pod:1589
3121 msgid "PORTABILITY CONCERNS"
3122 msgstr ""
3123
3124 # type: textblock
3125 #: ../src/guestfs.pod:1591
3126 msgid ""
3127 "Although the standard naming scheme and automatic translation is useful for "
3128 "simple programs and guestfish scripts, for larger programs it is best not to "
3129 "rely on this mechanism."
3130 msgstr ""
3131
3132 # type: textblock
3133 #: ../src/guestfs.pod:1595
3134 msgid ""
3135 "Where possible for maximum future portability programs using libguestfs "
3136 "should use these future-proof techniques:"
3137 msgstr ""
3138
3139 # type: textblock
3140 #: ../src/guestfs.pod:1602
3141 msgid ""
3142 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3143 "device names, and then use those names directly."
3144 msgstr ""
3145
3146 # type: textblock
3147 #: ../src/guestfs.pod:1605
3148 msgid "Since those device names exist by definition, they will never be translated."
3149 msgstr ""
3150
3151 # type: textblock
3152 #: ../src/guestfs.pod:1610
3153 msgid ""
3154 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3155 "filesystem labels."
3156 msgstr ""
3157
3158 # type: =head1
3159 #: ../src/guestfs.pod:1615
3160 msgid "INTERNALS"
3161 msgstr ""
3162
3163 # type: =head2
3164 #: ../src/guestfs.pod:1617
3165 msgid "COMMUNICATION PROTOCOL"
3166 msgstr ""
3167
3168 # type: textblock
3169 #: ../src/guestfs.pod:1619
3170 msgid ""
3171 "Don't rely on using this protocol directly.  This section documents how it "
3172 "currently works, but it may change at any time."
3173 msgstr ""
3174
3175 # type: textblock
3176 #: ../src/guestfs.pod:1622
3177 msgid ""
3178 "The protocol used to talk between the library and the daemon running inside "
3179 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3180 "1014, RFC 1832, RFC 4506)."
3181 msgstr ""
3182
3183 # type: textblock
3184 #: ../src/guestfs.pod:1626
3185 msgid ""
3186 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3187 "this file is automatically generated)."
3188 msgstr ""
3189
3190 # type: textblock
3191 #: ../src/guestfs.pod:1629
3192 msgid ""
3193 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3194 "and C<FileOut> parameters, which are handled with very simple request/reply "
3195 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3196 "parameters, which use the same request and reply messages, but they may also "
3197 "be followed by files sent using a chunked encoding."
3198 msgstr ""
3199
3200 # type: =head3
3201 #: ../src/guestfs.pod:1636
3202 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3203 msgstr ""
3204
3205 # type: textblock
3206 #: ../src/guestfs.pod:1638
3207 msgid "For ordinary functions, the request message is:"
3208 msgstr ""
3209
3210 # type: verbatim
3211 #: ../src/guestfs.pod:1640
3212 #, no-wrap
3213 msgid ""
3214 " total length (header + arguments,\n"
3215 "      but not including the length word itself)\n"
3216 " struct guestfs_message_header (encoded as XDR)\n"
3217 " struct guestfs_<foo>_args (encoded as XDR)\n"
3218 "\n"
3219 msgstr ""
3220
3221 # type: textblock
3222 #: ../src/guestfs.pod:1645
3223 msgid ""
3224 "The total length field allows the daemon to allocate a fixed size buffer "
3225 "into which it slurps the rest of the message.  As a result, the total length "
3226 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3227 "effective size of any request is limited to somewhere under this size."
3228 msgstr ""
3229
3230 # type: textblock
3231 #: ../src/guestfs.pod:1651
3232 msgid ""
3233 "Note also that many functions don't take any arguments, in which case the "
3234 "C<guestfs_I<foo>_args> is completely omitted."
3235 msgstr ""
3236
3237 # type: textblock
3238 #: ../src/guestfs.pod:1654
3239 msgid ""
3240 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3241 "receiver knows what type of args structure to expect, or none at all."
3242 msgstr ""
3243
3244 # type: textblock
3245 #: ../src/guestfs.pod:1658
3246 msgid "The reply message for ordinary functions is:"
3247 msgstr ""
3248
3249 # type: verbatim
3250 #: ../src/guestfs.pod:1660
3251 #, no-wrap
3252 msgid ""
3253 " total length (header + ret,\n"
3254 "      but not including the length word itself)\n"
3255 " struct guestfs_message_header (encoded as XDR)\n"
3256 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3257 "\n"
3258 msgstr ""
3259
3260 # type: textblock
3261 #: ../src/guestfs.pod:1665
3262 msgid ""
3263 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3264 "functions that return no formal return values."
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1668
3269 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3270 msgstr ""
3271
3272 # type: textblock
3273 #: ../src/guestfs.pod:1671
3274 msgid ""
3275 "In the case of an error, a flag is set in the header, and the reply message "
3276 "is slightly changed:"
3277 msgstr ""
3278
3279 # type: verbatim
3280 #: ../src/guestfs.pod:1674
3281 #, no-wrap
3282 msgid ""
3283 " total length (header + error,\n"
3284 "      but not including the length word itself)\n"
3285 " struct guestfs_message_header (encoded as XDR)\n"
3286 " struct guestfs_message_error (encoded as XDR)\n"
3287 "\n"
3288 msgstr ""
3289
3290 # type: textblock
3291 #: ../src/guestfs.pod:1679
3292 msgid ""
3293 "The C<guestfs_message_error> structure contains the error message as a "
3294 "string."
3295 msgstr ""
3296
3297 # type: =head3
3298 #: ../src/guestfs.pod:1682
3299 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3300 msgstr ""
3301
3302 # type: textblock
3303 #: ../src/guestfs.pod:1684
3304 msgid ""
3305 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3306 "The normal request message is sent (see above).  However this is followed by "
3307 "a sequence of file chunks."
3308 msgstr ""
3309
3310 # type: verbatim
3311 #: ../src/guestfs.pod:1688
3312 #, no-wrap
3313 msgid ""
3314 " total length (header + arguments,\n"
3315 "      but not including the length word itself,\n"
3316 "      and not including the chunks)\n"
3317 " struct guestfs_message_header (encoded as XDR)\n"
3318 " struct guestfs_<foo>_args (encoded as XDR)\n"
3319 " sequence of chunks for FileIn param #0\n"
3320 " sequence of chunks for FileIn param #1 etc.\n"
3321 "\n"
3322 msgstr ""
3323
3324 # type: textblock
3325 #: ../src/guestfs.pod:1696
3326 msgid "The \"sequence of chunks\" is:"
3327 msgstr ""
3328
3329 # type: verbatim
3330 #: ../src/guestfs.pod:1698
3331 #, no-wrap
3332 msgid ""
3333 " length of chunk (not including length word itself)\n"
3334 " struct guestfs_chunk (encoded as XDR)\n"
3335 " length of chunk\n"
3336 " struct guestfs_chunk (encoded as XDR)\n"
3337 "   ...\n"
3338 " length of chunk\n"
3339 " struct guestfs_chunk (with data.data_len == 0)\n"
3340 "\n"
3341 msgstr ""
3342
3343 # type: textblock
3344 #: ../src/guestfs.pod:1706
3345 msgid ""
3346 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3347 "is set in the final chunk to indicate either successful completion or early "
3348 "cancellation."
3349 msgstr ""
3350
3351 # type: textblock
3352 #: ../src/guestfs.pod:1710
3353 msgid ""
3354 "At time of writing there are no functions that have more than one FileIn "
3355 "parameter.  However this is (theoretically) supported, by sending the "
3356 "sequence of chunks for each FileIn parameter one after another (from left to "
3357 "right)."
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1715
3362 msgid ""
3363 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3364 "transfer.  The library does this by sending a chunk with a special flag set "
3365 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3366 "RPC, does I<not> send any reply, and goes back to reading the next request."
3367 msgstr ""
3368
3369 # type: textblock
3370 #: ../src/guestfs.pod:1721
3371 msgid ""
3372 "The daemon may also cancel.  It does this by writing a special word "
3373 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3374 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3375 "cancel chunk).  The special word is chosen so that even if cancellation "
3376 "happens right at the end of the transfer (after the library has finished "
3377 "writing and has started listening for the reply), the \"spurious\" cancel "
3378 "flag will not be confused with the reply message."
3379 msgstr ""
3380
3381 # type: textblock
3382 #: ../src/guestfs.pod:1730
3383 msgid ""
3384 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3385 "limit), and also files where the size is not known in advance (eg. from "
3386 "pipes or sockets).  However the chunks are rather small "
3387 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3388 "to keep much in memory."
3389 msgstr ""
3390
3391 # type: =head3
3392 #: ../src/guestfs.pod:1736
3393 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3394 msgstr ""
3395
3396 # type: textblock
3397 #: ../src/guestfs.pod:1738
3398 msgid ""
3399 "The protocol for FileOut parameters is exactly the same as for FileIn "
3400 "parameters, but with the roles of daemon and library reversed."
3401 msgstr ""
3402
3403 # type: verbatim
3404 #: ../src/guestfs.pod:1741
3405 #, no-wrap
3406 msgid ""
3407 " total length (header + ret,\n"
3408 "      but not including the length word itself,\n"
3409 "      and not including the chunks)\n"
3410 " struct guestfs_message_header (encoded as XDR)\n"
3411 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3412 " sequence of chunks for FileOut param #0\n"
3413 " sequence of chunks for FileOut param #1 etc.\n"
3414 "\n"
3415 msgstr ""
3416
3417 # type: =head3
3418 #: ../src/guestfs.pod:1749
3419 msgid "INITIAL MESSAGE"
3420 msgstr ""
3421
3422 # type: textblock
3423 #: ../src/guestfs.pod:1751
3424 msgid ""
3425 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3426 "which indicates that the guest and daemon is alive.  This is what "
3427 "L</guestfs_launch> waits for."
3428 msgstr ""
3429
3430 # type: =head3
3431 #: ../src/guestfs.pod:1755
3432 msgid "PROGRESS NOTIFICATION MESSAGES"
3433 msgstr ""
3434
3435 # type: textblock
3436 #: ../src/guestfs.pod:1757
3437 msgid ""
3438 "The daemon may send progress notification messages at any time.  These are "
3439 "distinguished by the normal length word being replaced by "
3440 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3441 msgstr ""
3442
3443 # type: textblock
3444 #: ../src/guestfs.pod:1761
3445 msgid ""
3446 "The library turns them into progress callbacks (see "
3447 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3448 "discards them if not."
3449 msgstr ""
3450
3451 # type: textblock
3452 #: ../src/guestfs.pod:1765
3453 msgid ""
3454 "The daemon self-limits the frequency of progress messages it sends (see "
3455 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3456 "messages."
3457 msgstr ""
3458
3459 # type: =head1
3460 #: ../src/guestfs.pod:1769
3461 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3462 msgstr ""
3463
3464 # type: textblock
3465 #: ../src/guestfs.pod:1771
3466 msgid ""
3467 "All high-level libguestfs actions are synchronous.  If you want to use "
3468 "libguestfs asynchronously then you must create a thread."
3469 msgstr ""
3470
3471 # type: textblock
3472 #: ../src/guestfs.pod:1774
3473 msgid ""
3474 "Only use the handle from a single thread.  Either use the handle exclusively "
3475 "from one thread, or provide your own mutex so that two threads cannot issue "
3476 "calls on the same handle at the same time."
3477 msgstr ""
3478
3479 # type: textblock
3480 #: ../src/guestfs.pod:1778
3481 msgid ""
3482 "See the graphical program guestfs-browser for one possible architecture for "
3483 "multithreaded programs using libvirt and libguestfs."
3484 msgstr ""
3485
3486 # type: =head1
3487 #: ../src/guestfs.pod:1781
3488 msgid "QEMU WRAPPERS"
3489 msgstr ""
3490
3491 # type: textblock
3492 #: ../src/guestfs.pod:1783
3493 msgid ""
3494 "If you want to compile your own qemu, run qemu from a non-standard location, "
3495 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3496 "around qemu."
3497 msgstr ""
3498
3499 # type: textblock
3500 #: ../src/guestfs.pod:1787
3501 msgid ""
3502 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3503 "last command in the shell script (so that qemu replaces the shell and "
3504 "becomes the direct child of the libguestfs-using program).  If you don't do "
3505 "this, then the qemu process won't be cleaned up correctly."
3506 msgstr ""
3507
3508 # type: textblock
3509 #: ../src/guestfs.pod:1792
3510 msgid ""
3511 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3512 "source:"
3513 msgstr ""
3514
3515 # type: verbatim
3516 #: ../src/guestfs.pod:1795
3517 #, no-wrap
3518 msgid ""
3519 " #!/bin/sh -\n"
3520 " qemudir=/home/rjones/d/qemu\n"
3521 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
3522 "\"$@\"\n"
3523 "\n"
3524 msgstr ""
3525
3526 # type: textblock
3527 #: ../src/guestfs.pod:1799
3528 msgid ""
3529 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3530 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3531 "example:"
3532 msgstr ""
3533
3534 # type: verbatim
3535 #: ../src/guestfs.pod:1803
3536 #, no-wrap
3537 msgid ""
3538 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3539 "\n"
3540 msgstr ""
3541
3542 # type: textblock
3543 #: ../src/guestfs.pod:1805
3544 msgid ""
3545 "Note that libguestfs also calls qemu with the -help and -version options in "
3546 "order to determine features."
3547 msgstr ""
3548
3549 # type: =head1
3550 #: ../src/guestfs.pod:1808
3551 msgid "LIBGUESTFS VERSION NUMBERS"
3552 msgstr ""
3553
3554 # type: textblock
3555 #: ../src/guestfs.pod:1810
3556 msgid ""
3557 "Since April 2010, libguestfs has started to make separate development and "
3558 "stable releases, along with corresponding branches in our git repository.  "
3559 "These separate releases can be identified by version number:"
3560 msgstr ""
3561
3562 # type: verbatim
3563 #: ../src/guestfs.pod:1815
3564 #, no-wrap
3565 msgid ""
3566 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3567 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3568 "       |\n"
3569 "       v\n"
3570 " 1  .  3  .  5\n"
3571 " ^           ^\n"
3572 " |           |\n"
3573 " |           `-------- sub-version\n"
3574 " |\n"
3575 " `------ always '1' because we don't change the ABI\n"
3576 "\n"
3577 msgstr ""
3578
3579 # type: textblock
3580 #: ../src/guestfs.pod:1826
3581 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3582 msgstr ""
3583
3584 # type: textblock
3585 #: ../src/guestfs.pod:1828
3586 msgid ""
3587 "As time passes we cherry pick fixes from the development branch and backport "
3588 "those into the stable branch, the effect being that the stable branch should "
3589 "get more stable and less buggy over time.  So the stable releases are ideal "
3590 "for people who don't need new features but would just like the software to "
3591 "work."
3592 msgstr ""
3593
3594 # type: textblock
3595 #: ../src/guestfs.pod:1834
3596 msgid "Our criteria for backporting changes are:"
3597 msgstr ""
3598
3599 # type: textblock
3600 #: ../src/guestfs.pod:1840
3601 msgid ""
3602 "Documentation changes which don't affect any code are backported unless the "
3603 "documentation refers to a future feature which is not in stable."
3604 msgstr ""
3605
3606 # type: textblock
3607 #: ../src/guestfs.pod:1846
3608 msgid ""
3609 "Bug fixes which are not controversial, fix obvious problems, and have been "
3610 "well tested are backported."
3611 msgstr ""
3612
3613 # type: textblock
3614 #: ../src/guestfs.pod:1851
3615 msgid ""
3616 "Simple rearrangements of code which shouldn't affect how it works get "
3617 "backported.  This is so that the code in the two branches doesn't get too "
3618 "far out of step, allowing us to backport future fixes more easily."
3619 msgstr ""
3620
3621 # type: textblock
3622 #: ../src/guestfs.pod:1857
3623 msgid ""
3624 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3625 "exceptional case: the new feature is required in order to implement an "
3626 "important bug fix."
3627 msgstr ""
3628
3629 # type: textblock
3630 #: ../src/guestfs.pod:1863
3631 msgid ""
3632 "A new stable branch starts when we think the new features in development are "
3633 "substantial and compelling enough over the current stable branch to warrant "
3634 "it.  When that happens we create new stable and development versions 1.N.0 "
3635 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3636 "stable at this point, but by backporting fixes from development, that branch "
3637 "will stabilize over time."
3638 msgstr ""
3639
3640 # type: =head1
3641 #: ../src/guestfs.pod:1871 ../fish/guestfish.pod:914 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330 ../tools/virt-rescue.pl:255
3642 msgid "ENVIRONMENT VARIABLES"
3643 msgstr ""
3644
3645 # type: =item
3646 #: ../src/guestfs.pod:1875 ../fish/guestfish.pod:940
3647 msgid "LIBGUESTFS_APPEND"
3648 msgstr ""
3649
3650 # type: textblock
3651 #: ../src/guestfs.pod:1877 ../fish/guestfish.pod:942
3652 msgid "Pass additional options to the guest kernel."
3653 msgstr ""
3654
3655 # type: =item
3656 #: ../src/guestfs.pod:1879 ../fish/guestfish.pod:944
3657 msgid "LIBGUESTFS_DEBUG"
3658 msgstr ""
3659
3660 # type: textblock
3661 #: ../src/guestfs.pod:1881
3662 msgid ""
3663 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3664 "effect as calling C<guestfs_set_verbose (g, 1)>."
3665 msgstr ""
3666
3667 # type: =item
3668 #: ../src/guestfs.pod:1884 ../fish/guestfish.pod:949
3669 msgid "LIBGUESTFS_MEMSIZE"
3670 msgstr ""
3671
3672 # type: textblock
3673 #: ../src/guestfs.pod:1886 ../fish/guestfish.pod:951
3674 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3675 msgstr ""
3676
3677 # type: verbatim
3678 #: ../src/guestfs.pod:1889 ../fish/guestfish.pod:954
3679 #, no-wrap
3680 msgid ""
3681 " LIBGUESTFS_MEMSIZE=700\n"
3682 "\n"
3683 msgstr ""
3684
3685 # type: =item
3686 #: ../src/guestfs.pod:1891 ../fish/guestfish.pod:956
3687 msgid "LIBGUESTFS_PATH"
3688 msgstr ""
3689
3690 # type: textblock
3691 #: ../src/guestfs.pod:1893
3692 msgid ""
3693 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3694 "the discussion of paths in section PATH above."
3695 msgstr ""
3696
3697 # type: =item
3698 #: ../src/guestfs.pod:1896 ../fish/guestfish.pod:961
3699 msgid "LIBGUESTFS_QEMU"
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1898 ../fish/guestfish.pod:963
3704 msgid ""
3705 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3706 "which was found at compile time by the configure script is used."
3707 msgstr ""
3708
3709 # type: textblock
3710 #: ../src/guestfs.pod:1902
3711 msgid "See also L</QEMU WRAPPERS> above."
3712 msgstr ""
3713
3714 # type: =item
3715 #: ../src/guestfs.pod:1904 ../fish/guestfish.pod:967
3716 msgid "LIBGUESTFS_TRACE"
3717 msgstr ""
3718
3719 # type: textblock
3720 #: ../src/guestfs.pod:1906
3721 msgid ""
3722 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3723 "effect as calling C<guestfs_set_trace (g, 1)>."
3724 msgstr ""
3725
3726 # type: =item
3727 #: ../src/guestfs.pod:1909 ../fish/guestfish.pod:976
3728 msgid "TMPDIR"
3729 msgstr ""
3730
3731 # type: textblock
3732 #: ../src/guestfs.pod:1911 ../fish/guestfish.pod:978
3733 msgid "Location of temporary directory, defaults to C</tmp>."
3734 msgstr ""
3735
3736 # type: textblock
3737 #: ../src/guestfs.pod:1913 ../fish/guestfish.pod:980
3738 msgid ""
3739 "If libguestfs was compiled to use the supermin appliance then the real "
3740 "appliance is cached in this directory, shared between all handles belonging "
3741 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3742 "use in case C</tmp> is not large enough."
3743 msgstr ""
3744
3745 # type: =head1
3746 #: ../src/guestfs.pod:1921 ../fish/guestfish.pod:1038 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233 ../inspector/virt-inspector.pl:536 ../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
3747 msgid "SEE ALSO"
3748 msgstr ""
3749
3750 # type: textblock
3751 #: ../src/guestfs.pod:1923
3752 msgid ""
3753 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
3754 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
3755 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
3756 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
3757 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
3758 msgstr ""
3759
3760 # type: textblock
3761 #: ../src/guestfs.pod:1941
3762 msgid ""
3763 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
3764 "L<lvm(8)>, L<disktype(1)>."
3765 msgstr ""
3766
3767 # type: =head1
3768 #: ../src/guestfs.pod:1948 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
3769 msgid "BUGS"
3770 msgstr ""
3771
3772 # type: textblock
3773 #: ../src/guestfs.pod:1950
3774 msgid "To get a list of bugs against libguestfs use this link:"
3775 msgstr ""
3776
3777 # type: textblock
3778 #: ../src/guestfs.pod:1952
3779 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
3780 msgstr ""
3781
3782 # type: textblock
3783 #: ../src/guestfs.pod:1954
3784 msgid "To report a new bug against libguestfs use this link:"
3785 msgstr ""
3786
3787 # type: textblock
3788 #: ../src/guestfs.pod:1956
3789 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
3790 msgstr ""
3791
3792 # type: textblock
3793 #: ../src/guestfs.pod:1958
3794 msgid "When reporting a bug, please check:"
3795 msgstr ""
3796
3797 # type: textblock
3798 #: ../src/guestfs.pod:1964
3799 msgid "That the bug hasn't been reported already."
3800 msgstr ""
3801
3802 # type: textblock
3803 #: ../src/guestfs.pod:1968
3804 msgid "That you are testing a recent version."
3805 msgstr ""
3806
3807 # type: textblock
3808 #: ../src/guestfs.pod:1972
3809 msgid "Describe the bug accurately, and give a way to reproduce it."
3810 msgstr ""
3811
3812 # type: textblock
3813 #: ../src/guestfs.pod:1976
3814 msgid ""
3815 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3816 "bug report."
3817 msgstr ""
3818
3819 # type: =head1
3820 #: ../src/guestfs.pod:1981 ../fish/guestfish.pod:1055 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:546
3821 msgid "AUTHORS"
3822 msgstr ""
3823
3824 # type: textblock
3825 #: ../src/guestfs.pod:1983 ../fish/guestfish.pod:1057 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
3826 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3827 msgstr ""
3828
3829 # type: =head1
3830 #: ../src/guestfs.pod:1985 ../fish/guestfish.pod:1059 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248 ../inspector/virt-inspector.pl:560 ../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
3831 msgid "COPYRIGHT"
3832 msgstr ""
3833
3834 # type: textblock
3835 #: ../src/guestfs.pod:1987 ../fish/guestfish.pod:1061 ../fuse/guestmount.pod:250
3836 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3837 msgstr ""
3838
3839 # type: textblock
3840 #: ../src/guestfs.pod:1990
3841 msgid ""
3842 "This library is free software; you can redistribute it and/or modify it "
3843 "under the terms of the GNU Lesser General Public License as published by the "
3844 "Free Software Foundation; either version 2 of the License, or (at your "
3845 "option) any later version."
3846 msgstr ""
3847
3848 # type: textblock
3849 #: ../src/guestfs.pod:1995
3850 msgid ""
3851 "This library is distributed in the hope that it will be useful, but WITHOUT "
3852 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3853 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3854 "for more details."
3855 msgstr ""
3856
3857 # type: textblock
3858 #: ../src/guestfs.pod:2000
3859 msgid ""
3860 "You should have received a copy of the GNU Lesser General Public License "
3861 "along with this library; if not, write to the Free Software Foundation, "
3862 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3863 msgstr ""
3864
3865 # type: =head2
3866 #: ../src/guestfs-actions.pod:1
3867 msgid "guestfs_add_cdrom"
3868 msgstr ""
3869
3870 # type: verbatim
3871 #: ../src/guestfs-actions.pod:3
3872 #, no-wrap
3873 msgid ""
3874 " int\n"
3875 " guestfs_add_cdrom (guestfs_h *g,\n"
3876 "                    const char *filename);\n"
3877 "\n"
3878 msgstr ""
3879
3880 # type: textblock
3881 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
3882 msgid "This function adds a virtual CD-ROM disk image to the guest."
3883 msgstr ""
3884
3885 # type: textblock
3886 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
3887 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3888 msgstr ""
3889
3890 # type: textblock
3891 #: ../src/guestfs-actions.pod:17
3892 msgid ""
3893 "This call checks for the existence of C<filename>.  This stops you from "
3894 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3895 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3896 "instead."
3897 msgstr ""
3898
3899 # type: textblock
3900 #: ../src/guestfs-actions.pod:24
3901 msgid ""
3902 "If you just want to add an ISO file (often you use this as an efficient way "
3903 "to transfer large files into the guest), then you should probably use "
3904 "C<guestfs_add_drive_ro> instead."
3905 msgstr ""
3906
3907 # type: textblock
3908 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod: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:3045 ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3080 ../src/guestfs-actions.pod:3205 ../src/guestfs-actions.pod:3219 ../src/guestfs-actions.pod:3232 ../src/guestfs-actions.pod:3246 ../src/guestfs-actions.pod:3261 ../src/guestfs-actions.pod:3297 ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3389 ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3522 ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3605 ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649 ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3759 ../src/guestfs-actions.pod:3779 ../src/guestfs-actions.pod:3792 ../src/guestfs-actions.pod:3843 ../src/guestfs-actions.pod:3861 ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3909 ../src/guestfs-actions.pod:3923 ../src/guestfs-actions.pod:3940 ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:4024 ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4093 ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:4122 ../src/guestfs-actions.pod:4135 ../src/guestfs-actions.pod:4150 ../src/guestfs-actions.pod:4165 ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4215 ../src/guestfs-actions.pod:4235 ../src/guestfs-actions.pod:4249 ../src/guestfs-actions.pod:4266 ../src/guestfs-actions.pod:4315 ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:4563 ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4660 ../src/guestfs-actions.pod:4692 ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4788 ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:5091 ../src/guestfs-actions.pod:5110 ../src/guestfs-actions.pod:5124 ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5150 ../src/guestfs-actions.pod:5162 ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5213 ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5269 ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5310 ../src/guestfs-actions.pod:5329 ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5369 ../src/guestfs-actions.pod:5386 ../src/guestfs-actions.pod:5414 ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5457 ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5511 ../src/guestfs-actions.pod:5530 ../src/guestfs-actions.pod:5567 ../src/guestfs-actions.pod:5590 ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:5724 ../src/guestfs-actions.pod:5845 ../src/guestfs-actions.pod:5857 ../src/guestfs-actions.pod:5870 ../src/guestfs-actions.pod:5883 ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5944 ../src/guestfs-actions.pod:5959 ../src/guestfs-actions.pod:6018 ../src/guestfs-actions.pod:6035 ../src/guestfs-actions.pod:6051 ../src/guestfs-actions.pod:6067 ../src/guestfs-actions.pod:6084 ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6117 ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6208 ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6268 ../src/guestfs-actions.pod:6299 ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6450 ../src/guestfs-actions.pod:6505 ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6563 ../src/guestfs-actions.pod:6596 ../src/guestfs-actions.pod:6650 ../src/guestfs-actions.pod:6676 ../src/guestfs-actions.pod:6742 ../src/guestfs-actions.pod:6761 ../src/guestfs-actions.pod:6790
3909 msgid "This function returns 0 on success or -1 on error."
3910 msgstr ""
3911
3912 # type: textblock
3913 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
3914 msgid ""
3915 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3916 "instead."
3917 msgstr ""
3918
3919 # type: textblock
3920 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod: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:6684 ../src/guestfs-actions.pod:6853 ../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:4423 ../fish/guestfish-actions.pod:4520
3921 msgid ""
3922 "Deprecated functions will not be removed from the API, but the fact that "
3923 "they are deprecated indicates that there are problems with correct use of "
3924 "these functions."
3925 msgstr ""
3926
3927 # type: textblock
3928 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod: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:3047 ../src/guestfs-actions.pod:3062 ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:5271 ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6086 ../src/guestfs-actions.pod:6598
3929 msgid "(Added in 0.3)"
3930 msgstr ""
3931
3932 # type: =head2
3933 #: ../src/guestfs-actions.pod:41
3934 msgid "guestfs_add_domain"
3935 msgstr ""
3936
3937 # type: verbatim
3938 #: ../src/guestfs-actions.pod:43
3939 #, no-wrap
3940 msgid ""
3941 " int\n"
3942 " guestfs_add_domain (guestfs_h *g,\n"
3943 "                     const char *dom,\n"
3944 "                     ...);\n"
3945 "\n"
3946 msgstr ""
3947
3948 # type: textblock
3949 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
3950 msgid ""
3951 "You may supply a list of optional arguments to this call.  Use zero or more "
3952 "of the following pairs of parameters, and terminate the list with C<-1> on "
3953 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
3954 msgstr ""
3955
3956 # type: verbatim
3957 #: ../src/guestfs-actions.pod:53
3958 #, no-wrap
3959 msgid ""
3960 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
3961 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
3962 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
3963 "\n"
3964 msgstr ""
3965
3966 # type: textblock
3967 #: ../src/guestfs-actions.pod:57
3968 msgid ""
3969 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
3970 "It works by connecting to libvirt, requesting the domain and domain XML from "
3971 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
3972 "one."
3973 msgstr ""
3974
3975 # type: textblock
3976 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
3977 msgid ""
3978 "The number of disks added is returned.  This operation is atomic: if an "
3979 "error is returned, then no disks are added."
3980 msgstr ""
3981
3982 # type: textblock
3983 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
3984 msgid ""
3985 "This function does some minimal checks to make sure the libvirt domain is "
3986 "not running (unless C<readonly> is true).  In a future version we will try "
3987 "to acquire the libvirt lock on each disk."
3988 msgstr ""
3989
3990 # type: textblock
3991 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
3992 msgid ""
3993 "Disks must be accessible locally.  This often means that adding disks from a "
3994 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
3995 "unless those disks are accessible via the same device path locally too."
3996 msgstr ""
3997
3998 # type: textblock
3999 #: ../src/guestfs-actions.pod:74
4000 msgid ""
4001 "The optional C<libvirturi> parameter sets the libvirt URI (see "
4002 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
4003 "default libvirt URI (or one set through an environment variable, see the "
4004 "libvirt documentation for full details).  If you are using the C API "
4005 "directly then it is more flexible to create the libvirt connection object "
4006 "yourself, get the domain object, and call C<guestfs_add_libvirt_dom>."
4007 msgstr ""
4008
4009 # type: textblock
4010 #: ../src/guestfs-actions.pod:82
4011 msgid ""
4012 "The other optional parameters are passed directly through to "
4013 "C<guestfs_add_drive_opts>."
4014 msgstr ""
4015
4016 # type: textblock
4017 #: ../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:2602 ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:4338 ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4872 ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:6194 ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6622 ../src/guestfs-actions.pod:6635
4018 msgid "On error this function returns -1."
4019 msgstr ""
4020
4021 # type: =head2
4022 #: ../src/guestfs-actions.pod:87
4023 msgid "guestfs_add_domain_va"
4024 msgstr ""
4025
4026 # type: verbatim
4027 #: ../src/guestfs-actions.pod:89
4028 #, no-wrap
4029 msgid ""
4030 " int\n"
4031 " guestfs_add_domain_va (guestfs_h *g,\n"
4032 "                        const char *dom,\n"
4033 "                        va_list args);\n"
4034 "\n"
4035 msgstr ""
4036
4037 # type: textblock
4038 #: ../src/guestfs-actions.pod:94
4039 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4040 msgstr ""
4041
4042 # type: textblock
4043 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107 ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4044 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4045 msgstr ""
4046
4047 # type: =head2
4048 #: ../src/guestfs-actions.pod:98
4049 msgid "guestfs_add_domain_argv"
4050 msgstr ""
4051
4052 # type: verbatim
4053 #: ../src/guestfs-actions.pod:100
4054 #, no-wrap
4055 msgid ""
4056 " int\n"
4057 " guestfs_add_domain_argv (guestfs_h *g,\n"
4058 "                          const char *dom,\n"
4059 "                          const struct guestfs_add_domain_argv *optargs);\n"
4060 "\n"
4061 msgstr ""
4062
4063 # type: textblock
4064 #: ../src/guestfs-actions.pod:105
4065 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4066 msgstr ""
4067
4068 # type: =head2
4069 #: ../src/guestfs-actions.pod:109
4070 msgid "guestfs_add_drive"
4071 msgstr ""
4072
4073 # type: verbatim
4074 #: ../src/guestfs-actions.pod:111
4075 #, no-wrap
4076 msgid ""
4077 " int\n"
4078 " guestfs_add_drive (guestfs_h *g,\n"
4079 "                    const char *filename);\n"
4080 "\n"
4081 msgstr ""
4082
4083 # type: textblock
4084 #: ../src/guestfs-actions.pod:115
4085 msgid ""
4086 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4087 "optional parameters, so the disk is added writable, with the format being "
4088 "detected automatically."
4089 msgstr ""
4090
4091 # type: textblock
4092 #: ../src/guestfs-actions.pod:119
4093 msgid ""
4094 "Automatic detection of the format opens you up to a potential security hole "
4095 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4096 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4097 "you should think about replacing calls to this function with calls to "
4098 "C<guestfs_add_drive_opts>, and specifying the format."
4099 msgstr ""
4100
4101 # type: =head2
4102 #: ../src/guestfs-actions.pod:130
4103 msgid "guestfs_add_drive_opts"
4104 msgstr ""
4105
4106 # type: verbatim
4107 #: ../src/guestfs-actions.pod:132
4108 #, no-wrap
4109 msgid ""
4110 " int\n"
4111 " guestfs_add_drive_opts (guestfs_h *g,\n"
4112 "                         const char *filename,\n"
4113 "                         ...);\n"
4114 "\n"
4115 msgstr ""
4116
4117 # type: verbatim
4118 #: ../src/guestfs-actions.pod:142
4119 #, no-wrap
4120 msgid ""
4121 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4122 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4123 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4124 "\n"
4125 msgstr ""
4126
4127 # type: textblock
4128 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4129 msgid ""
4130 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4131 "The first time you call this function, the disk appears as C</dev/sda>, the "
4132 "second time as C</dev/sdb>, and so on."
4133 msgstr ""
4134
4135 # type: textblock
4136 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4137 msgid ""
4138 "You don't necessarily need to be root when using libguestfs.  However you "
4139 "obviously do need sufficient permissions to access the filename for whatever "
4140 "operations you want to perform (ie. read access if you just want to read the "
4141 "image or write access if you want to modify the image)."
4142 msgstr ""
4143
4144 # type: textblock
4145 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4146 msgid "This call checks that C<filename> exists."
4147 msgstr ""
4148
4149 # type: textblock
4150 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4151 msgid "The optional arguments are:"
4152 msgstr ""
4153
4154 # type: =item
4155 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4156 msgid "C<readonly>"
4157 msgstr ""
4158
4159 # type: textblock
4160 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4161 msgid ""
4162 "If true then the image is treated as read-only.  Writes are still allowed, "
4163 "but they are stored in a temporary snapshot overlay which is discarded at "
4164 "the end.  The disk that you add is not modified."
4165 msgstr ""
4166
4167 # type: =item
4168 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4169 msgid "C<format>"
4170 msgstr ""
4171
4172 # type: textblock
4173 #: ../src/guestfs-actions.pod:171
4174 msgid ""
4175 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4176 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4177 "Possible formats include C<raw> and C<qcow2>."
4178 msgstr ""
4179
4180 # type: textblock
4181 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4182 msgid ""
4183 "Automatic detection of the format opens you up to a potential security hole "
4184 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4185 "RHBZ#642934.  Specifying the format closes this security hole."
4186 msgstr ""
4187
4188 # type: =item
4189 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4190 msgid "C<iface>"
4191 msgstr ""
4192
4193 # type: textblock
4194 #: ../src/guestfs-actions.pod:182
4195 msgid ""
4196 "This rarely-used option lets you emulate the behaviour of the deprecated "
4197 "C<guestfs_add_drive_with_if> call (q.v.)"
4198 msgstr ""
4199
4200 # type: textblock
4201 #: ../src/guestfs-actions.pod:189
4202 msgid "(Added in 1.5.23)"
4203 msgstr ""
4204
4205 # type: =head2
4206 #: ../src/guestfs-actions.pod:191
4207 msgid "guestfs_add_drive_opts_va"
4208 msgstr ""
4209
4210 # type: verbatim
4211 #: ../src/guestfs-actions.pod:193
4212 #, no-wrap
4213 msgid ""
4214 " int\n"
4215 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4216 "                            const char *filename,\n"
4217 "                            va_list args);\n"
4218 "\n"
4219 msgstr ""
4220
4221 # type: textblock
4222 #: ../src/guestfs-actions.pod:198
4223 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4224 msgstr ""
4225
4226 # type: =head2
4227 #: ../src/guestfs-actions.pod:202
4228 msgid "guestfs_add_drive_opts_argv"
4229 msgstr ""
4230
4231 # type: verbatim
4232 #: ../src/guestfs-actions.pod:204
4233 #, no-wrap
4234 msgid ""
4235 " int\n"
4236 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4237 "                              const char *filename,\n"
4238 "                              const struct guestfs_add_drive_opts_argv "
4239 "*optargs);\n"
4240 "\n"
4241 msgstr ""
4242
4243 # type: textblock
4244 #: ../src/guestfs-actions.pod:209
4245 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4246 msgstr ""
4247
4248 # type: =head2
4249 #: ../src/guestfs-actions.pod:213
4250 msgid "guestfs_add_drive_ro"
4251 msgstr ""
4252
4253 # type: verbatim
4254 #: ../src/guestfs-actions.pod:215
4255 #, no-wrap
4256 msgid ""
4257 " int\n"
4258 " guestfs_add_drive_ro (guestfs_h *g,\n"
4259 "                       const char *filename);\n"
4260 "\n"
4261 msgstr ""
4262
4263 # type: textblock
4264 #: ../src/guestfs-actions.pod:219
4265 msgid ""
4266 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4267 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4268 "disk is added read-only, with the format being detected automatically."
4269 msgstr ""
4270
4271 # type: textblock
4272 #: ../src/guestfs-actions.pod:226
4273 msgid "(Added in 1.0.38)"
4274 msgstr ""
4275
4276 # type: =head2
4277 #: ../src/guestfs-actions.pod:228
4278 msgid "guestfs_add_drive_ro_with_if"
4279 msgstr ""
4280
4281 # type: verbatim
4282 #: ../src/guestfs-actions.pod:230
4283 #, no-wrap
4284 msgid ""
4285 " int\n"
4286 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4287 "                               const char *filename,\n"
4288 "                               const char *iface);\n"
4289 "\n"
4290 msgstr ""
4291
4292 # type: textblock
4293 #: ../src/guestfs-actions.pod:235
4294 msgid ""
4295 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4296 "QEMU interface emulation to use at run time."
4297 msgstr ""
4298
4299 # type: textblock
4300 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268 ../src/guestfs-actions.pod:2303
4301 msgid "(Added in 1.0.84)"
4302 msgstr ""
4303
4304 # type: =head2
4305 #: ../src/guestfs-actions.pod:249
4306 msgid "guestfs_add_drive_with_if"
4307 msgstr ""
4308
4309 # type: verbatim
4310 #: ../src/guestfs-actions.pod:251
4311 #, no-wrap
4312 msgid ""
4313 " int\n"
4314 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4315 "                            const char *filename,\n"
4316 "                            const char *iface);\n"
4317 "\n"
4318 msgstr ""
4319
4320 # type: textblock
4321 #: ../src/guestfs-actions.pod:256
4322 msgid ""
4323 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4324 "QEMU interface emulation to use at run time."
4325 msgstr ""
4326
4327 # type: =head2
4328 #: ../src/guestfs-actions.pod:270
4329 msgid "guestfs_aug_clear"
4330 msgstr ""
4331
4332 # type: verbatim
4333 #: ../src/guestfs-actions.pod:272
4334 #, no-wrap
4335 msgid ""
4336 " int\n"
4337 " guestfs_aug_clear (guestfs_h *g,\n"
4338 "                    const char *augpath);\n"
4339 "\n"
4340 msgstr ""
4341
4342 # type: textblock
4343 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4344 msgid ""
4345 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4346 "L<augtool(1)> C<clear> command."
4347 msgstr ""
4348
4349 # type: textblock
4350 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4351 msgid "(Added in 1.3.4)"
4352 msgstr ""
4353
4354 # type: =head2
4355 #: ../src/guestfs-actions.pod:283
4356 msgid "guestfs_aug_close"
4357 msgstr ""
4358
4359 # type: verbatim
4360 #: ../src/guestfs-actions.pod:285
4361 #, no-wrap
4362 msgid ""
4363 " int\n"
4364 " guestfs_aug_close (guestfs_h *g);\n"
4365 "\n"
4366 msgstr ""
4367
4368 # type: textblock
4369 #: ../src/guestfs-actions.pod:288
4370 msgid ""
4371 "Close the current Augeas handle and free up any resources used by it.  After "
4372 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4373 "any other Augeas functions."
4374 msgstr ""
4375
4376 # type: textblock
4377 #: ../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:4949
4378 msgid "(Added in 0.7)"
4379 msgstr ""
4380
4381 # type: =head2
4382 #: ../src/guestfs-actions.pod:297
4383 msgid "guestfs_aug_defnode"
4384 msgstr ""
4385
4386 # type: verbatim
4387 #: ../src/guestfs-actions.pod:299
4388 #, no-wrap
4389 msgid ""
4390 " struct guestfs_int_bool *\n"
4391 " guestfs_aug_defnode (guestfs_h *g,\n"
4392 "                      const char *name,\n"
4393 "                      const char *expr,\n"
4394 "                      const char *val);\n"
4395 "\n"
4396 msgstr ""
4397
4398 # type: textblock
4399 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4400 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4401 msgstr ""
4402
4403 # type: textblock
4404 #: ../src/guestfs-actions.pod:308
4405 msgid ""
4406 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4407 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4408 "containing that single node."
4409 msgstr ""
4410
4411 # type: textblock
4412 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4413 msgid ""
4414 "On success this returns a pair containing the number of nodes in the "
4415 "nodeset, and a boolean flag if a node was created."
4416 msgstr ""
4417
4418 # type: textblock
4419 #: ../src/guestfs-actions.pod:316
4420 msgid ""
4421 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4422 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4423 msgstr ""
4424
4425 # type: =head2
4426 #: ../src/guestfs-actions.pod:322
4427 msgid "guestfs_aug_defvar"
4428 msgstr ""
4429
4430 # type: verbatim
4431 #: ../src/guestfs-actions.pod:324
4432 #, no-wrap
4433 msgid ""
4434 " int\n"
4435 " guestfs_aug_defvar (guestfs_h *g,\n"
4436 "                     const char *name,\n"
4437 "                     const char *expr);\n"
4438 "\n"
4439 msgstr ""
4440
4441 # type: textblock
4442 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4443 msgid ""
4444 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4445 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4446 msgstr ""
4447
4448 # type: textblock
4449 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4450 msgid ""
4451 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4452 "evaluates to something which is not a nodeset."
4453 msgstr ""
4454
4455 # type: =head2
4456 #: ../src/guestfs-actions.pod:340
4457 msgid "guestfs_aug_get"
4458 msgstr ""
4459
4460 # type: verbatim
4461 #: ../src/guestfs-actions.pod:342
4462 #, no-wrap
4463 msgid ""
4464 " char *\n"
4465 " guestfs_aug_get (guestfs_h *g,\n"
4466 "                  const char *augpath);\n"
4467 "\n"
4468 msgstr ""
4469
4470 # type: textblock
4471 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4472 msgid ""
4473 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4474 "node, the C<value> is returned."
4475 msgstr ""
4476
4477 # type: textblock
4478 #: ../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:2548 ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:2713 ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2814 ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3541 ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3821 ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:4677 ../src/guestfs-actions.pod:4847 ../src/guestfs-actions.pod:5025 ../src/guestfs-actions.pod:5074 ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5653 ../src/guestfs-actions.pod:5670 ../src/guestfs-actions.pod:5694 ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6395 ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6847
4479 msgid ""
4480 "This function returns a string, or NULL on error.  I<The caller must free "
4481 "the returned string after use>."
4482 msgstr ""
4483
4484 # type: =head2
4485 #: ../src/guestfs-actions.pod:354
4486 msgid "guestfs_aug_init"
4487 msgstr ""
4488
4489 # type: verbatim
4490 #: ../src/guestfs-actions.pod:356
4491 #, no-wrap
4492 msgid ""
4493 " int\n"
4494 " guestfs_aug_init (guestfs_h *g,\n"
4495 "                   const char *root,\n"
4496 "                   int flags);\n"
4497 "\n"
4498 msgstr ""
4499
4500 # type: textblock
4501 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4502 msgid ""
4503 "Create a new Augeas handle for editing configuration files.  If there was "
4504 "any previous Augeas handle associated with this guestfs session, then it is "
4505 "closed."
4506 msgstr ""
4507
4508 # type: textblock
4509 #: ../src/guestfs-actions.pod:365
4510 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4511 msgstr ""
4512
4513 # type: textblock
4514 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4515 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4516 msgstr ""
4517
4518 # type: textblock
4519 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4520 msgid ""
4521 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4522 "logical I<or> of the following integers:"
4523 msgstr ""
4524
4525 # type: =item
4526 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
4527 msgid "C<AUG_SAVE_BACKUP> = 1"
4528 msgstr ""
4529
4530 # type: textblock
4531 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
4532 msgid "Keep the original file with a C<.augsave> extension."
4533 msgstr ""
4534
4535 # type: =item
4536 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
4537 msgid "C<AUG_SAVE_NEWFILE> = 2"
4538 msgstr ""
4539
4540 # type: textblock
4541 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
4542 msgid ""
4543 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4544 "original.  Overrides C<AUG_SAVE_BACKUP>."
4545 msgstr ""
4546
4547 # type: =item
4548 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
4549 msgid "C<AUG_TYPE_CHECK> = 4"
4550 msgstr ""
4551
4552 # type: textblock
4553 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
4554 msgid "Typecheck lenses (can be expensive)."
4555 msgstr ""
4556
4557 # type: =item
4558 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
4559 msgid "C<AUG_NO_STDINC> = 8"
4560 msgstr ""
4561
4562 # type: textblock
4563 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
4564 msgid "Do not use standard load path for modules."
4565 msgstr ""
4566
4567 # type: =item
4568 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
4569 msgid "C<AUG_SAVE_NOOP> = 16"
4570 msgstr ""
4571
4572 # type: textblock
4573 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
4574 msgid "Make save a no-op, just record what would have been changed."
4575 msgstr ""
4576
4577 # type: =item
4578 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
4579 msgid "C<AUG_NO_LOAD> = 32"
4580 msgstr ""
4581
4582 # type: textblock
4583 #: ../src/guestfs-actions.pod:400
4584 msgid "Do not load the tree in C<guestfs_aug_init>."
4585 msgstr ""
4586
4587 # type: textblock
4588 #: ../src/guestfs-actions.pod:404
4589 msgid "To close the handle, you can call C<guestfs_aug_close>."
4590 msgstr ""
4591
4592 # type: textblock
4593 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
4594 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4595 msgstr ""
4596
4597 # type: =head2
4598 #: ../src/guestfs-actions.pod:412
4599 msgid "guestfs_aug_insert"
4600 msgstr ""
4601
4602 # type: verbatim
4603 #: ../src/guestfs-actions.pod:414
4604 #, no-wrap
4605 msgid ""
4606 " int\n"
4607 " guestfs_aug_insert (guestfs_h *g,\n"
4608 "                     const char *augpath,\n"
4609 "                     const char *label,\n"
4610 "                     int before);\n"
4611 "\n"
4612 msgstr ""
4613
4614 # type: textblock
4615 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
4616 msgid ""
4617 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4618 "or after C<path> (depending on the boolean flag C<before>)."
4619 msgstr ""
4620
4621 # type: textblock
4622 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
4623 msgid ""
4624 "C<path> must match exactly one existing node in the tree, and C<label> must "
4625 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4626 msgstr ""
4627
4628 # type: =head2
4629 #: ../src/guestfs-actions.pod:432
4630 msgid "guestfs_aug_load"
4631 msgstr ""
4632
4633 # type: verbatim
4634 #: ../src/guestfs-actions.pod:434
4635 #, no-wrap
4636 msgid ""
4637 " int\n"
4638 " guestfs_aug_load (guestfs_h *g);\n"
4639 "\n"
4640 msgstr ""
4641
4642 # type: textblock
4643 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
4644 msgid "Load files into the tree."
4645 msgstr ""
4646
4647 # type: textblock
4648 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
4649 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4650 msgstr ""
4651
4652 # type: =head2
4653 #: ../src/guestfs-actions.pod:446
4654 msgid "guestfs_aug_ls"
4655 msgstr ""
4656
4657 # type: verbatim
4658 #: ../src/guestfs-actions.pod:448
4659 #, no-wrap
4660 msgid ""
4661 " char **\n"
4662 " guestfs_aug_ls (guestfs_h *g,\n"
4663 "                 const char *augpath);\n"
4664 "\n"
4665 msgstr ""
4666
4667 # type: textblock
4668 #: ../src/guestfs-actions.pod:452
4669 msgid ""
4670 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4671 "sorting the resulting nodes into alphabetical order."
4672 msgstr ""
4673
4674 # type: textblock
4675 #: ../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:2573 ../src/guestfs-actions.pod:2754 ../src/guestfs-actions.pod:2856 ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3173 ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3683 ../src/guestfs-actions.pod:4299 ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4945 ../src/guestfs-actions.pod:5059 ../src/guestfs-actions.pod:5710 ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:5972 ../src/guestfs-actions.pod:5996 ../src/guestfs-actions.pod:6468 ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6719 ../src/guestfs-actions.pod:6804 ../src/guestfs-actions.pod:6823 ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6888
4676 msgid ""
4677 "This function returns a NULL-terminated array of strings (like "
4678 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4679 "strings and the array after use>."
4680 msgstr ""
4681
4682 # type: textblock
4683 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:2934 ../src/guestfs-actions.pod:2965 ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3574 ../src/guestfs-actions.pod:3761 ../src/guestfs-actions.pod:3794 ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4760 ../src/guestfs-actions.pod:5138 ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5164 ../src/guestfs-actions.pod:5572 ../src/guestfs-actions.pod:6210 ../src/guestfs-actions.pod:6223 ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6688
4684 msgid "(Added in 0.8)"
4685 msgstr ""
4686
4687 # type: =head2
4688 #: ../src/guestfs-actions.pod:461
4689 msgid "guestfs_aug_match"
4690 msgstr ""
4691
4692 # type: verbatim
4693 #: ../src/guestfs-actions.pod:463
4694 #, no-wrap
4695 msgid ""
4696 " char **\n"
4697 " guestfs_aug_match (guestfs_h *g,\n"
4698 "                    const char *augpath);\n"
4699 "\n"
4700 msgstr ""
4701
4702 # type: textblock
4703 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
4704 msgid ""
4705 "Returns a list of paths which match the path expression C<path>.  The "
4706 "returned paths are sufficiently qualified so that they match exactly one "
4707 "node in the current tree."
4708 msgstr ""
4709
4710 # type: =head2
4711 #: ../src/guestfs-actions.pod:477
4712 msgid "guestfs_aug_mv"
4713 msgstr ""
4714
4715 # type: verbatim
4716 #: ../src/guestfs-actions.pod:479
4717 #, no-wrap
4718 msgid ""
4719 " int\n"
4720 " guestfs_aug_mv (guestfs_h *g,\n"
4721 "                 const char *src,\n"
4722 "                 const char *dest);\n"
4723 "\n"
4724 msgstr ""
4725
4726 # type: textblock
4727 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
4728 msgid ""
4729 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4730 "C<dest> is overwritten if it exists."
4731 msgstr ""
4732
4733 # type: =head2
4734 #: ../src/guestfs-actions.pod:491
4735 msgid "guestfs_aug_rm"
4736 msgstr ""
4737
4738 # type: verbatim
4739 #: ../src/guestfs-actions.pod:493
4740 #, no-wrap
4741 msgid ""
4742 " int\n"
4743 " guestfs_aug_rm (guestfs_h *g,\n"
4744 "                 const char *augpath);\n"
4745 "\n"
4746 msgstr ""
4747
4748 # type: textblock
4749 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
4750 msgid "Remove C<path> and all of its children."
4751 msgstr ""
4752
4753 # type: textblock
4754 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
4755 msgid "On success this returns the number of entries which were removed."
4756 msgstr ""
4757
4758 # type: =head2
4759 #: ../src/guestfs-actions.pod:505
4760 msgid "guestfs_aug_save"
4761 msgstr ""
4762
4763 # type: verbatim
4764 #: ../src/guestfs-actions.pod:507
4765 #, no-wrap
4766 msgid ""
4767 " int\n"
4768 " guestfs_aug_save (guestfs_h *g);\n"
4769 "\n"
4770 msgstr ""
4771
4772 # type: textblock
4773 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
4774 msgid "This writes all pending changes to disk."
4775 msgstr ""
4776
4777 # type: textblock
4778 #: ../src/guestfs-actions.pod:512
4779 msgid ""
4780 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4781 "are saved."
4782 msgstr ""
4783
4784 # type: =head2
4785 #: ../src/guestfs-actions.pod:519
4786 msgid "guestfs_aug_set"
4787 msgstr ""
4788
4789 # type: verbatim
4790 #: ../src/guestfs-actions.pod:521
4791 #, no-wrap
4792 msgid ""
4793 " int\n"
4794 " guestfs_aug_set (guestfs_h *g,\n"
4795 "                  const char *augpath,\n"
4796 "                  const char *val);\n"
4797 "\n"
4798 msgstr ""
4799
4800 # type: textblock
4801 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
4802 msgid "Set the value associated with C<path> to C<val>."
4803 msgstr ""
4804
4805 # type: textblock
4806 #: ../src/guestfs-actions.pod:528
4807 msgid ""
4808 "In the Augeas API, it is possible to clear a node by setting the value to "
4809 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4810 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4811 msgstr ""
4812
4813 # type: =head2
4814 #: ../src/guestfs-actions.pod:537
4815 msgid "guestfs_available"
4816 msgstr ""
4817
4818 # type: verbatim
4819 #: ../src/guestfs-actions.pod:539
4820 #, no-wrap
4821 msgid ""
4822 " int\n"
4823 " guestfs_available (guestfs_h *g,\n"
4824 "                    char *const *groups);\n"
4825 "\n"
4826 msgstr ""
4827
4828 # type: textblock
4829 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
4830 msgid ""
4831 "This command is used to check the availability of some groups of "
4832 "functionality in the appliance, which not all builds of the libguestfs "
4833 "appliance will be able to provide."
4834 msgstr ""
4835
4836 # type: textblock
4837 #: ../src/guestfs-actions.pod:547
4838 msgid ""
4839 "The libguestfs groups, and the functions that those groups correspond to, "
4840 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4841 "runtime by calling C<guestfs_available_all_groups>."
4842 msgstr ""
4843
4844 # type: textblock
4845 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
4846 msgid ""
4847 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4848 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4849 "and Augeas (configuration file editing) functions."
4850 msgstr ""
4851
4852 # type: textblock
4853 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
4854 msgid "The command returns no error if I<all> requested groups are available."
4855 msgstr ""
4856
4857 # type: textblock
4858 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
4859 msgid ""
4860 "It fails with an error if one or more of the requested groups is unavailable "
4861 "in the appliance."
4862 msgstr ""
4863
4864 # type: textblock
4865 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
4866 msgid ""
4867 "If an unknown group name is included in the list of groups then an error is "
4868 "always returned."
4869 msgstr ""
4870
4871 # type: textblock
4872 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
4873 msgid "I<Notes:>"
4874 msgstr ""
4875
4876 # type: textblock
4877 #: ../src/guestfs-actions.pod:571
4878 msgid "You must call C<guestfs_launch> before calling this function."
4879 msgstr ""
4880
4881 # type: textblock
4882 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
4883 msgid ""
4884 "The reason is because we don't know what groups are supported by the "
4885 "appliance/daemon until it is running and can be queried."
4886 msgstr ""
4887
4888 # type: textblock
4889 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
4890 msgid ""
4891 "If a group of functions is available, this does not necessarily mean that "
4892 "they will work.  You still have to check for errors when calling individual "
4893 "API functions even if they are available."
4894 msgstr ""
4895
4896 # type: textblock
4897 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
4898 msgid ""
4899 "It is usually the job of distro packagers to build complete functionality "
4900 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4901 "with all requirements satisfied, will support everything."
4902 msgstr ""
4903
4904 # type: textblock
4905 #: ../src/guestfs-actions.pod:593
4906 msgid ""
4907 "This call was added in version C<1.0.80>.  In previous versions of "
4908 "libguestfs all you could do would be to speculatively execute a command to "
4909 "find out if the daemon implemented it.  See also C<guestfs_version>."
4910 msgstr ""
4911
4912 # type: textblock
4913 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
4914 msgid "(Added in 1.0.80)"
4915 msgstr ""
4916
4917 # type: =head2
4918 #: ../src/guestfs-actions.pod:604
4919 msgid "guestfs_available_all_groups"
4920 msgstr ""
4921
4922 # type: verbatim
4923 #: ../src/guestfs-actions.pod:606
4924 #, no-wrap
4925 msgid ""
4926 " char **\n"
4927 " guestfs_available_all_groups (guestfs_h *g);\n"
4928 "\n"
4929 msgstr ""
4930
4931 # type: textblock
4932 #: ../src/guestfs-actions.pod:609
4933 msgid ""
4934 "This command returns a list of all optional groups that this daemon knows "
4935 "about.  Note this returns both supported and unsupported groups.  To find "
4936 "out which ones the daemon can actually support you have to call "
4937 "C<guestfs_available> on each member of the returned list."
4938 msgstr ""
4939
4940 # type: textblock
4941 #: ../src/guestfs-actions.pod:615
4942 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4943 msgstr ""
4944
4945 # type: textblock
4946 #: ../src/guestfs-actions.pod:621
4947 msgid "(Added in 1.3.15)"
4948 msgstr ""
4949
4950 # type: =head2
4951 #: ../src/guestfs-actions.pod:623
4952 msgid "guestfs_base64_in"
4953 msgstr ""
4954
4955 # type: verbatim
4956 #: ../src/guestfs-actions.pod:625
4957 #, no-wrap
4958 msgid ""
4959 " int\n"
4960 " guestfs_base64_in (guestfs_h *g,\n"
4961 "                    const char *base64file,\n"
4962 "                    const char *filename);\n"
4963 "\n"
4964 msgstr ""
4965
4966 # type: textblock
4967 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
4968 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4969 msgstr ""
4970
4971 # type: textblock
4972 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
4973 msgid "(Added in 1.3.5)"
4974 msgstr ""
4975
4976 # type: =head2
4977 #: ../src/guestfs-actions.pod:637
4978 msgid "guestfs_base64_out"
4979 msgstr ""
4980
4981 # type: verbatim
4982 #: ../src/guestfs-actions.pod:639
4983 #, no-wrap
4984 msgid ""
4985 " int\n"
4986 " guestfs_base64_out (guestfs_h *g,\n"
4987 "                     const char *filename,\n"
4988 "                     const char *base64file);\n"
4989 "\n"
4990 msgstr ""
4991
4992 # type: textblock
4993 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
4994 msgid ""
4995 "This command downloads the contents of C<filename>, writing it out to local "
4996 "file C<base64file> encoded as base64."
4997 msgstr ""
4998
4999 # type: =head2
5000 #: ../src/guestfs-actions.pod:651
5001 msgid "guestfs_blockdev_flushbufs"
5002 msgstr ""
5003
5004 # type: verbatim
5005 #: ../src/guestfs-actions.pod:653
5006 #, no-wrap
5007 msgid ""
5008 " int\n"
5009 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5010 "                             const char *device);\n"
5011 "\n"
5012 msgstr ""
5013
5014 # type: textblock
5015 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5016 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5017 msgstr ""
5018
5019 # type: textblock
5020 #: ../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
5021 msgid "This uses the L<blockdev(8)> command."
5022 msgstr ""
5023
5024 # type: textblock
5025 #: ../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
5026 msgid "(Added in 0.9.3)"
5027 msgstr ""
5028
5029 # type: =head2
5030 #: ../src/guestfs-actions.pod:666
5031 msgid "guestfs_blockdev_getbsz"
5032 msgstr ""
5033
5034 # type: verbatim
5035 #: ../src/guestfs-actions.pod:668
5036 #, no-wrap
5037 msgid ""
5038 " int\n"
5039 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5040 "                          const char *device);\n"
5041 "\n"
5042 msgstr ""
5043
5044 # type: textblock
5045 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5046 msgid "This returns the block size of a device."
5047 msgstr ""
5048
5049 # type: textblock
5050 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5051 msgid ""
5052 "(Note this is different from both I<size in blocks> and I<filesystem block "
5053 "size>)."
5054 msgstr ""
5055
5056 # type: =head2
5057 #: ../src/guestfs-actions.pod:683
5058 msgid "guestfs_blockdev_getro"
5059 msgstr ""
5060
5061 # type: verbatim
5062 #: ../src/guestfs-actions.pod:685
5063 #, no-wrap
5064 msgid ""
5065 " int\n"
5066 " guestfs_blockdev_getro (guestfs_h *g,\n"
5067 "                         const char *device);\n"
5068 "\n"
5069 msgstr ""
5070
5071 # type: textblock
5072 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5073 msgid ""
5074 "Returns a boolean indicating if the block device is read-only (true if "
5075 "read-only, false if not)."
5076 msgstr ""
5077
5078 # type: textblock
5079 #: ../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:2873 ../src/guestfs-actions.pod:2887 ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:2916 ../src/guestfs-actions.pod:2932 ../src/guestfs-actions.pod:2947 ../src/guestfs-actions.pod:2963 ../src/guestfs-actions.pod:2977 ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3019 ../src/guestfs-actions.pod:3034 ../src/guestfs-actions.pod:4448
5080 msgid "This function returns a C truth value on success or -1 on error."
5081 msgstr ""
5082
5083 # type: =head2
5084 #: ../src/guestfs-actions.pod:698
5085 msgid "guestfs_blockdev_getsize64"
5086 msgstr ""
5087
5088 # type: verbatim
5089 #: ../src/guestfs-actions.pod:700
5090 #, no-wrap
5091 msgid ""
5092 " int64_t\n"
5093 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5094 "                             const char *device);\n"
5095 "\n"
5096 msgstr ""
5097
5098 # type: textblock
5099 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5100 msgid "This returns the size of the device in bytes."
5101 msgstr ""
5102
5103 # type: textblock
5104 #: ../src/guestfs-actions.pod:706
5105 msgid "See also C<guestfs_blockdev_getsz>."
5106 msgstr ""
5107
5108 # type: =head2
5109 #: ../src/guestfs-actions.pod:714
5110 msgid "guestfs_blockdev_getss"
5111 msgstr ""
5112
5113 # type: verbatim
5114 #: ../src/guestfs-actions.pod:716
5115 #, no-wrap
5116 msgid ""
5117 " int\n"
5118 " guestfs_blockdev_getss (guestfs_h *g,\n"
5119 "                         const char *device);\n"
5120 "\n"
5121 msgstr ""
5122
5123 # type: textblock
5124 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5125 msgid ""
5126 "This returns the size of sectors on a block device.  Usually 512, but can be "
5127 "larger for modern devices."
5128 msgstr ""
5129
5130 # type: textblock
5131 #: ../src/guestfs-actions.pod:723
5132 msgid ""
5133 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5134 "that)."
5135 msgstr ""
5136
5137 # type: =head2
5138 #: ../src/guestfs-actions.pod:732
5139 msgid "guestfs_blockdev_getsz"
5140 msgstr ""
5141
5142 # type: verbatim
5143 #: ../src/guestfs-actions.pod:734
5144 #, no-wrap
5145 msgid ""
5146 " int64_t\n"
5147 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5148 "                         const char *device);\n"
5149 "\n"
5150 msgstr ""
5151
5152 # type: textblock
5153 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5154 msgid ""
5155 "This returns the size of the device in units of 512-byte sectors (even if "
5156 "the sectorsize isn't 512 bytes ... weird)."
5157 msgstr ""
5158
5159 # type: textblock
5160 #: ../src/guestfs-actions.pod:741
5161 msgid ""
5162 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5163 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5164 msgstr ""
5165
5166 # type: =head2
5167 #: ../src/guestfs-actions.pod:751
5168 msgid "guestfs_blockdev_rereadpt"
5169 msgstr ""
5170
5171 # type: verbatim
5172 #: ../src/guestfs-actions.pod:753
5173 #, no-wrap
5174 msgid ""
5175 " int\n"
5176 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5177 "                            const char *device);\n"
5178 "\n"
5179 msgstr ""
5180
5181 # type: textblock
5182 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5183 msgid "Reread the partition table on C<device>."
5184 msgstr ""
5185
5186 # type: =head2
5187 #: ../src/guestfs-actions.pod:765
5188 msgid "guestfs_blockdev_setbsz"
5189 msgstr ""
5190
5191 # type: verbatim
5192 #: ../src/guestfs-actions.pod:767
5193 #, no-wrap
5194 msgid ""
5195 " int\n"
5196 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5197 "                          const char *device,\n"
5198 "                          int blocksize);\n"
5199 "\n"
5200 msgstr ""
5201
5202 # type: textblock
5203 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5204 msgid "This sets the block size of a device."
5205 msgstr ""
5206
5207 # type: =head2
5208 #: ../src/guestfs-actions.pod:783
5209 msgid "guestfs_blockdev_setro"
5210 msgstr ""
5211
5212 # type: verbatim
5213 #: ../src/guestfs-actions.pod:785
5214 #, no-wrap
5215 msgid ""
5216 " int\n"
5217 " guestfs_blockdev_setro (guestfs_h *g,\n"
5218 "                         const char *device);\n"
5219 "\n"
5220 msgstr ""
5221
5222 # type: textblock
5223 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5224 msgid "Sets the block device named C<device> to read-only."
5225 msgstr ""
5226
5227 # type: =head2
5228 #: ../src/guestfs-actions.pod:797
5229 msgid "guestfs_blockdev_setrw"
5230 msgstr ""
5231
5232 # type: verbatim
5233 #: ../src/guestfs-actions.pod:799
5234 #, no-wrap
5235 msgid ""
5236 " int\n"
5237 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5238 "                         const char *device);\n"
5239 "\n"
5240 msgstr ""
5241
5242 # type: textblock
5243 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5244 msgid "Sets the block device named C<device> to read-write."
5245 msgstr ""
5246
5247 # type: =head2
5248 #: ../src/guestfs-actions.pod:811
5249 msgid "guestfs_case_sensitive_path"
5250 msgstr ""
5251
5252 # type: verbatim
5253 #: ../src/guestfs-actions.pod:813
5254 #, no-wrap
5255 msgid ""
5256 " char *\n"
5257 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5258 "                              const char *path);\n"
5259 "\n"
5260 msgstr ""
5261
5262 # type: textblock
5263 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5264 msgid ""
5265 "This can be used to resolve case insensitive paths on a filesystem which is "
5266 "case sensitive.  The use case is to resolve paths which you have read from "
5267 "Windows configuration files or the Windows Registry, to the true path."
5268 msgstr ""
5269
5270 # type: textblock
5271 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5272 msgid ""
5273 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5274 "(and probably others), which is that although the underlying filesystem is "
5275 "case-insensitive, the driver exports the filesystem to Linux as "
5276 "case-sensitive."
5277 msgstr ""
5278
5279 # type: textblock
5280 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5281 msgid ""
5282 "One consequence of this is that special directories such as C<c:\\windows> "
5283 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5284 "precise details of how they were created.  In Windows itself this would not "
5285 "be a problem."
5286 msgstr ""
5287
5288 # type: textblock
5289 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5290 msgid ""
5291 "Bug or feature? You decide: "
5292 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5293 msgstr ""
5294
5295 # type: textblock
5296 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5297 msgid ""
5298 "This function resolves the true case of each element in the path and returns "
5299 "the case-sensitive path."
5300 msgstr ""
5301
5302 # type: textblock
5303 #: ../src/guestfs-actions.pod:839
5304 msgid ""
5305 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5306 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5307 "how the directories were originally created under Windows)."
5308 msgstr ""
5309
5310 # type: textblock
5311 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5312 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5313 msgstr ""
5314
5315 # type: textblock
5316 #: ../src/guestfs-actions.pod:847
5317 msgid "See also C<guestfs_realpath>."
5318 msgstr ""
5319
5320 # type: textblock
5321 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6380
5322 msgid "(Added in 1.0.75)"
5323 msgstr ""
5324
5325 # type: =head2
5326 #: ../src/guestfs-actions.pod:854
5327 msgid "guestfs_cat"
5328 msgstr ""
5329
5330 # type: verbatim
5331 #: ../src/guestfs-actions.pod:856
5332 #, no-wrap
5333 msgid ""
5334 " char *\n"
5335 " guestfs_cat (guestfs_h *g,\n"
5336 "              const char *path);\n"
5337 "\n"
5338 msgstr ""
5339
5340 # type: textblock
5341 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:4935 ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3267
5342 msgid "Return the contents of the file named C<path>."
5343 msgstr ""
5344
5345 # type: textblock
5346 #: ../src/guestfs-actions.pod:862
5347 msgid ""
5348 "Note that this function cannot correctly handle binary files (specifically, "
5349 "files containing C<\\0> character which is treated as end of string).  For "
5350 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5351 "functions which have a more complex interface."
5352 msgstr ""
5353
5354 # type: textblock
5355 #: ../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:4717 ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4874 ../src/guestfs-actions.pod:4900 ../src/guestfs-actions.pod:4924 ../src/guestfs-actions.pod:5775 ../src/guestfs-actions.pod:5830 ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6000 ../src/guestfs-actions.pod:6652 ../src/guestfs-actions.pod:6678 ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6873 ../src/guestfs-actions.pod:6892 ../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:3137 ../fish/guestfish-actions.pod:3152 ../fish/guestfish-actions.pod:3228 ../fish/guestfish-actions.pod:3245 ../fish/guestfish-actions.pod:3260 ../fish/guestfish-actions.pod:3843 ../fish/guestfish-actions.pod:3889 ../fish/guestfish-actions.pod:3974 ../fish/guestfish-actions.pod:3989 ../fish/guestfish-actions.pod:4399 ../fish/guestfish-actions.pod:4417 ../fish/guestfish-actions.pod:4434 ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4492 ../fish/guestfish-actions.pod:4502 ../fish/guestfish-actions.pod:4531 ../fish/guestfish-actions.pod:4541
5356 msgid ""
5357 "Because of the message protocol, there is a transfer limit of somewhere "
5358 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5359 msgstr ""
5360
5361 # type: textblock
5362 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3282 ../src/guestfs-actions.pod:3687 ../src/guestfs-actions.pod:3701 ../src/guestfs-actions.pod:4823 ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:6539 ../src/guestfs-actions.pod:6553
5363 msgid "(Added in 0.4)"
5364 msgstr ""
5365
5366 # type: =head2
5367 #: ../src/guestfs-actions.pod:875
5368 msgid "guestfs_checksum"
5369 msgstr ""
5370
5371 # type: verbatim
5372 #: ../src/guestfs-actions.pod:877
5373 #, no-wrap
5374 msgid ""
5375 " char *\n"
5376 " guestfs_checksum (guestfs_h *g,\n"
5377 "                   const char *csumtype,\n"
5378 "                   const char *path);\n"
5379 "\n"
5380 msgstr ""
5381
5382 # type: textblock
5383 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5384 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5385 msgstr ""
5386
5387 # type: textblock
5388 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5389 msgid ""
5390 "The type of checksum to compute is given by the C<csumtype> parameter which "
5391 "must have one of the following values:"
5392 msgstr ""
5393
5394 # type: =item
5395 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5396 msgid "C<crc>"
5397 msgstr ""
5398
5399 # type: textblock
5400 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5401 msgid ""
5402 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5403 "C<cksum> command."
5404 msgstr ""
5405
5406 # type: =item
5407 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5408 msgid "C<md5>"
5409 msgstr ""
5410
5411 # type: textblock
5412 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5413 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5414 msgstr ""
5415
5416 # type: =item
5417 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5418 msgid "C<sha1>"
5419 msgstr ""
5420
5421 # type: textblock
5422 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5423 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5424 msgstr ""
5425
5426 # type: =item
5427 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
5428 msgid "C<sha224>"
5429 msgstr ""
5430
5431 # type: textblock
5432 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
5433 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5434 msgstr ""
5435
5436 # type: =item
5437 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
5438 msgid "C<sha256>"
5439 msgstr ""
5440
5441 # type: textblock
5442 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
5443 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5444 msgstr ""
5445
5446 # type: =item
5447 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
5448 msgid "C<sha384>"
5449 msgstr ""
5450
5451 # type: textblock
5452 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
5453 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5454 msgstr ""
5455
5456 # type: =item
5457 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
5458 msgid "C<sha512>"
5459 msgstr ""
5460
5461 # type: textblock
5462 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
5463 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5464 msgstr ""
5465
5466 # type: textblock
5467 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
5468 msgid "The checksum is returned as a printable string."
5469 msgstr ""
5470
5471 # type: textblock
5472 #: ../src/guestfs-actions.pod:923
5473 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5474 msgstr ""
5475
5476 # type: textblock
5477 #: ../src/guestfs-actions.pod:925
5478 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5479 msgstr ""
5480
5481 # type: textblock
5482 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:2918 ../src/guestfs-actions.pod:2979 ../src/guestfs-actions.pod:3006 ../src/guestfs-actions.pod:6241
5483 msgid "(Added in 1.0.2)"
5484 msgstr ""
5485
5486 # type: =head2
5487 #: ../src/guestfs-actions.pod:932
5488 msgid "guestfs_checksum_device"
5489 msgstr ""
5490
5491 # type: verbatim
5492 #: ../src/guestfs-actions.pod:934
5493 #, no-wrap
5494 msgid ""
5495 " char *\n"
5496 " guestfs_checksum_device (guestfs_h *g,\n"
5497 "                          const char *csumtype,\n"
5498 "                          const char *device);\n"
5499 "\n"
5500 msgstr ""
5501
5502 # type: textblock
5503 #: ../src/guestfs-actions.pod:939
5504 msgid ""
5505 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5506 "device named C<device>.  For the types of checksums supported see the "
5507 "C<guestfs_checksum> command."
5508 msgstr ""
5509
5510 # type: textblock
5511 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:4413 ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4468 ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:6155 ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6565
5512 msgid "(Added in 1.3.2)"
5513 msgstr ""
5514
5515 # type: =head2
5516 #: ../src/guestfs-actions.pod:948
5517 msgid "guestfs_checksums_out"
5518 msgstr ""
5519
5520 # type: verbatim
5521 #: ../src/guestfs-actions.pod:950
5522 #, no-wrap
5523 msgid ""
5524 " int\n"
5525 " guestfs_checksums_out (guestfs_h *g,\n"
5526 "                        const char *csumtype,\n"
5527 "                        const char *directory,\n"
5528 "                        const char *sumsfile);\n"
5529 "\n"
5530 msgstr ""
5531
5532 # type: textblock
5533 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
5534 msgid ""
5535 "This command computes the checksums of all regular files in C<directory> and "
5536 "then emits a list of those checksums to the local output file C<sumsfile>."
5537 msgstr ""
5538
5539 # type: textblock
5540 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
5541 msgid ""
5542 "This can be used for verifying the integrity of a virtual machine.  However "
5543 "to be properly secure you should pay attention to the output of the checksum "
5544 "command (it uses the ones from GNU coreutils).  In particular when the "
5545 "filename is not printable, coreutils uses a special backslash syntax.  For "
5546 "more information, see the GNU coreutils info file."
5547 msgstr ""
5548
5549 # type: textblock
5550 #: ../src/guestfs-actions.pod:970
5551 msgid "(Added in 1.3.7)"
5552 msgstr ""
5553
5554 # type: =head2
5555 #: ../src/guestfs-actions.pod:972
5556 msgid "guestfs_chmod"
5557 msgstr ""
5558
5559 # type: verbatim
5560 #: ../src/guestfs-actions.pod:974
5561 #, no-wrap
5562 msgid ""
5563 " int\n"
5564 " guestfs_chmod (guestfs_h *g,\n"
5565 "                int mode,\n"
5566 "                const char *path);\n"
5567 "\n"
5568 msgstr ""
5569
5570 # type: textblock
5571 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
5572 msgid ""
5573 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5574 "supported."
5575 msgstr ""
5576
5577 # type: textblock
5578 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
5579 msgid ""
5580 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5581 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5582 "C<700>."
5583 msgstr ""
5584
5585 # type: textblock
5586 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:4053 ../src/guestfs-actions.pod:4072 ../src/guestfs-actions.pod:4091 ../fish/guestfish-actions.pod:671 ../fish/guestfish-actions.pod:2627 ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2722 ../fish/guestfish-actions.pod:2732
5587 msgid "The mode actually set is affected by the umask."
5588 msgstr ""
5589
5590 # type: =head2
5591 #: ../src/guestfs-actions.pod:992
5592 msgid "guestfs_chown"
5593 msgstr ""
5594
5595 # type: verbatim
5596 #: ../src/guestfs-actions.pod:994
5597 #, no-wrap
5598 msgid ""
5599 " int\n"
5600 " guestfs_chown (guestfs_h *g,\n"
5601 "                int owner,\n"
5602 "                int group,\n"
5603 "                const char *path);\n"
5604 "\n"
5605 msgstr ""
5606
5607 # type: textblock
5608 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
5609 msgid "Change the file owner to C<owner> and group to C<group>."
5610 msgstr ""
5611
5612 # type: textblock
5613 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3076 ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2105
5614 msgid ""
5615 "Only numeric uid and gid are supported.  If you want to use names, you will "
5616 "need to locate and parse the password file yourself (Augeas support makes "
5617 "this relatively easy)."
5618 msgstr ""
5619
5620 # type: =head2
5621 #: ../src/guestfs-actions.pod:1010
5622 msgid "guestfs_command"
5623 msgstr ""
5624
5625 # type: verbatim
5626 #: ../src/guestfs-actions.pod:1012
5627 #, no-wrap
5628 msgid ""
5629 " char *\n"
5630 " guestfs_command (guestfs_h *g,\n"
5631 "                  char *const *arguments);\n"
5632 "\n"
5633 msgstr ""
5634
5635 # type: textblock
5636 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
5637 msgid ""
5638 "This call runs a command from the guest filesystem.  The filesystem must be "
5639 "mounted, and must contain a compatible operating system (ie. something "
5640 "Linux, with the same or compatible processor architecture)."
5641 msgstr ""
5642
5643 # type: textblock
5644 #: ../src/guestfs-actions.pod:1021
5645 msgid ""
5646 "The single parameter is an argv-style list of arguments.  The first element "
5647 "is the name of the program to run.  Subsequent elements are parameters.  The "
5648 "list must be non-empty (ie. must contain a program name).  Note that the "
5649 "command runs directly, and is I<not> invoked via the shell (see "
5650 "C<guestfs_sh>)."
5651 msgstr ""
5652
5653 # type: textblock
5654 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
5655 msgid "The return value is anything printed to I<stdout> by the command."
5656 msgstr ""
5657
5658 # type: textblock
5659 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
5660 msgid ""
5661 "If the command returns a non-zero exit status, then this function returns an "
5662 "error message.  The error message string is the content of I<stderr> from "
5663 "the command."
5664 msgstr ""
5665
5666 # type: textblock
5667 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
5668 msgid ""
5669 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5670 "C</bin>.  If you require a program from another location, you should provide "
5671 "the full path in the first parameter."
5672 msgstr ""
5673
5674 # type: textblock
5675 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
5676 msgid ""
5677 "Shared libraries and data files required by the program must be available on "
5678 "filesystems which are mounted in the correct places.  It is the caller's "
5679 "responsibility to ensure all filesystems that are needed are mounted at the "
5680 "right locations."
5681 msgstr ""
5682
5683 # type: textblock
5684 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1535
5685 msgid "(Added in 0.9.1)"
5686 msgstr ""
5687
5688 # type: =head2
5689 #: ../src/guestfs-actions.pod:1054
5690 msgid "guestfs_command_lines"
5691 msgstr ""
5692
5693 # type: verbatim
5694 #: ../src/guestfs-actions.pod:1056
5695 #, no-wrap
5696 msgid ""
5697 " char **\n"
5698 " guestfs_command_lines (guestfs_h *g,\n"
5699 "                        char *const *arguments);\n"
5700 "\n"
5701 msgstr ""
5702
5703 # type: textblock
5704 #: ../src/guestfs-actions.pod:1060
5705 msgid ""
5706 "This is the same as C<guestfs_command>, but splits the result into a list of "
5707 "lines."
5708 msgstr ""
5709
5710 # type: textblock
5711 #: ../src/guestfs-actions.pod:1063
5712 msgid "See also: C<guestfs_sh_lines>"
5713 msgstr ""
5714
5715 # type: =head2
5716 #: ../src/guestfs-actions.pod:1074
5717 msgid "guestfs_config"
5718 msgstr ""
5719
5720 # type: verbatim
5721 #: ../src/guestfs-actions.pod:1076
5722 #, no-wrap
5723 msgid ""
5724 " int\n"
5725 " guestfs_config (guestfs_h *g,\n"
5726 "                 const char *qemuparam,\n"
5727 "                 const char *qemuvalue);\n"
5728 "\n"
5729 msgstr ""
5730
5731 # type: textblock
5732 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
5733 msgid ""
5734 "This can be used to add arbitrary qemu command line parameters of the form "
5735 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5736 "setting some parameters which would interfere with parameters that we use."
5737 msgstr ""
5738
5739 # type: textblock
5740 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
5741 msgid "The first character of C<param> string must be a C<-> (dash)."
5742 msgstr ""
5743
5744 # type: textblock
5745 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
5746 msgid "C<value> can be NULL."
5747 msgstr ""
5748
5749 # type: =head2
5750 #: ../src/guestfs-actions.pod:1094
5751 msgid "guestfs_copy_size"
5752 msgstr ""
5753
5754 # type: verbatim
5755 #: ../src/guestfs-actions.pod:1096
5756 #, no-wrap
5757 msgid ""
5758 " int\n"
5759 " guestfs_copy_size (guestfs_h *g,\n"
5760 "                    const char *src,\n"
5761 "                    const char *dest,\n"
5762 "                    int64_t size);\n"
5763 "\n"
5764 msgstr ""
5765
5766 # type: textblock
5767 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
5768 msgid ""
5769 "This command copies exactly C<size> bytes from one source device or file "
5770 "C<src> to another destination device or file C<dest>."
5771 msgstr ""
5772
5773 # type: textblock
5774 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
5775 msgid ""
5776 "Note this will fail if the source is too short or if the destination is not "
5777 "large enough."
5778 msgstr ""
5779
5780 # type: textblock
5781 #: ../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:6744 ../src/guestfs-actions.pod:6763
5782 msgid ""
5783 "This long-running command can generate progress notification messages so "
5784 "that the caller can display a progress bar or indicator.  To receive these "
5785 "messages, the caller must register a progress callback.  See "
5786 "L<guestfs(3)/guestfs_set_progress_callback>."
5787 msgstr ""
5788
5789 # type: textblock
5790 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3714 ../src/guestfs-actions.pod:4850 ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6492 ../src/guestfs-actions.pod:6578
5791 msgid "(Added in 1.0.87)"
5792 msgstr ""
5793
5794 # type: =head2
5795 #: ../src/guestfs-actions.pod:1117
5796 msgid "guestfs_cp"
5797 msgstr ""
5798
5799 # type: verbatim
5800 #: ../src/guestfs-actions.pod:1119
5801 #, no-wrap
5802 msgid ""
5803 " int\n"
5804 " guestfs_cp (guestfs_h *g,\n"
5805 "             const char *src,\n"
5806 "             const char *dest);\n"
5807 "\n"
5808 msgstr ""
5809
5810 # type: textblock
5811 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
5812 msgid ""
5813 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5814 "destination filename or destination directory."
5815 msgstr ""
5816
5817 # type: textblock
5818 #: ../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:4317 ../src/guestfs-actions.pod:4694
5819 msgid "(Added in 1.0.18)"
5820 msgstr ""
5821
5822 # type: =head2
5823 #: ../src/guestfs-actions.pod:1131
5824 msgid "guestfs_cp_a"
5825 msgstr ""
5826
5827 # type: verbatim
5828 #: ../src/guestfs-actions.pod:1133
5829 #, no-wrap
5830 msgid ""
5831 " int\n"
5832 " guestfs_cp_a (guestfs_h *g,\n"
5833 "               const char *src,\n"
5834 "               const char *dest);\n"
5835 "\n"
5836 msgstr ""
5837
5838 # type: textblock
5839 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
5840 msgid ""
5841 "This copies a file or directory from C<src> to C<dest> recursively using the "
5842 "C<cp -a> command."
5843 msgstr ""
5844
5845 # type: =head2
5846 #: ../src/guestfs-actions.pod:1145
5847 msgid "guestfs_dd"
5848 msgstr ""
5849
5850 # type: verbatim
5851 #: ../src/guestfs-actions.pod:1147
5852 #, no-wrap
5853 msgid ""
5854 " int\n"
5855 " guestfs_dd (guestfs_h *g,\n"
5856 "             const char *src,\n"
5857 "             const char *dest);\n"
5858 "\n"
5859 msgstr ""
5860
5861 # type: textblock
5862 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
5863 msgid ""
5864 "This command copies from one source device or file C<src> to another "
5865 "destination device or file C<dest>.  Normally you would use this to copy to "
5866 "or from a device or partition, for example to duplicate a filesystem."
5867 msgstr ""
5868
5869 # type: textblock
5870 #: ../src/guestfs-actions.pod:1157
5871 msgid ""
5872 "If the destination is a device, it must be as large or larger than the "
5873 "source file or device, otherwise the copy will fail.  This command cannot do "
5874 "partial copies (see C<guestfs_copy_size>)."
5875 msgstr ""
5876
5877 # type: =head2
5878 #: ../src/guestfs-actions.pod:1165
5879 msgid "guestfs_df"
5880 msgstr ""
5881
5882 # type: verbatim
5883 #: ../src/guestfs-actions.pod:1167
5884 #, no-wrap
5885 msgid ""
5886 " char *\n"
5887 " guestfs_df (guestfs_h *g);\n"
5888 "\n"
5889 msgstr ""
5890
5891 # type: textblock
5892 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
5893 msgid "This command runs the C<df> command to report disk space used."
5894 msgstr ""
5895
5896 # type: textblock
5897 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189 ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
5898 msgid ""
5899 "This command is mostly useful for interactive sessions.  It is I<not> "
5900 "intended that you try to parse the output string.  Use C<statvfs> from "
5901 "programs."
5902 msgstr ""
5903
5904 # type: textblock
5905 #: ../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:3824 ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:5979 ../src/guestfs-actions.pod:6003 ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6637
5906 msgid "(Added in 1.0.54)"
5907 msgstr ""
5908
5909 # type: =head2
5910 #: ../src/guestfs-actions.pod:1181
5911 msgid "guestfs_df_h"
5912 msgstr ""
5913
5914 # type: verbatim
5915 #: ../src/guestfs-actions.pod:1183
5916 #, no-wrap
5917 msgid ""
5918 " char *\n"
5919 " guestfs_df_h (guestfs_h *g);\n"
5920 "\n"
5921 msgstr ""
5922
5923 # type: textblock
5924 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
5925 msgid ""
5926 "This command runs the C<df -h> command to report disk space used in "
5927 "human-readable format."
5928 msgstr ""
5929
5930 # type: =head2
5931 #: ../src/guestfs-actions.pod:1198
5932 msgid "guestfs_dmesg"
5933 msgstr ""
5934
5935 # type: verbatim
5936 #: ../src/guestfs-actions.pod:1200
5937 #, no-wrap
5938 msgid ""
5939 " char *\n"
5940 " guestfs_dmesg (guestfs_h *g);\n"
5941 "\n"
5942 msgstr ""
5943
5944 # type: textblock
5945 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
5946 msgid ""
5947 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5948 "This is sometimes useful for extended debugging of problems."
5949 msgstr ""
5950
5951 # type: textblock
5952 #: ../src/guestfs-actions.pod:1207
5953 msgid ""
5954 "Another way to get the same information is to enable verbose messages with "
5955 "C<guestfs_set_verbose> or by setting the environment variable "
5956 "C<LIBGUESTFS_DEBUG=1> before running the program."
5957 msgstr ""
5958
5959 # type: =head2
5960 #: ../src/guestfs-actions.pod:1217
5961 msgid "guestfs_download"
5962 msgstr ""
5963
5964 # type: verbatim
5965 #: ../src/guestfs-actions.pod:1219
5966 #, no-wrap
5967 msgid ""
5968 " int\n"
5969 " guestfs_download (guestfs_h *g,\n"
5970 "                   const char *remotefilename,\n"
5971 "                   const char *filename);\n"
5972 "\n"
5973 msgstr ""
5974
5975 # type: textblock
5976 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
5977 msgid ""
5978 "Download file C<remotefilename> and save it as C<filename> on the local "
5979 "machine."
5980 msgstr ""
5981
5982 # type: textblock
5983 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6235 ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4147
5984 msgid "C<filename> can also be a named pipe."
5985 msgstr ""
5986
5987 # type: textblock
5988 #: ../src/guestfs-actions.pod:1229
5989 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5990 msgstr ""
5991
5992 # type: =head2
5993 #: ../src/guestfs-actions.pod:1240
5994 msgid "guestfs_download_offset"
5995 msgstr ""
5996
5997 # type: verbatim
5998 #: ../src/guestfs-actions.pod:1242
5999 #, no-wrap
6000 msgid ""
6001 " int\n"
6002 " guestfs_download_offset (guestfs_h *g,\n"
6003 "                          const char *remotefilename,\n"
6004 "                          const char *filename,\n"
6005 "                          int64_t offset,\n"
6006 "                          int64_t size);\n"
6007 "\n"
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6012 msgid ""
6013 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6014 "region must be within the file or device)."
6015 msgstr ""
6016
6017 # type: textblock
6018 #: ../src/guestfs-actions.pod:1255
6019 msgid ""
6020 "Note that there is no limit on the amount of data that can be downloaded "
6021 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6022 "full amount unless an error occurs."
6023 msgstr ""
6024
6025 # type: textblock
6026 #: ../src/guestfs-actions.pod:1260
6027 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6028 msgstr ""
6029
6030 # type: textblock
6031 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6270
6032 msgid "(Added in 1.5.17)"
6033 msgstr ""
6034
6035 # type: =head2
6036 #: ../src/guestfs-actions.pod:1271
6037 msgid "guestfs_drop_caches"
6038 msgstr ""
6039
6040 # type: verbatim
6041 #: ../src/guestfs-actions.pod:1273
6042 #, no-wrap
6043 msgid ""
6044 " int\n"
6045 " guestfs_drop_caches (guestfs_h *g,\n"
6046 "                      int whattodrop);\n"
6047 "\n"
6048 msgstr ""
6049
6050 # type: textblock
6051 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6052 msgid ""
6053 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6054 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6055 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6056 msgstr ""
6057
6058 # type: textblock
6059 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6060 msgid "Setting C<whattodrop> to 3 should drop everything."
6061 msgstr ""
6062
6063 # type: textblock
6064 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6065 msgid ""
6066 "This automatically calls L<sync(2)> before the operation, so that the "
6067 "maximum guest memory is freed."
6068 msgstr ""
6069
6070 # type: =head2
6071 #: ../src/guestfs-actions.pod:1291
6072 msgid "guestfs_du"
6073 msgstr ""
6074
6075 # type: verbatim
6076 #: ../src/guestfs-actions.pod:1293
6077 #, no-wrap
6078 msgid ""
6079 " int64_t\n"
6080 " guestfs_du (guestfs_h *g,\n"
6081 "             const char *path);\n"
6082 "\n"
6083 msgstr ""
6084
6085 # type: textblock
6086 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6087 msgid ""
6088 "This command runs the C<du -s> command to estimate file space usage for "
6089 "C<path>."
6090 msgstr ""
6091
6092 # type: textblock
6093 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6094 msgid ""
6095 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6096 "estimate includes the contents of the directory and all subdirectories "
6097 "(recursively)."
6098 msgstr ""
6099
6100 # type: textblock
6101 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6102 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6103 msgstr ""
6104
6105 # type: =head2
6106 #: ../src/guestfs-actions.pod:1311
6107 msgid "guestfs_e2fsck_f"
6108 msgstr ""
6109
6110 # type: verbatim
6111 #: ../src/guestfs-actions.pod:1313
6112 #, no-wrap
6113 msgid ""
6114 " int\n"
6115 " guestfs_e2fsck_f (guestfs_h *g,\n"
6116 "                   const char *device);\n"
6117 "\n"
6118 msgstr ""
6119
6120 # type: textblock
6121 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6122 msgid ""
6123 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6124 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6125 "clean (C<-f>)."
6126 msgstr ""
6127
6128 # type: textblock
6129 #: ../src/guestfs-actions.pod:1321
6130 msgid ""
6131 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6132 "Normally you should use C<guestfs_fsck>."
6133 msgstr ""
6134
6135 # type: textblock
6136 #: ../src/guestfs-actions.pod:1326
6137 msgid "(Added in 1.0.29)"
6138 msgstr ""
6139
6140 # type: =head2
6141 #: ../src/guestfs-actions.pod:1328
6142 msgid "guestfs_echo_daemon"
6143 msgstr ""
6144
6145 # type: verbatim
6146 #: ../src/guestfs-actions.pod:1330
6147 #, no-wrap
6148 msgid ""
6149 " char *\n"
6150 " guestfs_echo_daemon (guestfs_h *g,\n"
6151 "                      char *const *words);\n"
6152 "\n"
6153 msgstr ""
6154
6155 # type: textblock
6156 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6157 msgid ""
6158 "This command concatenates the list of C<words> passed with single spaces "
6159 "between them and returns the resulting string."
6160 msgstr ""
6161
6162 # type: textblock
6163 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6164 msgid "You can use this command to test the connection through to the daemon."
6165 msgstr ""
6166
6167 # type: textblock
6168 #: ../src/guestfs-actions.pod:1339
6169 msgid "See also C<guestfs_ping_daemon>."
6170 msgstr ""
6171
6172 # type: textblock
6173 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:5483
6174 msgid "(Added in 1.0.69)"
6175 msgstr ""
6176
6177 # type: =head2
6178 #: ../src/guestfs-actions.pod:1346
6179 msgid "guestfs_egrep"
6180 msgstr ""
6181
6182 # type: verbatim
6183 #: ../src/guestfs-actions.pod:1348
6184 #, no-wrap
6185 msgid ""
6186 " char **\n"
6187 " guestfs_egrep (guestfs_h *g,\n"
6188 "                const char *regex,\n"
6189 "                const char *path);\n"
6190 "\n"
6191 msgstr ""
6192
6193 # type: textblock
6194 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6195 msgid "This calls the external C<egrep> program and returns the matching lines."
6196 msgstr ""
6197
6198 # type: textblock
6199 #: ../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:3207 ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3234 ../src/guestfs-actions.pod:3248 ../src/guestfs-actions.pod:4152 ../src/guestfs-actions.pod:5028 ../src/guestfs-actions.pod:5077 ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5872 ../src/guestfs-actions.pod:5885 ../src/guestfs-actions.pod:5907 ../src/guestfs-actions.pod:5920 ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5946 ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:6811 ../src/guestfs-actions.pod:6830 ../src/guestfs-actions.pod:6876 ../src/guestfs-actions.pod:6895
6200 msgid "(Added in 1.0.66)"
6201 msgstr ""
6202
6203 # type: =head2
6204 #: ../src/guestfs-actions.pod:1365
6205 msgid "guestfs_egrepi"
6206 msgstr ""
6207
6208 # type: verbatim
6209 #: ../src/guestfs-actions.pod:1367
6210 #, no-wrap
6211 msgid ""
6212 " char **\n"
6213 " guestfs_egrepi (guestfs_h *g,\n"
6214 "                 const char *regex,\n"
6215 "                 const char *path);\n"
6216 "\n"
6217 msgstr ""
6218
6219 # type: textblock
6220 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6221 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6222 msgstr ""
6223
6224 # type: =head2
6225 #: ../src/guestfs-actions.pod:1384
6226 msgid "guestfs_equal"
6227 msgstr ""
6228
6229 # type: verbatim
6230 #: ../src/guestfs-actions.pod:1386
6231 #, no-wrap
6232 msgid ""
6233 " int\n"
6234 " guestfs_equal (guestfs_h *g,\n"
6235 "                const char *file1,\n"
6236 "                const char *file2);\n"
6237 "\n"
6238 msgstr ""
6239
6240 # type: textblock
6241 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6242 msgid ""
6243 "This compares the two files C<file1> and C<file2> and returns true if their "
6244 "content is exactly equal, or false otherwise."
6245 msgstr ""
6246
6247 # type: textblock
6248 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6249 msgid "The external L<cmp(1)> program is used for the comparison."
6250 msgstr ""
6251
6252 # type: =head2
6253 #: ../src/guestfs-actions.pod:1400
6254 msgid "guestfs_exists"
6255 msgstr ""
6256
6257 # type: verbatim
6258 #: ../src/guestfs-actions.pod:1402
6259 #, no-wrap
6260 msgid ""
6261 " int\n"
6262 " guestfs_exists (guestfs_h *g,\n"
6263 "                 const char *path);\n"
6264 "\n"
6265 msgstr ""
6266
6267 # type: textblock
6268 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6269 msgid ""
6270 "This returns C<true> if and only if there is a file, directory (or anything) "
6271 "with the given C<path> name."
6272 msgstr ""
6273
6274 # type: textblock
6275 #: ../src/guestfs-actions.pod:1409
6276 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6277 msgstr ""
6278
6279 # type: =head2
6280 #: ../src/guestfs-actions.pod:1415
6281 msgid "guestfs_fallocate"
6282 msgstr ""
6283
6284 # type: verbatim
6285 #: ../src/guestfs-actions.pod:1417
6286 #, no-wrap
6287 msgid ""
6288 " int\n"
6289 " guestfs_fallocate (guestfs_h *g,\n"
6290 "                    const char *path,\n"
6291 "                    int len);\n"
6292 "\n"
6293 msgstr ""
6294
6295 # type: textblock
6296 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6297 msgid ""
6298 "This command preallocates a file (containing zero bytes) named C<path> of "
6299 "size C<len> bytes.  If the file exists already, it is overwritten."
6300 msgstr ""
6301
6302 # type: textblock
6303 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6304 msgid ""
6305 "Do not confuse this with the guestfish-specific C<alloc> command which "
6306 "allocates a file in the host and attaches it as a device."
6307 msgstr ""
6308
6309 # type: textblock
6310 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6311 msgid ""
6312 "This function is deprecated.  In new code, use the C<fallocate64> call "
6313 "instead."
6314 msgstr ""
6315
6316 # type: =head2
6317 #: ../src/guestfs-actions.pod:1441
6318 msgid "guestfs_fallocate64"
6319 msgstr ""
6320
6321 # type: verbatim
6322 #: ../src/guestfs-actions.pod:1443
6323 #, no-wrap
6324 msgid ""
6325 " int\n"
6326 " guestfs_fallocate64 (guestfs_h *g,\n"
6327 "                      const char *path,\n"
6328 "                      int64_t len);\n"
6329 "\n"
6330 msgstr ""
6331
6332 # type: textblock
6333 #: ../src/guestfs-actions.pod:1452
6334 msgid ""
6335 "Note that this call allocates disk blocks for the file.  To create a sparse "
6336 "file use C<guestfs_truncate_size> instead."
6337 msgstr ""
6338
6339 # type: textblock
6340 #: ../src/guestfs-actions.pod:1455
6341 msgid ""
6342 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6343 "oversight it only allowed 30 bit lengths to be specified, effectively "
6344 "limiting the maximum size of files created through that call to 1GB."
6345 msgstr ""
6346
6347 # type: textblock
6348 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6349 msgid ""
6350 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6351 "commands which create a file in the host and attach it as a device."
6352 msgstr ""
6353
6354 # type: textblock
6355 #: ../src/guestfs-actions.pod:1466
6356 msgid "(Added in 1.3.17)"
6357 msgstr ""
6358
6359 # type: =head2
6360 #: ../src/guestfs-actions.pod:1468
6361 msgid "guestfs_fgrep"
6362 msgstr ""
6363
6364 # type: verbatim
6365 #: ../src/guestfs-actions.pod:1470
6366 #, no-wrap
6367 msgid ""
6368 " char **\n"
6369 " guestfs_fgrep (guestfs_h *g,\n"
6370 "                const char *pattern,\n"
6371 "                const char *path);\n"
6372 "\n"
6373 msgstr ""
6374
6375 # type: textblock
6376 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
6377 msgid "This calls the external C<fgrep> program and returns the matching lines."
6378 msgstr ""
6379
6380 # type: =head2
6381 #: ../src/guestfs-actions.pod:1487
6382 msgid "guestfs_fgrepi"
6383 msgstr ""
6384
6385 # type: verbatim
6386 #: ../src/guestfs-actions.pod:1489
6387 #, no-wrap
6388 msgid ""
6389 " char **\n"
6390 " guestfs_fgrepi (guestfs_h *g,\n"
6391 "                 const char *pattern,\n"
6392 "                 const char *path);\n"
6393 "\n"
6394 msgstr ""
6395
6396 # type: textblock
6397 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
6398 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6399 msgstr ""
6400
6401 # type: =head2
6402 #: ../src/guestfs-actions.pod:1506
6403 msgid "guestfs_file"
6404 msgstr ""
6405
6406 # type: verbatim
6407 #: ../src/guestfs-actions.pod:1508
6408 #, no-wrap
6409 msgid ""
6410 " char *\n"
6411 " guestfs_file (guestfs_h *g,\n"
6412 "               const char *path);\n"
6413 "\n"
6414 msgstr ""
6415
6416 # type: textblock
6417 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
6418 msgid ""
6419 "This call uses the standard L<file(1)> command to determine the type or "
6420 "contents of the file."
6421 msgstr ""
6422
6423 # type: textblock
6424 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
6425 msgid ""
6426 "This call will also transparently look inside various types of compressed "
6427 "file."
6428 msgstr ""
6429
6430 # type: textblock
6431 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
6432 msgid ""
6433 "The exact command which runs is C<file -zb path>.  Note in particular that "
6434 "the filename is not prepended to the output (the C<-b> option)."
6435 msgstr ""
6436
6437 # type: textblock
6438 #: ../src/guestfs-actions.pod:1522
6439 msgid ""
6440 "This command can also be used on C</dev/> devices (and partitions, LV "
6441 "names).  You can for example use this to determine if a device contains a "
6442 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6443 msgstr ""
6444
6445 # type: textblock
6446 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
6447 msgid ""
6448 "If the C<path> does not begin with C</dev/> then this command only works for "
6449 "the content of regular files.  For other file types (directory, symbolic "
6450 "link etc) it will just return the string C<directory> etc."
6451 msgstr ""
6452
6453 # type: =head2
6454 #: ../src/guestfs-actions.pod:1537
6455 msgid "guestfs_file_architecture"
6456 msgstr ""
6457
6458 # type: verbatim
6459 #: ../src/guestfs-actions.pod:1539
6460 #, no-wrap
6461 msgid ""
6462 " char *\n"
6463 " guestfs_file_architecture (guestfs_h *g,\n"
6464 "                            const char *filename);\n"
6465 "\n"
6466 msgstr ""
6467
6468 # type: textblock
6469 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
6470 msgid ""
6471 "This detects the architecture of the binary C<filename>, and returns it if "
6472 "known."
6473 msgstr ""
6474
6475 # type: textblock
6476 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
6477 msgid "Currently defined architectures are:"
6478 msgstr ""
6479
6480 # type: =item
6481 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
6482 msgid "\"i386\""
6483 msgstr ""
6484
6485 # type: textblock
6486 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
6487 msgid ""
6488 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6489 "irrespective of the precise processor requirements of the binary."
6490 msgstr ""
6491
6492 # type: =item
6493 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
6494 msgid "\"x86_64\""
6495 msgstr ""
6496
6497 # type: textblock
6498 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
6499 msgid "64 bit x86-64."
6500 msgstr ""
6501
6502 # type: =item
6503 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
6504 msgid "\"sparc\""
6505 msgstr ""
6506
6507 # type: textblock
6508 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
6509 msgid "32 bit SPARC."
6510 msgstr ""
6511
6512 # type: =item
6513 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
6514 msgid "\"sparc64\""
6515 msgstr ""
6516
6517 # type: textblock
6518 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
6519 msgid "64 bit SPARC V9 and above."
6520 msgstr ""
6521
6522 # type: =item
6523 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
6524 msgid "\"ia64\""
6525 msgstr ""
6526
6527 # type: textblock
6528 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
6529 msgid "Intel Itanium."
6530 msgstr ""
6531
6532 # type: =item
6533 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
6534 msgid "\"ppc\""
6535 msgstr ""
6536
6537 # type: textblock
6538 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
6539 msgid "32 bit Power PC."
6540 msgstr ""
6541
6542 # type: =item
6543 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
6544 msgid "\"ppc64\""
6545 msgstr ""
6546
6547 # type: textblock
6548 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
6549 msgid "64 bit Power PC."
6550 msgstr ""
6551
6552 # type: textblock
6553 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
6554 msgid "Libguestfs may return other architecture strings in future."
6555 msgstr ""
6556
6557 # type: textblock
6558 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
6559 msgid "The function works on at least the following types of files:"
6560 msgstr ""
6561
6562 # type: textblock
6563 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
6564 msgid "many types of Un*x and Linux binary"
6565 msgstr ""
6566
6567 # type: textblock
6568 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
6569 msgid "many types of Un*x and Linux shared library"
6570 msgstr ""
6571
6572 # type: textblock
6573 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
6574 msgid "Windows Win32 and Win64 binaries"
6575 msgstr ""
6576
6577 # type: textblock
6578 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
6579 msgid "Windows Win32 and Win64 DLLs"
6580 msgstr ""
6581
6582 # type: textblock
6583 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
6584 msgid "Win32 binaries and DLLs return C<i386>."
6585 msgstr ""
6586
6587 # type: textblock
6588 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
6589 msgid "Win64 binaries and DLLs return C<x86_64>."
6590 msgstr ""
6591
6592 # type: textblock
6593 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
6594 msgid "Linux kernel modules"
6595 msgstr ""
6596
6597 # type: textblock
6598 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
6599 msgid "Linux new-style initrd images"
6600 msgstr ""
6601
6602 # type: textblock
6603 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
6604 msgid "some non-x86 Linux vmlinuz kernels"
6605 msgstr ""
6606
6607 # type: textblock
6608 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
6609 msgid "What it can't do currently:"
6610 msgstr ""
6611
6612 # type: textblock
6613 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
6614 msgid "static libraries (libfoo.a)"
6615 msgstr ""
6616
6617 # type: textblock
6618 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
6619 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6620 msgstr ""
6621
6622 # type: textblock
6623 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
6624 msgid "x86 Linux vmlinuz kernels"
6625 msgstr ""
6626
6627 # type: textblock
6628 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
6629 msgid ""
6630 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6631 "compressed code, and are horribly hard to unpack.  If you want to find the "
6632 "architecture of a kernel, use the architecture of the associated initrd or "
6633 "kernel module(s) instead."
6634 msgstr ""
6635
6636 # type: textblock
6637 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810 ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478 ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2577 ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2992
6638 msgid "(Added in 1.5.3)"
6639 msgstr ""
6640
6641 # type: =head2
6642 #: ../src/guestfs-actions.pod:1649
6643 msgid "guestfs_filesize"
6644 msgstr ""
6645
6646 # type: verbatim
6647 #: ../src/guestfs-actions.pod:1651
6648 #, no-wrap
6649 msgid ""
6650 " int64_t\n"
6651 " guestfs_filesize (guestfs_h *g,\n"
6652 "                   const char *file);\n"
6653 "\n"
6654 msgstr ""
6655
6656 # type: textblock
6657 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
6658 msgid "This command returns the size of C<file> in bytes."
6659 msgstr ""
6660
6661 # type: textblock
6662 #: ../src/guestfs-actions.pod:1657
6663 msgid ""
6664 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6665 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6666 "devices, use C<guestfs_blockdev_getsize64>."
6667 msgstr ""
6668
6669 # type: textblock
6670 #: ../src/guestfs-actions.pod:1663
6671 msgid "(Added in 1.0.82)"
6672 msgstr ""
6673
6674 # type: =head2
6675 #: ../src/guestfs-actions.pod:1665
6676 msgid "guestfs_fill"
6677 msgstr ""
6678
6679 # type: verbatim
6680 #: ../src/guestfs-actions.pod:1667
6681 #, no-wrap
6682 msgid ""
6683 " int\n"
6684 " guestfs_fill (guestfs_h *g,\n"
6685 "               int c,\n"
6686 "               int len,\n"
6687 "               const char *path);\n"
6688 "\n"
6689 msgstr ""
6690
6691 # type: textblock
6692 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
6693 msgid ""
6694 "This command creates a new file called C<path>.  The initial content of the "
6695 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6696 "C<[0..255]>."
6697 msgstr ""
6698
6699 # type: textblock
6700 #: ../src/guestfs-actions.pod:1677
6701 msgid ""
6702 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6703 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6704 "bytes use C<guestfs_fill_pattern>."
6705 msgstr ""
6706
6707 # type: textblock
6708 #: ../src/guestfs-actions.pod:1689
6709 msgid "(Added in 1.0.79)"
6710 msgstr ""
6711
6712 # type: =head2
6713 #: ../src/guestfs-actions.pod:1691
6714 msgid "guestfs_fill_pattern"
6715 msgstr ""
6716
6717 # type: verbatim
6718 #: ../src/guestfs-actions.pod:1693
6719 #, no-wrap
6720 msgid ""
6721 " int\n"
6722 " guestfs_fill_pattern (guestfs_h *g,\n"
6723 "                       const char *pattern,\n"
6724 "                       int len,\n"
6725 "                       const char *path);\n"
6726 "\n"
6727 msgstr ""
6728
6729 # type: textblock
6730 #: ../src/guestfs-actions.pod:1699
6731 msgid ""
6732 "This function is like C<guestfs_fill> except that it creates a new file of "
6733 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6734 "pattern is truncated if necessary to ensure the length of the file is "
6735 "exactly C<len> bytes."
6736 msgstr ""
6737
6738 # type: textblock
6739 #: ../src/guestfs-actions.pod:1711
6740 msgid "(Added in 1.3.12)"
6741 msgstr ""
6742
6743 # type: =head2
6744 #: ../src/guestfs-actions.pod:1713
6745 msgid "guestfs_find"
6746 msgstr ""
6747
6748 # type: verbatim
6749 #: ../src/guestfs-actions.pod:1715
6750 #, no-wrap
6751 msgid ""
6752 " char **\n"
6753 " guestfs_find (guestfs_h *g,\n"
6754 "               const char *directory);\n"
6755 "\n"
6756 msgstr ""
6757
6758 # type: textblock
6759 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
6760 msgid ""
6761 "This command lists out all files and directories, recursively, starting at "
6762 "C<directory>.  It is essentially equivalent to running the shell command "
6763 "C<find directory -print> but some post-processing happens on the output, "
6764 "described below."
6765 msgstr ""
6766
6767 # type: textblock
6768 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
6769 msgid ""
6770 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6771 "structure was:"
6772 msgstr ""
6773
6774 # type: verbatim
6775 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
6776 #, no-wrap
6777 msgid ""
6778 " /tmp/a\n"
6779 " /tmp/b\n"
6780 " /tmp/c/d\n"
6781 "\n"
6782 msgstr ""
6783
6784 # type: textblock
6785 #: ../src/guestfs-actions.pod:1731
6786 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6787 msgstr ""
6788
6789 # type: verbatim
6790 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
6791 #, no-wrap
6792 msgid ""
6793 " a\n"
6794 " b\n"
6795 " c\n"
6796 " c/d\n"
6797 "\n"
6798 msgstr ""
6799
6800 # type: textblock
6801 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
6802 msgid "If C<directory> is not a directory, then this command returns an error."
6803 msgstr ""
6804
6805 # type: textblock
6806 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
6807 msgid "The returned list is sorted."
6808 msgstr ""
6809
6810 # type: textblock
6811 #: ../src/guestfs-actions.pod:1744
6812 msgid "See also C<guestfs_find0>."
6813 msgstr ""
6814
6815 # type: textblock
6816 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:5112
6817 msgid "(Added in 1.0.27)"
6818 msgstr ""
6819
6820 # type: =head2
6821 #: ../src/guestfs-actions.pod:1755
6822 msgid "guestfs_find0"
6823 msgstr ""
6824
6825 # type: verbatim
6826 #: ../src/guestfs-actions.pod:1757
6827 #, no-wrap
6828 msgid ""
6829 " int\n"
6830 " guestfs_find0 (guestfs_h *g,\n"
6831 "                const char *directory,\n"
6832 "                const char *files);\n"
6833 "\n"
6834 msgstr ""
6835
6836 # type: textblock
6837 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
6838 msgid ""
6839 "This command lists out all files and directories, recursively, starting at "
6840 "C<directory>, placing the resulting list in the external file called "
6841 "C<files>."
6842 msgstr ""
6843
6844 # type: textblock
6845 #: ../src/guestfs-actions.pod:1766
6846 msgid ""
6847 "This command works the same way as C<guestfs_find> with the following "
6848 "exceptions:"
6849 msgstr ""
6850
6851 # type: textblock
6852 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
6853 msgid "The resulting list is written to an external file."
6854 msgstr ""
6855
6856 # type: textblock
6857 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
6858 msgid ""
6859 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6860 "L<find(1)> option I<-print0>."
6861 msgstr ""
6862
6863 # type: textblock
6864 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
6865 msgid "This command is not limited in the number of names that it can return."
6866 msgstr ""
6867
6868 # type: textblock
6869 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
6870 msgid "The result list is not sorted."
6871 msgstr ""
6872
6873 # type: textblock
6874 #: ../src/guestfs-actions.pod:1793
6875 msgid "(Added in 1.0.74)"
6876 msgstr ""
6877
6878 # type: =head2
6879 #: ../src/guestfs-actions.pod:1795
6880 msgid "guestfs_findfs_label"
6881 msgstr ""
6882
6883 # type: verbatim
6884 #: ../src/guestfs-actions.pod:1797
6885 #, no-wrap
6886 msgid ""
6887 " char *\n"
6888 " guestfs_findfs_label (guestfs_h *g,\n"
6889 "                       const char *label);\n"
6890 "\n"
6891 msgstr ""
6892
6893 # type: textblock
6894 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
6895 msgid ""
6896 "This command searches the filesystems and returns the one which has the "
6897 "given label.  An error is returned if no such filesystem can be found."
6898 msgstr ""
6899
6900 # type: textblock
6901 #: ../src/guestfs-actions.pod:1805
6902 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6903 msgstr ""
6904
6905 # type: =head2
6906 #: ../src/guestfs-actions.pod:1812
6907 msgid "guestfs_findfs_uuid"
6908 msgstr ""
6909
6910 # type: verbatim
6911 #: ../src/guestfs-actions.pod:1814
6912 #, no-wrap
6913 msgid ""
6914 " char *\n"
6915 " guestfs_findfs_uuid (guestfs_h *g,\n"
6916 "                      const char *uuid);\n"
6917 "\n"
6918 msgstr ""
6919
6920 # type: textblock
6921 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
6922 msgid ""
6923 "This command searches the filesystems and returns the one which has the "
6924 "given UUID.  An error is returned if no such filesystem can be found."
6925 msgstr ""
6926
6927 # type: textblock
6928 #: ../src/guestfs-actions.pod:1822
6929 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6930 msgstr ""
6931
6932 # type: =head2
6933 #: ../src/guestfs-actions.pod:1829
6934 msgid "guestfs_fsck"
6935 msgstr ""
6936
6937 # type: verbatim
6938 #: ../src/guestfs-actions.pod:1831
6939 #, no-wrap
6940 msgid ""
6941 " int\n"
6942 " guestfs_fsck (guestfs_h *g,\n"
6943 "               const char *fstype,\n"
6944 "               const char *device);\n"
6945 "\n"
6946 msgstr ""
6947
6948 # type: textblock
6949 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
6950 msgid ""
6951 "This runs the filesystem checker (fsck) on C<device> which should have "
6952 "filesystem type C<fstype>."
6953 msgstr ""
6954
6955 # type: textblock
6956 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
6957 msgid ""
6958 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6959 "codes from C<fsck>."
6960 msgstr ""
6961
6962 # type: textblock
6963 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
6964 msgid "Multiple status codes can be summed together."
6965 msgstr ""
6966
6967 # type: textblock
6968 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
6969 msgid ""
6970 "A non-zero return code can mean \"success\", for example if errors have been "
6971 "corrected on the filesystem."
6972 msgstr ""
6973
6974 # type: textblock
6975 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
6976 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6977 msgstr ""
6978
6979 # type: textblock
6980 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
6981 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6982 msgstr ""
6983
6984 # type: textblock
6985 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6749
6986 msgid "(Added in 1.0.16)"
6987 msgstr ""
6988
6989 # type: =head2
6990 #: ../src/guestfs-actions.pod:1868
6991 msgid "guestfs_get_append"
6992 msgstr ""
6993
6994 # type: verbatim
6995 #: ../src/guestfs-actions.pod:1870
6996 #, no-wrap
6997 msgid ""
6998 " const char *\n"
6999 " guestfs_get_append (guestfs_h *g);\n"
7000 "\n"
7001 msgstr ""
7002
7003 # type: textblock
7004 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7005 msgid ""
7006 "Return the additional kernel options which are added to the guest kernel "
7007 "command line."
7008 msgstr ""
7009
7010 # type: textblock
7011 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7012 msgid "If C<NULL> then no options are added."
7013 msgstr ""
7014
7015 # type: textblock
7016 #: ../src/guestfs-actions.pod:1878
7017 msgid ""
7018 "This function returns a string which may be NULL.  There is no way to return "
7019 "an error from this function.  The string is owned by the guest handle and "
7020 "must I<not> be freed."
7021 msgstr ""
7022
7023 # type: textblock
7024 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4790 ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5621 ../src/guestfs-actions.pod:5640 ../src/guestfs-actions.pod:5656 ../src/guestfs-actions.pod:5673 ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:6792
7025 msgid "(Added in 1.0.26)"
7026 msgstr ""
7027
7028 # type: =head2
7029 #: ../src/guestfs-actions.pod:1884
7030 msgid "guestfs_get_autosync"
7031 msgstr ""
7032
7033 # type: verbatim
7034 #: ../src/guestfs-actions.pod:1886
7035 #, no-wrap
7036 msgid ""
7037 " int\n"
7038 " guestfs_get_autosync (guestfs_h *g);\n"
7039 "\n"
7040 msgstr ""
7041
7042 # type: textblock
7043 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7044 msgid "Get the autosync flag."
7045 msgstr ""
7046
7047 # type: =head2
7048 #: ../src/guestfs-actions.pod:1895
7049 msgid "guestfs_get_direct"
7050 msgstr ""
7051
7052 # type: verbatim
7053 #: ../src/guestfs-actions.pod:1897
7054 #, no-wrap
7055 msgid ""
7056 " int\n"
7057 " guestfs_get_direct (guestfs_h *g);\n"
7058 "\n"
7059 msgstr ""
7060
7061 # type: textblock
7062 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7063 msgid "Return the direct appliance mode flag."
7064 msgstr ""
7065
7066 # type: textblock
7067 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5294
7068 msgid "(Added in 1.0.72)"
7069 msgstr ""
7070
7071 # type: =head2
7072 #: ../src/guestfs-actions.pod:1906
7073 msgid "guestfs_get_e2label"
7074 msgstr ""
7075
7076 # type: verbatim
7077 #: ../src/guestfs-actions.pod:1908
7078 #, no-wrap
7079 msgid ""
7080 " char *\n"
7081 " guestfs_get_e2label (guestfs_h *g,\n"
7082 "                      const char *device);\n"
7083 "\n"
7084 msgstr ""
7085
7086 # type: textblock
7087 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7088 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7089 msgstr ""
7090
7091 # type: textblock
7092 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7093 msgid ""
7094 "This function is deprecated.  In new code, use the C<vfs_label> call "
7095 "instead."
7096 msgstr ""
7097
7098 # type: textblock
7099 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5331
7100 msgid "(Added in 1.0.15)"
7101 msgstr ""
7102
7103 # type: =head2
7104 #: ../src/guestfs-actions.pod:1927
7105 msgid "guestfs_get_e2uuid"
7106 msgstr ""
7107
7108 # type: verbatim
7109 #: ../src/guestfs-actions.pod:1929
7110 #, no-wrap
7111 msgid ""
7112 " char *\n"
7113 " guestfs_get_e2uuid (guestfs_h *g,\n"
7114 "                     const char *device);\n"
7115 "\n"
7116 msgstr ""
7117
7118 # type: textblock
7119 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7120 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7121 msgstr ""
7122
7123 # type: textblock
7124 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7125 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7126 msgstr ""
7127
7128 # type: =head2
7129 #: ../src/guestfs-actions.pod:1948
7130 msgid "guestfs_get_memsize"
7131 msgstr ""
7132
7133 # type: verbatim
7134 #: ../src/guestfs-actions.pod:1950
7135 #, no-wrap
7136 msgid ""
7137 " int\n"
7138 " guestfs_get_memsize (guestfs_h *g);\n"
7139 "\n"
7140 msgstr ""
7141
7142 # type: textblock
7143 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7144 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7145 msgstr ""
7146
7147 # type: textblock
7148 #: ../src/guestfs-actions.pod:1956
7149 msgid ""
7150 "If C<guestfs_set_memsize> was not called on this handle, and if "
7151 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7152 "value for memsize."
7153 msgstr ""
7154
7155 # type: textblock
7156 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:5347 ../src/guestfs-actions.pod:5454 ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388 ../fish/guestfish-actions.pod:3554 ../fish/guestfish-actions.pod:3641
7157 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7158 msgstr ""
7159
7160 # type: textblock
7161 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:5352 ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:6196
7162 msgid "(Added in 1.0.55)"
7163 msgstr ""
7164
7165 # type: =head2
7166 #: ../src/guestfs-actions.pod:1967
7167 msgid "guestfs_get_network"
7168 msgstr ""
7169
7170 # type: verbatim
7171 #: ../src/guestfs-actions.pod:1969
7172 #, no-wrap
7173 msgid ""
7174 " int\n"
7175 " guestfs_get_network (guestfs_h *g);\n"
7176 "\n"
7177 msgstr ""
7178
7179 # type: textblock
7180 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7181 msgid "This returns the enable network flag."
7182 msgstr ""
7183
7184 # type: textblock
7185 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5371
7186 msgid "(Added in 1.5.4)"
7187 msgstr ""
7188
7189 # type: =head2
7190 #: ../src/guestfs-actions.pod:1978
7191 msgid "guestfs_get_path"
7192 msgstr ""
7193
7194 # type: verbatim
7195 #: ../src/guestfs-actions.pod:1980
7196 #, no-wrap
7197 msgid ""
7198 " const char *\n"
7199 " guestfs_get_path (guestfs_h *g);\n"
7200 "\n"
7201 msgstr ""
7202
7203 # type: textblock
7204 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7205 msgid "Return the current search path."
7206 msgstr ""
7207
7208 # type: textblock
7209 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7210 msgid ""
7211 "This is always non-NULL.  If it wasn't set already, then this will return "
7212 "the default path."
7213 msgstr ""
7214
7215 # type: textblock
7216 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7217 msgid ""
7218 "This function returns a string, or NULL on error.  The string is owned by "
7219 "the guest handle and must I<not> be freed."
7220 msgstr ""
7221
7222 # type: =head2
7223 #: ../src/guestfs-actions.pod:1993
7224 msgid "guestfs_get_pid"
7225 msgstr ""
7226
7227 # type: verbatim
7228 #: ../src/guestfs-actions.pod:1995
7229 #, no-wrap
7230 msgid ""
7231 " int\n"
7232 " guestfs_get_pid (guestfs_h *g);\n"
7233 "\n"
7234 msgstr ""
7235
7236 # type: textblock
7237 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7238 msgid ""
7239 "Return the process ID of the qemu subprocess.  If there is no qemu "
7240 "subprocess, then this will return an error."
7241 msgstr ""
7242
7243 # type: textblock
7244 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7245 msgid "This is an internal call used for debugging and testing."
7246 msgstr ""
7247
7248 # type: textblock
7249 #: ../src/guestfs-actions.pod:2005
7250 msgid "(Added in 1.0.56)"
7251 msgstr ""
7252
7253 # type: =head2
7254 #: ../src/guestfs-actions.pod:2007
7255 msgid "guestfs_get_qemu"
7256 msgstr ""
7257
7258 # type: verbatim
7259 #: ../src/guestfs-actions.pod:2009
7260 #, no-wrap
7261 msgid ""
7262 " const char *\n"
7263 " guestfs_get_qemu (guestfs_h *g);\n"
7264 "\n"
7265 msgstr ""
7266
7267 # type: textblock
7268 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7269 msgid "Return the current qemu binary."
7270 msgstr ""
7271
7272 # type: textblock
7273 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7274 msgid ""
7275 "This is always non-NULL.  If it wasn't set already, then this will return "
7276 "the default qemu binary name."
7277 msgstr ""
7278
7279 # type: textblock
7280 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5416
7281 msgid "(Added in 1.0.6)"
7282 msgstr ""
7283
7284 # type: =head2
7285 #: ../src/guestfs-actions.pod:2022
7286 msgid "guestfs_get_recovery_proc"
7287 msgstr ""
7288
7289 # type: verbatim
7290 #: ../src/guestfs-actions.pod:2024
7291 #, no-wrap
7292 msgid ""
7293 " int\n"
7294 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7295 "\n"
7296 msgstr ""
7297
7298 # type: textblock
7299 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7300 msgid "Return the recovery process enabled flag."
7301 msgstr ""
7302
7303 # type: textblock
7304 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3349 ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3781 ../src/guestfs-actions.pod:4720 ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5440 ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6119 ../src/guestfs-actions.pod:6301
7305 msgid "(Added in 1.0.77)"
7306 msgstr ""
7307
7308 # type: =head2
7309 #: ../src/guestfs-actions.pod:2033
7310 msgid "guestfs_get_selinux"
7311 msgstr ""
7312
7313 # type: verbatim
7314 #: ../src/guestfs-actions.pod:2035
7315 #, no-wrap
7316 msgid ""
7317 " int\n"
7318 " guestfs_get_selinux (guestfs_h *g);\n"
7319 "\n"
7320 msgstr ""
7321
7322 # type: textblock
7323 #: ../src/guestfs-actions.pod:2038
7324 msgid ""
7325 "This returns the current setting of the selinux flag which is passed to the "
7326 "appliance at boot time.  See C<guestfs_set_selinux>."
7327 msgstr ""
7328
7329 # type: textblock
7330 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109 ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:5513
7331 msgid "(Added in 1.0.67)"
7332 msgstr ""
7333
7334 # type: =head2
7335 #: ../src/guestfs-actions.pod:2048
7336 msgid "guestfs_get_state"
7337 msgstr ""
7338
7339 # type: verbatim
7340 #: ../src/guestfs-actions.pod:2050
7341 #, no-wrap
7342 msgid ""
7343 " int\n"
7344 " guestfs_get_state (guestfs_h *g);\n"
7345 "\n"
7346 msgstr ""
7347
7348 # type: textblock
7349 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
7350 msgid ""
7351 "This returns the current state as an opaque integer.  This is only useful "
7352 "for printing debug and internal error messages."
7353 msgstr ""
7354
7355 # type: textblock
7356 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2914 ../src/guestfs-actions.pod:2975 ../src/guestfs-actions.pod:3002 ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1987 ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2043 ../fish/guestfish-actions.pod:2059
7357 msgid "For more information on states, see L<guestfs(3)>."
7358 msgstr ""
7359
7360 # type: =head2
7361 #: ../src/guestfs-actions.pod:2062
7362 msgid "guestfs_get_trace"
7363 msgstr ""
7364
7365 # type: verbatim
7366 #: ../src/guestfs-actions.pod:2064
7367 #, no-wrap
7368 msgid ""
7369 " int\n"
7370 " guestfs_get_trace (guestfs_h *g);\n"
7371 "\n"
7372 msgstr ""
7373
7374 # type: textblock
7375 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
7376 msgid "Return the command trace flag."
7377 msgstr ""
7378
7379 # type: =head2
7380 #: ../src/guestfs-actions.pod:2073
7381 msgid "guestfs_get_umask"
7382 msgstr ""
7383
7384 # type: verbatim
7385 #: ../src/guestfs-actions.pod:2075
7386 #, no-wrap
7387 msgid ""
7388 " int\n"
7389 " guestfs_get_umask (guestfs_h *g);\n"
7390 "\n"
7391 msgstr ""
7392
7393 # type: textblock
7394 #: ../src/guestfs-actions.pod:2078
7395 msgid ""
7396 "Return the current umask.  By default the umask is C<022> unless it has been "
7397 "set by calling C<guestfs_umask>."
7398 msgstr ""
7399
7400 # type: =head2
7401 #: ../src/guestfs-actions.pod:2085
7402 msgid "guestfs_get_verbose"
7403 msgstr ""
7404
7405 # type: verbatim
7406 #: ../src/guestfs-actions.pod:2087
7407 #, no-wrap
7408 msgid ""
7409 " int\n"
7410 " guestfs_get_verbose (guestfs_h *g);\n"
7411 "\n"
7412 msgstr ""
7413
7414 # type: textblock
7415 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
7416 msgid "This returns the verbose messages flag."
7417 msgstr ""
7418
7419 # type: =head2
7420 #: ../src/guestfs-actions.pod:2096
7421 msgid "guestfs_getcon"
7422 msgstr ""
7423
7424 # type: verbatim
7425 #: ../src/guestfs-actions.pod:2098
7426 #, no-wrap
7427 msgid ""
7428 " char *\n"
7429 " guestfs_getcon (guestfs_h *g);\n"
7430 "\n"
7431 msgstr ""
7432
7433 # type: textblock
7434 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
7435 msgid "This gets the SELinux security context of the daemon."
7436 msgstr ""
7437
7438 # type: textblock
7439 #: ../src/guestfs-actions.pod:2103
7440 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7441 msgstr ""
7442
7443 # type: =head2
7444 #: ../src/guestfs-actions.pod:2111
7445 msgid "guestfs_getxattrs"
7446 msgstr ""
7447
7448 # type: verbatim
7449 #: ../src/guestfs-actions.pod:2113
7450 #, no-wrap
7451 msgid ""
7452 " struct guestfs_xattr_list *\n"
7453 " guestfs_getxattrs (guestfs_h *g,\n"
7454 "                    const char *path);\n"
7455 "\n"
7456 msgstr ""
7457
7458 # type: textblock
7459 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
7460 msgid "This call lists the extended attributes of the file or directory C<path>."
7461 msgstr ""
7462
7463 # type: textblock
7464 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
7465 msgid ""
7466 "At the system call level, this is a combination of the L<listxattr(2)> and "
7467 "L<getxattr(2)> calls."
7468 msgstr ""
7469
7470 # type: textblock
7471 #: ../src/guestfs-actions.pod:2123
7472 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7473 msgstr ""
7474
7475 # type: textblock
7476 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3094 ../src/guestfs-actions.pod:3745
7477 msgid ""
7478 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7479 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7480 msgstr ""
7481
7482 # type: textblock
7483 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3299 ../src/guestfs-actions.pod:5093 ../src/guestfs-actions.pod:5532 ../src/guestfs-actions.pod:6857
7484 msgid "(Added in 1.0.59)"
7485 msgstr ""
7486
7487 # type: =head2
7488 #: ../src/guestfs-actions.pod:2131
7489 msgid "guestfs_glob_expand"
7490 msgstr ""
7491
7492 # type: verbatim
7493 #: ../src/guestfs-actions.pod:2133
7494 #, no-wrap
7495 msgid ""
7496 " char **\n"
7497 " guestfs_glob_expand (guestfs_h *g,\n"
7498 "                      const char *pattern);\n"
7499 "\n"
7500 msgstr ""
7501
7502 # type: textblock
7503 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
7504 msgid ""
7505 "This command searches for all the pathnames matching C<pattern> according to "
7506 "the wildcard expansion rules used by the shell."
7507 msgstr ""
7508
7509 # type: textblock
7510 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
7511 msgid "If no paths match, then this returns an empty list (note: not an error)."
7512 msgstr ""
7513
7514 # type: textblock
7515 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
7516 msgid ""
7517 "It is just a wrapper around the C L<glob(3)> function with flags "
7518 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7519 msgstr ""
7520
7521 # type: textblock
7522 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5697 ../src/guestfs-actions.pod:5714
7523 msgid "(Added in 1.0.50)"
7524 msgstr ""
7525
7526 # type: =head2
7527 #: ../src/guestfs-actions.pod:2154
7528 msgid "guestfs_grep"
7529 msgstr ""
7530
7531 # type: verbatim
7532 #: ../src/guestfs-actions.pod:2156
7533 #, no-wrap
7534 msgid ""
7535 " char **\n"
7536 " guestfs_grep (guestfs_h *g,\n"
7537 "               const char *regex,\n"
7538 "               const char *path);\n"
7539 "\n"
7540 msgstr ""
7541
7542 # type: textblock
7543 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
7544 msgid "This calls the external C<grep> program and returns the matching lines."
7545 msgstr ""
7546
7547 # type: =head2
7548 #: ../src/guestfs-actions.pod:2173
7549 msgid "guestfs_grepi"
7550 msgstr ""
7551
7552 # type: verbatim
7553 #: ../src/guestfs-actions.pod:2175
7554 #, no-wrap
7555 msgid ""
7556 " char **\n"
7557 " guestfs_grepi (guestfs_h *g,\n"
7558 "                const char *regex,\n"
7559 "                const char *path);\n"
7560 "\n"
7561 msgstr ""
7562
7563 # type: textblock
7564 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
7565 msgid "This calls the external C<grep -i> program and returns the matching lines."
7566 msgstr ""
7567
7568 # type: =head2
7569 #: ../src/guestfs-actions.pod:2192
7570 msgid "guestfs_grub_install"
7571 msgstr ""
7572
7573 # type: verbatim
7574 #: ../src/guestfs-actions.pod:2194
7575 #, no-wrap
7576 msgid ""
7577 " int\n"
7578 " guestfs_grub_install (guestfs_h *g,\n"
7579 "                       const char *root,\n"
7580 "                       const char *device);\n"
7581 "\n"
7582 msgstr ""
7583
7584 # type: textblock
7585 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
7586 msgid ""
7587 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7588 "the root directory being C<root>."
7589 msgstr ""
7590
7591 # type: textblock
7592 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
7593 msgid ""
7594 "Note: If grub-install reports the error \"No suitable drive was found in the "
7595 "generated device map.\" it may be that you need to create a "
7596 "C</boot/grub/device.map> file first that contains the mapping between grub "
7597 "device names and Linux device names.  It is usually sufficient to create a "
7598 "file containing:"
7599 msgstr ""
7600
7601 # type: verbatim
7602 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
7603 #, no-wrap
7604 msgid ""
7605 " (hd0) /dev/vda\n"
7606 "\n"
7607 msgstr ""
7608
7609 # type: textblock
7610 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
7611 msgid "replacing C</dev/vda> with the name of the installation device."
7612 msgstr ""
7613
7614 # type: textblock
7615 #: ../src/guestfs-actions.pod:2215
7616 msgid "(Added in 1.0.17)"
7617 msgstr ""
7618
7619 # type: =head2
7620 #: ../src/guestfs-actions.pod:2217
7621 msgid "guestfs_head"
7622 msgstr ""
7623
7624 # type: verbatim
7625 #: ../src/guestfs-actions.pod:2219
7626 #, no-wrap
7627 msgid ""
7628 " char **\n"
7629 " guestfs_head (guestfs_h *g,\n"
7630 "               const char *path);\n"
7631 "\n"
7632 msgstr ""
7633
7634 # type: textblock
7635 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
7636 msgid ""
7637 "This command returns up to the first 10 lines of a file as a list of "
7638 "strings."
7639 msgstr ""
7640
7641 # type: =head2
7642 #: ../src/guestfs-actions.pod:2235
7643 msgid "guestfs_head_n"
7644 msgstr ""
7645
7646 # type: verbatim
7647 #: ../src/guestfs-actions.pod:2237
7648 #, no-wrap
7649 msgid ""
7650 " char **\n"
7651 " guestfs_head_n (guestfs_h *g,\n"
7652 "                 int nrlines,\n"
7653 "                 const char *path);\n"
7654 "\n"
7655 msgstr ""
7656
7657 # type: textblock
7658 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
7659 msgid ""
7660 "If the parameter C<nrlines> is a positive number, this returns the first "
7661 "C<nrlines> lines of the file C<path>."
7662 msgstr ""
7663
7664 # type: textblock
7665 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
7666 msgid ""
7667 "If the parameter C<nrlines> is a negative number, this returns lines from "
7668 "the file C<path>, excluding the last C<nrlines> lines."
7669 msgstr ""
7670
7671 # type: textblock
7672 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:5994 ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:3987
7673 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7674 msgstr ""
7675
7676 # type: =head2
7677 #: ../src/guestfs-actions.pod:2259
7678 msgid "guestfs_hexdump"
7679 msgstr ""
7680
7681 # type: verbatim
7682 #: ../src/guestfs-actions.pod:2261
7683 #, no-wrap
7684 msgid ""
7685 " char *\n"
7686 " guestfs_hexdump (guestfs_h *g,\n"
7687 "                  const char *path);\n"
7688 "\n"
7689 msgstr ""
7690
7691 # type: textblock
7692 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
7693 msgid ""
7694 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7695 "human-readable, canonical hex dump of the file."
7696 msgstr ""
7697
7698 # type: textblock
7699 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5778 ../src/guestfs-actions.pod:5833
7700 msgid "(Added in 1.0.22)"
7701 msgstr ""
7702
7703 # type: =head2
7704 #: ../src/guestfs-actions.pod:2276
7705 msgid "guestfs_initrd_cat"
7706 msgstr ""
7707
7708 # type: verbatim
7709 #: ../src/guestfs-actions.pod:2278
7710 #, no-wrap
7711 msgid ""
7712 " char *\n"
7713 " guestfs_initrd_cat (guestfs_h *g,\n"
7714 "                     const char *initrdpath,\n"
7715 "                     const char *filename,\n"
7716 "                     size_t *size_r);\n"
7717 "\n"
7718 msgstr ""
7719
7720 # type: textblock
7721 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
7722 msgid ""
7723 "This command unpacks the file C<filename> from the initrd file called "
7724 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7725 "character."
7726 msgstr ""
7727
7728 # type: textblock
7729 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
7730 msgid ""
7731 "For example, in guestfish you could use the following command to examine the "
7732 "boot script (usually called C</init>)  contained in a Linux initrd or "
7733 "initramfs image:"
7734 msgstr ""
7735
7736 # type: verbatim
7737 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
7738 #, no-wrap
7739 msgid ""
7740 " initrd-cat /boot/initrd-<version>.img init\n"
7741 "\n"
7742 msgstr ""
7743
7744 # type: textblock
7745 #: ../src/guestfs-actions.pod:2294
7746 msgid "See also C<guestfs_initrd_list>."
7747 msgstr ""
7748
7749 # type: textblock
7750 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4713 ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4920
7751 msgid ""
7752 "This function returns a buffer, or NULL on error.  The size of the returned "
7753 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7754 "after use>."
7755 msgstr ""
7756
7757 # type: =head2
7758 #: ../src/guestfs-actions.pod:2305
7759 msgid "guestfs_initrd_list"
7760 msgstr ""
7761
7762 # type: verbatim
7763 #: ../src/guestfs-actions.pod:2307
7764 #, no-wrap
7765 msgid ""
7766 " char **\n"
7767 " guestfs_initrd_list (guestfs_h *g,\n"
7768 "                      const char *path);\n"
7769 "\n"
7770 msgstr ""
7771
7772 # type: textblock
7773 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
7774 msgid "This command lists out files contained in an initrd."
7775 msgstr ""
7776
7777 # type: textblock
7778 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
7779 msgid ""
7780 "The files are listed without any initial C</> character.  The files are "
7781 "listed in the order they appear (not necessarily alphabetical).  Directory "
7782 "names are listed as separate items."
7783 msgstr ""
7784
7785 # type: textblock
7786 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
7787 msgid ""
7788 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7789 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7790 "files)."
7791 msgstr ""
7792
7793 # type: =head2
7794 #: ../src/guestfs-actions.pod:2327
7795 msgid "guestfs_inotify_add_watch"
7796 msgstr ""
7797
7798 # type: verbatim
7799 #: ../src/guestfs-actions.pod:2329
7800 #, no-wrap
7801 msgid ""
7802 " int64_t\n"
7803 " guestfs_inotify_add_watch (guestfs_h *g,\n"
7804 "                            const char *path,\n"
7805 "                            int mask);\n"
7806 "\n"
7807 msgstr ""
7808
7809 # type: textblock
7810 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
7811 msgid "Watch C<path> for the events listed in C<mask>."
7812 msgstr ""
7813
7814 # type: textblock
7815 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
7816 msgid ""
7817 "Note that if C<path> is a directory then events within that directory are "
7818 "watched, but this does I<not> happen recursively (in subdirectories)."
7819 msgstr ""
7820
7821 # type: textblock
7822 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
7823 msgid ""
7824 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7825 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7826 msgstr ""
7827
7828 # type: =head2
7829 #: ../src/guestfs-actions.pod:2348
7830 msgid "guestfs_inotify_close"
7831 msgstr ""
7832
7833 # type: verbatim
7834 #: ../src/guestfs-actions.pod:2350
7835 #, no-wrap
7836 msgid ""
7837 " int\n"
7838 " guestfs_inotify_close (guestfs_h *g);\n"
7839 "\n"
7840 msgstr ""
7841
7842 # type: textblock
7843 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
7844 msgid ""
7845 "This closes the inotify handle which was previously opened by inotify_init.  "
7846 "It removes all watches, throws away any pending events, and deallocates all "
7847 "resources."
7848 msgstr ""
7849
7850 # type: =head2
7851 #: ../src/guestfs-actions.pod:2361
7852 msgid "guestfs_inotify_files"
7853 msgstr ""
7854
7855 # type: verbatim
7856 #: ../src/guestfs-actions.pod:2363
7857 #, no-wrap
7858 msgid ""
7859 " char **\n"
7860 " guestfs_inotify_files (guestfs_h *g);\n"
7861 "\n"
7862 msgstr ""
7863
7864 # type: textblock
7865 #: ../src/guestfs-actions.pod:2366
7866 msgid ""
7867 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7868 "returns a list of pathnames of objects that were touched.  The returned "
7869 "pathnames are sorted and deduplicated."
7870 msgstr ""
7871
7872 # type: =head2
7873 #: ../src/guestfs-actions.pod:2376
7874 msgid "guestfs_inotify_init"
7875 msgstr ""
7876
7877 # type: verbatim
7878 #: ../src/guestfs-actions.pod:2378
7879 #, no-wrap
7880 msgid ""
7881 " int\n"
7882 " guestfs_inotify_init (guestfs_h *g,\n"
7883 "                       int maxevents);\n"
7884 "\n"
7885 msgstr ""
7886
7887 # type: textblock
7888 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
7889 msgid ""
7890 "This command creates a new inotify handle.  The inotify subsystem can be "
7891 "used to notify events which happen to objects in the guest filesystem."
7892 msgstr ""
7893
7894 # type: textblock
7895 #: ../src/guestfs-actions.pod:2386
7896 msgid ""
7897 "C<maxevents> is the maximum number of events which will be queued up between "
7898 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7899 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7900 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7901 "throws away events, but records the fact that it threw them away by setting "
7902 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7903 "C<guestfs_inotify_read>)."
7904 msgstr ""
7905
7906 # type: textblock
7907 #: ../src/guestfs-actions.pod:2396
7908 msgid ""
7909 "Before any events are generated, you have to add some watches to the "
7910 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7911 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7912 msgstr ""
7913
7914 # type: textblock
7915 #: ../src/guestfs-actions.pod:2402
7916 msgid ""
7917 "Queued up events should be read periodically by calling "
7918 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7919 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7920 "often enough then you risk the internal queue overflowing."
7921 msgstr ""
7922
7923 # type: textblock
7924 #: ../src/guestfs-actions.pod:2409
7925 msgid ""
7926 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7927 "This also removes any watches automatically."
7928 msgstr ""
7929
7930 # type: textblock
7931 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
7932 msgid ""
7933 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7934 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7935 "that there is one global inotify handle per libguestfs instance."
7936 msgstr ""
7937
7938 # type: =head2
7939 #: ../src/guestfs-actions.pod:2422
7940 msgid "guestfs_inotify_read"
7941 msgstr ""
7942
7943 # type: verbatim
7944 #: ../src/guestfs-actions.pod:2424
7945 #, no-wrap
7946 msgid ""
7947 " struct guestfs_inotify_event_list *\n"
7948 " guestfs_inotify_read (guestfs_h *g);\n"
7949 "\n"
7950 msgstr ""
7951
7952 # type: textblock
7953 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
7954 msgid ""
7955 "Return the complete queue of events that have happened since the previous "
7956 "read call."
7957 msgstr ""
7958
7959 # type: textblock
7960 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
7961 msgid "If no events have happened, this returns an empty list."
7962 msgstr ""
7963
7964 # type: textblock
7965 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
7966 msgid ""
7967 "I<Note>: In order to make sure that all events have been read, you must call "
7968 "this function repeatedly until it returns an empty list.  The reason is that "
7969 "the call will read events up to the maximum appliance-to-host message size "
7970 "and leave remaining events in the queue."
7971 msgstr ""
7972
7973 # type: textblock
7974 #: ../src/guestfs-actions.pod:2438
7975 msgid ""
7976 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
7977 "there was an error.  I<The caller must call "
7978 "C<guestfs_free_inotify_event_list> after use>."
7979 msgstr ""
7980
7981 # type: =head2
7982 #: ../src/guestfs-actions.pod:2444
7983 msgid "guestfs_inotify_rm_watch"
7984 msgstr ""
7985
7986 # type: verbatim
7987 #: ../src/guestfs-actions.pod:2446
7988 #, no-wrap
7989 msgid ""
7990 " int\n"
7991 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
7992 "                           int wd);\n"
7993 "\n"
7994 msgstr ""
7995
7996 # type: textblock
7997 #: ../src/guestfs-actions.pod:2450
7998 msgid ""
7999 "Remove a previously defined inotify watch.  See "
8000 "C<guestfs_inotify_add_watch>."
8001 msgstr ""
8002
8003 # type: =head2
8004 #: ../src/guestfs-actions.pod:2457
8005 msgid "guestfs_inspect_get_arch"
8006 msgstr ""
8007
8008 # type: verbatim
8009 #: ../src/guestfs-actions.pod:2459
8010 #, no-wrap
8011 msgid ""
8012 " char *\n"
8013 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8014 "                           const char *root);\n"
8015 "\n"
8016 msgstr ""
8017
8018 # type: textblock
8019 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486 ../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:2693 ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:2764 ../src/guestfs-actions.pod:2802
8020 msgid ""
8021 "This function should only be called with a root device string as returned by "
8022 "C<guestfs_inspect_os>."
8023 msgstr ""
8024
8025 # type: textblock
8026 #: ../src/guestfs-actions.pod:2466
8027 msgid ""
8028 "This returns the architecture of the inspected operating system.  The "
8029 "possible return values are listed under C<guestfs_file_architecture>."
8030 msgstr ""
8031
8032 # type: textblock
8033 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8034 msgid ""
8035 "If the architecture could not be determined, then the string C<unknown> is "
8036 "returned."
8037 msgstr ""
8038
8039 # type: textblock
8040 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2682 ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2733 ../src/guestfs-actions.pod:2752 ../src/guestfs-actions.pod:2789 ../src/guestfs-actions.pod:2812 ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1772 ../fish/guestfish-actions.pod:1832 ../fish/guestfish-actions.pod:1856 ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1933 ../fish/guestfish-actions.pod:1967
8041 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8042 msgstr ""
8043
8044 # type: =head2
8045 #: ../src/guestfs-actions.pod:2480
8046 msgid "guestfs_inspect_get_distro"
8047 msgstr ""
8048
8049 # type: verbatim
8050 #: ../src/guestfs-actions.pod:2482
8051 #, no-wrap
8052 msgid ""
8053 " char *\n"
8054 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8055 "                             const char *root);\n"
8056 "\n"
8057 msgstr ""
8058
8059 # type: textblock
8060 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8061 msgid "This returns the distro (distribution) of the inspected operating system."
8062 msgstr ""
8063
8064 # type: textblock
8065 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8066 msgid "Currently defined distros are:"
8067 msgstr ""
8068
8069 # type: =item
8070 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8071 msgid "\"archlinux\""
8072 msgstr ""
8073
8074 # type: textblock
8075 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8076 msgid "Arch Linux."
8077 msgstr ""
8078
8079 # type: =item
8080 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8081 msgid "\"debian\""
8082 msgstr ""
8083
8084 # type: textblock
8085 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8086 msgid "Debian or a Debian-derived distro such as Ubuntu."
8087 msgstr ""
8088
8089 # type: =item
8090 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8091 msgid "\"fedora\""
8092 msgstr ""
8093
8094 # type: textblock
8095 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8096 msgid "Fedora."
8097 msgstr ""
8098
8099 # type: =item
8100 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8101 msgid "\"gentoo\""
8102 msgstr ""
8103
8104 # type: textblock
8105 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8106 msgid "Gentoo."
8107 msgstr ""
8108
8109 # type: =item
8110 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8111 msgid "\"meego\""
8112 msgstr ""
8113
8114 # type: textblock
8115 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8116 msgid "MeeGo."
8117 msgstr ""
8118
8119 # type: =item
8120 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8121 msgid "\"pardus\""
8122 msgstr ""
8123
8124 # type: textblock
8125 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8126 msgid "Pardus."
8127 msgstr ""
8128
8129 # type: =item
8130 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8131 msgid "\"redhat-based\""
8132 msgstr ""
8133
8134 # type: textblock
8135 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8136 msgid "Some Red Hat-derived distro."
8137 msgstr ""
8138
8139 # type: =item
8140 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8141 msgid "\"rhel\""
8142 msgstr ""
8143
8144 # type: textblock
8145 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8146 msgid "Red Hat Enterprise Linux and some derivatives."
8147 msgstr ""
8148
8149 # type: =item
8150 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2776 ../fish/guestfish-actions.pod:1715 ../fish/guestfish-actions.pod:1904
8151 msgid "\"windows\""
8152 msgstr ""
8153
8154 # type: textblock
8155 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8156 msgid ""
8157 "Windows does not have distributions.  This string is returned if the OS type "
8158 "is Windows."
8159 msgstr ""
8160
8161 # type: =item
8162 #: ../src/guestfs-actions.pod:2533 ../fish/guestfish-actions.pod:1720
8163 msgid "\"ubuntu\""
8164 msgstr ""
8165
8166 # type: textblock
8167 #: ../src/guestfs-actions.pod:2535 ../fish/guestfish-actions.pod:1722
8168 msgid "Ubuntu."
8169 msgstr ""
8170
8171 # type: =item
8172 #: ../src/guestfs-actions.pod:2537 ../src/guestfs-actions.pod:2780 ../fish/guestfish-actions.pod:1724 ../fish/guestfish-actions.pod:1908
8173 msgid "\"unknown\""
8174 msgstr ""
8175
8176 # type: textblock
8177 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1726
8178 msgid "The distro could not be determined."
8179 msgstr ""
8180
8181 # type: textblock
8182 #: ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2786 ../fish/guestfish-actions.pod:1730 ../fish/guestfish-actions.pod:1914
8183 msgid ""
8184 "Future versions of libguestfs may return other strings here.  The caller "
8185 "should be prepared to handle any string."
8186 msgstr ""
8187
8188 # type: =head2
8189 #: ../src/guestfs-actions.pod:2553
8190 msgid "guestfs_inspect_get_filesystems"
8191 msgstr ""
8192
8193 # type: verbatim
8194 #: ../src/guestfs-actions.pod:2555
8195 #, no-wrap
8196 msgid ""
8197 " char **\n"
8198 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8199 "                                  const char *root);\n"
8200 "\n"
8201 msgstr ""
8202
8203 # type: textblock
8204 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1742
8205 msgid ""
8206 "This returns a list of all the filesystems that we think are associated with "
8207 "this operating system.  This includes the root filesystem, other ordinary "
8208 "filesystems, and non-mounted devices like swap partitions."
8209 msgstr ""
8210
8211 # type: textblock
8212 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1747
8213 msgid ""
8214 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8215 "to be shared between operating systems."
8216 msgstr ""
8217
8218 # type: textblock
8219 #: ../src/guestfs-actions.pod:2570
8220 msgid ""
8221 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8222 "C<guestfs_inspect_get_mountpoints>."
8223 msgstr ""
8224
8225 # type: =head2
8226 #: ../src/guestfs-actions.pod:2579
8227 msgid "guestfs_inspect_get_major_version"
8228 msgstr ""
8229
8230 # type: verbatim
8231 #: ../src/guestfs-actions.pod:2581
8232 #, no-wrap
8233 msgid ""
8234 " int\n"
8235 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8236 "                                    const char *root);\n"
8237 "\n"
8238 msgstr ""
8239
8240 # type: textblock
8241 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1760
8242 msgid "This returns the major version number of the inspected operating system."
8243 msgstr ""
8244
8245 # type: textblock
8246 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1763
8247 msgid ""
8248 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8249 "popular public names used by the operating system.  Notably the operating "
8250 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8251 "1).  You can find out the real versions corresponding to releases of Windows "
8252 "by consulting Wikipedia or MSDN."
8253 msgstr ""
8254
8255 # type: textblock
8256 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2618 ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:1784
8257 msgid "If the version could not be determined, then C<0> is returned."
8258 msgstr ""
8259
8260 # type: =head2
8261 #: ../src/guestfs-actions.pod:2606
8262 msgid "guestfs_inspect_get_minor_version"
8263 msgstr ""
8264
8265 # type: verbatim
8266 #: ../src/guestfs-actions.pod:2608
8267 #, no-wrap
8268 msgid ""
8269 " int\n"
8270 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8271 "                                    const char *root);\n"
8272 "\n"
8273 msgstr ""
8274
8275 # type: textblock
8276 #: ../src/guestfs-actions.pod:2615 ../fish/guestfish-actions.pod:1781
8277 msgid "This returns the minor version number of the inspected operating system."
8278 msgstr ""
8279
8280 # type: textblock
8281 #: ../src/guestfs-actions.pod:2620
8282 msgid ""
8283 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8284 "C<guestfs_inspect_get_major_version>."
8285 msgstr ""
8286
8287 # type: =head2
8288 #: ../src/guestfs-actions.pod:2627
8289 msgid "guestfs_inspect_get_mountpoints"
8290 msgstr ""
8291
8292 # type: verbatim
8293 #: ../src/guestfs-actions.pod:2629
8294 #, no-wrap
8295 msgid ""
8296 " char **\n"
8297 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8298 "                                  const char *root);\n"
8299 "\n"
8300 msgstr ""
8301
8302 # type: textblock
8303 #: ../src/guestfs-actions.pod:2636 ../fish/guestfish-actions.pod:1796
8304 msgid ""
8305 "This returns a hash of where we think the filesystems associated with this "
8306 "operating system should be mounted.  Callers should note that this is at "
8307 "best an educated guess made by reading configuration files such as "
8308 "C</etc/fstab>."
8309 msgstr ""
8310
8311 # type: textblock
8312 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1801
8313 msgid ""
8314 "Each element in the returned hashtable has a key which is the path of the "
8315 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8316 "mounted there (eg. C</dev/sda1>)."
8317 msgstr ""
8318
8319 # type: textblock
8320 #: ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1806
8321 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8322 msgstr ""
8323
8324 # type: textblock
8325 #: ../src/guestfs-actions.pod:2649
8326 msgid ""
8327 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8328 "C<guestfs_inspect_get_filesystems>."
8329 msgstr ""
8330
8331 # type: textblock
8332 #: ../src/guestfs-actions.pod:2652 ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:6135
8333 msgid ""
8334 "This function returns a NULL-terminated array of strings, or NULL if there "
8335 "was an error.  The array of strings will always have length C<2n+1>, where "
8336 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8337 "caller must free the strings and the array after use>."
8338 msgstr ""
8339
8340 # type: =head2
8341 #: ../src/guestfs-actions.pod:2660
8342 msgid "guestfs_inspect_get_package_format"
8343 msgstr ""
8344
8345 # type: verbatim
8346 #: ../src/guestfs-actions.pod:2662
8347 #, no-wrap
8348 msgid ""
8349 " char *\n"
8350 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
8351 "                                     const char *root);\n"
8352 "\n"
8353 msgstr ""
8354
8355 # type: textblock
8356 #: ../src/guestfs-actions.pod:2669
8357 msgid ""
8358 "This function and C<guestfs_inspect_get_package_management> return the "
8359 "package format and package management tool used by the inspected operating "
8360 "system.  For example for Fedora these functions would return C<rpm> (package "
8361 "format) and C<yum> (package management)."
8362 msgstr ""
8363
8364 # type: textblock
8365 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1825
8366 msgid ""
8367 "This returns the string C<unknown> if we could not determine the package "
8368 "format I<or> if the operating system does not have a real packaging system "
8369 "(eg. Windows)."
8370 msgstr ""
8371
8372 # type: textblock
8373 #: ../src/guestfs-actions.pod:2679 ../fish/guestfish-actions.pod:1829
8374 msgid ""
8375 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8376 "Future versions of libguestfs may return other strings."
8377 msgstr ""
8378
8379 # type: =head2
8380 #: ../src/guestfs-actions.pod:2687
8381 msgid "guestfs_inspect_get_package_management"
8382 msgstr ""
8383
8384 # type: verbatim
8385 #: ../src/guestfs-actions.pod:2689
8386 #, no-wrap
8387 msgid ""
8388 " char *\n"
8389 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
8390 "                                         const char *root);\n"
8391 "\n"
8392 msgstr ""
8393
8394 # type: textblock
8395 #: ../src/guestfs-actions.pod:2696
8396 msgid ""
8397 "C<guestfs_inspect_get_package_format> and this function return the package "
8398 "format and package management tool used by the inspected operating system.  "
8399 "For example for Fedora these functions would return C<rpm> (package format) "
8400 "and C<yum> (package management)."
8401 msgstr ""
8402
8403 # type: textblock
8404 #: ../src/guestfs-actions.pod:2702 ../fish/guestfish-actions.pod:1847
8405 msgid ""
8406 "This returns the string C<unknown> if we could not determine the package "
8407 "management tool I<or> if the operating system does not have a real packaging "
8408 "system (eg. Windows)."
8409 msgstr ""
8410
8411 # type: textblock
8412 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1851
8413 msgid ""
8414 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8415 "derivatives), C<portage>, C<pisi>, C<pacman>.  Future versions of libguestfs "
8416 "may return other strings."
8417 msgstr ""
8418
8419 # type: =head2
8420 #: ../src/guestfs-actions.pod:2716
8421 msgid "guestfs_inspect_get_product_name"
8422 msgstr ""
8423
8424 # type: verbatim
8425 #: ../src/guestfs-actions.pod:2718
8426 #, no-wrap
8427 msgid ""
8428 " char *\n"
8429 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8430 "                                   const char *root);\n"
8431 "\n"
8432 msgstr ""
8433
8434 # type: textblock
8435 #: ../src/guestfs-actions.pod:2725 ../fish/guestfish-actions.pod:1865
8436 msgid ""
8437 "This returns the product name of the inspected operating system.  The "
8438 "product name is generally some freeform string which can be displayed to the "
8439 "user, but should not be parsed by programs."
8440 msgstr ""
8441
8442 # type: textblock
8443 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
8444 msgid ""
8445 "If the product name could not be determined, then the string C<unknown> is "
8446 "returned."
8447 msgstr ""
8448
8449 # type: =head2
8450 #: ../src/guestfs-actions.pod:2740
8451 msgid "guestfs_inspect_get_roots"
8452 msgstr ""
8453
8454 # type: verbatim
8455 #: ../src/guestfs-actions.pod:2742
8456 #, no-wrap
8457 msgid ""
8458 " char **\n"
8459 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8460 "\n"
8461 msgstr ""
8462
8463 # type: textblock
8464 #: ../src/guestfs-actions.pod:2745
8465 msgid ""
8466 "This function is a convenient way to get the list of root devices, as "
8467 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8468 "the whole inspection process."
8469 msgstr ""
8470
8471 # type: textblock
8472 #: ../src/guestfs-actions.pod:2749
8473 msgid ""
8474 "This returns an empty list if either no root devices were found or the "
8475 "caller has not called C<guestfs_inspect_os>."
8476 msgstr ""
8477
8478 # type: =head2
8479 #: ../src/guestfs-actions.pod:2758
8480 msgid "guestfs_inspect_get_type"
8481 msgstr ""
8482
8483 # type: verbatim
8484 #: ../src/guestfs-actions.pod:2760
8485 #, no-wrap
8486 msgid ""
8487 " char *\n"
8488 " guestfs_inspect_get_type (guestfs_h *g,\n"
8489 "                           const char *root);\n"
8490 "\n"
8491 msgstr ""
8492
8493 # type: textblock
8494 #: ../src/guestfs-actions.pod:2767 ../fish/guestfish-actions.pod:1895
8495 msgid ""
8496 "This returns the type of the inspected operating system.  Currently defined "
8497 "types are:"
8498 msgstr ""
8499
8500 # type: =item
8501 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1900
8502 msgid "\"linux\""
8503 msgstr ""
8504
8505 # type: textblock
8506 #: ../src/guestfs-actions.pod:2774 ../fish/guestfish-actions.pod:1902
8507 msgid "Any Linux-based operating system."
8508 msgstr ""
8509
8510 # type: textblock
8511 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:1906
8512 msgid "Any Microsoft Windows operating system."
8513 msgstr ""
8514
8515 # type: textblock
8516 #: ../src/guestfs-actions.pod:2782 ../fish/guestfish-actions.pod:1910
8517 msgid "The operating system type could not be determined."
8518 msgstr ""
8519
8520 # type: =head2
8521 #: ../src/guestfs-actions.pod:2796
8522 msgid "guestfs_inspect_get_windows_systemroot"
8523 msgstr ""
8524
8525 # type: verbatim
8526 #: ../src/guestfs-actions.pod:2798
8527 #, no-wrap
8528 msgid ""
8529 " char *\n"
8530 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8531 "                                         const char *root);\n"
8532 "\n"
8533 msgstr ""
8534
8535 # type: textblock
8536 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1926
8537 msgid ""
8538 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8539 "is a directory path such as C</WINDOWS>."
8540 msgstr ""
8541
8542 # type: textblock
8543 #: ../src/guestfs-actions.pod:2808 ../fish/guestfish-actions.pod:1929
8544 msgid ""
8545 "This call assumes that the guest is Windows and that the systemroot could be "
8546 "determined by inspection.  If this is not the case then an error is "
8547 "returned."
8548 msgstr ""
8549
8550 # type: textblock
8551 #: ../src/guestfs-actions.pod:2817
8552 msgid "(Added in 1.5.25)"
8553 msgstr ""
8554
8555 # type: =head2
8556 #: ../src/guestfs-actions.pod:2819
8557 msgid "guestfs_inspect_os"
8558 msgstr ""
8559
8560 # type: verbatim
8561 #: ../src/guestfs-actions.pod:2821
8562 #, no-wrap
8563 msgid ""
8564 " char **\n"
8565 " guestfs_inspect_os (guestfs_h *g);\n"
8566 "\n"
8567 msgstr ""
8568
8569 # type: textblock
8570 #: ../src/guestfs-actions.pod:2824 ../fish/guestfish-actions.pod:1939
8571 msgid ""
8572 "This function uses other libguestfs functions and certain heuristics to "
8573 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8574 "for operating systems."
8575 msgstr ""
8576
8577 # type: textblock
8578 #: ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1943
8579 msgid "The list returned is empty if no operating systems were found."
8580 msgstr ""
8581
8582 # type: textblock
8583 #: ../src/guestfs-actions.pod:2830 ../fish/guestfish-actions.pod:1945
8584 msgid ""
8585 "If one operating system was found, then this returns a list with a single "
8586 "element, which is the name of the root filesystem of this operating system.  "
8587 "It is also possible for this function to return a list containing more than "
8588 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8589 "element being the root filesystem of one of the operating systems."
8590 msgstr ""
8591
8592 # type: textblock
8593 #: ../src/guestfs-actions.pod:2837
8594 msgid ""
8595 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8596 "functions in order to query further information about each operating system, "
8597 "such as the name and version."
8598 msgstr ""
8599
8600 # type: textblock
8601 #: ../src/guestfs-actions.pod:2842
8602 msgid ""
8603 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8604 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8605 "the contents.  This should be called with no disks currently mounted.  The "
8606 "function may also use Augeas, so any existing Augeas handle will be closed."
8607 msgstr ""
8608
8609 # type: textblock
8610 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1963
8611 msgid ""
8612 "This function cannot decrypt encrypted disks.  The caller must do that first "
8613 "(supplying the necessary keys) if the disk is encrypted."
8614 msgstr ""
8615
8616 # type: textblock
8617 #: ../src/guestfs-actions.pod:2854 ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3171
8618 msgid "See also C<guestfs_list_filesystems>."
8619 msgstr ""
8620
8621 # type: =head2
8622 #: ../src/guestfs-actions.pod:2862
8623 msgid "guestfs_is_blockdev"
8624 msgstr ""
8625
8626 # type: verbatim
8627 #: ../src/guestfs-actions.pod:2864
8628 #, no-wrap
8629 msgid ""
8630 " int\n"
8631 " guestfs_is_blockdev (guestfs_h *g,\n"
8632 "                      const char *path);\n"
8633 "\n"
8634 msgstr ""
8635
8636 # type: textblock
8637 #: ../src/guestfs-actions.pod:2868 ../fish/guestfish-actions.pod:1975
8638 msgid ""
8639 "This returns C<true> if and only if there is a block device with the given "
8640 "C<path> name."
8641 msgstr ""
8642
8643 # type: textblock
8644 #: ../src/guestfs-actions.pod:2871 ../src/guestfs-actions.pod:2900 ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2961 ../src/guestfs-actions.pod:3017 ../src/guestfs-actions.pod:3032
8645 msgid "See also C<guestfs_stat>."
8646 msgstr ""
8647
8648 # type: textblock
8649 #: ../src/guestfs-actions.pod:2875 ../src/guestfs-actions.pod:2904 ../src/guestfs-actions.pod:2949 ../src/guestfs-actions.pod:3021 ../src/guestfs-actions.pod:3036
8650 msgid "(Added in 1.5.10)"
8651 msgstr ""
8652
8653 # type: =head2
8654 #: ../src/guestfs-actions.pod:2877
8655 msgid "guestfs_is_busy"
8656 msgstr ""
8657
8658 # type: verbatim
8659 #: ../src/guestfs-actions.pod:2879
8660 #, no-wrap
8661 msgid ""
8662 " int\n"
8663 " guestfs_is_busy (guestfs_h *g);\n"
8664 "\n"
8665 msgstr ""
8666
8667 # type: textblock
8668 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1984
8669 msgid ""
8670 "This returns true iff this handle is busy processing a command (in the "
8671 "C<BUSY> state)."
8672 msgstr ""
8673
8674 # type: =head2
8675 #: ../src/guestfs-actions.pod:2891
8676 msgid "guestfs_is_chardev"
8677 msgstr ""
8678
8679 # type: verbatim
8680 #: ../src/guestfs-actions.pod:2893
8681 #, no-wrap
8682 msgid ""
8683 " int\n"
8684 " guestfs_is_chardev (guestfs_h *g,\n"
8685 "                     const char *path);\n"
8686 "\n"
8687 msgstr ""
8688
8689 # type: textblock
8690 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:1993
8691 msgid ""
8692 "This returns C<true> if and only if there is a character device with the "
8693 "given C<path> name."
8694 msgstr ""
8695
8696 # type: =head2
8697 #: ../src/guestfs-actions.pod:2906
8698 msgid "guestfs_is_config"
8699 msgstr ""
8700
8701 # type: verbatim
8702 #: ../src/guestfs-actions.pod:2908
8703 #, no-wrap
8704 msgid ""
8705 " int\n"
8706 " guestfs_is_config (guestfs_h *g);\n"
8707 "\n"
8708 msgstr ""
8709
8710 # type: textblock
8711 #: ../src/guestfs-actions.pod:2911 ../fish/guestfish-actions.pod:2002
8712 msgid ""
8713 "This returns true iff this handle is being configured (in the C<CONFIG> "
8714 "state)."
8715 msgstr ""
8716
8717 # type: =head2
8718 #: ../src/guestfs-actions.pod:2920
8719 msgid "guestfs_is_dir"
8720 msgstr ""
8721
8722 # type: verbatim
8723 #: ../src/guestfs-actions.pod:2922
8724 #, no-wrap
8725 msgid ""
8726 " int\n"
8727 " guestfs_is_dir (guestfs_h *g,\n"
8728 "                 const char *path);\n"
8729 "\n"
8730 msgstr ""
8731
8732 # type: textblock
8733 #: ../src/guestfs-actions.pod:2926 ../fish/guestfish-actions.pod:2011
8734 msgid ""
8735 "This returns C<true> if and only if there is a directory with the given "
8736 "C<path> name.  Note that it returns false for other objects like files."
8737 msgstr ""
8738
8739 # type: =head2
8740 #: ../src/guestfs-actions.pod:2936
8741 msgid "guestfs_is_fifo"
8742 msgstr ""
8743
8744 # type: verbatim
8745 #: ../src/guestfs-actions.pod:2938
8746 #, no-wrap
8747 msgid ""
8748 " int\n"
8749 " guestfs_is_fifo (guestfs_h *g,\n"
8750 "                  const char *path);\n"
8751 "\n"
8752 msgstr ""
8753
8754 # type: textblock
8755 #: ../src/guestfs-actions.pod:2942 ../fish/guestfish-actions.pod:2021
8756 msgid ""
8757 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8758 "given C<path> name."
8759 msgstr ""
8760
8761 # type: =head2
8762 #: ../src/guestfs-actions.pod:2951
8763 msgid "guestfs_is_file"
8764 msgstr ""
8765
8766 # type: verbatim
8767 #: ../src/guestfs-actions.pod:2953
8768 #, no-wrap
8769 msgid ""
8770 " int\n"
8771 " guestfs_is_file (guestfs_h *g,\n"
8772 "                  const char *path);\n"
8773 "\n"
8774 msgstr ""
8775
8776 # type: textblock
8777 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2030
8778 msgid ""
8779 "This returns C<true> if and only if there is a regular file with the given "
8780 "C<path> name.  Note that it returns false for other objects like "
8781 "directories."
8782 msgstr ""
8783
8784 # type: =head2
8785 #: ../src/guestfs-actions.pod:2967
8786 msgid "guestfs_is_launching"
8787 msgstr ""
8788
8789 # type: verbatim
8790 #: ../src/guestfs-actions.pod:2969
8791 #, no-wrap
8792 msgid ""
8793 " int\n"
8794 " guestfs_is_launching (guestfs_h *g);\n"
8795 "\n"
8796 msgstr ""
8797
8798 # type: textblock
8799 #: ../src/guestfs-actions.pod:2972 ../fish/guestfish-actions.pod:2040
8800 msgid ""
8801 "This returns true iff this handle is launching the subprocess (in the "
8802 "C<LAUNCHING> state)."
8803 msgstr ""
8804
8805 # type: =head2
8806 #: ../src/guestfs-actions.pod:2981
8807 msgid "guestfs_is_lv"
8808 msgstr ""
8809
8810 # type: verbatim
8811 #: ../src/guestfs-actions.pod:2983
8812 #, no-wrap
8813 msgid ""
8814 " int\n"
8815 " guestfs_is_lv (guestfs_h *g,\n"
8816 "                const char *device);\n"
8817 "\n"
8818 msgstr ""
8819
8820 # type: textblock
8821 #: ../src/guestfs-actions.pod:2987 ../fish/guestfish-actions.pod:2049
8822 msgid ""
8823 "This command tests whether C<device> is a logical volume, and returns true "
8824 "iff this is the case."
8825 msgstr ""
8826
8827 # type: =head2
8828 #: ../src/guestfs-actions.pod:2994
8829 msgid "guestfs_is_ready"
8830 msgstr ""
8831
8832 # type: verbatim
8833 #: ../src/guestfs-actions.pod:2996
8834 #, no-wrap
8835 msgid ""
8836 " int\n"
8837 " guestfs_is_ready (guestfs_h *g);\n"
8838 "\n"
8839 msgstr ""
8840
8841 # type: textblock
8842 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2056
8843 msgid ""
8844 "This returns true iff this handle is ready to accept commands (in the "
8845 "C<READY> state)."
8846 msgstr ""
8847
8848 # type: =head2
8849 #: ../src/guestfs-actions.pod:3008
8850 msgid "guestfs_is_socket"
8851 msgstr ""
8852
8853 # type: verbatim
8854 #: ../src/guestfs-actions.pod:3010
8855 #, no-wrap
8856 msgid ""
8857 " int\n"
8858 " guestfs_is_socket (guestfs_h *g,\n"
8859 "                    const char *path);\n"
8860 "\n"
8861 msgstr ""
8862
8863 # type: textblock
8864 #: ../src/guestfs-actions.pod:3014 ../fish/guestfish-actions.pod:2065
8865 msgid ""
8866 "This returns C<true> if and only if there is a Unix domain socket with the "
8867 "given C<path> name."
8868 msgstr ""
8869
8870 # type: =head2
8871 #: ../src/guestfs-actions.pod:3023
8872 msgid "guestfs_is_symlink"
8873 msgstr ""
8874
8875 # type: verbatim
8876 #: ../src/guestfs-actions.pod:3025
8877 #, no-wrap
8878 msgid ""
8879 " int\n"
8880 " guestfs_is_symlink (guestfs_h *g,\n"
8881 "                     const char *path);\n"
8882 "\n"
8883 msgstr ""
8884
8885 # type: textblock
8886 #: ../src/guestfs-actions.pod:3029 ../fish/guestfish-actions.pod:2074
8887 msgid ""
8888 "This returns C<true> if and only if there is a symbolic link with the given "
8889 "C<path> name."
8890 msgstr ""
8891
8892 # type: =head2
8893 #: ../src/guestfs-actions.pod:3038
8894 msgid "guestfs_kill_subprocess"
8895 msgstr ""
8896
8897 # type: verbatim
8898 #: ../src/guestfs-actions.pod:3040
8899 #, no-wrap
8900 msgid ""
8901 " int\n"
8902 " guestfs_kill_subprocess (guestfs_h *g);\n"
8903 "\n"
8904 msgstr ""
8905
8906 # type: textblock
8907 #: ../src/guestfs-actions.pod:3043 ../fish/guestfish-actions.pod:2083
8908 msgid "This kills the qemu subprocess.  You should never need to call this."
8909 msgstr ""
8910
8911 # type: =head2
8912 #: ../src/guestfs-actions.pod:3049
8913 msgid "guestfs_launch"
8914 msgstr ""
8915
8916 # type: verbatim
8917 #: ../src/guestfs-actions.pod:3051
8918 #, no-wrap
8919 msgid ""
8920 " int\n"
8921 " guestfs_launch (guestfs_h *g);\n"
8922 "\n"
8923 msgstr ""
8924
8925 # type: textblock
8926 #: ../src/guestfs-actions.pod:3054 ../fish/guestfish-actions.pod:2091
8927 msgid ""
8928 "Internally libguestfs is implemented by running a virtual machine using "
8929 "L<qemu(1)>."
8930 msgstr ""
8931
8932 # type: textblock
8933 #: ../src/guestfs-actions.pod:3057 ../fish/guestfish-actions.pod:2094
8934 msgid ""
8935 "You should call this after configuring the handle (eg. adding drives) but "
8936 "before performing any actions."
8937 msgstr ""
8938
8939 # type: =head2
8940 #: ../src/guestfs-actions.pod:3064
8941 msgid "guestfs_lchown"
8942 msgstr ""
8943
8944 # type: verbatim
8945 #: ../src/guestfs-actions.pod:3066
8946 #, no-wrap
8947 msgid ""
8948 " int\n"
8949 " guestfs_lchown (guestfs_h *g,\n"
8950 "                 int owner,\n"
8951 "                 int group,\n"
8952 "                 const char *path);\n"
8953 "\n"
8954 msgstr ""
8955
8956 # type: textblock
8957 #: ../src/guestfs-actions.pod:3072
8958 msgid ""
8959 "Change the file owner to C<owner> and group to C<group>.  This is like "
8960 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8961 "changed, not the target."
8962 msgstr ""
8963
8964 # type: =head2
8965 #: ../src/guestfs-actions.pod:3084
8966 msgid "guestfs_lgetxattrs"
8967 msgstr ""
8968
8969 # type: verbatim
8970 #: ../src/guestfs-actions.pod:3086
8971 #, no-wrap
8972 msgid ""
8973 " struct guestfs_xattr_list *\n"
8974 " guestfs_lgetxattrs (guestfs_h *g,\n"
8975 "                     const char *path);\n"
8976 "\n"
8977 msgstr ""
8978
8979 # type: textblock
8980 #: ../src/guestfs-actions.pod:3090
8981 msgid ""
8982 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8983 "then it returns the extended attributes of the link itself."
8984 msgstr ""
8985
8986 # type: =head2
8987 #: ../src/guestfs-actions.pod:3100
8988 msgid "guestfs_list_devices"
8989 msgstr ""
8990
8991 # type: verbatim
8992 #: ../src/guestfs-actions.pod:3102
8993 #, no-wrap
8994 msgid ""
8995 " char **\n"
8996 " guestfs_list_devices (guestfs_h *g);\n"
8997 "\n"
8998 msgstr ""
8999
9000 # type: textblock
9001 #: ../src/guestfs-actions.pod:3105 ../fish/guestfish-actions.pod:2121
9002 msgid "List all the block devices."
9003 msgstr ""
9004
9005 # type: textblock
9006 #: ../src/guestfs-actions.pod:3107 ../fish/guestfish-actions.pod:2123
9007 msgid "The full block device names are returned, eg. C</dev/sda>."
9008 msgstr ""
9009
9010 # type: =head2
9011 #: ../src/guestfs-actions.pod:3117
9012 msgid "guestfs_list_filesystems"
9013 msgstr ""
9014
9015 # type: verbatim
9016 #: ../src/guestfs-actions.pod:3119
9017 #, no-wrap
9018 msgid ""
9019 " char **\n"
9020 " guestfs_list_filesystems (guestfs_h *g);\n"
9021 "\n"
9022 msgstr ""
9023
9024 # type: textblock
9025 #: ../src/guestfs-actions.pod:3122 ../fish/guestfish-actions.pod:2131
9026 msgid ""
9027 "This inspection command looks for filesystems on partitions, block devices "
9028 "and logical volumes, returning a list of devices containing filesystems and "
9029 "their type."
9030 msgstr ""
9031
9032 # type: textblock
9033 #: ../src/guestfs-actions.pod:3126 ../fish/guestfish-actions.pod:2135
9034 msgid ""
9035 "The return value is a hash, where the keys are the devices containing "
9036 "filesystems, and the values are the filesystem types.  For example:"
9037 msgstr ""
9038
9039 # type: verbatim
9040 #: ../src/guestfs-actions.pod:3130 ../fish/guestfish-actions.pod:2139
9041 #, no-wrap
9042 msgid ""
9043 " \"/dev/sda1\" => \"ntfs\"\n"
9044 " \"/dev/sda2\" => \"ext2\"\n"
9045 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9046 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9047 "\n"
9048 msgstr ""
9049
9050 # type: textblock
9051 #: ../src/guestfs-actions.pod:3135 ../fish/guestfish-actions.pod:2144
9052 msgid ""
9053 "The value can have the special value \"unknown\", meaning the content of the "
9054 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9055 msgstr ""
9056
9057 # type: textblock
9058 #: ../src/guestfs-actions.pod:3139
9059 msgid ""
9060 "This command runs other libguestfs commands, which might include "
9061 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9062 "soon after launch and only when nothing is mounted."
9063 msgstr ""
9064
9065 # type: textblock
9066 #: ../src/guestfs-actions.pod:3143
9067 msgid ""
9068 "Not all of the filesystems returned will be mountable.  In particular, swap "
9069 "partitions are returned in the list.  Also this command does not check that "
9070 "each filesystem found is valid and mountable, and some filesystems might be "
9071 "mountable but require special options.  Filesystems may not all belong to a "
9072 "single logical operating system (use C<guestfs_inspect_os> to look for "
9073 "OSes)."
9074 msgstr ""
9075
9076 # type: textblock
9077 #: ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:4680
9078 msgid "(Added in 1.5.15)"
9079 msgstr ""
9080
9081 # type: =head2
9082 #: ../src/guestfs-actions.pod:3159
9083 msgid "guestfs_list_partitions"
9084 msgstr ""
9085
9086 # type: verbatim
9087 #: ../src/guestfs-actions.pod:3161
9088 #, no-wrap
9089 msgid ""
9090 " char **\n"
9091 " guestfs_list_partitions (guestfs_h *g);\n"
9092 "\n"
9093 msgstr ""
9094
9095 # type: textblock
9096 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2164
9097 msgid "List all the partitions detected on all block devices."
9098 msgstr ""
9099
9100 # type: textblock
9101 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2166
9102 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9103 msgstr ""
9104
9105 # type: textblock
9106 #: ../src/guestfs-actions.pod:3168
9107 msgid ""
9108 "This does not return logical volumes.  For that you will need to call "
9109 "C<guestfs_lvs>."
9110 msgstr ""
9111
9112 # type: =head2
9113 #: ../src/guestfs-actions.pod:3179
9114 msgid "guestfs_ll"
9115 msgstr ""
9116
9117 # type: verbatim
9118 #: ../src/guestfs-actions.pod:3181
9119 #, no-wrap
9120 msgid ""
9121 " char *\n"
9122 " guestfs_ll (guestfs_h *g,\n"
9123 "             const char *directory);\n"
9124 "\n"
9125 msgstr ""
9126
9127 # type: textblock
9128 #: ../src/guestfs-actions.pod:3185 ../fish/guestfish-actions.pod:2177
9129 msgid ""
9130 "List the files in C<directory> (relative to the root directory, there is no "
9131 "cwd) in the format of 'ls -la'."
9132 msgstr ""
9133
9134 # type: textblock
9135 #: ../src/guestfs-actions.pod:3188 ../fish/guestfish-actions.pod:2180
9136 msgid ""
9137 "This command is mostly useful for interactive sessions.  It is I<not> "
9138 "intended that you try to parse the output string."
9139 msgstr ""
9140
9141 # type: =head2
9142 #: ../src/guestfs-actions.pod:3196
9143 msgid "guestfs_ln"
9144 msgstr ""
9145
9146 # type: verbatim
9147 #: ../src/guestfs-actions.pod:3198
9148 #, no-wrap
9149 msgid ""
9150 " int\n"
9151 " guestfs_ln (guestfs_h *g,\n"
9152 "             const char *target,\n"
9153 "             const char *linkname);\n"
9154 "\n"
9155 msgstr ""
9156
9157 # type: textblock
9158 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2187
9159 msgid "This command creates a hard link using the C<ln> command."
9160 msgstr ""
9161
9162 # type: =head2
9163 #: ../src/guestfs-actions.pod:3209
9164 msgid "guestfs_ln_f"
9165 msgstr ""
9166
9167 # type: verbatim
9168 #: ../src/guestfs-actions.pod:3211
9169 #, no-wrap
9170 msgid ""
9171 " int\n"
9172 " guestfs_ln_f (guestfs_h *g,\n"
9173 "               const char *target,\n"
9174 "               const char *linkname);\n"
9175 "\n"
9176 msgstr ""
9177
9178 # type: textblock
9179 #: ../src/guestfs-actions.pod:3216 ../fish/guestfish-actions.pod:2193
9180 msgid ""
9181 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9182 "option removes the link (C<linkname>) if it exists already."
9183 msgstr ""
9184
9185 # type: =head2
9186 #: ../src/guestfs-actions.pod:3223
9187 msgid "guestfs_ln_s"
9188 msgstr ""
9189
9190 # type: verbatim
9191 #: ../src/guestfs-actions.pod:3225
9192 #, no-wrap
9193 msgid ""
9194 " int\n"
9195 " guestfs_ln_s (guestfs_h *g,\n"
9196 "               const char *target,\n"
9197 "               const char *linkname);\n"
9198 "\n"
9199 msgstr ""
9200
9201 # type: textblock
9202 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2200
9203 msgid "This command creates a symbolic link using the C<ln -s> command."
9204 msgstr ""
9205
9206 # type: =head2
9207 #: ../src/guestfs-actions.pod:3236
9208 msgid "guestfs_ln_sf"
9209 msgstr ""
9210
9211 # type: verbatim
9212 #: ../src/guestfs-actions.pod:3238
9213 #, no-wrap
9214 msgid ""
9215 " int\n"
9216 " guestfs_ln_sf (guestfs_h *g,\n"
9217 "                const char *target,\n"
9218 "                const char *linkname);\n"
9219 "\n"
9220 msgstr ""
9221
9222 # type: textblock
9223 #: ../src/guestfs-actions.pod:3243 ../fish/guestfish-actions.pod:2206
9224 msgid ""
9225 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9226 "option removes the link (C<linkname>) if it exists already."
9227 msgstr ""
9228
9229 # type: =head2
9230 #: ../src/guestfs-actions.pod:3250
9231 msgid "guestfs_lremovexattr"
9232 msgstr ""
9233
9234 # type: verbatim
9235 #: ../src/guestfs-actions.pod:3252
9236 #, no-wrap
9237 msgid ""
9238 " int\n"
9239 " guestfs_lremovexattr (guestfs_h *g,\n"
9240 "                       const char *xattr,\n"
9241 "                       const char *path);\n"
9242 "\n"
9243 msgstr ""
9244
9245 # type: textblock
9246 #: ../src/guestfs-actions.pod:3257
9247 msgid ""
9248 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9249 "link, then it removes an extended attribute of the link itself."
9250 msgstr ""
9251
9252 # type: =head2
9253 #: ../src/guestfs-actions.pod:3265
9254 msgid "guestfs_ls"
9255 msgstr ""
9256
9257 # type: verbatim
9258 #: ../src/guestfs-actions.pod:3267
9259 #, no-wrap
9260 msgid ""
9261 " char **\n"
9262 " guestfs_ls (guestfs_h *g,\n"
9263 "             const char *directory);\n"
9264 "\n"
9265 msgstr ""
9266
9267 # type: textblock
9268 #: ../src/guestfs-actions.pod:3271 ../fish/guestfish-actions.pod:2221
9269 msgid ""
9270 "List the files in C<directory> (relative to the root directory, there is no "
9271 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9272 "shown."
9273 msgstr ""
9274
9275 # type: textblock
9276 #: ../src/guestfs-actions.pod:3275
9277 msgid ""
9278 "This command is mostly useful for interactive sessions.  Programs should "
9279 "probably use C<guestfs_readdir> instead."
9280 msgstr ""
9281
9282 # type: =head2
9283 #: ../src/guestfs-actions.pod:3284
9284 msgid "guestfs_lsetxattr"
9285 msgstr ""
9286
9287 # type: verbatim
9288 #: ../src/guestfs-actions.pod:3286
9289 #, no-wrap
9290 msgid ""
9291 " int\n"
9292 " guestfs_lsetxattr (guestfs_h *g,\n"
9293 "                    const char *xattr,\n"
9294 "                    const char *val,\n"
9295 "                    int vallen,\n"
9296 "                    const char *path);\n"
9297 "\n"
9298 msgstr ""
9299
9300 # type: textblock
9301 #: ../src/guestfs-actions.pod:3293
9302 msgid ""
9303 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9304 "then it sets an extended attribute of the link itself."
9305 msgstr ""
9306
9307 # type: =head2
9308 #: ../src/guestfs-actions.pod:3301
9309 msgid "guestfs_lstat"
9310 msgstr ""
9311
9312 # type: verbatim
9313 #: ../src/guestfs-actions.pod:3303
9314 #, no-wrap
9315 msgid ""
9316 " struct guestfs_stat *\n"
9317 " guestfs_lstat (guestfs_h *g,\n"
9318 "                const char *path);\n"
9319 "\n"
9320 msgstr ""
9321
9322 # type: textblock
9323 #: ../src/guestfs-actions.pod:3307 ../src/guestfs-actions.pod:5734 ../fish/guestfish-actions.pod:2240 ../fish/guestfish-actions.pod:3822
9324 msgid "Returns file information for the given C<path>."
9325 msgstr ""
9326
9327 # type: textblock
9328 #: ../src/guestfs-actions.pod:3309
9329 msgid ""
9330 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9331 "link, then the link is stat-ed, not the file it refers to."
9332 msgstr ""
9333
9334 # type: textblock
9335 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:2246
9336 msgid "This is the same as the C<lstat(2)> system call."
9337 msgstr ""
9338
9339 # type: textblock
9340 #: ../src/guestfs-actions.pod:3315 ../src/guestfs-actions.pod:5738
9341 msgid ""
9342 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9343 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9344 msgstr ""
9345
9346 # type: textblock
9347 #: ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:5742 ../src/guestfs-actions.pod:5760 ../src/guestfs-actions.pod:6141
9348 msgid "(Added in 0.9.2)"
9349 msgstr ""
9350
9351 # type: =head2
9352 #: ../src/guestfs-actions.pod:3321
9353 msgid "guestfs_lstatlist"
9354 msgstr ""
9355
9356 # type: verbatim
9357 #: ../src/guestfs-actions.pod:3323
9358 #, no-wrap
9359 msgid ""
9360 " struct guestfs_stat_list *\n"
9361 " guestfs_lstatlist (guestfs_h *g,\n"
9362 "                    const char *path,\n"
9363 "                    char *const *names);\n"
9364 "\n"
9365 msgstr ""
9366
9367 # type: textblock
9368 #: ../src/guestfs-actions.pod:3328
9369 msgid ""
9370 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9371 "files, where all files are in the directory C<path>.  C<names> is the list "
9372 "of files from this directory."
9373 msgstr ""
9374
9375 # type: textblock
9376 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2256
9377 msgid ""
9378 "On return you get a list of stat structs, with a one-to-one correspondence "
9379 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9380 "then the C<ino> field of that structure is set to C<-1>."
9381 msgstr ""
9382
9383 # type: textblock
9384 #: ../src/guestfs-actions.pod:3337
9385 msgid ""
9386 "This call is intended for programs that want to efficiently list a directory "
9387 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9388 "for a similarly efficient call for getting extended attributes.  Very long "
9389 "directory listings might cause the protocol message size to be exceeded, "
9390 "causing this call to fail.  The caller must split up such requests into "
9391 "smaller groups of names."
9392 msgstr ""
9393
9394 # type: textblock
9395 #: ../src/guestfs-actions.pod:3345
9396 msgid ""
9397 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
9398 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
9399 msgstr ""
9400
9401 # type: =head2
9402 #: ../src/guestfs-actions.pod:3351
9403 msgid "guestfs_luks_add_key"
9404 msgstr ""
9405
9406 # type: verbatim
9407 #: ../src/guestfs-actions.pod:3353
9408 #, no-wrap
9409 msgid ""
9410 " int\n"
9411 " guestfs_luks_add_key (guestfs_h *g,\n"
9412 "                       const char *device,\n"
9413 "                       const char *key,\n"
9414 "                       const char *newkey,\n"
9415 "                       int keyslot);\n"
9416 "\n"
9417 msgstr ""
9418
9419 # type: textblock
9420 #: ../src/guestfs-actions.pod:3360 ../fish/guestfish-actions.pod:2273
9421 msgid ""
9422 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9423 "existing key, and is used to access the device.  C<newkey> is the new key to "
9424 "add.  C<keyslot> is the key slot that will be replaced."
9425 msgstr ""
9426
9427 # type: textblock
9428 #: ../src/guestfs-actions.pod:3365
9429 msgid ""
9430 "Note that if C<keyslot> already contains a key, then this command will "
9431 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9432 msgstr ""
9433
9434 # type: textblock
9435 #: ../src/guestfs-actions.pod:3371 ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3454 ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3505
9436 msgid ""
9437 "This function takes a key or passphrase parameter which could contain "
9438 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9439 "information."
9440 msgstr ""
9441
9442 # type: textblock
9443 #: ../src/guestfs-actions.pod:3375 ../src/guestfs-actions.pod:3415 ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:3458
9444 msgid "(Added in 1.5.2)"
9445 msgstr ""
9446
9447 # type: =head2
9448 #: ../src/guestfs-actions.pod:3377
9449 msgid "guestfs_luks_close"
9450 msgstr ""
9451
9452 # type: verbatim
9453 #: ../src/guestfs-actions.pod:3379
9454 #, no-wrap
9455 msgid ""
9456 " int\n"
9457 " guestfs_luks_close (guestfs_h *g,\n"
9458 "                     const char *device);\n"
9459 "\n"
9460 msgstr ""
9461
9462 # type: textblock
9463 #: ../src/guestfs-actions.pod:3383
9464 msgid ""
9465 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9466 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9467 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9468 "underlying block device."
9469 msgstr ""
9470
9471 # type: textblock
9472 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3490 ../src/guestfs-actions.pod:3509 ../src/guestfs-actions.pod:3559 ../src/guestfs-actions.pod:3607
9473 msgid "(Added in 1.5.1)"
9474 msgstr ""
9475
9476 # type: =head2
9477 #: ../src/guestfs-actions.pod:3393
9478 msgid "guestfs_luks_format"
9479 msgstr ""
9480
9481 # type: verbatim
9482 #: ../src/guestfs-actions.pod:3395
9483 #, no-wrap
9484 msgid ""
9485 " int\n"
9486 " guestfs_luks_format (guestfs_h *g,\n"
9487 "                      const char *device,\n"
9488 "                      const char *key,\n"
9489 "                      int keyslot);\n"
9490 "\n"
9491 msgstr ""
9492
9493 # type: textblock
9494 #: ../src/guestfs-actions.pod:3401 ../fish/guestfish-actions.pod:2299
9495 msgid ""
9496 "This command erases existing data on C<device> and formats the device as a "
9497 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9498 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9499 msgstr ""
9500
9501 # type: textblock
9502 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3431 ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:5194 ../src/guestfs-actions.pod:5569 ../src/guestfs-actions.pod:5592 ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:6768 ../fish/guestfish-actions.pod:2307 ../fish/guestfish-actions.pod:2320 ../fish/guestfish-actions.pod:2404 ../fish/guestfish-actions.pod:2934 ../fish/guestfish-actions.pod:3441 ../fish/guestfish-actions.pod:3721 ../fish/guestfish-actions.pod:3737 ../fish/guestfish-actions.pod:3752 ../fish/guestfish-actions.pod:4467
9503 msgid ""
9504 "B<This command is dangerous.  Without careful use you can easily destroy all "
9505 "your data>."
9506 msgstr ""
9507
9508 # type: =head2
9509 #: ../src/guestfs-actions.pod:3417
9510 msgid "guestfs_luks_format_cipher"
9511 msgstr ""
9512
9513 # type: verbatim
9514 #: ../src/guestfs-actions.pod:3419
9515 #, no-wrap
9516 msgid ""
9517 " int\n"
9518 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9519 "                             const char *device,\n"
9520 "                             const char *key,\n"
9521 "                             int keyslot,\n"
9522 "                             const char *cipher);\n"
9523 "\n"
9524 msgstr ""
9525
9526 # type: textblock
9527 #: ../src/guestfs-actions.pod:3426
9528 msgid ""
9529 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9530 "set the C<cipher> used."
9531 msgstr ""
9532
9533 # type: =head2
9534 #: ../src/guestfs-actions.pod:3440
9535 msgid "guestfs_luks_kill_slot"
9536 msgstr ""
9537
9538 # type: verbatim
9539 #: ../src/guestfs-actions.pod:3442
9540 #, no-wrap
9541 msgid ""
9542 " int\n"
9543 " guestfs_luks_kill_slot (guestfs_h *g,\n"
9544 "                         const char *device,\n"
9545 "                         const char *key,\n"
9546 "                         int keyslot);\n"
9547 "\n"
9548 msgstr ""
9549
9550 # type: textblock
9551 #: ../src/guestfs-actions.pod:3448 ../fish/guestfish-actions.pod:2327
9552 msgid ""
9553 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9554 "device C<device>.  C<key> must be one of the I<other> keys."
9555 msgstr ""
9556
9557 # type: =head2
9558 #: ../src/guestfs-actions.pod:3460
9559 msgid "guestfs_luks_open"
9560 msgstr ""
9561
9562 # type: verbatim
9563 #: ../src/guestfs-actions.pod:3462
9564 #, no-wrap
9565 msgid ""
9566 " int\n"
9567 " guestfs_luks_open (guestfs_h *g,\n"
9568 "                    const char *device,\n"
9569 "                    const char *key,\n"
9570 "                    const char *mapname);\n"
9571 "\n"
9572 msgstr ""
9573
9574 # type: textblock
9575 #: ../src/guestfs-actions.pod:3468 ../fish/guestfish-actions.pod:2338
9576 msgid ""
9577 "This command opens a block device which has been encrypted according to the "
9578 "Linux Unified Key Setup (LUKS) standard."
9579 msgstr ""
9580
9581 # type: textblock
9582 #: ../src/guestfs-actions.pod:3471 ../fish/guestfish-actions.pod:2341
9583 msgid "C<device> is the encrypted block device or partition."
9584 msgstr ""
9585
9586 # type: textblock
9587 #: ../src/guestfs-actions.pod:3473 ../fish/guestfish-actions.pod:2343
9588 msgid ""
9589 "The caller must supply one of the keys associated with the LUKS block "
9590 "device, in the C<key> parameter."
9591 msgstr ""
9592
9593 # type: textblock
9594 #: ../src/guestfs-actions.pod:3476 ../fish/guestfish-actions.pod:2346
9595 msgid ""
9596 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9597 "writes to this block device are decrypted from and encrypted to the "
9598 "underlying C<device> respectively."
9599 msgstr ""
9600
9601 # type: textblock
9602 #: ../src/guestfs-actions.pod:3480
9603 msgid ""
9604 "If this block device contains LVM volume groups, then calling "
9605 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9606 "visible."
9607 msgstr ""
9608
9609 # type: =head2
9610 #: ../src/guestfs-actions.pod:3492
9611 msgid "guestfs_luks_open_ro"
9612 msgstr ""
9613
9614 # type: verbatim
9615 #: ../src/guestfs-actions.pod:3494
9616 #, no-wrap
9617 msgid ""
9618 " int\n"
9619 " guestfs_luks_open_ro (guestfs_h *g,\n"
9620 "                       const char *device,\n"
9621 "                       const char *key,\n"
9622 "                       const char *mapname);\n"
9623 "\n"
9624 msgstr ""
9625
9626 # type: textblock
9627 #: ../src/guestfs-actions.pod:3500
9628 msgid ""
9629 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9630 "created."
9631 msgstr ""
9632
9633 # type: =head2
9634 #: ../src/guestfs-actions.pod:3511
9635 msgid "guestfs_lvcreate"
9636 msgstr ""
9637
9638 # type: verbatim
9639 #: ../src/guestfs-actions.pod:3513
9640 #, no-wrap
9641 msgid ""
9642 " int\n"
9643 " guestfs_lvcreate (guestfs_h *g,\n"
9644 "                   const char *logvol,\n"
9645 "                   const char *volgroup,\n"
9646 "                   int mbytes);\n"
9647 "\n"
9648 msgstr ""
9649
9650 # type: textblock
9651 #: ../src/guestfs-actions.pod:3519 ../fish/guestfish-actions.pod:2371
9652 msgid ""
9653 "This creates an LVM logical volume called C<logvol> on the volume group "
9654 "C<volgroup>, with C<size> megabytes."
9655 msgstr ""
9656
9657 # type: =head2
9658 #: ../src/guestfs-actions.pod:3526
9659 msgid "guestfs_lvm_canonical_lv_name"
9660 msgstr ""
9661
9662 # type: verbatim
9663 #: ../src/guestfs-actions.pod:3528
9664 #, no-wrap
9665 msgid ""
9666 " char *\n"
9667 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9668 "                                const char *lvname);\n"
9669 "\n"
9670 msgstr ""
9671
9672 # type: textblock
9673 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2378
9674 msgid ""
9675 "This converts alternative naming schemes for LVs that you might find to the "
9676 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9677 "C</dev/VG/LV>."
9678 msgstr ""
9679
9680 # type: textblock
9681 #: ../src/guestfs-actions.pod:3536 ../fish/guestfish-actions.pod:2382
9682 msgid ""
9683 "This command returns an error if the C<lvname> parameter does not refer to a "
9684 "logical volume."
9685 msgstr ""
9686
9687 # type: textblock
9688 #: ../src/guestfs-actions.pod:3539
9689 msgid "See also C<guestfs_is_lv>."
9690 msgstr ""
9691
9692 # type: textblock
9693 #: ../src/guestfs-actions.pod:3544
9694 msgid "(Added in 1.5.24)"
9695 msgstr ""
9696
9697 # type: =head2
9698 #: ../src/guestfs-actions.pod:3546
9699 msgid "guestfs_lvm_clear_filter"
9700 msgstr ""
9701
9702 # type: verbatim
9703 #: ../src/guestfs-actions.pod:3548
9704 #, no-wrap
9705 msgid ""
9706 " int\n"
9707 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
9708 "\n"
9709 msgstr ""
9710
9711 # type: textblock
9712 #: ../src/guestfs-actions.pod:3551
9713 msgid ""
9714 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9715 "see every block device."
9716 msgstr ""
9717
9718 # type: textblock
9719 #: ../src/guestfs-actions.pod:3554 ../src/guestfs-actions.pod:3596 ../fish/guestfish-actions.pod:2394 ../fish/guestfish-actions.pod:2425
9720 msgid "This command also clears the LVM cache and performs a volume group scan."
9721 msgstr ""
9722
9723 # type: =head2
9724 #: ../src/guestfs-actions.pod:3561
9725 msgid "guestfs_lvm_remove_all"
9726 msgstr ""
9727
9728 # type: verbatim
9729 #: ../src/guestfs-actions.pod:3563
9730 #, no-wrap
9731 msgid ""
9732 " int\n"
9733 " guestfs_lvm_remove_all (guestfs_h *g);\n"
9734 "\n"
9735 msgstr ""
9736
9737 # type: textblock
9738 #: ../src/guestfs-actions.pod:3566 ../fish/guestfish-actions.pod:2401
9739 msgid ""
9740 "This command removes all LVM logical volumes, volume groups and physical "
9741 "volumes."
9742 msgstr ""
9743
9744 # type: =head2
9745 #: ../src/guestfs-actions.pod:3576
9746 msgid "guestfs_lvm_set_filter"
9747 msgstr ""
9748
9749 # type: verbatim
9750 #: ../src/guestfs-actions.pod:3578
9751 #, no-wrap
9752 msgid ""
9753 " int\n"
9754 " guestfs_lvm_set_filter (guestfs_h *g,\n"
9755 "                         char *const *devices);\n"
9756 "\n"
9757 msgstr ""
9758
9759 # type: textblock
9760 #: ../src/guestfs-actions.pod:3582 ../fish/guestfish-actions.pod:2411
9761 msgid ""
9762 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9763 "block devices in the list C<devices>, and will ignore all other attached "
9764 "block devices."
9765 msgstr ""
9766
9767 # type: textblock
9768 #: ../src/guestfs-actions.pod:3586 ../fish/guestfish-actions.pod:2415
9769 msgid ""
9770 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9771 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9772 "there are two types of duplication possible: either cloned PVs/VGs which "
9773 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9774 "same name.  In normal operation you cannot create this situation, but you "
9775 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9776 "inside the LVM metadata."
9777 msgstr ""
9778
9779 # type: textblock
9780 #: ../src/guestfs-actions.pod:3599 ../fish/guestfish-actions.pod:2428
9781 msgid "You can filter whole block devices or individual partitions."
9782 msgstr ""
9783
9784 # type: textblock
9785 #: ../src/guestfs-actions.pod:3601 ../fish/guestfish-actions.pod:2430
9786 msgid ""
9787 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9788 "filesystem), even if you are not filtering out that VG."
9789 msgstr ""
9790
9791 # type: =head2
9792 #: ../src/guestfs-actions.pod:3609
9793 msgid "guestfs_lvremove"
9794 msgstr ""
9795
9796 # type: verbatim
9797 #: ../src/guestfs-actions.pod:3611
9798 #, no-wrap
9799 msgid ""
9800 " int\n"
9801 " guestfs_lvremove (guestfs_h *g,\n"
9802 "                   const char *device);\n"
9803 "\n"
9804 msgstr ""
9805
9806 # type: textblock
9807 #: ../src/guestfs-actions.pod:3615 ../fish/guestfish-actions.pod:2438
9808 msgid ""
9809 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9810 "LV, such as C</dev/VG/LV>."
9811 msgstr ""
9812
9813 # type: textblock
9814 #: ../src/guestfs-actions.pod:3618 ../fish/guestfish-actions.pod:2441
9815 msgid ""
9816 "You can also remove all LVs in a volume group by specifying the VG name, "
9817 "C</dev/VG>."
9818 msgstr ""
9819
9820 # type: textblock
9821 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:6507
9822 msgid "(Added in 1.0.13)"
9823 msgstr ""
9824
9825 # type: =head2
9826 #: ../src/guestfs-actions.pod:3625
9827 msgid "guestfs_lvrename"
9828 msgstr ""
9829
9830 # type: verbatim
9831 #: ../src/guestfs-actions.pod:3627
9832 #, no-wrap
9833 msgid ""
9834 " int\n"
9835 " guestfs_lvrename (guestfs_h *g,\n"
9836 "                   const char *logvol,\n"
9837 "                   const char *newlogvol);\n"
9838 "\n"
9839 msgstr ""
9840
9841 # type: textblock
9842 #: ../src/guestfs-actions.pod:3632 ../fish/guestfish-actions.pod:2448
9843 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9844 msgstr ""
9845
9846 # type: textblock
9847 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:6520
9848 msgid "(Added in 1.0.83)"
9849 msgstr ""
9850
9851 # type: =head2
9852 #: ../src/guestfs-actions.pod:3638
9853 msgid "guestfs_lvresize"
9854 msgstr ""
9855
9856 # type: verbatim
9857 #: ../src/guestfs-actions.pod:3640
9858 #, no-wrap
9859 msgid ""
9860 " int\n"
9861 " guestfs_lvresize (guestfs_h *g,\n"
9862 "                   const char *device,\n"
9863 "                   int mbytes);\n"
9864 "\n"
9865 msgstr ""
9866
9867 # type: textblock
9868 #: ../src/guestfs-actions.pod:3645 ../fish/guestfish-actions.pod:2454
9869 msgid ""
9870 "This resizes (expands or shrinks) an existing LVM logical volume to "
9871 "C<mbytes>.  When reducing, data in the reduced part is lost."
9872 msgstr ""
9873
9874 # type: =head2
9875 #: ../src/guestfs-actions.pod:3653
9876 msgid "guestfs_lvresize_free"
9877 msgstr ""
9878
9879 # type: verbatim
9880 #: ../src/guestfs-actions.pod:3655
9881 #, no-wrap
9882 msgid ""
9883 " int\n"
9884 " guestfs_lvresize_free (guestfs_h *g,\n"
9885 "                        const char *lv,\n"
9886 "                        int percent);\n"
9887 "\n"
9888 msgstr ""
9889
9890 # type: textblock
9891 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2462
9892 msgid ""
9893 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9894 "remaining free space in the volume group.  Commonly you would call this with "
9895 "pc = 100 which expands the logical volume as much as possible, using all "
9896 "remaining free space in the volume group."
9897 msgstr ""
9898
9899 # type: textblock
9900 #: ../src/guestfs-actions.pod:3668
9901 msgid "(Added in 1.3.3)"
9902 msgstr ""
9903
9904 # type: =head2
9905 #: ../src/guestfs-actions.pod:3670
9906 msgid "guestfs_lvs"
9907 msgstr ""
9908
9909 # type: verbatim
9910 #: ../src/guestfs-actions.pod:3672
9911 #, no-wrap
9912 msgid ""
9913 " char **\n"
9914 " guestfs_lvs (guestfs_h *g);\n"
9915 "\n"
9916 msgstr ""
9917
9918 # type: textblock
9919 #: ../src/guestfs-actions.pod:3675 ../fish/guestfish-actions.pod:2472
9920 msgid ""
9921 "List all the logical volumes detected.  This is the equivalent of the "
9922 "L<lvs(8)> command."
9923 msgstr ""
9924
9925 # type: textblock
9926 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2475
9927 msgid ""
9928 "This returns a list of the logical volume device names "
9929 "(eg. C</dev/VolGroup00/LogVol00>)."
9930 msgstr ""
9931
9932 # type: textblock
9933 #: ../src/guestfs-actions.pod:3681
9934 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9935 msgstr ""
9936
9937 # type: =head2
9938 #: ../src/guestfs-actions.pod:3689
9939 msgid "guestfs_lvs_full"
9940 msgstr ""
9941
9942 # type: verbatim
9943 #: ../src/guestfs-actions.pod:3691
9944 #, no-wrap
9945 msgid ""
9946 " struct guestfs_lvm_lv_list *\n"
9947 " guestfs_lvs_full (guestfs_h *g);\n"
9948 "\n"
9949 msgstr ""
9950
9951 # type: textblock
9952 #: ../src/guestfs-actions.pod:3694 ../fish/guestfish-actions.pod:2484
9953 msgid ""
9954 "List all the logical volumes detected.  This is the equivalent of the "
9955 "L<lvs(8)> command.  The \"full\" version includes all fields."
9956 msgstr ""
9957
9958 # type: textblock
9959 #: ../src/guestfs-actions.pod:3697
9960 msgid ""
9961 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
9962 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
9963 "use>."
9964 msgstr ""
9965
9966 # type: =head2
9967 #: ../src/guestfs-actions.pod:3703
9968 msgid "guestfs_lvuuid"
9969 msgstr ""
9970
9971 # type: verbatim
9972 #: ../src/guestfs-actions.pod:3705
9973 #, no-wrap
9974 msgid ""
9975 " char *\n"
9976 " guestfs_lvuuid (guestfs_h *g,\n"
9977 "                 const char *device);\n"
9978 "\n"
9979 msgstr ""
9980
9981 # type: textblock
9982 #: ../src/guestfs-actions.pod:3709 ../fish/guestfish-actions.pod:2491
9983 msgid "This command returns the UUID of the LVM LV C<device>."
9984 msgstr ""
9985
9986 # type: =head2
9987 #: ../src/guestfs-actions.pod:3716
9988 msgid "guestfs_lxattrlist"
9989 msgstr ""
9990
9991 # type: verbatim
9992 #: ../src/guestfs-actions.pod:3718
9993 #, no-wrap
9994 msgid ""
9995 " struct guestfs_xattr_list *\n"
9996 " guestfs_lxattrlist (guestfs_h *g,\n"
9997 "                     const char *path,\n"
9998 "                     char *const *names);\n"
9999 "\n"
10000 msgstr ""
10001
10002 # type: textblock
10003 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2497
10004 msgid ""
10005 "This call allows you to get the extended attributes of multiple files, where "
10006 "all files are in the directory C<path>.  C<names> is the list of files from "
10007 "this directory."
10008 msgstr ""
10009
10010 # type: textblock
10011 #: ../src/guestfs-actions.pod:3727 ../fish/guestfish-actions.pod:2501
10012 msgid ""
10013 "On return you get a flat list of xattr structs which must be interpreted "
10014 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10015 "C<attrval> in this struct is zero-length to indicate there was an error "
10016 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10017 "number (the number of following attributes for this file, which could be "
10018 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10019 "attributes for the first named file.  This repeats for the second and "
10020 "subsequent files."
10021 msgstr ""
10022
10023 # type: textblock
10024 #: ../src/guestfs-actions.pod:3737
10025 msgid ""
10026 "This call is intended for programs that want to efficiently list a directory "
10027 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10028 "a similarly efficient call for getting standard stats.  Very long directory "
10029 "listings might cause the protocol message size to be exceeded, causing this "
10030 "call to fail.  The caller must split up such requests into smaller groups of "
10031 "names."
10032 msgstr ""
10033
10034 # type: =head2
10035 #: ../src/guestfs-actions.pod:3751
10036 msgid "guestfs_mkdir"
10037 msgstr ""
10038
10039 # type: verbatim
10040 #: ../src/guestfs-actions.pod:3753
10041 #, no-wrap
10042 msgid ""
10043 " int\n"
10044 " guestfs_mkdir (guestfs_h *g,\n"
10045 "                const char *path);\n"
10046 "\n"
10047 msgstr ""
10048
10049 # type: textblock
10050 #: ../src/guestfs-actions.pod:3757 ../fish/guestfish-actions.pod:2523
10051 msgid "Create a directory named C<path>."
10052 msgstr ""
10053
10054 # type: =head2
10055 #: ../src/guestfs-actions.pod:3763
10056 msgid "guestfs_mkdir_mode"
10057 msgstr ""
10058
10059 # type: verbatim
10060 #: ../src/guestfs-actions.pod:3765
10061 #, no-wrap
10062 msgid ""
10063 " int\n"
10064 " guestfs_mkdir_mode (guestfs_h *g,\n"
10065 "                     const char *path,\n"
10066 "                     int mode);\n"
10067 "\n"
10068 msgstr ""
10069
10070 # type: textblock
10071 #: ../src/guestfs-actions.pod:3770 ../fish/guestfish-actions.pod:2529
10072 msgid ""
10073 "This command creates a directory, setting the initial permissions of the "
10074 "directory to C<mode>."
10075 msgstr ""
10076
10077 # type: textblock
10078 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2532
10079 msgid ""
10080 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10081 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10082 "other ways."
10083 msgstr ""
10084
10085 # type: textblock
10086 #: ../src/guestfs-actions.pod:3777
10087 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10088 msgstr ""
10089
10090 # type: =head2
10091 #: ../src/guestfs-actions.pod:3783
10092 msgid "guestfs_mkdir_p"
10093 msgstr ""
10094
10095 # type: verbatim
10096 #: ../src/guestfs-actions.pod:3785
10097 #, no-wrap
10098 msgid ""
10099 " int\n"
10100 " guestfs_mkdir_p (guestfs_h *g,\n"
10101 "                  const char *path);\n"
10102 "\n"
10103 msgstr ""
10104
10105 # type: textblock
10106 #: ../src/guestfs-actions.pod:3789 ../fish/guestfish-actions.pod:2542
10107 msgid ""
10108 "Create a directory named C<path>, creating any parent directories as "
10109 "necessary.  This is like the C<mkdir -p> shell command."
10110 msgstr ""
10111
10112 # type: =head2
10113 #: ../src/guestfs-actions.pod:3796
10114 msgid "guestfs_mkdtemp"
10115 msgstr ""
10116
10117 # type: verbatim
10118 #: ../src/guestfs-actions.pod:3798
10119 #, no-wrap
10120 msgid ""
10121 " char *\n"
10122 " guestfs_mkdtemp (guestfs_h *g,\n"
10123 "                  const char *template);\n"
10124 "\n"
10125 msgstr ""
10126
10127 # type: textblock
10128 #: ../src/guestfs-actions.pod:3802 ../fish/guestfish-actions.pod:2549
10129 msgid ""
10130 "This command creates a temporary directory.  The C<template> parameter "
10131 "should be a full pathname for the temporary directory name with the final "
10132 "six characters being \"XXXXXX\"."
10133 msgstr ""
10134
10135 # type: textblock
10136 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2554
10137 msgid ""
10138 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10139 "being suitable for Windows filesystems."
10140 msgstr ""
10141
10142 # type: textblock
10143 #: ../src/guestfs-actions.pod:3810 ../fish/guestfish-actions.pod:2557
10144 msgid "The name of the temporary directory that was created is returned."
10145 msgstr ""
10146
10147 # type: textblock
10148 #: ../src/guestfs-actions.pod:3813 ../fish/guestfish-actions.pod:2560
10149 msgid "The temporary directory is created with mode 0700 and is owned by root."
10150 msgstr ""
10151
10152 # type: textblock
10153 #: ../src/guestfs-actions.pod:3816 ../fish/guestfish-actions.pod:2563
10154 msgid ""
10155 "The caller is responsible for deleting the temporary directory and its "
10156 "contents after use."
10157 msgstr ""
10158
10159 # type: textblock
10160 #: ../src/guestfs-actions.pod:3819 ../fish/guestfish-actions.pod:2566
10161 msgid "See also: L<mkdtemp(3)>"
10162 msgstr ""
10163
10164 # type: =head2
10165 #: ../src/guestfs-actions.pod:3826
10166 msgid "guestfs_mke2fs_J"
10167 msgstr ""
10168
10169 # type: verbatim
10170 #: ../src/guestfs-actions.pod:3828
10171 #, no-wrap
10172 msgid ""
10173 " int\n"
10174 " guestfs_mke2fs_J (guestfs_h *g,\n"
10175 "                   const char *fstype,\n"
10176 "                   int blocksize,\n"
10177 "                   const char *device,\n"
10178 "                   const char *journal);\n"
10179 "\n"
10180 msgstr ""
10181
10182 # type: textblock
10183 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2572
10184 msgid ""
10185 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10186 "C<journal>.  It is equivalent to the command:"
10187 msgstr ""
10188
10189 # type: verbatim
10190 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2576
10191 #, no-wrap
10192 msgid ""
10193 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10194 "\n"
10195 msgstr ""
10196
10197 # type: textblock
10198 #: ../src/guestfs-actions.pod:3841
10199 msgid "See also C<guestfs_mke2journal>."
10200 msgstr ""
10201
10202 # type: textblock
10203 #: ../src/guestfs-actions.pod:3845 ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:3897 ../src/guestfs-actions.pod:3911 ../src/guestfs-actions.pod:3925 ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4167
10204 msgid "(Added in 1.0.68)"
10205 msgstr ""
10206
10207 # type: =head2
10208 #: ../src/guestfs-actions.pod:3847
10209 msgid "guestfs_mke2fs_JL"
10210 msgstr ""
10211
10212 # type: verbatim
10213 #: ../src/guestfs-actions.pod:3849
10214 #, no-wrap
10215 msgid ""
10216 " int\n"
10217 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10218 "                    const char *fstype,\n"
10219 "                    int blocksize,\n"
10220 "                    const char *device,\n"
10221 "                    const char *label);\n"
10222 "\n"
10223 msgstr ""
10224
10225 # type: textblock
10226 #: ../src/guestfs-actions.pod:3856 ../fish/guestfish-actions.pod:2584
10227 msgid ""
10228 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10229 "the journal labeled C<label>."
10230 msgstr ""
10231
10232 # type: textblock
10233 #: ../src/guestfs-actions.pod:3859
10234 msgid "See also C<guestfs_mke2journal_L>."
10235 msgstr ""
10236
10237 # type: =head2
10238 #: ../src/guestfs-actions.pod:3865
10239 msgid "guestfs_mke2fs_JU"
10240 msgstr ""
10241
10242 # type: verbatim
10243 #: ../src/guestfs-actions.pod:3867
10244 #, no-wrap
10245 msgid ""
10246 " int\n"
10247 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10248 "                    const char *fstype,\n"
10249 "                    int blocksize,\n"
10250 "                    const char *device,\n"
10251 "                    const char *uuid);\n"
10252 "\n"
10253 msgstr ""
10254
10255 # type: textblock
10256 #: ../src/guestfs-actions.pod:3874 ../fish/guestfish-actions.pod:2593
10257 msgid ""
10258 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10259 "the journal with UUID C<uuid>."
10260 msgstr ""
10261
10262 # type: textblock
10263 #: ../src/guestfs-actions.pod:3877
10264 msgid "See also C<guestfs_mke2journal_U>."
10265 msgstr ""
10266
10267 # type: =head2
10268 #: ../src/guestfs-actions.pod:3883
10269 msgid "guestfs_mke2journal"
10270 msgstr ""
10271
10272 # type: verbatim
10273 #: ../src/guestfs-actions.pod:3885
10274 #, no-wrap
10275 msgid ""
10276 " int\n"
10277 " guestfs_mke2journal (guestfs_h *g,\n"
10278 "                      int blocksize,\n"
10279 "                      const char *device);\n"
10280 "\n"
10281 msgstr ""
10282
10283 # type: textblock
10284 #: ../src/guestfs-actions.pod:3890 ../fish/guestfish-actions.pod:2602
10285 msgid ""
10286 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10287 "command:"
10288 msgstr ""
10289
10290 # type: verbatim
10291 #: ../src/guestfs-actions.pod:3893 ../fish/guestfish-actions.pod:2605
10292 #, no-wrap
10293 msgid ""
10294 " mke2fs -O journal_dev -b blocksize device\n"
10295 "\n"
10296 msgstr ""
10297
10298 # type: =head2
10299 #: ../src/guestfs-actions.pod:3899
10300 msgid "guestfs_mke2journal_L"
10301 msgstr ""
10302
10303 # type: verbatim
10304 #: ../src/guestfs-actions.pod:3901
10305 #, no-wrap
10306 msgid ""
10307 " int\n"
10308 " guestfs_mke2journal_L (guestfs_h *g,\n"
10309 "                        int blocksize,\n"
10310 "                        const char *label,\n"
10311 "                        const char *device);\n"
10312 "\n"
10313 msgstr ""
10314
10315 # type: textblock
10316 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2611
10317 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10318 msgstr ""
10319
10320 # type: =head2
10321 #: ../src/guestfs-actions.pod:3913
10322 msgid "guestfs_mke2journal_U"
10323 msgstr ""
10324
10325 # type: verbatim
10326 #: ../src/guestfs-actions.pod:3915
10327 #, no-wrap
10328 msgid ""
10329 " int\n"
10330 " guestfs_mke2journal_U (guestfs_h *g,\n"
10331 "                        int blocksize,\n"
10332 "                        const char *uuid,\n"
10333 "                        const char *device);\n"
10334 "\n"
10335 msgstr ""
10336
10337 # type: textblock
10338 #: ../src/guestfs-actions.pod:3921 ../fish/guestfish-actions.pod:2617
10339 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10340 msgstr ""
10341
10342 # type: =head2
10343 #: ../src/guestfs-actions.pod:3927
10344 msgid "guestfs_mkfifo"
10345 msgstr ""
10346
10347 # type: verbatim
10348 #: ../src/guestfs-actions.pod:3929
10349 #, no-wrap
10350 msgid ""
10351 " int\n"
10352 " guestfs_mkfifo (guestfs_h *g,\n"
10353 "                 int mode,\n"
10354 "                 const char *path);\n"
10355 "\n"
10356 msgstr ""
10357
10358 # type: textblock
10359 #: ../src/guestfs-actions.pod:3934
10360 msgid ""
10361 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10362 "is just a convenient wrapper around C<guestfs_mknod>."
10363 msgstr ""
10364
10365 # type: =head2
10366 #: ../src/guestfs-actions.pod:3944
10367 msgid "guestfs_mkfs"
10368 msgstr ""
10369
10370 # type: verbatim
10371 #: ../src/guestfs-actions.pod:3946
10372 #, no-wrap
10373 msgid ""
10374 " int\n"
10375 " guestfs_mkfs (guestfs_h *g,\n"
10376 "               const char *fstype,\n"
10377 "               const char *device);\n"
10378 "\n"
10379 msgstr ""
10380
10381 # type: textblock
10382 #: ../src/guestfs-actions.pod:3951 ../fish/guestfish-actions.pod:2633
10383 msgid ""
10384 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10385 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10386 msgstr ""
10387
10388 # type: =head2
10389 #: ../src/guestfs-actions.pod:3959
10390 msgid "guestfs_mkfs_b"
10391 msgstr ""
10392
10393 # type: verbatim
10394 #: ../src/guestfs-actions.pod:3961
10395 #, no-wrap
10396 msgid ""
10397 " int\n"
10398 " guestfs_mkfs_b (guestfs_h *g,\n"
10399 "                 const char *fstype,\n"
10400 "                 int blocksize,\n"
10401 "                 const char *device);\n"
10402 "\n"
10403 msgstr ""
10404
10405 # type: textblock
10406 #: ../src/guestfs-actions.pod:3967
10407 msgid ""
10408 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10409 "block size of the resulting filesystem.  Supported block sizes depend on the "
10410 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10411 msgstr ""
10412
10413 # type: textblock
10414 #: ../src/guestfs-actions.pod:3972 ../fish/guestfish-actions.pod:2646
10415 msgid ""
10416 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10417 "cluster size."
10418 msgstr ""
10419
10420 # type: =head2
10421 #: ../src/guestfs-actions.pod:3979
10422 msgid "guestfs_mkmountpoint"
10423 msgstr ""
10424
10425 # type: verbatim
10426 #: ../src/guestfs-actions.pod:3981
10427 #, no-wrap
10428 msgid ""
10429 " int\n"
10430 " guestfs_mkmountpoint (guestfs_h *g,\n"
10431 "                       const char *exemptpath);\n"
10432 "\n"
10433 msgstr ""
10434
10435 # type: textblock
10436 #: ../src/guestfs-actions.pod:3985
10437 msgid ""
10438 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10439 "that can be used to create extra mountpoints before mounting the first "
10440 "filesystem."
10441 msgstr ""
10442
10443 # type: textblock
10444 #: ../src/guestfs-actions.pod:3989 ../fish/guestfish-actions.pod:2657
10445 msgid ""
10446 "These calls are I<only> necessary in some very limited circumstances, mainly "
10447 "the case where you want to mount a mix of unrelated and/or read-only "
10448 "filesystems together."
10449 msgstr ""
10450
10451 # type: textblock
10452 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2661
10453 msgid ""
10454 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10455 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10456 "inside that.  You can unpack this as follows in guestfish:"
10457 msgstr ""
10458
10459 # type: verbatim
10460 #: ../src/guestfs-actions.pod:3998 ../fish/guestfish-actions.pod:2666
10461 #, no-wrap
10462 msgid ""
10463 " add-ro Fedora-11-i686-Live.iso\n"
10464 " run\n"
10465 " mkmountpoint /cd\n"
10466 " mkmountpoint /sqsh\n"
10467 " mkmountpoint /ext3fs\n"
10468 " mount /dev/sda /cd\n"
10469 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10470 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10471 "\n"
10472 msgstr ""
10473
10474 # type: textblock
10475 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2675
10476 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10477 msgstr ""
10478
10479 # type: textblock
10480 #: ../src/guestfs-actions.pod:4009
10481 msgid ""
10482 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10483 "may get unexpected errors if you try to mix these calls.  It is safest to "
10484 "manually unmount filesystems and remove mountpoints after use."
10485 msgstr ""
10486
10487 # type: textblock
10488 #: ../src/guestfs-actions.pod:4013
10489 msgid ""
10490 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10491 "first, so for this to work for manual mountpoints, you must ensure that the "
10492 "innermost mountpoints have the longest pathnames, as in the example code "
10493 "above."
10494 msgstr ""
10495
10496 # type: textblock
10497 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2686
10498 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10499 msgstr ""
10500
10501 # type: textblock
10502 #: ../src/guestfs-actions.pod:4020
10503 msgid ""
10504 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10505 "means that C<guestfs_umount_all> is called when the handle is closed which "
10506 "can also trigger these issues."
10507 msgstr ""
10508
10509 # type: textblock
10510 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:5178
10511 msgid "(Added in 1.0.62)"
10512 msgstr ""
10513
10514 # type: =head2
10515 #: ../src/guestfs-actions.pod:4028
10516 msgid "guestfs_mknod"
10517 msgstr ""
10518
10519 # type: verbatim
10520 #: ../src/guestfs-actions.pod:4030
10521 #, no-wrap
10522 msgid ""
10523 " int\n"
10524 " guestfs_mknod (guestfs_h *g,\n"
10525 "                int mode,\n"
10526 "                int devmajor,\n"
10527 "                int devminor,\n"
10528 "                const char *path);\n"
10529 "\n"
10530 msgstr ""
10531
10532 # type: textblock
10533 #: ../src/guestfs-actions.pod:4037 ../fish/guestfish-actions.pod:2696
10534 msgid ""
10535 "This call creates block or character special devices, or named pipes "
10536 "(FIFOs)."
10537 msgstr ""
10538
10539 # type: textblock
10540 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2699
10541 msgid ""
10542 "The C<mode> parameter should be the mode, using the standard constants.  "
10543 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10544 "used when creating block and character special devices."
10545 msgstr ""
10546
10547 # type: textblock
10548 #: ../src/guestfs-actions.pod:4045
10549 msgid ""
10550 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10551 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10552 "regular file).  These constants are available in the standard Linux header "
10553 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10554 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10555 "the appropriate constant for you."
10556 msgstr ""
10557
10558 # type: =head2
10559 #: ../src/guestfs-actions.pod:4059
10560 msgid "guestfs_mknod_b"
10561 msgstr ""
10562
10563 # type: verbatim
10564 #: ../src/guestfs-actions.pod:4061
10565 #, no-wrap
10566 msgid ""
10567 " int\n"
10568 " guestfs_mknod_b (guestfs_h *g,\n"
10569 "                  int mode,\n"
10570 "                  int devmajor,\n"
10571 "                  int devminor,\n"
10572 "                  const char *path);\n"
10573 "\n"
10574 msgstr ""
10575
10576 # type: textblock
10577 #: ../src/guestfs-actions.pod:4068
10578 msgid ""
10579 "This call creates a block device node called C<path> with mode C<mode> and "
10580 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10581 "wrapper around C<guestfs_mknod>."
10582 msgstr ""
10583
10584 # type: =head2
10585 #: ../src/guestfs-actions.pod:4078
10586 msgid "guestfs_mknod_c"
10587 msgstr ""
10588
10589 # type: verbatim
10590 #: ../src/guestfs-actions.pod:4080
10591 #, no-wrap
10592 msgid ""
10593 " int\n"
10594 " guestfs_mknod_c (guestfs_h *g,\n"
10595 "                  int mode,\n"
10596 "                  int devmajor,\n"
10597 "                  int devminor,\n"
10598 "                  const char *path);\n"
10599 "\n"
10600 msgstr ""
10601
10602 # type: textblock
10603 #: ../src/guestfs-actions.pod:4087
10604 msgid ""
10605 "This call creates a char device node called C<path> with mode C<mode> and "
10606 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10607 "wrapper around C<guestfs_mknod>."
10608 msgstr ""
10609
10610 # type: =head2
10611 #: ../src/guestfs-actions.pod:4097
10612 msgid "guestfs_mkswap"
10613 msgstr ""
10614
10615 # type: verbatim
10616 #: ../src/guestfs-actions.pod:4099
10617 #, no-wrap
10618 msgid ""
10619 " int\n"
10620 " guestfs_mkswap (guestfs_h *g,\n"
10621 "                 const char *device);\n"
10622 "\n"
10623 msgstr ""
10624
10625 # type: textblock
10626 #: ../src/guestfs-actions.pod:4103 ../fish/guestfish-actions.pod:2738
10627 msgid "Create a swap partition on C<device>."
10628 msgstr ""
10629
10630 # type: =head2
10631 #: ../src/guestfs-actions.pod:4109
10632 msgid "guestfs_mkswap_L"
10633 msgstr ""
10634
10635 # type: verbatim
10636 #: ../src/guestfs-actions.pod:4111
10637 #, no-wrap
10638 msgid ""
10639 " int\n"
10640 " guestfs_mkswap_L (guestfs_h *g,\n"
10641 "                   const char *label,\n"
10642 "                   const char *device);\n"
10643 "\n"
10644 msgstr ""
10645
10646 # type: textblock
10647 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:2744
10648 msgid "Create a swap partition on C<device> with label C<label>."
10649 msgstr ""
10650
10651 # type: textblock
10652 #: ../src/guestfs-actions.pod:4118 ../fish/guestfish-actions.pod:2746
10653 msgid ""
10654 "Note that you cannot attach a swap label to a block device "
10655 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10656 "the kernel or swap tools."
10657 msgstr ""
10658
10659 # type: =head2
10660 #: ../src/guestfs-actions.pod:4126
10661 msgid "guestfs_mkswap_U"
10662 msgstr ""
10663
10664 # type: verbatim
10665 #: ../src/guestfs-actions.pod:4128
10666 #, no-wrap
10667 msgid ""
10668 " int\n"
10669 " guestfs_mkswap_U (guestfs_h *g,\n"
10670 "                   const char *uuid,\n"
10671 "                   const char *device);\n"
10672 "\n"
10673 msgstr ""
10674
10675 # type: textblock
10676 #: ../src/guestfs-actions.pod:4133 ../fish/guestfish-actions.pod:2754
10677 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10678 msgstr ""
10679
10680 # type: =head2
10681 #: ../src/guestfs-actions.pod:4139
10682 msgid "guestfs_mkswap_file"
10683 msgstr ""
10684
10685 # type: verbatim
10686 #: ../src/guestfs-actions.pod:4141
10687 #, no-wrap
10688 msgid ""
10689 " int\n"
10690 " guestfs_mkswap_file (guestfs_h *g,\n"
10691 "                      const char *path);\n"
10692 "\n"
10693 msgstr ""
10694
10695 # type: textblock
10696 #: ../src/guestfs-actions.pod:4145 ../fish/guestfish-actions.pod:2760
10697 msgid "Create a swap file."
10698 msgstr ""
10699
10700 # type: textblock
10701 #: ../src/guestfs-actions.pod:4147
10702 msgid ""
10703 "This command just writes a swap file signature to an existing file.  To "
10704 "create the file itself, use something like C<guestfs_fallocate>."
10705 msgstr ""
10706
10707 # type: =head2
10708 #: ../src/guestfs-actions.pod:4154
10709 msgid "guestfs_modprobe"
10710 msgstr ""
10711
10712 # type: verbatim
10713 #: ../src/guestfs-actions.pod:4156
10714 #, no-wrap
10715 msgid ""
10716 " int\n"
10717 " guestfs_modprobe (guestfs_h *g,\n"
10718 "                   const char *modulename);\n"
10719 "\n"
10720 msgstr ""
10721
10722 # type: textblock
10723 #: ../src/guestfs-actions.pod:4160 ../fish/guestfish-actions.pod:2769
10724 msgid "This loads a kernel module in the appliance."
10725 msgstr ""
10726
10727 # type: textblock
10728 #: ../src/guestfs-actions.pod:4162 ../fish/guestfish-actions.pod:2771
10729 msgid ""
10730 "The kernel module must have been whitelisted when libguestfs was built (see "
10731 "C<appliance/kmod.whitelist.in> in the source)."
10732 msgstr ""
10733
10734 # type: =head2
10735 #: ../src/guestfs-actions.pod:4169
10736 msgid "guestfs_mount"
10737 msgstr ""
10738
10739 # type: verbatim
10740 #: ../src/guestfs-actions.pod:4171
10741 #, no-wrap
10742 msgid ""
10743 " int\n"
10744 " guestfs_mount (guestfs_h *g,\n"
10745 "                const char *device,\n"
10746 "                const char *mountpoint);\n"
10747 "\n"
10748 msgstr ""
10749
10750 # type: textblock
10751 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:2778
10752 msgid ""
10753 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10754 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10755 "those block devices contain partitions, they will have the usual names "
10756 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10757 msgstr ""
10758
10759 # type: textblock
10760 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2784
10761 msgid ""
10762 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10763 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10764 "mounted on directories which already exist."
10765 msgstr ""
10766
10767 # type: textblock
10768 #: ../src/guestfs-actions.pod:4187 ../fish/guestfish-actions.pod:2789
10769 msgid ""
10770 "The mounted filesystem is writable, if we have sufficient permissions on the "
10771 "underlying device."
10772 msgstr ""
10773
10774 # type: textblock
10775 #: ../src/guestfs-actions.pod:4190
10776 msgid ""
10777 "B<Important note:> When you use this call, the filesystem options C<sync> "
10778 "and C<noatime> are set implicitly.  This was originally done because we "
10779 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10780 "very large negative performance impact and negligible effect on "
10781 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10782 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10783 "(use an empty string for the first parameter if you don't want any options)."
10784 msgstr ""
10785
10786 # type: =head2
10787 #: ../src/guestfs-actions.pod:4204
10788 msgid "guestfs_mount_loop"
10789 msgstr ""
10790
10791 # type: verbatim
10792 #: ../src/guestfs-actions.pod:4206
10793 #, no-wrap
10794 msgid ""
10795 " int\n"
10796 " guestfs_mount_loop (guestfs_h *g,\n"
10797 "                     const char *file,\n"
10798 "                     const char *mountpoint);\n"
10799 "\n"
10800 msgstr ""
10801
10802 # type: textblock
10803 #: ../src/guestfs-actions.pod:4211 ../fish/guestfish-actions.pod:2806
10804 msgid ""
10805 "This command lets you mount C<file> (a filesystem image in a file) on a "
10806 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10807 "mountpoint>."
10808 msgstr ""
10809
10810 # type: =head2
10811 #: ../src/guestfs-actions.pod:4219
10812 msgid "guestfs_mount_options"
10813 msgstr ""
10814
10815 # type: verbatim
10816 #: ../src/guestfs-actions.pod:4221
10817 #, no-wrap
10818 msgid ""
10819 " int\n"
10820 " guestfs_mount_options (guestfs_h *g,\n"
10821 "                        const char *options,\n"
10822 "                        const char *device,\n"
10823 "                        const char *mountpoint);\n"
10824 "\n"
10825 msgstr ""
10826
10827 # type: textblock
10828 #: ../src/guestfs-actions.pod:4227
10829 msgid ""
10830 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10831 "the mount options as for the L<mount(8)> I<-o> flag."
10832 msgstr ""
10833
10834 # type: textblock
10835 #: ../src/guestfs-actions.pod:4231 ../fish/guestfish-actions.pod:2818
10836 msgid ""
10837 "If the C<options> parameter is an empty string, then no options are passed "
10838 "(all options default to whatever the filesystem uses)."
10839 msgstr ""
10840
10841 # type: textblock
10842 #: ../src/guestfs-actions.pod:4237 ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4268
10843 msgid "(Added in 1.0.10)"
10844 msgstr ""
10845
10846 # type: =head2
10847 #: ../src/guestfs-actions.pod:4239
10848 msgid "guestfs_mount_ro"
10849 msgstr ""
10850
10851 # type: verbatim
10852 #: ../src/guestfs-actions.pod:4241
10853 #, no-wrap
10854 msgid ""
10855 " int\n"
10856 " guestfs_mount_ro (guestfs_h *g,\n"
10857 "                   const char *device,\n"
10858 "                   const char *mountpoint);\n"
10859 "\n"
10860 msgstr ""
10861
10862 # type: textblock
10863 #: ../src/guestfs-actions.pod:4246
10864 msgid ""
10865 "This is the same as the C<guestfs_mount> command, but it mounts the "
10866 "filesystem with the read-only (I<-o ro>) flag."
10867 msgstr ""
10868
10869 # type: =head2
10870 #: ../src/guestfs-actions.pod:4253
10871 msgid "guestfs_mount_vfs"
10872 msgstr ""
10873
10874 # type: verbatim
10875 #: ../src/guestfs-actions.pod:4255
10876 #, no-wrap
10877 msgid ""
10878 " int\n"
10879 " guestfs_mount_vfs (guestfs_h *g,\n"
10880 "                    const char *options,\n"
10881 "                    const char *vfstype,\n"
10882 "                    const char *device,\n"
10883 "                    const char *mountpoint);\n"
10884 "\n"
10885 msgstr ""
10886
10887 # type: textblock
10888 #: ../src/guestfs-actions.pod:4262
10889 msgid ""
10890 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10891 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
10892 "I<-t> flags."
10893 msgstr ""
10894
10895 # type: =head2
10896 #: ../src/guestfs-actions.pod:4270
10897 msgid "guestfs_mountpoints"
10898 msgstr ""
10899
10900 # type: verbatim
10901 #: ../src/guestfs-actions.pod:4272
10902 #, no-wrap
10903 msgid ""
10904 " char **\n"
10905 " guestfs_mountpoints (guestfs_h *g);\n"
10906 "\n"
10907 msgstr ""
10908
10909 # type: textblock
10910 #: ../src/guestfs-actions.pod:4275
10911 msgid ""
10912 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10913 "devices.  This one returns a hash table (map) of device name to directory "
10914 "where the device is mounted."
10915 msgstr ""
10916
10917 # type: =head2
10918 #: ../src/guestfs-actions.pod:4287
10919 msgid "guestfs_mounts"
10920 msgstr ""
10921
10922 # type: verbatim
10923 #: ../src/guestfs-actions.pod:4289
10924 #, no-wrap
10925 msgid ""
10926 " char **\n"
10927 " guestfs_mounts (guestfs_h *g);\n"
10928 "\n"
10929 msgstr ""
10930
10931 # type: textblock
10932 #: ../src/guestfs-actions.pod:4292 ../fish/guestfish-actions.pod:2849
10933 msgid ""
10934 "This returns the list of currently mounted filesystems.  It returns the list "
10935 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10936 msgstr ""
10937
10938 # type: textblock
10939 #: ../src/guestfs-actions.pod:4295 ../fish/guestfish-actions.pod:2852
10940 msgid "Some internal mounts are not shown."
10941 msgstr ""
10942
10943 # type: textblock
10944 #: ../src/guestfs-actions.pod:4297
10945 msgid "See also: C<guestfs_mountpoints>"
10946 msgstr ""
10947
10948 # type: =head2
10949 #: ../src/guestfs-actions.pod:4305
10950 msgid "guestfs_mv"
10951 msgstr ""
10952
10953 # type: verbatim
10954 #: ../src/guestfs-actions.pod:4307
10955 #, no-wrap
10956 msgid ""
10957 " int\n"
10958 " guestfs_mv (guestfs_h *g,\n"
10959 "             const char *src,\n"
10960 "             const char *dest);\n"
10961 "\n"
10962 msgstr ""
10963
10964 # type: textblock
10965 #: ../src/guestfs-actions.pod:4312 ../fish/guestfish-actions.pod:2860
10966 msgid ""
10967 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10968 "destination filename or destination directory."
10969 msgstr ""
10970
10971 # type: =head2
10972 #: ../src/guestfs-actions.pod:4319
10973 msgid "guestfs_ntfs_3g_probe"
10974 msgstr ""
10975
10976 # type: verbatim
10977 #: ../src/guestfs-actions.pod:4321
10978 #, no-wrap
10979 msgid ""
10980 " int\n"
10981 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10982 "                        int rw,\n"
10983 "                        const char *device);\n"
10984 "\n"
10985 msgstr ""
10986
10987 # type: textblock
10988 #: ../src/guestfs-actions.pod:4326 ../fish/guestfish-actions.pod:2867
10989 msgid ""
10990 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10991 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10992 "read-write, and some cannot be mounted at all)."
10993 msgstr ""
10994
10995 # type: textblock
10996 #: ../src/guestfs-actions.pod:4330 ../fish/guestfish-actions.pod:2871
10997 msgid ""
10998 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10999 "can be mounted read-write.  Set it to false if you want to test if the "
11000 "volume can be mounted read-only."
11001 msgstr ""
11002
11003 # type: textblock
11004 #: ../src/guestfs-actions.pod:4334 ../fish/guestfish-actions.pod:2875
11005 msgid ""
11006 "The return value is an integer which C<0> if the operation would succeed, or "
11007 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11008 msgstr ""
11009
11010 # type: textblock
11011 #: ../src/guestfs-actions.pod:4340
11012 msgid "(Added in 1.0.43)"
11013 msgstr ""
11014
11015 # type: =head2
11016 #: ../src/guestfs-actions.pod:4342
11017 msgid "guestfs_ntfsresize"
11018 msgstr ""
11019
11020 # type: verbatim
11021 #: ../src/guestfs-actions.pod:4344
11022 #, no-wrap
11023 msgid ""
11024 " int\n"
11025 " guestfs_ntfsresize (guestfs_h *g,\n"
11026 "                     const char *device);\n"
11027 "\n"
11028 msgstr ""
11029
11030 # type: textblock
11031 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2883
11032 msgid ""
11033 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11034 "size of the underlying device.  See also L<ntfsresize(8)>."
11035 msgstr ""
11036
11037 # type: =head2
11038 #: ../src/guestfs-actions.pod:4356
11039 msgid "guestfs_ntfsresize_size"
11040 msgstr ""
11041
11042 # type: verbatim
11043 #: ../src/guestfs-actions.pod:4358
11044 #, no-wrap
11045 msgid ""
11046 " int\n"
11047 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11048 "                          const char *device,\n"
11049 "                          int64_t size);\n"
11050 "\n"
11051 msgstr ""
11052
11053 # type: textblock
11054 #: ../src/guestfs-actions.pod:4363
11055 msgid ""
11056 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11057 "to specify the new size (in bytes) explicitly."
11058 msgstr ""
11059
11060 # type: textblock
11061 #: ../src/guestfs-actions.pod:4368 ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4877 ../src/guestfs-actions.pod:5126
11062 msgid "(Added in 1.3.14)"
11063 msgstr ""
11064
11065 # type: =head2
11066 #: ../src/guestfs-actions.pod:4370
11067 msgid "guestfs_part_add"
11068 msgstr ""
11069
11070 # type: verbatim
11071 #: ../src/guestfs-actions.pod:4372
11072 #, no-wrap
11073 msgid ""
11074 " int\n"
11075 " guestfs_part_add (guestfs_h *g,\n"
11076 "                   const char *device,\n"
11077 "                   const char *prlogex,\n"
11078 "                   int64_t startsect,\n"
11079 "                   int64_t endsect);\n"
11080 "\n"
11081 msgstr ""
11082
11083 # type: textblock
11084 #: ../src/guestfs-actions.pod:4379
11085 msgid ""
11086 "This command adds a partition to C<device>.  If there is no partition table "
11087 "on the device, call C<guestfs_part_init> first."
11088 msgstr ""
11089
11090 # type: textblock
11091 #: ../src/guestfs-actions.pod:4382 ../fish/guestfish-actions.pod:2901
11092 msgid ""
11093 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11094 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11095 "C<logical>) and C<e> (or C<extended>) partition types."
11096 msgstr ""
11097
11098 # type: textblock
11099 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:2906
11100 msgid ""
11101 "C<startsect> and C<endsect> are the start and end of the partition in "
11102 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11103 "from the end of the disk (C<-1> is the last sector)."
11104 msgstr ""
11105
11106 # type: textblock
11107 #: ../src/guestfs-actions.pod:4391
11108 msgid ""
11109 "Creating a partition which covers the whole disk is not so easy.  Use "
11110 "C<guestfs_part_disk> to do that."
11111 msgstr ""
11112
11113 # type: textblock
11114 #: ../src/guestfs-actions.pod:4396 ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4565 ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4622 ../src/guestfs-actions.pod:4662
11115 msgid "(Added in 1.0.78)"
11116 msgstr ""
11117
11118 # type: =head2
11119 #: ../src/guestfs-actions.pod:4398
11120 msgid "guestfs_part_del"
11121 msgstr ""
11122
11123 # type: verbatim
11124 #: ../src/guestfs-actions.pod:4400
11125 #, no-wrap
11126 msgid ""
11127 " int\n"
11128 " guestfs_part_del (guestfs_h *g,\n"
11129 "                   const char *device,\n"
11130 "                   int partnum);\n"
11131 "\n"
11132 msgstr ""
11133
11134 # type: textblock
11135 #: ../src/guestfs-actions.pod:4405 ../fish/guestfish-actions.pod:2917
11136 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11137 msgstr ""
11138
11139 # type: textblock
11140 #: ../src/guestfs-actions.pod:4407 ../fish/guestfish-actions.pod:2919
11141 msgid ""
11142 "Note that in the case of MBR partitioning, deleting an extended partition "
11143 "also deletes any logical partitions it contains."
11144 msgstr ""
11145
11146 # type: =head2
11147 #: ../src/guestfs-actions.pod:4415
11148 msgid "guestfs_part_disk"
11149 msgstr ""
11150
11151 # type: verbatim
11152 #: ../src/guestfs-actions.pod:4417
11153 #, no-wrap
11154 msgid ""
11155 " int\n"
11156 " guestfs_part_disk (guestfs_h *g,\n"
11157 "                    const char *device,\n"
11158 "                    const char *parttype);\n"
11159 "\n"
11160 msgstr ""
11161
11162 # type: textblock
11163 #: ../src/guestfs-actions.pod:4422
11164 msgid ""
11165 "This command is simply a combination of C<guestfs_part_init> followed by "
11166 "C<guestfs_part_add> to create a single primary partition covering the whole "
11167 "disk."
11168 msgstr ""
11169
11170 # type: textblock
11171 #: ../src/guestfs-actions.pod:4426
11172 msgid ""
11173 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11174 "possible values are described in C<guestfs_part_init>."
11175 msgstr ""
11176
11177 # type: =head2
11178 #: ../src/guestfs-actions.pod:4436
11179 msgid "guestfs_part_get_bootable"
11180 msgstr ""
11181
11182 # type: verbatim
11183 #: ../src/guestfs-actions.pod:4438
11184 #, no-wrap
11185 msgid ""
11186 " int\n"
11187 " guestfs_part_get_bootable (guestfs_h *g,\n"
11188 "                            const char *device,\n"
11189 "                            int partnum);\n"
11190 "\n"
11191 msgstr ""
11192
11193 # type: textblock
11194 #: ../src/guestfs-actions.pod:4443 ../fish/guestfish-actions.pod:2941
11195 msgid ""
11196 "This command returns true if the partition C<partnum> on C<device> has the "
11197 "bootable flag set."
11198 msgstr ""
11199
11200 # type: textblock
11201 #: ../src/guestfs-actions.pod:4446
11202 msgid "See also C<guestfs_part_set_bootable>."
11203 msgstr ""
11204
11205 # type: =head2
11206 #: ../src/guestfs-actions.pod:4452
11207 msgid "guestfs_part_get_mbr_id"
11208 msgstr ""
11209
11210 # type: verbatim
11211 #: ../src/guestfs-actions.pod:4454
11212 #, no-wrap
11213 msgid ""
11214 " int\n"
11215 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11216 "                          const char *device,\n"
11217 "                          int partnum);\n"
11218 "\n"
11219 msgstr ""
11220
11221 # type: textblock
11222 #: ../src/guestfs-actions.pod:4459 ../fish/guestfish-actions.pod:2950
11223 msgid ""
11224 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11225 "partition C<partnum>."
11226 msgstr ""
11227
11228 # type: textblock
11229 #: ../src/guestfs-actions.pod:4462 ../src/guestfs-actions.pod:4638
11230 msgid ""
11231 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11232 "undefined results for other partition table types (see "
11233 "C<guestfs_part_get_parttype>)."
11234 msgstr ""
11235
11236 # type: =head2
11237 #: ../src/guestfs-actions.pod:4470
11238 msgid "guestfs_part_get_parttype"
11239 msgstr ""
11240
11241 # type: verbatim
11242 #: ../src/guestfs-actions.pod:4472
11243 #, no-wrap
11244 msgid ""
11245 " char *\n"
11246 " guestfs_part_get_parttype (guestfs_h *g,\n"
11247 "                            const char *device);\n"
11248 "\n"
11249 msgstr ""
11250
11251 # type: textblock
11252 #: ../src/guestfs-actions.pod:4476 ../fish/guestfish-actions.pod:2961
11253 msgid ""
11254 "This command examines the partition table on C<device> and returns the "
11255 "partition table type (format) being used."
11256 msgstr ""
11257
11258 # type: textblock
11259 #: ../src/guestfs-actions.pod:4479
11260 msgid ""
11261 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11262 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11263 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11264 msgstr ""
11265
11266 # type: =head2
11267 #: ../src/guestfs-actions.pod:4489
11268 msgid "guestfs_part_init"
11269 msgstr ""
11270
11271 # type: verbatim
11272 #: ../src/guestfs-actions.pod:4491
11273 #, no-wrap
11274 msgid ""
11275 " int\n"
11276 " guestfs_part_init (guestfs_h *g,\n"
11277 "                    const char *device,\n"
11278 "                    const char *parttype);\n"
11279 "\n"
11280 msgstr ""
11281
11282 # type: textblock
11283 #: ../src/guestfs-actions.pod:4496 ../fish/guestfish-actions.pod:2973
11284 msgid ""
11285 "This creates an empty partition table on C<device> of one of the partition "
11286 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11287 "(for large disks)."
11288 msgstr ""
11289
11290 # type: textblock
11291 #: ../src/guestfs-actions.pod:4500
11292 msgid ""
11293 "Initially there are no partitions.  Following this, you should call "
11294 "C<guestfs_part_add> for each partition required."
11295 msgstr ""
11296
11297 # type: textblock
11298 #: ../src/guestfs-actions.pod:4503 ../fish/guestfish-actions.pod:2980
11299 msgid "Possible values for C<parttype> are:"
11300 msgstr ""
11301
11302 # type: =item
11303 #: ../src/guestfs-actions.pod:4507 ../fish/guestfish-actions.pod:2984
11304 msgid "B<efi> | B<gpt>"
11305 msgstr ""
11306
11307 # type: textblock
11308 #: ../src/guestfs-actions.pod:4509 ../fish/guestfish-actions.pod:2986
11309 msgid "Intel EFI / GPT partition table."
11310 msgstr ""
11311
11312 # type: textblock
11313 #: ../src/guestfs-actions.pod:4511 ../fish/guestfish-actions.pod:2988
11314 msgid ""
11315 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11316 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11317 "the C<mbr> format."
11318 msgstr ""
11319
11320 # type: =item
11321 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:2992
11322 msgid "B<mbr> | B<msdos>"
11323 msgstr ""
11324
11325 # type: textblock
11326 #: ../src/guestfs-actions.pod:4517 ../fish/guestfish-actions.pod:2994
11327 msgid ""
11328 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11329 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11330 "TB.  For large disks we recommend using C<gpt>."
11331 msgstr ""
11332
11333 # type: textblock
11334 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3001
11335 msgid "Other partition table types that may work but are not supported include:"
11336 msgstr ""
11337
11338 # type: =item
11339 #: ../src/guestfs-actions.pod:4529 ../fish/guestfish-actions.pod:3006
11340 msgid "B<aix>"
11341 msgstr ""
11342
11343 # type: textblock
11344 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3008
11345 msgid "AIX disk labels."
11346 msgstr ""
11347
11348 # type: =item
11349 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3010
11350 msgid "B<amiga> | B<rdb>"
11351 msgstr ""
11352
11353 # type: textblock
11354 #: ../src/guestfs-actions.pod:4535 ../fish/guestfish-actions.pod:3012
11355 msgid "Amiga \"Rigid Disk Block\" format."
11356 msgstr ""
11357
11358 # type: =item
11359 #: ../src/guestfs-actions.pod:4537 ../fish/guestfish-actions.pod:3014
11360 msgid "B<bsd>"
11361 msgstr ""
11362
11363 # type: textblock
11364 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3016
11365 msgid "BSD disk labels."
11366 msgstr ""
11367
11368 # type: =item
11369 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3018
11370 msgid "B<dasd>"
11371 msgstr ""
11372
11373 # type: textblock
11374 #: ../src/guestfs-actions.pod:4543 ../fish/guestfish-actions.pod:3020
11375 msgid "DASD, used on IBM mainframes."
11376 msgstr ""
11377
11378 # type: =item
11379 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3022
11380 msgid "B<dvh>"
11381 msgstr ""
11382
11383 # type: textblock
11384 #: ../src/guestfs-actions.pod:4547 ../fish/guestfish-actions.pod:3024
11385 msgid "MIPS/SGI volumes."
11386 msgstr ""
11387
11388 # type: =item
11389 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3026
11390 msgid "B<mac>"
11391 msgstr ""
11392
11393 # type: textblock
11394 #: ../src/guestfs-actions.pod:4551 ../fish/guestfish-actions.pod:3028
11395 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11396 msgstr ""
11397
11398 # type: =item
11399 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3030
11400 msgid "B<pc98>"
11401 msgstr ""
11402
11403 # type: textblock
11404 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3032
11405 msgid "NEC PC-98 format, common in Japan apparently."
11406 msgstr ""
11407
11408 # type: =item
11409 #: ../src/guestfs-actions.pod:4557 ../fish/guestfish-actions.pod:3034
11410 msgid "B<sun>"
11411 msgstr ""
11412
11413 # type: textblock
11414 #: ../src/guestfs-actions.pod:4559 ../fish/guestfish-actions.pod:3036
11415 msgid "Sun disk labels."
11416 msgstr ""
11417
11418 # type: =head2
11419 #: ../src/guestfs-actions.pod:4567
11420 msgid "guestfs_part_list"
11421 msgstr ""
11422
11423 # type: verbatim
11424 #: ../src/guestfs-actions.pod:4569
11425 #, no-wrap
11426 msgid ""
11427 " struct guestfs_partition_list *\n"
11428 " guestfs_part_list (guestfs_h *g,\n"
11429 "                    const char *device);\n"
11430 "\n"
11431 msgstr ""
11432
11433 # type: textblock
11434 #: ../src/guestfs-actions.pod:4573 ../fish/guestfish-actions.pod:3044
11435 msgid ""
11436 "This command parses the partition table on C<device> and returns the list of "
11437 "partitions found."
11438 msgstr ""
11439
11440 # type: textblock
11441 #: ../src/guestfs-actions.pod:4576 ../fish/guestfish-actions.pod:3047
11442 msgid "The fields in the returned structure are:"
11443 msgstr ""
11444
11445 # type: =item
11446 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3051
11447 msgid "B<part_num>"
11448 msgstr ""
11449
11450 # type: textblock
11451 #: ../src/guestfs-actions.pod:4582 ../fish/guestfish-actions.pod:3053
11452 msgid "Partition number, counting from 1."
11453 msgstr ""
11454
11455 # type: =item
11456 #: ../src/guestfs-actions.pod:4584 ../fish/guestfish-actions.pod:3055
11457 msgid "B<part_start>"
11458 msgstr ""
11459
11460 # type: textblock
11461 #: ../src/guestfs-actions.pod:4586
11462 msgid ""
11463 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11464 "the device's sector size, see C<guestfs_blockdev_getss>."
11465 msgstr ""
11466
11467 # type: =item
11468 #: ../src/guestfs-actions.pod:4589 ../fish/guestfish-actions.pod:3060
11469 msgid "B<part_end>"
11470 msgstr ""
11471
11472 # type: textblock
11473 #: ../src/guestfs-actions.pod:4591 ../fish/guestfish-actions.pod:3062
11474 msgid "End of the partition in bytes."
11475 msgstr ""
11476
11477 # type: =item
11478 #: ../src/guestfs-actions.pod:4593 ../fish/guestfish-actions.pod:3064
11479 msgid "B<part_size>"
11480 msgstr ""
11481
11482 # type: textblock
11483 #: ../src/guestfs-actions.pod:4595 ../fish/guestfish-actions.pod:3066
11484 msgid "Size of the partition in bytes."
11485 msgstr ""
11486
11487 # type: textblock
11488 #: ../src/guestfs-actions.pod:4599
11489 msgid ""
11490 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
11491 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
11492 "use>."
11493 msgstr ""
11494
11495 # type: =head2
11496 #: ../src/guestfs-actions.pod:4605
11497 msgid "guestfs_part_set_bootable"
11498 msgstr ""
11499
11500 # type: verbatim
11501 #: ../src/guestfs-actions.pod:4607
11502 #, no-wrap
11503 msgid ""
11504 " int\n"
11505 " guestfs_part_set_bootable (guestfs_h *g,\n"
11506 "                            const char *device,\n"
11507 "                            int partnum,\n"
11508 "                            int bootable);\n"
11509 "\n"
11510 msgstr ""
11511
11512 # type: textblock
11513 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3074
11514 msgid ""
11515 "This sets the bootable flag on partition numbered C<partnum> on device "
11516 "C<device>.  Note that partitions are numbered from 1."
11517 msgstr ""
11518
11519 # type: textblock
11520 #: ../src/guestfs-actions.pod:4616 ../fish/guestfish-actions.pod:3077
11521 msgid ""
11522 "The bootable flag is used by some operating systems (notably Windows) to "
11523 "determine which partition to boot from.  It is by no means universally "
11524 "recognized."
11525 msgstr ""
11526
11527 # type: =head2
11528 #: ../src/guestfs-actions.pod:4624
11529 msgid "guestfs_part_set_mbr_id"
11530 msgstr ""
11531
11532 # type: verbatim
11533 #: ../src/guestfs-actions.pod:4626
11534 #, no-wrap
11535 msgid ""
11536 " int\n"
11537 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
11538 "                          const char *device,\n"
11539 "                          int partnum,\n"
11540 "                          int idbyte);\n"
11541 "\n"
11542 msgstr ""
11543
11544 # type: textblock
11545 #: ../src/guestfs-actions.pod:4632 ../fish/guestfish-actions.pod:3085
11546 msgid ""
11547 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11548 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11549 "documentation are in fact hexadecimal numbers, but usually documented "
11550 "without any leading \"0x\" which might be confusing."
11551 msgstr ""
11552
11553 # type: =head2
11554 #: ../src/guestfs-actions.pod:4646
11555 msgid "guestfs_part_set_name"
11556 msgstr ""
11557
11558 # type: verbatim
11559 #: ../src/guestfs-actions.pod:4648
11560 #, no-wrap
11561 msgid ""
11562 " int\n"
11563 " guestfs_part_set_name (guestfs_h *g,\n"
11564 "                        const char *device,\n"
11565 "                        int partnum,\n"
11566 "                        const char *name);\n"
11567 "\n"
11568 msgstr ""
11569
11570 # type: textblock
11571 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3099
11572 msgid ""
11573 "This sets the partition name on partition numbered C<partnum> on device "
11574 "C<device>.  Note that partitions are numbered from 1."
11575 msgstr ""
11576
11577 # type: textblock
11578 #: ../src/guestfs-actions.pod:4657 ../fish/guestfish-actions.pod:3102
11579 msgid ""
11580 "The partition name can only be set on certain types of partition table.  "
11581 "This works on C<gpt> but not on C<mbr> partitions."
11582 msgstr ""
11583
11584 # type: =head2
11585 #: ../src/guestfs-actions.pod:4664
11586 msgid "guestfs_part_to_dev"
11587 msgstr ""
11588
11589 # type: verbatim
11590 #: ../src/guestfs-actions.pod:4666
11591 #, no-wrap
11592 msgid ""
11593 " char *\n"
11594 " guestfs_part_to_dev (guestfs_h *g,\n"
11595 "                      const char *partition);\n"
11596 "\n"
11597 msgstr ""
11598
11599 # type: textblock
11600 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3109
11601 msgid ""
11602 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11603 "partition number, returning the device name (eg. \"/dev/sdb\")."
11604 msgstr ""
11605
11606 # type: textblock
11607 #: ../src/guestfs-actions.pod:4674
11608 msgid ""
11609 "The named partition must exist, for example as a string returned from "
11610 "C<guestfs_list_partitions>."
11611 msgstr ""
11612
11613 # type: =head2
11614 #: ../src/guestfs-actions.pod:4682
11615 msgid "guestfs_ping_daemon"
11616 msgstr ""
11617
11618 # type: verbatim
11619 #: ../src/guestfs-actions.pod:4684
11620 #, no-wrap
11621 msgid ""
11622 " int\n"
11623 " guestfs_ping_daemon (guestfs_h *g);\n"
11624 "\n"
11625 msgstr ""
11626
11627 # type: textblock
11628 #: ../src/guestfs-actions.pod:4687 ../fish/guestfish-actions.pod:3120
11629 msgid ""
11630 "This is a test probe into the guestfs daemon running inside the qemu "
11631 "subprocess.  Calling this function checks that the daemon responds to the "
11632 "ping message, without affecting the daemon or attached block device(s) in "
11633 "any other way."
11634 msgstr ""
11635
11636 # type: =head2
11637 #: ../src/guestfs-actions.pod:4696
11638 msgid "guestfs_pread"
11639 msgstr ""
11640
11641 # type: verbatim
11642 #: ../src/guestfs-actions.pod:4698
11643 #, no-wrap
11644 msgid ""
11645 " char *\n"
11646 " guestfs_pread (guestfs_h *g,\n"
11647 "                const char *path,\n"
11648 "                int count,\n"
11649 "                int64_t offset,\n"
11650 "                size_t *size_r);\n"
11651 "\n"
11652 msgstr ""
11653
11654 # type: textblock
11655 #: ../src/guestfs-actions.pod:4705 ../fish/guestfish-actions.pod:3129
11656 msgid ""
11657 "This command lets you read part of a file.  It reads C<count> bytes of the "
11658 "file, starting at C<offset>, from file C<path>."
11659 msgstr ""
11660
11661 # type: textblock
11662 #: ../src/guestfs-actions.pod:4708 ../src/guestfs-actions.pod:4734 ../fish/guestfish-actions.pod:3132 ../fish/guestfish-actions.pod:3147
11663 msgid ""
11664 "This may read fewer bytes than requested.  For further details see the "
11665 "L<pread(2)> system call."
11666 msgstr ""
11667
11668 # type: textblock
11669 #: ../src/guestfs-actions.pod:4711
11670 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11671 msgstr ""
11672
11673 # type: =head2
11674 #: ../src/guestfs-actions.pod:4722
11675 msgid "guestfs_pread_device"
11676 msgstr ""
11677
11678 # type: verbatim
11679 #: ../src/guestfs-actions.pod:4724
11680 #, no-wrap
11681 msgid ""
11682 " char *\n"
11683 " guestfs_pread_device (guestfs_h *g,\n"
11684 "                       const char *device,\n"
11685 "                       int count,\n"
11686 "                       int64_t offset,\n"
11687 "                       size_t *size_r);\n"
11688 "\n"
11689 msgstr ""
11690
11691 # type: textblock
11692 #: ../src/guestfs-actions.pod:4731 ../fish/guestfish-actions.pod:3144
11693 msgid ""
11694 "This command lets you read part of a file.  It reads C<count> bytes of "
11695 "C<device>, starting at C<offset>."
11696 msgstr ""
11697
11698 # type: textblock
11699 #: ../src/guestfs-actions.pod:4737
11700 msgid "See also C<guestfs_pread>."
11701 msgstr ""
11702
11703 # type: textblock
11704 #: ../src/guestfs-actions.pod:4746
11705 msgid "(Added in 1.5.21)"
11706 msgstr ""
11707
11708 # type: =head2
11709 #: ../src/guestfs-actions.pod:4748
11710 msgid "guestfs_pvcreate"
11711 msgstr ""
11712
11713 # type: verbatim
11714 #: ../src/guestfs-actions.pod:4750
11715 #, no-wrap
11716 msgid ""
11717 " int\n"
11718 " guestfs_pvcreate (guestfs_h *g,\n"
11719 "                   const char *device);\n"
11720 "\n"
11721 msgstr ""
11722
11723 # type: textblock
11724 #: ../src/guestfs-actions.pod:4754 ../fish/guestfish-actions.pod:3159
11725 msgid ""
11726 "This creates an LVM physical volume on the named C<device>, where C<device> "
11727 "should usually be a partition name such as C</dev/sda1>."
11728 msgstr ""
11729
11730 # type: =head2
11731 #: ../src/guestfs-actions.pod:4762
11732 msgid "guestfs_pvremove"
11733 msgstr ""
11734
11735 # type: verbatim
11736 #: ../src/guestfs-actions.pod:4764
11737 #, no-wrap
11738 msgid ""
11739 " int\n"
11740 " guestfs_pvremove (guestfs_h *g,\n"
11741 "                   const char *device);\n"
11742 "\n"
11743 msgstr ""
11744
11745 # type: textblock
11746 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3167
11747 msgid ""
11748 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11749 "it."
11750 msgstr ""
11751
11752 # type: textblock
11753 #: ../src/guestfs-actions.pod:4771 ../fish/guestfish-actions.pod:3170
11754 msgid ""
11755 "The implementation uses the C<pvremove> command which refuses to wipe "
11756 "physical volumes that contain any volume groups, so you have to remove those "
11757 "first."
11758 msgstr ""
11759
11760 # type: =head2
11761 #: ../src/guestfs-actions.pod:4779
11762 msgid "guestfs_pvresize"
11763 msgstr ""
11764
11765 # type: verbatim
11766 #: ../src/guestfs-actions.pod:4781
11767 #, no-wrap
11768 msgid ""
11769 " int\n"
11770 " guestfs_pvresize (guestfs_h *g,\n"
11771 "                   const char *device);\n"
11772 "\n"
11773 msgstr ""
11774
11775 # type: textblock
11776 #: ../src/guestfs-actions.pod:4785 ../fish/guestfish-actions.pod:3178
11777 msgid ""
11778 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11779 "the new size of the underlying device."
11780 msgstr ""
11781
11782 # type: =head2
11783 #: ../src/guestfs-actions.pod:4792
11784 msgid "guestfs_pvresize_size"
11785 msgstr ""
11786
11787 # type: verbatim
11788 #: ../src/guestfs-actions.pod:4794
11789 #, no-wrap
11790 msgid ""
11791 " int\n"
11792 " guestfs_pvresize_size (guestfs_h *g,\n"
11793 "                        const char *device,\n"
11794 "                        int64_t size);\n"
11795 "\n"
11796 msgstr ""
11797
11798 # type: textblock
11799 #: ../src/guestfs-actions.pod:4799
11800 msgid ""
11801 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11802 "specify the new size (in bytes) explicitly."
11803 msgstr ""
11804
11805 # type: =head2
11806 #: ../src/guestfs-actions.pod:4806
11807 msgid "guestfs_pvs"
11808 msgstr ""
11809
11810 # type: verbatim
11811 #: ../src/guestfs-actions.pod:4808
11812 #, no-wrap
11813 msgid ""
11814 " char **\n"
11815 " guestfs_pvs (guestfs_h *g);\n"
11816 "\n"
11817 msgstr ""
11818
11819 # type: textblock
11820 #: ../src/guestfs-actions.pod:4811 ../fish/guestfish-actions.pod:3192
11821 msgid ""
11822 "List all the physical volumes detected.  This is the equivalent of the "
11823 "L<pvs(8)> command."
11824 msgstr ""
11825
11826 # type: textblock
11827 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3195
11828 msgid ""
11829 "This returns a list of just the device names that contain PVs "
11830 "(eg. C</dev/sda2>)."
11831 msgstr ""
11832
11833 # type: textblock
11834 #: ../src/guestfs-actions.pod:4817
11835 msgid "See also C<guestfs_pvs_full>."
11836 msgstr ""
11837
11838 # type: =head2
11839 #: ../src/guestfs-actions.pod:4825
11840 msgid "guestfs_pvs_full"
11841 msgstr ""
11842
11843 # type: verbatim
11844 #: ../src/guestfs-actions.pod:4827
11845 #, no-wrap
11846 msgid ""
11847 " struct guestfs_lvm_pv_list *\n"
11848 " guestfs_pvs_full (guestfs_h *g);\n"
11849 "\n"
11850 msgstr ""
11851
11852 # type: textblock
11853 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3204
11854 msgid ""
11855 "List all the physical volumes detected.  This is the equivalent of the "
11856 "L<pvs(8)> command.  The \"full\" version includes all fields."
11857 msgstr ""
11858
11859 # type: textblock
11860 #: ../src/guestfs-actions.pod:4833
11861 msgid ""
11862 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
11863 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
11864 "use>."
11865 msgstr ""
11866
11867 # type: =head2
11868 #: ../src/guestfs-actions.pod:4839
11869 msgid "guestfs_pvuuid"
11870 msgstr ""
11871
11872 # type: verbatim
11873 #: ../src/guestfs-actions.pod:4841
11874 #, no-wrap
11875 msgid ""
11876 " char *\n"
11877 " guestfs_pvuuid (guestfs_h *g,\n"
11878 "                 const char *device);\n"
11879 "\n"
11880 msgstr ""
11881
11882 # type: textblock
11883 #: ../src/guestfs-actions.pod:4845 ../fish/guestfish-actions.pod:3211
11884 msgid "This command returns the UUID of the LVM PV C<device>."
11885 msgstr ""
11886
11887 # type: =head2
11888 #: ../src/guestfs-actions.pod:4852
11889 msgid "guestfs_pwrite"
11890 msgstr ""
11891
11892 # type: verbatim
11893 #: ../src/guestfs-actions.pod:4854
11894 #, no-wrap
11895 msgid ""
11896 " int\n"
11897 " guestfs_pwrite (guestfs_h *g,\n"
11898 "                 const char *path,\n"
11899 "                 const char *content,\n"
11900 "                 size_t content_size,\n"
11901 "                 int64_t offset);\n"
11902 "\n"
11903 msgstr ""
11904
11905 # type: textblock
11906 #: ../src/guestfs-actions.pod:4861 ../fish/guestfish-actions.pod:3217
11907 msgid ""
11908 "This command writes to part of a file.  It writes the data buffer C<content> "
11909 "to the file C<path> starting at offset C<offset>."
11910 msgstr ""
11911
11912 # type: textblock
11913 #: ../src/guestfs-actions.pod:4864 ../fish/guestfish-actions.pod:3220
11914 msgid ""
11915 "This command implements the L<pwrite(2)> system call, and like that system "
11916 "call it may not write the full data requested.  The return value is the "
11917 "number of bytes that were actually written to the file.  This could even be "
11918 "0, although short writes are unlikely for regular files in ordinary "
11919 "circumstances."
11920 msgstr ""
11921
11922 # type: textblock
11923 #: ../src/guestfs-actions.pod:4870
11924 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11925 msgstr ""
11926
11927 # type: =head2
11928 #: ../src/guestfs-actions.pod:4879
11929 msgid "guestfs_pwrite_device"
11930 msgstr ""
11931
11932 # type: verbatim
11933 #: ../src/guestfs-actions.pod:4881
11934 #, no-wrap
11935 msgid ""
11936 " int\n"
11937 " guestfs_pwrite_device (guestfs_h *g,\n"
11938 "                        const char *device,\n"
11939 "                        const char *content,\n"
11940 "                        size_t content_size,\n"
11941 "                        int64_t offset);\n"
11942 "\n"
11943 msgstr ""
11944
11945 # type: textblock
11946 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3235
11947 msgid ""
11948 "This command writes to part of a device.  It writes the data buffer "
11949 "C<content> to C<device> starting at offset C<offset>."
11950 msgstr ""
11951
11952 # type: textblock
11953 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3238
11954 msgid ""
11955 "This command implements the L<pwrite(2)> system call, and like that system "
11956 "call it may not write the full data requested (although short writes to disk "
11957 "devices and partitions are probably impossible with standard Linux kernels)."
11958 msgstr ""
11959
11960 # type: textblock
11961 #: ../src/guestfs-actions.pod:4896
11962 msgid "See also C<guestfs_pwrite>."
11963 msgstr ""
11964
11965 # type: textblock
11966 #: ../src/guestfs-actions.pod:4903
11967 msgid "(Added in 1.5.20)"
11968 msgstr ""
11969
11970 # type: =head2
11971 #: ../src/guestfs-actions.pod:4905
11972 msgid "guestfs_read_file"
11973 msgstr ""
11974
11975 # type: verbatim
11976 #: ../src/guestfs-actions.pod:4907
11977 #, no-wrap
11978 msgid ""
11979 " char *\n"
11980 " guestfs_read_file (guestfs_h *g,\n"
11981 "                    const char *path,\n"
11982 "                    size_t *size_r);\n"
11983 "\n"
11984 msgstr ""
11985
11986 # type: textblock
11987 #: ../src/guestfs-actions.pod:4912 ../fish/guestfish-actions.pod:3252
11988 msgid "This calls returns the contents of the file C<path> as a buffer."
11989 msgstr ""
11990
11991 # type: textblock
11992 #: ../src/guestfs-actions.pod:4915
11993 msgid ""
11994 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11995 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11996 "function is limited in the total size of file that can be handled."
11997 msgstr ""
11998
11999 # type: textblock
12000 #: ../src/guestfs-actions.pod:4927
12001 msgid "(Added in 1.0.63)"
12002 msgstr ""
12003
12004 # type: =head2
12005 #: ../src/guestfs-actions.pod:4929
12006 msgid "guestfs_read_lines"
12007 msgstr ""
12008
12009 # type: verbatim
12010 #: ../src/guestfs-actions.pod:4931
12011 #, no-wrap
12012 msgid ""
12013 " char **\n"
12014 " guestfs_read_lines (guestfs_h *g,\n"
12015 "                     const char *path);\n"
12016 "\n"
12017 msgstr ""
12018
12019 # type: textblock
12020 #: ../src/guestfs-actions.pod:4937 ../fish/guestfish-actions.pod:3269
12021 msgid ""
12022 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12023 "C<CRLF> character sequences are I<not> returned."
12024 msgstr ""
12025
12026 # type: textblock
12027 #: ../src/guestfs-actions.pod:4940
12028 msgid ""
12029 "Note that this function cannot correctly handle binary files (specifically, "
12030 "files containing C<\\0> character which is treated as end of line).  For "
12031 "those you need to use the C<guestfs_read_file> function which has a more "
12032 "complex interface."
12033 msgstr ""
12034
12035 # type: =head2
12036 #: ../src/guestfs-actions.pod:4951
12037 msgid "guestfs_readdir"
12038 msgstr ""
12039
12040 # type: verbatim
12041 #: ../src/guestfs-actions.pod:4953
12042 #, no-wrap
12043 msgid ""
12044 " struct guestfs_dirent_list *\n"
12045 " guestfs_readdir (guestfs_h *g,\n"
12046 "                  const char *dir);\n"
12047 "\n"
12048 msgstr ""
12049
12050 # type: textblock
12051 #: ../src/guestfs-actions.pod:4957 ../fish/guestfish-actions.pod:3281
12052 msgid "This returns the list of directory entries in directory C<dir>."
12053 msgstr ""
12054
12055 # type: textblock
12056 #: ../src/guestfs-actions.pod:4959 ../fish/guestfish-actions.pod:3283
12057 msgid ""
12058 "All entries in the directory are returned, including C<.> and C<..>.  The "
12059 "entries are I<not> sorted, but returned in the same order as the underlying "
12060 "filesystem."
12061 msgstr ""
12062
12063 # type: textblock
12064 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3287
12065 msgid ""
12066 "Also this call returns basic file type information about each file.  The "
12067 "C<ftyp> field will contain one of the following characters:"
12068 msgstr ""
12069
12070 # type: =item
12071 #: ../src/guestfs-actions.pod:4968 ../fish/guestfish-actions.pod:3292
12072 msgid "'b'"
12073 msgstr ""
12074
12075 # type: textblock
12076 #: ../src/guestfs-actions.pod:4970 ../fish/guestfish-actions.pod:3294
12077 msgid "Block special"
12078 msgstr ""
12079
12080 # type: =item
12081 #: ../src/guestfs-actions.pod:4972 ../fish/guestfish-actions.pod:3296
12082 msgid "'c'"
12083 msgstr ""
12084
12085 # type: textblock
12086 #: ../src/guestfs-actions.pod:4974 ../fish/guestfish-actions.pod:3298
12087 msgid "Char special"
12088 msgstr ""
12089
12090 # type: =item
12091 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3300
12092 msgid "'d'"
12093 msgstr ""
12094
12095 # type: textblock
12096 #: ../src/guestfs-actions.pod:4978 ../fish/guestfish-actions.pod:3302
12097 msgid "Directory"
12098 msgstr ""
12099
12100 # type: =item
12101 #: ../src/guestfs-actions.pod:4980 ../fish/guestfish-actions.pod:3304
12102 msgid "'f'"
12103 msgstr ""
12104
12105 # type: textblock
12106 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3306
12107 msgid "FIFO (named pipe)"
12108 msgstr ""
12109
12110 # type: =item
12111 #: ../src/guestfs-actions.pod:4984 ../fish/guestfish-actions.pod:3308
12112 msgid "'l'"
12113 msgstr ""
12114
12115 # type: textblock
12116 #: ../src/guestfs-actions.pod:4986 ../fish/guestfish-actions.pod:3310
12117 msgid "Symbolic link"
12118 msgstr ""
12119
12120 # type: =item
12121 #: ../src/guestfs-actions.pod:4988 ../fish/guestfish-actions.pod:3312
12122 msgid "'r'"
12123 msgstr ""
12124
12125 # type: textblock
12126 #: ../src/guestfs-actions.pod:4990 ../fish/guestfish-actions.pod:3314
12127 msgid "Regular file"
12128 msgstr ""
12129
12130 # type: =item
12131 #: ../src/guestfs-actions.pod:4992 ../fish/guestfish-actions.pod:3316
12132 msgid "'s'"
12133 msgstr ""
12134
12135 # type: textblock
12136 #: ../src/guestfs-actions.pod:4994 ../fish/guestfish-actions.pod:3318
12137 msgid "Socket"
12138 msgstr ""
12139
12140 # type: =item
12141 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3320
12142 msgid "'u'"
12143 msgstr ""
12144
12145 # type: textblock
12146 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3322
12147 msgid "Unknown file type"
12148 msgstr ""
12149
12150 # type: =item
12151 #: ../src/guestfs-actions.pod:5000 ../fish/guestfish-actions.pod:3324
12152 msgid "'?'"
12153 msgstr ""
12154
12155 # type: textblock
12156 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3326
12157 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12158 msgstr ""
12159
12160 # type: textblock
12161 #: ../src/guestfs-actions.pod:5007
12162 msgid ""
12163 "This function is primarily intended for use by programs.  To get a simple "
12164 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12165 "consumption, use C<guestfs_ll>."
12166 msgstr ""
12167
12168 # type: textblock
12169 #: ../src/guestfs-actions.pod:5011
12170 msgid ""
12171 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12172 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
12173 "use>."
12174 msgstr ""
12175
12176 # type: =head2
12177 #: ../src/guestfs-actions.pod:5017
12178 msgid "guestfs_readlink"
12179 msgstr ""
12180
12181 # type: verbatim
12182 #: ../src/guestfs-actions.pod:5019
12183 #, no-wrap
12184 msgid ""
12185 " char *\n"
12186 " guestfs_readlink (guestfs_h *g,\n"
12187 "                   const char *path);\n"
12188 "\n"
12189 msgstr ""
12190
12191 # type: textblock
12192 #: ../src/guestfs-actions.pod:5023 ../fish/guestfish-actions.pod:3339
12193 msgid "This command reads the target of a symbolic link."
12194 msgstr ""
12195
12196 # type: =head2
12197 #: ../src/guestfs-actions.pod:5030
12198 msgid "guestfs_readlinklist"
12199 msgstr ""
12200
12201 # type: verbatim
12202 #: ../src/guestfs-actions.pod:5032
12203 #, no-wrap
12204 msgid ""
12205 " char **\n"
12206 " guestfs_readlinklist (guestfs_h *g,\n"
12207 "                       const char *path,\n"
12208 "                       char *const *names);\n"
12209 "\n"
12210 msgstr ""
12211
12212 # type: textblock
12213 #: ../src/guestfs-actions.pod:5037 ../fish/guestfish-actions.pod:3345
12214 msgid ""
12215 "This call allows you to do a C<readlink> operation on multiple files, where "
12216 "all files are in the directory C<path>.  C<names> is the list of files from "
12217 "this directory."
12218 msgstr ""
12219
12220 # type: textblock
12221 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3349
12222 msgid ""
12223 "On return you get a list of strings, with a one-to-one correspondence to the "
12224 "C<names> list.  Each string is the value of the symbolic link."
12225 msgstr ""
12226
12227 # type: textblock
12228 #: ../src/guestfs-actions.pod:5045 ../fish/guestfish-actions.pod:3353
12229 msgid ""
12230 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12231 "result string is the empty string C<\"\">.  However the whole operation is "
12232 "completed even if there were C<readlink(2)> errors, and so you can call this "
12233 "function with names where you don't know if they are symbolic links already "
12234 "(albeit slightly less efficient)."
12235 msgstr ""
12236
12237 # type: textblock
12238 #: ../src/guestfs-actions.pod:5052 ../fish/guestfish-actions.pod:3360
12239 msgid ""
12240 "This call is intended for programs that want to efficiently list a directory "
12241 "contents without making many round-trips.  Very long directory listings "
12242 "might cause the protocol message size to be exceeded, causing this call to "
12243 "fail.  The caller must split up such requests into smaller groups of names."
12244 msgstr ""
12245
12246 # type: =head2
12247 #: ../src/guestfs-actions.pod:5065
12248 msgid "guestfs_realpath"
12249 msgstr ""
12250
12251 # type: verbatim
12252 #: ../src/guestfs-actions.pod:5067
12253 #, no-wrap
12254 msgid ""
12255 " char *\n"
12256 " guestfs_realpath (guestfs_h *g,\n"
12257 "                   const char *path);\n"
12258 "\n"
12259 msgstr ""
12260
12261 # type: textblock
12262 #: ../src/guestfs-actions.pod:5071 ../fish/guestfish-actions.pod:3371
12263 msgid ""
12264 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12265 "has no C<.>, C<..> or symbolic link path elements."
12266 msgstr ""
12267
12268 # type: =head2
12269 #: ../src/guestfs-actions.pod:5079
12270 msgid "guestfs_removexattr"
12271 msgstr ""
12272
12273 # type: verbatim
12274 #: ../src/guestfs-actions.pod:5081
12275 #, no-wrap
12276 msgid ""
12277 " int\n"
12278 " guestfs_removexattr (guestfs_h *g,\n"
12279 "                      const char *xattr,\n"
12280 "                      const char *path);\n"
12281 "\n"
12282 msgstr ""
12283
12284 # type: textblock
12285 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3378
12286 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12287 msgstr ""
12288
12289 # type: textblock
12290 #: ../src/guestfs-actions.pod:5089
12291 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12292 msgstr ""
12293
12294 # type: =head2
12295 #: ../src/guestfs-actions.pod:5095
12296 msgid "guestfs_resize2fs"
12297 msgstr ""
12298
12299 # type: verbatim
12300 #: ../src/guestfs-actions.pod:5097
12301 #, no-wrap
12302 msgid ""
12303 " int\n"
12304 " guestfs_resize2fs (guestfs_h *g,\n"
12305 "                    const char *device);\n"
12306 "\n"
12307 msgstr ""
12308
12309 # type: textblock
12310 #: ../src/guestfs-actions.pod:5101 ../fish/guestfish-actions.pod:3387
12311 msgid ""
12312 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12313 "underlying device."
12314 msgstr ""
12315
12316 # type: textblock
12317 #: ../src/guestfs-actions.pod:5104
12318 msgid ""
12319 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12320 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12321 "sometimes gives an error about this and sometimes not.  In any case, it is "
12322 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12323 msgstr ""
12324
12325 # type: =head2
12326 #: ../src/guestfs-actions.pod:5114
12327 msgid "guestfs_resize2fs_size"
12328 msgstr ""
12329
12330 # type: verbatim
12331 #: ../src/guestfs-actions.pod:5116
12332 #, no-wrap
12333 msgid ""
12334 " int\n"
12335 " guestfs_resize2fs_size (guestfs_h *g,\n"
12336 "                         const char *device,\n"
12337 "                         int64_t size);\n"
12338 "\n"
12339 msgstr ""
12340
12341 # type: textblock
12342 #: ../src/guestfs-actions.pod:5121
12343 msgid ""
12344 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12345 "to specify the new size (in bytes) explicitly."
12346 msgstr ""
12347
12348 # type: =head2
12349 #: ../src/guestfs-actions.pod:5128
12350 msgid "guestfs_rm"
12351 msgstr ""
12352
12353 # type: verbatim
12354 #: ../src/guestfs-actions.pod:5130
12355 #, no-wrap
12356 msgid ""
12357 " int\n"
12358 " guestfs_rm (guestfs_h *g,\n"
12359 "             const char *path);\n"
12360 "\n"
12361 msgstr ""
12362
12363 # type: textblock
12364 #: ../src/guestfs-actions.pod:5134 ../fish/guestfish-actions.pod:3407
12365 msgid "Remove the single file C<path>."
12366 msgstr ""
12367
12368 # type: =head2
12369 #: ../src/guestfs-actions.pod:5140
12370 msgid "guestfs_rm_rf"
12371 msgstr ""
12372
12373 # type: verbatim
12374 #: ../src/guestfs-actions.pod:5142
12375 #, no-wrap
12376 msgid ""
12377 " int\n"
12378 " guestfs_rm_rf (guestfs_h *g,\n"
12379 "                const char *path);\n"
12380 "\n"
12381 msgstr ""
12382
12383 # type: textblock
12384 #: ../src/guestfs-actions.pod:5146 ../fish/guestfish-actions.pod:3413
12385 msgid ""
12386 "Remove the file or directory C<path>, recursively removing the contents if "
12387 "its a directory.  This is like the C<rm -rf> shell command."
12388 msgstr ""
12389
12390 # type: =head2
12391 #: ../src/guestfs-actions.pod:5154
12392 msgid "guestfs_rmdir"
12393 msgstr ""
12394
12395 # type: verbatim
12396 #: ../src/guestfs-actions.pod:5156
12397 #, no-wrap
12398 msgid ""
12399 " int\n"
12400 " guestfs_rmdir (guestfs_h *g,\n"
12401 "                const char *path);\n"
12402 "\n"
12403 msgstr ""
12404
12405 # type: textblock
12406 #: ../src/guestfs-actions.pod:5160 ../fish/guestfish-actions.pod:3421
12407 msgid "Remove the single directory C<path>."
12408 msgstr ""
12409
12410 # type: =head2
12411 #: ../src/guestfs-actions.pod:5166
12412 msgid "guestfs_rmmountpoint"
12413 msgstr ""
12414
12415 # type: verbatim
12416 #: ../src/guestfs-actions.pod:5168
12417 #, no-wrap
12418 msgid ""
12419 " int\n"
12420 " guestfs_rmmountpoint (guestfs_h *g,\n"
12421 "                       const char *exemptpath);\n"
12422 "\n"
12423 msgstr ""
12424
12425 # type: textblock
12426 #: ../src/guestfs-actions.pod:5172
12427 msgid ""
12428 "This calls removes a mountpoint that was previously created with "
12429 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12430 msgstr ""
12431
12432 # type: =head2
12433 #: ../src/guestfs-actions.pod:5180
12434 msgid "guestfs_scrub_device"
12435 msgstr ""
12436
12437 # type: verbatim
12438 #: ../src/guestfs-actions.pod:5182
12439 #, no-wrap
12440 msgid ""
12441 " int\n"
12442 " guestfs_scrub_device (guestfs_h *g,\n"
12443 "                       const char *device);\n"
12444 "\n"
12445 msgstr ""
12446
12447 # type: textblock
12448 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:3435
12449 msgid ""
12450 "This command writes patterns over C<device> to make data retrieval more "
12451 "difficult."
12452 msgstr ""
12453
12454 # type: textblock
12455 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5229 ../fish/guestfish-actions.pod:3438 ../fish/guestfish-actions.pod:3453 ../fish/guestfish-actions.pod:3466
12456 msgid ""
12457 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12458 "more details."
12459 msgstr ""
12460
12461 # type: textblock
12462 #: ../src/guestfs-actions.pod:5197 ../src/guestfs-actions.pod:5215 ../src/guestfs-actions.pod:5234
12463 msgid "(Added in 1.0.52)"
12464 msgstr ""
12465
12466 # type: =head2
12467 #: ../src/guestfs-actions.pod:5199
12468 msgid "guestfs_scrub_file"
12469 msgstr ""
12470
12471 # type: verbatim
12472 #: ../src/guestfs-actions.pod:5201
12473 #, no-wrap
12474 msgid ""
12475 " int\n"
12476 " guestfs_scrub_file (guestfs_h *g,\n"
12477 "                     const char *file);\n"
12478 "\n"
12479 msgstr ""
12480
12481 # type: textblock
12482 #: ../src/guestfs-actions.pod:5205 ../fish/guestfish-actions.pod:3448
12483 msgid ""
12484 "This command writes patterns over a file to make data retrieval more "
12485 "difficult."
12486 msgstr ""
12487
12488 # type: textblock
12489 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3451
12490 msgid "The file is I<removed> after scrubbing."
12491 msgstr ""
12492
12493 # type: =head2
12494 #: ../src/guestfs-actions.pod:5217
12495 msgid "guestfs_scrub_freespace"
12496 msgstr ""
12497
12498 # type: verbatim
12499 #: ../src/guestfs-actions.pod:5219
12500 #, no-wrap
12501 msgid ""
12502 " int\n"
12503 " guestfs_scrub_freespace (guestfs_h *g,\n"
12504 "                          const char *dir);\n"
12505 "\n"
12506 msgstr ""
12507
12508 # type: textblock
12509 #: ../src/guestfs-actions.pod:5223
12510 msgid ""
12511 "This command creates the directory C<dir> and then fills it with files until "
12512 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12513 "and deletes them.  The intention is to scrub any free space on the partition "
12514 "containing C<dir>."
12515 msgstr ""
12516
12517 # type: =head2
12518 #: ../src/guestfs-actions.pod:5236
12519 msgid "guestfs_set_append"
12520 msgstr ""
12521
12522 # type: verbatim
12523 #: ../src/guestfs-actions.pod:5238
12524 #, no-wrap
12525 msgid ""
12526 " int\n"
12527 " guestfs_set_append (guestfs_h *g,\n"
12528 "                     const char *append);\n"
12529 "\n"
12530 msgstr ""
12531
12532 # type: textblock
12533 #: ../src/guestfs-actions.pod:5242 ../fish/guestfish-actions.pod:3475
12534 msgid ""
12535 "This function is used to add additional options to the guest kernel command "
12536 "line."
12537 msgstr ""
12538
12539 # type: textblock
12540 #: ../src/guestfs-actions.pod:5245 ../fish/guestfish-actions.pod:3478
12541 msgid ""
12542 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12543 "environment variable."
12544 msgstr ""
12545
12546 # type: textblock
12547 #: ../src/guestfs-actions.pod:5248 ../fish/guestfish-actions.pod:3481
12548 msgid ""
12549 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12550 "(libguestfs always adds a few of its own)."
12551 msgstr ""
12552
12553 # type: =head2
12554 #: ../src/guestfs-actions.pod:5255
12555 msgid "guestfs_set_autosync"
12556 msgstr ""
12557
12558 # type: verbatim
12559 #: ../src/guestfs-actions.pod:5257
12560 #, no-wrap
12561 msgid ""
12562 " int\n"
12563 " guestfs_set_autosync (guestfs_h *g,\n"
12564 "                       int autosync);\n"
12565 "\n"
12566 msgstr ""
12567
12568 # type: textblock
12569 #: ../src/guestfs-actions.pod:5261
12570 msgid ""
12571 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12572 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12573 "the handle is closed (also if the program exits without closing handles)."
12574 msgstr ""
12575
12576 # type: textblock
12577 #: ../src/guestfs-actions.pod:5266 ../fish/guestfish-actions.pod:3495
12578 msgid ""
12579 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12580 "disabled by default)."
12581 msgstr ""
12582
12583 # type: =head2
12584 #: ../src/guestfs-actions.pod:5273
12585 msgid "guestfs_set_direct"
12586 msgstr ""
12587
12588 # type: verbatim
12589 #: ../src/guestfs-actions.pod:5275
12590 #, no-wrap
12591 msgid ""
12592 " int\n"
12593 " guestfs_set_direct (guestfs_h *g,\n"
12594 "                     int direct);\n"
12595 "\n"
12596 msgstr ""
12597
12598 # type: textblock
12599 #: ../src/guestfs-actions.pod:5279 ../fish/guestfish-actions.pod:3504
12600 msgid ""
12601 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12602 "passed directly through to the appliance once it is launched."
12603 msgstr ""
12604
12605 # type: textblock
12606 #: ../src/guestfs-actions.pod:5283
12607 msgid ""
12608 "One consequence of this is that log messages aren't caught by the library "
12609 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12610 "stdout."
12611 msgstr ""
12612
12613 # type: textblock
12614 #: ../src/guestfs-actions.pod:5287 ../fish/guestfish-actions.pod:3512
12615 msgid "You probably don't want to use this unless you know what you are doing."
12616 msgstr ""
12617
12618 # type: textblock
12619 #: ../src/guestfs-actions.pod:5290 ../fish/guestfish-actions.pod:3515
12620 msgid "The default is disabled."
12621 msgstr ""
12622
12623 # type: =head2
12624 #: ../src/guestfs-actions.pod:5296
12625 msgid "guestfs_set_e2label"
12626 msgstr ""
12627
12628 # type: verbatim
12629 #: ../src/guestfs-actions.pod:5298
12630 #, no-wrap
12631 msgid ""
12632 " int\n"
12633 " guestfs_set_e2label (guestfs_h *g,\n"
12634 "                      const char *device,\n"
12635 "                      const char *label);\n"
12636 "\n"
12637 msgstr ""
12638
12639 # type: textblock
12640 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:3521
12641 msgid ""
12642 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12643 "C<label>.  Filesystem labels are limited to 16 characters."
12644 msgstr ""
12645
12646 # type: textblock
12647 #: ../src/guestfs-actions.pod:5307
12648 msgid ""
12649 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12650 "the existing label on a filesystem."
12651 msgstr ""
12652
12653 # type: =head2
12654 #: ../src/guestfs-actions.pod:5314
12655 msgid "guestfs_set_e2uuid"
12656 msgstr ""
12657
12658 # type: verbatim
12659 #: ../src/guestfs-actions.pod:5316
12660 #, no-wrap
12661 msgid ""
12662 " int\n"
12663 " guestfs_set_e2uuid (guestfs_h *g,\n"
12664 "                     const char *device,\n"
12665 "                     const char *uuid);\n"
12666 "\n"
12667 msgstr ""
12668
12669 # type: textblock
12670 #: ../src/guestfs-actions.pod:5321 ../fish/guestfish-actions.pod:3532
12671 msgid ""
12672 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12673 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12674 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12675 msgstr ""
12676
12677 # type: textblock
12678 #: ../src/guestfs-actions.pod:5326
12679 msgid ""
12680 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12681 "the existing UUID of a filesystem."
12682 msgstr ""
12683
12684 # type: =head2
12685 #: ../src/guestfs-actions.pod:5333
12686 msgid "guestfs_set_memsize"
12687 msgstr ""
12688
12689 # type: verbatim
12690 #: ../src/guestfs-actions.pod:5335
12691 #, no-wrap
12692 msgid ""
12693 " int\n"
12694 " guestfs_set_memsize (guestfs_h *g,\n"
12695 "                      int memsize);\n"
12696 "\n"
12697 msgstr ""
12698
12699 # type: textblock
12700 #: ../src/guestfs-actions.pod:5339
12701 msgid ""
12702 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12703 "This only has any effect if called before C<guestfs_launch>."
12704 msgstr ""
12705
12706 # type: textblock
12707 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:3550
12708 msgid ""
12709 "You can also change this by setting the environment variable "
12710 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12711 msgstr ""
12712
12713 # type: =head2
12714 #: ../src/guestfs-actions.pod:5354
12715 msgid "guestfs_set_network"
12716 msgstr ""
12717
12718 # type: verbatim
12719 #: ../src/guestfs-actions.pod:5356
12720 #, no-wrap
12721 msgid ""
12722 " int\n"
12723 " guestfs_set_network (guestfs_h *g,\n"
12724 "                      int network);\n"
12725 "\n"
12726 msgstr ""
12727
12728 # type: textblock
12729 #: ../src/guestfs-actions.pod:5360 ../fish/guestfish-actions.pod:3563
12730 msgid ""
12731 "If C<network> is true, then the network is enabled in the libguestfs "
12732 "appliance.  The default is false."
12733 msgstr ""
12734
12735 # type: textblock
12736 #: ../src/guestfs-actions.pod:5363 ../fish/guestfish-actions.pod:3566
12737 msgid ""
12738 "This affects whether commands are able to access the network (see "
12739 "L<guestfs(3)/RUNNING COMMANDS>)."
12740 msgstr ""
12741
12742 # type: textblock
12743 #: ../src/guestfs-actions.pod:5366
12744 msgid ""
12745 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12746 "effect."
12747 msgstr ""
12748
12749 # type: =head2
12750 #: ../src/guestfs-actions.pod:5373
12751 msgid "guestfs_set_path"
12752 msgstr ""
12753
12754 # type: verbatim
12755 #: ../src/guestfs-actions.pod:5375
12756 #, no-wrap
12757 msgid ""
12758 " int\n"
12759 " guestfs_set_path (guestfs_h *g,\n"
12760 "                   const char *searchpath);\n"
12761 "\n"
12762 msgstr ""
12763
12764 # type: textblock
12765 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3578
12766 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12767 msgstr ""
12768
12769 # type: textblock
12770 #: ../src/guestfs-actions.pod:5381 ../fish/guestfish-actions.pod:3580
12771 msgid ""
12772 "The default is C<$libdir/guestfs> unless overridden by setting "
12773 "C<LIBGUESTFS_PATH> environment variable."
12774 msgstr ""
12775
12776 # type: textblock
12777 #: ../src/guestfs-actions.pod:5384 ../fish/guestfish-actions.pod:3583
12778 msgid "Setting C<path> to C<NULL> restores the default path."
12779 msgstr ""
12780
12781 # type: =head2
12782 #: ../src/guestfs-actions.pod:5390
12783 msgid "guestfs_set_qemu"
12784 msgstr ""
12785
12786 # type: verbatim
12787 #: ../src/guestfs-actions.pod:5392
12788 #, no-wrap
12789 msgid ""
12790 " int\n"
12791 " guestfs_set_qemu (guestfs_h *g,\n"
12792 "                   const char *qemu);\n"
12793 "\n"
12794 msgstr ""
12795
12796 # type: textblock
12797 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:3591
12798 msgid "Set the qemu binary that we will use."
12799 msgstr ""
12800
12801 # type: textblock
12802 #: ../src/guestfs-actions.pod:5398 ../fish/guestfish-actions.pod:3593
12803 msgid "The default is chosen when the library was compiled by the configure script."
12804 msgstr ""
12805
12806 # type: textblock
12807 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3596
12808 msgid ""
12809 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12810 "variable."
12811 msgstr ""
12812
12813 # type: textblock
12814 #: ../src/guestfs-actions.pod:5404 ../fish/guestfish-actions.pod:3599
12815 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12816 msgstr ""
12817
12818 # type: textblock
12819 #: ../src/guestfs-actions.pod:5406 ../fish/guestfish-actions.pod:3601
12820 msgid ""
12821 "Note that you should call this function as early as possible after creating "
12822 "the handle.  This is because some pre-launch operations depend on testing "
12823 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12824 "don't retest features, and so you might see inconsistent results.  Using the "
12825 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12826 "the qemu binary at the same time as the handle is created."
12827 msgstr ""
12828
12829 # type: =head2
12830 #: ../src/guestfs-actions.pod:5418
12831 msgid "guestfs_set_recovery_proc"
12832 msgstr ""
12833
12834 # type: verbatim
12835 #: ../src/guestfs-actions.pod:5420
12836 #, no-wrap
12837 msgid ""
12838 " int\n"
12839 " guestfs_set_recovery_proc (guestfs_h *g,\n"
12840 "                            int recoveryproc);\n"
12841 "\n"
12842 msgstr ""
12843
12844 # type: textblock
12845 #: ../src/guestfs-actions.pod:5424
12846 msgid ""
12847 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12848 "not create a recovery process.  The purpose of the recovery process is to "
12849 "stop runaway qemu processes in the case where the main program aborts "
12850 "abruptly."
12851 msgstr ""
12852
12853 # type: textblock
12854 #: ../src/guestfs-actions.pod:5429
12855 msgid ""
12856 "This only has any effect if called before C<guestfs_launch>, and the default "
12857 "is true."
12858 msgstr ""
12859
12860 # type: textblock
12861 #: ../src/guestfs-actions.pod:5432 ../fish/guestfish-actions.pod:3623
12862 msgid ""
12863 "About the only time when you would want to disable this is if the main "
12864 "process will fork itself into the background (\"daemonize\" itself).  In "
12865 "this case the recovery process thinks that the main program has disappeared "
12866 "and so kills qemu, which is not very helpful."
12867 msgstr ""
12868
12869 # type: =head2
12870 #: ../src/guestfs-actions.pod:5442
12871 msgid "guestfs_set_selinux"
12872 msgstr ""
12873
12874 # type: verbatim
12875 #: ../src/guestfs-actions.pod:5444
12876 #, no-wrap
12877 msgid ""
12878 " int\n"
12879 " guestfs_set_selinux (guestfs_h *g,\n"
12880 "                      int selinux);\n"
12881 "\n"
12882 msgstr ""
12883
12884 # type: textblock
12885 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:3635
12886 msgid ""
12887 "This sets the selinux flag that is passed to the appliance at boot time.  "
12888 "The default is C<selinux=0> (disabled)."
12889 msgstr ""
12890
12891 # type: textblock
12892 #: ../src/guestfs-actions.pod:5451 ../fish/guestfish-actions.pod:3638
12893 msgid ""
12894 "Note that if SELinux is enabled, it is always in Permissive mode "
12895 "(C<enforcing=0>)."
12896 msgstr ""
12897
12898 # type: =head2
12899 #: ../src/guestfs-actions.pod:5461
12900 msgid "guestfs_set_trace"
12901 msgstr ""
12902
12903 # type: verbatim
12904 #: ../src/guestfs-actions.pod:5463
12905 #, no-wrap
12906 msgid ""
12907 " int\n"
12908 " guestfs_set_trace (guestfs_h *g,\n"
12909 "                    int trace);\n"
12910 "\n"
12911 msgstr ""
12912
12913 # type: textblock
12914 #: ../src/guestfs-actions.pod:5467 ../fish/guestfish-actions.pod:3650
12915 msgid ""
12916 "If the command trace flag is set to 1, then commands are printed on stderr "
12917 "before they are executed in a format which is very similar to the one used "
12918 "by guestfish.  In other words, you can run a program with this enabled, and "
12919 "you will get out a script which you can feed to guestfish to perform the "
12920 "same set of actions."
12921 msgstr ""
12922
12923 # type: textblock
12924 #: ../src/guestfs-actions.pod:5474 ../fish/guestfish-actions.pod:3657
12925 msgid ""
12926 "If you want to trace C API calls into libguestfs (and other libraries) then "
12927 "possibly a better way is to use the external ltrace(1) command."
12928 msgstr ""
12929
12930 # type: textblock
12931 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:3661
12932 msgid ""
12933 "Command traces are disabled unless the environment variable "
12934 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12935 msgstr ""
12936
12937 # type: =head2
12938 #: ../src/guestfs-actions.pod:5485
12939 msgid "guestfs_set_verbose"
12940 msgstr ""
12941
12942 # type: verbatim
12943 #: ../src/guestfs-actions.pod:5487
12944 #, no-wrap
12945 msgid ""
12946 " int\n"
12947 " guestfs_set_verbose (guestfs_h *g,\n"
12948 "                      int verbose);\n"
12949 "\n"
12950 msgstr ""
12951
12952 # type: textblock
12953 #: ../src/guestfs-actions.pod:5491 ../fish/guestfish-actions.pod:3670
12954 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12955 msgstr ""
12956
12957 # type: textblock
12958 #: ../src/guestfs-actions.pod:5493 ../fish/guestfish-actions.pod:3672
12959 msgid ""
12960 "Verbose messages are disabled unless the environment variable "
12961 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12962 msgstr ""
12963
12964 # type: =head2
12965 #: ../src/guestfs-actions.pod:5500
12966 msgid "guestfs_setcon"
12967 msgstr ""
12968
12969 # type: verbatim
12970 #: ../src/guestfs-actions.pod:5502
12971 #, no-wrap
12972 msgid ""
12973 " int\n"
12974 " guestfs_setcon (guestfs_h *g,\n"
12975 "                 const char *context);\n"
12976 "\n"
12977 msgstr ""
12978
12979 # type: textblock
12980 #: ../src/guestfs-actions.pod:5506 ../fish/guestfish-actions.pod:3679
12981 msgid ""
12982 "This sets the SELinux security context of the daemon to the string "
12983 "C<context>."
12984 msgstr ""
12985
12986 # type: textblock
12987 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3682
12988 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12989 msgstr ""
12990
12991 # type: =head2
12992 #: ../src/guestfs-actions.pod:5515
12993 msgid "guestfs_setxattr"
12994 msgstr ""
12995
12996 # type: verbatim
12997 #: ../src/guestfs-actions.pod:5517
12998 #, no-wrap
12999 msgid ""
13000 " int\n"
13001 " guestfs_setxattr (guestfs_h *g,\n"
13002 "                   const char *xattr,\n"
13003 "                   const char *val,\n"
13004 "                   int vallen,\n"
13005 "                   const char *path);\n"
13006 "\n"
13007 msgstr ""
13008
13009 # type: textblock
13010 #: ../src/guestfs-actions.pod:5524 ../fish/guestfish-actions.pod:3688
13011 msgid ""
13012 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13013 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13014 msgstr ""
13015
13016 # type: textblock
13017 #: ../src/guestfs-actions.pod:5528
13018 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13019 msgstr ""
13020
13021 # type: =head2
13022 #: ../src/guestfs-actions.pod:5534
13023 msgid "guestfs_sfdisk"
13024 msgstr ""
13025
13026 # type: verbatim
13027 #: ../src/guestfs-actions.pod:5536
13028 #, no-wrap
13029 msgid ""
13030 " int\n"
13031 " guestfs_sfdisk (guestfs_h *g,\n"
13032 "                 const char *device,\n"
13033 "                 int cyls,\n"
13034 "                 int heads,\n"
13035 "                 int sectors,\n"
13036 "                 char *const *lines);\n"
13037 "\n"
13038 msgstr ""
13039
13040 # type: textblock
13041 #: ../src/guestfs-actions.pod:5544 ../fish/guestfish-actions.pod:3698
13042 msgid ""
13043 "This is a direct interface to the L<sfdisk(8)> program for creating "
13044 "partitions on block devices."
13045 msgstr ""
13046
13047 # type: textblock
13048 #: ../src/guestfs-actions.pod:5547 ../fish/guestfish-actions.pod:3701
13049 msgid "C<device> should be a block device, for example C</dev/sda>."
13050 msgstr ""
13051
13052 # type: textblock
13053 #: ../src/guestfs-actions.pod:5549 ../fish/guestfish-actions.pod:3703
13054 msgid ""
13055 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13056 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13057 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13058 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13059 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13060 "the kernel) cannot work out the right geometry and you will need to tell it."
13061 msgstr ""
13062
13063 # type: textblock
13064 #: ../src/guestfs-actions.pod:5557 ../fish/guestfish-actions.pod:3711
13065 msgid ""
13066 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13067 "refer to the L<sfdisk(8)> manpage."
13068 msgstr ""
13069
13070 # type: textblock
13071 #: ../src/guestfs-actions.pod:5560 ../fish/guestfish-actions.pod:3714
13072 msgid ""
13073 "To create a single partition occupying the whole disk, you would pass "
13074 "C<lines> as a single element list, when the single element being the string "
13075 "C<,> (comma)."
13076 msgstr ""
13077
13078 # type: textblock
13079 #: ../src/guestfs-actions.pod:5564
13080 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13081 msgstr ""
13082
13083 # type: =head2
13084 #: ../src/guestfs-actions.pod:5574
13085 msgid "guestfs_sfdiskM"
13086 msgstr ""
13087
13088 # type: verbatim
13089 #: ../src/guestfs-actions.pod:5576
13090 #, no-wrap
13091 msgid ""
13092 " int\n"
13093 " guestfs_sfdiskM (guestfs_h *g,\n"
13094 "                  const char *device,\n"
13095 "                  char *const *lines);\n"
13096 "\n"
13097 msgstr ""
13098
13099 # type: textblock
13100 #: ../src/guestfs-actions.pod:5581
13101 msgid ""
13102 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13103 "partition sizes are specified in megabytes only (rounded to the nearest "
13104 "cylinder) and you don't need to specify the cyls, heads and sectors "
13105 "parameters which were rarely if ever used anyway."
13106 msgstr ""
13107
13108 # type: textblock
13109 #: ../src/guestfs-actions.pod:5587
13110 msgid ""
13111 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13112 "C<guestfs_part_disk>"
13113 msgstr ""
13114
13115 # type: =head2
13116 #: ../src/guestfs-actions.pod:5597
13117 msgid "guestfs_sfdisk_N"
13118 msgstr ""
13119
13120 # type: verbatim
13121 #: ../src/guestfs-actions.pod:5599
13122 #, no-wrap
13123 msgid ""
13124 " int\n"
13125 " guestfs_sfdisk_N (guestfs_h *g,\n"
13126 "                   const char *device,\n"
13127 "                   int partnum,\n"
13128 "                   int cyls,\n"
13129 "                   int heads,\n"
13130 "                   int sectors,\n"
13131 "                   const char *line);\n"
13132 "\n"
13133 msgstr ""
13134
13135 # type: textblock
13136 #: ../src/guestfs-actions.pod:5608 ../fish/guestfish-actions.pod:3744
13137 msgid ""
13138 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13139 "(note: C<n> counts from 1)."
13140 msgstr ""
13141
13142 # type: textblock
13143 #: ../src/guestfs-actions.pod:5611
13144 msgid ""
13145 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13146 "for the cyls/heads/sectors parameters."
13147 msgstr ""
13148
13149 # type: textblock
13150 #: ../src/guestfs-actions.pod:5614
13151 msgid "See also: C<guestfs_part_add>"
13152 msgstr ""
13153
13154 # type: =head2
13155 #: ../src/guestfs-actions.pod:5623
13156 msgid "guestfs_sfdisk_disk_geometry"
13157 msgstr ""
13158
13159 # type: verbatim
13160 #: ../src/guestfs-actions.pod:5625
13161 #, no-wrap
13162 msgid ""
13163 " char *\n"
13164 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13165 "                               const char *device);\n"
13166 "\n"
13167 msgstr ""
13168
13169 # type: textblock
13170 #: ../src/guestfs-actions.pod:5629
13171 msgid ""
13172 "This displays the disk geometry of C<device> read from the partition table.  "
13173 "Especially in the case where the underlying block device has been resized, "
13174 "this can be different from the kernel's idea of the geometry (see "
13175 "C<guestfs_sfdisk_kernel_geometry>)."
13176 msgstr ""
13177
13178 # type: textblock
13179 #: ../src/guestfs-actions.pod:5634 ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3773
13180 msgid "The result is in human-readable format, and not designed to be parsed."
13181 msgstr ""
13182
13183 # type: =head2
13184 #: ../src/guestfs-actions.pod:5642
13185 msgid "guestfs_sfdisk_kernel_geometry"
13186 msgstr ""
13187
13188 # type: verbatim
13189 #: ../src/guestfs-actions.pod:5644
13190 #, no-wrap
13191 msgid ""
13192 " char *\n"
13193 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13194 "                                 const char *device);\n"
13195 "\n"
13196 msgstr ""
13197
13198 # type: textblock
13199 #: ../src/guestfs-actions.pod:5648 ../fish/guestfish-actions.pod:3771
13200 msgid "This displays the kernel's idea of the geometry of C<device>."
13201 msgstr ""
13202
13203 # type: =head2
13204 #: ../src/guestfs-actions.pod:5658
13205 msgid "guestfs_sfdisk_l"
13206 msgstr ""
13207
13208 # type: verbatim
13209 #: ../src/guestfs-actions.pod:5660
13210 #, no-wrap
13211 msgid ""
13212 " char *\n"
13213 " guestfs_sfdisk_l (guestfs_h *g,\n"
13214 "                   const char *device);\n"
13215 "\n"
13216 msgstr ""
13217
13218 # type: textblock
13219 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:3780
13220 msgid ""
13221 "This displays the partition table on C<device>, in the human-readable output "
13222 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13223 msgstr ""
13224
13225 # type: textblock
13226 #: ../src/guestfs-actions.pod:5668
13227 msgid "See also: C<guestfs_part_list>"
13228 msgstr ""
13229
13230 # type: =head2
13231 #: ../src/guestfs-actions.pod:5675
13232 msgid "guestfs_sh"
13233 msgstr ""
13234
13235 # type: verbatim
13236 #: ../src/guestfs-actions.pod:5677
13237 #, no-wrap
13238 msgid ""
13239 " char *\n"
13240 " guestfs_sh (guestfs_h *g,\n"
13241 "             const char *command);\n"
13242 "\n"
13243 msgstr ""
13244
13245 # type: textblock
13246 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3790
13247 msgid ""
13248 "This call runs a command from the guest filesystem via the guest's "
13249 "C</bin/sh>."
13250 msgstr ""
13251
13252 # type: textblock
13253 #: ../src/guestfs-actions.pod:5684
13254 msgid "This is like C<guestfs_command>, but passes the command to:"
13255 msgstr ""
13256
13257 # type: verbatim
13258 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3795
13259 #, no-wrap
13260 msgid ""
13261 " /bin/sh -c \"command\"\n"
13262 "\n"
13263 msgstr ""
13264
13265 # type: textblock
13266 #: ../src/guestfs-actions.pod:5688 ../fish/guestfish-actions.pod:3797
13267 msgid ""
13268 "Depending on the guest's shell, this usually results in wildcards being "
13269 "expanded, shell expressions being interpolated and so on."
13270 msgstr ""
13271
13272 # type: textblock
13273 #: ../src/guestfs-actions.pod:5692
13274 msgid "All the provisos about C<guestfs_command> apply to this call."
13275 msgstr ""
13276
13277 # type: =head2
13278 #: ../src/guestfs-actions.pod:5699
13279 msgid "guestfs_sh_lines"
13280 msgstr ""
13281
13282 # type: verbatim
13283 #: ../src/guestfs-actions.pod:5701
13284 #, no-wrap
13285 msgid ""
13286 " char **\n"
13287 " guestfs_sh_lines (guestfs_h *g,\n"
13288 "                   const char *command);\n"
13289 "\n"
13290 msgstr ""
13291
13292 # type: textblock
13293 #: ../src/guestfs-actions.pod:5705
13294 msgid ""
13295 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13296 "lines."
13297 msgstr ""
13298
13299 # type: textblock
13300 #: ../src/guestfs-actions.pod:5708
13301 msgid "See also: C<guestfs_command_lines>"
13302 msgstr ""
13303
13304 # type: =head2
13305 #: ../src/guestfs-actions.pod:5716
13306 msgid "guestfs_sleep"
13307 msgstr ""
13308
13309 # type: verbatim
13310 #: ../src/guestfs-actions.pod:5718
13311 #, no-wrap
13312 msgid ""
13313 " int\n"
13314 " guestfs_sleep (guestfs_h *g,\n"
13315 "                int secs);\n"
13316 "\n"
13317 msgstr ""
13318
13319 # type: textblock
13320 #: ../src/guestfs-actions.pod:5722 ../fish/guestfish-actions.pod:3816
13321 msgid "Sleep for C<secs> seconds."
13322 msgstr ""
13323
13324 # type: textblock
13325 #: ../src/guestfs-actions.pod:5726
13326 msgid "(Added in 1.0.41)"
13327 msgstr ""
13328
13329 # type: =head2
13330 #: ../src/guestfs-actions.pod:5728 ../src/guestfs-structs.pod:109
13331 msgid "guestfs_stat"
13332 msgstr ""
13333
13334 # type: verbatim
13335 #: ../src/guestfs-actions.pod:5730
13336 #, no-wrap
13337 msgid ""
13338 " struct guestfs_stat *\n"
13339 " guestfs_stat (guestfs_h *g,\n"
13340 "               const char *path);\n"
13341 "\n"
13342 msgstr ""
13343
13344 # type: textblock
13345 #: ../src/guestfs-actions.pod:5736 ../fish/guestfish-actions.pod:3824
13346 msgid "This is the same as the C<stat(2)> system call."
13347 msgstr ""
13348
13349 # type: =head2
13350 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-structs.pod:135
13351 msgid "guestfs_statvfs"
13352 msgstr ""
13353
13354 # type: verbatim
13355 #: ../src/guestfs-actions.pod:5746
13356 #, no-wrap
13357 msgid ""
13358 " struct guestfs_statvfs *\n"
13359 " guestfs_statvfs (guestfs_h *g,\n"
13360 "                  const char *path);\n"
13361 "\n"
13362 msgstr ""
13363
13364 # type: textblock
13365 #: ../src/guestfs-actions.pod:5750 ../fish/guestfish-actions.pod:3830
13366 msgid ""
13367 "Returns file system statistics for any mounted file system.  C<path> should "
13368 "be a file or directory in the mounted file system (typically it is the mount "
13369 "point itself, but it doesn't need to be)."
13370 msgstr ""
13371
13372 # type: textblock
13373 #: ../src/guestfs-actions.pod:5754 ../fish/guestfish-actions.pod:3834
13374 msgid "This is the same as the C<statvfs(2)> system call."
13375 msgstr ""
13376
13377 # type: textblock
13378 #: ../src/guestfs-actions.pod:5756
13379 msgid ""
13380 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13381 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13382 msgstr ""
13383
13384 # type: =head2
13385 #: ../src/guestfs-actions.pod:5762
13386 msgid "guestfs_strings"
13387 msgstr ""
13388
13389 # type: verbatim
13390 #: ../src/guestfs-actions.pod:5764
13391 #, no-wrap
13392 msgid ""
13393 " char **\n"
13394 " guestfs_strings (guestfs_h *g,\n"
13395 "                  const char *path);\n"
13396 "\n"
13397 msgstr ""
13398
13399 # type: textblock
13400 #: ../src/guestfs-actions.pod:5768 ../fish/guestfish-actions.pod:3840
13401 msgid ""
13402 "This runs the L<strings(1)> command on a file and returns the list of "
13403 "printable strings found."
13404 msgstr ""
13405
13406 # type: =head2
13407 #: ../src/guestfs-actions.pod:5780
13408 msgid "guestfs_strings_e"
13409 msgstr ""
13410
13411 # type: verbatim
13412 #: ../src/guestfs-actions.pod:5782
13413 #, no-wrap
13414 msgid ""
13415 " char **\n"
13416 " guestfs_strings_e (guestfs_h *g,\n"
13417 "                    const char *encoding,\n"
13418 "                    const char *path);\n"
13419 "\n"
13420 msgstr ""
13421
13422 # type: textblock
13423 #: ../src/guestfs-actions.pod:5787
13424 msgid ""
13425 "This is like the C<guestfs_strings> command, but allows you to specify the "
13426 "encoding of strings that are looked for in the source file C<path>."
13427 msgstr ""
13428
13429 # type: textblock
13430 #: ../src/guestfs-actions.pod:5791 ../fish/guestfish-actions.pod:3854
13431 msgid "Allowed encodings are:"
13432 msgstr ""
13433
13434 # type: =item
13435 #: ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:3858
13436 msgid "s"
13437 msgstr ""
13438
13439 # type: textblock
13440 #: ../src/guestfs-actions.pod:5797
13441 msgid ""
13442 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13443 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13444 msgstr ""
13445
13446 # type: =item
13447 #: ../src/guestfs-actions.pod:5800 ../fish/guestfish-actions.pod:3863
13448 msgid "S"
13449 msgstr ""
13450
13451 # type: textblock
13452 #: ../src/guestfs-actions.pod:5802 ../fish/guestfish-actions.pod:3865
13453 msgid "Single 8-bit-byte characters."
13454 msgstr ""
13455
13456 # type: =item
13457 #: ../src/guestfs-actions.pod:5804 ../fish/guestfish-actions.pod:3867
13458 msgid "b"
13459 msgstr ""
13460
13461 # type: textblock
13462 #: ../src/guestfs-actions.pod:5806 ../fish/guestfish-actions.pod:3869
13463 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13464 msgstr ""
13465
13466 # type: =item
13467 #: ../src/guestfs-actions.pod:5809 ../fish/guestfish-actions.pod:3872
13468 msgid "l (lower case letter L)"
13469 msgstr ""
13470
13471 # type: textblock
13472 #: ../src/guestfs-actions.pod:5811 ../fish/guestfish-actions.pod:3874
13473 msgid ""
13474 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13475 "examining binaries in Windows guests."
13476 msgstr ""
13477
13478 # type: =item
13479 #: ../src/guestfs-actions.pod:5814 ../fish/guestfish-actions.pod:3877
13480 msgid "B"
13481 msgstr ""
13482
13483 # type: textblock
13484 #: ../src/guestfs-actions.pod:5816 ../fish/guestfish-actions.pod:3879
13485 msgid "32-bit big endian such as UCS-4BE."
13486 msgstr ""
13487
13488 # type: =item
13489 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3881
13490 msgid "L"
13491 msgstr ""
13492
13493 # type: textblock
13494 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3883
13495 msgid "32-bit little endian such as UCS-4LE."
13496 msgstr ""
13497
13498 # type: textblock
13499 #: ../src/guestfs-actions.pod:5824 ../fish/guestfish-actions.pod:3887
13500 msgid "The returned strings are transcoded to UTF-8."
13501 msgstr ""
13502
13503 # type: =head2
13504 #: ../src/guestfs-actions.pod:5835
13505 msgid "guestfs_swapoff_device"
13506 msgstr ""
13507
13508 # type: verbatim
13509 #: ../src/guestfs-actions.pod:5837
13510 #, no-wrap
13511 msgid ""
13512 " int\n"
13513 " guestfs_swapoff_device (guestfs_h *g,\n"
13514 "                         const char *device);\n"
13515 "\n"
13516 msgstr ""
13517
13518 # type: textblock
13519 #: ../src/guestfs-actions.pod:5841
13520 msgid ""
13521 "This command disables the libguestfs appliance swap device or partition "
13522 "named C<device>.  See C<guestfs_swapon_device>."
13523 msgstr ""
13524
13525 # type: =head2
13526 #: ../src/guestfs-actions.pod:5849
13527 msgid "guestfs_swapoff_file"
13528 msgstr ""
13529
13530 # type: verbatim
13531 #: ../src/guestfs-actions.pod:5851
13532 #, no-wrap
13533 msgid ""
13534 " int\n"
13535 " guestfs_swapoff_file (guestfs_h *g,\n"
13536 "                       const char *file);\n"
13537 "\n"
13538 msgstr ""
13539
13540 # type: textblock
13541 #: ../src/guestfs-actions.pod:5855 ../fish/guestfish-actions.pod:3904
13542 msgid "This command disables the libguestfs appliance swap on file."
13543 msgstr ""
13544
13545 # type: =head2
13546 #: ../src/guestfs-actions.pod:5861
13547 msgid "guestfs_swapoff_label"
13548 msgstr ""
13549
13550 # type: verbatim
13551 #: ../src/guestfs-actions.pod:5863
13552 #, no-wrap
13553 msgid ""
13554 " int\n"
13555 " guestfs_swapoff_label (guestfs_h *g,\n"
13556 "                        const char *label);\n"
13557 "\n"
13558 msgstr ""
13559
13560 # type: textblock
13561 #: ../src/guestfs-actions.pod:5867 ../fish/guestfish-actions.pod:3910
13562 msgid ""
13563 "This command disables the libguestfs appliance swap on labeled swap "
13564 "partition."
13565 msgstr ""
13566
13567 # type: =head2
13568 #: ../src/guestfs-actions.pod:5874
13569 msgid "guestfs_swapoff_uuid"
13570 msgstr ""
13571
13572 # type: verbatim
13573 #: ../src/guestfs-actions.pod:5876
13574 #, no-wrap
13575 msgid ""
13576 " int\n"
13577 " guestfs_swapoff_uuid (guestfs_h *g,\n"
13578 "                       const char *uuid);\n"
13579 "\n"
13580 msgstr ""
13581
13582 # type: textblock
13583 #: ../src/guestfs-actions.pod:5880 ../fish/guestfish-actions.pod:3917
13584 msgid ""
13585 "This command disables the libguestfs appliance swap partition with the given "
13586 "UUID."
13587 msgstr ""
13588
13589 # type: =head2
13590 #: ../src/guestfs-actions.pod:5887
13591 msgid "guestfs_swapon_device"
13592 msgstr ""
13593
13594 # type: verbatim
13595 #: ../src/guestfs-actions.pod:5889
13596 #, no-wrap
13597 msgid ""
13598 " int\n"
13599 " guestfs_swapon_device (guestfs_h *g,\n"
13600 "                        const char *device);\n"
13601 "\n"
13602 msgstr ""
13603
13604 # type: textblock
13605 #: ../src/guestfs-actions.pod:5893
13606 msgid ""
13607 "This command enables the libguestfs appliance to use the swap device or "
13608 "partition named C<device>.  The increased memory is made available for all "
13609 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13610 msgstr ""
13611
13612 # type: textblock
13613 #: ../src/guestfs-actions.pod:5898 ../fish/guestfish-actions.pod:3929
13614 msgid ""
13615 "Note that you should not swap to existing guest swap partitions unless you "
13616 "know what you are doing.  They may contain hibernation information, or other "
13617 "information that the guest doesn't want you to trash.  You also risk leaking "
13618 "information about the host to the guest this way.  Instead, attach a new "
13619 "host device to the guest and swap on that."
13620 msgstr ""
13621
13622 # type: =head2
13623 #: ../src/guestfs-actions.pod:5909
13624 msgid "guestfs_swapon_file"
13625 msgstr ""
13626
13627 # type: verbatim
13628 #: ../src/guestfs-actions.pod:5911
13629 #, no-wrap
13630 msgid ""
13631 " int\n"
13632 " guestfs_swapon_file (guestfs_h *g,\n"
13633 "                      const char *file);\n"
13634 "\n"
13635 msgstr ""
13636
13637 # type: textblock
13638 #: ../src/guestfs-actions.pod:5915
13639 msgid ""
13640 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13641 "notes."
13642 msgstr ""
13643
13644 # type: =head2
13645 #: ../src/guestfs-actions.pod:5922
13646 msgid "guestfs_swapon_label"
13647 msgstr ""
13648
13649 # type: verbatim
13650 #: ../src/guestfs-actions.pod:5924
13651 #, no-wrap
13652 msgid ""
13653 " int\n"
13654 " guestfs_swapon_label (guestfs_h *g,\n"
13655 "                       const char *label);\n"
13656 "\n"
13657 msgstr ""
13658
13659 # type: textblock
13660 #: ../src/guestfs-actions.pod:5928
13661 msgid ""
13662 "This command enables swap to a labeled swap partition.  See "
13663 "C<guestfs_swapon_device> for other notes."
13664 msgstr ""
13665
13666 # type: =head2
13667 #: ../src/guestfs-actions.pod:5935
13668 msgid "guestfs_swapon_uuid"
13669 msgstr ""
13670
13671 # type: verbatim
13672 #: ../src/guestfs-actions.pod:5937
13673 #, no-wrap
13674 msgid ""
13675 " int\n"
13676 " guestfs_swapon_uuid (guestfs_h *g,\n"
13677 "                      const char *uuid);\n"
13678 "\n"
13679 msgstr ""
13680
13681 # type: textblock
13682 #: ../src/guestfs-actions.pod:5941
13683 msgid ""
13684 "This command enables swap to a swap partition with the given UUID.  See "
13685 "C<guestfs_swapon_device> for other notes."
13686 msgstr ""
13687
13688 # type: =head2
13689 #: ../src/guestfs-actions.pod:5948
13690 msgid "guestfs_sync"
13691 msgstr ""
13692
13693 # type: verbatim
13694 #: ../src/guestfs-actions.pod:5950
13695 #, no-wrap
13696 msgid ""
13697 " int\n"
13698 " guestfs_sync (guestfs_h *g);\n"
13699 "\n"
13700 msgstr ""
13701
13702 # type: textblock
13703 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:3961
13704 msgid ""
13705 "This syncs the disk, so that any writes are flushed through to the "
13706 "underlying disk image."
13707 msgstr ""
13708
13709 # type: textblock
13710 #: ../src/guestfs-actions.pod:5956 ../fish/guestfish-actions.pod:3964
13711 msgid ""
13712 "You should always call this if you have modified a disk image, before "
13713 "closing the handle."
13714 msgstr ""
13715
13716 # type: =head2
13717 #: ../src/guestfs-actions.pod:5963
13718 msgid "guestfs_tail"
13719 msgstr ""
13720
13721 # type: verbatim
13722 #: ../src/guestfs-actions.pod:5965
13723 #, no-wrap
13724 msgid ""
13725 " char **\n"
13726 " guestfs_tail (guestfs_h *g,\n"
13727 "               const char *path);\n"
13728 "\n"
13729 msgstr ""
13730
13731 # type: textblock
13732 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:3971
13733 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13734 msgstr ""
13735
13736 # type: =head2
13737 #: ../src/guestfs-actions.pod:5981
13738 msgid "guestfs_tail_n"
13739 msgstr ""
13740
13741 # type: verbatim
13742 #: ../src/guestfs-actions.pod:5983
13743 #, no-wrap
13744 msgid ""
13745 " char **\n"
13746 " guestfs_tail_n (guestfs_h *g,\n"
13747 "                 int nrlines,\n"
13748 "                 const char *path);\n"
13749 "\n"
13750 msgstr ""
13751
13752 # type: textblock
13753 #: ../src/guestfs-actions.pod:5988 ../fish/guestfish-actions.pod:3981
13754 msgid ""
13755 "If the parameter C<nrlines> is a positive number, this returns the last "
13756 "C<nrlines> lines of the file C<path>."
13757 msgstr ""
13758
13759 # type: textblock
13760 #: ../src/guestfs-actions.pod:5991 ../fish/guestfish-actions.pod:3984
13761 msgid ""
13762 "If the parameter C<nrlines> is a negative number, this returns lines from "
13763 "the file C<path>, starting with the C<-nrlines>th line."
13764 msgstr ""
13765
13766 # type: =head2
13767 #: ../src/guestfs-actions.pod:6005
13768 msgid "guestfs_tar_in"
13769 msgstr ""
13770
13771 # type: verbatim
13772 #: ../src/guestfs-actions.pod:6007
13773 #, no-wrap
13774 msgid ""
13775 " int\n"
13776 " guestfs_tar_in (guestfs_h *g,\n"
13777 "                 const char *tarfile,\n"
13778 "                 const char *directory);\n"
13779 "\n"
13780 msgstr ""
13781
13782 # type: textblock
13783 #: ../src/guestfs-actions.pod:6012 ../fish/guestfish-actions.pod:3996
13784 msgid ""
13785 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13786 "tar file) into C<directory>."
13787 msgstr ""
13788
13789 # type: textblock
13790 #: ../src/guestfs-actions.pod:6015
13791 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13792 msgstr ""
13793
13794 # type: textblock
13795 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6037 ../src/guestfs-actions.pod:6053 ../src/guestfs-actions.pod:6069
13796 msgid "(Added in 1.0.3)"
13797 msgstr ""
13798
13799 # type: =head2
13800 #: ../src/guestfs-actions.pod:6022
13801 msgid "guestfs_tar_out"
13802 msgstr ""
13803
13804 # type: verbatim
13805 #: ../src/guestfs-actions.pod:6024
13806 #, no-wrap
13807 msgid ""
13808 " int\n"
13809 " guestfs_tar_out (guestfs_h *g,\n"
13810 "                  const char *directory,\n"
13811 "                  const char *tarfile);\n"
13812 "\n"
13813 msgstr ""
13814
13815 # type: textblock
13816 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4008
13817 msgid ""
13818 "This command packs the contents of C<directory> and downloads it to local "
13819 "file C<tarfile>."
13820 msgstr ""
13821
13822 # type: textblock
13823 #: ../src/guestfs-actions.pod:6032
13824 msgid ""
13825 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13826 "C<guestfs_txz_out>."
13827 msgstr ""
13828
13829 # type: =head2
13830 #: ../src/guestfs-actions.pod:6039
13831 msgid "guestfs_tgz_in"
13832 msgstr ""
13833
13834 # type: verbatim
13835 #: ../src/guestfs-actions.pod:6041
13836 #, no-wrap
13837 msgid ""
13838 " int\n"
13839 " guestfs_tgz_in (guestfs_h *g,\n"
13840 "                 const char *tarball,\n"
13841 "                 const char *directory);\n"
13842 "\n"
13843 msgstr ""
13844
13845 # type: textblock
13846 #: ../src/guestfs-actions.pod:6046 ../fish/guestfish-actions.pod:4020
13847 msgid ""
13848 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13849 "tar file) into C<directory>."
13850 msgstr ""
13851
13852 # type: textblock
13853 #: ../src/guestfs-actions.pod:6049
13854 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13855 msgstr ""
13856
13857 # type: =head2
13858 #: ../src/guestfs-actions.pod:6055
13859 msgid "guestfs_tgz_out"
13860 msgstr ""
13861
13862 # type: verbatim
13863 #: ../src/guestfs-actions.pod:6057
13864 #, no-wrap
13865 msgid ""
13866 " int\n"
13867 " guestfs_tgz_out (guestfs_h *g,\n"
13868 "                  const char *directory,\n"
13869 "                  const char *tarball);\n"
13870 "\n"
13871 msgstr ""
13872
13873 # type: textblock
13874 #: ../src/guestfs-actions.pod:6062 ../fish/guestfish-actions.pod:4031
13875 msgid ""
13876 "This command packs the contents of C<directory> and downloads it to local "
13877 "file C<tarball>."
13878 msgstr ""
13879
13880 # type: textblock
13881 #: ../src/guestfs-actions.pod:6065
13882 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13883 msgstr ""
13884
13885 # type: =head2
13886 #: ../src/guestfs-actions.pod:6071
13887 msgid "guestfs_touch"
13888 msgstr ""
13889
13890 # type: verbatim
13891 #: ../src/guestfs-actions.pod:6073
13892 #, no-wrap
13893 msgid ""
13894 " int\n"
13895 " guestfs_touch (guestfs_h *g,\n"
13896 "                const char *path);\n"
13897 "\n"
13898 msgstr ""
13899
13900 # type: textblock
13901 #: ../src/guestfs-actions.pod:6077 ../fish/guestfish-actions.pod:4042
13902 msgid ""
13903 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13904 "timestamps on a file, or, if the file does not exist, to create a new "
13905 "zero-length file."
13906 msgstr ""
13907
13908 # type: textblock
13909 #: ../src/guestfs-actions.pod:6081 ../fish/guestfish-actions.pod:4046
13910 msgid ""
13911 "This command only works on regular files, and will fail on other file types "
13912 "such as directories, symbolic links, block special etc."
13913 msgstr ""
13914
13915 # type: =head2
13916 #: ../src/guestfs-actions.pod:6088
13917 msgid "guestfs_truncate"
13918 msgstr ""
13919
13920 # type: verbatim
13921 #: ../src/guestfs-actions.pod:6090
13922 #, no-wrap
13923 msgid ""
13924 " int\n"
13925 " guestfs_truncate (guestfs_h *g,\n"
13926 "                   const char *path);\n"
13927 "\n"
13928 msgstr ""
13929
13930 # type: textblock
13931 #: ../src/guestfs-actions.pod:6094 ../fish/guestfish-actions.pod:4053
13932 msgid ""
13933 "This command truncates C<path> to a zero-length file.  The file must exist "
13934 "already."
13935 msgstr ""
13936
13937 # type: =head2
13938 #: ../src/guestfs-actions.pod:6101
13939 msgid "guestfs_truncate_size"
13940 msgstr ""
13941
13942 # type: verbatim
13943 #: ../src/guestfs-actions.pod:6103
13944 #, no-wrap
13945 msgid ""
13946 " int\n"
13947 " guestfs_truncate_size (guestfs_h *g,\n"
13948 "                        const char *path,\n"
13949 "                        int64_t size);\n"
13950 "\n"
13951 msgstr ""
13952
13953 # type: textblock
13954 #: ../src/guestfs-actions.pod:6108 ../fish/guestfish-actions.pod:4060
13955 msgid ""
13956 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13957 "already."
13958 msgstr ""
13959
13960 # type: textblock
13961 #: ../src/guestfs-actions.pod:6111
13962 msgid ""
13963 "If the current file size is less than C<size> then the file is extended to "
13964 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13965 "blocks are not allocated for the file until you write to it).  To create a "
13966 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13967 msgstr ""
13968
13969 # type: =head2
13970 #: ../src/guestfs-actions.pod:6121
13971 msgid "guestfs_tune2fs_l"
13972 msgstr ""
13973
13974 # type: verbatim
13975 #: ../src/guestfs-actions.pod:6123
13976 #, no-wrap
13977 msgid ""
13978 " char **\n"
13979 " guestfs_tune2fs_l (guestfs_h *g,\n"
13980 "                    const char *device);\n"
13981 "\n"
13982 msgstr ""
13983
13984 # type: textblock
13985 #: ../src/guestfs-actions.pod:6127 ../fish/guestfish-actions.pod:4073
13986 msgid ""
13987 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13988 "C<device>."
13989 msgstr ""
13990
13991 # type: textblock
13992 #: ../src/guestfs-actions.pod:6130 ../fish/guestfish-actions.pod:4076
13993 msgid ""
13994 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13995 "for more details.  The list of fields returned isn't clearly defined, and "
13996 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13997 "and the filesystem itself."
13998 msgstr ""
13999
14000 # type: =head2
14001 #: ../src/guestfs-actions.pod:6143
14002 msgid "guestfs_txz_in"
14003 msgstr ""
14004
14005 # type: verbatim
14006 #: ../src/guestfs-actions.pod:6145
14007 #, no-wrap
14008 msgid ""
14009 " int\n"
14010 " guestfs_txz_in (guestfs_h *g,\n"
14011 "                 const char *tarball,\n"
14012 "                 const char *directory);\n"
14013 "\n"
14014 msgstr ""
14015
14016 # type: textblock
14017 #: ../src/guestfs-actions.pod:6150 ../fish/guestfish-actions.pod:4085
14018 msgid ""
14019 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14020 "tar file) into C<directory>."
14021 msgstr ""
14022
14023 # type: =head2
14024 #: ../src/guestfs-actions.pod:6157
14025 msgid "guestfs_txz_out"
14026 msgstr ""
14027
14028 # type: verbatim
14029 #: ../src/guestfs-actions.pod:6159
14030 #, no-wrap
14031 msgid ""
14032 " int\n"
14033 " guestfs_txz_out (guestfs_h *g,\n"
14034 "                  const char *directory,\n"
14035 "                  const char *tarball);\n"
14036 "\n"
14037 msgstr ""
14038
14039 # type: textblock
14040 #: ../src/guestfs-actions.pod:6164 ../fish/guestfish-actions.pod:4094
14041 msgid ""
14042 "This command packs the contents of C<directory> and downloads it to local "
14043 "file C<tarball> (as an xz compressed tar archive)."
14044 msgstr ""
14045
14046 # type: =head2
14047 #: ../src/guestfs-actions.pod:6171
14048 msgid "guestfs_umask"
14049 msgstr ""
14050
14051 # type: verbatim
14052 #: ../src/guestfs-actions.pod:6173
14053 #, no-wrap
14054 msgid ""
14055 " int\n"
14056 " guestfs_umask (guestfs_h *g,\n"
14057 "                int mask);\n"
14058 "\n"
14059 msgstr ""
14060
14061 # type: textblock
14062 #: ../src/guestfs-actions.pod:6177 ../fish/guestfish-actions.pod:4103
14063 msgid ""
14064 "This function sets the mask used for creating new files and device nodes to "
14065 "C<mask & 0777>."
14066 msgstr ""
14067
14068 # type: textblock
14069 #: ../src/guestfs-actions.pod:6180 ../fish/guestfish-actions.pod:4106
14070 msgid ""
14071 "Typical umask values would be C<022> which creates new files with "
14072 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14073 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14074 msgstr ""
14075
14076 # type: textblock
14077 #: ../src/guestfs-actions.pod:6185 ../fish/guestfish-actions.pod:4111
14078 msgid ""
14079 "The default umask is C<022>.  This is important because it means that "
14080 "directories and device nodes will be created with C<0644> or C<0755> mode "
14081 "even if you specify C<0777>."
14082 msgstr ""
14083
14084 # type: textblock
14085 #: ../src/guestfs-actions.pod:6189
14086 msgid ""
14087 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14088 "C<guestfs_mkdir>."
14089 msgstr ""
14090
14091 # type: textblock
14092 #: ../src/guestfs-actions.pod:6192 ../fish/guestfish-actions.pod:4118
14093 msgid "This call returns the previous umask."
14094 msgstr ""
14095
14096 # type: =head2
14097 #: ../src/guestfs-actions.pod:6198
14098 msgid "guestfs_umount"
14099 msgstr ""
14100
14101 # type: verbatim
14102 #: ../src/guestfs-actions.pod:6200
14103 #, no-wrap
14104 msgid ""
14105 " int\n"
14106 " guestfs_umount (guestfs_h *g,\n"
14107 "                 const char *pathordevice);\n"
14108 "\n"
14109 msgstr ""
14110
14111 # type: textblock
14112 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4126
14113 msgid ""
14114 "This unmounts the given filesystem.  The filesystem may be specified either "
14115 "by its mountpoint (path) or the device which contains the filesystem."
14116 msgstr ""
14117
14118 # type: =head2
14119 #: ../src/guestfs-actions.pod:6212
14120 msgid "guestfs_umount_all"
14121 msgstr ""
14122
14123 # type: verbatim
14124 #: ../src/guestfs-actions.pod:6214
14125 #, no-wrap
14126 msgid ""
14127 " int\n"
14128 " guestfs_umount_all (guestfs_h *g);\n"
14129 "\n"
14130 msgstr ""
14131
14132 # type: textblock
14133 #: ../src/guestfs-actions.pod:6217 ../fish/guestfish-actions.pod:4136
14134 msgid "This unmounts all mounted filesystems."
14135 msgstr ""
14136
14137 # type: textblock
14138 #: ../src/guestfs-actions.pod:6219 ../fish/guestfish-actions.pod:4138
14139 msgid "Some internal mounts are not unmounted by this call."
14140 msgstr ""
14141
14142 # type: =head2
14143 #: ../src/guestfs-actions.pod:6225
14144 msgid "guestfs_upload"
14145 msgstr ""
14146
14147 # type: verbatim
14148 #: ../src/guestfs-actions.pod:6227
14149 #, no-wrap
14150 msgid ""
14151 " int\n"
14152 " guestfs_upload (guestfs_h *g,\n"
14153 "                 const char *filename,\n"
14154 "                 const char *remotefilename);\n"
14155 "\n"
14156 msgstr ""
14157
14158 # type: textblock
14159 #: ../src/guestfs-actions.pod:6232 ../src/guestfs-actions.pod:6251 ../fish/guestfish-actions.pod:4144 ../fish/guestfish-actions.pod:4157
14160 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14161 msgstr ""
14162
14163 # type: textblock
14164 #: ../src/guestfs-actions.pod:6237
14165 msgid "See also C<guestfs_download>."
14166 msgstr ""
14167
14168 # type: =head2
14169 #: ../src/guestfs-actions.pod:6243
14170 msgid "guestfs_upload_offset"
14171 msgstr ""
14172
14173 # type: verbatim
14174 #: ../src/guestfs-actions.pod:6245
14175 #, no-wrap
14176 msgid ""
14177 " int\n"
14178 " guestfs_upload_offset (guestfs_h *g,\n"
14179 "                        const char *filename,\n"
14180 "                        const char *remotefilename,\n"
14181 "                        int64_t offset);\n"
14182 "\n"
14183 msgstr ""
14184
14185 # type: textblock
14186 #: ../src/guestfs-actions.pod:6254 ../fish/guestfish-actions.pod:4160
14187 msgid ""
14188 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14189 "The intention is to overwrite parts of existing files or devices, although "
14190 "if a non-existant file is specified then it is created with a \"hole\" "
14191 "before C<offset>.  The size of the data written is implicit in the size of "
14192 "the source C<filename>."
14193 msgstr ""
14194
14195 # type: textblock
14196 #: ../src/guestfs-actions.pod:6261
14197 msgid ""
14198 "Note that there is no limit on the amount of data that can be uploaded with "
14199 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14200 "full amount unless an error occurs."
14201 msgstr ""
14202
14203 # type: textblock
14204 #: ../src/guestfs-actions.pod:6266
14205 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14206 msgstr ""
14207
14208 # type: =head2
14209 #: ../src/guestfs-actions.pod:6272
14210 msgid "guestfs_utimens"
14211 msgstr ""
14212
14213 # type: verbatim
14214 #: ../src/guestfs-actions.pod:6274
14215 #, no-wrap
14216 msgid ""
14217 " int\n"
14218 " guestfs_utimens (guestfs_h *g,\n"
14219 "                  const char *path,\n"
14220 "                  int64_t atsecs,\n"
14221 "                  int64_t atnsecs,\n"
14222 "                  int64_t mtsecs,\n"
14223 "                  int64_t mtnsecs);\n"
14224 "\n"
14225 msgstr ""
14226
14227 # type: textblock
14228 #: ../src/guestfs-actions.pod:6282 ../fish/guestfish-actions.pod:4180
14229 msgid "This command sets the timestamps of a file with nanosecond precision."
14230 msgstr ""
14231
14232 # type: textblock
14233 #: ../src/guestfs-actions.pod:6285 ../fish/guestfish-actions.pod:4183
14234 msgid ""
14235 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14236 "from the epoch."
14237 msgstr ""
14238
14239 # type: textblock
14240 #: ../src/guestfs-actions.pod:6288 ../fish/guestfish-actions.pod:4186
14241 msgid ""
14242 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14243 "nanoseconds from the epoch."
14244 msgstr ""
14245
14246 # type: textblock
14247 #: ../src/guestfs-actions.pod:6291 ../fish/guestfish-actions.pod:4189
14248 msgid ""
14249 "If the C<*nsecs> field contains the special value C<-1> then the "
14250 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14251 "ignored in this case)."
14252 msgstr ""
14253
14254 # type: textblock
14255 #: ../src/guestfs-actions.pod:6295 ../fish/guestfish-actions.pod:4193
14256 msgid ""
14257 "If the C<*nsecs> field contains the special value C<-2> then the "
14258 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14259 "in this case)."
14260 msgstr ""
14261
14262 # type: =head2
14263 #: ../src/guestfs-actions.pod:6303 ../src/guestfs-structs.pod:175
14264 msgid "guestfs_version"
14265 msgstr ""
14266
14267 # type: verbatim
14268 #: ../src/guestfs-actions.pod:6305
14269 #, no-wrap
14270 msgid ""
14271 " struct guestfs_version *\n"
14272 " guestfs_version (guestfs_h *g);\n"
14273 "\n"
14274 msgstr ""
14275
14276 # type: textblock
14277 #: ../src/guestfs-actions.pod:6308 ../fish/guestfish-actions.pod:4201
14278 msgid "Return the libguestfs version number that the program is linked against."
14279 msgstr ""
14280
14281 # type: textblock
14282 #: ../src/guestfs-actions.pod:6311 ../fish/guestfish-actions.pod:4204
14283 msgid ""
14284 "Note that because of dynamic linking this is not necessarily the version of "
14285 "libguestfs that you compiled against.  You can compile the program, and then "
14286 "at runtime dynamically link against a completely different C<libguestfs.so> "
14287 "library."
14288 msgstr ""
14289
14290 # type: textblock
14291 #: ../src/guestfs-actions.pod:6316 ../fish/guestfish-actions.pod:4209
14292 msgid ""
14293 "This call was added in version C<1.0.58>.  In previous versions of "
14294 "libguestfs there was no way to get the version number.  From C code you can "
14295 "use dynamic linker functions to find out if this symbol exists (if it "
14296 "doesn't, then it's an earlier version)."
14297 msgstr ""
14298
14299 # type: textblock
14300 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4215
14301 msgid ""
14302 "The call returns a structure with four elements.  The first three (C<major>, "
14303 "C<minor> and C<release>) are numbers and correspond to the usual version "
14304 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14305 "but may be used for distro-specific information."
14306 msgstr ""
14307
14308 # type: textblock
14309 #: ../src/guestfs-actions.pod:6328 ../fish/guestfish-actions.pod:4221
14310 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14311 msgstr ""
14312
14313 # type: textblock
14314 #: ../src/guestfs-actions.pod:6331 ../fish/guestfish-actions.pod:4224
14315 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14316 msgstr ""
14317
14318 # type: textblock
14319 #: ../src/guestfs-actions.pod:6333
14320 msgid ""
14321 "I<Note:> Don't use this call to test for availability of features.  In "
14322 "enterprise distributions we backport features from later versions into "
14323 "earlier versions, making this an unreliable way to test for features.  Use "
14324 "C<guestfs_available> instead."
14325 msgstr ""
14326
14327 # type: textblock
14328 #: ../src/guestfs-actions.pod:6339
14329 msgid ""
14330 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14331 "error.  I<The caller must call C<guestfs_free_version> after use>."
14332 msgstr ""
14333
14334 # type: textblock
14335 #: ../src/guestfs-actions.pod:6343
14336 msgid "(Added in 1.0.58)"
14337 msgstr ""
14338
14339 # type: =head2
14340 #: ../src/guestfs-actions.pod:6345
14341 msgid "guestfs_vfs_label"
14342 msgstr ""
14343
14344 # type: verbatim
14345 #: ../src/guestfs-actions.pod:6347
14346 #, no-wrap
14347 msgid ""
14348 " char *\n"
14349 " guestfs_vfs_label (guestfs_h *g,\n"
14350 "                    const char *device);\n"
14351 "\n"
14352 msgstr ""
14353
14354 # type: textblock
14355 #: ../src/guestfs-actions.pod:6351 ../fish/guestfish-actions.pod:4236
14356 msgid "This returns the filesystem label of the filesystem on C<device>."
14357 msgstr ""
14358
14359 # type: textblock
14360 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4239
14361 msgid "If the filesystem is unlabeled, this returns the empty string."
14362 msgstr ""
14363
14364 # type: textblock
14365 #: ../src/guestfs-actions.pod:6356
14366 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14367 msgstr ""
14368
14369 # type: textblock
14370 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:6398
14371 msgid "(Added in 1.3.18)"
14372 msgstr ""
14373
14374 # type: =head2
14375 #: ../src/guestfs-actions.pod:6363
14376 msgid "guestfs_vfs_type"
14377 msgstr ""
14378
14379 # type: verbatim
14380 #: ../src/guestfs-actions.pod:6365
14381 #, no-wrap
14382 msgid ""
14383 " char *\n"
14384 " guestfs_vfs_type (guestfs_h *g,\n"
14385 "                   const char *device);\n"
14386 "\n"
14387 msgstr ""
14388
14389 # type: textblock
14390 #: ../src/guestfs-actions.pod:6369 ../fish/guestfish-actions.pod:4247
14391 msgid ""
14392 "This command gets the filesystem type corresponding to the filesystem on "
14393 "C<device>."
14394 msgstr ""
14395
14396 # type: textblock
14397 #: ../src/guestfs-actions.pod:6372 ../fish/guestfish-actions.pod:4250
14398 msgid ""
14399 "For most filesystems, the result is the name of the Linux VFS module which "
14400 "would be used to mount this filesystem if you mounted it without specifying "
14401 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14402 msgstr ""
14403
14404 # type: =head2
14405 #: ../src/guestfs-actions.pod:6382
14406 msgid "guestfs_vfs_uuid"
14407 msgstr ""
14408
14409 # type: verbatim
14410 #: ../src/guestfs-actions.pod:6384
14411 #, no-wrap
14412 msgid ""
14413 " char *\n"
14414 " guestfs_vfs_uuid (guestfs_h *g,\n"
14415 "                   const char *device);\n"
14416 "\n"
14417 msgstr ""
14418
14419 # type: textblock
14420 #: ../src/guestfs-actions.pod:6388 ../fish/guestfish-actions.pod:4259
14421 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14422 msgstr ""
14423
14424 # type: textblock
14425 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4262
14426 msgid "If the filesystem does not have a UUID, this returns the empty string."
14427 msgstr ""
14428
14429 # type: textblock
14430 #: ../src/guestfs-actions.pod:6393
14431 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14432 msgstr ""
14433
14434 # type: =head2
14435 #: ../src/guestfs-actions.pod:6400
14436 msgid "guestfs_vg_activate"
14437 msgstr ""
14438
14439 # type: verbatim
14440 #: ../src/guestfs-actions.pod:6402
14441 #, no-wrap
14442 msgid ""
14443 " int\n"
14444 " guestfs_vg_activate (guestfs_h *g,\n"
14445 "                      int activate,\n"
14446 "                      char *const *volgroups);\n"
14447 "\n"
14448 msgstr ""
14449
14450 # type: textblock
14451 #: ../src/guestfs-actions.pod:6407 ../fish/guestfish-actions.pod:4270
14452 msgid ""
14453 "This command activates or (if C<activate> is false) deactivates all logical "
14454 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14455 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14456 "deactivated, then those devices disappear."
14457 msgstr ""
14458
14459 # type: textblock
14460 #: ../src/guestfs-actions.pod:6413 ../fish/guestfish-actions.pod:4276
14461 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14462 msgstr ""
14463
14464 # type: textblock
14465 #: ../src/guestfs-actions.pod:6415 ../fish/guestfish-actions.pod:4278
14466 msgid ""
14467 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14468 "activated or deactivated."
14469 msgstr ""
14470
14471 # type: =head2
14472 #: ../src/guestfs-actions.pod:6422
14473 msgid "guestfs_vg_activate_all"
14474 msgstr ""
14475
14476 # type: verbatim
14477 #: ../src/guestfs-actions.pod:6424
14478 #, no-wrap
14479 msgid ""
14480 " int\n"
14481 " guestfs_vg_activate_all (guestfs_h *g,\n"
14482 "                          int activate);\n"
14483 "\n"
14484 msgstr ""
14485
14486 # type: textblock
14487 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4285
14488 msgid ""
14489 "This command activates or (if C<activate> is false) deactivates all logical "
14490 "volumes in all volume groups.  If activated, then they are made known to the "
14491 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
14492 "those devices disappear."
14493 msgstr ""
14494
14495 # type: textblock
14496 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4291
14497 msgid "This command is the same as running C<vgchange -a y|n>"
14498 msgstr ""
14499
14500 # type: =head2
14501 #: ../src/guestfs-actions.pod:6440
14502 msgid "guestfs_vgcreate"
14503 msgstr ""
14504
14505 # type: verbatim
14506 #: ../src/guestfs-actions.pod:6442
14507 #, no-wrap
14508 msgid ""
14509 " int\n"
14510 " guestfs_vgcreate (guestfs_h *g,\n"
14511 "                   const char *volgroup,\n"
14512 "                   char *const *physvols);\n"
14513 "\n"
14514 msgstr ""
14515
14516 # type: textblock
14517 #: ../src/guestfs-actions.pod:6447 ../fish/guestfish-actions.pod:4297
14518 msgid ""
14519 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14520 "of physical volumes C<physvols>."
14521 msgstr ""
14522
14523 # type: =head2
14524 #: ../src/guestfs-actions.pod:6454
14525 msgid "guestfs_vglvuuids"
14526 msgstr ""
14527
14528 # type: verbatim
14529 #: ../src/guestfs-actions.pod:6456
14530 #, no-wrap
14531 msgid ""
14532 " char **\n"
14533 " guestfs_vglvuuids (guestfs_h *g,\n"
14534 "                    const char *vgname);\n"
14535 "\n"
14536 msgstr ""
14537
14538 # type: textblock
14539 #: ../src/guestfs-actions.pod:6460 ../fish/guestfish-actions.pod:4304
14540 msgid ""
14541 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14542 "volumes created in this volume group."
14543 msgstr ""
14544
14545 # type: textblock
14546 #: ../src/guestfs-actions.pod:6463
14547 msgid ""
14548 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
14549 "associate logical volumes and volume groups."
14550 msgstr ""
14551
14552 # type: textblock
14553 #: ../src/guestfs-actions.pod:6466
14554 msgid "See also C<guestfs_vgpvuuids>."
14555 msgstr ""
14556
14557 # type: =head2
14558 #: ../src/guestfs-actions.pod:6474
14559 msgid "guestfs_vgpvuuids"
14560 msgstr ""
14561
14562 # type: verbatim
14563 #: ../src/guestfs-actions.pod:6476
14564 #, no-wrap
14565 msgid ""
14566 " char **\n"
14567 " guestfs_vgpvuuids (guestfs_h *g,\n"
14568 "                    const char *vgname);\n"
14569 "\n"
14570 msgstr ""
14571
14572 # type: textblock
14573 #: ../src/guestfs-actions.pod:6480 ../fish/guestfish-actions.pod:4316
14574 msgid ""
14575 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14576 "volumes that this volume group resides on."
14577 msgstr ""
14578
14579 # type: textblock
14580 #: ../src/guestfs-actions.pod:6483
14581 msgid ""
14582 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14583 "associate physical volumes and volume groups."
14584 msgstr ""
14585
14586 # type: textblock
14587 #: ../src/guestfs-actions.pod:6486
14588 msgid "See also C<guestfs_vglvuuids>."
14589 msgstr ""
14590
14591 # type: =head2
14592 #: ../src/guestfs-actions.pod:6494
14593 msgid "guestfs_vgremove"
14594 msgstr ""
14595
14596 # type: verbatim
14597 #: ../src/guestfs-actions.pod:6496
14598 #, no-wrap
14599 msgid ""
14600 " int\n"
14601 " guestfs_vgremove (guestfs_h *g,\n"
14602 "                   const char *vgname);\n"
14603 "\n"
14604 msgstr ""
14605
14606 # type: textblock
14607 #: ../src/guestfs-actions.pod:6500 ../fish/guestfish-actions.pod:4328
14608 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14609 msgstr ""
14610
14611 # type: textblock
14612 #: ../src/guestfs-actions.pod:6502 ../fish/guestfish-actions.pod:4330
14613 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14614 msgstr ""
14615
14616 # type: =head2
14617 #: ../src/guestfs-actions.pod:6509
14618 msgid "guestfs_vgrename"
14619 msgstr ""
14620
14621 # type: verbatim
14622 #: ../src/guestfs-actions.pod:6511
14623 #, no-wrap
14624 msgid ""
14625 " int\n"
14626 " guestfs_vgrename (guestfs_h *g,\n"
14627 "                   const char *volgroup,\n"
14628 "                   const char *newvolgroup);\n"
14629 "\n"
14630 msgstr ""
14631
14632 # type: textblock
14633 #: ../src/guestfs-actions.pod:6516 ../fish/guestfish-actions.pod:4337
14634 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14635 msgstr ""
14636
14637 # type: =head2
14638 #: ../src/guestfs-actions.pod:6522
14639 msgid "guestfs_vgs"
14640 msgstr ""
14641
14642 # type: verbatim
14643 #: ../src/guestfs-actions.pod:6524
14644 #, no-wrap
14645 msgid ""
14646 " char **\n"
14647 " guestfs_vgs (guestfs_h *g);\n"
14648 "\n"
14649 msgstr ""
14650
14651 # type: textblock
14652 #: ../src/guestfs-actions.pod:6527 ../fish/guestfish-actions.pod:4343
14653 msgid ""
14654 "List all the volumes groups detected.  This is the equivalent of the "
14655 "L<vgs(8)> command."
14656 msgstr ""
14657
14658 # type: textblock
14659 #: ../src/guestfs-actions.pod:6530 ../fish/guestfish-actions.pod:4346
14660 msgid ""
14661 "This returns a list of just the volume group names that were detected "
14662 "(eg. C<VolGroup00>)."
14663 msgstr ""
14664
14665 # type: textblock
14666 #: ../src/guestfs-actions.pod:6533
14667 msgid "See also C<guestfs_vgs_full>."
14668 msgstr ""
14669
14670 # type: =head2
14671 #: ../src/guestfs-actions.pod:6541
14672 msgid "guestfs_vgs_full"
14673 msgstr ""
14674
14675 # type: verbatim
14676 #: ../src/guestfs-actions.pod:6543
14677 #, no-wrap
14678 msgid ""
14679 " struct guestfs_lvm_vg_list *\n"
14680 " guestfs_vgs_full (guestfs_h *g);\n"
14681 "\n"
14682 msgstr ""
14683
14684 # type: textblock
14685 #: ../src/guestfs-actions.pod:6546 ../fish/guestfish-actions.pod:4355
14686 msgid ""
14687 "List all the volumes groups detected.  This is the equivalent of the "
14688 "L<vgs(8)> command.  The \"full\" version includes all fields."
14689 msgstr ""
14690
14691 # type: textblock
14692 #: ../src/guestfs-actions.pod:6549
14693 msgid ""
14694 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
14695 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
14696 "use>."
14697 msgstr ""
14698
14699 # type: =head2
14700 #: ../src/guestfs-actions.pod:6555
14701 msgid "guestfs_vgscan"
14702 msgstr ""
14703
14704 # type: verbatim
14705 #: ../src/guestfs-actions.pod:6557
14706 #, no-wrap
14707 msgid ""
14708 " int\n"
14709 " guestfs_vgscan (guestfs_h *g);\n"
14710 "\n"
14711 msgstr ""
14712
14713 # type: textblock
14714 #: ../src/guestfs-actions.pod:6560 ../fish/guestfish-actions.pod:4362
14715 msgid ""
14716 "This rescans all block devices and rebuilds the list of LVM physical "
14717 "volumes, volume groups and logical volumes."
14718 msgstr ""
14719
14720 # type: =head2
14721 #: ../src/guestfs-actions.pod:6567
14722 msgid "guestfs_vguuid"
14723 msgstr ""
14724
14725 # type: verbatim
14726 #: ../src/guestfs-actions.pod:6569
14727 #, no-wrap
14728 msgid ""
14729 " char *\n"
14730 " guestfs_vguuid (guestfs_h *g,\n"
14731 "                 const char *vgname);\n"
14732 "\n"
14733 msgstr ""
14734
14735 # type: textblock
14736 #: ../src/guestfs-actions.pod:6573 ../fish/guestfish-actions.pod:4369
14737 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14738 msgstr ""
14739
14740 # type: =head2
14741 #: ../src/guestfs-actions.pod:6580
14742 msgid "guestfs_wait_ready"
14743 msgstr ""
14744
14745 # type: verbatim
14746 #: ../src/guestfs-actions.pod:6582
14747 #, no-wrap
14748 msgid ""
14749 " int\n"
14750 " guestfs_wait_ready (guestfs_h *g);\n"
14751 "\n"
14752 msgstr ""
14753
14754 # type: textblock
14755 #: ../src/guestfs-actions.pod:6585
14756 msgid "This function is a no op."
14757 msgstr ""
14758
14759 # type: textblock
14760 #: ../src/guestfs-actions.pod:6587
14761 msgid ""
14762 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14763 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14764 "is no longer necessary because C<guestfs_launch> now does the waiting."
14765 msgstr ""
14766
14767 # type: textblock
14768 #: ../src/guestfs-actions.pod:6592
14769 msgid ""
14770 "If you see any calls to this function in code then you can just remove them, "
14771 "unless you want to retain compatibility with older versions of the API."
14772 msgstr ""
14773
14774 # type: =head2
14775 #: ../src/guestfs-actions.pod:6600
14776 msgid "guestfs_wc_c"
14777 msgstr ""
14778
14779 # type: verbatim
14780 #: ../src/guestfs-actions.pod:6602
14781 #, no-wrap
14782 msgid ""
14783 " int\n"
14784 " guestfs_wc_c (guestfs_h *g,\n"
14785 "               const char *path);\n"
14786 "\n"
14787 msgstr ""
14788
14789 # type: textblock
14790 #: ../src/guestfs-actions.pod:6606 ../fish/guestfish-actions.pod:4375
14791 msgid ""
14792 "This command counts the characters in a file, using the C<wc -c> external "
14793 "command."
14794 msgstr ""
14795
14796 # type: =head2
14797 #: ../src/guestfs-actions.pod:6613
14798 msgid "guestfs_wc_l"
14799 msgstr ""
14800
14801 # type: verbatim
14802 #: ../src/guestfs-actions.pod:6615
14803 #, no-wrap
14804 msgid ""
14805 " int\n"
14806 " guestfs_wc_l (guestfs_h *g,\n"
14807 "               const char *path);\n"
14808 "\n"
14809 msgstr ""
14810
14811 # type: textblock
14812 #: ../src/guestfs-actions.pod:6619 ../fish/guestfish-actions.pod:4382
14813 msgid ""
14814 "This command counts the lines in a file, using the C<wc -l> external "
14815 "command."
14816 msgstr ""
14817
14818 # type: =head2
14819 #: ../src/guestfs-actions.pod:6626
14820 msgid "guestfs_wc_w"
14821 msgstr ""
14822
14823 # type: verbatim
14824 #: ../src/guestfs-actions.pod:6628
14825 #, no-wrap
14826 msgid ""
14827 " int\n"
14828 " guestfs_wc_w (guestfs_h *g,\n"
14829 "               const char *path);\n"
14830 "\n"
14831 msgstr ""
14832
14833 # type: textblock
14834 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4389
14835 msgid ""
14836 "This command counts the words in a file, using the C<wc -w> external "
14837 "command."
14838 msgstr ""
14839
14840 # type: =head2
14841 #: ../src/guestfs-actions.pod:6639
14842 msgid "guestfs_write"
14843 msgstr ""
14844
14845 # type: verbatim
14846 #: ../src/guestfs-actions.pod:6641
14847 #, no-wrap
14848 msgid ""
14849 " int\n"
14850 " guestfs_write (guestfs_h *g,\n"
14851 "                const char *path,\n"
14852 "                const char *content,\n"
14853 "                size_t content_size);\n"
14854 "\n"
14855 msgstr ""
14856
14857 # type: textblock
14858 #: ../src/guestfs-actions.pod:6647 ../fish/guestfish-actions.pod:4396
14859 msgid ""
14860 "This call creates a file called C<path>.  The content of the file is the "
14861 "string C<content> (which can contain any 8 bit data)."
14862 msgstr ""
14863
14864 # type: =head2
14865 #: ../src/guestfs-actions.pod:6657
14866 msgid "guestfs_write_file"
14867 msgstr ""
14868
14869 # type: verbatim
14870 #: ../src/guestfs-actions.pod:6659
14871 #, no-wrap
14872 msgid ""
14873 " int\n"
14874 " guestfs_write_file (guestfs_h *g,\n"
14875 "                     const char *path,\n"
14876 "                     const char *content,\n"
14877 "                     int size);\n"
14878 "\n"
14879 msgstr ""
14880
14881 # type: textblock
14882 #: ../src/guestfs-actions.pod:6665 ../fish/guestfish-actions.pod:4406
14883 msgid ""
14884 "This call creates a file called C<path>.  The contents of the file is the "
14885 "string C<content> (which can contain any 8 bit data), with length C<size>."
14886 msgstr ""
14887
14888 # type: textblock
14889 #: ../src/guestfs-actions.pod:6669 ../fish/guestfish-actions.pod:4410
14890 msgid ""
14891 "As a special case, if C<size> is C<0> then the length is calculated using "
14892 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14893 msgstr ""
14894
14895 # type: textblock
14896 #: ../src/guestfs-actions.pod:6673 ../fish/guestfish-actions.pod:4414
14897 msgid ""
14898 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14899 "I<not> work, even if the length is specified."
14900 msgstr ""
14901
14902 # type: textblock
14903 #: ../src/guestfs-actions.pod:6681 ../fish/guestfish-actions.pod:4420
14904 msgid "This function is deprecated.  In new code, use the C<write> call instead."
14905 msgstr ""
14906
14907 # type: =head2
14908 #: ../src/guestfs-actions.pod:6690
14909 msgid "guestfs_zegrep"
14910 msgstr ""
14911
14912 # type: verbatim
14913 #: ../src/guestfs-actions.pod:6692
14914 #, no-wrap
14915 msgid ""
14916 " char **\n"
14917 " guestfs_zegrep (guestfs_h *g,\n"
14918 "                 const char *regex,\n"
14919 "                 const char *path);\n"
14920 "\n"
14921 msgstr ""
14922
14923 # type: textblock
14924 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4431
14925 msgid "This calls the external C<zegrep> program and returns the matching lines."
14926 msgstr ""
14927
14928 # type: =head2
14929 #: ../src/guestfs-actions.pod:6709
14930 msgid "guestfs_zegrepi"
14931 msgstr ""
14932
14933 # type: verbatim
14934 #: ../src/guestfs-actions.pod:6711
14935 #, no-wrap
14936 msgid ""
14937 " char **\n"
14938 " guestfs_zegrepi (guestfs_h *g,\n"
14939 "                  const char *regex,\n"
14940 "                  const char *path);\n"
14941 "\n"
14942 msgstr ""
14943
14944 # type: textblock
14945 #: ../src/guestfs-actions.pod:6716 ../fish/guestfish-actions.pod:4441
14946 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
14947 msgstr ""
14948
14949 # type: =head2
14950 #: ../src/guestfs-actions.pod:6728
14951 msgid "guestfs_zero"
14952 msgstr ""
14953
14954 # type: verbatim
14955 #: ../src/guestfs-actions.pod:6730
14956 #, no-wrap
14957 msgid ""
14958 " int\n"
14959 " guestfs_zero (guestfs_h *g,\n"
14960 "               const char *device);\n"
14961 "\n"
14962 msgstr ""
14963
14964 # type: textblock
14965 #: ../src/guestfs-actions.pod:6734 ../fish/guestfish-actions.pod:4451
14966 msgid "This command writes zeroes over the first few blocks of C<device>."
14967 msgstr ""
14968
14969 # type: textblock
14970 #: ../src/guestfs-actions.pod:6736 ../fish/guestfish-actions.pod:4453
14971 msgid ""
14972 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14973 "securely wipe the device).  It should be sufficient to remove any partition "
14974 "tables, filesystem superblocks and so on."
14975 msgstr ""
14976
14977 # type: textblock
14978 #: ../src/guestfs-actions.pod:6740
14979 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14980 msgstr ""
14981
14982 # type: =head2
14983 #: ../src/guestfs-actions.pod:6751
14984 msgid "guestfs_zero_device"
14985 msgstr ""
14986
14987 # type: verbatim
14988 #: ../src/guestfs-actions.pod:6753
14989 #, no-wrap
14990 msgid ""
14991 " int\n"
14992 " guestfs_zero_device (guestfs_h *g,\n"
14993 "                      const char *device);\n"
14994 "\n"
14995 msgstr ""
14996
14997 # type: textblock
14998 #: ../src/guestfs-actions.pod:6757
14999 msgid ""
15000 "This command writes zeroes over the entire C<device>.  Compare with "
15001 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15002 msgstr ""
15003
15004 # type: textblock
15005 #: ../src/guestfs-actions.pod:6771
15006 msgid "(Added in 1.3.1)"
15007 msgstr ""
15008
15009 # type: =head2
15010 #: ../src/guestfs-actions.pod:6773
15011 msgid "guestfs_zerofree"
15012 msgstr ""
15013
15014 # type: verbatim
15015 #: ../src/guestfs-actions.pod:6775
15016 #, no-wrap
15017 msgid ""
15018 " int\n"
15019 " guestfs_zerofree (guestfs_h *g,\n"
15020 "                   const char *device);\n"
15021 "\n"
15022 msgstr ""
15023
15024 # type: textblock
15025 #: ../src/guestfs-actions.pod:6779 ../fish/guestfish-actions.pod:4474
15026 msgid ""
15027 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15028 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15029 "possible to compress the filesystem more effectively."
15030 msgstr ""
15031
15032 # type: textblock
15033 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4479
15034 msgid "You should B<not> run this program if the filesystem is mounted."
15035 msgstr ""
15036
15037 # type: textblock
15038 #: ../src/guestfs-actions.pod:6787 ../fish/guestfish-actions.pod:4482
15039 msgid ""
15040 "It is possible that using this program can damage the filesystem or data on "
15041 "the filesystem."
15042 msgstr ""
15043
15044 # type: =head2
15045 #: ../src/guestfs-actions.pod:6794
15046 msgid "guestfs_zfgrep"
15047 msgstr ""
15048
15049 # type: verbatim
15050 #: ../src/guestfs-actions.pod:6796
15051 #, no-wrap
15052 msgid ""
15053 " char **\n"
15054 " guestfs_zfgrep (guestfs_h *g,\n"
15055 "                 const char *pattern,\n"
15056 "                 const char *path);\n"
15057 "\n"
15058 msgstr ""
15059
15060 # type: textblock
15061 #: ../src/guestfs-actions.pod:6801 ../fish/guestfish-actions.pod:4489
15062 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15063 msgstr ""
15064
15065 # type: =head2
15066 #: ../src/guestfs-actions.pod:6813
15067 msgid "guestfs_zfgrepi"
15068 msgstr ""
15069
15070 # type: verbatim
15071 #: ../src/guestfs-actions.pod:6815
15072 #, no-wrap
15073 msgid ""
15074 " char **\n"
15075 " guestfs_zfgrepi (guestfs_h *g,\n"
15076 "                  const char *pattern,\n"
15077 "                  const char *path);\n"
15078 "\n"
15079 msgstr ""
15080
15081 # type: textblock
15082 #: ../src/guestfs-actions.pod:6820 ../fish/guestfish-actions.pod:4499
15083 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15084 msgstr ""
15085
15086 # type: =head2
15087 #: ../src/guestfs-actions.pod:6832
15088 msgid "guestfs_zfile"
15089 msgstr ""
15090
15091 # type: verbatim
15092 #: ../src/guestfs-actions.pod:6834
15093 #, no-wrap
15094 msgid ""
15095 " char *\n"
15096 " guestfs_zfile (guestfs_h *g,\n"
15097 "                const char *meth,\n"
15098 "                const char *path);\n"
15099 "\n"
15100 msgstr ""
15101
15102 # type: textblock
15103 #: ../src/guestfs-actions.pod:6839 ../fish/guestfish-actions.pod:4509
15104 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15105 msgstr ""
15106
15107 # type: textblock
15108 #: ../src/guestfs-actions.pod:6842 ../fish/guestfish-actions.pod:4512
15109 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15110 msgstr ""
15111
15112 # type: textblock
15113 #: ../src/guestfs-actions.pod:6844
15114 msgid ""
15115 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15116 "files."
15117 msgstr ""
15118
15119 # type: textblock
15120 #: ../src/guestfs-actions.pod:6850 ../fish/guestfish-actions.pod:4517
15121 msgid "This function is deprecated.  In new code, use the C<file> call instead."
15122 msgstr ""
15123
15124 # type: =head2
15125 #: ../src/guestfs-actions.pod:6859
15126 msgid "guestfs_zgrep"
15127 msgstr ""
15128
15129 # type: verbatim
15130 #: ../src/guestfs-actions.pod:6861
15131 #, no-wrap
15132 msgid ""
15133 " char **\n"
15134 " guestfs_zgrep (guestfs_h *g,\n"
15135 "                const char *regex,\n"
15136 "                const char *path);\n"
15137 "\n"
15138 msgstr ""
15139
15140 # type: textblock
15141 #: ../src/guestfs-actions.pod:6866 ../fish/guestfish-actions.pod:4528
15142 msgid "This calls the external C<zgrep> program and returns the matching lines."
15143 msgstr ""
15144
15145 # type: =head2
15146 #: ../src/guestfs-actions.pod:6878
15147 msgid "guestfs_zgrepi"
15148 msgstr ""
15149
15150 # type: verbatim
15151 #: ../src/guestfs-actions.pod:6880
15152 #, no-wrap
15153 msgid ""
15154 " char **\n"
15155 " guestfs_zgrepi (guestfs_h *g,\n"
15156 "                 const char *regex,\n"
15157 "                 const char *path);\n"
15158 "\n"
15159 msgstr ""
15160
15161 # type: textblock
15162 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:4538
15163 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15164 msgstr ""
15165
15166 # type: =item
15167 #: ../src/guestfs-availability.pod:3
15168 msgid "B<augeas>"
15169 msgstr ""
15170
15171 # type: textblock
15172 #: ../src/guestfs-availability.pod:5
15173 msgid ""
15174 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15175 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15176 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15177 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15178 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15179 msgstr ""
15180
15181 # type: =item
15182 #: ../src/guestfs-availability.pod:21
15183 msgid "B<inotify>"
15184 msgstr ""
15185
15186 # type: textblock
15187 #: ../src/guestfs-availability.pod:23
15188 msgid ""
15189 "The following functions: L</guestfs_inotify_add_watch> "
15190 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15191 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15192 msgstr ""
15193
15194 # type: =item
15195 #: ../src/guestfs-availability.pod:31
15196 msgid "B<linuxfsuuid>"
15197 msgstr ""
15198
15199 # type: textblock
15200 #: ../src/guestfs-availability.pod:33
15201 msgid ""
15202 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15203 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15204 msgstr ""
15205
15206 # type: =item
15207 #: ../src/guestfs-availability.pod:40
15208 msgid "B<linuxmodules>"
15209 msgstr ""
15210
15211 # type: textblock
15212 #: ../src/guestfs-availability.pod:42
15213 msgid "The following functions: L</guestfs_modprobe>"
15214 msgstr ""
15215
15216 # type: =item
15217 #: ../src/guestfs-availability.pod:45
15218 msgid "B<linuxxattrs>"
15219 msgstr ""
15220
15221 # type: textblock
15222 #: ../src/guestfs-availability.pod:47
15223 msgid ""
15224 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
15225 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
15226 "L</guestfs_removexattr> L</guestfs_setxattr>"
15227 msgstr ""
15228
15229 # type: =item
15230 #: ../src/guestfs-availability.pod:56
15231 msgid "B<luks>"
15232 msgstr ""
15233
15234 # type: textblock
15235 #: ../src/guestfs-availability.pod:58
15236 msgid ""
15237 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
15238 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
15239 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15240 msgstr ""
15241
15242 # type: =item
15243 #: ../src/guestfs-availability.pod:67
15244 msgid "B<lvm2>"
15245 msgstr ""
15246
15247 # type: textblock
15248 #: ../src/guestfs-availability.pod:69
15249 msgid ""
15250 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
15251 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
15252 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
15253 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
15254 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
15255 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
15256 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
15257 "L</guestfs_vgs_full>"
15258 msgstr ""
15259
15260 # type: =item
15261 #: ../src/guestfs-availability.pod:92
15262 msgid "B<mknod>"
15263 msgstr ""
15264
15265 # type: textblock
15266 #: ../src/guestfs-availability.pod:94
15267 msgid ""
15268 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
15269 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
15270 msgstr ""
15271
15272 # type: =item
15273 #: ../src/guestfs-availability.pod:100
15274 msgid "B<ntfs3g>"
15275 msgstr ""
15276
15277 # type: textblock
15278 #: ../src/guestfs-availability.pod:102
15279 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15280 msgstr ""
15281
15282 # type: =item
15283 #: ../src/guestfs-availability.pod:105
15284 msgid "B<ntfsprogs>"
15285 msgstr ""
15286
15287 # type: textblock
15288 #: ../src/guestfs-availability.pod:107
15289 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15290 msgstr ""
15291
15292 # type: =item
15293 #: ../src/guestfs-availability.pod:111
15294 msgid "B<realpath>"
15295 msgstr ""
15296
15297 # type: textblock
15298 #: ../src/guestfs-availability.pod:113
15299 msgid "The following functions: L</guestfs_realpath>"
15300 msgstr ""
15301
15302 # type: =item
15303 #: ../src/guestfs-availability.pod:116
15304 msgid "B<scrub>"
15305 msgstr ""
15306
15307 # type: textblock
15308 #: ../src/guestfs-availability.pod:118
15309 msgid ""
15310 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
15311 "L</guestfs_scrub_freespace>"
15312 msgstr ""
15313
15314 # type: =item
15315 #: ../src/guestfs-availability.pod:123
15316 msgid "B<selinux>"
15317 msgstr ""
15318
15319 # type: textblock
15320 #: ../src/guestfs-availability.pod:125
15321 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15322 msgstr ""
15323
15324 # type: =item
15325 #: ../src/guestfs-availability.pod:129
15326 msgid "B<xz>"
15327 msgstr ""
15328
15329 # type: textblock
15330 #: ../src/guestfs-availability.pod:131
15331 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15332 msgstr ""
15333
15334 # type: =item
15335 #: ../src/guestfs-availability.pod:135
15336 msgid "B<zerofree>"
15337 msgstr ""
15338
15339 # type: textblock
15340 #: ../src/guestfs-availability.pod:137
15341 msgid "The following functions: L</guestfs_zerofree>"
15342 msgstr ""
15343
15344 # type: =head2
15345 #: ../src/guestfs-structs.pod:1
15346 msgid "guestfs_int_bool"
15347 msgstr ""
15348
15349 # type: verbatim
15350 #: ../src/guestfs-structs.pod:3
15351 #, no-wrap
15352 msgid ""
15353 " struct guestfs_int_bool {\n"
15354 "   int32_t i;\n"
15355 "   int32_t b;\n"
15356 " };\n"
15357 " \n"
15358 msgstr ""
15359
15360 # type: verbatim
15361 #: ../src/guestfs-structs.pod:8
15362 #, no-wrap
15363 msgid ""
15364 " struct guestfs_int_bool_list {\n"
15365 "   uint32_t len; /* Number of elements in list. */\n"
15366 "   struct guestfs_int_bool *val; /* Elements. */\n"
15367 " };\n"
15368 " \n"
15369 msgstr ""
15370
15371 # type: verbatim
15372 #: ../src/guestfs-structs.pod:13
15373 #, no-wrap
15374 msgid ""
15375 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15376 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15377 "\n"
15378 msgstr ""
15379
15380 # type: =head2
15381 #: ../src/guestfs-structs.pod:16
15382 msgid "guestfs_lvm_pv"
15383 msgstr ""
15384
15385 # type: verbatim
15386 #: ../src/guestfs-structs.pod:18
15387 #, no-wrap
15388 msgid ""
15389 " struct guestfs_lvm_pv {\n"
15390 "   char *pv_name;\n"
15391 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15392 "*/\n"
15393 "   char pv_uuid[32];\n"
15394 "   char *pv_fmt;\n"
15395 "   uint64_t pv_size;\n"
15396 "   uint64_t dev_size;\n"
15397 "   uint64_t pv_free;\n"
15398 "   uint64_t pv_used;\n"
15399 "   char *pv_attr;\n"
15400 "   int64_t pv_pe_count;\n"
15401 "   int64_t pv_pe_alloc_count;\n"
15402 "   char *pv_tags;\n"
15403 "   uint64_t pe_start;\n"
15404 "   int64_t pv_mda_count;\n"
15405 "   uint64_t pv_mda_free;\n"
15406 " };\n"
15407 " \n"
15408 msgstr ""
15409
15410 # type: verbatim
15411 #: ../src/guestfs-structs.pod:36
15412 #, no-wrap
15413 msgid ""
15414 " struct guestfs_lvm_pv_list {\n"
15415 "   uint32_t len; /* Number of elements in list. */\n"
15416 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15417 " };\n"
15418 " \n"
15419 msgstr ""
15420
15421 # type: verbatim
15422 #: ../src/guestfs-structs.pod:41
15423 #, no-wrap
15424 msgid ""
15425 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15426 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15427 "\n"
15428 msgstr ""
15429
15430 # type: =head2
15431 #: ../src/guestfs-structs.pod:44
15432 msgid "guestfs_lvm_vg"
15433 msgstr ""
15434
15435 # type: verbatim
15436 #: ../src/guestfs-structs.pod:46
15437 #, no-wrap
15438 msgid ""
15439 " struct guestfs_lvm_vg {\n"
15440 "   char *vg_name;\n"
15441 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15442 "*/\n"
15443 "   char vg_uuid[32];\n"
15444 "   char *vg_fmt;\n"
15445 "   char *vg_attr;\n"
15446 "   uint64_t vg_size;\n"
15447 "   uint64_t vg_free;\n"
15448 "   char *vg_sysid;\n"
15449 "   uint64_t vg_extent_size;\n"
15450 "   int64_t vg_extent_count;\n"
15451 "   int64_t vg_free_count;\n"
15452 "   int64_t max_lv;\n"
15453 "   int64_t max_pv;\n"
15454 "   int64_t pv_count;\n"
15455 "   int64_t lv_count;\n"
15456 "   int64_t snap_count;\n"
15457 "   int64_t vg_seqno;\n"
15458 "   char *vg_tags;\n"
15459 "   int64_t vg_mda_count;\n"
15460 "   uint64_t vg_mda_free;\n"
15461 " };\n"
15462 " \n"
15463 msgstr ""
15464
15465 # type: verbatim
15466 #: ../src/guestfs-structs.pod:69
15467 #, no-wrap
15468 msgid ""
15469 " struct guestfs_lvm_vg_list {\n"
15470 "   uint32_t len; /* Number of elements in list. */\n"
15471 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15472 " };\n"
15473 " \n"
15474 msgstr ""
15475
15476 # type: verbatim
15477 #: ../src/guestfs-structs.pod:74
15478 #, no-wrap
15479 msgid ""
15480 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
15481 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
15482 "\n"
15483 msgstr ""
15484
15485 # type: =head2
15486 #: ../src/guestfs-structs.pod:77
15487 msgid "guestfs_lvm_lv"
15488 msgstr ""
15489
15490 # type: verbatim
15491 #: ../src/guestfs-structs.pod:79
15492 #, no-wrap
15493 msgid ""
15494 " struct guestfs_lvm_lv {\n"
15495 "   char *lv_name;\n"
15496 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15497 "*/\n"
15498 "   char lv_uuid[32];\n"
15499 "   char *lv_attr;\n"
15500 "   int64_t lv_major;\n"
15501 "   int64_t lv_minor;\n"
15502 "   int64_t lv_kernel_major;\n"
15503 "   int64_t lv_kernel_minor;\n"
15504 "   uint64_t lv_size;\n"
15505 "   int64_t seg_count;\n"
15506 "   char *origin;\n"
15507 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15508 "   float snap_percent;\n"
15509 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15510 "   float copy_percent;\n"
15511 "   char *move_pv;\n"
15512 "   char *lv_tags;\n"
15513 "   char *mirror_log;\n"
15514 "   char *modules;\n"
15515 " };\n"
15516 " \n"
15517 msgstr ""
15518
15519 # type: verbatim
15520 #: ../src/guestfs-structs.pod:101
15521 #, no-wrap
15522 msgid ""
15523 " struct guestfs_lvm_lv_list {\n"
15524 "   uint32_t len; /* Number of elements in list. */\n"
15525 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
15526 " };\n"
15527 " \n"
15528 msgstr ""
15529
15530 # type: verbatim
15531 #: ../src/guestfs-structs.pod:106
15532 #, no-wrap
15533 msgid ""
15534 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
15535 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
15536 "\n"
15537 msgstr ""
15538
15539 # type: verbatim
15540 #: ../src/guestfs-structs.pod:111
15541 #, no-wrap
15542 msgid ""
15543 " struct guestfs_stat {\n"
15544 "   int64_t dev;\n"
15545 "   int64_t ino;\n"
15546 "   int64_t mode;\n"
15547 "   int64_t nlink;\n"
15548 "   int64_t uid;\n"
15549 "   int64_t gid;\n"
15550 "   int64_t rdev;\n"
15551 "   int64_t size;\n"
15552 "   int64_t blksize;\n"
15553 "   int64_t blocks;\n"
15554 "   int64_t atime;\n"
15555 "   int64_t mtime;\n"
15556 "   int64_t ctime;\n"
15557 " };\n"
15558 " \n"
15559 msgstr ""
15560
15561 # type: verbatim
15562 #: ../src/guestfs-structs.pod:127
15563 #, no-wrap
15564 msgid ""
15565 " struct guestfs_stat_list {\n"
15566 "   uint32_t len; /* Number of elements in list. */\n"
15567 "   struct guestfs_stat *val; /* Elements. */\n"
15568 " };\n"
15569 " \n"
15570 msgstr ""
15571
15572 # type: verbatim
15573 #: ../src/guestfs-structs.pod:132
15574 #, no-wrap
15575 msgid ""
15576 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
15577 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
15578 "\n"
15579 msgstr ""
15580
15581 # type: verbatim
15582 #: ../src/guestfs-structs.pod:137
15583 #, no-wrap
15584 msgid ""
15585 " struct guestfs_statvfs {\n"
15586 "   int64_t bsize;\n"
15587 "   int64_t frsize;\n"
15588 "   int64_t blocks;\n"
15589 "   int64_t bfree;\n"
15590 "   int64_t bavail;\n"
15591 "   int64_t files;\n"
15592 "   int64_t ffree;\n"
15593 "   int64_t favail;\n"
15594 "   int64_t fsid;\n"
15595 "   int64_t flag;\n"
15596 "   int64_t namemax;\n"
15597 " };\n"
15598 " \n"
15599 msgstr ""
15600
15601 # type: verbatim
15602 #: ../src/guestfs-structs.pod:151
15603 #, no-wrap
15604 msgid ""
15605 " struct guestfs_statvfs_list {\n"
15606 "   uint32_t len; /* Number of elements in list. */\n"
15607 "   struct guestfs_statvfs *val; /* Elements. */\n"
15608 " };\n"
15609 " \n"
15610 msgstr ""
15611
15612 # type: verbatim
15613 #: ../src/guestfs-structs.pod:156
15614 #, no-wrap
15615 msgid ""
15616 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15617 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15618 "\n"
15619 msgstr ""
15620
15621 # type: =head2
15622 #: ../src/guestfs-structs.pod:159
15623 msgid "guestfs_dirent"
15624 msgstr ""
15625
15626 # type: verbatim
15627 #: ../src/guestfs-structs.pod:161
15628 #, no-wrap
15629 msgid ""
15630 " struct guestfs_dirent {\n"
15631 "   int64_t ino;\n"
15632 "   char ftyp;\n"
15633 "   char *name;\n"
15634 " };\n"
15635 " \n"
15636 msgstr ""
15637
15638 # type: verbatim
15639 #: ../src/guestfs-structs.pod:167
15640 #, no-wrap
15641 msgid ""
15642 " struct guestfs_dirent_list {\n"
15643 "   uint32_t len; /* Number of elements in list. */\n"
15644 "   struct guestfs_dirent *val; /* Elements. */\n"
15645 " };\n"
15646 " \n"
15647 msgstr ""
15648
15649 # type: verbatim
15650 #: ../src/guestfs-structs.pod:172
15651 #, no-wrap
15652 msgid ""
15653 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15654 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15655 "\n"
15656 msgstr ""
15657
15658 # type: verbatim
15659 #: ../src/guestfs-structs.pod:177
15660 #, no-wrap
15661 msgid ""
15662 " struct guestfs_version {\n"
15663 "   int64_t major;\n"
15664 "   int64_t minor;\n"
15665 "   int64_t release;\n"
15666 "   char *extra;\n"
15667 " };\n"
15668 " \n"
15669 msgstr ""
15670
15671 # type: verbatim
15672 #: ../src/guestfs-structs.pod:184
15673 #, no-wrap
15674 msgid ""
15675 " struct guestfs_version_list {\n"
15676 "   uint32_t len; /* Number of elements in list. */\n"
15677 "   struct guestfs_version *val; /* Elements. */\n"
15678 " };\n"
15679 " \n"
15680 msgstr ""
15681
15682 # type: verbatim
15683 #: ../src/guestfs-structs.pod:189
15684 #, no-wrap
15685 msgid ""
15686 " void guestfs_free_version (struct guestfs_free_version *);\n"
15687 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
15688 "\n"
15689 msgstr ""
15690
15691 # type: =head2
15692 #: ../src/guestfs-structs.pod:192
15693 msgid "guestfs_xattr"
15694 msgstr ""
15695
15696 # type: verbatim
15697 #: ../src/guestfs-structs.pod:194
15698 #, no-wrap
15699 msgid ""
15700 " struct guestfs_xattr {\n"
15701 "   char *attrname;\n"
15702 "   /* The next two fields describe a byte array. */\n"
15703 "   uint32_t attrval_len;\n"
15704 "   char *attrval;\n"
15705 " };\n"
15706 " \n"
15707 msgstr ""
15708
15709 # type: verbatim
15710 #: ../src/guestfs-structs.pod:201
15711 #, no-wrap
15712 msgid ""
15713 " struct guestfs_xattr_list {\n"
15714 "   uint32_t len; /* Number of elements in list. */\n"
15715 "   struct guestfs_xattr *val; /* Elements. */\n"
15716 " };\n"
15717 " \n"
15718 msgstr ""
15719
15720 # type: verbatim
15721 #: ../src/guestfs-structs.pod:206
15722 #, no-wrap
15723 msgid ""
15724 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15725 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15726 "\n"
15727 msgstr ""
15728
15729 # type: =head2
15730 #: ../src/guestfs-structs.pod:209
15731 msgid "guestfs_inotify_event"
15732 msgstr ""
15733
15734 # type: verbatim
15735 #: ../src/guestfs-structs.pod:211
15736 #, no-wrap
15737 msgid ""
15738 " struct guestfs_inotify_event {\n"
15739 "   int64_t in_wd;\n"
15740 "   uint32_t in_mask;\n"
15741 "   uint32_t in_cookie;\n"
15742 "   char *in_name;\n"
15743 " };\n"
15744 " \n"
15745 msgstr ""
15746
15747 # type: verbatim
15748 #: ../src/guestfs-structs.pod:218
15749 #, no-wrap
15750 msgid ""
15751 " struct guestfs_inotify_event_list {\n"
15752 "   uint32_t len; /* Number of elements in list. */\n"
15753 "   struct guestfs_inotify_event *val; /* Elements. */\n"
15754 " };\n"
15755 " \n"
15756 msgstr ""
15757
15758 # type: verbatim
15759 #: ../src/guestfs-structs.pod:223
15760 #, no-wrap
15761 msgid ""
15762 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
15763 " void guestfs_free_inotify_event_list (struct "
15764 "guestfs_free_inotify_event_list *);\n"
15765 "\n"
15766 msgstr ""
15767
15768 # type: =head2
15769 #: ../src/guestfs-structs.pod:226
15770 msgid "guestfs_partition"
15771 msgstr ""
15772
15773 # type: verbatim
15774 #: ../src/guestfs-structs.pod:228
15775 #, no-wrap
15776 msgid ""
15777 " struct guestfs_partition {\n"
15778 "   int32_t part_num;\n"
15779 "   uint64_t part_start;\n"
15780 "   uint64_t part_end;\n"
15781 "   uint64_t part_size;\n"
15782 " };\n"
15783 " \n"
15784 msgstr ""
15785
15786 # type: verbatim
15787 #: ../src/guestfs-structs.pod:235
15788 #, no-wrap
15789 msgid ""
15790 " struct guestfs_partition_list {\n"
15791 "   uint32_t len; /* Number of elements in list. */\n"
15792 "   struct guestfs_partition *val; /* Elements. */\n"
15793 " };\n"
15794 " \n"
15795 msgstr ""
15796
15797 # type: verbatim
15798 #: ../src/guestfs-structs.pod:240
15799 #, no-wrap
15800 msgid ""
15801 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15802 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15803 "\n"
15804 msgstr ""
15805
15806 # type: textblock
15807 #: ../fish/guestfish.pod:5
15808 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15809 msgstr ""
15810
15811 # type: verbatim
15812 #: ../fish/guestfish.pod:9
15813 #, no-wrap
15814 msgid ""
15815 " guestfish [--options] [commands]\n"
15816 "\n"
15817 msgstr ""
15818
15819 # type: verbatim
15820 #: ../fish/guestfish.pod:11
15821 #, no-wrap
15822 msgid ""
15823 " guestfish\n"
15824 "\n"
15825 msgstr ""
15826
15827 # type: verbatim
15828 #: ../fish/guestfish.pod:13
15829 #, no-wrap
15830 msgid ""
15831 " guestfish [--ro|--rw] -a disk.img\n"
15832 "\n"
15833 msgstr ""
15834
15835 # type: verbatim
15836 #: ../fish/guestfish.pod:15
15837 #, no-wrap
15838 msgid ""
15839 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15840 "\n"
15841 msgstr ""
15842
15843 # type: verbatim
15844 #: ../fish/guestfish.pod:17
15845 #, no-wrap
15846 msgid ""
15847 " guestfish -d libvirt-domain\n"
15848 "\n"
15849 msgstr ""
15850
15851 # type: verbatim
15852 #: ../fish/guestfish.pod:19
15853 #, no-wrap
15854 msgid ""
15855 " guestfish [--ro|--rw] -a disk.img -i\n"
15856 "\n"
15857 msgstr ""
15858
15859 # type: verbatim
15860 #: ../fish/guestfish.pod:21
15861 #, no-wrap
15862 msgid ""
15863 " guestfish -d libvirt-domain -i\n"
15864 "\n"
15865 msgstr ""
15866
15867 # type: =head1
15868 #: ../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
15869 msgid "WARNING"
15870 msgstr ""
15871
15872 # type: textblock
15873 #: ../fish/guestfish.pod:25
15874 msgid ""
15875 "Using guestfish in read/write mode on live virtual machines can be "
15876 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15877 "option to use guestfish safely if the disk image or virtual machine might be "
15878 "live."
15879 msgstr ""
15880
15881 # type: textblock
15882 #: ../fish/guestfish.pod:32
15883 msgid ""
15884 "Guestfish is a shell and command-line tool for examining and modifying "
15885 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15886 "functionality of the guestfs API, see L<guestfs(3)>."
15887 msgstr ""
15888
15889 # type: textblock
15890 #: ../fish/guestfish.pod:36
15891 msgid ""
15892 "Guestfish gives you structured access to the libguestfs API, from shell "
15893 "scripts or the command line or interactively.  If you want to rescue a "
15894 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15895 "command."
15896 msgstr ""
15897
15898 # type: =head1
15899 #: ../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
15900 msgid "EXAMPLES"
15901 msgstr ""
15902
15903 # type: =head2
15904 #: ../fish/guestfish.pod:43
15905 msgid "As an interactive shell"
15906 msgstr ""
15907
15908 # type: verbatim
15909 #: ../fish/guestfish.pod:45
15910 #, no-wrap
15911 msgid ""
15912 " $ guestfish\n"
15913 " \n"
15914 msgstr ""
15915
15916 # type: verbatim
15917 #: ../fish/guestfish.pod:47
15918 #, no-wrap
15919 msgid ""
15920 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15921 " editing virtual machine filesystems.\n"
15922 " \n"
15923 msgstr ""
15924
15925 # type: verbatim
15926 #: ../fish/guestfish.pod:50
15927 #, no-wrap
15928 msgid ""
15929 " Type: 'help' for a list of commands\n"
15930 "       'man' to read the manual\n"
15931 "       'quit' to quit the shell\n"
15932 " \n"
15933 msgstr ""
15934
15935 # type: verbatim
15936 #: ../fish/guestfish.pod:54
15937 #, no-wrap
15938 msgid ""
15939 " ><fs> add-ro disk.img\n"
15940 " ><fs> run\n"
15941 " ><fs> list-filesystems\n"
15942 " /dev/sda1: ext4\n"
15943 " /dev/vg_guest/lv_root: ext4\n"
15944 " /dev/vg_guest/lv_swap: swap\n"
15945 " ><fs> mount /dev/vg_guest/lv_root /\n"
15946 " ><fs> cat /etc/fstab\n"
15947 " # /etc/fstab\n"
15948 " # Created by anaconda\n"
15949 " [...]\n"
15950 " ><fs> exit\n"
15951 "\n"
15952 msgstr ""
15953
15954 # type: =head2
15955 #: ../fish/guestfish.pod:67
15956 msgid "From shell scripts"
15957 msgstr ""
15958
15959 # type: textblock
15960 #: ../fish/guestfish.pod:69
15961 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15962 msgstr ""
15963
15964 # type: verbatim
15965 #: ../fish/guestfish.pod:71
15966 #, no-wrap
15967 msgid ""
15968 " guestfish <<_EOF_\n"
15969 " add disk.img\n"
15970 " run\n"
15971 " mount /dev/vg_guest/lv_root /\n"
15972 " write /etc/motd \"Welcome, new users\"\n"
15973 " _EOF_\n"
15974 "\n"
15975 msgstr ""
15976
15977 # type: textblock
15978 #: ../fish/guestfish.pod:78
15979 msgid "List the LVM logical volumes in a disk image:"
15980 msgstr ""
15981
15982 # type: verbatim
15983 #: ../fish/guestfish.pod:80
15984 #, no-wrap
15985 msgid ""
15986 " guestfish -a disk.img --ro <<_EOF_\n"
15987 " run\n"
15988 " lvs\n"
15989 " _EOF_\n"
15990 "\n"
15991 msgstr ""
15992
15993 # type: textblock
15994 #: ../fish/guestfish.pod:85
15995 msgid "List all the filesystems in a disk image:"
15996 msgstr ""
15997
15998 # type: verbatim
15999 #: ../fish/guestfish.pod:87
16000 #, no-wrap
16001 msgid ""
16002 " guestfish -a disk.img --ro <<_EOF_\n"
16003 " run\n"
16004 " list-filesystems\n"
16005 " _EOF_\n"
16006 "\n"
16007 msgstr ""
16008
16009 # type: =head2
16010 #: ../fish/guestfish.pod:92
16011 msgid "On one command line"
16012 msgstr ""
16013
16014 # type: textblock
16015 #: ../fish/guestfish.pod:94
16016 msgid "Update C</etc/resolv.conf> in a guest:"
16017 msgstr ""
16018
16019 # type: verbatim
16020 #: ../fish/guestfish.pod:96
16021 #, no-wrap
16022 msgid ""
16023 " guestfish \\\n"
16024 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16025 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16026 "\n"
16027 msgstr ""
16028
16029 # type: textblock
16030 #: ../fish/guestfish.pod:100
16031 msgid "Edit C</boot/grub/grub.conf> interactively:"
16032 msgstr ""
16033
16034 # type: verbatim
16035 #: ../fish/guestfish.pod:102
16036 #, no-wrap
16037 msgid ""
16038 " guestfish --rw --add disk.img \\\n"
16039 "   --mount /dev/vg_guest/lv_root \\\n"
16040 "   --mount /dev/sda1:/boot \\\n"
16041 "   edit /boot/grub/grub.conf\n"
16042 "\n"
16043 msgstr ""
16044
16045 # type: =head2
16046 #: ../fish/guestfish.pod:107
16047 msgid "Mount disks automatically"
16048 msgstr ""
16049
16050 # type: textblock
16051 #: ../fish/guestfish.pod:109
16052 msgid ""
16053 "Use the I<-i> option to automatically mount the disks from a virtual "
16054 "machine:"
16055 msgstr ""
16056
16057 # type: verbatim
16058 #: ../fish/guestfish.pod:112
16059 #, no-wrap
16060 msgid ""
16061 " guestfish --ro -a disk.img -i cat /etc/group\n"
16062 "\n"
16063 msgstr ""
16064
16065 # type: verbatim
16066 #: ../fish/guestfish.pod:114
16067 #, no-wrap
16068 msgid ""
16069 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16070 "\n"
16071 msgstr ""
16072
16073 # type: textblock
16074 #: ../fish/guestfish.pod:116
16075 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16076 msgstr ""
16077
16078 # type: verbatim
16079 #: ../fish/guestfish.pod:118
16080 #, no-wrap
16081 msgid ""
16082 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16083 "\n"
16084 msgstr ""
16085
16086 # type: =head2
16087 #: ../fish/guestfish.pod:120
16088 msgid "As a script interpreter"
16089 msgstr ""
16090
16091 # type: textblock
16092 #: ../fish/guestfish.pod:122
16093 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16094 msgstr ""
16095
16096 # type: verbatim
16097 #: ../fish/guestfish.pod:124
16098 #, no-wrap
16099 msgid ""
16100 " #!/usr/bin/guestfish -f\n"
16101 " sparse test1.img 100M\n"
16102 " run\n"
16103 " part-disk /dev/sda mbr\n"
16104 " mkfs ext2 /dev/sda1\n"
16105 "\n"
16106 msgstr ""
16107
16108 # type: =head2
16109 #: ../fish/guestfish.pod:130
16110 msgid "Start with a prepared disk"
16111 msgstr ""
16112
16113 # type: textblock
16114 #: ../fish/guestfish.pod:132
16115 msgid ""
16116 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16117 "single ext2-formatted partition:"
16118 msgstr ""
16119
16120 # type: verbatim
16121 #: ../fish/guestfish.pod:135
16122 #, no-wrap
16123 msgid ""
16124 " guestfish -N fs\n"
16125 "\n"
16126 msgstr ""
16127
16128 # type: textblock
16129 #: ../fish/guestfish.pod:137
16130 msgid "To list what is available do:"
16131 msgstr ""
16132
16133 # type: verbatim
16134 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
16135 #, no-wrap
16136 msgid ""
16137 " guestfish -N help | less\n"
16138 "\n"
16139 msgstr ""
16140
16141 # type: =head2
16142 #: ../fish/guestfish.pod:141
16143 msgid "Remote control"
16144 msgstr ""
16145
16146 # type: verbatim
16147 #: ../fish/guestfish.pod:143
16148 #, no-wrap
16149 msgid ""
16150 " eval \"`guestfish --listen`\"\n"
16151 " guestfish --remote add-ro disk.img\n"
16152 " guestfish --remote run\n"
16153 " guestfish --remote lvs\n"
16154 "\n"
16155 msgstr ""
16156
16157 # type: =head1
16158 #: ../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
16159 msgid "OPTIONS"
16160 msgstr ""
16161
16162 # type: =item
16163 #: ../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
16164 msgid "B<--help>"
16165 msgstr ""
16166
16167 # type: textblock
16168 #: ../fish/guestfish.pod:154
16169 msgid "Displays general help on options."
16170 msgstr ""
16171
16172 # type: =item
16173 #: ../fish/guestfish.pod:156
16174 msgid "B<-h> | B<--cmd-help>"
16175 msgstr ""
16176
16177 # type: textblock
16178 #: ../fish/guestfish.pod:158
16179 msgid "Lists all available guestfish commands."
16180 msgstr ""
16181
16182 # type: =item
16183 #: ../fish/guestfish.pod:160
16184 msgid "B<-h cmd> | B<--cmd-help cmd>"
16185 msgstr ""
16186
16187 # type: textblock
16188 #: ../fish/guestfish.pod:162
16189 msgid "Displays detailed help on a single command C<cmd>."
16190 msgstr ""
16191
16192 # type: =item
16193 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16194 msgid "B<-a image> | B<--add image>"
16195 msgstr ""
16196
16197 # type: textblock
16198 #: ../fish/guestfish.pod:166
16199 msgid "Add a block device or virtual machine image to the shell."
16200 msgstr ""
16201
16202 # type: textblock
16203 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16204 msgid ""
16205 "The format of the disk image is auto-detected.  To override this and force a "
16206 "particular format use the I<--format=..> option."
16207 msgstr ""
16208
16209 # type: =item
16210 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16211 msgid "B<-c URI> | B<--connect URI>"
16212 msgstr ""
16213
16214 # type: textblock
16215 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16216 msgid ""
16217 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16218 "URI to use.  The default is to use the default libvirt connection."
16219 msgstr ""
16220
16221 # type: =item
16222 #: ../fish/guestfish.pod:177
16223 msgid "B<--csh>"
16224 msgstr ""
16225
16226 # type: textblock
16227 #: ../fish/guestfish.pod:179
16228 msgid ""
16229 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16230 "section L</REMOTE CONTROL AND CSH> below."
16231 msgstr ""
16232
16233 # type: =item
16234 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16235 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16236 msgstr ""
16237
16238 # type: textblock
16239 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16240 msgid ""
16241 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16242 "used, then any libvirt domain can be used.  However in write mode, only "
16243 "libvirt domains which are shut down can be named here."
16244 msgstr ""
16245
16246 # type: =item
16247 #: ../fish/guestfish.pod:188
16248 msgid "B<-D> | B<--no-dest-paths>"
16249 msgstr ""
16250
16251 # type: textblock
16252 #: ../fish/guestfish.pod:190
16253 msgid ""
16254 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16255 "to hit the tab key to complete paths on the guest filesystem, but this "
16256 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16257 "allow this feature to be disabled."
16258 msgstr ""
16259
16260 # type: =item
16261 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16262 msgid "B<--echo-keys>"
16263 msgstr ""
16264
16265 # type: textblock
16266 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16267 msgid ""
16268 "When prompting for keys and passphrases, guestfish normally turns echoing "
16269 "off so you cannot see what you are typing.  If you are not worried about "
16270 "Tempest attacks and there is no one else in the room you can specify this "
16271 "flag to see what you are typing."
16272 msgstr ""
16273
16274 # type: =item
16275 #: ../fish/guestfish.pod:202
16276 msgid "B<-f file> | B<--file file>"
16277 msgstr ""
16278
16279 # type: textblock
16280 #: ../fish/guestfish.pod:204
16281 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16282 msgstr ""
16283
16284 # type: verbatim
16285 #: ../fish/guestfish.pod:207
16286 #, no-wrap
16287 msgid ""
16288 " #!/usr/bin/guestfish -f\n"
16289 "\n"
16290 msgstr ""
16291
16292 # type: =item
16293 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16294 msgid "B<--format=raw|qcow2|..> | B<--format>"
16295 msgstr ""
16296
16297 # type: textblock
16298 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
16299 msgid ""
16300 "The default for the I<-a> option is to auto-detect the format of the disk "
16301 "image.  Using this forces the disk format for I<-a> options which follow on "
16302 "the command line.  Using I<--format> with no argument switches back to "
16303 "auto-detection for subsequent I<-a> options."
16304 msgstr ""
16305
16306 # type: textblock
16307 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543 ../inspector/virt-inspector.pl:515
16308 msgid "For example:"
16309 msgstr ""
16310
16311 # type: verbatim
16312 #: ../fish/guestfish.pod:218
16313 #, no-wrap
16314 msgid ""
16315 " guestfish --format=raw -a disk.img\n"
16316 "\n"
16317 msgstr ""
16318
16319 # type: textblock
16320 #: ../fish/guestfish.pod:220
16321 msgid "forces raw format (no auto-detection) for C<disk.img>."
16322 msgstr ""
16323
16324 # type: verbatim
16325 #: ../fish/guestfish.pod:222
16326 #, no-wrap
16327 msgid ""
16328 " guestfish --format=raw -a disk.img --format -a another.img\n"
16329 "\n"
16330 msgstr ""
16331
16332 # type: textblock
16333 #: ../fish/guestfish.pod:224
16334 msgid ""
16335 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
16336 "auto-detection for C<another.img>."
16337 msgstr ""
16338
16339 # type: textblock
16340 #: ../fish/guestfish.pod:227
16341 msgid ""
16342 "If you have untrusted raw-format guest disk images, you should use this "
16343 "option to specify the disk format.  This avoids a possible security problem "
16344 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16345 msgstr ""
16346
16347 # type: =item
16348 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
16349 msgid "B<-i> | B<--inspector>"
16350 msgstr ""
16351
16352 # type: textblock
16353 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
16354 msgid ""
16355 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16356 "system and mount filesystems as they would be mounted on the real virtual "
16357 "machine."
16358 msgstr ""
16359
16360 # type: textblock
16361 #: ../fish/guestfish.pod:238
16362 msgid "Typical usage is either:"
16363 msgstr ""
16364
16365 # type: verbatim
16366 #: ../fish/guestfish.pod:240
16367 #, no-wrap
16368 msgid ""
16369 " guestfish -d myguest -i\n"
16370 "\n"
16371 msgstr ""
16372
16373 # type: textblock
16374 #: ../fish/guestfish.pod:242
16375 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16376 msgstr ""
16377
16378 # type: verbatim
16379 #: ../fish/guestfish.pod:244
16380 #, no-wrap
16381 msgid ""
16382 " guestfish --ro -d myguest -i\n"
16383 "\n"
16384 msgstr ""
16385
16386 # type: textblock
16387 #: ../fish/guestfish.pod:246
16388 msgid "(for active domains, readonly), or specify the block device directly:"
16389 msgstr ""
16390
16391 # type: verbatim
16392 #: ../fish/guestfish.pod:248
16393 #, no-wrap
16394 msgid ""
16395 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16396 "\n"
16397 msgstr ""
16398
16399 # type: textblock
16400 #: ../fish/guestfish.pod:250
16401 msgid ""
16402 "Note that the command line syntax changed slightly over older versions of "
16403 "guestfish.  You can still use the old syntax:"
16404 msgstr ""
16405
16406 # type: verbatim
16407 #: ../fish/guestfish.pod:253
16408 #, no-wrap
16409 msgid ""
16410 " guestfish [--ro] -i disk.img\n"
16411 "\n"
16412 msgstr ""
16413
16414 # type: verbatim
16415 #: ../fish/guestfish.pod:255
16416 #, no-wrap
16417 msgid ""
16418 " guestfish [--ro] -i libvirt-domain\n"
16419 "\n"
16420 msgstr ""
16421
16422 # type: =item
16423 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
16424 msgid "B<--keys-from-stdin>"
16425 msgstr ""
16426
16427 # type: textblock
16428 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
16429 msgid ""
16430 "Read key or passphrase parameters from stdin.  The default is to try to read "
16431 "passphrases from the user by opening C</dev/tty>."
16432 msgstr ""
16433
16434 # type: =item
16435 #: ../fish/guestfish.pod:262
16436 msgid "B<--listen>"
16437 msgstr ""
16438
16439 # type: textblock
16440 #: ../fish/guestfish.pod:264
16441 msgid ""
16442 "Fork into the background and listen for remote commands.  See section "
16443 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16444 msgstr ""
16445
16446 # type: =item
16447 #: ../fish/guestfish.pod:267
16448 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
16449 msgstr ""
16450
16451 # type: textblock
16452 #: ../fish/guestfish.pod:269
16453 msgid "Mount the named partition or logical volume on the given mountpoint."
16454 msgstr ""
16455
16456 # type: textblock
16457 #: ../fish/guestfish.pod:271
16458 msgid "If the mountpoint is omitted, it defaults to C</>."
16459 msgstr ""
16460
16461 # type: textblock
16462 #: ../fish/guestfish.pod:273
16463 msgid "You have to mount something on C</> before most commands will work."
16464 msgstr ""
16465
16466 # type: textblock
16467 #: ../fish/guestfish.pod:275
16468 msgid ""
16469 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16470 "launched."
16471 msgstr ""
16472
16473 # type: textblock
16474 #: ../fish/guestfish.pod:278
16475 msgid ""
16476 "If you don't know what filesystems a disk image contains, you can either run "
16477 "guestfish without this option, then list the partitions and LVs available "
16478 "(see L</list-partitions> and L</lvs> commands), or you can use the "
16479 "L<virt-list-filesystems(1)> program."
16480 msgstr ""
16481
16482 # type: =item
16483 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
16484 msgid "B<-n> | B<--no-sync>"
16485 msgstr ""
16486
16487 # type: textblock
16488 #: ../fish/guestfish.pod:285
16489 msgid ""
16490 "Disable autosync.  This is enabled by default.  See the discussion of "
16491 "autosync in the L<guestfs(3)> manpage."
16492 msgstr ""
16493
16494 # type: =item
16495 #: ../fish/guestfish.pod:288
16496 msgid "B<-N type> | B<--new type> | B<-N help>"
16497 msgstr ""
16498
16499 # type: textblock
16500 #: ../fish/guestfish.pod:290
16501 msgid ""
16502 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16503 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16504 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16505 "IMAGES> below."
16506 msgstr ""
16507
16508 # type: =item
16509 #: ../fish/guestfish.pod:295
16510 msgid "B<--progress-bars>"
16511 msgstr ""
16512
16513 # type: textblock
16514 #: ../fish/guestfish.pod:297
16515 msgid "Enable progress bars, even when guestfish is used non-interactively."
16516 msgstr ""
16517
16518 # type: textblock
16519 #: ../fish/guestfish.pod:299
16520 msgid ""
16521 "Progress bars are enabled by default when guestfish is used as an "
16522 "interactive shell."
16523 msgstr ""
16524
16525 # type: =item
16526 #: ../fish/guestfish.pod:302
16527 msgid "B<--no-progress-bars>"
16528 msgstr ""
16529
16530 # type: textblock
16531 #: ../fish/guestfish.pod:304
16532 msgid "Disable progress bars."
16533 msgstr ""
16534
16535 # type: =item
16536 #: ../fish/guestfish.pod:306
16537 msgid "B<--remote[=pid]>"
16538 msgstr ""
16539
16540 # type: textblock
16541 #: ../fish/guestfish.pod:308
16542 msgid ""
16543 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16544 "CONTROL GUESTFISH OVER A SOCKET> below."
16545 msgstr ""
16546
16547 # type: =item
16548 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
16549 msgid "B<-r> | B<--ro>"
16550 msgstr ""
16551
16552 # type: textblock
16553 #: ../fish/guestfish.pod:313
16554 msgid ""
16555 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
16556 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
16557 msgstr ""
16558
16559 # type: textblock
16560 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
16561 msgid ""
16562 "The option must always be used if the disk image or virtual machine might be "
16563 "running, and is generally recommended in cases where you don't need write "
16564 "access to the disk."
16565 msgstr ""
16566
16567 # type: textblock
16568 #: ../fish/guestfish.pod:320
16569 msgid ""
16570 "Note that prepared disk images created with I<-N> are not affected by the "
16571 "I<--ro> option."
16572 msgstr ""
16573
16574 # type: textblock
16575 #: ../fish/guestfish.pod:323
16576 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16577 msgstr ""
16578
16579 # type: =item
16580 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208 ../tools/virt-rescue.pl:195
16581 msgid "B<--selinux>"
16582 msgstr ""
16583
16584 # type: textblock
16585 #: ../fish/guestfish.pod:327
16586 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16587 msgstr ""
16588
16589 # type: =item
16590 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
16591 msgid "B<-v> | B<--verbose>"
16592 msgstr ""
16593
16594 # type: textblock
16595 #: ../fish/guestfish.pod:331
16596 msgid ""
16597 "Enable very verbose messages.  This is particularly useful if you find a "
16598 "bug."
16599 msgstr ""
16600
16601 # type: =item
16602 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
16603 msgid "B<-V> | B<--version>"
16604 msgstr ""
16605
16606 # type: textblock
16607 #: ../fish/guestfish.pod:336
16608 msgid "Display the guestfish / libguestfs version number and exit."
16609 msgstr ""
16610
16611 # type: =item
16612 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
16613 msgid "B<-w> | B<--rw>"
16614 msgstr ""
16615
16616 # type: textblock
16617 #: ../fish/guestfish.pod:340
16618 msgid ""
16619 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
16620 "WRITE> below."
16621 msgstr ""
16622
16623 # type: =item
16624 #: ../fish/guestfish.pod:343
16625 msgid "B<-x>"
16626 msgstr ""
16627
16628 # type: textblock
16629 #: ../fish/guestfish.pod:345
16630 msgid "Echo each command before executing it."
16631 msgstr ""
16632
16633 # type: =head1
16634 #: ../fish/guestfish.pod:349
16635 msgid "COMMANDS ON COMMAND LINE"
16636 msgstr ""
16637
16638 # type: textblock
16639 #: ../fish/guestfish.pod:351
16640 msgid "Any additional (non-option) arguments are treated as commands to execute."
16641 msgstr ""
16642
16643 # type: textblock
16644 #: ../fish/guestfish.pod:354
16645 msgid ""
16646 "Commands to execute should be separated by a colon (C<:>), where the colon "
16647 "is a separate parameter.  Thus:"
16648 msgstr ""
16649
16650 # type: verbatim
16651 #: ../fish/guestfish.pod:357
16652 #, no-wrap
16653 msgid ""
16654 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16655 "\n"
16656 msgstr ""
16657
16658 # type: textblock
16659 #: ../fish/guestfish.pod:359
16660 msgid ""
16661 "If there are no additional arguments, then we enter a shell, either an "
16662 "interactive shell with a prompt (if the input is a terminal) or a "
16663 "non-interactive shell."
16664 msgstr ""
16665
16666 # type: textblock
16667 #: ../fish/guestfish.pod:363
16668 msgid ""
16669 "In either command line mode or non-interactive shell, the first command that "
16670 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16671 "prompt) if a command fails, you can continue to enter commands."
16672 msgstr ""
16673
16674 # type: =head1
16675 #: ../fish/guestfish.pod:368
16676 msgid "USING launch (OR run)"
16677 msgstr ""
16678
16679 # type: textblock
16680 #: ../fish/guestfish.pod:370
16681 msgid ""
16682 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16683 "then launch it, then mount any disks you need, and finally issue "
16684 "actions/commands.  So the general order of the day is:"
16685 msgstr ""
16686
16687 # type: textblock
16688 #: ../fish/guestfish.pod:378
16689 msgid "add or -a/--add"
16690 msgstr ""
16691
16692 # type: textblock
16693 #: ../fish/guestfish.pod:382
16694 msgid "launch (aka run)"
16695 msgstr ""
16696
16697 # type: textblock
16698 #: ../fish/guestfish.pod:386
16699 msgid "mount or -m/--mount"
16700 msgstr ""
16701
16702 # type: textblock
16703 #: ../fish/guestfish.pod:390
16704 msgid "any other commands"
16705 msgstr ""
16706
16707 # type: textblock
16708 #: ../fish/guestfish.pod:394
16709 msgid ""
16710 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16711 "guest before mounting or performing any other commands."
16712 msgstr ""
16713
16714 # type: textblock
16715 #: ../fish/guestfish.pod:397
16716 msgid ""
16717 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16718 "I<--new> options were given then C<run> is done automatically, simply "
16719 "because guestfish can't perform the action you asked for without doing this."
16720 msgstr ""
16721
16722 # type: =head1
16723 #: ../fish/guestfish.pod:402
16724 msgid "OPENING DISKS FOR READ AND WRITE"
16725 msgstr ""
16726
16727 # type: textblock
16728 #: ../fish/guestfish.pod:404
16729 msgid ""
16730 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
16731 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
16732 "open disk images read-only or for writing."
16733 msgstr ""
16734
16735 # type: textblock
16736 #: ../fish/guestfish.pod:408
16737 msgid ""
16738 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
16739 "disk images supplied on the command line for write.  To open a disk image "
16740 "read-only you have to do I<-a image --ro>."
16741 msgstr ""
16742
16743 # type: textblock
16744 #: ../fish/guestfish.pod:412
16745 msgid ""
16746 "This matters: If you accidentally open a live VM disk image writable then "
16747 "you will cause irreversible disk corruption."
16748 msgstr ""
16749
16750 # type: textblock
16751 #: ../fish/guestfish.pod:415
16752 msgid ""
16753 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
16754 "images will be opened read-only.  You will have to either specify "
16755 "I<guestfish --rw> or change a configuration file in order to get write "
16756 "access for disk images specified by those other command line options."
16757 msgstr ""
16758
16759 # type: textblock
16760 #: ../fish/guestfish.pod:420
16761 msgid ""
16762 "This version of guestfish has a I<--rw> option which does nothing (it is "
16763 "already the default).  However it is highly recommended that you use this "
16764 "option to indicate that guestfish needs write access, and to prepare your "
16765 "scripts for the day when this option will be required for write access."
16766 msgstr ""
16767
16768 # type: textblock
16769 #: ../fish/guestfish.pod:426
16770 msgid ""
16771 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16772 "other libguestfs program apart from guestfish and guestmount."
16773 msgstr ""
16774
16775 # type: =head1
16776 #: ../fish/guestfish.pod:429
16777 msgid "QUOTING"
16778 msgstr ""
16779
16780 # type: textblock
16781 #: ../fish/guestfish.pod:431
16782 msgid ""
16783 "You can quote ordinary parameters using either single or double quotes.  For "
16784 "example:"
16785 msgstr ""
16786
16787 # type: verbatim
16788 #: ../fish/guestfish.pod:434
16789 #, no-wrap
16790 msgid ""
16791 " add \"file with a space.img\"\n"
16792 "\n"
16793 msgstr ""
16794
16795 # type: verbatim
16796 #: ../fish/guestfish.pod:436
16797 #, no-wrap
16798 msgid ""
16799 " rm '/file name'\n"
16800 "\n"
16801 msgstr ""
16802
16803 # type: verbatim
16804 #: ../fish/guestfish.pod:438
16805 #, no-wrap
16806 msgid ""
16807 " rm '/\"'\n"
16808 "\n"
16809 msgstr ""
16810
16811 # type: textblock
16812 #: ../fish/guestfish.pod:440
16813 msgid ""
16814 "A few commands require a list of strings to be passed.  For these, use a "
16815 "whitespace-separated list, enclosed in quotes.  Strings containing "
16816 "whitespace to be passed through must be enclosed in single quotes.  A "
16817 "literal single quote must be escaped with a backslash."
16818 msgstr ""
16819
16820 # type: verbatim
16821 #: ../fish/guestfish.pod:445
16822 #, no-wrap
16823 msgid ""
16824 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16825 " command \"/bin/echo 'foo      bar'\"\n"
16826 " command \"/bin/echo \\'foo\\'\"\n"
16827 "\n"
16828 msgstr ""
16829
16830 # type: =head1
16831 #: ../fish/guestfish.pod:449
16832 msgid "OPTIONAL ARGUMENTS"
16833 msgstr ""
16834
16835 # type: textblock
16836 #: ../fish/guestfish.pod:451
16837 msgid ""
16838 "Some commands take optional arguments.  These arguments appear in this "
16839 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16840 msgstr ""
16841
16842 # type: verbatim
16843 #: ../fish/guestfish.pod:455
16844 #, no-wrap
16845 msgid ""
16846 " add-drive-opts filename\n"
16847 "\n"
16848 msgstr ""
16849
16850 # type: verbatim
16851 #: ../fish/guestfish.pod:457
16852 #, no-wrap
16853 msgid ""
16854 " add-drive-opts filename readonly:true\n"
16855 "\n"
16856 msgstr ""
16857
16858 # type: verbatim
16859 #: ../fish/guestfish.pod:459
16860 #, no-wrap
16861 msgid ""
16862 " add-drive-opts filename format:qcow2 readonly:false\n"
16863 "\n"
16864 msgstr ""
16865
16866 # type: textblock
16867 #: ../fish/guestfish.pod:461
16868 msgid ""
16869 "Each optional argument can appear at most once.  All optional arguments must "
16870 "appear after the required ones."
16871 msgstr ""
16872
16873 # type: =head1
16874 #: ../fish/guestfish.pod:464
16875 msgid "NUMBERS"
16876 msgstr ""
16877
16878 # type: textblock
16879 #: ../fish/guestfish.pod:466
16880 msgid "This section applies to all commands which can take integers as parameters."
16881 msgstr ""
16882
16883 # type: =head2
16884 #: ../fish/guestfish.pod:469
16885 msgid "SIZE SUFFIX"
16886 msgstr ""
16887
16888 # type: textblock
16889 #: ../fish/guestfish.pod:471
16890 msgid ""
16891 "When the command takes a parameter measured in bytes, you can use one of the "
16892 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16893 msgstr ""
16894
16895 # type: =item
16896 #: ../fish/guestfish.pod:477
16897 msgid "B<k> or B<K> or B<KiB>"
16898 msgstr ""
16899
16900 # type: textblock
16901 #: ../fish/guestfish.pod:479
16902 msgid "The size in kilobytes (multiplied by 1024)."
16903 msgstr ""
16904
16905 # type: =item
16906 #: ../fish/guestfish.pod:481
16907 msgid "B<KB>"
16908 msgstr ""
16909
16910 # type: textblock
16911 #: ../fish/guestfish.pod:483
16912 msgid "The size in SI 1000 byte units."
16913 msgstr ""
16914
16915 # type: =item
16916 #: ../fish/guestfish.pod:485
16917 msgid "B<M> or B<MiB>"
16918 msgstr ""
16919
16920 # type: textblock
16921 #: ../fish/guestfish.pod:487
16922 msgid "The size in megabytes (multiplied by 1048576)."
16923 msgstr ""
16924
16925 # type: =item
16926 #: ../fish/guestfish.pod:489
16927 msgid "B<MB>"
16928 msgstr ""
16929
16930 # type: textblock
16931 #: ../fish/guestfish.pod:491
16932 msgid "The size in SI 1000000 byte units."
16933 msgstr ""
16934
16935 # type: =item
16936 #: ../fish/guestfish.pod:493
16937 msgid "B<G> or B<GiB>"
16938 msgstr ""
16939
16940 # type: textblock
16941 #: ../fish/guestfish.pod:495
16942 msgid "The size in gigabytes (multiplied by 2**30)."
16943 msgstr ""
16944
16945 # type: =item
16946 #: ../fish/guestfish.pod:497
16947 msgid "B<GB>"
16948 msgstr ""
16949
16950 # type: textblock
16951 #: ../fish/guestfish.pod:499
16952 msgid "The size in SI 10**9 byte units."
16953 msgstr ""
16954
16955 # type: =item
16956 #: ../fish/guestfish.pod:501
16957 msgid "B<T> or B<TiB>"
16958 msgstr ""
16959
16960 # type: textblock
16961 #: ../fish/guestfish.pod:503
16962 msgid "The size in terabytes (multiplied by 2**40)."
16963 msgstr ""
16964
16965 # type: =item
16966 #: ../fish/guestfish.pod:505
16967 msgid "B<TB>"
16968 msgstr ""
16969
16970 # type: textblock
16971 #: ../fish/guestfish.pod:507
16972 msgid "The size in SI 10**12 byte units."
16973 msgstr ""
16974
16975 # type: =item
16976 #: ../fish/guestfish.pod:509
16977 msgid "B<P> or B<PiB>"
16978 msgstr ""
16979
16980 # type: textblock
16981 #: ../fish/guestfish.pod:511
16982 msgid "The size in petabytes (multiplied by 2**50)."
16983 msgstr ""
16984
16985 # type: =item
16986 #: ../fish/guestfish.pod:513
16987 msgid "B<PB>"
16988 msgstr ""
16989
16990 # type: textblock
16991 #: ../fish/guestfish.pod:515
16992 msgid "The size in SI 10**15 byte units."
16993 msgstr ""
16994
16995 # type: =item
16996 #: ../fish/guestfish.pod:517
16997 msgid "B<E> or B<EiB>"
16998 msgstr ""
16999
17000 # type: textblock
17001 #: ../fish/guestfish.pod:519
17002 msgid "The size in exabytes (multiplied by 2**60)."
17003 msgstr ""
17004
17005 # type: =item
17006 #: ../fish/guestfish.pod:521
17007 msgid "B<EB>"
17008 msgstr ""
17009
17010 # type: textblock
17011 #: ../fish/guestfish.pod:523
17012 msgid "The size in SI 10**18 byte units."
17013 msgstr ""
17014
17015 # type: =item
17016 #: ../fish/guestfish.pod:525
17017 msgid "B<Z> or B<ZiB>"
17018 msgstr ""
17019
17020 # type: textblock
17021 #: ../fish/guestfish.pod:527
17022 msgid "The size in zettabytes (multiplied by 2**70)."
17023 msgstr ""
17024
17025 # type: =item
17026 #: ../fish/guestfish.pod:529
17027 msgid "B<ZB>"
17028 msgstr ""
17029
17030 # type: textblock
17031 #: ../fish/guestfish.pod:531
17032 msgid "The size in SI 10**21 byte units."
17033 msgstr ""
17034
17035 # type: =item
17036 #: ../fish/guestfish.pod:533
17037 msgid "B<Y> or B<YiB>"
17038 msgstr ""
17039
17040 # type: textblock
17041 #: ../fish/guestfish.pod:535
17042 msgid "The size in yottabytes (multiplied by 2**80)."
17043 msgstr ""
17044
17045 # type: =item
17046 #: ../fish/guestfish.pod:537
17047 msgid "B<YB>"
17048 msgstr ""
17049
17050 # type: textblock
17051 #: ../fish/guestfish.pod:539
17052 msgid "The size in SI 10**24 byte units."
17053 msgstr ""
17054
17055 # type: verbatim
17056 #: ../fish/guestfish.pod:545
17057 #, no-wrap
17058 msgid ""
17059 " truncate-size /file 1G\n"
17060 "\n"
17061 msgstr ""
17062
17063 # type: textblock
17064 #: ../fish/guestfish.pod:547
17065 msgid "would truncate the file to 1 gigabyte."
17066 msgstr ""
17067
17068 # type: textblock
17069 #: ../fish/guestfish.pod:549
17070 msgid ""
17071 "Be careful because a few commands take sizes in kilobytes or megabytes "
17072 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17073 "Adding a suffix will probably not do what you expect."
17074 msgstr ""
17075
17076 # type: =head2
17077 #: ../fish/guestfish.pod:553
17078 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17079 msgstr ""
17080
17081 # type: textblock
17082 #: ../fish/guestfish.pod:555
17083 msgid ""
17084 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17085 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17086 msgstr ""
17087
17088 # type: verbatim
17089 #: ../fish/guestfish.pod:558
17090 #, no-wrap
17091 msgid ""
17092 " 1234      decimal number 1234\n"
17093 " 02322     octal number, equivalent to decimal 1234\n"
17094 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17095 "\n"
17096 msgstr ""
17097
17098 # type: textblock
17099 #: ../fish/guestfish.pod:562
17100 msgid ""
17101 "When using the C<chmod> command, you almost always want to specify an octal "
17102 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17103 "L<chmod(1)> program):"
17104 msgstr ""
17105
17106 # type: verbatim
17107 #: ../fish/guestfish.pod:566
17108 #, no-wrap
17109 msgid ""
17110 " chmod 0777 /public  # OK\n"
17111 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17112 "\n"
17113 msgstr ""
17114
17115 # type: textblock
17116 #: ../fish/guestfish.pod:569
17117 msgid ""
17118 "Commands that return numbers usually print them in decimal, but some "
17119 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17120 "octal, preceeded by C<0>)."
17121 msgstr ""
17122
17123 # type: =head1
17124 #: ../fish/guestfish.pod:573
17125 msgid "WILDCARDS AND GLOBBING"
17126 msgstr ""
17127
17128 # type: textblock
17129 #: ../fish/guestfish.pod:575
17130 msgid ""
17131 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17132 "(globbing) by default.  So for example the following will not do what you "
17133 "expect:"
17134 msgstr ""
17135
17136 # type: verbatim
17137 #: ../fish/guestfish.pod:579
17138 #, no-wrap
17139 msgid ""
17140 " rm-rf /home/*\n"
17141 "\n"
17142 msgstr ""
17143
17144 # type: textblock
17145 #: ../fish/guestfish.pod:581
17146 msgid ""
17147 "Assuming you don't have a directory called literally C</home/*> then the "
17148 "above command will return an error."
17149 msgstr ""
17150
17151 # type: textblock
17152 #: ../fish/guestfish.pod:584
17153 msgid "To perform wildcard expansion, use the C<glob> command."
17154 msgstr ""
17155
17156 # type: verbatim
17157 #: ../fish/guestfish.pod:586
17158 #, no-wrap
17159 msgid ""
17160 " glob rm-rf /home/*\n"
17161 "\n"
17162 msgstr ""
17163
17164 # type: textblock
17165 #: ../fish/guestfish.pod:588
17166 msgid ""
17167 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17168 "many times), equivalent to:"
17169 msgstr ""
17170
17171 # type: verbatim
17172 #: ../fish/guestfish.pod:591
17173 #, no-wrap
17174 msgid ""
17175 " rm-rf /home/jim\n"
17176 " rm-rf /home/joe\n"
17177 " rm-rf /home/mary\n"
17178 "\n"
17179 msgstr ""
17180
17181 # type: textblock
17182 #: ../fish/guestfish.pod:595
17183 msgid "C<glob> only works on simple guest paths and not on device names."
17184 msgstr ""
17185
17186 # type: textblock
17187 #: ../fish/guestfish.pod:597
17188 msgid ""
17189 "If you have several parameters, each containing a wildcard, then glob will "
17190 "perform a Cartesian product."
17191 msgstr ""
17192
17193 # type: =head1
17194 #: ../fish/guestfish.pod:600
17195 msgid "COMMENTS"
17196 msgstr ""
17197
17198 # type: textblock
17199 #: ../fish/guestfish.pod:602
17200 msgid ""
17201 "Any line which starts with a I<#> character is treated as a comment and "
17202 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17203 "a command.  For example:"
17204 msgstr ""
17205
17206 # type: verbatim
17207 #: ../fish/guestfish.pod:606
17208 #, no-wrap
17209 msgid ""
17210 " # this is a comment\n"
17211 "         # this is a comment\n"
17212 " foo # NOT a comment\n"
17213 "\n"
17214 msgstr ""
17215
17216 # type: textblock
17217 #: ../fish/guestfish.pod:610
17218 msgid "Blank lines are also ignored."
17219 msgstr ""
17220
17221 # type: =head1
17222 #: ../fish/guestfish.pod:612
17223 msgid "RUNNING COMMANDS LOCALLY"
17224 msgstr ""
17225
17226 # type: textblock
17227 #: ../fish/guestfish.pod:614
17228 msgid ""
17229 "Any line which starts with a I<!> character is treated as a command sent to "
17230 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17231 msgstr ""
17232
17233 # type: verbatim
17234 #: ../fish/guestfish.pod:618
17235 #, no-wrap
17236 msgid ""
17237 " !mkdir local\n"
17238 " tgz-out /remote local/remote-data.tar.gz\n"
17239 "\n"
17240 msgstr ""
17241
17242 # type: textblock
17243 #: ../fish/guestfish.pod:621
17244 msgid ""
17245 "will create a directory C<local> on the host, and then export the contents "
17246 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17247 "(See C<tgz-out>)."
17248 msgstr ""
17249
17250 # type: textblock
17251 #: ../fish/guestfish.pod:625
17252 msgid ""
17253 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17254 "effect, due to the way that subprocesses work in Unix."
17255 msgstr ""
17256
17257 # type: =head1
17258 #: ../fish/guestfish.pod:628
17259 msgid "PIPES"
17260 msgstr ""
17261
17262 # type: textblock
17263 #: ../fish/guestfish.pod:630
17264 msgid ""
17265 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17266 "command (a guestfish command) to the second command (any host command).  For "
17267 "example:"
17268 msgstr ""
17269
17270 # type: verbatim
17271 #: ../fish/guestfish.pod:634
17272 #, no-wrap
17273 msgid ""
17274 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17275 "\n"
17276 msgstr ""
17277
17278 # type: textblock
17279 #: ../fish/guestfish.pod:636
17280 msgid ""
17281 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17282 "program).  The above command would list all accounts in the guest filesystem "
17283 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17284 msgstr ""
17285
17286 # type: verbatim
17287 #: ../fish/guestfish.pod:641
17288 #, no-wrap
17289 msgid ""
17290 " hexdump /bin/ls | head\n"
17291 " list-devices | tail -1\n"
17292 " tgz-out / - | tar ztf -\n"
17293 "\n"
17294 msgstr ""
17295
17296 # type: textblock
17297 #: ../fish/guestfish.pod:645
17298 msgid ""
17299 "The space before the pipe symbol is required, any space after the pipe "
17300 "symbol is optional.  Everything after the pipe symbol is just passed "
17301 "straight to the host shell, so it can contain redirections, globs and "
17302 "anything else that makes sense on the host side."
17303 msgstr ""
17304
17305 # type: textblock
17306 #: ../fish/guestfish.pod:650
17307 msgid ""
17308 "To use a literal argument which begins with a pipe symbol, you have to quote "
17309 "it, eg:"
17310 msgstr ""
17311
17312 # type: verbatim
17313 #: ../fish/guestfish.pod:653
17314 #, no-wrap
17315 msgid ""
17316 " echo \"|\"\n"
17317 "\n"
17318 msgstr ""
17319
17320 # type: =head1
17321 #: ../fish/guestfish.pod:655
17322 msgid "HOME DIRECTORIES"
17323 msgstr ""
17324
17325 # type: textblock
17326 #: ../fish/guestfish.pod:657
17327 msgid ""
17328 "If a parameter starts with the character C<~> then the tilde may be expanded "
17329 "as a home directory path (either C<~> for the current user's home directory, "
17330 "or C<~user> for another user)."
17331 msgstr ""
17332
17333 # type: textblock
17334 #: ../fish/guestfish.pod:661
17335 msgid ""
17336 "Note that home directory expansion happens for users known I<on the host>, "
17337 "not in the guest filesystem."
17338 msgstr ""
17339
17340 # type: textblock
17341 #: ../fish/guestfish.pod:664
17342 msgid ""
17343 "To use a literal argument which begins with a tilde, you have to quote it, "
17344 "eg:"
17345 msgstr ""
17346
17347 # type: verbatim
17348 #: ../fish/guestfish.pod:667
17349 #, no-wrap
17350 msgid ""
17351 " echo \"~\"\n"
17352 "\n"
17353 msgstr ""
17354
17355 # type: textblock
17356 #: ../fish/guestfish.pod:671
17357 msgid ""
17358 "Libguestfs has some support for Linux guests encrypted according to the "
17359 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17360 "disk encryption systems used by modern Linux guests.  Currently only "
17361 "LVM-on-LUKS is supported."
17362 msgstr ""
17363
17364 # type: textblock
17365 #: ../fish/guestfish.pod:676
17366 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17367 msgstr ""
17368
17369 # type: verbatim
17370 #: ../fish/guestfish.pod:678
17371 #, no-wrap
17372 msgid ""
17373 " ><fs> vfs-type /dev/sda2\n"
17374 " crypto_LUKS\n"
17375 "\n"
17376 msgstr ""
17377
17378 # type: textblock
17379 #: ../fish/guestfish.pod:681
17380 msgid ""
17381 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17382 "device called C</dev/mapper/luksdev>."
17383 msgstr ""
17384
17385 # type: verbatim
17386 #: ../fish/guestfish.pod:684
17387 #, no-wrap
17388 msgid ""
17389 " ><fs> luks-open /dev/sda2 luksdev\n"
17390 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17391 "\n"
17392 msgstr ""
17393
17394 # type: textblock
17395 #: ../fish/guestfish.pod:687
17396 msgid ""
17397 "Finally you have to tell LVM to scan for volume groups on the newly created "
17398 "mapper device:"
17399 msgstr ""
17400
17401 # type: verbatim
17402 #: ../fish/guestfish.pod:690
17403 #, no-wrap
17404 msgid ""
17405 " vgscan\n"
17406 " vg-activate-all true\n"
17407 "\n"
17408 msgstr ""
17409
17410 # type: textblock
17411 #: ../fish/guestfish.pod:693
17412 msgid "The logical volume(s) can now be mounted in the usual way."
17413 msgstr ""
17414
17415 # type: textblock
17416 #: ../fish/guestfish.pod:695
17417 msgid ""
17418 "Before closing a LUKS device you must unmount any logical volumes on it and "
17419 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17420 "one.  Then you can close the mapper device:"
17421 msgstr ""
17422
17423 # type: verbatim
17424 #: ../fish/guestfish.pod:699
17425 #, no-wrap
17426 msgid ""
17427 " vg-activate false /dev/VG\n"
17428 " luks-close /dev/mapper/luksdev\n"
17429 "\n"
17430 msgstr ""
17431
17432 # type: =head1
17433 #: ../fish/guestfish.pod:702
17434 msgid "WINDOWS PATHS"
17435 msgstr ""
17436
17437 # type: textblock
17438 #: ../fish/guestfish.pod:704
17439 msgid ""
17440 "If a path is prefixed with C<win:> then you can use Windows-style paths "
17441 "(with some limitations).  The following commands are equivalent:"
17442 msgstr ""
17443
17444 # type: verbatim
17445 #: ../fish/guestfish.pod:707
17446 #, no-wrap
17447 msgid ""
17448 " file /WINDOWS/system32/config/system.LOG\n"
17449 "\n"
17450 msgstr ""
17451
17452 # type: verbatim
17453 #: ../fish/guestfish.pod:709
17454 #, no-wrap
17455 msgid ""
17456 " file win:/windows/system32/config/system.log\n"
17457 "\n"
17458 msgstr ""
17459
17460 # type: verbatim
17461 #: ../fish/guestfish.pod:711
17462 #, no-wrap
17463 msgid ""
17464 " file win:\\windows\\system32\\config\\system.log\n"
17465 "\n"
17466 msgstr ""
17467
17468 # type: verbatim
17469 #: ../fish/guestfish.pod:713
17470 #, no-wrap
17471 msgid ""
17472 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
17473 "\n"
17474 msgstr ""
17475
17476 # type: textblock
17477 #: ../fish/guestfish.pod:715
17478 msgid ""
17479 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
17480 "handles case insensitivity like Windows would.  This only works in argument "
17481 "positions that expect a path."
17482 msgstr ""
17483
17484 # type: =head1
17485 #: ../fish/guestfish.pod:719
17486 msgid "UPLOADING AND DOWNLOADING FILES"
17487 msgstr ""
17488
17489 # type: textblock
17490 #: ../fish/guestfish.pod:721
17491 msgid ""
17492 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17493 "others which upload from or download to a local file, you can use the "
17494 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17495 msgstr ""
17496
17497 # type: verbatim
17498 #: ../fish/guestfish.pod:725
17499 #, no-wrap
17500 msgid ""
17501 " upload - /foo\n"
17502 "\n"
17503 msgstr ""
17504
17505 # type: textblock
17506 #: ../fish/guestfish.pod:727
17507 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17508 msgstr ""
17509
17510 # type: verbatim
17511 #: ../fish/guestfish.pod:730
17512 #, no-wrap
17513 msgid ""
17514 " tar-out /etc - | tar tf -\n"
17515 "\n"
17516 msgstr ""
17517
17518 # type: textblock
17519 #: ../fish/guestfish.pod:732
17520 msgid ""
17521 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17522 "command (see L</PIPES>)."
17523 msgstr ""
17524
17525 # type: textblock
17526 #: ../fish/guestfish.pod:735
17527 msgid ""
17528 "When using C<-> to read from stdin, the input is read up to the end of "
17529 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17530 "some arbitrary end marker:"
17531 msgstr ""
17532
17533 # type: verbatim
17534 #: ../fish/guestfish.pod:739
17535 #, no-wrap
17536 msgid ""
17537 " upload -<<END /foo\n"
17538 " input line 1\n"
17539 " input line 2\n"
17540 " input line 3\n"
17541 " END\n"
17542 "\n"
17543 msgstr ""
17544
17545 # type: textblock
17546 #: ../fish/guestfish.pod:745
17547 msgid ""
17548 "Any string of characters can be used instead of C<END>.  The end marker must "
17549 "appear on a line of its own, without any preceeding or following characters "
17550 "(not even spaces)."
17551 msgstr ""
17552
17553 # type: textblock
17554 #: ../fish/guestfish.pod:749
17555 msgid ""
17556 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17557 "upload local files (so-called \"FileIn\" parameters in the generator)."
17558 msgstr ""
17559
17560 # type: =head1
17561 #: ../fish/guestfish.pod:752
17562 msgid "EXIT ON ERROR BEHAVIOUR"
17563 msgstr ""
17564
17565 # type: textblock
17566 #: ../fish/guestfish.pod:754
17567 msgid ""
17568 "By default, guestfish will ignore any errors when in interactive mode "
17569 "(ie. taking commands from a human over a tty), and will exit on the first "
17570 "error in non-interactive mode (scripts, commands given on the command line)."
17571 msgstr ""
17572
17573 # type: textblock
17574 #: ../fish/guestfish.pod:759
17575 msgid ""
17576 "If you prefix a command with a I<-> character, then that command will not "
17577 "cause guestfish to exit, even if that (one) command returns an error."
17578 msgstr ""
17579
17580 # type: =head1
17581 #: ../fish/guestfish.pod:763
17582 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17583 msgstr ""
17584
17585 # type: textblock
17586 #: ../fish/guestfish.pod:765
17587 msgid ""
17588 "Guestfish can be remote-controlled over a socket.  This is useful "
17589 "particularly in shell scripts where you want to make several different "
17590 "changes to a filesystem, but you don't want the overhead of starting up a "
17591 "guestfish process each time."
17592 msgstr ""
17593
17594 # type: textblock
17595 #: ../fish/guestfish.pod:770
17596 msgid "Start a guestfish server process using:"
17597 msgstr ""
17598
17599 # type: verbatim
17600 #: ../fish/guestfish.pod:772
17601 #, no-wrap
17602 msgid ""
17603 " eval \"`guestfish --listen`\"\n"
17604 "\n"
17605 msgstr ""
17606
17607 # type: textblock
17608 #: ../fish/guestfish.pod:774
17609 msgid "and then send it commands by doing:"
17610 msgstr ""
17611
17612 # type: verbatim
17613 #: ../fish/guestfish.pod:776
17614 #, no-wrap
17615 msgid ""
17616 " guestfish --remote cmd [...]\n"
17617 "\n"
17618 msgstr ""
17619
17620 # type: textblock
17621 #: ../fish/guestfish.pod:778
17622 msgid "To cause the server to exit, send it the exit command:"
17623 msgstr ""
17624
17625 # type: verbatim
17626 #: ../fish/guestfish.pod:780
17627 #, no-wrap
17628 msgid ""
17629 " guestfish --remote exit\n"
17630 "\n"
17631 msgstr ""
17632
17633 # type: textblock
17634 #: ../fish/guestfish.pod:782
17635 msgid ""
17636 "Note that the server will normally exit if there is an error in a command.  "
17637 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17638 "BEHAVIOUR>."
17639 msgstr ""
17640
17641 # type: =head2
17642 #: ../fish/guestfish.pod:786
17643 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17644 msgstr ""
17645
17646 # type: textblock
17647 #: ../fish/guestfish.pod:788
17648 msgid ""
17649 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17650 "is how the I<--remote> option knows where to send the commands.  You can "
17651 "have several guestfish listener processes running using:"
17652 msgstr ""
17653
17654 # type: verbatim
17655 #: ../fish/guestfish.pod:792
17656 #, no-wrap
17657 msgid ""
17658 " eval \"`guestfish --listen`\"\n"
17659 " pid1=$GUESTFISH_PID\n"
17660 " eval \"`guestfish --listen`\"\n"
17661 " pid2=$GUESTFISH_PID\n"
17662 " ...\n"
17663 " guestfish --remote=$pid1 cmd\n"
17664 " guestfish --remote=$pid2 cmd\n"
17665 "\n"
17666 msgstr ""
17667
17668 # type: =head2
17669 #: ../fish/guestfish.pod:800
17670 msgid "REMOTE CONTROL AND CSH"
17671 msgstr ""
17672
17673 # type: textblock
17674 #: ../fish/guestfish.pod:802
17675 msgid ""
17676 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
17677 "option:"
17678 msgstr ""
17679
17680 # type: verbatim
17681 #: ../fish/guestfish.pod:805
17682 #, no-wrap
17683 msgid ""
17684 " eval \"`guestfish --listen --csh`\"\n"
17685 "\n"
17686 msgstr ""
17687
17688 # type: =head2
17689 #: ../fish/guestfish.pod:807
17690 msgid "REMOTE CONTROL DETAILS"
17691 msgstr ""
17692
17693 # type: textblock
17694 #: ../fish/guestfish.pod:809
17695 msgid ""
17696 "Remote control happens over a Unix domain socket called "
17697 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17698 "of the process, and C<$PID> is the process ID of the server."
17699 msgstr ""
17700
17701 # type: textblock
17702 #: ../fish/guestfish.pod:813
17703 msgid "Guestfish client and server versions must match exactly."
17704 msgstr ""
17705
17706 # type: =head1
17707 #: ../fish/guestfish.pod:815
17708 msgid "PREPARED DISK IMAGES"
17709 msgstr ""
17710
17711 # type: textblock
17712 #: ../fish/guestfish.pod:817
17713 msgid ""
17714 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17715 "preformatted disk images that guestfish can make for you to save typing.  "
17716 "This is particularly useful for testing purposes.  This option is used "
17717 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17718 "can be mixed with I<-a>)."
17719 msgstr ""
17720
17721 # type: textblock
17722 #: ../fish/guestfish.pod:823
17723 msgid ""
17724 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17725 "the second and so on.  Existing files in the current directory are "
17726 "I<overwritten>."
17727 msgstr ""
17728
17729 # type: textblock
17730 #: ../fish/guestfish.pod:827
17731 msgid ""
17732 "The type briefly describes how the disk should be sized, partitioned, how "
17733 "filesystem(s) should be created, and how content should be added.  "
17734 "Optionally the type can be followed by extra parameters, separated by C<:> "
17735 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17736 "sparsely-allocated disk, containing a single partition, with the partition "
17737 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17738 "on a 1GB disk instead."
17739 msgstr ""
17740
17741 # type: textblock
17742 #: ../fish/guestfish.pod:835
17743 msgid "To list the available types and any extra parameters they take, run:"
17744 msgstr ""
17745
17746 # type: textblock
17747 #: ../fish/guestfish.pod:839
17748 msgid ""
17749 "Note that the prepared filesystem is not mounted.  You would usually have to "
17750 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17751 msgstr ""
17752
17753 # type: textblock
17754 #: ../fish/guestfish.pod:843
17755 msgid ""
17756 "If any I<-N> or I<--new> options are given, the guest is automatically "
17757 "launched."
17758 msgstr ""
17759
17760 # type: textblock
17761 #: ../fish/guestfish.pod:848
17762 msgid "Create a 100MB disk with an ext4-formatted partition:"
17763 msgstr ""
17764
17765 # type: verbatim
17766 #: ../fish/guestfish.pod:850
17767 #, no-wrap
17768 msgid ""
17769 " guestfish -N fs:ext4\n"
17770 "\n"
17771 msgstr ""
17772
17773 # type: textblock
17774 #: ../fish/guestfish.pod:852
17775 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17776 msgstr ""
17777
17778 # type: verbatim
17779 #: ../fish/guestfish.pod:854
17780 #, no-wrap
17781 msgid ""
17782 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17783 "\n"
17784 msgstr ""
17785
17786 # type: textblock
17787 #: ../fish/guestfish.pod:856
17788 msgid "Create a blank 200MB disk:"
17789 msgstr ""
17790
17791 # type: verbatim
17792 #: ../fish/guestfish.pod:858
17793 #, no-wrap
17794 msgid ""
17795 " guestfish -N disk:200M\n"
17796 "\n"
17797 msgstr ""
17798
17799 # type: =head1
17800 #: ../fish/guestfish.pod:860
17801 msgid "PROGRESS BARS"
17802 msgstr ""
17803
17804 # type: textblock
17805 #: ../fish/guestfish.pod:862
17806 msgid ""
17807 "Some (not all) long-running commands send progress notification messages as "
17808 "they are running.  Guestfish turns these messages into progress bars."
17809 msgstr ""
17810
17811 # type: textblock
17812 #: ../fish/guestfish.pod:866
17813 msgid ""
17814 "When a command that supports progress bars takes longer than two seconds to "
17815 "run, and if progress bars are enabled, then you will see one appearing below "
17816 "the command:"
17817 msgstr ""
17818
17819 # type: verbatim
17820 #: ../fish/guestfish.pod:870
17821 #, no-wrap
17822 msgid ""
17823 " ><fs> copy-size /large-file /another-file 2048M\n"
17824 " / 10% [#####-----------------------------------------] 00:30\n"
17825 "\n"
17826 msgstr ""
17827
17828 # type: textblock
17829 #: ../fish/guestfish.pod:873
17830 msgid ""
17831 "The spinner on the left hand side moves round once for every progress "
17832 "notification received from the backend.  This is a (reasonably) golden "
17833 "assurance that the command is \"doing something\" even if the progress bar "
17834 "is not moving, because the command is able to send the progress "
17835 "notifications.  When the bar reaches 100% and the command finishes, the "
17836 "spinner disappears."
17837 msgstr ""
17838
17839 # type: textblock
17840 #: ../fish/guestfish.pod:880
17841 msgid ""
17842 "Progress bars are enabled by default when guestfish is used interactively.  "
17843 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17844 "and you can disable them completely using I<--no-progress-bars>."
17845 msgstr ""
17846
17847 # type: =head1
17848 #: ../fish/guestfish.pod:885
17849 msgid "GUESTFISH COMMANDS"
17850 msgstr ""
17851
17852 # type: textblock
17853 #: ../fish/guestfish.pod:887
17854 msgid ""
17855 "The commands in this section are guestfish convenience commands, in other "
17856 "words, they are not part of the L<guestfs(3)> API."
17857 msgstr ""
17858
17859 # type: =head2
17860 #: ../fish/guestfish.pod:890
17861 msgid "help"
17862 msgstr ""
17863
17864 # type: verbatim
17865 #: ../fish/guestfish.pod:892
17866 #, no-wrap
17867 msgid ""
17868 " help\n"
17869 " help cmd\n"
17870 "\n"
17871 msgstr ""
17872
17873 # type: textblock
17874 #: ../fish/guestfish.pod:895
17875 msgid "Without any parameter, this provides general help."
17876 msgstr ""
17877
17878 # type: textblock
17879 #: ../fish/guestfish.pod:897
17880 msgid "With a C<cmd> parameter, this displays detailed help for that command."
17881 msgstr ""
17882
17883 # type: =head2
17884 #: ../fish/guestfish.pod:899
17885 msgid "quit | exit"
17886 msgstr ""
17887
17888 # type: textblock
17889 #: ../fish/guestfish.pod:901
17890 msgid "This exits guestfish.  You can also use C<^D> key."
17891 msgstr ""
17892
17893 # type: textblock
17894 #: ../fish/guestfish.pod:903
17895 msgid "@FISH_COMMANDS@"
17896 msgstr ""
17897
17898 # type: =head1
17899 #: ../fish/guestfish.pod:905
17900 msgid "COMMANDS"
17901 msgstr ""
17902
17903 # type: =head1
17904 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
17905 msgid "EXIT CODE"
17906 msgstr ""
17907
17908 # type: textblock
17909 #: ../fish/guestfish.pod:911
17910 msgid ""
17911 "guestfish returns 0 if the commands completed without error, or 1 if there "
17912 "was an error."
17913 msgstr ""
17914
17915 # type: =item
17916 #: ../fish/guestfish.pod:918
17917 msgid "EDITOR"
17918 msgstr ""
17919
17920 # type: textblock
17921 #: ../fish/guestfish.pod:920
17922 msgid ""
17923 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17924 "C<vi>."
17925 msgstr ""
17926
17927 # type: =item
17928 #: ../fish/guestfish.pod:923
17929 msgid "GUESTFISH_PID"
17930 msgstr ""
17931
17932 # type: textblock
17933 #: ../fish/guestfish.pod:925
17934 msgid ""
17935 "Used with the I<--remote> option to specify the remote guestfish process to "
17936 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17937 msgstr ""
17938
17939 # type: =item
17940 #: ../fish/guestfish.pod:929
17941 msgid "HEXEDITOR"
17942 msgstr ""
17943
17944 # type: textblock
17945 #: ../fish/guestfish.pod:931
17946 msgid ""
17947 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17948 "not specified, the external L<hexedit(1)> program is used."
17949 msgstr ""
17950
17951 # type: =item
17952 #: ../fish/guestfish.pod:935
17953 msgid "HOME"
17954 msgstr ""
17955
17956 # type: textblock
17957 #: ../fish/guestfish.pod:937
17958 msgid ""
17959 "If compiled with GNU readline support, various files in the home directory "
17960 "can be used.  See L</FILES>."
17961 msgstr ""
17962
17963 # type: textblock
17964 #: ../fish/guestfish.pod:946
17965 msgid ""
17966 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17967 "effect as using the B<-v> option."
17968 msgstr ""
17969
17970 # type: textblock
17971 #: ../fish/guestfish.pod:958
17972 msgid ""
17973 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17974 "the discussion of paths in L<guestfs(3)>."
17975 msgstr ""
17976
17977 # type: textblock
17978 #: ../fish/guestfish.pod:969
17979 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17980 msgstr ""
17981
17982 # type: =item
17983 #: ../fish/guestfish.pod:971
17984 msgid "PAGER"
17985 msgstr ""
17986
17987 # type: textblock
17988 #: ../fish/guestfish.pod:973
17989 msgid ""
17990 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17991 "C<more>."
17992 msgstr ""
17993
17994 # type: =head1
17995 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
17996 msgid "FILES"
17997 msgstr ""
17998
17999 # type: =item
18000 #: ../fish/guestfish.pod:992
18001 msgid "$HOME/.guestfish"
18002 msgstr ""
18003
18004 # type: textblock
18005 #: ../fish/guestfish.pod:994
18006 msgid ""
18007 "If compiled with GNU readline support, then the command history is saved in "
18008 "this file."
18009 msgstr ""
18010
18011 # type: =item
18012 #: ../fish/guestfish.pod:997
18013 msgid "$HOME/.inputrc"
18014 msgstr ""
18015
18016 # type: =item
18017 #: ../fish/guestfish.pod:999
18018 msgid "/etc/inputrc"
18019 msgstr ""
18020
18021 # type: textblock
18022 #: ../fish/guestfish.pod:1001
18023 msgid ""
18024 "If compiled with GNU readline support, then these files can be used to "
18025 "configure readline.  For further information, please see "
18026 "L<readline(3)/INITIALIZATION FILE>."
18027 msgstr ""
18028
18029 # type: textblock
18030 #: ../fish/guestfish.pod:1005
18031 msgid "To write rules which only apply to guestfish, use:"
18032 msgstr ""
18033
18034 # type: verbatim
18035 #: ../fish/guestfish.pod:1007
18036 #, no-wrap
18037 msgid ""
18038 " $if guestfish\n"
18039 " ...\n"
18040 " $endif\n"
18041 "\n"
18042 msgstr ""
18043
18044 # type: textblock
18045 #: ../fish/guestfish.pod:1011
18046 msgid ""
18047 "Variables that you can set in inputrc that change the behaviour of guestfish "
18048 "in useful ways include:"
18049 msgstr ""
18050
18051 # type: =item
18052 #: ../fish/guestfish.pod:1016
18053 msgid "completion-ignore-case (default: on)"
18054 msgstr ""
18055
18056 # type: textblock
18057 #: ../fish/guestfish.pod:1018
18058 msgid ""
18059 "By default, guestfish will ignore case when tab-completing paths on the "
18060 "disk.  Use:"
18061 msgstr ""
18062
18063 # type: verbatim
18064 #: ../fish/guestfish.pod:1021
18065 #, no-wrap
18066 msgid ""
18067 " set completion-ignore-case off\n"
18068 "\n"
18069 msgstr ""
18070
18071 # type: textblock
18072 #: ../fish/guestfish.pod:1023
18073 msgid "to make guestfish case sensitive."
18074 msgstr ""
18075
18076 # type: =item
18077 #: ../fish/guestfish.pod:1027
18078 msgid "test1.img"
18079 msgstr ""
18080
18081 # type: =item
18082 #: ../fish/guestfish.pod:1029
18083 msgid "test2.img (etc)"
18084 msgstr ""
18085
18086 # type: textblock
18087 #: ../fish/guestfish.pod:1031
18088 msgid ""
18089 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18090 "will be created in the file C<test1.img> in the current directory.  The "
18091 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18092 "the same name will be overwritten."
18093 msgstr ""
18094
18095 # type: textblock
18096 #: ../fish/guestfish.pod:1040
18097 msgid ""
18098 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18099 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
18100 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
18101 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
18102 msgstr ""
18103
18104 # type: textblock
18105 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:253 ../inspector/virt-inspector.pl:564 ../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
18106 msgid ""
18107 "This program is free software; you can redistribute it and/or modify it "
18108 "under the terms of the GNU General Public License as published by the Free "
18109 "Software Foundation; either version 2 of the License, or (at your option) "
18110 "any later version."
18111 msgstr ""
18112
18113 # type: textblock
18114 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:258 ../inspector/virt-inspector.pl:569 ../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
18115 msgid ""
18116 "This program is distributed in the hope that it will be useful, but WITHOUT "
18117 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18118 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18119 "more details."
18120 msgstr ""
18121
18122 # type: textblock
18123 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pl:574 ../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
18124 msgid ""
18125 "You should have received a copy of the GNU General Public License along with "
18126 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18127 "Ave, Cambridge, MA 02139, USA."
18128 msgstr ""
18129
18130 # type: =head2
18131 #: ../fish/guestfish-actions.pod:1
18132 msgid "add-cdrom"
18133 msgstr ""
18134
18135 # type: verbatim
18136 #: ../fish/guestfish-actions.pod:3
18137 #, no-wrap
18138 msgid ""
18139 " add-cdrom filename\n"
18140 "\n"
18141 msgstr ""
18142
18143 # type: textblock
18144 #: ../fish/guestfish-actions.pod:15
18145 msgid ""
18146 "This call checks for the existence of C<filename>.  This stops you from "
18147 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18148 "and C<http:> URLs.  To specify those, use the general L</config> call "
18149 "instead."
18150 msgstr ""
18151
18152 # type: textblock
18153 #: ../fish/guestfish-actions.pod:22
18154 msgid ""
18155 "If you just want to add an ISO file (often you use this as an efficient way "
18156 "to transfer large files into the guest), then you should probably use "
18157 "L</add-drive-ro> instead."
18158 msgstr ""
18159
18160 # type: =head2
18161 #: ../fish/guestfish-actions.pod:35
18162 msgid "add-domain"
18163 msgstr ""
18164
18165 # type: =head2
18166 #: ../fish/guestfish-actions.pod:37
18167 msgid "domain"
18168 msgstr ""
18169
18170 # type: verbatim
18171 #: ../fish/guestfish-actions.pod:39
18172 #, no-wrap
18173 msgid ""
18174 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18175 "\n"
18176 msgstr ""
18177
18178 # type: textblock
18179 #: ../fish/guestfish-actions.pod:41
18180 msgid ""
18181 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18182 "It works by connecting to libvirt, requesting the domain and domain XML from "
18183 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
18184 msgstr ""
18185
18186 # type: textblock
18187 #: ../fish/guestfish-actions.pod:58
18188 msgid ""
18189 "The optional C<libvirturi> parameter sets the libvirt URI (see "
18190 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
18191 "default libvirt URI (or one set through an environment variable, see the "
18192 "libvirt documentation for full details).  If you are using the C API "
18193 "directly then it is more flexible to create the libvirt connection object "
18194 "yourself, get the domain object, and call L</add-libvirt-dom>."
18195 msgstr ""
18196
18197 # type: textblock
18198 #: ../fish/guestfish-actions.pod:66
18199 msgid ""
18200 "The other optional parameters are passed directly through to "
18201 "L</add-drive-opts>."
18202 msgstr ""
18203
18204 # type: textblock
18205 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
18206 msgid ""
18207 "This command has one or more optional arguments.  See L</OPTIONAL "
18208 "ARGUMENTS>."
18209 msgstr ""
18210
18211 # type: =head2
18212 #: ../fish/guestfish-actions.pod:71
18213 msgid "add-drive"
18214 msgstr ""
18215
18216 # type: verbatim
18217 #: ../fish/guestfish-actions.pod:73
18218 #, no-wrap
18219 msgid ""
18220 " add-drive filename\n"
18221 "\n"
18222 msgstr ""
18223
18224 # type: textblock
18225 #: ../fish/guestfish-actions.pod:75
18226 msgid ""
18227 "This function is the equivalent of calling L</add-drive-opts> with no "
18228 "optional parameters, so the disk is added writable, with the format being "
18229 "detected automatically."
18230 msgstr ""
18231
18232 # type: textblock
18233 #: ../fish/guestfish-actions.pod:79
18234 msgid ""
18235 "Automatic detection of the format opens you up to a potential security hole "
18236 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18237 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18238 "you should think about replacing calls to this function with calls to "
18239 "L</add-drive-opts>, and specifying the format."
18240 msgstr ""
18241
18242 # type: =head2
18243 #: ../fish/guestfish-actions.pod:86
18244 msgid "add-drive-opts"
18245 msgstr ""
18246
18247 # type: =head2
18248 #: ../fish/guestfish-actions.pod:88
18249 msgid "add"
18250 msgstr ""
18251
18252 # type: verbatim
18253 #: ../fish/guestfish-actions.pod:90
18254 #, no-wrap
18255 msgid ""
18256 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18257 "\n"
18258 msgstr ""
18259
18260 # type: textblock
18261 #: ../fish/guestfish-actions.pod:117
18262 msgid ""
18263 "This forces the image format.  If you omit this (or use L</add-drive> or "
18264 "L</add-drive-ro>) then the format is automatically detected.  Possible "
18265 "formats include C<raw> and C<qcow2>."
18266 msgstr ""
18267
18268 # type: textblock
18269 #: ../fish/guestfish-actions.pod:128
18270 msgid ""
18271 "This rarely-used option lets you emulate the behaviour of the deprecated "
18272 "L</add-drive-with-if> call (q.v.)"
18273 msgstr ""
18274
18275 # type: =head2
18276 #: ../fish/guestfish-actions.pod:135
18277 msgid "add-drive-ro"
18278 msgstr ""
18279
18280 # type: =head2
18281 #: ../fish/guestfish-actions.pod:137
18282 msgid "add-ro"
18283 msgstr ""
18284
18285 # type: verbatim
18286 #: ../fish/guestfish-actions.pod:139
18287 #, no-wrap
18288 msgid ""
18289 " add-drive-ro filename\n"
18290 "\n"
18291 msgstr ""
18292
18293 # type: textblock
18294 #: ../fish/guestfish-actions.pod:141
18295 msgid ""
18296 "This function is the equivalent of calling L</add-drive-opts> with the "
18297 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18298 "is added read-only, with the format being detected automatically."
18299 msgstr ""
18300
18301 # type: =head2
18302 #: ../fish/guestfish-actions.pod:146
18303 msgid "add-drive-ro-with-if"
18304 msgstr ""
18305
18306 # type: verbatim
18307 #: ../fish/guestfish-actions.pod:148
18308 #, no-wrap
18309 msgid ""
18310 " add-drive-ro-with-if filename iface\n"
18311 "\n"
18312 msgstr ""
18313
18314 # type: textblock
18315 #: ../fish/guestfish-actions.pod:150
18316 msgid ""
18317 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18318 "interface emulation to use at run time."
18319 msgstr ""
18320
18321 # type: =head2
18322 #: ../fish/guestfish-actions.pod:160
18323 msgid "add-drive-with-if"
18324 msgstr ""
18325
18326 # type: verbatim
18327 #: ../fish/guestfish-actions.pod:162
18328 #, no-wrap
18329 msgid ""
18330 " add-drive-with-if filename iface\n"
18331 "\n"
18332 msgstr ""
18333
18334 # type: textblock
18335 #: ../fish/guestfish-actions.pod:164
18336 msgid ""
18337 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18338 "interface emulation to use at run time."
18339 msgstr ""
18340
18341 # type: =head2
18342 #: ../fish/guestfish-actions.pod:174
18343 msgid "aug-clear"
18344 msgstr ""
18345
18346 # type: verbatim
18347 #: ../fish/guestfish-actions.pod:176
18348 #, no-wrap
18349 msgid ""
18350 " aug-clear augpath\n"
18351 "\n"
18352 msgstr ""
18353
18354 # type: =head2
18355 #: ../fish/guestfish-actions.pod:181
18356 msgid "aug-close"
18357 msgstr ""
18358
18359 # type: verbatim
18360 #: ../fish/guestfish-actions.pod:183
18361 #, no-wrap
18362 msgid ""
18363 " aug-close\n"
18364 "\n"
18365 msgstr ""
18366
18367 # type: textblock
18368 #: ../fish/guestfish-actions.pod:185
18369 msgid ""
18370 "Close the current Augeas handle and free up any resources used by it.  After "
18371 "calling this, you have to call L</aug-init> again before you can use any "
18372 "other Augeas functions."
18373 msgstr ""
18374
18375 # type: =head2
18376 #: ../fish/guestfish-actions.pod:190
18377 msgid "aug-defnode"
18378 msgstr ""
18379
18380 # type: verbatim
18381 #: ../fish/guestfish-actions.pod:192
18382 #, no-wrap
18383 msgid ""
18384 " aug-defnode name expr val\n"
18385 "\n"
18386 msgstr ""
18387
18388 # type: textblock
18389 #: ../fish/guestfish-actions.pod:197
18390 msgid ""
18391 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18392 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18393 "containing that single node."
18394 msgstr ""
18395
18396 # type: =head2
18397 #: ../fish/guestfish-actions.pod:205
18398 msgid "aug-defvar"
18399 msgstr ""
18400
18401 # type: verbatim
18402 #: ../fish/guestfish-actions.pod:207
18403 #, no-wrap
18404 msgid ""
18405 " aug-defvar name expr\n"
18406 "\n"
18407 msgstr ""
18408
18409 # type: =head2
18410 #: ../fish/guestfish-actions.pod:216
18411 msgid "aug-get"
18412 msgstr ""
18413
18414 # type: verbatim
18415 #: ../fish/guestfish-actions.pod:218
18416 #, no-wrap
18417 msgid ""
18418 " aug-get augpath\n"
18419 "\n"
18420 msgstr ""
18421
18422 # type: =head2
18423 #: ../fish/guestfish-actions.pod:223
18424 msgid "aug-init"
18425 msgstr ""
18426
18427 # type: verbatim
18428 #: ../fish/guestfish-actions.pod:225
18429 #, no-wrap
18430 msgid ""
18431 " aug-init root flags\n"
18432 "\n"
18433 msgstr ""
18434
18435 # type: textblock
18436 #: ../fish/guestfish-actions.pod:231
18437 msgid "You must call this before using any other L</aug-*> commands."
18438 msgstr ""
18439
18440 # type: textblock
18441 #: ../fish/guestfish-actions.pod:266
18442 msgid "Do not load the tree in L</aug-init>."
18443 msgstr ""
18444
18445 # type: textblock
18446 #: ../fish/guestfish-actions.pod:270
18447 msgid "To close the handle, you can call L</aug-close>."
18448 msgstr ""
18449
18450 # type: =head2
18451 #: ../fish/guestfish-actions.pod:274
18452 msgid "aug-insert"
18453 msgstr ""
18454
18455 # type: verbatim
18456 #: ../fish/guestfish-actions.pod:276
18457 #, no-wrap
18458 msgid ""
18459 " aug-insert augpath label true|false\n"
18460 "\n"
18461 msgstr ""
18462
18463 # type: =head2
18464 #: ../fish/guestfish-actions.pod:286
18465 msgid "aug-load"
18466 msgstr ""
18467
18468 # type: verbatim
18469 #: ../fish/guestfish-actions.pod:288
18470 #, no-wrap
18471 msgid ""
18472 " aug-load\n"
18473 "\n"
18474 msgstr ""
18475
18476 # type: =head2
18477 #: ../fish/guestfish-actions.pod:295
18478 msgid "aug-ls"
18479 msgstr ""
18480
18481 # type: verbatim
18482 #: ../fish/guestfish-actions.pod:297
18483 #, no-wrap
18484 msgid ""
18485 " aug-ls augpath\n"
18486 "\n"
18487 msgstr ""
18488
18489 # type: textblock
18490 #: ../fish/guestfish-actions.pod:299
18491 msgid ""
18492 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
18493 "resulting nodes into alphabetical order."
18494 msgstr ""
18495
18496 # type: =head2
18497 #: ../fish/guestfish-actions.pod:302
18498 msgid "aug-match"
18499 msgstr ""
18500
18501 # type: verbatim
18502 #: ../fish/guestfish-actions.pod:304
18503 #, no-wrap
18504 msgid ""
18505 " aug-match augpath\n"
18506 "\n"
18507 msgstr ""
18508
18509 # type: =head2
18510 #: ../fish/guestfish-actions.pod:310
18511 msgid "aug-mv"
18512 msgstr ""
18513
18514 # type: verbatim
18515 #: ../fish/guestfish-actions.pod:312
18516 #, no-wrap
18517 msgid ""
18518 " aug-mv src dest\n"
18519 "\n"
18520 msgstr ""
18521
18522 # type: =head2
18523 #: ../fish/guestfish-actions.pod:317
18524 msgid "aug-rm"
18525 msgstr ""
18526
18527 # type: verbatim
18528 #: ../fish/guestfish-actions.pod:319
18529 #, no-wrap
18530 msgid ""
18531 " aug-rm augpath\n"
18532 "\n"
18533 msgstr ""
18534
18535 # type: =head2
18536 #: ../fish/guestfish-actions.pod:325
18537 msgid "aug-save"
18538 msgstr ""
18539
18540 # type: verbatim
18541 #: ../fish/guestfish-actions.pod:327
18542 #, no-wrap
18543 msgid ""
18544 " aug-save\n"
18545 "\n"
18546 msgstr ""
18547
18548 # type: textblock
18549 #: ../fish/guestfish-actions.pod:331
18550 msgid ""
18551 "The flags which were passed to L</aug-init> affect exactly how files are "
18552 "saved."
18553 msgstr ""
18554
18555 # type: =head2
18556 #: ../fish/guestfish-actions.pod:334
18557 msgid "aug-set"
18558 msgstr ""
18559
18560 # type: verbatim
18561 #: ../fish/guestfish-actions.pod:336
18562 #, no-wrap
18563 msgid ""
18564 " aug-set augpath val\n"
18565 "\n"
18566 msgstr ""
18567
18568 # type: textblock
18569 #: ../fish/guestfish-actions.pod:340
18570 msgid ""
18571 "In the Augeas API, it is possible to clear a node by setting the value to "
18572 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
18573 "this call.  Instead you must use the L</aug-clear> call."
18574 msgstr ""
18575
18576 # type: =head2
18577 #: ../fish/guestfish-actions.pod:345
18578 msgid "available"
18579 msgstr ""
18580
18581 # type: verbatim
18582 #: ../fish/guestfish-actions.pod:347
18583 #, no-wrap
18584 msgid ""
18585 " available 'groups ...'\n"
18586 "\n"
18587 msgstr ""
18588
18589 # type: textblock
18590 #: ../fish/guestfish-actions.pod:353
18591 msgid ""
18592 "The libguestfs groups, and the functions that those groups correspond to, "
18593 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
18594 "runtime by calling L</available-all-groups>."
18595 msgstr ""
18596
18597 # type: textblock
18598 #: ../fish/guestfish-actions.pod:377
18599 msgid "You must call L</launch> before calling this function."
18600 msgstr ""
18601
18602 # type: textblock
18603 #: ../fish/guestfish-actions.pod:399
18604 msgid ""
18605 "This call was added in version C<1.0.80>.  In previous versions of "
18606 "libguestfs all you could do would be to speculatively execute a command to "
18607 "find out if the daemon implemented it.  See also L</version>."
18608 msgstr ""
18609
18610 # type: =head2
18611 #: ../fish/guestfish-actions.pod:406
18612 msgid "available-all-groups"
18613 msgstr ""
18614
18615 # type: verbatim
18616 #: ../fish/guestfish-actions.pod:408
18617 #, no-wrap
18618 msgid ""
18619 " available-all-groups\n"
18620 "\n"
18621 msgstr ""
18622
18623 # type: textblock
18624 #: ../fish/guestfish-actions.pod:410
18625 msgid ""
18626 "This command returns a list of all optional groups that this daemon knows "
18627 "about.  Note this returns both supported and unsupported groups.  To find "
18628 "out which ones the daemon can actually support you have to call "
18629 "L</available> on each member of the returned list."
18630 msgstr ""
18631
18632 # type: textblock
18633 #: ../fish/guestfish-actions.pod:416
18634 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
18635 msgstr ""
18636
18637 # type: =head2
18638 #: ../fish/guestfish-actions.pod:418
18639 msgid "base64-in"
18640 msgstr ""
18641
18642 # type: verbatim
18643 #: ../fish/guestfish-actions.pod:420
18644 #, no-wrap
18645 msgid ""
18646 " base64-in (base64file|-) filename\n"
18647 "\n"
18648 msgstr ""
18649
18650 # type: textblock
18651 #: ../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:4002 ../fish/guestfish-actions.pod:4014 ../fish/guestfish-actions.pod:4025 ../fish/guestfish-actions.pod:4036 ../fish/guestfish-actions.pod:4088 ../fish/guestfish-actions.pod:4097 ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4174
18652 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
18653 msgstr ""
18654
18655 # type: =head2
18656 #: ../fish/guestfish-actions.pod:427
18657 msgid "base64-out"
18658 msgstr ""
18659
18660 # type: verbatim
18661 #: ../fish/guestfish-actions.pod:429
18662 #, no-wrap
18663 msgid ""
18664 " base64-out filename (base64file|-)\n"
18665 "\n"
18666 msgstr ""
18667
18668 # type: =head2
18669 #: ../fish/guestfish-actions.pod:436
18670 msgid "blockdev-flushbufs"
18671 msgstr ""
18672
18673 # type: verbatim
18674 #: ../fish/guestfish-actions.pod:438
18675 #, no-wrap
18676 msgid ""
18677 " blockdev-flushbufs device\n"
18678 "\n"
18679 msgstr ""
18680
18681 # type: =head2
18682 #: ../fish/guestfish-actions.pod:445
18683 msgid "blockdev-getbsz"
18684 msgstr ""
18685
18686 # type: verbatim
18687 #: ../fish/guestfish-actions.pod:447
18688 #, no-wrap
18689 msgid ""
18690 " blockdev-getbsz device\n"
18691 "\n"
18692 msgstr ""
18693
18694 # type: =head2
18695 #: ../fish/guestfish-actions.pod:456
18696 msgid "blockdev-getro"
18697 msgstr ""
18698
18699 # type: verbatim
18700 #: ../fish/guestfish-actions.pod:458
18701 #, no-wrap
18702 msgid ""
18703 " blockdev-getro device\n"
18704 "\n"
18705 msgstr ""
18706
18707 # type: =head2
18708 #: ../fish/guestfish-actions.pod:465
18709 msgid "blockdev-getsize64"
18710 msgstr ""
18711
18712 # type: verbatim
18713 #: ../fish/guestfish-actions.pod:467
18714 #, no-wrap
18715 msgid ""
18716 " blockdev-getsize64 device\n"
18717 "\n"
18718 msgstr ""
18719
18720 # type: textblock
18721 #: ../fish/guestfish-actions.pod:471
18722 msgid "See also L</blockdev-getsz>."
18723 msgstr ""
18724
18725 # type: =head2
18726 #: ../fish/guestfish-actions.pod:475
18727 msgid "blockdev-getss"
18728 msgstr ""
18729
18730 # type: verbatim
18731 #: ../fish/guestfish-actions.pod:477
18732 #, no-wrap
18733 msgid ""
18734 " blockdev-getss device\n"
18735 "\n"
18736 msgstr ""
18737
18738 # type: textblock
18739 #: ../fish/guestfish-actions.pod:482
18740 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
18741 msgstr ""
18742
18743 # type: =head2
18744 #: ../fish/guestfish-actions.pod:487
18745 msgid "blockdev-getsz"
18746 msgstr ""
18747
18748 # type: verbatim
18749 #: ../fish/guestfish-actions.pod:489
18750 #, no-wrap
18751 msgid ""
18752 " blockdev-getsz device\n"
18753 "\n"
18754 msgstr ""
18755
18756 # type: textblock
18757 #: ../fish/guestfish-actions.pod:494
18758 msgid ""
18759 "See also L</blockdev-getss> for the real sector size of the device, and "
18760 "L</blockdev-getsize64> for the more useful I<size in bytes>."
18761 msgstr ""
18762
18763 # type: =head2
18764 #: ../fish/guestfish-actions.pod:500
18765 msgid "blockdev-rereadpt"
18766 msgstr ""
18767
18768 # type: verbatim
18769 #: ../fish/guestfish-actions.pod:502
18770 #, no-wrap
18771 msgid ""
18772 " blockdev-rereadpt device\n"
18773 "\n"
18774 msgstr ""
18775
18776 # type: =head2
18777 #: ../fish/guestfish-actions.pod:508
18778 msgid "blockdev-setbsz"
18779 msgstr ""
18780
18781 # type: verbatim
18782 #: ../fish/guestfish-actions.pod:510
18783 #, no-wrap
18784 msgid ""
18785 " blockdev-setbsz device blocksize\n"
18786 "\n"
18787 msgstr ""
18788
18789 # type: =head2
18790 #: ../fish/guestfish-actions.pod:519
18791 msgid "blockdev-setro"
18792 msgstr ""
18793
18794 # type: verbatim
18795 #: ../fish/guestfish-actions.pod:521
18796 #, no-wrap
18797 msgid ""
18798 " blockdev-setro device\n"
18799 "\n"
18800 msgstr ""
18801
18802 # type: =head2
18803 #: ../fish/guestfish-actions.pod:527
18804 msgid "blockdev-setrw"
18805 msgstr ""
18806
18807 # type: verbatim
18808 #: ../fish/guestfish-actions.pod:529
18809 #, no-wrap
18810 msgid ""
18811 " blockdev-setrw device\n"
18812 "\n"
18813 msgstr ""
18814
18815 # type: =head2
18816 #: ../fish/guestfish-actions.pod:535
18817 msgid "case-sensitive-path"
18818 msgstr ""
18819
18820 # type: verbatim
18821 #: ../fish/guestfish-actions.pod:537
18822 #, no-wrap
18823 msgid ""
18824 " case-sensitive-path path\n"
18825 "\n"
18826 msgstr ""
18827
18828 # type: textblock
18829 #: ../fish/guestfish-actions.pod:561
18830 msgid ""
18831 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
18832 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
18833 "how the directories were originally created under Windows)."
18834 msgstr ""
18835
18836 # type: textblock
18837 #: ../fish/guestfish-actions.pod:569
18838 msgid "See also L</realpath>."
18839 msgstr ""
18840
18841 # type: =head2
18842 #: ../fish/guestfish-actions.pod:571
18843 msgid "cat"
18844 msgstr ""
18845
18846 # type: verbatim
18847 #: ../fish/guestfish-actions.pod:573
18848 #, no-wrap
18849 msgid ""
18850 " cat path\n"
18851 "\n"
18852 msgstr ""
18853
18854 # type: textblock
18855 #: ../fish/guestfish-actions.pod:577
18856 msgid ""
18857 "Note that this function cannot correctly handle binary files (specifically, "
18858 "files containing C<\\0> character which is treated as end of string).  For "
18859 "those you need to use the L</read-file> or L</download> functions which have "
18860 "a more complex interface."
18861 msgstr ""
18862
18863 # type: =head2
18864 #: ../fish/guestfish-actions.pod:585
18865 msgid "checksum"
18866 msgstr ""
18867
18868 # type: verbatim
18869 #: ../fish/guestfish-actions.pod:587
18870 #, no-wrap
18871 msgid ""
18872 " checksum csumtype path\n"
18873 "\n"
18874 msgstr ""
18875
18876 # type: textblock
18877 #: ../fish/guestfish-actions.pod:630
18878 msgid "To get the checksum for a device, use L</checksum-device>."
18879 msgstr ""
18880
18881 # type: textblock
18882 #: ../fish/guestfish-actions.pod:632
18883 msgid "To get the checksums for many files, use L</checksums-out>."
18884 msgstr ""
18885
18886 # type: =head2
18887 #: ../fish/guestfish-actions.pod:634
18888 msgid "checksum-device"
18889 msgstr ""
18890
18891 # type: verbatim
18892 #: ../fish/guestfish-actions.pod:636
18893 #, no-wrap
18894 msgid ""
18895 " checksum-device csumtype device\n"
18896 "\n"
18897 msgstr ""
18898
18899 # type: textblock
18900 #: ../fish/guestfish-actions.pod:638
18901 msgid ""
18902 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18903 "device named C<device>.  For the types of checksums supported see the "
18904 "L</checksum> command."
18905 msgstr ""
18906
18907 # type: =head2
18908 #: ../fish/guestfish-actions.pod:642
18909 msgid "checksums-out"
18910 msgstr ""
18911
18912 # type: verbatim
18913 #: ../fish/guestfish-actions.pod:644
18914 #, no-wrap
18915 msgid ""
18916 " checksums-out csumtype directory (sumsfile|-)\n"
18917 "\n"
18918 msgstr ""
18919
18920 # type: =head2
18921 #: ../fish/guestfish-actions.pod:660
18922 msgid "chmod"
18923 msgstr ""
18924
18925 # type: verbatim
18926 #: ../fish/guestfish-actions.pod:662
18927 #, no-wrap
18928 msgid ""
18929 " chmod mode path\n"
18930 "\n"
18931 msgstr ""
18932
18933 # type: =head2
18934 #: ../fish/guestfish-actions.pod:673
18935 msgid "chown"
18936 msgstr ""
18937
18938 # type: verbatim
18939 #: ../fish/guestfish-actions.pod:675
18940 #, no-wrap
18941 msgid ""
18942 " chown owner group path\n"
18943 "\n"
18944 msgstr ""
18945
18946 # type: =head2
18947 #: ../fish/guestfish-actions.pod:683
18948 msgid "command"
18949 msgstr ""
18950
18951 # type: verbatim
18952 #: ../fish/guestfish-actions.pod:685
18953 #, no-wrap
18954 msgid ""
18955 " command 'arguments ...'\n"
18956 "\n"
18957 msgstr ""
18958
18959 # type: textblock
18960 #: ../fish/guestfish-actions.pod:692
18961 msgid ""
18962 "The single parameter is an argv-style list of arguments.  The first element "
18963 "is the name of the program to run.  Subsequent elements are parameters.  The "
18964 "list must be non-empty (ie. must contain a program name).  Note that the "
18965 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18966 msgstr ""
18967
18968 # type: =head2
18969 #: ../fish/guestfish-actions.pod:720
18970 msgid "command-lines"
18971 msgstr ""
18972
18973 # type: verbatim
18974 #: ../fish/guestfish-actions.pod:722
18975 #, no-wrap
18976 msgid ""
18977 " command-lines 'arguments ...'\n"
18978 "\n"
18979 msgstr ""
18980
18981 # type: textblock
18982 #: ../fish/guestfish-actions.pod:724
18983 msgid "This is the same as L</command>, but splits the result into a list of lines."
18984 msgstr ""
18985
18986 # type: textblock
18987 #: ../fish/guestfish-actions.pod:727
18988 msgid "See also: L</sh-lines>"
18989 msgstr ""
18990
18991 # type: =head2
18992 #: ../fish/guestfish-actions.pod:732
18993 msgid "config"
18994 msgstr ""
18995
18996 # type: verbatim
18997 #: ../fish/guestfish-actions.pod:734
18998 #, no-wrap
18999 msgid ""
19000 " config qemuparam qemuvalue\n"
19001 "\n"
19002 msgstr ""
19003
19004 # type: =head2
19005 #: ../fish/guestfish-actions.pod:745
19006 msgid "copy-size"
19007 msgstr ""
19008
19009 # type: verbatim
19010 #: ../fish/guestfish-actions.pod:747
19011 #, no-wrap
19012 msgid ""
19013 " copy-size src dest size\n"
19014 "\n"
19015 msgstr ""
19016
19017 # type: =head2
19018 #: ../fish/guestfish-actions.pod:755
19019 msgid "cp"
19020 msgstr ""
19021
19022 # type: verbatim
19023 #: ../fish/guestfish-actions.pod:757
19024 #, no-wrap
19025 msgid ""
19026 " cp src dest\n"
19027 "\n"
19028 msgstr ""
19029
19030 # type: =head2
19031 #: ../fish/guestfish-actions.pod:762
19032 msgid "cp-a"
19033 msgstr ""
19034
19035 # type: verbatim
19036 #: ../fish/guestfish-actions.pod:764
19037 #, no-wrap
19038 msgid ""
19039 " cp-a src dest\n"
19040 "\n"
19041 msgstr ""
19042
19043 # type: =head2
19044 #: ../fish/guestfish-actions.pod:769
19045 msgid "dd"
19046 msgstr ""
19047
19048 # type: verbatim
19049 #: ../fish/guestfish-actions.pod:771
19050 #, no-wrap
19051 msgid ""
19052 " dd src dest\n"
19053 "\n"
19054 msgstr ""
19055
19056 # type: textblock
19057 #: ../fish/guestfish-actions.pod:778
19058 msgid ""
19059 "If the destination is a device, it must be as large or larger than the "
19060 "source file or device, otherwise the copy will fail.  This command cannot do "
19061 "partial copies (see L</copy-size>)."
19062 msgstr ""
19063
19064 # type: =head2
19065 #: ../fish/guestfish-actions.pod:782
19066 msgid "df"
19067 msgstr ""
19068
19069 # type: verbatim
19070 #: ../fish/guestfish-actions.pod:784
19071 #, no-wrap
19072 msgid ""
19073 " df\n"
19074 "\n"
19075 msgstr ""
19076
19077 # type: =head2
19078 #: ../fish/guestfish-actions.pod:792
19079 msgid "df-h"
19080 msgstr ""
19081
19082 # type: verbatim
19083 #: ../fish/guestfish-actions.pod:794
19084 #, no-wrap
19085 msgid ""
19086 " df-h\n"
19087 "\n"
19088 msgstr ""
19089
19090 # type: =head2
19091 #: ../fish/guestfish-actions.pod:803
19092 msgid "dmesg"
19093 msgstr ""
19094
19095 # type: verbatim
19096 #: ../fish/guestfish-actions.pod:805
19097 #, no-wrap
19098 msgid ""
19099 " dmesg\n"
19100 "\n"
19101 msgstr ""
19102
19103 # type: textblock
19104 #: ../fish/guestfish-actions.pod:811
19105 msgid ""
19106 "Another way to get the same information is to enable verbose messages with "
19107 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19108 "before running the program."
19109 msgstr ""
19110
19111 # type: =head2
19112 #: ../fish/guestfish-actions.pod:816
19113 msgid "download"
19114 msgstr ""
19115
19116 # type: verbatim
19117 #: ../fish/guestfish-actions.pod:818
19118 #, no-wrap
19119 msgid ""
19120 " download remotefilename (filename|-)\n"
19121 "\n"
19122 msgstr ""
19123
19124 # type: textblock
19125 #: ../fish/guestfish-actions.pod:825
19126 msgid "See also L</upload>, L</cat>."
19127 msgstr ""
19128
19129 # type: =head2
19130 #: ../fish/guestfish-actions.pod:829
19131 msgid "download-offset"
19132 msgstr ""
19133
19134 # type: verbatim
19135 #: ../fish/guestfish-actions.pod:831
19136 #, no-wrap
19137 msgid ""
19138 " download-offset remotefilename (filename|-) offset size\n"
19139 "\n"
19140 msgstr ""
19141
19142 # type: textblock
19143 #: ../fish/guestfish-actions.pod:839
19144 msgid ""
19145 "Note that there is no limit on the amount of data that can be downloaded "
19146 "with this call, unlike with L</pread>, and this call always reads the full "
19147 "amount unless an error occurs."
19148 msgstr ""
19149
19150 # type: textblock
19151 #: ../fish/guestfish-actions.pod:844
19152 msgid "See also L</download>, L</pread>."
19153 msgstr ""
19154
19155 # type: =head2
19156 #: ../fish/guestfish-actions.pod:848
19157 msgid "drop-caches"
19158 msgstr ""
19159
19160 # type: verbatim
19161 #: ../fish/guestfish-actions.pod:850
19162 #, no-wrap
19163 msgid ""
19164 " drop-caches whattodrop\n"
19165 "\n"
19166 msgstr ""
19167
19168 # type: =head2
19169 #: ../fish/guestfish-actions.pod:862
19170 msgid "du"
19171 msgstr ""
19172
19173 # type: verbatim
19174 #: ../fish/guestfish-actions.pod:864
19175 #, no-wrap
19176 msgid ""
19177 " du path\n"
19178 "\n"
19179 msgstr ""
19180
19181 # type: =head2
19182 #: ../fish/guestfish-actions.pod:876
19183 msgid "e2fsck-f"
19184 msgstr ""
19185
19186 # type: verbatim
19187 #: ../fish/guestfish-actions.pod:878
19188 #, no-wrap
19189 msgid ""
19190 " e2fsck-f device\n"
19191 "\n"
19192 msgstr ""
19193
19194 # type: textblock
19195 #: ../fish/guestfish-actions.pod:884
19196 msgid ""
19197 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19198 "should use L</fsck>."
19199 msgstr ""
19200
19201 # type: =head2
19202 #: ../fish/guestfish-actions.pod:887
19203 msgid "echo-daemon"
19204 msgstr ""
19205
19206 # type: verbatim
19207 #: ../fish/guestfish-actions.pod:889
19208 #, no-wrap
19209 msgid ""
19210 " echo-daemon 'words ...'\n"
19211 "\n"
19212 msgstr ""
19213
19214 # type: textblock
19215 #: ../fish/guestfish-actions.pod:896
19216 msgid "See also L</ping-daemon>."
19217 msgstr ""
19218
19219 # type: =head2
19220 #: ../fish/guestfish-actions.pod:898
19221 msgid "egrep"
19222 msgstr ""
19223
19224 # type: verbatim
19225 #: ../fish/guestfish-actions.pod:900
19226 #, no-wrap
19227 msgid ""
19228 " egrep regex path\n"
19229 "\n"
19230 msgstr ""
19231
19232 # type: =head2
19233 #: ../fish/guestfish-actions.pod:908
19234 msgid "egrepi"
19235 msgstr ""
19236
19237 # type: verbatim
19238 #: ../fish/guestfish-actions.pod:910
19239 #, no-wrap
19240 msgid ""
19241 " egrepi regex path\n"
19242 "\n"
19243 msgstr ""
19244
19245 # type: =head2
19246 #: ../fish/guestfish-actions.pod:918
19247 msgid "equal"
19248 msgstr ""
19249
19250 # type: verbatim
19251 #: ../fish/guestfish-actions.pod:920
19252 #, no-wrap
19253 msgid ""
19254 " equal file1 file2\n"
19255 "\n"
19256 msgstr ""
19257
19258 # type: =head2
19259 #: ../fish/guestfish-actions.pod:927
19260 msgid "exists"
19261 msgstr ""
19262
19263 # type: verbatim
19264 #: ../fish/guestfish-actions.pod:929
19265 #, no-wrap
19266 msgid ""
19267 " exists path\n"
19268 "\n"
19269 msgstr ""
19270
19271 # type: textblock
19272 #: ../fish/guestfish-actions.pod:934
19273 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19274 msgstr ""
19275
19276 # type: =head2
19277 #: ../fish/guestfish-actions.pod:936
19278 msgid "fallocate"
19279 msgstr ""
19280
19281 # type: verbatim
19282 #: ../fish/guestfish-actions.pod:938
19283 #, no-wrap
19284 msgid ""
19285 " fallocate path len\n"
19286 "\n"
19287 msgstr ""
19288
19289 # type: =head2
19290 #: ../fish/guestfish-actions.pod:955
19291 msgid "fallocate64"
19292 msgstr ""
19293
19294 # type: verbatim
19295 #: ../fish/guestfish-actions.pod:957
19296 #, no-wrap
19297 msgid ""
19298 " fallocate64 path len\n"
19299 "\n"
19300 msgstr ""
19301
19302 # type: textblock
19303 #: ../fish/guestfish-actions.pod:963
19304 msgid ""
19305 "Note that this call allocates disk blocks for the file.  To create a sparse "
19306 "file use L</truncate-size> instead."
19307 msgstr ""
19308
19309 # type: textblock
19310 #: ../fish/guestfish-actions.pod:966
19311 msgid ""
19312 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19313 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19314 "maximum size of files created through that call to 1GB."
19315 msgstr ""
19316
19317 # type: =head2
19318 #: ../fish/guestfish-actions.pod:975
19319 msgid "fgrep"
19320 msgstr ""
19321
19322 # type: verbatim
19323 #: ../fish/guestfish-actions.pod:977
19324 #, no-wrap
19325 msgid ""
19326 " fgrep pattern path\n"
19327 "\n"
19328 msgstr ""
19329
19330 # type: =head2
19331 #: ../fish/guestfish-actions.pod:985
19332 msgid "fgrepi"
19333 msgstr ""
19334
19335 # type: verbatim
19336 #: ../fish/guestfish-actions.pod:987
19337 #, no-wrap
19338 msgid ""
19339 " fgrepi pattern path\n"
19340 "\n"
19341 msgstr ""
19342
19343 # type: =head2
19344 #: ../fish/guestfish-actions.pod:995
19345 msgid "file"
19346 msgstr ""
19347
19348 # type: verbatim
19349 #: ../fish/guestfish-actions.pod:997
19350 #, no-wrap
19351 msgid ""
19352 " file path\n"
19353 "\n"
19354 msgstr ""
19355
19356 # type: textblock
19357 #: ../fish/guestfish-actions.pod:1009
19358 msgid ""
19359 "This command can also be used on C</dev/> devices (and partitions, LV "
19360 "names).  You can for example use this to determine if a device contains a "
19361 "filesystem, although it's usually better to use L</vfs-type>."
19362 msgstr ""
19363
19364 # type: =head2
19365 #: ../fish/guestfish-actions.pod:1019
19366 msgid "file-architecture"
19367 msgstr ""
19368
19369 # type: verbatim
19370 #: ../fish/guestfish-actions.pod:1021
19371 #, no-wrap
19372 msgid ""
19373 " file-architecture filename\n"
19374 "\n"
19375 msgstr ""
19376
19377 # type: =head2
19378 #: ../fish/guestfish-actions.pod:1124
19379 msgid "filesize"
19380 msgstr ""
19381
19382 # type: verbatim
19383 #: ../fish/guestfish-actions.pod:1126
19384 #, no-wrap
19385 msgid ""
19386 " filesize file\n"
19387 "\n"
19388 msgstr ""
19389
19390 # type: textblock
19391 #: ../fish/guestfish-actions.pod:1130
19392 msgid ""
19393 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
19394 "L</is-file> etc.  To get the size of block devices, use "
19395 "L</blockdev-getsize64>."
19396 msgstr ""
19397
19398 # type: =head2
19399 #: ../fish/guestfish-actions.pod:1134
19400 msgid "fill"
19401 msgstr ""
19402
19403 # type: verbatim
19404 #: ../fish/guestfish-actions.pod:1136
19405 #, no-wrap
19406 msgid ""
19407 " fill c len path\n"
19408 "\n"
19409 msgstr ""
19410
19411 # type: textblock
19412 #: ../fish/guestfish-actions.pod:1142
19413 msgid ""
19414 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19415 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19416 "L</fill-pattern>."
19417 msgstr ""
19418
19419 # type: =head2
19420 #: ../fish/guestfish-actions.pod:1147
19421 msgid "fill-pattern"
19422 msgstr ""
19423
19424 # type: verbatim
19425 #: ../fish/guestfish-actions.pod:1149
19426 #, no-wrap
19427 msgid ""
19428 " fill-pattern pattern len path\n"
19429 "\n"
19430 msgstr ""
19431
19432 # type: textblock
19433 #: ../fish/guestfish-actions.pod:1151
19434 msgid ""
19435 "This function is like L</fill> except that it creates a new file of length "
19436 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
19437 "is truncated if necessary to ensure the length of the file is exactly C<len> "
19438 "bytes."
19439 msgstr ""
19440
19441 # type: =head2
19442 #: ../fish/guestfish-actions.pod:1156
19443 msgid "find"
19444 msgstr ""
19445
19446 # type: verbatim
19447 #: ../fish/guestfish-actions.pod:1158
19448 #, no-wrap
19449 msgid ""
19450 " find directory\n"
19451 "\n"
19452 msgstr ""
19453
19454 # type: textblock
19455 #: ../fish/guestfish-actions.pod:1172
19456 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
19457 msgstr ""
19458
19459 # type: textblock
19460 #: ../fish/guestfish-actions.pod:1185
19461 msgid "See also L</find0>."
19462 msgstr ""
19463
19464 # type: =head2
19465 #: ../fish/guestfish-actions.pod:1190
19466 msgid "find0"
19467 msgstr ""
19468
19469 # type: verbatim
19470 #: ../fish/guestfish-actions.pod:1192
19471 #, no-wrap
19472 msgid ""
19473 " find0 directory (files|-)\n"
19474 "\n"
19475 msgstr ""
19476
19477 # type: textblock
19478 #: ../fish/guestfish-actions.pod:1198
19479 msgid "This command works the same way as L</find> with the following exceptions:"
19480 msgstr ""
19481
19482 # type: =head2
19483 #: ../fish/guestfish-actions.pod:1225
19484 msgid "findfs-label"
19485 msgstr ""
19486
19487 # type: verbatim
19488 #: ../fish/guestfish-actions.pod:1227
19489 #, no-wrap
19490 msgid ""
19491 " findfs-label label\n"
19492 "\n"
19493 msgstr ""
19494
19495 # type: textblock
19496 #: ../fish/guestfish-actions.pod:1233
19497 msgid "To find the label of a filesystem, use L</vfs-label>."
19498 msgstr ""
19499
19500 # type: =head2
19501 #: ../fish/guestfish-actions.pod:1235
19502 msgid "findfs-uuid"
19503 msgstr ""
19504
19505 # type: verbatim
19506 #: ../fish/guestfish-actions.pod:1237
19507 #, no-wrap
19508 msgid ""
19509 " findfs-uuid uuid\n"
19510 "\n"
19511 msgstr ""
19512
19513 # type: textblock
19514 #: ../fish/guestfish-actions.pod:1243
19515 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
19516 msgstr ""
19517
19518 # type: =head2
19519 #: ../fish/guestfish-actions.pod:1245
19520 msgid "fsck"
19521 msgstr ""
19522
19523 # type: verbatim
19524 #: ../fish/guestfish-actions.pod:1247
19525 #, no-wrap
19526 msgid ""
19527 " fsck fstype device\n"
19528 "\n"
19529 msgstr ""
19530
19531 # type: =head2
19532 #: ../fish/guestfish-actions.pod:1277
19533 msgid "get-append"
19534 msgstr ""
19535
19536 # type: verbatim
19537 #: ../fish/guestfish-actions.pod:1279
19538 #, no-wrap
19539 msgid ""
19540 " get-append\n"
19541 "\n"
19542 msgstr ""
19543
19544 # type: =head2
19545 #: ../fish/guestfish-actions.pod:1286
19546 msgid "get-autosync"
19547 msgstr ""
19548
19549 # type: verbatim
19550 #: ../fish/guestfish-actions.pod:1288
19551 #, no-wrap
19552 msgid ""
19553 " get-autosync\n"
19554 "\n"
19555 msgstr ""
19556
19557 # type: =head2
19558 #: ../fish/guestfish-actions.pod:1292
19559 msgid "get-direct"
19560 msgstr ""
19561
19562 # type: verbatim
19563 #: ../fish/guestfish-actions.pod:1294
19564 #, no-wrap
19565 msgid ""
19566 " get-direct\n"
19567 "\n"
19568 msgstr ""
19569
19570 # type: =head2
19571 #: ../fish/guestfish-actions.pod:1298
19572 msgid "get-e2label"
19573 msgstr ""
19574
19575 # type: verbatim
19576 #: ../fish/guestfish-actions.pod:1300
19577 #, no-wrap
19578 msgid ""
19579 " get-e2label device\n"
19580 "\n"
19581 msgstr ""
19582
19583 # type: =head2
19584 #: ../fish/guestfish-actions.pod:1312
19585 msgid "get-e2uuid"
19586 msgstr ""
19587
19588 # type: verbatim
19589 #: ../fish/guestfish-actions.pod:1314
19590 #, no-wrap
19591 msgid ""
19592 " get-e2uuid device\n"
19593 "\n"
19594 msgstr ""
19595
19596 # type: =head2
19597 #: ../fish/guestfish-actions.pod:1326
19598 msgid "get-memsize"
19599 msgstr ""
19600
19601 # type: verbatim
19602 #: ../fish/guestfish-actions.pod:1328
19603 #, no-wrap
19604 msgid ""
19605 " get-memsize\n"
19606 "\n"
19607 msgstr ""
19608
19609 # type: textblock
19610 #: ../fish/guestfish-actions.pod:1333
19611 msgid ""
19612 "If L</set-memsize> was not called on this handle, and if "
19613 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
19614 "value for memsize."
19615 msgstr ""
19616
19617 # type: =head2
19618 #: ../fish/guestfish-actions.pod:1340
19619 msgid "get-network"
19620 msgstr ""
19621
19622 # type: verbatim
19623 #: ../fish/guestfish-actions.pod:1342
19624 #, no-wrap
19625 msgid ""
19626 " get-network\n"
19627 "\n"
19628 msgstr ""
19629
19630 # type: =head2
19631 #: ../fish/guestfish-actions.pod:1346
19632 msgid "get-path"
19633 msgstr ""
19634
19635 # type: verbatim
19636 #: ../fish/guestfish-actions.pod:1348
19637 #, no-wrap
19638 msgid ""
19639 " get-path\n"
19640 "\n"
19641 msgstr ""
19642
19643 # type: =head2
19644 #: ../fish/guestfish-actions.pod:1355
19645 msgid "get-pid"
19646 msgstr ""
19647
19648 # type: =head2
19649 #: ../fish/guestfish-actions.pod:1357
19650 msgid "pid"
19651 msgstr ""
19652
19653 # type: verbatim
19654 #: ../fish/guestfish-actions.pod:1359
19655 #, no-wrap
19656 msgid ""
19657 " get-pid\n"
19658 "\n"
19659 msgstr ""
19660
19661 # type: =head2
19662 #: ../fish/guestfish-actions.pod:1366
19663 msgid "get-qemu"
19664 msgstr ""
19665
19666 # type: verbatim
19667 #: ../fish/guestfish-actions.pod:1368
19668 #, no-wrap
19669 msgid ""
19670 " get-qemu\n"
19671 "\n"
19672 msgstr ""
19673
19674 # type: =head2
19675 #: ../fish/guestfish-actions.pod:1375
19676 msgid "get-recovery-proc"
19677 msgstr ""
19678
19679 # type: verbatim
19680 #: ../fish/guestfish-actions.pod:1377
19681 #, no-wrap
19682 msgid ""
19683 " get-recovery-proc\n"
19684 "\n"
19685 msgstr ""
19686
19687 # type: =head2
19688 #: ../fish/guestfish-actions.pod:1381
19689 msgid "get-selinux"
19690 msgstr ""
19691
19692 # type: verbatim
19693 #: ../fish/guestfish-actions.pod:1383
19694 #, no-wrap
19695 msgid ""
19696 " get-selinux\n"
19697 "\n"
19698 msgstr ""
19699
19700 # type: textblock
19701 #: ../fish/guestfish-actions.pod:1385
19702 msgid ""
19703 "This returns the current setting of the selinux flag which is passed to the "
19704 "appliance at boot time.  See L</set-selinux>."
19705 msgstr ""
19706
19707 # type: =head2
19708 #: ../fish/guestfish-actions.pod:1391
19709 msgid "get-state"
19710 msgstr ""
19711
19712 # type: verbatim
19713 #: ../fish/guestfish-actions.pod:1393
19714 #, no-wrap
19715 msgid ""
19716 " get-state\n"
19717 "\n"
19718 msgstr ""
19719
19720 # type: =head2
19721 #: ../fish/guestfish-actions.pod:1400
19722 msgid "get-trace"
19723 msgstr ""
19724
19725 # type: verbatim
19726 #: ../fish/guestfish-actions.pod:1402
19727 #, no-wrap
19728 msgid ""
19729 " get-trace\n"
19730 "\n"
19731 msgstr ""
19732
19733 # type: =head2
19734 #: ../fish/guestfish-actions.pod:1406
19735 msgid "get-umask"
19736 msgstr ""
19737
19738 # type: verbatim
19739 #: ../fish/guestfish-actions.pod:1408
19740 #, no-wrap
19741 msgid ""
19742 " get-umask\n"
19743 "\n"
19744 msgstr ""
19745
19746 # type: textblock
19747 #: ../fish/guestfish-actions.pod:1410
19748 msgid ""
19749 "Return the current umask.  By default the umask is C<022> unless it has been "
19750 "set by calling L</umask>."
19751 msgstr ""
19752
19753 # type: =head2
19754 #: ../fish/guestfish-actions.pod:1413
19755 msgid "get-verbose"
19756 msgstr ""
19757
19758 # type: verbatim
19759 #: ../fish/guestfish-actions.pod:1415
19760 #, no-wrap
19761 msgid ""
19762 " get-verbose\n"
19763 "\n"
19764 msgstr ""
19765
19766 # type: =head2
19767 #: ../fish/guestfish-actions.pod:1419
19768 msgid "getcon"
19769 msgstr ""
19770
19771 # type: verbatim
19772 #: ../fish/guestfish-actions.pod:1421
19773 #, no-wrap
19774 msgid ""
19775 " getcon\n"
19776 "\n"
19777 msgstr ""
19778
19779 # type: textblock
19780 #: ../fish/guestfish-actions.pod:1425
19781 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
19782 msgstr ""
19783
19784 # type: =head2
19785 #: ../fish/guestfish-actions.pod:1428
19786 msgid "getxattrs"
19787 msgstr ""
19788
19789 # type: verbatim
19790 #: ../fish/guestfish-actions.pod:1430
19791 #, no-wrap
19792 msgid ""
19793 " getxattrs path\n"
19794 "\n"
19795 msgstr ""
19796
19797 # type: textblock
19798 #: ../fish/guestfish-actions.pod:1438
19799 msgid "See also: L</lgetxattrs>, L<attr(5)>."
19800 msgstr ""
19801
19802 # type: =head2
19803 #: ../fish/guestfish-actions.pod:1440
19804 msgid "glob-expand"
19805 msgstr ""
19806
19807 # type: verbatim
19808 #: ../fish/guestfish-actions.pod:1442
19809 #, no-wrap
19810 msgid ""
19811 " glob-expand pattern\n"
19812 "\n"
19813 msgstr ""
19814
19815 # type: =head2
19816 #: ../fish/guestfish-actions.pod:1455
19817 msgid "grep"
19818 msgstr ""
19819
19820 # type: verbatim
19821 #: ../fish/guestfish-actions.pod:1457
19822 #, no-wrap
19823 msgid ""
19824 " grep regex path\n"
19825 "\n"
19826 msgstr ""
19827
19828 # type: =head2
19829 #: ../fish/guestfish-actions.pod:1465
19830 msgid "grepi"
19831 msgstr ""
19832
19833 # type: verbatim
19834 #: ../fish/guestfish-actions.pod:1467
19835 #, no-wrap
19836 msgid ""
19837 " grepi regex path\n"
19838 "\n"
19839 msgstr ""
19840
19841 # type: =head2
19842 #: ../fish/guestfish-actions.pod:1475
19843 msgid "grub-install"
19844 msgstr ""
19845
19846 # type: verbatim
19847 #: ../fish/guestfish-actions.pod:1477
19848 #, no-wrap
19849 msgid ""
19850 " grub-install root device\n"
19851 "\n"
19852 msgstr ""
19853
19854 # type: =head2
19855 #: ../fish/guestfish-actions.pod:1493
19856 msgid "head"
19857 msgstr ""
19858
19859 # type: verbatim
19860 #: ../fish/guestfish-actions.pod:1495
19861 #, no-wrap
19862 msgid ""
19863 " head path\n"
19864 "\n"
19865 msgstr ""
19866
19867 # type: =head2
19868 #: ../fish/guestfish-actions.pod:1503
19869 msgid "head-n"
19870 msgstr ""
19871
19872 # type: verbatim
19873 #: ../fish/guestfish-actions.pod:1505
19874 #, no-wrap
19875 msgid ""
19876 " head-n nrlines path\n"
19877 "\n"
19878 msgstr ""
19879
19880 # type: =head2
19881 #: ../fish/guestfish-actions.pod:1518
19882 msgid "hexdump"
19883 msgstr ""
19884
19885 # type: verbatim
19886 #: ../fish/guestfish-actions.pod:1520
19887 #, no-wrap
19888 msgid ""
19889 " hexdump path\n"
19890 "\n"
19891 msgstr ""
19892
19893 # type: =head2
19894 #: ../fish/guestfish-actions.pod:1528
19895 msgid "initrd-cat"
19896 msgstr ""
19897
19898 # type: verbatim
19899 #: ../fish/guestfish-actions.pod:1530
19900 #, no-wrap
19901 msgid ""
19902 " initrd-cat initrdpath filename\n"
19903 "\n"
19904 msgstr ""
19905
19906 # type: textblock
19907 #: ../fish/guestfish-actions.pod:1542
19908 msgid "See also L</initrd-list>."
19909 msgstr ""
19910
19911 # type: =head2
19912 #: ../fish/guestfish-actions.pod:1547
19913 msgid "initrd-list"
19914 msgstr ""
19915
19916 # type: verbatim
19917 #: ../fish/guestfish-actions.pod:1549
19918 #, no-wrap
19919 msgid ""
19920 " initrd-list path\n"
19921 "\n"
19922 msgstr ""
19923
19924 # type: =head2
19925 #: ../fish/guestfish-actions.pod:1561
19926 msgid "inotify-add-watch"
19927 msgstr ""
19928
19929 # type: verbatim
19930 #: ../fish/guestfish-actions.pod:1563
19931 #, no-wrap
19932 msgid ""
19933 " inotify-add-watch path mask\n"
19934 "\n"
19935 msgstr ""
19936
19937 # type: =head2
19938 #: ../fish/guestfish-actions.pod:1575
19939 msgid "inotify-close"
19940 msgstr ""
19941
19942 # type: verbatim
19943 #: ../fish/guestfish-actions.pod:1577
19944 #, no-wrap
19945 msgid ""
19946 " inotify-close\n"
19947 "\n"
19948 msgstr ""
19949
19950 # type: =head2
19951 #: ../fish/guestfish-actions.pod:1583
19952 msgid "inotify-files"
19953 msgstr ""
19954
19955 # type: verbatim
19956 #: ../fish/guestfish-actions.pod:1585
19957 #, no-wrap
19958 msgid ""
19959 " inotify-files\n"
19960 "\n"
19961 msgstr ""
19962
19963 # type: textblock
19964 #: ../fish/guestfish-actions.pod:1587
19965 msgid ""
19966 "This function is a helpful wrapper around L</inotify-read> which just "
19967 "returns a list of pathnames of objects that were touched.  The returned "
19968 "pathnames are sorted and deduplicated."
19969 msgstr ""
19970
19971 # type: =head2
19972 #: ../fish/guestfish-actions.pod:1591
19973 msgid "inotify-init"
19974 msgstr ""
19975
19976 # type: verbatim
19977 #: ../fish/guestfish-actions.pod:1593
19978 #, no-wrap
19979 msgid ""
19980 " inotify-init maxevents\n"
19981 "\n"
19982 msgstr ""
19983
19984 # type: textblock
19985 #: ../fish/guestfish-actions.pod:1599
19986 msgid ""
19987 "C<maxevents> is the maximum number of events which will be queued up between "
19988 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19989 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19990 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19991 "but records the fact that it threw them away by setting a flag "
19992 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19993 msgstr ""
19994
19995 # type: textblock
19996 #: ../fish/guestfish-actions.pod:1609
19997 msgid ""
19998 "Before any events are generated, you have to add some watches to the "
19999 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20000 "L</inotify-watch-all>."
20001 msgstr ""
20002
20003 # type: textblock
20004 #: ../fish/guestfish-actions.pod:1615
20005 msgid ""
20006 "Queued up events should be read periodically by calling L</inotify-read> (or "
20007 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20008 "If you don't read the events out often enough then you risk the internal "
20009 "queue overflowing."
20010 msgstr ""
20011
20012 # type: textblock
20013 #: ../fish/guestfish-actions.pod:1622
20014 msgid ""
20015 "The handle should be closed after use by calling L</inotify-close>.  This "
20016 "also removes any watches automatically."
20017 msgstr ""
20018
20019 # type: =head2
20020 #: ../fish/guestfish-actions.pod:1631
20021 msgid "inotify-read"
20022 msgstr ""
20023
20024 # type: verbatim
20025 #: ../fish/guestfish-actions.pod:1633
20026 #, no-wrap
20027 msgid ""
20028 " inotify-read\n"
20029 "\n"
20030 msgstr ""
20031
20032 # type: =head2
20033 #: ../fish/guestfish-actions.pod:1646
20034 msgid "inotify-rm-watch"
20035 msgstr ""
20036
20037 # type: verbatim
20038 #: ../fish/guestfish-actions.pod:1648
20039 #, no-wrap
20040 msgid ""
20041 " inotify-rm-watch wd\n"
20042 "\n"
20043 msgstr ""
20044
20045 # type: textblock
20046 #: ../fish/guestfish-actions.pod:1650
20047 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20048 msgstr ""
20049
20050 # type: =head2
20051 #: ../fish/guestfish-actions.pod:1653
20052 msgid "inspect-get-arch"
20053 msgstr ""
20054
20055 # type: verbatim
20056 #: ../fish/guestfish-actions.pod:1655
20057 #, no-wrap
20058 msgid ""
20059 " inspect-get-arch root\n"
20060 "\n"
20061 msgstr ""
20062
20063 # type: textblock
20064 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673 ../fish/guestfish-actions.pod:1739 ../fish/guestfish-actions.pod:1757 ../fish/guestfish-actions.pod:1778 ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1838 ../fish/guestfish-actions.pod:1862 ../fish/guestfish-actions.pod:1892 ../fish/guestfish-actions.pod:1923
20065 msgid ""
20066 "This function should only be called with a root device string as returned by "
20067 "L</inspect-os>."
20068 msgstr ""
20069
20070 # type: textblock
20071 #: ../fish/guestfish-actions.pod:1660
20072 msgid ""
20073 "This returns the architecture of the inspected operating system.  The "
20074 "possible return values are listed under L</file-architecture>."
20075 msgstr ""
20076
20077 # type: =head2
20078 #: ../fish/guestfish-actions.pod:1669
20079 msgid "inspect-get-distro"
20080 msgstr ""
20081
20082 # type: verbatim
20083 #: ../fish/guestfish-actions.pod:1671
20084 #, no-wrap
20085 msgid ""
20086 " inspect-get-distro root\n"
20087 "\n"
20088 msgstr ""
20089
20090 # type: =head2
20091 #: ../fish/guestfish-actions.pod:1735
20092 msgid "inspect-get-filesystems"
20093 msgstr ""
20094
20095 # type: verbatim
20096 #: ../fish/guestfish-actions.pod:1737
20097 #, no-wrap
20098 msgid ""
20099 " inspect-get-filesystems root\n"
20100 "\n"
20101 msgstr ""
20102
20103 # type: textblock
20104 #: ../fish/guestfish-actions.pod:1750
20105 msgid ""
20106 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20107 "L</inspect-get-mountpoints>."
20108 msgstr ""
20109
20110 # type: =head2
20111 #: ../fish/guestfish-actions.pod:1753
20112 msgid "inspect-get-major-version"
20113 msgstr ""
20114
20115 # type: verbatim
20116 #: ../fish/guestfish-actions.pod:1755
20117 #, no-wrap
20118 msgid ""
20119 " inspect-get-major-version root\n"
20120 "\n"
20121 msgstr ""
20122
20123 # type: =head2
20124 #: ../fish/guestfish-actions.pod:1774
20125 msgid "inspect-get-minor-version"
20126 msgstr ""
20127
20128 # type: verbatim
20129 #: ../fish/guestfish-actions.pod:1776
20130 #, no-wrap
20131 msgid ""
20132 " inspect-get-minor-version root\n"
20133 "\n"
20134 msgstr ""
20135
20136 # type: textblock
20137 #: ../fish/guestfish-actions.pod:1786
20138 msgid ""
20139 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20140 "L</inspect-get-major-version>."
20141 msgstr ""
20142
20143 # type: =head2
20144 #: ../fish/guestfish-actions.pod:1789
20145 msgid "inspect-get-mountpoints"
20146 msgstr ""
20147
20148 # type: verbatim
20149 #: ../fish/guestfish-actions.pod:1791
20150 #, no-wrap
20151 msgid ""
20152 " inspect-get-mountpoints root\n"
20153 "\n"
20154 msgstr ""
20155
20156 # type: textblock
20157 #: ../fish/guestfish-actions.pod:1809
20158 msgid ""
20159 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20160 "L</inspect-get-filesystems>."
20161 msgstr ""
20162
20163 # type: =head2
20164 #: ../fish/guestfish-actions.pod:1812
20165 msgid "inspect-get-package-format"
20166 msgstr ""
20167
20168 # type: verbatim
20169 #: ../fish/guestfish-actions.pod:1814
20170 #, no-wrap
20171 msgid ""
20172 " inspect-get-package-format root\n"
20173 "\n"
20174 msgstr ""
20175
20176 # type: textblock
20177 #: ../fish/guestfish-actions.pod:1819
20178 msgid ""
20179 "This function and L</inspect-get-package-management> return the package "
20180 "format and package management tool used by the inspected operating system.  "
20181 "For example for Fedora these functions would return C<rpm> (package format) "
20182 "and C<yum> (package management)."
20183 msgstr ""
20184
20185 # type: =head2
20186 #: ../fish/guestfish-actions.pod:1834
20187 msgid "inspect-get-package-management"
20188 msgstr ""
20189
20190 # type: verbatim
20191 #: ../fish/guestfish-actions.pod:1836
20192 #, no-wrap
20193 msgid ""
20194 " inspect-get-package-management root\n"
20195 "\n"
20196 msgstr ""
20197
20198 # type: textblock
20199 #: ../fish/guestfish-actions.pod:1841
20200 msgid ""
20201 "L</inspect-get-package-format> and this function return the package format "
20202 "and package management tool used by the inspected operating system.  For "
20203 "example for Fedora these functions would return C<rpm> (package format) and "
20204 "C<yum> (package management)."
20205 msgstr ""
20206
20207 # type: =head2
20208 #: ../fish/guestfish-actions.pod:1858
20209 msgid "inspect-get-product-name"
20210 msgstr ""
20211
20212 # type: verbatim
20213 #: ../fish/guestfish-actions.pod:1860
20214 #, no-wrap
20215 msgid ""
20216 " inspect-get-product-name root\n"
20217 "\n"
20218 msgstr ""
20219
20220 # type: =head2
20221 #: ../fish/guestfish-actions.pod:1875
20222 msgid "inspect-get-roots"
20223 msgstr ""
20224
20225 # type: verbatim
20226 #: ../fish/guestfish-actions.pod:1877
20227 #, no-wrap
20228 msgid ""
20229 " inspect-get-roots\n"
20230 "\n"
20231 msgstr ""
20232
20233 # type: textblock
20234 #: ../fish/guestfish-actions.pod:1879
20235 msgid ""
20236 "This function is a convenient way to get the list of root devices, as "
20237 "returned from a previous call to L</inspect-os>, but without redoing the "
20238 "whole inspection process."
20239 msgstr ""
20240
20241 # type: textblock
20242 #: ../fish/guestfish-actions.pod:1883
20243 msgid ""
20244 "This returns an empty list if either no root devices were found or the "
20245 "caller has not called L</inspect-os>."
20246 msgstr ""
20247
20248 # type: =head2
20249 #: ../fish/guestfish-actions.pod:1888
20250 msgid "inspect-get-type"
20251 msgstr ""
20252
20253 # type: verbatim
20254 #: ../fish/guestfish-actions.pod:1890
20255 #, no-wrap
20256 msgid ""
20257 " inspect-get-type root\n"
20258 "\n"
20259 msgstr ""
20260
20261 # type: =head2
20262 #: ../fish/guestfish-actions.pod:1919
20263 msgid "inspect-get-windows-systemroot"
20264 msgstr ""
20265
20266 # type: verbatim
20267 #: ../fish/guestfish-actions.pod:1921
20268 #, no-wrap
20269 msgid ""
20270 " inspect-get-windows-systemroot root\n"
20271 "\n"
20272 msgstr ""
20273
20274 # type: =head2
20275 #: ../fish/guestfish-actions.pod:1935
20276 msgid "inspect-os"
20277 msgstr ""
20278
20279 # type: verbatim
20280 #: ../fish/guestfish-actions.pod:1937
20281 #, no-wrap
20282 msgid ""
20283 " inspect-os\n"
20284 "\n"
20285 msgstr ""
20286
20287 # type: textblock
20288 #: ../fish/guestfish-actions.pod:1952
20289 msgid ""
20290 "You can pass the root string(s) returned to other L</inspect-get-*> "
20291 "functions in order to query further information about each operating system, "
20292 "such as the name and version."
20293 msgstr ""
20294
20295 # type: textblock
20296 #: ../fish/guestfish-actions.pod:1957
20297 msgid ""
20298 "This function uses other libguestfs features such as L</mount-ro> and "
20299 "L</umount-all> in order to mount and unmount filesystems and look at the "
20300 "contents.  This should be called with no disks currently mounted.  The "
20301 "function may also use Augeas, so any existing Augeas handle will be closed."
20302 msgstr ""
20303
20304 # type: textblock
20305 #: ../fish/guestfish-actions.pod:1969 ../fish/guestfish-actions.pod:2125 ../fish/guestfish-actions.pod:2171
20306 msgid "See also L</list-filesystems>."
20307 msgstr ""
20308
20309 # type: =head2
20310 #: ../fish/guestfish-actions.pod:1971
20311 msgid "is-blockdev"
20312 msgstr ""
20313
20314 # type: verbatim
20315 #: ../fish/guestfish-actions.pod:1973
20316 #, no-wrap
20317 msgid ""
20318 " is-blockdev path\n"
20319 "\n"
20320 msgstr ""
20321
20322 # type: textblock
20323 #: ../fish/guestfish-actions.pod:1978 ../fish/guestfish-actions.pod:1996 ../fish/guestfish-actions.pod:2015 ../fish/guestfish-actions.pod:2024 ../fish/guestfish-actions.pod:2034 ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2077
20324 msgid "See also L</stat>."
20325 msgstr ""
20326
20327 # type: =head2
20328 #: ../fish/guestfish-actions.pod:1980
20329 msgid "is-busy"
20330 msgstr ""
20331
20332 # type: verbatim
20333 #: ../fish/guestfish-actions.pod:1982
20334 #, no-wrap
20335 msgid ""
20336 " is-busy\n"
20337 "\n"
20338 msgstr ""
20339
20340 # type: =head2
20341 #: ../fish/guestfish-actions.pod:1989
20342 msgid "is-chardev"
20343 msgstr ""
20344
20345 # type: verbatim
20346 #: ../fish/guestfish-actions.pod:1991
20347 #, no-wrap
20348 msgid ""
20349 " is-chardev path\n"
20350 "\n"
20351 msgstr ""
20352
20353 # type: =head2
20354 #: ../fish/guestfish-actions.pod:1998
20355 msgid "is-config"
20356 msgstr ""
20357
20358 # type: verbatim
20359 #: ../fish/guestfish-actions.pod:2000
20360 #, no-wrap
20361 msgid ""
20362 " is-config\n"
20363 "\n"
20364 msgstr ""
20365
20366 # type: =head2
20367 #: ../fish/guestfish-actions.pod:2007
20368 msgid "is-dir"
20369 msgstr ""
20370
20371 # type: verbatim
20372 #: ../fish/guestfish-actions.pod:2009
20373 #, no-wrap
20374 msgid ""
20375 " is-dir path\n"
20376 "\n"
20377 msgstr ""
20378
20379 # type: =head2
20380 #: ../fish/guestfish-actions.pod:2017
20381 msgid "is-fifo"
20382 msgstr ""
20383
20384 # type: verbatim
20385 #: ../fish/guestfish-actions.pod:2019
20386 #, no-wrap
20387 msgid ""
20388 " is-fifo path\n"
20389 "\n"
20390 msgstr ""
20391
20392 # type: =head2
20393 #: ../fish/guestfish-actions.pod:2026
20394 msgid "is-file"
20395 msgstr ""
20396
20397 # type: verbatim
20398 #: ../fish/guestfish-actions.pod:2028
20399 #, no-wrap
20400 msgid ""
20401 " is-file path\n"
20402 "\n"
20403 msgstr ""
20404
20405 # type: =head2
20406 #: ../fish/guestfish-actions.pod:2036
20407 msgid "is-launching"
20408 msgstr ""
20409
20410 # type: verbatim
20411 #: ../fish/guestfish-actions.pod:2038
20412 #, no-wrap
20413 msgid ""
20414 " is-launching\n"
20415 "\n"
20416 msgstr ""
20417
20418 # type: =head2
20419 #: ../fish/guestfish-actions.pod:2045
20420 msgid "is-lv"
20421 msgstr ""
20422
20423 # type: verbatim
20424 #: ../fish/guestfish-actions.pod:2047
20425 #, no-wrap
20426 msgid ""
20427 " is-lv device\n"
20428 "\n"
20429 msgstr ""
20430
20431 # type: =head2
20432 #: ../fish/guestfish-actions.pod:2052
20433 msgid "is-ready"
20434 msgstr ""
20435
20436 # type: verbatim
20437 #: ../fish/guestfish-actions.pod:2054
20438 #, no-wrap
20439 msgid ""
20440 " is-ready\n"
20441 "\n"
20442 msgstr ""
20443
20444 # type: =head2
20445 #: ../fish/guestfish-actions.pod:2061
20446 msgid "is-socket"
20447 msgstr ""
20448
20449 # type: verbatim
20450 #: ../fish/guestfish-actions.pod:2063
20451 #, no-wrap
20452 msgid ""
20453 " is-socket path\n"
20454 "\n"
20455 msgstr ""
20456
20457 # type: =head2
20458 #: ../fish/guestfish-actions.pod:2070
20459 msgid "is-symlink"
20460 msgstr ""
20461
20462 # type: verbatim
20463 #: ../fish/guestfish-actions.pod:2072
20464 #, no-wrap
20465 msgid ""
20466 " is-symlink path\n"
20467 "\n"
20468 msgstr ""
20469
20470 # type: =head2
20471 #: ../fish/guestfish-actions.pod:2079
20472 msgid "kill-subprocess"
20473 msgstr ""
20474
20475 # type: verbatim
20476 #: ../fish/guestfish-actions.pod:2081
20477 #, no-wrap
20478 msgid ""
20479 " kill-subprocess\n"
20480 "\n"
20481 msgstr ""
20482
20483 # type: =head2
20484 #: ../fish/guestfish-actions.pod:2085
20485 msgid "launch"
20486 msgstr ""
20487
20488 # type: =head2
20489 #: ../fish/guestfish-actions.pod:2087
20490 msgid "run"
20491 msgstr ""
20492
20493 # type: verbatim
20494 #: ../fish/guestfish-actions.pod:2089
20495 #, no-wrap
20496 msgid ""
20497 " launch\n"
20498 "\n"
20499 msgstr ""
20500
20501 # type: =head2
20502 #: ../fish/guestfish-actions.pod:2097
20503 msgid "lchown"
20504 msgstr ""
20505
20506 # type: verbatim
20507 #: ../fish/guestfish-actions.pod:2099
20508 #, no-wrap
20509 msgid ""
20510 " lchown owner group path\n"
20511 "\n"
20512 msgstr ""
20513
20514 # type: textblock
20515 #: ../fish/guestfish-actions.pod:2101
20516 msgid ""
20517 "Change the file owner to C<owner> and group to C<group>.  This is like "
20518 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
20519 "the target."
20520 msgstr ""
20521
20522 # type: =head2
20523 #: ../fish/guestfish-actions.pod:2109
20524 msgid "lgetxattrs"
20525 msgstr ""
20526
20527 # type: verbatim
20528 #: ../fish/guestfish-actions.pod:2111
20529 #, no-wrap
20530 msgid ""
20531 " lgetxattrs path\n"
20532 "\n"
20533 msgstr ""
20534
20535 # type: textblock
20536 #: ../fish/guestfish-actions.pod:2113
20537 msgid ""
20538 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
20539 "it returns the extended attributes of the link itself."
20540 msgstr ""
20541
20542 # type: =head2
20543 #: ../fish/guestfish-actions.pod:2117
20544 msgid "list-devices"
20545 msgstr ""
20546
20547 # type: verbatim
20548 #: ../fish/guestfish-actions.pod:2119
20549 #, no-wrap
20550 msgid ""
20551 " list-devices\n"
20552 "\n"
20553 msgstr ""
20554
20555 # type: =head2
20556 #: ../fish/guestfish-actions.pod:2127
20557 msgid "list-filesystems"
20558 msgstr ""
20559
20560 # type: verbatim
20561 #: ../fish/guestfish-actions.pod:2129
20562 #, no-wrap
20563 msgid ""
20564 " list-filesystems\n"
20565 "\n"
20566 msgstr ""
20567
20568 # type: textblock
20569 #: ../fish/guestfish-actions.pod:2148
20570 msgid ""
20571 "This command runs other libguestfs commands, which might include L</mount> "
20572 "and L</umount>, and therefore you should use this soon after launch and only "
20573 "when nothing is mounted."
20574 msgstr ""
20575
20576 # type: textblock
20577 #: ../fish/guestfish-actions.pod:2152
20578 msgid ""
20579 "Not all of the filesystems returned will be mountable.  In particular, swap "
20580 "partitions are returned in the list.  Also this command does not check that "
20581 "each filesystem found is valid and mountable, and some filesystems might be "
20582 "mountable but require special options.  Filesystems may not all belong to a "
20583 "single logical operating system (use L</inspect-os> to look for OSes)."
20584 msgstr ""
20585
20586 # type: =head2
20587 #: ../fish/guestfish-actions.pod:2160
20588 msgid "list-partitions"
20589 msgstr ""
20590
20591 # type: verbatim
20592 #: ../fish/guestfish-actions.pod:2162
20593 #, no-wrap
20594 msgid ""
20595 " list-partitions\n"
20596 "\n"
20597 msgstr ""
20598
20599 # type: textblock
20600 #: ../fish/guestfish-actions.pod:2168
20601 msgid ""
20602 "This does not return logical volumes.  For that you will need to call "
20603 "L</lvs>."
20604 msgstr ""
20605
20606 # type: =head2
20607 #: ../fish/guestfish-actions.pod:2173
20608 msgid "ll"
20609 msgstr ""
20610
20611 # type: verbatim
20612 #: ../fish/guestfish-actions.pod:2175
20613 #, no-wrap
20614 msgid ""
20615 " ll directory\n"
20616 "\n"
20617 msgstr ""
20618
20619 # type: =head2
20620 #: ../fish/guestfish-actions.pod:2183
20621 msgid "ln"
20622 msgstr ""
20623
20624 # type: verbatim
20625 #: ../fish/guestfish-actions.pod:2185
20626 #, no-wrap
20627 msgid ""
20628 " ln target linkname\n"
20629 "\n"
20630 msgstr ""
20631
20632 # type: =head2
20633 #: ../fish/guestfish-actions.pod:2189
20634 msgid "ln-f"
20635 msgstr ""
20636
20637 # type: verbatim
20638 #: ../fish/guestfish-actions.pod:2191
20639 #, no-wrap
20640 msgid ""
20641 " ln-f target linkname\n"
20642 "\n"
20643 msgstr ""
20644
20645 # type: =head2
20646 #: ../fish/guestfish-actions.pod:2196
20647 msgid "ln-s"
20648 msgstr ""
20649
20650 # type: verbatim
20651 #: ../fish/guestfish-actions.pod:2198
20652 #, no-wrap
20653 msgid ""
20654 " ln-s target linkname\n"
20655 "\n"
20656 msgstr ""
20657
20658 # type: =head2
20659 #: ../fish/guestfish-actions.pod:2202
20660 msgid "ln-sf"
20661 msgstr ""
20662
20663 # type: verbatim
20664 #: ../fish/guestfish-actions.pod:2204
20665 #, no-wrap
20666 msgid ""
20667 " ln-sf target linkname\n"
20668 "\n"
20669 msgstr ""
20670
20671 # type: =head2
20672 #: ../fish/guestfish-actions.pod:2209
20673 msgid "lremovexattr"
20674 msgstr ""
20675
20676 # type: verbatim
20677 #: ../fish/guestfish-actions.pod:2211
20678 #, no-wrap
20679 msgid ""
20680 " lremovexattr xattr path\n"
20681 "\n"
20682 msgstr ""
20683
20684 # type: textblock
20685 #: ../fish/guestfish-actions.pod:2213
20686 msgid ""
20687 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
20688 "it removes an extended attribute of the link itself."
20689 msgstr ""
20690
20691 # type: =head2
20692 #: ../fish/guestfish-actions.pod:2217
20693 msgid "ls"
20694 msgstr ""
20695
20696 # type: verbatim
20697 #: ../fish/guestfish-actions.pod:2219
20698 #, no-wrap
20699 msgid ""
20700 " ls directory\n"
20701 "\n"
20702 msgstr ""
20703
20704 # type: textblock
20705 #: ../fish/guestfish-actions.pod:2225
20706 msgid ""
20707 "This command is mostly useful for interactive sessions.  Programs should "
20708 "probably use L</readdir> instead."
20709 msgstr ""
20710
20711 # type: =head2
20712 #: ../fish/guestfish-actions.pod:2228
20713 msgid "lsetxattr"
20714 msgstr ""
20715
20716 # type: verbatim
20717 #: ../fish/guestfish-actions.pod:2230
20718 #, no-wrap
20719 msgid ""
20720 " lsetxattr xattr val vallen path\n"
20721 "\n"
20722 msgstr ""
20723
20724 # type: textblock
20725 #: ../fish/guestfish-actions.pod:2232
20726 msgid ""
20727 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
20728 "sets an extended attribute of the link itself."
20729 msgstr ""
20730
20731 # type: =head2
20732 #: ../fish/guestfish-actions.pod:2236
20733 msgid "lstat"
20734 msgstr ""
20735
20736 # type: verbatim
20737 #: ../fish/guestfish-actions.pod:2238
20738 #, no-wrap
20739 msgid ""
20740 " lstat path\n"
20741 "\n"
20742 msgstr ""
20743
20744 # type: textblock
20745 #: ../fish/guestfish-actions.pod:2242
20746 msgid ""
20747 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
20748 "the link is stat-ed, not the file it refers to."
20749 msgstr ""
20750
20751 # type: =head2
20752 #: ../fish/guestfish-actions.pod:2248
20753 msgid "lstatlist"
20754 msgstr ""
20755
20756 # type: verbatim
20757 #: ../fish/guestfish-actions.pod:2250
20758 #, no-wrap
20759 msgid ""
20760 " lstatlist path 'names ...'\n"
20761 "\n"
20762 msgstr ""
20763
20764 # type: textblock
20765 #: ../fish/guestfish-actions.pod:2252
20766 msgid ""
20767 "This call allows you to perform the L</lstat> operation on multiple files, "
20768 "where all files are in the directory C<path>.  C<names> is the list of files "
20769 "from this directory."
20770 msgstr ""
20771
20772 # type: textblock
20773 #: ../fish/guestfish-actions.pod:2261
20774 msgid ""
20775 "This call is intended for programs that want to efficiently list a directory "
20776 "contents without making many round-trips.  See also L</lxattrlist> for a "
20777 "similarly efficient call for getting extended attributes.  Very long "
20778 "directory listings might cause the protocol message size to be exceeded, "
20779 "causing this call to fail.  The caller must split up such requests into "
20780 "smaller groups of names."
20781 msgstr ""
20782
20783 # type: =head2
20784 #: ../fish/guestfish-actions.pod:2269
20785 msgid "luks-add-key"
20786 msgstr ""
20787
20788 # type: verbatim
20789 #: ../fish/guestfish-actions.pod:2271
20790 #, no-wrap
20791 msgid ""
20792 " luks-add-key device keyslot\n"
20793 "\n"
20794 msgstr ""
20795
20796 # type: textblock
20797 #: ../fish/guestfish-actions.pod:2278
20798 msgid ""
20799 "Note that if C<keyslot> already contains a key, then this command will "
20800 "fail.  You have to use L</luks-kill-slot> first to remove that key."
20801 msgstr ""
20802
20803 # type: textblock
20804 #: ../fish/guestfish-actions.pod:2282 ../fish/guestfish-actions.pod:2304 ../fish/guestfish-actions.pod:2317 ../fish/guestfish-actions.pod:2331 ../fish/guestfish-actions.pod:2354 ../fish/guestfish-actions.pod:2364
20805 msgid ""
20806 "This command has one or more key or passphrase parameters.  Guestfish will "
20807 "prompt for these separately."
20808 msgstr ""
20809
20810 # type: =head2
20811 #: ../fish/guestfish-actions.pod:2285
20812 msgid "luks-close"
20813 msgstr ""
20814
20815 # type: verbatim
20816 #: ../fish/guestfish-actions.pod:2287
20817 #, no-wrap
20818 msgid ""
20819 " luks-close device\n"
20820 "\n"
20821 msgstr ""
20822
20823 # type: textblock
20824 #: ../fish/guestfish-actions.pod:2289
20825 msgid ""
20826 "This closes a LUKS device that was created earlier by L</luks-open> or "
20827 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
20828 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
20829 "underlying block device."
20830 msgstr ""
20831
20832 # type: =head2
20833 #: ../fish/guestfish-actions.pod:2295
20834 msgid "luks-format"
20835 msgstr ""
20836
20837 # type: verbatim
20838 #: ../fish/guestfish-actions.pod:2297
20839 #, no-wrap
20840 msgid ""
20841 " luks-format device keyslot\n"
20842 "\n"
20843 msgstr ""
20844
20845 # type: =head2
20846 #: ../fish/guestfish-actions.pod:2310
20847 msgid "luks-format-cipher"
20848 msgstr ""
20849
20850 # type: verbatim
20851 #: ../fish/guestfish-actions.pod:2312
20852 #, no-wrap
20853 msgid ""
20854 " luks-format-cipher device keyslot cipher\n"
20855 "\n"
20856 msgstr ""
20857
20858 # type: textblock
20859 #: ../fish/guestfish-actions.pod:2314
20860 msgid ""
20861 "This command is the same as L</luks-format> but it also allows you to set "
20862 "the C<cipher> used."
20863 msgstr ""
20864
20865 # type: =head2
20866 #: ../fish/guestfish-actions.pod:2323
20867 msgid "luks-kill-slot"
20868 msgstr ""
20869
20870 # type: verbatim
20871 #: ../fish/guestfish-actions.pod:2325
20872 #, no-wrap
20873 msgid ""
20874 " luks-kill-slot device keyslot\n"
20875 "\n"
20876 msgstr ""
20877
20878 # type: =head2
20879 #: ../fish/guestfish-actions.pod:2334
20880 msgid "luks-open"
20881 msgstr ""
20882
20883 # type: verbatim
20884 #: ../fish/guestfish-actions.pod:2336
20885 #, no-wrap
20886 msgid ""
20887 " luks-open device mapname\n"
20888 "\n"
20889 msgstr ""
20890
20891 # type: textblock
20892 #: ../fish/guestfish-actions.pod:2350
20893 msgid ""
20894 "If this block device contains LVM volume groups, then calling L</vgscan> "
20895 "followed by L</vg-activate-all> will make them visible."
20896 msgstr ""
20897
20898 # type: =head2
20899 #: ../fish/guestfish-actions.pod:2357
20900 msgid "luks-open-ro"
20901 msgstr ""
20902
20903 # type: verbatim
20904 #: ../fish/guestfish-actions.pod:2359
20905 #, no-wrap
20906 msgid ""
20907 " luks-open-ro device mapname\n"
20908 "\n"
20909 msgstr ""
20910
20911 # type: textblock
20912 #: ../fish/guestfish-actions.pod:2361
20913 msgid ""
20914 "This is the same as L</luks-open> except that a read-only mapping is "
20915 "created."
20916 msgstr ""
20917
20918 # type: =head2
20919 #: ../fish/guestfish-actions.pod:2367
20920 msgid "lvcreate"
20921 msgstr ""
20922
20923 # type: verbatim
20924 #: ../fish/guestfish-actions.pod:2369
20925 #, no-wrap
20926 msgid ""
20927 " lvcreate logvol volgroup mbytes\n"
20928 "\n"
20929 msgstr ""
20930
20931 # type: =head2
20932 #: ../fish/guestfish-actions.pod:2374
20933 msgid "lvm-canonical-lv-name"
20934 msgstr ""
20935
20936 # type: verbatim
20937 #: ../fish/guestfish-actions.pod:2376
20938 #, no-wrap
20939 msgid ""
20940 " lvm-canonical-lv-name lvname\n"
20941 "\n"
20942 msgstr ""
20943
20944 # type: textblock
20945 #: ../fish/guestfish-actions.pod:2385
20946 msgid "See also L</is-lv>."
20947 msgstr ""
20948
20949 # type: =head2
20950 #: ../fish/guestfish-actions.pod:2387
20951 msgid "lvm-clear-filter"
20952 msgstr ""
20953
20954 # type: verbatim
20955 #: ../fish/guestfish-actions.pod:2389
20956 #, no-wrap
20957 msgid ""
20958 " lvm-clear-filter\n"
20959 "\n"
20960 msgstr ""
20961
20962 # type: textblock
20963 #: ../fish/guestfish-actions.pod:2391
20964 msgid ""
20965 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20966 "block device."
20967 msgstr ""
20968
20969 # type: =head2
20970 #: ../fish/guestfish-actions.pod:2397
20971 msgid "lvm-remove-all"
20972 msgstr ""
20973
20974 # type: verbatim
20975 #: ../fish/guestfish-actions.pod:2399
20976 #, no-wrap
20977 msgid ""
20978 " lvm-remove-all\n"
20979 "\n"
20980 msgstr ""
20981
20982 # type: =head2
20983 #: ../fish/guestfish-actions.pod:2407
20984 msgid "lvm-set-filter"
20985 msgstr ""
20986
20987 # type: verbatim
20988 #: ../fish/guestfish-actions.pod:2409
20989 #, no-wrap
20990 msgid ""
20991 " lvm-set-filter 'devices ...'\n"
20992 "\n"
20993 msgstr ""
20994
20995 # type: =head2
20996 #: ../fish/guestfish-actions.pod:2434
20997 msgid "lvremove"
20998 msgstr ""
20999
21000 # type: verbatim
21001 #: ../fish/guestfish-actions.pod:2436
21002 #, no-wrap
21003 msgid ""
21004 " lvremove device\n"
21005 "\n"
21006 msgstr ""
21007
21008 # type: =head2
21009 #: ../fish/guestfish-actions.pod:2444
21010 msgid "lvrename"
21011 msgstr ""
21012
21013 # type: verbatim
21014 #: ../fish/guestfish-actions.pod:2446
21015 #, no-wrap
21016 msgid ""
21017 " lvrename logvol newlogvol\n"
21018 "\n"
21019 msgstr ""
21020
21021 # type: =head2
21022 #: ../fish/guestfish-actions.pod:2450
21023 msgid "lvresize"
21024 msgstr ""
21025
21026 # type: verbatim
21027 #: ../fish/guestfish-actions.pod:2452
21028 #, no-wrap
21029 msgid ""
21030 " lvresize device mbytes\n"
21031 "\n"
21032 msgstr ""
21033
21034 # type: =head2
21035 #: ../fish/guestfish-actions.pod:2458
21036 msgid "lvresize-free"
21037 msgstr ""
21038
21039 # type: verbatim
21040 #: ../fish/guestfish-actions.pod:2460
21041 #, no-wrap
21042 msgid ""
21043 " lvresize-free lv percent\n"
21044 "\n"
21045 msgstr ""
21046
21047 # type: =head2
21048 #: ../fish/guestfish-actions.pod:2468
21049 msgid "lvs"
21050 msgstr ""
21051
21052 # type: verbatim
21053 #: ../fish/guestfish-actions.pod:2470
21054 #, no-wrap
21055 msgid ""
21056 " lvs\n"
21057 "\n"
21058 msgstr ""
21059
21060 # type: textblock
21061 #: ../fish/guestfish-actions.pod:2478
21062 msgid "See also L</lvs-full>, L</list-filesystems>."
21063 msgstr ""
21064
21065 # type: =head2
21066 #: ../fish/guestfish-actions.pod:2480
21067 msgid "lvs-full"
21068 msgstr ""
21069
21070 # type: verbatim
21071 #: ../fish/guestfish-actions.pod:2482
21072 #, no-wrap
21073 msgid ""
21074 " lvs-full\n"
21075 "\n"
21076 msgstr ""
21077
21078 # type: =head2
21079 #: ../fish/guestfish-actions.pod:2487
21080 msgid "lvuuid"
21081 msgstr ""
21082
21083 # type: verbatim
21084 #: ../fish/guestfish-actions.pod:2489
21085 #, no-wrap
21086 msgid ""
21087 " lvuuid device\n"
21088 "\n"
21089 msgstr ""
21090
21091 # type: =head2
21092 #: ../fish/guestfish-actions.pod:2493
21093 msgid "lxattrlist"
21094 msgstr ""
21095
21096 # type: verbatim
21097 #: ../fish/guestfish-actions.pod:2495
21098 #, no-wrap
21099 msgid ""
21100 " lxattrlist path 'names ...'\n"
21101 "\n"
21102 msgstr ""
21103
21104 # type: textblock
21105 #: ../fish/guestfish-actions.pod:2511
21106 msgid ""
21107 "This call is intended for programs that want to efficiently list a directory "
21108 "contents without making many round-trips.  See also L</lstatlist> for a "
21109 "similarly efficient call for getting standard stats.  Very long directory "
21110 "listings might cause the protocol message size to be exceeded, causing this "
21111 "call to fail.  The caller must split up such requests into smaller groups of "
21112 "names."
21113 msgstr ""
21114
21115 # type: =head2
21116 #: ../fish/guestfish-actions.pod:2519
21117 msgid "mkdir"
21118 msgstr ""
21119
21120 # type: verbatim
21121 #: ../fish/guestfish-actions.pod:2521
21122 #, no-wrap
21123 msgid ""
21124 " mkdir path\n"
21125 "\n"
21126 msgstr ""
21127
21128 # type: =head2
21129 #: ../fish/guestfish-actions.pod:2525
21130 msgid "mkdir-mode"
21131 msgstr ""
21132
21133 # type: verbatim
21134 #: ../fish/guestfish-actions.pod:2527
21135 #, no-wrap
21136 msgid ""
21137 " mkdir-mode path mode\n"
21138 "\n"
21139 msgstr ""
21140
21141 # type: textblock
21142 #: ../fish/guestfish-actions.pod:2536
21143 msgid "See also L</mkdir>, L</umask>"
21144 msgstr ""
21145
21146 # type: =head2
21147 #: ../fish/guestfish-actions.pod:2538
21148 msgid "mkdir-p"
21149 msgstr ""
21150
21151 # type: verbatim
21152 #: ../fish/guestfish-actions.pod:2540
21153 #, no-wrap
21154 msgid ""
21155 " mkdir-p path\n"
21156 "\n"
21157 msgstr ""
21158
21159 # type: =head2
21160 #: ../fish/guestfish-actions.pod:2545
21161 msgid "mkdtemp"
21162 msgstr ""
21163
21164 # type: verbatim
21165 #: ../fish/guestfish-actions.pod:2547
21166 #, no-wrap
21167 msgid ""
21168 " mkdtemp template\n"
21169 "\n"
21170 msgstr ""
21171
21172 # type: =head2
21173 #: ../fish/guestfish-actions.pod:2568
21174 msgid "mke2fs-J"
21175 msgstr ""
21176
21177 # type: verbatim
21178 #: ../fish/guestfish-actions.pod:2570
21179 #, no-wrap
21180 msgid ""
21181 " mke2fs-J fstype blocksize device journal\n"
21182 "\n"
21183 msgstr ""
21184
21185 # type: textblock
21186 #: ../fish/guestfish-actions.pod:2578
21187 msgid "See also L</mke2journal>."
21188 msgstr ""
21189
21190 # type: =head2
21191 #: ../fish/guestfish-actions.pod:2580
21192 msgid "mke2fs-JL"
21193 msgstr ""
21194
21195 # type: verbatim
21196 #: ../fish/guestfish-actions.pod:2582
21197 #, no-wrap
21198 msgid ""
21199 " mke2fs-JL fstype blocksize device label\n"
21200 "\n"
21201 msgstr ""
21202
21203 # type: textblock
21204 #: ../fish/guestfish-actions.pod:2587
21205 msgid "See also L</mke2journal-L>."
21206 msgstr ""
21207
21208 # type: =head2
21209 #: ../fish/guestfish-actions.pod:2589
21210 msgid "mke2fs-JU"
21211 msgstr ""
21212
21213 # type: verbatim
21214 #: ../fish/guestfish-actions.pod:2591
21215 #, no-wrap
21216 msgid ""
21217 " mke2fs-JU fstype blocksize device uuid\n"
21218 "\n"
21219 msgstr ""
21220
21221 # type: textblock
21222 #: ../fish/guestfish-actions.pod:2596
21223 msgid "See also L</mke2journal-U>."
21224 msgstr ""
21225
21226 # type: =head2
21227 #: ../fish/guestfish-actions.pod:2598
21228 msgid "mke2journal"
21229 msgstr ""
21230
21231 # type: verbatim
21232 #: ../fish/guestfish-actions.pod:2600
21233 #, no-wrap
21234 msgid ""
21235 " mke2journal blocksize device\n"
21236 "\n"
21237 msgstr ""
21238
21239 # type: =head2
21240 #: ../fish/guestfish-actions.pod:2607
21241 msgid "mke2journal-L"
21242 msgstr ""
21243
21244 # type: verbatim
21245 #: ../fish/guestfish-actions.pod:2609
21246 #, no-wrap
21247 msgid ""
21248 " mke2journal-L blocksize label device\n"
21249 "\n"
21250 msgstr ""
21251
21252 # type: =head2
21253 #: ../fish/guestfish-actions.pod:2613
21254 msgid "mke2journal-U"
21255 msgstr ""
21256
21257 # type: verbatim
21258 #: ../fish/guestfish-actions.pod:2615
21259 #, no-wrap
21260 msgid ""
21261 " mke2journal-U blocksize uuid device\n"
21262 "\n"
21263 msgstr ""
21264
21265 # type: =head2
21266 #: ../fish/guestfish-actions.pod:2619
21267 msgid "mkfifo"
21268 msgstr ""
21269
21270 # type: verbatim
21271 #: ../fish/guestfish-actions.pod:2621
21272 #, no-wrap
21273 msgid ""
21274 " mkfifo mode path\n"
21275 "\n"
21276 msgstr ""
21277
21278 # type: textblock
21279 #: ../fish/guestfish-actions.pod:2623
21280 msgid ""
21281 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21282 "is just a convenient wrapper around L</mknod>."
21283 msgstr ""
21284
21285 # type: =head2
21286 #: ../fish/guestfish-actions.pod:2629
21287 msgid "mkfs"
21288 msgstr ""
21289
21290 # type: verbatim
21291 #: ../fish/guestfish-actions.pod:2631
21292 #, no-wrap
21293 msgid ""
21294 " mkfs fstype device\n"
21295 "\n"
21296 msgstr ""
21297
21298 # type: =head2
21299 #: ../fish/guestfish-actions.pod:2637
21300 msgid "mkfs-b"
21301 msgstr ""
21302
21303 # type: verbatim
21304 #: ../fish/guestfish-actions.pod:2639
21305 #, no-wrap
21306 msgid ""
21307 " mkfs-b fstype blocksize device\n"
21308 "\n"
21309 msgstr ""
21310
21311 # type: textblock
21312 #: ../fish/guestfish-actions.pod:2641
21313 msgid ""
21314 "This call is similar to L</mkfs>, but it allows you to control the block "
21315 "size of the resulting filesystem.  Supported block sizes depend on the "
21316 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21317 msgstr ""
21318
21319 # type: =head2
21320 #: ../fish/guestfish-actions.pod:2649
21321 msgid "mkmountpoint"
21322 msgstr ""
21323
21324 # type: verbatim
21325 #: ../fish/guestfish-actions.pod:2651
21326 #, no-wrap
21327 msgid ""
21328 " mkmountpoint exemptpath\n"
21329 "\n"
21330 msgstr ""
21331
21332 # type: textblock
21333 #: ../fish/guestfish-actions.pod:2653
21334 msgid ""
21335 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21336 "to create extra mountpoints before mounting the first filesystem."
21337 msgstr ""
21338
21339 # type: textblock
21340 #: ../fish/guestfish-actions.pod:2677
21341 msgid ""
21342 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21343 "unexpected errors if you try to mix these calls.  It is safest to manually "
21344 "unmount filesystems and remove mountpoints after use."
21345 msgstr ""
21346
21347 # type: textblock
21348 #: ../fish/guestfish-actions.pod:2681
21349 msgid ""
21350 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21351 "for this to work for manual mountpoints, you must ensure that the innermost "
21352 "mountpoints have the longest pathnames, as in the example code above."
21353 msgstr ""
21354
21355 # type: textblock
21356 #: ../fish/guestfish-actions.pod:2688
21357 msgid ""
21358 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21359 "that L</umount-all> is called when the handle is closed which can also "
21360 "trigger these issues."
21361 msgstr ""
21362
21363 # type: =head2
21364 #: ../fish/guestfish-actions.pod:2692
21365 msgid "mknod"
21366 msgstr ""
21367
21368 # type: verbatim
21369 #: ../fish/guestfish-actions.pod:2694
21370 #, no-wrap
21371 msgid ""
21372 " mknod mode devmajor devminor path\n"
21373 "\n"
21374 msgstr ""
21375
21376 # type: textblock
21377 #: ../fish/guestfish-actions.pod:2704
21378 msgid ""
21379 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21380 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21381 "regular file).  These constants are available in the standard Linux header "
21382 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21383 "wrappers around this command which bitwise OR in the appropriate constant "
21384 "for you."
21385 msgstr ""
21386
21387 # type: =head2
21388 #: ../fish/guestfish-actions.pod:2714
21389 msgid "mknod-b"
21390 msgstr ""
21391
21392 # type: verbatim
21393 #: ../fish/guestfish-actions.pod:2716
21394 #, no-wrap
21395 msgid ""
21396 " mknod-b mode devmajor devminor path\n"
21397 "\n"
21398 msgstr ""
21399
21400 # type: textblock
21401 #: ../fish/guestfish-actions.pod:2718
21402 msgid ""
21403 "This call creates a block device node called C<path> with mode C<mode> and "
21404 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21405 "wrapper around L</mknod>."
21406 msgstr ""
21407
21408 # type: =head2
21409 #: ../fish/guestfish-actions.pod:2724
21410 msgid "mknod-c"
21411 msgstr ""
21412
21413 # type: verbatim
21414 #: ../fish/guestfish-actions.pod:2726
21415 #, no-wrap
21416 msgid ""
21417 " mknod-c mode devmajor devminor path\n"
21418 "\n"
21419 msgstr ""
21420
21421 # type: textblock
21422 #: ../fish/guestfish-actions.pod:2728
21423 msgid ""
21424 "This call creates a char device node called C<path> with mode C<mode> and "
21425 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21426 "wrapper around L</mknod>."
21427 msgstr ""
21428
21429 # type: =head2
21430 #: ../fish/guestfish-actions.pod:2734
21431 msgid "mkswap"
21432 msgstr ""
21433
21434 # type: verbatim
21435 #: ../fish/guestfish-actions.pod:2736
21436 #, no-wrap
21437 msgid ""
21438 " mkswap device\n"
21439 "\n"
21440 msgstr ""
21441
21442 # type: =head2
21443 #: ../fish/guestfish-actions.pod:2740
21444 msgid "mkswap-L"
21445 msgstr ""
21446
21447 # type: verbatim
21448 #: ../fish/guestfish-actions.pod:2742
21449 #, no-wrap
21450 msgid ""
21451 " mkswap-L label device\n"
21452 "\n"
21453 msgstr ""
21454
21455 # type: =head2
21456 #: ../fish/guestfish-actions.pod:2750
21457 msgid "mkswap-U"
21458 msgstr ""
21459
21460 # type: verbatim
21461 #: ../fish/guestfish-actions.pod:2752
21462 #, no-wrap
21463 msgid ""
21464 " mkswap-U uuid device\n"
21465 "\n"
21466 msgstr ""
21467
21468 # type: =head2
21469 #: ../fish/guestfish-actions.pod:2756
21470 msgid "mkswap-file"
21471 msgstr ""
21472
21473 # type: verbatim
21474 #: ../fish/guestfish-actions.pod:2758
21475 #, no-wrap
21476 msgid ""
21477 " mkswap-file path\n"
21478 "\n"
21479 msgstr ""
21480
21481 # type: textblock
21482 #: ../fish/guestfish-actions.pod:2762
21483 msgid ""
21484 "This command just writes a swap file signature to an existing file.  To "
21485 "create the file itself, use something like L</fallocate>."
21486 msgstr ""
21487
21488 # type: =head2
21489 #: ../fish/guestfish-actions.pod:2765
21490 msgid "modprobe"
21491 msgstr ""
21492
21493 # type: verbatim
21494 #: ../fish/guestfish-actions.pod:2767
21495 #, no-wrap
21496 msgid ""
21497 " modprobe modulename\n"
21498 "\n"
21499 msgstr ""
21500
21501 # type: =head2
21502 #: ../fish/guestfish-actions.pod:2774
21503 msgid "mount"
21504 msgstr ""
21505
21506 # type: verbatim
21507 #: ../fish/guestfish-actions.pod:2776
21508 #, no-wrap
21509 msgid ""
21510 " mount device mountpoint\n"
21511 "\n"
21512 msgstr ""
21513
21514 # type: textblock
21515 #: ../fish/guestfish-actions.pod:2792
21516 msgid ""
21517 "B<Important note:> When you use this call, the filesystem options C<sync> "
21518 "and C<noatime> are set implicitly.  This was originally done because we "
21519 "thought it would improve reliability, but it turns out that I<-o sync> has a "
21520 "very large negative performance impact and negligible effect on "
21521 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
21522 "code that needs performance, and instead use L</mount-options> (use an empty "
21523 "string for the first parameter if you don't want any options)."
21524 msgstr ""
21525
21526 # type: =head2
21527 #: ../fish/guestfish-actions.pod:2802
21528 msgid "mount-loop"
21529 msgstr ""
21530
21531 # type: verbatim
21532 #: ../fish/guestfish-actions.pod:2804
21533 #, no-wrap
21534 msgid ""
21535 " mount-loop file mountpoint\n"
21536 "\n"
21537 msgstr ""
21538
21539 # type: =head2
21540 #: ../fish/guestfish-actions.pod:2810
21541 msgid "mount-options"
21542 msgstr ""
21543
21544 # type: verbatim
21545 #: ../fish/guestfish-actions.pod:2812
21546 #, no-wrap
21547 msgid ""
21548 " mount-options options device mountpoint\n"
21549 "\n"
21550 msgstr ""
21551
21552 # type: textblock
21553 #: ../fish/guestfish-actions.pod:2814
21554 msgid ""
21555 "This is the same as the L</mount> command, but it allows you to set the "
21556 "mount options as for the L<mount(8)> I<-o> flag."
21557 msgstr ""
21558
21559 # type: =head2
21560 #: ../fish/guestfish-actions.pod:2822
21561 msgid "mount-ro"
21562 msgstr ""
21563
21564 # type: verbatim
21565 #: ../fish/guestfish-actions.pod:2824
21566 #, no-wrap
21567 msgid ""
21568 " mount-ro device mountpoint\n"
21569 "\n"
21570 msgstr ""
21571
21572 # type: textblock
21573 #: ../fish/guestfish-actions.pod:2826
21574 msgid ""
21575 "This is the same as the L</mount> command, but it mounts the filesystem with "
21576 "the read-only (I<-o ro>) flag."
21577 msgstr ""
21578
21579 # type: =head2
21580 #: ../fish/guestfish-actions.pod:2829
21581 msgid "mount-vfs"
21582 msgstr ""
21583
21584 # type: verbatim
21585 #: ../fish/guestfish-actions.pod:2831
21586 #, no-wrap
21587 msgid ""
21588 " mount-vfs options vfstype device mountpoint\n"
21589 "\n"
21590 msgstr ""
21591
21592 # type: textblock
21593 #: ../fish/guestfish-actions.pod:2833
21594 msgid ""
21595 "This is the same as the L</mount> command, but it allows you to set both the "
21596 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
21597 msgstr ""
21598
21599 # type: =head2
21600 #: ../fish/guestfish-actions.pod:2837
21601 msgid "mountpoints"
21602 msgstr ""
21603
21604 # type: verbatim
21605 #: ../fish/guestfish-actions.pod:2839
21606 #, no-wrap
21607 msgid ""
21608 " mountpoints\n"
21609 "\n"
21610 msgstr ""
21611
21612 # type: textblock
21613 #: ../fish/guestfish-actions.pod:2841
21614 msgid ""
21615 "This call is similar to L</mounts>.  That call returns a list of devices.  "
21616 "This one returns a hash table (map) of device name to directory where the "
21617 "device is mounted."
21618 msgstr ""
21619
21620 # type: =head2
21621 #: ../fish/guestfish-actions.pod:2845
21622 msgid "mounts"
21623 msgstr ""
21624
21625 # type: verbatim
21626 #: ../fish/guestfish-actions.pod:2847
21627 #, no-wrap
21628 msgid ""
21629 " mounts\n"
21630 "\n"
21631 msgstr ""
21632
21633 # type: textblock
21634 #: ../fish/guestfish-actions.pod:2854
21635 msgid "See also: L</mountpoints>"
21636 msgstr ""
21637
21638 # type: =head2
21639 #: ../fish/guestfish-actions.pod:2856
21640 msgid "mv"
21641 msgstr ""
21642
21643 # type: verbatim
21644 #: ../fish/guestfish-actions.pod:2858
21645 #, no-wrap
21646 msgid ""
21647 " mv src dest\n"
21648 "\n"
21649 msgstr ""
21650
21651 # type: =head2
21652 #: ../fish/guestfish-actions.pod:2863
21653 msgid "ntfs-3g-probe"
21654 msgstr ""
21655
21656 # type: verbatim
21657 #: ../fish/guestfish-actions.pod:2865
21658 #, no-wrap
21659 msgid ""
21660 " ntfs-3g-probe true|false device\n"
21661 "\n"
21662 msgstr ""
21663
21664 # type: =head2
21665 #: ../fish/guestfish-actions.pod:2879
21666 msgid "ntfsresize"
21667 msgstr ""
21668
21669 # type: verbatim
21670 #: ../fish/guestfish-actions.pod:2881
21671 #, no-wrap
21672 msgid ""
21673 " ntfsresize device\n"
21674 "\n"
21675 msgstr ""
21676
21677 # type: =head2
21678 #: ../fish/guestfish-actions.pod:2887
21679 msgid "ntfsresize-size"
21680 msgstr ""
21681
21682 # type: verbatim
21683 #: ../fish/guestfish-actions.pod:2889
21684 #, no-wrap
21685 msgid ""
21686 " ntfsresize-size device size\n"
21687 "\n"
21688 msgstr ""
21689
21690 # type: textblock
21691 #: ../fish/guestfish-actions.pod:2891
21692 msgid ""
21693 "This command is the same as L</ntfsresize> except that it allows you to "
21694 "specify the new size (in bytes) explicitly."
21695 msgstr ""
21696
21697 # type: =head2
21698 #: ../fish/guestfish-actions.pod:2894
21699 msgid "part-add"
21700 msgstr ""
21701
21702 # type: verbatim
21703 #: ../fish/guestfish-actions.pod:2896
21704 #, no-wrap
21705 msgid ""
21706 " part-add device prlogex startsect endsect\n"
21707 "\n"
21708 msgstr ""
21709
21710 # type: textblock
21711 #: ../fish/guestfish-actions.pod:2898
21712 msgid ""
21713 "This command adds a partition to C<device>.  If there is no partition table "
21714 "on the device, call L</part-init> first."
21715 msgstr ""
21716
21717 # type: textblock
21718 #: ../fish/guestfish-actions.pod:2910
21719 msgid ""
21720 "Creating a partition which covers the whole disk is not so easy.  Use "
21721 "L</part-disk> to do that."
21722 msgstr ""
21723
21724 # type: =head2
21725 #: ../fish/guestfish-actions.pod:2913
21726 msgid "part-del"
21727 msgstr ""
21728
21729 # type: verbatim
21730 #: ../fish/guestfish-actions.pod:2915
21731 #, no-wrap
21732 msgid ""
21733 " part-del device partnum\n"
21734 "\n"
21735 msgstr ""
21736
21737 # type: =head2
21738 #: ../fish/guestfish-actions.pod:2923
21739 msgid "part-disk"
21740 msgstr ""
21741
21742 # type: verbatim
21743 #: ../fish/guestfish-actions.pod:2925
21744 #, no-wrap
21745 msgid ""
21746 " part-disk device parttype\n"
21747 "\n"
21748 msgstr ""
21749
21750 # type: textblock
21751 #: ../fish/guestfish-actions.pod:2927
21752 msgid ""
21753 "This command is simply a combination of L</part-init> followed by "
21754 "L</part-add> to create a single primary partition covering the whole disk."
21755 msgstr ""
21756
21757 # type: textblock
21758 #: ../fish/guestfish-actions.pod:2931
21759 msgid ""
21760 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
21761 "possible values are described in L</part-init>."
21762 msgstr ""
21763
21764 # type: =head2
21765 #: ../fish/guestfish-actions.pod:2937
21766 msgid "part-get-bootable"
21767 msgstr ""
21768
21769 # type: verbatim
21770 #: ../fish/guestfish-actions.pod:2939
21771 #, no-wrap
21772 msgid ""
21773 " part-get-bootable device partnum\n"
21774 "\n"
21775 msgstr ""
21776
21777 # type: textblock
21778 #: ../fish/guestfish-actions.pod:2944
21779 msgid "See also L</part-set-bootable>."
21780 msgstr ""
21781
21782 # type: =head2
21783 #: ../fish/guestfish-actions.pod:2946
21784 msgid "part-get-mbr-id"
21785 msgstr ""
21786
21787 # type: verbatim
21788 #: ../fish/guestfish-actions.pod:2948
21789 #, no-wrap
21790 msgid ""
21791 " part-get-mbr-id device partnum\n"
21792 "\n"
21793 msgstr ""
21794
21795 # type: textblock
21796 #: ../fish/guestfish-actions.pod:2953 ../fish/guestfish-actions.pod:3091
21797 msgid ""
21798 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
21799 "undefined results for other partition table types (see "
21800 "L</part-get-parttype>)."
21801 msgstr ""
21802
21803 # type: =head2
21804 #: ../fish/guestfish-actions.pod:2957
21805 msgid "part-get-parttype"
21806 msgstr ""
21807
21808 # type: verbatim
21809 #: ../fish/guestfish-actions.pod:2959
21810 #, no-wrap
21811 msgid ""
21812 " part-get-parttype device\n"
21813 "\n"
21814 msgstr ""
21815
21816 # type: textblock
21817 #: ../fish/guestfish-actions.pod:2964
21818 msgid ""
21819 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
21820 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
21821 "possible, although unusual.  See L</part-init> for a full list."
21822 msgstr ""
21823
21824 # type: =head2
21825 #: ../fish/guestfish-actions.pod:2969
21826 msgid "part-init"
21827 msgstr ""
21828
21829 # type: verbatim
21830 #: ../fish/guestfish-actions.pod:2971
21831 #, no-wrap
21832 msgid ""
21833 " part-init device parttype\n"
21834 "\n"
21835 msgstr ""
21836
21837 # type: textblock
21838 #: ../fish/guestfish-actions.pod:2977
21839 msgid ""
21840 "Initially there are no partitions.  Following this, you should call "
21841 "L</part-add> for each partition required."
21842 msgstr ""
21843
21844 # type: =head2
21845 #: ../fish/guestfish-actions.pod:3040
21846 msgid "part-list"
21847 msgstr ""
21848
21849 # type: verbatim
21850 #: ../fish/guestfish-actions.pod:3042
21851 #, no-wrap
21852 msgid ""
21853 " part-list device\n"
21854 "\n"
21855 msgstr ""
21856
21857 # type: textblock
21858 #: ../fish/guestfish-actions.pod:3057
21859 msgid ""
21860 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
21861 "the device's sector size, see L</blockdev-getss>."
21862 msgstr ""
21863
21864 # type: =head2
21865 #: ../fish/guestfish-actions.pod:3070
21866 msgid "part-set-bootable"
21867 msgstr ""
21868
21869 # type: verbatim
21870 #: ../fish/guestfish-actions.pod:3072
21871 #, no-wrap
21872 msgid ""
21873 " part-set-bootable device partnum true|false\n"
21874 "\n"
21875 msgstr ""
21876
21877 # type: =head2
21878 #: ../fish/guestfish-actions.pod:3081
21879 msgid "part-set-mbr-id"
21880 msgstr ""
21881
21882 # type: verbatim
21883 #: ../fish/guestfish-actions.pod:3083
21884 #, no-wrap
21885 msgid ""
21886 " part-set-mbr-id device partnum idbyte\n"
21887 "\n"
21888 msgstr ""
21889
21890 # type: =head2
21891 #: ../fish/guestfish-actions.pod:3095
21892 msgid "part-set-name"
21893 msgstr ""
21894
21895 # type: verbatim
21896 #: ../fish/guestfish-actions.pod:3097
21897 #, no-wrap
21898 msgid ""
21899 " part-set-name device partnum name\n"
21900 "\n"
21901 msgstr ""
21902
21903 # type: =head2
21904 #: ../fish/guestfish-actions.pod:3105
21905 msgid "part-to-dev"
21906 msgstr ""
21907
21908 # type: verbatim
21909 #: ../fish/guestfish-actions.pod:3107
21910 #, no-wrap
21911 msgid ""
21912 " part-to-dev partition\n"
21913 "\n"
21914 msgstr ""
21915
21916 # type: textblock
21917 #: ../fish/guestfish-actions.pod:3113
21918 msgid ""
21919 "The named partition must exist, for example as a string returned from "
21920 "L</list-partitions>."
21921 msgstr ""
21922
21923 # type: =head2
21924 #: ../fish/guestfish-actions.pod:3116
21925 msgid "ping-daemon"
21926 msgstr ""
21927
21928 # type: verbatim
21929 #: ../fish/guestfish-actions.pod:3118
21930 #, no-wrap
21931 msgid ""
21932 " ping-daemon\n"
21933 "\n"
21934 msgstr ""
21935
21936 # type: =head2
21937 #: ../fish/guestfish-actions.pod:3125
21938 msgid "pread"
21939 msgstr ""
21940
21941 # type: verbatim
21942 #: ../fish/guestfish-actions.pod:3127
21943 #, no-wrap
21944 msgid ""
21945 " pread path count offset\n"
21946 "\n"
21947 msgstr ""
21948
21949 # type: textblock
21950 #: ../fish/guestfish-actions.pod:3135
21951 msgid "See also L</pwrite>, L</pread-device>."
21952 msgstr ""
21953
21954 # type: =head2
21955 #: ../fish/guestfish-actions.pod:3140
21956 msgid "pread-device"
21957 msgstr ""
21958
21959 # type: verbatim
21960 #: ../fish/guestfish-actions.pod:3142
21961 #, no-wrap
21962 msgid ""
21963 " pread-device device count offset\n"
21964 "\n"
21965 msgstr ""
21966
21967 # type: textblock
21968 #: ../fish/guestfish-actions.pod:3150
21969 msgid "See also L</pread>."
21970 msgstr ""
21971
21972 # type: =head2
21973 #: ../fish/guestfish-actions.pod:3155
21974 msgid "pvcreate"
21975 msgstr ""
21976
21977 # type: verbatim
21978 #: ../fish/guestfish-actions.pod:3157
21979 #, no-wrap
21980 msgid ""
21981 " pvcreate device\n"
21982 "\n"
21983 msgstr ""
21984
21985 # type: =head2
21986 #: ../fish/guestfish-actions.pod:3163
21987 msgid "pvremove"
21988 msgstr ""
21989
21990 # type: verbatim
21991 #: ../fish/guestfish-actions.pod:3165
21992 #, no-wrap
21993 msgid ""
21994 " pvremove device\n"
21995 "\n"
21996 msgstr ""
21997
21998 # type: =head2
21999 #: ../fish/guestfish-actions.pod:3174
22000 msgid "pvresize"
22001 msgstr ""
22002
22003 # type: verbatim
22004 #: ../fish/guestfish-actions.pod:3176
22005 #, no-wrap
22006 msgid ""
22007 " pvresize device\n"
22008 "\n"
22009 msgstr ""
22010
22011 # type: =head2
22012 #: ../fish/guestfish-actions.pod:3181
22013 msgid "pvresize-size"
22014 msgstr ""
22015
22016 # type: verbatim
22017 #: ../fish/guestfish-actions.pod:3183
22018 #, no-wrap
22019 msgid ""
22020 " pvresize-size device size\n"
22021 "\n"
22022 msgstr ""
22023
22024 # type: textblock
22025 #: ../fish/guestfish-actions.pod:3185
22026 msgid ""
22027 "This command is the same as L</pvresize> except that it allows you to "
22028 "specify the new size (in bytes) explicitly."
22029 msgstr ""
22030
22031 # type: =head2
22032 #: ../fish/guestfish-actions.pod:3188
22033 msgid "pvs"
22034 msgstr ""
22035
22036 # type: verbatim
22037 #: ../fish/guestfish-actions.pod:3190
22038 #, no-wrap
22039 msgid ""
22040 " pvs\n"
22041 "\n"
22042 msgstr ""
22043
22044 # type: textblock
22045 #: ../fish/guestfish-actions.pod:3198
22046 msgid "See also L</pvs-full>."
22047 msgstr ""
22048
22049 # type: =head2
22050 #: ../fish/guestfish-actions.pod:3200
22051 msgid "pvs-full"
22052 msgstr ""
22053
22054 # type: verbatim
22055 #: ../fish/guestfish-actions.pod:3202
22056 #, no-wrap
22057 msgid ""
22058 " pvs-full\n"
22059 "\n"
22060 msgstr ""
22061
22062 # type: =head2
22063 #: ../fish/guestfish-actions.pod:3207
22064 msgid "pvuuid"
22065 msgstr ""
22066
22067 # type: verbatim
22068 #: ../fish/guestfish-actions.pod:3209
22069 #, no-wrap
22070 msgid ""
22071 " pvuuid device\n"
22072 "\n"
22073 msgstr ""
22074
22075 # type: =head2
22076 #: ../fish/guestfish-actions.pod:3213
22077 msgid "pwrite"
22078 msgstr ""
22079
22080 # type: verbatim
22081 #: ../fish/guestfish-actions.pod:3215
22082 #, no-wrap
22083 msgid ""
22084 " pwrite path content offset\n"
22085 "\n"
22086 msgstr ""
22087
22088 # type: textblock
22089 #: ../fish/guestfish-actions.pod:3226
22090 msgid "See also L</pread>, L</pwrite-device>."
22091 msgstr ""
22092
22093 # type: =head2
22094 #: ../fish/guestfish-actions.pod:3231
22095 msgid "pwrite-device"
22096 msgstr ""
22097
22098 # type: verbatim
22099 #: ../fish/guestfish-actions.pod:3233
22100 #, no-wrap
22101 msgid ""
22102 " pwrite-device device content offset\n"
22103 "\n"
22104 msgstr ""
22105
22106 # type: textblock
22107 #: ../fish/guestfish-actions.pod:3243
22108 msgid "See also L</pwrite>."
22109 msgstr ""
22110
22111 # type: =head2
22112 #: ../fish/guestfish-actions.pod:3248
22113 msgid "read-file"
22114 msgstr ""
22115
22116 # type: verbatim
22117 #: ../fish/guestfish-actions.pod:3250
22118 #, no-wrap
22119 msgid ""
22120 " read-file path\n"
22121 "\n"
22122 msgstr ""
22123
22124 # type: textblock
22125 #: ../fish/guestfish-actions.pod:3255
22126 msgid ""
22127 "Unlike L</cat>, this function can correctly handle files that contain "
22128 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22129 "is limited in the total size of file that can be handled."
22130 msgstr ""
22131
22132 # type: =head2
22133 #: ../fish/guestfish-actions.pod:3263
22134 msgid "read-lines"
22135 msgstr ""
22136
22137 # type: verbatim
22138 #: ../fish/guestfish-actions.pod:3265
22139 #, no-wrap
22140 msgid ""
22141 " read-lines path\n"
22142 "\n"
22143 msgstr ""
22144
22145 # type: textblock
22146 #: ../fish/guestfish-actions.pod:3272
22147 msgid ""
22148 "Note that this function cannot correctly handle binary files (specifically, "
22149 "files containing C<\\0> character which is treated as end of line).  For "
22150 "those you need to use the L</read-file> function which has a more complex "
22151 "interface."
22152 msgstr ""
22153
22154 # type: =head2
22155 #: ../fish/guestfish-actions.pod:3277
22156 msgid "readdir"
22157 msgstr ""
22158
22159 # type: verbatim
22160 #: ../fish/guestfish-actions.pod:3279
22161 #, no-wrap
22162 msgid ""
22163 " readdir dir\n"
22164 "\n"
22165 msgstr ""
22166
22167 # type: textblock
22168 #: ../fish/guestfish-actions.pod:3331
22169 msgid ""
22170 "This function is primarily intended for use by programs.  To get a simple "
22171 "list of names, use L</ls>.  To get a printable directory for human "
22172 "consumption, use L</ll>."
22173 msgstr ""
22174
22175 # type: =head2
22176 #: ../fish/guestfish-actions.pod:3335
22177 msgid "readlink"
22178 msgstr ""
22179
22180 # type: verbatim
22181 #: ../fish/guestfish-actions.pod:3337
22182 #, no-wrap
22183 msgid ""
22184 " readlink path\n"
22185 "\n"
22186 msgstr ""
22187
22188 # type: =head2
22189 #: ../fish/guestfish-actions.pod:3341
22190 msgid "readlinklist"
22191 msgstr ""
22192
22193 # type: verbatim
22194 #: ../fish/guestfish-actions.pod:3343
22195 #, no-wrap
22196 msgid ""
22197 " readlinklist path 'names ...'\n"
22198 "\n"
22199 msgstr ""
22200
22201 # type: =head2
22202 #: ../fish/guestfish-actions.pod:3367
22203 msgid "realpath"
22204 msgstr ""
22205
22206 # type: verbatim
22207 #: ../fish/guestfish-actions.pod:3369
22208 #, no-wrap
22209 msgid ""
22210 " realpath path\n"
22211 "\n"
22212 msgstr ""
22213
22214 # type: =head2
22215 #: ../fish/guestfish-actions.pod:3374
22216 msgid "removexattr"
22217 msgstr ""
22218
22219 # type: verbatim
22220 #: ../fish/guestfish-actions.pod:3376
22221 #, no-wrap
22222 msgid ""
22223 " removexattr xattr path\n"
22224 "\n"
22225 msgstr ""
22226
22227 # type: textblock
22228 #: ../fish/guestfish-actions.pod:3381
22229 msgid "See also: L</lremovexattr>, L<attr(5)>."
22230 msgstr ""
22231
22232 # type: =head2
22233 #: ../fish/guestfish-actions.pod:3383
22234 msgid "resize2fs"
22235 msgstr ""
22236
22237 # type: verbatim
22238 #: ../fish/guestfish-actions.pod:3385
22239 #, no-wrap
22240 msgid ""
22241 " resize2fs device\n"
22242 "\n"
22243 msgstr ""
22244
22245 # type: textblock
22246 #: ../fish/guestfish-actions.pod:3390
22247 msgid ""
22248 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22249 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22250 "gives an error about this and sometimes not.  In any case, it is always safe "
22251 "to call L</e2fsck-f> before calling this function."
22252 msgstr ""
22253
22254 # type: =head2
22255 #: ../fish/guestfish-actions.pod:3396
22256 msgid "resize2fs-size"
22257 msgstr ""
22258
22259 # type: verbatim
22260 #: ../fish/guestfish-actions.pod:3398
22261 #, no-wrap
22262 msgid ""
22263 " resize2fs-size device size\n"
22264 "\n"
22265 msgstr ""
22266
22267 # type: textblock
22268 #: ../fish/guestfish-actions.pod:3400
22269 msgid ""
22270 "This command is the same as L</resize2fs> except that it allows you to "
22271 "specify the new size (in bytes) explicitly."
22272 msgstr ""
22273
22274 # type: =head2
22275 #: ../fish/guestfish-actions.pod:3403
22276 msgid "rm"
22277 msgstr ""
22278
22279 # type: verbatim
22280 #: ../fish/guestfish-actions.pod:3405
22281 #, no-wrap
22282 msgid ""
22283 " rm path\n"
22284 "\n"
22285 msgstr ""
22286
22287 # type: =head2
22288 #: ../fish/guestfish-actions.pod:3409
22289 msgid "rm-rf"
22290 msgstr ""
22291
22292 # type: verbatim
22293 #: ../fish/guestfish-actions.pod:3411
22294 #, no-wrap
22295 msgid ""
22296 " rm-rf path\n"
22297 "\n"
22298 msgstr ""
22299
22300 # type: =head2
22301 #: ../fish/guestfish-actions.pod:3417
22302 msgid "rmdir"
22303 msgstr ""
22304
22305 # type: verbatim
22306 #: ../fish/guestfish-actions.pod:3419
22307 #, no-wrap
22308 msgid ""
22309 " rmdir path\n"
22310 "\n"
22311 msgstr ""
22312
22313 # type: =head2
22314 #: ../fish/guestfish-actions.pod:3423
22315 msgid "rmmountpoint"
22316 msgstr ""
22317
22318 # type: verbatim
22319 #: ../fish/guestfish-actions.pod:3425
22320 #, no-wrap
22321 msgid ""
22322 " rmmountpoint exemptpath\n"
22323 "\n"
22324 msgstr ""
22325
22326 # type: textblock
22327 #: ../fish/guestfish-actions.pod:3427
22328 msgid ""
22329 "This calls removes a mountpoint that was previously created with "
22330 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
22331 msgstr ""
22332
22333 # type: =head2
22334 #: ../fish/guestfish-actions.pod:3431
22335 msgid "scrub-device"
22336 msgstr ""
22337
22338 # type: verbatim
22339 #: ../fish/guestfish-actions.pod:3433
22340 #, no-wrap
22341 msgid ""
22342 " scrub-device device\n"
22343 "\n"
22344 msgstr ""
22345
22346 # type: =head2
22347 #: ../fish/guestfish-actions.pod:3444
22348 msgid "scrub-file"
22349 msgstr ""
22350
22351 # type: verbatim
22352 #: ../fish/guestfish-actions.pod:3446
22353 #, no-wrap
22354 msgid ""
22355 " scrub-file file\n"
22356 "\n"
22357 msgstr ""
22358
22359 # type: =head2
22360 #: ../fish/guestfish-actions.pod:3456
22361 msgid "scrub-freespace"
22362 msgstr ""
22363
22364 # type: verbatim
22365 #: ../fish/guestfish-actions.pod:3458
22366 #, no-wrap
22367 msgid ""
22368 " scrub-freespace dir\n"
22369 "\n"
22370 msgstr ""
22371
22372 # type: textblock
22373 #: ../fish/guestfish-actions.pod:3460
22374 msgid ""
22375 "This command creates the directory C<dir> and then fills it with files until "
22376 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22377 "deletes them.  The intention is to scrub any free space on the partition "
22378 "containing C<dir>."
22379 msgstr ""
22380
22381 # type: =head2
22382 #: ../fish/guestfish-actions.pod:3469
22383 msgid "set-append"
22384 msgstr ""
22385
22386 # type: =head2
22387 #: ../fish/guestfish-actions.pod:3471
22388 msgid "append"
22389 msgstr ""
22390
22391 # type: verbatim
22392 #: ../fish/guestfish-actions.pod:3473
22393 #, no-wrap
22394 msgid ""
22395 " set-append append\n"
22396 "\n"
22397 msgstr ""
22398
22399 # type: =head2
22400 #: ../fish/guestfish-actions.pod:3484
22401 msgid "set-autosync"
22402 msgstr ""
22403
22404 # type: =head2
22405 #: ../fish/guestfish-actions.pod:3486
22406 msgid "autosync"
22407 msgstr ""
22408
22409 # type: verbatim
22410 #: ../fish/guestfish-actions.pod:3488
22411 #, no-wrap
22412 msgid ""
22413 " set-autosync true|false\n"
22414 "\n"
22415 msgstr ""
22416
22417 # type: textblock
22418 #: ../fish/guestfish-actions.pod:3490
22419 msgid ""
22420 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
22421 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
22422 "closed (also if the program exits without closing handles)."
22423 msgstr ""
22424
22425 # type: =head2
22426 #: ../fish/guestfish-actions.pod:3498
22427 msgid "set-direct"
22428 msgstr ""
22429
22430 # type: =head2
22431 #: ../fish/guestfish-actions.pod:3500
22432 msgid "direct"
22433 msgstr ""
22434
22435 # type: verbatim
22436 #: ../fish/guestfish-actions.pod:3502
22437 #, no-wrap
22438 msgid ""
22439 " set-direct true|false\n"
22440 "\n"
22441 msgstr ""
22442
22443 # type: textblock
22444 #: ../fish/guestfish-actions.pod:3508
22445 msgid ""
22446 "One consequence of this is that log messages aren't caught by the library "
22447 "and handled by L</set-log-message-callback>, but go straight to stdout."
22448 msgstr ""
22449
22450 # type: =head2
22451 #: ../fish/guestfish-actions.pod:3517
22452 msgid "set-e2label"
22453 msgstr ""
22454
22455 # type: verbatim
22456 #: ../fish/guestfish-actions.pod:3519
22457 #, no-wrap
22458 msgid ""
22459 " set-e2label device label\n"
22460 "\n"
22461 msgstr ""
22462
22463 # type: textblock
22464 #: ../fish/guestfish-actions.pod:3525
22465 msgid ""
22466 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
22467 "label on a filesystem."
22468 msgstr ""
22469
22470 # type: =head2
22471 #: ../fish/guestfish-actions.pod:3528
22472 msgid "set-e2uuid"
22473 msgstr ""
22474
22475 # type: verbatim
22476 #: ../fish/guestfish-actions.pod:3530
22477 #, no-wrap
22478 msgid ""
22479 " set-e2uuid device uuid\n"
22480 "\n"
22481 msgstr ""
22482
22483 # type: textblock
22484 #: ../fish/guestfish-actions.pod:3537
22485 msgid ""
22486 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
22487 "UUID of a filesystem."
22488 msgstr ""
22489
22490 # type: =head2
22491 #: ../fish/guestfish-actions.pod:3540
22492 msgid "set-memsize"
22493 msgstr ""
22494
22495 # type: =head2
22496 #: ../fish/guestfish-actions.pod:3542
22497 msgid "memsize"
22498 msgstr ""
22499
22500 # type: verbatim
22501 #: ../fish/guestfish-actions.pod:3544
22502 #, no-wrap
22503 msgid ""
22504 " set-memsize memsize\n"
22505 "\n"
22506 msgstr ""
22507
22508 # type: textblock
22509 #: ../fish/guestfish-actions.pod:3546
22510 msgid ""
22511 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
22512 "This only has any effect if called before L</launch>."
22513 msgstr ""
22514
22515 # type: =head2
22516 #: ../fish/guestfish-actions.pod:3557
22517 msgid "set-network"
22518 msgstr ""
22519
22520 # type: =head2
22521 #: ../fish/guestfish-actions.pod:3559
22522 msgid "network"
22523 msgstr ""
22524
22525 # type: verbatim
22526 #: ../fish/guestfish-actions.pod:3561
22527 #, no-wrap
22528 msgid ""
22529 " set-network true|false\n"
22530 "\n"
22531 msgstr ""
22532
22533 # type: textblock
22534 #: ../fish/guestfish-actions.pod:3569
22535 msgid "You must call this before calling L</launch>, otherwise it has no effect."
22536 msgstr ""
22537
22538 # type: =head2
22539 #: ../fish/guestfish-actions.pod:3572
22540 msgid "set-path"
22541 msgstr ""
22542
22543 # type: =head2
22544 #: ../fish/guestfish-actions.pod:3574
22545 msgid "path"
22546 msgstr ""
22547
22548 # type: verbatim
22549 #: ../fish/guestfish-actions.pod:3576
22550 #, no-wrap
22551 msgid ""
22552 " set-path searchpath\n"
22553 "\n"
22554 msgstr ""
22555
22556 # type: =head2
22557 #: ../fish/guestfish-actions.pod:3585
22558 msgid "set-qemu"
22559 msgstr ""
22560
22561 # type: =head2
22562 #: ../fish/guestfish-actions.pod:3587
22563 msgid "qemu"
22564 msgstr ""
22565
22566 # type: verbatim
22567 #: ../fish/guestfish-actions.pod:3589
22568 #, no-wrap
22569 msgid ""
22570 " set-qemu qemu\n"
22571 "\n"
22572 msgstr ""
22573
22574 # type: =head2
22575 #: ../fish/guestfish-actions.pod:3609
22576 msgid "set-recovery-proc"
22577 msgstr ""
22578
22579 # type: =head2
22580 #: ../fish/guestfish-actions.pod:3611
22581 msgid "recovery-proc"
22582 msgstr ""
22583
22584 # type: verbatim
22585 #: ../fish/guestfish-actions.pod:3613
22586 #, no-wrap
22587 msgid ""
22588 " set-recovery-proc true|false\n"
22589 "\n"
22590 msgstr ""
22591
22592 # type: textblock
22593 #: ../fish/guestfish-actions.pod:3615
22594 msgid ""
22595 "If this is called with the parameter C<false> then L</launch> does not "
22596 "create a recovery process.  The purpose of the recovery process is to stop "
22597 "runaway qemu processes in the case where the main program aborts abruptly."
22598 msgstr ""
22599
22600 # type: textblock
22601 #: ../fish/guestfish-actions.pod:3620
22602 msgid ""
22603 "This only has any effect if called before L</launch>, and the default is "
22604 "true."
22605 msgstr ""
22606
22607 # type: =head2
22608 #: ../fish/guestfish-actions.pod:3629
22609 msgid "set-selinux"
22610 msgstr ""
22611
22612 # type: =head2
22613 #: ../fish/guestfish-actions.pod:3631
22614 msgid "selinux"
22615 msgstr ""
22616
22617 # type: verbatim
22618 #: ../fish/guestfish-actions.pod:3633
22619 #, no-wrap
22620 msgid ""
22621 " set-selinux true|false\n"
22622 "\n"
22623 msgstr ""
22624
22625 # type: =head2
22626 #: ../fish/guestfish-actions.pod:3644
22627 msgid "set-trace"
22628 msgstr ""
22629
22630 # type: =head2
22631 #: ../fish/guestfish-actions.pod:3646
22632 msgid "trace"
22633 msgstr ""
22634
22635 # type: verbatim
22636 #: ../fish/guestfish-actions.pod:3648
22637 #, no-wrap
22638 msgid ""
22639 " set-trace true|false\n"
22640 "\n"
22641 msgstr ""
22642
22643 # type: =head2
22644 #: ../fish/guestfish-actions.pod:3664
22645 msgid "set-verbose"
22646 msgstr ""
22647
22648 # type: =head2
22649 #: ../fish/guestfish-actions.pod:3666
22650 msgid "verbose"
22651 msgstr ""
22652
22653 # type: verbatim
22654 #: ../fish/guestfish-actions.pod:3668
22655 #, no-wrap
22656 msgid ""
22657 " set-verbose true|false\n"
22658 "\n"
22659 msgstr ""
22660
22661 # type: =head2
22662 #: ../fish/guestfish-actions.pod:3675
22663 msgid "setcon"
22664 msgstr ""
22665
22666 # type: verbatim
22667 #: ../fish/guestfish-actions.pod:3677
22668 #, no-wrap
22669 msgid ""
22670 " setcon context\n"
22671 "\n"
22672 msgstr ""
22673
22674 # type: =head2
22675 #: ../fish/guestfish-actions.pod:3684
22676 msgid "setxattr"
22677 msgstr ""
22678
22679 # type: verbatim
22680 #: ../fish/guestfish-actions.pod:3686
22681 #, no-wrap
22682 msgid ""
22683 " setxattr xattr val vallen path\n"
22684 "\n"
22685 msgstr ""
22686
22687 # type: textblock
22688 #: ../fish/guestfish-actions.pod:3692
22689 msgid "See also: L</lsetxattr>, L<attr(5)>."
22690 msgstr ""
22691
22692 # type: =head2
22693 #: ../fish/guestfish-actions.pod:3694
22694 msgid "sfdisk"
22695 msgstr ""
22696
22697 # type: verbatim
22698 #: ../fish/guestfish-actions.pod:3696
22699 #, no-wrap
22700 msgid ""
22701 " sfdisk device cyls heads sectors 'lines ...'\n"
22702 "\n"
22703 msgstr ""
22704
22705 # type: textblock
22706 #: ../fish/guestfish-actions.pod:3718
22707 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
22708 msgstr ""
22709
22710 # type: =head2
22711 #: ../fish/guestfish-actions.pod:3724
22712 msgid "sfdiskM"
22713 msgstr ""
22714
22715 # type: verbatim
22716 #: ../fish/guestfish-actions.pod:3726
22717 #, no-wrap
22718 msgid ""
22719 " sfdiskM device 'lines ...'\n"
22720 "\n"
22721 msgstr ""
22722
22723 # type: textblock
22724 #: ../fish/guestfish-actions.pod:3728
22725 msgid ""
22726 "This is a simplified interface to the L</sfdisk> command, where partition "
22727 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
22728 "you don't need to specify the cyls, heads and sectors parameters which were "
22729 "rarely if ever used anyway."
22730 msgstr ""
22731
22732 # type: textblock
22733 #: ../fish/guestfish-actions.pod:3734
22734 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
22735 msgstr ""
22736
22737 # type: =head2
22738 #: ../fish/guestfish-actions.pod:3740
22739 msgid "sfdisk-N"
22740 msgstr ""
22741
22742 # type: verbatim
22743 #: ../fish/guestfish-actions.pod:3742
22744 #, no-wrap
22745 msgid ""
22746 " sfdisk-N device partnum cyls heads sectors line\n"
22747 "\n"
22748 msgstr ""
22749
22750 # type: textblock
22751 #: ../fish/guestfish-actions.pod:3747
22752 msgid ""
22753 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
22754 "cyls/heads/sectors parameters."
22755 msgstr ""
22756
22757 # type: textblock
22758 #: ../fish/guestfish-actions.pod:3750
22759 msgid "See also: L</part-add>"
22760 msgstr ""
22761
22762 # type: =head2
22763 #: ../fish/guestfish-actions.pod:3755
22764 msgid "sfdisk-disk-geometry"
22765 msgstr ""
22766
22767 # type: verbatim
22768 #: ../fish/guestfish-actions.pod:3757
22769 #, no-wrap
22770 msgid ""
22771 " sfdisk-disk-geometry device\n"
22772 "\n"
22773 msgstr ""
22774
22775 # type: textblock
22776 #: ../fish/guestfish-actions.pod:3759
22777 msgid ""
22778 "This displays the disk geometry of C<device> read from the partition table.  "
22779 "Especially in the case where the underlying block device has been resized, "
22780 "this can be different from the kernel's idea of the geometry (see "
22781 "L</sfdisk-kernel-geometry>)."
22782 msgstr ""
22783
22784 # type: =head2
22785 #: ../fish/guestfish-actions.pod:3767
22786 msgid "sfdisk-kernel-geometry"
22787 msgstr ""
22788
22789 # type: verbatim
22790 #: ../fish/guestfish-actions.pod:3769
22791 #, no-wrap
22792 msgid ""
22793 " sfdisk-kernel-geometry device\n"
22794 "\n"
22795 msgstr ""
22796
22797 # type: =head2
22798 #: ../fish/guestfish-actions.pod:3776
22799 msgid "sfdisk-l"
22800 msgstr ""
22801
22802 # type: verbatim
22803 #: ../fish/guestfish-actions.pod:3778
22804 #, no-wrap
22805 msgid ""
22806 " sfdisk-l device\n"
22807 "\n"
22808 msgstr ""
22809
22810 # type: textblock
22811 #: ../fish/guestfish-actions.pod:3784
22812 msgid "See also: L</part-list>"
22813 msgstr ""
22814
22815 # type: =head2
22816 #: ../fish/guestfish-actions.pod:3786
22817 msgid "sh"
22818 msgstr ""
22819
22820 # type: verbatim
22821 #: ../fish/guestfish-actions.pod:3788
22822 #, no-wrap
22823 msgid ""
22824 " sh command\n"
22825 "\n"
22826 msgstr ""
22827
22828 # type: textblock
22829 #: ../fish/guestfish-actions.pod:3793
22830 msgid "This is like L</command>, but passes the command to:"
22831 msgstr ""
22832
22833 # type: textblock
22834 #: ../fish/guestfish-actions.pod:3801
22835 msgid "All the provisos about L</command> apply to this call."
22836 msgstr ""
22837
22838 # type: =head2
22839 #: ../fish/guestfish-actions.pod:3803
22840 msgid "sh-lines"
22841 msgstr ""
22842
22843 # type: verbatim
22844 #: ../fish/guestfish-actions.pod:3805
22845 #, no-wrap
22846 msgid ""
22847 " sh-lines command\n"
22848 "\n"
22849 msgstr ""
22850
22851 # type: textblock
22852 #: ../fish/guestfish-actions.pod:3807
22853 msgid "This is the same as L</sh>, but splits the result into a list of lines."
22854 msgstr ""
22855
22856 # type: textblock
22857 #: ../fish/guestfish-actions.pod:3810
22858 msgid "See also: L</command-lines>"
22859 msgstr ""
22860
22861 # type: =head2
22862 #: ../fish/guestfish-actions.pod:3812
22863 msgid "sleep"
22864 msgstr ""
22865
22866 # type: verbatim
22867 #: ../fish/guestfish-actions.pod:3814
22868 #, no-wrap
22869 msgid ""
22870 " sleep secs\n"
22871 "\n"
22872 msgstr ""
22873
22874 # type: =head2
22875 #: ../fish/guestfish-actions.pod:3818
22876 msgid "stat"
22877 msgstr ""
22878
22879 # type: verbatim
22880 #: ../fish/guestfish-actions.pod:3820
22881 #, no-wrap
22882 msgid ""
22883 " stat path\n"
22884 "\n"
22885 msgstr ""
22886
22887 # type: =head2
22888 #: ../fish/guestfish-actions.pod:3826
22889 msgid "statvfs"
22890 msgstr ""
22891
22892 # type: verbatim
22893 #: ../fish/guestfish-actions.pod:3828
22894 #, no-wrap
22895 msgid ""
22896 " statvfs path\n"
22897 "\n"
22898 msgstr ""
22899
22900 # type: =head2
22901 #: ../fish/guestfish-actions.pod:3836
22902 msgid "strings"
22903 msgstr ""
22904
22905 # type: verbatim
22906 #: ../fish/guestfish-actions.pod:3838
22907 #, no-wrap
22908 msgid ""
22909 " strings path\n"
22910 "\n"
22911 msgstr ""
22912
22913 # type: =head2
22914 #: ../fish/guestfish-actions.pod:3846
22915 msgid "strings-e"
22916 msgstr ""
22917
22918 # type: verbatim
22919 #: ../fish/guestfish-actions.pod:3848
22920 #, no-wrap
22921 msgid ""
22922 " strings-e encoding path\n"
22923 "\n"
22924 msgstr ""
22925
22926 # type: textblock
22927 #: ../fish/guestfish-actions.pod:3850
22928 msgid ""
22929 "This is like the L</strings> command, but allows you to specify the encoding "
22930 "of strings that are looked for in the source file C<path>."
22931 msgstr ""
22932
22933 # type: textblock
22934 #: ../fish/guestfish-actions.pod:3860
22935 msgid ""
22936 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
22937 "ISO-8859-X (this is what L</strings> uses)."
22938 msgstr ""
22939
22940 # type: =head2
22941 #: ../fish/guestfish-actions.pod:3892
22942 msgid "swapoff-device"
22943 msgstr ""
22944
22945 # type: verbatim
22946 #: ../fish/guestfish-actions.pod:3894
22947 #, no-wrap
22948 msgid ""
22949 " swapoff-device device\n"
22950 "\n"
22951 msgstr ""
22952
22953 # type: textblock
22954 #: ../fish/guestfish-actions.pod:3896
22955 msgid ""
22956 "This command disables the libguestfs appliance swap device or partition "
22957 "named C<device>.  See L</swapon-device>."
22958 msgstr ""
22959
22960 # type: =head2
22961 #: ../fish/guestfish-actions.pod:3900
22962 msgid "swapoff-file"
22963 msgstr ""
22964
22965 # type: verbatim
22966 #: ../fish/guestfish-actions.pod:3902
22967 #, no-wrap
22968 msgid ""
22969 " swapoff-file file\n"
22970 "\n"
22971 msgstr ""
22972
22973 # type: =head2
22974 #: ../fish/guestfish-actions.pod:3906
22975 msgid "swapoff-label"
22976 msgstr ""
22977
22978 # type: verbatim
22979 #: ../fish/guestfish-actions.pod:3908
22980 #, no-wrap
22981 msgid ""
22982 " swapoff-label label\n"
22983 "\n"
22984 msgstr ""
22985
22986 # type: =head2
22987 #: ../fish/guestfish-actions.pod:3913
22988 msgid "swapoff-uuid"
22989 msgstr ""
22990
22991 # type: verbatim
22992 #: ../fish/guestfish-actions.pod:3915
22993 #, no-wrap
22994 msgid ""
22995 " swapoff-uuid uuid\n"
22996 "\n"
22997 msgstr ""
22998
22999 # type: =head2
23000 #: ../fish/guestfish-actions.pod:3920
23001 msgid "swapon-device"
23002 msgstr ""
23003
23004 # type: verbatim
23005 #: ../fish/guestfish-actions.pod:3922
23006 #, no-wrap
23007 msgid ""
23008 " swapon-device device\n"
23009 "\n"
23010 msgstr ""
23011
23012 # type: textblock
23013 #: ../fish/guestfish-actions.pod:3924
23014 msgid ""
23015 "This command enables the libguestfs appliance to use the swap device or "
23016 "partition named C<device>.  The increased memory is made available for all "
23017 "commands, for example those run using L</command> or L</sh>."
23018 msgstr ""
23019
23020 # type: =head2
23021 #: ../fish/guestfish-actions.pod:3936
23022 msgid "swapon-file"
23023 msgstr ""
23024
23025 # type: verbatim
23026 #: ../fish/guestfish-actions.pod:3938
23027 #, no-wrap
23028 msgid ""
23029 " swapon-file file\n"
23030 "\n"
23031 msgstr ""
23032
23033 # type: textblock
23034 #: ../fish/guestfish-actions.pod:3940
23035 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
23036 msgstr ""
23037
23038 # type: =head2
23039 #: ../fish/guestfish-actions.pod:3943
23040 msgid "swapon-label"
23041 msgstr ""
23042
23043 # type: verbatim
23044 #: ../fish/guestfish-actions.pod:3945
23045 #, no-wrap
23046 msgid ""
23047 " swapon-label label\n"
23048 "\n"
23049 msgstr ""
23050
23051 # type: textblock
23052 #: ../fish/guestfish-actions.pod:3947
23053 msgid ""
23054 "This command enables swap to a labeled swap partition.  See "
23055 "L</swapon-device> for other notes."
23056 msgstr ""
23057
23058 # type: =head2
23059 #: ../fish/guestfish-actions.pod:3950
23060 msgid "swapon-uuid"
23061 msgstr ""
23062
23063 # type: verbatim
23064 #: ../fish/guestfish-actions.pod:3952
23065 #, no-wrap
23066 msgid ""
23067 " swapon-uuid uuid\n"
23068 "\n"
23069 msgstr ""
23070
23071 # type: textblock
23072 #: ../fish/guestfish-actions.pod:3954
23073 msgid ""
23074 "This command enables swap to a swap partition with the given UUID.  See "
23075 "L</swapon-device> for other notes."
23076 msgstr ""
23077
23078 # type: =head2
23079 #: ../fish/guestfish-actions.pod:3957
23080 msgid "sync"
23081 msgstr ""
23082
23083 # type: verbatim
23084 #: ../fish/guestfish-actions.pod:3959
23085 #, no-wrap
23086 msgid ""
23087 " sync\n"
23088 "\n"
23089 msgstr ""
23090
23091 # type: =head2
23092 #: ../fish/guestfish-actions.pod:3967
23093 msgid "tail"
23094 msgstr ""
23095
23096 # type: verbatim
23097 #: ../fish/guestfish-actions.pod:3969
23098 #, no-wrap
23099 msgid ""
23100 " tail path\n"
23101 "\n"
23102 msgstr ""
23103
23104 # type: =head2
23105 #: ../fish/guestfish-actions.pod:3977
23106 msgid "tail-n"
23107 msgstr ""
23108
23109 # type: verbatim
23110 #: ../fish/guestfish-actions.pod:3979
23111 #, no-wrap
23112 msgid ""
23113 " tail-n nrlines path\n"
23114 "\n"
23115 msgstr ""
23116
23117 # type: =head2
23118 #: ../fish/guestfish-actions.pod:3992
23119 msgid "tar-in"
23120 msgstr ""
23121
23122 # type: verbatim
23123 #: ../fish/guestfish-actions.pod:3994
23124 #, no-wrap
23125 msgid ""
23126 " tar-in (tarfile|-) directory\n"
23127 "\n"
23128 msgstr ""
23129
23130 # type: textblock
23131 #: ../fish/guestfish-actions.pod:3999
23132 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23133 msgstr ""
23134
23135 # type: =head2
23136 #: ../fish/guestfish-actions.pod:4004
23137 msgid "tar-out"
23138 msgstr ""
23139
23140 # type: verbatim
23141 #: ../fish/guestfish-actions.pod:4006
23142 #, no-wrap
23143 msgid ""
23144 " tar-out directory (tarfile|-)\n"
23145 "\n"
23146 msgstr ""
23147
23148 # type: textblock
23149 #: ../fish/guestfish-actions.pod:4011
23150 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23151 msgstr ""
23152
23153 # type: =head2
23154 #: ../fish/guestfish-actions.pod:4016
23155 msgid "tgz-in"
23156 msgstr ""
23157
23158 # type: verbatim
23159 #: ../fish/guestfish-actions.pod:4018
23160 #, no-wrap
23161 msgid ""
23162 " tgz-in (tarball|-) directory\n"
23163 "\n"
23164 msgstr ""
23165
23166 # type: textblock
23167 #: ../fish/guestfish-actions.pod:4023
23168 msgid "To upload an uncompressed tarball, use L</tar-in>."
23169 msgstr ""
23170
23171 # type: =head2
23172 #: ../fish/guestfish-actions.pod:4027
23173 msgid "tgz-out"
23174 msgstr ""
23175
23176 # type: verbatim
23177 #: ../fish/guestfish-actions.pod:4029
23178 #, no-wrap
23179 msgid ""
23180 " tgz-out directory (tarball|-)\n"
23181 "\n"
23182 msgstr ""
23183
23184 # type: textblock
23185 #: ../fish/guestfish-actions.pod:4034
23186 msgid "To download an uncompressed tarball, use L</tar-out>."
23187 msgstr ""
23188
23189 # type: =head2
23190 #: ../fish/guestfish-actions.pod:4038
23191 msgid "touch"
23192 msgstr ""
23193
23194 # type: verbatim
23195 #: ../fish/guestfish-actions.pod:4040
23196 #, no-wrap
23197 msgid ""
23198 " touch path\n"
23199 "\n"
23200 msgstr ""
23201
23202 # type: =head2
23203 #: ../fish/guestfish-actions.pod:4049
23204 msgid "truncate"
23205 msgstr ""
23206
23207 # type: verbatim
23208 #: ../fish/guestfish-actions.pod:4051
23209 #, no-wrap
23210 msgid ""
23211 " truncate path\n"
23212 "\n"
23213 msgstr ""
23214
23215 # type: =head2
23216 #: ../fish/guestfish-actions.pod:4056
23217 msgid "truncate-size"
23218 msgstr ""
23219
23220 # type: verbatim
23221 #: ../fish/guestfish-actions.pod:4058
23222 #, no-wrap
23223 msgid ""
23224 " truncate-size path size\n"
23225 "\n"
23226 msgstr ""
23227
23228 # type: textblock
23229 #: ../fish/guestfish-actions.pod:4063
23230 msgid ""
23231 "If the current file size is less than C<size> then the file is extended to "
23232 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23233 "blocks are not allocated for the file until you write to it).  To create a "
23234 "non-sparse file of zeroes, use L</fallocate64> instead."
23235 msgstr ""
23236
23237 # type: =head2
23238 #: ../fish/guestfish-actions.pod:4069
23239 msgid "tune2fs-l"
23240 msgstr ""
23241
23242 # type: verbatim
23243 #: ../fish/guestfish-actions.pod:4071
23244 #, no-wrap
23245 msgid ""
23246 " tune2fs-l device\n"
23247 "\n"
23248 msgstr ""
23249
23250 # type: =head2
23251 #: ../fish/guestfish-actions.pod:4081
23252 msgid "txz-in"
23253 msgstr ""
23254
23255 # type: verbatim
23256 #: ../fish/guestfish-actions.pod:4083
23257 #, no-wrap
23258 msgid ""
23259 " txz-in (tarball|-) directory\n"
23260 "\n"
23261 msgstr ""
23262
23263 # type: =head2
23264 #: ../fish/guestfish-actions.pod:4090
23265 msgid "txz-out"
23266 msgstr ""
23267
23268 # type: verbatim
23269 #: ../fish/guestfish-actions.pod:4092
23270 #, no-wrap
23271 msgid ""
23272 " txz-out directory (tarball|-)\n"
23273 "\n"
23274 msgstr ""
23275
23276 # type: =head2
23277 #: ../fish/guestfish-actions.pod:4099
23278 msgid "umask"
23279 msgstr ""
23280
23281 # type: verbatim
23282 #: ../fish/guestfish-actions.pod:4101
23283 #, no-wrap
23284 msgid ""
23285 " umask mask\n"
23286 "\n"
23287 msgstr ""
23288
23289 # type: textblock
23290 #: ../fish/guestfish-actions.pod:4115
23291 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23292 msgstr ""
23293
23294 # type: =head2
23295 #: ../fish/guestfish-actions.pod:4120
23296 msgid "umount"
23297 msgstr ""
23298
23299 # type: =head2
23300 #: ../fish/guestfish-actions.pod:4122
23301 msgid "unmount"
23302 msgstr ""
23303
23304 # type: verbatim
23305 #: ../fish/guestfish-actions.pod:4124
23306 #, no-wrap
23307 msgid ""
23308 " umount pathordevice\n"
23309 "\n"
23310 msgstr ""
23311
23312 # type: =head2
23313 #: ../fish/guestfish-actions.pod:4130
23314 msgid "umount-all"
23315 msgstr ""
23316
23317 # type: =head2
23318 #: ../fish/guestfish-actions.pod:4132
23319 msgid "unmount-all"
23320 msgstr ""
23321
23322 # type: verbatim
23323 #: ../fish/guestfish-actions.pod:4134
23324 #, no-wrap
23325 msgid ""
23326 " umount-all\n"
23327 "\n"
23328 msgstr ""
23329
23330 # type: =head2
23331 #: ../fish/guestfish-actions.pod:4140
23332 msgid "upload"
23333 msgstr ""
23334
23335 # type: verbatim
23336 #: ../fish/guestfish-actions.pod:4142
23337 #, no-wrap
23338 msgid ""
23339 " upload (filename|-) remotefilename\n"
23340 "\n"
23341 msgstr ""
23342
23343 # type: textblock
23344 #: ../fish/guestfish-actions.pod:4149
23345 msgid "See also L</download>."
23346 msgstr ""
23347
23348 # type: =head2
23349 #: ../fish/guestfish-actions.pod:4153
23350 msgid "upload-offset"
23351 msgstr ""
23352
23353 # type: verbatim
23354 #: ../fish/guestfish-actions.pod:4155
23355 #, no-wrap
23356 msgid ""
23357 " upload-offset (filename|-) remotefilename offset\n"
23358 "\n"
23359 msgstr ""
23360
23361 # type: textblock
23362 #: ../fish/guestfish-actions.pod:4167
23363 msgid ""
23364 "Note that there is no limit on the amount of data that can be uploaded with "
23365 "this call, unlike with L</pwrite>, and this call always writes the full "
23366 "amount unless an error occurs."
23367 msgstr ""
23368
23369 # type: textblock
23370 #: ../fish/guestfish-actions.pod:4172
23371 msgid "See also L</upload>, L</pwrite>."
23372 msgstr ""
23373
23374 # type: =head2
23375 #: ../fish/guestfish-actions.pod:4176
23376 msgid "utimens"
23377 msgstr ""
23378
23379 # type: verbatim
23380 #: ../fish/guestfish-actions.pod:4178
23381 #, no-wrap
23382 msgid ""
23383 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23384 "\n"
23385 msgstr ""
23386
23387 # type: =head2
23388 #: ../fish/guestfish-actions.pod:4197
23389 msgid "version"
23390 msgstr ""
23391
23392 # type: verbatim
23393 #: ../fish/guestfish-actions.pod:4199
23394 #, no-wrap
23395 msgid ""
23396 " version\n"
23397 "\n"
23398 msgstr ""
23399
23400 # type: textblock
23401 #: ../fish/guestfish-actions.pod:4226
23402 msgid ""
23403 "I<Note:> Don't use this call to test for availability of features.  In "
23404 "enterprise distributions we backport features from later versions into "
23405 "earlier versions, making this an unreliable way to test for features.  Use "
23406 "L</available> instead."
23407 msgstr ""
23408
23409 # type: =head2
23410 #: ../fish/guestfish-actions.pod:4232
23411 msgid "vfs-label"
23412 msgstr ""
23413
23414 # type: verbatim
23415 #: ../fish/guestfish-actions.pod:4234
23416 #, no-wrap
23417 msgid ""
23418 " vfs-label device\n"
23419 "\n"
23420 msgstr ""
23421
23422 # type: textblock
23423 #: ../fish/guestfish-actions.pod:4241
23424 msgid "To find a filesystem from the label, use L</findfs-label>."
23425 msgstr ""
23426
23427 # type: =head2
23428 #: ../fish/guestfish-actions.pod:4243
23429 msgid "vfs-type"
23430 msgstr ""
23431
23432 # type: verbatim
23433 #: ../fish/guestfish-actions.pod:4245
23434 #, no-wrap
23435 msgid ""
23436 " vfs-type device\n"
23437 "\n"
23438 msgstr ""
23439
23440 # type: =head2
23441 #: ../fish/guestfish-actions.pod:4255
23442 msgid "vfs-uuid"
23443 msgstr ""
23444
23445 # type: verbatim
23446 #: ../fish/guestfish-actions.pod:4257
23447 #, no-wrap
23448 msgid ""
23449 " vfs-uuid device\n"
23450 "\n"
23451 msgstr ""
23452
23453 # type: textblock
23454 #: ../fish/guestfish-actions.pod:4264
23455 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
23456 msgstr ""
23457
23458 # type: =head2
23459 #: ../fish/guestfish-actions.pod:4266
23460 msgid "vg-activate"
23461 msgstr ""
23462
23463 # type: verbatim
23464 #: ../fish/guestfish-actions.pod:4268
23465 #, no-wrap
23466 msgid ""
23467 " vg-activate true|false 'volgroups ...'\n"
23468 "\n"
23469 msgstr ""
23470
23471 # type: =head2
23472 #: ../fish/guestfish-actions.pod:4281
23473 msgid "vg-activate-all"
23474 msgstr ""
23475
23476 # type: verbatim
23477 #: ../fish/guestfish-actions.pod:4283
23478 #, no-wrap
23479 msgid ""
23480 " vg-activate-all true|false\n"
23481 "\n"
23482 msgstr ""
23483
23484 # type: =head2
23485 #: ../fish/guestfish-actions.pod:4293
23486 msgid "vgcreate"
23487 msgstr ""
23488
23489 # type: verbatim
23490 #: ../fish/guestfish-actions.pod:4295
23491 #, no-wrap
23492 msgid ""
23493 " vgcreate volgroup 'physvols ...'\n"
23494 "\n"
23495 msgstr ""
23496
23497 # type: =head2
23498 #: ../fish/guestfish-actions.pod:4300
23499 msgid "vglvuuids"
23500 msgstr ""
23501
23502 # type: verbatim
23503 #: ../fish/guestfish-actions.pod:4302
23504 #, no-wrap
23505 msgid ""
23506 " vglvuuids vgname\n"
23507 "\n"
23508 msgstr ""
23509
23510 # type: textblock
23511 #: ../fish/guestfish-actions.pod:4307
23512 msgid ""
23513 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
23514 "logical volumes and volume groups."
23515 msgstr ""
23516
23517 # type: textblock
23518 #: ../fish/guestfish-actions.pod:4310
23519 msgid "See also L</vgpvuuids>."
23520 msgstr ""
23521
23522 # type: =head2
23523 #: ../fish/guestfish-actions.pod:4312
23524 msgid "vgpvuuids"
23525 msgstr ""
23526
23527 # type: verbatim
23528 #: ../fish/guestfish-actions.pod:4314
23529 #, no-wrap
23530 msgid ""
23531 " vgpvuuids vgname\n"
23532 "\n"
23533 msgstr ""
23534
23535 # type: textblock
23536 #: ../fish/guestfish-actions.pod:4319
23537 msgid ""
23538 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
23539 "physical volumes and volume groups."
23540 msgstr ""
23541
23542 # type: textblock
23543 #: ../fish/guestfish-actions.pod:4322
23544 msgid "See also L</vglvuuids>."
23545 msgstr ""
23546
23547 # type: =head2
23548 #: ../fish/guestfish-actions.pod:4324
23549 msgid "vgremove"
23550 msgstr ""
23551
23552 # type: verbatim
23553 #: ../fish/guestfish-actions.pod:4326
23554 #, no-wrap
23555 msgid ""
23556 " vgremove vgname\n"
23557 "\n"
23558 msgstr ""
23559
23560 # type: =head2
23561 #: ../fish/guestfish-actions.pod:4333
23562 msgid "vgrename"
23563 msgstr ""
23564
23565 # type: verbatim
23566 #: ../fish/guestfish-actions.pod:4335
23567 #, no-wrap
23568 msgid ""
23569 " vgrename volgroup newvolgroup\n"
23570 "\n"
23571 msgstr ""
23572
23573 # type: =head2
23574 #: ../fish/guestfish-actions.pod:4339
23575 msgid "vgs"
23576 msgstr ""
23577
23578 # type: verbatim
23579 #: ../fish/guestfish-actions.pod:4341
23580 #, no-wrap
23581 msgid ""
23582 " vgs\n"
23583 "\n"
23584 msgstr ""
23585
23586 # type: textblock
23587 #: ../fish/guestfish-actions.pod:4349
23588 msgid "See also L</vgs-full>."
23589 msgstr ""
23590
23591 # type: =head2
23592 #: ../fish/guestfish-actions.pod:4351
23593 msgid "vgs-full"
23594 msgstr ""
23595
23596 # type: verbatim
23597 #: ../fish/guestfish-actions.pod:4353
23598 #, no-wrap
23599 msgid ""
23600 " vgs-full\n"
23601 "\n"
23602 msgstr ""
23603
23604 # type: =head2
23605 #: ../fish/guestfish-actions.pod:4358
23606 msgid "vgscan"
23607 msgstr ""
23608
23609 # type: verbatim
23610 #: ../fish/guestfish-actions.pod:4360
23611 #, no-wrap
23612 msgid ""
23613 " vgscan\n"
23614 "\n"
23615 msgstr ""
23616
23617 # type: =head2
23618 #: ../fish/guestfish-actions.pod:4365
23619 msgid "vguuid"
23620 msgstr ""
23621
23622 # type: verbatim
23623 #: ../fish/guestfish-actions.pod:4367
23624 #, no-wrap
23625 msgid ""
23626 " vguuid vgname\n"
23627 "\n"
23628 msgstr ""
23629
23630 # type: =head2
23631 #: ../fish/guestfish-actions.pod:4371
23632 msgid "wc-c"
23633 msgstr ""
23634
23635 # type: verbatim
23636 #: ../fish/guestfish-actions.pod:4373
23637 #, no-wrap
23638 msgid ""
23639 " wc-c path\n"
23640 "\n"
23641 msgstr ""
23642
23643 # type: =head2
23644 #: ../fish/guestfish-actions.pod:4378
23645 msgid "wc-l"
23646 msgstr ""
23647
23648 # type: verbatim
23649 #: ../fish/guestfish-actions.pod:4380
23650 #, no-wrap
23651 msgid ""
23652 " wc-l path\n"
23653 "\n"
23654 msgstr ""
23655
23656 # type: =head2
23657 #: ../fish/guestfish-actions.pod:4385
23658 msgid "wc-w"
23659 msgstr ""
23660
23661 # type: verbatim
23662 #: ../fish/guestfish-actions.pod:4387
23663 #, no-wrap
23664 msgid ""
23665 " wc-w path\n"
23666 "\n"
23667 msgstr ""
23668
23669 # type: =head2
23670 #: ../fish/guestfish-actions.pod:4392
23671 msgid "write"
23672 msgstr ""
23673
23674 # type: verbatim
23675 #: ../fish/guestfish-actions.pod:4394
23676 #, no-wrap
23677 msgid ""
23678 " write path content\n"
23679 "\n"
23680 msgstr ""
23681
23682 # type: =head2
23683 #: ../fish/guestfish-actions.pod:4402
23684 msgid "write-file"
23685 msgstr ""
23686
23687 # type: verbatim
23688 #: ../fish/guestfish-actions.pod:4404
23689 #, no-wrap
23690 msgid ""
23691 " write-file path content size\n"
23692 "\n"
23693 msgstr ""
23694
23695 # type: =head2
23696 #: ../fish/guestfish-actions.pod:4427
23697 msgid "zegrep"
23698 msgstr ""
23699
23700 # type: verbatim
23701 #: ../fish/guestfish-actions.pod:4429
23702 #, no-wrap
23703 msgid ""
23704 " zegrep regex path\n"
23705 "\n"
23706 msgstr ""
23707
23708 # type: =head2
23709 #: ../fish/guestfish-actions.pod:4437
23710 msgid "zegrepi"
23711 msgstr ""
23712
23713 # type: verbatim
23714 #: ../fish/guestfish-actions.pod:4439
23715 #, no-wrap
23716 msgid ""
23717 " zegrepi regex path\n"
23718 "\n"
23719 msgstr ""
23720
23721 # type: =head2
23722 #: ../fish/guestfish-actions.pod:4447
23723 msgid "zero"
23724 msgstr ""
23725
23726 # type: verbatim
23727 #: ../fish/guestfish-actions.pod:4449
23728 #, no-wrap
23729 msgid ""
23730 " zero device\n"
23731 "\n"
23732 msgstr ""
23733
23734 # type: textblock
23735 #: ../fish/guestfish-actions.pod:4457
23736 msgid "See also: L</zero-device>, L</scrub-device>."
23737 msgstr ""
23738
23739 # type: =head2
23740 #: ../fish/guestfish-actions.pod:4459
23741 msgid "zero-device"
23742 msgstr ""
23743
23744 # type: verbatim
23745 #: ../fish/guestfish-actions.pod:4461
23746 #, no-wrap
23747 msgid ""
23748 " zero-device device\n"
23749 "\n"
23750 msgstr ""
23751
23752 # type: textblock
23753 #: ../fish/guestfish-actions.pod:4463
23754 msgid ""
23755 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
23756 "which just zeroes the first few blocks of a device."
23757 msgstr ""
23758
23759 # type: =head2
23760 #: ../fish/guestfish-actions.pod:4470
23761 msgid "zerofree"
23762 msgstr ""
23763
23764 # type: verbatim
23765 #: ../fish/guestfish-actions.pod:4472
23766 #, no-wrap
23767 msgid ""
23768 " zerofree device\n"
23769 "\n"
23770 msgstr ""
23771
23772 # type: =head2
23773 #: ../fish/guestfish-actions.pod:4485
23774 msgid "zfgrep"
23775 msgstr ""
23776
23777 # type: verbatim
23778 #: ../fish/guestfish-actions.pod:4487
23779 #, no-wrap
23780 msgid ""
23781 " zfgrep pattern path\n"
23782 "\n"
23783 msgstr ""
23784
23785 # type: =head2
23786 #: ../fish/guestfish-actions.pod:4495
23787 msgid "zfgrepi"
23788 msgstr ""
23789
23790 # type: verbatim
23791 #: ../fish/guestfish-actions.pod:4497
23792 #, no-wrap
23793 msgid ""
23794 " zfgrepi pattern path\n"
23795 "\n"
23796 msgstr ""
23797
23798 # type: =head2
23799 #: ../fish/guestfish-actions.pod:4505
23800 msgid "zfile"
23801 msgstr ""
23802
23803 # type: verbatim
23804 #: ../fish/guestfish-actions.pod:4507
23805 #, no-wrap
23806 msgid ""
23807 " zfile meth path\n"
23808 "\n"
23809 msgstr ""
23810
23811 # type: textblock
23812 #: ../fish/guestfish-actions.pod:4514
23813 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
23814 msgstr ""
23815
23816 # type: =head2
23817 #: ../fish/guestfish-actions.pod:4524
23818 msgid "zgrep"
23819 msgstr ""
23820
23821 # type: verbatim
23822 #: ../fish/guestfish-actions.pod:4526
23823 #, no-wrap
23824 msgid ""
23825 " zgrep regex path\n"
23826 "\n"
23827 msgstr ""
23828
23829 # type: =head2
23830 #: ../fish/guestfish-actions.pod:4534
23831 msgid "zgrepi"
23832 msgstr ""
23833
23834 # type: verbatim
23835 #: ../fish/guestfish-actions.pod:4536
23836 #, no-wrap
23837 msgid ""
23838 " zgrepi regex path\n"
23839 "\n"
23840 msgstr ""
23841
23842 # type: =head2
23843 #: ../fish/guestfish-commands.pod:1
23844 msgid "alloc"
23845 msgstr ""
23846
23847 # type: =head2
23848 #: ../fish/guestfish-commands.pod:3
23849 msgid "allocate"
23850 msgstr ""
23851
23852 # type: verbatim
23853 #: ../fish/guestfish-commands.pod:5
23854 #, no-wrap
23855 msgid ""
23856 " alloc filename size\n"
23857 "\n"
23858 msgstr ""
23859
23860 # type: textblock
23861 #: ../fish/guestfish-commands.pod:7
23862 msgid ""
23863 "This creates an empty (zeroed) file of the given size, and then adds so it "
23864 "can be further examined."
23865 msgstr ""
23866
23867 # type: textblock
23868 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
23869 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
23870 msgstr ""
23871
23872 # type: textblock
23873 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
23874 msgid "Size can be specified using standard suffixes, eg. C<1M>."
23875 msgstr ""
23876
23877 # type: textblock
23878 #: ../fish/guestfish-commands.pod:14
23879 msgid ""
23880 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
23881 "image, see L</PREPARED DISK IMAGES>."
23882 msgstr ""
23883
23884 # type: =head2
23885 #: ../fish/guestfish-commands.pod:17
23886 msgid "copy-in"
23887 msgstr ""
23888
23889 # type: verbatim
23890 #: ../fish/guestfish-commands.pod:19
23891 #, no-wrap
23892 msgid ""
23893 " copy-in local [local ...] /remotedir\n"
23894 "\n"
23895 msgstr ""
23896
23897 # type: textblock
23898 #: ../fish/guestfish-commands.pod:21
23899 msgid ""
23900 "C<copy-in> copies local files or directories recursively into the disk "
23901 "image, placing them in the directory called C</remotedir> (which must "
23902 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
23903 "other commands as necessary."
23904 msgstr ""
23905
23906 # type: textblock
23907 #: ../fish/guestfish-commands.pod:26
23908 msgid ""
23909 "Multiple local files and directories can be specified, but the last "
23910 "parameter must always be a remote directory.  Wildcards cannot be used."
23911 msgstr ""
23912
23913 # type: =head2
23914 #: ../fish/guestfish-commands.pod:30
23915 msgid "copy-out"
23916 msgstr ""
23917
23918 # type: verbatim
23919 #: ../fish/guestfish-commands.pod:32
23920 #, no-wrap
23921 msgid ""
23922 " copy-out remote [remote ...] localdir\n"
23923 "\n"
23924 msgstr ""
23925
23926 # type: textblock
23927 #: ../fish/guestfish-commands.pod:34
23928 msgid ""
23929 "C<copy-out> copies remote files or directories recursively out of the disk "
23930 "image, placing them on the host disk in a local directory called C<localdir> "
23931 "(which must exist).  This guestfish meta-command turns into a sequence of "
23932 "L</download>, L</tar-out> and other commands as necessary."
23933 msgstr ""
23934
23935 # type: textblock
23936 #: ../fish/guestfish-commands.pod:40
23937 msgid ""
23938 "Multiple remote files and directories can be specified, but the last "
23939 "parameter must always be a local directory.  To download to the current "
23940 "directory, use C<.> as in:"
23941 msgstr ""
23942
23943 # type: verbatim
23944 #: ../fish/guestfish-commands.pod:44
23945 #, no-wrap
23946 msgid ""
23947 " copy-out /home .\n"
23948 "\n"
23949 msgstr ""
23950
23951 # type: textblock
23952 #: ../fish/guestfish-commands.pod:46
23953 msgid ""
23954 "Wildcards cannot be used in the ordinary command, but you can use them with "
23955 "the help of L</glob> like this:"
23956 msgstr ""
23957
23958 # type: verbatim
23959 #: ../fish/guestfish-commands.pod:49
23960 #, no-wrap
23961 msgid ""
23962 " glob copy-out /home/* .\n"
23963 "\n"
23964 msgstr ""
23965
23966 # type: =head2
23967 #: ../fish/guestfish-commands.pod:51
23968 msgid "echo"
23969 msgstr ""
23970
23971 # type: verbatim
23972 #: ../fish/guestfish-commands.pod:53
23973 #, no-wrap
23974 msgid ""
23975 " echo [params ...]\n"
23976 "\n"
23977 msgstr ""
23978
23979 # type: textblock
23980 #: ../fish/guestfish-commands.pod:55
23981 msgid "This echos the parameters to the terminal."
23982 msgstr ""
23983
23984 # type: =head2
23985 #: ../fish/guestfish-commands.pod:57
23986 msgid "edit"
23987 msgstr ""
23988
23989 # type: =head2
23990 #: ../fish/guestfish-commands.pod:59
23991 msgid "vi"
23992 msgstr ""
23993
23994 # type: =head2
23995 #: ../fish/guestfish-commands.pod:61
23996 msgid "emacs"
23997 msgstr ""
23998
23999 # type: verbatim
24000 #: ../fish/guestfish-commands.pod:63
24001 #, no-wrap
24002 msgid ""
24003 " edit filename\n"
24004 "\n"
24005 msgstr ""
24006
24007 # type: textblock
24008 #: ../fish/guestfish-commands.pod:65
24009 msgid ""
24010 "This is used to edit a file.  It downloads the file, edits it locally using "
24011 "your editor, then uploads the result."
24012 msgstr ""
24013
24014 # type: textblock
24015 #: ../fish/guestfish-commands.pod:68
24016 msgid ""
24017 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24018 "or C<emacs> you will get those corresponding editors."
24019 msgstr ""
24020
24021 # type: =head2
24022 #: ../fish/guestfish-commands.pod:72
24023 msgid "glob"
24024 msgstr ""
24025
24026 # type: verbatim
24027 #: ../fish/guestfish-commands.pod:74
24028 #, no-wrap
24029 msgid ""
24030 " glob command args...\n"
24031 "\n"
24032 msgstr ""
24033
24034 # type: textblock
24035 #: ../fish/guestfish-commands.pod:76
24036 msgid ""
24037 "Expand wildcards in any paths in the args list, and run C<command> "
24038 "repeatedly on each matching path."
24039 msgstr ""
24040
24041 # type: textblock
24042 #: ../fish/guestfish-commands.pod:79
24043 msgid "See L</WILDCARDS AND GLOBBING>."
24044 msgstr ""
24045
24046 # type: =head2
24047 #: ../fish/guestfish-commands.pod:81
24048 msgid "hexedit"
24049 msgstr ""
24050
24051 # type: verbatim
24052 #: ../fish/guestfish-commands.pod:83
24053 #, no-wrap
24054 msgid ""
24055 " hexedit <filename|device>\n"
24056 " hexedit <filename|device> <max>\n"
24057 " hexedit <filename|device> <start> <max>\n"
24058 "\n"
24059 msgstr ""
24060
24061 # type: textblock
24062 #: ../fish/guestfish-commands.pod:87
24063 msgid ""
24064 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24065 "device."
24066 msgstr ""
24067
24068 # type: textblock
24069 #: ../fish/guestfish-commands.pod:90
24070 msgid ""
24071 "This command works by downloading potentially the whole file or device, "
24072 "editing it locally, then uploading it.  If the file or device is large, you "
24073 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24074 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24075 "usual modifiers allowed such as C<1M> (1 megabyte)."
24076 msgstr ""
24077
24078 # type: textblock
24079 #: ../fish/guestfish-commands.pod:97
24080 msgid "For example to edit the first few sectors of a disk you might do:"
24081 msgstr ""
24082
24083 # type: verbatim
24084 #: ../fish/guestfish-commands.pod:100
24085 #, no-wrap
24086 msgid ""
24087 " hexedit /dev/sda 1M\n"
24088 "\n"
24089 msgstr ""
24090
24091 # type: textblock
24092 #: ../fish/guestfish-commands.pod:102
24093 msgid ""
24094 "which would allow you to edit anywhere within the first megabyte of the "
24095 "disk."
24096 msgstr ""
24097
24098 # type: textblock
24099 #: ../fish/guestfish-commands.pod:105
24100 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24101 msgstr ""
24102
24103 # type: verbatim
24104 #: ../fish/guestfish-commands.pod:107
24105 #, no-wrap
24106 msgid ""
24107 " hexedit /dev/sda1 0x400 0x400\n"
24108 "\n"
24109 msgstr ""
24110
24111 # type: textblock
24112 #: ../fish/guestfish-commands.pod:109
24113 msgid "(assuming the superblock is in the standard location)."
24114 msgstr ""
24115
24116 # type: textblock
24117 #: ../fish/guestfish-commands.pod:111
24118 msgid ""
24119 "This command requires the external L<hexedit(1)> program.  You can specify "
24120 "another program to use by setting the C<HEXEDITOR> environment variable."
24121 msgstr ""
24122
24123 # type: textblock
24124 #: ../fish/guestfish-commands.pod:115
24125 msgid "See also L</hexdump>."
24126 msgstr ""
24127
24128 # type: =head2
24129 #: ../fish/guestfish-commands.pod:117
24130 msgid "lcd"
24131 msgstr ""
24132
24133 # type: verbatim
24134 #: ../fish/guestfish-commands.pod:119
24135 #, no-wrap
24136 msgid ""
24137 " lcd directory\n"
24138 "\n"
24139 msgstr ""
24140
24141 # type: textblock
24142 #: ../fish/guestfish-commands.pod:121
24143 msgid "Change the local directory, ie. the current directory of guestfish itself."
24144 msgstr ""
24145
24146 # type: textblock
24147 #: ../fish/guestfish-commands.pod:124
24148 msgid "Note that C<!cd> won't do what you might expect."
24149 msgstr ""
24150
24151 # type: =head2
24152 #: ../fish/guestfish-commands.pod:126
24153 msgid "man"
24154 msgstr ""
24155
24156 # type: =head2
24157 #: ../fish/guestfish-commands.pod:128
24158 msgid "manual"
24159 msgstr ""
24160
24161 # type: verbatim
24162 #: ../fish/guestfish-commands.pod:130
24163 #, no-wrap
24164 msgid ""
24165 "  man\n"
24166 "\n"
24167 msgstr ""
24168
24169 # type: textblock
24170 #: ../fish/guestfish-commands.pod:132
24171 msgid "Opens the manual page for guestfish."
24172 msgstr ""
24173
24174 # type: =head2
24175 #: ../fish/guestfish-commands.pod:134
24176 msgid "more"
24177 msgstr ""
24178
24179 # type: =head2
24180 #: ../fish/guestfish-commands.pod:136
24181 msgid "less"
24182 msgstr ""
24183
24184 # type: verbatim
24185 #: ../fish/guestfish-commands.pod:138
24186 #, no-wrap
24187 msgid ""
24188 " more filename\n"
24189 "\n"
24190 msgstr ""
24191
24192 # type: verbatim
24193 #: ../fish/guestfish-commands.pod:140
24194 #, no-wrap
24195 msgid ""
24196 " less filename\n"
24197 "\n"
24198 msgstr ""
24199
24200 # type: textblock
24201 #: ../fish/guestfish-commands.pod:142
24202 msgid "This is used to view a file."
24203 msgstr ""
24204
24205 # type: textblock
24206 #: ../fish/guestfish-commands.pod:144
24207 msgid ""
24208 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24209 "C<less> you will get the C<less> command specifically."
24210 msgstr ""
24211
24212 # type: =head2
24213 #: ../fish/guestfish-commands.pod:147
24214 msgid "reopen"
24215 msgstr ""
24216
24217 # type: verbatim
24218 #: ../fish/guestfish-commands.pod:149
24219 #, no-wrap
24220 msgid ""
24221 "  reopen\n"
24222 "\n"
24223 msgstr ""
24224
24225 # type: textblock
24226 #: ../fish/guestfish-commands.pod:151
24227 msgid ""
24228 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24229 "normally, because the handle is closed properly when guestfish exits.  "
24230 "However this is occasionally useful for testing."
24231 msgstr ""
24232
24233 # type: =head2
24234 #: ../fish/guestfish-commands.pod:155
24235 msgid "sparse"
24236 msgstr ""
24237
24238 # type: verbatim
24239 #: ../fish/guestfish-commands.pod:157
24240 #, no-wrap
24241 msgid ""
24242 " sparse filename size\n"
24243 "\n"
24244 msgstr ""
24245
24246 # type: textblock
24247 #: ../fish/guestfish-commands.pod:159
24248 msgid ""
24249 "This creates an empty sparse file of the given size, and then adds so it can "
24250 "be further examined."
24251 msgstr ""
24252
24253 # type: textblock
24254 #: ../fish/guestfish-commands.pod:162
24255 msgid ""
24256 "In all respects it works the same as the L</alloc> command, except that the "
24257 "image file is allocated sparsely, which means that disk blocks are not "
24258 "assigned to the file until they are needed.  Sparse disk files only use "
24259 "space when written to, but they are slower and there is a danger you could "
24260 "run out of real disk space during a write operation."
24261 msgstr ""
24262
24263 # type: =head2
24264 #: ../fish/guestfish-commands.pod:172
24265 msgid "supported"
24266 msgstr ""
24267
24268 # type: verbatim
24269 #: ../fish/guestfish-commands.pod:174
24270 #, no-wrap
24271 msgid ""
24272 " supported\n"
24273 "\n"
24274 msgstr ""
24275
24276 # type: textblock
24277 #: ../fish/guestfish-commands.pod:176
24278 msgid ""
24279 "This command returns a list of the optional groups known to the daemon, and "
24280 "indicates which ones are supported by this build of the libguestfs "
24281 "appliance."
24282 msgstr ""
24283
24284 # type: textblock
24285 #: ../fish/guestfish-commands.pod:180
24286 msgid "See also L<guestfs(3)/AVAILABILITY>."
24287 msgstr ""
24288
24289 # type: =head2
24290 #: ../fish/guestfish-commands.pod:182
24291 msgid "time"
24292 msgstr ""
24293
24294 # type: verbatim
24295 #: ../fish/guestfish-commands.pod:184
24296 #, no-wrap
24297 msgid ""
24298 " time command args...\n"
24299 "\n"
24300 msgstr ""
24301
24302 # type: textblock
24303 #: ../fish/guestfish-commands.pod:186
24304 msgid ""
24305 "Run the command as usual, but print the elapsed time afterwards.  This can "
24306 "be useful for benchmarking operations."
24307 msgstr ""
24308
24309 # type: textblock
24310 #: ../test-tool/libguestfs-test-tool.pod:5
24311 msgid "libguestfs-test-tool - End user tests for libguestfs"
24312 msgstr ""
24313
24314 # type: verbatim
24315 #: ../test-tool/libguestfs-test-tool.pod:9
24316 #, no-wrap
24317 msgid ""
24318 " libguestfs-test-tool [--options]\n"
24319 "\n"
24320 msgstr ""
24321
24322 # type: textblock
24323 #: ../test-tool/libguestfs-test-tool.pod:13
24324 msgid ""
24325 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24326 "and developers, to allow them to check basic libguestfs functionality is "
24327 "working.  This is needed because libguestfs occasionally breaks for reasons "
24328 "beyond our control: usually because of changes in the underlying qemu or "
24329 "kernel packages, or the host environment."
24330 msgstr ""
24331
24332 # type: textblock
24333 #: ../test-tool/libguestfs-test-tool.pod:20
24334 msgid "If you suspect a problem in libguestfs, then just run:"
24335 msgstr ""
24336
24337 # type: verbatim
24338 #: ../test-tool/libguestfs-test-tool.pod:22
24339 #, no-wrap
24340 msgid ""
24341 " libguestfs-test-tool\n"
24342 "\n"
24343 msgstr ""
24344
24345 # type: textblock
24346 #: ../test-tool/libguestfs-test-tool.pod:24
24347 msgid "It will print lots of diagnostic messages."
24348 msgstr ""
24349
24350 # type: textblock
24351 #: ../test-tool/libguestfs-test-tool.pod:26
24352 msgid "If it runs to completion successfully, you will see this near the end:"
24353 msgstr ""
24354
24355 # type: verbatim
24356 #: ../test-tool/libguestfs-test-tool.pod:28
24357 #, no-wrap
24358 msgid ""
24359 " ===== TEST FINISHED OK =====\n"
24360 "\n"
24361 msgstr ""
24362
24363 # type: textblock
24364 #: ../test-tool/libguestfs-test-tool.pod:30
24365 msgid "and the test tool will exit with code 0."
24366 msgstr ""
24367
24368 # type: textblock
24369 #: ../test-tool/libguestfs-test-tool.pod:32
24370 msgid ""
24371 "If it fails (and/or exits with non-zero error code), please paste the "
24372 "B<complete, unedited> output of the test tool into a bug report.  More "
24373 "information about reporting bugs can be found on the "
24374 "L<http://libguestfs.org/> website."
24375 msgstr ""
24376
24377 # type: =item
24378 #: ../test-tool/libguestfs-test-tool.pod:41
24379 msgid "I<--help>"
24380 msgstr ""
24381
24382 # type: textblock
24383 #: ../test-tool/libguestfs-test-tool.pod:43
24384 msgid "Display short usage information and exit."
24385 msgstr ""
24386
24387 # type: =item
24388 #: ../test-tool/libguestfs-test-tool.pod:45
24389 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24390 msgstr ""
24391
24392 # type: textblock
24393 #: ../test-tool/libguestfs-test-tool.pod:47
24394 msgid ""
24395 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
24396 "normally look in the C<$libexec> directory that was configured when the tool "
24397 "was built."
24398 msgstr ""
24399
24400 # type: =item
24401 #: ../test-tool/libguestfs-test-tool.pod:51
24402 msgid "I<--qemu qemu_binary>"
24403 msgstr ""
24404
24405 # type: textblock
24406 #: ../test-tool/libguestfs-test-tool.pod:53
24407 msgid ""
24408 "If you have downloaded another qemu binary, point this option at the full "
24409 "path of the binary to try it."
24410 msgstr ""
24411
24412 # type: =item
24413 #: ../test-tool/libguestfs-test-tool.pod:56
24414 msgid "I<--qemudir qemu_source_dir>"
24415 msgstr ""
24416
24417 # type: textblock
24418 #: ../test-tool/libguestfs-test-tool.pod:58
24419 msgid ""
24420 "If you have compiled qemu from source, point this option at the source "
24421 "directory to try it."
24422 msgstr ""
24423
24424 # type: =item
24425 #: ../test-tool/libguestfs-test-tool.pod:61
24426 msgid "I<--timeout N>"
24427 msgstr ""
24428
24429 # type: textblock
24430 #: ../test-tool/libguestfs-test-tool.pod:63
24431 msgid ""
24432 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
24433 "does not usually need to be adjusted unless your machine is very slow."
24434 msgstr ""
24435
24436 # type: =head1
24437 #: ../test-tool/libguestfs-test-tool.pod:69
24438 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
24439 msgstr ""
24440
24441 # type: textblock
24442 #: ../test-tool/libguestfs-test-tool.pod:71
24443 msgid ""
24444 "If you have compiled another version of qemu from source and would like to "
24445 "try that, then you can use the I<--qemudir> option to point to the qemu "
24446 "source directory."
24447 msgstr ""
24448
24449 # type: textblock
24450 #: ../test-tool/libguestfs-test-tool.pod:75
24451 msgid ""
24452 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
24453 "option to point to the binary."
24454 msgstr ""
24455
24456 # type: textblock
24457 #: ../test-tool/libguestfs-test-tool.pod:78
24458 msgid ""
24459 "When using an alternate qemu with libguestfs, usually you would need to "
24460 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
24461 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
24462 "when you use either of the I<--qemudir> or I<--qemu> options."
24463 msgstr ""
24464
24465 # type: textblock
24466 #: ../test-tool/libguestfs-test-tool.pod:85
24467 msgid ""
24468 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
24469 "I<1> if there was an error."
24470 msgstr ""
24471
24472 # type: =item
24473 #: ../test-tool/libguestfs-test-tool.pod:92
24474 msgid "/usr/libexec/libguestfs-test-tool-helper"
24475 msgstr ""
24476
24477 # type: textblock
24478 #: ../test-tool/libguestfs-test-tool.pod:94
24479 msgid ""
24480 "This helper program is run inside the appliance and provides additional "
24481 "tests."
24482 msgstr ""
24483
24484 # type: =item
24485 #: ../test-tool/libguestfs-test-tool.pod:97
24486 msgid "/usr/bin/mkisofs"
24487 msgstr ""
24488
24489 # type: textblock
24490 #: ../test-tool/libguestfs-test-tool.pod:99
24491 msgid ""
24492 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
24493 "which is used as part of the tests."
24494 msgstr ""
24495
24496 # type: textblock
24497 #: ../test-tool/libguestfs-test-tool.pod:106
24498 msgid ""
24499 "For the full list of environment variables which may affect libguestfs, "
24500 "please see the L<guestfs(3)> manual page."
24501 msgstr ""
24502
24503 # type: textblock
24504 #: ../test-tool/libguestfs-test-tool.pod:111
24505 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
24506 msgstr ""
24507
24508 # type: textblock
24509 #: ../test-tool/libguestfs-test-tool.pod:121
24510 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
24511 msgstr ""
24512
24513 # type: textblock
24514 #: ../fuse/guestmount.pod:5
24515 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
24516 msgstr ""
24517
24518 # type: verbatim
24519 #: ../fuse/guestmount.pod:9
24520 #, no-wrap
24521 msgid ""
24522 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
24523 "\n"
24524 msgstr ""
24525
24526 # type: verbatim
24527 #: ../fuse/guestmount.pod:11
24528 #, no-wrap
24529 msgid ""
24530 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
24531 "\n"
24532 msgstr ""
24533
24534 # type: verbatim
24535 #: ../fuse/guestmount.pod:13
24536 #, no-wrap
24537 msgid ""
24538 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
24539 "\n"
24540 msgstr ""
24541
24542 # type: textblock
24543 #: ../fuse/guestmount.pod:17
24544 msgid ""
24545 "You must I<not> use C<guestmount> in read-write mode on live virtual "
24546 "machines.  If you do this, you risk disk corruption in the VM."
24547 msgstr ""
24548
24549 # type: textblock
24550 #: ../fuse/guestmount.pod:22
24551 msgid ""
24552 "The guestmount program can be used to mount virtual machine filesystems and "
24553 "other disk images on the host.  It uses libguestfs for access to the guest "
24554 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
24555 "a mountable device."
24556 msgstr ""
24557
24558 # type: textblock
24559 #: ../fuse/guestmount.pod:27
24560 msgid ""
24561 "Along with other options, you have to give at least one device (I<-a> "
24562 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
24563 "option) or use the I<-i> inspection option.  How this works is better "
24564 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
24565 "below."
24566 msgstr ""
24567
24568 # type: textblock
24569 #: ../fuse/guestmount.pod:33
24570 msgid ""
24571 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
24572 "by you, and the filesystem will not be visible to any other users unless you "
24573 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
24574 "the filesystem, use the C<fusermount -u> command."
24575 msgstr ""
24576
24577 # type: textblock
24578 #: ../fuse/guestmount.pod:41
24579 msgid ""
24580 "For a typical Windows guest which has its main filesystem on the first "
24581 "partition:"
24582 msgstr ""
24583
24584 # type: verbatim
24585 #: ../fuse/guestmount.pod:44
24586 #, no-wrap
24587 msgid ""
24588 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
24589 "\n"
24590 msgstr ""
24591
24592 # type: textblock
24593 #: ../fuse/guestmount.pod:46
24594 msgid ""
24595 "For a typical Linux guest which has a /boot filesystem on the first "
24596 "partition, and the root filesystem on a logical volume:"
24597 msgstr ""
24598
24599 # type: verbatim
24600 #: ../fuse/guestmount.pod:49
24601 #, no-wrap
24602 msgid ""
24603 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
24604 "\n"
24605 msgstr ""
24606
24607 # type: textblock
24608 #: ../fuse/guestmount.pod:51
24609 msgid "To get libguestfs to detect guest mountpoints for you:"
24610 msgstr ""
24611
24612 # type: verbatim
24613 #: ../fuse/guestmount.pod:53
24614 #, no-wrap
24615 msgid ""
24616 " guestmount -a guest.img -i --ro /mnt\n"
24617 "\n"
24618 msgstr ""
24619
24620 # type: textblock
24621 #: ../fuse/guestmount.pod:55
24622 msgid "For a libvirt guest called \"Guest\" you could do:"
24623 msgstr ""
24624
24625 # type: verbatim
24626 #: ../fuse/guestmount.pod:57
24627 #, no-wrap
24628 msgid ""
24629 " guestmount -d Guest -i --ro /mnt\n"
24630 "\n"
24631 msgstr ""
24632
24633 # type: textblock
24634 #: ../fuse/guestmount.pod:59
24635 msgid ""
24636 "If you don't know what filesystems are contained in a guest or disk image, "
24637 "use L<virt-list-filesystems(1)> first:"
24638 msgstr ""
24639
24640 # type: verbatim
24641 #: ../fuse/guestmount.pod:62
24642 #, no-wrap
24643 msgid ""
24644 " virt-list-filesystems MyGuest\n"
24645 "\n"
24646 msgstr ""
24647
24648 # type: textblock
24649 #: ../fuse/guestmount.pod:64
24650 msgid ""
24651 "If you want to trace the libguestfs calls but without excessive debugging "
24652 "information, we recommend:"
24653 msgstr ""
24654
24655 # type: verbatim
24656 #: ../fuse/guestmount.pod:67
24657 #, no-wrap
24658 msgid ""
24659 " guestmount [...] --trace /mnt\n"
24660 "\n"
24661 msgstr ""
24662
24663 # type: textblock
24664 #: ../fuse/guestmount.pod:69
24665 msgid "If you want to debug the program, we recommend:"
24666 msgstr ""
24667
24668 # type: verbatim
24669 #: ../fuse/guestmount.pod:71
24670 #, no-wrap
24671 msgid ""
24672 " guestmount [...] --trace --verbose /mnt\n"
24673 "\n"
24674 msgstr ""
24675
24676 # type: textblock
24677 #: ../fuse/guestmount.pod:79
24678 msgid "Add a block device or virtual machine image."
24679 msgstr ""
24680
24681 # type: =item
24682 #: ../fuse/guestmount.pod:96
24683 msgid "B<--dir-cache-timeout N>"
24684 msgstr ""
24685
24686 # type: textblock
24687 #: ../fuse/guestmount.pod:98
24688 msgid ""
24689 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
24690 "seconds.  The readdir cache [actually, there are several semi-independent "
24691 "caches] is populated after a readdir(2) call with the stat and extended "
24692 "attributes of the files in the directory, in anticipation that they will be "
24693 "requested soon after."
24694 msgstr ""
24695
24696 # type: textblock
24697 #: ../fuse/guestmount.pod:104
24698 msgid ""
24699 "There is also a different attribute cache implemented by FUSE (see the FUSE "
24700 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
24701 "requests, only cache existing ones."
24702 msgstr ""
24703
24704 # type: textblock
24705 #: ../fuse/guestmount.pod:122
24706 msgid ""
24707 "If you have untrusted raw-format guest disk images, you should use this "
24708 "option to specify the disk format.  This avoids a possible security problem "
24709 "with malicious guests (CVE-2010-3851).  See also "
24710 "L<guestfs(3)/guestfs_add_drive_opts>."
24711 msgstr ""
24712
24713 # type: =item
24714 #: ../fuse/guestmount.pod:127
24715 msgid "B<--fuse-help>"
24716 msgstr ""
24717
24718 # type: textblock
24719 #: ../fuse/guestmount.pod:129
24720 msgid "Display help on special FUSE options (see I<-o> below)."
24721 msgstr ""
24722
24723 # type: textblock
24724 #: ../fuse/guestmount.pod:133
24725 msgid "Display brief help and exit."
24726 msgstr ""
24727
24728 # type: =item
24729 #: ../fuse/guestmount.pod:146
24730 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
24731 msgstr ""
24732
24733 # type: textblock
24734 #: ../fuse/guestmount.pod:148
24735 msgid ""
24736 "Mount the named partition or logical volume on the given mountpoint B<in the "
24737 "guest> (this has nothing to do with mountpoints in the host)."
24738 msgstr ""
24739
24740 # type: textblock
24741 #: ../fuse/guestmount.pod:151
24742 msgid ""
24743 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
24744 "something on C</>."
24745 msgstr ""
24746
24747 # type: textblock
24748 #: ../fuse/guestmount.pod:156
24749 msgid ""
24750 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
24751 "unmounted.  If you specify this option, then we don't attempt to sync the "
24752 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
24753 msgstr ""
24754
24755 # type: =item
24756 #: ../fuse/guestmount.pod:161
24757 msgid "B<-o option> | B<--option option>"
24758 msgstr ""
24759
24760 # type: textblock
24761 #: ../fuse/guestmount.pod:163
24762 msgid "Pass extra options to FUSE."
24763 msgstr ""
24764
24765 # type: textblock
24766 #: ../fuse/guestmount.pod:165
24767 msgid ""
24768 "To get a list of all the extra options supported by FUSE, use the command "
24769 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
24770 "of them are a good idea."
24771 msgstr ""
24772
24773 # type: verbatim
24774 #: ../fuse/guestmount.pod:169
24775 #, no-wrap
24776 msgid ""
24777 " guestmount --fuse-help\n"
24778 "\n"
24779 msgstr ""
24780
24781 # type: textblock
24782 #: ../fuse/guestmount.pod:171
24783 msgid "Some potentially useful FUSE options:"
24784 msgstr ""
24785
24786 # type: =item
24787 #: ../fuse/guestmount.pod:175
24788 msgid "B<-o allow_other>"
24789 msgstr ""
24790
24791 # type: textblock
24792 #: ../fuse/guestmount.pod:177
24793 msgid "Allow other users to see the filesystem."
24794 msgstr ""
24795
24796 # type: =item
24797 #: ../fuse/guestmount.pod:179
24798 msgid "B<-o attr_timeout=N>"
24799 msgstr ""
24800
24801 # type: textblock
24802 #: ../fuse/guestmount.pod:181
24803 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
24804 msgstr ""
24805
24806 # type: =item
24807 #: ../fuse/guestmount.pod:183
24808 msgid "B<-o kernel_cache>"
24809 msgstr ""
24810
24811 # type: textblock
24812 #: ../fuse/guestmount.pod:185
24813 msgid ""
24814 "Allow the kernel to cache files (reduces the number of reads that have to go "
24815 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
24816 "afford the extra memory usage."
24817 msgstr ""
24818
24819 # type: =item
24820 #: ../fuse/guestmount.pod:189
24821 msgid "B<-o uid=N> B<-o gid=N>"
24822 msgstr ""
24823
24824 # type: textblock
24825 #: ../fuse/guestmount.pod:191
24826 msgid ""
24827 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
24828 "the chosen values."
24829 msgstr ""
24830
24831 # type: textblock
24832 #: ../fuse/guestmount.pod:198
24833 msgid ""
24834 "Add devices and mount everything read-only.  Also disallow writes and make "
24835 "the disk appear read-only to FUSE."
24836 msgstr ""
24837
24838 # type: textblock
24839 #: ../fuse/guestmount.pod:201
24840 msgid ""
24841 "This is highly recommended if you are not going to edit the guest disk.  If "
24842 "the guest is running and this option is I<not> supplied, then there is a "
24843 "strong risk of disk corruption in the guest.  We try to prevent this from "
24844 "happening, but it is not always possible."
24845 msgstr ""
24846
24847 # type: textblock
24848 #: ../fuse/guestmount.pod:206
24849 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
24850 msgstr ""
24851
24852 # type: textblock
24853 #: ../fuse/guestmount.pod:210
24854 msgid "Enable SELinux support for the guest."
24855 msgstr ""
24856
24857 # type: textblock
24858 #: ../fuse/guestmount.pod:214
24859 msgid "Enable verbose messages from underlying libguestfs."
24860 msgstr ""
24861
24862 # type: textblock
24863 #: ../fuse/guestmount.pod:218
24864 msgid "Display the program version and exit."
24865 msgstr ""
24866
24867 # type: textblock
24868 #: ../fuse/guestmount.pod:222
24869 msgid ""
24870 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
24871 "FOR READ AND WRITE>."
24872 msgstr ""
24873
24874 # type: =item
24875 #: ../fuse/guestmount.pod:225
24876 msgid "B<-x> | B<--trace>"
24877 msgstr ""
24878
24879 # type: textblock
24880 #: ../fuse/guestmount.pod:227
24881 msgid "Trace libguestfs calls."
24882 msgstr ""
24883
24884 # type: textblock
24885 #: ../fuse/guestmount.pod:229
24886 msgid "This also stops the daemon from forking into the background."
24887 msgstr ""
24888
24889 # type: textblock
24890 #: ../fuse/guestmount.pod:235
24891 msgid ""
24892 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
24893 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
24894 "L<http://fuse.sf.net/>."
24895 msgstr ""
24896
24897 # type: textblock
24898 #: ../inspector/virt-inspector.pl:35
24899 msgid ""
24900 "virt-inspector - Display operating system version and other information "
24901 "about a virtual machine"
24902 msgstr ""
24903
24904 # type: verbatim
24905 #: ../inspector/virt-inspector.pl:39
24906 #, no-wrap
24907 msgid ""
24908 " virt-inspector [--connect URI] domname\n"
24909 "\n"
24910 msgstr ""
24911
24912 # type: verbatim
24913 #: ../inspector/virt-inspector.pl:41
24914 #, no-wrap
24915 msgid ""
24916 " virt-inspector guest.img [guest.img ...]\n"
24917 "\n"
24918 msgstr ""
24919
24920 # type: textblock
24921 #: ../inspector/virt-inspector.pl:45
24922 msgid ""
24923 "B<virt-inspector> examines a virtual machine or disk image and tries to "
24924 "determine the version of the operating system and other information about "
24925 "the virtual machine."
24926 msgstr ""
24927
24928 # type: textblock
24929 #: ../inspector/virt-inspector.pl:49
24930 msgid "Virt-inspector produces XML output for feeding into other programs."
24931 msgstr ""
24932
24933 # type: textblock
24934 #: ../inspector/virt-inspector.pl:51
24935 msgid ""
24936 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
24937 "libvirt domain (see: C<virsh list --all>)."
24938 msgstr ""
24939
24940 # type: textblock
24941 #: ../inspector/virt-inspector.pl:54
24942 msgid ""
24943 "You can also run virt-inspector directly on disk images from a single "
24944 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
24945 "has several block devices, in which case you should list them one after "
24946 "another, with the first corresponding to the guest's C</dev/sda>, the second "
24947 "to the guest's C</dev/sdb> and so on."
24948 msgstr ""
24949
24950 # type: textblock
24951 #: ../inspector/virt-inspector.pl:60
24952 msgid ""
24953 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
24954 "inspect several virtual machines, you have to run virt-inspector several "
24955 "times (for example, from a shell script for-loop)."
24956 msgstr ""
24957
24958 # type: textblock
24959 #: ../inspector/virt-inspector.pl:65
24960 msgid ""
24961 "Because virt-inspector needs direct access to guest images, it won't "
24962 "normally work over remote libvirt connections."
24963 msgstr ""
24964
24965 # type: textblock
24966 #: ../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
24967 msgid "Display brief help."
24968 msgstr ""
24969
24970 # type: =item
24971 #: ../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
24972 msgid "B<--version>"
24973 msgstr ""
24974
24975 # type: textblock
24976 #: ../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
24977 msgid "Display version number and exit."
24978 msgstr ""
24979
24980 # type: =item
24981 #: ../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
24982 msgid "B<--connect URI> | B<-c URI>"
24983 msgstr ""
24984
24985 # type: textblock
24986 #: ../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
24987 msgid ""
24988 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24989 "to the default libvirt hypervisor."
24990 msgstr ""
24991
24992 # type: textblock
24993 #: ../inspector/virt-inspector.pl:97
24994 msgid ""
24995 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24996 "you specify guest block devices directly, then libvirt is not used at all."
24997 msgstr ""
24998
24999 # type: =item
25000 #: ../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
25001 msgid "B<--format> raw"
25002 msgstr ""
25003
25004 # type: textblock
25005 #: ../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
25006 msgid ""
25007 "Specify the format of disk images given on the command line.  If this is "
25008 "omitted then the format is autodetected from the content of the disk image."
25009 msgstr ""
25010
25011 # type: textblock
25012 #: ../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
25013 msgid ""
25014 "If disk images are requested from libvirt, then this program asks libvirt "
25015 "for this information.  In this case, the value of the format parameter is "
25016 "ignored."
25017 msgstr ""
25018
25019 # type: textblock
25020 #: ../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
25021 msgid ""
25022 "If working with untrusted raw-format guest disk images, you should ensure "
25023 "the format is always specified."
25024 msgstr ""
25025
25026 # type: =head1
25027 #: ../inspector/virt-inspector.pl:149
25028 msgid "XML FORMAT"
25029 msgstr ""
25030
25031 # type: textblock
25032 #: ../inspector/virt-inspector.pl:151
25033 msgid ""
25034 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
25035 "supplied with libguestfs.  This section is just an overview."
25036 msgstr ""
25037
25038 # type: textblock
25039 #: ../inspector/virt-inspector.pl:154
25040 msgid ""
25041 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
25042 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
25043 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
25044 "which is vanishingly rare in real world VMs."
25045 msgstr ""
25046
25047 # type: =head2
25048 #: ../inspector/virt-inspector.pl:159
25049 msgid "E<lt>operatingsystemE<gt>"
25050 msgstr ""
25051
25052 # type: textblock
25053 #: ../inspector/virt-inspector.pl:161
25054 msgid ""
25055 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
25056 "describe the operating system, its architecture, the descriptive \"product "
25057 "name\" string, the type of OS and so on, as in this example:"
25058 msgstr ""
25059
25060 # type: verbatim
25061 #: ../inspector/virt-inspector.pl:165
25062 #, no-wrap
25063 msgid ""
25064 " <operatingsystems>\n"
25065 "   <operatingsystem>\n"
25066 "     <root>/dev/sda2</root>\n"
25067 "     <name>windows</name>\n"
25068 "     <arch>i386</arch>\n"
25069 "     <distro>windows</distro>\n"
25070 "     <product_name>Windows 7 Enterprise</product_name>\n"
25071 "     <major_version>6</major_version>\n"
25072 "     <minor_version>1</minor_version>\n"
25073 "     <windows_systemroot>/Windows</windows_systemroot>\n"
25074 "\n"
25075 msgstr ""
25076
25077 # type: textblock
25078 #: ../inspector/virt-inspector.pl:176
25079 msgid ""
25080 "These fields are derived from the libguestfs inspection API, and you can "
25081 "find more details in L<guestfs(3)/INSPECTION>."
25082 msgstr ""
25083
25084 # type: textblock
25085 #: ../inspector/virt-inspector.pl:179
25086 msgid ""
25087 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
25088 "of view of libguestfs (block devices may have completely different names "
25089 "inside the VM itself)."
25090 msgstr ""
25091
25092 # type: =head2
25093 #: ../inspector/virt-inspector.pl:240
25094 msgid "E<lt>mountpointsE<gt>"
25095 msgstr ""
25096
25097 # type: textblock
25098 #: ../inspector/virt-inspector.pl:242
25099 msgid ""
25100 "Un*x-like guests typically have multiple filesystems which are mounted at "
25101 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
25102 "element which looks like this:"
25103 msgstr ""
25104
25105 # type: verbatim
25106 #: ../inspector/virt-inspector.pl:246
25107 #, no-wrap
25108 msgid ""
25109 " <operatingsystems>\n"
25110 "   <operatingsystem>\n"
25111 "     ...\n"
25112 "     <mountpoints>\n"
25113 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
25114 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
25115 "     </mountpoints>\n"
25116 "\n"
25117 msgstr ""
25118
25119 # type: textblock
25120 #: ../inspector/virt-inspector.pl:254
25121 msgid ""
25122 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
25123 "and may have completely different names inside the guest.  Only mountable "
25124 "filesystems appear in this list, not things like swap devices."
25125 msgstr ""
25126
25127 # type: =head2
25128 #: ../inspector/virt-inspector.pl:276
25129 msgid "E<lt>filesystemsE<gt>"
25130 msgstr ""
25131
25132 # type: textblock
25133 #: ../inspector/virt-inspector.pl:278
25134 msgid ""
25135 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
25136 "filesystems belonging to the guest, including swap and empty partitions.  "
25137 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
25138 "this OS or shared by this OS and other OSes)."
25139 msgstr ""
25140
25141 # type: textblock
25142 #: ../inspector/virt-inspector.pl:283
25143 msgid "You might see something like this:"
25144 msgstr ""
25145
25146 # type: verbatim
25147 #: ../inspector/virt-inspector.pl:285
25148 #, no-wrap
25149 msgid ""
25150 " <operatingsystems>\n"
25151 "   <operatingsystem>\n"
25152 "     ...\n"
25153 "     <filesystems>\n"
25154 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25155 "         <type>ext4</type>\n"
25156 "         <label>Fedora-13-x86_64</label>\n"
25157 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
25158 "       </filesystem>\n"
25159 "\n"
25160 msgstr ""
25161
25162 # type: textblock
25163 #: ../inspector/virt-inspector.pl:295
25164 msgid ""
25165 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
25166 "the label, and the UUID."
25167 msgstr ""
25168
25169 # type: =head2
25170 #: ../inspector/virt-inspector.pl:337
25171 msgid "E<lt>applicationsE<gt>"
25172 msgstr ""
25173
25174 # type: textblock
25175 #: ../inspector/virt-inspector.pl:339
25176 msgid ""
25177 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
25178 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
25179 "machine.  At the moment we are only able to list RPMs and Debian packages "
25180 "installed, but in future we will support other Linux distros and Windows."
25181 msgstr ""
25182
25183 # type: textblock
25184 #: ../inspector/virt-inspector.pl:345
25185 msgid ""
25186 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
25187 "Typical values would be C<rpm> and C<deb>."
25188 msgstr ""
25189
25190 # type: textblock
25191 #: ../inspector/virt-inspector.pl:348
25192 msgid ""
25193 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
25194 "Typical values include C<yum>, C<up2date> and C<apt>"
25195 msgstr ""
25196
25197 # type: textblock
25198 #: ../inspector/virt-inspector.pl:351
25199 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
25200 msgstr ""
25201
25202 # type: verbatim
25203 #: ../inspector/virt-inspector.pl:354
25204 #, no-wrap
25205 msgid ""
25206 " <operatingsystems>\n"
25207 "   <operatingsystem>\n"
25208 "     ...\n"
25209 "     <applications>\n"
25210 "       <application>\n"
25211 "         <name>coreutils</name>\n"
25212 "         <version>8.5</version>\n"
25213 "         <release>1</release>\n"
25214 "       </application>\n"
25215 "\n"
25216 msgstr ""
25217
25218 # type: textblock
25219 #: ../inspector/virt-inspector.pl:364
25220 msgid ""
25221 "(The version and release fields may not be available for some package "
25222 "types)."
25223 msgstr ""
25224
25225 # type: =head1
25226 #: ../inspector/virt-inspector.pl:510
25227 msgid "USING XPATH"
25228 msgstr ""
25229
25230 # type: textblock
25231 #: ../inspector/virt-inspector.pl:512
25232 msgid ""
25233 "You can use the XPath query language, and/or the xpath tool, in order to "
25234 "select parts of the XML."
25235 msgstr ""
25236
25237 # type: verbatim
25238 #: ../inspector/virt-inspector.pl:517
25239 #, no-wrap
25240 msgid ""
25241 " $ virt-inspector Guest | xpath //filesystems\n"
25242 " Found 1 nodes:\n"
25243 " -- NODE --\n"
25244 " <filesystems>\n"
25245 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25246 "        <type>ext4</type>\n"
25247 " [etc]\n"
25248 "\n"
25249 msgstr ""
25250
25251 # type: verbatim
25252 #: ../inspector/virt-inspector.pl:525
25253 #, no-wrap
25254 msgid ""
25255 " $ virt-inspector Guest | \\\n"
25256 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
25257 " Query didn't return a nodeset. Value: ext4\n"
25258 "\n"
25259 msgstr ""
25260
25261 # type: =head1
25262 #: ../inspector/virt-inspector.pl:529 ../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
25263 msgid "SHELL QUOTING"
25264 msgstr ""
25265
25266 # type: textblock
25267 #: ../inspector/virt-inspector.pl:531 ../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
25268 msgid ""
25269 "Libvirt guest names can contain arbitrary characters, some of which have "
25270 "meaning to the shell such as C<#> and space.  You may need to quote or "
25271 "escape these characters on the command line.  See the shell manual page "
25272 "L<sh(1)> for details."
25273 msgstr ""
25274
25275 # type: textblock
25276 #: ../inspector/virt-inspector.pl:538
25277 msgid ""
25278 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25279 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
25280 msgstr ""
25281
25282 # type: textblock
25283 #: ../inspector/virt-inspector.pl:552 ../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
25284 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25285 msgstr ""
25286
25287 # type: textblock
25288 #: ../inspector/virt-inspector.pl:556
25289 msgid "Matthew Booth L<mbooth@redhat.com>"
25290 msgstr ""
25291
25292 # type: textblock
25293 #: ../inspector/virt-inspector.pl:562 ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
25294 msgid "Copyright (C) 2010 Red Hat Inc."
25295 msgstr ""
25296
25297 # type: textblock
25298 #: ../tools/virt-edit.pl:34
25299 msgid "virt-edit - Edit a file in a virtual machine"
25300 msgstr ""
25301
25302 # type: verbatim
25303 #: ../tools/virt-edit.pl:38
25304 #, no-wrap
25305 msgid ""
25306 " virt-edit [--options] domname file\n"
25307 "\n"
25308 msgstr ""
25309
25310 # type: verbatim
25311 #: ../tools/virt-edit.pl:40
25312 #, no-wrap
25313 msgid ""
25314 " virt-edit [--options] disk.img [disk.img ...] file\n"
25315 "\n"
25316 msgstr ""
25317
25318 # type: verbatim
25319 #: ../tools/virt-edit.pl:42
25320 #, no-wrap
25321 msgid ""
25322 " virt-edit [domname|disk.img] file -e 'expr'\n"
25323 "\n"
25324 msgstr ""
25325
25326 # type: textblock
25327 #: ../tools/virt-edit.pl:46
25328 msgid ""
25329 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25330 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25331 "doing this, but doesn't catch all cases."
25332 msgstr ""
25333
25334 # type: textblock
25335 #: ../tools/virt-edit.pl:52
25336 msgid ""
25337 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25338 "the named virtual machine (or disk image)."
25339 msgstr ""
25340
25341 # type: textblock
25342 #: ../tools/virt-edit.pl:55
25343 msgid ""
25344 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25345 "you should look at the L<guestfish(1)> tool."
25346 msgstr ""
25347
25348 # type: textblock
25349 #: ../tools/virt-edit.pl:60
25350 msgid "Edit the named files interactively:"
25351 msgstr ""
25352
25353 # type: verbatim
25354 #: ../tools/virt-edit.pl:62
25355 #, no-wrap
25356 msgid ""
25357 " virt-edit mydomain /boot/grub/grub.conf\n"
25358 "\n"
25359 msgstr ""
25360
25361 # type: verbatim
25362 #: ../tools/virt-edit.pl:64
25363 #, no-wrap
25364 msgid ""
25365 " virt-edit mydomain /etc/passwd\n"
25366 "\n"
25367 msgstr ""
25368
25369 # type: textblock
25370 #: ../tools/virt-edit.pl:66
25371 msgid ""
25372 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25373 "below).  To change the init default level to 5:"
25374 msgstr ""
25375
25376 # type: verbatim
25377 #: ../tools/virt-edit.pl:70
25378 #, no-wrap
25379 msgid ""
25380 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25381 "\n"
25382 msgstr ""
25383
25384 # type: =item
25385 #: ../tools/virt-edit.pl:96
25386 msgid "B<--backup extension> | B<-b extension>"
25387 msgstr ""
25388
25389 # type: textblock
25390 #: ../tools/virt-edit.pl:98
25391 msgid ""
25392 "Create a backup of the original file I<in the guest disk image>.  The backup "
25393 "has the original filename with C<extension> added."
25394 msgstr ""
25395
25396 # type: textblock
25397 #: ../tools/virt-edit.pl:101
25398 msgid ""
25399 "Usually the first character of C<extension> would be a dot C<.> so you would "
25400 "write:"
25401 msgstr ""
25402
25403 # type: verbatim
25404 #: ../tools/virt-edit.pl:104
25405 #, no-wrap
25406 msgid ""
25407 " virt-edit -b .orig [etc]\n"
25408 "\n"
25409 msgstr ""
25410
25411 # type: textblock
25412 #: ../tools/virt-edit.pl:106
25413 msgid "By default, no backup file is made."
25414 msgstr ""
25415
25416 # type: textblock
25417 #: ../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
25418 msgid ""
25419 "If you specify guest block devices directly, then libvirt is not used at "
25420 "all."
25421 msgstr ""
25422
25423 # type: =item
25424 #: ../tools/virt-edit.pl:141
25425 msgid "B<--expr EXPR> | B<-e EXPR>"
25426 msgstr ""
25427
25428 # type: textblock
25429 #: ../tools/virt-edit.pl:143
25430 msgid ""
25431 "Instead of launching the external editor, non-interactively apply the Perl "
25432 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25433 "EDITING> below."
25434 msgstr ""
25435
25436 # type: textblock
25437 #: ../tools/virt-edit.pl:147
25438 msgid ""
25439 "Be careful to properly quote the expression to prevent it from being altered "
25440 "by the shell."
25441 msgstr ""
25442
25443 # type: =head1
25444 #: ../tools/virt-edit.pl:268
25445 msgid "NON-INTERACTIVE EDITING"
25446 msgstr ""
25447
25448 # type: textblock
25449 #: ../tools/virt-edit.pl:270
25450 msgid ""
25451 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25452 "administrator can interactively edit the file."
25453 msgstr ""
25454
25455 # type: textblock
25456 #: ../tools/virt-edit.pl:273
25457 msgid ""
25458 "There are two ways also to use C<virt-edit> from scripts in order to make "
25459 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25460 "like this, it's less error-prone to write scripts directly using the "
25461 "libguestfs API and Augeas for configuration file editing.)"
25462 msgstr ""
25463
25464 # type: textblock
25465 #: ../tools/virt-edit.pl:279
25466 msgid ""
25467 "The first method is to temporarily set C<$EDITOR> to any script or program "
25468 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25469 "update C<tmpfile> in place however it likes."
25470 msgstr ""
25471
25472 # type: textblock
25473 #: ../tools/virt-edit.pl:283
25474 msgid ""
25475 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25476 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25477 "instances of C<foo> with C<bar> in a file:"
25478 msgstr ""
25479
25480 # type: verbatim
25481 #: ../tools/virt-edit.pl:287
25482 #, no-wrap
25483 msgid ""
25484 " virt-edit domname filename -e 's/foo/bar/'\n"
25485 "\n"
25486 msgstr ""
25487
25488 # type: textblock
25489 #: ../tools/virt-edit.pl:289
25490 msgid ""
25491 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25492 "For example to delete root's password you could do:"
25493 msgstr ""
25494
25495 # type: verbatim
25496 #: ../tools/virt-edit.pl:292
25497 #, no-wrap
25498 msgid ""
25499 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25500 "\n"
25501 msgstr ""
25502
25503 # type: textblock
25504 #: ../tools/virt-edit.pl:294
25505 msgid ""
25506 "What really happens is that the snippet is evaluated as a Perl expression "
25507 "for each line of the file.  The line, including the final C<\\n>, is passed "
25508 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25509 msgstr ""
25510
25511 # type: textblock
25512 #: ../tools/virt-edit.pl:299
25513 msgid ""
25514 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25515 "C<apache> user account from the password file you can do:"
25516 msgstr ""
25517
25518 # type: verbatim
25519 #: ../tools/virt-edit.pl:302
25520 #, no-wrap
25521 msgid ""
25522 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25523 "\n"
25524 msgstr ""
25525
25526 # type: textblock
25527 #: ../tools/virt-edit.pl:304
25528 msgid ""
25529 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25530 "the end of the file is rather difficult this way since there is no concept "
25531 "of \"last line of the file\" - your expression just doesn't get called "
25532 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25533 "want to do this."
25534 msgstr ""
25535
25536 # type: textblock
25537 #: ../tools/virt-edit.pl:310
25538 msgid ""
25539 "The variable C<$lineno> contains the current line number.  As is "
25540 "traditional, the first line in the file is number C<1>."
25541 msgstr ""
25542
25543 # type: textblock
25544 #: ../tools/virt-edit.pl:313
25545 msgid ""
25546 "The return value from the expression is ignored, but the expression may call "
25547 "C<die> in order to abort the whole program, leaving the original file "
25548 "untouched."
25549 msgstr ""
25550
25551 # type: textblock
25552 #: ../tools/virt-edit.pl:317
25553 msgid ""
25554 "Remember when matching the end of a line that C<$_> may contain the final "
25555 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25556 "newline then neither of these.  Thus to match or substitute some text at the "
25557 "end of a line, use this regular expression:"
25558 msgstr ""
25559
25560 # type: verbatim
25561 #: ../tools/virt-edit.pl:322
25562 #, no-wrap
25563 msgid ""
25564 " /some text(\\r?\\n)?$/\n"
25565 "\n"
25566 msgstr ""
25567
25568 # type: textblock
25569 #: ../tools/virt-edit.pl:324
25570 msgid ""
25571 "Alternately, use the perl C<chomp> function, being careful not to chomp "
25572 "C<$_> itself (since that would remove all newlines from the file):"
25573 msgstr ""
25574
25575 # type: verbatim
25576 #: ../tools/virt-edit.pl:328
25577 #, no-wrap
25578 msgid ""
25579 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25580 "\n"
25581 msgstr ""
25582
25583 # type: =item
25584 #: ../tools/virt-edit.pl:334
25585 msgid "C<EDITOR>"
25586 msgstr ""
25587
25588 # type: textblock
25589 #: ../tools/virt-edit.pl:336
25590 msgid ""
25591 "If set, this string is used as the editor.  It may contain arguments, "
25592 "eg. C<\"emacs -nw\">"
25593 msgstr ""
25594
25595 # type: textblock
25596 #: ../tools/virt-edit.pl:339
25597 msgid "If not set, C<vi> is used."
25598 msgstr ""
25599
25600 # type: textblock
25601 #: ../tools/virt-edit.pl:352
25602 msgid ""
25603 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25604 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
25605 "L<perl(1)>, L<perlre(1)>."
25606 msgstr ""
25607
25608 # type: =head1
25609 #: ../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
25610 msgid "AUTHOR"
25611 msgstr ""
25612
25613 # type: textblock
25614 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655 ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
25615 msgid "Copyright (C) 2009-2010 Red Hat Inc."
25616 msgstr ""
25617
25618 # type: textblock
25619 #: ../tools/virt-win-reg.pl:37
25620 msgid ""
25621 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
25622 "guest"
25623 msgstr ""
25624
25625 # type: verbatim
25626 #: ../tools/virt-win-reg.pl:41
25627 #, no-wrap
25628 msgid ""
25629 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25630 "\n"
25631 msgstr ""
25632
25633 # type: verbatim
25634 #: ../tools/virt-win-reg.pl:43
25635 #, no-wrap
25636 msgid ""
25637 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25638 "\n"
25639 msgstr ""
25640
25641 # type: verbatim
25642 #: ../tools/virt-win-reg.pl:45
25643 #, no-wrap
25644 msgid ""
25645 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25646 "\n"
25647 msgstr ""
25648
25649 # type: verbatim
25650 #: ../tools/virt-win-reg.pl:47
25651 #, no-wrap
25652 msgid ""
25653 " virt-win-reg --merge domname [input.reg ...]\n"
25654 "\n"
25655 msgstr ""
25656
25657 # type: verbatim
25658 #: ../tools/virt-win-reg.pl:49
25659 #, no-wrap
25660 msgid ""
25661 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25662 "\n"
25663 msgstr ""
25664
25665 # type: textblock
25666 #: ../tools/virt-win-reg.pl:53
25667 msgid ""
25668 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25669 "virtual machines.  If you do this, you I<will> get irreversible disk "
25670 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25671 "but doesn't catch all cases."
25672 msgstr ""
25673
25674 # type: textblock
25675 #: ../tools/virt-win-reg.pl:58
25676 msgid ""
25677 "Modifying the Windows Registry is an inherently risky operation.  The format "
25678 "is deliberately obscure and undocumented, and Registry changes can leave the "
25679 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25680 "you have a reliable backup first."
25681 msgstr ""
25682
25683 # type: textblock
25684 #: ../tools/virt-win-reg.pl:65
25685 msgid ""
25686 "This program can export and merge Windows Registry entries from a Windows "
25687 "guest."
25688 msgstr ""
25689
25690 # type: textblock
25691 #: ../tools/virt-win-reg.pl:68
25692 msgid ""
25693 "The first parameter is the libvirt guest name or the raw disk image of a "
25694 "Windows guest."
25695 msgstr ""
25696
25697 # type: textblock
25698 #: ../tools/virt-win-reg.pl:71
25699 msgid ""
25700 "If C<--merge> is I<not> specified, then the chosen registry key is "
25701 "displayed/exported (recursively).  For example:"
25702 msgstr ""
25703
25704 # type: verbatim
25705 #: ../tools/virt-win-reg.pl:74
25706 #, no-wrap
25707 msgid ""
25708 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25709 "\n"
25710 msgstr ""
25711
25712 # type: textblock
25713 #: ../tools/virt-win-reg.pl:76
25714 msgid "You can also display single values from within registry keys, for example:"
25715 msgstr ""
25716
25717 # type: verbatim
25718 #: ../tools/virt-win-reg.pl:79
25719 #, no-wrap
25720 msgid ""
25721 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25722 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25723 " Windows 7 Enterprise\n"
25724 "\n"
25725 msgstr ""
25726
25727 # type: textblock
25728 #: ../tools/virt-win-reg.pl:83
25729 msgid ""
25730 "With C<--merge>, you can merge a textual regedit file into the Windows "
25731 "Registry:"
25732 msgstr ""
25733
25734 # type: verbatim
25735 #: ../tools/virt-win-reg.pl:86
25736 #, no-wrap
25737 msgid ""
25738 " $ virt-win-reg --merge Windows7 changes.reg\n"
25739 "\n"
25740 msgstr ""
25741
25742 # type: =head2
25743 #: ../tools/virt-win-reg.pl:88
25744 msgid "SUPPORTED SYSTEMS"
25745 msgstr ""
25746
25747 # type: textblock
25748 #: ../tools/virt-win-reg.pl:90
25749 msgid ""
25750 "The program currently supports Windows NT-derived guests starting with "
25751 "Windows XP through to at least Windows 7."
25752 msgstr ""
25753
25754 # type: textblock
25755 #: ../tools/virt-win-reg.pl:93
25756 msgid ""
25757 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
25758 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
25759 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
25760 msgstr ""
25761
25762 # type: textblock
25763 #: ../tools/virt-win-reg.pl:97
25764 msgid ""
25765 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25766 "C<HKEY_USERS>."
25767 msgstr ""
25768
25769 # type: textblock
25770 #: ../tools/virt-win-reg.pl:100
25771 msgid ""
25772 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25773 "time."
25774 msgstr ""
25775
25776 # type: =head2
25777 #: ../tools/virt-win-reg.pl:103
25778 msgid "NOTE"
25779 msgstr ""
25780
25781 # type: textblock
25782 #: ../tools/virt-win-reg.pl:105
25783 msgid ""
25784 "This program is only meant for simple access to the registry.  If you want "
25785 "to do complicated things with the registry, we suggest you download the "
25786 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25787 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25788 "L<hivexregedit(1)>."
25789 msgstr ""
25790
25791 # type: =head2
25792 #: ../tools/virt-win-reg.pl:111
25793 msgid "ENCODING"
25794 msgstr ""
25795
25796 # type: textblock
25797 #: ../tools/virt-win-reg.pl:113
25798 msgid ""
25799 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25800 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
25801 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
25802 "with Windows-style line endings, you may need to reencode the whole file "
25803 "before or after processing."
25804 msgstr ""
25805
25806 # type: textblock
25807 #: ../tools/virt-win-reg.pl:119
25808 msgid ""
25809 "To reencode a file from Windows format to Linux (before processing it with "
25810 "the C<--merge> option), you would do something like this:"
25811 msgstr ""
25812
25813 # type: verbatim
25814 #: ../tools/virt-win-reg.pl:122
25815 #, no-wrap
25816 msgid ""
25817 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25818 "\n"
25819 msgstr ""
25820
25821 # type: textblock
25822 #: ../tools/virt-win-reg.pl:124
25823 msgid ""
25824 "To go in the opposite direction, after exporting and before sending the file "
25825 "to a Windows user, do something like this:"
25826 msgstr ""
25827
25828 # type: verbatim
25829 #: ../tools/virt-win-reg.pl:127
25830 #, no-wrap
25831 msgid ""
25832 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25833 "\n"
25834 msgstr ""
25835
25836 # type: textblock
25837 #: ../tools/virt-win-reg.pl:129
25838 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25839 msgstr ""
25840
25841 # type: textblock
25842 #: ../tools/virt-win-reg.pl:131
25843 msgid ""
25844 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25845 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
25846 "Windows-style (CRLF) line endings, like this:"
25847 msgstr ""
25848
25849 # type: verbatim
25850 #: ../tools/virt-win-reg.pl:135
25851 #, no-wrap
25852 msgid ""
25853 " $ file software.reg\n"
25854 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25855 " with CRLF line terminators\n"
25856 "\n"
25857 msgstr ""
25858
25859 # type: textblock
25860 #: ../tools/virt-win-reg.pl:139
25861 msgid "This file would need conversion before you could C<--merge> it."
25862 msgstr ""
25863
25864 # type: textblock
25865 #: ../tools/virt-win-reg.pl:143
25866 msgid ""
25867 "Be careful when passing parameters containing C<\\> (backslash) in the "
25868 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25869 "(but not both) to protect them from the shell."
25870 msgstr ""
25871
25872 # type: textblock
25873 #: ../tools/virt-win-reg.pl:147
25874 msgid "Paths and value names are case-insensitive."
25875 msgstr ""
25876
25877 # type: =head2
25878 #: ../tools/virt-win-reg.pl:149
25879 msgid "CurrentControlSet etc."
25880 msgstr ""
25881
25882 # type: textblock
25883 #: ../tools/virt-win-reg.pl:151
25884 msgid ""
25885 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25886 "Registry at the level of the hive file, and therefore you cannot modify "
25887 "these."
25888 msgstr ""
25889
25890 # type: textblock
25891 #: ../tools/virt-win-reg.pl:155
25892 msgid ""
25893 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25894 "circumstances it might refer to another control set.  The way to find out is "
25895 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25896 msgstr ""
25897
25898 # type: verbatim
25899 #: ../tools/virt-win-reg.pl:159
25900 #, no-wrap
25901 msgid ""
25902 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25903 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25904 " \"Current\"=dword:00000001\n"
25905 " \"Default\"=dword:00000001\n"
25906 " \"Failed\"=dword:00000000\n"
25907 " \"LastKnownGood\"=dword:00000002\n"
25908 "\n"
25909 msgstr ""
25910
25911 # type: textblock
25912 #: ../tools/virt-win-reg.pl:166
25913 msgid "\"Current\" is the one which Windows will choose when it boots."
25914 msgstr ""
25915
25916 # type: textblock
25917 #: ../tools/virt-win-reg.pl:168
25918 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
25919 msgstr ""
25920
25921 # type: =item
25922 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
25923 msgid "B<--debug>"
25924 msgstr ""
25925
25926 # type: textblock
25927 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
25928 msgid "Enable debugging messages."
25929 msgstr ""
25930
25931 # type: =item
25932 #: ../tools/virt-win-reg.pl:232
25933 msgid "B<--merge>"
25934 msgstr ""
25935
25936 # type: textblock
25937 #: ../tools/virt-win-reg.pl:234
25938 msgid ""
25939 "In merge mode, this merges a textual regedit file into the Windows Registry "
25940 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25941 "displays or exports Registry entries instead."
25942 msgstr ""
25943
25944 # type: textblock
25945 #: ../tools/virt-win-reg.pl:238
25946 msgid ""
25947 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25948 "result in disk corruption.  However exporting (without this flag)  is always "
25949 "safe."
25950 msgstr ""
25951
25952 # type: =item
25953 #: ../tools/virt-win-reg.pl:246
25954 msgid "B<--encoding> UTF-16LE|ASCII"
25955 msgstr ""
25956
25957 # type: textblock
25958 #: ../tools/virt-win-reg.pl:248
25959 msgid ""
25960 "When merging (only), you may need to specify the encoding for strings to be "
25961 "used in the hive file.  This is explained in detail in "
25962 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
25963 msgstr ""
25964
25965 # type: textblock
25966 #: ../tools/virt-win-reg.pl:252
25967 msgid ""
25968 "The default is to use UTF-16LE, which should work with recent versions of "
25969 "Windows."
25970 msgstr ""
25971
25972 # type: textblock
25973 #: ../tools/virt-win-reg.pl:486
25974 msgid ""
25975 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
25976 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25977 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
25978 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25979 msgstr ""
25980
25981 # type: textblock
25982 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
25983 msgid ""
25984 "When reporting bugs, please enable debugging and capture the I<complete> "
25985 "output:"
25986 msgstr ""
25987
25988 # type: verbatim
25989 #: ../tools/virt-win-reg.pl:504
25990 #, no-wrap
25991 msgid ""
25992 " export LIBGUESTFS_DEBUG=1\n"
25993 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25994 "\n"
25995 msgstr ""
25996
25997 # type: textblock
25998 #: ../tools/virt-win-reg.pl:507
25999 msgid ""
26000 "Attach /tmp/virt-win-reg.log to a new bug report at "
26001 "L<https://bugzilla.redhat.com/>"
26002 msgstr ""
26003
26004 # type: textblock
26005 #: ../tools/virt-df.pl:36
26006 msgid "virt-df - Display free space on virtual filesystems"
26007 msgstr ""
26008
26009 # type: verbatim
26010 #: ../tools/virt-df.pl:40
26011 #, no-wrap
26012 msgid ""
26013 " virt-df [--options]\n"
26014 "\n"
26015 msgstr ""
26016
26017 # type: verbatim
26018 #: ../tools/virt-df.pl:42
26019 #, no-wrap
26020 msgid ""
26021 " virt-df [--options] domname\n"
26022 "\n"
26023 msgstr ""
26024
26025 # type: verbatim
26026 #: ../tools/virt-df.pl:44
26027 #, no-wrap
26028 msgid ""
26029 " virt-df [--options] disk.img [disk.img ...]\n"
26030 "\n"
26031 msgstr ""
26032
26033 # type: textblock
26034 #: ../tools/virt-df.pl:48
26035 msgid ""
26036 "C<virt-df> is a command line tool to display free space on virtual machine "
26037 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26038 "space allocated to a virtual machine, but can look inside the virtual "
26039 "machine to see how much space is really being used."
26040 msgstr ""
26041
26042 # type: textblock
26043 #: ../tools/virt-df.pl:53
26044 msgid ""
26045 "It is like the L<df(1)> command, but for virtual machines, except that it "
26046 "also works for Windows virtual machines."
26047 msgstr ""
26048
26049 # type: textblock
26050 #: ../tools/virt-df.pl:56
26051 msgid ""
26052 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26053 "of all active and inactive guests, and performs a C<df>-type operation on "
26054 "each one in turn, printing out the results."
26055 msgstr ""
26056
26057 # type: textblock
26058 #: ../tools/virt-df.pl:60
26059 msgid ""
26060 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26061 "either the single named libvirt domain, or on the disk image(s) listed on "
26062 "the command line (which must all belong to a single VM).  In this mode (with "
26063 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26064 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26065 msgstr ""
26066
26067 # type: textblock
26068 #: ../tools/virt-df.pl:67
26069 msgid ""
26070 "Use the C<--csv> option to get a format which can be easily parsed by other "
26071 "programs.  Other options are mostly similar to standard C<df> options.  See "
26072 "below for the complete list."
26073 msgstr ""
26074
26075 # type: =item
26076 #: ../tools/virt-df.pl:107
26077 msgid "B<--csv>"
26078 msgstr ""
26079
26080 # type: textblock
26081 #: ../tools/virt-df.pl:109
26082 msgid ""
26083 "Write out the results in CSV format (comma-separated values).  This format "
26084 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26085 "ABOUT CSV FORMAT> below."
26086 msgstr ""
26087
26088 # type: =item
26089 #: ../tools/virt-df.pl:134
26090 msgid "B<--human-readable> | B<-h>"
26091 msgstr ""
26092
26093 # type: textblock
26094 #: ../tools/virt-df.pl:136
26095 msgid "Print sizes in human-readable format."
26096 msgstr ""
26097
26098 # type: textblock
26099 #: ../tools/virt-df.pl:138
26100 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26101 msgstr ""
26102
26103 # type: =item
26104 #: ../tools/virt-df.pl:144
26105 msgid "B<--inodes> | B<-i>"
26106 msgstr ""
26107
26108 # type: textblock
26109 #: ../tools/virt-df.pl:146
26110 msgid "Print inodes instead of blocks."
26111 msgstr ""
26112
26113 # type: =item
26114 #: ../tools/virt-df.pl:152
26115 msgid "B<--one-per-guest>"
26116 msgstr ""
26117
26118 # type: textblock
26119 #: ../tools/virt-df.pl:154
26120 msgid ""
26121 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
26122 "disks from several guests to a single libguestfs appliance."
26123 msgstr ""
26124
26125 # type: textblock
26126 #: ../tools/virt-df.pl:157
26127 msgid "You might use this option in the following circumstances:"
26128 msgstr ""
26129
26130 # type: textblock
26131 #: ../tools/virt-df.pl:163
26132 msgid ""
26133 "If you think an untrusted guest might actively try to exploit the libguestfs "
26134 "appliance kernel, then this prevents one guest from interfering with the "
26135 "stats printed for another guest."
26136 msgstr ""
26137
26138 # type: textblock
26139 #: ../tools/virt-df.pl:169
26140 msgid ""
26141 "If the kernel has a bug which stops it from accessing a filesystem in one "
26142 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
26143 "and report stats for further guests."
26144 msgstr ""
26145
26146 # type: =item
26147 #: ../tools/virt-df.pl:180
26148 msgid "B<--uuid>"
26149 msgstr ""
26150
26151 # type: textblock
26152 #: ../tools/virt-df.pl:182
26153 msgid ""
26154 "Print UUIDs instead of names.  This is useful for following a guest even "
26155 "when the guest is migrated or renamed, or when two guests happen to have the "
26156 "same name."
26157 msgstr ""
26158
26159 # type: textblock
26160 #: ../tools/virt-df.pl:186
26161 msgid ""
26162 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
26163 "images, we still print the disk image name even when this option is "
26164 "specified."
26165 msgstr ""
26166
26167 # type: =head1
26168 #: ../tools/virt-df.pl:609
26169 msgid "NOTE ABOUT CSV FORMAT"
26170 msgstr ""
26171
26172 # type: textblock
26173 #: ../tools/virt-df.pl:611
26174 msgid ""
26175 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
26176 "should be easy to parse, but it is definitely not easy to parse."
26177 msgstr ""
26178
26179 # type: textblock
26180 #: ../tools/virt-df.pl:614
26181 msgid ""
26182 "Myth: Just split fields at commas.  Reality: This does I<not> work "
26183 "reliably.  This example has two columns:"
26184 msgstr ""
26185
26186 # type: verbatim
26187 #: ../tools/virt-df.pl:617
26188 #, no-wrap
26189 msgid ""
26190 " \"foo,bar\",baz\n"
26191 "\n"
26192 msgstr ""
26193
26194 # type: textblock
26195 #: ../tools/virt-df.pl:619
26196 msgid ""
26197 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
26198 "reliably.  This example has one row:"
26199 msgstr ""
26200
26201 # type: verbatim
26202 #: ../tools/virt-df.pl:622
26203 #, no-wrap
26204 msgid ""
26205 " \"foo\n"
26206 " bar\",baz\n"
26207 "\n"
26208 msgstr ""
26209
26210 # type: textblock
26211 #: ../tools/virt-df.pl:625
26212 msgid ""
26213 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
26214 "packaged in major Linux distributions)."
26215 msgstr ""
26216
26217 # type: textblock
26218 #: ../tools/virt-df.pl:628
26219 msgid ""
26220 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
26221 "or Python's built-in csv library)."
26222 msgstr ""
26223
26224 # type: textblock
26225 #: ../tools/virt-df.pl:631
26226 msgid "Most spreadsheets and databases can import CSV directly."
26227 msgstr ""
26228
26229 # type: textblock
26230 #: ../tools/virt-df.pl:642
26231 msgid ""
26232 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26233 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26234 msgstr ""
26235
26236 # type: textblock
26237 #: ../tools/virt-ls.pl:34
26238 msgid "virt-ls - List files in a virtual machine"
26239 msgstr ""
26240
26241 # type: verbatim
26242 #: ../tools/virt-ls.pl:38
26243 #, no-wrap
26244 msgid ""
26245 " virt-ls [--options] domname directory\n"
26246 "\n"
26247 msgstr ""
26248
26249 # type: verbatim
26250 #: ../tools/virt-ls.pl:40
26251 #, no-wrap
26252 msgid ""
26253 " virt-ls [--options] disk.img [disk.img ...] directory\n"
26254 "\n"
26255 msgstr ""
26256
26257 # type: textblock
26258 #: ../tools/virt-ls.pl:44
26259 msgid ""
26260 "C<virt-ls> is a command line tool to list the names of files in a directory "
26261 "inside a virtual machine or disk image."
26262 msgstr ""
26263
26264 # type: textblock
26265 #: ../tools/virt-ls.pl:47
26266 msgid ""
26267 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
26268 "For more complex cases you should look at the L<guestfish(1)> tool."
26269 msgstr ""
26270
26271 # type: textblock
26272 #: ../tools/virt-ls.pl:51
26273 msgid ""
26274 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
26275 "simple listing is like the ordinary L<ls(1)> command:"
26276 msgstr ""
26277
26278 # type: verbatim
26279 #: ../tools/virt-ls.pl:54
26280 #, no-wrap
26281 msgid ""
26282 " $ virt-ls myguest /\n"
26283 " bin\n"
26284 " boot\n"
26285 " [etc.]\n"
26286 "\n"
26287 msgstr ""
26288
26289 # type: textblock
26290 #: ../tools/virt-ls.pl:59
26291 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
26292 msgstr ""
26293
26294 # type: verbatim
26295 #: ../tools/virt-ls.pl:61
26296 #, no-wrap
26297 msgid ""
26298 " $ virt-ls -l myguest /\n"
26299 " total 204\n"
26300 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
26301 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
26302 " [etc.]\n"
26303 "\n"
26304 msgstr ""
26305
26306 # type: textblock
26307 #: ../tools/virt-ls.pl:67
26308 msgid ""
26309 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
26310 "and directories recursively:"
26311 msgstr ""
26312
26313 # type: verbatim
26314 #: ../tools/virt-ls.pl:70
26315 #, no-wrap
26316 msgid ""
26317 " $ virt-ls -R myguest /tmp\n"
26318 " foo\n"
26319 " foo/bar\n"
26320 " [etc.]\n"
26321 "\n"
26322 msgstr ""
26323
26324 # type: textblock
26325 #: ../tools/virt-ls.pl:75
26326 msgid ""
26327 "You I<cannot> combine these options.  To do more complicated things, use "
26328 "L<guestfish(1)>."
26329 msgstr ""
26330
26331 # type: =item
26332 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103 ../tools/virt-list-partitions.pl:112
26333 msgid "B<-l> | B<--long>"
26334 msgstr ""
26335
26336 # type: =item
26337 #: ../tools/virt-ls.pl:133
26338 msgid "B<-R> | B<--recursive>"
26339 msgstr ""
26340
26341 # type: textblock
26342 #: ../tools/virt-ls.pl:135
26343 msgid ""
26344 "Select the mode.  With neither of these options, C<virt-ls> produces a "
26345 "simple, flat list of the files in the named directory."
26346 msgstr ""
26347
26348 # type: textblock
26349 #: ../tools/virt-ls.pl:138
26350 msgid ""
26351 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26352 "like the plain C<ls -l> command)."
26353 msgstr ""
26354
26355 # type: textblock
26356 #: ../tools/virt-ls.pl:141
26357 msgid ""
26358 "C<virt-ls -R> produces a recursive list of files starting at the named "
26359 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26360 "details."
26361 msgstr ""
26362
26363 # type: textblock
26364 #: ../tools/virt-ls.pl:145
26365 msgid "You cannot combine these options."
26366 msgstr ""
26367
26368 # type: textblock
26369 #: ../tools/virt-ls.pl:234
26370 msgid ""
26371 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
26372 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
26373 "L<http://libguestfs.org/>."
26374 msgstr ""
26375
26376 # type: textblock
26377 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:298
26378 msgid "Copyright (C) 2009 Red Hat Inc."
26379 msgstr ""
26380
26381 # type: textblock
26382 #: ../tools/virt-resize.pl:42
26383 msgid "virt-resize - Resize a virtual machine disk"
26384 msgstr ""
26385
26386 # type: verbatim
26387 #: ../tools/virt-resize.pl:46
26388 #, no-wrap
26389 msgid ""
26390 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26391 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26392 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26393 "\n"
26394 msgstr ""
26395
26396 # type: textblock
26397 #: ../tools/virt-resize.pl:52
26398 msgid ""
26399 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26400 "larger or smaller overall, and resizing or deleting any partitions contained "
26401 "within."
26402 msgstr ""
26403
26404 # type: textblock
26405 #: ../tools/virt-resize.pl:56
26406 msgid ""
26407 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26408 "not> be used on live virtual machines - for consistent results, shut the "
26409 "virtual machine down before resizing it."
26410 msgstr ""
26411
26412 # type: textblock
26413 #: ../tools/virt-resize.pl:60
26414 msgid ""
26415 "If you are not familiar with the associated tools: "
26416 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
26417 "we recommend you go and read those manual pages first."
26418 msgstr ""
26419
26420 # type: textblock
26421 #: ../tools/virt-resize.pl:68
26422 msgid ""
26423 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26424 "fill the extra 5GB of space."
26425 msgstr ""
26426
26427 # type: verbatim
26428 #: ../tools/virt-resize.pl:71
26429 #, no-wrap
26430 msgid ""
26431 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26432 " virt-list-partitions -lht olddisk\n"
26433 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26434 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26435 "\n"
26436 msgstr ""
26437
26438 # type: textblock
26439 #: ../tools/virt-resize.pl:76
26440 msgid ""
26441 "As above, but make the /boot partition 200MB bigger, while giving the "
26442 "remaining space to /dev/sda2:"
26443 msgstr ""
26444
26445 # type: verbatim
26446 #: ../tools/virt-resize.pl:79
26447 #, no-wrap
26448 msgid ""
26449 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26450 "\n"
26451 msgstr ""
26452
26453 # type: textblock
26454 #: ../tools/virt-resize.pl:81
26455 msgid "As above, but the output format will be uncompressed qcow2:"
26456 msgstr ""
26457
26458 # type: verbatim
26459 #: ../tools/virt-resize.pl:83
26460 #, no-wrap
26461 msgid ""
26462 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26463 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26464 "\n"
26465 msgstr ""
26466
26467 # type: =head1
26468 #: ../tools/virt-resize.pl:86
26469 msgid "DETAILED USAGE"
26470 msgstr ""
26471
26472 # type: =head2
26473 #: ../tools/virt-resize.pl:88
26474 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26475 msgstr ""
26476
26477 # type: =item
26478 #: ../tools/virt-resize.pl:92
26479 msgid "1. Shut down the virtual machine"
26480 msgstr ""
26481
26482 # type: =item
26483 #: ../tools/virt-resize.pl:94
26484 msgid "2. Locate input disk image"
26485 msgstr ""
26486
26487 # type: textblock
26488 #: ../tools/virt-resize.pl:96
26489 msgid ""
26490 "Locate the input disk image (ie. the file or device on the host containing "
26491 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26492 "dumpxml> like this to find the disk image name:"
26493 msgstr ""
26494
26495 # type: verbatim
26496 #: ../tools/virt-resize.pl:100
26497 #, no-wrap
26498 msgid ""
26499 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26500 " Found 1 nodes:\n"
26501 " -- NODE --\n"
26502 " <source dev=\"/dev/vg/lv_guest\" />\n"
26503 "\n"
26504 msgstr ""
26505
26506 # type: =item
26507 #: ../tools/virt-resize.pl:105
26508 msgid "3. Look at current sizing"
26509 msgstr ""
26510
26511 # type: textblock
26512 #: ../tools/virt-resize.pl:107
26513 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
26514 msgstr ""
26515
26516 # type: verbatim
26517 #: ../tools/virt-resize.pl:110
26518 #, no-wrap
26519 msgid ""
26520 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
26521 " /dev/sda1 ext3 101.9M\n"
26522 " /dev/sda2 pv 7.9G\n"
26523 " /dev/sda device 8.0G\n"
26524 "\n"
26525 msgstr ""
26526
26527 # type: textblock
26528 #: ../tools/virt-resize.pl:115
26529 msgid ""
26530 "(This example is a virtual machine with an 8 GB disk which we would like to "
26531 "expand up to 10 GB)."
26532 msgstr ""
26533
26534 # type: =item
26535 #: ../tools/virt-resize.pl:118
26536 msgid "4. Create output disk"
26537 msgstr ""
26538
26539 # type: textblock
26540 #: ../tools/virt-resize.pl:120
26541 msgid ""
26542 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26543 "to store the resized output disk."
26544 msgstr ""
26545
26546 # type: textblock
26547 #: ../tools/virt-resize.pl:123
26548 msgid "To store the resized disk image in a file, create a file of a suitable size:"
26549 msgstr ""
26550
26551 # type: verbatim
26552 #: ../tools/virt-resize.pl:126
26553 #, no-wrap
26554 msgid ""
26555 " # rm -f outdisk\n"
26556 " # truncate -s 10G outdisk\n"
26557 "\n"
26558 msgstr ""
26559
26560 # type: textblock
26561 #: ../tools/virt-resize.pl:129
26562 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26563 msgstr ""
26564
26565 # type: verbatim
26566 #: ../tools/virt-resize.pl:131
26567 #, no-wrap
26568 msgid ""
26569 " # lvcreate -L 10G -n lv_name vg_name\n"
26570 "\n"
26571 msgstr ""
26572
26573 # type: textblock
26574 #: ../tools/virt-resize.pl:133
26575 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26576 msgstr ""
26577
26578 # type: verbatim
26579 #: ../tools/virt-resize.pl:135
26580 #, no-wrap
26581 msgid ""
26582 " # virsh pool-list\n"
26583 " # virsh vol-create-as poolname newvol 10G\n"
26584 "\n"
26585 msgstr ""
26586
26587 # type: =item
26588 #: ../tools/virt-resize.pl:138
26589 msgid "5. Resize"
26590 msgstr ""
26591
26592 # type: textblock
26593 #: ../tools/virt-resize.pl:140
26594 msgid ""
26595 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26596 "file) and the output disk.  The output disk is the one created in the "
26597 "previous step."
26598 msgstr ""
26599
26600 # type: verbatim
26601 #: ../tools/virt-resize.pl:144
26602 #, no-wrap
26603 msgid ""
26604 " # virt-resize indisk outdisk\n"
26605 "\n"
26606 msgstr ""
26607
26608 # type: textblock
26609 #: ../tools/virt-resize.pl:146
26610 msgid ""
26611 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26612 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26613 "larger, then an extra, empty partition is created at the end of the disk "
26614 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26615 "error."
26616 msgstr ""
26617
26618 # type: textblock
26619 #: ../tools/virt-resize.pl:152
26620 msgid ""
26621 "More realistically you'd want to expand existing partitions in the disk "
26622 "image by passing extra options (for the full list see the L</OPTIONS> "
26623 "section below)."
26624 msgstr ""
26625
26626 # type: textblock
26627 #: ../tools/virt-resize.pl:156
26628 msgid ""
26629 "L</--expand> is the most useful option.  It expands the named partition "
26630 "within the disk to fill any extra space:"
26631 msgstr ""
26632
26633 # type: verbatim
26634 #: ../tools/virt-resize.pl:159
26635 #, no-wrap
26636 msgid ""
26637 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26638 "\n"
26639 msgstr ""
26640
26641 # type: textblock
26642 #: ../tools/virt-resize.pl:161
26643 msgid ""
26644 "(In this case, an extra partition is I<not> created at the end of the disk, "
26645 "because there will be no unused space)."
26646 msgstr ""
26647
26648 # type: textblock
26649 #: ../tools/virt-resize.pl:164
26650 msgid ""
26651 "L</--resize> is the other commonly used option.  The following would "
26652 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26653 "rest of the available space:"
26654 msgstr ""
26655
26656 # type: verbatim
26657 #: ../tools/virt-resize.pl:168
26658 #, no-wrap
26659 msgid ""
26660 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26661 "     indisk outdisk\n"
26662 "\n"
26663 msgstr ""
26664
26665 # type: textblock
26666 #: ../tools/virt-resize.pl:171
26667 msgid ""
26668 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26669 "if virt-resize knows how, it will resize the contents, the equivalent of "
26670 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
26671 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
26672 "filesystems, so you would have to online resize them after booting the "
26673 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
26674 "just resizes the PV itself and leaves the user to resize any LVs inside that "
26675 "PV as desired."
26676 msgstr ""
26677
26678 # type: textblock
26679 #: ../tools/virt-resize.pl:180
26680 msgid "Other options are covered below."
26681 msgstr ""
26682
26683 # type: =item
26684 #: ../tools/virt-resize.pl:182
26685 msgid "6. Test"
26686 msgstr ""
26687
26688 # type: textblock
26689 #: ../tools/virt-resize.pl:184
26690 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26691 msgstr ""
26692
26693 # type: textblock
26694 #: ../tools/virt-resize.pl:186
26695 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26696 msgstr ""
26697
26698 # type: verbatim
26699 #: ../tools/virt-resize.pl:188
26700 #, no-wrap
26701 msgid ""
26702 " # virsh edit guestname\n"
26703 "\n"
26704 msgstr ""
26705
26706 # type: textblock
26707 #: ../tools/virt-resize.pl:190
26708 msgid ""
26709 "Change E<lt>source ...E<gt>, see "
26710 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
26711 msgstr ""
26712
26713 # type: textblock
26714 #: ../tools/virt-resize.pl:193
26715 msgid "Then start up the domain with the new, resized disk:"
26716 msgstr ""
26717
26718 # type: verbatim
26719 #: ../tools/virt-resize.pl:195
26720 #, no-wrap
26721 msgid ""
26722 " # virsh start guestname\n"
26723 "\n"
26724 msgstr ""
26725
26726 # type: textblock
26727 #: ../tools/virt-resize.pl:197
26728 msgid ""
26729 "and check that it still works.  See also the L</NOTES> section below for "
26730 "additional information."
26731 msgstr ""
26732
26733 # type: =item
26734 #: ../tools/virt-resize.pl:200
26735 msgid "7. Resize LVs etc inside the guest"
26736 msgstr ""
26737
26738 # type: textblock
26739 #: ../tools/virt-resize.pl:202
26740 msgid "(This can also be done offline using L<guestfish(1)>)"
26741 msgstr ""
26742
26743 # type: textblock
26744 #: ../tools/virt-resize.pl:204
26745 msgid ""
26746 "Once the guest has booted you should see the new space available, at least "
26747 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26748 "may need to resize LVs inside PVs, and also resize filesystem types that "
26749 "virt-resize does not know how to expand."
26750 msgstr ""
26751
26752 # type: =head2
26753 #: ../tools/virt-resize.pl:211
26754 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26755 msgstr ""
26756
26757 # type: textblock
26758 #: ../tools/virt-resize.pl:213
26759 msgid ""
26760 "Shrinking is somewhat more complex than expanding, and only an overview is "
26761 "given here."
26762 msgstr ""
26763
26764 # type: textblock
26765 #: ../tools/virt-resize.pl:216
26766 msgid ""
26767 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26768 "filesystems).  The user has to shrink content before passing the disk image "
26769 "to virt-resize, and virt-resize will check that the content has been shrunk "
26770 "properly."
26771 msgstr ""
26772
26773 # type: textblock
26774 #: ../tools/virt-resize.pl:221
26775 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26776 msgstr ""
26777
26778 # type: textblock
26779 #: ../tools/virt-resize.pl:223
26780 msgid ""
26781 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26782 "steps 3 and 4 above to allocate a new disk image."
26783 msgstr ""
26784
26785 # type: textblock
26786 #: ../tools/virt-resize.pl:226
26787 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26788 msgstr ""
26789
26790 # type: =head2
26791 #: ../tools/virt-resize.pl:229
26792 msgid "IGNORING OR DELETING PARTITIONS"
26793 msgstr ""
26794
26795 # type: textblock
26796 #: ../tools/virt-resize.pl:231
26797 msgid ""
26798 "virt-resize also gives a convenient way to ignore or delete partitions when "
26799 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26800 "up the copy where you don't care about the existing contents of a "
26801 "partition.  Deleting a partition removes it completely, but note that it "
26802 "also renumbers any partitions after the one which is deleted, which can "
26803 "leave some guests unbootable."
26804 msgstr ""
26805
26806 # type: =head2
26807 #: ../tools/virt-resize.pl:238
26808 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26809 msgstr ""
26810
26811 # type: textblock
26812 #: ../tools/virt-resize.pl:240
26813 msgid ""
26814 "If the input disk is in qcow2 format, then you may prefer that the output is "
26815 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26816 "the fly.  The output format is simply determined by the format of the empty "
26817 "output container that you provide.  Thus to create qcow2 output, use:"
26818 msgstr ""
26819
26820 # type: verbatim
26821 #: ../tools/virt-resize.pl:246
26822 #, no-wrap
26823 msgid ""
26824 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26825 "\n"
26826 msgstr ""
26827
26828 # type: textblock
26829 #: ../tools/virt-resize.pl:248
26830 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26831 msgstr ""
26832
26833 # type: textblock
26834 #: ../tools/virt-resize.pl:250
26835 msgid "Similarly, to get non-sparse raw output use:"
26836 msgstr ""
26837
26838 # type: verbatim
26839 #: ../tools/virt-resize.pl:252
26840 #, no-wrap
26841 msgid ""
26842 " fallocate -l size outdisk\n"
26843 "\n"
26844 msgstr ""
26845
26846 # type: textblock
26847 #: ../tools/virt-resize.pl:254
26848 msgid ""
26849 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
26850 "if=/dev/zero of=outdisk bs=1M count=..>)"
26851 msgstr ""
26852
26853 # type: textblock
26854 #: ../tools/virt-resize.pl:267
26855 msgid "Display help."
26856 msgstr ""
26857
26858 # type: =item
26859 #: ../tools/virt-resize.pl:281
26860 msgid "B<--resize part=size>"
26861 msgstr ""
26862
26863 # type: textblock
26864 #: ../tools/virt-resize.pl:283
26865 msgid ""
26866 "Resize the named partition (expanding or shrinking it) so that it has the "
26867 "given size."
26868 msgstr ""
26869
26870 # type: textblock
26871 #: ../tools/virt-resize.pl:286
26872 msgid ""
26873 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26874 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26875 "Exabytes; or as a percentage of the current size; or as a relative number or "
26876 "percentage.  For example:"
26877 msgstr ""
26878
26879 # type: verbatim
26880 #: ../tools/virt-resize.pl:291
26881 #, no-wrap
26882 msgid ""
26883 " --resize /dev/sda2=10G\n"
26884 "\n"
26885 msgstr ""
26886
26887 # type: verbatim
26888 #: ../tools/virt-resize.pl:293
26889 #, no-wrap
26890 msgid ""
26891 " --resize /dev/sda4=90%\n"
26892 "\n"
26893 msgstr ""
26894
26895 # type: verbatim
26896 #: ../tools/virt-resize.pl:295
26897 #, no-wrap
26898 msgid ""
26899 " --resize /dev/sda2=+1G\n"
26900 "\n"
26901 msgstr ""
26902
26903 # type: verbatim
26904 #: ../tools/virt-resize.pl:297
26905 #, no-wrap
26906 msgid ""
26907 " --resize /dev/sda2=-200M\n"
26908 "\n"
26909 msgstr ""
26910
26911 # type: verbatim
26912 #: ../tools/virt-resize.pl:299
26913 #, no-wrap
26914 msgid ""
26915 " --resize /dev/sda1=+128K\n"
26916 "\n"
26917 msgstr ""
26918
26919 # type: verbatim
26920 #: ../tools/virt-resize.pl:301
26921 #, no-wrap
26922 msgid ""
26923 " --resize /dev/sda1=+10%\n"
26924 "\n"
26925 msgstr ""
26926
26927 # type: verbatim
26928 #: ../tools/virt-resize.pl:303
26929 #, no-wrap
26930 msgid ""
26931 " --resize /dev/sda1=-10%\n"
26932 "\n"
26933 msgstr ""
26934
26935 # type: textblock
26936 #: ../tools/virt-resize.pl:305
26937 msgid ""
26938 "You can increase the size of any partition.  Virt-resize will expand the "
26939 "direct content of the partition if it knows how (see C<--expand> below)."
26940 msgstr ""
26941
26942 # type: textblock
26943 #: ../tools/virt-resize.pl:309
26944 msgid ""
26945 "You can only I<decrease> the size of partitions that contain filesystems or "
26946 "PVs which have already been shrunk.  Virt-resize will check this has been "
26947 "done before proceeding, or else will print an error (see also "
26948 "C<--resize-force>)."
26949 msgstr ""
26950
26951 # type: textblock
26952 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
26953 msgid "You can give this option multiple times."
26954 msgstr ""
26955
26956 # type: =item
26957 #: ../tools/virt-resize.pl:320
26958 msgid "B<--resize-force part=size>"
26959 msgstr ""
26960
26961 # type: textblock
26962 #: ../tools/virt-resize.pl:322
26963 msgid ""
26964 "This is the same as C<--resize> except that it will let you decrease the "
26965 "size of any partition.  Generally this means you will lose any data which "
26966 "was at the end of the partition you shrink, but you may not care about that "
26967 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26968 "as a swap partition)."
26969 msgstr ""
26970
26971 # type: textblock
26972 #: ../tools/virt-resize.pl:328
26973 msgid "See also the C<--ignore> option."
26974 msgstr ""
26975
26976 # type: =item
26977 #: ../tools/virt-resize.pl:334
26978 msgid "B<--expand part>"
26979 msgstr ""
26980
26981 # type: textblock
26982 #: ../tools/virt-resize.pl:336
26983 msgid ""
26984 "Expand the named partition so it uses up all extra space (space left over "
26985 "after any other resize changes that you request have been done)."
26986 msgstr ""
26987
26988 # type: textblock
26989 #: ../tools/virt-resize.pl:339
26990 msgid ""
26991 "If virt-resize knows how, it will expand the direct content of the "
26992 "partition.  For example, if the partition is an LVM PV, it will expand the "
26993 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26994 "content it doesn't know about alone."
26995 msgstr ""
26996
26997 # type: textblock
26998 #: ../tools/virt-resize.pl:344
26999 msgid "Currently virt-resize can resize:"
27000 msgstr ""
27001
27002 # type: textblock
27003 #: ../tools/virt-resize.pl:350
27004 msgid ""
27005 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27006 "partition."
27007 msgstr ""
27008
27009 # type: textblock
27010 #: ../tools/virt-resize.pl:355
27011 msgid ""
27012 "NTFS filesystems contained directly in a partition, if libguestfs was "
27013 "compiled with support for NTFS."
27014 msgstr ""
27015
27016 # type: textblock
27017 #: ../tools/virt-resize.pl:358
27018 msgid ""
27019 "The filesystem must have been shut down consistently last time it was used.  "
27020 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27021 "consistency check, so at the first boot after resizing Windows will check "
27022 "the disk."
27023 msgstr ""
27024
27025 # type: textblock
27026 #: ../tools/virt-resize.pl:365
27027 msgid ""
27028 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27029 "inside the PV.  The user will have to resize LVs as desired."
27030 msgstr ""
27031
27032 # type: textblock
27033 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
27034 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27035 msgstr ""
27036
27037 # type: =item
27038 #: ../tools/virt-resize.pl:377
27039 msgid "B<--shrink part>"
27040 msgstr ""
27041
27042 # type: textblock
27043 #: ../tools/virt-resize.pl:379
27044 msgid ""
27045 "Shrink the named partition until the overall disk image fits in the "
27046 "destination.  The named partition B<must> contain a filesystem or PV which "
27047 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27048 "online tools).  Virt-resize will check this and give an error if it has not "
27049 "been done."
27050 msgstr ""
27051
27052 # type: textblock
27053 #: ../tools/virt-resize.pl:385
27054 msgid ""
27055 "The amount by which the overall disk must be shrunk (after carrying out all "
27056 "other operations requested by the user) is called the \"deficit\".  For "
27057 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27058 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27059 "would give an error unless the user specified a partition to shrink and that "
27060 "partition had more than a gigabyte of free space."
27061 msgstr ""
27062
27063 # type: =item
27064 #: ../tools/virt-resize.pl:399
27065 msgid "B<--ignore part>"
27066 msgstr ""
27067
27068 # type: textblock
27069 #: ../tools/virt-resize.pl:401
27070 msgid ""
27071 "Ignore the named partition.  Effectively this means the partition is "
27072 "allocated on the destination disk, but the content is not copied across from "
27073 "the source disk.  The content of the partition will be blank (all zero "
27074 "bytes)."
27075 msgstr ""
27076
27077 # type: =item
27078 #: ../tools/virt-resize.pl:412
27079 msgid "B<--delete part>"
27080 msgstr ""
27081
27082 # type: textblock
27083 #: ../tools/virt-resize.pl:414
27084 msgid ""
27085 "Delete the named partition.  It would be more accurate to describe this as "
27086 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27087 "the original disk image is left intact."
27088 msgstr ""
27089
27090 # type: textblock
27091 #: ../tools/virt-resize.pl:418
27092 msgid ""
27093 "Note that when you delete a partition, then anything contained in the "
27094 "partition is also deleted.  Furthermore, this causes any partitions that "
27095 "come after to be I<renumbered>, which can easily make your guest unbootable."
27096 msgstr ""
27097
27098 # type: =item
27099 #: ../tools/virt-resize.pl:429
27100 msgid "B<--LV-expand logvol>"
27101 msgstr ""
27102
27103 # type: textblock
27104 #: ../tools/virt-resize.pl:431
27105 msgid ""
27106 "This takes the logical volume and, as a final step, expands it to fill all "
27107 "the space available in its volume group.  A typical usage, assuming a Linux "
27108 "guest with a single PV C</dev/sda2> and a root device called "
27109 "C</dev/vg_guest/lv_root> would be:"
27110 msgstr ""
27111
27112 # type: verbatim
27113 #: ../tools/virt-resize.pl:436
27114 #, no-wrap
27115 msgid ""
27116 " virt-resize indisk outdisk \\\n"
27117 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27118 "\n"
27119 msgstr ""
27120
27121 # type: textblock
27122 #: ../tools/virt-resize.pl:439
27123 msgid ""
27124 "This would first expand the partition (and PV), and then expand the root "
27125 "device to fill the extra space in the PV."
27126 msgstr ""
27127
27128 # type: textblock
27129 #: ../tools/virt-resize.pl:442
27130 msgid ""
27131 "The contents of the LV are also resized if virt-resize knows how to do "
27132 "that.  You can stop virt-resize from trying to expand the content by using "
27133 "the option C<--no-expand-content>."
27134 msgstr ""
27135
27136 # type: textblock
27137 #: ../tools/virt-resize.pl:446
27138 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
27139 msgstr ""
27140
27141 # type: textblock
27142 #: ../tools/virt-resize.pl:449
27143 msgid ""
27144 "You can give this option multiple times, I<but> it doesn't make sense to do "
27145 "this unless the logical volumes you specify are all in different volume "
27146 "groups."
27147 msgstr ""
27148
27149 # type: =item
27150 #: ../tools/virt-resize.pl:457
27151 msgid "B<--no-copy-boot-loader>"
27152 msgstr ""
27153
27154 # type: textblock
27155 #: ../tools/virt-resize.pl:459
27156 msgid ""
27157 "By default, virt-resize copies over some sectors at the start of the disk "
27158 "(up to the beginning of the first partition).  Commonly these sectors "
27159 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27160 "in order for the guest to boot correctly."
27161 msgstr ""
27162
27163 # type: textblock
27164 #: ../tools/virt-resize.pl:464
27165 msgid ""
27166 "If you specify this flag, then this initial copy is not done.  You may need "
27167 "to reinstall the boot loader in this case."
27168 msgstr ""
27169
27170 # type: =item
27171 #: ../tools/virt-resize.pl:472
27172 msgid "B<--no-extra-partition>"
27173 msgstr ""
27174
27175 # type: textblock
27176 #: ../tools/virt-resize.pl:474
27177 msgid ""
27178 "By default, virt-resize creates an extra partition if there is any extra, "
27179 "unused space after all resizing has happened.  Use this option to prevent "
27180 "the extra partition from being created.  If you do this then the extra space "
27181 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27182 "tool in the guest."
27183 msgstr ""
27184
27185 # type: textblock
27186 #: ../tools/virt-resize.pl:480
27187 msgid ""
27188 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27189 "will be created."
27190 msgstr ""
27191
27192 # type: =item
27193 #: ../tools/virt-resize.pl:487
27194 msgid "B<--no-expand-content>"
27195 msgstr ""
27196
27197 # type: textblock
27198 #: ../tools/virt-resize.pl:489
27199 msgid ""
27200 "By default, virt-resize will try to expand the direct contents of "
27201 "partitions, if it knows how (see C<--expand> option above)."
27202 msgstr ""
27203
27204 # type: textblock
27205 #: ../tools/virt-resize.pl:492
27206 msgid ""
27207 "If you give the C<--no-expand-content> option then virt-resize will not "
27208 "attempt this."
27209 msgstr ""
27210
27211 # type: =item
27212 #: ../tools/virt-resize.pl:499
27213 msgid "B<-d> | B<--debug>"
27214 msgstr ""
27215
27216 # type: =item
27217 #: ../tools/virt-resize.pl:507
27218 msgid "B<-n> | B<--dryrun>"
27219 msgstr ""
27220
27221 # type: textblock
27222 #: ../tools/virt-resize.pl:509
27223 msgid "Print a summary of what would be done, but don't do anything."
27224 msgstr ""
27225
27226 # type: =item
27227 #: ../tools/virt-resize.pl:515
27228 msgid "B<-q> | B<--quiet>"
27229 msgstr ""
27230
27231 # type: textblock
27232 #: ../tools/virt-resize.pl:517
27233 msgid "Don't print the summary."
27234 msgstr ""
27235
27236 # type: textblock
27237 #: ../tools/virt-resize.pl:525
27238 msgid ""
27239 "Specify the format of the input disk image.  If this flag is not given then "
27240 "it is auto-detected from the image itself."
27241 msgstr ""
27242
27243 # type: textblock
27244 #: ../tools/virt-resize.pl:531
27245 msgid ""
27246 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27247 "AND NON-SPARSE RAW FORMATS>."
27248 msgstr ""
27249
27250 # type: =item
27251 #: ../tools/virt-resize.pl:538
27252 msgid "B<--output-format> raw"
27253 msgstr ""
27254
27255 # type: textblock
27256 #: ../tools/virt-resize.pl:540
27257 msgid ""
27258 "Specify the format of the output disk image.  If this flag is not given then "
27259 "it is auto-detected from the image itself."
27260 msgstr ""
27261
27262 # type: textblock
27263 #: ../tools/virt-resize.pl:546
27264 msgid ""
27265 "Note that you still need to create the output disk with the right format.  "
27266 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27267 msgstr ""
27268
27269 # type: =head2
27270 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
27271 msgid "NOTES"
27272 msgstr ""
27273
27274 # type: =head2
27275 #: ../tools/virt-resize.pl:1424
27276 msgid "\"Partition 1 does not end on cylinder boundary.\""
27277 msgstr ""
27278
27279 # type: textblock
27280 #: ../tools/virt-resize.pl:1426
27281 msgid ""
27282 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27283 "means the partitions will not be aligned to the ancient CHS geometry.  "
27284 "However CHS geometry is meaningless for disks manufactured since the early "
27285 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27286 "cylinders is not required by any modern operating system."
27287 msgstr ""
27288
27289 # type: =head2
27290 #: ../tools/virt-resize.pl:1433
27291 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27292 msgstr ""
27293
27294 # type: textblock
27295 #: ../tools/virt-resize.pl:1435
27296 msgid ""
27297 "In Windows Vista and later versions, Microsoft switched to using a separate "
27298 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27299 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27300 "the boot partition.  Doing so seems to break the guest completely.  However "
27301 "expanding the second partition (ie. C: drive) should work."
27302 msgstr ""
27303
27304 # type: textblock
27305 #: ../tools/virt-resize.pl:1442
27306 msgid ""
27307 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27308 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27309 "it find errors) is nothing to worry about."
27310 msgstr ""
27311
27312 # type: =head2
27313 #: ../tools/virt-resize.pl:1446
27314 msgid "GUEST BOOT STUCK AT \"GRUB\""
27315 msgstr ""
27316
27317 # type: textblock
27318 #: ../tools/virt-resize.pl:1448
27319 msgid ""
27320 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27321 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27322 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27323 "although we think is to do with partition alignment."
27324 msgstr ""
27325
27326 # type: verbatim
27327 #: ../tools/virt-resize.pl:1453
27328 #, no-wrap
27329 msgid ""
27330 " guestfish -i -a newdisk\n"
27331 " ><fs> cat /boot/grub/device.map\n"
27332 " # check the contents of this file are sensible or\n"
27333 " # edit the file if necessary\n"
27334 " ><fs> grub-install / /dev/vda\n"
27335 " ><fs> exit\n"
27336 "\n"
27337 msgstr ""
27338
27339 # type: textblock
27340 #: ../tools/virt-resize.pl:1460
27341 msgid ""
27342 "For more flexible guest reconfiguration, including if you need to specify "
27343 "other parameters to grub-install, use L<virt-rescue(1)>."
27344 msgstr ""
27345
27346 # type: =head1
27347 #: ../tools/virt-resize.pl:1463
27348 msgid "ALTERNATIVE TOOLS"
27349 msgstr ""
27350
27351 # type: textblock
27352 #: ../tools/virt-resize.pl:1465
27353 msgid ""
27354 "There are several proprietary tools for resizing partitions.  We won't "
27355 "mention any here."
27356 msgstr ""
27357
27358 # type: textblock
27359 #: ../tools/virt-resize.pl:1468
27360 msgid ""
27361 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27362 "operations on disk images.  They can resize and move partitions, but I don't "
27363 "think they can do anything with the contents, and they certainly don't "
27364 "understand LVM."
27365 msgstr ""
27366
27367 # type: textblock
27368 #: ../tools/virt-resize.pl:1473
27369 msgid ""
27370 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27371 "but at a much lower level.  You will probably end up hand-calculating sector "
27372 "offsets, which is something that virt-resize was designed to avoid.  If you "
27373 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27374 "C<--debug> flag."
27375 msgstr ""
27376
27377 # type: textblock
27378 #: ../tools/virt-resize.pl:1488
27379 msgid ""
27380 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27381 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27382 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
27383 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
27384 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27385 msgstr ""
27386
27387 # type: textblock
27388 #: ../tools/virt-list-filesystems.pl:32
27389 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27390 msgstr ""
27391
27392 # type: verbatim
27393 #: ../tools/virt-list-filesystems.pl:36
27394 #, no-wrap
27395 msgid ""
27396 " virt-list-filesystems [--options] domname\n"
27397 "\n"
27398 msgstr ""
27399
27400 # type: verbatim
27401 #: ../tools/virt-list-filesystems.pl:38
27402 #, no-wrap
27403 msgid ""
27404 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27405 "\n"
27406 msgstr ""
27407
27408 # type: textblock
27409 #: ../tools/virt-list-filesystems.pl:42
27410 msgid ""
27411 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27412 "are contained in a virtual machine or disk image."
27413 msgstr ""
27414
27415 # type: textblock
27416 #: ../tools/virt-list-filesystems.pl:46
27417 msgid ""
27418 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27419 "functionality.  For more complex cases you should look at the "
27420 "L<guestfish(1)> tool."
27421 msgstr ""
27422
27423 # type: textblock
27424 #: ../tools/virt-list-filesystems.pl:105
27425 msgid ""
27426 "With this option, C<virt-list-filesystems> displays the type of each "
27427 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27428 msgstr ""
27429
27430 # type: =item
27431 #: ../tools/virt-list-filesystems.pl:112
27432 msgid "B<-a> | B<--all>"
27433 msgstr ""
27434
27435 # type: textblock
27436 #: ../tools/virt-list-filesystems.pl:114
27437 msgid ""
27438 "Normally we only show mountable filesystems.  If this option is given then "
27439 "swap devices are shown too."
27440 msgstr ""
27441
27442 # type: textblock
27443 #: ../tools/virt-list-filesystems.pl:188
27444 msgid ""
27445 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
27446 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27447 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27448 msgstr ""
27449
27450 # type: textblock
27451 #: ../tools/virt-tar.pl:33
27452 msgid "virt-tar - Extract or upload files to a virtual machine"
27453 msgstr ""
27454
27455 # type: verbatim
27456 #: ../tools/virt-tar.pl:37
27457 #, no-wrap
27458 msgid ""
27459 " virt-tar [--options] -x domname directory tarball\n"
27460 "\n"
27461 msgstr ""
27462
27463 # type: verbatim
27464 #: ../tools/virt-tar.pl:39
27465 #, no-wrap
27466 msgid ""
27467 " virt-tar [--options] -u domname tarball directory\n"
27468 "\n"
27469 msgstr ""
27470
27471 # type: verbatim
27472 #: ../tools/virt-tar.pl:41
27473 #, no-wrap
27474 msgid ""
27475 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27476 "\n"
27477 msgstr ""
27478
27479 # type: verbatim
27480 #: ../tools/virt-tar.pl:43
27481 #, no-wrap
27482 msgid ""
27483 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27484 "\n"
27485 msgstr ""
27486
27487 # type: textblock
27488 #: ../tools/virt-tar.pl:47
27489 msgid "Download C</home> from the VM into a local tarball:"
27490 msgstr ""
27491
27492 # type: verbatim
27493 #: ../tools/virt-tar.pl:49
27494 #, no-wrap
27495 msgid ""
27496 " virt-tar -x domname /home home.tar\n"
27497 "\n"
27498 msgstr ""
27499
27500 # type: verbatim
27501 #: ../tools/virt-tar.pl:51
27502 #, no-wrap
27503 msgid ""
27504 " virt-tar -zx domname /home home.tar.gz\n"
27505 "\n"
27506 msgstr ""
27507
27508 # type: textblock
27509 #: ../tools/virt-tar.pl:53
27510 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27511 msgstr ""
27512
27513 # type: verbatim
27514 #: ../tools/virt-tar.pl:55
27515 #, no-wrap
27516 msgid ""
27517 " virt-tar -u domname uploadstuff.tar /tmp\n"
27518 "\n"
27519 msgstr ""
27520
27521 # type: verbatim
27522 #: ../tools/virt-tar.pl:57
27523 #, no-wrap
27524 msgid ""
27525 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27526 "\n"
27527 msgstr ""
27528
27529 # type: textblock
27530 #: ../tools/virt-tar.pl:61
27531 msgid ""
27532 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27533 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27534 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27535 msgstr ""
27536
27537 # type: textblock
27538 #: ../tools/virt-tar.pl:66
27539 msgid ""
27540 "You can use C<-x> (extract) on live virtual machines, but you might get "
27541 "inconsistent results or errors if there is filesystem activity inside the "
27542 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27543 "work, but the only way to guarantee consistent results is if the virtual "
27544 "machine is shut down."
27545 msgstr ""
27546
27547 # type: textblock
27548 #: ../tools/virt-tar.pl:74
27549 msgid ""
27550 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27551 "parts of a guest filesystem.  There are many possibilities: making backups, "
27552 "uploading data files, snooping on guest activity, fixing or customizing "
27553 "guests, etc."
27554 msgstr ""
27555
27556 # type: textblock
27557 #: ../tools/virt-tar.pl:79
27558 msgid ""
27559 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27560 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27561 "should look at the L<guestfish(1)> tool."
27562 msgstr ""
27563
27564 # type: textblock
27565 #: ../tools/virt-tar.pl:83
27566 msgid ""
27567 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27568 "its contents (recursively) from the virtual machine into a local tarball.  "
27569 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27570 "virtual machine.  You cannot use these two options together."
27571 msgstr ""
27572
27573 # type: textblock
27574 #: ../tools/virt-tar.pl:89
27575 msgid ""
27576 "In addition, you may need to use the C<-z> (gZip) option to enable "
27577 "compression.  When uploading, you have to specify C<-z> if the upload file "
27578 "is compressed because virt-tar won't detect this on its own."
27579 msgstr ""
27580
27581 # type: textblock
27582 #: ../tools/virt-tar.pl:93
27583 msgid ""
27584 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27585 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27586 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27587 "the L<libguestfs(3)> API)."
27588 msgstr ""
27589
27590 # type: =item
27591 #: ../tools/virt-tar.pl:151
27592 msgid "B<-x> | B<--extract> | B<--download>"
27593 msgstr ""
27594
27595 # type: =item
27596 #: ../tools/virt-tar.pl:153
27597 msgid "B<-u> | B<--upload>"
27598 msgstr ""
27599
27600 # type: textblock
27601 #: ../tools/virt-tar.pl:155
27602 msgid ""
27603 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27604 "local tarball."
27605 msgstr ""
27606
27607 # type: textblock
27608 #: ../tools/virt-tar.pl:158
27609 msgid ""
27610 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27611 "Please read the L</WARNING> section above before using this option."
27612 msgstr ""
27613
27614 # type: textblock
27615 #: ../tools/virt-tar.pl:162
27616 msgid "You must specify exactly one of these options."
27617 msgstr ""
27618
27619 # type: =item
27620 #: ../tools/virt-tar.pl:168
27621 msgid "B<-z> | B<--gzip>"
27622 msgstr ""
27623
27624 # type: textblock
27625 #: ../tools/virt-tar.pl:170
27626 msgid "Specify that the input or output tarball is gzip-compressed."
27627 msgstr ""
27628
27629 # type: textblock
27630 #: ../tools/virt-tar.pl:283
27631 msgid ""
27632 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
27633 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
27634 "L<http://libguestfs.org/>."
27635 msgstr ""
27636
27637 # type: textblock
27638 #: ../tools/virt-rescue.pl:33
27639 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27640 msgstr ""
27641
27642 # type: verbatim
27643 #: ../tools/virt-rescue.pl:37
27644 #, no-wrap
27645 msgid ""
27646 " virt-rescue [--options] domname\n"
27647 "\n"
27648 msgstr ""
27649
27650 # type: verbatim
27651 #: ../tools/virt-rescue.pl:39
27652 #, no-wrap
27653 msgid ""
27654 " virt-rescue [--options] disk.img [disk.img ...]\n"
27655 "\n"
27656 msgstr ""
27657
27658 # type: textblock
27659 #: ../tools/virt-rescue.pl:43
27660 msgid ""
27661 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27662 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27663 "you from doing this, but doesn't catch all cases."
27664 msgstr ""
27665
27666 # type: textblock
27667 #: ../tools/virt-rescue.pl:47
27668 msgid ""
27669 "However if you use the I<--ro> (read only) option, then you can attach a "
27670 "shell to a live virtual machine.  The results might be strange or "
27671 "inconsistent at times but you won't get disk corruption."
27672 msgstr ""
27673
27674 # type: textblock
27675 #: ../tools/virt-rescue.pl:53
27676 msgid ""
27677 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27678 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27679 "recovery tools which you can use to examine or rescue a virtual machine or "
27680 "disk image."
27681 msgstr ""
27682
27683 # type: textblock
27684 #: ../tools/virt-rescue.pl:58
27685 msgid ""
27686 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27687 "on disk image(s):"
27688 msgstr ""
27689
27690 # type: verbatim
27691 #: ../tools/virt-rescue.pl:61
27692 #, no-wrap
27693 msgid ""
27694 " virt-rescue GuestName\n"
27695 "\n"
27696 msgstr ""
27697
27698 # type: verbatim
27699 #: ../tools/virt-rescue.pl:63
27700 #, no-wrap
27701 msgid ""
27702 " virt-rescue --ro /path/to/disk.img\n"
27703 "\n"
27704 msgstr ""
27705
27706 # type: verbatim
27707 #: ../tools/virt-rescue.pl:65
27708 #, no-wrap
27709 msgid ""
27710 " virt-rescue /dev/sdc\n"
27711 "\n"
27712 msgstr ""
27713
27714 # type: textblock
27715 #: ../tools/virt-rescue.pl:67
27716 msgid "For live VMs you I<must> use the --ro option."
27717 msgstr ""
27718
27719 # type: textblock
27720 #: ../tools/virt-rescue.pl:69
27721 msgid ""
27722 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27723 "in an interactive bash shell where you can use many ordinary Linux "
27724 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27725 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27726 "is an empty directory called C</sysroot> where you can mount filesystems."
27727 msgstr ""
27728
27729 # type: textblock
27730 #: ../tools/virt-rescue.pl:76
27731 msgid ""
27732 "In the example below, we list logical volumes, then choose one to mount "
27733 "under C</sysroot>:"
27734 msgstr ""
27735
27736 # type: verbatim
27737 #: ../tools/virt-rescue.pl:79
27738 #, no-wrap
27739 msgid ""
27740 " ><rescue> lvs\n"
27741 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27742 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27743 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27744 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27745 " ><rescue> ls /sysroot\n"
27746 "\n"
27747 msgstr ""
27748
27749 # type: textblock
27750 #: ../tools/virt-rescue.pl:86
27751 msgid ""
27752 "If you don't know what filesystems are available on the virtual machine then "
27753 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27754 msgstr ""
27755
27756 # type: textblock
27757 #: ../tools/virt-rescue.pl:92
27758 msgid ""
27759 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27760 "virtual machine.  For example you can use it on a blank file if you want to "
27761 "partition that file (although we would recommend using L<guestfish(1)> "
27762 "instead as it is more suitable for this purpose).  You can even use "
27763 "virt-rescue on things like SD cards."
27764 msgstr ""
27765
27766 # type: textblock
27767 #: ../tools/virt-rescue.pl:98
27768 msgid ""
27769 "This tool is just designed for quick interactive hacking on a virtual "
27770 "machine.  For more structured access to a virtual machine disk image, you "
27771 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27772 "make scripted changes to guests, use L<guestfish(1)>."
27773 msgstr ""
27774
27775 # type: =item
27776 #: ../tools/virt-rescue.pl:127
27777 msgid "B<--append kernelopts>"
27778 msgstr ""
27779
27780 # type: textblock
27781 #: ../tools/virt-rescue.pl:129
27782 msgid "Pass additional options to the rescue kernel."
27783 msgstr ""
27784
27785 # type: =item
27786 #: ../tools/virt-rescue.pl:164
27787 msgid "B<--memsize MB> | B<-m MB>"
27788 msgstr ""
27789
27790 # type: textblock
27791 #: ../tools/virt-rescue.pl:166
27792 msgid ""
27793 "Change the amount of memory allocated to the rescue system.  The default is "
27794 "set by libguestfs and is small but adequate for running system tools.  The "
27795 "occasional program might need more memory.  The parameter is specified in "
27796 "megabytes."
27797 msgstr ""
27798
27799 # type: =item
27800 #: ../tools/virt-rescue.pl:175
27801 msgid "B<--network MB>"
27802 msgstr ""
27803
27804 # type: textblock
27805 #: ../tools/virt-rescue.pl:177
27806 msgid "Enable QEMU user networking in the guest."
27807 msgstr ""
27808
27809 # type: =item
27810 #: ../tools/virt-rescue.pl:183
27811 msgid "B<--ro> | B<-r>"
27812 msgstr ""
27813
27814 # type: textblock
27815 #: ../tools/virt-rescue.pl:185
27816 msgid "Open the image read-only."
27817 msgstr ""
27818
27819 # type: textblock
27820 #: ../tools/virt-rescue.pl:197
27821 msgid ""
27822 "Enable SELinux in the rescue appliance.  You should read "
27823 "L<guestfs(3)/SELINUX> before using this option."
27824 msgstr ""
27825
27826 # type: textblock
27827 #: ../tools/virt-rescue.pl:257
27828 msgid ""
27829 "Several environment variables affect virt-rescue.  See "
27830 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
27831 msgstr ""
27832
27833 # type: textblock
27834 #: ../tools/virt-rescue.pl:269
27835 msgid ""
27836 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
27837 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27838 msgstr ""
27839
27840 # type: textblock
27841 #: ../tools/virt-make-fs.pl:37
27842 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27843 msgstr ""
27844
27845 # type: verbatim
27846 #: ../tools/virt-make-fs.pl:41
27847 #, no-wrap
27848 msgid ""
27849 " virt-make-fs [--options] input.tar output.img\n"
27850 "\n"
27851 msgstr ""
27852
27853 # type: verbatim
27854 #: ../tools/virt-make-fs.pl:43
27855 #, no-wrap
27856 msgid ""
27857 " virt-make-fs [--options] input.tar.gz output.img\n"
27858 "\n"
27859 msgstr ""
27860
27861 # type: verbatim
27862 #: ../tools/virt-make-fs.pl:45
27863 #, no-wrap
27864 msgid ""
27865 " virt-make-fs [--options] directory output.img\n"
27866 "\n"
27867 msgstr ""
27868
27869 # type: textblock
27870 #: ../tools/virt-make-fs.pl:49
27871 msgid ""
27872 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27873 "archive or some files in a directory.  It is similar to tools like "
27874 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
27875 "it can create common filesystem types like ext2/3 or NTFS, which can be "
27876 "useful if you want to attach these filesystems to existing virtual machines "
27877 "(eg. to import large amounts of read-only data to a VM)."
27878 msgstr ""
27879
27880 # type: textblock
27881 #: ../tools/virt-make-fs.pl:57
27882 msgid "Basic usage is:"
27883 msgstr ""
27884
27885 # type: verbatim
27886 #: ../tools/virt-make-fs.pl:59
27887 #, no-wrap
27888 msgid ""
27889 " virt-make-fs input output\n"
27890 "\n"
27891 msgstr ""
27892
27893 # type: textblock
27894 #: ../tools/virt-make-fs.pl:61
27895 msgid ""
27896 "where C<input> is either a directory containing files that you want to add, "
27897 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27898 "C<output> is a disk image.  The input type is detected automatically.  The "
27899 "output disk image defaults to a raw ext2 image unless you specify extra "
27900 "flags (see L</OPTIONS> below)."
27901 msgstr ""
27902
27903 # type: =head2
27904 #: ../tools/virt-make-fs.pl:67
27905 msgid "EXTRA SPACE"
27906 msgstr ""
27907
27908 # type: textblock
27909 #: ../tools/virt-make-fs.pl:69
27910 msgid ""
27911 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27912 "the files that it contains, but might have extra space.  Depending on how "
27913 "you are going to use the output, you might think this extra space is wasted "
27914 "and want to minimize it, or you might want to leave space so that more files "
27915 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27916 "but you can use the C<--size> flag to leave space in the filesystem if you "
27917 "want it."
27918 msgstr ""
27919
27920 # type: textblock
27921 #: ../tools/virt-make-fs.pl:77
27922 msgid ""
27923 "An alternative way to leave extra space but not make the output image any "
27924 "bigger is to use an alternative disk image format (instead of the default "
27925 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27926 "image format (check your hypervisor supports this before using it).  This "
27927 "allows you to choose a large C<--size> but the extra space won't actually be "
27928 "allocated in the image until you try to store something in it."
27929 msgstr ""
27930
27931 # type: textblock
27932 #: ../tools/virt-make-fs.pl:85
27933 msgid ""
27934 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27935 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
27936 "virt-make-resize to build another image from scratch."
27937 msgstr ""
27938
27939 # type: =head3
27940 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
27941 msgid "EXAMPLE"
27942 msgstr ""
27943
27944 # type: verbatim
27945 #: ../tools/virt-make-fs.pl:91
27946 #, no-wrap
27947 msgid ""
27948 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27949 "\n"
27950 msgstr ""
27951
27952 # type: =head2
27953 #: ../tools/virt-make-fs.pl:93
27954 msgid "FILESYSTEM TYPE"
27955 msgstr ""
27956
27957 # type: textblock
27958 #: ../tools/virt-make-fs.pl:95
27959 msgid ""
27960 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27961 "libguestfs supports can be used (but I<not> read-only formats like "
27962 "ISO9660).  Here are some of the more common choices:"
27963 msgstr ""
27964
27965 # type: =item
27966 #: ../tools/virt-make-fs.pl:101
27967 msgid "I<ext3>"
27968 msgstr ""
27969
27970 # type: textblock
27971 #: ../tools/virt-make-fs.pl:103
27972 msgid ""
27973 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27974 "you are not going to use the filesystem in a way that requires the journal, "
27975 "then this is just wasted overhead."
27976 msgstr ""
27977
27978 # type: =item
27979 #: ../tools/virt-make-fs.pl:107
27980 msgid "I<ntfs> or I<vfat>"
27981 msgstr ""
27982
27983 # type: textblock
27984 #: ../tools/virt-make-fs.pl:109
27985 msgid "Useful if exporting data to a Windows guest."
27986 msgstr ""
27987
27988 # type: textblock
27989 #: ../tools/virt-make-fs.pl:111
27990 msgid ""
27991 "I<Note for vfat>: The tar archive or local directory must only contain files "
27992 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27993 "program running within libguestfs is unable to change the ownership of "
27994 "non-root files, since vfat itself does not support this."
27995 msgstr ""
27996
27997 # type: =item
27998 #: ../tools/virt-make-fs.pl:116
27999 msgid "I<minix>"
28000 msgstr ""
28001
28002 # type: textblock
28003 #: ../tools/virt-make-fs.pl:118
28004 msgid ""
28005 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28006 "total filesystem size."
28007 msgstr ""
28008
28009 # type: verbatim
28010 #: ../tools/virt-make-fs.pl:125
28011 #, no-wrap
28012 msgid ""
28013 " virt-make-fs --type=minix input minixfs.img\n"
28014 "\n"
28015 msgstr ""
28016
28017 # type: =head2
28018 #: ../tools/virt-make-fs.pl:127
28019 msgid "TO PARTITION OR NOT TO PARTITION"
28020 msgstr ""
28021
28022 # type: textblock
28023 #: ../tools/virt-make-fs.pl:129
28024 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28025 msgstr ""
28026
28027 # type: textblock
28028 #: ../tools/virt-make-fs.pl:131
28029 msgid ""
28030 "Adding a partition can make the disk image more compatible with certain "
28031 "virtualized operating systems which don't expect to see a filesystem "
28032 "directly located on a block device (Linux doesn't care and will happily "
28033 "handle both types)."
28034 msgstr ""
28035
28036 # type: textblock
28037 #: ../tools/virt-make-fs.pl:136
28038 msgid ""
28039 "On the other hand, if you have a partition table then the output image is no "
28040 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28041 "directly on a partitioned disk image.  (However libguestfs tools such as "
28042 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28043 msgstr ""
28044
28045 # type: textblock
28046 #: ../tools/virt-make-fs.pl:144
28047 msgid "Add an MBR partition:"
28048 msgstr ""
28049
28050 # type: verbatim
28051 #: ../tools/virt-make-fs.pl:146
28052 #, no-wrap
28053 msgid ""
28054 " virt-make-fs --partition -- input disk.img\n"
28055 "\n"
28056 msgstr ""
28057
28058 # type: textblock
28059 #: ../tools/virt-make-fs.pl:148
28060 msgid ""
28061 "If the output disk image could be terabyte-sized or larger, it's better to "
28062 "use an EFI/GPT-compatible partition table:"
28063 msgstr ""
28064
28065 # type: verbatim
28066 #: ../tools/virt-make-fs.pl:151
28067 #, no-wrap
28068 msgid ""
28069 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28070 "\n"
28071 msgstr ""
28072
28073 # type: textblock
28074 #: ../tools/virt-make-fs.pl:179
28075 msgid "Enable debugging information."
28076 msgstr ""
28077
28078 # type: =item
28079 #: ../tools/virt-make-fs.pl:185
28080 msgid "B<--size=E<lt>NE<gt>>"
28081 msgstr ""
28082
28083 # type: =item
28084 #: ../tools/virt-make-fs.pl:187
28085 msgid "B<--size=+E<lt>NE<gt>>"
28086 msgstr ""
28087
28088 # type: =item
28089 #: ../tools/virt-make-fs.pl:189
28090 msgid "B<-s E<lt>NE<gt>>"
28091 msgstr ""
28092
28093 # type: =item
28094 #: ../tools/virt-make-fs.pl:191
28095 msgid "B<-s +E<lt>NE<gt>>"
28096 msgstr ""
28097
28098 # type: textblock
28099 #: ../tools/virt-make-fs.pl:193
28100 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28101 msgstr ""
28102
28103 # type: textblock
28104 #: ../tools/virt-make-fs.pl:196
28105 msgid ""
28106 "If this option is I<not> given, then the output image will be just large "
28107 "enough to contain all the files, with not much wasted space."
28108 msgstr ""
28109
28110 # type: textblock
28111 #: ../tools/virt-make-fs.pl:199
28112 msgid ""
28113 "To choose a fixed size output disk, specify an absolute number followed by "
28114 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28115 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28116 "files, else you will get an error."
28117 msgstr ""
28118
28119 # type: textblock
28120 #: ../tools/virt-make-fs.pl:204
28121 msgid ""
28122 "To leave extra space, specify C<+> (plus sign) and a number followed by "
28123 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28124 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28125 "the input files, and (approximately) an extra 200 MB free space."
28126 msgstr ""
28127
28128 # type: textblock
28129 #: ../tools/virt-make-fs.pl:210
28130 msgid ""
28131 "Note that virt-make-fs estimates free space, and therefore will not produce "
28132 "filesystems containing precisely the free space requested.  (It is much more "
28133 "expensive and time-consuming to produce a filesystem which has precisely the "
28134 "desired free space)."
28135 msgstr ""
28136
28137 # type: =item
28138 #: ../tools/virt-make-fs.pl:219
28139 msgid "B<--format=E<lt>fmtE<gt>>"
28140 msgstr ""
28141
28142 # type: =item
28143 #: ../tools/virt-make-fs.pl:221
28144 msgid "B<-F E<lt>fmtE<gt>>"
28145 msgstr ""
28146
28147 # type: textblock
28148 #: ../tools/virt-make-fs.pl:223
28149 msgid "Choose the output disk image format."
28150 msgstr ""
28151
28152 # type: textblock
28153 #: ../tools/virt-make-fs.pl:225
28154 msgid "The default is C<raw> (raw disk image)."
28155 msgstr ""
28156
28157 # type: textblock
28158 #: ../tools/virt-make-fs.pl:227
28159 msgid ""
28160 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28161 "that would really make sense here is C<qcow2>."
28162 msgstr ""
28163
28164 # type: =item
28165 #: ../tools/virt-make-fs.pl:234
28166 msgid "B<--type=E<lt>fsE<gt>>"
28167 msgstr ""
28168
28169 # type: =item
28170 #: ../tools/virt-make-fs.pl:236
28171 msgid "B<-t E<lt>fsE<gt>>"
28172 msgstr ""
28173
28174 # type: textblock
28175 #: ../tools/virt-make-fs.pl:238
28176 msgid "Choose the output filesystem type."
28177 msgstr ""
28178
28179 # type: textblock
28180 #: ../tools/virt-make-fs.pl:240
28181 msgid "The default is C<ext2>."
28182 msgstr ""
28183
28184 # type: textblock
28185 #: ../tools/virt-make-fs.pl:242
28186 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
28187 msgstr ""
28188
28189 # type: =item
28190 #: ../tools/virt-make-fs.pl:249
28191 msgid "B<--partition>"
28192 msgstr ""
28193
28194 # type: =item
28195 #: ../tools/virt-make-fs.pl:251
28196 msgid "B<--partition=E<lt>parttypeE<gt>>"
28197 msgstr ""
28198
28199 # type: textblock
28200 #: ../tools/virt-make-fs.pl:253
28201 msgid ""
28202 "If specified, this flag adds an MBR partition table to the output disk "
28203 "image."
28204 msgstr ""
28205
28206 # type: textblock
28207 #: ../tools/virt-make-fs.pl:256
28208 msgid ""
28209 "You can change the partition table type, eg. C<--partition=gpt> for large "
28210 "disks."
28211 msgstr ""
28212
28213 # type: textblock
28214 #: ../tools/virt-make-fs.pl:259
28215 msgid ""
28216 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28217 "might consider the next parameter to be the partition type.  For example:"
28218 msgstr ""
28219
28220 # type: verbatim
28221 #: ../tools/virt-make-fs.pl:263
28222 #, no-wrap
28223 msgid ""
28224 " virt-make-fs --partition input.tar ...\n"
28225 "\n"
28226 msgstr ""
28227
28228 # type: textblock
28229 #: ../tools/virt-make-fs.pl:265
28230 msgid ""
28231 "would cause virt-make-fs to think you wanted to use a partition type of "
28232 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28233 "dash) between options and the input file argument:"
28234 msgstr ""
28235
28236 # type: verbatim
28237 #: ../tools/virt-make-fs.pl:269
28238 #, no-wrap
28239 msgid ""
28240 " virt-make-fs --partition -- input.tar ...\n"
28241 "\n"
28242 msgstr ""
28243
28244 # type: textblock
28245 #: ../tools/virt-make-fs.pl:536
28246 msgid ""
28247 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28248 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28249 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28250 msgstr ""
28251
28252 # type: verbatim
28253 #: ../tools/virt-make-fs.pl:553
28254 #, no-wrap
28255 msgid ""
28256 " export LIBGUESTFS_DEBUG=1\n"
28257 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28258 "\n"
28259 msgstr ""
28260
28261 # type: textblock
28262 #: ../tools/virt-make-fs.pl:556
28263 msgid ""
28264 "Attach /tmp/virt-make-fs.log to a new bug report at "
28265 "L<https://bugzilla.redhat.com/>"
28266 msgstr ""
28267
28268 # type: textblock
28269 #: ../tools/virt-list-partitions.pl:32
28270 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28271 msgstr ""
28272
28273 # type: verbatim
28274 #: ../tools/virt-list-partitions.pl:36
28275 #, no-wrap
28276 msgid ""
28277 " virt-list-partitions [--options] domname\n"
28278 "\n"
28279 msgstr ""
28280
28281 # type: verbatim
28282 #: ../tools/virt-list-partitions.pl:38
28283 #, no-wrap
28284 msgid ""
28285 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28286 "\n"
28287 msgstr ""
28288
28289 # type: textblock
28290 #: ../tools/virt-list-partitions.pl:42
28291 msgid ""
28292 "C<virt-list-partitions> is a command line tool to list the partitions that "
28293 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28294 "first step to using L<virt-resize(1)>."
28295 msgstr ""
28296
28297 # type: textblock
28298 #: ../tools/virt-list-partitions.pl:47
28299 msgid ""
28300 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28301 "functionality.  For more complex cases you should look at the "
28302 "L<guestfish(1)> tool."
28303 msgstr ""
28304
28305 # type: =item
28306 #: ../tools/virt-list-partitions.pl:104
28307 msgid "B<-h> | B<--human-readable>"
28308 msgstr ""
28309
28310 # type: textblock
28311 #: ../tools/virt-list-partitions.pl:106
28312 msgid "Show sizes in human-readable form (eg. \"1G\")."
28313 msgstr ""
28314
28315 # type: textblock
28316 #: ../tools/virt-list-partitions.pl:114
28317 msgid ""
28318 "With this option, C<virt-list-partitions> displays the type and size of each "
28319 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28320 msgstr ""
28321
28322 # type: =item
28323 #: ../tools/virt-list-partitions.pl:121
28324 msgid "B<-t> | B<--total>"
28325 msgstr ""
28326
28327 # type: textblock
28328 #: ../tools/virt-list-partitions.pl:123
28329 msgid "Display the total size of each block device (as a separate row or rows)."
28330 msgstr ""
28331
28332 # type: textblock
28333 #: ../tools/virt-list-partitions.pl:256
28334 msgid ""
28335 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
28336 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
28337 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28338 msgstr ""