Version 1.5.16.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2010-09-15 20:33+0200\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 # type: =encoding
19 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
20 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
21 #: ../inspector/virt-inspector.pl:36 ../tools/virt-cat.pl:30
22 #: ../tools/virt-df.pl:32 ../tools/virt-edit.pl:31
23 #: ../tools/virt-list-filesystems.pl:28 ../tools/virt-list-partitions.pl:28
24 #: ../tools/virt-ls.pl:31 ../tools/virt-make-fs.pl:33
25 #: ../tools/virt-rescue.pl:29 ../tools/virt-resize.pl:38
26 #: ../tools/virt-tar.pl:30 ../tools/virt-win-reg.pl:34
27 msgid "utf8"
28 msgstr ""
29
30 # type: =head1
31 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
32 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
33 #: ../inspector/virt-inspector.pl:38 ../tools/virt-cat.pl:32
34 #: ../tools/virt-df.pl:34 ../tools/virt-edit.pl:33
35 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
36 #: ../tools/virt-ls.pl:33 ../tools/virt-make-fs.pl:35
37 #: ../tools/virt-rescue.pl:31 ../tools/virt-resize.pl:40
38 #: ../tools/virt-tar.pl:32 ../tools/virt-win-reg.pl:36
39 msgid "NAME"
40 msgstr "名前"
41
42 # type: textblock
43 #: ../src/guestfs.pod:5
44 msgid "guestfs - Library for accessing and modifying virtual machine images"
45 msgstr ""
46
47 # type: =head1
48 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
49 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
50 #: ../inspector/virt-inspector.pl:42 ../tools/virt-cat.pl:36
51 #: ../tools/virt-df.pl:38 ../tools/virt-edit.pl:37
52 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
53 #: ../tools/virt-ls.pl:37 ../tools/virt-make-fs.pl:39
54 #: ../tools/virt-rescue.pl:35 ../tools/virt-resize.pl:44
55 #: ../tools/virt-tar.pl:36 ../tools/virt-win-reg.pl:40
56 msgid "SYNOPSIS"
57 msgstr ""
58
59 # type: verbatim
60 #: ../src/guestfs.pod:9
61 #, no-wrap
62 msgid ""
63 " #include <guestfs.h>\n"
64 " \n"
65 msgstr ""
66
67 # type: verbatim
68 #: ../src/guestfs.pod:11
69 #, no-wrap
70 msgid ""
71 " guestfs_h *g = guestfs_create ();\n"
72 " guestfs_add_drive (g, \"guest.img\");\n"
73 " guestfs_launch (g);\n"
74 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
75 " guestfs_touch (g, \"/hello\");\n"
76 " guestfs_umount (g, \"/\");\n"
77 " guestfs_sync (g);\n"
78 " guestfs_close (g);\n"
79 "\n"
80 msgstr ""
81
82 # type: verbatim
83 #: ../src/guestfs.pod:20
84 #, no-wrap
85 msgid ""
86 " cc prog.c -o prog -lguestfs\n"
87 "or:\n"
88 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
89 "\n"
90 msgstr ""
91
92 # type: =head1
93 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:115
94 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:16
95 #: ../inspector/virt-inspector.pl:48 ../tools/virt-cat.pl:42
96 #: ../tools/virt-df.pl:46 ../tools/virt-edit.pl:51
97 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
98 #: ../tools/virt-ls.pl:43 ../tools/virt-make-fs.pl:47
99 #: ../tools/virt-rescue.pl:51 ../tools/virt-resize.pl:50
100 #: ../tools/virt-tar.pl:73 ../tools/virt-win-reg.pl:64
101 msgid "DESCRIPTION"
102 msgstr ""
103
104 # type: textblock
105 #: ../src/guestfs.pod:26
106 msgid ""
107 "Libguestfs is a library for accessing and modifying guest disk images.  "
108 "Amongst the things this is good for: making batch configuration changes to "
109 "guests, getting disk used/free statistics (see also: virt-df), migrating "
110 "between virtualization systems (see also: virt-p2v), performing partial "
111 "backups, performing partial guest clones, cloning guests and changing "
112 "registry/UUID/hostname info, and much else besides."
113 msgstr ""
114
115 # type: textblock
116 #: ../src/guestfs.pod:34
117 msgid ""
118 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
119 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
120 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
121 "qcow2, vmdk."
122 msgstr ""
123
124 # type: textblock
125 #: ../src/guestfs.pod:39
126 msgid ""
127 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
128 "what filesystem is in each LV, etc.).  It can also run commands in the "
129 "context of the guest.  Also you can access filesystems over FUSE."
130 msgstr ""
131
132 # type: textblock
133 #: ../src/guestfs.pod:44
134 msgid ""
135 "Libguestfs is a library that can be linked with C and C++ management "
136 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
137 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
138 "line."
139 msgstr ""
140
141 # type: textblock
142 #: ../src/guestfs.pod:49
143 msgid ""
144 "You don't need to be root to use libguestfs, although obviously you do need "
145 "enough permissions to access the disk images."
146 msgstr ""
147
148 # type: textblock
149 #: ../src/guestfs.pod:52
150 msgid ""
151 "Libguestfs is a large API because it can do many things.  For a gentle "
152 "introduction, please read the L</API OVERVIEW> section next."
153 msgstr ""
154
155 # type: =head1
156 #: ../src/guestfs.pod:55
157 msgid "API OVERVIEW"
158 msgstr ""
159
160 # type: textblock
161 #: ../src/guestfs.pod:57
162 msgid ""
163 "This section provides a gentler overview of the libguestfs API.  We also try "
164 "to group API calls together, where that may not be obvious from reading "
165 "about the individual calls in the main section of this manual."
166 msgstr ""
167
168 # type: =head2
169 #: ../src/guestfs.pod:62
170 msgid "HANDLES"
171 msgstr ""
172
173 # type: textblock
174 #: ../src/guestfs.pod:64
175 msgid ""
176 "Before you can use libguestfs calls, you have to create a handle.  Then you "
177 "must add at least one disk image to the handle, followed by launching the "
178 "handle, then performing whatever operations you want, and finally closing "
179 "the handle.  By convention we use the single letter C<g> for the name of the "
180 "handle variable, although of course you can use any name you want."
181 msgstr ""
182
183 # type: textblock
184 #: ../src/guestfs.pod:71
185 msgid "The general structure of all libguestfs-using programs looks like this:"
186 msgstr ""
187
188 # type: verbatim
189 #: ../src/guestfs.pod:74
190 #, no-wrap
191 msgid ""
192 " guestfs_h *g = guestfs_create ();\n"
193 " \n"
194 msgstr ""
195
196 # type: verbatim
197 #: ../src/guestfs.pod:76
198 #, no-wrap
199 msgid ""
200 " /* Call guestfs_add_drive additional times if there are\n"
201 "  * multiple disk images.\n"
202 "  */\n"
203 " guestfs_add_drive (g, \"guest.img\");\n"
204 " \n"
205 msgstr ""
206
207 # type: verbatim
208 #: ../src/guestfs.pod:81
209 #, no-wrap
210 msgid ""
211 " /* Most manipulation calls won't work until you've launched\n"
212 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
213 "  * and _before_ other commands.\n"
214 "  */\n"
215 " guestfs_launch (g);\n"
216 " \n"
217 msgstr ""
218
219 # type: verbatim
220 #: ../src/guestfs.pod:87
221 #, no-wrap
222 msgid ""
223 " /* Now you can examine what partitions, LVs etc are available.\n"
224 "  */\n"
225 " char **partitions = guestfs_list_partitions (g);\n"
226 " char **logvols = guestfs_lvs (g);\n"
227 " \n"
228 msgstr ""
229
230 # type: verbatim
231 #: ../src/guestfs.pod:92
232 #, no-wrap
233 msgid ""
234 " /* To access a filesystem in the image, you must mount it.\n"
235 "  */\n"
236 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
237 " \n"
238 msgstr ""
239
240 # type: verbatim
241 #: ../src/guestfs.pod:96
242 #, no-wrap
243 msgid ""
244 " /* Now you can perform filesystem actions on the guest\n"
245 "  * disk image.\n"
246 "  */\n"
247 " guestfs_touch (g, \"/hello\");\n"
248 " \n"
249 msgstr ""
250
251 # type: verbatim
252 #: ../src/guestfs.pod:101
253 #, no-wrap
254 msgid ""
255 " /* You only need to call guestfs_sync if you have made\n"
256 "  * changes to the guest image.  (But if you've made changes\n"
257 "  * then you *must* sync).  See also: guestfs_umount and\n"
258 "  * guestfs_umount_all calls.\n"
259 "  */\n"
260 " guestfs_sync (g);\n"
261 " \n"
262 msgstr ""
263
264 # type: verbatim
265 #: ../src/guestfs.pod:108
266 #, no-wrap
267 msgid ""
268 " /* Close the handle 'g'. */\n"
269 " guestfs_close (g);\n"
270 "\n"
271 msgstr ""
272
273 # type: textblock
274 #: ../src/guestfs.pod:111
275 msgid ""
276 "The code above doesn't include any error checking.  In real code you should "
277 "check return values carefully for errors.  In general all functions that "
278 "return integers return C<-1> on error, and all functions that return "
279 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
280 "how to handle errors, and consult the documentation for each function call "
281 "below to see precisely how they return error indications."
282 msgstr ""
283
284 # type: =head2
285 #: ../src/guestfs.pod:119
286 msgid "DISK IMAGES"
287 msgstr ""
288
289 # type: textblock
290 #: ../src/guestfs.pod:121
291 msgid ""
292 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
293 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
294 "actual block device, or simply an empty file of zeroes that you have created "
295 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
296 "of these."
297 msgstr ""
298
299 # type: textblock
300 #: ../src/guestfs.pod:127
301 msgid ""
302 "You can add a disk read-only using L</guestfs_add_drive_ro>, in which case "
303 "libguestfs won't modify the file."
304 msgstr ""
305
306 # type: textblock
307 #: ../src/guestfs.pod:130
308 msgid ""
309 "Be extremely cautious if the disk image is in use, eg. if it is being used "
310 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
311 "corruption, but adding it read-only is safe."
312 msgstr ""
313
314 # type: textblock
315 #: ../src/guestfs.pod:134
316 msgid ""
317 "You must add at least one disk image, and you may add multiple disk images.  "
318 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
319 "first one you added), C</dev/sdb> (for the second one you added), etc."
320 msgstr ""
321
322 # type: textblock
323 #: ../src/guestfs.pod:139
324 msgid ""
325 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
326 "can call L</guestfs_list_devices> to get a list of the device names, in the "
327 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
328 msgstr ""
329
330 # type: =head2
331 #: ../src/guestfs.pod:144
332 msgid "MOUNTING"
333 msgstr ""
334
335 # type: textblock
336 #: ../src/guestfs.pod:146
337 msgid ""
338 "Before you can read or write files, create directories and so on in a disk "
339 "image that contains filesystems, you have to mount those filesystems using "
340 "L</guestfs_mount>.  If you already know that a disk image contains (for "
341 "example) one partition with a filesystem on that partition, then you can "
342 "mount it directly:"
343 msgstr ""
344
345 # type: verbatim
346 #: ../src/guestfs.pod:152
347 #, no-wrap
348 msgid ""
349 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
350 "\n"
351 msgstr ""
352
353 # type: textblock
354 #: ../src/guestfs.pod:154
355 msgid ""
356 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
357 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
358 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
359 msgstr ""
360
361 # type: textblock
362 #: ../src/guestfs.pod:158
363 msgid ""
364 "If you are given a disk image and you don't know what it contains then you "
365 "have to find out.  Libguestfs can do that too: use L</"
366 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
367 "LVs, and either try mounting each to see what is mountable, or else examine "
368 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
369 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
370 "you might find it easier to look at higher level programs built on top of "
371 "libguestfs, in particular L<virt-inspector(1)>."
372 msgstr ""
373
374 # type: textblock
375 #: ../src/guestfs.pod:168
376 msgid ""
377 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
378 "several other variations of the C<guestfs_mount_*> call."
379 msgstr ""
380
381 # type: =head2
382 #: ../src/guestfs.pod:171
383 msgid "FILESYSTEM ACCESS AND MODIFICATION"
384 msgstr ""
385
386 # type: textblock
387 #: ../src/guestfs.pod:173
388 msgid ""
389 "The majority of the libguestfs API consists of fairly low-level calls for "
390 "accessing and modifying the files, directories, symlinks etc on mounted "
391 "filesystems.  There are over a hundred such calls which you can find listed "
392 "in detail below in this man page, and we don't even pretend to cover them "
393 "all in this overview."
394 msgstr ""
395
396 # type: textblock
397 #: ../src/guestfs.pod:179
398 msgid ""
399 "Specify filenames as full paths, starting with C<\"/\"> and including the "
400 "mount point."
401 msgstr ""
402
403 # type: textblock
404 #: ../src/guestfs.pod:182
405 msgid ""
406 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
407 "the file called C<\"etc/passwd\"> then you could do:"
408 msgstr ""
409
410 # type: verbatim
411 #: ../src/guestfs.pod:185
412 #, no-wrap
413 msgid ""
414 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
415 "\n"
416 msgstr ""
417
418 # type: textblock
419 #: ../src/guestfs.pod:187
420 msgid ""
421 "This would return C<data> as a newly allocated buffer containing the full "
422 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
423 "or C<NULL> if there was an error."
424 msgstr ""
425
426 # type: textblock
427 #: ../src/guestfs.pod:191
428 msgid ""
429 "As another example, to create a top-level directory on that filesystem "
430 "called C<\"var\"> you would do:"
431 msgstr ""
432
433 # type: verbatim
434 #: ../src/guestfs.pod:194
435 #, no-wrap
436 msgid ""
437 " guestfs_mkdir (g, \"/var\");\n"
438 "\n"
439 msgstr ""
440
441 # type: textblock
442 #: ../src/guestfs.pod:196
443 msgid "To create a symlink you could do:"
444 msgstr ""
445
446 # type: verbatim
447 #: ../src/guestfs.pod:198
448 #, no-wrap
449 msgid ""
450 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
451 "               \"/etc/rc3.d/S30portmap\");\n"
452 "\n"
453 msgstr ""
454
455 # type: textblock
456 #: ../src/guestfs.pod:201
457 msgid ""
458 "Libguestfs will reject attempts to use relative paths and there is no "
459 "concept of a current working directory."
460 msgstr ""
461
462 # type: textblock
463 #: ../src/guestfs.pod:204
464 msgid ""
465 "Libguestfs can return errors in many situations: for example if the "
466 "filesystem isn't writable, or if a file or directory that you requested "
467 "doesn't exist.  If you are using the C API (documented here)  you have to "
468 "check for those error conditions after each call.  (Other language bindings "
469 "turn these errors into exceptions)."
470 msgstr ""
471
472 # type: textblock
473 #: ../src/guestfs.pod:210
474 msgid ""
475 "File writes are affected by the per-handle umask, set by calling L</"
476 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
477 msgstr ""
478
479 # type: =head2
480 #: ../src/guestfs.pod:213
481 msgid "PARTITIONING"
482 msgstr ""
483
484 # type: textblock
485 #: ../src/guestfs.pod:215
486 msgid ""
487 "Libguestfs contains API calls to read, create and modify partition tables on "
488 "disk images."
489 msgstr ""
490
491 # type: textblock
492 #: ../src/guestfs.pod:218
493 msgid ""
494 "In the common case where you want to create a single partition covering the "
495 "whole disk, you should use the L</guestfs_part_disk> call:"
496 msgstr ""
497
498 # type: verbatim
499 #: ../src/guestfs.pod:222
500 #, no-wrap
501 msgid ""
502 " const char *parttype = \"mbr\";\n"
503 " if (disk_is_larger_than_2TB)\n"
504 "   parttype = \"gpt\";\n"
505 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
506 "\n"
507 msgstr ""
508
509 # type: textblock
510 #: ../src/guestfs.pod:227
511 msgid ""
512 "Obviously this effectively wipes anything that was on that disk image before."
513 msgstr ""
514
515 # type: =head2
516 #: ../src/guestfs.pod:230
517 msgid "LVM2"
518 msgstr ""
519
520 # type: textblock
521 #: ../src/guestfs.pod:232
522 msgid ""
523 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
524 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
525 "you familiarize yourself with the concepts of physical volumes, volume "
526 "groups and logical volumes."
527 msgstr ""
528
529 # type: textblock
530 #: ../src/guestfs.pod:237
531 msgid ""
532 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
533 "tldp.org/HOWTO/LVM-HOWTO/>."
534 msgstr ""
535
536 # type: =head2
537 #: ../src/guestfs.pod:240
538 msgid "DOWNLOADING"
539 msgstr ""
540
541 # type: textblock
542 #: ../src/guestfs.pod:242
543 msgid ""
544 "Use L</guestfs_cat> to download small, text only files.  This call is "
545 "limited to files which are less than 2 MB and which cannot contain any ASCII "
546 "NUL (C<\\0>) characters.  However it has a very simple to use API."
547 msgstr ""
548
549 # type: textblock
550 #: ../src/guestfs.pod:247
551 msgid ""
552 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
553 "bit data, since it returns a (pointer, size) pair.  However it is still "
554 "limited to \"small\" files, less than 2 MB."
555 msgstr ""
556
557 # type: textblock
558 #: ../src/guestfs.pod:251
559 msgid ""
560 "L</guestfs_download> can be used to download any file, with no limits on "
561 "content or size (even files larger than 4 GB)."
562 msgstr ""
563
564 # type: textblock
565 #: ../src/guestfs.pod:254
566 msgid ""
567 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
568 msgstr ""
569
570 # type: =head2
571 #: ../src/guestfs.pod:257
572 msgid "UPLOADING"
573 msgstr ""
574
575 # type: textblock
576 #: ../src/guestfs.pod:259
577 msgid ""
578 "It's often the case that you want to write a file or files to the disk image."
579 msgstr ""
580
581 # type: textblock
582 #: ../src/guestfs.pod:262
583 msgid ""
584 "To write a small file with fixed content, use L</guestfs_write>.  To create "
585 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
586 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
587 "of other functions for creating test files, for example L</guestfs_fill> and "
588 "L</guestfs_fill_pattern>."
589 msgstr ""
590
591 # type: textblock
592 #: ../src/guestfs.pod:268
593 msgid ""
594 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
595 "file content or size (even files larger than 4 GB)."
596 msgstr ""
597
598 # type: textblock
599 #: ../src/guestfs.pod:271
600 msgid ""
601 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
602 msgstr ""
603
604 # type: textblock
605 #: ../src/guestfs.pod:273
606 msgid ""
607 "However the fastest way to upload I<large numbers of arbitrary files> is to "
608 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
609 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
610 "in a predictable way (eg. adding it last after all other drives) then you "
611 "can get the device name from L</guestfs_list_devices> and mount it directly "
612 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
613 "portable between kernel versions, and they don't support labels or UUIDs.  "
614 "If you want to pre-build an image or you need to mount it using a label or "
615 "UUID, use an ISO image instead."
616 msgstr ""
617
618 # type: =head2
619 #: ../src/guestfs.pod:284
620 msgid "COPYING"
621 msgstr ""
622
623 # type: textblock
624 #: ../src/guestfs.pod:286
625 msgid ""
626 "There are various different commands for copying between files and devices "
627 "and in and out of the guest filesystem.  These are summarised in the table "
628 "below."
629 msgstr ""
630
631 # type: =item
632 #: ../src/guestfs.pod:292
633 msgid "B<file> to B<file>"
634 msgstr ""
635
636 # type: textblock
637 #: ../src/guestfs.pod:294
638 msgid ""
639 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
640 "directories recursively."
641 msgstr ""
642
643 # type: =item
644 #: ../src/guestfs.pod:297
645 msgid "B<file or device> to B<file or device>"
646 msgstr ""
647
648 # type: textblock
649 #: ../src/guestfs.pod:299
650 msgid ""
651 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
652 "devices in the guest."
653 msgstr ""
654
655 # type: textblock
656 #: ../src/guestfs.pod:302
657 msgid "Example: duplicate the contents of an LV:"
658 msgstr ""
659
660 # type: verbatim
661 #: ../src/guestfs.pod:304
662 #, no-wrap
663 msgid ""
664 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
665 "\n"
666 msgstr ""
667
668 # type: textblock
669 #: ../src/guestfs.pod:306
670 msgid ""
671 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
672 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
673 "guestfs_copy_size>."
674 msgstr ""
675
676 # type: =item
677 #: ../src/guestfs.pod:310
678 msgid "B<file on the host> to B<file or device>"
679 msgstr ""
680
681 # type: textblock
682 #: ../src/guestfs.pod:312
683 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
684 msgstr ""
685
686 # type: =item
687 #: ../src/guestfs.pod:314
688 msgid "B<file or device> to B<file on the host>"
689 msgstr ""
690
691 # type: textblock
692 #: ../src/guestfs.pod:316
693 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
694 msgstr ""
695
696 # type: =head2
697 #: ../src/guestfs.pod:320
698 msgid "LISTING FILES"
699 msgstr ""
700
701 # type: textblock
702 #: ../src/guestfs.pod:322
703 msgid ""
704 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
705 "L<guestfish(1)>-equivalent command C<ll>)."
706 msgstr ""
707
708 # type: textblock
709 #: ../src/guestfs.pod:325
710 msgid ""
711 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
712 "programs, as a flat list of strings."
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:328
717 msgid ""
718 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
719 "directory, plus additional information about each one.  It is more "
720 "equivalent to using the L<readdir(3)> call on a local filesystem."
721 msgstr ""
722
723 # type: textblock
724 #: ../src/guestfs.pod:332
725 msgid ""
726 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
727 msgstr ""
728
729 # type: =head2
730 #: ../src/guestfs.pod:335
731 msgid "RUNNING COMMANDS"
732 msgstr ""
733
734 # type: textblock
735 #: ../src/guestfs.pod:337
736 msgid ""
737 "Although libguestfs is primarily an API for manipulating files inside guest "
738 "images, we also provide some limited facilities for running commands inside "
739 "guests."
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:341
744 msgid "There are many limitations to this:"
745 msgstr ""
746
747 # type: =item
748 #: ../src/guestfs.pod:345 ../src/guestfs.pod:350 ../src/guestfs.pod:355
749 #: ../src/guestfs.pod:359 ../src/guestfs.pod:364 ../src/guestfs.pod:368
750 #: ../src/guestfs.pod:373 ../src/guestfs.pod:1223 ../src/guestfs.pod:1228
751 #: ../src/guestfs.pod:1232 ../src/guestfs.pod:1334 ../src/guestfs.pod:1338
752 #: ../src/guestfs.pod:1342 ../src/guestfs.pod:1347 ../src/guestfs.pod:1355
753 #: ../src/guestfs.pod:1374 ../src/guestfs.pod:1382 ../src/guestfs.pod:1612
754 #: ../src/guestfs.pod:1618 ../src/guestfs.pod:1623 ../src/guestfs.pod:1629
755 #: ../src/guestfs.pod:1736 ../src/guestfs.pod:1740 ../src/guestfs.pod:1744
756 #: ../src/guestfs.pod:1748 ../src/guestfs-actions.pod:14
757 #: ../src/guestfs-actions.pod:21 ../src/guestfs-actions.pod:372
758 #: ../src/guestfs-actions.pod:380 ../src/guestfs-actions.pod:387
759 #: ../src/guestfs-actions.pod:394 ../src/guestfs-actions.pod:1257
760 #: ../src/guestfs-actions.pod:1261 ../src/guestfs-actions.pod:1265
761 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:1277
762 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:1285
763 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1299
764 #: ../src/guestfs-actions.pod:1303 ../src/guestfs-actions.pod:1426
765 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1435
766 #: ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1492
767 #: ../src/guestfs-actions.pod:1496 ../src/guestfs-actions.pod:1501
768 #: ../fish/guestfish.pod:309 ../fish/guestfish.pod:313
769 #: ../fish/guestfish.pod:317 ../fish/guestfish.pod:321
770 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
771 #: ../fish/guestfish-actions.pod:300 ../fish/guestfish-actions.pod:308
772 #: ../fish/guestfish-actions.pod:315 ../fish/guestfish-actions.pod:322
773 #: ../fish/guestfish-actions.pod:998 ../fish/guestfish-actions.pod:1002
774 #: ../fish/guestfish-actions.pod:1006 ../fish/guestfish-actions.pod:1010
775 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1022
776 #: ../fish/guestfish-actions.pod:1026 ../fish/guestfish-actions.pod:1036
777 #: ../fish/guestfish-actions.pod:1040 ../fish/guestfish-actions.pod:1044
778 #: ../fish/guestfish-actions.pod:1134 ../fish/guestfish-actions.pod:1138
779 #: ../fish/guestfish-actions.pod:1143 ../fish/guestfish-actions.pod:1148
780 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1194
781 #: ../fish/guestfish-actions.pod:1199 ../tools/virt-resize.pl:324
782 #: ../tools/virt-resize.pl:329 ../tools/virt-resize.pl:339
783 msgid "*"
784 msgstr ""
785
786 # type: textblock
787 #: ../src/guestfs.pod:347
788 msgid ""
789 "The kernel version that the command runs under will be different from what "
790 "it expects."
791 msgstr ""
792
793 # type: textblock
794 #: ../src/guestfs.pod:352
795 msgid ""
796 "If the command needs to communicate with daemons, then most likely they "
797 "won't be running."
798 msgstr ""
799
800 # type: textblock
801 #: ../src/guestfs.pod:357
802 msgid "The command will be running in limited memory."
803 msgstr ""
804
805 # type: textblock
806 #: ../src/guestfs.pod:361
807 msgid ""
808 "The network may not be available unless you enable it (see L</"
809 "guestfs_set_network>)."
810 msgstr ""
811
812 # type: textblock
813 #: ../src/guestfs.pod:366
814 msgid "Only supports Linux guests (not Windows, BSD, etc)."
815 msgstr ""
816
817 # type: textblock
818 #: ../src/guestfs.pod:370
819 msgid ""
820 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
821 msgstr ""
822
823 # type: textblock
824 #: ../src/guestfs.pod:375
825 msgid ""
826 "For SELinux guests, you may need to enable SELinux and load policy first.  "
827 "See L</SELINUX> in this manpage."
828 msgstr ""
829
830 # type: textblock
831 #: ../src/guestfs.pod:380
832 msgid ""
833 "The two main API calls to run commands are L</guestfs_command> and L</"
834 "guestfs_sh> (there are also variations)."
835 msgstr ""
836
837 # type: textblock
838 #: ../src/guestfs.pod:383
839 msgid ""
840 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
841 "shell globs, redirections, etc will work."
842 msgstr ""
843
844 # type: =head2
845 #: ../src/guestfs.pod:386
846 msgid "CONFIGURATION FILES"
847 msgstr ""
848
849 # type: textblock
850 #: ../src/guestfs.pod:388
851 msgid ""
852 "To read and write configuration files in Linux guest filesystems, we "
853 "strongly recommend using Augeas.  For example, Augeas understands how to "
854 "read and write, say, a Linux shadow password file or X.org configuration "
855 "file, and so avoids you having to write that code."
856 msgstr ""
857
858 # type: textblock
859 #: ../src/guestfs.pod:393
860 msgid ""
861 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
862 "document Augeas itself here because there is excellent documentation on the "
863 "L<http://augeas.net/> website."
864 msgstr ""
865
866 # type: textblock
867 #: ../src/guestfs.pod:397
868 msgid ""
869 "If you don't want to use Augeas (you fool!) then try calling L</"
870 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
871 "over."
872 msgstr ""
873
874 # type: =head2
875 #: ../src/guestfs.pod:401
876 msgid "SELINUX"
877 msgstr ""
878
879 # type: textblock
880 #: ../src/guestfs.pod:403
881 msgid ""
882 "We support SELinux guests.  To ensure that labeling happens correctly in "
883 "SELinux guests, you need to enable SELinux and load the guest's policy:"
884 msgstr ""
885
886 # type: =item
887 #: ../src/guestfs.pod:409
888 msgid "1."
889 msgstr ""
890
891 # type: textblock
892 #: ../src/guestfs.pod:411
893 msgid "Before launching, do:"
894 msgstr ""
895
896 # type: verbatim
897 #: ../src/guestfs.pod:413
898 #, no-wrap
899 msgid ""
900 " guestfs_set_selinux (g, 1);\n"
901 "\n"
902 msgstr ""
903
904 # type: =item
905 #: ../src/guestfs.pod:415
906 msgid "2."
907 msgstr ""
908
909 # type: textblock
910 #: ../src/guestfs.pod:417
911 msgid ""
912 "After mounting the guest's filesystem(s), load the policy.  This is best "
913 "done by running the L<load_policy(8)> command in the guest itself:"
914 msgstr ""
915
916 # type: verbatim
917 #: ../src/guestfs.pod:421
918 #, no-wrap
919 msgid ""
920 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
921 "\n"
922 msgstr ""
923
924 # type: textblock
925 #: ../src/guestfs.pod:423
926 msgid ""
927 "(Older versions of C<load_policy> require you to specify the name of the "
928 "policy file)."
929 msgstr ""
930
931 # type: =item
932 #: ../src/guestfs.pod:426
933 msgid "3."
934 msgstr ""
935
936 # type: textblock
937 #: ../src/guestfs.pod:428
938 msgid ""
939 "Optionally, set the security context for the API.  The correct security "
940 "context to use can only be known by inspecting the guest.  As an example:"
941 msgstr ""
942
943 # type: verbatim
944 #: ../src/guestfs.pod:432
945 #, no-wrap
946 msgid ""
947 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
948 "\n"
949 msgstr ""
950
951 # type: textblock
952 #: ../src/guestfs.pod:436
953 msgid "This will work for running commands and editing existing files."
954 msgstr ""
955
956 # type: textblock
957 #: ../src/guestfs.pod:438
958 msgid ""
959 "When new files are created, you may need to label them explicitly, for "
960 "example by running the external command C<restorecon pathname>."
961 msgstr ""
962
963 # type: =head2
964 #: ../src/guestfs.pod:442
965 msgid "UMASK"
966 msgstr ""
967
968 # type: textblock
969 #: ../src/guestfs.pod:444
970 msgid ""
971 "Certain calls are affected by the current file mode creation mask (the "
972 "\"umask\").  In particular ones which create files or directories, such as "
973 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
974 "either the default mode that the file is created with or modifies the mode "
975 "that you supply."
976 msgstr ""
977
978 # type: textblock
979 #: ../src/guestfs.pod:450
980 msgid ""
981 "The default umask is C<022>, so files are created with modes such as C<0644> "
982 "and directories with C<0755>."
983 msgstr ""
984
985 # type: textblock
986 #: ../src/guestfs.pod:453
987 msgid ""
988 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
989 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
990 "guestfs_chmod> after creating each file or directory."
991 msgstr ""
992
993 # type: textblock
994 #: ../src/guestfs.pod:457
995 msgid "For more information about umask, see L<umask(2)>."
996 msgstr ""
997
998 # type: =head1
999 #: ../src/guestfs.pod:459 ../fish/guestfish.pod:559
1000 msgid "ENCRYPTED DISKS"
1001 msgstr ""
1002
1003 # type: textblock
1004 #: ../src/guestfs.pod:461
1005 msgid ""
1006 "Libguestfs allows you to access Linux guests which have been encrypted using "
1007 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1008 "standard.  This includes nearly all whole disk encryption systems used by "
1009 "modern Linux guests."
1010 msgstr ""
1011
1012 # type: textblock
1013 #: ../src/guestfs.pod:467
1014 msgid ""
1015 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1016 "returns the string C<crypto_LUKS>)."
1017 msgstr ""
1018
1019 # type: textblock
1020 #: ../src/guestfs.pod:470
1021 msgid ""
1022 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1023 "will require the passphrase!"
1024 msgstr ""
1025
1026 # type: textblock
1027 #: ../src/guestfs.pod:473
1028 msgid ""
1029 "Opening a LUKS device creates a new device mapper device called C</dev/"
1030 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1031 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1032 "from and encrypted to the underlying block device respectively."
1033 msgstr ""
1034
1035 # type: textblock
1036 #: ../src/guestfs.pod:479
1037 msgid ""
1038 "LVM volume groups on the device can be made visible by calling L</"
1039 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1040 "(s) can now be mounted in the usual way."
1041 msgstr ""
1042
1043 # type: textblock
1044 #: ../src/guestfs.pod:483
1045 msgid ""
1046 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1047 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1048 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1049 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1050 "underlying encrypted block device)."
1051 msgstr ""
1052
1053 # type: =head2
1054 #: ../src/guestfs.pod:490
1055 msgid "INSPECTION"
1056 msgstr ""
1057
1058 # type: textblock
1059 #: ../src/guestfs.pod:492
1060 msgid ""
1061 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1062 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1063 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1064 "frequently used part of this library has been rewritten in C and moved into "
1065 "the core code)."
1066 msgstr ""
1067
1068 # type: textblock
1069 #: ../src/guestfs.pod:498
1070 msgid ""
1071 "Add all disks belonging to the unknown virtual machine and call L</"
1072 "guestfs_launch> in the usual way."
1073 msgstr ""
1074
1075 # type: textblock
1076 #: ../src/guestfs.pod:501
1077 msgid ""
1078 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1079 "and certain heuristics, and returns a list of operating systems that were "
1080 "found.  An empty list means none were found.  A single element is the root "
1081 "filesystem of the operating system.  For dual- or multi-boot guests, "
1082 "multiple roots can be returned, each one corresponding to a separate "
1083 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1084 "world of virtualization, but since this scenario can happen, we have built "
1085 "libguestfs to deal with it.)"
1086 msgstr ""
1087
1088 # type: textblock
1089 #: ../src/guestfs.pod:510
1090 msgid ""
1091 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1092 "to get additional details about that operating system.  For example, call L</"
1093 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1094 "Windows and Linux-based operating systems respectively."
1095 msgstr ""
1096
1097 # type: textblock
1098 #: ../src/guestfs.pod:516
1099 msgid ""
1100 "Un*x-like and Linux-based operating systems usually consist of several "
1101 "filesystems which are mounted at boot time (for example, a separate boot "
1102 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1103 "filesystems correspond to mount points.  Call "
1104 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1105 "hash table like this example:"
1106 msgstr ""
1107
1108 # type: verbatim
1109 #: ../src/guestfs.pod:523
1110 #, no-wrap
1111 msgid ""
1112 " /boot => /dev/sda1\n"
1113 " /     => /dev/vg_guest/lv_root\n"
1114 " /usr  => /dev/vg_guest/lv_usr\n"
1115 "\n"
1116 msgstr ""
1117
1118 # type: textblock
1119 #: ../src/guestfs.pod:527
1120 msgid ""
1121 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1122 "filesystems as suggested."
1123 msgstr ""
1124
1125 # type: textblock
1126 #: ../src/guestfs.pod:530
1127 msgid ""
1128 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1129 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1130 msgstr ""
1131
1132 # type: textblock
1133 #: ../src/guestfs.pod:534
1134 msgid ""
1135 "Inspection currently only works for some common operating systems.  "
1136 "Contributors are welcome to send patches for other operating systems that we "
1137 "currently cannot detect."
1138 msgstr ""
1139
1140 # type: textblock
1141 #: ../src/guestfs.pod:538
1142 msgid ""
1143 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1144 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1145 "encrypted devices."
1146 msgstr ""
1147
1148 # type: textblock
1149 #: ../src/guestfs.pod:542
1150 msgid ""
1151 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1152 "inspection and caches the results in the guest handle.  Subsequent calls to "
1153 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1154 "read the disks.  If you change the content of the guest disks, you can redo "
1155 "inspection by calling L</guestfs_inspect_os> again."
1156 msgstr ""
1157
1158 # type: =head2
1159 #: ../src/guestfs.pod:549
1160 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1161 msgstr ""
1162
1163 # type: textblock
1164 #: ../src/guestfs.pod:551
1165 msgid ""
1166 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1167 "ntfs-3g.org/> driver."
1168 msgstr ""
1169
1170 # type: textblock
1171 #: ../src/guestfs.pod:554
1172 msgid ""
1173 "DOS and Windows still use drive letters, and the filesystems are always "
1174 "treated as case insensitive by Windows itself, and therefore you might find "
1175 "a Windows configuration file referring to a path like C<c:\\windows"
1176 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1177 "might be referred to as C</WINDOWS/System32>."
1178 msgstr ""
1179
1180 # type: textblock
1181 #: ../src/guestfs.pod:560
1182 msgid ""
1183 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1184 "libguestfs to read the appropriate Windows Registry and configuration files, "
1185 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1186 "inspector(1)>)."
1187 msgstr ""
1188
1189 # type: textblock
1190 #: ../src/guestfs.pod:565
1191 msgid ""
1192 "Replacing backslash characters with forward slash characters is also outside "
1193 "the scope of libguestfs, but something that you can easily do."
1194 msgstr ""
1195
1196 # type: textblock
1197 #: ../src/guestfs.pod:568
1198 msgid ""
1199 "Where we can help is in resolving the case insensitivity of paths.  For "
1200 "this, call L</guestfs_case_sensitive_path>."
1201 msgstr ""
1202
1203 # type: textblock
1204 #: ../src/guestfs.pod:571
1205 msgid ""
1206 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1207 "files, through the library C<hivex> which is part of the libguestfs project "
1208 "although ships as a separate tarball.  You have to locate and download the "
1209 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1210 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1211 "reg(1)> for more help on this issue."
1212 msgstr ""
1213
1214 # type: =head2
1215 #: ../src/guestfs.pod:579
1216 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1217 msgstr ""
1218
1219 # type: textblock
1220 #: ../src/guestfs.pod:581
1221 msgid ""
1222 "Although we don't want to discourage you from using the C API, we will "
1223 "mention here that the same API is also available in other languages."
1224 msgstr ""
1225
1226 # type: textblock
1227 #: ../src/guestfs.pod:584
1228 msgid ""
1229 "The API is broadly identical in all supported languages.  This means that "
1230 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1231 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1232 "words, a straightforward, predictable isomorphism between each language."
1233 msgstr ""
1234
1235 # type: textblock
1236 #: ../src/guestfs.pod:590
1237 msgid ""
1238 "Error messages are automatically transformed into exceptions if the language "
1239 "supports it."
1240 msgstr ""
1241
1242 # type: textblock
1243 #: ../src/guestfs.pod:593
1244 msgid ""
1245 "We don't try to \"object orientify\" parts of the API in OO languages, "
1246 "although contributors are welcome to write higher level APIs above what we "
1247 "provide in their favourite languages if they wish."
1248 msgstr ""
1249
1250 # type: =item
1251 #: ../src/guestfs.pod:599
1252 msgid "B<C++>"
1253 msgstr ""
1254
1255 # type: textblock
1256 #: ../src/guestfs.pod:601
1257 msgid ""
1258 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1259 "identical to the C API.  C++ classes and exceptions are not used."
1260 msgstr ""
1261
1262 # type: =item
1263 #: ../src/guestfs.pod:605
1264 msgid "B<C#>"
1265 msgstr ""
1266
1267 # type: textblock
1268 #: ../src/guestfs.pod:607
1269 msgid ""
1270 "The C# bindings are highly experimental.  Please read the warnings at the "
1271 "top of C<csharp/Libguestfs.cs>."
1272 msgstr ""
1273
1274 # type: =item
1275 #: ../src/guestfs.pod:610
1276 msgid "B<Haskell>"
1277 msgstr ""
1278
1279 # type: textblock
1280 #: ../src/guestfs.pod:612
1281 msgid ""
1282 "This is the only language binding that is working but incomplete.  Only "
1283 "calls which return simple integers have been bound in Haskell, and we are "
1284 "looking for help to complete this binding."
1285 msgstr ""
1286
1287 # type: =item
1288 #: ../src/guestfs.pod:616
1289 msgid "B<Java>"
1290 msgstr ""
1291
1292 # type: textblock
1293 #: ../src/guestfs.pod:618
1294 msgid ""
1295 "Full documentation is contained in the Javadoc which is distributed with "
1296 "libguestfs."
1297 msgstr ""
1298
1299 # type: =item
1300 #: ../src/guestfs.pod:621
1301 msgid "B<OCaml>"
1302 msgstr ""
1303
1304 # type: textblock
1305 #: ../src/guestfs.pod:623
1306 msgid "For documentation see the file C<guestfs.mli>."
1307 msgstr ""
1308
1309 # type: =item
1310 #: ../src/guestfs.pod:625
1311 msgid "B<Perl>"
1312 msgstr ""
1313
1314 # type: textblock
1315 #: ../src/guestfs.pod:627
1316 msgid "For documentation see L<Sys::Guestfs(3)>."
1317 msgstr ""
1318
1319 # type: =item
1320 #: ../src/guestfs.pod:629
1321 msgid "B<PHP>"
1322 msgstr ""
1323
1324 # type: textblock
1325 #: ../src/guestfs.pod:631
1326 msgid ""
1327 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1328 "the php-libguestfs package for your distribution."
1329 msgstr ""
1330
1331 # type: textblock
1332 #: ../src/guestfs.pod:634
1333 msgid "The PHP binding only works correctly on 64 bit machines."
1334 msgstr ""
1335
1336 # type: =item
1337 #: ../src/guestfs.pod:636
1338 msgid "B<Python>"
1339 msgstr ""
1340
1341 # type: textblock
1342 #: ../src/guestfs.pod:638
1343 msgid "For documentation do:"
1344 msgstr ""
1345
1346 # type: verbatim
1347 #: ../src/guestfs.pod:640
1348 #, no-wrap
1349 msgid ""
1350 " $ python\n"
1351 " >>> import guestfs\n"
1352 " >>> help (guestfs)\n"
1353 "\n"
1354 msgstr ""
1355
1356 # type: =item
1357 #: ../src/guestfs.pod:644
1358 msgid "B<Ruby>"
1359 msgstr ""
1360
1361 # type: textblock
1362 #: ../src/guestfs.pod:646
1363 msgid ""
1364 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1365 "can find examples written in Ruby in the libguestfs source."
1366 msgstr ""
1367
1368 # type: =item
1369 #: ../src/guestfs.pod:649
1370 msgid "B<shell scripts>"
1371 msgstr ""
1372
1373 # type: textblock
1374 #: ../src/guestfs.pod:651
1375 msgid "For documentation see L<guestfish(1)>."
1376 msgstr ""
1377
1378 # type: =head2
1379 #: ../src/guestfs.pod:655
1380 msgid "LIBGUESTFS GOTCHAS"
1381 msgstr ""
1382
1383 # type: textblock
1384 #: ../src/guestfs.pod:657
1385 msgid ""
1386 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1387 "system [...] that works in the way it is documented but is counterintuitive "
1388 "and almost invites mistakes.\""
1389 msgstr ""
1390
1391 # type: textblock
1392 #: ../src/guestfs.pod:661
1393 msgid ""
1394 "Since we developed libguestfs and the associated tools, there are several "
1395 "things we would have designed differently, but are now stuck with for "
1396 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1397 "release, you can expect these to change.  Beware of them."
1398 msgstr ""
1399
1400 # type: =item
1401 #: ../src/guestfs.pod:669
1402 msgid "Autosync / forgetting to sync."
1403 msgstr ""
1404
1405 # type: textblock
1406 #: ../src/guestfs.pod:671
1407 msgid ""
1408 "When modifying a filesystem from C or another language, you B<must> unmount "
1409 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1410 "libguestfs handle.  You can also call:"
1411 msgstr ""
1412
1413 # type: verbatim
1414 #: ../src/guestfs.pod:675
1415 #, no-wrap
1416 msgid ""
1417 " guestfs_set_autosync (g, 1);\n"
1418 "\n"
1419 msgstr ""
1420
1421 # type: textblock
1422 #: ../src/guestfs.pod:677
1423 msgid ""
1424 "to have the unmount/sync done automatically for you when the handle 'g' is "
1425 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1426 msgstr ""
1427
1428 # type: textblock
1429 #: ../src/guestfs.pod:681
1430 msgid ""
1431 "If you forget to do this, then it is entirely possible that your changes "
1432 "won't be written out, or will be partially written, or (very rarely) that "
1433 "you'll get disk corruption."
1434 msgstr ""
1435
1436 # type: textblock
1437 #: ../src/guestfs.pod:685
1438 msgid ""
1439 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1440 "guestfish scripts that forget to sync will work just fine, which can make "
1441 "this very puzzling if you are trying to debug a problem."
1442 msgstr ""
1443
1444 # type: =item
1445 #: ../src/guestfs.pod:689
1446 msgid "Mount option C<-o sync> should not be the default."
1447 msgstr ""
1448
1449 # type: textblock
1450 #: ../src/guestfs.pod:691
1451 msgid ""
1452 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1453 "However C<-o sync> does not add any reliability benefit, but does have a "
1454 "very large performance impact."
1455 msgstr ""
1456
1457 # type: textblock
1458 #: ../src/guestfs.pod:695
1459 msgid ""
1460 "The work around is to use L</guestfs_mount_options> and set the mount "
1461 "options that you actually want to use."
1462 msgstr ""
1463
1464 # type: =item
1465 #: ../src/guestfs.pod:698
1466 msgid "Read-only should be the default."
1467 msgstr ""
1468
1469 # type: textblock
1470 #: ../src/guestfs.pod:700
1471 msgid ""
1472 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1473 "specify I<--rw> if you want to make changes to the image."
1474 msgstr ""
1475
1476 # type: textblock
1477 #: ../src/guestfs.pod:703
1478 msgid "This would reduce the potential to corrupt live VM images."
1479 msgstr ""
1480
1481 # type: textblock
1482 #: ../src/guestfs.pod:705
1483 msgid ""
1484 "Note that many filesystems change the disk when you just mount and unmount, "
1485 "even if you didn't perform any writes.  You need to use L</"
1486 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1487 msgstr ""
1488
1489 # type: =item
1490 #: ../src/guestfs.pod:709
1491 msgid "guestfish command line is hard to use."
1492 msgstr ""
1493
1494 # type: textblock
1495 #: ../src/guestfs.pod:711
1496 msgid ""
1497 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1498 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1499 "exist, so it fails.  In earlier versions of guestfish the error message was "
1500 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1501 "we should have used C<guestfish -c command> to run commands."
1502 msgstr ""
1503
1504 # type: =item
1505 #: ../src/guestfs.pod:718
1506 msgid "guestfish megabyte modifiers don't work right on all commands"
1507 msgstr ""
1508
1509 # type: textblock
1510 #: ../src/guestfs.pod:720
1511 msgid ""
1512 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1513 "other modifiers).  What guestfish actually does is to multiply the number "
1514 "part by the modifier part and pass the result to the C API.  However this "
1515 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1516 "expecting some other unit (eg. megabytes)."
1517 msgstr ""
1518
1519 # type: textblock
1520 #: ../src/guestfs.pod:727
1521 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1522 msgstr ""
1523
1524 # type: verbatim
1525 #: ../src/guestfs.pod:729
1526 #, no-wrap
1527 msgid ""
1528 " lvcreate LV VG 100M\n"
1529 "\n"
1530 msgstr ""
1531
1532 # type: textblock
1533 #: ../src/guestfs.pod:731
1534 msgid ""
1535 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1536 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1537 "megabytes * megabytes) logical volume.  The error message you get from this "
1538 "is also a little obscure."
1539 msgstr ""
1540
1541 # type: textblock
1542 #: ../src/guestfs.pod:736
1543 msgid ""
1544 "This could be fixed in the generator by specially marking parameters and "
1545 "return values which take bytes or other units."
1546 msgstr ""
1547
1548 # type: =item
1549 #: ../src/guestfs.pod:739
1550 msgid "Library should return errno with error messages."
1551 msgstr ""
1552
1553 # type: textblock
1554 #: ../src/guestfs.pod:741
1555 msgid ""
1556 "It would be a nice-to-have to be able to get the original value of 'errno' "
1557 "from inside the appliance along error paths (where set).  Currently "
1558 "L<guestmount(1)> goes through hoops to try to reverse the error message "
1559 "string into an errno, see the function error() in fuse/guestmount.c."
1560 msgstr ""
1561
1562 # type: textblock
1563 #: ../src/guestfs.pod:747
1564 msgid ""
1565 "In libguestfs 1.5.4, the protocol was changed so that the Linux errno is "
1566 "sent back from the daemon."
1567 msgstr ""
1568
1569 # type: =head2
1570 #: ../src/guestfs.pod:752
1571 msgid "PROTOCOL LIMITS"
1572 msgstr ""
1573
1574 # type: textblock
1575 #: ../src/guestfs.pod:754
1576 msgid ""
1577 "Internally libguestfs uses a message-based protocol to pass API calls and "
1578 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1579 "plenty more detail about this).  The maximum message size used by the "
1580 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1581 "aware of this limit.  The API calls which may be affected are individually "
1582 "documented, with a link back to this section of the documentation."
1583 msgstr ""
1584
1585 # type: textblock
1586 #: ../src/guestfs.pod:762
1587 msgid ""
1588 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1589 "a simple string.  Because this string is at some point internally encoded as "
1590 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1591 "the requested file is larger than this then you will get an error."
1592 msgstr ""
1593
1594 # type: textblock
1595 #: ../src/guestfs.pod:768
1596 msgid ""
1597 "In order to transfer large files into and out of the guest filesystem, you "
1598 "need to use particular calls that support this.  The sections L</UPLOADING> "
1599 "and L</DOWNLOADING> document how to do this."
1600 msgstr ""
1601
1602 # type: textblock
1603 #: ../src/guestfs.pod:772
1604 msgid ""
1605 "You might also consider mounting the disk image using our FUSE filesystem "
1606 "support (L<guestmount(1)>)."
1607 msgstr ""
1608
1609 # type: =head2
1610 #: ../src/guestfs.pod:775
1611 msgid "KEYS AND PASSPHRASES"
1612 msgstr ""
1613
1614 # type: textblock
1615 #: ../src/guestfs.pod:777
1616 msgid ""
1617 "Certain libguestfs calls take a parameter that contains sensitive key "
1618 "material, passed in as a C string."
1619 msgstr ""
1620
1621 # type: textblock
1622 #: ../src/guestfs.pod:780
1623 msgid ""
1624 "In the future we would hope to change the libguestfs implementation so that "
1625 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1626 "swap.  However this is I<not> done at the moment, because of the complexity "
1627 "of such an implementation."
1628 msgstr ""
1629
1630 # type: textblock
1631 #: ../src/guestfs.pod:785
1632 msgid ""
1633 "Therefore you should be aware that any key parameter you pass to libguestfs "
1634 "might end up being written out to the swap partition.  If this is a concern, "
1635 "scrub the swap partition or don't use libguestfs on encrypted devices."
1636 msgstr ""
1637
1638 # type: =head1
1639 #: ../src/guestfs.pod:790
1640 msgid "CONNECTION MANAGEMENT"
1641 msgstr ""
1642
1643 # type: =head2
1644 #: ../src/guestfs.pod:792
1645 msgid "guestfs_h *"
1646 msgstr ""
1647
1648 # type: textblock
1649 #: ../src/guestfs.pod:794
1650 msgid ""
1651 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1652 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1653 "handle and release all resources used."
1654 msgstr ""
1655
1656 # type: textblock
1657 #: ../src/guestfs.pod:798
1658 msgid ""
1659 "For information on using multiple handles and threads, see the section L</"
1660 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1661 msgstr ""
1662
1663 # type: =head2
1664 #: ../src/guestfs.pod:801
1665 msgid "guestfs_create"
1666 msgstr ""
1667
1668 # type: verbatim
1669 #: ../src/guestfs.pod:803
1670 #, no-wrap
1671 msgid ""
1672 " guestfs_h *guestfs_create (void);\n"
1673 "\n"
1674 msgstr ""
1675
1676 # type: textblock
1677 #: ../src/guestfs.pod:805
1678 msgid "Create a connection handle."
1679 msgstr ""
1680
1681 # type: textblock
1682 #: ../src/guestfs.pod:807
1683 msgid "You have to call L</guestfs_add_drive> on the handle at least once."
1684 msgstr ""
1685
1686 # type: textblock
1687 #: ../src/guestfs.pod:809
1688 msgid ""
1689 "This function returns a non-NULL pointer to a handle on success or NULL on "
1690 "error."
1691 msgstr ""
1692
1693 # type: textblock
1694 #: ../src/guestfs.pod:812
1695 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1696 msgstr ""
1697
1698 # type: textblock
1699 #: ../src/guestfs.pod:814
1700 msgid ""
1701 "You may also want to configure error handling for the handle.  See L</ERROR "
1702 "HANDLING> section below."
1703 msgstr ""
1704
1705 # type: =head2
1706 #: ../src/guestfs.pod:817
1707 msgid "guestfs_close"
1708 msgstr ""
1709
1710 # type: verbatim
1711 #: ../src/guestfs.pod:819
1712 #, no-wrap
1713 msgid ""
1714 " void guestfs_close (guestfs_h *g);\n"
1715 "\n"
1716 msgstr ""
1717
1718 # type: textblock
1719 #: ../src/guestfs.pod:821
1720 msgid "This closes the connection handle and frees up all resources used."
1721 msgstr ""
1722
1723 # type: =head1
1724 #: ../src/guestfs.pod:823
1725 msgid "ERROR HANDLING"
1726 msgstr ""
1727
1728 # type: textblock
1729 #: ../src/guestfs.pod:825
1730 msgid ""
1731 "The convention in all functions that return C<int> is that they return C<-1> "
1732 "to indicate an error.  You can get additional information on errors by "
1733 "calling L</guestfs_last_error> and/or by setting up an error handler with L</"
1734 "guestfs_set_error_handler>."
1735 msgstr ""
1736
1737 # type: textblock
1738 #: ../src/guestfs.pod:830
1739 msgid "The default error handler prints the information string to C<stderr>."
1740 msgstr ""
1741
1742 # type: textblock
1743 #: ../src/guestfs.pod:832
1744 msgid ""
1745 "Out of memory errors are handled differently.  The default action is to call "
1746 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
1747 "guestfs_set_out_of_memory_handler>."
1748 msgstr ""
1749
1750 # type: =head2
1751 #: ../src/guestfs.pod:836
1752 msgid "guestfs_last_error"
1753 msgstr ""
1754
1755 # type: verbatim
1756 #: ../src/guestfs.pod:838
1757 #, no-wrap
1758 msgid ""
1759 " const char *guestfs_last_error (guestfs_h *g);\n"
1760 "\n"
1761 msgstr ""
1762
1763 # type: textblock
1764 #: ../src/guestfs.pod:840
1765 msgid ""
1766 "This returns the last error message that happened on C<g>.  If there has not "
1767 "been an error since the handle was created, then this returns C<NULL>."
1768 msgstr ""
1769
1770 # type: textblock
1771 #: ../src/guestfs.pod:844
1772 msgid ""
1773 "The lifetime of the returned string is until the next error occurs, or L</"
1774 "guestfs_close> is called."
1775 msgstr ""
1776
1777 # type: textblock
1778 #: ../src/guestfs.pod:847
1779 msgid ""
1780 "The error string is not localized (ie. is always in English), because this "
1781 "makes searching for error messages in search engines give the largest number "
1782 "of results."
1783 msgstr ""
1784
1785 # type: =head2
1786 #: ../src/guestfs.pod:851
1787 msgid "guestfs_set_error_handler"
1788 msgstr ""
1789
1790 # type: verbatim
1791 #: ../src/guestfs.pod:853
1792 #, no-wrap
1793 msgid ""
1794 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1795 "                                           void *opaque,\n"
1796 "                                           const char *msg);\n"
1797 " void guestfs_set_error_handler (guestfs_h *g,\n"
1798 "                                 guestfs_error_handler_cb cb,\n"
1799 "                                 void *opaque);\n"
1800 "\n"
1801 msgstr ""
1802
1803 # type: textblock
1804 #: ../src/guestfs.pod:860
1805 msgid ""
1806 "The callback C<cb> will be called if there is an error.  The parameters "
1807 "passed to the callback are an opaque data pointer and the error message "
1808 "string."
1809 msgstr ""
1810
1811 # type: textblock
1812 #: ../src/guestfs.pod:864
1813 msgid ""
1814 "Note that the message string C<msg> is freed as soon as the callback "
1815 "function returns, so if you want to stash it somewhere you must make your "
1816 "own copy."
1817 msgstr ""
1818
1819 # type: textblock
1820 #: ../src/guestfs.pod:868
1821 msgid "The default handler prints messages on C<stderr>."
1822 msgstr ""
1823
1824 # type: textblock
1825 #: ../src/guestfs.pod:870
1826 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1827 msgstr ""
1828
1829 # type: =head2
1830 #: ../src/guestfs.pod:872
1831 msgid "guestfs_get_error_handler"
1832 msgstr ""
1833
1834 # type: verbatim
1835 #: ../src/guestfs.pod:874
1836 #, no-wrap
1837 msgid ""
1838 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1839 "                                                     void **opaque_rtn);\n"
1840 "\n"
1841 msgstr ""
1842
1843 # type: textblock
1844 #: ../src/guestfs.pod:877
1845 msgid "Returns the current error handler callback."
1846 msgstr ""
1847
1848 # type: =head2
1849 #: ../src/guestfs.pod:879
1850 msgid "guestfs_set_out_of_memory_handler"
1851 msgstr ""
1852
1853 # type: verbatim
1854 #: ../src/guestfs.pod:881
1855 #, no-wrap
1856 msgid ""
1857 " typedef void (*guestfs_abort_cb) (void);\n"
1858 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1859 "                                        guestfs_abort_cb);\n"
1860 "\n"
1861 msgstr ""
1862
1863 # type: textblock
1864 #: ../src/guestfs.pod:885
1865 msgid ""
1866 "The callback C<cb> will be called if there is an out of memory situation.  "
1867 "I<Note this callback must not return>."
1868 msgstr ""
1869
1870 # type: textblock
1871 #: ../src/guestfs.pod:888
1872 msgid "The default is to call L<abort(3)>."
1873 msgstr ""
1874
1875 # type: textblock
1876 #: ../src/guestfs.pod:890
1877 msgid ""
1878 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
1879 msgstr ""
1880
1881 # type: =head2
1882 #: ../src/guestfs.pod:893
1883 msgid "guestfs_get_out_of_memory_handler"
1884 msgstr ""
1885
1886 # type: verbatim
1887 #: ../src/guestfs.pod:895
1888 #, no-wrap
1889 msgid ""
1890 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
1891 "\n"
1892 msgstr ""
1893
1894 # type: textblock
1895 #: ../src/guestfs.pod:897
1896 msgid "This returns the current out of memory handler."
1897 msgstr ""
1898
1899 # type: =head1
1900 #: ../src/guestfs.pod:899
1901 msgid "PATH"
1902 msgstr ""
1903
1904 # type: textblock
1905 #: ../src/guestfs.pod:901
1906 msgid ""
1907 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1908 "internal path."
1909 msgstr ""
1910
1911 # type: textblock
1912 #: ../src/guestfs.pod:904
1913 msgid ""
1914 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1915 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1916 msgstr ""
1917
1918 # type: textblock
1919 #: ../src/guestfs.pod:907
1920 msgid ""
1921 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1922 "to change the directories that libguestfs will search in.  The value is a "
1923 "colon-separated list of paths.  The current directory is I<not> searched "
1924 "unless the path contains an empty element or C<.>.  For example "
1925 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1926 "then C</usr/lib/guestfs>."
1927 msgstr ""
1928
1929 # type: =head1
1930 #: ../src/guestfs.pod:914
1931 msgid "HIGH-LEVEL API ACTIONS"
1932 msgstr ""
1933
1934 # type: =head2
1935 #: ../src/guestfs.pod:916
1936 msgid "ABI GUARANTEE"
1937 msgstr ""
1938
1939 # type: textblock
1940 #: ../src/guestfs.pod:918
1941 msgid ""
1942 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1943 "actions as outlined in this section.  Although we will deprecate some "
1944 "actions, for example if they get replaced by newer calls, we will keep the "
1945 "old actions forever.  This allows you the developer to program in confidence "
1946 "against the libguestfs API."
1947 msgstr ""
1948
1949 # type: textblock
1950 #: ../src/guestfs.pod:924 ../fish/guestfish.pod:926
1951 msgid "@ACTIONS@"
1952 msgstr ""
1953
1954 # type: =head1
1955 #: ../src/guestfs.pod:926
1956 msgid "STRUCTURES"
1957 msgstr ""
1958
1959 # type: textblock
1960 #: ../src/guestfs.pod:928
1961 msgid "@STRUCTS@"
1962 msgstr ""
1963
1964 # type: =head1
1965 #: ../src/guestfs.pod:930
1966 msgid "AVAILABILITY"
1967 msgstr ""
1968
1969 # type: =head2
1970 #: ../src/guestfs.pod:932
1971 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
1972 msgstr ""
1973
1974 # type: textblock
1975 #: ../src/guestfs.pod:934
1976 msgid ""
1977 "Using L</guestfs_available> you can test availability of the following "
1978 "groups of functions.  This test queries the appliance to see if the "
1979 "appliance you are currently using supports the functionality."
1980 msgstr ""
1981
1982 # type: textblock
1983 #: ../src/guestfs.pod:939
1984 msgid "@AVAILABILITY@"
1985 msgstr ""
1986
1987 # type: =head2
1988 #: ../src/guestfs.pod:941
1989 msgid "GUESTFISH supported COMMAND"
1990 msgstr ""
1991
1992 # type: textblock
1993 #: ../src/guestfs.pod:943
1994 msgid ""
1995 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
1996 "prints out the available groups and whether they are supported by this build "
1997 "of libguestfs.  Note however that you have to do C<run> first."
1998 msgstr ""
1999
2000 # type: =head2
2001 #: ../src/guestfs.pod:948
2002 msgid "SINGLE CALLS AT COMPILE TIME"
2003 msgstr ""
2004
2005 # type: textblock
2006 #: ../src/guestfs.pod:950
2007 msgid ""
2008 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2009 "function, such as:"
2010 msgstr ""
2011
2012 # type: verbatim
2013 #: ../src/guestfs.pod:953
2014 #, no-wrap
2015 msgid ""
2016 " #define LIBGUESTFS_HAVE_DD 1\n"
2017 "\n"
2018 msgstr ""
2019
2020 # type: textblock
2021 #: ../src/guestfs.pod:955
2022 msgid "if L</guestfs_dd> is available."
2023 msgstr ""
2024
2025 # type: textblock
2026 #: ../src/guestfs.pod:957
2027 msgid ""
2028 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2029 "function is available at compile time, we recommended using build tools such "
2030 "as autoconf or cmake.  For example in autotools you could use:"
2031 msgstr ""
2032
2033 # type: verbatim
2034 #: ../src/guestfs.pod:962
2035 #, no-wrap
2036 msgid ""
2037 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2038 " AC_CHECK_FUNCS([guestfs_dd])\n"
2039 "\n"
2040 msgstr ""
2041
2042 # type: textblock
2043 #: ../src/guestfs.pod:965
2044 msgid ""
2045 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2046 "in your program."
2047 msgstr ""
2048
2049 # type: =head2
2050 #: ../src/guestfs.pod:968
2051 msgid "SINGLE CALLS AT RUN TIME"
2052 msgstr ""
2053
2054 # type: textblock
2055 #: ../src/guestfs.pod:970
2056 msgid ""
2057 "Testing at compile time doesn't guarantee that a function really exists in "
2058 "the library.  The reason is that you might be dynamically linked against a "
2059 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2060 "This situation unfortunately results in a segmentation fault, which is a "
2061 "shortcoming of the C dynamic linking system itself."
2062 msgstr ""
2063
2064 # type: textblock
2065 #: ../src/guestfs.pod:977
2066 msgid ""
2067 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2068 "in this example program (note that you still need the compile time check as "
2069 "well):"
2070 msgstr ""
2071
2072 # type: verbatim
2073 #: ../src/guestfs.pod:981
2074 #, no-wrap
2075 msgid ""
2076 " #include <stdio.h>\n"
2077 " #include <stdlib.h>\n"
2078 " #include <unistd.h>\n"
2079 " #include <dlfcn.h>\n"
2080 " #include <guestfs.h>\n"
2081 " \n"
2082 msgstr ""
2083
2084 # type: verbatim
2085 #: ../src/guestfs.pod:987
2086 #, no-wrap
2087 msgid ""
2088 " main ()\n"
2089 " {\n"
2090 " #ifdef LIBGUESTFS_HAVE_DD\n"
2091 "   void *dl;\n"
2092 "   int has_function;\n"
2093 " \n"
2094 msgstr ""
2095
2096 # type: verbatim
2097 #: ../src/guestfs.pod:993
2098 #, no-wrap
2099 msgid ""
2100 "   /* Test if the function guestfs_dd is really available. */\n"
2101 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2102 "   if (!dl) {\n"
2103 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2104 "     exit (EXIT_FAILURE);\n"
2105 "   }\n"
2106 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2107 "   dlclose (dl);\n"
2108 " \n"
2109 msgstr ""
2110
2111 # type: verbatim
2112 #: ../src/guestfs.pod:1002
2113 #, no-wrap
2114 msgid ""
2115 "   if (!has_function)\n"
2116 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2117 "   else {\n"
2118 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2119 "     /* Now it's safe to call\n"
2120 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2121 "     */\n"
2122 "   }\n"
2123 " #else\n"
2124 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2125 " #endif\n"
2126 "  }\n"
2127 "\n"
2128 msgstr ""
2129
2130 # type: textblock
2131 #: ../src/guestfs.pod:1015
2132 msgid ""
2133 "You may think the above is an awful lot of hassle, and it is.  There are "
2134 "other ways outside of the C linking system to ensure that this kind of "
2135 "incompatibility never arises, such as using package versioning:"
2136 msgstr ""
2137
2138 # type: verbatim
2139 #: ../src/guestfs.pod:1020
2140 #, no-wrap
2141 msgid ""
2142 " Requires: libguestfs >= 1.0.80\n"
2143 "\n"
2144 msgstr ""
2145
2146 # type: =end
2147 #: ../src/guestfs.pod:1022 ../src/guestfs.pod:1027
2148 msgid "html"
2149 msgstr ""
2150
2151 # type: textblock
2152 #: ../src/guestfs.pod:1024
2153 msgid ""
2154 "<!-- old anchor for the next section --> <a name="
2155 "\"state_machine_and_low_level_event_api\"/>"
2156 msgstr ""
2157
2158 # type: =head1
2159 #: ../src/guestfs.pod:1029
2160 msgid "ARCHITECTURE"
2161 msgstr ""
2162
2163 # type: textblock
2164 #: ../src/guestfs.pod:1031
2165 msgid ""
2166 "Internally, libguestfs is implemented by running an appliance (a special "
2167 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2168 "process of the main program."
2169 msgstr ""
2170
2171 # type: verbatim
2172 #: ../src/guestfs.pod:1035
2173 #, no-wrap
2174 msgid ""
2175 "  ___________________\n"
2176 " /                   \\\n"
2177 " | main program      |\n"
2178 " |                   |\n"
2179 " |                   |           child process / appliance\n"
2180 " |                   |           __________________________\n"
2181 " |                   |          / qemu                     \\\n"
2182 " +-------------------+   RPC    |      +-----------------+ |\n"
2183 " | libguestfs     <--------------------> guestfsd        | |\n"
2184 " |                   |          |      +-----------------+ |\n"
2185 " \\___________________/          |      | Linux kernel    | |\n"
2186 "                                |      +--^--------------+ |\n"
2187 "                                \\_________|________________/\n"
2188 "                                          |\n"
2189 "                                   _______v______\n"
2190 "                                  /              \\\n"
2191 "                                  | Device or    |\n"
2192 "                                  | disk image   |\n"
2193 "                                  \\______________/\n"
2194 "\n"
2195 msgstr ""
2196
2197 # type: textblock
2198 #: ../src/guestfs.pod:1055
2199 msgid ""
2200 "The library, linked to the main program, creates the child process and hence "
2201 "the appliance in the L</guestfs_launch> function."
2202 msgstr ""
2203
2204 # type: textblock
2205 #: ../src/guestfs.pod:1058
2206 msgid ""
2207 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2208 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2209 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2210 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2211 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2212 "attached to the qemu process which translates device access by the "
2213 "appliance's Linux kernel into accesses to the image."
2214 msgstr ""
2215
2216 # type: textblock
2217 #: ../src/guestfs.pod:1067
2218 msgid ""
2219 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2220 "Although the disk image you are attached to might also be used by some "
2221 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2222 "care if both libguestfs's qemu process and your virtual machine are trying "
2223 "to update the disk image at the same time, since these usually results in "
2224 "massive disk corruption)."
2225 msgstr ""
2226
2227 # type: =head1
2228 #: ../src/guestfs.pod:1074
2229 msgid "STATE MACHINE"
2230 msgstr ""
2231
2232 # type: textblock
2233 #: ../src/guestfs.pod:1076
2234 msgid "libguestfs uses a state machine to model the child process:"
2235 msgstr ""
2236
2237 # type: verbatim
2238 #: ../src/guestfs.pod:1078
2239 #, no-wrap
2240 msgid ""
2241 "                         |\n"
2242 "                    guestfs_create\n"
2243 "                         |\n"
2244 "                         |\n"
2245 "                     ____V_____\n"
2246 "                    /          \\\n"
2247 "                    |  CONFIG  |\n"
2248 "                    \\__________/\n"
2249 "                     ^ ^   ^  \\\n"
2250 "                    /  |    \\  \\ guestfs_launch\n"
2251 "                   /   |    _\\__V______\n"
2252 "                  /    |   /           \\\n"
2253 "                 /     |   | LAUNCHING |\n"
2254 "                /      |   \\___________/\n"
2255 "               /       |       /\n"
2256 "              /        |  guestfs_launch\n"
2257 "             /         |     /\n"
2258 "    ______  /        __|____V\n"
2259 "   /      \\ ------> /        \\\n"
2260 "   | BUSY |         | READY  |\n"
2261 "   \\______/ <------ \\________/\n"
2262 "\n"
2263 msgstr ""
2264
2265 # type: textblock
2266 #: ../src/guestfs.pod:1100
2267 msgid ""
2268 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2269 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2270 "(3) alternating between READY and BUSY as commands are issued to, and "
2271 "carried out by, the child process."
2272 msgstr ""
2273
2274 # type: textblock
2275 #: ../src/guestfs.pod:1105
2276 msgid ""
2277 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2278 "asynchronously at any time (eg. due to some internal error), and that causes "
2279 "the state to transition back to CONFIG."
2280 msgstr ""
2281
2282 # type: textblock
2283 #: ../src/guestfs.pod:1109
2284 msgid ""
2285 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2286 "issued when in the CONFIG state."
2287 msgstr ""
2288
2289 # type: textblock
2290 #: ../src/guestfs.pod:1112
2291 msgid ""
2292 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2293 "L</guestfs_launch> blocks until the child process is READY to accept "
2294 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2295 "moves the state from CONFIG to LAUNCHING while it is running."
2296 msgstr ""
2297
2298 # type: textblock
2299 #: ../src/guestfs.pod:1118
2300 msgid ""
2301 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2302 "state.  These API calls block waiting for the command to be carried out (ie. "
2303 "the state to transition to BUSY and then back to READY).  There are no non-"
2304 "blocking versions, and no way to issue more than one command per handle at "
2305 "the same time."
2306 msgstr ""
2307
2308 # type: textblock
2309 #: ../src/guestfs.pod:1124
2310 msgid ""
2311 "Finally, the child process sends asynchronous messages back to the main "
2312 "program, such as kernel log messages.  You can register a callback to "
2313 "receive these messages."
2314 msgstr ""
2315
2316 # type: =head2
2317 #: ../src/guestfs.pod:1128
2318 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2319 msgstr ""
2320
2321 # type: textblock
2322 #: ../src/guestfs.pod:1130
2323 msgid ""
2324 "The child process generates events in some situations.  Current events "
2325 "include: receiving a log message, the child process exits."
2326 msgstr ""
2327
2328 # type: textblock
2329 #: ../src/guestfs.pod:1133
2330 msgid ""
2331 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2332 "types of events."
2333 msgstr ""
2334
2335 # type: textblock
2336 #: ../src/guestfs.pod:1136
2337 msgid ""
2338 "Only I<one callback of each type> can be registered for each handle.  "
2339 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2340 "that type.  Cancel all callbacks of this type by calling this function with "
2341 "C<cb> set to C<NULL>."
2342 msgstr ""
2343
2344 # type: =head2
2345 #: ../src/guestfs.pod:1141
2346 msgid "guestfs_set_log_message_callback"
2347 msgstr ""
2348
2349 # type: verbatim
2350 #: ../src/guestfs.pod:1143
2351 #, no-wrap
2352 msgid ""
2353 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2354 "                                         char *buf, int len);\n"
2355 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2356 "                                        guestfs_log_message_cb cb,\n"
2357 "                                        void *opaque);\n"
2358 "\n"
2359 msgstr ""
2360
2361 # type: textblock
2362 #: ../src/guestfs.pod:1149
2363 msgid ""
2364 "The callback function C<cb> will be called whenever qemu or the guest writes "
2365 "anything to the console."
2366 msgstr ""
2367
2368 # type: textblock
2369 #: ../src/guestfs.pod:1152
2370 msgid "Use this function to capture kernel messages and similar."
2371 msgstr ""
2372
2373 # type: textblock
2374 #: ../src/guestfs.pod:1154
2375 msgid ""
2376 "Normally there is no log message handler, and log messages are just "
2377 "discarded."
2378 msgstr ""
2379
2380 # type: =head2
2381 #: ../src/guestfs.pod:1157
2382 msgid "guestfs_set_subprocess_quit_callback"
2383 msgstr ""
2384
2385 # type: verbatim
2386 #: ../src/guestfs.pod:1159
2387 #, no-wrap
2388 msgid ""
2389 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2390 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2391 "                                            guestfs_subprocess_quit_cb cb,\n"
2392 "                                            void *opaque);\n"
2393 "\n"
2394 msgstr ""
2395
2396 # type: textblock
2397 #: ../src/guestfs.pod:1164
2398 msgid ""
2399 "The callback function C<cb> will be called when the child process quits, "
2400 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2401 "corresponds to a transition from any state to the CONFIG state)."
2402 msgstr ""
2403
2404 # type: =head2
2405 #: ../src/guestfs.pod:1169
2406 msgid "guestfs_set_launch_done_callback"
2407 msgstr ""
2408
2409 # type: verbatim
2410 #: ../src/guestfs.pod:1171
2411 #, no-wrap
2412 msgid ""
2413 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2414 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2415 "                                        guestfs_launch_done_cb cb,\n"
2416 "                                        void *opaque);\n"
2417 "\n"
2418 msgstr ""
2419
2420 # type: textblock
2421 #: ../src/guestfs.pod:1176
2422 msgid ""
2423 "The callback function C<cb> will be called when the child process becomes "
2424 "ready first time after it has been launched.  (This corresponds to a "
2425 "transition from LAUNCHING to the READY state)."
2426 msgstr ""
2427
2428 # type: =head2
2429 #: ../src/guestfs.pod:1180
2430 msgid "guestfs_set_close_callback"
2431 msgstr ""
2432
2433 # type: verbatim
2434 #: ../src/guestfs.pod:1182
2435 #, no-wrap
2436 msgid ""
2437 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2438 " void guestfs_set_close_callback (guestfs_h *g,\n"
2439 "                                  guestfs_close_cb cb,\n"
2440 "                                  void *opaque);\n"
2441 "\n"
2442 msgstr ""
2443
2444 # type: textblock
2445 #: ../src/guestfs.pod:1187
2446 msgid ""
2447 "The callback function C<cb> will be called while the handle is being closed "
2448 "(synchronously from L</guestfs_close>)."
2449 msgstr ""
2450
2451 # type: textblock
2452 #: ../src/guestfs.pod:1190
2453 msgid ""
2454 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2455 "handles that are open when the program exits.  This means that this callback "
2456 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2457 "problems in higher-level languages (eg. if your HLL interpreter has already "
2458 "been cleaned up by the time this is called, and if your callback then jumps "
2459 "into some HLL function)."
2460 msgstr ""
2461
2462 # type: =head2
2463 #: ../src/guestfs.pod:1198
2464 msgid "guestfs_set_progress_callback"
2465 msgstr ""
2466
2467 # type: verbatim
2468 #: ../src/guestfs.pod:1200
2469 #, no-wrap
2470 msgid ""
2471 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2472 "                                      int proc_nr, int serial,\n"
2473 "                                      uint64_t position, uint64_t total);\n"
2474 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2475 "                                     guestfs_progress_cb cb,\n"
2476 "                                     void *opaque);\n"
2477 "\n"
2478 msgstr ""
2479
2480 # type: textblock
2481 #: ../src/guestfs.pod:1207
2482 msgid ""
2483 "Some long-running operations can generate progress messages.  If this "
2484 "callback is registered, then it will be called each time a progress message "
2485 "is generated (usually two seconds after the operation started, and three "
2486 "times per second thereafter until it completes, although the frequency may "
2487 "change in future versions)."
2488 msgstr ""
2489
2490 # type: textblock
2491 #: ../src/guestfs.pod:1213
2492 msgid ""
2493 "The callback receives two numbers: C<position> and C<total>.  The units of "
2494 "C<total> are not defined, although for some operations C<total> may relate "
2495 "in some way to the amount of data to be transferred (eg. in bytes or "
2496 "megabytes), and C<position> may be the portion which has been transferred."
2497 msgstr ""
2498
2499 # type: textblock
2500 #: ../src/guestfs.pod:1219
2501 msgid "The only defined and stable parts of the API are:"
2502 msgstr ""
2503
2504 # type: textblock
2505 #: ../src/guestfs.pod:1225
2506 msgid ""
2507 "The callback can display to the user some type of progress bar or indicator "
2508 "which shows the ratio of C<position>:C<total>."
2509 msgstr ""
2510
2511 # type: textblock
2512 #: ../src/guestfs.pod:1230
2513 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2514 msgstr ""
2515
2516 # type: textblock
2517 #: ../src/guestfs.pod:1234
2518 msgid ""
2519 "If any progress notification is sent during a call, then a final progress "
2520 "notification is always sent when C<position> = C<total>."
2521 msgstr ""
2522
2523 # type: textblock
2524 #: ../src/guestfs.pod:1237
2525 msgid ""
2526 "This is to simplify caller code, so callers can easily set the progress "
2527 "indicator to \"100%\" at the end of the operation, without requiring special "
2528 "code to detect this case."
2529 msgstr ""
2530
2531 # type: textblock
2532 #: ../src/guestfs.pod:1243
2533 msgid ""
2534 "The callback also receives the procedure number and serial number of the "
2535 "call.  These are only useful for debugging protocol issues, and the callback "
2536 "can normally ignore them.  The callback may want to print these numbers in "
2537 "error messages or debugging messages."
2538 msgstr ""
2539
2540 # type: =head1
2541 #: ../src/guestfs.pod:1248
2542 msgid "PRIVATE DATA AREA"
2543 msgstr ""
2544
2545 # type: textblock
2546 #: ../src/guestfs.pod:1250
2547 msgid ""
2548 "You can attach named pieces of private data to the libguestfs handle, and "
2549 "fetch them by name for the lifetime of the handle.  This is called the "
2550 "private data area and is only available from the C API."
2551 msgstr ""
2552
2553 # type: textblock
2554 #: ../src/guestfs.pod:1254
2555 msgid "To attach a named piece of data, use the following call:"
2556 msgstr ""
2557
2558 # type: verbatim
2559 #: ../src/guestfs.pod:1256
2560 #, no-wrap
2561 msgid ""
2562 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2563 "\n"
2564 msgstr ""
2565
2566 # type: textblock
2567 #: ../src/guestfs.pod:1258
2568 msgid ""
2569 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2570 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2571 "overwritten."
2572 msgstr ""
2573
2574 # type: textblock
2575 #: ../src/guestfs.pod:1262
2576 msgid ""
2577 "You can use any C<key> you want, but names beginning with an underscore "
2578 "character are reserved for internal libguestfs purposes (for implementing "
2579 "language bindings).  It is recommended to prefix the name with some unique "
2580 "string to avoid collisions with other users."
2581 msgstr ""
2582
2583 # type: textblock
2584 #: ../src/guestfs.pod:1267
2585 msgid "To retrieve the pointer, use:"
2586 msgstr ""
2587
2588 # type: verbatim
2589 #: ../src/guestfs.pod:1269
2590 #, no-wrap
2591 msgid ""
2592 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2593 "\n"
2594 msgstr ""
2595
2596 # type: textblock
2597 #: ../src/guestfs.pod:1271
2598 msgid ""
2599 "This function returns C<NULL> if either no data is found associated with "
2600 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2601 "C<NULL>."
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1275
2606 msgid ""
2607 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2608 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2609 "all.  In particular, libguestfs does I<not> try to free the data when the "
2610 "handle is closed.  If the data must be freed, then the caller must either "
2611 "free it before calling L</guestfs_close> or must set up a close callback to "
2612 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2613 "can be registered for a handle)."
2614 msgstr ""
2615
2616 # type: textblock
2617 #: ../src/guestfs.pod:1283
2618 msgid ""
2619 "The private data area is implemented using a hash table, and should be "
2620 "reasonably efficient for moderate numbers of keys."
2621 msgstr ""
2622
2623 # type: =head1
2624 #: ../src/guestfs.pod:1286
2625 msgid "BLOCK DEVICE NAMING"
2626 msgstr ""
2627
2628 # type: textblock
2629 #: ../src/guestfs.pod:1288
2630 msgid ""
2631 "In the kernel there is now quite a profusion of schemata for naming block "
2632 "devices (in this context, by I<block device> I mean a physical or virtual "
2633 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2634 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2635 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2636 "for the old IDE driver (particularly for SATA devices) those devices also "
2637 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2638 "paravirtualized drivers.  This has created several different naming systems, "
2639 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2640 msgstr ""
2641
2642 # type: textblock
2643 #: ../src/guestfs.pod:1300
2644 msgid ""
2645 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2646 "Linux kernel to access block devices.  We can run a variety of appliances "
2647 "based on a variety of Linux kernels."
2648 msgstr ""
2649
2650 # type: textblock
2651 #: ../src/guestfs.pod:1304
2652 msgid ""
2653 "This causes a problem for libguestfs because many API calls use device or "
2654 "partition names.  Working scripts and the recipe (example) scripts that we "
2655 "make available over the internet could fail if the naming scheme changes."
2656 msgstr ""
2657
2658 # type: textblock
2659 #: ../src/guestfs.pod:1309
2660 msgid ""
2661 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2662 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2663 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2664 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2665 msgstr ""
2666
2667 # type: textblock
2668 #: ../src/guestfs.pod:1315
2669 msgid ""
2670 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2671 "L</guestfs_list_partitions> and similar calls return the true names of the "
2672 "devices and partitions as known to the appliance."
2673 msgstr ""
2674
2675 # type: =head2
2676 #: ../src/guestfs.pod:1320
2677 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2678 msgstr ""
2679
2680 # type: textblock
2681 #: ../src/guestfs.pod:1322
2682 msgid ""
2683 "Usually this translation is transparent.  However in some (very rare)  cases "
2684 "you may need to know the exact algorithm.  Such cases include where you use "
2685 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2686 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2687 msgstr ""
2688
2689 # type: textblock
2690 #: ../src/guestfs.pod:1328
2691 msgid ""
2692 "The algorithm is applied only to I<parameters> which are known to be either "
2693 "device or partition names.  Return values from functions such as L</"
2694 "guestfs_list_devices> are never changed."
2695 msgstr ""
2696
2697 # type: textblock
2698 #: ../src/guestfs.pod:1336
2699 msgid "Is the string a parameter which is a device or partition name?"
2700 msgstr ""
2701
2702 # type: textblock
2703 #: ../src/guestfs.pod:1340
2704 msgid "Does the string begin with C</dev/sd>?"
2705 msgstr ""
2706
2707 # type: textblock
2708 #: ../src/guestfs.pod:1344
2709 msgid ""
2710 "Does the named device exist? If so, we use that device.  However if I<not> "
2711 "then we continue with this algorithm."
2712 msgstr ""
2713
2714 # type: textblock
2715 #: ../src/guestfs.pod:1349
2716 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2717 msgstr ""
2718
2719 # type: textblock
2720 #: ../src/guestfs.pod:1351
2721 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2722 msgstr ""
2723
2724 # type: textblock
2725 #: ../src/guestfs.pod:1353
2726 msgid "If that named device exists, use it.  If not, continue."
2727 msgstr ""
2728
2729 # type: textblock
2730 #: ../src/guestfs.pod:1357
2731 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2732 msgstr ""
2733
2734 # type: textblock
2735 #: ../src/guestfs.pod:1359
2736 msgid "If that named device exists, use it.  If not, return an error."
2737 msgstr ""
2738
2739 # type: =head2
2740 #: ../src/guestfs.pod:1363
2741 msgid "PORTABILITY CONCERNS"
2742 msgstr ""
2743
2744 # type: textblock
2745 #: ../src/guestfs.pod:1365
2746 msgid ""
2747 "Although the standard naming scheme and automatic translation is useful for "
2748 "simple programs and guestfish scripts, for larger programs it is best not to "
2749 "rely on this mechanism."
2750 msgstr ""
2751
2752 # type: textblock
2753 #: ../src/guestfs.pod:1369
2754 msgid ""
2755 "Where possible for maximum future portability programs using libguestfs "
2756 "should use these future-proof techniques:"
2757 msgstr ""
2758
2759 # type: textblock
2760 #: ../src/guestfs.pod:1376
2761 msgid ""
2762 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2763 "device names, and then use those names directly."
2764 msgstr ""
2765
2766 # type: textblock
2767 #: ../src/guestfs.pod:1379
2768 msgid ""
2769 "Since those device names exist by definition, they will never be translated."
2770 msgstr ""
2771
2772 # type: textblock
2773 #: ../src/guestfs.pod:1384
2774 msgid ""
2775 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2776 "filesystem labels."
2777 msgstr ""
2778
2779 # type: =head1
2780 #: ../src/guestfs.pod:1389
2781 msgid "INTERNALS"
2782 msgstr ""
2783
2784 # type: =head2
2785 #: ../src/guestfs.pod:1391
2786 msgid "COMMUNICATION PROTOCOL"
2787 msgstr ""
2788
2789 # type: textblock
2790 #: ../src/guestfs.pod:1393
2791 msgid ""
2792 "Don't rely on using this protocol directly.  This section documents how it "
2793 "currently works, but it may change at any time."
2794 msgstr ""
2795
2796 # type: textblock
2797 #: ../src/guestfs.pod:1396
2798 msgid ""
2799 "The protocol used to talk between the library and the daemon running inside "
2800 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
2801 "1014, RFC 1832, RFC 4506)."
2802 msgstr ""
2803
2804 # type: textblock
2805 #: ../src/guestfs.pod:1400
2806 msgid ""
2807 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
2808 "this file is automatically generated)."
2809 msgstr ""
2810
2811 # type: textblock
2812 #: ../src/guestfs.pod:1403
2813 msgid ""
2814 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
2815 "and C<FileOut> parameters, which are handled with very simple request/reply "
2816 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
2817 "parameters, which use the same request and reply messages, but they may also "
2818 "be followed by files sent using a chunked encoding."
2819 msgstr ""
2820
2821 # type: =head3
2822 #: ../src/guestfs.pod:1410
2823 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
2824 msgstr ""
2825
2826 # type: textblock
2827 #: ../src/guestfs.pod:1412
2828 msgid "For ordinary functions, the request message is:"
2829 msgstr ""
2830
2831 # type: verbatim
2832 #: ../src/guestfs.pod:1414
2833 #, no-wrap
2834 msgid ""
2835 " total length (header + arguments,\n"
2836 "      but not including the length word itself)\n"
2837 " struct guestfs_message_header (encoded as XDR)\n"
2838 " struct guestfs_<foo>_args (encoded as XDR)\n"
2839 "\n"
2840 msgstr ""
2841
2842 # type: textblock
2843 #: ../src/guestfs.pod:1419
2844 msgid ""
2845 "The total length field allows the daemon to allocate a fixed size buffer "
2846 "into which it slurps the rest of the message.  As a result, the total length "
2847 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
2848 "effective size of any request is limited to somewhere under this size."
2849 msgstr ""
2850
2851 # type: textblock
2852 #: ../src/guestfs.pod:1425
2853 msgid ""
2854 "Note also that many functions don't take any arguments, in which case the "
2855 "C<guestfs_I<foo>_args> is completely omitted."
2856 msgstr ""
2857
2858 # type: textblock
2859 #: ../src/guestfs.pod:1428
2860 msgid ""
2861 "The header contains the procedure number (C<guestfs_proc>) which is how the "
2862 "receiver knows what type of args structure to expect, or none at all."
2863 msgstr ""
2864
2865 # type: textblock
2866 #: ../src/guestfs.pod:1432
2867 msgid "The reply message for ordinary functions is:"
2868 msgstr ""
2869
2870 # type: verbatim
2871 #: ../src/guestfs.pod:1434
2872 #, no-wrap
2873 msgid ""
2874 " total length (header + ret,\n"
2875 "      but not including the length word itself)\n"
2876 " struct guestfs_message_header (encoded as XDR)\n"
2877 " struct guestfs_<foo>_ret (encoded as XDR)\n"
2878 "\n"
2879 msgstr ""
2880
2881 # type: textblock
2882 #: ../src/guestfs.pod:1439
2883 msgid ""
2884 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
2885 "functions that return no formal return values."
2886 msgstr ""
2887
2888 # type: textblock
2889 #: ../src/guestfs.pod:1442
2890 msgid ""
2891 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
2892 msgstr ""
2893
2894 # type: textblock
2895 #: ../src/guestfs.pod:1445
2896 msgid ""
2897 "In the case of an error, a flag is set in the header, and the reply message "
2898 "is slightly changed:"
2899 msgstr ""
2900
2901 # type: verbatim
2902 #: ../src/guestfs.pod:1448
2903 #, no-wrap
2904 msgid ""
2905 " total length (header + error,\n"
2906 "      but not including the length word itself)\n"
2907 " struct guestfs_message_header (encoded as XDR)\n"
2908 " struct guestfs_message_error (encoded as XDR)\n"
2909 "\n"
2910 msgstr ""
2911
2912 # type: textblock
2913 #: ../src/guestfs.pod:1453
2914 msgid ""
2915 "The C<guestfs_message_error> structure contains the error message as a "
2916 "string."
2917 msgstr ""
2918
2919 # type: =head3
2920 #: ../src/guestfs.pod:1456
2921 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
2922 msgstr ""
2923
2924 # type: textblock
2925 #: ../src/guestfs.pod:1458
2926 msgid ""
2927 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
2928 "The normal request message is sent (see above).  However this is followed by "
2929 "a sequence of file chunks."
2930 msgstr ""
2931
2932 # type: verbatim
2933 #: ../src/guestfs.pod:1462
2934 #, no-wrap
2935 msgid ""
2936 " total length (header + arguments,\n"
2937 "      but not including the length word itself,\n"
2938 "      and not including the chunks)\n"
2939 " struct guestfs_message_header (encoded as XDR)\n"
2940 " struct guestfs_<foo>_args (encoded as XDR)\n"
2941 " sequence of chunks for FileIn param #0\n"
2942 " sequence of chunks for FileIn param #1 etc.\n"
2943 "\n"
2944 msgstr ""
2945
2946 # type: textblock
2947 #: ../src/guestfs.pod:1470
2948 msgid "The \"sequence of chunks\" is:"
2949 msgstr ""
2950
2951 # type: verbatim
2952 #: ../src/guestfs.pod:1472
2953 #, no-wrap
2954 msgid ""
2955 " length of chunk (not including length word itself)\n"
2956 " struct guestfs_chunk (encoded as XDR)\n"
2957 " length of chunk\n"
2958 " struct guestfs_chunk (encoded as XDR)\n"
2959 "   ...\n"
2960 " length of chunk\n"
2961 " struct guestfs_chunk (with data.data_len == 0)\n"
2962 "\n"
2963 msgstr ""
2964
2965 # type: textblock
2966 #: ../src/guestfs.pod:1480
2967 msgid ""
2968 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
2969 "is set in the final chunk to indicate either successful completion or early "
2970 "cancellation."
2971 msgstr ""
2972
2973 # type: textblock
2974 #: ../src/guestfs.pod:1484
2975 msgid ""
2976 "At time of writing there are no functions that have more than one FileIn "
2977 "parameter.  However this is (theoretically) supported, by sending the "
2978 "sequence of chunks for each FileIn parameter one after another (from left to "
2979 "right)."
2980 msgstr ""
2981
2982 # type: textblock
2983 #: ../src/guestfs.pod:1489
2984 msgid ""
2985 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
2986 "transfer.  The library does this by sending a chunk with a special flag set "
2987 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
2988 "RPC, does I<not> send any reply, and goes back to reading the next request."
2989 msgstr ""
2990
2991 # type: textblock
2992 #: ../src/guestfs.pod:1495
2993 msgid ""
2994 "The daemon may also cancel.  It does this by writing a special word "
2995 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
2996 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
2997 "cancel chunk).  The special word is chosen so that even if cancellation "
2998 "happens right at the end of the transfer (after the library has finished "
2999 "writing and has started listening for the reply), the \"spurious\" cancel "
3000 "flag will not be confused with the reply message."
3001 msgstr ""
3002
3003 # type: textblock
3004 #: ../src/guestfs.pod:1504
3005 msgid ""
3006 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3007 "limit), and also files where the size is not known in advance (eg. from "
3008 "pipes or sockets).  However the chunks are rather small "
3009 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3010 "to keep much in memory."
3011 msgstr ""
3012
3013 # type: =head3
3014 #: ../src/guestfs.pod:1510
3015 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3016 msgstr ""
3017
3018 # type: textblock
3019 #: ../src/guestfs.pod:1512
3020 msgid ""
3021 "The protocol for FileOut parameters is exactly the same as for FileIn "
3022 "parameters, but with the roles of daemon and library reversed."
3023 msgstr ""
3024
3025 # type: verbatim
3026 #: ../src/guestfs.pod:1515
3027 #, no-wrap
3028 msgid ""
3029 " total length (header + ret,\n"
3030 "      but not including the length word itself,\n"
3031 "      and not including the chunks)\n"
3032 " struct guestfs_message_header (encoded as XDR)\n"
3033 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3034 " sequence of chunks for FileOut param #0\n"
3035 " sequence of chunks for FileOut param #1 etc.\n"
3036 "\n"
3037 msgstr ""
3038
3039 # type: =head3
3040 #: ../src/guestfs.pod:1523
3041 msgid "INITIAL MESSAGE"
3042 msgstr ""
3043
3044 # type: textblock
3045 #: ../src/guestfs.pod:1525
3046 msgid ""
3047 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3048 "which indicates that the guest and daemon is alive.  This is what L</"
3049 "guestfs_launch> waits for."
3050 msgstr ""
3051
3052 # type: =head3
3053 #: ../src/guestfs.pod:1529
3054 msgid "PROGRESS NOTIFICATION MESSAGES"
3055 msgstr ""
3056
3057 # type: textblock
3058 #: ../src/guestfs.pod:1531
3059 msgid ""
3060 "The daemon may send progress notification messages at any time.  These are "
3061 "distinguished by the normal length word being replaced by "
3062 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3063 msgstr ""
3064
3065 # type: textblock
3066 #: ../src/guestfs.pod:1535
3067 msgid ""
3068 "The library turns them into progress callbacks (see "
3069 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3070 "discards them if not."
3071 msgstr ""
3072
3073 # type: textblock
3074 #: ../src/guestfs.pod:1539
3075 msgid ""
3076 "The daemon self-limits the frequency of progress messages it sends (see "
3077 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3078 "messages."
3079 msgstr ""
3080
3081 # type: =head1
3082 #: ../src/guestfs.pod:1543
3083 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3084 msgstr ""
3085
3086 # type: textblock
3087 #: ../src/guestfs.pod:1545
3088 msgid ""
3089 "All high-level libguestfs actions are synchronous.  If you want to use "
3090 "libguestfs asynchronously then you must create a thread."
3091 msgstr ""
3092
3093 # type: textblock
3094 #: ../src/guestfs.pod:1548
3095 msgid ""
3096 "Only use the handle from a single thread.  Either use the handle exclusively "
3097 "from one thread, or provide your own mutex so that two threads cannot issue "
3098 "calls on the same handle at the same time."
3099 msgstr ""
3100
3101 # type: textblock
3102 #: ../src/guestfs.pod:1552
3103 msgid ""
3104 "See the graphical program guestfs-browser for one possible architecture for "
3105 "multithreaded programs using libvirt and libguestfs."
3106 msgstr ""
3107
3108 # type: =head1
3109 #: ../src/guestfs.pod:1555
3110 msgid "QEMU WRAPPERS"
3111 msgstr ""
3112
3113 # type: textblock
3114 #: ../src/guestfs.pod:1557
3115 msgid ""
3116 "If you want to compile your own qemu, run qemu from a non-standard location, "
3117 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3118 "around qemu."
3119 msgstr ""
3120
3121 # type: textblock
3122 #: ../src/guestfs.pod:1561
3123 msgid ""
3124 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3125 "last command in the shell script (so that qemu replaces the shell and "
3126 "becomes the direct child of the libguestfs-using program).  If you don't do "
3127 "this, then the qemu process won't be cleaned up correctly."
3128 msgstr ""
3129
3130 # type: textblock
3131 #: ../src/guestfs.pod:1566
3132 msgid ""
3133 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3134 "source:"
3135 msgstr ""
3136
3137 # type: verbatim
3138 #: ../src/guestfs.pod:1569
3139 #, no-wrap
3140 msgid ""
3141 " #!/bin/sh -\n"
3142 " qemudir=/home/rjones/d/qemu\n"
3143 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
3144 "\n"
3145 msgstr ""
3146
3147 # type: textblock
3148 #: ../src/guestfs.pod:1573
3149 msgid ""
3150 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3151 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3152 "example:"
3153 msgstr ""
3154
3155 # type: verbatim
3156 #: ../src/guestfs.pod:1577
3157 #, no-wrap
3158 msgid ""
3159 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3160 "\n"
3161 msgstr ""
3162
3163 # type: textblock
3164 #: ../src/guestfs.pod:1579
3165 msgid ""
3166 "Note that libguestfs also calls qemu with the -help and -version options in "
3167 "order to determine features."
3168 msgstr ""
3169
3170 # type: =head1
3171 #: ../src/guestfs.pod:1582
3172 msgid "LIBGUESTFS VERSION NUMBERS"
3173 msgstr ""
3174
3175 # type: textblock
3176 #: ../src/guestfs.pod:1584
3177 msgid ""
3178 "Since April 2010, libguestfs has started to make separate development and "
3179 "stable releases, along with corresponding branches in our git repository.  "
3180 "These separate releases can be identified by version number:"
3181 msgstr ""
3182
3183 # type: verbatim
3184 #: ../src/guestfs.pod:1589
3185 #, no-wrap
3186 msgid ""
3187 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3188 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3189 "       |\n"
3190 "       v\n"
3191 " 1  .  3  .  5\n"
3192 " ^           ^\n"
3193 " |           |\n"
3194 " |           `-------- sub-version\n"
3195 " |\n"
3196 " `------ always '1' because we don't change the ABI\n"
3197 "\n"
3198 msgstr ""
3199
3200 # type: textblock
3201 #: ../src/guestfs.pod:1600
3202 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3203 msgstr ""
3204
3205 # type: textblock
3206 #: ../src/guestfs.pod:1602
3207 msgid ""
3208 "As time passes we cherry pick fixes from the development branch and backport "
3209 "those into the stable branch, the effect being that the stable branch should "
3210 "get more stable and less buggy over time.  So the stable releases are ideal "
3211 "for people who don't need new features but would just like the software to "
3212 "work."
3213 msgstr ""
3214
3215 # type: textblock
3216 #: ../src/guestfs.pod:1608
3217 msgid "Our criteria for backporting changes are:"
3218 msgstr ""
3219
3220 # type: textblock
3221 #: ../src/guestfs.pod:1614
3222 msgid ""
3223 "Documentation changes which don't affect any code are backported unless the "
3224 "documentation refers to a future feature which is not in stable."
3225 msgstr ""
3226
3227 # type: textblock
3228 #: ../src/guestfs.pod:1620
3229 msgid ""
3230 "Bug fixes which are not controversial, fix obvious problems, and have been "
3231 "well tested are backported."
3232 msgstr ""
3233
3234 # type: textblock
3235 #: ../src/guestfs.pod:1625
3236 msgid ""
3237 "Simple rearrangements of code which shouldn't affect how it works get "
3238 "backported.  This is so that the code in the two branches doesn't get too "
3239 "far out of step, allowing us to backport future fixes more easily."
3240 msgstr ""
3241
3242 # type: textblock
3243 #: ../src/guestfs.pod:1631
3244 msgid ""
3245 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3246 "exceptional case: the new feature is required in order to implement an "
3247 "important bug fix."
3248 msgstr ""
3249
3250 # type: textblock
3251 #: ../src/guestfs.pod:1637
3252 msgid ""
3253 "A new stable branch starts when we think the new features in development are "
3254 "substantial and compelling enough over the current stable branch to warrant "
3255 "it.  When that happens we create new stable and development versions 1.N.0 "
3256 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3257 "stable at this point, but by backporting fixes from development, that branch "
3258 "will stabilize over time."
3259 msgstr ""
3260
3261 # type: =head1
3262 #: ../src/guestfs.pod:1645 ../fish/guestfish.pod:933
3263 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:312
3264 #: ../tools/virt-rescue.pl:226
3265 msgid "ENVIRONMENT VARIABLES"
3266 msgstr ""
3267
3268 # type: =item
3269 #: ../src/guestfs.pod:1649 ../fish/guestfish.pod:953
3270 msgid "LIBGUESTFS_APPEND"
3271 msgstr ""
3272
3273 # type: textblock
3274 #: ../src/guestfs.pod:1651 ../fish/guestfish.pod:955
3275 msgid "Pass additional options to the guest kernel."
3276 msgstr ""
3277
3278 # type: =item
3279 #: ../src/guestfs.pod:1653 ../fish/guestfish.pod:957
3280 msgid "LIBGUESTFS_DEBUG"
3281 msgstr ""
3282
3283 # type: textblock
3284 #: ../src/guestfs.pod:1655
3285 msgid ""
3286 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3287 "effect as calling C<guestfs_set_verbose (g, 1)>."
3288 msgstr ""
3289
3290 # type: =item
3291 #: ../src/guestfs.pod:1658 ../fish/guestfish.pod:962
3292 msgid "LIBGUESTFS_MEMSIZE"
3293 msgstr ""
3294
3295 # type: textblock
3296 #: ../src/guestfs.pod:1660 ../fish/guestfish.pod:964
3297 msgid ""
3298 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3299 msgstr ""
3300
3301 # type: verbatim
3302 #: ../src/guestfs.pod:1663 ../fish/guestfish.pod:967
3303 #, no-wrap
3304 msgid ""
3305 " LIBGUESTFS_MEMSIZE=700\n"
3306 "\n"
3307 msgstr ""
3308
3309 # type: =item
3310 #: ../src/guestfs.pod:1665 ../fish/guestfish.pod:969
3311 msgid "LIBGUESTFS_PATH"
3312 msgstr ""
3313
3314 # type: textblock
3315 #: ../src/guestfs.pod:1667
3316 msgid ""
3317 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3318 "the discussion of paths in section PATH above."
3319 msgstr ""
3320
3321 # type: =item
3322 #: ../src/guestfs.pod:1670 ../fish/guestfish.pod:974
3323 msgid "LIBGUESTFS_QEMU"
3324 msgstr ""
3325
3326 # type: textblock
3327 #: ../src/guestfs.pod:1672 ../fish/guestfish.pod:976
3328 msgid ""
3329 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3330 "which was found at compile time by the configure script is used."
3331 msgstr ""
3332
3333 # type: textblock
3334 #: ../src/guestfs.pod:1676
3335 msgid "See also L</QEMU WRAPPERS> above."
3336 msgstr ""
3337
3338 # type: =item
3339 #: ../src/guestfs.pod:1678 ../fish/guestfish.pod:980
3340 msgid "LIBGUESTFS_TRACE"
3341 msgstr ""
3342
3343 # type: textblock
3344 #: ../src/guestfs.pod:1680
3345 msgid ""
3346 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3347 "effect as calling C<guestfs_set_trace (g, 1)>."
3348 msgstr ""
3349
3350 # type: =item
3351 #: ../src/guestfs.pod:1683 ../fish/guestfish.pod:989
3352 msgid "TMPDIR"
3353 msgstr ""
3354
3355 # type: textblock
3356 #: ../src/guestfs.pod:1685 ../fish/guestfish.pod:991
3357 msgid "Location of temporary directory, defaults to C</tmp>."
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1687 ../fish/guestfish.pod:993
3362 msgid ""
3363 "If libguestfs was compiled to use the supermin appliance then each handle "
3364 "will require rather a large amount of space in this directory for short "
3365 "periods of time (~ 80 MB).  You can use C<$TMPDIR> to configure another "
3366 "directory to use in case C</tmp> is not large enough."
3367 msgstr ""
3368
3369 # type: =head1
3370 #: ../src/guestfs.pod:1695 ../fish/guestfish.pod:1051
3371 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:178
3372 #: ../inspector/virt-inspector.pl:846 ../tools/virt-cat.pl:163
3373 #: ../tools/virt-df.pl:482 ../tools/virt-edit.pl:325
3374 #: ../tools/virt-list-filesystems.pl:191 ../tools/virt-list-partitions.pl:229
3375 #: ../tools/virt-ls.pl:210 ../tools/virt-make-fs.pl:527
3376 #: ../tools/virt-rescue.pl:231 ../tools/virt-resize.pl:1390
3377 #: ../tools/virt-tar.pl:257 ../tools/virt-win-reg.pl:461
3378 msgid "SEE ALSO"
3379 msgstr ""
3380
3381 # type: textblock
3382 #: ../src/guestfs.pod:1697
3383 msgid ""
3384 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
3385 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
3386 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
3387 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
3388 "L<http://libguestfs.org/>."
3389 msgstr ""
3390
3391 # type: textblock
3392 #: ../src/guestfs.pod:1715
3393 msgid ""
3394 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
3395 "(8)>, L<disktype(1)>."
3396 msgstr ""
3397
3398 # type: =head1
3399 #: ../src/guestfs.pod:1722 ../tools/virt-make-fs.pl:541
3400 #: ../tools/virt-win-reg.pl:476
3401 msgid "BUGS"
3402 msgstr ""
3403
3404 # type: textblock
3405 #: ../src/guestfs.pod:1724
3406 msgid "To get a list of bugs against libguestfs use this link:"
3407 msgstr ""
3408
3409 # type: textblock
3410 #: ../src/guestfs.pod:1726
3411 msgid ""
3412 "L<https://bugzilla.redhat.com/buglist.cgi?"
3413 "component=libguestfs&product=Virtualization+Tools>"
3414 msgstr ""
3415
3416 # type: textblock
3417 #: ../src/guestfs.pod:1728
3418 msgid "To report a new bug against libguestfs use this link:"
3419 msgstr ""
3420
3421 # type: textblock
3422 #: ../src/guestfs.pod:1730
3423 msgid ""
3424 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
3425 "component=libguestfs&product=Virtualization+Tools>"
3426 msgstr ""
3427
3428 # type: textblock
3429 #: ../src/guestfs.pod:1732
3430 msgid "When reporting a bug, please check:"
3431 msgstr ""
3432
3433 # type: textblock
3434 #: ../src/guestfs.pod:1738
3435 msgid "That the bug hasn't been reported already."
3436 msgstr ""
3437
3438 # type: textblock
3439 #: ../src/guestfs.pod:1742
3440 msgid "That you are testing a recent version."
3441 msgstr ""
3442
3443 # type: textblock
3444 #: ../src/guestfs.pod:1746
3445 msgid "Describe the bug accurately, and give a way to reproduce it."
3446 msgstr ""
3447
3448 # type: textblock
3449 #: ../src/guestfs.pod:1750
3450 msgid ""
3451 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3452 "bug report."
3453 msgstr ""
3454
3455 # type: =head1
3456 #: ../src/guestfs.pod:1755 ../fish/guestfish.pod:1067
3457 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:189
3458 #: ../inspector/virt-inspector.pl:855
3459 msgid "AUTHORS"
3460 msgstr ""
3461
3462 # type: textblock
3463 #: ../src/guestfs.pod:1757 ../fish/guestfish.pod:1069
3464 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:191
3465 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3466 msgstr ""
3467
3468 # type: =head1
3469 #: ../src/guestfs.pod:1759 ../fish/guestfish.pod:1071
3470 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:193
3471 #: ../inspector/virt-inspector.pl:861 ../tools/virt-cat.pl:177
3472 #: ../tools/virt-df.pl:495 ../tools/virt-edit.pl:341
3473 #: ../tools/virt-list-filesystems.pl:207 ../tools/virt-list-partitions.pl:244
3474 #: ../tools/virt-ls.pl:225 ../tools/virt-make-fs.pl:556
3475 #: ../tools/virt-rescue.pl:245 ../tools/virt-resize.pl:1411
3476 #: ../tools/virt-tar.pl:272 ../tools/virt-win-reg.pl:491
3477 msgid "COPYRIGHT"
3478 msgstr ""
3479
3480 # type: textblock
3481 #: ../src/guestfs.pod:1761 ../fish/guestfish.pod:1073
3482 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3483 msgstr ""
3484
3485 # type: textblock
3486 #: ../src/guestfs.pod:1764
3487 msgid ""
3488 "This library is free software; you can redistribute it and/or modify it "
3489 "under the terms of the GNU Lesser General Public License as published by the "
3490 "Free Software Foundation; either version 2 of the License, or (at your "
3491 "option) any later version."
3492 msgstr ""
3493
3494 # type: textblock
3495 #: ../src/guestfs.pod:1769
3496 msgid ""
3497 "This library is distributed in the hope that it will be useful, but WITHOUT "
3498 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3499 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3500 "for more details."
3501 msgstr ""
3502
3503 # type: textblock
3504 #: ../src/guestfs.pod:1774
3505 msgid ""
3506 "You should have received a copy of the GNU Lesser General Public License "
3507 "along with this library; if not, write to the Free Software Foundation, "
3508 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3509 msgstr ""
3510
3511 # type: =head2
3512 #: ../src/guestfs-actions.pod:1
3513 msgid "guestfs_add_cdrom"
3514 msgstr ""
3515
3516 # type: verbatim
3517 #: ../src/guestfs-actions.pod:3
3518 #, no-wrap
3519 msgid ""
3520 " int guestfs_add_cdrom (guestfs_h *g,\n"
3521 "\t\tconst char *filename);\n"
3522 "\n"
3523 msgstr ""
3524
3525 # type: textblock
3526 #: ../src/guestfs-actions.pod:6 ../fish/guestfish-actions.pod:5
3527 msgid "This function adds a virtual CD-ROM disk image to the guest."
3528 msgstr ""
3529
3530 # type: textblock
3531 #: ../src/guestfs-actions.pod:8 ../fish/guestfish-actions.pod:7
3532 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3533 msgstr ""
3534
3535 # type: textblock
3536 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:1488
3537 #: ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1186
3538 msgid "Notes:"
3539 msgstr ""
3540
3541 # type: textblock
3542 #: ../src/guestfs-actions.pod:16
3543 msgid ""
3544 "This call checks for the existence of C<filename>.  This stops you from "
3545 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3546 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3547 "instead."
3548 msgstr ""
3549
3550 # type: textblock
3551 #: ../src/guestfs-actions.pod:23
3552 msgid ""
3553 "If you just want to add an ISO file (often you use this as an efficient way "
3554 "to transfer large files into the guest), then you should probably use "
3555 "C<guestfs_add_drive_ro> instead."
3556 msgstr ""
3557
3558 # type: textblock
3559 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:63
3560 #: ../src/guestfs-actions.pod:92 ../src/guestfs-actions.pod:103
3561 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:124
3562 #: ../src/guestfs-actions.pod:135 ../src/guestfs-actions.pod:238
3563 #: ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:266
3564 #: ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:324
3565 #: ../src/guestfs-actions.pod:339 ../src/guestfs-actions.pod:403
3566 #: ../src/guestfs-actions.pod:430 ../src/guestfs-actions.pod:441
3567 #: ../src/guestfs-actions.pod:453 ../src/guestfs-actions.pod:534
3568 #: ../src/guestfs-actions.pod:549 ../src/guestfs-actions.pod:560
3569 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:717
3570 #: ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:749
3571 #: ../src/guestfs-actions.pod:824 ../src/guestfs-actions.pod:839
3572 #: ../src/guestfs-actions.pod:855 ../src/guestfs-actions.pod:866
3573 #: ../src/guestfs-actions.pod:883 ../src/guestfs-actions.pod:916
3574 #: ../src/guestfs-actions.pod:974 ../src/guestfs-actions.pod:996
3575 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1115
3576 #: ../src/guestfs-actions.pod:1146 ../src/guestfs-actions.pod:1346
3577 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1446
3578 #: ../src/guestfs-actions.pod:1794 ../src/guestfs-actions.pod:1917
3579 #: ../src/guestfs-actions.pod:1972 ../src/guestfs-actions.pod:2002
3580 #: ../src/guestfs-actions.pod:2411 ../src/guestfs-actions.pod:2423
3581 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:2548
3582 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2569
3583 #: ../src/guestfs-actions.pod:2580 ../src/guestfs-actions.pod:2592
3584 #: ../src/guestfs-actions.pod:2622 ../src/guestfs-actions.pod:2686
3585 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2717
3586 #: ../src/guestfs-actions.pod:2737 ../src/guestfs-actions.pod:2757
3587 #: ../src/guestfs-actions.pod:2786 ../src/guestfs-actions.pod:2802
3588 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:2830
3589 #: ../src/guestfs-actions.pod:2839 ../src/guestfs-actions.pod:2872
3590 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2895
3591 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2921
3592 #: ../src/guestfs-actions.pod:3001 ../src/guestfs-actions.pod:3018
3593 #: ../src/guestfs-actions.pod:3028 ../src/guestfs-actions.pod:3073
3594 #: ../src/guestfs-actions.pod:3088 ../src/guestfs-actions.pod:3103
3595 #: ../src/guestfs-actions.pod:3116 ../src/guestfs-actions.pod:3127
3596 #: ../src/guestfs-actions.pod:3138 ../src/guestfs-actions.pod:3152
3597 #: ../src/guestfs-actions.pod:3164 ../src/guestfs-actions.pod:3181
3598 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3240
3599 #: ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3272
3600 #: ../src/guestfs-actions.pod:3281 ../src/guestfs-actions.pod:3295
3601 #: ../src/guestfs-actions.pod:3305 ../src/guestfs-actions.pod:3317
3602 #: ../src/guestfs-actions.pod:3329 ../src/guestfs-actions.pod:3361
3603 #: ../src/guestfs-actions.pod:3373 ../src/guestfs-actions.pod:3390
3604 #: ../src/guestfs-actions.pod:3401 ../src/guestfs-actions.pod:3415
3605 #: ../src/guestfs-actions.pod:3455 ../src/guestfs-actions.pod:3486
3606 #: ../src/guestfs-actions.pod:3497 ../src/guestfs-actions.pod:3522
3607 #: ../src/guestfs-actions.pod:3536 ../src/guestfs-actions.pod:3551
3608 #: ../src/guestfs-actions.pod:3673 ../src/guestfs-actions.pod:3725
3609 #: ../src/guestfs-actions.pod:3744 ../src/guestfs-actions.pod:3759
3610 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:3819
3611 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:3843
3612 #: ../src/guestfs-actions.pod:3854 ../src/guestfs-actions.pod:4086
3613 #: ../src/guestfs-actions.pod:4102 ../src/guestfs-actions.pod:4113
3614 #: ../src/guestfs-actions.pod:4122 ../src/guestfs-actions.pod:4133
3615 #: ../src/guestfs-actions.pod:4142 ../src/guestfs-actions.pod:4153
3616 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4184
3617 #: ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4216
3618 #: ../src/guestfs-actions.pod:4231 ../src/guestfs-actions.pod:4251
3619 #: ../src/guestfs-actions.pod:4266 ../src/guestfs-actions.pod:4282
3620 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4316
3621 #: ../src/guestfs-actions.pod:4330 ../src/guestfs-actions.pod:4355
3622 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:4392
3623 #: ../src/guestfs-actions.pod:4413 ../src/guestfs-actions.pod:4425
3624 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:4453
3625 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4507
3626 #: ../src/guestfs-actions.pod:4530 ../src/guestfs-actions.pod:4620
3627 #: ../src/guestfs-actions.pod:4726 ../src/guestfs-actions.pod:4735
3628 #: ../src/guestfs-actions.pod:4745 ../src/guestfs-actions.pod:4755
3629 #: ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4784
3630 #: ../src/guestfs-actions.pod:4794 ../src/guestfs-actions.pod:4804
3631 #: ../src/guestfs-actions.pod:4816 ../src/guestfs-actions.pod:4866
3632 #: ../src/guestfs-actions.pod:4880 ../src/guestfs-actions.pod:4893
3633 #: ../src/guestfs-actions.pod:4906 ../src/guestfs-actions.pod:4920
3634 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:4947
3635 #: ../src/guestfs-actions.pod:4977 ../src/guestfs-actions.pod:4988
3636 #: ../src/guestfs-actions.pod:5023 ../src/guestfs-actions.pod:5033
3637 #: ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5076
3638 #: ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5195
3639 #: ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5252
3640 #: ../src/guestfs-actions.pod:5262 ../src/guestfs-actions.pod:5299
3641 #: ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5368
3642 #: ../src/guestfs-actions.pod:5391 ../src/guestfs-actions.pod:5448
3643 #: ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:5490
3644 msgid "This function returns 0 on success or -1 on error."
3645 msgstr ""
3646
3647 # type: =head2
3648 #: ../src/guestfs-actions.pod:31
3649 msgid "guestfs_add_drive"
3650 msgstr ""
3651
3652 # type: verbatim
3653 #: ../src/guestfs-actions.pod:33
3654 #, no-wrap
3655 msgid ""
3656 " int guestfs_add_drive (guestfs_h *g,\n"
3657 "\t\tconst char *filename);\n"
3658 "\n"
3659 msgstr ""
3660
3661 # type: textblock
3662 #: ../src/guestfs-actions.pod:36 ../fish/guestfish-actions.pod:32
3663 msgid ""
3664 "This function adds a virtual machine disk image C<filename> to the guest.  "
3665 "The first time you call this function, the disk appears as IDE disk 0 (C</"
3666 "dev/sda>) in the guest, the second time as C</dev/sdb>, and so on."
3667 msgstr ""
3668
3669 # type: textblock
3670 #: ../src/guestfs-actions.pod:41 ../fish/guestfish-actions.pod:37
3671 msgid ""
3672 "You don't necessarily need to be root when using libguestfs.  However you "
3673 "obviously do need sufficient permissions to access the filename for whatever "
3674 "operations you want to perform (ie. read access if you just want to read the "
3675 "image or write access if you want to modify the image)."
3676 msgstr ""
3677
3678 # type: textblock
3679 #: ../src/guestfs-actions.pod:47 ../fish/guestfish-actions.pod:43
3680 msgid ""
3681 "This is equivalent to the qemu parameter C<-drive file=filename,cache=off,"
3682 "if=...>."
3683 msgstr ""
3684
3685 # type: textblock
3686 #: ../src/guestfs-actions.pod:50 ../fish/guestfish-actions.pod:46
3687 msgid ""
3688 "C<cache=off> is omitted in cases where it is not supported by the underlying "
3689 "filesystem."
3690 msgstr ""
3691
3692 # type: textblock
3693 #: ../src/guestfs-actions.pod:53 ../src/guestfs-actions.pod:82
3694 msgid ""
3695 "C<if=...> is set at compile time by the configuration option C<./configure --"
3696 "with-drive-if=...>.  In the rare case where you might need to change this at "
3697 "run time, use C<guestfs_add_drive_with_if> or "
3698 "C<guestfs_add_drive_ro_with_if>."
3699 msgstr ""
3700
3701 # type: textblock
3702 #: ../src/guestfs-actions.pod:58 ../src/guestfs-actions.pod:87
3703 msgid ""
3704 "Note that this call checks for the existence of C<filename>.  This stops you "
3705 "from specifying other types of drive which are supported by qemu such as "
3706 "C<nbd:> and C<http:> URLs.  To specify those, use the general "
3707 "C<guestfs_config> call instead."
3708 msgstr ""
3709
3710 # type: =head2
3711 #: ../src/guestfs-actions.pod:65
3712 msgid "guestfs_add_drive_ro"
3713 msgstr ""
3714
3715 # type: verbatim
3716 #: ../src/guestfs-actions.pod:67
3717 #, no-wrap
3718 msgid ""
3719 " int guestfs_add_drive_ro (guestfs_h *g,\n"
3720 "\t\tconst char *filename);\n"
3721 "\n"
3722 msgstr ""
3723
3724 # type: textblock
3725 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:63
3726 msgid "This adds a drive in snapshot mode, making it effectively read-only."
3727 msgstr ""
3728
3729 # type: textblock
3730 #: ../src/guestfs-actions.pod:73 ../fish/guestfish-actions.pod:66
3731 msgid ""
3732 "Note that writes to the device are allowed, and will be seen for the "
3733 "duration of the guestfs handle, but they are written to a temporary file "
3734 "which is discarded as soon as the guestfs handle is closed.  We don't "
3735 "currently have any method to enable changes to be committed, although qemu "
3736 "can support this."
3737 msgstr ""
3738
3739 # type: textblock
3740 #: ../src/guestfs-actions.pod:79 ../fish/guestfish-actions.pod:72
3741 msgid ""
3742 "This is equivalent to the qemu parameter C<-drive file=filename,snapshot=on,"
3743 "if=...>."
3744 msgstr ""
3745
3746 # type: =head2
3747 #: ../src/guestfs-actions.pod:94
3748 msgid "guestfs_add_drive_ro_with_if"
3749 msgstr ""
3750
3751 # type: verbatim
3752 #: ../src/guestfs-actions.pod:96
3753 #, no-wrap
3754 msgid ""
3755 " int guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
3756 "\t\tconst char *filename,\n"
3757 "\t\tconst char *iface);\n"
3758 "\n"
3759 msgstr ""
3760
3761 # type: textblock
3762 #: ../src/guestfs-actions.pod:100
3763 msgid ""
3764 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
3765 "QEMU interface emulation to use at run time."
3766 msgstr ""
3767
3768 # type: =head2
3769 #: ../src/guestfs-actions.pod:105
3770 msgid "guestfs_add_drive_with_if"
3771 msgstr ""
3772
3773 # type: verbatim
3774 #: ../src/guestfs-actions.pod:107
3775 #, no-wrap
3776 msgid ""
3777 " int guestfs_add_drive_with_if (guestfs_h *g,\n"
3778 "\t\tconst char *filename,\n"
3779 "\t\tconst char *iface);\n"
3780 "\n"
3781 msgstr ""
3782
3783 # type: textblock
3784 #: ../src/guestfs-actions.pod:111
3785 msgid ""
3786 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
3787 "QEMU interface emulation to use at run time."
3788 msgstr ""
3789
3790 # type: =head2
3791 #: ../src/guestfs-actions.pod:116
3792 msgid "guestfs_aug_clear"
3793 msgstr ""
3794
3795 # type: verbatim
3796 #: ../src/guestfs-actions.pod:118
3797 #, no-wrap
3798 msgid ""
3799 " int guestfs_aug_clear (guestfs_h *g,\n"
3800 "\t\tconst char *augpath);\n"
3801 "\n"
3802 msgstr ""
3803
3804 # type: textblock
3805 #: ../src/guestfs-actions.pod:121 ../fish/guestfish-actions.pod:103
3806 msgid ""
3807 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
3808 "L<augtool(1)> C<clear> command."
3809 msgstr ""
3810
3811 # type: =head2
3812 #: ../src/guestfs-actions.pod:126
3813 msgid "guestfs_aug_close"
3814 msgstr ""
3815
3816 # type: verbatim
3817 #: ../src/guestfs-actions.pod:128
3818 #, no-wrap
3819 msgid ""
3820 " int guestfs_aug_close (guestfs_h *g);\n"
3821 "\n"
3822 msgstr ""
3823
3824 # type: textblock
3825 #: ../src/guestfs-actions.pod:130
3826 msgid ""
3827 "Close the current Augeas handle and free up any resources used by it.  After "
3828 "calling this, you have to call C<guestfs_aug_init> again before you can use "
3829 "any other Augeas functions."
3830 msgstr ""
3831
3832 # type: =head2
3833 #: ../src/guestfs-actions.pod:137
3834 msgid "guestfs_aug_defnode"
3835 msgstr ""
3836
3837 # type: verbatim
3838 #: ../src/guestfs-actions.pod:139
3839 #, no-wrap
3840 msgid ""
3841 " struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *g,\n"
3842 "\t\tconst char *name,\n"
3843 "\t\tconst char *expr,\n"
3844 "\t\tconst char *val);\n"
3845 "\n"
3846 msgstr ""
3847
3848 # type: textblock
3849 #: ../src/guestfs-actions.pod:144 ../fish/guestfish-actions.pod:119
3850 msgid ""
3851 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
3852 msgstr ""
3853
3854 # type: textblock
3855 #: ../src/guestfs-actions.pod:147
3856 msgid ""
3857 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
3858 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
3859 "containing that single node."
3860 msgstr ""
3861
3862 # type: textblock
3863 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:126
3864 msgid ""
3865 "On success this returns a pair containing the number of nodes in the "
3866 "nodeset, and a boolean flag if a node was created."
3867 msgstr ""
3868
3869 # type: textblock
3870 #: ../src/guestfs-actions.pod:155
3871 msgid ""
3872 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
3873 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
3874 msgstr ""
3875
3876 # type: =head2
3877 #: ../src/guestfs-actions.pod:159
3878 msgid "guestfs_aug_defvar"
3879 msgstr ""
3880
3881 # type: verbatim
3882 #: ../src/guestfs-actions.pod:161
3883 #, no-wrap
3884 msgid ""
3885 " int guestfs_aug_defvar (guestfs_h *g,\n"
3886 "\t\tconst char *name,\n"
3887 "\t\tconst char *expr);\n"
3888 "\n"
3889 msgstr ""
3890
3891 # type: textblock
3892 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:134
3893 msgid ""
3894 "Defines an Augeas variable C<name> whose value is the result of evaluating "
3895 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
3896 msgstr ""
3897
3898 # type: textblock
3899 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:138
3900 msgid ""
3901 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
3902 "evaluates to something which is not a nodeset."
3903 msgstr ""
3904
3905 # type: textblock
3906 #: ../src/guestfs-actions.pod:172 ../src/guestfs-actions.pod:313
3907 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:492
3908 #: ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:523
3909 #: ../src/guestfs-actions.pod:1013 ../src/guestfs-actions.pod:1328
3910 #: ../src/guestfs-actions.pod:1510 ../src/guestfs-actions.pod:1591
3911 #: ../src/guestfs-actions.pod:1622 ../src/guestfs-actions.pod:1665
3912 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1907
3913 #: ../src/guestfs-actions.pod:2119 ../src/guestfs-actions.pod:2137
3914 #: ../src/guestfs-actions.pod:3475 ../src/guestfs-actions.pod:3582
3915 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5012
3916 #: ../src/guestfs-actions.pod:5336 ../src/guestfs-actions.pod:5346
3917 #: ../src/guestfs-actions.pod:5356
3918 msgid "On error this function returns -1."
3919 msgstr ""
3920
3921 # type: =head2
3922 #: ../src/guestfs-actions.pod:174
3923 msgid "guestfs_aug_get"
3924 msgstr ""
3925
3926 # type: verbatim
3927 #: ../src/guestfs-actions.pod:176
3928 #, no-wrap
3929 msgid ""
3930 " char *guestfs_aug_get (guestfs_h *g,\n"
3931 "\t\tconst char *augpath);\n"
3932 "\n"
3933 msgstr ""
3934
3935 # type: textblock
3936 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:145
3937 msgid ""
3938 "Look up the value associated with C<path>.  If C<path> matches exactly one "
3939 "node, the C<value> is returned."
3940 msgstr ""
3941
3942 # type: textblock
3943 #: ../src/guestfs-actions.pod:182 ../src/guestfs-actions.pod:610
3944 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:682
3945 #: ../src/guestfs-actions.pod:695 ../src/guestfs-actions.pod:786
3946 #: ../src/guestfs-actions.pod:899 ../src/guestfs-actions.pod:928
3947 #: ../src/guestfs-actions.pod:942 ../src/guestfs-actions.pod:958
3948 #: ../src/guestfs-actions.pod:1041 ../src/guestfs-actions.pod:1205
3949 #: ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1459
3950 #: ../src/guestfs-actions.pod:1473 ../src/guestfs-actions.pod:1549
3951 #: ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:1701
3952 #: ../src/guestfs-actions.pod:1840 ../src/guestfs-actions.pod:2021
3953 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2187
3954 #: ../src/guestfs-actions.pod:2222 ../src/guestfs-actions.pod:2537
3955 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3054
3956 #: ../src/guestfs-actions.pod:3597 ../src/guestfs-actions.pod:3773
3957 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:4029
3958 #: ../src/guestfs-actions.pod:4072 ../src/guestfs-actions.pod:4548
3959 #: ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4575
3960 #: ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:5129
3961 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5160
3962 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5538
3963 msgid ""
3964 "This function returns a string, or NULL on error.  I<The caller must free "
3965 "the returned string after use>."
3966 msgstr ""
3967
3968 # type: =head2
3969 #: ../src/guestfs-actions.pod:185
3970 msgid "guestfs_aug_init"
3971 msgstr ""
3972
3973 # type: verbatim
3974 #: ../src/guestfs-actions.pod:187
3975 #, no-wrap
3976 msgid ""
3977 " int guestfs_aug_init (guestfs_h *g,\n"
3978 "\t\tconst char *root,\n"
3979 "\t\tint flags);\n"
3980 "\n"
3981 msgstr ""
3982
3983 # type: textblock
3984 #: ../src/guestfs-actions.pod:191 ../fish/guestfish-actions.pod:152
3985 msgid ""
3986 "Create a new Augeas handle for editing configuration files.  If there was "
3987 "any previous Augeas handle associated with this guestfs session, then it is "
3988 "closed."
3989 msgstr ""
3990
3991 # type: textblock
3992 #: ../src/guestfs-actions.pod:195
3993 msgid "You must call this before using any other C<guestfs_aug_*> commands."
3994 msgstr ""
3995
3996 # type: textblock
3997 #: ../src/guestfs-actions.pod:198 ../fish/guestfish-actions.pod:159
3998 msgid ""
3999 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4000 msgstr ""
4001
4002 # type: textblock
4003 #: ../src/guestfs-actions.pod:201 ../fish/guestfish-actions.pod:162
4004 msgid ""
4005 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4006 "logical I<or> of the following integers:"
4007 msgstr ""
4008
4009 # type: =item
4010 #: ../src/guestfs-actions.pod:207 ../fish/guestfish-actions.pod:168
4011 msgid "C<AUG_SAVE_BACKUP> = 1"
4012 msgstr ""
4013
4014 # type: textblock
4015 #: ../src/guestfs-actions.pod:209 ../fish/guestfish-actions.pod:170
4016 msgid "Keep the original file with a C<.augsave> extension."
4017 msgstr ""
4018
4019 # type: =item
4020 #: ../src/guestfs-actions.pod:211 ../fish/guestfish-actions.pod:172
4021 msgid "C<AUG_SAVE_NEWFILE> = 2"
4022 msgstr ""
4023
4024 # type: textblock
4025 #: ../src/guestfs-actions.pod:213 ../fish/guestfish-actions.pod:174
4026 msgid ""
4027 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4028 "original.  Overrides C<AUG_SAVE_BACKUP>."
4029 msgstr ""
4030
4031 # type: =item
4032 #: ../src/guestfs-actions.pod:216 ../fish/guestfish-actions.pod:177
4033 msgid "C<AUG_TYPE_CHECK> = 4"
4034 msgstr ""
4035
4036 # type: textblock
4037 #: ../src/guestfs-actions.pod:218 ../fish/guestfish-actions.pod:179
4038 msgid "Typecheck lenses (can be expensive)."
4039 msgstr ""
4040
4041 # type: =item
4042 #: ../src/guestfs-actions.pod:220 ../fish/guestfish-actions.pod:181
4043 msgid "C<AUG_NO_STDINC> = 8"
4044 msgstr ""
4045
4046 # type: textblock
4047 #: ../src/guestfs-actions.pod:222 ../fish/guestfish-actions.pod:183
4048 msgid "Do not use standard load path for modules."
4049 msgstr ""
4050
4051 # type: =item
4052 #: ../src/guestfs-actions.pod:224 ../fish/guestfish-actions.pod:185
4053 msgid "C<AUG_SAVE_NOOP> = 16"
4054 msgstr ""
4055
4056 # type: textblock
4057 #: ../src/guestfs-actions.pod:226 ../fish/guestfish-actions.pod:187
4058 msgid "Make save a no-op, just record what would have been changed."
4059 msgstr ""
4060
4061 # type: =item
4062 #: ../src/guestfs-actions.pod:228 ../fish/guestfish-actions.pod:189
4063 msgid "C<AUG_NO_LOAD> = 32"
4064 msgstr ""
4065
4066 # type: textblock
4067 #: ../src/guestfs-actions.pod:230
4068 msgid "Do not load the tree in C<guestfs_aug_init>."
4069 msgstr ""
4070
4071 # type: textblock
4072 #: ../src/guestfs-actions.pod:234
4073 msgid "To close the handle, you can call C<guestfs_aug_close>."
4074 msgstr ""
4075
4076 # type: textblock
4077 #: ../src/guestfs-actions.pod:236 ../fish/guestfish-actions.pod:197
4078 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4079 msgstr ""
4080
4081 # type: =head2
4082 #: ../src/guestfs-actions.pod:240
4083 msgid "guestfs_aug_insert"
4084 msgstr ""
4085
4086 # type: verbatim
4087 #: ../src/guestfs-actions.pod:242
4088 #, no-wrap
4089 msgid ""
4090 " int guestfs_aug_insert (guestfs_h *g,\n"
4091 "\t\tconst char *augpath,\n"
4092 "\t\tconst char *label,\n"
4093 "\t\tint before);\n"
4094 "\n"
4095 msgstr ""
4096
4097 # type: textblock
4098 #: ../src/guestfs-actions.pod:247 ../fish/guestfish-actions.pod:203
4099 msgid ""
4100 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4101 "or after C<path> (depending on the boolean flag C<before>)."
4102 msgstr ""
4103
4104 # type: textblock
4105 #: ../src/guestfs-actions.pod:251 ../fish/guestfish-actions.pod:207
4106 msgid ""
4107 "C<path> must match exactly one existing node in the tree, and C<label> must "
4108 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4109 msgstr ""
4110
4111 # type: =head2
4112 #: ../src/guestfs-actions.pod:257
4113 msgid "guestfs_aug_load"
4114 msgstr ""
4115
4116 # type: verbatim
4117 #: ../src/guestfs-actions.pod:259
4118 #, no-wrap
4119 msgid ""
4120 " int guestfs_aug_load (guestfs_h *g);\n"
4121 "\n"
4122 msgstr ""
4123
4124 # type: textblock
4125 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:215
4126 msgid "Load files into the tree."
4127 msgstr ""
4128
4129 # type: textblock
4130 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:217
4131 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4132 msgstr ""
4133
4134 # type: =head2
4135 #: ../src/guestfs-actions.pod:268
4136 msgid "guestfs_aug_ls"
4137 msgstr ""
4138
4139 # type: verbatim
4140 #: ../src/guestfs-actions.pod:270
4141 #, no-wrap
4142 msgid ""
4143 " char **guestfs_aug_ls (guestfs_h *g,\n"
4144 "\t\tconst char *augpath);\n"
4145 "\n"
4146 msgstr ""
4147
4148 # type: textblock
4149 #: ../src/guestfs-actions.pod:273
4150 msgid ""
4151 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4152 "sorting the resulting nodes into alphabetical order."
4153 msgstr ""
4154
4155 # type: textblock
4156 #: ../src/guestfs-actions.pod:276 ../src/guestfs-actions.pod:289
4157 #: ../src/guestfs-actions.pod:417 ../src/guestfs-actions.pod:802
4158 #: ../src/guestfs-actions.pod:1053 ../src/guestfs-actions.pod:1069
4159 #: ../src/guestfs-actions.pod:1157 ../src/guestfs-actions.pod:1173
4160 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1738
4161 #: ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:1767
4162 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1825
4163 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1927
4164 #: ../src/guestfs-actions.pod:2093 ../src/guestfs-actions.pod:2261
4165 #: ../src/guestfs-actions.pod:2466 ../src/guestfs-actions.pod:2522
4166 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2935
4167 #: ../src/guestfs-actions.pod:3442 ../src/guestfs-actions.pod:3868
4168 #: ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:4060
4169 #: ../src/guestfs-actions.pod:4609 ../src/guestfs-actions.pod:4658
4170 #: ../src/guestfs-actions.pod:4710 ../src/guestfs-actions.pod:4826
4171 #: ../src/guestfs-actions.pod:4847 ../src/guestfs-actions.pod:5221
4172 #: ../src/guestfs-actions.pod:5238 ../src/guestfs-actions.pod:5276
4173 #: ../src/guestfs-actions.pod:5412 ../src/guestfs-actions.pod:5428
4174 #: ../src/guestfs-actions.pod:5501 ../src/guestfs-actions.pod:5517
4175 #: ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5573
4176 msgid ""
4177 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4178 ">), or NULL if there was an error.  I<The caller must free the strings and "
4179 "the array after use>."
4180 msgstr ""
4181
4182 # type: =head2
4183 #: ../src/guestfs-actions.pod:280
4184 msgid "guestfs_aug_match"
4185 msgstr ""
4186
4187 # type: verbatim
4188 #: ../src/guestfs-actions.pod:282
4189 #, no-wrap
4190 msgid ""
4191 " char **guestfs_aug_match (guestfs_h *g,\n"
4192 "\t\tconst char *augpath);\n"
4193 "\n"
4194 msgstr ""
4195
4196 # type: textblock
4197 #: ../src/guestfs-actions.pod:285 ../fish/guestfish-actions.pod:231
4198 msgid ""
4199 "Returns a list of paths which match the path expression C<path>.  The "
4200 "returned paths are sufficiently qualified so that they match exactly one "
4201 "node in the current tree."
4202 msgstr ""
4203
4204 # type: =head2
4205 #: ../src/guestfs-actions.pod:293
4206 msgid "guestfs_aug_mv"
4207 msgstr ""
4208
4209 # type: verbatim
4210 #: ../src/guestfs-actions.pod:295
4211 #, no-wrap
4212 msgid ""
4213 " int guestfs_aug_mv (guestfs_h *g,\n"
4214 "\t\tconst char *src,\n"
4215 "\t\tconst char *dest);\n"
4216 "\n"
4217 msgstr ""
4218
4219 # type: textblock
4220 #: ../src/guestfs-actions.pod:299 ../fish/guestfish-actions.pod:239
4221 msgid ""
4222 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4223 "C<dest> is overwritten if it exists."
4224 msgstr ""
4225
4226 # type: =head2
4227 #: ../src/guestfs-actions.pod:304
4228 msgid "guestfs_aug_rm"
4229 msgstr ""
4230
4231 # type: verbatim
4232 #: ../src/guestfs-actions.pod:306
4233 #, no-wrap
4234 msgid ""
4235 " int guestfs_aug_rm (guestfs_h *g,\n"
4236 "\t\tconst char *augpath);\n"
4237 "\n"
4238 msgstr ""
4239
4240 # type: textblock
4241 #: ../src/guestfs-actions.pod:309 ../fish/guestfish-actions.pod:246
4242 msgid "Remove C<path> and all of its children."
4243 msgstr ""
4244
4245 # type: textblock
4246 #: ../src/guestfs-actions.pod:311 ../fish/guestfish-actions.pod:248
4247 msgid "On success this returns the number of entries which were removed."
4248 msgstr ""
4249
4250 # type: =head2
4251 #: ../src/guestfs-actions.pod:315
4252 msgid "guestfs_aug_save"
4253 msgstr ""
4254
4255 # type: verbatim
4256 #: ../src/guestfs-actions.pod:317
4257 #, no-wrap
4258 msgid ""
4259 " int guestfs_aug_save (guestfs_h *g);\n"
4260 "\n"
4261 msgstr ""
4262
4263 # type: textblock
4264 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:254
4265 msgid "This writes all pending changes to disk."
4266 msgstr ""
4267
4268 # type: textblock
4269 #: ../src/guestfs-actions.pod:321
4270 msgid ""
4271 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4272 "are saved."
4273 msgstr ""
4274
4275 # type: =head2
4276 #: ../src/guestfs-actions.pod:326
4277 msgid "guestfs_aug_set"
4278 msgstr ""
4279
4280 # type: verbatim
4281 #: ../src/guestfs-actions.pod:328
4282 #, no-wrap
4283 msgid ""
4284 " int guestfs_aug_set (guestfs_h *g,\n"
4285 "\t\tconst char *augpath,\n"
4286 "\t\tconst char *val);\n"
4287 "\n"
4288 msgstr ""
4289
4290 # type: textblock
4291 #: ../src/guestfs-actions.pod:332 ../fish/guestfish-actions.pod:263
4292 msgid "Set the value associated with C<path> to C<val>."
4293 msgstr ""
4294
4295 # type: textblock
4296 #: ../src/guestfs-actions.pod:334
4297 msgid ""
4298 "In the Augeas API, it is possible to clear a node by setting the value to "
4299 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4300 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4301 msgstr ""
4302
4303 # type: =head2
4304 #: ../src/guestfs-actions.pod:341
4305 msgid "guestfs_available"
4306 msgstr ""
4307
4308 # type: verbatim
4309 #: ../src/guestfs-actions.pod:343
4310 #, no-wrap
4311 msgid ""
4312 " int guestfs_available (guestfs_h *g,\n"
4313 "\t\tchar *const *groups);\n"
4314 "\n"
4315 msgstr ""
4316
4317 # type: textblock
4318 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:274
4319 msgid ""
4320 "This command is used to check the availability of some groups of "
4321 "functionality in the appliance, which not all builds of the libguestfs "
4322 "appliance will be able to provide."
4323 msgstr ""
4324
4325 # type: textblock
4326 #: ../src/guestfs-actions.pod:350
4327 msgid ""
4328 "The libguestfs groups, and the functions that those groups correspond to, "
4329 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4330 "runtime by calling C<guestfs_available_all_groups>."
4331 msgstr ""
4332
4333 # type: textblock
4334 #: ../src/guestfs-actions.pod:355 ../fish/guestfish-actions.pod:283
4335 msgid ""
4336 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4337 "\"]> would check for the availability of the Linux inotify functions and "
4338 "Augeas (configuration file editing) functions."
4339 msgstr ""
4340
4341 # type: textblock
4342 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:288
4343 msgid "The command returns no error if I<all> requested groups are available."
4344 msgstr ""
4345
4346 # type: textblock
4347 #: ../src/guestfs-actions.pod:362 ../fish/guestfish-actions.pod:290
4348 msgid ""
4349 "It fails with an error if one or more of the requested groups is unavailable "
4350 "in the appliance."
4351 msgstr ""
4352
4353 # type: textblock
4354 #: ../src/guestfs-actions.pod:365 ../fish/guestfish-actions.pod:293
4355 msgid ""
4356 "If an unknown group name is included in the list of groups then an error is "
4357 "always returned."
4358 msgstr ""
4359
4360 # type: textblock
4361 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:296
4362 msgid "I<Notes:>"
4363 msgstr ""
4364
4365 # type: textblock
4366 #: ../src/guestfs-actions.pod:374
4367 msgid "You must call C<guestfs_launch> before calling this function."
4368 msgstr ""
4369
4370 # type: textblock
4371 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:304
4372 msgid ""
4373 "The reason is because we don't know what groups are supported by the "
4374 "appliance/daemon until it is running and can be queried."
4375 msgstr ""
4376
4377 # type: textblock
4378 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:310
4379 msgid ""
4380 "If a group of functions is available, this does not necessarily mean that "
4381 "they will work.  You still have to check for errors when calling individual "
4382 "API functions even if they are available."
4383 msgstr ""
4384
4385 # type: textblock
4386 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:317
4387 msgid ""
4388 "It is usually the job of distro packagers to build complete functionality "
4389 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4390 "with all requirements satisfied, will support everything."
4391 msgstr ""
4392
4393 # type: textblock
4394 #: ../src/guestfs-actions.pod:396
4395 msgid ""
4396 "This call was added in version C<1.0.80>.  In previous versions of "
4397 "libguestfs all you could do would be to speculatively execute a command to "
4398 "find out if the daemon implemented it.  See also C<guestfs_version>."
4399 msgstr ""
4400
4401 # type: =head2
4402 #: ../src/guestfs-actions.pod:405
4403 msgid "guestfs_available_all_groups"
4404 msgstr ""
4405
4406 # type: verbatim
4407 #: ../src/guestfs-actions.pod:407
4408 #, no-wrap
4409 msgid ""
4410 " char **guestfs_available_all_groups (guestfs_h *g);\n"
4411 "\n"
4412 msgstr ""
4413
4414 # type: textblock
4415 #: ../src/guestfs-actions.pod:409
4416 msgid ""
4417 "This command returns a list of all optional groups that this daemon knows "
4418 "about.  Note this returns both supported and unsupported groups.  To find "
4419 "out which ones the daemon can actually support you have to call "
4420 "C<guestfs_available> on each member of the returned list."
4421 msgstr ""
4422
4423 # type: textblock
4424 #: ../src/guestfs-actions.pod:415
4425 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4426 msgstr ""
4427
4428 # type: =head2
4429 #: ../src/guestfs-actions.pod:421
4430 msgid "guestfs_base64_in"
4431 msgstr ""
4432
4433 # type: verbatim
4434 #: ../src/guestfs-actions.pod:423
4435 #, no-wrap
4436 msgid ""
4437 " int guestfs_base64_in (guestfs_h *g,\n"
4438 "\t\tconst char *base64file,\n"
4439 "\t\tconst char *filename);\n"
4440 "\n"
4441 msgstr ""
4442
4443 # type: textblock
4444 #: ../src/guestfs-actions.pod:427 ../fish/guestfish-actions.pod:347
4445 msgid ""
4446 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4447 msgstr ""
4448
4449 # type: =head2
4450 #: ../src/guestfs-actions.pod:432
4451 msgid "guestfs_base64_out"
4452 msgstr ""
4453
4454 # type: verbatim
4455 #: ../src/guestfs-actions.pod:434
4456 #, no-wrap
4457 msgid ""
4458 " int guestfs_base64_out (guestfs_h *g,\n"
4459 "\t\tconst char *filename,\n"
4460 "\t\tconst char *base64file);\n"
4461 "\n"
4462 msgstr ""
4463
4464 # type: textblock
4465 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:356
4466 msgid ""
4467 "This command downloads the contents of C<filename>, writing it out to local "
4468 "file C<base64file> encoded as base64."
4469 msgstr ""
4470
4471 # type: =head2
4472 #: ../src/guestfs-actions.pod:443
4473 msgid "guestfs_blockdev_flushbufs"
4474 msgstr ""
4475
4476 # type: verbatim
4477 #: ../src/guestfs-actions.pod:445
4478 #, no-wrap
4479 msgid ""
4480 " int guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4481 "\t\tconst char *device);\n"
4482 "\n"
4483 msgstr ""
4484
4485 # type: textblock
4486 #: ../src/guestfs-actions.pod:448 ../fish/guestfish-actions.pod:365
4487 msgid ""
4488 "This tells the kernel to flush internal buffers associated with C<device>."
4489 msgstr ""
4490
4491 # type: textblock
4492 #: ../src/guestfs-actions.pod:451 ../src/guestfs-actions.pod:465
4493 #: ../src/guestfs-actions.pod:477 ../src/guestfs-actions.pod:490
4494 #: ../src/guestfs-actions.pod:505 ../src/guestfs-actions.pod:521
4495 #: ../src/guestfs-actions.pod:532 ../src/guestfs-actions.pod:547
4496 #: ../src/guestfs-actions.pod:558 ../src/guestfs-actions.pod:569
4497 #: ../fish/guestfish-actions.pod:368 ../fish/guestfish-actions.pod:379
4498 #: ../fish/guestfish-actions.pod:388 ../fish/guestfish-actions.pod:398
4499 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:423
4500 #: ../fish/guestfish-actions.pod:431 ../fish/guestfish-actions.pod:442
4501 #: ../fish/guestfish-actions.pod:450 ../fish/guestfish-actions.pod:458
4502 msgid "This uses the L<blockdev(8)> command."
4503 msgstr ""
4504
4505 # type: =head2
4506 #: ../src/guestfs-actions.pod:455
4507 msgid "guestfs_blockdev_getbsz"
4508 msgstr ""
4509
4510 # type: verbatim
4511 #: ../src/guestfs-actions.pod:457
4512 #, no-wrap
4513 msgid ""
4514 " int guestfs_blockdev_getbsz (guestfs_h *g,\n"
4515 "\t\tconst char *device);\n"
4516 "\n"
4517 msgstr ""
4518
4519 # type: textblock
4520 #: ../src/guestfs-actions.pod:460 ../fish/guestfish-actions.pod:374
4521 msgid "This returns the block size of a device."
4522 msgstr ""
4523
4524 # type: textblock
4525 #: ../src/guestfs-actions.pod:462 ../src/guestfs-actions.pod:544
4526 #: ../fish/guestfish-actions.pod:376 ../fish/guestfish-actions.pod:439
4527 msgid ""
4528 "(Note this is different from both I<size in blocks> and I<filesystem block "
4529 "size>)."
4530 msgstr ""
4531
4532 # type: =head2
4533 #: ../src/guestfs-actions.pod:469
4534 msgid "guestfs_blockdev_getro"
4535 msgstr ""
4536
4537 # type: verbatim
4538 #: ../src/guestfs-actions.pod:471
4539 #, no-wrap
4540 msgid ""
4541 " int guestfs_blockdev_getro (guestfs_h *g,\n"
4542 "\t\tconst char *device);\n"
4543 "\n"
4544 msgstr ""
4545
4546 # type: textblock
4547 #: ../src/guestfs-actions.pod:474 ../fish/guestfish-actions.pod:385
4548 msgid ""
4549 "Returns a boolean indicating if the block device is read-only (true if read-"
4550 "only, false if not)."
4551 msgstr ""
4552
4553 # type: textblock
4554 #: ../src/guestfs-actions.pod:479 ../src/guestfs-actions.pod:1087
4555 #: ../src/guestfs-actions.pod:1099 ../src/guestfs-actions.pod:1531
4556 #: ../src/guestfs-actions.pod:1539 ../src/guestfs-actions.pod:1599
4557 #: ../src/guestfs-actions.pod:1642 ../src/guestfs-actions.pod:1654
4558 #: ../src/guestfs-actions.pod:1673 ../src/guestfs-actions.pod:1690
4559 #: ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2286
4560 #: ../src/guestfs-actions.pod:2298 ../src/guestfs-actions.pod:2309
4561 #: ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:2334
4562 #: ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2358
4563 #: ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:2379
4564 #: ../src/guestfs-actions.pod:2391 ../src/guestfs-actions.pod:2403
4565 #: ../src/guestfs-actions.pod:3567
4566 msgid "This function returns a C truth value on success or -1 on error."
4567 msgstr ""
4568
4569 # type: =head2
4570 #: ../src/guestfs-actions.pod:481
4571 msgid "guestfs_blockdev_getsize64"
4572 msgstr ""
4573
4574 # type: verbatim
4575 #: ../src/guestfs-actions.pod:483
4576 #, no-wrap
4577 msgid ""
4578 " int64_t guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4579 "\t\tconst char *device);\n"
4580 "\n"
4581 msgstr ""
4582
4583 # type: textblock
4584 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:394
4585 msgid "This returns the size of the device in bytes."
4586 msgstr ""
4587
4588 # type: textblock
4589 #: ../src/guestfs-actions.pod:488
4590 msgid "See also C<guestfs_blockdev_getsz>."
4591 msgstr ""
4592
4593 # type: =head2
4594 #: ../src/guestfs-actions.pod:494
4595 msgid "guestfs_blockdev_getss"
4596 msgstr ""
4597
4598 # type: verbatim
4599 #: ../src/guestfs-actions.pod:496
4600 #, no-wrap
4601 msgid ""
4602 " int guestfs_blockdev_getss (guestfs_h *g,\n"
4603 "\t\tconst char *device);\n"
4604 "\n"
4605 msgstr ""
4606
4607 # type: textblock
4608 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:404
4609 msgid ""
4610 "This returns the size of sectors on a block device.  Usually 512, but can be "
4611 "larger for modern devices."
4612 msgstr ""
4613
4614 # type: textblock
4615 #: ../src/guestfs-actions.pod:502
4616 msgid ""
4617 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
4618 "that)."
4619 msgstr ""
4620
4621 # type: =head2
4622 #: ../src/guestfs-actions.pod:509
4623 msgid "guestfs_blockdev_getsz"
4624 msgstr ""
4625
4626 # type: verbatim
4627 #: ../src/guestfs-actions.pod:511
4628 #, no-wrap
4629 msgid ""
4630 " int64_t guestfs_blockdev_getsz (guestfs_h *g,\n"
4631 "\t\tconst char *device);\n"
4632 "\n"
4633 msgstr ""
4634
4635 # type: textblock
4636 #: ../src/guestfs-actions.pod:514 ../fish/guestfish-actions.pod:416
4637 msgid ""
4638 "This returns the size of the device in units of 512-byte sectors (even if "
4639 "the sectorsize isn't 512 bytes ... weird)."
4640 msgstr ""
4641
4642 # type: textblock
4643 #: ../src/guestfs-actions.pod:517
4644 msgid ""
4645 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
4646 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
4647 msgstr ""
4648
4649 # type: =head2
4650 #: ../src/guestfs-actions.pod:525
4651 msgid "guestfs_blockdev_rereadpt"
4652 msgstr ""
4653
4654 # type: verbatim
4655 #: ../src/guestfs-actions.pod:527
4656 #, no-wrap
4657 msgid ""
4658 " int guestfs_blockdev_rereadpt (guestfs_h *g,\n"
4659 "\t\tconst char *device);\n"
4660 "\n"
4661 msgstr ""
4662
4663 # type: textblock
4664 #: ../src/guestfs-actions.pod:530 ../fish/guestfish-actions.pod:429
4665 msgid "Reread the partition table on C<device>."
4666 msgstr ""
4667
4668 # type: =head2
4669 #: ../src/guestfs-actions.pod:536
4670 msgid "guestfs_blockdev_setbsz"
4671 msgstr ""
4672
4673 # type: verbatim
4674 #: ../src/guestfs-actions.pod:538
4675 #, no-wrap
4676 msgid ""
4677 " int guestfs_blockdev_setbsz (guestfs_h *g,\n"
4678 "\t\tconst char *device,\n"
4679 "\t\tint blocksize);\n"
4680 "\n"
4681 msgstr ""
4682
4683 # type: textblock
4684 #: ../src/guestfs-actions.pod:542 ../fish/guestfish-actions.pod:437
4685 msgid "This sets the block size of a device."
4686 msgstr ""
4687
4688 # type: =head2
4689 #: ../src/guestfs-actions.pod:551
4690 msgid "guestfs_blockdev_setro"
4691 msgstr ""
4692
4693 # type: verbatim
4694 #: ../src/guestfs-actions.pod:553
4695 #, no-wrap
4696 msgid ""
4697 " int guestfs_blockdev_setro (guestfs_h *g,\n"
4698 "\t\tconst char *device);\n"
4699 "\n"
4700 msgstr ""
4701
4702 # type: textblock
4703 #: ../src/guestfs-actions.pod:556 ../fish/guestfish-actions.pod:448
4704 msgid "Sets the block device named C<device> to read-only."
4705 msgstr ""
4706
4707 # type: =head2
4708 #: ../src/guestfs-actions.pod:562
4709 msgid "guestfs_blockdev_setrw"
4710 msgstr ""
4711
4712 # type: verbatim
4713 #: ../src/guestfs-actions.pod:564
4714 #, no-wrap
4715 msgid ""
4716 " int guestfs_blockdev_setrw (guestfs_h *g,\n"
4717 "\t\tconst char *device);\n"
4718 "\n"
4719 msgstr ""
4720
4721 # type: textblock
4722 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:456
4723 msgid "Sets the block device named C<device> to read-write."
4724 msgstr ""
4725
4726 # type: =head2
4727 #: ../src/guestfs-actions.pod:573
4728 msgid "guestfs_case_sensitive_path"
4729 msgstr ""
4730
4731 # type: verbatim
4732 #: ../src/guestfs-actions.pod:575
4733 #, no-wrap
4734 msgid ""
4735 " char *guestfs_case_sensitive_path (guestfs_h *g,\n"
4736 "\t\tconst char *path);\n"
4737 "\n"
4738 msgstr ""
4739
4740 # type: textblock
4741 #: ../src/guestfs-actions.pod:578 ../fish/guestfish-actions.pod:464
4742 msgid ""
4743 "This can be used to resolve case insensitive paths on a filesystem which is "
4744 "case sensitive.  The use case is to resolve paths which you have read from "
4745 "Windows configuration files or the Windows Registry, to the true path."
4746 msgstr ""
4747
4748 # type: textblock
4749 #: ../src/guestfs-actions.pod:583 ../fish/guestfish-actions.pod:469
4750 msgid ""
4751 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4752 "(and probably others), which is that although the underlying filesystem is "
4753 "case-insensitive, the driver exports the filesystem to Linux as case-"
4754 "sensitive."
4755 msgstr ""
4756
4757 # type: textblock
4758 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:474
4759 msgid ""
4760 "One consequence of this is that special directories such as C<c:\\windows> "
4761 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4762 "precise details of how they were created.  In Windows itself this would not "
4763 "be a problem."
4764 msgstr ""
4765
4766 # type: textblock
4767 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:480
4768 msgid ""
4769 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
4770 "#posixfilenames1>"
4771 msgstr ""
4772
4773 # type: textblock
4774 #: ../src/guestfs-actions.pod:597 ../fish/guestfish-actions.pod:483
4775 msgid ""
4776 "This function resolves the true case of each element in the path and returns "
4777 "the case-sensitive path."
4778 msgstr ""
4779
4780 # type: textblock
4781 #: ../src/guestfs-actions.pod:600
4782 msgid ""
4783 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
4784 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4785 "how the directories were originally created under Windows)."
4786 msgstr ""
4787
4788 # type: textblock
4789 #: ../src/guestfs-actions.pod:605 ../fish/guestfish-actions.pod:491
4790 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4791 msgstr ""
4792
4793 # type: textblock
4794 #: ../src/guestfs-actions.pod:608
4795 msgid "See also C<guestfs_realpath>."
4796 msgstr ""
4797
4798 # type: =head2
4799 #: ../src/guestfs-actions.pod:613
4800 msgid "guestfs_cat"
4801 msgstr ""
4802
4803 # type: verbatim
4804 #: ../src/guestfs-actions.pod:615
4805 #, no-wrap
4806 msgid ""
4807 " char *guestfs_cat (guestfs_h *g,\n"
4808 "\t\tconst char *path);\n"
4809 "\n"
4810 msgstr ""
4811
4812 # type: textblock
4813 #: ../src/guestfs-actions.pod:618 ../src/guestfs-actions.pod:3944
4814 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:3039
4815 msgid "Return the contents of the file named C<path>."
4816 msgstr ""
4817
4818 # type: textblock
4819 #: ../src/guestfs-actions.pod:620
4820 msgid ""
4821 "Note that this function cannot correctly handle binary files (specifically, "
4822 "files containing C<\\0> character which is treated as end of string).  For "
4823 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
4824 "functions which have a more complex interface."
4825 msgstr ""
4826
4827 # type: textblock
4828 #: ../src/guestfs-actions.pod:628 ../src/guestfs-actions.pod:789
4829 #: ../src/guestfs-actions.pod:806 ../src/guestfs-actions.pod:1057
4830 #: ../src/guestfs-actions.pod:1073 ../src/guestfs-actions.pod:1161
4831 #: ../src/guestfs-actions.pod:1177 ../src/guestfs-actions.pod:1408
4832 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:1771
4833 #: ../src/guestfs-actions.pod:1808 ../src/guestfs-actions.pod:1829
4834 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:1869
4835 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:3915
4836 #: ../src/guestfs-actions.pod:3936 ../src/guestfs-actions.pod:4662
4837 #: ../src/guestfs-actions.pod:4714 ../src/guestfs-actions.pod:4830
4838 #: ../src/guestfs-actions.pod:4851 ../src/guestfs-actions.pod:5370
4839 #: ../src/guestfs-actions.pod:5393 ../src/guestfs-actions.pod:5416
4840 #: ../src/guestfs-actions.pod:5432 ../src/guestfs-actions.pod:5505
4841 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5561
4842 #: ../src/guestfs-actions.pod:5577 ../fish/guestfish-actions.pod:507
4843 #: ../fish/guestfish-actions.pod:642 ../fish/guestfish-actions.pod:654
4844 #: ../fish/guestfish-actions.pod:836 ../fish/guestfish-actions.pod:846
4845 #: ../fish/guestfish-actions.pod:913 ../fish/guestfish-actions.pod:923
4846 #: ../fish/guestfish-actions.pod:1118 ../fish/guestfish-actions.pod:1391
4847 #: ../fish/guestfish-actions.pod:1401 ../fish/guestfish-actions.pod:1429
4848 #: ../fish/guestfish-actions.pod:1444 ../fish/guestfish-actions.pod:1454
4849 #: ../fish/guestfish-actions.pod:1473 ../fish/guestfish-actions.pod:2941
4850 #: ../fish/guestfish-actions.pod:3017 ../fish/guestfish-actions.pod:3032
4851 #: ../fish/guestfish-actions.pod:3593 ../fish/guestfish-actions.pod:3639
4852 #: ../fish/guestfish-actions.pod:3724 ../fish/guestfish-actions.pod:3739
4853 #: ../fish/guestfish-actions.pod:4122 ../fish/guestfish-actions.pod:4140
4854 #: ../fish/guestfish-actions.pod:4157 ../fish/guestfish-actions.pod:4167
4855 #: ../fish/guestfish-actions.pod:4215 ../fish/guestfish-actions.pod:4225
4856 #: ../fish/guestfish-actions.pod:4254 ../fish/guestfish-actions.pod:4264
4857 msgid ""
4858 "Because of the message protocol, there is a transfer limit of somewhere "
4859 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
4860 msgstr ""
4861
4862 # type: =head2
4863 #: ../src/guestfs-actions.pod:631
4864 msgid "guestfs_checksum"
4865 msgstr ""
4866
4867 # type: verbatim
4868 #: ../src/guestfs-actions.pod:633
4869 #, no-wrap
4870 msgid ""
4871 " char *guestfs_checksum (guestfs_h *g,\n"
4872 "\t\tconst char *csumtype,\n"
4873 "\t\tconst char *path);\n"
4874 "\n"
4875 msgstr ""
4876
4877 # type: textblock
4878 #: ../src/guestfs-actions.pod:637 ../fish/guestfish-actions.pod:514
4879 msgid ""
4880 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
4881 msgstr ""
4882
4883 # type: textblock
4884 #: ../src/guestfs-actions.pod:640 ../fish/guestfish-actions.pod:517
4885 msgid ""
4886 "The type of checksum to compute is given by the C<csumtype> parameter which "
4887 "must have one of the following values:"
4888 msgstr ""
4889
4890 # type: =item
4891 #: ../src/guestfs-actions.pod:645 ../fish/guestfish-actions.pod:522
4892 msgid "C<crc>"
4893 msgstr ""
4894
4895 # type: textblock
4896 #: ../src/guestfs-actions.pod:647 ../fish/guestfish-actions.pod:524
4897 msgid ""
4898 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
4899 "C<cksum> command."
4900 msgstr ""
4901
4902 # type: =item
4903 #: ../src/guestfs-actions.pod:650 ../fish/guestfish-actions.pod:527
4904 msgid "C<md5>"
4905 msgstr ""
4906
4907 # type: textblock
4908 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:529
4909 msgid "Compute the MD5 hash (using the C<md5sum> program)."
4910 msgstr ""
4911
4912 # type: =item
4913 #: ../src/guestfs-actions.pod:654 ../fish/guestfish-actions.pod:531
4914 msgid "C<sha1>"
4915 msgstr ""
4916
4917 # type: textblock
4918 #: ../src/guestfs-actions.pod:656 ../fish/guestfish-actions.pod:533
4919 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
4920 msgstr ""
4921
4922 # type: =item
4923 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:535
4924 msgid "C<sha224>"
4925 msgstr ""
4926
4927 # type: textblock
4928 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:537
4929 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
4930 msgstr ""
4931
4932 # type: =item
4933 #: ../src/guestfs-actions.pod:662 ../fish/guestfish-actions.pod:539
4934 msgid "C<sha256>"
4935 msgstr ""
4936
4937 # type: textblock
4938 #: ../src/guestfs-actions.pod:664 ../fish/guestfish-actions.pod:541
4939 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
4940 msgstr ""
4941
4942 # type: =item
4943 #: ../src/guestfs-actions.pod:666 ../fish/guestfish-actions.pod:543
4944 msgid "C<sha384>"
4945 msgstr ""
4946
4947 # type: textblock
4948 #: ../src/guestfs-actions.pod:668 ../fish/guestfish-actions.pod:545
4949 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
4950 msgstr ""
4951
4952 # type: =item
4953 #: ../src/guestfs-actions.pod:670 ../fish/guestfish-actions.pod:547
4954 msgid "C<sha512>"
4955 msgstr ""
4956
4957 # type: textblock
4958 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:549
4959 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
4960 msgstr ""
4961
4962 # type: textblock
4963 #: ../src/guestfs-actions.pod:676 ../fish/guestfish-actions.pod:553
4964 msgid "The checksum is returned as a printable string."
4965 msgstr ""
4966
4967 # type: textblock
4968 #: ../src/guestfs-actions.pod:678
4969 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
4970 msgstr ""
4971
4972 # type: textblock
4973 #: ../src/guestfs-actions.pod:680
4974 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
4975 msgstr ""
4976
4977 # type: =head2
4978 #: ../src/guestfs-actions.pod:685
4979 msgid "guestfs_checksum_device"
4980 msgstr ""
4981
4982 # type: verbatim
4983 #: ../src/guestfs-actions.pod:687
4984 #, no-wrap
4985 msgid ""
4986 " char *guestfs_checksum_device (guestfs_h *g,\n"
4987 "\t\tconst char *csumtype,\n"
4988 "\t\tconst char *device);\n"
4989 "\n"
4990 msgstr ""
4991
4992 # type: textblock
4993 #: ../src/guestfs-actions.pod:691
4994 msgid ""
4995 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
4996 "device named C<device>.  For the types of checksums supported see the "
4997 "C<guestfs_checksum> command."
4998 msgstr ""
4999
5000 # type: =head2
5001 #: ../src/guestfs-actions.pod:698
5002 msgid "guestfs_checksums_out"
5003 msgstr ""
5004
5005 # type: verbatim
5006 #: ../src/guestfs-actions.pod:700
5007 #, no-wrap
5008 msgid ""
5009 " int guestfs_checksums_out (guestfs_h *g,\n"
5010 "\t\tconst char *csumtype,\n"
5011 "\t\tconst char *directory,\n"
5012 "\t\tconst char *sumsfile);\n"
5013 "\n"
5014 msgstr ""
5015
5016 # type: textblock
5017 #: ../src/guestfs-actions.pod:705 ../fish/guestfish-actions.pod:571
5018 msgid ""
5019 "This command computes the checksums of all regular files in C<directory> and "
5020 "then emits a list of those checksums to the local output file C<sumsfile>."
5021 msgstr ""
5022
5023 # type: textblock
5024 #: ../src/guestfs-actions.pod:709 ../fish/guestfish-actions.pod:575
5025 msgid ""
5026 "This can be used for verifying the integrity of a virtual machine.  However "
5027 "to be properly secure you should pay attention to the output of the checksum "
5028 "command (it uses the ones from GNU coreutils).  In particular when the "
5029 "filename is not printable, coreutils uses a special backslash syntax.  For "
5030 "more information, see the GNU coreutils info file."
5031 msgstr ""
5032
5033 # type: =head2
5034 #: ../src/guestfs-actions.pod:719
5035 msgid "guestfs_chmod"
5036 msgstr ""
5037
5038 # type: verbatim
5039 #: ../src/guestfs-actions.pod:721
5040 #, no-wrap
5041 msgid ""
5042 " int guestfs_chmod (guestfs_h *g,\n"
5043 "\t\tint mode,\n"
5044 "\t\tconst char *path);\n"
5045 "\n"
5046 msgstr ""
5047
5048 # type: textblock
5049 #: ../src/guestfs-actions.pod:725 ../fish/guestfish-actions.pod:589
5050 msgid ""
5051 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5052 "supported."
5053 msgstr ""
5054
5055 # type: textblock
5056 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:592
5057 msgid ""
5058 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5059 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5060 "C<700>."
5061 msgstr ""
5062
5063 # type: textblock
5064 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:3150
5065 #: ../src/guestfs-actions.pod:3238 ../src/guestfs-actions.pod:3254
5066 #: ../src/guestfs-actions.pod:3270 ../fish/guestfish-actions.pod:596
5067 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2516
5068 #: ../fish/guestfish-actions.pod:2526 ../fish/guestfish-actions.pod:2536
5069 msgid "The mode actually set is affected by the umask."
5070 msgstr ""
5071
5072 # type: =head2
5073 #: ../src/guestfs-actions.pod:736
5074 msgid "guestfs_chown"
5075 msgstr ""
5076
5077 # type: verbatim
5078 #: ../src/guestfs-actions.pod:738
5079 #, no-wrap
5080 msgid ""
5081 " int guestfs_chown (guestfs_h *g,\n"
5082 "\t\tint owner,\n"
5083 "\t\tint group,\n"
5084 "\t\tconst char *path);\n"
5085 "\n"
5086 msgstr ""
5087
5088 # type: textblock
5089 #: ../src/guestfs-actions.pod:743 ../fish/guestfish-actions.pod:602
5090 msgid "Change the file owner to C<owner> and group to C<group>."
5091 msgstr ""
5092
5093 # type: textblock
5094 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:2436
5095 #: ../fish/guestfish-actions.pod:604 ../fish/guestfish-actions.pod:1937
5096 msgid ""
5097 "Only numeric uid and gid are supported.  If you want to use names, you will "
5098 "need to locate and parse the password file yourself (Augeas support makes "
5099 "this relatively easy)."
5100 msgstr ""
5101
5102 # type: =head2
5103 #: ../src/guestfs-actions.pod:751
5104 msgid "guestfs_command"
5105 msgstr ""
5106
5107 # type: verbatim
5108 #: ../src/guestfs-actions.pod:753
5109 #, no-wrap
5110 msgid ""
5111 " char *guestfs_command (guestfs_h *g,\n"
5112 "\t\tchar *const *arguments);\n"
5113 "\n"
5114 msgstr ""
5115
5116 # type: textblock
5117 #: ../src/guestfs-actions.pod:756 ../fish/guestfish-actions.pod:612
5118 msgid ""
5119 "This call runs a command from the guest filesystem.  The filesystem must be "
5120 "mounted, and must contain a compatible operating system (ie. something "
5121 "Linux, with the same or compatible processor architecture)."
5122 msgstr ""
5123
5124 # type: textblock
5125 #: ../src/guestfs-actions.pod:761
5126 msgid ""
5127 "The single parameter is an argv-style list of arguments.  The first element "
5128 "is the name of the program to run.  Subsequent elements are parameters.  The "
5129 "list must be non-empty (ie. must contain a program name).  Note that the "
5130 "command runs directly, and is I<not> invoked via the shell (see "
5131 "C<guestfs_sh>)."
5132 msgstr ""
5133
5134 # type: textblock
5135 #: ../src/guestfs-actions.pod:768 ../fish/guestfish-actions.pod:624
5136 msgid "The return value is anything printed to I<stdout> by the command."
5137 msgstr ""
5138
5139 # type: textblock
5140 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:627
5141 msgid ""
5142 "If the command returns a non-zero exit status, then this function returns an "
5143 "error message.  The error message string is the content of I<stderr> from "
5144 "the command."
5145 msgstr ""
5146
5147 # type: textblock
5148 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:631
5149 msgid ""
5150 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5151 "bin>.  If you require a program from another location, you should provide "
5152 "the full path in the first parameter."
5153 msgstr ""
5154
5155 # type: textblock
5156 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:636
5157 msgid ""
5158 "Shared libraries and data files required by the program must be available on "
5159 "filesystems which are mounted in the correct places.  It is the caller's "
5160 "responsibility to ensure all filesystems that are needed are mounted at the "
5161 "right locations."
5162 msgstr ""
5163
5164 # type: =head2
5165 #: ../src/guestfs-actions.pod:792
5166 msgid "guestfs_command_lines"
5167 msgstr ""
5168
5169 # type: verbatim
5170 #: ../src/guestfs-actions.pod:794
5171 #, no-wrap
5172 msgid ""
5173 " char **guestfs_command_lines (guestfs_h *g,\n"
5174 "\t\tchar *const *arguments);\n"
5175 "\n"
5176 msgstr ""
5177
5178 # type: textblock
5179 #: ../src/guestfs-actions.pod:797
5180 msgid ""
5181 "This is the same as C<guestfs_command>, but splits the result into a list of "
5182 "lines."
5183 msgstr ""
5184
5185 # type: textblock
5186 #: ../src/guestfs-actions.pod:800
5187 msgid "See also: C<guestfs_sh_lines>"
5188 msgstr ""
5189
5190 # type: =head2
5191 #: ../src/guestfs-actions.pod:809
5192 msgid "guestfs_config"
5193 msgstr ""
5194
5195 # type: verbatim
5196 #: ../src/guestfs-actions.pod:811
5197 #, no-wrap
5198 msgid ""
5199 " int guestfs_config (guestfs_h *g,\n"
5200 "\t\tconst char *qemuparam,\n"
5201 "\t\tconst char *qemuvalue);\n"
5202 "\n"
5203 msgstr ""
5204
5205 # type: textblock
5206 #: ../src/guestfs-actions.pod:815 ../fish/guestfish-actions.pod:661
5207 msgid ""
5208 "This can be used to add arbitrary qemu command line parameters of the form "
5209 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5210 "setting some parameters which would interfere with parameters that we use."
5211 msgstr ""
5212
5213 # type: textblock
5214 #: ../src/guestfs-actions.pod:820 ../fish/guestfish-actions.pod:666
5215 msgid "The first character of C<param> string must be a C<-> (dash)."
5216 msgstr ""
5217
5218 # type: textblock
5219 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:668
5220 msgid "C<value> can be NULL."
5221 msgstr ""
5222
5223 # type: =head2
5224 #: ../src/guestfs-actions.pod:826
5225 msgid "guestfs_copy_size"
5226 msgstr ""
5227
5228 # type: verbatim
5229 #: ../src/guestfs-actions.pod:828
5230 #, no-wrap
5231 msgid ""
5232 " int guestfs_copy_size (guestfs_h *g,\n"
5233 "\t\tconst char *src,\n"
5234 "\t\tconst char *dest,\n"
5235 "\t\tint64_t size);\n"
5236 "\n"
5237 msgstr ""
5238
5239 # type: textblock
5240 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:674
5241 msgid ""
5242 "This command copies exactly C<size> bytes from one source device or file "
5243 "C<src> to another destination device or file C<dest>."
5244 msgstr ""
5245
5246 # type: textblock
5247 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:677
5248 msgid ""
5249 "Note this will fail if the source is too short or if the destination is not "
5250 "large enough."
5251 msgstr ""
5252
5253 # type: textblock
5254 #: ../src/guestfs-actions.pod:841 ../src/guestfs-actions.pod:976
5255 #: ../src/guestfs-actions.pod:1348 ../src/guestfs-actions.pod:1367
5256 #: ../src/guestfs-actions.pod:5450 ../src/guestfs-actions.pod:5466
5257 msgid ""
5258 "This long-running command can generate progress notification messages so "
5259 "that the caller can display a progress bar or indicator.  To receive these "
5260 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
5261 "guestfs_set_progress_callback>."
5262 msgstr ""
5263
5264 # type: =head2
5265 #: ../src/guestfs-actions.pod:846
5266 msgid "guestfs_cp"
5267 msgstr ""
5268
5269 # type: verbatim
5270 #: ../src/guestfs-actions.pod:848
5271 #, no-wrap
5272 msgid ""
5273 " int guestfs_cp (guestfs_h *g,\n"
5274 "\t\tconst char *src,\n"
5275 "\t\tconst char *dest);\n"
5276 "\n"
5277 msgstr ""
5278
5279 # type: textblock
5280 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:684
5281 msgid ""
5282 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5283 "destination filename or destination directory."
5284 msgstr ""
5285
5286 # type: =head2
5287 #: ../src/guestfs-actions.pod:857
5288 msgid "guestfs_cp_a"
5289 msgstr ""
5290
5291 # type: verbatim
5292 #: ../src/guestfs-actions.pod:859
5293 #, no-wrap
5294 msgid ""
5295 " int guestfs_cp_a (guestfs_h *g,\n"
5296 "\t\tconst char *src,\n"
5297 "\t\tconst char *dest);\n"
5298 "\n"
5299 msgstr ""
5300
5301 # type: textblock
5302 #: ../src/guestfs-actions.pod:863 ../fish/guestfish-actions.pod:691
5303 msgid ""
5304 "This copies a file or directory from C<src> to C<dest> recursively using the "
5305 "C<cp -a> command."
5306 msgstr ""
5307
5308 # type: =head2
5309 #: ../src/guestfs-actions.pod:868
5310 msgid "guestfs_dd"
5311 msgstr ""
5312
5313 # type: verbatim
5314 #: ../src/guestfs-actions.pod:870
5315 #, no-wrap
5316 msgid ""
5317 " int guestfs_dd (guestfs_h *g,\n"
5318 "\t\tconst char *src,\n"
5319 "\t\tconst char *dest);\n"
5320 "\n"
5321 msgstr ""
5322
5323 # type: textblock
5324 #: ../src/guestfs-actions.pod:874 ../fish/guestfish-actions.pod:698
5325 msgid ""
5326 "This command copies from one source device or file C<src> to another "
5327 "destination device or file C<dest>.  Normally you would use this to copy to "
5328 "or from a device or partition, for example to duplicate a filesystem."
5329 msgstr ""
5330
5331 # type: textblock
5332 #: ../src/guestfs-actions.pod:879
5333 msgid ""
5334 "If the destination is a device, it must be as large or larger than the "
5335 "source file or device, otherwise the copy will fail.  This command cannot do "
5336 "partial copies (see C<guestfs_copy_size>)."
5337 msgstr ""
5338
5339 # type: =head2
5340 #: ../src/guestfs-actions.pod:885
5341 msgid "guestfs_debug"
5342 msgstr ""
5343
5344 # type: verbatim
5345 #: ../src/guestfs-actions.pod:887
5346 #, no-wrap
5347 msgid ""
5348 " char *guestfs_debug (guestfs_h *g,\n"
5349 "\t\tconst char *subcmd,\n"
5350 "\t\tchar *const *extraargs);\n"
5351 "\n"
5352 msgstr ""
5353
5354 # type: textblock
5355 #: ../src/guestfs-actions.pod:891
5356 msgid ""
5357 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5358 "guestfs daemon) that runs inside the qemu subprocess."
5359 msgstr ""
5360
5361 # type: textblock
5362 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:715
5363 msgid ""
5364 "There is no comprehensive help for this command.  You have to look at the "
5365 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5366 msgstr ""
5367
5368 # type: =head2
5369 #: ../src/guestfs-actions.pod:902
5370 msgid "guestfs_debug_upload"
5371 msgstr ""
5372
5373 # type: verbatim
5374 #: ../src/guestfs-actions.pod:904
5375 #, no-wrap
5376 msgid ""
5377 " int guestfs_debug_upload (guestfs_h *g,\n"
5378 "\t\tconst char *filename,\n"
5379 "\t\tconst char *tmpname,\n"
5380 "\t\tint mode);\n"
5381 "\n"
5382 msgstr ""
5383
5384 # type: textblock
5385 #: ../src/guestfs-actions.pod:909
5386 msgid ""
5387 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5388 "appliance."
5389 msgstr ""
5390
5391 # type: textblock
5392 #: ../src/guestfs-actions.pod:912 ../fish/guestfish-actions.pod:726
5393 msgid ""
5394 "There is no comprehensive help for this command.  You have to look at the "
5395 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5396 msgstr ""
5397
5398 # type: =head2
5399 #: ../src/guestfs-actions.pod:918
5400 msgid "guestfs_df"
5401 msgstr ""
5402
5403 # type: verbatim
5404 #: ../src/guestfs-actions.pod:920
5405 #, no-wrap
5406 msgid ""
5407 " char *guestfs_df (guestfs_h *g);\n"
5408 "\n"
5409 msgstr ""
5410
5411 # type: textblock
5412 #: ../src/guestfs-actions.pod:922 ../fish/guestfish-actions.pod:736
5413 msgid "This command runs the C<df> command to report disk space used."
5414 msgstr ""
5415
5416 # type: textblock
5417 #: ../src/guestfs-actions.pod:924 ../src/guestfs-actions.pod:938
5418 #: ../fish/guestfish-actions.pod:738 ../fish/guestfish-actions.pod:749
5419 msgid ""
5420 "This command is mostly useful for interactive sessions.  It is I<not> "
5421 "intended that you try to parse the output string.  Use C<statvfs> from "
5422 "programs."
5423 msgstr ""
5424
5425 # type: =head2
5426 #: ../src/guestfs-actions.pod:931
5427 msgid "guestfs_df_h"
5428 msgstr ""
5429
5430 # type: verbatim
5431 #: ../src/guestfs-actions.pod:933
5432 #, no-wrap
5433 msgid ""
5434 " char *guestfs_df_h (guestfs_h *g);\n"
5435 "\n"
5436 msgstr ""
5437
5438 # type: textblock
5439 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:746
5440 msgid ""
5441 "This command runs the C<df -h> command to report disk space used in human-"
5442 "readable format."
5443 msgstr ""
5444
5445 # type: =head2
5446 #: ../src/guestfs-actions.pod:945
5447 msgid "guestfs_dmesg"
5448 msgstr ""
5449
5450 # type: verbatim
5451 #: ../src/guestfs-actions.pod:947
5452 #, no-wrap
5453 msgid ""
5454 " char *guestfs_dmesg (guestfs_h *g);\n"
5455 "\n"
5456 msgstr ""
5457
5458 # type: textblock
5459 #: ../src/guestfs-actions.pod:949 ../fish/guestfish-actions.pod:757
5460 msgid ""
5461 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5462 "This is sometimes useful for extended debugging of problems."
5463 msgstr ""
5464
5465 # type: textblock
5466 #: ../src/guestfs-actions.pod:953
5467 msgid ""
5468 "Another way to get the same information is to enable verbose messages with "
5469 "C<guestfs_set_verbose> or by setting the environment variable "
5470 "C<LIBGUESTFS_DEBUG=1> before running the program."
5471 msgstr ""
5472
5473 # type: =head2
5474 #: ../src/guestfs-actions.pod:961
5475 msgid "guestfs_download"
5476 msgstr ""
5477
5478 # type: verbatim
5479 #: ../src/guestfs-actions.pod:963
5480 #, no-wrap
5481 msgid ""
5482 " int guestfs_download (guestfs_h *g,\n"
5483 "\t\tconst char *remotefilename,\n"
5484 "\t\tconst char *filename);\n"
5485 "\n"
5486 msgstr ""
5487
5488 # type: textblock
5489 #: ../src/guestfs-actions.pod:967 ../fish/guestfish-actions.pod:770
5490 msgid ""
5491 "Download file C<remotefilename> and save it as C<filename> on the local "
5492 "machine."
5493 msgstr ""
5494
5495 # type: textblock
5496 #: ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:5044
5497 #: ../fish/guestfish-actions.pod:773 ../fish/guestfish-actions.pod:3893
5498 msgid "C<filename> can also be a named pipe."
5499 msgstr ""
5500
5501 # type: textblock
5502 #: ../src/guestfs-actions.pod:972
5503 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5504 msgstr ""
5505
5506 # type: =head2
5507 #: ../src/guestfs-actions.pod:981
5508 msgid "guestfs_drop_caches"
5509 msgstr ""
5510
5511 # type: verbatim
5512 #: ../src/guestfs-actions.pod:983
5513 #, no-wrap
5514 msgid ""
5515 " int guestfs_drop_caches (guestfs_h *g,\n"
5516 "\t\tint whattodrop);\n"
5517 "\n"
5518 msgstr ""
5519
5520 # type: textblock
5521 #: ../src/guestfs-actions.pod:986 ../fish/guestfish-actions.pod:783
5522 msgid ""
5523 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5524 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5525 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5526 msgstr ""
5527
5528 # type: textblock
5529 #: ../src/guestfs-actions.pod:991 ../fish/guestfish-actions.pod:788
5530 msgid "Setting C<whattodrop> to 3 should drop everything."
5531 msgstr ""
5532
5533 # type: textblock
5534 #: ../src/guestfs-actions.pod:993 ../fish/guestfish-actions.pod:790
5535 msgid ""
5536 "This automatically calls L<sync(2)> before the operation, so that the "
5537 "maximum guest memory is freed."
5538 msgstr ""
5539
5540 # type: =head2
5541 #: ../src/guestfs-actions.pod:998
5542 msgid "guestfs_du"
5543 msgstr ""
5544
5545 # type: verbatim
5546 #: ../src/guestfs-actions.pod:1000
5547 #, no-wrap
5548 msgid ""
5549 " int64_t guestfs_du (guestfs_h *g,\n"
5550 "\t\tconst char *path);\n"
5551 "\n"
5552 msgstr ""
5553
5554 # type: textblock
5555 #: ../src/guestfs-actions.pod:1003 ../fish/guestfish-actions.pod:797
5556 msgid ""
5557 "This command runs the C<du -s> command to estimate file space usage for "
5558 "C<path>."
5559 msgstr ""
5560
5561 # type: textblock
5562 #: ../src/guestfs-actions.pod:1006 ../fish/guestfish-actions.pod:800
5563 msgid ""
5564 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5565 "estimate includes the contents of the directory and all subdirectories "
5566 "(recursively)."
5567 msgstr ""
5568
5569 # type: textblock
5570 #: ../src/guestfs-actions.pod:1010 ../fish/guestfish-actions.pod:804
5571 msgid ""
5572 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5573 msgstr ""
5574
5575 # type: =head2
5576 #: ../src/guestfs-actions.pod:1015
5577 msgid "guestfs_e2fsck_f"
5578 msgstr ""
5579
5580 # type: verbatim
5581 #: ../src/guestfs-actions.pod:1017
5582 #, no-wrap
5583 msgid ""
5584 " int guestfs_e2fsck_f (guestfs_h *g,\n"
5585 "\t\tconst char *device);\n"
5586 "\n"
5587 msgstr ""
5588
5589 # type: textblock
5590 #: ../src/guestfs-actions.pod:1020 ../fish/guestfish-actions.pod:811
5591 msgid ""
5592 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5593 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
5594 "clean (C<-f>)."
5595 msgstr ""
5596
5597 # type: textblock
5598 #: ../src/guestfs-actions.pod:1024
5599 msgid ""
5600 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
5601 "Normally you should use C<guestfs_fsck>."
5602 msgstr ""
5603
5604 # type: =head2
5605 #: ../src/guestfs-actions.pod:1029
5606 msgid "guestfs_echo_daemon"
5607 msgstr ""
5608
5609 # type: verbatim
5610 #: ../src/guestfs-actions.pod:1031
5611 #, no-wrap
5612 msgid ""
5613 " char *guestfs_echo_daemon (guestfs_h *g,\n"
5614 "\t\tchar *const *words);\n"
5615 "\n"
5616 msgstr ""
5617
5618 # type: textblock
5619 #: ../src/guestfs-actions.pod:1034 ../fish/guestfish-actions.pod:822
5620 msgid ""
5621 "This command concatenates the list of C<words> passed with single spaces "
5622 "between them and returns the resulting string."
5623 msgstr ""
5624
5625 # type: textblock
5626 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:825
5627 msgid "You can use this command to test the connection through to the daemon."
5628 msgstr ""
5629
5630 # type: textblock
5631 #: ../src/guestfs-actions.pod:1039
5632 msgid "See also C<guestfs_ping_daemon>."
5633 msgstr ""
5634
5635 # type: =head2
5636 #: ../src/guestfs-actions.pod:1044
5637 msgid "guestfs_egrep"
5638 msgstr ""
5639
5640 # type: verbatim
5641 #: ../src/guestfs-actions.pod:1046
5642 #, no-wrap
5643 msgid ""
5644 " char **guestfs_egrep (guestfs_h *g,\n"
5645 "\t\tconst char *regex,\n"
5646 "\t\tconst char *path);\n"
5647 "\n"
5648 msgstr ""
5649
5650 # type: textblock
5651 #: ../src/guestfs-actions.pod:1050 ../fish/guestfish-actions.pod:833
5652 msgid ""
5653 "This calls the external C<egrep> program and returns the matching lines."
5654 msgstr ""
5655
5656 # type: =head2
5657 #: ../src/guestfs-actions.pod:1060
5658 msgid "guestfs_egrepi"
5659 msgstr ""
5660
5661 # type: verbatim
5662 #: ../src/guestfs-actions.pod:1062
5663 #, no-wrap
5664 msgid ""
5665 " char **guestfs_egrepi (guestfs_h *g,\n"
5666 "\t\tconst char *regex,\n"
5667 "\t\tconst char *path);\n"
5668 "\n"
5669 msgstr ""
5670
5671 # type: textblock
5672 #: ../src/guestfs-actions.pod:1066 ../fish/guestfish-actions.pod:843
5673 msgid ""
5674 "This calls the external C<egrep -i> program and returns the matching lines."
5675 msgstr ""
5676
5677 # type: =head2
5678 #: ../src/guestfs-actions.pod:1076
5679 msgid "guestfs_equal"
5680 msgstr ""
5681
5682 # type: verbatim
5683 #: ../src/guestfs-actions.pod:1078
5684 #, no-wrap
5685 msgid ""
5686 " int guestfs_equal (guestfs_h *g,\n"
5687 "\t\tconst char *file1,\n"
5688 "\t\tconst char *file2);\n"
5689 "\n"
5690 msgstr ""
5691
5692 # type: textblock
5693 #: ../src/guestfs-actions.pod:1082 ../fish/guestfish-actions.pod:853
5694 msgid ""
5695 "This compares the two files C<file1> and C<file2> and returns true if their "
5696 "content is exactly equal, or false otherwise."
5697 msgstr ""
5698
5699 # type: textblock
5700 #: ../src/guestfs-actions.pod:1085 ../fish/guestfish-actions.pod:856
5701 msgid "The external L<cmp(1)> program is used for the comparison."
5702 msgstr ""
5703
5704 # type: =head2
5705 #: ../src/guestfs-actions.pod:1089
5706 msgid "guestfs_exists"
5707 msgstr ""
5708
5709 # type: verbatim
5710 #: ../src/guestfs-actions.pod:1091
5711 #, no-wrap
5712 msgid ""
5713 " int guestfs_exists (guestfs_h *g,\n"
5714 "\t\tconst char *path);\n"
5715 "\n"
5716 msgstr ""
5717
5718 # type: textblock
5719 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:862
5720 msgid ""
5721 "This returns C<true> if and only if there is a file, directory (or anything) "
5722 "with the given C<path> name."
5723 msgstr ""
5724
5725 # type: textblock
5726 #: ../src/guestfs-actions.pod:1097
5727 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
5728 msgstr ""
5729
5730 # type: =head2
5731 #: ../src/guestfs-actions.pod:1101
5732 msgid "guestfs_fallocate"
5733 msgstr ""
5734
5735 # type: verbatim
5736 #: ../src/guestfs-actions.pod:1103
5737 #, no-wrap
5738 msgid ""
5739 " int guestfs_fallocate (guestfs_h *g,\n"
5740 "\t\tconst char *path,\n"
5741 "\t\tint len);\n"
5742 "\n"
5743 msgstr ""
5744
5745 # type: textblock
5746 #: ../src/guestfs-actions.pod:1107 ../src/guestfs-actions.pod:1130
5747 #: ../fish/guestfish-actions.pod:871 ../fish/guestfish-actions.pod:890
5748 msgid ""
5749 "This command preallocates a file (containing zero bytes) named C<path> of "
5750 "size C<len> bytes.  If the file exists already, it is overwritten."
5751 msgstr ""
5752
5753 # type: textblock
5754 #: ../src/guestfs-actions.pod:1111 ../fish/guestfish-actions.pod:875
5755 msgid ""
5756 "Do not confuse this with the guestfish-specific C<alloc> command which "
5757 "allocates a file in the host and attaches it as a device."
5758 msgstr ""
5759
5760 # type: textblock
5761 #: ../src/guestfs-actions.pod:1117 ../fish/guestfish-actions.pod:879
5762 msgid ""
5763 "This function is deprecated.  In new code, use the C<fallocate64> call "
5764 "instead."
5765 msgstr ""
5766
5767 # type: textblock
5768 #: ../src/guestfs-actions.pod:1120 ../src/guestfs-actions.pod:1555
5769 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:5399
5770 #: ../src/guestfs-actions.pod:5544 ../fish/guestfish-actions.pod:882
5771 #: ../fish/guestfish-actions.pod:1239 ../fish/guestfish-actions.pod:1253
5772 #: ../fish/guestfish-actions.pod:4146 ../fish/guestfish-actions.pod:4243
5773 msgid ""
5774 "Deprecated functions will not be removed from the API, but the fact that "
5775 "they are deprecated indicates that there are problems with correct use of "
5776 "these functions."
5777 msgstr ""
5778
5779 # type: =head2
5780 #: ../src/guestfs-actions.pod:1124
5781 msgid "guestfs_fallocate64"
5782 msgstr ""
5783
5784 # type: verbatim
5785 #: ../src/guestfs-actions.pod:1126
5786 #, no-wrap
5787 msgid ""
5788 " int guestfs_fallocate64 (guestfs_h *g,\n"
5789 "\t\tconst char *path,\n"
5790 "\t\tint64_t len);\n"
5791 "\n"
5792 msgstr ""
5793
5794 # type: textblock
5795 #: ../src/guestfs-actions.pod:1134
5796 msgid ""
5797 "Note that this call allocates disk blocks for the file.  To create a sparse "
5798 "file use C<guestfs_truncate_size> instead."
5799 msgstr ""
5800
5801 # type: textblock
5802 #: ../src/guestfs-actions.pod:1137
5803 msgid ""
5804 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
5805 "oversight it only allowed 30 bit lengths to be specified, effectively "
5806 "limiting the maximum size of files created through that call to 1GB."
5807 msgstr ""
5808
5809 # type: textblock
5810 #: ../src/guestfs-actions.pod:1142 ../fish/guestfish-actions.pod:902
5811 msgid ""
5812 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5813 "commands which create a file in the host and attach it as a device."
5814 msgstr ""
5815
5816 # type: =head2
5817 #: ../src/guestfs-actions.pod:1148
5818 msgid "guestfs_fgrep"
5819 msgstr ""
5820
5821 # type: verbatim
5822 #: ../src/guestfs-actions.pod:1150
5823 #, no-wrap
5824 msgid ""
5825 " char **guestfs_fgrep (guestfs_h *g,\n"
5826 "\t\tconst char *pattern,\n"
5827 "\t\tconst char *path);\n"
5828 "\n"
5829 msgstr ""
5830
5831 # type: textblock
5832 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:910
5833 msgid ""
5834 "This calls the external C<fgrep> program and returns the matching lines."
5835 msgstr ""
5836
5837 # type: =head2
5838 #: ../src/guestfs-actions.pod:1164
5839 msgid "guestfs_fgrepi"
5840 msgstr ""
5841
5842 # type: verbatim
5843 #: ../src/guestfs-actions.pod:1166
5844 #, no-wrap
5845 msgid ""
5846 " char **guestfs_fgrepi (guestfs_h *g,\n"
5847 "\t\tconst char *pattern,\n"
5848 "\t\tconst char *path);\n"
5849 "\n"
5850 msgstr ""
5851
5852 # type: textblock
5853 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:920
5854 msgid ""
5855 "This calls the external C<fgrep -i> program and returns the matching lines."
5856 msgstr ""
5857
5858 # type: =head2
5859 #: ../src/guestfs-actions.pod:1180
5860 msgid "guestfs_file"
5861 msgstr ""
5862
5863 # type: verbatim
5864 #: ../src/guestfs-actions.pod:1182
5865 #, no-wrap
5866 msgid ""
5867 " char *guestfs_file (guestfs_h *g,\n"
5868 "\t\tconst char *path);\n"
5869 "\n"
5870 msgstr ""
5871
5872 # type: textblock
5873 #: ../src/guestfs-actions.pod:1185 ../fish/guestfish-actions.pod:930
5874 msgid ""
5875 "This call uses the standard L<file(1)> command to determine the type or "
5876 "contents of the file."
5877 msgstr ""
5878
5879 # type: textblock
5880 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:933
5881 msgid ""
5882 "This call will also transparently look inside various types of compressed "
5883 "file."
5884 msgstr ""
5885
5886 # type: textblock
5887 #: ../src/guestfs-actions.pod:1191 ../fish/guestfish-actions.pod:936
5888 msgid ""
5889 "The exact command which runs is C<file -zb path>.  Note in particular that "
5890 "the filename is not prepended to the output (the C<-b> option)."
5891 msgstr ""
5892
5893 # type: textblock
5894 #: ../src/guestfs-actions.pod:1195
5895 msgid ""
5896 "This command can also be used on C</dev/> devices (and partitions, LV "
5897 "names).  You can for example use this to determine if a device contains a "
5898 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
5899 msgstr ""
5900
5901 # type: textblock
5902 #: ../src/guestfs-actions.pod:1200 ../fish/guestfish-actions.pod:945
5903 msgid ""
5904 "If the C<path> does not begin with C</dev/> then this command only works for "
5905 "the content of regular files.  For other file types (directory, symbolic "
5906 "link etc) it will just return the string C<directory> etc."
5907 msgstr ""
5908
5909 # type: =head2
5910 #: ../src/guestfs-actions.pod:1208
5911 msgid "guestfs_file_architecture"
5912 msgstr ""
5913
5914 # type: verbatim
5915 #: ../src/guestfs-actions.pod:1210
5916 #, no-wrap
5917 msgid ""
5918 " char *guestfs_file_architecture (guestfs_h *g,\n"
5919 "\t\tconst char *filename);\n"
5920 "\n"
5921 msgstr ""
5922
5923 # type: textblock
5924 #: ../src/guestfs-actions.pod:1213 ../fish/guestfish-actions.pod:954
5925 msgid ""
5926 "This detects the architecture of the binary C<filename>, and returns it if "
5927 "known."
5928 msgstr ""
5929
5930 # type: textblock
5931 #: ../src/guestfs-actions.pod:1216 ../fish/guestfish-actions.pod:957
5932 msgid "Currently defined architectures are:"
5933 msgstr ""
5934
5935 # type: =item
5936 #: ../src/guestfs-actions.pod:1220 ../fish/guestfish-actions.pod:961
5937 msgid "\"i386\""
5938 msgstr ""
5939
5940 # type: textblock
5941 #: ../src/guestfs-actions.pod:1222 ../fish/guestfish-actions.pod:963
5942 msgid ""
5943 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
5944 "irrespective of the precise processor requirements of the binary."
5945 msgstr ""
5946
5947 # type: =item
5948 #: ../src/guestfs-actions.pod:1225 ../fish/guestfish-actions.pod:966
5949 msgid "\"x86_64\""
5950 msgstr ""
5951
5952 # type: textblock
5953 #: ../src/guestfs-actions.pod:1227 ../fish/guestfish-actions.pod:968
5954 msgid "64 bit x86-64."
5955 msgstr ""
5956
5957 # type: =item
5958 #: ../src/guestfs-actions.pod:1229 ../fish/guestfish-actions.pod:970
5959 msgid "\"sparc\""
5960 msgstr ""
5961
5962 # type: textblock
5963 #: ../src/guestfs-actions.pod:1231 ../fish/guestfish-actions.pod:972
5964 msgid "32 bit SPARC."
5965 msgstr ""
5966
5967 # type: =item
5968 #: ../src/guestfs-actions.pod:1233 ../fish/guestfish-actions.pod:974
5969 msgid "\"sparc64\""
5970 msgstr ""
5971
5972 # type: textblock
5973 #: ../src/guestfs-actions.pod:1235 ../fish/guestfish-actions.pod:976
5974 msgid "64 bit SPARC V9 and above."
5975 msgstr ""
5976
5977 # type: =item
5978 #: ../src/guestfs-actions.pod:1237 ../fish/guestfish-actions.pod:978
5979 msgid "\"ia64\""
5980 msgstr ""
5981
5982 # type: textblock
5983 #: ../src/guestfs-actions.pod:1239 ../fish/guestfish-actions.pod:980
5984 msgid "Intel Itanium."
5985 msgstr ""
5986
5987 # type: =item
5988 #: ../src/guestfs-actions.pod:1241 ../fish/guestfish-actions.pod:982
5989 msgid "\"ppc\""
5990 msgstr ""
5991
5992 # type: textblock
5993 #: ../src/guestfs-actions.pod:1243 ../fish/guestfish-actions.pod:984
5994 msgid "32 bit Power PC."
5995 msgstr ""
5996
5997 # type: =item
5998 #: ../src/guestfs-actions.pod:1245 ../fish/guestfish-actions.pod:986
5999 msgid "\"ppc64\""
6000 msgstr ""
6001
6002 # type: textblock
6003 #: ../src/guestfs-actions.pod:1247 ../fish/guestfish-actions.pod:988
6004 msgid "64 bit Power PC."
6005 msgstr ""
6006
6007 # type: textblock
6008 #: ../src/guestfs-actions.pod:1251 ../fish/guestfish-actions.pod:992
6009 msgid "Libguestfs may return other architecture strings in future."
6010 msgstr ""
6011
6012 # type: textblock
6013 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:994
6014 msgid "The function works on at least the following types of files:"
6015 msgstr ""
6016
6017 # type: textblock
6018 #: ../src/guestfs-actions.pod:1259 ../fish/guestfish-actions.pod:1000
6019 msgid "many types of Un*x and Linux binary"
6020 msgstr ""
6021
6022 # type: textblock
6023 #: ../src/guestfs-actions.pod:1263 ../fish/guestfish-actions.pod:1004
6024 msgid "many types of Un*x and Linux shared library"
6025 msgstr ""
6026
6027 # type: textblock
6028 #: ../src/guestfs-actions.pod:1267 ../fish/guestfish-actions.pod:1008
6029 msgid "Windows Win32 and Win64 binaries"
6030 msgstr ""
6031
6032 # type: textblock
6033 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:1012
6034 msgid "Windows Win32 and Win64 DLLs"
6035 msgstr ""
6036
6037 # type: textblock
6038 #: ../src/guestfs-actions.pod:1273 ../fish/guestfish-actions.pod:1014
6039 msgid "Win32 binaries and DLLs return C<i386>."
6040 msgstr ""
6041
6042 # type: textblock
6043 #: ../src/guestfs-actions.pod:1275 ../fish/guestfish-actions.pod:1016
6044 msgid "Win64 binaries and DLLs return C<x86_64>."
6045 msgstr ""
6046
6047 # type: textblock
6048 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:1020
6049 msgid "Linux kernel modules"
6050 msgstr ""
6051
6052 # type: textblock
6053 #: ../src/guestfs-actions.pod:1283 ../fish/guestfish-actions.pod:1024
6054 msgid "Linux new-style initrd images"
6055 msgstr ""
6056
6057 # type: textblock
6058 #: ../src/guestfs-actions.pod:1287 ../fish/guestfish-actions.pod:1028
6059 msgid "some non-x86 Linux vmlinuz kernels"
6060 msgstr ""
6061
6062 # type: textblock
6063 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:1032
6064 msgid "What it can't do currently:"
6065 msgstr ""
6066
6067 # type: textblock
6068 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:1038
6069 msgid "static libraries (libfoo.a)"
6070 msgstr ""
6071
6072 # type: textblock
6073 #: ../src/guestfs-actions.pod:1301 ../fish/guestfish-actions.pod:1042
6074 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6075 msgstr ""
6076
6077 # type: textblock
6078 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:1046
6079 msgid "x86 Linux vmlinuz kernels"
6080 msgstr ""
6081
6082 # type: textblock
6083 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1048
6084 msgid ""
6085 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6086 "compressed code, and are horribly hard to unpack.  If you want to find the "
6087 "architecture of a kernel, use the architecture of the associated initrd or "
6088 "kernel module(s) instead."
6089 msgstr ""
6090
6091 # type: =head2
6092 #: ../src/guestfs-actions.pod:1317
6093 msgid "guestfs_filesize"
6094 msgstr ""
6095
6096 # type: verbatim
6097 #: ../src/guestfs-actions.pod:1319
6098 #, no-wrap
6099 msgid ""
6100 " int64_t guestfs_filesize (guestfs_h *g,\n"
6101 "\t\tconst char *file);\n"
6102 "\n"
6103 msgstr ""
6104
6105 # type: textblock
6106 #: ../src/guestfs-actions.pod:1322 ../fish/guestfish-actions.pod:1059
6107 msgid "This command returns the size of C<file> in bytes."
6108 msgstr ""
6109
6110 # type: textblock
6111 #: ../src/guestfs-actions.pod:1324
6112 msgid ""
6113 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6114 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6115 "devices, use C<guestfs_blockdev_getsize64>."
6116 msgstr ""
6117
6118 # type: =head2
6119 #: ../src/guestfs-actions.pod:1330
6120 msgid "guestfs_fill"
6121 msgstr ""
6122
6123 # type: verbatim
6124 #: ../src/guestfs-actions.pod:1332
6125 #, no-wrap
6126 msgid ""
6127 " int guestfs_fill (guestfs_h *g,\n"
6128 "\t\tint c,\n"
6129 "\t\tint len,\n"
6130 "\t\tconst char *path);\n"
6131 "\n"
6132 msgstr ""
6133
6134 # type: textblock
6135 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:1069
6136 msgid ""
6137 "This command creates a new file called C<path>.  The initial content of the "
6138 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6139 "[0..255]>."
6140 msgstr ""
6141
6142 # type: textblock
6143 #: ../src/guestfs-actions.pod:1341
6144 msgid ""
6145 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6146 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6147 "bytes use C<guestfs_fill_pattern>."
6148 msgstr ""
6149
6150 # type: =head2
6151 #: ../src/guestfs-actions.pod:1353
6152 msgid "guestfs_fill_pattern"
6153 msgstr ""
6154
6155 # type: verbatim
6156 #: ../src/guestfs-actions.pod:1355
6157 #, no-wrap
6158 msgid ""
6159 " int guestfs_fill_pattern (guestfs_h *g,\n"
6160 "\t\tconst char *pattern,\n"
6161 "\t\tint len,\n"
6162 "\t\tconst char *path);\n"
6163 "\n"
6164 msgstr ""
6165
6166 # type: textblock
6167 #: ../src/guestfs-actions.pod:1360
6168 msgid ""
6169 "This function is like C<guestfs_fill> except that it creates a new file of "
6170 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6171 "pattern is truncated if necessary to ensure the length of the file is "
6172 "exactly C<len> bytes."
6173 msgstr ""
6174
6175 # type: =head2
6176 #: ../src/guestfs-actions.pod:1372
6177 msgid "guestfs_find"
6178 msgstr ""
6179
6180 # type: verbatim
6181 #: ../src/guestfs-actions.pod:1374
6182 #, no-wrap
6183 msgid ""
6184 " char **guestfs_find (guestfs_h *g,\n"
6185 "\t\tconst char *directory);\n"
6186 "\n"
6187 msgstr ""
6188
6189 # type: textblock
6190 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:1091
6191 msgid ""
6192 "This command lists out all files and directories, recursively, starting at "
6193 "C<directory>.  It is essentially equivalent to running the shell command "
6194 "C<find directory -print> but some post-processing happens on the output, "
6195 "described below."
6196 msgstr ""
6197
6198 # type: textblock
6199 #: ../src/guestfs-actions.pod:1382 ../fish/guestfish-actions.pod:1096
6200 msgid ""
6201 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6202 "structure was:"
6203 msgstr ""
6204
6205 # type: verbatim
6206 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1099
6207 #, no-wrap
6208 msgid ""
6209 " /tmp/a\n"
6210 " /tmp/b\n"
6211 " /tmp/c/d\n"
6212 "\n"
6213 msgstr ""
6214
6215 # type: textblock
6216 #: ../src/guestfs-actions.pod:1389
6217 msgid ""
6218 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6219 msgstr ""
6220
6221 # type: verbatim
6222 #: ../src/guestfs-actions.pod:1392 ../fish/guestfish-actions.pod:1106
6223 #, no-wrap
6224 msgid ""
6225 " a\n"
6226 " b\n"
6227 " c\n"
6228 " c/d\n"
6229 "\n"
6230 msgstr ""
6231
6232 # type: textblock
6233 #: ../src/guestfs-actions.pod:1397 ../fish/guestfish-actions.pod:1111
6234 msgid "If C<directory> is not a directory, then this command returns an error."
6235 msgstr ""
6236
6237 # type: textblock
6238 #: ../src/guestfs-actions.pod:1400 ../fish/guestfish-actions.pod:1114
6239 msgid "The returned list is sorted."
6240 msgstr ""
6241
6242 # type: textblock
6243 #: ../src/guestfs-actions.pod:1402
6244 msgid "See also C<guestfs_find0>."
6245 msgstr ""
6246
6247 # type: =head2
6248 #: ../src/guestfs-actions.pod:1411
6249 msgid "guestfs_find0"
6250 msgstr ""
6251
6252 # type: verbatim
6253 #: ../src/guestfs-actions.pod:1413
6254 #, no-wrap
6255 msgid ""
6256 " int guestfs_find0 (guestfs_h *g,\n"
6257 "\t\tconst char *directory,\n"
6258 "\t\tconst char *files);\n"
6259 "\n"
6260 msgstr ""
6261
6262 # type: textblock
6263 #: ../src/guestfs-actions.pod:1417 ../fish/guestfish-actions.pod:1125
6264 msgid ""
6265 "This command lists out all files and directories, recursively, starting at "
6266 "C<directory>, placing the resulting list in the external file called "
6267 "C<files>."
6268 msgstr ""
6269
6270 # type: textblock
6271 #: ../src/guestfs-actions.pod:1421
6272 msgid ""
6273 "This command works the same way as C<guestfs_find> with the following "
6274 "exceptions:"
6275 msgstr ""
6276
6277 # type: textblock
6278 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:1136
6279 msgid "The resulting list is written to an external file."
6280 msgstr ""
6281
6282 # type: textblock
6283 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:1140
6284 msgid ""
6285 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6286 "L<find(1)> option I<-print0>."
6287 msgstr ""
6288
6289 # type: textblock
6290 #: ../src/guestfs-actions.pod:1437 ../fish/guestfish-actions.pod:1145
6291 msgid "This command is not limited in the number of names that it can return."
6292 msgstr ""
6293
6294 # type: textblock
6295 #: ../src/guestfs-actions.pod:1442 ../fish/guestfish-actions.pod:1150
6296 msgid "The result list is not sorted."
6297 msgstr ""
6298
6299 # type: =head2
6300 #: ../src/guestfs-actions.pod:1448
6301 msgid "guestfs_findfs_label"
6302 msgstr ""
6303
6304 # type: verbatim
6305 #: ../src/guestfs-actions.pod:1450
6306 #, no-wrap
6307 msgid ""
6308 " char *guestfs_findfs_label (guestfs_h *g,\n"
6309 "\t\tconst char *label);\n"
6310 "\n"
6311 msgstr ""
6312
6313 # type: textblock
6314 #: ../src/guestfs-actions.pod:1453 ../fish/guestfish-actions.pod:1160
6315 msgid ""
6316 "This command searches the filesystems and returns the one which has the "
6317 "given label.  An error is returned if no such filesystem can be found."
6318 msgstr ""
6319
6320 # type: textblock
6321 #: ../src/guestfs-actions.pod:1457
6322 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6323 msgstr ""
6324
6325 # type: =head2
6326 #: ../src/guestfs-actions.pod:1462
6327 msgid "guestfs_findfs_uuid"
6328 msgstr ""
6329
6330 # type: verbatim
6331 #: ../src/guestfs-actions.pod:1464
6332 #, no-wrap
6333 msgid ""
6334 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6335 "\t\tconst char *uuid);\n"
6336 "\n"
6337 msgstr ""
6338
6339 # type: textblock
6340 #: ../src/guestfs-actions.pod:1467 ../fish/guestfish-actions.pod:1170
6341 msgid ""
6342 "This command searches the filesystems and returns the one which has the "
6343 "given UUID.  An error is returned if no such filesystem can be found."
6344 msgstr ""
6345
6346 # type: textblock
6347 #: ../src/guestfs-actions.pod:1471
6348 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6349 msgstr ""
6350
6351 # type: =head2
6352 #: ../src/guestfs-actions.pod:1476
6353 msgid "guestfs_fsck"
6354 msgstr ""
6355
6356 # type: verbatim
6357 #: ../src/guestfs-actions.pod:1478
6358 #, no-wrap
6359 msgid ""
6360 " int guestfs_fsck (guestfs_h *g,\n"
6361 "\t\tconst char *fstype,\n"
6362 "\t\tconst char *device);\n"
6363 "\n"
6364 msgstr ""
6365
6366 # type: textblock
6367 #: ../src/guestfs-actions.pod:1482 ../fish/guestfish-actions.pod:1180
6368 msgid ""
6369 "This runs the filesystem checker (fsck) on C<device> which should have "
6370 "filesystem type C<fstype>."
6371 msgstr ""
6372
6373 # type: textblock
6374 #: ../src/guestfs-actions.pod:1485 ../fish/guestfish-actions.pod:1183
6375 msgid ""
6376 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6377 "codes from C<fsck>."
6378 msgstr ""
6379
6380 # type: textblock
6381 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:1192
6382 msgid "Multiple status codes can be summed together."
6383 msgstr ""
6384
6385 # type: textblock
6386 #: ../src/guestfs-actions.pod:1498 ../fish/guestfish-actions.pod:1196
6387 msgid ""
6388 "A non-zero return code can mean \"success\", for example if errors have been "
6389 "corrected on the filesystem."
6390 msgstr ""
6391
6392 # type: textblock
6393 #: ../src/guestfs-actions.pod:1503 ../fish/guestfish-actions.pod:1201
6394 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6395 msgstr ""
6396
6397 # type: textblock
6398 #: ../src/guestfs-actions.pod:1508 ../fish/guestfish-actions.pod:1206
6399 msgid ""
6400 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6401 msgstr ""
6402
6403 # type: =head2
6404 #: ../src/guestfs-actions.pod:1512
6405 msgid "guestfs_get_append"
6406 msgstr ""
6407
6408 # type: verbatim
6409 #: ../src/guestfs-actions.pod:1514
6410 #, no-wrap
6411 msgid ""
6412 " const char *guestfs_get_append (guestfs_h *g);\n"
6413 "\n"
6414 msgstr ""
6415
6416 # type: textblock
6417 #: ../src/guestfs-actions.pod:1516 ../fish/guestfish-actions.pod:1212
6418 msgid ""
6419 "Return the additional kernel options which are added to the guest kernel "
6420 "command line."
6421 msgstr ""
6422
6423 # type: textblock
6424 #: ../src/guestfs-actions.pod:1519 ../fish/guestfish-actions.pod:1215
6425 msgid "If C<NULL> then no options are added."
6426 msgstr ""
6427
6428 # type: textblock
6429 #: ../src/guestfs-actions.pod:1521
6430 msgid ""
6431 "This function returns a string which may be NULL.  There is no way to return "
6432 "an error from this function.  The string is owned by the guest handle and "
6433 "must I<not> be freed."
6434 msgstr ""
6435
6436 # type: =head2
6437 #: ../src/guestfs-actions.pod:1525
6438 msgid "guestfs_get_autosync"
6439 msgstr ""
6440
6441 # type: verbatim
6442 #: ../src/guestfs-actions.pod:1527
6443 #, no-wrap
6444 msgid ""
6445 " int guestfs_get_autosync (guestfs_h *g);\n"
6446 "\n"
6447 msgstr ""
6448
6449 # type: textblock
6450 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1221
6451 msgid "Get the autosync flag."
6452 msgstr ""
6453
6454 # type: =head2
6455 #: ../src/guestfs-actions.pod:1533
6456 msgid "guestfs_get_direct"
6457 msgstr ""
6458
6459 # type: verbatim
6460 #: ../src/guestfs-actions.pod:1535
6461 #, no-wrap
6462 msgid ""
6463 " int guestfs_get_direct (guestfs_h *g);\n"
6464 "\n"
6465 msgstr ""
6466
6467 # type: textblock
6468 #: ../src/guestfs-actions.pod:1537 ../fish/guestfish-actions.pod:1227
6469 msgid "Return the direct appliance mode flag."
6470 msgstr ""
6471
6472 # type: =head2
6473 #: ../src/guestfs-actions.pod:1541
6474 msgid "guestfs_get_e2label"
6475 msgstr ""
6476
6477 # type: verbatim
6478 #: ../src/guestfs-actions.pod:1543
6479 #, no-wrap
6480 msgid ""
6481 " char *guestfs_get_e2label (guestfs_h *g,\n"
6482 "\t\tconst char *device);\n"
6483 "\n"
6484 msgstr ""
6485
6486 # type: textblock
6487 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1233
6488 msgid ""
6489 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6490 msgstr ""
6491
6492 # type: textblock
6493 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1236
6494 msgid ""
6495 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
6496 msgstr ""
6497
6498 # type: =head2
6499 #: ../src/guestfs-actions.pod:1559
6500 msgid "guestfs_get_e2uuid"
6501 msgstr ""
6502
6503 # type: verbatim
6504 #: ../src/guestfs-actions.pod:1561
6505 #, no-wrap
6506 msgid ""
6507 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6508 "\t\tconst char *device);\n"
6509 "\n"
6510 msgstr ""
6511
6512 # type: textblock
6513 #: ../src/guestfs-actions.pod:1564 ../fish/guestfish-actions.pod:1247
6514 msgid ""
6515 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6516 msgstr ""
6517
6518 # type: textblock
6519 #: ../src/guestfs-actions.pod:1570 ../fish/guestfish-actions.pod:1250
6520 msgid ""
6521 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6522 msgstr ""
6523
6524 # type: =head2
6525 #: ../src/guestfs-actions.pod:1577
6526 msgid "guestfs_get_memsize"
6527 msgstr ""
6528
6529 # type: verbatim
6530 #: ../src/guestfs-actions.pod:1579
6531 #, no-wrap
6532 msgid ""
6533 " int guestfs_get_memsize (guestfs_h *g);\n"
6534 "\n"
6535 msgstr ""
6536
6537 # type: textblock
6538 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1261
6539 msgid ""
6540 "This gets the memory size in megabytes allocated to the qemu subprocess."
6541 msgstr ""
6542
6543 # type: textblock
6544 #: ../src/guestfs-actions.pod:1584
6545 msgid ""
6546 "If C<guestfs_set_memsize> was not called on this handle, and if "
6547 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6548 "value for memsize."
6549 msgstr ""
6550
6551 # type: textblock
6552 #: ../src/guestfs-actions.pod:1588 ../src/guestfs-actions.pod:1651
6553 #: ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4389
6554 #: ../fish/guestfish-actions.pod:1268 ../fish/guestfish-actions.pod:1317
6555 #: ../fish/guestfish-actions.pod:3318 ../fish/guestfish-actions.pod:3395
6556 msgid ""
6557 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6558 msgstr ""
6559
6560 # type: =head2
6561 #: ../src/guestfs-actions.pod:1593
6562 msgid "guestfs_get_network"
6563 msgstr ""
6564
6565 # type: verbatim
6566 #: ../src/guestfs-actions.pod:1595
6567 #, no-wrap
6568 msgid ""
6569 " int guestfs_get_network (guestfs_h *g);\n"
6570 "\n"
6571 msgstr ""
6572
6573 # type: textblock
6574 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1275
6575 msgid "This returns the enable network flag."
6576 msgstr ""
6577
6578 # type: =head2
6579 #: ../src/guestfs-actions.pod:1601
6580 msgid "guestfs_get_path"
6581 msgstr ""
6582
6583 # type: verbatim
6584 #: ../src/guestfs-actions.pod:1603
6585 #, no-wrap
6586 msgid ""
6587 " const char *guestfs_get_path (guestfs_h *g);\n"
6588 "\n"
6589 msgstr ""
6590
6591 # type: textblock
6592 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1281
6593 msgid "Return the current search path."
6594 msgstr ""
6595
6596 # type: textblock
6597 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1283
6598 msgid ""
6599 "This is always non-NULL.  If it wasn't set already, then this will return "
6600 "the default path."
6601 msgstr ""
6602
6603 # type: textblock
6604 #: ../src/guestfs-actions.pod:1610 ../src/guestfs-actions.pod:1633
6605 msgid ""
6606 "This function returns a string, or NULL on error.  The string is owned by "
6607 "the guest handle and must I<not> be freed."
6608 msgstr ""
6609
6610 # type: =head2
6611 #: ../src/guestfs-actions.pod:1613
6612 msgid "guestfs_get_pid"
6613 msgstr ""
6614
6615 # type: verbatim
6616 #: ../src/guestfs-actions.pod:1615
6617 #, no-wrap
6618 msgid ""
6619 " int guestfs_get_pid (guestfs_h *g);\n"
6620 "\n"
6621 msgstr ""
6622
6623 # type: textblock
6624 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1290
6625 msgid ""
6626 "Return the process ID of the qemu subprocess.  If there is no qemu "
6627 "subprocess, then this will return an error."
6628 msgstr ""
6629
6630 # type: textblock
6631 #: ../src/guestfs-actions.pod:1620 ../fish/guestfish-actions.pod:1293
6632 msgid "This is an internal call used for debugging and testing."
6633 msgstr ""
6634
6635 # type: =head2
6636 #: ../src/guestfs-actions.pod:1624
6637 msgid "guestfs_get_qemu"
6638 msgstr ""
6639
6640 # type: verbatim
6641 #: ../src/guestfs-actions.pod:1626
6642 #, no-wrap
6643 msgid ""
6644 " const char *guestfs_get_qemu (guestfs_h *g);\n"
6645 "\n"
6646 msgstr ""
6647
6648 # type: textblock
6649 #: ../src/guestfs-actions.pod:1628 ../fish/guestfish-actions.pod:1299
6650 msgid "Return the current qemu binary."
6651 msgstr ""
6652
6653 # type: textblock
6654 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1301
6655 msgid ""
6656 "This is always non-NULL.  If it wasn't set already, then this will return "
6657 "the default qemu binary name."
6658 msgstr ""
6659
6660 # type: =head2
6661 #: ../src/guestfs-actions.pod:1636
6662 msgid "guestfs_get_recovery_proc"
6663 msgstr ""
6664
6665 # type: verbatim
6666 #: ../src/guestfs-actions.pod:1638
6667 #, no-wrap
6668 msgid ""
6669 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
6670 "\n"
6671 msgstr ""
6672
6673 # type: textblock
6674 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1308
6675 msgid "Return the recovery process enabled flag."
6676 msgstr ""
6677
6678 # type: =head2
6679 #: ../src/guestfs-actions.pod:1644
6680 msgid "guestfs_get_selinux"
6681 msgstr ""
6682
6683 # type: verbatim
6684 #: ../src/guestfs-actions.pod:1646
6685 #, no-wrap
6686 msgid ""
6687 " int guestfs_get_selinux (guestfs_h *g);\n"
6688 "\n"
6689 msgstr ""
6690
6691 # type: textblock
6692 #: ../src/guestfs-actions.pod:1648
6693 msgid ""
6694 "This returns the current setting of the selinux flag which is passed to the "
6695 "appliance at boot time.  See C<guestfs_set_selinux>."
6696 msgstr ""
6697
6698 # type: =head2
6699 #: ../src/guestfs-actions.pod:1656
6700 msgid "guestfs_get_state"
6701 msgstr ""
6702
6703 # type: verbatim
6704 #: ../src/guestfs-actions.pod:1658
6705 #, no-wrap
6706 msgid ""
6707 " int guestfs_get_state (guestfs_h *g);\n"
6708 "\n"
6709 msgstr ""
6710
6711 # type: textblock
6712 #: ../src/guestfs-actions.pod:1660 ../fish/guestfish-actions.pod:1324
6713 msgid ""
6714 "This returns the current state as an opaque integer.  This is only useful "
6715 "for printing debug and internal error messages."
6716 msgstr ""
6717
6718 # type: textblock
6719 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:2284
6720 #: ../src/guestfs-actions.pod:2307 ../src/guestfs-actions.pod:2356
6721 #: ../src/guestfs-actions.pod:2377 ../fish/guestfish-actions.pod:1327
6722 #: ../fish/guestfish-actions.pod:1821 ../fish/guestfish-actions.pod:1839
6723 #: ../fish/guestfish-actions.pod:1877 ../fish/guestfish-actions.pod:1893
6724 msgid "For more information on states, see L<guestfs(3)>."
6725 msgstr ""
6726
6727 # type: =head2
6728 #: ../src/guestfs-actions.pod:1667
6729 msgid "guestfs_get_trace"
6730 msgstr ""
6731
6732 # type: verbatim
6733 #: ../src/guestfs-actions.pod:1669
6734 #, no-wrap
6735 msgid ""
6736 " int guestfs_get_trace (guestfs_h *g);\n"
6737 "\n"
6738 msgstr ""
6739
6740 # type: textblock
6741 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1333
6742 msgid "Return the command trace flag."
6743 msgstr ""
6744
6745 # type: =head2
6746 #: ../src/guestfs-actions.pod:1675
6747 msgid "guestfs_get_umask"
6748 msgstr ""
6749
6750 # type: verbatim
6751 #: ../src/guestfs-actions.pod:1677
6752 #, no-wrap
6753 msgid ""
6754 " int guestfs_get_umask (guestfs_h *g);\n"
6755 "\n"
6756 msgstr ""
6757
6758 # type: textblock
6759 #: ../src/guestfs-actions.pod:1679
6760 msgid ""
6761 "Return the current umask.  By default the umask is C<022> unless it has been "
6762 "set by calling C<guestfs_umask>."
6763 msgstr ""
6764
6765 # type: =head2
6766 #: ../src/guestfs-actions.pod:1684
6767 msgid "guestfs_get_verbose"
6768 msgstr ""
6769
6770 # type: verbatim
6771 #: ../src/guestfs-actions.pod:1686
6772 #, no-wrap
6773 msgid ""
6774 " int guestfs_get_verbose (guestfs_h *g);\n"
6775 "\n"
6776 msgstr ""
6777
6778 # type: textblock
6779 #: ../src/guestfs-actions.pod:1688 ../fish/guestfish-actions.pod:1346
6780 msgid "This returns the verbose messages flag."
6781 msgstr ""
6782
6783 # type: =head2
6784 #: ../src/guestfs-actions.pod:1692
6785 msgid "guestfs_getcon"
6786 msgstr ""
6787
6788 # type: verbatim
6789 #: ../src/guestfs-actions.pod:1694
6790 #, no-wrap
6791 msgid ""
6792 " char *guestfs_getcon (guestfs_h *g);\n"
6793 "\n"
6794 msgstr ""
6795
6796 # type: textblock
6797 #: ../src/guestfs-actions.pod:1696 ../fish/guestfish-actions.pod:1352
6798 msgid "This gets the SELinux security context of the daemon."
6799 msgstr ""
6800
6801 # type: textblock
6802 #: ../src/guestfs-actions.pod:1698
6803 msgid ""
6804 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
6805 msgstr ""
6806
6807 # type: =head2
6808 #: ../src/guestfs-actions.pod:1704
6809 msgid "guestfs_getxattrs"
6810 msgstr ""
6811
6812 # type: verbatim
6813 #: ../src/guestfs-actions.pod:1706
6814 #, no-wrap
6815 msgid ""
6816 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
6817 "\t\tconst char *path);\n"
6818 "\n"
6819 msgstr ""
6820
6821 # type: textblock
6822 #: ../src/guestfs-actions.pod:1709 ../fish/guestfish-actions.pod:1361
6823 msgid ""
6824 "This call lists the extended attributes of the file or directory C<path>."
6825 msgstr ""
6826
6827 # type: textblock
6828 #: ../src/guestfs-actions.pod:1712 ../fish/guestfish-actions.pod:1364
6829 msgid ""
6830 "At the system call level, this is a combination of the L<listxattr(2)> and "
6831 "L<getxattr(2)> calls."
6832 msgstr ""
6833
6834 # type: textblock
6835 #: ../src/guestfs-actions.pod:1715
6836 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
6837 msgstr ""
6838
6839 # type: textblock
6840 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:2451
6841 #: ../src/guestfs-actions.pod:2989
6842 msgid ""
6843 "This function returns a C<struct guestfs_xattr_list *> (see E<lt>guestfs-"
6844 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
6845 "C<guestfs_free_xattr_list> after use>."
6846 msgstr ""
6847
6848 # type: =head2
6849 #: ../src/guestfs-actions.pod:1722
6850 msgid "guestfs_glob_expand"
6851 msgstr ""
6852
6853 # type: verbatim
6854 #: ../src/guestfs-actions.pod:1724
6855 #, no-wrap
6856 msgid ""
6857 " char **guestfs_glob_expand (guestfs_h *g,\n"
6858 "\t\tconst char *pattern);\n"
6859 "\n"
6860 msgstr ""
6861
6862 # type: textblock
6863 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1373
6864 msgid ""
6865 "This command searches for all the pathnames matching C<pattern> according to "
6866 "the wildcard expansion rules used by the shell."
6867 msgstr ""
6868
6869 # type: textblock
6870 #: ../src/guestfs-actions.pod:1731 ../fish/guestfish-actions.pod:1377
6871 msgid ""
6872 "If no paths match, then this returns an empty list (note: not an error)."
6873 msgstr ""
6874
6875 # type: textblock
6876 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1380
6877 msgid ""
6878 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
6879 "GLOB_BRACE>.  See that manual page for more details."
6880 msgstr ""
6881
6882 # type: =head2
6883 #: ../src/guestfs-actions.pod:1742
6884 msgid "guestfs_grep"
6885 msgstr ""
6886
6887 # type: verbatim
6888 #: ../src/guestfs-actions.pod:1744
6889 #, no-wrap
6890 msgid ""
6891 " char **guestfs_grep (guestfs_h *g,\n"
6892 "\t\tconst char *regex,\n"
6893 "\t\tconst char *path);\n"
6894 "\n"
6895 msgstr ""
6896
6897 # type: textblock
6898 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1388
6899 msgid "This calls the external C<grep> program and returns the matching lines."
6900 msgstr ""
6901
6902 # type: =head2
6903 #: ../src/guestfs-actions.pod:1758
6904 msgid "guestfs_grepi"
6905 msgstr ""
6906
6907 # type: verbatim
6908 #: ../src/guestfs-actions.pod:1760
6909 #, no-wrap
6910 msgid ""
6911 " char **guestfs_grepi (guestfs_h *g,\n"
6912 "\t\tconst char *regex,\n"
6913 "\t\tconst char *path);\n"
6914 "\n"
6915 msgstr ""
6916
6917 # type: textblock
6918 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1398
6919 msgid ""
6920 "This calls the external C<grep -i> program and returns the matching lines."
6921 msgstr ""
6922
6923 # type: =head2
6924 #: ../src/guestfs-actions.pod:1774
6925 msgid "guestfs_grub_install"
6926 msgstr ""
6927
6928 # type: verbatim
6929 #: ../src/guestfs-actions.pod:1776
6930 #, no-wrap
6931 msgid ""
6932 " int guestfs_grub_install (guestfs_h *g,\n"
6933 "\t\tconst char *root,\n"
6934 "\t\tconst char *device);\n"
6935 "\n"
6936 msgstr ""
6937
6938 # type: textblock
6939 #: ../src/guestfs-actions.pod:1780 ../fish/guestfish-actions.pod:1408
6940 msgid ""
6941 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
6942 "the root directory being C<root>."
6943 msgstr ""
6944
6945 # type: textblock
6946 #: ../src/guestfs-actions.pod:1783 ../fish/guestfish-actions.pod:1411
6947 msgid ""
6948 "Note: If grub-install reports the error \"No suitable drive was found in the "
6949 "generated device map.\" it may be that you need to create a C</boot/grub/"
6950 "device.map> file first that contains the mapping between grub device names "
6951 "and Linux device names.  It is usually sufficient to create a file "
6952 "containing:"
6953 msgstr ""
6954
6955 # type: verbatim
6956 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1418
6957 #, no-wrap
6958 msgid ""
6959 " (hd0) /dev/vda\n"
6960 "\n"
6961 msgstr ""
6962
6963 # type: textblock
6964 #: ../src/guestfs-actions.pod:1792 ../fish/guestfish-actions.pod:1420
6965 msgid "replacing C</dev/vda> with the name of the installation device."
6966 msgstr ""
6967
6968 # type: =head2
6969 #: ../src/guestfs-actions.pod:1796
6970 msgid "guestfs_head"
6971 msgstr ""
6972
6973 # type: verbatim
6974 #: ../src/guestfs-actions.pod:1798
6975 #, no-wrap
6976 msgid ""
6977 " char **guestfs_head (guestfs_h *g,\n"
6978 "\t\tconst char *path);\n"
6979 "\n"
6980 msgstr ""
6981
6982 # type: textblock
6983 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1426
6984 msgid ""
6985 "This command returns up to the first 10 lines of a file as a list of strings."
6986 msgstr ""
6987
6988 # type: =head2
6989 #: ../src/guestfs-actions.pod:1811
6990 msgid "guestfs_head_n"
6991 msgstr ""
6992
6993 # type: verbatim
6994 #: ../src/guestfs-actions.pod:1813
6995 #, no-wrap
6996 msgid ""
6997 " char **guestfs_head_n (guestfs_h *g,\n"
6998 "\t\tint nrlines,\n"
6999 "\t\tconst char *path);\n"
7000 "\n"
7001 msgstr ""
7002
7003 # type: textblock
7004 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1436
7005 msgid ""
7006 "If the parameter C<nrlines> is a positive number, this returns the first "
7007 "C<nrlines> lines of the file C<path>."
7008 msgstr ""
7009
7010 # type: textblock
7011 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1439
7012 msgid ""
7013 "If the parameter C<nrlines> is a negative number, this returns lines from "
7014 "the file C<path>, excluding the last C<nrlines> lines."
7015 msgstr ""
7016
7017 # type: textblock
7018 #: ../src/guestfs-actions.pod:1823 ../src/guestfs-actions.pod:4845
7019 #: ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:3737
7020 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7021 msgstr ""
7022
7023 # type: =head2
7024 #: ../src/guestfs-actions.pod:1832
7025 msgid "guestfs_hexdump"
7026 msgstr ""
7027
7028 # type: verbatim
7029 #: ../src/guestfs-actions.pod:1834
7030 #, no-wrap
7031 msgid ""
7032 " char *guestfs_hexdump (guestfs_h *g,\n"
7033 "\t\tconst char *path);\n"
7034 "\n"
7035 msgstr ""
7036
7037 # type: textblock
7038 #: ../src/guestfs-actions.pod:1837 ../fish/guestfish-actions.pod:1451
7039 msgid ""
7040 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7041 "readable, canonical hex dump of the file."
7042 msgstr ""
7043
7044 # type: =head2
7045 #: ../src/guestfs-actions.pod:1846
7046 msgid "guestfs_initrd_cat"
7047 msgstr ""
7048
7049 # type: verbatim
7050 #: ../src/guestfs-actions.pod:1848
7051 #, no-wrap
7052 msgid ""
7053 " char *guestfs_initrd_cat (guestfs_h *g,\n"
7054 "\t\tconst char *initrdpath,\n"
7055 "\t\tconst char *filename,\n"
7056 "\t\tsize_t *size_r);\n"
7057 "\n"
7058 msgstr ""
7059
7060 # type: textblock
7061 #: ../src/guestfs-actions.pod:1853 ../fish/guestfish-actions.pod:1461
7062 msgid ""
7063 "This command unpacks the file C<filename> from the initrd file called "
7064 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7065 "character."
7066 msgstr ""
7067
7068 # type: textblock
7069 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1465
7070 msgid ""
7071 "For example, in guestfish you could use the following command to examine the "
7072 "boot script (usually called C</init>)  contained in a Linux initrd or "
7073 "initramfs image:"
7074 msgstr ""
7075
7076 # type: verbatim
7077 #: ../src/guestfs-actions.pod:1861 ../fish/guestfish-actions.pod:1469
7078 #, no-wrap
7079 msgid ""
7080 " initrd-cat /boot/initrd-<version>.img init\n"
7081 "\n"
7082 msgstr ""
7083
7084 # type: textblock
7085 #: ../src/guestfs-actions.pod:1863
7086 msgid "See also C<guestfs_initrd_list>."
7087 msgstr ""
7088
7089 # type: textblock
7090 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:3803
7091 #: ../src/guestfs-actions.pod:3932
7092 msgid ""
7093 "This function returns a buffer, or NULL on error.  The size of the returned "
7094 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7095 "after use>."
7096 msgstr ""
7097
7098 # type: =head2
7099 #: ../src/guestfs-actions.pod:1872
7100 msgid "guestfs_initrd_list"
7101 msgstr ""
7102
7103 # type: verbatim
7104 #: ../src/guestfs-actions.pod:1874
7105 #, no-wrap
7106 msgid ""
7107 " char **guestfs_initrd_list (guestfs_h *g,\n"
7108 "\t\tconst char *path);\n"
7109 "\n"
7110 msgstr ""
7111
7112 # type: textblock
7113 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1480
7114 msgid "This command lists out files contained in an initrd."
7115 msgstr ""
7116
7117 # type: textblock
7118 #: ../src/guestfs-actions.pod:1879 ../fish/guestfish-actions.pod:1482
7119 msgid ""
7120 "The files are listed without any initial C</> character.  The files are "
7121 "listed in the order they appear (not necessarily alphabetical).  Directory "
7122 "names are listed as separate items."
7123 msgstr ""
7124
7125 # type: textblock
7126 #: ../src/guestfs-actions.pod:1883 ../fish/guestfish-actions.pod:1486
7127 msgid ""
7128 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7129 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7130 "files)."
7131 msgstr ""
7132
7133 # type: =head2
7134 #: ../src/guestfs-actions.pod:1891
7135 msgid "guestfs_inotify_add_watch"
7136 msgstr ""
7137
7138 # type: verbatim
7139 #: ../src/guestfs-actions.pod:1893
7140 #, no-wrap
7141 msgid ""
7142 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
7143 "\t\tconst char *path,\n"
7144 "\t\tint mask);\n"
7145 "\n"
7146 msgstr ""
7147
7148 # type: textblock
7149 #: ../src/guestfs-actions.pod:1897 ../fish/guestfish-actions.pod:1494
7150 msgid "Watch C<path> for the events listed in C<mask>."
7151 msgstr ""
7152
7153 # type: textblock
7154 #: ../src/guestfs-actions.pod:1899 ../fish/guestfish-actions.pod:1496
7155 msgid ""
7156 "Note that if C<path> is a directory then events within that directory are "
7157 "watched, but this does I<not> happen recursively (in subdirectories)."
7158 msgstr ""
7159
7160 # type: textblock
7161 #: ../src/guestfs-actions.pod:1903 ../fish/guestfish-actions.pod:1500
7162 msgid ""
7163 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7164 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7165 msgstr ""
7166
7167 # type: =head2
7168 #: ../src/guestfs-actions.pod:1909
7169 msgid "guestfs_inotify_close"
7170 msgstr ""
7171
7172 # type: verbatim
7173 #: ../src/guestfs-actions.pod:1911
7174 #, no-wrap
7175 msgid ""
7176 " int guestfs_inotify_close (guestfs_h *g);\n"
7177 "\n"
7178 msgstr ""
7179
7180 # type: textblock
7181 #: ../src/guestfs-actions.pod:1913 ../fish/guestfish-actions.pod:1508
7182 msgid ""
7183 "This closes the inotify handle which was previously opened by inotify_init.  "
7184 "It removes all watches, throws away any pending events, and deallocates all "
7185 "resources."
7186 msgstr ""
7187
7188 # type: =head2
7189 #: ../src/guestfs-actions.pod:1919
7190 msgid "guestfs_inotify_files"
7191 msgstr ""
7192
7193 # type: verbatim
7194 #: ../src/guestfs-actions.pod:1921
7195 #, no-wrap
7196 msgid ""
7197 " char **guestfs_inotify_files (guestfs_h *g);\n"
7198 "\n"
7199 msgstr ""
7200
7201 # type: textblock
7202 #: ../src/guestfs-actions.pod:1923
7203 msgid ""
7204 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7205 "returns a list of pathnames of objects that were touched.  The returned "
7206 "pathnames are sorted and deduplicated."
7207 msgstr ""
7208
7209 # type: =head2
7210 #: ../src/guestfs-actions.pod:1931
7211 msgid "guestfs_inotify_init"
7212 msgstr ""
7213
7214 # type: verbatim
7215 #: ../src/guestfs-actions.pod:1933
7216 #, no-wrap
7217 msgid ""
7218 " int guestfs_inotify_init (guestfs_h *g,\n"
7219 "\t\tint maxevents);\n"
7220 "\n"
7221 msgstr ""
7222
7223 # type: textblock
7224 #: ../src/guestfs-actions.pod:1936 ../fish/guestfish-actions.pod:1524
7225 msgid ""
7226 "This command creates a new inotify handle.  The inotify subsystem can be "
7227 "used to notify events which happen to objects in the guest filesystem."
7228 msgstr ""
7229
7230 # type: textblock
7231 #: ../src/guestfs-actions.pod:1940
7232 msgid ""
7233 "C<maxevents> is the maximum number of events which will be queued up between "
7234 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7235 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7236 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7237 "throws away events, but records the fact that it threw them away by setting "
7238 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7239 "C<guestfs_inotify_read>)."
7240 msgstr ""
7241
7242 # type: textblock
7243 #: ../src/guestfs-actions.pod:1950
7244 msgid ""
7245 "Before any events are generated, you have to add some watches to the "
7246 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7247 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7248 msgstr ""
7249
7250 # type: textblock
7251 #: ../src/guestfs-actions.pod:1956
7252 msgid ""
7253 "Queued up events should be read periodically by calling "
7254 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7255 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7256 "often enough then you risk the internal queue overflowing."
7257 msgstr ""
7258
7259 # type: textblock
7260 #: ../src/guestfs-actions.pod:1963
7261 msgid ""
7262 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7263 "This also removes any watches automatically."
7264 msgstr ""
7265
7266 # type: textblock
7267 #: ../src/guestfs-actions.pod:1967 ../fish/guestfish-actions.pod:1555
7268 msgid ""
7269 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7270 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7271 "that there is one global inotify handle per libguestfs instance."
7272 msgstr ""
7273
7274 # type: =head2
7275 #: ../src/guestfs-actions.pod:1974
7276 msgid "guestfs_inotify_read"
7277 msgstr ""
7278
7279 # type: verbatim
7280 #: ../src/guestfs-actions.pod:1976
7281 #, no-wrap
7282 msgid ""
7283 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
7284 "\n"
7285 msgstr ""
7286
7287 # type: textblock
7288 #: ../src/guestfs-actions.pod:1978 ../fish/guestfish-actions.pod:1564
7289 msgid ""
7290 "Return the complete queue of events that have happened since the previous "
7291 "read call."
7292 msgstr ""
7293
7294 # type: textblock
7295 #: ../src/guestfs-actions.pod:1981 ../fish/guestfish-actions.pod:1567
7296 msgid "If no events have happened, this returns an empty list."
7297 msgstr ""
7298
7299 # type: textblock
7300 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1569
7301 msgid ""
7302 "I<Note>: In order to make sure that all events have been read, you must call "
7303 "this function repeatedly until it returns an empty list.  The reason is that "
7304 "the call will read events up to the maximum appliance-to-host message size "
7305 "and leave remaining events in the queue."
7306 msgstr ""
7307
7308 # type: textblock
7309 #: ../src/guestfs-actions.pod:1989
7310 msgid ""
7311 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7312 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7313 "must call C<guestfs_free_inotify_event_list> after use>."
7314 msgstr ""
7315
7316 # type: =head2
7317 #: ../src/guestfs-actions.pod:1994
7318 msgid "guestfs_inotify_rm_watch"
7319 msgstr ""
7320
7321 # type: verbatim
7322 #: ../src/guestfs-actions.pod:1996
7323 #, no-wrap
7324 msgid ""
7325 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7326 "\t\tint wd);\n"
7327 "\n"
7328 msgstr ""
7329
7330 # type: textblock
7331 #: ../src/guestfs-actions.pod:1999
7332 msgid ""
7333 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
7334 msgstr ""
7335
7336 # type: =head2
7337 #: ../src/guestfs-actions.pod:2004
7338 msgid "guestfs_inspect_get_arch"
7339 msgstr ""
7340
7341 # type: verbatim
7342 #: ../src/guestfs-actions.pod:2006
7343 #, no-wrap
7344 msgid ""
7345 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7346 "\t\tconst char *root);\n"
7347 "\n"
7348 msgstr ""
7349
7350 # type: textblock
7351 #: ../src/guestfs-actions.pod:2009 ../src/guestfs-actions.pod:2029
7352 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2102
7353 #: ../src/guestfs-actions.pod:2126 ../src/guestfs-actions.pod:2144
7354 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:2195
7355 msgid ""
7356 "This function should only be called with a root device string as returned by "
7357 "C<guestfs_inspect_os>."
7358 msgstr ""
7359
7360 # type: textblock
7361 #: ../src/guestfs-actions.pod:2012
7362 msgid ""
7363 "This returns the architecture of the inspected operating system.  The "
7364 "possible return values are listed under C<guestfs_file_architecture>."
7365 msgstr ""
7366
7367 # type: textblock
7368 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1593
7369 msgid ""
7370 "If the architecture could not be determined, then the string C<unknown> is "
7371 "returned."
7372 msgstr ""
7373
7374 # type: textblock
7375 #: ../src/guestfs-actions.pod:2019 ../src/guestfs-actions.pod:2069
7376 #: ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2185
7377 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2257
7378 #: ../fish/guestfish-actions.pod:1596 ../fish/guestfish-actions.pod:1642
7379 #: ../fish/guestfish-actions.pod:1681 ../fish/guestfish-actions.pod:1736
7380 #: ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1801
7381 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7382 msgstr ""
7383
7384 # type: =head2
7385 #: ../src/guestfs-actions.pod:2024
7386 msgid "guestfs_inspect_get_distro"
7387 msgstr ""
7388
7389 # type: verbatim
7390 #: ../src/guestfs-actions.pod:2026
7391 #, no-wrap
7392 msgid ""
7393 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7394 "\t\tconst char *root);\n"
7395 "\n"
7396 msgstr ""
7397
7398 # type: textblock
7399 #: ../src/guestfs-actions.pod:2032 ../fish/guestfish-actions.pod:1605
7400 msgid ""
7401 "This returns the distro (distribution) of the inspected operating system."
7402 msgstr ""
7403
7404 # type: textblock
7405 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1608
7406 msgid "Currently defined distros are:"
7407 msgstr ""
7408
7409 # type: =item
7410 #: ../src/guestfs-actions.pod:2039 ../fish/guestfish-actions.pod:1612
7411 msgid "\"debian\""
7412 msgstr ""
7413
7414 # type: textblock
7415 #: ../src/guestfs-actions.pod:2041 ../fish/guestfish-actions.pod:1614
7416 msgid "Debian or a Debian-derived distro such as Ubuntu."
7417 msgstr ""
7418
7419 # type: =item
7420 #: ../src/guestfs-actions.pod:2043 ../fish/guestfish-actions.pod:1616
7421 msgid "\"fedora\""
7422 msgstr ""
7423
7424 # type: textblock
7425 #: ../src/guestfs-actions.pod:2045 ../fish/guestfish-actions.pod:1618
7426 msgid "Fedora."
7427 msgstr ""
7428
7429 # type: =item
7430 #: ../src/guestfs-actions.pod:2047 ../fish/guestfish-actions.pod:1620
7431 msgid "\"redhat-based\""
7432 msgstr ""
7433
7434 # type: textblock
7435 #: ../src/guestfs-actions.pod:2049 ../fish/guestfish-actions.pod:1622
7436 msgid "Some Red Hat-derived distro."
7437 msgstr ""
7438
7439 # type: =item
7440 #: ../src/guestfs-actions.pod:2051 ../fish/guestfish-actions.pod:1624
7441 msgid "\"rhel\""
7442 msgstr ""
7443
7444 # type: textblock
7445 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1626
7446 msgid "Red Hat Enterprise Linux and some derivatives."
7447 msgstr ""
7448
7449 # type: =item
7450 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2207
7451 #: ../fish/guestfish-actions.pod:1628 ../fish/guestfish-actions.pod:1754
7452 msgid "\"windows\""
7453 msgstr ""
7454
7455 # type: textblock
7456 #: ../src/guestfs-actions.pod:2057 ../fish/guestfish-actions.pod:1630
7457 msgid ""
7458 "Windows does not have distributions.  This string is returned if the OS type "
7459 "is Windows."
7460 msgstr ""
7461
7462 # type: =item
7463 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2211
7464 #: ../fish/guestfish-actions.pod:1633 ../fish/guestfish-actions.pod:1758
7465 msgid "\"unknown\""
7466 msgstr ""
7467
7468 # type: textblock
7469 #: ../src/guestfs-actions.pod:2062 ../fish/guestfish-actions.pod:1635
7470 msgid "The distro could not be determined."
7471 msgstr ""
7472
7473 # type: textblock
7474 #: ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2217
7475 #: ../fish/guestfish-actions.pod:1639 ../fish/guestfish-actions.pod:1764
7476 msgid ""
7477 "Future versions of libguestfs may return other strings here.  The caller "
7478 "should be prepared to handle any string."
7479 msgstr ""
7480
7481 # type: =head2
7482 #: ../src/guestfs-actions.pod:2074
7483 msgid "guestfs_inspect_get_filesystems"
7484 msgstr ""
7485
7486 # type: verbatim
7487 #: ../src/guestfs-actions.pod:2076
7488 #, no-wrap
7489 msgid ""
7490 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7491 "\t\tconst char *root);\n"
7492 "\n"
7493 msgstr ""
7494
7495 # type: textblock
7496 #: ../src/guestfs-actions.pod:2082 ../fish/guestfish-actions.pod:1651
7497 msgid ""
7498 "This returns a list of all the filesystems that we think are associated with "
7499 "this operating system.  This includes the root filesystem, other ordinary "
7500 "filesystems, and non-mounted devices like swap partitions."
7501 msgstr ""
7502
7503 # type: textblock
7504 #: ../src/guestfs-actions.pod:2087 ../fish/guestfish-actions.pod:1656
7505 msgid ""
7506 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7507 "to be shared between operating systems."
7508 msgstr ""
7509
7510 # type: textblock
7511 #: ../src/guestfs-actions.pod:2090
7512 msgid ""
7513 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7514 "C<guestfs_inspect_get_mountpoints>."
7515 msgstr ""
7516
7517 # type: =head2
7518 #: ../src/guestfs-actions.pod:2097
7519 msgid "guestfs_inspect_get_major_version"
7520 msgstr ""
7521
7522 # type: verbatim
7523 #: ../src/guestfs-actions.pod:2099
7524 #, no-wrap
7525 msgid ""
7526 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
7527 "\t\tconst char *root);\n"
7528 "\n"
7529 msgstr ""
7530
7531 # type: textblock
7532 #: ../src/guestfs-actions.pod:2105 ../fish/guestfish-actions.pod:1669
7533 msgid ""
7534 "This returns the major version number of the inspected operating system."
7535 msgstr ""
7536
7537 # type: textblock
7538 #: ../src/guestfs-actions.pod:2108 ../fish/guestfish-actions.pod:1672
7539 msgid ""
7540 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7541 "popular public names used by the operating system.  Notably the operating "
7542 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7543 "1).  You can find out the real versions corresponding to releases of Windows "
7544 "by consulting Wikipedia or MSDN."
7545 msgstr ""
7546
7547 # type: textblock
7548 #: ../src/guestfs-actions.pod:2115 ../src/guestfs-actions.pod:2132
7549 #: ../fish/guestfish-actions.pod:1679 ../fish/guestfish-actions.pod:1693
7550 msgid "If the version could not be determined, then C<0> is returned."
7551 msgstr ""
7552
7553 # type: =head2
7554 #: ../src/guestfs-actions.pod:2121
7555 msgid "guestfs_inspect_get_minor_version"
7556 msgstr ""
7557
7558 # type: verbatim
7559 #: ../src/guestfs-actions.pod:2123
7560 #, no-wrap
7561 msgid ""
7562 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
7563 "\t\tconst char *root);\n"
7564 "\n"
7565 msgstr ""
7566
7567 # type: textblock
7568 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1690
7569 msgid ""
7570 "This returns the minor version number of the inspected operating system."
7571 msgstr ""
7572
7573 # type: textblock
7574 #: ../src/guestfs-actions.pod:2134
7575 msgid ""
7576 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7577 "C<guestfs_inspect_get_major_version>."
7578 msgstr ""
7579
7580 # type: =head2
7581 #: ../src/guestfs-actions.pod:2139
7582 msgid "guestfs_inspect_get_mountpoints"
7583 msgstr ""
7584
7585 # type: verbatim
7586 #: ../src/guestfs-actions.pod:2141
7587 #, no-wrap
7588 msgid ""
7589 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
7590 "\t\tconst char *root);\n"
7591 "\n"
7592 msgstr ""
7593
7594 # type: textblock
7595 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1705
7596 msgid ""
7597 "This returns a hash of where we think the filesystems associated with this "
7598 "operating system should be mounted.  Callers should note that this is at "
7599 "best an educated guess made by reading configuration files such as C</etc/"
7600 "fstab>."
7601 msgstr ""
7602
7603 # type: textblock
7604 #: ../src/guestfs-actions.pod:2152 ../fish/guestfish-actions.pod:1710
7605 msgid ""
7606 "Each element in the returned hashtable has a key which is the path of the "
7607 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7608 "mounted there (eg. C</dev/sda1>)."
7609 msgstr ""
7610
7611 # type: textblock
7612 #: ../src/guestfs-actions.pod:2157 ../fish/guestfish-actions.pod:1715
7613 msgid ""
7614 "Non-mounted devices such as swap devices are I<not> returned in this list."
7615 msgstr ""
7616
7617 # type: textblock
7618 #: ../src/guestfs-actions.pod:2160
7619 msgid ""
7620 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7621 "C<guestfs_inspect_get_filesystems>."
7622 msgstr ""
7623
7624 # type: textblock
7625 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2503
7626 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:4962
7627 msgid ""
7628 "This function returns a NULL-terminated array of strings, or NULL if there "
7629 "was an error.  The array of strings will always have length C<2n+1>, where "
7630 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
7631 "caller must free the strings and the array after use>."
7632 msgstr ""
7633
7634 # type: =head2
7635 #: ../src/guestfs-actions.pod:2169
7636 msgid "guestfs_inspect_get_product_name"
7637 msgstr ""
7638
7639 # type: verbatim
7640 #: ../src/guestfs-actions.pod:2171
7641 #, no-wrap
7642 msgid ""
7643 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
7644 "\t\tconst char *root);\n"
7645 "\n"
7646 msgstr ""
7647
7648 # type: textblock
7649 #: ../src/guestfs-actions.pod:2177 ../fish/guestfish-actions.pod:1728
7650 msgid ""
7651 "This returns the product name of the inspected operating system.  The "
7652 "product name is generally some freeform string which can be displayed to the "
7653 "user, but should not be parsed by programs."
7654 msgstr ""
7655
7656 # type: textblock
7657 #: ../src/guestfs-actions.pod:2182 ../fish/guestfish-actions.pod:1733
7658 msgid ""
7659 "If the product name could not be determined, then the string C<unknown> is "
7660 "returned."
7661 msgstr ""
7662
7663 # type: =head2
7664 #: ../src/guestfs-actions.pod:2190
7665 msgid "guestfs_inspect_get_type"
7666 msgstr ""
7667
7668 # type: verbatim
7669 #: ../src/guestfs-actions.pod:2192
7670 #, no-wrap
7671 msgid ""
7672 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
7673 "\t\tconst char *root);\n"
7674 "\n"
7675 msgstr ""
7676
7677 # type: textblock
7678 #: ../src/guestfs-actions.pod:2198 ../fish/guestfish-actions.pod:1745
7679 msgid ""
7680 "This returns the type of the inspected operating system.  Currently defined "
7681 "types are:"
7682 msgstr ""
7683
7684 # type: =item
7685 #: ../src/guestfs-actions.pod:2203 ../fish/guestfish-actions.pod:1750
7686 msgid "\"linux\""
7687 msgstr ""
7688
7689 # type: textblock
7690 #: ../src/guestfs-actions.pod:2205 ../fish/guestfish-actions.pod:1752
7691 msgid "Any Linux-based operating system."
7692 msgstr ""
7693
7694 # type: textblock
7695 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1756
7696 msgid "Any Microsoft Windows operating system."
7697 msgstr ""
7698
7699 # type: textblock
7700 #: ../src/guestfs-actions.pod:2213 ../fish/guestfish-actions.pod:1760
7701 msgid "The operating system type could not be determined."
7702 msgstr ""
7703
7704 # type: =head2
7705 #: ../src/guestfs-actions.pod:2225
7706 msgid "guestfs_inspect_os"
7707 msgstr ""
7708
7709 # type: verbatim
7710 #: ../src/guestfs-actions.pod:2227
7711 #, no-wrap
7712 msgid ""
7713 " char **guestfs_inspect_os (guestfs_h *g);\n"
7714 "\n"
7715 msgstr ""
7716
7717 # type: textblock
7718 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1773
7719 msgid ""
7720 "This function uses other libguestfs functions and certain heuristics to "
7721 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
7722 "for operating systems."
7723 msgstr ""
7724
7725 # type: textblock
7726 #: ../src/guestfs-actions.pod:2233 ../fish/guestfish-actions.pod:1777
7727 msgid "The list returned is empty if no operating systems were found."
7728 msgstr ""
7729
7730 # type: textblock
7731 #: ../src/guestfs-actions.pod:2235 ../fish/guestfish-actions.pod:1779
7732 msgid ""
7733 "If one operating system was found, then this returns a list with a single "
7734 "element, which is the name of the root filesystem of this operating system.  "
7735 "It is also possible for this function to return a list containing more than "
7736 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
7737 "element being the root filesystem of one of the operating systems."
7738 msgstr ""
7739
7740 # type: textblock
7741 #: ../src/guestfs-actions.pod:2242
7742 msgid ""
7743 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
7744 "functions in order to query further information about each operating system, "
7745 "such as the name and version."
7746 msgstr ""
7747
7748 # type: textblock
7749 #: ../src/guestfs-actions.pod:2247
7750 msgid ""
7751 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
7752 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
7753 "the contents.  This should be called with no disks currently mounted.  The "
7754 "function may also use Augeas, so any existing Augeas handle will be closed."
7755 msgstr ""
7756
7757 # type: textblock
7758 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1797
7759 msgid ""
7760 "This function cannot decrypt encrypted disks.  The caller must do that first "
7761 "(supplying the necessary keys) if the disk is encrypted."
7762 msgstr ""
7763
7764 # type: textblock
7765 #: ../src/guestfs-actions.pod:2259 ../src/guestfs-actions.pod:2464
7766 #: ../src/guestfs-actions.pod:2520
7767 msgid "See also C<guestfs_list_filesystems>."
7768 msgstr ""
7769
7770 # type: =head2
7771 #: ../src/guestfs-actions.pod:2265
7772 msgid "guestfs_is_blockdev"
7773 msgstr ""
7774
7775 # type: verbatim
7776 #: ../src/guestfs-actions.pod:2267
7777 #, no-wrap
7778 msgid ""
7779 " int guestfs_is_blockdev (guestfs_h *g,\n"
7780 "\t\tconst char *path);\n"
7781 "\n"
7782 msgstr ""
7783
7784 # type: textblock
7785 #: ../src/guestfs-actions.pod:2270 ../fish/guestfish-actions.pod:1809
7786 msgid ""
7787 "This returns C<true> if and only if there is a block device with the given "
7788 "C<path> name."
7789 msgstr ""
7790
7791 # type: textblock
7792 #: ../src/guestfs-actions.pod:2273 ../src/guestfs-actions.pod:2296
7793 #: ../src/guestfs-actions.pod:2320 ../src/guestfs-actions.pod:2332
7794 #: ../src/guestfs-actions.pod:2345 ../src/guestfs-actions.pod:2389
7795 #: ../src/guestfs-actions.pod:2401
7796 msgid "See also C<guestfs_stat>."
7797 msgstr ""
7798
7799 # type: =head2
7800 #: ../src/guestfs-actions.pod:2277
7801 msgid "guestfs_is_busy"
7802 msgstr ""
7803
7804 # type: verbatim
7805 #: ../src/guestfs-actions.pod:2279
7806 #, no-wrap
7807 msgid ""
7808 " int guestfs_is_busy (guestfs_h *g);\n"
7809 "\n"
7810 msgstr ""
7811
7812 # type: textblock
7813 #: ../src/guestfs-actions.pod:2281 ../fish/guestfish-actions.pod:1818
7814 msgid ""
7815 "This returns true iff this handle is busy processing a command (in the "
7816 "C<BUSY> state)."
7817 msgstr ""
7818
7819 # type: =head2
7820 #: ../src/guestfs-actions.pod:2288
7821 msgid "guestfs_is_chardev"
7822 msgstr ""
7823
7824 # type: verbatim
7825 #: ../src/guestfs-actions.pod:2290
7826 #, no-wrap
7827 msgid ""
7828 " int guestfs_is_chardev (guestfs_h *g,\n"
7829 "\t\tconst char *path);\n"
7830 "\n"
7831 msgstr ""
7832
7833 # type: textblock
7834 #: ../src/guestfs-actions.pod:2293 ../fish/guestfish-actions.pod:1827
7835 msgid ""
7836 "This returns C<true> if and only if there is a character device with the "
7837 "given C<path> name."
7838 msgstr ""
7839
7840 # type: =head2
7841 #: ../src/guestfs-actions.pod:2300
7842 msgid "guestfs_is_config"
7843 msgstr ""
7844
7845 # type: verbatim
7846 #: ../src/guestfs-actions.pod:2302
7847 #, no-wrap
7848 msgid ""
7849 " int guestfs_is_config (guestfs_h *g);\n"
7850 "\n"
7851 msgstr ""
7852
7853 # type: textblock
7854 #: ../src/guestfs-actions.pod:2304 ../fish/guestfish-actions.pod:1836
7855 msgid ""
7856 "This returns true iff this handle is being configured (in the C<CONFIG> "
7857 "state)."
7858 msgstr ""
7859
7860 # type: =head2
7861 #: ../src/guestfs-actions.pod:2311
7862 msgid "guestfs_is_dir"
7863 msgstr ""
7864
7865 # type: verbatim
7866 #: ../src/guestfs-actions.pod:2313
7867 #, no-wrap
7868 msgid ""
7869 " int guestfs_is_dir (guestfs_h *g,\n"
7870 "\t\tconst char *path);\n"
7871 "\n"
7872 msgstr ""
7873
7874 # type: textblock
7875 #: ../src/guestfs-actions.pod:2316 ../fish/guestfish-actions.pod:1845
7876 msgid ""
7877 "This returns C<true> if and only if there is a directory with the given "
7878 "C<path> name.  Note that it returns false for other objects like files."
7879 msgstr ""
7880
7881 # type: =head2
7882 #: ../src/guestfs-actions.pod:2324
7883 msgid "guestfs_is_fifo"
7884 msgstr ""
7885
7886 # type: verbatim
7887 #: ../src/guestfs-actions.pod:2326
7888 #, no-wrap
7889 msgid ""
7890 " int guestfs_is_fifo (guestfs_h *g,\n"
7891 "\t\tconst char *path);\n"
7892 "\n"
7893 msgstr ""
7894
7895 # type: textblock
7896 #: ../src/guestfs-actions.pod:2329 ../fish/guestfish-actions.pod:1855
7897 msgid ""
7898 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
7899 "given C<path> name."
7900 msgstr ""
7901
7902 # type: =head2
7903 #: ../src/guestfs-actions.pod:2336
7904 msgid "guestfs_is_file"
7905 msgstr ""
7906
7907 # type: verbatim
7908 #: ../src/guestfs-actions.pod:2338
7909 #, no-wrap
7910 msgid ""
7911 " int guestfs_is_file (guestfs_h *g,\n"
7912 "\t\tconst char *path);\n"
7913 "\n"
7914 msgstr ""
7915
7916 # type: textblock
7917 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1864
7918 msgid ""
7919 "This returns C<true> if and only if there is a regular file with the given "
7920 "C<path> name.  Note that it returns false for other objects like directories."
7921 msgstr ""
7922
7923 # type: =head2
7924 #: ../src/guestfs-actions.pod:2349
7925 msgid "guestfs_is_launching"
7926 msgstr ""
7927
7928 # type: verbatim
7929 #: ../src/guestfs-actions.pod:2351
7930 #, no-wrap
7931 msgid ""
7932 " int guestfs_is_launching (guestfs_h *g);\n"
7933 "\n"
7934 msgstr ""
7935
7936 # type: textblock
7937 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1874
7938 msgid ""
7939 "This returns true iff this handle is launching the subprocess (in the "
7940 "C<LAUNCHING> state)."
7941 msgstr ""
7942
7943 # type: =head2
7944 #: ../src/guestfs-actions.pod:2360
7945 msgid "guestfs_is_lv"
7946 msgstr ""
7947
7948 # type: verbatim
7949 #: ../src/guestfs-actions.pod:2362
7950 #, no-wrap
7951 msgid ""
7952 " int guestfs_is_lv (guestfs_h *g,\n"
7953 "\t\tconst char *device);\n"
7954 "\n"
7955 msgstr ""
7956
7957 # type: textblock
7958 #: ../src/guestfs-actions.pod:2365 ../fish/guestfish-actions.pod:1883
7959 msgid ""
7960 "This command tests whether C<device> is a logical volume, and returns true "
7961 "iff this is the case."
7962 msgstr ""
7963
7964 # type: =head2
7965 #: ../src/guestfs-actions.pod:2370
7966 msgid "guestfs_is_ready"
7967 msgstr ""
7968
7969 # type: verbatim
7970 #: ../src/guestfs-actions.pod:2372
7971 #, no-wrap
7972 msgid ""
7973 " int guestfs_is_ready (guestfs_h *g);\n"
7974 "\n"
7975 msgstr ""
7976
7977 # type: textblock
7978 #: ../src/guestfs-actions.pod:2374 ../fish/guestfish-actions.pod:1890
7979 msgid ""
7980 "This returns true iff this handle is ready to accept commands (in the "
7981 "C<READY> state)."
7982 msgstr ""
7983
7984 # type: =head2
7985 #: ../src/guestfs-actions.pod:2381
7986 msgid "guestfs_is_socket"
7987 msgstr ""
7988
7989 # type: verbatim
7990 #: ../src/guestfs-actions.pod:2383
7991 #, no-wrap
7992 msgid ""
7993 " int guestfs_is_socket (guestfs_h *g,\n"
7994 "\t\tconst char *path);\n"
7995 "\n"
7996 msgstr ""
7997
7998 # type: textblock
7999 #: ../src/guestfs-actions.pod:2386 ../fish/guestfish-actions.pod:1899
8000 msgid ""
8001 "This returns C<true> if and only if there is a Unix domain socket with the "
8002 "given C<path> name."
8003 msgstr ""
8004
8005 # type: =head2
8006 #: ../src/guestfs-actions.pod:2393
8007 msgid "guestfs_is_symlink"
8008 msgstr ""
8009
8010 # type: verbatim
8011 #: ../src/guestfs-actions.pod:2395
8012 #, no-wrap
8013 msgid ""
8014 " int guestfs_is_symlink (guestfs_h *g,\n"
8015 "\t\tconst char *path);\n"
8016 "\n"
8017 msgstr ""
8018
8019 # type: textblock
8020 #: ../src/guestfs-actions.pod:2398 ../fish/guestfish-actions.pod:1908
8021 msgid ""
8022 "This returns C<true> if and only if there is a symbolic link with the given "
8023 "C<path> name."
8024 msgstr ""
8025
8026 # type: =head2
8027 #: ../src/guestfs-actions.pod:2405
8028 msgid "guestfs_kill_subprocess"
8029 msgstr ""
8030
8031 # type: verbatim
8032 #: ../src/guestfs-actions.pod:2407
8033 #, no-wrap
8034 msgid ""
8035 " int guestfs_kill_subprocess (guestfs_h *g);\n"
8036 "\n"
8037 msgstr ""
8038
8039 # type: textblock
8040 #: ../src/guestfs-actions.pod:2409 ../fish/guestfish-actions.pod:1917
8041 msgid "This kills the qemu subprocess.  You should never need to call this."
8042 msgstr ""
8043
8044 # type: =head2
8045 #: ../src/guestfs-actions.pod:2413
8046 msgid "guestfs_launch"
8047 msgstr ""
8048
8049 # type: verbatim
8050 #: ../src/guestfs-actions.pod:2415
8051 #, no-wrap
8052 msgid ""
8053 " int guestfs_launch (guestfs_h *g);\n"
8054 "\n"
8055 msgstr ""
8056
8057 # type: textblock
8058 #: ../src/guestfs-actions.pod:2417 ../fish/guestfish-actions.pod:1923
8059 msgid ""
8060 "Internally libguestfs is implemented by running a virtual machine using "
8061 "L<qemu(1)>."
8062 msgstr ""
8063
8064 # type: textblock
8065 #: ../src/guestfs-actions.pod:2420 ../fish/guestfish-actions.pod:1926
8066 msgid ""
8067 "You should call this after configuring the handle (eg. adding drives) but "
8068 "before performing any actions."
8069 msgstr ""
8070
8071 # type: =head2
8072 #: ../src/guestfs-actions.pod:2425
8073 msgid "guestfs_lchown"
8074 msgstr ""
8075
8076 # type: verbatim
8077 #: ../src/guestfs-actions.pod:2427
8078 #, no-wrap
8079 msgid ""
8080 " int guestfs_lchown (guestfs_h *g,\n"
8081 "\t\tint owner,\n"
8082 "\t\tint group,\n"
8083 "\t\tconst char *path);\n"
8084 "\n"
8085 msgstr ""
8086
8087 # type: textblock
8088 #: ../src/guestfs-actions.pod:2432
8089 msgid ""
8090 "Change the file owner to C<owner> and group to C<group>.  This is like "
8091 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8092 "changed, not the target."
8093 msgstr ""
8094
8095 # type: =head2
8096 #: ../src/guestfs-actions.pod:2442
8097 msgid "guestfs_lgetxattrs"
8098 msgstr ""
8099
8100 # type: verbatim
8101 #: ../src/guestfs-actions.pod:2444
8102 #, no-wrap
8103 msgid ""
8104 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
8105 "\t\tconst char *path);\n"
8106 "\n"
8107 msgstr ""
8108
8109 # type: textblock
8110 #: ../src/guestfs-actions.pod:2447
8111 msgid ""
8112 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8113 "then it returns the extended attributes of the link itself."
8114 msgstr ""
8115
8116 # type: =head2
8117 #: ../src/guestfs-actions.pod:2456
8118 msgid "guestfs_list_devices"
8119 msgstr ""
8120
8121 # type: verbatim
8122 #: ../src/guestfs-actions.pod:2458
8123 #, no-wrap
8124 msgid ""
8125 " char **guestfs_list_devices (guestfs_h *g);\n"
8126 "\n"
8127 msgstr ""
8128
8129 # type: textblock
8130 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1953
8131 msgid "List all the block devices."
8132 msgstr ""
8133
8134 # type: textblock
8135 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1955
8136 msgid "The full block device names are returned, eg. C</dev/sda>."
8137 msgstr ""
8138
8139 # type: =head2
8140 #: ../src/guestfs-actions.pod:2470
8141 msgid "guestfs_list_filesystems"
8142 msgstr ""
8143
8144 # type: verbatim
8145 #: ../src/guestfs-actions.pod:2472
8146 #, no-wrap
8147 msgid ""
8148 " char **guestfs_list_filesystems (guestfs_h *g);\n"
8149 "\n"
8150 msgstr ""
8151
8152 # type: textblock
8153 #: ../src/guestfs-actions.pod:2474 ../fish/guestfish-actions.pod:1963
8154 msgid ""
8155 "This inspection command looks for filesystems on partitions, block devices "
8156 "and logical volumes, returning a list of devices containing filesystems and "
8157 "their type."
8158 msgstr ""
8159
8160 # type: textblock
8161 #: ../src/guestfs-actions.pod:2478 ../fish/guestfish-actions.pod:1967
8162 msgid ""
8163 "The return value is a hash, where the keys are the devices containing "
8164 "filesystems, and the values are the filesystem types.  For example:"
8165 msgstr ""
8166
8167 # type: verbatim
8168 #: ../src/guestfs-actions.pod:2482 ../fish/guestfish-actions.pod:1971
8169 #, no-wrap
8170 msgid ""
8171 " \"/dev/sda1\" => \"ntfs\"\n"
8172 " \"/dev/sda2\" => \"ext2\"\n"
8173 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8174 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8175 "\n"
8176 msgstr ""
8177
8178 # type: textblock
8179 #: ../src/guestfs-actions.pod:2487 ../fish/guestfish-actions.pod:1976
8180 msgid ""
8181 "The value can have the special value \"unknown\", meaning the content of the "
8182 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8183 msgstr ""
8184
8185 # type: textblock
8186 #: ../src/guestfs-actions.pod:2491
8187 msgid ""
8188 "This command runs other libguestfs commands, which might include "
8189 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8190 "soon after launch and only when nothing is mounted."
8191 msgstr ""
8192
8193 # type: textblock
8194 #: ../src/guestfs-actions.pod:2495
8195 msgid ""
8196 "Not all of the filesystems returned will be mountable.  In particular, swap "
8197 "partitions are returned in the list.  Also this command does not check that "
8198 "each filesystem found is valid and mountable, and some filesystems might be "
8199 "mountable but require special options.  Filesystems may not all belong to a "
8200 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
8201 msgstr ""
8202
8203 # type: =head2
8204 #: ../src/guestfs-actions.pod:2509
8205 msgid "guestfs_list_partitions"
8206 msgstr ""
8207
8208 # type: verbatim
8209 #: ../src/guestfs-actions.pod:2511
8210 #, no-wrap
8211 msgid ""
8212 " char **guestfs_list_partitions (guestfs_h *g);\n"
8213 "\n"
8214 msgstr ""
8215
8216 # type: textblock
8217 #: ../src/guestfs-actions.pod:2513 ../fish/guestfish-actions.pod:1996
8218 msgid "List all the partitions detected on all block devices."
8219 msgstr ""
8220
8221 # type: textblock
8222 #: ../src/guestfs-actions.pod:2515 ../fish/guestfish-actions.pod:1998
8223 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8224 msgstr ""
8225
8226 # type: textblock
8227 #: ../src/guestfs-actions.pod:2517
8228 msgid ""
8229 "This does not return logical volumes.  For that you will need to call "
8230 "C<guestfs_lvs>."
8231 msgstr ""
8232
8233 # type: =head2
8234 #: ../src/guestfs-actions.pod:2526
8235 msgid "guestfs_ll"
8236 msgstr ""
8237
8238 # type: verbatim
8239 #: ../src/guestfs-actions.pod:2528
8240 #, no-wrap
8241 msgid ""
8242 " char *guestfs_ll (guestfs_h *g,\n"
8243 "\t\tconst char *directory);\n"
8244 "\n"
8245 msgstr ""
8246
8247 # type: textblock
8248 #: ../src/guestfs-actions.pod:2531 ../fish/guestfish-actions.pod:2009
8249 msgid ""
8250 "List the files in C<directory> (relative to the root directory, there is no "
8251 "cwd) in the format of 'ls -la'."
8252 msgstr ""
8253
8254 # type: textblock
8255 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:2012
8256 msgid ""
8257 "This command is mostly useful for interactive sessions.  It is I<not> "
8258 "intended that you try to parse the output string."
8259 msgstr ""
8260
8261 # type: =head2
8262 #: ../src/guestfs-actions.pod:2540
8263 msgid "guestfs_ln"
8264 msgstr ""
8265
8266 # type: verbatim
8267 #: ../src/guestfs-actions.pod:2542
8268 #, no-wrap
8269 msgid ""
8270 " int guestfs_ln (guestfs_h *g,\n"
8271 "\t\tconst char *target,\n"
8272 "\t\tconst char *linkname);\n"
8273 "\n"
8274 msgstr ""
8275
8276 # type: textblock
8277 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:2019
8278 msgid "This command creates a hard link using the C<ln> command."
8279 msgstr ""
8280
8281 # type: =head2
8282 #: ../src/guestfs-actions.pod:2550
8283 msgid "guestfs_ln_f"
8284 msgstr ""
8285
8286 # type: verbatim
8287 #: ../src/guestfs-actions.pod:2552
8288 #, no-wrap
8289 msgid ""
8290 " int guestfs_ln_f (guestfs_h *g,\n"
8291 "\t\tconst char *target,\n"
8292 "\t\tconst char *linkname);\n"
8293 "\n"
8294 msgstr ""
8295
8296 # type: textblock
8297 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:2025
8298 msgid ""
8299 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8300 "option removes the link (C<linkname>) if it exists already."
8301 msgstr ""
8302
8303 # type: =head2
8304 #: ../src/guestfs-actions.pod:2561
8305 msgid "guestfs_ln_s"
8306 msgstr ""
8307
8308 # type: verbatim
8309 #: ../src/guestfs-actions.pod:2563
8310 #, no-wrap
8311 msgid ""
8312 " int guestfs_ln_s (guestfs_h *g,\n"
8313 "\t\tconst char *target,\n"
8314 "\t\tconst char *linkname);\n"
8315 "\n"
8316 msgstr ""
8317
8318 # type: textblock
8319 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:2032
8320 msgid "This command creates a symbolic link using the C<ln -s> command."
8321 msgstr ""
8322
8323 # type: =head2
8324 #: ../src/guestfs-actions.pod:2571
8325 msgid "guestfs_ln_sf"
8326 msgstr ""
8327
8328 # type: verbatim
8329 #: ../src/guestfs-actions.pod:2573
8330 #, no-wrap
8331 msgid ""
8332 " int guestfs_ln_sf (guestfs_h *g,\n"
8333 "\t\tconst char *target,\n"
8334 "\t\tconst char *linkname);\n"
8335 "\n"
8336 msgstr ""
8337
8338 # type: textblock
8339 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:2038
8340 msgid ""
8341 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8342 "option removes the link (C<linkname>) if it exists already."
8343 msgstr ""
8344
8345 # type: =head2
8346 #: ../src/guestfs-actions.pod:2582
8347 msgid "guestfs_lremovexattr"
8348 msgstr ""
8349
8350 # type: verbatim
8351 #: ../src/guestfs-actions.pod:2584
8352 #, no-wrap
8353 msgid ""
8354 " int guestfs_lremovexattr (guestfs_h *g,\n"
8355 "\t\tconst char *xattr,\n"
8356 "\t\tconst char *path);\n"
8357 "\n"
8358 msgstr ""
8359
8360 # type: textblock
8361 #: ../src/guestfs-actions.pod:2588
8362 msgid ""
8363 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8364 "link, then it removes an extended attribute of the link itself."
8365 msgstr ""
8366
8367 # type: =head2
8368 #: ../src/guestfs-actions.pod:2594
8369 msgid "guestfs_ls"
8370 msgstr ""
8371
8372 # type: verbatim
8373 #: ../src/guestfs-actions.pod:2596
8374 #, no-wrap
8375 msgid ""
8376 " char **guestfs_ls (guestfs_h *g,\n"
8377 "\t\tconst char *directory);\n"
8378 "\n"
8379 msgstr ""
8380
8381 # type: textblock
8382 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:2053
8383 msgid ""
8384 "List the files in C<directory> (relative to the root directory, there is no "
8385 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
8386 msgstr ""
8387
8388 # type: textblock
8389 #: ../src/guestfs-actions.pod:2603
8390 msgid ""
8391 "This command is mostly useful for interactive sessions.  Programs should "
8392 "probably use C<guestfs_readdir> instead."
8393 msgstr ""
8394
8395 # type: =head2
8396 #: ../src/guestfs-actions.pod:2610
8397 msgid "guestfs_lsetxattr"
8398 msgstr ""
8399
8400 # type: verbatim
8401 #: ../src/guestfs-actions.pod:2612
8402 #, no-wrap
8403 msgid ""
8404 " int guestfs_lsetxattr (guestfs_h *g,\n"
8405 "\t\tconst char *xattr,\n"
8406 "\t\tconst char *val,\n"
8407 "\t\tint vallen,\n"
8408 "\t\tconst char *path);\n"
8409 "\n"
8410 msgstr ""
8411
8412 # type: textblock
8413 #: ../src/guestfs-actions.pod:2618
8414 msgid ""
8415 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8416 "then it sets an extended attribute of the link itself."
8417 msgstr ""
8418
8419 # type: =head2
8420 #: ../src/guestfs-actions.pod:2624
8421 msgid "guestfs_lstat"
8422 msgstr ""
8423
8424 # type: verbatim
8425 #: ../src/guestfs-actions.pod:2626
8426 #, no-wrap
8427 msgid ""
8428 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8429 "\t\tconst char *path);\n"
8430 "\n"
8431 msgstr ""
8432
8433 # type: textblock
8434 #: ../src/guestfs-actions.pod:2629 ../src/guestfs-actions.pod:4627
8435 #: ../fish/guestfish-actions.pod:2072 ../fish/guestfish-actions.pod:3572
8436 msgid "Returns file information for the given C<path>."
8437 msgstr ""
8438
8439 # type: textblock
8440 #: ../src/guestfs-actions.pod:2631
8441 msgid ""
8442 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8443 "link, then the link is stat-ed, not the file it refers to."
8444 msgstr ""
8445
8446 # type: textblock
8447 #: ../src/guestfs-actions.pod:2635 ../fish/guestfish-actions.pod:2078
8448 msgid "This is the same as the C<lstat(2)> system call."
8449 msgstr ""
8450
8451 # type: textblock
8452 #: ../src/guestfs-actions.pod:2637 ../src/guestfs-actions.pod:4631
8453 msgid ""
8454 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8455 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8456 msgstr ""
8457
8458 # type: =head2
8459 #: ../src/guestfs-actions.pod:2641
8460 msgid "guestfs_lstatlist"
8461 msgstr ""
8462
8463 # type: verbatim
8464 #: ../src/guestfs-actions.pod:2643
8465 #, no-wrap
8466 msgid ""
8467 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
8468 "\t\tconst char *path,\n"
8469 "\t\tchar *const *names);\n"
8470 "\n"
8471 msgstr ""
8472
8473 # type: textblock
8474 #: ../src/guestfs-actions.pod:2647
8475 msgid ""
8476 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8477 "files, where all files are in the directory C<path>.  C<names> is the list "
8478 "of files from this directory."
8479 msgstr ""
8480
8481 # type: textblock
8482 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:2088
8483 msgid ""
8484 "On return you get a list of stat structs, with a one-to-one correspondence "
8485 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8486 "then the C<ino> field of that structure is set to C<-1>."
8487 msgstr ""
8488
8489 # type: textblock
8490 #: ../src/guestfs-actions.pod:2656
8491 msgid ""
8492 "This call is intended for programs that want to efficiently list a directory "
8493 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8494 "for a similarly efficient call for getting extended attributes.  Very long "
8495 "directory listings might cause the protocol message size to be exceeded, "
8496 "causing this call to fail.  The caller must split up such requests into "
8497 "smaller groups of names."
8498 msgstr ""
8499
8500 # type: textblock
8501 #: ../src/guestfs-actions.pod:2664
8502 msgid ""
8503 "This function returns a C<struct guestfs_stat_list *> (see E<lt>guestfs-"
8504 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
8505 "C<guestfs_free_stat_list> after use>."
8506 msgstr ""
8507
8508 # type: =head2
8509 #: ../src/guestfs-actions.pod:2669
8510 msgid "guestfs_luks_add_key"
8511 msgstr ""
8512
8513 # type: verbatim
8514 #: ../src/guestfs-actions.pod:2671
8515 #, no-wrap
8516 msgid ""
8517 " int guestfs_luks_add_key (guestfs_h *g,\n"
8518 "\t\tconst char *device,\n"
8519 "\t\tconst char *key,\n"
8520 "\t\tconst char *newkey,\n"
8521 "\t\tint keyslot);\n"
8522 "\n"
8523 msgstr ""
8524
8525 # type: textblock
8526 #: ../src/guestfs-actions.pod:2677 ../fish/guestfish-actions.pod:2105
8527 msgid ""
8528 "This command adds a new key on LUKS device C<device>.  C<key> is any "
8529 "existing key, and is used to access the device.  C<newkey> is the new key to "
8530 "add.  C<keyslot> is the key slot that will be replaced."
8531 msgstr ""
8532
8533 # type: textblock
8534 #: ../src/guestfs-actions.pod:2682
8535 msgid ""
8536 "Note that if C<keyslot> already contains a key, then this command will "
8537 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
8538 msgstr ""
8539
8540 # type: textblock
8541 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2722
8542 #: ../src/guestfs-actions.pod:2742 ../src/guestfs-actions.pod:2759
8543 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:2804
8544 msgid ""
8545 "This function takes a key or passphrase parameter which could contain "
8546 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
8547 "information."
8548 msgstr ""
8549
8550 # type: =head2
8551 #: ../src/guestfs-actions.pod:2692
8552 msgid "guestfs_luks_close"
8553 msgstr ""
8554
8555 # type: verbatim
8556 #: ../src/guestfs-actions.pod:2694
8557 #, no-wrap
8558 msgid ""
8559 " int guestfs_luks_close (guestfs_h *g,\n"
8560 "\t\tconst char *device);\n"
8561 "\n"
8562 msgstr ""
8563
8564 # type: textblock
8565 #: ../src/guestfs-actions.pod:2697
8566 msgid ""
8567 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
8568 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
8569 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
8570 "underlying block device."
8571 msgstr ""
8572
8573 # type: =head2
8574 #: ../src/guestfs-actions.pod:2705
8575 msgid "guestfs_luks_format"
8576 msgstr ""
8577
8578 # type: verbatim
8579 #: ../src/guestfs-actions.pod:2707
8580 #, no-wrap
8581 msgid ""
8582 " int guestfs_luks_format (guestfs_h *g,\n"
8583 "\t\tconst char *device,\n"
8584 "\t\tconst char *key,\n"
8585 "\t\tint keyslot);\n"
8586 "\n"
8587 msgstr ""
8588
8589 # type: textblock
8590 #: ../src/guestfs-actions.pod:2712 ../fish/guestfish-actions.pod:2131
8591 msgid ""
8592 "This command erases existing data on C<device> and formats the device as a "
8593 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
8594 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
8595 msgstr ""
8596
8597 # type: textblock
8598 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2739
8599 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:3553
8600 #: ../src/guestfs-actions.pod:4168 ../src/guestfs-actions.pod:4489
8601 #: ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4532
8602 #: ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:2139
8603 #: ../fish/guestfish-actions.pod:2152 ../fish/guestfish-actions.pod:2223
8604 #: ../fish/guestfish-actions.pod:2738 ../fish/guestfish-actions.pod:3213
8605 #: ../fish/guestfish-actions.pod:3471 ../fish/guestfish-actions.pod:3487
8606 #: ../fish/guestfish-actions.pod:3502 ../fish/guestfish-actions.pod:4190
8607 msgid ""
8608 "B<This command is dangerous.  Without careful use you can easily destroy all "
8609 "your data>."
8610 msgstr ""
8611
8612 # type: =head2
8613 #: ../src/guestfs-actions.pod:2726
8614 msgid "guestfs_luks_format_cipher"
8615 msgstr ""
8616
8617 # type: verbatim
8618 #: ../src/guestfs-actions.pod:2728
8619 #, no-wrap
8620 msgid ""
8621 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
8622 "\t\tconst char *device,\n"
8623 "\t\tconst char *key,\n"
8624 "\t\tint keyslot,\n"
8625 "\t\tconst char *cipher);\n"
8626 "\n"
8627 msgstr ""
8628
8629 # type: textblock
8630 #: ../src/guestfs-actions.pod:2734
8631 msgid ""
8632 "This command is the same as C<guestfs_luks_format> but it also allows you to "
8633 "set the C<cipher> used."
8634 msgstr ""
8635
8636 # type: =head2
8637 #: ../src/guestfs-actions.pod:2746
8638 msgid "guestfs_luks_kill_slot"
8639 msgstr ""
8640
8641 # type: verbatim
8642 #: ../src/guestfs-actions.pod:2748
8643 #, no-wrap
8644 msgid ""
8645 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
8646 "\t\tconst char *device,\n"
8647 "\t\tconst char *key,\n"
8648 "\t\tint keyslot);\n"
8649 "\n"
8650 msgstr ""
8651
8652 # type: textblock
8653 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:2159
8654 msgid ""
8655 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
8656 "device C<device>.  C<key> must be one of the I<other> keys."
8657 msgstr ""
8658
8659 # type: =head2
8660 #: ../src/guestfs-actions.pod:2763
8661 msgid "guestfs_luks_open"
8662 msgstr ""
8663
8664 # type: verbatim
8665 #: ../src/guestfs-actions.pod:2765
8666 #, no-wrap
8667 msgid ""
8668 " int guestfs_luks_open (guestfs_h *g,\n"
8669 "\t\tconst char *device,\n"
8670 "\t\tconst char *key,\n"
8671 "\t\tconst char *mapname);\n"
8672 "\n"
8673 msgstr ""
8674
8675 # type: textblock
8676 #: ../src/guestfs-actions.pod:2770 ../fish/guestfish-actions.pod:2170
8677 msgid ""
8678 "This command opens a block device which has been encrypted according to the "
8679 "Linux Unified Key Setup (LUKS) standard."
8680 msgstr ""
8681
8682 # type: textblock
8683 #: ../src/guestfs-actions.pod:2773 ../fish/guestfish-actions.pod:2173
8684 msgid "C<device> is the encrypted block device or partition."
8685 msgstr ""
8686
8687 # type: textblock
8688 #: ../src/guestfs-actions.pod:2775 ../fish/guestfish-actions.pod:2175
8689 msgid ""
8690 "The caller must supply one of the keys associated with the LUKS block "
8691 "device, in the C<key> parameter."
8692 msgstr ""
8693
8694 # type: textblock
8695 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:2178
8696 msgid ""
8697 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
8698 "writes to this block device are decrypted from and encrypted to the "
8699 "underlying C<device> respectively."
8700 msgstr ""
8701
8702 # type: textblock
8703 #: ../src/guestfs-actions.pod:2782
8704 msgid ""
8705 "If this block device contains LVM volume groups, then calling "
8706 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
8707 "visible."
8708 msgstr ""
8709
8710 # type: =head2
8711 #: ../src/guestfs-actions.pod:2792
8712 msgid "guestfs_luks_open_ro"
8713 msgstr ""
8714
8715 # type: verbatim
8716 #: ../src/guestfs-actions.pod:2794
8717 #, no-wrap
8718 msgid ""
8719 " int guestfs_luks_open_ro (guestfs_h *g,\n"
8720 "\t\tconst char *device,\n"
8721 "\t\tconst char *key,\n"
8722 "\t\tconst char *mapname);\n"
8723 "\n"
8724 msgstr ""
8725
8726 # type: textblock
8727 #: ../src/guestfs-actions.pod:2799
8728 msgid ""
8729 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
8730 "created."
8731 msgstr ""
8732
8733 # type: =head2
8734 #: ../src/guestfs-actions.pod:2808
8735 msgid "guestfs_lvcreate"
8736 msgstr ""
8737
8738 # type: verbatim
8739 #: ../src/guestfs-actions.pod:2810
8740 #, no-wrap
8741 msgid ""
8742 " int guestfs_lvcreate (guestfs_h *g,\n"
8743 "\t\tconst char *logvol,\n"
8744 "\t\tconst char *volgroup,\n"
8745 "\t\tint mbytes);\n"
8746 "\n"
8747 msgstr ""
8748
8749 # type: textblock
8750 #: ../src/guestfs-actions.pod:2815 ../fish/guestfish-actions.pod:2203
8751 msgid ""
8752 "This creates an LVM logical volume called C<logvol> on the volume group "
8753 "C<volgroup>, with C<size> megabytes."
8754 msgstr ""
8755
8756 # type: =head2
8757 #: ../src/guestfs-actions.pod:2820
8758 msgid "guestfs_lvm_clear_filter"
8759 msgstr ""
8760
8761 # type: verbatim
8762 #: ../src/guestfs-actions.pod:2822
8763 #, no-wrap
8764 msgid ""
8765 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
8766 "\n"
8767 msgstr ""
8768
8769 # type: textblock
8770 #: ../src/guestfs-actions.pod:2824
8771 msgid ""
8772 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
8773 "see every block device."
8774 msgstr ""
8775
8776 # type: textblock
8777 #: ../src/guestfs-actions.pod:2827 ../src/guestfs-actions.pod:2863
8778 #: ../fish/guestfish-actions.pod:2213 ../fish/guestfish-actions.pod:2244
8779 msgid ""
8780 "This command also clears the LVM cache and performs a volume group scan."
8781 msgstr ""
8782
8783 # type: =head2
8784 #: ../src/guestfs-actions.pod:2832
8785 msgid "guestfs_lvm_remove_all"
8786 msgstr ""
8787
8788 # type: verbatim
8789 #: ../src/guestfs-actions.pod:2834
8790 #, no-wrap
8791 msgid ""
8792 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
8793 "\n"
8794 msgstr ""
8795
8796 # type: textblock
8797 #: ../src/guestfs-actions.pod:2836 ../fish/guestfish-actions.pod:2220
8798 msgid ""
8799 "This command removes all LVM logical volumes, volume groups and physical "
8800 "volumes."
8801 msgstr ""
8802
8803 # type: =head2
8804 #: ../src/guestfs-actions.pod:2844
8805 msgid "guestfs_lvm_set_filter"
8806 msgstr ""
8807
8808 # type: verbatim
8809 #: ../src/guestfs-actions.pod:2846
8810 #, no-wrap
8811 msgid ""
8812 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
8813 "\t\tchar *const *devices);\n"
8814 "\n"
8815 msgstr ""
8816
8817 # type: textblock
8818 #: ../src/guestfs-actions.pod:2849 ../fish/guestfish-actions.pod:2230
8819 msgid ""
8820 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
8821 "block devices in the list C<devices>, and will ignore all other attached "
8822 "block devices."
8823 msgstr ""
8824
8825 # type: textblock
8826 #: ../src/guestfs-actions.pod:2853 ../fish/guestfish-actions.pod:2234
8827 msgid ""
8828 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
8829 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
8830 "there are two types of duplication possible: either cloned PVs/VGs which "
8831 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
8832 "same name.  In normal operation you cannot create this situation, but you "
8833 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
8834 "inside the LVM metadata."
8835 msgstr ""
8836
8837 # type: textblock
8838 #: ../src/guestfs-actions.pod:2866 ../fish/guestfish-actions.pod:2247
8839 msgid "You can filter whole block devices or individual partitions."
8840 msgstr ""
8841
8842 # type: textblock
8843 #: ../src/guestfs-actions.pod:2868 ../fish/guestfish-actions.pod:2249
8844 msgid ""
8845 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
8846 "filesystem), even if you are not filtering out that VG."
8847 msgstr ""
8848
8849 # type: =head2
8850 #: ../src/guestfs-actions.pod:2874
8851 msgid "guestfs_lvremove"
8852 msgstr ""
8853
8854 # type: verbatim
8855 #: ../src/guestfs-actions.pod:2876
8856 #, no-wrap
8857 msgid ""
8858 " int guestfs_lvremove (guestfs_h *g,\n"
8859 "\t\tconst char *device);\n"
8860 "\n"
8861 msgstr ""
8862
8863 # type: textblock
8864 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:2257
8865 msgid ""
8866 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
8867 "LV, such as C</dev/VG/LV>."
8868 msgstr ""
8869
8870 # type: textblock
8871 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:2260
8872 msgid ""
8873 "You can also remove all LVs in a volume group by specifying the VG name, C</"
8874 "dev/VG>."
8875 msgstr ""
8876
8877 # type: =head2
8878 #: ../src/guestfs-actions.pod:2887
8879 msgid "guestfs_lvrename"
8880 msgstr ""
8881
8882 # type: verbatim
8883 #: ../src/guestfs-actions.pod:2889
8884 #, no-wrap
8885 msgid ""
8886 " int guestfs_lvrename (guestfs_h *g,\n"
8887 "\t\tconst char *logvol,\n"
8888 "\t\tconst char *newlogvol);\n"
8889 "\n"
8890 msgstr ""
8891
8892 # type: textblock
8893 #: ../src/guestfs-actions.pod:2893 ../fish/guestfish-actions.pod:2267
8894 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
8895 msgstr ""
8896
8897 # type: =head2
8898 #: ../src/guestfs-actions.pod:2897
8899 msgid "guestfs_lvresize"
8900 msgstr ""
8901
8902 # type: verbatim
8903 #: ../src/guestfs-actions.pod:2899
8904 #, no-wrap
8905 msgid ""
8906 " int guestfs_lvresize (guestfs_h *g,\n"
8907 "\t\tconst char *device,\n"
8908 "\t\tint mbytes);\n"
8909 "\n"
8910 msgstr ""
8911
8912 # type: textblock
8913 #: ../src/guestfs-actions.pod:2903 ../fish/guestfish-actions.pod:2273
8914 msgid ""
8915 "This resizes (expands or shrinks) an existing LVM logical volume to "
8916 "C<mbytes>.  When reducing, data in the reduced part is lost."
8917 msgstr ""
8918
8919 # type: =head2
8920 #: ../src/guestfs-actions.pod:2909
8921 msgid "guestfs_lvresize_free"
8922 msgstr ""
8923
8924 # type: verbatim
8925 #: ../src/guestfs-actions.pod:2911
8926 #, no-wrap
8927 msgid ""
8928 " int guestfs_lvresize_free (guestfs_h *g,\n"
8929 "\t\tconst char *lv,\n"
8930 "\t\tint percent);\n"
8931 "\n"
8932 msgstr ""
8933
8934 # type: textblock
8935 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2281
8936 msgid ""
8937 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
8938 "remaining free space in the volume group.  Commonly you would call this with "
8939 "pc = 100 which expands the logical volume as much as possible, using all "
8940 "remaining free space in the volume group."
8941 msgstr ""
8942
8943 # type: =head2
8944 #: ../src/guestfs-actions.pod:2923
8945 msgid "guestfs_lvs"
8946 msgstr ""
8947
8948 # type: verbatim
8949 #: ../src/guestfs-actions.pod:2925
8950 #, no-wrap
8951 msgid ""
8952 " char **guestfs_lvs (guestfs_h *g);\n"
8953 "\n"
8954 msgstr ""
8955
8956 # type: textblock
8957 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2291
8958 msgid ""
8959 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
8960 "(8)> command."
8961 msgstr ""
8962
8963 # type: textblock
8964 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2294
8965 msgid ""
8966 "This returns a list of the logical volume device names (eg. C</dev/"
8967 "VolGroup00/LogVol00>)."
8968 msgstr ""
8969
8970 # type: textblock
8971 #: ../src/guestfs-actions.pod:2933
8972 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
8973 msgstr ""
8974
8975 # type: =head2
8976 #: ../src/guestfs-actions.pod:2939
8977 msgid "guestfs_lvs_full"
8978 msgstr ""
8979
8980 # type: verbatim
8981 #: ../src/guestfs-actions.pod:2941
8982 #, no-wrap
8983 msgid ""
8984 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
8985 "\n"
8986 msgstr ""
8987
8988 # type: textblock
8989 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2303
8990 msgid ""
8991 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
8992 "(8)> command.  The \"full\" version includes all fields."
8993 msgstr ""
8994
8995 # type: textblock
8996 #: ../src/guestfs-actions.pod:2946
8997 msgid ""
8998 "This function returns a C<struct guestfs_lvm_lv_list *> (see E<lt>guestfs-"
8999 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9000 "C<guestfs_free_lvm_lv_list> after use>."
9001 msgstr ""
9002
9003 # type: =head2
9004 #: ../src/guestfs-actions.pod:2951
9005 msgid "guestfs_lvuuid"
9006 msgstr ""
9007
9008 # type: verbatim
9009 #: ../src/guestfs-actions.pod:2953
9010 #, no-wrap
9011 msgid ""
9012 " char *guestfs_lvuuid (guestfs_h *g,\n"
9013 "\t\tconst char *device);\n"
9014 "\n"
9015 msgstr ""
9016
9017 # type: textblock
9018 #: ../src/guestfs-actions.pod:2956 ../fish/guestfish-actions.pod:2310
9019 msgid "This command returns the UUID of the LVM LV C<device>."
9020 msgstr ""
9021
9022 # type: =head2
9023 #: ../src/guestfs-actions.pod:2961
9024 msgid "guestfs_lxattrlist"
9025 msgstr ""
9026
9027 # type: verbatim
9028 #: ../src/guestfs-actions.pod:2963
9029 #, no-wrap
9030 msgid ""
9031 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
9032 "\t\tconst char *path,\n"
9033 "\t\tchar *const *names);\n"
9034 "\n"
9035 msgstr ""
9036
9037 # type: textblock
9038 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2316
9039 msgid ""
9040 "This call allows you to get the extended attributes of multiple files, where "
9041 "all files are in the directory C<path>.  C<names> is the list of files from "
9042 "this directory."
9043 msgstr ""
9044
9045 # type: textblock
9046 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2320
9047 msgid ""
9048 "On return you get a flat list of xattr structs which must be interpreted "
9049 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9050 "C<attrval> in this struct is zero-length to indicate there was an error "
9051 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9052 "number (the number of following attributes for this file, which could be C<"
9053 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
9054 "for the first named file.  This repeats for the second and subsequent files."
9055 msgstr ""
9056
9057 # type: textblock
9058 #: ../src/guestfs-actions.pod:2981
9059 msgid ""
9060 "This call is intended for programs that want to efficiently list a directory "
9061 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9062 "a similarly efficient call for getting standard stats.  Very long directory "
9063 "listings might cause the protocol message size to be exceeded, causing this "
9064 "call to fail.  The caller must split up such requests into smaller groups of "
9065 "names."
9066 msgstr ""
9067
9068 # type: =head2
9069 #: ../src/guestfs-actions.pod:2994
9070 msgid "guestfs_mkdir"
9071 msgstr ""
9072
9073 # type: verbatim
9074 #: ../src/guestfs-actions.pod:2996
9075 #, no-wrap
9076 msgid ""
9077 " int guestfs_mkdir (guestfs_h *g,\n"
9078 "\t\tconst char *path);\n"
9079 "\n"
9080 msgstr ""
9081
9082 # type: textblock
9083 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2342
9084 msgid "Create a directory named C<path>."
9085 msgstr ""
9086
9087 # type: =head2
9088 #: ../src/guestfs-actions.pod:3003
9089 msgid "guestfs_mkdir_mode"
9090 msgstr ""
9091
9092 # type: verbatim
9093 #: ../src/guestfs-actions.pod:3005
9094 #, no-wrap
9095 msgid ""
9096 " int guestfs_mkdir_mode (guestfs_h *g,\n"
9097 "\t\tconst char *path,\n"
9098 "\t\tint mode);\n"
9099 "\n"
9100 msgstr ""
9101
9102 # type: textblock
9103 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2348
9104 msgid ""
9105 "This command creates a directory, setting the initial permissions of the "
9106 "directory to C<mode>."
9107 msgstr ""
9108
9109 # type: textblock
9110 #: ../src/guestfs-actions.pod:3012 ../fish/guestfish-actions.pod:2351
9111 msgid ""
9112 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9113 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9114 "other ways."
9115 msgstr ""
9116
9117 # type: textblock
9118 #: ../src/guestfs-actions.pod:3016
9119 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9120 msgstr ""
9121
9122 # type: =head2
9123 #: ../src/guestfs-actions.pod:3020
9124 msgid "guestfs_mkdir_p"
9125 msgstr ""
9126
9127 # type: verbatim
9128 #: ../src/guestfs-actions.pod:3022
9129 #, no-wrap
9130 msgid ""
9131 " int guestfs_mkdir_p (guestfs_h *g,\n"
9132 "\t\tconst char *path);\n"
9133 "\n"
9134 msgstr ""
9135
9136 # type: textblock
9137 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2361
9138 msgid ""
9139 "Create a directory named C<path>, creating any parent directories as "
9140 "necessary.  This is like the C<mkdir -p> shell command."
9141 msgstr ""
9142
9143 # type: =head2
9144 #: ../src/guestfs-actions.pod:3030
9145 msgid "guestfs_mkdtemp"
9146 msgstr ""
9147
9148 # type: verbatim
9149 #: ../src/guestfs-actions.pod:3032
9150 #, no-wrap
9151 msgid ""
9152 " char *guestfs_mkdtemp (guestfs_h *g,\n"
9153 "\t\tconst char *template);\n"
9154 "\n"
9155 msgstr ""
9156
9157 # type: textblock
9158 #: ../src/guestfs-actions.pod:3035 ../fish/guestfish-actions.pod:2368
9159 msgid ""
9160 "This command creates a temporary directory.  The C<template> parameter "
9161 "should be a full pathname for the temporary directory name with the final "
9162 "six characters being \"XXXXXX\"."
9163 msgstr ""
9164
9165 # type: textblock
9166 #: ../src/guestfs-actions.pod:3040 ../fish/guestfish-actions.pod:2373
9167 msgid ""
9168 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9169 "being suitable for Windows filesystems."
9170 msgstr ""
9171
9172 # type: textblock
9173 #: ../src/guestfs-actions.pod:3043 ../fish/guestfish-actions.pod:2376
9174 msgid "The name of the temporary directory that was created is returned."
9175 msgstr ""
9176
9177 # type: textblock
9178 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2379
9179 msgid "The temporary directory is created with mode 0700 and is owned by root."
9180 msgstr ""
9181
9182 # type: textblock
9183 #: ../src/guestfs-actions.pod:3049 ../fish/guestfish-actions.pod:2382
9184 msgid ""
9185 "The caller is responsible for deleting the temporary directory and its "
9186 "contents after use."
9187 msgstr ""
9188
9189 # type: textblock
9190 #: ../src/guestfs-actions.pod:3052 ../fish/guestfish-actions.pod:2385
9191 msgid "See also: L<mkdtemp(3)>"
9192 msgstr ""
9193
9194 # type: =head2
9195 #: ../src/guestfs-actions.pod:3057
9196 msgid "guestfs_mke2fs_J"
9197 msgstr ""
9198
9199 # type: verbatim
9200 #: ../src/guestfs-actions.pod:3059
9201 #, no-wrap
9202 msgid ""
9203 " int guestfs_mke2fs_J (guestfs_h *g,\n"
9204 "\t\tconst char *fstype,\n"
9205 "\t\tint blocksize,\n"
9206 "\t\tconst char *device,\n"
9207 "\t\tconst char *journal);\n"
9208 "\n"
9209 msgstr ""
9210
9211 # type: textblock
9212 #: ../src/guestfs-actions.pod:3065 ../fish/guestfish-actions.pod:2391
9213 msgid ""
9214 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9215 "C<journal>.  It is equivalent to the command:"
9216 msgstr ""
9217
9218 # type: verbatim
9219 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2395
9220 #, no-wrap
9221 msgid ""
9222 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9223 "\n"
9224 msgstr ""
9225
9226 # type: textblock
9227 #: ../src/guestfs-actions.pod:3071
9228 msgid "See also C<guestfs_mke2journal>."
9229 msgstr ""
9230
9231 # type: =head2
9232 #: ../src/guestfs-actions.pod:3075
9233 msgid "guestfs_mke2fs_JL"
9234 msgstr ""
9235
9236 # type: verbatim
9237 #: ../src/guestfs-actions.pod:3077
9238 #, no-wrap
9239 msgid ""
9240 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
9241 "\t\tconst char *fstype,\n"
9242 "\t\tint blocksize,\n"
9243 "\t\tconst char *device,\n"
9244 "\t\tconst char *label);\n"
9245 "\n"
9246 msgstr ""
9247
9248 # type: textblock
9249 #: ../src/guestfs-actions.pod:3083 ../fish/guestfish-actions.pod:2403
9250 msgid ""
9251 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9252 "the journal labeled C<label>."
9253 msgstr ""
9254
9255 # type: textblock
9256 #: ../src/guestfs-actions.pod:3086
9257 msgid "See also C<guestfs_mke2journal_L>."
9258 msgstr ""
9259
9260 # type: =head2
9261 #: ../src/guestfs-actions.pod:3090
9262 msgid "guestfs_mke2fs_JU"
9263 msgstr ""
9264
9265 # type: verbatim
9266 #: ../src/guestfs-actions.pod:3092
9267 #, no-wrap
9268 msgid ""
9269 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
9270 "\t\tconst char *fstype,\n"
9271 "\t\tint blocksize,\n"
9272 "\t\tconst char *device,\n"
9273 "\t\tconst char *uuid);\n"
9274 "\n"
9275 msgstr ""
9276
9277 # type: textblock
9278 #: ../src/guestfs-actions.pod:3098 ../fish/guestfish-actions.pod:2412
9279 msgid ""
9280 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9281 "the journal with UUID C<uuid>."
9282 msgstr ""
9283
9284 # type: textblock
9285 #: ../src/guestfs-actions.pod:3101
9286 msgid "See also C<guestfs_mke2journal_U>."
9287 msgstr ""
9288
9289 # type: =head2
9290 #: ../src/guestfs-actions.pod:3105
9291 msgid "guestfs_mke2journal"
9292 msgstr ""
9293
9294 # type: verbatim
9295 #: ../src/guestfs-actions.pod:3107
9296 #, no-wrap
9297 msgid ""
9298 " int guestfs_mke2journal (guestfs_h *g,\n"
9299 "\t\tint blocksize,\n"
9300 "\t\tconst char *device);\n"
9301 "\n"
9302 msgstr ""
9303
9304 # type: textblock
9305 #: ../src/guestfs-actions.pod:3111 ../fish/guestfish-actions.pod:2421
9306 msgid ""
9307 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9308 "command:"
9309 msgstr ""
9310
9311 # type: verbatim
9312 #: ../src/guestfs-actions.pod:3114 ../fish/guestfish-actions.pod:2424
9313 #, no-wrap
9314 msgid ""
9315 " mke2fs -O journal_dev -b blocksize device\n"
9316 "\n"
9317 msgstr ""
9318
9319 # type: =head2
9320 #: ../src/guestfs-actions.pod:3118
9321 msgid "guestfs_mke2journal_L"
9322 msgstr ""
9323
9324 # type: verbatim
9325 #: ../src/guestfs-actions.pod:3120
9326 #, no-wrap
9327 msgid ""
9328 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9329 "\t\tint blocksize,\n"
9330 "\t\tconst char *label,\n"
9331 "\t\tconst char *device);\n"
9332 "\n"
9333 msgstr ""
9334
9335 # type: textblock
9336 #: ../src/guestfs-actions.pod:3125 ../fish/guestfish-actions.pod:2430
9337 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9338 msgstr ""
9339
9340 # type: =head2
9341 #: ../src/guestfs-actions.pod:3129
9342 msgid "guestfs_mke2journal_U"
9343 msgstr ""
9344
9345 # type: verbatim
9346 #: ../src/guestfs-actions.pod:3131
9347 #, no-wrap
9348 msgid ""
9349 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9350 "\t\tint blocksize,\n"
9351 "\t\tconst char *uuid,\n"
9352 "\t\tconst char *device);\n"
9353 "\n"
9354 msgstr ""
9355
9356 # type: textblock
9357 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2436
9358 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9359 msgstr ""
9360
9361 # type: =head2
9362 #: ../src/guestfs-actions.pod:3140
9363 msgid "guestfs_mkfifo"
9364 msgstr ""
9365
9366 # type: verbatim
9367 #: ../src/guestfs-actions.pod:3142
9368 #, no-wrap
9369 msgid ""
9370 " int guestfs_mkfifo (guestfs_h *g,\n"
9371 "\t\tint mode,\n"
9372 "\t\tconst char *path);\n"
9373 "\n"
9374 msgstr ""
9375
9376 # type: textblock
9377 #: ../src/guestfs-actions.pod:3146
9378 msgid ""
9379 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9380 "is just a convenient wrapper around C<guestfs_mknod>."
9381 msgstr ""
9382
9383 # type: =head2
9384 #: ../src/guestfs-actions.pod:3154
9385 msgid "guestfs_mkfs"
9386 msgstr ""
9387
9388 # type: verbatim
9389 #: ../src/guestfs-actions.pod:3156
9390 #, no-wrap
9391 msgid ""
9392 " int guestfs_mkfs (guestfs_h *g,\n"
9393 "\t\tconst char *fstype,\n"
9394 "\t\tconst char *device);\n"
9395 "\n"
9396 msgstr ""
9397
9398 # type: textblock
9399 #: ../src/guestfs-actions.pod:3160 ../fish/guestfish-actions.pod:2452
9400 msgid ""
9401 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9402 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9403 msgstr ""
9404
9405 # type: =head2
9406 #: ../src/guestfs-actions.pod:3166
9407 msgid "guestfs_mkfs_b"
9408 msgstr ""
9409
9410 # type: verbatim
9411 #: ../src/guestfs-actions.pod:3168
9412 #, no-wrap
9413 msgid ""
9414 " int guestfs_mkfs_b (guestfs_h *g,\n"
9415 "\t\tconst char *fstype,\n"
9416 "\t\tint blocksize,\n"
9417 "\t\tconst char *device);\n"
9418 "\n"
9419 msgstr ""
9420
9421 # type: textblock
9422 #: ../src/guestfs-actions.pod:3173
9423 msgid ""
9424 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9425 "block size of the resulting filesystem.  Supported block sizes depend on the "
9426 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9427 msgstr ""
9428
9429 # type: textblock
9430 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2465
9431 msgid ""
9432 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9433 "cluster size."
9434 msgstr ""
9435
9436 # type: =head2
9437 #: ../src/guestfs-actions.pod:3183
9438 msgid "guestfs_mkmountpoint"
9439 msgstr ""
9440
9441 # type: verbatim
9442 #: ../src/guestfs-actions.pod:3185
9443 #, no-wrap
9444 msgid ""
9445 " int guestfs_mkmountpoint (guestfs_h *g,\n"
9446 "\t\tconst char *exemptpath);\n"
9447 "\n"
9448 msgstr ""
9449
9450 # type: textblock
9451 #: ../src/guestfs-actions.pod:3188
9452 msgid ""
9453 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9454 "that can be used to create extra mountpoints before mounting the first "
9455 "filesystem."
9456 msgstr ""
9457
9458 # type: textblock
9459 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2476
9460 msgid ""
9461 "These calls are I<only> necessary in some very limited circumstances, mainly "
9462 "the case where you want to mount a mix of unrelated and/or read-only "
9463 "filesystems together."
9464 msgstr ""
9465
9466 # type: textblock
9467 #: ../src/guestfs-actions.pod:3196 ../fish/guestfish-actions.pod:2480
9468 msgid ""
9469 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
9470 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
9471 "inside that.  You can unpack this as follows in guestfish:"
9472 msgstr ""
9473
9474 # type: verbatim
9475 #: ../src/guestfs-actions.pod:3201 ../fish/guestfish-actions.pod:2485
9476 #, no-wrap
9477 msgid ""
9478 " add-ro Fedora-11-i686-Live.iso\n"
9479 " run\n"
9480 " mkmountpoint /cd\n"
9481 " mkmountpoint /squash\n"
9482 " mkmountpoint /ext3\n"
9483 " mount /dev/sda /cd\n"
9484 " mount-loop /cd/LiveOS/squashfs.img /squash\n"
9485 " mount-loop /squash/LiveOS/ext3fs.img /ext3\n"
9486 "\n"
9487 msgstr ""
9488
9489 # type: textblock
9490 #: ../src/guestfs-actions.pod:3210 ../fish/guestfish-actions.pod:2494
9491 msgid "The inner filesystem is now unpacked under the /ext3 mountpoint."
9492 msgstr ""
9493
9494 # type: =head2
9495 #: ../src/guestfs-actions.pod:3214
9496 msgid "guestfs_mknod"
9497 msgstr ""
9498
9499 # type: verbatim
9500 #: ../src/guestfs-actions.pod:3216
9501 #, no-wrap
9502 msgid ""
9503 " int guestfs_mknod (guestfs_h *g,\n"
9504 "\t\tint mode,\n"
9505 "\t\tint devmajor,\n"
9506 "\t\tint devminor,\n"
9507 "\t\tconst char *path);\n"
9508 "\n"
9509 msgstr ""
9510
9511 # type: textblock
9512 #: ../src/guestfs-actions.pod:3222 ../fish/guestfish-actions.pod:2500
9513 msgid ""
9514 "This call creates block or character special devices, or named pipes (FIFOs)."
9515 msgstr ""
9516
9517 # type: textblock
9518 #: ../src/guestfs-actions.pod:3225 ../fish/guestfish-actions.pod:2503
9519 msgid ""
9520 "The C<mode> parameter should be the mode, using the standard constants.  "
9521 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
9522 "used when creating block and character special devices."
9523 msgstr ""
9524
9525 # type: textblock
9526 #: ../src/guestfs-actions.pod:3230
9527 msgid ""
9528 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
9529 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
9530 "regular file).  These constants are available in the standard Linux header "
9531 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
9532 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
9533 "the appropriate constant for you."
9534 msgstr ""
9535
9536 # type: =head2
9537 #: ../src/guestfs-actions.pod:3242
9538 msgid "guestfs_mknod_b"
9539 msgstr ""
9540
9541 # type: verbatim
9542 #: ../src/guestfs-actions.pod:3244
9543 #, no-wrap
9544 msgid ""
9545 " int guestfs_mknod_b (guestfs_h *g,\n"
9546 "\t\tint mode,\n"
9547 "\t\tint devmajor,\n"
9548 "\t\tint devminor,\n"
9549 "\t\tconst char *path);\n"
9550 "\n"
9551 msgstr ""
9552
9553 # type: textblock
9554 #: ../src/guestfs-actions.pod:3250
9555 msgid ""
9556 "This call creates a block device node called C<path> with mode C<mode> and "
9557 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9558 "wrapper around C<guestfs_mknod>."
9559 msgstr ""
9560
9561 # type: =head2
9562 #: ../src/guestfs-actions.pod:3258
9563 msgid "guestfs_mknod_c"
9564 msgstr ""
9565
9566 # type: verbatim
9567 #: ../src/guestfs-actions.pod:3260
9568 #, no-wrap
9569 msgid ""
9570 " int guestfs_mknod_c (guestfs_h *g,\n"
9571 "\t\tint mode,\n"
9572 "\t\tint devmajor,\n"
9573 "\t\tint devminor,\n"
9574 "\t\tconst char *path);\n"
9575 "\n"
9576 msgstr ""
9577
9578 # type: textblock
9579 #: ../src/guestfs-actions.pod:3266
9580 msgid ""
9581 "This call creates a char device node called C<path> with mode C<mode> and "
9582 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9583 "wrapper around C<guestfs_mknod>."
9584 msgstr ""
9585
9586 # type: =head2
9587 #: ../src/guestfs-actions.pod:3274
9588 msgid "guestfs_mkswap"
9589 msgstr ""
9590
9591 # type: verbatim
9592 #: ../src/guestfs-actions.pod:3276
9593 #, no-wrap
9594 msgid ""
9595 " int guestfs_mkswap (guestfs_h *g,\n"
9596 "\t\tconst char *device);\n"
9597 "\n"
9598 msgstr ""
9599
9600 # type: textblock
9601 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2542
9602 msgid "Create a swap partition on C<device>."
9603 msgstr ""
9604
9605 # type: =head2
9606 #: ../src/guestfs-actions.pod:3283
9607 msgid "guestfs_mkswap_L"
9608 msgstr ""
9609
9610 # type: verbatim
9611 #: ../src/guestfs-actions.pod:3285
9612 #, no-wrap
9613 msgid ""
9614 " int guestfs_mkswap_L (guestfs_h *g,\n"
9615 "\t\tconst char *label,\n"
9616 "\t\tconst char *device);\n"
9617 "\n"
9618 msgstr ""
9619
9620 # type: textblock
9621 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2548
9622 msgid "Create a swap partition on C<device> with label C<label>."
9623 msgstr ""
9624
9625 # type: textblock
9626 #: ../src/guestfs-actions.pod:3291 ../fish/guestfish-actions.pod:2550
9627 msgid ""
9628 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
9629 "sda>), just to a partition.  This appears to be a limitation of the kernel "
9630 "or swap tools."
9631 msgstr ""
9632
9633 # type: =head2
9634 #: ../src/guestfs-actions.pod:3297
9635 msgid "guestfs_mkswap_U"
9636 msgstr ""
9637
9638 # type: verbatim
9639 #: ../src/guestfs-actions.pod:3299
9640 #, no-wrap
9641 msgid ""
9642 " int guestfs_mkswap_U (guestfs_h *g,\n"
9643 "\t\tconst char *uuid,\n"
9644 "\t\tconst char *device);\n"
9645 "\n"
9646 msgstr ""
9647
9648 # type: textblock
9649 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2558
9650 msgid "Create a swap partition on C<device> with UUID C<uuid>."
9651 msgstr ""
9652
9653 # type: =head2
9654 #: ../src/guestfs-actions.pod:3307
9655 msgid "guestfs_mkswap_file"
9656 msgstr ""
9657
9658 # type: verbatim
9659 #: ../src/guestfs-actions.pod:3309
9660 #, no-wrap
9661 msgid ""
9662 " int guestfs_mkswap_file (guestfs_h *g,\n"
9663 "\t\tconst char *path);\n"
9664 "\n"
9665 msgstr ""
9666
9667 # type: textblock
9668 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2564
9669 msgid "Create a swap file."
9670 msgstr ""
9671
9672 # type: textblock
9673 #: ../src/guestfs-actions.pod:3314
9674 msgid ""
9675 "This command just writes a swap file signature to an existing file.  To "
9676 "create the file itself, use something like C<guestfs_fallocate>."
9677 msgstr ""
9678
9679 # type: =head2
9680 #: ../src/guestfs-actions.pod:3319
9681 msgid "guestfs_modprobe"
9682 msgstr ""
9683
9684 # type: verbatim
9685 #: ../src/guestfs-actions.pod:3321
9686 #, no-wrap
9687 msgid ""
9688 " int guestfs_modprobe (guestfs_h *g,\n"
9689 "\t\tconst char *modulename);\n"
9690 "\n"
9691 msgstr ""
9692
9693 # type: textblock
9694 #: ../src/guestfs-actions.pod:3324 ../fish/guestfish-actions.pod:2573
9695 msgid "This loads a kernel module in the appliance."
9696 msgstr ""
9697
9698 # type: textblock
9699 #: ../src/guestfs-actions.pod:3326 ../fish/guestfish-actions.pod:2575
9700 msgid ""
9701 "The kernel module must have been whitelisted when libguestfs was built (see "
9702 "C<appliance/kmod.whitelist.in> in the source)."
9703 msgstr ""
9704
9705 # type: =head2
9706 #: ../src/guestfs-actions.pod:3331
9707 msgid "guestfs_mount"
9708 msgstr ""
9709
9710 # type: verbatim
9711 #: ../src/guestfs-actions.pod:3333
9712 #, no-wrap
9713 msgid ""
9714 " int guestfs_mount (guestfs_h *g,\n"
9715 "\t\tconst char *device,\n"
9716 "\t\tconst char *mountpoint);\n"
9717 "\n"
9718 msgstr ""
9719
9720 # type: textblock
9721 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2582
9722 msgid ""
9723 "Mount a guest disk at a position in the filesystem.  Block devices are named "
9724 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
9725 "those block devices contain partitions, they will have the usual names (eg. "
9726 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
9727 msgstr ""
9728
9729 # type: textblock
9730 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2588
9731 msgid ""
9732 "The rules are the same as for L<mount(2)>: A filesystem must first be "
9733 "mounted on C</> before others can be mounted.  Other filesystems can only be "
9734 "mounted on directories which already exist."
9735 msgstr ""
9736
9737 # type: textblock
9738 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2593
9739 msgid ""
9740 "The mounted filesystem is writable, if we have sufficient permissions on the "
9741 "underlying device."
9742 msgstr ""
9743
9744 # type: textblock
9745 #: ../src/guestfs-actions.pod:3351
9746 msgid ""
9747 "B<Important note:> When you use this call, the filesystem options C<sync> "
9748 "and C<noatime> are set implicitly.  This was originally done because we "
9749 "thought it would improve reliability, but it turns out that I<-o sync> has a "
9750 "very large negative performance impact and negligible effect on "
9751 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
9752 "in any code that needs performance, and instead use C<guestfs_mount_options> "
9753 "(use an empty string for the first parameter if you don't want any options)."
9754 msgstr ""
9755
9756 # type: =head2
9757 #: ../src/guestfs-actions.pod:3363
9758 msgid "guestfs_mount_loop"
9759 msgstr ""
9760
9761 # type: verbatim
9762 #: ../src/guestfs-actions.pod:3365
9763 #, no-wrap
9764 msgid ""
9765 " int guestfs_mount_loop (guestfs_h *g,\n"
9766 "\t\tconst char *file,\n"
9767 "\t\tconst char *mountpoint);\n"
9768 "\n"
9769 msgstr ""
9770
9771 # type: textblock
9772 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2610
9773 msgid ""
9774 "This command lets you mount C<file> (a filesystem image in a file) on a "
9775 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
9776 "mountpoint>."
9777 msgstr ""
9778
9779 # type: =head2
9780 #: ../src/guestfs-actions.pod:3375
9781 msgid "guestfs_mount_options"
9782 msgstr ""
9783
9784 # type: verbatim
9785 #: ../src/guestfs-actions.pod:3377
9786 #, no-wrap
9787 msgid ""
9788 " int guestfs_mount_options (guestfs_h *g,\n"
9789 "\t\tconst char *options,\n"
9790 "\t\tconst char *device,\n"
9791 "\t\tconst char *mountpoint);\n"
9792 "\n"
9793 msgstr ""
9794
9795 # type: textblock
9796 #: ../src/guestfs-actions.pod:3382
9797 msgid ""
9798 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9799 "the mount options as for the L<mount(8)> I<-o> flag."
9800 msgstr ""
9801
9802 # type: textblock
9803 #: ../src/guestfs-actions.pod:3386 ../fish/guestfish-actions.pod:2622
9804 msgid ""
9805 "If the C<options> parameter is an empty string, then no options are passed "
9806 "(all options default to whatever the filesystem uses)."
9807 msgstr ""
9808
9809 # type: =head2
9810 #: ../src/guestfs-actions.pod:3392
9811 msgid "guestfs_mount_ro"
9812 msgstr ""
9813
9814 # type: verbatim
9815 #: ../src/guestfs-actions.pod:3394
9816 #, no-wrap
9817 msgid ""
9818 " int guestfs_mount_ro (guestfs_h *g,\n"
9819 "\t\tconst char *device,\n"
9820 "\t\tconst char *mountpoint);\n"
9821 "\n"
9822 msgstr ""
9823
9824 # type: textblock
9825 #: ../src/guestfs-actions.pod:3398
9826 msgid ""
9827 "This is the same as the C<guestfs_mount> command, but it mounts the "
9828 "filesystem with the read-only (I<-o ro>) flag."
9829 msgstr ""
9830
9831 # type: =head2
9832 #: ../src/guestfs-actions.pod:3403
9833 msgid "guestfs_mount_vfs"
9834 msgstr ""
9835
9836 # type: verbatim
9837 #: ../src/guestfs-actions.pod:3405
9838 #, no-wrap
9839 msgid ""
9840 " int guestfs_mount_vfs (guestfs_h *g,\n"
9841 "\t\tconst char *options,\n"
9842 "\t\tconst char *vfstype,\n"
9843 "\t\tconst char *device,\n"
9844 "\t\tconst char *mountpoint);\n"
9845 "\n"
9846 msgstr ""
9847
9848 # type: textblock
9849 #: ../src/guestfs-actions.pod:3411
9850 msgid ""
9851 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9852 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
9853 "t> flags."
9854 msgstr ""
9855
9856 # type: =head2
9857 #: ../src/guestfs-actions.pod:3417
9858 msgid "guestfs_mountpoints"
9859 msgstr ""
9860
9861 # type: verbatim
9862 #: ../src/guestfs-actions.pod:3419
9863 #, no-wrap
9864 msgid ""
9865 " char **guestfs_mountpoints (guestfs_h *g);\n"
9866 "\n"
9867 msgstr ""
9868
9869 # type: textblock
9870 #: ../src/guestfs-actions.pod:3421
9871 msgid ""
9872 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
9873 "devices.  This one returns a hash table (map) of device name to directory "
9874 "where the device is mounted."
9875 msgstr ""
9876
9877 # type: =head2
9878 #: ../src/guestfs-actions.pod:3431
9879 msgid "guestfs_mounts"
9880 msgstr ""
9881
9882 # type: verbatim
9883 #: ../src/guestfs-actions.pod:3433
9884 #, no-wrap
9885 msgid ""
9886 " char **guestfs_mounts (guestfs_h *g);\n"
9887 "\n"
9888 msgstr ""
9889
9890 # type: textblock
9891 #: ../src/guestfs-actions.pod:3435 ../fish/guestfish-actions.pod:2653
9892 msgid ""
9893 "This returns the list of currently mounted filesystems.  It returns the list "
9894 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
9895 msgstr ""
9896
9897 # type: textblock
9898 #: ../src/guestfs-actions.pod:3438 ../fish/guestfish-actions.pod:2656
9899 msgid "Some internal mounts are not shown."
9900 msgstr ""
9901
9902 # type: textblock
9903 #: ../src/guestfs-actions.pod:3440
9904 msgid "See also: C<guestfs_mountpoints>"
9905 msgstr ""
9906
9907 # type: =head2
9908 #: ../src/guestfs-actions.pod:3446
9909 msgid "guestfs_mv"
9910 msgstr ""
9911
9912 # type: verbatim
9913 #: ../src/guestfs-actions.pod:3448
9914 #, no-wrap
9915 msgid ""
9916 " int guestfs_mv (guestfs_h *g,\n"
9917 "\t\tconst char *src,\n"
9918 "\t\tconst char *dest);\n"
9919 "\n"
9920 msgstr ""
9921
9922 # type: textblock
9923 #: ../src/guestfs-actions.pod:3452 ../fish/guestfish-actions.pod:2664
9924 msgid ""
9925 "This moves a file from C<src> to C<dest> where C<dest> is either a "
9926 "destination filename or destination directory."
9927 msgstr ""
9928
9929 # type: =head2
9930 #: ../src/guestfs-actions.pod:3457
9931 msgid "guestfs_ntfs_3g_probe"
9932 msgstr ""
9933
9934 # type: verbatim
9935 #: ../src/guestfs-actions.pod:3459
9936 #, no-wrap
9937 msgid ""
9938 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
9939 "\t\tint rw,\n"
9940 "\t\tconst char *device);\n"
9941 "\n"
9942 msgstr ""
9943
9944 # type: textblock
9945 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2671
9946 msgid ""
9947 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
9948 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
9949 "write, and some cannot be mounted at all)."
9950 msgstr ""
9951
9952 # type: textblock
9953 #: ../src/guestfs-actions.pod:3467 ../fish/guestfish-actions.pod:2675
9954 msgid ""
9955 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
9956 "can be mounted read-write.  Set it to false if you want to test if the "
9957 "volume can be mounted read-only."
9958 msgstr ""
9959
9960 # type: textblock
9961 #: ../src/guestfs-actions.pod:3471 ../fish/guestfish-actions.pod:2679
9962 msgid ""
9963 "The return value is an integer which C<0> if the operation would succeed, or "
9964 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
9965 msgstr ""
9966
9967 # type: =head2
9968 #: ../src/guestfs-actions.pod:3477
9969 msgid "guestfs_ntfsresize"
9970 msgstr ""
9971
9972 # type: verbatim
9973 #: ../src/guestfs-actions.pod:3479
9974 #, no-wrap
9975 msgid ""
9976 " int guestfs_ntfsresize (guestfs_h *g,\n"
9977 "\t\tconst char *device);\n"
9978 "\n"
9979 msgstr ""
9980
9981 # type: textblock
9982 #: ../src/guestfs-actions.pod:3482 ../fish/guestfish-actions.pod:2687
9983 msgid ""
9984 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
9985 "size of the underlying device.  See also L<ntfsresize(8)>."
9986 msgstr ""
9987
9988 # type: =head2
9989 #: ../src/guestfs-actions.pod:3488
9990 msgid "guestfs_ntfsresize_size"
9991 msgstr ""
9992
9993 # type: verbatim
9994 #: ../src/guestfs-actions.pod:3490
9995 #, no-wrap
9996 msgid ""
9997 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
9998 "\t\tconst char *device,\n"
9999 "\t\tint64_t size);\n"
10000 "\n"
10001 msgstr ""
10002
10003 # type: textblock
10004 #: ../src/guestfs-actions.pod:3494
10005 msgid ""
10006 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10007 "to specify the new size (in bytes) explicitly."
10008 msgstr ""
10009
10010 # type: =head2
10011 #: ../src/guestfs-actions.pod:3499
10012 msgid "guestfs_part_add"
10013 msgstr ""
10014
10015 # type: verbatim
10016 #: ../src/guestfs-actions.pod:3501
10017 #, no-wrap
10018 msgid ""
10019 " int guestfs_part_add (guestfs_h *g,\n"
10020 "\t\tconst char *device,\n"
10021 "\t\tconst char *prlogex,\n"
10022 "\t\tint64_t startsect,\n"
10023 "\t\tint64_t endsect);\n"
10024 "\n"
10025 msgstr ""
10026
10027 # type: textblock
10028 #: ../src/guestfs-actions.pod:3507
10029 msgid ""
10030 "This command adds a partition to C<device>.  If there is no partition table "
10031 "on the device, call C<guestfs_part_init> first."
10032 msgstr ""
10033
10034 # type: textblock
10035 #: ../src/guestfs-actions.pod:3510 ../fish/guestfish-actions.pod:2705
10036 msgid ""
10037 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10038 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10039 "C<logical>) and C<e> (or C<extended>) partition types."
10040 msgstr ""
10041
10042 # type: textblock
10043 #: ../src/guestfs-actions.pod:3515 ../fish/guestfish-actions.pod:2710
10044 msgid ""
10045 "C<startsect> and C<endsect> are the start and end of the partition in "
10046 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10047 "from the end of the disk (C<-1> is the last sector)."
10048 msgstr ""
10049
10050 # type: textblock
10051 #: ../src/guestfs-actions.pod:3519
10052 msgid ""
10053 "Creating a partition which covers the whole disk is not so easy.  Use "
10054 "C<guestfs_part_disk> to do that."
10055 msgstr ""
10056
10057 # type: =head2
10058 #: ../src/guestfs-actions.pod:3524
10059 msgid "guestfs_part_del"
10060 msgstr ""
10061
10062 # type: verbatim
10063 #: ../src/guestfs-actions.pod:3526
10064 #, no-wrap
10065 msgid ""
10066 " int guestfs_part_del (guestfs_h *g,\n"
10067 "\t\tconst char *device,\n"
10068 "\t\tint partnum);\n"
10069 "\n"
10070 msgstr ""
10071
10072 # type: textblock
10073 #: ../src/guestfs-actions.pod:3530 ../fish/guestfish-actions.pod:2721
10074 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10075 msgstr ""
10076
10077 # type: textblock
10078 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2723
10079 msgid ""
10080 "Note that in the case of MBR partitioning, deleting an extended partition "
10081 "also deletes any logical partitions it contains."
10082 msgstr ""
10083
10084 # type: =head2
10085 #: ../src/guestfs-actions.pod:3538
10086 msgid "guestfs_part_disk"
10087 msgstr ""
10088
10089 # type: verbatim
10090 #: ../src/guestfs-actions.pod:3540
10091 #, no-wrap
10092 msgid ""
10093 " int guestfs_part_disk (guestfs_h *g,\n"
10094 "\t\tconst char *device,\n"
10095 "\t\tconst char *parttype);\n"
10096 "\n"
10097 msgstr ""
10098
10099 # type: textblock
10100 #: ../src/guestfs-actions.pod:3544
10101 msgid ""
10102 "This command is simply a combination of C<guestfs_part_init> followed by "
10103 "C<guestfs_part_add> to create a single primary partition covering the whole "
10104 "disk."
10105 msgstr ""
10106
10107 # type: textblock
10108 #: ../src/guestfs-actions.pod:3548
10109 msgid ""
10110 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10111 "possible values are described in C<guestfs_part_init>."
10112 msgstr ""
10113
10114 # type: =head2
10115 #: ../src/guestfs-actions.pod:3556
10116 msgid "guestfs_part_get_bootable"
10117 msgstr ""
10118
10119 # type: verbatim
10120 #: ../src/guestfs-actions.pod:3558
10121 #, no-wrap
10122 msgid ""
10123 " int guestfs_part_get_bootable (guestfs_h *g,\n"
10124 "\t\tconst char *device,\n"
10125 "\t\tint partnum);\n"
10126 "\n"
10127 msgstr ""
10128
10129 # type: textblock
10130 #: ../src/guestfs-actions.pod:3562 ../fish/guestfish-actions.pod:2745
10131 msgid ""
10132 "This command returns true if the partition C<partnum> on C<device> has the "
10133 "bootable flag set."
10134 msgstr ""
10135
10136 # type: textblock
10137 #: ../src/guestfs-actions.pod:3565
10138 msgid "See also C<guestfs_part_set_bootable>."
10139 msgstr ""
10140
10141 # type: =head2
10142 #: ../src/guestfs-actions.pod:3569
10143 msgid "guestfs_part_get_mbr_id"
10144 msgstr ""
10145
10146 # type: verbatim
10147 #: ../src/guestfs-actions.pod:3571
10148 #, no-wrap
10149 msgid ""
10150 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
10151 "\t\tconst char *device,\n"
10152 "\t\tint partnum);\n"
10153 "\n"
10154 msgstr ""
10155
10156 # type: textblock
10157 #: ../src/guestfs-actions.pod:3575 ../fish/guestfish-actions.pod:2754
10158 msgid ""
10159 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10160 "partition C<partnum>."
10161 msgstr ""
10162
10163 # type: textblock
10164 #: ../src/guestfs-actions.pod:3578 ../src/guestfs-actions.pod:3740
10165 msgid ""
10166 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10167 "undefined results for other partition table types (see "
10168 "C<guestfs_part_get_parttype>)."
10169 msgstr ""
10170
10171 # type: =head2
10172 #: ../src/guestfs-actions.pod:3584
10173 msgid "guestfs_part_get_parttype"
10174 msgstr ""
10175
10176 # type: verbatim
10177 #: ../src/guestfs-actions.pod:3586
10178 #, no-wrap
10179 msgid ""
10180 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
10181 "\t\tconst char *device);\n"
10182 "\n"
10183 msgstr ""
10184
10185 # type: textblock
10186 #: ../src/guestfs-actions.pod:3589 ../fish/guestfish-actions.pod:2765
10187 msgid ""
10188 "This command examines the partition table on C<device> and returns the "
10189 "partition table type (format) being used."
10190 msgstr ""
10191
10192 # type: textblock
10193 #: ../src/guestfs-actions.pod:3592
10194 msgid ""
10195 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10196 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10197 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10198 msgstr ""
10199
10200 # type: =head2
10201 #: ../src/guestfs-actions.pod:3600
10202 msgid "guestfs_part_init"
10203 msgstr ""
10204
10205 # type: verbatim
10206 #: ../src/guestfs-actions.pod:3602
10207 #, no-wrap
10208 msgid ""
10209 " int guestfs_part_init (guestfs_h *g,\n"
10210 "\t\tconst char *device,\n"
10211 "\t\tconst char *parttype);\n"
10212 "\n"
10213 msgstr ""
10214
10215 # type: textblock
10216 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2777
10217 msgid ""
10218 "This creates an empty partition table on C<device> of one of the partition "
10219 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10220 "(for large disks)."
10221 msgstr ""
10222
10223 # type: textblock
10224 #: ../src/guestfs-actions.pod:3610
10225 msgid ""
10226 "Initially there are no partitions.  Following this, you should call "
10227 "C<guestfs_part_add> for each partition required."
10228 msgstr ""
10229
10230 # type: textblock
10231 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2784
10232 msgid "Possible values for C<parttype> are:"
10233 msgstr ""
10234
10235 # type: =item
10236 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2788
10237 msgid "B<efi> | B<gpt>"
10238 msgstr ""
10239
10240 # type: textblock
10241 #: ../src/guestfs-actions.pod:3619 ../fish/guestfish-actions.pod:2790
10242 msgid "Intel EFI / GPT partition table."
10243 msgstr ""
10244
10245 # type: textblock
10246 #: ../src/guestfs-actions.pod:3621 ../fish/guestfish-actions.pod:2792
10247 msgid ""
10248 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10249 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10250 "the C<mbr> format."
10251 msgstr ""
10252
10253 # type: =item
10254 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2796
10255 msgid "B<mbr> | B<msdos>"
10256 msgstr ""
10257
10258 # type: textblock
10259 #: ../src/guestfs-actions.pod:3627 ../fish/guestfish-actions.pod:2798
10260 msgid ""
10261 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10262 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10263 "TB.  For large disks we recommend using C<gpt>."
10264 msgstr ""
10265
10266 # type: textblock
10267 #: ../src/guestfs-actions.pod:3634 ../fish/guestfish-actions.pod:2805
10268 msgid ""
10269 "Other partition table types that may work but are not supported include:"
10270 msgstr ""
10271
10272 # type: =item
10273 #: ../src/guestfs-actions.pod:3639 ../fish/guestfish-actions.pod:2810
10274 msgid "B<aix>"
10275 msgstr ""
10276
10277 # type: textblock
10278 #: ../src/guestfs-actions.pod:3641 ../fish/guestfish-actions.pod:2812
10279 msgid "AIX disk labels."
10280 msgstr ""
10281
10282 # type: =item
10283 #: ../src/guestfs-actions.pod:3643 ../fish/guestfish-actions.pod:2814
10284 msgid "B<amiga> | B<rdb>"
10285 msgstr ""
10286
10287 # type: textblock
10288 #: ../src/guestfs-actions.pod:3645 ../fish/guestfish-actions.pod:2816
10289 msgid "Amiga \"Rigid Disk Block\" format."
10290 msgstr ""
10291
10292 # type: =item
10293 #: ../src/guestfs-actions.pod:3647 ../fish/guestfish-actions.pod:2818
10294 msgid "B<bsd>"
10295 msgstr ""
10296
10297 # type: textblock
10298 #: ../src/guestfs-actions.pod:3649 ../fish/guestfish-actions.pod:2820
10299 msgid "BSD disk labels."
10300 msgstr ""
10301
10302 # type: =item
10303 #: ../src/guestfs-actions.pod:3651 ../fish/guestfish-actions.pod:2822
10304 msgid "B<dasd>"
10305 msgstr ""
10306
10307 # type: textblock
10308 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2824
10309 msgid "DASD, used on IBM mainframes."
10310 msgstr ""
10311
10312 # type: =item
10313 #: ../src/guestfs-actions.pod:3655 ../fish/guestfish-actions.pod:2826
10314 msgid "B<dvh>"
10315 msgstr ""
10316
10317 # type: textblock
10318 #: ../src/guestfs-actions.pod:3657 ../fish/guestfish-actions.pod:2828
10319 msgid "MIPS/SGI volumes."
10320 msgstr ""
10321
10322 # type: =item
10323 #: ../src/guestfs-actions.pod:3659 ../fish/guestfish-actions.pod:2830
10324 msgid "B<mac>"
10325 msgstr ""
10326
10327 # type: textblock
10328 #: ../src/guestfs-actions.pod:3661 ../fish/guestfish-actions.pod:2832
10329 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10330 msgstr ""
10331
10332 # type: =item
10333 #: ../src/guestfs-actions.pod:3663 ../fish/guestfish-actions.pod:2834
10334 msgid "B<pc98>"
10335 msgstr ""
10336
10337 # type: textblock
10338 #: ../src/guestfs-actions.pod:3665 ../fish/guestfish-actions.pod:2836
10339 msgid "NEC PC-98 format, common in Japan apparently."
10340 msgstr ""
10341
10342 # type: =item
10343 #: ../src/guestfs-actions.pod:3667 ../fish/guestfish-actions.pod:2838
10344 msgid "B<sun>"
10345 msgstr ""
10346
10347 # type: textblock
10348 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2840
10349 msgid "Sun disk labels."
10350 msgstr ""
10351
10352 # type: =head2
10353 #: ../src/guestfs-actions.pod:3675
10354 msgid "guestfs_part_list"
10355 msgstr ""
10356
10357 # type: verbatim
10358 #: ../src/guestfs-actions.pod:3677
10359 #, no-wrap
10360 msgid ""
10361 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10362 "\t\tconst char *device);\n"
10363 "\n"
10364 msgstr ""
10365
10366 # type: textblock
10367 #: ../src/guestfs-actions.pod:3680 ../fish/guestfish-actions.pod:2848
10368 msgid ""
10369 "This command parses the partition table on C<device> and returns the list of "
10370 "partitions found."
10371 msgstr ""
10372
10373 # type: textblock
10374 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2851
10375 msgid "The fields in the returned structure are:"
10376 msgstr ""
10377
10378 # type: =item
10379 #: ../src/guestfs-actions.pod:3687 ../fish/guestfish-actions.pod:2855
10380 msgid "B<part_num>"
10381 msgstr ""
10382
10383 # type: textblock
10384 #: ../src/guestfs-actions.pod:3689 ../fish/guestfish-actions.pod:2857
10385 msgid "Partition number, counting from 1."
10386 msgstr ""
10387
10388 # type: =item
10389 #: ../src/guestfs-actions.pod:3691 ../fish/guestfish-actions.pod:2859
10390 msgid "B<part_start>"
10391 msgstr ""
10392
10393 # type: textblock
10394 #: ../src/guestfs-actions.pod:3693
10395 msgid ""
10396 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10397 "the device's sector size, see C<guestfs_blockdev_getss>."
10398 msgstr ""
10399
10400 # type: =item
10401 #: ../src/guestfs-actions.pod:3696 ../fish/guestfish-actions.pod:2864
10402 msgid "B<part_end>"
10403 msgstr ""
10404
10405 # type: textblock
10406 #: ../src/guestfs-actions.pod:3698 ../fish/guestfish-actions.pod:2866
10407 msgid "End of the partition in bytes."
10408 msgstr ""
10409
10410 # type: =item
10411 #: ../src/guestfs-actions.pod:3700 ../fish/guestfish-actions.pod:2868
10412 msgid "B<part_size>"
10413 msgstr ""
10414
10415 # type: textblock
10416 #: ../src/guestfs-actions.pod:3702 ../fish/guestfish-actions.pod:2870
10417 msgid "Size of the partition in bytes."
10418 msgstr ""
10419
10420 # type: textblock
10421 #: ../src/guestfs-actions.pod:3706
10422 msgid ""
10423 "This function returns a C<struct guestfs_partition_list *> (see E<lt>guestfs-"
10424 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
10425 "C<guestfs_free_partition_list> after use>."
10426 msgstr ""
10427
10428 # type: =head2
10429 #: ../src/guestfs-actions.pod:3711
10430 msgid "guestfs_part_set_bootable"
10431 msgstr ""
10432
10433 # type: verbatim
10434 #: ../src/guestfs-actions.pod:3713
10435 #, no-wrap
10436 msgid ""
10437 " int guestfs_part_set_bootable (guestfs_h *g,\n"
10438 "\t\tconst char *device,\n"
10439 "\t\tint partnum,\n"
10440 "\t\tint bootable);\n"
10441 "\n"
10442 msgstr ""
10443
10444 # type: textblock
10445 #: ../src/guestfs-actions.pod:3718 ../fish/guestfish-actions.pod:2878
10446 msgid ""
10447 "This sets the bootable flag on partition numbered C<partnum> on device "
10448 "C<device>.  Note that partitions are numbered from 1."
10449 msgstr ""
10450
10451 # type: textblock
10452 #: ../src/guestfs-actions.pod:3721 ../fish/guestfish-actions.pod:2881
10453 msgid ""
10454 "The bootable flag is used by some operating systems (notably Windows) to "
10455 "determine which partition to boot from.  It is by no means universally "
10456 "recognized."
10457 msgstr ""
10458
10459 # type: =head2
10460 #: ../src/guestfs-actions.pod:3727
10461 msgid "guestfs_part_set_mbr_id"
10462 msgstr ""
10463
10464 # type: verbatim
10465 #: ../src/guestfs-actions.pod:3729
10466 #, no-wrap
10467 msgid ""
10468 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
10469 "\t\tconst char *device,\n"
10470 "\t\tint partnum,\n"
10471 "\t\tint idbyte);\n"
10472 "\n"
10473 msgstr ""
10474
10475 # type: textblock
10476 #: ../src/guestfs-actions.pod:3734 ../fish/guestfish-actions.pod:2889
10477 msgid ""
10478 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
10479 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
10480 "documentation are in fact hexadecimal numbers, but usually documented "
10481 "without any leading \"0x\" which might be confusing."
10482 msgstr ""
10483
10484 # type: =head2
10485 #: ../src/guestfs-actions.pod:3746
10486 msgid "guestfs_part_set_name"
10487 msgstr ""
10488
10489 # type: verbatim
10490 #: ../src/guestfs-actions.pod:3748
10491 #, no-wrap
10492 msgid ""
10493 " int guestfs_part_set_name (guestfs_h *g,\n"
10494 "\t\tconst char *device,\n"
10495 "\t\tint partnum,\n"
10496 "\t\tconst char *name);\n"
10497 "\n"
10498 msgstr ""
10499
10500 # type: textblock
10501 #: ../src/guestfs-actions.pod:3753 ../fish/guestfish-actions.pod:2903
10502 msgid ""
10503 "This sets the partition name on partition numbered C<partnum> on device "
10504 "C<device>.  Note that partitions are numbered from 1."
10505 msgstr ""
10506
10507 # type: textblock
10508 #: ../src/guestfs-actions.pod:3756 ../fish/guestfish-actions.pod:2906
10509 msgid ""
10510 "The partition name can only be set on certain types of partition table.  "
10511 "This works on C<gpt> but not on C<mbr> partitions."
10512 msgstr ""
10513
10514 # type: =head2
10515 #: ../src/guestfs-actions.pod:3761
10516 msgid "guestfs_part_to_dev"
10517 msgstr ""
10518
10519 # type: verbatim
10520 #: ../src/guestfs-actions.pod:3763
10521 #, no-wrap
10522 msgid ""
10523 " char *guestfs_part_to_dev (guestfs_h *g,\n"
10524 "\t\tconst char *partition);\n"
10525 "\n"
10526 msgstr ""
10527
10528 # type: textblock
10529 #: ../src/guestfs-actions.pod:3766 ../fish/guestfish-actions.pod:2913
10530 msgid ""
10531 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
10532 "partition number, returning the device name (eg. \"/dev/sdb\")."
10533 msgstr ""
10534
10535 # type: textblock
10536 #: ../src/guestfs-actions.pod:3770
10537 msgid ""
10538 "The named partition must exist, for example as a string returned from "
10539 "C<guestfs_list_partitions>."
10540 msgstr ""
10541
10542 # type: =head2
10543 #: ../src/guestfs-actions.pod:3776
10544 msgid "guestfs_ping_daemon"
10545 msgstr ""
10546
10547 # type: verbatim
10548 #: ../src/guestfs-actions.pod:3778
10549 #, no-wrap
10550 msgid ""
10551 " int guestfs_ping_daemon (guestfs_h *g);\n"
10552 "\n"
10553 msgstr ""
10554
10555 # type: textblock
10556 #: ../src/guestfs-actions.pod:3780 ../fish/guestfish-actions.pod:2924
10557 msgid ""
10558 "This is a test probe into the guestfs daemon running inside the qemu "
10559 "subprocess.  Calling this function checks that the daemon responds to the "
10560 "ping message, without affecting the daemon or attached block device(s) in "
10561 "any other way."
10562 msgstr ""
10563
10564 # type: =head2
10565 #: ../src/guestfs-actions.pod:3787
10566 msgid "guestfs_pread"
10567 msgstr ""
10568
10569 # type: verbatim
10570 #: ../src/guestfs-actions.pod:3789
10571 #, no-wrap
10572 msgid ""
10573 " char *guestfs_pread (guestfs_h *g,\n"
10574 "\t\tconst char *path,\n"
10575 "\t\tint count,\n"
10576 "\t\tint64_t offset,\n"
10577 "\t\tsize_t *size_r);\n"
10578 "\n"
10579 msgstr ""
10580
10581 # type: textblock
10582 #: ../src/guestfs-actions.pod:3795 ../fish/guestfish-actions.pod:2933
10583 msgid ""
10584 "This command lets you read part of a file.  It reads C<count> bytes of the "
10585 "file, starting at C<offset>, from file C<path>."
10586 msgstr ""
10587
10588 # type: textblock
10589 #: ../src/guestfs-actions.pod:3798 ../fish/guestfish-actions.pod:2936
10590 msgid ""
10591 "This may read fewer bytes than requested.  For further details see the "
10592 "L<pread(2)> system call."
10593 msgstr ""
10594
10595 # type: textblock
10596 #: ../src/guestfs-actions.pod:3801
10597 msgid "See also C<guestfs_pwrite>."
10598 msgstr ""
10599
10600 # type: =head2
10601 #: ../src/guestfs-actions.pod:3810
10602 msgid "guestfs_pvcreate"
10603 msgstr ""
10604
10605 # type: verbatim
10606 #: ../src/guestfs-actions.pod:3812
10607 #, no-wrap
10608 msgid ""
10609 " int guestfs_pvcreate (guestfs_h *g,\n"
10610 "\t\tconst char *device);\n"
10611 "\n"
10612 msgstr ""
10613
10614 # type: textblock
10615 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2948
10616 msgid ""
10617 "This creates an LVM physical volume on the named C<device>, where C<device> "
10618 "should usually be a partition name such as C</dev/sda1>."
10619 msgstr ""
10620
10621 # type: =head2
10622 #: ../src/guestfs-actions.pod:3821
10623 msgid "guestfs_pvremove"
10624 msgstr ""
10625
10626 # type: verbatim
10627 #: ../src/guestfs-actions.pod:3823
10628 #, no-wrap
10629 msgid ""
10630 " int guestfs_pvremove (guestfs_h *g,\n"
10631 "\t\tconst char *device);\n"
10632 "\n"
10633 msgstr ""
10634
10635 # type: textblock
10636 #: ../src/guestfs-actions.pod:3826 ../fish/guestfish-actions.pod:2956
10637 msgid ""
10638 "This wipes a physical volume C<device> so that LVM will no longer recognise "
10639 "it."
10640 msgstr ""
10641
10642 # type: textblock
10643 #: ../src/guestfs-actions.pod:3829 ../fish/guestfish-actions.pod:2959
10644 msgid ""
10645 "The implementation uses the C<pvremove> command which refuses to wipe "
10646 "physical volumes that contain any volume groups, so you have to remove those "
10647 "first."
10648 msgstr ""
10649
10650 # type: =head2
10651 #: ../src/guestfs-actions.pod:3835
10652 msgid "guestfs_pvresize"
10653 msgstr ""
10654
10655 # type: verbatim
10656 #: ../src/guestfs-actions.pod:3837
10657 #, no-wrap
10658 msgid ""
10659 " int guestfs_pvresize (guestfs_h *g,\n"
10660 "\t\tconst char *device);\n"
10661 "\n"
10662 msgstr ""
10663
10664 # type: textblock
10665 #: ../src/guestfs-actions.pod:3840 ../fish/guestfish-actions.pod:2967
10666 msgid ""
10667 "This resizes (expands or shrinks) an existing LVM physical volume to match "
10668 "the new size of the underlying device."
10669 msgstr ""
10670
10671 # type: =head2
10672 #: ../src/guestfs-actions.pod:3845
10673 msgid "guestfs_pvresize_size"
10674 msgstr ""
10675
10676 # type: verbatim
10677 #: ../src/guestfs-actions.pod:3847
10678 #, no-wrap
10679 msgid ""
10680 " int guestfs_pvresize_size (guestfs_h *g,\n"
10681 "\t\tconst char *device,\n"
10682 "\t\tint64_t size);\n"
10683 "\n"
10684 msgstr ""
10685
10686 # type: textblock
10687 #: ../src/guestfs-actions.pod:3851
10688 msgid ""
10689 "This command is the same as C<guestfs_pvresize> except that it allows you to "
10690 "specify the new size (in bytes) explicitly."
10691 msgstr ""
10692
10693 # type: =head2
10694 #: ../src/guestfs-actions.pod:3856
10695 msgid "guestfs_pvs"
10696 msgstr ""
10697
10698 # type: verbatim
10699 #: ../src/guestfs-actions.pod:3858
10700 #, no-wrap
10701 msgid ""
10702 " char **guestfs_pvs (guestfs_h *g);\n"
10703 "\n"
10704 msgstr ""
10705
10706 # type: textblock
10707 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2981
10708 msgid ""
10709 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
10710 "(8)> command."
10711 msgstr ""
10712
10713 # type: textblock
10714 #: ../src/guestfs-actions.pod:3863 ../fish/guestfish-actions.pod:2984
10715 msgid ""
10716 "This returns a list of just the device names that contain PVs (eg. C</dev/"
10717 "sda2>)."
10718 msgstr ""
10719
10720 # type: textblock
10721 #: ../src/guestfs-actions.pod:3866
10722 msgid "See also C<guestfs_pvs_full>."
10723 msgstr ""
10724
10725 # type: =head2
10726 #: ../src/guestfs-actions.pod:3872
10727 msgid "guestfs_pvs_full"
10728 msgstr ""
10729
10730 # type: verbatim
10731 #: ../src/guestfs-actions.pod:3874
10732 #, no-wrap
10733 msgid ""
10734 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
10735 "\n"
10736 msgstr ""
10737
10738 # type: textblock
10739 #: ../src/guestfs-actions.pod:3876 ../fish/guestfish-actions.pod:2993
10740 msgid ""
10741 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
10742 "(8)> command.  The \"full\" version includes all fields."
10743 msgstr ""
10744
10745 # type: textblock
10746 #: ../src/guestfs-actions.pod:3879
10747 msgid ""
10748 "This function returns a C<struct guestfs_lvm_pv_list *> (see E<lt>guestfs-"
10749 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
10750 "C<guestfs_free_lvm_pv_list> after use>."
10751 msgstr ""
10752
10753 # type: =head2
10754 #: ../src/guestfs-actions.pod:3884
10755 msgid "guestfs_pvuuid"
10756 msgstr ""
10757
10758 # type: verbatim
10759 #: ../src/guestfs-actions.pod:3886
10760 #, no-wrap
10761 msgid ""
10762 " char *guestfs_pvuuid (guestfs_h *g,\n"
10763 "\t\tconst char *device);\n"
10764 "\n"
10765 msgstr ""
10766
10767 # type: textblock
10768 #: ../src/guestfs-actions.pod:3889 ../fish/guestfish-actions.pod:3000
10769 msgid "This command returns the UUID of the LVM PV C<device>."
10770 msgstr ""
10771
10772 # type: =head2
10773 #: ../src/guestfs-actions.pod:3894
10774 msgid "guestfs_pwrite"
10775 msgstr ""
10776
10777 # type: verbatim
10778 #: ../src/guestfs-actions.pod:3896
10779 #, no-wrap
10780 msgid ""
10781 " int guestfs_pwrite (guestfs_h *g,\n"
10782 "\t\tconst char *path,\n"
10783 "\t\tconst char *content,\n"
10784 "\t\tsize_t content_size,\n"
10785 "\t\tint64_t offset);\n"
10786 "\n"
10787 msgstr ""
10788
10789 # type: textblock
10790 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:3006
10791 msgid ""
10792 "This command writes to part of a file.  It writes the data buffer C<content> "
10793 "to the file C<path> starting at offset C<offset>."
10794 msgstr ""
10795
10796 # type: textblock
10797 #: ../src/guestfs-actions.pod:3905 ../fish/guestfish-actions.pod:3009
10798 msgid ""
10799 "This command implements the L<pwrite(2)> system call, and like that system "
10800 "call it may not write the full data requested.  The return value is the "
10801 "number of bytes that were actually written to the file.  This could even be "
10802 "0, although short writes are unlikely for regular files in ordinary "
10803 "circumstances."
10804 msgstr ""
10805
10806 # type: textblock
10807 #: ../src/guestfs-actions.pod:3911
10808 msgid "See also C<guestfs_pread>."
10809 msgstr ""
10810
10811 # type: =head2
10812 #: ../src/guestfs-actions.pod:3918
10813 msgid "guestfs_read_file"
10814 msgstr ""
10815
10816 # type: verbatim
10817 #: ../src/guestfs-actions.pod:3920
10818 #, no-wrap
10819 msgid ""
10820 " char *guestfs_read_file (guestfs_h *g,\n"
10821 "\t\tconst char *path,\n"
10822 "\t\tsize_t *size_r);\n"
10823 "\n"
10824 msgstr ""
10825
10826 # type: textblock
10827 #: ../src/guestfs-actions.pod:3924 ../fish/guestfish-actions.pod:3024
10828 msgid "This calls returns the contents of the file C<path> as a buffer."
10829 msgstr ""
10830
10831 # type: textblock
10832 #: ../src/guestfs-actions.pod:3927
10833 msgid ""
10834 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
10835 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
10836 "function is limited in the total size of file that can be handled."
10837 msgstr ""
10838
10839 # type: =head2
10840 #: ../src/guestfs-actions.pod:3939
10841 msgid "guestfs_read_lines"
10842 msgstr ""
10843
10844 # type: verbatim
10845 #: ../src/guestfs-actions.pod:3941
10846 #, no-wrap
10847 msgid ""
10848 " char **guestfs_read_lines (guestfs_h *g,\n"
10849 "\t\tconst char *path);\n"
10850 "\n"
10851 msgstr ""
10852
10853 # type: textblock
10854 #: ../src/guestfs-actions.pod:3946 ../fish/guestfish-actions.pod:3041
10855 msgid ""
10856 "The file contents are returned as a list of lines.  Trailing C<LF> and "
10857 "C<CRLF> character sequences are I<not> returned."
10858 msgstr ""
10859
10860 # type: textblock
10861 #: ../src/guestfs-actions.pod:3949
10862 msgid ""
10863 "Note that this function cannot correctly handle binary files (specifically, "
10864 "files containing C<\\0> character which is treated as end of line).  For "
10865 "those you need to use the C<guestfs_read_file> function which has a more "
10866 "complex interface."
10867 msgstr ""
10868
10869 # type: =head2
10870 #: ../src/guestfs-actions.pod:3958
10871 msgid "guestfs_readdir"
10872 msgstr ""
10873
10874 # type: verbatim
10875 #: ../src/guestfs-actions.pod:3960
10876 #, no-wrap
10877 msgid ""
10878 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
10879 "\t\tconst char *dir);\n"
10880 "\n"
10881 msgstr ""
10882
10883 # type: textblock
10884 #: ../src/guestfs-actions.pod:3963 ../fish/guestfish-actions.pod:3053
10885 msgid "This returns the list of directory entries in directory C<dir>."
10886 msgstr ""
10887
10888 # type: textblock
10889 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:3055
10890 msgid ""
10891 "All entries in the directory are returned, including C<.> and C<..>.  The "
10892 "entries are I<not> sorted, but returned in the same order as the underlying "
10893 "filesystem."
10894 msgstr ""
10895
10896 # type: textblock
10897 #: ../src/guestfs-actions.pod:3969 ../fish/guestfish-actions.pod:3059
10898 msgid ""
10899 "Also this call returns basic file type information about each file.  The "
10900 "C<ftyp> field will contain one of the following characters:"
10901 msgstr ""
10902
10903 # type: =item
10904 #: ../src/guestfs-actions.pod:3974 ../fish/guestfish-actions.pod:3064
10905 msgid "'b'"
10906 msgstr ""
10907
10908 # type: textblock
10909 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:3066
10910 msgid "Block special"
10911 msgstr ""
10912
10913 # type: =item
10914 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:3068
10915 msgid "'c'"
10916 msgstr ""
10917
10918 # type: textblock
10919 #: ../src/guestfs-actions.pod:3980 ../fish/guestfish-actions.pod:3070
10920 msgid "Char special"
10921 msgstr ""
10922
10923 # type: =item
10924 #: ../src/guestfs-actions.pod:3982 ../fish/guestfish-actions.pod:3072
10925 msgid "'d'"
10926 msgstr ""
10927
10928 # type: textblock
10929 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:3074
10930 msgid "Directory"
10931 msgstr ""
10932
10933 # type: =item
10934 #: ../src/guestfs-actions.pod:3986 ../fish/guestfish-actions.pod:3076
10935 msgid "'f'"
10936 msgstr ""
10937
10938 # type: textblock
10939 #: ../src/guestfs-actions.pod:3988 ../fish/guestfish-actions.pod:3078
10940 msgid "FIFO (named pipe)"
10941 msgstr ""
10942
10943 # type: =item
10944 #: ../src/guestfs-actions.pod:3990 ../fish/guestfish-actions.pod:3080
10945 msgid "'l'"
10946 msgstr ""
10947
10948 # type: textblock
10949 #: ../src/guestfs-actions.pod:3992 ../fish/guestfish-actions.pod:3082
10950 msgid "Symbolic link"
10951 msgstr ""
10952
10953 # type: =item
10954 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:3084
10955 msgid "'r'"
10956 msgstr ""
10957
10958 # type: textblock
10959 #: ../src/guestfs-actions.pod:3996 ../fish/guestfish-actions.pod:3086
10960 msgid "Regular file"
10961 msgstr ""
10962
10963 # type: =item
10964 #: ../src/guestfs-actions.pod:3998 ../fish/guestfish-actions.pod:3088
10965 msgid "'s'"
10966 msgstr ""
10967
10968 # type: textblock
10969 #: ../src/guestfs-actions.pod:4000 ../fish/guestfish-actions.pod:3090
10970 msgid "Socket"
10971 msgstr ""
10972
10973 # type: =item
10974 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:3092
10975 msgid "'u'"
10976 msgstr ""
10977
10978 # type: textblock
10979 #: ../src/guestfs-actions.pod:4004 ../fish/guestfish-actions.pod:3094
10980 msgid "Unknown file type"
10981 msgstr ""
10982
10983 # type: =item
10984 #: ../src/guestfs-actions.pod:4006 ../fish/guestfish-actions.pod:3096
10985 msgid "'?'"
10986 msgstr ""
10987
10988 # type: textblock
10989 #: ../src/guestfs-actions.pod:4008 ../fish/guestfish-actions.pod:3098
10990 msgid ""
10991 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
10992 msgstr ""
10993
10994 # type: textblock
10995 #: ../src/guestfs-actions.pod:4013
10996 msgid ""
10997 "This function is primarily intended for use by programs.  To get a simple "
10998 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
10999 "consumption, use C<guestfs_ll>."
11000 msgstr ""
11001
11002 # type: textblock
11003 #: ../src/guestfs-actions.pod:4017
11004 msgid ""
11005 "This function returns a C<struct guestfs_dirent_list *> (see E<lt>guestfs-"
11006 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11007 "C<guestfs_free_dirent_list> after use>."
11008 msgstr ""
11009
11010 # type: =head2
11011 #: ../src/guestfs-actions.pod:4022
11012 msgid "guestfs_readlink"
11013 msgstr ""
11014
11015 # type: verbatim
11016 #: ../src/guestfs-actions.pod:4024
11017 #, no-wrap
11018 msgid ""
11019 " char *guestfs_readlink (guestfs_h *g,\n"
11020 "\t\tconst char *path);\n"
11021 "\n"
11022 msgstr ""
11023
11024 # type: textblock
11025 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:3111
11026 msgid "This command reads the target of a symbolic link."
11027 msgstr ""
11028
11029 # type: =head2
11030 #: ../src/guestfs-actions.pod:4032
11031 msgid "guestfs_readlinklist"
11032 msgstr ""
11033
11034 # type: verbatim
11035 #: ../src/guestfs-actions.pod:4034
11036 #, no-wrap
11037 msgid ""
11038 " char **guestfs_readlinklist (guestfs_h *g,\n"
11039 "\t\tconst char *path,\n"
11040 "\t\tchar *const *names);\n"
11041 "\n"
11042 msgstr ""
11043
11044 # type: textblock
11045 #: ../src/guestfs-actions.pod:4038 ../fish/guestfish-actions.pod:3117
11046 msgid ""
11047 "This call allows you to do a C<readlink> operation on multiple files, where "
11048 "all files are in the directory C<path>.  C<names> is the list of files from "
11049 "this directory."
11050 msgstr ""
11051
11052 # type: textblock
11053 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:3121
11054 msgid ""
11055 "On return you get a list of strings, with a one-to-one correspondence to the "
11056 "C<names> list.  Each string is the value of the symbolic link."
11057 msgstr ""
11058
11059 # type: textblock
11060 #: ../src/guestfs-actions.pod:4046 ../fish/guestfish-actions.pod:3125
11061 msgid ""
11062 "If the C<readlink(2)> operation fails on any name, then the corresponding "
11063 "result string is the empty string C<\"\">.  However the whole operation is "
11064 "completed even if there were C<readlink(2)> errors, and so you can call this "
11065 "function with names where you don't know if they are symbolic links already "
11066 "(albeit slightly less efficient)."
11067 msgstr ""
11068
11069 # type: textblock
11070 #: ../src/guestfs-actions.pod:4053 ../fish/guestfish-actions.pod:3132
11071 msgid ""
11072 "This call is intended for programs that want to efficiently list a directory "
11073 "contents without making many round-trips.  Very long directory listings "
11074 "might cause the protocol message size to be exceeded, causing this call to "
11075 "fail.  The caller must split up such requests into smaller groups of names."
11076 msgstr ""
11077
11078 # type: =head2
11079 #: ../src/guestfs-actions.pod:4064
11080 msgid "guestfs_realpath"
11081 msgstr ""
11082
11083 # type: verbatim
11084 #: ../src/guestfs-actions.pod:4066
11085 #, no-wrap
11086 msgid ""
11087 " char *guestfs_realpath (guestfs_h *g,\n"
11088 "\t\tconst char *path);\n"
11089 "\n"
11090 msgstr ""
11091
11092 # type: textblock
11093 #: ../src/guestfs-actions.pod:4069 ../fish/guestfish-actions.pod:3143
11094 msgid ""
11095 "Return the canonicalized absolute pathname of C<path>.  The returned path "
11096 "has no C<.>, C<..> or symbolic link path elements."
11097 msgstr ""
11098
11099 # type: =head2
11100 #: ../src/guestfs-actions.pod:4075
11101 msgid "guestfs_removexattr"
11102 msgstr ""
11103
11104 # type: verbatim
11105 #: ../src/guestfs-actions.pod:4077
11106 #, no-wrap
11107 msgid ""
11108 " int guestfs_removexattr (guestfs_h *g,\n"
11109 "\t\tconst char *xattr,\n"
11110 "\t\tconst char *path);\n"
11111 "\n"
11112 msgstr ""
11113
11114 # type: textblock
11115 #: ../src/guestfs-actions.pod:4081 ../fish/guestfish-actions.pod:3150
11116 msgid ""
11117 "This call removes the extended attribute named C<xattr> of the file C<path>."
11118 msgstr ""
11119
11120 # type: textblock
11121 #: ../src/guestfs-actions.pod:4084
11122 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11123 msgstr ""
11124
11125 # type: =head2
11126 #: ../src/guestfs-actions.pod:4088
11127 msgid "guestfs_resize2fs"
11128 msgstr ""
11129
11130 # type: verbatim
11131 #: ../src/guestfs-actions.pod:4090
11132 #, no-wrap
11133 msgid ""
11134 " int guestfs_resize2fs (guestfs_h *g,\n"
11135 "\t\tconst char *device);\n"
11136 "\n"
11137 msgstr ""
11138
11139 # type: textblock
11140 #: ../src/guestfs-actions.pod:4093 ../fish/guestfish-actions.pod:3159
11141 msgid ""
11142 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11143 "underlying device."
11144 msgstr ""
11145
11146 # type: textblock
11147 #: ../src/guestfs-actions.pod:4096
11148 msgid ""
11149 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11150 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11151 "sometimes gives an error about this and sometimes not.  In any case, it is "
11152 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11153 msgstr ""
11154
11155 # type: =head2
11156 #: ../src/guestfs-actions.pod:4104
11157 msgid "guestfs_resize2fs_size"
11158 msgstr ""
11159
11160 # type: verbatim
11161 #: ../src/guestfs-actions.pod:4106
11162 #, no-wrap
11163 msgid ""
11164 " int guestfs_resize2fs_size (guestfs_h *g,\n"
11165 "\t\tconst char *device,\n"
11166 "\t\tint64_t size);\n"
11167 "\n"
11168 msgstr ""
11169
11170 # type: textblock
11171 #: ../src/guestfs-actions.pod:4110
11172 msgid ""
11173 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11174 "to specify the new size (in bytes) explicitly."
11175 msgstr ""
11176
11177 # type: =head2
11178 #: ../src/guestfs-actions.pod:4115
11179 msgid "guestfs_rm"
11180 msgstr ""
11181
11182 # type: verbatim
11183 #: ../src/guestfs-actions.pod:4117
11184 #, no-wrap
11185 msgid ""
11186 " int guestfs_rm (guestfs_h *g,\n"
11187 "\t\tconst char *path);\n"
11188 "\n"
11189 msgstr ""
11190
11191 # type: textblock
11192 #: ../src/guestfs-actions.pod:4120 ../fish/guestfish-actions.pod:3179
11193 msgid "Remove the single file C<path>."
11194 msgstr ""
11195
11196 # type: =head2
11197 #: ../src/guestfs-actions.pod:4124
11198 msgid "guestfs_rm_rf"
11199 msgstr ""
11200
11201 # type: verbatim
11202 #: ../src/guestfs-actions.pod:4126
11203 #, no-wrap
11204 msgid ""
11205 " int guestfs_rm_rf (guestfs_h *g,\n"
11206 "\t\tconst char *path);\n"
11207 "\n"
11208 msgstr ""
11209
11210 # type: textblock
11211 #: ../src/guestfs-actions.pod:4129 ../fish/guestfish-actions.pod:3185
11212 msgid ""
11213 "Remove the file or directory C<path>, recursively removing the contents if "
11214 "its a directory.  This is like the C<rm -rf> shell command."
11215 msgstr ""
11216
11217 # type: =head2
11218 #: ../src/guestfs-actions.pod:4135
11219 msgid "guestfs_rmdir"
11220 msgstr ""
11221
11222 # type: verbatim
11223 #: ../src/guestfs-actions.pod:4137
11224 #, no-wrap
11225 msgid ""
11226 " int guestfs_rmdir (guestfs_h *g,\n"
11227 "\t\tconst char *path);\n"
11228 "\n"
11229 msgstr ""
11230
11231 # type: textblock
11232 #: ../src/guestfs-actions.pod:4140 ../fish/guestfish-actions.pod:3193
11233 msgid "Remove the single directory C<path>."
11234 msgstr ""
11235
11236 # type: =head2
11237 #: ../src/guestfs-actions.pod:4144
11238 msgid "guestfs_rmmountpoint"
11239 msgstr ""
11240
11241 # type: verbatim
11242 #: ../src/guestfs-actions.pod:4146
11243 #, no-wrap
11244 msgid ""
11245 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11246 "\t\tconst char *exemptpath);\n"
11247 "\n"
11248 msgstr ""
11249
11250 # type: textblock
11251 #: ../src/guestfs-actions.pod:4149
11252 msgid ""
11253 "This calls removes a mountpoint that was previously created with "
11254 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11255 msgstr ""
11256
11257 # type: =head2
11258 #: ../src/guestfs-actions.pod:4155
11259 msgid "guestfs_scrub_device"
11260 msgstr ""
11261
11262 # type: verbatim
11263 #: ../src/guestfs-actions.pod:4157
11264 #, no-wrap
11265 msgid ""
11266 " int guestfs_scrub_device (guestfs_h *g,\n"
11267 "\t\tconst char *device);\n"
11268 "\n"
11269 msgstr ""
11270
11271 # type: textblock
11272 #: ../src/guestfs-actions.pod:4160 ../fish/guestfish-actions.pod:3207
11273 msgid ""
11274 "This command writes patterns over C<device> to make data retrieval more "
11275 "difficult."
11276 msgstr ""
11277
11278 # type: textblock
11279 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4181
11280 #: ../src/guestfs-actions.pod:4197 ../fish/guestfish-actions.pod:3210
11281 #: ../fish/guestfish-actions.pod:3225 ../fish/guestfish-actions.pod:3238
11282 msgid ""
11283 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11284 "more details."
11285 msgstr ""
11286
11287 # type: =head2
11288 #: ../src/guestfs-actions.pod:4171
11289 msgid "guestfs_scrub_file"
11290 msgstr ""
11291
11292 # type: verbatim
11293 #: ../src/guestfs-actions.pod:4173
11294 #, no-wrap
11295 msgid ""
11296 " int guestfs_scrub_file (guestfs_h *g,\n"
11297 "\t\tconst char *file);\n"
11298 "\n"
11299 msgstr ""
11300
11301 # type: textblock
11302 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:3220
11303 msgid ""
11304 "This command writes patterns over a file to make data retrieval more "
11305 "difficult."
11306 msgstr ""
11307
11308 # type: textblock
11309 #: ../src/guestfs-actions.pod:4179 ../fish/guestfish-actions.pod:3223
11310 msgid "The file is I<removed> after scrubbing."
11311 msgstr ""
11312
11313 # type: =head2
11314 #: ../src/guestfs-actions.pod:4186
11315 msgid "guestfs_scrub_freespace"
11316 msgstr ""
11317
11318 # type: verbatim
11319 #: ../src/guestfs-actions.pod:4188
11320 #, no-wrap
11321 msgid ""
11322 " int guestfs_scrub_freespace (guestfs_h *g,\n"
11323 "\t\tconst char *dir);\n"
11324 "\n"
11325 msgstr ""
11326
11327 # type: textblock
11328 #: ../src/guestfs-actions.pod:4191
11329 msgid ""
11330 "This command creates the directory C<dir> and then fills it with files until "
11331 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11332 "and deletes them.  The intention is to scrub any free space on the partition "
11333 "containing C<dir>."
11334 msgstr ""
11335
11336 # type: =head2
11337 #: ../src/guestfs-actions.pod:4202
11338 msgid "guestfs_set_append"
11339 msgstr ""
11340
11341 # type: verbatim
11342 #: ../src/guestfs-actions.pod:4204
11343 #, no-wrap
11344 msgid ""
11345 " int guestfs_set_append (guestfs_h *g,\n"
11346 "\t\tconst char *append);\n"
11347 "\n"
11348 msgstr ""
11349
11350 # type: textblock
11351 #: ../src/guestfs-actions.pod:4207 ../fish/guestfish-actions.pod:3245
11352 msgid ""
11353 "This function is used to add additional options to the guest kernel command "
11354 "line."
11355 msgstr ""
11356
11357 # type: textblock
11358 #: ../src/guestfs-actions.pod:4210 ../fish/guestfish-actions.pod:3248
11359 msgid ""
11360 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11361 "environment variable."
11362 msgstr ""
11363
11364 # type: textblock
11365 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:3251
11366 msgid ""
11367 "Setting C<append> to C<NULL> means I<no> additional options are passed "
11368 "(libguestfs always adds a few of its own)."
11369 msgstr ""
11370
11371 # type: =head2
11372 #: ../src/guestfs-actions.pod:4218
11373 msgid "guestfs_set_autosync"
11374 msgstr ""
11375
11376 # type: verbatim
11377 #: ../src/guestfs-actions.pod:4220
11378 #, no-wrap
11379 msgid ""
11380 " int guestfs_set_autosync (guestfs_h *g,\n"
11381 "\t\tint autosync);\n"
11382 "\n"
11383 msgstr ""
11384
11385 # type: textblock
11386 #: ../src/guestfs-actions.pod:4223
11387 msgid ""
11388 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
11389 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
11390 "the handle is closed (also if the program exits without closing handles)."
11391 msgstr ""
11392
11393 # type: textblock
11394 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:3263
11395 msgid ""
11396 "This is disabled by default (except in guestfish where it is enabled by "
11397 "default)."
11398 msgstr ""
11399
11400 # type: =head2
11401 #: ../src/guestfs-actions.pod:4233
11402 msgid "guestfs_set_direct"
11403 msgstr ""
11404
11405 # type: verbatim
11406 #: ../src/guestfs-actions.pod:4235
11407 #, no-wrap
11408 msgid ""
11409 " int guestfs_set_direct (guestfs_h *g,\n"
11410 "\t\tint direct);\n"
11411 "\n"
11412 msgstr ""
11413
11414 # type: textblock
11415 #: ../src/guestfs-actions.pod:4238 ../fish/guestfish-actions.pod:3270
11416 msgid ""
11417 "If the direct appliance mode flag is enabled, then stdin and stdout are "
11418 "passed directly through to the appliance once it is launched."
11419 msgstr ""
11420
11421 # type: textblock
11422 #: ../src/guestfs-actions.pod:4242
11423 msgid ""
11424 "One consequence of this is that log messages aren't caught by the library "
11425 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
11426 "stdout."
11427 msgstr ""
11428
11429 # type: textblock
11430 #: ../src/guestfs-actions.pod:4246 ../fish/guestfish-actions.pod:3278
11431 msgid "You probably don't want to use this unless you know what you are doing."
11432 msgstr ""
11433
11434 # type: textblock
11435 #: ../src/guestfs-actions.pod:4249 ../fish/guestfish-actions.pod:3281
11436 msgid "The default is disabled."
11437 msgstr ""
11438
11439 # type: =head2
11440 #: ../src/guestfs-actions.pod:4253
11441 msgid "guestfs_set_e2label"
11442 msgstr ""
11443
11444 # type: verbatim
11445 #: ../src/guestfs-actions.pod:4255
11446 #, no-wrap
11447 msgid ""
11448 " int guestfs_set_e2label (guestfs_h *g,\n"
11449 "\t\tconst char *device,\n"
11450 "\t\tconst char *label);\n"
11451 "\n"
11452 msgstr ""
11453
11454 # type: textblock
11455 #: ../src/guestfs-actions.pod:4259 ../fish/guestfish-actions.pod:3287
11456 msgid ""
11457 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
11458 "C<label>.  Filesystem labels are limited to 16 characters."
11459 msgstr ""
11460
11461 # type: textblock
11462 #: ../src/guestfs-actions.pod:4263
11463 msgid ""
11464 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
11465 "the existing label on a filesystem."
11466 msgstr ""
11467
11468 # type: =head2
11469 #: ../src/guestfs-actions.pod:4268
11470 msgid "guestfs_set_e2uuid"
11471 msgstr ""
11472
11473 # type: verbatim
11474 #: ../src/guestfs-actions.pod:4270
11475 #, no-wrap
11476 msgid ""
11477 " int guestfs_set_e2uuid (guestfs_h *g,\n"
11478 "\t\tconst char *device,\n"
11479 "\t\tconst char *uuid);\n"
11480 "\n"
11481 msgstr ""
11482
11483 # type: textblock
11484 #: ../src/guestfs-actions.pod:4274 ../fish/guestfish-actions.pod:3298
11485 msgid ""
11486 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
11487 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
11488 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
11489 msgstr ""
11490
11491 # type: textblock
11492 #: ../src/guestfs-actions.pod:4279
11493 msgid ""
11494 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
11495 "the existing UUID of a filesystem."
11496 msgstr ""
11497
11498 # type: =head2
11499 #: ../src/guestfs-actions.pod:4284
11500 msgid "guestfs_set_memsize"
11501 msgstr ""
11502
11503 # type: verbatim
11504 #: ../src/guestfs-actions.pod:4286
11505 #, no-wrap
11506 msgid ""
11507 " int guestfs_set_memsize (guestfs_h *g,\n"
11508 "\t\tint memsize);\n"
11509 "\n"
11510 msgstr ""
11511
11512 # type: textblock
11513 #: ../src/guestfs-actions.pod:4289
11514 msgid ""
11515 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
11516 "This only has any effect if called before C<guestfs_launch>."
11517 msgstr ""
11518
11519 # type: textblock
11520 #: ../src/guestfs-actions.pod:4293 ../fish/guestfish-actions.pod:3314
11521 msgid ""
11522 "You can also change this by setting the environment variable "
11523 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
11524 msgstr ""
11525
11526 # type: =head2
11527 #: ../src/guestfs-actions.pod:4302
11528 msgid "guestfs_set_network"
11529 msgstr ""
11530
11531 # type: verbatim
11532 #: ../src/guestfs-actions.pod:4304
11533 #, no-wrap
11534 msgid ""
11535 " int guestfs_set_network (guestfs_h *g,\n"
11536 "\t\tint network);\n"
11537 "\n"
11538 msgstr ""
11539
11540 # type: textblock
11541 #: ../src/guestfs-actions.pod:4307 ../fish/guestfish-actions.pod:3325
11542 msgid ""
11543 "If C<network> is true, then the network is enabled in the libguestfs "
11544 "appliance.  The default is false."
11545 msgstr ""
11546
11547 # type: textblock
11548 #: ../src/guestfs-actions.pod:4310 ../fish/guestfish-actions.pod:3328
11549 msgid ""
11550 "This affects whether commands are able to access the network (see L<guestfs"
11551 "(3)/RUNNING COMMANDS>)."
11552 msgstr ""
11553
11554 # type: textblock
11555 #: ../src/guestfs-actions.pod:4313
11556 msgid ""
11557 "You must call this before calling C<guestfs_launch>, otherwise it has no "
11558 "effect."
11559 msgstr ""
11560
11561 # type: =head2
11562 #: ../src/guestfs-actions.pod:4318
11563 msgid "guestfs_set_path"
11564 msgstr ""
11565
11566 # type: verbatim
11567 #: ../src/guestfs-actions.pod:4320
11568 #, no-wrap
11569 msgid ""
11570 " int guestfs_set_path (guestfs_h *g,\n"
11571 "\t\tconst char *searchpath);\n"
11572 "\n"
11573 msgstr ""
11574
11575 # type: textblock
11576 #: ../src/guestfs-actions.pod:4323 ../fish/guestfish-actions.pod:3338
11577 msgid "Set the path that libguestfs searches for kernel and initrd.img."
11578 msgstr ""
11579
11580 # type: textblock
11581 #: ../src/guestfs-actions.pod:4325 ../fish/guestfish-actions.pod:3340
11582 msgid ""
11583 "The default is C<$libdir/guestfs> unless overridden by setting "
11584 "C<LIBGUESTFS_PATH> environment variable."
11585 msgstr ""
11586
11587 # type: textblock
11588 #: ../src/guestfs-actions.pod:4328 ../fish/guestfish-actions.pod:3343
11589 msgid "Setting C<path> to C<NULL> restores the default path."
11590 msgstr ""
11591
11592 # type: =head2
11593 #: ../src/guestfs-actions.pod:4332
11594 msgid "guestfs_set_qemu"
11595 msgstr ""
11596
11597 # type: verbatim
11598 #: ../src/guestfs-actions.pod:4334
11599 #, no-wrap
11600 msgid ""
11601 " int guestfs_set_qemu (guestfs_h *g,\n"
11602 "\t\tconst char *qemu);\n"
11603 "\n"
11604 msgstr ""
11605
11606 # type: textblock
11607 #: ../src/guestfs-actions.pod:4337 ../fish/guestfish-actions.pod:3349
11608 msgid "Set the qemu binary that we will use."
11609 msgstr ""
11610
11611 # type: textblock
11612 #: ../src/guestfs-actions.pod:4339 ../fish/guestfish-actions.pod:3351
11613 msgid ""
11614 "The default is chosen when the library was compiled by the configure script."
11615 msgstr ""
11616
11617 # type: textblock
11618 #: ../src/guestfs-actions.pod:4342 ../fish/guestfish-actions.pod:3354
11619 msgid ""
11620 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
11621 "variable."
11622 msgstr ""
11623
11624 # type: textblock
11625 #: ../src/guestfs-actions.pod:4345 ../fish/guestfish-actions.pod:3357
11626 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
11627 msgstr ""
11628
11629 # type: textblock
11630 #: ../src/guestfs-actions.pod:4347 ../fish/guestfish-actions.pod:3359
11631 msgid ""
11632 "Note that you should call this function as early as possible after creating "
11633 "the handle.  This is because some pre-launch operations depend on testing "
11634 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
11635 "don't retest features, and so you might see inconsistent results.  Using the "
11636 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
11637 "the qemu binary at the same time as the handle is created."
11638 msgstr ""
11639
11640 # type: =head2
11641 #: ../src/guestfs-actions.pod:4357
11642 msgid "guestfs_set_recovery_proc"
11643 msgstr ""
11644
11645 # type: verbatim
11646 #: ../src/guestfs-actions.pod:4359
11647 #, no-wrap
11648 msgid ""
11649 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
11650 "\t\tint recoveryproc);\n"
11651 "\n"
11652 msgstr ""
11653
11654 # type: textblock
11655 #: ../src/guestfs-actions.pod:4362
11656 msgid ""
11657 "If this is called with the parameter C<false> then C<guestfs_launch> does "
11658 "not create a recovery process.  The purpose of the recovery process is to "
11659 "stop runaway qemu processes in the case where the main program aborts "
11660 "abruptly."
11661 msgstr ""
11662
11663 # type: textblock
11664 #: ../src/guestfs-actions.pod:4367
11665 msgid ""
11666 "This only has any effect if called before C<guestfs_launch>, and the default "
11667 "is true."
11668 msgstr ""
11669
11670 # type: textblock
11671 #: ../src/guestfs-actions.pod:4370 ../fish/guestfish-actions.pod:3379
11672 msgid ""
11673 "About the only time when you would want to disable this is if the main "
11674 "process will fork itself into the background (\"daemonize\" itself).  In "
11675 "this case the recovery process thinks that the main program has disappeared "
11676 "and so kills qemu, which is not very helpful."
11677 msgstr ""
11678
11679 # type: =head2
11680 #: ../src/guestfs-actions.pod:4378
11681 msgid "guestfs_set_selinux"
11682 msgstr ""
11683
11684 # type: verbatim
11685 #: ../src/guestfs-actions.pod:4380
11686 #, no-wrap
11687 msgid ""
11688 " int guestfs_set_selinux (guestfs_h *g,\n"
11689 "\t\tint selinux);\n"
11690 "\n"
11691 msgstr ""
11692
11693 # type: textblock
11694 #: ../src/guestfs-actions.pod:4383 ../fish/guestfish-actions.pod:3389
11695 msgid ""
11696 "This sets the selinux flag that is passed to the appliance at boot time.  "
11697 "The default is C<selinux=0> (disabled)."
11698 msgstr ""
11699
11700 # type: textblock
11701 #: ../src/guestfs-actions.pod:4386 ../fish/guestfish-actions.pod:3392
11702 msgid ""
11703 "Note that if SELinux is enabled, it is always in Permissive mode "
11704 "(C<enforcing=0>)."
11705 msgstr ""
11706
11707 # type: =head2
11708 #: ../src/guestfs-actions.pod:4394
11709 msgid "guestfs_set_trace"
11710 msgstr ""
11711
11712 # type: verbatim
11713 #: ../src/guestfs-actions.pod:4396
11714 #, no-wrap
11715 msgid ""
11716 " int guestfs_set_trace (guestfs_h *g,\n"
11717 "\t\tint trace);\n"
11718 "\n"
11719 msgstr ""
11720
11721 # type: textblock
11722 #: ../src/guestfs-actions.pod:4399 ../fish/guestfish-actions.pod:3402
11723 msgid ""
11724 "If the command trace flag is set to 1, then commands are printed on stderr "
11725 "before they are executed in a format which is very similar to the one used "
11726 "by guestfish.  In other words, you can run a program with this enabled, and "
11727 "you will get out a script which you can feed to guestfish to perform the "
11728 "same set of actions."
11729 msgstr ""
11730
11731 # type: textblock
11732 #: ../src/guestfs-actions.pod:4406 ../fish/guestfish-actions.pod:3409
11733 msgid ""
11734 "If you want to trace C API calls into libguestfs (and other libraries) then "
11735 "possibly a better way is to use the external ltrace(1) command."
11736 msgstr ""
11737
11738 # type: textblock
11739 #: ../src/guestfs-actions.pod:4410 ../fish/guestfish-actions.pod:3413
11740 msgid ""
11741 "Command traces are disabled unless the environment variable "
11742 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
11743 msgstr ""
11744
11745 # type: =head2
11746 #: ../src/guestfs-actions.pod:4415
11747 msgid "guestfs_set_verbose"
11748 msgstr ""
11749
11750 # type: verbatim
11751 #: ../src/guestfs-actions.pod:4417
11752 #, no-wrap
11753 msgid ""
11754 " int guestfs_set_verbose (guestfs_h *g,\n"
11755 "\t\tint verbose);\n"
11756 "\n"
11757 msgstr ""
11758
11759 # type: textblock
11760 #: ../src/guestfs-actions.pod:4420 ../fish/guestfish-actions.pod:3420
11761 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
11762 msgstr ""
11763
11764 # type: textblock
11765 #: ../src/guestfs-actions.pod:4422 ../fish/guestfish-actions.pod:3422
11766 msgid ""
11767 "Verbose messages are disabled unless the environment variable "
11768 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
11769 msgstr ""
11770
11771 # type: =head2
11772 #: ../src/guestfs-actions.pod:4427
11773 msgid "guestfs_setcon"
11774 msgstr ""
11775
11776 # type: verbatim
11777 #: ../src/guestfs-actions.pod:4429
11778 #, no-wrap
11779 msgid ""
11780 " int guestfs_setcon (guestfs_h *g,\n"
11781 "\t\tconst char *context);\n"
11782 "\n"
11783 msgstr ""
11784
11785 # type: textblock
11786 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:3429
11787 msgid ""
11788 "This sets the SELinux security context of the daemon to the string "
11789 "C<context>."
11790 msgstr ""
11791
11792 # type: textblock
11793 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:3432
11794 msgid "See the documentation about SELINUX in L<guestfs(3)>."
11795 msgstr ""
11796
11797 # type: =head2
11798 #: ../src/guestfs-actions.pod:4439
11799 msgid "guestfs_setxattr"
11800 msgstr ""
11801
11802 # type: verbatim
11803 #: ../src/guestfs-actions.pod:4441
11804 #, no-wrap
11805 msgid ""
11806 " int guestfs_setxattr (guestfs_h *g,\n"
11807 "\t\tconst char *xattr,\n"
11808 "\t\tconst char *val,\n"
11809 "\t\tint vallen,\n"
11810 "\t\tconst char *path);\n"
11811 "\n"
11812 msgstr ""
11813
11814 # type: textblock
11815 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:3438
11816 msgid ""
11817 "This call sets the extended attribute named C<xattr> of the file C<path> to "
11818 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
11819 msgstr ""
11820
11821 # type: textblock
11822 #: ../src/guestfs-actions.pod:4451
11823 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
11824 msgstr ""
11825
11826 # type: =head2
11827 #: ../src/guestfs-actions.pod:4455
11828 msgid "guestfs_sfdisk"
11829 msgstr ""
11830
11831 # type: verbatim
11832 #: ../src/guestfs-actions.pod:4457
11833 #, no-wrap
11834 msgid ""
11835 " int guestfs_sfdisk (guestfs_h *g,\n"
11836 "\t\tconst char *device,\n"
11837 "\t\tint cyls,\n"
11838 "\t\tint heads,\n"
11839 "\t\tint sectors,\n"
11840 "\t\tchar *const *lines);\n"
11841 "\n"
11842 msgstr ""
11843
11844 # type: textblock
11845 #: ../src/guestfs-actions.pod:4464 ../fish/guestfish-actions.pod:3448
11846 msgid ""
11847 "This is a direct interface to the L<sfdisk(8)> program for creating "
11848 "partitions on block devices."
11849 msgstr ""
11850
11851 # type: textblock
11852 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:3451
11853 msgid "C<device> should be a block device, for example C</dev/sda>."
11854 msgstr ""
11855
11856 # type: textblock
11857 #: ../src/guestfs-actions.pod:4469 ../fish/guestfish-actions.pod:3453
11858 msgid ""
11859 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
11860 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
11861 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
11862 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
11863 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
11864 "the kernel) cannot work out the right geometry and you will need to tell it."
11865 msgstr ""
11866
11867 # type: textblock
11868 #: ../src/guestfs-actions.pod:4477 ../fish/guestfish-actions.pod:3461
11869 msgid ""
11870 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
11871 "refer to the L<sfdisk(8)> manpage."
11872 msgstr ""
11873
11874 # type: textblock
11875 #: ../src/guestfs-actions.pod:4480 ../fish/guestfish-actions.pod:3464
11876 msgid ""
11877 "To create a single partition occupying the whole disk, you would pass "
11878 "C<lines> as a single element list, when the single element being the string "
11879 "C<,> (comma)."
11880 msgstr ""
11881
11882 # type: textblock
11883 #: ../src/guestfs-actions.pod:4484
11884 msgid ""
11885 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
11886 msgstr ""
11887
11888 # type: =head2
11889 #: ../src/guestfs-actions.pod:4492
11890 msgid "guestfs_sfdiskM"
11891 msgstr ""
11892
11893 # type: verbatim
11894 #: ../src/guestfs-actions.pod:4494
11895 #, no-wrap
11896 msgid ""
11897 " int guestfs_sfdiskM (guestfs_h *g,\n"
11898 "\t\tconst char *device,\n"
11899 "\t\tchar *const *lines);\n"
11900 "\n"
11901 msgstr ""
11902
11903 # type: textblock
11904 #: ../src/guestfs-actions.pod:4498
11905 msgid ""
11906 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
11907 "partition sizes are specified in megabytes only (rounded to the nearest "
11908 "cylinder) and you don't need to specify the cyls, heads and sectors "
11909 "parameters which were rarely if ever used anyway."
11910 msgstr ""
11911
11912 # type: textblock
11913 #: ../src/guestfs-actions.pod:4504
11914 msgid ""
11915 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
11916 "C<guestfs_part_disk>"
11917 msgstr ""
11918
11919 # type: =head2
11920 #: ../src/guestfs-actions.pod:4512
11921 msgid "guestfs_sfdisk_N"
11922 msgstr ""
11923
11924 # type: verbatim
11925 #: ../src/guestfs-actions.pod:4514
11926 #, no-wrap
11927 msgid ""
11928 " int guestfs_sfdisk_N (guestfs_h *g,\n"
11929 "\t\tconst char *device,\n"
11930 "\t\tint partnum,\n"
11931 "\t\tint cyls,\n"
11932 "\t\tint heads,\n"
11933 "\t\tint sectors,\n"
11934 "\t\tconst char *line);\n"
11935 "\n"
11936 msgstr ""
11937
11938 # type: textblock
11939 #: ../src/guestfs-actions.pod:4522 ../fish/guestfish-actions.pod:3494
11940 msgid ""
11941 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
11942 "(note: C<n> counts from 1)."
11943 msgstr ""
11944
11945 # type: textblock
11946 #: ../src/guestfs-actions.pod:4525
11947 msgid ""
11948 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
11949 "for the cyls/heads/sectors parameters."
11950 msgstr ""
11951
11952 # type: textblock
11953 #: ../src/guestfs-actions.pod:4528
11954 msgid "See also: C<guestfs_part_add>"
11955 msgstr ""
11956
11957 # type: =head2
11958 #: ../src/guestfs-actions.pod:4535
11959 msgid "guestfs_sfdisk_disk_geometry"
11960 msgstr ""
11961
11962 # type: verbatim
11963 #: ../src/guestfs-actions.pod:4537
11964 #, no-wrap
11965 msgid ""
11966 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
11967 "\t\tconst char *device);\n"
11968 "\n"
11969 msgstr ""
11970
11971 # type: textblock
11972 #: ../src/guestfs-actions.pod:4540
11973 msgid ""
11974 "This displays the disk geometry of C<device> read from the partition table.  "
11975 "Especially in the case where the underlying block device has been resized, "
11976 "this can be different from the kernel's idea of the geometry (see "
11977 "C<guestfs_sfdisk_kernel_geometry>)."
11978 msgstr ""
11979
11980 # type: textblock
11981 #: ../src/guestfs-actions.pod:4545 ../src/guestfs-actions.pod:4558
11982 #: ../fish/guestfish-actions.pod:3514 ../fish/guestfish-actions.pod:3523
11983 msgid "The result is in human-readable format, and not designed to be parsed."
11984 msgstr ""
11985
11986 # type: =head2
11987 #: ../src/guestfs-actions.pod:4551
11988 msgid "guestfs_sfdisk_kernel_geometry"
11989 msgstr ""
11990
11991 # type: verbatim
11992 #: ../src/guestfs-actions.pod:4553
11993 #, no-wrap
11994 msgid ""
11995 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
11996 "\t\tconst char *device);\n"
11997 "\n"
11998 msgstr ""
11999
12000 # type: textblock
12001 #: ../src/guestfs-actions.pod:4556 ../fish/guestfish-actions.pod:3521
12002 msgid "This displays the kernel's idea of the geometry of C<device>."
12003 msgstr ""
12004
12005 # type: =head2
12006 #: ../src/guestfs-actions.pod:4564
12007 msgid "guestfs_sfdisk_l"
12008 msgstr ""
12009
12010 # type: verbatim
12011 #: ../src/guestfs-actions.pod:4566
12012 #, no-wrap
12013 msgid ""
12014 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
12015 "\t\tconst char *device);\n"
12016 "\n"
12017 msgstr ""
12018
12019 # type: textblock
12020 #: ../src/guestfs-actions.pod:4569 ../fish/guestfish-actions.pod:3530
12021 msgid ""
12022 "This displays the partition table on C<device>, in the human-readable output "
12023 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
12024 msgstr ""
12025
12026 # type: textblock
12027 #: ../src/guestfs-actions.pod:4573
12028 msgid "See also: C<guestfs_part_list>"
12029 msgstr ""
12030
12031 # type: =head2
12032 #: ../src/guestfs-actions.pod:4578
12033 msgid "guestfs_sh"
12034 msgstr ""
12035
12036 # type: verbatim
12037 #: ../src/guestfs-actions.pod:4580
12038 #, no-wrap
12039 msgid ""
12040 " char *guestfs_sh (guestfs_h *g,\n"
12041 "\t\tconst char *command);\n"
12042 "\n"
12043 msgstr ""
12044
12045 # type: textblock
12046 #: ../src/guestfs-actions.pod:4583 ../fish/guestfish-actions.pod:3540
12047 msgid ""
12048 "This call runs a command from the guest filesystem via the guest's C</bin/"
12049 "sh>."
12050 msgstr ""
12051
12052 # type: textblock
12053 #: ../src/guestfs-actions.pod:4586
12054 msgid "This is like C<guestfs_command>, but passes the command to:"
12055 msgstr ""
12056
12057 # type: verbatim
12058 #: ../src/guestfs-actions.pod:4588 ../fish/guestfish-actions.pod:3545
12059 #, no-wrap
12060 msgid ""
12061 " /bin/sh -c \"command\"\n"
12062 "\n"
12063 msgstr ""
12064
12065 # type: textblock
12066 #: ../src/guestfs-actions.pod:4590 ../fish/guestfish-actions.pod:3547
12067 msgid ""
12068 "Depending on the guest's shell, this usually results in wildcards being "
12069 "expanded, shell expressions being interpolated and so on."
12070 msgstr ""
12071
12072 # type: textblock
12073 #: ../src/guestfs-actions.pod:4594
12074 msgid "All the provisos about C<guestfs_command> apply to this call."
12075 msgstr ""
12076
12077 # type: =head2
12078 #: ../src/guestfs-actions.pod:4599
12079 msgid "guestfs_sh_lines"
12080 msgstr ""
12081
12082 # type: verbatim
12083 #: ../src/guestfs-actions.pod:4601
12084 #, no-wrap
12085 msgid ""
12086 " char **guestfs_sh_lines (guestfs_h *g,\n"
12087 "\t\tconst char *command);\n"
12088 "\n"
12089 msgstr ""
12090
12091 # type: textblock
12092 #: ../src/guestfs-actions.pod:4604
12093 msgid ""
12094 "This is the same as C<guestfs_sh>, but splits the result into a list of "
12095 "lines."
12096 msgstr ""
12097
12098 # type: textblock
12099 #: ../src/guestfs-actions.pod:4607
12100 msgid "See also: C<guestfs_command_lines>"
12101 msgstr ""
12102
12103 # type: =head2
12104 #: ../src/guestfs-actions.pod:4613
12105 msgid "guestfs_sleep"
12106 msgstr ""
12107
12108 # type: verbatim
12109 #: ../src/guestfs-actions.pod:4615
12110 #, no-wrap
12111 msgid ""
12112 " int guestfs_sleep (guestfs_h *g,\n"
12113 "\t\tint secs);\n"
12114 "\n"
12115 msgstr ""
12116
12117 # type: textblock
12118 #: ../src/guestfs-actions.pod:4618 ../fish/guestfish-actions.pod:3566
12119 msgid "Sleep for C<secs> seconds."
12120 msgstr ""
12121
12122 # type: =head2
12123 #: ../src/guestfs-actions.pod:4622 ../src/guestfs-structs.pod:109
12124 msgid "guestfs_stat"
12125 msgstr ""
12126
12127 # type: verbatim
12128 #: ../src/guestfs-actions.pod:4624
12129 #, no-wrap
12130 msgid ""
12131 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
12132 "\t\tconst char *path);\n"
12133 "\n"
12134 msgstr ""
12135
12136 # type: textblock
12137 #: ../src/guestfs-actions.pod:4629 ../fish/guestfish-actions.pod:3574
12138 msgid "This is the same as the C<stat(2)> system call."
12139 msgstr ""
12140
12141 # type: =head2
12142 #: ../src/guestfs-actions.pod:4635 ../src/guestfs-structs.pod:135
12143 msgid "guestfs_statvfs"
12144 msgstr ""
12145
12146 # type: verbatim
12147 #: ../src/guestfs-actions.pod:4637
12148 #, no-wrap
12149 msgid ""
12150 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
12151 "\t\tconst char *path);\n"
12152 "\n"
12153 msgstr ""
12154
12155 # type: textblock
12156 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3580
12157 msgid ""
12158 "Returns file system statistics for any mounted file system.  C<path> should "
12159 "be a file or directory in the mounted file system (typically it is the mount "
12160 "point itself, but it doesn't need to be)."
12161 msgstr ""
12162
12163 # type: textblock
12164 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3584
12165 msgid "This is the same as the C<statvfs(2)> system call."
12166 msgstr ""
12167
12168 # type: textblock
12169 #: ../src/guestfs-actions.pod:4646
12170 msgid ""
12171 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12172 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12173 msgstr ""
12174
12175 # type: =head2
12176 #: ../src/guestfs-actions.pod:4650
12177 msgid "guestfs_strings"
12178 msgstr ""
12179
12180 # type: verbatim
12181 #: ../src/guestfs-actions.pod:4652
12182 #, no-wrap
12183 msgid ""
12184 " char **guestfs_strings (guestfs_h *g,\n"
12185 "\t\tconst char *path);\n"
12186 "\n"
12187 msgstr ""
12188
12189 # type: textblock
12190 #: ../src/guestfs-actions.pod:4655 ../fish/guestfish-actions.pod:3590
12191 msgid ""
12192 "This runs the L<strings(1)> command on a file and returns the list of "
12193 "printable strings found."
12194 msgstr ""
12195
12196 # type: =head2
12197 #: ../src/guestfs-actions.pod:4665
12198 msgid "guestfs_strings_e"
12199 msgstr ""
12200
12201 # type: verbatim
12202 #: ../src/guestfs-actions.pod:4667
12203 #, no-wrap
12204 msgid ""
12205 " char **guestfs_strings_e (guestfs_h *g,\n"
12206 "\t\tconst char *encoding,\n"
12207 "\t\tconst char *path);\n"
12208 "\n"
12209 msgstr ""
12210
12211 # type: textblock
12212 #: ../src/guestfs-actions.pod:4671
12213 msgid ""
12214 "This is like the C<guestfs_strings> command, but allows you to specify the "
12215 "encoding of strings that are looked for in the source file C<path>."
12216 msgstr ""
12217
12218 # type: textblock
12219 #: ../src/guestfs-actions.pod:4675 ../fish/guestfish-actions.pod:3604
12220 msgid "Allowed encodings are:"
12221 msgstr ""
12222
12223 # type: =item
12224 #: ../src/guestfs-actions.pod:4679 ../fish/guestfish-actions.pod:3608
12225 msgid "s"
12226 msgstr ""
12227
12228 # type: textblock
12229 #: ../src/guestfs-actions.pod:4681
12230 msgid ""
12231 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12232 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12233 msgstr ""
12234
12235 # type: =item
12236 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3613
12237 msgid "S"
12238 msgstr ""
12239
12240 # type: textblock
12241 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3615
12242 msgid "Single 8-bit-byte characters."
12243 msgstr ""
12244
12245 # type: =item
12246 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3617
12247 msgid "b"
12248 msgstr ""
12249
12250 # type: textblock
12251 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3619
12252 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12253 msgstr ""
12254
12255 # type: =item
12256 #: ../src/guestfs-actions.pod:4693 ../fish/guestfish-actions.pod:3622
12257 msgid "l (lower case letter L)"
12258 msgstr ""
12259
12260 # type: textblock
12261 #: ../src/guestfs-actions.pod:4695 ../fish/guestfish-actions.pod:3624
12262 msgid ""
12263 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12264 "examining binaries in Windows guests."
12265 msgstr ""
12266
12267 # type: =item
12268 #: ../src/guestfs-actions.pod:4698 ../fish/guestfish-actions.pod:3627
12269 msgid "B"
12270 msgstr ""
12271
12272 # type: textblock
12273 #: ../src/guestfs-actions.pod:4700 ../fish/guestfish-actions.pod:3629
12274 msgid "32-bit big endian such as UCS-4BE."
12275 msgstr ""
12276
12277 # type: =item
12278 #: ../src/guestfs-actions.pod:4702 ../fish/guestfish-actions.pod:3631
12279 msgid "L"
12280 msgstr ""
12281
12282 # type: textblock
12283 #: ../src/guestfs-actions.pod:4704 ../fish/guestfish-actions.pod:3633
12284 msgid "32-bit little endian such as UCS-4LE."
12285 msgstr ""
12286
12287 # type: textblock
12288 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3637
12289 msgid "The returned strings are transcoded to UTF-8."
12290 msgstr ""
12291
12292 # type: =head2
12293 #: ../src/guestfs-actions.pod:4717
12294 msgid "guestfs_swapoff_device"
12295 msgstr ""
12296
12297 # type: verbatim
12298 #: ../src/guestfs-actions.pod:4719
12299 #, no-wrap
12300 msgid ""
12301 " int guestfs_swapoff_device (guestfs_h *g,\n"
12302 "\t\tconst char *device);\n"
12303 "\n"
12304 msgstr ""
12305
12306 # type: textblock
12307 #: ../src/guestfs-actions.pod:4722
12308 msgid ""
12309 "This command disables the libguestfs appliance swap device or partition "
12310 "named C<device>.  See C<guestfs_swapon_device>."
12311 msgstr ""
12312
12313 # type: =head2
12314 #: ../src/guestfs-actions.pod:4728
12315 msgid "guestfs_swapoff_file"
12316 msgstr ""
12317
12318 # type: verbatim
12319 #: ../src/guestfs-actions.pod:4730
12320 #, no-wrap
12321 msgid ""
12322 " int guestfs_swapoff_file (guestfs_h *g,\n"
12323 "\t\tconst char *file);\n"
12324 "\n"
12325 msgstr ""
12326
12327 # type: textblock
12328 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3654
12329 msgid "This command disables the libguestfs appliance swap on file."
12330 msgstr ""
12331
12332 # type: =head2
12333 #: ../src/guestfs-actions.pod:4737
12334 msgid "guestfs_swapoff_label"
12335 msgstr ""
12336
12337 # type: verbatim
12338 #: ../src/guestfs-actions.pod:4739
12339 #, no-wrap
12340 msgid ""
12341 " int guestfs_swapoff_label (guestfs_h *g,\n"
12342 "\t\tconst char *label);\n"
12343 "\n"
12344 msgstr ""
12345
12346 # type: textblock
12347 #: ../src/guestfs-actions.pod:4742 ../fish/guestfish-actions.pod:3660
12348 msgid ""
12349 "This command disables the libguestfs appliance swap on labeled swap "
12350 "partition."
12351 msgstr ""
12352
12353 # type: =head2
12354 #: ../src/guestfs-actions.pod:4747
12355 msgid "guestfs_swapoff_uuid"
12356 msgstr ""
12357
12358 # type: verbatim
12359 #: ../src/guestfs-actions.pod:4749
12360 #, no-wrap
12361 msgid ""
12362 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
12363 "\t\tconst char *uuid);\n"
12364 "\n"
12365 msgstr ""
12366
12367 # type: textblock
12368 #: ../src/guestfs-actions.pod:4752 ../fish/guestfish-actions.pod:3667
12369 msgid ""
12370 "This command disables the libguestfs appliance swap partition with the given "
12371 "UUID."
12372 msgstr ""
12373
12374 # type: =head2
12375 #: ../src/guestfs-actions.pod:4757
12376 msgid "guestfs_swapon_device"
12377 msgstr ""
12378
12379 # type: verbatim
12380 #: ../src/guestfs-actions.pod:4759
12381 #, no-wrap
12382 msgid ""
12383 " int guestfs_swapon_device (guestfs_h *g,\n"
12384 "\t\tconst char *device);\n"
12385 "\n"
12386 msgstr ""
12387
12388 # type: textblock
12389 #: ../src/guestfs-actions.pod:4762
12390 msgid ""
12391 "This command enables the libguestfs appliance to use the swap device or "
12392 "partition named C<device>.  The increased memory is made available for all "
12393 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
12394 msgstr ""
12395
12396 # type: textblock
12397 #: ../src/guestfs-actions.pod:4767 ../fish/guestfish-actions.pod:3679
12398 msgid ""
12399 "Note that you should not swap to existing guest swap partitions unless you "
12400 "know what you are doing.  They may contain hibernation information, or other "
12401 "information that the guest doesn't want you to trash.  You also risk leaking "
12402 "information about the host to the guest this way.  Instead, attach a new "
12403 "host device to the guest and swap on that."
12404 msgstr ""
12405
12406 # type: =head2
12407 #: ../src/guestfs-actions.pod:4776
12408 msgid "guestfs_swapon_file"
12409 msgstr ""
12410
12411 # type: verbatim
12412 #: ../src/guestfs-actions.pod:4778
12413 #, no-wrap
12414 msgid ""
12415 " int guestfs_swapon_file (guestfs_h *g,\n"
12416 "\t\tconst char *file);\n"
12417 "\n"
12418 msgstr ""
12419
12420 # type: textblock
12421 #: ../src/guestfs-actions.pod:4781
12422 msgid ""
12423 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
12424 "notes."
12425 msgstr ""
12426
12427 # type: =head2
12428 #: ../src/guestfs-actions.pod:4786
12429 msgid "guestfs_swapon_label"
12430 msgstr ""
12431
12432 # type: verbatim
12433 #: ../src/guestfs-actions.pod:4788
12434 #, no-wrap
12435 msgid ""
12436 " int guestfs_swapon_label (guestfs_h *g,\n"
12437 "\t\tconst char *label);\n"
12438 "\n"
12439 msgstr ""
12440
12441 # type: textblock
12442 #: ../src/guestfs-actions.pod:4791
12443 msgid ""
12444 "This command enables swap to a labeled swap partition.  See "
12445 "C<guestfs_swapon_device> for other notes."
12446 msgstr ""
12447
12448 # type: =head2
12449 #: ../src/guestfs-actions.pod:4796
12450 msgid "guestfs_swapon_uuid"
12451 msgstr ""
12452
12453 # type: verbatim
12454 #: ../src/guestfs-actions.pod:4798
12455 #, no-wrap
12456 msgid ""
12457 " int guestfs_swapon_uuid (guestfs_h *g,\n"
12458 "\t\tconst char *uuid);\n"
12459 "\n"
12460 msgstr ""
12461
12462 # type: textblock
12463 #: ../src/guestfs-actions.pod:4801
12464 msgid ""
12465 "This command enables swap to a swap partition with the given UUID.  See "
12466 "C<guestfs_swapon_device> for other notes."
12467 msgstr ""
12468
12469 # type: =head2
12470 #: ../src/guestfs-actions.pod:4806
12471 msgid "guestfs_sync"
12472 msgstr ""
12473
12474 # type: verbatim
12475 #: ../src/guestfs-actions.pod:4808
12476 #, no-wrap
12477 msgid ""
12478 " int guestfs_sync (guestfs_h *g);\n"
12479 "\n"
12480 msgstr ""
12481
12482 # type: textblock
12483 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3711
12484 msgid ""
12485 "This syncs the disk, so that any writes are flushed through to the "
12486 "underlying disk image."
12487 msgstr ""
12488
12489 # type: textblock
12490 #: ../src/guestfs-actions.pod:4813 ../fish/guestfish-actions.pod:3714
12491 msgid ""
12492 "You should always call this if you have modified a disk image, before "
12493 "closing the handle."
12494 msgstr ""
12495
12496 # type: =head2
12497 #: ../src/guestfs-actions.pod:4818
12498 msgid "guestfs_tail"
12499 msgstr ""
12500
12501 # type: verbatim
12502 #: ../src/guestfs-actions.pod:4820
12503 #, no-wrap
12504 msgid ""
12505 " char **guestfs_tail (guestfs_h *g,\n"
12506 "\t\tconst char *path);\n"
12507 "\n"
12508 msgstr ""
12509
12510 # type: textblock
12511 #: ../src/guestfs-actions.pod:4823 ../fish/guestfish-actions.pod:3721
12512 msgid ""
12513 "This command returns up to the last 10 lines of a file as a list of strings."
12514 msgstr ""
12515
12516 # type: =head2
12517 #: ../src/guestfs-actions.pod:4833
12518 msgid "guestfs_tail_n"
12519 msgstr ""
12520
12521 # type: verbatim
12522 #: ../src/guestfs-actions.pod:4835
12523 #, no-wrap
12524 msgid ""
12525 " char **guestfs_tail_n (guestfs_h *g,\n"
12526 "\t\tint nrlines,\n"
12527 "\t\tconst char *path);\n"
12528 "\n"
12529 msgstr ""
12530
12531 # type: textblock
12532 #: ../src/guestfs-actions.pod:4839 ../fish/guestfish-actions.pod:3731
12533 msgid ""
12534 "If the parameter C<nrlines> is a positive number, this returns the last "
12535 "C<nrlines> lines of the file C<path>."
12536 msgstr ""
12537
12538 # type: textblock
12539 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3734
12540 msgid ""
12541 "If the parameter C<nrlines> is a negative number, this returns lines from "
12542 "the file C<path>, starting with the C<-nrlines>th line."
12543 msgstr ""
12544
12545 # type: =head2
12546 #: ../src/guestfs-actions.pod:4854
12547 msgid "guestfs_tar_in"
12548 msgstr ""
12549
12550 # type: verbatim
12551 #: ../src/guestfs-actions.pod:4856
12552 #, no-wrap
12553 msgid ""
12554 " int guestfs_tar_in (guestfs_h *g,\n"
12555 "\t\tconst char *tarfile,\n"
12556 "\t\tconst char *directory);\n"
12557 "\n"
12558 msgstr ""
12559
12560 # type: textblock
12561 #: ../src/guestfs-actions.pod:4860 ../fish/guestfish-actions.pod:3746
12562 msgid ""
12563 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
12564 "tar file) into C<directory>."
12565 msgstr ""
12566
12567 # type: textblock
12568 #: ../src/guestfs-actions.pod:4863
12569 msgid ""
12570 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
12571 msgstr ""
12572
12573 # type: =head2
12574 #: ../src/guestfs-actions.pod:4868
12575 msgid "guestfs_tar_out"
12576 msgstr ""
12577
12578 # type: verbatim
12579 #: ../src/guestfs-actions.pod:4870
12580 #, no-wrap
12581 msgid ""
12582 " int guestfs_tar_out (guestfs_h *g,\n"
12583 "\t\tconst char *directory,\n"
12584 "\t\tconst char *tarfile);\n"
12585 "\n"
12586 msgstr ""
12587
12588 # type: textblock
12589 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3758
12590 msgid ""
12591 "This command packs the contents of C<directory> and downloads it to local "
12592 "file C<tarfile>."
12593 msgstr ""
12594
12595 # type: textblock
12596 #: ../src/guestfs-actions.pod:4877
12597 msgid ""
12598 "To download a compressed tarball, use C<guestfs_tgz_out> or "
12599 "C<guestfs_txz_out>."
12600 msgstr ""
12601
12602 # type: =head2
12603 #: ../src/guestfs-actions.pod:4882
12604 msgid "guestfs_tgz_in"
12605 msgstr ""
12606
12607 # type: verbatim
12608 #: ../src/guestfs-actions.pod:4884
12609 #, no-wrap
12610 msgid ""
12611 " int guestfs_tgz_in (guestfs_h *g,\n"
12612 "\t\tconst char *tarball,\n"
12613 "\t\tconst char *directory);\n"
12614 "\n"
12615 msgstr ""
12616
12617 # type: textblock
12618 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3770
12619 msgid ""
12620 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
12621 "tar file) into C<directory>."
12622 msgstr ""
12623
12624 # type: textblock
12625 #: ../src/guestfs-actions.pod:4891
12626 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
12627 msgstr ""
12628
12629 # type: =head2
12630 #: ../src/guestfs-actions.pod:4895
12631 msgid "guestfs_tgz_out"
12632 msgstr ""
12633
12634 # type: verbatim
12635 #: ../src/guestfs-actions.pod:4897
12636 #, no-wrap
12637 msgid ""
12638 " int guestfs_tgz_out (guestfs_h *g,\n"
12639 "\t\tconst char *directory,\n"
12640 "\t\tconst char *tarball);\n"
12641 "\n"
12642 msgstr ""
12643
12644 # type: textblock
12645 #: ../src/guestfs-actions.pod:4901 ../fish/guestfish-actions.pod:3781
12646 msgid ""
12647 "This command packs the contents of C<directory> and downloads it to local "
12648 "file C<tarball>."
12649 msgstr ""
12650
12651 # type: textblock
12652 #: ../src/guestfs-actions.pod:4904
12653 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
12654 msgstr ""
12655
12656 # type: =head2
12657 #: ../src/guestfs-actions.pod:4908
12658 msgid "guestfs_touch"
12659 msgstr ""
12660
12661 # type: verbatim
12662 #: ../src/guestfs-actions.pod:4910
12663 #, no-wrap
12664 msgid ""
12665 " int guestfs_touch (guestfs_h *g,\n"
12666 "\t\tconst char *path);\n"
12667 "\n"
12668 msgstr ""
12669
12670 # type: textblock
12671 #: ../src/guestfs-actions.pod:4913 ../fish/guestfish-actions.pod:3792
12672 msgid ""
12673 "Touch acts like the L<touch(1)> command.  It can be used to update the "
12674 "timestamps on a file, or, if the file does not exist, to create a new zero-"
12675 "length file."
12676 msgstr ""
12677
12678 # type: textblock
12679 #: ../src/guestfs-actions.pod:4917 ../fish/guestfish-actions.pod:3796
12680 msgid ""
12681 "This command only works on regular files, and will fail on other file types "
12682 "such as directories, symbolic links, block special etc."
12683 msgstr ""
12684
12685 # type: =head2
12686 #: ../src/guestfs-actions.pod:4922
12687 msgid "guestfs_truncate"
12688 msgstr ""
12689
12690 # type: verbatim
12691 #: ../src/guestfs-actions.pod:4924
12692 #, no-wrap
12693 msgid ""
12694 " int guestfs_truncate (guestfs_h *g,\n"
12695 "\t\tconst char *path);\n"
12696 "\n"
12697 msgstr ""
12698
12699 # type: textblock
12700 #: ../src/guestfs-actions.pod:4927 ../fish/guestfish-actions.pod:3803
12701 msgid ""
12702 "This command truncates C<path> to a zero-length file.  The file must exist "
12703 "already."
12704 msgstr ""
12705
12706 # type: =head2
12707 #: ../src/guestfs-actions.pod:4932
12708 msgid "guestfs_truncate_size"
12709 msgstr ""
12710
12711 # type: verbatim
12712 #: ../src/guestfs-actions.pod:4934
12713 #, no-wrap
12714 msgid ""
12715 " int guestfs_truncate_size (guestfs_h *g,\n"
12716 "\t\tconst char *path,\n"
12717 "\t\tint64_t size);\n"
12718 "\n"
12719 msgstr ""
12720
12721 # type: textblock
12722 #: ../src/guestfs-actions.pod:4938 ../fish/guestfish-actions.pod:3810
12723 msgid ""
12724 "This command truncates C<path> to size C<size> bytes.  The file must exist "
12725 "already."
12726 msgstr ""
12727
12728 # type: textblock
12729 #: ../src/guestfs-actions.pod:4941
12730 msgid ""
12731 "If the current file size is less than C<size> then the file is extended to "
12732 "the required size with zero bytes.  This creates a sparse file (ie. disk "
12733 "blocks are not allocated for the file until you write to it).  To create a "
12734 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
12735 msgstr ""
12736
12737 # type: =head2
12738 #: ../src/guestfs-actions.pod:4949
12739 msgid "guestfs_tune2fs_l"
12740 msgstr ""
12741
12742 # type: verbatim
12743 #: ../src/guestfs-actions.pod:4951
12744 #, no-wrap
12745 msgid ""
12746 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
12747 "\t\tconst char *device);\n"
12748 "\n"
12749 msgstr ""
12750
12751 # type: textblock
12752 #: ../src/guestfs-actions.pod:4954 ../fish/guestfish-actions.pod:3823
12753 msgid ""
12754 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
12755 "C<device>."
12756 msgstr ""
12757
12758 # type: textblock
12759 #: ../src/guestfs-actions.pod:4957 ../fish/guestfish-actions.pod:3826
12760 msgid ""
12761 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
12762 "for more details.  The list of fields returned isn't clearly defined, and "
12763 "depends on both the version of C<tune2fs> that libguestfs was built against, "
12764 "and the filesystem itself."
12765 msgstr ""
12766
12767 # type: =head2
12768 #: ../src/guestfs-actions.pod:4968
12769 msgid "guestfs_txz_in"
12770 msgstr ""
12771
12772 # type: verbatim
12773 #: ../src/guestfs-actions.pod:4970
12774 #, no-wrap
12775 msgid ""
12776 " int guestfs_txz_in (guestfs_h *g,\n"
12777 "\t\tconst char *tarball,\n"
12778 "\t\tconst char *directory);\n"
12779 "\n"
12780 msgstr ""
12781
12782 # type: textblock
12783 #: ../src/guestfs-actions.pod:4974 ../fish/guestfish-actions.pod:3835
12784 msgid ""
12785 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
12786 "tar file) into C<directory>."
12787 msgstr ""
12788
12789 # type: =head2
12790 #: ../src/guestfs-actions.pod:4979
12791 msgid "guestfs_txz_out"
12792 msgstr ""
12793
12794 # type: verbatim
12795 #: ../src/guestfs-actions.pod:4981
12796 #, no-wrap
12797 msgid ""
12798 " int guestfs_txz_out (guestfs_h *g,\n"
12799 "\t\tconst char *directory,\n"
12800 "\t\tconst char *tarball);\n"
12801 "\n"
12802 msgstr ""
12803
12804 # type: textblock
12805 #: ../src/guestfs-actions.pod:4985 ../fish/guestfish-actions.pod:3844
12806 msgid ""
12807 "This command packs the contents of C<directory> and downloads it to local "
12808 "file C<tarball> (as an xz compressed tar archive)."
12809 msgstr ""
12810
12811 # type: =head2
12812 #: ../src/guestfs-actions.pod:4990
12813 msgid "guestfs_umask"
12814 msgstr ""
12815
12816 # type: verbatim
12817 #: ../src/guestfs-actions.pod:4992
12818 #, no-wrap
12819 msgid ""
12820 " int guestfs_umask (guestfs_h *g,\n"
12821 "\t\tint mask);\n"
12822 "\n"
12823 msgstr ""
12824
12825 # type: textblock
12826 #: ../src/guestfs-actions.pod:4995 ../fish/guestfish-actions.pod:3853
12827 msgid ""
12828 "This function sets the mask used for creating new files and device nodes to "
12829 "C<mask & 0777>."
12830 msgstr ""
12831
12832 # type: textblock
12833 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3856
12834 msgid ""
12835 "Typical umask values would be C<022> which creates new files with "
12836 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
12837 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
12838 msgstr ""
12839
12840 # type: textblock
12841 #: ../src/guestfs-actions.pod:5003 ../fish/guestfish-actions.pod:3861
12842 msgid ""
12843 "The default umask is C<022>.  This is important because it means that "
12844 "directories and device nodes will be created with C<0644> or C<0755> mode "
12845 "even if you specify C<0777>."
12846 msgstr ""
12847
12848 # type: textblock
12849 #: ../src/guestfs-actions.pod:5007
12850 msgid ""
12851 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
12852 "C<guestfs_mkdir>."
12853 msgstr ""
12854
12855 # type: textblock
12856 #: ../src/guestfs-actions.pod:5010 ../fish/guestfish-actions.pod:3868
12857 msgid "This call returns the previous umask."
12858 msgstr ""
12859
12860 # type: =head2
12861 #: ../src/guestfs-actions.pod:5014
12862 msgid "guestfs_umount"
12863 msgstr ""
12864
12865 # type: verbatim
12866 #: ../src/guestfs-actions.pod:5016
12867 #, no-wrap
12868 msgid ""
12869 " int guestfs_umount (guestfs_h *g,\n"
12870 "\t\tconst char *pathordevice);\n"
12871 "\n"
12872 msgstr ""
12873
12874 # type: textblock
12875 #: ../src/guestfs-actions.pod:5019 ../fish/guestfish-actions.pod:3874
12876 msgid ""
12877 "This unmounts the given filesystem.  The filesystem may be specified either "
12878 "by its mountpoint (path) or the device which contains the filesystem."
12879 msgstr ""
12880
12881 # type: =head2
12882 #: ../src/guestfs-actions.pod:5025
12883 msgid "guestfs_umount_all"
12884 msgstr ""
12885
12886 # type: verbatim
12887 #: ../src/guestfs-actions.pod:5027
12888 #, no-wrap
12889 msgid ""
12890 " int guestfs_umount_all (guestfs_h *g);\n"
12891 "\n"
12892 msgstr ""
12893
12894 # type: textblock
12895 #: ../src/guestfs-actions.pod:5029 ../fish/guestfish-actions.pod:3882
12896 msgid "This unmounts all mounted filesystems."
12897 msgstr ""
12898
12899 # type: textblock
12900 #: ../src/guestfs-actions.pod:5031 ../fish/guestfish-actions.pod:3884
12901 msgid "Some internal mounts are not unmounted by this call."
12902 msgstr ""
12903
12904 # type: =head2
12905 #: ../src/guestfs-actions.pod:5035
12906 msgid "guestfs_upload"
12907 msgstr ""
12908
12909 # type: verbatim
12910 #: ../src/guestfs-actions.pod:5037
12911 #, no-wrap
12912 msgid ""
12913 " int guestfs_upload (guestfs_h *g,\n"
12914 "\t\tconst char *filename,\n"
12915 "\t\tconst char *remotefilename);\n"
12916 "\n"
12917 msgstr ""
12918
12919 # type: textblock
12920 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3890
12921 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
12922 msgstr ""
12923
12924 # type: textblock
12925 #: ../src/guestfs-actions.pod:5046
12926 msgid "See also C<guestfs_download>."
12927 msgstr ""
12928
12929 # type: =head2
12930 #: ../src/guestfs-actions.pod:5050
12931 msgid "guestfs_utimens"
12932 msgstr ""
12933
12934 # type: verbatim
12935 #: ../src/guestfs-actions.pod:5052
12936 #, no-wrap
12937 msgid ""
12938 " int guestfs_utimens (guestfs_h *g,\n"
12939 "\t\tconst char *path,\n"
12940 "\t\tint64_t atsecs,\n"
12941 "\t\tint64_t atnsecs,\n"
12942 "\t\tint64_t mtsecs,\n"
12943 "\t\tint64_t mtnsecs);\n"
12944 "\n"
12945 msgstr ""
12946
12947 # type: textblock
12948 #: ../src/guestfs-actions.pod:5059 ../fish/guestfish-actions.pod:3903
12949 msgid "This command sets the timestamps of a file with nanosecond precision."
12950 msgstr ""
12951
12952 # type: textblock
12953 #: ../src/guestfs-actions.pod:5062 ../fish/guestfish-actions.pod:3906
12954 msgid ""
12955 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
12956 "from the epoch."
12957 msgstr ""
12958
12959 # type: textblock
12960 #: ../src/guestfs-actions.pod:5065 ../fish/guestfish-actions.pod:3909
12961 msgid ""
12962 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
12963 "nanoseconds from the epoch."
12964 msgstr ""
12965
12966 # type: textblock
12967 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3912
12968 msgid ""
12969 "If the C<*nsecs> field contains the special value C<-1> then the "
12970 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
12971 "ignored in this case)."
12972 msgstr ""
12973
12974 # type: textblock
12975 #: ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:3916
12976 msgid ""
12977 "If the C<*nsecs> field contains the special value C<-2> then the "
12978 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
12979 "in this case)."
12980 msgstr ""
12981
12982 # type: =head2
12983 #: ../src/guestfs-actions.pod:5078 ../src/guestfs-structs.pod:175
12984 msgid "guestfs_version"
12985 msgstr ""
12986
12987 # type: verbatim
12988 #: ../src/guestfs-actions.pod:5080
12989 #, no-wrap
12990 msgid ""
12991 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
12992 "\n"
12993 msgstr ""
12994
12995 # type: textblock
12996 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3924
12997 msgid ""
12998 "Return the libguestfs version number that the program is linked against."
12999 msgstr ""
13000
13001 # type: textblock
13002 #: ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3927
13003 msgid ""
13004 "Note that because of dynamic linking this is not necessarily the version of "
13005 "libguestfs that you compiled against.  You can compile the program, and then "
13006 "at runtime dynamically link against a completely different C<libguestfs.so> "
13007 "library."
13008 msgstr ""
13009
13010 # type: textblock
13011 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3932
13012 msgid ""
13013 "This call was added in version C<1.0.58>.  In previous versions of "
13014 "libguestfs there was no way to get the version number.  From C code you can "
13015 "use dynamic linker functions to find out if this symbol exists (if it "
13016 "doesn't, then it's an earlier version)."
13017 msgstr ""
13018
13019 # type: textblock
13020 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3938
13021 msgid ""
13022 "The call returns a structure with four elements.  The first three (C<major>, "
13023 "C<minor> and C<release>) are numbers and correspond to the usual version "
13024 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
13025 "but may be used for distro-specific information."
13026 msgstr ""
13027
13028 # type: textblock
13029 #: ../src/guestfs-actions.pod:5102 ../fish/guestfish-actions.pod:3944
13030 msgid ""
13031 "To construct the original version string: C<$major.$minor.$release$extra>"
13032 msgstr ""
13033
13034 # type: textblock
13035 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3947
13036 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
13037 msgstr ""
13038
13039 # type: textblock
13040 #: ../src/guestfs-actions.pod:5107
13041 msgid ""
13042 "I<Note:> Don't use this call to test for availability of features.  In "
13043 "enterprise distributions we backport features from later versions into "
13044 "earlier versions, making this an unreliable way to test for features.  Use "
13045 "C<guestfs_available> instead."
13046 msgstr ""
13047
13048 # type: textblock
13049 #: ../src/guestfs-actions.pod:5113
13050 msgid ""
13051 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
13052 "error.  I<The caller must call C<guestfs_free_version> after use>."
13053 msgstr ""
13054
13055 # type: =head2
13056 #: ../src/guestfs-actions.pod:5117
13057 msgid "guestfs_vfs_label"
13058 msgstr ""
13059
13060 # type: verbatim
13061 #: ../src/guestfs-actions.pod:5119
13062 #, no-wrap
13063 msgid ""
13064 " char *guestfs_vfs_label (guestfs_h *g,\n"
13065 "\t\tconst char *device);\n"
13066 "\n"
13067 msgstr ""
13068
13069 # type: textblock
13070 #: ../src/guestfs-actions.pod:5122 ../fish/guestfish-actions.pod:3959
13071 msgid "This returns the filesystem label of the filesystem on C<device>."
13072 msgstr ""
13073
13074 # type: textblock
13075 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3962
13076 msgid "If the filesystem is unlabeled, this returns the empty string."
13077 msgstr ""
13078
13079 # type: textblock
13080 #: ../src/guestfs-actions.pod:5127
13081 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
13082 msgstr ""
13083
13084 # type: =head2
13085 #: ../src/guestfs-actions.pod:5132
13086 msgid "guestfs_vfs_type"
13087 msgstr ""
13088
13089 # type: verbatim
13090 #: ../src/guestfs-actions.pod:5134
13091 #, no-wrap
13092 msgid ""
13093 " char *guestfs_vfs_type (guestfs_h *g,\n"
13094 "\t\tconst char *device);\n"
13095 "\n"
13096 msgstr ""
13097
13098 # type: textblock
13099 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3970
13100 msgid ""
13101 "This command gets the filesystem type corresponding to the filesystem on "
13102 "C<device>."
13103 msgstr ""
13104
13105 # type: textblock
13106 #: ../src/guestfs-actions.pod:5140 ../fish/guestfish-actions.pod:3973
13107 msgid ""
13108 "For most filesystems, the result is the name of the Linux VFS module which "
13109 "would be used to mount this filesystem if you mounted it without specifying "
13110 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13111 msgstr ""
13112
13113 # type: =head2
13114 #: ../src/guestfs-actions.pod:5148
13115 msgid "guestfs_vfs_uuid"
13116 msgstr ""
13117
13118 # type: verbatim
13119 #: ../src/guestfs-actions.pod:5150
13120 #, no-wrap
13121 msgid ""
13122 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
13123 "\t\tconst char *device);\n"
13124 "\n"
13125 msgstr ""
13126
13127 # type: textblock
13128 #: ../src/guestfs-actions.pod:5153 ../fish/guestfish-actions.pod:3982
13129 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13130 msgstr ""
13131
13132 # type: textblock
13133 #: ../src/guestfs-actions.pod:5156 ../fish/guestfish-actions.pod:3985
13134 msgid "If the filesystem does not have a UUID, this returns the empty string."
13135 msgstr ""
13136
13137 # type: textblock
13138 #: ../src/guestfs-actions.pod:5158
13139 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13140 msgstr ""
13141
13142 # type: =head2
13143 #: ../src/guestfs-actions.pod:5163
13144 msgid "guestfs_vg_activate"
13145 msgstr ""
13146
13147 # type: verbatim
13148 #: ../src/guestfs-actions.pod:5165
13149 #, no-wrap
13150 msgid ""
13151 " int guestfs_vg_activate (guestfs_h *g,\n"
13152 "\t\tint activate,\n"
13153 "\t\tchar *const *volgroups);\n"
13154 "\n"
13155 msgstr ""
13156
13157 # type: textblock
13158 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:3993
13159 msgid ""
13160 "This command activates or (if C<activate> is false) deactivates all logical "
13161 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13162 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13163 "deactivated, then those devices disappear."
13164 msgstr ""
13165
13166 # type: textblock
13167 #: ../src/guestfs-actions.pod:5175 ../fish/guestfish-actions.pod:3999
13168 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13169 msgstr ""
13170
13171 # type: textblock
13172 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:4001
13173 msgid ""
13174 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13175 "activated or deactivated."
13176 msgstr ""
13177
13178 # type: =head2
13179 #: ../src/guestfs-actions.pod:5182
13180 msgid "guestfs_vg_activate_all"
13181 msgstr ""
13182
13183 # type: verbatim
13184 #: ../src/guestfs-actions.pod:5184
13185 #, no-wrap
13186 msgid ""
13187 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13188 "\t\tint activate);\n"
13189 "\n"
13190 msgstr ""
13191
13192 # type: textblock
13193 #: ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:4008
13194 msgid ""
13195 "This command activates or (if C<activate> is false) deactivates all logical "
13196 "volumes in all volume groups.  If activated, then they are made known to the "
13197 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13198 "those devices disappear."
13199 msgstr ""
13200
13201 # type: textblock
13202 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:4014
13203 msgid "This command is the same as running C<vgchange -a y|n>"
13204 msgstr ""
13205
13206 # type: =head2
13207 #: ../src/guestfs-actions.pod:5197
13208 msgid "guestfs_vgcreate"
13209 msgstr ""
13210
13211 # type: verbatim
13212 #: ../src/guestfs-actions.pod:5199
13213 #, no-wrap
13214 msgid ""
13215 " int guestfs_vgcreate (guestfs_h *g,\n"
13216 "\t\tconst char *volgroup,\n"
13217 "\t\tchar *const *physvols);\n"
13218 "\n"
13219 msgstr ""
13220
13221 # type: textblock
13222 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:4020
13223 msgid ""
13224 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13225 "of physical volumes C<physvols>."
13226 msgstr ""
13227
13228 # type: =head2
13229 #: ../src/guestfs-actions.pod:5208
13230 msgid "guestfs_vglvuuids"
13231 msgstr ""
13232
13233 # type: verbatim
13234 #: ../src/guestfs-actions.pod:5210
13235 #, no-wrap
13236 msgid ""
13237 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13238 "\t\tconst char *vgname);\n"
13239 "\n"
13240 msgstr ""
13241
13242 # type: textblock
13243 #: ../src/guestfs-actions.pod:5213 ../fish/guestfish-actions.pod:4027
13244 msgid ""
13245 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13246 "volumes created in this volume group."
13247 msgstr ""
13248
13249 # type: textblock
13250 #: ../src/guestfs-actions.pod:5216
13251 msgid ""
13252 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13253 "associate logical volumes and volume groups."
13254 msgstr ""
13255
13256 # type: textblock
13257 #: ../src/guestfs-actions.pod:5219
13258 msgid "See also C<guestfs_vgpvuuids>."
13259 msgstr ""
13260
13261 # type: =head2
13262 #: ../src/guestfs-actions.pod:5225
13263 msgid "guestfs_vgpvuuids"
13264 msgstr ""
13265
13266 # type: verbatim
13267 #: ../src/guestfs-actions.pod:5227
13268 #, no-wrap
13269 msgid ""
13270 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
13271 "\t\tconst char *vgname);\n"
13272 "\n"
13273 msgstr ""
13274
13275 # type: textblock
13276 #: ../src/guestfs-actions.pod:5230 ../fish/guestfish-actions.pod:4039
13277 msgid ""
13278 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13279 "volumes that this volume group resides on."
13280 msgstr ""
13281
13282 # type: textblock
13283 #: ../src/guestfs-actions.pod:5233
13284 msgid ""
13285 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
13286 "associate physical volumes and volume groups."
13287 msgstr ""
13288
13289 # type: textblock
13290 #: ../src/guestfs-actions.pod:5236
13291 msgid "See also C<guestfs_vglvuuids>."
13292 msgstr ""
13293
13294 # type: =head2
13295 #: ../src/guestfs-actions.pod:5242
13296 msgid "guestfs_vgremove"
13297 msgstr ""
13298
13299 # type: verbatim
13300 #: ../src/guestfs-actions.pod:5244
13301 #, no-wrap
13302 msgid ""
13303 " int guestfs_vgremove (guestfs_h *g,\n"
13304 "\t\tconst char *vgname);\n"
13305 "\n"
13306 msgstr ""
13307
13308 # type: textblock
13309 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:4051
13310 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
13311 msgstr ""
13312
13313 # type: textblock
13314 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:4053
13315 msgid ""
13316 "This also forcibly removes all logical volumes in the volume group (if any)."
13317 msgstr ""
13318
13319 # type: =head2
13320 #: ../src/guestfs-actions.pod:5254
13321 msgid "guestfs_vgrename"
13322 msgstr ""
13323
13324 # type: verbatim
13325 #: ../src/guestfs-actions.pod:5256
13326 #, no-wrap
13327 msgid ""
13328 " int guestfs_vgrename (guestfs_h *g,\n"
13329 "\t\tconst char *volgroup,\n"
13330 "\t\tconst char *newvolgroup);\n"
13331 "\n"
13332 msgstr ""
13333
13334 # type: textblock
13335 #: ../src/guestfs-actions.pod:5260 ../fish/guestfish-actions.pod:4060
13336 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
13337 msgstr ""
13338
13339 # type: =head2
13340 #: ../src/guestfs-actions.pod:5264
13341 msgid "guestfs_vgs"
13342 msgstr ""
13343
13344 # type: verbatim
13345 #: ../src/guestfs-actions.pod:5266
13346 #, no-wrap
13347 msgid ""
13348 " char **guestfs_vgs (guestfs_h *g);\n"
13349 "\n"
13350 msgstr ""
13351
13352 # type: textblock
13353 #: ../src/guestfs-actions.pod:5268 ../fish/guestfish-actions.pod:4066
13354 msgid ""
13355 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
13356 "> command."
13357 msgstr ""
13358
13359 # type: textblock
13360 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:4069
13361 msgid ""
13362 "This returns a list of just the volume group names that were detected (eg. "
13363 "C<VolGroup00>)."
13364 msgstr ""
13365
13366 # type: textblock
13367 #: ../src/guestfs-actions.pod:5274
13368 msgid "See also C<guestfs_vgs_full>."
13369 msgstr ""
13370
13371 # type: =head2
13372 #: ../src/guestfs-actions.pod:5280
13373 msgid "guestfs_vgs_full"
13374 msgstr ""
13375
13376 # type: verbatim
13377 #: ../src/guestfs-actions.pod:5282
13378 #, no-wrap
13379 msgid ""
13380 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
13381 "\n"
13382 msgstr ""
13383
13384 # type: textblock
13385 #: ../src/guestfs-actions.pod:5284 ../fish/guestfish-actions.pod:4078
13386 msgid ""
13387 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
13388 "> command.  The \"full\" version includes all fields."
13389 msgstr ""
13390
13391 # type: textblock
13392 #: ../src/guestfs-actions.pod:5287
13393 msgid ""
13394 "This function returns a C<struct guestfs_lvm_vg_list *> (see E<lt>guestfs-"
13395 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
13396 "C<guestfs_free_lvm_vg_list> after use>."
13397 msgstr ""
13398
13399 # type: =head2
13400 #: ../src/guestfs-actions.pod:5292
13401 msgid "guestfs_vgscan"
13402 msgstr ""
13403
13404 # type: verbatim
13405 #: ../src/guestfs-actions.pod:5294
13406 #, no-wrap
13407 msgid ""
13408 " int guestfs_vgscan (guestfs_h *g);\n"
13409 "\n"
13410 msgstr ""
13411
13412 # type: textblock
13413 #: ../src/guestfs-actions.pod:5296 ../fish/guestfish-actions.pod:4085
13414 msgid ""
13415 "This rescans all block devices and rebuilds the list of LVM physical "
13416 "volumes, volume groups and logical volumes."
13417 msgstr ""
13418
13419 # type: =head2
13420 #: ../src/guestfs-actions.pod:5301
13421 msgid "guestfs_vguuid"
13422 msgstr ""
13423
13424 # type: verbatim
13425 #: ../src/guestfs-actions.pod:5303
13426 #, no-wrap
13427 msgid ""
13428 " char *guestfs_vguuid (guestfs_h *g,\n"
13429 "\t\tconst char *vgname);\n"
13430 "\n"
13431 msgstr ""
13432
13433 # type: textblock
13434 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:4092
13435 msgid "This command returns the UUID of the LVM VG named C<vgname>."
13436 msgstr ""
13437
13438 # type: =head2
13439 #: ../src/guestfs-actions.pod:5311
13440 msgid "guestfs_wait_ready"
13441 msgstr ""
13442
13443 # type: verbatim
13444 #: ../src/guestfs-actions.pod:5313
13445 #, no-wrap
13446 msgid ""
13447 " int guestfs_wait_ready (guestfs_h *g);\n"
13448 "\n"
13449 msgstr ""
13450
13451 # type: textblock
13452 #: ../src/guestfs-actions.pod:5315
13453 msgid "This function is a no op."
13454 msgstr ""
13455
13456 # type: textblock
13457 #: ../src/guestfs-actions.pod:5317
13458 msgid ""
13459 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
13460 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
13461 "is no longer necessary because C<guestfs_launch> now does the waiting."
13462 msgstr ""
13463
13464 # type: textblock
13465 #: ../src/guestfs-actions.pod:5322
13466 msgid ""
13467 "If you see any calls to this function in code then you can just remove them, "
13468 "unless you want to retain compatibility with older versions of the API."
13469 msgstr ""
13470
13471 # type: =head2
13472 #: ../src/guestfs-actions.pod:5328
13473 msgid "guestfs_wc_c"
13474 msgstr ""
13475
13476 # type: verbatim
13477 #: ../src/guestfs-actions.pod:5330
13478 #, no-wrap
13479 msgid ""
13480 " int guestfs_wc_c (guestfs_h *g,\n"
13481 "\t\tconst char *path);\n"
13482 "\n"
13483 msgstr ""
13484
13485 # type: textblock
13486 #: ../src/guestfs-actions.pod:5333 ../fish/guestfish-actions.pod:4098
13487 msgid ""
13488 "This command counts the characters in a file, using the C<wc -c> external "
13489 "command."
13490 msgstr ""
13491
13492 # type: =head2
13493 #: ../src/guestfs-actions.pod:5338
13494 msgid "guestfs_wc_l"
13495 msgstr ""
13496
13497 # type: verbatim
13498 #: ../src/guestfs-actions.pod:5340
13499 #, no-wrap
13500 msgid ""
13501 " int guestfs_wc_l (guestfs_h *g,\n"
13502 "\t\tconst char *path);\n"
13503 "\n"
13504 msgstr ""
13505
13506 # type: textblock
13507 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:4105
13508 msgid ""
13509 "This command counts the lines in a file, using the C<wc -l> external command."
13510 msgstr ""
13511
13512 # type: =head2
13513 #: ../src/guestfs-actions.pod:5348
13514 msgid "guestfs_wc_w"
13515 msgstr ""
13516
13517 # type: verbatim
13518 #: ../src/guestfs-actions.pod:5350
13519 #, no-wrap
13520 msgid ""
13521 " int guestfs_wc_w (guestfs_h *g,\n"
13522 "\t\tconst char *path);\n"
13523 "\n"
13524 msgstr ""
13525
13526 # type: textblock
13527 #: ../src/guestfs-actions.pod:5353 ../fish/guestfish-actions.pod:4112
13528 msgid ""
13529 "This command counts the words in a file, using the C<wc -w> external command."
13530 msgstr ""
13531
13532 # type: =head2
13533 #: ../src/guestfs-actions.pod:5358
13534 msgid "guestfs_write"
13535 msgstr ""
13536
13537 # type: verbatim
13538 #: ../src/guestfs-actions.pod:5360
13539 #, no-wrap
13540 msgid ""
13541 " int guestfs_write (guestfs_h *g,\n"
13542 "\t\tconst char *path,\n"
13543 "\t\tconst char *content,\n"
13544 "\t\tsize_t content_size);\n"
13545 "\n"
13546 msgstr ""
13547
13548 # type: textblock
13549 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:4119
13550 msgid ""
13551 "This call creates a file called C<path>.  The content of the file is the "
13552 "string C<content> (which can contain any 8 bit data)."
13553 msgstr ""
13554
13555 # type: =head2
13556 #: ../src/guestfs-actions.pod:5373
13557 msgid "guestfs_write_file"
13558 msgstr ""
13559
13560 # type: verbatim
13561 #: ../src/guestfs-actions.pod:5375
13562 #, no-wrap
13563 msgid ""
13564 " int guestfs_write_file (guestfs_h *g,\n"
13565 "\t\tconst char *path,\n"
13566 "\t\tconst char *content,\n"
13567 "\t\tint size);\n"
13568 "\n"
13569 msgstr ""
13570
13571 # type: textblock
13572 #: ../src/guestfs-actions.pod:5380 ../fish/guestfish-actions.pod:4129
13573 msgid ""
13574 "This call creates a file called C<path>.  The contents of the file is the "
13575 "string C<content> (which can contain any 8 bit data), with length C<size>."
13576 msgstr ""
13577
13578 # type: textblock
13579 #: ../src/guestfs-actions.pod:5384 ../fish/guestfish-actions.pod:4133
13580 msgid ""
13581 "As a special case, if C<size> is C<0> then the length is calculated using "
13582 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
13583 msgstr ""
13584
13585 # type: textblock
13586 #: ../src/guestfs-actions.pod:5388 ../fish/guestfish-actions.pod:4137
13587 msgid ""
13588 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
13589 "I<not> work, even if the length is specified."
13590 msgstr ""
13591
13592 # type: textblock
13593 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:4143
13594 msgid ""
13595 "This function is deprecated.  In new code, use the C<write> call instead."
13596 msgstr ""
13597
13598 # type: =head2
13599 #: ../src/guestfs-actions.pod:5403
13600 msgid "guestfs_zegrep"
13601 msgstr ""
13602
13603 # type: verbatim
13604 #: ../src/guestfs-actions.pod:5405
13605 #, no-wrap
13606 msgid ""
13607 " char **guestfs_zegrep (guestfs_h *g,\n"
13608 "\t\tconst char *regex,\n"
13609 "\t\tconst char *path);\n"
13610 "\n"
13611 msgstr ""
13612
13613 # type: textblock
13614 #: ../src/guestfs-actions.pod:5409 ../fish/guestfish-actions.pod:4154
13615 msgid ""
13616 "This calls the external C<zegrep> program and returns the matching lines."
13617 msgstr ""
13618
13619 # type: =head2
13620 #: ../src/guestfs-actions.pod:5419
13621 msgid "guestfs_zegrepi"
13622 msgstr ""
13623
13624 # type: verbatim
13625 #: ../src/guestfs-actions.pod:5421
13626 #, no-wrap
13627 msgid ""
13628 " char **guestfs_zegrepi (guestfs_h *g,\n"
13629 "\t\tconst char *regex,\n"
13630 "\t\tconst char *path);\n"
13631 "\n"
13632 msgstr ""
13633
13634 # type: textblock
13635 #: ../src/guestfs-actions.pod:5425 ../fish/guestfish-actions.pod:4164
13636 msgid ""
13637 "This calls the external C<zegrep -i> program and returns the matching lines."
13638 msgstr ""
13639
13640 # type: =head2
13641 #: ../src/guestfs-actions.pod:5435
13642 msgid "guestfs_zero"
13643 msgstr ""
13644
13645 # type: verbatim
13646 #: ../src/guestfs-actions.pod:5437
13647 #, no-wrap
13648 msgid ""
13649 " int guestfs_zero (guestfs_h *g,\n"
13650 "\t\tconst char *device);\n"
13651 "\n"
13652 msgstr ""
13653
13654 # type: textblock
13655 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:4174
13656 msgid "This command writes zeroes over the first few blocks of C<device>."
13657 msgstr ""
13658
13659 # type: textblock
13660 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:4176
13661 msgid ""
13662 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
13663 "securely wipe the device).  It should be sufficient to remove any partition "
13664 "tables, filesystem superblocks and so on."
13665 msgstr ""
13666
13667 # type: textblock
13668 #: ../src/guestfs-actions.pod:5446
13669 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
13670 msgstr ""
13671
13672 # type: =head2
13673 #: ../src/guestfs-actions.pod:5455
13674 msgid "guestfs_zero_device"
13675 msgstr ""
13676
13677 # type: verbatim
13678 #: ../src/guestfs-actions.pod:5457
13679 #, no-wrap
13680 msgid ""
13681 " int guestfs_zero_device (guestfs_h *g,\n"
13682 "\t\tconst char *device);\n"
13683 "\n"
13684 msgstr ""
13685
13686 # type: textblock
13687 #: ../src/guestfs-actions.pod:5460
13688 msgid ""
13689 "This command writes zeroes over the entire C<device>.  Compare with "
13690 "C<guestfs_zero> which just zeroes the first few blocks of a device."
13691 msgstr ""
13692
13693 # type: =head2
13694 #: ../src/guestfs-actions.pod:5474
13695 msgid "guestfs_zerofree"
13696 msgstr ""
13697
13698 # type: verbatim
13699 #: ../src/guestfs-actions.pod:5476
13700 #, no-wrap
13701 msgid ""
13702 " int guestfs_zerofree (guestfs_h *g,\n"
13703 "\t\tconst char *device);\n"
13704 "\n"
13705 msgstr ""
13706
13707 # type: textblock
13708 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:4197
13709 msgid ""
13710 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
13711 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
13712 "possible to compress the filesystem more effectively."
13713 msgstr ""
13714
13715 # type: textblock
13716 #: ../src/guestfs-actions.pod:5484 ../fish/guestfish-actions.pod:4202
13717 msgid "You should B<not> run this program if the filesystem is mounted."
13718 msgstr ""
13719
13720 # type: textblock
13721 #: ../src/guestfs-actions.pod:5487 ../fish/guestfish-actions.pod:4205
13722 msgid ""
13723 "It is possible that using this program can damage the filesystem or data on "
13724 "the filesystem."
13725 msgstr ""
13726
13727 # type: =head2
13728 #: ../src/guestfs-actions.pod:5492
13729 msgid "guestfs_zfgrep"
13730 msgstr ""
13731
13732 # type: verbatim
13733 #: ../src/guestfs-actions.pod:5494
13734 #, no-wrap
13735 msgid ""
13736 " char **guestfs_zfgrep (guestfs_h *g,\n"
13737 "\t\tconst char *pattern,\n"
13738 "\t\tconst char *path);\n"
13739 "\n"
13740 msgstr ""
13741
13742 # type: textblock
13743 #: ../src/guestfs-actions.pod:5498 ../fish/guestfish-actions.pod:4212
13744 msgid ""
13745 "This calls the external C<zfgrep> program and returns the matching lines."
13746 msgstr ""
13747
13748 # type: =head2
13749 #: ../src/guestfs-actions.pod:5508
13750 msgid "guestfs_zfgrepi"
13751 msgstr ""
13752
13753 # type: verbatim
13754 #: ../src/guestfs-actions.pod:5510
13755 #, no-wrap
13756 msgid ""
13757 " char **guestfs_zfgrepi (guestfs_h *g,\n"
13758 "\t\tconst char *pattern,\n"
13759 "\t\tconst char *path);\n"
13760 "\n"
13761 msgstr ""
13762
13763 # type: textblock
13764 #: ../src/guestfs-actions.pod:5514 ../fish/guestfish-actions.pod:4222
13765 msgid ""
13766 "This calls the external C<zfgrep -i> program and returns the matching lines."
13767 msgstr ""
13768
13769 # type: =head2
13770 #: ../src/guestfs-actions.pod:5524
13771 msgid "guestfs_zfile"
13772 msgstr ""
13773
13774 # type: verbatim
13775 #: ../src/guestfs-actions.pod:5526
13776 #, no-wrap
13777 msgid ""
13778 " char *guestfs_zfile (guestfs_h *g,\n"
13779 "\t\tconst char *meth,\n"
13780 "\t\tconst char *path);\n"
13781 "\n"
13782 msgstr ""
13783
13784 # type: textblock
13785 #: ../src/guestfs-actions.pod:5530 ../fish/guestfish-actions.pod:4232
13786 msgid ""
13787 "This command runs C<file> after first decompressing C<path> using C<method>."
13788 msgstr ""
13789
13790 # type: textblock
13791 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:4235
13792 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
13793 msgstr ""
13794
13795 # type: textblock
13796 #: ../src/guestfs-actions.pod:5535
13797 msgid ""
13798 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
13799 "files."
13800 msgstr ""
13801
13802 # type: textblock
13803 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:4240
13804 msgid ""
13805 "This function is deprecated.  In new code, use the C<file> call instead."
13806 msgstr ""
13807
13808 # type: =head2
13809 #: ../src/guestfs-actions.pod:5548
13810 msgid "guestfs_zgrep"
13811 msgstr ""
13812
13813 # type: verbatim
13814 #: ../src/guestfs-actions.pod:5550
13815 #, no-wrap
13816 msgid ""
13817 " char **guestfs_zgrep (guestfs_h *g,\n"
13818 "\t\tconst char *regex,\n"
13819 "\t\tconst char *path);\n"
13820 "\n"
13821 msgstr ""
13822
13823 # type: textblock
13824 #: ../src/guestfs-actions.pod:5554 ../fish/guestfish-actions.pod:4251
13825 msgid ""
13826 "This calls the external C<zgrep> program and returns the matching lines."
13827 msgstr ""
13828
13829 # type: =head2
13830 #: ../src/guestfs-actions.pod:5564
13831 msgid "guestfs_zgrepi"
13832 msgstr ""
13833
13834 # type: verbatim
13835 #: ../src/guestfs-actions.pod:5566
13836 #, no-wrap
13837 msgid ""
13838 " char **guestfs_zgrepi (guestfs_h *g,\n"
13839 "\t\tconst char *regex,\n"
13840 "\t\tconst char *path);\n"
13841 "\n"
13842 msgstr ""
13843
13844 # type: textblock
13845 #: ../src/guestfs-actions.pod:5570 ../fish/guestfish-actions.pod:4261
13846 msgid ""
13847 "This calls the external C<zgrep -i> program and returns the matching lines."
13848 msgstr ""
13849
13850 # type: =item
13851 #: ../src/guestfs-availability.pod:3
13852 msgid "B<augeas>"
13853 msgstr ""
13854
13855 # type: textblock
13856 #: ../src/guestfs-availability.pod:5
13857 msgid ""
13858 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
13859 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
13860 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
13861 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
13862 "L</guestfs_aug_save> L</guestfs_aug_set>"
13863 msgstr ""
13864
13865 # type: =item
13866 #: ../src/guestfs-availability.pod:21
13867 msgid "B<inotify>"
13868 msgstr ""
13869
13870 # type: textblock
13871 #: ../src/guestfs-availability.pod:23
13872 msgid ""
13873 "The following functions: L</guestfs_inotify_add_watch> L</"
13874 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
13875 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
13876 msgstr ""
13877
13878 # type: =item
13879 #: ../src/guestfs-availability.pod:31
13880 msgid "B<linuxfsuuid>"
13881 msgstr ""
13882
13883 # type: textblock
13884 #: ../src/guestfs-availability.pod:33
13885 msgid ""
13886 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
13887 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
13888 msgstr ""
13889
13890 # type: =item
13891 #: ../src/guestfs-availability.pod:40
13892 msgid "B<linuxmodules>"
13893 msgstr ""
13894
13895 # type: textblock
13896 #: ../src/guestfs-availability.pod:42
13897 msgid "The following functions: L</guestfs_modprobe>"
13898 msgstr ""
13899
13900 # type: =item
13901 #: ../src/guestfs-availability.pod:45
13902 msgid "B<linuxxattrs>"
13903 msgstr ""
13904
13905 # type: textblock
13906 #: ../src/guestfs-availability.pod:47
13907 msgid ""
13908 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
13909 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
13910 "guestfs_removexattr> L</guestfs_setxattr>"
13911 msgstr ""
13912
13913 # type: =item
13914 #: ../src/guestfs-availability.pod:56
13915 msgid "B<luks>"
13916 msgstr ""
13917
13918 # type: textblock
13919 #: ../src/guestfs-availability.pod:58
13920 msgid ""
13921 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
13922 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
13923 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
13924 msgstr ""
13925
13926 # type: =item
13927 #: ../src/guestfs-availability.pod:67
13928 msgid "B<lvm2>"
13929 msgstr ""
13930
13931 # type: textblock
13932 #: ../src/guestfs-availability.pod:69
13933 msgid ""
13934 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
13935 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
13936 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
13937 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
13938 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
13939 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
13940 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
13941 msgstr ""
13942
13943 # type: =item
13944 #: ../src/guestfs-availability.pod:92
13945 msgid "B<mknod>"
13946 msgstr ""
13947
13948 # type: textblock
13949 #: ../src/guestfs-availability.pod:94
13950 msgid ""
13951 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
13952 "guestfs_mknod_b> L</guestfs_mknod_c>"
13953 msgstr ""
13954
13955 # type: =item
13956 #: ../src/guestfs-availability.pod:100
13957 msgid "B<ntfs3g>"
13958 msgstr ""
13959
13960 # type: textblock
13961 #: ../src/guestfs-availability.pod:102
13962 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
13963 msgstr ""
13964
13965 # type: =item
13966 #: ../src/guestfs-availability.pod:105
13967 msgid "B<ntfsprogs>"
13968 msgstr ""
13969
13970 # type: textblock
13971 #: ../src/guestfs-availability.pod:107
13972 msgid ""
13973 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
13974 msgstr ""
13975
13976 # type: =item
13977 #: ../src/guestfs-availability.pod:111
13978 msgid "B<realpath>"
13979 msgstr ""
13980
13981 # type: textblock
13982 #: ../src/guestfs-availability.pod:113
13983 msgid "The following functions: L</guestfs_realpath>"
13984 msgstr ""
13985
13986 # type: =item
13987 #: ../src/guestfs-availability.pod:116
13988 msgid "B<scrub>"
13989 msgstr ""
13990
13991 # type: textblock
13992 #: ../src/guestfs-availability.pod:118
13993 msgid ""
13994 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
13995 "guestfs_scrub_freespace>"
13996 msgstr ""
13997
13998 # type: =item
13999 #: ../src/guestfs-availability.pod:123
14000 msgid "B<selinux>"
14001 msgstr ""
14002
14003 # type: textblock
14004 #: ../src/guestfs-availability.pod:125
14005 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
14006 msgstr ""
14007
14008 # type: =item
14009 #: ../src/guestfs-availability.pod:129
14010 msgid "B<xz>"
14011 msgstr ""
14012
14013 # type: textblock
14014 #: ../src/guestfs-availability.pod:131
14015 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
14016 msgstr ""
14017
14018 # type: =item
14019 #: ../src/guestfs-availability.pod:135
14020 msgid "B<zerofree>"
14021 msgstr ""
14022
14023 # type: textblock
14024 #: ../src/guestfs-availability.pod:137
14025 msgid "The following functions: L</guestfs_zerofree>"
14026 msgstr ""
14027
14028 # type: =head2
14029 #: ../src/guestfs-structs.pod:1
14030 msgid "guestfs_int_bool"
14031 msgstr ""
14032
14033 # type: verbatim
14034 #: ../src/guestfs-structs.pod:3
14035 #, no-wrap
14036 msgid ""
14037 " struct guestfs_int_bool {\n"
14038 "   int32_t i;\n"
14039 "   int32_t b;\n"
14040 " };\n"
14041 " \n"
14042 msgstr ""
14043
14044 # type: verbatim
14045 #: ../src/guestfs-structs.pod:8
14046 #, no-wrap
14047 msgid ""
14048 " struct guestfs_int_bool_list {\n"
14049 "   uint32_t len; /* Number of elements in list. */\n"
14050 "   struct guestfs_int_bool *val; /* Elements. */\n"
14051 " };\n"
14052 " \n"
14053 msgstr ""
14054
14055 # type: verbatim
14056 #: ../src/guestfs-structs.pod:13
14057 #, no-wrap
14058 msgid ""
14059 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
14060 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
14061 "\n"
14062 msgstr ""
14063
14064 # type: =head2
14065 #: ../src/guestfs-structs.pod:16
14066 msgid "guestfs_lvm_pv"
14067 msgstr ""
14068
14069 # type: verbatim
14070 #: ../src/guestfs-structs.pod:18
14071 #, no-wrap
14072 msgid ""
14073 " struct guestfs_lvm_pv {\n"
14074 "   char *pv_name;\n"
14075 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14076 "   char pv_uuid[32];\n"
14077 "   char *pv_fmt;\n"
14078 "   uint64_t pv_size;\n"
14079 "   uint64_t dev_size;\n"
14080 "   uint64_t pv_free;\n"
14081 "   uint64_t pv_used;\n"
14082 "   char *pv_attr;\n"
14083 "   int64_t pv_pe_count;\n"
14084 "   int64_t pv_pe_alloc_count;\n"
14085 "   char *pv_tags;\n"
14086 "   uint64_t pe_start;\n"
14087 "   int64_t pv_mda_count;\n"
14088 "   uint64_t pv_mda_free;\n"
14089 " };\n"
14090 " \n"
14091 msgstr ""
14092
14093 # type: verbatim
14094 #: ../src/guestfs-structs.pod:36
14095 #, no-wrap
14096 msgid ""
14097 " struct guestfs_lvm_pv_list {\n"
14098 "   uint32_t len; /* Number of elements in list. */\n"
14099 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14100 " };\n"
14101 " \n"
14102 msgstr ""
14103
14104 # type: verbatim
14105 #: ../src/guestfs-structs.pod:41
14106 #, no-wrap
14107 msgid ""
14108 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14109 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14110 "\n"
14111 msgstr ""
14112
14113 # type: =head2
14114 #: ../src/guestfs-structs.pod:44
14115 msgid "guestfs_lvm_vg"
14116 msgstr ""
14117
14118 # type: verbatim
14119 #: ../src/guestfs-structs.pod:46
14120 #, no-wrap
14121 msgid ""
14122 " struct guestfs_lvm_vg {\n"
14123 "   char *vg_name;\n"
14124 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14125 "   char vg_uuid[32];\n"
14126 "   char *vg_fmt;\n"
14127 "   char *vg_attr;\n"
14128 "   uint64_t vg_size;\n"
14129 "   uint64_t vg_free;\n"
14130 "   char *vg_sysid;\n"
14131 "   uint64_t vg_extent_size;\n"
14132 "   int64_t vg_extent_count;\n"
14133 "   int64_t vg_free_count;\n"
14134 "   int64_t max_lv;\n"
14135 "   int64_t max_pv;\n"
14136 "   int64_t pv_count;\n"
14137 "   int64_t lv_count;\n"
14138 "   int64_t snap_count;\n"
14139 "   int64_t vg_seqno;\n"
14140 "   char *vg_tags;\n"
14141 "   int64_t vg_mda_count;\n"
14142 "   uint64_t vg_mda_free;\n"
14143 " };\n"
14144 " \n"
14145 msgstr ""
14146
14147 # type: verbatim
14148 #: ../src/guestfs-structs.pod:69
14149 #, no-wrap
14150 msgid ""
14151 " struct guestfs_lvm_vg_list {\n"
14152 "   uint32_t len; /* Number of elements in list. */\n"
14153 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14154 " };\n"
14155 " \n"
14156 msgstr ""
14157
14158 # type: verbatim
14159 #: ../src/guestfs-structs.pod:74
14160 #, no-wrap
14161 msgid ""
14162 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14163 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14164 "\n"
14165 msgstr ""
14166
14167 # type: =head2
14168 #: ../src/guestfs-structs.pod:77
14169 msgid "guestfs_lvm_lv"
14170 msgstr ""
14171
14172 # type: verbatim
14173 #: ../src/guestfs-structs.pod:79
14174 #, no-wrap
14175 msgid ""
14176 " struct guestfs_lvm_lv {\n"
14177 "   char *lv_name;\n"
14178 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14179 "   char lv_uuid[32];\n"
14180 "   char *lv_attr;\n"
14181 "   int64_t lv_major;\n"
14182 "   int64_t lv_minor;\n"
14183 "   int64_t lv_kernel_major;\n"
14184 "   int64_t lv_kernel_minor;\n"
14185 "   uint64_t lv_size;\n"
14186 "   int64_t seg_count;\n"
14187 "   char *origin;\n"
14188 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14189 "   float snap_percent;\n"
14190 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14191 "   float copy_percent;\n"
14192 "   char *move_pv;\n"
14193 "   char *lv_tags;\n"
14194 "   char *mirror_log;\n"
14195 "   char *modules;\n"
14196 " };\n"
14197 " \n"
14198 msgstr ""
14199
14200 # type: verbatim
14201 #: ../src/guestfs-structs.pod:101
14202 #, no-wrap
14203 msgid ""
14204 " struct guestfs_lvm_lv_list {\n"
14205 "   uint32_t len; /* Number of elements in list. */\n"
14206 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14207 " };\n"
14208 " \n"
14209 msgstr ""
14210
14211 # type: verbatim
14212 #: ../src/guestfs-structs.pod:106
14213 #, no-wrap
14214 msgid ""
14215 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14216 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14217 "\n"
14218 msgstr ""
14219
14220 # type: verbatim
14221 #: ../src/guestfs-structs.pod:111
14222 #, no-wrap
14223 msgid ""
14224 " struct guestfs_stat {\n"
14225 "   int64_t dev;\n"
14226 "   int64_t ino;\n"
14227 "   int64_t mode;\n"
14228 "   int64_t nlink;\n"
14229 "   int64_t uid;\n"
14230 "   int64_t gid;\n"
14231 "   int64_t rdev;\n"
14232 "   int64_t size;\n"
14233 "   int64_t blksize;\n"
14234 "   int64_t blocks;\n"
14235 "   int64_t atime;\n"
14236 "   int64_t mtime;\n"
14237 "   int64_t ctime;\n"
14238 " };\n"
14239 " \n"
14240 msgstr ""
14241
14242 # type: verbatim
14243 #: ../src/guestfs-structs.pod:127
14244 #, no-wrap
14245 msgid ""
14246 " struct guestfs_stat_list {\n"
14247 "   uint32_t len; /* Number of elements in list. */\n"
14248 "   struct guestfs_stat *val; /* Elements. */\n"
14249 " };\n"
14250 " \n"
14251 msgstr ""
14252
14253 # type: verbatim
14254 #: ../src/guestfs-structs.pod:132
14255 #, no-wrap
14256 msgid ""
14257 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14258 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14259 "\n"
14260 msgstr ""
14261
14262 # type: verbatim
14263 #: ../src/guestfs-structs.pod:137
14264 #, no-wrap
14265 msgid ""
14266 " struct guestfs_statvfs {\n"
14267 "   int64_t bsize;\n"
14268 "   int64_t frsize;\n"
14269 "   int64_t blocks;\n"
14270 "   int64_t bfree;\n"
14271 "   int64_t bavail;\n"
14272 "   int64_t files;\n"
14273 "   int64_t ffree;\n"
14274 "   int64_t favail;\n"
14275 "   int64_t fsid;\n"
14276 "   int64_t flag;\n"
14277 "   int64_t namemax;\n"
14278 " };\n"
14279 " \n"
14280 msgstr ""
14281
14282 # type: verbatim
14283 #: ../src/guestfs-structs.pod:151
14284 #, no-wrap
14285 msgid ""
14286 " struct guestfs_statvfs_list {\n"
14287 "   uint32_t len; /* Number of elements in list. */\n"
14288 "   struct guestfs_statvfs *val; /* Elements. */\n"
14289 " };\n"
14290 " \n"
14291 msgstr ""
14292
14293 # type: verbatim
14294 #: ../src/guestfs-structs.pod:156
14295 #, no-wrap
14296 msgid ""
14297 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
14298 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
14299 "\n"
14300 msgstr ""
14301
14302 # type: =head2
14303 #: ../src/guestfs-structs.pod:159
14304 msgid "guestfs_dirent"
14305 msgstr ""
14306
14307 # type: verbatim
14308 #: ../src/guestfs-structs.pod:161
14309 #, no-wrap
14310 msgid ""
14311 " struct guestfs_dirent {\n"
14312 "   int64_t ino;\n"
14313 "   char ftyp;\n"
14314 "   char *name;\n"
14315 " };\n"
14316 " \n"
14317 msgstr ""
14318
14319 # type: verbatim
14320 #: ../src/guestfs-structs.pod:167
14321 #, no-wrap
14322 msgid ""
14323 " struct guestfs_dirent_list {\n"
14324 "   uint32_t len; /* Number of elements in list. */\n"
14325 "   struct guestfs_dirent *val; /* Elements. */\n"
14326 " };\n"
14327 " \n"
14328 msgstr ""
14329
14330 # type: verbatim
14331 #: ../src/guestfs-structs.pod:172
14332 #, no-wrap
14333 msgid ""
14334 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
14335 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
14336 "\n"
14337 msgstr ""
14338
14339 # type: verbatim
14340 #: ../src/guestfs-structs.pod:177
14341 #, no-wrap
14342 msgid ""
14343 " struct guestfs_version {\n"
14344 "   int64_t major;\n"
14345 "   int64_t minor;\n"
14346 "   int64_t release;\n"
14347 "   char *extra;\n"
14348 " };\n"
14349 " \n"
14350 msgstr ""
14351
14352 # type: verbatim
14353 #: ../src/guestfs-structs.pod:184
14354 #, no-wrap
14355 msgid ""
14356 " struct guestfs_version_list {\n"
14357 "   uint32_t len; /* Number of elements in list. */\n"
14358 "   struct guestfs_version *val; /* Elements. */\n"
14359 " };\n"
14360 " \n"
14361 msgstr ""
14362
14363 # type: verbatim
14364 #: ../src/guestfs-structs.pod:189
14365 #, no-wrap
14366 msgid ""
14367 " void guestfs_free_version (struct guestfs_free_version *);\n"
14368 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
14369 "\n"
14370 msgstr ""
14371
14372 # type: =head2
14373 #: ../src/guestfs-structs.pod:192
14374 msgid "guestfs_xattr"
14375 msgstr ""
14376
14377 # type: verbatim
14378 #: ../src/guestfs-structs.pod:194
14379 #, no-wrap
14380 msgid ""
14381 " struct guestfs_xattr {\n"
14382 "   char *attrname;\n"
14383 "   /* The next two fields describe a byte array. */\n"
14384 "   uint32_t attrval_len;\n"
14385 "   char *attrval;\n"
14386 " };\n"
14387 " \n"
14388 msgstr ""
14389
14390 # type: verbatim
14391 #: ../src/guestfs-structs.pod:201
14392 #, no-wrap
14393 msgid ""
14394 " struct guestfs_xattr_list {\n"
14395 "   uint32_t len; /* Number of elements in list. */\n"
14396 "   struct guestfs_xattr *val; /* Elements. */\n"
14397 " };\n"
14398 " \n"
14399 msgstr ""
14400
14401 # type: verbatim
14402 #: ../src/guestfs-structs.pod:206
14403 #, no-wrap
14404 msgid ""
14405 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
14406 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
14407 "\n"
14408 msgstr ""
14409
14410 # type: =head2
14411 #: ../src/guestfs-structs.pod:209
14412 msgid "guestfs_inotify_event"
14413 msgstr ""
14414
14415 # type: verbatim
14416 #: ../src/guestfs-structs.pod:211
14417 #, no-wrap
14418 msgid ""
14419 " struct guestfs_inotify_event {\n"
14420 "   int64_t in_wd;\n"
14421 "   uint32_t in_mask;\n"
14422 "   uint32_t in_cookie;\n"
14423 "   char *in_name;\n"
14424 " };\n"
14425 " \n"
14426 msgstr ""
14427
14428 # type: verbatim
14429 #: ../src/guestfs-structs.pod:218
14430 #, no-wrap
14431 msgid ""
14432 " struct guestfs_inotify_event_list {\n"
14433 "   uint32_t len; /* Number of elements in list. */\n"
14434 "   struct guestfs_inotify_event *val; /* Elements. */\n"
14435 " };\n"
14436 " \n"
14437 msgstr ""
14438
14439 # type: verbatim
14440 #: ../src/guestfs-structs.pod:223
14441 #, no-wrap
14442 msgid ""
14443 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
14444 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
14445 "\n"
14446 msgstr ""
14447
14448 # type: =head2
14449 #: ../src/guestfs-structs.pod:226
14450 msgid "guestfs_partition"
14451 msgstr ""
14452
14453 # type: verbatim
14454 #: ../src/guestfs-structs.pod:228
14455 #, no-wrap
14456 msgid ""
14457 " struct guestfs_partition {\n"
14458 "   int32_t part_num;\n"
14459 "   uint64_t part_start;\n"
14460 "   uint64_t part_end;\n"
14461 "   uint64_t part_size;\n"
14462 " };\n"
14463 " \n"
14464 msgstr ""
14465
14466 # type: verbatim
14467 #: ../src/guestfs-structs.pod:235
14468 #, no-wrap
14469 msgid ""
14470 " struct guestfs_partition_list {\n"
14471 "   uint32_t len; /* Number of elements in list. */\n"
14472 "   struct guestfs_partition *val; /* Elements. */\n"
14473 " };\n"
14474 " \n"
14475 msgstr ""
14476
14477 # type: verbatim
14478 #: ../src/guestfs-structs.pod:240
14479 #, no-wrap
14480 msgid ""
14481 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
14482 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
14483 "\n"
14484 msgstr ""
14485
14486 # type: textblock
14487 #: ../fish/guestfish.pod:5
14488 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
14489 msgstr ""
14490
14491 # type: verbatim
14492 #: ../fish/guestfish.pod:9
14493 #, no-wrap
14494 msgid ""
14495 " guestfish [--options] [commands]\n"
14496 "\n"
14497 msgstr ""
14498
14499 # type: verbatim
14500 #: ../fish/guestfish.pod:11
14501 #, no-wrap
14502 msgid ""
14503 " guestfish\n"
14504 "\n"
14505 msgstr ""
14506
14507 # type: verbatim
14508 #: ../fish/guestfish.pod:13
14509 #, no-wrap
14510 msgid ""
14511 " guestfish -a disk.img\n"
14512 "\n"
14513 msgstr ""
14514
14515 # type: verbatim
14516 #: ../fish/guestfish.pod:15
14517 #, no-wrap
14518 msgid ""
14519 " guestfish -a disk.img -m dev[:mountpoint]\n"
14520 "\n"
14521 msgstr ""
14522
14523 # type: verbatim
14524 #: ../fish/guestfish.pod:17
14525 #, no-wrap
14526 msgid ""
14527 " guestfish -d libvirt-domain\n"
14528 "\n"
14529 msgstr ""
14530
14531 # type: verbatim
14532 #: ../fish/guestfish.pod:19
14533 #, no-wrap
14534 msgid ""
14535 " guestfish -a disk.img -i\n"
14536 "\n"
14537 msgstr ""
14538
14539 # type: verbatim
14540 #: ../fish/guestfish.pod:21
14541 #, no-wrap
14542 msgid ""
14543 " guestfish -d libvirt-domain -i\n"
14544 "\n"
14545 msgstr ""
14546
14547 # type: =head1
14548 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:11 ../tools/virt-edit.pl:45
14549 #: ../tools/virt-rescue.pl:41 ../tools/virt-tar.pl:60
14550 #: ../tools/virt-win-reg.pl:52
14551 msgid "WARNING"
14552 msgstr ""
14553
14554 # type: textblock
14555 #: ../fish/guestfish.pod:25
14556 msgid ""
14557 "Using guestfish in read/write mode on live virtual machines can be "
14558 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
14559 "option to use guestfish safely if the disk image or virtual machine might be "
14560 "live."
14561 msgstr ""
14562
14563 # type: =head1
14564 #: ../fish/guestfish.pod:30 ../fish/guestfish.pod:729
14565 #: ../fuse/guestmount.pod:35 ../tools/virt-cat.pl:51 ../tools/virt-edit.pl:59
14566 #: ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:46
14567 msgid "EXAMPLES"
14568 msgstr ""
14569
14570 # type: =head2
14571 #: ../fish/guestfish.pod:32
14572 msgid "As an interactive shell"
14573 msgstr ""
14574
14575 # type: verbatim
14576 #: ../fish/guestfish.pod:34
14577 #, no-wrap
14578 msgid ""
14579 " $ guestfish\n"
14580 " \n"
14581 msgstr ""
14582
14583 # type: verbatim
14584 #: ../fish/guestfish.pod:36
14585 #, no-wrap
14586 msgid ""
14587 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
14588 " editing virtual machine filesystems.\n"
14589 " \n"
14590 msgstr ""
14591
14592 # type: verbatim
14593 #: ../fish/guestfish.pod:39
14594 #, no-wrap
14595 msgid ""
14596 " Type: 'help' for a list of commands\n"
14597 "       'man' to read the manual\n"
14598 "       'quit' to quit the shell\n"
14599 " \n"
14600 msgstr ""
14601
14602 # type: verbatim
14603 #: ../fish/guestfish.pod:43
14604 #, no-wrap
14605 msgid ""
14606 " ><fs> man\n"
14607 "\n"
14608 msgstr ""
14609
14610 # type: =head2
14611 #: ../fish/guestfish.pod:45
14612 msgid "From shell scripts"
14613 msgstr ""
14614
14615 # type: textblock
14616 #: ../fish/guestfish.pod:47
14617 msgid "Create a new C</etc/motd> file in a guest:"
14618 msgstr ""
14619
14620 # type: verbatim
14621 #: ../fish/guestfish.pod:49
14622 #, no-wrap
14623 msgid ""
14624 " guestfish <<_EOF_\n"
14625 " add disk.img\n"
14626 " run\n"
14627 " mount /dev/vg_guest/lv_root /\n"
14628 " write /etc/motd \"Welcome, new users\"\n"
14629 " _EOF_\n"
14630 "\n"
14631 msgstr ""
14632
14633 # type: textblock
14634 #: ../fish/guestfish.pod:56
14635 msgid "List the LVM logical volumes in a guest:"
14636 msgstr ""
14637
14638 # type: verbatim
14639 #: ../fish/guestfish.pod:58
14640 #, no-wrap
14641 msgid ""
14642 " guestfish -a disk.img --ro <<_EOF_\n"
14643 " run\n"
14644 " lvs\n"
14645 " _EOF_\n"
14646 "\n"
14647 msgstr ""
14648
14649 # type: =head2
14650 #: ../fish/guestfish.pod:63
14651 msgid "On one command line"
14652 msgstr ""
14653
14654 # type: textblock
14655 #: ../fish/guestfish.pod:65
14656 msgid "Update C</etc/resolv.conf> in a guest:"
14657 msgstr ""
14658
14659 # type: verbatim
14660 #: ../fish/guestfish.pod:67
14661 #, no-wrap
14662 msgid ""
14663 " guestfish \\\n"
14664 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
14665 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
14666 "\n"
14667 msgstr ""
14668
14669 # type: textblock
14670 #: ../fish/guestfish.pod:71
14671 msgid "Edit C</boot/grub/grub.conf> interactively:"
14672 msgstr ""
14673
14674 # type: verbatim
14675 #: ../fish/guestfish.pod:73
14676 #, no-wrap
14677 msgid ""
14678 " guestfish --add disk.img \\\n"
14679 "   --mount /dev/vg_guest/lv_root \\\n"
14680 "   --mount /dev/sda1:/boot \\\n"
14681 "   edit /boot/grub/grub.conf\n"
14682 "\n"
14683 msgstr ""
14684
14685 # type: =head2
14686 #: ../fish/guestfish.pod:78
14687 msgid "Mount disks automatically"
14688 msgstr ""
14689
14690 # type: textblock
14691 #: ../fish/guestfish.pod:80
14692 msgid ""
14693 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
14694 msgstr ""
14695
14696 # type: verbatim
14697 #: ../fish/guestfish.pod:83
14698 #, no-wrap
14699 msgid ""
14700 " guestfish --ro -a disk.img -i cat /etc/group\n"
14701 "\n"
14702 msgstr ""
14703
14704 # type: verbatim
14705 #: ../fish/guestfish.pod:85
14706 #, no-wrap
14707 msgid ""
14708 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
14709 "\n"
14710 msgstr ""
14711
14712 # type: =head2
14713 #: ../fish/guestfish.pod:87
14714 msgid "As a script interpreter"
14715 msgstr ""
14716
14717 # type: textblock
14718 #: ../fish/guestfish.pod:89
14719 msgid "Create a 100MB disk containing an ext2-formatted partition:"
14720 msgstr ""
14721
14722 # type: verbatim
14723 #: ../fish/guestfish.pod:91
14724 #, no-wrap
14725 msgid ""
14726 " #!/usr/bin/guestfish -f\n"
14727 " sparse test1.img 100M\n"
14728 " run\n"
14729 " part-disk /dev/sda mbr\n"
14730 " mkfs ext2 /dev/sda1\n"
14731 "\n"
14732 msgstr ""
14733
14734 # type: =head2
14735 #: ../fish/guestfish.pod:97
14736 msgid "Start with a prepared disk"
14737 msgstr ""
14738
14739 # type: textblock
14740 #: ../fish/guestfish.pod:99
14741 msgid ""
14742 "An alternate way to create a 100MB disk called C<test1.img> containing a "
14743 "single ext2-formatted partition:"
14744 msgstr ""
14745
14746 # type: verbatim
14747 #: ../fish/guestfish.pod:102
14748 #, no-wrap
14749 msgid ""
14750 " guestfish -N fs\n"
14751 "\n"
14752 msgstr ""
14753
14754 # type: textblock
14755 #: ../fish/guestfish.pod:104
14756 msgid "To list what is available do:"
14757 msgstr ""
14758
14759 # type: verbatim
14760 #: ../fish/guestfish.pod:106 ../fish/guestfish.pod:720
14761 #, no-wrap
14762 msgid ""
14763 " guestfish -N help | less\n"
14764 "\n"
14765 msgstr ""
14766
14767 # type: =head2
14768 #: ../fish/guestfish.pod:108
14769 msgid "Remote control"
14770 msgstr ""
14771
14772 # type: verbatim
14773 #: ../fish/guestfish.pod:110
14774 #, no-wrap
14775 msgid ""
14776 " eval `guestfish --listen --ro`\n"
14777 " guestfish --remote add disk.img\n"
14778 " guestfish --remote run\n"
14779 " guestfish --remote lvs\n"
14780 "\n"
14781 msgstr ""
14782
14783 # type: textblock
14784 #: ../fish/guestfish.pod:117
14785 msgid ""
14786 "Guestfish is a shell and command-line tool for examining and modifying "
14787 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
14788 "functionality of the guestfs API, see L<guestfs(3)>."
14789 msgstr ""
14790
14791 # type: textblock
14792 #: ../fish/guestfish.pod:121
14793 msgid ""
14794 "Guestfish gives you structured access to the libguestfs API, from shell "
14795 "scripts or the command line or interactively.  If you want to rescue a "
14796 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
14797 "command."
14798 msgstr ""
14799
14800 # type: =head1
14801 #: ../fish/guestfish.pod:126 ../test-tool/libguestfs-test-tool.pod:37
14802 #: ../fuse/guestmount.pod:70 ../inspector/virt-inspector.pl:75
14803 #: ../tools/virt-cat.pl:80 ../tools/virt-df.pl:71 ../tools/virt-edit.pl:73
14804 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-list-partitions.pl:51
14805 #: ../tools/virt-ls.pl:79 ../tools/virt-make-fs.pl:153
14806 #: ../tools/virt-rescue.pl:103 ../tools/virt-resize.pl:233
14807 #: ../tools/virt-tar.pl:99 ../tools/virt-win-reg.pl:172
14808 msgid "OPTIONS"
14809 msgstr ""
14810
14811 # type: =item
14812 #: ../fish/guestfish.pod:130 ../fuse/guestmount.pod:94
14813 #: ../inspector/virt-inspector.pl:83 ../tools/virt-cat.pl:88
14814 #: ../tools/virt-df.pl:79 ../tools/virt-edit.pl:81
14815 #: ../tools/virt-list-filesystems.pl:58 ../tools/virt-list-partitions.pl:59
14816 #: ../tools/virt-ls.pl:87 ../tools/virt-make-fs.pl:161
14817 #: ../tools/virt-rescue.pl:111 ../tools/virt-resize.pl:241
14818 #: ../tools/virt-tar.pl:107 ../tools/virt-win-reg.pl:180
14819 msgid "B<--help>"
14820 msgstr ""
14821
14822 # type: textblock
14823 #: ../fish/guestfish.pod:132
14824 msgid "Displays general help on options."
14825 msgstr ""
14826
14827 # type: =item
14828 #: ../fish/guestfish.pod:134
14829 msgid "B<-h> | B<--cmd-help>"
14830 msgstr ""
14831
14832 # type: textblock
14833 #: ../fish/guestfish.pod:136
14834 msgid "Lists all available guestfish commands."
14835 msgstr ""
14836
14837 # type: =item
14838 #: ../fish/guestfish.pod:138
14839 msgid "B<-h cmd> | B<--cmd-help cmd>"
14840 msgstr ""
14841
14842 # type: textblock
14843 #: ../fish/guestfish.pod:140
14844 msgid "Displays detailed help on a single command C<cmd>."
14845 msgstr ""
14846
14847 # type: =item
14848 #: ../fish/guestfish.pod:142 ../fuse/guestmount.pod:74
14849 msgid "B<-a image> | B<--add image>"
14850 msgstr ""
14851
14852 # type: textblock
14853 #: ../fish/guestfish.pod:144
14854 msgid "Add a block device or virtual machine image to the shell."
14855 msgstr ""
14856
14857 # type: =item
14858 #: ../fish/guestfish.pod:146
14859 msgid "B<-c URI> | B<--connect URI>"
14860 msgstr ""
14861
14862 # type: textblock
14863 #: ../fish/guestfish.pod:148
14864 msgid ""
14865 "When used in conjunction with the I<-d> option, this specifies the libvirt "
14866 "URI to use.  The default is to use the default libvirt connection."
14867 msgstr ""
14868
14869 # type: =item
14870 #: ../fish/guestfish.pod:152
14871 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
14872 msgstr ""
14873
14874 # type: textblock
14875 #: ../fish/guestfish.pod:154
14876 msgid ""
14877 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
14878 "used, then any libvirt domain can be used.  However in write mode, only "
14879 "libvirt domains which are shut down can be named here."
14880 msgstr ""
14881
14882 # type: =item
14883 #: ../fish/guestfish.pod:158
14884 msgid "B<-D> | B<--no-dest-paths>"
14885 msgstr ""
14886
14887 # type: textblock
14888 #: ../fish/guestfish.pod:160
14889 msgid ""
14890 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
14891 "to hit the tab key to complete paths on the guest filesystem, but this "
14892 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
14893 "allow this feature to be disabled."
14894 msgstr ""
14895
14896 # type: =item
14897 #: ../fish/guestfish.pod:165
14898 msgid "B<-f file> | B<--file file>"
14899 msgstr ""
14900
14901 # type: textblock
14902 #: ../fish/guestfish.pod:167
14903 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
14904 msgstr ""
14905
14906 # type: verbatim
14907 #: ../fish/guestfish.pod:170
14908 #, no-wrap
14909 msgid ""
14910 " #!/usr/bin/guestfish -f\n"
14911 "\n"
14912 msgstr ""
14913
14914 # type: =item
14915 #: ../fish/guestfish.pod:172
14916 msgid "B<-i> | B<--inspector>"
14917 msgstr ""
14918
14919 # type: textblock
14920 #: ../fish/guestfish.pod:174
14921 msgid ""
14922 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
14923 "system and mount filesystems as they would be mounted on the real virtual "
14924 "machine."
14925 msgstr ""
14926
14927 # type: textblock
14928 #: ../fish/guestfish.pod:178
14929 msgid "Typical usage is either:"
14930 msgstr ""
14931
14932 # type: verbatim
14933 #: ../fish/guestfish.pod:180
14934 #, no-wrap
14935 msgid ""
14936 " guestfish -d myguest -i\n"
14937 "\n"
14938 msgstr ""
14939
14940 # type: textblock
14941 #: ../fish/guestfish.pod:182
14942 msgid "(for an inactive libvirt domain called I<myguest>), or:"
14943 msgstr ""
14944
14945 # type: verbatim
14946 #: ../fish/guestfish.pod:184
14947 #, no-wrap
14948 msgid ""
14949 " guestfish --ro -d myguest -i\n"
14950 "\n"
14951 msgstr ""
14952
14953 # type: textblock
14954 #: ../fish/guestfish.pod:186
14955 msgid "(for active domains, readonly), or specify the block device directly:"
14956 msgstr ""
14957
14958 # type: verbatim
14959 #: ../fish/guestfish.pod:188
14960 #, no-wrap
14961 msgid ""
14962 " guestfish -a /dev/Guests/MyGuest -i\n"
14963 "\n"
14964 msgstr ""
14965
14966 # type: textblock
14967 #: ../fish/guestfish.pod:190
14968 msgid ""
14969 "Note that the command line syntax changed slightly over older versions of "
14970 "guestfish.  You can still use the old syntax:"
14971 msgstr ""
14972
14973 # type: verbatim
14974 #: ../fish/guestfish.pod:193
14975 #, no-wrap
14976 msgid ""
14977 " guestfish [--ro] -i disk.img\n"
14978 "\n"
14979 msgstr ""
14980
14981 # type: verbatim
14982 #: ../fish/guestfish.pod:195
14983 #, no-wrap
14984 msgid ""
14985 " guestfish [--ro] -i libvirt-domain\n"
14986 "\n"
14987 msgstr ""
14988
14989 # type: =item
14990 #: ../fish/guestfish.pod:197
14991 msgid "B<--keys-from-stdin>"
14992 msgstr ""
14993
14994 # type: textblock
14995 #: ../fish/guestfish.pod:199
14996 msgid ""
14997 "Read key or passphrase parameters from stdin.  The default is to try to read "
14998 "passphrases from the user by opening C</dev/tty>."
14999 msgstr ""
15000
15001 # type: =item
15002 #: ../fish/guestfish.pod:202
15003 msgid "B<--listen>"
15004 msgstr ""
15005
15006 # type: textblock
15007 #: ../fish/guestfish.pod:204
15008 msgid ""
15009 "Fork into the background and listen for remote commands.  See section L</"
15010 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15011 msgstr ""
15012
15013 # type: =item
15014 #: ../fish/guestfish.pod:207
15015 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
15016 msgstr ""
15017
15018 # type: textblock
15019 #: ../fish/guestfish.pod:209
15020 msgid "Mount the named partition or logical volume on the given mountpoint."
15021 msgstr ""
15022
15023 # type: textblock
15024 #: ../fish/guestfish.pod:211
15025 msgid "If the mountpoint is omitted, it defaults to C</>."
15026 msgstr ""
15027
15028 # type: textblock
15029 #: ../fish/guestfish.pod:213
15030 msgid "You have to mount something on C</> before most commands will work."
15031 msgstr ""
15032
15033 # type: textblock
15034 #: ../fish/guestfish.pod:215
15035 msgid ""
15036 "If any I<-m> or I<--mount> options are given, the guest is automatically "
15037 "launched."
15038 msgstr ""
15039
15040 # type: textblock
15041 #: ../fish/guestfish.pod:218
15042 msgid ""
15043 "If you don't know what filesystems a disk image contains, you can either run "
15044 "guestfish without this option, then list the partitions and LVs available "
15045 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
15046 "list-filesystems(1)> program."
15047 msgstr ""
15048
15049 # type: =item
15050 #: ../fish/guestfish.pod:223 ../fuse/guestmount.pod:106
15051 msgid "B<-n> | B<--no-sync>"
15052 msgstr ""
15053
15054 # type: textblock
15055 #: ../fish/guestfish.pod:225
15056 msgid ""
15057 "Disable autosync.  This is enabled by default.  See the discussion of "
15058 "autosync in the L<guestfs(3)> manpage."
15059 msgstr ""
15060
15061 # type: =item
15062 #: ../fish/guestfish.pod:228
15063 msgid "B<-N type> | B<--new type> | B<-N help>"
15064 msgstr ""
15065
15066 # type: textblock
15067 #: ../fish/guestfish.pod:230
15068 msgid ""
15069 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
15070 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
15071 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
15072 "IMAGES> below."
15073 msgstr ""
15074
15075 # type: =item
15076 #: ../fish/guestfish.pod:235
15077 msgid "B<--progress-bars>"
15078 msgstr ""
15079
15080 # type: textblock
15081 #: ../fish/guestfish.pod:237
15082 msgid "Enable progress bars, even when guestfish is used non-interactively."
15083 msgstr ""
15084
15085 # type: textblock
15086 #: ../fish/guestfish.pod:239
15087 msgid ""
15088 "Progress bars are enabled by default when guestfish is used as an "
15089 "interactive shell."
15090 msgstr ""
15091
15092 # type: =item
15093 #: ../fish/guestfish.pod:242
15094 msgid "B<--no-progress-bars>"
15095 msgstr ""
15096
15097 # type: textblock
15098 #: ../fish/guestfish.pod:244
15099 msgid "Disable progress bars."
15100 msgstr ""
15101
15102 # type: =item
15103 #: ../fish/guestfish.pod:246
15104 msgid "B<--remote[=pid]>"
15105 msgstr ""
15106
15107 # type: textblock
15108 #: ../fish/guestfish.pod:248
15109 msgid ""
15110 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15111 "CONTROL GUESTFISH OVER A SOCKET> below."
15112 msgstr ""
15113
15114 # type: =item
15115 #: ../fish/guestfish.pod:251 ../fuse/guestmount.pod:148
15116 msgid "B<-r> | B<--ro>"
15117 msgstr ""
15118
15119 # type: textblock
15120 #: ../fish/guestfish.pod:253
15121 msgid ""
15122 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15123 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15124 msgstr ""
15125
15126 # type: textblock
15127 #: ../fish/guestfish.pod:256 ../tools/virt-rescue.pl:162
15128 msgid ""
15129 "The option must always be used if the disk image or virtual machine might be "
15130 "running, and is generally recommended in cases where you don't need write "
15131 "access to the disk."
15132 msgstr ""
15133
15134 # type: textblock
15135 #: ../fish/guestfish.pod:260
15136 msgid ""
15137 "Note that prepared disk images created with I<-N> are not affected by the "
15138 "I<--ro> option."
15139 msgstr ""
15140
15141 # type: =item
15142 #: ../fish/guestfish.pod:263 ../fuse/guestmount.pod:158
15143 #: ../tools/virt-rescue.pl:170
15144 msgid "B<--selinux>"
15145 msgstr ""
15146
15147 # type: textblock
15148 #: ../fish/guestfish.pod:265
15149 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15150 msgstr ""
15151
15152 # type: =item
15153 #: ../fish/guestfish.pod:267 ../fuse/guestmount.pod:168
15154 msgid "B<-v> | B<--verbose>"
15155 msgstr ""
15156
15157 # type: textblock
15158 #: ../fish/guestfish.pod:269
15159 msgid ""
15160 "Enable very verbose messages.  This is particularly useful if you find a bug."
15161 msgstr ""
15162
15163 # type: =item
15164 #: ../fish/guestfish.pod:272 ../fuse/guestmount.pod:172
15165 msgid "B<-V> | B<--version>"
15166 msgstr ""
15167
15168 # type: textblock
15169 #: ../fish/guestfish.pod:274
15170 msgid "Display the guestfish / libguestfs version number and exit."
15171 msgstr ""
15172
15173 # type: =item
15174 #: ../fish/guestfish.pod:276
15175 msgid "B<-x>"
15176 msgstr ""
15177
15178 # type: textblock
15179 #: ../fish/guestfish.pod:278
15180 msgid "Echo each command before executing it."
15181 msgstr ""
15182
15183 # type: =head1
15184 #: ../fish/guestfish.pod:282
15185 msgid "COMMANDS ON COMMAND LINE"
15186 msgstr ""
15187
15188 # type: textblock
15189 #: ../fish/guestfish.pod:284
15190 msgid ""
15191 "Any additional (non-option) arguments are treated as commands to execute."
15192 msgstr ""
15193
15194 # type: textblock
15195 #: ../fish/guestfish.pod:287
15196 msgid ""
15197 "Commands to execute should be separated by a colon (C<:>), where the colon "
15198 "is a separate parameter.  Thus:"
15199 msgstr ""
15200
15201 # type: verbatim
15202 #: ../fish/guestfish.pod:290
15203 #, no-wrap
15204 msgid ""
15205 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
15206 "\n"
15207 msgstr ""
15208
15209 # type: textblock
15210 #: ../fish/guestfish.pod:292
15211 msgid ""
15212 "If there are no additional arguments, then we enter a shell, either an "
15213 "interactive shell with a prompt (if the input is a terminal) or a non-"
15214 "interactive shell."
15215 msgstr ""
15216
15217 # type: textblock
15218 #: ../fish/guestfish.pod:296
15219 msgid ""
15220 "In either command line mode or non-interactive shell, the first command that "
15221 "gives an error causes the whole shell to exit.  In interactive mode (with a "
15222 "prompt) if a command fails, you can continue to enter commands."
15223 msgstr ""
15224
15225 # type: =head1
15226 #: ../fish/guestfish.pod:301
15227 msgid "USING launch (OR run)"
15228 msgstr ""
15229
15230 # type: textblock
15231 #: ../fish/guestfish.pod:303
15232 msgid ""
15233 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
15234 "then launch it, then mount any disks you need, and finally issue actions/"
15235 "commands.  So the general order of the day is:"
15236 msgstr ""
15237
15238 # type: textblock
15239 #: ../fish/guestfish.pod:311
15240 msgid "add or -a/--add"
15241 msgstr ""
15242
15243 # type: textblock
15244 #: ../fish/guestfish.pod:315
15245 msgid "launch (aka run)"
15246 msgstr ""
15247
15248 # type: textblock
15249 #: ../fish/guestfish.pod:319
15250 msgid "mount or -m/--mount"
15251 msgstr ""
15252
15253 # type: textblock
15254 #: ../fish/guestfish.pod:323
15255 msgid "any other commands"
15256 msgstr ""
15257
15258 # type: textblock
15259 #: ../fish/guestfish.pod:327
15260 msgid ""
15261 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
15262 "guest before mounting or performing any other commands."
15263 msgstr ""
15264
15265 # type: textblock
15266 #: ../fish/guestfish.pod:330
15267 msgid ""
15268 "The only exception is that if the I<-m> or I<--mount> option was given, the "
15269 "guest is automatically run for you (simply because guestfish can't mount the "
15270 "disks you asked for without doing this)."
15271 msgstr ""
15272
15273 # type: =head1
15274 #: ../fish/guestfish.pod:334
15275 msgid "QUOTING"
15276 msgstr ""
15277
15278 # type: textblock
15279 #: ../fish/guestfish.pod:336
15280 msgid ""
15281 "You can quote ordinary parameters using either single or double quotes.  For "
15282 "example:"
15283 msgstr ""
15284
15285 # type: verbatim
15286 #: ../fish/guestfish.pod:339
15287 #, no-wrap
15288 msgid ""
15289 " add \"file with a space.img\"\n"
15290 "\n"
15291 msgstr ""
15292
15293 # type: verbatim
15294 #: ../fish/guestfish.pod:341
15295 #, no-wrap
15296 msgid ""
15297 " rm '/file name'\n"
15298 "\n"
15299 msgstr ""
15300
15301 # type: verbatim
15302 #: ../fish/guestfish.pod:343
15303 #, no-wrap
15304 msgid ""
15305 " rm '/\"'\n"
15306 "\n"
15307 msgstr ""
15308
15309 # type: textblock
15310 #: ../fish/guestfish.pod:345
15311 msgid ""
15312 "A few commands require a list of strings to be passed.  For these, use a "
15313 "whitespace-separated list, enclosed in quotes.  Strings containing "
15314 "whitespace to be passed through must be enclosed in single quotes.  A "
15315 "literal single quote must be escaped with a backslash."
15316 msgstr ""
15317
15318 # type: verbatim
15319 #: ../fish/guestfish.pod:350
15320 #, no-wrap
15321 msgid ""
15322 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
15323 " command \"/bin/echo 'foo      bar'\"\n"
15324 " command \"/bin/echo \\'foo\\'\"\n"
15325 "\n"
15326 msgstr ""
15327
15328 # type: =head1
15329 #: ../fish/guestfish.pod:354
15330 msgid "NUMBERS"
15331 msgstr ""
15332
15333 # type: textblock
15334 #: ../fish/guestfish.pod:356
15335 msgid ""
15336 "This section applies to all commands which can take integers as parameters."
15337 msgstr ""
15338
15339 # type: =head2
15340 #: ../fish/guestfish.pod:359
15341 msgid "SIZE SUFFIX"
15342 msgstr ""
15343
15344 # type: textblock
15345 #: ../fish/guestfish.pod:361
15346 msgid ""
15347 "When the command takes a parameter measured in bytes, you can use one of the "
15348 "following suffixes to specify kilobytes, megabytes and larger sizes:"
15349 msgstr ""
15350
15351 # type: =item
15352 #: ../fish/guestfish.pod:367
15353 msgid "B<k> or B<K> or B<KiB>"
15354 msgstr ""
15355
15356 # type: textblock
15357 #: ../fish/guestfish.pod:369
15358 msgid "The size in kilobytes (multiplied by 1024)."
15359 msgstr ""
15360
15361 # type: =item
15362 #: ../fish/guestfish.pod:371
15363 msgid "B<KB>"
15364 msgstr ""
15365
15366 # type: textblock
15367 #: ../fish/guestfish.pod:373
15368 msgid "The size in SI 1000 byte units."
15369 msgstr ""
15370
15371 # type: =item
15372 #: ../fish/guestfish.pod:375
15373 msgid "B<M> or B<MiB>"
15374 msgstr ""
15375
15376 # type: textblock
15377 #: ../fish/guestfish.pod:377
15378 msgid "The size in megabytes (multiplied by 1048576)."
15379 msgstr ""
15380
15381 # type: =item
15382 #: ../fish/guestfish.pod:379
15383 msgid "B<MB>"
15384 msgstr ""
15385
15386 # type: textblock
15387 #: ../fish/guestfish.pod:381
15388 msgid "The size in SI 1000000 byte units."
15389 msgstr ""
15390
15391 # type: =item
15392 #: ../fish/guestfish.pod:383
15393 msgid "B<G> or B<GiB>"
15394 msgstr ""
15395
15396 # type: textblock
15397 #: ../fish/guestfish.pod:385
15398 msgid "The size in gigabytes (multiplied by 2**30)."
15399 msgstr ""
15400
15401 # type: =item
15402 #: ../fish/guestfish.pod:387
15403 msgid "B<GB>"
15404 msgstr ""
15405
15406 # type: textblock
15407 #: ../fish/guestfish.pod:389
15408 msgid "The size in SI 10**9 byte units."
15409 msgstr ""
15410
15411 # type: =item
15412 #: ../fish/guestfish.pod:391
15413 msgid "B<T> or B<TiB>"
15414 msgstr ""
15415
15416 # type: textblock
15417 #: ../fish/guestfish.pod:393
15418 msgid "The size in terabytes (multiplied by 2**40)."
15419 msgstr ""
15420
15421 # type: =item
15422 #: ../fish/guestfish.pod:395
15423 msgid "B<TB>"
15424 msgstr ""
15425
15426 # type: textblock
15427 #: ../fish/guestfish.pod:397
15428 msgid "The size in SI 10**12 byte units."
15429 msgstr ""
15430
15431 # type: =item
15432 #: ../fish/guestfish.pod:399
15433 msgid "B<P> or B<PiB>"
15434 msgstr ""
15435
15436 # type: textblock
15437 #: ../fish/guestfish.pod:401
15438 msgid "The size in petabytes (multiplied by 2**50)."
15439 msgstr ""
15440
15441 # type: =item
15442 #: ../fish/guestfish.pod:403
15443 msgid "B<PB>"
15444 msgstr ""
15445
15446 # type: textblock
15447 #: ../fish/guestfish.pod:405
15448 msgid "The size in SI 10**15 byte units."
15449 msgstr ""
15450
15451 # type: =item
15452 #: ../fish/guestfish.pod:407
15453 msgid "B<E> or B<EiB>"
15454 msgstr ""
15455
15456 # type: textblock
15457 #: ../fish/guestfish.pod:409
15458 msgid "The size in exabytes (multiplied by 2**60)."
15459 msgstr ""
15460
15461 # type: =item
15462 #: ../fish/guestfish.pod:411
15463 msgid "B<EB>"
15464 msgstr ""
15465
15466 # type: textblock
15467 #: ../fish/guestfish.pod:413
15468 msgid "The size in SI 10**18 byte units."
15469 msgstr ""
15470
15471 # type: =item
15472 #: ../fish/guestfish.pod:415
15473 msgid "B<Z> or B<ZiB>"
15474 msgstr ""
15475
15476 # type: textblock
15477 #: ../fish/guestfish.pod:417
15478 msgid "The size in zettabytes (multiplied by 2**70)."
15479 msgstr ""
15480
15481 # type: =item
15482 #: ../fish/guestfish.pod:419
15483 msgid "B<ZB>"
15484 msgstr ""
15485
15486 # type: textblock
15487 #: ../fish/guestfish.pod:421
15488 msgid "The size in SI 10**21 byte units."
15489 msgstr ""
15490
15491 # type: =item
15492 #: ../fish/guestfish.pod:423
15493 msgid "B<Y> or B<YiB>"
15494 msgstr ""
15495
15496 # type: textblock
15497 #: ../fish/guestfish.pod:425
15498 msgid "The size in yottabytes (multiplied by 2**80)."
15499 msgstr ""
15500
15501 # type: =item
15502 #: ../fish/guestfish.pod:427
15503 msgid "B<YB>"
15504 msgstr ""
15505
15506 # type: textblock
15507 #: ../fish/guestfish.pod:429
15508 msgid "The size in SI 10**24 byte units."
15509 msgstr ""
15510
15511 # type: textblock
15512 #: ../fish/guestfish.pod:433
15513 msgid "For example:"
15514 msgstr ""
15515
15516 # type: verbatim
15517 #: ../fish/guestfish.pod:435
15518 #, no-wrap
15519 msgid ""
15520 " truncate-size /file 1G\n"
15521 "\n"
15522 msgstr ""
15523
15524 # type: textblock
15525 #: ../fish/guestfish.pod:437
15526 msgid "would truncate the file to 1 gigabyte."
15527 msgstr ""
15528
15529 # type: textblock
15530 #: ../fish/guestfish.pod:439
15531 msgid ""
15532 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
15533 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
15534 "suffix will probably not do what you expect."
15535 msgstr ""
15536
15537 # type: =head2
15538 #: ../fish/guestfish.pod:443
15539 msgid "OCTAL AND HEXADECIMAL NUMBERS"
15540 msgstr ""
15541
15542 # type: textblock
15543 #: ../fish/guestfish.pod:445
15544 msgid ""
15545 "For specifying the radix (base) use the C convention: C<0> to prefix an "
15546 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
15547 msgstr ""
15548
15549 # type: verbatim
15550 #: ../fish/guestfish.pod:448
15551 #, no-wrap
15552 msgid ""
15553 " 1234      decimal number 1234\n"
15554 " 02322     octal number, equivalent to decimal 1234\n"
15555 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
15556 "\n"
15557 msgstr ""
15558
15559 # type: textblock
15560 #: ../fish/guestfish.pod:452
15561 msgid ""
15562 "When using the C<chmod> command, you almost always want to specify an octal "
15563 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
15564 "L<chmod(1)> program):"
15565 msgstr ""
15566
15567 # type: verbatim
15568 #: ../fish/guestfish.pod:456
15569 #, no-wrap
15570 msgid ""
15571 " chmod 0777 /public  # OK\n"
15572 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
15573 "\n"
15574 msgstr ""
15575
15576 # type: textblock
15577 #: ../fish/guestfish.pod:459
15578 msgid ""
15579 "Commands that return numbers usually print them in decimal, but some "
15580 "commands print numbers in other radices (eg. C<umask> prints the mode in "
15581 "octal, preceeded by C<0>)."
15582 msgstr ""
15583
15584 # type: =head1
15585 #: ../fish/guestfish.pod:463
15586 msgid "WILDCARDS AND GLOBBING"
15587 msgstr ""
15588
15589 # type: textblock
15590 #: ../fish/guestfish.pod:465
15591 msgid ""
15592 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
15593 "(globbing) by default.  So for example the following will not do what you "
15594 "expect:"
15595 msgstr ""
15596
15597 # type: verbatim
15598 #: ../fish/guestfish.pod:469
15599 #, no-wrap
15600 msgid ""
15601 " rm-rf /home/*\n"
15602 "\n"
15603 msgstr ""
15604
15605 # type: textblock
15606 #: ../fish/guestfish.pod:471
15607 msgid ""
15608 "Assuming you don't have a directory literally called C</home/*> then the "
15609 "above command will return an error."
15610 msgstr ""
15611
15612 # type: textblock
15613 #: ../fish/guestfish.pod:474
15614 msgid "To perform wildcard expansion, use the C<glob> command."
15615 msgstr ""
15616
15617 # type: verbatim
15618 #: ../fish/guestfish.pod:476
15619 #, no-wrap
15620 msgid ""
15621 " glob rm-rf /home/*\n"
15622 "\n"
15623 msgstr ""
15624
15625 # type: textblock
15626 #: ../fish/guestfish.pod:478
15627 msgid ""
15628 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
15629 "many times), equivalent to:"
15630 msgstr ""
15631
15632 # type: verbatim
15633 #: ../fish/guestfish.pod:481
15634 #, no-wrap
15635 msgid ""
15636 " rm-rf /home/jim\n"
15637 " rm-rf /home/joe\n"
15638 " rm-rf /home/mary\n"
15639 "\n"
15640 msgstr ""
15641
15642 # type: textblock
15643 #: ../fish/guestfish.pod:485
15644 msgid "C<glob> only works on simple guest paths and not on device names."
15645 msgstr ""
15646
15647 # type: textblock
15648 #: ../fish/guestfish.pod:487
15649 msgid ""
15650 "If you have several parameters, each containing a wildcard, then glob will "
15651 "perform a cartesian product."
15652 msgstr ""
15653
15654 # type: =head1
15655 #: ../fish/guestfish.pod:490
15656 msgid "COMMENTS"
15657 msgstr ""
15658
15659 # type: textblock
15660 #: ../fish/guestfish.pod:492
15661 msgid ""
15662 "Any line which starts with a I<#> character is treated as a comment and "
15663 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
15664 "a command.  For example:"
15665 msgstr ""
15666
15667 # type: verbatim
15668 #: ../fish/guestfish.pod:496
15669 #, no-wrap
15670 msgid ""
15671 " # this is a comment\n"
15672 "         # this is a comment\n"
15673 " foo # NOT a comment\n"
15674 "\n"
15675 msgstr ""
15676
15677 # type: textblock
15678 #: ../fish/guestfish.pod:500
15679 msgid "Blank lines are also ignored."
15680 msgstr ""
15681
15682 # type: =head1
15683 #: ../fish/guestfish.pod:502
15684 msgid "RUNNING COMMANDS LOCALLY"
15685 msgstr ""
15686
15687 # type: textblock
15688 #: ../fish/guestfish.pod:504
15689 msgid ""
15690 "Any line which starts with a I<!> character is treated as a command sent to "
15691 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
15692 msgstr ""
15693
15694 # type: verbatim
15695 #: ../fish/guestfish.pod:508
15696 #, no-wrap
15697 msgid ""
15698 " !mkdir local\n"
15699 " tgz-out /remote local/remote-data.tar.gz\n"
15700 "\n"
15701 msgstr ""
15702
15703 # type: textblock
15704 #: ../fish/guestfish.pod:511
15705 msgid ""
15706 "will create a directory C<local> on the host, and then export the contents "
15707 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
15708 "(See C<tgz-out>)."
15709 msgstr ""
15710
15711 # type: textblock
15712 #: ../fish/guestfish.pod:515
15713 msgid ""
15714 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
15715 "effect, due to the way that subprocesses work in Unix."
15716 msgstr ""
15717
15718 # type: =head1
15719 #: ../fish/guestfish.pod:518
15720 msgid "PIPES"
15721 msgstr ""
15722
15723 # type: textblock
15724 #: ../fish/guestfish.pod:520
15725 msgid ""
15726 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
15727 "command (a guestfish command) to the second command (any host command).  For "
15728 "example:"
15729 msgstr ""
15730
15731 # type: verbatim
15732 #: ../fish/guestfish.pod:524
15733 #, no-wrap
15734 msgid ""
15735 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
15736 "\n"
15737 msgstr ""
15738
15739 # type: textblock
15740 #: ../fish/guestfish.pod:526
15741 msgid ""
15742 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
15743 "program).  The above command would list all accounts in the guest filesystem "
15744 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
15745 msgstr ""
15746
15747 # type: verbatim
15748 #: ../fish/guestfish.pod:531
15749 #, no-wrap
15750 msgid ""
15751 " hexdump /bin/ls | head\n"
15752 " list-devices | tail -1\n"
15753 " tgz-out / - | tar ztf -\n"
15754 "\n"
15755 msgstr ""
15756
15757 # type: textblock
15758 #: ../fish/guestfish.pod:535
15759 msgid ""
15760 "The space before the pipe symbol is required, any space after the pipe "
15761 "symbol is optional.  Everything after the pipe symbol is just passed "
15762 "straight to the host shell, so it can contain redirections, globs and "
15763 "anything else that makes sense on the host side."
15764 msgstr ""
15765
15766 # type: textblock
15767 #: ../fish/guestfish.pod:540
15768 msgid ""
15769 "To use a literal argument which begins with a pipe symbol, you have to quote "
15770 "it, eg:"
15771 msgstr ""
15772
15773 # type: verbatim
15774 #: ../fish/guestfish.pod:543
15775 #, no-wrap
15776 msgid ""
15777 " echo \"|\"\n"
15778 "\n"
15779 msgstr ""
15780
15781 # type: =head1
15782 #: ../fish/guestfish.pod:545
15783 msgid "HOME DIRECTORIES"
15784 msgstr ""
15785
15786 # type: textblock
15787 #: ../fish/guestfish.pod:547
15788 msgid ""
15789 "If a parameter starts with the character C<~> then the tilde may be expanded "
15790 "as a home directory path (either C<~> for the current user's home directory, "
15791 "or C<~user> for another user)."
15792 msgstr ""
15793
15794 # type: textblock
15795 #: ../fish/guestfish.pod:551
15796 msgid ""
15797 "Note that home directory expansion happens for users known I<on the host>, "
15798 "not in the guest filesystem."
15799 msgstr ""
15800
15801 # type: textblock
15802 #: ../fish/guestfish.pod:554
15803 msgid ""
15804 "To use a literal argument which begins with a tilde, you have to quote it, "
15805 "eg:"
15806 msgstr ""
15807
15808 # type: verbatim
15809 #: ../fish/guestfish.pod:557
15810 #, no-wrap
15811 msgid ""
15812 " echo \"~\"\n"
15813 "\n"
15814 msgstr ""
15815
15816 # type: textblock
15817 #: ../fish/guestfish.pod:561
15818 msgid ""
15819 "Libguestfs has some support for Linux guests encrypted according to the "
15820 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
15821 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
15822 "LUKS is supported."
15823 msgstr ""
15824
15825 # type: textblock
15826 #: ../fish/guestfish.pod:566
15827 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
15828 msgstr ""
15829
15830 # type: verbatim
15831 #: ../fish/guestfish.pod:568
15832 #, no-wrap
15833 msgid ""
15834 " ><fs> vfs-type /dev/sda2\n"
15835 " crypto_LUKS\n"
15836 "\n"
15837 msgstr ""
15838
15839 # type: textblock
15840 #: ../fish/guestfish.pod:571
15841 msgid ""
15842 "Then open those devices using L</luks-open>.  This creates a device-mapper "
15843 "device called C</dev/mapper/luksdev>."
15844 msgstr ""
15845
15846 # type: verbatim
15847 #: ../fish/guestfish.pod:574
15848 #, no-wrap
15849 msgid ""
15850 " ><fs> luks-open /dev/sda2 luksdev\n"
15851 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
15852 "\n"
15853 msgstr ""
15854
15855 # type: textblock
15856 #: ../fish/guestfish.pod:577
15857 msgid ""
15858 "Finally you have to tell LVM to scan for volume groups on the newly created "
15859 "mapper device:"
15860 msgstr ""
15861
15862 # type: verbatim
15863 #: ../fish/guestfish.pod:580
15864 #, no-wrap
15865 msgid ""
15866 " ><fs> vgscan\n"
15867 " ><fs> vg-activate-all true\n"
15868 "\n"
15869 msgstr ""
15870
15871 # type: textblock
15872 #: ../fish/guestfish.pod:583
15873 msgid "The logical volume(s) can now be mounted in the usual way."
15874 msgstr ""
15875
15876 # type: textblock
15877 #: ../fish/guestfish.pod:585
15878 msgid ""
15879 "Before closing a LUKS device you must unmount any logical volumes on it and "
15880 "deactivate the volume groups by calling C<vg-activate false VG> on each "
15881 "one.  Then you can close the mapper device:"
15882 msgstr ""
15883
15884 # type: verbatim
15885 #: ../fish/guestfish.pod:589
15886 #, no-wrap
15887 msgid ""
15888 " ><fs> vg-activate false /dev/VG\n"
15889 " ><fs> luks-close /dev/mapper/luksdev\n"
15890 "\n"
15891 msgstr ""
15892
15893 # type: =head1
15894 #: ../fish/guestfish.pod:592
15895 msgid "WINDOWS PATHS"
15896 msgstr ""
15897
15898 # type: textblock
15899 #: ../fish/guestfish.pod:594
15900 msgid ""
15901 "If a path is prefixed with C<win:> then you can use Windows-style paths "
15902 "(with some limitations).  The following commands are equivalent:"
15903 msgstr ""
15904
15905 # type: verbatim
15906 #: ../fish/guestfish.pod:597
15907 #, no-wrap
15908 msgid ""
15909 " file /WINDOWS/system32/config/system.LOG\n"
15910 "\n"
15911 msgstr ""
15912
15913 # type: verbatim
15914 #: ../fish/guestfish.pod:599
15915 #, no-wrap
15916 msgid ""
15917 " file win:/windows/system32/config/system.log\n"
15918 "\n"
15919 msgstr ""
15920
15921 # type: verbatim
15922 #: ../fish/guestfish.pod:601
15923 #, no-wrap
15924 msgid ""
15925 " file win:\\windows\\system32\\config\\system.log\n"
15926 "\n"
15927 msgstr ""
15928
15929 # type: verbatim
15930 #: ../fish/guestfish.pod:603
15931 #, no-wrap
15932 msgid ""
15933 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
15934 "\n"
15935 msgstr ""
15936
15937 # type: textblock
15938 #: ../fish/guestfish.pod:605
15939 msgid ""
15940 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
15941 "handles case insensitivity like Windows would.  This only works in argument "
15942 "positions that expect a path."
15943 msgstr ""
15944
15945 # type: =head1
15946 #: ../fish/guestfish.pod:609
15947 msgid "UPLOADING AND DOWNLOADING FILES"
15948 msgstr ""
15949
15950 # type: textblock
15951 #: ../fish/guestfish.pod:611
15952 msgid ""
15953 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
15954 "others which upload from or download to a local file, you can use the "
15955 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
15956 msgstr ""
15957
15958 # type: verbatim
15959 #: ../fish/guestfish.pod:615
15960 #, no-wrap
15961 msgid ""
15962 " upload - /foo\n"
15963 "\n"
15964 msgstr ""
15965
15966 # type: textblock
15967 #: ../fish/guestfish.pod:617
15968 msgid ""
15969 "reads stdin and creates from that a file C</foo> in the disk image, and:"
15970 msgstr ""
15971
15972 # type: verbatim
15973 #: ../fish/guestfish.pod:620
15974 #, no-wrap
15975 msgid ""
15976 " tar-out /etc - | tar tf -\n"
15977 "\n"
15978 msgstr ""
15979
15980 # type: textblock
15981 #: ../fish/guestfish.pod:622
15982 msgid ""
15983 "writes the tarball to stdout and then pipes that into the external \"tar\" "
15984 "command (see L</PIPES>)."
15985 msgstr ""
15986
15987 # type: textblock
15988 #: ../fish/guestfish.pod:625
15989 msgid ""
15990 "When using C<-> to read from stdin, the input is read up to the end of "
15991 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
15992 "some arbitrary end marker:"
15993 msgstr ""
15994
15995 # type: verbatim
15996 #: ../fish/guestfish.pod:629
15997 #, no-wrap
15998 msgid ""
15999 " upload -<<END /foo\n"
16000 " input line 1\n"
16001 " input line 2\n"
16002 " input line 3\n"
16003 " END\n"
16004 "\n"
16005 msgstr ""
16006
16007 # type: textblock
16008 #: ../fish/guestfish.pod:635
16009 msgid ""
16010 "Any string of characters can be used instead of C<END>.  The end marker must "
16011 "appear on a line of its own, without any preceeding or following characters "
16012 "(not even spaces)."
16013 msgstr ""
16014
16015 # type: textblock
16016 #: ../fish/guestfish.pod:639
16017 msgid ""
16018 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
16019 "upload local files (so-called \"FileIn\" parameters in the generator)."
16020 msgstr ""
16021
16022 # type: =head1
16023 #: ../fish/guestfish.pod:642
16024 msgid "EXIT ON ERROR BEHAVIOUR"
16025 msgstr ""
16026
16027 # type: textblock
16028 #: ../fish/guestfish.pod:644
16029 msgid ""
16030 "By default, guestfish will ignore any errors when in interactive mode (ie. "
16031 "taking commands from a human over a tty), and will exit on the first error "
16032 "in non-interactive mode (scripts, commands given on the command line)."
16033 msgstr ""
16034
16035 # type: textblock
16036 #: ../fish/guestfish.pod:649
16037 msgid ""
16038 "If you prefix a command with a I<-> character, then that command will not "
16039 "cause guestfish to exit, even if that (one) command returns an error."
16040 msgstr ""
16041
16042 # type: =head1
16043 #: ../fish/guestfish.pod:653
16044 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
16045 msgstr ""
16046
16047 # type: textblock
16048 #: ../fish/guestfish.pod:655
16049 msgid ""
16050 "Guestfish can be remote-controlled over a socket.  This is useful "
16051 "particularly in shell scripts where you want to make several different "
16052 "changes to a filesystem, but you don't want the overhead of starting up a "
16053 "guestfish process each time."
16054 msgstr ""
16055
16056 # type: textblock
16057 #: ../fish/guestfish.pod:660
16058 msgid "Start a guestfish server process using:"
16059 msgstr ""
16060
16061 # type: verbatim
16062 #: ../fish/guestfish.pod:662
16063 #, no-wrap
16064 msgid ""
16065 " eval `guestfish --listen`\n"
16066 "\n"
16067 msgstr ""
16068
16069 # type: textblock
16070 #: ../fish/guestfish.pod:664
16071 msgid "and then send it commands by doing:"
16072 msgstr ""
16073
16074 # type: verbatim
16075 #: ../fish/guestfish.pod:666
16076 #, no-wrap
16077 msgid ""
16078 " guestfish --remote cmd [...]\n"
16079 "\n"
16080 msgstr ""
16081
16082 # type: textblock
16083 #: ../fish/guestfish.pod:668
16084 msgid "To cause the server to exit, send it the exit command:"
16085 msgstr ""
16086
16087 # type: verbatim
16088 #: ../fish/guestfish.pod:670
16089 #, no-wrap
16090 msgid ""
16091 " guestfish --remote exit\n"
16092 "\n"
16093 msgstr ""
16094
16095 # type: textblock
16096 #: ../fish/guestfish.pod:672
16097 msgid ""
16098 "Note that the server will normally exit if there is an error in a command.  "
16099 "You can change this in the usual way.  See section L</EXIT ON ERROR "
16100 "BEHAVIOUR>."
16101 msgstr ""
16102
16103 # type: =head2
16104 #: ../fish/guestfish.pod:676
16105 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
16106 msgstr ""
16107
16108 # type: textblock
16109 #: ../fish/guestfish.pod:678
16110 msgid ""
16111 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
16112 "is how the I<--remote> option knows where to send the commands.  You can "
16113 "have several guestfish listener processes running using:"
16114 msgstr ""
16115
16116 # type: verbatim
16117 #: ../fish/guestfish.pod:682
16118 #, no-wrap
16119 msgid ""
16120 " eval `guestfish --listen`\n"
16121 " pid1=$GUESTFISH_PID\n"
16122 " eval `guestfish --listen`\n"
16123 " pid2=$GUESTFISH_PID\n"
16124 " ...\n"
16125 " guestfish --remote=$pid1 cmd\n"
16126 " guestfish --remote=$pid2 cmd\n"
16127 "\n"
16128 msgstr ""
16129
16130 # type: =head2
16131 #: ../fish/guestfish.pod:690
16132 msgid "REMOTE CONTROL DETAILS"
16133 msgstr ""
16134
16135 # type: textblock
16136 #: ../fish/guestfish.pod:692
16137 msgid ""
16138 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
16139 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
16140 "and C<$PID> is the process ID of the server."
16141 msgstr ""
16142
16143 # type: textblock
16144 #: ../fish/guestfish.pod:696
16145 msgid "Guestfish client and server versions must match exactly."
16146 msgstr ""
16147
16148 # type: =head1
16149 #: ../fish/guestfish.pod:698
16150 msgid "PREPARED DISK IMAGES"
16151 msgstr ""
16152
16153 # type: textblock
16154 #: ../fish/guestfish.pod:700
16155 msgid ""
16156 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
16157 "preformatted disk images that guestfish can make for you to save typing.  "
16158 "This is particularly useful for testing purposes.  This option is used "
16159 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
16160 "can be mixed with I<-a>)."
16161 msgstr ""
16162
16163 # type: textblock
16164 #: ../fish/guestfish.pod:706
16165 msgid ""
16166 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
16167 "the second and so on.  Existing files in the current directory are "
16168 "I<overwritten>."
16169 msgstr ""
16170
16171 # type: textblock
16172 #: ../fish/guestfish.pod:710
16173 msgid ""
16174 "The type briefly describes how the disk should be sized, partitioned, how "
16175 "filesystem(s) should be created, and how content should be added.  "
16176 "Optionally the type can be followed by extra parameters, separated by C<:> "
16177 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
16178 "allocated disk, containing a single partition, with the partition formatted "
16179 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
16180 "disk instead."
16181 msgstr ""
16182
16183 # type: textblock
16184 #: ../fish/guestfish.pod:718
16185 msgid "To list the available types and any extra parameters they take, run:"
16186 msgstr ""
16187
16188 # type: textblock
16189 #: ../fish/guestfish.pod:722
16190 msgid ""
16191 "Note that the prepared filesystem is not mounted.  You would usually have to "
16192 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
16193 msgstr ""
16194
16195 # type: textblock
16196 #: ../fish/guestfish.pod:726
16197 msgid ""
16198 "If any I<-N> or I<--new> options are given, the guest is automatically "
16199 "launched."
16200 msgstr ""
16201
16202 # type: textblock
16203 #: ../fish/guestfish.pod:731
16204 msgid "Create a 100MB disk with an ext4-formatted partition:"
16205 msgstr ""
16206
16207 # type: verbatim
16208 #: ../fish/guestfish.pod:733
16209 #, no-wrap
16210 msgid ""
16211 " guestfish -N fs:ext4\n"
16212 "\n"
16213 msgstr ""
16214
16215 # type: textblock
16216 #: ../fish/guestfish.pod:735
16217 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
16218 msgstr ""
16219
16220 # type: verbatim
16221 #: ../fish/guestfish.pod:737
16222 #, no-wrap
16223 msgid ""
16224 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
16225 "\n"
16226 msgstr ""
16227
16228 # type: textblock
16229 #: ../fish/guestfish.pod:739
16230 msgid "Create a blank 200MB disk:"
16231 msgstr ""
16232
16233 # type: verbatim
16234 #: ../fish/guestfish.pod:741
16235 #, no-wrap
16236 msgid ""
16237 " guestfish -N disk:200M\n"
16238 "\n"
16239 msgstr ""
16240
16241 # type: =head1
16242 #: ../fish/guestfish.pod:743
16243 msgid "PROGRESS BARS"
16244 msgstr ""
16245
16246 # type: textblock
16247 #: ../fish/guestfish.pod:745
16248 msgid ""
16249 "Some (not all) long-running commands send progress notification messages as "
16250 "they are running.  Guestfish turns these messages into progress bars."
16251 msgstr ""
16252
16253 # type: textblock
16254 #: ../fish/guestfish.pod:749
16255 msgid ""
16256 "When a command that supports progress bars takes longer than two seconds to "
16257 "run, and if progress bars are enabled, then you will see one appearing below "
16258 "the command:"
16259 msgstr ""
16260
16261 # type: verbatim
16262 #: ../fish/guestfish.pod:753
16263 #, no-wrap
16264 msgid ""
16265 " ><fs> copy-size /large-file /another-file 2048M\n"
16266 " / 10% [#####-----------------------------------------] 00:30\n"
16267 "\n"
16268 msgstr ""
16269
16270 # type: textblock
16271 #: ../fish/guestfish.pod:756
16272 msgid ""
16273 "The spinner on the left hand side moves round once for every progress "
16274 "notification received from the backend.  This is a (reasonably) golden "
16275 "assurance that the command is \"doing something\" even if the progress bar "
16276 "is not moving, because the command is able to send the progress "
16277 "notifications.  When the bar reaches 100% and the command finishes, the "
16278 "spinner disappears."
16279 msgstr ""
16280
16281 # type: textblock
16282 #: ../fish/guestfish.pod:763
16283 msgid ""
16284 "Progress bars are enabled by default when guestfish is used interactively.  "
16285 "You can enable them even for non-interactive modes using I<--progress-bars>, "
16286 "and you can disable them completely using I<--no-progress-bars>."
16287 msgstr ""
16288
16289 # type: =head1
16290 #: ../fish/guestfish.pod:768
16291 msgid "GUESTFISH COMMANDS"
16292 msgstr ""
16293
16294 # type: textblock
16295 #: ../fish/guestfish.pod:770
16296 msgid ""
16297 "The commands in this section are guestfish convenience commands, in other "
16298 "words, they are not part of the L<guestfs(3)> API."
16299 msgstr ""
16300
16301 # type: =head2
16302 #: ../fish/guestfish.pod:773
16303 msgid "alloc | allocate"
16304 msgstr ""
16305
16306 # type: verbatim
16307 #: ../fish/guestfish.pod:775
16308 #, no-wrap
16309 msgid ""
16310 " alloc filename size\n"
16311 "\n"
16312 msgstr ""
16313
16314 # type: textblock
16315 #: ../fish/guestfish.pod:777
16316 msgid ""
16317 "This creates an empty (zeroed) file of the given size, and then adds so it "
16318 "can be further examined."
16319 msgstr ""
16320
16321 # type: textblock
16322 #: ../fish/guestfish.pod:780 ../fish/guestfish.pod:903
16323 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16324 msgstr ""
16325
16326 # type: textblock
16327 #: ../fish/guestfish.pod:782 ../fish/guestfish.pod:905
16328 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16329 msgstr ""
16330
16331 # type: =head2
16332 #: ../fish/guestfish.pod:784
16333 msgid "copy-in"
16334 msgstr ""
16335
16336 # type: verbatim
16337 #: ../fish/guestfish.pod:786
16338 #, no-wrap
16339 msgid ""
16340 " copy-in local [local ...] /remotedir\n"
16341 "\n"
16342 msgstr ""
16343
16344 # type: textblock
16345 #: ../fish/guestfish.pod:788
16346 msgid ""
16347 "C<copy-in> copies local files or directories recursively into the disk "
16348 "image, placing them in the directory called C</remotedir> (which must "
16349 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16350 "other commands as necessary."
16351 msgstr ""
16352
16353 # type: textblock
16354 #: ../fish/guestfish.pod:793
16355 msgid ""
16356 "Multiple local files and directories can be specified, but the last "
16357 "parameter must always be a remote directory.  Wildcards cannot be used."
16358 msgstr ""
16359
16360 # type: =head2
16361 #: ../fish/guestfish.pod:797
16362 msgid "copy-out"
16363 msgstr ""
16364
16365 # type: verbatim
16366 #: ../fish/guestfish.pod:799
16367 #, no-wrap
16368 msgid ""
16369 " copy-out remote [remote ...] localdir\n"
16370 "\n"
16371 msgstr ""
16372
16373 # type: textblock
16374 #: ../fish/guestfish.pod:801
16375 msgid ""
16376 "C<copy-out> copies remote files or directories recursively out of the disk "
16377 "image, placing them on the host disk in a local directory called C<localdir> "
16378 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16379 "download>, L</tar-out> and other commands as necessary."
16380 msgstr ""
16381
16382 # type: textblock
16383 #: ../fish/guestfish.pod:807
16384 msgid ""
16385 "Multiple remote files and directories can be specified, but the last "
16386 "parameter must always be a local directory.  To download to the current "
16387 "directory, use C<.> as in:"
16388 msgstr ""
16389
16390 # type: verbatim
16391 #: ../fish/guestfish.pod:811
16392 #, no-wrap
16393 msgid ""
16394 " copy-out /home .\n"
16395 "\n"
16396 msgstr ""
16397
16398 # type: textblock
16399 #: ../fish/guestfish.pod:813
16400 msgid ""
16401 "Wildcards cannot be used in the ordinary command, but you can use them with "
16402 "the help of L</glob> like this:"
16403 msgstr ""
16404
16405 # type: verbatim
16406 #: ../fish/guestfish.pod:816
16407 #, no-wrap
16408 msgid ""
16409 " glob copy-out /home/* .\n"
16410 "\n"
16411 msgstr ""
16412
16413 # type: =head2
16414 #: ../fish/guestfish.pod:818
16415 msgid "echo"
16416 msgstr ""
16417
16418 # type: verbatim
16419 #: ../fish/guestfish.pod:820
16420 #, no-wrap
16421 msgid ""
16422 " echo [params ...]\n"
16423 "\n"
16424 msgstr ""
16425
16426 # type: textblock
16427 #: ../fish/guestfish.pod:822
16428 msgid "This echos the parameters to the terminal."
16429 msgstr ""
16430
16431 # type: =head2
16432 #: ../fish/guestfish.pod:824
16433 msgid "edit | vi | emacs"
16434 msgstr ""
16435
16436 # type: verbatim
16437 #: ../fish/guestfish.pod:826
16438 #, no-wrap
16439 msgid ""
16440 " edit filename\n"
16441 "\n"
16442 msgstr ""
16443
16444 # type: textblock
16445 #: ../fish/guestfish.pod:828
16446 msgid ""
16447 "This is used to edit a file.  It downloads the file, edits it locally using "
16448 "your editor, then uploads the result."
16449 msgstr ""
16450
16451 # type: textblock
16452 #: ../fish/guestfish.pod:831
16453 msgid ""
16454 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16455 "or C<emacs> you will get those corresponding editors."
16456 msgstr ""
16457
16458 # type: =head2
16459 #: ../fish/guestfish.pod:835
16460 msgid "glob"
16461 msgstr ""
16462
16463 # type: verbatim
16464 #: ../fish/guestfish.pod:837
16465 #, no-wrap
16466 msgid ""
16467 " glob command args...\n"
16468 "\n"
16469 msgstr ""
16470
16471 # type: textblock
16472 #: ../fish/guestfish.pod:839
16473 msgid ""
16474 "Expand wildcards in any paths in the args list, and run C<command> "
16475 "repeatedly on each matching path."
16476 msgstr ""
16477
16478 # type: textblock
16479 #: ../fish/guestfish.pod:842
16480 msgid "See section WILDCARDS AND GLOBBING."
16481 msgstr ""
16482
16483 # type: =head2
16484 #: ../fish/guestfish.pod:844
16485 msgid "help"
16486 msgstr ""
16487
16488 # type: verbatim
16489 #: ../fish/guestfish.pod:846
16490 #, no-wrap
16491 msgid ""
16492 " help\n"
16493 " help cmd\n"
16494 "\n"
16495 msgstr ""
16496
16497 # type: textblock
16498 #: ../fish/guestfish.pod:849
16499 msgid ""
16500 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
16501 "this displays detailed help for a command."
16502 msgstr ""
16503
16504 # type: =head2
16505 #: ../fish/guestfish.pod:852
16506 msgid "lcd"
16507 msgstr ""
16508
16509 # type: verbatim
16510 #: ../fish/guestfish.pod:854
16511 #, no-wrap
16512 msgid ""
16513 " lcd directory\n"
16514 "\n"
16515 msgstr ""
16516
16517 # type: textblock
16518 #: ../fish/guestfish.pod:856
16519 msgid ""
16520 "Change the local directory, ie. the current directory of guestfish itself."
16521 msgstr ""
16522
16523 # type: textblock
16524 #: ../fish/guestfish.pod:859
16525 msgid "Note that C<!cd> won't do what you might expect."
16526 msgstr ""
16527
16528 # type: =head2
16529 #: ../fish/guestfish.pod:861
16530 msgid "man | manual"
16531 msgstr ""
16532
16533 # type: verbatim
16534 #: ../fish/guestfish.pod:863
16535 #, no-wrap
16536 msgid ""
16537 " man\n"
16538 "\n"
16539 msgstr ""
16540
16541 # type: textblock
16542 #: ../fish/guestfish.pod:865
16543 msgid "Opens the manual page for guestfish."
16544 msgstr ""
16545
16546 # type: =head2
16547 #: ../fish/guestfish.pod:867
16548 msgid "more | less"
16549 msgstr ""
16550
16551 # type: verbatim
16552 #: ../fish/guestfish.pod:869
16553 #, no-wrap
16554 msgid ""
16555 " more filename\n"
16556 "\n"
16557 msgstr ""
16558
16559 # type: verbatim
16560 #: ../fish/guestfish.pod:871
16561 #, no-wrap
16562 msgid ""
16563 " less filename\n"
16564 "\n"
16565 msgstr ""
16566
16567 # type: textblock
16568 #: ../fish/guestfish.pod:873
16569 msgid "This is used to view a file."
16570 msgstr ""
16571
16572 # type: textblock
16573 #: ../fish/guestfish.pod:875
16574 msgid ""
16575 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16576 "C<less> you will get the C<less> command specifically."
16577 msgstr ""
16578
16579 # type: =head2
16580 #: ../fish/guestfish.pod:878
16581 msgid "quit | exit"
16582 msgstr ""
16583
16584 # type: textblock
16585 #: ../fish/guestfish.pod:880
16586 msgid "This exits guestfish.  You can also use C<^D> key."
16587 msgstr ""
16588
16589 # type: =head2
16590 #: ../fish/guestfish.pod:882
16591 msgid "reopen"
16592 msgstr ""
16593
16594 # type: verbatim
16595 #: ../fish/guestfish.pod:884
16596 #, no-wrap
16597 msgid ""
16598 " reopen\n"
16599 "\n"
16600 msgstr ""
16601
16602 # type: textblock
16603 #: ../fish/guestfish.pod:886
16604 msgid ""
16605 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16606 "normally, because the handle is closed properly when guestfish exits.  "
16607 "However this is occasionally useful for testing."
16608 msgstr ""
16609
16610 # type: =head2
16611 #: ../fish/guestfish.pod:890
16612 msgid "sparse"
16613 msgstr ""
16614
16615 # type: verbatim
16616 #: ../fish/guestfish.pod:892
16617 #, no-wrap
16618 msgid ""
16619 " sparse filename size\n"
16620 "\n"
16621 msgstr ""
16622
16623 # type: textblock
16624 #: ../fish/guestfish.pod:894
16625 msgid ""
16626 "This creates an empty sparse file of the given size, and then adds so it can "
16627 "be further examined."
16628 msgstr ""
16629
16630 # type: textblock
16631 #: ../fish/guestfish.pod:897
16632 msgid ""
16633 "In all respects it works the same as the C<alloc> command, except that the "
16634 "image file is allocated sparsely, which means that disk blocks are not "
16635 "assigned to the file until they are needed.  Sparse disk files only use "
16636 "space when written to, but they are slower and there is a danger you could "
16637 "run out of real disk space during a write operation."
16638 msgstr ""
16639
16640 # type: =head2
16641 #: ../fish/guestfish.pod:907
16642 msgid "supported"
16643 msgstr ""
16644
16645 # type: verbatim
16646 #: ../fish/guestfish.pod:909
16647 #, no-wrap
16648 msgid ""
16649 " supported\n"
16650 "\n"
16651 msgstr ""
16652
16653 # type: textblock
16654 #: ../fish/guestfish.pod:911
16655 msgid ""
16656 "This command returns a list of the optional groups known to the daemon, and "
16657 "indicates which ones are supported by this build of the libguestfs appliance."
16658 msgstr ""
16659
16660 # type: textblock
16661 #: ../fish/guestfish.pod:915
16662 msgid "See also L<guestfs(3)/AVAILABILITY>."
16663 msgstr ""
16664
16665 # type: =head2
16666 #: ../fish/guestfish.pod:917
16667 msgid "time"
16668 msgstr ""
16669
16670 # type: verbatim
16671 #: ../fish/guestfish.pod:919
16672 #, no-wrap
16673 msgid ""
16674 " time command args...\n"
16675 "\n"
16676 msgstr ""
16677
16678 # type: textblock
16679 #: ../fish/guestfish.pod:921
16680 msgid ""
16681 "Run the command as usual, but print the elapsed time afterwards.  This can "
16682 "be useful for benchmarking operations."
16683 msgstr ""
16684
16685 # type: =head1
16686 #: ../fish/guestfish.pod:924
16687 msgid "COMMANDS"
16688 msgstr ""
16689
16690 # type: =head1
16691 #: ../fish/guestfish.pod:928 ../test-tool/libguestfs-test-tool.pod:83
16692 msgid "EXIT CODE"
16693 msgstr ""
16694
16695 # type: textblock
16696 #: ../fish/guestfish.pod:930
16697 msgid ""
16698 "guestfish returns 0 if the commands completed without error, or 1 if there "
16699 "was an error."
16700 msgstr ""
16701
16702 # type: =item
16703 #: ../fish/guestfish.pod:937
16704 msgid "EDITOR"
16705 msgstr ""
16706
16707 # type: textblock
16708 #: ../fish/guestfish.pod:939
16709 msgid ""
16710 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
16711 "C<vi>."
16712 msgstr ""
16713
16714 # type: =item
16715 #: ../fish/guestfish.pod:942
16716 msgid "GUESTFISH_PID"
16717 msgstr ""
16718
16719 # type: textblock
16720 #: ../fish/guestfish.pod:944
16721 msgid ""
16722 "Used with the I<--remote> option to specify the remote guestfish process to "
16723 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
16724 msgstr ""
16725
16726 # type: =item
16727 #: ../fish/guestfish.pod:948
16728 msgid "HOME"
16729 msgstr ""
16730
16731 # type: textblock
16732 #: ../fish/guestfish.pod:950
16733 msgid ""
16734 "If compiled with GNU readline support, various files in the home directory "
16735 "can be used.  See L</FILES>."
16736 msgstr ""
16737
16738 # type: textblock
16739 #: ../fish/guestfish.pod:959
16740 msgid ""
16741 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
16742 "effect as using the B<-v> option."
16743 msgstr ""
16744
16745 # type: textblock
16746 #: ../fish/guestfish.pod:971
16747 msgid ""
16748 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
16749 "the discussion of paths in L<guestfs(3)>."
16750 msgstr ""
16751
16752 # type: textblock
16753 #: ../fish/guestfish.pod:982
16754 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
16755 msgstr ""
16756
16757 # type: =item
16758 #: ../fish/guestfish.pod:984
16759 msgid "PAGER"
16760 msgstr ""
16761
16762 # type: textblock
16763 #: ../fish/guestfish.pod:986
16764 msgid ""
16765 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
16766 "C<more>."
16767 msgstr ""
16768
16769 # type: =head1
16770 #: ../fish/guestfish.pod:1001 ../test-tool/libguestfs-test-tool.pod:88
16771 msgid "FILES"
16772 msgstr ""
16773
16774 # type: =item
16775 #: ../fish/guestfish.pod:1005
16776 msgid "$HOME/.guestfish"
16777 msgstr ""
16778
16779 # type: textblock
16780 #: ../fish/guestfish.pod:1007
16781 msgid ""
16782 "If compiled with GNU readline support, then the command history is saved in "
16783 "this file."
16784 msgstr ""
16785
16786 # type: =item
16787 #: ../fish/guestfish.pod:1010
16788 msgid "$HOME/.inputrc"
16789 msgstr ""
16790
16791 # type: =item
16792 #: ../fish/guestfish.pod:1012
16793 msgid "/etc/inputrc"
16794 msgstr ""
16795
16796 # type: textblock
16797 #: ../fish/guestfish.pod:1014
16798 msgid ""
16799 "If compiled with GNU readline support, then these files can be used to "
16800 "configure readline.  For further information, please see L<readline(3)/"
16801 "INITIALIZATION FILE>."
16802 msgstr ""
16803
16804 # type: textblock
16805 #: ../fish/guestfish.pod:1018
16806 msgid "To write rules which only apply to guestfish, use:"
16807 msgstr ""
16808
16809 # type: verbatim
16810 #: ../fish/guestfish.pod:1020
16811 #, no-wrap
16812 msgid ""
16813 " $if guestfish\n"
16814 " ...\n"
16815 " $endif\n"
16816 "\n"
16817 msgstr ""
16818
16819 # type: textblock
16820 #: ../fish/guestfish.pod:1024
16821 msgid ""
16822 "Variables that you can set in inputrc that change the behaviour of guestfish "
16823 "in useful ways include:"
16824 msgstr ""
16825
16826 # type: =item
16827 #: ../fish/guestfish.pod:1029
16828 msgid "completion-ignore-case (default: on)"
16829 msgstr ""
16830
16831 # type: textblock
16832 #: ../fish/guestfish.pod:1031
16833 msgid ""
16834 "By default, guestfish will ignore case when tab-completing paths on the "
16835 "disk.  Use:"
16836 msgstr ""
16837
16838 # type: verbatim
16839 #: ../fish/guestfish.pod:1034
16840 #, no-wrap
16841 msgid ""
16842 " set completion-ignore-case off\n"
16843 "\n"
16844 msgstr ""
16845
16846 # type: textblock
16847 #: ../fish/guestfish.pod:1036
16848 msgid "to make guestfish case sensitive."
16849 msgstr ""
16850
16851 # type: =item
16852 #: ../fish/guestfish.pod:1040
16853 msgid "test1.img"
16854 msgstr ""
16855
16856 # type: =item
16857 #: ../fish/guestfish.pod:1042
16858 msgid "test2.img (etc)"
16859 msgstr ""
16860
16861 # type: textblock
16862 #: ../fish/guestfish.pod:1044
16863 msgid ""
16864 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
16865 "will be created in the file C<test1.img> in the current directory.  The "
16866 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
16867 "the same name will be overwritten."
16868 msgstr ""
16869
16870 # type: textblock
16871 #: ../fish/guestfish.pod:1053
16872 msgid ""
16873 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
16874 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
16875 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
16876 "L<virt-tar(1)>, L<virt-win-reg(1)>."
16877 msgstr ""
16878
16879 # type: textblock
16880 #: ../fish/guestfish.pod:1076 ../test-tool/libguestfs-test-tool.pod:124
16881 #: ../fuse/guestmount.pod:198 ../inspector/virt-inspector.pl:865
16882 #: ../tools/virt-cat.pl:181 ../tools/virt-df.pl:499 ../tools/virt-edit.pl:345
16883 #: ../tools/virt-list-filesystems.pl:211 ../tools/virt-list-partitions.pl:248
16884 #: ../tools/virt-ls.pl:229 ../tools/virt-make-fs.pl:560
16885 #: ../tools/virt-rescue.pl:249 ../tools/virt-resize.pl:1415
16886 #: ../tools/virt-tar.pl:276 ../tools/virt-win-reg.pl:495
16887 msgid ""
16888 "This program is free software; you can redistribute it and/or modify it "
16889 "under the terms of the GNU General Public License as published by the Free "
16890 "Software Foundation; either version 2 of the License, or (at your option) "
16891 "any later version."
16892 msgstr ""
16893
16894 # type: textblock
16895 #: ../fish/guestfish.pod:1081 ../test-tool/libguestfs-test-tool.pod:129
16896 #: ../fuse/guestmount.pod:203 ../inspector/virt-inspector.pl:870
16897 #: ../tools/virt-cat.pl:186 ../tools/virt-df.pl:504 ../tools/virt-edit.pl:350
16898 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:253
16899 #: ../tools/virt-ls.pl:234 ../tools/virt-make-fs.pl:565
16900 #: ../tools/virt-rescue.pl:254 ../tools/virt-resize.pl:1420
16901 #: ../tools/virt-tar.pl:281 ../tools/virt-win-reg.pl:500
16902 msgid ""
16903 "This program is distributed in the hope that it will be useful, but WITHOUT "
16904 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
16905 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
16906 "more details."
16907 msgstr ""
16908
16909 # type: textblock
16910 #: ../fish/guestfish.pod:1086 ../test-tool/libguestfs-test-tool.pod:134
16911 #: ../fuse/guestmount.pod:208 ../inspector/virt-inspector.pl:875
16912 #: ../tools/virt-cat.pl:191 ../tools/virt-df.pl:509 ../tools/virt-edit.pl:355
16913 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:258
16914 #: ../tools/virt-ls.pl:239 ../tools/virt-make-fs.pl:570
16915 #: ../tools/virt-rescue.pl:259 ../tools/virt-resize.pl:1425
16916 #: ../tools/virt-tar.pl:286 ../tools/virt-win-reg.pl:505
16917 msgid ""
16918 "You should have received a copy of the GNU General Public License along with "
16919 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
16920 "Ave, Cambridge, MA 02139, USA."
16921 msgstr ""
16922
16923 # type: =head2
16924 #: ../fish/guestfish-actions.pod:1
16925 msgid "add-cdrom | cdrom"
16926 msgstr ""
16927
16928 # type: verbatim
16929 #: ../fish/guestfish-actions.pod:3
16930 #, no-wrap
16931 msgid ""
16932 " add-cdrom filename\n"
16933 "\n"
16934 msgstr ""
16935
16936 # type: textblock
16937 #: ../fish/guestfish-actions.pod:15
16938 msgid ""
16939 "This call checks for the existence of C<filename>.  This stops you from "
16940 "specifying other types of drive which are supported by qemu such as C<nbd:> "
16941 "and C<http:> URLs.  To specify those, use the general C<config> call instead."
16942 msgstr ""
16943
16944 # type: textblock
16945 #: ../fish/guestfish-actions.pod:22
16946 msgid ""
16947 "If you just want to add an ISO file (often you use this as an efficient way "
16948 "to transfer large files into the guest), then you should probably use C<add-"
16949 "drive-ro> instead."
16950 msgstr ""
16951
16952 # type: =head2
16953 #: ../fish/guestfish-actions.pod:28
16954 msgid "add-drive | add"
16955 msgstr ""
16956
16957 # type: verbatim
16958 #: ../fish/guestfish-actions.pod:30
16959 #, no-wrap
16960 msgid ""
16961 " add-drive filename\n"
16962 "\n"
16963 msgstr ""
16964
16965 # type: textblock
16966 #: ../fish/guestfish-actions.pod:49 ../fish/guestfish-actions.pod:75
16967 msgid ""
16968 "C<if=...> is set at compile time by the configuration option C<./configure --"
16969 "with-drive-if=...>.  In the rare case where you might need to change this at "
16970 "run time, use C<add-drive-with-if> or C<add-drive-ro-with-if>."
16971 msgstr ""
16972
16973 # type: textblock
16974 #: ../fish/guestfish-actions.pod:54 ../fish/guestfish-actions.pod:80
16975 msgid ""
16976 "Note that this call checks for the existence of C<filename>.  This stops you "
16977 "from specifying other types of drive which are supported by qemu such as "
16978 "C<nbd:> and C<http:> URLs.  To specify those, use the general C<config> call "
16979 "instead."
16980 msgstr ""
16981
16982 # type: =head2
16983 #: ../fish/guestfish-actions.pod:59
16984 msgid "add-drive-ro | add-ro"
16985 msgstr ""
16986
16987 # type: verbatim
16988 #: ../fish/guestfish-actions.pod:61
16989 #, no-wrap
16990 msgid ""
16991 " add-drive-ro filename\n"
16992 "\n"
16993 msgstr ""
16994
16995 # type: =head2
16996 #: ../fish/guestfish-actions.pod:85
16997 msgid "add-drive-ro-with-if"
16998 msgstr ""
16999
17000 # type: verbatim
17001 #: ../fish/guestfish-actions.pod:87
17002 #, no-wrap
17003 msgid ""
17004 " add-drive-ro-with-if filename iface\n"
17005 "\n"
17006 msgstr ""
17007
17008 # type: textblock
17009 #: ../fish/guestfish-actions.pod:89
17010 msgid ""
17011 "This is the same as C<add-drive-ro> but it allows you to specify the QEMU "
17012 "interface emulation to use at run time."
17013 msgstr ""
17014
17015 # type: =head2
17016 #: ../fish/guestfish-actions.pod:92
17017 msgid "add-drive-with-if"
17018 msgstr ""
17019
17020 # type: verbatim
17021 #: ../fish/guestfish-actions.pod:94
17022 #, no-wrap
17023 msgid ""
17024 " add-drive-with-if filename iface\n"
17025 "\n"
17026 msgstr ""
17027
17028 # type: textblock
17029 #: ../fish/guestfish-actions.pod:96
17030 msgid ""
17031 "This is the same as C<add-drive> but it allows you to specify the QEMU "
17032 "interface emulation to use at run time."
17033 msgstr ""
17034
17035 # type: =head2
17036 #: ../fish/guestfish-actions.pod:99
17037 msgid "aug-clear"
17038 msgstr ""
17039
17040 # type: verbatim
17041 #: ../fish/guestfish-actions.pod:101
17042 #, no-wrap
17043 msgid ""
17044 " aug-clear augpath\n"
17045 "\n"
17046 msgstr ""
17047
17048 # type: =head2
17049 #: ../fish/guestfish-actions.pod:106
17050 msgid "aug-close"
17051 msgstr ""
17052
17053 # type: verbatim
17054 #: ../fish/guestfish-actions.pod:108
17055 #, no-wrap
17056 msgid ""
17057 " aug-close\n"
17058 "\n"
17059 msgstr ""
17060
17061 # type: textblock
17062 #: ../fish/guestfish-actions.pod:110
17063 msgid ""
17064 "Close the current Augeas handle and free up any resources used by it.  After "
17065 "calling this, you have to call C<aug-init> again before you can use any "
17066 "other Augeas functions."
17067 msgstr ""
17068
17069 # type: =head2
17070 #: ../fish/guestfish-actions.pod:115
17071 msgid "aug-defnode"
17072 msgstr ""
17073
17074 # type: verbatim
17075 #: ../fish/guestfish-actions.pod:117
17076 #, no-wrap
17077 msgid ""
17078 " aug-defnode name expr val\n"
17079 "\n"
17080 msgstr ""
17081
17082 # type: textblock
17083 #: ../fish/guestfish-actions.pod:122
17084 msgid ""
17085 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
17086 "calling C<aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
17087 "containing that single node."
17088 msgstr ""
17089
17090 # type: =head2
17091 #: ../fish/guestfish-actions.pod:130
17092 msgid "aug-defvar"
17093 msgstr ""
17094
17095 # type: verbatim
17096 #: ../fish/guestfish-actions.pod:132
17097 #, no-wrap
17098 msgid ""
17099 " aug-defvar name expr\n"
17100 "\n"
17101 msgstr ""
17102
17103 # type: =head2
17104 #: ../fish/guestfish-actions.pod:141
17105 msgid "aug-get"
17106 msgstr ""
17107
17108 # type: verbatim
17109 #: ../fish/guestfish-actions.pod:143
17110 #, no-wrap
17111 msgid ""
17112 " aug-get augpath\n"
17113 "\n"
17114 msgstr ""
17115
17116 # type: =head2
17117 #: ../fish/guestfish-actions.pod:148
17118 msgid "aug-init"
17119 msgstr ""
17120
17121 # type: verbatim
17122 #: ../fish/guestfish-actions.pod:150
17123 #, no-wrap
17124 msgid ""
17125 " aug-init root flags\n"
17126 "\n"
17127 msgstr ""
17128
17129 # type: textblock
17130 #: ../fish/guestfish-actions.pod:156
17131 msgid "You must call this before using any other C<aug-*> commands."
17132 msgstr ""
17133
17134 # type: textblock
17135 #: ../fish/guestfish-actions.pod:191
17136 msgid "Do not load the tree in C<aug-init>."
17137 msgstr ""
17138
17139 # type: textblock
17140 #: ../fish/guestfish-actions.pod:195
17141 msgid "To close the handle, you can call C<aug-close>."
17142 msgstr ""
17143
17144 # type: =head2
17145 #: ../fish/guestfish-actions.pod:199
17146 msgid "aug-insert"
17147 msgstr ""
17148
17149 # type: verbatim
17150 #: ../fish/guestfish-actions.pod:201
17151 #, no-wrap
17152 msgid ""
17153 " aug-insert augpath label true|false\n"
17154 "\n"
17155 msgstr ""
17156
17157 # type: =head2
17158 #: ../fish/guestfish-actions.pod:211
17159 msgid "aug-load"
17160 msgstr ""
17161
17162 # type: verbatim
17163 #: ../fish/guestfish-actions.pod:213
17164 #, no-wrap
17165 msgid ""
17166 " aug-load\n"
17167 "\n"
17168 msgstr ""
17169
17170 # type: =head2
17171 #: ../fish/guestfish-actions.pod:220
17172 msgid "aug-ls"
17173 msgstr ""
17174
17175 # type: verbatim
17176 #: ../fish/guestfish-actions.pod:222
17177 #, no-wrap
17178 msgid ""
17179 " aug-ls augpath\n"
17180 "\n"
17181 msgstr ""
17182
17183 # type: textblock
17184 #: ../fish/guestfish-actions.pod:224
17185 msgid ""
17186 "This is just a shortcut for listing C<aug-match> C<path/*> and sorting the "
17187 "resulting nodes into alphabetical order."
17188 msgstr ""
17189
17190 # type: =head2
17191 #: ../fish/guestfish-actions.pod:227
17192 msgid "aug-match"
17193 msgstr ""
17194
17195 # type: verbatim
17196 #: ../fish/guestfish-actions.pod:229
17197 #, no-wrap
17198 msgid ""
17199 " aug-match augpath\n"
17200 "\n"
17201 msgstr ""
17202
17203 # type: =head2
17204 #: ../fish/guestfish-actions.pod:235
17205 msgid "aug-mv"
17206 msgstr ""
17207
17208 # type: verbatim
17209 #: ../fish/guestfish-actions.pod:237
17210 #, no-wrap
17211 msgid ""
17212 " aug-mv src dest\n"
17213 "\n"
17214 msgstr ""
17215
17216 # type: =head2
17217 #: ../fish/guestfish-actions.pod:242
17218 msgid "aug-rm"
17219 msgstr ""
17220
17221 # type: verbatim
17222 #: ../fish/guestfish-actions.pod:244
17223 #, no-wrap
17224 msgid ""
17225 " aug-rm augpath\n"
17226 "\n"
17227 msgstr ""
17228
17229 # type: =head2
17230 #: ../fish/guestfish-actions.pod:250
17231 msgid "aug-save"
17232 msgstr ""
17233
17234 # type: verbatim
17235 #: ../fish/guestfish-actions.pod:252
17236 #, no-wrap
17237 msgid ""
17238 " aug-save\n"
17239 "\n"
17240 msgstr ""
17241
17242 # type: textblock
17243 #: ../fish/guestfish-actions.pod:256
17244 msgid ""
17245 "The flags which were passed to C<aug-init> affect exactly how files are "
17246 "saved."
17247 msgstr ""
17248
17249 # type: =head2
17250 #: ../fish/guestfish-actions.pod:259
17251 msgid "aug-set"
17252 msgstr ""
17253
17254 # type: verbatim
17255 #: ../fish/guestfish-actions.pod:261
17256 #, no-wrap
17257 msgid ""
17258 " aug-set augpath val\n"
17259 "\n"
17260 msgstr ""
17261
17262 # type: textblock
17263 #: ../fish/guestfish-actions.pod:265
17264 msgid ""
17265 "In the Augeas API, it is possible to clear a node by setting the value to "
17266 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17267 "this call.  Instead you must use the C<aug-clear> call."
17268 msgstr ""
17269
17270 # type: =head2
17271 #: ../fish/guestfish-actions.pod:270
17272 msgid "available"
17273 msgstr ""
17274
17275 # type: verbatim
17276 #: ../fish/guestfish-actions.pod:272
17277 #, no-wrap
17278 msgid ""
17279 " available 'groups ...'\n"
17280 "\n"
17281 msgstr ""
17282
17283 # type: textblock
17284 #: ../fish/guestfish-actions.pod:278
17285 msgid ""
17286 "The libguestfs groups, and the functions that those groups correspond to, "
17287 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17288 "runtime by calling C<available-all-groups>."
17289 msgstr ""
17290
17291 # type: textblock
17292 #: ../fish/guestfish-actions.pod:302
17293 msgid "You must call C<launch> before calling this function."
17294 msgstr ""
17295
17296 # type: textblock
17297 #: ../fish/guestfish-actions.pod:324
17298 msgid ""
17299 "This call was added in version C<1.0.80>.  In previous versions of "
17300 "libguestfs all you could do would be to speculatively execute a command to "
17301 "find out if the daemon implemented it.  See also C<version>."
17302 msgstr ""
17303
17304 # type: =head2
17305 #: ../fish/guestfish-actions.pod:331
17306 msgid "available-all-groups"
17307 msgstr ""
17308
17309 # type: verbatim
17310 #: ../fish/guestfish-actions.pod:333
17311 #, no-wrap
17312 msgid ""
17313 " available-all-groups\n"
17314 "\n"
17315 msgstr ""
17316
17317 # type: textblock
17318 #: ../fish/guestfish-actions.pod:335
17319 msgid ""
17320 "This command returns a list of all optional groups that this daemon knows "
17321 "about.  Note this returns both supported and unsupported groups.  To find "
17322 "out which ones the daemon can actually support you have to call C<available> "
17323 "on each member of the returned list."
17324 msgstr ""
17325
17326 # type: textblock
17327 #: ../fish/guestfish-actions.pod:341
17328 msgid "See also C<available> and L<guestfs(3)/AVAILABILITY>."
17329 msgstr ""
17330
17331 # type: =head2
17332 #: ../fish/guestfish-actions.pod:343
17333 msgid "base64-in"
17334 msgstr ""
17335
17336 # type: verbatim
17337 #: ../fish/guestfish-actions.pod:345
17338 #, no-wrap
17339 msgid ""
17340 " base64-in (base64file|-) filename\n"
17341 "\n"
17342 msgstr ""
17343
17344 # type: textblock
17345 #: ../fish/guestfish-actions.pod:350 ../fish/guestfish-actions.pod:359
17346 #: ../fish/guestfish-actions.pod:583 ../fish/guestfish-actions.pod:730
17347 #: ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:1154
17348 #: ../fish/guestfish-actions.pod:3752 ../fish/guestfish-actions.pod:3764
17349 #: ../fish/guestfish-actions.pod:3775 ../fish/guestfish-actions.pod:3786
17350 #: ../fish/guestfish-actions.pod:3838 ../fish/guestfish-actions.pod:3847
17351 #: ../fish/guestfish-actions.pod:3897
17352 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17353 msgstr ""
17354
17355 # type: =head2
17356 #: ../fish/guestfish-actions.pod:352
17357 msgid "base64-out"
17358 msgstr ""
17359
17360 # type: verbatim
17361 #: ../fish/guestfish-actions.pod:354
17362 #, no-wrap
17363 msgid ""
17364 " base64-out filename (base64file|-)\n"
17365 "\n"
17366 msgstr ""
17367
17368 # type: =head2
17369 #: ../fish/guestfish-actions.pod:361
17370 msgid "blockdev-flushbufs"
17371 msgstr ""
17372
17373 # type: verbatim
17374 #: ../fish/guestfish-actions.pod:363
17375 #, no-wrap
17376 msgid ""
17377 " blockdev-flushbufs device\n"
17378 "\n"
17379 msgstr ""
17380
17381 # type: =head2
17382 #: ../fish/guestfish-actions.pod:370
17383 msgid "blockdev-getbsz"
17384 msgstr ""
17385
17386 # type: verbatim
17387 #: ../fish/guestfish-actions.pod:372
17388 #, no-wrap
17389 msgid ""
17390 " blockdev-getbsz device\n"
17391 "\n"
17392 msgstr ""
17393
17394 # type: =head2
17395 #: ../fish/guestfish-actions.pod:381
17396 msgid "blockdev-getro"
17397 msgstr ""
17398
17399 # type: verbatim
17400 #: ../fish/guestfish-actions.pod:383
17401 #, no-wrap
17402 msgid ""
17403 " blockdev-getro device\n"
17404 "\n"
17405 msgstr ""
17406
17407 # type: =head2
17408 #: ../fish/guestfish-actions.pod:390
17409 msgid "blockdev-getsize64"
17410 msgstr ""
17411
17412 # type: verbatim
17413 #: ../fish/guestfish-actions.pod:392
17414 #, no-wrap
17415 msgid ""
17416 " blockdev-getsize64 device\n"
17417 "\n"
17418 msgstr ""
17419
17420 # type: textblock
17421 #: ../fish/guestfish-actions.pod:396
17422 msgid "See also C<blockdev-getsz>."
17423 msgstr ""
17424
17425 # type: =head2
17426 #: ../fish/guestfish-actions.pod:400
17427 msgid "blockdev-getss"
17428 msgstr ""
17429
17430 # type: verbatim
17431 #: ../fish/guestfish-actions.pod:402
17432 #, no-wrap
17433 msgid ""
17434 " blockdev-getss device\n"
17435 "\n"
17436 msgstr ""
17437
17438 # type: textblock
17439 #: ../fish/guestfish-actions.pod:407
17440 msgid ""
17441 "(Note, this is not the size in sectors, use C<blockdev-getsz> for that)."
17442 msgstr ""
17443
17444 # type: =head2
17445 #: ../fish/guestfish-actions.pod:412
17446 msgid "blockdev-getsz"
17447 msgstr ""
17448
17449 # type: verbatim
17450 #: ../fish/guestfish-actions.pod:414
17451 #, no-wrap
17452 msgid ""
17453 " blockdev-getsz device\n"
17454 "\n"
17455 msgstr ""
17456
17457 # type: textblock
17458 #: ../fish/guestfish-actions.pod:419
17459 msgid ""
17460 "See also C<blockdev-getss> for the real sector size of the device, and "
17461 "C<blockdev-getsize64> for the more useful I<size in bytes>."
17462 msgstr ""
17463
17464 # type: =head2
17465 #: ../fish/guestfish-actions.pod:425
17466 msgid "blockdev-rereadpt"
17467 msgstr ""
17468
17469 # type: verbatim
17470 #: ../fish/guestfish-actions.pod:427
17471 #, no-wrap
17472 msgid ""
17473 " blockdev-rereadpt device\n"
17474 "\n"
17475 msgstr ""
17476
17477 # type: =head2
17478 #: ../fish/guestfish-actions.pod:433
17479 msgid "blockdev-setbsz"
17480 msgstr ""
17481
17482 # type: verbatim
17483 #: ../fish/guestfish-actions.pod:435
17484 #, no-wrap
17485 msgid ""
17486 " blockdev-setbsz device blocksize\n"
17487 "\n"
17488 msgstr ""
17489
17490 # type: =head2
17491 #: ../fish/guestfish-actions.pod:444
17492 msgid "blockdev-setro"
17493 msgstr ""
17494
17495 # type: verbatim
17496 #: ../fish/guestfish-actions.pod:446
17497 #, no-wrap
17498 msgid ""
17499 " blockdev-setro device\n"
17500 "\n"
17501 msgstr ""
17502
17503 # type: =head2
17504 #: ../fish/guestfish-actions.pod:452
17505 msgid "blockdev-setrw"
17506 msgstr ""
17507
17508 # type: verbatim
17509 #: ../fish/guestfish-actions.pod:454
17510 #, no-wrap
17511 msgid ""
17512 " blockdev-setrw device\n"
17513 "\n"
17514 msgstr ""
17515
17516 # type: =head2
17517 #: ../fish/guestfish-actions.pod:460
17518 msgid "case-sensitive-path"
17519 msgstr ""
17520
17521 # type: verbatim
17522 #: ../fish/guestfish-actions.pod:462
17523 #, no-wrap
17524 msgid ""
17525 " case-sensitive-path path\n"
17526 "\n"
17527 msgstr ""
17528
17529 # type: textblock
17530 #: ../fish/guestfish-actions.pod:486
17531 msgid ""
17532 "Thus C<case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
17533 "WINDOWS/system32\"> (the exact return value would depend on details of how "
17534 "the directories were originally created under Windows)."
17535 msgstr ""
17536
17537 # type: textblock
17538 #: ../fish/guestfish-actions.pod:494
17539 msgid "See also C<realpath>."
17540 msgstr ""
17541
17542 # type: =head2
17543 #: ../fish/guestfish-actions.pod:496
17544 msgid "cat"
17545 msgstr ""
17546
17547 # type: verbatim
17548 #: ../fish/guestfish-actions.pod:498
17549 #, no-wrap
17550 msgid ""
17551 " cat path\n"
17552 "\n"
17553 msgstr ""
17554
17555 # type: textblock
17556 #: ../fish/guestfish-actions.pod:502
17557 msgid ""
17558 "Note that this function cannot correctly handle binary files (specifically, "
17559 "files containing C<\\0> character which is treated as end of string).  For "
17560 "those you need to use the C<read-file> or C<download> functions which have a "
17561 "more complex interface."
17562 msgstr ""
17563
17564 # type: =head2
17565 #: ../fish/guestfish-actions.pod:510
17566 msgid "checksum"
17567 msgstr ""
17568
17569 # type: verbatim
17570 #: ../fish/guestfish-actions.pod:512
17571 #, no-wrap
17572 msgid ""
17573 " checksum csumtype path\n"
17574 "\n"
17575 msgstr ""
17576
17577 # type: textblock
17578 #: ../fish/guestfish-actions.pod:555
17579 msgid "To get the checksum for a device, use C<checksum-device>."
17580 msgstr ""
17581
17582 # type: textblock
17583 #: ../fish/guestfish-actions.pod:557
17584 msgid "To get the checksums for many files, use C<checksums-out>."
17585 msgstr ""
17586
17587 # type: =head2
17588 #: ../fish/guestfish-actions.pod:559
17589 msgid "checksum-device"
17590 msgstr ""
17591
17592 # type: verbatim
17593 #: ../fish/guestfish-actions.pod:561
17594 #, no-wrap
17595 msgid ""
17596 " checksum-device csumtype device\n"
17597 "\n"
17598 msgstr ""
17599
17600 # type: textblock
17601 #: ../fish/guestfish-actions.pod:563
17602 msgid ""
17603 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
17604 "device named C<device>.  For the types of checksums supported see the "
17605 "C<checksum> command."
17606 msgstr ""
17607
17608 # type: =head2
17609 #: ../fish/guestfish-actions.pod:567
17610 msgid "checksums-out"
17611 msgstr ""
17612
17613 # type: verbatim
17614 #: ../fish/guestfish-actions.pod:569
17615 #, no-wrap
17616 msgid ""
17617 " checksums-out csumtype directory (sumsfile|-)\n"
17618 "\n"
17619 msgstr ""
17620
17621 # type: =head2
17622 #: ../fish/guestfish-actions.pod:585
17623 msgid "chmod"
17624 msgstr ""
17625
17626 # type: verbatim
17627 #: ../fish/guestfish-actions.pod:587
17628 #, no-wrap
17629 msgid ""
17630 " chmod mode path\n"
17631 "\n"
17632 msgstr ""
17633
17634 # type: =head2
17635 #: ../fish/guestfish-actions.pod:598
17636 msgid "chown"
17637 msgstr ""
17638
17639 # type: verbatim
17640 #: ../fish/guestfish-actions.pod:600
17641 #, no-wrap
17642 msgid ""
17643 " chown owner group path\n"
17644 "\n"
17645 msgstr ""
17646
17647 # type: =head2
17648 #: ../fish/guestfish-actions.pod:608
17649 msgid "command"
17650 msgstr ""
17651
17652 # type: verbatim
17653 #: ../fish/guestfish-actions.pod:610
17654 #, no-wrap
17655 msgid ""
17656 " command 'arguments ...'\n"
17657 "\n"
17658 msgstr ""
17659
17660 # type: textblock
17661 #: ../fish/guestfish-actions.pod:617
17662 msgid ""
17663 "The single parameter is an argv-style list of arguments.  The first element "
17664 "is the name of the program to run.  Subsequent elements are parameters.  The "
17665 "list must be non-empty (ie. must contain a program name).  Note that the "
17666 "command runs directly, and is I<not> invoked via the shell (see C<sh>)."
17667 msgstr ""
17668
17669 # type: =head2
17670 #: ../fish/guestfish-actions.pod:645
17671 msgid "command-lines"
17672 msgstr ""
17673
17674 # type: verbatim
17675 #: ../fish/guestfish-actions.pod:647
17676 #, no-wrap
17677 msgid ""
17678 " command-lines 'arguments ...'\n"
17679 "\n"
17680 msgstr ""
17681
17682 # type: textblock
17683 #: ../fish/guestfish-actions.pod:649
17684 msgid ""
17685 "This is the same as C<command>, but splits the result into a list of lines."
17686 msgstr ""
17687
17688 # type: textblock
17689 #: ../fish/guestfish-actions.pod:652
17690 msgid "See also: C<sh-lines>"
17691 msgstr ""
17692
17693 # type: =head2
17694 #: ../fish/guestfish-actions.pod:657
17695 msgid "config"
17696 msgstr ""
17697
17698 # type: verbatim
17699 #: ../fish/guestfish-actions.pod:659
17700 #, no-wrap
17701 msgid ""
17702 " config qemuparam qemuvalue\n"
17703 "\n"
17704 msgstr ""
17705
17706 # type: =head2
17707 #: ../fish/guestfish-actions.pod:670
17708 msgid "copy-size"
17709 msgstr ""
17710
17711 # type: verbatim
17712 #: ../fish/guestfish-actions.pod:672
17713 #, no-wrap
17714 msgid ""
17715 " copy-size src dest size\n"
17716 "\n"
17717 msgstr ""
17718
17719 # type: =head2
17720 #: ../fish/guestfish-actions.pod:680
17721 msgid "cp"
17722 msgstr ""
17723
17724 # type: verbatim
17725 #: ../fish/guestfish-actions.pod:682
17726 #, no-wrap
17727 msgid ""
17728 " cp src dest\n"
17729 "\n"
17730 msgstr ""
17731
17732 # type: =head2
17733 #: ../fish/guestfish-actions.pod:687
17734 msgid "cp-a"
17735 msgstr ""
17736
17737 # type: verbatim
17738 #: ../fish/guestfish-actions.pod:689
17739 #, no-wrap
17740 msgid ""
17741 " cp-a src dest\n"
17742 "\n"
17743 msgstr ""
17744
17745 # type: =head2
17746 #: ../fish/guestfish-actions.pod:694
17747 msgid "dd"
17748 msgstr ""
17749
17750 # type: verbatim
17751 #: ../fish/guestfish-actions.pod:696
17752 #, no-wrap
17753 msgid ""
17754 " dd src dest\n"
17755 "\n"
17756 msgstr ""
17757
17758 # type: textblock
17759 #: ../fish/guestfish-actions.pod:703
17760 msgid ""
17761 "If the destination is a device, it must be as large or larger than the "
17762 "source file or device, otherwise the copy will fail.  This command cannot do "
17763 "partial copies (see C<copy-size>)."
17764 msgstr ""
17765
17766 # type: =head2
17767 #: ../fish/guestfish-actions.pod:707
17768 msgid "debug"
17769 msgstr ""
17770
17771 # type: verbatim
17772 #: ../fish/guestfish-actions.pod:709
17773 #, no-wrap
17774 msgid ""
17775 " debug subcmd 'extraargs ...'\n"
17776 "\n"
17777 msgstr ""
17778
17779 # type: textblock
17780 #: ../fish/guestfish-actions.pod:711
17781 msgid ""
17782 "The C<debug> command exposes some internals of C<guestfsd> (the guestfs "
17783 "daemon) that runs inside the qemu subprocess."
17784 msgstr ""
17785
17786 # type: =head2
17787 #: ../fish/guestfish-actions.pod:719
17788 msgid "debug-upload"
17789 msgstr ""
17790
17791 # type: verbatim
17792 #: ../fish/guestfish-actions.pod:721
17793 #, no-wrap
17794 msgid ""
17795 " debug-upload (filename|-) tmpname mode\n"
17796 "\n"
17797 msgstr ""
17798
17799 # type: textblock
17800 #: ../fish/guestfish-actions.pod:723
17801 msgid "The C<debug-upload> command uploads a file to the libguestfs appliance."
17802 msgstr ""
17803
17804 # type: =head2
17805 #: ../fish/guestfish-actions.pod:732
17806 msgid "df"
17807 msgstr ""
17808
17809 # type: verbatim
17810 #: ../fish/guestfish-actions.pod:734
17811 #, no-wrap
17812 msgid ""
17813 " df\n"
17814 "\n"
17815 msgstr ""
17816
17817 # type: =head2
17818 #: ../fish/guestfish-actions.pod:742
17819 msgid "df-h"
17820 msgstr ""
17821
17822 # type: verbatim
17823 #: ../fish/guestfish-actions.pod:744
17824 #, no-wrap
17825 msgid ""
17826 " df-h\n"
17827 "\n"
17828 msgstr ""
17829
17830 # type: =head2
17831 #: ../fish/guestfish-actions.pod:753
17832 msgid "dmesg"
17833 msgstr ""
17834
17835 # type: verbatim
17836 #: ../fish/guestfish-actions.pod:755
17837 #, no-wrap
17838 msgid ""
17839 " dmesg\n"
17840 "\n"
17841 msgstr ""
17842
17843 # type: textblock
17844 #: ../fish/guestfish-actions.pod:761
17845 msgid ""
17846 "Another way to get the same information is to enable verbose messages with "
17847 "C<set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
17848 "before running the program."
17849 msgstr ""
17850
17851 # type: =head2
17852 #: ../fish/guestfish-actions.pod:766
17853 msgid "download"
17854 msgstr ""
17855
17856 # type: verbatim
17857 #: ../fish/guestfish-actions.pod:768
17858 #, no-wrap
17859 msgid ""
17860 " download remotefilename (filename|-)\n"
17861 "\n"
17862 msgstr ""
17863
17864 # type: textblock
17865 #: ../fish/guestfish-actions.pod:775
17866 msgid "See also C<upload>, C<cat>."
17867 msgstr ""
17868
17869 # type: =head2
17870 #: ../fish/guestfish-actions.pod:779
17871 msgid "drop-caches"
17872 msgstr ""
17873
17874 # type: verbatim
17875 #: ../fish/guestfish-actions.pod:781
17876 #, no-wrap
17877 msgid ""
17878 " drop-caches whattodrop\n"
17879 "\n"
17880 msgstr ""
17881
17882 # type: =head2
17883 #: ../fish/guestfish-actions.pod:793
17884 msgid "du"
17885 msgstr ""
17886
17887 # type: verbatim
17888 #: ../fish/guestfish-actions.pod:795
17889 #, no-wrap
17890 msgid ""
17891 " du path\n"
17892 "\n"
17893 msgstr ""
17894
17895 # type: =head2
17896 #: ../fish/guestfish-actions.pod:807
17897 msgid "e2fsck-f"
17898 msgstr ""
17899
17900 # type: verbatim
17901 #: ../fish/guestfish-actions.pod:809
17902 #, no-wrap
17903 msgid ""
17904 " e2fsck-f device\n"
17905 "\n"
17906 msgstr ""
17907
17908 # type: textblock
17909 #: ../fish/guestfish-actions.pod:815
17910 msgid ""
17911 "This command is only needed because of C<resize2fs> (q.v.).  Normally you "
17912 "should use C<fsck>."
17913 msgstr ""
17914
17915 # type: =head2
17916 #: ../fish/guestfish-actions.pod:818
17917 msgid "echo-daemon"
17918 msgstr ""
17919
17920 # type: verbatim
17921 #: ../fish/guestfish-actions.pod:820
17922 #, no-wrap
17923 msgid ""
17924 " echo-daemon 'words ...'\n"
17925 "\n"
17926 msgstr ""
17927
17928 # type: textblock
17929 #: ../fish/guestfish-actions.pod:827
17930 msgid "See also C<ping-daemon>."
17931 msgstr ""
17932
17933 # type: =head2
17934 #: ../fish/guestfish-actions.pod:829
17935 msgid "egrep"
17936 msgstr ""
17937
17938 # type: verbatim
17939 #: ../fish/guestfish-actions.pod:831
17940 #, no-wrap
17941 msgid ""
17942 " egrep regex path\n"
17943 "\n"
17944 msgstr ""
17945
17946 # type: =head2
17947 #: ../fish/guestfish-actions.pod:839
17948 msgid "egrepi"
17949 msgstr ""
17950
17951 # type: verbatim
17952 #: ../fish/guestfish-actions.pod:841
17953 #, no-wrap
17954 msgid ""
17955 " egrepi regex path\n"
17956 "\n"
17957 msgstr ""
17958
17959 # type: =head2
17960 #: ../fish/guestfish-actions.pod:849
17961 msgid "equal"
17962 msgstr ""
17963
17964 # type: verbatim
17965 #: ../fish/guestfish-actions.pod:851
17966 #, no-wrap
17967 msgid ""
17968 " equal file1 file2\n"
17969 "\n"
17970 msgstr ""
17971
17972 # type: =head2
17973 #: ../fish/guestfish-actions.pod:858
17974 msgid "exists"
17975 msgstr ""
17976
17977 # type: verbatim
17978 #: ../fish/guestfish-actions.pod:860
17979 #, no-wrap
17980 msgid ""
17981 " exists path\n"
17982 "\n"
17983 msgstr ""
17984
17985 # type: textblock
17986 #: ../fish/guestfish-actions.pod:865
17987 msgid "See also C<is-file>, C<is-dir>, C<stat>."
17988 msgstr ""
17989
17990 # type: =head2
17991 #: ../fish/guestfish-actions.pod:867
17992 msgid "fallocate"
17993 msgstr ""
17994
17995 # type: verbatim
17996 #: ../fish/guestfish-actions.pod:869
17997 #, no-wrap
17998 msgid ""
17999 " fallocate path len\n"
18000 "\n"
18001 msgstr ""
18002
18003 # type: =head2
18004 #: ../fish/guestfish-actions.pod:886
18005 msgid "fallocate64"
18006 msgstr ""
18007
18008 # type: verbatim
18009 #: ../fish/guestfish-actions.pod:888
18010 #, no-wrap
18011 msgid ""
18012 " fallocate64 path len\n"
18013 "\n"
18014 msgstr ""
18015
18016 # type: textblock
18017 #: ../fish/guestfish-actions.pod:894
18018 msgid ""
18019 "Note that this call allocates disk blocks for the file.  To create a sparse "
18020 "file use C<truncate-size> instead."
18021 msgstr ""
18022
18023 # type: textblock
18024 #: ../fish/guestfish-actions.pod:897
18025 msgid ""
18026 "The deprecated call C<fallocate> does the same, but owing to an oversight it "
18027 "only allowed 30 bit lengths to be specified, effectively limiting the "
18028 "maximum size of files created through that call to 1GB."
18029 msgstr ""
18030
18031 # type: =head2
18032 #: ../fish/guestfish-actions.pod:906
18033 msgid "fgrep"
18034 msgstr ""
18035
18036 # type: verbatim
18037 #: ../fish/guestfish-actions.pod:908
18038 #, no-wrap
18039 msgid ""
18040 " fgrep pattern path\n"
18041 "\n"
18042 msgstr ""
18043
18044 # type: =head2
18045 #: ../fish/guestfish-actions.pod:916
18046 msgid "fgrepi"
18047 msgstr ""
18048
18049 # type: verbatim
18050 #: ../fish/guestfish-actions.pod:918
18051 #, no-wrap
18052 msgid ""
18053 " fgrepi pattern path\n"
18054 "\n"
18055 msgstr ""
18056
18057 # type: =head2
18058 #: ../fish/guestfish-actions.pod:926
18059 msgid "file"
18060 msgstr ""
18061
18062 # type: verbatim
18063 #: ../fish/guestfish-actions.pod:928
18064 #, no-wrap
18065 msgid ""
18066 " file path\n"
18067 "\n"
18068 msgstr ""
18069
18070 # type: textblock
18071 #: ../fish/guestfish-actions.pod:940
18072 msgid ""
18073 "This command can also be used on C</dev/> devices (and partitions, LV "
18074 "names).  You can for example use this to determine if a device contains a "
18075 "filesystem, although it's usually better to use C<vfs-type>."
18076 msgstr ""
18077
18078 # type: =head2
18079 #: ../fish/guestfish-actions.pod:950
18080 msgid "file-architecture"
18081 msgstr ""
18082
18083 # type: verbatim
18084 #: ../fish/guestfish-actions.pod:952
18085 #, no-wrap
18086 msgid ""
18087 " file-architecture filename\n"
18088 "\n"
18089 msgstr ""
18090
18091 # type: =head2
18092 #: ../fish/guestfish-actions.pod:1055
18093 msgid "filesize"
18094 msgstr ""
18095
18096 # type: verbatim
18097 #: ../fish/guestfish-actions.pod:1057
18098 #, no-wrap
18099 msgid ""
18100 " filesize file\n"
18101 "\n"
18102 msgstr ""
18103
18104 # type: textblock
18105 #: ../fish/guestfish-actions.pod:1061
18106 msgid ""
18107 "To get other stats about a file, use C<stat>, C<lstat>, C<is-dir>, C<is-"
18108 "file> etc.  To get the size of block devices, use C<blockdev-getsize64>."
18109 msgstr ""
18110
18111 # type: =head2
18112 #: ../fish/guestfish-actions.pod:1065
18113 msgid "fill"
18114 msgstr ""
18115
18116 # type: verbatim
18117 #: ../fish/guestfish-actions.pod:1067
18118 #, no-wrap
18119 msgid ""
18120 " fill c len path\n"
18121 "\n"
18122 msgstr ""
18123
18124 # type: textblock
18125 #: ../fish/guestfish-actions.pod:1073
18126 msgid ""
18127 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18128 "C<truncate-size>.  To create a file with a pattern of repeating bytes use "
18129 "C<fill-pattern>."
18130 msgstr ""
18131
18132 # type: =head2
18133 #: ../fish/guestfish-actions.pod:1078
18134 msgid "fill-pattern"
18135 msgstr ""
18136
18137 # type: verbatim
18138 #: ../fish/guestfish-actions.pod:1080
18139 #, no-wrap
18140 msgid ""
18141 " fill-pattern pattern len path\n"
18142 "\n"
18143 msgstr ""
18144
18145 # type: textblock
18146 #: ../fish/guestfish-actions.pod:1082
18147 msgid ""
18148 "This function is like C<fill> except that it creates a new file of length "
18149 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18150 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18151 "bytes."
18152 msgstr ""
18153
18154 # type: =head2
18155 #: ../fish/guestfish-actions.pod:1087
18156 msgid "find"
18157 msgstr ""
18158
18159 # type: verbatim
18160 #: ../fish/guestfish-actions.pod:1089
18161 #, no-wrap
18162 msgid ""
18163 " find directory\n"
18164 "\n"
18165 msgstr ""
18166
18167 # type: textblock
18168 #: ../fish/guestfish-actions.pod:1103
18169 msgid "then the returned list from C<find> C</tmp> would be 4 elements:"
18170 msgstr ""
18171
18172 # type: textblock
18173 #: ../fish/guestfish-actions.pod:1116
18174 msgid "See also C<find0>."
18175 msgstr ""
18176
18177 # type: =head2
18178 #: ../fish/guestfish-actions.pod:1121
18179 msgid "find0"
18180 msgstr ""
18181
18182 # type: verbatim
18183 #: ../fish/guestfish-actions.pod:1123
18184 #, no-wrap
18185 msgid ""
18186 " find0 directory (files|-)\n"
18187 "\n"
18188 msgstr ""
18189
18190 # type: textblock
18191 #: ../fish/guestfish-actions.pod:1129
18192 msgid ""
18193 "This command works the same way as C<find> with the following exceptions:"
18194 msgstr ""
18195
18196 # type: =head2
18197 #: ../fish/guestfish-actions.pod:1156
18198 msgid "findfs-label"
18199 msgstr ""
18200
18201 # type: verbatim
18202 #: ../fish/guestfish-actions.pod:1158
18203 #, no-wrap
18204 msgid ""
18205 " findfs-label label\n"
18206 "\n"
18207 msgstr ""
18208
18209 # type: textblock
18210 #: ../fish/guestfish-actions.pod:1164
18211 msgid "To find the label of a filesystem, use C<vfs-label>."
18212 msgstr ""
18213
18214 # type: =head2
18215 #: ../fish/guestfish-actions.pod:1166
18216 msgid "findfs-uuid"
18217 msgstr ""
18218
18219 # type: verbatim
18220 #: ../fish/guestfish-actions.pod:1168
18221 #, no-wrap
18222 msgid ""
18223 " findfs-uuid uuid\n"
18224 "\n"
18225 msgstr ""
18226
18227 # type: textblock
18228 #: ../fish/guestfish-actions.pod:1174
18229 msgid "To find the UUID of a filesystem, use C<vfs-uuid>."
18230 msgstr ""
18231
18232 # type: =head2
18233 #: ../fish/guestfish-actions.pod:1176
18234 msgid "fsck"
18235 msgstr ""
18236
18237 # type: verbatim
18238 #: ../fish/guestfish-actions.pod:1178
18239 #, no-wrap
18240 msgid ""
18241 " fsck fstype device\n"
18242 "\n"
18243 msgstr ""
18244
18245 # type: =head2
18246 #: ../fish/guestfish-actions.pod:1208
18247 msgid "get-append"
18248 msgstr ""
18249
18250 # type: verbatim
18251 #: ../fish/guestfish-actions.pod:1210
18252 #, no-wrap
18253 msgid ""
18254 " get-append\n"
18255 "\n"
18256 msgstr ""
18257
18258 # type: =head2
18259 #: ../fish/guestfish-actions.pod:1217
18260 msgid "get-autosync"
18261 msgstr ""
18262
18263 # type: verbatim
18264 #: ../fish/guestfish-actions.pod:1219
18265 #, no-wrap
18266 msgid ""
18267 " get-autosync\n"
18268 "\n"
18269 msgstr ""
18270
18271 # type: =head2
18272 #: ../fish/guestfish-actions.pod:1223
18273 msgid "get-direct"
18274 msgstr ""
18275
18276 # type: verbatim
18277 #: ../fish/guestfish-actions.pod:1225
18278 #, no-wrap
18279 msgid ""
18280 " get-direct\n"
18281 "\n"
18282 msgstr ""
18283
18284 # type: =head2
18285 #: ../fish/guestfish-actions.pod:1229
18286 msgid "get-e2label"
18287 msgstr ""
18288
18289 # type: verbatim
18290 #: ../fish/guestfish-actions.pod:1231
18291 #, no-wrap
18292 msgid ""
18293 " get-e2label device\n"
18294 "\n"
18295 msgstr ""
18296
18297 # type: =head2
18298 #: ../fish/guestfish-actions.pod:1243
18299 msgid "get-e2uuid"
18300 msgstr ""
18301
18302 # type: verbatim
18303 #: ../fish/guestfish-actions.pod:1245
18304 #, no-wrap
18305 msgid ""
18306 " get-e2uuid device\n"
18307 "\n"
18308 msgstr ""
18309
18310 # type: =head2
18311 #: ../fish/guestfish-actions.pod:1257
18312 msgid "get-memsize"
18313 msgstr ""
18314
18315 # type: verbatim
18316 #: ../fish/guestfish-actions.pod:1259
18317 #, no-wrap
18318 msgid ""
18319 " get-memsize\n"
18320 "\n"
18321 msgstr ""
18322
18323 # type: textblock
18324 #: ../fish/guestfish-actions.pod:1264
18325 msgid ""
18326 "If C<set-memsize> was not called on this handle, and if "
18327 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18328 "value for memsize."
18329 msgstr ""
18330
18331 # type: =head2
18332 #: ../fish/guestfish-actions.pod:1271
18333 msgid "get-network"
18334 msgstr ""
18335
18336 # type: verbatim
18337 #: ../fish/guestfish-actions.pod:1273
18338 #, no-wrap
18339 msgid ""
18340 " get-network\n"
18341 "\n"
18342 msgstr ""
18343
18344 # type: =head2
18345 #: ../fish/guestfish-actions.pod:1277
18346 msgid "get-path"
18347 msgstr ""
18348
18349 # type: verbatim
18350 #: ../fish/guestfish-actions.pod:1279
18351 #, no-wrap
18352 msgid ""
18353 " get-path\n"
18354 "\n"
18355 msgstr ""
18356
18357 # type: =head2
18358 #: ../fish/guestfish-actions.pod:1286
18359 msgid "get-pid | pid"
18360 msgstr ""
18361
18362 # type: verbatim
18363 #: ../fish/guestfish-actions.pod:1288
18364 #, no-wrap
18365 msgid ""
18366 " get-pid\n"
18367 "\n"
18368 msgstr ""
18369
18370 # type: =head2
18371 #: ../fish/guestfish-actions.pod:1295
18372 msgid "get-qemu"
18373 msgstr ""
18374
18375 # type: verbatim
18376 #: ../fish/guestfish-actions.pod:1297
18377 #, no-wrap
18378 msgid ""
18379 " get-qemu\n"
18380 "\n"
18381 msgstr ""
18382
18383 # type: =head2
18384 #: ../fish/guestfish-actions.pod:1304
18385 msgid "get-recovery-proc"
18386 msgstr ""
18387
18388 # type: verbatim
18389 #: ../fish/guestfish-actions.pod:1306
18390 #, no-wrap
18391 msgid ""
18392 " get-recovery-proc\n"
18393 "\n"
18394 msgstr ""
18395
18396 # type: =head2
18397 #: ../fish/guestfish-actions.pod:1310
18398 msgid "get-selinux"
18399 msgstr ""
18400
18401 # type: verbatim
18402 #: ../fish/guestfish-actions.pod:1312
18403 #, no-wrap
18404 msgid ""
18405 " get-selinux\n"
18406 "\n"
18407 msgstr ""
18408
18409 # type: textblock
18410 #: ../fish/guestfish-actions.pod:1314
18411 msgid ""
18412 "This returns the current setting of the selinux flag which is passed to the "
18413 "appliance at boot time.  See C<set-selinux>."
18414 msgstr ""
18415
18416 # type: =head2
18417 #: ../fish/guestfish-actions.pod:1320
18418 msgid "get-state"
18419 msgstr ""
18420
18421 # type: verbatim
18422 #: ../fish/guestfish-actions.pod:1322
18423 #, no-wrap
18424 msgid ""
18425 " get-state\n"
18426 "\n"
18427 msgstr ""
18428
18429 # type: =head2
18430 #: ../fish/guestfish-actions.pod:1329
18431 msgid "get-trace"
18432 msgstr ""
18433
18434 # type: verbatim
18435 #: ../fish/guestfish-actions.pod:1331
18436 #, no-wrap
18437 msgid ""
18438 " get-trace\n"
18439 "\n"
18440 msgstr ""
18441
18442 # type: =head2
18443 #: ../fish/guestfish-actions.pod:1335
18444 msgid "get-umask"
18445 msgstr ""
18446
18447 # type: verbatim
18448 #: ../fish/guestfish-actions.pod:1337
18449 #, no-wrap
18450 msgid ""
18451 " get-umask\n"
18452 "\n"
18453 msgstr ""
18454
18455 # type: textblock
18456 #: ../fish/guestfish-actions.pod:1339
18457 msgid ""
18458 "Return the current umask.  By default the umask is C<022> unless it has been "
18459 "set by calling C<umask>."
18460 msgstr ""
18461
18462 # type: =head2
18463 #: ../fish/guestfish-actions.pod:1342
18464 msgid "get-verbose"
18465 msgstr ""
18466
18467 # type: verbatim
18468 #: ../fish/guestfish-actions.pod:1344
18469 #, no-wrap
18470 msgid ""
18471 " get-verbose\n"
18472 "\n"
18473 msgstr ""
18474
18475 # type: =head2
18476 #: ../fish/guestfish-actions.pod:1348
18477 msgid "getcon"
18478 msgstr ""
18479
18480 # type: verbatim
18481 #: ../fish/guestfish-actions.pod:1350
18482 #, no-wrap
18483 msgid ""
18484 " getcon\n"
18485 "\n"
18486 msgstr ""
18487
18488 # type: textblock
18489 #: ../fish/guestfish-actions.pod:1354
18490 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<setcon>"
18491 msgstr ""
18492
18493 # type: =head2
18494 #: ../fish/guestfish-actions.pod:1357
18495 msgid "getxattrs"
18496 msgstr ""
18497
18498 # type: verbatim
18499 #: ../fish/guestfish-actions.pod:1359
18500 #, no-wrap
18501 msgid ""
18502 " getxattrs path\n"
18503 "\n"
18504 msgstr ""
18505
18506 # type: textblock
18507 #: ../fish/guestfish-actions.pod:1367
18508 msgid "See also: C<lgetxattrs>, L<attr(5)>."
18509 msgstr ""
18510
18511 # type: =head2
18512 #: ../fish/guestfish-actions.pod:1369
18513 msgid "glob-expand"
18514 msgstr ""
18515
18516 # type: verbatim
18517 #: ../fish/guestfish-actions.pod:1371
18518 #, no-wrap
18519 msgid ""
18520 " glob-expand pattern\n"
18521 "\n"
18522 msgstr ""
18523
18524 # type: =head2
18525 #: ../fish/guestfish-actions.pod:1384
18526 msgid "grep"
18527 msgstr ""
18528
18529 # type: verbatim
18530 #: ../fish/guestfish-actions.pod:1386
18531 #, no-wrap
18532 msgid ""
18533 " grep regex path\n"
18534 "\n"
18535 msgstr ""
18536
18537 # type: =head2
18538 #: ../fish/guestfish-actions.pod:1394
18539 msgid "grepi"
18540 msgstr ""
18541
18542 # type: verbatim
18543 #: ../fish/guestfish-actions.pod:1396
18544 #, no-wrap
18545 msgid ""
18546 " grepi regex path\n"
18547 "\n"
18548 msgstr ""
18549
18550 # type: =head2
18551 #: ../fish/guestfish-actions.pod:1404
18552 msgid "grub-install"
18553 msgstr ""
18554
18555 # type: verbatim
18556 #: ../fish/guestfish-actions.pod:1406
18557 #, no-wrap
18558 msgid ""
18559 " grub-install root device\n"
18560 "\n"
18561 msgstr ""
18562
18563 # type: =head2
18564 #: ../fish/guestfish-actions.pod:1422
18565 msgid "head"
18566 msgstr ""
18567
18568 # type: verbatim
18569 #: ../fish/guestfish-actions.pod:1424
18570 #, no-wrap
18571 msgid ""
18572 " head path\n"
18573 "\n"
18574 msgstr ""
18575
18576 # type: =head2
18577 #: ../fish/guestfish-actions.pod:1432
18578 msgid "head-n"
18579 msgstr ""
18580
18581 # type: verbatim
18582 #: ../fish/guestfish-actions.pod:1434
18583 #, no-wrap
18584 msgid ""
18585 " head-n nrlines path\n"
18586 "\n"
18587 msgstr ""
18588
18589 # type: =head2
18590 #: ../fish/guestfish-actions.pod:1447
18591 msgid "hexdump"
18592 msgstr ""
18593
18594 # type: verbatim
18595 #: ../fish/guestfish-actions.pod:1449
18596 #, no-wrap
18597 msgid ""
18598 " hexdump path\n"
18599 "\n"
18600 msgstr ""
18601
18602 # type: =head2
18603 #: ../fish/guestfish-actions.pod:1457
18604 msgid "initrd-cat"
18605 msgstr ""
18606
18607 # type: verbatim
18608 #: ../fish/guestfish-actions.pod:1459
18609 #, no-wrap
18610 msgid ""
18611 " initrd-cat initrdpath filename\n"
18612 "\n"
18613 msgstr ""
18614
18615 # type: textblock
18616 #: ../fish/guestfish-actions.pod:1471
18617 msgid "See also C<initrd-list>."
18618 msgstr ""
18619
18620 # type: =head2
18621 #: ../fish/guestfish-actions.pod:1476
18622 msgid "initrd-list"
18623 msgstr ""
18624
18625 # type: verbatim
18626 #: ../fish/guestfish-actions.pod:1478
18627 #, no-wrap
18628 msgid ""
18629 " initrd-list path\n"
18630 "\n"
18631 msgstr ""
18632
18633 # type: =head2
18634 #: ../fish/guestfish-actions.pod:1490
18635 msgid "inotify-add-watch"
18636 msgstr ""
18637
18638 # type: verbatim
18639 #: ../fish/guestfish-actions.pod:1492
18640 #, no-wrap
18641 msgid ""
18642 " inotify-add-watch path mask\n"
18643 "\n"
18644 msgstr ""
18645
18646 # type: =head2
18647 #: ../fish/guestfish-actions.pod:1504
18648 msgid "inotify-close"
18649 msgstr ""
18650
18651 # type: verbatim
18652 #: ../fish/guestfish-actions.pod:1506
18653 #, no-wrap
18654 msgid ""
18655 " inotify-close\n"
18656 "\n"
18657 msgstr ""
18658
18659 # type: =head2
18660 #: ../fish/guestfish-actions.pod:1512
18661 msgid "inotify-files"
18662 msgstr ""
18663
18664 # type: verbatim
18665 #: ../fish/guestfish-actions.pod:1514
18666 #, no-wrap
18667 msgid ""
18668 " inotify-files\n"
18669 "\n"
18670 msgstr ""
18671
18672 # type: textblock
18673 #: ../fish/guestfish-actions.pod:1516
18674 msgid ""
18675 "This function is a helpful wrapper around C<inotify-read> which just returns "
18676 "a list of pathnames of objects that were touched.  The returned pathnames "
18677 "are sorted and deduplicated."
18678 msgstr ""
18679
18680 # type: =head2
18681 #: ../fish/guestfish-actions.pod:1520
18682 msgid "inotify-init"
18683 msgstr ""
18684
18685 # type: verbatim
18686 #: ../fish/guestfish-actions.pod:1522
18687 #, no-wrap
18688 msgid ""
18689 " inotify-init maxevents\n"
18690 "\n"
18691 msgstr ""
18692
18693 # type: textblock
18694 #: ../fish/guestfish-actions.pod:1528
18695 msgid ""
18696 "C<maxevents> is the maximum number of events which will be queued up between "
18697 "calls to C<inotify-read> or C<inotify-files>.  If this is passed as C<0>, "
18698 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
18699 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
18700 "but records the fact that it threw them away by setting a flag "
18701 "C<IN_Q_OVERFLOW> in the returned structure list (see C<inotify-read>)."
18702 msgstr ""
18703
18704 # type: textblock
18705 #: ../fish/guestfish-actions.pod:1538
18706 msgid ""
18707 "Before any events are generated, you have to add some watches to the "
18708 "internal watch list.  See: C<inotify-add-watch>, C<inotify-rm-watch> and "
18709 "C<inotify-watch-all>."
18710 msgstr ""
18711
18712 # type: textblock
18713 #: ../fish/guestfish-actions.pod:1544
18714 msgid ""
18715 "Queued up events should be read periodically by calling C<inotify-read> (or "
18716 "C<inotify-files> which is just a helpful wrapper around C<inotify-read>).  "
18717 "If you don't read the events out often enough then you risk the internal "
18718 "queue overflowing."
18719 msgstr ""
18720
18721 # type: textblock
18722 #: ../fish/guestfish-actions.pod:1551
18723 msgid ""
18724 "The handle should be closed after use by calling C<inotify-close>.  This "
18725 "also removes any watches automatically."
18726 msgstr ""
18727
18728 # type: =head2
18729 #: ../fish/guestfish-actions.pod:1560
18730 msgid "inotify-read"
18731 msgstr ""
18732
18733 # type: verbatim
18734 #: ../fish/guestfish-actions.pod:1562
18735 #, no-wrap
18736 msgid ""
18737 " inotify-read\n"
18738 "\n"
18739 msgstr ""
18740
18741 # type: =head2
18742 #: ../fish/guestfish-actions.pod:1575
18743 msgid "inotify-rm-watch"
18744 msgstr ""
18745
18746 # type: verbatim
18747 #: ../fish/guestfish-actions.pod:1577
18748 #, no-wrap
18749 msgid ""
18750 " inotify-rm-watch wd\n"
18751 "\n"
18752 msgstr ""
18753
18754 # type: textblock
18755 #: ../fish/guestfish-actions.pod:1579
18756 msgid "Remove a previously defined inotify watch.  See C<inotify-add-watch>."
18757 msgstr ""
18758
18759 # type: =head2
18760 #: ../fish/guestfish-actions.pod:1582
18761 msgid "inspect-get-arch"
18762 msgstr ""
18763
18764 # type: verbatim
18765 #: ../fish/guestfish-actions.pod:1584
18766 #, no-wrap
18767 msgid ""
18768 " inspect-get-arch root\n"
18769 "\n"
18770 msgstr ""
18771
18772 # type: textblock
18773 #: ../fish/guestfish-actions.pod:1586 ../fish/guestfish-actions.pod:1602
18774 #: ../fish/guestfish-actions.pod:1648 ../fish/guestfish-actions.pod:1666
18775 #: ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:1702
18776 #: ../fish/guestfish-actions.pod:1725 ../fish/guestfish-actions.pod:1742
18777 msgid ""
18778 "This function should only be called with a root device string as returned by "
18779 "C<inspect-os>."
18780 msgstr ""
18781
18782 # type: textblock
18783 #: ../fish/guestfish-actions.pod:1589
18784 msgid ""
18785 "This returns the architecture of the inspected operating system.  The "
18786 "possible return values are listed under C<file-architecture>."
18787 msgstr ""
18788
18789 # type: =head2
18790 #: ../fish/guestfish-actions.pod:1598
18791 msgid "inspect-get-distro"
18792 msgstr ""
18793
18794 # type: verbatim
18795 #: ../fish/guestfish-actions.pod:1600
18796 #, no-wrap
18797 msgid ""
18798 " inspect-get-distro root\n"
18799 "\n"
18800 msgstr ""
18801
18802 # type: =head2
18803 #: ../fish/guestfish-actions.pod:1644
18804 msgid "inspect-get-filesystems"
18805 msgstr ""
18806
18807 # type: verbatim
18808 #: ../fish/guestfish-actions.pod:1646
18809 #, no-wrap
18810 msgid ""
18811 " inspect-get-filesystems root\n"
18812 "\n"
18813 msgstr ""
18814
18815 # type: textblock
18816 #: ../fish/guestfish-actions.pod:1659
18817 msgid ""
18818 "Please read L<guestfs(3)/INSPECTION> for more details.  See also C<inspect-"
18819 "get-mountpoints>."
18820 msgstr ""
18821
18822 # type: =head2
18823 #: ../fish/guestfish-actions.pod:1662
18824 msgid "inspect-get-major-version"
18825 msgstr ""
18826
18827 # type: verbatim
18828 #: ../fish/guestfish-actions.pod:1664
18829 #, no-wrap
18830 msgid ""
18831 " inspect-get-major-version root\n"
18832 "\n"
18833 msgstr ""
18834
18835 # type: =head2
18836 #: ../fish/guestfish-actions.pod:1683
18837 msgid "inspect-get-minor-version"
18838 msgstr ""
18839
18840 # type: verbatim
18841 #: ../fish/guestfish-actions.pod:1685
18842 #, no-wrap
18843 msgid ""
18844 " inspect-get-minor-version root\n"
18845 "\n"
18846 msgstr ""
18847
18848 # type: textblock
18849 #: ../fish/guestfish-actions.pod:1695
18850 msgid ""
18851 "Please read L<guestfs(3)/INSPECTION> for more details.  See also C<inspect-"
18852 "get-major-version>."
18853 msgstr ""
18854
18855 # type: =head2
18856 #: ../fish/guestfish-actions.pod:1698
18857 msgid "inspect-get-mountpoints"
18858 msgstr ""
18859
18860 # type: verbatim
18861 #: ../fish/guestfish-actions.pod:1700
18862 #, no-wrap
18863 msgid ""
18864 " inspect-get-mountpoints root\n"
18865 "\n"
18866 msgstr ""
18867
18868 # type: textblock
18869 #: ../fish/guestfish-actions.pod:1718
18870 msgid ""
18871 "Please read L<guestfs(3)/INSPECTION> for more details.  See also C<inspect-"
18872 "get-filesystems>."
18873 msgstr ""
18874
18875 # type: =head2
18876 #: ../fish/guestfish-actions.pod:1721
18877 msgid "inspect-get-product-name"
18878 msgstr ""
18879
18880 # type: verbatim
18881 #: ../fish/guestfish-actions.pod:1723
18882 #, no-wrap
18883 msgid ""
18884 " inspect-get-product-name root\n"
18885 "\n"
18886 msgstr ""
18887
18888 # type: =head2
18889 #: ../fish/guestfish-actions.pod:1738
18890 msgid "inspect-get-type"
18891 msgstr ""
18892
18893 # type: verbatim
18894 #: ../fish/guestfish-actions.pod:1740
18895 #, no-wrap
18896 msgid ""
18897 " inspect-get-type root\n"
18898 "\n"
18899 msgstr ""
18900
18901 # type: =head2
18902 #: ../fish/guestfish-actions.pod:1769
18903 msgid "inspect-os"
18904 msgstr ""
18905
18906 # type: verbatim
18907 #: ../fish/guestfish-actions.pod:1771
18908 #, no-wrap
18909 msgid ""
18910 " inspect-os\n"
18911 "\n"
18912 msgstr ""
18913
18914 # type: textblock
18915 #: ../fish/guestfish-actions.pod:1786
18916 msgid ""
18917 "You can pass the root string(s) returned to other C<inspect-get-*> functions "
18918 "in order to query further information about each operating system, such as "
18919 "the name and version."
18920 msgstr ""
18921
18922 # type: textblock
18923 #: ../fish/guestfish-actions.pod:1791
18924 msgid ""
18925 "This function uses other libguestfs features such as C<mount-ro> and "
18926 "C<umount-all> in order to mount and unmount filesystems and look at the "
18927 "contents.  This should be called with no disks currently mounted.  The "
18928 "function may also use Augeas, so any existing Augeas handle will be closed."
18929 msgstr ""
18930
18931 # type: textblock
18932 #: ../fish/guestfish-actions.pod:1803 ../fish/guestfish-actions.pod:1957
18933 #: ../fish/guestfish-actions.pod:2003
18934 msgid "See also C<list-filesystems>."
18935 msgstr ""
18936
18937 # type: =head2
18938 #: ../fish/guestfish-actions.pod:1805
18939 msgid "is-blockdev"
18940 msgstr ""
18941
18942 # type: verbatim
18943 #: ../fish/guestfish-actions.pod:1807
18944 #, no-wrap
18945 msgid ""
18946 " is-blockdev path\n"
18947 "\n"
18948 msgstr ""
18949
18950 # type: textblock
18951 #: ../fish/guestfish-actions.pod:1812 ../fish/guestfish-actions.pod:1830
18952 #: ../fish/guestfish-actions.pod:1849 ../fish/guestfish-actions.pod:1858
18953 #: ../fish/guestfish-actions.pod:1868 ../fish/guestfish-actions.pod:1902
18954 #: ../fish/guestfish-actions.pod:1911
18955 msgid "See also C<stat>."
18956 msgstr ""
18957
18958 # type: =head2
18959 #: ../fish/guestfish-actions.pod:1814
18960 msgid "is-busy"
18961 msgstr ""
18962
18963 # type: verbatim
18964 #: ../fish/guestfish-actions.pod:1816
18965 #, no-wrap
18966 msgid ""
18967 " is-busy\n"
18968 "\n"
18969 msgstr ""
18970
18971 # type: =head2
18972 #: ../fish/guestfish-actions.pod:1823
18973 msgid "is-chardev"
18974 msgstr ""
18975
18976 # type: verbatim
18977 #: ../fish/guestfish-actions.pod:1825
18978 #, no-wrap
18979 msgid ""
18980 " is-chardev path\n"
18981 "\n"
18982 msgstr ""
18983
18984 # type: =head2
18985 #: ../fish/guestfish-actions.pod:1832
18986 msgid "is-config"
18987 msgstr ""
18988
18989 # type: verbatim
18990 #: ../fish/guestfish-actions.pod:1834
18991 #, no-wrap
18992 msgid ""
18993 " is-config\n"
18994 "\n"
18995 msgstr ""
18996
18997 # type: =head2
18998 #: ../fish/guestfish-actions.pod:1841
18999 msgid "is-dir"
19000 msgstr ""
19001
19002 # type: verbatim
19003 #: ../fish/guestfish-actions.pod:1843
19004 #, no-wrap
19005 msgid ""
19006 " is-dir path\n"
19007 "\n"
19008 msgstr ""
19009
19010 # type: =head2
19011 #: ../fish/guestfish-actions.pod:1851
19012 msgid "is-fifo"
19013 msgstr ""
19014
19015 # type: verbatim
19016 #: ../fish/guestfish-actions.pod:1853
19017 #, no-wrap
19018 msgid ""
19019 " is-fifo path\n"
19020 "\n"
19021 msgstr ""
19022
19023 # type: =head2
19024 #: ../fish/guestfish-actions.pod:1860
19025 msgid "is-file"
19026 msgstr ""
19027
19028 # type: verbatim
19029 #: ../fish/guestfish-actions.pod:1862
19030 #, no-wrap
19031 msgid ""
19032 " is-file path\n"
19033 "\n"
19034 msgstr ""
19035
19036 # type: =head2
19037 #: ../fish/guestfish-actions.pod:1870
19038 msgid "is-launching"
19039 msgstr ""
19040
19041 # type: verbatim
19042 #: ../fish/guestfish-actions.pod:1872
19043 #, no-wrap
19044 msgid ""
19045 " is-launching\n"
19046 "\n"
19047 msgstr ""
19048
19049 # type: =head2
19050 #: ../fish/guestfish-actions.pod:1879
19051 msgid "is-lv"
19052 msgstr ""
19053
19054 # type: verbatim
19055 #: ../fish/guestfish-actions.pod:1881
19056 #, no-wrap
19057 msgid ""
19058 " is-lv device\n"
19059 "\n"
19060 msgstr ""
19061
19062 # type: =head2
19063 #: ../fish/guestfish-actions.pod:1886
19064 msgid "is-ready"
19065 msgstr ""
19066
19067 # type: verbatim
19068 #: ../fish/guestfish-actions.pod:1888
19069 #, no-wrap
19070 msgid ""
19071 " is-ready\n"
19072 "\n"
19073 msgstr ""
19074
19075 # type: =head2
19076 #: ../fish/guestfish-actions.pod:1895
19077 msgid "is-socket"
19078 msgstr ""
19079
19080 # type: verbatim
19081 #: ../fish/guestfish-actions.pod:1897
19082 #, no-wrap
19083 msgid ""
19084 " is-socket path\n"
19085 "\n"
19086 msgstr ""
19087
19088 # type: =head2
19089 #: ../fish/guestfish-actions.pod:1904
19090 msgid "is-symlink"
19091 msgstr ""
19092
19093 # type: verbatim
19094 #: ../fish/guestfish-actions.pod:1906
19095 #, no-wrap
19096 msgid ""
19097 " is-symlink path\n"
19098 "\n"
19099 msgstr ""
19100
19101 # type: =head2
19102 #: ../fish/guestfish-actions.pod:1913
19103 msgid "kill-subprocess"
19104 msgstr ""
19105
19106 # type: verbatim
19107 #: ../fish/guestfish-actions.pod:1915
19108 #, no-wrap
19109 msgid ""
19110 " kill-subprocess\n"
19111 "\n"
19112 msgstr ""
19113
19114 # type: =head2
19115 #: ../fish/guestfish-actions.pod:1919
19116 msgid "launch | run"
19117 msgstr ""
19118
19119 # type: verbatim
19120 #: ../fish/guestfish-actions.pod:1921
19121 #, no-wrap
19122 msgid ""
19123 " launch\n"
19124 "\n"
19125 msgstr ""
19126
19127 # type: =head2
19128 #: ../fish/guestfish-actions.pod:1929
19129 msgid "lchown"
19130 msgstr ""
19131
19132 # type: verbatim
19133 #: ../fish/guestfish-actions.pod:1931
19134 #, no-wrap
19135 msgid ""
19136 " lchown owner group path\n"
19137 "\n"
19138 msgstr ""
19139
19140 # type: textblock
19141 #: ../fish/guestfish-actions.pod:1933
19142 msgid ""
19143 "Change the file owner to C<owner> and group to C<group>.  This is like "
19144 "C<chown> but if C<path> is a symlink then the link itself is changed, not "
19145 "the target."
19146 msgstr ""
19147
19148 # type: =head2
19149 #: ../fish/guestfish-actions.pod:1941
19150 msgid "lgetxattrs"
19151 msgstr ""
19152
19153 # type: verbatim
19154 #: ../fish/guestfish-actions.pod:1943
19155 #, no-wrap
19156 msgid ""
19157 " lgetxattrs path\n"
19158 "\n"
19159 msgstr ""
19160
19161 # type: textblock
19162 #: ../fish/guestfish-actions.pod:1945
19163 msgid ""
19164 "This is the same as C<getxattrs>, but if C<path> is a symbolic link, then it "
19165 "returns the extended attributes of the link itself."
19166 msgstr ""
19167
19168 # type: =head2
19169 #: ../fish/guestfish-actions.pod:1949
19170 msgid "list-devices"
19171 msgstr ""
19172
19173 # type: verbatim
19174 #: ../fish/guestfish-actions.pod:1951
19175 #, no-wrap
19176 msgid ""
19177 " list-devices\n"
19178 "\n"
19179 msgstr ""
19180
19181 # type: =head2
19182 #: ../fish/guestfish-actions.pod:1959
19183 msgid "list-filesystems"
19184 msgstr ""
19185
19186 # type: verbatim
19187 #: ../fish/guestfish-actions.pod:1961
19188 #, no-wrap
19189 msgid ""
19190 " list-filesystems\n"
19191 "\n"
19192 msgstr ""
19193
19194 # type: textblock
19195 #: ../fish/guestfish-actions.pod:1980
19196 msgid ""
19197 "This command runs other libguestfs commands, which might include C<mount> "
19198 "and C<umount>, and therefore you should use this soon after launch and only "
19199 "when nothing is mounted."
19200 msgstr ""
19201
19202 # type: textblock
19203 #: ../fish/guestfish-actions.pod:1984
19204 msgid ""
19205 "Not all of the filesystems returned will be mountable.  In particular, swap "
19206 "partitions are returned in the list.  Also this command does not check that "
19207 "each filesystem found is valid and mountable, and some filesystems might be "
19208 "mountable but require special options.  Filesystems may not all belong to a "
19209 "single logical operating system (use C<inspect-os> to look for OSes)."
19210 msgstr ""
19211
19212 # type: =head2
19213 #: ../fish/guestfish-actions.pod:1992
19214 msgid "list-partitions"
19215 msgstr ""
19216
19217 # type: verbatim
19218 #: ../fish/guestfish-actions.pod:1994
19219 #, no-wrap
19220 msgid ""
19221 " list-partitions\n"
19222 "\n"
19223 msgstr ""
19224
19225 # type: textblock
19226 #: ../fish/guestfish-actions.pod:2000
19227 msgid ""
19228 "This does not return logical volumes.  For that you will need to call C<lvs>."
19229 msgstr ""
19230
19231 # type: =head2
19232 #: ../fish/guestfish-actions.pod:2005
19233 msgid "ll"
19234 msgstr ""
19235
19236 # type: verbatim
19237 #: ../fish/guestfish-actions.pod:2007
19238 #, no-wrap
19239 msgid ""
19240 " ll directory\n"
19241 "\n"
19242 msgstr ""
19243
19244 # type: =head2
19245 #: ../fish/guestfish-actions.pod:2015
19246 msgid "ln"
19247 msgstr ""
19248
19249 # type: verbatim
19250 #: ../fish/guestfish-actions.pod:2017
19251 #, no-wrap
19252 msgid ""
19253 " ln target linkname\n"
19254 "\n"
19255 msgstr ""
19256
19257 # type: =head2
19258 #: ../fish/guestfish-actions.pod:2021
19259 msgid "ln-f"
19260 msgstr ""
19261
19262 # type: verbatim
19263 #: ../fish/guestfish-actions.pod:2023
19264 #, no-wrap
19265 msgid ""
19266 " ln-f target linkname\n"
19267 "\n"
19268 msgstr ""
19269
19270 # type: =head2
19271 #: ../fish/guestfish-actions.pod:2028
19272 msgid "ln-s"
19273 msgstr ""
19274
19275 # type: verbatim
19276 #: ../fish/guestfish-actions.pod:2030
19277 #, no-wrap
19278 msgid ""
19279 " ln-s target linkname\n"
19280 "\n"
19281 msgstr ""
19282
19283 # type: =head2
19284 #: ../fish/guestfish-actions.pod:2034
19285 msgid "ln-sf"
19286 msgstr ""
19287
19288 # type: verbatim
19289 #: ../fish/guestfish-actions.pod:2036
19290 #, no-wrap
19291 msgid ""
19292 " ln-sf target linkname\n"
19293 "\n"
19294 msgstr ""
19295
19296 # type: =head2
19297 #: ../fish/guestfish-actions.pod:2041
19298 msgid "lremovexattr"
19299 msgstr ""
19300
19301 # type: verbatim
19302 #: ../fish/guestfish-actions.pod:2043
19303 #, no-wrap
19304 msgid ""
19305 " lremovexattr xattr path\n"
19306 "\n"
19307 msgstr ""
19308
19309 # type: textblock
19310 #: ../fish/guestfish-actions.pod:2045
19311 msgid ""
19312 "This is the same as C<removexattr>, but if C<path> is a symbolic link, then "
19313 "it removes an extended attribute of the link itself."
19314 msgstr ""
19315
19316 # type: =head2
19317 #: ../fish/guestfish-actions.pod:2049
19318 msgid "ls"
19319 msgstr ""
19320
19321 # type: verbatim
19322 #: ../fish/guestfish-actions.pod:2051
19323 #, no-wrap
19324 msgid ""
19325 " ls directory\n"
19326 "\n"
19327 msgstr ""
19328
19329 # type: textblock
19330 #: ../fish/guestfish-actions.pod:2057
19331 msgid ""
19332 "This command is mostly useful for interactive sessions.  Programs should "
19333 "probably use C<readdir> instead."
19334 msgstr ""
19335
19336 # type: =head2
19337 #: ../fish/guestfish-actions.pod:2060
19338 msgid "lsetxattr"
19339 msgstr ""
19340
19341 # type: verbatim
19342 #: ../fish/guestfish-actions.pod:2062
19343 #, no-wrap
19344 msgid ""
19345 " lsetxattr xattr val vallen path\n"
19346 "\n"
19347 msgstr ""
19348
19349 # type: textblock
19350 #: ../fish/guestfish-actions.pod:2064
19351 msgid ""
19352 "This is the same as C<setxattr>, but if C<path> is a symbolic link, then it "
19353 "sets an extended attribute of the link itself."
19354 msgstr ""
19355
19356 # type: =head2
19357 #: ../fish/guestfish-actions.pod:2068
19358 msgid "lstat"
19359 msgstr ""
19360
19361 # type: verbatim
19362 #: ../fish/guestfish-actions.pod:2070
19363 #, no-wrap
19364 msgid ""
19365 " lstat path\n"
19366 "\n"
19367 msgstr ""
19368
19369 # type: textblock
19370 #: ../fish/guestfish-actions.pod:2074
19371 msgid ""
19372 "This is the same as C<stat> except that if C<path> is a symbolic link, then "
19373 "the link is stat-ed, not the file it refers to."
19374 msgstr ""
19375
19376 # type: =head2
19377 #: ../fish/guestfish-actions.pod:2080
19378 msgid "lstatlist"
19379 msgstr ""
19380
19381 # type: verbatim
19382 #: ../fish/guestfish-actions.pod:2082
19383 #, no-wrap
19384 msgid ""
19385 " lstatlist path 'names ...'\n"
19386 "\n"
19387 msgstr ""
19388
19389 # type: textblock
19390 #: ../fish/guestfish-actions.pod:2084
19391 msgid ""
19392 "This call allows you to perform the C<lstat> operation on multiple files, "
19393 "where all files are in the directory C<path>.  C<names> is the list of files "
19394 "from this directory."
19395 msgstr ""
19396
19397 # type: textblock
19398 #: ../fish/guestfish-actions.pod:2093
19399 msgid ""
19400 "This call is intended for programs that want to efficiently list a directory "
19401 "contents without making many round-trips.  See also C<lxattrlist> for a "
19402 "similarly efficient call for getting extended attributes.  Very long "
19403 "directory listings might cause the protocol message size to be exceeded, "
19404 "causing this call to fail.  The caller must split up such requests into "
19405 "smaller groups of names."
19406 msgstr ""
19407
19408 # type: =head2
19409 #: ../fish/guestfish-actions.pod:2101
19410 msgid "luks-add-key"
19411 msgstr ""
19412
19413 # type: verbatim
19414 #: ../fish/guestfish-actions.pod:2103
19415 #, no-wrap
19416 msgid ""
19417 " luks-add-key device keyslot\n"
19418 "\n"
19419 msgstr ""
19420
19421 # type: textblock
19422 #: ../fish/guestfish-actions.pod:2110
19423 msgid ""
19424 "Note that if C<keyslot> already contains a key, then this command will "
19425 "fail.  You have to use C<luks-kill-slot> first to remove that key."
19426 msgstr ""
19427
19428 # type: textblock
19429 #: ../fish/guestfish-actions.pod:2114 ../fish/guestfish-actions.pod:2136
19430 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2163
19431 #: ../fish/guestfish-actions.pod:2186 ../fish/guestfish-actions.pod:2196
19432 msgid ""
19433 "This command has one or more key or passphrase parameters.  Guestfish will "
19434 "prompt for these separately."
19435 msgstr ""
19436
19437 # type: =head2
19438 #: ../fish/guestfish-actions.pod:2117
19439 msgid "luks-close"
19440 msgstr ""
19441
19442 # type: verbatim
19443 #: ../fish/guestfish-actions.pod:2119
19444 #, no-wrap
19445 msgid ""
19446 " luks-close device\n"
19447 "\n"
19448 msgstr ""
19449
19450 # type: textblock
19451 #: ../fish/guestfish-actions.pod:2121
19452 msgid ""
19453 "This closes a LUKS device that was created earlier by C<luks-open> or C<luks-"
19454 "open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
19455 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
19456 "block device."
19457 msgstr ""
19458
19459 # type: =head2
19460 #: ../fish/guestfish-actions.pod:2127
19461 msgid "luks-format"
19462 msgstr ""
19463
19464 # type: verbatim
19465 #: ../fish/guestfish-actions.pod:2129
19466 #, no-wrap
19467 msgid ""
19468 " luks-format device keyslot\n"
19469 "\n"
19470 msgstr ""
19471
19472 # type: =head2
19473 #: ../fish/guestfish-actions.pod:2142
19474 msgid "luks-format-cipher"
19475 msgstr ""
19476
19477 # type: verbatim
19478 #: ../fish/guestfish-actions.pod:2144
19479 #, no-wrap
19480 msgid ""
19481 " luks-format-cipher device keyslot cipher\n"
19482 "\n"
19483 msgstr ""
19484
19485 # type: textblock
19486 #: ../fish/guestfish-actions.pod:2146
19487 msgid ""
19488 "This command is the same as C<luks-format> but it also allows you to set the "
19489 "C<cipher> used."
19490 msgstr ""
19491
19492 # type: =head2
19493 #: ../fish/guestfish-actions.pod:2155
19494 msgid "luks-kill-slot"
19495 msgstr ""
19496
19497 # type: verbatim
19498 #: ../fish/guestfish-actions.pod:2157
19499 #, no-wrap
19500 msgid ""
19501 " luks-kill-slot device keyslot\n"
19502 "\n"
19503 msgstr ""
19504
19505 # type: =head2
19506 #: ../fish/guestfish-actions.pod:2166
19507 msgid "luks-open"
19508 msgstr ""
19509
19510 # type: verbatim
19511 #: ../fish/guestfish-actions.pod:2168
19512 #, no-wrap
19513 msgid ""
19514 " luks-open device mapname\n"
19515 "\n"
19516 msgstr ""
19517
19518 # type: textblock
19519 #: ../fish/guestfish-actions.pod:2182
19520 msgid ""
19521 "If this block device contains LVM volume groups, then calling C<vgscan> "
19522 "followed by C<vg-activate-all> will make them visible."
19523 msgstr ""
19524
19525 # type: =head2
19526 #: ../fish/guestfish-actions.pod:2189
19527 msgid "luks-open-ro"
19528 msgstr ""
19529
19530 # type: verbatim
19531 #: ../fish/guestfish-actions.pod:2191
19532 #, no-wrap
19533 msgid ""
19534 " luks-open-ro device mapname\n"
19535 "\n"
19536 msgstr ""
19537
19538 # type: textblock
19539 #: ../fish/guestfish-actions.pod:2193
19540 msgid ""
19541 "This is the same as C<luks-open> except that a read-only mapping is created."
19542 msgstr ""
19543
19544 # type: =head2
19545 #: ../fish/guestfish-actions.pod:2199
19546 msgid "lvcreate"
19547 msgstr ""
19548
19549 # type: verbatim
19550 #: ../fish/guestfish-actions.pod:2201
19551 #, no-wrap
19552 msgid ""
19553 " lvcreate logvol volgroup mbytes\n"
19554 "\n"
19555 msgstr ""
19556
19557 # type: =head2
19558 #: ../fish/guestfish-actions.pod:2206
19559 msgid "lvm-clear-filter"
19560 msgstr ""
19561
19562 # type: verbatim
19563 #: ../fish/guestfish-actions.pod:2208
19564 #, no-wrap
19565 msgid ""
19566 " lvm-clear-filter\n"
19567 "\n"
19568 msgstr ""
19569
19570 # type: textblock
19571 #: ../fish/guestfish-actions.pod:2210
19572 msgid ""
19573 "This undoes the effect of C<lvm-set-filter>.  LVM will be able to see every "
19574 "block device."
19575 msgstr ""
19576
19577 # type: =head2
19578 #: ../fish/guestfish-actions.pod:2216
19579 msgid "lvm-remove-all"
19580 msgstr ""
19581
19582 # type: verbatim
19583 #: ../fish/guestfish-actions.pod:2218
19584 #, no-wrap
19585 msgid ""
19586 " lvm-remove-all\n"
19587 "\n"
19588 msgstr ""
19589
19590 # type: =head2
19591 #: ../fish/guestfish-actions.pod:2226
19592 msgid "lvm-set-filter"
19593 msgstr ""
19594
19595 # type: verbatim
19596 #: ../fish/guestfish-actions.pod:2228
19597 #, no-wrap
19598 msgid ""
19599 " lvm-set-filter 'devices ...'\n"
19600 "\n"
19601 msgstr ""
19602
19603 # type: =head2
19604 #: ../fish/guestfish-actions.pod:2253
19605 msgid "lvremove"
19606 msgstr ""
19607
19608 # type: verbatim
19609 #: ../fish/guestfish-actions.pod:2255
19610 #, no-wrap
19611 msgid ""
19612 " lvremove device\n"
19613 "\n"
19614 msgstr ""
19615
19616 # type: =head2
19617 #: ../fish/guestfish-actions.pod:2263
19618 msgid "lvrename"
19619 msgstr ""
19620
19621 # type: verbatim
19622 #: ../fish/guestfish-actions.pod:2265
19623 #, no-wrap
19624 msgid ""
19625 " lvrename logvol newlogvol\n"
19626 "\n"
19627 msgstr ""
19628
19629 # type: =head2
19630 #: ../fish/guestfish-actions.pod:2269
19631 msgid "lvresize"
19632 msgstr ""
19633
19634 # type: verbatim
19635 #: ../fish/guestfish-actions.pod:2271
19636 #, no-wrap
19637 msgid ""
19638 " lvresize device mbytes\n"
19639 "\n"
19640 msgstr ""
19641
19642 # type: =head2
19643 #: ../fish/guestfish-actions.pod:2277
19644 msgid "lvresize-free"
19645 msgstr ""
19646
19647 # type: verbatim
19648 #: ../fish/guestfish-actions.pod:2279
19649 #, no-wrap
19650 msgid ""
19651 " lvresize-free lv percent\n"
19652 "\n"
19653 msgstr ""
19654
19655 # type: =head2
19656 #: ../fish/guestfish-actions.pod:2287
19657 msgid "lvs"
19658 msgstr ""
19659
19660 # type: verbatim
19661 #: ../fish/guestfish-actions.pod:2289
19662 #, no-wrap
19663 msgid ""
19664 " lvs\n"
19665 "\n"
19666 msgstr ""
19667
19668 # type: textblock
19669 #: ../fish/guestfish-actions.pod:2297
19670 msgid "See also C<lvs-full>, C<list-filesystems>."
19671 msgstr ""
19672
19673 # type: =head2
19674 #: ../fish/guestfish-actions.pod:2299
19675 msgid "lvs-full"
19676 msgstr ""
19677
19678 # type: verbatim
19679 #: ../fish/guestfish-actions.pod:2301
19680 #, no-wrap
19681 msgid ""
19682 " lvs-full\n"
19683 "\n"
19684 msgstr ""
19685
19686 # type: =head2
19687 #: ../fish/guestfish-actions.pod:2306
19688 msgid "lvuuid"
19689 msgstr ""
19690
19691 # type: verbatim
19692 #: ../fish/guestfish-actions.pod:2308
19693 #, no-wrap
19694 msgid ""
19695 " lvuuid device\n"
19696 "\n"
19697 msgstr ""
19698
19699 # type: =head2
19700 #: ../fish/guestfish-actions.pod:2312
19701 msgid "lxattrlist"
19702 msgstr ""
19703
19704 # type: verbatim
19705 #: ../fish/guestfish-actions.pod:2314
19706 #, no-wrap
19707 msgid ""
19708 " lxattrlist path 'names ...'\n"
19709 "\n"
19710 msgstr ""
19711
19712 # type: textblock
19713 #: ../fish/guestfish-actions.pod:2330
19714 msgid ""
19715 "This call is intended for programs that want to efficiently list a directory "
19716 "contents without making many round-trips.  See also C<lstatlist> for a "
19717 "similarly efficient call for getting standard stats.  Very long directory "
19718 "listings might cause the protocol message size to be exceeded, causing this "
19719 "call to fail.  The caller must split up such requests into smaller groups of "
19720 "names."
19721 msgstr ""
19722
19723 # type: =head2
19724 #: ../fish/guestfish-actions.pod:2338
19725 msgid "mkdir"
19726 msgstr ""
19727
19728 # type: verbatim
19729 #: ../fish/guestfish-actions.pod:2340
19730 #, no-wrap
19731 msgid ""
19732 " mkdir path\n"
19733 "\n"
19734 msgstr ""
19735
19736 # type: =head2
19737 #: ../fish/guestfish-actions.pod:2344
19738 msgid "mkdir-mode"
19739 msgstr ""
19740
19741 # type: verbatim
19742 #: ../fish/guestfish-actions.pod:2346
19743 #, no-wrap
19744 msgid ""
19745 " mkdir-mode path mode\n"
19746 "\n"
19747 msgstr ""
19748
19749 # type: textblock
19750 #: ../fish/guestfish-actions.pod:2355
19751 msgid "See also C<mkdir>, C<umask>"
19752 msgstr ""
19753
19754 # type: =head2
19755 #: ../fish/guestfish-actions.pod:2357
19756 msgid "mkdir-p"
19757 msgstr ""
19758
19759 # type: verbatim
19760 #: ../fish/guestfish-actions.pod:2359
19761 #, no-wrap
19762 msgid ""
19763 " mkdir-p path\n"
19764 "\n"
19765 msgstr ""
19766
19767 # type: =head2
19768 #: ../fish/guestfish-actions.pod:2364
19769 msgid "mkdtemp"
19770 msgstr ""
19771
19772 # type: verbatim
19773 #: ../fish/guestfish-actions.pod:2366
19774 #, no-wrap
19775 msgid ""
19776 " mkdtemp template\n"
19777 "\n"
19778 msgstr ""
19779
19780 # type: =head2
19781 #: ../fish/guestfish-actions.pod:2387
19782 msgid "mke2fs-J"
19783 msgstr ""
19784
19785 # type: verbatim
19786 #: ../fish/guestfish-actions.pod:2389
19787 #, no-wrap
19788 msgid ""
19789 " mke2fs-J fstype blocksize device journal\n"
19790 "\n"
19791 msgstr ""
19792
19793 # type: textblock
19794 #: ../fish/guestfish-actions.pod:2397
19795 msgid "See also C<mke2journal>."
19796 msgstr ""
19797
19798 # type: =head2
19799 #: ../fish/guestfish-actions.pod:2399
19800 msgid "mke2fs-JL"
19801 msgstr ""
19802
19803 # type: verbatim
19804 #: ../fish/guestfish-actions.pod:2401
19805 #, no-wrap
19806 msgid ""
19807 " mke2fs-JL fstype blocksize device label\n"
19808 "\n"
19809 msgstr ""
19810
19811 # type: textblock
19812 #: ../fish/guestfish-actions.pod:2406
19813 msgid "See also C<mke2journal-L>."
19814 msgstr ""
19815
19816 # type: =head2
19817 #: ../fish/guestfish-actions.pod:2408
19818 msgid "mke2fs-JU"
19819 msgstr ""
19820
19821 # type: verbatim
19822 #: ../fish/guestfish-actions.pod:2410
19823 #, no-wrap
19824 msgid ""
19825 " mke2fs-JU fstype blocksize device uuid\n"
19826 "\n"
19827 msgstr ""
19828
19829 # type: textblock
19830 #: ../fish/guestfish-actions.pod:2415
19831 msgid "See also C<mke2journal-U>."
19832 msgstr ""
19833
19834 # type: =head2
19835 #: ../fish/guestfish-actions.pod:2417
19836 msgid "mke2journal"
19837 msgstr ""
19838
19839 # type: verbatim
19840 #: ../fish/guestfish-actions.pod:2419
19841 #, no-wrap
19842 msgid ""
19843 " mke2journal blocksize device\n"
19844 "\n"
19845 msgstr ""
19846
19847 # type: =head2
19848 #: ../fish/guestfish-actions.pod:2426
19849 msgid "mke2journal-L"
19850 msgstr ""
19851
19852 # type: verbatim
19853 #: ../fish/guestfish-actions.pod:2428
19854 #, no-wrap
19855 msgid ""
19856 " mke2journal-L blocksize label device\n"
19857 "\n"
19858 msgstr ""
19859
19860 # type: =head2
19861 #: ../fish/guestfish-actions.pod:2432
19862 msgid "mke2journal-U"
19863 msgstr ""
19864
19865 # type: verbatim
19866 #: ../fish/guestfish-actions.pod:2434
19867 #, no-wrap
19868 msgid ""
19869 " mke2journal-U blocksize uuid device\n"
19870 "\n"
19871 msgstr ""
19872
19873 # type: =head2
19874 #: ../fish/guestfish-actions.pod:2438
19875 msgid "mkfifo"
19876 msgstr ""
19877
19878 # type: verbatim
19879 #: ../fish/guestfish-actions.pod:2440
19880 #, no-wrap
19881 msgid ""
19882 " mkfifo mode path\n"
19883 "\n"
19884 msgstr ""
19885
19886 # type: textblock
19887 #: ../fish/guestfish-actions.pod:2442
19888 msgid ""
19889 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
19890 "is just a convenient wrapper around C<mknod>."
19891 msgstr ""
19892
19893 # type: =head2
19894 #: ../fish/guestfish-actions.pod:2448
19895 msgid "mkfs"
19896 msgstr ""
19897
19898 # type: verbatim
19899 #: ../fish/guestfish-actions.pod:2450
19900 #, no-wrap
19901 msgid ""
19902 " mkfs fstype device\n"
19903 "\n"
19904 msgstr ""
19905
19906 # type: =head2
19907 #: ../fish/guestfish-actions.pod:2456
19908 msgid "mkfs-b"
19909 msgstr ""
19910
19911 # type: verbatim
19912 #: ../fish/guestfish-actions.pod:2458
19913 #, no-wrap
19914 msgid ""
19915 " mkfs-b fstype blocksize device\n"
19916 "\n"
19917 msgstr ""
19918
19919 # type: textblock
19920 #: ../fish/guestfish-actions.pod:2460
19921 msgid ""
19922 "This call is similar to C<mkfs>, but it allows you to control the block size "
19923 "of the resulting filesystem.  Supported block sizes depend on the filesystem "
19924 "type, but typically they are C<1024>, C<2048> or C<4096> only."
19925 msgstr ""
19926
19927 # type: =head2
19928 #: ../fish/guestfish-actions.pod:2468
19929 msgid "mkmountpoint"
19930 msgstr ""
19931
19932 # type: verbatim
19933 #: ../fish/guestfish-actions.pod:2470
19934 #, no-wrap
19935 msgid ""
19936 " mkmountpoint exemptpath\n"
19937 "\n"
19938 msgstr ""
19939
19940 # type: textblock
19941 #: ../fish/guestfish-actions.pod:2472
19942 msgid ""
19943 "C<mkmountpoint> and C<rmmountpoint> are specialized calls that can be used "
19944 "to create extra mountpoints before mounting the first filesystem."
19945 msgstr ""
19946
19947 # type: =head2
19948 #: ../fish/guestfish-actions.pod:2496
19949 msgid "mknod"
19950 msgstr ""
19951
19952 # type: verbatim
19953 #: ../fish/guestfish-actions.pod:2498
19954 #, no-wrap
19955 msgid ""
19956 " mknod mode devmajor devminor path\n"
19957 "\n"
19958 msgstr ""
19959
19960 # type: textblock
19961 #: ../fish/guestfish-actions.pod:2508
19962 msgid ""
19963 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
19964 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
19965 "regular file).  These constants are available in the standard Linux header "
19966 "files, or you can use C<mknod-b>, C<mknod-c> or C<mkfifo> which are wrappers "
19967 "around this command which bitwise OR in the appropriate constant for you."
19968 msgstr ""
19969
19970 # type: =head2
19971 #: ../fish/guestfish-actions.pod:2518
19972 msgid "mknod-b"
19973 msgstr ""
19974
19975 # type: verbatim
19976 #: ../fish/guestfish-actions.pod:2520
19977 #, no-wrap
19978 msgid ""
19979 " mknod-b mode devmajor devminor path\n"
19980 "\n"
19981 msgstr ""
19982
19983 # type: textblock
19984 #: ../fish/guestfish-actions.pod:2522
19985 msgid ""
19986 "This call creates a block device node called C<path> with mode C<mode> and "
19987 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19988 "wrapper around C<mknod>."
19989 msgstr ""
19990
19991 # type: =head2
19992 #: ../fish/guestfish-actions.pod:2528
19993 msgid "mknod-c"
19994 msgstr ""
19995
19996 # type: verbatim
19997 #: ../fish/guestfish-actions.pod:2530
19998 #, no-wrap
19999 msgid ""
20000 " mknod-c mode devmajor devminor path\n"
20001 "\n"
20002 msgstr ""
20003
20004 # type: textblock
20005 #: ../fish/guestfish-actions.pod:2532
20006 msgid ""
20007 "This call creates a char device node called C<path> with mode C<mode> and "
20008 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20009 "wrapper around C<mknod>."
20010 msgstr ""
20011
20012 # type: =head2
20013 #: ../fish/guestfish-actions.pod:2538
20014 msgid "mkswap"
20015 msgstr ""
20016
20017 # type: verbatim
20018 #: ../fish/guestfish-actions.pod:2540
20019 #, no-wrap
20020 msgid ""
20021 " mkswap device\n"
20022 "\n"
20023 msgstr ""
20024
20025 # type: =head2
20026 #: ../fish/guestfish-actions.pod:2544
20027 msgid "mkswap-L"
20028 msgstr ""
20029
20030 # type: verbatim
20031 #: ../fish/guestfish-actions.pod:2546
20032 #, no-wrap
20033 msgid ""
20034 " mkswap-L label device\n"
20035 "\n"
20036 msgstr ""
20037
20038 # type: =head2
20039 #: ../fish/guestfish-actions.pod:2554
20040 msgid "mkswap-U"
20041 msgstr ""
20042
20043 # type: verbatim
20044 #: ../fish/guestfish-actions.pod:2556
20045 #, no-wrap
20046 msgid ""
20047 " mkswap-U uuid device\n"
20048 "\n"
20049 msgstr ""
20050
20051 # type: =head2
20052 #: ../fish/guestfish-actions.pod:2560
20053 msgid "mkswap-file"
20054 msgstr ""
20055
20056 # type: verbatim
20057 #: ../fish/guestfish-actions.pod:2562
20058 #, no-wrap
20059 msgid ""
20060 " mkswap-file path\n"
20061 "\n"
20062 msgstr ""
20063
20064 # type: textblock
20065 #: ../fish/guestfish-actions.pod:2566
20066 msgid ""
20067 "This command just writes a swap file signature to an existing file.  To "
20068 "create the file itself, use something like C<fallocate>."
20069 msgstr ""
20070
20071 # type: =head2
20072 #: ../fish/guestfish-actions.pod:2569
20073 msgid "modprobe"
20074 msgstr ""
20075
20076 # type: verbatim
20077 #: ../fish/guestfish-actions.pod:2571
20078 #, no-wrap
20079 msgid ""
20080 " modprobe modulename\n"
20081 "\n"
20082 msgstr ""
20083
20084 # type: =head2
20085 #: ../fish/guestfish-actions.pod:2578
20086 msgid "mount"
20087 msgstr ""
20088
20089 # type: verbatim
20090 #: ../fish/guestfish-actions.pod:2580
20091 #, no-wrap
20092 msgid ""
20093 " mount device mountpoint\n"
20094 "\n"
20095 msgstr ""
20096
20097 # type: textblock
20098 #: ../fish/guestfish-actions.pod:2596
20099 msgid ""
20100 "B<Important note:> When you use this call, the filesystem options C<sync> "
20101 "and C<noatime> are set implicitly.  This was originally done because we "
20102 "thought it would improve reliability, but it turns out that I<-o sync> has a "
20103 "very large negative performance impact and negligible effect on "
20104 "reliability.  Therefore we recommend that you avoid using C<mount> in any "
20105 "code that needs performance, and instead use C<mount-options> (use an empty "
20106 "string for the first parameter if you don't want any options)."
20107 msgstr ""
20108
20109 # type: =head2
20110 #: ../fish/guestfish-actions.pod:2606
20111 msgid "mount-loop"
20112 msgstr ""
20113
20114 # type: verbatim
20115 #: ../fish/guestfish-actions.pod:2608
20116 #, no-wrap
20117 msgid ""
20118 " mount-loop file mountpoint\n"
20119 "\n"
20120 msgstr ""
20121
20122 # type: =head2
20123 #: ../fish/guestfish-actions.pod:2614
20124 msgid "mount-options"
20125 msgstr ""
20126
20127 # type: verbatim
20128 #: ../fish/guestfish-actions.pod:2616
20129 #, no-wrap
20130 msgid ""
20131 " mount-options options device mountpoint\n"
20132 "\n"
20133 msgstr ""
20134
20135 # type: textblock
20136 #: ../fish/guestfish-actions.pod:2618
20137 msgid ""
20138 "This is the same as the C<mount> command, but it allows you to set the mount "
20139 "options as for the L<mount(8)> I<-o> flag."
20140 msgstr ""
20141
20142 # type: =head2
20143 #: ../fish/guestfish-actions.pod:2626
20144 msgid "mount-ro"
20145 msgstr ""
20146
20147 # type: verbatim
20148 #: ../fish/guestfish-actions.pod:2628
20149 #, no-wrap
20150 msgid ""
20151 " mount-ro device mountpoint\n"
20152 "\n"
20153 msgstr ""
20154
20155 # type: textblock
20156 #: ../fish/guestfish-actions.pod:2630
20157 msgid ""
20158 "This is the same as the C<mount> command, but it mounts the filesystem with "
20159 "the read-only (I<-o ro>) flag."
20160 msgstr ""
20161
20162 # type: =head2
20163 #: ../fish/guestfish-actions.pod:2633
20164 msgid "mount-vfs"
20165 msgstr ""
20166
20167 # type: verbatim
20168 #: ../fish/guestfish-actions.pod:2635
20169 #, no-wrap
20170 msgid ""
20171 " mount-vfs options vfstype device mountpoint\n"
20172 "\n"
20173 msgstr ""
20174
20175 # type: textblock
20176 #: ../fish/guestfish-actions.pod:2637
20177 msgid ""
20178 "This is the same as the C<mount> command, but it allows you to set both the "
20179 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20180 msgstr ""
20181
20182 # type: =head2
20183 #: ../fish/guestfish-actions.pod:2641
20184 msgid "mountpoints"
20185 msgstr ""
20186
20187 # type: verbatim
20188 #: ../fish/guestfish-actions.pod:2643
20189 #, no-wrap
20190 msgid ""
20191 " mountpoints\n"
20192 "\n"
20193 msgstr ""
20194
20195 # type: textblock
20196 #: ../fish/guestfish-actions.pod:2645
20197 msgid ""
20198 "This call is similar to C<mounts>.  That call returns a list of devices.  "
20199 "This one returns a hash table (map) of device name to directory where the "
20200 "device is mounted."
20201 msgstr ""
20202
20203 # type: =head2
20204 #: ../fish/guestfish-actions.pod:2649
20205 msgid "mounts"
20206 msgstr ""
20207
20208 # type: verbatim
20209 #: ../fish/guestfish-actions.pod:2651
20210 #, no-wrap
20211 msgid ""
20212 " mounts\n"
20213 "\n"
20214 msgstr ""
20215
20216 # type: textblock
20217 #: ../fish/guestfish-actions.pod:2658
20218 msgid "See also: C<mountpoints>"
20219 msgstr ""
20220
20221 # type: =head2
20222 #: ../fish/guestfish-actions.pod:2660
20223 msgid "mv"
20224 msgstr ""
20225
20226 # type: verbatim
20227 #: ../fish/guestfish-actions.pod:2662
20228 #, no-wrap
20229 msgid ""
20230 " mv src dest\n"
20231 "\n"
20232 msgstr ""
20233
20234 # type: =head2
20235 #: ../fish/guestfish-actions.pod:2667
20236 msgid "ntfs-3g-probe"
20237 msgstr ""
20238
20239 # type: verbatim
20240 #: ../fish/guestfish-actions.pod:2669
20241 #, no-wrap
20242 msgid ""
20243 " ntfs-3g-probe true|false device\n"
20244 "\n"
20245 msgstr ""
20246
20247 # type: =head2
20248 #: ../fish/guestfish-actions.pod:2683
20249 msgid "ntfsresize"
20250 msgstr ""
20251
20252 # type: verbatim
20253 #: ../fish/guestfish-actions.pod:2685
20254 #, no-wrap
20255 msgid ""
20256 " ntfsresize device\n"
20257 "\n"
20258 msgstr ""
20259
20260 # type: =head2
20261 #: ../fish/guestfish-actions.pod:2691
20262 msgid "ntfsresize-size"
20263 msgstr ""
20264
20265 # type: verbatim
20266 #: ../fish/guestfish-actions.pod:2693
20267 #, no-wrap
20268 msgid ""
20269 " ntfsresize-size device size\n"
20270 "\n"
20271 msgstr ""
20272
20273 # type: textblock
20274 #: ../fish/guestfish-actions.pod:2695
20275 msgid ""
20276 "This command is the same as C<ntfsresize> except that it allows you to "
20277 "specify the new size (in bytes) explicitly."
20278 msgstr ""
20279
20280 # type: =head2
20281 #: ../fish/guestfish-actions.pod:2698
20282 msgid "part-add"
20283 msgstr ""
20284
20285 # type: verbatim
20286 #: ../fish/guestfish-actions.pod:2700
20287 #, no-wrap
20288 msgid ""
20289 " part-add device prlogex startsect endsect\n"
20290 "\n"
20291 msgstr ""
20292
20293 # type: textblock
20294 #: ../fish/guestfish-actions.pod:2702
20295 msgid ""
20296 "This command adds a partition to C<device>.  If there is no partition table "
20297 "on the device, call C<part-init> first."
20298 msgstr ""
20299
20300 # type: textblock
20301 #: ../fish/guestfish-actions.pod:2714
20302 msgid ""
20303 "Creating a partition which covers the whole disk is not so easy.  Use C<part-"
20304 "disk> to do that."
20305 msgstr ""
20306
20307 # type: =head2
20308 #: ../fish/guestfish-actions.pod:2717
20309 msgid "part-del"
20310 msgstr ""
20311
20312 # type: verbatim
20313 #: ../fish/guestfish-actions.pod:2719
20314 #, no-wrap
20315 msgid ""
20316 " part-del device partnum\n"
20317 "\n"
20318 msgstr ""
20319
20320 # type: =head2
20321 #: ../fish/guestfish-actions.pod:2727
20322 msgid "part-disk"
20323 msgstr ""
20324
20325 # type: verbatim
20326 #: ../fish/guestfish-actions.pod:2729
20327 #, no-wrap
20328 msgid ""
20329 " part-disk device parttype\n"
20330 "\n"
20331 msgstr ""
20332
20333 # type: textblock
20334 #: ../fish/guestfish-actions.pod:2731
20335 msgid ""
20336 "This command is simply a combination of C<part-init> followed by C<part-add> "
20337 "to create a single primary partition covering the whole disk."
20338 msgstr ""
20339
20340 # type: textblock
20341 #: ../fish/guestfish-actions.pod:2735
20342 msgid ""
20343 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
20344 "possible values are described in C<part-init>."
20345 msgstr ""
20346
20347 # type: =head2
20348 #: ../fish/guestfish-actions.pod:2741
20349 msgid "part-get-bootable"
20350 msgstr ""
20351
20352 # type: verbatim
20353 #: ../fish/guestfish-actions.pod:2743
20354 #, no-wrap
20355 msgid ""
20356 " part-get-bootable device partnum\n"
20357 "\n"
20358 msgstr ""
20359
20360 # type: textblock
20361 #: ../fish/guestfish-actions.pod:2748
20362 msgid "See also C<part-set-bootable>."
20363 msgstr ""
20364
20365 # type: =head2
20366 #: ../fish/guestfish-actions.pod:2750
20367 msgid "part-get-mbr-id"
20368 msgstr ""
20369
20370 # type: verbatim
20371 #: ../fish/guestfish-actions.pod:2752
20372 #, no-wrap
20373 msgid ""
20374 " part-get-mbr-id device partnum\n"
20375 "\n"
20376 msgstr ""
20377
20378 # type: textblock
20379 #: ../fish/guestfish-actions.pod:2757 ../fish/guestfish-actions.pod:2895
20380 msgid ""
20381 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
20382 "undefined results for other partition table types (see C<part-get-parttype>)."
20383 msgstr ""
20384
20385 # type: =head2
20386 #: ../fish/guestfish-actions.pod:2761
20387 msgid "part-get-parttype"
20388 msgstr ""
20389
20390 # type: verbatim
20391 #: ../fish/guestfish-actions.pod:2763
20392 #, no-wrap
20393 msgid ""
20394 " part-get-parttype device\n"
20395 "\n"
20396 msgstr ""
20397
20398 # type: textblock
20399 #: ../fish/guestfish-actions.pod:2768
20400 msgid ""
20401 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
20402 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
20403 "possible, although unusual.  See C<part-init> for a full list."
20404 msgstr ""
20405
20406 # type: =head2
20407 #: ../fish/guestfish-actions.pod:2773
20408 msgid "part-init"
20409 msgstr ""
20410
20411 # type: verbatim
20412 #: ../fish/guestfish-actions.pod:2775
20413 #, no-wrap
20414 msgid ""
20415 " part-init device parttype\n"
20416 "\n"
20417 msgstr ""
20418
20419 # type: textblock
20420 #: ../fish/guestfish-actions.pod:2781
20421 msgid ""
20422 "Initially there are no partitions.  Following this, you should call C<part-"
20423 "add> for each partition required."
20424 msgstr ""
20425
20426 # type: =head2
20427 #: ../fish/guestfish-actions.pod:2844
20428 msgid "part-list"
20429 msgstr ""
20430
20431 # type: verbatim
20432 #: ../fish/guestfish-actions.pod:2846
20433 #, no-wrap
20434 msgid ""
20435 " part-list device\n"
20436 "\n"
20437 msgstr ""
20438
20439 # type: textblock
20440 #: ../fish/guestfish-actions.pod:2861
20441 msgid ""
20442 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
20443 "the device's sector size, see C<blockdev-getss>."
20444 msgstr ""
20445
20446 # type: =head2
20447 #: ../fish/guestfish-actions.pod:2874
20448 msgid "part-set-bootable"
20449 msgstr ""
20450
20451 # type: verbatim
20452 #: ../fish/guestfish-actions.pod:2876
20453 #, no-wrap
20454 msgid ""
20455 " part-set-bootable device partnum true|false\n"
20456 "\n"
20457 msgstr ""
20458
20459 # type: =head2
20460 #: ../fish/guestfish-actions.pod:2885
20461 msgid "part-set-mbr-id"
20462 msgstr ""
20463
20464 # type: verbatim
20465 #: ../fish/guestfish-actions.pod:2887
20466 #, no-wrap
20467 msgid ""
20468 " part-set-mbr-id device partnum idbyte\n"
20469 "\n"
20470 msgstr ""
20471
20472 # type: =head2
20473 #: ../fish/guestfish-actions.pod:2899
20474 msgid "part-set-name"
20475 msgstr ""
20476
20477 # type: verbatim
20478 #: ../fish/guestfish-actions.pod:2901
20479 #, no-wrap
20480 msgid ""
20481 " part-set-name device partnum name\n"
20482 "\n"
20483 msgstr ""
20484
20485 # type: =head2
20486 #: ../fish/guestfish-actions.pod:2909
20487 msgid "part-to-dev"
20488 msgstr ""
20489
20490 # type: verbatim
20491 #: ../fish/guestfish-actions.pod:2911
20492 #, no-wrap
20493 msgid ""
20494 " part-to-dev partition\n"
20495 "\n"
20496 msgstr ""
20497
20498 # type: textblock
20499 #: ../fish/guestfish-actions.pod:2917
20500 msgid ""
20501 "The named partition must exist, for example as a string returned from C<list-"
20502 "partitions>."
20503 msgstr ""
20504
20505 # type: =head2
20506 #: ../fish/guestfish-actions.pod:2920
20507 msgid "ping-daemon"
20508 msgstr ""
20509
20510 # type: verbatim
20511 #: ../fish/guestfish-actions.pod:2922
20512 #, no-wrap
20513 msgid ""
20514 " ping-daemon\n"
20515 "\n"
20516 msgstr ""
20517
20518 # type: =head2
20519 #: ../fish/guestfish-actions.pod:2929
20520 msgid "pread"
20521 msgstr ""
20522
20523 # type: verbatim
20524 #: ../fish/guestfish-actions.pod:2931
20525 #, no-wrap
20526 msgid ""
20527 " pread path count offset\n"
20528 "\n"
20529 msgstr ""
20530
20531 # type: textblock
20532 #: ../fish/guestfish-actions.pod:2939
20533 msgid "See also C<pwrite>."
20534 msgstr ""
20535
20536 # type: =head2
20537 #: ../fish/guestfish-actions.pod:2944
20538 msgid "pvcreate"
20539 msgstr ""
20540
20541 # type: verbatim
20542 #: ../fish/guestfish-actions.pod:2946
20543 #, no-wrap
20544 msgid ""
20545 " pvcreate device\n"
20546 "\n"
20547 msgstr ""
20548
20549 # type: =head2
20550 #: ../fish/guestfish-actions.pod:2952
20551 msgid "pvremove"
20552 msgstr ""
20553
20554 # type: verbatim
20555 #: ../fish/guestfish-actions.pod:2954
20556 #, no-wrap
20557 msgid ""
20558 " pvremove device\n"
20559 "\n"
20560 msgstr ""
20561
20562 # type: =head2
20563 #: ../fish/guestfish-actions.pod:2963
20564 msgid "pvresize"
20565 msgstr ""
20566
20567 # type: verbatim
20568 #: ../fish/guestfish-actions.pod:2965
20569 #, no-wrap
20570 msgid ""
20571 " pvresize device\n"
20572 "\n"
20573 msgstr ""
20574
20575 # type: =head2
20576 #: ../fish/guestfish-actions.pod:2970
20577 msgid "pvresize-size"
20578 msgstr ""
20579
20580 # type: verbatim
20581 #: ../fish/guestfish-actions.pod:2972
20582 #, no-wrap
20583 msgid ""
20584 " pvresize-size device size\n"
20585 "\n"
20586 msgstr ""
20587
20588 # type: textblock
20589 #: ../fish/guestfish-actions.pod:2974
20590 msgid ""
20591 "This command is the same as C<pvresize> except that it allows you to specify "
20592 "the new size (in bytes) explicitly."
20593 msgstr ""
20594
20595 # type: =head2
20596 #: ../fish/guestfish-actions.pod:2977
20597 msgid "pvs"
20598 msgstr ""
20599
20600 # type: verbatim
20601 #: ../fish/guestfish-actions.pod:2979
20602 #, no-wrap
20603 msgid ""
20604 " pvs\n"
20605 "\n"
20606 msgstr ""
20607
20608 # type: textblock
20609 #: ../fish/guestfish-actions.pod:2987
20610 msgid "See also C<pvs-full>."
20611 msgstr ""
20612
20613 # type: =head2
20614 #: ../fish/guestfish-actions.pod:2989
20615 msgid "pvs-full"
20616 msgstr ""
20617
20618 # type: verbatim
20619 #: ../fish/guestfish-actions.pod:2991
20620 #, no-wrap
20621 msgid ""
20622 " pvs-full\n"
20623 "\n"
20624 msgstr ""
20625
20626 # type: =head2
20627 #: ../fish/guestfish-actions.pod:2996
20628 msgid "pvuuid"
20629 msgstr ""
20630
20631 # type: verbatim
20632 #: ../fish/guestfish-actions.pod:2998
20633 #, no-wrap
20634 msgid ""
20635 " pvuuid device\n"
20636 "\n"
20637 msgstr ""
20638
20639 # type: =head2
20640 #: ../fish/guestfish-actions.pod:3002
20641 msgid "pwrite"
20642 msgstr ""
20643
20644 # type: verbatim
20645 #: ../fish/guestfish-actions.pod:3004
20646 #, no-wrap
20647 msgid ""
20648 " pwrite path content offset\n"
20649 "\n"
20650 msgstr ""
20651
20652 # type: textblock
20653 #: ../fish/guestfish-actions.pod:3015
20654 msgid "See also C<pread>."
20655 msgstr ""
20656
20657 # type: =head2
20658 #: ../fish/guestfish-actions.pod:3020
20659 msgid "read-file"
20660 msgstr ""
20661
20662 # type: verbatim
20663 #: ../fish/guestfish-actions.pod:3022
20664 #, no-wrap
20665 msgid ""
20666 " read-file path\n"
20667 "\n"
20668 msgstr ""
20669
20670 # type: textblock
20671 #: ../fish/guestfish-actions.pod:3027
20672 msgid ""
20673 "Unlike C<cat>, this function can correctly handle files that contain "
20674 "embedded ASCII NUL characters.  However unlike C<download>, this function is "
20675 "limited in the total size of file that can be handled."
20676 msgstr ""
20677
20678 # type: =head2
20679 #: ../fish/guestfish-actions.pod:3035
20680 msgid "read-lines"
20681 msgstr ""
20682
20683 # type: verbatim
20684 #: ../fish/guestfish-actions.pod:3037
20685 #, no-wrap
20686 msgid ""
20687 " read-lines path\n"
20688 "\n"
20689 msgstr ""
20690
20691 # type: textblock
20692 #: ../fish/guestfish-actions.pod:3044
20693 msgid ""
20694 "Note that this function cannot correctly handle binary files (specifically, "
20695 "files containing C<\\0> character which is treated as end of line).  For "
20696 "those you need to use the C<read-file> function which has a more complex "
20697 "interface."
20698 msgstr ""
20699
20700 # type: =head2
20701 #: ../fish/guestfish-actions.pod:3049
20702 msgid "readdir"
20703 msgstr ""
20704
20705 # type: verbatim
20706 #: ../fish/guestfish-actions.pod:3051
20707 #, no-wrap
20708 msgid ""
20709 " readdir dir\n"
20710 "\n"
20711 msgstr ""
20712
20713 # type: textblock
20714 #: ../fish/guestfish-actions.pod:3103
20715 msgid ""
20716 "This function is primarily intended for use by programs.  To get a simple "
20717 "list of names, use C<ls>.  To get a printable directory for human "
20718 "consumption, use C<ll>."
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:3107
20723 msgid "readlink"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #: ../fish/guestfish-actions.pod:3109
20728 #, no-wrap
20729 msgid ""
20730 " readlink path\n"
20731 "\n"
20732 msgstr ""
20733
20734 # type: =head2
20735 #: ../fish/guestfish-actions.pod:3113
20736 msgid "readlinklist"
20737 msgstr ""
20738
20739 # type: verbatim
20740 #: ../fish/guestfish-actions.pod:3115
20741 #, no-wrap
20742 msgid ""
20743 " readlinklist path 'names ...'\n"
20744 "\n"
20745 msgstr ""
20746
20747 # type: =head2
20748 #: ../fish/guestfish-actions.pod:3139
20749 msgid "realpath"
20750 msgstr ""
20751
20752 # type: verbatim
20753 #: ../fish/guestfish-actions.pod:3141
20754 #, no-wrap
20755 msgid ""
20756 " realpath path\n"
20757 "\n"
20758 msgstr ""
20759
20760 # type: =head2
20761 #: ../fish/guestfish-actions.pod:3146
20762 msgid "removexattr"
20763 msgstr ""
20764
20765 # type: verbatim
20766 #: ../fish/guestfish-actions.pod:3148
20767 #, no-wrap
20768 msgid ""
20769 " removexattr xattr path\n"
20770 "\n"
20771 msgstr ""
20772
20773 # type: textblock
20774 #: ../fish/guestfish-actions.pod:3153
20775 msgid "See also: C<lremovexattr>, L<attr(5)>."
20776 msgstr ""
20777
20778 # type: =head2
20779 #: ../fish/guestfish-actions.pod:3155
20780 msgid "resize2fs"
20781 msgstr ""
20782
20783 # type: verbatim
20784 #: ../fish/guestfish-actions.pod:3157
20785 #, no-wrap
20786 msgid ""
20787 " resize2fs device\n"
20788 "\n"
20789 msgstr ""
20790
20791 # type: textblock
20792 #: ../fish/guestfish-actions.pod:3162
20793 msgid ""
20794 "I<Note:> It is sometimes required that you run C<e2fsck-f> on the C<device> "
20795 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
20796 "gives an error about this and sometimes not.  In any case, it is always safe "
20797 "to call C<e2fsck-f> before calling this function."
20798 msgstr ""
20799
20800 # type: =head2
20801 #: ../fish/guestfish-actions.pod:3168
20802 msgid "resize2fs-size"
20803 msgstr ""
20804
20805 # type: verbatim
20806 #: ../fish/guestfish-actions.pod:3170
20807 #, no-wrap
20808 msgid ""
20809 " resize2fs-size device size\n"
20810 "\n"
20811 msgstr ""
20812
20813 # type: textblock
20814 #: ../fish/guestfish-actions.pod:3172
20815 msgid ""
20816 "This command is the same as C<resize2fs> except that it allows you to "
20817 "specify the new size (in bytes) explicitly."
20818 msgstr ""
20819
20820 # type: =head2
20821 #: ../fish/guestfish-actions.pod:3175
20822 msgid "rm"
20823 msgstr ""
20824
20825 # type: verbatim
20826 #: ../fish/guestfish-actions.pod:3177
20827 #, no-wrap
20828 msgid ""
20829 " rm path\n"
20830 "\n"
20831 msgstr ""
20832
20833 # type: =head2
20834 #: ../fish/guestfish-actions.pod:3181
20835 msgid "rm-rf"
20836 msgstr ""
20837
20838 # type: verbatim
20839 #: ../fish/guestfish-actions.pod:3183
20840 #, no-wrap
20841 msgid ""
20842 " rm-rf path\n"
20843 "\n"
20844 msgstr ""
20845
20846 # type: =head2
20847 #: ../fish/guestfish-actions.pod:3189
20848 msgid "rmdir"
20849 msgstr ""
20850
20851 # type: verbatim
20852 #: ../fish/guestfish-actions.pod:3191
20853 #, no-wrap
20854 msgid ""
20855 " rmdir path\n"
20856 "\n"
20857 msgstr ""
20858
20859 # type: =head2
20860 #: ../fish/guestfish-actions.pod:3195
20861 msgid "rmmountpoint"
20862 msgstr ""
20863
20864 # type: verbatim
20865 #: ../fish/guestfish-actions.pod:3197
20866 #, no-wrap
20867 msgid ""
20868 " rmmountpoint exemptpath\n"
20869 "\n"
20870 msgstr ""
20871
20872 # type: textblock
20873 #: ../fish/guestfish-actions.pod:3199
20874 msgid ""
20875 "This calls removes a mountpoint that was previously created with "
20876 "C<mkmountpoint>.  See C<mkmountpoint> for full details."
20877 msgstr ""
20878
20879 # type: =head2
20880 #: ../fish/guestfish-actions.pod:3203
20881 msgid "scrub-device"
20882 msgstr ""
20883
20884 # type: verbatim
20885 #: ../fish/guestfish-actions.pod:3205
20886 #, no-wrap
20887 msgid ""
20888 " scrub-device device\n"
20889 "\n"
20890 msgstr ""
20891
20892 # type: =head2
20893 #: ../fish/guestfish-actions.pod:3216
20894 msgid "scrub-file"
20895 msgstr ""
20896
20897 # type: verbatim
20898 #: ../fish/guestfish-actions.pod:3218
20899 #, no-wrap
20900 msgid ""
20901 " scrub-file file\n"
20902 "\n"
20903 msgstr ""
20904
20905 # type: =head2
20906 #: ../fish/guestfish-actions.pod:3228
20907 msgid "scrub-freespace"
20908 msgstr ""
20909
20910 # type: verbatim
20911 #: ../fish/guestfish-actions.pod:3230
20912 #, no-wrap
20913 msgid ""
20914 " scrub-freespace dir\n"
20915 "\n"
20916 msgstr ""
20917
20918 # type: textblock
20919 #: ../fish/guestfish-actions.pod:3232
20920 msgid ""
20921 "This command creates the directory C<dir> and then fills it with files until "
20922 "the filesystem is full, and scrubs the files as for C<scrub-file>, and "
20923 "deletes them.  The intention is to scrub any free space on the partition "
20924 "containing C<dir>."
20925 msgstr ""
20926
20927 # type: =head2
20928 #: ../fish/guestfish-actions.pod:3241
20929 msgid "set-append | append"
20930 msgstr ""
20931
20932 # type: verbatim
20933 #: ../fish/guestfish-actions.pod:3243
20934 #, no-wrap
20935 msgid ""
20936 " set-append append\n"
20937 "\n"
20938 msgstr ""
20939
20940 # type: =head2
20941 #: ../fish/guestfish-actions.pod:3254
20942 msgid "set-autosync | autosync"
20943 msgstr ""
20944
20945 # type: verbatim
20946 #: ../fish/guestfish-actions.pod:3256
20947 #, no-wrap
20948 msgid ""
20949 " set-autosync true|false\n"
20950 "\n"
20951 msgstr ""
20952
20953 # type: textblock
20954 #: ../fish/guestfish-actions.pod:3258
20955 msgid ""
20956 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
20957 "effort attempt to run C<umount-all> followed by C<sync> when the handle is "
20958 "closed (also if the program exits without closing handles)."
20959 msgstr ""
20960
20961 # type: =head2
20962 #: ../fish/guestfish-actions.pod:3266
20963 msgid "set-direct | direct"
20964 msgstr ""
20965
20966 # type: verbatim
20967 #: ../fish/guestfish-actions.pod:3268
20968 #, no-wrap
20969 msgid ""
20970 " set-direct true|false\n"
20971 "\n"
20972 msgstr ""
20973
20974 # type: textblock
20975 #: ../fish/guestfish-actions.pod:3274
20976 msgid ""
20977 "One consequence of this is that log messages aren't caught by the library "
20978 "and handled by C<set-log-message-callback>, but go straight to stdout."
20979 msgstr ""
20980
20981 # type: =head2
20982 #: ../fish/guestfish-actions.pod:3283
20983 msgid "set-e2label"
20984 msgstr ""
20985
20986 # type: verbatim
20987 #: ../fish/guestfish-actions.pod:3285
20988 #, no-wrap
20989 msgid ""
20990 " set-e2label device label\n"
20991 "\n"
20992 msgstr ""
20993
20994 # type: textblock
20995 #: ../fish/guestfish-actions.pod:3291
20996 msgid ""
20997 "You can use either C<tune2fs-l> or C<get-e2label> to return the existing "
20998 "label on a filesystem."
20999 msgstr ""
21000
21001 # type: =head2
21002 #: ../fish/guestfish-actions.pod:3294
21003 msgid "set-e2uuid"
21004 msgstr ""
21005
21006 # type: verbatim
21007 #: ../fish/guestfish-actions.pod:3296
21008 #, no-wrap
21009 msgid ""
21010 " set-e2uuid device uuid\n"
21011 "\n"
21012 msgstr ""
21013
21014 # type: textblock
21015 #: ../fish/guestfish-actions.pod:3303
21016 msgid ""
21017 "You can use either C<tune2fs-l> or C<get-e2uuid> to return the existing UUID "
21018 "of a filesystem."
21019 msgstr ""
21020
21021 # type: =head2
21022 #: ../fish/guestfish-actions.pod:3306
21023 msgid "set-memsize | memsize"
21024 msgstr ""
21025
21026 # type: verbatim
21027 #: ../fish/guestfish-actions.pod:3308
21028 #, no-wrap
21029 msgid ""
21030 " set-memsize memsize\n"
21031 "\n"
21032 msgstr ""
21033
21034 # type: textblock
21035 #: ../fish/guestfish-actions.pod:3310
21036 msgid ""
21037 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
21038 "This only has any effect if called before C<launch>."
21039 msgstr ""
21040
21041 # type: =head2
21042 #: ../fish/guestfish-actions.pod:3321
21043 msgid "set-network | network"
21044 msgstr ""
21045
21046 # type: verbatim
21047 #: ../fish/guestfish-actions.pod:3323
21048 #, no-wrap
21049 msgid ""
21050 " set-network true|false\n"
21051 "\n"
21052 msgstr ""
21053
21054 # type: textblock
21055 #: ../fish/guestfish-actions.pod:3331
21056 msgid ""
21057 "You must call this before calling C<launch>, otherwise it has no effect."
21058 msgstr ""
21059
21060 # type: =head2
21061 #: ../fish/guestfish-actions.pod:3334
21062 msgid "set-path | path"
21063 msgstr ""
21064
21065 # type: verbatim
21066 #: ../fish/guestfish-actions.pod:3336
21067 #, no-wrap
21068 msgid ""
21069 " set-path searchpath\n"
21070 "\n"
21071 msgstr ""
21072
21073 # type: =head2
21074 #: ../fish/guestfish-actions.pod:3345
21075 msgid "set-qemu | qemu"
21076 msgstr ""
21077
21078 # type: verbatim
21079 #: ../fish/guestfish-actions.pod:3347
21080 #, no-wrap
21081 msgid ""
21082 " set-qemu qemu\n"
21083 "\n"
21084 msgstr ""
21085
21086 # type: =head2
21087 #: ../fish/guestfish-actions.pod:3367
21088 msgid "set-recovery-proc | recovery-proc"
21089 msgstr ""
21090
21091 # type: verbatim
21092 #: ../fish/guestfish-actions.pod:3369
21093 #, no-wrap
21094 msgid ""
21095 " set-recovery-proc true|false\n"
21096 "\n"
21097 msgstr ""
21098
21099 # type: textblock
21100 #: ../fish/guestfish-actions.pod:3371
21101 msgid ""
21102 "If this is called with the parameter C<false> then C<launch> does not create "
21103 "a recovery process.  The purpose of the recovery process is to stop runaway "
21104 "qemu processes in the case where the main program aborts abruptly."
21105 msgstr ""
21106
21107 # type: textblock
21108 #: ../fish/guestfish-actions.pod:3376
21109 msgid ""
21110 "This only has any effect if called before C<launch>, and the default is true."
21111 msgstr ""
21112
21113 # type: =head2
21114 #: ../fish/guestfish-actions.pod:3385
21115 msgid "set-selinux | selinux"
21116 msgstr ""
21117
21118 # type: verbatim
21119 #: ../fish/guestfish-actions.pod:3387
21120 #, no-wrap
21121 msgid ""
21122 " set-selinux true|false\n"
21123 "\n"
21124 msgstr ""
21125
21126 # type: =head2
21127 #: ../fish/guestfish-actions.pod:3398
21128 msgid "set-trace | trace"
21129 msgstr ""
21130
21131 # type: verbatim
21132 #: ../fish/guestfish-actions.pod:3400
21133 #, no-wrap
21134 msgid ""
21135 " set-trace true|false\n"
21136 "\n"
21137 msgstr ""
21138
21139 # type: =head2
21140 #: ../fish/guestfish-actions.pod:3416
21141 msgid "set-verbose | verbose"
21142 msgstr ""
21143
21144 # type: verbatim
21145 #: ../fish/guestfish-actions.pod:3418
21146 #, no-wrap
21147 msgid ""
21148 " set-verbose true|false\n"
21149 "\n"
21150 msgstr ""
21151
21152 # type: =head2
21153 #: ../fish/guestfish-actions.pod:3425
21154 msgid "setcon"
21155 msgstr ""
21156
21157 # type: verbatim
21158 #: ../fish/guestfish-actions.pod:3427
21159 #, no-wrap
21160 msgid ""
21161 " setcon context\n"
21162 "\n"
21163 msgstr ""
21164
21165 # type: =head2
21166 #: ../fish/guestfish-actions.pod:3434
21167 msgid "setxattr"
21168 msgstr ""
21169
21170 # type: verbatim
21171 #: ../fish/guestfish-actions.pod:3436
21172 #, no-wrap
21173 msgid ""
21174 " setxattr xattr val vallen path\n"
21175 "\n"
21176 msgstr ""
21177
21178 # type: textblock
21179 #: ../fish/guestfish-actions.pod:3442
21180 msgid "See also: C<lsetxattr>, L<attr(5)>."
21181 msgstr ""
21182
21183 # type: =head2
21184 #: ../fish/guestfish-actions.pod:3444
21185 msgid "sfdisk"
21186 msgstr ""
21187
21188 # type: verbatim
21189 #: ../fish/guestfish-actions.pod:3446
21190 #, no-wrap
21191 msgid ""
21192 " sfdisk device cyls heads sectors 'lines ...'\n"
21193 "\n"
21194 msgstr ""
21195
21196 # type: textblock
21197 #: ../fish/guestfish-actions.pod:3468
21198 msgid "See also: C<sfdisk-l>, C<sfdisk-N>, C<part-init>"
21199 msgstr ""
21200
21201 # type: =head2
21202 #: ../fish/guestfish-actions.pod:3474
21203 msgid "sfdiskM"
21204 msgstr ""
21205
21206 # type: verbatim
21207 #: ../fish/guestfish-actions.pod:3476
21208 #, no-wrap
21209 msgid ""
21210 " sfdiskM device 'lines ...'\n"
21211 "\n"
21212 msgstr ""
21213
21214 # type: textblock
21215 #: ../fish/guestfish-actions.pod:3478
21216 msgid ""
21217 "This is a simplified interface to the C<sfdisk> command, where partition "
21218 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
21219 "you don't need to specify the cyls, heads and sectors parameters which were "
21220 "rarely if ever used anyway."
21221 msgstr ""
21222
21223 # type: textblock
21224 #: ../fish/guestfish-actions.pod:3484
21225 msgid "See also: C<sfdisk>, the L<sfdisk(8)> manpage and C<part-disk>"
21226 msgstr ""
21227
21228 # type: =head2
21229 #: ../fish/guestfish-actions.pod:3490
21230 msgid "sfdisk-N"
21231 msgstr ""
21232
21233 # type: verbatim
21234 #: ../fish/guestfish-actions.pod:3492
21235 #, no-wrap
21236 msgid ""
21237 " sfdisk-N device partnum cyls heads sectors line\n"
21238 "\n"
21239 msgstr ""
21240
21241 # type: textblock
21242 #: ../fish/guestfish-actions.pod:3497
21243 msgid ""
21244 "For other parameters, see C<sfdisk>.  You should usually pass C<0> for the "
21245 "cyls/heads/sectors parameters."
21246 msgstr ""
21247
21248 # type: textblock
21249 #: ../fish/guestfish-actions.pod:3500
21250 msgid "See also: C<part-add>"
21251 msgstr ""
21252
21253 # type: =head2
21254 #: ../fish/guestfish-actions.pod:3505
21255 msgid "sfdisk-disk-geometry"
21256 msgstr ""
21257
21258 # type: verbatim
21259 #: ../fish/guestfish-actions.pod:3507
21260 #, no-wrap
21261 msgid ""
21262 " sfdisk-disk-geometry device\n"
21263 "\n"
21264 msgstr ""
21265
21266 # type: textblock
21267 #: ../fish/guestfish-actions.pod:3509
21268 msgid ""
21269 "This displays the disk geometry of C<device> read from the partition table.  "
21270 "Especially in the case where the underlying block device has been resized, "
21271 "this can be different from the kernel's idea of the geometry (see C<sfdisk-"
21272 "kernel-geometry>)."
21273 msgstr ""
21274
21275 # type: =head2
21276 #: ../fish/guestfish-actions.pod:3517
21277 msgid "sfdisk-kernel-geometry"
21278 msgstr ""
21279
21280 # type: verbatim
21281 #: ../fish/guestfish-actions.pod:3519
21282 #, no-wrap
21283 msgid ""
21284 " sfdisk-kernel-geometry device\n"
21285 "\n"
21286 msgstr ""
21287
21288 # type: =head2
21289 #: ../fish/guestfish-actions.pod:3526
21290 msgid "sfdisk-l"
21291 msgstr ""
21292
21293 # type: verbatim
21294 #: ../fish/guestfish-actions.pod:3528
21295 #, no-wrap
21296 msgid ""
21297 " sfdisk-l device\n"
21298 "\n"
21299 msgstr ""
21300
21301 # type: textblock
21302 #: ../fish/guestfish-actions.pod:3534
21303 msgid "See also: C<part-list>"
21304 msgstr ""
21305
21306 # type: =head2
21307 #: ../fish/guestfish-actions.pod:3536
21308 msgid "sh"
21309 msgstr ""
21310
21311 # type: verbatim
21312 #: ../fish/guestfish-actions.pod:3538
21313 #, no-wrap
21314 msgid ""
21315 " sh command\n"
21316 "\n"
21317 msgstr ""
21318
21319 # type: textblock
21320 #: ../fish/guestfish-actions.pod:3543
21321 msgid "This is like C<command>, but passes the command to:"
21322 msgstr ""
21323
21324 # type: textblock
21325 #: ../fish/guestfish-actions.pod:3551
21326 msgid "All the provisos about C<command> apply to this call."
21327 msgstr ""
21328
21329 # type: =head2
21330 #: ../fish/guestfish-actions.pod:3553
21331 msgid "sh-lines"
21332 msgstr ""
21333
21334 # type: verbatim
21335 #: ../fish/guestfish-actions.pod:3555
21336 #, no-wrap
21337 msgid ""
21338 " sh-lines command\n"
21339 "\n"
21340 msgstr ""
21341
21342 # type: textblock
21343 #: ../fish/guestfish-actions.pod:3557
21344 msgid "This is the same as C<sh>, but splits the result into a list of lines."
21345 msgstr ""
21346
21347 # type: textblock
21348 #: ../fish/guestfish-actions.pod:3560
21349 msgid "See also: C<command-lines>"
21350 msgstr ""
21351
21352 # type: =head2
21353 #: ../fish/guestfish-actions.pod:3562
21354 msgid "sleep"
21355 msgstr ""
21356
21357 # type: verbatim
21358 #: ../fish/guestfish-actions.pod:3564
21359 #, no-wrap
21360 msgid ""
21361 " sleep secs\n"
21362 "\n"
21363 msgstr ""
21364
21365 # type: =head2
21366 #: ../fish/guestfish-actions.pod:3568
21367 msgid "stat"
21368 msgstr ""
21369
21370 # type: verbatim
21371 #: ../fish/guestfish-actions.pod:3570
21372 #, no-wrap
21373 msgid ""
21374 " stat path\n"
21375 "\n"
21376 msgstr ""
21377
21378 # type: =head2
21379 #: ../fish/guestfish-actions.pod:3576
21380 msgid "statvfs"
21381 msgstr ""
21382
21383 # type: verbatim
21384 #: ../fish/guestfish-actions.pod:3578
21385 #, no-wrap
21386 msgid ""
21387 " statvfs path\n"
21388 "\n"
21389 msgstr ""
21390
21391 # type: =head2
21392 #: ../fish/guestfish-actions.pod:3586
21393 msgid "strings"
21394 msgstr ""
21395
21396 # type: verbatim
21397 #: ../fish/guestfish-actions.pod:3588
21398 #, no-wrap
21399 msgid ""
21400 " strings path\n"
21401 "\n"
21402 msgstr ""
21403
21404 # type: =head2
21405 #: ../fish/guestfish-actions.pod:3596
21406 msgid "strings-e"
21407 msgstr ""
21408
21409 # type: verbatim
21410 #: ../fish/guestfish-actions.pod:3598
21411 #, no-wrap
21412 msgid ""
21413 " strings-e encoding path\n"
21414 "\n"
21415 msgstr ""
21416
21417 # type: textblock
21418 #: ../fish/guestfish-actions.pod:3600
21419 msgid ""
21420 "This is like the C<strings> command, but allows you to specify the encoding "
21421 "of strings that are looked for in the source file C<path>."
21422 msgstr ""
21423
21424 # type: textblock
21425 #: ../fish/guestfish-actions.pod:3610
21426 msgid ""
21427 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
21428 "ISO-8859-X (this is what C<strings> uses)."
21429 msgstr ""
21430
21431 # type: =head2
21432 #: ../fish/guestfish-actions.pod:3642
21433 msgid "swapoff-device"
21434 msgstr ""
21435
21436 # type: verbatim
21437 #: ../fish/guestfish-actions.pod:3644
21438 #, no-wrap
21439 msgid ""
21440 " swapoff-device device\n"
21441 "\n"
21442 msgstr ""
21443
21444 # type: textblock
21445 #: ../fish/guestfish-actions.pod:3646
21446 msgid ""
21447 "This command disables the libguestfs appliance swap device or partition "
21448 "named C<device>.  See C<swapon-device>."
21449 msgstr ""
21450
21451 # type: =head2
21452 #: ../fish/guestfish-actions.pod:3650
21453 msgid "swapoff-file"
21454 msgstr ""
21455
21456 # type: verbatim
21457 #: ../fish/guestfish-actions.pod:3652
21458 #, no-wrap
21459 msgid ""
21460 " swapoff-file file\n"
21461 "\n"
21462 msgstr ""
21463
21464 # type: =head2
21465 #: ../fish/guestfish-actions.pod:3656
21466 msgid "swapoff-label"
21467 msgstr ""
21468
21469 # type: verbatim
21470 #: ../fish/guestfish-actions.pod:3658
21471 #, no-wrap
21472 msgid ""
21473 " swapoff-label label\n"
21474 "\n"
21475 msgstr ""
21476
21477 # type: =head2
21478 #: ../fish/guestfish-actions.pod:3663
21479 msgid "swapoff-uuid"
21480 msgstr ""
21481
21482 # type: verbatim
21483 #: ../fish/guestfish-actions.pod:3665
21484 #, no-wrap
21485 msgid ""
21486 " swapoff-uuid uuid\n"
21487 "\n"
21488 msgstr ""
21489
21490 # type: =head2
21491 #: ../fish/guestfish-actions.pod:3670
21492 msgid "swapon-device"
21493 msgstr ""
21494
21495 # type: verbatim
21496 #: ../fish/guestfish-actions.pod:3672
21497 #, no-wrap
21498 msgid ""
21499 " swapon-device device\n"
21500 "\n"
21501 msgstr ""
21502
21503 # type: textblock
21504 #: ../fish/guestfish-actions.pod:3674
21505 msgid ""
21506 "This command enables the libguestfs appliance to use the swap device or "
21507 "partition named C<device>.  The increased memory is made available for all "
21508 "commands, for example those run using C<command> or C<sh>."
21509 msgstr ""
21510
21511 # type: =head2
21512 #: ../fish/guestfish-actions.pod:3686
21513 msgid "swapon-file"
21514 msgstr ""
21515
21516 # type: verbatim
21517 #: ../fish/guestfish-actions.pod:3688
21518 #, no-wrap
21519 msgid ""
21520 " swapon-file file\n"
21521 "\n"
21522 msgstr ""
21523
21524 # type: textblock
21525 #: ../fish/guestfish-actions.pod:3690
21526 msgid ""
21527 "This command enables swap to a file.  See C<swapon-device> for other notes."
21528 msgstr ""
21529
21530 # type: =head2
21531 #: ../fish/guestfish-actions.pod:3693
21532 msgid "swapon-label"
21533 msgstr ""
21534
21535 # type: verbatim
21536 #: ../fish/guestfish-actions.pod:3695
21537 #, no-wrap
21538 msgid ""
21539 " swapon-label label\n"
21540 "\n"
21541 msgstr ""
21542
21543 # type: textblock
21544 #: ../fish/guestfish-actions.pod:3697
21545 msgid ""
21546 "This command enables swap to a labeled swap partition.  See C<swapon-device> "
21547 "for other notes."
21548 msgstr ""
21549
21550 # type: =head2
21551 #: ../fish/guestfish-actions.pod:3700
21552 msgid "swapon-uuid"
21553 msgstr ""
21554
21555 # type: verbatim
21556 #: ../fish/guestfish-actions.pod:3702
21557 #, no-wrap
21558 msgid ""
21559 " swapon-uuid uuid\n"
21560 "\n"
21561 msgstr ""
21562
21563 # type: textblock
21564 #: ../fish/guestfish-actions.pod:3704
21565 msgid ""
21566 "This command enables swap to a swap partition with the given UUID.  See "
21567 "C<swapon-device> for other notes."
21568 msgstr ""
21569
21570 # type: =head2
21571 #: ../fish/guestfish-actions.pod:3707
21572 msgid "sync"
21573 msgstr ""
21574
21575 # type: verbatim
21576 #: ../fish/guestfish-actions.pod:3709
21577 #, no-wrap
21578 msgid ""
21579 " sync\n"
21580 "\n"
21581 msgstr ""
21582
21583 # type: =head2
21584 #: ../fish/guestfish-actions.pod:3717
21585 msgid "tail"
21586 msgstr ""
21587
21588 # type: verbatim
21589 #: ../fish/guestfish-actions.pod:3719
21590 #, no-wrap
21591 msgid ""
21592 " tail path\n"
21593 "\n"
21594 msgstr ""
21595
21596 # type: =head2
21597 #: ../fish/guestfish-actions.pod:3727
21598 msgid "tail-n"
21599 msgstr ""
21600
21601 # type: verbatim
21602 #: ../fish/guestfish-actions.pod:3729
21603 #, no-wrap
21604 msgid ""
21605 " tail-n nrlines path\n"
21606 "\n"
21607 msgstr ""
21608
21609 # type: =head2
21610 #: ../fish/guestfish-actions.pod:3742
21611 msgid "tar-in"
21612 msgstr ""
21613
21614 # type: verbatim
21615 #: ../fish/guestfish-actions.pod:3744
21616 #, no-wrap
21617 msgid ""
21618 " tar-in (tarfile|-) directory\n"
21619 "\n"
21620 msgstr ""
21621
21622 # type: textblock
21623 #: ../fish/guestfish-actions.pod:3749
21624 msgid "To upload a compressed tarball, use C<tgz-in> or C<txz-in>."
21625 msgstr ""
21626
21627 # type: =head2
21628 #: ../fish/guestfish-actions.pod:3754
21629 msgid "tar-out"
21630 msgstr ""
21631
21632 # type: verbatim
21633 #: ../fish/guestfish-actions.pod:3756
21634 #, no-wrap
21635 msgid ""
21636 " tar-out directory (tarfile|-)\n"
21637 "\n"
21638 msgstr ""
21639
21640 # type: textblock
21641 #: ../fish/guestfish-actions.pod:3761
21642 msgid "To download a compressed tarball, use C<tgz-out> or C<txz-out>."
21643 msgstr ""
21644
21645 # type: =head2
21646 #: ../fish/guestfish-actions.pod:3766
21647 msgid "tgz-in"
21648 msgstr ""
21649
21650 # type: verbatim
21651 #: ../fish/guestfish-actions.pod:3768
21652 #, no-wrap
21653 msgid ""
21654 " tgz-in (tarball|-) directory\n"
21655 "\n"
21656 msgstr ""
21657
21658 # type: textblock
21659 #: ../fish/guestfish-actions.pod:3773
21660 msgid "To upload an uncompressed tarball, use C<tar-in>."
21661 msgstr ""
21662
21663 # type: =head2
21664 #: ../fish/guestfish-actions.pod:3777
21665 msgid "tgz-out"
21666 msgstr ""
21667
21668 # type: verbatim
21669 #: ../fish/guestfish-actions.pod:3779
21670 #, no-wrap
21671 msgid ""
21672 " tgz-out directory (tarball|-)\n"
21673 "\n"
21674 msgstr ""
21675
21676 # type: textblock
21677 #: ../fish/guestfish-actions.pod:3784
21678 msgid "To download an uncompressed tarball, use C<tar-out>."
21679 msgstr ""
21680
21681 # type: =head2
21682 #: ../fish/guestfish-actions.pod:3788
21683 msgid "touch"
21684 msgstr ""
21685
21686 # type: verbatim
21687 #: ../fish/guestfish-actions.pod:3790
21688 #, no-wrap
21689 msgid ""
21690 " touch path\n"
21691 "\n"
21692 msgstr ""
21693
21694 # type: =head2
21695 #: ../fish/guestfish-actions.pod:3799
21696 msgid "truncate"
21697 msgstr ""
21698
21699 # type: verbatim
21700 #: ../fish/guestfish-actions.pod:3801
21701 #, no-wrap
21702 msgid ""
21703 " truncate path\n"
21704 "\n"
21705 msgstr ""
21706
21707 # type: =head2
21708 #: ../fish/guestfish-actions.pod:3806
21709 msgid "truncate-size"
21710 msgstr ""
21711
21712 # type: verbatim
21713 #: ../fish/guestfish-actions.pod:3808
21714 #, no-wrap
21715 msgid ""
21716 " truncate-size path size\n"
21717 "\n"
21718 msgstr ""
21719
21720 # type: textblock
21721 #: ../fish/guestfish-actions.pod:3813
21722 msgid ""
21723 "If the current file size is less than C<size> then the file is extended to "
21724 "the required size with zero bytes.  This creates a sparse file (ie. disk "
21725 "blocks are not allocated for the file until you write to it).  To create a "
21726 "non-sparse file of zeroes, use C<fallocate64> instead."
21727 msgstr ""
21728
21729 # type: =head2
21730 #: ../fish/guestfish-actions.pod:3819
21731 msgid "tune2fs-l"
21732 msgstr ""
21733
21734 # type: verbatim
21735 #: ../fish/guestfish-actions.pod:3821
21736 #, no-wrap
21737 msgid ""
21738 " tune2fs-l device\n"
21739 "\n"
21740 msgstr ""
21741
21742 # type: =head2
21743 #: ../fish/guestfish-actions.pod:3831
21744 msgid "txz-in"
21745 msgstr ""
21746
21747 # type: verbatim
21748 #: ../fish/guestfish-actions.pod:3833
21749 #, no-wrap
21750 msgid ""
21751 " txz-in (tarball|-) directory\n"
21752 "\n"
21753 msgstr ""
21754
21755 # type: =head2
21756 #: ../fish/guestfish-actions.pod:3840
21757 msgid "txz-out"
21758 msgstr ""
21759
21760 # type: verbatim
21761 #: ../fish/guestfish-actions.pod:3842
21762 #, no-wrap
21763 msgid ""
21764 " txz-out directory (tarball|-)\n"
21765 "\n"
21766 msgstr ""
21767
21768 # type: =head2
21769 #: ../fish/guestfish-actions.pod:3849
21770 msgid "umask"
21771 msgstr ""
21772
21773 # type: verbatim
21774 #: ../fish/guestfish-actions.pod:3851
21775 #, no-wrap
21776 msgid ""
21777 " umask mask\n"
21778 "\n"
21779 msgstr ""
21780
21781 # type: textblock
21782 #: ../fish/guestfish-actions.pod:3865
21783 msgid "See also C<get-umask>, L<umask(2)>, C<mknod>, C<mkdir>."
21784 msgstr ""
21785
21786 # type: =head2
21787 #: ../fish/guestfish-actions.pod:3870
21788 msgid "umount | unmount"
21789 msgstr ""
21790
21791 # type: verbatim
21792 #: ../fish/guestfish-actions.pod:3872
21793 #, no-wrap
21794 msgid ""
21795 " umount pathordevice\n"
21796 "\n"
21797 msgstr ""
21798
21799 # type: =head2
21800 #: ../fish/guestfish-actions.pod:3878
21801 msgid "umount-all | unmount-all"
21802 msgstr ""
21803
21804 # type: verbatim
21805 #: ../fish/guestfish-actions.pod:3880
21806 #, no-wrap
21807 msgid ""
21808 " umount-all\n"
21809 "\n"
21810 msgstr ""
21811
21812 # type: =head2
21813 #: ../fish/guestfish-actions.pod:3886
21814 msgid "upload"
21815 msgstr ""
21816
21817 # type: verbatim
21818 #: ../fish/guestfish-actions.pod:3888
21819 #, no-wrap
21820 msgid ""
21821 " upload (filename|-) remotefilename\n"
21822 "\n"
21823 msgstr ""
21824
21825 # type: textblock
21826 #: ../fish/guestfish-actions.pod:3895
21827 msgid "See also C<download>."
21828 msgstr ""
21829
21830 # type: =head2
21831 #: ../fish/guestfish-actions.pod:3899
21832 msgid "utimens"
21833 msgstr ""
21834
21835 # type: verbatim
21836 #: ../fish/guestfish-actions.pod:3901
21837 #, no-wrap
21838 msgid ""
21839 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
21840 "\n"
21841 msgstr ""
21842
21843 # type: =head2
21844 #: ../fish/guestfish-actions.pod:3920
21845 msgid "version"
21846 msgstr ""
21847
21848 # type: verbatim
21849 #: ../fish/guestfish-actions.pod:3922
21850 #, no-wrap
21851 msgid ""
21852 " version\n"
21853 "\n"
21854 msgstr ""
21855
21856 # type: textblock
21857 #: ../fish/guestfish-actions.pod:3949
21858 msgid ""
21859 "I<Note:> Don't use this call to test for availability of features.  In "
21860 "enterprise distributions we backport features from later versions into "
21861 "earlier versions, making this an unreliable way to test for features.  Use "
21862 "C<available> instead."
21863 msgstr ""
21864
21865 # type: =head2
21866 #: ../fish/guestfish-actions.pod:3955
21867 msgid "vfs-label"
21868 msgstr ""
21869
21870 # type: verbatim
21871 #: ../fish/guestfish-actions.pod:3957
21872 #, no-wrap
21873 msgid ""
21874 " vfs-label device\n"
21875 "\n"
21876 msgstr ""
21877
21878 # type: textblock
21879 #: ../fish/guestfish-actions.pod:3964
21880 msgid "To find a filesystem from the label, use C<findfs-label>."
21881 msgstr ""
21882
21883 # type: =head2
21884 #: ../fish/guestfish-actions.pod:3966
21885 msgid "vfs-type"
21886 msgstr ""
21887
21888 # type: verbatim
21889 #: ../fish/guestfish-actions.pod:3968
21890 #, no-wrap
21891 msgid ""
21892 " vfs-type device\n"
21893 "\n"
21894 msgstr ""
21895
21896 # type: =head2
21897 #: ../fish/guestfish-actions.pod:3978
21898 msgid "vfs-uuid"
21899 msgstr ""
21900
21901 # type: verbatim
21902 #: ../fish/guestfish-actions.pod:3980
21903 #, no-wrap
21904 msgid ""
21905 " vfs-uuid device\n"
21906 "\n"
21907 msgstr ""
21908
21909 # type: textblock
21910 #: ../fish/guestfish-actions.pod:3987
21911 msgid "To find a filesystem from the UUID, use C<findfs-uuid>."
21912 msgstr ""
21913
21914 # type: =head2
21915 #: ../fish/guestfish-actions.pod:3989
21916 msgid "vg-activate"
21917 msgstr ""
21918
21919 # type: verbatim
21920 #: ../fish/guestfish-actions.pod:3991
21921 #, no-wrap
21922 msgid ""
21923 " vg-activate true|false 'volgroups ...'\n"
21924 "\n"
21925 msgstr ""
21926
21927 # type: =head2
21928 #: ../fish/guestfish-actions.pod:4004
21929 msgid "vg-activate-all"
21930 msgstr ""
21931
21932 # type: verbatim
21933 #: ../fish/guestfish-actions.pod:4006
21934 #, no-wrap
21935 msgid ""
21936 " vg-activate-all true|false\n"
21937 "\n"
21938 msgstr ""
21939
21940 # type: =head2
21941 #: ../fish/guestfish-actions.pod:4016
21942 msgid "vgcreate"
21943 msgstr ""
21944
21945 # type: verbatim
21946 #: ../fish/guestfish-actions.pod:4018
21947 #, no-wrap
21948 msgid ""
21949 " vgcreate volgroup 'physvols ...'\n"
21950 "\n"
21951 msgstr ""
21952
21953 # type: =head2
21954 #: ../fish/guestfish-actions.pod:4023
21955 msgid "vglvuuids"
21956 msgstr ""
21957
21958 # type: verbatim
21959 #: ../fish/guestfish-actions.pod:4025
21960 #, no-wrap
21961 msgid ""
21962 " vglvuuids vgname\n"
21963 "\n"
21964 msgstr ""
21965
21966 # type: textblock
21967 #: ../fish/guestfish-actions.pod:4030
21968 msgid ""
21969 "You can use this along with C<lvs> and C<lvuuid> calls to associate logical "
21970 "volumes and volume groups."
21971 msgstr ""
21972
21973 # type: textblock
21974 #: ../fish/guestfish-actions.pod:4033
21975 msgid "See also C<vgpvuuids>."
21976 msgstr ""
21977
21978 # type: =head2
21979 #: ../fish/guestfish-actions.pod:4035
21980 msgid "vgpvuuids"
21981 msgstr ""
21982
21983 # type: verbatim
21984 #: ../fish/guestfish-actions.pod:4037
21985 #, no-wrap
21986 msgid ""
21987 " vgpvuuids vgname\n"
21988 "\n"
21989 msgstr ""
21990
21991 # type: textblock
21992 #: ../fish/guestfish-actions.pod:4042
21993 msgid ""
21994 "You can use this along with C<pvs> and C<pvuuid> calls to associate physical "
21995 "volumes and volume groups."
21996 msgstr ""
21997
21998 # type: textblock
21999 #: ../fish/guestfish-actions.pod:4045
22000 msgid "See also C<vglvuuids>."
22001 msgstr ""
22002
22003 # type: =head2
22004 #: ../fish/guestfish-actions.pod:4047
22005 msgid "vgremove"
22006 msgstr ""
22007
22008 # type: verbatim
22009 #: ../fish/guestfish-actions.pod:4049
22010 #, no-wrap
22011 msgid ""
22012 " vgremove vgname\n"
22013 "\n"
22014 msgstr ""
22015
22016 # type: =head2
22017 #: ../fish/guestfish-actions.pod:4056
22018 msgid "vgrename"
22019 msgstr ""
22020
22021 # type: verbatim
22022 #: ../fish/guestfish-actions.pod:4058
22023 #, no-wrap
22024 msgid ""
22025 " vgrename volgroup newvolgroup\n"
22026 "\n"
22027 msgstr ""
22028
22029 # type: =head2
22030 #: ../fish/guestfish-actions.pod:4062
22031 msgid "vgs"
22032 msgstr ""
22033
22034 # type: verbatim
22035 #: ../fish/guestfish-actions.pod:4064
22036 #, no-wrap
22037 msgid ""
22038 " vgs\n"
22039 "\n"
22040 msgstr ""
22041
22042 # type: textblock
22043 #: ../fish/guestfish-actions.pod:4072
22044 msgid "See also C<vgs-full>."
22045 msgstr ""
22046
22047 # type: =head2
22048 #: ../fish/guestfish-actions.pod:4074
22049 msgid "vgs-full"
22050 msgstr ""
22051
22052 # type: verbatim
22053 #: ../fish/guestfish-actions.pod:4076
22054 #, no-wrap
22055 msgid ""
22056 " vgs-full\n"
22057 "\n"
22058 msgstr ""
22059
22060 # type: =head2
22061 #: ../fish/guestfish-actions.pod:4081
22062 msgid "vgscan"
22063 msgstr ""
22064
22065 # type: verbatim
22066 #: ../fish/guestfish-actions.pod:4083
22067 #, no-wrap
22068 msgid ""
22069 " vgscan\n"
22070 "\n"
22071 msgstr ""
22072
22073 # type: =head2
22074 #: ../fish/guestfish-actions.pod:4088
22075 msgid "vguuid"
22076 msgstr ""
22077
22078 # type: verbatim
22079 #: ../fish/guestfish-actions.pod:4090
22080 #, no-wrap
22081 msgid ""
22082 " vguuid vgname\n"
22083 "\n"
22084 msgstr ""
22085
22086 # type: =head2
22087 #: ../fish/guestfish-actions.pod:4094
22088 msgid "wc-c"
22089 msgstr ""
22090
22091 # type: verbatim
22092 #: ../fish/guestfish-actions.pod:4096
22093 #, no-wrap
22094 msgid ""
22095 " wc-c path\n"
22096 "\n"
22097 msgstr ""
22098
22099 # type: =head2
22100 #: ../fish/guestfish-actions.pod:4101
22101 msgid "wc-l"
22102 msgstr ""
22103
22104 # type: verbatim
22105 #: ../fish/guestfish-actions.pod:4103
22106 #, no-wrap
22107 msgid ""
22108 " wc-l path\n"
22109 "\n"
22110 msgstr ""
22111
22112 # type: =head2
22113 #: ../fish/guestfish-actions.pod:4108
22114 msgid "wc-w"
22115 msgstr ""
22116
22117 # type: verbatim
22118 #: ../fish/guestfish-actions.pod:4110
22119 #, no-wrap
22120 msgid ""
22121 " wc-w path\n"
22122 "\n"
22123 msgstr ""
22124
22125 # type: =head2
22126 #: ../fish/guestfish-actions.pod:4115
22127 msgid "write"
22128 msgstr ""
22129
22130 # type: verbatim
22131 #: ../fish/guestfish-actions.pod:4117
22132 #, no-wrap
22133 msgid ""
22134 " write path content\n"
22135 "\n"
22136 msgstr ""
22137
22138 # type: =head2
22139 #: ../fish/guestfish-actions.pod:4125
22140 msgid "write-file"
22141 msgstr ""
22142
22143 # type: verbatim
22144 #: ../fish/guestfish-actions.pod:4127
22145 #, no-wrap
22146 msgid ""
22147 " write-file path content size\n"
22148 "\n"
22149 msgstr ""
22150
22151 # type: =head2
22152 #: ../fish/guestfish-actions.pod:4150
22153 msgid "zegrep"
22154 msgstr ""
22155
22156 # type: verbatim
22157 #: ../fish/guestfish-actions.pod:4152
22158 #, no-wrap
22159 msgid ""
22160 " zegrep regex path\n"
22161 "\n"
22162 msgstr ""
22163
22164 # type: =head2
22165 #: ../fish/guestfish-actions.pod:4160
22166 msgid "zegrepi"
22167 msgstr ""
22168
22169 # type: verbatim
22170 #: ../fish/guestfish-actions.pod:4162
22171 #, no-wrap
22172 msgid ""
22173 " zegrepi regex path\n"
22174 "\n"
22175 msgstr ""
22176
22177 # type: =head2
22178 #: ../fish/guestfish-actions.pod:4170
22179 msgid "zero"
22180 msgstr ""
22181
22182 # type: verbatim
22183 #: ../fish/guestfish-actions.pod:4172
22184 #, no-wrap
22185 msgid ""
22186 " zero device\n"
22187 "\n"
22188 msgstr ""
22189
22190 # type: textblock
22191 #: ../fish/guestfish-actions.pod:4180
22192 msgid "See also: C<zero-device>, C<scrub-device>."
22193 msgstr ""
22194
22195 # type: =head2
22196 #: ../fish/guestfish-actions.pod:4182
22197 msgid "zero-device"
22198 msgstr ""
22199
22200 # type: verbatim
22201 #: ../fish/guestfish-actions.pod:4184
22202 #, no-wrap
22203 msgid ""
22204 " zero-device device\n"
22205 "\n"
22206 msgstr ""
22207
22208 # type: textblock
22209 #: ../fish/guestfish-actions.pod:4186
22210 msgid ""
22211 "This command writes zeroes over the entire C<device>.  Compare with C<zero> "
22212 "which just zeroes the first few blocks of a device."
22213 msgstr ""
22214
22215 # type: =head2
22216 #: ../fish/guestfish-actions.pod:4193
22217 msgid "zerofree"
22218 msgstr ""
22219
22220 # type: verbatim
22221 #: ../fish/guestfish-actions.pod:4195
22222 #, no-wrap
22223 msgid ""
22224 " zerofree device\n"
22225 "\n"
22226 msgstr ""
22227
22228 # type: =head2
22229 #: ../fish/guestfish-actions.pod:4208
22230 msgid "zfgrep"
22231 msgstr ""
22232
22233 # type: verbatim
22234 #: ../fish/guestfish-actions.pod:4210
22235 #, no-wrap
22236 msgid ""
22237 " zfgrep pattern path\n"
22238 "\n"
22239 msgstr ""
22240
22241 # type: =head2
22242 #: ../fish/guestfish-actions.pod:4218
22243 msgid "zfgrepi"
22244 msgstr ""
22245
22246 # type: verbatim
22247 #: ../fish/guestfish-actions.pod:4220
22248 #, no-wrap
22249 msgid ""
22250 " zfgrepi pattern path\n"
22251 "\n"
22252 msgstr ""
22253
22254 # type: =head2
22255 #: ../fish/guestfish-actions.pod:4228
22256 msgid "zfile"
22257 msgstr ""
22258
22259 # type: verbatim
22260 #: ../fish/guestfish-actions.pod:4230
22261 #, no-wrap
22262 msgid ""
22263 " zfile meth path\n"
22264 "\n"
22265 msgstr ""
22266
22267 # type: textblock
22268 #: ../fish/guestfish-actions.pod:4237
22269 msgid ""
22270 "Since 1.0.63, use C<file> instead which can now process compressed files."
22271 msgstr ""
22272
22273 # type: =head2
22274 #: ../fish/guestfish-actions.pod:4247
22275 msgid "zgrep"
22276 msgstr ""
22277
22278 # type: verbatim
22279 #: ../fish/guestfish-actions.pod:4249
22280 #, no-wrap
22281 msgid ""
22282 " zgrep regex path\n"
22283 "\n"
22284 msgstr ""
22285
22286 # type: =head2
22287 #: ../fish/guestfish-actions.pod:4257
22288 msgid "zgrepi"
22289 msgstr ""
22290
22291 # type: verbatim
22292 #: ../fish/guestfish-actions.pod:4259
22293 #, no-wrap
22294 msgid ""
22295 " zgrepi regex path\n"
22296 "\n"
22297 msgstr ""
22298
22299 # type: textblock
22300 #: ../test-tool/libguestfs-test-tool.pod:5
22301 msgid "libguestfs-test-tool - End user tests for libguestfs"
22302 msgstr ""
22303
22304 # type: verbatim
22305 #: ../test-tool/libguestfs-test-tool.pod:9
22306 #, no-wrap
22307 msgid ""
22308 " libguestfs-test-tool [--options]\n"
22309 "\n"
22310 msgstr ""
22311
22312 # type: textblock
22313 #: ../test-tool/libguestfs-test-tool.pod:13
22314 msgid ""
22315 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
22316 "and developers, to allow them to check basic libguestfs functionality is "
22317 "working.  This is needed because libguestfs occasionally breaks for reasons "
22318 "beyond our control: usually because of changes in the underlying qemu or "
22319 "kernel packages, or the host environment."
22320 msgstr ""
22321
22322 # type: textblock
22323 #: ../test-tool/libguestfs-test-tool.pod:20
22324 msgid "If you suspect a problem in libguestfs, then just run:"
22325 msgstr ""
22326
22327 # type: verbatim
22328 #: ../test-tool/libguestfs-test-tool.pod:22
22329 #, no-wrap
22330 msgid ""
22331 " libguestfs-test-tool\n"
22332 "\n"
22333 msgstr ""
22334
22335 # type: textblock
22336 #: ../test-tool/libguestfs-test-tool.pod:24
22337 msgid "It will print lots of diagnostic messages."
22338 msgstr ""
22339
22340 # type: textblock
22341 #: ../test-tool/libguestfs-test-tool.pod:26
22342 msgid "If it runs to completion successfully, you will see this near the end:"
22343 msgstr ""
22344
22345 # type: verbatim
22346 #: ../test-tool/libguestfs-test-tool.pod:28
22347 #, no-wrap
22348 msgid ""
22349 " ===== TEST FINISHED OK =====\n"
22350 "\n"
22351 msgstr ""
22352
22353 # type: textblock
22354 #: ../test-tool/libguestfs-test-tool.pod:30
22355 msgid "and the test tool will exit with code 0."
22356 msgstr ""
22357
22358 # type: textblock
22359 #: ../test-tool/libguestfs-test-tool.pod:32
22360 msgid ""
22361 "If it fails (and/or exits with non-zero error code), please paste the "
22362 "B<complete, unedited> output of the test tool into a bug report.  More "
22363 "information about reporting bugs can be found on the L<http://libguestfs.org/"
22364 "> website."
22365 msgstr ""
22366
22367 # type: =item
22368 #: ../test-tool/libguestfs-test-tool.pod:41
22369 msgid "I<--help>"
22370 msgstr ""
22371
22372 # type: textblock
22373 #: ../test-tool/libguestfs-test-tool.pod:43
22374 msgid "Display short usage information and exit."
22375 msgstr ""
22376
22377 # type: =item
22378 #: ../test-tool/libguestfs-test-tool.pod:45
22379 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
22380 msgstr ""
22381
22382 # type: textblock
22383 #: ../test-tool/libguestfs-test-tool.pod:47
22384 msgid ""
22385 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
22386 "normally look in the C<$libexec> directory that was configured when the tool "
22387 "was built."
22388 msgstr ""
22389
22390 # type: =item
22391 #: ../test-tool/libguestfs-test-tool.pod:51
22392 msgid "I<--qemu qemu_binary>"
22393 msgstr ""
22394
22395 # type: textblock
22396 #: ../test-tool/libguestfs-test-tool.pod:53
22397 msgid ""
22398 "If you have downloaded another qemu binary, point this option at the full "
22399 "path of the binary to try it."
22400 msgstr ""
22401
22402 # type: =item
22403 #: ../test-tool/libguestfs-test-tool.pod:56
22404 msgid "I<--qemudir qemu_source_dir>"
22405 msgstr ""
22406
22407 # type: textblock
22408 #: ../test-tool/libguestfs-test-tool.pod:58
22409 msgid ""
22410 "If you have compiled qemu from source, point this option at the source "
22411 "directory to try it."
22412 msgstr ""
22413
22414 # type: =item
22415 #: ../test-tool/libguestfs-test-tool.pod:61
22416 msgid "I<--timeout N>"
22417 msgstr ""
22418
22419 # type: textblock
22420 #: ../test-tool/libguestfs-test-tool.pod:63
22421 msgid ""
22422 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
22423 "does not usually need to be adjusted unless your machine is very slow."
22424 msgstr ""
22425
22426 # type: =head1
22427 #: ../test-tool/libguestfs-test-tool.pod:69
22428 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
22429 msgstr ""
22430
22431 # type: textblock
22432 #: ../test-tool/libguestfs-test-tool.pod:71
22433 msgid ""
22434 "If you have compiled another version of qemu from source and would like to "
22435 "try that, then you can use the I<--qemudir> option to point to the qemu "
22436 "source directory."
22437 msgstr ""
22438
22439 # type: textblock
22440 #: ../test-tool/libguestfs-test-tool.pod:75
22441 msgid ""
22442 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
22443 "option to point to the binary."
22444 msgstr ""
22445
22446 # type: textblock
22447 #: ../test-tool/libguestfs-test-tool.pod:78
22448 msgid ""
22449 "When using an alternate qemu with libguestfs, usually you would need to "
22450 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
22451 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
22452 "use either of the I<--qemudir> or I<--qemu> options."
22453 msgstr ""
22454
22455 # type: textblock
22456 #: ../test-tool/libguestfs-test-tool.pod:85
22457 msgid ""
22458 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
22459 "I<1> if there was an error."
22460 msgstr ""
22461
22462 # type: =item
22463 #: ../test-tool/libguestfs-test-tool.pod:92
22464 msgid "/usr/libexec/libguestfs-test-tool-helper"
22465 msgstr ""
22466
22467 # type: textblock
22468 #: ../test-tool/libguestfs-test-tool.pod:94
22469 msgid ""
22470 "This helper program is run inside the appliance and provides additional "
22471 "tests."
22472 msgstr ""
22473
22474 # type: =item
22475 #: ../test-tool/libguestfs-test-tool.pod:97
22476 msgid "/usr/bin/mkisofs"
22477 msgstr ""
22478
22479 # type: textblock
22480 #: ../test-tool/libguestfs-test-tool.pod:99
22481 msgid ""
22482 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
22483 "which is used as part of the tests."
22484 msgstr ""
22485
22486 # type: textblock
22487 #: ../test-tool/libguestfs-test-tool.pod:106
22488 msgid ""
22489 "For the full list of environment variables which may affect libguestfs, "
22490 "please see the L<guestfs(3)> manual page."
22491 msgstr ""
22492
22493 # type: textblock
22494 #: ../test-tool/libguestfs-test-tool.pod:111
22495 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
22496 msgstr ""
22497
22498 # type: textblock
22499 #: ../test-tool/libguestfs-test-tool.pod:121 ../fuse/guestmount.pod:195
22500 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
22501 msgstr ""
22502
22503 # type: textblock
22504 #: ../fuse/guestmount.pod:5
22505 msgid ""
22506 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22507 msgstr ""
22508
22509 # type: verbatim
22510 #: ../fuse/guestmount.pod:9
22511 #, no-wrap
22512 msgid ""
22513 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22514 "\n"
22515 msgstr ""
22516
22517 # type: textblock
22518 #: ../fuse/guestmount.pod:13
22519 msgid ""
22520 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22521 "machines.  If you do this, you risk disk corruption in the VM."
22522 msgstr ""
22523
22524 # type: textblock
22525 #: ../fuse/guestmount.pod:18
22526 msgid ""
22527 "The guestmount program can be used to mount virtual machine filesystems and "
22528 "other disk images on the host.  It uses libguestfs for access to the guest "
22529 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22530 "a mountable device."
22531 msgstr ""
22532
22533 # type: textblock
22534 #: ../fuse/guestmount.pod:23
22535 msgid ""
22536 "Along with other options, you have to give at least one device (I<-a> "
22537 "option) and at least one mountpoint (I<-m> option).  How this works is "
22538 "better explained in the L<guestfish(1)> manual page, or you can use L<virt-"
22539 "inspector(1)> and/or the wrapper script C<guestmount-wrapper> to help you."
22540 msgstr ""
22541
22542 # type: textblock
22543 #: ../fuse/guestmount.pod:29
22544 msgid ""
22545 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22546 "by you, and the filesystem will not be visible to any other users unless you "
22547 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22548 "the filesystem, use the C<fusermount -u> command."
22549 msgstr ""
22550
22551 # type: textblock
22552 #: ../fuse/guestmount.pod:37
22553 msgid ""
22554 "For a typical Windows guest which has its main filesystem on the first "
22555 "partition:"
22556 msgstr ""
22557
22558 # type: verbatim
22559 #: ../fuse/guestmount.pod:40
22560 #, no-wrap
22561 msgid ""
22562 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22563 "\n"
22564 msgstr ""
22565
22566 # type: textblock
22567 #: ../fuse/guestmount.pod:42
22568 msgid ""
22569 "For a typical Linux guest which has a /boot filesystem on the first "
22570 "partition, and the root filesystem on a logical volume:"
22571 msgstr ""
22572
22573 # type: verbatim
22574 #: ../fuse/guestmount.pod:45
22575 #, no-wrap
22576 msgid ""
22577 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22578 "\n"
22579 msgstr ""
22580
22581 # type: textblock
22582 #: ../fuse/guestmount.pod:47
22583 msgid ""
22584 "To get L<virt-inspector(1)> to do the hard work of detecting guest "
22585 "mountpoints for you:"
22586 msgstr ""
22587
22588 # type: verbatim
22589 #: ../fuse/guestmount.pod:50
22590 #, no-wrap
22591 msgid ""
22592 " guestmount $(virt-inspector --ro-fish MyGuest) /mnt\n"
22593 "\n"
22594 msgstr ""
22595
22596 # type: textblock
22597 #: ../fuse/guestmount.pod:52
22598 msgid ""
22599 "(or use --fish if you don't want it to be a read only mount).  The option is "
22600 "called I<--ro-fish> or I<--fish> because these parameters are compatible "
22601 "with L<guestfish(1)>."
22602 msgstr ""
22603
22604 # type: textblock
22605 #: ../fuse/guestmount.pod:56
22606 msgid ""
22607 "If you don't know what filesystems are contained in a guest or disk image, "
22608 "use L<virt-list-filesystems(1)> first:"
22609 msgstr ""
22610
22611 # type: verbatim
22612 #: ../fuse/guestmount.pod:59
22613 #, no-wrap
22614 msgid ""
22615 " virt-list-filesystems MyGuest\n"
22616 "\n"
22617 msgstr ""
22618
22619 # type: textblock
22620 #: ../fuse/guestmount.pod:61
22621 msgid ""
22622 "If you want to trace the libguestfs calls but without excessive debugging, "
22623 "we recommend:"
22624 msgstr ""
22625
22626 # type: verbatim
22627 #: ../fuse/guestmount.pod:64
22628 #, no-wrap
22629 msgid ""
22630 " guestmount [-a ... -m ...] --trace /mnt\n"
22631 "\n"
22632 msgstr ""
22633
22634 # type: textblock
22635 #: ../fuse/guestmount.pod:66
22636 msgid "If you want to debug the program, we recommend:"
22637 msgstr ""
22638
22639 # type: verbatim
22640 #: ../fuse/guestmount.pod:68
22641 #, no-wrap
22642 msgid ""
22643 " guestmount [-a ... -m ...] --trace --verbose /mnt\n"
22644 "\n"
22645 msgstr ""
22646
22647 # type: textblock
22648 #: ../fuse/guestmount.pod:76
22649 msgid "Add a block device or virtual machine image."
22650 msgstr ""
22651
22652 # type: =item
22653 #: ../fuse/guestmount.pod:78
22654 msgid "B<--dir-cache-timeout N>"
22655 msgstr ""
22656
22657 # type: textblock
22658 #: ../fuse/guestmount.pod:80
22659 msgid ""
22660 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22661 "seconds.  The readdir cache [actually, there are several semi-independent "
22662 "caches] is populated after a readdir(2) call with the stat and extended "
22663 "attributes of the files in the directory, in anticipation that they will be "
22664 "requested soon after."
22665 msgstr ""
22666
22667 # type: textblock
22668 #: ../fuse/guestmount.pod:86
22669 msgid ""
22670 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22671 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22672 "requests, only cache existing ones."
22673 msgstr ""
22674
22675 # type: =item
22676 #: ../fuse/guestmount.pod:90
22677 msgid "B<--fuse-help>"
22678 msgstr ""
22679
22680 # type: textblock
22681 #: ../fuse/guestmount.pod:92
22682 msgid "Display help on special FUSE options (see I<-o> below)."
22683 msgstr ""
22684
22685 # type: textblock
22686 #: ../fuse/guestmount.pod:96
22687 msgid "Display brief help and exit."
22688 msgstr ""
22689
22690 # type: =item
22691 #: ../fuse/guestmount.pod:98
22692 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
22693 msgstr ""
22694
22695 # type: textblock
22696 #: ../fuse/guestmount.pod:100
22697 msgid ""
22698 "Mount the named partition or logical volume on the given mountpoint B<in the "
22699 "guest> (this has nothing to do with mountpoints in the host)."
22700 msgstr ""
22701
22702 # type: textblock
22703 #: ../fuse/guestmount.pod:103
22704 msgid ""
22705 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22706 "something on C</>."
22707 msgstr ""
22708
22709 # type: textblock
22710 #: ../fuse/guestmount.pod:108
22711 msgid ""
22712 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22713 "unmounted.  If you specify this option, then we don't attempt to sync the "
22714 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22715 msgstr ""
22716
22717 # type: =item
22718 #: ../fuse/guestmount.pod:113
22719 msgid "B<-o option> | B<--option option>"
22720 msgstr ""
22721
22722 # type: textblock
22723 #: ../fuse/guestmount.pod:115
22724 msgid "Pass extra options to FUSE."
22725 msgstr ""
22726
22727 # type: textblock
22728 #: ../fuse/guestmount.pod:117
22729 msgid ""
22730 "To get a list of all the extra options supported by FUSE, use the command "
22731 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22732 "of them are a good idea."
22733 msgstr ""
22734
22735 # type: verbatim
22736 #: ../fuse/guestmount.pod:121
22737 #, no-wrap
22738 msgid ""
22739 " guestmount --fuse-help\n"
22740 "\n"
22741 msgstr ""
22742
22743 # type: textblock
22744 #: ../fuse/guestmount.pod:123
22745 msgid "Some potentially useful FUSE options:"
22746 msgstr ""
22747
22748 # type: =item
22749 #: ../fuse/guestmount.pod:127
22750 msgid "B<-o allow_other>"
22751 msgstr ""
22752
22753 # type: textblock
22754 #: ../fuse/guestmount.pod:129
22755 msgid "Allow other users to see the filesystem."
22756 msgstr ""
22757
22758 # type: =item
22759 #: ../fuse/guestmount.pod:131
22760 msgid "B<-o attr_timeout=N>"
22761 msgstr ""
22762
22763 # type: textblock
22764 #: ../fuse/guestmount.pod:133
22765 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22766 msgstr ""
22767
22768 # type: =item
22769 #: ../fuse/guestmount.pod:135
22770 msgid "B<-o kernel_cache>"
22771 msgstr ""
22772
22773 # type: textblock
22774 #: ../fuse/guestmount.pod:137
22775 msgid ""
22776 "Allow the kernel to cache files (reduces the number of reads that have to go "
22777 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22778 "afford the extra memory usage."
22779 msgstr ""
22780
22781 # type: =item
22782 #: ../fuse/guestmount.pod:141
22783 msgid "B<-o uid=N> B<-o gid=N>"
22784 msgstr ""
22785
22786 # type: textblock
22787 #: ../fuse/guestmount.pod:143
22788 msgid ""
22789 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22790 "the chosen values."
22791 msgstr ""
22792
22793 # type: textblock
22794 #: ../fuse/guestmount.pod:150
22795 msgid ""
22796 "Add devices and mount everything read-only.  Also disallow writes and make "
22797 "the disk appear read-only to FUSE."
22798 msgstr ""
22799
22800 # type: textblock
22801 #: ../fuse/guestmount.pod:153
22802 msgid ""
22803 "This is highly recommended if you are not going to edit the guest disk.  If "
22804 "the guest is running and this option is I<not> supplied, then there is a "
22805 "strong risk of disk corruption in the guest.  We try to prevent this from "
22806 "happening, but it is not always possible."
22807 msgstr ""
22808
22809 # type: textblock
22810 #: ../fuse/guestmount.pod:160
22811 msgid "Enable SELinux support for the guest."
22812 msgstr ""
22813
22814 # type: =item
22815 #: ../fuse/guestmount.pod:162
22816 msgid "B<--trace>"
22817 msgstr ""
22818
22819 # type: textblock
22820 #: ../fuse/guestmount.pod:164
22821 msgid "Trace libguestfs calls (to stderr)."
22822 msgstr ""
22823
22824 # type: textblock
22825 #: ../fuse/guestmount.pod:166
22826 msgid "This also stops the daemon from forking into the background."
22827 msgstr ""
22828
22829 # type: textblock
22830 #: ../fuse/guestmount.pod:170
22831 msgid "Enable verbose messages from underlying libguestfs."
22832 msgstr ""
22833
22834 # type: textblock
22835 #: ../fuse/guestmount.pod:174
22836 msgid "Display the program version and exit."
22837 msgstr ""
22838
22839 # type: textblock
22840 #: ../fuse/guestmount.pod:180
22841 msgid ""
22842 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22843 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22844 "net/>."
22845 msgstr ""
22846
22847 # type: textblock
22848 #: ../inspector/virt-inspector.pl:40
22849 msgid ""
22850 "virt-inspector - Display OS version, kernel, drivers, mount points, "
22851 "applications, etc. in a virtual machine"
22852 msgstr ""
22853
22854 # type: verbatim
22855 #: ../inspector/virt-inspector.pl:44
22856 #, no-wrap
22857 msgid ""
22858 " virt-inspector [--connect URI] domname\n"
22859 "\n"
22860 msgstr ""
22861
22862 # type: verbatim
22863 #: ../inspector/virt-inspector.pl:46
22864 #, no-wrap
22865 msgid ""
22866 " virt-inspector guest.img [guest.img ...]\n"
22867 "\n"
22868 msgstr ""
22869
22870 # type: textblock
22871 #: ../inspector/virt-inspector.pl:50
22872 msgid ""
22873 "B<virt-inspector> examines a virtual machine and tries to determine the "
22874 "version of the OS, the kernel version, what drivers are installed, whether "
22875 "the virtual machine is fully virtualized (FV) or para-virtualized (PV), what "
22876 "applications are installed and more."
22877 msgstr ""
22878
22879 # type: textblock
22880 #: ../inspector/virt-inspector.pl:55
22881 msgid ""
22882 "Virt-inspector can produce output in several formats, including a readable "
22883 "text report, and XML for feeding into other programs."
22884 msgstr ""
22885
22886 # type: textblock
22887 #: ../inspector/virt-inspector.pl:58
22888 msgid ""
22889 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
22890 "libvirt domain (see: C<virsh list --all>)."
22891 msgstr ""
22892
22893 # type: textblock
22894 #: ../inspector/virt-inspector.pl:61
22895 msgid ""
22896 "You can also run virt-inspector directly on disk images from a single "
22897 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
22898 "has several block devices, in which case you should list them one after "
22899 "another, with the first corresponding to the guest's C</dev/sda>, the second "
22900 "to the guest's C</dev/sdb> and so on."
22901 msgstr ""
22902
22903 # type: textblock
22904 #: ../inspector/virt-inspector.pl:67
22905 msgid ""
22906 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22907 "inspect several virtual machines, you have to run virt-inspector several "
22908 "times (for example, from a shell script for-loop)."
22909 msgstr ""
22910
22911 # type: textblock
22912 #: ../inspector/virt-inspector.pl:72
22913 msgid ""
22914 "Because virt-inspector needs direct access to guest images, it won't "
22915 "normally work over remote libvirt connections."
22916 msgstr ""
22917
22918 # type: textblock
22919 #: ../inspector/virt-inspector.pl:85 ../tools/virt-cat.pl:90
22920 #: ../tools/virt-df.pl:81 ../tools/virt-edit.pl:83
22921 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-list-partitions.pl:61
22922 #: ../tools/virt-ls.pl:89 ../tools/virt-make-fs.pl:163
22923 #: ../tools/virt-rescue.pl:113 ../tools/virt-tar.pl:109
22924 #: ../tools/virt-win-reg.pl:182
22925 msgid "Display brief help."
22926 msgstr ""
22927
22928 # type: =item
22929 #: ../inspector/virt-inspector.pl:91 ../tools/virt-cat.pl:96
22930 #: ../tools/virt-df.pl:87 ../tools/virt-edit.pl:89
22931 #: ../tools/virt-list-filesystems.pl:66 ../tools/virt-list-partitions.pl:67
22932 #: ../tools/virt-ls.pl:95 ../tools/virt-make-fs.pl:169
22933 #: ../tools/virt-rescue.pl:119 ../tools/virt-resize.pl:249
22934 #: ../tools/virt-tar.pl:115 ../tools/virt-win-reg.pl:188
22935 msgid "B<--version>"
22936 msgstr ""
22937
22938 # type: textblock
22939 #: ../inspector/virt-inspector.pl:93 ../tools/virt-cat.pl:98
22940 #: ../tools/virt-df.pl:89 ../tools/virt-edit.pl:91
22941 #: ../tools/virt-list-filesystems.pl:68 ../tools/virt-list-partitions.pl:69
22942 #: ../tools/virt-ls.pl:97 ../tools/virt-make-fs.pl:171
22943 #: ../tools/virt-rescue.pl:121 ../tools/virt-resize.pl:251
22944 #: ../tools/virt-tar.pl:117 ../tools/virt-win-reg.pl:190
22945 msgid "Display version number and exit."
22946 msgstr ""
22947
22948 # type: =item
22949 #: ../inspector/virt-inspector.pl:99 ../tools/virt-cat.pl:104
22950 #: ../tools/virt-df.pl:95 ../tools/virt-edit.pl:113
22951 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-list-partitions.pl:75
22952 #: ../tools/virt-ls.pl:103 ../tools/virt-rescue.pl:135
22953 #: ../tools/virt-tar.pl:123 ../tools/virt-win-reg.pl:204
22954 msgid "B<--connect URI> | B<-c URI>"
22955 msgstr ""
22956
22957 # type: textblock
22958 #: ../inspector/virt-inspector.pl:101 ../tools/virt-cat.pl:106
22959 #: ../tools/virt-df.pl:97 ../tools/virt-edit.pl:115
22960 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-list-partitions.pl:77
22961 #: ../tools/virt-ls.pl:105 ../tools/virt-rescue.pl:137
22962 #: ../tools/virt-tar.pl:125 ../tools/virt-win-reg.pl:206
22963 msgid ""
22964 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
22965 "to the default libvirt hypervisor."
22966 msgstr ""
22967
22968 # type: textblock
22969 #: ../inspector/virt-inspector.pl:104
22970 msgid ""
22971 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22972 "you specify guest block devices directly, then libvirt is not used at all."
22973 msgstr ""
22974
22975 # type: textblock
22976 #: ../inspector/virt-inspector.pl:114
22977 msgid ""
22978 "The following options select the output format.  Use only one of them.  The "
22979 "default is a readable text report."
22980 msgstr ""
22981
22982 # type: =item
22983 #: ../inspector/virt-inspector.pl:119
22984 msgid "B<--text> (default)"
22985 msgstr ""
22986
22987 # type: textblock
22988 #: ../inspector/virt-inspector.pl:121
22989 msgid "Plain text report."
22990 msgstr ""
22991
22992 # type: =item
22993 #: ../inspector/virt-inspector.pl:123
22994 msgid "B<--none>"
22995 msgstr ""
22996
22997 # type: textblock
22998 #: ../inspector/virt-inspector.pl:125
22999 msgid "Produce no output at all."
23000 msgstr ""
23001
23002 # type: =item
23003 #: ../inspector/virt-inspector.pl:127
23004 msgid "B<--xml>"
23005 msgstr ""
23006
23007 # type: textblock
23008 #: ../inspector/virt-inspector.pl:129
23009 msgid ""
23010 "If you select I<--xml> then you get XML output which can be fed to other "
23011 "programs."
23012 msgstr ""
23013
23014 # type: =item
23015 #: ../inspector/virt-inspector.pl:132
23016 msgid "B<--yaml>"
23017 msgstr ""
23018
23019 # type: textblock
23020 #: ../inspector/virt-inspector.pl:134
23021 msgid ""
23022 "If you select I<--yaml> then you get YAML output which can be fed to other "
23023 "programs."
23024 msgstr ""
23025
23026 # type: =item
23027 #: ../inspector/virt-inspector.pl:137
23028 msgid "B<--perl>"
23029 msgstr ""
23030
23031 # type: textblock
23032 #: ../inspector/virt-inspector.pl:139
23033 msgid ""
23034 "If you select I<--perl> then you get Perl structures output which can be "
23035 "used directly in another Perl program."
23036 msgstr ""
23037
23038 # type: =item
23039 #: ../inspector/virt-inspector.pl:142
23040 msgid "B<--fish>"
23041 msgstr ""
23042
23043 # type: =item
23044 #: ../inspector/virt-inspector.pl:144
23045 msgid "B<--ro-fish>"
23046 msgstr ""
23047
23048 # type: textblock
23049 #: ../inspector/virt-inspector.pl:146
23050 msgid ""
23051 "If you select I<--fish> then we print a L<guestfish(1)> command line which "
23052 "will automatically mount up the filesystems on the correct mount points.  "
23053 "Try this for example:"
23054 msgstr ""
23055
23056 # type: verbatim
23057 #: ../inspector/virt-inspector.pl:150
23058 #, no-wrap
23059 msgid ""
23060 " guestfish $(virt-inspector --fish guest.img)\n"
23061 "\n"
23062 msgstr ""
23063
23064 # type: textblock
23065 #: ../inspector/virt-inspector.pl:152
23066 msgid ""
23067 "I<--ro-fish> is the same, but the I<--ro> option is passed to guestfish so "
23068 "that the filesystems are mounted read-only."
23069 msgstr ""
23070
23071 # type: =item
23072 #: ../inspector/virt-inspector.pl:155
23073 msgid "B<--query>"
23074 msgstr ""
23075
23076 # type: textblock
23077 #: ../inspector/virt-inspector.pl:157
23078 msgid ""
23079 "In \"query mode\" we answer common questions about the guest, such as "
23080 "whether it is fullvirt or needs a Xen hypervisor to run."
23081 msgstr ""
23082
23083 # type: textblock
23084 #: ../inspector/virt-inspector.pl:160
23085 msgid "See section I<QUERY MODE> below."
23086 msgstr ""
23087
23088 # type: =item
23089 #: ../inspector/virt-inspector.pl:166
23090 msgid "B<--windows-registry>"
23091 msgstr ""
23092
23093 # type: textblock
23094 #: ../inspector/virt-inspector.pl:168
23095 msgid ""
23096 "This flag is ignored for compatibility with earlier releases of the software."
23097 msgstr ""
23098
23099 # type: textblock
23100 #: ../inspector/virt-inspector.pl:171
23101 msgid ""
23102 "In this version, if L<Win::Hivex(3)> is available, then we attempt to parse "
23103 "information out of the Registry for any Windows guest."
23104 msgstr ""
23105
23106 # type: =head1
23107 #: ../inspector/virt-inspector.pl:218
23108 msgid "OUTPUT FORMAT"
23109 msgstr ""
23110
23111 # type: verbatim
23112 #: ../inspector/virt-inspector.pl:220
23113 #, no-wrap
23114 msgid ""
23115 " Operating system(s)\n"
23116 " -------------------\n"
23117 " Linux (distro + version)\n"
23118 " Windows (version)\n"
23119 "    |\n"
23120 "    |\n"
23121 "    +--- Filesystems ---------- Installed apps --- Kernel & drivers\n"
23122 "         -----------            --------------     ----------------\n"
23123 "         mount point => device  List of apps       Extra information\n"
23124 "         mount point => device  and versions       about kernel(s)\n"
23125 "              ...                                  and drivers\n"
23126 "         swap => swap device\n"
23127 "         (plus lots of extra information\n"
23128 "         about each filesystem)\n"
23129 "\n"
23130 msgstr ""
23131
23132 # type: textblock
23133 #: ../inspector/virt-inspector.pl:235
23134 msgid "The output of virt-inspector is a complex two-level data structure."
23135 msgstr ""
23136
23137 # type: textblock
23138 #: ../inspector/virt-inspector.pl:237
23139 msgid ""
23140 "At the top level is a list of the operating systems installed on the guest.  "
23141 "(For the vast majority of guests, only a single OS is installed.)  The data "
23142 "returned for the OS includes the name (Linux, Windows), the distribution and "
23143 "version."
23144 msgstr ""
23145
23146 # type: textblock
23147 #: ../inspector/virt-inspector.pl:242
23148 msgid "The diagram above shows what we return for each OS."
23149 msgstr ""
23150
23151 # type: textblock
23152 #: ../inspector/virt-inspector.pl:244
23153 msgid ""
23154 "With the I<--xml> option the output is mapped into an XML document.  There "
23155 "is a RELAX-NG schema for this XML in the file I<virt-inspector.rng> which "
23156 "normally ships with virt-inspector, or can be found in the source."
23157 msgstr ""
23158
23159 # type: textblock
23160 #: ../inspector/virt-inspector.pl:249
23161 msgid ""
23162 "With the I<--fish> or I<--ro-fish> option the mount points are mapped to "
23163 "L<guestfish(1)> command line parameters, so that you can go in afterwards "
23164 "and inspect the guest with everything mounted in the right place.  For "
23165 "example:"
23166 msgstr ""
23167
23168 # type: verbatim
23169 #: ../inspector/virt-inspector.pl:254
23170 #, no-wrap
23171 msgid ""
23172 " guestfish $(virt-inspector --ro-fish guest.img)\n"
23173 " ==> guestfish --ro -a guest.img -m /dev/VG/LV:/ -m /dev/sda1:/boot\n"
23174 "\n"
23175 msgstr ""
23176
23177 # type: =head1
23178 #: ../inspector/virt-inspector.pl:589
23179 msgid "QUERY MODE"
23180 msgstr ""
23181
23182 # type: textblock
23183 #: ../inspector/virt-inspector.pl:591
23184 msgid ""
23185 "When you use C<virt-inspector --query>, the output is a series of lines of "
23186 "the form:"
23187 msgstr ""
23188
23189 # type: verbatim
23190 #: ../inspector/virt-inspector.pl:594
23191 #, no-wrap
23192 msgid ""
23193 " windows=no\n"
23194 " linux=yes\n"
23195 " fullvirt=yes\n"
23196 " xen_pv_drivers=no\n"
23197 "\n"
23198 msgstr ""
23199
23200 # type: textblock
23201 #: ../inspector/virt-inspector.pl:599
23202 msgid ""
23203 "(each answer is usually C<yes> or C<no>, or the line is completely missing "
23204 "if we could not determine the answer at all)."
23205 msgstr ""
23206
23207 # type: textblock
23208 #: ../inspector/virt-inspector.pl:602
23209 msgid ""
23210 "If the guest is multiboot, you can get apparently conflicting answers (eg. "
23211 "C<windows=yes> and C<linux=yes>, or a guest which is both fullvirt and has a "
23212 "Xen PV kernel).  This is normal, and just means that the guest can do both "
23213 "things, although it might require operator intervention such as selecting a "
23214 "boot option when the guest is booting."
23215 msgstr ""
23216
23217 # type: textblock
23218 #: ../inspector/virt-inspector.pl:609
23219 msgid "This section describes the full range of answers possible."
23220 msgstr ""
23221
23222 # type: =item
23223 #: ../inspector/virt-inspector.pl:630
23224 msgid "windows=(yes|no)"
23225 msgstr ""
23226
23227 # type: textblock
23228 #: ../inspector/virt-inspector.pl:632
23229 msgid "Answer C<yes> if Microsoft Windows is installed in the guest."
23230 msgstr ""
23231
23232 # type: =item
23233 #: ../inspector/virt-inspector.pl:645
23234 msgid "linux=(yes|no)"
23235 msgstr ""
23236
23237 # type: textblock
23238 #: ../inspector/virt-inspector.pl:647
23239 msgid "Answer C<yes> if a Linux kernel is installed in the guest."
23240 msgstr ""
23241
23242 # type: =item
23243 #: ../inspector/virt-inspector.pl:660
23244 msgid "rhel=(yes|no)"
23245 msgstr ""
23246
23247 # type: textblock
23248 #: ../inspector/virt-inspector.pl:662
23249 msgid "Answer C<yes> if the guest contains Red Hat Enterprise Linux."
23250 msgstr ""
23251
23252 # type: =item
23253 #: ../inspector/virt-inspector.pl:676
23254 msgid "fedora=(yes|no)"
23255 msgstr ""
23256
23257 # type: textblock
23258 #: ../inspector/virt-inspector.pl:678
23259 msgid "Answer C<yes> if the guest contains the Fedora Linux distribution."
23260 msgstr ""
23261
23262 # type: =item
23263 #: ../inspector/virt-inspector.pl:691
23264 msgid "debian=(yes|no)"
23265 msgstr ""
23266
23267 # type: textblock
23268 #: ../inspector/virt-inspector.pl:693
23269 msgid "Answer C<yes> if the guest contains the Debian Linux distribution."
23270 msgstr ""
23271
23272 # type: =item
23273 #: ../inspector/virt-inspector.pl:706
23274 msgid "fullvirt=(yes|no)"
23275 msgstr ""
23276
23277 # type: textblock
23278 #: ../inspector/virt-inspector.pl:708
23279 msgid ""
23280 "Answer C<yes> if there is at least one operating system kernel installed in "
23281 "the guest which runs fully virtualized.  Such a guest would require a "
23282 "hypervisor which supports full system virtualization."
23283 msgstr ""
23284
23285 # type: =item
23286 #: ../inspector/virt-inspector.pl:731
23287 msgid "xen_domU_kernel=(yes|no)"
23288 msgstr ""
23289
23290 # type: textblock
23291 #: ../inspector/virt-inspector.pl:733
23292 msgid ""
23293 "Answer C<yes> if there is at least one Linux kernel installed in the guest "
23294 "which is compiled as a Xen DomU (a Xen paravirtualized guest)."
23295 msgstr ""
23296
23297 # type: =item
23298 #: ../inspector/virt-inspector.pl:753
23299 msgid "xen_pv_drivers=(yes|no)"
23300 msgstr ""
23301
23302 # type: textblock
23303 #: ../inspector/virt-inspector.pl:755
23304 msgid ""
23305 "Answer C<yes> if the guest has Xen paravirtualized drivers installed "
23306 "(usually the kernel itself will be fully virtualized, but the PV drivers "
23307 "have been installed by the administrator for performance reasons)."
23308 msgstr ""
23309
23310 # type: =item
23311 #: ../inspector/virt-inspector.pl:777
23312 msgid "virtio_drivers=(yes|no)"
23313 msgstr ""
23314
23315 # type: textblock
23316 #: ../inspector/virt-inspector.pl:779
23317 msgid ""
23318 "Answer C<yes> if the guest has virtio paravirtualized drivers installed.  "
23319 "Virtio drivers are commonly used to improve the performance of KVM."
23320 msgstr ""
23321
23322 # type: =item
23323 #: ../inspector/virt-inspector.pl:800
23324 msgid "userspace_arch=(x86_64|...)"
23325 msgstr ""
23326
23327 # type: textblock
23328 #: ../inspector/virt-inspector.pl:802
23329 msgid "Print the architecture of userspace."
23330 msgstr ""
23331
23332 # type: textblock
23333 #: ../inspector/virt-inspector.pl:804 ../inspector/virt-inspector.pl:825
23334 msgid "NB. For multi-boot VMs this can print several lines."
23335 msgstr ""
23336
23337 # type: =item
23338 #: ../inspector/virt-inspector.pl:821
23339 msgid "kernel_arch=(x86_64|...)"
23340 msgstr ""
23341
23342 # type: textblock
23343 #: ../inspector/virt-inspector.pl:823
23344 msgid "Print the architecture of the kernel."
23345 msgstr ""
23346
23347 # type: textblock
23348 #: ../inspector/virt-inspector.pl:848 ../tools/virt-df.pl:484
23349 msgid ""
23350 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
23351 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23352 msgstr ""
23353
23354 # type: textblock
23355 #: ../inspector/virt-inspector.pl:857 ../tools/virt-cat.pl:175
23356 #: ../tools/virt-df.pl:493 ../tools/virt-edit.pl:339
23357 #: ../tools/virt-list-filesystems.pl:205 ../tools/virt-list-partitions.pl:242
23358 #: ../tools/virt-ls.pl:223 ../tools/virt-make-fs.pl:554
23359 #: ../tools/virt-rescue.pl:243 ../tools/virt-resize.pl:1409
23360 #: ../tools/virt-tar.pl:270 ../tools/virt-win-reg.pl:489
23361 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
23362 msgstr ""
23363
23364 # type: textblock
23365 #: ../inspector/virt-inspector.pl:859
23366 msgid "Matthew Booth L<mbooth@redhat.com>"
23367 msgstr ""
23368
23369 # type: textblock
23370 #: ../inspector/virt-inspector.pl:863 ../tools/virt-cat.pl:179
23371 #: ../tools/virt-list-filesystems.pl:209 ../tools/virt-ls.pl:227
23372 #: ../tools/virt-tar.pl:274
23373 msgid "Copyright (C) 2009 Red Hat Inc."
23374 msgstr ""
23375
23376 # type: textblock
23377 #: ../tools/virt-cat.pl:34
23378 msgid "virt-cat - Display a file in a virtual machine"
23379 msgstr ""
23380
23381 # type: verbatim
23382 #: ../tools/virt-cat.pl:38
23383 #, no-wrap
23384 msgid ""
23385 " virt-cat [--options] domname file\n"
23386 "\n"
23387 msgstr ""
23388
23389 # type: verbatim
23390 #: ../tools/virt-cat.pl:40
23391 #, no-wrap
23392 msgid ""
23393 " virt-cat [--options] disk.img [disk.img ...] file\n"
23394 "\n"
23395 msgstr ""
23396
23397 # type: textblock
23398 #: ../tools/virt-cat.pl:44
23399 msgid ""
23400 "C<virt-cat> is a command line tool to display the contents of C<file> where "
23401 "C<file> exists in the named virtual machine (or disk image)."
23402 msgstr ""
23403
23404 # type: textblock
23405 #: ../tools/virt-cat.pl:47
23406 msgid ""
23407 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
23408 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
23409 "tool."
23410 msgstr ""
23411
23412 # type: textblock
23413 #: ../tools/virt-cat.pl:53
23414 msgid ""
23415 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
23416 msgstr ""
23417
23418 # type: verbatim
23419 #: ../tools/virt-cat.pl:56
23420 #, no-wrap
23421 msgid ""
23422 " virt-cat mydomain /etc/fstab\n"
23423 "\n"
23424 msgstr ""
23425
23426 # type: textblock
23427 #: ../tools/virt-cat.pl:58
23428 msgid "List syslog messages from a VM:"
23429 msgstr ""
23430
23431 # type: verbatim
23432 #: ../tools/virt-cat.pl:60
23433 #, no-wrap
23434 msgid ""
23435 " virt-cat mydomain /var/log/messages | tail\n"
23436 "\n"
23437 msgstr ""
23438
23439 # type: textblock
23440 #: ../tools/virt-cat.pl:62
23441 msgid "Find out what DHCP IP address a VM acquired:"
23442 msgstr ""
23443
23444 # type: verbatim
23445 #: ../tools/virt-cat.pl:64
23446 #, no-wrap
23447 msgid ""
23448 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
23449 "\n"
23450 msgstr ""
23451
23452 # type: textblock
23453 #: ../tools/virt-cat.pl:66
23454 msgid "Find out what packages were recently installed:"
23455 msgstr ""
23456
23457 # type: verbatim
23458 #: ../tools/virt-cat.pl:68
23459 #, no-wrap
23460 msgid ""
23461 " virt-cat mydomain /var/log/yum.log | tail\n"
23462 "\n"
23463 msgstr ""
23464
23465 # type: textblock
23466 #: ../tools/virt-cat.pl:70
23467 msgid "Find out who is logged on inside a virtual machine:"
23468 msgstr ""
23469
23470 # type: verbatim
23471 #: ../tools/virt-cat.pl:72
23472 #, no-wrap
23473 msgid ""
23474 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
23475 " who /tmp/utmp\n"
23476 "\n"
23477 msgstr ""
23478
23479 # type: textblock
23480 #: ../tools/virt-cat.pl:75
23481 msgid "or who was logged on:"
23482 msgstr ""
23483
23484 # type: verbatim
23485 #: ../tools/virt-cat.pl:77
23486 #, no-wrap
23487 msgid ""
23488 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
23489 " last -f /tmp/wtmp\n"
23490 "\n"
23491 msgstr ""
23492
23493 # type: textblock
23494 #: ../tools/virt-cat.pl:109 ../tools/virt-df.pl:100 ../tools/virt-edit.pl:118
23495 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
23496 #: ../tools/virt-ls.pl:108 ../tools/virt-rescue.pl:140
23497 #: ../tools/virt-tar.pl:128 ../tools/virt-win-reg.pl:209
23498 msgid ""
23499 "If you specify guest block devices directly, then libvirt is not used at all."
23500 msgstr ""
23501
23502 # type: textblock
23503 #: ../tools/virt-cat.pl:165
23504 msgid ""
23505 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, L<Sys::"
23506 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23507 msgstr ""
23508
23509 # type: =head1
23510 #: ../tools/virt-cat.pl:173 ../tools/virt-df.pl:491 ../tools/virt-edit.pl:337
23511 #: ../tools/virt-list-filesystems.pl:203 ../tools/virt-list-partitions.pl:240
23512 #: ../tools/virt-ls.pl:221 ../tools/virt-make-fs.pl:552
23513 #: ../tools/virt-rescue.pl:241 ../tools/virt-resize.pl:1407
23514 #: ../tools/virt-tar.pl:268 ../tools/virt-win-reg.pl:487
23515 msgid "AUTHOR"
23516 msgstr ""
23517
23518 # type: textblock
23519 #: ../tools/virt-df.pl:36
23520 msgid "virt-df - Display free space on virtual filesystems"
23521 msgstr ""
23522
23523 # type: verbatim
23524 #: ../tools/virt-df.pl:40
23525 #, no-wrap
23526 msgid ""
23527 " virt-df [--options]\n"
23528 "\n"
23529 msgstr ""
23530
23531 # type: verbatim
23532 #: ../tools/virt-df.pl:42
23533 #, no-wrap
23534 msgid ""
23535 " virt-df [--options] domname\n"
23536 "\n"
23537 msgstr ""
23538
23539 # type: verbatim
23540 #: ../tools/virt-df.pl:44
23541 #, no-wrap
23542 msgid ""
23543 " virt-df [--options] disk.img [disk.img ...]\n"
23544 "\n"
23545 msgstr ""
23546
23547 # type: textblock
23548 #: ../tools/virt-df.pl:48
23549 msgid ""
23550 "C<virt-df> is a command line tool to display free space on virtual machine "
23551 "filesystems.  Unlike other tools, it doesn't just display the amount of "
23552 "space allocated to a virtual machine, but can look inside the virtual "
23553 "machine to see how much space is really being used."
23554 msgstr ""
23555
23556 # type: textblock
23557 #: ../tools/virt-df.pl:53
23558 msgid ""
23559 "It is like the L<df(1)> command, but for virtual machines, except that it "
23560 "also works for Windows virtual machines."
23561 msgstr ""
23562
23563 # type: textblock
23564 #: ../tools/virt-df.pl:56
23565 msgid ""
23566 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
23567 "of all active and inactive guests, and performs a C<df>-type operation on "
23568 "each one in turn, printing out the results."
23569 msgstr ""
23570
23571 # type: textblock
23572 #: ../tools/virt-df.pl:60
23573 msgid ""
23574 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
23575 "either the single named libvirt domain, or on the disk image(s) listed on "
23576 "the command line (which must all belong to a single VM).  In this mode (with "
23577 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
23578 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
23579 msgstr ""
23580
23581 # type: textblock
23582 #: ../tools/virt-df.pl:67
23583 msgid ""
23584 "Use the C<--csv> option to get a format which can be easily parsed by other "
23585 "programs.  Other options are mostly similar to standard C<df> options.  See "
23586 "below for the complete list."
23587 msgstr ""
23588
23589 # type: =item
23590 #: ../tools/virt-df.pl:107
23591 msgid "B<--csv>"
23592 msgstr ""
23593
23594 # type: textblock
23595 #: ../tools/virt-df.pl:109
23596 msgid ""
23597 "Write out the results in CSV format (comma-separated values).  This format "
23598 "can be imported easily into databases and spreadsheets, but read L</NOTE "
23599 "ABOUT CSV FORMAT> below."
23600 msgstr ""
23601
23602 # type: =item
23603 #: ../tools/virt-df.pl:117
23604 msgid "B<--human-readable> | B<-h>"
23605 msgstr ""
23606
23607 # type: textblock
23608 #: ../tools/virt-df.pl:119
23609 msgid "Print sizes in human-readable format."
23610 msgstr ""
23611
23612 # type: textblock
23613 #: ../tools/virt-df.pl:121
23614 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
23615 msgstr ""
23616
23617 # type: =item
23618 #: ../tools/virt-df.pl:127
23619 msgid "B<--inodes> | B<-i>"
23620 msgstr ""
23621
23622 # type: textblock
23623 #: ../tools/virt-df.pl:129
23624 msgid "Print inodes instead of blocks."
23625 msgstr ""
23626
23627 # type: =head1
23628 #: ../tools/virt-df.pl:458
23629 msgid "NOTE ABOUT CSV FORMAT"
23630 msgstr ""
23631
23632 # type: textblock
23633 #: ../tools/virt-df.pl:460
23634 msgid ""
23635 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
23636 "should be easy to parse, but it is definitely not easy to parse."
23637 msgstr ""
23638
23639 # type: textblock
23640 #: ../tools/virt-df.pl:463
23641 msgid ""
23642 "Myth: Just split fields at commas.  Reality: This does I<not> work "
23643 "reliably.  This example has two columns:"
23644 msgstr ""
23645
23646 # type: verbatim
23647 #: ../tools/virt-df.pl:466
23648 #, no-wrap
23649 msgid ""
23650 " \"foo,bar\",baz\n"
23651 "\n"
23652 msgstr ""
23653
23654 # type: textblock
23655 #: ../tools/virt-df.pl:468
23656 msgid ""
23657 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
23658 "reliably.  This example has one row:"
23659 msgstr ""
23660
23661 # type: verbatim
23662 #: ../tools/virt-df.pl:471
23663 #, no-wrap
23664 msgid ""
23665 " \"foo\n"
23666 " bar\",baz\n"
23667 "\n"
23668 msgstr ""
23669
23670 # type: textblock
23671 #: ../tools/virt-df.pl:474
23672 msgid ""
23673 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
23674 "packaged in major Linux distributions)."
23675 msgstr ""
23676
23677 # type: textblock
23678 #: ../tools/virt-df.pl:477
23679 msgid ""
23680 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
23681 "or Python's built-in csv library)."
23682 msgstr ""
23683
23684 # type: textblock
23685 #: ../tools/virt-df.pl:480
23686 msgid "Most spreadsheets and databases can import CSV directly."
23687 msgstr ""
23688
23689 # type: textblock
23690 #: ../tools/virt-df.pl:497 ../tools/virt-edit.pl:343
23691 #: ../tools/virt-list-partitions.pl:246 ../tools/virt-rescue.pl:247
23692 msgid "Copyright (C) 2009-2010 Red Hat Inc."
23693 msgstr ""
23694
23695 # type: textblock
23696 #: ../tools/virt-edit.pl:35
23697 msgid "virt-edit - Edit a file in a virtual machine"
23698 msgstr ""
23699
23700 # type: verbatim
23701 #: ../tools/virt-edit.pl:39
23702 #, no-wrap
23703 msgid ""
23704 " virt-edit [--options] domname file\n"
23705 "\n"
23706 msgstr ""
23707
23708 # type: verbatim
23709 #: ../tools/virt-edit.pl:41
23710 #, no-wrap
23711 msgid ""
23712 " virt-edit [--options] disk.img [disk.img ...] file\n"
23713 "\n"
23714 msgstr ""
23715
23716 # type: verbatim
23717 #: ../tools/virt-edit.pl:43
23718 #, no-wrap
23719 msgid ""
23720 " virt-edit [domname|disk.img] file -e 'expr'\n"
23721 "\n"
23722 msgstr ""
23723
23724 # type: textblock
23725 #: ../tools/virt-edit.pl:47
23726 msgid ""
23727 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
23728 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
23729 "doing this, but doesn't catch all cases."
23730 msgstr ""
23731
23732 # type: textblock
23733 #: ../tools/virt-edit.pl:53
23734 msgid ""
23735 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
23736 "the named virtual machine (or disk image)."
23737 msgstr ""
23738
23739 # type: textblock
23740 #: ../tools/virt-edit.pl:56
23741 msgid ""
23742 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
23743 "you should look at the L<guestfish(1)> tool."
23744 msgstr ""
23745
23746 # type: textblock
23747 #: ../tools/virt-edit.pl:61
23748 msgid "Edit the named files interactively:"
23749 msgstr ""
23750
23751 # type: verbatim
23752 #: ../tools/virt-edit.pl:63
23753 #, no-wrap
23754 msgid ""
23755 " virt-edit mydomain /boot/grub/grub.conf\n"
23756 "\n"
23757 msgstr ""
23758
23759 # type: verbatim
23760 #: ../tools/virt-edit.pl:65
23761 #, no-wrap
23762 msgid ""
23763 " virt-edit mydomain /etc/passwd\n"
23764 "\n"
23765 msgstr ""
23766
23767 # type: textblock
23768 #: ../tools/virt-edit.pl:67
23769 msgid ""
23770 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
23771 "below).  To change the init default level to 5:"
23772 msgstr ""
23773
23774 # type: verbatim
23775 #: ../tools/virt-edit.pl:71
23776 #, no-wrap
23777 msgid ""
23778 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
23779 "\n"
23780 msgstr ""
23781
23782 # type: =item
23783 #: ../tools/virt-edit.pl:97
23784 msgid "B<--backup extension> | B<-b extension>"
23785 msgstr ""
23786
23787 # type: textblock
23788 #: ../tools/virt-edit.pl:99
23789 msgid ""
23790 "Create a backup of the original file I<in the guest disk image>.  The backup "
23791 "has the original filename with C<extension> added."
23792 msgstr ""
23793
23794 # type: textblock
23795 #: ../tools/virt-edit.pl:102
23796 msgid ""
23797 "Usually the first character of C<extension> would be a dot C<.> so you would "
23798 "write:"
23799 msgstr ""
23800
23801 # type: verbatim
23802 #: ../tools/virt-edit.pl:105
23803 #, no-wrap
23804 msgid ""
23805 " virt-edit -b .orig [etc]\n"
23806 "\n"
23807 msgstr ""
23808
23809 # type: textblock
23810 #: ../tools/virt-edit.pl:107
23811 msgid "By default, no backup file is made."
23812 msgstr ""
23813
23814 # type: =item
23815 #: ../tools/virt-edit.pl:125
23816 msgid "B<--expr EXPR> | B<-e EXPR>"
23817 msgstr ""
23818
23819 # type: textblock
23820 #: ../tools/virt-edit.pl:127
23821 msgid ""
23822 "Instead of launching the external editor, non-interactively apply the Perl "
23823 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
23824 "EDITING> below."
23825 msgstr ""
23826
23827 # type: textblock
23828 #: ../tools/virt-edit.pl:131
23829 msgid ""
23830 "Be careful to properly quote the expression to prevent it from being altered "
23831 "by the shell."
23832 msgstr ""
23833
23834 # type: =head1
23835 #: ../tools/virt-edit.pl:250
23836 msgid "NON-INTERACTIVE EDITING"
23837 msgstr ""
23838
23839 # type: textblock
23840 #: ../tools/virt-edit.pl:252
23841 msgid ""
23842 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
23843 "administrator can interactively edit the file."
23844 msgstr ""
23845
23846 # type: textblock
23847 #: ../tools/virt-edit.pl:255
23848 msgid ""
23849 "There are two ways also to use C<virt-edit> from scripts in order to make "
23850 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
23851 "like this, it's less error-prone to write scripts directly using the "
23852 "libguestfs API and Augeas for configuration file editing.)"
23853 msgstr ""
23854
23855 # type: textblock
23856 #: ../tools/virt-edit.pl:261
23857 msgid ""
23858 "The first method is to temporarily set C<$EDITOR> to any script or program "
23859 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
23860 "update C<tmpfile> in place however it likes."
23861 msgstr ""
23862
23863 # type: textblock
23864 #: ../tools/virt-edit.pl:265
23865 msgid ""
23866 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
23867 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
23868 "instances of C<foo> with C<bar> in a file:"
23869 msgstr ""
23870
23871 # type: verbatim
23872 #: ../tools/virt-edit.pl:269
23873 #, no-wrap
23874 msgid ""
23875 " virt-edit domname filename -e 's/foo/bar/'\n"
23876 "\n"
23877 msgstr ""
23878
23879 # type: textblock
23880 #: ../tools/virt-edit.pl:271
23881 msgid ""
23882 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
23883 "For example to delete root's password you could do:"
23884 msgstr ""
23885
23886 # type: verbatim
23887 #: ../tools/virt-edit.pl:274
23888 #, no-wrap
23889 msgid ""
23890 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
23891 "\n"
23892 msgstr ""
23893
23894 # type: textblock
23895 #: ../tools/virt-edit.pl:276
23896 msgid ""
23897 "What really happens is that the snippet is evaluated as a Perl expression "
23898 "for each line of the file.  The line, including the final C<\\n>, is passed "
23899 "in C<$_> and the expression should update C<$_> or leave it unchanged."
23900 msgstr ""
23901
23902 # type: textblock
23903 #: ../tools/virt-edit.pl:281
23904 msgid ""
23905 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
23906 "C<apache> user account from the password file you can do:"
23907 msgstr ""
23908
23909 # type: verbatim
23910 #: ../tools/virt-edit.pl:284
23911 #, no-wrap
23912 msgid ""
23913 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
23914 "\n"
23915 msgstr ""
23916
23917 # type: textblock
23918 #: ../tools/virt-edit.pl:286
23919 msgid ""
23920 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
23921 "the end of the file is rather difficult this way since there is no concept "
23922 "of \"last line of the file\" - your expression just doesn't get called "
23923 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
23924 "want to do this."
23925 msgstr ""
23926
23927 # type: textblock
23928 #: ../tools/virt-edit.pl:292
23929 msgid ""
23930 "The variable C<$lineno> contains the current line number.  As is "
23931 "traditional, the first line in the file is number C<1>."
23932 msgstr ""
23933
23934 # type: textblock
23935 #: ../tools/virt-edit.pl:295
23936 msgid ""
23937 "The return value from the expression is ignored, but the expression may call "
23938 "C<die> in order to abort the whole program, leaving the original file "
23939 "untouched."
23940 msgstr ""
23941
23942 # type: textblock
23943 #: ../tools/virt-edit.pl:299
23944 msgid ""
23945 "Remember when matching the end of a line that C<$_> may contain the final C<"
23946 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
23947 "newline then neither of these.  Thus to match or substitute some text at the "
23948 "end of a line, use this regular expression:"
23949 msgstr ""
23950
23951 # type: verbatim
23952 #: ../tools/virt-edit.pl:304
23953 #, no-wrap
23954 msgid ""
23955 " /some text(\\r?\\n)?$/\n"
23956 "\n"
23957 msgstr ""
23958
23959 # type: textblock
23960 #: ../tools/virt-edit.pl:306
23961 msgid ""
23962 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
23963 "$_> itself (since that would remove all newlines from the file):"
23964 msgstr ""
23965
23966 # type: verbatim
23967 #: ../tools/virt-edit.pl:310
23968 #, no-wrap
23969 msgid ""
23970 " my $m = $_; chomp $m; $m =~ /some text$/\n"
23971 "\n"
23972 msgstr ""
23973
23974 # type: =item
23975 #: ../tools/virt-edit.pl:316
23976 msgid "C<EDITOR>"
23977 msgstr ""
23978
23979 # type: textblock
23980 #: ../tools/virt-edit.pl:318
23981 msgid ""
23982 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
23983 "\"emacs -nw\">"
23984 msgstr ""
23985
23986 # type: textblock
23987 #: ../tools/virt-edit.pl:321
23988 msgid "If not set, C<vi> is used."
23989 msgstr ""
23990
23991 # type: textblock
23992 #: ../tools/virt-edit.pl:327
23993 msgid ""
23994 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
23995 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
23996 "L<perlre(1)>."
23997 msgstr ""
23998
23999 # type: textblock
24000 #: ../tools/virt-list-filesystems.pl:32
24001 msgid ""
24002 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
24003 msgstr ""
24004
24005 # type: verbatim
24006 #: ../tools/virt-list-filesystems.pl:36
24007 #, no-wrap
24008 msgid ""
24009 " virt-list-filesystems [--options] domname\n"
24010 "\n"
24011 msgstr ""
24012
24013 # type: verbatim
24014 #: ../tools/virt-list-filesystems.pl:38
24015 #, no-wrap
24016 msgid ""
24017 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
24018 "\n"
24019 msgstr ""
24020
24021 # type: textblock
24022 #: ../tools/virt-list-filesystems.pl:42
24023 msgid ""
24024 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
24025 "are contained in a virtual machine or disk image."
24026 msgstr ""
24027
24028 # type: textblock
24029 #: ../tools/virt-list-filesystems.pl:46
24030 msgid ""
24031 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
24032 "functionality.  For more complex cases you should look at the L<guestfish(1)"
24033 "> tool."
24034 msgstr ""
24035
24036 # type: =item
24037 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-list-partitions.pl:95
24038 #: ../tools/virt-ls.pl:115
24039 msgid "B<-l> | B<--long>"
24040 msgstr ""
24041
24042 # type: textblock
24043 #: ../tools/virt-list-filesystems.pl:88
24044 msgid ""
24045 "With this option, C<virt-list-filesystems> displays the type of each "
24046 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
24047 msgstr ""
24048
24049 # type: =item
24050 #: ../tools/virt-list-filesystems.pl:95
24051 msgid "B<-a> | B<--all>"
24052 msgstr ""
24053
24054 # type: textblock
24055 #: ../tools/virt-list-filesystems.pl:97
24056 msgid ""
24057 "Normally we only show mountable filesystems.  If this option is given then "
24058 "swap devices are shown too."
24059 msgstr ""
24060
24061 # type: textblock
24062 #: ../tools/virt-list-filesystems.pl:193
24063 msgid ""
24064 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
24065 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
24066 ">, L<http://libguestfs.org/>."
24067 msgstr ""
24068
24069 # type: textblock
24070 #: ../tools/virt-list-partitions.pl:32
24071 msgid ""
24072 "virt-list-partitions - List partitions in a virtual machine or disk image"
24073 msgstr ""
24074
24075 # type: verbatim
24076 #: ../tools/virt-list-partitions.pl:36
24077 #, no-wrap
24078 msgid ""
24079 " virt-list-partitions [--options] domname\n"
24080 "\n"
24081 msgstr ""
24082
24083 # type: verbatim
24084 #: ../tools/virt-list-partitions.pl:38
24085 #, no-wrap
24086 msgid ""
24087 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
24088 "\n"
24089 msgstr ""
24090
24091 # type: textblock
24092 #: ../tools/virt-list-partitions.pl:42
24093 msgid ""
24094 "C<virt-list-partitions> is a command line tool to list the partitions that "
24095 "are contained in a virtual machine or disk image.  It is mainly useful as a "
24096 "first step to using L<virt-resize(1)>."
24097 msgstr ""
24098
24099 # type: textblock
24100 #: ../tools/virt-list-partitions.pl:47
24101 msgid ""
24102 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
24103 "functionality.  For more complex cases you should look at the L<guestfish(1)"
24104 "> tool."
24105 msgstr ""
24106
24107 # type: =item
24108 #: ../tools/virt-list-partitions.pl:87
24109 msgid "B<-h> | B<--human-readable>"
24110 msgstr ""
24111
24112 # type: textblock
24113 #: ../tools/virt-list-partitions.pl:89
24114 msgid "Show sizes in human-readable form (eg. \"1G\")."
24115 msgstr ""
24116
24117 # type: textblock
24118 #: ../tools/virt-list-partitions.pl:97
24119 msgid ""
24120 "With this option, C<virt-list-partitions> displays the type and size of each "
24121 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
24122 msgstr ""
24123
24124 # type: =item
24125 #: ../tools/virt-list-partitions.pl:104
24126 msgid "B<-t> | B<--total>"
24127 msgstr ""
24128
24129 # type: textblock
24130 #: ../tools/virt-list-partitions.pl:106
24131 msgid ""
24132 "Display the total size of each block device (as a separate row or rows)."
24133 msgstr ""
24134
24135 # type: textblock
24136 #: ../tools/virt-list-partitions.pl:231
24137 msgid ""
24138 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
24139 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
24140 "libguestfs.org/>."
24141 msgstr ""
24142
24143 # type: textblock
24144 #: ../tools/virt-ls.pl:35
24145 msgid "virt-ls - List files in a virtual machine"
24146 msgstr ""
24147
24148 # type: verbatim
24149 #: ../tools/virt-ls.pl:39
24150 #, no-wrap
24151 msgid ""
24152 " virt-ls [--options] domname directory\n"
24153 "\n"
24154 msgstr ""
24155
24156 # type: verbatim
24157 #: ../tools/virt-ls.pl:41
24158 #, no-wrap
24159 msgid ""
24160 " virt-ls [--options] disk.img [disk.img ...] directory\n"
24161 "\n"
24162 msgstr ""
24163
24164 # type: textblock
24165 #: ../tools/virt-ls.pl:45
24166 msgid ""
24167 "C<virt-ls> is a command line tool to list the names of files in a directory "
24168 "inside a virtual machine or disk image."
24169 msgstr ""
24170
24171 # type: textblock
24172 #: ../tools/virt-ls.pl:48
24173 msgid ""
24174 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
24175 "For more complex cases you should look at the L<guestfish(1)> tool."
24176 msgstr ""
24177
24178 # type: textblock
24179 #: ../tools/virt-ls.pl:52
24180 msgid ""
24181 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
24182 "simple listing is like the ordinary L<ls(1)> command:"
24183 msgstr ""
24184
24185 # type: verbatim
24186 #: ../tools/virt-ls.pl:55
24187 #, no-wrap
24188 msgid ""
24189 " $ virt-ls myguest /\n"
24190 " bin\n"
24191 " boot\n"
24192 " [etc.]\n"
24193 "\n"
24194 msgstr ""
24195
24196 # type: textblock
24197 #: ../tools/virt-ls.pl:60
24198 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
24199 msgstr ""
24200
24201 # type: verbatim
24202 #: ../tools/virt-ls.pl:62
24203 #, no-wrap
24204 msgid ""
24205 " $ virt-ls -l myguest /\n"
24206 " total 204\n"
24207 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
24208 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
24209 " [etc.]\n"
24210 "\n"
24211 msgstr ""
24212
24213 # type: textblock
24214 #: ../tools/virt-ls.pl:68
24215 msgid ""
24216 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
24217 "and directories recursively:"
24218 msgstr ""
24219
24220 # type: verbatim
24221 #: ../tools/virt-ls.pl:71
24222 #, no-wrap
24223 msgid ""
24224 " $ virt-ls -R myguest /tmp\n"
24225 " foo\n"
24226 " foo/bar\n"
24227 " [etc.]\n"
24228 "\n"
24229 msgstr ""
24230
24231 # type: textblock
24232 #: ../tools/virt-ls.pl:76
24233 msgid ""
24234 "You I<cannot> combine these options.  To do more complicated things, use "
24235 "L<guestfish(1)>."
24236 msgstr ""
24237
24238 # type: =item
24239 #: ../tools/virt-ls.pl:117
24240 msgid "B<-R> | B<--recursive>"
24241 msgstr ""
24242
24243 # type: textblock
24244 #: ../tools/virt-ls.pl:119
24245 msgid ""
24246 "Select the mode.  With neither of these options, C<virt-ls> produces a "
24247 "simple, flat list of the files in the named directory."
24248 msgstr ""
24249
24250 # type: textblock
24251 #: ../tools/virt-ls.pl:122
24252 msgid ""
24253 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
24254 "like the plain C<ls -l> command)."
24255 msgstr ""
24256
24257 # type: textblock
24258 #: ../tools/virt-ls.pl:125
24259 msgid ""
24260 "C<virt-ls -R> produces a recursive list of files starting at the named "
24261 "directory.  See the documentation for the C<guestfs_find> command L<guestfs"
24262 "(3)> for precise details."
24263 msgstr ""
24264
24265 # type: textblock
24266 #: ../tools/virt-ls.pl:129
24267 msgid "You cannot combine these options."
24268 msgstr ""
24269
24270 # type: textblock
24271 #: ../tools/virt-ls.pl:212
24272 msgid ""
24273 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
24274 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
24275 "org/>."
24276 msgstr ""
24277
24278 # type: textblock
24279 #: ../tools/virt-make-fs.pl:37
24280 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
24281 msgstr ""
24282
24283 # type: verbatim
24284 #: ../tools/virt-make-fs.pl:41
24285 #, no-wrap
24286 msgid ""
24287 " virt-make-fs [--options] input.tar output.img\n"
24288 "\n"
24289 msgstr ""
24290
24291 # type: verbatim
24292 #: ../tools/virt-make-fs.pl:43
24293 #, no-wrap
24294 msgid ""
24295 " virt-make-fs [--options] input.tar.gz output.img\n"
24296 "\n"
24297 msgstr ""
24298
24299 # type: verbatim
24300 #: ../tools/virt-make-fs.pl:45
24301 #, no-wrap
24302 msgid ""
24303 " virt-make-fs [--options] directory output.img\n"
24304 "\n"
24305 msgstr ""
24306
24307 # type: textblock
24308 #: ../tools/virt-make-fs.pl:49
24309 msgid ""
24310 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
24311 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
24312 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
24313 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
24314 "you want to attach these filesystems to existing virtual machines (eg. to "
24315 "import large amounts of read-only data to a VM)."
24316 msgstr ""
24317
24318 # type: textblock
24319 #: ../tools/virt-make-fs.pl:57
24320 msgid "Basic usage is:"
24321 msgstr ""
24322
24323 # type: verbatim
24324 #: ../tools/virt-make-fs.pl:59
24325 #, no-wrap
24326 msgid ""
24327 " virt-make-fs input output\n"
24328 "\n"
24329 msgstr ""
24330
24331 # type: textblock
24332 #: ../tools/virt-make-fs.pl:61
24333 msgid ""
24334 "where C<input> is either a directory containing files that you want to add, "
24335 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
24336 "C<output> is a disk image.  The input type is detected automatically.  The "
24337 "output disk image defaults to a raw ext2 image unless you specify extra "
24338 "flags (see L</OPTIONS> below)."
24339 msgstr ""
24340
24341 # type: =head2
24342 #: ../tools/virt-make-fs.pl:67
24343 msgid "EXTRA SPACE"
24344 msgstr ""
24345
24346 # type: textblock
24347 #: ../tools/virt-make-fs.pl:69
24348 msgid ""
24349 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
24350 "the files that it contains, but might have extra space.  Depending on how "
24351 "you are going to use the output, you might think this extra space is wasted "
24352 "and want to minimize it, or you might want to leave space so that more files "
24353 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
24354 "but you can use the C<--size> flag to leave space in the filesystem if you "
24355 "want it."
24356 msgstr ""
24357
24358 # type: textblock
24359 #: ../tools/virt-make-fs.pl:77
24360 msgid ""
24361 "An alternative way to leave extra space but not make the output image any "
24362 "bigger is to use an alternative disk image format (instead of the default "
24363 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
24364 "image format (check your hypervisor supports this before using it).  This "
24365 "allows you to choose a large C<--size> but the extra space won't actually be "
24366 "allocated in the image until you try to store something in it."
24367 msgstr ""
24368
24369 # type: textblock
24370 #: ../tools/virt-make-fs.pl:85
24371 msgid ""
24372 "Don't forget that you can also use local commands including L<resize2fs(8)> "
24373 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
24374 "resize to build another image from scratch."
24375 msgstr ""
24376
24377 # type: =head3
24378 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
24379 #: ../tools/virt-make-fs.pl:142
24380 msgid "EXAMPLE"
24381 msgstr ""
24382
24383 # type: verbatim
24384 #: ../tools/virt-make-fs.pl:91
24385 #, no-wrap
24386 msgid ""
24387 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
24388 "\n"
24389 msgstr ""
24390
24391 # type: =head2
24392 #: ../tools/virt-make-fs.pl:93
24393 msgid "FILESYSTEM TYPE"
24394 msgstr ""
24395
24396 # type: textblock
24397 #: ../tools/virt-make-fs.pl:95
24398 msgid ""
24399 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
24400 "libguestfs supports can be used (but I<not> read-only formats like "
24401 "ISO9660).  Here are some of the more common choices:"
24402 msgstr ""
24403
24404 # type: =item
24405 #: ../tools/virt-make-fs.pl:101
24406 msgid "I<ext3>"
24407 msgstr ""
24408
24409 # type: textblock
24410 #: ../tools/virt-make-fs.pl:103
24411 msgid ""
24412 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
24413 "you are not going to use the filesystem in a way that requires the journal, "
24414 "then this is just wasted overhead."
24415 msgstr ""
24416
24417 # type: =item
24418 #: ../tools/virt-make-fs.pl:107
24419 msgid "I<ntfs> or I<vfat>"
24420 msgstr ""
24421
24422 # type: textblock
24423 #: ../tools/virt-make-fs.pl:109
24424 msgid "Useful if exporting data to a Windows guest."
24425 msgstr ""
24426
24427 # type: textblock
24428 #: ../tools/virt-make-fs.pl:111
24429 msgid ""
24430 "I<Note for vfat>: The tar archive or local directory must only contain files "
24431 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
24432 "program running within libguestfs is unable to change the ownership of non-"
24433 "root files, since vfat itself does not support this."
24434 msgstr ""
24435
24436 # type: =item
24437 #: ../tools/virt-make-fs.pl:116
24438 msgid "I<minix>"
24439 msgstr ""
24440
24441 # type: textblock
24442 #: ../tools/virt-make-fs.pl:118
24443 msgid ""
24444 "Lower overhead than C<ext2>, but certain limitations on filename length and "
24445 "total filesystem size."
24446 msgstr ""
24447
24448 # type: verbatim
24449 #: ../tools/virt-make-fs.pl:125
24450 #, no-wrap
24451 msgid ""
24452 " virt-make-fs --type=minix input minixfs.img\n"
24453 "\n"
24454 msgstr ""
24455
24456 # type: =head2
24457 #: ../tools/virt-make-fs.pl:127
24458 msgid "TO PARTITION OR NOT TO PARTITION"
24459 msgstr ""
24460
24461 # type: textblock
24462 #: ../tools/virt-make-fs.pl:129
24463 msgid "Optionally virt-make-fs can add a partition table to the output disk."
24464 msgstr ""
24465
24466 # type: textblock
24467 #: ../tools/virt-make-fs.pl:131
24468 msgid ""
24469 "Adding a partition can make the disk image more compatible with certain "
24470 "virtualized operating systems which don't expect to see a filesystem "
24471 "directly located on a block device (Linux doesn't care and will happily "
24472 "handle both types)."
24473 msgstr ""
24474
24475 # type: textblock
24476 #: ../tools/virt-make-fs.pl:136
24477 msgid ""
24478 "On the other hand, if you have a partition table then the output image is no "
24479 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
24480 "directly on a partitioned disk image.  (However libguestfs tools such as "
24481 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
24482 msgstr ""
24483
24484 # type: textblock
24485 #: ../tools/virt-make-fs.pl:144
24486 msgid "Add an MBR partition:"
24487 msgstr ""
24488
24489 # type: verbatim
24490 #: ../tools/virt-make-fs.pl:146
24491 #, no-wrap
24492 msgid ""
24493 " virt-make-fs --partition -- input disk.img\n"
24494 "\n"
24495 msgstr ""
24496
24497 # type: textblock
24498 #: ../tools/virt-make-fs.pl:148
24499 msgid ""
24500 "If the output disk image could be terabyte-sized or larger, it's better to "
24501 "use an EFI/GPT-compatible partition table:"
24502 msgstr ""
24503
24504 # type: verbatim
24505 #: ../tools/virt-make-fs.pl:151
24506 #, no-wrap
24507 msgid ""
24508 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
24509 "\n"
24510 msgstr ""
24511
24512 # type: =item
24513 #: ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:196
24514 msgid "B<--debug>"
24515 msgstr ""
24516
24517 # type: textblock
24518 #: ../tools/virt-make-fs.pl:179
24519 msgid "Enable debugging information."
24520 msgstr ""
24521
24522 # type: =item
24523 #: ../tools/virt-make-fs.pl:185
24524 msgid "B<--size=E<lt>NE<gt>>"
24525 msgstr ""
24526
24527 # type: =item
24528 #: ../tools/virt-make-fs.pl:187
24529 msgid "B<--size=+E<lt>NE<gt>>"
24530 msgstr ""
24531
24532 # type: =item
24533 #: ../tools/virt-make-fs.pl:189
24534 msgid "B<-s E<lt>NE<gt>>"
24535 msgstr ""
24536
24537 # type: =item
24538 #: ../tools/virt-make-fs.pl:191
24539 msgid "B<-s +E<lt>NE<gt>>"
24540 msgstr ""
24541
24542 # type: textblock
24543 #: ../tools/virt-make-fs.pl:193
24544 msgid ""
24545 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
24546 msgstr ""
24547
24548 # type: textblock
24549 #: ../tools/virt-make-fs.pl:196
24550 msgid ""
24551 "If this option is I<not> given, then the output image will be just large "
24552 "enough to contain all the files, with not much wasted space."
24553 msgstr ""
24554
24555 # type: textblock
24556 #: ../tools/virt-make-fs.pl:199
24557 msgid ""
24558 "To choose a fixed size output disk, specify an absolute number followed by b/"
24559 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
24560 "Petabytes or Exabytes.  This must be large enough to contain all the input "
24561 "files, else you will get an error."
24562 msgstr ""
24563
24564 # type: textblock
24565 #: ../tools/virt-make-fs.pl:204
24566 msgid ""
24567 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
24568 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
24569 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
24570 "the input files, and (approximately) an extra 200 MB free space."
24571 msgstr ""
24572
24573 # type: textblock
24574 #: ../tools/virt-make-fs.pl:210
24575 msgid ""
24576 "Note that virt-make-fs estimates free space, and therefore will not produce "
24577 "filesystems containing precisely the free space requested.  (It is much more "
24578 "expensive and time-consuming to produce a filesystem which has precisely the "
24579 "desired free space)."
24580 msgstr ""
24581
24582 # type: =item
24583 #: ../tools/virt-make-fs.pl:219
24584 msgid "B<--format=E<lt>fmtE<gt>>"
24585 msgstr ""
24586
24587 # type: =item
24588 #: ../tools/virt-make-fs.pl:221
24589 msgid "B<-F E<lt>fmtE<gt>>"
24590 msgstr ""
24591
24592 # type: textblock
24593 #: ../tools/virt-make-fs.pl:223
24594 msgid "Choose the output disk image format."
24595 msgstr ""
24596
24597 # type: textblock
24598 #: ../tools/virt-make-fs.pl:225
24599 msgid "The default is C<raw> (raw disk image)."
24600 msgstr ""
24601
24602 # type: textblock
24603 #: ../tools/virt-make-fs.pl:227
24604 msgid ""
24605 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
24606 "that would really make sense here is C<qcow2>."
24607 msgstr ""
24608
24609 # type: =item
24610 #: ../tools/virt-make-fs.pl:234
24611 msgid "B<--type=E<lt>fsE<gt>>"
24612 msgstr ""
24613
24614 # type: =item
24615 #: ../tools/virt-make-fs.pl:236
24616 msgid "B<-t E<lt>fsE<gt>>"
24617 msgstr ""
24618
24619 # type: textblock
24620 #: ../tools/virt-make-fs.pl:238
24621 msgid "Choose the output filesystem type."
24622 msgstr ""
24623
24624 # type: textblock
24625 #: ../tools/virt-make-fs.pl:240
24626 msgid "The default is C<ext2>."
24627 msgstr ""
24628
24629 # type: textblock
24630 #: ../tools/virt-make-fs.pl:242
24631 msgid ""
24632 "Any filesystem which is supported read-write by libguestfs can be used here."
24633 msgstr ""
24634
24635 # type: =item
24636 #: ../tools/virt-make-fs.pl:249
24637 msgid "B<--partition>"
24638 msgstr ""
24639
24640 # type: =item
24641 #: ../tools/virt-make-fs.pl:251
24642 msgid "B<--partition=E<lt>parttypeE<gt>>"
24643 msgstr ""
24644
24645 # type: textblock
24646 #: ../tools/virt-make-fs.pl:253
24647 msgid ""
24648 "If specified, this flag adds an MBR partition table to the output disk image."
24649 msgstr ""
24650
24651 # type: textblock
24652 #: ../tools/virt-make-fs.pl:256
24653 msgid ""
24654 "You can change the partition table type, eg. C<--partition=gpt> for large "
24655 "disks."
24656 msgstr ""
24657
24658 # type: textblock
24659 #: ../tools/virt-make-fs.pl:259
24660 msgid ""
24661 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
24662 "might consider the next parameter to be the partition type.  For example:"
24663 msgstr ""
24664
24665 # type: verbatim
24666 #: ../tools/virt-make-fs.pl:263
24667 #, no-wrap
24668 msgid ""
24669 " virt-make-fs --partition input.tar ...\n"
24670 "\n"
24671 msgstr ""
24672
24673 # type: textblock
24674 #: ../tools/virt-make-fs.pl:265
24675 msgid ""
24676 "would cause virt-make-fs to think you wanted to use a partition type of "
24677 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
24678 "dash) between options and the input file argument:"
24679 msgstr ""
24680
24681 # type: verbatim
24682 #: ../tools/virt-make-fs.pl:269
24683 #, no-wrap
24684 msgid ""
24685 " virt-make-fs --partition -- input.tar ...\n"
24686 "\n"
24687 msgstr ""
24688
24689 # type: textblock
24690 #: ../tools/virt-make-fs.pl:529
24691 msgid ""
24692 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
24693 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
24694 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
24695 msgstr ""
24696
24697 # type: textblock
24698 #: ../tools/virt-make-fs.pl:543 ../tools/virt-win-reg.pl:478
24699 msgid ""
24700 "When reporting bugs, please enable debugging and capture the I<complete> "
24701 "output:"
24702 msgstr ""
24703
24704 # type: verbatim
24705 #: ../tools/virt-make-fs.pl:546
24706 #, no-wrap
24707 msgid ""
24708 " export LIBGUESTFS_DEBUG=1\n"
24709 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
24710 "\n"
24711 msgstr ""
24712
24713 # type: textblock
24714 #: ../tools/virt-make-fs.pl:549
24715 msgid ""
24716 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
24717 "redhat.com/>"
24718 msgstr ""
24719
24720 # type: textblock
24721 #: ../tools/virt-make-fs.pl:558 ../tools/virt-resize.pl:1413
24722 #: ../tools/virt-win-reg.pl:493
24723 msgid "Copyright (C) 2010 Red Hat Inc."
24724 msgstr ""
24725
24726 # type: textblock
24727 #: ../tools/virt-rescue.pl:33
24728 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24729 msgstr ""
24730
24731 # type: verbatim
24732 #: ../tools/virt-rescue.pl:37
24733 #, no-wrap
24734 msgid ""
24735 " virt-rescue [--options] domname\n"
24736 "\n"
24737 msgstr ""
24738
24739 # type: verbatim
24740 #: ../tools/virt-rescue.pl:39
24741 #, no-wrap
24742 msgid ""
24743 " virt-rescue [--options] disk.img [disk.img ...]\n"
24744 "\n"
24745 msgstr ""
24746
24747 # type: textblock
24748 #: ../tools/virt-rescue.pl:43
24749 msgid ""
24750 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
24751 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
24752 "you from doing this, but doesn't catch all cases."
24753 msgstr ""
24754
24755 # type: textblock
24756 #: ../tools/virt-rescue.pl:47
24757 msgid ""
24758 "However if you use the I<--ro> (read only) option, then you can attach a "
24759 "shell to a live virtual machine.  The results might be strange or "
24760 "inconsistent at times but you won't get disk corruption."
24761 msgstr ""
24762
24763 # type: textblock
24764 #: ../tools/virt-rescue.pl:53
24765 msgid ""
24766 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24767 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
24768 "recovery tools which you can use to examine or rescue a virtual machine or "
24769 "disk image."
24770 msgstr ""
24771
24772 # type: textblock
24773 #: ../tools/virt-rescue.pl:58
24774 msgid ""
24775 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24776 "on disk image(s):"
24777 msgstr ""
24778
24779 # type: verbatim
24780 #: ../tools/virt-rescue.pl:61
24781 #, no-wrap
24782 msgid ""
24783 " virt-rescue GuestName\n"
24784 "\n"
24785 msgstr ""
24786
24787 # type: verbatim
24788 #: ../tools/virt-rescue.pl:63
24789 #, no-wrap
24790 msgid ""
24791 " virt-rescue --ro /path/to/disk.img\n"
24792 "\n"
24793 msgstr ""
24794
24795 # type: verbatim
24796 #: ../tools/virt-rescue.pl:65
24797 #, no-wrap
24798 msgid ""
24799 " virt-rescue /dev/sdc\n"
24800 "\n"
24801 msgstr ""
24802
24803 # type: textblock
24804 #: ../tools/virt-rescue.pl:67
24805 msgid "For live VMs you I<must> use the --ro option."
24806 msgstr ""
24807
24808 # type: textblock
24809 #: ../tools/virt-rescue.pl:69
24810 msgid ""
24811 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24812 "in an interactive bash shell where you can use many ordinary Linux "
24813 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24814 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
24815 "is an empty directory called C</sysroot> where you can mount filesystems."
24816 msgstr ""
24817
24818 # type: textblock
24819 #: ../tools/virt-rescue.pl:76
24820 msgid ""
24821 "In the example below, we list logical volumes, then choose one to mount "
24822 "under C</sysroot>:"
24823 msgstr ""
24824
24825 # type: verbatim
24826 #: ../tools/virt-rescue.pl:79
24827 #, no-wrap
24828 msgid ""
24829 " ><rescue> lvs\n"
24830 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
24831 " lv_root vg_f11x64 -wi-a-   8.83G\n"
24832 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
24833 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
24834 " ><rescue> ls /sysroot\n"
24835 "\n"
24836 msgstr ""
24837
24838 # type: textblock
24839 #: ../tools/virt-rescue.pl:86
24840 msgid ""
24841 "If you don't know what filesystems are available on the virtual machine then "
24842 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
24843 msgstr ""
24844
24845 # type: =head1
24846 #: ../tools/virt-rescue.pl:90 ../tools/virt-resize.pl:1350
24847 msgid "NOTES"
24848 msgstr ""
24849
24850 # type: textblock
24851 #: ../tools/virt-rescue.pl:92
24852 msgid ""
24853 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24854 "virtual machine.  For example you can use it on a blank file if you want to "
24855 "partition that file (although we would recommend using L<guestfish(1)> "
24856 "instead as it is more suitable for this purpose).  You can even use virt-"
24857 "rescue on things like SD cards."
24858 msgstr ""
24859
24860 # type: textblock
24861 #: ../tools/virt-rescue.pl:98
24862 msgid ""
24863 "This tool is just designed for quick interactive hacking on a virtual "
24864 "machine.  For more structured access to a virtual machine disk image, you "
24865 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
24866 "make scripted changes to guests, use L<guestfish(1)>."
24867 msgstr ""
24868
24869 # type: =item
24870 #: ../tools/virt-rescue.pl:127
24871 msgid "B<--append kernelopts>"
24872 msgstr ""
24873
24874 # type: textblock
24875 #: ../tools/virt-rescue.pl:129
24876 msgid "Pass additional options to the rescue kernel."
24877 msgstr ""
24878
24879 # type: =item
24880 #: ../tools/virt-rescue.pl:147
24881 msgid "B<--memsize MB> | B<-m MB>"
24882 msgstr ""
24883
24884 # type: textblock
24885 #: ../tools/virt-rescue.pl:149
24886 msgid ""
24887 "Change the amount of memory allocated to the rescue system.  The default is "
24888 "set by libguestfs and is small but adequate for running system tools.  The "
24889 "occasional program might need more memory.  The parameter is specified in "
24890 "megabytes."
24891 msgstr ""
24892
24893 # type: =item
24894 #: ../tools/virt-rescue.pl:158
24895 msgid "B<--ro> | B<-r>"
24896 msgstr ""
24897
24898 # type: textblock
24899 #: ../tools/virt-rescue.pl:160
24900 msgid "Open the image read-only."
24901 msgstr ""
24902
24903 # type: textblock
24904 #: ../tools/virt-rescue.pl:172
24905 msgid ""
24906 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
24907 "SELINUX> before using this option."
24908 msgstr ""
24909
24910 # type: textblock
24911 #: ../tools/virt-rescue.pl:228
24912 msgid ""
24913 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
24914 "ENVIRONMENT VARIABLES> for the complete list."
24915 msgstr ""
24916
24917 # type: textblock
24918 #: ../tools/virt-rescue.pl:233
24919 msgid ""
24920 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
24921 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24922 msgstr ""
24923
24924 # type: textblock
24925 #: ../tools/virt-resize.pl:42
24926 msgid "virt-resize - Resize a virtual machine disk"
24927 msgstr ""
24928
24929 # type: verbatim
24930 #: ../tools/virt-resize.pl:46
24931 #, no-wrap
24932 msgid ""
24933 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24934 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24935 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24936 "\n"
24937 msgstr ""
24938
24939 # type: textblock
24940 #: ../tools/virt-resize.pl:52
24941 msgid ""
24942 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24943 "larger or smaller overall, and resizing or deleting any partitions contained "
24944 "within."
24945 msgstr ""
24946
24947 # type: textblock
24948 #: ../tools/virt-resize.pl:56
24949 msgid ""
24950 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24951 "not> be used on live virtual machines - for consistent results, shut the "
24952 "virtual machine down before resizing it."
24953 msgstr ""
24954
24955 # type: textblock
24956 #: ../tools/virt-resize.pl:60
24957 msgid ""
24958 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
24959 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
24960 "read those manual pages first."
24961 msgstr ""
24962
24963 # type: textblock
24964 #: ../tools/virt-resize.pl:68
24965 msgid ""
24966 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24967 "fill the extra 5GB of space."
24968 msgstr ""
24969
24970 # type: verbatim
24971 #: ../tools/virt-resize.pl:71
24972 #, no-wrap
24973 msgid ""
24974 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
24975 " virt-list-partitions -lht olddisk\n"
24976 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24977 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24978 "\n"
24979 msgstr ""
24980
24981 # type: textblock
24982 #: ../tools/virt-resize.pl:76
24983 msgid ""
24984 "As above, but make the /boot partition 200MB bigger, while giving the "
24985 "remaining space to /dev/sda2:"
24986 msgstr ""
24987
24988 # type: verbatim
24989 #: ../tools/virt-resize.pl:79
24990 #, no-wrap
24991 msgid ""
24992 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
24993 "\n"
24994 msgstr ""
24995
24996 # type: =head1
24997 #: ../tools/virt-resize.pl:81
24998 msgid "DETAILED USAGE"
24999 msgstr ""
25000
25001 # type: =head2
25002 #: ../tools/virt-resize.pl:83
25003 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25004 msgstr ""
25005
25006 # type: =item
25007 #: ../tools/virt-resize.pl:87
25008 msgid "1. Shut down the virtual machine"
25009 msgstr ""
25010
25011 # type: =item
25012 #: ../tools/virt-resize.pl:89
25013 msgid "2. Locate input disk image"
25014 msgstr ""
25015
25016 # type: textblock
25017 #: ../tools/virt-resize.pl:91
25018 msgid ""
25019 "Locate the input disk image (ie. the file or device on the host containing "
25020 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25021 "dumpxml> like this to find the disk image name:"
25022 msgstr ""
25023
25024 # type: verbatim
25025 #: ../tools/virt-resize.pl:95
25026 #, no-wrap
25027 msgid ""
25028 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25029 " Found 1 nodes:\n"
25030 " -- NODE --\n"
25031 " <source dev=\"/dev/vg/lv_guest\" />\n"
25032 "\n"
25033 msgstr ""
25034
25035 # type: =item
25036 #: ../tools/virt-resize.pl:100
25037 msgid "3. Look at current sizing"
25038 msgstr ""
25039
25040 # type: textblock
25041 #: ../tools/virt-resize.pl:102
25042 msgid ""
25043 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
25044 msgstr ""
25045
25046 # type: verbatim
25047 #: ../tools/virt-resize.pl:105
25048 #, no-wrap
25049 msgid ""
25050 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
25051 " /dev/sda1 ext3 101.9M\n"
25052 " /dev/sda2 pv 7.9G\n"
25053 " /dev/sda device 8.0G\n"
25054 "\n"
25055 msgstr ""
25056
25057 # type: textblock
25058 #: ../tools/virt-resize.pl:110
25059 msgid ""
25060 "(This example is a virtual machine with an 8 GB disk which we would like to "
25061 "expand up to 10 GB)."
25062 msgstr ""
25063
25064 # type: =item
25065 #: ../tools/virt-resize.pl:113
25066 msgid "4. Create output disk"
25067 msgstr ""
25068
25069 # type: textblock
25070 #: ../tools/virt-resize.pl:115
25071 msgid ""
25072 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25073 "to store the resized output disk."
25074 msgstr ""
25075
25076 # type: textblock
25077 #: ../tools/virt-resize.pl:118
25078 msgid ""
25079 "To store the resized disk image in a file, create a file of a suitable size:"
25080 msgstr ""
25081
25082 # type: verbatim
25083 #: ../tools/virt-resize.pl:121
25084 #, no-wrap
25085 msgid ""
25086 " # rm -f outdisk\n"
25087 " # truncate -s 10G outdisk\n"
25088 "\n"
25089 msgstr ""
25090
25091 # type: textblock
25092 #: ../tools/virt-resize.pl:124
25093 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25094 msgstr ""
25095
25096 # type: verbatim
25097 #: ../tools/virt-resize.pl:126
25098 #, no-wrap
25099 msgid ""
25100 " # lvcreate -L 10G -n lv_name vg_name\n"
25101 "\n"
25102 msgstr ""
25103
25104 # type: textblock
25105 #: ../tools/virt-resize.pl:128
25106 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25107 msgstr ""
25108
25109 # type: verbatim
25110 #: ../tools/virt-resize.pl:130
25111 #, no-wrap
25112 msgid ""
25113 " # virsh pool-list\n"
25114 " # virsh vol-create-as poolname newvol 10G\n"
25115 "\n"
25116 msgstr ""
25117
25118 # type: =item
25119 #: ../tools/virt-resize.pl:133
25120 msgid "5. Resize"
25121 msgstr ""
25122
25123 # type: textblock
25124 #: ../tools/virt-resize.pl:135
25125 msgid ""
25126 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25127 "file) and the output disk.  The output disk is the one created in the "
25128 "previous step."
25129 msgstr ""
25130
25131 # type: verbatim
25132 #: ../tools/virt-resize.pl:139
25133 #, no-wrap
25134 msgid ""
25135 " # virt-resize indisk outdisk\n"
25136 "\n"
25137 msgstr ""
25138
25139 # type: textblock
25140 #: ../tools/virt-resize.pl:141
25141 msgid ""
25142 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25143 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25144 "larger, then an extra, empty partition is created at the end of the disk "
25145 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25146 "error."
25147 msgstr ""
25148
25149 # type: textblock
25150 #: ../tools/virt-resize.pl:147
25151 msgid ""
25152 "More realistically you'd want to expand existing partitions in the disk "
25153 "image by passing extra options (for the full list see the L</OPTIONS> "
25154 "section below)."
25155 msgstr ""
25156
25157 # type: textblock
25158 #: ../tools/virt-resize.pl:151
25159 msgid ""
25160 "L</--expand> is the most useful option.  It expands the named partition "
25161 "within the disk to fill any extra space:"
25162 msgstr ""
25163
25164 # type: verbatim
25165 #: ../tools/virt-resize.pl:154
25166 #, no-wrap
25167 msgid ""
25168 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25169 "\n"
25170 msgstr ""
25171
25172 # type: textblock
25173 #: ../tools/virt-resize.pl:156
25174 msgid ""
25175 "(In this case, an extra partition is I<not> created at the end of the disk, "
25176 "because there will be no unused space)."
25177 msgstr ""
25178
25179 # type: textblock
25180 #: ../tools/virt-resize.pl:159
25181 msgid ""
25182 "L</--resize> is the other commonly used option.  The following would "
25183 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25184 "rest of the available space:"
25185 msgstr ""
25186
25187 # type: verbatim
25188 #: ../tools/virt-resize.pl:163
25189 #, no-wrap
25190 msgid ""
25191 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25192 "     indisk outdisk\n"
25193 "\n"
25194 msgstr ""
25195
25196 # type: textblock
25197 #: ../tools/virt-resize.pl:166
25198 msgid ""
25199 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25200 "if virt-resize knows how, it will resize the contents, the equivalent of "
25201 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
25202 ">.  However virt-resize does not know how to resize some filesystems, so you "
25203 "would have to online resize them after booting the guest.  And virt-resize "
25204 "also does not resize anything inside an LVM PV, it just resizes the PV "
25205 "itself and leaves the user to resize any LVs inside that PV as desired."
25206 msgstr ""
25207
25208 # type: textblock
25209 #: ../tools/virt-resize.pl:175
25210 msgid "Other options are covered below."
25211 msgstr ""
25212
25213 # type: =item
25214 #: ../tools/virt-resize.pl:177
25215 msgid "6. Test"
25216 msgstr ""
25217
25218 # type: textblock
25219 #: ../tools/virt-resize.pl:179
25220 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25221 msgstr ""
25222
25223 # type: textblock
25224 #: ../tools/virt-resize.pl:181
25225 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25226 msgstr ""
25227
25228 # type: verbatim
25229 #: ../tools/virt-resize.pl:183
25230 #, no-wrap
25231 msgid ""
25232 " # virsh edit guestname\n"
25233 "\n"
25234 msgstr ""
25235
25236 # type: textblock
25237 #: ../tools/virt-resize.pl:185
25238 msgid ""
25239 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
25240 "html#elementsDisks>"
25241 msgstr ""
25242
25243 # type: textblock
25244 #: ../tools/virt-resize.pl:188
25245 msgid "Then start up the domain with the new, resized disk:"
25246 msgstr ""
25247
25248 # type: verbatim
25249 #: ../tools/virt-resize.pl:190
25250 #, no-wrap
25251 msgid ""
25252 " # virsh start guestname\n"
25253 "\n"
25254 msgstr ""
25255
25256 # type: textblock
25257 #: ../tools/virt-resize.pl:192
25258 msgid ""
25259 "and check that it still works.  See also the L</NOTES> section below for "
25260 "additional information."
25261 msgstr ""
25262
25263 # type: =item
25264 #: ../tools/virt-resize.pl:195
25265 msgid "7. Resize LVs etc inside the guest"
25266 msgstr ""
25267
25268 # type: textblock
25269 #: ../tools/virt-resize.pl:197
25270 msgid "(This can also be done offline using L<guestfish(1)>)"
25271 msgstr ""
25272
25273 # type: textblock
25274 #: ../tools/virt-resize.pl:199
25275 msgid ""
25276 "Once the guest has booted you should see the new space available, at least "
25277 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25278 "may need to resize LVs inside PVs, and also resize filesystem types that "
25279 "virt-resize does not know how to expand."
25280 msgstr ""
25281
25282 # type: =head2
25283 #: ../tools/virt-resize.pl:206
25284 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25285 msgstr ""
25286
25287 # type: textblock
25288 #: ../tools/virt-resize.pl:208
25289 msgid ""
25290 "Shrinking is somewhat more complex than expanding, and only an overview is "
25291 "given here."
25292 msgstr ""
25293
25294 # type: textblock
25295 #: ../tools/virt-resize.pl:211
25296 msgid ""
25297 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25298 "filesystems).  The user has to shrink content before passing the disk image "
25299 "to virt-resize, and virt-resize will check that the content has been shrunk "
25300 "properly."
25301 msgstr ""
25302
25303 # type: textblock
25304 #: ../tools/virt-resize.pl:216
25305 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25306 msgstr ""
25307
25308 # type: textblock
25309 #: ../tools/virt-resize.pl:218
25310 msgid ""
25311 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25312 "steps 3 and 4 above to allocate a new disk image."
25313 msgstr ""
25314
25315 # type: textblock
25316 #: ../tools/virt-resize.pl:221
25317 msgid ""
25318 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
25319 msgstr ""
25320
25321 # type: =head2
25322 #: ../tools/virt-resize.pl:224
25323 msgid "IGNORING OR DELETING PARTITIONS"
25324 msgstr ""
25325
25326 # type: textblock
25327 #: ../tools/virt-resize.pl:226
25328 msgid ""
25329 "virt-resize also gives a convenient way to ignore or delete partitions when "
25330 "copying from the input disk to the output disk.  Ignoring a partition speeds "
25331 "up the copy where you don't care about the existing contents of a "
25332 "partition.  Deleting a partition removes it completely, but note that it "
25333 "also renumbers any partitions after the one which is deleted, which can "
25334 "leave some guests unbootable."
25335 msgstr ""
25336
25337 # type: textblock
25338 #: ../tools/virt-resize.pl:243
25339 msgid "Display help."
25340 msgstr ""
25341
25342 # type: =item
25343 #: ../tools/virt-resize.pl:257
25344 msgid "B<--resize part=size>"
25345 msgstr ""
25346
25347 # type: textblock
25348 #: ../tools/virt-resize.pl:259
25349 msgid ""
25350 "Resize the named partition (expanding or shrinking it) so that it has the "
25351 "given size."
25352 msgstr ""
25353
25354 # type: textblock
25355 #: ../tools/virt-resize.pl:262
25356 msgid ""
25357 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
25358 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
25359 "Exabytes; or as a percentage of the current size; or as a relative number or "
25360 "percentage.  For example:"
25361 msgstr ""
25362
25363 # type: verbatim
25364 #: ../tools/virt-resize.pl:267
25365 #, no-wrap
25366 msgid ""
25367 " --resize /dev/sda2=10G\n"
25368 "\n"
25369 msgstr ""
25370
25371 # type: verbatim
25372 #: ../tools/virt-resize.pl:269
25373 #, no-wrap
25374 msgid ""
25375 " --resize /dev/sda4=90%\n"
25376 "\n"
25377 msgstr ""
25378
25379 # type: verbatim
25380 #: ../tools/virt-resize.pl:271
25381 #, no-wrap
25382 msgid ""
25383 " --resize /dev/sda2=+1G\n"
25384 "\n"
25385 msgstr ""
25386
25387 # type: verbatim
25388 #: ../tools/virt-resize.pl:273
25389 #, no-wrap
25390 msgid ""
25391 " --resize /dev/sda2=-200M\n"
25392 "\n"
25393 msgstr ""
25394
25395 # type: verbatim
25396 #: ../tools/virt-resize.pl:275
25397 #, no-wrap
25398 msgid ""
25399 " --resize /dev/sda1=+128K\n"
25400 "\n"
25401 msgstr ""
25402
25403 # type: verbatim
25404 #: ../tools/virt-resize.pl:277
25405 #, no-wrap
25406 msgid ""
25407 " --resize /dev/sda1=+10%\n"
25408 "\n"
25409 msgstr ""
25410
25411 # type: verbatim
25412 #: ../tools/virt-resize.pl:279
25413 #, no-wrap
25414 msgid ""
25415 " --resize /dev/sda1=-10%\n"
25416 "\n"
25417 msgstr ""
25418
25419 # type: textblock
25420 #: ../tools/virt-resize.pl:281
25421 msgid ""
25422 "You can increase the size of any partition.  Virt-resize will expand the "
25423 "direct content of the partition if it knows how (see C<--expand> below)."
25424 msgstr ""
25425
25426 # type: textblock
25427 #: ../tools/virt-resize.pl:285
25428 msgid ""
25429 "You can only I<decrease> the size of partitions that contain filesystems or "
25430 "PVs which have already been shrunk.  Virt-resize will check this has been "
25431 "done before proceeding, or else will print an error (see also C<--resize-"
25432 "force>)."
25433 msgstr ""
25434
25435 # type: textblock
25436 #: ../tools/virt-resize.pl:290 ../tools/virt-resize.pl:382
25437 #: ../tools/virt-resize.pl:399
25438 msgid "You can give this option multiple times."
25439 msgstr ""
25440
25441 # type: =item
25442 #: ../tools/virt-resize.pl:296
25443 msgid "B<--resize-force part=size>"
25444 msgstr ""
25445
25446 # type: textblock
25447 #: ../tools/virt-resize.pl:298
25448 msgid ""
25449 "This is the same as C<--resize> except that it will let you decrease the "
25450 "size of any partition.  Generally this means you will lose any data which "
25451 "was at the end of the partition you shrink, but you may not care about that "
25452 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25453 "as a swap partition)."
25454 msgstr ""
25455
25456 # type: textblock
25457 #: ../tools/virt-resize.pl:304
25458 msgid "See also the C<--ignore> option."
25459 msgstr ""
25460
25461 # type: =item
25462 #: ../tools/virt-resize.pl:310
25463 msgid "B<--expand part>"
25464 msgstr ""
25465
25466 # type: textblock
25467 #: ../tools/virt-resize.pl:312
25468 msgid ""
25469 "Expand the named partition so it uses up all extra space (space left over "
25470 "after any other resize changes that you request have been done)."
25471 msgstr ""
25472
25473 # type: textblock
25474 #: ../tools/virt-resize.pl:315
25475 msgid ""
25476 "If virt-resize knows how, it will expand the direct content of the "
25477 "partition.  For example, if the partition is an LVM PV, it will expand the "
25478 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25479 "content it doesn't know about alone."
25480 msgstr ""
25481
25482 # type: textblock
25483 #: ../tools/virt-resize.pl:320
25484 msgid "Currently virt-resize can resize:"
25485 msgstr ""
25486
25487 # type: textblock
25488 #: ../tools/virt-resize.pl:326
25489 msgid ""
25490 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
25491 "partition."
25492 msgstr ""
25493
25494 # type: textblock
25495 #: ../tools/virt-resize.pl:331
25496 msgid ""
25497 "NTFS filesystems contained directly in a partition, if libguestfs was "
25498 "compiled with support for NTFS."
25499 msgstr ""
25500
25501 # type: textblock
25502 #: ../tools/virt-resize.pl:334
25503 msgid ""
25504 "The filesystem must have been shut down consistently last time it was used.  "
25505 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25506 "consistency check, so at the first boot after resizing Windows will check "
25507 "the disk."
25508 msgstr ""
25509
25510 # type: textblock
25511 #: ../tools/virt-resize.pl:341
25512 msgid ""
25513 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
25514 "inside the PV.  The user will have to resize LVs as desired."
25515 msgstr ""
25516
25517 # type: textblock
25518 #: ../tools/virt-resize.pl:347 ../tools/virt-resize.pl:369
25519 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
25520 msgstr ""
25521
25522 # type: =item
25523 #: ../tools/virt-resize.pl:353
25524 msgid "B<--shrink part>"
25525 msgstr ""
25526
25527 # type: textblock
25528 #: ../tools/virt-resize.pl:355
25529 msgid ""
25530 "Shrink the named partition until the overall disk image fits in the "
25531 "destination.  The named partition B<must> contain a filesystem or PV which "
25532 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25533 "online tools).  Virt-resize will check this and give an error if it has not "
25534 "been done."
25535 msgstr ""
25536
25537 # type: textblock
25538 #: ../tools/virt-resize.pl:361
25539 msgid ""
25540 "The amount by which the overall disk must be shrunk (after carrying out all "
25541 "other operations requested by the user) is called the \"deficit\".  For "
25542 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25543 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25544 "would give an error unless the user specified a partition to shrink and that "
25545 "partition had more than a gigabyte of free space."
25546 msgstr ""
25547
25548 # type: =item
25549 #: ../tools/virt-resize.pl:375
25550 msgid "B<--ignore part>"
25551 msgstr ""
25552
25553 # type: textblock
25554 #: ../tools/virt-resize.pl:377
25555 msgid ""
25556 "Ignore the named partition.  Effectively this means the partition is "
25557 "allocated on the destination disk, but the content is not copied across from "
25558 "the source disk.  The content of the partition will be blank (all zero "
25559 "bytes)."
25560 msgstr ""
25561
25562 # type: =item
25563 #: ../tools/virt-resize.pl:388
25564 msgid "B<--delete part>"
25565 msgstr ""
25566
25567 # type: textblock
25568 #: ../tools/virt-resize.pl:390
25569 msgid ""
25570 "Delete the named partition.  It would be more accurate to describe this as "
25571 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25572 "the original disk image is left intact."
25573 msgstr ""
25574
25575 # type: textblock
25576 #: ../tools/virt-resize.pl:394
25577 msgid ""
25578 "Note that when you delete a partition, then anything contained in the "
25579 "partition is also deleted.  Furthermore, this causes any partitions that "
25580 "come after to be I<renumbered>, which can easily make your guest unbootable."
25581 msgstr ""
25582
25583 # type: =item
25584 #: ../tools/virt-resize.pl:405
25585 msgid "B<--LV-expand logvol>"
25586 msgstr ""
25587
25588 # type: textblock
25589 #: ../tools/virt-resize.pl:407
25590 msgid ""
25591 "This takes the logical volume and, as a final step, expands it to fill all "
25592 "the space available in its volume group.  A typical usage, assuming a Linux "
25593 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25594 "lv_root> would be:"
25595 msgstr ""
25596
25597 # type: verbatim
25598 #: ../tools/virt-resize.pl:412
25599 #, no-wrap
25600 msgid ""
25601 " virt-resize indisk outdisk \\\n"
25602 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25603 "\n"
25604 msgstr ""
25605
25606 # type: textblock
25607 #: ../tools/virt-resize.pl:415
25608 msgid ""
25609 "This would first expand the partition (and PV), and then expand the root "
25610 "device to fill the extra space in the PV."
25611 msgstr ""
25612
25613 # type: textblock
25614 #: ../tools/virt-resize.pl:418
25615 msgid ""
25616 "The contents of the LV are also resized if virt-resize knows how to do "
25617 "that.  You can stop virt-resize from trying to expand the content by using "
25618 "the option C<--no-expand-content>."
25619 msgstr ""
25620
25621 # type: textblock
25622 #: ../tools/virt-resize.pl:422
25623 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
25624 msgstr ""
25625
25626 # type: textblock
25627 #: ../tools/virt-resize.pl:425
25628 msgid ""
25629 "You can give this option multiple times, I<but> it doesn't make sense to do "
25630 "this unless the logical volumes you specify are all in different volume "
25631 "groups."
25632 msgstr ""
25633
25634 # type: =item
25635 #: ../tools/virt-resize.pl:433
25636 msgid "B<--no-copy-boot-loader>"
25637 msgstr ""
25638
25639 # type: textblock
25640 #: ../tools/virt-resize.pl:435
25641 msgid ""
25642 "By default, virt-resize copies over some sectors at the start of the disk "
25643 "(up to the beginning of the first partition).  Commonly these sectors "
25644 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25645 "in order for the guest to boot correctly."
25646 msgstr ""
25647
25648 # type: textblock
25649 #: ../tools/virt-resize.pl:440
25650 msgid ""
25651 "If you specify this flag, then this initial copy is not done.  You may need "
25652 "to reinstall the boot loader in this case."
25653 msgstr ""
25654
25655 # type: =item
25656 #: ../tools/virt-resize.pl:448
25657 msgid "B<--no-extra-partition>"
25658 msgstr ""
25659
25660 # type: textblock
25661 #: ../tools/virt-resize.pl:450
25662 msgid ""
25663 "By default, virt-resize creates an extra partition if there is any extra, "
25664 "unused space after all resizing has happened.  Use this option to prevent "
25665 "the extra partition from being created.  If you do this then the extra space "
25666 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25667 "tool in the guest."
25668 msgstr ""
25669
25670 # type: textblock
25671 #: ../tools/virt-resize.pl:456
25672 msgid ""
25673 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25674 "will be created."
25675 msgstr ""
25676
25677 # type: =item
25678 #: ../tools/virt-resize.pl:463
25679 msgid "B<--no-expand-content>"
25680 msgstr ""
25681
25682 # type: textblock
25683 #: ../tools/virt-resize.pl:465
25684 msgid ""
25685 "By default, virt-resize will try to expand the direct contents of "
25686 "partitions, if it knows how (see C<--expand> option above)."
25687 msgstr ""
25688
25689 # type: textblock
25690 #: ../tools/virt-resize.pl:468
25691 msgid ""
25692 "If you give the C<--no-expand-content> option then virt-resize will not "
25693 "attempt this."
25694 msgstr ""
25695
25696 # type: =item
25697 #: ../tools/virt-resize.pl:475
25698 msgid "B<-d> | B<--debug>"
25699 msgstr ""
25700
25701 # type: textblock
25702 #: ../tools/virt-resize.pl:477 ../tools/virt-win-reg.pl:198
25703 msgid "Enable debugging messages."
25704 msgstr ""
25705
25706 # type: =item
25707 #: ../tools/virt-resize.pl:483
25708 msgid "B<-n> | B<--dryrun>"
25709 msgstr ""
25710
25711 # type: textblock
25712 #: ../tools/virt-resize.pl:485
25713 msgid "Print a summary of what would be done, but don't do anything."
25714 msgstr ""
25715
25716 # type: =item
25717 #: ../tools/virt-resize.pl:491
25718 msgid "B<-q> | B<--quiet>"
25719 msgstr ""
25720
25721 # type: textblock
25722 #: ../tools/virt-resize.pl:493
25723 msgid "Don't print the summary."
25724 msgstr ""
25725
25726 # type: =head2
25727 #: ../tools/virt-resize.pl:1352
25728 msgid "\"Partition 1 does not end on cylinder boundary.\""
25729 msgstr ""
25730
25731 # type: textblock
25732 #: ../tools/virt-resize.pl:1354
25733 msgid ""
25734 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
25735 "means the partitions will not be aligned to the ancient CHS geometry.  "
25736 "However CHS geometry is meaningless for disks manufactured since the early "
25737 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
25738 "cylinders is not required by any modern operating system."
25739 msgstr ""
25740
25741 # type: =head2
25742 #: ../tools/virt-resize.pl:1361
25743 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25744 msgstr ""
25745
25746 # type: textblock
25747 #: ../tools/virt-resize.pl:1363
25748 msgid ""
25749 "In Windows Vista and later versions, Microsoft switched to using a separate "
25750 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25751 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
25752 "the boot partition.  Doing so seems to break the guest completely.  However "
25753 "expanding the second partition (ie. C: drive) should work."
25754 msgstr ""
25755
25756 # type: textblock
25757 #: ../tools/virt-resize.pl:1370
25758 msgid ""
25759 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25760 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25761 "it find errors) is nothing to worry about."
25762 msgstr ""
25763
25764 # type: =head1
25765 #: ../tools/virt-resize.pl:1374
25766 msgid "ALTERNATIVE TOOLS"
25767 msgstr ""
25768
25769 # type: textblock
25770 #: ../tools/virt-resize.pl:1376
25771 msgid ""
25772 "There are several proprietary tools for resizing partitions.  We won't "
25773 "mention any here."
25774 msgstr ""
25775
25776 # type: textblock
25777 #: ../tools/virt-resize.pl:1379
25778 msgid ""
25779 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25780 "operations on disk images.  They can resize and move partitions, but I don't "
25781 "think they can do anything with the contents, and they certainly don't "
25782 "understand LVM."
25783 msgstr ""
25784
25785 # type: textblock
25786 #: ../tools/virt-resize.pl:1384
25787 msgid ""
25788 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25789 "but at a much lower level.  You will probably end up hand-calculating sector "
25790 "offsets, which is something that virt-resize was designed to avoid.  If you "
25791 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25792 "C<--debug> flag."
25793 msgstr ""
25794
25795 # type: textblock
25796 #: ../tools/virt-resize.pl:1392
25797 msgid ""
25798 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
25799 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
25800 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<Sys::Guestfs"
25801 "(3)>, L<http://libguestfs.org/>."
25802 msgstr ""
25803
25804 # type: textblock
25805 #: ../tools/virt-tar.pl:34
25806 msgid "virt-tar - Extract or upload files to a virtual machine"
25807 msgstr ""
25808
25809 # type: verbatim
25810 #: ../tools/virt-tar.pl:38
25811 #, no-wrap
25812 msgid ""
25813 " virt-tar [--options] -x domname directory tarball\n"
25814 "\n"
25815 msgstr ""
25816
25817 # type: verbatim
25818 #: ../tools/virt-tar.pl:40
25819 #, no-wrap
25820 msgid ""
25821 " virt-tar [--options] -u domname tarball directory\n"
25822 "\n"
25823 msgstr ""
25824
25825 # type: verbatim
25826 #: ../tools/virt-tar.pl:42
25827 #, no-wrap
25828 msgid ""
25829 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
25830 "\n"
25831 msgstr ""
25832
25833 # type: verbatim
25834 #: ../tools/virt-tar.pl:44
25835 #, no-wrap
25836 msgid ""
25837 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
25838 "\n"
25839 msgstr ""
25840
25841 # type: textblock
25842 #: ../tools/virt-tar.pl:48
25843 msgid "Download C</home> from the VM into a local tarball:"
25844 msgstr ""
25845
25846 # type: verbatim
25847 #: ../tools/virt-tar.pl:50
25848 #, no-wrap
25849 msgid ""
25850 " virt-tar -x domname /home home.tar\n"
25851 "\n"
25852 msgstr ""
25853
25854 # type: verbatim
25855 #: ../tools/virt-tar.pl:52
25856 #, no-wrap
25857 msgid ""
25858 " virt-tar -zx domname /home home.tar.gz\n"
25859 "\n"
25860 msgstr ""
25861
25862 # type: textblock
25863 #: ../tools/virt-tar.pl:54
25864 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
25865 msgstr ""
25866
25867 # type: verbatim
25868 #: ../tools/virt-tar.pl:56
25869 #, no-wrap
25870 msgid ""
25871 " virt-tar -u domname uploadstuff.tar /tmp\n"
25872 "\n"
25873 msgstr ""
25874
25875 # type: verbatim
25876 #: ../tools/virt-tar.pl:58
25877 #, no-wrap
25878 msgid ""
25879 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
25880 "\n"
25881 msgstr ""
25882
25883 # type: textblock
25884 #: ../tools/virt-tar.pl:62
25885 msgid ""
25886 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
25887 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
25888 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
25889 msgstr ""
25890
25891 # type: textblock
25892 #: ../tools/virt-tar.pl:67
25893 msgid ""
25894 "You can use C<-x> (extract) on live virtual machines, but you might get "
25895 "inconsistent results or errors if there is filesystem activity inside the "
25896 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
25897 "work, but the only way to guarantee consistent results is if the virtual "
25898 "machine is shut down."
25899 msgstr ""
25900
25901 # type: textblock
25902 #: ../tools/virt-tar.pl:75
25903 msgid ""
25904 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
25905 "parts of a guest filesystem.  There are many possibilities: making backups, "
25906 "uploading data files, snooping on guest activity, fixing or customizing "
25907 "guests, etc."
25908 msgstr ""
25909
25910 # type: textblock
25911 #: ../tools/virt-tar.pl:80
25912 msgid ""
25913 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
25914 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
25915 "should look at the L<guestfish(1)> tool."
25916 msgstr ""
25917
25918 # type: textblock
25919 #: ../tools/virt-tar.pl:84
25920 msgid ""
25921 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
25922 "its contents (recursively) from the virtual machine into a local tarball.  "
25923 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
25924 "virtual machine.  You cannot use these two options together."
25925 msgstr ""
25926
25927 # type: textblock
25928 #: ../tools/virt-tar.pl:90
25929 msgid ""
25930 "In addition, you may need to use the C<-z> (gZip) option to enable "
25931 "compression.  When uploading, you have to specify C<-z> if the upload file "
25932 "is compressed because virt-tar won't detect this on its own."
25933 msgstr ""
25934
25935 # type: textblock
25936 #: ../tools/virt-tar.pl:94
25937 msgid ""
25938 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
25939 "example it cannot do PKZip files or bzip2 compression.  If you want that "
25940 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
25941 "the L<libguestfs(3)> API)."
25942 msgstr ""
25943
25944 # type: =item
25945 #: ../tools/virt-tar.pl:135
25946 msgid "B<-x> | B<--extract> | B<--download>"
25947 msgstr ""
25948
25949 # type: =item
25950 #: ../tools/virt-tar.pl:137
25951 msgid "B<-u> | B<--upload>"
25952 msgstr ""
25953
25954 # type: textblock
25955 #: ../tools/virt-tar.pl:139
25956 msgid ""
25957 "Use C<-x> to extract (download) a directory from a virtual machine to a "
25958 "local tarball."
25959 msgstr ""
25960
25961 # type: textblock
25962 #: ../tools/virt-tar.pl:142
25963 msgid ""
25964 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
25965 "Please read the L</WARNING> section above before using this option."
25966 msgstr ""
25967
25968 # type: textblock
25969 #: ../tools/virt-tar.pl:146
25970 msgid "You must specify exactly one of these options."
25971 msgstr ""
25972
25973 # type: =item
25974 #: ../tools/virt-tar.pl:152
25975 msgid "B<-z> | B<--gzip>"
25976 msgstr ""
25977
25978 # type: textblock
25979 #: ../tools/virt-tar.pl:154
25980 msgid "Specify that the input or output tarball is gzip-compressed."
25981 msgstr ""
25982
25983 # type: textblock
25984 #: ../tools/virt-tar.pl:259
25985 msgid ""
25986 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
25987 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
25988 "org/>."
25989 msgstr ""
25990
25991 # type: textblock
25992 #: ../tools/virt-win-reg.pl:38
25993 msgid ""
25994 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
25995 msgstr ""
25996
25997 # type: verbatim
25998 #: ../tools/virt-win-reg.pl:42
25999 #, no-wrap
26000 msgid ""
26001 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26002 "\n"
26003 msgstr ""
26004
26005 # type: verbatim
26006 #: ../tools/virt-win-reg.pl:44
26007 #, no-wrap
26008 msgid ""
26009 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26010 "\n"
26011 msgstr ""
26012
26013 # type: verbatim
26014 #: ../tools/virt-win-reg.pl:46
26015 #, no-wrap
26016 msgid ""
26017 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26018 "\n"
26019 msgstr ""
26020
26021 # type: verbatim
26022 #: ../tools/virt-win-reg.pl:48
26023 #, no-wrap
26024 msgid ""
26025 " virt-win-reg --merge domname [input.reg ...]\n"
26026 "\n"
26027 msgstr ""
26028
26029 # type: verbatim
26030 #: ../tools/virt-win-reg.pl:50
26031 #, no-wrap
26032 msgid ""
26033 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26034 "\n"
26035 msgstr ""
26036
26037 # type: textblock
26038 #: ../tools/virt-win-reg.pl:54
26039 msgid ""
26040 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26041 "virtual machines.  If you do this, you I<will> get irreversible disk "
26042 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26043 "but doesn't catch all cases."
26044 msgstr ""
26045
26046 # type: textblock
26047 #: ../tools/virt-win-reg.pl:59
26048 msgid ""
26049 "Modifying the Windows Registry is an inherently risky operation.  The format "
26050 "is deliberately obscure and undocumented, and Registry changes can leave the "
26051 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26052 "you have a reliable backup first."
26053 msgstr ""
26054
26055 # type: textblock
26056 #: ../tools/virt-win-reg.pl:66
26057 msgid ""
26058 "This program can export and merge Windows Registry entries from a Windows "
26059 "guest."
26060 msgstr ""
26061
26062 # type: textblock
26063 #: ../tools/virt-win-reg.pl:69
26064 msgid ""
26065 "The first parameter is the libvirt guest name or the raw disk image of a "
26066 "Windows guest."
26067 msgstr ""
26068
26069 # type: textblock
26070 #: ../tools/virt-win-reg.pl:72
26071 msgid ""
26072 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26073 "exported (recursively).  For example:"
26074 msgstr ""
26075
26076 # type: verbatim
26077 #: ../tools/virt-win-reg.pl:75
26078 #, no-wrap
26079 msgid ""
26080 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26081 "\n"
26082 msgstr ""
26083
26084 # type: textblock
26085 #: ../tools/virt-win-reg.pl:77
26086 msgid ""
26087 "You can also display single values from within registry keys, for example:"
26088 msgstr ""
26089
26090 # type: verbatim
26091 #: ../tools/virt-win-reg.pl:80
26092 #, no-wrap
26093 msgid ""
26094 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26095 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26096 " Windows 7 Enterprise\n"
26097 "\n"
26098 msgstr ""
26099
26100 # type: textblock
26101 #: ../tools/virt-win-reg.pl:84
26102 msgid ""
26103 "With C<--merge>, you can merge a textual regedit file into the Windows "
26104 "Registry:"
26105 msgstr ""
26106
26107 # type: verbatim
26108 #: ../tools/virt-win-reg.pl:87
26109 #, no-wrap
26110 msgid ""
26111 " $ virt-win-reg --merge Windows7 changes.reg\n"
26112 "\n"
26113 msgstr ""
26114
26115 # type: =head2
26116 #: ../tools/virt-win-reg.pl:89
26117 msgid "SUPPORTED SYSTEMS"
26118 msgstr ""
26119
26120 # type: textblock
26121 #: ../tools/virt-win-reg.pl:91
26122 msgid ""
26123 "The program currently supports Windows NT-derived guests starting with "
26124 "Windows XP through to at least Windows 7."
26125 msgstr ""
26126
26127 # type: textblock
26128 #: ../tools/virt-win-reg.pl:94
26129 msgid ""
26130 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26131 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26132 "and C<HKEY_USERS\\.DEFAULT>."
26133 msgstr ""
26134
26135 # type: textblock
26136 #: ../tools/virt-win-reg.pl:98
26137 msgid ""
26138 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26139 "C<HKEY_USERS>."
26140 msgstr ""
26141
26142 # type: textblock
26143 #: ../tools/virt-win-reg.pl:101
26144 msgid ""
26145 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26146 "time."
26147 msgstr ""
26148
26149 # type: =head2
26150 #: ../tools/virt-win-reg.pl:104
26151 msgid "NOTE"
26152 msgstr ""
26153
26154 # type: textblock
26155 #: ../tools/virt-win-reg.pl:106
26156 msgid ""
26157 "This program is only meant for simple access to the registry.  If you want "
26158 "to do complicated things with the registry, we suggest you download the "
26159 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26160 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26161 "L<hivexregedit(1)>."
26162 msgstr ""
26163
26164 # type: =head2
26165 #: ../tools/virt-win-reg.pl:112
26166 msgid "ENCODING"
26167 msgstr ""
26168
26169 # type: textblock
26170 #: ../tools/virt-win-reg.pl:114
26171 msgid ""
26172 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26173 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26174 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26175 "Windows-style line endings, you may need to reencode the whole file before "
26176 "or after processing."
26177 msgstr ""
26178
26179 # type: textblock
26180 #: ../tools/virt-win-reg.pl:120
26181 msgid ""
26182 "To reencode a file from Windows format to Linux (before processing it with "
26183 "the C<--merge> option), you would do something like this:"
26184 msgstr ""
26185
26186 # type: verbatim
26187 #: ../tools/virt-win-reg.pl:123
26188 #, no-wrap
26189 msgid ""
26190 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26191 "\n"
26192 msgstr ""
26193
26194 # type: textblock
26195 #: ../tools/virt-win-reg.pl:125
26196 msgid ""
26197 "To go in the opposite direction, after exporting and before sending the file "
26198 "to a Windows user, do something like this:"
26199 msgstr ""
26200
26201 # type: verbatim
26202 #: ../tools/virt-win-reg.pl:128
26203 #, no-wrap
26204 msgid ""
26205 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26206 "\n"
26207 msgstr ""
26208
26209 # type: textblock
26210 #: ../tools/virt-win-reg.pl:130
26211 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26212 msgstr ""
26213
26214 # type: textblock
26215 #: ../tools/virt-win-reg.pl:132
26216 msgid ""
26217 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26218 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26219 "style (CRLF) line endings, like this:"
26220 msgstr ""
26221
26222 # type: verbatim
26223 #: ../tools/virt-win-reg.pl:136
26224 #, no-wrap
26225 msgid ""
26226 " $ file software.reg\n"
26227 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26228 " with CRLF line terminators\n"
26229 "\n"
26230 msgstr ""
26231
26232 # type: textblock
26233 #: ../tools/virt-win-reg.pl:140
26234 msgid "This file would need conversion before you could C<--merge> it."
26235 msgstr ""
26236
26237 # type: =head2
26238 #: ../tools/virt-win-reg.pl:142
26239 msgid "SHELL QUOTING"
26240 msgstr ""
26241
26242 # type: textblock
26243 #: ../tools/virt-win-reg.pl:144
26244 msgid ""
26245 "Be careful when passing parameters containing C<\\> (backslash) in the "
26246 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26247 "(but not both) to protect them from the shell."
26248 msgstr ""
26249
26250 # type: textblock
26251 #: ../tools/virt-win-reg.pl:148
26252 msgid "Paths and value names are case-insensitive."
26253 msgstr ""
26254
26255 # type: =head2
26256 #: ../tools/virt-win-reg.pl:150
26257 msgid "CurrentControlSet etc."
26258 msgstr ""
26259
26260 # type: textblock
26261 #: ../tools/virt-win-reg.pl:152
26262 msgid ""
26263 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26264 "Registry at the level of the hive file, and therefore you cannot modify "
26265 "these."
26266 msgstr ""
26267
26268 # type: textblock
26269 #: ../tools/virt-win-reg.pl:156
26270 msgid ""
26271 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26272 "circumstances it might refer to another control set.  The way to find out is "
26273 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26274 msgstr ""
26275
26276 # type: verbatim
26277 #: ../tools/virt-win-reg.pl:160
26278 #, no-wrap
26279 msgid ""
26280 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26281 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26282 " \"Current\"=dword:00000001\n"
26283 " \"Default\"=dword:00000001\n"
26284 " \"Failed\"=dword:00000000\n"
26285 " \"LastKnownGood\"=dword:00000002\n"
26286 "\n"
26287 msgstr ""
26288
26289 # type: textblock
26290 #: ../tools/virt-win-reg.pl:167
26291 msgid "\"Default\" is the one which Windows will choose when it boots."
26292 msgstr ""
26293
26294 # type: textblock
26295 #: ../tools/virt-win-reg.pl:169
26296 msgid ""
26297 "Similarly, other C<Current...> keys in the path may need to be replaced."
26298 msgstr ""
26299
26300 # type: =item
26301 #: ../tools/virt-win-reg.pl:216
26302 msgid "B<--merge>"
26303 msgstr ""
26304
26305 # type: textblock
26306 #: ../tools/virt-win-reg.pl:218
26307 msgid ""
26308 "In merge mode, this merges a textual regedit file into the Windows Registry "
26309 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26310 "displays or exports Registry entries instead."
26311 msgstr ""
26312
26313 # type: textblock
26314 #: ../tools/virt-win-reg.pl:222
26315 msgid ""
26316 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26317 "result in disk corruption.  However exporting (without this flag)  is always "
26318 "safe."
26319 msgstr ""
26320
26321 # type: =item
26322 #: ../tools/virt-win-reg.pl:230
26323 msgid "B<--encoding> UTF-16LE|ASCII"
26324 msgstr ""
26325
26326 # type: textblock
26327 #: ../tools/virt-win-reg.pl:232
26328 msgid ""
26329 "When merging (only), you may need to specify the encoding for strings to be "
26330 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26331 "(3)/ENCODING STRINGS>."
26332 msgstr ""
26333
26334 # type: textblock
26335 #: ../tools/virt-win-reg.pl:236
26336 msgid ""
26337 "The default is to use UTF-16LE, which should work with recent versions of "
26338 "Windows."
26339 msgstr ""
26340
26341 # type: textblock
26342 #: ../tools/virt-win-reg.pl:463
26343 msgid ""
26344 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26345 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26346 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26347 msgstr ""
26348
26349 # type: verbatim
26350 #: ../tools/virt-win-reg.pl:481
26351 #, no-wrap
26352 msgid ""
26353 " export LIBGUESTFS_DEBUG=1\n"
26354 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26355 "\n"
26356 msgstr ""
26357
26358 # type: textblock
26359 #: ../tools/virt-win-reg.pl:484
26360 msgid ""
26361 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26362 "redhat.com/>"
26363 msgstr ""