Version 1.5.25.
[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.5.25\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-10-28 18:08+0200\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=utf-8\n"
17 "Content-Transfer-Encoding: ENCODING"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1 ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1 ../inspector/virt-inspector.pl:31 ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30 ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28 ../tools/virt-cat.pl:29 ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29 ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
21 msgid "utf8"
22 msgstr ""
23
24 # type: =head1
25 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pl:33 ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32 ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30 ../tools/virt-cat.pl:31 ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31 ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
26 msgid "NAME"
27 msgstr ""
28
29 # type: textblock
30 #: ../src/guestfs.pod:5
31 msgid "guestfs - Library for accessing and modifying virtual machine images"
32 msgstr ""
33
34 # type: =head1
35 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pl:37 ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36 ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34 ../tools/virt-cat.pl:35 ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35 ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
36 msgid "SYNOPSIS"
37 msgstr ""
38
39 # type: verbatim
40 #: ../src/guestfs.pod:9
41 #, no-wrap
42 msgid ""
43 " #include <guestfs.h>\n"
44 " \n"
45 msgstr ""
46
47 # type: verbatim
48 #: ../src/guestfs.pod:11
49 #, no-wrap
50 msgid ""
51 " guestfs_h *g = guestfs_create ();\n"
52 " guestfs_add_drive (g, \"guest.img\");\n"
53 " guestfs_launch (g);\n"
54 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
55 " guestfs_touch (g, \"/hello\");\n"
56 " guestfs_umount (g, \"/\");\n"
57 " guestfs_sync (g);\n"
58 " guestfs_close (g);\n"
59 "\n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:20
64 #, no-wrap
65 msgid ""
66 " cc prog.c -o prog -lguestfs\n"
67 "or:\n"
68 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
69 "\n"
70 msgstr ""
71
72 # type: =head1
73 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42 ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40 ../tools/virt-cat.pl:41 ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51 ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
74 msgid "DESCRIPTION"
75 msgstr ""
76
77 # type: textblock
78 #: ../src/guestfs.pod:26
79 msgid ""
80 "Libguestfs is a library for accessing and modifying guest disk images.  "
81 "Amongst the things this is good for: making batch configuration changes to "
82 "guests, getting disk used/free statistics (see also: virt-df), migrating "
83 "between virtualization systems (see also: virt-p2v), performing partial "
84 "backups, performing partial guest clones, cloning guests and changing "
85 "registry/UUID/hostname info, and much else besides."
86 msgstr ""
87
88 # type: textblock
89 #: ../src/guestfs.pod:34
90 msgid ""
91 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
92 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
93 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
94 "qcow2, vmdk."
95 msgstr ""
96
97 # type: textblock
98 #: ../src/guestfs.pod:39
99 msgid ""
100 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
101 "what filesystem is in each LV, etc.).  It can also run commands in the "
102 "context of the guest.  Also you can access filesystems over FUSE."
103 msgstr ""
104
105 # type: textblock
106 #: ../src/guestfs.pod:44
107 msgid ""
108 "Libguestfs is a library that can be linked with C and C++ management "
109 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
110 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
111 "line."
112 msgstr ""
113
114 # type: textblock
115 #: ../src/guestfs.pod:49
116 msgid ""
117 "You don't need to be root to use libguestfs, although obviously you do need "
118 "enough permissions to access the disk images."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:52
123 msgid ""
124 "Libguestfs is a large API because it can do many things.  For a gentle "
125 "introduction, please read the L</API OVERVIEW> section next."
126 msgstr ""
127
128 # type: =head1
129 #: ../src/guestfs.pod:55
130 msgid "API OVERVIEW"
131 msgstr ""
132
133 # type: textblock
134 #: ../src/guestfs.pod:57
135 msgid ""
136 "This section provides a gentler overview of the libguestfs API.  We also try "
137 "to group API calls together, where that may not be obvious from reading "
138 "about the individual calls in the main section of this manual."
139 msgstr ""
140
141 # type: =head2
142 #: ../src/guestfs.pod:62
143 msgid "HANDLES"
144 msgstr ""
145
146 # type: textblock
147 #: ../src/guestfs.pod:64
148 msgid ""
149 "Before you can use libguestfs calls, you have to create a handle.  Then you "
150 "must add at least one disk image to the handle, followed by launching the "
151 "handle, then performing whatever operations you want, and finally closing "
152 "the handle.  By convention we use the single letter C<g> for the name of the "
153 "handle variable, although of course you can use any name you want."
154 msgstr ""
155
156 # type: textblock
157 #: ../src/guestfs.pod:71
158 msgid "The general structure of all libguestfs-using programs looks like this:"
159 msgstr ""
160
161 # type: verbatim
162 #: ../src/guestfs.pod:74
163 #, no-wrap
164 msgid ""
165 " guestfs_h *g = guestfs_create ();\n"
166 " \n"
167 msgstr ""
168
169 # type: verbatim
170 #: ../src/guestfs.pod:76
171 #, no-wrap
172 msgid ""
173 " /* Call guestfs_add_drive additional times if there are\n"
174 "  * multiple disk images.\n"
175 "  */\n"
176 " guestfs_add_drive (g, \"guest.img\");\n"
177 " \n"
178 msgstr ""
179
180 # type: verbatim
181 #: ../src/guestfs.pod:81
182 #, no-wrap
183 msgid ""
184 " /* Most manipulation calls won't work until you've launched\n"
185 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
186 "  * and _before_ other commands.\n"
187 "  */\n"
188 " guestfs_launch (g);\n"
189 " \n"
190 msgstr ""
191
192 # type: verbatim
193 #: ../src/guestfs.pod:87
194 #, no-wrap
195 msgid ""
196 " /* Now you can examine what partitions, LVs etc are available.\n"
197 "  */\n"
198 " char **partitions = guestfs_list_partitions (g);\n"
199 " char **logvols = guestfs_lvs (g);\n"
200 " \n"
201 msgstr ""
202
203 # type: verbatim
204 #: ../src/guestfs.pod:92
205 #, no-wrap
206 msgid ""
207 " /* To access a filesystem in the image, you must mount it.\n"
208 "  */\n"
209 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
210 " \n"
211 msgstr ""
212
213 # type: verbatim
214 #: ../src/guestfs.pod:96
215 #, no-wrap
216 msgid ""
217 " /* Now you can perform filesystem actions on the guest\n"
218 "  * disk image.\n"
219 "  */\n"
220 " guestfs_touch (g, \"/hello\");\n"
221 " \n"
222 msgstr ""
223
224 # type: verbatim
225 #: ../src/guestfs.pod:101
226 #, no-wrap
227 msgid ""
228 " /* You only need to call guestfs_sync if you have made\n"
229 "  * changes to the guest image.  (But if you've made changes\n"
230 "  * then you *must* sync).  See also: guestfs_umount and\n"
231 "  * guestfs_umount_all calls.\n"
232 "  */\n"
233 " guestfs_sync (g);\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:108
239 #, no-wrap
240 msgid ""
241 " /* Close the handle 'g'. */\n"
242 " guestfs_close (g);\n"
243 "\n"
244 msgstr ""
245
246 # type: textblock
247 #: ../src/guestfs.pod:111
248 msgid ""
249 "The code above doesn't include any error checking.  In real code you should "
250 "check return values carefully for errors.  In general all functions that "
251 "return integers return C<-1> on error, and all functions that return "
252 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
253 "how to handle errors, and consult the documentation for each function call "
254 "below to see precisely how they return error indications."
255 msgstr ""
256
257 # type: =head2
258 #: ../src/guestfs.pod:119
259 msgid "DISK IMAGES"
260 msgstr ""
261
262 # type: textblock
263 #: ../src/guestfs.pod:121
264 msgid ""
265 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
266 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
267 "actual block device, or simply an empty file of zeroes that you have created "
268 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
269 "of these."
270 msgstr ""
271
272 # type: textblock
273 #: ../src/guestfs.pod:127
274 msgid ""
275 "The call you should use in modern code for adding drives is "
276 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
277 "specifying that the format is raw, do:"
278 msgstr ""
279
280 # type: verbatim
281 #: ../src/guestfs.pod:131
282 #, no-wrap
283 msgid ""
284 " guestfs_add_drive_opts (g, filename,\n"
285 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
286 "                         -1);\n"
287 "\n"
288 msgstr ""
289
290 # type: textblock
291 #: ../src/guestfs.pod:135
292 msgid "You can add a disk read-only using:"
293 msgstr ""
294
295 # type: verbatim
296 #: ../src/guestfs.pod:137
297 #, no-wrap
298 msgid ""
299 " guestfs_add_drive_opts (g, filename,\n"
300 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
301 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
302 "                         -1);\n"
303 "\n"
304 msgstr ""
305
306 # type: textblock
307 #: ../src/guestfs.pod:142
308 msgid ""
309 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
310 "libguestfs won't modify the file."
311 msgstr ""
312
313 # type: textblock
314 #: ../src/guestfs.pod:145
315 msgid ""
316 "Be extremely cautious if the disk image is in use, eg. if it is being used "
317 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
318 "corruption, but adding it read-only is safe."
319 msgstr ""
320
321 # type: textblock
322 #: ../src/guestfs.pod:149
323 msgid ""
324 "You must add at least one disk image, and you may add multiple disk images.  "
325 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
326 "first one you added), C</dev/sdb> (for the second one you added), etc."
327 msgstr ""
328
329 # type: textblock
330 #: ../src/guestfs.pod:154
331 msgid ""
332 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
333 "can call L</guestfs_list_devices> to get a list of the device names, in the "
334 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
335 msgstr ""
336
337 # type: =head2
338 #: ../src/guestfs.pod:159
339 msgid "MOUNTING"
340 msgstr ""
341
342 # type: textblock
343 #: ../src/guestfs.pod:161
344 msgid ""
345 "Before you can read or write files, create directories and so on in a disk "
346 "image that contains filesystems, you have to mount those filesystems using "
347 "L</guestfs_mount>.  If you already know that a disk image contains (for "
348 "example) one partition with a filesystem on that partition, then you can "
349 "mount it directly:"
350 msgstr ""
351
352 # type: verbatim
353 #: ../src/guestfs.pod:167
354 #, no-wrap
355 msgid ""
356 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
357 "\n"
358 msgstr ""
359
360 # type: textblock
361 #: ../src/guestfs.pod:169
362 msgid ""
363 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
364 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
365 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
366 msgstr ""
367
368 # type: textblock
369 #: ../src/guestfs.pod:173
370 msgid ""
371 "If you are given a disk image and you don't know what it contains then you "
372 "have to find out.  Libguestfs can do that too: use "
373 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
374 "and LVs, and either try mounting each to see what is mountable, or else "
375 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also "
376 "has a set of APIs for inspection of disk images (see L</INSPECTION> below).  "
377 "But you might find it easier to look at higher level programs built on top "
378 "of libguestfs, in particular L<virt-inspector(1)>."
379 msgstr ""
380
381 # type: textblock
382 #: ../src/guestfs.pod:183
383 msgid ""
384 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
385 "several other variations of the C<guestfs_mount_*> call."
386 msgstr ""
387
388 # type: =head2
389 #: ../src/guestfs.pod:186
390 msgid "FILESYSTEM ACCESS AND MODIFICATION"
391 msgstr ""
392
393 # type: textblock
394 #: ../src/guestfs.pod:188
395 msgid ""
396 "The majority of the libguestfs API consists of fairly low-level calls for "
397 "accessing and modifying the files, directories, symlinks etc on mounted "
398 "filesystems.  There are over a hundred such calls which you can find listed "
399 "in detail below in this man page, and we don't even pretend to cover them "
400 "all in this overview."
401 msgstr ""
402
403 # type: textblock
404 #: ../src/guestfs.pod:194
405 msgid ""
406 "Specify filenames as full paths, starting with C<\"/\"> and including the "
407 "mount point."
408 msgstr ""
409
410 # type: textblock
411 #: ../src/guestfs.pod:197
412 msgid ""
413 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
414 "the file called C<\"etc/passwd\"> then you could do:"
415 msgstr ""
416
417 # type: verbatim
418 #: ../src/guestfs.pod:200
419 #, no-wrap
420 msgid ""
421 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
422 "\n"
423 msgstr ""
424
425 # type: textblock
426 #: ../src/guestfs.pod:202
427 msgid ""
428 "This would return C<data> as a newly allocated buffer containing the full "
429 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
430 "or C<NULL> if there was an error."
431 msgstr ""
432
433 # type: textblock
434 #: ../src/guestfs.pod:206
435 msgid ""
436 "As another example, to create a top-level directory on that filesystem "
437 "called C<\"var\"> you would do:"
438 msgstr ""
439
440 # type: verbatim
441 #: ../src/guestfs.pod:209
442 #, no-wrap
443 msgid ""
444 " guestfs_mkdir (g, \"/var\");\n"
445 "\n"
446 msgstr ""
447
448 # type: textblock
449 #: ../src/guestfs.pod:211
450 msgid "To create a symlink you could do:"
451 msgstr ""
452
453 # type: verbatim
454 #: ../src/guestfs.pod:213
455 #, no-wrap
456 msgid ""
457 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
458 "               \"/etc/rc3.d/S30portmap\");\n"
459 "\n"
460 msgstr ""
461
462 # type: textblock
463 #: ../src/guestfs.pod:216
464 msgid ""
465 "Libguestfs will reject attempts to use relative paths and there is no "
466 "concept of a current working directory."
467 msgstr ""
468
469 # type: textblock
470 #: ../src/guestfs.pod:219
471 msgid ""
472 "Libguestfs can return errors in many situations: for example if the "
473 "filesystem isn't writable, or if a file or directory that you requested "
474 "doesn't exist.  If you are using the C API (documented here)  you have to "
475 "check for those error conditions after each call.  (Other language bindings "
476 "turn these errors into exceptions)."
477 msgstr ""
478
479 # type: textblock
480 #: ../src/guestfs.pod:225
481 msgid ""
482 "File writes are affected by the per-handle umask, set by calling "
483 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
484 msgstr ""
485
486 # type: =head2
487 #: ../src/guestfs.pod:228
488 msgid "PARTITIONING"
489 msgstr ""
490
491 # type: textblock
492 #: ../src/guestfs.pod:230
493 msgid ""
494 "Libguestfs contains API calls to read, create and modify partition tables on "
495 "disk images."
496 msgstr ""
497
498 # type: textblock
499 #: ../src/guestfs.pod:233
500 msgid ""
501 "In the common case where you want to create a single partition covering the "
502 "whole disk, you should use the L</guestfs_part_disk> call:"
503 msgstr ""
504
505 # type: verbatim
506 #: ../src/guestfs.pod:237
507 #, no-wrap
508 msgid ""
509 " const char *parttype = \"mbr\";\n"
510 " if (disk_is_larger_than_2TB)\n"
511 "   parttype = \"gpt\";\n"
512 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
513 "\n"
514 msgstr ""
515
516 # type: textblock
517 #: ../src/guestfs.pod:242
518 msgid ""
519 "Obviously this effectively wipes anything that was on that disk image "
520 "before."
521 msgstr ""
522
523 # type: =head2
524 #: ../src/guestfs.pod:245
525 msgid "LVM2"
526 msgstr ""
527
528 # type: textblock
529 #: ../src/guestfs.pod:247
530 msgid ""
531 "Libguestfs provides access to a large part of the LVM2 API, such as "
532 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
533 "unless you familiarize yourself with the concepts of physical volumes, "
534 "volume groups and logical volumes."
535 msgstr ""
536
537 # type: textblock
538 #: ../src/guestfs.pod:252
539 msgid ""
540 "This author strongly recommends reading the LVM HOWTO, online at "
541 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
542 msgstr ""
543
544 # type: =head2
545 #: ../src/guestfs.pod:255
546 msgid "DOWNLOADING"
547 msgstr ""
548
549 # type: textblock
550 #: ../src/guestfs.pod:257
551 msgid ""
552 "Use L</guestfs_cat> to download small, text only files.  This call is "
553 "limited to files which are less than 2 MB and which cannot contain any ASCII "
554 "NUL (C<\\0>) characters.  However it has a very simple to use API."
555 msgstr ""
556
557 # type: textblock
558 #: ../src/guestfs.pod:262
559 msgid ""
560 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
561 "bit data, since it returns a (pointer, size) pair.  However it is still "
562 "limited to \"small\" files, less than 2 MB."
563 msgstr ""
564
565 # type: textblock
566 #: ../src/guestfs.pod:266
567 msgid ""
568 "L</guestfs_download> can be used to download any file, with no limits on "
569 "content or size (even files larger than 4 GB)."
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:269
574 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
575 msgstr ""
576
577 # type: =head2
578 #: ../src/guestfs.pod:272
579 msgid "UPLOADING"
580 msgstr ""
581
582 # type: textblock
583 #: ../src/guestfs.pod:274
584 msgid ""
585 "It's often the case that you want to write a file or files to the disk "
586 "image."
587 msgstr ""
588
589 # type: textblock
590 #: ../src/guestfs.pod:277
591 msgid ""
592 "To write a small file with fixed content, use L</guestfs_write>.  To create "
593 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
594 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
595 "variety of other functions for creating test files, for example "
596 "L</guestfs_fill> and L</guestfs_fill_pattern>."
597 msgstr ""
598
599 # type: textblock
600 #: ../src/guestfs.pod:283
601 msgid ""
602 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
603 "file content or size (even files larger than 4 GB)."
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:286
608 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
609 msgstr ""
610
611 # type: textblock
612 #: ../src/guestfs.pod:288
613 msgid ""
614 "However the fastest way to upload I<large numbers of arbitrary files> is to "
615 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
616 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
617 "the drive in a predictable way (eg. adding it last after all other drives) "
618 "then you can get the device name from L</guestfs_list_devices> and mount it "
619 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
620 "sometimes non-portable between kernel versions, and they don't support "
621 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
622 "using a label or UUID, use an ISO image instead."
623 msgstr ""
624
625 # type: =head2
626 #: ../src/guestfs.pod:299
627 msgid "COPYING"
628 msgstr ""
629
630 # type: textblock
631 #: ../src/guestfs.pod:301
632 msgid ""
633 "There are various different commands for copying between files and devices "
634 "and in and out of the guest filesystem.  These are summarised in the table "
635 "below."
636 msgstr ""
637
638 # type: =item
639 #: ../src/guestfs.pod:307
640 msgid "B<file> to B<file>"
641 msgstr ""
642
643 # type: textblock
644 #: ../src/guestfs.pod:309
645 msgid ""
646 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
647 "directories recursively."
648 msgstr ""
649
650 # type: =item
651 #: ../src/guestfs.pod:312
652 msgid "B<file or device> to B<file or device>"
653 msgstr ""
654
655 # type: textblock
656 #: ../src/guestfs.pod:314
657 msgid ""
658 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
659 "devices in the guest."
660 msgstr ""
661
662 # type: textblock
663 #: ../src/guestfs.pod:317
664 msgid "Example: duplicate the contents of an LV:"
665 msgstr ""
666
667 # type: verbatim
668 #: ../src/guestfs.pod:319
669 #, no-wrap
670 msgid ""
671 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
672 "\n"
673 msgstr ""
674
675 # type: textblock
676 #: ../src/guestfs.pod:321
677 msgid ""
678 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
679 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
680 "L</guestfs_copy_size>."
681 msgstr ""
682
683 # type: =item
684 #: ../src/guestfs.pod:325
685 msgid "B<file on the host> to B<file or device>"
686 msgstr ""
687
688 # type: textblock
689 #: ../src/guestfs.pod:327
690 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
691 msgstr ""
692
693 # type: =item
694 #: ../src/guestfs.pod:329
695 msgid "B<file or device> to B<file on the host>"
696 msgstr ""
697
698 # type: textblock
699 #: ../src/guestfs.pod:331
700 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
701 msgstr ""
702
703 # type: =head2
704 #: ../src/guestfs.pod:335
705 msgid "LISTING FILES"
706 msgstr ""
707
708 # type: textblock
709 #: ../src/guestfs.pod:337
710 msgid ""
711 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
712 "L<guestfish(1)>-equivalent command C<ll>)."
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:340
717 msgid ""
718 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
719 "programs, as a flat list of strings."
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:343
724 msgid ""
725 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
726 "directory, plus additional information about each one.  It is more "
727 "equivalent to using the L<readdir(3)> call on a local filesystem."
728 msgstr ""
729
730 # type: textblock
731 #: ../src/guestfs.pod:347
732 msgid ""
733 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
734 "files."
735 msgstr ""
736
737 # type: =head2
738 #: ../src/guestfs.pod:350
739 msgid "RUNNING COMMANDS"
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:352
744 msgid ""
745 "Although libguestfs is primarily an API for manipulating files inside guest "
746 "images, we also provide some limited facilities for running commands inside "
747 "guests."
748 msgstr ""
749
750 # type: textblock
751 #: ../src/guestfs.pod:356
752 msgid "There are many limitations to this:"
753 msgstr ""
754
755 # type: =item
756 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370 ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:1159 ../src/guestfs.pod:1164 ../src/guestfs.pod:1168 ../src/guestfs.pod:1384 ../src/guestfs.pod:1389 ../src/guestfs.pod:1393 ../src/guestfs.pod:1495 ../src/guestfs.pod:1499 ../src/guestfs.pod:1503 ../src/guestfs.pod:1508 ../src/guestfs.pod:1516 ../src/guestfs.pod:1535 ../src/guestfs.pod:1543 ../src/guestfs.pod:1773 ../src/guestfs.pod:1779 ../src/guestfs.pod:1784 ../src/guestfs.pod:1790 ../src/guestfs.pod:1897 ../src/guestfs.pod:1901 ../src/guestfs.pod:1905 ../src/guestfs.pod:1909 ../src/guestfs-actions.pod:14 ../src/guestfs-actions.pod:21 ../src/guestfs-actions.pod:438 ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:453 ../src/guestfs-actions.pod:460 ../src/guestfs-actions.pod:1351 ../src/guestfs-actions.pod:1355 ../src/guestfs-actions.pod:1359 ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1389 ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1529 ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1586 ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1595 ../fish/guestfish.pod:364 ../fish/guestfish.pod:368 ../fish/guestfish.pod:372 ../fish/guestfish.pod:376 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:339 ../fish/guestfish-actions.pod:347 ../fish/guestfish-actions.pod:354 ../fish/guestfish-actions.pod:361 ../fish/guestfish-actions.pod:1056 ../fish/guestfish-actions.pod:1060 ../fish/guestfish-actions.pod:1064 ../fish/guestfish-actions.pod:1068 ../fish/guestfish-actions.pod:1076 ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084 ../fish/guestfish-actions.pod:1094 ../fish/guestfish-actions.pod:1098 ../fish/guestfish-actions.pod:1102 ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1196 ../fish/guestfish-actions.pod:1201 ../fish/guestfish-actions.pod:1206 ../fish/guestfish-actions.pod:1248 ../fish/guestfish-actions.pod:1252 ../fish/guestfish-actions.pod:1257 ../inspector/virt-inspector.pl:370 ../inspector/virt-inspector.pl:374 ../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
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
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
927 msgid "3."
928 msgstr ""
929
930 # type: textblock
931 #: ../src/guestfs.pod:459
932 msgid ""
933 "Optionally, set the security context for the API.  The correct security "
934 "context to use can only be known by inspecting the guest.  As an example:"
935 msgstr ""
936
937 # type: verbatim
938 #: ../src/guestfs.pod:463
939 #, no-wrap
940 msgid ""
941 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
942 "\n"
943 msgstr ""
944
945 # type: textblock
946 #: ../src/guestfs.pod:467
947 msgid "This will work for running commands and editing existing files."
948 msgstr ""
949
950 # type: textblock
951 #: ../src/guestfs.pod:469
952 msgid ""
953 "When new files are created, you may need to label them explicitly, for "
954 "example by running the external command C<restorecon pathname>."
955 msgstr ""
956
957 # type: =head2
958 #: ../src/guestfs.pod:473
959 msgid "UMASK"
960 msgstr ""
961
962 # type: textblock
963 #: ../src/guestfs.pod:475
964 msgid ""
965 "Certain calls are affected by the current file mode creation mask (the "
966 "\"umask\").  In particular ones which create files or directories, such as "
967 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
968 "either the default mode that the file is created with or modifies the mode "
969 "that you supply."
970 msgstr ""
971
972 # type: textblock
973 #: ../src/guestfs.pod:481
974 msgid ""
975 "The default umask is C<022>, so files are created with modes such as C<0644> "
976 "and directories with C<0755>."
977 msgstr ""
978
979 # type: textblock
980 #: ../src/guestfs.pod:484
981 msgid ""
982 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
983 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
984 "L</guestfs_chmod> after creating each file or directory."
985 msgstr ""
986
987 # type: textblock
988 #: ../src/guestfs.pod:488
989 msgid "For more information about umask, see L<umask(2)>."
990 msgstr ""
991
992 # type: =head1
993 #: ../src/guestfs.pod:490 ../fish/guestfish.pod:630
994 msgid "ENCRYPTED DISKS"
995 msgstr ""
996
997 # type: textblock
998 #: ../src/guestfs.pod:492
999 msgid ""
1000 "Libguestfs allows you to access Linux guests which have been encrypted using "
1001 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1002 "standard.  This includes nearly all whole disk encryption systems used by "
1003 "modern Linux guests."
1004 msgstr ""
1005
1006 # type: textblock
1007 #: ../src/guestfs.pod:498
1008 msgid ""
1009 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1010 "returns the string C<crypto_LUKS>)."
1011 msgstr ""
1012
1013 # type: textblock
1014 #: ../src/guestfs.pod:501
1015 msgid ""
1016 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1017 "will require the passphrase!"
1018 msgstr ""
1019
1020 # type: textblock
1021 #: ../src/guestfs.pod:504
1022 msgid ""
1023 "Opening a LUKS device creates a new device mapper device called "
1024 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1025 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1026 "decrypted from and encrypted to the underlying block device respectively."
1027 msgstr ""
1028
1029 # type: textblock
1030 #: ../src/guestfs.pod:510
1031 msgid ""
1032 "LVM volume groups on the device can be made visible by calling "
1033 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1034 "volume(s) can now be mounted in the usual way."
1035 msgstr ""
1036
1037 # type: textblock
1038 #: ../src/guestfs.pod:514
1039 msgid ""
1040 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1041 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1042 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1043 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1044 "underlying encrypted block device)."
1045 msgstr ""
1046
1047 # type: =head2
1048 #: ../src/guestfs.pod:521
1049 msgid "INSPECTION"
1050 msgstr ""
1051
1052 # type: textblock
1053 #: ../src/guestfs.pod:523
1054 msgid ""
1055 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1056 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1057 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1058 "frequently used part of this library has been rewritten in C and moved into "
1059 "the core code)."
1060 msgstr ""
1061
1062 # type: textblock
1063 #: ../src/guestfs.pod:529
1064 msgid ""
1065 "Add all disks belonging to the unknown virtual machine and call "
1066 "L</guestfs_launch> in the usual way."
1067 msgstr ""
1068
1069 # type: textblock
1070 #: ../src/guestfs.pod:532
1071 msgid ""
1072 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1073 "and certain heuristics, and returns a list of operating systems that were "
1074 "found.  An empty list means none were found.  A single element is the root "
1075 "filesystem of the operating system.  For dual- or multi-boot guests, "
1076 "multiple roots can be returned, each one corresponding to a separate "
1077 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1078 "world of virtualization, but since this scenario can happen, we have built "
1079 "libguestfs to deal with it.)"
1080 msgstr ""
1081
1082 # type: textblock
1083 #: ../src/guestfs.pod:541
1084 msgid ""
1085 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1086 "to get additional details about that operating system.  For example, call "
1087 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1088 "Windows and Linux-based operating systems respectively."
1089 msgstr ""
1090
1091 # type: textblock
1092 #: ../src/guestfs.pod:547
1093 msgid ""
1094 "Un*x-like and Linux-based operating systems usually consist of several "
1095 "filesystems which are mounted at boot time (for example, a separate boot "
1096 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1097 "filesystems correspond to mount points.  Call "
1098 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1099 "hash table like this example:"
1100 msgstr ""
1101
1102 # type: verbatim
1103 #: ../src/guestfs.pod:554
1104 #, no-wrap
1105 msgid ""
1106 " /boot => /dev/sda1\n"
1107 " /     => /dev/vg_guest/lv_root\n"
1108 " /usr  => /dev/vg_guest/lv_usr\n"
1109 "\n"
1110 msgstr ""
1111
1112 # type: textblock
1113 #: ../src/guestfs.pod:558
1114 msgid ""
1115 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1116 "filesystems as suggested."
1117 msgstr ""
1118
1119 # type: textblock
1120 #: ../src/guestfs.pod:561
1121 msgid ""
1122 "Be careful to mount filesystems in the right order (eg. C</> before "
1123 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1124 "work."
1125 msgstr ""
1126
1127 # type: textblock
1128 #: ../src/guestfs.pod:565
1129 msgid ""
1130 "Inspection currently only works for some common operating systems.  "
1131 "Contributors are welcome to send patches for other operating systems that we "
1132 "currently cannot detect."
1133 msgstr ""
1134
1135 # type: textblock
1136 #: ../src/guestfs.pod:569
1137 msgid ""
1138 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1139 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1140 "encrypted devices."
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:573
1145 msgid ""
1146 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1147 "inspection and caches the results in the guest handle.  Subsequent calls to "
1148 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1149 "re-read the disks.  If you change the content of the guest disks, you can "
1150 "redo inspection by calling L</guestfs_inspect_os> again."
1151 msgstr ""
1152
1153 # type: =head2
1154 #: ../src/guestfs.pod:580
1155 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1156 msgstr ""
1157
1158 # type: textblock
1159 #: ../src/guestfs.pod:582
1160 msgid ""
1161 "Libguestfs can mount NTFS partitions.  It does this using the "
1162 "L<http://www.ntfs-3g.org/> driver."
1163 msgstr ""
1164
1165 # type: textblock
1166 #: ../src/guestfs.pod:585
1167 msgid ""
1168 "DOS and Windows still use drive letters, and the filesystems are always "
1169 "treated as case insensitive by Windows itself, and therefore you might find "
1170 "a Windows configuration file referring to a path like "
1171 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1172 "that directory might be referred to as C</WINDOWS/System32>."
1173 msgstr ""
1174
1175 # type: textblock
1176 #: ../src/guestfs.pod:591
1177 msgid ""
1178 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1179 "libguestfs to read the appropriate Windows Registry and configuration files, "
1180 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1181 "L<virt-inspector(1)>)."
1182 msgstr ""
1183
1184 # type: textblock
1185 #: ../src/guestfs.pod:596
1186 msgid ""
1187 "Replacing backslash characters with forward slash characters is also outside "
1188 "the scope of libguestfs, but something that you can easily do."
1189 msgstr ""
1190
1191 # type: textblock
1192 #: ../src/guestfs.pod:599
1193 msgid ""
1194 "Where we can help is in resolving the case insensitivity of paths.  For "
1195 "this, call L</guestfs_case_sensitive_path>."
1196 msgstr ""
1197
1198 # type: textblock
1199 #: ../src/guestfs.pod:602
1200 msgid ""
1201 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1202 "files, through the library C<hivex> which is part of the libguestfs project "
1203 "although ships as a separate tarball.  You have to locate and download the "
1204 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1205 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1206 "L<virt-win-reg(1)> for more help on this issue."
1207 msgstr ""
1208
1209 # type: =head2
1210 #: ../src/guestfs.pod:610
1211 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1212 msgstr ""
1213
1214 # type: textblock
1215 #: ../src/guestfs.pod:612
1216 msgid ""
1217 "Although we don't want to discourage you from using the C API, we will "
1218 "mention here that the same API is also available in other languages."
1219 msgstr ""
1220
1221 # type: textblock
1222 #: ../src/guestfs.pod:615
1223 msgid ""
1224 "The API is broadly identical in all supported languages.  This means that "
1225 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1226 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1227 "words, a straightforward, predictable isomorphism between each language."
1228 msgstr ""
1229
1230 # type: textblock
1231 #: ../src/guestfs.pod:621
1232 msgid ""
1233 "Error messages are automatically transformed into exceptions if the language "
1234 "supports it."
1235 msgstr ""
1236
1237 # type: textblock
1238 #: ../src/guestfs.pod:624
1239 msgid ""
1240 "We don't try to \"object orientify\" parts of the API in OO languages, "
1241 "although contributors are welcome to write higher level APIs above what we "
1242 "provide in their favourite languages if they wish."
1243 msgstr ""
1244
1245 # type: =item
1246 #: ../src/guestfs.pod:630
1247 msgid "B<C++>"
1248 msgstr ""
1249
1250 # type: textblock
1251 #: ../src/guestfs.pod:632
1252 msgid ""
1253 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1254 "identical to the C API.  C++ classes and exceptions are not used."
1255 msgstr ""
1256
1257 # type: =item
1258 #: ../src/guestfs.pod:636
1259 msgid "B<C#>"
1260 msgstr ""
1261
1262 # type: textblock
1263 #: ../src/guestfs.pod:638
1264 msgid ""
1265 "The C# bindings are highly experimental.  Please read the warnings at the "
1266 "top of C<csharp/Libguestfs.cs>."
1267 msgstr ""
1268
1269 # type: =item
1270 #: ../src/guestfs.pod:641
1271 msgid "B<Haskell>"
1272 msgstr ""
1273
1274 # type: textblock
1275 #: ../src/guestfs.pod:643
1276 msgid ""
1277 "This is the only language binding that is working but incomplete.  Only "
1278 "calls which return simple integers have been bound in Haskell, and we are "
1279 "looking for help to complete this binding."
1280 msgstr ""
1281
1282 # type: =item
1283 #: ../src/guestfs.pod:647
1284 msgid "B<Java>"
1285 msgstr ""
1286
1287 # type: textblock
1288 #: ../src/guestfs.pod:649
1289 msgid ""
1290 "Full documentation is contained in the Javadoc which is distributed with "
1291 "libguestfs."
1292 msgstr ""
1293
1294 # type: =item
1295 #: ../src/guestfs.pod:652
1296 msgid "B<OCaml>"
1297 msgstr ""
1298
1299 # type: textblock
1300 #: ../src/guestfs.pod:654
1301 msgid "For documentation see the file C<guestfs.mli>."
1302 msgstr ""
1303
1304 # type: =item
1305 #: ../src/guestfs.pod:656
1306 msgid "B<Perl>"
1307 msgstr ""
1308
1309 # type: textblock
1310 #: ../src/guestfs.pod:658
1311 msgid "For documentation see L<Sys::Guestfs(3)>."
1312 msgstr ""
1313
1314 # type: =item
1315 #: ../src/guestfs.pod:660
1316 msgid "B<PHP>"
1317 msgstr ""
1318
1319 # type: textblock
1320 #: ../src/guestfs.pod:662
1321 msgid ""
1322 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1323 "the php-libguestfs package for your distribution."
1324 msgstr ""
1325
1326 # type: textblock
1327 #: ../src/guestfs.pod:665
1328 msgid "The PHP binding only works correctly on 64 bit machines."
1329 msgstr ""
1330
1331 # type: =item
1332 #: ../src/guestfs.pod:667
1333 msgid "B<Python>"
1334 msgstr ""
1335
1336 # type: textblock
1337 #: ../src/guestfs.pod:669
1338 msgid "For documentation do:"
1339 msgstr ""
1340
1341 # type: verbatim
1342 #: ../src/guestfs.pod:671
1343 #, no-wrap
1344 msgid ""
1345 " $ python\n"
1346 " >>> import guestfs\n"
1347 " >>> help (guestfs)\n"
1348 "\n"
1349 msgstr ""
1350
1351 # type: =item
1352 #: ../src/guestfs.pod:675
1353 msgid "B<Ruby>"
1354 msgstr ""
1355
1356 # type: textblock
1357 #: ../src/guestfs.pod:677
1358 msgid ""
1359 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1360 "can find examples written in Ruby in the libguestfs source."
1361 msgstr ""
1362
1363 # type: =item
1364 #: ../src/guestfs.pod:680
1365 msgid "B<shell scripts>"
1366 msgstr ""
1367
1368 # type: textblock
1369 #: ../src/guestfs.pod:682
1370 msgid "For documentation see L<guestfish(1)>."
1371 msgstr ""
1372
1373 # type: =head2
1374 #: ../src/guestfs.pod:686
1375 msgid "LIBGUESTFS GOTCHAS"
1376 msgstr ""
1377
1378 # type: textblock
1379 #: ../src/guestfs.pod:688
1380 msgid ""
1381 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1382 "system [...] that works in the way it is documented but is counterintuitive "
1383 "and almost invites mistakes.\""
1384 msgstr ""
1385
1386 # type: textblock
1387 #: ../src/guestfs.pod:692
1388 msgid ""
1389 "Since we developed libguestfs and the associated tools, there are several "
1390 "things we would have designed differently, but are now stuck with for "
1391 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1392 "release, you can expect these to change.  Beware of them."
1393 msgstr ""
1394
1395 # type: =item
1396 #: ../src/guestfs.pod:700
1397 msgid "Autosync / forgetting to sync."
1398 msgstr ""
1399
1400 # type: textblock
1401 #: ../src/guestfs.pod:702
1402 msgid ""
1403 "When modifying a filesystem from C or another language, you B<must> unmount "
1404 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1405 "libguestfs handle.  You can also call:"
1406 msgstr ""
1407
1408 # type: verbatim
1409 #: ../src/guestfs.pod:706
1410 #, no-wrap
1411 msgid ""
1412 " guestfs_set_autosync (g, 1);\n"
1413 "\n"
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:708
1418 msgid ""
1419 "to have the unmount/sync done automatically for you when the handle 'g' is "
1420 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1421 "q.v.)"
1422 msgstr ""
1423
1424 # type: textblock
1425 #: ../src/guestfs.pod:712
1426 msgid ""
1427 "If you forget to do this, then it is entirely possible that your changes "
1428 "won't be written out, or will be partially written, or (very rarely) that "
1429 "you'll get disk corruption."
1430 msgstr ""
1431
1432 # type: textblock
1433 #: ../src/guestfs.pod:716
1434 msgid ""
1435 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1436 "guestfish scripts that forget to sync will work just fine, which can make "
1437 "this very puzzling if you are trying to debug a problem."
1438 msgstr ""
1439
1440 # type: textblock
1441 #: ../src/guestfs.pod:720
1442 msgid ""
1443 "Update: Autosync is enabled by default for all API users starting from "
1444 "libguestfs 1.5.24."
1445 msgstr ""
1446
1447 # type: =item
1448 #: ../src/guestfs.pod:723
1449 msgid "Mount option C<-o sync> should not be the default."
1450 msgstr ""
1451
1452 # type: textblock
1453 #: ../src/guestfs.pod:725
1454 msgid ""
1455 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1456 "However C<-o sync> does not add any reliability benefit, but does have a "
1457 "very large performance impact."
1458 msgstr ""
1459
1460 # type: textblock
1461 #: ../src/guestfs.pod:729
1462 msgid ""
1463 "The work around is to use L</guestfs_mount_options> and set the mount "
1464 "options that you actually want to use."
1465 msgstr ""
1466
1467 # type: =item
1468 #: ../src/guestfs.pod:732
1469 msgid "Read-only should be the default."
1470 msgstr ""
1471
1472 # type: textblock
1473 #: ../src/guestfs.pod:734
1474 msgid ""
1475 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1476 "specify I<--rw> if you want to make changes to the image."
1477 msgstr ""
1478
1479 # type: textblock
1480 #: ../src/guestfs.pod:737
1481 msgid "This would reduce the potential to corrupt live VM images."
1482 msgstr ""
1483
1484 # type: textblock
1485 #: ../src/guestfs.pod:739
1486 msgid ""
1487 "Note that many filesystems change the disk when you just mount and unmount, "
1488 "even if you didn't perform any writes.  You need to use "
1489 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1490 msgstr ""
1491
1492 # type: =item
1493 #: ../src/guestfs.pod:743
1494 msgid "guestfish command line is hard to use."
1495 msgstr ""
1496
1497 # type: textblock
1498 #: ../src/guestfs.pod:745
1499 msgid ""
1500 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1501 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1502 "exist, so it fails.  In earlier versions of guestfish the error message was "
1503 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1504 "we should have used C<guestfish -c command> to run commands."
1505 msgstr ""
1506
1507 # type: =item
1508 #: ../src/guestfs.pod:752
1509 msgid "guestfish megabyte modifiers don't work right on all commands"
1510 msgstr ""
1511
1512 # type: textblock
1513 #: ../src/guestfs.pod:754
1514 msgid ""
1515 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1516 "other modifiers).  What guestfish actually does is to multiply the number "
1517 "part by the modifier part and pass the result to the C API.  However this "
1518 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1519 "expecting some other unit (eg. megabytes)."
1520 msgstr ""
1521
1522 # type: textblock
1523 #: ../src/guestfs.pod:761
1524 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1525 msgstr ""
1526
1527 # type: verbatim
1528 #: ../src/guestfs.pod:763
1529 #, no-wrap
1530 msgid ""
1531 " lvcreate LV VG 100M\n"
1532 "\n"
1533 msgstr ""
1534
1535 # type: textblock
1536 #: ../src/guestfs.pod:765
1537 msgid ""
1538 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1539 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1540 "megabytes * megabytes) logical volume.  The error message you get from this "
1541 "is also a little obscure."
1542 msgstr ""
1543
1544 # type: textblock
1545 #: ../src/guestfs.pod:770
1546 msgid ""
1547 "This could be fixed in the generator by specially marking parameters and "
1548 "return values which take bytes or other units."
1549 msgstr ""
1550
1551 # type: =item
1552 #: ../src/guestfs.pod:773
1553 msgid "Library should return errno with error messages."
1554 msgstr ""
1555
1556 # type: textblock
1557 #: ../src/guestfs.pod:775
1558 msgid ""
1559 "It would be a nice-to-have to be able to get the original value of 'errno' "
1560 "from inside the appliance along error paths (where set).  Currently "
1561 "L<guestmount(1)> goes through hoops to try to reverse the error message "
1562 "string into an errno, see the function error() in fuse/guestmount.c."
1563 msgstr ""
1564
1565 # type: textblock
1566 #: ../src/guestfs.pod:781
1567 msgid ""
1568 "In libguestfs 1.5.4, the protocol was changed so that the Linux errno is "
1569 "sent back from the daemon."
1570 msgstr ""
1571
1572 # type: =item
1573 #: ../src/guestfs.pod:784
1574 msgid "Ambiguity between devices and paths"
1575 msgstr ""
1576
1577 # type: textblock
1578 #: ../src/guestfs.pod:786
1579 msgid ""
1580 "There is a subtle ambiguity in the API between a device name "
1581 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1582 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1583 msgstr ""
1584
1585 # type: textblock
1586 #: ../src/guestfs.pod:791
1587 msgid ""
1588 "In the current API we usually resolve this ambiguity by having two separate "
1589 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1590 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1591 "detecting if the path supplied begins with C</dev/>."
1592 msgstr ""
1593
1594 # type: textblock
1595 #: ../src/guestfs.pod:797
1596 msgid ""
1597 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1598 "make paths/devices into structured names.  One way to do this would be to "
1599 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1600 "aspect of grub.  Another way would be to use a structured type, equivalent "
1601 "to this OCaml type:"
1602 msgstr ""
1603
1604 # type: verbatim
1605 #: ../src/guestfs.pod:803
1606 #, no-wrap
1607 msgid ""
1608 " type path = Path of string | Device of int | Partition of int * int\n"
1609 "\n"
1610 msgstr ""
1611
1612 # type: textblock
1613 #: ../src/guestfs.pod:805
1614 msgid "which would allow you to pass arguments like:"
1615 msgstr ""
1616
1617 # type: verbatim
1618 #: ../src/guestfs.pod:807
1619 #, no-wrap
1620 msgid ""
1621 " Path \"/foo/bar\"\n"
1622 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1623 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1624 " Path \"/dev/sdb2\"    (* not a device *)\n"
1625 "\n"
1626 msgstr ""
1627
1628 # type: textblock
1629 #: ../src/guestfs.pod:812
1630 msgid ""
1631 "As you can see there are still problems to resolve even with this "
1632 "representation.  Also consider how it might work in guestfish."
1633 msgstr ""
1634
1635 # type: =head2
1636 #: ../src/guestfs.pod:817
1637 msgid "PROTOCOL LIMITS"
1638 msgstr ""
1639
1640 # type: textblock
1641 #: ../src/guestfs.pod:819
1642 msgid ""
1643 "Internally libguestfs uses a message-based protocol to pass API calls and "
1644 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1645 "plenty more detail about this).  The maximum message size used by the "
1646 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1647 "aware of this limit.  The API calls which may be affected are individually "
1648 "documented, with a link back to this section of the documentation."
1649 msgstr ""
1650
1651 # type: textblock
1652 #: ../src/guestfs.pod:827
1653 msgid ""
1654 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1655 "a simple string.  Because this string is at some point internally encoded as "
1656 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1657 "the requested file is larger than this then you will get an error."
1658 msgstr ""
1659
1660 # type: textblock
1661 #: ../src/guestfs.pod:833
1662 msgid ""
1663 "In order to transfer large files into and out of the guest filesystem, you "
1664 "need to use particular calls that support this.  The sections L</UPLOADING> "
1665 "and L</DOWNLOADING> document how to do this."
1666 msgstr ""
1667
1668 # type: textblock
1669 #: ../src/guestfs.pod:837
1670 msgid ""
1671 "You might also consider mounting the disk image using our FUSE filesystem "
1672 "support (L<guestmount(1)>)."
1673 msgstr ""
1674
1675 # type: =head2
1676 #: ../src/guestfs.pod:840
1677 msgid "KEYS AND PASSPHRASES"
1678 msgstr ""
1679
1680 # type: textblock
1681 #: ../src/guestfs.pod:842
1682 msgid ""
1683 "Certain libguestfs calls take a parameter that contains sensitive key "
1684 "material, passed in as a C string."
1685 msgstr ""
1686
1687 # type: textblock
1688 #: ../src/guestfs.pod:845
1689 msgid ""
1690 "In the future we would hope to change the libguestfs implementation so that "
1691 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1692 "swap.  However this is I<not> done at the moment, because of the complexity "
1693 "of such an implementation."
1694 msgstr ""
1695
1696 # type: textblock
1697 #: ../src/guestfs.pod:850
1698 msgid ""
1699 "Therefore you should be aware that any key parameter you pass to libguestfs "
1700 "might end up being written out to the swap partition.  If this is a concern, "
1701 "scrub the swap partition or don't use libguestfs on encrypted devices."
1702 msgstr ""
1703
1704 # type: =head1
1705 #: ../src/guestfs.pod:855
1706 msgid "CONNECTION MANAGEMENT"
1707 msgstr ""
1708
1709 # type: =head2
1710 #: ../src/guestfs.pod:857
1711 msgid "guestfs_h *"
1712 msgstr ""
1713
1714 # type: textblock
1715 #: ../src/guestfs.pod:859
1716 msgid ""
1717 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1718 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1719 "handle and release all resources used."
1720 msgstr ""
1721
1722 # type: textblock
1723 #: ../src/guestfs.pod:863
1724 msgid ""
1725 "For information on using multiple handles and threads, see the section "
1726 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1727 msgstr ""
1728
1729 # type: =head2
1730 #: ../src/guestfs.pod:866
1731 msgid "guestfs_create"
1732 msgstr ""
1733
1734 # type: verbatim
1735 #: ../src/guestfs.pod:868
1736 #, no-wrap
1737 msgid ""
1738 " guestfs_h *guestfs_create (void);\n"
1739 "\n"
1740 msgstr ""
1741
1742 # type: textblock
1743 #: ../src/guestfs.pod:870
1744 msgid "Create a connection handle."
1745 msgstr ""
1746
1747 # type: textblock
1748 #: ../src/guestfs.pod:872
1749 msgid ""
1750 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1751 "on the handle at least once."
1752 msgstr ""
1753
1754 # type: textblock
1755 #: ../src/guestfs.pod:875
1756 msgid ""
1757 "This function returns a non-NULL pointer to a handle on success or NULL on "
1758 "error."
1759 msgstr ""
1760
1761 # type: textblock
1762 #: ../src/guestfs.pod:878
1763 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1764 msgstr ""
1765
1766 # type: textblock
1767 #: ../src/guestfs.pod:880
1768 msgid ""
1769 "You may also want to configure error handling for the handle.  See L</ERROR "
1770 "HANDLING> section below."
1771 msgstr ""
1772
1773 # type: =head2
1774 #: ../src/guestfs.pod:883
1775 msgid "guestfs_close"
1776 msgstr ""
1777
1778 # type: verbatim
1779 #: ../src/guestfs.pod:885
1780 #, no-wrap
1781 msgid ""
1782 " void guestfs_close (guestfs_h *g);\n"
1783 "\n"
1784 msgstr ""
1785
1786 # type: textblock
1787 #: ../src/guestfs.pod:887
1788 msgid "This closes the connection handle and frees up all resources used."
1789 msgstr ""
1790
1791 # type: =head1
1792 #: ../src/guestfs.pod:889
1793 msgid "ERROR HANDLING"
1794 msgstr ""
1795
1796 # type: textblock
1797 #: ../src/guestfs.pod:891
1798 msgid ""
1799 "The convention in all functions that return C<int> is that they return C<-1> "
1800 "to indicate an error.  You can get additional information on errors by "
1801 "calling L</guestfs_last_error> and/or by setting up an error handler with "
1802 "L</guestfs_set_error_handler>."
1803 msgstr ""
1804
1805 # type: textblock
1806 #: ../src/guestfs.pod:896
1807 msgid "The default error handler prints the information string to C<stderr>."
1808 msgstr ""
1809
1810 # type: textblock
1811 #: ../src/guestfs.pod:898
1812 msgid ""
1813 "Out of memory errors are handled differently.  The default action is to call "
1814 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
1815 "L</guestfs_set_out_of_memory_handler>."
1816 msgstr ""
1817
1818 # type: =head2
1819 #: ../src/guestfs.pod:902
1820 msgid "guestfs_last_error"
1821 msgstr ""
1822
1823 # type: verbatim
1824 #: ../src/guestfs.pod:904
1825 #, no-wrap
1826 msgid ""
1827 " const char *guestfs_last_error (guestfs_h *g);\n"
1828 "\n"
1829 msgstr ""
1830
1831 # type: textblock
1832 #: ../src/guestfs.pod:906
1833 msgid ""
1834 "This returns the last error message that happened on C<g>.  If there has not "
1835 "been an error since the handle was created, then this returns C<NULL>."
1836 msgstr ""
1837
1838 # type: textblock
1839 #: ../src/guestfs.pod:910
1840 msgid ""
1841 "The lifetime of the returned string is until the next error occurs, or "
1842 "L</guestfs_close> is called."
1843 msgstr ""
1844
1845 # type: textblock
1846 #: ../src/guestfs.pod:913
1847 msgid ""
1848 "The error string is not localized (ie. is always in English), because this "
1849 "makes searching for error messages in search engines give the largest number "
1850 "of results."
1851 msgstr ""
1852
1853 # type: =head2
1854 #: ../src/guestfs.pod:917
1855 msgid "guestfs_set_error_handler"
1856 msgstr ""
1857
1858 # type: verbatim
1859 #: ../src/guestfs.pod:919
1860 #, no-wrap
1861 msgid ""
1862 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1863 "                                           void *opaque,\n"
1864 "                                           const char *msg);\n"
1865 " void guestfs_set_error_handler (guestfs_h *g,\n"
1866 "                                 guestfs_error_handler_cb cb,\n"
1867 "                                 void *opaque);\n"
1868 "\n"
1869 msgstr ""
1870
1871 # type: textblock
1872 #: ../src/guestfs.pod:926
1873 msgid ""
1874 "The callback C<cb> will be called if there is an error.  The parameters "
1875 "passed to the callback are an opaque data pointer and the error message "
1876 "string."
1877 msgstr ""
1878
1879 # type: textblock
1880 #: ../src/guestfs.pod:930
1881 msgid ""
1882 "Note that the message string C<msg> is freed as soon as the callback "
1883 "function returns, so if you want to stash it somewhere you must make your "
1884 "own copy."
1885 msgstr ""
1886
1887 # type: textblock
1888 #: ../src/guestfs.pod:934
1889 msgid "The default handler prints messages on C<stderr>."
1890 msgstr ""
1891
1892 # type: textblock
1893 #: ../src/guestfs.pod:936
1894 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1895 msgstr ""
1896
1897 # type: =head2
1898 #: ../src/guestfs.pod:938
1899 msgid "guestfs_get_error_handler"
1900 msgstr ""
1901
1902 # type: verbatim
1903 #: ../src/guestfs.pod:940
1904 #, no-wrap
1905 msgid ""
1906 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1907 "                                                     void **opaque_rtn);\n"
1908 "\n"
1909 msgstr ""
1910
1911 # type: textblock
1912 #: ../src/guestfs.pod:943
1913 msgid "Returns the current error handler callback."
1914 msgstr ""
1915
1916 # type: =head2
1917 #: ../src/guestfs.pod:945
1918 msgid "guestfs_set_out_of_memory_handler"
1919 msgstr ""
1920
1921 # type: verbatim
1922 #: ../src/guestfs.pod:947
1923 #, no-wrap
1924 msgid ""
1925 " typedef void (*guestfs_abort_cb) (void);\n"
1926 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1927 "                                        guestfs_abort_cb);\n"
1928 "\n"
1929 msgstr ""
1930
1931 # type: textblock
1932 #: ../src/guestfs.pod:951
1933 msgid ""
1934 "The callback C<cb> will be called if there is an out of memory situation.  "
1935 "I<Note this callback must not return>."
1936 msgstr ""
1937
1938 # type: textblock
1939 #: ../src/guestfs.pod:954
1940 msgid "The default is to call L<abort(3)>."
1941 msgstr ""
1942
1943 # type: textblock
1944 #: ../src/guestfs.pod:956
1945 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
1946 msgstr ""
1947
1948 # type: =head2
1949 #: ../src/guestfs.pod:959
1950 msgid "guestfs_get_out_of_memory_handler"
1951 msgstr ""
1952
1953 # type: verbatim
1954 #: ../src/guestfs.pod:961
1955 #, no-wrap
1956 msgid ""
1957 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
1958 "\n"
1959 msgstr ""
1960
1961 # type: textblock
1962 #: ../src/guestfs.pod:963
1963 msgid "This returns the current out of memory handler."
1964 msgstr ""
1965
1966 # type: =head1
1967 #: ../src/guestfs.pod:965
1968 msgid "PATH"
1969 msgstr ""
1970
1971 # type: textblock
1972 #: ../src/guestfs.pod:967
1973 msgid ""
1974 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1975 "internal path."
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:970
1980 msgid ""
1981 "By default it looks for these in the directory C<$libdir/guestfs> "
1982 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1983 msgstr ""
1984
1985 # type: textblock
1986 #: ../src/guestfs.pod:973
1987 msgid ""
1988 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1989 "to change the directories that libguestfs will search in.  The value is a "
1990 "colon-separated list of paths.  The current directory is I<not> searched "
1991 "unless the path contains an empty element or C<.>.  For example "
1992 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1993 "then C</usr/lib/guestfs>."
1994 msgstr ""
1995
1996 # type: =head1
1997 #: ../src/guestfs.pod:980
1998 msgid "HIGH-LEVEL API ACTIONS"
1999 msgstr ""
2000
2001 # type: =head2
2002 #: ../src/guestfs.pod:982
2003 msgid "ABI GUARANTEE"
2004 msgstr ""
2005
2006 # type: textblock
2007 #: ../src/guestfs.pod:984
2008 msgid ""
2009 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2010 "actions as outlined in this section.  Although we will deprecate some "
2011 "actions, for example if they get replaced by newer calls, we will keep the "
2012 "old actions forever.  This allows you the developer to program in confidence "
2013 "against the libguestfs API."
2014 msgstr ""
2015
2016 # type: textblock
2017 #: ../src/guestfs.pod:990 ../fish/guestfish.pod:860
2018 msgid "@ACTIONS@"
2019 msgstr ""
2020
2021 # type: =head1
2022 #: ../src/guestfs.pod:992
2023 msgid "STRUCTURES"
2024 msgstr ""
2025
2026 # type: textblock
2027 #: ../src/guestfs.pod:994
2028 msgid "@STRUCTS@"
2029 msgstr ""
2030
2031 # type: =head1
2032 #: ../src/guestfs.pod:996
2033 msgid "AVAILABILITY"
2034 msgstr ""
2035
2036 # type: =head2
2037 #: ../src/guestfs.pod:998
2038 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2039 msgstr ""
2040
2041 # type: textblock
2042 #: ../src/guestfs.pod:1000
2043 msgid ""
2044 "Using L</guestfs_available> you can test availability of the following "
2045 "groups of functions.  This test queries the appliance to see if the "
2046 "appliance you are currently using supports the functionality."
2047 msgstr ""
2048
2049 # type: textblock
2050 #: ../src/guestfs.pod:1005
2051 msgid "@AVAILABILITY@"
2052 msgstr ""
2053
2054 # type: =head2
2055 #: ../src/guestfs.pod:1007
2056 msgid "GUESTFISH supported COMMAND"
2057 msgstr ""
2058
2059 # type: textblock
2060 #: ../src/guestfs.pod:1009
2061 msgid ""
2062 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2063 "prints out the available groups and whether they are supported by this build "
2064 "of libguestfs.  Note however that you have to do C<run> first."
2065 msgstr ""
2066
2067 # type: =head2
2068 #: ../src/guestfs.pod:1014
2069 msgid "SINGLE CALLS AT COMPILE TIME"
2070 msgstr ""
2071
2072 # type: textblock
2073 #: ../src/guestfs.pod:1016
2074 msgid ""
2075 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2076 "function, such as:"
2077 msgstr ""
2078
2079 # type: verbatim
2080 #: ../src/guestfs.pod:1019
2081 #, no-wrap
2082 msgid ""
2083 " #define LIBGUESTFS_HAVE_DD 1\n"
2084 "\n"
2085 msgstr ""
2086
2087 # type: textblock
2088 #: ../src/guestfs.pod:1021
2089 msgid "if L</guestfs_dd> is available."
2090 msgstr ""
2091
2092 # type: textblock
2093 #: ../src/guestfs.pod:1023
2094 msgid ""
2095 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2096 "function is available at compile time, we recommended using build tools such "
2097 "as autoconf or cmake.  For example in autotools you could use:"
2098 msgstr ""
2099
2100 # type: verbatim
2101 #: ../src/guestfs.pod:1028
2102 #, no-wrap
2103 msgid ""
2104 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2105 " AC_CHECK_FUNCS([guestfs_dd])\n"
2106 "\n"
2107 msgstr ""
2108
2109 # type: textblock
2110 #: ../src/guestfs.pod:1031
2111 msgid ""
2112 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2113 "in your program."
2114 msgstr ""
2115
2116 # type: =head2
2117 #: ../src/guestfs.pod:1034
2118 msgid "SINGLE CALLS AT RUN TIME"
2119 msgstr ""
2120
2121 # type: textblock
2122 #: ../src/guestfs.pod:1036
2123 msgid ""
2124 "Testing at compile time doesn't guarantee that a function really exists in "
2125 "the library.  The reason is that you might be dynamically linked against a "
2126 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2127 "This situation unfortunately results in a segmentation fault, which is a "
2128 "shortcoming of the C dynamic linking system itself."
2129 msgstr ""
2130
2131 # type: textblock
2132 #: ../src/guestfs.pod:1043
2133 msgid ""
2134 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2135 "in this example program (note that you still need the compile time check as "
2136 "well):"
2137 msgstr ""
2138
2139 # type: verbatim
2140 #: ../src/guestfs.pod:1047
2141 #, no-wrap
2142 msgid ""
2143 " #include <stdio.h>\n"
2144 " #include <stdlib.h>\n"
2145 " #include <unistd.h>\n"
2146 " #include <dlfcn.h>\n"
2147 " #include <guestfs.h>\n"
2148 " \n"
2149 msgstr ""
2150
2151 # type: verbatim
2152 #: ../src/guestfs.pod:1053
2153 #, no-wrap
2154 msgid ""
2155 " main ()\n"
2156 " {\n"
2157 " #ifdef LIBGUESTFS_HAVE_DD\n"
2158 "   void *dl;\n"
2159 "   int has_function;\n"
2160 " \n"
2161 msgstr ""
2162
2163 # type: verbatim
2164 #: ../src/guestfs.pod:1059
2165 #, no-wrap
2166 msgid ""
2167 "   /* Test if the function guestfs_dd is really available. */\n"
2168 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2169 "   if (!dl) {\n"
2170 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2171 "     exit (EXIT_FAILURE);\n"
2172 "   }\n"
2173 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2174 "   dlclose (dl);\n"
2175 " \n"
2176 msgstr ""
2177
2178 # type: verbatim
2179 #: ../src/guestfs.pod:1068
2180 #, no-wrap
2181 msgid ""
2182 "   if (!has_function)\n"
2183 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2184 "   else {\n"
2185 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2186 "     /* Now it's safe to call\n"
2187 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2188 "     */\n"
2189 "   }\n"
2190 " #else\n"
2191 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2192 " #endif\n"
2193 "  }\n"
2194 "\n"
2195 msgstr ""
2196
2197 # type: textblock
2198 #: ../src/guestfs.pod:1081
2199 msgid ""
2200 "You may think the above is an awful lot of hassle, and it is.  There are "
2201 "other ways outside of the C linking system to ensure that this kind of "
2202 "incompatibility never arises, such as using package versioning:"
2203 msgstr ""
2204
2205 # type: verbatim
2206 #: ../src/guestfs.pod:1086
2207 #, no-wrap
2208 msgid ""
2209 " Requires: libguestfs >= 1.0.80\n"
2210 "\n"
2211 msgstr ""
2212
2213 # type: =head1
2214 #: ../src/guestfs.pod:1088
2215 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2216 msgstr ""
2217
2218 # type: textblock
2219 #: ../src/guestfs.pod:1090
2220 msgid ""
2221 "A recent feature of the API is the introduction of calls which take optional "
2222 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2223 "takes variable arguments (ie. C<...>), as in this example:"
2224 msgstr ""
2225
2226 # type: verbatim
2227 #: ../src/guestfs.pod:1095
2228 #, no-wrap
2229 msgid ""
2230 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2231 "\n"
2232 msgstr ""
2233
2234 # type: textblock
2235 #: ../src/guestfs.pod:1097
2236 msgid ""
2237 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2238 "call with no optional arguments specified:"
2239 msgstr ""
2240
2241 # type: verbatim
2242 #: ../src/guestfs.pod:1100
2243 #, no-wrap
2244 msgid ""
2245 " guestfs_add_drive_opts (g, filename, -1);\n"
2246 "\n"
2247 msgstr ""
2248
2249 # type: textblock
2250 #: ../src/guestfs.pod:1102
2251 msgid "With a single optional argument:"
2252 msgstr ""
2253
2254 # type: verbatim
2255 #: ../src/guestfs.pod:1104
2256 #, no-wrap
2257 msgid ""
2258 " guestfs_add_drive_opts (g, filename,\n"
2259 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2260 "                         -1);\n"
2261 "\n"
2262 msgstr ""
2263
2264 # type: textblock
2265 #: ../src/guestfs.pod:1108
2266 msgid "With two:"
2267 msgstr ""
2268
2269 # type: verbatim
2270 #: ../src/guestfs.pod:1110
2271 #, no-wrap
2272 msgid ""
2273 " guestfs_add_drive_opts (g, filename,\n"
2274 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2275 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2276 "                         -1);\n"
2277 "\n"
2278 msgstr ""
2279
2280 # type: textblock
2281 #: ../src/guestfs.pod:1115
2282 msgid ""
2283 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2284 "happen!"
2285 msgstr ""
2286
2287 # type: =head2
2288 #: ../src/guestfs.pod:1118
2289 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2290 msgstr ""
2291
2292 # type: textblock
2293 #: ../src/guestfs.pod:1120
2294 msgid ""
2295 "The second variant has the same name with the suffix C<_va>, which works the "
2296 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2297 "example function, this is declared:"
2298 msgstr ""
2299
2300 # type: verbatim
2301 #: ../src/guestfs.pod:1124
2302 #, no-wrap
2303 msgid ""
2304 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2305 "                                va_list args);\n"
2306 "\n"
2307 msgstr ""
2308
2309 # type: =head2
2310 #: ../src/guestfs.pod:1127
2311 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2312 msgstr ""
2313
2314 # type: textblock
2315 #: ../src/guestfs.pod:1129
2316 msgid ""
2317 "The third variant is useful where you need to construct these calls.  You "
2318 "pass in a structure where you fill in the optional fields.  The structure "
2319 "has a bitmask as the first element which you must set to indicate which "
2320 "fields you have filled in.  For our example function the structure and call "
2321 "are declared:"
2322 msgstr ""
2323
2324 # type: verbatim
2325 #: ../src/guestfs.pod:1135
2326 #, no-wrap
2327 msgid ""
2328 " struct guestfs_add_drive_opts_argv {\n"
2329 "   uint64_t bitmask;\n"
2330 "   int readonly;\n"
2331 "   const char *format;\n"
2332 "   /* ... */\n"
2333 " };\n"
2334 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2335 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2336 "\n"
2337 msgstr ""
2338
2339 # type: textblock
2340 #: ../src/guestfs.pod:1144
2341 msgid "You could call it like this:"
2342 msgstr ""
2343
2344 # type: verbatim
2345 #: ../src/guestfs.pod:1146
2346 #, no-wrap
2347 msgid ""
2348 " struct guestfs_add_drive_opts_argv optargs = {\n"
2349 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2350 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2351 "   .readonly = 1,\n"
2352 "   .format = \"qcow2\"\n"
2353 " };\n"
2354 " \n"
2355 msgstr ""
2356
2357 # type: verbatim
2358 #: ../src/guestfs.pod:1153
2359 #, no-wrap
2360 msgid ""
2361 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2362 "\n"
2363 msgstr ""
2364
2365 # type: textblock
2366 #: ../src/guestfs.pod:1155 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1244
2367 msgid "Notes:"
2368 msgstr ""
2369
2370 # type: textblock
2371 #: ../src/guestfs.pod:1161
2372 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2373 msgstr ""
2374
2375 # type: textblock
2376 #: ../src/guestfs.pod:1166
2377 msgid "You do not need to fill in all fields of the structure."
2378 msgstr ""
2379
2380 # type: textblock
2381 #: ../src/guestfs.pod:1170
2382 msgid ""
2383 "There must be a one-to-one correspondence between fields of the structure "
2384 "that are filled in, and bits set in the bitmask."
2385 msgstr ""
2386
2387 # type: =head2
2388 #: ../src/guestfs.pod:1175
2389 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2390 msgstr ""
2391
2392 # type: textblock
2393 #: ../src/guestfs.pod:1177
2394 msgid ""
2395 "In other languages, optional arguments are expressed in the way that is "
2396 "natural for that language.  We refer you to the language-specific "
2397 "documentation for more details on that."
2398 msgstr ""
2399
2400 # type: textblock
2401 #: ../src/guestfs.pod:1181
2402 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2403 msgstr ""
2404
2405 # type: =end
2406 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1188
2407 msgid "html"
2408 msgstr ""
2409
2410 # type: textblock
2411 #: ../src/guestfs.pod:1185
2412 msgid ""
2413 "<!-- old anchor for the next section --> <a "
2414 "name=\"state_machine_and_low_level_event_api\"/>"
2415 msgstr ""
2416
2417 # type: =head1
2418 #: ../src/guestfs.pod:1190
2419 msgid "ARCHITECTURE"
2420 msgstr ""
2421
2422 # type: textblock
2423 #: ../src/guestfs.pod:1192
2424 msgid ""
2425 "Internally, libguestfs is implemented by running an appliance (a special "
2426 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2427 "process of the main program."
2428 msgstr ""
2429
2430 # type: verbatim
2431 #: ../src/guestfs.pod:1196
2432 #, no-wrap
2433 msgid ""
2434 "  ___________________\n"
2435 " /                   \\\n"
2436 " | main program      |\n"
2437 " |                   |\n"
2438 " |                   |           child process / appliance\n"
2439 " |                   |           __________________________\n"
2440 " |                   |          / qemu                     \\\n"
2441 " +-------------------+   RPC    |      +-----------------+ |\n"
2442 " | libguestfs     <--------------------> guestfsd        | |\n"
2443 " |                   |          |      +-----------------+ |\n"
2444 " \\___________________/          |      | Linux kernel    | |\n"
2445 "                                |      +--^--------------+ |\n"
2446 "                                \\_________|________________/\n"
2447 "                                          |\n"
2448 "                                   _______v______\n"
2449 "                                  /              \\\n"
2450 "                                  | Device or    |\n"
2451 "                                  | disk image   |\n"
2452 "                                  \\______________/\n"
2453 "\n"
2454 msgstr ""
2455
2456 # type: textblock
2457 #: ../src/guestfs.pod:1216
2458 msgid ""
2459 "The library, linked to the main program, creates the child process and hence "
2460 "the appliance in the L</guestfs_launch> function."
2461 msgstr ""
2462
2463 # type: textblock
2464 #: ../src/guestfs.pod:1219
2465 msgid ""
2466 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2467 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2468 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2469 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2470 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2471 "attached to the qemu process which translates device access by the "
2472 "appliance's Linux kernel into accesses to the image."
2473 msgstr ""
2474
2475 # type: textblock
2476 #: ../src/guestfs.pod:1228
2477 msgid ""
2478 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2479 "Although the disk image you are attached to might also be used by some "
2480 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2481 "care if both libguestfs's qemu process and your virtual machine are trying "
2482 "to update the disk image at the same time, since these usually results in "
2483 "massive disk corruption)."
2484 msgstr ""
2485
2486 # type: =head1
2487 #: ../src/guestfs.pod:1235
2488 msgid "STATE MACHINE"
2489 msgstr ""
2490
2491 # type: textblock
2492 #: ../src/guestfs.pod:1237
2493 msgid "libguestfs uses a state machine to model the child process:"
2494 msgstr ""
2495
2496 # type: verbatim
2497 #: ../src/guestfs.pod:1239
2498 #, no-wrap
2499 msgid ""
2500 "                         |\n"
2501 "                    guestfs_create\n"
2502 "                         |\n"
2503 "                         |\n"
2504 "                     ____V_____\n"
2505 "                    /          \\\n"
2506 "                    |  CONFIG  |\n"
2507 "                    \\__________/\n"
2508 "                     ^ ^   ^  \\\n"
2509 "                    /  |    \\  \\ guestfs_launch\n"
2510 "                   /   |    _\\__V______\n"
2511 "                  /    |   /           \\\n"
2512 "                 /     |   | LAUNCHING |\n"
2513 "                /      |   \\___________/\n"
2514 "               /       |       /\n"
2515 "              /        |  guestfs_launch\n"
2516 "             /         |     /\n"
2517 "    ______  /        __|____V\n"
2518 "   /      \\ ------> /        \\\n"
2519 "   | BUSY |         | READY  |\n"
2520 "   \\______/ <------ \\________/\n"
2521 "\n"
2522 msgstr ""
2523
2524 # type: textblock
2525 #: ../src/guestfs.pod:1261
2526 msgid ""
2527 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2528 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2529 "(3) alternating between READY and BUSY as commands are issued to, and "
2530 "carried out by, the child process."
2531 msgstr ""
2532
2533 # type: textblock
2534 #: ../src/guestfs.pod:1266
2535 msgid ""
2536 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2537 "asynchronously at any time (eg. due to some internal error), and that causes "
2538 "the state to transition back to CONFIG."
2539 msgstr ""
2540
2541 # type: textblock
2542 #: ../src/guestfs.pod:1270
2543 msgid ""
2544 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2545 "issued when in the CONFIG state."
2546 msgstr ""
2547
2548 # type: textblock
2549 #: ../src/guestfs.pod:1273
2550 msgid ""
2551 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2552 "L</guestfs_launch> blocks until the child process is READY to accept "
2553 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2554 "moves the state from CONFIG to LAUNCHING while it is running."
2555 msgstr ""
2556
2557 # type: textblock
2558 #: ../src/guestfs.pod:1279
2559 msgid ""
2560 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2561 "state.  These API calls block waiting for the command to be carried out "
2562 "(ie. the state to transition to BUSY and then back to READY).  There are no "
2563 "non-blocking versions, and no way to issue more than one command per handle "
2564 "at the same time."
2565 msgstr ""
2566
2567 # type: textblock
2568 #: ../src/guestfs.pod:1285
2569 msgid ""
2570 "Finally, the child process sends asynchronous messages back to the main "
2571 "program, such as kernel log messages.  You can register a callback to "
2572 "receive these messages."
2573 msgstr ""
2574
2575 # type: =head2
2576 #: ../src/guestfs.pod:1289
2577 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2578 msgstr ""
2579
2580 # type: textblock
2581 #: ../src/guestfs.pod:1291
2582 msgid ""
2583 "The child process generates events in some situations.  Current events "
2584 "include: receiving a log message, the child process exits."
2585 msgstr ""
2586
2587 # type: textblock
2588 #: ../src/guestfs.pod:1294
2589 msgid ""
2590 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2591 "types of events."
2592 msgstr ""
2593
2594 # type: textblock
2595 #: ../src/guestfs.pod:1297
2596 msgid ""
2597 "Only I<one callback of each type> can be registered for each handle.  "
2598 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2599 "that type.  Cancel all callbacks of this type by calling this function with "
2600 "C<cb> set to C<NULL>."
2601 msgstr ""
2602
2603 # type: =head2
2604 #: ../src/guestfs.pod:1302
2605 msgid "guestfs_set_log_message_callback"
2606 msgstr ""
2607
2608 # type: verbatim
2609 #: ../src/guestfs.pod:1304
2610 #, no-wrap
2611 msgid ""
2612 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2613 "                                         char *buf, int len);\n"
2614 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2615 "                                        guestfs_log_message_cb cb,\n"
2616 "                                        void *opaque);\n"
2617 "\n"
2618 msgstr ""
2619
2620 # type: textblock
2621 #: ../src/guestfs.pod:1310
2622 msgid ""
2623 "The callback function C<cb> will be called whenever qemu or the guest writes "
2624 "anything to the console."
2625 msgstr ""
2626
2627 # type: textblock
2628 #: ../src/guestfs.pod:1313
2629 msgid "Use this function to capture kernel messages and similar."
2630 msgstr ""
2631
2632 # type: textblock
2633 #: ../src/guestfs.pod:1315
2634 msgid ""
2635 "Normally there is no log message handler, and log messages are just "
2636 "discarded."
2637 msgstr ""
2638
2639 # type: =head2
2640 #: ../src/guestfs.pod:1318
2641 msgid "guestfs_set_subprocess_quit_callback"
2642 msgstr ""
2643
2644 # type: verbatim
2645 #: ../src/guestfs.pod:1320
2646 #, no-wrap
2647 msgid ""
2648 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2649 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2650 "                                            guestfs_subprocess_quit_cb cb,\n"
2651 "                                            void *opaque);\n"
2652 "\n"
2653 msgstr ""
2654
2655 # type: textblock
2656 #: ../src/guestfs.pod:1325
2657 msgid ""
2658 "The callback function C<cb> will be called when the child process quits, "
2659 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2660 "corresponds to a transition from any state to the CONFIG state)."
2661 msgstr ""
2662
2663 # type: =head2
2664 #: ../src/guestfs.pod:1330
2665 msgid "guestfs_set_launch_done_callback"
2666 msgstr ""
2667
2668 # type: verbatim
2669 #: ../src/guestfs.pod:1332
2670 #, no-wrap
2671 msgid ""
2672 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2673 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2674 "                                        guestfs_launch_done_cb cb,\n"
2675 "                                        void *opaque);\n"
2676 "\n"
2677 msgstr ""
2678
2679 # type: textblock
2680 #: ../src/guestfs.pod:1337
2681 msgid ""
2682 "The callback function C<cb> will be called when the child process becomes "
2683 "ready first time after it has been launched.  (This corresponds to a "
2684 "transition from LAUNCHING to the READY state)."
2685 msgstr ""
2686
2687 # type: =head2
2688 #: ../src/guestfs.pod:1341
2689 msgid "guestfs_set_close_callback"
2690 msgstr ""
2691
2692 # type: verbatim
2693 #: ../src/guestfs.pod:1343
2694 #, no-wrap
2695 msgid ""
2696 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2697 " void guestfs_set_close_callback (guestfs_h *g,\n"
2698 "                                  guestfs_close_cb cb,\n"
2699 "                                  void *opaque);\n"
2700 "\n"
2701 msgstr ""
2702
2703 # type: textblock
2704 #: ../src/guestfs.pod:1348
2705 msgid ""
2706 "The callback function C<cb> will be called while the handle is being closed "
2707 "(synchronously from L</guestfs_close>)."
2708 msgstr ""
2709
2710 # type: textblock
2711 #: ../src/guestfs.pod:1351
2712 msgid ""
2713 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2714 "handles that are open when the program exits.  This means that this callback "
2715 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2716 "problems in higher-level languages (eg. if your HLL interpreter has already "
2717 "been cleaned up by the time this is called, and if your callback then jumps "
2718 "into some HLL function)."
2719 msgstr ""
2720
2721 # type: =head2
2722 #: ../src/guestfs.pod:1359
2723 msgid "guestfs_set_progress_callback"
2724 msgstr ""
2725
2726 # type: verbatim
2727 #: ../src/guestfs.pod:1361
2728 #, no-wrap
2729 msgid ""
2730 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2731 "                                      int proc_nr, int serial,\n"
2732 "                                      uint64_t position, uint64_t total);\n"
2733 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2734 "                                     guestfs_progress_cb cb,\n"
2735 "                                     void *opaque);\n"
2736 "\n"
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1368
2741 msgid ""
2742 "Some long-running operations can generate progress messages.  If this "
2743 "callback is registered, then it will be called each time a progress message "
2744 "is generated (usually two seconds after the operation started, and three "
2745 "times per second thereafter until it completes, although the frequency may "
2746 "change in future versions)."
2747 msgstr ""
2748
2749 # type: textblock
2750 #: ../src/guestfs.pod:1374
2751 msgid ""
2752 "The callback receives two numbers: C<position> and C<total>.  The units of "
2753 "C<total> are not defined, although for some operations C<total> may relate "
2754 "in some way to the amount of data to be transferred (eg. in bytes or "
2755 "megabytes), and C<position> may be the portion which has been transferred."
2756 msgstr ""
2757
2758 # type: textblock
2759 #: ../src/guestfs.pod:1380
2760 msgid "The only defined and stable parts of the API are:"
2761 msgstr ""
2762
2763 # type: textblock
2764 #: ../src/guestfs.pod:1386
2765 msgid ""
2766 "The callback can display to the user some type of progress bar or indicator "
2767 "which shows the ratio of C<position>:C<total>."
2768 msgstr ""
2769
2770 # type: textblock
2771 #: ../src/guestfs.pod:1391
2772 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2773 msgstr ""
2774
2775 # type: textblock
2776 #: ../src/guestfs.pod:1395
2777 msgid ""
2778 "If any progress notification is sent during a call, then a final progress "
2779 "notification is always sent when C<position> = C<total>."
2780 msgstr ""
2781
2782 # type: textblock
2783 #: ../src/guestfs.pod:1398
2784 msgid ""
2785 "This is to simplify caller code, so callers can easily set the progress "
2786 "indicator to \"100%\" at the end of the operation, without requiring special "
2787 "code to detect this case."
2788 msgstr ""
2789
2790 # type: textblock
2791 #: ../src/guestfs.pod:1404
2792 msgid ""
2793 "The callback also receives the procedure number and serial number of the "
2794 "call.  These are only useful for debugging protocol issues, and the callback "
2795 "can normally ignore them.  The callback may want to print these numbers in "
2796 "error messages or debugging messages."
2797 msgstr ""
2798
2799 # type: =head1
2800 #: ../src/guestfs.pod:1409
2801 msgid "PRIVATE DATA AREA"
2802 msgstr ""
2803
2804 # type: textblock
2805 #: ../src/guestfs.pod:1411
2806 msgid ""
2807 "You can attach named pieces of private data to the libguestfs handle, and "
2808 "fetch them by name for the lifetime of the handle.  This is called the "
2809 "private data area and is only available from the C API."
2810 msgstr ""
2811
2812 # type: textblock
2813 #: ../src/guestfs.pod:1415
2814 msgid "To attach a named piece of data, use the following call:"
2815 msgstr ""
2816
2817 # type: verbatim
2818 #: ../src/guestfs.pod:1417
2819 #, no-wrap
2820 msgid ""
2821 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2822 "\n"
2823 msgstr ""
2824
2825 # type: textblock
2826 #: ../src/guestfs.pod:1419
2827 msgid ""
2828 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2829 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2830 "overwritten."
2831 msgstr ""
2832
2833 # type: textblock
2834 #: ../src/guestfs.pod:1423
2835 msgid ""
2836 "You can use any C<key> you want, but names beginning with an underscore "
2837 "character are reserved for internal libguestfs purposes (for implementing "
2838 "language bindings).  It is recommended to prefix the name with some unique "
2839 "string to avoid collisions with other users."
2840 msgstr ""
2841
2842 # type: textblock
2843 #: ../src/guestfs.pod:1428
2844 msgid "To retrieve the pointer, use:"
2845 msgstr ""
2846
2847 # type: verbatim
2848 #: ../src/guestfs.pod:1430
2849 #, no-wrap
2850 msgid ""
2851 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2852 "\n"
2853 msgstr ""
2854
2855 # type: textblock
2856 #: ../src/guestfs.pod:1432
2857 msgid ""
2858 "This function returns C<NULL> if either no data is found associated with "
2859 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2860 "C<NULL>."
2861 msgstr ""
2862
2863 # type: textblock
2864 #: ../src/guestfs.pod:1436
2865 msgid ""
2866 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2867 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2868 "all.  In particular, libguestfs does I<not> try to free the data when the "
2869 "handle is closed.  If the data must be freed, then the caller must either "
2870 "free it before calling L</guestfs_close> or must set up a close callback to "
2871 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2872 "can be registered for a handle)."
2873 msgstr ""
2874
2875 # type: textblock
2876 #: ../src/guestfs.pod:1444
2877 msgid ""
2878 "The private data area is implemented using a hash table, and should be "
2879 "reasonably efficient for moderate numbers of keys."
2880 msgstr ""
2881
2882 # type: =head1
2883 #: ../src/guestfs.pod:1447
2884 msgid "BLOCK DEVICE NAMING"
2885 msgstr ""
2886
2887 # type: textblock
2888 #: ../src/guestfs.pod:1449
2889 msgid ""
2890 "In the kernel there is now quite a profusion of schemata for naming block "
2891 "devices (in this context, by I<block device> I mean a physical or virtual "
2892 "hard drive).  The original Linux IDE driver used names starting with "
2893 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
2894 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
2895 "replacement for the old IDE driver (particularly for SATA devices) those "
2896 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
2897 "machines with paravirtualized drivers.  This has created several different "
2898 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
2899 "Xen PV disks."
2900 msgstr ""
2901
2902 # type: textblock
2903 #: ../src/guestfs.pod:1461
2904 msgid ""
2905 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2906 "Linux kernel to access block devices.  We can run a variety of appliances "
2907 "based on a variety of Linux kernels."
2908 msgstr ""
2909
2910 # type: textblock
2911 #: ../src/guestfs.pod:1465
2912 msgid ""
2913 "This causes a problem for libguestfs because many API calls use device or "
2914 "partition names.  Working scripts and the recipe (example) scripts that we "
2915 "make available over the internet could fail if the naming scheme changes."
2916 msgstr ""
2917
2918 # type: textblock
2919 #: ../src/guestfs.pod:1470
2920 msgid ""
2921 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2922 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2923 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2924 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2925 msgstr ""
2926
2927 # type: textblock
2928 #: ../src/guestfs.pod:1476
2929 msgid ""
2930 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2931 "L</guestfs_list_partitions> and similar calls return the true names of the "
2932 "devices and partitions as known to the appliance."
2933 msgstr ""
2934
2935 # type: =head2
2936 #: ../src/guestfs.pod:1481
2937 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2938 msgstr ""
2939
2940 # type: textblock
2941 #: ../src/guestfs.pod:1483
2942 msgid ""
2943 "Usually this translation is transparent.  However in some (very rare)  cases "
2944 "you may need to know the exact algorithm.  Such cases include where you use "
2945 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
2946 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
2947 "devices."
2948 msgstr ""
2949
2950 # type: textblock
2951 #: ../src/guestfs.pod:1489
2952 msgid ""
2953 "The algorithm is applied only to I<parameters> which are known to be either "
2954 "device or partition names.  Return values from functions such as "
2955 "L</guestfs_list_devices> are never changed."
2956 msgstr ""
2957
2958 # type: textblock
2959 #: ../src/guestfs.pod:1497
2960 msgid "Is the string a parameter which is a device or partition name?"
2961 msgstr ""
2962
2963 # type: textblock
2964 #: ../src/guestfs.pod:1501
2965 msgid "Does the string begin with C</dev/sd>?"
2966 msgstr ""
2967
2968 # type: textblock
2969 #: ../src/guestfs.pod:1505
2970 msgid ""
2971 "Does the named device exist? If so, we use that device.  However if I<not> "
2972 "then we continue with this algorithm."
2973 msgstr ""
2974
2975 # type: textblock
2976 #: ../src/guestfs.pod:1510
2977 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2978 msgstr ""
2979
2980 # type: textblock
2981 #: ../src/guestfs.pod:1512
2982 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2983 msgstr ""
2984
2985 # type: textblock
2986 #: ../src/guestfs.pod:1514
2987 msgid "If that named device exists, use it.  If not, continue."
2988 msgstr ""
2989
2990 # type: textblock
2991 #: ../src/guestfs.pod:1518
2992 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2993 msgstr ""
2994
2995 # type: textblock
2996 #: ../src/guestfs.pod:1520
2997 msgid "If that named device exists, use it.  If not, return an error."
2998 msgstr ""
2999
3000 # type: =head2
3001 #: ../src/guestfs.pod:1524
3002 msgid "PORTABILITY CONCERNS"
3003 msgstr ""
3004
3005 # type: textblock
3006 #: ../src/guestfs.pod:1526
3007 msgid ""
3008 "Although the standard naming scheme and automatic translation is useful for "
3009 "simple programs and guestfish scripts, for larger programs it is best not to "
3010 "rely on this mechanism."
3011 msgstr ""
3012
3013 # type: textblock
3014 #: ../src/guestfs.pod:1530
3015 msgid ""
3016 "Where possible for maximum future portability programs using libguestfs "
3017 "should use these future-proof techniques:"
3018 msgstr ""
3019
3020 # type: textblock
3021 #: ../src/guestfs.pod:1537
3022 msgid ""
3023 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3024 "device names, and then use those names directly."
3025 msgstr ""
3026
3027 # type: textblock
3028 #: ../src/guestfs.pod:1540
3029 msgid "Since those device names exist by definition, they will never be translated."
3030 msgstr ""
3031
3032 # type: textblock
3033 #: ../src/guestfs.pod:1545
3034 msgid ""
3035 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3036 "filesystem labels."
3037 msgstr ""
3038
3039 # type: =head1
3040 #: ../src/guestfs.pod:1550
3041 msgid "INTERNALS"
3042 msgstr ""
3043
3044 # type: =head2
3045 #: ../src/guestfs.pod:1552
3046 msgid "COMMUNICATION PROTOCOL"
3047 msgstr ""
3048
3049 # type: textblock
3050 #: ../src/guestfs.pod:1554
3051 msgid ""
3052 "Don't rely on using this protocol directly.  This section documents how it "
3053 "currently works, but it may change at any time."
3054 msgstr ""
3055
3056 # type: textblock
3057 #: ../src/guestfs.pod:1557
3058 msgid ""
3059 "The protocol used to talk between the library and the daemon running inside "
3060 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3061 "1014, RFC 1832, RFC 4506)."
3062 msgstr ""
3063
3064 # type: textblock
3065 #: ../src/guestfs.pod:1561
3066 msgid ""
3067 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3068 "this file is automatically generated)."
3069 msgstr ""
3070
3071 # type: textblock
3072 #: ../src/guestfs.pod:1564
3073 msgid ""
3074 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3075 "and C<FileOut> parameters, which are handled with very simple request/reply "
3076 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3077 "parameters, which use the same request and reply messages, but they may also "
3078 "be followed by files sent using a chunked encoding."
3079 msgstr ""
3080
3081 # type: =head3
3082 #: ../src/guestfs.pod:1571
3083 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3084 msgstr ""
3085
3086 # type: textblock
3087 #: ../src/guestfs.pod:1573
3088 msgid "For ordinary functions, the request message is:"
3089 msgstr ""
3090
3091 # type: verbatim
3092 #: ../src/guestfs.pod:1575
3093 #, no-wrap
3094 msgid ""
3095 " total length (header + arguments,\n"
3096 "      but not including the length word itself)\n"
3097 " struct guestfs_message_header (encoded as XDR)\n"
3098 " struct guestfs_<foo>_args (encoded as XDR)\n"
3099 "\n"
3100 msgstr ""
3101
3102 # type: textblock
3103 #: ../src/guestfs.pod:1580
3104 msgid ""
3105 "The total length field allows the daemon to allocate a fixed size buffer "
3106 "into which it slurps the rest of the message.  As a result, the total length "
3107 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3108 "effective size of any request is limited to somewhere under this size."
3109 msgstr ""
3110
3111 # type: textblock
3112 #: ../src/guestfs.pod:1586
3113 msgid ""
3114 "Note also that many functions don't take any arguments, in which case the "
3115 "C<guestfs_I<foo>_args> is completely omitted."
3116 msgstr ""
3117
3118 # type: textblock
3119 #: ../src/guestfs.pod:1589
3120 msgid ""
3121 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3122 "receiver knows what type of args structure to expect, or none at all."
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1593
3127 msgid "The reply message for ordinary functions is:"
3128 msgstr ""
3129
3130 # type: verbatim
3131 #: ../src/guestfs.pod:1595
3132 #, no-wrap
3133 msgid ""
3134 " total length (header + ret,\n"
3135 "      but not including the length word itself)\n"
3136 " struct guestfs_message_header (encoded as XDR)\n"
3137 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3138 "\n"
3139 msgstr ""
3140
3141 # type: textblock
3142 #: ../src/guestfs.pod:1600
3143 msgid ""
3144 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3145 "functions that return no formal return values."
3146 msgstr ""
3147
3148 # type: textblock
3149 #: ../src/guestfs.pod:1603
3150 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3151 msgstr ""
3152
3153 # type: textblock
3154 #: ../src/guestfs.pod:1606
3155 msgid ""
3156 "In the case of an error, a flag is set in the header, and the reply message "
3157 "is slightly changed:"
3158 msgstr ""
3159
3160 # type: verbatim
3161 #: ../src/guestfs.pod:1609
3162 #, no-wrap
3163 msgid ""
3164 " total length (header + error,\n"
3165 "      but not including the length word itself)\n"
3166 " struct guestfs_message_header (encoded as XDR)\n"
3167 " struct guestfs_message_error (encoded as XDR)\n"
3168 "\n"
3169 msgstr ""
3170
3171 # type: textblock
3172 #: ../src/guestfs.pod:1614
3173 msgid ""
3174 "The C<guestfs_message_error> structure contains the error message as a "
3175 "string."
3176 msgstr ""
3177
3178 # type: =head3
3179 #: ../src/guestfs.pod:1617
3180 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3181 msgstr ""
3182
3183 # type: textblock
3184 #: ../src/guestfs.pod:1619
3185 msgid ""
3186 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3187 "The normal request message is sent (see above).  However this is followed by "
3188 "a sequence of file chunks."
3189 msgstr ""
3190
3191 # type: verbatim
3192 #: ../src/guestfs.pod:1623
3193 #, no-wrap
3194 msgid ""
3195 " total length (header + arguments,\n"
3196 "      but not including the length word itself,\n"
3197 "      and not including the chunks)\n"
3198 " struct guestfs_message_header (encoded as XDR)\n"
3199 " struct guestfs_<foo>_args (encoded as XDR)\n"
3200 " sequence of chunks for FileIn param #0\n"
3201 " sequence of chunks for FileIn param #1 etc.\n"
3202 "\n"
3203 msgstr ""
3204
3205 # type: textblock
3206 #: ../src/guestfs.pod:1631
3207 msgid "The \"sequence of chunks\" is:"
3208 msgstr ""
3209
3210 # type: verbatim
3211 #: ../src/guestfs.pod:1633
3212 #, no-wrap
3213 msgid ""
3214 " length of chunk (not including length word itself)\n"
3215 " struct guestfs_chunk (encoded as XDR)\n"
3216 " length of chunk\n"
3217 " struct guestfs_chunk (encoded as XDR)\n"
3218 "   ...\n"
3219 " length of chunk\n"
3220 " struct guestfs_chunk (with data.data_len == 0)\n"
3221 "\n"
3222 msgstr ""
3223
3224 # type: textblock
3225 #: ../src/guestfs.pod:1641
3226 msgid ""
3227 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3228 "is set in the final chunk to indicate either successful completion or early "
3229 "cancellation."
3230 msgstr ""
3231
3232 # type: textblock
3233 #: ../src/guestfs.pod:1645
3234 msgid ""
3235 "At time of writing there are no functions that have more than one FileIn "
3236 "parameter.  However this is (theoretically) supported, by sending the "
3237 "sequence of chunks for each FileIn parameter one after another (from left to "
3238 "right)."
3239 msgstr ""
3240
3241 # type: textblock
3242 #: ../src/guestfs.pod:1650
3243 msgid ""
3244 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3245 "transfer.  The library does this by sending a chunk with a special flag set "
3246 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3247 "RPC, does I<not> send any reply, and goes back to reading the next request."
3248 msgstr ""
3249
3250 # type: textblock
3251 #: ../src/guestfs.pod:1656
3252 msgid ""
3253 "The daemon may also cancel.  It does this by writing a special word "
3254 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3255 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3256 "cancel chunk).  The special word is chosen so that even if cancellation "
3257 "happens right at the end of the transfer (after the library has finished "
3258 "writing and has started listening for the reply), the \"spurious\" cancel "
3259 "flag will not be confused with the reply message."
3260 msgstr ""
3261
3262 # type: textblock
3263 #: ../src/guestfs.pod:1665
3264 msgid ""
3265 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3266 "limit), and also files where the size is not known in advance (eg. from "
3267 "pipes or sockets).  However the chunks are rather small "
3268 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3269 "to keep much in memory."
3270 msgstr ""
3271
3272 # type: =head3
3273 #: ../src/guestfs.pod:1671
3274 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3275 msgstr ""
3276
3277 # type: textblock
3278 #: ../src/guestfs.pod:1673
3279 msgid ""
3280 "The protocol for FileOut parameters is exactly the same as for FileIn "
3281 "parameters, but with the roles of daemon and library reversed."
3282 msgstr ""
3283
3284 # type: verbatim
3285 #: ../src/guestfs.pod:1676
3286 #, no-wrap
3287 msgid ""
3288 " total length (header + ret,\n"
3289 "      but not including the length word itself,\n"
3290 "      and not including the chunks)\n"
3291 " struct guestfs_message_header (encoded as XDR)\n"
3292 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3293 " sequence of chunks for FileOut param #0\n"
3294 " sequence of chunks for FileOut param #1 etc.\n"
3295 "\n"
3296 msgstr ""
3297
3298 # type: =head3
3299 #: ../src/guestfs.pod:1684
3300 msgid "INITIAL MESSAGE"
3301 msgstr ""
3302
3303 # type: textblock
3304 #: ../src/guestfs.pod:1686
3305 msgid ""
3306 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3307 "which indicates that the guest and daemon is alive.  This is what "
3308 "L</guestfs_launch> waits for."
3309 msgstr ""
3310
3311 # type: =head3
3312 #: ../src/guestfs.pod:1690
3313 msgid "PROGRESS NOTIFICATION MESSAGES"
3314 msgstr ""
3315
3316 # type: textblock
3317 #: ../src/guestfs.pod:1692
3318 msgid ""
3319 "The daemon may send progress notification messages at any time.  These are "
3320 "distinguished by the normal length word being replaced by "
3321 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3322 msgstr ""
3323
3324 # type: textblock
3325 #: ../src/guestfs.pod:1696
3326 msgid ""
3327 "The library turns them into progress callbacks (see "
3328 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3329 "discards them if not."
3330 msgstr ""
3331
3332 # type: textblock
3333 #: ../src/guestfs.pod:1700
3334 msgid ""
3335 "The daemon self-limits the frequency of progress messages it sends (see "
3336 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3337 "messages."
3338 msgstr ""
3339
3340 # type: =head1
3341 #: ../src/guestfs.pod:1704
3342 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3343 msgstr ""
3344
3345 # type: textblock
3346 #: ../src/guestfs.pod:1706
3347 msgid ""
3348 "All high-level libguestfs actions are synchronous.  If you want to use "
3349 "libguestfs asynchronously then you must create a thread."
3350 msgstr ""
3351
3352 # type: textblock
3353 #: ../src/guestfs.pod:1709
3354 msgid ""
3355 "Only use the handle from a single thread.  Either use the handle exclusively "
3356 "from one thread, or provide your own mutex so that two threads cannot issue "
3357 "calls on the same handle at the same time."
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1713
3362 msgid ""
3363 "See the graphical program guestfs-browser for one possible architecture for "
3364 "multithreaded programs using libvirt and libguestfs."
3365 msgstr ""
3366
3367 # type: =head1
3368 #: ../src/guestfs.pod:1716
3369 msgid "QEMU WRAPPERS"
3370 msgstr ""
3371
3372 # type: textblock
3373 #: ../src/guestfs.pod:1718
3374 msgid ""
3375 "If you want to compile your own qemu, run qemu from a non-standard location, "
3376 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3377 "around qemu."
3378 msgstr ""
3379
3380 # type: textblock
3381 #: ../src/guestfs.pod:1722
3382 msgid ""
3383 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3384 "last command in the shell script (so that qemu replaces the shell and "
3385 "becomes the direct child of the libguestfs-using program).  If you don't do "
3386 "this, then the qemu process won't be cleaned up correctly."
3387 msgstr ""
3388
3389 # type: textblock
3390 #: ../src/guestfs.pod:1727
3391 msgid ""
3392 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3393 "source:"
3394 msgstr ""
3395
3396 # type: verbatim
3397 #: ../src/guestfs.pod:1730
3398 #, no-wrap
3399 msgid ""
3400 " #!/bin/sh -\n"
3401 " qemudir=/home/rjones/d/qemu\n"
3402 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
3403 "\"$@\"\n"
3404 "\n"
3405 msgstr ""
3406
3407 # type: textblock
3408 #: ../src/guestfs.pod:1734
3409 msgid ""
3410 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3411 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3412 "example:"
3413 msgstr ""
3414
3415 # type: verbatim
3416 #: ../src/guestfs.pod:1738
3417 #, no-wrap
3418 msgid ""
3419 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3420 "\n"
3421 msgstr ""
3422
3423 # type: textblock
3424 #: ../src/guestfs.pod:1740
3425 msgid ""
3426 "Note that libguestfs also calls qemu with the -help and -version options in "
3427 "order to determine features."
3428 msgstr ""
3429
3430 # type: =head1
3431 #: ../src/guestfs.pod:1743
3432 msgid "LIBGUESTFS VERSION NUMBERS"
3433 msgstr ""
3434
3435 # type: textblock
3436 #: ../src/guestfs.pod:1745
3437 msgid ""
3438 "Since April 2010, libguestfs has started to make separate development and "
3439 "stable releases, along with corresponding branches in our git repository.  "
3440 "These separate releases can be identified by version number:"
3441 msgstr ""
3442
3443 # type: verbatim
3444 #: ../src/guestfs.pod:1750
3445 #, no-wrap
3446 msgid ""
3447 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3448 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3449 "       |\n"
3450 "       v\n"
3451 " 1  .  3  .  5\n"
3452 " ^           ^\n"
3453 " |           |\n"
3454 " |           `-------- sub-version\n"
3455 " |\n"
3456 " `------ always '1' because we don't change the ABI\n"
3457 "\n"
3458 msgstr ""
3459
3460 # type: textblock
3461 #: ../src/guestfs.pod:1761
3462 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3463 msgstr ""
3464
3465 # type: textblock
3466 #: ../src/guestfs.pod:1763
3467 msgid ""
3468 "As time passes we cherry pick fixes from the development branch and backport "
3469 "those into the stable branch, the effect being that the stable branch should "
3470 "get more stable and less buggy over time.  So the stable releases are ideal "
3471 "for people who don't need new features but would just like the software to "
3472 "work."
3473 msgstr ""
3474
3475 # type: textblock
3476 #: ../src/guestfs.pod:1769
3477 msgid "Our criteria for backporting changes are:"
3478 msgstr ""
3479
3480 # type: textblock
3481 #: ../src/guestfs.pod:1775
3482 msgid ""
3483 "Documentation changes which don't affect any code are backported unless the "
3484 "documentation refers to a future feature which is not in stable."
3485 msgstr ""
3486
3487 # type: textblock
3488 #: ../src/guestfs.pod:1781
3489 msgid ""
3490 "Bug fixes which are not controversial, fix obvious problems, and have been "
3491 "well tested are backported."
3492 msgstr ""
3493
3494 # type: textblock
3495 #: ../src/guestfs.pod:1786
3496 msgid ""
3497 "Simple rearrangements of code which shouldn't affect how it works get "
3498 "backported.  This is so that the code in the two branches doesn't get too "
3499 "far out of step, allowing us to backport future fixes more easily."
3500 msgstr ""
3501
3502 # type: textblock
3503 #: ../src/guestfs.pod:1792
3504 msgid ""
3505 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3506 "exceptional case: the new feature is required in order to implement an "
3507 "important bug fix."
3508 msgstr ""
3509
3510 # type: textblock
3511 #: ../src/guestfs.pod:1798
3512 msgid ""
3513 "A new stable branch starts when we think the new features in development are "
3514 "substantial and compelling enough over the current stable branch to warrant "
3515 "it.  When that happens we create new stable and development versions 1.N.0 "
3516 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3517 "stable at this point, but by backporting fixes from development, that branch "
3518 "will stabilize over time."
3519 msgstr ""
3520
3521 # type: =head1
3522 #: ../src/guestfs.pod:1806 ../fish/guestfish.pod:867 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330 ../tools/virt-rescue.pl:255
3523 msgid "ENVIRONMENT VARIABLES"
3524 msgstr ""
3525
3526 # type: =item
3527 #: ../src/guestfs.pod:1810 ../fish/guestfish.pod:893
3528 msgid "LIBGUESTFS_APPEND"
3529 msgstr ""
3530
3531 # type: textblock
3532 #: ../src/guestfs.pod:1812 ../fish/guestfish.pod:895
3533 msgid "Pass additional options to the guest kernel."
3534 msgstr ""
3535
3536 # type: =item
3537 #: ../src/guestfs.pod:1814 ../fish/guestfish.pod:897
3538 msgid "LIBGUESTFS_DEBUG"
3539 msgstr ""
3540
3541 # type: textblock
3542 #: ../src/guestfs.pod:1816
3543 msgid ""
3544 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3545 "effect as calling C<guestfs_set_verbose (g, 1)>."
3546 msgstr ""
3547
3548 # type: =item
3549 #: ../src/guestfs.pod:1819 ../fish/guestfish.pod:902
3550 msgid "LIBGUESTFS_MEMSIZE"
3551 msgstr ""
3552
3553 # type: textblock
3554 #: ../src/guestfs.pod:1821 ../fish/guestfish.pod:904
3555 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3556 msgstr ""
3557
3558 # type: verbatim
3559 #: ../src/guestfs.pod:1824 ../fish/guestfish.pod:907
3560 #, no-wrap
3561 msgid ""
3562 " LIBGUESTFS_MEMSIZE=700\n"
3563 "\n"
3564 msgstr ""
3565
3566 # type: =item
3567 #: ../src/guestfs.pod:1826 ../fish/guestfish.pod:909
3568 msgid "LIBGUESTFS_PATH"
3569 msgstr ""
3570
3571 # type: textblock
3572 #: ../src/guestfs.pod:1828
3573 msgid ""
3574 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3575 "the discussion of paths in section PATH above."
3576 msgstr ""
3577
3578 # type: =item
3579 #: ../src/guestfs.pod:1831 ../fish/guestfish.pod:914
3580 msgid "LIBGUESTFS_QEMU"
3581 msgstr ""
3582
3583 # type: textblock
3584 #: ../src/guestfs.pod:1833 ../fish/guestfish.pod:916
3585 msgid ""
3586 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3587 "which was found at compile time by the configure script is used."
3588 msgstr ""
3589
3590 # type: textblock
3591 #: ../src/guestfs.pod:1837
3592 msgid "See also L</QEMU WRAPPERS> above."
3593 msgstr ""
3594
3595 # type: =item
3596 #: ../src/guestfs.pod:1839 ../fish/guestfish.pod:920
3597 msgid "LIBGUESTFS_TRACE"
3598 msgstr ""
3599
3600 # type: textblock
3601 #: ../src/guestfs.pod:1841
3602 msgid ""
3603 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3604 "effect as calling C<guestfs_set_trace (g, 1)>."
3605 msgstr ""
3606
3607 # type: =item
3608 #: ../src/guestfs.pod:1844 ../fish/guestfish.pod:929
3609 msgid "TMPDIR"
3610 msgstr ""
3611
3612 # type: textblock
3613 #: ../src/guestfs.pod:1846 ../fish/guestfish.pod:931
3614 msgid "Location of temporary directory, defaults to C</tmp>."
3615 msgstr ""
3616
3617 # type: textblock
3618 #: ../src/guestfs.pod:1848 ../fish/guestfish.pod:933
3619 msgid ""
3620 "If libguestfs was compiled to use the supermin appliance then the real "
3621 "appliance is cached in this directory, shared between all handles belonging "
3622 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3623 "use in case C</tmp> is not large enough."
3624 msgstr ""
3625
3626 # type: =head1
3627 #: ../src/guestfs.pod:1856 ../fish/guestfish.pod:991 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:214 ../inspector/virt-inspector.pl:357 ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640 ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486 ../tools/virt-list-filesystems.pl:186 ../tools/virt-cat.pl:185 ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3628 msgid "SEE ALSO"
3629 msgstr ""
3630
3631 # type: textblock
3632 #: ../src/guestfs.pod:1858
3633 msgid ""
3634 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
3635 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
3636 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
3637 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
3638 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
3639 msgstr ""
3640
3641 # type: textblock
3642 #: ../src/guestfs.pod:1876
3643 msgid ""
3644 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
3645 "L<lvm(8)>, L<disktype(1)>."
3646 msgstr ""
3647
3648 # type: =head1
3649 #: ../src/guestfs.pod:1883 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
3650 msgid "BUGS"
3651 msgstr ""
3652
3653 # type: textblock
3654 #: ../src/guestfs.pod:1885
3655 msgid "To get a list of bugs against libguestfs use this link:"
3656 msgstr ""
3657
3658 # type: textblock
3659 #: ../src/guestfs.pod:1887
3660 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
3661 msgstr ""
3662
3663 # type: textblock
3664 #: ../src/guestfs.pod:1889
3665 msgid "To report a new bug against libguestfs use this link:"
3666 msgstr ""
3667
3668 # type: textblock
3669 #: ../src/guestfs.pod:1891
3670 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
3671 msgstr ""
3672
3673 # type: textblock
3674 #: ../src/guestfs.pod:1893
3675 msgid "When reporting a bug, please check:"
3676 msgstr ""
3677
3678 # type: textblock
3679 #: ../src/guestfs.pod:1899
3680 msgid "That the bug hasn't been reported already."
3681 msgstr ""
3682
3683 # type: textblock
3684 #: ../src/guestfs.pod:1903
3685 msgid "That you are testing a recent version."
3686 msgstr ""
3687
3688 # type: textblock
3689 #: ../src/guestfs.pod:1907
3690 msgid "Describe the bug accurately, and give a way to reproduce it."
3691 msgstr ""
3692
3693 # type: textblock
3694 #: ../src/guestfs.pod:1911
3695 msgid ""
3696 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3697 "bug report."
3698 msgstr ""
3699
3700 # type: =head1
3701 #: ../src/guestfs.pod:1916 ../fish/guestfish.pod:1008 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:225 ../inspector/virt-inspector.pl:366
3702 msgid "AUTHORS"
3703 msgstr ""
3704
3705 # type: textblock
3706 #: ../src/guestfs.pod:1918 ../fish/guestfish.pod:1010 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:227
3707 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3708 msgstr ""
3709
3710 # type: =head1
3711 #: ../src/guestfs.pod:1920 ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:229 ../inspector/virt-inspector.pl:380 ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653 ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:202 ../tools/virt-cat.pl:199 ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
3712 msgid "COPYRIGHT"
3713 msgstr ""
3714
3715 # type: textblock
3716 #: ../src/guestfs.pod:1922 ../fish/guestfish.pod:1014 ../fuse/guestmount.pod:231
3717 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3718 msgstr ""
3719
3720 # type: textblock
3721 #: ../src/guestfs.pod:1925
3722 msgid ""
3723 "This library is free software; you can redistribute it and/or modify it "
3724 "under the terms of the GNU Lesser General Public License as published by the "
3725 "Free Software Foundation; either version 2 of the License, or (at your "
3726 "option) any later version."
3727 msgstr ""
3728
3729 # type: textblock
3730 #: ../src/guestfs.pod:1930
3731 msgid ""
3732 "This library is distributed in the hope that it will be useful, but WITHOUT "
3733 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3734 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3735 "for more details."
3736 msgstr ""
3737
3738 # type: textblock
3739 #: ../src/guestfs.pod:1935
3740 msgid ""
3741 "You should have received a copy of the GNU Lesser General Public License "
3742 "along with this library; if not, write to the Free Software Foundation, "
3743 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3744 msgstr ""
3745
3746 # type: =head2
3747 #: ../src/guestfs-actions.pod:1
3748 msgid "guestfs_add_cdrom"
3749 msgstr ""
3750
3751 # type: verbatim
3752 #: ../src/guestfs-actions.pod:3
3753 #, no-wrap
3754 msgid ""
3755 " int guestfs_add_cdrom (guestfs_h *g,\n"
3756 "\t\tconst char *filename);\n"
3757 "\n"
3758 msgstr ""
3759
3760 # type: textblock
3761 #: ../src/guestfs-actions.pod:6 ../fish/guestfish-actions.pod:5
3762 msgid "This function adds a virtual CD-ROM disk image to the guest."
3763 msgstr ""
3764
3765 # type: textblock
3766 #: ../src/guestfs-actions.pod:8 ../fish/guestfish-actions.pod:7
3767 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3768 msgstr ""
3769
3770 # type: textblock
3771 #: ../src/guestfs-actions.pod:16
3772 msgid ""
3773 "This call checks for the existence of C<filename>.  This stops you from "
3774 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3775 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3776 "instead."
3777 msgstr ""
3778
3779 # type: textblock
3780 #: ../src/guestfs-actions.pod:23
3781 msgid ""
3782 "If you just want to add an ISO file (often you use this as an efficient way "
3783 "to transfer large files into the guest), then you should probably use "
3784 "C<guestfs_add_drive_ro> instead."
3785 msgstr ""
3786
3787 # type: textblock
3788 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:54 ../src/guestfs-actions.pod:112 ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:155 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:190 ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:304 ../src/guestfs-actions.pod:321 ../src/guestfs-actions.pod:332 ../src/guestfs-actions.pod:368 ../src/guestfs-actions.pod:390 ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:496 ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:519 ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:615 ../src/guestfs-actions.pod:626 ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:783 ../src/guestfs-actions.pod:800 ../src/guestfs-actions.pod:815 ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:905 ../src/guestfs-actions.pod:921 ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:949 ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1090 ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1209 ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1540 ../src/guestfs-actions.pod:1888 ../src/guestfs-actions.pod:2011 ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2096 ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:2537 ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2662 ../src/guestfs-actions.pod:2673 ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:2694 ../src/guestfs-actions.pod:2706 ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:2800 ../src/guestfs-actions.pod:2817 ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2851 ../src/guestfs-actions.pod:2871 ../src/guestfs-actions.pod:2900 ../src/guestfs-actions.pod:2916 ../src/guestfs-actions.pod:2932 ../src/guestfs-actions.pod:2961 ../src/guestfs-actions.pod:2970 ../src/guestfs-actions.pod:3003 ../src/guestfs-actions.pod:3016 ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3038 ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3132 ../src/guestfs-actions.pod:3149 ../src/guestfs-actions.pod:3159 ../src/guestfs-actions.pod:3204 ../src/guestfs-actions.pod:3219 ../src/guestfs-actions.pod:3234 ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3258 ../src/guestfs-actions.pod:3269 ../src/guestfs-actions.pod:3283 ../src/guestfs-actions.pod:3295 ../src/guestfs-actions.pod:3312 ../src/guestfs-actions.pod:3358 ../src/guestfs-actions.pod:3386 ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3418 ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441 ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3463 ../src/guestfs-actions.pod:3475 ../src/guestfs-actions.pod:3507 ../src/guestfs-actions.pod:3519 ../src/guestfs-actions.pod:3536 ../src/guestfs-actions.pod:3547 ../src/guestfs-actions.pod:3561 ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3668 ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3697 ../src/guestfs-actions.pod:3819 ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3890 ../src/guestfs-actions.pod:3905 ../src/guestfs-actions.pod:3931 ../src/guestfs-actions.pod:3988 ../src/guestfs-actions.pod:4002 ../src/guestfs-actions.pod:4012 ../src/guestfs-actions.pod:4023 ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4294 ../src/guestfs-actions.pod:4305 ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:4392 ../src/guestfs-actions.pod:4408 ../src/guestfs-actions.pod:4423 ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:4458 ../src/guestfs-actions.pod:4474 ../src/guestfs-actions.pod:4492 ../src/guestfs-actions.pod:4508 ../src/guestfs-actions.pod:4522 ../src/guestfs-actions.pod:4547 ../src/guestfs-actions.pod:4568 ../src/guestfs-actions.pod:4584 ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4645 ../src/guestfs-actions.pod:4679 ../src/guestfs-actions.pod:4699 ../src/guestfs-actions.pod:4722 ../src/guestfs-actions.pod:4812 ../src/guestfs-actions.pod:4918 ../src/guestfs-actions.pod:4927 ../src/guestfs-actions.pod:4937 ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:4966 ../src/guestfs-actions.pod:4976 ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:4996 ../src/guestfs-actions.pod:5008 ../src/guestfs-actions.pod:5058 ../src/guestfs-actions.pod:5072 ../src/guestfs-actions.pod:5085 ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5112 ../src/guestfs-actions.pod:5122 ../src/guestfs-actions.pod:5139 ../src/guestfs-actions.pod:5169 ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5215 ../src/guestfs-actions.pod:5225 ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:5266 ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5398 ../src/guestfs-actions.pod:5413 ../src/guestfs-actions.pod:5424 ../src/guestfs-actions.pod:5470 ../src/guestfs-actions.pod:5480 ../src/guestfs-actions.pod:5517 ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5609 ../src/guestfs-actions.pod:5666 ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5708
3789 msgid "This function returns 0 on success or -1 on error."
3790 msgstr ""
3791
3792 # type: textblock
3793 #: ../src/guestfs-actions.pod:31 ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
3794 msgid ""
3795 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3796 "instead."
3797 msgstr ""
3798
3799 # type: textblock
3800 #: ../src/guestfs-actions.pod:34 ../src/guestfs-actions.pod:160 ../src/guestfs-actions.pod:178 ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:5617 ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:120 ../fish/guestfish-actions.pod:134 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1311 ../fish/guestfish-actions.pod:4333 ../fish/guestfish-actions.pod:4430
3801 msgid ""
3802 "Deprecated functions will not be removed from the API, but the fact that "
3803 "they are deprecated indicates that there are problems with correct use of "
3804 "these functions."
3805 msgstr ""
3806
3807 # type: =head2
3808 #: ../src/guestfs-actions.pod:38
3809 msgid "guestfs_add_drive"
3810 msgstr ""
3811
3812 # type: verbatim
3813 #: ../src/guestfs-actions.pod:40
3814 #, no-wrap
3815 msgid ""
3816 " int guestfs_add_drive (guestfs_h *g,\n"
3817 "\t\tconst char *filename);\n"
3818 "\n"
3819 msgstr ""
3820
3821 # type: textblock
3822 #: ../src/guestfs-actions.pod:43
3823 msgid ""
3824 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
3825 "optional parameters, so the disk is added writable, with the format being "
3826 "detected automatically."
3827 msgstr ""
3828
3829 # type: textblock
3830 #: ../src/guestfs-actions.pod:47
3831 msgid ""
3832 "Automatic detection of the format opens you up to a potential security hole "
3833 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3834 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3835 "you should think about replacing calls to this function with calls to "
3836 "C<guestfs_add_drive_opts>, and specifying the format."
3837 msgstr ""
3838
3839 # type: =head2
3840 #: ../src/guestfs-actions.pod:56
3841 msgid "guestfs_add_drive_opts"
3842 msgstr ""
3843
3844 # type: verbatim
3845 #: ../src/guestfs-actions.pod:58
3846 #, no-wrap
3847 msgid ""
3848 " int guestfs_add_drive_opts (guestfs_h *g,\n"
3849 "\t\tconst char *filename,\n"
3850 "\t\t...);\n"
3851 "\n"
3852 msgstr ""
3853
3854 # type: textblock
3855 #: ../src/guestfs-actions.pod:62
3856 msgid ""
3857 "You may supply a list of optional arguments to this call.  Use zero or more "
3858 "of the following pairs of parameters, and terminate the list with C<-1> on "
3859 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
3860 msgstr ""
3861
3862 # type: verbatim
3863 #: ../src/guestfs-actions.pod:67
3864 #, no-wrap
3865 msgid ""
3866 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
3867 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
3868 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
3869 "\n"
3870 msgstr ""
3871
3872 # type: textblock
3873 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:56
3874 msgid ""
3875 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
3876 "The first time you call this function, the disk appears as C</dev/sda>, the "
3877 "second time as C</dev/sdb>, and so on."
3878 msgstr ""
3879
3880 # type: textblock
3881 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:61
3882 msgid ""
3883 "You don't necessarily need to be root when using libguestfs.  However you "
3884 "obviously do need sufficient permissions to access the filename for whatever "
3885 "operations you want to perform (ie. read access if you just want to read the "
3886 "image or write access if you want to modify the image)."
3887 msgstr ""
3888
3889 # type: textblock
3890 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:67
3891 msgid "This call checks that C<filename> exists."
3892 msgstr ""
3893
3894 # type: textblock
3895 #: ../src/guestfs-actions.pod:84 ../fish/guestfish-actions.pod:69
3896 msgid "The optional arguments are:"
3897 msgstr ""
3898
3899 # type: =item
3900 #: ../src/guestfs-actions.pod:88 ../fish/guestfish-actions.pod:73
3901 msgid "C<readonly>"
3902 msgstr ""
3903
3904 # type: textblock
3905 #: ../src/guestfs-actions.pod:90 ../fish/guestfish-actions.pod:75
3906 msgid ""
3907 "If true then the image is treated as read-only.  Writes are still allowed, "
3908 "but they are stored in a temporary snapshot overlay which is discarded at "
3909 "the end.  The disk that you add is not modified."
3910 msgstr ""
3911
3912 # type: =item
3913 #: ../src/guestfs-actions.pod:94 ../fish/guestfish-actions.pod:79
3914 msgid "C<format>"
3915 msgstr ""
3916
3917 # type: textblock
3918 #: ../src/guestfs-actions.pod:96
3919 msgid ""
3920 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
3921 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
3922 "Possible formats include C<raw> and C<qcow2>."
3923 msgstr ""
3924
3925 # type: textblock
3926 #: ../src/guestfs-actions.pod:100 ../fish/guestfish-actions.pod:85
3927 msgid ""
3928 "Automatic detection of the format opens you up to a potential security hole "
3929 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3930 "RHBZ#642934.  Specifying the format closes this security hole."
3931 msgstr ""
3932
3933 # type: =item
3934 #: ../src/guestfs-actions.pod:105 ../fish/guestfish-actions.pod:90
3935 msgid "C<iface>"
3936 msgstr ""
3937
3938 # type: textblock
3939 #: ../src/guestfs-actions.pod:107
3940 msgid ""
3941 "This rarely-used option lets you emulate the behaviour of the deprecated "
3942 "C<guestfs_add_drive_with_if> call (q.v.)"
3943 msgstr ""
3944
3945 # type: =head2
3946 #: ../src/guestfs-actions.pod:114
3947 msgid "guestfs_add_drive_opts_va"
3948 msgstr ""
3949
3950 # type: verbatim
3951 #: ../src/guestfs-actions.pod:116
3952 #, no-wrap
3953 msgid ""
3954 " int guestfs_add_drive_opts_va (guestfs_h *g,\n"
3955 "\t\tconst char *filename,\n"
3956 "\t\tva_list args);\n"
3957 "\n"
3958 msgstr ""
3959
3960 # type: textblock
3961 #: ../src/guestfs-actions.pod:120
3962 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
3963 msgstr ""
3964
3965 # type: textblock
3966 #: ../src/guestfs-actions.pod:122 ../src/guestfs-actions.pod:132
3967 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
3968 msgstr ""
3969
3970 # type: =head2
3971 #: ../src/guestfs-actions.pod:124
3972 msgid "guestfs_add_drive_opts_argv"
3973 msgstr ""
3974
3975 # type: verbatim
3976 #: ../src/guestfs-actions.pod:126
3977 #, no-wrap
3978 msgid ""
3979 " int guestfs_add_drive_opts_argv (guestfs_h *g,\n"
3980 "\t\tconst char *filename,\n"
3981 "\t\tconst struct guestfs_add_drive_opts_argv *optargs);\n"
3982 "\n"
3983 msgstr ""
3984
3985 # type: textblock
3986 #: ../src/guestfs-actions.pod:130
3987 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
3988 msgstr ""
3989
3990 # type: =head2
3991 #: ../src/guestfs-actions.pod:134
3992 msgid "guestfs_add_drive_ro"
3993 msgstr ""
3994
3995 # type: verbatim
3996 #: ../src/guestfs-actions.pod:136
3997 #, no-wrap
3998 msgid ""
3999 " int guestfs_add_drive_ro (guestfs_h *g,\n"
4000 "\t\tconst char *filename);\n"
4001 "\n"
4002 msgstr ""
4003
4004 # type: textblock
4005 #: ../src/guestfs-actions.pod:139
4006 msgid ""
4007 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4008 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4009 "disk is added read-only, with the format being detected automatically."
4010 msgstr ""
4011
4012 # type: =head2
4013 #: ../src/guestfs-actions.pod:146
4014 msgid "guestfs_add_drive_ro_with_if"
4015 msgstr ""
4016
4017 # type: verbatim
4018 #: ../src/guestfs-actions.pod:148
4019 #, no-wrap
4020 msgid ""
4021 " int guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4022 "\t\tconst char *filename,\n"
4023 "\t\tconst char *iface);\n"
4024 "\n"
4025 msgstr ""
4026
4027 # type: textblock
4028 #: ../src/guestfs-actions.pod:152
4029 msgid ""
4030 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4031 "QEMU interface emulation to use at run time."
4032 msgstr ""
4033
4034 # type: =head2
4035 #: ../src/guestfs-actions.pod:164
4036 msgid "guestfs_add_drive_with_if"
4037 msgstr ""
4038
4039 # type: verbatim
4040 #: ../src/guestfs-actions.pod:166
4041 #, no-wrap
4042 msgid ""
4043 " int guestfs_add_drive_with_if (guestfs_h *g,\n"
4044 "\t\tconst char *filename,\n"
4045 "\t\tconst char *iface);\n"
4046 "\n"
4047 msgstr ""
4048
4049 # type: textblock
4050 #: ../src/guestfs-actions.pod:170
4051 msgid ""
4052 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4053 "QEMU interface emulation to use at run time."
4054 msgstr ""
4055
4056 # type: =head2
4057 #: ../src/guestfs-actions.pod:182
4058 msgid "guestfs_aug_clear"
4059 msgstr ""
4060
4061 # type: verbatim
4062 #: ../src/guestfs-actions.pod:184
4063 #, no-wrap
4064 msgid ""
4065 " int guestfs_aug_clear (guestfs_h *g,\n"
4066 "\t\tconst char *augpath);\n"
4067 "\n"
4068 msgstr ""
4069
4070 # type: textblock
4071 #: ../src/guestfs-actions.pod:187 ../fish/guestfish-actions.pod:142
4072 msgid ""
4073 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4074 "L<augtool(1)> C<clear> command."
4075 msgstr ""
4076
4077 # type: =head2
4078 #: ../src/guestfs-actions.pod:192
4079 msgid "guestfs_aug_close"
4080 msgstr ""
4081
4082 # type: verbatim
4083 #: ../src/guestfs-actions.pod:194
4084 #, no-wrap
4085 msgid ""
4086 " int guestfs_aug_close (guestfs_h *g);\n"
4087 "\n"
4088 msgstr ""
4089
4090 # type: textblock
4091 #: ../src/guestfs-actions.pod:196
4092 msgid ""
4093 "Close the current Augeas handle and free up any resources used by it.  After "
4094 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4095 "any other Augeas functions."
4096 msgstr ""
4097
4098 # type: =head2
4099 #: ../src/guestfs-actions.pod:203
4100 msgid "guestfs_aug_defnode"
4101 msgstr ""
4102
4103 # type: verbatim
4104 #: ../src/guestfs-actions.pod:205
4105 #, no-wrap
4106 msgid ""
4107 " struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *g,\n"
4108 "\t\tconst char *name,\n"
4109 "\t\tconst char *expr,\n"
4110 "\t\tconst char *val);\n"
4111 "\n"
4112 msgstr ""
4113
4114 # type: textblock
4115 #: ../src/guestfs-actions.pod:210 ../fish/guestfish-actions.pod:158
4116 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4117 msgstr ""
4118
4119 # type: textblock
4120 #: ../src/guestfs-actions.pod:213
4121 msgid ""
4122 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4123 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4124 "containing that single node."
4125 msgstr ""
4126
4127 # type: textblock
4128 #: ../src/guestfs-actions.pod:217 ../fish/guestfish-actions.pod:165
4129 msgid ""
4130 "On success this returns a pair containing the number of nodes in the "
4131 "nodeset, and a boolean flag if a node was created."
4132 msgstr ""
4133
4134 # type: textblock
4135 #: ../src/guestfs-actions.pod:221
4136 msgid ""
4137 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4138 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4139 msgstr ""
4140
4141 # type: =head2
4142 #: ../src/guestfs-actions.pod:225
4143 msgid "guestfs_aug_defvar"
4144 msgstr ""
4145
4146 # type: verbatim
4147 #: ../src/guestfs-actions.pod:227
4148 #, no-wrap
4149 msgid ""
4150 " int guestfs_aug_defvar (guestfs_h *g,\n"
4151 "\t\tconst char *name,\n"
4152 "\t\tconst char *expr);\n"
4153 "\n"
4154 msgstr ""
4155
4156 # type: textblock
4157 #: ../src/guestfs-actions.pod:231 ../fish/guestfish-actions.pod:173
4158 msgid ""
4159 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4160 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4161 msgstr ""
4162
4163 # type: textblock
4164 #: ../src/guestfs-actions.pod:235 ../fish/guestfish-actions.pod:177
4165 msgid ""
4166 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4167 "evaluates to something which is not a nodeset."
4168 msgstr ""
4169
4170 # type: textblock
4171 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:379 ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:558 ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:1107 ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1685 ../src/guestfs-actions.pod:1716 ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1776 ../src/guestfs-actions.pod:2001 ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2231 ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3728 ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:5204 ../src/guestfs-actions.pod:5554 ../src/guestfs-actions.pod:5564 ../src/guestfs-actions.pod:5574
4172 msgid "On error this function returns -1."
4173 msgstr ""
4174
4175 # type: =head2
4176 #: ../src/guestfs-actions.pod:240
4177 msgid "guestfs_aug_get"
4178 msgstr ""
4179
4180 # type: verbatim
4181 #: ../src/guestfs-actions.pod:242
4182 #, no-wrap
4183 msgid ""
4184 " char *guestfs_aug_get (guestfs_h *g,\n"
4185 "\t\tconst char *augpath);\n"
4186 "\n"
4187 msgstr ""
4188
4189 # type: textblock
4190 #: ../src/guestfs-actions.pod:245 ../fish/guestfish-actions.pod:184
4191 msgid ""
4192 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4193 "node, the C<value> is returned."
4194 msgstr ""
4195
4196 # type: textblock
4197 #: ../src/guestfs-actions.pod:248 ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:748 ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:965 ../src/guestfs-actions.pod:994 ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:1135 ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1408 ../src/guestfs-actions.pod:1553 ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:1643 ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1795 ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:2115 ../src/guestfs-actions.pod:2165 ../src/guestfs-actions.pod:2281 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2336 ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:2948 ../src/guestfs-actions.pod:3089 ../src/guestfs-actions.pod:3185 ../src/guestfs-actions.pod:3743 ../src/guestfs-actions.pod:3919 ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4221 ../src/guestfs-actions.pod:4264 ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:4767 ../src/guestfs-actions.pod:4788 ../src/guestfs-actions.pod:5347 ../src/guestfs-actions.pod:5363 ../src/guestfs-actions.pod:5378 ../src/guestfs-actions.pod:5526 ../src/guestfs-actions.pod:5756
4198 msgid ""
4199 "This function returns a string, or NULL on error.  I<The caller must free "
4200 "the returned string after use>."
4201 msgstr ""
4202
4203 # type: =head2
4204 #: ../src/guestfs-actions.pod:251
4205 msgid "guestfs_aug_init"
4206 msgstr ""
4207
4208 # type: verbatim
4209 #: ../src/guestfs-actions.pod:253
4210 #, no-wrap
4211 msgid ""
4212 " int guestfs_aug_init (guestfs_h *g,\n"
4213 "\t\tconst char *root,\n"
4214 "\t\tint flags);\n"
4215 "\n"
4216 msgstr ""
4217
4218 # type: textblock
4219 #: ../src/guestfs-actions.pod:257 ../fish/guestfish-actions.pod:191
4220 msgid ""
4221 "Create a new Augeas handle for editing configuration files.  If there was "
4222 "any previous Augeas handle associated with this guestfs session, then it is "
4223 "closed."
4224 msgstr ""
4225
4226 # type: textblock
4227 #: ../src/guestfs-actions.pod:261
4228 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4229 msgstr ""
4230
4231 # type: textblock
4232 #: ../src/guestfs-actions.pod:264 ../fish/guestfish-actions.pod:198
4233 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4234 msgstr ""
4235
4236 # type: textblock
4237 #: ../src/guestfs-actions.pod:267 ../fish/guestfish-actions.pod:201
4238 msgid ""
4239 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4240 "logical I<or> of the following integers:"
4241 msgstr ""
4242
4243 # type: =item
4244 #: ../src/guestfs-actions.pod:273 ../fish/guestfish-actions.pod:207
4245 msgid "C<AUG_SAVE_BACKUP> = 1"
4246 msgstr ""
4247
4248 # type: textblock
4249 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:209
4250 msgid "Keep the original file with a C<.augsave> extension."
4251 msgstr ""
4252
4253 # type: =item
4254 #: ../src/guestfs-actions.pod:277 ../fish/guestfish-actions.pod:211
4255 msgid "C<AUG_SAVE_NEWFILE> = 2"
4256 msgstr ""
4257
4258 # type: textblock
4259 #: ../src/guestfs-actions.pod:279 ../fish/guestfish-actions.pod:213
4260 msgid ""
4261 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4262 "original.  Overrides C<AUG_SAVE_BACKUP>."
4263 msgstr ""
4264
4265 # type: =item
4266 #: ../src/guestfs-actions.pod:282 ../fish/guestfish-actions.pod:216
4267 msgid "C<AUG_TYPE_CHECK> = 4"
4268 msgstr ""
4269
4270 # type: textblock
4271 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:218
4272 msgid "Typecheck lenses (can be expensive)."
4273 msgstr ""
4274
4275 # type: =item
4276 #: ../src/guestfs-actions.pod:286 ../fish/guestfish-actions.pod:220
4277 msgid "C<AUG_NO_STDINC> = 8"
4278 msgstr ""
4279
4280 # type: textblock
4281 #: ../src/guestfs-actions.pod:288 ../fish/guestfish-actions.pod:222
4282 msgid "Do not use standard load path for modules."
4283 msgstr ""
4284
4285 # type: =item
4286 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:224
4287 msgid "C<AUG_SAVE_NOOP> = 16"
4288 msgstr ""
4289
4290 # type: textblock
4291 #: ../src/guestfs-actions.pod:292 ../fish/guestfish-actions.pod:226
4292 msgid "Make save a no-op, just record what would have been changed."
4293 msgstr ""
4294
4295 # type: =item
4296 #: ../src/guestfs-actions.pod:294 ../fish/guestfish-actions.pod:228
4297 msgid "C<AUG_NO_LOAD> = 32"
4298 msgstr ""
4299
4300 # type: textblock
4301 #: ../src/guestfs-actions.pod:296
4302 msgid "Do not load the tree in C<guestfs_aug_init>."
4303 msgstr ""
4304
4305 # type: textblock
4306 #: ../src/guestfs-actions.pod:300
4307 msgid "To close the handle, you can call C<guestfs_aug_close>."
4308 msgstr ""
4309
4310 # type: textblock
4311 #: ../src/guestfs-actions.pod:302 ../fish/guestfish-actions.pod:236
4312 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4313 msgstr ""
4314
4315 # type: =head2
4316 #: ../src/guestfs-actions.pod:306
4317 msgid "guestfs_aug_insert"
4318 msgstr ""
4319
4320 # type: verbatim
4321 #: ../src/guestfs-actions.pod:308
4322 #, no-wrap
4323 msgid ""
4324 " int guestfs_aug_insert (guestfs_h *g,\n"
4325 "\t\tconst char *augpath,\n"
4326 "\t\tconst char *label,\n"
4327 "\t\tint before);\n"
4328 "\n"
4329 msgstr ""
4330
4331 # type: textblock
4332 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:242
4333 msgid ""
4334 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4335 "or after C<path> (depending on the boolean flag C<before>)."
4336 msgstr ""
4337
4338 # type: textblock
4339 #: ../src/guestfs-actions.pod:317 ../fish/guestfish-actions.pod:246
4340 msgid ""
4341 "C<path> must match exactly one existing node in the tree, and C<label> must "
4342 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4343 msgstr ""
4344
4345 # type: =head2
4346 #: ../src/guestfs-actions.pod:323
4347 msgid "guestfs_aug_load"
4348 msgstr ""
4349
4350 # type: verbatim
4351 #: ../src/guestfs-actions.pod:325
4352 #, no-wrap
4353 msgid ""
4354 " int guestfs_aug_load (guestfs_h *g);\n"
4355 "\n"
4356 msgstr ""
4357
4358 # type: textblock
4359 #: ../src/guestfs-actions.pod:327 ../fish/guestfish-actions.pod:254
4360 msgid "Load files into the tree."
4361 msgstr ""
4362
4363 # type: textblock
4364 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:256
4365 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4366 msgstr ""
4367
4368 # type: =head2
4369 #: ../src/guestfs-actions.pod:334
4370 msgid "guestfs_aug_ls"
4371 msgstr ""
4372
4373 # type: verbatim
4374 #: ../src/guestfs-actions.pod:336
4375 #, no-wrap
4376 msgid ""
4377 " char **guestfs_aug_ls (guestfs_h *g,\n"
4378 "\t\tconst char *augpath);\n"
4379 "\n"
4380 msgstr ""
4381
4382 # type: textblock
4383 #: ../src/guestfs-actions.pod:339
4384 msgid ""
4385 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4386 "sorting the resulting nodes into alphabetical order."
4387 msgstr ""
4388
4389 # type: textblock
4390 #: ../src/guestfs-actions.pod:342 ../src/guestfs-actions.pod:355 ../src/guestfs-actions.pod:483 ../src/guestfs-actions.pod:868 ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1251 ../src/guestfs-actions.pod:1267 ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1832 ../src/guestfs-actions.pod:1845 ../src/guestfs-actions.pod:1861 ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:1919 ../src/guestfs-actions.pod:1981 ../src/guestfs-actions.pod:2021 ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2375 ../src/guestfs-actions.pod:2580 ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:3066 ../src/guestfs-actions.pod:3588 ../src/guestfs-actions.pod:4037 ../src/guestfs-actions.pod:4146 ../src/guestfs-actions.pod:4252 ../src/guestfs-actions.pod:4801 ../src/guestfs-actions.pod:4850 ../src/guestfs-actions.pod:4902 ../src/guestfs-actions.pod:5018 ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5439 ../src/guestfs-actions.pod:5456 ../src/guestfs-actions.pod:5494 ../src/guestfs-actions.pod:5630 ../src/guestfs-actions.pod:5646 ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5775 ../src/guestfs-actions.pod:5791
4391 msgid ""
4392 "This function returns a NULL-terminated array of strings (like "
4393 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4394 "strings and the array after use>."
4395 msgstr ""
4396
4397 # type: =head2
4398 #: ../src/guestfs-actions.pod:346
4399 msgid "guestfs_aug_match"
4400 msgstr ""
4401
4402 # type: verbatim
4403 #: ../src/guestfs-actions.pod:348
4404 #, no-wrap
4405 msgid ""
4406 " char **guestfs_aug_match (guestfs_h *g,\n"
4407 "\t\tconst char *augpath);\n"
4408 "\n"
4409 msgstr ""
4410
4411 # type: textblock
4412 #: ../src/guestfs-actions.pod:351 ../fish/guestfish-actions.pod:270
4413 msgid ""
4414 "Returns a list of paths which match the path expression C<path>.  The "
4415 "returned paths are sufficiently qualified so that they match exactly one "
4416 "node in the current tree."
4417 msgstr ""
4418
4419 # type: =head2
4420 #: ../src/guestfs-actions.pod:359
4421 msgid "guestfs_aug_mv"
4422 msgstr ""
4423
4424 # type: verbatim
4425 #: ../src/guestfs-actions.pod:361
4426 #, no-wrap
4427 msgid ""
4428 " int guestfs_aug_mv (guestfs_h *g,\n"
4429 "\t\tconst char *src,\n"
4430 "\t\tconst char *dest);\n"
4431 "\n"
4432 msgstr ""
4433
4434 # type: textblock
4435 #: ../src/guestfs-actions.pod:365 ../fish/guestfish-actions.pod:278
4436 msgid ""
4437 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4438 "C<dest> is overwritten if it exists."
4439 msgstr ""
4440
4441 # type: =head2
4442 #: ../src/guestfs-actions.pod:370
4443 msgid "guestfs_aug_rm"
4444 msgstr ""
4445
4446 # type: verbatim
4447 #: ../src/guestfs-actions.pod:372
4448 #, no-wrap
4449 msgid ""
4450 " int guestfs_aug_rm (guestfs_h *g,\n"
4451 "\t\tconst char *augpath);\n"
4452 "\n"
4453 msgstr ""
4454
4455 # type: textblock
4456 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:285
4457 msgid "Remove C<path> and all of its children."
4458 msgstr ""
4459
4460 # type: textblock
4461 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:287
4462 msgid "On success this returns the number of entries which were removed."
4463 msgstr ""
4464
4465 # type: =head2
4466 #: ../src/guestfs-actions.pod:381
4467 msgid "guestfs_aug_save"
4468 msgstr ""
4469
4470 # type: verbatim
4471 #: ../src/guestfs-actions.pod:383
4472 #, no-wrap
4473 msgid ""
4474 " int guestfs_aug_save (guestfs_h *g);\n"
4475 "\n"
4476 msgstr ""
4477
4478 # type: textblock
4479 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:293
4480 msgid "This writes all pending changes to disk."
4481 msgstr ""
4482
4483 # type: textblock
4484 #: ../src/guestfs-actions.pod:387
4485 msgid ""
4486 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4487 "are saved."
4488 msgstr ""
4489
4490 # type: =head2
4491 #: ../src/guestfs-actions.pod:392
4492 msgid "guestfs_aug_set"
4493 msgstr ""
4494
4495 # type: verbatim
4496 #: ../src/guestfs-actions.pod:394
4497 #, no-wrap
4498 msgid ""
4499 " int guestfs_aug_set (guestfs_h *g,\n"
4500 "\t\tconst char *augpath,\n"
4501 "\t\tconst char *val);\n"
4502 "\n"
4503 msgstr ""
4504
4505 # type: textblock
4506 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:302
4507 msgid "Set the value associated with C<path> to C<val>."
4508 msgstr ""
4509
4510 # type: textblock
4511 #: ../src/guestfs-actions.pod:400
4512 msgid ""
4513 "In the Augeas API, it is possible to clear a node by setting the value to "
4514 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4515 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4516 msgstr ""
4517
4518 # type: =head2
4519 #: ../src/guestfs-actions.pod:407
4520 msgid "guestfs_available"
4521 msgstr ""
4522
4523 # type: verbatim
4524 #: ../src/guestfs-actions.pod:409
4525 #, no-wrap
4526 msgid ""
4527 " int guestfs_available (guestfs_h *g,\n"
4528 "\t\tchar *const *groups);\n"
4529 "\n"
4530 msgstr ""
4531
4532 # type: textblock
4533 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:313
4534 msgid ""
4535 "This command is used to check the availability of some groups of "
4536 "functionality in the appliance, which not all builds of the libguestfs "
4537 "appliance will be able to provide."
4538 msgstr ""
4539
4540 # type: textblock
4541 #: ../src/guestfs-actions.pod:416
4542 msgid ""
4543 "The libguestfs groups, and the functions that those groups correspond to, "
4544 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4545 "runtime by calling C<guestfs_available_all_groups>."
4546 msgstr ""
4547
4548 # type: textblock
4549 #: ../src/guestfs-actions.pod:421 ../fish/guestfish-actions.pod:322
4550 msgid ""
4551 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4552 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4553 "and Augeas (configuration file editing) functions."
4554 msgstr ""
4555
4556 # type: textblock
4557 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:327
4558 msgid "The command returns no error if I<all> requested groups are available."
4559 msgstr ""
4560
4561 # type: textblock
4562 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:329
4563 msgid ""
4564 "It fails with an error if one or more of the requested groups is unavailable "
4565 "in the appliance."
4566 msgstr ""
4567
4568 # type: textblock
4569 #: ../src/guestfs-actions.pod:431 ../fish/guestfish-actions.pod:332
4570 msgid ""
4571 "If an unknown group name is included in the list of groups then an error is "
4572 "always returned."
4573 msgstr ""
4574
4575 # type: textblock
4576 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:335
4577 msgid "I<Notes:>"
4578 msgstr ""
4579
4580 # type: textblock
4581 #: ../src/guestfs-actions.pod:440
4582 msgid "You must call C<guestfs_launch> before calling this function."
4583 msgstr ""
4584
4585 # type: textblock
4586 #: ../src/guestfs-actions.pod:442 ../fish/guestfish-actions.pod:343
4587 msgid ""
4588 "The reason is because we don't know what groups are supported by the "
4589 "appliance/daemon until it is running and can be queried."
4590 msgstr ""
4591
4592 # type: textblock
4593 #: ../src/guestfs-actions.pod:448 ../fish/guestfish-actions.pod:349
4594 msgid ""
4595 "If a group of functions is available, this does not necessarily mean that "
4596 "they will work.  You still have to check for errors when calling individual "
4597 "API functions even if they are available."
4598 msgstr ""
4599
4600 # type: textblock
4601 #: ../src/guestfs-actions.pod:455 ../fish/guestfish-actions.pod:356
4602 msgid ""
4603 "It is usually the job of distro packagers to build complete functionality "
4604 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4605 "with all requirements satisfied, will support everything."
4606 msgstr ""
4607
4608 # type: textblock
4609 #: ../src/guestfs-actions.pod:462
4610 msgid ""
4611 "This call was added in version C<1.0.80>.  In previous versions of "
4612 "libguestfs all you could do would be to speculatively execute a command to "
4613 "find out if the daemon implemented it.  See also C<guestfs_version>."
4614 msgstr ""
4615
4616 # type: =head2
4617 #: ../src/guestfs-actions.pod:471
4618 msgid "guestfs_available_all_groups"
4619 msgstr ""
4620
4621 # type: verbatim
4622 #: ../src/guestfs-actions.pod:473
4623 #, no-wrap
4624 msgid ""
4625 " char **guestfs_available_all_groups (guestfs_h *g);\n"
4626 "\n"
4627 msgstr ""
4628
4629 # type: textblock
4630 #: ../src/guestfs-actions.pod:475
4631 msgid ""
4632 "This command returns a list of all optional groups that this daemon knows "
4633 "about.  Note this returns both supported and unsupported groups.  To find "
4634 "out which ones the daemon can actually support you have to call "
4635 "C<guestfs_available> on each member of the returned list."
4636 msgstr ""
4637
4638 # type: textblock
4639 #: ../src/guestfs-actions.pod:481
4640 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4641 msgstr ""
4642
4643 # type: =head2
4644 #: ../src/guestfs-actions.pod:487
4645 msgid "guestfs_base64_in"
4646 msgstr ""
4647
4648 # type: verbatim
4649 #: ../src/guestfs-actions.pod:489
4650 #, no-wrap
4651 msgid ""
4652 " int guestfs_base64_in (guestfs_h *g,\n"
4653 "\t\tconst char *base64file,\n"
4654 "\t\tconst char *filename);\n"
4655 "\n"
4656 msgstr ""
4657
4658 # type: textblock
4659 #: ../src/guestfs-actions.pod:493 ../fish/guestfish-actions.pod:386
4660 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4661 msgstr ""
4662
4663 # type: =head2
4664 #: ../src/guestfs-actions.pod:498
4665 msgid "guestfs_base64_out"
4666 msgstr ""
4667
4668 # type: verbatim
4669 #: ../src/guestfs-actions.pod:500
4670 #, no-wrap
4671 msgid ""
4672 " int guestfs_base64_out (guestfs_h *g,\n"
4673 "\t\tconst char *filename,\n"
4674 "\t\tconst char *base64file);\n"
4675 "\n"
4676 msgstr ""
4677
4678 # type: textblock
4679 #: ../src/guestfs-actions.pod:504 ../fish/guestfish-actions.pod:395
4680 msgid ""
4681 "This command downloads the contents of C<filename>, writing it out to local "
4682 "file C<base64file> encoded as base64."
4683 msgstr ""
4684
4685 # type: =head2
4686 #: ../src/guestfs-actions.pod:509
4687 msgid "guestfs_blockdev_flushbufs"
4688 msgstr ""
4689
4690 # type: verbatim
4691 #: ../src/guestfs-actions.pod:511
4692 #, no-wrap
4693 msgid ""
4694 " int guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4695 "\t\tconst char *device);\n"
4696 "\n"
4697 msgstr ""
4698
4699 # type: textblock
4700 #: ../src/guestfs-actions.pod:514 ../fish/guestfish-actions.pod:404
4701 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4702 msgstr ""
4703
4704 # type: textblock
4705 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:556 ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:613 ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:635 ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418 ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462 ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481 ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
4706 msgid "This uses the L<blockdev(8)> command."
4707 msgstr ""
4708
4709 # type: =head2
4710 #: ../src/guestfs-actions.pod:521
4711 msgid "guestfs_blockdev_getbsz"
4712 msgstr ""
4713
4714 # type: verbatim
4715 #: ../src/guestfs-actions.pod:523
4716 #, no-wrap
4717 msgid ""
4718 " int guestfs_blockdev_getbsz (guestfs_h *g,\n"
4719 "\t\tconst char *device);\n"
4720 "\n"
4721 msgstr ""
4722
4723 # type: textblock
4724 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:413
4725 msgid "This returns the block size of a device."
4726 msgstr ""
4727
4728 # type: textblock
4729 #: ../src/guestfs-actions.pod:528 ../src/guestfs-actions.pod:610 ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
4730 msgid ""
4731 "(Note this is different from both I<size in blocks> and I<filesystem block "
4732 "size>)."
4733 msgstr ""
4734
4735 # type: =head2
4736 #: ../src/guestfs-actions.pod:535
4737 msgid "guestfs_blockdev_getro"
4738 msgstr ""
4739
4740 # type: verbatim
4741 #: ../src/guestfs-actions.pod:537
4742 #, no-wrap
4743 msgid ""
4744 " int guestfs_blockdev_getro (guestfs_h *g,\n"
4745 "\t\tconst char *device);\n"
4746 "\n"
4747 msgstr ""
4748
4749 # type: textblock
4750 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:424
4751 msgid ""
4752 "Returns a boolean indicating if the block device is read-only (true if "
4753 "read-only, false if not)."
4754 msgstr ""
4755
4756 # type: textblock
4757 #: ../src/guestfs-actions.pod:545 ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1693 ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1748 ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2436 ../src/guestfs-actions.pod:2448 ../src/guestfs-actions.pod:2461 ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2482 ../src/guestfs-actions.pod:2493 ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2517 ../src/guestfs-actions.pod:3713
4758 msgid "This function returns a C truth value on success or -1 on error."
4759 msgstr ""
4760
4761 # type: =head2
4762 #: ../src/guestfs-actions.pod:547
4763 msgid "guestfs_blockdev_getsize64"
4764 msgstr ""
4765
4766 # type: verbatim
4767 #: ../src/guestfs-actions.pod:549
4768 #, no-wrap
4769 msgid ""
4770 " int64_t guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4771 "\t\tconst char *device);\n"
4772 "\n"
4773 msgstr ""
4774
4775 # type: textblock
4776 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:433
4777 msgid "This returns the size of the device in bytes."
4778 msgstr ""
4779
4780 # type: textblock
4781 #: ../src/guestfs-actions.pod:554
4782 msgid "See also C<guestfs_blockdev_getsz>."
4783 msgstr ""
4784
4785 # type: =head2
4786 #: ../src/guestfs-actions.pod:560
4787 msgid "guestfs_blockdev_getss"
4788 msgstr ""
4789
4790 # type: verbatim
4791 #: ../src/guestfs-actions.pod:562
4792 #, no-wrap
4793 msgid ""
4794 " int guestfs_blockdev_getss (guestfs_h *g,\n"
4795 "\t\tconst char *device);\n"
4796 "\n"
4797 msgstr ""
4798
4799 # type: textblock
4800 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:443
4801 msgid ""
4802 "This returns the size of sectors on a block device.  Usually 512, but can be "
4803 "larger for modern devices."
4804 msgstr ""
4805
4806 # type: textblock
4807 #: ../src/guestfs-actions.pod:568
4808 msgid ""
4809 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
4810 "that)."
4811 msgstr ""
4812
4813 # type: =head2
4814 #: ../src/guestfs-actions.pod:575
4815 msgid "guestfs_blockdev_getsz"
4816 msgstr ""
4817
4818 # type: verbatim
4819 #: ../src/guestfs-actions.pod:577
4820 #, no-wrap
4821 msgid ""
4822 " int64_t guestfs_blockdev_getsz (guestfs_h *g,\n"
4823 "\t\tconst char *device);\n"
4824 "\n"
4825 msgstr ""
4826
4827 # type: textblock
4828 #: ../src/guestfs-actions.pod:580 ../fish/guestfish-actions.pod:455
4829 msgid ""
4830 "This returns the size of the device in units of 512-byte sectors (even if "
4831 "the sectorsize isn't 512 bytes ... weird)."
4832 msgstr ""
4833
4834 # type: textblock
4835 #: ../src/guestfs-actions.pod:583
4836 msgid ""
4837 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
4838 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
4839 msgstr ""
4840
4841 # type: =head2
4842 #: ../src/guestfs-actions.pod:591
4843 msgid "guestfs_blockdev_rereadpt"
4844 msgstr ""
4845
4846 # type: verbatim
4847 #: ../src/guestfs-actions.pod:593
4848 #, no-wrap
4849 msgid ""
4850 " int guestfs_blockdev_rereadpt (guestfs_h *g,\n"
4851 "\t\tconst char *device);\n"
4852 "\n"
4853 msgstr ""
4854
4855 # type: textblock
4856 #: ../src/guestfs-actions.pod:596 ../fish/guestfish-actions.pod:468
4857 msgid "Reread the partition table on C<device>."
4858 msgstr ""
4859
4860 # type: =head2
4861 #: ../src/guestfs-actions.pod:602
4862 msgid "guestfs_blockdev_setbsz"
4863 msgstr ""
4864
4865 # type: verbatim
4866 #: ../src/guestfs-actions.pod:604
4867 #, no-wrap
4868 msgid ""
4869 " int guestfs_blockdev_setbsz (guestfs_h *g,\n"
4870 "\t\tconst char *device,\n"
4871 "\t\tint blocksize);\n"
4872 "\n"
4873 msgstr ""
4874
4875 # type: textblock
4876 #: ../src/guestfs-actions.pod:608 ../fish/guestfish-actions.pod:476
4877 msgid "This sets the block size of a device."
4878 msgstr ""
4879
4880 # type: =head2
4881 #: ../src/guestfs-actions.pod:617
4882 msgid "guestfs_blockdev_setro"
4883 msgstr ""
4884
4885 # type: verbatim
4886 #: ../src/guestfs-actions.pod:619
4887 #, no-wrap
4888 msgid ""
4889 " int guestfs_blockdev_setro (guestfs_h *g,\n"
4890 "\t\tconst char *device);\n"
4891 "\n"
4892 msgstr ""
4893
4894 # type: textblock
4895 #: ../src/guestfs-actions.pod:622 ../fish/guestfish-actions.pod:487
4896 msgid "Sets the block device named C<device> to read-only."
4897 msgstr ""
4898
4899 # type: =head2
4900 #: ../src/guestfs-actions.pod:628
4901 msgid "guestfs_blockdev_setrw"
4902 msgstr ""
4903
4904 # type: verbatim
4905 #: ../src/guestfs-actions.pod:630
4906 #, no-wrap
4907 msgid ""
4908 " int guestfs_blockdev_setrw (guestfs_h *g,\n"
4909 "\t\tconst char *device);\n"
4910 "\n"
4911 msgstr ""
4912
4913 # type: textblock
4914 #: ../src/guestfs-actions.pod:633 ../fish/guestfish-actions.pod:495
4915 msgid "Sets the block device named C<device> to read-write."
4916 msgstr ""
4917
4918 # type: =head2
4919 #: ../src/guestfs-actions.pod:639
4920 msgid "guestfs_case_sensitive_path"
4921 msgstr ""
4922
4923 # type: verbatim
4924 #: ../src/guestfs-actions.pod:641
4925 #, no-wrap
4926 msgid ""
4927 " char *guestfs_case_sensitive_path (guestfs_h *g,\n"
4928 "\t\tconst char *path);\n"
4929 "\n"
4930 msgstr ""
4931
4932 # type: textblock
4933 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:503
4934 msgid ""
4935 "This can be used to resolve case insensitive paths on a filesystem which is "
4936 "case sensitive.  The use case is to resolve paths which you have read from "
4937 "Windows configuration files or the Windows Registry, to the true path."
4938 msgstr ""
4939
4940 # type: textblock
4941 #: ../src/guestfs-actions.pod:649 ../fish/guestfish-actions.pod:508
4942 msgid ""
4943 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4944 "(and probably others), which is that although the underlying filesystem is "
4945 "case-insensitive, the driver exports the filesystem to Linux as "
4946 "case-sensitive."
4947 msgstr ""
4948
4949 # type: textblock
4950 #: ../src/guestfs-actions.pod:654 ../fish/guestfish-actions.pod:513
4951 msgid ""
4952 "One consequence of this is that special directories such as C<c:\\windows> "
4953 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4954 "precise details of how they were created.  In Windows itself this would not "
4955 "be a problem."
4956 msgstr ""
4957
4958 # type: textblock
4959 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:519
4960 msgid ""
4961 "Bug or feature? You decide: "
4962 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
4963 msgstr ""
4964
4965 # type: textblock
4966 #: ../src/guestfs-actions.pod:663 ../fish/guestfish-actions.pod:522
4967 msgid ""
4968 "This function resolves the true case of each element in the path and returns "
4969 "the case-sensitive path."
4970 msgstr ""
4971
4972 # type: textblock
4973 #: ../src/guestfs-actions.pod:666
4974 msgid ""
4975 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
4976 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4977 "how the directories were originally created under Windows)."
4978 msgstr ""
4979
4980 # type: textblock
4981 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:530
4982 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4983 msgstr ""
4984
4985 # type: textblock
4986 #: ../src/guestfs-actions.pod:674
4987 msgid "See also C<guestfs_realpath>."
4988 msgstr ""
4989
4990 # type: =head2
4991 #: ../src/guestfs-actions.pod:679
4992 msgid "guestfs_cat"
4993 msgstr ""
4994
4995 # type: verbatim
4996 #: ../src/guestfs-actions.pod:681
4997 #, no-wrap
4998 msgid ""
4999 " char *guestfs_cat (guestfs_h *g,\n"
5000 "\t\tconst char *path);\n"
5001 "\n"
5002 msgstr ""
5003
5004 # type: textblock
5005 #: ../src/guestfs-actions.pod:684 ../src/guestfs-actions.pod:4136 ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3177
5006 msgid "Return the contents of the file named C<path>."
5007 msgstr ""
5008
5009 # type: textblock
5010 #: ../src/guestfs-actions.pod:686
5011 msgid ""
5012 "Note that this function cannot correctly handle binary files (specifically, "
5013 "files containing C<\\0> character which is treated as end of string).  For "
5014 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5015 "functions which have a more complex interface."
5016 msgstr ""
5017
5018 # type: textblock
5019 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:855 ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1151 ../src/guestfs-actions.pod:1167 ../src/guestfs-actions.pod:1255 ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:1502 ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:3953 ../src/guestfs-actions.pod:3976 ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4906 ../src/guestfs-actions.pod:5022 ../src/guestfs-actions.pod:5043 ../src/guestfs-actions.pod:5588 ../src/guestfs-actions.pod:5611 ../src/guestfs-actions.pod:5634 ../src/guestfs-actions.pod:5650 ../src/guestfs-actions.pod:5723 ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:546 ../fish/guestfish-actions.pod:681 ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:904 ../fish/guestfish-actions.pod:971 ../fish/guestfish-actions.pod:981 ../fish/guestfish-actions.pod:1176 ../fish/guestfish-actions.pod:1451 ../fish/guestfish-actions.pod:1461 ../fish/guestfish-actions.pod:1489 ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1514 ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:3047 ../fish/guestfish-actions.pod:3062 ../fish/guestfish-actions.pod:3138 ../fish/guestfish-actions.pod:3155 ../fish/guestfish-actions.pod:3170 ../fish/guestfish-actions.pod:3753 ../fish/guestfish-actions.pod:3799 ../fish/guestfish-actions.pod:3884 ../fish/guestfish-actions.pod:3899 ../fish/guestfish-actions.pod:4309 ../fish/guestfish-actions.pod:4327 ../fish/guestfish-actions.pod:4344 ../fish/guestfish-actions.pod:4354 ../fish/guestfish-actions.pod:4402 ../fish/guestfish-actions.pod:4412 ../fish/guestfish-actions.pod:4441 ../fish/guestfish-actions.pod:4451
5020 msgid ""
5021 "Because of the message protocol, there is a transfer limit of somewhere "
5022 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5023 msgstr ""
5024
5025 # type: =head2
5026 #: ../src/guestfs-actions.pod:697
5027 msgid "guestfs_checksum"
5028 msgstr ""
5029
5030 # type: verbatim
5031 #: ../src/guestfs-actions.pod:699
5032 #, no-wrap
5033 msgid ""
5034 " char *guestfs_checksum (guestfs_h *g,\n"
5035 "\t\tconst char *csumtype,\n"
5036 "\t\tconst char *path);\n"
5037 "\n"
5038 msgstr ""
5039
5040 # type: textblock
5041 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:553
5042 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5043 msgstr ""
5044
5045 # type: textblock
5046 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:556
5047 msgid ""
5048 "The type of checksum to compute is given by the C<csumtype> parameter which "
5049 "must have one of the following values:"
5050 msgstr ""
5051
5052 # type: =item
5053 #: ../src/guestfs-actions.pod:711 ../fish/guestfish-actions.pod:561
5054 msgid "C<crc>"
5055 msgstr ""
5056
5057 # type: textblock
5058 #: ../src/guestfs-actions.pod:713 ../fish/guestfish-actions.pod:563
5059 msgid ""
5060 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5061 "C<cksum> command."
5062 msgstr ""
5063
5064 # type: =item
5065 #: ../src/guestfs-actions.pod:716 ../fish/guestfish-actions.pod:566
5066 msgid "C<md5>"
5067 msgstr ""
5068
5069 # type: textblock
5070 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:568
5071 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5072 msgstr ""
5073
5074 # type: =item
5075 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:570
5076 msgid "C<sha1>"
5077 msgstr ""
5078
5079 # type: textblock
5080 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:572
5081 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5082 msgstr ""
5083
5084 # type: =item
5085 #: ../src/guestfs-actions.pod:724 ../fish/guestfish-actions.pod:574
5086 msgid "C<sha224>"
5087 msgstr ""
5088
5089 # type: textblock
5090 #: ../src/guestfs-actions.pod:726 ../fish/guestfish-actions.pod:576
5091 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5092 msgstr ""
5093
5094 # type: =item
5095 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:578
5096 msgid "C<sha256>"
5097 msgstr ""
5098
5099 # type: textblock
5100 #: ../src/guestfs-actions.pod:730 ../fish/guestfish-actions.pod:580
5101 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5102 msgstr ""
5103
5104 # type: =item
5105 #: ../src/guestfs-actions.pod:732 ../fish/guestfish-actions.pod:582
5106 msgid "C<sha384>"
5107 msgstr ""
5108
5109 # type: textblock
5110 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:584
5111 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5112 msgstr ""
5113
5114 # type: =item
5115 #: ../src/guestfs-actions.pod:736 ../fish/guestfish-actions.pod:586
5116 msgid "C<sha512>"
5117 msgstr ""
5118
5119 # type: textblock
5120 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:588
5121 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5122 msgstr ""
5123
5124 # type: textblock
5125 #: ../src/guestfs-actions.pod:742 ../fish/guestfish-actions.pod:592
5126 msgid "The checksum is returned as a printable string."
5127 msgstr ""
5128
5129 # type: textblock
5130 #: ../src/guestfs-actions.pod:744
5131 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5132 msgstr ""
5133
5134 # type: textblock
5135 #: ../src/guestfs-actions.pod:746
5136 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5137 msgstr ""
5138
5139 # type: =head2
5140 #: ../src/guestfs-actions.pod:751
5141 msgid "guestfs_checksum_device"
5142 msgstr ""
5143
5144 # type: verbatim
5145 #: ../src/guestfs-actions.pod:753
5146 #, no-wrap
5147 msgid ""
5148 " char *guestfs_checksum_device (guestfs_h *g,\n"
5149 "\t\tconst char *csumtype,\n"
5150 "\t\tconst char *device);\n"
5151 "\n"
5152 msgstr ""
5153
5154 # type: textblock
5155 #: ../src/guestfs-actions.pod:757
5156 msgid ""
5157 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5158 "device named C<device>.  For the types of checksums supported see the "
5159 "C<guestfs_checksum> command."
5160 msgstr ""
5161
5162 # type: =head2
5163 #: ../src/guestfs-actions.pod:764
5164 msgid "guestfs_checksums_out"
5165 msgstr ""
5166
5167 # type: verbatim
5168 #: ../src/guestfs-actions.pod:766
5169 #, no-wrap
5170 msgid ""
5171 " int guestfs_checksums_out (guestfs_h *g,\n"
5172 "\t\tconst char *csumtype,\n"
5173 "\t\tconst char *directory,\n"
5174 "\t\tconst char *sumsfile);\n"
5175 "\n"
5176 msgstr ""
5177
5178 # type: textblock
5179 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:610
5180 msgid ""
5181 "This command computes the checksums of all regular files in C<directory> and "
5182 "then emits a list of those checksums to the local output file C<sumsfile>."
5183 msgstr ""
5184
5185 # type: textblock
5186 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:614
5187 msgid ""
5188 "This can be used for verifying the integrity of a virtual machine.  However "
5189 "to be properly secure you should pay attention to the output of the checksum "
5190 "command (it uses the ones from GNU coreutils).  In particular when the "
5191 "filename is not printable, coreutils uses a special backslash syntax.  For "
5192 "more information, see the GNU coreutils info file."
5193 msgstr ""
5194
5195 # type: =head2
5196 #: ../src/guestfs-actions.pod:785
5197 msgid "guestfs_chmod"
5198 msgstr ""
5199
5200 # type: verbatim
5201 #: ../src/guestfs-actions.pod:787
5202 #, no-wrap
5203 msgid ""
5204 " int guestfs_chmod (guestfs_h *g,\n"
5205 "\t\tint mode,\n"
5206 "\t\tconst char *path);\n"
5207 "\n"
5208 msgstr ""
5209
5210 # type: textblock
5211 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:628
5212 msgid ""
5213 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5214 "supported."
5215 msgstr ""
5216
5217 # type: textblock
5218 #: ../src/guestfs-actions.pod:794 ../fish/guestfish-actions.pod:631
5219 msgid ""
5220 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5221 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5222 "C<700>."
5223 msgstr ""
5224
5225 # type: textblock
5226 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:3281 ../src/guestfs-actions.pod:3384 ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3416 ../fish/guestfish-actions.pod:635 ../fish/guestfish-actions.pod:2537 ../fish/guestfish-actions.pod:2622 ../fish/guestfish-actions.pod:2632 ../fish/guestfish-actions.pod:2642
5227 msgid "The mode actually set is affected by the umask."
5228 msgstr ""
5229
5230 # type: =head2
5231 #: ../src/guestfs-actions.pod:802
5232 msgid "guestfs_chown"
5233 msgstr ""
5234
5235 # type: verbatim
5236 #: ../src/guestfs-actions.pod:804
5237 #, no-wrap
5238 msgid ""
5239 " int guestfs_chown (guestfs_h *g,\n"
5240 "\t\tint owner,\n"
5241 "\t\tint group,\n"
5242 "\t\tconst char *path);\n"
5243 "\n"
5244 msgstr ""
5245
5246 # type: textblock
5247 #: ../src/guestfs-actions.pod:809 ../fish/guestfish-actions.pod:641
5248 msgid "Change the file owner to C<owner> and group to C<group>."
5249 msgstr ""
5250
5251 # type: textblock
5252 #: ../src/guestfs-actions.pod:811 ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2015
5253 msgid ""
5254 "Only numeric uid and gid are supported.  If you want to use names, you will "
5255 "need to locate and parse the password file yourself (Augeas support makes "
5256 "this relatively easy)."
5257 msgstr ""
5258
5259 # type: =head2
5260 #: ../src/guestfs-actions.pod:817
5261 msgid "guestfs_command"
5262 msgstr ""
5263
5264 # type: verbatim
5265 #: ../src/guestfs-actions.pod:819
5266 #, no-wrap
5267 msgid ""
5268 " char *guestfs_command (guestfs_h *g,\n"
5269 "\t\tchar *const *arguments);\n"
5270 "\n"
5271 msgstr ""
5272
5273 # type: textblock
5274 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:651
5275 msgid ""
5276 "This call runs a command from the guest filesystem.  The filesystem must be "
5277 "mounted, and must contain a compatible operating system (ie. something "
5278 "Linux, with the same or compatible processor architecture)."
5279 msgstr ""
5280
5281 # type: textblock
5282 #: ../src/guestfs-actions.pod:827
5283 msgid ""
5284 "The single parameter is an argv-style list of arguments.  The first element "
5285 "is the name of the program to run.  Subsequent elements are parameters.  The "
5286 "list must be non-empty (ie. must contain a program name).  Note that the "
5287 "command runs directly, and is I<not> invoked via the shell (see "
5288 "C<guestfs_sh>)."
5289 msgstr ""
5290
5291 # type: textblock
5292 #: ../src/guestfs-actions.pod:834 ../fish/guestfish-actions.pod:663
5293 msgid "The return value is anything printed to I<stdout> by the command."
5294 msgstr ""
5295
5296 # type: textblock
5297 #: ../src/guestfs-actions.pod:837 ../fish/guestfish-actions.pod:666
5298 msgid ""
5299 "If the command returns a non-zero exit status, then this function returns an "
5300 "error message.  The error message string is the content of I<stderr> from "
5301 "the command."
5302 msgstr ""
5303
5304 # type: textblock
5305 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:670
5306 msgid ""
5307 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5308 "C</bin>.  If you require a program from another location, you should provide "
5309 "the full path in the first parameter."
5310 msgstr ""
5311
5312 # type: textblock
5313 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:675
5314 msgid ""
5315 "Shared libraries and data files required by the program must be available on "
5316 "filesystems which are mounted in the correct places.  It is the caller's "
5317 "responsibility to ensure all filesystems that are needed are mounted at the "
5318 "right locations."
5319 msgstr ""
5320
5321 # type: =head2
5322 #: ../src/guestfs-actions.pod:858
5323 msgid "guestfs_command_lines"
5324 msgstr ""
5325
5326 # type: verbatim
5327 #: ../src/guestfs-actions.pod:860
5328 #, no-wrap
5329 msgid ""
5330 " char **guestfs_command_lines (guestfs_h *g,\n"
5331 "\t\tchar *const *arguments);\n"
5332 "\n"
5333 msgstr ""
5334
5335 # type: textblock
5336 #: ../src/guestfs-actions.pod:863
5337 msgid ""
5338 "This is the same as C<guestfs_command>, but splits the result into a list of "
5339 "lines."
5340 msgstr ""
5341
5342 # type: textblock
5343 #: ../src/guestfs-actions.pod:866
5344 msgid "See also: C<guestfs_sh_lines>"
5345 msgstr ""
5346
5347 # type: =head2
5348 #: ../src/guestfs-actions.pod:875
5349 msgid "guestfs_config"
5350 msgstr ""
5351
5352 # type: verbatim
5353 #: ../src/guestfs-actions.pod:877
5354 #, no-wrap
5355 msgid ""
5356 " int guestfs_config (guestfs_h *g,\n"
5357 "\t\tconst char *qemuparam,\n"
5358 "\t\tconst char *qemuvalue);\n"
5359 "\n"
5360 msgstr ""
5361
5362 # type: textblock
5363 #: ../src/guestfs-actions.pod:881 ../fish/guestfish-actions.pod:700
5364 msgid ""
5365 "This can be used to add arbitrary qemu command line parameters of the form "
5366 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5367 "setting some parameters which would interfere with parameters that we use."
5368 msgstr ""
5369
5370 # type: textblock
5371 #: ../src/guestfs-actions.pod:886 ../fish/guestfish-actions.pod:705
5372 msgid "The first character of C<param> string must be a C<-> (dash)."
5373 msgstr ""
5374
5375 # type: textblock
5376 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:707
5377 msgid "C<value> can be NULL."
5378 msgstr ""
5379
5380 # type: =head2
5381 #: ../src/guestfs-actions.pod:892
5382 msgid "guestfs_copy_size"
5383 msgstr ""
5384
5385 # type: verbatim
5386 #: ../src/guestfs-actions.pod:894
5387 #, no-wrap
5388 msgid ""
5389 " int guestfs_copy_size (guestfs_h *g,\n"
5390 "\t\tconst char *src,\n"
5391 "\t\tconst char *dest,\n"
5392 "\t\tint64_t size);\n"
5393 "\n"
5394 msgstr ""
5395
5396 # type: textblock
5397 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:713
5398 msgid ""
5399 "This command copies exactly C<size> bytes from one source device or file "
5400 "C<src> to another destination device or file C<dest>."
5401 msgstr ""
5402
5403 # type: textblock
5404 #: ../src/guestfs-actions.pod:902 ../fish/guestfish-actions.pod:716
5405 msgid ""
5406 "Note this will fail if the source is too short or if the destination is not "
5407 "large enough."
5408 msgstr ""
5409
5410 # type: textblock
5411 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:1042 ../src/guestfs-actions.pod:1070 ../src/guestfs-actions.pod:1442 ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:5668 ../src/guestfs-actions.pod:5684
5412 msgid ""
5413 "This long-running command can generate progress notification messages so "
5414 "that the caller can display a progress bar or indicator.  To receive these "
5415 "messages, the caller must register a progress callback.  See "
5416 "L<guestfs(3)/guestfs_set_progress_callback>."
5417 msgstr ""
5418
5419 # type: =head2
5420 #: ../src/guestfs-actions.pod:912
5421 msgid "guestfs_cp"
5422 msgstr ""
5423
5424 # type: verbatim
5425 #: ../src/guestfs-actions.pod:914
5426 #, no-wrap
5427 msgid ""
5428 " int guestfs_cp (guestfs_h *g,\n"
5429 "\t\tconst char *src,\n"
5430 "\t\tconst char *dest);\n"
5431 "\n"
5432 msgstr ""
5433
5434 # type: textblock
5435 #: ../src/guestfs-actions.pod:918 ../fish/guestfish-actions.pod:723
5436 msgid ""
5437 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5438 "destination filename or destination directory."
5439 msgstr ""
5440
5441 # type: =head2
5442 #: ../src/guestfs-actions.pod:923
5443 msgid "guestfs_cp_a"
5444 msgstr ""
5445
5446 # type: verbatim
5447 #: ../src/guestfs-actions.pod:925
5448 #, no-wrap
5449 msgid ""
5450 " int guestfs_cp_a (guestfs_h *g,\n"
5451 "\t\tconst char *src,\n"
5452 "\t\tconst char *dest);\n"
5453 "\n"
5454 msgstr ""
5455
5456 # type: textblock
5457 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:730
5458 msgid ""
5459 "This copies a file or directory from C<src> to C<dest> recursively using the "
5460 "C<cp -a> command."
5461 msgstr ""
5462
5463 # type: =head2
5464 #: ../src/guestfs-actions.pod:934
5465 msgid "guestfs_dd"
5466 msgstr ""
5467
5468 # type: verbatim
5469 #: ../src/guestfs-actions.pod:936
5470 #, no-wrap
5471 msgid ""
5472 " int guestfs_dd (guestfs_h *g,\n"
5473 "\t\tconst char *src,\n"
5474 "\t\tconst char *dest);\n"
5475 "\n"
5476 msgstr ""
5477
5478 # type: textblock
5479 #: ../src/guestfs-actions.pod:940 ../fish/guestfish-actions.pod:737
5480 msgid ""
5481 "This command copies from one source device or file C<src> to another "
5482 "destination device or file C<dest>.  Normally you would use this to copy to "
5483 "or from a device or partition, for example to duplicate a filesystem."
5484 msgstr ""
5485
5486 # type: textblock
5487 #: ../src/guestfs-actions.pod:945
5488 msgid ""
5489 "If the destination is a device, it must be as large or larger than the "
5490 "source file or device, otherwise the copy will fail.  This command cannot do "
5491 "partial copies (see C<guestfs_copy_size>)."
5492 msgstr ""
5493
5494 # type: =head2
5495 #: ../src/guestfs-actions.pod:951
5496 msgid "guestfs_debug"
5497 msgstr ""
5498
5499 # type: verbatim
5500 #: ../src/guestfs-actions.pod:953
5501 #, no-wrap
5502 msgid ""
5503 " char *guestfs_debug (guestfs_h *g,\n"
5504 "\t\tconst char *subcmd,\n"
5505 "\t\tchar *const *extraargs);\n"
5506 "\n"
5507 msgstr ""
5508
5509 # type: textblock
5510 #: ../src/guestfs-actions.pod:957
5511 msgid ""
5512 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5513 "guestfs daemon) that runs inside the qemu subprocess."
5514 msgstr ""
5515
5516 # type: textblock
5517 #: ../src/guestfs-actions.pod:961 ../fish/guestfish-actions.pod:754
5518 msgid ""
5519 "There is no comprehensive help for this command.  You have to look at the "
5520 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5521 msgstr ""
5522
5523 # type: =head2
5524 #: ../src/guestfs-actions.pod:968
5525 msgid "guestfs_debug_upload"
5526 msgstr ""
5527
5528 # type: verbatim
5529 #: ../src/guestfs-actions.pod:970
5530 #, no-wrap
5531 msgid ""
5532 " int guestfs_debug_upload (guestfs_h *g,\n"
5533 "\t\tconst char *filename,\n"
5534 "\t\tconst char *tmpname,\n"
5535 "\t\tint mode);\n"
5536 "\n"
5537 msgstr ""
5538
5539 # type: textblock
5540 #: ../src/guestfs-actions.pod:975
5541 msgid ""
5542 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5543 "appliance."
5544 msgstr ""
5545
5546 # type: textblock
5547 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:765
5548 msgid ""
5549 "There is no comprehensive help for this command.  You have to look at the "
5550 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5551 msgstr ""
5552
5553 # type: =head2
5554 #: ../src/guestfs-actions.pod:984
5555 msgid "guestfs_df"
5556 msgstr ""
5557
5558 # type: verbatim
5559 #: ../src/guestfs-actions.pod:986
5560 #, no-wrap
5561 msgid ""
5562 " char *guestfs_df (guestfs_h *g);\n"
5563 "\n"
5564 msgstr ""
5565
5566 # type: textblock
5567 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:775
5568 msgid "This command runs the C<df> command to report disk space used."
5569 msgstr ""
5570
5571 # type: textblock
5572 #: ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1004 ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5573 msgid ""
5574 "This command is mostly useful for interactive sessions.  It is I<not> "
5575 "intended that you try to parse the output string.  Use C<statvfs> from "
5576 "programs."
5577 msgstr ""
5578
5579 # type: =head2
5580 #: ../src/guestfs-actions.pod:997
5581 msgid "guestfs_df_h"
5582 msgstr ""
5583
5584 # type: verbatim
5585 #: ../src/guestfs-actions.pod:999
5586 #, no-wrap
5587 msgid ""
5588 " char *guestfs_df_h (guestfs_h *g);\n"
5589 "\n"
5590 msgstr ""
5591
5592 # type: textblock
5593 #: ../src/guestfs-actions.pod:1001 ../fish/guestfish-actions.pod:785
5594 msgid ""
5595 "This command runs the C<df -h> command to report disk space used in "
5596 "human-readable format."
5597 msgstr ""
5598
5599 # type: =head2
5600 #: ../src/guestfs-actions.pod:1011
5601 msgid "guestfs_dmesg"
5602 msgstr ""
5603
5604 # type: verbatim
5605 #: ../src/guestfs-actions.pod:1013
5606 #, no-wrap
5607 msgid ""
5608 " char *guestfs_dmesg (guestfs_h *g);\n"
5609 "\n"
5610 msgstr ""
5611
5612 # type: textblock
5613 #: ../src/guestfs-actions.pod:1015 ../fish/guestfish-actions.pod:796
5614 msgid ""
5615 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5616 "This is sometimes useful for extended debugging of problems."
5617 msgstr ""
5618
5619 # type: textblock
5620 #: ../src/guestfs-actions.pod:1019
5621 msgid ""
5622 "Another way to get the same information is to enable verbose messages with "
5623 "C<guestfs_set_verbose> or by setting the environment variable "
5624 "C<LIBGUESTFS_DEBUG=1> before running the program."
5625 msgstr ""
5626
5627 # type: =head2
5628 #: ../src/guestfs-actions.pod:1027
5629 msgid "guestfs_download"
5630 msgstr ""
5631
5632 # type: verbatim
5633 #: ../src/guestfs-actions.pod:1029
5634 #, no-wrap
5635 msgid ""
5636 " int guestfs_download (guestfs_h *g,\n"
5637 "\t\tconst char *remotefilename,\n"
5638 "\t\tconst char *filename);\n"
5639 "\n"
5640 msgstr ""
5641
5642 # type: textblock
5643 #: ../src/guestfs-actions.pod:1033 ../src/guestfs-actions.pod:1055 ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
5644 msgid ""
5645 "Download file C<remotefilename> and save it as C<filename> on the local "
5646 "machine."
5647 msgstr ""
5648
5649 # type: textblock
5650 #: ../src/guestfs-actions.pod:1036 ../src/guestfs-actions.pod:5236 ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4057
5651 msgid "C<filename> can also be a named pipe."
5652 msgstr ""
5653
5654 # type: textblock
5655 #: ../src/guestfs-actions.pod:1038
5656 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5657 msgstr ""
5658
5659 # type: =head2
5660 #: ../src/guestfs-actions.pod:1047
5661 msgid "guestfs_download_offset"
5662 msgstr ""
5663
5664 # type: verbatim
5665 #: ../src/guestfs-actions.pod:1049
5666 #, no-wrap
5667 msgid ""
5668 " int guestfs_download_offset (guestfs_h *g,\n"
5669 "\t\tconst char *remotefilename,\n"
5670 "\t\tconst char *filename,\n"
5671 "\t\tint64_t offset,\n"
5672 "\t\tint64_t size);\n"
5673 "\n"
5674 msgstr ""
5675
5676 # type: textblock
5677 #: ../src/guestfs-actions.pod:1058 ../fish/guestfish-actions.pod:825
5678 msgid ""
5679 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5680 "region must be within the file or device)."
5681 msgstr ""
5682
5683 # type: textblock
5684 #: ../src/guestfs-actions.pod:1061
5685 msgid ""
5686 "Note that there is no limit on the amount of data that can be downloaded "
5687 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5688 "full amount unless an error occurs."
5689 msgstr ""
5690
5691 # type: textblock
5692 #: ../src/guestfs-actions.pod:1066
5693 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5694 msgstr ""
5695
5696 # type: =head2
5697 #: ../src/guestfs-actions.pod:1075
5698 msgid "guestfs_drop_caches"
5699 msgstr ""
5700
5701 # type: verbatim
5702 #: ../src/guestfs-actions.pod:1077
5703 #, no-wrap
5704 msgid ""
5705 " int guestfs_drop_caches (guestfs_h *g,\n"
5706 "\t\tint whattodrop);\n"
5707 "\n"
5708 msgstr ""
5709
5710 # type: textblock
5711 #: ../src/guestfs-actions.pod:1080 ../fish/guestfish-actions.pod:841
5712 msgid ""
5713 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5714 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5715 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5716 msgstr ""
5717
5718 # type: textblock
5719 #: ../src/guestfs-actions.pod:1085 ../fish/guestfish-actions.pod:846
5720 msgid "Setting C<whattodrop> to 3 should drop everything."
5721 msgstr ""
5722
5723 # type: textblock
5724 #: ../src/guestfs-actions.pod:1087 ../fish/guestfish-actions.pod:848
5725 msgid ""
5726 "This automatically calls L<sync(2)> before the operation, so that the "
5727 "maximum guest memory is freed."
5728 msgstr ""
5729
5730 # type: =head2
5731 #: ../src/guestfs-actions.pod:1092
5732 msgid "guestfs_du"
5733 msgstr ""
5734
5735 # type: verbatim
5736 #: ../src/guestfs-actions.pod:1094
5737 #, no-wrap
5738 msgid ""
5739 " int64_t guestfs_du (guestfs_h *g,\n"
5740 "\t\tconst char *path);\n"
5741 "\n"
5742 msgstr ""
5743
5744 # type: textblock
5745 #: ../src/guestfs-actions.pod:1097 ../fish/guestfish-actions.pod:855
5746 msgid ""
5747 "This command runs the C<du -s> command to estimate file space usage for "
5748 "C<path>."
5749 msgstr ""
5750
5751 # type: textblock
5752 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:858
5753 msgid ""
5754 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5755 "estimate includes the contents of the directory and all subdirectories "
5756 "(recursively)."
5757 msgstr ""
5758
5759 # type: textblock
5760 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:862
5761 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5762 msgstr ""
5763
5764 # type: =head2
5765 #: ../src/guestfs-actions.pod:1109
5766 msgid "guestfs_e2fsck_f"
5767 msgstr ""
5768
5769 # type: verbatim
5770 #: ../src/guestfs-actions.pod:1111
5771 #, no-wrap
5772 msgid ""
5773 " int guestfs_e2fsck_f (guestfs_h *g,\n"
5774 "\t\tconst char *device);\n"
5775 "\n"
5776 msgstr ""
5777
5778 # type: textblock
5779 #: ../src/guestfs-actions.pod:1114 ../fish/guestfish-actions.pod:869
5780 msgid ""
5781 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5782 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
5783 "clean (C<-f>)."
5784 msgstr ""
5785
5786 # type: textblock
5787 #: ../src/guestfs-actions.pod:1118
5788 msgid ""
5789 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
5790 "Normally you should use C<guestfs_fsck>."
5791 msgstr ""
5792
5793 # type: =head2
5794 #: ../src/guestfs-actions.pod:1123
5795 msgid "guestfs_echo_daemon"
5796 msgstr ""
5797
5798 # type: verbatim
5799 #: ../src/guestfs-actions.pod:1125
5800 #, no-wrap
5801 msgid ""
5802 " char *guestfs_echo_daemon (guestfs_h *g,\n"
5803 "\t\tchar *const *words);\n"
5804 "\n"
5805 msgstr ""
5806
5807 # type: textblock
5808 #: ../src/guestfs-actions.pod:1128 ../fish/guestfish-actions.pod:880
5809 msgid ""
5810 "This command concatenates the list of C<words> passed with single spaces "
5811 "between them and returns the resulting string."
5812 msgstr ""
5813
5814 # type: textblock
5815 #: ../src/guestfs-actions.pod:1131 ../fish/guestfish-actions.pod:883
5816 msgid "You can use this command to test the connection through to the daemon."
5817 msgstr ""
5818
5819 # type: textblock
5820 #: ../src/guestfs-actions.pod:1133
5821 msgid "See also C<guestfs_ping_daemon>."
5822 msgstr ""
5823
5824 # type: =head2
5825 #: ../src/guestfs-actions.pod:1138
5826 msgid "guestfs_egrep"
5827 msgstr ""
5828
5829 # type: verbatim
5830 #: ../src/guestfs-actions.pod:1140
5831 #, no-wrap
5832 msgid ""
5833 " char **guestfs_egrep (guestfs_h *g,\n"
5834 "\t\tconst char *regex,\n"
5835 "\t\tconst char *path);\n"
5836 "\n"
5837 msgstr ""
5838
5839 # type: textblock
5840 #: ../src/guestfs-actions.pod:1144 ../fish/guestfish-actions.pod:891
5841 msgid "This calls the external C<egrep> program and returns the matching lines."
5842 msgstr ""
5843
5844 # type: =head2
5845 #: ../src/guestfs-actions.pod:1154
5846 msgid "guestfs_egrepi"
5847 msgstr ""
5848
5849 # type: verbatim
5850 #: ../src/guestfs-actions.pod:1156
5851 #, no-wrap
5852 msgid ""
5853 " char **guestfs_egrepi (guestfs_h *g,\n"
5854 "\t\tconst char *regex,\n"
5855 "\t\tconst char *path);\n"
5856 "\n"
5857 msgstr ""
5858
5859 # type: textblock
5860 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:901
5861 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5862 msgstr ""
5863
5864 # type: =head2
5865 #: ../src/guestfs-actions.pod:1170
5866 msgid "guestfs_equal"
5867 msgstr ""
5868
5869 # type: verbatim
5870 #: ../src/guestfs-actions.pod:1172
5871 #, no-wrap
5872 msgid ""
5873 " int guestfs_equal (guestfs_h *g,\n"
5874 "\t\tconst char *file1,\n"
5875 "\t\tconst char *file2);\n"
5876 "\n"
5877 msgstr ""
5878
5879 # type: textblock
5880 #: ../src/guestfs-actions.pod:1176 ../fish/guestfish-actions.pod:911
5881 msgid ""
5882 "This compares the two files C<file1> and C<file2> and returns true if their "
5883 "content is exactly equal, or false otherwise."
5884 msgstr ""
5885
5886 # type: textblock
5887 #: ../src/guestfs-actions.pod:1179 ../fish/guestfish-actions.pod:914
5888 msgid "The external L<cmp(1)> program is used for the comparison."
5889 msgstr ""
5890
5891 # type: =head2
5892 #: ../src/guestfs-actions.pod:1183
5893 msgid "guestfs_exists"
5894 msgstr ""
5895
5896 # type: verbatim
5897 #: ../src/guestfs-actions.pod:1185
5898 #, no-wrap
5899 msgid ""
5900 " int guestfs_exists (guestfs_h *g,\n"
5901 "\t\tconst char *path);\n"
5902 "\n"
5903 msgstr ""
5904
5905 # type: textblock
5906 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:920
5907 msgid ""
5908 "This returns C<true> if and only if there is a file, directory (or anything) "
5909 "with the given C<path> name."
5910 msgstr ""
5911
5912 # type: textblock
5913 #: ../src/guestfs-actions.pod:1191
5914 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
5915 msgstr ""
5916
5917 # type: =head2
5918 #: ../src/guestfs-actions.pod:1195
5919 msgid "guestfs_fallocate"
5920 msgstr ""
5921
5922 # type: verbatim
5923 #: ../src/guestfs-actions.pod:1197
5924 #, no-wrap
5925 msgid ""
5926 " int guestfs_fallocate (guestfs_h *g,\n"
5927 "\t\tconst char *path,\n"
5928 "\t\tint len);\n"
5929 "\n"
5930 msgstr ""
5931
5932 # type: textblock
5933 #: ../src/guestfs-actions.pod:1201 ../src/guestfs-actions.pod:1224 ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
5934 msgid ""
5935 "This command preallocates a file (containing zero bytes) named C<path> of "
5936 "size C<len> bytes.  If the file exists already, it is overwritten."
5937 msgstr ""
5938
5939 # type: textblock
5940 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:933
5941 msgid ""
5942 "Do not confuse this with the guestfish-specific C<alloc> command which "
5943 "allocates a file in the host and attaches it as a device."
5944 msgstr ""
5945
5946 # type: textblock
5947 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:937
5948 msgid ""
5949 "This function is deprecated.  In new code, use the C<fallocate64> call "
5950 "instead."
5951 msgstr ""
5952
5953 # type: =head2
5954 #: ../src/guestfs-actions.pod:1218
5955 msgid "guestfs_fallocate64"
5956 msgstr ""
5957
5958 # type: verbatim
5959 #: ../src/guestfs-actions.pod:1220
5960 #, no-wrap
5961 msgid ""
5962 " int guestfs_fallocate64 (guestfs_h *g,\n"
5963 "\t\tconst char *path,\n"
5964 "\t\tint64_t len);\n"
5965 "\n"
5966 msgstr ""
5967
5968 # type: textblock
5969 #: ../src/guestfs-actions.pod:1228
5970 msgid ""
5971 "Note that this call allocates disk blocks for the file.  To create a sparse "
5972 "file use C<guestfs_truncate_size> instead."
5973 msgstr ""
5974
5975 # type: textblock
5976 #: ../src/guestfs-actions.pod:1231
5977 msgid ""
5978 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
5979 "oversight it only allowed 30 bit lengths to be specified, effectively "
5980 "limiting the maximum size of files created through that call to 1GB."
5981 msgstr ""
5982
5983 # type: textblock
5984 #: ../src/guestfs-actions.pod:1236 ../fish/guestfish-actions.pod:960
5985 msgid ""
5986 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5987 "commands which create a file in the host and attach it as a device."
5988 msgstr ""
5989
5990 # type: =head2
5991 #: ../src/guestfs-actions.pod:1242
5992 msgid "guestfs_fgrep"
5993 msgstr ""
5994
5995 # type: verbatim
5996 #: ../src/guestfs-actions.pod:1244
5997 #, no-wrap
5998 msgid ""
5999 " char **guestfs_fgrep (guestfs_h *g,\n"
6000 "\t\tconst char *pattern,\n"
6001 "\t\tconst char *path);\n"
6002 "\n"
6003 msgstr ""
6004
6005 # type: textblock
6006 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:968
6007 msgid "This calls the external C<fgrep> program and returns the matching lines."
6008 msgstr ""
6009
6010 # type: =head2
6011 #: ../src/guestfs-actions.pod:1258
6012 msgid "guestfs_fgrepi"
6013 msgstr ""
6014
6015 # type: verbatim
6016 #: ../src/guestfs-actions.pod:1260
6017 #, no-wrap
6018 msgid ""
6019 " char **guestfs_fgrepi (guestfs_h *g,\n"
6020 "\t\tconst char *pattern,\n"
6021 "\t\tconst char *path);\n"
6022 "\n"
6023 msgstr ""
6024
6025 # type: textblock
6026 #: ../src/guestfs-actions.pod:1264 ../fish/guestfish-actions.pod:978
6027 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6028 msgstr ""
6029
6030 # type: =head2
6031 #: ../src/guestfs-actions.pod:1274
6032 msgid "guestfs_file"
6033 msgstr ""
6034
6035 # type: verbatim
6036 #: ../src/guestfs-actions.pod:1276
6037 #, no-wrap
6038 msgid ""
6039 " char *guestfs_file (guestfs_h *g,\n"
6040 "\t\tconst char *path);\n"
6041 "\n"
6042 msgstr ""
6043
6044 # type: textblock
6045 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:988
6046 msgid ""
6047 "This call uses the standard L<file(1)> command to determine the type or "
6048 "contents of the file."
6049 msgstr ""
6050
6051 # type: textblock
6052 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:991
6053 msgid ""
6054 "This call will also transparently look inside various types of compressed "
6055 "file."
6056 msgstr ""
6057
6058 # type: textblock
6059 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:994
6060 msgid ""
6061 "The exact command which runs is C<file -zb path>.  Note in particular that "
6062 "the filename is not prepended to the output (the C<-b> option)."
6063 msgstr ""
6064
6065 # type: textblock
6066 #: ../src/guestfs-actions.pod:1289
6067 msgid ""
6068 "This command can also be used on C</dev/> devices (and partitions, LV "
6069 "names).  You can for example use this to determine if a device contains a "
6070 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6071 msgstr ""
6072
6073 # type: textblock
6074 #: ../src/guestfs-actions.pod:1294 ../fish/guestfish-actions.pod:1003
6075 msgid ""
6076 "If the C<path> does not begin with C</dev/> then this command only works for "
6077 "the content of regular files.  For other file types (directory, symbolic "
6078 "link etc) it will just return the string C<directory> etc."
6079 msgstr ""
6080
6081 # type: =head2
6082 #: ../src/guestfs-actions.pod:1302
6083 msgid "guestfs_file_architecture"
6084 msgstr ""
6085
6086 # type: verbatim
6087 #: ../src/guestfs-actions.pod:1304
6088 #, no-wrap
6089 msgid ""
6090 " char *guestfs_file_architecture (guestfs_h *g,\n"
6091 "\t\tconst char *filename);\n"
6092 "\n"
6093 msgstr ""
6094
6095 # type: textblock
6096 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1012
6097 msgid ""
6098 "This detects the architecture of the binary C<filename>, and returns it if "
6099 "known."
6100 msgstr ""
6101
6102 # type: textblock
6103 #: ../src/guestfs-actions.pod:1310 ../fish/guestfish-actions.pod:1015
6104 msgid "Currently defined architectures are:"
6105 msgstr ""
6106
6107 # type: =item
6108 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:1019
6109 msgid "\"i386\""
6110 msgstr ""
6111
6112 # type: textblock
6113 #: ../src/guestfs-actions.pod:1316 ../fish/guestfish-actions.pod:1021
6114 msgid ""
6115 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6116 "irrespective of the precise processor requirements of the binary."
6117 msgstr ""
6118
6119 # type: =item
6120 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:1024
6121 msgid "\"x86_64\""
6122 msgstr ""
6123
6124 # type: textblock
6125 #: ../src/guestfs-actions.pod:1321 ../fish/guestfish-actions.pod:1026
6126 msgid "64 bit x86-64."
6127 msgstr ""
6128
6129 # type: =item
6130 #: ../src/guestfs-actions.pod:1323 ../fish/guestfish-actions.pod:1028
6131 msgid "\"sparc\""
6132 msgstr ""
6133
6134 # type: textblock
6135 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:1030
6136 msgid "32 bit SPARC."
6137 msgstr ""
6138
6139 # type: =item
6140 #: ../src/guestfs-actions.pod:1327 ../fish/guestfish-actions.pod:1032
6141 msgid "\"sparc64\""
6142 msgstr ""
6143
6144 # type: textblock
6145 #: ../src/guestfs-actions.pod:1329 ../fish/guestfish-actions.pod:1034
6146 msgid "64 bit SPARC V9 and above."
6147 msgstr ""
6148
6149 # type: =item
6150 #: ../src/guestfs-actions.pod:1331 ../fish/guestfish-actions.pod:1036
6151 msgid "\"ia64\""
6152 msgstr ""
6153
6154 # type: textblock
6155 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:1038
6156 msgid "Intel Itanium."
6157 msgstr ""
6158
6159 # type: =item
6160 #: ../src/guestfs-actions.pod:1335 ../fish/guestfish-actions.pod:1040
6161 msgid "\"ppc\""
6162 msgstr ""
6163
6164 # type: textblock
6165 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:1042
6166 msgid "32 bit Power PC."
6167 msgstr ""
6168
6169 # type: =item
6170 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:1044
6171 msgid "\"ppc64\""
6172 msgstr ""
6173
6174 # type: textblock
6175 #: ../src/guestfs-actions.pod:1341 ../fish/guestfish-actions.pod:1046
6176 msgid "64 bit Power PC."
6177 msgstr ""
6178
6179 # type: textblock
6180 #: ../src/guestfs-actions.pod:1345 ../fish/guestfish-actions.pod:1050
6181 msgid "Libguestfs may return other architecture strings in future."
6182 msgstr ""
6183
6184 # type: textblock
6185 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:1052
6186 msgid "The function works on at least the following types of files:"
6187 msgstr ""
6188
6189 # type: textblock
6190 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:1058
6191 msgid "many types of Un*x and Linux binary"
6192 msgstr ""
6193
6194 # type: textblock
6195 #: ../src/guestfs-actions.pod:1357 ../fish/guestfish-actions.pod:1062
6196 msgid "many types of Un*x and Linux shared library"
6197 msgstr ""
6198
6199 # type: textblock
6200 #: ../src/guestfs-actions.pod:1361 ../fish/guestfish-actions.pod:1066
6201 msgid "Windows Win32 and Win64 binaries"
6202 msgstr ""
6203
6204 # type: textblock
6205 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:1070
6206 msgid "Windows Win32 and Win64 DLLs"
6207 msgstr ""
6208
6209 # type: textblock
6210 #: ../src/guestfs-actions.pod:1367 ../fish/guestfish-actions.pod:1072
6211 msgid "Win32 binaries and DLLs return C<i386>."
6212 msgstr ""
6213
6214 # type: textblock
6215 #: ../src/guestfs-actions.pod:1369 ../fish/guestfish-actions.pod:1074
6216 msgid "Win64 binaries and DLLs return C<x86_64>."
6217 msgstr ""
6218
6219 # type: textblock
6220 #: ../src/guestfs-actions.pod:1373 ../fish/guestfish-actions.pod:1078
6221 msgid "Linux kernel modules"
6222 msgstr ""
6223
6224 # type: textblock
6225 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:1082
6226 msgid "Linux new-style initrd images"
6227 msgstr ""
6228
6229 # type: textblock
6230 #: ../src/guestfs-actions.pod:1381 ../fish/guestfish-actions.pod:1086
6231 msgid "some non-x86 Linux vmlinuz kernels"
6232 msgstr ""
6233
6234 # type: textblock
6235 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1090
6236 msgid "What it can't do currently:"
6237 msgstr ""
6238
6239 # type: textblock
6240 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:1096
6241 msgid "static libraries (libfoo.a)"
6242 msgstr ""
6243
6244 # type: textblock
6245 #: ../src/guestfs-actions.pod:1395 ../fish/guestfish-actions.pod:1100
6246 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6247 msgstr ""
6248
6249 # type: textblock
6250 #: ../src/guestfs-actions.pod:1399 ../fish/guestfish-actions.pod:1104
6251 msgid "x86 Linux vmlinuz kernels"
6252 msgstr ""
6253
6254 # type: textblock
6255 #: ../src/guestfs-actions.pod:1401 ../fish/guestfish-actions.pod:1106
6256 msgid ""
6257 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6258 "compressed code, and are horribly hard to unpack.  If you want to find the "
6259 "architecture of a kernel, use the architecture of the associated initrd or "
6260 "kernel module(s) instead."
6261 msgstr ""
6262
6263 # type: =head2
6264 #: ../src/guestfs-actions.pod:1411
6265 msgid "guestfs_filesize"
6266 msgstr ""
6267
6268 # type: verbatim
6269 #: ../src/guestfs-actions.pod:1413
6270 #, no-wrap
6271 msgid ""
6272 " int64_t guestfs_filesize (guestfs_h *g,\n"
6273 "\t\tconst char *file);\n"
6274 "\n"
6275 msgstr ""
6276
6277 # type: textblock
6278 #: ../src/guestfs-actions.pod:1416 ../fish/guestfish-actions.pod:1117
6279 msgid "This command returns the size of C<file> in bytes."
6280 msgstr ""
6281
6282 # type: textblock
6283 #: ../src/guestfs-actions.pod:1418
6284 msgid ""
6285 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6286 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6287 "devices, use C<guestfs_blockdev_getsize64>."
6288 msgstr ""
6289
6290 # type: =head2
6291 #: ../src/guestfs-actions.pod:1424
6292 msgid "guestfs_fill"
6293 msgstr ""
6294
6295 # type: verbatim
6296 #: ../src/guestfs-actions.pod:1426
6297 #, no-wrap
6298 msgid ""
6299 " int guestfs_fill (guestfs_h *g,\n"
6300 "\t\tint c,\n"
6301 "\t\tint len,\n"
6302 "\t\tconst char *path);\n"
6303 "\n"
6304 msgstr ""
6305
6306 # type: textblock
6307 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:1127
6308 msgid ""
6309 "This command creates a new file called C<path>.  The initial content of the "
6310 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6311 "C<[0..255]>."
6312 msgstr ""
6313
6314 # type: textblock
6315 #: ../src/guestfs-actions.pod:1435
6316 msgid ""
6317 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6318 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6319 "bytes use C<guestfs_fill_pattern>."
6320 msgstr ""
6321
6322 # type: =head2
6323 #: ../src/guestfs-actions.pod:1447
6324 msgid "guestfs_fill_pattern"
6325 msgstr ""
6326
6327 # type: verbatim
6328 #: ../src/guestfs-actions.pod:1449
6329 #, no-wrap
6330 msgid ""
6331 " int guestfs_fill_pattern (guestfs_h *g,\n"
6332 "\t\tconst char *pattern,\n"
6333 "\t\tint len,\n"
6334 "\t\tconst char *path);\n"
6335 "\n"
6336 msgstr ""
6337
6338 # type: textblock
6339 #: ../src/guestfs-actions.pod:1454
6340 msgid ""
6341 "This function is like C<guestfs_fill> except that it creates a new file of "
6342 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6343 "pattern is truncated if necessary to ensure the length of the file is "
6344 "exactly C<len> bytes."
6345 msgstr ""
6346
6347 # type: =head2
6348 #: ../src/guestfs-actions.pod:1466
6349 msgid "guestfs_find"
6350 msgstr ""
6351
6352 # type: verbatim
6353 #: ../src/guestfs-actions.pod:1468
6354 #, no-wrap
6355 msgid ""
6356 " char **guestfs_find (guestfs_h *g,\n"
6357 "\t\tconst char *directory);\n"
6358 "\n"
6359 msgstr ""
6360
6361 # type: textblock
6362 #: ../src/guestfs-actions.pod:1471 ../fish/guestfish-actions.pod:1149
6363 msgid ""
6364 "This command lists out all files and directories, recursively, starting at "
6365 "C<directory>.  It is essentially equivalent to running the shell command "
6366 "C<find directory -print> but some post-processing happens on the output, "
6367 "described below."
6368 msgstr ""
6369
6370 # type: textblock
6371 #: ../src/guestfs-actions.pod:1476 ../fish/guestfish-actions.pod:1154
6372 msgid ""
6373 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6374 "structure was:"
6375 msgstr ""
6376
6377 # type: verbatim
6378 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:1157
6379 #, no-wrap
6380 msgid ""
6381 " /tmp/a\n"
6382 " /tmp/b\n"
6383 " /tmp/c/d\n"
6384 "\n"
6385 msgstr ""
6386
6387 # type: textblock
6388 #: ../src/guestfs-actions.pod:1483
6389 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6390 msgstr ""
6391
6392 # type: verbatim
6393 #: ../src/guestfs-actions.pod:1486 ../fish/guestfish-actions.pod:1164
6394 #, no-wrap
6395 msgid ""
6396 " a\n"
6397 " b\n"
6398 " c\n"
6399 " c/d\n"
6400 "\n"
6401 msgstr ""
6402
6403 # type: textblock
6404 #: ../src/guestfs-actions.pod:1491 ../fish/guestfish-actions.pod:1169
6405 msgid "If C<directory> is not a directory, then this command returns an error."
6406 msgstr ""
6407
6408 # type: textblock
6409 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:1172
6410 msgid "The returned list is sorted."
6411 msgstr ""
6412
6413 # type: textblock
6414 #: ../src/guestfs-actions.pod:1496
6415 msgid "See also C<guestfs_find0>."
6416 msgstr ""
6417
6418 # type: =head2
6419 #: ../src/guestfs-actions.pod:1505
6420 msgid "guestfs_find0"
6421 msgstr ""
6422
6423 # type: verbatim
6424 #: ../src/guestfs-actions.pod:1507
6425 #, no-wrap
6426 msgid ""
6427 " int guestfs_find0 (guestfs_h *g,\n"
6428 "\t\tconst char *directory,\n"
6429 "\t\tconst char *files);\n"
6430 "\n"
6431 msgstr ""
6432
6433 # type: textblock
6434 #: ../src/guestfs-actions.pod:1511 ../fish/guestfish-actions.pod:1183
6435 msgid ""
6436 "This command lists out all files and directories, recursively, starting at "
6437 "C<directory>, placing the resulting list in the external file called "
6438 "C<files>."
6439 msgstr ""
6440
6441 # type: textblock
6442 #: ../src/guestfs-actions.pod:1515
6443 msgid ""
6444 "This command works the same way as C<guestfs_find> with the following "
6445 "exceptions:"
6446 msgstr ""
6447
6448 # type: textblock
6449 #: ../src/guestfs-actions.pod:1522 ../fish/guestfish-actions.pod:1194
6450 msgid "The resulting list is written to an external file."
6451 msgstr ""
6452
6453 # type: textblock
6454 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1198
6455 msgid ""
6456 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6457 "L<find(1)> option I<-print0>."
6458 msgstr ""
6459
6460 # type: textblock
6461 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1203
6462 msgid "This command is not limited in the number of names that it can return."
6463 msgstr ""
6464
6465 # type: textblock
6466 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1208
6467 msgid "The result list is not sorted."
6468 msgstr ""
6469
6470 # type: =head2
6471 #: ../src/guestfs-actions.pod:1542
6472 msgid "guestfs_findfs_label"
6473 msgstr ""
6474
6475 # type: verbatim
6476 #: ../src/guestfs-actions.pod:1544
6477 #, no-wrap
6478 msgid ""
6479 " char *guestfs_findfs_label (guestfs_h *g,\n"
6480 "\t\tconst char *label);\n"
6481 "\n"
6482 msgstr ""
6483
6484 # type: textblock
6485 #: ../src/guestfs-actions.pod:1547 ../fish/guestfish-actions.pod:1218
6486 msgid ""
6487 "This command searches the filesystems and returns the one which has the "
6488 "given label.  An error is returned if no such filesystem can be found."
6489 msgstr ""
6490
6491 # type: textblock
6492 #: ../src/guestfs-actions.pod:1551
6493 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6494 msgstr ""
6495
6496 # type: =head2
6497 #: ../src/guestfs-actions.pod:1556
6498 msgid "guestfs_findfs_uuid"
6499 msgstr ""
6500
6501 # type: verbatim
6502 #: ../src/guestfs-actions.pod:1558
6503 #, no-wrap
6504 msgid ""
6505 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6506 "\t\tconst char *uuid);\n"
6507 "\n"
6508 msgstr ""
6509
6510 # type: textblock
6511 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1228
6512 msgid ""
6513 "This command searches the filesystems and returns the one which has the "
6514 "given UUID.  An error is returned if no such filesystem can be found."
6515 msgstr ""
6516
6517 # type: textblock
6518 #: ../src/guestfs-actions.pod:1565
6519 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6520 msgstr ""
6521
6522 # type: =head2
6523 #: ../src/guestfs-actions.pod:1570
6524 msgid "guestfs_fsck"
6525 msgstr ""
6526
6527 # type: verbatim
6528 #: ../src/guestfs-actions.pod:1572
6529 #, no-wrap
6530 msgid ""
6531 " int guestfs_fsck (guestfs_h *g,\n"
6532 "\t\tconst char *fstype,\n"
6533 "\t\tconst char *device);\n"
6534 "\n"
6535 msgstr ""
6536
6537 # type: textblock
6538 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1238
6539 msgid ""
6540 "This runs the filesystem checker (fsck) on C<device> which should have "
6541 "filesystem type C<fstype>."
6542 msgstr ""
6543
6544 # type: textblock
6545 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1241
6546 msgid ""
6547 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6548 "codes from C<fsck>."
6549 msgstr ""
6550
6551 # type: textblock
6552 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1250
6553 msgid "Multiple status codes can be summed together."
6554 msgstr ""
6555
6556 # type: textblock
6557 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1254
6558 msgid ""
6559 "A non-zero return code can mean \"success\", for example if errors have been "
6560 "corrected on the filesystem."
6561 msgstr ""
6562
6563 # type: textblock
6564 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1259
6565 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6566 msgstr ""
6567
6568 # type: textblock
6569 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1264
6570 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6571 msgstr ""
6572
6573 # type: =head2
6574 #: ../src/guestfs-actions.pod:1606
6575 msgid "guestfs_get_append"
6576 msgstr ""
6577
6578 # type: verbatim
6579 #: ../src/guestfs-actions.pod:1608
6580 #, no-wrap
6581 msgid ""
6582 " const char *guestfs_get_append (guestfs_h *g);\n"
6583 "\n"
6584 msgstr ""
6585
6586 # type: textblock
6587 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1270
6588 msgid ""
6589 "Return the additional kernel options which are added to the guest kernel "
6590 "command line."
6591 msgstr ""
6592
6593 # type: textblock
6594 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1273
6595 msgid "If C<NULL> then no options are added."
6596 msgstr ""
6597
6598 # type: textblock
6599 #: ../src/guestfs-actions.pod:1615
6600 msgid ""
6601 "This function returns a string which may be NULL.  There is no way to return "
6602 "an error from this function.  The string is owned by the guest handle and "
6603 "must I<not> be freed."
6604 msgstr ""
6605
6606 # type: =head2
6607 #: ../src/guestfs-actions.pod:1619
6608 msgid "guestfs_get_autosync"
6609 msgstr ""
6610
6611 # type: verbatim
6612 #: ../src/guestfs-actions.pod:1621
6613 #, no-wrap
6614 msgid ""
6615 " int guestfs_get_autosync (guestfs_h *g);\n"
6616 "\n"
6617 msgstr ""
6618
6619 # type: textblock
6620 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1279
6621 msgid "Get the autosync flag."
6622 msgstr ""
6623
6624 # type: =head2
6625 #: ../src/guestfs-actions.pod:1627
6626 msgid "guestfs_get_direct"
6627 msgstr ""
6628
6629 # type: verbatim
6630 #: ../src/guestfs-actions.pod:1629
6631 #, no-wrap
6632 msgid ""
6633 " int guestfs_get_direct (guestfs_h *g);\n"
6634 "\n"
6635 msgstr ""
6636
6637 # type: textblock
6638 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1285
6639 msgid "Return the direct appliance mode flag."
6640 msgstr ""
6641
6642 # type: =head2
6643 #: ../src/guestfs-actions.pod:1635
6644 msgid "guestfs_get_e2label"
6645 msgstr ""
6646
6647 # type: verbatim
6648 #: ../src/guestfs-actions.pod:1637
6649 #, no-wrap
6650 msgid ""
6651 " char *guestfs_get_e2label (guestfs_h *g,\n"
6652 "\t\tconst char *device);\n"
6653 "\n"
6654 msgstr ""
6655
6656 # type: textblock
6657 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1291
6658 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6659 msgstr ""
6660
6661 # type: textblock
6662 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1294
6663 msgid ""
6664 "This function is deprecated.  In new code, use the C<vfs_label> call "
6665 "instead."
6666 msgstr ""
6667
6668 # type: =head2
6669 #: ../src/guestfs-actions.pod:1653
6670 msgid "guestfs_get_e2uuid"
6671 msgstr ""
6672
6673 # type: verbatim
6674 #: ../src/guestfs-actions.pod:1655
6675 #, no-wrap
6676 msgid ""
6677 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6678 "\t\tconst char *device);\n"
6679 "\n"
6680 msgstr ""
6681
6682 # type: textblock
6683 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1305
6684 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6685 msgstr ""
6686
6687 # type: textblock
6688 #: ../src/guestfs-actions.pod:1664 ../fish/guestfish-actions.pod:1308
6689 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6690 msgstr ""
6691
6692 # type: =head2
6693 #: ../src/guestfs-actions.pod:1671
6694 msgid "guestfs_get_memsize"
6695 msgstr ""
6696
6697 # type: verbatim
6698 #: ../src/guestfs-actions.pod:1673
6699 #, no-wrap
6700 msgid ""
6701 " int guestfs_get_memsize (guestfs_h *g);\n"
6702 "\n"
6703 msgstr ""
6704
6705 # type: textblock
6706 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1319
6707 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6708 msgstr ""
6709
6710 # type: textblock
6711 #: ../src/guestfs-actions.pod:1678
6712 msgid ""
6713 "If C<guestfs_set_memsize> was not called on this handle, and if "
6714 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6715 "value for memsize."
6716 msgstr ""
6717
6718 # type: textblock
6719 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1745 ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4581 ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377 ../fish/guestfish-actions.pod:3464 ../fish/guestfish-actions.pod:3551
6720 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6721 msgstr ""
6722
6723 # type: =head2
6724 #: ../src/guestfs-actions.pod:1687
6725 msgid "guestfs_get_network"
6726 msgstr ""
6727
6728 # type: verbatim
6729 #: ../src/guestfs-actions.pod:1689
6730 #, no-wrap
6731 msgid ""
6732 " int guestfs_get_network (guestfs_h *g);\n"
6733 "\n"
6734 msgstr ""
6735
6736 # type: textblock
6737 #: ../src/guestfs-actions.pod:1691 ../fish/guestfish-actions.pod:1333
6738 msgid "This returns the enable network flag."
6739 msgstr ""
6740
6741 # type: =head2
6742 #: ../src/guestfs-actions.pod:1695
6743 msgid "guestfs_get_path"
6744 msgstr ""
6745
6746 # type: verbatim
6747 #: ../src/guestfs-actions.pod:1697
6748 #, no-wrap
6749 msgid ""
6750 " const char *guestfs_get_path (guestfs_h *g);\n"
6751 "\n"
6752 msgstr ""
6753
6754 # type: textblock
6755 #: ../src/guestfs-actions.pod:1699 ../fish/guestfish-actions.pod:1339
6756 msgid "Return the current search path."
6757 msgstr ""
6758
6759 # type: textblock
6760 #: ../src/guestfs-actions.pod:1701 ../fish/guestfish-actions.pod:1341
6761 msgid ""
6762 "This is always non-NULL.  If it wasn't set already, then this will return "
6763 "the default path."
6764 msgstr ""
6765
6766 # type: textblock
6767 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1727
6768 msgid ""
6769 "This function returns a string, or NULL on error.  The string is owned by "
6770 "the guest handle and must I<not> be freed."
6771 msgstr ""
6772
6773 # type: =head2
6774 #: ../src/guestfs-actions.pod:1707
6775 msgid "guestfs_get_pid"
6776 msgstr ""
6777
6778 # type: verbatim
6779 #: ../src/guestfs-actions.pod:1709
6780 #, no-wrap
6781 msgid ""
6782 " int guestfs_get_pid (guestfs_h *g);\n"
6783 "\n"
6784 msgstr ""
6785
6786 # type: textblock
6787 #: ../src/guestfs-actions.pod:1711 ../fish/guestfish-actions.pod:1350
6788 msgid ""
6789 "Return the process ID of the qemu subprocess.  If there is no qemu "
6790 "subprocess, then this will return an error."
6791 msgstr ""
6792
6793 # type: textblock
6794 #: ../src/guestfs-actions.pod:1714 ../fish/guestfish-actions.pod:1353
6795 msgid "This is an internal call used for debugging and testing."
6796 msgstr ""
6797
6798 # type: =head2
6799 #: ../src/guestfs-actions.pod:1718
6800 msgid "guestfs_get_qemu"
6801 msgstr ""
6802
6803 # type: verbatim
6804 #: ../src/guestfs-actions.pod:1720
6805 #, no-wrap
6806 msgid ""
6807 " const char *guestfs_get_qemu (guestfs_h *g);\n"
6808 "\n"
6809 msgstr ""
6810
6811 # type: textblock
6812 #: ../src/guestfs-actions.pod:1722 ../fish/guestfish-actions.pod:1359
6813 msgid "Return the current qemu binary."
6814 msgstr ""
6815
6816 # type: textblock
6817 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1361
6818 msgid ""
6819 "This is always non-NULL.  If it wasn't set already, then this will return "
6820 "the default qemu binary name."
6821 msgstr ""
6822
6823 # type: =head2
6824 #: ../src/guestfs-actions.pod:1730
6825 msgid "guestfs_get_recovery_proc"
6826 msgstr ""
6827
6828 # type: verbatim
6829 #: ../src/guestfs-actions.pod:1732
6830 #, no-wrap
6831 msgid ""
6832 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
6833 "\n"
6834 msgstr ""
6835
6836 # type: textblock
6837 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1368
6838 msgid "Return the recovery process enabled flag."
6839 msgstr ""
6840
6841 # type: =head2
6842 #: ../src/guestfs-actions.pod:1738
6843 msgid "guestfs_get_selinux"
6844 msgstr ""
6845
6846 # type: verbatim
6847 #: ../src/guestfs-actions.pod:1740
6848 #, no-wrap
6849 msgid ""
6850 " int guestfs_get_selinux (guestfs_h *g);\n"
6851 "\n"
6852 msgstr ""
6853
6854 # type: textblock
6855 #: ../src/guestfs-actions.pod:1742
6856 msgid ""
6857 "This returns the current setting of the selinux flag which is passed to the "
6858 "appliance at boot time.  See C<guestfs_set_selinux>."
6859 msgstr ""
6860
6861 # type: =head2
6862 #: ../src/guestfs-actions.pod:1750
6863 msgid "guestfs_get_state"
6864 msgstr ""
6865
6866 # type: verbatim
6867 #: ../src/guestfs-actions.pod:1752
6868 #, no-wrap
6869 msgid ""
6870 " int guestfs_get_state (guestfs_h *g);\n"
6871 "\n"
6872 msgstr ""
6873
6874 # type: textblock
6875 #: ../src/guestfs-actions.pod:1754 ../fish/guestfish-actions.pod:1384
6876 msgid ""
6877 "This returns the current state as an opaque integer.  This is only useful "
6878 "for printing debug and internal error messages."
6879 msgstr ""
6880
6881 # type: textblock
6882 #: ../src/guestfs-actions.pod:1757 ../src/guestfs-actions.pod:2398 ../src/guestfs-actions.pod:2421 ../src/guestfs-actions.pod:2470 ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1387 ../fish/guestfish-actions.pod:1897 ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1953 ../fish/guestfish-actions.pod:1969
6883 msgid "For more information on states, see L<guestfs(3)>."
6884 msgstr ""
6885
6886 # type: =head2
6887 #: ../src/guestfs-actions.pod:1761
6888 msgid "guestfs_get_trace"
6889 msgstr ""
6890
6891 # type: verbatim
6892 #: ../src/guestfs-actions.pod:1763
6893 #, no-wrap
6894 msgid ""
6895 " int guestfs_get_trace (guestfs_h *g);\n"
6896 "\n"
6897 msgstr ""
6898
6899 # type: textblock
6900 #: ../src/guestfs-actions.pod:1765 ../fish/guestfish-actions.pod:1393
6901 msgid "Return the command trace flag."
6902 msgstr ""
6903
6904 # type: =head2
6905 #: ../src/guestfs-actions.pod:1769
6906 msgid "guestfs_get_umask"
6907 msgstr ""
6908
6909 # type: verbatim
6910 #: ../src/guestfs-actions.pod:1771
6911 #, no-wrap
6912 msgid ""
6913 " int guestfs_get_umask (guestfs_h *g);\n"
6914 "\n"
6915 msgstr ""
6916
6917 # type: textblock
6918 #: ../src/guestfs-actions.pod:1773
6919 msgid ""
6920 "Return the current umask.  By default the umask is C<022> unless it has been "
6921 "set by calling C<guestfs_umask>."
6922 msgstr ""
6923
6924 # type: =head2
6925 #: ../src/guestfs-actions.pod:1778
6926 msgid "guestfs_get_verbose"
6927 msgstr ""
6928
6929 # type: verbatim
6930 #: ../src/guestfs-actions.pod:1780
6931 #, no-wrap
6932 msgid ""
6933 " int guestfs_get_verbose (guestfs_h *g);\n"
6934 "\n"
6935 msgstr ""
6936
6937 # type: textblock
6938 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1406
6939 msgid "This returns the verbose messages flag."
6940 msgstr ""
6941
6942 # type: =head2
6943 #: ../src/guestfs-actions.pod:1786
6944 msgid "guestfs_getcon"
6945 msgstr ""
6946
6947 # type: verbatim
6948 #: ../src/guestfs-actions.pod:1788
6949 #, no-wrap
6950 msgid ""
6951 " char *guestfs_getcon (guestfs_h *g);\n"
6952 "\n"
6953 msgstr ""
6954
6955 # type: textblock
6956 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1412
6957 msgid "This gets the SELinux security context of the daemon."
6958 msgstr ""
6959
6960 # type: textblock
6961 #: ../src/guestfs-actions.pod:1792
6962 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
6963 msgstr ""
6964
6965 # type: =head2
6966 #: ../src/guestfs-actions.pod:1798
6967 msgid "guestfs_getxattrs"
6968 msgstr ""
6969
6970 # type: verbatim
6971 #: ../src/guestfs-actions.pod:1800
6972 #, no-wrap
6973 msgid ""
6974 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
6975 "\t\tconst char *path);\n"
6976 "\n"
6977 msgstr ""
6978
6979 # type: textblock
6980 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1421
6981 msgid "This call lists the extended attributes of the file or directory C<path>."
6982 msgstr ""
6983
6984 # type: textblock
6985 #: ../src/guestfs-actions.pod:1806 ../fish/guestfish-actions.pod:1424
6986 msgid ""
6987 "At the system call level, this is a combination of the L<listxattr(2)> and "
6988 "L<getxattr(2)> calls."
6989 msgstr ""
6990
6991 # type: textblock
6992 #: ../src/guestfs-actions.pod:1809
6993 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
6994 msgstr ""
6995
6996 # type: textblock
6997 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:2565 ../src/guestfs-actions.pod:3120
6998 msgid ""
6999 "This function returns a C<struct guestfs_xattr_list *> (see "
7000 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7001 "must call C<guestfs_free_xattr_list> after use>."
7002 msgstr ""
7003
7004 # type: =head2
7005 #: ../src/guestfs-actions.pod:1816
7006 msgid "guestfs_glob_expand"
7007 msgstr ""
7008
7009 # type: verbatim
7010 #: ../src/guestfs-actions.pod:1818
7011 #, no-wrap
7012 msgid ""
7013 " char **guestfs_glob_expand (guestfs_h *g,\n"
7014 "\t\tconst char *pattern);\n"
7015 "\n"
7016 msgstr ""
7017
7018 # type: textblock
7019 #: ../src/guestfs-actions.pod:1821 ../fish/guestfish-actions.pod:1433
7020 msgid ""
7021 "This command searches for all the pathnames matching C<pattern> according to "
7022 "the wildcard expansion rules used by the shell."
7023 msgstr ""
7024
7025 # type: textblock
7026 #: ../src/guestfs-actions.pod:1825 ../fish/guestfish-actions.pod:1437
7027 msgid "If no paths match, then this returns an empty list (note: not an error)."
7028 msgstr ""
7029
7030 # type: textblock
7031 #: ../src/guestfs-actions.pod:1828 ../fish/guestfish-actions.pod:1440
7032 msgid ""
7033 "It is just a wrapper around the C L<glob(3)> function with flags "
7034 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7035 msgstr ""
7036
7037 # type: =head2
7038 #: ../src/guestfs-actions.pod:1836
7039 msgid "guestfs_grep"
7040 msgstr ""
7041
7042 # type: verbatim
7043 #: ../src/guestfs-actions.pod:1838
7044 #, no-wrap
7045 msgid ""
7046 " char **guestfs_grep (guestfs_h *g,\n"
7047 "\t\tconst char *regex,\n"
7048 "\t\tconst char *path);\n"
7049 "\n"
7050 msgstr ""
7051
7052 # type: textblock
7053 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:1448
7054 msgid "This calls the external C<grep> program and returns the matching lines."
7055 msgstr ""
7056
7057 # type: =head2
7058 #: ../src/guestfs-actions.pod:1852
7059 msgid "guestfs_grepi"
7060 msgstr ""
7061
7062 # type: verbatim
7063 #: ../src/guestfs-actions.pod:1854
7064 #, no-wrap
7065 msgid ""
7066 " char **guestfs_grepi (guestfs_h *g,\n"
7067 "\t\tconst char *regex,\n"
7068 "\t\tconst char *path);\n"
7069 "\n"
7070 msgstr ""
7071
7072 # type: textblock
7073 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1458
7074 msgid "This calls the external C<grep -i> program and returns the matching lines."
7075 msgstr ""
7076
7077 # type: =head2
7078 #: ../src/guestfs-actions.pod:1868
7079 msgid "guestfs_grub_install"
7080 msgstr ""
7081
7082 # type: verbatim
7083 #: ../src/guestfs-actions.pod:1870
7084 #, no-wrap
7085 msgid ""
7086 " int guestfs_grub_install (guestfs_h *g,\n"
7087 "\t\tconst char *root,\n"
7088 "\t\tconst char *device);\n"
7089 "\n"
7090 msgstr ""
7091
7092 # type: textblock
7093 #: ../src/guestfs-actions.pod:1874 ../fish/guestfish-actions.pod:1468
7094 msgid ""
7095 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7096 "the root directory being C<root>."
7097 msgstr ""
7098
7099 # type: textblock
7100 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1471
7101 msgid ""
7102 "Note: If grub-install reports the error \"No suitable drive was found in the "
7103 "generated device map.\" it may be that you need to create a "
7104 "C</boot/grub/device.map> file first that contains the mapping between grub "
7105 "device names and Linux device names.  It is usually sufficient to create a "
7106 "file containing:"
7107 msgstr ""
7108
7109 # type: verbatim
7110 #: ../src/guestfs-actions.pod:1884 ../fish/guestfish-actions.pod:1478
7111 #, no-wrap
7112 msgid ""
7113 " (hd0) /dev/vda\n"
7114 "\n"
7115 msgstr ""
7116
7117 # type: textblock
7118 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1480
7119 msgid "replacing C</dev/vda> with the name of the installation device."
7120 msgstr ""
7121
7122 # type: =head2
7123 #: ../src/guestfs-actions.pod:1890
7124 msgid "guestfs_head"
7125 msgstr ""
7126
7127 # type: verbatim
7128 #: ../src/guestfs-actions.pod:1892
7129 #, no-wrap
7130 msgid ""
7131 " char **guestfs_head (guestfs_h *g,\n"
7132 "\t\tconst char *path);\n"
7133 "\n"
7134 msgstr ""
7135
7136 # type: textblock
7137 #: ../src/guestfs-actions.pod:1895 ../fish/guestfish-actions.pod:1486
7138 msgid ""
7139 "This command returns up to the first 10 lines of a file as a list of "
7140 "strings."
7141 msgstr ""
7142
7143 # type: =head2
7144 #: ../src/guestfs-actions.pod:1905
7145 msgid "guestfs_head_n"
7146 msgstr ""
7147
7148 # type: verbatim
7149 #: ../src/guestfs-actions.pod:1907
7150 #, no-wrap
7151 msgid ""
7152 " char **guestfs_head_n (guestfs_h *g,\n"
7153 "\t\tint nrlines,\n"
7154 "\t\tconst char *path);\n"
7155 "\n"
7156 msgstr ""
7157
7158 # type: textblock
7159 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1496
7160 msgid ""
7161 "If the parameter C<nrlines> is a positive number, this returns the first "
7162 "C<nrlines> lines of the file C<path>."
7163 msgstr ""
7164
7165 # type: textblock
7166 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1499
7167 msgid ""
7168 "If the parameter C<nrlines> is a negative number, this returns lines from "
7169 "the file C<path>, excluding the last C<nrlines> lines."
7170 msgstr ""
7171
7172 # type: textblock
7173 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:5037 ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3897
7174 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7175 msgstr ""
7176
7177 # type: =head2
7178 #: ../src/guestfs-actions.pod:1926
7179 msgid "guestfs_hexdump"
7180 msgstr ""
7181
7182 # type: verbatim
7183 #: ../src/guestfs-actions.pod:1928
7184 #, no-wrap
7185 msgid ""
7186 " char *guestfs_hexdump (guestfs_h *g,\n"
7187 "\t\tconst char *path);\n"
7188 "\n"
7189 msgstr ""
7190
7191 # type: textblock
7192 #: ../src/guestfs-actions.pod:1931 ../fish/guestfish-actions.pod:1511
7193 msgid ""
7194 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7195 "human-readable, canonical hex dump of the file."
7196 msgstr ""
7197
7198 # type: =head2
7199 #: ../src/guestfs-actions.pod:1940
7200 msgid "guestfs_initrd_cat"
7201 msgstr ""
7202
7203 # type: verbatim
7204 #: ../src/guestfs-actions.pod:1942
7205 #, no-wrap
7206 msgid ""
7207 " char *guestfs_initrd_cat (guestfs_h *g,\n"
7208 "\t\tconst char *initrdpath,\n"
7209 "\t\tconst char *filename,\n"
7210 "\t\tsize_t *size_r);\n"
7211 "\n"
7212 msgstr ""
7213
7214 # type: textblock
7215 #: ../src/guestfs-actions.pod:1947 ../fish/guestfish-actions.pod:1521
7216 msgid ""
7217 "This command unpacks the file C<filename> from the initrd file called "
7218 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7219 "character."
7220 msgstr ""
7221
7222 # type: textblock
7223 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1525
7224 msgid ""
7225 "For example, in guestfish you could use the following command to examine the "
7226 "boot script (usually called C</init>)  contained in a Linux initrd or "
7227 "initramfs image:"
7228 msgstr ""
7229
7230 # type: verbatim
7231 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1529
7232 #, no-wrap
7233 msgid ""
7234 " initrd-cat /boot/initrd-<version>.img init\n"
7235 "\n"
7236 msgstr ""
7237
7238 # type: textblock
7239 #: ../src/guestfs-actions.pod:1957
7240 msgid "See also C<guestfs_initrd_list>."
7241 msgstr ""
7242
7243 # type: textblock
7244 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:3972 ../src/guestfs-actions.pod:4124
7245 msgid ""
7246 "This function returns a buffer, or NULL on error.  The size of the returned "
7247 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7248 "after use>."
7249 msgstr ""
7250
7251 # type: =head2
7252 #: ../src/guestfs-actions.pod:1966
7253 msgid "guestfs_initrd_list"
7254 msgstr ""
7255
7256 # type: verbatim
7257 #: ../src/guestfs-actions.pod:1968
7258 #, no-wrap
7259 msgid ""
7260 " char **guestfs_initrd_list (guestfs_h *g,\n"
7261 "\t\tconst char *path);\n"
7262 "\n"
7263 msgstr ""
7264
7265 # type: textblock
7266 #: ../src/guestfs-actions.pod:1971 ../fish/guestfish-actions.pod:1540
7267 msgid "This command lists out files contained in an initrd."
7268 msgstr ""
7269
7270 # type: textblock
7271 #: ../src/guestfs-actions.pod:1973 ../fish/guestfish-actions.pod:1542
7272 msgid ""
7273 "The files are listed without any initial C</> character.  The files are "
7274 "listed in the order they appear (not necessarily alphabetical).  Directory "
7275 "names are listed as separate items."
7276 msgstr ""
7277
7278 # type: textblock
7279 #: ../src/guestfs-actions.pod:1977 ../fish/guestfish-actions.pod:1546
7280 msgid ""
7281 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7282 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7283 "files)."
7284 msgstr ""
7285
7286 # type: =head2
7287 #: ../src/guestfs-actions.pod:1985
7288 msgid "guestfs_inotify_add_watch"
7289 msgstr ""
7290
7291 # type: verbatim
7292 #: ../src/guestfs-actions.pod:1987
7293 #, no-wrap
7294 msgid ""
7295 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
7296 "\t\tconst char *path,\n"
7297 "\t\tint mask);\n"
7298 "\n"
7299 msgstr ""
7300
7301 # type: textblock
7302 #: ../src/guestfs-actions.pod:1991 ../fish/guestfish-actions.pod:1554
7303 msgid "Watch C<path> for the events listed in C<mask>."
7304 msgstr ""
7305
7306 # type: textblock
7307 #: ../src/guestfs-actions.pod:1993 ../fish/guestfish-actions.pod:1556
7308 msgid ""
7309 "Note that if C<path> is a directory then events within that directory are "
7310 "watched, but this does I<not> happen recursively (in subdirectories)."
7311 msgstr ""
7312
7313 # type: textblock
7314 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1560
7315 msgid ""
7316 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7317 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7318 msgstr ""
7319
7320 # type: =head2
7321 #: ../src/guestfs-actions.pod:2003
7322 msgid "guestfs_inotify_close"
7323 msgstr ""
7324
7325 # type: verbatim
7326 #: ../src/guestfs-actions.pod:2005
7327 #, no-wrap
7328 msgid ""
7329 " int guestfs_inotify_close (guestfs_h *g);\n"
7330 "\n"
7331 msgstr ""
7332
7333 # type: textblock
7334 #: ../src/guestfs-actions.pod:2007 ../fish/guestfish-actions.pod:1568
7335 msgid ""
7336 "This closes the inotify handle which was previously opened by inotify_init.  "
7337 "It removes all watches, throws away any pending events, and deallocates all "
7338 "resources."
7339 msgstr ""
7340
7341 # type: =head2
7342 #: ../src/guestfs-actions.pod:2013
7343 msgid "guestfs_inotify_files"
7344 msgstr ""
7345
7346 # type: verbatim
7347 #: ../src/guestfs-actions.pod:2015
7348 #, no-wrap
7349 msgid ""
7350 " char **guestfs_inotify_files (guestfs_h *g);\n"
7351 "\n"
7352 msgstr ""
7353
7354 # type: textblock
7355 #: ../src/guestfs-actions.pod:2017
7356 msgid ""
7357 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7358 "returns a list of pathnames of objects that were touched.  The returned "
7359 "pathnames are sorted and deduplicated."
7360 msgstr ""
7361
7362 # type: =head2
7363 #: ../src/guestfs-actions.pod:2025
7364 msgid "guestfs_inotify_init"
7365 msgstr ""
7366
7367 # type: verbatim
7368 #: ../src/guestfs-actions.pod:2027
7369 #, no-wrap
7370 msgid ""
7371 " int guestfs_inotify_init (guestfs_h *g,\n"
7372 "\t\tint maxevents);\n"
7373 "\n"
7374 msgstr ""
7375
7376 # type: textblock
7377 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1584
7378 msgid ""
7379 "This command creates a new inotify handle.  The inotify subsystem can be "
7380 "used to notify events which happen to objects in the guest filesystem."
7381 msgstr ""
7382
7383 # type: textblock
7384 #: ../src/guestfs-actions.pod:2034
7385 msgid ""
7386 "C<maxevents> is the maximum number of events which will be queued up between "
7387 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7388 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7389 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7390 "throws away events, but records the fact that it threw them away by setting "
7391 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7392 "C<guestfs_inotify_read>)."
7393 msgstr ""
7394
7395 # type: textblock
7396 #: ../src/guestfs-actions.pod:2044
7397 msgid ""
7398 "Before any events are generated, you have to add some watches to the "
7399 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7400 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7401 msgstr ""
7402
7403 # type: textblock
7404 #: ../src/guestfs-actions.pod:2050
7405 msgid ""
7406 "Queued up events should be read periodically by calling "
7407 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7408 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7409 "often enough then you risk the internal queue overflowing."
7410 msgstr ""
7411
7412 # type: textblock
7413 #: ../src/guestfs-actions.pod:2057
7414 msgid ""
7415 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7416 "This also removes any watches automatically."
7417 msgstr ""
7418
7419 # type: textblock
7420 #: ../src/guestfs-actions.pod:2061 ../fish/guestfish-actions.pod:1615
7421 msgid ""
7422 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7423 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7424 "that there is one global inotify handle per libguestfs instance."
7425 msgstr ""
7426
7427 # type: =head2
7428 #: ../src/guestfs-actions.pod:2068
7429 msgid "guestfs_inotify_read"
7430 msgstr ""
7431
7432 # type: verbatim
7433 #: ../src/guestfs-actions.pod:2070
7434 #, no-wrap
7435 msgid ""
7436 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
7437 "\n"
7438 msgstr ""
7439
7440 # type: textblock
7441 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1624
7442 msgid ""
7443 "Return the complete queue of events that have happened since the previous "
7444 "read call."
7445 msgstr ""
7446
7447 # type: textblock
7448 #: ../src/guestfs-actions.pod:2075 ../fish/guestfish-actions.pod:1627
7449 msgid "If no events have happened, this returns an empty list."
7450 msgstr ""
7451
7452 # type: textblock
7453 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1629
7454 msgid ""
7455 "I<Note>: In order to make sure that all events have been read, you must call "
7456 "this function repeatedly until it returns an empty list.  The reason is that "
7457 "the call will read events up to the maximum appliance-to-host message size "
7458 "and leave remaining events in the queue."
7459 msgstr ""
7460
7461 # type: textblock
7462 #: ../src/guestfs-actions.pod:2083
7463 msgid ""
7464 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7465 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7466 "must call C<guestfs_free_inotify_event_list> after use>."
7467 msgstr ""
7468
7469 # type: =head2
7470 #: ../src/guestfs-actions.pod:2088
7471 msgid "guestfs_inotify_rm_watch"
7472 msgstr ""
7473
7474 # type: verbatim
7475 #: ../src/guestfs-actions.pod:2090
7476 #, no-wrap
7477 msgid ""
7478 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7479 "\t\tint wd);\n"
7480 "\n"
7481 msgstr ""
7482
7483 # type: textblock
7484 #: ../src/guestfs-actions.pod:2093
7485 msgid ""
7486 "Remove a previously defined inotify watch.  See "
7487 "C<guestfs_inotify_add_watch>."
7488 msgstr ""
7489
7490 # type: =head2
7491 #: ../src/guestfs-actions.pod:2098
7492 msgid "guestfs_inspect_get_arch"
7493 msgstr ""
7494
7495 # type: verbatim
7496 #: ../src/guestfs-actions.pod:2100
7497 #, no-wrap
7498 msgid ""
7499 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7500 "\t\tconst char *root);\n"
7501 "\n"
7502 msgstr ""
7503
7504 # type: textblock
7505 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:2173 ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:2289 ../src/guestfs-actions.pod:2324
7506 msgid ""
7507 "This function should only be called with a root device string as returned by "
7508 "C<guestfs_inspect_os>."
7509 msgstr ""
7510
7511 # type: textblock
7512 #: ../src/guestfs-actions.pod:2106
7513 msgid ""
7514 "This returns the architecture of the inspected operating system.  The "
7515 "possible return values are listed under C<guestfs_file_architecture>."
7516 msgstr ""
7517
7518 # type: textblock
7519 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1653
7520 msgid ""
7521 "If the architecture could not be determined, then the string C<unknown> is "
7522 "returned."
7523 msgstr ""
7524
7525 # type: textblock
7526 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2314 ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2371 ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:1702 ../fish/guestfish-actions.pod:1741 ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1827 ../fish/guestfish-actions.pod:1843 ../fish/guestfish-actions.pod:1877
7527 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7528 msgstr ""
7529
7530 # type: =head2
7531 #: ../src/guestfs-actions.pod:2118
7532 msgid "guestfs_inspect_get_distro"
7533 msgstr ""
7534
7535 # type: verbatim
7536 #: ../src/guestfs-actions.pod:2120
7537 #, no-wrap
7538 msgid ""
7539 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7540 "\t\tconst char *root);\n"
7541 "\n"
7542 msgstr ""
7543
7544 # type: textblock
7545 #: ../src/guestfs-actions.pod:2126 ../fish/guestfish-actions.pod:1665
7546 msgid "This returns the distro (distribution) of the inspected operating system."
7547 msgstr ""
7548
7549 # type: textblock
7550 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1668
7551 msgid "Currently defined distros are:"
7552 msgstr ""
7553
7554 # type: =item
7555 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1672
7556 msgid "\"debian\""
7557 msgstr ""
7558
7559 # type: textblock
7560 #: ../src/guestfs-actions.pod:2135 ../fish/guestfish-actions.pod:1674
7561 msgid "Debian or a Debian-derived distro such as Ubuntu."
7562 msgstr ""
7563
7564 # type: =item
7565 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1676
7566 msgid "\"fedora\""
7567 msgstr ""
7568
7569 # type: textblock
7570 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1678
7571 msgid "Fedora."
7572 msgstr ""
7573
7574 # type: =item
7575 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1680
7576 msgid "\"redhat-based\""
7577 msgstr ""
7578
7579 # type: textblock
7580 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1682
7581 msgid "Some Red Hat-derived distro."
7582 msgstr ""
7583
7584 # type: =item
7585 #: ../src/guestfs-actions.pod:2145 ../fish/guestfish-actions.pod:1684
7586 msgid "\"rhel\""
7587 msgstr ""
7588
7589 # type: textblock
7590 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1686
7591 msgid "Red Hat Enterprise Linux and some derivatives."
7592 msgstr ""
7593
7594 # type: =item
7595 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2301 ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1814
7596 msgid "\"windows\""
7597 msgstr ""
7598
7599 # type: textblock
7600 #: ../src/guestfs-actions.pod:2151 ../fish/guestfish-actions.pod:1690
7601 msgid ""
7602 "Windows does not have distributions.  This string is returned if the OS type "
7603 "is Windows."
7604 msgstr ""
7605
7606 # type: =item
7607 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:2305 ../fish/guestfish-actions.pod:1693 ../fish/guestfish-actions.pod:1818
7608 msgid "\"unknown\""
7609 msgstr ""
7610
7611 # type: textblock
7612 #: ../src/guestfs-actions.pod:2156 ../fish/guestfish-actions.pod:1695
7613 msgid "The distro could not be determined."
7614 msgstr ""
7615
7616 # type: textblock
7617 #: ../src/guestfs-actions.pod:2160 ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1699 ../fish/guestfish-actions.pod:1824
7618 msgid ""
7619 "Future versions of libguestfs may return other strings here.  The caller "
7620 "should be prepared to handle any string."
7621 msgstr ""
7622
7623 # type: =head2
7624 #: ../src/guestfs-actions.pod:2168
7625 msgid "guestfs_inspect_get_filesystems"
7626 msgstr ""
7627
7628 # type: verbatim
7629 #: ../src/guestfs-actions.pod:2170
7630 #, no-wrap
7631 msgid ""
7632 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7633 "\t\tconst char *root);\n"
7634 "\n"
7635 msgstr ""
7636
7637 # type: textblock
7638 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1711
7639 msgid ""
7640 "This returns a list of all the filesystems that we think are associated with "
7641 "this operating system.  This includes the root filesystem, other ordinary "
7642 "filesystems, and non-mounted devices like swap partitions."
7643 msgstr ""
7644
7645 # type: textblock
7646 #: ../src/guestfs-actions.pod:2181 ../fish/guestfish-actions.pod:1716
7647 msgid ""
7648 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7649 "to be shared between operating systems."
7650 msgstr ""
7651
7652 # type: textblock
7653 #: ../src/guestfs-actions.pod:2184
7654 msgid ""
7655 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7656 "C<guestfs_inspect_get_mountpoints>."
7657 msgstr ""
7658
7659 # type: =head2
7660 #: ../src/guestfs-actions.pod:2191
7661 msgid "guestfs_inspect_get_major_version"
7662 msgstr ""
7663
7664 # type: verbatim
7665 #: ../src/guestfs-actions.pod:2193
7666 #, no-wrap
7667 msgid ""
7668 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
7669 "\t\tconst char *root);\n"
7670 "\n"
7671 msgstr ""
7672
7673 # type: textblock
7674 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1729
7675 msgid "This returns the major version number of the inspected operating system."
7676 msgstr ""
7677
7678 # type: textblock
7679 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1732
7680 msgid ""
7681 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7682 "popular public names used by the operating system.  Notably the operating "
7683 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7684 "1).  You can find out the real versions corresponding to releases of Windows "
7685 "by consulting Wikipedia or MSDN."
7686 msgstr ""
7687
7688 # type: textblock
7689 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2226 ../fish/guestfish-actions.pod:1739 ../fish/guestfish-actions.pod:1753
7690 msgid "If the version could not be determined, then C<0> is returned."
7691 msgstr ""
7692
7693 # type: =head2
7694 #: ../src/guestfs-actions.pod:2215
7695 msgid "guestfs_inspect_get_minor_version"
7696 msgstr ""
7697
7698 # type: verbatim
7699 #: ../src/guestfs-actions.pod:2217
7700 #, no-wrap
7701 msgid ""
7702 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
7703 "\t\tconst char *root);\n"
7704 "\n"
7705 msgstr ""
7706
7707 # type: textblock
7708 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1750
7709 msgid "This returns the minor version number of the inspected operating system."
7710 msgstr ""
7711
7712 # type: textblock
7713 #: ../src/guestfs-actions.pod:2228
7714 msgid ""
7715 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7716 "C<guestfs_inspect_get_major_version>."
7717 msgstr ""
7718
7719 # type: =head2
7720 #: ../src/guestfs-actions.pod:2233
7721 msgid "guestfs_inspect_get_mountpoints"
7722 msgstr ""
7723
7724 # type: verbatim
7725 #: ../src/guestfs-actions.pod:2235
7726 #, no-wrap
7727 msgid ""
7728 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
7729 "\t\tconst char *root);\n"
7730 "\n"
7731 msgstr ""
7732
7733 # type: textblock
7734 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1765
7735 msgid ""
7736 "This returns a hash of where we think the filesystems associated with this "
7737 "operating system should be mounted.  Callers should note that this is at "
7738 "best an educated guess made by reading configuration files such as "
7739 "C</etc/fstab>."
7740 msgstr ""
7741
7742 # type: textblock
7743 #: ../src/guestfs-actions.pod:2246 ../fish/guestfish-actions.pod:1770
7744 msgid ""
7745 "Each element in the returned hashtable has a key which is the path of the "
7746 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7747 "mounted there (eg. C</dev/sda1>)."
7748 msgstr ""
7749
7750 # type: textblock
7751 #: ../src/guestfs-actions.pod:2251 ../fish/guestfish-actions.pod:1775
7752 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7753 msgstr ""
7754
7755 # type: textblock
7756 #: ../src/guestfs-actions.pod:2254
7757 msgid ""
7758 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7759 "C<guestfs_inspect_get_filesystems>."
7760 msgstr ""
7761
7762 # type: textblock
7763 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2617 ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:5154
7764 msgid ""
7765 "This function returns a NULL-terminated array of strings, or NULL if there "
7766 "was an error.  The array of strings will always have length C<2n+1>, where "
7767 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
7768 "caller must free the strings and the array after use>."
7769 msgstr ""
7770
7771 # type: =head2
7772 #: ../src/guestfs-actions.pod:2263
7773 msgid "guestfs_inspect_get_product_name"
7774 msgstr ""
7775
7776 # type: verbatim
7777 #: ../src/guestfs-actions.pod:2265
7778 #, no-wrap
7779 msgid ""
7780 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
7781 "\t\tconst char *root);\n"
7782 "\n"
7783 msgstr ""
7784
7785 # type: textblock
7786 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1788
7787 msgid ""
7788 "This returns the product name of the inspected operating system.  The "
7789 "product name is generally some freeform string which can be displayed to the "
7790 "user, but should not be parsed by programs."
7791 msgstr ""
7792
7793 # type: textblock
7794 #: ../src/guestfs-actions.pod:2276 ../fish/guestfish-actions.pod:1793
7795 msgid ""
7796 "If the product name could not be determined, then the string C<unknown> is "
7797 "returned."
7798 msgstr ""
7799
7800 # type: =head2
7801 #: ../src/guestfs-actions.pod:2284
7802 msgid "guestfs_inspect_get_type"
7803 msgstr ""
7804
7805 # type: verbatim
7806 #: ../src/guestfs-actions.pod:2286
7807 #, no-wrap
7808 msgid ""
7809 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
7810 "\t\tconst char *root);\n"
7811 "\n"
7812 msgstr ""
7813
7814 # type: textblock
7815 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1805
7816 msgid ""
7817 "This returns the type of the inspected operating system.  Currently defined "
7818 "types are:"
7819 msgstr ""
7820
7821 # type: =item
7822 #: ../src/guestfs-actions.pod:2297 ../fish/guestfish-actions.pod:1810
7823 msgid "\"linux\""
7824 msgstr ""
7825
7826 # type: textblock
7827 #: ../src/guestfs-actions.pod:2299 ../fish/guestfish-actions.pod:1812
7828 msgid "Any Linux-based operating system."
7829 msgstr ""
7830
7831 # type: textblock
7832 #: ../src/guestfs-actions.pod:2303 ../fish/guestfish-actions.pod:1816
7833 msgid "Any Microsoft Windows operating system."
7834 msgstr ""
7835
7836 # type: textblock
7837 #: ../src/guestfs-actions.pod:2307 ../fish/guestfish-actions.pod:1820
7838 msgid "The operating system type could not be determined."
7839 msgstr ""
7840
7841 # type: =head2
7842 #: ../src/guestfs-actions.pod:2319
7843 msgid "guestfs_inspect_get_windows_systemroot"
7844 msgstr ""
7845
7846 # type: verbatim
7847 #: ../src/guestfs-actions.pod:2321
7848 #, no-wrap
7849 msgid ""
7850 " char *guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
7851 "\t\tconst char *root);\n"
7852 "\n"
7853 msgstr ""
7854
7855 # type: textblock
7856 #: ../src/guestfs-actions.pod:2327 ../fish/guestfish-actions.pod:1836
7857 msgid ""
7858 "This returns the Windows systemroot of the inspected guest.  The systemroot "
7859 "is a directory path such as C</WINDOWS>."
7860 msgstr ""
7861
7862 # type: textblock
7863 #: ../src/guestfs-actions.pod:2330 ../fish/guestfish-actions.pod:1839
7864 msgid ""
7865 "This call assumes that the guest is Windows and that the systemroot could be "
7866 "determined by inspection.  If this is not the case then an error is "
7867 "returned."
7868 msgstr ""
7869
7870 # type: =head2
7871 #: ../src/guestfs-actions.pod:2339
7872 msgid "guestfs_inspect_os"
7873 msgstr ""
7874
7875 # type: verbatim
7876 #: ../src/guestfs-actions.pod:2341
7877 #, no-wrap
7878 msgid ""
7879 " char **guestfs_inspect_os (guestfs_h *g);\n"
7880 "\n"
7881 msgstr ""
7882
7883 # type: textblock
7884 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1849
7885 msgid ""
7886 "This function uses other libguestfs functions and certain heuristics to "
7887 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
7888 "for operating systems."
7889 msgstr ""
7890
7891 # type: textblock
7892 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1853
7893 msgid "The list returned is empty if no operating systems were found."
7894 msgstr ""
7895
7896 # type: textblock
7897 #: ../src/guestfs-actions.pod:2349 ../fish/guestfish-actions.pod:1855
7898 msgid ""
7899 "If one operating system was found, then this returns a list with a single "
7900 "element, which is the name of the root filesystem of this operating system.  "
7901 "It is also possible for this function to return a list containing more than "
7902 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
7903 "element being the root filesystem of one of the operating systems."
7904 msgstr ""
7905
7906 # type: textblock
7907 #: ../src/guestfs-actions.pod:2356
7908 msgid ""
7909 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
7910 "functions in order to query further information about each operating system, "
7911 "such as the name and version."
7912 msgstr ""
7913
7914 # type: textblock
7915 #: ../src/guestfs-actions.pod:2361
7916 msgid ""
7917 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
7918 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
7919 "the contents.  This should be called with no disks currently mounted.  The "
7920 "function may also use Augeas, so any existing Augeas handle will be closed."
7921 msgstr ""
7922
7923 # type: textblock
7924 #: ../src/guestfs-actions.pod:2367 ../fish/guestfish-actions.pod:1873
7925 msgid ""
7926 "This function cannot decrypt encrypted disks.  The caller must do that first "
7927 "(supplying the necessary keys) if the disk is encrypted."
7928 msgstr ""
7929
7930 # type: textblock
7931 #: ../src/guestfs-actions.pod:2373 ../src/guestfs-actions.pod:2578 ../src/guestfs-actions.pod:2634
7932 msgid "See also C<guestfs_list_filesystems>."
7933 msgstr ""
7934
7935 # type: =head2
7936 #: ../src/guestfs-actions.pod:2379
7937 msgid "guestfs_is_blockdev"
7938 msgstr ""
7939
7940 # type: verbatim
7941 #: ../src/guestfs-actions.pod:2381
7942 #, no-wrap
7943 msgid ""
7944 " int guestfs_is_blockdev (guestfs_h *g,\n"
7945 "\t\tconst char *path);\n"
7946 "\n"
7947 msgstr ""
7948
7949 # type: textblock
7950 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1885
7951 msgid ""
7952 "This returns C<true> if and only if there is a block device with the given "
7953 "C<path> name."
7954 msgstr ""
7955
7956 # type: textblock
7957 #: ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2410 ../src/guestfs-actions.pod:2434 ../src/guestfs-actions.pod:2446 ../src/guestfs-actions.pod:2459 ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2515
7958 msgid "See also C<guestfs_stat>."
7959 msgstr ""
7960
7961 # type: =head2
7962 #: ../src/guestfs-actions.pod:2391
7963 msgid "guestfs_is_busy"
7964 msgstr ""
7965
7966 # type: verbatim
7967 #: ../src/guestfs-actions.pod:2393
7968 #, no-wrap
7969 msgid ""
7970 " int guestfs_is_busy (guestfs_h *g);\n"
7971 "\n"
7972 msgstr ""
7973
7974 # type: textblock
7975 #: ../src/guestfs-actions.pod:2395 ../fish/guestfish-actions.pod:1894
7976 msgid ""
7977 "This returns true iff this handle is busy processing a command (in the "
7978 "C<BUSY> state)."
7979 msgstr ""
7980
7981 # type: =head2
7982 #: ../src/guestfs-actions.pod:2402
7983 msgid "guestfs_is_chardev"
7984 msgstr ""
7985
7986 # type: verbatim
7987 #: ../src/guestfs-actions.pod:2404
7988 #, no-wrap
7989 msgid ""
7990 " int guestfs_is_chardev (guestfs_h *g,\n"
7991 "\t\tconst char *path);\n"
7992 "\n"
7993 msgstr ""
7994
7995 # type: textblock
7996 #: ../src/guestfs-actions.pod:2407 ../fish/guestfish-actions.pod:1903
7997 msgid ""
7998 "This returns C<true> if and only if there is a character device with the "
7999 "given C<path> name."
8000 msgstr ""
8001
8002 # type: =head2
8003 #: ../src/guestfs-actions.pod:2414
8004 msgid "guestfs_is_config"
8005 msgstr ""
8006
8007 # type: verbatim
8008 #: ../src/guestfs-actions.pod:2416
8009 #, no-wrap
8010 msgid ""
8011 " int guestfs_is_config (guestfs_h *g);\n"
8012 "\n"
8013 msgstr ""
8014
8015 # type: textblock
8016 #: ../src/guestfs-actions.pod:2418 ../fish/guestfish-actions.pod:1912
8017 msgid ""
8018 "This returns true iff this handle is being configured (in the C<CONFIG> "
8019 "state)."
8020 msgstr ""
8021
8022 # type: =head2
8023 #: ../src/guestfs-actions.pod:2425
8024 msgid "guestfs_is_dir"
8025 msgstr ""
8026
8027 # type: verbatim
8028 #: ../src/guestfs-actions.pod:2427
8029 #, no-wrap
8030 msgid ""
8031 " int guestfs_is_dir (guestfs_h *g,\n"
8032 "\t\tconst char *path);\n"
8033 "\n"
8034 msgstr ""
8035
8036 # type: textblock
8037 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1921
8038 msgid ""
8039 "This returns C<true> if and only if there is a directory with the given "
8040 "C<path> name.  Note that it returns false for other objects like files."
8041 msgstr ""
8042
8043 # type: =head2
8044 #: ../src/guestfs-actions.pod:2438
8045 msgid "guestfs_is_fifo"
8046 msgstr ""
8047
8048 # type: verbatim
8049 #: ../src/guestfs-actions.pod:2440
8050 #, no-wrap
8051 msgid ""
8052 " int guestfs_is_fifo (guestfs_h *g,\n"
8053 "\t\tconst char *path);\n"
8054 "\n"
8055 msgstr ""
8056
8057 # type: textblock
8058 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1931
8059 msgid ""
8060 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8061 "given C<path> name."
8062 msgstr ""
8063
8064 # type: =head2
8065 #: ../src/guestfs-actions.pod:2450
8066 msgid "guestfs_is_file"
8067 msgstr ""
8068
8069 # type: verbatim
8070 #: ../src/guestfs-actions.pod:2452
8071 #, no-wrap
8072 msgid ""
8073 " int guestfs_is_file (guestfs_h *g,\n"
8074 "\t\tconst char *path);\n"
8075 "\n"
8076 msgstr ""
8077
8078 # type: textblock
8079 #: ../src/guestfs-actions.pod:2455 ../fish/guestfish-actions.pod:1940
8080 msgid ""
8081 "This returns C<true> if and only if there is a regular file with the given "
8082 "C<path> name.  Note that it returns false for other objects like "
8083 "directories."
8084 msgstr ""
8085
8086 # type: =head2
8087 #: ../src/guestfs-actions.pod:2463
8088 msgid "guestfs_is_launching"
8089 msgstr ""
8090
8091 # type: verbatim
8092 #: ../src/guestfs-actions.pod:2465
8093 #, no-wrap
8094 msgid ""
8095 " int guestfs_is_launching (guestfs_h *g);\n"
8096 "\n"
8097 msgstr ""
8098
8099 # type: textblock
8100 #: ../src/guestfs-actions.pod:2467 ../fish/guestfish-actions.pod:1950
8101 msgid ""
8102 "This returns true iff this handle is launching the subprocess (in the "
8103 "C<LAUNCHING> state)."
8104 msgstr ""
8105
8106 # type: =head2
8107 #: ../src/guestfs-actions.pod:2474
8108 msgid "guestfs_is_lv"
8109 msgstr ""
8110
8111 # type: verbatim
8112 #: ../src/guestfs-actions.pod:2476
8113 #, no-wrap
8114 msgid ""
8115 " int guestfs_is_lv (guestfs_h *g,\n"
8116 "\t\tconst char *device);\n"
8117 "\n"
8118 msgstr ""
8119
8120 # type: textblock
8121 #: ../src/guestfs-actions.pod:2479 ../fish/guestfish-actions.pod:1959
8122 msgid ""
8123 "This command tests whether C<device> is a logical volume, and returns true "
8124 "iff this is the case."
8125 msgstr ""
8126
8127 # type: =head2
8128 #: ../src/guestfs-actions.pod:2484
8129 msgid "guestfs_is_ready"
8130 msgstr ""
8131
8132 # type: verbatim
8133 #: ../src/guestfs-actions.pod:2486
8134 #, no-wrap
8135 msgid ""
8136 " int guestfs_is_ready (guestfs_h *g);\n"
8137 "\n"
8138 msgstr ""
8139
8140 # type: textblock
8141 #: ../src/guestfs-actions.pod:2488 ../fish/guestfish-actions.pod:1966
8142 msgid ""
8143 "This returns true iff this handle is ready to accept commands (in the "
8144 "C<READY> state)."
8145 msgstr ""
8146
8147 # type: =head2
8148 #: ../src/guestfs-actions.pod:2495
8149 msgid "guestfs_is_socket"
8150 msgstr ""
8151
8152 # type: verbatim
8153 #: ../src/guestfs-actions.pod:2497
8154 #, no-wrap
8155 msgid ""
8156 " int guestfs_is_socket (guestfs_h *g,\n"
8157 "\t\tconst char *path);\n"
8158 "\n"
8159 msgstr ""
8160
8161 # type: textblock
8162 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1975
8163 msgid ""
8164 "This returns C<true> if and only if there is a Unix domain socket with the "
8165 "given C<path> name."
8166 msgstr ""
8167
8168 # type: =head2
8169 #: ../src/guestfs-actions.pod:2507
8170 msgid "guestfs_is_symlink"
8171 msgstr ""
8172
8173 # type: verbatim
8174 #: ../src/guestfs-actions.pod:2509
8175 #, no-wrap
8176 msgid ""
8177 " int guestfs_is_symlink (guestfs_h *g,\n"
8178 "\t\tconst char *path);\n"
8179 "\n"
8180 msgstr ""
8181
8182 # type: textblock
8183 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1984
8184 msgid ""
8185 "This returns C<true> if and only if there is a symbolic link with the given "
8186 "C<path> name."
8187 msgstr ""
8188
8189 # type: =head2
8190 #: ../src/guestfs-actions.pod:2519
8191 msgid "guestfs_kill_subprocess"
8192 msgstr ""
8193
8194 # type: verbatim
8195 #: ../src/guestfs-actions.pod:2521
8196 #, no-wrap
8197 msgid ""
8198 " int guestfs_kill_subprocess (guestfs_h *g);\n"
8199 "\n"
8200 msgstr ""
8201
8202 # type: textblock
8203 #: ../src/guestfs-actions.pod:2523 ../fish/guestfish-actions.pod:1993
8204 msgid "This kills the qemu subprocess.  You should never need to call this."
8205 msgstr ""
8206
8207 # type: =head2
8208 #: ../src/guestfs-actions.pod:2527
8209 msgid "guestfs_launch"
8210 msgstr ""
8211
8212 # type: verbatim
8213 #: ../src/guestfs-actions.pod:2529
8214 #, no-wrap
8215 msgid ""
8216 " int guestfs_launch (guestfs_h *g);\n"
8217 "\n"
8218 msgstr ""
8219
8220 # type: textblock
8221 #: ../src/guestfs-actions.pod:2531 ../fish/guestfish-actions.pod:2001
8222 msgid ""
8223 "Internally libguestfs is implemented by running a virtual machine using "
8224 "L<qemu(1)>."
8225 msgstr ""
8226
8227 # type: textblock
8228 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:2004
8229 msgid ""
8230 "You should call this after configuring the handle (eg. adding drives) but "
8231 "before performing any actions."
8232 msgstr ""
8233
8234 # type: =head2
8235 #: ../src/guestfs-actions.pod:2539
8236 msgid "guestfs_lchown"
8237 msgstr ""
8238
8239 # type: verbatim
8240 #: ../src/guestfs-actions.pod:2541
8241 #, no-wrap
8242 msgid ""
8243 " int guestfs_lchown (guestfs_h *g,\n"
8244 "\t\tint owner,\n"
8245 "\t\tint group,\n"
8246 "\t\tconst char *path);\n"
8247 "\n"
8248 msgstr ""
8249
8250 # type: textblock
8251 #: ../src/guestfs-actions.pod:2546
8252 msgid ""
8253 "Change the file owner to C<owner> and group to C<group>.  This is like "
8254 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8255 "changed, not the target."
8256 msgstr ""
8257
8258 # type: =head2
8259 #: ../src/guestfs-actions.pod:2556
8260 msgid "guestfs_lgetxattrs"
8261 msgstr ""
8262
8263 # type: verbatim
8264 #: ../src/guestfs-actions.pod:2558
8265 #, no-wrap
8266 msgid ""
8267 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
8268 "\t\tconst char *path);\n"
8269 "\n"
8270 msgstr ""
8271
8272 # type: textblock
8273 #: ../src/guestfs-actions.pod:2561
8274 msgid ""
8275 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8276 "then it returns the extended attributes of the link itself."
8277 msgstr ""
8278
8279 # type: =head2
8280 #: ../src/guestfs-actions.pod:2570
8281 msgid "guestfs_list_devices"
8282 msgstr ""
8283
8284 # type: verbatim
8285 #: ../src/guestfs-actions.pod:2572
8286 #, no-wrap
8287 msgid ""
8288 " char **guestfs_list_devices (guestfs_h *g);\n"
8289 "\n"
8290 msgstr ""
8291
8292 # type: textblock
8293 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:2031
8294 msgid "List all the block devices."
8295 msgstr ""
8296
8297 # type: textblock
8298 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:2033
8299 msgid "The full block device names are returned, eg. C</dev/sda>."
8300 msgstr ""
8301
8302 # type: =head2
8303 #: ../src/guestfs-actions.pod:2584
8304 msgid "guestfs_list_filesystems"
8305 msgstr ""
8306
8307 # type: verbatim
8308 #: ../src/guestfs-actions.pod:2586
8309 #, no-wrap
8310 msgid ""
8311 " char **guestfs_list_filesystems (guestfs_h *g);\n"
8312 "\n"
8313 msgstr ""
8314
8315 # type: textblock
8316 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:2041
8317 msgid ""
8318 "This inspection command looks for filesystems on partitions, block devices "
8319 "and logical volumes, returning a list of devices containing filesystems and "
8320 "their type."
8321 msgstr ""
8322
8323 # type: textblock
8324 #: ../src/guestfs-actions.pod:2592 ../fish/guestfish-actions.pod:2045
8325 msgid ""
8326 "The return value is a hash, where the keys are the devices containing "
8327 "filesystems, and the values are the filesystem types.  For example:"
8328 msgstr ""
8329
8330 # type: verbatim
8331 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:2049
8332 #, no-wrap
8333 msgid ""
8334 " \"/dev/sda1\" => \"ntfs\"\n"
8335 " \"/dev/sda2\" => \"ext2\"\n"
8336 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8337 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8338 "\n"
8339 msgstr ""
8340
8341 # type: textblock
8342 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:2054
8343 msgid ""
8344 "The value can have the special value \"unknown\", meaning the content of the "
8345 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8346 msgstr ""
8347
8348 # type: textblock
8349 #: ../src/guestfs-actions.pod:2605
8350 msgid ""
8351 "This command runs other libguestfs commands, which might include "
8352 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8353 "soon after launch and only when nothing is mounted."
8354 msgstr ""
8355
8356 # type: textblock
8357 #: ../src/guestfs-actions.pod:2609
8358 msgid ""
8359 "Not all of the filesystems returned will be mountable.  In particular, swap "
8360 "partitions are returned in the list.  Also this command does not check that "
8361 "each filesystem found is valid and mountable, and some filesystems might be "
8362 "mountable but require special options.  Filesystems may not all belong to a "
8363 "single logical operating system (use C<guestfs_inspect_os> to look for "
8364 "OSes)."
8365 msgstr ""
8366
8367 # type: =head2
8368 #: ../src/guestfs-actions.pod:2623
8369 msgid "guestfs_list_partitions"
8370 msgstr ""
8371
8372 # type: verbatim
8373 #: ../src/guestfs-actions.pod:2625
8374 #, no-wrap
8375 msgid ""
8376 " char **guestfs_list_partitions (guestfs_h *g);\n"
8377 "\n"
8378 msgstr ""
8379
8380 # type: textblock
8381 #: ../src/guestfs-actions.pod:2627 ../fish/guestfish-actions.pod:2074
8382 msgid "List all the partitions detected on all block devices."
8383 msgstr ""
8384
8385 # type: textblock
8386 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:2076
8387 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8388 msgstr ""
8389
8390 # type: textblock
8391 #: ../src/guestfs-actions.pod:2631
8392 msgid ""
8393 "This does not return logical volumes.  For that you will need to call "
8394 "C<guestfs_lvs>."
8395 msgstr ""
8396
8397 # type: =head2
8398 #: ../src/guestfs-actions.pod:2640
8399 msgid "guestfs_ll"
8400 msgstr ""
8401
8402 # type: verbatim
8403 #: ../src/guestfs-actions.pod:2642
8404 #, no-wrap
8405 msgid ""
8406 " char *guestfs_ll (guestfs_h *g,\n"
8407 "\t\tconst char *directory);\n"
8408 "\n"
8409 msgstr ""
8410
8411 # type: textblock
8412 #: ../src/guestfs-actions.pod:2645 ../fish/guestfish-actions.pod:2087
8413 msgid ""
8414 "List the files in C<directory> (relative to the root directory, there is no "
8415 "cwd) in the format of 'ls -la'."
8416 msgstr ""
8417
8418 # type: textblock
8419 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:2090
8420 msgid ""
8421 "This command is mostly useful for interactive sessions.  It is I<not> "
8422 "intended that you try to parse the output string."
8423 msgstr ""
8424
8425 # type: =head2
8426 #: ../src/guestfs-actions.pod:2654
8427 msgid "guestfs_ln"
8428 msgstr ""
8429
8430 # type: verbatim
8431 #: ../src/guestfs-actions.pod:2656
8432 #, no-wrap
8433 msgid ""
8434 " int guestfs_ln (guestfs_h *g,\n"
8435 "\t\tconst char *target,\n"
8436 "\t\tconst char *linkname);\n"
8437 "\n"
8438 msgstr ""
8439
8440 # type: textblock
8441 #: ../src/guestfs-actions.pod:2660 ../fish/guestfish-actions.pod:2097
8442 msgid "This command creates a hard link using the C<ln> command."
8443 msgstr ""
8444
8445 # type: =head2
8446 #: ../src/guestfs-actions.pod:2664
8447 msgid "guestfs_ln_f"
8448 msgstr ""
8449
8450 # type: verbatim
8451 #: ../src/guestfs-actions.pod:2666
8452 #, no-wrap
8453 msgid ""
8454 " int guestfs_ln_f (guestfs_h *g,\n"
8455 "\t\tconst char *target,\n"
8456 "\t\tconst char *linkname);\n"
8457 "\n"
8458 msgstr ""
8459
8460 # type: textblock
8461 #: ../src/guestfs-actions.pod:2670 ../fish/guestfish-actions.pod:2103
8462 msgid ""
8463 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8464 "option removes the link (C<linkname>) if it exists already."
8465 msgstr ""
8466
8467 # type: =head2
8468 #: ../src/guestfs-actions.pod:2675
8469 msgid "guestfs_ln_s"
8470 msgstr ""
8471
8472 # type: verbatim
8473 #: ../src/guestfs-actions.pod:2677
8474 #, no-wrap
8475 msgid ""
8476 " int guestfs_ln_s (guestfs_h *g,\n"
8477 "\t\tconst char *target,\n"
8478 "\t\tconst char *linkname);\n"
8479 "\n"
8480 msgstr ""
8481
8482 # type: textblock
8483 #: ../src/guestfs-actions.pod:2681 ../fish/guestfish-actions.pod:2110
8484 msgid "This command creates a symbolic link using the C<ln -s> command."
8485 msgstr ""
8486
8487 # type: =head2
8488 #: ../src/guestfs-actions.pod:2685
8489 msgid "guestfs_ln_sf"
8490 msgstr ""
8491
8492 # type: verbatim
8493 #: ../src/guestfs-actions.pod:2687
8494 #, no-wrap
8495 msgid ""
8496 " int guestfs_ln_sf (guestfs_h *g,\n"
8497 "\t\tconst char *target,\n"
8498 "\t\tconst char *linkname);\n"
8499 "\n"
8500 msgstr ""
8501
8502 # type: textblock
8503 #: ../src/guestfs-actions.pod:2691 ../fish/guestfish-actions.pod:2116
8504 msgid ""
8505 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8506 "option removes the link (C<linkname>) if it exists already."
8507 msgstr ""
8508
8509 # type: =head2
8510 #: ../src/guestfs-actions.pod:2696
8511 msgid "guestfs_lremovexattr"
8512 msgstr ""
8513
8514 # type: verbatim
8515 #: ../src/guestfs-actions.pod:2698
8516 #, no-wrap
8517 msgid ""
8518 " int guestfs_lremovexattr (guestfs_h *g,\n"
8519 "\t\tconst char *xattr,\n"
8520 "\t\tconst char *path);\n"
8521 "\n"
8522 msgstr ""
8523
8524 # type: textblock
8525 #: ../src/guestfs-actions.pod:2702
8526 msgid ""
8527 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8528 "link, then it removes an extended attribute of the link itself."
8529 msgstr ""
8530
8531 # type: =head2
8532 #: ../src/guestfs-actions.pod:2708
8533 msgid "guestfs_ls"
8534 msgstr ""
8535
8536 # type: verbatim
8537 #: ../src/guestfs-actions.pod:2710
8538 #, no-wrap
8539 msgid ""
8540 " char **guestfs_ls (guestfs_h *g,\n"
8541 "\t\tconst char *directory);\n"
8542 "\n"
8543 msgstr ""
8544
8545 # type: textblock
8546 #: ../src/guestfs-actions.pod:2713 ../fish/guestfish-actions.pod:2131
8547 msgid ""
8548 "List the files in C<directory> (relative to the root directory, there is no "
8549 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
8550 "shown."
8551 msgstr ""
8552
8553 # type: textblock
8554 #: ../src/guestfs-actions.pod:2717
8555 msgid ""
8556 "This command is mostly useful for interactive sessions.  Programs should "
8557 "probably use C<guestfs_readdir> instead."
8558 msgstr ""
8559
8560 # type: =head2
8561 #: ../src/guestfs-actions.pod:2724
8562 msgid "guestfs_lsetxattr"
8563 msgstr ""
8564
8565 # type: verbatim
8566 #: ../src/guestfs-actions.pod:2726
8567 #, no-wrap
8568 msgid ""
8569 " int guestfs_lsetxattr (guestfs_h *g,\n"
8570 "\t\tconst char *xattr,\n"
8571 "\t\tconst char *val,\n"
8572 "\t\tint vallen,\n"
8573 "\t\tconst char *path);\n"
8574 "\n"
8575 msgstr ""
8576
8577 # type: textblock
8578 #: ../src/guestfs-actions.pod:2732
8579 msgid ""
8580 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8581 "then it sets an extended attribute of the link itself."
8582 msgstr ""
8583
8584 # type: =head2
8585 #: ../src/guestfs-actions.pod:2738
8586 msgid "guestfs_lstat"
8587 msgstr ""
8588
8589 # type: verbatim
8590 #: ../src/guestfs-actions.pod:2740
8591 #, no-wrap
8592 msgid ""
8593 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8594 "\t\tconst char *path);\n"
8595 "\n"
8596 msgstr ""
8597
8598 # type: textblock
8599 #: ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:4819 ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:3732
8600 msgid "Returns file information for the given C<path>."
8601 msgstr ""
8602
8603 # type: textblock
8604 #: ../src/guestfs-actions.pod:2745
8605 msgid ""
8606 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8607 "link, then the link is stat-ed, not the file it refers to."
8608 msgstr ""
8609
8610 # type: textblock
8611 #: ../src/guestfs-actions.pod:2749 ../fish/guestfish-actions.pod:2156
8612 msgid "This is the same as the C<lstat(2)> system call."
8613 msgstr ""
8614
8615 # type: textblock
8616 #: ../src/guestfs-actions.pod:2751 ../src/guestfs-actions.pod:4823
8617 msgid ""
8618 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8619 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8620 msgstr ""
8621
8622 # type: =head2
8623 #: ../src/guestfs-actions.pod:2755
8624 msgid "guestfs_lstatlist"
8625 msgstr ""
8626
8627 # type: verbatim
8628 #: ../src/guestfs-actions.pod:2757
8629 #, no-wrap
8630 msgid ""
8631 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
8632 "\t\tconst char *path,\n"
8633 "\t\tchar *const *names);\n"
8634 "\n"
8635 msgstr ""
8636
8637 # type: textblock
8638 #: ../src/guestfs-actions.pod:2761
8639 msgid ""
8640 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8641 "files, where all files are in the directory C<path>.  C<names> is the list "
8642 "of files from this directory."
8643 msgstr ""
8644
8645 # type: textblock
8646 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:2166
8647 msgid ""
8648 "On return you get a list of stat structs, with a one-to-one correspondence "
8649 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8650 "then the C<ino> field of that structure is set to C<-1>."
8651 msgstr ""
8652
8653 # type: textblock
8654 #: ../src/guestfs-actions.pod:2770
8655 msgid ""
8656 "This call is intended for programs that want to efficiently list a directory "
8657 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8658 "for a similarly efficient call for getting extended attributes.  Very long "
8659 "directory listings might cause the protocol message size to be exceeded, "
8660 "causing this call to fail.  The caller must split up such requests into "
8661 "smaller groups of names."
8662 msgstr ""
8663
8664 # type: textblock
8665 #: ../src/guestfs-actions.pod:2778
8666 msgid ""
8667 "This function returns a C<struct guestfs_stat_list *> (see "
8668 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8669 "must call C<guestfs_free_stat_list> after use>."
8670 msgstr ""
8671
8672 # type: =head2
8673 #: ../src/guestfs-actions.pod:2783
8674 msgid "guestfs_luks_add_key"
8675 msgstr ""
8676
8677 # type: verbatim
8678 #: ../src/guestfs-actions.pod:2785
8679 #, no-wrap
8680 msgid ""
8681 " int guestfs_luks_add_key (guestfs_h *g,\n"
8682 "\t\tconst char *device,\n"
8683 "\t\tconst char *key,\n"
8684 "\t\tconst char *newkey,\n"
8685 "\t\tint keyslot);\n"
8686 "\n"
8687 msgstr ""
8688
8689 # type: textblock
8690 #: ../src/guestfs-actions.pod:2791 ../fish/guestfish-actions.pod:2183
8691 msgid ""
8692 "This command adds a new key on LUKS device C<device>.  C<key> is any "
8693 "existing key, and is used to access the device.  C<newkey> is the new key to "
8694 "add.  C<keyslot> is the key slot that will be replaced."
8695 msgstr ""
8696
8697 # type: textblock
8698 #: ../src/guestfs-actions.pod:2796
8699 msgid ""
8700 "Note that if C<keyslot> already contains a key, then this command will "
8701 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
8702 msgstr ""
8703
8704 # type: textblock
8705 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:2856 ../src/guestfs-actions.pod:2873 ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:2918
8706 msgid ""
8707 "This function takes a key or passphrase parameter which could contain "
8708 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
8709 "information."
8710 msgstr ""
8711
8712 # type: =head2
8713 #: ../src/guestfs-actions.pod:2806
8714 msgid "guestfs_luks_close"
8715 msgstr ""
8716
8717 # type: verbatim
8718 #: ../src/guestfs-actions.pod:2808
8719 #, no-wrap
8720 msgid ""
8721 " int guestfs_luks_close (guestfs_h *g,\n"
8722 "\t\tconst char *device);\n"
8723 "\n"
8724 msgstr ""
8725
8726 # type: textblock
8727 #: ../src/guestfs-actions.pod:2811
8728 msgid ""
8729 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
8730 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
8731 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
8732 "underlying block device."
8733 msgstr ""
8734
8735 # type: =head2
8736 #: ../src/guestfs-actions.pod:2819
8737 msgid "guestfs_luks_format"
8738 msgstr ""
8739
8740 # type: verbatim
8741 #: ../src/guestfs-actions.pod:2821
8742 #, no-wrap
8743 msgid ""
8744 " int guestfs_luks_format (guestfs_h *g,\n"
8745 "\t\tconst char *device,\n"
8746 "\t\tconst char *key,\n"
8747 "\t\tint keyslot);\n"
8748 "\n"
8749 msgstr ""
8750
8751 # type: textblock
8752 #: ../src/guestfs-actions.pod:2826 ../fish/guestfish-actions.pod:2209
8753 msgid ""
8754 "This command erases existing data on C<device> and formats the device as a "
8755 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
8756 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
8757 msgstr ""
8758
8759 # type: textblock
8760 #: ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2853 ../src/guestfs-actions.pod:2972 ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:5689 ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2230 ../fish/guestfish-actions.pod:2314 ../fish/guestfish-actions.pod:2844 ../fish/guestfish-actions.pod:3351 ../fish/guestfish-actions.pod:3631 ../fish/guestfish-actions.pod:3647 ../fish/guestfish-actions.pod:3662 ../fish/guestfish-actions.pod:4377
8761 msgid ""
8762 "B<This command is dangerous.  Without careful use you can easily destroy all "
8763 "your data>."
8764 msgstr ""
8765
8766 # type: =head2
8767 #: ../src/guestfs-actions.pod:2840
8768 msgid "guestfs_luks_format_cipher"
8769 msgstr ""
8770
8771 # type: verbatim
8772 #: ../src/guestfs-actions.pod:2842
8773 #, no-wrap
8774 msgid ""
8775 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
8776 "\t\tconst char *device,\n"
8777 "\t\tconst char *key,\n"
8778 "\t\tint keyslot,\n"
8779 "\t\tconst char *cipher);\n"
8780 "\n"
8781 msgstr ""
8782
8783 # type: textblock
8784 #: ../src/guestfs-actions.pod:2848
8785 msgid ""
8786 "This command is the same as C<guestfs_luks_format> but it also allows you to "
8787 "set the C<cipher> used."
8788 msgstr ""
8789
8790 # type: =head2
8791 #: ../src/guestfs-actions.pod:2860
8792 msgid "guestfs_luks_kill_slot"
8793 msgstr ""
8794
8795 # type: verbatim
8796 #: ../src/guestfs-actions.pod:2862
8797 #, no-wrap
8798 msgid ""
8799 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
8800 "\t\tconst char *device,\n"
8801 "\t\tconst char *key,\n"
8802 "\t\tint keyslot);\n"
8803 "\n"
8804 msgstr ""
8805
8806 # type: textblock
8807 #: ../src/guestfs-actions.pod:2867 ../fish/guestfish-actions.pod:2237
8808 msgid ""
8809 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
8810 "device C<device>.  C<key> must be one of the I<other> keys."
8811 msgstr ""
8812
8813 # type: =head2
8814 #: ../src/guestfs-actions.pod:2877
8815 msgid "guestfs_luks_open"
8816 msgstr ""
8817
8818 # type: verbatim
8819 #: ../src/guestfs-actions.pod:2879
8820 #, no-wrap
8821 msgid ""
8822 " int guestfs_luks_open (guestfs_h *g,\n"
8823 "\t\tconst char *device,\n"
8824 "\t\tconst char *key,\n"
8825 "\t\tconst char *mapname);\n"
8826 "\n"
8827 msgstr ""
8828
8829 # type: textblock
8830 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:2248
8831 msgid ""
8832 "This command opens a block device which has been encrypted according to the "
8833 "Linux Unified Key Setup (LUKS) standard."
8834 msgstr ""
8835
8836 # type: textblock
8837 #: ../src/guestfs-actions.pod:2887 ../fish/guestfish-actions.pod:2251
8838 msgid "C<device> is the encrypted block device or partition."
8839 msgstr ""
8840
8841 # type: textblock
8842 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:2253
8843 msgid ""
8844 "The caller must supply one of the keys associated with the LUKS block "
8845 "device, in the C<key> parameter."
8846 msgstr ""
8847
8848 # type: textblock
8849 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:2256
8850 msgid ""
8851 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
8852 "writes to this block device are decrypted from and encrypted to the "
8853 "underlying C<device> respectively."
8854 msgstr ""
8855
8856 # type: textblock
8857 #: ../src/guestfs-actions.pod:2896
8858 msgid ""
8859 "If this block device contains LVM volume groups, then calling "
8860 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
8861 "visible."
8862 msgstr ""
8863
8864 # type: =head2
8865 #: ../src/guestfs-actions.pod:2906
8866 msgid "guestfs_luks_open_ro"
8867 msgstr ""
8868
8869 # type: verbatim
8870 #: ../src/guestfs-actions.pod:2908
8871 #, no-wrap
8872 msgid ""
8873 " int guestfs_luks_open_ro (guestfs_h *g,\n"
8874 "\t\tconst char *device,\n"
8875 "\t\tconst char *key,\n"
8876 "\t\tconst char *mapname);\n"
8877 "\n"
8878 msgstr ""
8879
8880 # type: textblock
8881 #: ../src/guestfs-actions.pod:2913
8882 msgid ""
8883 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
8884 "created."
8885 msgstr ""
8886
8887 # type: =head2
8888 #: ../src/guestfs-actions.pod:2922
8889 msgid "guestfs_lvcreate"
8890 msgstr ""
8891
8892 # type: verbatim
8893 #: ../src/guestfs-actions.pod:2924
8894 #, no-wrap
8895 msgid ""
8896 " int guestfs_lvcreate (guestfs_h *g,\n"
8897 "\t\tconst char *logvol,\n"
8898 "\t\tconst char *volgroup,\n"
8899 "\t\tint mbytes);\n"
8900 "\n"
8901 msgstr ""
8902
8903 # type: textblock
8904 #: ../src/guestfs-actions.pod:2929 ../fish/guestfish-actions.pod:2281
8905 msgid ""
8906 "This creates an LVM logical volume called C<logvol> on the volume group "
8907 "C<volgroup>, with C<size> megabytes."
8908 msgstr ""
8909
8910 # type: =head2
8911 #: ../src/guestfs-actions.pod:2934
8912 msgid "guestfs_lvm_canonical_lv_name"
8913 msgstr ""
8914
8915 # type: verbatim
8916 #: ../src/guestfs-actions.pod:2936
8917 #, no-wrap
8918 msgid ""
8919 " char *guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
8920 "\t\tconst char *lvname);\n"
8921 "\n"
8922 msgstr ""
8923
8924 # type: textblock
8925 #: ../src/guestfs-actions.pod:2939 ../fish/guestfish-actions.pod:2288
8926 msgid ""
8927 "This converts alternative naming schemes for LVs that you might find to the "
8928 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
8929 "C</dev/VG/LV>."
8930 msgstr ""
8931
8932 # type: textblock
8933 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2292
8934 msgid ""
8935 "This command returns an error if the C<lvname> parameter does not refer to a "
8936 "logical volume."
8937 msgstr ""
8938
8939 # type: textblock
8940 #: ../src/guestfs-actions.pod:2946
8941 msgid "See also C<guestfs_is_lv>."
8942 msgstr ""
8943
8944 # type: =head2
8945 #: ../src/guestfs-actions.pod:2951
8946 msgid "guestfs_lvm_clear_filter"
8947 msgstr ""
8948
8949 # type: verbatim
8950 #: ../src/guestfs-actions.pod:2953
8951 #, no-wrap
8952 msgid ""
8953 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
8954 "\n"
8955 msgstr ""
8956
8957 # type: textblock
8958 #: ../src/guestfs-actions.pod:2955
8959 msgid ""
8960 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
8961 "see every block device."
8962 msgstr ""
8963
8964 # type: textblock
8965 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:2994 ../fish/guestfish-actions.pod:2304 ../fish/guestfish-actions.pod:2335
8966 msgid "This command also clears the LVM cache and performs a volume group scan."
8967 msgstr ""
8968
8969 # type: =head2
8970 #: ../src/guestfs-actions.pod:2963
8971 msgid "guestfs_lvm_remove_all"
8972 msgstr ""
8973
8974 # type: verbatim
8975 #: ../src/guestfs-actions.pod:2965
8976 #, no-wrap
8977 msgid ""
8978 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
8979 "\n"
8980 msgstr ""
8981
8982 # type: textblock
8983 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2311
8984 msgid ""
8985 "This command removes all LVM logical volumes, volume groups and physical "
8986 "volumes."
8987 msgstr ""
8988
8989 # type: =head2
8990 #: ../src/guestfs-actions.pod:2975
8991 msgid "guestfs_lvm_set_filter"
8992 msgstr ""
8993
8994 # type: verbatim
8995 #: ../src/guestfs-actions.pod:2977
8996 #, no-wrap
8997 msgid ""
8998 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
8999 "\t\tchar *const *devices);\n"
9000 "\n"
9001 msgstr ""
9002
9003 # type: textblock
9004 #: ../src/guestfs-actions.pod:2980 ../fish/guestfish-actions.pod:2321
9005 msgid ""
9006 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9007 "block devices in the list C<devices>, and will ignore all other attached "
9008 "block devices."
9009 msgstr ""
9010
9011 # type: textblock
9012 #: ../src/guestfs-actions.pod:2984 ../fish/guestfish-actions.pod:2325
9013 msgid ""
9014 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9015 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9016 "there are two types of duplication possible: either cloned PVs/VGs which "
9017 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9018 "same name.  In normal operation you cannot create this situation, but you "
9019 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9020 "inside the LVM metadata."
9021 msgstr ""
9022
9023 # type: textblock
9024 #: ../src/guestfs-actions.pod:2997 ../fish/guestfish-actions.pod:2338
9025 msgid "You can filter whole block devices or individual partitions."
9026 msgstr ""
9027
9028 # type: textblock
9029 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2340
9030 msgid ""
9031 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9032 "filesystem), even if you are not filtering out that VG."
9033 msgstr ""
9034
9035 # type: =head2
9036 #: ../src/guestfs-actions.pod:3005
9037 msgid "guestfs_lvremove"
9038 msgstr ""
9039
9040 # type: verbatim
9041 #: ../src/guestfs-actions.pod:3007
9042 #, no-wrap
9043 msgid ""
9044 " int guestfs_lvremove (guestfs_h *g,\n"
9045 "\t\tconst char *device);\n"
9046 "\n"
9047 msgstr ""
9048
9049 # type: textblock
9050 #: ../src/guestfs-actions.pod:3010 ../fish/guestfish-actions.pod:2348
9051 msgid ""
9052 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9053 "LV, such as C</dev/VG/LV>."
9054 msgstr ""
9055
9056 # type: textblock
9057 #: ../src/guestfs-actions.pod:3013 ../fish/guestfish-actions.pod:2351
9058 msgid ""
9059 "You can also remove all LVs in a volume group by specifying the VG name, "
9060 "C</dev/VG>."
9061 msgstr ""
9062
9063 # type: =head2
9064 #: ../src/guestfs-actions.pod:3018
9065 msgid "guestfs_lvrename"
9066 msgstr ""
9067
9068 # type: verbatim
9069 #: ../src/guestfs-actions.pod:3020
9070 #, no-wrap
9071 msgid ""
9072 " int guestfs_lvrename (guestfs_h *g,\n"
9073 "\t\tconst char *logvol,\n"
9074 "\t\tconst char *newlogvol);\n"
9075 "\n"
9076 msgstr ""
9077
9078 # type: textblock
9079 #: ../src/guestfs-actions.pod:3024 ../fish/guestfish-actions.pod:2358
9080 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9081 msgstr ""
9082
9083 # type: =head2
9084 #: ../src/guestfs-actions.pod:3028
9085 msgid "guestfs_lvresize"
9086 msgstr ""
9087
9088 # type: verbatim
9089 #: ../src/guestfs-actions.pod:3030
9090 #, no-wrap
9091 msgid ""
9092 " int guestfs_lvresize (guestfs_h *g,\n"
9093 "\t\tconst char *device,\n"
9094 "\t\tint mbytes);\n"
9095 "\n"
9096 msgstr ""
9097
9098 # type: textblock
9099 #: ../src/guestfs-actions.pod:3034 ../fish/guestfish-actions.pod:2364
9100 msgid ""
9101 "This resizes (expands or shrinks) an existing LVM logical volume to "
9102 "C<mbytes>.  When reducing, data in the reduced part is lost."
9103 msgstr ""
9104
9105 # type: =head2
9106 #: ../src/guestfs-actions.pod:3040
9107 msgid "guestfs_lvresize_free"
9108 msgstr ""
9109
9110 # type: verbatim
9111 #: ../src/guestfs-actions.pod:3042
9112 #, no-wrap
9113 msgid ""
9114 " int guestfs_lvresize_free (guestfs_h *g,\n"
9115 "\t\tconst char *lv,\n"
9116 "\t\tint percent);\n"
9117 "\n"
9118 msgstr ""
9119
9120 # type: textblock
9121 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2372
9122 msgid ""
9123 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9124 "remaining free space in the volume group.  Commonly you would call this with "
9125 "pc = 100 which expands the logical volume as much as possible, using all "
9126 "remaining free space in the volume group."
9127 msgstr ""
9128
9129 # type: =head2
9130 #: ../src/guestfs-actions.pod:3054
9131 msgid "guestfs_lvs"
9132 msgstr ""
9133
9134 # type: verbatim
9135 #: ../src/guestfs-actions.pod:3056
9136 #, no-wrap
9137 msgid ""
9138 " char **guestfs_lvs (guestfs_h *g);\n"
9139 "\n"
9140 msgstr ""
9141
9142 # type: textblock
9143 #: ../src/guestfs-actions.pod:3058 ../fish/guestfish-actions.pod:2382
9144 msgid ""
9145 "List all the logical volumes detected.  This is the equivalent of the "
9146 "L<lvs(8)> command."
9147 msgstr ""
9148
9149 # type: textblock
9150 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2385
9151 msgid ""
9152 "This returns a list of the logical volume device names "
9153 "(eg. C</dev/VolGroup00/LogVol00>)."
9154 msgstr ""
9155
9156 # type: textblock
9157 #: ../src/guestfs-actions.pod:3064
9158 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9159 msgstr ""
9160
9161 # type: =head2
9162 #: ../src/guestfs-actions.pod:3070
9163 msgid "guestfs_lvs_full"
9164 msgstr ""
9165
9166 # type: verbatim
9167 #: ../src/guestfs-actions.pod:3072
9168 #, no-wrap
9169 msgid ""
9170 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
9171 "\n"
9172 msgstr ""
9173
9174 # type: textblock
9175 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2394
9176 msgid ""
9177 "List all the logical volumes detected.  This is the equivalent of the "
9178 "L<lvs(8)> command.  The \"full\" version includes all fields."
9179 msgstr ""
9180
9181 # type: textblock
9182 #: ../src/guestfs-actions.pod:3077
9183 msgid ""
9184 "This function returns a C<struct guestfs_lvm_lv_list *> (see "
9185 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
9186 "must call C<guestfs_free_lvm_lv_list> after use>."
9187 msgstr ""
9188
9189 # type: =head2
9190 #: ../src/guestfs-actions.pod:3082
9191 msgid "guestfs_lvuuid"
9192 msgstr ""
9193
9194 # type: verbatim
9195 #: ../src/guestfs-actions.pod:3084
9196 #, no-wrap
9197 msgid ""
9198 " char *guestfs_lvuuid (guestfs_h *g,\n"
9199 "\t\tconst char *device);\n"
9200 "\n"
9201 msgstr ""
9202
9203 # type: textblock
9204 #: ../src/guestfs-actions.pod:3087 ../fish/guestfish-actions.pod:2401
9205 msgid "This command returns the UUID of the LVM LV C<device>."
9206 msgstr ""
9207
9208 # type: =head2
9209 #: ../src/guestfs-actions.pod:3092
9210 msgid "guestfs_lxattrlist"
9211 msgstr ""
9212
9213 # type: verbatim
9214 #: ../src/guestfs-actions.pod:3094
9215 #, no-wrap
9216 msgid ""
9217 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
9218 "\t\tconst char *path,\n"
9219 "\t\tchar *const *names);\n"
9220 "\n"
9221 msgstr ""
9222
9223 # type: textblock
9224 #: ../src/guestfs-actions.pod:3098 ../fish/guestfish-actions.pod:2407
9225 msgid ""
9226 "This call allows you to get the extended attributes of multiple files, where "
9227 "all files are in the directory C<path>.  C<names> is the list of files from "
9228 "this directory."
9229 msgstr ""
9230
9231 # type: textblock
9232 #: ../src/guestfs-actions.pod:3102 ../fish/guestfish-actions.pod:2411
9233 msgid ""
9234 "On return you get a flat list of xattr structs which must be interpreted "
9235 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9236 "C<attrval> in this struct is zero-length to indicate there was an error "
9237 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9238 "number (the number of following attributes for this file, which could be "
9239 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9240 "attributes for the first named file.  This repeats for the second and "
9241 "subsequent files."
9242 msgstr ""
9243
9244 # type: textblock
9245 #: ../src/guestfs-actions.pod:3112
9246 msgid ""
9247 "This call is intended for programs that want to efficiently list a directory "
9248 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9249 "a similarly efficient call for getting standard stats.  Very long directory "
9250 "listings might cause the protocol message size to be exceeded, causing this "
9251 "call to fail.  The caller must split up such requests into smaller groups of "
9252 "names."
9253 msgstr ""
9254
9255 # type: =head2
9256 #: ../src/guestfs-actions.pod:3125
9257 msgid "guestfs_mkdir"
9258 msgstr ""
9259
9260 # type: verbatim
9261 #: ../src/guestfs-actions.pod:3127
9262 #, no-wrap
9263 msgid ""
9264 " int guestfs_mkdir (guestfs_h *g,\n"
9265 "\t\tconst char *path);\n"
9266 "\n"
9267 msgstr ""
9268
9269 # type: textblock
9270 #: ../src/guestfs-actions.pod:3130 ../fish/guestfish-actions.pod:2433
9271 msgid "Create a directory named C<path>."
9272 msgstr ""
9273
9274 # type: =head2
9275 #: ../src/guestfs-actions.pod:3134
9276 msgid "guestfs_mkdir_mode"
9277 msgstr ""
9278
9279 # type: verbatim
9280 #: ../src/guestfs-actions.pod:3136
9281 #, no-wrap
9282 msgid ""
9283 " int guestfs_mkdir_mode (guestfs_h *g,\n"
9284 "\t\tconst char *path,\n"
9285 "\t\tint mode);\n"
9286 "\n"
9287 msgstr ""
9288
9289 # type: textblock
9290 #: ../src/guestfs-actions.pod:3140 ../fish/guestfish-actions.pod:2439
9291 msgid ""
9292 "This command creates a directory, setting the initial permissions of the "
9293 "directory to C<mode>."
9294 msgstr ""
9295
9296 # type: textblock
9297 #: ../src/guestfs-actions.pod:3143 ../fish/guestfish-actions.pod:2442
9298 msgid ""
9299 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9300 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9301 "other ways."
9302 msgstr ""
9303
9304 # type: textblock
9305 #: ../src/guestfs-actions.pod:3147
9306 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9307 msgstr ""
9308
9309 # type: =head2
9310 #: ../src/guestfs-actions.pod:3151
9311 msgid "guestfs_mkdir_p"
9312 msgstr ""
9313
9314 # type: verbatim
9315 #: ../src/guestfs-actions.pod:3153
9316 #, no-wrap
9317 msgid ""
9318 " int guestfs_mkdir_p (guestfs_h *g,\n"
9319 "\t\tconst char *path);\n"
9320 "\n"
9321 msgstr ""
9322
9323 # type: textblock
9324 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2452
9325 msgid ""
9326 "Create a directory named C<path>, creating any parent directories as "
9327 "necessary.  This is like the C<mkdir -p> shell command."
9328 msgstr ""
9329
9330 # type: =head2
9331 #: ../src/guestfs-actions.pod:3161
9332 msgid "guestfs_mkdtemp"
9333 msgstr ""
9334
9335 # type: verbatim
9336 #: ../src/guestfs-actions.pod:3163
9337 #, no-wrap
9338 msgid ""
9339 " char *guestfs_mkdtemp (guestfs_h *g,\n"
9340 "\t\tconst char *template);\n"
9341 "\n"
9342 msgstr ""
9343
9344 # type: textblock
9345 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2459
9346 msgid ""
9347 "This command creates a temporary directory.  The C<template> parameter "
9348 "should be a full pathname for the temporary directory name with the final "
9349 "six characters being \"XXXXXX\"."
9350 msgstr ""
9351
9352 # type: textblock
9353 #: ../src/guestfs-actions.pod:3171 ../fish/guestfish-actions.pod:2464
9354 msgid ""
9355 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9356 "being suitable for Windows filesystems."
9357 msgstr ""
9358
9359 # type: textblock
9360 #: ../src/guestfs-actions.pod:3174 ../fish/guestfish-actions.pod:2467
9361 msgid "The name of the temporary directory that was created is returned."
9362 msgstr ""
9363
9364 # type: textblock
9365 #: ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2470
9366 msgid "The temporary directory is created with mode 0700 and is owned by root."
9367 msgstr ""
9368
9369 # type: textblock
9370 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2473
9371 msgid ""
9372 "The caller is responsible for deleting the temporary directory and its "
9373 "contents after use."
9374 msgstr ""
9375
9376 # type: textblock
9377 #: ../src/guestfs-actions.pod:3183 ../fish/guestfish-actions.pod:2476
9378 msgid "See also: L<mkdtemp(3)>"
9379 msgstr ""
9380
9381 # type: =head2
9382 #: ../src/guestfs-actions.pod:3188
9383 msgid "guestfs_mke2fs_J"
9384 msgstr ""
9385
9386 # type: verbatim
9387 #: ../src/guestfs-actions.pod:3190
9388 #, no-wrap
9389 msgid ""
9390 " int guestfs_mke2fs_J (guestfs_h *g,\n"
9391 "\t\tconst char *fstype,\n"
9392 "\t\tint blocksize,\n"
9393 "\t\tconst char *device,\n"
9394 "\t\tconst char *journal);\n"
9395 "\n"
9396 msgstr ""
9397
9398 # type: textblock
9399 #: ../src/guestfs-actions.pod:3196 ../fish/guestfish-actions.pod:2482
9400 msgid ""
9401 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9402 "C<journal>.  It is equivalent to the command:"
9403 msgstr ""
9404
9405 # type: verbatim
9406 #: ../src/guestfs-actions.pod:3200 ../fish/guestfish-actions.pod:2486
9407 #, no-wrap
9408 msgid ""
9409 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9410 "\n"
9411 msgstr ""
9412
9413 # type: textblock
9414 #: ../src/guestfs-actions.pod:3202
9415 msgid "See also C<guestfs_mke2journal>."
9416 msgstr ""
9417
9418 # type: =head2
9419 #: ../src/guestfs-actions.pod:3206
9420 msgid "guestfs_mke2fs_JL"
9421 msgstr ""
9422
9423 # type: verbatim
9424 #: ../src/guestfs-actions.pod:3208
9425 #, no-wrap
9426 msgid ""
9427 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
9428 "\t\tconst char *fstype,\n"
9429 "\t\tint blocksize,\n"
9430 "\t\tconst char *device,\n"
9431 "\t\tconst char *label);\n"
9432 "\n"
9433 msgstr ""
9434
9435 # type: textblock
9436 #: ../src/guestfs-actions.pod:3214 ../fish/guestfish-actions.pod:2494
9437 msgid ""
9438 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9439 "the journal labeled C<label>."
9440 msgstr ""
9441
9442 # type: textblock
9443 #: ../src/guestfs-actions.pod:3217
9444 msgid "See also C<guestfs_mke2journal_L>."
9445 msgstr ""
9446
9447 # type: =head2
9448 #: ../src/guestfs-actions.pod:3221
9449 msgid "guestfs_mke2fs_JU"
9450 msgstr ""
9451
9452 # type: verbatim
9453 #: ../src/guestfs-actions.pod:3223
9454 #, no-wrap
9455 msgid ""
9456 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
9457 "\t\tconst char *fstype,\n"
9458 "\t\tint blocksize,\n"
9459 "\t\tconst char *device,\n"
9460 "\t\tconst char *uuid);\n"
9461 "\n"
9462 msgstr ""
9463
9464 # type: textblock
9465 #: ../src/guestfs-actions.pod:3229 ../fish/guestfish-actions.pod:2503
9466 msgid ""
9467 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9468 "the journal with UUID C<uuid>."
9469 msgstr ""
9470
9471 # type: textblock
9472 #: ../src/guestfs-actions.pod:3232
9473 msgid "See also C<guestfs_mke2journal_U>."
9474 msgstr ""
9475
9476 # type: =head2
9477 #: ../src/guestfs-actions.pod:3236
9478 msgid "guestfs_mke2journal"
9479 msgstr ""
9480
9481 # type: verbatim
9482 #: ../src/guestfs-actions.pod:3238
9483 #, no-wrap
9484 msgid ""
9485 " int guestfs_mke2journal (guestfs_h *g,\n"
9486 "\t\tint blocksize,\n"
9487 "\t\tconst char *device);\n"
9488 "\n"
9489 msgstr ""
9490
9491 # type: textblock
9492 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2512
9493 msgid ""
9494 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9495 "command:"
9496 msgstr ""
9497
9498 # type: verbatim
9499 #: ../src/guestfs-actions.pod:3245 ../fish/guestfish-actions.pod:2515
9500 #, no-wrap
9501 msgid ""
9502 " mke2fs -O journal_dev -b blocksize device\n"
9503 "\n"
9504 msgstr ""
9505
9506 # type: =head2
9507 #: ../src/guestfs-actions.pod:3249
9508 msgid "guestfs_mke2journal_L"
9509 msgstr ""
9510
9511 # type: verbatim
9512 #: ../src/guestfs-actions.pod:3251
9513 #, no-wrap
9514 msgid ""
9515 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9516 "\t\tint blocksize,\n"
9517 "\t\tconst char *label,\n"
9518 "\t\tconst char *device);\n"
9519 "\n"
9520 msgstr ""
9521
9522 # type: textblock
9523 #: ../src/guestfs-actions.pod:3256 ../fish/guestfish-actions.pod:2521
9524 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9525 msgstr ""
9526
9527 # type: =head2
9528 #: ../src/guestfs-actions.pod:3260
9529 msgid "guestfs_mke2journal_U"
9530 msgstr ""
9531
9532 # type: verbatim
9533 #: ../src/guestfs-actions.pod:3262
9534 #, no-wrap
9535 msgid ""
9536 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9537 "\t\tint blocksize,\n"
9538 "\t\tconst char *uuid,\n"
9539 "\t\tconst char *device);\n"
9540 "\n"
9541 msgstr ""
9542
9543 # type: textblock
9544 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2527
9545 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9546 msgstr ""
9547
9548 # type: =head2
9549 #: ../src/guestfs-actions.pod:3271
9550 msgid "guestfs_mkfifo"
9551 msgstr ""
9552
9553 # type: verbatim
9554 #: ../src/guestfs-actions.pod:3273
9555 #, no-wrap
9556 msgid ""
9557 " int guestfs_mkfifo (guestfs_h *g,\n"
9558 "\t\tint mode,\n"
9559 "\t\tconst char *path);\n"
9560 "\n"
9561 msgstr ""
9562
9563 # type: textblock
9564 #: ../src/guestfs-actions.pod:3277
9565 msgid ""
9566 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9567 "is just a convenient wrapper around C<guestfs_mknod>."
9568 msgstr ""
9569
9570 # type: =head2
9571 #: ../src/guestfs-actions.pod:3285
9572 msgid "guestfs_mkfs"
9573 msgstr ""
9574
9575 # type: verbatim
9576 #: ../src/guestfs-actions.pod:3287
9577 #, no-wrap
9578 msgid ""
9579 " int guestfs_mkfs (guestfs_h *g,\n"
9580 "\t\tconst char *fstype,\n"
9581 "\t\tconst char *device);\n"
9582 "\n"
9583 msgstr ""
9584
9585 # type: textblock
9586 #: ../src/guestfs-actions.pod:3291 ../fish/guestfish-actions.pod:2543
9587 msgid ""
9588 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9589 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9590 msgstr ""
9591
9592 # type: =head2
9593 #: ../src/guestfs-actions.pod:3297
9594 msgid "guestfs_mkfs_b"
9595 msgstr ""
9596
9597 # type: verbatim
9598 #: ../src/guestfs-actions.pod:3299
9599 #, no-wrap
9600 msgid ""
9601 " int guestfs_mkfs_b (guestfs_h *g,\n"
9602 "\t\tconst char *fstype,\n"
9603 "\t\tint blocksize,\n"
9604 "\t\tconst char *device);\n"
9605 "\n"
9606 msgstr ""
9607
9608 # type: textblock
9609 #: ../src/guestfs-actions.pod:3304
9610 msgid ""
9611 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9612 "block size of the resulting filesystem.  Supported block sizes depend on the "
9613 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9614 msgstr ""
9615
9616 # type: textblock
9617 #: ../src/guestfs-actions.pod:3309 ../fish/guestfish-actions.pod:2556
9618 msgid ""
9619 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9620 "cluster size."
9621 msgstr ""
9622
9623 # type: =head2
9624 #: ../src/guestfs-actions.pod:3314
9625 msgid "guestfs_mkmountpoint"
9626 msgstr ""
9627
9628 # type: verbatim
9629 #: ../src/guestfs-actions.pod:3316
9630 #, no-wrap
9631 msgid ""
9632 " int guestfs_mkmountpoint (guestfs_h *g,\n"
9633 "\t\tconst char *exemptpath);\n"
9634 "\n"
9635 msgstr ""
9636
9637 # type: textblock
9638 #: ../src/guestfs-actions.pod:3319
9639 msgid ""
9640 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9641 "that can be used to create extra mountpoints before mounting the first "
9642 "filesystem."
9643 msgstr ""
9644
9645 # type: textblock
9646 #: ../src/guestfs-actions.pod:3323 ../fish/guestfish-actions.pod:2567
9647 msgid ""
9648 "These calls are I<only> necessary in some very limited circumstances, mainly "
9649 "the case where you want to mount a mix of unrelated and/or read-only "
9650 "filesystems together."
9651 msgstr ""
9652
9653 # type: textblock
9654 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2571
9655 msgid ""
9656 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
9657 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
9658 "inside that.  You can unpack this as follows in guestfish:"
9659 msgstr ""
9660
9661 # type: verbatim
9662 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2576
9663 #, no-wrap
9664 msgid ""
9665 " add-ro Fedora-11-i686-Live.iso\n"
9666 " run\n"
9667 " mkmountpoint /cd\n"
9668 " mkmountpoint /sqsh\n"
9669 " mkmountpoint /ext3fs\n"
9670 " mount /dev/sda /cd\n"
9671 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
9672 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
9673 "\n"
9674 msgstr ""
9675
9676 # type: textblock
9677 #: ../src/guestfs-actions.pod:3341 ../fish/guestfish-actions.pod:2585
9678 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
9679 msgstr ""
9680
9681 # type: textblock
9682 #: ../src/guestfs-actions.pod:3343
9683 msgid ""
9684 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
9685 "may get unexpected errors if you try to mix these calls.  It is safest to "
9686 "manually unmount filesystems and remove mountpoints after use."
9687 msgstr ""
9688
9689 # type: textblock
9690 #: ../src/guestfs-actions.pod:3347
9691 msgid ""
9692 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
9693 "first, so for this to work for manual mountpoints, you must ensure that the "
9694 "innermost mountpoints have the longest pathnames, as in the example code "
9695 "above."
9696 msgstr ""
9697
9698 # type: textblock
9699 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2596
9700 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
9701 msgstr ""
9702
9703 # type: textblock
9704 #: ../src/guestfs-actions.pod:3354
9705 msgid ""
9706 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
9707 "means that C<guestfs_umount_all> is called when the handle is closed which "
9708 "can also trigger these issues."
9709 msgstr ""
9710
9711 # type: =head2
9712 #: ../src/guestfs-actions.pod:3360
9713 msgid "guestfs_mknod"
9714 msgstr ""
9715
9716 # type: verbatim
9717 #: ../src/guestfs-actions.pod:3362
9718 #, no-wrap
9719 msgid ""
9720 " int guestfs_mknod (guestfs_h *g,\n"
9721 "\t\tint mode,\n"
9722 "\t\tint devmajor,\n"
9723 "\t\tint devminor,\n"
9724 "\t\tconst char *path);\n"
9725 "\n"
9726 msgstr ""
9727
9728 # type: textblock
9729 #: ../src/guestfs-actions.pod:3368 ../fish/guestfish-actions.pod:2606
9730 msgid ""
9731 "This call creates block or character special devices, or named pipes "
9732 "(FIFOs)."
9733 msgstr ""
9734
9735 # type: textblock
9736 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2609
9737 msgid ""
9738 "The C<mode> parameter should be the mode, using the standard constants.  "
9739 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
9740 "used when creating block and character special devices."
9741 msgstr ""
9742
9743 # type: textblock
9744 #: ../src/guestfs-actions.pod:3376
9745 msgid ""
9746 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
9747 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
9748 "regular file).  These constants are available in the standard Linux header "
9749 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
9750 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
9751 "the appropriate constant for you."
9752 msgstr ""
9753
9754 # type: =head2
9755 #: ../src/guestfs-actions.pod:3388
9756 msgid "guestfs_mknod_b"
9757 msgstr ""
9758
9759 # type: verbatim
9760 #: ../src/guestfs-actions.pod:3390
9761 #, no-wrap
9762 msgid ""
9763 " int guestfs_mknod_b (guestfs_h *g,\n"
9764 "\t\tint mode,\n"
9765 "\t\tint devmajor,\n"
9766 "\t\tint devminor,\n"
9767 "\t\tconst char *path);\n"
9768 "\n"
9769 msgstr ""
9770
9771 # type: textblock
9772 #: ../src/guestfs-actions.pod:3396
9773 msgid ""
9774 "This call creates a block device node called C<path> with mode C<mode> and "
9775 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9776 "wrapper around C<guestfs_mknod>."
9777 msgstr ""
9778
9779 # type: =head2
9780 #: ../src/guestfs-actions.pod:3404
9781 msgid "guestfs_mknod_c"
9782 msgstr ""
9783
9784 # type: verbatim
9785 #: ../src/guestfs-actions.pod:3406
9786 #, no-wrap
9787 msgid ""
9788 " int guestfs_mknod_c (guestfs_h *g,\n"
9789 "\t\tint mode,\n"
9790 "\t\tint devmajor,\n"
9791 "\t\tint devminor,\n"
9792 "\t\tconst char *path);\n"
9793 "\n"
9794 msgstr ""
9795
9796 # type: textblock
9797 #: ../src/guestfs-actions.pod:3412
9798 msgid ""
9799 "This call creates a char device node called C<path> with mode C<mode> and "
9800 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9801 "wrapper around C<guestfs_mknod>."
9802 msgstr ""
9803
9804 # type: =head2
9805 #: ../src/guestfs-actions.pod:3420
9806 msgid "guestfs_mkswap"
9807 msgstr ""
9808
9809 # type: verbatim
9810 #: ../src/guestfs-actions.pod:3422
9811 #, no-wrap
9812 msgid ""
9813 " int guestfs_mkswap (guestfs_h *g,\n"
9814 "\t\tconst char *device);\n"
9815 "\n"
9816 msgstr ""
9817
9818 # type: textblock
9819 #: ../src/guestfs-actions.pod:3425 ../fish/guestfish-actions.pod:2648
9820 msgid "Create a swap partition on C<device>."
9821 msgstr ""
9822
9823 # type: =head2
9824 #: ../src/guestfs-actions.pod:3429
9825 msgid "guestfs_mkswap_L"
9826 msgstr ""
9827
9828 # type: verbatim
9829 #: ../src/guestfs-actions.pod:3431
9830 #, no-wrap
9831 msgid ""
9832 " int guestfs_mkswap_L (guestfs_h *g,\n"
9833 "\t\tconst char *label,\n"
9834 "\t\tconst char *device);\n"
9835 "\n"
9836 msgstr ""
9837
9838 # type: textblock
9839 #: ../src/guestfs-actions.pod:3435 ../fish/guestfish-actions.pod:2654
9840 msgid "Create a swap partition on C<device> with label C<label>."
9841 msgstr ""
9842
9843 # type: textblock
9844 #: ../src/guestfs-actions.pod:3437 ../fish/guestfish-actions.pod:2656
9845 msgid ""
9846 "Note that you cannot attach a swap label to a block device "
9847 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
9848 "the kernel or swap tools."
9849 msgstr ""
9850
9851 # type: =head2
9852 #: ../src/guestfs-actions.pod:3443
9853 msgid "guestfs_mkswap_U"
9854 msgstr ""
9855
9856 # type: verbatim
9857 #: ../src/guestfs-actions.pod:3445
9858 #, no-wrap
9859 msgid ""
9860 " int guestfs_mkswap_U (guestfs_h *g,\n"
9861 "\t\tconst char *uuid,\n"
9862 "\t\tconst char *device);\n"
9863 "\n"
9864 msgstr ""
9865
9866 # type: textblock
9867 #: ../src/guestfs-actions.pod:3449 ../fish/guestfish-actions.pod:2664
9868 msgid "Create a swap partition on C<device> with UUID C<uuid>."
9869 msgstr ""
9870
9871 # type: =head2
9872 #: ../src/guestfs-actions.pod:3453
9873 msgid "guestfs_mkswap_file"
9874 msgstr ""
9875
9876 # type: verbatim
9877 #: ../src/guestfs-actions.pod:3455
9878 #, no-wrap
9879 msgid ""
9880 " int guestfs_mkswap_file (guestfs_h *g,\n"
9881 "\t\tconst char *path);\n"
9882 "\n"
9883 msgstr ""
9884
9885 # type: textblock
9886 #: ../src/guestfs-actions.pod:3458 ../fish/guestfish-actions.pod:2670
9887 msgid "Create a swap file."
9888 msgstr ""
9889
9890 # type: textblock
9891 #: ../src/guestfs-actions.pod:3460
9892 msgid ""
9893 "This command just writes a swap file signature to an existing file.  To "
9894 "create the file itself, use something like C<guestfs_fallocate>."
9895 msgstr ""
9896
9897 # type: =head2
9898 #: ../src/guestfs-actions.pod:3465
9899 msgid "guestfs_modprobe"
9900 msgstr ""
9901
9902 # type: verbatim
9903 #: ../src/guestfs-actions.pod:3467
9904 #, no-wrap
9905 msgid ""
9906 " int guestfs_modprobe (guestfs_h *g,\n"
9907 "\t\tconst char *modulename);\n"
9908 "\n"
9909 msgstr ""
9910
9911 # type: textblock
9912 #: ../src/guestfs-actions.pod:3470 ../fish/guestfish-actions.pod:2679
9913 msgid "This loads a kernel module in the appliance."
9914 msgstr ""
9915
9916 # type: textblock
9917 #: ../src/guestfs-actions.pod:3472 ../fish/guestfish-actions.pod:2681
9918 msgid ""
9919 "The kernel module must have been whitelisted when libguestfs was built (see "
9920 "C<appliance/kmod.whitelist.in> in the source)."
9921 msgstr ""
9922
9923 # type: =head2
9924 #: ../src/guestfs-actions.pod:3477
9925 msgid "guestfs_mount"
9926 msgstr ""
9927
9928 # type: verbatim
9929 #: ../src/guestfs-actions.pod:3479
9930 #, no-wrap
9931 msgid ""
9932 " int guestfs_mount (guestfs_h *g,\n"
9933 "\t\tconst char *device,\n"
9934 "\t\tconst char *mountpoint);\n"
9935 "\n"
9936 msgstr ""
9937
9938 # type: textblock
9939 #: ../src/guestfs-actions.pod:3483 ../fish/guestfish-actions.pod:2688
9940 msgid ""
9941 "Mount a guest disk at a position in the filesystem.  Block devices are named "
9942 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
9943 "those block devices contain partitions, they will have the usual names "
9944 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
9945 msgstr ""
9946
9947 # type: textblock
9948 #: ../src/guestfs-actions.pod:3489 ../fish/guestfish-actions.pod:2694
9949 msgid ""
9950 "The rules are the same as for L<mount(2)>: A filesystem must first be "
9951 "mounted on C</> before others can be mounted.  Other filesystems can only be "
9952 "mounted on directories which already exist."
9953 msgstr ""
9954
9955 # type: textblock
9956 #: ../src/guestfs-actions.pod:3494 ../fish/guestfish-actions.pod:2699
9957 msgid ""
9958 "The mounted filesystem is writable, if we have sufficient permissions on the "
9959 "underlying device."
9960 msgstr ""
9961
9962 # type: textblock
9963 #: ../src/guestfs-actions.pod:3497
9964 msgid ""
9965 "B<Important note:> When you use this call, the filesystem options C<sync> "
9966 "and C<noatime> are set implicitly.  This was originally done because we "
9967 "thought it would improve reliability, but it turns out that I<-o sync> has a "
9968 "very large negative performance impact and negligible effect on "
9969 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
9970 "in any code that needs performance, and instead use C<guestfs_mount_options> "
9971 "(use an empty string for the first parameter if you don't want any options)."
9972 msgstr ""
9973
9974 # type: =head2
9975 #: ../src/guestfs-actions.pod:3509
9976 msgid "guestfs_mount_loop"
9977 msgstr ""
9978
9979 # type: verbatim
9980 #: ../src/guestfs-actions.pod:3511
9981 #, no-wrap
9982 msgid ""
9983 " int guestfs_mount_loop (guestfs_h *g,\n"
9984 "\t\tconst char *file,\n"
9985 "\t\tconst char *mountpoint);\n"
9986 "\n"
9987 msgstr ""
9988
9989 # type: textblock
9990 #: ../src/guestfs-actions.pod:3515 ../fish/guestfish-actions.pod:2716
9991 msgid ""
9992 "This command lets you mount C<file> (a filesystem image in a file) on a "
9993 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
9994 "mountpoint>."
9995 msgstr ""
9996
9997 # type: =head2
9998 #: ../src/guestfs-actions.pod:3521
9999 msgid "guestfs_mount_options"
10000 msgstr ""
10001
10002 # type: verbatim
10003 #: ../src/guestfs-actions.pod:3523
10004 #, no-wrap
10005 msgid ""
10006 " int guestfs_mount_options (guestfs_h *g,\n"
10007 "\t\tconst char *options,\n"
10008 "\t\tconst char *device,\n"
10009 "\t\tconst char *mountpoint);\n"
10010 "\n"
10011 msgstr ""
10012
10013 # type: textblock
10014 #: ../src/guestfs-actions.pod:3528
10015 msgid ""
10016 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10017 "the mount options as for the L<mount(8)> I<-o> flag."
10018 msgstr ""
10019
10020 # type: textblock
10021 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2728
10022 msgid ""
10023 "If the C<options> parameter is an empty string, then no options are passed "
10024 "(all options default to whatever the filesystem uses)."
10025 msgstr ""
10026
10027 # type: =head2
10028 #: ../src/guestfs-actions.pod:3538
10029 msgid "guestfs_mount_ro"
10030 msgstr ""
10031
10032 # type: verbatim
10033 #: ../src/guestfs-actions.pod:3540
10034 #, no-wrap
10035 msgid ""
10036 " int guestfs_mount_ro (guestfs_h *g,\n"
10037 "\t\tconst char *device,\n"
10038 "\t\tconst char *mountpoint);\n"
10039 "\n"
10040 msgstr ""
10041
10042 # type: textblock
10043 #: ../src/guestfs-actions.pod:3544
10044 msgid ""
10045 "This is the same as the C<guestfs_mount> command, but it mounts the "
10046 "filesystem with the read-only (I<-o ro>) flag."
10047 msgstr ""
10048
10049 # type: =head2
10050 #: ../src/guestfs-actions.pod:3549
10051 msgid "guestfs_mount_vfs"
10052 msgstr ""
10053
10054 # type: verbatim
10055 #: ../src/guestfs-actions.pod:3551
10056 #, no-wrap
10057 msgid ""
10058 " int guestfs_mount_vfs (guestfs_h *g,\n"
10059 "\t\tconst char *options,\n"
10060 "\t\tconst char *vfstype,\n"
10061 "\t\tconst char *device,\n"
10062 "\t\tconst char *mountpoint);\n"
10063 "\n"
10064 msgstr ""
10065
10066 # type: textblock
10067 #: ../src/guestfs-actions.pod:3557
10068 msgid ""
10069 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10070 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
10071 "I<-t> flags."
10072 msgstr ""
10073
10074 # type: =head2
10075 #: ../src/guestfs-actions.pod:3563
10076 msgid "guestfs_mountpoints"
10077 msgstr ""
10078
10079 # type: verbatim
10080 #: ../src/guestfs-actions.pod:3565
10081 #, no-wrap
10082 msgid ""
10083 " char **guestfs_mountpoints (guestfs_h *g);\n"
10084 "\n"
10085 msgstr ""
10086
10087 # type: textblock
10088 #: ../src/guestfs-actions.pod:3567
10089 msgid ""
10090 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10091 "devices.  This one returns a hash table (map) of device name to directory "
10092 "where the device is mounted."
10093 msgstr ""
10094
10095 # type: =head2
10096 #: ../src/guestfs-actions.pod:3577
10097 msgid "guestfs_mounts"
10098 msgstr ""
10099
10100 # type: verbatim
10101 #: ../src/guestfs-actions.pod:3579
10102 #, no-wrap
10103 msgid ""
10104 " char **guestfs_mounts (guestfs_h *g);\n"
10105 "\n"
10106 msgstr ""
10107
10108 # type: textblock
10109 #: ../src/guestfs-actions.pod:3581 ../fish/guestfish-actions.pod:2759
10110 msgid ""
10111 "This returns the list of currently mounted filesystems.  It returns the list "
10112 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10113 msgstr ""
10114
10115 # type: textblock
10116 #: ../src/guestfs-actions.pod:3584 ../fish/guestfish-actions.pod:2762
10117 msgid "Some internal mounts are not shown."
10118 msgstr ""
10119
10120 # type: textblock
10121 #: ../src/guestfs-actions.pod:3586
10122 msgid "See also: C<guestfs_mountpoints>"
10123 msgstr ""
10124
10125 # type: =head2
10126 #: ../src/guestfs-actions.pod:3592
10127 msgid "guestfs_mv"
10128 msgstr ""
10129
10130 # type: verbatim
10131 #: ../src/guestfs-actions.pod:3594
10132 #, no-wrap
10133 msgid ""
10134 " int guestfs_mv (guestfs_h *g,\n"
10135 "\t\tconst char *src,\n"
10136 "\t\tconst char *dest);\n"
10137 "\n"
10138 msgstr ""
10139
10140 # type: textblock
10141 #: ../src/guestfs-actions.pod:3598 ../fish/guestfish-actions.pod:2770
10142 msgid ""
10143 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10144 "destination filename or destination directory."
10145 msgstr ""
10146
10147 # type: =head2
10148 #: ../src/guestfs-actions.pod:3603
10149 msgid "guestfs_ntfs_3g_probe"
10150 msgstr ""
10151
10152 # type: verbatim
10153 #: ../src/guestfs-actions.pod:3605
10154 #, no-wrap
10155 msgid ""
10156 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10157 "\t\tint rw,\n"
10158 "\t\tconst char *device);\n"
10159 "\n"
10160 msgstr ""
10161
10162 # type: textblock
10163 #: ../src/guestfs-actions.pod:3609 ../fish/guestfish-actions.pod:2777
10164 msgid ""
10165 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10166 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10167 "read-write, and some cannot be mounted at all)."
10168 msgstr ""
10169
10170 # type: textblock
10171 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2781
10172 msgid ""
10173 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10174 "can be mounted read-write.  Set it to false if you want to test if the "
10175 "volume can be mounted read-only."
10176 msgstr ""
10177
10178 # type: textblock
10179 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2785
10180 msgid ""
10181 "The return value is an integer which C<0> if the operation would succeed, or "
10182 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10183 msgstr ""
10184
10185 # type: =head2
10186 #: ../src/guestfs-actions.pod:3623
10187 msgid "guestfs_ntfsresize"
10188 msgstr ""
10189
10190 # type: verbatim
10191 #: ../src/guestfs-actions.pod:3625
10192 #, no-wrap
10193 msgid ""
10194 " int guestfs_ntfsresize (guestfs_h *g,\n"
10195 "\t\tconst char *device);\n"
10196 "\n"
10197 msgstr ""
10198
10199 # type: textblock
10200 #: ../src/guestfs-actions.pod:3628 ../fish/guestfish-actions.pod:2793
10201 msgid ""
10202 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10203 "size of the underlying device.  See also L<ntfsresize(8)>."
10204 msgstr ""
10205
10206 # type: =head2
10207 #: ../src/guestfs-actions.pod:3634
10208 msgid "guestfs_ntfsresize_size"
10209 msgstr ""
10210
10211 # type: verbatim
10212 #: ../src/guestfs-actions.pod:3636
10213 #, no-wrap
10214 msgid ""
10215 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
10216 "\t\tconst char *device,\n"
10217 "\t\tint64_t size);\n"
10218 "\n"
10219 msgstr ""
10220
10221 # type: textblock
10222 #: ../src/guestfs-actions.pod:3640
10223 msgid ""
10224 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10225 "to specify the new size (in bytes) explicitly."
10226 msgstr ""
10227
10228 # type: =head2
10229 #: ../src/guestfs-actions.pod:3645
10230 msgid "guestfs_part_add"
10231 msgstr ""
10232
10233 # type: verbatim
10234 #: ../src/guestfs-actions.pod:3647
10235 #, no-wrap
10236 msgid ""
10237 " int guestfs_part_add (guestfs_h *g,\n"
10238 "\t\tconst char *device,\n"
10239 "\t\tconst char *prlogex,\n"
10240 "\t\tint64_t startsect,\n"
10241 "\t\tint64_t endsect);\n"
10242 "\n"
10243 msgstr ""
10244
10245 # type: textblock
10246 #: ../src/guestfs-actions.pod:3653
10247 msgid ""
10248 "This command adds a partition to C<device>.  If there is no partition table "
10249 "on the device, call C<guestfs_part_init> first."
10250 msgstr ""
10251
10252 # type: textblock
10253 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2811
10254 msgid ""
10255 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10256 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10257 "C<logical>) and C<e> (or C<extended>) partition types."
10258 msgstr ""
10259
10260 # type: textblock
10261 #: ../src/guestfs-actions.pod:3661 ../fish/guestfish-actions.pod:2816
10262 msgid ""
10263 "C<startsect> and C<endsect> are the start and end of the partition in "
10264 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10265 "from the end of the disk (C<-1> is the last sector)."
10266 msgstr ""
10267
10268 # type: textblock
10269 #: ../src/guestfs-actions.pod:3665
10270 msgid ""
10271 "Creating a partition which covers the whole disk is not so easy.  Use "
10272 "C<guestfs_part_disk> to do that."
10273 msgstr ""
10274
10275 # type: =head2
10276 #: ../src/guestfs-actions.pod:3670
10277 msgid "guestfs_part_del"
10278 msgstr ""
10279
10280 # type: verbatim
10281 #: ../src/guestfs-actions.pod:3672
10282 #, no-wrap
10283 msgid ""
10284 " int guestfs_part_del (guestfs_h *g,\n"
10285 "\t\tconst char *device,\n"
10286 "\t\tint partnum);\n"
10287 "\n"
10288 msgstr ""
10289
10290 # type: textblock
10291 #: ../src/guestfs-actions.pod:3676 ../fish/guestfish-actions.pod:2827
10292 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10293 msgstr ""
10294
10295 # type: textblock
10296 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2829
10297 msgid ""
10298 "Note that in the case of MBR partitioning, deleting an extended partition "
10299 "also deletes any logical partitions it contains."
10300 msgstr ""
10301
10302 # type: =head2
10303 #: ../src/guestfs-actions.pod:3684
10304 msgid "guestfs_part_disk"
10305 msgstr ""
10306
10307 # type: verbatim
10308 #: ../src/guestfs-actions.pod:3686
10309 #, no-wrap
10310 msgid ""
10311 " int guestfs_part_disk (guestfs_h *g,\n"
10312 "\t\tconst char *device,\n"
10313 "\t\tconst char *parttype);\n"
10314 "\n"
10315 msgstr ""
10316
10317 # type: textblock
10318 #: ../src/guestfs-actions.pod:3690
10319 msgid ""
10320 "This command is simply a combination of C<guestfs_part_init> followed by "
10321 "C<guestfs_part_add> to create a single primary partition covering the whole "
10322 "disk."
10323 msgstr ""
10324
10325 # type: textblock
10326 #: ../src/guestfs-actions.pod:3694
10327 msgid ""
10328 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10329 "possible values are described in C<guestfs_part_init>."
10330 msgstr ""
10331
10332 # type: =head2
10333 #: ../src/guestfs-actions.pod:3702
10334 msgid "guestfs_part_get_bootable"
10335 msgstr ""
10336
10337 # type: verbatim
10338 #: ../src/guestfs-actions.pod:3704
10339 #, no-wrap
10340 msgid ""
10341 " int guestfs_part_get_bootable (guestfs_h *g,\n"
10342 "\t\tconst char *device,\n"
10343 "\t\tint partnum);\n"
10344 "\n"
10345 msgstr ""
10346
10347 # type: textblock
10348 #: ../src/guestfs-actions.pod:3708 ../fish/guestfish-actions.pod:2851
10349 msgid ""
10350 "This command returns true if the partition C<partnum> on C<device> has the "
10351 "bootable flag set."
10352 msgstr ""
10353
10354 # type: textblock
10355 #: ../src/guestfs-actions.pod:3711
10356 msgid "See also C<guestfs_part_set_bootable>."
10357 msgstr ""
10358
10359 # type: =head2
10360 #: ../src/guestfs-actions.pod:3715
10361 msgid "guestfs_part_get_mbr_id"
10362 msgstr ""
10363
10364 # type: verbatim
10365 #: ../src/guestfs-actions.pod:3717
10366 #, no-wrap
10367 msgid ""
10368 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
10369 "\t\tconst char *device,\n"
10370 "\t\tint partnum);\n"
10371 "\n"
10372 msgstr ""
10373
10374 # type: textblock
10375 #: ../src/guestfs-actions.pod:3721 ../fish/guestfish-actions.pod:2860
10376 msgid ""
10377 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10378 "partition C<partnum>."
10379 msgstr ""
10380
10381 # type: textblock
10382 #: ../src/guestfs-actions.pod:3724 ../src/guestfs-actions.pod:3886
10383 msgid ""
10384 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10385 "undefined results for other partition table types (see "
10386 "C<guestfs_part_get_parttype>)."
10387 msgstr ""
10388
10389 # type: =head2
10390 #: ../src/guestfs-actions.pod:3730
10391 msgid "guestfs_part_get_parttype"
10392 msgstr ""
10393
10394 # type: verbatim
10395 #: ../src/guestfs-actions.pod:3732
10396 #, no-wrap
10397 msgid ""
10398 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
10399 "\t\tconst char *device);\n"
10400 "\n"
10401 msgstr ""
10402
10403 # type: textblock
10404 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2871
10405 msgid ""
10406 "This command examines the partition table on C<device> and returns the "
10407 "partition table type (format) being used."
10408 msgstr ""
10409
10410 # type: textblock
10411 #: ../src/guestfs-actions.pod:3738
10412 msgid ""
10413 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10414 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10415 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10416 msgstr ""
10417
10418 # type: =head2
10419 #: ../src/guestfs-actions.pod:3746
10420 msgid "guestfs_part_init"
10421 msgstr ""
10422
10423 # type: verbatim
10424 #: ../src/guestfs-actions.pod:3748
10425 #, no-wrap
10426 msgid ""
10427 " int guestfs_part_init (guestfs_h *g,\n"
10428 "\t\tconst char *device,\n"
10429 "\t\tconst char *parttype);\n"
10430 "\n"
10431 msgstr ""
10432
10433 # type: textblock
10434 #: ../src/guestfs-actions.pod:3752 ../fish/guestfish-actions.pod:2883
10435 msgid ""
10436 "This creates an empty partition table on C<device> of one of the partition "
10437 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10438 "(for large disks)."
10439 msgstr ""
10440
10441 # type: textblock
10442 #: ../src/guestfs-actions.pod:3756
10443 msgid ""
10444 "Initially there are no partitions.  Following this, you should call "
10445 "C<guestfs_part_add> for each partition required."
10446 msgstr ""
10447
10448 # type: textblock
10449 #: ../src/guestfs-actions.pod:3759 ../fish/guestfish-actions.pod:2890
10450 msgid "Possible values for C<parttype> are:"
10451 msgstr ""
10452
10453 # type: =item
10454 #: ../src/guestfs-actions.pod:3763 ../fish/guestfish-actions.pod:2894
10455 msgid "B<efi> | B<gpt>"
10456 msgstr ""
10457
10458 # type: textblock
10459 #: ../src/guestfs-actions.pod:3765 ../fish/guestfish-actions.pod:2896
10460 msgid "Intel EFI / GPT partition table."
10461 msgstr ""
10462
10463 # type: textblock
10464 #: ../src/guestfs-actions.pod:3767 ../fish/guestfish-actions.pod:2898
10465 msgid ""
10466 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10467 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10468 "the C<mbr> format."
10469 msgstr ""
10470
10471 # type: =item
10472 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2902
10473 msgid "B<mbr> | B<msdos>"
10474 msgstr ""
10475
10476 # type: textblock
10477 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2904
10478 msgid ""
10479 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10480 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10481 "TB.  For large disks we recommend using C<gpt>."
10482 msgstr ""
10483
10484 # type: textblock
10485 #: ../src/guestfs-actions.pod:3780 ../fish/guestfish-actions.pod:2911
10486 msgid "Other partition table types that may work but are not supported include:"
10487 msgstr ""
10488
10489 # type: =item
10490 #: ../src/guestfs-actions.pod:3785 ../fish/guestfish-actions.pod:2916
10491 msgid "B<aix>"
10492 msgstr ""
10493
10494 # type: textblock
10495 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2918
10496 msgid "AIX disk labels."
10497 msgstr ""
10498
10499 # type: =item
10500 #: ../src/guestfs-actions.pod:3789 ../fish/guestfish-actions.pod:2920
10501 msgid "B<amiga> | B<rdb>"
10502 msgstr ""
10503
10504 # type: textblock
10505 #: ../src/guestfs-actions.pod:3791 ../fish/guestfish-actions.pod:2922
10506 msgid "Amiga \"Rigid Disk Block\" format."
10507 msgstr ""
10508
10509 # type: =item
10510 #: ../src/guestfs-actions.pod:3793 ../fish/guestfish-actions.pod:2924
10511 msgid "B<bsd>"
10512 msgstr ""
10513
10514 # type: textblock
10515 #: ../src/guestfs-actions.pod:3795 ../fish/guestfish-actions.pod:2926
10516 msgid "BSD disk labels."
10517 msgstr ""
10518
10519 # type: =item
10520 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2928
10521 msgid "B<dasd>"
10522 msgstr ""
10523
10524 # type: textblock
10525 #: ../src/guestfs-actions.pod:3799 ../fish/guestfish-actions.pod:2930
10526 msgid "DASD, used on IBM mainframes."
10527 msgstr ""
10528
10529 # type: =item
10530 #: ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2932
10531 msgid "B<dvh>"
10532 msgstr ""
10533
10534 # type: textblock
10535 #: ../src/guestfs-actions.pod:3803 ../fish/guestfish-actions.pod:2934
10536 msgid "MIPS/SGI volumes."
10537 msgstr ""
10538
10539 # type: =item
10540 #: ../src/guestfs-actions.pod:3805 ../fish/guestfish-actions.pod:2936
10541 msgid "B<mac>"
10542 msgstr ""
10543
10544 # type: textblock
10545 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2938
10546 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10547 msgstr ""
10548
10549 # type: =item
10550 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2940
10551 msgid "B<pc98>"
10552 msgstr ""
10553
10554 # type: textblock
10555 #: ../src/guestfs-actions.pod:3811 ../fish/guestfish-actions.pod:2942
10556 msgid "NEC PC-98 format, common in Japan apparently."
10557 msgstr ""
10558
10559 # type: =item
10560 #: ../src/guestfs-actions.pod:3813 ../fish/guestfish-actions.pod:2944
10561 msgid "B<sun>"
10562 msgstr ""
10563
10564 # type: textblock
10565 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2946
10566 msgid "Sun disk labels."
10567 msgstr ""
10568
10569 # type: =head2
10570 #: ../src/guestfs-actions.pod:3821
10571 msgid "guestfs_part_list"
10572 msgstr ""
10573
10574 # type: verbatim
10575 #: ../src/guestfs-actions.pod:3823
10576 #, no-wrap
10577 msgid ""
10578 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10579 "\t\tconst char *device);\n"
10580 "\n"
10581 msgstr ""
10582
10583 # type: textblock
10584 #: ../src/guestfs-actions.pod:3826 ../fish/guestfish-actions.pod:2954
10585 msgid ""
10586 "This command parses the partition table on C<device> and returns the list of "
10587 "partitions found."
10588 msgstr ""
10589
10590 # type: textblock
10591 #: ../src/guestfs-actions.pod:3829 ../fish/guestfish-actions.pod:2957
10592 msgid "The fields in the returned structure are:"
10593 msgstr ""
10594
10595 # type: =item
10596 #: ../src/guestfs-actions.pod:3833 ../fish/guestfish-actions.pod:2961
10597 msgid "B<part_num>"
10598 msgstr ""
10599
10600 # type: textblock
10601 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2963
10602 msgid "Partition number, counting from 1."
10603 msgstr ""
10604
10605 # type: =item
10606 #: ../src/guestfs-actions.pod:3837 ../fish/guestfish-actions.pod:2965
10607 msgid "B<part_start>"
10608 msgstr ""
10609
10610 # type: textblock
10611 #: ../src/guestfs-actions.pod:3839
10612 msgid ""
10613 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10614 "the device's sector size, see C<guestfs_blockdev_getss>."
10615 msgstr ""
10616
10617 # type: =item
10618 #: ../src/guestfs-actions.pod:3842 ../fish/guestfish-actions.pod:2970
10619 msgid "B<part_end>"
10620 msgstr ""
10621
10622 # type: textblock
10623 #: ../src/guestfs-actions.pod:3844 ../fish/guestfish-actions.pod:2972
10624 msgid "End of the partition in bytes."
10625 msgstr ""
10626
10627 # type: =item
10628 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2974
10629 msgid "B<part_size>"
10630 msgstr ""
10631
10632 # type: textblock
10633 #: ../src/guestfs-actions.pod:3848 ../fish/guestfish-actions.pod:2976
10634 msgid "Size of the partition in bytes."
10635 msgstr ""
10636
10637 # type: textblock
10638 #: ../src/guestfs-actions.pod:3852
10639 msgid ""
10640 "This function returns a C<struct guestfs_partition_list *> (see "
10641 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10642 "must call C<guestfs_free_partition_list> after use>."
10643 msgstr ""
10644
10645 # type: =head2
10646 #: ../src/guestfs-actions.pod:3857
10647 msgid "guestfs_part_set_bootable"
10648 msgstr ""
10649
10650 # type: verbatim
10651 #: ../src/guestfs-actions.pod:3859
10652 #, no-wrap
10653 msgid ""
10654 " int guestfs_part_set_bootable (guestfs_h *g,\n"
10655 "\t\tconst char *device,\n"
10656 "\t\tint partnum,\n"
10657 "\t\tint bootable);\n"
10658 "\n"
10659 msgstr ""
10660
10661 # type: textblock
10662 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2984
10663 msgid ""
10664 "This sets the bootable flag on partition numbered C<partnum> on device "
10665 "C<device>.  Note that partitions are numbered from 1."
10666 msgstr ""
10667
10668 # type: textblock
10669 #: ../src/guestfs-actions.pod:3867 ../fish/guestfish-actions.pod:2987
10670 msgid ""
10671 "The bootable flag is used by some operating systems (notably Windows) to "
10672 "determine which partition to boot from.  It is by no means universally "
10673 "recognized."
10674 msgstr ""
10675
10676 # type: =head2
10677 #: ../src/guestfs-actions.pod:3873
10678 msgid "guestfs_part_set_mbr_id"
10679 msgstr ""
10680
10681 # type: verbatim
10682 #: ../src/guestfs-actions.pod:3875
10683 #, no-wrap
10684 msgid ""
10685 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
10686 "\t\tconst char *device,\n"
10687 "\t\tint partnum,\n"
10688 "\t\tint idbyte);\n"
10689 "\n"
10690 msgstr ""
10691
10692 # type: textblock
10693 #: ../src/guestfs-actions.pod:3880 ../fish/guestfish-actions.pod:2995
10694 msgid ""
10695 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
10696 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
10697 "documentation are in fact hexadecimal numbers, but usually documented "
10698 "without any leading \"0x\" which might be confusing."
10699 msgstr ""
10700
10701 # type: =head2
10702 #: ../src/guestfs-actions.pod:3892
10703 msgid "guestfs_part_set_name"
10704 msgstr ""
10705
10706 # type: verbatim
10707 #: ../src/guestfs-actions.pod:3894
10708 #, no-wrap
10709 msgid ""
10710 " int guestfs_part_set_name (guestfs_h *g,\n"
10711 "\t\tconst char *device,\n"
10712 "\t\tint partnum,\n"
10713 "\t\tconst char *name);\n"
10714 "\n"
10715 msgstr ""
10716
10717 # type: textblock
10718 #: ../src/guestfs-actions.pod:3899 ../fish/guestfish-actions.pod:3009
10719 msgid ""
10720 "This sets the partition name on partition numbered C<partnum> on device "
10721 "C<device>.  Note that partitions are numbered from 1."
10722 msgstr ""
10723
10724 # type: textblock
10725 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:3012
10726 msgid ""
10727 "The partition name can only be set on certain types of partition table.  "
10728 "This works on C<gpt> but not on C<mbr> partitions."
10729 msgstr ""
10730
10731 # type: =head2
10732 #: ../src/guestfs-actions.pod:3907
10733 msgid "guestfs_part_to_dev"
10734 msgstr ""
10735
10736 # type: verbatim
10737 #: ../src/guestfs-actions.pod:3909
10738 #, no-wrap
10739 msgid ""
10740 " char *guestfs_part_to_dev (guestfs_h *g,\n"
10741 "\t\tconst char *partition);\n"
10742 "\n"
10743 msgstr ""
10744
10745 # type: textblock
10746 #: ../src/guestfs-actions.pod:3912 ../fish/guestfish-actions.pod:3019
10747 msgid ""
10748 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
10749 "partition number, returning the device name (eg. \"/dev/sdb\")."
10750 msgstr ""
10751
10752 # type: textblock
10753 #: ../src/guestfs-actions.pod:3916
10754 msgid ""
10755 "The named partition must exist, for example as a string returned from "
10756 "C<guestfs_list_partitions>."
10757 msgstr ""
10758
10759 # type: =head2
10760 #: ../src/guestfs-actions.pod:3922
10761 msgid "guestfs_ping_daemon"
10762 msgstr ""
10763
10764 # type: verbatim
10765 #: ../src/guestfs-actions.pod:3924
10766 #, no-wrap
10767 msgid ""
10768 " int guestfs_ping_daemon (guestfs_h *g);\n"
10769 "\n"
10770 msgstr ""
10771
10772 # type: textblock
10773 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:3030
10774 msgid ""
10775 "This is a test probe into the guestfs daemon running inside the qemu "
10776 "subprocess.  Calling this function checks that the daemon responds to the "
10777 "ping message, without affecting the daemon or attached block device(s) in "
10778 "any other way."
10779 msgstr ""
10780
10781 # type: =head2
10782 #: ../src/guestfs-actions.pod:3933
10783 msgid "guestfs_pread"
10784 msgstr ""
10785
10786 # type: verbatim
10787 #: ../src/guestfs-actions.pod:3935
10788 #, no-wrap
10789 msgid ""
10790 " char *guestfs_pread (guestfs_h *g,\n"
10791 "\t\tconst char *path,\n"
10792 "\t\tint count,\n"
10793 "\t\tint64_t offset,\n"
10794 "\t\tsize_t *size_r);\n"
10795 "\n"
10796 msgstr ""
10797
10798 # type: textblock
10799 #: ../src/guestfs-actions.pod:3941 ../fish/guestfish-actions.pod:3039
10800 msgid ""
10801 "This command lets you read part of a file.  It reads C<count> bytes of the "
10802 "file, starting at C<offset>, from file C<path>."
10803 msgstr ""
10804
10805 # type: textblock
10806 #: ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3967 ../fish/guestfish-actions.pod:3042 ../fish/guestfish-actions.pod:3057
10807 msgid ""
10808 "This may read fewer bytes than requested.  For further details see the "
10809 "L<pread(2)> system call."
10810 msgstr ""
10811
10812 # type: textblock
10813 #: ../src/guestfs-actions.pod:3947
10814 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
10815 msgstr ""
10816
10817 # type: =head2
10818 #: ../src/guestfs-actions.pod:3956
10819 msgid "guestfs_pread_device"
10820 msgstr ""
10821
10822 # type: verbatim
10823 #: ../src/guestfs-actions.pod:3958
10824 #, no-wrap
10825 msgid ""
10826 " char *guestfs_pread_device (guestfs_h *g,\n"
10827 "\t\tconst char *device,\n"
10828 "\t\tint count,\n"
10829 "\t\tint64_t offset,\n"
10830 "\t\tsize_t *size_r);\n"
10831 "\n"
10832 msgstr ""
10833
10834 # type: textblock
10835 #: ../src/guestfs-actions.pod:3964 ../fish/guestfish-actions.pod:3054
10836 msgid ""
10837 "This command lets you read part of a file.  It reads C<count> bytes of "
10838 "C<device>, starting at C<offset>."
10839 msgstr ""
10840
10841 # type: textblock
10842 #: ../src/guestfs-actions.pod:3970
10843 msgid "See also C<guestfs_pread>."
10844 msgstr ""
10845
10846 # type: =head2
10847 #: ../src/guestfs-actions.pod:3979
10848 msgid "guestfs_pvcreate"
10849 msgstr ""
10850
10851 # type: verbatim
10852 #: ../src/guestfs-actions.pod:3981
10853 #, no-wrap
10854 msgid ""
10855 " int guestfs_pvcreate (guestfs_h *g,\n"
10856 "\t\tconst char *device);\n"
10857 "\n"
10858 msgstr ""
10859
10860 # type: textblock
10861 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:3069
10862 msgid ""
10863 "This creates an LVM physical volume on the named C<device>, where C<device> "
10864 "should usually be a partition name such as C</dev/sda1>."
10865 msgstr ""
10866
10867 # type: =head2
10868 #: ../src/guestfs-actions.pod:3990
10869 msgid "guestfs_pvremove"
10870 msgstr ""
10871
10872 # type: verbatim
10873 #: ../src/guestfs-actions.pod:3992
10874 #, no-wrap
10875 msgid ""
10876 " int guestfs_pvremove (guestfs_h *g,\n"
10877 "\t\tconst char *device);\n"
10878 "\n"
10879 msgstr ""
10880
10881 # type: textblock
10882 #: ../src/guestfs-actions.pod:3995 ../fish/guestfish-actions.pod:3077
10883 msgid ""
10884 "This wipes a physical volume C<device> so that LVM will no longer recognise "
10885 "it."
10886 msgstr ""
10887
10888 # type: textblock
10889 #: ../src/guestfs-actions.pod:3998 ../fish/guestfish-actions.pod:3080
10890 msgid ""
10891 "The implementation uses the C<pvremove> command which refuses to wipe "
10892 "physical volumes that contain any volume groups, so you have to remove those "
10893 "first."
10894 msgstr ""
10895
10896 # type: =head2
10897 #: ../src/guestfs-actions.pod:4004
10898 msgid "guestfs_pvresize"
10899 msgstr ""
10900
10901 # type: verbatim
10902 #: ../src/guestfs-actions.pod:4006
10903 #, no-wrap
10904 msgid ""
10905 " int guestfs_pvresize (guestfs_h *g,\n"
10906 "\t\tconst char *device);\n"
10907 "\n"
10908 msgstr ""
10909
10910 # type: textblock
10911 #: ../src/guestfs-actions.pod:4009 ../fish/guestfish-actions.pod:3088
10912 msgid ""
10913 "This resizes (expands or shrinks) an existing LVM physical volume to match "
10914 "the new size of the underlying device."
10915 msgstr ""
10916
10917 # type: =head2
10918 #: ../src/guestfs-actions.pod:4014
10919 msgid "guestfs_pvresize_size"
10920 msgstr ""
10921
10922 # type: verbatim
10923 #: ../src/guestfs-actions.pod:4016
10924 #, no-wrap
10925 msgid ""
10926 " int guestfs_pvresize_size (guestfs_h *g,\n"
10927 "\t\tconst char *device,\n"
10928 "\t\tint64_t size);\n"
10929 "\n"
10930 msgstr ""
10931
10932 # type: textblock
10933 #: ../src/guestfs-actions.pod:4020
10934 msgid ""
10935 "This command is the same as C<guestfs_pvresize> except that it allows you to "
10936 "specify the new size (in bytes) explicitly."
10937 msgstr ""
10938
10939 # type: =head2
10940 #: ../src/guestfs-actions.pod:4025
10941 msgid "guestfs_pvs"
10942 msgstr ""
10943
10944 # type: verbatim
10945 #: ../src/guestfs-actions.pod:4027
10946 #, no-wrap
10947 msgid ""
10948 " char **guestfs_pvs (guestfs_h *g);\n"
10949 "\n"
10950 msgstr ""
10951
10952 # type: textblock
10953 #: ../src/guestfs-actions.pod:4029 ../fish/guestfish-actions.pod:3102
10954 msgid ""
10955 "List all the physical volumes detected.  This is the equivalent of the "
10956 "L<pvs(8)> command."
10957 msgstr ""
10958
10959 # type: textblock
10960 #: ../src/guestfs-actions.pod:4032 ../fish/guestfish-actions.pod:3105
10961 msgid ""
10962 "This returns a list of just the device names that contain PVs "
10963 "(eg. C</dev/sda2>)."
10964 msgstr ""
10965
10966 # type: textblock
10967 #: ../src/guestfs-actions.pod:4035
10968 msgid "See also C<guestfs_pvs_full>."
10969 msgstr ""
10970
10971 # type: =head2
10972 #: ../src/guestfs-actions.pod:4041
10973 msgid "guestfs_pvs_full"
10974 msgstr ""
10975
10976 # type: verbatim
10977 #: ../src/guestfs-actions.pod:4043
10978 #, no-wrap
10979 msgid ""
10980 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
10981 "\n"
10982 msgstr ""
10983
10984 # type: textblock
10985 #: ../src/guestfs-actions.pod:4045 ../fish/guestfish-actions.pod:3114
10986 msgid ""
10987 "List all the physical volumes detected.  This is the equivalent of the "
10988 "L<pvs(8)> command.  The \"full\" version includes all fields."
10989 msgstr ""
10990
10991 # type: textblock
10992 #: ../src/guestfs-actions.pod:4048
10993 msgid ""
10994 "This function returns a C<struct guestfs_lvm_pv_list *> (see "
10995 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10996 "must call C<guestfs_free_lvm_pv_list> after use>."
10997 msgstr ""
10998
10999 # type: =head2
11000 #: ../src/guestfs-actions.pod:4053
11001 msgid "guestfs_pvuuid"
11002 msgstr ""
11003
11004 # type: verbatim
11005 #: ../src/guestfs-actions.pod:4055
11006 #, no-wrap
11007 msgid ""
11008 " char *guestfs_pvuuid (guestfs_h *g,\n"
11009 "\t\tconst char *device);\n"
11010 "\n"
11011 msgstr ""
11012
11013 # type: textblock
11014 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:3121
11015 msgid "This command returns the UUID of the LVM PV C<device>."
11016 msgstr ""
11017
11018 # type: =head2
11019 #: ../src/guestfs-actions.pod:4063
11020 msgid "guestfs_pwrite"
11021 msgstr ""
11022
11023 # type: verbatim
11024 #: ../src/guestfs-actions.pod:4065
11025 #, no-wrap
11026 msgid ""
11027 " int guestfs_pwrite (guestfs_h *g,\n"
11028 "\t\tconst char *path,\n"
11029 "\t\tconst char *content,\n"
11030 "\t\tsize_t content_size,\n"
11031 "\t\tint64_t offset);\n"
11032 "\n"
11033 msgstr ""
11034
11035 # type: textblock
11036 #: ../src/guestfs-actions.pod:4071 ../fish/guestfish-actions.pod:3127
11037 msgid ""
11038 "This command writes to part of a file.  It writes the data buffer C<content> "
11039 "to the file C<path> starting at offset C<offset>."
11040 msgstr ""
11041
11042 # type: textblock
11043 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:3130
11044 msgid ""
11045 "This command implements the L<pwrite(2)> system call, and like that system "
11046 "call it may not write the full data requested.  The return value is the "
11047 "number of bytes that were actually written to the file.  This could even be "
11048 "0, although short writes are unlikely for regular files in ordinary "
11049 "circumstances."
11050 msgstr ""
11051
11052 # type: textblock
11053 #: ../src/guestfs-actions.pod:4080
11054 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11055 msgstr ""
11056
11057 # type: =head2
11058 #: ../src/guestfs-actions.pod:4087
11059 msgid "guestfs_pwrite_device"
11060 msgstr ""
11061
11062 # type: verbatim
11063 #: ../src/guestfs-actions.pod:4089
11064 #, no-wrap
11065 msgid ""
11066 " int guestfs_pwrite_device (guestfs_h *g,\n"
11067 "\t\tconst char *device,\n"
11068 "\t\tconst char *content,\n"
11069 "\t\tsize_t content_size,\n"
11070 "\t\tint64_t offset);\n"
11071 "\n"
11072 msgstr ""
11073
11074 # type: textblock
11075 #: ../src/guestfs-actions.pod:4095 ../fish/guestfish-actions.pod:3145
11076 msgid ""
11077 "This command writes to part of a device.  It writes the data buffer "
11078 "C<content> to C<device> starting at offset C<offset>."
11079 msgstr ""
11080
11081 # type: textblock
11082 #: ../src/guestfs-actions.pod:4098 ../fish/guestfish-actions.pod:3148
11083 msgid ""
11084 "This command implements the L<pwrite(2)> system call, and like that system "
11085 "call it may not write the full data requested (although short writes to disk "
11086 "devices and partitions are probably impossible with standard Linux kernels)."
11087 msgstr ""
11088
11089 # type: textblock
11090 #: ../src/guestfs-actions.pod:4103
11091 msgid "See also C<guestfs_pwrite>."
11092 msgstr ""
11093
11094 # type: =head2
11095 #: ../src/guestfs-actions.pod:4110
11096 msgid "guestfs_read_file"
11097 msgstr ""
11098
11099 # type: verbatim
11100 #: ../src/guestfs-actions.pod:4112
11101 #, no-wrap
11102 msgid ""
11103 " char *guestfs_read_file (guestfs_h *g,\n"
11104 "\t\tconst char *path,\n"
11105 "\t\tsize_t *size_r);\n"
11106 "\n"
11107 msgstr ""
11108
11109 # type: textblock
11110 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:3162
11111 msgid "This calls returns the contents of the file C<path> as a buffer."
11112 msgstr ""
11113
11114 # type: textblock
11115 #: ../src/guestfs-actions.pod:4119
11116 msgid ""
11117 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11118 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11119 "function is limited in the total size of file that can be handled."
11120 msgstr ""
11121
11122 # type: =head2
11123 #: ../src/guestfs-actions.pod:4131
11124 msgid "guestfs_read_lines"
11125 msgstr ""
11126
11127 # type: verbatim
11128 #: ../src/guestfs-actions.pod:4133
11129 #, no-wrap
11130 msgid ""
11131 " char **guestfs_read_lines (guestfs_h *g,\n"
11132 "\t\tconst char *path);\n"
11133 "\n"
11134 msgstr ""
11135
11136 # type: textblock
11137 #: ../src/guestfs-actions.pod:4138 ../fish/guestfish-actions.pod:3179
11138 msgid ""
11139 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11140 "C<CRLF> character sequences are I<not> returned."
11141 msgstr ""
11142
11143 # type: textblock
11144 #: ../src/guestfs-actions.pod:4141
11145 msgid ""
11146 "Note that this function cannot correctly handle binary files (specifically, "
11147 "files containing C<\\0> character which is treated as end of line).  For "
11148 "those you need to use the C<guestfs_read_file> function which has a more "
11149 "complex interface."
11150 msgstr ""
11151
11152 # type: =head2
11153 #: ../src/guestfs-actions.pod:4150
11154 msgid "guestfs_readdir"
11155 msgstr ""
11156
11157 # type: verbatim
11158 #: ../src/guestfs-actions.pod:4152
11159 #, no-wrap
11160 msgid ""
11161 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
11162 "\t\tconst char *dir);\n"
11163 "\n"
11164 msgstr ""
11165
11166 # type: textblock
11167 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:3191
11168 msgid "This returns the list of directory entries in directory C<dir>."
11169 msgstr ""
11170
11171 # type: textblock
11172 #: ../src/guestfs-actions.pod:4157 ../fish/guestfish-actions.pod:3193
11173 msgid ""
11174 "All entries in the directory are returned, including C<.> and C<..>.  The "
11175 "entries are I<not> sorted, but returned in the same order as the underlying "
11176 "filesystem."
11177 msgstr ""
11178
11179 # type: textblock
11180 #: ../src/guestfs-actions.pod:4161 ../fish/guestfish-actions.pod:3197
11181 msgid ""
11182 "Also this call returns basic file type information about each file.  The "
11183 "C<ftyp> field will contain one of the following characters:"
11184 msgstr ""
11185
11186 # type: =item
11187 #: ../src/guestfs-actions.pod:4166 ../fish/guestfish-actions.pod:3202
11188 msgid "'b'"
11189 msgstr ""
11190
11191 # type: textblock
11192 #: ../src/guestfs-actions.pod:4168 ../fish/guestfish-actions.pod:3204
11193 msgid "Block special"
11194 msgstr ""
11195
11196 # type: =item
11197 #: ../src/guestfs-actions.pod:4170 ../fish/guestfish-actions.pod:3206
11198 msgid "'c'"
11199 msgstr ""
11200
11201 # type: textblock
11202 #: ../src/guestfs-actions.pod:4172 ../fish/guestfish-actions.pod:3208
11203 msgid "Char special"
11204 msgstr ""
11205
11206 # type: =item
11207 #: ../src/guestfs-actions.pod:4174 ../fish/guestfish-actions.pod:3210
11208 msgid "'d'"
11209 msgstr ""
11210
11211 # type: textblock
11212 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:3212
11213 msgid "Directory"
11214 msgstr ""
11215
11216 # type: =item
11217 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:3214
11218 msgid "'f'"
11219 msgstr ""
11220
11221 # type: textblock
11222 #: ../src/guestfs-actions.pod:4180 ../fish/guestfish-actions.pod:3216
11223 msgid "FIFO (named pipe)"
11224 msgstr ""
11225
11226 # type: =item
11227 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:3218
11228 msgid "'l'"
11229 msgstr ""
11230
11231 # type: textblock
11232 #: ../src/guestfs-actions.pod:4184 ../fish/guestfish-actions.pod:3220
11233 msgid "Symbolic link"
11234 msgstr ""
11235
11236 # type: =item
11237 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:3222
11238 msgid "'r'"
11239 msgstr ""
11240
11241 # type: textblock
11242 #: ../src/guestfs-actions.pod:4188 ../fish/guestfish-actions.pod:3224
11243 msgid "Regular file"
11244 msgstr ""
11245
11246 # type: =item
11247 #: ../src/guestfs-actions.pod:4190 ../fish/guestfish-actions.pod:3226
11248 msgid "'s'"
11249 msgstr ""
11250
11251 # type: textblock
11252 #: ../src/guestfs-actions.pod:4192 ../fish/guestfish-actions.pod:3228
11253 msgid "Socket"
11254 msgstr ""
11255
11256 # type: =item
11257 #: ../src/guestfs-actions.pod:4194 ../fish/guestfish-actions.pod:3230
11258 msgid "'u'"
11259 msgstr ""
11260
11261 # type: textblock
11262 #: ../src/guestfs-actions.pod:4196 ../fish/guestfish-actions.pod:3232
11263 msgid "Unknown file type"
11264 msgstr ""
11265
11266 # type: =item
11267 #: ../src/guestfs-actions.pod:4198 ../fish/guestfish-actions.pod:3234
11268 msgid "'?'"
11269 msgstr ""
11270
11271 # type: textblock
11272 #: ../src/guestfs-actions.pod:4200 ../fish/guestfish-actions.pod:3236
11273 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11274 msgstr ""
11275
11276 # type: textblock
11277 #: ../src/guestfs-actions.pod:4205
11278 msgid ""
11279 "This function is primarily intended for use by programs.  To get a simple "
11280 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
11281 "consumption, use C<guestfs_ll>."
11282 msgstr ""
11283
11284 # type: textblock
11285 #: ../src/guestfs-actions.pod:4209
11286 msgid ""
11287 "This function returns a C<struct guestfs_dirent_list *> (see "
11288 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11289 "must call C<guestfs_free_dirent_list> after use>."
11290 msgstr ""
11291
11292 # type: =head2
11293 #: ../src/guestfs-actions.pod:4214
11294 msgid "guestfs_readlink"
11295 msgstr ""
11296
11297 # type: verbatim
11298 #: ../src/guestfs-actions.pod:4216
11299 #, no-wrap
11300 msgid ""
11301 " char *guestfs_readlink (guestfs_h *g,\n"
11302 "\t\tconst char *path);\n"
11303 "\n"
11304 msgstr ""
11305
11306 # type: textblock
11307 #: ../src/guestfs-actions.pod:4219 ../fish/guestfish-actions.pod:3249
11308 msgid "This command reads the target of a symbolic link."
11309 msgstr ""
11310
11311 # type: =head2
11312 #: ../src/guestfs-actions.pod:4224
11313 msgid "guestfs_readlinklist"
11314 msgstr ""
11315
11316 # type: verbatim
11317 #: ../src/guestfs-actions.pod:4226
11318 #, no-wrap
11319 msgid ""
11320 " char **guestfs_readlinklist (guestfs_h *g,\n"
11321 "\t\tconst char *path,\n"
11322 "\t\tchar *const *names);\n"
11323 "\n"
11324 msgstr ""
11325
11326 # type: textblock
11327 #: ../src/guestfs-actions.pod:4230 ../fish/guestfish-actions.pod:3255
11328 msgid ""
11329 "This call allows you to do a C<readlink> operation on multiple files, where "
11330 "all files are in the directory C<path>.  C<names> is the list of files from "
11331 "this directory."
11332 msgstr ""
11333
11334 # type: textblock
11335 #: ../src/guestfs-actions.pod:4234 ../fish/guestfish-actions.pod:3259
11336 msgid ""
11337 "On return you get a list of strings, with a one-to-one correspondence to the "
11338 "C<names> list.  Each string is the value of the symbolic link."
11339 msgstr ""
11340
11341 # type: textblock
11342 #: ../src/guestfs-actions.pod:4238 ../fish/guestfish-actions.pod:3263
11343 msgid ""
11344 "If the C<readlink(2)> operation fails on any name, then the corresponding "
11345 "result string is the empty string C<\"\">.  However the whole operation is "
11346 "completed even if there were C<readlink(2)> errors, and so you can call this "
11347 "function with names where you don't know if they are symbolic links already "
11348 "(albeit slightly less efficient)."
11349 msgstr ""
11350
11351 # type: textblock
11352 #: ../src/guestfs-actions.pod:4245 ../fish/guestfish-actions.pod:3270
11353 msgid ""
11354 "This call is intended for programs that want to efficiently list a directory "
11355 "contents without making many round-trips.  Very long directory listings "
11356 "might cause the protocol message size to be exceeded, causing this call to "
11357 "fail.  The caller must split up such requests into smaller groups of names."
11358 msgstr ""
11359
11360 # type: =head2
11361 #: ../src/guestfs-actions.pod:4256
11362 msgid "guestfs_realpath"
11363 msgstr ""
11364
11365 # type: verbatim
11366 #: ../src/guestfs-actions.pod:4258
11367 #, no-wrap
11368 msgid ""
11369 " char *guestfs_realpath (guestfs_h *g,\n"
11370 "\t\tconst char *path);\n"
11371 "\n"
11372 msgstr ""
11373
11374 # type: textblock
11375 #: ../src/guestfs-actions.pod:4261 ../fish/guestfish-actions.pod:3281
11376 msgid ""
11377 "Return the canonicalized absolute pathname of C<path>.  The returned path "
11378 "has no C<.>, C<..> or symbolic link path elements."
11379 msgstr ""
11380
11381 # type: =head2
11382 #: ../src/guestfs-actions.pod:4267
11383 msgid "guestfs_removexattr"
11384 msgstr ""
11385
11386 # type: verbatim
11387 #: ../src/guestfs-actions.pod:4269
11388 #, no-wrap
11389 msgid ""
11390 " int guestfs_removexattr (guestfs_h *g,\n"
11391 "\t\tconst char *xattr,\n"
11392 "\t\tconst char *path);\n"
11393 "\n"
11394 msgstr ""
11395
11396 # type: textblock
11397 #: ../src/guestfs-actions.pod:4273 ../fish/guestfish-actions.pod:3288
11398 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
11399 msgstr ""
11400
11401 # type: textblock
11402 #: ../src/guestfs-actions.pod:4276
11403 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11404 msgstr ""
11405
11406 # type: =head2
11407 #: ../src/guestfs-actions.pod:4280
11408 msgid "guestfs_resize2fs"
11409 msgstr ""
11410
11411 # type: verbatim
11412 #: ../src/guestfs-actions.pod:4282
11413 #, no-wrap
11414 msgid ""
11415 " int guestfs_resize2fs (guestfs_h *g,\n"
11416 "\t\tconst char *device);\n"
11417 "\n"
11418 msgstr ""
11419
11420 # type: textblock
11421 #: ../src/guestfs-actions.pod:4285 ../fish/guestfish-actions.pod:3297
11422 msgid ""
11423 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11424 "underlying device."
11425 msgstr ""
11426
11427 # type: textblock
11428 #: ../src/guestfs-actions.pod:4288
11429 msgid ""
11430 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11431 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11432 "sometimes gives an error about this and sometimes not.  In any case, it is "
11433 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11434 msgstr ""
11435
11436 # type: =head2
11437 #: ../src/guestfs-actions.pod:4296
11438 msgid "guestfs_resize2fs_size"
11439 msgstr ""
11440
11441 # type: verbatim
11442 #: ../src/guestfs-actions.pod:4298
11443 #, no-wrap
11444 msgid ""
11445 " int guestfs_resize2fs_size (guestfs_h *g,\n"
11446 "\t\tconst char *device,\n"
11447 "\t\tint64_t size);\n"
11448 "\n"
11449 msgstr ""
11450
11451 # type: textblock
11452 #: ../src/guestfs-actions.pod:4302
11453 msgid ""
11454 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11455 "to specify the new size (in bytes) explicitly."
11456 msgstr ""
11457
11458 # type: =head2
11459 #: ../src/guestfs-actions.pod:4307
11460 msgid "guestfs_rm"
11461 msgstr ""
11462
11463 # type: verbatim
11464 #: ../src/guestfs-actions.pod:4309
11465 #, no-wrap
11466 msgid ""
11467 " int guestfs_rm (guestfs_h *g,\n"
11468 "\t\tconst char *path);\n"
11469 "\n"
11470 msgstr ""
11471
11472 # type: textblock
11473 #: ../src/guestfs-actions.pod:4312 ../fish/guestfish-actions.pod:3317
11474 msgid "Remove the single file C<path>."
11475 msgstr ""
11476
11477 # type: =head2
11478 #: ../src/guestfs-actions.pod:4316
11479 msgid "guestfs_rm_rf"
11480 msgstr ""
11481
11482 # type: verbatim
11483 #: ../src/guestfs-actions.pod:4318
11484 #, no-wrap
11485 msgid ""
11486 " int guestfs_rm_rf (guestfs_h *g,\n"
11487 "\t\tconst char *path);\n"
11488 "\n"
11489 msgstr ""
11490
11491 # type: textblock
11492 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:3323
11493 msgid ""
11494 "Remove the file or directory C<path>, recursively removing the contents if "
11495 "its a directory.  This is like the C<rm -rf> shell command."
11496 msgstr ""
11497
11498 # type: =head2
11499 #: ../src/guestfs-actions.pod:4327
11500 msgid "guestfs_rmdir"
11501 msgstr ""
11502
11503 # type: verbatim
11504 #: ../src/guestfs-actions.pod:4329
11505 #, no-wrap
11506 msgid ""
11507 " int guestfs_rmdir (guestfs_h *g,\n"
11508 "\t\tconst char *path);\n"
11509 "\n"
11510 msgstr ""
11511
11512 # type: textblock
11513 #: ../src/guestfs-actions.pod:4332 ../fish/guestfish-actions.pod:3331
11514 msgid "Remove the single directory C<path>."
11515 msgstr ""
11516
11517 # type: =head2
11518 #: ../src/guestfs-actions.pod:4336
11519 msgid "guestfs_rmmountpoint"
11520 msgstr ""
11521
11522 # type: verbatim
11523 #: ../src/guestfs-actions.pod:4338
11524 #, no-wrap
11525 msgid ""
11526 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11527 "\t\tconst char *exemptpath);\n"
11528 "\n"
11529 msgstr ""
11530
11531 # type: textblock
11532 #: ../src/guestfs-actions.pod:4341
11533 msgid ""
11534 "This calls removes a mountpoint that was previously created with "
11535 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11536 msgstr ""
11537
11538 # type: =head2
11539 #: ../src/guestfs-actions.pod:4347
11540 msgid "guestfs_scrub_device"
11541 msgstr ""
11542
11543 # type: verbatim
11544 #: ../src/guestfs-actions.pod:4349
11545 #, no-wrap
11546 msgid ""
11547 " int guestfs_scrub_device (guestfs_h *g,\n"
11548 "\t\tconst char *device);\n"
11549 "\n"
11550 msgstr ""
11551
11552 # type: textblock
11553 #: ../src/guestfs-actions.pod:4352 ../fish/guestfish-actions.pod:3345
11554 msgid ""
11555 "This command writes patterns over C<device> to make data retrieval more "
11556 "difficult."
11557 msgstr ""
11558
11559 # type: textblock
11560 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4373 ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:3348 ../fish/guestfish-actions.pod:3363 ../fish/guestfish-actions.pod:3376
11561 msgid ""
11562 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11563 "more details."
11564 msgstr ""
11565
11566 # type: =head2
11567 #: ../src/guestfs-actions.pod:4363
11568 msgid "guestfs_scrub_file"
11569 msgstr ""
11570
11571 # type: verbatim
11572 #: ../src/guestfs-actions.pod:4365
11573 #, no-wrap
11574 msgid ""
11575 " int guestfs_scrub_file (guestfs_h *g,\n"
11576 "\t\tconst char *file);\n"
11577 "\n"
11578 msgstr ""
11579
11580 # type: textblock
11581 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:3358
11582 msgid ""
11583 "This command writes patterns over a file to make data retrieval more "
11584 "difficult."
11585 msgstr ""
11586
11587 # type: textblock
11588 #: ../src/guestfs-actions.pod:4371 ../fish/guestfish-actions.pod:3361
11589 msgid "The file is I<removed> after scrubbing."
11590 msgstr ""
11591
11592 # type: =head2
11593 #: ../src/guestfs-actions.pod:4378
11594 msgid "guestfs_scrub_freespace"
11595 msgstr ""
11596
11597 # type: verbatim
11598 #: ../src/guestfs-actions.pod:4380
11599 #, no-wrap
11600 msgid ""
11601 " int guestfs_scrub_freespace (guestfs_h *g,\n"
11602 "\t\tconst char *dir);\n"
11603 "\n"
11604 msgstr ""
11605
11606 # type: textblock
11607 #: ../src/guestfs-actions.pod:4383
11608 msgid ""
11609 "This command creates the directory C<dir> and then fills it with files until "
11610 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11611 "and deletes them.  The intention is to scrub any free space on the partition "
11612 "containing C<dir>."
11613 msgstr ""
11614
11615 # type: =head2
11616 #: ../src/guestfs-actions.pod:4394
11617 msgid "guestfs_set_append"
11618 msgstr ""
11619
11620 # type: verbatim
11621 #: ../src/guestfs-actions.pod:4396
11622 #, no-wrap
11623 msgid ""
11624 " int guestfs_set_append (guestfs_h *g,\n"
11625 "\t\tconst char *append);\n"
11626 "\n"
11627 msgstr ""
11628
11629 # type: textblock
11630 #: ../src/guestfs-actions.pod:4399 ../fish/guestfish-actions.pod:3385
11631 msgid ""
11632 "This function is used to add additional options to the guest kernel command "
11633 "line."
11634 msgstr ""
11635
11636 # type: textblock
11637 #: ../src/guestfs-actions.pod:4402 ../fish/guestfish-actions.pod:3388
11638 msgid ""
11639 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11640 "environment variable."
11641 msgstr ""
11642
11643 # type: textblock
11644 #: ../src/guestfs-actions.pod:4405 ../fish/guestfish-actions.pod:3391
11645 msgid ""
11646 "Setting C<append> to C<NULL> means I<no> additional options are passed "
11647 "(libguestfs always adds a few of its own)."
11648 msgstr ""
11649
11650 # type: =head2
11651 #: ../src/guestfs-actions.pod:4410
11652 msgid "guestfs_set_autosync"
11653 msgstr ""
11654
11655 # type: verbatim
11656 #: ../src/guestfs-actions.pod:4412
11657 #, no-wrap
11658 msgid ""
11659 " int guestfs_set_autosync (guestfs_h *g,\n"
11660 "\t\tint autosync);\n"
11661 "\n"
11662 msgstr ""
11663
11664 # type: textblock
11665 #: ../src/guestfs-actions.pod:4415
11666 msgid ""
11667 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
11668 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
11669 "the handle is closed (also if the program exits without closing handles)."
11670 msgstr ""
11671
11672 # type: textblock
11673 #: ../src/guestfs-actions.pod:4420 ../fish/guestfish-actions.pod:3405
11674 msgid ""
11675 "This is enabled by default (since libguestfs 1.5.24, previously it was "
11676 "disabled by default)."
11677 msgstr ""
11678
11679 # type: =head2
11680 #: ../src/guestfs-actions.pod:4425
11681 msgid "guestfs_set_direct"
11682 msgstr ""
11683
11684 # type: verbatim
11685 #: ../src/guestfs-actions.pod:4427
11686 #, no-wrap
11687 msgid ""
11688 " int guestfs_set_direct (guestfs_h *g,\n"
11689 "\t\tint direct);\n"
11690 "\n"
11691 msgstr ""
11692
11693 # type: textblock
11694 #: ../src/guestfs-actions.pod:4430 ../fish/guestfish-actions.pod:3414
11695 msgid ""
11696 "If the direct appliance mode flag is enabled, then stdin and stdout are "
11697 "passed directly through to the appliance once it is launched."
11698 msgstr ""
11699
11700 # type: textblock
11701 #: ../src/guestfs-actions.pod:4434
11702 msgid ""
11703 "One consequence of this is that log messages aren't caught by the library "
11704 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
11705 "stdout."
11706 msgstr ""
11707
11708 # type: textblock
11709 #: ../src/guestfs-actions.pod:4438 ../fish/guestfish-actions.pod:3422
11710 msgid "You probably don't want to use this unless you know what you are doing."
11711 msgstr ""
11712
11713 # type: textblock
11714 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:3425
11715 msgid "The default is disabled."
11716 msgstr ""
11717
11718 # type: =head2
11719 #: ../src/guestfs-actions.pod:4445
11720 msgid "guestfs_set_e2label"
11721 msgstr ""
11722
11723 # type: verbatim
11724 #: ../src/guestfs-actions.pod:4447
11725 #, no-wrap
11726 msgid ""
11727 " int guestfs_set_e2label (guestfs_h *g,\n"
11728 "\t\tconst char *device,\n"
11729 "\t\tconst char *label);\n"
11730 "\n"
11731 msgstr ""
11732
11733 # type: textblock
11734 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:3431
11735 msgid ""
11736 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
11737 "C<label>.  Filesystem labels are limited to 16 characters."
11738 msgstr ""
11739
11740 # type: textblock
11741 #: ../src/guestfs-actions.pod:4455
11742 msgid ""
11743 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
11744 "the existing label on a filesystem."
11745 msgstr ""
11746
11747 # type: =head2
11748 #: ../src/guestfs-actions.pod:4460
11749 msgid "guestfs_set_e2uuid"
11750 msgstr ""
11751
11752 # type: verbatim
11753 #: ../src/guestfs-actions.pod:4462
11754 #, no-wrap
11755 msgid ""
11756 " int guestfs_set_e2uuid (guestfs_h *g,\n"
11757 "\t\tconst char *device,\n"
11758 "\t\tconst char *uuid);\n"
11759 "\n"
11760 msgstr ""
11761
11762 # type: textblock
11763 #: ../src/guestfs-actions.pod:4466 ../fish/guestfish-actions.pod:3442
11764 msgid ""
11765 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
11766 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
11767 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
11768 msgstr ""
11769
11770 # type: textblock
11771 #: ../src/guestfs-actions.pod:4471
11772 msgid ""
11773 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
11774 "the existing UUID of a filesystem."
11775 msgstr ""
11776
11777 # type: =head2
11778 #: ../src/guestfs-actions.pod:4476
11779 msgid "guestfs_set_memsize"
11780 msgstr ""
11781
11782 # type: verbatim
11783 #: ../src/guestfs-actions.pod:4478
11784 #, no-wrap
11785 msgid ""
11786 " int guestfs_set_memsize (guestfs_h *g,\n"
11787 "\t\tint memsize);\n"
11788 "\n"
11789 msgstr ""
11790
11791 # type: textblock
11792 #: ../src/guestfs-actions.pod:4481
11793 msgid ""
11794 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
11795 "This only has any effect if called before C<guestfs_launch>."
11796 msgstr ""
11797
11798 # type: textblock
11799 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3460
11800 msgid ""
11801 "You can also change this by setting the environment variable "
11802 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
11803 msgstr ""
11804
11805 # type: =head2
11806 #: ../src/guestfs-actions.pod:4494
11807 msgid "guestfs_set_network"
11808 msgstr ""
11809
11810 # type: verbatim
11811 #: ../src/guestfs-actions.pod:4496
11812 #, no-wrap
11813 msgid ""
11814 " int guestfs_set_network (guestfs_h *g,\n"
11815 "\t\tint network);\n"
11816 "\n"
11817 msgstr ""
11818
11819 # type: textblock
11820 #: ../src/guestfs-actions.pod:4499 ../fish/guestfish-actions.pod:3473
11821 msgid ""
11822 "If C<network> is true, then the network is enabled in the libguestfs "
11823 "appliance.  The default is false."
11824 msgstr ""
11825
11826 # type: textblock
11827 #: ../src/guestfs-actions.pod:4502 ../fish/guestfish-actions.pod:3476
11828 msgid ""
11829 "This affects whether commands are able to access the network (see "
11830 "L<guestfs(3)/RUNNING COMMANDS>)."
11831 msgstr ""
11832
11833 # type: textblock
11834 #: ../src/guestfs-actions.pod:4505
11835 msgid ""
11836 "You must call this before calling C<guestfs_launch>, otherwise it has no "
11837 "effect."
11838 msgstr ""
11839
11840 # type: =head2
11841 #: ../src/guestfs-actions.pod:4510
11842 msgid "guestfs_set_path"
11843 msgstr ""
11844
11845 # type: verbatim
11846 #: ../src/guestfs-actions.pod:4512
11847 #, no-wrap
11848 msgid ""
11849 " int guestfs_set_path (guestfs_h *g,\n"
11850 "\t\tconst char *searchpath);\n"
11851 "\n"
11852 msgstr ""
11853
11854 # type: textblock
11855 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:3488
11856 msgid "Set the path that libguestfs searches for kernel and initrd.img."
11857 msgstr ""
11858
11859 # type: textblock
11860 #: ../src/guestfs-actions.pod:4517 ../fish/guestfish-actions.pod:3490
11861 msgid ""
11862 "The default is C<$libdir/guestfs> unless overridden by setting "
11863 "C<LIBGUESTFS_PATH> environment variable."
11864 msgstr ""
11865
11866 # type: textblock
11867 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3493
11868 msgid "Setting C<path> to C<NULL> restores the default path."
11869 msgstr ""
11870
11871 # type: =head2
11872 #: ../src/guestfs-actions.pod:4524
11873 msgid "guestfs_set_qemu"
11874 msgstr ""
11875
11876 # type: verbatim
11877 #: ../src/guestfs-actions.pod:4526
11878 #, no-wrap
11879 msgid ""
11880 " int guestfs_set_qemu (guestfs_h *g,\n"
11881 "\t\tconst char *qemu);\n"
11882 "\n"
11883 msgstr ""
11884
11885 # type: textblock
11886 #: ../src/guestfs-actions.pod:4529 ../fish/guestfish-actions.pod:3501
11887 msgid "Set the qemu binary that we will use."
11888 msgstr ""
11889
11890 # type: textblock
11891 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3503
11892 msgid "The default is chosen when the library was compiled by the configure script."
11893 msgstr ""
11894
11895 # type: textblock
11896 #: ../src/guestfs-actions.pod:4534 ../fish/guestfish-actions.pod:3506
11897 msgid ""
11898 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
11899 "variable."
11900 msgstr ""
11901
11902 # type: textblock
11903 #: ../src/guestfs-actions.pod:4537 ../fish/guestfish-actions.pod:3509
11904 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
11905 msgstr ""
11906
11907 # type: textblock
11908 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3511
11909 msgid ""
11910 "Note that you should call this function as early as possible after creating "
11911 "the handle.  This is because some pre-launch operations depend on testing "
11912 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
11913 "don't retest features, and so you might see inconsistent results.  Using the "
11914 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
11915 "the qemu binary at the same time as the handle is created."
11916 msgstr ""
11917
11918 # type: =head2
11919 #: ../src/guestfs-actions.pod:4549
11920 msgid "guestfs_set_recovery_proc"
11921 msgstr ""
11922
11923 # type: verbatim
11924 #: ../src/guestfs-actions.pod:4551
11925 #, no-wrap
11926 msgid ""
11927 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
11928 "\t\tint recoveryproc);\n"
11929 "\n"
11930 msgstr ""
11931
11932 # type: textblock
11933 #: ../src/guestfs-actions.pod:4554
11934 msgid ""
11935 "If this is called with the parameter C<false> then C<guestfs_launch> does "
11936 "not create a recovery process.  The purpose of the recovery process is to "
11937 "stop runaway qemu processes in the case where the main program aborts "
11938 "abruptly."
11939 msgstr ""
11940
11941 # type: textblock
11942 #: ../src/guestfs-actions.pod:4559
11943 msgid ""
11944 "This only has any effect if called before C<guestfs_launch>, and the default "
11945 "is true."
11946 msgstr ""
11947
11948 # type: textblock
11949 #: ../src/guestfs-actions.pod:4562 ../fish/guestfish-actions.pod:3533
11950 msgid ""
11951 "About the only time when you would want to disable this is if the main "
11952 "process will fork itself into the background (\"daemonize\" itself).  In "
11953 "this case the recovery process thinks that the main program has disappeared "
11954 "and so kills qemu, which is not very helpful."
11955 msgstr ""
11956
11957 # type: =head2
11958 #: ../src/guestfs-actions.pod:4570
11959 msgid "guestfs_set_selinux"
11960 msgstr ""
11961
11962 # type: verbatim
11963 #: ../src/guestfs-actions.pod:4572
11964 #, no-wrap
11965 msgid ""
11966 " int guestfs_set_selinux (guestfs_h *g,\n"
11967 "\t\tint selinux);\n"
11968 "\n"
11969 msgstr ""
11970
11971 # type: textblock
11972 #: ../src/guestfs-actions.pod:4575 ../fish/guestfish-actions.pod:3545
11973 msgid ""
11974 "This sets the selinux flag that is passed to the appliance at boot time.  "
11975 "The default is C<selinux=0> (disabled)."
11976 msgstr ""
11977
11978 # type: textblock
11979 #: ../src/guestfs-actions.pod:4578 ../fish/guestfish-actions.pod:3548
11980 msgid ""
11981 "Note that if SELinux is enabled, it is always in Permissive mode "
11982 "(C<enforcing=0>)."
11983 msgstr ""
11984
11985 # type: =head2
11986 #: ../src/guestfs-actions.pod:4586
11987 msgid "guestfs_set_trace"
11988 msgstr ""
11989
11990 # type: verbatim
11991 #: ../src/guestfs-actions.pod:4588
11992 #, no-wrap
11993 msgid ""
11994 " int guestfs_set_trace (guestfs_h *g,\n"
11995 "\t\tint trace);\n"
11996 "\n"
11997 msgstr ""
11998
11999 # type: textblock
12000 #: ../src/guestfs-actions.pod:4591 ../fish/guestfish-actions.pod:3560
12001 msgid ""
12002 "If the command trace flag is set to 1, then commands are printed on stderr "
12003 "before they are executed in a format which is very similar to the one used "
12004 "by guestfish.  In other words, you can run a program with this enabled, and "
12005 "you will get out a script which you can feed to guestfish to perform the "
12006 "same set of actions."
12007 msgstr ""
12008
12009 # type: textblock
12010 #: ../src/guestfs-actions.pod:4598 ../fish/guestfish-actions.pod:3567
12011 msgid ""
12012 "If you want to trace C API calls into libguestfs (and other libraries) then "
12013 "possibly a better way is to use the external ltrace(1) command."
12014 msgstr ""
12015
12016 # type: textblock
12017 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3571
12018 msgid ""
12019 "Command traces are disabled unless the environment variable "
12020 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12021 msgstr ""
12022
12023 # type: =head2
12024 #: ../src/guestfs-actions.pod:4607
12025 msgid "guestfs_set_verbose"
12026 msgstr ""
12027
12028 # type: verbatim
12029 #: ../src/guestfs-actions.pod:4609
12030 #, no-wrap
12031 msgid ""
12032 " int guestfs_set_verbose (guestfs_h *g,\n"
12033 "\t\tint verbose);\n"
12034 "\n"
12035 msgstr ""
12036
12037 # type: textblock
12038 #: ../src/guestfs-actions.pod:4612 ../fish/guestfish-actions.pod:3580
12039 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12040 msgstr ""
12041
12042 # type: textblock
12043 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3582
12044 msgid ""
12045 "Verbose messages are disabled unless the environment variable "
12046 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12047 msgstr ""
12048
12049 # type: =head2
12050 #: ../src/guestfs-actions.pod:4619
12051 msgid "guestfs_setcon"
12052 msgstr ""
12053
12054 # type: verbatim
12055 #: ../src/guestfs-actions.pod:4621
12056 #, no-wrap
12057 msgid ""
12058 " int guestfs_setcon (guestfs_h *g,\n"
12059 "\t\tconst char *context);\n"
12060 "\n"
12061 msgstr ""
12062
12063 # type: textblock
12064 #: ../src/guestfs-actions.pod:4624 ../fish/guestfish-actions.pod:3589
12065 msgid ""
12066 "This sets the SELinux security context of the daemon to the string "
12067 "C<context>."
12068 msgstr ""
12069
12070 # type: textblock
12071 #: ../src/guestfs-actions.pod:4627 ../fish/guestfish-actions.pod:3592
12072 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12073 msgstr ""
12074
12075 # type: =head2
12076 #: ../src/guestfs-actions.pod:4631
12077 msgid "guestfs_setxattr"
12078 msgstr ""
12079
12080 # type: verbatim
12081 #: ../src/guestfs-actions.pod:4633
12082 #, no-wrap
12083 msgid ""
12084 " int guestfs_setxattr (guestfs_h *g,\n"
12085 "\t\tconst char *xattr,\n"
12086 "\t\tconst char *val,\n"
12087 "\t\tint vallen,\n"
12088 "\t\tconst char *path);\n"
12089 "\n"
12090 msgstr ""
12091
12092 # type: textblock
12093 #: ../src/guestfs-actions.pod:4639 ../fish/guestfish-actions.pod:3598
12094 msgid ""
12095 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12096 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12097 msgstr ""
12098
12099 # type: textblock
12100 #: ../src/guestfs-actions.pod:4643
12101 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12102 msgstr ""
12103
12104 # type: =head2
12105 #: ../src/guestfs-actions.pod:4647
12106 msgid "guestfs_sfdisk"
12107 msgstr ""
12108
12109 # type: verbatim
12110 #: ../src/guestfs-actions.pod:4649
12111 #, no-wrap
12112 msgid ""
12113 " int guestfs_sfdisk (guestfs_h *g,\n"
12114 "\t\tconst char *device,\n"
12115 "\t\tint cyls,\n"
12116 "\t\tint heads,\n"
12117 "\t\tint sectors,\n"
12118 "\t\tchar *const *lines);\n"
12119 "\n"
12120 msgstr ""
12121
12122 # type: textblock
12123 #: ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3608
12124 msgid ""
12125 "This is a direct interface to the L<sfdisk(8)> program for creating "
12126 "partitions on block devices."
12127 msgstr ""
12128
12129 # type: textblock
12130 #: ../src/guestfs-actions.pod:4659 ../fish/guestfish-actions.pod:3611
12131 msgid "C<device> should be a block device, for example C</dev/sda>."
12132 msgstr ""
12133
12134 # type: textblock
12135 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3613
12136 msgid ""
12137 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12138 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
12139 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12140 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12141 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12142 "the kernel) cannot work out the right geometry and you will need to tell it."
12143 msgstr ""
12144
12145 # type: textblock
12146 #: ../src/guestfs-actions.pod:4669 ../fish/guestfish-actions.pod:3621
12147 msgid ""
12148 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12149 "refer to the L<sfdisk(8)> manpage."
12150 msgstr ""
12151
12152 # type: textblock
12153 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3624
12154 msgid ""
12155 "To create a single partition occupying the whole disk, you would pass "
12156 "C<lines> as a single element list, when the single element being the string "
12157 "C<,> (comma)."
12158 msgstr ""
12159
12160 # type: textblock
12161 #: ../src/guestfs-actions.pod:4676
12162 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12163 msgstr ""
12164
12165 # type: =head2
12166 #: ../src/guestfs-actions.pod:4684
12167 msgid "guestfs_sfdiskM"
12168 msgstr ""
12169
12170 # type: verbatim
12171 #: ../src/guestfs-actions.pod:4686
12172 #, no-wrap
12173 msgid ""
12174 " int guestfs_sfdiskM (guestfs_h *g,\n"
12175 "\t\tconst char *device,\n"
12176 "\t\tchar *const *lines);\n"
12177 "\n"
12178 msgstr ""
12179
12180 # type: textblock
12181 #: ../src/guestfs-actions.pod:4690
12182 msgid ""
12183 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12184 "partition sizes are specified in megabytes only (rounded to the nearest "
12185 "cylinder) and you don't need to specify the cyls, heads and sectors "
12186 "parameters which were rarely if ever used anyway."
12187 msgstr ""
12188
12189 # type: textblock
12190 #: ../src/guestfs-actions.pod:4696
12191 msgid ""
12192 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12193 "C<guestfs_part_disk>"
12194 msgstr ""
12195
12196 # type: =head2
12197 #: ../src/guestfs-actions.pod:4704
12198 msgid "guestfs_sfdisk_N"
12199 msgstr ""
12200
12201 # type: verbatim
12202 #: ../src/guestfs-actions.pod:4706
12203 #, no-wrap
12204 msgid ""
12205 " int guestfs_sfdisk_N (guestfs_h *g,\n"
12206 "\t\tconst char *device,\n"
12207 "\t\tint partnum,\n"
12208 "\t\tint cyls,\n"
12209 "\t\tint heads,\n"
12210 "\t\tint sectors,\n"
12211 "\t\tconst char *line);\n"
12212 "\n"
12213 msgstr ""
12214
12215 # type: textblock
12216 #: ../src/guestfs-actions.pod:4714 ../fish/guestfish-actions.pod:3654
12217 msgid ""
12218 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12219 "(note: C<n> counts from 1)."
12220 msgstr ""
12221
12222 # type: textblock
12223 #: ../src/guestfs-actions.pod:4717
12224 msgid ""
12225 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12226 "for the cyls/heads/sectors parameters."
12227 msgstr ""
12228
12229 # type: textblock
12230 #: ../src/guestfs-actions.pod:4720
12231 msgid "See also: C<guestfs_part_add>"
12232 msgstr ""
12233
12234 # type: =head2
12235 #: ../src/guestfs-actions.pod:4727
12236 msgid "guestfs_sfdisk_disk_geometry"
12237 msgstr ""
12238
12239 # type: verbatim
12240 #: ../src/guestfs-actions.pod:4729
12241 #, no-wrap
12242 msgid ""
12243 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
12244 "\t\tconst char *device);\n"
12245 "\n"
12246 msgstr ""
12247
12248 # type: textblock
12249 #: ../src/guestfs-actions.pod:4732
12250 msgid ""
12251 "This displays the disk geometry of C<device> read from the partition table.  "
12252 "Especially in the case where the underlying block device has been resized, "
12253 "this can be different from the kernel's idea of the geometry (see "
12254 "C<guestfs_sfdisk_kernel_geometry>)."
12255 msgstr ""
12256
12257 # type: textblock
12258 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3674 ../fish/guestfish-actions.pod:3683
12259 msgid "The result is in human-readable format, and not designed to be parsed."
12260 msgstr ""
12261
12262 # type: =head2
12263 #: ../src/guestfs-actions.pod:4743
12264 msgid "guestfs_sfdisk_kernel_geometry"
12265 msgstr ""
12266
12267 # type: verbatim
12268 #: ../src/guestfs-actions.pod:4745
12269 #, no-wrap
12270 msgid ""
12271 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
12272 "\t\tconst char *device);\n"
12273 "\n"
12274 msgstr ""
12275
12276 # type: textblock
12277 #: ../src/guestfs-actions.pod:4748 ../fish/guestfish-actions.pod:3681
12278 msgid "This displays the kernel's idea of the geometry of C<device>."
12279 msgstr ""
12280
12281 # type: =head2
12282 #: ../src/guestfs-actions.pod:4756
12283 msgid "guestfs_sfdisk_l"
12284 msgstr ""
12285
12286 # type: verbatim
12287 #: ../src/guestfs-actions.pod:4758
12288 #, no-wrap
12289 msgid ""
12290 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
12291 "\t\tconst char *device);\n"
12292 "\n"
12293 msgstr ""
12294
12295 # type: textblock
12296 #: ../src/guestfs-actions.pod:4761 ../fish/guestfish-actions.pod:3690
12297 msgid ""
12298 "This displays the partition table on C<device>, in the human-readable output "
12299 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
12300 msgstr ""
12301
12302 # type: textblock
12303 #: ../src/guestfs-actions.pod:4765
12304 msgid "See also: C<guestfs_part_list>"
12305 msgstr ""
12306
12307 # type: =head2
12308 #: ../src/guestfs-actions.pod:4770
12309 msgid "guestfs_sh"
12310 msgstr ""
12311
12312 # type: verbatim
12313 #: ../src/guestfs-actions.pod:4772
12314 #, no-wrap
12315 msgid ""
12316 " char *guestfs_sh (guestfs_h *g,\n"
12317 "\t\tconst char *command);\n"
12318 "\n"
12319 msgstr ""
12320
12321 # type: textblock
12322 #: ../src/guestfs-actions.pod:4775 ../fish/guestfish-actions.pod:3700
12323 msgid ""
12324 "This call runs a command from the guest filesystem via the guest's "
12325 "C</bin/sh>."
12326 msgstr ""
12327
12328 # type: textblock
12329 #: ../src/guestfs-actions.pod:4778
12330 msgid "This is like C<guestfs_command>, but passes the command to:"
12331 msgstr ""
12332
12333 # type: verbatim
12334 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3705
12335 #, no-wrap
12336 msgid ""
12337 " /bin/sh -c \"command\"\n"
12338 "\n"
12339 msgstr ""
12340
12341 # type: textblock
12342 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3707
12343 msgid ""
12344 "Depending on the guest's shell, this usually results in wildcards being "
12345 "expanded, shell expressions being interpolated and so on."
12346 msgstr ""
12347
12348 # type: textblock
12349 #: ../src/guestfs-actions.pod:4786
12350 msgid "All the provisos about C<guestfs_command> apply to this call."
12351 msgstr ""
12352
12353 # type: =head2
12354 #: ../src/guestfs-actions.pod:4791
12355 msgid "guestfs_sh_lines"
12356 msgstr ""
12357
12358 # type: verbatim
12359 #: ../src/guestfs-actions.pod:4793
12360 #, no-wrap
12361 msgid ""
12362 " char **guestfs_sh_lines (guestfs_h *g,\n"
12363 "\t\tconst char *command);\n"
12364 "\n"
12365 msgstr ""
12366
12367 # type: textblock
12368 #: ../src/guestfs-actions.pod:4796
12369 msgid ""
12370 "This is the same as C<guestfs_sh>, but splits the result into a list of "
12371 "lines."
12372 msgstr ""
12373
12374 # type: textblock
12375 #: ../src/guestfs-actions.pod:4799
12376 msgid "See also: C<guestfs_command_lines>"
12377 msgstr ""
12378
12379 # type: =head2
12380 #: ../src/guestfs-actions.pod:4805
12381 msgid "guestfs_sleep"
12382 msgstr ""
12383
12384 # type: verbatim
12385 #: ../src/guestfs-actions.pod:4807
12386 #, no-wrap
12387 msgid ""
12388 " int guestfs_sleep (guestfs_h *g,\n"
12389 "\t\tint secs);\n"
12390 "\n"
12391 msgstr ""
12392
12393 # type: textblock
12394 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3726
12395 msgid "Sleep for C<secs> seconds."
12396 msgstr ""
12397
12398 # type: =head2
12399 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-structs.pod:109
12400 msgid "guestfs_stat"
12401 msgstr ""
12402
12403 # type: verbatim
12404 #: ../src/guestfs-actions.pod:4816
12405 #, no-wrap
12406 msgid ""
12407 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
12408 "\t\tconst char *path);\n"
12409 "\n"
12410 msgstr ""
12411
12412 # type: textblock
12413 #: ../src/guestfs-actions.pod:4821 ../fish/guestfish-actions.pod:3734
12414 msgid "This is the same as the C<stat(2)> system call."
12415 msgstr ""
12416
12417 # type: =head2
12418 #: ../src/guestfs-actions.pod:4827 ../src/guestfs-structs.pod:135
12419 msgid "guestfs_statvfs"
12420 msgstr ""
12421
12422 # type: verbatim
12423 #: ../src/guestfs-actions.pod:4829
12424 #, no-wrap
12425 msgid ""
12426 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
12427 "\t\tconst char *path);\n"
12428 "\n"
12429 msgstr ""
12430
12431 # type: textblock
12432 #: ../src/guestfs-actions.pod:4832 ../fish/guestfish-actions.pod:3740
12433 msgid ""
12434 "Returns file system statistics for any mounted file system.  C<path> should "
12435 "be a file or directory in the mounted file system (typically it is the mount "
12436 "point itself, but it doesn't need to be)."
12437 msgstr ""
12438
12439 # type: textblock
12440 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3744
12441 msgid "This is the same as the C<statvfs(2)> system call."
12442 msgstr ""
12443
12444 # type: textblock
12445 #: ../src/guestfs-actions.pod:4838
12446 msgid ""
12447 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12448 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12449 msgstr ""
12450
12451 # type: =head2
12452 #: ../src/guestfs-actions.pod:4842
12453 msgid "guestfs_strings"
12454 msgstr ""
12455
12456 # type: verbatim
12457 #: ../src/guestfs-actions.pod:4844
12458 #, no-wrap
12459 msgid ""
12460 " char **guestfs_strings (guestfs_h *g,\n"
12461 "\t\tconst char *path);\n"
12462 "\n"
12463 msgstr ""
12464
12465 # type: textblock
12466 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3750
12467 msgid ""
12468 "This runs the L<strings(1)> command on a file and returns the list of "
12469 "printable strings found."
12470 msgstr ""
12471
12472 # type: =head2
12473 #: ../src/guestfs-actions.pod:4857
12474 msgid "guestfs_strings_e"
12475 msgstr ""
12476
12477 # type: verbatim
12478 #: ../src/guestfs-actions.pod:4859
12479 #, no-wrap
12480 msgid ""
12481 " char **guestfs_strings_e (guestfs_h *g,\n"
12482 "\t\tconst char *encoding,\n"
12483 "\t\tconst char *path);\n"
12484 "\n"
12485 msgstr ""
12486
12487 # type: textblock
12488 #: ../src/guestfs-actions.pod:4863
12489 msgid ""
12490 "This is like the C<guestfs_strings> command, but allows you to specify the "
12491 "encoding of strings that are looked for in the source file C<path>."
12492 msgstr ""
12493
12494 # type: textblock
12495 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3764
12496 msgid "Allowed encodings are:"
12497 msgstr ""
12498
12499 # type: =item
12500 #: ../src/guestfs-actions.pod:4871 ../fish/guestfish-actions.pod:3768
12501 msgid "s"
12502 msgstr ""
12503
12504 # type: textblock
12505 #: ../src/guestfs-actions.pod:4873
12506 msgid ""
12507 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12508 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12509 msgstr ""
12510
12511 # type: =item
12512 #: ../src/guestfs-actions.pod:4876 ../fish/guestfish-actions.pod:3773
12513 msgid "S"
12514 msgstr ""
12515
12516 # type: textblock
12517 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3775
12518 msgid "Single 8-bit-byte characters."
12519 msgstr ""
12520
12521 # type: =item
12522 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3777
12523 msgid "b"
12524 msgstr ""
12525
12526 # type: textblock
12527 #: ../src/guestfs-actions.pod:4882 ../fish/guestfish-actions.pod:3779
12528 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12529 msgstr ""
12530
12531 # type: =item
12532 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3782
12533 msgid "l (lower case letter L)"
12534 msgstr ""
12535
12536 # type: textblock
12537 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3784
12538 msgid ""
12539 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12540 "examining binaries in Windows guests."
12541 msgstr ""
12542
12543 # type: =item
12544 #: ../src/guestfs-actions.pod:4890 ../fish/guestfish-actions.pod:3787
12545 msgid "B"
12546 msgstr ""
12547
12548 # type: textblock
12549 #: ../src/guestfs-actions.pod:4892 ../fish/guestfish-actions.pod:3789
12550 msgid "32-bit big endian such as UCS-4BE."
12551 msgstr ""
12552
12553 # type: =item
12554 #: ../src/guestfs-actions.pod:4894 ../fish/guestfish-actions.pod:3791
12555 msgid "L"
12556 msgstr ""
12557
12558 # type: textblock
12559 #: ../src/guestfs-actions.pod:4896 ../fish/guestfish-actions.pod:3793
12560 msgid "32-bit little endian such as UCS-4LE."
12561 msgstr ""
12562
12563 # type: textblock
12564 #: ../src/guestfs-actions.pod:4900 ../fish/guestfish-actions.pod:3797
12565 msgid "The returned strings are transcoded to UTF-8."
12566 msgstr ""
12567
12568 # type: =head2
12569 #: ../src/guestfs-actions.pod:4909
12570 msgid "guestfs_swapoff_device"
12571 msgstr ""
12572
12573 # type: verbatim
12574 #: ../src/guestfs-actions.pod:4911
12575 #, no-wrap
12576 msgid ""
12577 " int guestfs_swapoff_device (guestfs_h *g,\n"
12578 "\t\tconst char *device);\n"
12579 "\n"
12580 msgstr ""
12581
12582 # type: textblock
12583 #: ../src/guestfs-actions.pod:4914
12584 msgid ""
12585 "This command disables the libguestfs appliance swap device or partition "
12586 "named C<device>.  See C<guestfs_swapon_device>."
12587 msgstr ""
12588
12589 # type: =head2
12590 #: ../src/guestfs-actions.pod:4920
12591 msgid "guestfs_swapoff_file"
12592 msgstr ""
12593
12594 # type: verbatim
12595 #: ../src/guestfs-actions.pod:4922
12596 #, no-wrap
12597 msgid ""
12598 " int guestfs_swapoff_file (guestfs_h *g,\n"
12599 "\t\tconst char *file);\n"
12600 "\n"
12601 msgstr ""
12602
12603 # type: textblock
12604 #: ../src/guestfs-actions.pod:4925 ../fish/guestfish-actions.pod:3814
12605 msgid "This command disables the libguestfs appliance swap on file."
12606 msgstr ""
12607
12608 # type: =head2
12609 #: ../src/guestfs-actions.pod:4929
12610 msgid "guestfs_swapoff_label"
12611 msgstr ""
12612
12613 # type: verbatim
12614 #: ../src/guestfs-actions.pod:4931
12615 #, no-wrap
12616 msgid ""
12617 " int guestfs_swapoff_label (guestfs_h *g,\n"
12618 "\t\tconst char *label);\n"
12619 "\n"
12620 msgstr ""
12621
12622 # type: textblock
12623 #: ../src/guestfs-actions.pod:4934 ../fish/guestfish-actions.pod:3820
12624 msgid ""
12625 "This command disables the libguestfs appliance swap on labeled swap "
12626 "partition."
12627 msgstr ""
12628
12629 # type: =head2
12630 #: ../src/guestfs-actions.pod:4939
12631 msgid "guestfs_swapoff_uuid"
12632 msgstr ""
12633
12634 # type: verbatim
12635 #: ../src/guestfs-actions.pod:4941
12636 #, no-wrap
12637 msgid ""
12638 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
12639 "\t\tconst char *uuid);\n"
12640 "\n"
12641 msgstr ""
12642
12643 # type: textblock
12644 #: ../src/guestfs-actions.pod:4944 ../fish/guestfish-actions.pod:3827
12645 msgid ""
12646 "This command disables the libguestfs appliance swap partition with the given "
12647 "UUID."
12648 msgstr ""
12649
12650 # type: =head2
12651 #: ../src/guestfs-actions.pod:4949
12652 msgid "guestfs_swapon_device"
12653 msgstr ""
12654
12655 # type: verbatim
12656 #: ../src/guestfs-actions.pod:4951
12657 #, no-wrap
12658 msgid ""
12659 " int guestfs_swapon_device (guestfs_h *g,\n"
12660 "\t\tconst char *device);\n"
12661 "\n"
12662 msgstr ""
12663
12664 # type: textblock
12665 #: ../src/guestfs-actions.pod:4954
12666 msgid ""
12667 "This command enables the libguestfs appliance to use the swap device or "
12668 "partition named C<device>.  The increased memory is made available for all "
12669 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
12670 msgstr ""
12671
12672 # type: textblock
12673 #: ../src/guestfs-actions.pod:4959 ../fish/guestfish-actions.pod:3839
12674 msgid ""
12675 "Note that you should not swap to existing guest swap partitions unless you "
12676 "know what you are doing.  They may contain hibernation information, or other "
12677 "information that the guest doesn't want you to trash.  You also risk leaking "
12678 "information about the host to the guest this way.  Instead, attach a new "
12679 "host device to the guest and swap on that."
12680 msgstr ""
12681
12682 # type: =head2
12683 #: ../src/guestfs-actions.pod:4968
12684 msgid "guestfs_swapon_file"
12685 msgstr ""
12686
12687 # type: verbatim
12688 #: ../src/guestfs-actions.pod:4970
12689 #, no-wrap
12690 msgid ""
12691 " int guestfs_swapon_file (guestfs_h *g,\n"
12692 "\t\tconst char *file);\n"
12693 "\n"
12694 msgstr ""
12695
12696 # type: textblock
12697 #: ../src/guestfs-actions.pod:4973
12698 msgid ""
12699 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
12700 "notes."
12701 msgstr ""
12702
12703 # type: =head2
12704 #: ../src/guestfs-actions.pod:4978
12705 msgid "guestfs_swapon_label"
12706 msgstr ""
12707
12708 # type: verbatim
12709 #: ../src/guestfs-actions.pod:4980
12710 #, no-wrap
12711 msgid ""
12712 " int guestfs_swapon_label (guestfs_h *g,\n"
12713 "\t\tconst char *label);\n"
12714 "\n"
12715 msgstr ""
12716
12717 # type: textblock
12718 #: ../src/guestfs-actions.pod:4983
12719 msgid ""
12720 "This command enables swap to a labeled swap partition.  See "
12721 "C<guestfs_swapon_device> for other notes."
12722 msgstr ""
12723
12724 # type: =head2
12725 #: ../src/guestfs-actions.pod:4988
12726 msgid "guestfs_swapon_uuid"
12727 msgstr ""
12728
12729 # type: verbatim
12730 #: ../src/guestfs-actions.pod:4990
12731 #, no-wrap
12732 msgid ""
12733 " int guestfs_swapon_uuid (guestfs_h *g,\n"
12734 "\t\tconst char *uuid);\n"
12735 "\n"
12736 msgstr ""
12737
12738 # type: textblock
12739 #: ../src/guestfs-actions.pod:4993
12740 msgid ""
12741 "This command enables swap to a swap partition with the given UUID.  See "
12742 "C<guestfs_swapon_device> for other notes."
12743 msgstr ""
12744
12745 # type: =head2
12746 #: ../src/guestfs-actions.pod:4998
12747 msgid "guestfs_sync"
12748 msgstr ""
12749
12750 # type: verbatim
12751 #: ../src/guestfs-actions.pod:5000
12752 #, no-wrap
12753 msgid ""
12754 " int guestfs_sync (guestfs_h *g);\n"
12755 "\n"
12756 msgstr ""
12757
12758 # type: textblock
12759 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3871
12760 msgid ""
12761 "This syncs the disk, so that any writes are flushed through to the "
12762 "underlying disk image."
12763 msgstr ""
12764
12765 # type: textblock
12766 #: ../src/guestfs-actions.pod:5005 ../fish/guestfish-actions.pod:3874
12767 msgid ""
12768 "You should always call this if you have modified a disk image, before "
12769 "closing the handle."
12770 msgstr ""
12771
12772 # type: =head2
12773 #: ../src/guestfs-actions.pod:5010
12774 msgid "guestfs_tail"
12775 msgstr ""
12776
12777 # type: verbatim
12778 #: ../src/guestfs-actions.pod:5012
12779 #, no-wrap
12780 msgid ""
12781 " char **guestfs_tail (guestfs_h *g,\n"
12782 "\t\tconst char *path);\n"
12783 "\n"
12784 msgstr ""
12785
12786 # type: textblock
12787 #: ../src/guestfs-actions.pod:5015 ../fish/guestfish-actions.pod:3881
12788 msgid "This command returns up to the last 10 lines of a file as a list of strings."
12789 msgstr ""
12790
12791 # type: =head2
12792 #: ../src/guestfs-actions.pod:5025
12793 msgid "guestfs_tail_n"
12794 msgstr ""
12795
12796 # type: verbatim
12797 #: ../src/guestfs-actions.pod:5027
12798 #, no-wrap
12799 msgid ""
12800 " char **guestfs_tail_n (guestfs_h *g,\n"
12801 "\t\tint nrlines,\n"
12802 "\t\tconst char *path);\n"
12803 "\n"
12804 msgstr ""
12805
12806 # type: textblock
12807 #: ../src/guestfs-actions.pod:5031 ../fish/guestfish-actions.pod:3891
12808 msgid ""
12809 "If the parameter C<nrlines> is a positive number, this returns the last "
12810 "C<nrlines> lines of the file C<path>."
12811 msgstr ""
12812
12813 # type: textblock
12814 #: ../src/guestfs-actions.pod:5034 ../fish/guestfish-actions.pod:3894
12815 msgid ""
12816 "If the parameter C<nrlines> is a negative number, this returns lines from "
12817 "the file C<path>, starting with the C<-nrlines>th line."
12818 msgstr ""
12819
12820 # type: =head2
12821 #: ../src/guestfs-actions.pod:5046
12822 msgid "guestfs_tar_in"
12823 msgstr ""
12824
12825 # type: verbatim
12826 #: ../src/guestfs-actions.pod:5048
12827 #, no-wrap
12828 msgid ""
12829 " int guestfs_tar_in (guestfs_h *g,\n"
12830 "\t\tconst char *tarfile,\n"
12831 "\t\tconst char *directory);\n"
12832 "\n"
12833 msgstr ""
12834
12835 # type: textblock
12836 #: ../src/guestfs-actions.pod:5052 ../fish/guestfish-actions.pod:3906
12837 msgid ""
12838 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
12839 "tar file) into C<directory>."
12840 msgstr ""
12841
12842 # type: textblock
12843 #: ../src/guestfs-actions.pod:5055
12844 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
12845 msgstr ""
12846
12847 # type: =head2
12848 #: ../src/guestfs-actions.pod:5060
12849 msgid "guestfs_tar_out"
12850 msgstr ""
12851
12852 # type: verbatim
12853 #: ../src/guestfs-actions.pod:5062
12854 #, no-wrap
12855 msgid ""
12856 " int guestfs_tar_out (guestfs_h *g,\n"
12857 "\t\tconst char *directory,\n"
12858 "\t\tconst char *tarfile);\n"
12859 "\n"
12860 msgstr ""
12861
12862 # type: textblock
12863 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3918
12864 msgid ""
12865 "This command packs the contents of C<directory> and downloads it to local "
12866 "file C<tarfile>."
12867 msgstr ""
12868
12869 # type: textblock
12870 #: ../src/guestfs-actions.pod:5069
12871 msgid ""
12872 "To download a compressed tarball, use C<guestfs_tgz_out> or "
12873 "C<guestfs_txz_out>."
12874 msgstr ""
12875
12876 # type: =head2
12877 #: ../src/guestfs-actions.pod:5074
12878 msgid "guestfs_tgz_in"
12879 msgstr ""
12880
12881 # type: verbatim
12882 #: ../src/guestfs-actions.pod:5076
12883 #, no-wrap
12884 msgid ""
12885 " int guestfs_tgz_in (guestfs_h *g,\n"
12886 "\t\tconst char *tarball,\n"
12887 "\t\tconst char *directory);\n"
12888 "\n"
12889 msgstr ""
12890
12891 # type: textblock
12892 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3930
12893 msgid ""
12894 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
12895 "tar file) into C<directory>."
12896 msgstr ""
12897
12898 # type: textblock
12899 #: ../src/guestfs-actions.pod:5083
12900 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
12901 msgstr ""
12902
12903 # type: =head2
12904 #: ../src/guestfs-actions.pod:5087
12905 msgid "guestfs_tgz_out"
12906 msgstr ""
12907
12908 # type: verbatim
12909 #: ../src/guestfs-actions.pod:5089
12910 #, no-wrap
12911 msgid ""
12912 " int guestfs_tgz_out (guestfs_h *g,\n"
12913 "\t\tconst char *directory,\n"
12914 "\t\tconst char *tarball);\n"
12915 "\n"
12916 msgstr ""
12917
12918 # type: textblock
12919 #: ../src/guestfs-actions.pod:5093 ../fish/guestfish-actions.pod:3941
12920 msgid ""
12921 "This command packs the contents of C<directory> and downloads it to local "
12922 "file C<tarball>."
12923 msgstr ""
12924
12925 # type: textblock
12926 #: ../src/guestfs-actions.pod:5096
12927 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
12928 msgstr ""
12929
12930 # type: =head2
12931 #: ../src/guestfs-actions.pod:5100
12932 msgid "guestfs_touch"
12933 msgstr ""
12934
12935 # type: verbatim
12936 #: ../src/guestfs-actions.pod:5102
12937 #, no-wrap
12938 msgid ""
12939 " int guestfs_touch (guestfs_h *g,\n"
12940 "\t\tconst char *path);\n"
12941 "\n"
12942 msgstr ""
12943
12944 # type: textblock
12945 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3952
12946 msgid ""
12947 "Touch acts like the L<touch(1)> command.  It can be used to update the "
12948 "timestamps on a file, or, if the file does not exist, to create a new "
12949 "zero-length file."
12950 msgstr ""
12951
12952 # type: textblock
12953 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3956
12954 msgid ""
12955 "This command only works on regular files, and will fail on other file types "
12956 "such as directories, symbolic links, block special etc."
12957 msgstr ""
12958
12959 # type: =head2
12960 #: ../src/guestfs-actions.pod:5114
12961 msgid "guestfs_truncate"
12962 msgstr ""
12963
12964 # type: verbatim
12965 #: ../src/guestfs-actions.pod:5116
12966 #, no-wrap
12967 msgid ""
12968 " int guestfs_truncate (guestfs_h *g,\n"
12969 "\t\tconst char *path);\n"
12970 "\n"
12971 msgstr ""
12972
12973 # type: textblock
12974 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3963
12975 msgid ""
12976 "This command truncates C<path> to a zero-length file.  The file must exist "
12977 "already."
12978 msgstr ""
12979
12980 # type: =head2
12981 #: ../src/guestfs-actions.pod:5124
12982 msgid "guestfs_truncate_size"
12983 msgstr ""
12984
12985 # type: verbatim
12986 #: ../src/guestfs-actions.pod:5126
12987 #, no-wrap
12988 msgid ""
12989 " int guestfs_truncate_size (guestfs_h *g,\n"
12990 "\t\tconst char *path,\n"
12991 "\t\tint64_t size);\n"
12992 "\n"
12993 msgstr ""
12994
12995 # type: textblock
12996 #: ../src/guestfs-actions.pod:5130 ../fish/guestfish-actions.pod:3970
12997 msgid ""
12998 "This command truncates C<path> to size C<size> bytes.  The file must exist "
12999 "already."
13000 msgstr ""
13001
13002 # type: textblock
13003 #: ../src/guestfs-actions.pod:5133
13004 msgid ""
13005 "If the current file size is less than C<size> then the file is extended to "
13006 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13007 "blocks are not allocated for the file until you write to it).  To create a "
13008 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13009 msgstr ""
13010
13011 # type: =head2
13012 #: ../src/guestfs-actions.pod:5141
13013 msgid "guestfs_tune2fs_l"
13014 msgstr ""
13015
13016 # type: verbatim
13017 #: ../src/guestfs-actions.pod:5143
13018 #, no-wrap
13019 msgid ""
13020 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
13021 "\t\tconst char *device);\n"
13022 "\n"
13023 msgstr ""
13024
13025 # type: textblock
13026 #: ../src/guestfs-actions.pod:5146 ../fish/guestfish-actions.pod:3983
13027 msgid ""
13028 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13029 "C<device>."
13030 msgstr ""
13031
13032 # type: textblock
13033 #: ../src/guestfs-actions.pod:5149 ../fish/guestfish-actions.pod:3986
13034 msgid ""
13035 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13036 "for more details.  The list of fields returned isn't clearly defined, and "
13037 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13038 "and the filesystem itself."
13039 msgstr ""
13040
13041 # type: =head2
13042 #: ../src/guestfs-actions.pod:5160
13043 msgid "guestfs_txz_in"
13044 msgstr ""
13045
13046 # type: verbatim
13047 #: ../src/guestfs-actions.pod:5162
13048 #, no-wrap
13049 msgid ""
13050 " int guestfs_txz_in (guestfs_h *g,\n"
13051 "\t\tconst char *tarball,\n"
13052 "\t\tconst char *directory);\n"
13053 "\n"
13054 msgstr ""
13055
13056 # type: textblock
13057 #: ../src/guestfs-actions.pod:5166 ../fish/guestfish-actions.pod:3995
13058 msgid ""
13059 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13060 "tar file) into C<directory>."
13061 msgstr ""
13062
13063 # type: =head2
13064 #: ../src/guestfs-actions.pod:5171
13065 msgid "guestfs_txz_out"
13066 msgstr ""
13067
13068 # type: verbatim
13069 #: ../src/guestfs-actions.pod:5173
13070 #, no-wrap
13071 msgid ""
13072 " int guestfs_txz_out (guestfs_h *g,\n"
13073 "\t\tconst char *directory,\n"
13074 "\t\tconst char *tarball);\n"
13075 "\n"
13076 msgstr ""
13077
13078 # type: textblock
13079 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:4004
13080 msgid ""
13081 "This command packs the contents of C<directory> and downloads it to local "
13082 "file C<tarball> (as an xz compressed tar archive)."
13083 msgstr ""
13084
13085 # type: =head2
13086 #: ../src/guestfs-actions.pod:5182
13087 msgid "guestfs_umask"
13088 msgstr ""
13089
13090 # type: verbatim
13091 #: ../src/guestfs-actions.pod:5184
13092 #, no-wrap
13093 msgid ""
13094 " int guestfs_umask (guestfs_h *g,\n"
13095 "\t\tint mask);\n"
13096 "\n"
13097 msgstr ""
13098
13099 # type: textblock
13100 #: ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:4013
13101 msgid ""
13102 "This function sets the mask used for creating new files and device nodes to "
13103 "C<mask & 0777>."
13104 msgstr ""
13105
13106 # type: textblock
13107 #: ../src/guestfs-actions.pod:5190 ../fish/guestfish-actions.pod:4016
13108 msgid ""
13109 "Typical umask values would be C<022> which creates new files with "
13110 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13111 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13112 msgstr ""
13113
13114 # type: textblock
13115 #: ../src/guestfs-actions.pod:5195 ../fish/guestfish-actions.pod:4021
13116 msgid ""
13117 "The default umask is C<022>.  This is important because it means that "
13118 "directories and device nodes will be created with C<0644> or C<0755> mode "
13119 "even if you specify C<0777>."
13120 msgstr ""
13121
13122 # type: textblock
13123 #: ../src/guestfs-actions.pod:5199
13124 msgid ""
13125 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13126 "C<guestfs_mkdir>."
13127 msgstr ""
13128
13129 # type: textblock
13130 #: ../src/guestfs-actions.pod:5202 ../fish/guestfish-actions.pod:4028
13131 msgid "This call returns the previous umask."
13132 msgstr ""
13133
13134 # type: =head2
13135 #: ../src/guestfs-actions.pod:5206
13136 msgid "guestfs_umount"
13137 msgstr ""
13138
13139 # type: verbatim
13140 #: ../src/guestfs-actions.pod:5208
13141 #, no-wrap
13142 msgid ""
13143 " int guestfs_umount (guestfs_h *g,\n"
13144 "\t\tconst char *pathordevice);\n"
13145 "\n"
13146 msgstr ""
13147
13148 # type: textblock
13149 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:4036
13150 msgid ""
13151 "This unmounts the given filesystem.  The filesystem may be specified either "
13152 "by its mountpoint (path) or the device which contains the filesystem."
13153 msgstr ""
13154
13155 # type: =head2
13156 #: ../src/guestfs-actions.pod:5217
13157 msgid "guestfs_umount_all"
13158 msgstr ""
13159
13160 # type: verbatim
13161 #: ../src/guestfs-actions.pod:5219
13162 #, no-wrap
13163 msgid ""
13164 " int guestfs_umount_all (guestfs_h *g);\n"
13165 "\n"
13166 msgstr ""
13167
13168 # type: textblock
13169 #: ../src/guestfs-actions.pod:5221 ../fish/guestfish-actions.pod:4046
13170 msgid "This unmounts all mounted filesystems."
13171 msgstr ""
13172
13173 # type: textblock
13174 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:4048
13175 msgid "Some internal mounts are not unmounted by this call."
13176 msgstr ""
13177
13178 # type: =head2
13179 #: ../src/guestfs-actions.pod:5227
13180 msgid "guestfs_upload"
13181 msgstr ""
13182
13183 # type: verbatim
13184 #: ../src/guestfs-actions.pod:5229
13185 #, no-wrap
13186 msgid ""
13187 " int guestfs_upload (guestfs_h *g,\n"
13188 "\t\tconst char *filename,\n"
13189 "\t\tconst char *remotefilename);\n"
13190 "\n"
13191 msgstr ""
13192
13193 # type: textblock
13194 #: ../src/guestfs-actions.pod:5233 ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:4054 ../fish/guestfish-actions.pod:4067
13195 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13196 msgstr ""
13197
13198 # type: textblock
13199 #: ../src/guestfs-actions.pod:5238
13200 msgid "See also C<guestfs_download>."
13201 msgstr ""
13202
13203 # type: =head2
13204 #: ../src/guestfs-actions.pod:5242
13205 msgid "guestfs_upload_offset"
13206 msgstr ""
13207
13208 # type: verbatim
13209 #: ../src/guestfs-actions.pod:5244
13210 #, no-wrap
13211 msgid ""
13212 " int guestfs_upload_offset (guestfs_h *g,\n"
13213 "\t\tconst char *filename,\n"
13214 "\t\tconst char *remotefilename,\n"
13215 "\t\tint64_t offset);\n"
13216 "\n"
13217 msgstr ""
13218
13219 # type: textblock
13220 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:4070
13221 msgid ""
13222 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
13223 "The intention is to overwrite parts of existing files or devices, although "
13224 "if a non-existant file is specified then it is created with a \"hole\" "
13225 "before C<offset>.  The size of the data written is implicit in the size of "
13226 "the source C<filename>."
13227 msgstr ""
13228
13229 # type: textblock
13230 #: ../src/guestfs-actions.pod:5259
13231 msgid ""
13232 "Note that there is no limit on the amount of data that can be uploaded with "
13233 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
13234 "full amount unless an error occurs."
13235 msgstr ""
13236
13237 # type: textblock
13238 #: ../src/guestfs-actions.pod:5264
13239 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
13240 msgstr ""
13241
13242 # type: =head2
13243 #: ../src/guestfs-actions.pod:5268
13244 msgid "guestfs_utimens"
13245 msgstr ""
13246
13247 # type: verbatim
13248 #: ../src/guestfs-actions.pod:5270
13249 #, no-wrap
13250 msgid ""
13251 " int guestfs_utimens (guestfs_h *g,\n"
13252 "\t\tconst char *path,\n"
13253 "\t\tint64_t atsecs,\n"
13254 "\t\tint64_t atnsecs,\n"
13255 "\t\tint64_t mtsecs,\n"
13256 "\t\tint64_t mtnsecs);\n"
13257 "\n"
13258 msgstr ""
13259
13260 # type: textblock
13261 #: ../src/guestfs-actions.pod:5277 ../fish/guestfish-actions.pod:4090
13262 msgid "This command sets the timestamps of a file with nanosecond precision."
13263 msgstr ""
13264
13265 # type: textblock
13266 #: ../src/guestfs-actions.pod:5280 ../fish/guestfish-actions.pod:4093
13267 msgid ""
13268 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
13269 "from the epoch."
13270 msgstr ""
13271
13272 # type: textblock
13273 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:4096
13274 msgid ""
13275 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
13276 "nanoseconds from the epoch."
13277 msgstr ""
13278
13279 # type: textblock
13280 #: ../src/guestfs-actions.pod:5286 ../fish/guestfish-actions.pod:4099
13281 msgid ""
13282 "If the C<*nsecs> field contains the special value C<-1> then the "
13283 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
13284 "ignored in this case)."
13285 msgstr ""
13286
13287 # type: textblock
13288 #: ../src/guestfs-actions.pod:5290 ../fish/guestfish-actions.pod:4103
13289 msgid ""
13290 "If the C<*nsecs> field contains the special value C<-2> then the "
13291 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
13292 "in this case)."
13293 msgstr ""
13294
13295 # type: =head2
13296 #: ../src/guestfs-actions.pod:5296 ../src/guestfs-structs.pod:175
13297 msgid "guestfs_version"
13298 msgstr ""
13299
13300 # type: verbatim
13301 #: ../src/guestfs-actions.pod:5298
13302 #, no-wrap
13303 msgid ""
13304 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
13305 "\n"
13306 msgstr ""
13307
13308 # type: textblock
13309 #: ../src/guestfs-actions.pod:5300 ../fish/guestfish-actions.pod:4111
13310 msgid "Return the libguestfs version number that the program is linked against."
13311 msgstr ""
13312
13313 # type: textblock
13314 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:4114
13315 msgid ""
13316 "Note that because of dynamic linking this is not necessarily the version of "
13317 "libguestfs that you compiled against.  You can compile the program, and then "
13318 "at runtime dynamically link against a completely different C<libguestfs.so> "
13319 "library."
13320 msgstr ""
13321
13322 # type: textblock
13323 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:4119
13324 msgid ""
13325 "This call was added in version C<1.0.58>.  In previous versions of "
13326 "libguestfs there was no way to get the version number.  From C code you can "
13327 "use dynamic linker functions to find out if this symbol exists (if it "
13328 "doesn't, then it's an earlier version)."
13329 msgstr ""
13330
13331 # type: textblock
13332 #: ../src/guestfs-actions.pod:5314 ../fish/guestfish-actions.pod:4125
13333 msgid ""
13334 "The call returns a structure with four elements.  The first three (C<major>, "
13335 "C<minor> and C<release>) are numbers and correspond to the usual version "
13336 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
13337 "but may be used for distro-specific information."
13338 msgstr ""
13339
13340 # type: textblock
13341 #: ../src/guestfs-actions.pod:5320 ../fish/guestfish-actions.pod:4131
13342 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
13343 msgstr ""
13344
13345 # type: textblock
13346 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:4134
13347 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
13348 msgstr ""
13349
13350 # type: textblock
13351 #: ../src/guestfs-actions.pod:5325
13352 msgid ""
13353 "I<Note:> Don't use this call to test for availability of features.  In "
13354 "enterprise distributions we backport features from later versions into "
13355 "earlier versions, making this an unreliable way to test for features.  Use "
13356 "C<guestfs_available> instead."
13357 msgstr ""
13358
13359 # type: textblock
13360 #: ../src/guestfs-actions.pod:5331
13361 msgid ""
13362 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
13363 "error.  I<The caller must call C<guestfs_free_version> after use>."
13364 msgstr ""
13365
13366 # type: =head2
13367 #: ../src/guestfs-actions.pod:5335
13368 msgid "guestfs_vfs_label"
13369 msgstr ""
13370
13371 # type: verbatim
13372 #: ../src/guestfs-actions.pod:5337
13373 #, no-wrap
13374 msgid ""
13375 " char *guestfs_vfs_label (guestfs_h *g,\n"
13376 "\t\tconst char *device);\n"
13377 "\n"
13378 msgstr ""
13379
13380 # type: textblock
13381 #: ../src/guestfs-actions.pod:5340 ../fish/guestfish-actions.pod:4146
13382 msgid "This returns the filesystem label of the filesystem on C<device>."
13383 msgstr ""
13384
13385 # type: textblock
13386 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:4149
13387 msgid "If the filesystem is unlabeled, this returns the empty string."
13388 msgstr ""
13389
13390 # type: textblock
13391 #: ../src/guestfs-actions.pod:5345
13392 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
13393 msgstr ""
13394
13395 # type: =head2
13396 #: ../src/guestfs-actions.pod:5350
13397 msgid "guestfs_vfs_type"
13398 msgstr ""
13399
13400 # type: verbatim
13401 #: ../src/guestfs-actions.pod:5352
13402 #, no-wrap
13403 msgid ""
13404 " char *guestfs_vfs_type (guestfs_h *g,\n"
13405 "\t\tconst char *device);\n"
13406 "\n"
13407 msgstr ""
13408
13409 # type: textblock
13410 #: ../src/guestfs-actions.pod:5355 ../fish/guestfish-actions.pod:4157
13411 msgid ""
13412 "This command gets the filesystem type corresponding to the filesystem on "
13413 "C<device>."
13414 msgstr ""
13415
13416 # type: textblock
13417 #: ../src/guestfs-actions.pod:5358 ../fish/guestfish-actions.pod:4160
13418 msgid ""
13419 "For most filesystems, the result is the name of the Linux VFS module which "
13420 "would be used to mount this filesystem if you mounted it without specifying "
13421 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13422 msgstr ""
13423
13424 # type: =head2
13425 #: ../src/guestfs-actions.pod:5366
13426 msgid "guestfs_vfs_uuid"
13427 msgstr ""
13428
13429 # type: verbatim
13430 #: ../src/guestfs-actions.pod:5368
13431 #, no-wrap
13432 msgid ""
13433 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
13434 "\t\tconst char *device);\n"
13435 "\n"
13436 msgstr ""
13437
13438 # type: textblock
13439 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:4169
13440 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13441 msgstr ""
13442
13443 # type: textblock
13444 #: ../src/guestfs-actions.pod:5374 ../fish/guestfish-actions.pod:4172
13445 msgid "If the filesystem does not have a UUID, this returns the empty string."
13446 msgstr ""
13447
13448 # type: textblock
13449 #: ../src/guestfs-actions.pod:5376
13450 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13451 msgstr ""
13452
13453 # type: =head2
13454 #: ../src/guestfs-actions.pod:5381
13455 msgid "guestfs_vg_activate"
13456 msgstr ""
13457
13458 # type: verbatim
13459 #: ../src/guestfs-actions.pod:5383
13460 #, no-wrap
13461 msgid ""
13462 " int guestfs_vg_activate (guestfs_h *g,\n"
13463 "\t\tint activate,\n"
13464 "\t\tchar *const *volgroups);\n"
13465 "\n"
13466 msgstr ""
13467
13468 # type: textblock
13469 #: ../src/guestfs-actions.pod:5387 ../fish/guestfish-actions.pod:4180
13470 msgid ""
13471 "This command activates or (if C<activate> is false) deactivates all logical "
13472 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13473 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13474 "deactivated, then those devices disappear."
13475 msgstr ""
13476
13477 # type: textblock
13478 #: ../src/guestfs-actions.pod:5393 ../fish/guestfish-actions.pod:4186
13479 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13480 msgstr ""
13481
13482 # type: textblock
13483 #: ../src/guestfs-actions.pod:5395 ../fish/guestfish-actions.pod:4188
13484 msgid ""
13485 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13486 "activated or deactivated."
13487 msgstr ""
13488
13489 # type: =head2
13490 #: ../src/guestfs-actions.pod:5400
13491 msgid "guestfs_vg_activate_all"
13492 msgstr ""
13493
13494 # type: verbatim
13495 #: ../src/guestfs-actions.pod:5402
13496 #, no-wrap
13497 msgid ""
13498 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13499 "\t\tint activate);\n"
13500 "\n"
13501 msgstr ""
13502
13503 # type: textblock
13504 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:4195
13505 msgid ""
13506 "This command activates or (if C<activate> is false) deactivates all logical "
13507 "volumes in all volume groups.  If activated, then they are made known to the "
13508 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13509 "those devices disappear."
13510 msgstr ""
13511
13512 # type: textblock
13513 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:4201
13514 msgid "This command is the same as running C<vgchange -a y|n>"
13515 msgstr ""
13516
13517 # type: =head2
13518 #: ../src/guestfs-actions.pod:5415
13519 msgid "guestfs_vgcreate"
13520 msgstr ""
13521
13522 # type: verbatim
13523 #: ../src/guestfs-actions.pod:5417
13524 #, no-wrap
13525 msgid ""
13526 " int guestfs_vgcreate (guestfs_h *g,\n"
13527 "\t\tconst char *volgroup,\n"
13528 "\t\tchar *const *physvols);\n"
13529 "\n"
13530 msgstr ""
13531
13532 # type: textblock
13533 #: ../src/guestfs-actions.pod:5421 ../fish/guestfish-actions.pod:4207
13534 msgid ""
13535 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13536 "of physical volumes C<physvols>."
13537 msgstr ""
13538
13539 # type: =head2
13540 #: ../src/guestfs-actions.pod:5426
13541 msgid "guestfs_vglvuuids"
13542 msgstr ""
13543
13544 # type: verbatim
13545 #: ../src/guestfs-actions.pod:5428
13546 #, no-wrap
13547 msgid ""
13548 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13549 "\t\tconst char *vgname);\n"
13550 "\n"
13551 msgstr ""
13552
13553 # type: textblock
13554 #: ../src/guestfs-actions.pod:5431 ../fish/guestfish-actions.pod:4214
13555 msgid ""
13556 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13557 "volumes created in this volume group."
13558 msgstr ""
13559
13560 # type: textblock
13561 #: ../src/guestfs-actions.pod:5434
13562 msgid ""
13563 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13564 "associate logical volumes and volume groups."
13565 msgstr ""
13566
13567 # type: textblock
13568 #: ../src/guestfs-actions.pod:5437
13569 msgid "See also C<guestfs_vgpvuuids>."
13570 msgstr ""
13571
13572 # type: =head2
13573 #: ../src/guestfs-actions.pod:5443
13574 msgid "guestfs_vgpvuuids"
13575 msgstr ""
13576
13577 # type: verbatim
13578 #: ../src/guestfs-actions.pod:5445
13579 #, no-wrap
13580 msgid ""
13581 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
13582 "\t\tconst char *vgname);\n"
13583 "\n"
13584 msgstr ""
13585
13586 # type: textblock
13587 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:4226
13588 msgid ""
13589 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13590 "volumes that this volume group resides on."
13591 msgstr ""
13592
13593 # type: textblock
13594 #: ../src/guestfs-actions.pod:5451
13595 msgid ""
13596 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
13597 "associate physical volumes and volume groups."
13598 msgstr ""
13599
13600 # type: textblock
13601 #: ../src/guestfs-actions.pod:5454
13602 msgid "See also C<guestfs_vglvuuids>."
13603 msgstr ""
13604
13605 # type: =head2
13606 #: ../src/guestfs-actions.pod:5460
13607 msgid "guestfs_vgremove"
13608 msgstr ""
13609
13610 # type: verbatim
13611 #: ../src/guestfs-actions.pod:5462
13612 #, no-wrap
13613 msgid ""
13614 " int guestfs_vgremove (guestfs_h *g,\n"
13615 "\t\tconst char *vgname);\n"
13616 "\n"
13617 msgstr ""
13618
13619 # type: textblock
13620 #: ../src/guestfs-actions.pod:5465 ../fish/guestfish-actions.pod:4238
13621 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
13622 msgstr ""
13623
13624 # type: textblock
13625 #: ../src/guestfs-actions.pod:5467 ../fish/guestfish-actions.pod:4240
13626 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
13627 msgstr ""
13628
13629 # type: =head2
13630 #: ../src/guestfs-actions.pod:5472
13631 msgid "guestfs_vgrename"
13632 msgstr ""
13633
13634 # type: verbatim
13635 #: ../src/guestfs-actions.pod:5474
13636 #, no-wrap
13637 msgid ""
13638 " int guestfs_vgrename (guestfs_h *g,\n"
13639 "\t\tconst char *volgroup,\n"
13640 "\t\tconst char *newvolgroup);\n"
13641 "\n"
13642 msgstr ""
13643
13644 # type: textblock
13645 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:4247
13646 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
13647 msgstr ""
13648
13649 # type: =head2
13650 #: ../src/guestfs-actions.pod:5482
13651 msgid "guestfs_vgs"
13652 msgstr ""
13653
13654 # type: verbatim
13655 #: ../src/guestfs-actions.pod:5484
13656 #, no-wrap
13657 msgid ""
13658 " char **guestfs_vgs (guestfs_h *g);\n"
13659 "\n"
13660 msgstr ""
13661
13662 # type: textblock
13663 #: ../src/guestfs-actions.pod:5486 ../fish/guestfish-actions.pod:4253
13664 msgid ""
13665 "List all the volumes groups detected.  This is the equivalent of the "
13666 "L<vgs(8)> command."
13667 msgstr ""
13668
13669 # type: textblock
13670 #: ../src/guestfs-actions.pod:5489 ../fish/guestfish-actions.pod:4256
13671 msgid ""
13672 "This returns a list of just the volume group names that were detected "
13673 "(eg. C<VolGroup00>)."
13674 msgstr ""
13675
13676 # type: textblock
13677 #: ../src/guestfs-actions.pod:5492
13678 msgid "See also C<guestfs_vgs_full>."
13679 msgstr ""
13680
13681 # type: =head2
13682 #: ../src/guestfs-actions.pod:5498
13683 msgid "guestfs_vgs_full"
13684 msgstr ""
13685
13686 # type: verbatim
13687 #: ../src/guestfs-actions.pod:5500
13688 #, no-wrap
13689 msgid ""
13690 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
13691 "\n"
13692 msgstr ""
13693
13694 # type: textblock
13695 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:4265
13696 msgid ""
13697 "List all the volumes groups detected.  This is the equivalent of the "
13698 "L<vgs(8)> command.  The \"full\" version includes all fields."
13699 msgstr ""
13700
13701 # type: textblock
13702 #: ../src/guestfs-actions.pod:5505
13703 msgid ""
13704 "This function returns a C<struct guestfs_lvm_vg_list *> (see "
13705 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
13706 "must call C<guestfs_free_lvm_vg_list> after use>."
13707 msgstr ""
13708
13709 # type: =head2
13710 #: ../src/guestfs-actions.pod:5510
13711 msgid "guestfs_vgscan"
13712 msgstr ""
13713
13714 # type: verbatim
13715 #: ../src/guestfs-actions.pod:5512
13716 #, no-wrap
13717 msgid ""
13718 " int guestfs_vgscan (guestfs_h *g);\n"
13719 "\n"
13720 msgstr ""
13721
13722 # type: textblock
13723 #: ../src/guestfs-actions.pod:5514 ../fish/guestfish-actions.pod:4272
13724 msgid ""
13725 "This rescans all block devices and rebuilds the list of LVM physical "
13726 "volumes, volume groups and logical volumes."
13727 msgstr ""
13728
13729 # type: =head2
13730 #: ../src/guestfs-actions.pod:5519
13731 msgid "guestfs_vguuid"
13732 msgstr ""
13733
13734 # type: verbatim
13735 #: ../src/guestfs-actions.pod:5521
13736 #, no-wrap
13737 msgid ""
13738 " char *guestfs_vguuid (guestfs_h *g,\n"
13739 "\t\tconst char *vgname);\n"
13740 "\n"
13741 msgstr ""
13742
13743 # type: textblock
13744 #: ../src/guestfs-actions.pod:5524 ../fish/guestfish-actions.pod:4279
13745 msgid "This command returns the UUID of the LVM VG named C<vgname>."
13746 msgstr ""
13747
13748 # type: =head2
13749 #: ../src/guestfs-actions.pod:5529
13750 msgid "guestfs_wait_ready"
13751 msgstr ""
13752
13753 # type: verbatim
13754 #: ../src/guestfs-actions.pod:5531
13755 #, no-wrap
13756 msgid ""
13757 " int guestfs_wait_ready (guestfs_h *g);\n"
13758 "\n"
13759 msgstr ""
13760
13761 # type: textblock
13762 #: ../src/guestfs-actions.pod:5533
13763 msgid "This function is a no op."
13764 msgstr ""
13765
13766 # type: textblock
13767 #: ../src/guestfs-actions.pod:5535
13768 msgid ""
13769 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
13770 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
13771 "is no longer necessary because C<guestfs_launch> now does the waiting."
13772 msgstr ""
13773
13774 # type: textblock
13775 #: ../src/guestfs-actions.pod:5540
13776 msgid ""
13777 "If you see any calls to this function in code then you can just remove them, "
13778 "unless you want to retain compatibility with older versions of the API."
13779 msgstr ""
13780
13781 # type: =head2
13782 #: ../src/guestfs-actions.pod:5546
13783 msgid "guestfs_wc_c"
13784 msgstr ""
13785
13786 # type: verbatim
13787 #: ../src/guestfs-actions.pod:5548
13788 #, no-wrap
13789 msgid ""
13790 " int guestfs_wc_c (guestfs_h *g,\n"
13791 "\t\tconst char *path);\n"
13792 "\n"
13793 msgstr ""
13794
13795 # type: textblock
13796 #: ../src/guestfs-actions.pod:5551 ../fish/guestfish-actions.pod:4285
13797 msgid ""
13798 "This command counts the characters in a file, using the C<wc -c> external "
13799 "command."
13800 msgstr ""
13801
13802 # type: =head2
13803 #: ../src/guestfs-actions.pod:5556
13804 msgid "guestfs_wc_l"
13805 msgstr ""
13806
13807 # type: verbatim
13808 #: ../src/guestfs-actions.pod:5558
13809 #, no-wrap
13810 msgid ""
13811 " int guestfs_wc_l (guestfs_h *g,\n"
13812 "\t\tconst char *path);\n"
13813 "\n"
13814 msgstr ""
13815
13816 # type: textblock
13817 #: ../src/guestfs-actions.pod:5561 ../fish/guestfish-actions.pod:4292
13818 msgid ""
13819 "This command counts the lines in a file, using the C<wc -l> external "
13820 "command."
13821 msgstr ""
13822
13823 # type: =head2
13824 #: ../src/guestfs-actions.pod:5566
13825 msgid "guestfs_wc_w"
13826 msgstr ""
13827
13828 # type: verbatim
13829 #: ../src/guestfs-actions.pod:5568
13830 #, no-wrap
13831 msgid ""
13832 " int guestfs_wc_w (guestfs_h *g,\n"
13833 "\t\tconst char *path);\n"
13834 "\n"
13835 msgstr ""
13836
13837 # type: textblock
13838 #: ../src/guestfs-actions.pod:5571 ../fish/guestfish-actions.pod:4299
13839 msgid ""
13840 "This command counts the words in a file, using the C<wc -w> external "
13841 "command."
13842 msgstr ""
13843
13844 # type: =head2
13845 #: ../src/guestfs-actions.pod:5576
13846 msgid "guestfs_write"
13847 msgstr ""
13848
13849 # type: verbatim
13850 #: ../src/guestfs-actions.pod:5578
13851 #, no-wrap
13852 msgid ""
13853 " int guestfs_write (guestfs_h *g,\n"
13854 "\t\tconst char *path,\n"
13855 "\t\tconst char *content,\n"
13856 "\t\tsize_t content_size);\n"
13857 "\n"
13858 msgstr ""
13859
13860 # type: textblock
13861 #: ../src/guestfs-actions.pod:5583 ../fish/guestfish-actions.pod:4306
13862 msgid ""
13863 "This call creates a file called C<path>.  The content of the file is the "
13864 "string C<content> (which can contain any 8 bit data)."
13865 msgstr ""
13866
13867 # type: =head2
13868 #: ../src/guestfs-actions.pod:5591
13869 msgid "guestfs_write_file"
13870 msgstr ""
13871
13872 # type: verbatim
13873 #: ../src/guestfs-actions.pod:5593
13874 #, no-wrap
13875 msgid ""
13876 " int guestfs_write_file (guestfs_h *g,\n"
13877 "\t\tconst char *path,\n"
13878 "\t\tconst char *content,\n"
13879 "\t\tint size);\n"
13880 "\n"
13881 msgstr ""
13882
13883 # type: textblock
13884 #: ../src/guestfs-actions.pod:5598 ../fish/guestfish-actions.pod:4316
13885 msgid ""
13886 "This call creates a file called C<path>.  The contents of the file is the "
13887 "string C<content> (which can contain any 8 bit data), with length C<size>."
13888 msgstr ""
13889
13890 # type: textblock
13891 #: ../src/guestfs-actions.pod:5602 ../fish/guestfish-actions.pod:4320
13892 msgid ""
13893 "As a special case, if C<size> is C<0> then the length is calculated using "
13894 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
13895 msgstr ""
13896
13897 # type: textblock
13898 #: ../src/guestfs-actions.pod:5606 ../fish/guestfish-actions.pod:4324
13899 msgid ""
13900 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
13901 "I<not> work, even if the length is specified."
13902 msgstr ""
13903
13904 # type: textblock
13905 #: ../src/guestfs-actions.pod:5614 ../fish/guestfish-actions.pod:4330
13906 msgid "This function is deprecated.  In new code, use the C<write> call instead."
13907 msgstr ""
13908
13909 # type: =head2
13910 #: ../src/guestfs-actions.pod:5621
13911 msgid "guestfs_zegrep"
13912 msgstr ""
13913
13914 # type: verbatim
13915 #: ../src/guestfs-actions.pod:5623
13916 #, no-wrap
13917 msgid ""
13918 " char **guestfs_zegrep (guestfs_h *g,\n"
13919 "\t\tconst char *regex,\n"
13920 "\t\tconst char *path);\n"
13921 "\n"
13922 msgstr ""
13923
13924 # type: textblock
13925 #: ../src/guestfs-actions.pod:5627 ../fish/guestfish-actions.pod:4341
13926 msgid "This calls the external C<zegrep> program and returns the matching lines."
13927 msgstr ""
13928
13929 # type: =head2
13930 #: ../src/guestfs-actions.pod:5637
13931 msgid "guestfs_zegrepi"
13932 msgstr ""
13933
13934 # type: verbatim
13935 #: ../src/guestfs-actions.pod:5639
13936 #, no-wrap
13937 msgid ""
13938 " char **guestfs_zegrepi (guestfs_h *g,\n"
13939 "\t\tconst char *regex,\n"
13940 "\t\tconst char *path);\n"
13941 "\n"
13942 msgstr ""
13943
13944 # type: textblock
13945 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:4351
13946 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
13947 msgstr ""
13948
13949 # type: =head2
13950 #: ../src/guestfs-actions.pod:5653
13951 msgid "guestfs_zero"
13952 msgstr ""
13953
13954 # type: verbatim
13955 #: ../src/guestfs-actions.pod:5655
13956 #, no-wrap
13957 msgid ""
13958 " int guestfs_zero (guestfs_h *g,\n"
13959 "\t\tconst char *device);\n"
13960 "\n"
13961 msgstr ""
13962
13963 # type: textblock
13964 #: ../src/guestfs-actions.pod:5658 ../fish/guestfish-actions.pod:4361
13965 msgid "This command writes zeroes over the first few blocks of C<device>."
13966 msgstr ""
13967
13968 # type: textblock
13969 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:4363
13970 msgid ""
13971 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
13972 "securely wipe the device).  It should be sufficient to remove any partition "
13973 "tables, filesystem superblocks and so on."
13974 msgstr ""
13975
13976 # type: textblock
13977 #: ../src/guestfs-actions.pod:5664
13978 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
13979 msgstr ""
13980
13981 # type: =head2
13982 #: ../src/guestfs-actions.pod:5673
13983 msgid "guestfs_zero_device"
13984 msgstr ""
13985
13986 # type: verbatim
13987 #: ../src/guestfs-actions.pod:5675
13988 #, no-wrap
13989 msgid ""
13990 " int guestfs_zero_device (guestfs_h *g,\n"
13991 "\t\tconst char *device);\n"
13992 "\n"
13993 msgstr ""
13994
13995 # type: textblock
13996 #: ../src/guestfs-actions.pod:5678
13997 msgid ""
13998 "This command writes zeroes over the entire C<device>.  Compare with "
13999 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14000 msgstr ""
14001
14002 # type: =head2
14003 #: ../src/guestfs-actions.pod:5692
14004 msgid "guestfs_zerofree"
14005 msgstr ""
14006
14007 # type: verbatim
14008 #: ../src/guestfs-actions.pod:5694
14009 #, no-wrap
14010 msgid ""
14011 " int guestfs_zerofree (guestfs_h *g,\n"
14012 "\t\tconst char *device);\n"
14013 "\n"
14014 msgstr ""
14015
14016 # type: textblock
14017 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:4384
14018 msgid ""
14019 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14020 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14021 "possible to compress the filesystem more effectively."
14022 msgstr ""
14023
14024 # type: textblock
14025 #: ../src/guestfs-actions.pod:5702 ../fish/guestfish-actions.pod:4389
14026 msgid "You should B<not> run this program if the filesystem is mounted."
14027 msgstr ""
14028
14029 # type: textblock
14030 #: ../src/guestfs-actions.pod:5705 ../fish/guestfish-actions.pod:4392
14031 msgid ""
14032 "It is possible that using this program can damage the filesystem or data on "
14033 "the filesystem."
14034 msgstr ""
14035
14036 # type: =head2
14037 #: ../src/guestfs-actions.pod:5710
14038 msgid "guestfs_zfgrep"
14039 msgstr ""
14040
14041 # type: verbatim
14042 #: ../src/guestfs-actions.pod:5712
14043 #, no-wrap
14044 msgid ""
14045 " char **guestfs_zfgrep (guestfs_h *g,\n"
14046 "\t\tconst char *pattern,\n"
14047 "\t\tconst char *path);\n"
14048 "\n"
14049 msgstr ""
14050
14051 # type: textblock
14052 #: ../src/guestfs-actions.pod:5716 ../fish/guestfish-actions.pod:4399
14053 msgid "This calls the external C<zfgrep> program and returns the matching lines."
14054 msgstr ""
14055
14056 # type: =head2
14057 #: ../src/guestfs-actions.pod:5726
14058 msgid "guestfs_zfgrepi"
14059 msgstr ""
14060
14061 # type: verbatim
14062 #: ../src/guestfs-actions.pod:5728
14063 #, no-wrap
14064 msgid ""
14065 " char **guestfs_zfgrepi (guestfs_h *g,\n"
14066 "\t\tconst char *pattern,\n"
14067 "\t\tconst char *path);\n"
14068 "\n"
14069 msgstr ""
14070
14071 # type: textblock
14072 #: ../src/guestfs-actions.pod:5732 ../fish/guestfish-actions.pod:4409
14073 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
14074 msgstr ""
14075
14076 # type: =head2
14077 #: ../src/guestfs-actions.pod:5742
14078 msgid "guestfs_zfile"
14079 msgstr ""
14080
14081 # type: verbatim
14082 #: ../src/guestfs-actions.pod:5744
14083 #, no-wrap
14084 msgid ""
14085 " char *guestfs_zfile (guestfs_h *g,\n"
14086 "\t\tconst char *meth,\n"
14087 "\t\tconst char *path);\n"
14088 "\n"
14089 msgstr ""
14090
14091 # type: textblock
14092 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:4419
14093 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
14094 msgstr ""
14095
14096 # type: textblock
14097 #: ../src/guestfs-actions.pod:5751 ../fish/guestfish-actions.pod:4422
14098 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14099 msgstr ""
14100
14101 # type: textblock
14102 #: ../src/guestfs-actions.pod:5753
14103 msgid ""
14104 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14105 "files."
14106 msgstr ""
14107
14108 # type: textblock
14109 #: ../src/guestfs-actions.pod:5759 ../fish/guestfish-actions.pod:4427
14110 msgid "This function is deprecated.  In new code, use the C<file> call instead."
14111 msgstr ""
14112
14113 # type: =head2
14114 #: ../src/guestfs-actions.pod:5766
14115 msgid "guestfs_zgrep"
14116 msgstr ""
14117
14118 # type: verbatim
14119 #: ../src/guestfs-actions.pod:5768
14120 #, no-wrap
14121 msgid ""
14122 " char **guestfs_zgrep (guestfs_h *g,\n"
14123 "\t\tconst char *regex,\n"
14124 "\t\tconst char *path);\n"
14125 "\n"
14126 msgstr ""
14127
14128 # type: textblock
14129 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:4438
14130 msgid "This calls the external C<zgrep> program and returns the matching lines."
14131 msgstr ""
14132
14133 # type: =head2
14134 #: ../src/guestfs-actions.pod:5782
14135 msgid "guestfs_zgrepi"
14136 msgstr ""
14137
14138 # type: verbatim
14139 #: ../src/guestfs-actions.pod:5784
14140 #, no-wrap
14141 msgid ""
14142 " char **guestfs_zgrepi (guestfs_h *g,\n"
14143 "\t\tconst char *regex,\n"
14144 "\t\tconst char *path);\n"
14145 "\n"
14146 msgstr ""
14147
14148 # type: textblock
14149 #: ../src/guestfs-actions.pod:5788 ../fish/guestfish-actions.pod:4448
14150 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
14151 msgstr ""
14152
14153 # type: =item
14154 #: ../src/guestfs-availability.pod:3
14155 msgid "B<augeas>"
14156 msgstr ""
14157
14158 # type: textblock
14159 #: ../src/guestfs-availability.pod:5
14160 msgid ""
14161 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
14162 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
14163 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
14164 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
14165 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
14166 msgstr ""
14167
14168 # type: =item
14169 #: ../src/guestfs-availability.pod:21
14170 msgid "B<inotify>"
14171 msgstr ""
14172
14173 # type: textblock
14174 #: ../src/guestfs-availability.pod:23
14175 msgid ""
14176 "The following functions: L</guestfs_inotify_add_watch> "
14177 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
14178 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
14179 msgstr ""
14180
14181 # type: =item
14182 #: ../src/guestfs-availability.pod:31
14183 msgid "B<linuxfsuuid>"
14184 msgstr ""
14185
14186 # type: textblock
14187 #: ../src/guestfs-availability.pod:33
14188 msgid ""
14189 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
14190 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
14191 msgstr ""
14192
14193 # type: =item
14194 #: ../src/guestfs-availability.pod:40
14195 msgid "B<linuxmodules>"
14196 msgstr ""
14197
14198 # type: textblock
14199 #: ../src/guestfs-availability.pod:42
14200 msgid "The following functions: L</guestfs_modprobe>"
14201 msgstr ""
14202
14203 # type: =item
14204 #: ../src/guestfs-availability.pod:45
14205 msgid "B<linuxxattrs>"
14206 msgstr ""
14207
14208 # type: textblock
14209 #: ../src/guestfs-availability.pod:47
14210 msgid ""
14211 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
14212 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
14213 "L</guestfs_removexattr> L</guestfs_setxattr>"
14214 msgstr ""
14215
14216 # type: =item
14217 #: ../src/guestfs-availability.pod:56
14218 msgid "B<luks>"
14219 msgstr ""
14220
14221 # type: textblock
14222 #: ../src/guestfs-availability.pod:58
14223 msgid ""
14224 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
14225 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
14226 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
14227 msgstr ""
14228
14229 # type: =item
14230 #: ../src/guestfs-availability.pod:67
14231 msgid "B<lvm2>"
14232 msgstr ""
14233
14234 # type: textblock
14235 #: ../src/guestfs-availability.pod:69
14236 msgid ""
14237 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
14238 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
14239 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
14240 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
14241 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
14242 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
14243 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
14244 "L</guestfs_vgs_full>"
14245 msgstr ""
14246
14247 # type: =item
14248 #: ../src/guestfs-availability.pod:92
14249 msgid "B<mknod>"
14250 msgstr ""
14251
14252 # type: textblock
14253 #: ../src/guestfs-availability.pod:94
14254 msgid ""
14255 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
14256 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
14257 msgstr ""
14258
14259 # type: =item
14260 #: ../src/guestfs-availability.pod:100
14261 msgid "B<ntfs3g>"
14262 msgstr ""
14263
14264 # type: textblock
14265 #: ../src/guestfs-availability.pod:102
14266 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
14267 msgstr ""
14268
14269 # type: =item
14270 #: ../src/guestfs-availability.pod:105
14271 msgid "B<ntfsprogs>"
14272 msgstr ""
14273
14274 # type: textblock
14275 #: ../src/guestfs-availability.pod:107
14276 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
14277 msgstr ""
14278
14279 # type: =item
14280 #: ../src/guestfs-availability.pod:111
14281 msgid "B<realpath>"
14282 msgstr ""
14283
14284 # type: textblock
14285 #: ../src/guestfs-availability.pod:113
14286 msgid "The following functions: L</guestfs_realpath>"
14287 msgstr ""
14288
14289 # type: =item
14290 #: ../src/guestfs-availability.pod:116
14291 msgid "B<scrub>"
14292 msgstr ""
14293
14294 # type: textblock
14295 #: ../src/guestfs-availability.pod:118
14296 msgid ""
14297 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
14298 "L</guestfs_scrub_freespace>"
14299 msgstr ""
14300
14301 # type: =item
14302 #: ../src/guestfs-availability.pod:123
14303 msgid "B<selinux>"
14304 msgstr ""
14305
14306 # type: textblock
14307 #: ../src/guestfs-availability.pod:125
14308 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
14309 msgstr ""
14310
14311 # type: =item
14312 #: ../src/guestfs-availability.pod:129
14313 msgid "B<xz>"
14314 msgstr ""
14315
14316 # type: textblock
14317 #: ../src/guestfs-availability.pod:131
14318 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
14319 msgstr ""
14320
14321 # type: =item
14322 #: ../src/guestfs-availability.pod:135
14323 msgid "B<zerofree>"
14324 msgstr ""
14325
14326 # type: textblock
14327 #: ../src/guestfs-availability.pod:137
14328 msgid "The following functions: L</guestfs_zerofree>"
14329 msgstr ""
14330
14331 # type: =head2
14332 #: ../src/guestfs-structs.pod:1
14333 msgid "guestfs_int_bool"
14334 msgstr ""
14335
14336 # type: verbatim
14337 #: ../src/guestfs-structs.pod:3
14338 #, no-wrap
14339 msgid ""
14340 " struct guestfs_int_bool {\n"
14341 "   int32_t i;\n"
14342 "   int32_t b;\n"
14343 " };\n"
14344 " \n"
14345 msgstr ""
14346
14347 # type: verbatim
14348 #: ../src/guestfs-structs.pod:8
14349 #, no-wrap
14350 msgid ""
14351 " struct guestfs_int_bool_list {\n"
14352 "   uint32_t len; /* Number of elements in list. */\n"
14353 "   struct guestfs_int_bool *val; /* Elements. */\n"
14354 " };\n"
14355 " \n"
14356 msgstr ""
14357
14358 # type: verbatim
14359 #: ../src/guestfs-structs.pod:13
14360 #, no-wrap
14361 msgid ""
14362 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
14363 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
14364 "\n"
14365 msgstr ""
14366
14367 # type: =head2
14368 #: ../src/guestfs-structs.pod:16
14369 msgid "guestfs_lvm_pv"
14370 msgstr ""
14371
14372 # type: verbatim
14373 #: ../src/guestfs-structs.pod:18
14374 #, no-wrap
14375 msgid ""
14376 " struct guestfs_lvm_pv {\n"
14377 "   char *pv_name;\n"
14378 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14379 "*/\n"
14380 "   char pv_uuid[32];\n"
14381 "   char *pv_fmt;\n"
14382 "   uint64_t pv_size;\n"
14383 "   uint64_t dev_size;\n"
14384 "   uint64_t pv_free;\n"
14385 "   uint64_t pv_used;\n"
14386 "   char *pv_attr;\n"
14387 "   int64_t pv_pe_count;\n"
14388 "   int64_t pv_pe_alloc_count;\n"
14389 "   char *pv_tags;\n"
14390 "   uint64_t pe_start;\n"
14391 "   int64_t pv_mda_count;\n"
14392 "   uint64_t pv_mda_free;\n"
14393 " };\n"
14394 " \n"
14395 msgstr ""
14396
14397 # type: verbatim
14398 #: ../src/guestfs-structs.pod:36
14399 #, no-wrap
14400 msgid ""
14401 " struct guestfs_lvm_pv_list {\n"
14402 "   uint32_t len; /* Number of elements in list. */\n"
14403 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14404 " };\n"
14405 " \n"
14406 msgstr ""
14407
14408 # type: verbatim
14409 #: ../src/guestfs-structs.pod:41
14410 #, no-wrap
14411 msgid ""
14412 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14413 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14414 "\n"
14415 msgstr ""
14416
14417 # type: =head2
14418 #: ../src/guestfs-structs.pod:44
14419 msgid "guestfs_lvm_vg"
14420 msgstr ""
14421
14422 # type: verbatim
14423 #: ../src/guestfs-structs.pod:46
14424 #, no-wrap
14425 msgid ""
14426 " struct guestfs_lvm_vg {\n"
14427 "   char *vg_name;\n"
14428 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14429 "*/\n"
14430 "   char vg_uuid[32];\n"
14431 "   char *vg_fmt;\n"
14432 "   char *vg_attr;\n"
14433 "   uint64_t vg_size;\n"
14434 "   uint64_t vg_free;\n"
14435 "   char *vg_sysid;\n"
14436 "   uint64_t vg_extent_size;\n"
14437 "   int64_t vg_extent_count;\n"
14438 "   int64_t vg_free_count;\n"
14439 "   int64_t max_lv;\n"
14440 "   int64_t max_pv;\n"
14441 "   int64_t pv_count;\n"
14442 "   int64_t lv_count;\n"
14443 "   int64_t snap_count;\n"
14444 "   int64_t vg_seqno;\n"
14445 "   char *vg_tags;\n"
14446 "   int64_t vg_mda_count;\n"
14447 "   uint64_t vg_mda_free;\n"
14448 " };\n"
14449 " \n"
14450 msgstr ""
14451
14452 # type: verbatim
14453 #: ../src/guestfs-structs.pod:69
14454 #, no-wrap
14455 msgid ""
14456 " struct guestfs_lvm_vg_list {\n"
14457 "   uint32_t len; /* Number of elements in list. */\n"
14458 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14459 " };\n"
14460 " \n"
14461 msgstr ""
14462
14463 # type: verbatim
14464 #: ../src/guestfs-structs.pod:74
14465 #, no-wrap
14466 msgid ""
14467 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14468 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14469 "\n"
14470 msgstr ""
14471
14472 # type: =head2
14473 #: ../src/guestfs-structs.pod:77
14474 msgid "guestfs_lvm_lv"
14475 msgstr ""
14476
14477 # type: verbatim
14478 #: ../src/guestfs-structs.pod:79
14479 #, no-wrap
14480 msgid ""
14481 " struct guestfs_lvm_lv {\n"
14482 "   char *lv_name;\n"
14483 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14484 "*/\n"
14485 "   char lv_uuid[32];\n"
14486 "   char *lv_attr;\n"
14487 "   int64_t lv_major;\n"
14488 "   int64_t lv_minor;\n"
14489 "   int64_t lv_kernel_major;\n"
14490 "   int64_t lv_kernel_minor;\n"
14491 "   uint64_t lv_size;\n"
14492 "   int64_t seg_count;\n"
14493 "   char *origin;\n"
14494 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14495 "   float snap_percent;\n"
14496 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14497 "   float copy_percent;\n"
14498 "   char *move_pv;\n"
14499 "   char *lv_tags;\n"
14500 "   char *mirror_log;\n"
14501 "   char *modules;\n"
14502 " };\n"
14503 " \n"
14504 msgstr ""
14505
14506 # type: verbatim
14507 #: ../src/guestfs-structs.pod:101
14508 #, no-wrap
14509 msgid ""
14510 " struct guestfs_lvm_lv_list {\n"
14511 "   uint32_t len; /* Number of elements in list. */\n"
14512 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14513 " };\n"
14514 " \n"
14515 msgstr ""
14516
14517 # type: verbatim
14518 #: ../src/guestfs-structs.pod:106
14519 #, no-wrap
14520 msgid ""
14521 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14522 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14523 "\n"
14524 msgstr ""
14525
14526 # type: verbatim
14527 #: ../src/guestfs-structs.pod:111
14528 #, no-wrap
14529 msgid ""
14530 " struct guestfs_stat {\n"
14531 "   int64_t dev;\n"
14532 "   int64_t ino;\n"
14533 "   int64_t mode;\n"
14534 "   int64_t nlink;\n"
14535 "   int64_t uid;\n"
14536 "   int64_t gid;\n"
14537 "   int64_t rdev;\n"
14538 "   int64_t size;\n"
14539 "   int64_t blksize;\n"
14540 "   int64_t blocks;\n"
14541 "   int64_t atime;\n"
14542 "   int64_t mtime;\n"
14543 "   int64_t ctime;\n"
14544 " };\n"
14545 " \n"
14546 msgstr ""
14547
14548 # type: verbatim
14549 #: ../src/guestfs-structs.pod:127
14550 #, no-wrap
14551 msgid ""
14552 " struct guestfs_stat_list {\n"
14553 "   uint32_t len; /* Number of elements in list. */\n"
14554 "   struct guestfs_stat *val; /* Elements. */\n"
14555 " };\n"
14556 " \n"
14557 msgstr ""
14558
14559 # type: verbatim
14560 #: ../src/guestfs-structs.pod:132
14561 #, no-wrap
14562 msgid ""
14563 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14564 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14565 "\n"
14566 msgstr ""
14567
14568 # type: verbatim
14569 #: ../src/guestfs-structs.pod:137
14570 #, no-wrap
14571 msgid ""
14572 " struct guestfs_statvfs {\n"
14573 "   int64_t bsize;\n"
14574 "   int64_t frsize;\n"
14575 "   int64_t blocks;\n"
14576 "   int64_t bfree;\n"
14577 "   int64_t bavail;\n"
14578 "   int64_t files;\n"
14579 "   int64_t ffree;\n"
14580 "   int64_t favail;\n"
14581 "   int64_t fsid;\n"
14582 "   int64_t flag;\n"
14583 "   int64_t namemax;\n"
14584 " };\n"
14585 " \n"
14586 msgstr ""
14587
14588 # type: verbatim
14589 #: ../src/guestfs-structs.pod:151
14590 #, no-wrap
14591 msgid ""
14592 " struct guestfs_statvfs_list {\n"
14593 "   uint32_t len; /* Number of elements in list. */\n"
14594 "   struct guestfs_statvfs *val; /* Elements. */\n"
14595 " };\n"
14596 " \n"
14597 msgstr ""
14598
14599 # type: verbatim
14600 #: ../src/guestfs-structs.pod:156
14601 #, no-wrap
14602 msgid ""
14603 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
14604 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
14605 "\n"
14606 msgstr ""
14607
14608 # type: =head2
14609 #: ../src/guestfs-structs.pod:159
14610 msgid "guestfs_dirent"
14611 msgstr ""
14612
14613 # type: verbatim
14614 #: ../src/guestfs-structs.pod:161
14615 #, no-wrap
14616 msgid ""
14617 " struct guestfs_dirent {\n"
14618 "   int64_t ino;\n"
14619 "   char ftyp;\n"
14620 "   char *name;\n"
14621 " };\n"
14622 " \n"
14623 msgstr ""
14624
14625 # type: verbatim
14626 #: ../src/guestfs-structs.pod:167
14627 #, no-wrap
14628 msgid ""
14629 " struct guestfs_dirent_list {\n"
14630 "   uint32_t len; /* Number of elements in list. */\n"
14631 "   struct guestfs_dirent *val; /* Elements. */\n"
14632 " };\n"
14633 " \n"
14634 msgstr ""
14635
14636 # type: verbatim
14637 #: ../src/guestfs-structs.pod:172
14638 #, no-wrap
14639 msgid ""
14640 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
14641 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
14642 "\n"
14643 msgstr ""
14644
14645 # type: verbatim
14646 #: ../src/guestfs-structs.pod:177
14647 #, no-wrap
14648 msgid ""
14649 " struct guestfs_version {\n"
14650 "   int64_t major;\n"
14651 "   int64_t minor;\n"
14652 "   int64_t release;\n"
14653 "   char *extra;\n"
14654 " };\n"
14655 " \n"
14656 msgstr ""
14657
14658 # type: verbatim
14659 #: ../src/guestfs-structs.pod:184
14660 #, no-wrap
14661 msgid ""
14662 " struct guestfs_version_list {\n"
14663 "   uint32_t len; /* Number of elements in list. */\n"
14664 "   struct guestfs_version *val; /* Elements. */\n"
14665 " };\n"
14666 " \n"
14667 msgstr ""
14668
14669 # type: verbatim
14670 #: ../src/guestfs-structs.pod:189
14671 #, no-wrap
14672 msgid ""
14673 " void guestfs_free_version (struct guestfs_free_version *);\n"
14674 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
14675 "\n"
14676 msgstr ""
14677
14678 # type: =head2
14679 #: ../src/guestfs-structs.pod:192
14680 msgid "guestfs_xattr"
14681 msgstr ""
14682
14683 # type: verbatim
14684 #: ../src/guestfs-structs.pod:194
14685 #, no-wrap
14686 msgid ""
14687 " struct guestfs_xattr {\n"
14688 "   char *attrname;\n"
14689 "   /* The next two fields describe a byte array. */\n"
14690 "   uint32_t attrval_len;\n"
14691 "   char *attrval;\n"
14692 " };\n"
14693 " \n"
14694 msgstr ""
14695
14696 # type: verbatim
14697 #: ../src/guestfs-structs.pod:201
14698 #, no-wrap
14699 msgid ""
14700 " struct guestfs_xattr_list {\n"
14701 "   uint32_t len; /* Number of elements in list. */\n"
14702 "   struct guestfs_xattr *val; /* Elements. */\n"
14703 " };\n"
14704 " \n"
14705 msgstr ""
14706
14707 # type: verbatim
14708 #: ../src/guestfs-structs.pod:206
14709 #, no-wrap
14710 msgid ""
14711 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
14712 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
14713 "\n"
14714 msgstr ""
14715
14716 # type: =head2
14717 #: ../src/guestfs-structs.pod:209
14718 msgid "guestfs_inotify_event"
14719 msgstr ""
14720
14721 # type: verbatim
14722 #: ../src/guestfs-structs.pod:211
14723 #, no-wrap
14724 msgid ""
14725 " struct guestfs_inotify_event {\n"
14726 "   int64_t in_wd;\n"
14727 "   uint32_t in_mask;\n"
14728 "   uint32_t in_cookie;\n"
14729 "   char *in_name;\n"
14730 " };\n"
14731 " \n"
14732 msgstr ""
14733
14734 # type: verbatim
14735 #: ../src/guestfs-structs.pod:218
14736 #, no-wrap
14737 msgid ""
14738 " struct guestfs_inotify_event_list {\n"
14739 "   uint32_t len; /* Number of elements in list. */\n"
14740 "   struct guestfs_inotify_event *val; /* Elements. */\n"
14741 " };\n"
14742 " \n"
14743 msgstr ""
14744
14745 # type: verbatim
14746 #: ../src/guestfs-structs.pod:223
14747 #, no-wrap
14748 msgid ""
14749 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
14750 " void guestfs_free_inotify_event_list (struct "
14751 "guestfs_free_inotify_event_list *);\n"
14752 "\n"
14753 msgstr ""
14754
14755 # type: =head2
14756 #: ../src/guestfs-structs.pod:226
14757 msgid "guestfs_partition"
14758 msgstr ""
14759
14760 # type: verbatim
14761 #: ../src/guestfs-structs.pod:228
14762 #, no-wrap
14763 msgid ""
14764 " struct guestfs_partition {\n"
14765 "   int32_t part_num;\n"
14766 "   uint64_t part_start;\n"
14767 "   uint64_t part_end;\n"
14768 "   uint64_t part_size;\n"
14769 " };\n"
14770 " \n"
14771 msgstr ""
14772
14773 # type: verbatim
14774 #: ../src/guestfs-structs.pod:235
14775 #, no-wrap
14776 msgid ""
14777 " struct guestfs_partition_list {\n"
14778 "   uint32_t len; /* Number of elements in list. */\n"
14779 "   struct guestfs_partition *val; /* Elements. */\n"
14780 " };\n"
14781 " \n"
14782 msgstr ""
14783
14784 # type: verbatim
14785 #: ../src/guestfs-structs.pod:240
14786 #, no-wrap
14787 msgid ""
14788 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
14789 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
14790 "\n"
14791 msgstr ""
14792
14793 # type: textblock
14794 #: ../fish/guestfish.pod:5
14795 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
14796 msgstr ""
14797
14798 # type: verbatim
14799 #: ../fish/guestfish.pod:9
14800 #, no-wrap
14801 msgid ""
14802 " guestfish [--options] [commands]\n"
14803 "\n"
14804 msgstr ""
14805
14806 # type: verbatim
14807 #: ../fish/guestfish.pod:11
14808 #, no-wrap
14809 msgid ""
14810 " guestfish\n"
14811 "\n"
14812 msgstr ""
14813
14814 # type: verbatim
14815 #: ../fish/guestfish.pod:13
14816 #, no-wrap
14817 msgid ""
14818 " guestfish -a disk.img\n"
14819 "\n"
14820 msgstr ""
14821
14822 # type: verbatim
14823 #: ../fish/guestfish.pod:15
14824 #, no-wrap
14825 msgid ""
14826 " guestfish -a disk.img -m dev[:mountpoint]\n"
14827 "\n"
14828 msgstr ""
14829
14830 # type: verbatim
14831 #: ../fish/guestfish.pod:17
14832 #, no-wrap
14833 msgid ""
14834 " guestfish -d libvirt-domain\n"
14835 "\n"
14836 msgstr ""
14837
14838 # type: verbatim
14839 #: ../fish/guestfish.pod:19
14840 #, no-wrap
14841 msgid ""
14842 " guestfish -a disk.img -i\n"
14843 "\n"
14844 msgstr ""
14845
14846 # type: verbatim
14847 #: ../fish/guestfish.pod:21
14848 #, no-wrap
14849 msgid ""
14850 " guestfish -d libvirt-domain -i\n"
14851 "\n"
14852 msgstr ""
14853
14854 # type: =head1
14855 #: ../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
14856 msgid "WARNING"
14857 msgstr ""
14858
14859 # type: textblock
14860 #: ../fish/guestfish.pod:25
14861 msgid ""
14862 "Using guestfish in read/write mode on live virtual machines can be "
14863 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
14864 "option to use guestfish safely if the disk image or virtual machine might be "
14865 "live."
14866 msgstr ""
14867
14868 # type: textblock
14869 #: ../fish/guestfish.pod:32
14870 msgid ""
14871 "Guestfish is a shell and command-line tool for examining and modifying "
14872 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
14873 "functionality of the guestfs API, see L<guestfs(3)>."
14874 msgstr ""
14875
14876 # type: textblock
14877 #: ../fish/guestfish.pod:36
14878 msgid ""
14879 "Guestfish gives you structured access to the libguestfs API, from shell "
14880 "scripts or the command line or interactively.  If you want to rescue a "
14881 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
14882 "command."
14883 msgstr ""
14884
14885 # type: =head1
14886 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58 ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:50 ../tools/virt-tar.pl:45
14887 msgid "EXAMPLES"
14888 msgstr ""
14889
14890 # type: =head2
14891 #: ../fish/guestfish.pod:43
14892 msgid "As an interactive shell"
14893 msgstr ""
14894
14895 # type: verbatim
14896 #: ../fish/guestfish.pod:45
14897 #, no-wrap
14898 msgid ""
14899 " $ guestfish\n"
14900 " \n"
14901 msgstr ""
14902
14903 # type: verbatim
14904 #: ../fish/guestfish.pod:47
14905 #, no-wrap
14906 msgid ""
14907 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
14908 " editing virtual machine filesystems.\n"
14909 " \n"
14910 msgstr ""
14911
14912 # type: verbatim
14913 #: ../fish/guestfish.pod:50
14914 #, no-wrap
14915 msgid ""
14916 " Type: 'help' for a list of commands\n"
14917 "       'man' to read the manual\n"
14918 "       'quit' to quit the shell\n"
14919 " \n"
14920 msgstr ""
14921
14922 # type: verbatim
14923 #: ../fish/guestfish.pod:54
14924 #, no-wrap
14925 msgid ""
14926 " ><fs> add-ro disk.img\n"
14927 " ><fs> run\n"
14928 " ><fs> list-filesystems\n"
14929 " /dev/sda1: ext4\n"
14930 " /dev/vg_guest/lv_root: ext4\n"
14931 " /dev/vg_guest/lv_swap: swap\n"
14932 " ><fs> mount /dev/vg_guest/lv_root /\n"
14933 " ><fs> cat /etc/fstab\n"
14934 " # /etc/fstab\n"
14935 " # Created by anaconda\n"
14936 " [...]\n"
14937 " ><fs> exit\n"
14938 "\n"
14939 msgstr ""
14940
14941 # type: =head2
14942 #: ../fish/guestfish.pod:67
14943 msgid "From shell scripts"
14944 msgstr ""
14945
14946 # type: textblock
14947 #: ../fish/guestfish.pod:69
14948 msgid "Create a new C</etc/motd> file in a guest or disk image:"
14949 msgstr ""
14950
14951 # type: verbatim
14952 #: ../fish/guestfish.pod:71
14953 #, no-wrap
14954 msgid ""
14955 " guestfish <<_EOF_\n"
14956 " add disk.img\n"
14957 " run\n"
14958 " mount /dev/vg_guest/lv_root /\n"
14959 " write /etc/motd \"Welcome, new users\"\n"
14960 " _EOF_\n"
14961 "\n"
14962 msgstr ""
14963
14964 # type: textblock
14965 #: ../fish/guestfish.pod:78
14966 msgid "List the LVM logical volumes in a disk image:"
14967 msgstr ""
14968
14969 # type: verbatim
14970 #: ../fish/guestfish.pod:80
14971 #, no-wrap
14972 msgid ""
14973 " guestfish -a disk.img --ro <<_EOF_\n"
14974 " run\n"
14975 " lvs\n"
14976 " _EOF_\n"
14977 "\n"
14978 msgstr ""
14979
14980 # type: textblock
14981 #: ../fish/guestfish.pod:85
14982 msgid "List all the filesystems in a disk image:"
14983 msgstr ""
14984
14985 # type: verbatim
14986 #: ../fish/guestfish.pod:87
14987 #, no-wrap
14988 msgid ""
14989 " guestfish -a disk.img --ro <<_EOF_\n"
14990 " run\n"
14991 " list-filesystems\n"
14992 " _EOF_\n"
14993 "\n"
14994 msgstr ""
14995
14996 # type: =head2
14997 #: ../fish/guestfish.pod:92
14998 msgid "On one command line"
14999 msgstr ""
15000
15001 # type: textblock
15002 #: ../fish/guestfish.pod:94
15003 msgid "Update C</etc/resolv.conf> in a guest:"
15004 msgstr ""
15005
15006 # type: verbatim
15007 #: ../fish/guestfish.pod:96
15008 #, no-wrap
15009 msgid ""
15010 " guestfish \\\n"
15011 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15012 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15013 "\n"
15014 msgstr ""
15015
15016 # type: textblock
15017 #: ../fish/guestfish.pod:100
15018 msgid "Edit C</boot/grub/grub.conf> interactively:"
15019 msgstr ""
15020
15021 # type: verbatim
15022 #: ../fish/guestfish.pod:102
15023 #, no-wrap
15024 msgid ""
15025 " guestfish --add disk.img \\\n"
15026 "   --mount /dev/vg_guest/lv_root \\\n"
15027 "   --mount /dev/sda1:/boot \\\n"
15028 "   edit /boot/grub/grub.conf\n"
15029 "\n"
15030 msgstr ""
15031
15032 # type: =head2
15033 #: ../fish/guestfish.pod:107
15034 msgid "Mount disks automatically"
15035 msgstr ""
15036
15037 # type: textblock
15038 #: ../fish/guestfish.pod:109
15039 msgid ""
15040 "Use the I<-i> option to automatically mount the disks from a virtual "
15041 "machine:"
15042 msgstr ""
15043
15044 # type: verbatim
15045 #: ../fish/guestfish.pod:112
15046 #, no-wrap
15047 msgid ""
15048 " guestfish --ro -a disk.img -i cat /etc/group\n"
15049 "\n"
15050 msgstr ""
15051
15052 # type: verbatim
15053 #: ../fish/guestfish.pod:114
15054 #, no-wrap
15055 msgid ""
15056 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15057 "\n"
15058 msgstr ""
15059
15060 # type: textblock
15061 #: ../fish/guestfish.pod:116
15062 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15063 msgstr ""
15064
15065 # type: verbatim
15066 #: ../fish/guestfish.pod:118
15067 #, no-wrap
15068 msgid ""
15069 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15070 "\n"
15071 msgstr ""
15072
15073 # type: =head2
15074 #: ../fish/guestfish.pod:120
15075 msgid "As a script interpreter"
15076 msgstr ""
15077
15078 # type: textblock
15079 #: ../fish/guestfish.pod:122
15080 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15081 msgstr ""
15082
15083 # type: verbatim
15084 #: ../fish/guestfish.pod:124
15085 #, no-wrap
15086 msgid ""
15087 " #!/usr/bin/guestfish -f\n"
15088 " sparse test1.img 100M\n"
15089 " run\n"
15090 " part-disk /dev/sda mbr\n"
15091 " mkfs ext2 /dev/sda1\n"
15092 "\n"
15093 msgstr ""
15094
15095 # type: =head2
15096 #: ../fish/guestfish.pod:130
15097 msgid "Start with a prepared disk"
15098 msgstr ""
15099
15100 # type: textblock
15101 #: ../fish/guestfish.pod:132
15102 msgid ""
15103 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15104 "single ext2-formatted partition:"
15105 msgstr ""
15106
15107 # type: verbatim
15108 #: ../fish/guestfish.pod:135
15109 #, no-wrap
15110 msgid ""
15111 " guestfish -N fs\n"
15112 "\n"
15113 msgstr ""
15114
15115 # type: textblock
15116 #: ../fish/guestfish.pod:137
15117 msgid "To list what is available do:"
15118 msgstr ""
15119
15120 # type: verbatim
15121 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15122 #, no-wrap
15123 msgid ""
15124 " guestfish -N help | less\n"
15125 "\n"
15126 msgstr ""
15127
15128 # type: =head2
15129 #: ../fish/guestfish.pod:141
15130 msgid "Remote control"
15131 msgstr ""
15132
15133 # type: verbatim
15134 #: ../fish/guestfish.pod:143
15135 #, no-wrap
15136 msgid ""
15137 " eval `guestfish --listen`\n"
15138 " guestfish --remote add-ro disk.img\n"
15139 " guestfish --remote run\n"
15140 " guestfish --remote lvs\n"
15141 "\n"
15142 msgstr ""
15143
15144 # type: =head1
15145 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68 ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171 ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257 ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:79 ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
15146 msgid "OPTIONS"
15147 msgstr ""
15148
15149 # type: =item
15150 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:124 ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86 ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58 ../tools/virt-cat.pl:87 ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
15151 msgid "B<--help>"
15152 msgstr ""
15153
15154 # type: textblock
15155 #: ../fish/guestfish.pod:154
15156 msgid "Displays general help on options."
15157 msgstr ""
15158
15159 # type: =item
15160 #: ../fish/guestfish.pod:156
15161 msgid "B<-h> | B<--cmd-help>"
15162 msgstr ""
15163
15164 # type: textblock
15165 #: ../fish/guestfish.pod:158
15166 msgid "Lists all available guestfish commands."
15167 msgstr ""
15168
15169 # type: =item
15170 #: ../fish/guestfish.pod:160
15171 msgid "B<-h cmd> | B<--cmd-help cmd>"
15172 msgstr ""
15173
15174 # type: textblock
15175 #: ../fish/guestfish.pod:162
15176 msgid "Displays detailed help on a single command C<cmd>."
15177 msgstr ""
15178
15179 # type: =item
15180 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
15181 msgid "B<-a image> | B<--add image>"
15182 msgstr ""
15183
15184 # type: textblock
15185 #: ../fish/guestfish.pod:166
15186 msgid "Add a block device or virtual machine image to the shell."
15187 msgstr ""
15188
15189 # type: textblock
15190 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
15191 msgid ""
15192 "The format of the disk image is auto-detected.  To override this and force a "
15193 "particular format use the I<--format=..> option."
15194 msgstr ""
15195
15196 # type: =item
15197 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
15198 msgid "B<-c URI> | B<--connect URI>"
15199 msgstr ""
15200
15201 # type: textblock
15202 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
15203 msgid ""
15204 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15205 "URI to use.  The default is to use the default libvirt connection."
15206 msgstr ""
15207
15208 # type: =item
15209 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
15210 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
15211 msgstr ""
15212
15213 # type: textblock
15214 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
15215 msgid ""
15216 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15217 "used, then any libvirt domain can be used.  However in write mode, only "
15218 "libvirt domains which are shut down can be named here."
15219 msgstr ""
15220
15221 # type: =item
15222 #: ../fish/guestfish.pod:183
15223 msgid "B<-D> | B<--no-dest-paths>"
15224 msgstr ""
15225
15226 # type: textblock
15227 #: ../fish/guestfish.pod:185
15228 msgid ""
15229 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15230 "to hit the tab key to complete paths on the guest filesystem, but this "
15231 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15232 "allow this feature to be disabled."
15233 msgstr ""
15234
15235 # type: =item
15236 #: ../fish/guestfish.pod:190
15237 msgid "B<--echo-keys>"
15238 msgstr ""
15239
15240 # type: textblock
15241 #: ../fish/guestfish.pod:192
15242 msgid ""
15243 "When prompting for keys and passphrases, guestfish normally turns echoing "
15244 "off so you cannot see what you are typing.  If you are not worried about "
15245 "Tempest attacks and there is no one else in the room you can specify this "
15246 "flag to see what you are typing."
15247 msgstr ""
15248
15249 # type: =item
15250 #: ../fish/guestfish.pod:197
15251 msgid "B<-f file> | B<--file file>"
15252 msgstr ""
15253
15254 # type: textblock
15255 #: ../fish/guestfish.pod:199
15256 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15257 msgstr ""
15258
15259 # type: verbatim
15260 #: ../fish/guestfish.pod:202
15261 #, no-wrap
15262 msgid ""
15263 " #!/usr/bin/guestfish -f\n"
15264 "\n"
15265 msgstr ""
15266
15267 # type: =item
15268 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:108
15269 msgid "B<--format=raw|qcow2|..> | B<--format>"
15270 msgstr ""
15271
15272 # type: textblock
15273 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:110
15274 msgid ""
15275 "The default for the I<-a> option is to auto-detect the format of the disk "
15276 "image.  Using this forces the disk format for I<-a> options which follow on "
15277 "the command line.  Using I<--format> with no argument switches back to "
15278 "auto-detection for subsequent I<-a> options."
15279 msgstr ""
15280
15281 # type: textblock
15282 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504
15283 msgid "For example:"
15284 msgstr ""
15285
15286 # type: verbatim
15287 #: ../fish/guestfish.pod:213
15288 #, no-wrap
15289 msgid ""
15290 " guestfish --format=raw -a disk.img\n"
15291 "\n"
15292 msgstr ""
15293
15294 # type: textblock
15295 #: ../fish/guestfish.pod:215
15296 msgid "forces raw format (no auto-detection) for C<disk.img>."
15297 msgstr ""
15298
15299 # type: verbatim
15300 #: ../fish/guestfish.pod:217
15301 #, no-wrap
15302 msgid ""
15303 " guestfish --format=raw -a disk.img --format -a another.img\n"
15304 "\n"
15305 msgstr ""
15306
15307 # type: textblock
15308 #: ../fish/guestfish.pod:219
15309 msgid ""
15310 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
15311 "auto-detection for C<another.img>."
15312 msgstr ""
15313
15314 # type: textblock
15315 #: ../fish/guestfish.pod:222
15316 msgid ""
15317 "If you have untrusted raw-format guest disk images, you should use this "
15318 "option to specify the disk format.  This avoids a possible security problem "
15319 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15320 msgstr ""
15321
15322 # type: =item
15323 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:128
15324 msgid "B<-i> | B<--inspector>"
15325 msgstr ""
15326
15327 # type: textblock
15328 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:130
15329 msgid ""
15330 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15331 "system and mount filesystems as they would be mounted on the real virtual "
15332 "machine."
15333 msgstr ""
15334
15335 # type: textblock
15336 #: ../fish/guestfish.pod:233
15337 msgid "Typical usage is either:"
15338 msgstr ""
15339
15340 # type: verbatim
15341 #: ../fish/guestfish.pod:235
15342 #, no-wrap
15343 msgid ""
15344 " guestfish -d myguest -i\n"
15345 "\n"
15346 msgstr ""
15347
15348 # type: textblock
15349 #: ../fish/guestfish.pod:237
15350 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15351 msgstr ""
15352
15353 # type: verbatim
15354 #: ../fish/guestfish.pod:239
15355 #, no-wrap
15356 msgid ""
15357 " guestfish --ro -d myguest -i\n"
15358 "\n"
15359 msgstr ""
15360
15361 # type: textblock
15362 #: ../fish/guestfish.pod:241
15363 msgid "(for active domains, readonly), or specify the block device directly:"
15364 msgstr ""
15365
15366 # type: verbatim
15367 #: ../fish/guestfish.pod:243
15368 #, no-wrap
15369 msgid ""
15370 " guestfish -a /dev/Guests/MyGuest -i\n"
15371 "\n"
15372 msgstr ""
15373
15374 # type: textblock
15375 #: ../fish/guestfish.pod:245
15376 msgid ""
15377 "Note that the command line syntax changed slightly over older versions of "
15378 "guestfish.  You can still use the old syntax:"
15379 msgstr ""
15380
15381 # type: verbatim
15382 #: ../fish/guestfish.pod:248
15383 #, no-wrap
15384 msgid ""
15385 " guestfish [--ro] -i disk.img\n"
15386 "\n"
15387 msgstr ""
15388
15389 # type: verbatim
15390 #: ../fish/guestfish.pod:250
15391 #, no-wrap
15392 msgid ""
15393 " guestfish [--ro] -i libvirt-domain\n"
15394 "\n"
15395 msgstr ""
15396
15397 # type: =item
15398 #: ../fish/guestfish.pod:252
15399 msgid "B<--keys-from-stdin>"
15400 msgstr ""
15401
15402 # type: textblock
15403 #: ../fish/guestfish.pod:254
15404 msgid ""
15405 "Read key or passphrase parameters from stdin.  The default is to try to read "
15406 "passphrases from the user by opening C</dev/tty>."
15407 msgstr ""
15408
15409 # type: =item
15410 #: ../fish/guestfish.pod:257
15411 msgid "B<--listen>"
15412 msgstr ""
15413
15414 # type: textblock
15415 #: ../fish/guestfish.pod:259
15416 msgid ""
15417 "Fork into the background and listen for remote commands.  See section "
15418 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15419 msgstr ""
15420
15421 # type: =item
15422 #: ../fish/guestfish.pod:262
15423 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
15424 msgstr ""
15425
15426 # type: textblock
15427 #: ../fish/guestfish.pod:264
15428 msgid "Mount the named partition or logical volume on the given mountpoint."
15429 msgstr ""
15430
15431 # type: textblock
15432 #: ../fish/guestfish.pod:266
15433 msgid "If the mountpoint is omitted, it defaults to C</>."
15434 msgstr ""
15435
15436 # type: textblock
15437 #: ../fish/guestfish.pod:268
15438 msgid "You have to mount something on C</> before most commands will work."
15439 msgstr ""
15440
15441 # type: textblock
15442 #: ../fish/guestfish.pod:270
15443 msgid ""
15444 "If any I<-m> or I<--mount> options are given, the guest is automatically "
15445 "launched."
15446 msgstr ""
15447
15448 # type: textblock
15449 #: ../fish/guestfish.pod:273
15450 msgid ""
15451 "If you don't know what filesystems a disk image contains, you can either run "
15452 "guestfish without this option, then list the partitions and LVs available "
15453 "(see L</list-partitions> and L</lvs> commands), or you can use the "
15454 "L<virt-list-filesystems(1)> program."
15455 msgstr ""
15456
15457 # type: =item
15458 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:142
15459 msgid "B<-n> | B<--no-sync>"
15460 msgstr ""
15461
15462 # type: textblock
15463 #: ../fish/guestfish.pod:280
15464 msgid ""
15465 "Disable autosync.  This is enabled by default.  See the discussion of "
15466 "autosync in the L<guestfs(3)> manpage."
15467 msgstr ""
15468
15469 # type: =item
15470 #: ../fish/guestfish.pod:283
15471 msgid "B<-N type> | B<--new type> | B<-N help>"
15472 msgstr ""
15473
15474 # type: textblock
15475 #: ../fish/guestfish.pod:285
15476 msgid ""
15477 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
15478 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
15479 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
15480 "IMAGES> below."
15481 msgstr ""
15482
15483 # type: =item
15484 #: ../fish/guestfish.pod:290
15485 msgid "B<--progress-bars>"
15486 msgstr ""
15487
15488 # type: textblock
15489 #: ../fish/guestfish.pod:292
15490 msgid "Enable progress bars, even when guestfish is used non-interactively."
15491 msgstr ""
15492
15493 # type: textblock
15494 #: ../fish/guestfish.pod:294
15495 msgid ""
15496 "Progress bars are enabled by default when guestfish is used as an "
15497 "interactive shell."
15498 msgstr ""
15499
15500 # type: =item
15501 #: ../fish/guestfish.pod:297
15502 msgid "B<--no-progress-bars>"
15503 msgstr ""
15504
15505 # type: textblock
15506 #: ../fish/guestfish.pod:299
15507 msgid "Disable progress bars."
15508 msgstr ""
15509
15510 # type: =item
15511 #: ../fish/guestfish.pod:301
15512 msgid "B<--remote[=pid]>"
15513 msgstr ""
15514
15515 # type: textblock
15516 #: ../fish/guestfish.pod:303
15517 msgid ""
15518 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15519 "CONTROL GUESTFISH OVER A SOCKET> below."
15520 msgstr ""
15521
15522 # type: =item
15523 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
15524 msgid "B<-r> | B<--ro>"
15525 msgstr ""
15526
15527 # type: textblock
15528 #: ../fish/guestfish.pod:308
15529 msgid ""
15530 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15531 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15532 msgstr ""
15533
15534 # type: textblock
15535 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
15536 msgid ""
15537 "The option must always be used if the disk image or virtual machine might be "
15538 "running, and is generally recommended in cases where you don't need write "
15539 "access to the disk."
15540 msgstr ""
15541
15542 # type: textblock
15543 #: ../fish/guestfish.pod:315
15544 msgid ""
15545 "Note that prepared disk images created with I<-N> are not affected by the "
15546 "I<--ro> option."
15547 msgstr ""
15548
15549 # type: =item
15550 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:194 ../tools/virt-rescue.pl:195
15551 msgid "B<--selinux>"
15552 msgstr ""
15553
15554 # type: textblock
15555 #: ../fish/guestfish.pod:320
15556 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15557 msgstr ""
15558
15559 # type: =item
15560 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:198
15561 msgid "B<-v> | B<--verbose>"
15562 msgstr ""
15563
15564 # type: textblock
15565 #: ../fish/guestfish.pod:324
15566 msgid ""
15567 "Enable very verbose messages.  This is particularly useful if you find a "
15568 "bug."
15569 msgstr ""
15570
15571 # type: =item
15572 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:202
15573 msgid "B<-V> | B<--version>"
15574 msgstr ""
15575
15576 # type: textblock
15577 #: ../fish/guestfish.pod:329
15578 msgid "Display the guestfish / libguestfs version number and exit."
15579 msgstr ""
15580
15581 # type: =item
15582 #: ../fish/guestfish.pod:331
15583 msgid "B<-x>"
15584 msgstr ""
15585
15586 # type: textblock
15587 #: ../fish/guestfish.pod:333
15588 msgid "Echo each command before executing it."
15589 msgstr ""
15590
15591 # type: =head1
15592 #: ../fish/guestfish.pod:337
15593 msgid "COMMANDS ON COMMAND LINE"
15594 msgstr ""
15595
15596 # type: textblock
15597 #: ../fish/guestfish.pod:339
15598 msgid "Any additional (non-option) arguments are treated as commands to execute."
15599 msgstr ""
15600
15601 # type: textblock
15602 #: ../fish/guestfish.pod:342
15603 msgid ""
15604 "Commands to execute should be separated by a colon (C<:>), where the colon "
15605 "is a separate parameter.  Thus:"
15606 msgstr ""
15607
15608 # type: verbatim
15609 #: ../fish/guestfish.pod:345
15610 #, no-wrap
15611 msgid ""
15612 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
15613 "\n"
15614 msgstr ""
15615
15616 # type: textblock
15617 #: ../fish/guestfish.pod:347
15618 msgid ""
15619 "If there are no additional arguments, then we enter a shell, either an "
15620 "interactive shell with a prompt (if the input is a terminal) or a "
15621 "non-interactive shell."
15622 msgstr ""
15623
15624 # type: textblock
15625 #: ../fish/guestfish.pod:351
15626 msgid ""
15627 "In either command line mode or non-interactive shell, the first command that "
15628 "gives an error causes the whole shell to exit.  In interactive mode (with a "
15629 "prompt) if a command fails, you can continue to enter commands."
15630 msgstr ""
15631
15632 # type: =head1
15633 #: ../fish/guestfish.pod:356
15634 msgid "USING launch (OR run)"
15635 msgstr ""
15636
15637 # type: textblock
15638 #: ../fish/guestfish.pod:358
15639 msgid ""
15640 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
15641 "then launch it, then mount any disks you need, and finally issue "
15642 "actions/commands.  So the general order of the day is:"
15643 msgstr ""
15644
15645 # type: textblock
15646 #: ../fish/guestfish.pod:366
15647 msgid "add or -a/--add"
15648 msgstr ""
15649
15650 # type: textblock
15651 #: ../fish/guestfish.pod:370
15652 msgid "launch (aka run)"
15653 msgstr ""
15654
15655 # type: textblock
15656 #: ../fish/guestfish.pod:374
15657 msgid "mount or -m/--mount"
15658 msgstr ""
15659
15660 # type: textblock
15661 #: ../fish/guestfish.pod:378
15662 msgid "any other commands"
15663 msgstr ""
15664
15665 # type: textblock
15666 #: ../fish/guestfish.pod:382
15667 msgid ""
15668 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
15669 "guest before mounting or performing any other commands."
15670 msgstr ""
15671
15672 # type: textblock
15673 #: ../fish/guestfish.pod:385
15674 msgid ""
15675 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
15676 "I<--new> options were given then C<run> is done automatically, simply "
15677 "because guestfish can't perform the action you asked for without doing this."
15678 msgstr ""
15679
15680 # type: =head1
15681 #: ../fish/guestfish.pod:390
15682 msgid "QUOTING"
15683 msgstr ""
15684
15685 # type: textblock
15686 #: ../fish/guestfish.pod:392
15687 msgid ""
15688 "You can quote ordinary parameters using either single or double quotes.  For "
15689 "example:"
15690 msgstr ""
15691
15692 # type: verbatim
15693 #: ../fish/guestfish.pod:395
15694 #, no-wrap
15695 msgid ""
15696 " add \"file with a space.img\"\n"
15697 "\n"
15698 msgstr ""
15699
15700 # type: verbatim
15701 #: ../fish/guestfish.pod:397
15702 #, no-wrap
15703 msgid ""
15704 " rm '/file name'\n"
15705 "\n"
15706 msgstr ""
15707
15708 # type: verbatim
15709 #: ../fish/guestfish.pod:399
15710 #, no-wrap
15711 msgid ""
15712 " rm '/\"'\n"
15713 "\n"
15714 msgstr ""
15715
15716 # type: textblock
15717 #: ../fish/guestfish.pod:401
15718 msgid ""
15719 "A few commands require a list of strings to be passed.  For these, use a "
15720 "whitespace-separated list, enclosed in quotes.  Strings containing "
15721 "whitespace to be passed through must be enclosed in single quotes.  A "
15722 "literal single quote must be escaped with a backslash."
15723 msgstr ""
15724
15725 # type: verbatim
15726 #: ../fish/guestfish.pod:406
15727 #, no-wrap
15728 msgid ""
15729 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
15730 " command \"/bin/echo 'foo      bar'\"\n"
15731 " command \"/bin/echo \\'foo\\'\"\n"
15732 "\n"
15733 msgstr ""
15734
15735 # type: =head1
15736 #: ../fish/guestfish.pod:410
15737 msgid "OPTIONAL ARGUMENTS"
15738 msgstr ""
15739
15740 # type: textblock
15741 #: ../fish/guestfish.pod:412
15742 msgid ""
15743 "Some commands take optional arguments.  These arguments appear in this "
15744 "documentation as C<[argname:..]>.  You can use them as in these examples:"
15745 msgstr ""
15746
15747 # type: verbatim
15748 #: ../fish/guestfish.pod:416
15749 #, no-wrap
15750 msgid ""
15751 " add-drive-opts filename\n"
15752 "\n"
15753 msgstr ""
15754
15755 # type: verbatim
15756 #: ../fish/guestfish.pod:418
15757 #, no-wrap
15758 msgid ""
15759 " add-drive-opts filename readonly:true\n"
15760 "\n"
15761 msgstr ""
15762
15763 # type: verbatim
15764 #: ../fish/guestfish.pod:420
15765 #, no-wrap
15766 msgid ""
15767 " add-drive-opts filename format:qcow2 readonly:false\n"
15768 "\n"
15769 msgstr ""
15770
15771 # type: textblock
15772 #: ../fish/guestfish.pod:422
15773 msgid ""
15774 "Each optional argument can appear at most once.  All optional arguments must "
15775 "appear after the required ones."
15776 msgstr ""
15777
15778 # type: =head1
15779 #: ../fish/guestfish.pod:425
15780 msgid "NUMBERS"
15781 msgstr ""
15782
15783 # type: textblock
15784 #: ../fish/guestfish.pod:427
15785 msgid "This section applies to all commands which can take integers as parameters."
15786 msgstr ""
15787
15788 # type: =head2
15789 #: ../fish/guestfish.pod:430
15790 msgid "SIZE SUFFIX"
15791 msgstr ""
15792
15793 # type: textblock
15794 #: ../fish/guestfish.pod:432
15795 msgid ""
15796 "When the command takes a parameter measured in bytes, you can use one of the "
15797 "following suffixes to specify kilobytes, megabytes and larger sizes:"
15798 msgstr ""
15799
15800 # type: =item
15801 #: ../fish/guestfish.pod:438
15802 msgid "B<k> or B<K> or B<KiB>"
15803 msgstr ""
15804
15805 # type: textblock
15806 #: ../fish/guestfish.pod:440
15807 msgid "The size in kilobytes (multiplied by 1024)."
15808 msgstr ""
15809
15810 # type: =item
15811 #: ../fish/guestfish.pod:442
15812 msgid "B<KB>"
15813 msgstr ""
15814
15815 # type: textblock
15816 #: ../fish/guestfish.pod:444
15817 msgid "The size in SI 1000 byte units."
15818 msgstr ""
15819
15820 # type: =item
15821 #: ../fish/guestfish.pod:446
15822 msgid "B<M> or B<MiB>"
15823 msgstr ""
15824
15825 # type: textblock
15826 #: ../fish/guestfish.pod:448
15827 msgid "The size in megabytes (multiplied by 1048576)."
15828 msgstr ""
15829
15830 # type: =item
15831 #: ../fish/guestfish.pod:450
15832 msgid "B<MB>"
15833 msgstr ""
15834
15835 # type: textblock
15836 #: ../fish/guestfish.pod:452
15837 msgid "The size in SI 1000000 byte units."
15838 msgstr ""
15839
15840 # type: =item
15841 #: ../fish/guestfish.pod:454
15842 msgid "B<G> or B<GiB>"
15843 msgstr ""
15844
15845 # type: textblock
15846 #: ../fish/guestfish.pod:456
15847 msgid "The size in gigabytes (multiplied by 2**30)."
15848 msgstr ""
15849
15850 # type: =item
15851 #: ../fish/guestfish.pod:458
15852 msgid "B<GB>"
15853 msgstr ""
15854
15855 # type: textblock
15856 #: ../fish/guestfish.pod:460
15857 msgid "The size in SI 10**9 byte units."
15858 msgstr ""
15859
15860 # type: =item
15861 #: ../fish/guestfish.pod:462
15862 msgid "B<T> or B<TiB>"
15863 msgstr ""
15864
15865 # type: textblock
15866 #: ../fish/guestfish.pod:464
15867 msgid "The size in terabytes (multiplied by 2**40)."
15868 msgstr ""
15869
15870 # type: =item
15871 #: ../fish/guestfish.pod:466
15872 msgid "B<TB>"
15873 msgstr ""
15874
15875 # type: textblock
15876 #: ../fish/guestfish.pod:468
15877 msgid "The size in SI 10**12 byte units."
15878 msgstr ""
15879
15880 # type: =item
15881 #: ../fish/guestfish.pod:470
15882 msgid "B<P> or B<PiB>"
15883 msgstr ""
15884
15885 # type: textblock
15886 #: ../fish/guestfish.pod:472
15887 msgid "The size in petabytes (multiplied by 2**50)."
15888 msgstr ""
15889
15890 # type: =item
15891 #: ../fish/guestfish.pod:474
15892 msgid "B<PB>"
15893 msgstr ""
15894
15895 # type: textblock
15896 #: ../fish/guestfish.pod:476
15897 msgid "The size in SI 10**15 byte units."
15898 msgstr ""
15899
15900 # type: =item
15901 #: ../fish/guestfish.pod:478
15902 msgid "B<E> or B<EiB>"
15903 msgstr ""
15904
15905 # type: textblock
15906 #: ../fish/guestfish.pod:480
15907 msgid "The size in exabytes (multiplied by 2**60)."
15908 msgstr ""
15909
15910 # type: =item
15911 #: ../fish/guestfish.pod:482
15912 msgid "B<EB>"
15913 msgstr ""
15914
15915 # type: textblock
15916 #: ../fish/guestfish.pod:484
15917 msgid "The size in SI 10**18 byte units."
15918 msgstr ""
15919
15920 # type: =item
15921 #: ../fish/guestfish.pod:486
15922 msgid "B<Z> or B<ZiB>"
15923 msgstr ""
15924
15925 # type: textblock
15926 #: ../fish/guestfish.pod:488
15927 msgid "The size in zettabytes (multiplied by 2**70)."
15928 msgstr ""
15929
15930 # type: =item
15931 #: ../fish/guestfish.pod:490
15932 msgid "B<ZB>"
15933 msgstr ""
15934
15935 # type: textblock
15936 #: ../fish/guestfish.pod:492
15937 msgid "The size in SI 10**21 byte units."
15938 msgstr ""
15939
15940 # type: =item
15941 #: ../fish/guestfish.pod:494
15942 msgid "B<Y> or B<YiB>"
15943 msgstr ""
15944
15945 # type: textblock
15946 #: ../fish/guestfish.pod:496
15947 msgid "The size in yottabytes (multiplied by 2**80)."
15948 msgstr ""
15949
15950 # type: =item
15951 #: ../fish/guestfish.pod:498
15952 msgid "B<YB>"
15953 msgstr ""
15954
15955 # type: textblock
15956 #: ../fish/guestfish.pod:500
15957 msgid "The size in SI 10**24 byte units."
15958 msgstr ""
15959
15960 # type: verbatim
15961 #: ../fish/guestfish.pod:506
15962 #, no-wrap
15963 msgid ""
15964 " truncate-size /file 1G\n"
15965 "\n"
15966 msgstr ""
15967
15968 # type: textblock
15969 #: ../fish/guestfish.pod:508
15970 msgid "would truncate the file to 1 gigabyte."
15971 msgstr ""
15972
15973 # type: textblock
15974 #: ../fish/guestfish.pod:510
15975 msgid ""
15976 "Be careful because a few commands take sizes in kilobytes or megabytes "
15977 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
15978 "Adding a suffix will probably not do what you expect."
15979 msgstr ""
15980
15981 # type: =head2
15982 #: ../fish/guestfish.pod:514
15983 msgid "OCTAL AND HEXADECIMAL NUMBERS"
15984 msgstr ""
15985
15986 # type: textblock
15987 #: ../fish/guestfish.pod:516
15988 msgid ""
15989 "For specifying the radix (base) use the C convention: C<0> to prefix an "
15990 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
15991 msgstr ""
15992
15993 # type: verbatim
15994 #: ../fish/guestfish.pod:519
15995 #, no-wrap
15996 msgid ""
15997 " 1234      decimal number 1234\n"
15998 " 02322     octal number, equivalent to decimal 1234\n"
15999 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16000 "\n"
16001 msgstr ""
16002
16003 # type: textblock
16004 #: ../fish/guestfish.pod:523
16005 msgid ""
16006 "When using the C<chmod> command, you almost always want to specify an octal "
16007 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16008 "L<chmod(1)> program):"
16009 msgstr ""
16010
16011 # type: verbatim
16012 #: ../fish/guestfish.pod:527
16013 #, no-wrap
16014 msgid ""
16015 " chmod 0777 /public  # OK\n"
16016 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16017 "\n"
16018 msgstr ""
16019
16020 # type: textblock
16021 #: ../fish/guestfish.pod:530
16022 msgid ""
16023 "Commands that return numbers usually print them in decimal, but some "
16024 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16025 "octal, preceeded by C<0>)."
16026 msgstr ""
16027
16028 # type: =head1
16029 #: ../fish/guestfish.pod:534
16030 msgid "WILDCARDS AND GLOBBING"
16031 msgstr ""
16032
16033 # type: textblock
16034 #: ../fish/guestfish.pod:536
16035 msgid ""
16036 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16037 "(globbing) by default.  So for example the following will not do what you "
16038 "expect:"
16039 msgstr ""
16040
16041 # type: verbatim
16042 #: ../fish/guestfish.pod:540
16043 #, no-wrap
16044 msgid ""
16045 " rm-rf /home/*\n"
16046 "\n"
16047 msgstr ""
16048
16049 # type: textblock
16050 #: ../fish/guestfish.pod:542
16051 msgid ""
16052 "Assuming you don't have a directory called literally C</home/*> then the "
16053 "above command will return an error."
16054 msgstr ""
16055
16056 # type: textblock
16057 #: ../fish/guestfish.pod:545
16058 msgid "To perform wildcard expansion, use the C<glob> command."
16059 msgstr ""
16060
16061 # type: verbatim
16062 #: ../fish/guestfish.pod:547
16063 #, no-wrap
16064 msgid ""
16065 " glob rm-rf /home/*\n"
16066 "\n"
16067 msgstr ""
16068
16069 # type: textblock
16070 #: ../fish/guestfish.pod:549
16071 msgid ""
16072 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16073 "many times), equivalent to:"
16074 msgstr ""
16075
16076 # type: verbatim
16077 #: ../fish/guestfish.pod:552
16078 #, no-wrap
16079 msgid ""
16080 " rm-rf /home/jim\n"
16081 " rm-rf /home/joe\n"
16082 " rm-rf /home/mary\n"
16083 "\n"
16084 msgstr ""
16085
16086 # type: textblock
16087 #: ../fish/guestfish.pod:556
16088 msgid "C<glob> only works on simple guest paths and not on device names."
16089 msgstr ""
16090
16091 # type: textblock
16092 #: ../fish/guestfish.pod:558
16093 msgid ""
16094 "If you have several parameters, each containing a wildcard, then glob will "
16095 "perform a Cartesian product."
16096 msgstr ""
16097
16098 # type: =head1
16099 #: ../fish/guestfish.pod:561
16100 msgid "COMMENTS"
16101 msgstr ""
16102
16103 # type: textblock
16104 #: ../fish/guestfish.pod:563
16105 msgid ""
16106 "Any line which starts with a I<#> character is treated as a comment and "
16107 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16108 "a command.  For example:"
16109 msgstr ""
16110
16111 # type: verbatim
16112 #: ../fish/guestfish.pod:567
16113 #, no-wrap
16114 msgid ""
16115 " # this is a comment\n"
16116 "         # this is a comment\n"
16117 " foo # NOT a comment\n"
16118 "\n"
16119 msgstr ""
16120
16121 # type: textblock
16122 #: ../fish/guestfish.pod:571
16123 msgid "Blank lines are also ignored."
16124 msgstr ""
16125
16126 # type: =head1
16127 #: ../fish/guestfish.pod:573
16128 msgid "RUNNING COMMANDS LOCALLY"
16129 msgstr ""
16130
16131 # type: textblock
16132 #: ../fish/guestfish.pod:575
16133 msgid ""
16134 "Any line which starts with a I<!> character is treated as a command sent to "
16135 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16136 msgstr ""
16137
16138 # type: verbatim
16139 #: ../fish/guestfish.pod:579
16140 #, no-wrap
16141 msgid ""
16142 " !mkdir local\n"
16143 " tgz-out /remote local/remote-data.tar.gz\n"
16144 "\n"
16145 msgstr ""
16146
16147 # type: textblock
16148 #: ../fish/guestfish.pod:582
16149 msgid ""
16150 "will create a directory C<local> on the host, and then export the contents "
16151 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16152 "(See C<tgz-out>)."
16153 msgstr ""
16154
16155 # type: textblock
16156 #: ../fish/guestfish.pod:586
16157 msgid ""
16158 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16159 "effect, due to the way that subprocesses work in Unix."
16160 msgstr ""
16161
16162 # type: =head1
16163 #: ../fish/guestfish.pod:589
16164 msgid "PIPES"
16165 msgstr ""
16166
16167 # type: textblock
16168 #: ../fish/guestfish.pod:591
16169 msgid ""
16170 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
16171 "command (a guestfish command) to the second command (any host command).  For "
16172 "example:"
16173 msgstr ""
16174
16175 # type: verbatim
16176 #: ../fish/guestfish.pod:595
16177 #, no-wrap
16178 msgid ""
16179 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
16180 "\n"
16181 msgstr ""
16182
16183 # type: textblock
16184 #: ../fish/guestfish.pod:597
16185 msgid ""
16186 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
16187 "program).  The above command would list all accounts in the guest filesystem "
16188 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
16189 msgstr ""
16190
16191 # type: verbatim
16192 #: ../fish/guestfish.pod:602
16193 #, no-wrap
16194 msgid ""
16195 " hexdump /bin/ls | head\n"
16196 " list-devices | tail -1\n"
16197 " tgz-out / - | tar ztf -\n"
16198 "\n"
16199 msgstr ""
16200
16201 # type: textblock
16202 #: ../fish/guestfish.pod:606
16203 msgid ""
16204 "The space before the pipe symbol is required, any space after the pipe "
16205 "symbol is optional.  Everything after the pipe symbol is just passed "
16206 "straight to the host shell, so it can contain redirections, globs and "
16207 "anything else that makes sense on the host side."
16208 msgstr ""
16209
16210 # type: textblock
16211 #: ../fish/guestfish.pod:611
16212 msgid ""
16213 "To use a literal argument which begins with a pipe symbol, you have to quote "
16214 "it, eg:"
16215 msgstr ""
16216
16217 # type: verbatim
16218 #: ../fish/guestfish.pod:614
16219 #, no-wrap
16220 msgid ""
16221 " echo \"|\"\n"
16222 "\n"
16223 msgstr ""
16224
16225 # type: =head1
16226 #: ../fish/guestfish.pod:616
16227 msgid "HOME DIRECTORIES"
16228 msgstr ""
16229
16230 # type: textblock
16231 #: ../fish/guestfish.pod:618
16232 msgid ""
16233 "If a parameter starts with the character C<~> then the tilde may be expanded "
16234 "as a home directory path (either C<~> for the current user's home directory, "
16235 "or C<~user> for another user)."
16236 msgstr ""
16237
16238 # type: textblock
16239 #: ../fish/guestfish.pod:622
16240 msgid ""
16241 "Note that home directory expansion happens for users known I<on the host>, "
16242 "not in the guest filesystem."
16243 msgstr ""
16244
16245 # type: textblock
16246 #: ../fish/guestfish.pod:625
16247 msgid ""
16248 "To use a literal argument which begins with a tilde, you have to quote it, "
16249 "eg:"
16250 msgstr ""
16251
16252 # type: verbatim
16253 #: ../fish/guestfish.pod:628
16254 #, no-wrap
16255 msgid ""
16256 " echo \"~\"\n"
16257 "\n"
16258 msgstr ""
16259
16260 # type: textblock
16261 #: ../fish/guestfish.pod:632
16262 msgid ""
16263 "Libguestfs has some support for Linux guests encrypted according to the "
16264 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
16265 "disk encryption systems used by modern Linux guests.  Currently only "
16266 "LVM-on-LUKS is supported."
16267 msgstr ""
16268
16269 # type: textblock
16270 #: ../fish/guestfish.pod:637
16271 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
16272 msgstr ""
16273
16274 # type: verbatim
16275 #: ../fish/guestfish.pod:639
16276 #, no-wrap
16277 msgid ""
16278 " ><fs> vfs-type /dev/sda2\n"
16279 " crypto_LUKS\n"
16280 "\n"
16281 msgstr ""
16282
16283 # type: textblock
16284 #: ../fish/guestfish.pod:642
16285 msgid ""
16286 "Then open those devices using L</luks-open>.  This creates a device-mapper "
16287 "device called C</dev/mapper/luksdev>."
16288 msgstr ""
16289
16290 # type: verbatim
16291 #: ../fish/guestfish.pod:645
16292 #, no-wrap
16293 msgid ""
16294 " ><fs> luks-open /dev/sda2 luksdev\n"
16295 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
16296 "\n"
16297 msgstr ""
16298
16299 # type: textblock
16300 #: ../fish/guestfish.pod:648
16301 msgid ""
16302 "Finally you have to tell LVM to scan for volume groups on the newly created "
16303 "mapper device:"
16304 msgstr ""
16305
16306 # type: verbatim
16307 #: ../fish/guestfish.pod:651
16308 #, no-wrap
16309 msgid ""
16310 " vgscan\n"
16311 " vg-activate-all true\n"
16312 "\n"
16313 msgstr ""
16314
16315 # type: textblock
16316 #: ../fish/guestfish.pod:654
16317 msgid "The logical volume(s) can now be mounted in the usual way."
16318 msgstr ""
16319
16320 # type: textblock
16321 #: ../fish/guestfish.pod:656
16322 msgid ""
16323 "Before closing a LUKS device you must unmount any logical volumes on it and "
16324 "deactivate the volume groups by calling C<vg-activate false VG> on each "
16325 "one.  Then you can close the mapper device:"
16326 msgstr ""
16327
16328 # type: verbatim
16329 #: ../fish/guestfish.pod:660
16330 #, no-wrap
16331 msgid ""
16332 " vg-activate false /dev/VG\n"
16333 " luks-close /dev/mapper/luksdev\n"
16334 "\n"
16335 msgstr ""
16336
16337 # type: =head1
16338 #: ../fish/guestfish.pod:663
16339 msgid "WINDOWS PATHS"
16340 msgstr ""
16341
16342 # type: textblock
16343 #: ../fish/guestfish.pod:665
16344 msgid ""
16345 "If a path is prefixed with C<win:> then you can use Windows-style paths "
16346 "(with some limitations).  The following commands are equivalent:"
16347 msgstr ""
16348
16349 # type: verbatim
16350 #: ../fish/guestfish.pod:668
16351 #, no-wrap
16352 msgid ""
16353 " file /WINDOWS/system32/config/system.LOG\n"
16354 "\n"
16355 msgstr ""
16356
16357 # type: verbatim
16358 #: ../fish/guestfish.pod:670
16359 #, no-wrap
16360 msgid ""
16361 " file win:/windows/system32/config/system.log\n"
16362 "\n"
16363 msgstr ""
16364
16365 # type: verbatim
16366 #: ../fish/guestfish.pod:672
16367 #, no-wrap
16368 msgid ""
16369 " file win:\\windows\\system32\\config\\system.log\n"
16370 "\n"
16371 msgstr ""
16372
16373 # type: verbatim
16374 #: ../fish/guestfish.pod:674
16375 #, no-wrap
16376 msgid ""
16377 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
16378 "\n"
16379 msgstr ""
16380
16381 # type: textblock
16382 #: ../fish/guestfish.pod:676
16383 msgid ""
16384 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
16385 "handles case insensitivity like Windows would.  This only works in argument "
16386 "positions that expect a path."
16387 msgstr ""
16388
16389 # type: =head1
16390 #: ../fish/guestfish.pod:680
16391 msgid "UPLOADING AND DOWNLOADING FILES"
16392 msgstr ""
16393
16394 # type: textblock
16395 #: ../fish/guestfish.pod:682
16396 msgid ""
16397 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
16398 "others which upload from or download to a local file, you can use the "
16399 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
16400 msgstr ""
16401
16402 # type: verbatim
16403 #: ../fish/guestfish.pod:686
16404 #, no-wrap
16405 msgid ""
16406 " upload - /foo\n"
16407 "\n"
16408 msgstr ""
16409
16410 # type: textblock
16411 #: ../fish/guestfish.pod:688
16412 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
16413 msgstr ""
16414
16415 # type: verbatim
16416 #: ../fish/guestfish.pod:691
16417 #, no-wrap
16418 msgid ""
16419 " tar-out /etc - | tar tf -\n"
16420 "\n"
16421 msgstr ""
16422
16423 # type: textblock
16424 #: ../fish/guestfish.pod:693
16425 msgid ""
16426 "writes the tarball to stdout and then pipes that into the external \"tar\" "
16427 "command (see L</PIPES>)."
16428 msgstr ""
16429
16430 # type: textblock
16431 #: ../fish/guestfish.pod:696
16432 msgid ""
16433 "When using C<-> to read from stdin, the input is read up to the end of "
16434 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
16435 "some arbitrary end marker:"
16436 msgstr ""
16437
16438 # type: verbatim
16439 #: ../fish/guestfish.pod:700
16440 #, no-wrap
16441 msgid ""
16442 " upload -<<END /foo\n"
16443 " input line 1\n"
16444 " input line 2\n"
16445 " input line 3\n"
16446 " END\n"
16447 "\n"
16448 msgstr ""
16449
16450 # type: textblock
16451 #: ../fish/guestfish.pod:706
16452 msgid ""
16453 "Any string of characters can be used instead of C<END>.  The end marker must "
16454 "appear on a line of its own, without any preceeding or following characters "
16455 "(not even spaces)."
16456 msgstr ""
16457
16458 # type: textblock
16459 #: ../fish/guestfish.pod:710
16460 msgid ""
16461 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
16462 "upload local files (so-called \"FileIn\" parameters in the generator)."
16463 msgstr ""
16464
16465 # type: =head1
16466 #: ../fish/guestfish.pod:713
16467 msgid "EXIT ON ERROR BEHAVIOUR"
16468 msgstr ""
16469
16470 # type: textblock
16471 #: ../fish/guestfish.pod:715
16472 msgid ""
16473 "By default, guestfish will ignore any errors when in interactive mode "
16474 "(ie. taking commands from a human over a tty), and will exit on the first "
16475 "error in non-interactive mode (scripts, commands given on the command line)."
16476 msgstr ""
16477
16478 # type: textblock
16479 #: ../fish/guestfish.pod:720
16480 msgid ""
16481 "If you prefix a command with a I<-> character, then that command will not "
16482 "cause guestfish to exit, even if that (one) command returns an error."
16483 msgstr ""
16484
16485 # type: =head1
16486 #: ../fish/guestfish.pod:724
16487 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
16488 msgstr ""
16489
16490 # type: textblock
16491 #: ../fish/guestfish.pod:726
16492 msgid ""
16493 "Guestfish can be remote-controlled over a socket.  This is useful "
16494 "particularly in shell scripts where you want to make several different "
16495 "changes to a filesystem, but you don't want the overhead of starting up a "
16496 "guestfish process each time."
16497 msgstr ""
16498
16499 # type: textblock
16500 #: ../fish/guestfish.pod:731
16501 msgid "Start a guestfish server process using:"
16502 msgstr ""
16503
16504 # type: verbatim
16505 #: ../fish/guestfish.pod:733
16506 #, no-wrap
16507 msgid ""
16508 " eval `guestfish --listen`\n"
16509 "\n"
16510 msgstr ""
16511
16512 # type: textblock
16513 #: ../fish/guestfish.pod:735
16514 msgid "and then send it commands by doing:"
16515 msgstr ""
16516
16517 # type: verbatim
16518 #: ../fish/guestfish.pod:737
16519 #, no-wrap
16520 msgid ""
16521 " guestfish --remote cmd [...]\n"
16522 "\n"
16523 msgstr ""
16524
16525 # type: textblock
16526 #: ../fish/guestfish.pod:739
16527 msgid "To cause the server to exit, send it the exit command:"
16528 msgstr ""
16529
16530 # type: verbatim
16531 #: ../fish/guestfish.pod:741
16532 #, no-wrap
16533 msgid ""
16534 " guestfish --remote exit\n"
16535 "\n"
16536 msgstr ""
16537
16538 # type: textblock
16539 #: ../fish/guestfish.pod:743
16540 msgid ""
16541 "Note that the server will normally exit if there is an error in a command.  "
16542 "You can change this in the usual way.  See section L</EXIT ON ERROR "
16543 "BEHAVIOUR>."
16544 msgstr ""
16545
16546 # type: =head2
16547 #: ../fish/guestfish.pod:747
16548 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
16549 msgstr ""
16550
16551 # type: textblock
16552 #: ../fish/guestfish.pod:749
16553 msgid ""
16554 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
16555 "is how the I<--remote> option knows where to send the commands.  You can "
16556 "have several guestfish listener processes running using:"
16557 msgstr ""
16558
16559 # type: verbatim
16560 #: ../fish/guestfish.pod:753
16561 #, no-wrap
16562 msgid ""
16563 " eval `guestfish --listen`\n"
16564 " pid1=$GUESTFISH_PID\n"
16565 " eval `guestfish --listen`\n"
16566 " pid2=$GUESTFISH_PID\n"
16567 " ...\n"
16568 " guestfish --remote=$pid1 cmd\n"
16569 " guestfish --remote=$pid2 cmd\n"
16570 "\n"
16571 msgstr ""
16572
16573 # type: =head2
16574 #: ../fish/guestfish.pod:761
16575 msgid "REMOTE CONTROL DETAILS"
16576 msgstr ""
16577
16578 # type: textblock
16579 #: ../fish/guestfish.pod:763
16580 msgid ""
16581 "Remote control happens over a Unix domain socket called "
16582 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
16583 "of the process, and C<$PID> is the process ID of the server."
16584 msgstr ""
16585
16586 # type: textblock
16587 #: ../fish/guestfish.pod:767
16588 msgid "Guestfish client and server versions must match exactly."
16589 msgstr ""
16590
16591 # type: =head1
16592 #: ../fish/guestfish.pod:769
16593 msgid "PREPARED DISK IMAGES"
16594 msgstr ""
16595
16596 # type: textblock
16597 #: ../fish/guestfish.pod:771
16598 msgid ""
16599 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
16600 "preformatted disk images that guestfish can make for you to save typing.  "
16601 "This is particularly useful for testing purposes.  This option is used "
16602 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
16603 "can be mixed with I<-a>)."
16604 msgstr ""
16605
16606 # type: textblock
16607 #: ../fish/guestfish.pod:777
16608 msgid ""
16609 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
16610 "the second and so on.  Existing files in the current directory are "
16611 "I<overwritten>."
16612 msgstr ""
16613
16614 # type: textblock
16615 #: ../fish/guestfish.pod:781
16616 msgid ""
16617 "The type briefly describes how the disk should be sized, partitioned, how "
16618 "filesystem(s) should be created, and how content should be added.  "
16619 "Optionally the type can be followed by extra parameters, separated by C<:> "
16620 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
16621 "sparsely-allocated disk, containing a single partition, with the partition "
16622 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
16623 "on a 1GB disk instead."
16624 msgstr ""
16625
16626 # type: textblock
16627 #: ../fish/guestfish.pod:789
16628 msgid "To list the available types and any extra parameters they take, run:"
16629 msgstr ""
16630
16631 # type: textblock
16632 #: ../fish/guestfish.pod:793
16633 msgid ""
16634 "Note that the prepared filesystem is not mounted.  You would usually have to "
16635 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
16636 msgstr ""
16637
16638 # type: textblock
16639 #: ../fish/guestfish.pod:797
16640 msgid ""
16641 "If any I<-N> or I<--new> options are given, the guest is automatically "
16642 "launched."
16643 msgstr ""
16644
16645 # type: textblock
16646 #: ../fish/guestfish.pod:802
16647 msgid "Create a 100MB disk with an ext4-formatted partition:"
16648 msgstr ""
16649
16650 # type: verbatim
16651 #: ../fish/guestfish.pod:804
16652 #, no-wrap
16653 msgid ""
16654 " guestfish -N fs:ext4\n"
16655 "\n"
16656 msgstr ""
16657
16658 # type: textblock
16659 #: ../fish/guestfish.pod:806
16660 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
16661 msgstr ""
16662
16663 # type: verbatim
16664 #: ../fish/guestfish.pod:808
16665 #, no-wrap
16666 msgid ""
16667 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
16668 "\n"
16669 msgstr ""
16670
16671 # type: textblock
16672 #: ../fish/guestfish.pod:810
16673 msgid "Create a blank 200MB disk:"
16674 msgstr ""
16675
16676 # type: verbatim
16677 #: ../fish/guestfish.pod:812
16678 #, no-wrap
16679 msgid ""
16680 " guestfish -N disk:200M\n"
16681 "\n"
16682 msgstr ""
16683
16684 # type: =head1
16685 #: ../fish/guestfish.pod:814
16686 msgid "PROGRESS BARS"
16687 msgstr ""
16688
16689 # type: textblock
16690 #: ../fish/guestfish.pod:816
16691 msgid ""
16692 "Some (not all) long-running commands send progress notification messages as "
16693 "they are running.  Guestfish turns these messages into progress bars."
16694 msgstr ""
16695
16696 # type: textblock
16697 #: ../fish/guestfish.pod:820
16698 msgid ""
16699 "When a command that supports progress bars takes longer than two seconds to "
16700 "run, and if progress bars are enabled, then you will see one appearing below "
16701 "the command:"
16702 msgstr ""
16703
16704 # type: verbatim
16705 #: ../fish/guestfish.pod:824
16706 #, no-wrap
16707 msgid ""
16708 " ><fs> copy-size /large-file /another-file 2048M\n"
16709 " / 10% [#####-----------------------------------------] 00:30\n"
16710 "\n"
16711 msgstr ""
16712
16713 # type: textblock
16714 #: ../fish/guestfish.pod:827
16715 msgid ""
16716 "The spinner on the left hand side moves round once for every progress "
16717 "notification received from the backend.  This is a (reasonably) golden "
16718 "assurance that the command is \"doing something\" even if the progress bar "
16719 "is not moving, because the command is able to send the progress "
16720 "notifications.  When the bar reaches 100% and the command finishes, the "
16721 "spinner disappears."
16722 msgstr ""
16723
16724 # type: textblock
16725 #: ../fish/guestfish.pod:834
16726 msgid ""
16727 "Progress bars are enabled by default when guestfish is used interactively.  "
16728 "You can enable them even for non-interactive modes using I<--progress-bars>, "
16729 "and you can disable them completely using I<--no-progress-bars>."
16730 msgstr ""
16731
16732 # type: =head1
16733 #: ../fish/guestfish.pod:839
16734 msgid "GUESTFISH COMMANDS"
16735 msgstr ""
16736
16737 # type: textblock
16738 #: ../fish/guestfish.pod:841
16739 msgid ""
16740 "The commands in this section are guestfish convenience commands, in other "
16741 "words, they are not part of the L<guestfs(3)> API."
16742 msgstr ""
16743
16744 # type: =head2
16745 #: ../fish/guestfish.pod:844
16746 msgid "help"
16747 msgstr ""
16748
16749 # type: verbatim
16750 #: ../fish/guestfish.pod:846
16751 #, no-wrap
16752 msgid ""
16753 " help\n"
16754 " help cmd\n"
16755 "\n"
16756 msgstr ""
16757
16758 # type: textblock
16759 #: ../fish/guestfish.pod:849
16760 msgid ""
16761 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
16762 "this displays detailed help for a command."
16763 msgstr ""
16764
16765 # type: =head2
16766 #: ../fish/guestfish.pod:852
16767 msgid "quit | exit"
16768 msgstr ""
16769
16770 # type: textblock
16771 #: ../fish/guestfish.pod:854
16772 msgid "This exits guestfish.  You can also use C<^D> key."
16773 msgstr ""
16774
16775 # type: textblock
16776 #: ../fish/guestfish.pod:856
16777 msgid "@FISH_COMMANDS@"
16778 msgstr ""
16779
16780 # type: =head1
16781 #: ../fish/guestfish.pod:858
16782 msgid "COMMANDS"
16783 msgstr ""
16784
16785 # type: =head1
16786 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
16787 msgid "EXIT CODE"
16788 msgstr ""
16789
16790 # type: textblock
16791 #: ../fish/guestfish.pod:864
16792 msgid ""
16793 "guestfish returns 0 if the commands completed without error, or 1 if there "
16794 "was an error."
16795 msgstr ""
16796
16797 # type: =item
16798 #: ../fish/guestfish.pod:871
16799 msgid "EDITOR"
16800 msgstr ""
16801
16802 # type: textblock
16803 #: ../fish/guestfish.pod:873
16804 msgid ""
16805 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
16806 "C<vi>."
16807 msgstr ""
16808
16809 # type: =item
16810 #: ../fish/guestfish.pod:876
16811 msgid "GUESTFISH_PID"
16812 msgstr ""
16813
16814 # type: textblock
16815 #: ../fish/guestfish.pod:878
16816 msgid ""
16817 "Used with the I<--remote> option to specify the remote guestfish process to "
16818 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
16819 msgstr ""
16820
16821 # type: =item
16822 #: ../fish/guestfish.pod:882
16823 msgid "HEXEDITOR"
16824 msgstr ""
16825
16826 # type: textblock
16827 #: ../fish/guestfish.pod:884
16828 msgid ""
16829 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
16830 "not specified, the external L<hexedit(1)> program is used."
16831 msgstr ""
16832
16833 # type: =item
16834 #: ../fish/guestfish.pod:888
16835 msgid "HOME"
16836 msgstr ""
16837
16838 # type: textblock
16839 #: ../fish/guestfish.pod:890
16840 msgid ""
16841 "If compiled with GNU readline support, various files in the home directory "
16842 "can be used.  See L</FILES>."
16843 msgstr ""
16844
16845 # type: textblock
16846 #: ../fish/guestfish.pod:899
16847 msgid ""
16848 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
16849 "effect as using the B<-v> option."
16850 msgstr ""
16851
16852 # type: textblock
16853 #: ../fish/guestfish.pod:911
16854 msgid ""
16855 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
16856 "the discussion of paths in L<guestfs(3)>."
16857 msgstr ""
16858
16859 # type: textblock
16860 #: ../fish/guestfish.pod:922
16861 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
16862 msgstr ""
16863
16864 # type: =item
16865 #: ../fish/guestfish.pod:924
16866 msgid "PAGER"
16867 msgstr ""
16868
16869 # type: textblock
16870 #: ../fish/guestfish.pod:926
16871 msgid ""
16872 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
16873 "C<more>."
16874 msgstr ""
16875
16876 # type: =head1
16877 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
16878 msgid "FILES"
16879 msgstr ""
16880
16881 # type: =item
16882 #: ../fish/guestfish.pod:945
16883 msgid "$HOME/.guestfish"
16884 msgstr ""
16885
16886 # type: textblock
16887 #: ../fish/guestfish.pod:947
16888 msgid ""
16889 "If compiled with GNU readline support, then the command history is saved in "
16890 "this file."
16891 msgstr ""
16892
16893 # type: =item
16894 #: ../fish/guestfish.pod:950
16895 msgid "$HOME/.inputrc"
16896 msgstr ""
16897
16898 # type: =item
16899 #: ../fish/guestfish.pod:952
16900 msgid "/etc/inputrc"
16901 msgstr ""
16902
16903 # type: textblock
16904 #: ../fish/guestfish.pod:954
16905 msgid ""
16906 "If compiled with GNU readline support, then these files can be used to "
16907 "configure readline.  For further information, please see "
16908 "L<readline(3)/INITIALIZATION FILE>."
16909 msgstr ""
16910
16911 # type: textblock
16912 #: ../fish/guestfish.pod:958
16913 msgid "To write rules which only apply to guestfish, use:"
16914 msgstr ""
16915
16916 # type: verbatim
16917 #: ../fish/guestfish.pod:960
16918 #, no-wrap
16919 msgid ""
16920 " $if guestfish\n"
16921 " ...\n"
16922 " $endif\n"
16923 "\n"
16924 msgstr ""
16925
16926 # type: textblock
16927 #: ../fish/guestfish.pod:964
16928 msgid ""
16929 "Variables that you can set in inputrc that change the behaviour of guestfish "
16930 "in useful ways include:"
16931 msgstr ""
16932
16933 # type: =item
16934 #: ../fish/guestfish.pod:969
16935 msgid "completion-ignore-case (default: on)"
16936 msgstr ""
16937
16938 # type: textblock
16939 #: ../fish/guestfish.pod:971
16940 msgid ""
16941 "By default, guestfish will ignore case when tab-completing paths on the "
16942 "disk.  Use:"
16943 msgstr ""
16944
16945 # type: verbatim
16946 #: ../fish/guestfish.pod:974
16947 #, no-wrap
16948 msgid ""
16949 " set completion-ignore-case off\n"
16950 "\n"
16951 msgstr ""
16952
16953 # type: textblock
16954 #: ../fish/guestfish.pod:976
16955 msgid "to make guestfish case sensitive."
16956 msgstr ""
16957
16958 # type: =item
16959 #: ../fish/guestfish.pod:980
16960 msgid "test1.img"
16961 msgstr ""
16962
16963 # type: =item
16964 #: ../fish/guestfish.pod:982
16965 msgid "test2.img (etc)"
16966 msgstr ""
16967
16968 # type: textblock
16969 #: ../fish/guestfish.pod:984
16970 msgid ""
16971 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
16972 "will be created in the file C<test1.img> in the current directory.  The "
16973 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
16974 "the same name will be overwritten."
16975 msgstr ""
16976
16977 # type: textblock
16978 #: ../fish/guestfish.pod:993
16979 msgid ""
16980 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
16981 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
16982 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
16983 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
16984 msgstr ""
16985
16986 # type: textblock
16987 #: ../fish/guestfish.pod:1017 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:234 ../inspector/virt-inspector.pl:384 ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518 ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251 ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206 ../tools/virt-cat.pl:203 ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:273
16988 msgid ""
16989 "This program is free software; you can redistribute it and/or modify it "
16990 "under the terms of the GNU General Public License as published by the Free "
16991 "Software Foundation; either version 2 of the License, or (at your option) "
16992 "any later version."
16993 msgstr ""
16994
16995 # type: textblock
16996 #: ../fish/guestfish.pod:1022 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:239 ../inspector/virt-inspector.pl:389 ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523 ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256 ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211 ../tools/virt-cat.pl:208 ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:278
16997 msgid ""
16998 "This program is distributed in the hope that it will be useful, but WITHOUT "
16999 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17000 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17001 "more details."
17002 msgstr ""
17003
17004 # type: textblock
17005 #: ../fish/guestfish.pod:1027 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:394 ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528 ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261 ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216 ../tools/virt-cat.pl:213 ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:283
17006 msgid ""
17007 "You should have received a copy of the GNU General Public License along with "
17008 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17009 "Ave, Cambridge, MA 02139, USA."
17010 msgstr ""
17011
17012 # type: =head2
17013 #: ../fish/guestfish-actions.pod:1
17014 msgid "add-cdrom"
17015 msgstr ""
17016
17017 # type: verbatim
17018 #: ../fish/guestfish-actions.pod:3
17019 #, no-wrap
17020 msgid ""
17021 " add-cdrom filename\n"
17022 "\n"
17023 msgstr ""
17024
17025 # type: textblock
17026 #: ../fish/guestfish-actions.pod:15
17027 msgid ""
17028 "This call checks for the existence of C<filename>.  This stops you from "
17029 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17030 "and C<http:> URLs.  To specify those, use the general L</config> call "
17031 "instead."
17032 msgstr ""
17033
17034 # type: textblock
17035 #: ../fish/guestfish-actions.pod:22
17036 msgid ""
17037 "If you just want to add an ISO file (often you use this as an efficient way "
17038 "to transfer large files into the guest), then you should probably use "
17039 "L</add-drive-ro> instead."
17040 msgstr ""
17041
17042 # type: =head2
17043 #: ../fish/guestfish-actions.pod:35
17044 msgid "add-drive"
17045 msgstr ""
17046
17047 # type: verbatim
17048 #: ../fish/guestfish-actions.pod:37
17049 #, no-wrap
17050 msgid ""
17051 " add-drive filename\n"
17052 "\n"
17053 msgstr ""
17054
17055 # type: textblock
17056 #: ../fish/guestfish-actions.pod:39
17057 msgid ""
17058 "This function is the equivalent of calling L</add-drive-opts> with no "
17059 "optional parameters, so the disk is added writable, with the format being "
17060 "detected automatically."
17061 msgstr ""
17062
17063 # type: textblock
17064 #: ../fish/guestfish-actions.pod:43
17065 msgid ""
17066 "Automatic detection of the format opens you up to a potential security hole "
17067 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17068 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17069 "you should think about replacing calls to this function with calls to "
17070 "L</add-drive-opts>, and specifying the format."
17071 msgstr ""
17072
17073 # type: =head2
17074 #: ../fish/guestfish-actions.pod:50
17075 msgid "add-drive-opts"
17076 msgstr ""
17077
17078 # type: =head2
17079 #: ../fish/guestfish-actions.pod:52
17080 msgid "add"
17081 msgstr ""
17082
17083 # type: verbatim
17084 #: ../fish/guestfish-actions.pod:54
17085 #, no-wrap
17086 msgid ""
17087 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
17088 "\n"
17089 msgstr ""
17090
17091 # type: textblock
17092 #: ../fish/guestfish-actions.pod:81
17093 msgid ""
17094 "This forces the image format.  If you omit this (or use L</add-drive> or "
17095 "L</add-drive-ro>) then the format is automatically detected.  Possible "
17096 "formats include C<raw> and C<qcow2>."
17097 msgstr ""
17098
17099 # type: textblock
17100 #: ../fish/guestfish-actions.pod:92
17101 msgid ""
17102 "This rarely-used option lets you emulate the behaviour of the deprecated "
17103 "L</add-drive-with-if> call (q.v.)"
17104 msgstr ""
17105
17106 # type: textblock
17107 #: ../fish/guestfish-actions.pod:97
17108 msgid ""
17109 "This command has one or more optional arguments.  See L</OPTIONAL "
17110 "ARGUMENTS>."
17111 msgstr ""
17112
17113 # type: =head2
17114 #: ../fish/guestfish-actions.pod:99
17115 msgid "add-drive-ro"
17116 msgstr ""
17117
17118 # type: =head2
17119 #: ../fish/guestfish-actions.pod:101
17120 msgid "add-ro"
17121 msgstr ""
17122
17123 # type: verbatim
17124 #: ../fish/guestfish-actions.pod:103
17125 #, no-wrap
17126 msgid ""
17127 " add-drive-ro filename\n"
17128 "\n"
17129 msgstr ""
17130
17131 # type: textblock
17132 #: ../fish/guestfish-actions.pod:105
17133 msgid ""
17134 "This function is the equivalent of calling L</add-drive-opts> with the "
17135 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17136 "is added read-only, with the format being detected automatically."
17137 msgstr ""
17138
17139 # type: =head2
17140 #: ../fish/guestfish-actions.pod:110
17141 msgid "add-drive-ro-with-if"
17142 msgstr ""
17143
17144 # type: verbatim
17145 #: ../fish/guestfish-actions.pod:112
17146 #, no-wrap
17147 msgid ""
17148 " add-drive-ro-with-if filename iface\n"
17149 "\n"
17150 msgstr ""
17151
17152 # type: textblock
17153 #: ../fish/guestfish-actions.pod:114
17154 msgid ""
17155 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
17156 "interface emulation to use at run time."
17157 msgstr ""
17158
17159 # type: =head2
17160 #: ../fish/guestfish-actions.pod:124
17161 msgid "add-drive-with-if"
17162 msgstr ""
17163
17164 # type: verbatim
17165 #: ../fish/guestfish-actions.pod:126
17166 #, no-wrap
17167 msgid ""
17168 " add-drive-with-if filename iface\n"
17169 "\n"
17170 msgstr ""
17171
17172 # type: textblock
17173 #: ../fish/guestfish-actions.pod:128
17174 msgid ""
17175 "This is the same as L</add-drive> but it allows you to specify the QEMU "
17176 "interface emulation to use at run time."
17177 msgstr ""
17178
17179 # type: =head2
17180 #: ../fish/guestfish-actions.pod:138
17181 msgid "aug-clear"
17182 msgstr ""
17183
17184 # type: verbatim
17185 #: ../fish/guestfish-actions.pod:140
17186 #, no-wrap
17187 msgid ""
17188 " aug-clear augpath\n"
17189 "\n"
17190 msgstr ""
17191
17192 # type: =head2
17193 #: ../fish/guestfish-actions.pod:145
17194 msgid "aug-close"
17195 msgstr ""
17196
17197 # type: verbatim
17198 #: ../fish/guestfish-actions.pod:147
17199 #, no-wrap
17200 msgid ""
17201 " aug-close\n"
17202 "\n"
17203 msgstr ""
17204
17205 # type: textblock
17206 #: ../fish/guestfish-actions.pod:149
17207 msgid ""
17208 "Close the current Augeas handle and free up any resources used by it.  After "
17209 "calling this, you have to call L</aug-init> again before you can use any "
17210 "other Augeas functions."
17211 msgstr ""
17212
17213 # type: =head2
17214 #: ../fish/guestfish-actions.pod:154
17215 msgid "aug-defnode"
17216 msgstr ""
17217
17218 # type: verbatim
17219 #: ../fish/guestfish-actions.pod:156
17220 #, no-wrap
17221 msgid ""
17222 " aug-defnode name expr val\n"
17223 "\n"
17224 msgstr ""
17225
17226 # type: textblock
17227 #: ../fish/guestfish-actions.pod:161
17228 msgid ""
17229 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
17230 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
17231 "containing that single node."
17232 msgstr ""
17233
17234 # type: =head2
17235 #: ../fish/guestfish-actions.pod:169
17236 msgid "aug-defvar"
17237 msgstr ""
17238
17239 # type: verbatim
17240 #: ../fish/guestfish-actions.pod:171
17241 #, no-wrap
17242 msgid ""
17243 " aug-defvar name expr\n"
17244 "\n"
17245 msgstr ""
17246
17247 # type: =head2
17248 #: ../fish/guestfish-actions.pod:180
17249 msgid "aug-get"
17250 msgstr ""
17251
17252 # type: verbatim
17253 #: ../fish/guestfish-actions.pod:182
17254 #, no-wrap
17255 msgid ""
17256 " aug-get augpath\n"
17257 "\n"
17258 msgstr ""
17259
17260 # type: =head2
17261 #: ../fish/guestfish-actions.pod:187
17262 msgid "aug-init"
17263 msgstr ""
17264
17265 # type: verbatim
17266 #: ../fish/guestfish-actions.pod:189
17267 #, no-wrap
17268 msgid ""
17269 " aug-init root flags\n"
17270 "\n"
17271 msgstr ""
17272
17273 # type: textblock
17274 #: ../fish/guestfish-actions.pod:195
17275 msgid "You must call this before using any other L</aug-*> commands."
17276 msgstr ""
17277
17278 # type: textblock
17279 #: ../fish/guestfish-actions.pod:230
17280 msgid "Do not load the tree in L</aug-init>."
17281 msgstr ""
17282
17283 # type: textblock
17284 #: ../fish/guestfish-actions.pod:234
17285 msgid "To close the handle, you can call L</aug-close>."
17286 msgstr ""
17287
17288 # type: =head2
17289 #: ../fish/guestfish-actions.pod:238
17290 msgid "aug-insert"
17291 msgstr ""
17292
17293 # type: verbatim
17294 #: ../fish/guestfish-actions.pod:240
17295 #, no-wrap
17296 msgid ""
17297 " aug-insert augpath label true|false\n"
17298 "\n"
17299 msgstr ""
17300
17301 # type: =head2
17302 #: ../fish/guestfish-actions.pod:250
17303 msgid "aug-load"
17304 msgstr ""
17305
17306 # type: verbatim
17307 #: ../fish/guestfish-actions.pod:252
17308 #, no-wrap
17309 msgid ""
17310 " aug-load\n"
17311 "\n"
17312 msgstr ""
17313
17314 # type: =head2
17315 #: ../fish/guestfish-actions.pod:259
17316 msgid "aug-ls"
17317 msgstr ""
17318
17319 # type: verbatim
17320 #: ../fish/guestfish-actions.pod:261
17321 #, no-wrap
17322 msgid ""
17323 " aug-ls augpath\n"
17324 "\n"
17325 msgstr ""
17326
17327 # type: textblock
17328 #: ../fish/guestfish-actions.pod:263
17329 msgid ""
17330 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
17331 "resulting nodes into alphabetical order."
17332 msgstr ""
17333
17334 # type: =head2
17335 #: ../fish/guestfish-actions.pod:266
17336 msgid "aug-match"
17337 msgstr ""
17338
17339 # type: verbatim
17340 #: ../fish/guestfish-actions.pod:268
17341 #, no-wrap
17342 msgid ""
17343 " aug-match augpath\n"
17344 "\n"
17345 msgstr ""
17346
17347 # type: =head2
17348 #: ../fish/guestfish-actions.pod:274
17349 msgid "aug-mv"
17350 msgstr ""
17351
17352 # type: verbatim
17353 #: ../fish/guestfish-actions.pod:276
17354 #, no-wrap
17355 msgid ""
17356 " aug-mv src dest\n"
17357 "\n"
17358 msgstr ""
17359
17360 # type: =head2
17361 #: ../fish/guestfish-actions.pod:281
17362 msgid "aug-rm"
17363 msgstr ""
17364
17365 # type: verbatim
17366 #: ../fish/guestfish-actions.pod:283
17367 #, no-wrap
17368 msgid ""
17369 " aug-rm augpath\n"
17370 "\n"
17371 msgstr ""
17372
17373 # type: =head2
17374 #: ../fish/guestfish-actions.pod:289
17375 msgid "aug-save"
17376 msgstr ""
17377
17378 # type: verbatim
17379 #: ../fish/guestfish-actions.pod:291
17380 #, no-wrap
17381 msgid ""
17382 " aug-save\n"
17383 "\n"
17384 msgstr ""
17385
17386 # type: textblock
17387 #: ../fish/guestfish-actions.pod:295
17388 msgid ""
17389 "The flags which were passed to L</aug-init> affect exactly how files are "
17390 "saved."
17391 msgstr ""
17392
17393 # type: =head2
17394 #: ../fish/guestfish-actions.pod:298
17395 msgid "aug-set"
17396 msgstr ""
17397
17398 # type: verbatim
17399 #: ../fish/guestfish-actions.pod:300
17400 #, no-wrap
17401 msgid ""
17402 " aug-set augpath val\n"
17403 "\n"
17404 msgstr ""
17405
17406 # type: textblock
17407 #: ../fish/guestfish-actions.pod:304
17408 msgid ""
17409 "In the Augeas API, it is possible to clear a node by setting the value to "
17410 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17411 "this call.  Instead you must use the L</aug-clear> call."
17412 msgstr ""
17413
17414 # type: =head2
17415 #: ../fish/guestfish-actions.pod:309
17416 msgid "available"
17417 msgstr ""
17418
17419 # type: verbatim
17420 #: ../fish/guestfish-actions.pod:311
17421 #, no-wrap
17422 msgid ""
17423 " available 'groups ...'\n"
17424 "\n"
17425 msgstr ""
17426
17427 # type: textblock
17428 #: ../fish/guestfish-actions.pod:317
17429 msgid ""
17430 "The libguestfs groups, and the functions that those groups correspond to, "
17431 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17432 "runtime by calling L</available-all-groups>."
17433 msgstr ""
17434
17435 # type: textblock
17436 #: ../fish/guestfish-actions.pod:341
17437 msgid "You must call L</launch> before calling this function."
17438 msgstr ""
17439
17440 # type: textblock
17441 #: ../fish/guestfish-actions.pod:363
17442 msgid ""
17443 "This call was added in version C<1.0.80>.  In previous versions of "
17444 "libguestfs all you could do would be to speculatively execute a command to "
17445 "find out if the daemon implemented it.  See also L</version>."
17446 msgstr ""
17447
17448 # type: =head2
17449 #: ../fish/guestfish-actions.pod:370
17450 msgid "available-all-groups"
17451 msgstr ""
17452
17453 # type: verbatim
17454 #: ../fish/guestfish-actions.pod:372
17455 #, no-wrap
17456 msgid ""
17457 " available-all-groups\n"
17458 "\n"
17459 msgstr ""
17460
17461 # type: textblock
17462 #: ../fish/guestfish-actions.pod:374
17463 msgid ""
17464 "This command returns a list of all optional groups that this daemon knows "
17465 "about.  Note this returns both supported and unsupported groups.  To find "
17466 "out which ones the daemon can actually support you have to call "
17467 "L</available> on each member of the returned list."
17468 msgstr ""
17469
17470 # type: textblock
17471 #: ../fish/guestfish-actions.pod:380
17472 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
17473 msgstr ""
17474
17475 # type: =head2
17476 #: ../fish/guestfish-actions.pod:382
17477 msgid "base64-in"
17478 msgstr ""
17479
17480 # type: verbatim
17481 #: ../fish/guestfish-actions.pod:384
17482 #, no-wrap
17483 msgid ""
17484 " base64-in (base64file|-) filename\n"
17485 "\n"
17486 msgstr ""
17487
17488 # type: textblock
17489 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398 ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835 ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3912 ../fish/guestfish-actions.pod:3924 ../fish/guestfish-actions.pod:3935 ../fish/guestfish-actions.pod:3946 ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4007 ../fish/guestfish-actions.pod:4061 ../fish/guestfish-actions.pod:4084
17490 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17491 msgstr ""
17492
17493 # type: =head2
17494 #: ../fish/guestfish-actions.pod:391
17495 msgid "base64-out"
17496 msgstr ""
17497
17498 # type: verbatim
17499 #: ../fish/guestfish-actions.pod:393
17500 #, no-wrap
17501 msgid ""
17502 " base64-out filename (base64file|-)\n"
17503 "\n"
17504 msgstr ""
17505
17506 # type: =head2
17507 #: ../fish/guestfish-actions.pod:400
17508 msgid "blockdev-flushbufs"
17509 msgstr ""
17510
17511 # type: verbatim
17512 #: ../fish/guestfish-actions.pod:402
17513 #, no-wrap
17514 msgid ""
17515 " blockdev-flushbufs device\n"
17516 "\n"
17517 msgstr ""
17518
17519 # type: =head2
17520 #: ../fish/guestfish-actions.pod:409
17521 msgid "blockdev-getbsz"
17522 msgstr ""
17523
17524 # type: verbatim
17525 #: ../fish/guestfish-actions.pod:411
17526 #, no-wrap
17527 msgid ""
17528 " blockdev-getbsz device\n"
17529 "\n"
17530 msgstr ""
17531
17532 # type: =head2
17533 #: ../fish/guestfish-actions.pod:420
17534 msgid "blockdev-getro"
17535 msgstr ""
17536
17537 # type: verbatim
17538 #: ../fish/guestfish-actions.pod:422
17539 #, no-wrap
17540 msgid ""
17541 " blockdev-getro device\n"
17542 "\n"
17543 msgstr ""
17544
17545 # type: =head2
17546 #: ../fish/guestfish-actions.pod:429
17547 msgid "blockdev-getsize64"
17548 msgstr ""
17549
17550 # type: verbatim
17551 #: ../fish/guestfish-actions.pod:431
17552 #, no-wrap
17553 msgid ""
17554 " blockdev-getsize64 device\n"
17555 "\n"
17556 msgstr ""
17557
17558 # type: textblock
17559 #: ../fish/guestfish-actions.pod:435
17560 msgid "See also L</blockdev-getsz>."
17561 msgstr ""
17562
17563 # type: =head2
17564 #: ../fish/guestfish-actions.pod:439
17565 msgid "blockdev-getss"
17566 msgstr ""
17567
17568 # type: verbatim
17569 #: ../fish/guestfish-actions.pod:441
17570 #, no-wrap
17571 msgid ""
17572 " blockdev-getss device\n"
17573 "\n"
17574 msgstr ""
17575
17576 # type: textblock
17577 #: ../fish/guestfish-actions.pod:446
17578 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
17579 msgstr ""
17580
17581 # type: =head2
17582 #: ../fish/guestfish-actions.pod:451
17583 msgid "blockdev-getsz"
17584 msgstr ""
17585
17586 # type: verbatim
17587 #: ../fish/guestfish-actions.pod:453
17588 #, no-wrap
17589 msgid ""
17590 " blockdev-getsz device\n"
17591 "\n"
17592 msgstr ""
17593
17594 # type: textblock
17595 #: ../fish/guestfish-actions.pod:458
17596 msgid ""
17597 "See also L</blockdev-getss> for the real sector size of the device, and "
17598 "L</blockdev-getsize64> for the more useful I<size in bytes>."
17599 msgstr ""
17600
17601 # type: =head2
17602 #: ../fish/guestfish-actions.pod:464
17603 msgid "blockdev-rereadpt"
17604 msgstr ""
17605
17606 # type: verbatim
17607 #: ../fish/guestfish-actions.pod:466
17608 #, no-wrap
17609 msgid ""
17610 " blockdev-rereadpt device\n"
17611 "\n"
17612 msgstr ""
17613
17614 # type: =head2
17615 #: ../fish/guestfish-actions.pod:472
17616 msgid "blockdev-setbsz"
17617 msgstr ""
17618
17619 # type: verbatim
17620 #: ../fish/guestfish-actions.pod:474
17621 #, no-wrap
17622 msgid ""
17623 " blockdev-setbsz device blocksize\n"
17624 "\n"
17625 msgstr ""
17626
17627 # type: =head2
17628 #: ../fish/guestfish-actions.pod:483
17629 msgid "blockdev-setro"
17630 msgstr ""
17631
17632 # type: verbatim
17633 #: ../fish/guestfish-actions.pod:485
17634 #, no-wrap
17635 msgid ""
17636 " blockdev-setro device\n"
17637 "\n"
17638 msgstr ""
17639
17640 # type: =head2
17641 #: ../fish/guestfish-actions.pod:491
17642 msgid "blockdev-setrw"
17643 msgstr ""
17644
17645 # type: verbatim
17646 #: ../fish/guestfish-actions.pod:493
17647 #, no-wrap
17648 msgid ""
17649 " blockdev-setrw device\n"
17650 "\n"
17651 msgstr ""
17652
17653 # type: =head2
17654 #: ../fish/guestfish-actions.pod:499
17655 msgid "case-sensitive-path"
17656 msgstr ""
17657
17658 # type: verbatim
17659 #: ../fish/guestfish-actions.pod:501
17660 #, no-wrap
17661 msgid ""
17662 " case-sensitive-path path\n"
17663 "\n"
17664 msgstr ""
17665
17666 # type: textblock
17667 #: ../fish/guestfish-actions.pod:525
17668 msgid ""
17669 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
17670 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
17671 "how the directories were originally created under Windows)."
17672 msgstr ""
17673
17674 # type: textblock
17675 #: ../fish/guestfish-actions.pod:533
17676 msgid "See also L</realpath>."
17677 msgstr ""
17678
17679 # type: =head2
17680 #: ../fish/guestfish-actions.pod:535
17681 msgid "cat"
17682 msgstr ""
17683
17684 # type: verbatim
17685 #: ../fish/guestfish-actions.pod:537
17686 #, no-wrap
17687 msgid ""
17688 " cat path\n"
17689 "\n"
17690 msgstr ""
17691
17692 # type: textblock
17693 #: ../fish/guestfish-actions.pod:541
17694 msgid ""
17695 "Note that this function cannot correctly handle binary files (specifically, "
17696 "files containing C<\\0> character which is treated as end of string).  For "
17697 "those you need to use the L</read-file> or L</download> functions which have "
17698 "a more complex interface."
17699 msgstr ""
17700
17701 # type: =head2
17702 #: ../fish/guestfish-actions.pod:549
17703 msgid "checksum"
17704 msgstr ""
17705
17706 # type: verbatim
17707 #: ../fish/guestfish-actions.pod:551
17708 #, no-wrap
17709 msgid ""
17710 " checksum csumtype path\n"
17711 "\n"
17712 msgstr ""
17713
17714 # type: textblock
17715 #: ../fish/guestfish-actions.pod:594
17716 msgid "To get the checksum for a device, use L</checksum-device>."
17717 msgstr ""
17718
17719 # type: textblock
17720 #: ../fish/guestfish-actions.pod:596
17721 msgid "To get the checksums for many files, use L</checksums-out>."
17722 msgstr ""
17723
17724 # type: =head2
17725 #: ../fish/guestfish-actions.pod:598
17726 msgid "checksum-device"
17727 msgstr ""
17728
17729 # type: verbatim
17730 #: ../fish/guestfish-actions.pod:600
17731 #, no-wrap
17732 msgid ""
17733 " checksum-device csumtype device\n"
17734 "\n"
17735 msgstr ""
17736
17737 # type: textblock
17738 #: ../fish/guestfish-actions.pod:602
17739 msgid ""
17740 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
17741 "device named C<device>.  For the types of checksums supported see the "
17742 "L</checksum> command."
17743 msgstr ""
17744
17745 # type: =head2
17746 #: ../fish/guestfish-actions.pod:606
17747 msgid "checksums-out"
17748 msgstr ""
17749
17750 # type: verbatim
17751 #: ../fish/guestfish-actions.pod:608
17752 #, no-wrap
17753 msgid ""
17754 " checksums-out csumtype directory (sumsfile|-)\n"
17755 "\n"
17756 msgstr ""
17757
17758 # type: =head2
17759 #: ../fish/guestfish-actions.pod:624
17760 msgid "chmod"
17761 msgstr ""
17762
17763 # type: verbatim
17764 #: ../fish/guestfish-actions.pod:626
17765 #, no-wrap
17766 msgid ""
17767 " chmod mode path\n"
17768 "\n"
17769 msgstr ""
17770
17771 # type: =head2
17772 #: ../fish/guestfish-actions.pod:637
17773 msgid "chown"
17774 msgstr ""
17775
17776 # type: verbatim
17777 #: ../fish/guestfish-actions.pod:639
17778 #, no-wrap
17779 msgid ""
17780 " chown owner group path\n"
17781 "\n"
17782 msgstr ""
17783
17784 # type: =head2
17785 #: ../fish/guestfish-actions.pod:647
17786 msgid "command"
17787 msgstr ""
17788
17789 # type: verbatim
17790 #: ../fish/guestfish-actions.pod:649
17791 #, no-wrap
17792 msgid ""
17793 " command 'arguments ...'\n"
17794 "\n"
17795 msgstr ""
17796
17797 # type: textblock
17798 #: ../fish/guestfish-actions.pod:656
17799 msgid ""
17800 "The single parameter is an argv-style list of arguments.  The first element "
17801 "is the name of the program to run.  Subsequent elements are parameters.  The "
17802 "list must be non-empty (ie. must contain a program name).  Note that the "
17803 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
17804 msgstr ""
17805
17806 # type: =head2
17807 #: ../fish/guestfish-actions.pod:684
17808 msgid "command-lines"
17809 msgstr ""
17810
17811 # type: verbatim
17812 #: ../fish/guestfish-actions.pod:686
17813 #, no-wrap
17814 msgid ""
17815 " command-lines 'arguments ...'\n"
17816 "\n"
17817 msgstr ""
17818
17819 # type: textblock
17820 #: ../fish/guestfish-actions.pod:688
17821 msgid "This is the same as L</command>, but splits the result into a list of lines."
17822 msgstr ""
17823
17824 # type: textblock
17825 #: ../fish/guestfish-actions.pod:691
17826 msgid "See also: L</sh-lines>"
17827 msgstr ""
17828
17829 # type: =head2
17830 #: ../fish/guestfish-actions.pod:696
17831 msgid "config"
17832 msgstr ""
17833
17834 # type: verbatim
17835 #: ../fish/guestfish-actions.pod:698
17836 #, no-wrap
17837 msgid ""
17838 " config qemuparam qemuvalue\n"
17839 "\n"
17840 msgstr ""
17841
17842 # type: =head2
17843 #: ../fish/guestfish-actions.pod:709
17844 msgid "copy-size"
17845 msgstr ""
17846
17847 # type: verbatim
17848 #: ../fish/guestfish-actions.pod:711
17849 #, no-wrap
17850 msgid ""
17851 " copy-size src dest size\n"
17852 "\n"
17853 msgstr ""
17854
17855 # type: =head2
17856 #: ../fish/guestfish-actions.pod:719
17857 msgid "cp"
17858 msgstr ""
17859
17860 # type: verbatim
17861 #: ../fish/guestfish-actions.pod:721
17862 #, no-wrap
17863 msgid ""
17864 " cp src dest\n"
17865 "\n"
17866 msgstr ""
17867
17868 # type: =head2
17869 #: ../fish/guestfish-actions.pod:726
17870 msgid "cp-a"
17871 msgstr ""
17872
17873 # type: verbatim
17874 #: ../fish/guestfish-actions.pod:728
17875 #, no-wrap
17876 msgid ""
17877 " cp-a src dest\n"
17878 "\n"
17879 msgstr ""
17880
17881 # type: =head2
17882 #: ../fish/guestfish-actions.pod:733
17883 msgid "dd"
17884 msgstr ""
17885
17886 # type: verbatim
17887 #: ../fish/guestfish-actions.pod:735
17888 #, no-wrap
17889 msgid ""
17890 " dd src dest\n"
17891 "\n"
17892 msgstr ""
17893
17894 # type: textblock
17895 #: ../fish/guestfish-actions.pod:742
17896 msgid ""
17897 "If the destination is a device, it must be as large or larger than the "
17898 "source file or device, otherwise the copy will fail.  This command cannot do "
17899 "partial copies (see L</copy-size>)."
17900 msgstr ""
17901
17902 # type: =head2
17903 #: ../fish/guestfish-actions.pod:746
17904 msgid "debug"
17905 msgstr ""
17906
17907 # type: verbatim
17908 #: ../fish/guestfish-actions.pod:748
17909 #, no-wrap
17910 msgid ""
17911 " debug subcmd 'extraargs ...'\n"
17912 "\n"
17913 msgstr ""
17914
17915 # type: textblock
17916 #: ../fish/guestfish-actions.pod:750
17917 msgid ""
17918 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
17919 "daemon) that runs inside the qemu subprocess."
17920 msgstr ""
17921
17922 # type: =head2
17923 #: ../fish/guestfish-actions.pod:758
17924 msgid "debug-upload"
17925 msgstr ""
17926
17927 # type: verbatim
17928 #: ../fish/guestfish-actions.pod:760
17929 #, no-wrap
17930 msgid ""
17931 " debug-upload (filename|-) tmpname mode\n"
17932 "\n"
17933 msgstr ""
17934
17935 # type: textblock
17936 #: ../fish/guestfish-actions.pod:762
17937 msgid "The L</debug-upload> command uploads a file to the libguestfs appliance."
17938 msgstr ""
17939
17940 # type: =head2
17941 #: ../fish/guestfish-actions.pod:771
17942 msgid "df"
17943 msgstr ""
17944
17945 # type: verbatim
17946 #: ../fish/guestfish-actions.pod:773
17947 #, no-wrap
17948 msgid ""
17949 " df\n"
17950 "\n"
17951 msgstr ""
17952
17953 # type: =head2
17954 #: ../fish/guestfish-actions.pod:781
17955 msgid "df-h"
17956 msgstr ""
17957
17958 # type: verbatim
17959 #: ../fish/guestfish-actions.pod:783
17960 #, no-wrap
17961 msgid ""
17962 " df-h\n"
17963 "\n"
17964 msgstr ""
17965
17966 # type: =head2
17967 #: ../fish/guestfish-actions.pod:792
17968 msgid "dmesg"
17969 msgstr ""
17970
17971 # type: verbatim
17972 #: ../fish/guestfish-actions.pod:794
17973 #, no-wrap
17974 msgid ""
17975 " dmesg\n"
17976 "\n"
17977 msgstr ""
17978
17979 # type: textblock
17980 #: ../fish/guestfish-actions.pod:800
17981 msgid ""
17982 "Another way to get the same information is to enable verbose messages with "
17983 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
17984 "before running the program."
17985 msgstr ""
17986
17987 # type: =head2
17988 #: ../fish/guestfish-actions.pod:805
17989 msgid "download"
17990 msgstr ""
17991
17992 # type: verbatim
17993 #: ../fish/guestfish-actions.pod:807
17994 #, no-wrap
17995 msgid ""
17996 " download remotefilename (filename|-)\n"
17997 "\n"
17998 msgstr ""
17999
18000 # type: textblock
18001 #: ../fish/guestfish-actions.pod:814
18002 msgid "See also L</upload>, L</cat>."
18003 msgstr ""
18004
18005 # type: =head2
18006 #: ../fish/guestfish-actions.pod:818
18007 msgid "download-offset"
18008 msgstr ""
18009
18010 # type: verbatim
18011 #: ../fish/guestfish-actions.pod:820
18012 #, no-wrap
18013 msgid ""
18014 " download-offset remotefilename (filename|-) offset size\n"
18015 "\n"
18016 msgstr ""
18017
18018 # type: textblock
18019 #: ../fish/guestfish-actions.pod:828
18020 msgid ""
18021 "Note that there is no limit on the amount of data that can be downloaded "
18022 "with this call, unlike with L</pread>, and this call always reads the full "
18023 "amount unless an error occurs."
18024 msgstr ""
18025
18026 # type: textblock
18027 #: ../fish/guestfish-actions.pod:833
18028 msgid "See also L</download>, L</pread>."
18029 msgstr ""
18030
18031 # type: =head2
18032 #: ../fish/guestfish-actions.pod:837
18033 msgid "drop-caches"
18034 msgstr ""
18035
18036 # type: verbatim
18037 #: ../fish/guestfish-actions.pod:839
18038 #, no-wrap
18039 msgid ""
18040 " drop-caches whattodrop\n"
18041 "\n"
18042 msgstr ""
18043
18044 # type: =head2
18045 #: ../fish/guestfish-actions.pod:851
18046 msgid "du"
18047 msgstr ""
18048
18049 # type: verbatim
18050 #: ../fish/guestfish-actions.pod:853
18051 #, no-wrap
18052 msgid ""
18053 " du path\n"
18054 "\n"
18055 msgstr ""
18056
18057 # type: =head2
18058 #: ../fish/guestfish-actions.pod:865
18059 msgid "e2fsck-f"
18060 msgstr ""
18061
18062 # type: verbatim
18063 #: ../fish/guestfish-actions.pod:867
18064 #, no-wrap
18065 msgid ""
18066 " e2fsck-f device\n"
18067 "\n"
18068 msgstr ""
18069
18070 # type: textblock
18071 #: ../fish/guestfish-actions.pod:873
18072 msgid ""
18073 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18074 "should use L</fsck>."
18075 msgstr ""
18076
18077 # type: =head2
18078 #: ../fish/guestfish-actions.pod:876
18079 msgid "echo-daemon"
18080 msgstr ""
18081
18082 # type: verbatim
18083 #: ../fish/guestfish-actions.pod:878
18084 #, no-wrap
18085 msgid ""
18086 " echo-daemon 'words ...'\n"
18087 "\n"
18088 msgstr ""
18089
18090 # type: textblock
18091 #: ../fish/guestfish-actions.pod:885
18092 msgid "See also L</ping-daemon>."
18093 msgstr ""
18094
18095 # type: =head2
18096 #: ../fish/guestfish-actions.pod:887
18097 msgid "egrep"
18098 msgstr ""
18099
18100 # type: verbatim
18101 #: ../fish/guestfish-actions.pod:889
18102 #, no-wrap
18103 msgid ""
18104 " egrep regex path\n"
18105 "\n"
18106 msgstr ""
18107
18108 # type: =head2
18109 #: ../fish/guestfish-actions.pod:897
18110 msgid "egrepi"
18111 msgstr ""
18112
18113 # type: verbatim
18114 #: ../fish/guestfish-actions.pod:899
18115 #, no-wrap
18116 msgid ""
18117 " egrepi regex path\n"
18118 "\n"
18119 msgstr ""
18120
18121 # type: =head2
18122 #: ../fish/guestfish-actions.pod:907
18123 msgid "equal"
18124 msgstr ""
18125
18126 # type: verbatim
18127 #: ../fish/guestfish-actions.pod:909
18128 #, no-wrap
18129 msgid ""
18130 " equal file1 file2\n"
18131 "\n"
18132 msgstr ""
18133
18134 # type: =head2
18135 #: ../fish/guestfish-actions.pod:916
18136 msgid "exists"
18137 msgstr ""
18138
18139 # type: verbatim
18140 #: ../fish/guestfish-actions.pod:918
18141 #, no-wrap
18142 msgid ""
18143 " exists path\n"
18144 "\n"
18145 msgstr ""
18146
18147 # type: textblock
18148 #: ../fish/guestfish-actions.pod:923
18149 msgid "See also L</is-file>, L</is-dir>, L</stat>."
18150 msgstr ""
18151
18152 # type: =head2
18153 #: ../fish/guestfish-actions.pod:925
18154 msgid "fallocate"
18155 msgstr ""
18156
18157 # type: verbatim
18158 #: ../fish/guestfish-actions.pod:927
18159 #, no-wrap
18160 msgid ""
18161 " fallocate path len\n"
18162 "\n"
18163 msgstr ""
18164
18165 # type: =head2
18166 #: ../fish/guestfish-actions.pod:944
18167 msgid "fallocate64"
18168 msgstr ""
18169
18170 # type: verbatim
18171 #: ../fish/guestfish-actions.pod:946
18172 #, no-wrap
18173 msgid ""
18174 " fallocate64 path len\n"
18175 "\n"
18176 msgstr ""
18177
18178 # type: textblock
18179 #: ../fish/guestfish-actions.pod:952
18180 msgid ""
18181 "Note that this call allocates disk blocks for the file.  To create a sparse "
18182 "file use L</truncate-size> instead."
18183 msgstr ""
18184
18185 # type: textblock
18186 #: ../fish/guestfish-actions.pod:955
18187 msgid ""
18188 "The deprecated call L</fallocate> does the same, but owing to an oversight "
18189 "it only allowed 30 bit lengths to be specified, effectively limiting the "
18190 "maximum size of files created through that call to 1GB."
18191 msgstr ""
18192
18193 # type: =head2
18194 #: ../fish/guestfish-actions.pod:964
18195 msgid "fgrep"
18196 msgstr ""
18197
18198 # type: verbatim
18199 #: ../fish/guestfish-actions.pod:966
18200 #, no-wrap
18201 msgid ""
18202 " fgrep pattern path\n"
18203 "\n"
18204 msgstr ""
18205
18206 # type: =head2
18207 #: ../fish/guestfish-actions.pod:974
18208 msgid "fgrepi"
18209 msgstr ""
18210
18211 # type: verbatim
18212 #: ../fish/guestfish-actions.pod:976
18213 #, no-wrap
18214 msgid ""
18215 " fgrepi pattern path\n"
18216 "\n"
18217 msgstr ""
18218
18219 # type: =head2
18220 #: ../fish/guestfish-actions.pod:984
18221 msgid "file"
18222 msgstr ""
18223
18224 # type: verbatim
18225 #: ../fish/guestfish-actions.pod:986
18226 #, no-wrap
18227 msgid ""
18228 " file path\n"
18229 "\n"
18230 msgstr ""
18231
18232 # type: textblock
18233 #: ../fish/guestfish-actions.pod:998
18234 msgid ""
18235 "This command can also be used on C</dev/> devices (and partitions, LV "
18236 "names).  You can for example use this to determine if a device contains a "
18237 "filesystem, although it's usually better to use L</vfs-type>."
18238 msgstr ""
18239
18240 # type: =head2
18241 #: ../fish/guestfish-actions.pod:1008
18242 msgid "file-architecture"
18243 msgstr ""
18244
18245 # type: verbatim
18246 #: ../fish/guestfish-actions.pod:1010
18247 #, no-wrap
18248 msgid ""
18249 " file-architecture filename\n"
18250 "\n"
18251 msgstr ""
18252
18253 # type: =head2
18254 #: ../fish/guestfish-actions.pod:1113
18255 msgid "filesize"
18256 msgstr ""
18257
18258 # type: verbatim
18259 #: ../fish/guestfish-actions.pod:1115
18260 #, no-wrap
18261 msgid ""
18262 " filesize file\n"
18263 "\n"
18264 msgstr ""
18265
18266 # type: textblock
18267 #: ../fish/guestfish-actions.pod:1119
18268 msgid ""
18269 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
18270 "L</is-file> etc.  To get the size of block devices, use "
18271 "L</blockdev-getsize64>."
18272 msgstr ""
18273
18274 # type: =head2
18275 #: ../fish/guestfish-actions.pod:1123
18276 msgid "fill"
18277 msgstr ""
18278
18279 # type: verbatim
18280 #: ../fish/guestfish-actions.pod:1125
18281 #, no-wrap
18282 msgid ""
18283 " fill c len path\n"
18284 "\n"
18285 msgstr ""
18286
18287 # type: textblock
18288 #: ../fish/guestfish-actions.pod:1131
18289 msgid ""
18290 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18291 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
18292 "L</fill-pattern>."
18293 msgstr ""
18294
18295 # type: =head2
18296 #: ../fish/guestfish-actions.pod:1136
18297 msgid "fill-pattern"
18298 msgstr ""
18299
18300 # type: verbatim
18301 #: ../fish/guestfish-actions.pod:1138
18302 #, no-wrap
18303 msgid ""
18304 " fill-pattern pattern len path\n"
18305 "\n"
18306 msgstr ""
18307
18308 # type: textblock
18309 #: ../fish/guestfish-actions.pod:1140
18310 msgid ""
18311 "This function is like L</fill> except that it creates a new file of length "
18312 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18313 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18314 "bytes."
18315 msgstr ""
18316
18317 # type: =head2
18318 #: ../fish/guestfish-actions.pod:1145
18319 msgid "find"
18320 msgstr ""
18321
18322 # type: verbatim
18323 #: ../fish/guestfish-actions.pod:1147
18324 #, no-wrap
18325 msgid ""
18326 " find directory\n"
18327 "\n"
18328 msgstr ""
18329
18330 # type: textblock
18331 #: ../fish/guestfish-actions.pod:1161
18332 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
18333 msgstr ""
18334
18335 # type: textblock
18336 #: ../fish/guestfish-actions.pod:1174
18337 msgid "See also L</find0>."
18338 msgstr ""
18339
18340 # type: =head2
18341 #: ../fish/guestfish-actions.pod:1179
18342 msgid "find0"
18343 msgstr ""
18344
18345 # type: verbatim
18346 #: ../fish/guestfish-actions.pod:1181
18347 #, no-wrap
18348 msgid ""
18349 " find0 directory (files|-)\n"
18350 "\n"
18351 msgstr ""
18352
18353 # type: textblock
18354 #: ../fish/guestfish-actions.pod:1187
18355 msgid "This command works the same way as L</find> with the following exceptions:"
18356 msgstr ""
18357
18358 # type: =head2
18359 #: ../fish/guestfish-actions.pod:1214
18360 msgid "findfs-label"
18361 msgstr ""
18362
18363 # type: verbatim
18364 #: ../fish/guestfish-actions.pod:1216
18365 #, no-wrap
18366 msgid ""
18367 " findfs-label label\n"
18368 "\n"
18369 msgstr ""
18370
18371 # type: textblock
18372 #: ../fish/guestfish-actions.pod:1222
18373 msgid "To find the label of a filesystem, use L</vfs-label>."
18374 msgstr ""
18375
18376 # type: =head2
18377 #: ../fish/guestfish-actions.pod:1224
18378 msgid "findfs-uuid"
18379 msgstr ""
18380
18381 # type: verbatim
18382 #: ../fish/guestfish-actions.pod:1226
18383 #, no-wrap
18384 msgid ""
18385 " findfs-uuid uuid\n"
18386 "\n"
18387 msgstr ""
18388
18389 # type: textblock
18390 #: ../fish/guestfish-actions.pod:1232
18391 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
18392 msgstr ""
18393
18394 # type: =head2
18395 #: ../fish/guestfish-actions.pod:1234
18396 msgid "fsck"
18397 msgstr ""
18398
18399 # type: verbatim
18400 #: ../fish/guestfish-actions.pod:1236
18401 #, no-wrap
18402 msgid ""
18403 " fsck fstype device\n"
18404 "\n"
18405 msgstr ""
18406
18407 # type: =head2
18408 #: ../fish/guestfish-actions.pod:1266
18409 msgid "get-append"
18410 msgstr ""
18411
18412 # type: verbatim
18413 #: ../fish/guestfish-actions.pod:1268
18414 #, no-wrap
18415 msgid ""
18416 " get-append\n"
18417 "\n"
18418 msgstr ""
18419
18420 # type: =head2
18421 #: ../fish/guestfish-actions.pod:1275
18422 msgid "get-autosync"
18423 msgstr ""
18424
18425 # type: verbatim
18426 #: ../fish/guestfish-actions.pod:1277
18427 #, no-wrap
18428 msgid ""
18429 " get-autosync\n"
18430 "\n"
18431 msgstr ""
18432
18433 # type: =head2
18434 #: ../fish/guestfish-actions.pod:1281
18435 msgid "get-direct"
18436 msgstr ""
18437
18438 # type: verbatim
18439 #: ../fish/guestfish-actions.pod:1283
18440 #, no-wrap
18441 msgid ""
18442 " get-direct\n"
18443 "\n"
18444 msgstr ""
18445
18446 # type: =head2
18447 #: ../fish/guestfish-actions.pod:1287
18448 msgid "get-e2label"
18449 msgstr ""
18450
18451 # type: verbatim
18452 #: ../fish/guestfish-actions.pod:1289
18453 #, no-wrap
18454 msgid ""
18455 " get-e2label device\n"
18456 "\n"
18457 msgstr ""
18458
18459 # type: =head2
18460 #: ../fish/guestfish-actions.pod:1301
18461 msgid "get-e2uuid"
18462 msgstr ""
18463
18464 # type: verbatim
18465 #: ../fish/guestfish-actions.pod:1303
18466 #, no-wrap
18467 msgid ""
18468 " get-e2uuid device\n"
18469 "\n"
18470 msgstr ""
18471
18472 # type: =head2
18473 #: ../fish/guestfish-actions.pod:1315
18474 msgid "get-memsize"
18475 msgstr ""
18476
18477 # type: verbatim
18478 #: ../fish/guestfish-actions.pod:1317
18479 #, no-wrap
18480 msgid ""
18481 " get-memsize\n"
18482 "\n"
18483 msgstr ""
18484
18485 # type: textblock
18486 #: ../fish/guestfish-actions.pod:1322
18487 msgid ""
18488 "If L</set-memsize> was not called on this handle, and if "
18489 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18490 "value for memsize."
18491 msgstr ""
18492
18493 # type: =head2
18494 #: ../fish/guestfish-actions.pod:1329
18495 msgid "get-network"
18496 msgstr ""
18497
18498 # type: verbatim
18499 #: ../fish/guestfish-actions.pod:1331
18500 #, no-wrap
18501 msgid ""
18502 " get-network\n"
18503 "\n"
18504 msgstr ""
18505
18506 # type: =head2
18507 #: ../fish/guestfish-actions.pod:1335
18508 msgid "get-path"
18509 msgstr ""
18510
18511 # type: verbatim
18512 #: ../fish/guestfish-actions.pod:1337
18513 #, no-wrap
18514 msgid ""
18515 " get-path\n"
18516 "\n"
18517 msgstr ""
18518
18519 # type: =head2
18520 #: ../fish/guestfish-actions.pod:1344
18521 msgid "get-pid"
18522 msgstr ""
18523
18524 # type: =head2
18525 #: ../fish/guestfish-actions.pod:1346
18526 msgid "pid"
18527 msgstr ""
18528
18529 # type: verbatim
18530 #: ../fish/guestfish-actions.pod:1348
18531 #, no-wrap
18532 msgid ""
18533 " get-pid\n"
18534 "\n"
18535 msgstr ""
18536
18537 # type: =head2
18538 #: ../fish/guestfish-actions.pod:1355
18539 msgid "get-qemu"
18540 msgstr ""
18541
18542 # type: verbatim
18543 #: ../fish/guestfish-actions.pod:1357
18544 #, no-wrap
18545 msgid ""
18546 " get-qemu\n"
18547 "\n"
18548 msgstr ""
18549
18550 # type: =head2
18551 #: ../fish/guestfish-actions.pod:1364
18552 msgid "get-recovery-proc"
18553 msgstr ""
18554
18555 # type: verbatim
18556 #: ../fish/guestfish-actions.pod:1366
18557 #, no-wrap
18558 msgid ""
18559 " get-recovery-proc\n"
18560 "\n"
18561 msgstr ""
18562
18563 # type: =head2
18564 #: ../fish/guestfish-actions.pod:1370
18565 msgid "get-selinux"
18566 msgstr ""
18567
18568 # type: verbatim
18569 #: ../fish/guestfish-actions.pod:1372
18570 #, no-wrap
18571 msgid ""
18572 " get-selinux\n"
18573 "\n"
18574 msgstr ""
18575
18576 # type: textblock
18577 #: ../fish/guestfish-actions.pod:1374
18578 msgid ""
18579 "This returns the current setting of the selinux flag which is passed to the "
18580 "appliance at boot time.  See L</set-selinux>."
18581 msgstr ""
18582
18583 # type: =head2
18584 #: ../fish/guestfish-actions.pod:1380
18585 msgid "get-state"
18586 msgstr ""
18587
18588 # type: verbatim
18589 #: ../fish/guestfish-actions.pod:1382
18590 #, no-wrap
18591 msgid ""
18592 " get-state\n"
18593 "\n"
18594 msgstr ""
18595
18596 # type: =head2
18597 #: ../fish/guestfish-actions.pod:1389
18598 msgid "get-trace"
18599 msgstr ""
18600
18601 # type: verbatim
18602 #: ../fish/guestfish-actions.pod:1391
18603 #, no-wrap
18604 msgid ""
18605 " get-trace\n"
18606 "\n"
18607 msgstr ""
18608
18609 # type: =head2
18610 #: ../fish/guestfish-actions.pod:1395
18611 msgid "get-umask"
18612 msgstr ""
18613
18614 # type: verbatim
18615 #: ../fish/guestfish-actions.pod:1397
18616 #, no-wrap
18617 msgid ""
18618 " get-umask\n"
18619 "\n"
18620 msgstr ""
18621
18622 # type: textblock
18623 #: ../fish/guestfish-actions.pod:1399
18624 msgid ""
18625 "Return the current umask.  By default the umask is C<022> unless it has been "
18626 "set by calling L</umask>."
18627 msgstr ""
18628
18629 # type: =head2
18630 #: ../fish/guestfish-actions.pod:1402
18631 msgid "get-verbose"
18632 msgstr ""
18633
18634 # type: verbatim
18635 #: ../fish/guestfish-actions.pod:1404
18636 #, no-wrap
18637 msgid ""
18638 " get-verbose\n"
18639 "\n"
18640 msgstr ""
18641
18642 # type: =head2
18643 #: ../fish/guestfish-actions.pod:1408
18644 msgid "getcon"
18645 msgstr ""
18646
18647 # type: verbatim
18648 #: ../fish/guestfish-actions.pod:1410
18649 #, no-wrap
18650 msgid ""
18651 " getcon\n"
18652 "\n"
18653 msgstr ""
18654
18655 # type: textblock
18656 #: ../fish/guestfish-actions.pod:1414
18657 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
18658 msgstr ""
18659
18660 # type: =head2
18661 #: ../fish/guestfish-actions.pod:1417
18662 msgid "getxattrs"
18663 msgstr ""
18664
18665 # type: verbatim
18666 #: ../fish/guestfish-actions.pod:1419
18667 #, no-wrap
18668 msgid ""
18669 " getxattrs path\n"
18670 "\n"
18671 msgstr ""
18672
18673 # type: textblock
18674 #: ../fish/guestfish-actions.pod:1427
18675 msgid "See also: L</lgetxattrs>, L<attr(5)>."
18676 msgstr ""
18677
18678 # type: =head2
18679 #: ../fish/guestfish-actions.pod:1429
18680 msgid "glob-expand"
18681 msgstr ""
18682
18683 # type: verbatim
18684 #: ../fish/guestfish-actions.pod:1431
18685 #, no-wrap
18686 msgid ""
18687 " glob-expand pattern\n"
18688 "\n"
18689 msgstr ""
18690
18691 # type: =head2
18692 #: ../fish/guestfish-actions.pod:1444
18693 msgid "grep"
18694 msgstr ""
18695
18696 # type: verbatim
18697 #: ../fish/guestfish-actions.pod:1446
18698 #, no-wrap
18699 msgid ""
18700 " grep regex path\n"
18701 "\n"
18702 msgstr ""
18703
18704 # type: =head2
18705 #: ../fish/guestfish-actions.pod:1454
18706 msgid "grepi"
18707 msgstr ""
18708
18709 # type: verbatim
18710 #: ../fish/guestfish-actions.pod:1456
18711 #, no-wrap
18712 msgid ""
18713 " grepi regex path\n"
18714 "\n"
18715 msgstr ""
18716
18717 # type: =head2
18718 #: ../fish/guestfish-actions.pod:1464
18719 msgid "grub-install"
18720 msgstr ""
18721
18722 # type: verbatim
18723 #: ../fish/guestfish-actions.pod:1466
18724 #, no-wrap
18725 msgid ""
18726 " grub-install root device\n"
18727 "\n"
18728 msgstr ""
18729
18730 # type: =head2
18731 #: ../fish/guestfish-actions.pod:1482
18732 msgid "head"
18733 msgstr ""
18734
18735 # type: verbatim
18736 #: ../fish/guestfish-actions.pod:1484
18737 #, no-wrap
18738 msgid ""
18739 " head path\n"
18740 "\n"
18741 msgstr ""
18742
18743 # type: =head2
18744 #: ../fish/guestfish-actions.pod:1492
18745 msgid "head-n"
18746 msgstr ""
18747
18748 # type: verbatim
18749 #: ../fish/guestfish-actions.pod:1494
18750 #, no-wrap
18751 msgid ""
18752 " head-n nrlines path\n"
18753 "\n"
18754 msgstr ""
18755
18756 # type: =head2
18757 #: ../fish/guestfish-actions.pod:1507
18758 msgid "hexdump"
18759 msgstr ""
18760
18761 # type: verbatim
18762 #: ../fish/guestfish-actions.pod:1509
18763 #, no-wrap
18764 msgid ""
18765 " hexdump path\n"
18766 "\n"
18767 msgstr ""
18768
18769 # type: =head2
18770 #: ../fish/guestfish-actions.pod:1517
18771 msgid "initrd-cat"
18772 msgstr ""
18773
18774 # type: verbatim
18775 #: ../fish/guestfish-actions.pod:1519
18776 #, no-wrap
18777 msgid ""
18778 " initrd-cat initrdpath filename\n"
18779 "\n"
18780 msgstr ""
18781
18782 # type: textblock
18783 #: ../fish/guestfish-actions.pod:1531
18784 msgid "See also L</initrd-list>."
18785 msgstr ""
18786
18787 # type: =head2
18788 #: ../fish/guestfish-actions.pod:1536
18789 msgid "initrd-list"
18790 msgstr ""
18791
18792 # type: verbatim
18793 #: ../fish/guestfish-actions.pod:1538
18794 #, no-wrap
18795 msgid ""
18796 " initrd-list path\n"
18797 "\n"
18798 msgstr ""
18799
18800 # type: =head2
18801 #: ../fish/guestfish-actions.pod:1550
18802 msgid "inotify-add-watch"
18803 msgstr ""
18804
18805 # type: verbatim
18806 #: ../fish/guestfish-actions.pod:1552
18807 #, no-wrap
18808 msgid ""
18809 " inotify-add-watch path mask\n"
18810 "\n"
18811 msgstr ""
18812
18813 # type: =head2
18814 #: ../fish/guestfish-actions.pod:1564
18815 msgid "inotify-close"
18816 msgstr ""
18817
18818 # type: verbatim
18819 #: ../fish/guestfish-actions.pod:1566
18820 #, no-wrap
18821 msgid ""
18822 " inotify-close\n"
18823 "\n"
18824 msgstr ""
18825
18826 # type: =head2
18827 #: ../fish/guestfish-actions.pod:1572
18828 msgid "inotify-files"
18829 msgstr ""
18830
18831 # type: verbatim
18832 #: ../fish/guestfish-actions.pod:1574
18833 #, no-wrap
18834 msgid ""
18835 " inotify-files\n"
18836 "\n"
18837 msgstr ""
18838
18839 # type: textblock
18840 #: ../fish/guestfish-actions.pod:1576
18841 msgid ""
18842 "This function is a helpful wrapper around L</inotify-read> which just "
18843 "returns a list of pathnames of objects that were touched.  The returned "
18844 "pathnames are sorted and deduplicated."
18845 msgstr ""
18846
18847 # type: =head2
18848 #: ../fish/guestfish-actions.pod:1580
18849 msgid "inotify-init"
18850 msgstr ""
18851
18852 # type: verbatim
18853 #: ../fish/guestfish-actions.pod:1582
18854 #, no-wrap
18855 msgid ""
18856 " inotify-init maxevents\n"
18857 "\n"
18858 msgstr ""
18859
18860 # type: textblock
18861 #: ../fish/guestfish-actions.pod:1588
18862 msgid ""
18863 "C<maxevents> is the maximum number of events which will be queued up between "
18864 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
18865 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
18866 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
18867 "but records the fact that it threw them away by setting a flag "
18868 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
18869 msgstr ""
18870
18871 # type: textblock
18872 #: ../fish/guestfish-actions.pod:1598
18873 msgid ""
18874 "Before any events are generated, you have to add some watches to the "
18875 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
18876 "L</inotify-watch-all>."
18877 msgstr ""
18878
18879 # type: textblock
18880 #: ../fish/guestfish-actions.pod:1604
18881 msgid ""
18882 "Queued up events should be read periodically by calling L</inotify-read> (or "
18883 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
18884 "If you don't read the events out often enough then you risk the internal "
18885 "queue overflowing."
18886 msgstr ""
18887
18888 # type: textblock
18889 #: ../fish/guestfish-actions.pod:1611
18890 msgid ""
18891 "The handle should be closed after use by calling L</inotify-close>.  This "
18892 "also removes any watches automatically."
18893 msgstr ""
18894
18895 # type: =head2
18896 #: ../fish/guestfish-actions.pod:1620
18897 msgid "inotify-read"
18898 msgstr ""
18899
18900 # type: verbatim
18901 #: ../fish/guestfish-actions.pod:1622
18902 #, no-wrap
18903 msgid ""
18904 " inotify-read\n"
18905 "\n"
18906 msgstr ""
18907
18908 # type: =head2
18909 #: ../fish/guestfish-actions.pod:1635
18910 msgid "inotify-rm-watch"
18911 msgstr ""
18912
18913 # type: verbatim
18914 #: ../fish/guestfish-actions.pod:1637
18915 #, no-wrap
18916 msgid ""
18917 " inotify-rm-watch wd\n"
18918 "\n"
18919 msgstr ""
18920
18921 # type: textblock
18922 #: ../fish/guestfish-actions.pod:1639
18923 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
18924 msgstr ""
18925
18926 # type: =head2
18927 #: ../fish/guestfish-actions.pod:1642
18928 msgid "inspect-get-arch"
18929 msgstr ""
18930
18931 # type: verbatim
18932 #: ../fish/guestfish-actions.pod:1644
18933 #, no-wrap
18934 msgid ""
18935 " inspect-get-arch root\n"
18936 "\n"
18937 msgstr ""
18938
18939 # type: textblock
18940 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1708 ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1762 ../fish/guestfish-actions.pod:1785 ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1833
18941 msgid ""
18942 "This function should only be called with a root device string as returned by "
18943 "L</inspect-os>."
18944 msgstr ""
18945
18946 # type: textblock
18947 #: ../fish/guestfish-actions.pod:1649
18948 msgid ""
18949 "This returns the architecture of the inspected operating system.  The "
18950 "possible return values are listed under L</file-architecture>."
18951 msgstr ""
18952
18953 # type: =head2
18954 #: ../fish/guestfish-actions.pod:1658
18955 msgid "inspect-get-distro"
18956 msgstr ""
18957
18958 # type: verbatim
18959 #: ../fish/guestfish-actions.pod:1660
18960 #, no-wrap
18961 msgid ""
18962 " inspect-get-distro root\n"
18963 "\n"
18964 msgstr ""
18965
18966 # type: =head2
18967 #: ../fish/guestfish-actions.pod:1704
18968 msgid "inspect-get-filesystems"
18969 msgstr ""
18970
18971 # type: verbatim
18972 #: ../fish/guestfish-actions.pod:1706
18973 #, no-wrap
18974 msgid ""
18975 " inspect-get-filesystems root\n"
18976 "\n"
18977 msgstr ""
18978
18979 # type: textblock
18980 #: ../fish/guestfish-actions.pod:1719
18981 msgid ""
18982 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18983 "L</inspect-get-mountpoints>."
18984 msgstr ""
18985
18986 # type: =head2
18987 #: ../fish/guestfish-actions.pod:1722
18988 msgid "inspect-get-major-version"
18989 msgstr ""
18990
18991 # type: verbatim
18992 #: ../fish/guestfish-actions.pod:1724
18993 #, no-wrap
18994 msgid ""
18995 " inspect-get-major-version root\n"
18996 "\n"
18997 msgstr ""
18998
18999 # type: =head2
19000 #: ../fish/guestfish-actions.pod:1743
19001 msgid "inspect-get-minor-version"
19002 msgstr ""
19003
19004 # type: verbatim
19005 #: ../fish/guestfish-actions.pod:1745
19006 #, no-wrap
19007 msgid ""
19008 " inspect-get-minor-version root\n"
19009 "\n"
19010 msgstr ""
19011
19012 # type: textblock
19013 #: ../fish/guestfish-actions.pod:1755
19014 msgid ""
19015 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19016 "L</inspect-get-major-version>."
19017 msgstr ""
19018
19019 # type: =head2
19020 #: ../fish/guestfish-actions.pod:1758
19021 msgid "inspect-get-mountpoints"
19022 msgstr ""
19023
19024 # type: verbatim
19025 #: ../fish/guestfish-actions.pod:1760
19026 #, no-wrap
19027 msgid ""
19028 " inspect-get-mountpoints root\n"
19029 "\n"
19030 msgstr ""
19031
19032 # type: textblock
19033 #: ../fish/guestfish-actions.pod:1778
19034 msgid ""
19035 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19036 "L</inspect-get-filesystems>."
19037 msgstr ""
19038
19039 # type: =head2
19040 #: ../fish/guestfish-actions.pod:1781
19041 msgid "inspect-get-product-name"
19042 msgstr ""
19043
19044 # type: verbatim
19045 #: ../fish/guestfish-actions.pod:1783
19046 #, no-wrap
19047 msgid ""
19048 " inspect-get-product-name root\n"
19049 "\n"
19050 msgstr ""
19051
19052 # type: =head2
19053 #: ../fish/guestfish-actions.pod:1798
19054 msgid "inspect-get-type"
19055 msgstr ""
19056
19057 # type: verbatim
19058 #: ../fish/guestfish-actions.pod:1800
19059 #, no-wrap
19060 msgid ""
19061 " inspect-get-type root\n"
19062 "\n"
19063 msgstr ""
19064
19065 # type: =head2
19066 #: ../fish/guestfish-actions.pod:1829
19067 msgid "inspect-get-windows-systemroot"
19068 msgstr ""
19069
19070 # type: verbatim
19071 #: ../fish/guestfish-actions.pod:1831
19072 #, no-wrap
19073 msgid ""
19074 " inspect-get-windows-systemroot root\n"
19075 "\n"
19076 msgstr ""
19077
19078 # type: =head2
19079 #: ../fish/guestfish-actions.pod:1845
19080 msgid "inspect-os"
19081 msgstr ""
19082
19083 # type: verbatim
19084 #: ../fish/guestfish-actions.pod:1847
19085 #, no-wrap
19086 msgid ""
19087 " inspect-os\n"
19088 "\n"
19089 msgstr ""
19090
19091 # type: textblock
19092 #: ../fish/guestfish-actions.pod:1862
19093 msgid ""
19094 "You can pass the root string(s) returned to other L</inspect-get-*> "
19095 "functions in order to query further information about each operating system, "
19096 "such as the name and version."
19097 msgstr ""
19098
19099 # type: textblock
19100 #: ../fish/guestfish-actions.pod:1867
19101 msgid ""
19102 "This function uses other libguestfs features such as L</mount-ro> and "
19103 "L</umount-all> in order to mount and unmount filesystems and look at the "
19104 "contents.  This should be called with no disks currently mounted.  The "
19105 "function may also use Augeas, so any existing Augeas handle will be closed."
19106 msgstr ""
19107
19108 # type: textblock
19109 #: ../fish/guestfish-actions.pod:1879 ../fish/guestfish-actions.pod:2035 ../fish/guestfish-actions.pod:2081
19110 msgid "See also L</list-filesystems>."
19111 msgstr ""
19112
19113 # type: =head2
19114 #: ../fish/guestfish-actions.pod:1881
19115 msgid "is-blockdev"
19116 msgstr ""
19117
19118 # type: verbatim
19119 #: ../fish/guestfish-actions.pod:1883
19120 #, no-wrap
19121 msgid ""
19122 " is-blockdev path\n"
19123 "\n"
19124 msgstr ""
19125
19126 # type: textblock
19127 #: ../fish/guestfish-actions.pod:1888 ../fish/guestfish-actions.pod:1906 ../fish/guestfish-actions.pod:1925 ../fish/guestfish-actions.pod:1934 ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1978 ../fish/guestfish-actions.pod:1987
19128 msgid "See also L</stat>."
19129 msgstr ""
19130
19131 # type: =head2
19132 #: ../fish/guestfish-actions.pod:1890
19133 msgid "is-busy"
19134 msgstr ""
19135
19136 # type: verbatim
19137 #: ../fish/guestfish-actions.pod:1892
19138 #, no-wrap
19139 msgid ""
19140 " is-busy\n"
19141 "\n"
19142 msgstr ""
19143
19144 # type: =head2
19145 #: ../fish/guestfish-actions.pod:1899
19146 msgid "is-chardev"
19147 msgstr ""
19148
19149 # type: verbatim
19150 #: ../fish/guestfish-actions.pod:1901
19151 #, no-wrap
19152 msgid ""
19153 " is-chardev path\n"
19154 "\n"
19155 msgstr ""
19156
19157 # type: =head2
19158 #: ../fish/guestfish-actions.pod:1908
19159 msgid "is-config"
19160 msgstr ""
19161
19162 # type: verbatim
19163 #: ../fish/guestfish-actions.pod:1910
19164 #, no-wrap
19165 msgid ""
19166 " is-config\n"
19167 "\n"
19168 msgstr ""
19169
19170 # type: =head2
19171 #: ../fish/guestfish-actions.pod:1917
19172 msgid "is-dir"
19173 msgstr ""
19174
19175 # type: verbatim
19176 #: ../fish/guestfish-actions.pod:1919
19177 #, no-wrap
19178 msgid ""
19179 " is-dir path\n"
19180 "\n"
19181 msgstr ""
19182
19183 # type: =head2
19184 #: ../fish/guestfish-actions.pod:1927
19185 msgid "is-fifo"
19186 msgstr ""
19187
19188 # type: verbatim
19189 #: ../fish/guestfish-actions.pod:1929
19190 #, no-wrap
19191 msgid ""
19192 " is-fifo path\n"
19193 "\n"
19194 msgstr ""
19195
19196 # type: =head2
19197 #: ../fish/guestfish-actions.pod:1936
19198 msgid "is-file"
19199 msgstr ""
19200
19201 # type: verbatim
19202 #: ../fish/guestfish-actions.pod:1938
19203 #, no-wrap
19204 msgid ""
19205 " is-file path\n"
19206 "\n"
19207 msgstr ""
19208
19209 # type: =head2
19210 #: ../fish/guestfish-actions.pod:1946
19211 msgid "is-launching"
19212 msgstr ""
19213
19214 # type: verbatim
19215 #: ../fish/guestfish-actions.pod:1948
19216 #, no-wrap
19217 msgid ""
19218 " is-launching\n"
19219 "\n"
19220 msgstr ""
19221
19222 # type: =head2
19223 #: ../fish/guestfish-actions.pod:1955
19224 msgid "is-lv"
19225 msgstr ""
19226
19227 # type: verbatim
19228 #: ../fish/guestfish-actions.pod:1957
19229 #, no-wrap
19230 msgid ""
19231 " is-lv device\n"
19232 "\n"
19233 msgstr ""
19234
19235 # type: =head2
19236 #: ../fish/guestfish-actions.pod:1962
19237 msgid "is-ready"
19238 msgstr ""
19239
19240 # type: verbatim
19241 #: ../fish/guestfish-actions.pod:1964
19242 #, no-wrap
19243 msgid ""
19244 " is-ready\n"
19245 "\n"
19246 msgstr ""
19247
19248 # type: =head2
19249 #: ../fish/guestfish-actions.pod:1971
19250 msgid "is-socket"
19251 msgstr ""
19252
19253 # type: verbatim
19254 #: ../fish/guestfish-actions.pod:1973
19255 #, no-wrap
19256 msgid ""
19257 " is-socket path\n"
19258 "\n"
19259 msgstr ""
19260
19261 # type: =head2
19262 #: ../fish/guestfish-actions.pod:1980
19263 msgid "is-symlink"
19264 msgstr ""
19265
19266 # type: verbatim
19267 #: ../fish/guestfish-actions.pod:1982
19268 #, no-wrap
19269 msgid ""
19270 " is-symlink path\n"
19271 "\n"
19272 msgstr ""
19273
19274 # type: =head2
19275 #: ../fish/guestfish-actions.pod:1989
19276 msgid "kill-subprocess"
19277 msgstr ""
19278
19279 # type: verbatim
19280 #: ../fish/guestfish-actions.pod:1991
19281 #, no-wrap
19282 msgid ""
19283 " kill-subprocess\n"
19284 "\n"
19285 msgstr ""
19286
19287 # type: =head2
19288 #: ../fish/guestfish-actions.pod:1995
19289 msgid "launch"
19290 msgstr ""
19291
19292 # type: =head2
19293 #: ../fish/guestfish-actions.pod:1997
19294 msgid "run"
19295 msgstr ""
19296
19297 # type: verbatim
19298 #: ../fish/guestfish-actions.pod:1999
19299 #, no-wrap
19300 msgid ""
19301 " launch\n"
19302 "\n"
19303 msgstr ""
19304
19305 # type: =head2
19306 #: ../fish/guestfish-actions.pod:2007
19307 msgid "lchown"
19308 msgstr ""
19309
19310 # type: verbatim
19311 #: ../fish/guestfish-actions.pod:2009
19312 #, no-wrap
19313 msgid ""
19314 " lchown owner group path\n"
19315 "\n"
19316 msgstr ""
19317
19318 # type: textblock
19319 #: ../fish/guestfish-actions.pod:2011
19320 msgid ""
19321 "Change the file owner to C<owner> and group to C<group>.  This is like "
19322 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
19323 "the target."
19324 msgstr ""
19325
19326 # type: =head2
19327 #: ../fish/guestfish-actions.pod:2019
19328 msgid "lgetxattrs"
19329 msgstr ""
19330
19331 # type: verbatim
19332 #: ../fish/guestfish-actions.pod:2021
19333 #, no-wrap
19334 msgid ""
19335 " lgetxattrs path\n"
19336 "\n"
19337 msgstr ""
19338
19339 # type: textblock
19340 #: ../fish/guestfish-actions.pod:2023
19341 msgid ""
19342 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
19343 "it returns the extended attributes of the link itself."
19344 msgstr ""
19345
19346 # type: =head2
19347 #: ../fish/guestfish-actions.pod:2027
19348 msgid "list-devices"
19349 msgstr ""
19350
19351 # type: verbatim
19352 #: ../fish/guestfish-actions.pod:2029
19353 #, no-wrap
19354 msgid ""
19355 " list-devices\n"
19356 "\n"
19357 msgstr ""
19358
19359 # type: =head2
19360 #: ../fish/guestfish-actions.pod:2037
19361 msgid "list-filesystems"
19362 msgstr ""
19363
19364 # type: verbatim
19365 #: ../fish/guestfish-actions.pod:2039
19366 #, no-wrap
19367 msgid ""
19368 " list-filesystems\n"
19369 "\n"
19370 msgstr ""
19371
19372 # type: textblock
19373 #: ../fish/guestfish-actions.pod:2058
19374 msgid ""
19375 "This command runs other libguestfs commands, which might include L</mount> "
19376 "and L</umount>, and therefore you should use this soon after launch and only "
19377 "when nothing is mounted."
19378 msgstr ""
19379
19380 # type: textblock
19381 #: ../fish/guestfish-actions.pod:2062
19382 msgid ""
19383 "Not all of the filesystems returned will be mountable.  In particular, swap "
19384 "partitions are returned in the list.  Also this command does not check that "
19385 "each filesystem found is valid and mountable, and some filesystems might be "
19386 "mountable but require special options.  Filesystems may not all belong to a "
19387 "single logical operating system (use L</inspect-os> to look for OSes)."
19388 msgstr ""
19389
19390 # type: =head2
19391 #: ../fish/guestfish-actions.pod:2070
19392 msgid "list-partitions"
19393 msgstr ""
19394
19395 # type: verbatim
19396 #: ../fish/guestfish-actions.pod:2072
19397 #, no-wrap
19398 msgid ""
19399 " list-partitions\n"
19400 "\n"
19401 msgstr ""
19402
19403 # type: textblock
19404 #: ../fish/guestfish-actions.pod:2078
19405 msgid ""
19406 "This does not return logical volumes.  For that you will need to call "
19407 "L</lvs>."
19408 msgstr ""
19409
19410 # type: =head2
19411 #: ../fish/guestfish-actions.pod:2083
19412 msgid "ll"
19413 msgstr ""
19414
19415 # type: verbatim
19416 #: ../fish/guestfish-actions.pod:2085
19417 #, no-wrap
19418 msgid ""
19419 " ll directory\n"
19420 "\n"
19421 msgstr ""
19422
19423 # type: =head2
19424 #: ../fish/guestfish-actions.pod:2093
19425 msgid "ln"
19426 msgstr ""
19427
19428 # type: verbatim
19429 #: ../fish/guestfish-actions.pod:2095
19430 #, no-wrap
19431 msgid ""
19432 " ln target linkname\n"
19433 "\n"
19434 msgstr ""
19435
19436 # type: =head2
19437 #: ../fish/guestfish-actions.pod:2099
19438 msgid "ln-f"
19439 msgstr ""
19440
19441 # type: verbatim
19442 #: ../fish/guestfish-actions.pod:2101
19443 #, no-wrap
19444 msgid ""
19445 " ln-f target linkname\n"
19446 "\n"
19447 msgstr ""
19448
19449 # type: =head2
19450 #: ../fish/guestfish-actions.pod:2106
19451 msgid "ln-s"
19452 msgstr ""
19453
19454 # type: verbatim
19455 #: ../fish/guestfish-actions.pod:2108
19456 #, no-wrap
19457 msgid ""
19458 " ln-s target linkname\n"
19459 "\n"
19460 msgstr ""
19461
19462 # type: =head2
19463 #: ../fish/guestfish-actions.pod:2112
19464 msgid "ln-sf"
19465 msgstr ""
19466
19467 # type: verbatim
19468 #: ../fish/guestfish-actions.pod:2114
19469 #, no-wrap
19470 msgid ""
19471 " ln-sf target linkname\n"
19472 "\n"
19473 msgstr ""
19474
19475 # type: =head2
19476 #: ../fish/guestfish-actions.pod:2119
19477 msgid "lremovexattr"
19478 msgstr ""
19479
19480 # type: verbatim
19481 #: ../fish/guestfish-actions.pod:2121
19482 #, no-wrap
19483 msgid ""
19484 " lremovexattr xattr path\n"
19485 "\n"
19486 msgstr ""
19487
19488 # type: textblock
19489 #: ../fish/guestfish-actions.pod:2123
19490 msgid ""
19491 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
19492 "it removes an extended attribute of the link itself."
19493 msgstr ""
19494
19495 # type: =head2
19496 #: ../fish/guestfish-actions.pod:2127
19497 msgid "ls"
19498 msgstr ""
19499
19500 # type: verbatim
19501 #: ../fish/guestfish-actions.pod:2129
19502 #, no-wrap
19503 msgid ""
19504 " ls directory\n"
19505 "\n"
19506 msgstr ""
19507
19508 # type: textblock
19509 #: ../fish/guestfish-actions.pod:2135
19510 msgid ""
19511 "This command is mostly useful for interactive sessions.  Programs should "
19512 "probably use L</readdir> instead."
19513 msgstr ""
19514
19515 # type: =head2
19516 #: ../fish/guestfish-actions.pod:2138
19517 msgid "lsetxattr"
19518 msgstr ""
19519
19520 # type: verbatim
19521 #: ../fish/guestfish-actions.pod:2140
19522 #, no-wrap
19523 msgid ""
19524 " lsetxattr xattr val vallen path\n"
19525 "\n"
19526 msgstr ""
19527
19528 # type: textblock
19529 #: ../fish/guestfish-actions.pod:2142
19530 msgid ""
19531 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
19532 "sets an extended attribute of the link itself."
19533 msgstr ""
19534
19535 # type: =head2
19536 #: ../fish/guestfish-actions.pod:2146
19537 msgid "lstat"
19538 msgstr ""
19539
19540 # type: verbatim
19541 #: ../fish/guestfish-actions.pod:2148
19542 #, no-wrap
19543 msgid ""
19544 " lstat path\n"
19545 "\n"
19546 msgstr ""
19547
19548 # type: textblock
19549 #: ../fish/guestfish-actions.pod:2152
19550 msgid ""
19551 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
19552 "the link is stat-ed, not the file it refers to."
19553 msgstr ""
19554
19555 # type: =head2
19556 #: ../fish/guestfish-actions.pod:2158
19557 msgid "lstatlist"
19558 msgstr ""
19559
19560 # type: verbatim
19561 #: ../fish/guestfish-actions.pod:2160
19562 #, no-wrap
19563 msgid ""
19564 " lstatlist path 'names ...'\n"
19565 "\n"
19566 msgstr ""
19567
19568 # type: textblock
19569 #: ../fish/guestfish-actions.pod:2162
19570 msgid ""
19571 "This call allows you to perform the L</lstat> operation on multiple files, "
19572 "where all files are in the directory C<path>.  C<names> is the list of files "
19573 "from this directory."
19574 msgstr ""
19575
19576 # type: textblock
19577 #: ../fish/guestfish-actions.pod:2171
19578 msgid ""
19579 "This call is intended for programs that want to efficiently list a directory "
19580 "contents without making many round-trips.  See also L</lxattrlist> for a "
19581 "similarly efficient call for getting extended attributes.  Very long "
19582 "directory listings might cause the protocol message size to be exceeded, "
19583 "causing this call to fail.  The caller must split up such requests into "
19584 "smaller groups of names."
19585 msgstr ""
19586
19587 # type: =head2
19588 #: ../fish/guestfish-actions.pod:2179
19589 msgid "luks-add-key"
19590 msgstr ""
19591
19592 # type: verbatim
19593 #: ../fish/guestfish-actions.pod:2181
19594 #, no-wrap
19595 msgid ""
19596 " luks-add-key device keyslot\n"
19597 "\n"
19598 msgstr ""
19599
19600 # type: textblock
19601 #: ../fish/guestfish-actions.pod:2188
19602 msgid ""
19603 "Note that if C<keyslot> already contains a key, then this command will "
19604 "fail.  You have to use L</luks-kill-slot> first to remove that key."
19605 msgstr ""
19606
19607 # type: textblock
19608 #: ../fish/guestfish-actions.pod:2192 ../fish/guestfish-actions.pod:2214 ../fish/guestfish-actions.pod:2227 ../fish/guestfish-actions.pod:2241 ../fish/guestfish-actions.pod:2264 ../fish/guestfish-actions.pod:2274
19609 msgid ""
19610 "This command has one or more key or passphrase parameters.  Guestfish will "
19611 "prompt for these separately."
19612 msgstr ""
19613
19614 # type: =head2
19615 #: ../fish/guestfish-actions.pod:2195
19616 msgid "luks-close"
19617 msgstr ""
19618
19619 # type: verbatim
19620 #: ../fish/guestfish-actions.pod:2197
19621 #, no-wrap
19622 msgid ""
19623 " luks-close device\n"
19624 "\n"
19625 msgstr ""
19626
19627 # type: textblock
19628 #: ../fish/guestfish-actions.pod:2199
19629 msgid ""
19630 "This closes a LUKS device that was created earlier by L</luks-open> or "
19631 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
19632 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
19633 "underlying block device."
19634 msgstr ""
19635
19636 # type: =head2
19637 #: ../fish/guestfish-actions.pod:2205
19638 msgid "luks-format"
19639 msgstr ""
19640
19641 # type: verbatim
19642 #: ../fish/guestfish-actions.pod:2207
19643 #, no-wrap
19644 msgid ""
19645 " luks-format device keyslot\n"
19646 "\n"
19647 msgstr ""
19648
19649 # type: =head2
19650 #: ../fish/guestfish-actions.pod:2220
19651 msgid "luks-format-cipher"
19652 msgstr ""
19653
19654 # type: verbatim
19655 #: ../fish/guestfish-actions.pod:2222
19656 #, no-wrap
19657 msgid ""
19658 " luks-format-cipher device keyslot cipher\n"
19659 "\n"
19660 msgstr ""
19661
19662 # type: textblock
19663 #: ../fish/guestfish-actions.pod:2224
19664 msgid ""
19665 "This command is the same as L</luks-format> but it also allows you to set "
19666 "the C<cipher> used."
19667 msgstr ""
19668
19669 # type: =head2
19670 #: ../fish/guestfish-actions.pod:2233
19671 msgid "luks-kill-slot"
19672 msgstr ""
19673
19674 # type: verbatim
19675 #: ../fish/guestfish-actions.pod:2235
19676 #, no-wrap
19677 msgid ""
19678 " luks-kill-slot device keyslot\n"
19679 "\n"
19680 msgstr ""
19681
19682 # type: =head2
19683 #: ../fish/guestfish-actions.pod:2244
19684 msgid "luks-open"
19685 msgstr ""
19686
19687 # type: verbatim
19688 #: ../fish/guestfish-actions.pod:2246
19689 #, no-wrap
19690 msgid ""
19691 " luks-open device mapname\n"
19692 "\n"
19693 msgstr ""
19694
19695 # type: textblock
19696 #: ../fish/guestfish-actions.pod:2260
19697 msgid ""
19698 "If this block device contains LVM volume groups, then calling L</vgscan> "
19699 "followed by L</vg-activate-all> will make them visible."
19700 msgstr ""
19701
19702 # type: =head2
19703 #: ../fish/guestfish-actions.pod:2267
19704 msgid "luks-open-ro"
19705 msgstr ""
19706
19707 # type: verbatim
19708 #: ../fish/guestfish-actions.pod:2269
19709 #, no-wrap
19710 msgid ""
19711 " luks-open-ro device mapname\n"
19712 "\n"
19713 msgstr ""
19714
19715 # type: textblock
19716 #: ../fish/guestfish-actions.pod:2271
19717 msgid ""
19718 "This is the same as L</luks-open> except that a read-only mapping is "
19719 "created."
19720 msgstr ""
19721
19722 # type: =head2
19723 #: ../fish/guestfish-actions.pod:2277
19724 msgid "lvcreate"
19725 msgstr ""
19726
19727 # type: verbatim
19728 #: ../fish/guestfish-actions.pod:2279
19729 #, no-wrap
19730 msgid ""
19731 " lvcreate logvol volgroup mbytes\n"
19732 "\n"
19733 msgstr ""
19734
19735 # type: =head2
19736 #: ../fish/guestfish-actions.pod:2284
19737 msgid "lvm-canonical-lv-name"
19738 msgstr ""
19739
19740 # type: verbatim
19741 #: ../fish/guestfish-actions.pod:2286
19742 #, no-wrap
19743 msgid ""
19744 " lvm-canonical-lv-name lvname\n"
19745 "\n"
19746 msgstr ""
19747
19748 # type: textblock
19749 #: ../fish/guestfish-actions.pod:2295
19750 msgid "See also L</is-lv>."
19751 msgstr ""
19752
19753 # type: =head2
19754 #: ../fish/guestfish-actions.pod:2297
19755 msgid "lvm-clear-filter"
19756 msgstr ""
19757
19758 # type: verbatim
19759 #: ../fish/guestfish-actions.pod:2299
19760 #, no-wrap
19761 msgid ""
19762 " lvm-clear-filter\n"
19763 "\n"
19764 msgstr ""
19765
19766 # type: textblock
19767 #: ../fish/guestfish-actions.pod:2301
19768 msgid ""
19769 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
19770 "block device."
19771 msgstr ""
19772
19773 # type: =head2
19774 #: ../fish/guestfish-actions.pod:2307
19775 msgid "lvm-remove-all"
19776 msgstr ""
19777
19778 # type: verbatim
19779 #: ../fish/guestfish-actions.pod:2309
19780 #, no-wrap
19781 msgid ""
19782 " lvm-remove-all\n"
19783 "\n"
19784 msgstr ""
19785
19786 # type: =head2
19787 #: ../fish/guestfish-actions.pod:2317
19788 msgid "lvm-set-filter"
19789 msgstr ""
19790
19791 # type: verbatim
19792 #: ../fish/guestfish-actions.pod:2319
19793 #, no-wrap
19794 msgid ""
19795 " lvm-set-filter 'devices ...'\n"
19796 "\n"
19797 msgstr ""
19798
19799 # type: =head2
19800 #: ../fish/guestfish-actions.pod:2344
19801 msgid "lvremove"
19802 msgstr ""
19803
19804 # type: verbatim
19805 #: ../fish/guestfish-actions.pod:2346
19806 #, no-wrap
19807 msgid ""
19808 " lvremove device\n"
19809 "\n"
19810 msgstr ""
19811
19812 # type: =head2
19813 #: ../fish/guestfish-actions.pod:2354
19814 msgid "lvrename"
19815 msgstr ""
19816
19817 # type: verbatim
19818 #: ../fish/guestfish-actions.pod:2356
19819 #, no-wrap
19820 msgid ""
19821 " lvrename logvol newlogvol\n"
19822 "\n"
19823 msgstr ""
19824
19825 # type: =head2
19826 #: ../fish/guestfish-actions.pod:2360
19827 msgid "lvresize"
19828 msgstr ""
19829
19830 # type: verbatim
19831 #: ../fish/guestfish-actions.pod:2362
19832 #, no-wrap
19833 msgid ""
19834 " lvresize device mbytes\n"
19835 "\n"
19836 msgstr ""
19837
19838 # type: =head2
19839 #: ../fish/guestfish-actions.pod:2368
19840 msgid "lvresize-free"
19841 msgstr ""
19842
19843 # type: verbatim
19844 #: ../fish/guestfish-actions.pod:2370
19845 #, no-wrap
19846 msgid ""
19847 " lvresize-free lv percent\n"
19848 "\n"
19849 msgstr ""
19850
19851 # type: =head2
19852 #: ../fish/guestfish-actions.pod:2378
19853 msgid "lvs"
19854 msgstr ""
19855
19856 # type: verbatim
19857 #: ../fish/guestfish-actions.pod:2380
19858 #, no-wrap
19859 msgid ""
19860 " lvs\n"
19861 "\n"
19862 msgstr ""
19863
19864 # type: textblock
19865 #: ../fish/guestfish-actions.pod:2388
19866 msgid "See also L</lvs-full>, L</list-filesystems>."
19867 msgstr ""
19868
19869 # type: =head2
19870 #: ../fish/guestfish-actions.pod:2390
19871 msgid "lvs-full"
19872 msgstr ""
19873
19874 # type: verbatim
19875 #: ../fish/guestfish-actions.pod:2392
19876 #, no-wrap
19877 msgid ""
19878 " lvs-full\n"
19879 "\n"
19880 msgstr ""
19881
19882 # type: =head2
19883 #: ../fish/guestfish-actions.pod:2397
19884 msgid "lvuuid"
19885 msgstr ""
19886
19887 # type: verbatim
19888 #: ../fish/guestfish-actions.pod:2399
19889 #, no-wrap
19890 msgid ""
19891 " lvuuid device\n"
19892 "\n"
19893 msgstr ""
19894
19895 # type: =head2
19896 #: ../fish/guestfish-actions.pod:2403
19897 msgid "lxattrlist"
19898 msgstr ""
19899
19900 # type: verbatim
19901 #: ../fish/guestfish-actions.pod:2405
19902 #, no-wrap
19903 msgid ""
19904 " lxattrlist path 'names ...'\n"
19905 "\n"
19906 msgstr ""
19907
19908 # type: textblock
19909 #: ../fish/guestfish-actions.pod:2421
19910 msgid ""
19911 "This call is intended for programs that want to efficiently list a directory "
19912 "contents without making many round-trips.  See also L</lstatlist> for a "
19913 "similarly efficient call for getting standard stats.  Very long directory "
19914 "listings might cause the protocol message size to be exceeded, causing this "
19915 "call to fail.  The caller must split up such requests into smaller groups of "
19916 "names."
19917 msgstr ""
19918
19919 # type: =head2
19920 #: ../fish/guestfish-actions.pod:2429
19921 msgid "mkdir"
19922 msgstr ""
19923
19924 # type: verbatim
19925 #: ../fish/guestfish-actions.pod:2431
19926 #, no-wrap
19927 msgid ""
19928 " mkdir path\n"
19929 "\n"
19930 msgstr ""
19931
19932 # type: =head2
19933 #: ../fish/guestfish-actions.pod:2435
19934 msgid "mkdir-mode"
19935 msgstr ""
19936
19937 # type: verbatim
19938 #: ../fish/guestfish-actions.pod:2437
19939 #, no-wrap
19940 msgid ""
19941 " mkdir-mode path mode\n"
19942 "\n"
19943 msgstr ""
19944
19945 # type: textblock
19946 #: ../fish/guestfish-actions.pod:2446
19947 msgid "See also L</mkdir>, L</umask>"
19948 msgstr ""
19949
19950 # type: =head2
19951 #: ../fish/guestfish-actions.pod:2448
19952 msgid "mkdir-p"
19953 msgstr ""
19954
19955 # type: verbatim
19956 #: ../fish/guestfish-actions.pod:2450
19957 #, no-wrap
19958 msgid ""
19959 " mkdir-p path\n"
19960 "\n"
19961 msgstr ""
19962
19963 # type: =head2
19964 #: ../fish/guestfish-actions.pod:2455
19965 msgid "mkdtemp"
19966 msgstr ""
19967
19968 # type: verbatim
19969 #: ../fish/guestfish-actions.pod:2457
19970 #, no-wrap
19971 msgid ""
19972 " mkdtemp template\n"
19973 "\n"
19974 msgstr ""
19975
19976 # type: =head2
19977 #: ../fish/guestfish-actions.pod:2478
19978 msgid "mke2fs-J"
19979 msgstr ""
19980
19981 # type: verbatim
19982 #: ../fish/guestfish-actions.pod:2480
19983 #, no-wrap
19984 msgid ""
19985 " mke2fs-J fstype blocksize device journal\n"
19986 "\n"
19987 msgstr ""
19988
19989 # type: textblock
19990 #: ../fish/guestfish-actions.pod:2488
19991 msgid "See also L</mke2journal>."
19992 msgstr ""
19993
19994 # type: =head2
19995 #: ../fish/guestfish-actions.pod:2490
19996 msgid "mke2fs-JL"
19997 msgstr ""
19998
19999 # type: verbatim
20000 #: ../fish/guestfish-actions.pod:2492
20001 #, no-wrap
20002 msgid ""
20003 " mke2fs-JL fstype blocksize device label\n"
20004 "\n"
20005 msgstr ""
20006
20007 # type: textblock
20008 #: ../fish/guestfish-actions.pod:2497
20009 msgid "See also L</mke2journal-L>."
20010 msgstr ""
20011
20012 # type: =head2
20013 #: ../fish/guestfish-actions.pod:2499
20014 msgid "mke2fs-JU"
20015 msgstr ""
20016
20017 # type: verbatim
20018 #: ../fish/guestfish-actions.pod:2501
20019 #, no-wrap
20020 msgid ""
20021 " mke2fs-JU fstype blocksize device uuid\n"
20022 "\n"
20023 msgstr ""
20024
20025 # type: textblock
20026 #: ../fish/guestfish-actions.pod:2506
20027 msgid "See also L</mke2journal-U>."
20028 msgstr ""
20029
20030 # type: =head2
20031 #: ../fish/guestfish-actions.pod:2508
20032 msgid "mke2journal"
20033 msgstr ""
20034
20035 # type: verbatim
20036 #: ../fish/guestfish-actions.pod:2510
20037 #, no-wrap
20038 msgid ""
20039 " mke2journal blocksize device\n"
20040 "\n"
20041 msgstr ""
20042
20043 # type: =head2
20044 #: ../fish/guestfish-actions.pod:2517
20045 msgid "mke2journal-L"
20046 msgstr ""
20047
20048 # type: verbatim
20049 #: ../fish/guestfish-actions.pod:2519
20050 #, no-wrap
20051 msgid ""
20052 " mke2journal-L blocksize label device\n"
20053 "\n"
20054 msgstr ""
20055
20056 # type: =head2
20057 #: ../fish/guestfish-actions.pod:2523
20058 msgid "mke2journal-U"
20059 msgstr ""
20060
20061 # type: verbatim
20062 #: ../fish/guestfish-actions.pod:2525
20063 #, no-wrap
20064 msgid ""
20065 " mke2journal-U blocksize uuid device\n"
20066 "\n"
20067 msgstr ""
20068
20069 # type: =head2
20070 #: ../fish/guestfish-actions.pod:2529
20071 msgid "mkfifo"
20072 msgstr ""
20073
20074 # type: verbatim
20075 #: ../fish/guestfish-actions.pod:2531
20076 #, no-wrap
20077 msgid ""
20078 " mkfifo mode path\n"
20079 "\n"
20080 msgstr ""
20081
20082 # type: textblock
20083 #: ../fish/guestfish-actions.pod:2533
20084 msgid ""
20085 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
20086 "is just a convenient wrapper around L</mknod>."
20087 msgstr ""
20088
20089 # type: =head2
20090 #: ../fish/guestfish-actions.pod:2539
20091 msgid "mkfs"
20092 msgstr ""
20093
20094 # type: verbatim
20095 #: ../fish/guestfish-actions.pod:2541
20096 #, no-wrap
20097 msgid ""
20098 " mkfs fstype device\n"
20099 "\n"
20100 msgstr ""
20101
20102 # type: =head2
20103 #: ../fish/guestfish-actions.pod:2547
20104 msgid "mkfs-b"
20105 msgstr ""
20106
20107 # type: verbatim
20108 #: ../fish/guestfish-actions.pod:2549
20109 #, no-wrap
20110 msgid ""
20111 " mkfs-b fstype blocksize device\n"
20112 "\n"
20113 msgstr ""
20114
20115 # type: textblock
20116 #: ../fish/guestfish-actions.pod:2551
20117 msgid ""
20118 "This call is similar to L</mkfs>, but it allows you to control the block "
20119 "size of the resulting filesystem.  Supported block sizes depend on the "
20120 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
20121 msgstr ""
20122
20123 # type: =head2
20124 #: ../fish/guestfish-actions.pod:2559
20125 msgid "mkmountpoint"
20126 msgstr ""
20127
20128 # type: verbatim
20129 #: ../fish/guestfish-actions.pod:2561
20130 #, no-wrap
20131 msgid ""
20132 " mkmountpoint exemptpath\n"
20133 "\n"
20134 msgstr ""
20135
20136 # type: textblock
20137 #: ../fish/guestfish-actions.pod:2563
20138 msgid ""
20139 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
20140 "to create extra mountpoints before mounting the first filesystem."
20141 msgstr ""
20142
20143 # type: textblock
20144 #: ../fish/guestfish-actions.pod:2587
20145 msgid ""
20146 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
20147 "unexpected errors if you try to mix these calls.  It is safest to manually "
20148 "unmount filesystems and remove mountpoints after use."
20149 msgstr ""
20150
20151 # type: textblock
20152 #: ../fish/guestfish-actions.pod:2591
20153 msgid ""
20154 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
20155 "for this to work for manual mountpoints, you must ensure that the innermost "
20156 "mountpoints have the longest pathnames, as in the example code above."
20157 msgstr ""
20158
20159 # type: textblock
20160 #: ../fish/guestfish-actions.pod:2598
20161 msgid ""
20162 "Autosync [see L</set-autosync>, this is set by default on handles] means "
20163 "that L</umount-all> is called when the handle is closed which can also "
20164 "trigger these issues."
20165 msgstr ""
20166
20167 # type: =head2
20168 #: ../fish/guestfish-actions.pod:2602
20169 msgid "mknod"
20170 msgstr ""
20171
20172 # type: verbatim
20173 #: ../fish/guestfish-actions.pod:2604
20174 #, no-wrap
20175 msgid ""
20176 " mknod mode devmajor devminor path\n"
20177 "\n"
20178 msgstr ""
20179
20180 # type: textblock
20181 #: ../fish/guestfish-actions.pod:2614
20182 msgid ""
20183 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
20184 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
20185 "regular file).  These constants are available in the standard Linux header "
20186 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
20187 "wrappers around this command which bitwise OR in the appropriate constant "
20188 "for you."
20189 msgstr ""
20190
20191 # type: =head2
20192 #: ../fish/guestfish-actions.pod:2624
20193 msgid "mknod-b"
20194 msgstr ""
20195
20196 # type: verbatim
20197 #: ../fish/guestfish-actions.pod:2626
20198 #, no-wrap
20199 msgid ""
20200 " mknod-b mode devmajor devminor path\n"
20201 "\n"
20202 msgstr ""
20203
20204 # type: textblock
20205 #: ../fish/guestfish-actions.pod:2628
20206 msgid ""
20207 "This call creates a block device node called C<path> with mode C<mode> and "
20208 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20209 "wrapper around L</mknod>."
20210 msgstr ""
20211
20212 # type: =head2
20213 #: ../fish/guestfish-actions.pod:2634
20214 msgid "mknod-c"
20215 msgstr ""
20216
20217 # type: verbatim
20218 #: ../fish/guestfish-actions.pod:2636
20219 #, no-wrap
20220 msgid ""
20221 " mknod-c mode devmajor devminor path\n"
20222 "\n"
20223 msgstr ""
20224
20225 # type: textblock
20226 #: ../fish/guestfish-actions.pod:2638
20227 msgid ""
20228 "This call creates a char device node called C<path> with mode C<mode> and "
20229 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20230 "wrapper around L</mknod>."
20231 msgstr ""
20232
20233 # type: =head2
20234 #: ../fish/guestfish-actions.pod:2644
20235 msgid "mkswap"
20236 msgstr ""
20237
20238 # type: verbatim
20239 #: ../fish/guestfish-actions.pod:2646
20240 #, no-wrap
20241 msgid ""
20242 " mkswap device\n"
20243 "\n"
20244 msgstr ""
20245
20246 # type: =head2
20247 #: ../fish/guestfish-actions.pod:2650
20248 msgid "mkswap-L"
20249 msgstr ""
20250
20251 # type: verbatim
20252 #: ../fish/guestfish-actions.pod:2652
20253 #, no-wrap
20254 msgid ""
20255 " mkswap-L label device\n"
20256 "\n"
20257 msgstr ""
20258
20259 # type: =head2
20260 #: ../fish/guestfish-actions.pod:2660
20261 msgid "mkswap-U"
20262 msgstr ""
20263
20264 # type: verbatim
20265 #: ../fish/guestfish-actions.pod:2662
20266 #, no-wrap
20267 msgid ""
20268 " mkswap-U uuid device\n"
20269 "\n"
20270 msgstr ""
20271
20272 # type: =head2
20273 #: ../fish/guestfish-actions.pod:2666
20274 msgid "mkswap-file"
20275 msgstr ""
20276
20277 # type: verbatim
20278 #: ../fish/guestfish-actions.pod:2668
20279 #, no-wrap
20280 msgid ""
20281 " mkswap-file path\n"
20282 "\n"
20283 msgstr ""
20284
20285 # type: textblock
20286 #: ../fish/guestfish-actions.pod:2672
20287 msgid ""
20288 "This command just writes a swap file signature to an existing file.  To "
20289 "create the file itself, use something like L</fallocate>."
20290 msgstr ""
20291
20292 # type: =head2
20293 #: ../fish/guestfish-actions.pod:2675
20294 msgid "modprobe"
20295 msgstr ""
20296
20297 # type: verbatim
20298 #: ../fish/guestfish-actions.pod:2677
20299 #, no-wrap
20300 msgid ""
20301 " modprobe modulename\n"
20302 "\n"
20303 msgstr ""
20304
20305 # type: =head2
20306 #: ../fish/guestfish-actions.pod:2684
20307 msgid "mount"
20308 msgstr ""
20309
20310 # type: verbatim
20311 #: ../fish/guestfish-actions.pod:2686
20312 #, no-wrap
20313 msgid ""
20314 " mount device mountpoint\n"
20315 "\n"
20316 msgstr ""
20317
20318 # type: textblock
20319 #: ../fish/guestfish-actions.pod:2702
20320 msgid ""
20321 "B<Important note:> When you use this call, the filesystem options C<sync> "
20322 "and C<noatime> are set implicitly.  This was originally done because we "
20323 "thought it would improve reliability, but it turns out that I<-o sync> has a "
20324 "very large negative performance impact and negligible effect on "
20325 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
20326 "code that needs performance, and instead use L</mount-options> (use an empty "
20327 "string for the first parameter if you don't want any options)."
20328 msgstr ""
20329
20330 # type: =head2
20331 #: ../fish/guestfish-actions.pod:2712
20332 msgid "mount-loop"
20333 msgstr ""
20334
20335 # type: verbatim
20336 #: ../fish/guestfish-actions.pod:2714
20337 #, no-wrap
20338 msgid ""
20339 " mount-loop file mountpoint\n"
20340 "\n"
20341 msgstr ""
20342
20343 # type: =head2
20344 #: ../fish/guestfish-actions.pod:2720
20345 msgid "mount-options"
20346 msgstr ""
20347
20348 # type: verbatim
20349 #: ../fish/guestfish-actions.pod:2722
20350 #, no-wrap
20351 msgid ""
20352 " mount-options options device mountpoint\n"
20353 "\n"
20354 msgstr ""
20355
20356 # type: textblock
20357 #: ../fish/guestfish-actions.pod:2724
20358 msgid ""
20359 "This is the same as the L</mount> command, but it allows you to set the "
20360 "mount options as for the L<mount(8)> I<-o> flag."
20361 msgstr ""
20362
20363 # type: =head2
20364 #: ../fish/guestfish-actions.pod:2732
20365 msgid "mount-ro"
20366 msgstr ""
20367
20368 # type: verbatim
20369 #: ../fish/guestfish-actions.pod:2734
20370 #, no-wrap
20371 msgid ""
20372 " mount-ro device mountpoint\n"
20373 "\n"
20374 msgstr ""
20375
20376 # type: textblock
20377 #: ../fish/guestfish-actions.pod:2736
20378 msgid ""
20379 "This is the same as the L</mount> command, but it mounts the filesystem with "
20380 "the read-only (I<-o ro>) flag."
20381 msgstr ""
20382
20383 # type: =head2
20384 #: ../fish/guestfish-actions.pod:2739
20385 msgid "mount-vfs"
20386 msgstr ""
20387
20388 # type: verbatim
20389 #: ../fish/guestfish-actions.pod:2741
20390 #, no-wrap
20391 msgid ""
20392 " mount-vfs options vfstype device mountpoint\n"
20393 "\n"
20394 msgstr ""
20395
20396 # type: textblock
20397 #: ../fish/guestfish-actions.pod:2743
20398 msgid ""
20399 "This is the same as the L</mount> command, but it allows you to set both the "
20400 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20401 msgstr ""
20402
20403 # type: =head2
20404 #: ../fish/guestfish-actions.pod:2747
20405 msgid "mountpoints"
20406 msgstr ""
20407
20408 # type: verbatim
20409 #: ../fish/guestfish-actions.pod:2749
20410 #, no-wrap
20411 msgid ""
20412 " mountpoints\n"
20413 "\n"
20414 msgstr ""
20415
20416 # type: textblock
20417 #: ../fish/guestfish-actions.pod:2751
20418 msgid ""
20419 "This call is similar to L</mounts>.  That call returns a list of devices.  "
20420 "This one returns a hash table (map) of device name to directory where the "
20421 "device is mounted."
20422 msgstr ""
20423
20424 # type: =head2
20425 #: ../fish/guestfish-actions.pod:2755
20426 msgid "mounts"
20427 msgstr ""
20428
20429 # type: verbatim
20430 #: ../fish/guestfish-actions.pod:2757
20431 #, no-wrap
20432 msgid ""
20433 " mounts\n"
20434 "\n"
20435 msgstr ""
20436
20437 # type: textblock
20438 #: ../fish/guestfish-actions.pod:2764
20439 msgid "See also: L</mountpoints>"
20440 msgstr ""
20441
20442 # type: =head2
20443 #: ../fish/guestfish-actions.pod:2766
20444 msgid "mv"
20445 msgstr ""
20446
20447 # type: verbatim
20448 #: ../fish/guestfish-actions.pod:2768
20449 #, no-wrap
20450 msgid ""
20451 " mv src dest\n"
20452 "\n"
20453 msgstr ""
20454
20455 # type: =head2
20456 #: ../fish/guestfish-actions.pod:2773
20457 msgid "ntfs-3g-probe"
20458 msgstr ""
20459
20460 # type: verbatim
20461 #: ../fish/guestfish-actions.pod:2775
20462 #, no-wrap
20463 msgid ""
20464 " ntfs-3g-probe true|false device\n"
20465 "\n"
20466 msgstr ""
20467
20468 # type: =head2
20469 #: ../fish/guestfish-actions.pod:2789
20470 msgid "ntfsresize"
20471 msgstr ""
20472
20473 # type: verbatim
20474 #: ../fish/guestfish-actions.pod:2791
20475 #, no-wrap
20476 msgid ""
20477 " ntfsresize device\n"
20478 "\n"
20479 msgstr ""
20480
20481 # type: =head2
20482 #: ../fish/guestfish-actions.pod:2797
20483 msgid "ntfsresize-size"
20484 msgstr ""
20485
20486 # type: verbatim
20487 #: ../fish/guestfish-actions.pod:2799
20488 #, no-wrap
20489 msgid ""
20490 " ntfsresize-size device size\n"
20491 "\n"
20492 msgstr ""
20493
20494 # type: textblock
20495 #: ../fish/guestfish-actions.pod:2801
20496 msgid ""
20497 "This command is the same as L</ntfsresize> except that it allows you to "
20498 "specify the new size (in bytes) explicitly."
20499 msgstr ""
20500
20501 # type: =head2
20502 #: ../fish/guestfish-actions.pod:2804
20503 msgid "part-add"
20504 msgstr ""
20505
20506 # type: verbatim
20507 #: ../fish/guestfish-actions.pod:2806
20508 #, no-wrap
20509 msgid ""
20510 " part-add device prlogex startsect endsect\n"
20511 "\n"
20512 msgstr ""
20513
20514 # type: textblock
20515 #: ../fish/guestfish-actions.pod:2808
20516 msgid ""
20517 "This command adds a partition to C<device>.  If there is no partition table "
20518 "on the device, call L</part-init> first."
20519 msgstr ""
20520
20521 # type: textblock
20522 #: ../fish/guestfish-actions.pod:2820
20523 msgid ""
20524 "Creating a partition which covers the whole disk is not so easy.  Use "
20525 "L</part-disk> to do that."
20526 msgstr ""
20527
20528 # type: =head2
20529 #: ../fish/guestfish-actions.pod:2823
20530 msgid "part-del"
20531 msgstr ""
20532
20533 # type: verbatim
20534 #: ../fish/guestfish-actions.pod:2825
20535 #, no-wrap
20536 msgid ""
20537 " part-del device partnum\n"
20538 "\n"
20539 msgstr ""
20540
20541 # type: =head2
20542 #: ../fish/guestfish-actions.pod:2833
20543 msgid "part-disk"
20544 msgstr ""
20545
20546 # type: verbatim
20547 #: ../fish/guestfish-actions.pod:2835
20548 #, no-wrap
20549 msgid ""
20550 " part-disk device parttype\n"
20551 "\n"
20552 msgstr ""
20553
20554 # type: textblock
20555 #: ../fish/guestfish-actions.pod:2837
20556 msgid ""
20557 "This command is simply a combination of L</part-init> followed by "
20558 "L</part-add> to create a single primary partition covering the whole disk."
20559 msgstr ""
20560
20561 # type: textblock
20562 #: ../fish/guestfish-actions.pod:2841
20563 msgid ""
20564 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
20565 "possible values are described in L</part-init>."
20566 msgstr ""
20567
20568 # type: =head2
20569 #: ../fish/guestfish-actions.pod:2847
20570 msgid "part-get-bootable"
20571 msgstr ""
20572
20573 # type: verbatim
20574 #: ../fish/guestfish-actions.pod:2849
20575 #, no-wrap
20576 msgid ""
20577 " part-get-bootable device partnum\n"
20578 "\n"
20579 msgstr ""
20580
20581 # type: textblock
20582 #: ../fish/guestfish-actions.pod:2854
20583 msgid "See also L</part-set-bootable>."
20584 msgstr ""
20585
20586 # type: =head2
20587 #: ../fish/guestfish-actions.pod:2856
20588 msgid "part-get-mbr-id"
20589 msgstr ""
20590
20591 # type: verbatim
20592 #: ../fish/guestfish-actions.pod:2858
20593 #, no-wrap
20594 msgid ""
20595 " part-get-mbr-id device partnum\n"
20596 "\n"
20597 msgstr ""
20598
20599 # type: textblock
20600 #: ../fish/guestfish-actions.pod:2863 ../fish/guestfish-actions.pod:3001
20601 msgid ""
20602 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
20603 "undefined results for other partition table types (see "
20604 "L</part-get-parttype>)."
20605 msgstr ""
20606
20607 # type: =head2
20608 #: ../fish/guestfish-actions.pod:2867
20609 msgid "part-get-parttype"
20610 msgstr ""
20611
20612 # type: verbatim
20613 #: ../fish/guestfish-actions.pod:2869
20614 #, no-wrap
20615 msgid ""
20616 " part-get-parttype device\n"
20617 "\n"
20618 msgstr ""
20619
20620 # type: textblock
20621 #: ../fish/guestfish-actions.pod:2874
20622 msgid ""
20623 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
20624 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
20625 "possible, although unusual.  See L</part-init> for a full list."
20626 msgstr ""
20627
20628 # type: =head2
20629 #: ../fish/guestfish-actions.pod:2879
20630 msgid "part-init"
20631 msgstr ""
20632
20633 # type: verbatim
20634 #: ../fish/guestfish-actions.pod:2881
20635 #, no-wrap
20636 msgid ""
20637 " part-init device parttype\n"
20638 "\n"
20639 msgstr ""
20640
20641 # type: textblock
20642 #: ../fish/guestfish-actions.pod:2887
20643 msgid ""
20644 "Initially there are no partitions.  Following this, you should call "
20645 "L</part-add> for each partition required."
20646 msgstr ""
20647
20648 # type: =head2
20649 #: ../fish/guestfish-actions.pod:2950
20650 msgid "part-list"
20651 msgstr ""
20652
20653 # type: verbatim
20654 #: ../fish/guestfish-actions.pod:2952
20655 #, no-wrap
20656 msgid ""
20657 " part-list device\n"
20658 "\n"
20659 msgstr ""
20660
20661 # type: textblock
20662 #: ../fish/guestfish-actions.pod:2967
20663 msgid ""
20664 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
20665 "the device's sector size, see L</blockdev-getss>."
20666 msgstr ""
20667
20668 # type: =head2
20669 #: ../fish/guestfish-actions.pod:2980
20670 msgid "part-set-bootable"
20671 msgstr ""
20672
20673 # type: verbatim
20674 #: ../fish/guestfish-actions.pod:2982
20675 #, no-wrap
20676 msgid ""
20677 " part-set-bootable device partnum true|false\n"
20678 "\n"
20679 msgstr ""
20680
20681 # type: =head2
20682 #: ../fish/guestfish-actions.pod:2991
20683 msgid "part-set-mbr-id"
20684 msgstr ""
20685
20686 # type: verbatim
20687 #: ../fish/guestfish-actions.pod:2993
20688 #, no-wrap
20689 msgid ""
20690 " part-set-mbr-id device partnum idbyte\n"
20691 "\n"
20692 msgstr ""
20693
20694 # type: =head2
20695 #: ../fish/guestfish-actions.pod:3005
20696 msgid "part-set-name"
20697 msgstr ""
20698
20699 # type: verbatim
20700 #: ../fish/guestfish-actions.pod:3007
20701 #, no-wrap
20702 msgid ""
20703 " part-set-name device partnum name\n"
20704 "\n"
20705 msgstr ""
20706
20707 # type: =head2
20708 #: ../fish/guestfish-actions.pod:3015
20709 msgid "part-to-dev"
20710 msgstr ""
20711
20712 # type: verbatim
20713 #: ../fish/guestfish-actions.pod:3017
20714 #, no-wrap
20715 msgid ""
20716 " part-to-dev partition\n"
20717 "\n"
20718 msgstr ""
20719
20720 # type: textblock
20721 #: ../fish/guestfish-actions.pod:3023
20722 msgid ""
20723 "The named partition must exist, for example as a string returned from "
20724 "L</list-partitions>."
20725 msgstr ""
20726
20727 # type: =head2
20728 #: ../fish/guestfish-actions.pod:3026
20729 msgid "ping-daemon"
20730 msgstr ""
20731
20732 # type: verbatim
20733 #: ../fish/guestfish-actions.pod:3028
20734 #, no-wrap
20735 msgid ""
20736 " ping-daemon\n"
20737 "\n"
20738 msgstr ""
20739
20740 # type: =head2
20741 #: ../fish/guestfish-actions.pod:3035
20742 msgid "pread"
20743 msgstr ""
20744
20745 # type: verbatim
20746 #: ../fish/guestfish-actions.pod:3037
20747 #, no-wrap
20748 msgid ""
20749 " pread path count offset\n"
20750 "\n"
20751 msgstr ""
20752
20753 # type: textblock
20754 #: ../fish/guestfish-actions.pod:3045
20755 msgid "See also L</pwrite>, L</pread-device>."
20756 msgstr ""
20757
20758 # type: =head2
20759 #: ../fish/guestfish-actions.pod:3050
20760 msgid "pread-device"
20761 msgstr ""
20762
20763 # type: verbatim
20764 #: ../fish/guestfish-actions.pod:3052
20765 #, no-wrap
20766 msgid ""
20767 " pread-device device count offset\n"
20768 "\n"
20769 msgstr ""
20770
20771 # type: textblock
20772 #: ../fish/guestfish-actions.pod:3060
20773 msgid "See also L</pread>."
20774 msgstr ""
20775
20776 # type: =head2
20777 #: ../fish/guestfish-actions.pod:3065
20778 msgid "pvcreate"
20779 msgstr ""
20780
20781 # type: verbatim
20782 #: ../fish/guestfish-actions.pod:3067
20783 #, no-wrap
20784 msgid ""
20785 " pvcreate device\n"
20786 "\n"
20787 msgstr ""
20788
20789 # type: =head2
20790 #: ../fish/guestfish-actions.pod:3073
20791 msgid "pvremove"
20792 msgstr ""
20793
20794 # type: verbatim
20795 #: ../fish/guestfish-actions.pod:3075
20796 #, no-wrap
20797 msgid ""
20798 " pvremove device\n"
20799 "\n"
20800 msgstr ""
20801
20802 # type: =head2
20803 #: ../fish/guestfish-actions.pod:3084
20804 msgid "pvresize"
20805 msgstr ""
20806
20807 # type: verbatim
20808 #: ../fish/guestfish-actions.pod:3086
20809 #, no-wrap
20810 msgid ""
20811 " pvresize device\n"
20812 "\n"
20813 msgstr ""
20814
20815 # type: =head2
20816 #: ../fish/guestfish-actions.pod:3091
20817 msgid "pvresize-size"
20818 msgstr ""
20819
20820 # type: verbatim
20821 #: ../fish/guestfish-actions.pod:3093
20822 #, no-wrap
20823 msgid ""
20824 " pvresize-size device size\n"
20825 "\n"
20826 msgstr ""
20827
20828 # type: textblock
20829 #: ../fish/guestfish-actions.pod:3095
20830 msgid ""
20831 "This command is the same as L</pvresize> except that it allows you to "
20832 "specify the new size (in bytes) explicitly."
20833 msgstr ""
20834
20835 # type: =head2
20836 #: ../fish/guestfish-actions.pod:3098
20837 msgid "pvs"
20838 msgstr ""
20839
20840 # type: verbatim
20841 #: ../fish/guestfish-actions.pod:3100
20842 #, no-wrap
20843 msgid ""
20844 " pvs\n"
20845 "\n"
20846 msgstr ""
20847
20848 # type: textblock
20849 #: ../fish/guestfish-actions.pod:3108
20850 msgid "See also L</pvs-full>."
20851 msgstr ""
20852
20853 # type: =head2
20854 #: ../fish/guestfish-actions.pod:3110
20855 msgid "pvs-full"
20856 msgstr ""
20857
20858 # type: verbatim
20859 #: ../fish/guestfish-actions.pod:3112
20860 #, no-wrap
20861 msgid ""
20862 " pvs-full\n"
20863 "\n"
20864 msgstr ""
20865
20866 # type: =head2
20867 #: ../fish/guestfish-actions.pod:3117
20868 msgid "pvuuid"
20869 msgstr ""
20870
20871 # type: verbatim
20872 #: ../fish/guestfish-actions.pod:3119
20873 #, no-wrap
20874 msgid ""
20875 " pvuuid device\n"
20876 "\n"
20877 msgstr ""
20878
20879 # type: =head2
20880 #: ../fish/guestfish-actions.pod:3123
20881 msgid "pwrite"
20882 msgstr ""
20883
20884 # type: verbatim
20885 #: ../fish/guestfish-actions.pod:3125
20886 #, no-wrap
20887 msgid ""
20888 " pwrite path content offset\n"
20889 "\n"
20890 msgstr ""
20891
20892 # type: textblock
20893 #: ../fish/guestfish-actions.pod:3136
20894 msgid "See also L</pread>, L</pwrite-device>."
20895 msgstr ""
20896
20897 # type: =head2
20898 #: ../fish/guestfish-actions.pod:3141
20899 msgid "pwrite-device"
20900 msgstr ""
20901
20902 # type: verbatim
20903 #: ../fish/guestfish-actions.pod:3143
20904 #, no-wrap
20905 msgid ""
20906 " pwrite-device device content offset\n"
20907 "\n"
20908 msgstr ""
20909
20910 # type: textblock
20911 #: ../fish/guestfish-actions.pod:3153
20912 msgid "See also L</pwrite>."
20913 msgstr ""
20914
20915 # type: =head2
20916 #: ../fish/guestfish-actions.pod:3158
20917 msgid "read-file"
20918 msgstr ""
20919
20920 # type: verbatim
20921 #: ../fish/guestfish-actions.pod:3160
20922 #, no-wrap
20923 msgid ""
20924 " read-file path\n"
20925 "\n"
20926 msgstr ""
20927
20928 # type: textblock
20929 #: ../fish/guestfish-actions.pod:3165
20930 msgid ""
20931 "Unlike L</cat>, this function can correctly handle files that contain "
20932 "embedded ASCII NUL characters.  However unlike L</download>, this function "
20933 "is limited in the total size of file that can be handled."
20934 msgstr ""
20935
20936 # type: =head2
20937 #: ../fish/guestfish-actions.pod:3173
20938 msgid "read-lines"
20939 msgstr ""
20940
20941 # type: verbatim
20942 #: ../fish/guestfish-actions.pod:3175
20943 #, no-wrap
20944 msgid ""
20945 " read-lines path\n"
20946 "\n"
20947 msgstr ""
20948
20949 # type: textblock
20950 #: ../fish/guestfish-actions.pod:3182
20951 msgid ""
20952 "Note that this function cannot correctly handle binary files (specifically, "
20953 "files containing C<\\0> character which is treated as end of line).  For "
20954 "those you need to use the L</read-file> function which has a more complex "
20955 "interface."
20956 msgstr ""
20957
20958 # type: =head2
20959 #: ../fish/guestfish-actions.pod:3187
20960 msgid "readdir"
20961 msgstr ""
20962
20963 # type: verbatim
20964 #: ../fish/guestfish-actions.pod:3189
20965 #, no-wrap
20966 msgid ""
20967 " readdir dir\n"
20968 "\n"
20969 msgstr ""
20970
20971 # type: textblock
20972 #: ../fish/guestfish-actions.pod:3241
20973 msgid ""
20974 "This function is primarily intended for use by programs.  To get a simple "
20975 "list of names, use L</ls>.  To get a printable directory for human "
20976 "consumption, use L</ll>."
20977 msgstr ""
20978
20979 # type: =head2
20980 #: ../fish/guestfish-actions.pod:3245
20981 msgid "readlink"
20982 msgstr ""
20983
20984 # type: verbatim
20985 #: ../fish/guestfish-actions.pod:3247
20986 #, no-wrap
20987 msgid ""
20988 " readlink path\n"
20989 "\n"
20990 msgstr ""
20991
20992 # type: =head2
20993 #: ../fish/guestfish-actions.pod:3251
20994 msgid "readlinklist"
20995 msgstr ""
20996
20997 # type: verbatim
20998 #: ../fish/guestfish-actions.pod:3253
20999 #, no-wrap
21000 msgid ""
21001 " readlinklist path 'names ...'\n"
21002 "\n"
21003 msgstr ""
21004
21005 # type: =head2
21006 #: ../fish/guestfish-actions.pod:3277
21007 msgid "realpath"
21008 msgstr ""
21009
21010 # type: verbatim
21011 #: ../fish/guestfish-actions.pod:3279
21012 #, no-wrap
21013 msgid ""
21014 " realpath path\n"
21015 "\n"
21016 msgstr ""
21017
21018 # type: =head2
21019 #: ../fish/guestfish-actions.pod:3284
21020 msgid "removexattr"
21021 msgstr ""
21022
21023 # type: verbatim
21024 #: ../fish/guestfish-actions.pod:3286
21025 #, no-wrap
21026 msgid ""
21027 " removexattr xattr path\n"
21028 "\n"
21029 msgstr ""
21030
21031 # type: textblock
21032 #: ../fish/guestfish-actions.pod:3291
21033 msgid "See also: L</lremovexattr>, L<attr(5)>."
21034 msgstr ""
21035
21036 # type: =head2
21037 #: ../fish/guestfish-actions.pod:3293
21038 msgid "resize2fs"
21039 msgstr ""
21040
21041 # type: verbatim
21042 #: ../fish/guestfish-actions.pod:3295
21043 #, no-wrap
21044 msgid ""
21045 " resize2fs device\n"
21046 "\n"
21047 msgstr ""
21048
21049 # type: textblock
21050 #: ../fish/guestfish-actions.pod:3300
21051 msgid ""
21052 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21053 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21054 "gives an error about this and sometimes not.  In any case, it is always safe "
21055 "to call L</e2fsck-f> before calling this function."
21056 msgstr ""
21057
21058 # type: =head2
21059 #: ../fish/guestfish-actions.pod:3306
21060 msgid "resize2fs-size"
21061 msgstr ""
21062
21063 # type: verbatim
21064 #: ../fish/guestfish-actions.pod:3308
21065 #, no-wrap
21066 msgid ""
21067 " resize2fs-size device size\n"
21068 "\n"
21069 msgstr ""
21070
21071 # type: textblock
21072 #: ../fish/guestfish-actions.pod:3310
21073 msgid ""
21074 "This command is the same as L</resize2fs> except that it allows you to "
21075 "specify the new size (in bytes) explicitly."
21076 msgstr ""
21077
21078 # type: =head2
21079 #: ../fish/guestfish-actions.pod:3313
21080 msgid "rm"
21081 msgstr ""
21082
21083 # type: verbatim
21084 #: ../fish/guestfish-actions.pod:3315
21085 #, no-wrap
21086 msgid ""
21087 " rm path\n"
21088 "\n"
21089 msgstr ""
21090
21091 # type: =head2
21092 #: ../fish/guestfish-actions.pod:3319
21093 msgid "rm-rf"
21094 msgstr ""
21095
21096 # type: verbatim
21097 #: ../fish/guestfish-actions.pod:3321
21098 #, no-wrap
21099 msgid ""
21100 " rm-rf path\n"
21101 "\n"
21102 msgstr ""
21103
21104 # type: =head2
21105 #: ../fish/guestfish-actions.pod:3327
21106 msgid "rmdir"
21107 msgstr ""
21108
21109 # type: verbatim
21110 #: ../fish/guestfish-actions.pod:3329
21111 #, no-wrap
21112 msgid ""
21113 " rmdir path\n"
21114 "\n"
21115 msgstr ""
21116
21117 # type: =head2
21118 #: ../fish/guestfish-actions.pod:3333
21119 msgid "rmmountpoint"
21120 msgstr ""
21121
21122 # type: verbatim
21123 #: ../fish/guestfish-actions.pod:3335
21124 #, no-wrap
21125 msgid ""
21126 " rmmountpoint exemptpath\n"
21127 "\n"
21128 msgstr ""
21129
21130 # type: textblock
21131 #: ../fish/guestfish-actions.pod:3337
21132 msgid ""
21133 "This calls removes a mountpoint that was previously created with "
21134 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
21135 msgstr ""
21136
21137 # type: =head2
21138 #: ../fish/guestfish-actions.pod:3341
21139 msgid "scrub-device"
21140 msgstr ""
21141
21142 # type: verbatim
21143 #: ../fish/guestfish-actions.pod:3343
21144 #, no-wrap
21145 msgid ""
21146 " scrub-device device\n"
21147 "\n"
21148 msgstr ""
21149
21150 # type: =head2
21151 #: ../fish/guestfish-actions.pod:3354
21152 msgid "scrub-file"
21153 msgstr ""
21154
21155 # type: verbatim
21156 #: ../fish/guestfish-actions.pod:3356
21157 #, no-wrap
21158 msgid ""
21159 " scrub-file file\n"
21160 "\n"
21161 msgstr ""
21162
21163 # type: =head2
21164 #: ../fish/guestfish-actions.pod:3366
21165 msgid "scrub-freespace"
21166 msgstr ""
21167
21168 # type: verbatim
21169 #: ../fish/guestfish-actions.pod:3368
21170 #, no-wrap
21171 msgid ""
21172 " scrub-freespace dir\n"
21173 "\n"
21174 msgstr ""
21175
21176 # type: textblock
21177 #: ../fish/guestfish-actions.pod:3370
21178 msgid ""
21179 "This command creates the directory C<dir> and then fills it with files until "
21180 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
21181 "deletes them.  The intention is to scrub any free space on the partition "
21182 "containing C<dir>."
21183 msgstr ""
21184
21185 # type: =head2
21186 #: ../fish/guestfish-actions.pod:3379
21187 msgid "set-append"
21188 msgstr ""
21189
21190 # type: =head2
21191 #: ../fish/guestfish-actions.pod:3381
21192 msgid "append"
21193 msgstr ""
21194
21195 # type: verbatim
21196 #: ../fish/guestfish-actions.pod:3383
21197 #, no-wrap
21198 msgid ""
21199 " set-append append\n"
21200 "\n"
21201 msgstr ""
21202
21203 # type: =head2
21204 #: ../fish/guestfish-actions.pod:3394
21205 msgid "set-autosync"
21206 msgstr ""
21207
21208 # type: =head2
21209 #: ../fish/guestfish-actions.pod:3396
21210 msgid "autosync"
21211 msgstr ""
21212
21213 # type: verbatim
21214 #: ../fish/guestfish-actions.pod:3398
21215 #, no-wrap
21216 msgid ""
21217 " set-autosync true|false\n"
21218 "\n"
21219 msgstr ""
21220
21221 # type: textblock
21222 #: ../fish/guestfish-actions.pod:3400
21223 msgid ""
21224 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
21225 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
21226 "closed (also if the program exits without closing handles)."
21227 msgstr ""
21228
21229 # type: =head2
21230 #: ../fish/guestfish-actions.pod:3408
21231 msgid "set-direct"
21232 msgstr ""
21233
21234 # type: =head2
21235 #: ../fish/guestfish-actions.pod:3410
21236 msgid "direct"
21237 msgstr ""
21238
21239 # type: verbatim
21240 #: ../fish/guestfish-actions.pod:3412
21241 #, no-wrap
21242 msgid ""
21243 " set-direct true|false\n"
21244 "\n"
21245 msgstr ""
21246
21247 # type: textblock
21248 #: ../fish/guestfish-actions.pod:3418
21249 msgid ""
21250 "One consequence of this is that log messages aren't caught by the library "
21251 "and handled by L</set-log-message-callback>, but go straight to stdout."
21252 msgstr ""
21253
21254 # type: =head2
21255 #: ../fish/guestfish-actions.pod:3427
21256 msgid "set-e2label"
21257 msgstr ""
21258
21259 # type: verbatim
21260 #: ../fish/guestfish-actions.pod:3429
21261 #, no-wrap
21262 msgid ""
21263 " set-e2label device label\n"
21264 "\n"
21265 msgstr ""
21266
21267 # type: textblock
21268 #: ../fish/guestfish-actions.pod:3435
21269 msgid ""
21270 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
21271 "label on a filesystem."
21272 msgstr ""
21273
21274 # type: =head2
21275 #: ../fish/guestfish-actions.pod:3438
21276 msgid "set-e2uuid"
21277 msgstr ""
21278
21279 # type: verbatim
21280 #: ../fish/guestfish-actions.pod:3440
21281 #, no-wrap
21282 msgid ""
21283 " set-e2uuid device uuid\n"
21284 "\n"
21285 msgstr ""
21286
21287 # type: textblock
21288 #: ../fish/guestfish-actions.pod:3447
21289 msgid ""
21290 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
21291 "UUID of a filesystem."
21292 msgstr ""
21293
21294 # type: =head2
21295 #: ../fish/guestfish-actions.pod:3450
21296 msgid "set-memsize"
21297 msgstr ""
21298
21299 # type: =head2
21300 #: ../fish/guestfish-actions.pod:3452
21301 msgid "memsize"
21302 msgstr ""
21303
21304 # type: verbatim
21305 #: ../fish/guestfish-actions.pod:3454
21306 #, no-wrap
21307 msgid ""
21308 " set-memsize memsize\n"
21309 "\n"
21310 msgstr ""
21311
21312 # type: textblock
21313 #: ../fish/guestfish-actions.pod:3456
21314 msgid ""
21315 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
21316 "This only has any effect if called before L</launch>."
21317 msgstr ""
21318
21319 # type: =head2
21320 #: ../fish/guestfish-actions.pod:3467
21321 msgid "set-network"
21322 msgstr ""
21323
21324 # type: =head2
21325 #: ../fish/guestfish-actions.pod:3469
21326 msgid "network"
21327 msgstr ""
21328
21329 # type: verbatim
21330 #: ../fish/guestfish-actions.pod:3471
21331 #, no-wrap
21332 msgid ""
21333 " set-network true|false\n"
21334 "\n"
21335 msgstr ""
21336
21337 # type: textblock
21338 #: ../fish/guestfish-actions.pod:3479
21339 msgid "You must call this before calling L</launch>, otherwise it has no effect."
21340 msgstr ""
21341
21342 # type: =head2
21343 #: ../fish/guestfish-actions.pod:3482
21344 msgid "set-path"
21345 msgstr ""
21346
21347 # type: =head2
21348 #: ../fish/guestfish-actions.pod:3484
21349 msgid "path"
21350 msgstr ""
21351
21352 # type: verbatim
21353 #: ../fish/guestfish-actions.pod:3486
21354 #, no-wrap
21355 msgid ""
21356 " set-path searchpath\n"
21357 "\n"
21358 msgstr ""
21359
21360 # type: =head2
21361 #: ../fish/guestfish-actions.pod:3495
21362 msgid "set-qemu"
21363 msgstr ""
21364
21365 # type: =head2
21366 #: ../fish/guestfish-actions.pod:3497
21367 msgid "qemu"
21368 msgstr ""
21369
21370 # type: verbatim
21371 #: ../fish/guestfish-actions.pod:3499
21372 #, no-wrap
21373 msgid ""
21374 " set-qemu qemu\n"
21375 "\n"
21376 msgstr ""
21377
21378 # type: =head2
21379 #: ../fish/guestfish-actions.pod:3519
21380 msgid "set-recovery-proc"
21381 msgstr ""
21382
21383 # type: =head2
21384 #: ../fish/guestfish-actions.pod:3521
21385 msgid "recovery-proc"
21386 msgstr ""
21387
21388 # type: verbatim
21389 #: ../fish/guestfish-actions.pod:3523
21390 #, no-wrap
21391 msgid ""
21392 " set-recovery-proc true|false\n"
21393 "\n"
21394 msgstr ""
21395
21396 # type: textblock
21397 #: ../fish/guestfish-actions.pod:3525
21398 msgid ""
21399 "If this is called with the parameter C<false> then L</launch> does not "
21400 "create a recovery process.  The purpose of the recovery process is to stop "
21401 "runaway qemu processes in the case where the main program aborts abruptly."
21402 msgstr ""
21403
21404 # type: textblock
21405 #: ../fish/guestfish-actions.pod:3530
21406 msgid ""
21407 "This only has any effect if called before L</launch>, and the default is "
21408 "true."
21409 msgstr ""
21410
21411 # type: =head2
21412 #: ../fish/guestfish-actions.pod:3539
21413 msgid "set-selinux"
21414 msgstr ""
21415
21416 # type: =head2
21417 #: ../fish/guestfish-actions.pod:3541
21418 msgid "selinux"
21419 msgstr ""
21420
21421 # type: verbatim
21422 #: ../fish/guestfish-actions.pod:3543
21423 #, no-wrap
21424 msgid ""
21425 " set-selinux true|false\n"
21426 "\n"
21427 msgstr ""
21428
21429 # type: =head2
21430 #: ../fish/guestfish-actions.pod:3554
21431 msgid "set-trace"
21432 msgstr ""
21433
21434 # type: =head2
21435 #: ../fish/guestfish-actions.pod:3556
21436 msgid "trace"
21437 msgstr ""
21438
21439 # type: verbatim
21440 #: ../fish/guestfish-actions.pod:3558
21441 #, no-wrap
21442 msgid ""
21443 " set-trace true|false\n"
21444 "\n"
21445 msgstr ""
21446
21447 # type: =head2
21448 #: ../fish/guestfish-actions.pod:3574
21449 msgid "set-verbose"
21450 msgstr ""
21451
21452 # type: =head2
21453 #: ../fish/guestfish-actions.pod:3576
21454 msgid "verbose"
21455 msgstr ""
21456
21457 # type: verbatim
21458 #: ../fish/guestfish-actions.pod:3578
21459 #, no-wrap
21460 msgid ""
21461 " set-verbose true|false\n"
21462 "\n"
21463 msgstr ""
21464
21465 # type: =head2
21466 #: ../fish/guestfish-actions.pod:3585
21467 msgid "setcon"
21468 msgstr ""
21469
21470 # type: verbatim
21471 #: ../fish/guestfish-actions.pod:3587
21472 #, no-wrap
21473 msgid ""
21474 " setcon context\n"
21475 "\n"
21476 msgstr ""
21477
21478 # type: =head2
21479 #: ../fish/guestfish-actions.pod:3594
21480 msgid "setxattr"
21481 msgstr ""
21482
21483 # type: verbatim
21484 #: ../fish/guestfish-actions.pod:3596
21485 #, no-wrap
21486 msgid ""
21487 " setxattr xattr val vallen path\n"
21488 "\n"
21489 msgstr ""
21490
21491 # type: textblock
21492 #: ../fish/guestfish-actions.pod:3602
21493 msgid "See also: L</lsetxattr>, L<attr(5)>."
21494 msgstr ""
21495
21496 # type: =head2
21497 #: ../fish/guestfish-actions.pod:3604
21498 msgid "sfdisk"
21499 msgstr ""
21500
21501 # type: verbatim
21502 #: ../fish/guestfish-actions.pod:3606
21503 #, no-wrap
21504 msgid ""
21505 " sfdisk device cyls heads sectors 'lines ...'\n"
21506 "\n"
21507 msgstr ""
21508
21509 # type: textblock
21510 #: ../fish/guestfish-actions.pod:3628
21511 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
21512 msgstr ""
21513
21514 # type: =head2
21515 #: ../fish/guestfish-actions.pod:3634
21516 msgid "sfdiskM"
21517 msgstr ""
21518
21519 # type: verbatim
21520 #: ../fish/guestfish-actions.pod:3636
21521 #, no-wrap
21522 msgid ""
21523 " sfdiskM device 'lines ...'\n"
21524 "\n"
21525 msgstr ""
21526
21527 # type: textblock
21528 #: ../fish/guestfish-actions.pod:3638
21529 msgid ""
21530 "This is a simplified interface to the L</sfdisk> command, where partition "
21531 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
21532 "you don't need to specify the cyls, heads and sectors parameters which were "
21533 "rarely if ever used anyway."
21534 msgstr ""
21535
21536 # type: textblock
21537 #: ../fish/guestfish-actions.pod:3644
21538 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
21539 msgstr ""
21540
21541 # type: =head2
21542 #: ../fish/guestfish-actions.pod:3650
21543 msgid "sfdisk-N"
21544 msgstr ""
21545
21546 # type: verbatim
21547 #: ../fish/guestfish-actions.pod:3652
21548 #, no-wrap
21549 msgid ""
21550 " sfdisk-N device partnum cyls heads sectors line\n"
21551 "\n"
21552 msgstr ""
21553
21554 # type: textblock
21555 #: ../fish/guestfish-actions.pod:3657
21556 msgid ""
21557 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
21558 "cyls/heads/sectors parameters."
21559 msgstr ""
21560
21561 # type: textblock
21562 #: ../fish/guestfish-actions.pod:3660
21563 msgid "See also: L</part-add>"
21564 msgstr ""
21565
21566 # type: =head2
21567 #: ../fish/guestfish-actions.pod:3665
21568 msgid "sfdisk-disk-geometry"
21569 msgstr ""
21570
21571 # type: verbatim
21572 #: ../fish/guestfish-actions.pod:3667
21573 #, no-wrap
21574 msgid ""
21575 " sfdisk-disk-geometry device\n"
21576 "\n"
21577 msgstr ""
21578
21579 # type: textblock
21580 #: ../fish/guestfish-actions.pod:3669
21581 msgid ""
21582 "This displays the disk geometry of C<device> read from the partition table.  "
21583 "Especially in the case where the underlying block device has been resized, "
21584 "this can be different from the kernel's idea of the geometry (see "
21585 "L</sfdisk-kernel-geometry>)."
21586 msgstr ""
21587
21588 # type: =head2
21589 #: ../fish/guestfish-actions.pod:3677
21590 msgid "sfdisk-kernel-geometry"
21591 msgstr ""
21592
21593 # type: verbatim
21594 #: ../fish/guestfish-actions.pod:3679
21595 #, no-wrap
21596 msgid ""
21597 " sfdisk-kernel-geometry device\n"
21598 "\n"
21599 msgstr ""
21600
21601 # type: =head2
21602 #: ../fish/guestfish-actions.pod:3686
21603 msgid "sfdisk-l"
21604 msgstr ""
21605
21606 # type: verbatim
21607 #: ../fish/guestfish-actions.pod:3688
21608 #, no-wrap
21609 msgid ""
21610 " sfdisk-l device\n"
21611 "\n"
21612 msgstr ""
21613
21614 # type: textblock
21615 #: ../fish/guestfish-actions.pod:3694
21616 msgid "See also: L</part-list>"
21617 msgstr ""
21618
21619 # type: =head2
21620 #: ../fish/guestfish-actions.pod:3696
21621 msgid "sh"
21622 msgstr ""
21623
21624 # type: verbatim
21625 #: ../fish/guestfish-actions.pod:3698
21626 #, no-wrap
21627 msgid ""
21628 " sh command\n"
21629 "\n"
21630 msgstr ""
21631
21632 # type: textblock
21633 #: ../fish/guestfish-actions.pod:3703
21634 msgid "This is like L</command>, but passes the command to:"
21635 msgstr ""
21636
21637 # type: textblock
21638 #: ../fish/guestfish-actions.pod:3711
21639 msgid "All the provisos about L</command> apply to this call."
21640 msgstr ""
21641
21642 # type: =head2
21643 #: ../fish/guestfish-actions.pod:3713
21644 msgid "sh-lines"
21645 msgstr ""
21646
21647 # type: verbatim
21648 #: ../fish/guestfish-actions.pod:3715
21649 #, no-wrap
21650 msgid ""
21651 " sh-lines command\n"
21652 "\n"
21653 msgstr ""
21654
21655 # type: textblock
21656 #: ../fish/guestfish-actions.pod:3717
21657 msgid "This is the same as L</sh>, but splits the result into a list of lines."
21658 msgstr ""
21659
21660 # type: textblock
21661 #: ../fish/guestfish-actions.pod:3720
21662 msgid "See also: L</command-lines>"
21663 msgstr ""
21664
21665 # type: =head2
21666 #: ../fish/guestfish-actions.pod:3722
21667 msgid "sleep"
21668 msgstr ""
21669
21670 # type: verbatim
21671 #: ../fish/guestfish-actions.pod:3724
21672 #, no-wrap
21673 msgid ""
21674 " sleep secs\n"
21675 "\n"
21676 msgstr ""
21677
21678 # type: =head2
21679 #: ../fish/guestfish-actions.pod:3728
21680 msgid "stat"
21681 msgstr ""
21682
21683 # type: verbatim
21684 #: ../fish/guestfish-actions.pod:3730
21685 #, no-wrap
21686 msgid ""
21687 " stat path\n"
21688 "\n"
21689 msgstr ""
21690
21691 # type: =head2
21692 #: ../fish/guestfish-actions.pod:3736
21693 msgid "statvfs"
21694 msgstr ""
21695
21696 # type: verbatim
21697 #: ../fish/guestfish-actions.pod:3738
21698 #, no-wrap
21699 msgid ""
21700 " statvfs path\n"
21701 "\n"
21702 msgstr ""
21703
21704 # type: =head2
21705 #: ../fish/guestfish-actions.pod:3746
21706 msgid "strings"
21707 msgstr ""
21708
21709 # type: verbatim
21710 #: ../fish/guestfish-actions.pod:3748
21711 #, no-wrap
21712 msgid ""
21713 " strings path\n"
21714 "\n"
21715 msgstr ""
21716
21717 # type: =head2
21718 #: ../fish/guestfish-actions.pod:3756
21719 msgid "strings-e"
21720 msgstr ""
21721
21722 # type: verbatim
21723 #: ../fish/guestfish-actions.pod:3758
21724 #, no-wrap
21725 msgid ""
21726 " strings-e encoding path\n"
21727 "\n"
21728 msgstr ""
21729
21730 # type: textblock
21731 #: ../fish/guestfish-actions.pod:3760
21732 msgid ""
21733 "This is like the L</strings> command, but allows you to specify the encoding "
21734 "of strings that are looked for in the source file C<path>."
21735 msgstr ""
21736
21737 # type: textblock
21738 #: ../fish/guestfish-actions.pod:3770
21739 msgid ""
21740 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
21741 "ISO-8859-X (this is what L</strings> uses)."
21742 msgstr ""
21743
21744 # type: =head2
21745 #: ../fish/guestfish-actions.pod:3802
21746 msgid "swapoff-device"
21747 msgstr ""
21748
21749 # type: verbatim
21750 #: ../fish/guestfish-actions.pod:3804
21751 #, no-wrap
21752 msgid ""
21753 " swapoff-device device\n"
21754 "\n"
21755 msgstr ""
21756
21757 # type: textblock
21758 #: ../fish/guestfish-actions.pod:3806
21759 msgid ""
21760 "This command disables the libguestfs appliance swap device or partition "
21761 "named C<device>.  See L</swapon-device>."
21762 msgstr ""
21763
21764 # type: =head2
21765 #: ../fish/guestfish-actions.pod:3810
21766 msgid "swapoff-file"
21767 msgstr ""
21768
21769 # type: verbatim
21770 #: ../fish/guestfish-actions.pod:3812
21771 #, no-wrap
21772 msgid ""
21773 " swapoff-file file\n"
21774 "\n"
21775 msgstr ""
21776
21777 # type: =head2
21778 #: ../fish/guestfish-actions.pod:3816
21779 msgid "swapoff-label"
21780 msgstr ""
21781
21782 # type: verbatim
21783 #: ../fish/guestfish-actions.pod:3818
21784 #, no-wrap
21785 msgid ""
21786 " swapoff-label label\n"
21787 "\n"
21788 msgstr ""
21789
21790 # type: =head2
21791 #: ../fish/guestfish-actions.pod:3823
21792 msgid "swapoff-uuid"
21793 msgstr ""
21794
21795 # type: verbatim
21796 #: ../fish/guestfish-actions.pod:3825
21797 #, no-wrap
21798 msgid ""
21799 " swapoff-uuid uuid\n"
21800 "\n"
21801 msgstr ""
21802
21803 # type: =head2
21804 #: ../fish/guestfish-actions.pod:3830
21805 msgid "swapon-device"
21806 msgstr ""
21807
21808 # type: verbatim
21809 #: ../fish/guestfish-actions.pod:3832
21810 #, no-wrap
21811 msgid ""
21812 " swapon-device device\n"
21813 "\n"
21814 msgstr ""
21815
21816 # type: textblock
21817 #: ../fish/guestfish-actions.pod:3834
21818 msgid ""
21819 "This command enables the libguestfs appliance to use the swap device or "
21820 "partition named C<device>.  The increased memory is made available for all "
21821 "commands, for example those run using L</command> or L</sh>."
21822 msgstr ""
21823
21824 # type: =head2
21825 #: ../fish/guestfish-actions.pod:3846
21826 msgid "swapon-file"
21827 msgstr ""
21828
21829 # type: verbatim
21830 #: ../fish/guestfish-actions.pod:3848
21831 #, no-wrap
21832 msgid ""
21833 " swapon-file file\n"
21834 "\n"
21835 msgstr ""
21836
21837 # type: textblock
21838 #: ../fish/guestfish-actions.pod:3850
21839 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
21840 msgstr ""
21841
21842 # type: =head2
21843 #: ../fish/guestfish-actions.pod:3853
21844 msgid "swapon-label"
21845 msgstr ""
21846
21847 # type: verbatim
21848 #: ../fish/guestfish-actions.pod:3855
21849 #, no-wrap
21850 msgid ""
21851 " swapon-label label\n"
21852 "\n"
21853 msgstr ""
21854
21855 # type: textblock
21856 #: ../fish/guestfish-actions.pod:3857
21857 msgid ""
21858 "This command enables swap to a labeled swap partition.  See "
21859 "L</swapon-device> for other notes."
21860 msgstr ""
21861
21862 # type: =head2
21863 #: ../fish/guestfish-actions.pod:3860
21864 msgid "swapon-uuid"
21865 msgstr ""
21866
21867 # type: verbatim
21868 #: ../fish/guestfish-actions.pod:3862
21869 #, no-wrap
21870 msgid ""
21871 " swapon-uuid uuid\n"
21872 "\n"
21873 msgstr ""
21874
21875 # type: textblock
21876 #: ../fish/guestfish-actions.pod:3864
21877 msgid ""
21878 "This command enables swap to a swap partition with the given UUID.  See "
21879 "L</swapon-device> for other notes."
21880 msgstr ""
21881
21882 # type: =head2
21883 #: ../fish/guestfish-actions.pod:3867
21884 msgid "sync"
21885 msgstr ""
21886
21887 # type: verbatim
21888 #: ../fish/guestfish-actions.pod:3869
21889 #, no-wrap
21890 msgid ""
21891 " sync\n"
21892 "\n"
21893 msgstr ""
21894
21895 # type: =head2
21896 #: ../fish/guestfish-actions.pod:3877
21897 msgid "tail"
21898 msgstr ""
21899
21900 # type: verbatim
21901 #: ../fish/guestfish-actions.pod:3879
21902 #, no-wrap
21903 msgid ""
21904 " tail path\n"
21905 "\n"
21906 msgstr ""
21907
21908 # type: =head2
21909 #: ../fish/guestfish-actions.pod:3887
21910 msgid "tail-n"
21911 msgstr ""
21912
21913 # type: verbatim
21914 #: ../fish/guestfish-actions.pod:3889
21915 #, no-wrap
21916 msgid ""
21917 " tail-n nrlines path\n"
21918 "\n"
21919 msgstr ""
21920
21921 # type: =head2
21922 #: ../fish/guestfish-actions.pod:3902
21923 msgid "tar-in"
21924 msgstr ""
21925
21926 # type: verbatim
21927 #: ../fish/guestfish-actions.pod:3904
21928 #, no-wrap
21929 msgid ""
21930 " tar-in (tarfile|-) directory\n"
21931 "\n"
21932 msgstr ""
21933
21934 # type: textblock
21935 #: ../fish/guestfish-actions.pod:3909
21936 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
21937 msgstr ""
21938
21939 # type: =head2
21940 #: ../fish/guestfish-actions.pod:3914
21941 msgid "tar-out"
21942 msgstr ""
21943
21944 # type: verbatim
21945 #: ../fish/guestfish-actions.pod:3916
21946 #, no-wrap
21947 msgid ""
21948 " tar-out directory (tarfile|-)\n"
21949 "\n"
21950 msgstr ""
21951
21952 # type: textblock
21953 #: ../fish/guestfish-actions.pod:3921
21954 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
21955 msgstr ""
21956
21957 # type: =head2
21958 #: ../fish/guestfish-actions.pod:3926
21959 msgid "tgz-in"
21960 msgstr ""
21961
21962 # type: verbatim
21963 #: ../fish/guestfish-actions.pod:3928
21964 #, no-wrap
21965 msgid ""
21966 " tgz-in (tarball|-) directory\n"
21967 "\n"
21968 msgstr ""
21969
21970 # type: textblock
21971 #: ../fish/guestfish-actions.pod:3933
21972 msgid "To upload an uncompressed tarball, use L</tar-in>."
21973 msgstr ""
21974
21975 # type: =head2
21976 #: ../fish/guestfish-actions.pod:3937
21977 msgid "tgz-out"
21978 msgstr ""
21979
21980 # type: verbatim
21981 #: ../fish/guestfish-actions.pod:3939
21982 #, no-wrap
21983 msgid ""
21984 " tgz-out directory (tarball|-)\n"
21985 "\n"
21986 msgstr ""
21987
21988 # type: textblock
21989 #: ../fish/guestfish-actions.pod:3944
21990 msgid "To download an uncompressed tarball, use L</tar-out>."
21991 msgstr ""
21992
21993 # type: =head2
21994 #: ../fish/guestfish-actions.pod:3948
21995 msgid "touch"
21996 msgstr ""
21997
21998 # type: verbatim
21999 #: ../fish/guestfish-actions.pod:3950
22000 #, no-wrap
22001 msgid ""
22002 " touch path\n"
22003 "\n"
22004 msgstr ""
22005
22006 # type: =head2
22007 #: ../fish/guestfish-actions.pod:3959
22008 msgid "truncate"
22009 msgstr ""
22010
22011 # type: verbatim
22012 #: ../fish/guestfish-actions.pod:3961
22013 #, no-wrap
22014 msgid ""
22015 " truncate path\n"
22016 "\n"
22017 msgstr ""
22018
22019 # type: =head2
22020 #: ../fish/guestfish-actions.pod:3966
22021 msgid "truncate-size"
22022 msgstr ""
22023
22024 # type: verbatim
22025 #: ../fish/guestfish-actions.pod:3968
22026 #, no-wrap
22027 msgid ""
22028 " truncate-size path size\n"
22029 "\n"
22030 msgstr ""
22031
22032 # type: textblock
22033 #: ../fish/guestfish-actions.pod:3973
22034 msgid ""
22035 "If the current file size is less than C<size> then the file is extended to "
22036 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22037 "blocks are not allocated for the file until you write to it).  To create a "
22038 "non-sparse file of zeroes, use L</fallocate64> instead."
22039 msgstr ""
22040
22041 # type: =head2
22042 #: ../fish/guestfish-actions.pod:3979
22043 msgid "tune2fs-l"
22044 msgstr ""
22045
22046 # type: verbatim
22047 #: ../fish/guestfish-actions.pod:3981
22048 #, no-wrap
22049 msgid ""
22050 " tune2fs-l device\n"
22051 "\n"
22052 msgstr ""
22053
22054 # type: =head2
22055 #: ../fish/guestfish-actions.pod:3991
22056 msgid "txz-in"
22057 msgstr ""
22058
22059 # type: verbatim
22060 #: ../fish/guestfish-actions.pod:3993
22061 #, no-wrap
22062 msgid ""
22063 " txz-in (tarball|-) directory\n"
22064 "\n"
22065 msgstr ""
22066
22067 # type: =head2
22068 #: ../fish/guestfish-actions.pod:4000
22069 msgid "txz-out"
22070 msgstr ""
22071
22072 # type: verbatim
22073 #: ../fish/guestfish-actions.pod:4002
22074 #, no-wrap
22075 msgid ""
22076 " txz-out directory (tarball|-)\n"
22077 "\n"
22078 msgstr ""
22079
22080 # type: =head2
22081 #: ../fish/guestfish-actions.pod:4009
22082 msgid "umask"
22083 msgstr ""
22084
22085 # type: verbatim
22086 #: ../fish/guestfish-actions.pod:4011
22087 #, no-wrap
22088 msgid ""
22089 " umask mask\n"
22090 "\n"
22091 msgstr ""
22092
22093 # type: textblock
22094 #: ../fish/guestfish-actions.pod:4025
22095 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
22096 msgstr ""
22097
22098 # type: =head2
22099 #: ../fish/guestfish-actions.pod:4030
22100 msgid "umount"
22101 msgstr ""
22102
22103 # type: =head2
22104 #: ../fish/guestfish-actions.pod:4032
22105 msgid "unmount"
22106 msgstr ""
22107
22108 # type: verbatim
22109 #: ../fish/guestfish-actions.pod:4034
22110 #, no-wrap
22111 msgid ""
22112 " umount pathordevice\n"
22113 "\n"
22114 msgstr ""
22115
22116 # type: =head2
22117 #: ../fish/guestfish-actions.pod:4040
22118 msgid "umount-all"
22119 msgstr ""
22120
22121 # type: =head2
22122 #: ../fish/guestfish-actions.pod:4042
22123 msgid "unmount-all"
22124 msgstr ""
22125
22126 # type: verbatim
22127 #: ../fish/guestfish-actions.pod:4044
22128 #, no-wrap
22129 msgid ""
22130 " umount-all\n"
22131 "\n"
22132 msgstr ""
22133
22134 # type: =head2
22135 #: ../fish/guestfish-actions.pod:4050
22136 msgid "upload"
22137 msgstr ""
22138
22139 # type: verbatim
22140 #: ../fish/guestfish-actions.pod:4052
22141 #, no-wrap
22142 msgid ""
22143 " upload (filename|-) remotefilename\n"
22144 "\n"
22145 msgstr ""
22146
22147 # type: textblock
22148 #: ../fish/guestfish-actions.pod:4059
22149 msgid "See also L</download>."
22150 msgstr ""
22151
22152 # type: =head2
22153 #: ../fish/guestfish-actions.pod:4063
22154 msgid "upload-offset"
22155 msgstr ""
22156
22157 # type: verbatim
22158 #: ../fish/guestfish-actions.pod:4065
22159 #, no-wrap
22160 msgid ""
22161 " upload-offset (filename|-) remotefilename offset\n"
22162 "\n"
22163 msgstr ""
22164
22165 # type: textblock
22166 #: ../fish/guestfish-actions.pod:4077
22167 msgid ""
22168 "Note that there is no limit on the amount of data that can be uploaded with "
22169 "this call, unlike with L</pwrite>, and this call always writes the full "
22170 "amount unless an error occurs."
22171 msgstr ""
22172
22173 # type: textblock
22174 #: ../fish/guestfish-actions.pod:4082
22175 msgid "See also L</upload>, L</pwrite>."
22176 msgstr ""
22177
22178 # type: =head2
22179 #: ../fish/guestfish-actions.pod:4086
22180 msgid "utimens"
22181 msgstr ""
22182
22183 # type: verbatim
22184 #: ../fish/guestfish-actions.pod:4088
22185 #, no-wrap
22186 msgid ""
22187 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
22188 "\n"
22189 msgstr ""
22190
22191 # type: =head2
22192 #: ../fish/guestfish-actions.pod:4107
22193 msgid "version"
22194 msgstr ""
22195
22196 # type: verbatim
22197 #: ../fish/guestfish-actions.pod:4109
22198 #, no-wrap
22199 msgid ""
22200 " version\n"
22201 "\n"
22202 msgstr ""
22203
22204 # type: textblock
22205 #: ../fish/guestfish-actions.pod:4136
22206 msgid ""
22207 "I<Note:> Don't use this call to test for availability of features.  In "
22208 "enterprise distributions we backport features from later versions into "
22209 "earlier versions, making this an unreliable way to test for features.  Use "
22210 "L</available> instead."
22211 msgstr ""
22212
22213 # type: =head2
22214 #: ../fish/guestfish-actions.pod:4142
22215 msgid "vfs-label"
22216 msgstr ""
22217
22218 # type: verbatim
22219 #: ../fish/guestfish-actions.pod:4144
22220 #, no-wrap
22221 msgid ""
22222 " vfs-label device\n"
22223 "\n"
22224 msgstr ""
22225
22226 # type: textblock
22227 #: ../fish/guestfish-actions.pod:4151
22228 msgid "To find a filesystem from the label, use L</findfs-label>."
22229 msgstr ""
22230
22231 # type: =head2
22232 #: ../fish/guestfish-actions.pod:4153
22233 msgid "vfs-type"
22234 msgstr ""
22235
22236 # type: verbatim
22237 #: ../fish/guestfish-actions.pod:4155
22238 #, no-wrap
22239 msgid ""
22240 " vfs-type device\n"
22241 "\n"
22242 msgstr ""
22243
22244 # type: =head2
22245 #: ../fish/guestfish-actions.pod:4165
22246 msgid "vfs-uuid"
22247 msgstr ""
22248
22249 # type: verbatim
22250 #: ../fish/guestfish-actions.pod:4167
22251 #, no-wrap
22252 msgid ""
22253 " vfs-uuid device\n"
22254 "\n"
22255 msgstr ""
22256
22257 # type: textblock
22258 #: ../fish/guestfish-actions.pod:4174
22259 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
22260 msgstr ""
22261
22262 # type: =head2
22263 #: ../fish/guestfish-actions.pod:4176
22264 msgid "vg-activate"
22265 msgstr ""
22266
22267 # type: verbatim
22268 #: ../fish/guestfish-actions.pod:4178
22269 #, no-wrap
22270 msgid ""
22271 " vg-activate true|false 'volgroups ...'\n"
22272 "\n"
22273 msgstr ""
22274
22275 # type: =head2
22276 #: ../fish/guestfish-actions.pod:4191
22277 msgid "vg-activate-all"
22278 msgstr ""
22279
22280 # type: verbatim
22281 #: ../fish/guestfish-actions.pod:4193
22282 #, no-wrap
22283 msgid ""
22284 " vg-activate-all true|false\n"
22285 "\n"
22286 msgstr ""
22287
22288 # type: =head2
22289 #: ../fish/guestfish-actions.pod:4203
22290 msgid "vgcreate"
22291 msgstr ""
22292
22293 # type: verbatim
22294 #: ../fish/guestfish-actions.pod:4205
22295 #, no-wrap
22296 msgid ""
22297 " vgcreate volgroup 'physvols ...'\n"
22298 "\n"
22299 msgstr ""
22300
22301 # type: =head2
22302 #: ../fish/guestfish-actions.pod:4210
22303 msgid "vglvuuids"
22304 msgstr ""
22305
22306 # type: verbatim
22307 #: ../fish/guestfish-actions.pod:4212
22308 #, no-wrap
22309 msgid ""
22310 " vglvuuids vgname\n"
22311 "\n"
22312 msgstr ""
22313
22314 # type: textblock
22315 #: ../fish/guestfish-actions.pod:4217
22316 msgid ""
22317 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
22318 "logical volumes and volume groups."
22319 msgstr ""
22320
22321 # type: textblock
22322 #: ../fish/guestfish-actions.pod:4220
22323 msgid "See also L</vgpvuuids>."
22324 msgstr ""
22325
22326 # type: =head2
22327 #: ../fish/guestfish-actions.pod:4222
22328 msgid "vgpvuuids"
22329 msgstr ""
22330
22331 # type: verbatim
22332 #: ../fish/guestfish-actions.pod:4224
22333 #, no-wrap
22334 msgid ""
22335 " vgpvuuids vgname\n"
22336 "\n"
22337 msgstr ""
22338
22339 # type: textblock
22340 #: ../fish/guestfish-actions.pod:4229
22341 msgid ""
22342 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
22343 "physical volumes and volume groups."
22344 msgstr ""
22345
22346 # type: textblock
22347 #: ../fish/guestfish-actions.pod:4232
22348 msgid "See also L</vglvuuids>."
22349 msgstr ""
22350
22351 # type: =head2
22352 #: ../fish/guestfish-actions.pod:4234
22353 msgid "vgremove"
22354 msgstr ""
22355
22356 # type: verbatim
22357 #: ../fish/guestfish-actions.pod:4236
22358 #, no-wrap
22359 msgid ""
22360 " vgremove vgname\n"
22361 "\n"
22362 msgstr ""
22363
22364 # type: =head2
22365 #: ../fish/guestfish-actions.pod:4243
22366 msgid "vgrename"
22367 msgstr ""
22368
22369 # type: verbatim
22370 #: ../fish/guestfish-actions.pod:4245
22371 #, no-wrap
22372 msgid ""
22373 " vgrename volgroup newvolgroup\n"
22374 "\n"
22375 msgstr ""
22376
22377 # type: =head2
22378 #: ../fish/guestfish-actions.pod:4249
22379 msgid "vgs"
22380 msgstr ""
22381
22382 # type: verbatim
22383 #: ../fish/guestfish-actions.pod:4251
22384 #, no-wrap
22385 msgid ""
22386 " vgs\n"
22387 "\n"
22388 msgstr ""
22389
22390 # type: textblock
22391 #: ../fish/guestfish-actions.pod:4259
22392 msgid "See also L</vgs-full>."
22393 msgstr ""
22394
22395 # type: =head2
22396 #: ../fish/guestfish-actions.pod:4261
22397 msgid "vgs-full"
22398 msgstr ""
22399
22400 # type: verbatim
22401 #: ../fish/guestfish-actions.pod:4263
22402 #, no-wrap
22403 msgid ""
22404 " vgs-full\n"
22405 "\n"
22406 msgstr ""
22407
22408 # type: =head2
22409 #: ../fish/guestfish-actions.pod:4268
22410 msgid "vgscan"
22411 msgstr ""
22412
22413 # type: verbatim
22414 #: ../fish/guestfish-actions.pod:4270
22415 #, no-wrap
22416 msgid ""
22417 " vgscan\n"
22418 "\n"
22419 msgstr ""
22420
22421 # type: =head2
22422 #: ../fish/guestfish-actions.pod:4275
22423 msgid "vguuid"
22424 msgstr ""
22425
22426 # type: verbatim
22427 #: ../fish/guestfish-actions.pod:4277
22428 #, no-wrap
22429 msgid ""
22430 " vguuid vgname\n"
22431 "\n"
22432 msgstr ""
22433
22434 # type: =head2
22435 #: ../fish/guestfish-actions.pod:4281
22436 msgid "wc-c"
22437 msgstr ""
22438
22439 # type: verbatim
22440 #: ../fish/guestfish-actions.pod:4283
22441 #, no-wrap
22442 msgid ""
22443 " wc-c path\n"
22444 "\n"
22445 msgstr ""
22446
22447 # type: =head2
22448 #: ../fish/guestfish-actions.pod:4288
22449 msgid "wc-l"
22450 msgstr ""
22451
22452 # type: verbatim
22453 #: ../fish/guestfish-actions.pod:4290
22454 #, no-wrap
22455 msgid ""
22456 " wc-l path\n"
22457 "\n"
22458 msgstr ""
22459
22460 # type: =head2
22461 #: ../fish/guestfish-actions.pod:4295
22462 msgid "wc-w"
22463 msgstr ""
22464
22465 # type: verbatim
22466 #: ../fish/guestfish-actions.pod:4297
22467 #, no-wrap
22468 msgid ""
22469 " wc-w path\n"
22470 "\n"
22471 msgstr ""
22472
22473 # type: =head2
22474 #: ../fish/guestfish-actions.pod:4302
22475 msgid "write"
22476 msgstr ""
22477
22478 # type: verbatim
22479 #: ../fish/guestfish-actions.pod:4304
22480 #, no-wrap
22481 msgid ""
22482 " write path content\n"
22483 "\n"
22484 msgstr ""
22485
22486 # type: =head2
22487 #: ../fish/guestfish-actions.pod:4312
22488 msgid "write-file"
22489 msgstr ""
22490
22491 # type: verbatim
22492 #: ../fish/guestfish-actions.pod:4314
22493 #, no-wrap
22494 msgid ""
22495 " write-file path content size\n"
22496 "\n"
22497 msgstr ""
22498
22499 # type: =head2
22500 #: ../fish/guestfish-actions.pod:4337
22501 msgid "zegrep"
22502 msgstr ""
22503
22504 # type: verbatim
22505 #: ../fish/guestfish-actions.pod:4339
22506 #, no-wrap
22507 msgid ""
22508 " zegrep regex path\n"
22509 "\n"
22510 msgstr ""
22511
22512 # type: =head2
22513 #: ../fish/guestfish-actions.pod:4347
22514 msgid "zegrepi"
22515 msgstr ""
22516
22517 # type: verbatim
22518 #: ../fish/guestfish-actions.pod:4349
22519 #, no-wrap
22520 msgid ""
22521 " zegrepi regex path\n"
22522 "\n"
22523 msgstr ""
22524
22525 # type: =head2
22526 #: ../fish/guestfish-actions.pod:4357
22527 msgid "zero"
22528 msgstr ""
22529
22530 # type: verbatim
22531 #: ../fish/guestfish-actions.pod:4359
22532 #, no-wrap
22533 msgid ""
22534 " zero device\n"
22535 "\n"
22536 msgstr ""
22537
22538 # type: textblock
22539 #: ../fish/guestfish-actions.pod:4367
22540 msgid "See also: L</zero-device>, L</scrub-device>."
22541 msgstr ""
22542
22543 # type: =head2
22544 #: ../fish/guestfish-actions.pod:4369
22545 msgid "zero-device"
22546 msgstr ""
22547
22548 # type: verbatim
22549 #: ../fish/guestfish-actions.pod:4371
22550 #, no-wrap
22551 msgid ""
22552 " zero-device device\n"
22553 "\n"
22554 msgstr ""
22555
22556 # type: textblock
22557 #: ../fish/guestfish-actions.pod:4373
22558 msgid ""
22559 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
22560 "which just zeroes the first few blocks of a device."
22561 msgstr ""
22562
22563 # type: =head2
22564 #: ../fish/guestfish-actions.pod:4380
22565 msgid "zerofree"
22566 msgstr ""
22567
22568 # type: verbatim
22569 #: ../fish/guestfish-actions.pod:4382
22570 #, no-wrap
22571 msgid ""
22572 " zerofree device\n"
22573 "\n"
22574 msgstr ""
22575
22576 # type: =head2
22577 #: ../fish/guestfish-actions.pod:4395
22578 msgid "zfgrep"
22579 msgstr ""
22580
22581 # type: verbatim
22582 #: ../fish/guestfish-actions.pod:4397
22583 #, no-wrap
22584 msgid ""
22585 " zfgrep pattern path\n"
22586 "\n"
22587 msgstr ""
22588
22589 # type: =head2
22590 #: ../fish/guestfish-actions.pod:4405
22591 msgid "zfgrepi"
22592 msgstr ""
22593
22594 # type: verbatim
22595 #: ../fish/guestfish-actions.pod:4407
22596 #, no-wrap
22597 msgid ""
22598 " zfgrepi pattern path\n"
22599 "\n"
22600 msgstr ""
22601
22602 # type: =head2
22603 #: ../fish/guestfish-actions.pod:4415
22604 msgid "zfile"
22605 msgstr ""
22606
22607 # type: verbatim
22608 #: ../fish/guestfish-actions.pod:4417
22609 #, no-wrap
22610 msgid ""
22611 " zfile meth path\n"
22612 "\n"
22613 msgstr ""
22614
22615 # type: textblock
22616 #: ../fish/guestfish-actions.pod:4424
22617 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
22618 msgstr ""
22619
22620 # type: =head2
22621 #: ../fish/guestfish-actions.pod:4434
22622 msgid "zgrep"
22623 msgstr ""
22624
22625 # type: verbatim
22626 #: ../fish/guestfish-actions.pod:4436
22627 #, no-wrap
22628 msgid ""
22629 " zgrep regex path\n"
22630 "\n"
22631 msgstr ""
22632
22633 # type: =head2
22634 #: ../fish/guestfish-actions.pod:4444
22635 msgid "zgrepi"
22636 msgstr ""
22637
22638 # type: verbatim
22639 #: ../fish/guestfish-actions.pod:4446
22640 #, no-wrap
22641 msgid ""
22642 " zgrepi regex path\n"
22643 "\n"
22644 msgstr ""
22645
22646 # type: =head2
22647 #: ../fish/guestfish-commands.pod:1
22648 msgid "alloc"
22649 msgstr ""
22650
22651 # type: =head2
22652 #: ../fish/guestfish-commands.pod:3
22653 msgid "allocate"
22654 msgstr ""
22655
22656 # type: verbatim
22657 #: ../fish/guestfish-commands.pod:5
22658 #, no-wrap
22659 msgid ""
22660 " alloc filename size\n"
22661 "\n"
22662 msgstr ""
22663
22664 # type: textblock
22665 #: ../fish/guestfish-commands.pod:7
22666 msgid ""
22667 "This creates an empty (zeroed) file of the given size, and then adds so it "
22668 "can be further examined."
22669 msgstr ""
22670
22671 # type: textblock
22672 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
22673 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
22674 msgstr ""
22675
22676 # type: textblock
22677 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
22678 msgid "Size can be specified using standard suffixes, eg. C<1M>."
22679 msgstr ""
22680
22681 # type: textblock
22682 #: ../fish/guestfish-commands.pod:14
22683 msgid ""
22684 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
22685 "image, see L</PREPARED DISK IMAGES>."
22686 msgstr ""
22687
22688 # type: =head2
22689 #: ../fish/guestfish-commands.pod:17
22690 msgid "copy-in"
22691 msgstr ""
22692
22693 # type: verbatim
22694 #: ../fish/guestfish-commands.pod:19
22695 #, no-wrap
22696 msgid ""
22697 " copy-in local [local ...] /remotedir\n"
22698 "\n"
22699 msgstr ""
22700
22701 # type: textblock
22702 #: ../fish/guestfish-commands.pod:21
22703 msgid ""
22704 "C<copy-in> copies local files or directories recursively into the disk "
22705 "image, placing them in the directory called C</remotedir> (which must "
22706 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
22707 "other commands as necessary."
22708 msgstr ""
22709
22710 # type: textblock
22711 #: ../fish/guestfish-commands.pod:26
22712 msgid ""
22713 "Multiple local files and directories can be specified, but the last "
22714 "parameter must always be a remote directory.  Wildcards cannot be used."
22715 msgstr ""
22716
22717 # type: =head2
22718 #: ../fish/guestfish-commands.pod:30
22719 msgid "copy-out"
22720 msgstr ""
22721
22722 # type: verbatim
22723 #: ../fish/guestfish-commands.pod:32
22724 #, no-wrap
22725 msgid ""
22726 " copy-out remote [remote ...] localdir\n"
22727 "\n"
22728 msgstr ""
22729
22730 # type: textblock
22731 #: ../fish/guestfish-commands.pod:34
22732 msgid ""
22733 "C<copy-out> copies remote files or directories recursively out of the disk "
22734 "image, placing them on the host disk in a local directory called C<localdir> "
22735 "(which must exist).  This guestfish meta-command turns into a sequence of "
22736 "L</download>, L</tar-out> and other commands as necessary."
22737 msgstr ""
22738
22739 # type: textblock
22740 #: ../fish/guestfish-commands.pod:40
22741 msgid ""
22742 "Multiple remote files and directories can be specified, but the last "
22743 "parameter must always be a local directory.  To download to the current "
22744 "directory, use C<.> as in:"
22745 msgstr ""
22746
22747 # type: verbatim
22748 #: ../fish/guestfish-commands.pod:44
22749 #, no-wrap
22750 msgid ""
22751 " copy-out /home .\n"
22752 "\n"
22753 msgstr ""
22754
22755 # type: textblock
22756 #: ../fish/guestfish-commands.pod:46
22757 msgid ""
22758 "Wildcards cannot be used in the ordinary command, but you can use them with "
22759 "the help of L</glob> like this:"
22760 msgstr ""
22761
22762 # type: verbatim
22763 #: ../fish/guestfish-commands.pod:49
22764 #, no-wrap
22765 msgid ""
22766 " glob copy-out /home/* .\n"
22767 "\n"
22768 msgstr ""
22769
22770 # type: =head2
22771 #: ../fish/guestfish-commands.pod:51
22772 msgid "echo"
22773 msgstr ""
22774
22775 # type: verbatim
22776 #: ../fish/guestfish-commands.pod:53
22777 #, no-wrap
22778 msgid ""
22779 " echo [params ...]\n"
22780 "\n"
22781 msgstr ""
22782
22783 # type: textblock
22784 #: ../fish/guestfish-commands.pod:55
22785 msgid "This echos the parameters to the terminal."
22786 msgstr ""
22787
22788 # type: =head2
22789 #: ../fish/guestfish-commands.pod:57
22790 msgid "edit"
22791 msgstr ""
22792
22793 # type: =head2
22794 #: ../fish/guestfish-commands.pod:59
22795 msgid "vi"
22796 msgstr ""
22797
22798 # type: =head2
22799 #: ../fish/guestfish-commands.pod:61
22800 msgid "emacs"
22801 msgstr ""
22802
22803 # type: verbatim
22804 #: ../fish/guestfish-commands.pod:63
22805 #, no-wrap
22806 msgid ""
22807 " edit filename\n"
22808 "\n"
22809 msgstr ""
22810
22811 # type: textblock
22812 #: ../fish/guestfish-commands.pod:65
22813 msgid ""
22814 "This is used to edit a file.  It downloads the file, edits it locally using "
22815 "your editor, then uploads the result."
22816 msgstr ""
22817
22818 # type: textblock
22819 #: ../fish/guestfish-commands.pod:68
22820 msgid ""
22821 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
22822 "or C<emacs> you will get those corresponding editors."
22823 msgstr ""
22824
22825 # type: =head2
22826 #: ../fish/guestfish-commands.pod:72
22827 msgid "glob"
22828 msgstr ""
22829
22830 # type: verbatim
22831 #: ../fish/guestfish-commands.pod:74
22832 #, no-wrap
22833 msgid ""
22834 " glob command args...\n"
22835 "\n"
22836 msgstr ""
22837
22838 # type: textblock
22839 #: ../fish/guestfish-commands.pod:76
22840 msgid ""
22841 "Expand wildcards in any paths in the args list, and run C<command> "
22842 "repeatedly on each matching path."
22843 msgstr ""
22844
22845 # type: textblock
22846 #: ../fish/guestfish-commands.pod:79
22847 msgid "See L</WILDCARDS AND GLOBBING>."
22848 msgstr ""
22849
22850 # type: =head2
22851 #: ../fish/guestfish-commands.pod:81
22852 msgid "hexedit"
22853 msgstr ""
22854
22855 # type: verbatim
22856 #: ../fish/guestfish-commands.pod:83
22857 #, no-wrap
22858 msgid ""
22859 " hexedit <filename|device>\n"
22860 " hexedit <filename|device> <max>\n"
22861 " hexedit <filename|device> <start> <max>\n"
22862 "\n"
22863 msgstr ""
22864
22865 # type: textblock
22866 #: ../fish/guestfish-commands.pod:87
22867 msgid ""
22868 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
22869 "device."
22870 msgstr ""
22871
22872 # type: textblock
22873 #: ../fish/guestfish-commands.pod:90
22874 msgid ""
22875 "This command works by downloading potentially the whole file or device, "
22876 "editing it locally, then uploading it.  If the file or device is large, you "
22877 "have to specify which part you wish to edit by using C<max> and/or C<start> "
22878 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
22879 "usual modifiers allowed such as C<1M> (1 megabyte)."
22880 msgstr ""
22881
22882 # type: textblock
22883 #: ../fish/guestfish-commands.pod:97
22884 msgid "For example to edit the first few sectors of a disk you might do:"
22885 msgstr ""
22886
22887 # type: verbatim
22888 #: ../fish/guestfish-commands.pod:100
22889 #, no-wrap
22890 msgid ""
22891 " hexedit /dev/sda 1M\n"
22892 "\n"
22893 msgstr ""
22894
22895 # type: textblock
22896 #: ../fish/guestfish-commands.pod:102
22897 msgid ""
22898 "which would allow you to edit anywhere within the first megabyte of the "
22899 "disk."
22900 msgstr ""
22901
22902 # type: textblock
22903 #: ../fish/guestfish-commands.pod:105
22904 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
22905 msgstr ""
22906
22907 # type: verbatim
22908 #: ../fish/guestfish-commands.pod:107
22909 #, no-wrap
22910 msgid ""
22911 " hexedit /dev/sda1 0x400 0x400\n"
22912 "\n"
22913 msgstr ""
22914
22915 # type: textblock
22916 #: ../fish/guestfish-commands.pod:109
22917 msgid "(assuming the superblock is in the standard location)."
22918 msgstr ""
22919
22920 # type: textblock
22921 #: ../fish/guestfish-commands.pod:111
22922 msgid ""
22923 "This command requires the external L<hexedit(1)> program.  You can specify "
22924 "another program to use by setting the C<HEXEDITOR> environment variable."
22925 msgstr ""
22926
22927 # type: textblock
22928 #: ../fish/guestfish-commands.pod:115
22929 msgid "See also L</hexdump>."
22930 msgstr ""
22931
22932 # type: =head2
22933 #: ../fish/guestfish-commands.pod:117
22934 msgid "lcd"
22935 msgstr ""
22936
22937 # type: verbatim
22938 #: ../fish/guestfish-commands.pod:119
22939 #, no-wrap
22940 msgid ""
22941 " lcd directory\n"
22942 "\n"
22943 msgstr ""
22944
22945 # type: textblock
22946 #: ../fish/guestfish-commands.pod:121
22947 msgid "Change the local directory, ie. the current directory of guestfish itself."
22948 msgstr ""
22949
22950 # type: textblock
22951 #: ../fish/guestfish-commands.pod:124
22952 msgid "Note that C<!cd> won't do what you might expect."
22953 msgstr ""
22954
22955 # type: =head2
22956 #: ../fish/guestfish-commands.pod:126
22957 msgid "man"
22958 msgstr ""
22959
22960 # type: =head2
22961 #: ../fish/guestfish-commands.pod:128
22962 msgid "manual"
22963 msgstr ""
22964
22965 # type: verbatim
22966 #: ../fish/guestfish-commands.pod:130
22967 #, no-wrap
22968 msgid ""
22969 "  man\n"
22970 "\n"
22971 msgstr ""
22972
22973 # type: textblock
22974 #: ../fish/guestfish-commands.pod:132
22975 msgid "Opens the manual page for guestfish."
22976 msgstr ""
22977
22978 # type: =head2
22979 #: ../fish/guestfish-commands.pod:134
22980 msgid "more"
22981 msgstr ""
22982
22983 # type: =head2
22984 #: ../fish/guestfish-commands.pod:136
22985 msgid "less"
22986 msgstr ""
22987
22988 # type: verbatim
22989 #: ../fish/guestfish-commands.pod:138
22990 #, no-wrap
22991 msgid ""
22992 " more filename\n"
22993 "\n"
22994 msgstr ""
22995
22996 # type: verbatim
22997 #: ../fish/guestfish-commands.pod:140
22998 #, no-wrap
22999 msgid ""
23000 " less filename\n"
23001 "\n"
23002 msgstr ""
23003
23004 # type: textblock
23005 #: ../fish/guestfish-commands.pod:142
23006 msgid "This is used to view a file."
23007 msgstr ""
23008
23009 # type: textblock
23010 #: ../fish/guestfish-commands.pod:144
23011 msgid ""
23012 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23013 "C<less> you will get the C<less> command specifically."
23014 msgstr ""
23015
23016 # type: =head2
23017 #: ../fish/guestfish-commands.pod:147
23018 msgid "reopen"
23019 msgstr ""
23020
23021 # type: verbatim
23022 #: ../fish/guestfish-commands.pod:149
23023 #, no-wrap
23024 msgid ""
23025 "  reopen\n"
23026 "\n"
23027 msgstr ""
23028
23029 # type: textblock
23030 #: ../fish/guestfish-commands.pod:151
23031 msgid ""
23032 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23033 "normally, because the handle is closed properly when guestfish exits.  "
23034 "However this is occasionally useful for testing."
23035 msgstr ""
23036
23037 # type: =head2
23038 #: ../fish/guestfish-commands.pod:155
23039 msgid "sparse"
23040 msgstr ""
23041
23042 # type: verbatim
23043 #: ../fish/guestfish-commands.pod:157
23044 #, no-wrap
23045 msgid ""
23046 " sparse filename size\n"
23047 "\n"
23048 msgstr ""
23049
23050 # type: textblock
23051 #: ../fish/guestfish-commands.pod:159
23052 msgid ""
23053 "This creates an empty sparse file of the given size, and then adds so it can "
23054 "be further examined."
23055 msgstr ""
23056
23057 # type: textblock
23058 #: ../fish/guestfish-commands.pod:162
23059 msgid ""
23060 "In all respects it works the same as the L</alloc> command, except that the "
23061 "image file is allocated sparsely, which means that disk blocks are not "
23062 "assigned to the file until they are needed.  Sparse disk files only use "
23063 "space when written to, but they are slower and there is a danger you could "
23064 "run out of real disk space during a write operation."
23065 msgstr ""
23066
23067 # type: =head2
23068 #: ../fish/guestfish-commands.pod:172
23069 msgid "supported"
23070 msgstr ""
23071
23072 # type: verbatim
23073 #: ../fish/guestfish-commands.pod:174
23074 #, no-wrap
23075 msgid ""
23076 " supported\n"
23077 "\n"
23078 msgstr ""
23079
23080 # type: textblock
23081 #: ../fish/guestfish-commands.pod:176
23082 msgid ""
23083 "This command returns a list of the optional groups known to the daemon, and "
23084 "indicates which ones are supported by this build of the libguestfs "
23085 "appliance."
23086 msgstr ""
23087
23088 # type: textblock
23089 #: ../fish/guestfish-commands.pod:180
23090 msgid "See also L<guestfs(3)/AVAILABILITY>."
23091 msgstr ""
23092
23093 # type: =head2
23094 #: ../fish/guestfish-commands.pod:182
23095 msgid "time"
23096 msgstr ""
23097
23098 # type: verbatim
23099 #: ../fish/guestfish-commands.pod:184
23100 #, no-wrap
23101 msgid ""
23102 " time command args...\n"
23103 "\n"
23104 msgstr ""
23105
23106 # type: textblock
23107 #: ../fish/guestfish-commands.pod:186
23108 msgid ""
23109 "Run the command as usual, but print the elapsed time afterwards.  This can "
23110 "be useful for benchmarking operations."
23111 msgstr ""
23112
23113 # type: textblock
23114 #: ../test-tool/libguestfs-test-tool.pod:5
23115 msgid "libguestfs-test-tool - End user tests for libguestfs"
23116 msgstr ""
23117
23118 # type: verbatim
23119 #: ../test-tool/libguestfs-test-tool.pod:9
23120 #, no-wrap
23121 msgid ""
23122 " libguestfs-test-tool [--options]\n"
23123 "\n"
23124 msgstr ""
23125
23126 # type: textblock
23127 #: ../test-tool/libguestfs-test-tool.pod:13
23128 msgid ""
23129 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
23130 "and developers, to allow them to check basic libguestfs functionality is "
23131 "working.  This is needed because libguestfs occasionally breaks for reasons "
23132 "beyond our control: usually because of changes in the underlying qemu or "
23133 "kernel packages, or the host environment."
23134 msgstr ""
23135
23136 # type: textblock
23137 #: ../test-tool/libguestfs-test-tool.pod:20
23138 msgid "If you suspect a problem in libguestfs, then just run:"
23139 msgstr ""
23140
23141 # type: verbatim
23142 #: ../test-tool/libguestfs-test-tool.pod:22
23143 #, no-wrap
23144 msgid ""
23145 " libguestfs-test-tool\n"
23146 "\n"
23147 msgstr ""
23148
23149 # type: textblock
23150 #: ../test-tool/libguestfs-test-tool.pod:24
23151 msgid "It will print lots of diagnostic messages."
23152 msgstr ""
23153
23154 # type: textblock
23155 #: ../test-tool/libguestfs-test-tool.pod:26
23156 msgid "If it runs to completion successfully, you will see this near the end:"
23157 msgstr ""
23158
23159 # type: verbatim
23160 #: ../test-tool/libguestfs-test-tool.pod:28
23161 #, no-wrap
23162 msgid ""
23163 " ===== TEST FINISHED OK =====\n"
23164 "\n"
23165 msgstr ""
23166
23167 # type: textblock
23168 #: ../test-tool/libguestfs-test-tool.pod:30
23169 msgid "and the test tool will exit with code 0."
23170 msgstr ""
23171
23172 # type: textblock
23173 #: ../test-tool/libguestfs-test-tool.pod:32
23174 msgid ""
23175 "If it fails (and/or exits with non-zero error code), please paste the "
23176 "B<complete, unedited> output of the test tool into a bug report.  More "
23177 "information about reporting bugs can be found on the "
23178 "L<http://libguestfs.org/> website."
23179 msgstr ""
23180
23181 # type: =item
23182 #: ../test-tool/libguestfs-test-tool.pod:41
23183 msgid "I<--help>"
23184 msgstr ""
23185
23186 # type: textblock
23187 #: ../test-tool/libguestfs-test-tool.pod:43
23188 msgid "Display short usage information and exit."
23189 msgstr ""
23190
23191 # type: =item
23192 #: ../test-tool/libguestfs-test-tool.pod:45
23193 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
23194 msgstr ""
23195
23196 # type: textblock
23197 #: ../test-tool/libguestfs-test-tool.pod:47
23198 msgid ""
23199 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
23200 "normally look in the C<$libexec> directory that was configured when the tool "
23201 "was built."
23202 msgstr ""
23203
23204 # type: =item
23205 #: ../test-tool/libguestfs-test-tool.pod:51
23206 msgid "I<--qemu qemu_binary>"
23207 msgstr ""
23208
23209 # type: textblock
23210 #: ../test-tool/libguestfs-test-tool.pod:53
23211 msgid ""
23212 "If you have downloaded another qemu binary, point this option at the full "
23213 "path of the binary to try it."
23214 msgstr ""
23215
23216 # type: =item
23217 #: ../test-tool/libguestfs-test-tool.pod:56
23218 msgid "I<--qemudir qemu_source_dir>"
23219 msgstr ""
23220
23221 # type: textblock
23222 #: ../test-tool/libguestfs-test-tool.pod:58
23223 msgid ""
23224 "If you have compiled qemu from source, point this option at the source "
23225 "directory to try it."
23226 msgstr ""
23227
23228 # type: =item
23229 #: ../test-tool/libguestfs-test-tool.pod:61
23230 msgid "I<--timeout N>"
23231 msgstr ""
23232
23233 # type: textblock
23234 #: ../test-tool/libguestfs-test-tool.pod:63
23235 msgid ""
23236 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
23237 "does not usually need to be adjusted unless your machine is very slow."
23238 msgstr ""
23239
23240 # type: =head1
23241 #: ../test-tool/libguestfs-test-tool.pod:69
23242 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
23243 msgstr ""
23244
23245 # type: textblock
23246 #: ../test-tool/libguestfs-test-tool.pod:71
23247 msgid ""
23248 "If you have compiled another version of qemu from source and would like to "
23249 "try that, then you can use the I<--qemudir> option to point to the qemu "
23250 "source directory."
23251 msgstr ""
23252
23253 # type: textblock
23254 #: ../test-tool/libguestfs-test-tool.pod:75
23255 msgid ""
23256 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
23257 "option to point to the binary."
23258 msgstr ""
23259
23260 # type: textblock
23261 #: ../test-tool/libguestfs-test-tool.pod:78
23262 msgid ""
23263 "When using an alternate qemu with libguestfs, usually you would need to "
23264 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
23265 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
23266 "when you use either of the I<--qemudir> or I<--qemu> options."
23267 msgstr ""
23268
23269 # type: textblock
23270 #: ../test-tool/libguestfs-test-tool.pod:85
23271 msgid ""
23272 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
23273 "I<1> if there was an error."
23274 msgstr ""
23275
23276 # type: =item
23277 #: ../test-tool/libguestfs-test-tool.pod:92
23278 msgid "/usr/libexec/libguestfs-test-tool-helper"
23279 msgstr ""
23280
23281 # type: textblock
23282 #: ../test-tool/libguestfs-test-tool.pod:94
23283 msgid ""
23284 "This helper program is run inside the appliance and provides additional "
23285 "tests."
23286 msgstr ""
23287
23288 # type: =item
23289 #: ../test-tool/libguestfs-test-tool.pod:97
23290 msgid "/usr/bin/mkisofs"
23291 msgstr ""
23292
23293 # type: textblock
23294 #: ../test-tool/libguestfs-test-tool.pod:99
23295 msgid ""
23296 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
23297 "which is used as part of the tests."
23298 msgstr ""
23299
23300 # type: textblock
23301 #: ../test-tool/libguestfs-test-tool.pod:106
23302 msgid ""
23303 "For the full list of environment variables which may affect libguestfs, "
23304 "please see the L<guestfs(3)> manual page."
23305 msgstr ""
23306
23307 # type: textblock
23308 #: ../test-tool/libguestfs-test-tool.pod:111
23309 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
23310 msgstr ""
23311
23312 # type: textblock
23313 #: ../test-tool/libguestfs-test-tool.pod:121
23314 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
23315 msgstr ""
23316
23317 # type: textblock
23318 #: ../fuse/guestmount.pod:5
23319 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23320 msgstr ""
23321
23322 # type: verbatim
23323 #: ../fuse/guestmount.pod:9
23324 #, no-wrap
23325 msgid ""
23326 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23327 "\n"
23328 msgstr ""
23329
23330 # type: verbatim
23331 #: ../fuse/guestmount.pod:11
23332 #, no-wrap
23333 msgid ""
23334 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23335 "\n"
23336 msgstr ""
23337
23338 # type: verbatim
23339 #: ../fuse/guestmount.pod:13
23340 #, no-wrap
23341 msgid ""
23342 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23343 "\n"
23344 msgstr ""
23345
23346 # type: textblock
23347 #: ../fuse/guestmount.pod:17
23348 msgid ""
23349 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23350 "machines.  If you do this, you risk disk corruption in the VM."
23351 msgstr ""
23352
23353 # type: textblock
23354 #: ../fuse/guestmount.pod:22
23355 msgid ""
23356 "The guestmount program can be used to mount virtual machine filesystems and "
23357 "other disk images on the host.  It uses libguestfs for access to the guest "
23358 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23359 "a mountable device."
23360 msgstr ""
23361
23362 # type: textblock
23363 #: ../fuse/guestmount.pod:27
23364 msgid ""
23365 "Along with other options, you have to give at least one device (I<-a> "
23366 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23367 "option) or use the I<-i> inspection option.  How this works is better "
23368 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
23369 "below."
23370 msgstr ""
23371
23372 # type: textblock
23373 #: ../fuse/guestmount.pod:33
23374 msgid ""
23375 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23376 "by you, and the filesystem will not be visible to any other users unless you "
23377 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23378 "the filesystem, use the C<fusermount -u> command."
23379 msgstr ""
23380
23381 # type: textblock
23382 #: ../fuse/guestmount.pod:41
23383 msgid ""
23384 "For a typical Windows guest which has its main filesystem on the first "
23385 "partition:"
23386 msgstr ""
23387
23388 # type: verbatim
23389 #: ../fuse/guestmount.pod:44
23390 #, no-wrap
23391 msgid ""
23392 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23393 "\n"
23394 msgstr ""
23395
23396 # type: textblock
23397 #: ../fuse/guestmount.pod:46
23398 msgid ""
23399 "For a typical Linux guest which has a /boot filesystem on the first "
23400 "partition, and the root filesystem on a logical volume:"
23401 msgstr ""
23402
23403 # type: verbatim
23404 #: ../fuse/guestmount.pod:49
23405 #, no-wrap
23406 msgid ""
23407 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23408 "\n"
23409 msgstr ""
23410
23411 # type: textblock
23412 #: ../fuse/guestmount.pod:51
23413 msgid "To get libguestfs to detect guest mountpoints for you:"
23414 msgstr ""
23415
23416 # type: verbatim
23417 #: ../fuse/guestmount.pod:53
23418 #, no-wrap
23419 msgid ""
23420 " guestmount -a guest.img -i --ro /mnt\n"
23421 "\n"
23422 msgstr ""
23423
23424 # type: textblock
23425 #: ../fuse/guestmount.pod:55
23426 msgid "For a libvirt guest called \"Guest\" you could do:"
23427 msgstr ""
23428
23429 # type: verbatim
23430 #: ../fuse/guestmount.pod:57
23431 #, no-wrap
23432 msgid ""
23433 " guestmount -d Guest -i --ro /mnt\n"
23434 "\n"
23435 msgstr ""
23436
23437 # type: textblock
23438 #: ../fuse/guestmount.pod:59
23439 msgid ""
23440 "If you don't know what filesystems are contained in a guest or disk image, "
23441 "use L<virt-list-filesystems(1)> first:"
23442 msgstr ""
23443
23444 # type: verbatim
23445 #: ../fuse/guestmount.pod:62
23446 #, no-wrap
23447 msgid ""
23448 " virt-list-filesystems MyGuest\n"
23449 "\n"
23450 msgstr ""
23451
23452 # type: textblock
23453 #: ../fuse/guestmount.pod:64
23454 msgid ""
23455 "If you want to trace the libguestfs calls but without excessive debugging "
23456 "information, we recommend:"
23457 msgstr ""
23458
23459 # type: verbatim
23460 #: ../fuse/guestmount.pod:67
23461 #, no-wrap
23462 msgid ""
23463 " guestmount [...] --trace /mnt\n"
23464 "\n"
23465 msgstr ""
23466
23467 # type: textblock
23468 #: ../fuse/guestmount.pod:69
23469 msgid "If you want to debug the program, we recommend:"
23470 msgstr ""
23471
23472 # type: verbatim
23473 #: ../fuse/guestmount.pod:71
23474 #, no-wrap
23475 msgid ""
23476 " guestmount [...] --trace --verbose /mnt\n"
23477 "\n"
23478 msgstr ""
23479
23480 # type: textblock
23481 #: ../fuse/guestmount.pod:79
23482 msgid "Add a block device or virtual machine image."
23483 msgstr ""
23484
23485 # type: =item
23486 #: ../fuse/guestmount.pod:96
23487 msgid "B<--dir-cache-timeout N>"
23488 msgstr ""
23489
23490 # type: textblock
23491 #: ../fuse/guestmount.pod:98
23492 msgid ""
23493 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23494 "seconds.  The readdir cache [actually, there are several semi-independent "
23495 "caches] is populated after a readdir(2) call with the stat and extended "
23496 "attributes of the files in the directory, in anticipation that they will be "
23497 "requested soon after."
23498 msgstr ""
23499
23500 # type: textblock
23501 #: ../fuse/guestmount.pod:104
23502 msgid ""
23503 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23504 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23505 "requests, only cache existing ones."
23506 msgstr ""
23507
23508 # type: textblock
23509 #: ../fuse/guestmount.pod:115
23510 msgid ""
23511 "If you have untrusted raw-format guest disk images, you should use this "
23512 "option to specify the disk format.  This avoids a possible security problem "
23513 "with malicious guests (CVE-2010-3851).  See also "
23514 "L<guestfs(3)/guestfs_add_drive_opts>."
23515 msgstr ""
23516
23517 # type: =item
23518 #: ../fuse/guestmount.pod:120
23519 msgid "B<--fuse-help>"
23520 msgstr ""
23521
23522 # type: textblock
23523 #: ../fuse/guestmount.pod:122
23524 msgid "Display help on special FUSE options (see I<-o> below)."
23525 msgstr ""
23526
23527 # type: textblock
23528 #: ../fuse/guestmount.pod:126
23529 msgid "Display brief help and exit."
23530 msgstr ""
23531
23532 # type: =item
23533 #: ../fuse/guestmount.pod:134
23534 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
23535 msgstr ""
23536
23537 # type: textblock
23538 #: ../fuse/guestmount.pod:136
23539 msgid ""
23540 "Mount the named partition or logical volume on the given mountpoint B<in the "
23541 "guest> (this has nothing to do with mountpoints in the host)."
23542 msgstr ""
23543
23544 # type: textblock
23545 #: ../fuse/guestmount.pod:139
23546 msgid ""
23547 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
23548 "something on C</>."
23549 msgstr ""
23550
23551 # type: textblock
23552 #: ../fuse/guestmount.pod:144
23553 msgid ""
23554 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23555 "unmounted.  If you specify this option, then we don't attempt to sync the "
23556 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
23557 msgstr ""
23558
23559 # type: =item
23560 #: ../fuse/guestmount.pod:149
23561 msgid "B<-o option> | B<--option option>"
23562 msgstr ""
23563
23564 # type: textblock
23565 #: ../fuse/guestmount.pod:151
23566 msgid "Pass extra options to FUSE."
23567 msgstr ""
23568
23569 # type: textblock
23570 #: ../fuse/guestmount.pod:153
23571 msgid ""
23572 "To get a list of all the extra options supported by FUSE, use the command "
23573 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
23574 "of them are a good idea."
23575 msgstr ""
23576
23577 # type: verbatim
23578 #: ../fuse/guestmount.pod:157
23579 #, no-wrap
23580 msgid ""
23581 " guestmount --fuse-help\n"
23582 "\n"
23583 msgstr ""
23584
23585 # type: textblock
23586 #: ../fuse/guestmount.pod:159
23587 msgid "Some potentially useful FUSE options:"
23588 msgstr ""
23589
23590 # type: =item
23591 #: ../fuse/guestmount.pod:163
23592 msgid "B<-o allow_other>"
23593 msgstr ""
23594
23595 # type: textblock
23596 #: ../fuse/guestmount.pod:165
23597 msgid "Allow other users to see the filesystem."
23598 msgstr ""
23599
23600 # type: =item
23601 #: ../fuse/guestmount.pod:167
23602 msgid "B<-o attr_timeout=N>"
23603 msgstr ""
23604
23605 # type: textblock
23606 #: ../fuse/guestmount.pod:169
23607 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
23608 msgstr ""
23609
23610 # type: =item
23611 #: ../fuse/guestmount.pod:171
23612 msgid "B<-o kernel_cache>"
23613 msgstr ""
23614
23615 # type: textblock
23616 #: ../fuse/guestmount.pod:173
23617 msgid ""
23618 "Allow the kernel to cache files (reduces the number of reads that have to go "
23619 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
23620 "afford the extra memory usage."
23621 msgstr ""
23622
23623 # type: =item
23624 #: ../fuse/guestmount.pod:177
23625 msgid "B<-o uid=N> B<-o gid=N>"
23626 msgstr ""
23627
23628 # type: textblock
23629 #: ../fuse/guestmount.pod:179
23630 msgid ""
23631 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
23632 "the chosen values."
23633 msgstr ""
23634
23635 # type: textblock
23636 #: ../fuse/guestmount.pod:186
23637 msgid ""
23638 "Add devices and mount everything read-only.  Also disallow writes and make "
23639 "the disk appear read-only to FUSE."
23640 msgstr ""
23641
23642 # type: textblock
23643 #: ../fuse/guestmount.pod:189
23644 msgid ""
23645 "This is highly recommended if you are not going to edit the guest disk.  If "
23646 "the guest is running and this option is I<not> supplied, then there is a "
23647 "strong risk of disk corruption in the guest.  We try to prevent this from "
23648 "happening, but it is not always possible."
23649 msgstr ""
23650
23651 # type: textblock
23652 #: ../fuse/guestmount.pod:196
23653 msgid "Enable SELinux support for the guest."
23654 msgstr ""
23655
23656 # type: textblock
23657 #: ../fuse/guestmount.pod:200
23658 msgid "Enable verbose messages from underlying libguestfs."
23659 msgstr ""
23660
23661 # type: textblock
23662 #: ../fuse/guestmount.pod:204
23663 msgid "Display the program version and exit."
23664 msgstr ""
23665
23666 # type: =item
23667 #: ../fuse/guestmount.pod:206
23668 msgid "B<-x> | B<--trace>"
23669 msgstr ""
23670
23671 # type: textblock
23672 #: ../fuse/guestmount.pod:208
23673 msgid "Trace libguestfs calls."
23674 msgstr ""
23675
23676 # type: textblock
23677 #: ../fuse/guestmount.pod:210
23678 msgid "This also stops the daemon from forking into the background."
23679 msgstr ""
23680
23681 # type: textblock
23682 #: ../fuse/guestmount.pod:216
23683 msgid ""
23684 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23685 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
23686 "L<http://fuse.sf.net/>."
23687 msgstr ""
23688
23689 # type: textblock
23690 #: ../inspector/virt-inspector.pl:35
23691 msgid ""
23692 "virt-inspector - Display operating system version and other information "
23693 "about a virtual machine"
23694 msgstr ""
23695
23696 # type: verbatim
23697 #: ../inspector/virt-inspector.pl:39
23698 #, no-wrap
23699 msgid ""
23700 " virt-inspector [--connect URI] domname\n"
23701 "\n"
23702 msgstr ""
23703
23704 # type: verbatim
23705 #: ../inspector/virt-inspector.pl:41
23706 #, no-wrap
23707 msgid ""
23708 " virt-inspector guest.img [guest.img ...]\n"
23709 "\n"
23710 msgstr ""
23711
23712 # type: textblock
23713 #: ../inspector/virt-inspector.pl:45
23714 msgid ""
23715 "B<virt-inspector> examines a virtual machine or disk image and tries to "
23716 "determine the version of the operating system and other information about "
23717 "the virtual machine."
23718 msgstr ""
23719
23720 # type: textblock
23721 #: ../inspector/virt-inspector.pl:49
23722 msgid "Virt-inspector produces XML output for feeding into other programs."
23723 msgstr ""
23724
23725 # type: textblock
23726 #: ../inspector/virt-inspector.pl:51
23727 msgid ""
23728 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
23729 "libvirt domain (see: C<virsh list --all>)."
23730 msgstr ""
23731
23732 # type: textblock
23733 #: ../inspector/virt-inspector.pl:54
23734 msgid ""
23735 "You can also run virt-inspector directly on disk images from a single "
23736 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
23737 "has several block devices, in which case you should list them one after "
23738 "another, with the first corresponding to the guest's C</dev/sda>, the second "
23739 "to the guest's C</dev/sdb> and so on."
23740 msgstr ""
23741
23742 # type: textblock
23743 #: ../inspector/virt-inspector.pl:60
23744 msgid ""
23745 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
23746 "inspect several virtual machines, you have to run virt-inspector several "
23747 "times (for example, from a shell script for-loop)."
23748 msgstr ""
23749
23750 # type: textblock
23751 #: ../inspector/virt-inspector.pl:65
23752 msgid ""
23753 "Because virt-inspector needs direct access to guest images, it won't "
23754 "normally work over remote libvirt connections."
23755 msgstr ""
23756
23757 # type: textblock
23758 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88 ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:89 ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
23759 msgid "Display brief help."
23760 msgstr ""
23761
23762 # type: =item
23763 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94 ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66 ../tools/virt-cat.pl:95 ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
23764 msgid "B<--version>"
23765 msgstr ""
23766
23767 # type: textblock
23768 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96 ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68 ../tools/virt-cat.pl:97 ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
23769 msgid "Display version number and exit."
23770 msgstr ""
23771
23772 # type: =item
23773 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102 ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:103 ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
23774 msgid "B<--connect URI> | B<-c URI>"
23775 msgstr ""
23776
23777 # type: textblock
23778 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104 ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:105 ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
23779 msgid ""
23780 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
23781 "to the default libvirt hypervisor."
23782 msgstr ""
23783
23784 # type: textblock
23785 #: ../inspector/virt-inspector.pl:97
23786 msgid ""
23787 "Libvirt is only used if you specify a C<domname> on the command line.  If "
23788 "you specify guest block devices directly, then libvirt is not used at all."
23789 msgstr ""
23790
23791 # type: =item
23792 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117 ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523 ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:115 ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
23793 msgid "B<--format> raw"
23794 msgstr ""
23795
23796 # type: textblock
23797 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119 ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88 ../tools/virt-cat.pl:117 ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
23798 msgid ""
23799 "Specify the format of disk images given on the command line.  If this is "
23800 "omitted then the format is autodetected from the content of the disk image."
23801 msgstr ""
23802
23803 # type: textblock
23804 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123 ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92 ../tools/virt-cat.pl:121 ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
23805 msgid ""
23806 "If disk images are requested from libvirt, then this program asks libvirt "
23807 "for this information.  In this case, the value of the format parameter is "
23808 "ignored."
23809 msgstr ""
23810
23811 # type: textblock
23812 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127 ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528 ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96 ../tools/virt-cat.pl:125 ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
23813 msgid ""
23814 "If working with untrusted raw-format guest disk images, you should ensure "
23815 "the format is always specified."
23816 msgstr ""
23817
23818 # type: =head1
23819 #: ../inspector/virt-inspector.pl:350 ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477 ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225 ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179 ../tools/virt-cat.pl:178 ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:247
23820 msgid "SHELL QUOTING"
23821 msgstr ""
23822
23823 # type: textblock
23824 #: ../inspector/virt-inspector.pl:352 ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635 ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481 ../tools/virt-list-filesystems.pl:181 ../tools/virt-cat.pl:180 ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
23825 msgid ""
23826 "Libvirt guest names can contain arbitrary characters, some of which have "
23827 "meaning to the shell such as C<#> and space.  You may need to quote or "
23828 "escape these characters on the command line.  See the shell manual page "
23829 "L<sh(1)> for details."
23830 msgstr ""
23831
23832 # type: textblock
23833 #: ../inspector/virt-inspector.pl:359 ../tools/virt-df.pl:642
23834 msgid ""
23835 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
23836 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23837 msgstr ""
23838
23839 # type: textblock
23840 #: ../inspector/virt-inspector.pl:372 ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651 ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:200 ../tools/virt-cat.pl:197 ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
23841 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
23842 msgstr ""
23843
23844 # type: textblock
23845 #: ../inspector/virt-inspector.pl:376
23846 msgid "Matthew Booth L<mbooth@redhat.com>"
23847 msgstr ""
23848
23849 # type: textblock
23850 #: ../inspector/virt-inspector.pl:382 ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
23851 msgid "Copyright (C) 2010 Red Hat Inc."
23852 msgstr ""
23853
23854 # type: textblock
23855 #: ../tools/virt-edit.pl:34
23856 msgid "virt-edit - Edit a file in a virtual machine"
23857 msgstr ""
23858
23859 # type: verbatim
23860 #: ../tools/virt-edit.pl:38
23861 #, no-wrap
23862 msgid ""
23863 " virt-edit [--options] domname file\n"
23864 "\n"
23865 msgstr ""
23866
23867 # type: verbatim
23868 #: ../tools/virt-edit.pl:40
23869 #, no-wrap
23870 msgid ""
23871 " virt-edit [--options] disk.img [disk.img ...] file\n"
23872 "\n"
23873 msgstr ""
23874
23875 # type: verbatim
23876 #: ../tools/virt-edit.pl:42
23877 #, no-wrap
23878 msgid ""
23879 " virt-edit [domname|disk.img] file -e 'expr'\n"
23880 "\n"
23881 msgstr ""
23882
23883 # type: textblock
23884 #: ../tools/virt-edit.pl:46
23885 msgid ""
23886 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
23887 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
23888 "doing this, but doesn't catch all cases."
23889 msgstr ""
23890
23891 # type: textblock
23892 #: ../tools/virt-edit.pl:52
23893 msgid ""
23894 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
23895 "the named virtual machine (or disk image)."
23896 msgstr ""
23897
23898 # type: textblock
23899 #: ../tools/virt-edit.pl:55
23900 msgid ""
23901 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
23902 "you should look at the L<guestfish(1)> tool."
23903 msgstr ""
23904
23905 # type: textblock
23906 #: ../tools/virt-edit.pl:60
23907 msgid "Edit the named files interactively:"
23908 msgstr ""
23909
23910 # type: verbatim
23911 #: ../tools/virt-edit.pl:62
23912 #, no-wrap
23913 msgid ""
23914 " virt-edit mydomain /boot/grub/grub.conf\n"
23915 "\n"
23916 msgstr ""
23917
23918 # type: verbatim
23919 #: ../tools/virt-edit.pl:64
23920 #, no-wrap
23921 msgid ""
23922 " virt-edit mydomain /etc/passwd\n"
23923 "\n"
23924 msgstr ""
23925
23926 # type: textblock
23927 #: ../tools/virt-edit.pl:66
23928 msgid ""
23929 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
23930 "below).  To change the init default level to 5:"
23931 msgstr ""
23932
23933 # type: verbatim
23934 #: ../tools/virt-edit.pl:70
23935 #, no-wrap
23936 msgid ""
23937 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
23938 "\n"
23939 msgstr ""
23940
23941 # type: =item
23942 #: ../tools/virt-edit.pl:96
23943 msgid "B<--backup extension> | B<-b extension>"
23944 msgstr ""
23945
23946 # type: textblock
23947 #: ../tools/virt-edit.pl:98
23948 msgid ""
23949 "Create a backup of the original file I<in the guest disk image>.  The backup "
23950 "has the original filename with C<extension> added."
23951 msgstr ""
23952
23953 # type: textblock
23954 #: ../tools/virt-edit.pl:101
23955 msgid ""
23956 "Usually the first character of C<extension> would be a dot C<.> so you would "
23957 "write:"
23958 msgstr ""
23959
23960 # type: verbatim
23961 #: ../tools/virt-edit.pl:104
23962 #, no-wrap
23963 msgid ""
23964 " virt-edit -b .orig [etc]\n"
23965 "\n"
23966 msgstr ""
23967
23968 # type: textblock
23969 #: ../tools/virt-edit.pl:106
23970 msgid "By default, no backup file is made."
23971 msgstr ""
23972
23973 # type: textblock
23974 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208 ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107 ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:108 ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
23975 msgid ""
23976 "If you specify guest block devices directly, then libvirt is not used at "
23977 "all."
23978 msgstr ""
23979
23980 # type: =item
23981 #: ../tools/virt-edit.pl:141
23982 msgid "B<--expr EXPR> | B<-e EXPR>"
23983 msgstr ""
23984
23985 # type: textblock
23986 #: ../tools/virt-edit.pl:143
23987 msgid ""
23988 "Instead of launching the external editor, non-interactively apply the Perl "
23989 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
23990 "EDITING> below."
23991 msgstr ""
23992
23993 # type: textblock
23994 #: ../tools/virt-edit.pl:147
23995 msgid ""
23996 "Be careful to properly quote the expression to prevent it from being altered "
23997 "by the shell."
23998 msgstr ""
23999
24000 # type: =head1
24001 #: ../tools/virt-edit.pl:268
24002 msgid "NON-INTERACTIVE EDITING"
24003 msgstr ""
24004
24005 # type: textblock
24006 #: ../tools/virt-edit.pl:270
24007 msgid ""
24008 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
24009 "administrator can interactively edit the file."
24010 msgstr ""
24011
24012 # type: textblock
24013 #: ../tools/virt-edit.pl:273
24014 msgid ""
24015 "There are two ways also to use C<virt-edit> from scripts in order to make "
24016 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
24017 "like this, it's less error-prone to write scripts directly using the "
24018 "libguestfs API and Augeas for configuration file editing.)"
24019 msgstr ""
24020
24021 # type: textblock
24022 #: ../tools/virt-edit.pl:279
24023 msgid ""
24024 "The first method is to temporarily set C<$EDITOR> to any script or program "
24025 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
24026 "update C<tmpfile> in place however it likes."
24027 msgstr ""
24028
24029 # type: textblock
24030 #: ../tools/virt-edit.pl:283
24031 msgid ""
24032 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
24033 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
24034 "instances of C<foo> with C<bar> in a file:"
24035 msgstr ""
24036
24037 # type: verbatim
24038 #: ../tools/virt-edit.pl:287
24039 #, no-wrap
24040 msgid ""
24041 " virt-edit domname filename -e 's/foo/bar/'\n"
24042 "\n"
24043 msgstr ""
24044
24045 # type: textblock
24046 #: ../tools/virt-edit.pl:289
24047 msgid ""
24048 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
24049 "For example to delete root's password you could do:"
24050 msgstr ""
24051
24052 # type: verbatim
24053 #: ../tools/virt-edit.pl:292
24054 #, no-wrap
24055 msgid ""
24056 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
24057 "\n"
24058 msgstr ""
24059
24060 # type: textblock
24061 #: ../tools/virt-edit.pl:294
24062 msgid ""
24063 "What really happens is that the snippet is evaluated as a Perl expression "
24064 "for each line of the file.  The line, including the final C<\\n>, is passed "
24065 "in C<$_> and the expression should update C<$_> or leave it unchanged."
24066 msgstr ""
24067
24068 # type: textblock
24069 #: ../tools/virt-edit.pl:299
24070 msgid ""
24071 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
24072 "C<apache> user account from the password file you can do:"
24073 msgstr ""
24074
24075 # type: verbatim
24076 #: ../tools/virt-edit.pl:302
24077 #, no-wrap
24078 msgid ""
24079 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
24080 "\n"
24081 msgstr ""
24082
24083 # type: textblock
24084 #: ../tools/virt-edit.pl:304
24085 msgid ""
24086 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
24087 "the end of the file is rather difficult this way since there is no concept "
24088 "of \"last line of the file\" - your expression just doesn't get called "
24089 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
24090 "want to do this."
24091 msgstr ""
24092
24093 # type: textblock
24094 #: ../tools/virt-edit.pl:310
24095 msgid ""
24096 "The variable C<$lineno> contains the current line number.  As is "
24097 "traditional, the first line in the file is number C<1>."
24098 msgstr ""
24099
24100 # type: textblock
24101 #: ../tools/virt-edit.pl:313
24102 msgid ""
24103 "The return value from the expression is ignored, but the expression may call "
24104 "C<die> in order to abort the whole program, leaving the original file "
24105 "untouched."
24106 msgstr ""
24107
24108 # type: textblock
24109 #: ../tools/virt-edit.pl:317
24110 msgid ""
24111 "Remember when matching the end of a line that C<$_> may contain the final "
24112 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
24113 "newline then neither of these.  Thus to match or substitute some text at the "
24114 "end of a line, use this regular expression:"
24115 msgstr ""
24116
24117 # type: verbatim
24118 #: ../tools/virt-edit.pl:322
24119 #, no-wrap
24120 msgid ""
24121 " /some text(\\r?\\n)?$/\n"
24122 "\n"
24123 msgstr ""
24124
24125 # type: textblock
24126 #: ../tools/virt-edit.pl:324
24127 msgid ""
24128 "Alternately, use the perl C<chomp> function, being careful not to chomp "
24129 "C<$_> itself (since that would remove all newlines from the file):"
24130 msgstr ""
24131
24132 # type: verbatim
24133 #: ../tools/virt-edit.pl:328
24134 #, no-wrap
24135 msgid ""
24136 " my $m = $_; chomp $m; $m =~ /some text$/\n"
24137 "\n"
24138 msgstr ""
24139
24140 # type: =item
24141 #: ../tools/virt-edit.pl:334
24142 msgid "C<EDITOR>"
24143 msgstr ""
24144
24145 # type: textblock
24146 #: ../tools/virt-edit.pl:336
24147 msgid ""
24148 "If set, this string is used as the editor.  It may contain arguments, "
24149 "eg. C<\"emacs -nw\">"
24150 msgstr ""
24151
24152 # type: textblock
24153 #: ../tools/virt-edit.pl:339
24154 msgid "If not set, C<vi> is used."
24155 msgstr ""
24156
24157 # type: textblock
24158 #: ../tools/virt-edit.pl:352
24159 msgid ""
24160 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24161 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
24162 "L<perl(1)>, L<perlre(1)>."
24163 msgstr ""
24164
24165 # type: =head1
24166 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510 ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243 ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198 ../tools/virt-cat.pl:195 ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
24167 msgid "AUTHOR"
24168 msgstr ""
24169
24170 # type: textblock
24171 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655 ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
24172 msgid "Copyright (C) 2009-2010 Red Hat Inc."
24173 msgstr ""
24174
24175 # type: textblock
24176 #: ../tools/virt-win-reg.pl:37
24177 msgid ""
24178 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
24179 "guest"
24180 msgstr ""
24181
24182 # type: verbatim
24183 #: ../tools/virt-win-reg.pl:41
24184 #, no-wrap
24185 msgid ""
24186 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
24187 "\n"
24188 msgstr ""
24189
24190 # type: verbatim
24191 #: ../tools/virt-win-reg.pl:43
24192 #, no-wrap
24193 msgid ""
24194 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
24195 "\n"
24196 msgstr ""
24197
24198 # type: verbatim
24199 #: ../tools/virt-win-reg.pl:45
24200 #, no-wrap
24201 msgid ""
24202 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
24203 "\n"
24204 msgstr ""
24205
24206 # type: verbatim
24207 #: ../tools/virt-win-reg.pl:47
24208 #, no-wrap
24209 msgid ""
24210 " virt-win-reg --merge domname [input.reg ...]\n"
24211 "\n"
24212 msgstr ""
24213
24214 # type: verbatim
24215 #: ../tools/virt-win-reg.pl:49
24216 #, no-wrap
24217 msgid ""
24218 " virt-win-reg [--options] disk.img ... # instead of domname\n"
24219 "\n"
24220 msgstr ""
24221
24222 # type: textblock
24223 #: ../tools/virt-win-reg.pl:53
24224 msgid ""
24225 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
24226 "virtual machines.  If you do this, you I<will> get irreversible disk "
24227 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
24228 "but doesn't catch all cases."
24229 msgstr ""
24230
24231 # type: textblock
24232 #: ../tools/virt-win-reg.pl:58
24233 msgid ""
24234 "Modifying the Windows Registry is an inherently risky operation.  The format "
24235 "is deliberately obscure and undocumented, and Registry changes can leave the "
24236 "system unbootable.  Therefore when using the C<--merge> option, make sure "
24237 "you have a reliable backup first."
24238 msgstr ""
24239
24240 # type: textblock
24241 #: ../tools/virt-win-reg.pl:65
24242 msgid ""
24243 "This program can export and merge Windows Registry entries from a Windows "
24244 "guest."
24245 msgstr ""
24246
24247 # type: textblock
24248 #: ../tools/virt-win-reg.pl:68
24249 msgid ""
24250 "The first parameter is the libvirt guest name or the raw disk image of a "
24251 "Windows guest."
24252 msgstr ""
24253
24254 # type: textblock
24255 #: ../tools/virt-win-reg.pl:71
24256 msgid ""
24257 "If C<--merge> is I<not> specified, then the chosen registry key is "
24258 "displayed/exported (recursively).  For example:"
24259 msgstr ""
24260
24261 # type: verbatim
24262 #: ../tools/virt-win-reg.pl:74
24263 #, no-wrap
24264 msgid ""
24265 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
24266 "\n"
24267 msgstr ""
24268
24269 # type: textblock
24270 #: ../tools/virt-win-reg.pl:76
24271 msgid "You can also display single values from within registry keys, for example:"
24272 msgstr ""
24273
24274 # type: verbatim
24275 #: ../tools/virt-win-reg.pl:79
24276 #, no-wrap
24277 msgid ""
24278 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
24279 " $ virt-win-reg Windows7 $cvkey ProductName\n"
24280 " Windows 7 Enterprise\n"
24281 "\n"
24282 msgstr ""
24283
24284 # type: textblock
24285 #: ../tools/virt-win-reg.pl:83
24286 msgid ""
24287 "With C<--merge>, you can merge a textual regedit file into the Windows "
24288 "Registry:"
24289 msgstr ""
24290
24291 # type: verbatim
24292 #: ../tools/virt-win-reg.pl:86
24293 #, no-wrap
24294 msgid ""
24295 " $ virt-win-reg --merge Windows7 changes.reg\n"
24296 "\n"
24297 msgstr ""
24298
24299 # type: =head2
24300 #: ../tools/virt-win-reg.pl:88
24301 msgid "SUPPORTED SYSTEMS"
24302 msgstr ""
24303
24304 # type: textblock
24305 #: ../tools/virt-win-reg.pl:90
24306 msgid ""
24307 "The program currently supports Windows NT-derived guests starting with "
24308 "Windows XP through to at least Windows 7."
24309 msgstr ""
24310
24311 # type: textblock
24312 #: ../tools/virt-win-reg.pl:93
24313 msgid ""
24314 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
24315 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
24316 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
24317 msgstr ""
24318
24319 # type: textblock
24320 #: ../tools/virt-win-reg.pl:97
24321 msgid ""
24322 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
24323 "C<HKEY_USERS>."
24324 msgstr ""
24325
24326 # type: textblock
24327 #: ../tools/virt-win-reg.pl:100
24328 msgid ""
24329 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
24330 "time."
24331 msgstr ""
24332
24333 # type: =head2
24334 #: ../tools/virt-win-reg.pl:103
24335 msgid "NOTE"
24336 msgstr ""
24337
24338 # type: textblock
24339 #: ../tools/virt-win-reg.pl:105
24340 msgid ""
24341 "This program is only meant for simple access to the registry.  If you want "
24342 "to do complicated things with the registry, we suggest you download the "
24343 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
24344 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
24345 "L<hivexregedit(1)>."
24346 msgstr ""
24347
24348 # type: =head2
24349 #: ../tools/virt-win-reg.pl:111
24350 msgid "ENCODING"
24351 msgstr ""
24352
24353 # type: textblock
24354 #: ../tools/virt-win-reg.pl:113
24355 msgid ""
24356 "C<virt-win-reg> expects that regedit files have already been reencoded in "
24357 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
24358 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
24359 "with Windows-style line endings, you may need to reencode the whole file "
24360 "before or after processing."
24361 msgstr ""
24362
24363 # type: textblock
24364 #: ../tools/virt-win-reg.pl:119
24365 msgid ""
24366 "To reencode a file from Windows format to Linux (before processing it with "
24367 "the C<--merge> option), you would do something like this:"
24368 msgstr ""
24369
24370 # type: verbatim
24371 #: ../tools/virt-win-reg.pl:122
24372 #, no-wrap
24373 msgid ""
24374 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
24375 "\n"
24376 msgstr ""
24377
24378 # type: textblock
24379 #: ../tools/virt-win-reg.pl:124
24380 msgid ""
24381 "To go in the opposite direction, after exporting and before sending the file "
24382 "to a Windows user, do something like this:"
24383 msgstr ""
24384
24385 # type: verbatim
24386 #: ../tools/virt-win-reg.pl:127
24387 #, no-wrap
24388 msgid ""
24389 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
24390 "\n"
24391 msgstr ""
24392
24393 # type: textblock
24394 #: ../tools/virt-win-reg.pl:129
24395 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
24396 msgstr ""
24397
24398 # type: textblock
24399 #: ../tools/virt-win-reg.pl:131
24400 msgid ""
24401 "If you are unsure about the current encoding, use the L<file(1)> command.  "
24402 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
24403 "Windows-style (CRLF) line endings, like this:"
24404 msgstr ""
24405
24406 # type: verbatim
24407 #: ../tools/virt-win-reg.pl:135
24408 #, no-wrap
24409 msgid ""
24410 " $ file software.reg\n"
24411 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
24412 " with CRLF line terminators\n"
24413 "\n"
24414 msgstr ""
24415
24416 # type: textblock
24417 #: ../tools/virt-win-reg.pl:139
24418 msgid "This file would need conversion before you could C<--merge> it."
24419 msgstr ""
24420
24421 # type: textblock
24422 #: ../tools/virt-win-reg.pl:143
24423 msgid ""
24424 "Be careful when passing parameters containing C<\\> (backslash) in the "
24425 "shell.  Usually you will have to use 'single quotes' or double backslashes "
24426 "(but not both) to protect them from the shell."
24427 msgstr ""
24428
24429 # type: textblock
24430 #: ../tools/virt-win-reg.pl:147
24431 msgid "Paths and value names are case-insensitive."
24432 msgstr ""
24433
24434 # type: =head2
24435 #: ../tools/virt-win-reg.pl:149
24436 msgid "CurrentControlSet etc."
24437 msgstr ""
24438
24439 # type: textblock
24440 #: ../tools/virt-win-reg.pl:151
24441 msgid ""
24442 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
24443 "Registry at the level of the hive file, and therefore you cannot modify "
24444 "these."
24445 msgstr ""
24446
24447 # type: textblock
24448 #: ../tools/virt-win-reg.pl:155
24449 msgid ""
24450 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
24451 "circumstances it might refer to another control set.  The way to find out is "
24452 "to look at the C<HKLM\\SYSTEM\\Select> key:"
24453 msgstr ""
24454
24455 # type: verbatim
24456 #: ../tools/virt-win-reg.pl:159
24457 #, no-wrap
24458 msgid ""
24459 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
24460 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
24461 " \"Current\"=dword:00000001\n"
24462 " \"Default\"=dword:00000001\n"
24463 " \"Failed\"=dword:00000000\n"
24464 " \"LastKnownGood\"=dword:00000002\n"
24465 "\n"
24466 msgstr ""
24467
24468 # type: textblock
24469 #: ../tools/virt-win-reg.pl:166
24470 msgid "\"Default\" is the one which Windows will choose when it boots."
24471 msgstr ""
24472
24473 # type: textblock
24474 #: ../tools/virt-win-reg.pl:168
24475 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
24476 msgstr ""
24477
24478 # type: =item
24479 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
24480 msgid "B<--debug>"
24481 msgstr ""
24482
24483 # type: textblock
24484 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
24485 msgid "Enable debugging messages."
24486 msgstr ""
24487
24488 # type: =item
24489 #: ../tools/virt-win-reg.pl:232
24490 msgid "B<--merge>"
24491 msgstr ""
24492
24493 # type: textblock
24494 #: ../tools/virt-win-reg.pl:234
24495 msgid ""
24496 "In merge mode, this merges a textual regedit file into the Windows Registry "
24497 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
24498 "displays or exports Registry entries instead."
24499 msgstr ""
24500
24501 # type: textblock
24502 #: ../tools/virt-win-reg.pl:238
24503 msgid ""
24504 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
24505 "result in disk corruption.  However exporting (without this flag)  is always "
24506 "safe."
24507 msgstr ""
24508
24509 # type: =item
24510 #: ../tools/virt-win-reg.pl:246
24511 msgid "B<--encoding> UTF-16LE|ASCII"
24512 msgstr ""
24513
24514 # type: textblock
24515 #: ../tools/virt-win-reg.pl:248
24516 msgid ""
24517 "When merging (only), you may need to specify the encoding for strings to be "
24518 "used in the hive file.  This is explained in detail in "
24519 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
24520 msgstr ""
24521
24522 # type: textblock
24523 #: ../tools/virt-win-reg.pl:252
24524 msgid ""
24525 "The default is to use UTF-16LE, which should work with recent versions of "
24526 "Windows."
24527 msgstr ""
24528
24529 # type: textblock
24530 #: ../tools/virt-win-reg.pl:486
24531 msgid ""
24532 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
24533 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24534 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
24535 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24536 msgstr ""
24537
24538 # type: textblock
24539 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
24540 msgid ""
24541 "When reporting bugs, please enable debugging and capture the I<complete> "
24542 "output:"
24543 msgstr ""
24544
24545 # type: verbatim
24546 #: ../tools/virt-win-reg.pl:504
24547 #, no-wrap
24548 msgid ""
24549 " export LIBGUESTFS_DEBUG=1\n"
24550 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
24551 "\n"
24552 msgstr ""
24553
24554 # type: textblock
24555 #: ../tools/virt-win-reg.pl:507
24556 msgid ""
24557 "Attach /tmp/virt-win-reg.log to a new bug report at "
24558 "L<https://bugzilla.redhat.com/>"
24559 msgstr ""
24560
24561 # type: textblock
24562 #: ../tools/virt-df.pl:36
24563 msgid "virt-df - Display free space on virtual filesystems"
24564 msgstr ""
24565
24566 # type: verbatim
24567 #: ../tools/virt-df.pl:40
24568 #, no-wrap
24569 msgid ""
24570 " virt-df [--options]\n"
24571 "\n"
24572 msgstr ""
24573
24574 # type: verbatim
24575 #: ../tools/virt-df.pl:42
24576 #, no-wrap
24577 msgid ""
24578 " virt-df [--options] domname\n"
24579 "\n"
24580 msgstr ""
24581
24582 # type: verbatim
24583 #: ../tools/virt-df.pl:44
24584 #, no-wrap
24585 msgid ""
24586 " virt-df [--options] disk.img [disk.img ...]\n"
24587 "\n"
24588 msgstr ""
24589
24590 # type: textblock
24591 #: ../tools/virt-df.pl:48
24592 msgid ""
24593 "C<virt-df> is a command line tool to display free space on virtual machine "
24594 "filesystems.  Unlike other tools, it doesn't just display the amount of "
24595 "space allocated to a virtual machine, but can look inside the virtual "
24596 "machine to see how much space is really being used."
24597 msgstr ""
24598
24599 # type: textblock
24600 #: ../tools/virt-df.pl:53
24601 msgid ""
24602 "It is like the L<df(1)> command, but for virtual machines, except that it "
24603 "also works for Windows virtual machines."
24604 msgstr ""
24605
24606 # type: textblock
24607 #: ../tools/virt-df.pl:56
24608 msgid ""
24609 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
24610 "of all active and inactive guests, and performs a C<df>-type operation on "
24611 "each one in turn, printing out the results."
24612 msgstr ""
24613
24614 # type: textblock
24615 #: ../tools/virt-df.pl:60
24616 msgid ""
24617 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
24618 "either the single named libvirt domain, or on the disk image(s) listed on "
24619 "the command line (which must all belong to a single VM).  In this mode (with "
24620 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
24621 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
24622 msgstr ""
24623
24624 # type: textblock
24625 #: ../tools/virt-df.pl:67
24626 msgid ""
24627 "Use the C<--csv> option to get a format which can be easily parsed by other "
24628 "programs.  Other options are mostly similar to standard C<df> options.  See "
24629 "below for the complete list."
24630 msgstr ""
24631
24632 # type: =item
24633 #: ../tools/virt-df.pl:107
24634 msgid "B<--csv>"
24635 msgstr ""
24636
24637 # type: textblock
24638 #: ../tools/virt-df.pl:109
24639 msgid ""
24640 "Write out the results in CSV format (comma-separated values).  This format "
24641 "can be imported easily into databases and spreadsheets, but read L</NOTE "
24642 "ABOUT CSV FORMAT> below."
24643 msgstr ""
24644
24645 # type: =item
24646 #: ../tools/virt-df.pl:134
24647 msgid "B<--human-readable> | B<-h>"
24648 msgstr ""
24649
24650 # type: textblock
24651 #: ../tools/virt-df.pl:136
24652 msgid "Print sizes in human-readable format."
24653 msgstr ""
24654
24655 # type: textblock
24656 #: ../tools/virt-df.pl:138
24657 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
24658 msgstr ""
24659
24660 # type: =item
24661 #: ../tools/virt-df.pl:144
24662 msgid "B<--inodes> | B<-i>"
24663 msgstr ""
24664
24665 # type: textblock
24666 #: ../tools/virt-df.pl:146
24667 msgid "Print inodes instead of blocks."
24668 msgstr ""
24669
24670 # type: =item
24671 #: ../tools/virt-df.pl:152
24672 msgid "B<--one-per-guest>"
24673 msgstr ""
24674
24675 # type: textblock
24676 #: ../tools/virt-df.pl:154
24677 msgid ""
24678 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
24679 "disks from several guests to a single libguestfs appliance."
24680 msgstr ""
24681
24682 # type: textblock
24683 #: ../tools/virt-df.pl:157
24684 msgid "You might use this option in the following circumstances:"
24685 msgstr ""
24686
24687 # type: textblock
24688 #: ../tools/virt-df.pl:163
24689 msgid ""
24690 "If you think an untrusted guest might actively try to exploit the libguestfs "
24691 "appliance kernel, then this prevents one guest from interfering with the "
24692 "stats printed for another guest."
24693 msgstr ""
24694
24695 # type: textblock
24696 #: ../tools/virt-df.pl:169
24697 msgid ""
24698 "If the kernel has a bug which stops it from accessing a filesystem in one "
24699 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
24700 "and report stats for further guests."
24701 msgstr ""
24702
24703 # type: =item
24704 #: ../tools/virt-df.pl:180
24705 msgid "B<--uuid>"
24706 msgstr ""
24707
24708 # type: textblock
24709 #: ../tools/virt-df.pl:182
24710 msgid ""
24711 "Print UUIDs instead of names.  This is useful for following a guest even "
24712 "when the guest is migrated or renamed, or when two guests happen to have the "
24713 "same name."
24714 msgstr ""
24715
24716 # type: textblock
24717 #: ../tools/virt-df.pl:186
24718 msgid ""
24719 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
24720 "images, we still print the disk image name even when this option is "
24721 "specified."
24722 msgstr ""
24723
24724 # type: =head1
24725 #: ../tools/virt-df.pl:609
24726 msgid "NOTE ABOUT CSV FORMAT"
24727 msgstr ""
24728
24729 # type: textblock
24730 #: ../tools/virt-df.pl:611
24731 msgid ""
24732 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
24733 "should be easy to parse, but it is definitely not easy to parse."
24734 msgstr ""
24735
24736 # type: textblock
24737 #: ../tools/virt-df.pl:614
24738 msgid ""
24739 "Myth: Just split fields at commas.  Reality: This does I<not> work "
24740 "reliably.  This example has two columns:"
24741 msgstr ""
24742
24743 # type: verbatim
24744 #: ../tools/virt-df.pl:617
24745 #, no-wrap
24746 msgid ""
24747 " \"foo,bar\",baz\n"
24748 "\n"
24749 msgstr ""
24750
24751 # type: textblock
24752 #: ../tools/virt-df.pl:619
24753 msgid ""
24754 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
24755 "reliably.  This example has one row:"
24756 msgstr ""
24757
24758 # type: verbatim
24759 #: ../tools/virt-df.pl:622
24760 #, no-wrap
24761 msgid ""
24762 " \"foo\n"
24763 " bar\",baz\n"
24764 "\n"
24765 msgstr ""
24766
24767 # type: textblock
24768 #: ../tools/virt-df.pl:625
24769 msgid ""
24770 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
24771 "packaged in major Linux distributions)."
24772 msgstr ""
24773
24774 # type: textblock
24775 #: ../tools/virt-df.pl:628
24776 msgid ""
24777 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
24778 "or Python's built-in csv library)."
24779 msgstr ""
24780
24781 # type: textblock
24782 #: ../tools/virt-df.pl:631
24783 msgid "Most spreadsheets and databases can import CSV directly."
24784 msgstr ""
24785
24786 # type: textblock
24787 #: ../tools/virt-ls.pl:34
24788 msgid "virt-ls - List files in a virtual machine"
24789 msgstr ""
24790
24791 # type: verbatim
24792 #: ../tools/virt-ls.pl:38
24793 #, no-wrap
24794 msgid ""
24795 " virt-ls [--options] domname directory\n"
24796 "\n"
24797 msgstr ""
24798
24799 # type: verbatim
24800 #: ../tools/virt-ls.pl:40
24801 #, no-wrap
24802 msgid ""
24803 " virt-ls [--options] disk.img [disk.img ...] directory\n"
24804 "\n"
24805 msgstr ""
24806
24807 # type: textblock
24808 #: ../tools/virt-ls.pl:44
24809 msgid ""
24810 "C<virt-ls> is a command line tool to list the names of files in a directory "
24811 "inside a virtual machine or disk image."
24812 msgstr ""
24813
24814 # type: textblock
24815 #: ../tools/virt-ls.pl:47
24816 msgid ""
24817 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
24818 "For more complex cases you should look at the L<guestfish(1)> tool."
24819 msgstr ""
24820
24821 # type: textblock
24822 #: ../tools/virt-ls.pl:51
24823 msgid ""
24824 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
24825 "simple listing is like the ordinary L<ls(1)> command:"
24826 msgstr ""
24827
24828 # type: verbatim
24829 #: ../tools/virt-ls.pl:54
24830 #, no-wrap
24831 msgid ""
24832 " $ virt-ls myguest /\n"
24833 " bin\n"
24834 " boot\n"
24835 " [etc.]\n"
24836 "\n"
24837 msgstr ""
24838
24839 # type: textblock
24840 #: ../tools/virt-ls.pl:59
24841 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
24842 msgstr ""
24843
24844 # type: verbatim
24845 #: ../tools/virt-ls.pl:61
24846 #, no-wrap
24847 msgid ""
24848 " $ virt-ls -l myguest /\n"
24849 " total 204\n"
24850 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
24851 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
24852 " [etc.]\n"
24853 "\n"
24854 msgstr ""
24855
24856 # type: textblock
24857 #: ../tools/virt-ls.pl:67
24858 msgid ""
24859 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
24860 "and directories recursively:"
24861 msgstr ""
24862
24863 # type: verbatim
24864 #: ../tools/virt-ls.pl:70
24865 #, no-wrap
24866 msgid ""
24867 " $ virt-ls -R myguest /tmp\n"
24868 " foo\n"
24869 " foo/bar\n"
24870 " [etc.]\n"
24871 "\n"
24872 msgstr ""
24873
24874 # type: textblock
24875 #: ../tools/virt-ls.pl:75
24876 msgid ""
24877 "You I<cannot> combine these options.  To do more complicated things, use "
24878 "L<guestfish(1)>."
24879 msgstr ""
24880
24881 # type: =item
24882 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103 ../tools/virt-list-partitions.pl:112
24883 msgid "B<-l> | B<--long>"
24884 msgstr ""
24885
24886 # type: =item
24887 #: ../tools/virt-ls.pl:133
24888 msgid "B<-R> | B<--recursive>"
24889 msgstr ""
24890
24891 # type: textblock
24892 #: ../tools/virt-ls.pl:135
24893 msgid ""
24894 "Select the mode.  With neither of these options, C<virt-ls> produces a "
24895 "simple, flat list of the files in the named directory."
24896 msgstr ""
24897
24898 # type: textblock
24899 #: ../tools/virt-ls.pl:138
24900 msgid ""
24901 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
24902 "like the plain C<ls -l> command)."
24903 msgstr ""
24904
24905 # type: textblock
24906 #: ../tools/virt-ls.pl:141
24907 msgid ""
24908 "C<virt-ls -R> produces a recursive list of files starting at the named "
24909 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
24910 "details."
24911 msgstr ""
24912
24913 # type: textblock
24914 #: ../tools/virt-ls.pl:145
24915 msgid "You cannot combine these options."
24916 msgstr ""
24917
24918 # type: textblock
24919 #: ../tools/virt-ls.pl:234
24920 msgid ""
24921 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
24922 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
24923 "L<http://libguestfs.org/>."
24924 msgstr ""
24925
24926 # type: textblock
24927 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204 ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
24928 msgid "Copyright (C) 2009 Red Hat Inc."
24929 msgstr ""
24930
24931 # type: textblock
24932 #: ../tools/virt-resize.pl:42
24933 msgid "virt-resize - Resize a virtual machine disk"
24934 msgstr ""
24935
24936 # type: verbatim
24937 #: ../tools/virt-resize.pl:46
24938 #, no-wrap
24939 msgid ""
24940 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24941 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24942 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24943 "\n"
24944 msgstr ""
24945
24946 # type: textblock
24947 #: ../tools/virt-resize.pl:52
24948 msgid ""
24949 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24950 "larger or smaller overall, and resizing or deleting any partitions contained "
24951 "within."
24952 msgstr ""
24953
24954 # type: textblock
24955 #: ../tools/virt-resize.pl:56
24956 msgid ""
24957 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24958 "not> be used on live virtual machines - for consistent results, shut the "
24959 "virtual machine down before resizing it."
24960 msgstr ""
24961
24962 # type: textblock
24963 #: ../tools/virt-resize.pl:60
24964 msgid ""
24965 "If you are not familiar with the associated tools: "
24966 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
24967 "we recommend you go and read those manual pages first."
24968 msgstr ""
24969
24970 # type: textblock
24971 #: ../tools/virt-resize.pl:68
24972 msgid ""
24973 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24974 "fill the extra 5GB of space."
24975 msgstr ""
24976
24977 # type: verbatim
24978 #: ../tools/virt-resize.pl:71
24979 #, no-wrap
24980 msgid ""
24981 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
24982 " virt-list-partitions -lht olddisk\n"
24983 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24984 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24985 "\n"
24986 msgstr ""
24987
24988 # type: textblock
24989 #: ../tools/virt-resize.pl:76
24990 msgid ""
24991 "As above, but make the /boot partition 200MB bigger, while giving the "
24992 "remaining space to /dev/sda2:"
24993 msgstr ""
24994
24995 # type: verbatim
24996 #: ../tools/virt-resize.pl:79
24997 #, no-wrap
24998 msgid ""
24999 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
25000 "\n"
25001 msgstr ""
25002
25003 # type: textblock
25004 #: ../tools/virt-resize.pl:81
25005 msgid "As above, but the output format will be uncompressed qcow2:"
25006 msgstr ""
25007
25008 # type: verbatim
25009 #: ../tools/virt-resize.pl:83
25010 #, no-wrap
25011 msgid ""
25012 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25013 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25014 "\n"
25015 msgstr ""
25016
25017 # type: =head1
25018 #: ../tools/virt-resize.pl:86
25019 msgid "DETAILED USAGE"
25020 msgstr ""
25021
25022 # type: =head2
25023 #: ../tools/virt-resize.pl:88
25024 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25025 msgstr ""
25026
25027 # type: =item
25028 #: ../tools/virt-resize.pl:92
25029 msgid "1. Shut down the virtual machine"
25030 msgstr ""
25031
25032 # type: =item
25033 #: ../tools/virt-resize.pl:94
25034 msgid "2. Locate input disk image"
25035 msgstr ""
25036
25037 # type: textblock
25038 #: ../tools/virt-resize.pl:96
25039 msgid ""
25040 "Locate the input disk image (ie. the file or device on the host containing "
25041 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25042 "dumpxml> like this to find the disk image name:"
25043 msgstr ""
25044
25045 # type: verbatim
25046 #: ../tools/virt-resize.pl:100
25047 #, no-wrap
25048 msgid ""
25049 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25050 " Found 1 nodes:\n"
25051 " -- NODE --\n"
25052 " <source dev=\"/dev/vg/lv_guest\" />\n"
25053 "\n"
25054 msgstr ""
25055
25056 # type: =item
25057 #: ../tools/virt-resize.pl:105
25058 msgid "3. Look at current sizing"
25059 msgstr ""
25060
25061 # type: textblock
25062 #: ../tools/virt-resize.pl:107
25063 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
25064 msgstr ""
25065
25066 # type: verbatim
25067 #: ../tools/virt-resize.pl:110
25068 #, no-wrap
25069 msgid ""
25070 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
25071 " /dev/sda1 ext3 101.9M\n"
25072 " /dev/sda2 pv 7.9G\n"
25073 " /dev/sda device 8.0G\n"
25074 "\n"
25075 msgstr ""
25076
25077 # type: textblock
25078 #: ../tools/virt-resize.pl:115
25079 msgid ""
25080 "(This example is a virtual machine with an 8 GB disk which we would like to "
25081 "expand up to 10 GB)."
25082 msgstr ""
25083
25084 # type: =item
25085 #: ../tools/virt-resize.pl:118
25086 msgid "4. Create output disk"
25087 msgstr ""
25088
25089 # type: textblock
25090 #: ../tools/virt-resize.pl:120
25091 msgid ""
25092 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25093 "to store the resized output disk."
25094 msgstr ""
25095
25096 # type: textblock
25097 #: ../tools/virt-resize.pl:123
25098 msgid "To store the resized disk image in a file, create a file of a suitable size:"
25099 msgstr ""
25100
25101 # type: verbatim
25102 #: ../tools/virt-resize.pl:126
25103 #, no-wrap
25104 msgid ""
25105 " # rm -f outdisk\n"
25106 " # truncate -s 10G outdisk\n"
25107 "\n"
25108 msgstr ""
25109
25110 # type: textblock
25111 #: ../tools/virt-resize.pl:129
25112 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25113 msgstr ""
25114
25115 # type: verbatim
25116 #: ../tools/virt-resize.pl:131
25117 #, no-wrap
25118 msgid ""
25119 " # lvcreate -L 10G -n lv_name vg_name\n"
25120 "\n"
25121 msgstr ""
25122
25123 # type: textblock
25124 #: ../tools/virt-resize.pl:133
25125 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25126 msgstr ""
25127
25128 # type: verbatim
25129 #: ../tools/virt-resize.pl:135
25130 #, no-wrap
25131 msgid ""
25132 " # virsh pool-list\n"
25133 " # virsh vol-create-as poolname newvol 10G\n"
25134 "\n"
25135 msgstr ""
25136
25137 # type: =item
25138 #: ../tools/virt-resize.pl:138
25139 msgid "5. Resize"
25140 msgstr ""
25141
25142 # type: textblock
25143 #: ../tools/virt-resize.pl:140
25144 msgid ""
25145 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25146 "file) and the output disk.  The output disk is the one created in the "
25147 "previous step."
25148 msgstr ""
25149
25150 # type: verbatim
25151 #: ../tools/virt-resize.pl:144
25152 #, no-wrap
25153 msgid ""
25154 " # virt-resize indisk outdisk\n"
25155 "\n"
25156 msgstr ""
25157
25158 # type: textblock
25159 #: ../tools/virt-resize.pl:146
25160 msgid ""
25161 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25162 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25163 "larger, then an extra, empty partition is created at the end of the disk "
25164 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25165 "error."
25166 msgstr ""
25167
25168 # type: textblock
25169 #: ../tools/virt-resize.pl:152
25170 msgid ""
25171 "More realistically you'd want to expand existing partitions in the disk "
25172 "image by passing extra options (for the full list see the L</OPTIONS> "
25173 "section below)."
25174 msgstr ""
25175
25176 # type: textblock
25177 #: ../tools/virt-resize.pl:156
25178 msgid ""
25179 "L</--expand> is the most useful option.  It expands the named partition "
25180 "within the disk to fill any extra space:"
25181 msgstr ""
25182
25183 # type: verbatim
25184 #: ../tools/virt-resize.pl:159
25185 #, no-wrap
25186 msgid ""
25187 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25188 "\n"
25189 msgstr ""
25190
25191 # type: textblock
25192 #: ../tools/virt-resize.pl:161
25193 msgid ""
25194 "(In this case, an extra partition is I<not> created at the end of the disk, "
25195 "because there will be no unused space)."
25196 msgstr ""
25197
25198 # type: textblock
25199 #: ../tools/virt-resize.pl:164
25200 msgid ""
25201 "L</--resize> is the other commonly used option.  The following would "
25202 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25203 "rest of the available space:"
25204 msgstr ""
25205
25206 # type: verbatim
25207 #: ../tools/virt-resize.pl:168
25208 #, no-wrap
25209 msgid ""
25210 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25211 "     indisk outdisk\n"
25212 "\n"
25213 msgstr ""
25214
25215 # type: textblock
25216 #: ../tools/virt-resize.pl:171
25217 msgid ""
25218 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25219 "if virt-resize knows how, it will resize the contents, the equivalent of "
25220 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
25221 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
25222 "filesystems, so you would have to online resize them after booting the "
25223 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
25224 "just resizes the PV itself and leaves the user to resize any LVs inside that "
25225 "PV as desired."
25226 msgstr ""
25227
25228 # type: textblock
25229 #: ../tools/virt-resize.pl:180
25230 msgid "Other options are covered below."
25231 msgstr ""
25232
25233 # type: =item
25234 #: ../tools/virt-resize.pl:182
25235 msgid "6. Test"
25236 msgstr ""
25237
25238 # type: textblock
25239 #: ../tools/virt-resize.pl:184
25240 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25241 msgstr ""
25242
25243 # type: textblock
25244 #: ../tools/virt-resize.pl:186
25245 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25246 msgstr ""
25247
25248 # type: verbatim
25249 #: ../tools/virt-resize.pl:188
25250 #, no-wrap
25251 msgid ""
25252 " # virsh edit guestname\n"
25253 "\n"
25254 msgstr ""
25255
25256 # type: textblock
25257 #: ../tools/virt-resize.pl:190
25258 msgid ""
25259 "Change E<lt>source ...E<gt>, see "
25260 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
25261 msgstr ""
25262
25263 # type: textblock
25264 #: ../tools/virt-resize.pl:193
25265 msgid "Then start up the domain with the new, resized disk:"
25266 msgstr ""
25267
25268 # type: verbatim
25269 #: ../tools/virt-resize.pl:195
25270 #, no-wrap
25271 msgid ""
25272 " # virsh start guestname\n"
25273 "\n"
25274 msgstr ""
25275
25276 # type: textblock
25277 #: ../tools/virt-resize.pl:197
25278 msgid ""
25279 "and check that it still works.  See also the L</NOTES> section below for "
25280 "additional information."
25281 msgstr ""
25282
25283 # type: =item
25284 #: ../tools/virt-resize.pl:200
25285 msgid "7. Resize LVs etc inside the guest"
25286 msgstr ""
25287
25288 # type: textblock
25289 #: ../tools/virt-resize.pl:202
25290 msgid "(This can also be done offline using L<guestfish(1)>)"
25291 msgstr ""
25292
25293 # type: textblock
25294 #: ../tools/virt-resize.pl:204
25295 msgid ""
25296 "Once the guest has booted you should see the new space available, at least "
25297 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25298 "may need to resize LVs inside PVs, and also resize filesystem types that "
25299 "virt-resize does not know how to expand."
25300 msgstr ""
25301
25302 # type: =head2
25303 #: ../tools/virt-resize.pl:211
25304 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25305 msgstr ""
25306
25307 # type: textblock
25308 #: ../tools/virt-resize.pl:213
25309 msgid ""
25310 "Shrinking is somewhat more complex than expanding, and only an overview is "
25311 "given here."
25312 msgstr ""
25313
25314 # type: textblock
25315 #: ../tools/virt-resize.pl:216
25316 msgid ""
25317 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25318 "filesystems).  The user has to shrink content before passing the disk image "
25319 "to virt-resize, and virt-resize will check that the content has been shrunk "
25320 "properly."
25321 msgstr ""
25322
25323 # type: textblock
25324 #: ../tools/virt-resize.pl:221
25325 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25326 msgstr ""
25327
25328 # type: textblock
25329 #: ../tools/virt-resize.pl:223
25330 msgid ""
25331 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25332 "steps 3 and 4 above to allocate a new disk image."
25333 msgstr ""
25334
25335 # type: textblock
25336 #: ../tools/virt-resize.pl:226
25337 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
25338 msgstr ""
25339
25340 # type: =head2
25341 #: ../tools/virt-resize.pl:229
25342 msgid "IGNORING OR DELETING PARTITIONS"
25343 msgstr ""
25344
25345 # type: textblock
25346 #: ../tools/virt-resize.pl:231
25347 msgid ""
25348 "virt-resize also gives a convenient way to ignore or delete partitions when "
25349 "copying from the input disk to the output disk.  Ignoring a partition speeds "
25350 "up the copy where you don't care about the existing contents of a "
25351 "partition.  Deleting a partition removes it completely, but note that it "
25352 "also renumbers any partitions after the one which is deleted, which can "
25353 "leave some guests unbootable."
25354 msgstr ""
25355
25356 # type: =head2
25357 #: ../tools/virt-resize.pl:238
25358 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
25359 msgstr ""
25360
25361 # type: textblock
25362 #: ../tools/virt-resize.pl:240
25363 msgid ""
25364 "If the input disk is in qcow2 format, then you may prefer that the output is "
25365 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
25366 "the fly.  The output format is simply determined by the format of the empty "
25367 "output container that you provide.  Thus to create qcow2 output, use:"
25368 msgstr ""
25369
25370 # type: verbatim
25371 #: ../tools/virt-resize.pl:246
25372 #, no-wrap
25373 msgid ""
25374 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
25375 "\n"
25376 msgstr ""
25377
25378 # type: textblock
25379 #: ../tools/virt-resize.pl:248
25380 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
25381 msgstr ""
25382
25383 # type: textblock
25384 #: ../tools/virt-resize.pl:250
25385 msgid "Similarly, to get non-sparse raw output use:"
25386 msgstr ""
25387
25388 # type: verbatim
25389 #: ../tools/virt-resize.pl:252
25390 #, no-wrap
25391 msgid ""
25392 " fallocate -l size outdisk\n"
25393 "\n"
25394 msgstr ""
25395
25396 # type: textblock
25397 #: ../tools/virt-resize.pl:254
25398 msgid ""
25399 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
25400 "if=/dev/zero of=outdisk bs=1M count=..>)"
25401 msgstr ""
25402
25403 # type: textblock
25404 #: ../tools/virt-resize.pl:267
25405 msgid "Display help."
25406 msgstr ""
25407
25408 # type: =item
25409 #: ../tools/virt-resize.pl:281
25410 msgid "B<--resize part=size>"
25411 msgstr ""
25412
25413 # type: textblock
25414 #: ../tools/virt-resize.pl:283
25415 msgid ""
25416 "Resize the named partition (expanding or shrinking it) so that it has the "
25417 "given size."
25418 msgstr ""
25419
25420 # type: textblock
25421 #: ../tools/virt-resize.pl:286
25422 msgid ""
25423 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
25424 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
25425 "Exabytes; or as a percentage of the current size; or as a relative number or "
25426 "percentage.  For example:"
25427 msgstr ""
25428
25429 # type: verbatim
25430 #: ../tools/virt-resize.pl:291
25431 #, no-wrap
25432 msgid ""
25433 " --resize /dev/sda2=10G\n"
25434 "\n"
25435 msgstr ""
25436
25437 # type: verbatim
25438 #: ../tools/virt-resize.pl:293
25439 #, no-wrap
25440 msgid ""
25441 " --resize /dev/sda4=90%\n"
25442 "\n"
25443 msgstr ""
25444
25445 # type: verbatim
25446 #: ../tools/virt-resize.pl:295
25447 #, no-wrap
25448 msgid ""
25449 " --resize /dev/sda2=+1G\n"
25450 "\n"
25451 msgstr ""
25452
25453 # type: verbatim
25454 #: ../tools/virt-resize.pl:297
25455 #, no-wrap
25456 msgid ""
25457 " --resize /dev/sda2=-200M\n"
25458 "\n"
25459 msgstr ""
25460
25461 # type: verbatim
25462 #: ../tools/virt-resize.pl:299
25463 #, no-wrap
25464 msgid ""
25465 " --resize /dev/sda1=+128K\n"
25466 "\n"
25467 msgstr ""
25468
25469 # type: verbatim
25470 #: ../tools/virt-resize.pl:301
25471 #, no-wrap
25472 msgid ""
25473 " --resize /dev/sda1=+10%\n"
25474 "\n"
25475 msgstr ""
25476
25477 # type: verbatim
25478 #: ../tools/virt-resize.pl:303
25479 #, no-wrap
25480 msgid ""
25481 " --resize /dev/sda1=-10%\n"
25482 "\n"
25483 msgstr ""
25484
25485 # type: textblock
25486 #: ../tools/virt-resize.pl:305
25487 msgid ""
25488 "You can increase the size of any partition.  Virt-resize will expand the "
25489 "direct content of the partition if it knows how (see C<--expand> below)."
25490 msgstr ""
25491
25492 # type: textblock
25493 #: ../tools/virt-resize.pl:309
25494 msgid ""
25495 "You can only I<decrease> the size of partitions that contain filesystems or "
25496 "PVs which have already been shrunk.  Virt-resize will check this has been "
25497 "done before proceeding, or else will print an error (see also "
25498 "C<--resize-force>)."
25499 msgstr ""
25500
25501 # type: textblock
25502 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
25503 msgid "You can give this option multiple times."
25504 msgstr ""
25505
25506 # type: =item
25507 #: ../tools/virt-resize.pl:320
25508 msgid "B<--resize-force part=size>"
25509 msgstr ""
25510
25511 # type: textblock
25512 #: ../tools/virt-resize.pl:322
25513 msgid ""
25514 "This is the same as C<--resize> except that it will let you decrease the "
25515 "size of any partition.  Generally this means you will lose any data which "
25516 "was at the end of the partition you shrink, but you may not care about that "
25517 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25518 "as a swap partition)."
25519 msgstr ""
25520
25521 # type: textblock
25522 #: ../tools/virt-resize.pl:328
25523 msgid "See also the C<--ignore> option."
25524 msgstr ""
25525
25526 # type: =item
25527 #: ../tools/virt-resize.pl:334
25528 msgid "B<--expand part>"
25529 msgstr ""
25530
25531 # type: textblock
25532 #: ../tools/virt-resize.pl:336
25533 msgid ""
25534 "Expand the named partition so it uses up all extra space (space left over "
25535 "after any other resize changes that you request have been done)."
25536 msgstr ""
25537
25538 # type: textblock
25539 #: ../tools/virt-resize.pl:339
25540 msgid ""
25541 "If virt-resize knows how, it will expand the direct content of the "
25542 "partition.  For example, if the partition is an LVM PV, it will expand the "
25543 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25544 "content it doesn't know about alone."
25545 msgstr ""
25546
25547 # type: textblock
25548 #: ../tools/virt-resize.pl:344
25549 msgid "Currently virt-resize can resize:"
25550 msgstr ""
25551
25552 # type: textblock
25553 #: ../tools/virt-resize.pl:350
25554 msgid ""
25555 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
25556 "partition."
25557 msgstr ""
25558
25559 # type: textblock
25560 #: ../tools/virt-resize.pl:355
25561 msgid ""
25562 "NTFS filesystems contained directly in a partition, if libguestfs was "
25563 "compiled with support for NTFS."
25564 msgstr ""
25565
25566 # type: textblock
25567 #: ../tools/virt-resize.pl:358
25568 msgid ""
25569 "The filesystem must have been shut down consistently last time it was used.  "
25570 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25571 "consistency check, so at the first boot after resizing Windows will check "
25572 "the disk."
25573 msgstr ""
25574
25575 # type: textblock
25576 #: ../tools/virt-resize.pl:365
25577 msgid ""
25578 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
25579 "inside the PV.  The user will have to resize LVs as desired."
25580 msgstr ""
25581
25582 # type: textblock
25583 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
25584 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
25585 msgstr ""
25586
25587 # type: =item
25588 #: ../tools/virt-resize.pl:377
25589 msgid "B<--shrink part>"
25590 msgstr ""
25591
25592 # type: textblock
25593 #: ../tools/virt-resize.pl:379
25594 msgid ""
25595 "Shrink the named partition until the overall disk image fits in the "
25596 "destination.  The named partition B<must> contain a filesystem or PV which "
25597 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25598 "online tools).  Virt-resize will check this and give an error if it has not "
25599 "been done."
25600 msgstr ""
25601
25602 # type: textblock
25603 #: ../tools/virt-resize.pl:385
25604 msgid ""
25605 "The amount by which the overall disk must be shrunk (after carrying out all "
25606 "other operations requested by the user) is called the \"deficit\".  For "
25607 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25608 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25609 "would give an error unless the user specified a partition to shrink and that "
25610 "partition had more than a gigabyte of free space."
25611 msgstr ""
25612
25613 # type: =item
25614 #: ../tools/virt-resize.pl:399
25615 msgid "B<--ignore part>"
25616 msgstr ""
25617
25618 # type: textblock
25619 #: ../tools/virt-resize.pl:401
25620 msgid ""
25621 "Ignore the named partition.  Effectively this means the partition is "
25622 "allocated on the destination disk, but the content is not copied across from "
25623 "the source disk.  The content of the partition will be blank (all zero "
25624 "bytes)."
25625 msgstr ""
25626
25627 # type: =item
25628 #: ../tools/virt-resize.pl:412
25629 msgid "B<--delete part>"
25630 msgstr ""
25631
25632 # type: textblock
25633 #: ../tools/virt-resize.pl:414
25634 msgid ""
25635 "Delete the named partition.  It would be more accurate to describe this as "
25636 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25637 "the original disk image is left intact."
25638 msgstr ""
25639
25640 # type: textblock
25641 #: ../tools/virt-resize.pl:418
25642 msgid ""
25643 "Note that when you delete a partition, then anything contained in the "
25644 "partition is also deleted.  Furthermore, this causes any partitions that "
25645 "come after to be I<renumbered>, which can easily make your guest unbootable."
25646 msgstr ""
25647
25648 # type: =item
25649 #: ../tools/virt-resize.pl:429
25650 msgid "B<--LV-expand logvol>"
25651 msgstr ""
25652
25653 # type: textblock
25654 #: ../tools/virt-resize.pl:431
25655 msgid ""
25656 "This takes the logical volume and, as a final step, expands it to fill all "
25657 "the space available in its volume group.  A typical usage, assuming a Linux "
25658 "guest with a single PV C</dev/sda2> and a root device called "
25659 "C</dev/vg_guest/lv_root> would be:"
25660 msgstr ""
25661
25662 # type: verbatim
25663 #: ../tools/virt-resize.pl:436
25664 #, no-wrap
25665 msgid ""
25666 " virt-resize indisk outdisk \\\n"
25667 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25668 "\n"
25669 msgstr ""
25670
25671 # type: textblock
25672 #: ../tools/virt-resize.pl:439
25673 msgid ""
25674 "This would first expand the partition (and PV), and then expand the root "
25675 "device to fill the extra space in the PV."
25676 msgstr ""
25677
25678 # type: textblock
25679 #: ../tools/virt-resize.pl:442
25680 msgid ""
25681 "The contents of the LV are also resized if virt-resize knows how to do "
25682 "that.  You can stop virt-resize from trying to expand the content by using "
25683 "the option C<--no-expand-content>."
25684 msgstr ""
25685
25686 # type: textblock
25687 #: ../tools/virt-resize.pl:446
25688 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
25689 msgstr ""
25690
25691 # type: textblock
25692 #: ../tools/virt-resize.pl:449
25693 msgid ""
25694 "You can give this option multiple times, I<but> it doesn't make sense to do "
25695 "this unless the logical volumes you specify are all in different volume "
25696 "groups."
25697 msgstr ""
25698
25699 # type: =item
25700 #: ../tools/virt-resize.pl:457
25701 msgid "B<--no-copy-boot-loader>"
25702 msgstr ""
25703
25704 # type: textblock
25705 #: ../tools/virt-resize.pl:459
25706 msgid ""
25707 "By default, virt-resize copies over some sectors at the start of the disk "
25708 "(up to the beginning of the first partition).  Commonly these sectors "
25709 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25710 "in order for the guest to boot correctly."
25711 msgstr ""
25712
25713 # type: textblock
25714 #: ../tools/virt-resize.pl:464
25715 msgid ""
25716 "If you specify this flag, then this initial copy is not done.  You may need "
25717 "to reinstall the boot loader in this case."
25718 msgstr ""
25719
25720 # type: =item
25721 #: ../tools/virt-resize.pl:472
25722 msgid "B<--no-extra-partition>"
25723 msgstr ""
25724
25725 # type: textblock
25726 #: ../tools/virt-resize.pl:474
25727 msgid ""
25728 "By default, virt-resize creates an extra partition if there is any extra, "
25729 "unused space after all resizing has happened.  Use this option to prevent "
25730 "the extra partition from being created.  If you do this then the extra space "
25731 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25732 "tool in the guest."
25733 msgstr ""
25734
25735 # type: textblock
25736 #: ../tools/virt-resize.pl:480
25737 msgid ""
25738 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25739 "will be created."
25740 msgstr ""
25741
25742 # type: =item
25743 #: ../tools/virt-resize.pl:487
25744 msgid "B<--no-expand-content>"
25745 msgstr ""
25746
25747 # type: textblock
25748 #: ../tools/virt-resize.pl:489
25749 msgid ""
25750 "By default, virt-resize will try to expand the direct contents of "
25751 "partitions, if it knows how (see C<--expand> option above)."
25752 msgstr ""
25753
25754 # type: textblock
25755 #: ../tools/virt-resize.pl:492
25756 msgid ""
25757 "If you give the C<--no-expand-content> option then virt-resize will not "
25758 "attempt this."
25759 msgstr ""
25760
25761 # type: =item
25762 #: ../tools/virt-resize.pl:499
25763 msgid "B<-d> | B<--debug>"
25764 msgstr ""
25765
25766 # type: =item
25767 #: ../tools/virt-resize.pl:507
25768 msgid "B<-n> | B<--dryrun>"
25769 msgstr ""
25770
25771 # type: textblock
25772 #: ../tools/virt-resize.pl:509
25773 msgid "Print a summary of what would be done, but don't do anything."
25774 msgstr ""
25775
25776 # type: =item
25777 #: ../tools/virt-resize.pl:515
25778 msgid "B<-q> | B<--quiet>"
25779 msgstr ""
25780
25781 # type: textblock
25782 #: ../tools/virt-resize.pl:517
25783 msgid "Don't print the summary."
25784 msgstr ""
25785
25786 # type: textblock
25787 #: ../tools/virt-resize.pl:525
25788 msgid ""
25789 "Specify the format of the input disk image.  If this flag is not given then "
25790 "it is auto-detected from the image itself."
25791 msgstr ""
25792
25793 # type: textblock
25794 #: ../tools/virt-resize.pl:531
25795 msgid ""
25796 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
25797 "AND NON-SPARSE RAW FORMATS>."
25798 msgstr ""
25799
25800 # type: =item
25801 #: ../tools/virt-resize.pl:538
25802 msgid "B<--output-format> raw"
25803 msgstr ""
25804
25805 # type: textblock
25806 #: ../tools/virt-resize.pl:540
25807 msgid ""
25808 "Specify the format of the output disk image.  If this flag is not given then "
25809 "it is auto-detected from the image itself."
25810 msgstr ""
25811
25812 # type: textblock
25813 #: ../tools/virt-resize.pl:546
25814 msgid ""
25815 "Note that you still need to create the output disk with the right format.  "
25816 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
25817 msgstr ""
25818
25819 # type: =head2
25820 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
25821 msgid "NOTES"
25822 msgstr ""
25823
25824 # type: =head2
25825 #: ../tools/virt-resize.pl:1424
25826 msgid "\"Partition 1 does not end on cylinder boundary.\""
25827 msgstr ""
25828
25829 # type: textblock
25830 #: ../tools/virt-resize.pl:1426
25831 msgid ""
25832 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
25833 "means the partitions will not be aligned to the ancient CHS geometry.  "
25834 "However CHS geometry is meaningless for disks manufactured since the early "
25835 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
25836 "cylinders is not required by any modern operating system."
25837 msgstr ""
25838
25839 # type: =head2
25840 #: ../tools/virt-resize.pl:1433
25841 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25842 msgstr ""
25843
25844 # type: textblock
25845 #: ../tools/virt-resize.pl:1435
25846 msgid ""
25847 "In Windows Vista and later versions, Microsoft switched to using a separate "
25848 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25849 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
25850 "the boot partition.  Doing so seems to break the guest completely.  However "
25851 "expanding the second partition (ie. C: drive) should work."
25852 msgstr ""
25853
25854 # type: textblock
25855 #: ../tools/virt-resize.pl:1442
25856 msgid ""
25857 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25858 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25859 "it find errors) is nothing to worry about."
25860 msgstr ""
25861
25862 # type: =head2
25863 #: ../tools/virt-resize.pl:1446
25864 msgid "GUEST BOOT STUCK AT \"GRUB\""
25865 msgstr ""
25866
25867 # type: textblock
25868 #: ../tools/virt-resize.pl:1448
25869 msgid ""
25870 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25871 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
25872 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
25873 "although we think is to do with partition alignment."
25874 msgstr ""
25875
25876 # type: verbatim
25877 #: ../tools/virt-resize.pl:1453
25878 #, no-wrap
25879 msgid ""
25880 " guestfish -i -a newdisk\n"
25881 " ><fs> cat /boot/grub/device.map\n"
25882 " # check the contents of this file are sensible or\n"
25883 " # edit the file if necessary\n"
25884 " ><fs> grub-install / /dev/vda\n"
25885 " ><fs> exit\n"
25886 "\n"
25887 msgstr ""
25888
25889 # type: textblock
25890 #: ../tools/virt-resize.pl:1460
25891 msgid ""
25892 "For more flexible guest reconfiguration, including if you need to specify "
25893 "other parameters to grub-install, use L<virt-rescue(1)>."
25894 msgstr ""
25895
25896 # type: =head1
25897 #: ../tools/virt-resize.pl:1463
25898 msgid "ALTERNATIVE TOOLS"
25899 msgstr ""
25900
25901 # type: textblock
25902 #: ../tools/virt-resize.pl:1465
25903 msgid ""
25904 "There are several proprietary tools for resizing partitions.  We won't "
25905 "mention any here."
25906 msgstr ""
25907
25908 # type: textblock
25909 #: ../tools/virt-resize.pl:1468
25910 msgid ""
25911 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25912 "operations on disk images.  They can resize and move partitions, but I don't "
25913 "think they can do anything with the contents, and they certainly don't "
25914 "understand LVM."
25915 msgstr ""
25916
25917 # type: textblock
25918 #: ../tools/virt-resize.pl:1473
25919 msgid ""
25920 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25921 "but at a much lower level.  You will probably end up hand-calculating sector "
25922 "offsets, which is something that virt-resize was designed to avoid.  If you "
25923 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25924 "C<--debug> flag."
25925 msgstr ""
25926
25927 # type: textblock
25928 #: ../tools/virt-resize.pl:1488
25929 msgid ""
25930 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
25931 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
25932 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
25933 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
25934 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
25935 msgstr ""
25936
25937 # type: textblock
25938 #: ../tools/virt-list-filesystems.pl:32
25939 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
25940 msgstr ""
25941
25942 # type: verbatim
25943 #: ../tools/virt-list-filesystems.pl:36
25944 #, no-wrap
25945 msgid ""
25946 " virt-list-filesystems [--options] domname\n"
25947 "\n"
25948 msgstr ""
25949
25950 # type: verbatim
25951 #: ../tools/virt-list-filesystems.pl:38
25952 #, no-wrap
25953 msgid ""
25954 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
25955 "\n"
25956 msgstr ""
25957
25958 # type: textblock
25959 #: ../tools/virt-list-filesystems.pl:42
25960 msgid ""
25961 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
25962 "are contained in a virtual machine or disk image."
25963 msgstr ""
25964
25965 # type: textblock
25966 #: ../tools/virt-list-filesystems.pl:46
25967 msgid ""
25968 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
25969 "functionality.  For more complex cases you should look at the "
25970 "L<guestfish(1)> tool."
25971 msgstr ""
25972
25973 # type: textblock
25974 #: ../tools/virt-list-filesystems.pl:105
25975 msgid ""
25976 "With this option, C<virt-list-filesystems> displays the type of each "
25977 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
25978 msgstr ""
25979
25980 # type: =item
25981 #: ../tools/virt-list-filesystems.pl:112
25982 msgid "B<-a> | B<--all>"
25983 msgstr ""
25984
25985 # type: textblock
25986 #: ../tools/virt-list-filesystems.pl:114
25987 msgid ""
25988 "Normally we only show mountable filesystems.  If this option is given then "
25989 "swap devices are shown too."
25990 msgstr ""
25991
25992 # type: textblock
25993 #: ../tools/virt-list-filesystems.pl:188
25994 msgid ""
25995 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
25996 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25997 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25998 msgstr ""
25999
26000 # type: textblock
26001 #: ../tools/virt-cat.pl:33
26002 msgid "virt-cat - Display a file in a virtual machine"
26003 msgstr ""
26004
26005 # type: verbatim
26006 #: ../tools/virt-cat.pl:37
26007 #, no-wrap
26008 msgid ""
26009 " virt-cat [--options] domname file\n"
26010 "\n"
26011 msgstr ""
26012
26013 # type: verbatim
26014 #: ../tools/virt-cat.pl:39
26015 #, no-wrap
26016 msgid ""
26017 " virt-cat [--options] disk.img [disk.img ...] file\n"
26018 "\n"
26019 msgstr ""
26020
26021 # type: textblock
26022 #: ../tools/virt-cat.pl:43
26023 msgid ""
26024 "C<virt-cat> is a command line tool to display the contents of C<file> where "
26025 "C<file> exists in the named virtual machine (or disk image)."
26026 msgstr ""
26027
26028 # type: textblock
26029 #: ../tools/virt-cat.pl:46
26030 msgid ""
26031 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
26032 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
26033 "tool."
26034 msgstr ""
26035
26036 # type: textblock
26037 #: ../tools/virt-cat.pl:52
26038 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
26039 msgstr ""
26040
26041 # type: verbatim
26042 #: ../tools/virt-cat.pl:55
26043 #, no-wrap
26044 msgid ""
26045 " virt-cat mydomain /etc/fstab\n"
26046 "\n"
26047 msgstr ""
26048
26049 # type: textblock
26050 #: ../tools/virt-cat.pl:57
26051 msgid "List syslog messages from a VM:"
26052 msgstr ""
26053
26054 # type: verbatim
26055 #: ../tools/virt-cat.pl:59
26056 #, no-wrap
26057 msgid ""
26058 " virt-cat mydomain /var/log/messages | tail\n"
26059 "\n"
26060 msgstr ""
26061
26062 # type: textblock
26063 #: ../tools/virt-cat.pl:61
26064 msgid "Find out what DHCP IP address a VM acquired:"
26065 msgstr ""
26066
26067 # type: verbatim
26068 #: ../tools/virt-cat.pl:63
26069 #, no-wrap
26070 msgid ""
26071 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
26072 "\n"
26073 msgstr ""
26074
26075 # type: textblock
26076 #: ../tools/virt-cat.pl:65
26077 msgid "Find out what packages were recently installed:"
26078 msgstr ""
26079
26080 # type: verbatim
26081 #: ../tools/virt-cat.pl:67
26082 #, no-wrap
26083 msgid ""
26084 " virt-cat mydomain /var/log/yum.log | tail\n"
26085 "\n"
26086 msgstr ""
26087
26088 # type: textblock
26089 #: ../tools/virt-cat.pl:69
26090 msgid "Find out who is logged on inside a virtual machine:"
26091 msgstr ""
26092
26093 # type: verbatim
26094 #: ../tools/virt-cat.pl:71
26095 #, no-wrap
26096 msgid ""
26097 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
26098 " who /tmp/utmp\n"
26099 "\n"
26100 msgstr ""
26101
26102 # type: textblock
26103 #: ../tools/virt-cat.pl:74
26104 msgid "or who was logged on:"
26105 msgstr ""
26106
26107 # type: verbatim
26108 #: ../tools/virt-cat.pl:76
26109 #, no-wrap
26110 msgid ""
26111 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
26112 " last -f /tmp/wtmp\n"
26113 "\n"
26114 msgstr ""
26115
26116 # type: textblock
26117 #: ../tools/virt-cat.pl:187
26118 msgid ""
26119 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
26120 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26121 msgstr ""
26122
26123 # type: textblock
26124 #: ../tools/virt-tar.pl:33
26125 msgid "virt-tar - Extract or upload files to a virtual machine"
26126 msgstr ""
26127
26128 # type: verbatim
26129 #: ../tools/virt-tar.pl:37
26130 #, no-wrap
26131 msgid ""
26132 " virt-tar [--options] -x domname directory tarball\n"
26133 "\n"
26134 msgstr ""
26135
26136 # type: verbatim
26137 #: ../tools/virt-tar.pl:39
26138 #, no-wrap
26139 msgid ""
26140 " virt-tar [--options] -u domname tarball directory\n"
26141 "\n"
26142 msgstr ""
26143
26144 # type: verbatim
26145 #: ../tools/virt-tar.pl:41
26146 #, no-wrap
26147 msgid ""
26148 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
26149 "\n"
26150 msgstr ""
26151
26152 # type: verbatim
26153 #: ../tools/virt-tar.pl:43
26154 #, no-wrap
26155 msgid ""
26156 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
26157 "\n"
26158 msgstr ""
26159
26160 # type: textblock
26161 #: ../tools/virt-tar.pl:47
26162 msgid "Download C</home> from the VM into a local tarball:"
26163 msgstr ""
26164
26165 # type: verbatim
26166 #: ../tools/virt-tar.pl:49
26167 #, no-wrap
26168 msgid ""
26169 " virt-tar -x domname /home home.tar\n"
26170 "\n"
26171 msgstr ""
26172
26173 # type: verbatim
26174 #: ../tools/virt-tar.pl:51
26175 #, no-wrap
26176 msgid ""
26177 " virt-tar -zx domname /home home.tar.gz\n"
26178 "\n"
26179 msgstr ""
26180
26181 # type: textblock
26182 #: ../tools/virt-tar.pl:53
26183 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
26184 msgstr ""
26185
26186 # type: verbatim
26187 #: ../tools/virt-tar.pl:55
26188 #, no-wrap
26189 msgid ""
26190 " virt-tar -u domname uploadstuff.tar /tmp\n"
26191 "\n"
26192 msgstr ""
26193
26194 # type: verbatim
26195 #: ../tools/virt-tar.pl:57
26196 #, no-wrap
26197 msgid ""
26198 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
26199 "\n"
26200 msgstr ""
26201
26202 # type: textblock
26203 #: ../tools/virt-tar.pl:61
26204 msgid ""
26205 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
26206 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
26207 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
26208 msgstr ""
26209
26210 # type: textblock
26211 #: ../tools/virt-tar.pl:66
26212 msgid ""
26213 "You can use C<-x> (extract) on live virtual machines, but you might get "
26214 "inconsistent results or errors if there is filesystem activity inside the "
26215 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
26216 "work, but the only way to guarantee consistent results is if the virtual "
26217 "machine is shut down."
26218 msgstr ""
26219
26220 # type: textblock
26221 #: ../tools/virt-tar.pl:74
26222 msgid ""
26223 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
26224 "parts of a guest filesystem.  There are many possibilities: making backups, "
26225 "uploading data files, snooping on guest activity, fixing or customizing "
26226 "guests, etc."
26227 msgstr ""
26228
26229 # type: textblock
26230 #: ../tools/virt-tar.pl:79
26231 msgid ""
26232 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
26233 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
26234 "should look at the L<guestfish(1)> tool."
26235 msgstr ""
26236
26237 # type: textblock
26238 #: ../tools/virt-tar.pl:83
26239 msgid ""
26240 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
26241 "its contents (recursively) from the virtual machine into a local tarball.  "
26242 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
26243 "virtual machine.  You cannot use these two options together."
26244 msgstr ""
26245
26246 # type: textblock
26247 #: ../tools/virt-tar.pl:89
26248 msgid ""
26249 "In addition, you may need to use the C<-z> (gZip) option to enable "
26250 "compression.  When uploading, you have to specify C<-z> if the upload file "
26251 "is compressed because virt-tar won't detect this on its own."
26252 msgstr ""
26253
26254 # type: textblock
26255 #: ../tools/virt-tar.pl:93
26256 msgid ""
26257 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
26258 "example it cannot do PKZip files or bzip2 compression.  If you want that "
26259 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
26260 "the L<libguestfs(3)> API)."
26261 msgstr ""
26262
26263 # type: =item
26264 #: ../tools/virt-tar.pl:151
26265 msgid "B<-x> | B<--extract> | B<--download>"
26266 msgstr ""
26267
26268 # type: =item
26269 #: ../tools/virt-tar.pl:153
26270 msgid "B<-u> | B<--upload>"
26271 msgstr ""
26272
26273 # type: textblock
26274 #: ../tools/virt-tar.pl:155
26275 msgid ""
26276 "Use C<-x> to extract (download) a directory from a virtual machine to a "
26277 "local tarball."
26278 msgstr ""
26279
26280 # type: textblock
26281 #: ../tools/virt-tar.pl:158
26282 msgid ""
26283 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
26284 "Please read the L</WARNING> section above before using this option."
26285 msgstr ""
26286
26287 # type: textblock
26288 #: ../tools/virt-tar.pl:162
26289 msgid "You must specify exactly one of these options."
26290 msgstr ""
26291
26292 # type: =item
26293 #: ../tools/virt-tar.pl:168
26294 msgid "B<-z> | B<--gzip>"
26295 msgstr ""
26296
26297 # type: textblock
26298 #: ../tools/virt-tar.pl:170
26299 msgid "Specify that the input or output tarball is gzip-compressed."
26300 msgstr ""
26301
26302 # type: textblock
26303 #: ../tools/virt-tar.pl:283
26304 msgid ""
26305 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26306 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
26307 "L<http://libguestfs.org/>."
26308 msgstr ""
26309
26310 # type: textblock
26311 #: ../tools/virt-rescue.pl:33
26312 msgid "virt-rescue - Run a rescue shell on a virtual machine"
26313 msgstr ""
26314
26315 # type: verbatim
26316 #: ../tools/virt-rescue.pl:37
26317 #, no-wrap
26318 msgid ""
26319 " virt-rescue [--options] domname\n"
26320 "\n"
26321 msgstr ""
26322
26323 # type: verbatim
26324 #: ../tools/virt-rescue.pl:39
26325 #, no-wrap
26326 msgid ""
26327 " virt-rescue [--options] disk.img [disk.img ...]\n"
26328 "\n"
26329 msgstr ""
26330
26331 # type: textblock
26332 #: ../tools/virt-rescue.pl:43
26333 msgid ""
26334 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
26335 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
26336 "you from doing this, but doesn't catch all cases."
26337 msgstr ""
26338
26339 # type: textblock
26340 #: ../tools/virt-rescue.pl:47
26341 msgid ""
26342 "However if you use the I<--ro> (read only) option, then you can attach a "
26343 "shell to a live virtual machine.  The results might be strange or "
26344 "inconsistent at times but you won't get disk corruption."
26345 msgstr ""
26346
26347 # type: textblock
26348 #: ../tools/virt-rescue.pl:53
26349 msgid ""
26350 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
26351 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
26352 "recovery tools which you can use to examine or rescue a virtual machine or "
26353 "disk image."
26354 msgstr ""
26355
26356 # type: textblock
26357 #: ../tools/virt-rescue.pl:58
26358 msgid ""
26359 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
26360 "on disk image(s):"
26361 msgstr ""
26362
26363 # type: verbatim
26364 #: ../tools/virt-rescue.pl:61
26365 #, no-wrap
26366 msgid ""
26367 " virt-rescue GuestName\n"
26368 "\n"
26369 msgstr ""
26370
26371 # type: verbatim
26372 #: ../tools/virt-rescue.pl:63
26373 #, no-wrap
26374 msgid ""
26375 " virt-rescue --ro /path/to/disk.img\n"
26376 "\n"
26377 msgstr ""
26378
26379 # type: verbatim
26380 #: ../tools/virt-rescue.pl:65
26381 #, no-wrap
26382 msgid ""
26383 " virt-rescue /dev/sdc\n"
26384 "\n"
26385 msgstr ""
26386
26387 # type: textblock
26388 #: ../tools/virt-rescue.pl:67
26389 msgid "For live VMs you I<must> use the --ro option."
26390 msgstr ""
26391
26392 # type: textblock
26393 #: ../tools/virt-rescue.pl:69
26394 msgid ""
26395 "When you run virt-rescue on a virtual machine or disk image, you are placed "
26396 "in an interactive bash shell where you can use many ordinary Linux "
26397 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
26398 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
26399 "is an empty directory called C</sysroot> where you can mount filesystems."
26400 msgstr ""
26401
26402 # type: textblock
26403 #: ../tools/virt-rescue.pl:76
26404 msgid ""
26405 "In the example below, we list logical volumes, then choose one to mount "
26406 "under C</sysroot>:"
26407 msgstr ""
26408
26409 # type: verbatim
26410 #: ../tools/virt-rescue.pl:79
26411 #, no-wrap
26412 msgid ""
26413 " ><rescue> lvs\n"
26414 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
26415 " lv_root vg_f11x64 -wi-a-   8.83G\n"
26416 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
26417 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
26418 " ><rescue> ls /sysroot\n"
26419 "\n"
26420 msgstr ""
26421
26422 # type: textblock
26423 #: ../tools/virt-rescue.pl:86
26424 msgid ""
26425 "If you don't know what filesystems are available on the virtual machine then "
26426 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
26427 msgstr ""
26428
26429 # type: textblock
26430 #: ../tools/virt-rescue.pl:92
26431 msgid ""
26432 "Virt-rescue can be used on I<any> disk image file or device, not just a "
26433 "virtual machine.  For example you can use it on a blank file if you want to "
26434 "partition that file (although we would recommend using L<guestfish(1)> "
26435 "instead as it is more suitable for this purpose).  You can even use "
26436 "virt-rescue on things like SD cards."
26437 msgstr ""
26438
26439 # type: textblock
26440 #: ../tools/virt-rescue.pl:98
26441 msgid ""
26442 "This tool is just designed for quick interactive hacking on a virtual "
26443 "machine.  For more structured access to a virtual machine disk image, you "
26444 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
26445 "make scripted changes to guests, use L<guestfish(1)>."
26446 msgstr ""
26447
26448 # type: =item
26449 #: ../tools/virt-rescue.pl:127
26450 msgid "B<--append kernelopts>"
26451 msgstr ""
26452
26453 # type: textblock
26454 #: ../tools/virt-rescue.pl:129
26455 msgid "Pass additional options to the rescue kernel."
26456 msgstr ""
26457
26458 # type: =item
26459 #: ../tools/virt-rescue.pl:164
26460 msgid "B<--memsize MB> | B<-m MB>"
26461 msgstr ""
26462
26463 # type: textblock
26464 #: ../tools/virt-rescue.pl:166
26465 msgid ""
26466 "Change the amount of memory allocated to the rescue system.  The default is "
26467 "set by libguestfs and is small but adequate for running system tools.  The "
26468 "occasional program might need more memory.  The parameter is specified in "
26469 "megabytes."
26470 msgstr ""
26471
26472 # type: =item
26473 #: ../tools/virt-rescue.pl:175
26474 msgid "B<--network MB>"
26475 msgstr ""
26476
26477 # type: textblock
26478 #: ../tools/virt-rescue.pl:177
26479 msgid "Enable QEMU user networking in the guest."
26480 msgstr ""
26481
26482 # type: =item
26483 #: ../tools/virt-rescue.pl:183
26484 msgid "B<--ro> | B<-r>"
26485 msgstr ""
26486
26487 # type: textblock
26488 #: ../tools/virt-rescue.pl:185
26489 msgid "Open the image read-only."
26490 msgstr ""
26491
26492 # type: textblock
26493 #: ../tools/virt-rescue.pl:197
26494 msgid ""
26495 "Enable SELinux in the rescue appliance.  You should read "
26496 "L<guestfs(3)/SELINUX> before using this option."
26497 msgstr ""
26498
26499 # type: textblock
26500 #: ../tools/virt-rescue.pl:257
26501 msgid ""
26502 "Several environment variables affect virt-rescue.  See "
26503 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
26504 msgstr ""
26505
26506 # type: textblock
26507 #: ../tools/virt-rescue.pl:269
26508 msgid ""
26509 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26510 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26511 msgstr ""
26512
26513 # type: textblock
26514 #: ../tools/virt-make-fs.pl:37
26515 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
26516 msgstr ""
26517
26518 # type: verbatim
26519 #: ../tools/virt-make-fs.pl:41
26520 #, no-wrap
26521 msgid ""
26522 " virt-make-fs [--options] input.tar output.img\n"
26523 "\n"
26524 msgstr ""
26525
26526 # type: verbatim
26527 #: ../tools/virt-make-fs.pl:43
26528 #, no-wrap
26529 msgid ""
26530 " virt-make-fs [--options] input.tar.gz output.img\n"
26531 "\n"
26532 msgstr ""
26533
26534 # type: verbatim
26535 #: ../tools/virt-make-fs.pl:45
26536 #, no-wrap
26537 msgid ""
26538 " virt-make-fs [--options] directory output.img\n"
26539 "\n"
26540 msgstr ""
26541
26542 # type: textblock
26543 #: ../tools/virt-make-fs.pl:49
26544 msgid ""
26545 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
26546 "archive or some files in a directory.  It is similar to tools like "
26547 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
26548 "it can create common filesystem types like ext2/3 or NTFS, which can be "
26549 "useful if you want to attach these filesystems to existing virtual machines "
26550 "(eg. to import large amounts of read-only data to a VM)."
26551 msgstr ""
26552
26553 # type: textblock
26554 #: ../tools/virt-make-fs.pl:57
26555 msgid "Basic usage is:"
26556 msgstr ""
26557
26558 # type: verbatim
26559 #: ../tools/virt-make-fs.pl:59
26560 #, no-wrap
26561 msgid ""
26562 " virt-make-fs input output\n"
26563 "\n"
26564 msgstr ""
26565
26566 # type: textblock
26567 #: ../tools/virt-make-fs.pl:61
26568 msgid ""
26569 "where C<input> is either a directory containing files that you want to add, "
26570 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
26571 "C<output> is a disk image.  The input type is detected automatically.  The "
26572 "output disk image defaults to a raw ext2 image unless you specify extra "
26573 "flags (see L</OPTIONS> below)."
26574 msgstr ""
26575
26576 # type: =head2
26577 #: ../tools/virt-make-fs.pl:67
26578 msgid "EXTRA SPACE"
26579 msgstr ""
26580
26581 # type: textblock
26582 #: ../tools/virt-make-fs.pl:69
26583 msgid ""
26584 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
26585 "the files that it contains, but might have extra space.  Depending on how "
26586 "you are going to use the output, you might think this extra space is wasted "
26587 "and want to minimize it, or you might want to leave space so that more files "
26588 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
26589 "but you can use the C<--size> flag to leave space in the filesystem if you "
26590 "want it."
26591 msgstr ""
26592
26593 # type: textblock
26594 #: ../tools/virt-make-fs.pl:77
26595 msgid ""
26596 "An alternative way to leave extra space but not make the output image any "
26597 "bigger is to use an alternative disk image format (instead of the default "
26598 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
26599 "image format (check your hypervisor supports this before using it).  This "
26600 "allows you to choose a large C<--size> but the extra space won't actually be "
26601 "allocated in the image until you try to store something in it."
26602 msgstr ""
26603
26604 # type: textblock
26605 #: ../tools/virt-make-fs.pl:85
26606 msgid ""
26607 "Don't forget that you can also use local commands including L<resize2fs(8)> "
26608 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
26609 "virt-make-resize to build another image from scratch."
26610 msgstr ""
26611
26612 # type: =head3
26613 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
26614 msgid "EXAMPLE"
26615 msgstr ""
26616
26617 # type: verbatim
26618 #: ../tools/virt-make-fs.pl:91
26619 #, no-wrap
26620 msgid ""
26621 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
26622 "\n"
26623 msgstr ""
26624
26625 # type: =head2
26626 #: ../tools/virt-make-fs.pl:93
26627 msgid "FILESYSTEM TYPE"
26628 msgstr ""
26629
26630 # type: textblock
26631 #: ../tools/virt-make-fs.pl:95
26632 msgid ""
26633 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
26634 "libguestfs supports can be used (but I<not> read-only formats like "
26635 "ISO9660).  Here are some of the more common choices:"
26636 msgstr ""
26637
26638 # type: =item
26639 #: ../tools/virt-make-fs.pl:101
26640 msgid "I<ext3>"
26641 msgstr ""
26642
26643 # type: textblock
26644 #: ../tools/virt-make-fs.pl:103
26645 msgid ""
26646 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
26647 "you are not going to use the filesystem in a way that requires the journal, "
26648 "then this is just wasted overhead."
26649 msgstr ""
26650
26651 # type: =item
26652 #: ../tools/virt-make-fs.pl:107
26653 msgid "I<ntfs> or I<vfat>"
26654 msgstr ""
26655
26656 # type: textblock
26657 #: ../tools/virt-make-fs.pl:109
26658 msgid "Useful if exporting data to a Windows guest."
26659 msgstr ""
26660
26661 # type: textblock
26662 #: ../tools/virt-make-fs.pl:111
26663 msgid ""
26664 "I<Note for vfat>: The tar archive or local directory must only contain files "
26665 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
26666 "program running within libguestfs is unable to change the ownership of "
26667 "non-root files, since vfat itself does not support this."
26668 msgstr ""
26669
26670 # type: =item
26671 #: ../tools/virt-make-fs.pl:116
26672 msgid "I<minix>"
26673 msgstr ""
26674
26675 # type: textblock
26676 #: ../tools/virt-make-fs.pl:118
26677 msgid ""
26678 "Lower overhead than C<ext2>, but certain limitations on filename length and "
26679 "total filesystem size."
26680 msgstr ""
26681
26682 # type: verbatim
26683 #: ../tools/virt-make-fs.pl:125
26684 #, no-wrap
26685 msgid ""
26686 " virt-make-fs --type=minix input minixfs.img\n"
26687 "\n"
26688 msgstr ""
26689
26690 # type: =head2
26691 #: ../tools/virt-make-fs.pl:127
26692 msgid "TO PARTITION OR NOT TO PARTITION"
26693 msgstr ""
26694
26695 # type: textblock
26696 #: ../tools/virt-make-fs.pl:129
26697 msgid "Optionally virt-make-fs can add a partition table to the output disk."
26698 msgstr ""
26699
26700 # type: textblock
26701 #: ../tools/virt-make-fs.pl:131
26702 msgid ""
26703 "Adding a partition can make the disk image more compatible with certain "
26704 "virtualized operating systems which don't expect to see a filesystem "
26705 "directly located on a block device (Linux doesn't care and will happily "
26706 "handle both types)."
26707 msgstr ""
26708
26709 # type: textblock
26710 #: ../tools/virt-make-fs.pl:136
26711 msgid ""
26712 "On the other hand, if you have a partition table then the output image is no "
26713 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
26714 "directly on a partitioned disk image.  (However libguestfs tools such as "
26715 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
26716 msgstr ""
26717
26718 # type: textblock
26719 #: ../tools/virt-make-fs.pl:144
26720 msgid "Add an MBR partition:"
26721 msgstr ""
26722
26723 # type: verbatim
26724 #: ../tools/virt-make-fs.pl:146
26725 #, no-wrap
26726 msgid ""
26727 " virt-make-fs --partition -- input disk.img\n"
26728 "\n"
26729 msgstr ""
26730
26731 # type: textblock
26732 #: ../tools/virt-make-fs.pl:148
26733 msgid ""
26734 "If the output disk image could be terabyte-sized or larger, it's better to "
26735 "use an EFI/GPT-compatible partition table:"
26736 msgstr ""
26737
26738 # type: verbatim
26739 #: ../tools/virt-make-fs.pl:151
26740 #, no-wrap
26741 msgid ""
26742 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
26743 "\n"
26744 msgstr ""
26745
26746 # type: textblock
26747 #: ../tools/virt-make-fs.pl:179
26748 msgid "Enable debugging information."
26749 msgstr ""
26750
26751 # type: =item
26752 #: ../tools/virt-make-fs.pl:185
26753 msgid "B<--size=E<lt>NE<gt>>"
26754 msgstr ""
26755
26756 # type: =item
26757 #: ../tools/virt-make-fs.pl:187
26758 msgid "B<--size=+E<lt>NE<gt>>"
26759 msgstr ""
26760
26761 # type: =item
26762 #: ../tools/virt-make-fs.pl:189
26763 msgid "B<-s E<lt>NE<gt>>"
26764 msgstr ""
26765
26766 # type: =item
26767 #: ../tools/virt-make-fs.pl:191
26768 msgid "B<-s +E<lt>NE<gt>>"
26769 msgstr ""
26770
26771 # type: textblock
26772 #: ../tools/virt-make-fs.pl:193
26773 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
26774 msgstr ""
26775
26776 # type: textblock
26777 #: ../tools/virt-make-fs.pl:196
26778 msgid ""
26779 "If this option is I<not> given, then the output image will be just large "
26780 "enough to contain all the files, with not much wasted space."
26781 msgstr ""
26782
26783 # type: textblock
26784 #: ../tools/virt-make-fs.pl:199
26785 msgid ""
26786 "To choose a fixed size output disk, specify an absolute number followed by "
26787 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
26788 "Petabytes or Exabytes.  This must be large enough to contain all the input "
26789 "files, else you will get an error."
26790 msgstr ""
26791
26792 # type: textblock
26793 #: ../tools/virt-make-fs.pl:204
26794 msgid ""
26795 "To leave extra space, specify C<+> (plus sign) and a number followed by "
26796 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
26797 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
26798 "the input files, and (approximately) an extra 200 MB free space."
26799 msgstr ""
26800
26801 # type: textblock
26802 #: ../tools/virt-make-fs.pl:210
26803 msgid ""
26804 "Note that virt-make-fs estimates free space, and therefore will not produce "
26805 "filesystems containing precisely the free space requested.  (It is much more "
26806 "expensive and time-consuming to produce a filesystem which has precisely the "
26807 "desired free space)."
26808 msgstr ""
26809
26810 # type: =item
26811 #: ../tools/virt-make-fs.pl:219
26812 msgid "B<--format=E<lt>fmtE<gt>>"
26813 msgstr ""
26814
26815 # type: =item
26816 #: ../tools/virt-make-fs.pl:221
26817 msgid "B<-F E<lt>fmtE<gt>>"
26818 msgstr ""
26819
26820 # type: textblock
26821 #: ../tools/virt-make-fs.pl:223
26822 msgid "Choose the output disk image format."
26823 msgstr ""
26824
26825 # type: textblock
26826 #: ../tools/virt-make-fs.pl:225
26827 msgid "The default is C<raw> (raw disk image)."
26828 msgstr ""
26829
26830 # type: textblock
26831 #: ../tools/virt-make-fs.pl:227
26832 msgid ""
26833 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
26834 "that would really make sense here is C<qcow2>."
26835 msgstr ""
26836
26837 # type: =item
26838 #: ../tools/virt-make-fs.pl:234
26839 msgid "B<--type=E<lt>fsE<gt>>"
26840 msgstr ""
26841
26842 # type: =item
26843 #: ../tools/virt-make-fs.pl:236
26844 msgid "B<-t E<lt>fsE<gt>>"
26845 msgstr ""
26846
26847 # type: textblock
26848 #: ../tools/virt-make-fs.pl:238
26849 msgid "Choose the output filesystem type."
26850 msgstr ""
26851
26852 # type: textblock
26853 #: ../tools/virt-make-fs.pl:240
26854 msgid "The default is C<ext2>."
26855 msgstr ""
26856
26857 # type: textblock
26858 #: ../tools/virt-make-fs.pl:242
26859 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
26860 msgstr ""
26861
26862 # type: =item
26863 #: ../tools/virt-make-fs.pl:249
26864 msgid "B<--partition>"
26865 msgstr ""
26866
26867 # type: =item
26868 #: ../tools/virt-make-fs.pl:251
26869 msgid "B<--partition=E<lt>parttypeE<gt>>"
26870 msgstr ""
26871
26872 # type: textblock
26873 #: ../tools/virt-make-fs.pl:253
26874 msgid ""
26875 "If specified, this flag adds an MBR partition table to the output disk "
26876 "image."
26877 msgstr ""
26878
26879 # type: textblock
26880 #: ../tools/virt-make-fs.pl:256
26881 msgid ""
26882 "You can change the partition table type, eg. C<--partition=gpt> for large "
26883 "disks."
26884 msgstr ""
26885
26886 # type: textblock
26887 #: ../tools/virt-make-fs.pl:259
26888 msgid ""
26889 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
26890 "might consider the next parameter to be the partition type.  For example:"
26891 msgstr ""
26892
26893 # type: verbatim
26894 #: ../tools/virt-make-fs.pl:263
26895 #, no-wrap
26896 msgid ""
26897 " virt-make-fs --partition input.tar ...\n"
26898 "\n"
26899 msgstr ""
26900
26901 # type: textblock
26902 #: ../tools/virt-make-fs.pl:265
26903 msgid ""
26904 "would cause virt-make-fs to think you wanted to use a partition type of "
26905 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
26906 "dash) between options and the input file argument:"
26907 msgstr ""
26908
26909 # type: verbatim
26910 #: ../tools/virt-make-fs.pl:269
26911 #, no-wrap
26912 msgid ""
26913 " virt-make-fs --partition -- input.tar ...\n"
26914 "\n"
26915 msgstr ""
26916
26917 # type: textblock
26918 #: ../tools/virt-make-fs.pl:536
26919 msgid ""
26920 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
26921 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
26922 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26923 msgstr ""
26924
26925 # type: verbatim
26926 #: ../tools/virt-make-fs.pl:553
26927 #, no-wrap
26928 msgid ""
26929 " export LIBGUESTFS_DEBUG=1\n"
26930 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
26931 "\n"
26932 msgstr ""
26933
26934 # type: textblock
26935 #: ../tools/virt-make-fs.pl:556
26936 msgid ""
26937 "Attach /tmp/virt-make-fs.log to a new bug report at "
26938 "L<https://bugzilla.redhat.com/>"
26939 msgstr ""
26940
26941 # type: textblock
26942 #: ../tools/virt-list-partitions.pl:32
26943 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
26944 msgstr ""
26945
26946 # type: verbatim
26947 #: ../tools/virt-list-partitions.pl:36
26948 #, no-wrap
26949 msgid ""
26950 " virt-list-partitions [--options] domname\n"
26951 "\n"
26952 msgstr ""
26953
26954 # type: verbatim
26955 #: ../tools/virt-list-partitions.pl:38
26956 #, no-wrap
26957 msgid ""
26958 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
26959 "\n"
26960 msgstr ""
26961
26962 # type: textblock
26963 #: ../tools/virt-list-partitions.pl:42
26964 msgid ""
26965 "C<virt-list-partitions> is a command line tool to list the partitions that "
26966 "are contained in a virtual machine or disk image.  It is mainly useful as a "
26967 "first step to using L<virt-resize(1)>."
26968 msgstr ""
26969
26970 # type: textblock
26971 #: ../tools/virt-list-partitions.pl:47
26972 msgid ""
26973 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
26974 "functionality.  For more complex cases you should look at the "
26975 "L<guestfish(1)> tool."
26976 msgstr ""
26977
26978 # type: =item
26979 #: ../tools/virt-list-partitions.pl:104
26980 msgid "B<-h> | B<--human-readable>"
26981 msgstr ""
26982
26983 # type: textblock
26984 #: ../tools/virt-list-partitions.pl:106
26985 msgid "Show sizes in human-readable form (eg. \"1G\")."
26986 msgstr ""
26987
26988 # type: textblock
26989 #: ../tools/virt-list-partitions.pl:114
26990 msgid ""
26991 "With this option, C<virt-list-partitions> displays the type and size of each "
26992 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
26993 msgstr ""
26994
26995 # type: =item
26996 #: ../tools/virt-list-partitions.pl:121
26997 msgid "B<-t> | B<--total>"
26998 msgstr ""
26999
27000 # type: textblock
27001 #: ../tools/virt-list-partitions.pl:123
27002 msgid "Display the total size of each block device (as a separate row or rows)."
27003 msgstr ""
27004
27005 # type: textblock
27006 #: ../tools/virt-list-partitions.pl:256
27007 msgid ""
27008 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
27009 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27010 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27011 msgstr ""