2b72930101ff728363091ad25de717936a0b660c
[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-11-30 15:00+0000\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 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33
23 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
24 #: ../tools/virt-tar.pl:29 ../tools/virt-make-fs.pl:33
25 #: ../tools/virt-list-partitions.pl:28
26 msgid "utf8"
27 msgstr ""
28
29 # type: =head1
30 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
31 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
32 #: ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35
33 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
34 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
35 #: ../tools/virt-list-partitions.pl:30
36 msgid "NAME"
37 msgstr "名前"
38
39 # type: textblock
40 #: ../src/guestfs.pod:5
41 msgid "guestfs - Library for accessing and modifying virtual machine images"
42 msgstr ""
43
44 # type: =head1
45 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
46 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
47 #: ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39
48 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
49 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
50 #: ../tools/virt-list-partitions.pl:34
51 msgid "SYNOPSIS"
52 msgstr ""
53
54 # type: verbatim
55 #: ../src/guestfs.pod:9
56 #, no-wrap
57 msgid ""
58 " #include <guestfs.h>\n"
59 " \n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:11
64 #, no-wrap
65 msgid ""
66 " guestfs_h *g = guestfs_create ();\n"
67 " guestfs_add_drive (g, \"guest.img\");\n"
68 " guestfs_launch (g);\n"
69 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
70 " guestfs_touch (g, \"/hello\");\n"
71 " guestfs_umount (g, \"/\");\n"
72 " guestfs_sync (g);\n"
73 " guestfs_close (g);\n"
74 "\n"
75 msgstr ""
76
77 # type: verbatim
78 #: ../src/guestfs.pod:20
79 #, no-wrap
80 msgid ""
81 " cc prog.c -o prog -lguestfs\n"
82 "or:\n"
83 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
84 "\n"
85 msgstr ""
86
87 # type: =head1
88 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30
89 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
90 #: ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63
91 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
92 #: ../tools/virt-tar.pl:72 ../tools/virt-make-fs.pl:47
93 #: ../tools/virt-list-partitions.pl:40
94 msgid "DESCRIPTION"
95 msgstr ""
96
97 # type: textblock
98 #: ../src/guestfs.pod:26
99 msgid ""
100 "Libguestfs is a library for accessing and modifying guest disk images.  "
101 "Amongst the things this is good for: making batch configuration changes to "
102 "guests, getting disk used/free statistics (see also: virt-df), migrating "
103 "between virtualization systems (see also: virt-p2v), performing partial "
104 "backups, performing partial guest clones, cloning guests and changing "
105 "registry/UUID/hostname info, and much else besides."
106 msgstr ""
107
108 # type: textblock
109 #: ../src/guestfs.pod:34
110 msgid ""
111 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
112 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
113 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
114 "qcow2, vmdk."
115 msgstr ""
116
117 # type: textblock
118 #: ../src/guestfs.pod:39
119 msgid ""
120 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
121 "what filesystem is in each LV, etc.).  It can also run commands in the "
122 "context of the guest.  Also you can access filesystems over FUSE."
123 msgstr ""
124
125 # type: textblock
126 #: ../src/guestfs.pod:44
127 msgid ""
128 "Libguestfs is a library that can be linked with C and C++ management "
129 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
130 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
131 "line."
132 msgstr ""
133
134 # type: textblock
135 #: ../src/guestfs.pod:49
136 msgid ""
137 "You don't need to be root to use libguestfs, although obviously you do need "
138 "enough permissions to access the disk images."
139 msgstr ""
140
141 # type: textblock
142 #: ../src/guestfs.pod:52
143 msgid ""
144 "Libguestfs is a large API because it can do many things.  For a gentle "
145 "introduction, please read the L</API OVERVIEW> section next."
146 msgstr ""
147
148 # type: textblock
149 #: ../src/guestfs.pod:55
150 msgid ""
151 "There are also some example programs in the L<guestfs-examples(3)> manual "
152 "page."
153 msgstr ""
154
155 # type: =head1
156 #: ../src/guestfs.pod:58
157 msgid "API OVERVIEW"
158 msgstr ""
159
160 # type: textblock
161 #: ../src/guestfs.pod:60
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:65
170 msgid "HANDLES"
171 msgstr ""
172
173 # type: textblock
174 #: ../src/guestfs.pod:67
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:74
185 msgid "The general structure of all libguestfs-using programs looks like this:"
186 msgstr ""
187
188 # type: verbatim
189 #: ../src/guestfs.pod:77
190 #, no-wrap
191 msgid ""
192 " guestfs_h *g = guestfs_create ();\n"
193 " \n"
194 msgstr ""
195
196 # type: verbatim
197 #: ../src/guestfs.pod:79
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:84
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:90
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:95
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:99
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:104
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:111
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:114
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:122
286 msgid "DISK IMAGES"
287 msgstr ""
288
289 # type: textblock
290 #: ../src/guestfs.pod:124
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:130
301 msgid ""
302 "The call you should use in modern code for adding drives is L</"
303 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
304 "specifying that the format is raw, do:"
305 msgstr ""
306
307 # type: verbatim
308 #: ../src/guestfs.pod:134
309 #, no-wrap
310 msgid ""
311 " guestfs_add_drive_opts (g, filename,\n"
312 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
313 "                         -1);\n"
314 "\n"
315 msgstr ""
316
317 # type: textblock
318 #: ../src/guestfs.pod:138
319 msgid "You can add a disk read-only using:"
320 msgstr ""
321
322 # type: verbatim
323 #: ../src/guestfs.pod:140
324 #, no-wrap
325 msgid ""
326 " guestfs_add_drive_opts (g, filename,\n"
327 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
328 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
329 "                         -1);\n"
330 "\n"
331 msgstr ""
332
333 # type: textblock
334 #: ../src/guestfs.pod:145
335 msgid ""
336 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
337 "libguestfs won't modify the file."
338 msgstr ""
339
340 # type: textblock
341 #: ../src/guestfs.pod:148
342 msgid ""
343 "Be extremely cautious if the disk image is in use, eg. if it is being used "
344 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
345 "corruption, but adding it read-only is safe."
346 msgstr ""
347
348 # type: textblock
349 #: ../src/guestfs.pod:152
350 msgid ""
351 "You must add at least one disk image, and you may add multiple disk images.  "
352 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
353 "first one you added), C</dev/sdb> (for the second one you added), etc."
354 msgstr ""
355
356 # type: textblock
357 #: ../src/guestfs.pod:157
358 msgid ""
359 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
360 "can call L</guestfs_list_devices> to get a list of the device names, in the "
361 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
362 msgstr ""
363
364 # type: =head2
365 #: ../src/guestfs.pod:162
366 msgid "MOUNTING"
367 msgstr ""
368
369 # type: textblock
370 #: ../src/guestfs.pod:164
371 msgid ""
372 "Before you can read or write files, create directories and so on in a disk "
373 "image that contains filesystems, you have to mount those filesystems using "
374 "L</guestfs_mount>.  If you already know that a disk image contains (for "
375 "example) one partition with a filesystem on that partition, then you can "
376 "mount it directly:"
377 msgstr ""
378
379 # type: verbatim
380 #: ../src/guestfs.pod:170
381 #, no-wrap
382 msgid ""
383 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
384 "\n"
385 msgstr ""
386
387 # type: textblock
388 #: ../src/guestfs.pod:172
389 msgid ""
390 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
391 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
392 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
393 msgstr ""
394
395 # type: textblock
396 #: ../src/guestfs.pod:176
397 msgid ""
398 "If you are given a disk image and you don't know what it contains then you "
399 "have to find out.  Libguestfs can do that too: use L</"
400 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
401 "LVs, and either try mounting each to see what is mountable, or else examine "
402 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
403 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
404 "you might find it easier to look at higher level programs built on top of "
405 "libguestfs, in particular L<virt-inspector(1)>."
406 msgstr ""
407
408 # type: textblock
409 #: ../src/guestfs.pod:186
410 msgid ""
411 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
412 "several other variations of the C<guestfs_mount_*> call."
413 msgstr ""
414
415 # type: =head2
416 #: ../src/guestfs.pod:189
417 msgid "FILESYSTEM ACCESS AND MODIFICATION"
418 msgstr ""
419
420 # type: textblock
421 #: ../src/guestfs.pod:191
422 msgid ""
423 "The majority of the libguestfs API consists of fairly low-level calls for "
424 "accessing and modifying the files, directories, symlinks etc on mounted "
425 "filesystems.  There are over a hundred such calls which you can find listed "
426 "in detail below in this man page, and we don't even pretend to cover them "
427 "all in this overview."
428 msgstr ""
429
430 # type: textblock
431 #: ../src/guestfs.pod:197
432 msgid ""
433 "Specify filenames as full paths, starting with C<\"/\"> and including the "
434 "mount point."
435 msgstr ""
436
437 # type: textblock
438 #: ../src/guestfs.pod:200
439 msgid ""
440 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
441 "the file called C<\"etc/passwd\"> then you could do:"
442 msgstr ""
443
444 # type: verbatim
445 #: ../src/guestfs.pod:203
446 #, no-wrap
447 msgid ""
448 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
449 "\n"
450 msgstr ""
451
452 # type: textblock
453 #: ../src/guestfs.pod:205
454 msgid ""
455 "This would return C<data> as a newly allocated buffer containing the full "
456 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
457 "or C<NULL> if there was an error."
458 msgstr ""
459
460 # type: textblock
461 #: ../src/guestfs.pod:209
462 msgid ""
463 "As another example, to create a top-level directory on that filesystem "
464 "called C<\"var\"> you would do:"
465 msgstr ""
466
467 # type: verbatim
468 #: ../src/guestfs.pod:212
469 #, no-wrap
470 msgid ""
471 " guestfs_mkdir (g, \"/var\");\n"
472 "\n"
473 msgstr ""
474
475 # type: textblock
476 #: ../src/guestfs.pod:214
477 msgid "To create a symlink you could do:"
478 msgstr ""
479
480 # type: verbatim
481 #: ../src/guestfs.pod:216
482 #, no-wrap
483 msgid ""
484 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
485 "               \"/etc/rc3.d/S30portmap\");\n"
486 "\n"
487 msgstr ""
488
489 # type: textblock
490 #: ../src/guestfs.pod:219
491 msgid ""
492 "Libguestfs will reject attempts to use relative paths and there is no "
493 "concept of a current working directory."
494 msgstr ""
495
496 # type: textblock
497 #: ../src/guestfs.pod:222
498 msgid ""
499 "Libguestfs can return errors in many situations: for example if the "
500 "filesystem isn't writable, or if a file or directory that you requested "
501 "doesn't exist.  If you are using the C API (documented here)  you have to "
502 "check for those error conditions after each call.  (Other language bindings "
503 "turn these errors into exceptions)."
504 msgstr ""
505
506 # type: textblock
507 #: ../src/guestfs.pod:228
508 msgid ""
509 "File writes are affected by the per-handle umask, set by calling L</"
510 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
511 msgstr ""
512
513 # type: =head2
514 #: ../src/guestfs.pod:231
515 msgid "PARTITIONING"
516 msgstr ""
517
518 # type: textblock
519 #: ../src/guestfs.pod:233
520 msgid ""
521 "Libguestfs contains API calls to read, create and modify partition tables on "
522 "disk images."
523 msgstr ""
524
525 # type: textblock
526 #: ../src/guestfs.pod:236
527 msgid ""
528 "In the common case where you want to create a single partition covering the "
529 "whole disk, you should use the L</guestfs_part_disk> call:"
530 msgstr ""
531
532 # type: verbatim
533 #: ../src/guestfs.pod:240
534 #, no-wrap
535 msgid ""
536 " const char *parttype = \"mbr\";\n"
537 " if (disk_is_larger_than_2TB)\n"
538 "   parttype = \"gpt\";\n"
539 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
540 "\n"
541 msgstr ""
542
543 # type: textblock
544 #: ../src/guestfs.pod:245
545 msgid ""
546 "Obviously this effectively wipes anything that was on that disk image before."
547 msgstr ""
548
549 # type: =head2
550 #: ../src/guestfs.pod:248
551 msgid "LVM2"
552 msgstr ""
553
554 # type: textblock
555 #: ../src/guestfs.pod:250
556 msgid ""
557 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
558 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
559 "you familiarize yourself with the concepts of physical volumes, volume "
560 "groups and logical volumes."
561 msgstr ""
562
563 # type: textblock
564 #: ../src/guestfs.pod:255
565 msgid ""
566 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
567 "tldp.org/HOWTO/LVM-HOWTO/>."
568 msgstr ""
569
570 # type: =head2
571 #: ../src/guestfs.pod:258
572 msgid "DOWNLOADING"
573 msgstr ""
574
575 # type: textblock
576 #: ../src/guestfs.pod:260
577 msgid ""
578 "Use L</guestfs_cat> to download small, text only files.  This call is "
579 "limited to files which are less than 2 MB and which cannot contain any ASCII "
580 "NUL (C<\\0>) characters.  However it has a very simple to use API."
581 msgstr ""
582
583 # type: textblock
584 #: ../src/guestfs.pod:265
585 msgid ""
586 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
587 "bit data, since it returns a (pointer, size) pair.  However it is still "
588 "limited to \"small\" files, less than 2 MB."
589 msgstr ""
590
591 # type: textblock
592 #: ../src/guestfs.pod:269
593 msgid ""
594 "L</guestfs_download> can be used to download any file, with no limits on "
595 "content or size (even files larger than 4 GB)."
596 msgstr ""
597
598 # type: textblock
599 #: ../src/guestfs.pod:272
600 msgid ""
601 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
602 msgstr ""
603
604 # type: =head2
605 #: ../src/guestfs.pod:275
606 msgid "UPLOADING"
607 msgstr ""
608
609 # type: textblock
610 #: ../src/guestfs.pod:277
611 msgid ""
612 "It's often the case that you want to write a file or files to the disk image."
613 msgstr ""
614
615 # type: textblock
616 #: ../src/guestfs.pod:280
617 msgid ""
618 "To write a small file with fixed content, use L</guestfs_write>.  To create "
619 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
620 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
621 "of other functions for creating test files, for example L</guestfs_fill> and "
622 "L</guestfs_fill_pattern>."
623 msgstr ""
624
625 # type: textblock
626 #: ../src/guestfs.pod:286
627 msgid ""
628 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
629 "file content or size (even files larger than 4 GB)."
630 msgstr ""
631
632 # type: textblock
633 #: ../src/guestfs.pod:289
634 msgid ""
635 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
636 msgstr ""
637
638 # type: textblock
639 #: ../src/guestfs.pod:291
640 msgid ""
641 "However the fastest way to upload I<large numbers of arbitrary files> is to "
642 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
643 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
644 "in a predictable way (eg. adding it last after all other drives) then you "
645 "can get the device name from L</guestfs_list_devices> and mount it directly "
646 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
647 "portable between kernel versions, and they don't support labels or UUIDs.  "
648 "If you want to pre-build an image or you need to mount it using a label or "
649 "UUID, use an ISO image instead."
650 msgstr ""
651
652 # type: =head2
653 #: ../src/guestfs.pod:302
654 msgid "COPYING"
655 msgstr ""
656
657 # type: textblock
658 #: ../src/guestfs.pod:304
659 msgid ""
660 "There are various different commands for copying between files and devices "
661 "and in and out of the guest filesystem.  These are summarised in the table "
662 "below."
663 msgstr ""
664
665 # type: =item
666 #: ../src/guestfs.pod:310
667 msgid "B<file> to B<file>"
668 msgstr ""
669
670 # type: textblock
671 #: ../src/guestfs.pod:312
672 msgid ""
673 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
674 "directories recursively."
675 msgstr ""
676
677 # type: =item
678 #: ../src/guestfs.pod:315
679 msgid "B<file or device> to B<file or device>"
680 msgstr ""
681
682 # type: textblock
683 #: ../src/guestfs.pod:317
684 msgid ""
685 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
686 "devices in the guest."
687 msgstr ""
688
689 # type: textblock
690 #: ../src/guestfs.pod:320
691 msgid "Example: duplicate the contents of an LV:"
692 msgstr ""
693
694 # type: verbatim
695 #: ../src/guestfs.pod:322
696 #, no-wrap
697 msgid ""
698 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
699 "\n"
700 msgstr ""
701
702 # type: textblock
703 #: ../src/guestfs.pod:324
704 msgid ""
705 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
706 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
707 "guestfs_copy_size>."
708 msgstr ""
709
710 # type: =item
711 #: ../src/guestfs.pod:328
712 msgid "B<file on the host> to B<file or device>"
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:330
717 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
718 msgstr ""
719
720 # type: =item
721 #: ../src/guestfs.pod:332
722 msgid "B<file or device> to B<file on the host>"
723 msgstr ""
724
725 # type: textblock
726 #: ../src/guestfs.pod:334
727 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
728 msgstr ""
729
730 # type: =head2
731 #: ../src/guestfs.pod:338
732 msgid "LISTING FILES"
733 msgstr ""
734
735 # type: textblock
736 #: ../src/guestfs.pod:340
737 msgid ""
738 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
739 "L<guestfish(1)>-equivalent command C<ll>)."
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:343
744 msgid ""
745 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
746 "programs, as a flat list of strings."
747 msgstr ""
748
749 # type: textblock
750 #: ../src/guestfs.pod:346
751 msgid ""
752 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
753 "directory, plus additional information about each one.  It is more "
754 "equivalent to using the L<readdir(3)> call on a local filesystem."
755 msgstr ""
756
757 # type: textblock
758 #: ../src/guestfs.pod:350
759 msgid ""
760 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
761 msgstr ""
762
763 # type: =head2
764 #: ../src/guestfs.pod:353
765 msgid "RUNNING COMMANDS"
766 msgstr ""
767
768 # type: textblock
769 #: ../src/guestfs.pod:355
770 msgid ""
771 "Although libguestfs is primarily an API for manipulating files inside guest "
772 "images, we also provide some limited facilities for running commands inside "
773 "guests."
774 msgstr ""
775
776 # type: textblock
777 #: ../src/guestfs.pod:359
778 msgid "There are many limitations to this:"
779 msgstr ""
780
781 # type: =item
782 #: ../src/guestfs.pod:363 ../src/guestfs.pod:368 ../src/guestfs.pod:373
783 #: ../src/guestfs.pod:377 ../src/guestfs.pod:382 ../src/guestfs.pod:386
784 #: ../src/guestfs.pod:391 ../src/guestfs.pod:396 ../src/guestfs.pod:955
785 #: ../src/guestfs.pod:959 ../src/guestfs.pod:963 ../src/guestfs.pod:968
786 #: ../src/guestfs.pod:976 ../src/guestfs.pod:995 ../src/guestfs.pod:1003
787 #: ../src/guestfs.pod:1025 ../src/guestfs.pod:1029 ../src/guestfs.pod:1033
788 #: ../src/guestfs.pod:1037 ../src/guestfs.pod:1041 ../src/guestfs.pod:1045
789 #: ../src/guestfs.pod:1527 ../src/guestfs.pod:1532 ../src/guestfs.pod:1536
790 #: ../src/guestfs.pod:1646 ../src/guestfs.pod:1651 ../src/guestfs.pod:1655
791 #: ../src/guestfs.pod:1999 ../src/guestfs.pod:2005 ../src/guestfs.pod:2010
792 #: ../src/guestfs.pod:2016 ../src/guestfs.pod:2128 ../src/guestfs.pod:2132
793 #: ../src/guestfs.pod:2136 ../src/guestfs.pod:2140
794 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
795 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:579
796 #: ../src/guestfs-actions.pod:586 ../src/guestfs-actions.pod:593
797 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:1593
798 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:1601
799 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1613
800 #: ../src/guestfs-actions.pod:1617 ../src/guestfs-actions.pod:1627
801 #: ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1635
802 #: ../src/guestfs-actions.pod:1773 ../src/guestfs-actions.pod:1777
803 #: ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1787
804 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:1852
805 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish.pod:377
806 #: ../fish/guestfish.pod:381 ../fish/guestfish.pod:385
807 #: ../fish/guestfish.pod:389 ../fish/guestfish-actions.pod:13
808 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
809 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
810 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
811 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
812 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
813 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
814 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
815 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
816 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
817 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
818 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
819 #: ../tools/virt-resize.pl:345 ../tools/virt-resize.pl:350
820 #: ../tools/virt-resize.pl:360
821 msgid "*"
822 msgstr ""
823
824 # type: textblock
825 #: ../src/guestfs.pod:365
826 msgid ""
827 "The kernel version that the command runs under will be different from what "
828 "it expects."
829 msgstr ""
830
831 # type: textblock
832 #: ../src/guestfs.pod:370
833 msgid ""
834 "If the command needs to communicate with daemons, then most likely they "
835 "won't be running."
836 msgstr ""
837
838 # type: textblock
839 #: ../src/guestfs.pod:375
840 msgid "The command will be running in limited memory."
841 msgstr ""
842
843 # type: textblock
844 #: ../src/guestfs.pod:379
845 msgid ""
846 "The network may not be available unless you enable it (see L</"
847 "guestfs_set_network>)."
848 msgstr ""
849
850 # type: textblock
851 #: ../src/guestfs.pod:384
852 msgid "Only supports Linux guests (not Windows, BSD, etc)."
853 msgstr ""
854
855 # type: textblock
856 #: ../src/guestfs.pod:388
857 msgid ""
858 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
859 msgstr ""
860
861 # type: textblock
862 #: ../src/guestfs.pod:393
863 msgid ""
864 "For SELinux guests, you may need to enable SELinux and load policy first.  "
865 "See L</SELINUX> in this manpage."
866 msgstr ""
867
868 # type: textblock
869 #: ../src/guestfs.pod:398
870 msgid ""
871 "I<Security:> It is not safe to run commands from untrusted, possibly "
872 "malicious guests.  These commands may attempt to exploit your program by "
873 "sending unexpected output.  They could also try to exploit the Linux kernel "
874 "or qemu provided by the libguestfs appliance.  They could use the network "
875 "provided by the libguestfs appliance to bypass ordinary network partitions "
876 "and firewalls.  They could use the elevated privileges or different SELinux "
877 "context of your program to their advantage."
878 msgstr ""
879
880 # type: textblock
881 #: ../src/guestfs.pod:407
882 msgid ""
883 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
884 "(a script which runs when the guest next boots normally), and to have this "
885 "script run the commands you want in the normal context of the running guest, "
886 "network security and so on.  For information about other security issues, "
887 "see L</SECURITY>."
888 msgstr ""
889
890 # type: textblock
891 #: ../src/guestfs.pod:415
892 msgid ""
893 "The two main API calls to run commands are L</guestfs_command> and L</"
894 "guestfs_sh> (there are also variations)."
895 msgstr ""
896
897 # type: textblock
898 #: ../src/guestfs.pod:418
899 msgid ""
900 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
901 "shell globs, redirections, etc will work."
902 msgstr ""
903
904 # type: =head2
905 #: ../src/guestfs.pod:421
906 msgid "CONFIGURATION FILES"
907 msgstr ""
908
909 # type: textblock
910 #: ../src/guestfs.pod:423
911 msgid ""
912 "To read and write configuration files in Linux guest filesystems, we "
913 "strongly recommend using Augeas.  For example, Augeas understands how to "
914 "read and write, say, a Linux shadow password file or X.org configuration "
915 "file, and so avoids you having to write that code."
916 msgstr ""
917
918 # type: textblock
919 #: ../src/guestfs.pod:428
920 msgid ""
921 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
922 "document Augeas itself here because there is excellent documentation on the "
923 "L<http://augeas.net/> website."
924 msgstr ""
925
926 # type: textblock
927 #: ../src/guestfs.pod:432
928 msgid ""
929 "If you don't want to use Augeas (you fool!) then try calling L</"
930 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
931 "over."
932 msgstr ""
933
934 # type: =head2
935 #: ../src/guestfs.pod:436
936 msgid "SELINUX"
937 msgstr ""
938
939 # type: textblock
940 #: ../src/guestfs.pod:438
941 msgid ""
942 "We support SELinux guests.  To ensure that labeling happens correctly in "
943 "SELinux guests, you need to enable SELinux and load the guest's policy:"
944 msgstr ""
945
946 # type: =item
947 #: ../src/guestfs.pod:444 ../src/guestfs.pod:1148 ../src/guestfs.pod:1279
948 msgid "1."
949 msgstr ""
950
951 # type: textblock
952 #: ../src/guestfs.pod:446
953 msgid "Before launching, do:"
954 msgstr ""
955
956 # type: verbatim
957 #: ../src/guestfs.pod:448
958 #, no-wrap
959 msgid ""
960 " guestfs_set_selinux (g, 1);\n"
961 "\n"
962 msgstr ""
963
964 # type: =item
965 #: ../src/guestfs.pod:450 ../src/guestfs.pod:1152 ../src/guestfs.pod:1283
966 msgid "2."
967 msgstr ""
968
969 # type: textblock
970 #: ../src/guestfs.pod:452
971 msgid ""
972 "After mounting the guest's filesystem(s), load the policy.  This is best "
973 "done by running the L<load_policy(8)> command in the guest itself:"
974 msgstr ""
975
976 # type: verbatim
977 #: ../src/guestfs.pod:456
978 #, no-wrap
979 msgid ""
980 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
981 "\n"
982 msgstr ""
983
984 # type: textblock
985 #: ../src/guestfs.pod:458
986 msgid ""
987 "(Older versions of C<load_policy> require you to specify the name of the "
988 "policy file)."
989 msgstr ""
990
991 # type: =item
992 #: ../src/guestfs.pod:461 ../src/guestfs.pod:1289
993 msgid "3."
994 msgstr ""
995
996 # type: textblock
997 #: ../src/guestfs.pod:463
998 msgid ""
999 "Optionally, set the security context for the API.  The correct security "
1000 "context to use can only be known by inspecting the guest.  As an example:"
1001 msgstr ""
1002
1003 # type: verbatim
1004 #: ../src/guestfs.pod:467
1005 #, no-wrap
1006 msgid ""
1007 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1008 "\n"
1009 msgstr ""
1010
1011 # type: textblock
1012 #: ../src/guestfs.pod:471
1013 msgid "This will work for running commands and editing existing files."
1014 msgstr ""
1015
1016 # type: textblock
1017 #: ../src/guestfs.pod:473
1018 msgid ""
1019 "When new files are created, you may need to label them explicitly, for "
1020 "example by running the external command C<restorecon pathname>."
1021 msgstr ""
1022
1023 # type: =head2
1024 #: ../src/guestfs.pod:477
1025 msgid "UMASK"
1026 msgstr ""
1027
1028 # type: textblock
1029 #: ../src/guestfs.pod:479
1030 msgid ""
1031 "Certain calls are affected by the current file mode creation mask (the "
1032 "\"umask\").  In particular ones which create files or directories, such as "
1033 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1034 "either the default mode that the file is created with or modifies the mode "
1035 "that you supply."
1036 msgstr ""
1037
1038 # type: textblock
1039 #: ../src/guestfs.pod:485
1040 msgid ""
1041 "The default umask is C<022>, so files are created with modes such as C<0644> "
1042 "and directories with C<0755>."
1043 msgstr ""
1044
1045 # type: textblock
1046 #: ../src/guestfs.pod:488
1047 msgid ""
1048 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1049 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1050 "guestfs_chmod> after creating each file or directory."
1051 msgstr ""
1052
1053 # type: textblock
1054 #: ../src/guestfs.pod:492
1055 msgid "For more information about umask, see L<umask(2)>."
1056 msgstr ""
1057
1058 # type: =head1
1059 #: ../src/guestfs.pod:494 ../fish/guestfish.pod:670
1060 msgid "ENCRYPTED DISKS"
1061 msgstr ""
1062
1063 # type: textblock
1064 #: ../src/guestfs.pod:496
1065 msgid ""
1066 "Libguestfs allows you to access Linux guests which have been encrypted using "
1067 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1068 "standard.  This includes nearly all whole disk encryption systems used by "
1069 "modern Linux guests."
1070 msgstr ""
1071
1072 # type: textblock
1073 #: ../src/guestfs.pod:502
1074 msgid ""
1075 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1076 "returns the string C<crypto_LUKS>)."
1077 msgstr ""
1078
1079 # type: textblock
1080 #: ../src/guestfs.pod:505
1081 msgid ""
1082 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1083 "will require the passphrase!"
1084 msgstr ""
1085
1086 # type: textblock
1087 #: ../src/guestfs.pod:508
1088 msgid ""
1089 "Opening a LUKS device creates a new device mapper device called C</dev/"
1090 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1091 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1092 "from and encrypted to the underlying block device respectively."
1093 msgstr ""
1094
1095 # type: textblock
1096 #: ../src/guestfs.pod:514
1097 msgid ""
1098 "LVM volume groups on the device can be made visible by calling L</"
1099 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1100 "(s) can now be mounted in the usual way."
1101 msgstr ""
1102
1103 # type: textblock
1104 #: ../src/guestfs.pod:518
1105 msgid ""
1106 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1107 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1108 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1109 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1110 "underlying encrypted block device)."
1111 msgstr ""
1112
1113 # type: =head2
1114 #: ../src/guestfs.pod:525
1115 msgid "INSPECTION"
1116 msgstr ""
1117
1118 # type: textblock
1119 #: ../src/guestfs.pod:527
1120 msgid ""
1121 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1122 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1123 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1124 "frequently used part of this library has been rewritten in C and moved into "
1125 "the core code)."
1126 msgstr ""
1127
1128 # type: textblock
1129 #: ../src/guestfs.pod:533
1130 msgid ""
1131 "Add all disks belonging to the unknown virtual machine and call L</"
1132 "guestfs_launch> in the usual way."
1133 msgstr ""
1134
1135 # type: textblock
1136 #: ../src/guestfs.pod:536
1137 msgid ""
1138 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1139 "and certain heuristics, and returns a list of operating systems that were "
1140 "found.  An empty list means none were found.  A single element is the root "
1141 "filesystem of the operating system.  For dual- or multi-boot guests, "
1142 "multiple roots can be returned, each one corresponding to a separate "
1143 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1144 "world of virtualization, but since this scenario can happen, we have built "
1145 "libguestfs to deal with it.)"
1146 msgstr ""
1147
1148 # type: textblock
1149 #: ../src/guestfs.pod:545
1150 msgid ""
1151 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1152 "to get additional details about that operating system.  For example, call L</"
1153 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1154 "Windows and Linux-based operating systems respectively."
1155 msgstr ""
1156
1157 # type: textblock
1158 #: ../src/guestfs.pod:551
1159 msgid ""
1160 "Un*x-like and Linux-based operating systems usually consist of several "
1161 "filesystems which are mounted at boot time (for example, a separate boot "
1162 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1163 "filesystems correspond to mount points.  Call "
1164 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1165 "hash table like this example:"
1166 msgstr ""
1167
1168 # type: verbatim
1169 #: ../src/guestfs.pod:558
1170 #, no-wrap
1171 msgid ""
1172 " /boot => /dev/sda1\n"
1173 " /     => /dev/vg_guest/lv_root\n"
1174 " /usr  => /dev/vg_guest/lv_usr\n"
1175 "\n"
1176 msgstr ""
1177
1178 # type: textblock
1179 #: ../src/guestfs.pod:562
1180 msgid ""
1181 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1182 "filesystems as suggested."
1183 msgstr ""
1184
1185 # type: textblock
1186 #: ../src/guestfs.pod:565
1187 msgid ""
1188 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1189 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1190 msgstr ""
1191
1192 # type: textblock
1193 #: ../src/guestfs.pod:569
1194 msgid ""
1195 "Inspection currently only works for some common operating systems.  "
1196 "Contributors are welcome to send patches for other operating systems that we "
1197 "currently cannot detect."
1198 msgstr ""
1199
1200 # type: textblock
1201 #: ../src/guestfs.pod:573
1202 msgid ""
1203 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1204 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1205 "encrypted devices."
1206 msgstr ""
1207
1208 # type: textblock
1209 #: ../src/guestfs.pod:577
1210 msgid ""
1211 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1212 "inspection and caches the results in the guest handle.  Subsequent calls to "
1213 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1214 "read the disks.  If you change the content of the guest disks, you can redo "
1215 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1216 "guestfs_inspect_list_applications> works a little differently from the other "
1217 "calls and does read the disks.  See documentation for that function for "
1218 "details)."
1219 msgstr ""
1220
1221 # type: =head2
1222 #: ../src/guestfs.pod:586
1223 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1224 msgstr ""
1225
1226 # type: textblock
1227 #: ../src/guestfs.pod:588
1228 msgid ""
1229 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1230 "ntfs-3g.org/> driver."
1231 msgstr ""
1232
1233 # type: textblock
1234 #: ../src/guestfs.pod:591
1235 msgid ""
1236 "DOS and Windows still use drive letters, and the filesystems are always "
1237 "treated as case insensitive by Windows itself, and therefore you might find "
1238 "a Windows configuration file referring to a path like C<c:\\windows"
1239 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1240 "might be referred to as C</WINDOWS/System32>."
1241 msgstr ""
1242
1243 # type: textblock
1244 #: ../src/guestfs.pod:597
1245 msgid ""
1246 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1247 "libguestfs to read the appropriate Windows Registry and configuration files, "
1248 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1249 "inspector(1)>)."
1250 msgstr ""
1251
1252 # type: textblock
1253 #: ../src/guestfs.pod:602
1254 msgid ""
1255 "Replacing backslash characters with forward slash characters is also outside "
1256 "the scope of libguestfs, but something that you can easily do."
1257 msgstr ""
1258
1259 # type: textblock
1260 #: ../src/guestfs.pod:605
1261 msgid ""
1262 "Where we can help is in resolving the case insensitivity of paths.  For "
1263 "this, call L</guestfs_case_sensitive_path>."
1264 msgstr ""
1265
1266 # type: textblock
1267 #: ../src/guestfs.pod:608
1268 msgid ""
1269 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1270 "files, through the library C<hivex> which is part of the libguestfs project "
1271 "although ships as a separate tarball.  You have to locate and download the "
1272 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1273 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1274 "reg(1)> for more help on this issue."
1275 msgstr ""
1276
1277 # type: =head2
1278 #: ../src/guestfs.pod:616
1279 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1280 msgstr ""
1281
1282 # type: textblock
1283 #: ../src/guestfs.pod:618
1284 msgid ""
1285 "Although we don't want to discourage you from using the C API, we will "
1286 "mention here that the same API is also available in other languages."
1287 msgstr ""
1288
1289 # type: textblock
1290 #: ../src/guestfs.pod:621
1291 msgid ""
1292 "The API is broadly identical in all supported languages.  This means that "
1293 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1294 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1295 "words, a straightforward, predictable isomorphism between each language."
1296 msgstr ""
1297
1298 # type: textblock
1299 #: ../src/guestfs.pod:627
1300 msgid ""
1301 "Error messages are automatically transformed into exceptions if the language "
1302 "supports it."
1303 msgstr ""
1304
1305 # type: textblock
1306 #: ../src/guestfs.pod:630
1307 msgid ""
1308 "We don't try to \"object orientify\" parts of the API in OO languages, "
1309 "although contributors are welcome to write higher level APIs above what we "
1310 "provide in their favourite languages if they wish."
1311 msgstr ""
1312
1313 # type: =item
1314 #: ../src/guestfs.pod:636
1315 msgid "B<C++>"
1316 msgstr ""
1317
1318 # type: textblock
1319 #: ../src/guestfs.pod:638
1320 msgid ""
1321 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1322 "identical to the C API.  C++ classes and exceptions are not used."
1323 msgstr ""
1324
1325 # type: =item
1326 #: ../src/guestfs.pod:642
1327 msgid "B<C#>"
1328 msgstr ""
1329
1330 # type: textblock
1331 #: ../src/guestfs.pod:644
1332 msgid ""
1333 "The C# bindings are highly experimental.  Please read the warnings at the "
1334 "top of C<csharp/Libguestfs.cs>."
1335 msgstr ""
1336
1337 # type: =item
1338 #: ../src/guestfs.pod:647
1339 msgid "B<Haskell>"
1340 msgstr ""
1341
1342 # type: textblock
1343 #: ../src/guestfs.pod:649
1344 msgid ""
1345 "This is the only language binding that is working but incomplete.  Only "
1346 "calls which return simple integers have been bound in Haskell, and we are "
1347 "looking for help to complete this binding."
1348 msgstr ""
1349
1350 # type: =item
1351 #: ../src/guestfs.pod:653
1352 msgid "B<Java>"
1353 msgstr ""
1354
1355 # type: textblock
1356 #: ../src/guestfs.pod:655
1357 msgid ""
1358 "Full documentation is contained in the Javadoc which is distributed with "
1359 "libguestfs."
1360 msgstr ""
1361
1362 # type: =item
1363 #: ../src/guestfs.pod:658
1364 msgid "B<OCaml>"
1365 msgstr ""
1366
1367 # type: textblock
1368 #: ../src/guestfs.pod:660
1369 msgid "For documentation see L<guestfs-ocaml(3)>."
1370 msgstr ""
1371
1372 # type: =item
1373 #: ../src/guestfs.pod:662
1374 msgid "B<Perl>"
1375 msgstr ""
1376
1377 # type: textblock
1378 #: ../src/guestfs.pod:664
1379 msgid "For documentation see L<Sys::Guestfs(3)>."
1380 msgstr ""
1381
1382 # type: =item
1383 #: ../src/guestfs.pod:666
1384 msgid "B<PHP>"
1385 msgstr ""
1386
1387 # type: textblock
1388 #: ../src/guestfs.pod:668
1389 msgid ""
1390 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1391 "the php-libguestfs package for your distribution."
1392 msgstr ""
1393
1394 # type: textblock
1395 #: ../src/guestfs.pod:671
1396 msgid "The PHP binding only works correctly on 64 bit machines."
1397 msgstr ""
1398
1399 # type: =item
1400 #: ../src/guestfs.pod:673
1401 msgid "B<Python>"
1402 msgstr ""
1403
1404 # type: textblock
1405 #: ../src/guestfs.pod:675
1406 msgid "For documentation see L<guestfs-python(3)>."
1407 msgstr ""
1408
1409 # type: =item
1410 #: ../src/guestfs.pod:677
1411 msgid "B<Ruby>"
1412 msgstr ""
1413
1414 # type: textblock
1415 #: ../src/guestfs.pod:679
1416 msgid "For documentation see L<guestfs-ruby(3)>."
1417 msgstr ""
1418
1419 # type: =item
1420 #: ../src/guestfs.pod:681
1421 msgid "B<shell scripts>"
1422 msgstr ""
1423
1424 # type: textblock
1425 #: ../src/guestfs.pod:683
1426 msgid "For documentation see L<guestfish(1)>."
1427 msgstr ""
1428
1429 # type: =head2
1430 #: ../src/guestfs.pod:687
1431 msgid "LIBGUESTFS GOTCHAS"
1432 msgstr ""
1433
1434 # type: textblock
1435 #: ../src/guestfs.pod:689
1436 msgid ""
1437 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1438 "system [...] that works in the way it is documented but is counterintuitive "
1439 "and almost invites mistakes.\""
1440 msgstr ""
1441
1442 # type: textblock
1443 #: ../src/guestfs.pod:693
1444 msgid ""
1445 "Since we developed libguestfs and the associated tools, there are several "
1446 "things we would have designed differently, but are now stuck with for "
1447 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1448 "release, you can expect these to change.  Beware of them."
1449 msgstr ""
1450
1451 # type: =item
1452 #: ../src/guestfs.pod:701
1453 msgid "Autosync / forgetting to sync."
1454 msgstr ""
1455
1456 # type: textblock
1457 #: ../src/guestfs.pod:703
1458 msgid ""
1459 "When modifying a filesystem from C or another language, you B<must> unmount "
1460 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1461 "libguestfs handle.  You can also call:"
1462 msgstr ""
1463
1464 # type: verbatim
1465 #: ../src/guestfs.pod:707
1466 #, no-wrap
1467 msgid ""
1468 " guestfs_set_autosync (g, 1);\n"
1469 "\n"
1470 msgstr ""
1471
1472 # type: textblock
1473 #: ../src/guestfs.pod:709
1474 msgid ""
1475 "to have the unmount/sync done automatically for you when the handle 'g' is "
1476 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1477 msgstr ""
1478
1479 # type: textblock
1480 #: ../src/guestfs.pod:713
1481 msgid ""
1482 "If you forget to do this, then it is entirely possible that your changes "
1483 "won't be written out, or will be partially written, or (very rarely) that "
1484 "you'll get disk corruption."
1485 msgstr ""
1486
1487 # type: textblock
1488 #: ../src/guestfs.pod:717
1489 msgid ""
1490 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1491 "guestfish scripts that forget to sync will work just fine, which can make "
1492 "this very puzzling if you are trying to debug a problem."
1493 msgstr ""
1494
1495 # type: textblock
1496 #: ../src/guestfs.pod:721
1497 msgid ""
1498 "Update: Autosync is enabled by default for all API users starting from "
1499 "libguestfs 1.5.24."
1500 msgstr ""
1501
1502 # type: =item
1503 #: ../src/guestfs.pod:724
1504 msgid "Mount option C<-o sync> should not be the default."
1505 msgstr ""
1506
1507 # type: textblock
1508 #: ../src/guestfs.pod:726
1509 msgid ""
1510 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1511 "However C<-o sync> does not add any reliability benefit, but does have a "
1512 "very large performance impact."
1513 msgstr ""
1514
1515 # type: textblock
1516 #: ../src/guestfs.pod:730
1517 msgid ""
1518 "The work around is to use L</guestfs_mount_options> and set the mount "
1519 "options that you actually want to use."
1520 msgstr ""
1521
1522 # type: =item
1523 #: ../src/guestfs.pod:733
1524 msgid "Read-only should be the default."
1525 msgstr ""
1526
1527 # type: textblock
1528 #: ../src/guestfs.pod:735
1529 msgid ""
1530 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1531 "specify I<--rw> if you want to make changes to the image."
1532 msgstr ""
1533
1534 # type: textblock
1535 #: ../src/guestfs.pod:738
1536 msgid "This would reduce the potential to corrupt live VM images."
1537 msgstr ""
1538
1539 # type: textblock
1540 #: ../src/guestfs.pod:740
1541 msgid ""
1542 "Note that many filesystems change the disk when you just mount and unmount, "
1543 "even if you didn't perform any writes.  You need to use L</"
1544 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1545 msgstr ""
1546
1547 # type: =item
1548 #: ../src/guestfs.pod:744
1549 msgid "guestfish command line is hard to use."
1550 msgstr ""
1551
1552 # type: textblock
1553 #: ../src/guestfs.pod:746
1554 msgid ""
1555 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1556 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1557 "exist, so it fails.  In earlier versions of guestfish the error message was "
1558 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1559 "we should have used C<guestfish -c command> to run commands."
1560 msgstr ""
1561
1562 # type: =item
1563 #: ../src/guestfs.pod:753
1564 msgid "guestfish megabyte modifiers don't work right on all commands"
1565 msgstr ""
1566
1567 # type: textblock
1568 #: ../src/guestfs.pod:755
1569 msgid ""
1570 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1571 "other modifiers).  What guestfish actually does is to multiply the number "
1572 "part by the modifier part and pass the result to the C API.  However this "
1573 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1574 "expecting some other unit (eg. megabytes)."
1575 msgstr ""
1576
1577 # type: textblock
1578 #: ../src/guestfs.pod:762
1579 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1580 msgstr ""
1581
1582 # type: verbatim
1583 #: ../src/guestfs.pod:764
1584 #, no-wrap
1585 msgid ""
1586 " lvcreate LV VG 100M\n"
1587 "\n"
1588 msgstr ""
1589
1590 # type: textblock
1591 #: ../src/guestfs.pod:766
1592 msgid ""
1593 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1594 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1595 "megabytes * megabytes) logical volume.  The error message you get from this "
1596 "is also a little obscure."
1597 msgstr ""
1598
1599 # type: textblock
1600 #: ../src/guestfs.pod:771
1601 msgid ""
1602 "This could be fixed in the generator by specially marking parameters and "
1603 "return values which take bytes or other units."
1604 msgstr ""
1605
1606 # type: =item
1607 #: ../src/guestfs.pod:774
1608 msgid "Ambiguity between devices and paths"
1609 msgstr ""
1610
1611 # type: textblock
1612 #: ../src/guestfs.pod:776
1613 msgid ""
1614 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1615 "sdb2>) and a similar pathname.  A file might just happen to be called "
1616 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1617 msgstr ""
1618
1619 # type: textblock
1620 #: ../src/guestfs.pod:781
1621 msgid ""
1622 "In the current API we usually resolve this ambiguity by having two separate "
1623 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1624 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1625 "detecting if the path supplied begins with C</dev/>."
1626 msgstr ""
1627
1628 # type: textblock
1629 #: ../src/guestfs.pod:787
1630 msgid ""
1631 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1632 "make paths/devices into structured names.  One way to do this would be to "
1633 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1634 "aspect of grub.  Another way would be to use a structured type, equivalent "
1635 "to this OCaml type:"
1636 msgstr ""
1637
1638 # type: verbatim
1639 #: ../src/guestfs.pod:793
1640 #, no-wrap
1641 msgid ""
1642 " type path = Path of string | Device of int | Partition of int * int\n"
1643 "\n"
1644 msgstr ""
1645
1646 # type: textblock
1647 #: ../src/guestfs.pod:795
1648 msgid "which would allow you to pass arguments like:"
1649 msgstr ""
1650
1651 # type: verbatim
1652 #: ../src/guestfs.pod:797
1653 #, no-wrap
1654 msgid ""
1655 " Path \"/foo/bar\"\n"
1656 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1657 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1658 " Path \"/dev/sdb2\"    (* not a device *)\n"
1659 "\n"
1660 msgstr ""
1661
1662 # type: textblock
1663 #: ../src/guestfs.pod:802
1664 msgid ""
1665 "As you can see there are still problems to resolve even with this "
1666 "representation.  Also consider how it might work in guestfish."
1667 msgstr ""
1668
1669 # type: =head2
1670 #: ../src/guestfs.pod:807
1671 msgid "PROTOCOL LIMITS"
1672 msgstr ""
1673
1674 # type: textblock
1675 #: ../src/guestfs.pod:809
1676 msgid ""
1677 "Internally libguestfs uses a message-based protocol to pass API calls and "
1678 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1679 "plenty more detail about this).  The maximum message size used by the "
1680 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1681 "aware of this limit.  The API calls which may be affected are individually "
1682 "documented, with a link back to this section of the documentation."
1683 msgstr ""
1684
1685 # type: textblock
1686 #: ../src/guestfs.pod:817
1687 msgid ""
1688 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1689 "a simple string.  Because this string is at some point internally encoded as "
1690 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1691 "the requested file is larger than this then you will get an error."
1692 msgstr ""
1693
1694 # type: textblock
1695 #: ../src/guestfs.pod:823
1696 msgid ""
1697 "In order to transfer large files into and out of the guest filesystem, you "
1698 "need to use particular calls that support this.  The sections L</UPLOADING> "
1699 "and L</DOWNLOADING> document how to do this."
1700 msgstr ""
1701
1702 # type: textblock
1703 #: ../src/guestfs.pod:827
1704 msgid ""
1705 "You might also consider mounting the disk image using our FUSE filesystem "
1706 "support (L<guestmount(1)>)."
1707 msgstr ""
1708
1709 # type: =head2
1710 #: ../src/guestfs.pod:830
1711 msgid "KEYS AND PASSPHRASES"
1712 msgstr ""
1713
1714 # type: textblock
1715 #: ../src/guestfs.pod:832
1716 msgid ""
1717 "Certain libguestfs calls take a parameter that contains sensitive key "
1718 "material, passed in as a C string."
1719 msgstr ""
1720
1721 # type: textblock
1722 #: ../src/guestfs.pod:835
1723 msgid ""
1724 "In the future we would hope to change the libguestfs implementation so that "
1725 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1726 "swap.  However this is I<not> done at the moment, because of the complexity "
1727 "of such an implementation."
1728 msgstr ""
1729
1730 # type: textblock
1731 #: ../src/guestfs.pod:840
1732 msgid ""
1733 "Therefore you should be aware that any key parameter you pass to libguestfs "
1734 "might end up being written out to the swap partition.  If this is a concern, "
1735 "scrub the swap partition or don't use libguestfs on encrypted devices."
1736 msgstr ""
1737
1738 # type: =head1
1739 #: ../src/guestfs.pod:845
1740 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1741 msgstr ""
1742
1743 # type: textblock
1744 #: ../src/guestfs.pod:847
1745 msgid ""
1746 "All high-level libguestfs actions are synchronous.  If you want to use "
1747 "libguestfs asynchronously then you must create a thread."
1748 msgstr ""
1749
1750 # type: textblock
1751 #: ../src/guestfs.pod:850
1752 msgid ""
1753 "Only use the handle from a single thread.  Either use the handle exclusively "
1754 "from one thread, or provide your own mutex so that two threads cannot issue "
1755 "calls on the same handle at the same time."
1756 msgstr ""
1757
1758 # type: textblock
1759 #: ../src/guestfs.pod:854
1760 msgid ""
1761 "See the graphical program guestfs-browser for one possible architecture for "
1762 "multithreaded programs using libvirt and libguestfs."
1763 msgstr ""
1764
1765 # type: =head1
1766 #: ../src/guestfs.pod:857
1767 msgid "PATH"
1768 msgstr ""
1769
1770 # type: textblock
1771 #: ../src/guestfs.pod:859
1772 msgid ""
1773 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1774 "internal path."
1775 msgstr ""
1776
1777 # type: textblock
1778 #: ../src/guestfs.pod:862
1779 msgid ""
1780 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1781 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1782 msgstr ""
1783
1784 # type: textblock
1785 #: ../src/guestfs.pod:865
1786 msgid ""
1787 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1788 "to change the directories that libguestfs will search in.  The value is a "
1789 "colon-separated list of paths.  The current directory is I<not> searched "
1790 "unless the path contains an empty element or C<.>.  For example "
1791 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1792 "then C</usr/lib/guestfs>."
1793 msgstr ""
1794
1795 # type: =head1
1796 #: ../src/guestfs.pod:872
1797 msgid "QEMU WRAPPERS"
1798 msgstr ""
1799
1800 # type: textblock
1801 #: ../src/guestfs.pod:874
1802 msgid ""
1803 "If you want to compile your own qemu, run qemu from a non-standard location, "
1804 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1805 "around qemu."
1806 msgstr ""
1807
1808 # type: textblock
1809 #: ../src/guestfs.pod:878
1810 msgid ""
1811 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1812 "last command in the shell script (so that qemu replaces the shell and "
1813 "becomes the direct child of the libguestfs-using program).  If you don't do "
1814 "this, then the qemu process won't be cleaned up correctly."
1815 msgstr ""
1816
1817 # type: textblock
1818 #: ../src/guestfs.pod:883
1819 msgid ""
1820 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1821 "source:"
1822 msgstr ""
1823
1824 # type: verbatim
1825 #: ../src/guestfs.pod:886
1826 #, no-wrap
1827 msgid ""
1828 " #!/bin/sh -\n"
1829 " qemudir=/home/rjones/d/qemu\n"
1830 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1831 "\n"
1832 msgstr ""
1833
1834 # type: textblock
1835 #: ../src/guestfs.pod:890
1836 msgid ""
1837 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1838 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1839 "example:"
1840 msgstr ""
1841
1842 # type: verbatim
1843 #: ../src/guestfs.pod:894
1844 #, no-wrap
1845 msgid ""
1846 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1847 "\n"
1848 msgstr ""
1849
1850 # type: textblock
1851 #: ../src/guestfs.pod:896
1852 msgid ""
1853 "Note that libguestfs also calls qemu with the -help and -version options in "
1854 "order to determine features."
1855 msgstr ""
1856
1857 # type: =head2
1858 #: ../src/guestfs.pod:899
1859 msgid "ABI GUARANTEE"
1860 msgstr ""
1861
1862 # type: textblock
1863 #: ../src/guestfs.pod:901
1864 msgid ""
1865 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1866 "actions as outlined in this section.  Although we will deprecate some "
1867 "actions, for example if they get replaced by newer calls, we will keep the "
1868 "old actions forever.  This allows you the developer to program in confidence "
1869 "against the libguestfs API."
1870 msgstr ""
1871
1872 # type: =head1
1873 #: ../src/guestfs.pod:907
1874 msgid "BLOCK DEVICE NAMING"
1875 msgstr ""
1876
1877 # type: textblock
1878 #: ../src/guestfs.pod:909
1879 msgid ""
1880 "In the kernel there is now quite a profusion of schemata for naming block "
1881 "devices (in this context, by I<block device> I mean a physical or virtual "
1882 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1883 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1884 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1885 "for the old IDE driver (particularly for SATA devices) those devices also "
1886 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1887 "paravirtualized drivers.  This has created several different naming systems, "
1888 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
1889 msgstr ""
1890
1891 # type: textblock
1892 #: ../src/guestfs.pod:921
1893 msgid ""
1894 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1895 "Linux kernel to access block devices.  We can run a variety of appliances "
1896 "based on a variety of Linux kernels."
1897 msgstr ""
1898
1899 # type: textblock
1900 #: ../src/guestfs.pod:925
1901 msgid ""
1902 "This causes a problem for libguestfs because many API calls use device or "
1903 "partition names.  Working scripts and the recipe (example) scripts that we "
1904 "make available over the internet could fail if the naming scheme changes."
1905 msgstr ""
1906
1907 # type: textblock
1908 #: ../src/guestfs.pod:930
1909 msgid ""
1910 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1911 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1912 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1913 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1914 msgstr ""
1915
1916 # type: textblock
1917 #: ../src/guestfs.pod:936
1918 msgid ""
1919 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1920 "L</guestfs_list_partitions> and similar calls return the true names of the "
1921 "devices and partitions as known to the appliance."
1922 msgstr ""
1923
1924 # type: =head2
1925 #: ../src/guestfs.pod:941
1926 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1927 msgstr ""
1928
1929 # type: textblock
1930 #: ../src/guestfs.pod:943
1931 msgid ""
1932 "Usually this translation is transparent.  However in some (very rare)  cases "
1933 "you may need to know the exact algorithm.  Such cases include where you use "
1934 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
1935 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
1936 msgstr ""
1937
1938 # type: textblock
1939 #: ../src/guestfs.pod:949
1940 msgid ""
1941 "The algorithm is applied only to I<parameters> which are known to be either "
1942 "device or partition names.  Return values from functions such as L</"
1943 "guestfs_list_devices> are never changed."
1944 msgstr ""
1945
1946 # type: textblock
1947 #: ../src/guestfs.pod:957
1948 msgid "Is the string a parameter which is a device or partition name?"
1949 msgstr ""
1950
1951 # type: textblock
1952 #: ../src/guestfs.pod:961
1953 msgid "Does the string begin with C</dev/sd>?"
1954 msgstr ""
1955
1956 # type: textblock
1957 #: ../src/guestfs.pod:965
1958 msgid ""
1959 "Does the named device exist? If so, we use that device.  However if I<not> "
1960 "then we continue with this algorithm."
1961 msgstr ""
1962
1963 # type: textblock
1964 #: ../src/guestfs.pod:970
1965 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1966 msgstr ""
1967
1968 # type: textblock
1969 #: ../src/guestfs.pod:972
1970 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1971 msgstr ""
1972
1973 # type: textblock
1974 #: ../src/guestfs.pod:974
1975 msgid "If that named device exists, use it.  If not, continue."
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:978
1980 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:980
1985 msgid "If that named device exists, use it.  If not, return an error."
1986 msgstr ""
1987
1988 # type: =head3
1989 #: ../src/guestfs.pod:984
1990 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1991 msgstr ""
1992
1993 # type: textblock
1994 #: ../src/guestfs.pod:986
1995 msgid ""
1996 "Although the standard naming scheme and automatic translation is useful for "
1997 "simple programs and guestfish scripts, for larger programs it is best not to "
1998 "rely on this mechanism."
1999 msgstr ""
2000
2001 # type: textblock
2002 #: ../src/guestfs.pod:990
2003 msgid ""
2004 "Where possible for maximum future portability programs using libguestfs "
2005 "should use these future-proof techniques:"
2006 msgstr ""
2007
2008 # type: textblock
2009 #: ../src/guestfs.pod:997
2010 msgid ""
2011 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2012 "device names, and then use those names directly."
2013 msgstr ""
2014
2015 # type: textblock
2016 #: ../src/guestfs.pod:1000
2017 msgid ""
2018 "Since those device names exist by definition, they will never be translated."
2019 msgstr ""
2020
2021 # type: textblock
2022 #: ../src/guestfs.pod:1005
2023 msgid ""
2024 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2025 "filesystem labels."
2026 msgstr ""
2027
2028 # type: =head1
2029 #: ../src/guestfs.pod:1010
2030 msgid "SECURITY"
2031 msgstr ""
2032
2033 # type: textblock
2034 #: ../src/guestfs.pod:1012
2035 msgid ""
2036 "This section discusses security implications of using libguestfs, "
2037 "particularly with untrusted or malicious guests or disk images."
2038 msgstr ""
2039
2040 # type: =head2
2041 #: ../src/guestfs.pod:1015
2042 msgid "GENERAL SECURITY CONSIDERATIONS"
2043 msgstr ""
2044
2045 # type: textblock
2046 #: ../src/guestfs.pod:1017
2047 msgid ""
2048 "Be careful with any files or data that you download from a guest (by "
2049 "\"download\" we mean not just the L</guestfs_download> command but any "
2050 "command that reads files, filenames, directories or anything else from a "
2051 "disk image).  An attacker could manipulate the data to fool your program "
2052 "into doing the wrong thing.  Consider cases such as:"
2053 msgstr ""
2054
2055 # type: textblock
2056 #: ../src/guestfs.pod:1027
2057 msgid "the data (file etc) not being present"
2058 msgstr ""
2059
2060 # type: textblock
2061 #: ../src/guestfs.pod:1031
2062 msgid "being present but empty"
2063 msgstr ""
2064
2065 # type: textblock
2066 #: ../src/guestfs.pod:1035
2067 msgid "being much larger than normal"
2068 msgstr ""
2069
2070 # type: textblock
2071 #: ../src/guestfs.pod:1039
2072 msgid "containing arbitrary 8 bit data"
2073 msgstr ""
2074
2075 # type: textblock
2076 #: ../src/guestfs.pod:1043
2077 msgid "being in an unexpected character encoding"
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:1047
2082 msgid "containing homoglyphs."
2083 msgstr ""
2084
2085 # type: =head2
2086 #: ../src/guestfs.pod:1051
2087 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:1053
2092 msgid ""
2093 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2094 "(VFS) module can sometimes be escalated into exploits by deliberately "
2095 "creating a malicious, malformed filesystem.  These exploits are very severe "
2096 "for two reasons.  Firstly there are very many filesystem drivers in the "
2097 "kernel, and many of them are infrequently used and not much developer "
2098 "attention has been paid to the code.  Linux userspace helps potential "
2099 "crackers by detecting the filesystem type and automatically choosing the "
2100 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2101 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2102 "exploit (worse in some ways), giving immediate and total access to the "
2103 "system right down to the hardware level."
2104 msgstr ""
2105
2106 # type: textblock
2107 #: ../src/guestfs.pod:1066
2108 msgid ""
2109 "That explains why you should never mount a filesystem from an untrusted "
2110 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2111 "inside a qemu virtual machine, usually running as a non-root user.  The "
2112 "attacker would need to write a filesystem which first exploited the kernel, "
2113 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2114 "the libguestfs protocol, and finally to be as serious as the host kernel "
2115 "exploit it would need to escalate its privileges to root.  This multi-step "
2116 "escalation, performed by a static piece of data, is thought to be extremely "
2117 "hard to do, although we never say 'never' about security issues."
2118 msgstr ""
2119
2120 # type: textblock
2121 #: ../src/guestfs.pod:1077
2122 msgid ""
2123 "In any case callers can reduce the attack surface by forcing the filesystem "
2124 "type when mounting (use L</guestfs_mount_vfs>)."
2125 msgstr ""
2126
2127 # type: =head2
2128 #: ../src/guestfs.pod:1080
2129 msgid "PROTOCOL SECURITY"
2130 msgstr ""
2131
2132 # type: textblock
2133 #: ../src/guestfs.pod:1082
2134 msgid ""
2135 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2136 "defined upper message size.  However a program that uses libguestfs must "
2137 "also take care - for example you can write a program that downloads a binary "
2138 "from a disk image and executes it locally, and no amount of protocol "
2139 "security will save you from the consequences."
2140 msgstr ""
2141
2142 # type: =head2
2143 #: ../src/guestfs.pod:1088
2144 msgid "INSPECTION SECURITY"
2145 msgstr ""
2146
2147 # type: textblock
2148 #: ../src/guestfs.pod:1090
2149 msgid ""
2150 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2151 "directly from the guest, and these could contain any 8 bit data.  Callers "
2152 "should be careful to escape these before printing them to a structured file "
2153 "(for example, use HTML escaping if creating a web page)."
2154 msgstr ""
2155
2156 # type: textblock
2157 #: ../src/guestfs.pod:1096
2158 msgid ""
2159 "Guest configuration may be altered in unusual ways by the administrator of "
2160 "the virtual machine, and may not reflect reality (particularly for untrusted "
2161 "or actively malicious guests).  For example we parse the hostname from "
2162 "configuration files like C</etc/sysconfig/network> that we find in the "
2163 "guest, but the guest administrator can easily manipulate these files to "
2164 "provide the wrong hostname."
2165 msgstr ""
2166
2167 # type: textblock
2168 #: ../src/guestfs.pod:1104
2169 msgid ""
2170 "The inspection API parses guest configuration using two external libraries: "
2171 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2172 "designed to be robust in the face of malicious data, although denial of "
2173 "service attacks are still possible, for example with oversized configuration "
2174 "files."
2175 msgstr ""
2176
2177 # type: =head2
2178 #: ../src/guestfs.pod:1110
2179 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2180 msgstr ""
2181
2182 # type: textblock
2183 #: ../src/guestfs.pod:1112
2184 msgid ""
2185 "Be very cautious about running commands from the guest.  By running a "
2186 "command in the guest, you are giving CPU time to a binary that you do not "
2187 "control, under the same user account as the library, albeit wrapped in qemu "
2188 "virtualization.  More information and alternatives can be found in the "
2189 "section L</RUNNING COMMANDS>."
2190 msgstr ""
2191
2192 # type: =head2
2193 #: ../src/guestfs.pod:1118
2194 msgid "CVE-2010-3851"
2195 msgstr ""
2196
2197 # type: textblock
2198 #: ../src/guestfs.pod:1120
2199 msgid "https://bugzilla.redhat.com/642934"
2200 msgstr ""
2201
2202 # type: textblock
2203 #: ../src/guestfs.pod:1122
2204 msgid ""
2205 "This security bug concerns the automatic disk format detection that qemu "
2206 "does on disk images."
2207 msgstr ""
2208
2209 # type: textblock
2210 #: ../src/guestfs.pod:1125
2211 msgid ""
2212 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2213 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2214 "for one of the known headers, and if none is found then assuming the disk "
2215 "image must be raw."
2216 msgstr ""
2217
2218 # type: textblock
2219 #: ../src/guestfs.pod:1130
2220 msgid ""
2221 "This allows a guest which has been given a raw disk image to write some "
2222 "other header.  At next boot (or when the disk image is accessed by "
2223 "libguestfs) qemu would do autodetection and think the disk image format was, "
2224 "say, qcow2 based on the header written by the guest."
2225 msgstr ""
2226
2227 # type: textblock
2228 #: ../src/guestfs.pod:1135
2229 msgid ""
2230 "This in itself would not be a problem, but qcow2 offers many features, one "
2231 "of which is to allow a disk image to refer to another image (called the "
2232 "\"backing disk\").  It does this by placing the path to the backing disk "
2233 "into the qcow2 header.  This path is not validated and could point to any "
2234 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2235 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2236 "control of the attacker."
2237 msgstr ""
2238
2239 # type: textblock
2240 #: ../src/guestfs.pod:1143
2241 msgid ""
2242 "In libguestfs this is rather hard to exploit except under two circumstances:"
2243 msgstr ""
2244
2245 # type: textblock
2246 #: ../src/guestfs.pod:1150
2247 msgid "You have enabled the network or have opened the disk in write mode."
2248 msgstr ""
2249
2250 # type: textblock
2251 #: ../src/guestfs.pod:1154
2252 msgid ""
2253 "You are also running untrusted code from the guest (see L</RUNNING "
2254 "COMMANDS>)."
2255 msgstr ""
2256
2257 # type: textblock
2258 #: ../src/guestfs.pod:1159
2259 msgid ""
2260 "The way to avoid this is to specify the expected disk format when adding "
2261 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2262 "should always do this if the disk is raw format, and it's a good idea for "
2263 "other cases too."
2264 msgstr ""
2265
2266 # type: textblock
2267 #: ../src/guestfs.pod:1164
2268 msgid ""
2269 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2270 "format is fetched from libvirt and passed through."
2271 msgstr ""
2272
2273 # type: textblock
2274 #: ../src/guestfs.pod:1167
2275 msgid ""
2276 "For libguestfs tools, use the I<--format> command line parameter as "
2277 "appropriate."
2278 msgstr ""
2279
2280 # type: =head1
2281 #: ../src/guestfs.pod:1170
2282 msgid "CONNECTION MANAGEMENT"
2283 msgstr ""
2284
2285 # type: =head2
2286 #: ../src/guestfs.pod:1172
2287 msgid "guestfs_h *"
2288 msgstr ""
2289
2290 # type: textblock
2291 #: ../src/guestfs.pod:1174
2292 msgid ""
2293 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2294 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2295 "handle and release all resources used."
2296 msgstr ""
2297
2298 # type: textblock
2299 #: ../src/guestfs.pod:1178
2300 msgid ""
2301 "For information on using multiple handles and threads, see the section L</"
2302 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2303 msgstr ""
2304
2305 # type: =head2
2306 #: ../src/guestfs.pod:1181
2307 msgid "guestfs_create"
2308 msgstr ""
2309
2310 # type: verbatim
2311 #: ../src/guestfs.pod:1183
2312 #, no-wrap
2313 msgid ""
2314 " guestfs_h *guestfs_create (void);\n"
2315 "\n"
2316 msgstr ""
2317
2318 # type: textblock
2319 #: ../src/guestfs.pod:1185
2320 msgid "Create a connection handle."
2321 msgstr ""
2322
2323 # type: textblock
2324 #: ../src/guestfs.pod:1187
2325 msgid ""
2326 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2327 "on the handle at least once."
2328 msgstr ""
2329
2330 # type: textblock
2331 #: ../src/guestfs.pod:1190
2332 msgid ""
2333 "This function returns a non-NULL pointer to a handle on success or NULL on "
2334 "error."
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1193
2339 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2340 msgstr ""
2341
2342 # type: textblock
2343 #: ../src/guestfs.pod:1195
2344 msgid ""
2345 "You may also want to configure error handling for the handle.  See L</ERROR "
2346 "HANDLING> section below."
2347 msgstr ""
2348
2349 # type: =head2
2350 #: ../src/guestfs.pod:1198
2351 msgid "guestfs_close"
2352 msgstr ""
2353
2354 # type: verbatim
2355 #: ../src/guestfs.pod:1200
2356 #, no-wrap
2357 msgid ""
2358 " void guestfs_close (guestfs_h *g);\n"
2359 "\n"
2360 msgstr ""
2361
2362 # type: textblock
2363 #: ../src/guestfs.pod:1202
2364 msgid "This closes the connection handle and frees up all resources used."
2365 msgstr ""
2366
2367 # type: =head1
2368 #: ../src/guestfs.pod:1204
2369 msgid "ERROR HANDLING"
2370 msgstr ""
2371
2372 # type: textblock
2373 #: ../src/guestfs.pod:1206
2374 msgid ""
2375 "API functions can return errors.  For example, almost all functions that "
2376 "return C<int> will return C<-1> to indicate an error."
2377 msgstr ""
2378
2379 # type: textblock
2380 #: ../src/guestfs.pod:1209
2381 msgid ""
2382 "Additional information is available for errors: an error message string and "
2383 "optionally an error number (errno) if the thing that failed was a system "
2384 "call."
2385 msgstr ""
2386
2387 # type: textblock
2388 #: ../src/guestfs.pod:1213
2389 msgid ""
2390 "You can get at the additional information about the last error on the handle "
2391 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2392 "up an error handler with L</guestfs_set_error_handler>."
2393 msgstr ""
2394
2395 # type: textblock
2396 #: ../src/guestfs.pod:1218
2397 msgid ""
2398 "When the handle is created, a default error handler is installed which "
2399 "prints the error message string to C<stderr>.  For small short-running "
2400 "command line programs it is sufficient to do:"
2401 msgstr ""
2402
2403 # type: verbatim
2404 #: ../src/guestfs.pod:1222
2405 #, no-wrap
2406 msgid ""
2407 " if (guestfs_launch (g) == -1)\n"
2408 "   exit (EXIT_FAILURE);\n"
2409 "\n"
2410 msgstr ""
2411
2412 # type: textblock
2413 #: ../src/guestfs.pod:1225
2414 msgid ""
2415 "since the default error handler will ensure that an error message has been "
2416 "printed to C<stderr> before the program exits."
2417 msgstr ""
2418
2419 # type: textblock
2420 #: ../src/guestfs.pod:1228
2421 msgid ""
2422 "For other programs the caller will almost certainly want to install an "
2423 "alternate error handler or do error handling in-line like this:"
2424 msgstr ""
2425
2426 # type: verbatim
2427 #: ../src/guestfs.pod:1231
2428 #, no-wrap
2429 msgid ""
2430 " g = guestfs_create ();\n"
2431 " \n"
2432 msgstr ""
2433
2434 # type: verbatim
2435 #: ../src/guestfs.pod:1233
2436 #, no-wrap
2437 msgid ""
2438 " /* This disables the default behaviour of printing errors\n"
2439 "    on stderr. */\n"
2440 " guestfs_set_error_handler (g, NULL, NULL);\n"
2441 " \n"
2442 msgstr ""
2443
2444 # type: verbatim
2445 #: ../src/guestfs.pod:1237
2446 #, no-wrap
2447 msgid ""
2448 " if (guestfs_launch (g) == -1) {\n"
2449 "   /* Examine the error message and print it etc. */\n"
2450 "   char *msg = guestfs_last_error (g);\n"
2451 "   int errnum = guestfs_last_errno (g);\n"
2452 "   fprintf (stderr, \"%s\\n\", msg);\n"
2453 "   /* ... */\n"
2454 "  }\n"
2455 "\n"
2456 msgstr ""
2457
2458 # type: textblock
2459 #: ../src/guestfs.pod:1245
2460 msgid ""
2461 "Out of memory errors are handled differently.  The default action is to call "
2462 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2463 "guestfs_set_out_of_memory_handler>."
2464 msgstr ""
2465
2466 # type: textblock
2467 #: ../src/guestfs.pod:1249
2468 msgid ""
2469 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2470 "because there is no handle if this happens there is no way to get additional "
2471 "error information.  However L</guestfs_create> is supposed to be a "
2472 "lightweight operation which can only fail because of insufficient memory (it "
2473 "returns NULL in this case)."
2474 msgstr ""
2475
2476 # type: =head2
2477 #: ../src/guestfs.pod:1255
2478 msgid "guestfs_last_error"
2479 msgstr ""
2480
2481 # type: verbatim
2482 #: ../src/guestfs.pod:1257
2483 #, no-wrap
2484 msgid ""
2485 " const char *guestfs_last_error (guestfs_h *g);\n"
2486 "\n"
2487 msgstr ""
2488
2489 # type: textblock
2490 #: ../src/guestfs.pod:1259
2491 msgid ""
2492 "This returns the last error message that happened on C<g>.  If there has not "
2493 "been an error since the handle was created, then this returns C<NULL>."
2494 msgstr ""
2495
2496 # type: textblock
2497 #: ../src/guestfs.pod:1263
2498 msgid ""
2499 "The lifetime of the returned string is until the next error occurs, or L</"
2500 "guestfs_close> is called."
2501 msgstr ""
2502
2503 # type: =head2
2504 #: ../src/guestfs.pod:1266
2505 msgid "guestfs_last_errno"
2506 msgstr ""
2507
2508 # type: verbatim
2509 #: ../src/guestfs.pod:1268
2510 #, no-wrap
2511 msgid ""
2512 " int guestfs_last_errno (guestfs_h *g);\n"
2513 "\n"
2514 msgstr ""
2515
2516 # type: textblock
2517 #: ../src/guestfs.pod:1270
2518 msgid "This returns the last error number (errno) that happened on C<g>."
2519 msgstr ""
2520
2521 # type: textblock
2522 #: ../src/guestfs.pod:1272
2523 msgid "If successful, an errno integer not equal to zero is returned."
2524 msgstr ""
2525
2526 # type: textblock
2527 #: ../src/guestfs.pod:1274
2528 msgid ""
2529 "If no error, this returns 0.  This call can return 0 in three situations:"
2530 msgstr ""
2531
2532 # type: textblock
2533 #: ../src/guestfs.pod:1281
2534 msgid "There has not been any error on the handle."
2535 msgstr ""
2536
2537 # type: textblock
2538 #: ../src/guestfs.pod:1285
2539 msgid ""
2540 "There has been an error but the errno was meaningless.  This corresponds to "
2541 "the case where the error did not come from a failed system call, but for "
2542 "some other reason."
2543 msgstr ""
2544
2545 # type: textblock
2546 #: ../src/guestfs.pod:1291
2547 msgid ""
2548 "There was an error from a failed system call, but for some reason the errno "
2549 "was not captured and returned.  This usually indicates a bug in libguestfs."
2550 msgstr ""
2551
2552 # type: textblock
2553 #: ../src/guestfs.pod:1297
2554 msgid ""
2555 "Libguestfs tries to convert the errno from inside the applicance into a "
2556 "corresponding errno for the caller (not entirely trivial: the appliance "
2557 "might be running a completely different operating system from the library "
2558 "and error numbers are not standardized across Un*xen).  If this could not be "
2559 "done, then the error is translated to C<EINVAL>.  In practice this should "
2560 "only happen in very rare circumstances."
2561 msgstr ""
2562
2563 # type: =head2
2564 #: ../src/guestfs.pod:1305
2565 msgid "guestfs_set_error_handler"
2566 msgstr ""
2567
2568 # type: verbatim
2569 #: ../src/guestfs.pod:1307
2570 #, no-wrap
2571 msgid ""
2572 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2573 "                                           void *opaque,\n"
2574 "                                           const char *msg);\n"
2575 " void guestfs_set_error_handler (guestfs_h *g,\n"
2576 "                                 guestfs_error_handler_cb cb,\n"
2577 "                                 void *opaque);\n"
2578 "\n"
2579 msgstr ""
2580
2581 # type: textblock
2582 #: ../src/guestfs.pod:1314
2583 msgid ""
2584 "The callback C<cb> will be called if there is an error.  The parameters "
2585 "passed to the callback are an opaque data pointer and the error message "
2586 "string."
2587 msgstr ""
2588
2589 # type: textblock
2590 #: ../src/guestfs.pod:1318
2591 msgid ""
2592 "C<errno> is not passed to the callback.  To get that the callback must call "
2593 "L</guestfs_last_errno>."
2594 msgstr ""
2595
2596 # type: textblock
2597 #: ../src/guestfs.pod:1321
2598 msgid ""
2599 "Note that the message string C<msg> is freed as soon as the callback "
2600 "function returns, so if you want to stash it somewhere you must make your "
2601 "own copy."
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1325
2606 msgid "The default handler prints messages on C<stderr>."
2607 msgstr ""
2608
2609 # type: textblock
2610 #: ../src/guestfs.pod:1327
2611 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2612 msgstr ""
2613
2614 # type: =head2
2615 #: ../src/guestfs.pod:1329
2616 msgid "guestfs_get_error_handler"
2617 msgstr ""
2618
2619 # type: verbatim
2620 #: ../src/guestfs.pod:1331
2621 #, no-wrap
2622 msgid ""
2623 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2624 "                                                     void **opaque_rtn);\n"
2625 "\n"
2626 msgstr ""
2627
2628 # type: textblock
2629 #: ../src/guestfs.pod:1334
2630 msgid "Returns the current error handler callback."
2631 msgstr ""
2632
2633 # type: =head2
2634 #: ../src/guestfs.pod:1336
2635 msgid "guestfs_set_out_of_memory_handler"
2636 msgstr ""
2637
2638 # type: verbatim
2639 #: ../src/guestfs.pod:1338
2640 #, no-wrap
2641 msgid ""
2642 " typedef void (*guestfs_abort_cb) (void);\n"
2643 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2644 "                                        guestfs_abort_cb);\n"
2645 "\n"
2646 msgstr ""
2647
2648 # type: textblock
2649 #: ../src/guestfs.pod:1342
2650 msgid ""
2651 "The callback C<cb> will be called if there is an out of memory situation.  "
2652 "I<Note this callback must not return>."
2653 msgstr ""
2654
2655 # type: textblock
2656 #: ../src/guestfs.pod:1345
2657 msgid "The default is to call L<abort(3)>."
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1347
2662 msgid ""
2663 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2664 msgstr ""
2665
2666 # type: =head2
2667 #: ../src/guestfs.pod:1350
2668 msgid "guestfs_get_out_of_memory_handler"
2669 msgstr ""
2670
2671 # type: verbatim
2672 #: ../src/guestfs.pod:1352
2673 #, no-wrap
2674 msgid ""
2675 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2676 "\n"
2677 msgstr ""
2678
2679 # type: textblock
2680 #: ../src/guestfs.pod:1354
2681 msgid "This returns the current out of memory handler."
2682 msgstr ""
2683
2684 # type: =head1
2685 #: ../src/guestfs.pod:1356
2686 msgid "API CALLS"
2687 msgstr ""
2688
2689 # type: textblock
2690 #: ../src/guestfs.pod:1358 ../fish/guestfish.pod:908
2691 msgid "@ACTIONS@"
2692 msgstr ""
2693
2694 # type: =head1
2695 #: ../src/guestfs.pod:1360
2696 msgid "STRUCTURES"
2697 msgstr ""
2698
2699 # type: textblock
2700 #: ../src/guestfs.pod:1362
2701 msgid "@STRUCTS@"
2702 msgstr ""
2703
2704 # type: =head1
2705 #: ../src/guestfs.pod:1364
2706 msgid "AVAILABILITY"
2707 msgstr ""
2708
2709 # type: =head2
2710 #: ../src/guestfs.pod:1366
2711 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2712 msgstr ""
2713
2714 # type: textblock
2715 #: ../src/guestfs.pod:1368
2716 msgid ""
2717 "Using L</guestfs_available> you can test availability of the following "
2718 "groups of functions.  This test queries the appliance to see if the "
2719 "appliance you are currently using supports the functionality."
2720 msgstr ""
2721
2722 # type: textblock
2723 #: ../src/guestfs.pod:1373
2724 msgid "@AVAILABILITY@"
2725 msgstr ""
2726
2727 # type: =head2
2728 #: ../src/guestfs.pod:1375
2729 msgid "GUESTFISH supported COMMAND"
2730 msgstr ""
2731
2732 # type: textblock
2733 #: ../src/guestfs.pod:1377
2734 msgid ""
2735 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2736 "prints out the available groups and whether they are supported by this build "
2737 "of libguestfs.  Note however that you have to do C<run> first."
2738 msgstr ""
2739
2740 # type: =head2
2741 #: ../src/guestfs.pod:1382
2742 msgid "SINGLE CALLS AT COMPILE TIME"
2743 msgstr ""
2744
2745 # type: textblock
2746 #: ../src/guestfs.pod:1384
2747 msgid ""
2748 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2749 "function, such as:"
2750 msgstr ""
2751
2752 # type: verbatim
2753 #: ../src/guestfs.pod:1387
2754 #, no-wrap
2755 msgid ""
2756 " #define LIBGUESTFS_HAVE_DD 1\n"
2757 "\n"
2758 msgstr ""
2759
2760 # type: textblock
2761 #: ../src/guestfs.pod:1389
2762 msgid "if L</guestfs_dd> is available."
2763 msgstr ""
2764
2765 # type: textblock
2766 #: ../src/guestfs.pod:1391
2767 msgid ""
2768 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2769 "function is available at compile time, we recommended using build tools such "
2770 "as autoconf or cmake.  For example in autotools you could use:"
2771 msgstr ""
2772
2773 # type: verbatim
2774 #: ../src/guestfs.pod:1396
2775 #, no-wrap
2776 msgid ""
2777 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2778 " AC_CHECK_FUNCS([guestfs_dd])\n"
2779 "\n"
2780 msgstr ""
2781
2782 # type: textblock
2783 #: ../src/guestfs.pod:1399
2784 msgid ""
2785 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2786 "in your program."
2787 msgstr ""
2788
2789 # type: =head2
2790 #: ../src/guestfs.pod:1402
2791 msgid "SINGLE CALLS AT RUN TIME"
2792 msgstr ""
2793
2794 # type: textblock
2795 #: ../src/guestfs.pod:1404
2796 msgid ""
2797 "Testing at compile time doesn't guarantee that a function really exists in "
2798 "the library.  The reason is that you might be dynamically linked against a "
2799 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2800 "This situation unfortunately results in a segmentation fault, which is a "
2801 "shortcoming of the C dynamic linking system itself."
2802 msgstr ""
2803
2804 # type: textblock
2805 #: ../src/guestfs.pod:1411
2806 msgid ""
2807 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2808 "in this example program (note that you still need the compile time check as "
2809 "well):"
2810 msgstr ""
2811
2812 # type: verbatim
2813 #: ../src/guestfs.pod:1415
2814 #, no-wrap
2815 msgid ""
2816 " #include <stdio.h>\n"
2817 " #include <stdlib.h>\n"
2818 " #include <unistd.h>\n"
2819 " #include <dlfcn.h>\n"
2820 " #include <guestfs.h>\n"
2821 " \n"
2822 msgstr ""
2823
2824 # type: verbatim
2825 #: ../src/guestfs.pod:1421
2826 #, no-wrap
2827 msgid ""
2828 " main ()\n"
2829 " {\n"
2830 " #ifdef LIBGUESTFS_HAVE_DD\n"
2831 "   void *dl;\n"
2832 "   int has_function;\n"
2833 " \n"
2834 msgstr ""
2835
2836 # type: verbatim
2837 #: ../src/guestfs.pod:1427
2838 #, no-wrap
2839 msgid ""
2840 "   /* Test if the function guestfs_dd is really available. */\n"
2841 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2842 "   if (!dl) {\n"
2843 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2844 "     exit (EXIT_FAILURE);\n"
2845 "   }\n"
2846 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2847 "   dlclose (dl);\n"
2848 " \n"
2849 msgstr ""
2850
2851 # type: verbatim
2852 #: ../src/guestfs.pod:1436
2853 #, no-wrap
2854 msgid ""
2855 "   if (!has_function)\n"
2856 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2857 "   else {\n"
2858 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2859 "     /* Now it's safe to call\n"
2860 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2861 "     */\n"
2862 "   }\n"
2863 " #else\n"
2864 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2865 " #endif\n"
2866 "  }\n"
2867 "\n"
2868 msgstr ""
2869
2870 # type: textblock
2871 #: ../src/guestfs.pod:1449
2872 msgid ""
2873 "You may think the above is an awful lot of hassle, and it is.  There are "
2874 "other ways outside of the C linking system to ensure that this kind of "
2875 "incompatibility never arises, such as using package versioning:"
2876 msgstr ""
2877
2878 # type: verbatim
2879 #: ../src/guestfs.pod:1454
2880 #, no-wrap
2881 msgid ""
2882 " Requires: libguestfs >= 1.0.80\n"
2883 "\n"
2884 msgstr ""
2885
2886 # type: =head1
2887 #: ../src/guestfs.pod:1456
2888 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2889 msgstr ""
2890
2891 # type: textblock
2892 #: ../src/guestfs.pod:1458
2893 msgid ""
2894 "A recent feature of the API is the introduction of calls which take optional "
2895 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2896 "takes variable arguments (ie. C<...>), as in this example:"
2897 msgstr ""
2898
2899 # type: verbatim
2900 #: ../src/guestfs.pod:1463
2901 #, no-wrap
2902 msgid ""
2903 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2904 "\n"
2905 msgstr ""
2906
2907 # type: textblock
2908 #: ../src/guestfs.pod:1465
2909 msgid ""
2910 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2911 "call with no optional arguments specified:"
2912 msgstr ""
2913
2914 # type: verbatim
2915 #: ../src/guestfs.pod:1468
2916 #, no-wrap
2917 msgid ""
2918 " guestfs_add_drive_opts (g, filename, -1);\n"
2919 "\n"
2920 msgstr ""
2921
2922 # type: textblock
2923 #: ../src/guestfs.pod:1470
2924 msgid "With a single optional argument:"
2925 msgstr ""
2926
2927 # type: verbatim
2928 #: ../src/guestfs.pod:1472
2929 #, no-wrap
2930 msgid ""
2931 " guestfs_add_drive_opts (g, filename,\n"
2932 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2933 "                         -1);\n"
2934 "\n"
2935 msgstr ""
2936
2937 # type: textblock
2938 #: ../src/guestfs.pod:1476
2939 msgid "With two:"
2940 msgstr ""
2941
2942 # type: verbatim
2943 #: ../src/guestfs.pod:1478
2944 #, no-wrap
2945 msgid ""
2946 " guestfs_add_drive_opts (g, filename,\n"
2947 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2948 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2949 "                         -1);\n"
2950 "\n"
2951 msgstr ""
2952
2953 # type: textblock
2954 #: ../src/guestfs.pod:1483
2955 msgid ""
2956 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2957 "happen!"
2958 msgstr ""
2959
2960 # type: =head2
2961 #: ../src/guestfs.pod:1486
2962 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2963 msgstr ""
2964
2965 # type: textblock
2966 #: ../src/guestfs.pod:1488
2967 msgid ""
2968 "The second variant has the same name with the suffix C<_va>, which works the "
2969 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2970 "example function, this is declared:"
2971 msgstr ""
2972
2973 # type: verbatim
2974 #: ../src/guestfs.pod:1492
2975 #, no-wrap
2976 msgid ""
2977 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2978 "                                va_list args);\n"
2979 "\n"
2980 msgstr ""
2981
2982 # type: =head2
2983 #: ../src/guestfs.pod:1495
2984 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2985 msgstr ""
2986
2987 # type: textblock
2988 #: ../src/guestfs.pod:1497
2989 msgid ""
2990 "The third variant is useful where you need to construct these calls.  You "
2991 "pass in a structure where you fill in the optional fields.  The structure "
2992 "has a bitmask as the first element which you must set to indicate which "
2993 "fields you have filled in.  For our example function the structure and call "
2994 "are declared:"
2995 msgstr ""
2996
2997 # type: verbatim
2998 #: ../src/guestfs.pod:1503
2999 #, no-wrap
3000 msgid ""
3001 " struct guestfs_add_drive_opts_argv {\n"
3002 "   uint64_t bitmask;\n"
3003 "   int readonly;\n"
3004 "   const char *format;\n"
3005 "   /* ... */\n"
3006 " };\n"
3007 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3008 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3009 "\n"
3010 msgstr ""
3011
3012 # type: textblock
3013 #: ../src/guestfs.pod:1512
3014 msgid "You could call it like this:"
3015 msgstr ""
3016
3017 # type: verbatim
3018 #: ../src/guestfs.pod:1514
3019 #, no-wrap
3020 msgid ""
3021 " struct guestfs_add_drive_opts_argv optargs = {\n"
3022 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3023 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3024 "   .readonly = 1,\n"
3025 "   .format = \"qcow2\"\n"
3026 " };\n"
3027 " \n"
3028 msgstr ""
3029
3030 # type: verbatim
3031 #: ../src/guestfs.pod:1521
3032 #, no-wrap
3033 msgid ""
3034 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3035 "\n"
3036 msgstr ""
3037
3038 # type: textblock
3039 #: ../src/guestfs.pod:1523 ../src/guestfs-actions.pod:11
3040 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:9
3041 #: ../fish/guestfish-actions.pod:1255
3042 msgid "Notes:"
3043 msgstr ""
3044
3045 # type: textblock
3046 #: ../src/guestfs.pod:1529
3047 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3048 msgstr ""
3049
3050 # type: textblock
3051 #: ../src/guestfs.pod:1534
3052 msgid "You do not need to fill in all fields of the structure."
3053 msgstr ""
3054
3055 # type: textblock
3056 #: ../src/guestfs.pod:1538
3057 msgid ""
3058 "There must be a one-to-one correspondence between fields of the structure "
3059 "that are filled in, and bits set in the bitmask."
3060 msgstr ""
3061
3062 # type: =head2
3063 #: ../src/guestfs.pod:1543
3064 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3065 msgstr ""
3066
3067 # type: textblock
3068 #: ../src/guestfs.pod:1545
3069 msgid ""
3070 "In other languages, optional arguments are expressed in the way that is "
3071 "natural for that language.  We refer you to the language-specific "
3072 "documentation for more details on that."
3073 msgstr ""
3074
3075 # type: textblock
3076 #: ../src/guestfs.pod:1549
3077 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3078 msgstr ""
3079
3080 # type: =head2
3081 #: ../src/guestfs.pod:1551
3082 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3083 msgstr ""
3084
3085 # type: textblock
3086 #: ../src/guestfs.pod:1553
3087 msgid ""
3088 "The child process generates events in some situations.  Current events "
3089 "include: receiving a log message, the child process exits."
3090 msgstr ""
3091
3092 # type: textblock
3093 #: ../src/guestfs.pod:1556
3094 msgid ""
3095 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3096 "types of events."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1559
3101 msgid ""
3102 "Only I<one callback of each type> can be registered for each handle.  "
3103 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3104 "that type.  Cancel all callbacks of this type by calling this function with "
3105 "C<cb> set to C<NULL>."
3106 msgstr ""
3107
3108 # type: =head2
3109 #: ../src/guestfs.pod:1564
3110 msgid "guestfs_set_log_message_callback"
3111 msgstr ""
3112
3113 # type: verbatim
3114 #: ../src/guestfs.pod:1566
3115 #, no-wrap
3116 msgid ""
3117 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3118 "                                         char *buf, int len);\n"
3119 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3120 "                                        guestfs_log_message_cb cb,\n"
3121 "                                        void *opaque);\n"
3122 "\n"
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1572
3127 msgid ""
3128 "The callback function C<cb> will be called whenever qemu or the guest writes "
3129 "anything to the console."
3130 msgstr ""
3131
3132 # type: textblock
3133 #: ../src/guestfs.pod:1575
3134 msgid "Use this function to capture kernel messages and similar."
3135 msgstr ""
3136
3137 # type: textblock
3138 #: ../src/guestfs.pod:1577
3139 msgid ""
3140 "Normally there is no log message handler, and log messages are just "
3141 "discarded."
3142 msgstr ""
3143
3144 # type: =head2
3145 #: ../src/guestfs.pod:1580
3146 msgid "guestfs_set_subprocess_quit_callback"
3147 msgstr ""
3148
3149 # type: verbatim
3150 #: ../src/guestfs.pod:1582
3151 #, no-wrap
3152 msgid ""
3153 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3154 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3155 "                                            guestfs_subprocess_quit_cb cb,\n"
3156 "                                            void *opaque);\n"
3157 "\n"
3158 msgstr ""
3159
3160 # type: textblock
3161 #: ../src/guestfs.pod:1587
3162 msgid ""
3163 "The callback function C<cb> will be called when the child process quits, "
3164 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3165 "corresponds to a transition from any state to the CONFIG state)."
3166 msgstr ""
3167
3168 # type: =head2
3169 #: ../src/guestfs.pod:1592
3170 msgid "guestfs_set_launch_done_callback"
3171 msgstr ""
3172
3173 # type: verbatim
3174 #: ../src/guestfs.pod:1594
3175 #, no-wrap
3176 msgid ""
3177 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3178 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3179 "                                        guestfs_launch_done_cb cb,\n"
3180 "                                        void *opaque);\n"
3181 "\n"
3182 msgstr ""
3183
3184 # type: textblock
3185 #: ../src/guestfs.pod:1599
3186 msgid ""
3187 "The callback function C<cb> will be called when the child process becomes "
3188 "ready first time after it has been launched.  (This corresponds to a "
3189 "transition from LAUNCHING to the READY state)."
3190 msgstr ""
3191
3192 # type: =head2
3193 #: ../src/guestfs.pod:1603
3194 msgid "guestfs_set_close_callback"
3195 msgstr ""
3196
3197 # type: verbatim
3198 #: ../src/guestfs.pod:1605
3199 #, no-wrap
3200 msgid ""
3201 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3202 " void guestfs_set_close_callback (guestfs_h *g,\n"
3203 "                                  guestfs_close_cb cb,\n"
3204 "                                  void *opaque);\n"
3205 "\n"
3206 msgstr ""
3207
3208 # type: textblock
3209 #: ../src/guestfs.pod:1610
3210 msgid ""
3211 "The callback function C<cb> will be called while the handle is being closed "
3212 "(synchronously from L</guestfs_close>)."
3213 msgstr ""
3214
3215 # type: textblock
3216 #: ../src/guestfs.pod:1613
3217 msgid ""
3218 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3219 "handles that are open when the program exits.  This means that this callback "
3220 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3221 "problems in higher-level languages (eg. if your HLL interpreter has already "
3222 "been cleaned up by the time this is called, and if your callback then jumps "
3223 "into some HLL function)."
3224 msgstr ""
3225
3226 # type: =head2
3227 #: ../src/guestfs.pod:1621
3228 msgid "guestfs_set_progress_callback"
3229 msgstr ""
3230
3231 # type: verbatim
3232 #: ../src/guestfs.pod:1623
3233 #, no-wrap
3234 msgid ""
3235 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3236 "                                      int proc_nr, int serial,\n"
3237 "                                      uint64_t position, uint64_t total);\n"
3238 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3239 "                                     guestfs_progress_cb cb,\n"
3240 "                                     void *opaque);\n"
3241 "\n"
3242 msgstr ""
3243
3244 # type: textblock
3245 #: ../src/guestfs.pod:1630
3246 msgid ""
3247 "Some long-running operations can generate progress messages.  If this "
3248 "callback is registered, then it will be called each time a progress message "
3249 "is generated (usually two seconds after the operation started, and three "
3250 "times per second thereafter until it completes, although the frequency may "
3251 "change in future versions)."
3252 msgstr ""
3253
3254 # type: textblock
3255 #: ../src/guestfs.pod:1636
3256 msgid ""
3257 "The callback receives two numbers: C<position> and C<total>.  The units of "
3258 "C<total> are not defined, although for some operations C<total> may relate "
3259 "in some way to the amount of data to be transferred (eg. in bytes or "
3260 "megabytes), and C<position> may be the portion which has been transferred."
3261 msgstr ""
3262
3263 # type: textblock
3264 #: ../src/guestfs.pod:1642
3265 msgid "The only defined and stable parts of the API are:"
3266 msgstr ""
3267
3268 # type: textblock
3269 #: ../src/guestfs.pod:1648
3270 msgid ""
3271 "The callback can display to the user some type of progress bar or indicator "
3272 "which shows the ratio of C<position>:C<total>."
3273 msgstr ""
3274
3275 # type: textblock
3276 #: ../src/guestfs.pod:1653
3277 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3278 msgstr ""
3279
3280 # type: textblock
3281 #: ../src/guestfs.pod:1657
3282 msgid ""
3283 "If any progress notification is sent during a call, then a final progress "
3284 "notification is always sent when C<position> = C<total>."
3285 msgstr ""
3286
3287 # type: textblock
3288 #: ../src/guestfs.pod:1660
3289 msgid ""
3290 "This is to simplify caller code, so callers can easily set the progress "
3291 "indicator to \"100%\" at the end of the operation, without requiring special "
3292 "code to detect this case."
3293 msgstr ""
3294
3295 # type: textblock
3296 #: ../src/guestfs.pod:1666
3297 msgid ""
3298 "The callback also receives the procedure number and serial number of the "
3299 "call.  These are only useful for debugging protocol issues, and the callback "
3300 "can normally ignore them.  The callback may want to print these numbers in "
3301 "error messages or debugging messages."
3302 msgstr ""
3303
3304 # type: =head1
3305 #: ../src/guestfs.pod:1671
3306 msgid "PRIVATE DATA AREA"
3307 msgstr ""
3308
3309 # type: textblock
3310 #: ../src/guestfs.pod:1673
3311 msgid ""
3312 "You can attach named pieces of private data to the libguestfs handle, and "
3313 "fetch them by name for the lifetime of the handle.  This is called the "
3314 "private data area and is only available from the C API."
3315 msgstr ""
3316
3317 # type: textblock
3318 #: ../src/guestfs.pod:1677
3319 msgid "To attach a named piece of data, use the following call:"
3320 msgstr ""
3321
3322 # type: verbatim
3323 #: ../src/guestfs.pod:1679
3324 #, no-wrap
3325 msgid ""
3326 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3327 "\n"
3328 msgstr ""
3329
3330 # type: textblock
3331 #: ../src/guestfs.pod:1681
3332 msgid ""
3333 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3334 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3335 "overwritten."
3336 msgstr ""
3337
3338 # type: textblock
3339 #: ../src/guestfs.pod:1685
3340 msgid ""
3341 "You can use any C<key> you want, but names beginning with an underscore "
3342 "character are reserved for internal libguestfs purposes (for implementing "
3343 "language bindings).  It is recommended to prefix the name with some unique "
3344 "string to avoid collisions with other users."
3345 msgstr ""
3346
3347 # type: textblock
3348 #: ../src/guestfs.pod:1690
3349 msgid "To retrieve the pointer, use:"
3350 msgstr ""
3351
3352 # type: verbatim
3353 #: ../src/guestfs.pod:1692
3354 #, no-wrap
3355 msgid ""
3356 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3357 "\n"
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1694
3362 msgid ""
3363 "This function returns C<NULL> if either no data is found associated with "
3364 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3365 "C<NULL>."
3366 msgstr ""
3367
3368 # type: textblock
3369 #: ../src/guestfs.pod:1698
3370 msgid ""
3371 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3372 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3373 "all.  In particular, libguestfs does I<not> try to free the data when the "
3374 "handle is closed.  If the data must be freed, then the caller must either "
3375 "free it before calling L</guestfs_close> or must set up a close callback to "
3376 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3377 "can be registered for a handle)."
3378 msgstr ""
3379
3380 # type: textblock
3381 #: ../src/guestfs.pod:1706
3382 msgid ""
3383 "The private data area is implemented using a hash table, and should be "
3384 "reasonably efficient for moderate numbers of keys."
3385 msgstr ""
3386
3387 # type: =end
3388 #: ../src/guestfs.pod:1709 ../src/guestfs.pod:1714
3389 msgid "html"
3390 msgstr ""
3391
3392 # type: textblock
3393 #: ../src/guestfs.pod:1711
3394 msgid ""
3395 "<!-- old anchor for the next section --> <a name="
3396 "\"state_machine_and_low_level_event_api\"/>"
3397 msgstr ""
3398
3399 # type: =head1
3400 #: ../src/guestfs.pod:1716
3401 msgid "ARCHITECTURE"
3402 msgstr ""
3403
3404 # type: textblock
3405 #: ../src/guestfs.pod:1718
3406 msgid ""
3407 "Internally, libguestfs is implemented by running an appliance (a special "
3408 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3409 "process of the main program."
3410 msgstr ""
3411
3412 # type: verbatim
3413 #: ../src/guestfs.pod:1722
3414 #, no-wrap
3415 msgid ""
3416 "  ___________________\n"
3417 " /                   \\\n"
3418 " | main program      |\n"
3419 " |                   |\n"
3420 " |                   |           child process / appliance\n"
3421 " |                   |           __________________________\n"
3422 " |                   |          / qemu                     \\\n"
3423 " +-------------------+   RPC    |      +-----------------+ |\n"
3424 " | libguestfs     <--------------------> guestfsd        | |\n"
3425 " |                   |          |      +-----------------+ |\n"
3426 " \\___________________/          |      | Linux kernel    | |\n"
3427 "                                |      +--^--------------+ |\n"
3428 "                                \\_________|________________/\n"
3429 "                                          |\n"
3430 "                                   _______v______\n"
3431 "                                  /              \\\n"
3432 "                                  | Device or    |\n"
3433 "                                  | disk image   |\n"
3434 "                                  \\______________/\n"
3435 "\n"
3436 msgstr ""
3437
3438 # type: textblock
3439 #: ../src/guestfs.pod:1742
3440 msgid ""
3441 "The library, linked to the main program, creates the child process and hence "
3442 "the appliance in the L</guestfs_launch> function."
3443 msgstr ""
3444
3445 # type: textblock
3446 #: ../src/guestfs.pod:1745
3447 msgid ""
3448 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3449 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3450 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3451 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3452 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3453 "attached to the qemu process which translates device access by the "
3454 "appliance's Linux kernel into accesses to the image."
3455 msgstr ""
3456
3457 # type: textblock
3458 #: ../src/guestfs.pod:1754
3459 msgid ""
3460 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3461 "Although the disk image you are attached to might also be used by some "
3462 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3463 "care if both libguestfs's qemu process and your virtual machine are trying "
3464 "to update the disk image at the same time, since these usually results in "
3465 "massive disk corruption)."
3466 msgstr ""
3467
3468 # type: =head1
3469 #: ../src/guestfs.pod:1761
3470 msgid "STATE MACHINE"
3471 msgstr ""
3472
3473 # type: textblock
3474 #: ../src/guestfs.pod:1763
3475 msgid "libguestfs uses a state machine to model the child process:"
3476 msgstr ""
3477
3478 # type: verbatim
3479 #: ../src/guestfs.pod:1765
3480 #, no-wrap
3481 msgid ""
3482 "                         |\n"
3483 "                    guestfs_create\n"
3484 "                         |\n"
3485 "                         |\n"
3486 "                     ____V_____\n"
3487 "                    /          \\\n"
3488 "                    |  CONFIG  |\n"
3489 "                    \\__________/\n"
3490 "                     ^ ^   ^  \\\n"
3491 "                    /  |    \\  \\ guestfs_launch\n"
3492 "                   /   |    _\\__V______\n"
3493 "                  /    |   /           \\\n"
3494 "                 /     |   | LAUNCHING |\n"
3495 "                /      |   \\___________/\n"
3496 "               /       |       /\n"
3497 "              /        |  guestfs_launch\n"
3498 "             /         |     /\n"
3499 "    ______  /        __|____V\n"
3500 "   /      \\ ------> /        \\\n"
3501 "   | BUSY |         | READY  |\n"
3502 "   \\______/ <------ \\________/\n"
3503 "\n"
3504 msgstr ""
3505
3506 # type: textblock
3507 #: ../src/guestfs.pod:1787
3508 msgid ""
3509 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3510 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3511 "(3) alternating between READY and BUSY as commands are issued to, and "
3512 "carried out by, the child process."
3513 msgstr ""
3514
3515 # type: textblock
3516 #: ../src/guestfs.pod:1792
3517 msgid ""
3518 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3519 "asynchronously at any time (eg. due to some internal error), and that causes "
3520 "the state to transition back to CONFIG."
3521 msgstr ""
3522
3523 # type: textblock
3524 #: ../src/guestfs.pod:1796
3525 msgid ""
3526 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3527 "issued when in the CONFIG state."
3528 msgstr ""
3529
3530 # type: textblock
3531 #: ../src/guestfs.pod:1799
3532 msgid ""
3533 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3534 "L</guestfs_launch> blocks until the child process is READY to accept "
3535 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3536 "moves the state from CONFIG to LAUNCHING while it is running."
3537 msgstr ""
3538
3539 # type: textblock
3540 #: ../src/guestfs.pod:1805
3541 msgid ""
3542 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3543 "state.  These API calls block waiting for the command to be carried out (ie. "
3544 "the state to transition to BUSY and then back to READY).  There are no non-"
3545 "blocking versions, and no way to issue more than one command per handle at "
3546 "the same time."
3547 msgstr ""
3548
3549 # type: textblock
3550 #: ../src/guestfs.pod:1811
3551 msgid ""
3552 "Finally, the child process sends asynchronous messages back to the main "
3553 "program, such as kernel log messages.  You can register a callback to "
3554 "receive these messages."
3555 msgstr ""
3556
3557 # type: =head1
3558 #: ../src/guestfs.pod:1815
3559 msgid "INTERNALS"
3560 msgstr ""
3561
3562 # type: =head2
3563 #: ../src/guestfs.pod:1817
3564 msgid "COMMUNICATION PROTOCOL"
3565 msgstr ""
3566
3567 # type: textblock
3568 #: ../src/guestfs.pod:1819
3569 msgid ""
3570 "Don't rely on using this protocol directly.  This section documents how it "
3571 "currently works, but it may change at any time."
3572 msgstr ""
3573
3574 # type: textblock
3575 #: ../src/guestfs.pod:1822
3576 msgid ""
3577 "The protocol used to talk between the library and the daemon running inside "
3578 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3579 "1014, RFC 1832, RFC 4506)."
3580 msgstr ""
3581
3582 # type: textblock
3583 #: ../src/guestfs.pod:1826
3584 msgid ""
3585 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3586 "this file is automatically generated)."
3587 msgstr ""
3588
3589 # type: textblock
3590 #: ../src/guestfs.pod:1829
3591 msgid ""
3592 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3593 "and C<FileOut> parameters, which are handled with very simple request/reply "
3594 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3595 "parameters, which use the same request and reply messages, but they may also "
3596 "be followed by files sent using a chunked encoding."
3597 msgstr ""
3598
3599 # type: =head3
3600 #: ../src/guestfs.pod:1836
3601 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3602 msgstr ""
3603
3604 # type: textblock
3605 #: ../src/guestfs.pod:1838
3606 msgid "For ordinary functions, the request message is:"
3607 msgstr ""
3608
3609 # type: verbatim
3610 #: ../src/guestfs.pod:1840
3611 #, no-wrap
3612 msgid ""
3613 " total length (header + arguments,\n"
3614 "      but not including the length word itself)\n"
3615 " struct guestfs_message_header (encoded as XDR)\n"
3616 " struct guestfs_<foo>_args (encoded as XDR)\n"
3617 "\n"
3618 msgstr ""
3619
3620 # type: textblock
3621 #: ../src/guestfs.pod:1845
3622 msgid ""
3623 "The total length field allows the daemon to allocate a fixed size buffer "
3624 "into which it slurps the rest of the message.  As a result, the total length "
3625 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3626 "effective size of any request is limited to somewhere under this size."
3627 msgstr ""
3628
3629 # type: textblock
3630 #: ../src/guestfs.pod:1851
3631 msgid ""
3632 "Note also that many functions don't take any arguments, in which case the "
3633 "C<guestfs_I<foo>_args> is completely omitted."
3634 msgstr ""
3635
3636 # type: textblock
3637 #: ../src/guestfs.pod:1854
3638 msgid ""
3639 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3640 "receiver knows what type of args structure to expect, or none at all."
3641 msgstr ""
3642
3643 # type: textblock
3644 #: ../src/guestfs.pod:1858
3645 msgid "The reply message for ordinary functions is:"
3646 msgstr ""
3647
3648 # type: verbatim
3649 #: ../src/guestfs.pod:1860
3650 #, no-wrap
3651 msgid ""
3652 " total length (header + ret,\n"
3653 "      but not including the length word itself)\n"
3654 " struct guestfs_message_header (encoded as XDR)\n"
3655 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3656 "\n"
3657 msgstr ""
3658
3659 # type: textblock
3660 #: ../src/guestfs.pod:1865
3661 msgid ""
3662 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3663 "functions that return no formal return values."
3664 msgstr ""
3665
3666 # type: textblock
3667 #: ../src/guestfs.pod:1868
3668 msgid ""
3669 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3670 msgstr ""
3671
3672 # type: textblock
3673 #: ../src/guestfs.pod:1871
3674 msgid ""
3675 "In the case of an error, a flag is set in the header, and the reply message "
3676 "is slightly changed:"
3677 msgstr ""
3678
3679 # type: verbatim
3680 #: ../src/guestfs.pod:1874
3681 #, no-wrap
3682 msgid ""
3683 " total length (header + error,\n"
3684 "      but not including the length word itself)\n"
3685 " struct guestfs_message_header (encoded as XDR)\n"
3686 " struct guestfs_message_error (encoded as XDR)\n"
3687 "\n"
3688 msgstr ""
3689
3690 # type: textblock
3691 #: ../src/guestfs.pod:1879
3692 msgid ""
3693 "The C<guestfs_message_error> structure contains the error message as a "
3694 "string."
3695 msgstr ""
3696
3697 # type: =head3
3698 #: ../src/guestfs.pod:1882
3699 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1884
3704 msgid ""
3705 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3706 "The normal request message is sent (see above).  However this is followed by "
3707 "a sequence of file chunks."
3708 msgstr ""
3709
3710 # type: verbatim
3711 #: ../src/guestfs.pod:1888
3712 #, no-wrap
3713 msgid ""
3714 " total length (header + arguments,\n"
3715 "      but not including the length word itself,\n"
3716 "      and not including the chunks)\n"
3717 " struct guestfs_message_header (encoded as XDR)\n"
3718 " struct guestfs_<foo>_args (encoded as XDR)\n"
3719 " sequence of chunks for FileIn param #0\n"
3720 " sequence of chunks for FileIn param #1 etc.\n"
3721 "\n"
3722 msgstr ""
3723
3724 # type: textblock
3725 #: ../src/guestfs.pod:1896
3726 msgid "The \"sequence of chunks\" is:"
3727 msgstr ""
3728
3729 # type: verbatim
3730 #: ../src/guestfs.pod:1898
3731 #, no-wrap
3732 msgid ""
3733 " length of chunk (not including length word itself)\n"
3734 " struct guestfs_chunk (encoded as XDR)\n"
3735 " length of chunk\n"
3736 " struct guestfs_chunk (encoded as XDR)\n"
3737 "   ...\n"
3738 " length of chunk\n"
3739 " struct guestfs_chunk (with data.data_len == 0)\n"
3740 "\n"
3741 msgstr ""
3742
3743 # type: textblock
3744 #: ../src/guestfs.pod:1906
3745 msgid ""
3746 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3747 "is set in the final chunk to indicate either successful completion or early "
3748 "cancellation."
3749 msgstr ""
3750
3751 # type: textblock
3752 #: ../src/guestfs.pod:1910
3753 msgid ""
3754 "At time of writing there are no functions that have more than one FileIn "
3755 "parameter.  However this is (theoretically) supported, by sending the "
3756 "sequence of chunks for each FileIn parameter one after another (from left to "
3757 "right)."
3758 msgstr ""
3759
3760 # type: textblock
3761 #: ../src/guestfs.pod:1915
3762 msgid ""
3763 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3764 "transfer.  The library does this by sending a chunk with a special flag set "
3765 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3766 "RPC, does I<not> send any reply, and goes back to reading the next request."
3767 msgstr ""
3768
3769 # type: textblock
3770 #: ../src/guestfs.pod:1921
3771 msgid ""
3772 "The daemon may also cancel.  It does this by writing a special word "
3773 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3774 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3775 "cancel chunk).  The special word is chosen so that even if cancellation "
3776 "happens right at the end of the transfer (after the library has finished "
3777 "writing and has started listening for the reply), the \"spurious\" cancel "
3778 "flag will not be confused with the reply message."
3779 msgstr ""
3780
3781 # type: textblock
3782 #: ../src/guestfs.pod:1930
3783 msgid ""
3784 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3785 "limit), and also files where the size is not known in advance (eg. from "
3786 "pipes or sockets).  However the chunks are rather small "
3787 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3788 "to keep much in memory."
3789 msgstr ""
3790
3791 # type: =head3
3792 #: ../src/guestfs.pod:1936
3793 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3794 msgstr ""
3795
3796 # type: textblock
3797 #: ../src/guestfs.pod:1938
3798 msgid ""
3799 "The protocol for FileOut parameters is exactly the same as for FileIn "
3800 "parameters, but with the roles of daemon and library reversed."
3801 msgstr ""
3802
3803 # type: verbatim
3804 #: ../src/guestfs.pod:1941
3805 #, no-wrap
3806 msgid ""
3807 " total length (header + ret,\n"
3808 "      but not including the length word itself,\n"
3809 "      and not including the chunks)\n"
3810 " struct guestfs_message_header (encoded as XDR)\n"
3811 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3812 " sequence of chunks for FileOut param #0\n"
3813 " sequence of chunks for FileOut param #1 etc.\n"
3814 "\n"
3815 msgstr ""
3816
3817 # type: =head3
3818 #: ../src/guestfs.pod:1949
3819 msgid "INITIAL MESSAGE"
3820 msgstr ""
3821
3822 # type: textblock
3823 #: ../src/guestfs.pod:1951
3824 msgid ""
3825 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3826 "which indicates that the guest and daemon is alive.  This is what L</"
3827 "guestfs_launch> waits for."
3828 msgstr ""
3829
3830 # type: =head3
3831 #: ../src/guestfs.pod:1955
3832 msgid "PROGRESS NOTIFICATION MESSAGES"
3833 msgstr ""
3834
3835 # type: textblock
3836 #: ../src/guestfs.pod:1957
3837 msgid ""
3838 "The daemon may send progress notification messages at any time.  These are "
3839 "distinguished by the normal length word being replaced by "
3840 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3841 msgstr ""
3842
3843 # type: textblock
3844 #: ../src/guestfs.pod:1961
3845 msgid ""
3846 "The library turns them into progress callbacks (see "
3847 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3848 "discards them if not."
3849 msgstr ""
3850
3851 # type: textblock
3852 #: ../src/guestfs.pod:1965
3853 msgid ""
3854 "The daemon self-limits the frequency of progress messages it sends (see "
3855 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3856 "messages."
3857 msgstr ""
3858
3859 # type: =head1
3860 #: ../src/guestfs.pod:1969
3861 msgid "LIBGUESTFS VERSION NUMBERS"
3862 msgstr ""
3863
3864 # type: textblock
3865 #: ../src/guestfs.pod:1971
3866 msgid ""
3867 "Since April 2010, libguestfs has started to make separate development and "
3868 "stable releases, along with corresponding branches in our git repository.  "
3869 "These separate releases can be identified by version number:"
3870 msgstr ""
3871
3872 # type: verbatim
3873 #: ../src/guestfs.pod:1976
3874 #, no-wrap
3875 msgid ""
3876 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3877 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3878 "       |\n"
3879 "       v\n"
3880 " 1  .  3  .  5\n"
3881 " ^           ^\n"
3882 " |           |\n"
3883 " |           `-------- sub-version\n"
3884 " |\n"
3885 " `------ always '1' because we don't change the ABI\n"
3886 "\n"
3887 msgstr ""
3888
3889 # type: textblock
3890 #: ../src/guestfs.pod:1987
3891 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3892 msgstr ""
3893
3894 # type: textblock
3895 #: ../src/guestfs.pod:1989
3896 msgid ""
3897 "As time passes we cherry pick fixes from the development branch and backport "
3898 "those into the stable branch, the effect being that the stable branch should "
3899 "get more stable and less buggy over time.  So the stable releases are ideal "
3900 "for people who don't need new features but would just like the software to "
3901 "work."
3902 msgstr ""
3903
3904 # type: textblock
3905 #: ../src/guestfs.pod:1995
3906 msgid "Our criteria for backporting changes are:"
3907 msgstr ""
3908
3909 # type: textblock
3910 #: ../src/guestfs.pod:2001
3911 msgid ""
3912 "Documentation changes which don't affect any code are backported unless the "
3913 "documentation refers to a future feature which is not in stable."
3914 msgstr ""
3915
3916 # type: textblock
3917 #: ../src/guestfs.pod:2007
3918 msgid ""
3919 "Bug fixes which are not controversial, fix obvious problems, and have been "
3920 "well tested are backported."
3921 msgstr ""
3922
3923 # type: textblock
3924 #: ../src/guestfs.pod:2012
3925 msgid ""
3926 "Simple rearrangements of code which shouldn't affect how it works get "
3927 "backported.  This is so that the code in the two branches doesn't get too "
3928 "far out of step, allowing us to backport future fixes more easily."
3929 msgstr ""
3930
3931 # type: textblock
3932 #: ../src/guestfs.pod:2018
3933 msgid ""
3934 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3935 "exceptional case: the new feature is required in order to implement an "
3936 "important bug fix."
3937 msgstr ""
3938
3939 # type: textblock
3940 #: ../src/guestfs.pod:2024
3941 msgid ""
3942 "A new stable branch starts when we think the new features in development are "
3943 "substantial and compelling enough over the current stable branch to warrant "
3944 "it.  When that happens we create new stable and development versions 1.N.0 "
3945 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3946 "stable at this point, but by backporting fixes from development, that branch "
3947 "will stabilize over time."
3948 msgstr ""
3949
3950 # type: =head1
3951 #: ../src/guestfs.pod:2032 ../fish/guestfish.pod:915
3952 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3953 msgid "ENVIRONMENT VARIABLES"
3954 msgstr ""
3955
3956 # type: =item
3957 #: ../src/guestfs.pod:2036 ../fish/guestfish.pod:941
3958 msgid "LIBGUESTFS_APPEND"
3959 msgstr ""
3960
3961 # type: textblock
3962 #: ../src/guestfs.pod:2038 ../fish/guestfish.pod:943
3963 msgid "Pass additional options to the guest kernel."
3964 msgstr ""
3965
3966 # type: =item
3967 #: ../src/guestfs.pod:2040 ../fish/guestfish.pod:945
3968 msgid "LIBGUESTFS_DEBUG"
3969 msgstr ""
3970
3971 # type: textblock
3972 #: ../src/guestfs.pod:2042
3973 msgid ""
3974 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3975 "effect as calling C<guestfs_set_verbose (g, 1)>."
3976 msgstr ""
3977
3978 # type: =item
3979 #: ../src/guestfs.pod:2045 ../fish/guestfish.pod:950
3980 msgid "LIBGUESTFS_MEMSIZE"
3981 msgstr ""
3982
3983 # type: textblock
3984 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:952
3985 msgid ""
3986 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3987 msgstr ""
3988
3989 # type: verbatim
3990 #: ../src/guestfs.pod:2050 ../fish/guestfish.pod:955
3991 #, no-wrap
3992 msgid ""
3993 " LIBGUESTFS_MEMSIZE=700\n"
3994 "\n"
3995 msgstr ""
3996
3997 # type: =item
3998 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:957
3999 msgid "LIBGUESTFS_PATH"
4000 msgstr ""
4001
4002 # type: textblock
4003 #: ../src/guestfs.pod:2054
4004 msgid ""
4005 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4006 "the discussion of paths in section PATH above."
4007 msgstr ""
4008
4009 # type: =item
4010 #: ../src/guestfs.pod:2057 ../fish/guestfish.pod:962
4011 msgid "LIBGUESTFS_QEMU"
4012 msgstr ""
4013
4014 # type: textblock
4015 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:964
4016 msgid ""
4017 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4018 "which was found at compile time by the configure script is used."
4019 msgstr ""
4020
4021 # type: textblock
4022 #: ../src/guestfs.pod:2063
4023 msgid "See also L</QEMU WRAPPERS> above."
4024 msgstr ""
4025
4026 # type: =item
4027 #: ../src/guestfs.pod:2065 ../fish/guestfish.pod:968
4028 msgid "LIBGUESTFS_TRACE"
4029 msgstr ""
4030
4031 # type: textblock
4032 #: ../src/guestfs.pod:2067
4033 msgid ""
4034 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4035 "effect as calling C<guestfs_set_trace (g, 1)>."
4036 msgstr ""
4037
4038 # type: =item
4039 #: ../src/guestfs.pod:2070 ../fish/guestfish.pod:977
4040 msgid "TMPDIR"
4041 msgstr ""
4042
4043 # type: textblock
4044 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:979
4045 msgid "Location of temporary directory, defaults to C</tmp>."
4046 msgstr ""
4047
4048 # type: textblock
4049 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:981
4050 msgid ""
4051 "If libguestfs was compiled to use the supermin appliance then the real "
4052 "appliance is cached in this directory, shared between all handles belonging "
4053 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4054 "use in case C</tmp> is not large enough."
4055 msgstr ""
4056
4057 # type: =head1
4058 #: ../src/guestfs.pod:2082 ../fish/guestfish.pod:1039
4059 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4060 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484
4061 #: ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189
4062 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
4063 #: ../tools/virt-list-partitions.pl:257
4064 msgid "SEE ALSO"
4065 msgstr ""
4066
4067 # type: textblock
4068 #: ../src/guestfs.pod:2084
4069 msgid ""
4070 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
4071 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
4072 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
4073 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
4074 ">, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4075 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4076 msgstr ""
4077
4078 # type: textblock
4079 #: ../src/guestfs.pod:2107
4080 msgid ""
4081 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4082 "(8)>, L<disktype(1)>."
4083 msgstr ""
4084
4085 # type: =head1
4086 #: ../src/guestfs.pod:2114 ../tools/virt-win-reg.pl:499
4087 #: ../tools/virt-make-fs.pl:548
4088 msgid "BUGS"
4089 msgstr ""
4090
4091 # type: textblock
4092 #: ../src/guestfs.pod:2116
4093 msgid "To get a list of bugs against libguestfs use this link:"
4094 msgstr ""
4095
4096 # type: textblock
4097 #: ../src/guestfs.pod:2118
4098 msgid ""
4099 "L<https://bugzilla.redhat.com/buglist.cgi?"
4100 "component=libguestfs&product=Virtualization+Tools>"
4101 msgstr ""
4102
4103 # type: textblock
4104 #: ../src/guestfs.pod:2120
4105 msgid "To report a new bug against libguestfs use this link:"
4106 msgstr ""
4107
4108 # type: textblock
4109 #: ../src/guestfs.pod:2122
4110 msgid ""
4111 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4112 "component=libguestfs&product=Virtualization+Tools>"
4113 msgstr ""
4114
4115 # type: textblock
4116 #: ../src/guestfs.pod:2124
4117 msgid "When reporting a bug, please check:"
4118 msgstr ""
4119
4120 # type: textblock
4121 #: ../src/guestfs.pod:2130
4122 msgid "That the bug hasn't been reported already."
4123 msgstr ""
4124
4125 # type: textblock
4126 #: ../src/guestfs.pod:2134
4127 msgid "That you are testing a recent version."
4128 msgstr ""
4129
4130 # type: textblock
4131 #: ../src/guestfs.pod:2138
4132 msgid "Describe the bug accurately, and give a way to reproduce it."
4133 msgstr ""
4134
4135 # type: textblock
4136 #: ../src/guestfs.pod:2142
4137 msgid ""
4138 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4139 "bug report."
4140 msgstr ""
4141
4142 # type: =head1
4143 #: ../src/guestfs.pod:2147 ../fish/guestfish.pod:1058
4144 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4145 msgid "AUTHORS"
4146 msgstr ""
4147
4148 # type: textblock
4149 #: ../src/guestfs.pod:2149 ../fish/guestfish.pod:1060
4150 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4151 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4152 msgstr ""
4153
4154 # type: =head1
4155 #: ../src/guestfs.pod:2151 ../fish/guestfish.pod:1062
4156 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4157 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514
4158 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206
4159 #: ../tools/virt-tar.pl:296 ../tools/virt-make-fs.pl:563
4160 #: ../tools/virt-list-partitions.pl:273
4161 msgid "COPYRIGHT"
4162 msgstr ""
4163
4164 # type: textblock
4165 #: ../src/guestfs.pod:2153 ../fish/guestfish.pod:1064
4166 #: ../fuse/guestmount.pod:250
4167 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4168 msgstr ""
4169
4170 # type: textblock
4171 #: ../src/guestfs.pod:2156
4172 msgid ""
4173 "This library is free software; you can redistribute it and/or modify it "
4174 "under the terms of the GNU Lesser General Public License as published by the "
4175 "Free Software Foundation; either version 2 of the License, or (at your "
4176 "option) any later version."
4177 msgstr ""
4178
4179 # type: textblock
4180 #: ../src/guestfs.pod:2161
4181 msgid ""
4182 "This library is distributed in the hope that it will be useful, but WITHOUT "
4183 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4184 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4185 "for more details."
4186 msgstr ""
4187
4188 # type: textblock
4189 #: ../src/guestfs.pod:2166
4190 msgid ""
4191 "You should have received a copy of the GNU Lesser General Public License "
4192 "along with this library; if not, write to the Free Software Foundation, "
4193 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4194 msgstr ""
4195
4196 # type: =head2
4197 #: ../src/guestfs-actions.pod:1
4198 msgid "guestfs_add_cdrom"
4199 msgstr ""
4200
4201 # type: verbatim
4202 #: ../src/guestfs-actions.pod:3
4203 #, no-wrap
4204 msgid ""
4205 " int\n"
4206 " guestfs_add_cdrom (guestfs_h *g,\n"
4207 "                    const char *filename);\n"
4208 "\n"
4209 msgstr ""
4210
4211 # type: textblock
4212 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4213 msgid "This function adds a virtual CD-ROM disk image to the guest."
4214 msgstr ""
4215
4216 # type: textblock
4217 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4218 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4219 msgstr ""
4220
4221 # type: textblock
4222 #: ../src/guestfs-actions.pod:17
4223 msgid ""
4224 "This call checks for the existence of C<filename>.  This stops you from "
4225 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4226 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4227 "instead."
4228 msgstr ""
4229
4230 # type: textblock
4231 #: ../src/guestfs-actions.pod:24
4232 msgid ""
4233 "If you just want to add an ISO file (often you use this as an efficient way "
4234 "to transfer large files into the guest), then you should probably use "
4235 "C<guestfs_add_drive_ro> instead."
4236 msgstr ""
4237
4238 # type: textblock
4239 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:128
4240 #: ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:226
4241 #: ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261
4242 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:295
4243 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4244 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:489
4245 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4246 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:635
4247 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:664
4248 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
4249 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
4250 #: ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:990
4251 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1092
4252 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1129
4253 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1163
4254 #: ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1264
4255 #: ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1326
4256 #: ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1466
4257 #: ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1706
4258 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:2215
4259 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2420
4260 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3194
4261 #: ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3229
4262 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3368
4263 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3395
4264 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3446
4265 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3538
4266 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3578
4267 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3633
4268 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3671
4269 #: ../src/guestfs-actions.pod:3706 ../src/guestfs-actions.pod:3718
4270 #: ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3770
4271 #: ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:3798
4272 #: ../src/guestfs-actions.pod:3815 ../src/guestfs-actions.pod:3908
4273 #: ../src/guestfs-actions.pod:3928 ../src/guestfs-actions.pod:3941
4274 #: ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4010
4275 #: ../src/guestfs-actions.pod:4028 ../src/guestfs-actions.pod:4044
4276 #: ../src/guestfs-actions.pod:4058 ../src/guestfs-actions.pod:4072
4277 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4104
4278 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4173
4279 #: ../src/guestfs-actions.pod:4204 ../src/guestfs-actions.pod:4223
4280 #: ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4254
4281 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:4284
4282 #: ../src/guestfs-actions.pod:4299 ../src/guestfs-actions.pod:4314
4283 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:4364
4284 #: ../src/guestfs-actions.pod:4384 ../src/guestfs-actions.pod:4398
4285 #: ../src/guestfs-actions.pod:4415 ../src/guestfs-actions.pod:4464
4286 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4515
4287 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4560
4288 #: ../src/guestfs-actions.pod:4578 ../src/guestfs-actions.pod:4712
4289 #: ../src/guestfs-actions.pod:4769 ../src/guestfs-actions.pod:4791
4290 #: ../src/guestfs-actions.pod:4809 ../src/guestfs-actions.pod:4841
4291 #: ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4924
4292 #: ../src/guestfs-actions.pod:4937 ../src/guestfs-actions.pod:4951
4293 #: ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:5259
4294 #: ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5285
4295 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5311
4296 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5341
4297 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5381
4298 #: ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:5418
4299 #: ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5459
4300 #: ../src/guestfs-actions.pod:5478 ../src/guestfs-actions.pod:5499
4301 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5535
4302 #: ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5587
4303 #: ../src/guestfs-actions.pod:5606 ../src/guestfs-actions.pod:5630
4304 #: ../src/guestfs-actions.pod:5645 ../src/guestfs-actions.pod:5660
4305 #: ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5716
4306 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:5765
4307 #: ../src/guestfs-actions.pod:5873 ../src/guestfs-actions.pod:5994
4308 #: ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6019
4309 #: ../src/guestfs-actions.pod:6032 ../src/guestfs-actions.pod:6054
4310 #: ../src/guestfs-actions.pod:6067 ../src/guestfs-actions.pod:6080
4311 #: ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6108
4312 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6184
4313 #: ../src/guestfs-actions.pod:6200 ../src/guestfs-actions.pod:6216
4314 #: ../src/guestfs-actions.pod:6233 ../src/guestfs-actions.pod:6246
4315 #: ../src/guestfs-actions.pod:6266 ../src/guestfs-actions.pod:6302
4316 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6357
4317 #: ../src/guestfs-actions.pod:6370 ../src/guestfs-actions.pod:6388
4318 #: ../src/guestfs-actions.pod:6417 ../src/guestfs-actions.pod:6448
4319 #: ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6585
4320 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6654
4321 #: ../src/guestfs-actions.pod:6667 ../src/guestfs-actions.pod:6712
4322 #: ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6799
4323 #: ../src/guestfs-actions.pod:6825 ../src/guestfs-actions.pod:6891
4324 #: ../src/guestfs-actions.pod:6910 ../src/guestfs-actions.pod:6939
4325 msgid "This function returns 0 on success or -1 on error."
4326 msgstr ""
4327
4328 # type: textblock
4329 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:242
4330 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:28
4331 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4332 msgid ""
4333 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4334 "instead."
4335 msgstr ""
4336
4337 # type: textblock
4338 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:245
4339 #: ../src/guestfs-actions.pod:266 ../src/guestfs-actions.pod:1437
4340 #: ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1944
4341 #: ../src/guestfs-actions.pod:6833 ../src/guestfs-actions.pod:7002
4342 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156
4343 #: ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951
4344 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322
4345 #: ../fish/guestfish-actions.pod:4549 ../fish/guestfish-actions.pod:4646
4346 msgid ""
4347 "Deprecated functions will not be removed from the API, but the fact that "
4348 "they are deprecated indicates that there are problems with correct use of "
4349 "these functions."
4350 msgstr ""
4351
4352 # type: textblock
4353 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:130
4354 #: ../src/guestfs-actions.pod:1094 ../src/guestfs-actions.pod:1895
4355 #: ../src/guestfs-actions.pod:1993 ../src/guestfs-actions.pod:2096
4356 #: ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3211
4357 #: ../src/guestfs-actions.pod:4351 ../src/guestfs-actions.pod:5420
4358 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5647
4359 #: ../src/guestfs-actions.pod:6110 ../src/guestfs-actions.pod:6235
4360 #: ../src/guestfs-actions.pod:6747
4361 msgid "(Added in 0.3)"
4362 msgstr ""
4363
4364 # type: =head2
4365 #: ../src/guestfs-actions.pod:41
4366 msgid "guestfs_add_domain"
4367 msgstr ""
4368
4369 # type: verbatim
4370 #: ../src/guestfs-actions.pod:43
4371 #, no-wrap
4372 msgid ""
4373 " int\n"
4374 " guestfs_add_domain (guestfs_h *g,\n"
4375 "                     const char *dom,\n"
4376 "                     ...);\n"
4377 "\n"
4378 msgstr ""
4379
4380 # type: textblock
4381 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139
4382 msgid ""
4383 "You may supply a list of optional arguments to this call.  Use zero or more "
4384 "of the following pairs of parameters, and terminate the list with C<-1> on "
4385 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4386 msgstr ""
4387
4388 # type: verbatim
4389 #: ../src/guestfs-actions.pod:53
4390 #, no-wrap
4391 msgid ""
4392 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4393 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4394 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4395 "\n"
4396 msgstr ""
4397
4398 # type: textblock
4399 #: ../src/guestfs-actions.pod:57
4400 msgid ""
4401 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4402 "It works by connecting to libvirt, requesting the domain and domain XML from "
4403 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4404 "one."
4405 msgstr ""
4406
4407 # type: textblock
4408 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4409 msgid ""
4410 "The number of disks added is returned.  This operation is atomic: if an "
4411 "error is returned, then no disks are added."
4412 msgstr ""
4413
4414 # type: textblock
4415 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4416 msgid ""
4417 "This function does some minimal checks to make sure the libvirt domain is "
4418 "not running (unless C<readonly> is true).  In a future version we will try "
4419 "to acquire the libvirt lock on each disk."
4420 msgstr ""
4421
4422 # type: textblock
4423 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4424 msgid ""
4425 "Disks must be accessible locally.  This often means that adding disks from a "
4426 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4427 "unless those disks are accessible via the same device path locally too."
4428 msgstr ""
4429
4430 # type: textblock
4431 #: ../src/guestfs-actions.pod:74
4432 msgid ""
4433 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4434 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4435 "libvirt URI (or one set through an environment variable, see the libvirt "
4436 "documentation for full details).  If you are using the C API directly then "
4437 "it is more flexible to create the libvirt connection object yourself, get "
4438 "the domain object, and call C<guestfs_add_libvirt_dom>."
4439 msgstr ""
4440
4441 # type: textblock
4442 #: ../src/guestfs-actions.pod:82
4443 msgid ""
4444 "The other optional parameters are passed directly through to "
4445 "C<guestfs_add_drive_opts>."
4446 msgstr ""
4447
4448 # type: textblock
4449 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:338
4450 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:681
4451 #: ../src/guestfs-actions.pod:712 ../src/guestfs-actions.pod:730
4452 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:1309
4453 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1866
4454 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2005
4455 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2083
4456 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2634
4457 #: ../src/guestfs-actions.pod:2655 ../src/guestfs-actions.pod:4487
4458 #: ../src/guestfs-actions.pod:4615 ../src/guestfs-actions.pod:5021
4459 #: ../src/guestfs-actions.pod:5047 ../src/guestfs-actions.pod:6343
4460 #: ../src/guestfs-actions.pod:6758 ../src/guestfs-actions.pod:6771
4461 #: ../src/guestfs-actions.pod:6784
4462 msgid "On error this function returns -1."
4463 msgstr ""
4464
4465 # type: textblock
4466 #: ../src/guestfs-actions.pod:87
4467 msgid "(Added in 1.7.4)"
4468 msgstr ""
4469
4470 # type: =head2
4471 #: ../src/guestfs-actions.pod:89
4472 msgid "guestfs_add_domain_va"
4473 msgstr ""
4474
4475 # type: verbatim
4476 #: ../src/guestfs-actions.pod:91
4477 #, no-wrap
4478 msgid ""
4479 " int\n"
4480 " guestfs_add_domain_va (guestfs_h *g,\n"
4481 "                        const char *dom,\n"
4482 "                        va_list args);\n"
4483 "\n"
4484 msgstr ""
4485
4486 # type: textblock
4487 #: ../src/guestfs-actions.pod:96
4488 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4489 msgstr ""
4490
4491 # type: textblock
4492 #: ../src/guestfs-actions.pod:98 ../src/guestfs-actions.pod:109
4493 #: ../src/guestfs-actions.pod:202 ../src/guestfs-actions.pod:213
4494 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4495 msgstr ""
4496
4497 # type: =head2
4498 #: ../src/guestfs-actions.pod:100
4499 msgid "guestfs_add_domain_argv"
4500 msgstr ""
4501
4502 # type: verbatim
4503 #: ../src/guestfs-actions.pod:102
4504 #, no-wrap
4505 msgid ""
4506 " int\n"
4507 " guestfs_add_domain_argv (guestfs_h *g,\n"
4508 "                          const char *dom,\n"
4509 "                          const struct guestfs_add_domain_argv *optargs);\n"
4510 "\n"
4511 msgstr ""
4512
4513 # type: textblock
4514 #: ../src/guestfs-actions.pod:107
4515 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4516 msgstr ""
4517
4518 # type: =head2
4519 #: ../src/guestfs-actions.pod:111
4520 msgid "guestfs_add_drive"
4521 msgstr ""
4522
4523 # type: verbatim
4524 #: ../src/guestfs-actions.pod:113
4525 #, no-wrap
4526 msgid ""
4527 " int\n"
4528 " guestfs_add_drive (guestfs_h *g,\n"
4529 "                    const char *filename);\n"
4530 "\n"
4531 msgstr ""
4532
4533 # type: textblock
4534 #: ../src/guestfs-actions.pod:117
4535 msgid ""
4536 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4537 "optional parameters, so the disk is added writable, with the format being "
4538 "detected automatically."
4539 msgstr ""
4540
4541 # type: textblock
4542 #: ../src/guestfs-actions.pod:121
4543 msgid ""
4544 "Automatic detection of the format opens you up to a potential security hole "
4545 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4546 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4547 "you should think about replacing calls to this function with calls to "
4548 "C<guestfs_add_drive_opts>, and specifying the format."
4549 msgstr ""
4550
4551 # type: =head2
4552 #: ../src/guestfs-actions.pod:132
4553 msgid "guestfs_add_drive_opts"
4554 msgstr ""
4555
4556 # type: verbatim
4557 #: ../src/guestfs-actions.pod:134
4558 #, no-wrap
4559 msgid ""
4560 " int\n"
4561 " guestfs_add_drive_opts (guestfs_h *g,\n"
4562 "                         const char *filename,\n"
4563 "                         ...);\n"
4564 "\n"
4565 msgstr ""
4566
4567 # type: verbatim
4568 #: ../src/guestfs-actions.pod:144
4569 #, no-wrap
4570 msgid ""
4571 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4572 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4573 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4574 "\n"
4575 msgstr ""
4576
4577 # type: textblock
4578 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4579 msgid ""
4580 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4581 "The first time you call this function, the disk appears as C</dev/sda>, the "
4582 "second time as C</dev/sdb>, and so on."
4583 msgstr ""
4584
4585 # type: textblock
4586 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4587 msgid ""
4588 "You don't necessarily need to be root when using libguestfs.  However you "
4589 "obviously do need sufficient permissions to access the filename for whatever "
4590 "operations you want to perform (ie. read access if you just want to read the "
4591 "image or write access if you want to modify the image)."
4592 msgstr ""
4593
4594 # type: textblock
4595 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4596 msgid "This call checks that C<filename> exists."
4597 msgstr ""
4598
4599 # type: textblock
4600 #: ../src/guestfs-actions.pod:161 ../fish/guestfish-actions.pod:105
4601 msgid "The optional arguments are:"
4602 msgstr ""
4603
4604 # type: =item
4605 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4606 msgid "C<readonly>"
4607 msgstr ""
4608
4609 # type: textblock
4610 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4611 msgid ""
4612 "If true then the image is treated as read-only.  Writes are still allowed, "
4613 "but they are stored in a temporary snapshot overlay which is discarded at "
4614 "the end.  The disk that you add is not modified."
4615 msgstr ""
4616
4617 # type: =item
4618 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4619 msgid "C<format>"
4620 msgstr ""
4621
4622 # type: textblock
4623 #: ../src/guestfs-actions.pod:173
4624 msgid ""
4625 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4626 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4627 "Possible formats include C<raw> and C<qcow2>."
4628 msgstr ""
4629
4630 # type: textblock
4631 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4632 msgid ""
4633 "Automatic detection of the format opens you up to a potential security hole "
4634 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4635 "RHBZ#642934.  Specifying the format closes this security hole."
4636 msgstr ""
4637
4638 # type: =item
4639 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4640 msgid "C<iface>"
4641 msgstr ""
4642
4643 # type: textblock
4644 #: ../src/guestfs-actions.pod:184
4645 msgid ""
4646 "This rarely-used option lets you emulate the behaviour of the deprecated "
4647 "C<guestfs_add_drive_with_if> call (q.v.)"
4648 msgstr ""
4649
4650 # type: textblock
4651 #: ../src/guestfs-actions.pod:191
4652 msgid "(Added in 1.5.23)"
4653 msgstr ""
4654
4655 # type: =head2
4656 #: ../src/guestfs-actions.pod:193
4657 msgid "guestfs_add_drive_opts_va"
4658 msgstr ""
4659
4660 # type: verbatim
4661 #: ../src/guestfs-actions.pod:195
4662 #, no-wrap
4663 msgid ""
4664 " int\n"
4665 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4666 "                            const char *filename,\n"
4667 "                            va_list args);\n"
4668 "\n"
4669 msgstr ""
4670
4671 # type: textblock
4672 #: ../src/guestfs-actions.pod:200
4673 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4674 msgstr ""
4675
4676 # type: =head2
4677 #: ../src/guestfs-actions.pod:204
4678 msgid "guestfs_add_drive_opts_argv"
4679 msgstr ""
4680
4681 # type: verbatim
4682 #: ../src/guestfs-actions.pod:206
4683 #, no-wrap
4684 msgid ""
4685 " int\n"
4686 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4687 "                              const char *filename,\n"
4688 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4689 "\n"
4690 msgstr ""
4691
4692 # type: textblock
4693 #: ../src/guestfs-actions.pod:211
4694 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4695 msgstr ""
4696
4697 # type: =head2
4698 #: ../src/guestfs-actions.pod:215
4699 msgid "guestfs_add_drive_ro"
4700 msgstr ""
4701
4702 # type: verbatim
4703 #: ../src/guestfs-actions.pod:217
4704 #, no-wrap
4705 msgid ""
4706 " int\n"
4707 " guestfs_add_drive_ro (guestfs_h *g,\n"
4708 "                       const char *filename);\n"
4709 "\n"
4710 msgstr ""
4711
4712 # type: textblock
4713 #: ../src/guestfs-actions.pod:221
4714 msgid ""
4715 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4716 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4717 "disk is added read-only, with the format being detected automatically."
4718 msgstr ""
4719
4720 # type: textblock
4721 #: ../src/guestfs-actions.pod:228
4722 msgid "(Added in 1.0.38)"
4723 msgstr ""
4724
4725 # type: =head2
4726 #: ../src/guestfs-actions.pod:230
4727 msgid "guestfs_add_drive_ro_with_if"
4728 msgstr ""
4729
4730 # type: verbatim
4731 #: ../src/guestfs-actions.pod:232
4732 #, no-wrap
4733 msgid ""
4734 " int\n"
4735 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4736 "                               const char *filename,\n"
4737 "                               const char *iface);\n"
4738 "\n"
4739 msgstr ""
4740
4741 # type: textblock
4742 #: ../src/guestfs-actions.pod:237
4743 msgid ""
4744 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4745 "QEMU interface emulation to use at run time."
4746 msgstr ""
4747
4748 # type: textblock
4749 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
4750 #: ../src/guestfs-actions.pod:2305
4751 msgid "(Added in 1.0.84)"
4752 msgstr ""
4753
4754 # type: =head2
4755 #: ../src/guestfs-actions.pod:251
4756 msgid "guestfs_add_drive_with_if"
4757 msgstr ""
4758
4759 # type: verbatim
4760 #: ../src/guestfs-actions.pod:253
4761 #, no-wrap
4762 msgid ""
4763 " int\n"
4764 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4765 "                            const char *filename,\n"
4766 "                            const char *iface);\n"
4767 "\n"
4768 msgstr ""
4769
4770 # type: textblock
4771 #: ../src/guestfs-actions.pod:258
4772 msgid ""
4773 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4774 "QEMU interface emulation to use at run time."
4775 msgstr ""
4776
4777 # type: =head2
4778 #: ../src/guestfs-actions.pod:272
4779 msgid "guestfs_aug_clear"
4780 msgstr ""
4781
4782 # type: verbatim
4783 #: ../src/guestfs-actions.pod:274
4784 #, no-wrap
4785 msgid ""
4786 " int\n"
4787 " guestfs_aug_clear (guestfs_h *g,\n"
4788 "                    const char *augpath);\n"
4789 "\n"
4790 msgstr ""
4791
4792 # type: textblock
4793 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4794 msgid ""
4795 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4796 "L<augtool(1)> C<clear> command."
4797 msgstr ""
4798
4799 # type: textblock
4800 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4801 msgid "(Added in 1.3.4)"
4802 msgstr ""
4803
4804 # type: =head2
4805 #: ../src/guestfs-actions.pod:285
4806 msgid "guestfs_aug_close"
4807 msgstr ""
4808
4809 # type: verbatim
4810 #: ../src/guestfs-actions.pod:287
4811 #, no-wrap
4812 msgid ""
4813 " int\n"
4814 " guestfs_aug_close (guestfs_h *g);\n"
4815 "\n"
4816 msgstr ""
4817
4818 # type: textblock
4819 #: ../src/guestfs-actions.pod:290
4820 msgid ""
4821 "Close the current Augeas handle and free up any resources used by it.  After "
4822 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4823 "any other Augeas functions."
4824 msgstr ""
4825
4826 # type: textblock
4827 #: ../src/guestfs-actions.pod:297 ../src/guestfs-actions.pod:322
4828 #: ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:354
4829 #: ../src/guestfs-actions.pod:412 ../src/guestfs-actions.pod:432
4830 #: ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:477
4831 #: ../src/guestfs-actions.pod:491 ../src/guestfs-actions.pod:505
4832 #: ../src/guestfs-actions.pod:519 ../src/guestfs-actions.pod:537
4833 #: ../src/guestfs-actions.pod:5098
4834 msgid "(Added in 0.7)"
4835 msgstr ""
4836
4837 # type: =head2
4838 #: ../src/guestfs-actions.pod:299
4839 msgid "guestfs_aug_defnode"
4840 msgstr ""
4841
4842 # type: verbatim
4843 #: ../src/guestfs-actions.pod:301
4844 #, no-wrap
4845 msgid ""
4846 " struct guestfs_int_bool *\n"
4847 " guestfs_aug_defnode (guestfs_h *g,\n"
4848 "                      const char *name,\n"
4849 "                      const char *expr,\n"
4850 "                      const char *val);\n"
4851 "\n"
4852 msgstr ""
4853
4854 # type: textblock
4855 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4856 msgid ""
4857 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4858 msgstr ""
4859
4860 # type: textblock
4861 #: ../src/guestfs-actions.pod:310
4862 msgid ""
4863 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4864 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4865 "containing that single node."
4866 msgstr ""
4867
4868 # type: textblock
4869 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4870 msgid ""
4871 "On success this returns a pair containing the number of nodes in the "
4872 "nodeset, and a boolean flag if a node was created."
4873 msgstr ""
4874
4875 # type: textblock
4876 #: ../src/guestfs-actions.pod:318
4877 msgid ""
4878 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4879 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4880 msgstr ""
4881
4882 # type: =head2
4883 #: ../src/guestfs-actions.pod:324
4884 msgid "guestfs_aug_defvar"
4885 msgstr ""
4886
4887 # type: verbatim
4888 #: ../src/guestfs-actions.pod:326
4889 #, no-wrap
4890 msgid ""
4891 " int\n"
4892 " guestfs_aug_defvar (guestfs_h *g,\n"
4893 "                     const char *name,\n"
4894 "                     const char *expr);\n"
4895 "\n"
4896 msgstr ""
4897
4898 # type: textblock
4899 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
4900 msgid ""
4901 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4902 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4903 msgstr ""
4904
4905 # type: textblock
4906 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
4907 msgid ""
4908 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4909 "evaluates to something which is not a nodeset."
4910 msgstr ""
4911
4912 # type: =head2
4913 #: ../src/guestfs-actions.pod:342
4914 msgid "guestfs_aug_get"
4915 msgstr ""
4916
4917 # type: verbatim
4918 #: ../src/guestfs-actions.pod:344
4919 #, no-wrap
4920 msgid ""
4921 " char *\n"
4922 " guestfs_aug_get (guestfs_h *g,\n"
4923 "                  const char *augpath);\n"
4924 "\n"
4925 msgstr ""
4926
4927 # type: textblock
4928 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
4929 msgid ""
4930 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4931 "node, the C<value> is returned."
4932 msgstr ""
4933
4934 # type: textblock
4935 #: ../src/guestfs-actions.pod:351 ../src/guestfs-actions.pod:851
4936 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:929
4937 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1048
4938 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1195
4939 #: ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1343
4940 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1646
4941 #: ../src/guestfs-actions.pod:1809 ../src/guestfs-actions.pod:1826
4942 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:1938
4943 #: ../src/guestfs-actions.pod:2108 ../src/guestfs-actions.pod:2270
4944 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2558
4945 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2716
4946 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2771
4947 #: ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2856
4948 #: ../src/guestfs-actions.pod:3340 ../src/guestfs-actions.pod:3690
4949 #: ../src/guestfs-actions.pod:3860 ../src/guestfs-actions.pod:3970
4950 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4826
4951 #: ../src/guestfs-actions.pod:4996 ../src/guestfs-actions.pod:5174
4952 #: ../src/guestfs-actions.pod:5223 ../src/guestfs-actions.pod:5786
4953 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5819
4954 #: ../src/guestfs-actions.pod:5843 ../src/guestfs-actions.pod:6507
4955 #: ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6544
4956 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6996
4957 msgid ""
4958 "This function returns a string, or NULL on error.  I<The caller must free "
4959 "the returned string after use>."
4960 msgstr ""
4961
4962 # type: =head2
4963 #: ../src/guestfs-actions.pod:356
4964 msgid "guestfs_aug_init"
4965 msgstr ""
4966
4967 # type: verbatim
4968 #: ../src/guestfs-actions.pod:358
4969 #, no-wrap
4970 msgid ""
4971 " int\n"
4972 " guestfs_aug_init (guestfs_h *g,\n"
4973 "                   const char *root,\n"
4974 "                   int flags);\n"
4975 "\n"
4976 msgstr ""
4977
4978 # type: textblock
4979 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
4980 msgid ""
4981 "Create a new Augeas handle for editing configuration files.  If there was "
4982 "any previous Augeas handle associated with this guestfs session, then it is "
4983 "closed."
4984 msgstr ""
4985
4986 # type: textblock
4987 #: ../src/guestfs-actions.pod:367
4988 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4989 msgstr ""
4990
4991 # type: textblock
4992 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
4993 msgid ""
4994 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4995 msgstr ""
4996
4997 # type: textblock
4998 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
4999 msgid ""
5000 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5001 "logical I<or> of the following integers:"
5002 msgstr ""
5003
5004 # type: =item
5005 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
5006 msgid "C<AUG_SAVE_BACKUP> = 1"
5007 msgstr ""
5008
5009 # type: textblock
5010 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
5011 msgid "Keep the original file with a C<.augsave> extension."
5012 msgstr ""
5013
5014 # type: =item
5015 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
5016 msgid "C<AUG_SAVE_NEWFILE> = 2"
5017 msgstr ""
5018
5019 # type: textblock
5020 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
5021 msgid ""
5022 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5023 "original.  Overrides C<AUG_SAVE_BACKUP>."
5024 msgstr ""
5025
5026 # type: =item
5027 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
5028 msgid "C<AUG_TYPE_CHECK> = 4"
5029 msgstr ""
5030
5031 # type: textblock
5032 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
5033 msgid "Typecheck lenses (can be expensive)."
5034 msgstr ""
5035
5036 # type: =item
5037 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
5038 msgid "C<AUG_NO_STDINC> = 8"
5039 msgstr ""
5040
5041 # type: textblock
5042 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
5043 msgid "Do not use standard load path for modules."
5044 msgstr ""
5045
5046 # type: =item
5047 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
5048 msgid "C<AUG_SAVE_NOOP> = 16"
5049 msgstr ""
5050
5051 # type: textblock
5052 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
5053 msgid "Make save a no-op, just record what would have been changed."
5054 msgstr ""
5055
5056 # type: =item
5057 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
5058 msgid "C<AUG_NO_LOAD> = 32"
5059 msgstr ""
5060
5061 # type: textblock
5062 #: ../src/guestfs-actions.pod:402
5063 msgid "Do not load the tree in C<guestfs_aug_init>."
5064 msgstr ""
5065
5066 # type: textblock
5067 #: ../src/guestfs-actions.pod:406
5068 msgid "To close the handle, you can call C<guestfs_aug_close>."
5069 msgstr ""
5070
5071 # type: textblock
5072 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
5073 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5074 msgstr ""
5075
5076 # type: =head2
5077 #: ../src/guestfs-actions.pod:414
5078 msgid "guestfs_aug_insert"
5079 msgstr ""
5080
5081 # type: verbatim
5082 #: ../src/guestfs-actions.pod:416
5083 #, no-wrap
5084 msgid ""
5085 " int\n"
5086 " guestfs_aug_insert (guestfs_h *g,\n"
5087 "                     const char *augpath,\n"
5088 "                     const char *label,\n"
5089 "                     int before);\n"
5090 "\n"
5091 msgstr ""
5092
5093 # type: textblock
5094 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
5095 msgid ""
5096 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5097 "or after C<path> (depending on the boolean flag C<before>)."
5098 msgstr ""
5099
5100 # type: textblock
5101 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
5102 msgid ""
5103 "C<path> must match exactly one existing node in the tree, and C<label> must "
5104 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5105 msgstr ""
5106
5107 # type: =head2
5108 #: ../src/guestfs-actions.pod:434
5109 msgid "guestfs_aug_load"
5110 msgstr ""
5111
5112 # type: verbatim
5113 #: ../src/guestfs-actions.pod:436
5114 #, no-wrap
5115 msgid ""
5116 " int\n"
5117 " guestfs_aug_load (guestfs_h *g);\n"
5118 "\n"
5119 msgstr ""
5120
5121 # type: textblock
5122 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
5123 msgid "Load files into the tree."
5124 msgstr ""
5125
5126 # type: textblock
5127 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
5128 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5129 msgstr ""
5130
5131 # type: =head2
5132 #: ../src/guestfs-actions.pod:448
5133 msgid "guestfs_aug_ls"
5134 msgstr ""
5135
5136 # type: verbatim
5137 #: ../src/guestfs-actions.pod:450
5138 #, no-wrap
5139 msgid ""
5140 " char **\n"
5141 " guestfs_aug_ls (guestfs_h *g,\n"
5142 "                 const char *augpath);\n"
5143 "\n"
5144 msgstr ""
5145
5146 # type: textblock
5147 #: ../src/guestfs-actions.pod:454
5148 msgid ""
5149 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5150 "sorting the resulting nodes into alphabetical order."
5151 msgstr ""
5152
5153 # type: textblock
5154 #: ../src/guestfs-actions.pod:457 ../src/guestfs-actions.pod:473
5155 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:1067
5156 #: ../src/guestfs-actions.pod:1358 ../src/guestfs-actions.pod:1377
5157 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1499
5158 #: ../src/guestfs-actions.pod:1748 ../src/guestfs-actions.pod:2150
5159 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2185
5160 #: ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:2252
5161 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2372
5162 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:2790
5163 #: ../src/guestfs-actions.pod:3005 ../src/guestfs-actions.pod:3260
5164 #: ../src/guestfs-actions.pod:3322 ../src/guestfs-actions.pod:3427
5165 #: ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:4448
5166 #: ../src/guestfs-actions.pod:4968 ../src/guestfs-actions.pod:5094
5167 #: ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:5859
5168 #: ../src/guestfs-actions.pod:5920 ../src/guestfs-actions.pod:5975
5169 #: ../src/guestfs-actions.pod:6121 ../src/guestfs-actions.pod:6145
5170 #: ../src/guestfs-actions.pod:6617 ../src/guestfs-actions.pod:6637
5171 #: ../src/guestfs-actions.pod:6684 ../src/guestfs-actions.pod:6849
5172 #: ../src/guestfs-actions.pod:6868 ../src/guestfs-actions.pod:6953
5173 #: ../src/guestfs-actions.pod:6972 ../src/guestfs-actions.pod:7018
5174 #: ../src/guestfs-actions.pod:7037
5175 msgid ""
5176 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5177 ">), or NULL if there was an error.  I<The caller must free the strings and "
5178 "the array after use>."
5179 msgstr ""
5180
5181 # type: textblock
5182 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:992
5183 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:1415
5184 #: ../src/guestfs-actions.pod:3083 ../src/guestfs-actions.pod:3114
5185 #: ../src/guestfs-actions.pod:3673 ../src/guestfs-actions.pod:3723
5186 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3943
5187 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4452
5188 #: ../src/guestfs-actions.pod:4909 ../src/guestfs-actions.pod:5287
5189 #: ../src/guestfs-actions.pod:5301 ../src/guestfs-actions.pod:5313
5190 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:6359
5191 #: ../src/guestfs-actions.pod:6372 ../src/guestfs-actions.pod:6601
5192 #: ../src/guestfs-actions.pod:6804 ../src/guestfs-actions.pod:6837
5193 msgid "(Added in 0.8)"
5194 msgstr ""
5195
5196 # type: =head2
5197 #: ../src/guestfs-actions.pod:463
5198 msgid "guestfs_aug_match"
5199 msgstr ""
5200
5201 # type: verbatim
5202 #: ../src/guestfs-actions.pod:465
5203 #, no-wrap
5204 msgid ""
5205 " char **\n"
5206 " guestfs_aug_match (guestfs_h *g,\n"
5207 "                    const char *augpath);\n"
5208 "\n"
5209 msgstr ""
5210
5211 # type: textblock
5212 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
5213 msgid ""
5214 "Returns a list of paths which match the path expression C<path>.  The "
5215 "returned paths are sufficiently qualified so that they match exactly one "
5216 "node in the current tree."
5217 msgstr ""
5218
5219 # type: =head2
5220 #: ../src/guestfs-actions.pod:479
5221 msgid "guestfs_aug_mv"
5222 msgstr ""
5223
5224 # type: verbatim
5225 #: ../src/guestfs-actions.pod:481
5226 #, no-wrap
5227 msgid ""
5228 " int\n"
5229 " guestfs_aug_mv (guestfs_h *g,\n"
5230 "                 const char *src,\n"
5231 "                 const char *dest);\n"
5232 "\n"
5233 msgstr ""
5234
5235 # type: textblock
5236 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
5237 msgid ""
5238 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5239 "C<dest> is overwritten if it exists."
5240 msgstr ""
5241
5242 # type: =head2
5243 #: ../src/guestfs-actions.pod:493
5244 msgid "guestfs_aug_rm"
5245 msgstr ""
5246
5247 # type: verbatim
5248 #: ../src/guestfs-actions.pod:495
5249 #, no-wrap
5250 msgid ""
5251 " int\n"
5252 " guestfs_aug_rm (guestfs_h *g,\n"
5253 "                 const char *augpath);\n"
5254 "\n"
5255 msgstr ""
5256
5257 # type: textblock
5258 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5259 msgid "Remove C<path> and all of its children."
5260 msgstr ""
5261
5262 # type: textblock
5263 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5264 msgid "On success this returns the number of entries which were removed."
5265 msgstr ""
5266
5267 # type: =head2
5268 #: ../src/guestfs-actions.pod:507
5269 msgid "guestfs_aug_save"
5270 msgstr ""
5271
5272 # type: verbatim
5273 #: ../src/guestfs-actions.pod:509
5274 #, no-wrap
5275 msgid ""
5276 " int\n"
5277 " guestfs_aug_save (guestfs_h *g);\n"
5278 "\n"
5279 msgstr ""
5280
5281 # type: textblock
5282 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5283 msgid "This writes all pending changes to disk."
5284 msgstr ""
5285
5286 # type: textblock
5287 #: ../src/guestfs-actions.pod:514
5288 msgid ""
5289 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5290 "are saved."
5291 msgstr ""
5292
5293 # type: =head2
5294 #: ../src/guestfs-actions.pod:521
5295 msgid "guestfs_aug_set"
5296 msgstr ""
5297
5298 # type: verbatim
5299 #: ../src/guestfs-actions.pod:523
5300 #, no-wrap
5301 msgid ""
5302 " int\n"
5303 " guestfs_aug_set (guestfs_h *g,\n"
5304 "                  const char *augpath,\n"
5305 "                  const char *val);\n"
5306 "\n"
5307 msgstr ""
5308
5309 # type: textblock
5310 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5311 msgid "Set the value associated with C<path> to C<val>."
5312 msgstr ""
5313
5314 # type: textblock
5315 #: ../src/guestfs-actions.pod:530
5316 msgid ""
5317 "In the Augeas API, it is possible to clear a node by setting the value to "
5318 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5319 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5320 msgstr ""
5321
5322 # type: =head2
5323 #: ../src/guestfs-actions.pod:539
5324 msgid "guestfs_available"
5325 msgstr ""
5326
5327 # type: verbatim
5328 #: ../src/guestfs-actions.pod:541
5329 #, no-wrap
5330 msgid ""
5331 " int\n"
5332 " guestfs_available (guestfs_h *g,\n"
5333 "                    char *const *groups);\n"
5334 "\n"
5335 msgstr ""
5336
5337 # type: textblock
5338 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5339 msgid ""
5340 "This command is used to check the availability of some groups of "
5341 "functionality in the appliance, which not all builds of the libguestfs "
5342 "appliance will be able to provide."
5343 msgstr ""
5344
5345 # type: textblock
5346 #: ../src/guestfs-actions.pod:549
5347 msgid ""
5348 "The libguestfs groups, and the functions that those groups correspond to, "
5349 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5350 "runtime by calling C<guestfs_available_all_groups>."
5351 msgstr ""
5352
5353 # type: textblock
5354 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5355 msgid ""
5356 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5357 "\"]> would check for the availability of the Linux inotify functions and "
5358 "Augeas (configuration file editing) functions."
5359 msgstr ""
5360
5361 # type: textblock
5362 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5363 msgid "The command returns no error if I<all> requested groups are available."
5364 msgstr ""
5365
5366 # type: textblock
5367 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5368 msgid ""
5369 "It fails with an error if one or more of the requested groups is unavailable "
5370 "in the appliance."
5371 msgstr ""
5372
5373 # type: textblock
5374 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5375 msgid ""
5376 "If an unknown group name is included in the list of groups then an error is "
5377 "always returned."
5378 msgstr ""
5379
5380 # type: textblock
5381 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5382 msgid "I<Notes:>"
5383 msgstr ""
5384
5385 # type: textblock
5386 #: ../src/guestfs-actions.pod:573
5387 msgid "You must call C<guestfs_launch> before calling this function."
5388 msgstr ""
5389
5390 # type: textblock
5391 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5392 msgid ""
5393 "The reason is because we don't know what groups are supported by the "
5394 "appliance/daemon until it is running and can be queried."
5395 msgstr ""
5396
5397 # type: textblock
5398 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5399 msgid ""
5400 "If a group of functions is available, this does not necessarily mean that "
5401 "they will work.  You still have to check for errors when calling individual "
5402 "API functions even if they are available."
5403 msgstr ""
5404
5405 # type: textblock
5406 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5407 msgid ""
5408 "It is usually the job of distro packagers to build complete functionality "
5409 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5410 "with all requirements satisfied, will support everything."
5411 msgstr ""
5412
5413 # type: textblock
5414 #: ../src/guestfs-actions.pod:595
5415 msgid ""
5416 "This call was added in version C<1.0.80>.  In previous versions of "
5417 "libguestfs all you could do would be to speculatively execute a command to "
5418 "find out if the daemon implemented it.  See also C<guestfs_version>."
5419 msgstr ""
5420
5421 # type: textblock
5422 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5423 msgid "(Added in 1.0.80)"
5424 msgstr ""
5425
5426 # type: =head2
5427 #: ../src/guestfs-actions.pod:606
5428 msgid "guestfs_available_all_groups"
5429 msgstr ""
5430
5431 # type: verbatim
5432 #: ../src/guestfs-actions.pod:608
5433 #, no-wrap
5434 msgid ""
5435 " char **\n"
5436 " guestfs_available_all_groups (guestfs_h *g);\n"
5437 "\n"
5438 msgstr ""
5439
5440 # type: textblock
5441 #: ../src/guestfs-actions.pod:611
5442 msgid ""
5443 "This command returns a list of all optional groups that this daemon knows "
5444 "about.  Note this returns both supported and unsupported groups.  To find "
5445 "out which ones the daemon can actually support you have to call "
5446 "C<guestfs_available> on each member of the returned list."
5447 msgstr ""
5448
5449 # type: textblock
5450 #: ../src/guestfs-actions.pod:617
5451 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5452 msgstr ""
5453
5454 # type: textblock
5455 #: ../src/guestfs-actions.pod:623
5456 msgid "(Added in 1.3.15)"
5457 msgstr ""
5458
5459 # type: =head2
5460 #: ../src/guestfs-actions.pod:625
5461 msgid "guestfs_base64_in"
5462 msgstr ""
5463
5464 # type: verbatim
5465 #: ../src/guestfs-actions.pod:627
5466 #, no-wrap
5467 msgid ""
5468 " int\n"
5469 " guestfs_base64_in (guestfs_h *g,\n"
5470 "                    const char *base64file,\n"
5471 "                    const char *filename);\n"
5472 "\n"
5473 msgstr ""
5474
5475 # type: textblock
5476 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5477 msgid ""
5478 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5479 msgstr ""
5480
5481 # type: textblock
5482 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5483 msgid "(Added in 1.3.5)"
5484 msgstr ""
5485
5486 # type: =head2
5487 #: ../src/guestfs-actions.pod:639
5488 msgid "guestfs_base64_out"
5489 msgstr ""
5490
5491 # type: verbatim
5492 #: ../src/guestfs-actions.pod:641
5493 #, no-wrap
5494 msgid ""
5495 " int\n"
5496 " guestfs_base64_out (guestfs_h *g,\n"
5497 "                     const char *filename,\n"
5498 "                     const char *base64file);\n"
5499 "\n"
5500 msgstr ""
5501
5502 # type: textblock
5503 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5504 msgid ""
5505 "This command downloads the contents of C<filename>, writing it out to local "
5506 "file C<base64file> encoded as base64."
5507 msgstr ""
5508
5509 # type: =head2
5510 #: ../src/guestfs-actions.pod:653
5511 msgid "guestfs_blockdev_flushbufs"
5512 msgstr ""
5513
5514 # type: verbatim
5515 #: ../src/guestfs-actions.pod:655
5516 #, no-wrap
5517 msgid ""
5518 " int\n"
5519 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5520 "                             const char *device);\n"
5521 "\n"
5522 msgstr ""
5523
5524 # type: textblock
5525 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5526 msgid ""
5527 "This tells the kernel to flush internal buffers associated with C<device>."
5528 msgstr ""
5529
5530 # type: textblock
5531 #: ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:679
5532 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:710
5533 #: ../src/guestfs-actions.pod:728 ../src/guestfs-actions.pod:747
5534 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
5535 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
5536 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5537 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5538 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5539 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5540 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5541 msgid "This uses the L<blockdev(8)> command."
5542 msgstr ""
5543
5544 # type: textblock
5545 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:683
5546 #: ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:714
5547 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:751
5548 #: ../src/guestfs-actions.pod:765 ../src/guestfs-actions.pod:783
5549 #: ../src/guestfs-actions.pod:797 ../src/guestfs-actions.pod:811
5550 msgid "(Added in 0.9.3)"
5551 msgstr ""
5552
5553 # type: =head2
5554 #: ../src/guestfs-actions.pod:668
5555 msgid "guestfs_blockdev_getbsz"
5556 msgstr ""
5557
5558 # type: verbatim
5559 #: ../src/guestfs-actions.pod:670
5560 #, no-wrap
5561 msgid ""
5562 " int\n"
5563 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5564 "                          const char *device);\n"
5565 "\n"
5566 msgstr ""
5567
5568 # type: textblock
5569 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5570 msgid "This returns the block size of a device."
5571 msgstr ""
5572
5573 # type: textblock
5574 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776
5575 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5576 msgid ""
5577 "(Note this is different from both I<size in blocks> and I<filesystem block "
5578 "size>)."
5579 msgstr ""
5580
5581 # type: =head2
5582 #: ../src/guestfs-actions.pod:685
5583 msgid "guestfs_blockdev_getro"
5584 msgstr ""
5585
5586 # type: verbatim
5587 #: ../src/guestfs-actions.pod:687
5588 #, no-wrap
5589 msgid ""
5590 " int\n"
5591 " guestfs_blockdev_getro (guestfs_h *g,\n"
5592 "                         const char *device);\n"
5593 "\n"
5594 msgstr ""
5595
5596 # type: textblock
5597 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5598 msgid ""
5599 "Returns a boolean indicating if the block device is read-only (true if read-"
5600 "only, false if not)."
5601 msgstr ""
5602
5603 # type: textblock
5604 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:1398
5605 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1893
5606 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1976
5607 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2046
5608 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2094
5609 #: ../src/guestfs-actions.pod:3022 ../src/guestfs-actions.pod:3036
5610 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3065
5611 #: ../src/guestfs-actions.pod:3081 ../src/guestfs-actions.pod:3096
5612 #: ../src/guestfs-actions.pod:3112 ../src/guestfs-actions.pod:3126
5613 #: ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3153
5614 #: ../src/guestfs-actions.pod:3168 ../src/guestfs-actions.pod:3183
5615 #: ../src/guestfs-actions.pod:4597
5616 msgid "This function returns a C truth value on success or -1 on error."
5617 msgstr ""
5618
5619 # type: =head2
5620 #: ../src/guestfs-actions.pod:700
5621 msgid "guestfs_blockdev_getsize64"
5622 msgstr ""
5623
5624 # type: verbatim
5625 #: ../src/guestfs-actions.pod:702
5626 #, no-wrap
5627 msgid ""
5628 " int64_t\n"
5629 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5630 "                             const char *device);\n"
5631 "\n"
5632 msgstr ""
5633
5634 # type: textblock
5635 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5636 msgid "This returns the size of the device in bytes."
5637 msgstr ""
5638
5639 # type: textblock
5640 #: ../src/guestfs-actions.pod:708
5641 msgid "See also C<guestfs_blockdev_getsz>."
5642 msgstr ""
5643
5644 # type: =head2
5645 #: ../src/guestfs-actions.pod:716
5646 msgid "guestfs_blockdev_getss"
5647 msgstr ""
5648
5649 # type: verbatim
5650 #: ../src/guestfs-actions.pod:718
5651 #, no-wrap
5652 msgid ""
5653 " int\n"
5654 " guestfs_blockdev_getss (guestfs_h *g,\n"
5655 "                         const char *device);\n"
5656 "\n"
5657 msgstr ""
5658
5659 # type: textblock
5660 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5661 msgid ""
5662 "This returns the size of sectors on a block device.  Usually 512, but can be "
5663 "larger for modern devices."
5664 msgstr ""
5665
5666 # type: textblock
5667 #: ../src/guestfs-actions.pod:725
5668 msgid ""
5669 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5670 "that)."
5671 msgstr ""
5672
5673 # type: =head2
5674 #: ../src/guestfs-actions.pod:734
5675 msgid "guestfs_blockdev_getsz"
5676 msgstr ""
5677
5678 # type: verbatim
5679 #: ../src/guestfs-actions.pod:736
5680 #, no-wrap
5681 msgid ""
5682 " int64_t\n"
5683 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5684 "                         const char *device);\n"
5685 "\n"
5686 msgstr ""
5687
5688 # type: textblock
5689 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5690 msgid ""
5691 "This returns the size of the device in units of 512-byte sectors (even if "
5692 "the sectorsize isn't 512 bytes ... weird)."
5693 msgstr ""
5694
5695 # type: textblock
5696 #: ../src/guestfs-actions.pod:743
5697 msgid ""
5698 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5699 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5700 msgstr ""
5701
5702 # type: =head2
5703 #: ../src/guestfs-actions.pod:753
5704 msgid "guestfs_blockdev_rereadpt"
5705 msgstr ""
5706
5707 # type: verbatim
5708 #: ../src/guestfs-actions.pod:755
5709 #, no-wrap
5710 msgid ""
5711 " int\n"
5712 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5713 "                            const char *device);\n"
5714 "\n"
5715 msgstr ""
5716
5717 # type: textblock
5718 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5719 msgid "Reread the partition table on C<device>."
5720 msgstr ""
5721
5722 # type: =head2
5723 #: ../src/guestfs-actions.pod:767
5724 msgid "guestfs_blockdev_setbsz"
5725 msgstr ""
5726
5727 # type: verbatim
5728 #: ../src/guestfs-actions.pod:769
5729 #, no-wrap
5730 msgid ""
5731 " int\n"
5732 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5733 "                          const char *device,\n"
5734 "                          int blocksize);\n"
5735 "\n"
5736 msgstr ""
5737
5738 # type: textblock
5739 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5740 msgid "This sets the block size of a device."
5741 msgstr ""
5742
5743 # type: =head2
5744 #: ../src/guestfs-actions.pod:785
5745 msgid "guestfs_blockdev_setro"
5746 msgstr ""
5747
5748 # type: verbatim
5749 #: ../src/guestfs-actions.pod:787
5750 #, no-wrap
5751 msgid ""
5752 " int\n"
5753 " guestfs_blockdev_setro (guestfs_h *g,\n"
5754 "                         const char *device);\n"
5755 "\n"
5756 msgstr ""
5757
5758 # type: textblock
5759 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5760 msgid "Sets the block device named C<device> to read-only."
5761 msgstr ""
5762
5763 # type: =head2
5764 #: ../src/guestfs-actions.pod:799
5765 msgid "guestfs_blockdev_setrw"
5766 msgstr ""
5767
5768 # type: verbatim
5769 #: ../src/guestfs-actions.pod:801
5770 #, no-wrap
5771 msgid ""
5772 " int\n"
5773 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5774 "                         const char *device);\n"
5775 "\n"
5776 msgstr ""
5777
5778 # type: textblock
5779 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5780 msgid "Sets the block device named C<device> to read-write."
5781 msgstr ""
5782
5783 # type: =head2
5784 #: ../src/guestfs-actions.pod:813
5785 msgid "guestfs_case_sensitive_path"
5786 msgstr ""
5787
5788 # type: verbatim
5789 #: ../src/guestfs-actions.pod:815
5790 #, no-wrap
5791 msgid ""
5792 " char *\n"
5793 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5794 "                              const char *path);\n"
5795 "\n"
5796 msgstr ""
5797
5798 # type: textblock
5799 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5800 msgid ""
5801 "This can be used to resolve case insensitive paths on a filesystem which is "
5802 "case sensitive.  The use case is to resolve paths which you have read from "
5803 "Windows configuration files or the Windows Registry, to the true path."
5804 msgstr ""
5805
5806 # type: textblock
5807 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5808 msgid ""
5809 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5810 "(and probably others), which is that although the underlying filesystem is "
5811 "case-insensitive, the driver exports the filesystem to Linux as case-"
5812 "sensitive."
5813 msgstr ""
5814
5815 # type: textblock
5816 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5817 msgid ""
5818 "One consequence of this is that special directories such as C<c:\\windows> "
5819 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5820 "precise details of how they were created.  In Windows itself this would not "
5821 "be a problem."
5822 msgstr ""
5823
5824 # type: textblock
5825 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5826 msgid ""
5827 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5828 "#posixfilenames1>"
5829 msgstr ""
5830
5831 # type: textblock
5832 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5833 msgid ""
5834 "This function resolves the true case of each element in the path and returns "
5835 "the case-sensitive path."
5836 msgstr ""
5837
5838 # type: textblock
5839 #: ../src/guestfs-actions.pod:841
5840 msgid ""
5841 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5842 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5843 "how the directories were originally created under Windows)."
5844 msgstr ""
5845
5846 # type: textblock
5847 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5848 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5849 msgstr ""
5850
5851 # type: textblock
5852 #: ../src/guestfs-actions.pod:849
5853 msgid "See also C<guestfs_realpath>."
5854 msgstr ""
5855
5856 # type: textblock
5857 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6529
5858 msgid "(Added in 1.0.75)"
5859 msgstr ""
5860
5861 # type: =head2
5862 #: ../src/guestfs-actions.pod:856
5863 msgid "guestfs_cat"
5864 msgstr ""
5865
5866 # type: verbatim
5867 #: ../src/guestfs-actions.pod:858
5868 #, no-wrap
5869 msgid ""
5870 " char *\n"
5871 " guestfs_cat (guestfs_h *g,\n"
5872 "              const char *path);\n"
5873 "\n"
5874 msgstr ""
5875
5876 # type: textblock
5877 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5084
5878 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5879 msgid "Return the contents of the file named C<path>."
5880 msgstr ""
5881
5882 # type: textblock
5883 #: ../src/guestfs-actions.pod:864
5884 msgid ""
5885 "Note that this function cannot correctly handle binary files (specifically, "
5886 "files containing C<\\0> character which is treated as end of string).  For "
5887 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5888 "functions which have a more complex interface."
5889 msgstr ""
5890
5891 # type: textblock
5892 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1051
5893 #: ../src/guestfs-actions.pod:1071 ../src/guestfs-actions.pod:1362
5894 #: ../src/guestfs-actions.pod:1381 ../src/guestfs-actions.pod:1484
5895 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:1752
5896 #: ../src/guestfs-actions.pod:2170 ../src/guestfs-actions.pod:2189
5897 #: ../src/guestfs-actions.pod:2232 ../src/guestfs-actions.pod:2256
5898 #: ../src/guestfs-actions.pod:2273 ../src/guestfs-actions.pod:2302
5899 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4892
5900 #: ../src/guestfs-actions.pod:5023 ../src/guestfs-actions.pod:5049
5901 #: ../src/guestfs-actions.pod:5073 ../src/guestfs-actions.pod:5924
5902 #: ../src/guestfs-actions.pod:5979 ../src/guestfs-actions.pod:6125
5903 #: ../src/guestfs-actions.pod:6149 ../src/guestfs-actions.pod:6801
5904 #: ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6853
5905 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6957
5906 #: ../src/guestfs-actions.pod:6976 ../src/guestfs-actions.pod:7022
5907 #: ../src/guestfs-actions.pod:7041 ../fish/guestfish-actions.pod:582
5908 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5909 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5910 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5911 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5912 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5913 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5914 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3263
5915 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3354
5916 #: ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3386
5917 #: ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:4015
5918 #: ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4115
5919 #: ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:4543
5920 #: ../fish/guestfish-actions.pod:4560 ../fish/guestfish-actions.pod:4570
5921 #: ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4628
5922 #: ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4667
5923 msgid ""
5924 "Because of the message protocol, there is a transfer limit of somewhere "
5925 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5926 msgstr ""
5927
5928 # type: textblock
5929 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:3264
5930 #: ../src/guestfs-actions.pod:3326 ../src/guestfs-actions.pod:3343
5931 #: ../src/guestfs-actions.pod:3431 ../src/guestfs-actions.pod:3836
5932 #: ../src/guestfs-actions.pod:3850 ../src/guestfs-actions.pod:4972
5933 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:6688
5934 #: ../src/guestfs-actions.pod:6702
5935 msgid "(Added in 0.4)"
5936 msgstr ""
5937
5938 # type: =head2
5939 #: ../src/guestfs-actions.pod:877
5940 msgid "guestfs_checksum"
5941 msgstr ""
5942
5943 # type: verbatim
5944 #: ../src/guestfs-actions.pod:879
5945 #, no-wrap
5946 msgid ""
5947 " char *\n"
5948 " guestfs_checksum (guestfs_h *g,\n"
5949 "                   const char *csumtype,\n"
5950 "                   const char *path);\n"
5951 "\n"
5952 msgstr ""
5953
5954 # type: textblock
5955 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
5956 msgid ""
5957 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5958 msgstr ""
5959
5960 # type: textblock
5961 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
5962 msgid ""
5963 "The type of checksum to compute is given by the C<csumtype> parameter which "
5964 "must have one of the following values:"
5965 msgstr ""
5966
5967 # type: =item
5968 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
5969 msgid "C<crc>"
5970 msgstr ""
5971
5972 # type: textblock
5973 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
5974 msgid ""
5975 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5976 "C<cksum> command."
5977 msgstr ""
5978
5979 # type: =item
5980 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
5981 msgid "C<md5>"
5982 msgstr ""
5983
5984 # type: textblock
5985 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
5986 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5987 msgstr ""
5988
5989 # type: =item
5990 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
5991 msgid "C<sha1>"
5992 msgstr ""
5993
5994 # type: textblock
5995 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
5996 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5997 msgstr ""
5998
5999 # type: =item
6000 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
6001 msgid "C<sha224>"
6002 msgstr ""
6003
6004 # type: textblock
6005 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
6006 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6007 msgstr ""
6008
6009 # type: =item
6010 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
6011 msgid "C<sha256>"
6012 msgstr ""
6013
6014 # type: textblock
6015 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
6016 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6017 msgstr ""
6018
6019 # type: =item
6020 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
6021 msgid "C<sha384>"
6022 msgstr ""
6023
6024 # type: textblock
6025 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
6026 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6027 msgstr ""
6028
6029 # type: =item
6030 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
6031 msgid "C<sha512>"
6032 msgstr ""
6033
6034 # type: textblock
6035 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
6036 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6037 msgstr ""
6038
6039 # type: textblock
6040 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
6041 msgid "The checksum is returned as a printable string."
6042 msgstr ""
6043
6044 # type: textblock
6045 #: ../src/guestfs-actions.pod:925
6046 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6047 msgstr ""
6048
6049 # type: textblock
6050 #: ../src/guestfs-actions.pod:927
6051 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6052 msgstr ""
6053
6054 # type: textblock
6055 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:1240
6056 #: ../src/guestfs-actions.pod:2062 ../src/guestfs-actions.pod:3038
6057 #: ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3128
6058 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:6390
6059 msgid "(Added in 1.0.2)"
6060 msgstr ""
6061
6062 # type: =head2
6063 #: ../src/guestfs-actions.pod:934
6064 msgid "guestfs_checksum_device"
6065 msgstr ""
6066
6067 # type: verbatim
6068 #: ../src/guestfs-actions.pod:936
6069 #, no-wrap
6070 msgid ""
6071 " char *\n"
6072 " guestfs_checksum_device (guestfs_h *g,\n"
6073 "                          const char *csumtype,\n"
6074 "                          const char *device);\n"
6075 "\n"
6076 msgstr ""
6077
6078 # type: textblock
6079 #: ../src/guestfs-actions.pod:941
6080 msgid ""
6081 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6082 "device named C<device>.  For the types of checksums supported see the "
6083 "C<guestfs_checksum> command."
6084 msgstr ""
6085
6086 # type: textblock
6087 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:4503
6088 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4599
6089 #: ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4793
6090 #: ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6318
6091 #: ../src/guestfs-actions.pod:6714
6092 msgid "(Added in 1.3.2)"
6093 msgstr ""
6094
6095 # type: =head2
6096 #: ../src/guestfs-actions.pod:950
6097 msgid "guestfs_checksums_out"
6098 msgstr ""
6099
6100 # type: verbatim
6101 #: ../src/guestfs-actions.pod:952
6102 #, no-wrap
6103 msgid ""
6104 " int\n"
6105 " guestfs_checksums_out (guestfs_h *g,\n"
6106 "                        const char *csumtype,\n"
6107 "                        const char *directory,\n"
6108 "                        const char *sumsfile);\n"
6109 "\n"
6110 msgstr ""
6111
6112 # type: textblock
6113 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
6114 msgid ""
6115 "This command computes the checksums of all regular files in C<directory> and "
6116 "then emits a list of those checksums to the local output file C<sumsfile>."
6117 msgstr ""
6118
6119 # type: textblock
6120 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
6121 msgid ""
6122 "This can be used for verifying the integrity of a virtual machine.  However "
6123 "to be properly secure you should pay attention to the output of the checksum "
6124 "command (it uses the ones from GNU coreutils).  In particular when the "
6125 "filename is not printable, coreutils uses a special backslash syntax.  For "
6126 "more information, see the GNU coreutils info file."
6127 msgstr ""
6128
6129 # type: textblock
6130 #: ../src/guestfs-actions.pod:972
6131 msgid "(Added in 1.3.7)"
6132 msgstr ""
6133
6134 # type: =head2
6135 #: ../src/guestfs-actions.pod:974
6136 msgid "guestfs_chmod"
6137 msgstr ""
6138
6139 # type: verbatim
6140 #: ../src/guestfs-actions.pod:976
6141 #, no-wrap
6142 msgid ""
6143 " int\n"
6144 " guestfs_chmod (guestfs_h *g,\n"
6145 "                int mode,\n"
6146 "                const char *path);\n"
6147 "\n"
6148 msgstr ""
6149
6150 # type: textblock
6151 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
6152 msgid ""
6153 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6154 "supported."
6155 msgstr ""
6156
6157 # type: textblock
6158 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
6159 msgid ""
6160 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6161 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6162 "C<700>."
6163 msgstr ""
6164
6165 # type: textblock
6166 #: ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:4087
6167 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4221
6168 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:671
6169 #: ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2838
6170 #: ../fish/guestfish-actions.pod:2848 ../fish/guestfish-actions.pod:2858
6171 msgid "The mode actually set is affected by the umask."
6172 msgstr ""
6173
6174 # type: =head2
6175 #: ../src/guestfs-actions.pod:994
6176 msgid "guestfs_chown"
6177 msgstr ""
6178
6179 # type: verbatim
6180 #: ../src/guestfs-actions.pod:996
6181 #, no-wrap
6182 msgid ""
6183 " int\n"
6184 " guestfs_chown (guestfs_h *g,\n"
6185 "                int owner,\n"
6186 "                int group,\n"
6187 "                const char *path);\n"
6188 "\n"
6189 msgstr ""
6190
6191 # type: textblock
6192 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
6193 msgid "Change the file owner to C<owner> and group to C<group>."
6194 msgstr ""
6195
6196 # type: textblock
6197 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3225
6198 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
6199 msgid ""
6200 "Only numeric uid and gid are supported.  If you want to use names, you will "
6201 "need to locate and parse the password file yourself (Augeas support makes "
6202 "this relatively easy)."
6203 msgstr ""
6204
6205 # type: =head2
6206 #: ../src/guestfs-actions.pod:1012
6207 msgid "guestfs_command"
6208 msgstr ""
6209
6210 # type: verbatim
6211 #: ../src/guestfs-actions.pod:1014
6212 #, no-wrap
6213 msgid ""
6214 " char *\n"
6215 " guestfs_command (guestfs_h *g,\n"
6216 "                  char *const *arguments);\n"
6217 "\n"
6218 msgstr ""
6219
6220 # type: textblock
6221 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
6222 msgid ""
6223 "This call runs a command from the guest filesystem.  The filesystem must be "
6224 "mounted, and must contain a compatible operating system (ie. something "
6225 "Linux, with the same or compatible processor architecture)."
6226 msgstr ""
6227
6228 # type: textblock
6229 #: ../src/guestfs-actions.pod:1023
6230 msgid ""
6231 "The single parameter is an argv-style list of arguments.  The first element "
6232 "is the name of the program to run.  Subsequent elements are parameters.  The "
6233 "list must be non-empty (ie. must contain a program name).  Note that the "
6234 "command runs directly, and is I<not> invoked via the shell (see "
6235 "C<guestfs_sh>)."
6236 msgstr ""
6237
6238 # type: textblock
6239 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
6240 msgid "The return value is anything printed to I<stdout> by the command."
6241 msgstr ""
6242
6243 # type: textblock
6244 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
6245 msgid ""
6246 "If the command returns a non-zero exit status, then this function returns an "
6247 "error message.  The error message string is the content of I<stderr> from "
6248 "the command."
6249 msgstr ""
6250
6251 # type: textblock
6252 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
6253 msgid ""
6254 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6255 "bin>.  If you require a program from another location, you should provide "
6256 "the full path in the first parameter."
6257 msgstr ""
6258
6259 # type: textblock
6260 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
6261 msgid ""
6262 "Shared libraries and data files required by the program must be available on "
6263 "filesystems which are mounted in the correct places.  It is the caller's "
6264 "responsibility to ensure all filesystems that are needed are mounted at the "
6265 "right locations."
6266 msgstr ""
6267
6268 # type: textblock
6269 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074
6270 #: ../src/guestfs-actions.pod:1537
6271 msgid "(Added in 0.9.1)"
6272 msgstr ""
6273
6274 # type: =head2
6275 #: ../src/guestfs-actions.pod:1056
6276 msgid "guestfs_command_lines"
6277 msgstr ""
6278
6279 # type: verbatim
6280 #: ../src/guestfs-actions.pod:1058
6281 #, no-wrap
6282 msgid ""
6283 " char **\n"
6284 " guestfs_command_lines (guestfs_h *g,\n"
6285 "                        char *const *arguments);\n"
6286 "\n"
6287 msgstr ""
6288
6289 # type: textblock
6290 #: ../src/guestfs-actions.pod:1062
6291 msgid ""
6292 "This is the same as C<guestfs_command>, but splits the result into a list of "
6293 "lines."
6294 msgstr ""
6295
6296 # type: textblock
6297 #: ../src/guestfs-actions.pod:1065
6298 msgid "See also: C<guestfs_sh_lines>"
6299 msgstr ""
6300
6301 # type: =head2
6302 #: ../src/guestfs-actions.pod:1076
6303 msgid "guestfs_config"
6304 msgstr ""
6305
6306 # type: verbatim
6307 #: ../src/guestfs-actions.pod:1078
6308 #, no-wrap
6309 msgid ""
6310 " int\n"
6311 " guestfs_config (guestfs_h *g,\n"
6312 "                 const char *qemuparam,\n"
6313 "                 const char *qemuvalue);\n"
6314 "\n"
6315 msgstr ""
6316
6317 # type: textblock
6318 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
6319 msgid ""
6320 "This can be used to add arbitrary qemu command line parameters of the form "
6321 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6322 "setting some parameters which would interfere with parameters that we use."
6323 msgstr ""
6324
6325 # type: textblock
6326 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6327 msgid "The first character of C<param> string must be a C<-> (dash)."
6328 msgstr ""
6329
6330 # type: textblock
6331 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6332 msgid "C<value> can be NULL."
6333 msgstr ""
6334
6335 # type: =head2
6336 #: ../src/guestfs-actions.pod:1096
6337 msgid "guestfs_copy_size"
6338 msgstr ""
6339
6340 # type: verbatim
6341 #: ../src/guestfs-actions.pod:1098
6342 #, no-wrap
6343 msgid ""
6344 " int\n"
6345 " guestfs_copy_size (guestfs_h *g,\n"
6346 "                    const char *src,\n"
6347 "                    const char *dest,\n"
6348 "                    int64_t size);\n"
6349 "\n"
6350 msgstr ""
6351
6352 # type: textblock
6353 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6354 msgid ""
6355 "This command copies exactly C<size> bytes from one source device or file "
6356 "C<src> to another destination device or file C<dest>."
6357 msgstr ""
6358
6359 # type: textblock
6360 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6361 msgid ""
6362 "Note this will fail if the source is too short or if the destination is not "
6363 "large enough."
6364 msgstr ""
6365
6366 # type: textblock
6367 #: ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1235
6368 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1686
6369 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:6893
6370 #: ../src/guestfs-actions.pod:6912
6371 msgid ""
6372 "This long-running command can generate progress notification messages so "
6373 "that the caller can display a progress bar or indicator.  To receive these "
6374 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6375 "guestfs_set_progress_callback>."
6376 msgstr ""
6377
6378 # type: textblock
6379 #: ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:3863
6380 #: ../src/guestfs-actions.pod:4999 ../src/guestfs-actions.pod:6621
6381 #: ../src/guestfs-actions.pod:6641 ../src/guestfs-actions.pod:6727
6382 msgid "(Added in 1.0.87)"
6383 msgstr ""
6384
6385 # type: =head2
6386 #: ../src/guestfs-actions.pod:1119
6387 msgid "guestfs_cp"
6388 msgstr ""
6389
6390 # type: verbatim
6391 #: ../src/guestfs-actions.pod:1121
6392 #, no-wrap
6393 msgid ""
6394 " int\n"
6395 " guestfs_cp (guestfs_h *g,\n"
6396 "             const char *src,\n"
6397 "             const char *dest);\n"
6398 "\n"
6399 msgstr ""
6400
6401 # type: textblock
6402 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6403 msgid ""
6404 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6405 "destination filename or destination directory."
6406 msgstr ""
6407
6408 # type: textblock
6409 #: ../src/guestfs-actions.pod:1131 ../src/guestfs-actions.pod:1145
6410 #: ../src/guestfs-actions.pod:1217 ../src/guestfs-actions.pod:1291
6411 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:4466
6412 #: ../src/guestfs-actions.pod:4843
6413 msgid "(Added in 1.0.18)"
6414 msgstr ""
6415
6416 # type: =head2
6417 #: ../src/guestfs-actions.pod:1133
6418 msgid "guestfs_cp_a"
6419 msgstr ""
6420
6421 # type: verbatim
6422 #: ../src/guestfs-actions.pod:1135
6423 #, no-wrap
6424 msgid ""
6425 " int\n"
6426 " guestfs_cp_a (guestfs_h *g,\n"
6427 "               const char *src,\n"
6428 "               const char *dest);\n"
6429 "\n"
6430 msgstr ""
6431
6432 # type: textblock
6433 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6434 msgid ""
6435 "This copies a file or directory from C<src> to C<dest> recursively using the "
6436 "C<cp -a> command."
6437 msgstr ""
6438
6439 # type: =head2
6440 #: ../src/guestfs-actions.pod:1147
6441 msgid "guestfs_dd"
6442 msgstr ""
6443
6444 # type: verbatim
6445 #: ../src/guestfs-actions.pod:1149
6446 #, no-wrap
6447 msgid ""
6448 " int\n"
6449 " guestfs_dd (guestfs_h *g,\n"
6450 "             const char *src,\n"
6451 "             const char *dest);\n"
6452 "\n"
6453 msgstr ""
6454
6455 # type: textblock
6456 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6457 msgid ""
6458 "This command copies from one source device or file C<src> to another "
6459 "destination device or file C<dest>.  Normally you would use this to copy to "
6460 "or from a device or partition, for example to duplicate a filesystem."
6461 msgstr ""
6462
6463 # type: textblock
6464 #: ../src/guestfs-actions.pod:1159
6465 msgid ""
6466 "If the destination is a device, it must be as large or larger than the "
6467 "source file or device, otherwise the copy will fail.  This command cannot do "
6468 "partial copies (see C<guestfs_copy_size>)."
6469 msgstr ""
6470
6471 # type: =head2
6472 #: ../src/guestfs-actions.pod:1167
6473 msgid "guestfs_df"
6474 msgstr ""
6475
6476 # type: verbatim
6477 #: ../src/guestfs-actions.pod:1169
6478 #, no-wrap
6479 msgid ""
6480 " char *\n"
6481 " guestfs_df (guestfs_h *g);\n"
6482 "\n"
6483 msgstr ""
6484
6485 # type: textblock
6486 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6487 msgid "This command runs the C<df> command to report disk space used."
6488 msgstr ""
6489
6490 # type: textblock
6491 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191
6492 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6493 msgid ""
6494 "This command is mostly useful for interactive sessions.  It is I<not> "
6495 "intended that you try to parse the output string.  Use C<statvfs> from "
6496 "programs."
6497 msgstr ""
6498
6499 # type: textblock
6500 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1198
6501 #: ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2235
6502 #: ../src/guestfs-actions.pod:2259 ../src/guestfs-actions.pod:2327
6503 #: ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4366
6504 #: ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6152
6505 #: ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6773
6506 #: ../src/guestfs-actions.pod:6786
6507 msgid "(Added in 1.0.54)"
6508 msgstr ""
6509
6510 # type: =head2
6511 #: ../src/guestfs-actions.pod:1183
6512 msgid "guestfs_df_h"
6513 msgstr ""
6514
6515 # type: verbatim
6516 #: ../src/guestfs-actions.pod:1185
6517 #, no-wrap
6518 msgid ""
6519 " char *\n"
6520 " guestfs_df_h (guestfs_h *g);\n"
6521 "\n"
6522 msgstr ""
6523
6524 # type: textblock
6525 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6526 msgid ""
6527 "This command runs the C<df -h> command to report disk space used in human-"
6528 "readable format."
6529 msgstr ""
6530
6531 # type: =head2
6532 #: ../src/guestfs-actions.pod:1200
6533 msgid "guestfs_dmesg"
6534 msgstr ""
6535
6536 # type: verbatim
6537 #: ../src/guestfs-actions.pod:1202
6538 #, no-wrap
6539 msgid ""
6540 " char *\n"
6541 " guestfs_dmesg (guestfs_h *g);\n"
6542 "\n"
6543 msgstr ""
6544
6545 # type: textblock
6546 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6547 msgid ""
6548 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6549 "This is sometimes useful for extended debugging of problems."
6550 msgstr ""
6551
6552 # type: textblock
6553 #: ../src/guestfs-actions.pod:1209
6554 msgid ""
6555 "Another way to get the same information is to enable verbose messages with "
6556 "C<guestfs_set_verbose> or by setting the environment variable "
6557 "C<LIBGUESTFS_DEBUG=1> before running the program."
6558 msgstr ""
6559
6560 # type: =head2
6561 #: ../src/guestfs-actions.pod:1219
6562 msgid "guestfs_download"
6563 msgstr ""
6564
6565 # type: verbatim
6566 #: ../src/guestfs-actions.pod:1221
6567 #, no-wrap
6568 msgid ""
6569 " int\n"
6570 " guestfs_download (guestfs_h *g,\n"
6571 "                   const char *remotefilename,\n"
6572 "                   const char *filename);\n"
6573 "\n"
6574 msgstr ""
6575
6576 # type: textblock
6577 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251
6578 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6579 msgid ""
6580 "Download file C<remotefilename> and save it as C<filename> on the local "
6581 "machine."
6582 msgstr ""
6583
6584 # type: textblock
6585 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6384
6586 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6587 msgid "C<filename> can also be a named pipe."
6588 msgstr ""
6589
6590 # type: textblock
6591 #: ../src/guestfs-actions.pod:1231
6592 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6593 msgstr ""
6594
6595 # type: =head2
6596 #: ../src/guestfs-actions.pod:1242
6597 msgid "guestfs_download_offset"
6598 msgstr ""
6599
6600 # type: verbatim
6601 #: ../src/guestfs-actions.pod:1244
6602 #, no-wrap
6603 msgid ""
6604 " int\n"
6605 " guestfs_download_offset (guestfs_h *g,\n"
6606 "                          const char *remotefilename,\n"
6607 "                          const char *filename,\n"
6608 "                          int64_t offset,\n"
6609 "                          int64_t size);\n"
6610 "\n"
6611 msgstr ""
6612
6613 # type: textblock
6614 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6615 msgid ""
6616 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6617 "region must be within the file or device)."
6618 msgstr ""
6619
6620 # type: textblock
6621 #: ../src/guestfs-actions.pod:1257
6622 msgid ""
6623 "Note that there is no limit on the amount of data that can be downloaded "
6624 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6625 "full amount unless an error occurs."
6626 msgstr ""
6627
6628 # type: textblock
6629 #: ../src/guestfs-actions.pod:1262
6630 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6631 msgstr ""
6632
6633 # type: textblock
6634 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6419
6635 msgid "(Added in 1.5.17)"
6636 msgstr ""
6637
6638 # type: =head2
6639 #: ../src/guestfs-actions.pod:1273
6640 msgid "guestfs_drop_caches"
6641 msgstr ""
6642
6643 # type: verbatim
6644 #: ../src/guestfs-actions.pod:1275
6645 #, no-wrap
6646 msgid ""
6647 " int\n"
6648 " guestfs_drop_caches (guestfs_h *g,\n"
6649 "                      int whattodrop);\n"
6650 "\n"
6651 msgstr ""
6652
6653 # type: textblock
6654 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6655 msgid ""
6656 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6657 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6658 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6659 msgstr ""
6660
6661 # type: textblock
6662 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6663 msgid "Setting C<whattodrop> to 3 should drop everything."
6664 msgstr ""
6665
6666 # type: textblock
6667 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6668 msgid ""
6669 "This automatically calls L<sync(2)> before the operation, so that the "
6670 "maximum guest memory is freed."
6671 msgstr ""
6672
6673 # type: =head2
6674 #: ../src/guestfs-actions.pod:1293
6675 msgid "guestfs_du"
6676 msgstr ""
6677
6678 # type: verbatim
6679 #: ../src/guestfs-actions.pod:1295
6680 #, no-wrap
6681 msgid ""
6682 " int64_t\n"
6683 " guestfs_du (guestfs_h *g,\n"
6684 "             const char *path);\n"
6685 "\n"
6686 msgstr ""
6687
6688 # type: textblock
6689 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6690 msgid ""
6691 "This command runs the C<du -s> command to estimate file space usage for "
6692 "C<path>."
6693 msgstr ""
6694
6695 # type: textblock
6696 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6697 msgid ""
6698 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6699 "estimate includes the contents of the directory and all subdirectories "
6700 "(recursively)."
6701 msgstr ""
6702
6703 # type: textblock
6704 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6705 msgid ""
6706 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6707 msgstr ""
6708
6709 # type: =head2
6710 #: ../src/guestfs-actions.pod:1313
6711 msgid "guestfs_e2fsck_f"
6712 msgstr ""
6713
6714 # type: verbatim
6715 #: ../src/guestfs-actions.pod:1315
6716 #, no-wrap
6717 msgid ""
6718 " int\n"
6719 " guestfs_e2fsck_f (guestfs_h *g,\n"
6720 "                   const char *device);\n"
6721 "\n"
6722 msgstr ""
6723
6724 # type: textblock
6725 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6726 msgid ""
6727 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6728 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6729 "clean (C<-f>)."
6730 msgstr ""
6731
6732 # type: textblock
6733 #: ../src/guestfs-actions.pod:1323
6734 msgid ""
6735 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6736 "Normally you should use C<guestfs_fsck>."
6737 msgstr ""
6738
6739 # type: textblock
6740 #: ../src/guestfs-actions.pod:1328
6741 msgid "(Added in 1.0.29)"
6742 msgstr ""
6743
6744 # type: =head2
6745 #: ../src/guestfs-actions.pod:1330
6746 msgid "guestfs_echo_daemon"
6747 msgstr ""
6748
6749 # type: verbatim
6750 #: ../src/guestfs-actions.pod:1332
6751 #, no-wrap
6752 msgid ""
6753 " char *\n"
6754 " guestfs_echo_daemon (guestfs_h *g,\n"
6755 "                      char *const *words);\n"
6756 "\n"
6757 msgstr ""
6758
6759 # type: textblock
6760 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6761 msgid ""
6762 "This command concatenates the list of C<words> passed with single spaces "
6763 "between them and returns the resulting string."
6764 msgstr ""
6765
6766 # type: textblock
6767 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6768 msgid "You can use this command to test the connection through to the daemon."
6769 msgstr ""
6770
6771 # type: textblock
6772 #: ../src/guestfs-actions.pod:1341
6773 msgid "See also C<guestfs_ping_daemon>."
6774 msgstr ""
6775
6776 # type: textblock
6777 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073
6778 #: ../src/guestfs-actions.pod:5632
6779 msgid "(Added in 1.0.69)"
6780 msgstr ""
6781
6782 # type: =head2
6783 #: ../src/guestfs-actions.pod:1348
6784 msgid "guestfs_egrep"
6785 msgstr ""
6786
6787 # type: verbatim
6788 #: ../src/guestfs-actions.pod:1350
6789 #, no-wrap
6790 msgid ""
6791 " char **\n"
6792 " guestfs_egrep (guestfs_h *g,\n"
6793 "                const char *regex,\n"
6794 "                const char *path);\n"
6795 "\n"
6796 msgstr ""
6797
6798 # type: textblock
6799 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:902
6800 msgid ""
6801 "This calls the external C<egrep> program and returns the matching lines."
6802 msgstr ""
6803
6804 # type: textblock
6805 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1384
6806 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1487
6807 #: ../src/guestfs-actions.pod:1506 ../src/guestfs-actions.pod:2173
6808 #: ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2348
6809 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:2376
6810 #: ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2444
6811 #: ../src/guestfs-actions.pod:2457 ../src/guestfs-actions.pod:3356
6812 #: ../src/guestfs-actions.pod:3370 ../src/guestfs-actions.pod:3383
6813 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:4301
6814 #: ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:5226
6815 #: ../src/guestfs-actions.pod:5996 ../src/guestfs-actions.pod:6008
6816 #: ../src/guestfs-actions.pod:6021 ../src/guestfs-actions.pod:6034
6817 #: ../src/guestfs-actions.pod:6056 ../src/guestfs-actions.pod:6069
6818 #: ../src/guestfs-actions.pod:6082 ../src/guestfs-actions.pod:6095
6819 #: ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6875
6820 #: ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:6979
6821 #: ../src/guestfs-actions.pod:7025 ../src/guestfs-actions.pod:7044
6822 msgid "(Added in 1.0.66)"
6823 msgstr ""
6824
6825 # type: =head2
6826 #: ../src/guestfs-actions.pod:1367
6827 msgid "guestfs_egrepi"
6828 msgstr ""
6829
6830 # type: verbatim
6831 #: ../src/guestfs-actions.pod:1369
6832 #, no-wrap
6833 msgid ""
6834 " char **\n"
6835 " guestfs_egrepi (guestfs_h *g,\n"
6836 "                 const char *regex,\n"
6837 "                 const char *path);\n"
6838 "\n"
6839 msgstr ""
6840
6841 # type: textblock
6842 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6843 msgid ""
6844 "This calls the external C<egrep -i> program and returns the matching lines."
6845 msgstr ""
6846
6847 # type: =head2
6848 #: ../src/guestfs-actions.pod:1386
6849 msgid "guestfs_equal"
6850 msgstr ""
6851
6852 # type: verbatim
6853 #: ../src/guestfs-actions.pod:1388
6854 #, no-wrap
6855 msgid ""
6856 " int\n"
6857 " guestfs_equal (guestfs_h *g,\n"
6858 "                const char *file1,\n"
6859 "                const char *file2);\n"
6860 "\n"
6861 msgstr ""
6862
6863 # type: textblock
6864 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6865 msgid ""
6866 "This compares the two files C<file1> and C<file2> and returns true if their "
6867 "content is exactly equal, or false otherwise."
6868 msgstr ""
6869
6870 # type: textblock
6871 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
6872 msgid "The external L<cmp(1)> program is used for the comparison."
6873 msgstr ""
6874
6875 # type: =head2
6876 #: ../src/guestfs-actions.pod:1402
6877 msgid "guestfs_exists"
6878 msgstr ""
6879
6880 # type: verbatim
6881 #: ../src/guestfs-actions.pod:1404
6882 #, no-wrap
6883 msgid ""
6884 " int\n"
6885 " guestfs_exists (guestfs_h *g,\n"
6886 "                 const char *path);\n"
6887 "\n"
6888 msgstr ""
6889
6890 # type: textblock
6891 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
6892 msgid ""
6893 "This returns C<true> if and only if there is a file, directory (or anything) "
6894 "with the given C<path> name."
6895 msgstr ""
6896
6897 # type: textblock
6898 #: ../src/guestfs-actions.pod:1411
6899 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6900 msgstr ""
6901
6902 # type: =head2
6903 #: ../src/guestfs-actions.pod:1417
6904 msgid "guestfs_fallocate"
6905 msgstr ""
6906
6907 # type: verbatim
6908 #: ../src/guestfs-actions.pod:1419
6909 #, no-wrap
6910 msgid ""
6911 " int\n"
6912 " guestfs_fallocate (guestfs_h *g,\n"
6913 "                    const char *path,\n"
6914 "                    int len);\n"
6915 "\n"
6916 msgstr ""
6917
6918 # type: textblock
6919 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450
6920 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6921 msgid ""
6922 "This command preallocates a file (containing zero bytes) named C<path> of "
6923 "size C<len> bytes.  If the file exists already, it is overwritten."
6924 msgstr ""
6925
6926 # type: textblock
6927 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
6928 msgid ""
6929 "Do not confuse this with the guestfish-specific C<alloc> command which "
6930 "allocates a file in the host and attaches it as a device."
6931 msgstr ""
6932
6933 # type: textblock
6934 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
6935 msgid ""
6936 "This function is deprecated.  In new code, use the C<fallocate64> call "
6937 "instead."
6938 msgstr ""
6939
6940 # type: =head2
6941 #: ../src/guestfs-actions.pod:1443
6942 msgid "guestfs_fallocate64"
6943 msgstr ""
6944
6945 # type: verbatim
6946 #: ../src/guestfs-actions.pod:1445
6947 #, no-wrap
6948 msgid ""
6949 " int\n"
6950 " guestfs_fallocate64 (guestfs_h *g,\n"
6951 "                      const char *path,\n"
6952 "                      int64_t len);\n"
6953 "\n"
6954 msgstr ""
6955
6956 # type: textblock
6957 #: ../src/guestfs-actions.pod:1454
6958 msgid ""
6959 "Note that this call allocates disk blocks for the file.  To create a sparse "
6960 "file use C<guestfs_truncate_size> instead."
6961 msgstr ""
6962
6963 # type: textblock
6964 #: ../src/guestfs-actions.pod:1457
6965 msgid ""
6966 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6967 "oversight it only allowed 30 bit lengths to be specified, effectively "
6968 "limiting the maximum size of files created through that call to 1GB."
6969 msgstr ""
6970
6971 # type: textblock
6972 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
6973 msgid ""
6974 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6975 "commands which create a file in the host and attach it as a device."
6976 msgstr ""
6977
6978 # type: textblock
6979 #: ../src/guestfs-actions.pod:1468
6980 msgid "(Added in 1.3.17)"
6981 msgstr ""
6982
6983 # type: =head2
6984 #: ../src/guestfs-actions.pod:1470
6985 msgid "guestfs_fgrep"
6986 msgstr ""
6987
6988 # type: verbatim
6989 #: ../src/guestfs-actions.pod:1472
6990 #, no-wrap
6991 msgid ""
6992 " char **\n"
6993 " guestfs_fgrep (guestfs_h *g,\n"
6994 "                const char *pattern,\n"
6995 "                const char *path);\n"
6996 "\n"
6997 msgstr ""
6998
6999 # type: textblock
7000 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
7001 msgid ""
7002 "This calls the external C<fgrep> program and returns the matching lines."
7003 msgstr ""
7004
7005 # type: =head2
7006 #: ../src/guestfs-actions.pod:1489
7007 msgid "guestfs_fgrepi"
7008 msgstr ""
7009
7010 # type: verbatim
7011 #: ../src/guestfs-actions.pod:1491
7012 #, no-wrap
7013 msgid ""
7014 " char **\n"
7015 " guestfs_fgrepi (guestfs_h *g,\n"
7016 "                 const char *pattern,\n"
7017 "                 const char *path);\n"
7018 "\n"
7019 msgstr ""
7020
7021 # type: textblock
7022 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
7023 msgid ""
7024 "This calls the external C<fgrep -i> program and returns the matching lines."
7025 msgstr ""
7026
7027 # type: =head2
7028 #: ../src/guestfs-actions.pod:1508
7029 msgid "guestfs_file"
7030 msgstr ""
7031
7032 # type: verbatim
7033 #: ../src/guestfs-actions.pod:1510
7034 #, no-wrap
7035 msgid ""
7036 " char *\n"
7037 " guestfs_file (guestfs_h *g,\n"
7038 "               const char *path);\n"
7039 "\n"
7040 msgstr ""
7041
7042 # type: textblock
7043 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
7044 msgid ""
7045 "This call uses the standard L<file(1)> command to determine the type or "
7046 "contents of the file."
7047 msgstr ""
7048
7049 # type: textblock
7050 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
7051 msgid ""
7052 "This call will also transparently look inside various types of compressed "
7053 "file."
7054 msgstr ""
7055
7056 # type: textblock
7057 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
7058 msgid ""
7059 "The exact command which runs is C<file -zb path>.  Note in particular that "
7060 "the filename is not prepended to the output (the C<-b> option)."
7061 msgstr ""
7062
7063 # type: textblock
7064 #: ../src/guestfs-actions.pod:1524
7065 msgid ""
7066 "This command can also be used on C</dev/> devices (and partitions, LV "
7067 "names).  You can for example use this to determine if a device contains a "
7068 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7069 msgstr ""
7070
7071 # type: textblock
7072 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
7073 msgid ""
7074 "If the C<path> does not begin with C</dev/> then this command only works for "
7075 "the content of regular files.  For other file types (directory, symbolic "
7076 "link etc) it will just return the string C<directory> etc."
7077 msgstr ""
7078
7079 # type: =head2
7080 #: ../src/guestfs-actions.pod:1539
7081 msgid "guestfs_file_architecture"
7082 msgstr ""
7083
7084 # type: verbatim
7085 #: ../src/guestfs-actions.pod:1541
7086 #, no-wrap
7087 msgid ""
7088 " char *\n"
7089 " guestfs_file_architecture (guestfs_h *g,\n"
7090 "                            const char *filename);\n"
7091 "\n"
7092 msgstr ""
7093
7094 # type: textblock
7095 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
7096 msgid ""
7097 "This detects the architecture of the binary C<filename>, and returns it if "
7098 "known."
7099 msgstr ""
7100
7101 # type: textblock
7102 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
7103 msgid "Currently defined architectures are:"
7104 msgstr ""
7105
7106 # type: =item
7107 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
7108 msgid "\"i386\""
7109 msgstr ""
7110
7111 # type: textblock
7112 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
7113 msgid ""
7114 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7115 "irrespective of the precise processor requirements of the binary."
7116 msgstr ""
7117
7118 # type: =item
7119 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
7120 msgid "\"x86_64\""
7121 msgstr ""
7122
7123 # type: textblock
7124 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
7125 msgid "64 bit x86-64."
7126 msgstr ""
7127
7128 # type: =item
7129 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
7130 msgid "\"sparc\""
7131 msgstr ""
7132
7133 # type: textblock
7134 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
7135 msgid "32 bit SPARC."
7136 msgstr ""
7137
7138 # type: =item
7139 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
7140 msgid "\"sparc64\""
7141 msgstr ""
7142
7143 # type: textblock
7144 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
7145 msgid "64 bit SPARC V9 and above."
7146 msgstr ""
7147
7148 # type: =item
7149 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
7150 msgid "\"ia64\""
7151 msgstr ""
7152
7153 # type: textblock
7154 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
7155 msgid "Intel Itanium."
7156 msgstr ""
7157
7158 # type: =item
7159 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
7160 msgid "\"ppc\""
7161 msgstr ""
7162
7163 # type: textblock
7164 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
7165 msgid "32 bit Power PC."
7166 msgstr ""
7167
7168 # type: =item
7169 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
7170 msgid "\"ppc64\""
7171 msgstr ""
7172
7173 # type: textblock
7174 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
7175 msgid "64 bit Power PC."
7176 msgstr ""
7177
7178 # type: textblock
7179 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
7180 msgid "Libguestfs may return other architecture strings in future."
7181 msgstr ""
7182
7183 # type: textblock
7184 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
7185 msgid "The function works on at least the following types of files:"
7186 msgstr ""
7187
7188 # type: textblock
7189 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
7190 msgid "many types of Un*x and Linux binary"
7191 msgstr ""
7192
7193 # type: textblock
7194 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
7195 msgid "many types of Un*x and Linux shared library"
7196 msgstr ""
7197
7198 # type: textblock
7199 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
7200 msgid "Windows Win32 and Win64 binaries"
7201 msgstr ""
7202
7203 # type: textblock
7204 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
7205 msgid "Windows Win32 and Win64 DLLs"
7206 msgstr ""
7207
7208 # type: textblock
7209 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
7210 msgid "Win32 binaries and DLLs return C<i386>."
7211 msgstr ""
7212
7213 # type: textblock
7214 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
7215 msgid "Win64 binaries and DLLs return C<x86_64>."
7216 msgstr ""
7217
7218 # type: textblock
7219 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
7220 msgid "Linux kernel modules"
7221 msgstr ""
7222
7223 # type: textblock
7224 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
7225 msgid "Linux new-style initrd images"
7226 msgstr ""
7227
7228 # type: textblock
7229 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
7230 msgid "some non-x86 Linux vmlinuz kernels"
7231 msgstr ""
7232
7233 # type: textblock
7234 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
7235 msgid "What it can't do currently:"
7236 msgstr ""
7237
7238 # type: textblock
7239 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
7240 msgid "static libraries (libfoo.a)"
7241 msgstr ""
7242
7243 # type: textblock
7244 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
7245 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7246 msgstr ""
7247
7248 # type: textblock
7249 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
7250 msgid "x86 Linux vmlinuz kernels"
7251 msgstr ""
7252
7253 # type: textblock
7254 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
7255 msgid ""
7256 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7257 "compressed code, and are horribly hard to unpack.  If you want to find the "
7258 "architecture of a kernel, use the architecture of the associated initrd or "
7259 "kernel module(s) instead."
7260 msgstr ""
7261
7262 # type: textblock
7263 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1812
7264 #: ../src/guestfs-actions.pod:1829 ../src/guestfs-actions.pod:2480
7265 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2587
7266 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2657
7267 #: ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2774
7268 #: ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:3009
7269 #: ../src/guestfs-actions.pod:3141
7270 msgid "(Added in 1.5.3)"
7271 msgstr ""
7272
7273 # type: =head2
7274 #: ../src/guestfs-actions.pod:1651
7275 msgid "guestfs_filesize"
7276 msgstr ""
7277
7278 # type: verbatim
7279 #: ../src/guestfs-actions.pod:1653
7280 #, no-wrap
7281 msgid ""
7282 " int64_t\n"
7283 " guestfs_filesize (guestfs_h *g,\n"
7284 "                   const char *file);\n"
7285 "\n"
7286 msgstr ""
7287
7288 # type: textblock
7289 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
7290 msgid "This command returns the size of C<file> in bytes."
7291 msgstr ""
7292
7293 # type: textblock
7294 #: ../src/guestfs-actions.pod:1659
7295 msgid ""
7296 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7297 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7298 "devices, use C<guestfs_blockdev_getsize64>."
7299 msgstr ""
7300
7301 # type: textblock
7302 #: ../src/guestfs-actions.pod:1665
7303 msgid "(Added in 1.0.82)"
7304 msgstr ""
7305
7306 # type: =head2
7307 #: ../src/guestfs-actions.pod:1667
7308 msgid "guestfs_fill"
7309 msgstr ""
7310
7311 # type: verbatim
7312 #: ../src/guestfs-actions.pod:1669
7313 #, no-wrap
7314 msgid ""
7315 " int\n"
7316 " guestfs_fill (guestfs_h *g,\n"
7317 "               int c,\n"
7318 "               int len,\n"
7319 "               const char *path);\n"
7320 "\n"
7321 msgstr ""
7322
7323 # type: textblock
7324 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
7325 msgid ""
7326 "This command creates a new file called C<path>.  The initial content of the "
7327 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7328 "[0..255]>."
7329 msgstr ""
7330
7331 # type: textblock
7332 #: ../src/guestfs-actions.pod:1679
7333 msgid ""
7334 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7335 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7336 "bytes use C<guestfs_fill_pattern>."
7337 msgstr ""
7338
7339 # type: textblock
7340 #: ../src/guestfs-actions.pod:1691
7341 msgid "(Added in 1.0.79)"
7342 msgstr ""
7343
7344 # type: =head2
7345 #: ../src/guestfs-actions.pod:1693
7346 msgid "guestfs_fill_pattern"
7347 msgstr ""
7348
7349 # type: verbatim
7350 #: ../src/guestfs-actions.pod:1695
7351 #, no-wrap
7352 msgid ""
7353 " int\n"
7354 " guestfs_fill_pattern (guestfs_h *g,\n"
7355 "                       const char *pattern,\n"
7356 "                       int len,\n"
7357 "                       const char *path);\n"
7358 "\n"
7359 msgstr ""
7360
7361 # type: textblock
7362 #: ../src/guestfs-actions.pod:1701
7363 msgid ""
7364 "This function is like C<guestfs_fill> except that it creates a new file of "
7365 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7366 "pattern is truncated if necessary to ensure the length of the file is "
7367 "exactly C<len> bytes."
7368 msgstr ""
7369
7370 # type: textblock
7371 #: ../src/guestfs-actions.pod:1713
7372 msgid "(Added in 1.3.12)"
7373 msgstr ""
7374
7375 # type: =head2
7376 #: ../src/guestfs-actions.pod:1715
7377 msgid "guestfs_find"
7378 msgstr ""
7379
7380 # type: verbatim
7381 #: ../src/guestfs-actions.pod:1717
7382 #, no-wrap
7383 msgid ""
7384 " char **\n"
7385 " guestfs_find (guestfs_h *g,\n"
7386 "               const char *directory);\n"
7387 "\n"
7388 msgstr ""
7389
7390 # type: textblock
7391 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7392 msgid ""
7393 "This command lists out all files and directories, recursively, starting at "
7394 "C<directory>.  It is essentially equivalent to running the shell command "
7395 "C<find directory -print> but some post-processing happens on the output, "
7396 "described below."
7397 msgstr ""
7398
7399 # type: textblock
7400 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7401 msgid ""
7402 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7403 "structure was:"
7404 msgstr ""
7405
7406 # type: verbatim
7407 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7408 #, no-wrap
7409 msgid ""
7410 " /tmp/a\n"
7411 " /tmp/b\n"
7412 " /tmp/c/d\n"
7413 "\n"
7414 msgstr ""
7415
7416 # type: textblock
7417 #: ../src/guestfs-actions.pod:1733
7418 msgid ""
7419 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7420 msgstr ""
7421
7422 # type: verbatim
7423 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7424 #, no-wrap
7425 msgid ""
7426 " a\n"
7427 " b\n"
7428 " c\n"
7429 " c/d\n"
7430 "\n"
7431 msgstr ""
7432
7433 # type: textblock
7434 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7435 msgid "If C<directory> is not a directory, then this command returns an error."
7436 msgstr ""
7437
7438 # type: textblock
7439 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7440 msgid "The returned list is sorted."
7441 msgstr ""
7442
7443 # type: textblock
7444 #: ../src/guestfs-actions.pod:1746
7445 msgid "See also C<guestfs_find0>."
7446 msgstr ""
7447
7448 # type: textblock
7449 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3800
7450 #: ../src/guestfs-actions.pod:5261
7451 msgid "(Added in 1.0.27)"
7452 msgstr ""
7453
7454 # type: =head2
7455 #: ../src/guestfs-actions.pod:1757
7456 msgid "guestfs_find0"
7457 msgstr ""
7458
7459 # type: verbatim
7460 #: ../src/guestfs-actions.pod:1759
7461 #, no-wrap
7462 msgid ""
7463 " int\n"
7464 " guestfs_find0 (guestfs_h *g,\n"
7465 "                const char *directory,\n"
7466 "                const char *files);\n"
7467 "\n"
7468 msgstr ""
7469
7470 # type: textblock
7471 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7472 msgid ""
7473 "This command lists out all files and directories, recursively, starting at "
7474 "C<directory>, placing the resulting list in the external file called "
7475 "C<files>."
7476 msgstr ""
7477
7478 # type: textblock
7479 #: ../src/guestfs-actions.pod:1768
7480 msgid ""
7481 "This command works the same way as C<guestfs_find> with the following "
7482 "exceptions:"
7483 msgstr ""
7484
7485 # type: textblock
7486 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7487 msgid "The resulting list is written to an external file."
7488 msgstr ""
7489
7490 # type: textblock
7491 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7492 msgid ""
7493 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7494 "L<find(1)> option I<-print0>."
7495 msgstr ""
7496
7497 # type: textblock
7498 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7499 msgid "This command is not limited in the number of names that it can return."
7500 msgstr ""
7501
7502 # type: textblock
7503 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7504 msgid "The result list is not sorted."
7505 msgstr ""
7506
7507 # type: textblock
7508 #: ../src/guestfs-actions.pod:1795
7509 msgid "(Added in 1.0.74)"
7510 msgstr ""
7511
7512 # type: =head2
7513 #: ../src/guestfs-actions.pod:1797
7514 msgid "guestfs_findfs_label"
7515 msgstr ""
7516
7517 # type: verbatim
7518 #: ../src/guestfs-actions.pod:1799
7519 #, no-wrap
7520 msgid ""
7521 " char *\n"
7522 " guestfs_findfs_label (guestfs_h *g,\n"
7523 "                       const char *label);\n"
7524 "\n"
7525 msgstr ""
7526
7527 # type: textblock
7528 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7529 msgid ""
7530 "This command searches the filesystems and returns the one which has the "
7531 "given label.  An error is returned if no such filesystem can be found."
7532 msgstr ""
7533
7534 # type: textblock
7535 #: ../src/guestfs-actions.pod:1807
7536 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7537 msgstr ""
7538
7539 # type: =head2
7540 #: ../src/guestfs-actions.pod:1814
7541 msgid "guestfs_findfs_uuid"
7542 msgstr ""
7543
7544 # type: verbatim
7545 #: ../src/guestfs-actions.pod:1816
7546 #, no-wrap
7547 msgid ""
7548 " char *\n"
7549 " guestfs_findfs_uuid (guestfs_h *g,\n"
7550 "                      const char *uuid);\n"
7551 "\n"
7552 msgstr ""
7553
7554 # type: textblock
7555 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7556 msgid ""
7557 "This command searches the filesystems and returns the one which has the "
7558 "given UUID.  An error is returned if no such filesystem can be found."
7559 msgstr ""
7560
7561 # type: textblock
7562 #: ../src/guestfs-actions.pod:1824
7563 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7564 msgstr ""
7565
7566 # type: =head2
7567 #: ../src/guestfs-actions.pod:1831
7568 msgid "guestfs_fsck"
7569 msgstr ""
7570
7571 # type: verbatim
7572 #: ../src/guestfs-actions.pod:1833
7573 #, no-wrap
7574 msgid ""
7575 " int\n"
7576 " guestfs_fsck (guestfs_h *g,\n"
7577 "               const char *fstype,\n"
7578 "               const char *device);\n"
7579 "\n"
7580 msgstr ""
7581
7582 # type: textblock
7583 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7584 msgid ""
7585 "This runs the filesystem checker (fsck) on C<device> which should have "
7586 "filesystem type C<fstype>."
7587 msgstr ""
7588
7589 # type: textblock
7590 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7591 msgid ""
7592 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7593 "codes from C<fsck>."
7594 msgstr ""
7595
7596 # type: textblock
7597 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7598 msgid "Multiple status codes can be summed together."
7599 msgstr ""
7600
7601 # type: textblock
7602 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7603 msgid ""
7604 "A non-zero return code can mean \"success\", for example if errors have been "
7605 "corrected on the filesystem."
7606 msgstr ""
7607
7608 # type: textblock
7609 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7610 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7611 msgstr ""
7612
7613 # type: textblock
7614 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7615 msgid ""
7616 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7617 msgstr ""
7618
7619 # type: textblock
7620 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:6898
7621 msgid "(Added in 1.0.16)"
7622 msgstr ""
7623
7624 # type: =head2
7625 #: ../src/guestfs-actions.pod:1870
7626 msgid "guestfs_get_append"
7627 msgstr ""
7628
7629 # type: verbatim
7630 #: ../src/guestfs-actions.pod:1872
7631 #, no-wrap
7632 msgid ""
7633 " const char *\n"
7634 " guestfs_get_append (guestfs_h *g);\n"
7635 "\n"
7636 msgstr ""
7637
7638 # type: textblock
7639 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7640 msgid ""
7641 "Return the additional kernel options which are added to the guest kernel "
7642 "command line."
7643 msgstr ""
7644
7645 # type: textblock
7646 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7647 msgid "If C<NULL> then no options are added."
7648 msgstr ""
7649
7650 # type: textblock
7651 #: ../src/guestfs-actions.pod:1880
7652 msgid ""
7653 "This function returns a string which may be NULL.  There is no way to return "
7654 "an error from this function.  The string is owned by the guest handle and "
7655 "must I<not> be freed."
7656 msgstr ""
7657
7658 # type: textblock
7659 #: ../src/guestfs-actions.pod:1884 ../src/guestfs-actions.pod:4939
7660 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5770
7661 #: ../src/guestfs-actions.pod:5789 ../src/guestfs-actions.pod:5805
7662 #: ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:6569
7663 #: ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:6941
7664 msgid "(Added in 1.0.26)"
7665 msgstr ""
7666
7667 # type: =head2
7668 #: ../src/guestfs-actions.pod:1886
7669 msgid "guestfs_get_autosync"
7670 msgstr ""
7671
7672 # type: verbatim
7673 #: ../src/guestfs-actions.pod:1888
7674 #, no-wrap
7675 msgid ""
7676 " int\n"
7677 " guestfs_get_autosync (guestfs_h *g);\n"
7678 "\n"
7679 msgstr ""
7680
7681 # type: textblock
7682 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7683 msgid "Get the autosync flag."
7684 msgstr ""
7685
7686 # type: =head2
7687 #: ../src/guestfs-actions.pod:1897
7688 msgid "guestfs_get_direct"
7689 msgstr ""
7690
7691 # type: verbatim
7692 #: ../src/guestfs-actions.pod:1899
7693 #, no-wrap
7694 msgid ""
7695 " int\n"
7696 " guestfs_get_direct (guestfs_h *g);\n"
7697 "\n"
7698 msgstr ""
7699
7700 # type: textblock
7701 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7702 msgid "Return the direct appliance mode flag."
7703 msgstr ""
7704
7705 # type: textblock
7706 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5443
7707 msgid "(Added in 1.0.72)"
7708 msgstr ""
7709
7710 # type: =head2
7711 #: ../src/guestfs-actions.pod:1908
7712 msgid "guestfs_get_e2label"
7713 msgstr ""
7714
7715 # type: verbatim
7716 #: ../src/guestfs-actions.pod:1910
7717 #, no-wrap
7718 msgid ""
7719 " char *\n"
7720 " guestfs_get_e2label (guestfs_h *g,\n"
7721 "                      const char *device);\n"
7722 "\n"
7723 msgstr ""
7724
7725 # type: textblock
7726 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7727 msgid ""
7728 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7729 msgstr ""
7730
7731 # type: textblock
7732 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7733 msgid ""
7734 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7735 msgstr ""
7736
7737 # type: textblock
7738 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948
7739 #: ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5480
7740 msgid "(Added in 1.0.15)"
7741 msgstr ""
7742
7743 # type: =head2
7744 #: ../src/guestfs-actions.pod:1929
7745 msgid "guestfs_get_e2uuid"
7746 msgstr ""
7747
7748 # type: verbatim
7749 #: ../src/guestfs-actions.pod:1931
7750 #, no-wrap
7751 msgid ""
7752 " char *\n"
7753 " guestfs_get_e2uuid (guestfs_h *g,\n"
7754 "                     const char *device);\n"
7755 "\n"
7756 msgstr ""
7757
7758 # type: textblock
7759 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7760 msgid ""
7761 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7762 msgstr ""
7763
7764 # type: textblock
7765 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7766 msgid ""
7767 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7768 msgstr ""
7769
7770 # type: =head2
7771 #: ../src/guestfs-actions.pod:1950
7772 msgid "guestfs_get_memsize"
7773 msgstr ""
7774
7775 # type: verbatim
7776 #: ../src/guestfs-actions.pod:1952
7777 #, no-wrap
7778 msgid ""
7779 " int\n"
7780 " guestfs_get_memsize (guestfs_h *g);\n"
7781 "\n"
7782 msgstr ""
7783
7784 # type: textblock
7785 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7786 msgid ""
7787 "This gets the memory size in megabytes allocated to the qemu subprocess."
7788 msgstr ""
7789
7790 # type: textblock
7791 #: ../src/guestfs-actions.pod:1958
7792 msgid ""
7793 "If C<guestfs_set_memsize> was not called on this handle, and if "
7794 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7795 "value for memsize."
7796 msgstr ""
7797
7798 # type: textblock
7799 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2043
7800 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5603
7801 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7802 #: ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3767
7803 msgid ""
7804 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7805 msgstr ""
7806
7807 # type: textblock
7808 #: ../src/guestfs-actions.pod:1967 ../src/guestfs-actions.pod:4091
7809 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4225
7810 #: ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4256
7811 #: ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:4286
7812 #: ../src/guestfs-actions.pod:5164 ../src/guestfs-actions.pod:5501
7813 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:6345
7814 msgid "(Added in 1.0.55)"
7815 msgstr ""
7816
7817 # type: =head2
7818 #: ../src/guestfs-actions.pod:1969
7819 msgid "guestfs_get_network"
7820 msgstr ""
7821
7822 # type: verbatim
7823 #: ../src/guestfs-actions.pod:1971
7824 #, no-wrap
7825 msgid ""
7826 " int\n"
7827 " guestfs_get_network (guestfs_h *g);\n"
7828 "\n"
7829 msgstr ""
7830
7831 # type: textblock
7832 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7833 msgid "This returns the enable network flag."
7834 msgstr ""
7835
7836 # type: textblock
7837 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5520
7838 msgid "(Added in 1.5.4)"
7839 msgstr ""
7840
7841 # type: =head2
7842 #: ../src/guestfs-actions.pod:1980
7843 msgid "guestfs_get_path"
7844 msgstr ""
7845
7846 # type: verbatim
7847 #: ../src/guestfs-actions.pod:1982
7848 #, no-wrap
7849 msgid ""
7850 " const char *\n"
7851 " guestfs_get_path (guestfs_h *g);\n"
7852 "\n"
7853 msgstr ""
7854
7855 # type: textblock
7856 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7857 msgid "Return the current search path."
7858 msgstr ""
7859
7860 # type: textblock
7861 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7862 msgid ""
7863 "This is always non-NULL.  If it wasn't set already, then this will return "
7864 "the default path."
7865 msgstr ""
7866
7867 # type: textblock
7868 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7869 msgid ""
7870 "This function returns a string, or NULL on error.  The string is owned by "
7871 "the guest handle and must I<not> be freed."
7872 msgstr ""
7873
7874 # type: =head2
7875 #: ../src/guestfs-actions.pod:1995
7876 msgid "guestfs_get_pid"
7877 msgstr ""
7878
7879 # type: verbatim
7880 #: ../src/guestfs-actions.pod:1997
7881 #, no-wrap
7882 msgid ""
7883 " int\n"
7884 " guestfs_get_pid (guestfs_h *g);\n"
7885 "\n"
7886 msgstr ""
7887
7888 # type: textblock
7889 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
7890 msgid ""
7891 "Return the process ID of the qemu subprocess.  If there is no qemu "
7892 "subprocess, then this will return an error."
7893 msgstr ""
7894
7895 # type: textblock
7896 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
7897 msgid "This is an internal call used for debugging and testing."
7898 msgstr ""
7899
7900 # type: textblock
7901 #: ../src/guestfs-actions.pod:2007
7902 msgid "(Added in 1.0.56)"
7903 msgstr ""
7904
7905 # type: =head2
7906 #: ../src/guestfs-actions.pod:2009
7907 msgid "guestfs_get_qemu"
7908 msgstr ""
7909
7910 # type: verbatim
7911 #: ../src/guestfs-actions.pod:2011
7912 #, no-wrap
7913 msgid ""
7914 " const char *\n"
7915 " guestfs_get_qemu (guestfs_h *g);\n"
7916 "\n"
7917 msgstr ""
7918
7919 # type: textblock
7920 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
7921 msgid "Return the current qemu binary."
7922 msgstr ""
7923
7924 # type: textblock
7925 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
7926 msgid ""
7927 "This is always non-NULL.  If it wasn't set already, then this will return "
7928 "the default qemu binary name."
7929 msgstr ""
7930
7931 # type: textblock
7932 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5565
7933 msgid "(Added in 1.0.6)"
7934 msgstr ""
7935
7936 # type: =head2
7937 #: ../src/guestfs-actions.pod:2024
7938 msgid "guestfs_get_recovery_proc"
7939 msgstr ""
7940
7941 # type: verbatim
7942 #: ../src/guestfs-actions.pod:2026
7943 #, no-wrap
7944 msgid ""
7945 " int\n"
7946 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7947 "\n"
7948 msgstr ""
7949
7950 # type: textblock
7951 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
7952 msgid "Return the recovery process enabled flag."
7953 msgstr ""
7954
7955 # type: textblock
7956 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:3231
7957 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3898
7958 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:4869
7959 #: ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5589
7960 #: ../src/guestfs-actions.pod:6248 ../src/guestfs-actions.pod:6268
7961 #: ../src/guestfs-actions.pod:6450
7962 msgid "(Added in 1.0.77)"
7963 msgstr ""
7964
7965 # type: =head2
7966 #: ../src/guestfs-actions.pod:2035
7967 msgid "guestfs_get_selinux"
7968 msgstr ""
7969
7970 # type: verbatim
7971 #: ../src/guestfs-actions.pod:2037
7972 #, no-wrap
7973 msgid ""
7974 " int\n"
7975 " guestfs_get_selinux (guestfs_h *g);\n"
7976 "\n"
7977 msgstr ""
7978
7979 # type: textblock
7980 #: ../src/guestfs-actions.pod:2040
7981 msgid ""
7982 "This returns the current setting of the selinux flag which is passed to the "
7983 "appliance at boot time.  See C<guestfs_set_selinux>."
7984 msgstr ""
7985
7986 # type: textblock
7987 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111
7988 #: ../src/guestfs-actions.pod:5608 ../src/guestfs-actions.pod:5662
7989 msgid "(Added in 1.0.67)"
7990 msgstr ""
7991
7992 # type: =head2
7993 #: ../src/guestfs-actions.pod:2050
7994 msgid "guestfs_get_state"
7995 msgstr ""
7996
7997 # type: verbatim
7998 #: ../src/guestfs-actions.pod:2052
7999 #, no-wrap
8000 msgid ""
8001 " int\n"
8002 " guestfs_get_state (guestfs_h *g);\n"
8003 "\n"
8004 msgstr ""
8005
8006 # type: textblock
8007 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
8008 msgid ""
8009 "This returns the current state as an opaque integer.  This is only useful "
8010 "for printing debug and internal error messages."
8011 msgstr ""
8012
8013 # type: textblock
8014 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:3034
8015 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3124
8016 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:1398
8017 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131
8018 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
8019 msgid "For more information on states, see L<guestfs(3)>."
8020 msgstr ""
8021
8022 # type: =head2
8023 #: ../src/guestfs-actions.pod:2064
8024 msgid "guestfs_get_trace"
8025 msgstr ""
8026
8027 # type: verbatim
8028 #: ../src/guestfs-actions.pod:2066
8029 #, no-wrap
8030 msgid ""
8031 " int\n"
8032 " guestfs_get_trace (guestfs_h *g);\n"
8033 "\n"
8034 msgstr ""
8035
8036 # type: textblock
8037 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
8038 msgid "Return the command trace flag."
8039 msgstr ""
8040
8041 # type: =head2
8042 #: ../src/guestfs-actions.pod:2075
8043 msgid "guestfs_get_umask"
8044 msgstr ""
8045
8046 # type: verbatim
8047 #: ../src/guestfs-actions.pod:2077
8048 #, no-wrap
8049 msgid ""
8050 " int\n"
8051 " guestfs_get_umask (guestfs_h *g);\n"
8052 "\n"
8053 msgstr ""
8054
8055 # type: textblock
8056 #: ../src/guestfs-actions.pod:2080
8057 msgid ""
8058 "Return the current umask.  By default the umask is C<022> unless it has been "
8059 "set by calling C<guestfs_umask>."
8060 msgstr ""
8061
8062 # type: =head2
8063 #: ../src/guestfs-actions.pod:2087
8064 msgid "guestfs_get_verbose"
8065 msgstr ""
8066
8067 # type: verbatim
8068 #: ../src/guestfs-actions.pod:2089
8069 #, no-wrap
8070 msgid ""
8071 " int\n"
8072 " guestfs_get_verbose (guestfs_h *g);\n"
8073 "\n"
8074 msgstr ""
8075
8076 # type: textblock
8077 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
8078 msgid "This returns the verbose messages flag."
8079 msgstr ""
8080
8081 # type: =head2
8082 #: ../src/guestfs-actions.pod:2098
8083 msgid "guestfs_getcon"
8084 msgstr ""
8085
8086 # type: verbatim
8087 #: ../src/guestfs-actions.pod:2100
8088 #, no-wrap
8089 msgid ""
8090 " char *\n"
8091 " guestfs_getcon (guestfs_h *g);\n"
8092 "\n"
8093 msgstr ""
8094
8095 # type: textblock
8096 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
8097 msgid "This gets the SELinux security context of the daemon."
8098 msgstr ""
8099
8100 # type: textblock
8101 #: ../src/guestfs-actions.pod:2105
8102 msgid ""
8103 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8104 msgstr ""
8105
8106 # type: =head2
8107 #: ../src/guestfs-actions.pod:2113
8108 msgid "guestfs_getxattrs"
8109 msgstr ""
8110
8111 # type: verbatim
8112 #: ../src/guestfs-actions.pod:2115
8113 #, no-wrap
8114 msgid ""
8115 " struct guestfs_xattr_list *\n"
8116 " guestfs_getxattrs (guestfs_h *g,\n"
8117 "                    const char *path);\n"
8118 "\n"
8119 msgstr ""
8120
8121 # type: textblock
8122 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1432
8123 msgid ""
8124 "This call lists the extended attributes of the file or directory C<path>."
8125 msgstr ""
8126
8127 # type: textblock
8128 #: ../src/guestfs-actions.pod:2122 ../fish/guestfish-actions.pod:1435
8129 msgid ""
8130 "At the system call level, this is a combination of the L<listxattr(2)> and "
8131 "L<getxattr(2)> calls."
8132 msgstr ""
8133
8134 # type: textblock
8135 #: ../src/guestfs-actions.pod:2125
8136 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8137 msgstr ""
8138
8139 # type: textblock
8140 #: ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:3243
8141 #: ../src/guestfs-actions.pod:3894
8142 msgid ""
8143 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8144 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8145 msgstr ""
8146
8147 # type: textblock
8148 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:3247
8149 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3448
8150 #: ../src/guestfs-actions.pod:5242 ../src/guestfs-actions.pod:5681
8151 #: ../src/guestfs-actions.pod:7006
8152 msgid "(Added in 1.0.59)"
8153 msgstr ""
8154
8155 # type: =head2
8156 #: ../src/guestfs-actions.pod:2133
8157 msgid "guestfs_glob_expand"
8158 msgstr ""
8159
8160 # type: verbatim
8161 #: ../src/guestfs-actions.pod:2135
8162 #, no-wrap
8163 msgid ""
8164 " char **\n"
8165 " guestfs_glob_expand (guestfs_h *g,\n"
8166 "                      const char *pattern);\n"
8167 "\n"
8168 msgstr ""
8169
8170 # type: textblock
8171 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1444
8172 msgid ""
8173 "This command searches for all the pathnames matching C<pattern> according to "
8174 "the wildcard expansion rules used by the shell."
8175 msgstr ""
8176
8177 # type: textblock
8178 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1448
8179 msgid ""
8180 "If no paths match, then this returns an empty list (note: not an error)."
8181 msgstr ""
8182
8183 # type: textblock
8184 #: ../src/guestfs-actions.pod:2146 ../fish/guestfish-actions.pod:1451
8185 msgid ""
8186 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8187 "GLOB_BRACE>.  See that manual page for more details."
8188 msgstr ""
8189
8190 # type: textblock
8191 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:5846
8192 #: ../src/guestfs-actions.pod:5863
8193 msgid "(Added in 1.0.50)"
8194 msgstr ""
8195
8196 # type: =head2
8197 #: ../src/guestfs-actions.pod:2156
8198 msgid "guestfs_grep"
8199 msgstr ""
8200
8201 # type: verbatim
8202 #: ../src/guestfs-actions.pod:2158
8203 #, no-wrap
8204 msgid ""
8205 " char **\n"
8206 " guestfs_grep (guestfs_h *g,\n"
8207 "               const char *regex,\n"
8208 "               const char *path);\n"
8209 "\n"
8210 msgstr ""
8211
8212 # type: textblock
8213 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1459
8214 msgid "This calls the external C<grep> program and returns the matching lines."
8215 msgstr ""
8216
8217 # type: =head2
8218 #: ../src/guestfs-actions.pod:2175
8219 msgid "guestfs_grepi"
8220 msgstr ""
8221
8222 # type: verbatim
8223 #: ../src/guestfs-actions.pod:2177
8224 #, no-wrap
8225 msgid ""
8226 " char **\n"
8227 " guestfs_grepi (guestfs_h *g,\n"
8228 "                const char *regex,\n"
8229 "                const char *path);\n"
8230 "\n"
8231 msgstr ""
8232
8233 # type: textblock
8234 #: ../src/guestfs-actions.pod:2182 ../fish/guestfish-actions.pod:1469
8235 msgid ""
8236 "This calls the external C<grep -i> program and returns the matching lines."
8237 msgstr ""
8238
8239 # type: =head2
8240 #: ../src/guestfs-actions.pod:2194
8241 msgid "guestfs_grub_install"
8242 msgstr ""
8243
8244 # type: verbatim
8245 #: ../src/guestfs-actions.pod:2196
8246 #, no-wrap
8247 msgid ""
8248 " int\n"
8249 " guestfs_grub_install (guestfs_h *g,\n"
8250 "                       const char *root,\n"
8251 "                       const char *device);\n"
8252 "\n"
8253 msgstr ""
8254
8255 # type: textblock
8256 #: ../src/guestfs-actions.pod:2201 ../fish/guestfish-actions.pod:1479
8257 msgid ""
8258 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8259 "the root directory being C<root>."
8260 msgstr ""
8261
8262 # type: textblock
8263 #: ../src/guestfs-actions.pod:2204 ../fish/guestfish-actions.pod:1482
8264 msgid ""
8265 "Note: If grub-install reports the error \"No suitable drive was found in the "
8266 "generated device map.\" it may be that you need to create a C</boot/grub/"
8267 "device.map> file first that contains the mapping between grub device names "
8268 "and Linux device names.  It is usually sufficient to create a file "
8269 "containing:"
8270 msgstr ""
8271
8272 # type: verbatim
8273 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1489
8274 #, no-wrap
8275 msgid ""
8276 " (hd0) /dev/vda\n"
8277 "\n"
8278 msgstr ""
8279
8280 # type: textblock
8281 #: ../src/guestfs-actions.pod:2213 ../fish/guestfish-actions.pod:1491
8282 msgid "replacing C</dev/vda> with the name of the installation device."
8283 msgstr ""
8284
8285 # type: textblock
8286 #: ../src/guestfs-actions.pod:2217
8287 msgid "(Added in 1.0.17)"
8288 msgstr ""
8289
8290 # type: =head2
8291 #: ../src/guestfs-actions.pod:2219
8292 msgid "guestfs_head"
8293 msgstr ""
8294
8295 # type: verbatim
8296 #: ../src/guestfs-actions.pod:2221
8297 #, no-wrap
8298 msgid ""
8299 " char **\n"
8300 " guestfs_head (guestfs_h *g,\n"
8301 "               const char *path);\n"
8302 "\n"
8303 msgstr ""
8304
8305 # type: textblock
8306 #: ../src/guestfs-actions.pod:2225 ../fish/guestfish-actions.pod:1497
8307 msgid ""
8308 "This command returns up to the first 10 lines of a file as a list of strings."
8309 msgstr ""
8310
8311 # type: =head2
8312 #: ../src/guestfs-actions.pod:2237
8313 msgid "guestfs_head_n"
8314 msgstr ""
8315
8316 # type: verbatim
8317 #: ../src/guestfs-actions.pod:2239
8318 #, no-wrap
8319 msgid ""
8320 " char **\n"
8321 " guestfs_head_n (guestfs_h *g,\n"
8322 "                 int nrlines,\n"
8323 "                 const char *path);\n"
8324 "\n"
8325 msgstr ""
8326
8327 # type: textblock
8328 #: ../src/guestfs-actions.pod:2244 ../fish/guestfish-actions.pod:1507
8329 msgid ""
8330 "If the parameter C<nrlines> is a positive number, this returns the first "
8331 "C<nrlines> lines of the file C<path>."
8332 msgstr ""
8333
8334 # type: textblock
8335 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1510
8336 msgid ""
8337 "If the parameter C<nrlines> is a negative number, this returns lines from "
8338 "the file C<path>, excluding the last C<nrlines> lines."
8339 msgstr ""
8340
8341 # type: textblock
8342 #: ../src/guestfs-actions.pod:2250 ../src/guestfs-actions.pod:6143
8343 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
8344 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8345 msgstr ""
8346
8347 # type: =head2
8348 #: ../src/guestfs-actions.pod:2261
8349 msgid "guestfs_hexdump"
8350 msgstr ""
8351
8352 # type: verbatim
8353 #: ../src/guestfs-actions.pod:2263
8354 #, no-wrap
8355 msgid ""
8356 " char *\n"
8357 " guestfs_hexdump (guestfs_h *g,\n"
8358 "                  const char *path);\n"
8359 "\n"
8360 msgstr ""
8361
8362 # type: textblock
8363 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1522
8364 msgid ""
8365 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8366 "readable, canonical hex dump of the file."
8367 msgstr ""
8368
8369 # type: textblock
8370 #: ../src/guestfs-actions.pod:2276 ../src/guestfs-actions.pod:5927
8371 #: ../src/guestfs-actions.pod:5982
8372 msgid "(Added in 1.0.22)"
8373 msgstr ""
8374
8375 # type: =head2
8376 #: ../src/guestfs-actions.pod:2278
8377 msgid "guestfs_initrd_cat"
8378 msgstr ""
8379
8380 # type: verbatim
8381 #: ../src/guestfs-actions.pod:2280
8382 #, no-wrap
8383 msgid ""
8384 " char *\n"
8385 " guestfs_initrd_cat (guestfs_h *g,\n"
8386 "                     const char *initrdpath,\n"
8387 "                     const char *filename,\n"
8388 "                     size_t *size_r);\n"
8389 "\n"
8390 msgstr ""
8391
8392 # type: textblock
8393 #: ../src/guestfs-actions.pod:2286 ../fish/guestfish-actions.pod:1532
8394 msgid ""
8395 "This command unpacks the file C<filename> from the initrd file called "
8396 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8397 "character."
8398 msgstr ""
8399
8400 # type: textblock
8401 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1536
8402 msgid ""
8403 "For example, in guestfish you could use the following command to examine the "
8404 "boot script (usually called C</init>)  contained in a Linux initrd or "
8405 "initramfs image:"
8406 msgstr ""
8407
8408 # type: verbatim
8409 #: ../src/guestfs-actions.pod:2294 ../fish/guestfish-actions.pod:1540
8410 #, no-wrap
8411 msgid ""
8412 " initrd-cat /boot/initrd-<version>.img init\n"
8413 "\n"
8414 msgstr ""
8415
8416 # type: textblock
8417 #: ../src/guestfs-actions.pod:2296
8418 msgid "See also C<guestfs_initrd_list>."
8419 msgstr ""
8420
8421 # type: textblock
8422 #: ../src/guestfs-actions.pod:2298 ../src/guestfs-actions.pod:4862
8423 #: ../src/guestfs-actions.pod:4888 ../src/guestfs-actions.pod:5069
8424 msgid ""
8425 "This function returns a buffer, or NULL on error.  The size of the returned "
8426 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8427 "after use>."
8428 msgstr ""
8429
8430 # type: =head2
8431 #: ../src/guestfs-actions.pod:2307
8432 msgid "guestfs_initrd_list"
8433 msgstr ""
8434
8435 # type: verbatim
8436 #: ../src/guestfs-actions.pod:2309
8437 #, no-wrap
8438 msgid ""
8439 " char **\n"
8440 " guestfs_initrd_list (guestfs_h *g,\n"
8441 "                      const char *path);\n"
8442 "\n"
8443 msgstr ""
8444
8445 # type: textblock
8446 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1551
8447 msgid "This command lists out files contained in an initrd."
8448 msgstr ""
8449
8450 # type: textblock
8451 #: ../src/guestfs-actions.pod:2315 ../fish/guestfish-actions.pod:1553
8452 msgid ""
8453 "The files are listed without any initial C</> character.  The files are "
8454 "listed in the order they appear (not necessarily alphabetical).  Directory "
8455 "names are listed as separate items."
8456 msgstr ""
8457
8458 # type: textblock
8459 #: ../src/guestfs-actions.pod:2319 ../fish/guestfish-actions.pod:1557
8460 msgid ""
8461 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8462 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8463 "files)."
8464 msgstr ""
8465
8466 # type: =head2
8467 #: ../src/guestfs-actions.pod:2329
8468 msgid "guestfs_inotify_add_watch"
8469 msgstr ""
8470
8471 # type: verbatim
8472 #: ../src/guestfs-actions.pod:2331
8473 #, no-wrap
8474 msgid ""
8475 " int64_t\n"
8476 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8477 "                            const char *path,\n"
8478 "                            int mask);\n"
8479 "\n"
8480 msgstr ""
8481
8482 # type: textblock
8483 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1565
8484 msgid "Watch C<path> for the events listed in C<mask>."
8485 msgstr ""
8486
8487 # type: textblock
8488 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1567
8489 msgid ""
8490 "Note that if C<path> is a directory then events within that directory are "
8491 "watched, but this does I<not> happen recursively (in subdirectories)."
8492 msgstr ""
8493
8494 # type: textblock
8495 #: ../src/guestfs-actions.pod:2342 ../fish/guestfish-actions.pod:1571
8496 msgid ""
8497 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8498 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8499 msgstr ""
8500
8501 # type: =head2
8502 #: ../src/guestfs-actions.pod:2350
8503 msgid "guestfs_inotify_close"
8504 msgstr ""
8505
8506 # type: verbatim
8507 #: ../src/guestfs-actions.pod:2352
8508 #, no-wrap
8509 msgid ""
8510 " int\n"
8511 " guestfs_inotify_close (guestfs_h *g);\n"
8512 "\n"
8513 msgstr ""
8514
8515 # type: textblock
8516 #: ../src/guestfs-actions.pod:2355 ../fish/guestfish-actions.pod:1579
8517 msgid ""
8518 "This closes the inotify handle which was previously opened by inotify_init.  "
8519 "It removes all watches, throws away any pending events, and deallocates all "
8520 "resources."
8521 msgstr ""
8522
8523 # type: =head2
8524 #: ../src/guestfs-actions.pod:2363
8525 msgid "guestfs_inotify_files"
8526 msgstr ""
8527
8528 # type: verbatim
8529 #: ../src/guestfs-actions.pod:2365
8530 #, no-wrap
8531 msgid ""
8532 " char **\n"
8533 " guestfs_inotify_files (guestfs_h *g);\n"
8534 "\n"
8535 msgstr ""
8536
8537 # type: textblock
8538 #: ../src/guestfs-actions.pod:2368
8539 msgid ""
8540 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8541 "returns a list of pathnames of objects that were touched.  The returned "
8542 "pathnames are sorted and deduplicated."
8543 msgstr ""
8544
8545 # type: =head2
8546 #: ../src/guestfs-actions.pod:2378
8547 msgid "guestfs_inotify_init"
8548 msgstr ""
8549
8550 # type: verbatim
8551 #: ../src/guestfs-actions.pod:2380
8552 #, no-wrap
8553 msgid ""
8554 " int\n"
8555 " guestfs_inotify_init (guestfs_h *g,\n"
8556 "                       int maxevents);\n"
8557 "\n"
8558 msgstr ""
8559
8560 # type: textblock
8561 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1595
8562 msgid ""
8563 "This command creates a new inotify handle.  The inotify subsystem can be "
8564 "used to notify events which happen to objects in the guest filesystem."
8565 msgstr ""
8566
8567 # type: textblock
8568 #: ../src/guestfs-actions.pod:2388
8569 msgid ""
8570 "C<maxevents> is the maximum number of events which will be queued up between "
8571 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8572 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8573 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8574 "throws away events, but records the fact that it threw them away by setting "
8575 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8576 "C<guestfs_inotify_read>)."
8577 msgstr ""
8578
8579 # type: textblock
8580 #: ../src/guestfs-actions.pod:2398
8581 msgid ""
8582 "Before any events are generated, you have to add some watches to the "
8583 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8584 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8585 msgstr ""
8586
8587 # type: textblock
8588 #: ../src/guestfs-actions.pod:2404
8589 msgid ""
8590 "Queued up events should be read periodically by calling "
8591 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8592 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8593 "often enough then you risk the internal queue overflowing."
8594 msgstr ""
8595
8596 # type: textblock
8597 #: ../src/guestfs-actions.pod:2411
8598 msgid ""
8599 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8600 "This also removes any watches automatically."
8601 msgstr ""
8602
8603 # type: textblock
8604 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1626
8605 msgid ""
8606 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8607 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8608 "that there is one global inotify handle per libguestfs instance."
8609 msgstr ""
8610
8611 # type: =head2
8612 #: ../src/guestfs-actions.pod:2424
8613 msgid "guestfs_inotify_read"
8614 msgstr ""
8615
8616 # type: verbatim
8617 #: ../src/guestfs-actions.pod:2426
8618 #, no-wrap
8619 msgid ""
8620 " struct guestfs_inotify_event_list *\n"
8621 " guestfs_inotify_read (guestfs_h *g);\n"
8622 "\n"
8623 msgstr ""
8624
8625 # type: textblock
8626 #: ../src/guestfs-actions.pod:2429 ../fish/guestfish-actions.pod:1635
8627 msgid ""
8628 "Return the complete queue of events that have happened since the previous "
8629 "read call."
8630 msgstr ""
8631
8632 # type: textblock
8633 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1638
8634 msgid "If no events have happened, this returns an empty list."
8635 msgstr ""
8636
8637 # type: textblock
8638 #: ../src/guestfs-actions.pod:2434 ../fish/guestfish-actions.pod:1640
8639 msgid ""
8640 "I<Note>: In order to make sure that all events have been read, you must call "
8641 "this function repeatedly until it returns an empty list.  The reason is that "
8642 "the call will read events up to the maximum appliance-to-host message size "
8643 "and leave remaining events in the queue."
8644 msgstr ""
8645
8646 # type: textblock
8647 #: ../src/guestfs-actions.pod:2440
8648 msgid ""
8649 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8650 "there was an error.  I<The caller must call "
8651 "C<guestfs_free_inotify_event_list> after use>."
8652 msgstr ""
8653
8654 # type: =head2
8655 #: ../src/guestfs-actions.pod:2446
8656 msgid "guestfs_inotify_rm_watch"
8657 msgstr ""
8658
8659 # type: verbatim
8660 #: ../src/guestfs-actions.pod:2448
8661 #, no-wrap
8662 msgid ""
8663 " int\n"
8664 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8665 "                           int wd);\n"
8666 "\n"
8667 msgstr ""
8668
8669 # type: textblock
8670 #: ../src/guestfs-actions.pod:2452
8671 msgid ""
8672 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8673 msgstr ""
8674
8675 # type: =head2
8676 #: ../src/guestfs-actions.pod:2459
8677 msgid "guestfs_inspect_get_arch"
8678 msgstr ""
8679
8680 # type: verbatim
8681 #: ../src/guestfs-actions.pod:2461
8682 #, no-wrap
8683 msgid ""
8684 " char *\n"
8685 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8686 "                           const char *root);\n"
8687 "\n"
8688 msgstr ""
8689
8690 # type: textblock
8691 #: ../src/guestfs-actions.pod:2465 ../src/guestfs-actions.pod:2488
8692 #: ../src/guestfs-actions.pod:2569 ../src/guestfs-actions.pod:2595
8693 #: ../src/guestfs-actions.pod:2617 ../src/guestfs-actions.pod:2644
8694 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:2698
8695 #: ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:2758
8696 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:2844
8697 #: ../src/guestfs-actions.pod:2867
8698 msgid ""
8699 "This function should only be called with a root device string as returned by "
8700 "C<guestfs_inspect_os>."
8701 msgstr ""
8702
8703 # type: textblock
8704 #: ../src/guestfs-actions.pod:2468
8705 msgid ""
8706 "This returns the architecture of the inspected operating system.  The "
8707 "possible return values are listed under C<guestfs_file_architecture>."
8708 msgstr ""
8709
8710 # type: textblock
8711 #: ../src/guestfs-actions.pod:2472 ../fish/guestfish-actions.pod:1664
8712 msgid ""
8713 "If the architecture could not be determined, then the string C<unknown> is "
8714 "returned."
8715 msgstr ""
8716
8717 # type: textblock
8718 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556
8719 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2632
8720 #: ../src/guestfs-actions.pod:2714 ../src/guestfs-actions.pod:2745
8721 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2788
8722 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2854
8723 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3001
8724 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741
8725 #: ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795
8726 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879
8727 #: ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909
8728 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960
8729 #: ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8730 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8731 msgstr ""
8732
8733 # type: =head2
8734 #: ../src/guestfs-actions.pod:2482
8735 msgid "guestfs_inspect_get_distro"
8736 msgstr ""
8737
8738 # type: verbatim
8739 #: ../src/guestfs-actions.pod:2484
8740 #, no-wrap
8741 msgid ""
8742 " char *\n"
8743 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8744 "                             const char *root);\n"
8745 "\n"
8746 msgstr ""
8747
8748 # type: textblock
8749 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1676
8750 msgid ""
8751 "This returns the distro (distribution) of the inspected operating system."
8752 msgstr ""
8753
8754 # type: textblock
8755 #: ../src/guestfs-actions.pod:2494 ../fish/guestfish-actions.pod:1679
8756 msgid "Currently defined distros are:"
8757 msgstr ""
8758
8759 # type: =item
8760 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1683
8761 msgid "\"archlinux\""
8762 msgstr ""
8763
8764 # type: textblock
8765 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1685
8766 msgid "Arch Linux."
8767 msgstr ""
8768
8769 # type: =item
8770 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1687
8771 msgid "\"debian\""
8772 msgstr ""
8773
8774 # type: textblock
8775 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1689
8776 msgid "Debian."
8777 msgstr ""
8778
8779 # type: =item
8780 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1691
8781 msgid "\"fedora\""
8782 msgstr ""
8783
8784 # type: textblock
8785 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1693
8786 msgid "Fedora."
8787 msgstr ""
8788
8789 # type: =item
8790 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1695
8791 msgid "\"gentoo\""
8792 msgstr ""
8793
8794 # type: textblock
8795 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1697
8796 msgid "Gentoo."
8797 msgstr ""
8798
8799 # type: =item
8800 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1699
8801 msgid "\"linuxmint\""
8802 msgstr ""
8803
8804 # type: textblock
8805 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1701
8806 msgid "Linux Mint."
8807 msgstr ""
8808
8809 # type: =item
8810 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1703
8811 msgid "\"mandriva\""
8812 msgstr ""
8813
8814 # type: textblock
8815 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1705
8816 msgid "Mandriva."
8817 msgstr ""
8818
8819 # type: =item
8820 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1707
8821 msgid "\"meego\""
8822 msgstr ""
8823
8824 # type: textblock
8825 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1709
8826 msgid "MeeGo."
8827 msgstr ""
8828
8829 # type: =item
8830 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1711
8831 msgid "\"pardus\""
8832 msgstr ""
8833
8834 # type: textblock
8835 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1713
8836 msgid "Pardus."
8837 msgstr ""
8838
8839 # type: =item
8840 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1715
8841 msgid "\"redhat-based\""
8842 msgstr ""
8843
8844 # type: textblock
8845 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1717
8846 msgid "Some Red Hat-derived distro."
8847 msgstr ""
8848
8849 # type: =item
8850 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1719
8851 msgid "\"rhel\""
8852 msgstr ""
8853
8854 # type: textblock
8855 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1721
8856 msgid "Red Hat Enterprise Linux and some derivatives."
8857 msgstr ""
8858
8859 # type: =item
8860 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1723
8861 msgid "\"ubuntu\""
8862 msgstr ""
8863
8864 # type: textblock
8865 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1725
8866 msgid "Ubuntu."
8867 msgstr ""
8868
8869 # type: =item
8870 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2822
8871 #: ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8872 msgid "\"unknown\""
8873 msgstr ""
8874
8875 # type: textblock
8876 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1729
8877 msgid "The distro could not be determined."
8878 msgstr ""
8879
8880 # type: =item
8881 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2814
8882 #: ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8883 msgid "\"windows\""
8884 msgstr ""
8885
8886 # type: textblock
8887 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1733
8888 msgid ""
8889 "Windows does not have distributions.  This string is returned if the OS type "
8890 "is Windows."
8891 msgstr ""
8892
8893 # type: textblock
8894 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2828
8895 #: ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8896 msgid ""
8897 "Future versions of libguestfs may return other strings here.  The caller "
8898 "should be prepared to handle any string."
8899 msgstr ""
8900
8901 # type: =head2
8902 #: ../src/guestfs-actions.pod:2563
8903 msgid "guestfs_inspect_get_filesystems"
8904 msgstr ""
8905
8906 # type: verbatim
8907 #: ../src/guestfs-actions.pod:2565
8908 #, no-wrap
8909 msgid ""
8910 " char **\n"
8911 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8912 "                                  const char *root);\n"
8913 "\n"
8914 msgstr ""
8915
8916 # type: textblock
8917 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1750
8918 msgid ""
8919 "This returns a list of all the filesystems that we think are associated with "
8920 "this operating system.  This includes the root filesystem, other ordinary "
8921 "filesystems, and non-mounted devices like swap partitions."
8922 msgstr ""
8923
8924 # type: textblock
8925 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1755
8926 msgid ""
8927 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8928 "to be shared between operating systems."
8929 msgstr ""
8930
8931 # type: textblock
8932 #: ../src/guestfs-actions.pod:2580
8933 msgid ""
8934 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8935 "C<guestfs_inspect_get_mountpoints>."
8936 msgstr ""
8937
8938 # type: =head2
8939 #: ../src/guestfs-actions.pod:2589
8940 msgid "guestfs_inspect_get_hostname"
8941 msgstr ""
8942
8943 # type: verbatim
8944 #: ../src/guestfs-actions.pod:2591
8945 #, no-wrap
8946 msgid ""
8947 " char *\n"
8948 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8949 "                               const char *root);\n"
8950 "\n"
8951 msgstr ""
8952
8953 # type: textblock
8954 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1768
8955 msgid ""
8956 "This function returns the hostname of the operating system as found by "
8957 "inspection of the guest's configuration files."
8958 msgstr ""
8959
8960 # type: textblock
8961 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1771
8962 msgid ""
8963 "If the hostname could not be determined, then the string C<unknown> is "
8964 "returned."
8965 msgstr ""
8966
8967 # type: textblock
8968 #: ../src/guestfs-actions.pod:2609
8969 msgid "(Added in 1.7.9)"
8970 msgstr ""
8971
8972 # type: =head2
8973 #: ../src/guestfs-actions.pod:2611
8974 msgid "guestfs_inspect_get_major_version"
8975 msgstr ""
8976
8977 # type: verbatim
8978 #: ../src/guestfs-actions.pod:2613
8979 #, no-wrap
8980 msgid ""
8981 " int\n"
8982 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8983 "                                    const char *root);\n"
8984 "\n"
8985 msgstr ""
8986
8987 # type: textblock
8988 #: ../src/guestfs-actions.pod:2620 ../fish/guestfish-actions.pod:1783
8989 msgid ""
8990 "This returns the major version number of the inspected operating system."
8991 msgstr ""
8992
8993 # type: textblock
8994 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1786
8995 msgid ""
8996 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8997 "popular public names used by the operating system.  Notably the operating "
8998 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8999 "1).  You can find out the real versions corresponding to releases of Windows "
9000 "by consulting Wikipedia or MSDN."
9001 msgstr ""
9002
9003 # type: textblock
9004 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2650
9005 #: ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
9006 msgid "If the version could not be determined, then C<0> is returned."
9007 msgstr ""
9008
9009 # type: =head2
9010 #: ../src/guestfs-actions.pod:2638
9011 msgid "guestfs_inspect_get_minor_version"
9012 msgstr ""
9013
9014 # type: verbatim
9015 #: ../src/guestfs-actions.pod:2640
9016 #, no-wrap
9017 msgid ""
9018 " int\n"
9019 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9020 "                                    const char *root);\n"
9021 "\n"
9022 msgstr ""
9023
9024 # type: textblock
9025 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1804
9026 msgid ""
9027 "This returns the minor version number of the inspected operating system."
9028 msgstr ""
9029
9030 # type: textblock
9031 #: ../src/guestfs-actions.pod:2652
9032 msgid ""
9033 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9034 "C<guestfs_inspect_get_major_version>."
9035 msgstr ""
9036
9037 # type: =head2
9038 #: ../src/guestfs-actions.pod:2659
9039 msgid "guestfs_inspect_get_mountpoints"
9040 msgstr ""
9041
9042 # type: verbatim
9043 #: ../src/guestfs-actions.pod:2661
9044 #, no-wrap
9045 msgid ""
9046 " char **\n"
9047 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9048 "                                  const char *root);\n"
9049 "\n"
9050 msgstr ""
9051
9052 # type: textblock
9053 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1819
9054 msgid ""
9055 "This returns a hash of where we think the filesystems associated with this "
9056 "operating system should be mounted.  Callers should note that this is at "
9057 "best an educated guess made by reading configuration files such as C</etc/"
9058 "fstab>."
9059 msgstr ""
9060
9061 # type: textblock
9062 #: ../src/guestfs-actions.pod:2673 ../fish/guestfish-actions.pod:1824
9063 msgid ""
9064 "Each element in the returned hashtable has a key which is the path of the "
9065 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9066 "mounted there (eg. C</dev/sda1>)."
9067 msgstr ""
9068
9069 # type: textblock
9070 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1829
9071 msgid ""
9072 "Non-mounted devices such as swap devices are I<not> returned in this list."
9073 msgstr ""
9074
9075 # type: textblock
9076 #: ../src/guestfs-actions.pod:2681
9077 msgid ""
9078 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9079 "C<guestfs_inspect_get_filesystems>."
9080 msgstr ""
9081
9082 # type: textblock
9083 #: ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:3300
9084 #: ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:6284
9085 msgid ""
9086 "This function returns a NULL-terminated array of strings, or NULL if there "
9087 "was an error.  The array of strings will always have length C<2n+1>, where "
9088 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9089 "caller must free the strings and the array after use>."
9090 msgstr ""
9091
9092 # type: =head2
9093 #: ../src/guestfs-actions.pod:2692
9094 msgid "guestfs_inspect_get_package_format"
9095 msgstr ""
9096
9097 # type: verbatim
9098 #: ../src/guestfs-actions.pod:2694
9099 #, no-wrap
9100 msgid ""
9101 " char *\n"
9102 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9103 "                                     const char *root);\n"
9104 "\n"
9105 msgstr ""
9106
9107 # type: textblock
9108 #: ../src/guestfs-actions.pod:2701
9109 msgid ""
9110 "This function and C<guestfs_inspect_get_package_management> return the "
9111 "package format and package management tool used by the inspected operating "
9112 "system.  For example for Fedora these functions would return C<rpm> (package "
9113 "format) and C<yum> (package management)."
9114 msgstr ""
9115
9116 # type: textblock
9117 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1848
9118 msgid ""
9119 "This returns the string C<unknown> if we could not determine the package "
9120 "format I<or> if the operating system does not have a real packaging system "
9121 "(eg. Windows)."
9122 msgstr ""
9123
9124 # type: textblock
9125 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
9126 msgid ""
9127 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9128 "Future versions of libguestfs may return other strings."
9129 msgstr ""
9130
9131 # type: textblock
9132 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2750
9133 msgid "(Added in 1.7.5)"
9134 msgstr ""
9135
9136 # type: =head2
9137 #: ../src/guestfs-actions.pod:2721
9138 msgid "guestfs_inspect_get_package_management"
9139 msgstr ""
9140
9141 # type: verbatim
9142 #: ../src/guestfs-actions.pod:2723
9143 #, no-wrap
9144 msgid ""
9145 " char *\n"
9146 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9147 "                                         const char *root);\n"
9148 "\n"
9149 msgstr ""
9150
9151 # type: textblock
9152 #: ../src/guestfs-actions.pod:2730
9153 msgid ""
9154 "C<guestfs_inspect_get_package_format> and this function return the package "
9155 "format and package management tool used by the inspected operating system.  "
9156 "For example for Fedora these functions would return C<rpm> (package format) "
9157 "and C<yum> (package management)."
9158 msgstr ""
9159
9160 # type: textblock
9161 #: ../src/guestfs-actions.pod:2736 ../fish/guestfish-actions.pod:1870
9162 msgid ""
9163 "This returns the string C<unknown> if we could not determine the package "
9164 "management tool I<or> if the operating system does not have a real packaging "
9165 "system (eg. Windows)."
9166 msgstr ""
9167
9168 # type: textblock
9169 #: ../src/guestfs-actions.pod:2740 ../fish/guestfish-actions.pod:1874
9170 msgid ""
9171 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9172 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9173 "libguestfs may return other strings."
9174 msgstr ""
9175
9176 # type: =head2
9177 #: ../src/guestfs-actions.pod:2752
9178 msgid "guestfs_inspect_get_product_name"
9179 msgstr ""
9180
9181 # type: verbatim
9182 #: ../src/guestfs-actions.pod:2754
9183 #, no-wrap
9184 msgid ""
9185 " char *\n"
9186 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9187 "                                   const char *root);\n"
9188 "\n"
9189 msgstr ""
9190
9191 # type: textblock
9192 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:1888
9193 msgid ""
9194 "This returns the product name of the inspected operating system.  The "
9195 "product name is generally some freeform string which can be displayed to the "
9196 "user, but should not be parsed by programs."
9197 msgstr ""
9198
9199 # type: textblock
9200 #: ../src/guestfs-actions.pod:2766 ../fish/guestfish-actions.pod:1893
9201 msgid ""
9202 "If the product name could not be determined, then the string C<unknown> is "
9203 "returned."
9204 msgstr ""
9205
9206 # type: =head2
9207 #: ../src/guestfs-actions.pod:2776
9208 msgid "guestfs_inspect_get_roots"
9209 msgstr ""
9210
9211 # type: verbatim
9212 #: ../src/guestfs-actions.pod:2778
9213 #, no-wrap
9214 msgid ""
9215 " char **\n"
9216 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9217 "\n"
9218 msgstr ""
9219
9220 # type: textblock
9221 #: ../src/guestfs-actions.pod:2781
9222 msgid ""
9223 "This function is a convenient way to get the list of root devices, as "
9224 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9225 "the whole inspection process."
9226 msgstr ""
9227
9228 # type: textblock
9229 #: ../src/guestfs-actions.pod:2785
9230 msgid ""
9231 "This returns an empty list if either no root devices were found or the "
9232 "caller has not called C<guestfs_inspect_os>."
9233 msgstr ""
9234
9235 # type: textblock
9236 #: ../src/guestfs-actions.pod:2794
9237 msgid "(Added in 1.7.3)"
9238 msgstr ""
9239
9240 # type: =head2
9241 #: ../src/guestfs-actions.pod:2796
9242 msgid "guestfs_inspect_get_type"
9243 msgstr ""
9244
9245 # type: verbatim
9246 #: ../src/guestfs-actions.pod:2798
9247 #, no-wrap
9248 msgid ""
9249 " char *\n"
9250 " guestfs_inspect_get_type (guestfs_h *g,\n"
9251 "                           const char *root);\n"
9252 "\n"
9253 msgstr ""
9254
9255 # type: textblock
9256 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1918
9257 msgid ""
9258 "This returns the type of the inspected operating system.  Currently defined "
9259 "types are:"
9260 msgstr ""
9261
9262 # type: =item
9263 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1923
9264 msgid "\"linux\""
9265 msgstr ""
9266
9267 # type: textblock
9268 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1925
9269 msgid "Any Linux-based operating system."
9270 msgstr ""
9271
9272 # type: textblock
9273 #: ../src/guestfs-actions.pod:2816 ../fish/guestfish-actions.pod:1929
9274 msgid "Any Microsoft Windows operating system."
9275 msgstr ""
9276
9277 # type: =item
9278 #: ../src/guestfs-actions.pod:2818 ../fish/guestfish-actions.pod:1931
9279 msgid "\"freebsd\""
9280 msgstr ""
9281
9282 # type: textblock
9283 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1933
9284 msgid "FreeBSD."
9285 msgstr ""
9286
9287 # type: textblock
9288 #: ../src/guestfs-actions.pod:2824 ../fish/guestfish-actions.pod:1937
9289 msgid "The operating system type could not be determined."
9290 msgstr ""
9291
9292 # type: =head2
9293 #: ../src/guestfs-actions.pod:2838
9294 msgid "guestfs_inspect_get_windows_systemroot"
9295 msgstr ""
9296
9297 # type: verbatim
9298 #: ../src/guestfs-actions.pod:2840
9299 #, no-wrap
9300 msgid ""
9301 " char *\n"
9302 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9303 "                                         const char *root);\n"
9304 "\n"
9305 msgstr ""
9306
9307 # type: textblock
9308 #: ../src/guestfs-actions.pod:2847 ../fish/guestfish-actions.pod:1953
9309 msgid ""
9310 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9311 "is a directory path such as C</WINDOWS>."
9312 msgstr ""
9313
9314 # type: textblock
9315 #: ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1956
9316 msgid ""
9317 "This call assumes that the guest is Windows and that the systemroot could be "
9318 "determined by inspection.  If this is not the case then an error is returned."
9319 msgstr ""
9320
9321 # type: textblock
9322 #: ../src/guestfs-actions.pod:2859
9323 msgid "(Added in 1.5.25)"
9324 msgstr ""
9325
9326 # type: =head2
9327 #: ../src/guestfs-actions.pod:2861
9328 msgid "guestfs_inspect_list_applications"
9329 msgstr ""
9330
9331 # type: verbatim
9332 #: ../src/guestfs-actions.pod:2863
9333 #, no-wrap
9334 msgid ""
9335 " struct guestfs_application_list *\n"
9336 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9337 "                                    const char *root);\n"
9338 "\n"
9339 msgstr ""
9340
9341 # type: textblock
9342 #: ../src/guestfs-actions.pod:2870 ../fish/guestfish-actions.pod:1969
9343 msgid "Return the list of applications installed in the operating system."
9344 msgstr ""
9345
9346 # type: textblock
9347 #: ../src/guestfs-actions.pod:2872
9348 msgid ""
9349 "I<Note:> This call works differently from other parts of the inspection "
9350 "API.  You have to call C<guestfs_inspect_os>, then "
9351 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9352 "this.  Listing applications is a significantly more difficult operation "
9353 "which requires access to the full filesystem.  Also note that unlike the "
9354 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9355 "the libguestfs handle, this call actually reads parts of the mounted "
9356 "filesystems during the call."
9357 msgstr ""
9358
9359 # type: textblock
9360 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1981
9361 msgid ""
9362 "This returns an empty list if the inspection code was not able to determine "
9363 "the list of applications."
9364 msgstr ""
9365
9366 # type: textblock
9367 #: ../src/guestfs-actions.pod:2885 ../fish/guestfish-actions.pod:1984
9368 msgid "The application structure contains the following fields:"
9369 msgstr ""
9370
9371 # type: =item
9372 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1988
9373 msgid "C<app_name>"
9374 msgstr ""
9375
9376 # type: textblock
9377 #: ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:1990
9378 msgid ""
9379 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9380 "guests, this is the package name."
9381 msgstr ""
9382
9383 # type: =item
9384 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:1993
9385 msgid "C<app_display_name>"
9386 msgstr ""
9387
9388 # type: textblock
9389 #: ../src/guestfs-actions.pod:2896 ../fish/guestfish-actions.pod:1995
9390 msgid ""
9391 "The display name of the application, sometimes localized to the install "
9392 "language of the guest operating system."
9393 msgstr ""
9394
9395 # type: textblock
9396 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1998
9397 msgid ""
9398 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9399 "to display something can use C<app_name> instead."
9400 msgstr ""
9401
9402 # type: =item
9403 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2001
9404 msgid "C<app_epoch>"
9405 msgstr ""
9406
9407 # type: textblock
9408 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2003
9409 msgid ""
9410 "For package managers which use epochs, this contains the epoch of the "
9411 "package (an integer).  If unavailable, this is returned as C<0>."
9412 msgstr ""
9413
9414 # type: =item
9415 #: ../src/guestfs-actions.pod:2907 ../fish/guestfish-actions.pod:2006
9416 msgid "C<app_version>"
9417 msgstr ""
9418
9419 # type: textblock
9420 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2008
9421 msgid ""
9422 "The version string of the application or package.  If unavailable this is "
9423 "returned as an empty string C<\"\">."
9424 msgstr ""
9425
9426 # type: =item
9427 #: ../src/guestfs-actions.pod:2912 ../fish/guestfish-actions.pod:2011
9428 msgid "C<app_release>"
9429 msgstr ""
9430
9431 # type: textblock
9432 #: ../src/guestfs-actions.pod:2914 ../fish/guestfish-actions.pod:2013
9433 msgid ""
9434 "The release string of the application or package, for package managers that "
9435 "use this.  If unavailable this is returned as an empty string C<\"\">."
9436 msgstr ""
9437
9438 # type: =item
9439 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2017
9440 msgid "C<app_install_path>"
9441 msgstr ""
9442
9443 # type: textblock
9444 #: ../src/guestfs-actions.pod:2920 ../fish/guestfish-actions.pod:2019
9445 msgid ""
9446 "The installation path of the application (on operating systems such as "
9447 "Windows which use installation paths).  This path is in the format used by "
9448 "the guest operating system, it is not a libguestfs path."
9449 msgstr ""
9450
9451 # type: textblock
9452 #: ../src/guestfs-actions.pod:2925 ../fish/guestfish-actions.pod:2024
9453 msgid "If unavailable this is returned as an empty string C<\"\">."
9454 msgstr ""
9455
9456 # type: =item
9457 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2026
9458 msgid "C<app_trans_path>"
9459 msgstr ""
9460
9461 # type: textblock
9462 #: ../src/guestfs-actions.pod:2929 ../fish/guestfish-actions.pod:2028
9463 msgid ""
9464 "The install path translated into a libguestfs path.  If unavailable this is "
9465 "returned as an empty string C<\"\">."
9466 msgstr ""
9467
9468 # type: =item
9469 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2031
9470 msgid "C<app_publisher>"
9471 msgstr ""
9472
9473 # type: textblock
9474 #: ../src/guestfs-actions.pod:2934 ../fish/guestfish-actions.pod:2033
9475 msgid ""
9476 "The name of the publisher of the application, for package managers that use "
9477 "this.  If unavailable this is returned as an empty string C<\"\">."
9478 msgstr ""
9479
9480 # type: =item
9481 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2037
9482 msgid "C<app_url>"
9483 msgstr ""
9484
9485 # type: textblock
9486 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2039
9487 msgid ""
9488 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9489 "returned as an empty string C<\"\">."
9490 msgstr ""
9491
9492 # type: =item
9493 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2042
9494 msgid "C<app_source_package>"
9495 msgstr ""
9496
9497 # type: textblock
9498 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2044
9499 msgid ""
9500 "For packaging systems which support this, the name of the source package.  "
9501 "If unavailable this is returned as an empty string C<\"\">."
9502 msgstr ""
9503
9504 # type: =item
9505 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2047
9506 msgid "C<app_summary>"
9507 msgstr ""
9508
9509 # type: textblock
9510 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:2049
9511 msgid ""
9512 "A short (usually one line) description of the application or package.  If "
9513 "unavailable this is returned as an empty string C<\"\">."
9514 msgstr ""
9515
9516 # type: =item
9517 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2052
9518 msgid "C<app_description>"
9519 msgstr ""
9520
9521 # type: textblock
9522 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2054
9523 msgid ""
9524 "A longer description of the application or package.  If unavailable this is "
9525 "returned as an empty string C<\"\">."
9526 msgstr ""
9527
9528 # type: textblock
9529 #: ../src/guestfs-actions.pod:2962
9530 msgid ""
9531 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9532 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9533 "after use>."
9534 msgstr ""
9535
9536 # type: textblock
9537 #: ../src/guestfs-actions.pod:2966
9538 msgid "(Added in 1.7.8)"
9539 msgstr ""
9540
9541 # type: =head2
9542 #: ../src/guestfs-actions.pod:2968
9543 msgid "guestfs_inspect_os"
9544 msgstr ""
9545
9546 # type: verbatim
9547 #: ../src/guestfs-actions.pod:2970
9548 #, no-wrap
9549 msgid ""
9550 " char **\n"
9551 " guestfs_inspect_os (guestfs_h *g);\n"
9552 "\n"
9553 msgstr ""
9554
9555 # type: textblock
9556 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2065
9557 msgid ""
9558 "This function uses other libguestfs functions and certain heuristics to "
9559 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9560 "for operating systems."
9561 msgstr ""
9562
9563 # type: textblock
9564 #: ../src/guestfs-actions.pod:2977 ../fish/guestfish-actions.pod:2069
9565 msgid "The list returned is empty if no operating systems were found."
9566 msgstr ""
9567
9568 # type: textblock
9569 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2071
9570 msgid ""
9571 "If one operating system was found, then this returns a list with a single "
9572 "element, which is the name of the root filesystem of this operating system.  "
9573 "It is also possible for this function to return a list containing more than "
9574 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9575 "element being the root filesystem of one of the operating systems."
9576 msgstr ""
9577
9578 # type: textblock
9579 #: ../src/guestfs-actions.pod:2986
9580 msgid ""
9581 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9582 "functions in order to query further information about each operating system, "
9583 "such as the name and version."
9584 msgstr ""
9585
9586 # type: textblock
9587 #: ../src/guestfs-actions.pod:2991
9588 msgid ""
9589 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9590 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9591 "the contents.  This should be called with no disks currently mounted.  The "
9592 "function may also use Augeas, so any existing Augeas handle will be closed."
9593 msgstr ""
9594
9595 # type: textblock
9596 #: ../src/guestfs-actions.pod:2997 ../fish/guestfish-actions.pod:2089
9597 msgid ""
9598 "This function cannot decrypt encrypted disks.  The caller must do that first "
9599 "(supplying the necessary keys) if the disk is encrypted."
9600 msgstr ""
9601
9602 # type: textblock
9603 #: ../src/guestfs-actions.pod:3003 ../src/guestfs-actions.pod:3258
9604 #: ../src/guestfs-actions.pod:3320
9605 msgid "See also C<guestfs_list_filesystems>."
9606 msgstr ""
9607
9608 # type: =head2
9609 #: ../src/guestfs-actions.pod:3011
9610 msgid "guestfs_is_blockdev"
9611 msgstr ""
9612
9613 # type: verbatim
9614 #: ../src/guestfs-actions.pod:3013
9615 #, no-wrap
9616 msgid ""
9617 " int\n"
9618 " guestfs_is_blockdev (guestfs_h *g,\n"
9619 "                      const char *path);\n"
9620 "\n"
9621 msgstr ""
9622
9623 # type: textblock
9624 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2101
9625 msgid ""
9626 "This returns C<true> if and only if there is a block device with the given "
9627 "C<path> name."
9628 msgstr ""
9629
9630 # type: textblock
9631 #: ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3049
9632 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3094
9633 #: ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3166
9634 #: ../src/guestfs-actions.pod:3181
9635 msgid "See also C<guestfs_stat>."
9636 msgstr ""
9637
9638 # type: textblock
9639 #: ../src/guestfs-actions.pod:3024 ../src/guestfs-actions.pod:3053
9640 #: ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3170
9641 #: ../src/guestfs-actions.pod:3185
9642 msgid "(Added in 1.5.10)"
9643 msgstr ""
9644
9645 # type: =head2
9646 #: ../src/guestfs-actions.pod:3026
9647 msgid "guestfs_is_busy"
9648 msgstr ""
9649
9650 # type: verbatim
9651 #: ../src/guestfs-actions.pod:3028
9652 #, no-wrap
9653 msgid ""
9654 " int\n"
9655 " guestfs_is_busy (guestfs_h *g);\n"
9656 "\n"
9657 msgstr ""
9658
9659 # type: textblock
9660 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2110
9661 msgid ""
9662 "This returns true iff this handle is busy processing a command (in the "
9663 "C<BUSY> state)."
9664 msgstr ""
9665
9666 # type: =head2
9667 #: ../src/guestfs-actions.pod:3040
9668 msgid "guestfs_is_chardev"
9669 msgstr ""
9670
9671 # type: verbatim
9672 #: ../src/guestfs-actions.pod:3042
9673 #, no-wrap
9674 msgid ""
9675 " int\n"
9676 " guestfs_is_chardev (guestfs_h *g,\n"
9677 "                     const char *path);\n"
9678 "\n"
9679 msgstr ""
9680
9681 # type: textblock
9682 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2119
9683 msgid ""
9684 "This returns C<true> if and only if there is a character device with the "
9685 "given C<path> name."
9686 msgstr ""
9687
9688 # type: =head2
9689 #: ../src/guestfs-actions.pod:3055
9690 msgid "guestfs_is_config"
9691 msgstr ""
9692
9693 # type: verbatim
9694 #: ../src/guestfs-actions.pod:3057
9695 #, no-wrap
9696 msgid ""
9697 " int\n"
9698 " guestfs_is_config (guestfs_h *g);\n"
9699 "\n"
9700 msgstr ""
9701
9702 # type: textblock
9703 #: ../src/guestfs-actions.pod:3060 ../fish/guestfish-actions.pod:2128
9704 msgid ""
9705 "This returns true iff this handle is being configured (in the C<CONFIG> "
9706 "state)."
9707 msgstr ""
9708
9709 # type: =head2
9710 #: ../src/guestfs-actions.pod:3069
9711 msgid "guestfs_is_dir"
9712 msgstr ""
9713
9714 # type: verbatim
9715 #: ../src/guestfs-actions.pod:3071
9716 #, no-wrap
9717 msgid ""
9718 " int\n"
9719 " guestfs_is_dir (guestfs_h *g,\n"
9720 "                 const char *path);\n"
9721 "\n"
9722 msgstr ""
9723
9724 # type: textblock
9725 #: ../src/guestfs-actions.pod:3075 ../fish/guestfish-actions.pod:2137
9726 msgid ""
9727 "This returns C<true> if and only if there is a directory with the given "
9728 "C<path> name.  Note that it returns false for other objects like files."
9729 msgstr ""
9730
9731 # type: =head2
9732 #: ../src/guestfs-actions.pod:3085
9733 msgid "guestfs_is_fifo"
9734 msgstr ""
9735
9736 # type: verbatim
9737 #: ../src/guestfs-actions.pod:3087
9738 #, no-wrap
9739 msgid ""
9740 " int\n"
9741 " guestfs_is_fifo (guestfs_h *g,\n"
9742 "                  const char *path);\n"
9743 "\n"
9744 msgstr ""
9745
9746 # type: textblock
9747 #: ../src/guestfs-actions.pod:3091 ../fish/guestfish-actions.pod:2147
9748 msgid ""
9749 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9750 "given C<path> name."
9751 msgstr ""
9752
9753 # type: =head2
9754 #: ../src/guestfs-actions.pod:3100
9755 msgid "guestfs_is_file"
9756 msgstr ""
9757
9758 # type: verbatim
9759 #: ../src/guestfs-actions.pod:3102
9760 #, no-wrap
9761 msgid ""
9762 " int\n"
9763 " guestfs_is_file (guestfs_h *g,\n"
9764 "                  const char *path);\n"
9765 "\n"
9766 msgstr ""
9767
9768 # type: textblock
9769 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2156
9770 msgid ""
9771 "This returns C<true> if and only if there is a regular file with the given "
9772 "C<path> name.  Note that it returns false for other objects like directories."
9773 msgstr ""
9774
9775 # type: =head2
9776 #: ../src/guestfs-actions.pod:3116
9777 msgid "guestfs_is_launching"
9778 msgstr ""
9779
9780 # type: verbatim
9781 #: ../src/guestfs-actions.pod:3118
9782 #, no-wrap
9783 msgid ""
9784 " int\n"
9785 " guestfs_is_launching (guestfs_h *g);\n"
9786 "\n"
9787 msgstr ""
9788
9789 # type: textblock
9790 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2166
9791 msgid ""
9792 "This returns true iff this handle is launching the subprocess (in the "
9793 "C<LAUNCHING> state)."
9794 msgstr ""
9795
9796 # type: =head2
9797 #: ../src/guestfs-actions.pod:3130
9798 msgid "guestfs_is_lv"
9799 msgstr ""
9800
9801 # type: verbatim
9802 #: ../src/guestfs-actions.pod:3132
9803 #, no-wrap
9804 msgid ""
9805 " int\n"
9806 " guestfs_is_lv (guestfs_h *g,\n"
9807 "                const char *device);\n"
9808 "\n"
9809 msgstr ""
9810
9811 # type: textblock
9812 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2175
9813 msgid ""
9814 "This command tests whether C<device> is a logical volume, and returns true "
9815 "iff this is the case."
9816 msgstr ""
9817
9818 # type: =head2
9819 #: ../src/guestfs-actions.pod:3143
9820 msgid "guestfs_is_ready"
9821 msgstr ""
9822
9823 # type: verbatim
9824 #: ../src/guestfs-actions.pod:3145
9825 #, no-wrap
9826 msgid ""
9827 " int\n"
9828 " guestfs_is_ready (guestfs_h *g);\n"
9829 "\n"
9830 msgstr ""
9831
9832 # type: textblock
9833 #: ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:2182
9834 msgid ""
9835 "This returns true iff this handle is ready to accept commands (in the "
9836 "C<READY> state)."
9837 msgstr ""
9838
9839 # type: =head2
9840 #: ../src/guestfs-actions.pod:3157
9841 msgid "guestfs_is_socket"
9842 msgstr ""
9843
9844 # type: verbatim
9845 #: ../src/guestfs-actions.pod:3159
9846 #, no-wrap
9847 msgid ""
9848 " int\n"
9849 " guestfs_is_socket (guestfs_h *g,\n"
9850 "                    const char *path);\n"
9851 "\n"
9852 msgstr ""
9853
9854 # type: textblock
9855 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2191
9856 msgid ""
9857 "This returns C<true> if and only if there is a Unix domain socket with the "
9858 "given C<path> name."
9859 msgstr ""
9860
9861 # type: =head2
9862 #: ../src/guestfs-actions.pod:3172
9863 msgid "guestfs_is_symlink"
9864 msgstr ""
9865
9866 # type: verbatim
9867 #: ../src/guestfs-actions.pod:3174
9868 #, no-wrap
9869 msgid ""
9870 " int\n"
9871 " guestfs_is_symlink (guestfs_h *g,\n"
9872 "                     const char *path);\n"
9873 "\n"
9874 msgstr ""
9875
9876 # type: textblock
9877 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2200
9878 msgid ""
9879 "This returns C<true> if and only if there is a symbolic link with the given "
9880 "C<path> name."
9881 msgstr ""
9882
9883 # type: =head2
9884 #: ../src/guestfs-actions.pod:3187
9885 msgid "guestfs_kill_subprocess"
9886 msgstr ""
9887
9888 # type: verbatim
9889 #: ../src/guestfs-actions.pod:3189
9890 #, no-wrap
9891 msgid ""
9892 " int\n"
9893 " guestfs_kill_subprocess (guestfs_h *g);\n"
9894 "\n"
9895 msgstr ""
9896
9897 # type: textblock
9898 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2209
9899 msgid "This kills the qemu subprocess.  You should never need to call this."
9900 msgstr ""
9901
9902 # type: =head2
9903 #: ../src/guestfs-actions.pod:3198
9904 msgid "guestfs_launch"
9905 msgstr ""
9906
9907 # type: verbatim
9908 #: ../src/guestfs-actions.pod:3200
9909 #, no-wrap
9910 msgid ""
9911 " int\n"
9912 " guestfs_launch (guestfs_h *g);\n"
9913 "\n"
9914 msgstr ""
9915
9916 # type: textblock
9917 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2217
9918 msgid ""
9919 "Internally libguestfs is implemented by running a virtual machine using "
9920 "L<qemu(1)>."
9921 msgstr ""
9922
9923 # type: textblock
9924 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
9925 msgid ""
9926 "You should call this after configuring the handle (eg. adding drives) but "
9927 "before performing any actions."
9928 msgstr ""
9929
9930 # type: =head2
9931 #: ../src/guestfs-actions.pod:3213
9932 msgid "guestfs_lchown"
9933 msgstr ""
9934
9935 # type: verbatim
9936 #: ../src/guestfs-actions.pod:3215
9937 #, no-wrap
9938 msgid ""
9939 " int\n"
9940 " guestfs_lchown (guestfs_h *g,\n"
9941 "                 int owner,\n"
9942 "                 int group,\n"
9943 "                 const char *path);\n"
9944 "\n"
9945 msgstr ""
9946
9947 # type: textblock
9948 #: ../src/guestfs-actions.pod:3221
9949 msgid ""
9950 "Change the file owner to C<owner> and group to C<group>.  This is like "
9951 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9952 "changed, not the target."
9953 msgstr ""
9954
9955 # type: =head2
9956 #: ../src/guestfs-actions.pod:3233
9957 msgid "guestfs_lgetxattrs"
9958 msgstr ""
9959
9960 # type: verbatim
9961 #: ../src/guestfs-actions.pod:3235
9962 #, no-wrap
9963 msgid ""
9964 " struct guestfs_xattr_list *\n"
9965 " guestfs_lgetxattrs (guestfs_h *g,\n"
9966 "                     const char *path);\n"
9967 "\n"
9968 msgstr ""
9969
9970 # type: textblock
9971 #: ../src/guestfs-actions.pod:3239
9972 msgid ""
9973 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9974 "then it returns the extended attributes of the link itself."
9975 msgstr ""
9976
9977 # type: =head2
9978 #: ../src/guestfs-actions.pod:3249
9979 msgid "guestfs_list_devices"
9980 msgstr ""
9981
9982 # type: verbatim
9983 #: ../src/guestfs-actions.pod:3251
9984 #, no-wrap
9985 msgid ""
9986 " char **\n"
9987 " guestfs_list_devices (guestfs_h *g);\n"
9988 "\n"
9989 msgstr ""
9990
9991 # type: textblock
9992 #: ../src/guestfs-actions.pod:3254 ../fish/guestfish-actions.pod:2247
9993 msgid "List all the block devices."
9994 msgstr ""
9995
9996 # type: textblock
9997 #: ../src/guestfs-actions.pod:3256 ../fish/guestfish-actions.pod:2249
9998 msgid "The full block device names are returned, eg. C</dev/sda>."
9999 msgstr ""
10000
10001 # type: =head2
10002 #: ../src/guestfs-actions.pod:3266
10003 msgid "guestfs_list_filesystems"
10004 msgstr ""
10005
10006 # type: verbatim
10007 #: ../src/guestfs-actions.pod:3268
10008 #, no-wrap
10009 msgid ""
10010 " char **\n"
10011 " guestfs_list_filesystems (guestfs_h *g);\n"
10012 "\n"
10013 msgstr ""
10014
10015 # type: textblock
10016 #: ../src/guestfs-actions.pod:3271 ../fish/guestfish-actions.pod:2257
10017 msgid ""
10018 "This inspection command looks for filesystems on partitions, block devices "
10019 "and logical volumes, returning a list of devices containing filesystems and "
10020 "their type."
10021 msgstr ""
10022
10023 # type: textblock
10024 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:2261
10025 msgid ""
10026 "The return value is a hash, where the keys are the devices containing "
10027 "filesystems, and the values are the filesystem types.  For example:"
10028 msgstr ""
10029
10030 # type: verbatim
10031 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2265
10032 #, no-wrap
10033 msgid ""
10034 " \"/dev/sda1\" => \"ntfs\"\n"
10035 " \"/dev/sda2\" => \"ext2\"\n"
10036 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10037 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10038 "\n"
10039 msgstr ""
10040
10041 # type: textblock
10042 #: ../src/guestfs-actions.pod:3284 ../fish/guestfish-actions.pod:2270
10043 msgid ""
10044 "The value can have the special value \"unknown\", meaning the content of the "
10045 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10046 msgstr ""
10047
10048 # type: textblock
10049 #: ../src/guestfs-actions.pod:3288
10050 msgid ""
10051 "This command runs other libguestfs commands, which might include "
10052 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10053 "soon after launch and only when nothing is mounted."
10054 msgstr ""
10055
10056 # type: textblock
10057 #: ../src/guestfs-actions.pod:3292
10058 msgid ""
10059 "Not all of the filesystems returned will be mountable.  In particular, swap "
10060 "partitions are returned in the list.  Also this command does not check that "
10061 "each filesystem found is valid and mountable, and some filesystems might be "
10062 "mountable but require special options.  Filesystems may not all belong to a "
10063 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10064 msgstr ""
10065
10066 # type: textblock
10067 #: ../src/guestfs-actions.pod:3306 ../src/guestfs-actions.pod:4829
10068 msgid "(Added in 1.5.15)"
10069 msgstr ""
10070
10071 # type: =head2
10072 #: ../src/guestfs-actions.pod:3308
10073 msgid "guestfs_list_partitions"
10074 msgstr ""
10075
10076 # type: verbatim
10077 #: ../src/guestfs-actions.pod:3310
10078 #, no-wrap
10079 msgid ""
10080 " char **\n"
10081 " guestfs_list_partitions (guestfs_h *g);\n"
10082 "\n"
10083 msgstr ""
10084
10085 # type: textblock
10086 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:2290
10087 msgid "List all the partitions detected on all block devices."
10088 msgstr ""
10089
10090 # type: textblock
10091 #: ../src/guestfs-actions.pod:3315 ../fish/guestfish-actions.pod:2292
10092 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10093 msgstr ""
10094
10095 # type: textblock
10096 #: ../src/guestfs-actions.pod:3317
10097 msgid ""
10098 "This does not return logical volumes.  For that you will need to call "
10099 "C<guestfs_lvs>."
10100 msgstr ""
10101
10102 # type: =head2
10103 #: ../src/guestfs-actions.pod:3328
10104 msgid "guestfs_ll"
10105 msgstr ""
10106
10107 # type: verbatim
10108 #: ../src/guestfs-actions.pod:3330
10109 #, no-wrap
10110 msgid ""
10111 " char *\n"
10112 " guestfs_ll (guestfs_h *g,\n"
10113 "             const char *directory);\n"
10114 "\n"
10115 msgstr ""
10116
10117 # type: textblock
10118 #: ../src/guestfs-actions.pod:3334 ../fish/guestfish-actions.pod:2303
10119 msgid ""
10120 "List the files in C<directory> (relative to the root directory, there is no "
10121 "cwd) in the format of 'ls -la'."
10122 msgstr ""
10123
10124 # type: textblock
10125 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2306
10126 msgid ""
10127 "This command is mostly useful for interactive sessions.  It is I<not> "
10128 "intended that you try to parse the output string."
10129 msgstr ""
10130
10131 # type: =head2
10132 #: ../src/guestfs-actions.pod:3345
10133 msgid "guestfs_ln"
10134 msgstr ""
10135
10136 # type: verbatim
10137 #: ../src/guestfs-actions.pod:3347
10138 #, no-wrap
10139 msgid ""
10140 " int\n"
10141 " guestfs_ln (guestfs_h *g,\n"
10142 "             const char *target,\n"
10143 "             const char *linkname);\n"
10144 "\n"
10145 msgstr ""
10146
10147 # type: textblock
10148 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2313
10149 msgid "This command creates a hard link using the C<ln> command."
10150 msgstr ""
10151
10152 # type: =head2
10153 #: ../src/guestfs-actions.pod:3358
10154 msgid "guestfs_ln_f"
10155 msgstr ""
10156
10157 # type: verbatim
10158 #: ../src/guestfs-actions.pod:3360
10159 #, no-wrap
10160 msgid ""
10161 " int\n"
10162 " guestfs_ln_f (guestfs_h *g,\n"
10163 "               const char *target,\n"
10164 "               const char *linkname);\n"
10165 "\n"
10166 msgstr ""
10167
10168 # type: textblock
10169 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2319
10170 msgid ""
10171 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10172 "option removes the link (C<linkname>) if it exists already."
10173 msgstr ""
10174
10175 # type: =head2
10176 #: ../src/guestfs-actions.pod:3372
10177 msgid "guestfs_ln_s"
10178 msgstr ""
10179
10180 # type: verbatim
10181 #: ../src/guestfs-actions.pod:3374
10182 #, no-wrap
10183 msgid ""
10184 " int\n"
10185 " guestfs_ln_s (guestfs_h *g,\n"
10186 "               const char *target,\n"
10187 "               const char *linkname);\n"
10188 "\n"
10189 msgstr ""
10190
10191 # type: textblock
10192 #: ../src/guestfs-actions.pod:3379 ../fish/guestfish-actions.pod:2326
10193 msgid "This command creates a symbolic link using the C<ln -s> command."
10194 msgstr ""
10195
10196 # type: =head2
10197 #: ../src/guestfs-actions.pod:3385
10198 msgid "guestfs_ln_sf"
10199 msgstr ""
10200
10201 # type: verbatim
10202 #: ../src/guestfs-actions.pod:3387
10203 #, no-wrap
10204 msgid ""
10205 " int\n"
10206 " guestfs_ln_sf (guestfs_h *g,\n"
10207 "                const char *target,\n"
10208 "                const char *linkname);\n"
10209 "\n"
10210 msgstr ""
10211
10212 # type: textblock
10213 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2332
10214 msgid ""
10215 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10216 "option removes the link (C<linkname>) if it exists already."
10217 msgstr ""
10218
10219 # type: =head2
10220 #: ../src/guestfs-actions.pod:3399
10221 msgid "guestfs_lremovexattr"
10222 msgstr ""
10223
10224 # type: verbatim
10225 #: ../src/guestfs-actions.pod:3401
10226 #, no-wrap
10227 msgid ""
10228 " int\n"
10229 " guestfs_lremovexattr (guestfs_h *g,\n"
10230 "                       const char *xattr,\n"
10231 "                       const char *path);\n"
10232 "\n"
10233 msgstr ""
10234
10235 # type: textblock
10236 #: ../src/guestfs-actions.pod:3406
10237 msgid ""
10238 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10239 "link, then it removes an extended attribute of the link itself."
10240 msgstr ""
10241
10242 # type: =head2
10243 #: ../src/guestfs-actions.pod:3414
10244 msgid "guestfs_ls"
10245 msgstr ""
10246
10247 # type: verbatim
10248 #: ../src/guestfs-actions.pod:3416
10249 #, no-wrap
10250 msgid ""
10251 " char **\n"
10252 " guestfs_ls (guestfs_h *g,\n"
10253 "             const char *directory);\n"
10254 "\n"
10255 msgstr ""
10256
10257 # type: textblock
10258 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2347
10259 msgid ""
10260 "List the files in C<directory> (relative to the root directory, there is no "
10261 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10262 msgstr ""
10263
10264 # type: textblock
10265 #: ../src/guestfs-actions.pod:3424
10266 msgid ""
10267 "This command is mostly useful for interactive sessions.  Programs should "
10268 "probably use C<guestfs_readdir> instead."
10269 msgstr ""
10270
10271 # type: =head2
10272 #: ../src/guestfs-actions.pod:3433
10273 msgid "guestfs_lsetxattr"
10274 msgstr ""
10275
10276 # type: verbatim
10277 #: ../src/guestfs-actions.pod:3435
10278 #, no-wrap
10279 msgid ""
10280 " int\n"
10281 " guestfs_lsetxattr (guestfs_h *g,\n"
10282 "                    const char *xattr,\n"
10283 "                    const char *val,\n"
10284 "                    int vallen,\n"
10285 "                    const char *path);\n"
10286 "\n"
10287 msgstr ""
10288
10289 # type: textblock
10290 #: ../src/guestfs-actions.pod:3442
10291 msgid ""
10292 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10293 "then it sets an extended attribute of the link itself."
10294 msgstr ""
10295
10296 # type: =head2
10297 #: ../src/guestfs-actions.pod:3450
10298 msgid "guestfs_lstat"
10299 msgstr ""
10300
10301 # type: verbatim
10302 #: ../src/guestfs-actions.pod:3452
10303 #, no-wrap
10304 msgid ""
10305 " struct guestfs_stat *\n"
10306 " guestfs_lstat (guestfs_h *g,\n"
10307 "                const char *path);\n"
10308 "\n"
10309 msgstr ""
10310
10311 # type: textblock
10312 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5883
10313 #: ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
10314 msgid "Returns file information for the given C<path>."
10315 msgstr ""
10316
10317 # type: textblock
10318 #: ../src/guestfs-actions.pod:3458
10319 msgid ""
10320 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10321 "link, then the link is stat-ed, not the file it refers to."
10322 msgstr ""
10323
10324 # type: textblock
10325 #: ../src/guestfs-actions.pod:3462 ../fish/guestfish-actions.pod:2372
10326 msgid "This is the same as the C<lstat(2)> system call."
10327 msgstr ""
10328
10329 # type: textblock
10330 #: ../src/guestfs-actions.pod:3464 ../src/guestfs-actions.pod:5887
10331 msgid ""
10332 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10333 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10334 msgstr ""
10335
10336 # type: textblock
10337 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:5891
10338 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:6290
10339 msgid "(Added in 0.9.2)"
10340 msgstr ""
10341
10342 # type: =head2
10343 #: ../src/guestfs-actions.pod:3470
10344 msgid "guestfs_lstatlist"
10345 msgstr ""
10346
10347 # type: verbatim
10348 #: ../src/guestfs-actions.pod:3472
10349 #, no-wrap
10350 msgid ""
10351 " struct guestfs_stat_list *\n"
10352 " guestfs_lstatlist (guestfs_h *g,\n"
10353 "                    const char *path,\n"
10354 "                    char *const *names);\n"
10355 "\n"
10356 msgstr ""
10357
10358 # type: textblock
10359 #: ../src/guestfs-actions.pod:3477
10360 msgid ""
10361 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10362 "files, where all files are in the directory C<path>.  C<names> is the list "
10363 "of files from this directory."
10364 msgstr ""
10365
10366 # type: textblock
10367 #: ../src/guestfs-actions.pod:3481 ../fish/guestfish-actions.pod:2382
10368 msgid ""
10369 "On return you get a list of stat structs, with a one-to-one correspondence "
10370 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10371 "then the C<ino> field of that structure is set to C<-1>."
10372 msgstr ""
10373
10374 # type: textblock
10375 #: ../src/guestfs-actions.pod:3486
10376 msgid ""
10377 "This call is intended for programs that want to efficiently list a directory "
10378 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10379 "for a similarly efficient call for getting extended attributes.  Very long "
10380 "directory listings might cause the protocol message size to be exceeded, "
10381 "causing this call to fail.  The caller must split up such requests into "
10382 "smaller groups of names."
10383 msgstr ""
10384
10385 # type: textblock
10386 #: ../src/guestfs-actions.pod:3494
10387 msgid ""
10388 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10389 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10390 msgstr ""
10391
10392 # type: =head2
10393 #: ../src/guestfs-actions.pod:3500
10394 msgid "guestfs_luks_add_key"
10395 msgstr ""
10396
10397 # type: verbatim
10398 #: ../src/guestfs-actions.pod:3502
10399 #, no-wrap
10400 msgid ""
10401 " int\n"
10402 " guestfs_luks_add_key (guestfs_h *g,\n"
10403 "                       const char *device,\n"
10404 "                       const char *key,\n"
10405 "                       const char *newkey,\n"
10406 "                       int keyslot);\n"
10407 "\n"
10408 msgstr ""
10409
10410 # type: textblock
10411 #: ../src/guestfs-actions.pod:3509 ../fish/guestfish-actions.pod:2399
10412 msgid ""
10413 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10414 "existing key, and is used to access the device.  C<newkey> is the new key to "
10415 "add.  C<keyslot> is the key slot that will be replaced."
10416 msgstr ""
10417
10418 # type: textblock
10419 #: ../src/guestfs-actions.pod:3514
10420 msgid ""
10421 "Note that if C<keyslot> already contains a key, then this command will "
10422 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10423 msgstr ""
10424
10425 # type: textblock
10426 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:3560
10427 #: ../src/guestfs-actions.pod:3583 ../src/guestfs-actions.pod:3603
10428 #: ../src/guestfs-actions.pod:3635 ../src/guestfs-actions.pod:3654
10429 msgid ""
10430 "This function takes a key or passphrase parameter which could contain "
10431 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10432 "information."
10433 msgstr ""
10434
10435 # type: textblock
10436 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3564
10437 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3607
10438 msgid "(Added in 1.5.2)"
10439 msgstr ""
10440
10441 # type: =head2
10442 #: ../src/guestfs-actions.pod:3526
10443 msgid "guestfs_luks_close"
10444 msgstr ""
10445
10446 # type: verbatim
10447 #: ../src/guestfs-actions.pod:3528
10448 #, no-wrap
10449 msgid ""
10450 " int\n"
10451 " guestfs_luks_close (guestfs_h *g,\n"
10452 "                     const char *device);\n"
10453 "\n"
10454 msgstr ""
10455
10456 # type: textblock
10457 #: ../src/guestfs-actions.pod:3532
10458 msgid ""
10459 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10460 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10461 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10462 "underlying block device."
10463 msgstr ""
10464
10465 # type: textblock
10466 #: ../src/guestfs-actions.pod:3540 ../src/guestfs-actions.pod:3639
10467 #: ../src/guestfs-actions.pod:3658 ../src/guestfs-actions.pod:3708
10468 #: ../src/guestfs-actions.pod:3756
10469 msgid "(Added in 1.5.1)"
10470 msgstr ""
10471
10472 # type: =head2
10473 #: ../src/guestfs-actions.pod:3542
10474 msgid "guestfs_luks_format"
10475 msgstr ""
10476
10477 # type: verbatim
10478 #: ../src/guestfs-actions.pod:3544
10479 #, no-wrap
10480 msgid ""
10481 " int\n"
10482 " guestfs_luks_format (guestfs_h *g,\n"
10483 "                      const char *device,\n"
10484 "                      const char *key,\n"
10485 "                      int keyslot);\n"
10486 "\n"
10487 msgstr ""
10488
10489 # type: textblock
10490 #: ../src/guestfs-actions.pod:3550 ../fish/guestfish-actions.pod:2425
10491 msgid ""
10492 "This command erases existing data on C<device> and formats the device as a "
10493 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10494 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10495 msgstr ""
10496
10497 # type: textblock
10498 #: ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3580
10499 #: ../src/guestfs-actions.pod:3720 ../src/guestfs-actions.pod:4580
10500 #: ../src/guestfs-actions.pod:5343 ../src/guestfs-actions.pod:5718
10501 #: ../src/guestfs-actions.pod:5741 ../src/guestfs-actions.pod:5767
10502 #: ../src/guestfs-actions.pod:6917 ../fish/guestfish-actions.pod:2433
10503 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530
10504 #: ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3567
10505 #: ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3863
10506 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:4593
10507 msgid ""
10508 "B<This command is dangerous.  Without careful use you can easily destroy all "
10509 "your data>."
10510 msgstr ""
10511
10512 # type: =head2
10513 #: ../src/guestfs-actions.pod:3566
10514 msgid "guestfs_luks_format_cipher"
10515 msgstr ""
10516
10517 # type: verbatim
10518 #: ../src/guestfs-actions.pod:3568
10519 #, no-wrap
10520 msgid ""
10521 " int\n"
10522 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10523 "                             const char *device,\n"
10524 "                             const char *key,\n"
10525 "                             int keyslot,\n"
10526 "                             const char *cipher);\n"
10527 "\n"
10528 msgstr ""
10529
10530 # type: textblock
10531 #: ../src/guestfs-actions.pod:3575
10532 msgid ""
10533 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10534 "set the C<cipher> used."
10535 msgstr ""
10536
10537 # type: =head2
10538 #: ../src/guestfs-actions.pod:3589
10539 msgid "guestfs_luks_kill_slot"
10540 msgstr ""
10541
10542 # type: verbatim
10543 #: ../src/guestfs-actions.pod:3591
10544 #, no-wrap
10545 msgid ""
10546 " int\n"
10547 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10548 "                         const char *device,\n"
10549 "                         const char *key,\n"
10550 "                         int keyslot);\n"
10551 "\n"
10552 msgstr ""
10553
10554 # type: textblock
10555 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2453
10556 msgid ""
10557 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10558 "device C<device>.  C<key> must be one of the I<other> keys."
10559 msgstr ""
10560
10561 # type: =head2
10562 #: ../src/guestfs-actions.pod:3609
10563 msgid "guestfs_luks_open"
10564 msgstr ""
10565
10566 # type: verbatim
10567 #: ../src/guestfs-actions.pod:3611
10568 #, no-wrap
10569 msgid ""
10570 " int\n"
10571 " guestfs_luks_open (guestfs_h *g,\n"
10572 "                    const char *device,\n"
10573 "                    const char *key,\n"
10574 "                    const char *mapname);\n"
10575 "\n"
10576 msgstr ""
10577
10578 # type: textblock
10579 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2464
10580 msgid ""
10581 "This command opens a block device which has been encrypted according to the "
10582 "Linux Unified Key Setup (LUKS) standard."
10583 msgstr ""
10584
10585 # type: textblock
10586 #: ../src/guestfs-actions.pod:3620 ../fish/guestfish-actions.pod:2467
10587 msgid "C<device> is the encrypted block device or partition."
10588 msgstr ""
10589
10590 # type: textblock
10591 #: ../src/guestfs-actions.pod:3622 ../fish/guestfish-actions.pod:2469
10592 msgid ""
10593 "The caller must supply one of the keys associated with the LUKS block "
10594 "device, in the C<key> parameter."
10595 msgstr ""
10596
10597 # type: textblock
10598 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2472
10599 msgid ""
10600 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10601 "writes to this block device are decrypted from and encrypted to the "
10602 "underlying C<device> respectively."
10603 msgstr ""
10604
10605 # type: textblock
10606 #: ../src/guestfs-actions.pod:3629
10607 msgid ""
10608 "If this block device contains LVM volume groups, then calling "
10609 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10610 "visible."
10611 msgstr ""
10612
10613 # type: =head2
10614 #: ../src/guestfs-actions.pod:3641
10615 msgid "guestfs_luks_open_ro"
10616 msgstr ""
10617
10618 # type: verbatim
10619 #: ../src/guestfs-actions.pod:3643
10620 #, no-wrap
10621 msgid ""
10622 " int\n"
10623 " guestfs_luks_open_ro (guestfs_h *g,\n"
10624 "                       const char *device,\n"
10625 "                       const char *key,\n"
10626 "                       const char *mapname);\n"
10627 "\n"
10628 msgstr ""
10629
10630 # type: textblock
10631 #: ../src/guestfs-actions.pod:3649
10632 msgid ""
10633 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10634 "created."
10635 msgstr ""
10636
10637 # type: =head2
10638 #: ../src/guestfs-actions.pod:3660
10639 msgid "guestfs_lvcreate"
10640 msgstr ""
10641
10642 # type: verbatim
10643 #: ../src/guestfs-actions.pod:3662
10644 #, no-wrap
10645 msgid ""
10646 " int\n"
10647 " guestfs_lvcreate (guestfs_h *g,\n"
10648 "                   const char *logvol,\n"
10649 "                   const char *volgroup,\n"
10650 "                   int mbytes);\n"
10651 "\n"
10652 msgstr ""
10653
10654 # type: textblock
10655 #: ../src/guestfs-actions.pod:3668 ../fish/guestfish-actions.pod:2497
10656 msgid ""
10657 "This creates an LVM logical volume called C<logvol> on the volume group "
10658 "C<volgroup>, with C<size> megabytes."
10659 msgstr ""
10660
10661 # type: =head2
10662 #: ../src/guestfs-actions.pod:3675
10663 msgid "guestfs_lvm_canonical_lv_name"
10664 msgstr ""
10665
10666 # type: verbatim
10667 #: ../src/guestfs-actions.pod:3677
10668 #, no-wrap
10669 msgid ""
10670 " char *\n"
10671 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10672 "                                const char *lvname);\n"
10673 "\n"
10674 msgstr ""
10675
10676 # type: textblock
10677 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2504
10678 msgid ""
10679 "This converts alternative naming schemes for LVs that you might find to the "
10680 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10681 "LV>."
10682 msgstr ""
10683
10684 # type: textblock
10685 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2508
10686 msgid ""
10687 "This command returns an error if the C<lvname> parameter does not refer to a "
10688 "logical volume."
10689 msgstr ""
10690
10691 # type: textblock
10692 #: ../src/guestfs-actions.pod:3688
10693 msgid "See also C<guestfs_is_lv>."
10694 msgstr ""
10695
10696 # type: textblock
10697 #: ../src/guestfs-actions.pod:3693
10698 msgid "(Added in 1.5.24)"
10699 msgstr ""
10700
10701 # type: =head2
10702 #: ../src/guestfs-actions.pod:3695
10703 msgid "guestfs_lvm_clear_filter"
10704 msgstr ""
10705
10706 # type: verbatim
10707 #: ../src/guestfs-actions.pod:3697
10708 #, no-wrap
10709 msgid ""
10710 " int\n"
10711 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10712 "\n"
10713 msgstr ""
10714
10715 # type: textblock
10716 #: ../src/guestfs-actions.pod:3700
10717 msgid ""
10718 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10719 "see every block device."
10720 msgstr ""
10721
10722 # type: textblock
10723 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3745
10724 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10725 msgid ""
10726 "This command also clears the LVM cache and performs a volume group scan."
10727 msgstr ""
10728
10729 # type: =head2
10730 #: ../src/guestfs-actions.pod:3710
10731 msgid "guestfs_lvm_remove_all"
10732 msgstr ""
10733
10734 # type: verbatim
10735 #: ../src/guestfs-actions.pod:3712
10736 #, no-wrap
10737 msgid ""
10738 " int\n"
10739 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10740 "\n"
10741 msgstr ""
10742
10743 # type: textblock
10744 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2527
10745 msgid ""
10746 "This command removes all LVM logical volumes, volume groups and physical "
10747 "volumes."
10748 msgstr ""
10749
10750 # type: =head2
10751 #: ../src/guestfs-actions.pod:3725
10752 msgid "guestfs_lvm_set_filter"
10753 msgstr ""
10754
10755 # type: verbatim
10756 #: ../src/guestfs-actions.pod:3727
10757 #, no-wrap
10758 msgid ""
10759 " int\n"
10760 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10761 "                         char *const *devices);\n"
10762 "\n"
10763 msgstr ""
10764
10765 # type: textblock
10766 #: ../src/guestfs-actions.pod:3731 ../fish/guestfish-actions.pod:2537
10767 msgid ""
10768 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10769 "block devices in the list C<devices>, and will ignore all other attached "
10770 "block devices."
10771 msgstr ""
10772
10773 # type: textblock
10774 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2541
10775 msgid ""
10776 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10777 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10778 "there are two types of duplication possible: either cloned PVs/VGs which "
10779 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10780 "same name.  In normal operation you cannot create this situation, but you "
10781 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10782 "inside the LVM metadata."
10783 msgstr ""
10784
10785 # type: textblock
10786 #: ../src/guestfs-actions.pod:3748 ../fish/guestfish-actions.pod:2554
10787 msgid "You can filter whole block devices or individual partitions."
10788 msgstr ""
10789
10790 # type: textblock
10791 #: ../src/guestfs-actions.pod:3750 ../fish/guestfish-actions.pod:2556
10792 msgid ""
10793 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10794 "filesystem), even if you are not filtering out that VG."
10795 msgstr ""
10796
10797 # type: =head2
10798 #: ../src/guestfs-actions.pod:3758
10799 msgid "guestfs_lvremove"
10800 msgstr ""
10801
10802 # type: verbatim
10803 #: ../src/guestfs-actions.pod:3760
10804 #, no-wrap
10805 msgid ""
10806 " int\n"
10807 " guestfs_lvremove (guestfs_h *g,\n"
10808 "                   const char *device);\n"
10809 "\n"
10810 msgstr ""
10811
10812 # type: textblock
10813 #: ../src/guestfs-actions.pod:3764 ../fish/guestfish-actions.pod:2564
10814 msgid ""
10815 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10816 "LV, such as C</dev/VG/LV>."
10817 msgstr ""
10818
10819 # type: textblock
10820 #: ../src/guestfs-actions.pod:3767 ../fish/guestfish-actions.pod:2567
10821 msgid ""
10822 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10823 "dev/VG>."
10824 msgstr ""
10825
10826 # type: textblock
10827 #: ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:4926
10828 #: ../src/guestfs-actions.pod:6656
10829 msgid "(Added in 1.0.13)"
10830 msgstr ""
10831
10832 # type: =head2
10833 #: ../src/guestfs-actions.pod:3774
10834 msgid "guestfs_lvrename"
10835 msgstr ""
10836
10837 # type: verbatim
10838 #: ../src/guestfs-actions.pod:3776
10839 #, no-wrap
10840 msgid ""
10841 " int\n"
10842 " guestfs_lvrename (guestfs_h *g,\n"
10843 "                   const char *logvol,\n"
10844 "                   const char *newlogvol);\n"
10845 "\n"
10846 msgstr ""
10847
10848 # type: textblock
10849 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2574
10850 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10851 msgstr ""
10852
10853 # type: textblock
10854 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:6669
10855 msgid "(Added in 1.0.83)"
10856 msgstr ""
10857
10858 # type: =head2
10859 #: ../src/guestfs-actions.pod:3787
10860 msgid "guestfs_lvresize"
10861 msgstr ""
10862
10863 # type: verbatim
10864 #: ../src/guestfs-actions.pod:3789
10865 #, no-wrap
10866 msgid ""
10867 " int\n"
10868 " guestfs_lvresize (guestfs_h *g,\n"
10869 "                   const char *device,\n"
10870 "                   int mbytes);\n"
10871 "\n"
10872 msgstr ""
10873
10874 # type: textblock
10875 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2580
10876 msgid ""
10877 "This resizes (expands or shrinks) an existing LVM logical volume to "
10878 "C<mbytes>.  When reducing, data in the reduced part is lost."
10879 msgstr ""
10880
10881 # type: =head2
10882 #: ../src/guestfs-actions.pod:3802
10883 msgid "guestfs_lvresize_free"
10884 msgstr ""
10885
10886 # type: verbatim
10887 #: ../src/guestfs-actions.pod:3804
10888 #, no-wrap
10889 msgid ""
10890 " int\n"
10891 " guestfs_lvresize_free (guestfs_h *g,\n"
10892 "                        const char *lv,\n"
10893 "                        int percent);\n"
10894 "\n"
10895 msgstr ""
10896
10897 # type: textblock
10898 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2588
10899 msgid ""
10900 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10901 "remaining free space in the volume group.  Commonly you would call this with "
10902 "pc = 100 which expands the logical volume as much as possible, using all "
10903 "remaining free space in the volume group."
10904 msgstr ""
10905
10906 # type: textblock
10907 #: ../src/guestfs-actions.pod:3817
10908 msgid "(Added in 1.3.3)"
10909 msgstr ""
10910
10911 # type: =head2
10912 #: ../src/guestfs-actions.pod:3819
10913 msgid "guestfs_lvs"
10914 msgstr ""
10915
10916 # type: verbatim
10917 #: ../src/guestfs-actions.pod:3821
10918 #, no-wrap
10919 msgid ""
10920 " char **\n"
10921 " guestfs_lvs (guestfs_h *g);\n"
10922 "\n"
10923 msgstr ""
10924
10925 # type: textblock
10926 #: ../src/guestfs-actions.pod:3824 ../fish/guestfish-actions.pod:2598
10927 msgid ""
10928 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10929 "(8)> command."
10930 msgstr ""
10931
10932 # type: textblock
10933 #: ../src/guestfs-actions.pod:3827 ../fish/guestfish-actions.pod:2601
10934 msgid ""
10935 "This returns a list of the logical volume device names (eg. C</dev/"
10936 "VolGroup00/LogVol00>)."
10937 msgstr ""
10938
10939 # type: textblock
10940 #: ../src/guestfs-actions.pod:3830
10941 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10942 msgstr ""
10943
10944 # type: =head2
10945 #: ../src/guestfs-actions.pod:3838
10946 msgid "guestfs_lvs_full"
10947 msgstr ""
10948
10949 # type: verbatim
10950 #: ../src/guestfs-actions.pod:3840
10951 #, no-wrap
10952 msgid ""
10953 " struct guestfs_lvm_lv_list *\n"
10954 " guestfs_lvs_full (guestfs_h *g);\n"
10955 "\n"
10956 msgstr ""
10957
10958 # type: textblock
10959 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2610
10960 msgid ""
10961 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10962 "(8)> command.  The \"full\" version includes all fields."
10963 msgstr ""
10964
10965 # type: textblock
10966 #: ../src/guestfs-actions.pod:3846
10967 msgid ""
10968 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10969 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10970 msgstr ""
10971
10972 # type: =head2
10973 #: ../src/guestfs-actions.pod:3852
10974 msgid "guestfs_lvuuid"
10975 msgstr ""
10976
10977 # type: verbatim
10978 #: ../src/guestfs-actions.pod:3854
10979 #, no-wrap
10980 msgid ""
10981 " char *\n"
10982 " guestfs_lvuuid (guestfs_h *g,\n"
10983 "                 const char *device);\n"
10984 "\n"
10985 msgstr ""
10986
10987 # type: textblock
10988 #: ../src/guestfs-actions.pod:3858 ../fish/guestfish-actions.pod:2617
10989 msgid "This command returns the UUID of the LVM LV C<device>."
10990 msgstr ""
10991
10992 # type: =head2
10993 #: ../src/guestfs-actions.pod:3865
10994 msgid "guestfs_lxattrlist"
10995 msgstr ""
10996
10997 # type: verbatim
10998 #: ../src/guestfs-actions.pod:3867
10999 #, no-wrap
11000 msgid ""
11001 " struct guestfs_xattr_list *\n"
11002 " guestfs_lxattrlist (guestfs_h *g,\n"
11003 "                     const char *path,\n"
11004 "                     char *const *names);\n"
11005 "\n"
11006 msgstr ""
11007
11008 # type: textblock
11009 #: ../src/guestfs-actions.pod:3872 ../fish/guestfish-actions.pod:2623
11010 msgid ""
11011 "This call allows you to get the extended attributes of multiple files, where "
11012 "all files are in the directory C<path>.  C<names> is the list of files from "
11013 "this directory."
11014 msgstr ""
11015
11016 # type: textblock
11017 #: ../src/guestfs-actions.pod:3876 ../fish/guestfish-actions.pod:2627
11018 msgid ""
11019 "On return you get a flat list of xattr structs which must be interpreted "
11020 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11021 "C<attrval> in this struct is zero-length to indicate there was an error "
11022 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11023 "number (the number of following attributes for this file, which could be C<"
11024 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11025 "for the first named file.  This repeats for the second and subsequent files."
11026 msgstr ""
11027
11028 # type: textblock
11029 #: ../src/guestfs-actions.pod:3886
11030 msgid ""
11031 "This call is intended for programs that want to efficiently list a directory "
11032 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11033 "a similarly efficient call for getting standard stats.  Very long directory "
11034 "listings might cause the protocol message size to be exceeded, causing this "
11035 "call to fail.  The caller must split up such requests into smaller groups of "
11036 "names."
11037 msgstr ""
11038
11039 # type: =head2
11040 #: ../src/guestfs-actions.pod:3900
11041 msgid "guestfs_mkdir"
11042 msgstr ""
11043
11044 # type: verbatim
11045 #: ../src/guestfs-actions.pod:3902
11046 #, no-wrap
11047 msgid ""
11048 " int\n"
11049 " guestfs_mkdir (guestfs_h *g,\n"
11050 "                const char *path);\n"
11051 "\n"
11052 msgstr ""
11053
11054 # type: textblock
11055 #: ../src/guestfs-actions.pod:3906 ../fish/guestfish-actions.pod:2649
11056 msgid "Create a directory named C<path>."
11057 msgstr ""
11058
11059 # type: =head2
11060 #: ../src/guestfs-actions.pod:3912
11061 msgid "guestfs_mkdir_mode"
11062 msgstr ""
11063
11064 # type: verbatim
11065 #: ../src/guestfs-actions.pod:3914
11066 #, no-wrap
11067 msgid ""
11068 " int\n"
11069 " guestfs_mkdir_mode (guestfs_h *g,\n"
11070 "                     const char *path,\n"
11071 "                     int mode);\n"
11072 "\n"
11073 msgstr ""
11074
11075 # type: textblock
11076 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:2655
11077 msgid ""
11078 "This command creates a directory, setting the initial permissions of the "
11079 "directory to C<mode>."
11080 msgstr ""
11081
11082 # type: textblock
11083 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:2658
11084 msgid ""
11085 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11086 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11087 "other ways."
11088 msgstr ""
11089
11090 # type: textblock
11091 #: ../src/guestfs-actions.pod:3926
11092 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11093 msgstr ""
11094
11095 # type: =head2
11096 #: ../src/guestfs-actions.pod:3932
11097 msgid "guestfs_mkdir_p"
11098 msgstr ""
11099
11100 # type: verbatim
11101 #: ../src/guestfs-actions.pod:3934
11102 #, no-wrap
11103 msgid ""
11104 " int\n"
11105 " guestfs_mkdir_p (guestfs_h *g,\n"
11106 "                  const char *path);\n"
11107 "\n"
11108 msgstr ""
11109
11110 # type: textblock
11111 #: ../src/guestfs-actions.pod:3938 ../fish/guestfish-actions.pod:2668
11112 msgid ""
11113 "Create a directory named C<path>, creating any parent directories as "
11114 "necessary.  This is like the C<mkdir -p> shell command."
11115 msgstr ""
11116
11117 # type: =head2
11118 #: ../src/guestfs-actions.pod:3945
11119 msgid "guestfs_mkdtemp"
11120 msgstr ""
11121
11122 # type: verbatim
11123 #: ../src/guestfs-actions.pod:3947
11124 #, no-wrap
11125 msgid ""
11126 " char *\n"
11127 " guestfs_mkdtemp (guestfs_h *g,\n"
11128 "                  const char *template);\n"
11129 "\n"
11130 msgstr ""
11131
11132 # type: textblock
11133 #: ../src/guestfs-actions.pod:3951 ../fish/guestfish-actions.pod:2675
11134 msgid ""
11135 "This command creates a temporary directory.  The C<template> parameter "
11136 "should be a full pathname for the temporary directory name with the final "
11137 "six characters being \"XXXXXX\"."
11138 msgstr ""
11139
11140 # type: textblock
11141 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2680
11142 msgid ""
11143 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11144 "being suitable for Windows filesystems."
11145 msgstr ""
11146
11147 # type: textblock
11148 #: ../src/guestfs-actions.pod:3959 ../fish/guestfish-actions.pod:2683
11149 msgid "The name of the temporary directory that was created is returned."
11150 msgstr ""
11151
11152 # type: textblock
11153 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2686
11154 msgid "The temporary directory is created with mode 0700 and is owned by root."
11155 msgstr ""
11156
11157 # type: textblock
11158 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:2689
11159 msgid ""
11160 "The caller is responsible for deleting the temporary directory and its "
11161 "contents after use."
11162 msgstr ""
11163
11164 # type: textblock
11165 #: ../src/guestfs-actions.pod:3968 ../fish/guestfish-actions.pod:2692
11166 msgid "See also: L<mkdtemp(3)>"
11167 msgstr ""
11168
11169 # type: =head2
11170 #: ../src/guestfs-actions.pod:3975
11171 msgid "guestfs_mke2fs_J"
11172 msgstr ""
11173
11174 # type: verbatim
11175 #: ../src/guestfs-actions.pod:3977
11176 #, no-wrap
11177 msgid ""
11178 " int\n"
11179 " guestfs_mke2fs_J (guestfs_h *g,\n"
11180 "                   const char *fstype,\n"
11181 "                   int blocksize,\n"
11182 "                   const char *device,\n"
11183 "                   const char *journal);\n"
11184 "\n"
11185 msgstr ""
11186
11187 # type: textblock
11188 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:2698
11189 msgid ""
11190 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11191 "C<journal>.  It is equivalent to the command:"
11192 msgstr ""
11193
11194 # type: verbatim
11195 #: ../src/guestfs-actions.pod:3988 ../fish/guestfish-actions.pod:2702
11196 #, no-wrap
11197 msgid ""
11198 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11199 "\n"
11200 msgstr ""
11201
11202 # type: textblock
11203 #: ../src/guestfs-actions.pod:3990
11204 msgid "See also C<guestfs_mke2journal>."
11205 msgstr ""
11206
11207 # type: textblock
11208 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4012
11209 #: ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4046
11210 #: ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4074
11211 #: ../src/guestfs-actions.pod:4126 ../src/guestfs-actions.pod:4316
11212 msgid "(Added in 1.0.68)"
11213 msgstr ""
11214
11215 # type: =head2
11216 #: ../src/guestfs-actions.pod:3996
11217 msgid "guestfs_mke2fs_JL"
11218 msgstr ""
11219
11220 # type: verbatim
11221 #: ../src/guestfs-actions.pod:3998
11222 #, no-wrap
11223 msgid ""
11224 " int\n"
11225 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11226 "                    const char *fstype,\n"
11227 "                    int blocksize,\n"
11228 "                    const char *device,\n"
11229 "                    const char *label);\n"
11230 "\n"
11231 msgstr ""
11232
11233 # type: textblock
11234 #: ../src/guestfs-actions.pod:4005 ../fish/guestfish-actions.pod:2710
11235 msgid ""
11236 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11237 "the journal labeled C<label>."
11238 msgstr ""
11239
11240 # type: textblock
11241 #: ../src/guestfs-actions.pod:4008
11242 msgid "See also C<guestfs_mke2journal_L>."
11243 msgstr ""
11244
11245 # type: =head2
11246 #: ../src/guestfs-actions.pod:4014
11247 msgid "guestfs_mke2fs_JU"
11248 msgstr ""
11249
11250 # type: verbatim
11251 #: ../src/guestfs-actions.pod:4016
11252 #, no-wrap
11253 msgid ""
11254 " int\n"
11255 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11256 "                    const char *fstype,\n"
11257 "                    int blocksize,\n"
11258 "                    const char *device,\n"
11259 "                    const char *uuid);\n"
11260 "\n"
11261 msgstr ""
11262
11263 # type: textblock
11264 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2719
11265 msgid ""
11266 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11267 "the journal with UUID C<uuid>."
11268 msgstr ""
11269
11270 # type: textblock
11271 #: ../src/guestfs-actions.pod:4026
11272 msgid "See also C<guestfs_mke2journal_U>."
11273 msgstr ""
11274
11275 # type: =head2
11276 #: ../src/guestfs-actions.pod:4032
11277 msgid "guestfs_mke2journal"
11278 msgstr ""
11279
11280 # type: verbatim
11281 #: ../src/guestfs-actions.pod:4034
11282 #, no-wrap
11283 msgid ""
11284 " int\n"
11285 " guestfs_mke2journal (guestfs_h *g,\n"
11286 "                      int blocksize,\n"
11287 "                      const char *device);\n"
11288 "\n"
11289 msgstr ""
11290
11291 # type: textblock
11292 #: ../src/guestfs-actions.pod:4039 ../fish/guestfish-actions.pod:2728
11293 msgid ""
11294 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11295 "command:"
11296 msgstr ""
11297
11298 # type: verbatim
11299 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2731
11300 #, no-wrap
11301 msgid ""
11302 " mke2fs -O journal_dev -b blocksize device\n"
11303 "\n"
11304 msgstr ""
11305
11306 # type: =head2
11307 #: ../src/guestfs-actions.pod:4048
11308 msgid "guestfs_mke2journal_L"
11309 msgstr ""
11310
11311 # type: verbatim
11312 #: ../src/guestfs-actions.pod:4050
11313 #, no-wrap
11314 msgid ""
11315 " int\n"
11316 " guestfs_mke2journal_L (guestfs_h *g,\n"
11317 "                        int blocksize,\n"
11318 "                        const char *label,\n"
11319 "                        const char *device);\n"
11320 "\n"
11321 msgstr ""
11322
11323 # type: textblock
11324 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2737
11325 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11326 msgstr ""
11327
11328 # type: =head2
11329 #: ../src/guestfs-actions.pod:4062
11330 msgid "guestfs_mke2journal_U"
11331 msgstr ""
11332
11333 # type: verbatim
11334 #: ../src/guestfs-actions.pod:4064
11335 #, no-wrap
11336 msgid ""
11337 " int\n"
11338 " guestfs_mke2journal_U (guestfs_h *g,\n"
11339 "                        int blocksize,\n"
11340 "                        const char *uuid,\n"
11341 "                        const char *device);\n"
11342 "\n"
11343 msgstr ""
11344
11345 # type: textblock
11346 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:2743
11347 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11348 msgstr ""
11349
11350 # type: =head2
11351 #: ../src/guestfs-actions.pod:4076
11352 msgid "guestfs_mkfifo"
11353 msgstr ""
11354
11355 # type: verbatim
11356 #: ../src/guestfs-actions.pod:4078
11357 #, no-wrap
11358 msgid ""
11359 " int\n"
11360 " guestfs_mkfifo (guestfs_h *g,\n"
11361 "                 int mode,\n"
11362 "                 const char *path);\n"
11363 "\n"
11364 msgstr ""
11365
11366 # type: textblock
11367 #: ../src/guestfs-actions.pod:4083
11368 msgid ""
11369 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11370 "is just a convenient wrapper around C<guestfs_mknod>."
11371 msgstr ""
11372
11373 # type: =head2
11374 #: ../src/guestfs-actions.pod:4093
11375 msgid "guestfs_mkfs"
11376 msgstr ""
11377
11378 # type: verbatim
11379 #: ../src/guestfs-actions.pod:4095
11380 #, no-wrap
11381 msgid ""
11382 " int\n"
11383 " guestfs_mkfs (guestfs_h *g,\n"
11384 "               const char *fstype,\n"
11385 "               const char *device);\n"
11386 "\n"
11387 msgstr ""
11388
11389 # type: textblock
11390 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2759
11391 msgid ""
11392 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11393 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11394 msgstr ""
11395
11396 # type: =head2
11397 #: ../src/guestfs-actions.pod:4108
11398 msgid "guestfs_mkfs_b"
11399 msgstr ""
11400
11401 # type: verbatim
11402 #: ../src/guestfs-actions.pod:4110
11403 #, no-wrap
11404 msgid ""
11405 " int\n"
11406 " guestfs_mkfs_b (guestfs_h *g,\n"
11407 "                 const char *fstype,\n"
11408 "                 int blocksize,\n"
11409 "                 const char *device);\n"
11410 "\n"
11411 msgstr ""
11412
11413 # type: textblock
11414 #: ../src/guestfs-actions.pod:4116
11415 msgid ""
11416 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11417 "block size of the resulting filesystem.  Supported block sizes depend on the "
11418 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11419 msgstr ""
11420
11421 # type: textblock
11422 #: ../src/guestfs-actions.pod:4121 ../fish/guestfish-actions.pod:2772
11423 msgid ""
11424 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11425 "cluster size."
11426 msgstr ""
11427
11428 # type: =head2
11429 #: ../src/guestfs-actions.pod:4128
11430 msgid "guestfs_mkmountpoint"
11431 msgstr ""
11432
11433 # type: verbatim
11434 #: ../src/guestfs-actions.pod:4130
11435 #, no-wrap
11436 msgid ""
11437 " int\n"
11438 " guestfs_mkmountpoint (guestfs_h *g,\n"
11439 "                       const char *exemptpath);\n"
11440 "\n"
11441 msgstr ""
11442
11443 # type: textblock
11444 #: ../src/guestfs-actions.pod:4134
11445 msgid ""
11446 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11447 "that can be used to create extra mountpoints before mounting the first "
11448 "filesystem."
11449 msgstr ""
11450
11451 # type: textblock
11452 #: ../src/guestfs-actions.pod:4138 ../fish/guestfish-actions.pod:2783
11453 msgid ""
11454 "These calls are I<only> necessary in some very limited circumstances, mainly "
11455 "the case where you want to mount a mix of unrelated and/or read-only "
11456 "filesystems together."
11457 msgstr ""
11458
11459 # type: textblock
11460 #: ../src/guestfs-actions.pod:4142 ../fish/guestfish-actions.pod:2787
11461 msgid ""
11462 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11463 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11464 "inside that.  You can unpack this as follows in guestfish:"
11465 msgstr ""
11466
11467 # type: verbatim
11468 #: ../src/guestfs-actions.pod:4147 ../fish/guestfish-actions.pod:2792
11469 #, no-wrap
11470 msgid ""
11471 " add-ro Fedora-11-i686-Live.iso\n"
11472 " run\n"
11473 " mkmountpoint /cd\n"
11474 " mkmountpoint /sqsh\n"
11475 " mkmountpoint /ext3fs\n"
11476 " mount /dev/sda /cd\n"
11477 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11478 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11479 "\n"
11480 msgstr ""
11481
11482 # type: textblock
11483 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:2801
11484 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11485 msgstr ""
11486
11487 # type: textblock
11488 #: ../src/guestfs-actions.pod:4158
11489 msgid ""
11490 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11491 "may get unexpected errors if you try to mix these calls.  It is safest to "
11492 "manually unmount filesystems and remove mountpoints after use."
11493 msgstr ""
11494
11495 # type: textblock
11496 #: ../src/guestfs-actions.pod:4162
11497 msgid ""
11498 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11499 "first, so for this to work for manual mountpoints, you must ensure that the "
11500 "innermost mountpoints have the longest pathnames, as in the example code "
11501 "above."
11502 msgstr ""
11503
11504 # type: textblock
11505 #: ../src/guestfs-actions.pod:4167 ../fish/guestfish-actions.pod:2812
11506 msgid ""
11507 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11508 msgstr ""
11509
11510 # type: textblock
11511 #: ../src/guestfs-actions.pod:4169
11512 msgid ""
11513 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11514 "means that C<guestfs_umount_all> is called when the handle is closed which "
11515 "can also trigger these issues."
11516 msgstr ""
11517
11518 # type: textblock
11519 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4434
11520 #: ../src/guestfs-actions.pod:5327
11521 msgid "(Added in 1.0.62)"
11522 msgstr ""
11523
11524 # type: =head2
11525 #: ../src/guestfs-actions.pod:4177
11526 msgid "guestfs_mknod"
11527 msgstr ""
11528
11529 # type: verbatim
11530 #: ../src/guestfs-actions.pod:4179
11531 #, no-wrap
11532 msgid ""
11533 " int\n"
11534 " guestfs_mknod (guestfs_h *g,\n"
11535 "                int mode,\n"
11536 "                int devmajor,\n"
11537 "                int devminor,\n"
11538 "                const char *path);\n"
11539 "\n"
11540 msgstr ""
11541
11542 # type: textblock
11543 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:2822
11544 msgid ""
11545 "This call creates block or character special devices, or named pipes (FIFOs)."
11546 msgstr ""
11547
11548 # type: textblock
11549 #: ../src/guestfs-actions.pod:4189 ../fish/guestfish-actions.pod:2825
11550 msgid ""
11551 "The C<mode> parameter should be the mode, using the standard constants.  "
11552 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11553 "used when creating block and character special devices."
11554 msgstr ""
11555
11556 # type: textblock
11557 #: ../src/guestfs-actions.pod:4194
11558 msgid ""
11559 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11560 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11561 "regular file).  These constants are available in the standard Linux header "
11562 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11563 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11564 "the appropriate constant for you."
11565 msgstr ""
11566
11567 # type: =head2
11568 #: ../src/guestfs-actions.pod:4208
11569 msgid "guestfs_mknod_b"
11570 msgstr ""
11571
11572 # type: verbatim
11573 #: ../src/guestfs-actions.pod:4210
11574 #, no-wrap
11575 msgid ""
11576 " int\n"
11577 " guestfs_mknod_b (guestfs_h *g,\n"
11578 "                  int mode,\n"
11579 "                  int devmajor,\n"
11580 "                  int devminor,\n"
11581 "                  const char *path);\n"
11582 "\n"
11583 msgstr ""
11584
11585 # type: textblock
11586 #: ../src/guestfs-actions.pod:4217
11587 msgid ""
11588 "This call creates a block device node called C<path> with mode C<mode> and "
11589 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11590 "wrapper around C<guestfs_mknod>."
11591 msgstr ""
11592
11593 # type: =head2
11594 #: ../src/guestfs-actions.pod:4227
11595 msgid "guestfs_mknod_c"
11596 msgstr ""
11597
11598 # type: verbatim
11599 #: ../src/guestfs-actions.pod:4229
11600 #, no-wrap
11601 msgid ""
11602 " int\n"
11603 " guestfs_mknod_c (guestfs_h *g,\n"
11604 "                  int mode,\n"
11605 "                  int devmajor,\n"
11606 "                  int devminor,\n"
11607 "                  const char *path);\n"
11608 "\n"
11609 msgstr ""
11610
11611 # type: textblock
11612 #: ../src/guestfs-actions.pod:4236
11613 msgid ""
11614 "This call creates a char device node called C<path> with mode C<mode> and "
11615 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11616 "wrapper around C<guestfs_mknod>."
11617 msgstr ""
11618
11619 # type: =head2
11620 #: ../src/guestfs-actions.pod:4246
11621 msgid "guestfs_mkswap"
11622 msgstr ""
11623
11624 # type: verbatim
11625 #: ../src/guestfs-actions.pod:4248
11626 #, no-wrap
11627 msgid ""
11628 " int\n"
11629 " guestfs_mkswap (guestfs_h *g,\n"
11630 "                 const char *device);\n"
11631 "\n"
11632 msgstr ""
11633
11634 # type: textblock
11635 #: ../src/guestfs-actions.pod:4252 ../fish/guestfish-actions.pod:2864
11636 msgid "Create a swap partition on C<device>."
11637 msgstr ""
11638
11639 # type: =head2
11640 #: ../src/guestfs-actions.pod:4258
11641 msgid "guestfs_mkswap_L"
11642 msgstr ""
11643
11644 # type: verbatim
11645 #: ../src/guestfs-actions.pod:4260
11646 #, no-wrap
11647 msgid ""
11648 " int\n"
11649 " guestfs_mkswap_L (guestfs_h *g,\n"
11650 "                   const char *label,\n"
11651 "                   const char *device);\n"
11652 "\n"
11653 msgstr ""
11654
11655 # type: textblock
11656 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:2870
11657 msgid "Create a swap partition on C<device> with label C<label>."
11658 msgstr ""
11659
11660 # type: textblock
11661 #: ../src/guestfs-actions.pod:4267 ../fish/guestfish-actions.pod:2872
11662 msgid ""
11663 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11664 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11665 "or swap tools."
11666 msgstr ""
11667
11668 # type: =head2
11669 #: ../src/guestfs-actions.pod:4275
11670 msgid "guestfs_mkswap_U"
11671 msgstr ""
11672
11673 # type: verbatim
11674 #: ../src/guestfs-actions.pod:4277
11675 #, no-wrap
11676 msgid ""
11677 " int\n"
11678 " guestfs_mkswap_U (guestfs_h *g,\n"
11679 "                   const char *uuid,\n"
11680 "                   const char *device);\n"
11681 "\n"
11682 msgstr ""
11683
11684 # type: textblock
11685 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2880
11686 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11687 msgstr ""
11688
11689 # type: =head2
11690 #: ../src/guestfs-actions.pod:4288
11691 msgid "guestfs_mkswap_file"
11692 msgstr ""
11693
11694 # type: verbatim
11695 #: ../src/guestfs-actions.pod:4290
11696 #, no-wrap
11697 msgid ""
11698 " int\n"
11699 " guestfs_mkswap_file (guestfs_h *g,\n"
11700 "                      const char *path);\n"
11701 "\n"
11702 msgstr ""
11703
11704 # type: textblock
11705 #: ../src/guestfs-actions.pod:4294 ../fish/guestfish-actions.pod:2886
11706 msgid "Create a swap file."
11707 msgstr ""
11708
11709 # type: textblock
11710 #: ../src/guestfs-actions.pod:4296
11711 msgid ""
11712 "This command just writes a swap file signature to an existing file.  To "
11713 "create the file itself, use something like C<guestfs_fallocate>."
11714 msgstr ""
11715
11716 # type: =head2
11717 #: ../src/guestfs-actions.pod:4303
11718 msgid "guestfs_modprobe"
11719 msgstr ""
11720
11721 # type: verbatim
11722 #: ../src/guestfs-actions.pod:4305
11723 #, no-wrap
11724 msgid ""
11725 " int\n"
11726 " guestfs_modprobe (guestfs_h *g,\n"
11727 "                   const char *modulename);\n"
11728 "\n"
11729 msgstr ""
11730
11731 # type: textblock
11732 #: ../src/guestfs-actions.pod:4309 ../fish/guestfish-actions.pod:2895
11733 msgid "This loads a kernel module in the appliance."
11734 msgstr ""
11735
11736 # type: textblock
11737 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2897
11738 msgid ""
11739 "The kernel module must have been whitelisted when libguestfs was built (see "
11740 "C<appliance/kmod.whitelist.in> in the source)."
11741 msgstr ""
11742
11743 # type: =head2
11744 #: ../src/guestfs-actions.pod:4318
11745 msgid "guestfs_mount"
11746 msgstr ""
11747
11748 # type: verbatim
11749 #: ../src/guestfs-actions.pod:4320
11750 #, no-wrap
11751 msgid ""
11752 " int\n"
11753 " guestfs_mount (guestfs_h *g,\n"
11754 "                const char *device,\n"
11755 "                const char *mountpoint);\n"
11756 "\n"
11757 msgstr ""
11758
11759 # type: textblock
11760 #: ../src/guestfs-actions.pod:4325 ../fish/guestfish-actions.pod:2904
11761 msgid ""
11762 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11763 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11764 "those block devices contain partitions, they will have the usual names (eg. "
11765 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11766 msgstr ""
11767
11768 # type: textblock
11769 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2910
11770 msgid ""
11771 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11772 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11773 "mounted on directories which already exist."
11774 msgstr ""
11775
11776 # type: textblock
11777 #: ../src/guestfs-actions.pod:4336 ../fish/guestfish-actions.pod:2915
11778 msgid ""
11779 "The mounted filesystem is writable, if we have sufficient permissions on the "
11780 "underlying device."
11781 msgstr ""
11782
11783 # type: textblock
11784 #: ../src/guestfs-actions.pod:4339
11785 msgid ""
11786 "B<Important note:> When you use this call, the filesystem options C<sync> "
11787 "and C<noatime> are set implicitly.  This was originally done because we "
11788 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11789 "very large negative performance impact and negligible effect on "
11790 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11791 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11792 "(use an empty string for the first parameter if you don't want any options)."
11793 msgstr ""
11794
11795 # type: =head2
11796 #: ../src/guestfs-actions.pod:4353
11797 msgid "guestfs_mount_loop"
11798 msgstr ""
11799
11800 # type: verbatim
11801 #: ../src/guestfs-actions.pod:4355
11802 #, no-wrap
11803 msgid ""
11804 " int\n"
11805 " guestfs_mount_loop (guestfs_h *g,\n"
11806 "                     const char *file,\n"
11807 "                     const char *mountpoint);\n"
11808 "\n"
11809 msgstr ""
11810
11811 # type: textblock
11812 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:2932
11813 msgid ""
11814 "This command lets you mount C<file> (a filesystem image in a file) on a "
11815 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11816 "mountpoint>."
11817 msgstr ""
11818
11819 # type: =head2
11820 #: ../src/guestfs-actions.pod:4368
11821 msgid "guestfs_mount_options"
11822 msgstr ""
11823
11824 # type: verbatim
11825 #: ../src/guestfs-actions.pod:4370
11826 #, no-wrap
11827 msgid ""
11828 " int\n"
11829 " guestfs_mount_options (guestfs_h *g,\n"
11830 "                        const char *options,\n"
11831 "                        const char *device,\n"
11832 "                        const char *mountpoint);\n"
11833 "\n"
11834 msgstr ""
11835
11836 # type: textblock
11837 #: ../src/guestfs-actions.pod:4376
11838 msgid ""
11839 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11840 "the mount options as for the L<mount(8)> I<-o> flag."
11841 msgstr ""
11842
11843 # type: textblock
11844 #: ../src/guestfs-actions.pod:4380 ../fish/guestfish-actions.pod:2944
11845 msgid ""
11846 "If the C<options> parameter is an empty string, then no options are passed "
11847 "(all options default to whatever the filesystem uses)."
11848 msgstr ""
11849
11850 # type: textblock
11851 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4400
11852 #: ../src/guestfs-actions.pod:4417
11853 msgid "(Added in 1.0.10)"
11854 msgstr ""
11855
11856 # type: =head2
11857 #: ../src/guestfs-actions.pod:4388
11858 msgid "guestfs_mount_ro"
11859 msgstr ""
11860
11861 # type: verbatim
11862 #: ../src/guestfs-actions.pod:4390
11863 #, no-wrap
11864 msgid ""
11865 " int\n"
11866 " guestfs_mount_ro (guestfs_h *g,\n"
11867 "                   const char *device,\n"
11868 "                   const char *mountpoint);\n"
11869 "\n"
11870 msgstr ""
11871
11872 # type: textblock
11873 #: ../src/guestfs-actions.pod:4395
11874 msgid ""
11875 "This is the same as the C<guestfs_mount> command, but it mounts the "
11876 "filesystem with the read-only (I<-o ro>) flag."
11877 msgstr ""
11878
11879 # type: =head2
11880 #: ../src/guestfs-actions.pod:4402
11881 msgid "guestfs_mount_vfs"
11882 msgstr ""
11883
11884 # type: verbatim
11885 #: ../src/guestfs-actions.pod:4404
11886 #, no-wrap
11887 msgid ""
11888 " int\n"
11889 " guestfs_mount_vfs (guestfs_h *g,\n"
11890 "                    const char *options,\n"
11891 "                    const char *vfstype,\n"
11892 "                    const char *device,\n"
11893 "                    const char *mountpoint);\n"
11894 "\n"
11895 msgstr ""
11896
11897 # type: textblock
11898 #: ../src/guestfs-actions.pod:4411
11899 msgid ""
11900 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11901 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11902 "t> flags."
11903 msgstr ""
11904
11905 # type: =head2
11906 #: ../src/guestfs-actions.pod:4419
11907 msgid "guestfs_mountpoints"
11908 msgstr ""
11909
11910 # type: verbatim
11911 #: ../src/guestfs-actions.pod:4421
11912 #, no-wrap
11913 msgid ""
11914 " char **\n"
11915 " guestfs_mountpoints (guestfs_h *g);\n"
11916 "\n"
11917 msgstr ""
11918
11919 # type: textblock
11920 #: ../src/guestfs-actions.pod:4424
11921 msgid ""
11922 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11923 "devices.  This one returns a hash table (map) of device name to directory "
11924 "where the device is mounted."
11925 msgstr ""
11926
11927 # type: =head2
11928 #: ../src/guestfs-actions.pod:4436
11929 msgid "guestfs_mounts"
11930 msgstr ""
11931
11932 # type: verbatim
11933 #: ../src/guestfs-actions.pod:4438
11934 #, no-wrap
11935 msgid ""
11936 " char **\n"
11937 " guestfs_mounts (guestfs_h *g);\n"
11938 "\n"
11939 msgstr ""
11940
11941 # type: textblock
11942 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:2975
11943 msgid ""
11944 "This returns the list of currently mounted filesystems.  It returns the list "
11945 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11946 msgstr ""
11947
11948 # type: textblock
11949 #: ../src/guestfs-actions.pod:4444 ../fish/guestfish-actions.pod:2978
11950 msgid "Some internal mounts are not shown."
11951 msgstr ""
11952
11953 # type: textblock
11954 #: ../src/guestfs-actions.pod:4446
11955 msgid "See also: C<guestfs_mountpoints>"
11956 msgstr ""
11957
11958 # type: =head2
11959 #: ../src/guestfs-actions.pod:4454
11960 msgid "guestfs_mv"
11961 msgstr ""
11962
11963 # type: verbatim
11964 #: ../src/guestfs-actions.pod:4456
11965 #, no-wrap
11966 msgid ""
11967 " int\n"
11968 " guestfs_mv (guestfs_h *g,\n"
11969 "             const char *src,\n"
11970 "             const char *dest);\n"
11971 "\n"
11972 msgstr ""
11973
11974 # type: textblock
11975 #: ../src/guestfs-actions.pod:4461 ../fish/guestfish-actions.pod:2986
11976 msgid ""
11977 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11978 "destination filename or destination directory."
11979 msgstr ""
11980
11981 # type: =head2
11982 #: ../src/guestfs-actions.pod:4468
11983 msgid "guestfs_ntfs_3g_probe"
11984 msgstr ""
11985
11986 # type: verbatim
11987 #: ../src/guestfs-actions.pod:4470
11988 #, no-wrap
11989 msgid ""
11990 " int\n"
11991 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11992 "                        int rw,\n"
11993 "                        const char *device);\n"
11994 "\n"
11995 msgstr ""
11996
11997 # type: textblock
11998 #: ../src/guestfs-actions.pod:4475 ../fish/guestfish-actions.pod:2993
11999 msgid ""
12000 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12001 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12002 "write, and some cannot be mounted at all)."
12003 msgstr ""
12004
12005 # type: textblock
12006 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:2997
12007 msgid ""
12008 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12009 "can be mounted read-write.  Set it to false if you want to test if the "
12010 "volume can be mounted read-only."
12011 msgstr ""
12012
12013 # type: textblock
12014 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3001
12015 msgid ""
12016 "The return value is an integer which C<0> if the operation would succeed, or "
12017 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12018 msgstr ""
12019
12020 # type: textblock
12021 #: ../src/guestfs-actions.pod:4489
12022 msgid "(Added in 1.0.43)"
12023 msgstr ""
12024
12025 # type: =head2
12026 #: ../src/guestfs-actions.pod:4491
12027 msgid "guestfs_ntfsresize"
12028 msgstr ""
12029
12030 # type: verbatim
12031 #: ../src/guestfs-actions.pod:4493
12032 #, no-wrap
12033 msgid ""
12034 " int\n"
12035 " guestfs_ntfsresize (guestfs_h *g,\n"
12036 "                     const char *device);\n"
12037 "\n"
12038 msgstr ""
12039
12040 # type: textblock
12041 #: ../src/guestfs-actions.pod:4497 ../fish/guestfish-actions.pod:3009
12042 msgid ""
12043 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12044 "size of the underlying device.  See also L<ntfsresize(8)>."
12045 msgstr ""
12046
12047 # type: =head2
12048 #: ../src/guestfs-actions.pod:4505
12049 msgid "guestfs_ntfsresize_size"
12050 msgstr ""
12051
12052 # type: verbatim
12053 #: ../src/guestfs-actions.pod:4507
12054 #, no-wrap
12055 msgid ""
12056 " int\n"
12057 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12058 "                          const char *device,\n"
12059 "                          int64_t size);\n"
12060 "\n"
12061 msgstr ""
12062
12063 # type: textblock
12064 #: ../src/guestfs-actions.pod:4512
12065 msgid ""
12066 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12067 "to specify the new size (in bytes) explicitly."
12068 msgstr ""
12069
12070 # type: textblock
12071 #: ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4953
12072 #: ../src/guestfs-actions.pod:5026 ../src/guestfs-actions.pod:5275
12073 msgid "(Added in 1.3.14)"
12074 msgstr ""
12075
12076 # type: =head2
12077 #: ../src/guestfs-actions.pod:4519
12078 msgid "guestfs_part_add"
12079 msgstr ""
12080
12081 # type: verbatim
12082 #: ../src/guestfs-actions.pod:4521
12083 #, no-wrap
12084 msgid ""
12085 " int\n"
12086 " guestfs_part_add (guestfs_h *g,\n"
12087 "                   const char *device,\n"
12088 "                   const char *prlogex,\n"
12089 "                   int64_t startsect,\n"
12090 "                   int64_t endsect);\n"
12091 "\n"
12092 msgstr ""
12093
12094 # type: textblock
12095 #: ../src/guestfs-actions.pod:4528
12096 msgid ""
12097 "This command adds a partition to C<device>.  If there is no partition table "
12098 "on the device, call C<guestfs_part_init> first."
12099 msgstr ""
12100
12101 # type: textblock
12102 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3027
12103 msgid ""
12104 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12105 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12106 "C<logical>) and C<e> (or C<extended>) partition types."
12107 msgstr ""
12108
12109 # type: textblock
12110 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3032
12111 msgid ""
12112 "C<startsect> and C<endsect> are the start and end of the partition in "
12113 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12114 "from the end of the disk (C<-1> is the last sector)."
12115 msgstr ""
12116
12117 # type: textblock
12118 #: ../src/guestfs-actions.pod:4540
12119 msgid ""
12120 "Creating a partition which covers the whole disk is not so easy.  Use "
12121 "C<guestfs_part_disk> to do that."
12122 msgstr ""
12123
12124 # type: textblock
12125 #: ../src/guestfs-actions.pod:4545 ../src/guestfs-actions.pod:4583
12126 #: ../src/guestfs-actions.pod:4636 ../src/guestfs-actions.pod:4714
12127 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:4771
12128 #: ../src/guestfs-actions.pod:4811
12129 msgid "(Added in 1.0.78)"
12130 msgstr ""
12131
12132 # type: =head2
12133 #: ../src/guestfs-actions.pod:4547
12134 msgid "guestfs_part_del"
12135 msgstr ""
12136
12137 # type: verbatim
12138 #: ../src/guestfs-actions.pod:4549
12139 #, no-wrap
12140 msgid ""
12141 " int\n"
12142 " guestfs_part_del (guestfs_h *g,\n"
12143 "                   const char *device,\n"
12144 "                   int partnum);\n"
12145 "\n"
12146 msgstr ""
12147
12148 # type: textblock
12149 #: ../src/guestfs-actions.pod:4554 ../fish/guestfish-actions.pod:3043
12150 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12151 msgstr ""
12152
12153 # type: textblock
12154 #: ../src/guestfs-actions.pod:4556 ../fish/guestfish-actions.pod:3045
12155 msgid ""
12156 "Note that in the case of MBR partitioning, deleting an extended partition "
12157 "also deletes any logical partitions it contains."
12158 msgstr ""
12159
12160 # type: =head2
12161 #: ../src/guestfs-actions.pod:4564
12162 msgid "guestfs_part_disk"
12163 msgstr ""
12164
12165 # type: verbatim
12166 #: ../src/guestfs-actions.pod:4566
12167 #, no-wrap
12168 msgid ""
12169 " int\n"
12170 " guestfs_part_disk (guestfs_h *g,\n"
12171 "                    const char *device,\n"
12172 "                    const char *parttype);\n"
12173 "\n"
12174 msgstr ""
12175
12176 # type: textblock
12177 #: ../src/guestfs-actions.pod:4571
12178 msgid ""
12179 "This command is simply a combination of C<guestfs_part_init> followed by "
12180 "C<guestfs_part_add> to create a single primary partition covering the whole "
12181 "disk."
12182 msgstr ""
12183
12184 # type: textblock
12185 #: ../src/guestfs-actions.pod:4575
12186 msgid ""
12187 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12188 "possible values are described in C<guestfs_part_init>."
12189 msgstr ""
12190
12191 # type: =head2
12192 #: ../src/guestfs-actions.pod:4585
12193 msgid "guestfs_part_get_bootable"
12194 msgstr ""
12195
12196 # type: verbatim
12197 #: ../src/guestfs-actions.pod:4587
12198 #, no-wrap
12199 msgid ""
12200 " int\n"
12201 " guestfs_part_get_bootable (guestfs_h *g,\n"
12202 "                            const char *device,\n"
12203 "                            int partnum);\n"
12204 "\n"
12205 msgstr ""
12206
12207 # type: textblock
12208 #: ../src/guestfs-actions.pod:4592 ../fish/guestfish-actions.pod:3067
12209 msgid ""
12210 "This command returns true if the partition C<partnum> on C<device> has the "
12211 "bootable flag set."
12212 msgstr ""
12213
12214 # type: textblock
12215 #: ../src/guestfs-actions.pod:4595
12216 msgid "See also C<guestfs_part_set_bootable>."
12217 msgstr ""
12218
12219 # type: =head2
12220 #: ../src/guestfs-actions.pod:4601
12221 msgid "guestfs_part_get_mbr_id"
12222 msgstr ""
12223
12224 # type: verbatim
12225 #: ../src/guestfs-actions.pod:4603
12226 #, no-wrap
12227 msgid ""
12228 " int\n"
12229 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12230 "                          const char *device,\n"
12231 "                          int partnum);\n"
12232 "\n"
12233 msgstr ""
12234
12235 # type: textblock
12236 #: ../src/guestfs-actions.pod:4608 ../fish/guestfish-actions.pod:3076
12237 msgid ""
12238 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12239 "partition C<partnum>."
12240 msgstr ""
12241
12242 # type: textblock
12243 #: ../src/guestfs-actions.pod:4611 ../src/guestfs-actions.pod:4787
12244 msgid ""
12245 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12246 "undefined results for other partition table types (see "
12247 "C<guestfs_part_get_parttype>)."
12248 msgstr ""
12249
12250 # type: =head2
12251 #: ../src/guestfs-actions.pod:4619
12252 msgid "guestfs_part_get_parttype"
12253 msgstr ""
12254
12255 # type: verbatim
12256 #: ../src/guestfs-actions.pod:4621
12257 #, no-wrap
12258 msgid ""
12259 " char *\n"
12260 " guestfs_part_get_parttype (guestfs_h *g,\n"
12261 "                            const char *device);\n"
12262 "\n"
12263 msgstr ""
12264
12265 # type: textblock
12266 #: ../src/guestfs-actions.pod:4625 ../fish/guestfish-actions.pod:3087
12267 msgid ""
12268 "This command examines the partition table on C<device> and returns the "
12269 "partition table type (format) being used."
12270 msgstr ""
12271
12272 # type: textblock
12273 #: ../src/guestfs-actions.pod:4628
12274 msgid ""
12275 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12276 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12277 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12278 msgstr ""
12279
12280 # type: =head2
12281 #: ../src/guestfs-actions.pod:4638
12282 msgid "guestfs_part_init"
12283 msgstr ""
12284
12285 # type: verbatim
12286 #: ../src/guestfs-actions.pod:4640
12287 #, no-wrap
12288 msgid ""
12289 " int\n"
12290 " guestfs_part_init (guestfs_h *g,\n"
12291 "                    const char *device,\n"
12292 "                    const char *parttype);\n"
12293 "\n"
12294 msgstr ""
12295
12296 # type: textblock
12297 #: ../src/guestfs-actions.pod:4645 ../fish/guestfish-actions.pod:3099
12298 msgid ""
12299 "This creates an empty partition table on C<device> of one of the partition "
12300 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12301 "(for large disks)."
12302 msgstr ""
12303
12304 # type: textblock
12305 #: ../src/guestfs-actions.pod:4649
12306 msgid ""
12307 "Initially there are no partitions.  Following this, you should call "
12308 "C<guestfs_part_add> for each partition required."
12309 msgstr ""
12310
12311 # type: textblock
12312 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3106
12313 msgid "Possible values for C<parttype> are:"
12314 msgstr ""
12315
12316 # type: =item
12317 #: ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3110
12318 msgid "B<efi> | B<gpt>"
12319 msgstr ""
12320
12321 # type: textblock
12322 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3112
12323 msgid "Intel EFI / GPT partition table."
12324 msgstr ""
12325
12326 # type: textblock
12327 #: ../src/guestfs-actions.pod:4660 ../fish/guestfish-actions.pod:3114
12328 msgid ""
12329 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12330 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12331 "the C<mbr> format."
12332 msgstr ""
12333
12334 # type: =item
12335 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3118
12336 msgid "B<mbr> | B<msdos>"
12337 msgstr ""
12338
12339 # type: textblock
12340 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3120
12341 msgid ""
12342 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12343 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12344 "TB.  For large disks we recommend using C<gpt>."
12345 msgstr ""
12346
12347 # type: textblock
12348 #: ../src/guestfs-actions.pod:4673 ../fish/guestfish-actions.pod:3127
12349 msgid ""
12350 "Other partition table types that may work but are not supported include:"
12351 msgstr ""
12352
12353 # type: =item
12354 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3132
12355 msgid "B<aix>"
12356 msgstr ""
12357
12358 # type: textblock
12359 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3134
12360 msgid "AIX disk labels."
12361 msgstr ""
12362
12363 # type: =item
12364 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3136
12365 msgid "B<amiga> | B<rdb>"
12366 msgstr ""
12367
12368 # type: textblock
12369 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3138
12370 msgid "Amiga \"Rigid Disk Block\" format."
12371 msgstr ""
12372
12373 # type: =item
12374 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3140
12375 msgid "B<bsd>"
12376 msgstr ""
12377
12378 # type: textblock
12379 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3142
12380 msgid "BSD disk labels."
12381 msgstr ""
12382
12383 # type: =item
12384 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3144
12385 msgid "B<dasd>"
12386 msgstr ""
12387
12388 # type: textblock
12389 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3146
12390 msgid "DASD, used on IBM mainframes."
12391 msgstr ""
12392
12393 # type: =item
12394 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3148
12395 msgid "B<dvh>"
12396 msgstr ""
12397
12398 # type: textblock
12399 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3150
12400 msgid "MIPS/SGI volumes."
12401 msgstr ""
12402
12403 # type: =item
12404 #: ../src/guestfs-actions.pod:4698 ../fish/guestfish-actions.pod:3152
12405 msgid "B<mac>"
12406 msgstr ""
12407
12408 # type: textblock
12409 #: ../src/guestfs-actions.pod:4700 ../fish/guestfish-actions.pod:3154
12410 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12411 msgstr ""
12412
12413 # type: =item
12414 #: ../src/guestfs-actions.pod:4702 ../fish/guestfish-actions.pod:3156
12415 msgid "B<pc98>"
12416 msgstr ""
12417
12418 # type: textblock
12419 #: ../src/guestfs-actions.pod:4704 ../fish/guestfish-actions.pod:3158
12420 msgid "NEC PC-98 format, common in Japan apparently."
12421 msgstr ""
12422
12423 # type: =item
12424 #: ../src/guestfs-actions.pod:4706 ../fish/guestfish-actions.pod:3160
12425 msgid "B<sun>"
12426 msgstr ""
12427
12428 # type: textblock
12429 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3162
12430 msgid "Sun disk labels."
12431 msgstr ""
12432
12433 # type: =head2
12434 #: ../src/guestfs-actions.pod:4716
12435 msgid "guestfs_part_list"
12436 msgstr ""
12437
12438 # type: verbatim
12439 #: ../src/guestfs-actions.pod:4718
12440 #, no-wrap
12441 msgid ""
12442 " struct guestfs_partition_list *\n"
12443 " guestfs_part_list (guestfs_h *g,\n"
12444 "                    const char *device);\n"
12445 "\n"
12446 msgstr ""
12447
12448 # type: textblock
12449 #: ../src/guestfs-actions.pod:4722 ../fish/guestfish-actions.pod:3170
12450 msgid ""
12451 "This command parses the partition table on C<device> and returns the list of "
12452 "partitions found."
12453 msgstr ""
12454
12455 # type: textblock
12456 #: ../src/guestfs-actions.pod:4725 ../fish/guestfish-actions.pod:3173
12457 msgid "The fields in the returned structure are:"
12458 msgstr ""
12459
12460 # type: =item
12461 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3177
12462 msgid "B<part_num>"
12463 msgstr ""
12464
12465 # type: textblock
12466 #: ../src/guestfs-actions.pod:4731 ../fish/guestfish-actions.pod:3179
12467 msgid "Partition number, counting from 1."
12468 msgstr ""
12469
12470 # type: =item
12471 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3181
12472 msgid "B<part_start>"
12473 msgstr ""
12474
12475 # type: textblock
12476 #: ../src/guestfs-actions.pod:4735
12477 msgid ""
12478 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12479 "the device's sector size, see C<guestfs_blockdev_getss>."
12480 msgstr ""
12481
12482 # type: =item
12483 #: ../src/guestfs-actions.pod:4738 ../fish/guestfish-actions.pod:3186
12484 msgid "B<part_end>"
12485 msgstr ""
12486
12487 # type: textblock
12488 #: ../src/guestfs-actions.pod:4740 ../fish/guestfish-actions.pod:3188
12489 msgid "End of the partition in bytes."
12490 msgstr ""
12491
12492 # type: =item
12493 #: ../src/guestfs-actions.pod:4742 ../fish/guestfish-actions.pod:3190
12494 msgid "B<part_size>"
12495 msgstr ""
12496
12497 # type: textblock
12498 #: ../src/guestfs-actions.pod:4744 ../fish/guestfish-actions.pod:3192
12499 msgid "Size of the partition in bytes."
12500 msgstr ""
12501
12502 # type: textblock
12503 #: ../src/guestfs-actions.pod:4748
12504 msgid ""
12505 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12506 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12507 "use>."
12508 msgstr ""
12509
12510 # type: =head2
12511 #: ../src/guestfs-actions.pod:4754
12512 msgid "guestfs_part_set_bootable"
12513 msgstr ""
12514
12515 # type: verbatim
12516 #: ../src/guestfs-actions.pod:4756
12517 #, no-wrap
12518 msgid ""
12519 " int\n"
12520 " guestfs_part_set_bootable (guestfs_h *g,\n"
12521 "                            const char *device,\n"
12522 "                            int partnum,\n"
12523 "                            int bootable);\n"
12524 "\n"
12525 msgstr ""
12526
12527 # type: textblock
12528 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3200
12529 msgid ""
12530 "This sets the bootable flag on partition numbered C<partnum> on device "
12531 "C<device>.  Note that partitions are numbered from 1."
12532 msgstr ""
12533
12534 # type: textblock
12535 #: ../src/guestfs-actions.pod:4765 ../fish/guestfish-actions.pod:3203
12536 msgid ""
12537 "The bootable flag is used by some operating systems (notably Windows) to "
12538 "determine which partition to boot from.  It is by no means universally "
12539 "recognized."
12540 msgstr ""
12541
12542 # type: =head2
12543 #: ../src/guestfs-actions.pod:4773
12544 msgid "guestfs_part_set_mbr_id"
12545 msgstr ""
12546
12547 # type: verbatim
12548 #: ../src/guestfs-actions.pod:4775
12549 #, no-wrap
12550 msgid ""
12551 " int\n"
12552 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12553 "                          const char *device,\n"
12554 "                          int partnum,\n"
12555 "                          int idbyte);\n"
12556 "\n"
12557 msgstr ""
12558
12559 # type: textblock
12560 #: ../src/guestfs-actions.pod:4781 ../fish/guestfish-actions.pod:3211
12561 msgid ""
12562 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12563 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12564 "documentation are in fact hexadecimal numbers, but usually documented "
12565 "without any leading \"0x\" which might be confusing."
12566 msgstr ""
12567
12568 # type: =head2
12569 #: ../src/guestfs-actions.pod:4795
12570 msgid "guestfs_part_set_name"
12571 msgstr ""
12572
12573 # type: verbatim
12574 #: ../src/guestfs-actions.pod:4797
12575 #, no-wrap
12576 msgid ""
12577 " int\n"
12578 " guestfs_part_set_name (guestfs_h *g,\n"
12579 "                        const char *device,\n"
12580 "                        int partnum,\n"
12581 "                        const char *name);\n"
12582 "\n"
12583 msgstr ""
12584
12585 # type: textblock
12586 #: ../src/guestfs-actions.pod:4803 ../fish/guestfish-actions.pod:3225
12587 msgid ""
12588 "This sets the partition name on partition numbered C<partnum> on device "
12589 "C<device>.  Note that partitions are numbered from 1."
12590 msgstr ""
12591
12592 # type: textblock
12593 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3228
12594 msgid ""
12595 "The partition name can only be set on certain types of partition table.  "
12596 "This works on C<gpt> but not on C<mbr> partitions."
12597 msgstr ""
12598
12599 # type: =head2
12600 #: ../src/guestfs-actions.pod:4813
12601 msgid "guestfs_part_to_dev"
12602 msgstr ""
12603
12604 # type: verbatim
12605 #: ../src/guestfs-actions.pod:4815
12606 #, no-wrap
12607 msgid ""
12608 " char *\n"
12609 " guestfs_part_to_dev (guestfs_h *g,\n"
12610 "                      const char *partition);\n"
12611 "\n"
12612 msgstr ""
12613
12614 # type: textblock
12615 #: ../src/guestfs-actions.pod:4819 ../fish/guestfish-actions.pod:3235
12616 msgid ""
12617 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12618 "partition number, returning the device name (eg. \"/dev/sdb\")."
12619 msgstr ""
12620
12621 # type: textblock
12622 #: ../src/guestfs-actions.pod:4823
12623 msgid ""
12624 "The named partition must exist, for example as a string returned from "
12625 "C<guestfs_list_partitions>."
12626 msgstr ""
12627
12628 # type: =head2
12629 #: ../src/guestfs-actions.pod:4831
12630 msgid "guestfs_ping_daemon"
12631 msgstr ""
12632
12633 # type: verbatim
12634 #: ../src/guestfs-actions.pod:4833
12635 #, no-wrap
12636 msgid ""
12637 " int\n"
12638 " guestfs_ping_daemon (guestfs_h *g);\n"
12639 "\n"
12640 msgstr ""
12641
12642 # type: textblock
12643 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3246
12644 msgid ""
12645 "This is a test probe into the guestfs daemon running inside the qemu "
12646 "subprocess.  Calling this function checks that the daemon responds to the "
12647 "ping message, without affecting the daemon or attached block device(s) in "
12648 "any other way."
12649 msgstr ""
12650
12651 # type: =head2
12652 #: ../src/guestfs-actions.pod:4845
12653 msgid "guestfs_pread"
12654 msgstr ""
12655
12656 # type: verbatim
12657 #: ../src/guestfs-actions.pod:4847
12658 #, no-wrap
12659 msgid ""
12660 " char *\n"
12661 " guestfs_pread (guestfs_h *g,\n"
12662 "                const char *path,\n"
12663 "                int count,\n"
12664 "                int64_t offset,\n"
12665 "                size_t *size_r);\n"
12666 "\n"
12667 msgstr ""
12668
12669 # type: textblock
12670 #: ../src/guestfs-actions.pod:4854 ../fish/guestfish-actions.pod:3255
12671 msgid ""
12672 "This command lets you read part of a file.  It reads C<count> bytes of the "
12673 "file, starting at C<offset>, from file C<path>."
12674 msgstr ""
12675
12676 # type: textblock
12677 #: ../src/guestfs-actions.pod:4857 ../src/guestfs-actions.pod:4883
12678 #: ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12679 msgid ""
12680 "This may read fewer bytes than requested.  For further details see the "
12681 "L<pread(2)> system call."
12682 msgstr ""
12683
12684 # type: textblock
12685 #: ../src/guestfs-actions.pod:4860
12686 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12687 msgstr ""
12688
12689 # type: =head2
12690 #: ../src/guestfs-actions.pod:4871
12691 msgid "guestfs_pread_device"
12692 msgstr ""
12693
12694 # type: verbatim
12695 #: ../src/guestfs-actions.pod:4873
12696 #, no-wrap
12697 msgid ""
12698 " char *\n"
12699 " guestfs_pread_device (guestfs_h *g,\n"
12700 "                       const char *device,\n"
12701 "                       int count,\n"
12702 "                       int64_t offset,\n"
12703 "                       size_t *size_r);\n"
12704 "\n"
12705 msgstr ""
12706
12707 # type: textblock
12708 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3270
12709 msgid ""
12710 "This command lets you read part of a file.  It reads C<count> bytes of "
12711 "C<device>, starting at C<offset>."
12712 msgstr ""
12713
12714 # type: textblock
12715 #: ../src/guestfs-actions.pod:4886
12716 msgid "See also C<guestfs_pread>."
12717 msgstr ""
12718
12719 # type: textblock
12720 #: ../src/guestfs-actions.pod:4895
12721 msgid "(Added in 1.5.21)"
12722 msgstr ""
12723
12724 # type: =head2
12725 #: ../src/guestfs-actions.pod:4897
12726 msgid "guestfs_pvcreate"
12727 msgstr ""
12728
12729 # type: verbatim
12730 #: ../src/guestfs-actions.pod:4899
12731 #, no-wrap
12732 msgid ""
12733 " int\n"
12734 " guestfs_pvcreate (guestfs_h *g,\n"
12735 "                   const char *device);\n"
12736 "\n"
12737 msgstr ""
12738
12739 # type: textblock
12740 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3285
12741 msgid ""
12742 "This creates an LVM physical volume on the named C<device>, where C<device> "
12743 "should usually be a partition name such as C</dev/sda1>."
12744 msgstr ""
12745
12746 # type: =head2
12747 #: ../src/guestfs-actions.pod:4911
12748 msgid "guestfs_pvremove"
12749 msgstr ""
12750
12751 # type: verbatim
12752 #: ../src/guestfs-actions.pod:4913
12753 #, no-wrap
12754 msgid ""
12755 " int\n"
12756 " guestfs_pvremove (guestfs_h *g,\n"
12757 "                   const char *device);\n"
12758 "\n"
12759 msgstr ""
12760
12761 # type: textblock
12762 #: ../src/guestfs-actions.pod:4917 ../fish/guestfish-actions.pod:3293
12763 msgid ""
12764 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12765 "it."
12766 msgstr ""
12767
12768 # type: textblock
12769 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3296
12770 msgid ""
12771 "The implementation uses the C<pvremove> command which refuses to wipe "
12772 "physical volumes that contain any volume groups, so you have to remove those "
12773 "first."
12774 msgstr ""
12775
12776 # type: =head2
12777 #: ../src/guestfs-actions.pod:4928
12778 msgid "guestfs_pvresize"
12779 msgstr ""
12780
12781 # type: verbatim
12782 #: ../src/guestfs-actions.pod:4930
12783 #, no-wrap
12784 msgid ""
12785 " int\n"
12786 " guestfs_pvresize (guestfs_h *g,\n"
12787 "                   const char *device);\n"
12788 "\n"
12789 msgstr ""
12790
12791 # type: textblock
12792 #: ../src/guestfs-actions.pod:4934 ../fish/guestfish-actions.pod:3304
12793 msgid ""
12794 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12795 "the new size of the underlying device."
12796 msgstr ""
12797
12798 # type: =head2
12799 #: ../src/guestfs-actions.pod:4941
12800 msgid "guestfs_pvresize_size"
12801 msgstr ""
12802
12803 # type: verbatim
12804 #: ../src/guestfs-actions.pod:4943
12805 #, no-wrap
12806 msgid ""
12807 " int\n"
12808 " guestfs_pvresize_size (guestfs_h *g,\n"
12809 "                        const char *device,\n"
12810 "                        int64_t size);\n"
12811 "\n"
12812 msgstr ""
12813
12814 # type: textblock
12815 #: ../src/guestfs-actions.pod:4948
12816 msgid ""
12817 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12818 "specify the new size (in bytes) explicitly."
12819 msgstr ""
12820
12821 # type: =head2
12822 #: ../src/guestfs-actions.pod:4955
12823 msgid "guestfs_pvs"
12824 msgstr ""
12825
12826 # type: verbatim
12827 #: ../src/guestfs-actions.pod:4957
12828 #, no-wrap
12829 msgid ""
12830 " char **\n"
12831 " guestfs_pvs (guestfs_h *g);\n"
12832 "\n"
12833 msgstr ""
12834
12835 # type: textblock
12836 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3318
12837 msgid ""
12838 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12839 "(8)> command."
12840 msgstr ""
12841
12842 # type: textblock
12843 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3321
12844 msgid ""
12845 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12846 "sda2>)."
12847 msgstr ""
12848
12849 # type: textblock
12850 #: ../src/guestfs-actions.pod:4966
12851 msgid "See also C<guestfs_pvs_full>."
12852 msgstr ""
12853
12854 # type: =head2
12855 #: ../src/guestfs-actions.pod:4974
12856 msgid "guestfs_pvs_full"
12857 msgstr ""
12858
12859 # type: verbatim
12860 #: ../src/guestfs-actions.pod:4976
12861 #, no-wrap
12862 msgid ""
12863 " struct guestfs_lvm_pv_list *\n"
12864 " guestfs_pvs_full (guestfs_h *g);\n"
12865 "\n"
12866 msgstr ""
12867
12868 # type: textblock
12869 #: ../src/guestfs-actions.pod:4979 ../fish/guestfish-actions.pod:3330
12870 msgid ""
12871 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12872 "(8)> command.  The \"full\" version includes all fields."
12873 msgstr ""
12874
12875 # type: textblock
12876 #: ../src/guestfs-actions.pod:4982
12877 msgid ""
12878 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12879 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12880 msgstr ""
12881
12882 # type: =head2
12883 #: ../src/guestfs-actions.pod:4988
12884 msgid "guestfs_pvuuid"
12885 msgstr ""
12886
12887 # type: verbatim
12888 #: ../src/guestfs-actions.pod:4990
12889 #, no-wrap
12890 msgid ""
12891 " char *\n"
12892 " guestfs_pvuuid (guestfs_h *g,\n"
12893 "                 const char *device);\n"
12894 "\n"
12895 msgstr ""
12896
12897 # type: textblock
12898 #: ../src/guestfs-actions.pod:4994 ../fish/guestfish-actions.pod:3337
12899 msgid "This command returns the UUID of the LVM PV C<device>."
12900 msgstr ""
12901
12902 # type: =head2
12903 #: ../src/guestfs-actions.pod:5001
12904 msgid "guestfs_pwrite"
12905 msgstr ""
12906
12907 # type: verbatim
12908 #: ../src/guestfs-actions.pod:5003
12909 #, no-wrap
12910 msgid ""
12911 " int\n"
12912 " guestfs_pwrite (guestfs_h *g,\n"
12913 "                 const char *path,\n"
12914 "                 const char *content,\n"
12915 "                 size_t content_size,\n"
12916 "                 int64_t offset);\n"
12917 "\n"
12918 msgstr ""
12919
12920 # type: textblock
12921 #: ../src/guestfs-actions.pod:5010 ../fish/guestfish-actions.pod:3343
12922 msgid ""
12923 "This command writes to part of a file.  It writes the data buffer C<content> "
12924 "to the file C<path> starting at offset C<offset>."
12925 msgstr ""
12926
12927 # type: textblock
12928 #: ../src/guestfs-actions.pod:5013 ../fish/guestfish-actions.pod:3346
12929 msgid ""
12930 "This command implements the L<pwrite(2)> system call, and like that system "
12931 "call it may not write the full data requested.  The return value is the "
12932 "number of bytes that were actually written to the file.  This could even be "
12933 "0, although short writes are unlikely for regular files in ordinary "
12934 "circumstances."
12935 msgstr ""
12936
12937 # type: textblock
12938 #: ../src/guestfs-actions.pod:5019
12939 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12940 msgstr ""
12941
12942 # type: =head2
12943 #: ../src/guestfs-actions.pod:5028
12944 msgid "guestfs_pwrite_device"
12945 msgstr ""
12946
12947 # type: verbatim
12948 #: ../src/guestfs-actions.pod:5030
12949 #, no-wrap
12950 msgid ""
12951 " int\n"
12952 " guestfs_pwrite_device (guestfs_h *g,\n"
12953 "                        const char *device,\n"
12954 "                        const char *content,\n"
12955 "                        size_t content_size,\n"
12956 "                        int64_t offset);\n"
12957 "\n"
12958 msgstr ""
12959
12960 # type: textblock
12961 #: ../src/guestfs-actions.pod:5037 ../fish/guestfish-actions.pod:3361
12962 msgid ""
12963 "This command writes to part of a device.  It writes the data buffer "
12964 "C<content> to C<device> starting at offset C<offset>."
12965 msgstr ""
12966
12967 # type: textblock
12968 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3364
12969 msgid ""
12970 "This command implements the L<pwrite(2)> system call, and like that system "
12971 "call it may not write the full data requested (although short writes to disk "
12972 "devices and partitions are probably impossible with standard Linux kernels)."
12973 msgstr ""
12974
12975 # type: textblock
12976 #: ../src/guestfs-actions.pod:5045
12977 msgid "See also C<guestfs_pwrite>."
12978 msgstr ""
12979
12980 # type: textblock
12981 #: ../src/guestfs-actions.pod:5052
12982 msgid "(Added in 1.5.20)"
12983 msgstr ""
12984
12985 # type: =head2
12986 #: ../src/guestfs-actions.pod:5054
12987 msgid "guestfs_read_file"
12988 msgstr ""
12989
12990 # type: verbatim
12991 #: ../src/guestfs-actions.pod:5056
12992 #, no-wrap
12993 msgid ""
12994 " char *\n"
12995 " guestfs_read_file (guestfs_h *g,\n"
12996 "                    const char *path,\n"
12997 "                    size_t *size_r);\n"
12998 "\n"
12999 msgstr ""
13000
13001 # type: textblock
13002 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3378
13003 msgid "This calls returns the contents of the file C<path> as a buffer."
13004 msgstr ""
13005
13006 # type: textblock
13007 #: ../src/guestfs-actions.pod:5064
13008 msgid ""
13009 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
13010 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
13011 "function is limited in the total size of file that can be handled."
13012 msgstr ""
13013
13014 # type: textblock
13015 #: ../src/guestfs-actions.pod:5076
13016 msgid "(Added in 1.0.63)"
13017 msgstr ""
13018
13019 # type: =head2
13020 #: ../src/guestfs-actions.pod:5078
13021 msgid "guestfs_read_lines"
13022 msgstr ""
13023
13024 # type: verbatim
13025 #: ../src/guestfs-actions.pod:5080
13026 #, no-wrap
13027 msgid ""
13028 " char **\n"
13029 " guestfs_read_lines (guestfs_h *g,\n"
13030 "                     const char *path);\n"
13031 "\n"
13032 msgstr ""
13033
13034 # type: textblock
13035 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3395
13036 msgid ""
13037 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13038 "C<CRLF> character sequences are I<not> returned."
13039 msgstr ""
13040
13041 # type: textblock
13042 #: ../src/guestfs-actions.pod:5089
13043 msgid ""
13044 "Note that this function cannot correctly handle binary files (specifically, "
13045 "files containing C<\\0> character which is treated as end of line).  For "
13046 "those you need to use the C<guestfs_read_file> function which has a more "
13047 "complex interface."
13048 msgstr ""
13049
13050 # type: =head2
13051 #: ../src/guestfs-actions.pod:5100
13052 msgid "guestfs_readdir"
13053 msgstr ""
13054
13055 # type: verbatim
13056 #: ../src/guestfs-actions.pod:5102
13057 #, no-wrap
13058 msgid ""
13059 " struct guestfs_dirent_list *\n"
13060 " guestfs_readdir (guestfs_h *g,\n"
13061 "                  const char *dir);\n"
13062 "\n"
13063 msgstr ""
13064
13065 # type: textblock
13066 #: ../src/guestfs-actions.pod:5106 ../fish/guestfish-actions.pod:3407
13067 msgid "This returns the list of directory entries in directory C<dir>."
13068 msgstr ""
13069
13070 # type: textblock
13071 #: ../src/guestfs-actions.pod:5108 ../fish/guestfish-actions.pod:3409
13072 msgid ""
13073 "All entries in the directory are returned, including C<.> and C<..>.  The "
13074 "entries are I<not> sorted, but returned in the same order as the underlying "
13075 "filesystem."
13076 msgstr ""
13077
13078 # type: textblock
13079 #: ../src/guestfs-actions.pod:5112 ../fish/guestfish-actions.pod:3413
13080 msgid ""
13081 "Also this call returns basic file type information about each file.  The "
13082 "C<ftyp> field will contain one of the following characters:"
13083 msgstr ""
13084
13085 # type: =item
13086 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3418
13087 msgid "'b'"
13088 msgstr ""
13089
13090 # type: textblock
13091 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3420
13092 msgid "Block special"
13093 msgstr ""
13094
13095 # type: =item
13096 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3422
13097 msgid "'c'"
13098 msgstr ""
13099
13100 # type: textblock
13101 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3424
13102 msgid "Char special"
13103 msgstr ""
13104
13105 # type: =item
13106 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3426
13107 msgid "'d'"
13108 msgstr ""
13109
13110 # type: textblock
13111 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3428
13112 msgid "Directory"
13113 msgstr ""
13114
13115 # type: =item
13116 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3430
13117 msgid "'f'"
13118 msgstr ""
13119
13120 # type: textblock
13121 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3432
13122 msgid "FIFO (named pipe)"
13123 msgstr ""
13124
13125 # type: =item
13126 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3434
13127 msgid "'l'"
13128 msgstr ""
13129
13130 # type: textblock
13131 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3436
13132 msgid "Symbolic link"
13133 msgstr ""
13134
13135 # type: =item
13136 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3438
13137 msgid "'r'"
13138 msgstr ""
13139
13140 # type: textblock
13141 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3440
13142 msgid "Regular file"
13143 msgstr ""
13144
13145 # type: =item
13146 #: ../src/guestfs-actions.pod:5141 ../fish/guestfish-actions.pod:3442
13147 msgid "'s'"
13148 msgstr ""
13149
13150 # type: textblock
13151 #: ../src/guestfs-actions.pod:5143 ../fish/guestfish-actions.pod:3444
13152 msgid "Socket"
13153 msgstr ""
13154
13155 # type: =item
13156 #: ../src/guestfs-actions.pod:5145 ../fish/guestfish-actions.pod:3446
13157 msgid "'u'"
13158 msgstr ""
13159
13160 # type: textblock
13161 #: ../src/guestfs-actions.pod:5147 ../fish/guestfish-actions.pod:3448
13162 msgid "Unknown file type"
13163 msgstr ""
13164
13165 # type: =item
13166 #: ../src/guestfs-actions.pod:5149 ../fish/guestfish-actions.pod:3450
13167 msgid "'?'"
13168 msgstr ""
13169
13170 # type: textblock
13171 #: ../src/guestfs-actions.pod:5151 ../fish/guestfish-actions.pod:3452
13172 msgid ""
13173 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13174 msgstr ""
13175
13176 # type: textblock
13177 #: ../src/guestfs-actions.pod:5156
13178 msgid ""
13179 "This function is primarily intended for use by programs.  To get a simple "
13180 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13181 "consumption, use C<guestfs_ll>."
13182 msgstr ""
13183
13184 # type: textblock
13185 #: ../src/guestfs-actions.pod:5160
13186 msgid ""
13187 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13188 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13189 msgstr ""
13190
13191 # type: =head2
13192 #: ../src/guestfs-actions.pod:5166
13193 msgid "guestfs_readlink"
13194 msgstr ""
13195
13196 # type: verbatim
13197 #: ../src/guestfs-actions.pod:5168
13198 #, no-wrap
13199 msgid ""
13200 " char *\n"
13201 " guestfs_readlink (guestfs_h *g,\n"
13202 "                   const char *path);\n"
13203 "\n"
13204 msgstr ""
13205
13206 # type: textblock
13207 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3465
13208 msgid "This command reads the target of a symbolic link."
13209 msgstr ""
13210
13211 # type: =head2
13212 #: ../src/guestfs-actions.pod:5179
13213 msgid "guestfs_readlinklist"
13214 msgstr ""
13215
13216 # type: verbatim
13217 #: ../src/guestfs-actions.pod:5181
13218 #, no-wrap
13219 msgid ""
13220 " char **\n"
13221 " guestfs_readlinklist (guestfs_h *g,\n"
13222 "                       const char *path,\n"
13223 "                       char *const *names);\n"
13224 "\n"
13225 msgstr ""
13226
13227 # type: textblock
13228 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:3471
13229 msgid ""
13230 "This call allows you to do a C<readlink> operation on multiple files, where "
13231 "all files are in the directory C<path>.  C<names> is the list of files from "
13232 "this directory."
13233 msgstr ""
13234
13235 # type: textblock
13236 #: ../src/guestfs-actions.pod:5190 ../fish/guestfish-actions.pod:3475
13237 msgid ""
13238 "On return you get a list of strings, with a one-to-one correspondence to the "
13239 "C<names> list.  Each string is the value of the symbolic link."
13240 msgstr ""
13241
13242 # type: textblock
13243 #: ../src/guestfs-actions.pod:5194 ../fish/guestfish-actions.pod:3479
13244 msgid ""
13245 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13246 "result string is the empty string C<\"\">.  However the whole operation is "
13247 "completed even if there were C<readlink(2)> errors, and so you can call this "
13248 "function with names where you don't know if they are symbolic links already "
13249 "(albeit slightly less efficient)."
13250 msgstr ""
13251
13252 # type: textblock
13253 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3486
13254 msgid ""
13255 "This call is intended for programs that want to efficiently list a directory "
13256 "contents without making many round-trips.  Very long directory listings "
13257 "might cause the protocol message size to be exceeded, causing this call to "
13258 "fail.  The caller must split up such requests into smaller groups of names."
13259 msgstr ""
13260
13261 # type: =head2
13262 #: ../src/guestfs-actions.pod:5214
13263 msgid "guestfs_realpath"
13264 msgstr ""
13265
13266 # type: verbatim
13267 #: ../src/guestfs-actions.pod:5216
13268 #, no-wrap
13269 msgid ""
13270 " char *\n"
13271 " guestfs_realpath (guestfs_h *g,\n"
13272 "                   const char *path);\n"
13273 "\n"
13274 msgstr ""
13275
13276 # type: textblock
13277 #: ../src/guestfs-actions.pod:5220 ../fish/guestfish-actions.pod:3497
13278 msgid ""
13279 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13280 "has no C<.>, C<..> or symbolic link path elements."
13281 msgstr ""
13282
13283 # type: =head2
13284 #: ../src/guestfs-actions.pod:5228
13285 msgid "guestfs_removexattr"
13286 msgstr ""
13287
13288 # type: verbatim
13289 #: ../src/guestfs-actions.pod:5230
13290 #, no-wrap
13291 msgid ""
13292 " int\n"
13293 " guestfs_removexattr (guestfs_h *g,\n"
13294 "                      const char *xattr,\n"
13295 "                      const char *path);\n"
13296 "\n"
13297 msgstr ""
13298
13299 # type: textblock
13300 #: ../src/guestfs-actions.pod:5235 ../fish/guestfish-actions.pod:3504
13301 msgid ""
13302 "This call removes the extended attribute named C<xattr> of the file C<path>."
13303 msgstr ""
13304
13305 # type: textblock
13306 #: ../src/guestfs-actions.pod:5238
13307 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13308 msgstr ""
13309
13310 # type: =head2
13311 #: ../src/guestfs-actions.pod:5244
13312 msgid "guestfs_resize2fs"
13313 msgstr ""
13314
13315 # type: verbatim
13316 #: ../src/guestfs-actions.pod:5246
13317 #, no-wrap
13318 msgid ""
13319 " int\n"
13320 " guestfs_resize2fs (guestfs_h *g,\n"
13321 "                    const char *device);\n"
13322 "\n"
13323 msgstr ""
13324
13325 # type: textblock
13326 #: ../src/guestfs-actions.pod:5250 ../fish/guestfish-actions.pod:3513
13327 msgid ""
13328 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13329 "underlying device."
13330 msgstr ""
13331
13332 # type: textblock
13333 #: ../src/guestfs-actions.pod:5253
13334 msgid ""
13335 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13336 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13337 "sometimes gives an error about this and sometimes not.  In any case, it is "
13338 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13339 msgstr ""
13340
13341 # type: =head2
13342 #: ../src/guestfs-actions.pod:5263
13343 msgid "guestfs_resize2fs_size"
13344 msgstr ""
13345
13346 # type: verbatim
13347 #: ../src/guestfs-actions.pod:5265
13348 #, no-wrap
13349 msgid ""
13350 " int\n"
13351 " guestfs_resize2fs_size (guestfs_h *g,\n"
13352 "                         const char *device,\n"
13353 "                         int64_t size);\n"
13354 "\n"
13355 msgstr ""
13356
13357 # type: textblock
13358 #: ../src/guestfs-actions.pod:5270
13359 msgid ""
13360 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13361 "to specify the new size (in bytes) explicitly."
13362 msgstr ""
13363
13364 # type: =head2
13365 #: ../src/guestfs-actions.pod:5277
13366 msgid "guestfs_rm"
13367 msgstr ""
13368
13369 # type: verbatim
13370 #: ../src/guestfs-actions.pod:5279
13371 #, no-wrap
13372 msgid ""
13373 " int\n"
13374 " guestfs_rm (guestfs_h *g,\n"
13375 "             const char *path);\n"
13376 "\n"
13377 msgstr ""
13378
13379 # type: textblock
13380 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3533
13381 msgid "Remove the single file C<path>."
13382 msgstr ""
13383
13384 # type: =head2
13385 #: ../src/guestfs-actions.pod:5289
13386 msgid "guestfs_rm_rf"
13387 msgstr ""
13388
13389 # type: verbatim
13390 #: ../src/guestfs-actions.pod:5291
13391 #, no-wrap
13392 msgid ""
13393 " int\n"
13394 " guestfs_rm_rf (guestfs_h *g,\n"
13395 "                const char *path);\n"
13396 "\n"
13397 msgstr ""
13398
13399 # type: textblock
13400 #: ../src/guestfs-actions.pod:5295 ../fish/guestfish-actions.pod:3539
13401 msgid ""
13402 "Remove the file or directory C<path>, recursively removing the contents if "
13403 "its a directory.  This is like the C<rm -rf> shell command."
13404 msgstr ""
13405
13406 # type: =head2
13407 #: ../src/guestfs-actions.pod:5303
13408 msgid "guestfs_rmdir"
13409 msgstr ""
13410
13411 # type: verbatim
13412 #: ../src/guestfs-actions.pod:5305
13413 #, no-wrap
13414 msgid ""
13415 " int\n"
13416 " guestfs_rmdir (guestfs_h *g,\n"
13417 "                const char *path);\n"
13418 "\n"
13419 msgstr ""
13420
13421 # type: textblock
13422 #: ../src/guestfs-actions.pod:5309 ../fish/guestfish-actions.pod:3547
13423 msgid "Remove the single directory C<path>."
13424 msgstr ""
13425
13426 # type: =head2
13427 #: ../src/guestfs-actions.pod:5315
13428 msgid "guestfs_rmmountpoint"
13429 msgstr ""
13430
13431 # type: verbatim
13432 #: ../src/guestfs-actions.pod:5317
13433 #, no-wrap
13434 msgid ""
13435 " int\n"
13436 " guestfs_rmmountpoint (guestfs_h *g,\n"
13437 "                       const char *exemptpath);\n"
13438 "\n"
13439 msgstr ""
13440
13441 # type: textblock
13442 #: ../src/guestfs-actions.pod:5321
13443 msgid ""
13444 "This calls removes a mountpoint that was previously created with "
13445 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13446 msgstr ""
13447
13448 # type: =head2
13449 #: ../src/guestfs-actions.pod:5329
13450 msgid "guestfs_scrub_device"
13451 msgstr ""
13452
13453 # type: verbatim
13454 #: ../src/guestfs-actions.pod:5331
13455 #, no-wrap
13456 msgid ""
13457 " int\n"
13458 " guestfs_scrub_device (guestfs_h *g,\n"
13459 "                       const char *device);\n"
13460 "\n"
13461 msgstr ""
13462
13463 # type: textblock
13464 #: ../src/guestfs-actions.pod:5335 ../fish/guestfish-actions.pod:3561
13465 msgid ""
13466 "This command writes patterns over C<device> to make data retrieval more "
13467 "difficult."
13468 msgstr ""
13469
13470 # type: textblock
13471 #: ../src/guestfs-actions.pod:5338 ../src/guestfs-actions.pod:5359
13472 #: ../src/guestfs-actions.pod:5378 ../fish/guestfish-actions.pod:3564
13473 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3592
13474 msgid ""
13475 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13476 "more details."
13477 msgstr ""
13478
13479 # type: textblock
13480 #: ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5364
13481 #: ../src/guestfs-actions.pod:5383
13482 msgid "(Added in 1.0.52)"
13483 msgstr ""
13484
13485 # type: =head2
13486 #: ../src/guestfs-actions.pod:5348
13487 msgid "guestfs_scrub_file"
13488 msgstr ""
13489
13490 # type: verbatim
13491 #: ../src/guestfs-actions.pod:5350
13492 #, no-wrap
13493 msgid ""
13494 " int\n"
13495 " guestfs_scrub_file (guestfs_h *g,\n"
13496 "                     const char *file);\n"
13497 "\n"
13498 msgstr ""
13499
13500 # type: textblock
13501 #: ../src/guestfs-actions.pod:5354 ../fish/guestfish-actions.pod:3574
13502 msgid ""
13503 "This command writes patterns over a file to make data retrieval more "
13504 "difficult."
13505 msgstr ""
13506
13507 # type: textblock
13508 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3577
13509 msgid "The file is I<removed> after scrubbing."
13510 msgstr ""
13511
13512 # type: =head2
13513 #: ../src/guestfs-actions.pod:5366
13514 msgid "guestfs_scrub_freespace"
13515 msgstr ""
13516
13517 # type: verbatim
13518 #: ../src/guestfs-actions.pod:5368
13519 #, no-wrap
13520 msgid ""
13521 " int\n"
13522 " guestfs_scrub_freespace (guestfs_h *g,\n"
13523 "                          const char *dir);\n"
13524 "\n"
13525 msgstr ""
13526
13527 # type: textblock
13528 #: ../src/guestfs-actions.pod:5372
13529 msgid ""
13530 "This command creates the directory C<dir> and then fills it with files until "
13531 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13532 "and deletes them.  The intention is to scrub any free space on the partition "
13533 "containing C<dir>."
13534 msgstr ""
13535
13536 # type: =head2
13537 #: ../src/guestfs-actions.pod:5385
13538 msgid "guestfs_set_append"
13539 msgstr ""
13540
13541 # type: verbatim
13542 #: ../src/guestfs-actions.pod:5387
13543 #, no-wrap
13544 msgid ""
13545 " int\n"
13546 " guestfs_set_append (guestfs_h *g,\n"
13547 "                     const char *append);\n"
13548 "\n"
13549 msgstr ""
13550
13551 # type: textblock
13552 #: ../src/guestfs-actions.pod:5391 ../fish/guestfish-actions.pod:3601
13553 msgid ""
13554 "This function is used to add additional options to the guest kernel command "
13555 "line."
13556 msgstr ""
13557
13558 # type: textblock
13559 #: ../src/guestfs-actions.pod:5394 ../fish/guestfish-actions.pod:3604
13560 msgid ""
13561 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13562 "environment variable."
13563 msgstr ""
13564
13565 # type: textblock
13566 #: ../src/guestfs-actions.pod:5397 ../fish/guestfish-actions.pod:3607
13567 msgid ""
13568 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13569 "(libguestfs always adds a few of its own)."
13570 msgstr ""
13571
13572 # type: =head2
13573 #: ../src/guestfs-actions.pod:5404
13574 msgid "guestfs_set_autosync"
13575 msgstr ""
13576
13577 # type: verbatim
13578 #: ../src/guestfs-actions.pod:5406
13579 #, no-wrap
13580 msgid ""
13581 " int\n"
13582 " guestfs_set_autosync (guestfs_h *g,\n"
13583 "                       int autosync);\n"
13584 "\n"
13585 msgstr ""
13586
13587 # type: textblock
13588 #: ../src/guestfs-actions.pod:5410
13589 msgid ""
13590 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13591 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13592 "the handle is closed (also if the program exits without closing handles)."
13593 msgstr ""
13594
13595 # type: textblock
13596 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:3621
13597 msgid ""
13598 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13599 "disabled by default)."
13600 msgstr ""
13601
13602 # type: =head2
13603 #: ../src/guestfs-actions.pod:5422
13604 msgid "guestfs_set_direct"
13605 msgstr ""
13606
13607 # type: verbatim
13608 #: ../src/guestfs-actions.pod:5424
13609 #, no-wrap
13610 msgid ""
13611 " int\n"
13612 " guestfs_set_direct (guestfs_h *g,\n"
13613 "                     int direct);\n"
13614 "\n"
13615 msgstr ""
13616
13617 # type: textblock
13618 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3630
13619 msgid ""
13620 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13621 "passed directly through to the appliance once it is launched."
13622 msgstr ""
13623
13624 # type: textblock
13625 #: ../src/guestfs-actions.pod:5432
13626 msgid ""
13627 "One consequence of this is that log messages aren't caught by the library "
13628 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13629 "stdout."
13630 msgstr ""
13631
13632 # type: textblock
13633 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3638
13634 msgid "You probably don't want to use this unless you know what you are doing."
13635 msgstr ""
13636
13637 # type: textblock
13638 #: ../src/guestfs-actions.pod:5439 ../fish/guestfish-actions.pod:3641
13639 msgid "The default is disabled."
13640 msgstr ""
13641
13642 # type: =head2
13643 #: ../src/guestfs-actions.pod:5445
13644 msgid "guestfs_set_e2label"
13645 msgstr ""
13646
13647 # type: verbatim
13648 #: ../src/guestfs-actions.pod:5447
13649 #, no-wrap
13650 msgid ""
13651 " int\n"
13652 " guestfs_set_e2label (guestfs_h *g,\n"
13653 "                      const char *device,\n"
13654 "                      const char *label);\n"
13655 "\n"
13656 msgstr ""
13657
13658 # type: textblock
13659 #: ../src/guestfs-actions.pod:5452 ../fish/guestfish-actions.pod:3647
13660 msgid ""
13661 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13662 "C<label>.  Filesystem labels are limited to 16 characters."
13663 msgstr ""
13664
13665 # type: textblock
13666 #: ../src/guestfs-actions.pod:5456
13667 msgid ""
13668 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13669 "the existing label on a filesystem."
13670 msgstr ""
13671
13672 # type: =head2
13673 #: ../src/guestfs-actions.pod:5463
13674 msgid "guestfs_set_e2uuid"
13675 msgstr ""
13676
13677 # type: verbatim
13678 #: ../src/guestfs-actions.pod:5465
13679 #, no-wrap
13680 msgid ""
13681 " int\n"
13682 " guestfs_set_e2uuid (guestfs_h *g,\n"
13683 "                     const char *device,\n"
13684 "                     const char *uuid);\n"
13685 "\n"
13686 msgstr ""
13687
13688 # type: textblock
13689 #: ../src/guestfs-actions.pod:5470 ../fish/guestfish-actions.pod:3658
13690 msgid ""
13691 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13692 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13693 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13694 msgstr ""
13695
13696 # type: textblock
13697 #: ../src/guestfs-actions.pod:5475
13698 msgid ""
13699 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13700 "the existing UUID of a filesystem."
13701 msgstr ""
13702
13703 # type: =head2
13704 #: ../src/guestfs-actions.pod:5482
13705 msgid "guestfs_set_memsize"
13706 msgstr ""
13707
13708 # type: verbatim
13709 #: ../src/guestfs-actions.pod:5484
13710 #, no-wrap
13711 msgid ""
13712 " int\n"
13713 " guestfs_set_memsize (guestfs_h *g,\n"
13714 "                      int memsize);\n"
13715 "\n"
13716 msgstr ""
13717
13718 # type: textblock
13719 #: ../src/guestfs-actions.pod:5488
13720 msgid ""
13721 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13722 "This only has any effect if called before C<guestfs_launch>."
13723 msgstr ""
13724
13725 # type: textblock
13726 #: ../src/guestfs-actions.pod:5492 ../fish/guestfish-actions.pod:3676
13727 msgid ""
13728 "You can also change this by setting the environment variable "
13729 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13730 msgstr ""
13731
13732 # type: =head2
13733 #: ../src/guestfs-actions.pod:5503
13734 msgid "guestfs_set_network"
13735 msgstr ""
13736
13737 # type: verbatim
13738 #: ../src/guestfs-actions.pod:5505
13739 #, no-wrap
13740 msgid ""
13741 " int\n"
13742 " guestfs_set_network (guestfs_h *g,\n"
13743 "                      int network);\n"
13744 "\n"
13745 msgstr ""
13746
13747 # type: textblock
13748 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3689
13749 msgid ""
13750 "If C<network> is true, then the network is enabled in the libguestfs "
13751 "appliance.  The default is false."
13752 msgstr ""
13753
13754 # type: textblock
13755 #: ../src/guestfs-actions.pod:5512 ../fish/guestfish-actions.pod:3692
13756 msgid ""
13757 "This affects whether commands are able to access the network (see L<guestfs"
13758 "(3)/RUNNING COMMANDS>)."
13759 msgstr ""
13760
13761 # type: textblock
13762 #: ../src/guestfs-actions.pod:5515
13763 msgid ""
13764 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13765 "effect."
13766 msgstr ""
13767
13768 # type: =head2
13769 #: ../src/guestfs-actions.pod:5522
13770 msgid "guestfs_set_path"
13771 msgstr ""
13772
13773 # type: verbatim
13774 #: ../src/guestfs-actions.pod:5524
13775 #, no-wrap
13776 msgid ""
13777 " int\n"
13778 " guestfs_set_path (guestfs_h *g,\n"
13779 "                   const char *searchpath);\n"
13780 "\n"
13781 msgstr ""
13782
13783 # type: textblock
13784 #: ../src/guestfs-actions.pod:5528 ../fish/guestfish-actions.pod:3704
13785 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13786 msgstr ""
13787
13788 # type: textblock
13789 #: ../src/guestfs-actions.pod:5530 ../fish/guestfish-actions.pod:3706
13790 msgid ""
13791 "The default is C<$libdir/guestfs> unless overridden by setting "
13792 "C<LIBGUESTFS_PATH> environment variable."
13793 msgstr ""
13794
13795 # type: textblock
13796 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3709
13797 msgid "Setting C<path> to C<NULL> restores the default path."
13798 msgstr ""
13799
13800 # type: =head2
13801 #: ../src/guestfs-actions.pod:5539
13802 msgid "guestfs_set_qemu"
13803 msgstr ""
13804
13805 # type: verbatim
13806 #: ../src/guestfs-actions.pod:5541
13807 #, no-wrap
13808 msgid ""
13809 " int\n"
13810 " guestfs_set_qemu (guestfs_h *g,\n"
13811 "                   const char *qemu);\n"
13812 "\n"
13813 msgstr ""
13814
13815 # type: textblock
13816 #: ../src/guestfs-actions.pod:5545 ../fish/guestfish-actions.pod:3717
13817 msgid "Set the qemu binary that we will use."
13818 msgstr ""
13819
13820 # type: textblock
13821 #: ../src/guestfs-actions.pod:5547 ../fish/guestfish-actions.pod:3719
13822 msgid ""
13823 "The default is chosen when the library was compiled by the configure script."
13824 msgstr ""
13825
13826 # type: textblock
13827 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:3722
13828 msgid ""
13829 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13830 "variable."
13831 msgstr ""
13832
13833 # type: textblock
13834 #: ../src/guestfs-actions.pod:5553 ../fish/guestfish-actions.pod:3725
13835 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13836 msgstr ""
13837
13838 # type: textblock
13839 #: ../src/guestfs-actions.pod:5555 ../fish/guestfish-actions.pod:3727
13840 msgid ""
13841 "Note that you should call this function as early as possible after creating "
13842 "the handle.  This is because some pre-launch operations depend on testing "
13843 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13844 "don't retest features, and so you might see inconsistent results.  Using the "
13845 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13846 "the qemu binary at the same time as the handle is created."
13847 msgstr ""
13848
13849 # type: =head2
13850 #: ../src/guestfs-actions.pod:5567
13851 msgid "guestfs_set_recovery_proc"
13852 msgstr ""
13853
13854 # type: verbatim
13855 #: ../src/guestfs-actions.pod:5569
13856 #, no-wrap
13857 msgid ""
13858 " int\n"
13859 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13860 "                            int recoveryproc);\n"
13861 "\n"
13862 msgstr ""
13863
13864 # type: textblock
13865 #: ../src/guestfs-actions.pod:5573
13866 msgid ""
13867 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13868 "not create a recovery process.  The purpose of the recovery process is to "
13869 "stop runaway qemu processes in the case where the main program aborts "
13870 "abruptly."
13871 msgstr ""
13872
13873 # type: textblock
13874 #: ../src/guestfs-actions.pod:5578
13875 msgid ""
13876 "This only has any effect if called before C<guestfs_launch>, and the default "
13877 "is true."
13878 msgstr ""
13879
13880 # type: textblock
13881 #: ../src/guestfs-actions.pod:5581 ../fish/guestfish-actions.pod:3749
13882 msgid ""
13883 "About the only time when you would want to disable this is if the main "
13884 "process will fork itself into the background (\"daemonize\" itself).  In "
13885 "this case the recovery process thinks that the main program has disappeared "
13886 "and so kills qemu, which is not very helpful."
13887 msgstr ""
13888
13889 # type: =head2
13890 #: ../src/guestfs-actions.pod:5591
13891 msgid "guestfs_set_selinux"
13892 msgstr ""
13893
13894 # type: verbatim
13895 #: ../src/guestfs-actions.pod:5593
13896 #, no-wrap
13897 msgid ""
13898 " int\n"
13899 " guestfs_set_selinux (guestfs_h *g,\n"
13900 "                      int selinux);\n"
13901 "\n"
13902 msgstr ""
13903
13904 # type: textblock
13905 #: ../src/guestfs-actions.pod:5597 ../fish/guestfish-actions.pod:3761
13906 msgid ""
13907 "This sets the selinux flag that is passed to the appliance at boot time.  "
13908 "The default is C<selinux=0> (disabled)."
13909 msgstr ""
13910
13911 # type: textblock
13912 #: ../src/guestfs-actions.pod:5600 ../fish/guestfish-actions.pod:3764
13913 msgid ""
13914 "Note that if SELinux is enabled, it is always in Permissive mode "
13915 "(C<enforcing=0>)."
13916 msgstr ""
13917
13918 # type: =head2
13919 #: ../src/guestfs-actions.pod:5610
13920 msgid "guestfs_set_trace"
13921 msgstr ""
13922
13923 # type: verbatim
13924 #: ../src/guestfs-actions.pod:5612
13925 #, no-wrap
13926 msgid ""
13927 " int\n"
13928 " guestfs_set_trace (guestfs_h *g,\n"
13929 "                    int trace);\n"
13930 "\n"
13931 msgstr ""
13932
13933 # type: textblock
13934 #: ../src/guestfs-actions.pod:5616 ../fish/guestfish-actions.pod:3776
13935 msgid ""
13936 "If the command trace flag is set to 1, then commands are printed on stderr "
13937 "before they are executed in a format which is very similar to the one used "
13938 "by guestfish.  In other words, you can run a program with this enabled, and "
13939 "you will get out a script which you can feed to guestfish to perform the "
13940 "same set of actions."
13941 msgstr ""
13942
13943 # type: textblock
13944 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:3783
13945 msgid ""
13946 "If you want to trace C API calls into libguestfs (and other libraries) then "
13947 "possibly a better way is to use the external ltrace(1) command."
13948 msgstr ""
13949
13950 # type: textblock
13951 #: ../src/guestfs-actions.pod:5627 ../fish/guestfish-actions.pod:3787
13952 msgid ""
13953 "Command traces are disabled unless the environment variable "
13954 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13955 msgstr ""
13956
13957 # type: =head2
13958 #: ../src/guestfs-actions.pod:5634
13959 msgid "guestfs_set_verbose"
13960 msgstr ""
13961
13962 # type: verbatim
13963 #: ../src/guestfs-actions.pod:5636
13964 #, no-wrap
13965 msgid ""
13966 " int\n"
13967 " guestfs_set_verbose (guestfs_h *g,\n"
13968 "                      int verbose);\n"
13969 "\n"
13970 msgstr ""
13971
13972 # type: textblock
13973 #: ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:3796
13974 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13975 msgstr ""
13976
13977 # type: textblock
13978 #: ../src/guestfs-actions.pod:5642 ../fish/guestfish-actions.pod:3798
13979 msgid ""
13980 "Verbose messages are disabled unless the environment variable "
13981 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13982 msgstr ""
13983
13984 # type: =head2
13985 #: ../src/guestfs-actions.pod:5649
13986 msgid "guestfs_setcon"
13987 msgstr ""
13988
13989 # type: verbatim
13990 #: ../src/guestfs-actions.pod:5651
13991 #, no-wrap
13992 msgid ""
13993 " int\n"
13994 " guestfs_setcon (guestfs_h *g,\n"
13995 "                 const char *context);\n"
13996 "\n"
13997 msgstr ""
13998
13999 # type: textblock
14000 #: ../src/guestfs-actions.pod:5655 ../fish/guestfish-actions.pod:3805
14001 msgid ""
14002 "This sets the SELinux security context of the daemon to the string "
14003 "C<context>."
14004 msgstr ""
14005
14006 # type: textblock
14007 #: ../src/guestfs-actions.pod:5658 ../fish/guestfish-actions.pod:3808
14008 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14009 msgstr ""
14010
14011 # type: =head2
14012 #: ../src/guestfs-actions.pod:5664
14013 msgid "guestfs_setxattr"
14014 msgstr ""
14015
14016 # type: verbatim
14017 #: ../src/guestfs-actions.pod:5666
14018 #, no-wrap
14019 msgid ""
14020 " int\n"
14021 " guestfs_setxattr (guestfs_h *g,\n"
14022 "                   const char *xattr,\n"
14023 "                   const char *val,\n"
14024 "                   int vallen,\n"
14025 "                   const char *path);\n"
14026 "\n"
14027 msgstr ""
14028
14029 # type: textblock
14030 #: ../src/guestfs-actions.pod:5673 ../fish/guestfish-actions.pod:3814
14031 msgid ""
14032 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14033 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14034 msgstr ""
14035
14036 # type: textblock
14037 #: ../src/guestfs-actions.pod:5677
14038 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14039 msgstr ""
14040
14041 # type: =head2
14042 #: ../src/guestfs-actions.pod:5683
14043 msgid "guestfs_sfdisk"
14044 msgstr ""
14045
14046 # type: verbatim
14047 #: ../src/guestfs-actions.pod:5685
14048 #, no-wrap
14049 msgid ""
14050 " int\n"
14051 " guestfs_sfdisk (guestfs_h *g,\n"
14052 "                 const char *device,\n"
14053 "                 int cyls,\n"
14054 "                 int heads,\n"
14055 "                 int sectors,\n"
14056 "                 char *const *lines);\n"
14057 "\n"
14058 msgstr ""
14059
14060 # type: textblock
14061 #: ../src/guestfs-actions.pod:5693 ../fish/guestfish-actions.pod:3824
14062 msgid ""
14063 "This is a direct interface to the L<sfdisk(8)> program for creating "
14064 "partitions on block devices."
14065 msgstr ""
14066
14067 # type: textblock
14068 #: ../src/guestfs-actions.pod:5696 ../fish/guestfish-actions.pod:3827
14069 msgid "C<device> should be a block device, for example C</dev/sda>."
14070 msgstr ""
14071
14072 # type: textblock
14073 #: ../src/guestfs-actions.pod:5698 ../fish/guestfish-actions.pod:3829
14074 msgid ""
14075 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14076 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14077 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14078 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14079 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14080 "the kernel) cannot work out the right geometry and you will need to tell it."
14081 msgstr ""
14082
14083 # type: textblock
14084 #: ../src/guestfs-actions.pod:5706 ../fish/guestfish-actions.pod:3837
14085 msgid ""
14086 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14087 "refer to the L<sfdisk(8)> manpage."
14088 msgstr ""
14089
14090 # type: textblock
14091 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:3840
14092 msgid ""
14093 "To create a single partition occupying the whole disk, you would pass "
14094 "C<lines> as a single element list, when the single element being the string "
14095 "C<,> (comma)."
14096 msgstr ""
14097
14098 # type: textblock
14099 #: ../src/guestfs-actions.pod:5713
14100 msgid ""
14101 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14102 msgstr ""
14103
14104 # type: =head2
14105 #: ../src/guestfs-actions.pod:5723
14106 msgid "guestfs_sfdiskM"
14107 msgstr ""
14108
14109 # type: verbatim
14110 #: ../src/guestfs-actions.pod:5725
14111 #, no-wrap
14112 msgid ""
14113 " int\n"
14114 " guestfs_sfdiskM (guestfs_h *g,\n"
14115 "                  const char *device,\n"
14116 "                  char *const *lines);\n"
14117 "\n"
14118 msgstr ""
14119
14120 # type: textblock
14121 #: ../src/guestfs-actions.pod:5730
14122 msgid ""
14123 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14124 "partition sizes are specified in megabytes only (rounded to the nearest "
14125 "cylinder) and you don't need to specify the cyls, heads and sectors "
14126 "parameters which were rarely if ever used anyway."
14127 msgstr ""
14128
14129 # type: textblock
14130 #: ../src/guestfs-actions.pod:5736
14131 msgid ""
14132 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14133 "C<guestfs_part_disk>"
14134 msgstr ""
14135
14136 # type: =head2
14137 #: ../src/guestfs-actions.pod:5746
14138 msgid "guestfs_sfdisk_N"
14139 msgstr ""
14140
14141 # type: verbatim
14142 #: ../src/guestfs-actions.pod:5748
14143 #, no-wrap
14144 msgid ""
14145 " int\n"
14146 " guestfs_sfdisk_N (guestfs_h *g,\n"
14147 "                   const char *device,\n"
14148 "                   int partnum,\n"
14149 "                   int cyls,\n"
14150 "                   int heads,\n"
14151 "                   int sectors,\n"
14152 "                   const char *line);\n"
14153 "\n"
14154 msgstr ""
14155
14156 # type: textblock
14157 #: ../src/guestfs-actions.pod:5757 ../fish/guestfish-actions.pod:3870
14158 msgid ""
14159 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14160 "(note: C<n> counts from 1)."
14161 msgstr ""
14162
14163 # type: textblock
14164 #: ../src/guestfs-actions.pod:5760
14165 msgid ""
14166 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14167 "for the cyls/heads/sectors parameters."
14168 msgstr ""
14169
14170 # type: textblock
14171 #: ../src/guestfs-actions.pod:5763
14172 msgid "See also: C<guestfs_part_add>"
14173 msgstr ""
14174
14175 # type: =head2
14176 #: ../src/guestfs-actions.pod:5772
14177 msgid "guestfs_sfdisk_disk_geometry"
14178 msgstr ""
14179
14180 # type: verbatim
14181 #: ../src/guestfs-actions.pod:5774
14182 #, no-wrap
14183 msgid ""
14184 " char *\n"
14185 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14186 "                               const char *device);\n"
14187 "\n"
14188 msgstr ""
14189
14190 # type: textblock
14191 #: ../src/guestfs-actions.pod:5778
14192 msgid ""
14193 "This displays the disk geometry of C<device> read from the partition table.  "
14194 "Especially in the case where the underlying block device has been resized, "
14195 "this can be different from the kernel's idea of the geometry (see "
14196 "C<guestfs_sfdisk_kernel_geometry>)."
14197 msgstr ""
14198
14199 # type: textblock
14200 #: ../src/guestfs-actions.pod:5783 ../src/guestfs-actions.pod:5799
14201 #: ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
14202 msgid "The result is in human-readable format, and not designed to be parsed."
14203 msgstr ""
14204
14205 # type: =head2
14206 #: ../src/guestfs-actions.pod:5791
14207 msgid "guestfs_sfdisk_kernel_geometry"
14208 msgstr ""
14209
14210 # type: verbatim
14211 #: ../src/guestfs-actions.pod:5793
14212 #, no-wrap
14213 msgid ""
14214 " char *\n"
14215 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14216 "                                 const char *device);\n"
14217 "\n"
14218 msgstr ""
14219
14220 # type: textblock
14221 #: ../src/guestfs-actions.pod:5797 ../fish/guestfish-actions.pod:3897
14222 msgid "This displays the kernel's idea of the geometry of C<device>."
14223 msgstr ""
14224
14225 # type: =head2
14226 #: ../src/guestfs-actions.pod:5807
14227 msgid "guestfs_sfdisk_l"
14228 msgstr ""
14229
14230 # type: verbatim
14231 #: ../src/guestfs-actions.pod:5809
14232 #, no-wrap
14233 msgid ""
14234 " char *\n"
14235 " guestfs_sfdisk_l (guestfs_h *g,\n"
14236 "                   const char *device);\n"
14237 "\n"
14238 msgstr ""
14239
14240 # type: textblock
14241 #: ../src/guestfs-actions.pod:5813 ../fish/guestfish-actions.pod:3906
14242 msgid ""
14243 "This displays the partition table on C<device>, in the human-readable output "
14244 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14245 msgstr ""
14246
14247 # type: textblock
14248 #: ../src/guestfs-actions.pod:5817
14249 msgid "See also: C<guestfs_part_list>"
14250 msgstr ""
14251
14252 # type: =head2
14253 #: ../src/guestfs-actions.pod:5824
14254 msgid "guestfs_sh"
14255 msgstr ""
14256
14257 # type: verbatim
14258 #: ../src/guestfs-actions.pod:5826
14259 #, no-wrap
14260 msgid ""
14261 " char *\n"
14262 " guestfs_sh (guestfs_h *g,\n"
14263 "             const char *command);\n"
14264 "\n"
14265 msgstr ""
14266
14267 # type: textblock
14268 #: ../src/guestfs-actions.pod:5830 ../fish/guestfish-actions.pod:3916
14269 msgid ""
14270 "This call runs a command from the guest filesystem via the guest's C</bin/"
14271 "sh>."
14272 msgstr ""
14273
14274 # type: textblock
14275 #: ../src/guestfs-actions.pod:5833
14276 msgid "This is like C<guestfs_command>, but passes the command to:"
14277 msgstr ""
14278
14279 # type: verbatim
14280 #: ../src/guestfs-actions.pod:5835 ../fish/guestfish-actions.pod:3921
14281 #, no-wrap
14282 msgid ""
14283 " /bin/sh -c \"command\"\n"
14284 "\n"
14285 msgstr ""
14286
14287 # type: textblock
14288 #: ../src/guestfs-actions.pod:5837 ../fish/guestfish-actions.pod:3923
14289 msgid ""
14290 "Depending on the guest's shell, this usually results in wildcards being "
14291 "expanded, shell expressions being interpolated and so on."
14292 msgstr ""
14293
14294 # type: textblock
14295 #: ../src/guestfs-actions.pod:5841
14296 msgid "All the provisos about C<guestfs_command> apply to this call."
14297 msgstr ""
14298
14299 # type: =head2
14300 #: ../src/guestfs-actions.pod:5848
14301 msgid "guestfs_sh_lines"
14302 msgstr ""
14303
14304 # type: verbatim
14305 #: ../src/guestfs-actions.pod:5850
14306 #, no-wrap
14307 msgid ""
14308 " char **\n"
14309 " guestfs_sh_lines (guestfs_h *g,\n"
14310 "                   const char *command);\n"
14311 "\n"
14312 msgstr ""
14313
14314 # type: textblock
14315 #: ../src/guestfs-actions.pod:5854
14316 msgid ""
14317 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14318 "lines."
14319 msgstr ""
14320
14321 # type: textblock
14322 #: ../src/guestfs-actions.pod:5857
14323 msgid "See also: C<guestfs_command_lines>"
14324 msgstr ""
14325
14326 # type: =head2
14327 #: ../src/guestfs-actions.pod:5865
14328 msgid "guestfs_sleep"
14329 msgstr ""
14330
14331 # type: verbatim
14332 #: ../src/guestfs-actions.pod:5867
14333 #, no-wrap
14334 msgid ""
14335 " int\n"
14336 " guestfs_sleep (guestfs_h *g,\n"
14337 "                int secs);\n"
14338 "\n"
14339 msgstr ""
14340
14341 # type: textblock
14342 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3942
14343 msgid "Sleep for C<secs> seconds."
14344 msgstr ""
14345
14346 # type: textblock
14347 #: ../src/guestfs-actions.pod:5875
14348 msgid "(Added in 1.0.41)"
14349 msgstr ""
14350
14351 # type: =head2
14352 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-structs.pod:109
14353 msgid "guestfs_stat"
14354 msgstr ""
14355
14356 # type: verbatim
14357 #: ../src/guestfs-actions.pod:5879
14358 #, no-wrap
14359 msgid ""
14360 " struct guestfs_stat *\n"
14361 " guestfs_stat (guestfs_h *g,\n"
14362 "               const char *path);\n"
14363 "\n"
14364 msgstr ""
14365
14366 # type: textblock
14367 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3950
14368 msgid "This is the same as the C<stat(2)> system call."
14369 msgstr ""
14370
14371 # type: =head2
14372 #: ../src/guestfs-actions.pod:5893 ../src/guestfs-structs.pod:135
14373 msgid "guestfs_statvfs"
14374 msgstr ""
14375
14376 # type: verbatim
14377 #: ../src/guestfs-actions.pod:5895
14378 #, no-wrap
14379 msgid ""
14380 " struct guestfs_statvfs *\n"
14381 " guestfs_statvfs (guestfs_h *g,\n"
14382 "                  const char *path);\n"
14383 "\n"
14384 msgstr ""
14385
14386 # type: textblock
14387 #: ../src/guestfs-actions.pod:5899 ../fish/guestfish-actions.pod:3956
14388 msgid ""
14389 "Returns file system statistics for any mounted file system.  C<path> should "
14390 "be a file or directory in the mounted file system (typically it is the mount "
14391 "point itself, but it doesn't need to be)."
14392 msgstr ""
14393
14394 # type: textblock
14395 #: ../src/guestfs-actions.pod:5903 ../fish/guestfish-actions.pod:3960
14396 msgid "This is the same as the C<statvfs(2)> system call."
14397 msgstr ""
14398
14399 # type: textblock
14400 #: ../src/guestfs-actions.pod:5905
14401 msgid ""
14402 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14403 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14404 msgstr ""
14405
14406 # type: =head2
14407 #: ../src/guestfs-actions.pod:5911
14408 msgid "guestfs_strings"
14409 msgstr ""
14410
14411 # type: verbatim
14412 #: ../src/guestfs-actions.pod:5913
14413 #, no-wrap
14414 msgid ""
14415 " char **\n"
14416 " guestfs_strings (guestfs_h *g,\n"
14417 "                  const char *path);\n"
14418 "\n"
14419 msgstr ""
14420
14421 # type: textblock
14422 #: ../src/guestfs-actions.pod:5917 ../fish/guestfish-actions.pod:3966
14423 msgid ""
14424 "This runs the L<strings(1)> command on a file and returns the list of "
14425 "printable strings found."
14426 msgstr ""
14427
14428 # type: =head2
14429 #: ../src/guestfs-actions.pod:5929
14430 msgid "guestfs_strings_e"
14431 msgstr ""
14432
14433 # type: verbatim
14434 #: ../src/guestfs-actions.pod:5931
14435 #, no-wrap
14436 msgid ""
14437 " char **\n"
14438 " guestfs_strings_e (guestfs_h *g,\n"
14439 "                    const char *encoding,\n"
14440 "                    const char *path);\n"
14441 "\n"
14442 msgstr ""
14443
14444 # type: textblock
14445 #: ../src/guestfs-actions.pod:5936
14446 msgid ""
14447 "This is like the C<guestfs_strings> command, but allows you to specify the "
14448 "encoding of strings that are looked for in the source file C<path>."
14449 msgstr ""
14450
14451 # type: textblock
14452 #: ../src/guestfs-actions.pod:5940 ../fish/guestfish-actions.pod:3980
14453 msgid "Allowed encodings are:"
14454 msgstr ""
14455
14456 # type: =item
14457 #: ../src/guestfs-actions.pod:5944 ../fish/guestfish-actions.pod:3984
14458 msgid "s"
14459 msgstr ""
14460
14461 # type: textblock
14462 #: ../src/guestfs-actions.pod:5946
14463 msgid ""
14464 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14465 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14466 msgstr ""
14467
14468 # type: =item
14469 #: ../src/guestfs-actions.pod:5949 ../fish/guestfish-actions.pod:3989
14470 msgid "S"
14471 msgstr ""
14472
14473 # type: textblock
14474 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:3991
14475 msgid "Single 8-bit-byte characters."
14476 msgstr ""
14477
14478 # type: =item
14479 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:3993
14480 msgid "b"
14481 msgstr ""
14482
14483 # type: textblock
14484 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:3995
14485 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14486 msgstr ""
14487
14488 # type: =item
14489 #: ../src/guestfs-actions.pod:5958 ../fish/guestfish-actions.pod:3998
14490 msgid "l (lower case letter L)"
14491 msgstr ""
14492
14493 # type: textblock
14494 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:4000
14495 msgid ""
14496 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14497 "examining binaries in Windows guests."
14498 msgstr ""
14499
14500 # type: =item
14501 #: ../src/guestfs-actions.pod:5963 ../fish/guestfish-actions.pod:4003
14502 msgid "B"
14503 msgstr ""
14504
14505 # type: textblock
14506 #: ../src/guestfs-actions.pod:5965 ../fish/guestfish-actions.pod:4005
14507 msgid "32-bit big endian such as UCS-4BE."
14508 msgstr ""
14509
14510 # type: =item
14511 #: ../src/guestfs-actions.pod:5967 ../fish/guestfish-actions.pod:4007
14512 msgid "L"
14513 msgstr ""
14514
14515 # type: textblock
14516 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:4009
14517 msgid "32-bit little endian such as UCS-4LE."
14518 msgstr ""
14519
14520 # type: textblock
14521 #: ../src/guestfs-actions.pod:5973 ../fish/guestfish-actions.pod:4013
14522 msgid "The returned strings are transcoded to UTF-8."
14523 msgstr ""
14524
14525 # type: =head2
14526 #: ../src/guestfs-actions.pod:5984
14527 msgid "guestfs_swapoff_device"
14528 msgstr ""
14529
14530 # type: verbatim
14531 #: ../src/guestfs-actions.pod:5986
14532 #, no-wrap
14533 msgid ""
14534 " int\n"
14535 " guestfs_swapoff_device (guestfs_h *g,\n"
14536 "                         const char *device);\n"
14537 "\n"
14538 msgstr ""
14539
14540 # type: textblock
14541 #: ../src/guestfs-actions.pod:5990
14542 msgid ""
14543 "This command disables the libguestfs appliance swap device or partition "
14544 "named C<device>.  See C<guestfs_swapon_device>."
14545 msgstr ""
14546
14547 # type: =head2
14548 #: ../src/guestfs-actions.pod:5998
14549 msgid "guestfs_swapoff_file"
14550 msgstr ""
14551
14552 # type: verbatim
14553 #: ../src/guestfs-actions.pod:6000
14554 #, no-wrap
14555 msgid ""
14556 " int\n"
14557 " guestfs_swapoff_file (guestfs_h *g,\n"
14558 "                       const char *file);\n"
14559 "\n"
14560 msgstr ""
14561
14562 # type: textblock
14563 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4030
14564 msgid "This command disables the libguestfs appliance swap on file."
14565 msgstr ""
14566
14567 # type: =head2
14568 #: ../src/guestfs-actions.pod:6010
14569 msgid "guestfs_swapoff_label"
14570 msgstr ""
14571
14572 # type: verbatim
14573 #: ../src/guestfs-actions.pod:6012
14574 #, no-wrap
14575 msgid ""
14576 " int\n"
14577 " guestfs_swapoff_label (guestfs_h *g,\n"
14578 "                        const char *label);\n"
14579 "\n"
14580 msgstr ""
14581
14582 # type: textblock
14583 #: ../src/guestfs-actions.pod:6016 ../fish/guestfish-actions.pod:4036
14584 msgid ""
14585 "This command disables the libguestfs appliance swap on labeled swap "
14586 "partition."
14587 msgstr ""
14588
14589 # type: =head2
14590 #: ../src/guestfs-actions.pod:6023
14591 msgid "guestfs_swapoff_uuid"
14592 msgstr ""
14593
14594 # type: verbatim
14595 #: ../src/guestfs-actions.pod:6025
14596 #, no-wrap
14597 msgid ""
14598 " int\n"
14599 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14600 "                       const char *uuid);\n"
14601 "\n"
14602 msgstr ""
14603
14604 # type: textblock
14605 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4043
14606 msgid ""
14607 "This command disables the libguestfs appliance swap partition with the given "
14608 "UUID."
14609 msgstr ""
14610
14611 # type: =head2
14612 #: ../src/guestfs-actions.pod:6036
14613 msgid "guestfs_swapon_device"
14614 msgstr ""
14615
14616 # type: verbatim
14617 #: ../src/guestfs-actions.pod:6038
14618 #, no-wrap
14619 msgid ""
14620 " int\n"
14621 " guestfs_swapon_device (guestfs_h *g,\n"
14622 "                        const char *device);\n"
14623 "\n"
14624 msgstr ""
14625
14626 # type: textblock
14627 #: ../src/guestfs-actions.pod:6042
14628 msgid ""
14629 "This command enables the libguestfs appliance to use the swap device or "
14630 "partition named C<device>.  The increased memory is made available for all "
14631 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14632 msgstr ""
14633
14634 # type: textblock
14635 #: ../src/guestfs-actions.pod:6047 ../fish/guestfish-actions.pod:4055
14636 msgid ""
14637 "Note that you should not swap to existing guest swap partitions unless you "
14638 "know what you are doing.  They may contain hibernation information, or other "
14639 "information that the guest doesn't want you to trash.  You also risk leaking "
14640 "information about the host to the guest this way.  Instead, attach a new "
14641 "host device to the guest and swap on that."
14642 msgstr ""
14643
14644 # type: =head2
14645 #: ../src/guestfs-actions.pod:6058
14646 msgid "guestfs_swapon_file"
14647 msgstr ""
14648
14649 # type: verbatim
14650 #: ../src/guestfs-actions.pod:6060
14651 #, no-wrap
14652 msgid ""
14653 " int\n"
14654 " guestfs_swapon_file (guestfs_h *g,\n"
14655 "                      const char *file);\n"
14656 "\n"
14657 msgstr ""
14658
14659 # type: textblock
14660 #: ../src/guestfs-actions.pod:6064
14661 msgid ""
14662 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14663 "notes."
14664 msgstr ""
14665
14666 # type: =head2
14667 #: ../src/guestfs-actions.pod:6071
14668 msgid "guestfs_swapon_label"
14669 msgstr ""
14670
14671 # type: verbatim
14672 #: ../src/guestfs-actions.pod:6073
14673 #, no-wrap
14674 msgid ""
14675 " int\n"
14676 " guestfs_swapon_label (guestfs_h *g,\n"
14677 "                       const char *label);\n"
14678 "\n"
14679 msgstr ""
14680
14681 # type: textblock
14682 #: ../src/guestfs-actions.pod:6077
14683 msgid ""
14684 "This command enables swap to a labeled swap partition.  See "
14685 "C<guestfs_swapon_device> for other notes."
14686 msgstr ""
14687
14688 # type: =head2
14689 #: ../src/guestfs-actions.pod:6084
14690 msgid "guestfs_swapon_uuid"
14691 msgstr ""
14692
14693 # type: verbatim
14694 #: ../src/guestfs-actions.pod:6086
14695 #, no-wrap
14696 msgid ""
14697 " int\n"
14698 " guestfs_swapon_uuid (guestfs_h *g,\n"
14699 "                      const char *uuid);\n"
14700 "\n"
14701 msgstr ""
14702
14703 # type: textblock
14704 #: ../src/guestfs-actions.pod:6090
14705 msgid ""
14706 "This command enables swap to a swap partition with the given UUID.  See "
14707 "C<guestfs_swapon_device> for other notes."
14708 msgstr ""
14709
14710 # type: =head2
14711 #: ../src/guestfs-actions.pod:6097
14712 msgid "guestfs_sync"
14713 msgstr ""
14714
14715 # type: verbatim
14716 #: ../src/guestfs-actions.pod:6099
14717 #, no-wrap
14718 msgid ""
14719 " int\n"
14720 " guestfs_sync (guestfs_h *g);\n"
14721 "\n"
14722 msgstr ""
14723
14724 # type: textblock
14725 #: ../src/guestfs-actions.pod:6102 ../fish/guestfish-actions.pod:4087
14726 msgid ""
14727 "This syncs the disk, so that any writes are flushed through to the "
14728 "underlying disk image."
14729 msgstr ""
14730
14731 # type: textblock
14732 #: ../src/guestfs-actions.pod:6105 ../fish/guestfish-actions.pod:4090
14733 msgid ""
14734 "You should always call this if you have modified a disk image, before "
14735 "closing the handle."
14736 msgstr ""
14737
14738 # type: =head2
14739 #: ../src/guestfs-actions.pod:6112
14740 msgid "guestfs_tail"
14741 msgstr ""
14742
14743 # type: verbatim
14744 #: ../src/guestfs-actions.pod:6114
14745 #, no-wrap
14746 msgid ""
14747 " char **\n"
14748 " guestfs_tail (guestfs_h *g,\n"
14749 "               const char *path);\n"
14750 "\n"
14751 msgstr ""
14752
14753 # type: textblock
14754 #: ../src/guestfs-actions.pod:6118 ../fish/guestfish-actions.pod:4097
14755 msgid ""
14756 "This command returns up to the last 10 lines of a file as a list of strings."
14757 msgstr ""
14758
14759 # type: =head2
14760 #: ../src/guestfs-actions.pod:6130
14761 msgid "guestfs_tail_n"
14762 msgstr ""
14763
14764 # type: verbatim
14765 #: ../src/guestfs-actions.pod:6132
14766 #, no-wrap
14767 msgid ""
14768 " char **\n"
14769 " guestfs_tail_n (guestfs_h *g,\n"
14770 "                 int nrlines,\n"
14771 "                 const char *path);\n"
14772 "\n"
14773 msgstr ""
14774
14775 # type: textblock
14776 #: ../src/guestfs-actions.pod:6137 ../fish/guestfish-actions.pod:4107
14777 msgid ""
14778 "If the parameter C<nrlines> is a positive number, this returns the last "
14779 "C<nrlines> lines of the file C<path>."
14780 msgstr ""
14781
14782 # type: textblock
14783 #: ../src/guestfs-actions.pod:6140 ../fish/guestfish-actions.pod:4110
14784 msgid ""
14785 "If the parameter C<nrlines> is a negative number, this returns lines from "
14786 "the file C<path>, starting with the C<-nrlines>th line."
14787 msgstr ""
14788
14789 # type: =head2
14790 #: ../src/guestfs-actions.pod:6154
14791 msgid "guestfs_tar_in"
14792 msgstr ""
14793
14794 # type: verbatim
14795 #: ../src/guestfs-actions.pod:6156
14796 #, no-wrap
14797 msgid ""
14798 " int\n"
14799 " guestfs_tar_in (guestfs_h *g,\n"
14800 "                 const char *tarfile,\n"
14801 "                 const char *directory);\n"
14802 "\n"
14803 msgstr ""
14804
14805 # type: textblock
14806 #: ../src/guestfs-actions.pod:6161 ../fish/guestfish-actions.pod:4122
14807 msgid ""
14808 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14809 "tar file) into C<directory>."
14810 msgstr ""
14811
14812 # type: textblock
14813 #: ../src/guestfs-actions.pod:6164
14814 msgid ""
14815 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14816 msgstr ""
14817
14818 # type: textblock
14819 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6186
14820 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6218
14821 msgid "(Added in 1.0.3)"
14822 msgstr ""
14823
14824 # type: =head2
14825 #: ../src/guestfs-actions.pod:6171
14826 msgid "guestfs_tar_out"
14827 msgstr ""
14828
14829 # type: verbatim
14830 #: ../src/guestfs-actions.pod:6173
14831 #, no-wrap
14832 msgid ""
14833 " int\n"
14834 " guestfs_tar_out (guestfs_h *g,\n"
14835 "                  const char *directory,\n"
14836 "                  const char *tarfile);\n"
14837 "\n"
14838 msgstr ""
14839
14840 # type: textblock
14841 #: ../src/guestfs-actions.pod:6178 ../fish/guestfish-actions.pod:4134
14842 msgid ""
14843 "This command packs the contents of C<directory> and downloads it to local "
14844 "file C<tarfile>."
14845 msgstr ""
14846
14847 # type: textblock
14848 #: ../src/guestfs-actions.pod:6181
14849 msgid ""
14850 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14851 "C<guestfs_txz_out>."
14852 msgstr ""
14853
14854 # type: =head2
14855 #: ../src/guestfs-actions.pod:6188
14856 msgid "guestfs_tgz_in"
14857 msgstr ""
14858
14859 # type: verbatim
14860 #: ../src/guestfs-actions.pod:6190
14861 #, no-wrap
14862 msgid ""
14863 " int\n"
14864 " guestfs_tgz_in (guestfs_h *g,\n"
14865 "                 const char *tarball,\n"
14866 "                 const char *directory);\n"
14867 "\n"
14868 msgstr ""
14869
14870 # type: textblock
14871 #: ../src/guestfs-actions.pod:6195 ../fish/guestfish-actions.pod:4146
14872 msgid ""
14873 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14874 "tar file) into C<directory>."
14875 msgstr ""
14876
14877 # type: textblock
14878 #: ../src/guestfs-actions.pod:6198
14879 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14880 msgstr ""
14881
14882 # type: =head2
14883 #: ../src/guestfs-actions.pod:6204
14884 msgid "guestfs_tgz_out"
14885 msgstr ""
14886
14887 # type: verbatim
14888 #: ../src/guestfs-actions.pod:6206
14889 #, no-wrap
14890 msgid ""
14891 " int\n"
14892 " guestfs_tgz_out (guestfs_h *g,\n"
14893 "                  const char *directory,\n"
14894 "                  const char *tarball);\n"
14895 "\n"
14896 msgstr ""
14897
14898 # type: textblock
14899 #: ../src/guestfs-actions.pod:6211 ../fish/guestfish-actions.pod:4157
14900 msgid ""
14901 "This command packs the contents of C<directory> and downloads it to local "
14902 "file C<tarball>."
14903 msgstr ""
14904
14905 # type: textblock
14906 #: ../src/guestfs-actions.pod:6214
14907 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14908 msgstr ""
14909
14910 # type: =head2
14911 #: ../src/guestfs-actions.pod:6220
14912 msgid "guestfs_touch"
14913 msgstr ""
14914
14915 # type: verbatim
14916 #: ../src/guestfs-actions.pod:6222
14917 #, no-wrap
14918 msgid ""
14919 " int\n"
14920 " guestfs_touch (guestfs_h *g,\n"
14921 "                const char *path);\n"
14922 "\n"
14923 msgstr ""
14924
14925 # type: textblock
14926 #: ../src/guestfs-actions.pod:6226 ../fish/guestfish-actions.pod:4168
14927 msgid ""
14928 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14929 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14930 "length file."
14931 msgstr ""
14932
14933 # type: textblock
14934 #: ../src/guestfs-actions.pod:6230 ../fish/guestfish-actions.pod:4172
14935 msgid ""
14936 "This command only works on regular files, and will fail on other file types "
14937 "such as directories, symbolic links, block special etc."
14938 msgstr ""
14939
14940 # type: =head2
14941 #: ../src/guestfs-actions.pod:6237
14942 msgid "guestfs_truncate"
14943 msgstr ""
14944
14945 # type: verbatim
14946 #: ../src/guestfs-actions.pod:6239
14947 #, no-wrap
14948 msgid ""
14949 " int\n"
14950 " guestfs_truncate (guestfs_h *g,\n"
14951 "                   const char *path);\n"
14952 "\n"
14953 msgstr ""
14954
14955 # type: textblock
14956 #: ../src/guestfs-actions.pod:6243 ../fish/guestfish-actions.pod:4179
14957 msgid ""
14958 "This command truncates C<path> to a zero-length file.  The file must exist "
14959 "already."
14960 msgstr ""
14961
14962 # type: =head2
14963 #: ../src/guestfs-actions.pod:6250
14964 msgid "guestfs_truncate_size"
14965 msgstr ""
14966
14967 # type: verbatim
14968 #: ../src/guestfs-actions.pod:6252
14969 #, no-wrap
14970 msgid ""
14971 " int\n"
14972 " guestfs_truncate_size (guestfs_h *g,\n"
14973 "                        const char *path,\n"
14974 "                        int64_t size);\n"
14975 "\n"
14976 msgstr ""
14977
14978 # type: textblock
14979 #: ../src/guestfs-actions.pod:6257 ../fish/guestfish-actions.pod:4186
14980 msgid ""
14981 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14982 "already."
14983 msgstr ""
14984
14985 # type: textblock
14986 #: ../src/guestfs-actions.pod:6260
14987 msgid ""
14988 "If the current file size is less than C<size> then the file is extended to "
14989 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14990 "blocks are not allocated for the file until you write to it).  To create a "
14991 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14992 msgstr ""
14993
14994 # type: =head2
14995 #: ../src/guestfs-actions.pod:6270
14996 msgid "guestfs_tune2fs_l"
14997 msgstr ""
14998
14999 # type: verbatim
15000 #: ../src/guestfs-actions.pod:6272
15001 #, no-wrap
15002 msgid ""
15003 " char **\n"
15004 " guestfs_tune2fs_l (guestfs_h *g,\n"
15005 "                    const char *device);\n"
15006 "\n"
15007 msgstr ""
15008
15009 # type: textblock
15010 #: ../src/guestfs-actions.pod:6276 ../fish/guestfish-actions.pod:4199
15011 msgid ""
15012 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15013 "C<device>."
15014 msgstr ""
15015
15016 # type: textblock
15017 #: ../src/guestfs-actions.pod:6279 ../fish/guestfish-actions.pod:4202
15018 msgid ""
15019 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15020 "for more details.  The list of fields returned isn't clearly defined, and "
15021 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15022 "and the filesystem itself."
15023 msgstr ""
15024
15025 # type: =head2
15026 #: ../src/guestfs-actions.pod:6292
15027 msgid "guestfs_txz_in"
15028 msgstr ""
15029
15030 # type: verbatim
15031 #: ../src/guestfs-actions.pod:6294
15032 #, no-wrap
15033 msgid ""
15034 " int\n"
15035 " guestfs_txz_in (guestfs_h *g,\n"
15036 "                 const char *tarball,\n"
15037 "                 const char *directory);\n"
15038 "\n"
15039 msgstr ""
15040
15041 # type: textblock
15042 #: ../src/guestfs-actions.pod:6299 ../fish/guestfish-actions.pod:4211
15043 msgid ""
15044 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15045 "tar file) into C<directory>."
15046 msgstr ""
15047
15048 # type: =head2
15049 #: ../src/guestfs-actions.pod:6306
15050 msgid "guestfs_txz_out"
15051 msgstr ""
15052
15053 # type: verbatim
15054 #: ../src/guestfs-actions.pod:6308
15055 #, no-wrap
15056 msgid ""
15057 " int\n"
15058 " guestfs_txz_out (guestfs_h *g,\n"
15059 "                  const char *directory,\n"
15060 "                  const char *tarball);\n"
15061 "\n"
15062 msgstr ""
15063
15064 # type: textblock
15065 #: ../src/guestfs-actions.pod:6313 ../fish/guestfish-actions.pod:4220
15066 msgid ""
15067 "This command packs the contents of C<directory> and downloads it to local "
15068 "file C<tarball> (as an xz compressed tar archive)."
15069 msgstr ""
15070
15071 # type: =head2
15072 #: ../src/guestfs-actions.pod:6320
15073 msgid "guestfs_umask"
15074 msgstr ""
15075
15076 # type: verbatim
15077 #: ../src/guestfs-actions.pod:6322
15078 #, no-wrap
15079 msgid ""
15080 " int\n"
15081 " guestfs_umask (guestfs_h *g,\n"
15082 "                int mask);\n"
15083 "\n"
15084 msgstr ""
15085
15086 # type: textblock
15087 #: ../src/guestfs-actions.pod:6326 ../fish/guestfish-actions.pod:4229
15088 msgid ""
15089 "This function sets the mask used for creating new files and device nodes to "
15090 "C<mask & 0777>."
15091 msgstr ""
15092
15093 # type: textblock
15094 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4232
15095 msgid ""
15096 "Typical umask values would be C<022> which creates new files with "
15097 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15098 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15099 msgstr ""
15100
15101 # type: textblock
15102 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4237
15103 msgid ""
15104 "The default umask is C<022>.  This is important because it means that "
15105 "directories and device nodes will be created with C<0644> or C<0755> mode "
15106 "even if you specify C<0777>."
15107 msgstr ""
15108
15109 # type: textblock
15110 #: ../src/guestfs-actions.pod:6338
15111 msgid ""
15112 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15113 "C<guestfs_mkdir>."
15114 msgstr ""
15115
15116 # type: textblock
15117 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4244
15118 msgid "This call returns the previous umask."
15119 msgstr ""
15120
15121 # type: =head2
15122 #: ../src/guestfs-actions.pod:6347
15123 msgid "guestfs_umount"
15124 msgstr ""
15125
15126 # type: verbatim
15127 #: ../src/guestfs-actions.pod:6349
15128 #, no-wrap
15129 msgid ""
15130 " int\n"
15131 " guestfs_umount (guestfs_h *g,\n"
15132 "                 const char *pathordevice);\n"
15133 "\n"
15134 msgstr ""
15135
15136 # type: textblock
15137 #: ../src/guestfs-actions.pod:6353 ../fish/guestfish-actions.pod:4252
15138 msgid ""
15139 "This unmounts the given filesystem.  The filesystem may be specified either "
15140 "by its mountpoint (path) or the device which contains the filesystem."
15141 msgstr ""
15142
15143 # type: =head2
15144 #: ../src/guestfs-actions.pod:6361
15145 msgid "guestfs_umount_all"
15146 msgstr ""
15147
15148 # type: verbatim
15149 #: ../src/guestfs-actions.pod:6363
15150 #, no-wrap
15151 msgid ""
15152 " int\n"
15153 " guestfs_umount_all (guestfs_h *g);\n"
15154 "\n"
15155 msgstr ""
15156
15157 # type: textblock
15158 #: ../src/guestfs-actions.pod:6366 ../fish/guestfish-actions.pod:4262
15159 msgid "This unmounts all mounted filesystems."
15160 msgstr ""
15161
15162 # type: textblock
15163 #: ../src/guestfs-actions.pod:6368 ../fish/guestfish-actions.pod:4264
15164 msgid "Some internal mounts are not unmounted by this call."
15165 msgstr ""
15166
15167 # type: =head2
15168 #: ../src/guestfs-actions.pod:6374
15169 msgid "guestfs_upload"
15170 msgstr ""
15171
15172 # type: verbatim
15173 #: ../src/guestfs-actions.pod:6376
15174 #, no-wrap
15175 msgid ""
15176 " int\n"
15177 " guestfs_upload (guestfs_h *g,\n"
15178 "                 const char *filename,\n"
15179 "                 const char *remotefilename);\n"
15180 "\n"
15181 msgstr ""
15182
15183 # type: textblock
15184 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6400
15185 #: ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
15186 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15187 msgstr ""
15188
15189 # type: textblock
15190 #: ../src/guestfs-actions.pod:6386
15191 msgid "See also C<guestfs_download>."
15192 msgstr ""
15193
15194 # type: =head2
15195 #: ../src/guestfs-actions.pod:6392
15196 msgid "guestfs_upload_offset"
15197 msgstr ""
15198
15199 # type: verbatim
15200 #: ../src/guestfs-actions.pod:6394
15201 #, no-wrap
15202 msgid ""
15203 " int\n"
15204 " guestfs_upload_offset (guestfs_h *g,\n"
15205 "                        const char *filename,\n"
15206 "                        const char *remotefilename,\n"
15207 "                        int64_t offset);\n"
15208 "\n"
15209 msgstr ""
15210
15211 # type: textblock
15212 #: ../src/guestfs-actions.pod:6403 ../fish/guestfish-actions.pod:4286
15213 msgid ""
15214 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15215 "The intention is to overwrite parts of existing files or devices, although "
15216 "if a non-existant file is specified then it is created with a \"hole\" "
15217 "before C<offset>.  The size of the data written is implicit in the size of "
15218 "the source C<filename>."
15219 msgstr ""
15220
15221 # type: textblock
15222 #: ../src/guestfs-actions.pod:6410
15223 msgid ""
15224 "Note that there is no limit on the amount of data that can be uploaded with "
15225 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15226 "full amount unless an error occurs."
15227 msgstr ""
15228
15229 # type: textblock
15230 #: ../src/guestfs-actions.pod:6415
15231 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15232 msgstr ""
15233
15234 # type: =head2
15235 #: ../src/guestfs-actions.pod:6421
15236 msgid "guestfs_utimens"
15237 msgstr ""
15238
15239 # type: verbatim
15240 #: ../src/guestfs-actions.pod:6423
15241 #, no-wrap
15242 msgid ""
15243 " int\n"
15244 " guestfs_utimens (guestfs_h *g,\n"
15245 "                  const char *path,\n"
15246 "                  int64_t atsecs,\n"
15247 "                  int64_t atnsecs,\n"
15248 "                  int64_t mtsecs,\n"
15249 "                  int64_t mtnsecs);\n"
15250 "\n"
15251 msgstr ""
15252
15253 # type: textblock
15254 #: ../src/guestfs-actions.pod:6431 ../fish/guestfish-actions.pod:4306
15255 msgid "This command sets the timestamps of a file with nanosecond precision."
15256 msgstr ""
15257
15258 # type: textblock
15259 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4309
15260 msgid ""
15261 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15262 "from the epoch."
15263 msgstr ""
15264
15265 # type: textblock
15266 #: ../src/guestfs-actions.pod:6437 ../fish/guestfish-actions.pod:4312
15267 msgid ""
15268 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15269 "nanoseconds from the epoch."
15270 msgstr ""
15271
15272 # type: textblock
15273 #: ../src/guestfs-actions.pod:6440 ../fish/guestfish-actions.pod:4315
15274 msgid ""
15275 "If the C<*nsecs> field contains the special value C<-1> then the "
15276 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15277 "ignored in this case)."
15278 msgstr ""
15279
15280 # type: textblock
15281 #: ../src/guestfs-actions.pod:6444 ../fish/guestfish-actions.pod:4319
15282 msgid ""
15283 "If the C<*nsecs> field contains the special value C<-2> then the "
15284 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15285 "in this case)."
15286 msgstr ""
15287
15288 # type: =head2
15289 #: ../src/guestfs-actions.pod:6452 ../src/guestfs-structs.pod:175
15290 msgid "guestfs_version"
15291 msgstr ""
15292
15293 # type: verbatim
15294 #: ../src/guestfs-actions.pod:6454
15295 #, no-wrap
15296 msgid ""
15297 " struct guestfs_version *\n"
15298 " guestfs_version (guestfs_h *g);\n"
15299 "\n"
15300 msgstr ""
15301
15302 # type: textblock
15303 #: ../src/guestfs-actions.pod:6457 ../fish/guestfish-actions.pod:4327
15304 msgid ""
15305 "Return the libguestfs version number that the program is linked against."
15306 msgstr ""
15307
15308 # type: textblock
15309 #: ../src/guestfs-actions.pod:6460 ../fish/guestfish-actions.pod:4330
15310 msgid ""
15311 "Note that because of dynamic linking this is not necessarily the version of "
15312 "libguestfs that you compiled against.  You can compile the program, and then "
15313 "at runtime dynamically link against a completely different C<libguestfs.so> "
15314 "library."
15315 msgstr ""
15316
15317 # type: textblock
15318 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4335
15319 msgid ""
15320 "This call was added in version C<1.0.58>.  In previous versions of "
15321 "libguestfs there was no way to get the version number.  From C code you can "
15322 "use dynamic linker functions to find out if this symbol exists (if it "
15323 "doesn't, then it's an earlier version)."
15324 msgstr ""
15325
15326 # type: textblock
15327 #: ../src/guestfs-actions.pod:6471 ../fish/guestfish-actions.pod:4341
15328 msgid ""
15329 "The call returns a structure with four elements.  The first three (C<major>, "
15330 "C<minor> and C<release>) are numbers and correspond to the usual version "
15331 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15332 "but may be used for distro-specific information."
15333 msgstr ""
15334
15335 # type: textblock
15336 #: ../src/guestfs-actions.pod:6477 ../fish/guestfish-actions.pod:4347
15337 msgid ""
15338 "To construct the original version string: C<$major.$minor.$release$extra>"
15339 msgstr ""
15340
15341 # type: textblock
15342 #: ../src/guestfs-actions.pod:6480 ../fish/guestfish-actions.pod:4350
15343 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15344 msgstr ""
15345
15346 # type: textblock
15347 #: ../src/guestfs-actions.pod:6482
15348 msgid ""
15349 "I<Note:> Don't use this call to test for availability of features.  In "
15350 "enterprise distributions we backport features from later versions into "
15351 "earlier versions, making this an unreliable way to test for features.  Use "
15352 "C<guestfs_available> instead."
15353 msgstr ""
15354
15355 # type: textblock
15356 #: ../src/guestfs-actions.pod:6488
15357 msgid ""
15358 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15359 "error.  I<The caller must call C<guestfs_free_version> after use>."
15360 msgstr ""
15361
15362 # type: textblock
15363 #: ../src/guestfs-actions.pod:6492
15364 msgid "(Added in 1.0.58)"
15365 msgstr ""
15366
15367 # type: =head2
15368 #: ../src/guestfs-actions.pod:6494
15369 msgid "guestfs_vfs_label"
15370 msgstr ""
15371
15372 # type: verbatim
15373 #: ../src/guestfs-actions.pod:6496
15374 #, no-wrap
15375 msgid ""
15376 " char *\n"
15377 " guestfs_vfs_label (guestfs_h *g,\n"
15378 "                    const char *device);\n"
15379 "\n"
15380 msgstr ""
15381
15382 # type: textblock
15383 #: ../src/guestfs-actions.pod:6500 ../fish/guestfish-actions.pod:4362
15384 msgid "This returns the filesystem label of the filesystem on C<device>."
15385 msgstr ""
15386
15387 # type: textblock
15388 #: ../src/guestfs-actions.pod:6503 ../fish/guestfish-actions.pod:4365
15389 msgid "If the filesystem is unlabeled, this returns the empty string."
15390 msgstr ""
15391
15392 # type: textblock
15393 #: ../src/guestfs-actions.pod:6505
15394 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15395 msgstr ""
15396
15397 # type: textblock
15398 #: ../src/guestfs-actions.pod:6510 ../src/guestfs-actions.pod:6547
15399 msgid "(Added in 1.3.18)"
15400 msgstr ""
15401
15402 # type: =head2
15403 #: ../src/guestfs-actions.pod:6512
15404 msgid "guestfs_vfs_type"
15405 msgstr ""
15406
15407 # type: verbatim
15408 #: ../src/guestfs-actions.pod:6514
15409 #, no-wrap
15410 msgid ""
15411 " char *\n"
15412 " guestfs_vfs_type (guestfs_h *g,\n"
15413 "                   const char *device);\n"
15414 "\n"
15415 msgstr ""
15416
15417 # type: textblock
15418 #: ../src/guestfs-actions.pod:6518 ../fish/guestfish-actions.pod:4373
15419 msgid ""
15420 "This command gets the filesystem type corresponding to the filesystem on "
15421 "C<device>."
15422 msgstr ""
15423
15424 # type: textblock
15425 #: ../src/guestfs-actions.pod:6521 ../fish/guestfish-actions.pod:4376
15426 msgid ""
15427 "For most filesystems, the result is the name of the Linux VFS module which "
15428 "would be used to mount this filesystem if you mounted it without specifying "
15429 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15430 msgstr ""
15431
15432 # type: =head2
15433 #: ../src/guestfs-actions.pod:6531
15434 msgid "guestfs_vfs_uuid"
15435 msgstr ""
15436
15437 # type: verbatim
15438 #: ../src/guestfs-actions.pod:6533
15439 #, no-wrap
15440 msgid ""
15441 " char *\n"
15442 " guestfs_vfs_uuid (guestfs_h *g,\n"
15443 "                   const char *device);\n"
15444 "\n"
15445 msgstr ""
15446
15447 # type: textblock
15448 #: ../src/guestfs-actions.pod:6537 ../fish/guestfish-actions.pod:4385
15449 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15450 msgstr ""
15451
15452 # type: textblock
15453 #: ../src/guestfs-actions.pod:6540 ../fish/guestfish-actions.pod:4388
15454 msgid "If the filesystem does not have a UUID, this returns the empty string."
15455 msgstr ""
15456
15457 # type: textblock
15458 #: ../src/guestfs-actions.pod:6542
15459 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15460 msgstr ""
15461
15462 # type: =head2
15463 #: ../src/guestfs-actions.pod:6549
15464 msgid "guestfs_vg_activate"
15465 msgstr ""
15466
15467 # type: verbatim
15468 #: ../src/guestfs-actions.pod:6551
15469 #, no-wrap
15470 msgid ""
15471 " int\n"
15472 " guestfs_vg_activate (guestfs_h *g,\n"
15473 "                      int activate,\n"
15474 "                      char *const *volgroups);\n"
15475 "\n"
15476 msgstr ""
15477
15478 # type: textblock
15479 #: ../src/guestfs-actions.pod:6556 ../fish/guestfish-actions.pod:4396
15480 msgid ""
15481 "This command activates or (if C<activate> is false) deactivates all logical "
15482 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15483 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15484 "deactivated, then those devices disappear."
15485 msgstr ""
15486
15487 # type: textblock
15488 #: ../src/guestfs-actions.pod:6562 ../fish/guestfish-actions.pod:4402
15489 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15490 msgstr ""
15491
15492 # type: textblock
15493 #: ../src/guestfs-actions.pod:6564 ../fish/guestfish-actions.pod:4404
15494 msgid ""
15495 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15496 "activated or deactivated."
15497 msgstr ""
15498
15499 # type: =head2
15500 #: ../src/guestfs-actions.pod:6571
15501 msgid "guestfs_vg_activate_all"
15502 msgstr ""
15503
15504 # type: verbatim
15505 #: ../src/guestfs-actions.pod:6573
15506 #, no-wrap
15507 msgid ""
15508 " int\n"
15509 " guestfs_vg_activate_all (guestfs_h *g,\n"
15510 "                          int activate);\n"
15511 "\n"
15512 msgstr ""
15513
15514 # type: textblock
15515 #: ../src/guestfs-actions.pod:6577 ../fish/guestfish-actions.pod:4411
15516 msgid ""
15517 "This command activates or (if C<activate> is false) deactivates all logical "
15518 "volumes in all volume groups.  If activated, then they are made known to the "
15519 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15520 "those devices disappear."
15521 msgstr ""
15522
15523 # type: textblock
15524 #: ../src/guestfs-actions.pod:6583 ../fish/guestfish-actions.pod:4417
15525 msgid "This command is the same as running C<vgchange -a y|n>"
15526 msgstr ""
15527
15528 # type: =head2
15529 #: ../src/guestfs-actions.pod:6589
15530 msgid "guestfs_vgcreate"
15531 msgstr ""
15532
15533 # type: verbatim
15534 #: ../src/guestfs-actions.pod:6591
15535 #, no-wrap
15536 msgid ""
15537 " int\n"
15538 " guestfs_vgcreate (guestfs_h *g,\n"
15539 "                   const char *volgroup,\n"
15540 "                   char *const *physvols);\n"
15541 "\n"
15542 msgstr ""
15543
15544 # type: textblock
15545 #: ../src/guestfs-actions.pod:6596 ../fish/guestfish-actions.pod:4423
15546 msgid ""
15547 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15548 "of physical volumes C<physvols>."
15549 msgstr ""
15550
15551 # type: =head2
15552 #: ../src/guestfs-actions.pod:6603
15553 msgid "guestfs_vglvuuids"
15554 msgstr ""
15555
15556 # type: verbatim
15557 #: ../src/guestfs-actions.pod:6605
15558 #, no-wrap
15559 msgid ""
15560 " char **\n"
15561 " guestfs_vglvuuids (guestfs_h *g,\n"
15562 "                    const char *vgname);\n"
15563 "\n"
15564 msgstr ""
15565
15566 # type: textblock
15567 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4430
15568 msgid ""
15569 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15570 "volumes created in this volume group."
15571 msgstr ""
15572
15573 # type: textblock
15574 #: ../src/guestfs-actions.pod:6612
15575 msgid ""
15576 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15577 "associate logical volumes and volume groups."
15578 msgstr ""
15579
15580 # type: textblock
15581 #: ../src/guestfs-actions.pod:6615
15582 msgid "See also C<guestfs_vgpvuuids>."
15583 msgstr ""
15584
15585 # type: =head2
15586 #: ../src/guestfs-actions.pod:6623
15587 msgid "guestfs_vgpvuuids"
15588 msgstr ""
15589
15590 # type: verbatim
15591 #: ../src/guestfs-actions.pod:6625
15592 #, no-wrap
15593 msgid ""
15594 " char **\n"
15595 " guestfs_vgpvuuids (guestfs_h *g,\n"
15596 "                    const char *vgname);\n"
15597 "\n"
15598 msgstr ""
15599
15600 # type: textblock
15601 #: ../src/guestfs-actions.pod:6629 ../fish/guestfish-actions.pod:4442
15602 msgid ""
15603 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15604 "volumes that this volume group resides on."
15605 msgstr ""
15606
15607 # type: textblock
15608 #: ../src/guestfs-actions.pod:6632
15609 msgid ""
15610 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15611 "associate physical volumes and volume groups."
15612 msgstr ""
15613
15614 # type: textblock
15615 #: ../src/guestfs-actions.pod:6635
15616 msgid "See also C<guestfs_vglvuuids>."
15617 msgstr ""
15618
15619 # type: =head2
15620 #: ../src/guestfs-actions.pod:6643
15621 msgid "guestfs_vgremove"
15622 msgstr ""
15623
15624 # type: verbatim
15625 #: ../src/guestfs-actions.pod:6645
15626 #, no-wrap
15627 msgid ""
15628 " int\n"
15629 " guestfs_vgremove (guestfs_h *g,\n"
15630 "                   const char *vgname);\n"
15631 "\n"
15632 msgstr ""
15633
15634 # type: textblock
15635 #: ../src/guestfs-actions.pod:6649 ../fish/guestfish-actions.pod:4454
15636 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15637 msgstr ""
15638
15639 # type: textblock
15640 #: ../src/guestfs-actions.pod:6651 ../fish/guestfish-actions.pod:4456
15641 msgid ""
15642 "This also forcibly removes all logical volumes in the volume group (if any)."
15643 msgstr ""
15644
15645 # type: =head2
15646 #: ../src/guestfs-actions.pod:6658
15647 msgid "guestfs_vgrename"
15648 msgstr ""
15649
15650 # type: verbatim
15651 #: ../src/guestfs-actions.pod:6660
15652 #, no-wrap
15653 msgid ""
15654 " int\n"
15655 " guestfs_vgrename (guestfs_h *g,\n"
15656 "                   const char *volgroup,\n"
15657 "                   const char *newvolgroup);\n"
15658 "\n"
15659 msgstr ""
15660
15661 # type: textblock
15662 #: ../src/guestfs-actions.pod:6665 ../fish/guestfish-actions.pod:4463
15663 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15664 msgstr ""
15665
15666 # type: =head2
15667 #: ../src/guestfs-actions.pod:6671
15668 msgid "guestfs_vgs"
15669 msgstr ""
15670
15671 # type: verbatim
15672 #: ../src/guestfs-actions.pod:6673
15673 #, no-wrap
15674 msgid ""
15675 " char **\n"
15676 " guestfs_vgs (guestfs_h *g);\n"
15677 "\n"
15678 msgstr ""
15679
15680 # type: textblock
15681 #: ../src/guestfs-actions.pod:6676 ../fish/guestfish-actions.pod:4469
15682 msgid ""
15683 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15684 "> command."
15685 msgstr ""
15686
15687 # type: textblock
15688 #: ../src/guestfs-actions.pod:6679 ../fish/guestfish-actions.pod:4472
15689 msgid ""
15690 "This returns a list of just the volume group names that were detected (eg. "
15691 "C<VolGroup00>)."
15692 msgstr ""
15693
15694 # type: textblock
15695 #: ../src/guestfs-actions.pod:6682
15696 msgid "See also C<guestfs_vgs_full>."
15697 msgstr ""
15698
15699 # type: =head2
15700 #: ../src/guestfs-actions.pod:6690
15701 msgid "guestfs_vgs_full"
15702 msgstr ""
15703
15704 # type: verbatim
15705 #: ../src/guestfs-actions.pod:6692
15706 #, no-wrap
15707 msgid ""
15708 " struct guestfs_lvm_vg_list *\n"
15709 " guestfs_vgs_full (guestfs_h *g);\n"
15710 "\n"
15711 msgstr ""
15712
15713 # type: textblock
15714 #: ../src/guestfs-actions.pod:6695 ../fish/guestfish-actions.pod:4481
15715 msgid ""
15716 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15717 "> command.  The \"full\" version includes all fields."
15718 msgstr ""
15719
15720 # type: textblock
15721 #: ../src/guestfs-actions.pod:6698
15722 msgid ""
15723 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15724 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15725 msgstr ""
15726
15727 # type: =head2
15728 #: ../src/guestfs-actions.pod:6704
15729 msgid "guestfs_vgscan"
15730 msgstr ""
15731
15732 # type: verbatim
15733 #: ../src/guestfs-actions.pod:6706
15734 #, no-wrap
15735 msgid ""
15736 " int\n"
15737 " guestfs_vgscan (guestfs_h *g);\n"
15738 "\n"
15739 msgstr ""
15740
15741 # type: textblock
15742 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4488
15743 msgid ""
15744 "This rescans all block devices and rebuilds the list of LVM physical "
15745 "volumes, volume groups and logical volumes."
15746 msgstr ""
15747
15748 # type: =head2
15749 #: ../src/guestfs-actions.pod:6716
15750 msgid "guestfs_vguuid"
15751 msgstr ""
15752
15753 # type: verbatim
15754 #: ../src/guestfs-actions.pod:6718
15755 #, no-wrap
15756 msgid ""
15757 " char *\n"
15758 " guestfs_vguuid (guestfs_h *g,\n"
15759 "                 const char *vgname);\n"
15760 "\n"
15761 msgstr ""
15762
15763 # type: textblock
15764 #: ../src/guestfs-actions.pod:6722 ../fish/guestfish-actions.pod:4495
15765 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15766 msgstr ""
15767
15768 # type: =head2
15769 #: ../src/guestfs-actions.pod:6729
15770 msgid "guestfs_wait_ready"
15771 msgstr ""
15772
15773 # type: verbatim
15774 #: ../src/guestfs-actions.pod:6731
15775 #, no-wrap
15776 msgid ""
15777 " int\n"
15778 " guestfs_wait_ready (guestfs_h *g);\n"
15779 "\n"
15780 msgstr ""
15781
15782 # type: textblock
15783 #: ../src/guestfs-actions.pod:6734
15784 msgid "This function is a no op."
15785 msgstr ""
15786
15787 # type: textblock
15788 #: ../src/guestfs-actions.pod:6736
15789 msgid ""
15790 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15791 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15792 "is no longer necessary because C<guestfs_launch> now does the waiting."
15793 msgstr ""
15794
15795 # type: textblock
15796 #: ../src/guestfs-actions.pod:6741
15797 msgid ""
15798 "If you see any calls to this function in code then you can just remove them, "
15799 "unless you want to retain compatibility with older versions of the API."
15800 msgstr ""
15801
15802 # type: =head2
15803 #: ../src/guestfs-actions.pod:6749
15804 msgid "guestfs_wc_c"
15805 msgstr ""
15806
15807 # type: verbatim
15808 #: ../src/guestfs-actions.pod:6751
15809 #, no-wrap
15810 msgid ""
15811 " int\n"
15812 " guestfs_wc_c (guestfs_h *g,\n"
15813 "               const char *path);\n"
15814 "\n"
15815 msgstr ""
15816
15817 # type: textblock
15818 #: ../src/guestfs-actions.pod:6755 ../fish/guestfish-actions.pod:4501
15819 msgid ""
15820 "This command counts the characters in a file, using the C<wc -c> external "
15821 "command."
15822 msgstr ""
15823
15824 # type: =head2
15825 #: ../src/guestfs-actions.pod:6762
15826 msgid "guestfs_wc_l"
15827 msgstr ""
15828
15829 # type: verbatim
15830 #: ../src/guestfs-actions.pod:6764
15831 #, no-wrap
15832 msgid ""
15833 " int\n"
15834 " guestfs_wc_l (guestfs_h *g,\n"
15835 "               const char *path);\n"
15836 "\n"
15837 msgstr ""
15838
15839 # type: textblock
15840 #: ../src/guestfs-actions.pod:6768 ../fish/guestfish-actions.pod:4508
15841 msgid ""
15842 "This command counts the lines in a file, using the C<wc -l> external command."
15843 msgstr ""
15844
15845 # type: =head2
15846 #: ../src/guestfs-actions.pod:6775
15847 msgid "guestfs_wc_w"
15848 msgstr ""
15849
15850 # type: verbatim
15851 #: ../src/guestfs-actions.pod:6777
15852 #, no-wrap
15853 msgid ""
15854 " int\n"
15855 " guestfs_wc_w (guestfs_h *g,\n"
15856 "               const char *path);\n"
15857 "\n"
15858 msgstr ""
15859
15860 # type: textblock
15861 #: ../src/guestfs-actions.pod:6781 ../fish/guestfish-actions.pod:4515
15862 msgid ""
15863 "This command counts the words in a file, using the C<wc -w> external command."
15864 msgstr ""
15865
15866 # type: =head2
15867 #: ../src/guestfs-actions.pod:6788
15868 msgid "guestfs_write"
15869 msgstr ""
15870
15871 # type: verbatim
15872 #: ../src/guestfs-actions.pod:6790
15873 #, no-wrap
15874 msgid ""
15875 " int\n"
15876 " guestfs_write (guestfs_h *g,\n"
15877 "                const char *path,\n"
15878 "                const char *content,\n"
15879 "                size_t content_size);\n"
15880 "\n"
15881 msgstr ""
15882
15883 # type: textblock
15884 #: ../src/guestfs-actions.pod:6796 ../fish/guestfish-actions.pod:4522
15885 msgid ""
15886 "This call creates a file called C<path>.  The content of the file is the "
15887 "string C<content> (which can contain any 8 bit data)."
15888 msgstr ""
15889
15890 # type: =head2
15891 #: ../src/guestfs-actions.pod:6806
15892 msgid "guestfs_write_file"
15893 msgstr ""
15894
15895 # type: verbatim
15896 #: ../src/guestfs-actions.pod:6808
15897 #, no-wrap
15898 msgid ""
15899 " int\n"
15900 " guestfs_write_file (guestfs_h *g,\n"
15901 "                     const char *path,\n"
15902 "                     const char *content,\n"
15903 "                     int size);\n"
15904 "\n"
15905 msgstr ""
15906
15907 # type: textblock
15908 #: ../src/guestfs-actions.pod:6814 ../fish/guestfish-actions.pod:4532
15909 msgid ""
15910 "This call creates a file called C<path>.  The contents of the file is the "
15911 "string C<content> (which can contain any 8 bit data), with length C<size>."
15912 msgstr ""
15913
15914 # type: textblock
15915 #: ../src/guestfs-actions.pod:6818 ../fish/guestfish-actions.pod:4536
15916 msgid ""
15917 "As a special case, if C<size> is C<0> then the length is calculated using "
15918 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15919 msgstr ""
15920
15921 # type: textblock
15922 #: ../src/guestfs-actions.pod:6822 ../fish/guestfish-actions.pod:4540
15923 msgid ""
15924 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15925 "I<not> work, even if the length is specified."
15926 msgstr ""
15927
15928 # type: textblock
15929 #: ../src/guestfs-actions.pod:6830 ../fish/guestfish-actions.pod:4546
15930 msgid ""
15931 "This function is deprecated.  In new code, use the C<write> call instead."
15932 msgstr ""
15933
15934 # type: =head2
15935 #: ../src/guestfs-actions.pod:6839
15936 msgid "guestfs_zegrep"
15937 msgstr ""
15938
15939 # type: verbatim
15940 #: ../src/guestfs-actions.pod:6841
15941 #, no-wrap
15942 msgid ""
15943 " char **\n"
15944 " guestfs_zegrep (guestfs_h *g,\n"
15945 "                 const char *regex,\n"
15946 "                 const char *path);\n"
15947 "\n"
15948 msgstr ""
15949
15950 # type: textblock
15951 #: ../src/guestfs-actions.pod:6846 ../fish/guestfish-actions.pod:4557
15952 msgid ""
15953 "This calls the external C<zegrep> program and returns the matching lines."
15954 msgstr ""
15955
15956 # type: =head2
15957 #: ../src/guestfs-actions.pod:6858
15958 msgid "guestfs_zegrepi"
15959 msgstr ""
15960
15961 # type: verbatim
15962 #: ../src/guestfs-actions.pod:6860
15963 #, no-wrap
15964 msgid ""
15965 " char **\n"
15966 " guestfs_zegrepi (guestfs_h *g,\n"
15967 "                  const char *regex,\n"
15968 "                  const char *path);\n"
15969 "\n"
15970 msgstr ""
15971
15972 # type: textblock
15973 #: ../src/guestfs-actions.pod:6865 ../fish/guestfish-actions.pod:4567
15974 msgid ""
15975 "This calls the external C<zegrep -i> program and returns the matching lines."
15976 msgstr ""
15977
15978 # type: =head2
15979 #: ../src/guestfs-actions.pod:6877
15980 msgid "guestfs_zero"
15981 msgstr ""
15982
15983 # type: verbatim
15984 #: ../src/guestfs-actions.pod:6879
15985 #, no-wrap
15986 msgid ""
15987 " int\n"
15988 " guestfs_zero (guestfs_h *g,\n"
15989 "               const char *device);\n"
15990 "\n"
15991 msgstr ""
15992
15993 # type: textblock
15994 #: ../src/guestfs-actions.pod:6883 ../fish/guestfish-actions.pod:4577
15995 msgid "This command writes zeroes over the first few blocks of C<device>."
15996 msgstr ""
15997
15998 # type: textblock
15999 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:4579
16000 msgid ""
16001 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16002 "securely wipe the device).  It should be sufficient to remove any partition "
16003 "tables, filesystem superblocks and so on."
16004 msgstr ""
16005
16006 # type: textblock
16007 #: ../src/guestfs-actions.pod:6889
16008 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
16009 msgstr ""
16010
16011 # type: =head2
16012 #: ../src/guestfs-actions.pod:6900
16013 msgid "guestfs_zero_device"
16014 msgstr ""
16015
16016 # type: verbatim
16017 #: ../src/guestfs-actions.pod:6902
16018 #, no-wrap
16019 msgid ""
16020 " int\n"
16021 " guestfs_zero_device (guestfs_h *g,\n"
16022 "                      const char *device);\n"
16023 "\n"
16024 msgstr ""
16025
16026 # type: textblock
16027 #: ../src/guestfs-actions.pod:6906
16028 msgid ""
16029 "This command writes zeroes over the entire C<device>.  Compare with "
16030 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16031 msgstr ""
16032
16033 # type: textblock
16034 #: ../src/guestfs-actions.pod:6920
16035 msgid "(Added in 1.3.1)"
16036 msgstr ""
16037
16038 # type: =head2
16039 #: ../src/guestfs-actions.pod:6922
16040 msgid "guestfs_zerofree"
16041 msgstr ""
16042
16043 # type: verbatim
16044 #: ../src/guestfs-actions.pod:6924
16045 #, no-wrap
16046 msgid ""
16047 " int\n"
16048 " guestfs_zerofree (guestfs_h *g,\n"
16049 "                   const char *device);\n"
16050 "\n"
16051 msgstr ""
16052
16053 # type: textblock
16054 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4600
16055 msgid ""
16056 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16057 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16058 "possible to compress the filesystem more effectively."
16059 msgstr ""
16060
16061 # type: textblock
16062 #: ../src/guestfs-actions.pod:6933 ../fish/guestfish-actions.pod:4605
16063 msgid "You should B<not> run this program if the filesystem is mounted."
16064 msgstr ""
16065
16066 # type: textblock
16067 #: ../src/guestfs-actions.pod:6936 ../fish/guestfish-actions.pod:4608
16068 msgid ""
16069 "It is possible that using this program can damage the filesystem or data on "
16070 "the filesystem."
16071 msgstr ""
16072
16073 # type: =head2
16074 #: ../src/guestfs-actions.pod:6943
16075 msgid "guestfs_zfgrep"
16076 msgstr ""
16077
16078 # type: verbatim
16079 #: ../src/guestfs-actions.pod:6945
16080 #, no-wrap
16081 msgid ""
16082 " char **\n"
16083 " guestfs_zfgrep (guestfs_h *g,\n"
16084 "                 const char *pattern,\n"
16085 "                 const char *path);\n"
16086 "\n"
16087 msgstr ""
16088
16089 # type: textblock
16090 #: ../src/guestfs-actions.pod:6950 ../fish/guestfish-actions.pod:4615
16091 msgid ""
16092 "This calls the external C<zfgrep> program and returns the matching lines."
16093 msgstr ""
16094
16095 # type: =head2
16096 #: ../src/guestfs-actions.pod:6962
16097 msgid "guestfs_zfgrepi"
16098 msgstr ""
16099
16100 # type: verbatim
16101 #: ../src/guestfs-actions.pod:6964
16102 #, no-wrap
16103 msgid ""
16104 " char **\n"
16105 " guestfs_zfgrepi (guestfs_h *g,\n"
16106 "                  const char *pattern,\n"
16107 "                  const char *path);\n"
16108 "\n"
16109 msgstr ""
16110
16111 # type: textblock
16112 #: ../src/guestfs-actions.pod:6969 ../fish/guestfish-actions.pod:4625
16113 msgid ""
16114 "This calls the external C<zfgrep -i> program and returns the matching lines."
16115 msgstr ""
16116
16117 # type: =head2
16118 #: ../src/guestfs-actions.pod:6981
16119 msgid "guestfs_zfile"
16120 msgstr ""
16121
16122 # type: verbatim
16123 #: ../src/guestfs-actions.pod:6983
16124 #, no-wrap
16125 msgid ""
16126 " char *\n"
16127 " guestfs_zfile (guestfs_h *g,\n"
16128 "                const char *meth,\n"
16129 "                const char *path);\n"
16130 "\n"
16131 msgstr ""
16132
16133 # type: textblock
16134 #: ../src/guestfs-actions.pod:6988 ../fish/guestfish-actions.pod:4635
16135 msgid ""
16136 "This command runs C<file> after first decompressing C<path> using C<method>."
16137 msgstr ""
16138
16139 # type: textblock
16140 #: ../src/guestfs-actions.pod:6991 ../fish/guestfish-actions.pod:4638
16141 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16142 msgstr ""
16143
16144 # type: textblock
16145 #: ../src/guestfs-actions.pod:6993
16146 msgid ""
16147 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16148 "files."
16149 msgstr ""
16150
16151 # type: textblock
16152 #: ../src/guestfs-actions.pod:6999 ../fish/guestfish-actions.pod:4643
16153 msgid ""
16154 "This function is deprecated.  In new code, use the C<file> call instead."
16155 msgstr ""
16156
16157 # type: =head2
16158 #: ../src/guestfs-actions.pod:7008
16159 msgid "guestfs_zgrep"
16160 msgstr ""
16161
16162 # type: verbatim
16163 #: ../src/guestfs-actions.pod:7010
16164 #, no-wrap
16165 msgid ""
16166 " char **\n"
16167 " guestfs_zgrep (guestfs_h *g,\n"
16168 "                const char *regex,\n"
16169 "                const char *path);\n"
16170 "\n"
16171 msgstr ""
16172
16173 # type: textblock
16174 #: ../src/guestfs-actions.pod:7015 ../fish/guestfish-actions.pod:4654
16175 msgid ""
16176 "This calls the external C<zgrep> program and returns the matching lines."
16177 msgstr ""
16178
16179 # type: =head2
16180 #: ../src/guestfs-actions.pod:7027
16181 msgid "guestfs_zgrepi"
16182 msgstr ""
16183
16184 # type: verbatim
16185 #: ../src/guestfs-actions.pod:7029
16186 #, no-wrap
16187 msgid ""
16188 " char **\n"
16189 " guestfs_zgrepi (guestfs_h *g,\n"
16190 "                 const char *regex,\n"
16191 "                 const char *path);\n"
16192 "\n"
16193 msgstr ""
16194
16195 # type: textblock
16196 #: ../src/guestfs-actions.pod:7034 ../fish/guestfish-actions.pod:4664
16197 msgid ""
16198 "This calls the external C<zgrep -i> program and returns the matching lines."
16199 msgstr ""
16200
16201 # type: =item
16202 #: ../src/guestfs-availability.pod:3
16203 msgid "B<augeas>"
16204 msgstr ""
16205
16206 # type: textblock
16207 #: ../src/guestfs-availability.pod:5
16208 msgid ""
16209 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16210 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16211 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16212 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16213 "L</guestfs_aug_save> L</guestfs_aug_set>"
16214 msgstr ""
16215
16216 # type: =item
16217 #: ../src/guestfs-availability.pod:21
16218 msgid "B<inotify>"
16219 msgstr ""
16220
16221 # type: textblock
16222 #: ../src/guestfs-availability.pod:23
16223 msgid ""
16224 "The following functions: L</guestfs_inotify_add_watch> L</"
16225 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16226 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16227 msgstr ""
16228
16229 # type: =item
16230 #: ../src/guestfs-availability.pod:31
16231 msgid "B<linuxfsuuid>"
16232 msgstr ""
16233
16234 # type: textblock
16235 #: ../src/guestfs-availability.pod:33
16236 msgid ""
16237 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16238 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16239 msgstr ""
16240
16241 # type: =item
16242 #: ../src/guestfs-availability.pod:40
16243 msgid "B<linuxmodules>"
16244 msgstr ""
16245
16246 # type: textblock
16247 #: ../src/guestfs-availability.pod:42
16248 msgid "The following functions: L</guestfs_modprobe>"
16249 msgstr ""
16250
16251 # type: =item
16252 #: ../src/guestfs-availability.pod:45
16253 msgid "B<linuxxattrs>"
16254 msgstr ""
16255
16256 # type: textblock
16257 #: ../src/guestfs-availability.pod:47
16258 msgid ""
16259 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
16260 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
16261 "guestfs_removexattr> L</guestfs_setxattr>"
16262 msgstr ""
16263
16264 # type: =item
16265 #: ../src/guestfs-availability.pod:56
16266 msgid "B<luks>"
16267 msgstr ""
16268
16269 # type: textblock
16270 #: ../src/guestfs-availability.pod:58
16271 msgid ""
16272 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16273 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16274 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16275 msgstr ""
16276
16277 # type: =item
16278 #: ../src/guestfs-availability.pod:67
16279 msgid "B<lvm2>"
16280 msgstr ""
16281
16282 # type: textblock
16283 #: ../src/guestfs-availability.pod:69
16284 msgid ""
16285 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16286 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16287 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16288 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16289 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16290 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16291 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16292 msgstr ""
16293
16294 # type: =item
16295 #: ../src/guestfs-availability.pod:92
16296 msgid "B<mknod>"
16297 msgstr ""
16298
16299 # type: textblock
16300 #: ../src/guestfs-availability.pod:94
16301 msgid ""
16302 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16303 "guestfs_mknod_b> L</guestfs_mknod_c>"
16304 msgstr ""
16305
16306 # type: =item
16307 #: ../src/guestfs-availability.pod:100
16308 msgid "B<ntfs3g>"
16309 msgstr ""
16310
16311 # type: textblock
16312 #: ../src/guestfs-availability.pod:102
16313 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16314 msgstr ""
16315
16316 # type: =item
16317 #: ../src/guestfs-availability.pod:105
16318 msgid "B<ntfsprogs>"
16319 msgstr ""
16320
16321 # type: textblock
16322 #: ../src/guestfs-availability.pod:107
16323 msgid ""
16324 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16325 msgstr ""
16326
16327 # type: =item
16328 #: ../src/guestfs-availability.pod:111
16329 msgid "B<realpath>"
16330 msgstr ""
16331
16332 # type: textblock
16333 #: ../src/guestfs-availability.pod:113
16334 msgid "The following functions: L</guestfs_realpath>"
16335 msgstr ""
16336
16337 # type: =item
16338 #: ../src/guestfs-availability.pod:116
16339 msgid "B<scrub>"
16340 msgstr ""
16341
16342 # type: textblock
16343 #: ../src/guestfs-availability.pod:118
16344 msgid ""
16345 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16346 "guestfs_scrub_freespace>"
16347 msgstr ""
16348
16349 # type: =item
16350 #: ../src/guestfs-availability.pod:123
16351 msgid "B<selinux>"
16352 msgstr ""
16353
16354 # type: textblock
16355 #: ../src/guestfs-availability.pod:125
16356 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16357 msgstr ""
16358
16359 # type: =item
16360 #: ../src/guestfs-availability.pod:129
16361 msgid "B<xz>"
16362 msgstr ""
16363
16364 # type: textblock
16365 #: ../src/guestfs-availability.pod:131
16366 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16367 msgstr ""
16368
16369 # type: =item
16370 #: ../src/guestfs-availability.pod:135
16371 msgid "B<zerofree>"
16372 msgstr ""
16373
16374 # type: textblock
16375 #: ../src/guestfs-availability.pod:137
16376 msgid "The following functions: L</guestfs_zerofree>"
16377 msgstr ""
16378
16379 # type: =head2
16380 #: ../src/guestfs-structs.pod:1
16381 msgid "guestfs_int_bool"
16382 msgstr ""
16383
16384 # type: verbatim
16385 #: ../src/guestfs-structs.pod:3
16386 #, no-wrap
16387 msgid ""
16388 " struct guestfs_int_bool {\n"
16389 "   int32_t i;\n"
16390 "   int32_t b;\n"
16391 " };\n"
16392 " \n"
16393 msgstr ""
16394
16395 # type: verbatim
16396 #: ../src/guestfs-structs.pod:8
16397 #, no-wrap
16398 msgid ""
16399 " struct guestfs_int_bool_list {\n"
16400 "   uint32_t len; /* Number of elements in list. */\n"
16401 "   struct guestfs_int_bool *val; /* Elements. */\n"
16402 " };\n"
16403 " \n"
16404 msgstr ""
16405
16406 # type: verbatim
16407 #: ../src/guestfs-structs.pod:13
16408 #, no-wrap
16409 msgid ""
16410 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16411 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16412 "\n"
16413 msgstr ""
16414
16415 # type: =head2
16416 #: ../src/guestfs-structs.pod:16
16417 msgid "guestfs_lvm_pv"
16418 msgstr ""
16419
16420 # type: verbatim
16421 #: ../src/guestfs-structs.pod:18
16422 #, no-wrap
16423 msgid ""
16424 " struct guestfs_lvm_pv {\n"
16425 "   char *pv_name;\n"
16426 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16427 "   char pv_uuid[32];\n"
16428 "   char *pv_fmt;\n"
16429 "   uint64_t pv_size;\n"
16430 "   uint64_t dev_size;\n"
16431 "   uint64_t pv_free;\n"
16432 "   uint64_t pv_used;\n"
16433 "   char *pv_attr;\n"
16434 "   int64_t pv_pe_count;\n"
16435 "   int64_t pv_pe_alloc_count;\n"
16436 "   char *pv_tags;\n"
16437 "   uint64_t pe_start;\n"
16438 "   int64_t pv_mda_count;\n"
16439 "   uint64_t pv_mda_free;\n"
16440 " };\n"
16441 " \n"
16442 msgstr ""
16443
16444 # type: verbatim
16445 #: ../src/guestfs-structs.pod:36
16446 #, no-wrap
16447 msgid ""
16448 " struct guestfs_lvm_pv_list {\n"
16449 "   uint32_t len; /* Number of elements in list. */\n"
16450 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16451 " };\n"
16452 " \n"
16453 msgstr ""
16454
16455 # type: verbatim
16456 #: ../src/guestfs-structs.pod:41
16457 #, no-wrap
16458 msgid ""
16459 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16460 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16461 "\n"
16462 msgstr ""
16463
16464 # type: =head2
16465 #: ../src/guestfs-structs.pod:44
16466 msgid "guestfs_lvm_vg"
16467 msgstr ""
16468
16469 # type: verbatim
16470 #: ../src/guestfs-structs.pod:46
16471 #, no-wrap
16472 msgid ""
16473 " struct guestfs_lvm_vg {\n"
16474 "   char *vg_name;\n"
16475 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16476 "   char vg_uuid[32];\n"
16477 "   char *vg_fmt;\n"
16478 "   char *vg_attr;\n"
16479 "   uint64_t vg_size;\n"
16480 "   uint64_t vg_free;\n"
16481 "   char *vg_sysid;\n"
16482 "   uint64_t vg_extent_size;\n"
16483 "   int64_t vg_extent_count;\n"
16484 "   int64_t vg_free_count;\n"
16485 "   int64_t max_lv;\n"
16486 "   int64_t max_pv;\n"
16487 "   int64_t pv_count;\n"
16488 "   int64_t lv_count;\n"
16489 "   int64_t snap_count;\n"
16490 "   int64_t vg_seqno;\n"
16491 "   char *vg_tags;\n"
16492 "   int64_t vg_mda_count;\n"
16493 "   uint64_t vg_mda_free;\n"
16494 " };\n"
16495 " \n"
16496 msgstr ""
16497
16498 # type: verbatim
16499 #: ../src/guestfs-structs.pod:69
16500 #, no-wrap
16501 msgid ""
16502 " struct guestfs_lvm_vg_list {\n"
16503 "   uint32_t len; /* Number of elements in list. */\n"
16504 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16505 " };\n"
16506 " \n"
16507 msgstr ""
16508
16509 # type: verbatim
16510 #: ../src/guestfs-structs.pod:74
16511 #, no-wrap
16512 msgid ""
16513 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16514 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16515 "\n"
16516 msgstr ""
16517
16518 # type: =head2
16519 #: ../src/guestfs-structs.pod:77
16520 msgid "guestfs_lvm_lv"
16521 msgstr ""
16522
16523 # type: verbatim
16524 #: ../src/guestfs-structs.pod:79
16525 #, no-wrap
16526 msgid ""
16527 " struct guestfs_lvm_lv {\n"
16528 "   char *lv_name;\n"
16529 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16530 "   char lv_uuid[32];\n"
16531 "   char *lv_attr;\n"
16532 "   int64_t lv_major;\n"
16533 "   int64_t lv_minor;\n"
16534 "   int64_t lv_kernel_major;\n"
16535 "   int64_t lv_kernel_minor;\n"
16536 "   uint64_t lv_size;\n"
16537 "   int64_t seg_count;\n"
16538 "   char *origin;\n"
16539 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16540 "   float snap_percent;\n"
16541 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16542 "   float copy_percent;\n"
16543 "   char *move_pv;\n"
16544 "   char *lv_tags;\n"
16545 "   char *mirror_log;\n"
16546 "   char *modules;\n"
16547 " };\n"
16548 " \n"
16549 msgstr ""
16550
16551 # type: verbatim
16552 #: ../src/guestfs-structs.pod:101
16553 #, no-wrap
16554 msgid ""
16555 " struct guestfs_lvm_lv_list {\n"
16556 "   uint32_t len; /* Number of elements in list. */\n"
16557 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16558 " };\n"
16559 " \n"
16560 msgstr ""
16561
16562 # type: verbatim
16563 #: ../src/guestfs-structs.pod:106
16564 #, no-wrap
16565 msgid ""
16566 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16567 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16568 "\n"
16569 msgstr ""
16570
16571 # type: verbatim
16572 #: ../src/guestfs-structs.pod:111
16573 #, no-wrap
16574 msgid ""
16575 " struct guestfs_stat {\n"
16576 "   int64_t dev;\n"
16577 "   int64_t ino;\n"
16578 "   int64_t mode;\n"
16579 "   int64_t nlink;\n"
16580 "   int64_t uid;\n"
16581 "   int64_t gid;\n"
16582 "   int64_t rdev;\n"
16583 "   int64_t size;\n"
16584 "   int64_t blksize;\n"
16585 "   int64_t blocks;\n"
16586 "   int64_t atime;\n"
16587 "   int64_t mtime;\n"
16588 "   int64_t ctime;\n"
16589 " };\n"
16590 " \n"
16591 msgstr ""
16592
16593 # type: verbatim
16594 #: ../src/guestfs-structs.pod:127
16595 #, no-wrap
16596 msgid ""
16597 " struct guestfs_stat_list {\n"
16598 "   uint32_t len; /* Number of elements in list. */\n"
16599 "   struct guestfs_stat *val; /* Elements. */\n"
16600 " };\n"
16601 " \n"
16602 msgstr ""
16603
16604 # type: verbatim
16605 #: ../src/guestfs-structs.pod:132
16606 #, no-wrap
16607 msgid ""
16608 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16609 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16610 "\n"
16611 msgstr ""
16612
16613 # type: verbatim
16614 #: ../src/guestfs-structs.pod:137
16615 #, no-wrap
16616 msgid ""
16617 " struct guestfs_statvfs {\n"
16618 "   int64_t bsize;\n"
16619 "   int64_t frsize;\n"
16620 "   int64_t blocks;\n"
16621 "   int64_t bfree;\n"
16622 "   int64_t bavail;\n"
16623 "   int64_t files;\n"
16624 "   int64_t ffree;\n"
16625 "   int64_t favail;\n"
16626 "   int64_t fsid;\n"
16627 "   int64_t flag;\n"
16628 "   int64_t namemax;\n"
16629 " };\n"
16630 " \n"
16631 msgstr ""
16632
16633 # type: verbatim
16634 #: ../src/guestfs-structs.pod:151
16635 #, no-wrap
16636 msgid ""
16637 " struct guestfs_statvfs_list {\n"
16638 "   uint32_t len; /* Number of elements in list. */\n"
16639 "   struct guestfs_statvfs *val; /* Elements. */\n"
16640 " };\n"
16641 " \n"
16642 msgstr ""
16643
16644 # type: verbatim
16645 #: ../src/guestfs-structs.pod:156
16646 #, no-wrap
16647 msgid ""
16648 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16649 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16650 "\n"
16651 msgstr ""
16652
16653 # type: =head2
16654 #: ../src/guestfs-structs.pod:159
16655 msgid "guestfs_dirent"
16656 msgstr ""
16657
16658 # type: verbatim
16659 #: ../src/guestfs-structs.pod:161
16660 #, no-wrap
16661 msgid ""
16662 " struct guestfs_dirent {\n"
16663 "   int64_t ino;\n"
16664 "   char ftyp;\n"
16665 "   char *name;\n"
16666 " };\n"
16667 " \n"
16668 msgstr ""
16669
16670 # type: verbatim
16671 #: ../src/guestfs-structs.pod:167
16672 #, no-wrap
16673 msgid ""
16674 " struct guestfs_dirent_list {\n"
16675 "   uint32_t len; /* Number of elements in list. */\n"
16676 "   struct guestfs_dirent *val; /* Elements. */\n"
16677 " };\n"
16678 " \n"
16679 msgstr ""
16680
16681 # type: verbatim
16682 #: ../src/guestfs-structs.pod:172
16683 #, no-wrap
16684 msgid ""
16685 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16686 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16687 "\n"
16688 msgstr ""
16689
16690 # type: verbatim
16691 #: ../src/guestfs-structs.pod:177
16692 #, no-wrap
16693 msgid ""
16694 " struct guestfs_version {\n"
16695 "   int64_t major;\n"
16696 "   int64_t minor;\n"
16697 "   int64_t release;\n"
16698 "   char *extra;\n"
16699 " };\n"
16700 " \n"
16701 msgstr ""
16702
16703 # type: verbatim
16704 #: ../src/guestfs-structs.pod:184
16705 #, no-wrap
16706 msgid ""
16707 " struct guestfs_version_list {\n"
16708 "   uint32_t len; /* Number of elements in list. */\n"
16709 "   struct guestfs_version *val; /* Elements. */\n"
16710 " };\n"
16711 " \n"
16712 msgstr ""
16713
16714 # type: verbatim
16715 #: ../src/guestfs-structs.pod:189
16716 #, no-wrap
16717 msgid ""
16718 " void guestfs_free_version (struct guestfs_free_version *);\n"
16719 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16720 "\n"
16721 msgstr ""
16722
16723 # type: =head2
16724 #: ../src/guestfs-structs.pod:192
16725 msgid "guestfs_xattr"
16726 msgstr ""
16727
16728 # type: verbatim
16729 #: ../src/guestfs-structs.pod:194
16730 #, no-wrap
16731 msgid ""
16732 " struct guestfs_xattr {\n"
16733 "   char *attrname;\n"
16734 "   /* The next two fields describe a byte array. */\n"
16735 "   uint32_t attrval_len;\n"
16736 "   char *attrval;\n"
16737 " };\n"
16738 " \n"
16739 msgstr ""
16740
16741 # type: verbatim
16742 #: ../src/guestfs-structs.pod:201
16743 #, no-wrap
16744 msgid ""
16745 " struct guestfs_xattr_list {\n"
16746 "   uint32_t len; /* Number of elements in list. */\n"
16747 "   struct guestfs_xattr *val; /* Elements. */\n"
16748 " };\n"
16749 " \n"
16750 msgstr ""
16751
16752 # type: verbatim
16753 #: ../src/guestfs-structs.pod:206
16754 #, no-wrap
16755 msgid ""
16756 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16757 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16758 "\n"
16759 msgstr ""
16760
16761 # type: =head2
16762 #: ../src/guestfs-structs.pod:209
16763 msgid "guestfs_inotify_event"
16764 msgstr ""
16765
16766 # type: verbatim
16767 #: ../src/guestfs-structs.pod:211
16768 #, no-wrap
16769 msgid ""
16770 " struct guestfs_inotify_event {\n"
16771 "   int64_t in_wd;\n"
16772 "   uint32_t in_mask;\n"
16773 "   uint32_t in_cookie;\n"
16774 "   char *in_name;\n"
16775 " };\n"
16776 " \n"
16777 msgstr ""
16778
16779 # type: verbatim
16780 #: ../src/guestfs-structs.pod:218
16781 #, no-wrap
16782 msgid ""
16783 " struct guestfs_inotify_event_list {\n"
16784 "   uint32_t len; /* Number of elements in list. */\n"
16785 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16786 " };\n"
16787 " \n"
16788 msgstr ""
16789
16790 # type: verbatim
16791 #: ../src/guestfs-structs.pod:223
16792 #, no-wrap
16793 msgid ""
16794 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16795 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16796 "\n"
16797 msgstr ""
16798
16799 # type: =head2
16800 #: ../src/guestfs-structs.pod:226
16801 msgid "guestfs_partition"
16802 msgstr ""
16803
16804 # type: verbatim
16805 #: ../src/guestfs-structs.pod:228
16806 #, no-wrap
16807 msgid ""
16808 " struct guestfs_partition {\n"
16809 "   int32_t part_num;\n"
16810 "   uint64_t part_start;\n"
16811 "   uint64_t part_end;\n"
16812 "   uint64_t part_size;\n"
16813 " };\n"
16814 " \n"
16815 msgstr ""
16816
16817 # type: verbatim
16818 #: ../src/guestfs-structs.pod:235
16819 #, no-wrap
16820 msgid ""
16821 " struct guestfs_partition_list {\n"
16822 "   uint32_t len; /* Number of elements in list. */\n"
16823 "   struct guestfs_partition *val; /* Elements. */\n"
16824 " };\n"
16825 " \n"
16826 msgstr ""
16827
16828 # type: verbatim
16829 #: ../src/guestfs-structs.pod:240
16830 #, no-wrap
16831 msgid ""
16832 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16833 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16834 "\n"
16835 msgstr ""
16836
16837 # type: =head2
16838 #: ../src/guestfs-structs.pod:243
16839 msgid "guestfs_application"
16840 msgstr ""
16841
16842 # type: verbatim
16843 #: ../src/guestfs-structs.pod:245
16844 #, no-wrap
16845 msgid ""
16846 " struct guestfs_application {\n"
16847 "   char *app_name;\n"
16848 "   char *app_display_name;\n"
16849 "   int32_t app_epoch;\n"
16850 "   char *app_version;\n"
16851 "   char *app_release;\n"
16852 "   char *app_install_path;\n"
16853 "   char *app_trans_path;\n"
16854 "   char *app_publisher;\n"
16855 "   char *app_url;\n"
16856 "   char *app_source_package;\n"
16857 "   char *app_summary;\n"
16858 "   char *app_description;\n"
16859 " };\n"
16860 " \n"
16861 msgstr ""
16862
16863 # type: verbatim
16864 #: ../src/guestfs-structs.pod:260
16865 #, no-wrap
16866 msgid ""
16867 " struct guestfs_application_list {\n"
16868 "   uint32_t len; /* Number of elements in list. */\n"
16869 "   struct guestfs_application *val; /* Elements. */\n"
16870 " };\n"
16871 " \n"
16872 msgstr ""
16873
16874 # type: verbatim
16875 #: ../src/guestfs-structs.pod:265
16876 #, no-wrap
16877 msgid ""
16878 " void guestfs_free_application (struct guestfs_free_application *);\n"
16879 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
16880 "\n"
16881 msgstr ""
16882
16883 # type: textblock
16884 #: ../fish/guestfish.pod:5
16885 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16886 msgstr ""
16887
16888 # type: verbatim
16889 #: ../fish/guestfish.pod:9
16890 #, no-wrap
16891 msgid ""
16892 " guestfish [--options] [commands]\n"
16893 "\n"
16894 msgstr ""
16895
16896 # type: verbatim
16897 #: ../fish/guestfish.pod:11
16898 #, no-wrap
16899 msgid ""
16900 " guestfish\n"
16901 "\n"
16902 msgstr ""
16903
16904 # type: verbatim
16905 #: ../fish/guestfish.pod:13
16906 #, no-wrap
16907 msgid ""
16908 " guestfish [--ro|--rw] -a disk.img\n"
16909 "\n"
16910 msgstr ""
16911
16912 # type: verbatim
16913 #: ../fish/guestfish.pod:15
16914 #, no-wrap
16915 msgid ""
16916 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16917 "\n"
16918 msgstr ""
16919
16920 # type: verbatim
16921 #: ../fish/guestfish.pod:17
16922 #, no-wrap
16923 msgid ""
16924 " guestfish -d libvirt-domain\n"
16925 "\n"
16926 msgstr ""
16927
16928 # type: verbatim
16929 #: ../fish/guestfish.pod:19
16930 #, no-wrap
16931 msgid ""
16932 " guestfish [--ro|--rw] -a disk.img -i\n"
16933 "\n"
16934 msgstr ""
16935
16936 # type: verbatim
16937 #: ../fish/guestfish.pod:21
16938 #, no-wrap
16939 msgid ""
16940 " guestfish -d libvirt-domain -i\n"
16941 "\n"
16942 msgstr ""
16943
16944 # type: =head1
16945 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16946 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16947 msgid "WARNING"
16948 msgstr ""
16949
16950 # type: textblock
16951 #: ../fish/guestfish.pod:25
16952 msgid ""
16953 "Using guestfish in read/write mode on live virtual machines can be "
16954 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16955 "option to use guestfish safely if the disk image or virtual machine might be "
16956 "live."
16957 msgstr ""
16958
16959 # type: textblock
16960 #: ../fish/guestfish.pod:32
16961 msgid ""
16962 "Guestfish is a shell and command-line tool for examining and modifying "
16963 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16964 "functionality of the guestfs API, see L<guestfs(3)>."
16965 msgstr ""
16966
16967 # type: textblock
16968 #: ../fish/guestfish.pod:36
16969 msgid ""
16970 "Guestfish gives you structured access to the libguestfs API, from shell "
16971 "scripts or the command line or interactively.  If you want to rescue a "
16972 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16973 "command."
16974 msgstr ""
16975
16976 # type: =head1
16977 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:847
16978 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16979 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
16980 msgid "EXAMPLES"
16981 msgstr ""
16982
16983 # type: =head2
16984 #: ../fish/guestfish.pod:43
16985 msgid "As an interactive shell"
16986 msgstr ""
16987
16988 # type: verbatim
16989 #: ../fish/guestfish.pod:45
16990 #, no-wrap
16991 msgid ""
16992 " $ guestfish\n"
16993 " \n"
16994 msgstr ""
16995
16996 # type: verbatim
16997 #: ../fish/guestfish.pod:47
16998 #, no-wrap
16999 msgid ""
17000 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17001 " editing virtual machine filesystems.\n"
17002 " \n"
17003 msgstr ""
17004
17005 # type: verbatim
17006 #: ../fish/guestfish.pod:50
17007 #, no-wrap
17008 msgid ""
17009 " Type: 'help' for a list of commands\n"
17010 "       'man' to read the manual\n"
17011 "       'quit' to quit the shell\n"
17012 " \n"
17013 msgstr ""
17014
17015 # type: verbatim
17016 #: ../fish/guestfish.pod:54
17017 #, no-wrap
17018 msgid ""
17019 " ><fs> add-ro disk.img\n"
17020 " ><fs> run\n"
17021 " ><fs> list-filesystems\n"
17022 " /dev/sda1: ext4\n"
17023 " /dev/vg_guest/lv_root: ext4\n"
17024 " /dev/vg_guest/lv_swap: swap\n"
17025 " ><fs> mount /dev/vg_guest/lv_root /\n"
17026 " ><fs> cat /etc/fstab\n"
17027 " # /etc/fstab\n"
17028 " # Created by anaconda\n"
17029 " [...]\n"
17030 " ><fs> exit\n"
17031 "\n"
17032 msgstr ""
17033
17034 # type: =head2
17035 #: ../fish/guestfish.pod:67
17036 msgid "From shell scripts"
17037 msgstr ""
17038
17039 # type: textblock
17040 #: ../fish/guestfish.pod:69
17041 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17042 msgstr ""
17043
17044 # type: verbatim
17045 #: ../fish/guestfish.pod:71
17046 #, no-wrap
17047 msgid ""
17048 " guestfish <<_EOF_\n"
17049 " add disk.img\n"
17050 " run\n"
17051 " mount /dev/vg_guest/lv_root /\n"
17052 " write /etc/motd \"Welcome, new users\"\n"
17053 " _EOF_\n"
17054 "\n"
17055 msgstr ""
17056
17057 # type: textblock
17058 #: ../fish/guestfish.pod:78
17059 msgid "List the LVM logical volumes in a disk image:"
17060 msgstr ""
17061
17062 # type: verbatim
17063 #: ../fish/guestfish.pod:80
17064 #, no-wrap
17065 msgid ""
17066 " guestfish -a disk.img --ro <<_EOF_\n"
17067 " run\n"
17068 " lvs\n"
17069 " _EOF_\n"
17070 "\n"
17071 msgstr ""
17072
17073 # type: textblock
17074 #: ../fish/guestfish.pod:85
17075 msgid "List all the filesystems in a disk image:"
17076 msgstr ""
17077
17078 # type: verbatim
17079 #: ../fish/guestfish.pod:87
17080 #, no-wrap
17081 msgid ""
17082 " guestfish -a disk.img --ro <<_EOF_\n"
17083 " run\n"
17084 " list-filesystems\n"
17085 " _EOF_\n"
17086 "\n"
17087 msgstr ""
17088
17089 # type: =head2
17090 #: ../fish/guestfish.pod:92
17091 msgid "On one command line"
17092 msgstr ""
17093
17094 # type: textblock
17095 #: ../fish/guestfish.pod:94
17096 msgid "Update C</etc/resolv.conf> in a guest:"
17097 msgstr ""
17098
17099 # type: verbatim
17100 #: ../fish/guestfish.pod:96
17101 #, no-wrap
17102 msgid ""
17103 " guestfish \\\n"
17104 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17105 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17106 "\n"
17107 msgstr ""
17108
17109 # type: textblock
17110 #: ../fish/guestfish.pod:100
17111 msgid "Edit C</boot/grub/grub.conf> interactively:"
17112 msgstr ""
17113
17114 # type: verbatim
17115 #: ../fish/guestfish.pod:102
17116 #, no-wrap
17117 msgid ""
17118 " guestfish --rw --add disk.img \\\n"
17119 "   --mount /dev/vg_guest/lv_root \\\n"
17120 "   --mount /dev/sda1:/boot \\\n"
17121 "   edit /boot/grub/grub.conf\n"
17122 "\n"
17123 msgstr ""
17124
17125 # type: =head2
17126 #: ../fish/guestfish.pod:107
17127 msgid "Mount disks automatically"
17128 msgstr ""
17129
17130 # type: textblock
17131 #: ../fish/guestfish.pod:109
17132 msgid ""
17133 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17134 msgstr ""
17135
17136 # type: verbatim
17137 #: ../fish/guestfish.pod:112
17138 #, no-wrap
17139 msgid ""
17140 " guestfish --ro -a disk.img -i cat /etc/group\n"
17141 "\n"
17142 msgstr ""
17143
17144 # type: verbatim
17145 #: ../fish/guestfish.pod:114
17146 #, no-wrap
17147 msgid ""
17148 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17149 "\n"
17150 msgstr ""
17151
17152 # type: textblock
17153 #: ../fish/guestfish.pod:116
17154 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17155 msgstr ""
17156
17157 # type: verbatim
17158 #: ../fish/guestfish.pod:118
17159 #, no-wrap
17160 msgid ""
17161 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17162 "\n"
17163 msgstr ""
17164
17165 # type: =head2
17166 #: ../fish/guestfish.pod:120
17167 msgid "As a script interpreter"
17168 msgstr ""
17169
17170 # type: textblock
17171 #: ../fish/guestfish.pod:122
17172 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17173 msgstr ""
17174
17175 # type: verbatim
17176 #: ../fish/guestfish.pod:124
17177 #, no-wrap
17178 msgid ""
17179 " #!/usr/bin/guestfish -f\n"
17180 " sparse test1.img 100M\n"
17181 " run\n"
17182 " part-disk /dev/sda mbr\n"
17183 " mkfs ext2 /dev/sda1\n"
17184 "\n"
17185 msgstr ""
17186
17187 # type: =head2
17188 #: ../fish/guestfish.pod:130
17189 msgid "Start with a prepared disk"
17190 msgstr ""
17191
17192 # type: textblock
17193 #: ../fish/guestfish.pod:132
17194 msgid ""
17195 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17196 "single ext2-formatted partition:"
17197 msgstr ""
17198
17199 # type: verbatim
17200 #: ../fish/guestfish.pod:135
17201 #, no-wrap
17202 msgid ""
17203 " guestfish -N fs\n"
17204 "\n"
17205 msgstr ""
17206
17207 # type: textblock
17208 #: ../fish/guestfish.pod:137
17209 msgid "To list what is available do:"
17210 msgstr ""
17211
17212 # type: verbatim
17213 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:838
17214 #, no-wrap
17215 msgid ""
17216 " guestfish -N help | less\n"
17217 "\n"
17218 msgstr ""
17219
17220 # type: =head2
17221 #: ../fish/guestfish.pod:141
17222 msgid "Remote control"
17223 msgstr ""
17224
17225 # type: verbatim
17226 #: ../fish/guestfish.pod:143
17227 #, no-wrap
17228 msgid ""
17229 " eval \"`guestfish --listen`\"\n"
17230 " guestfish --remote add-ro disk.img\n"
17231 " guestfish --remote run\n"
17232 " guestfish --remote lvs\n"
17233 "\n"
17234 msgstr ""
17235
17236 # type: =head1
17237 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17238 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
17239 #: ../tools/virt-win-reg.pl:171 ../tools/virt-resize.pl:254
17240 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98
17241 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
17242 msgid "OPTIONS"
17243 msgstr ""
17244
17245 # type: =item
17246 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17247 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179
17248 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
17249 #: ../tools/virt-tar.pl:106 ../tools/virt-make-fs.pl:161
17250 #: ../tools/virt-list-partitions.pl:62
17251 msgid "B<--help>"
17252 msgstr ""
17253
17254 # type: textblock
17255 #: ../fish/guestfish.pod:154
17256 msgid "Displays general help on options."
17257 msgstr ""
17258
17259 # type: =item
17260 #: ../fish/guestfish.pod:156
17261 msgid "B<-h> | B<--cmd-help>"
17262 msgstr ""
17263
17264 # type: textblock
17265 #: ../fish/guestfish.pod:158
17266 msgid "Lists all available guestfish commands."
17267 msgstr ""
17268
17269 # type: =item
17270 #: ../fish/guestfish.pod:160
17271 msgid "B<-h cmd> | B<--cmd-help cmd>"
17272 msgstr ""
17273
17274 # type: textblock
17275 #: ../fish/guestfish.pod:162
17276 msgid "Displays detailed help on a single command C<cmd>."
17277 msgstr ""
17278
17279 # type: =item
17280 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
17281 msgid "B<-a image> | B<--add image>"
17282 msgstr ""
17283
17284 # type: textblock
17285 #: ../fish/guestfish.pod:166
17286 msgid "Add a block device or virtual machine image to the shell."
17287 msgstr ""
17288
17289 # type: textblock
17290 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
17291 msgid ""
17292 "The format of the disk image is auto-detected.  To override this and force a "
17293 "particular format use the I<--format=..> option."
17294 msgstr ""
17295
17296 # type: =item
17297 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
17298 msgid "B<-c URI> | B<--connect URI>"
17299 msgstr ""
17300
17301 # type: textblock
17302 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
17303 msgid ""
17304 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17305 "URI to use.  The default is to use the default libvirt connection."
17306 msgstr ""
17307
17308 # type: =item
17309 #: ../fish/guestfish.pod:177
17310 msgid "B<--csh>"
17311 msgstr ""
17312
17313 # type: textblock
17314 #: ../fish/guestfish.pod:179
17315 msgid ""
17316 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17317 "section L</REMOTE CONTROL AND CSH> below."
17318 msgstr ""
17319
17320 # type: =item
17321 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
17322 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
17323 msgstr ""
17324
17325 # type: textblock
17326 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
17327 msgid ""
17328 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17329 "used, then any libvirt domain can be used.  However in write mode, only "
17330 "libvirt domains which are shut down can be named here."
17331 msgstr ""
17332
17333 # type: =item
17334 #: ../fish/guestfish.pod:188
17335 msgid "B<-D> | B<--no-dest-paths>"
17336 msgstr ""
17337
17338 # type: textblock
17339 #: ../fish/guestfish.pod:190
17340 msgid ""
17341 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17342 "to hit the tab key to complete paths on the guest filesystem, but this "
17343 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17344 "allow this feature to be disabled."
17345 msgstr ""
17346
17347 # type: =item
17348 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
17349 msgid "B<--echo-keys>"
17350 msgstr ""
17351
17352 # type: textblock
17353 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
17354 msgid ""
17355 "When prompting for keys and passphrases, guestfish normally turns echoing "
17356 "off so you cannot see what you are typing.  If you are not worried about "
17357 "Tempest attacks and there is no one else in the room you can specify this "
17358 "flag to see what you are typing."
17359 msgstr ""
17360
17361 # type: =item
17362 #: ../fish/guestfish.pod:202
17363 msgid "B<-f file> | B<--file file>"
17364 msgstr ""
17365
17366 # type: textblock
17367 #: ../fish/guestfish.pod:204
17368 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17369 msgstr ""
17370
17371 # type: verbatim
17372 #: ../fish/guestfish.pod:207
17373 #, no-wrap
17374 msgid ""
17375 " #!/usr/bin/guestfish -f\n"
17376 "\n"
17377 msgstr ""
17378
17379 # type: =item
17380 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
17381 msgid "B<--format=raw|qcow2|..> | B<--format>"
17382 msgstr ""
17383
17384 # type: textblock
17385 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17386 msgid ""
17387 "The default for the I<-a> option is to auto-detect the format of the disk "
17388 "image.  Using this forces the disk format for I<-a> options which follow on "
17389 "the command line.  Using I<--format> with no argument switches back to auto-"
17390 "detection for subsequent I<-a> options."
17391 msgstr ""
17392
17393 # type: textblock
17394 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:544
17395 msgid "For example:"
17396 msgstr ""
17397
17398 # type: verbatim
17399 #: ../fish/guestfish.pod:218
17400 #, no-wrap
17401 msgid ""
17402 " guestfish --format=raw -a disk.img\n"
17403 "\n"
17404 msgstr ""
17405
17406 # type: textblock
17407 #: ../fish/guestfish.pod:220
17408 msgid "forces raw format (no auto-detection) for C<disk.img>."
17409 msgstr ""
17410
17411 # type: verbatim
17412 #: ../fish/guestfish.pod:222
17413 #, no-wrap
17414 msgid ""
17415 " guestfish --format=raw -a disk.img --format -a another.img\n"
17416 "\n"
17417 msgstr ""
17418
17419 # type: textblock
17420 #: ../fish/guestfish.pod:224
17421 msgid ""
17422 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17423 "detection for C<another.img>."
17424 msgstr ""
17425
17426 # type: textblock
17427 #: ../fish/guestfish.pod:227
17428 msgid ""
17429 "If you have untrusted raw-format guest disk images, you should use this "
17430 "option to specify the disk format.  This avoids a possible security problem "
17431 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17432 msgstr ""
17433
17434 # type: =item
17435 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17436 msgid "B<-i> | B<--inspector>"
17437 msgstr ""
17438
17439 # type: textblock
17440 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17441 msgid ""
17442 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17443 "system and mount filesystems as they would be mounted on the real virtual "
17444 "machine."
17445 msgstr ""
17446
17447 # type: textblock
17448 #: ../fish/guestfish.pod:238
17449 msgid "Typical usage is either:"
17450 msgstr ""
17451
17452 # type: verbatim
17453 #: ../fish/guestfish.pod:240
17454 #, no-wrap
17455 msgid ""
17456 " guestfish -d myguest -i\n"
17457 "\n"
17458 msgstr ""
17459
17460 # type: textblock
17461 #: ../fish/guestfish.pod:242
17462 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17463 msgstr ""
17464
17465 # type: verbatim
17466 #: ../fish/guestfish.pod:244
17467 #, no-wrap
17468 msgid ""
17469 " guestfish --ro -d myguest -i\n"
17470 "\n"
17471 msgstr ""
17472
17473 # type: textblock
17474 #: ../fish/guestfish.pod:246
17475 msgid "(for active domains, readonly), or specify the block device directly:"
17476 msgstr ""
17477
17478 # type: verbatim
17479 #: ../fish/guestfish.pod:248
17480 #, no-wrap
17481 msgid ""
17482 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17483 "\n"
17484 msgstr ""
17485
17486 # type: textblock
17487 #: ../fish/guestfish.pod:250
17488 msgid ""
17489 "Note that the command line syntax changed slightly over older versions of "
17490 "guestfish.  You can still use the old syntax:"
17491 msgstr ""
17492
17493 # type: verbatim
17494 #: ../fish/guestfish.pod:253
17495 #, no-wrap
17496 msgid ""
17497 " guestfish [--ro] -i disk.img\n"
17498 "\n"
17499 msgstr ""
17500
17501 # type: verbatim
17502 #: ../fish/guestfish.pod:255
17503 #, no-wrap
17504 msgid ""
17505 " guestfish [--ro] -i libvirt-domain\n"
17506 "\n"
17507 msgstr ""
17508
17509 # type: =item
17510 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17511 msgid "B<--keys-from-stdin>"
17512 msgstr ""
17513
17514 # type: textblock
17515 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17516 msgid ""
17517 "Read key or passphrase parameters from stdin.  The default is to try to read "
17518 "passphrases from the user by opening C</dev/tty>."
17519 msgstr ""
17520
17521 # type: =item
17522 #: ../fish/guestfish.pod:262
17523 msgid "B<--listen>"
17524 msgstr ""
17525
17526 # type: textblock
17527 #: ../fish/guestfish.pod:264
17528 msgid ""
17529 "Fork into the background and listen for remote commands.  See section L</"
17530 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17531 msgstr ""
17532
17533 # type: =item
17534 #: ../fish/guestfish.pod:267
17535 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17536 msgstr ""
17537
17538 # type: textblock
17539 #: ../fish/guestfish.pod:269
17540 msgid "Mount the named partition or logical volume on the given mountpoint."
17541 msgstr ""
17542
17543 # type: textblock
17544 #: ../fish/guestfish.pod:271
17545 msgid "If the mountpoint is omitted, it defaults to C</>."
17546 msgstr ""
17547
17548 # type: textblock
17549 #: ../fish/guestfish.pod:273
17550 msgid "You have to mount something on C</> before most commands will work."
17551 msgstr ""
17552
17553 # type: textblock
17554 #: ../fish/guestfish.pod:275
17555 msgid ""
17556 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17557 "launched."
17558 msgstr ""
17559
17560 # type: textblock
17561 #: ../fish/guestfish.pod:278
17562 msgid ""
17563 "If you don't know what filesystems a disk image contains, you can either run "
17564 "guestfish without this option, then list the partitions, filesystems and LVs "
17565 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17566 "commands), or you can use the L<virt-filesystems(1)> program."
17567 msgstr ""
17568
17569 # type: =item
17570 #: ../fish/guestfish.pod:284 ../fuse/guestmount.pod:154
17571 msgid "B<-n> | B<--no-sync>"
17572 msgstr ""
17573
17574 # type: textblock
17575 #: ../fish/guestfish.pod:286
17576 msgid ""
17577 "Disable autosync.  This is enabled by default.  See the discussion of "
17578 "autosync in the L<guestfs(3)> manpage."
17579 msgstr ""
17580
17581 # type: =item
17582 #: ../fish/guestfish.pod:289
17583 msgid "B<-N type> | B<--new type> | B<-N help>"
17584 msgstr ""
17585
17586 # type: textblock
17587 #: ../fish/guestfish.pod:291
17588 msgid ""
17589 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17590 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17591 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17592 "IMAGES> below."
17593 msgstr ""
17594
17595 # type: =item
17596 #: ../fish/guestfish.pod:296
17597 msgid "B<--progress-bars>"
17598 msgstr ""
17599
17600 # type: textblock
17601 #: ../fish/guestfish.pod:298
17602 msgid "Enable progress bars, even when guestfish is used non-interactively."
17603 msgstr ""
17604
17605 # type: textblock
17606 #: ../fish/guestfish.pod:300
17607 msgid ""
17608 "Progress bars are enabled by default when guestfish is used as an "
17609 "interactive shell."
17610 msgstr ""
17611
17612 # type: =item
17613 #: ../fish/guestfish.pod:303
17614 msgid "B<--no-progress-bars>"
17615 msgstr ""
17616
17617 # type: textblock
17618 #: ../fish/guestfish.pod:305
17619 msgid "Disable progress bars."
17620 msgstr ""
17621
17622 # type: =item
17623 #: ../fish/guestfish.pod:307
17624 msgid "B<--remote[=pid]>"
17625 msgstr ""
17626
17627 # type: textblock
17628 #: ../fish/guestfish.pod:309
17629 msgid ""
17630 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17631 "CONTROL GUESTFISH OVER A SOCKET> below."
17632 msgstr ""
17633
17634 # type: =item
17635 #: ../fish/guestfish.pod:312 ../fuse/guestmount.pod:196
17636 msgid "B<-r> | B<--ro>"
17637 msgstr ""
17638
17639 # type: textblock
17640 #: ../fish/guestfish.pod:314
17641 msgid ""
17642 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17643 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17644 msgstr ""
17645
17646 # type: textblock
17647 #: ../fish/guestfish.pod:317
17648 msgid ""
17649 "The option must always be used if the disk image or virtual machine might be "
17650 "running, and is generally recommended in cases where you don't need write "
17651 "access to the disk."
17652 msgstr ""
17653
17654 # type: textblock
17655 #: ../fish/guestfish.pod:321
17656 msgid ""
17657 "Note that prepared disk images created with I<-N> are not affected by the "
17658 "I<--ro> option."
17659 msgstr ""
17660
17661 # type: textblock
17662 #: ../fish/guestfish.pod:324
17663 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17664 msgstr ""
17665
17666 # type: =item
17667 #: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:208
17668 msgid "B<--selinux>"
17669 msgstr ""
17670
17671 # type: textblock
17672 #: ../fish/guestfish.pod:328
17673 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17674 msgstr ""
17675
17676 # type: =item
17677 #: ../fish/guestfish.pod:330 ../fuse/guestmount.pod:212
17678 msgid "B<-v> | B<--verbose>"
17679 msgstr ""
17680
17681 # type: textblock
17682 #: ../fish/guestfish.pod:332
17683 msgid ""
17684 "Enable very verbose messages.  This is particularly useful if you find a bug."
17685 msgstr ""
17686
17687 # type: =item
17688 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:216
17689 msgid "B<-V> | B<--version>"
17690 msgstr ""
17691
17692 # type: textblock
17693 #: ../fish/guestfish.pod:337
17694 msgid "Display the guestfish / libguestfs version number and exit."
17695 msgstr ""
17696
17697 # type: =item
17698 #: ../fish/guestfish.pod:339 ../fuse/guestmount.pod:220
17699 msgid "B<-w> | B<--rw>"
17700 msgstr ""
17701
17702 # type: textblock
17703 #: ../fish/guestfish.pod:341
17704 msgid ""
17705 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17706 "WRITE> below."
17707 msgstr ""
17708
17709 # type: =item
17710 #: ../fish/guestfish.pod:344
17711 msgid "B<-x>"
17712 msgstr ""
17713
17714 # type: textblock
17715 #: ../fish/guestfish.pod:346
17716 msgid "Echo each command before executing it."
17717 msgstr ""
17718
17719 # type: =head1
17720 #: ../fish/guestfish.pod:350
17721 msgid "COMMANDS ON COMMAND LINE"
17722 msgstr ""
17723
17724 # type: textblock
17725 #: ../fish/guestfish.pod:352
17726 msgid ""
17727 "Any additional (non-option) arguments are treated as commands to execute."
17728 msgstr ""
17729
17730 # type: textblock
17731 #: ../fish/guestfish.pod:355
17732 msgid ""
17733 "Commands to execute should be separated by a colon (C<:>), where the colon "
17734 "is a separate parameter.  Thus:"
17735 msgstr ""
17736
17737 # type: verbatim
17738 #: ../fish/guestfish.pod:358
17739 #, no-wrap
17740 msgid ""
17741 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17742 "\n"
17743 msgstr ""
17744
17745 # type: textblock
17746 #: ../fish/guestfish.pod:360
17747 msgid ""
17748 "If there are no additional arguments, then we enter a shell, either an "
17749 "interactive shell with a prompt (if the input is a terminal) or a non-"
17750 "interactive shell."
17751 msgstr ""
17752
17753 # type: textblock
17754 #: ../fish/guestfish.pod:364
17755 msgid ""
17756 "In either command line mode or non-interactive shell, the first command that "
17757 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17758 "prompt) if a command fails, you can continue to enter commands."
17759 msgstr ""
17760
17761 # type: =head1
17762 #: ../fish/guestfish.pod:369
17763 msgid "USING launch (OR run)"
17764 msgstr ""
17765
17766 # type: textblock
17767 #: ../fish/guestfish.pod:371
17768 msgid ""
17769 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17770 "then launch it, then mount any disks you need, and finally issue actions/"
17771 "commands.  So the general order of the day is:"
17772 msgstr ""
17773
17774 # type: textblock
17775 #: ../fish/guestfish.pod:379
17776 msgid "add or -a/--add"
17777 msgstr ""
17778
17779 # type: textblock
17780 #: ../fish/guestfish.pod:383
17781 msgid "launch (aka run)"
17782 msgstr ""
17783
17784 # type: textblock
17785 #: ../fish/guestfish.pod:387
17786 msgid "mount or -m/--mount"
17787 msgstr ""
17788
17789 # type: textblock
17790 #: ../fish/guestfish.pod:391
17791 msgid "any other commands"
17792 msgstr ""
17793
17794 # type: textblock
17795 #: ../fish/guestfish.pod:395
17796 msgid ""
17797 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17798 "guest before mounting or performing any other commands."
17799 msgstr ""
17800
17801 # type: textblock
17802 #: ../fish/guestfish.pod:398
17803 msgid ""
17804 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17805 "I<--new> options were given then C<run> is done automatically, simply "
17806 "because guestfish can't perform the action you asked for without doing this."
17807 msgstr ""
17808
17809 # type: =head1
17810 #: ../fish/guestfish.pod:403
17811 msgid "OPENING DISKS FOR READ AND WRITE"
17812 msgstr ""
17813
17814 # type: textblock
17815 #: ../fish/guestfish.pod:405
17816 msgid ""
17817 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17818 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17819 "open disk images read-only or for writing."
17820 msgstr ""
17821
17822 # type: textblock
17823 #: ../fish/guestfish.pod:409
17824 msgid ""
17825 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17826 "disk images supplied on the command line for write.  To open a disk image "
17827 "read-only you have to do I<-a image --ro>."
17828 msgstr ""
17829
17830 # type: textblock
17831 #: ../fish/guestfish.pod:413
17832 msgid ""
17833 "This matters: If you accidentally open a live VM disk image writable then "
17834 "you will cause irreversible disk corruption."
17835 msgstr ""
17836
17837 # type: textblock
17838 #: ../fish/guestfish.pod:416
17839 msgid ""
17840 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17841 "images will be opened read-only.  You will have to either specify "
17842 "I<guestfish --rw> or change a configuration file in order to get write "
17843 "access for disk images specified by those other command line options."
17844 msgstr ""
17845
17846 # type: textblock
17847 #: ../fish/guestfish.pod:421
17848 msgid ""
17849 "This version of guestfish has a I<--rw> option which does nothing (it is "
17850 "already the default).  However it is highly recommended that you use this "
17851 "option to indicate that guestfish needs write access, and to prepare your "
17852 "scripts for the day when this option will be required for write access."
17853 msgstr ""
17854
17855 # type: textblock
17856 #: ../fish/guestfish.pod:427
17857 msgid ""
17858 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17859 "other libguestfs program apart from guestfish and guestmount."
17860 msgstr ""
17861
17862 # type: =head1
17863 #: ../fish/guestfish.pod:430
17864 msgid "QUOTING"
17865 msgstr ""
17866
17867 # type: textblock
17868 #: ../fish/guestfish.pod:432
17869 msgid ""
17870 "You can quote ordinary parameters using either single or double quotes.  For "
17871 "example:"
17872 msgstr ""
17873
17874 # type: verbatim
17875 #: ../fish/guestfish.pod:435
17876 #, no-wrap
17877 msgid ""
17878 " add \"file with a space.img\"\n"
17879 "\n"
17880 msgstr ""
17881
17882 # type: verbatim
17883 #: ../fish/guestfish.pod:437
17884 #, no-wrap
17885 msgid ""
17886 " rm '/file name'\n"
17887 "\n"
17888 msgstr ""
17889
17890 # type: verbatim
17891 #: ../fish/guestfish.pod:439
17892 #, no-wrap
17893 msgid ""
17894 " rm '/\"'\n"
17895 "\n"
17896 msgstr ""
17897
17898 # type: textblock
17899 #: ../fish/guestfish.pod:441
17900 msgid ""
17901 "A few commands require a list of strings to be passed.  For these, use a "
17902 "whitespace-separated list, enclosed in quotes.  Strings containing "
17903 "whitespace to be passed through must be enclosed in single quotes.  A "
17904 "literal single quote must be escaped with a backslash."
17905 msgstr ""
17906
17907 # type: verbatim
17908 #: ../fish/guestfish.pod:446
17909 #, no-wrap
17910 msgid ""
17911 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17912 " command \"/bin/echo 'foo      bar'\"\n"
17913 " command \"/bin/echo \\'foo\\'\"\n"
17914 "\n"
17915 msgstr ""
17916
17917 # type: =head1
17918 #: ../fish/guestfish.pod:450
17919 msgid "OPTIONAL ARGUMENTS"
17920 msgstr ""
17921
17922 # type: textblock
17923 #: ../fish/guestfish.pod:452
17924 msgid ""
17925 "Some commands take optional arguments.  These arguments appear in this "
17926 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17927 msgstr ""
17928
17929 # type: verbatim
17930 #: ../fish/guestfish.pod:456
17931 #, no-wrap
17932 msgid ""
17933 " add-drive-opts filename\n"
17934 "\n"
17935 msgstr ""
17936
17937 # type: verbatim
17938 #: ../fish/guestfish.pod:458
17939 #, no-wrap
17940 msgid ""
17941 " add-drive-opts filename readonly:true\n"
17942 "\n"
17943 msgstr ""
17944
17945 # type: verbatim
17946 #: ../fish/guestfish.pod:460
17947 #, no-wrap
17948 msgid ""
17949 " add-drive-opts filename format:qcow2 readonly:false\n"
17950 "\n"
17951 msgstr ""
17952
17953 # type: textblock
17954 #: ../fish/guestfish.pod:462
17955 msgid ""
17956 "Each optional argument can appear at most once.  All optional arguments must "
17957 "appear after the required ones."
17958 msgstr ""
17959
17960 # type: =head1
17961 #: ../fish/guestfish.pod:465
17962 msgid "NUMBERS"
17963 msgstr ""
17964
17965 # type: textblock
17966 #: ../fish/guestfish.pod:467
17967 msgid ""
17968 "This section applies to all commands which can take integers as parameters."
17969 msgstr ""
17970
17971 # type: =head2
17972 #: ../fish/guestfish.pod:470
17973 msgid "SIZE SUFFIX"
17974 msgstr ""
17975
17976 # type: textblock
17977 #: ../fish/guestfish.pod:472
17978 msgid ""
17979 "When the command takes a parameter measured in bytes, you can use one of the "
17980 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17981 msgstr ""
17982
17983 # type: =item
17984 #: ../fish/guestfish.pod:478
17985 msgid "B<k> or B<K> or B<KiB>"
17986 msgstr ""
17987
17988 # type: textblock
17989 #: ../fish/guestfish.pod:480
17990 msgid "The size in kilobytes (multiplied by 1024)."
17991 msgstr ""
17992
17993 # type: =item
17994 #: ../fish/guestfish.pod:482
17995 msgid "B<KB>"
17996 msgstr ""
17997
17998 # type: textblock
17999 #: ../fish/guestfish.pod:484
18000 msgid "The size in SI 1000 byte units."
18001 msgstr ""
18002
18003 # type: =item
18004 #: ../fish/guestfish.pod:486
18005 msgid "B<M> or B<MiB>"
18006 msgstr ""
18007
18008 # type: textblock
18009 #: ../fish/guestfish.pod:488
18010 msgid "The size in megabytes (multiplied by 1048576)."
18011 msgstr ""
18012
18013 # type: =item
18014 #: ../fish/guestfish.pod:490
18015 msgid "B<MB>"
18016 msgstr ""
18017
18018 # type: textblock
18019 #: ../fish/guestfish.pod:492
18020 msgid "The size in SI 1000000 byte units."
18021 msgstr ""
18022
18023 # type: =item
18024 #: ../fish/guestfish.pod:494
18025 msgid "B<G> or B<GiB>"
18026 msgstr ""
18027
18028 # type: textblock
18029 #: ../fish/guestfish.pod:496
18030 msgid "The size in gigabytes (multiplied by 2**30)."
18031 msgstr ""
18032
18033 # type: =item
18034 #: ../fish/guestfish.pod:498
18035 msgid "B<GB>"
18036 msgstr ""
18037
18038 # type: textblock
18039 #: ../fish/guestfish.pod:500
18040 msgid "The size in SI 10**9 byte units."
18041 msgstr ""
18042
18043 # type: =item
18044 #: ../fish/guestfish.pod:502
18045 msgid "B<T> or B<TiB>"
18046 msgstr ""
18047
18048 # type: textblock
18049 #: ../fish/guestfish.pod:504
18050 msgid "The size in terabytes (multiplied by 2**40)."
18051 msgstr ""
18052
18053 # type: =item
18054 #: ../fish/guestfish.pod:506
18055 msgid "B<TB>"
18056 msgstr ""
18057
18058 # type: textblock
18059 #: ../fish/guestfish.pod:508
18060 msgid "The size in SI 10**12 byte units."
18061 msgstr ""
18062
18063 # type: =item
18064 #: ../fish/guestfish.pod:510
18065 msgid "B<P> or B<PiB>"
18066 msgstr ""
18067
18068 # type: textblock
18069 #: ../fish/guestfish.pod:512
18070 msgid "The size in petabytes (multiplied by 2**50)."
18071 msgstr ""
18072
18073 # type: =item
18074 #: ../fish/guestfish.pod:514
18075 msgid "B<PB>"
18076 msgstr ""
18077
18078 # type: textblock
18079 #: ../fish/guestfish.pod:516
18080 msgid "The size in SI 10**15 byte units."
18081 msgstr ""
18082
18083 # type: =item
18084 #: ../fish/guestfish.pod:518
18085 msgid "B<E> or B<EiB>"
18086 msgstr ""
18087
18088 # type: textblock
18089 #: ../fish/guestfish.pod:520
18090 msgid "The size in exabytes (multiplied by 2**60)."
18091 msgstr ""
18092
18093 # type: =item
18094 #: ../fish/guestfish.pod:522
18095 msgid "B<EB>"
18096 msgstr ""
18097
18098 # type: textblock
18099 #: ../fish/guestfish.pod:524
18100 msgid "The size in SI 10**18 byte units."
18101 msgstr ""
18102
18103 # type: =item
18104 #: ../fish/guestfish.pod:526
18105 msgid "B<Z> or B<ZiB>"
18106 msgstr ""
18107
18108 # type: textblock
18109 #: ../fish/guestfish.pod:528
18110 msgid "The size in zettabytes (multiplied by 2**70)."
18111 msgstr ""
18112
18113 # type: =item
18114 #: ../fish/guestfish.pod:530
18115 msgid "B<ZB>"
18116 msgstr ""
18117
18118 # type: textblock
18119 #: ../fish/guestfish.pod:532
18120 msgid "The size in SI 10**21 byte units."
18121 msgstr ""
18122
18123 # type: =item
18124 #: ../fish/guestfish.pod:534
18125 msgid "B<Y> or B<YiB>"
18126 msgstr ""
18127
18128 # type: textblock
18129 #: ../fish/guestfish.pod:536
18130 msgid "The size in yottabytes (multiplied by 2**80)."
18131 msgstr ""
18132
18133 # type: =item
18134 #: ../fish/guestfish.pod:538
18135 msgid "B<YB>"
18136 msgstr ""
18137
18138 # type: textblock
18139 #: ../fish/guestfish.pod:540
18140 msgid "The size in SI 10**24 byte units."
18141 msgstr ""
18142
18143 # type: verbatim
18144 #: ../fish/guestfish.pod:546
18145 #, no-wrap
18146 msgid ""
18147 " truncate-size /file 1G\n"
18148 "\n"
18149 msgstr ""
18150
18151 # type: textblock
18152 #: ../fish/guestfish.pod:548
18153 msgid "would truncate the file to 1 gigabyte."
18154 msgstr ""
18155
18156 # type: textblock
18157 #: ../fish/guestfish.pod:550
18158 msgid ""
18159 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18160 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18161 "suffix will probably not do what you expect."
18162 msgstr ""
18163
18164 # type: =head2
18165 #: ../fish/guestfish.pod:554
18166 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18167 msgstr ""
18168
18169 # type: textblock
18170 #: ../fish/guestfish.pod:556
18171 msgid ""
18172 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18173 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18174 msgstr ""
18175
18176 # type: verbatim
18177 #: ../fish/guestfish.pod:559
18178 #, no-wrap
18179 msgid ""
18180 " 1234      decimal number 1234\n"
18181 " 02322     octal number, equivalent to decimal 1234\n"
18182 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18183 "\n"
18184 msgstr ""
18185
18186 # type: textblock
18187 #: ../fish/guestfish.pod:563
18188 msgid ""
18189 "When using the C<chmod> command, you almost always want to specify an octal "
18190 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18191 "L<chmod(1)> program):"
18192 msgstr ""
18193
18194 # type: verbatim
18195 #: ../fish/guestfish.pod:567
18196 #, no-wrap
18197 msgid ""
18198 " chmod 0777 /public  # OK\n"
18199 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18200 "\n"
18201 msgstr ""
18202
18203 # type: textblock
18204 #: ../fish/guestfish.pod:570
18205 msgid ""
18206 "Commands that return numbers usually print them in decimal, but some "
18207 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18208 "octal, preceeded by C<0>)."
18209 msgstr ""
18210
18211 # type: =head1
18212 #: ../fish/guestfish.pod:574
18213 msgid "WILDCARDS AND GLOBBING"
18214 msgstr ""
18215
18216 # type: textblock
18217 #: ../fish/guestfish.pod:576
18218 msgid ""
18219 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18220 "(globbing) by default.  So for example the following will not do what you "
18221 "expect:"
18222 msgstr ""
18223
18224 # type: verbatim
18225 #: ../fish/guestfish.pod:580
18226 #, no-wrap
18227 msgid ""
18228 " rm-rf /home/*\n"
18229 "\n"
18230 msgstr ""
18231
18232 # type: textblock
18233 #: ../fish/guestfish.pod:582
18234 msgid ""
18235 "Assuming you don't have a directory called literally C</home/*> then the "
18236 "above command will return an error."
18237 msgstr ""
18238
18239 # type: textblock
18240 #: ../fish/guestfish.pod:585
18241 msgid "To perform wildcard expansion, use the C<glob> command."
18242 msgstr ""
18243
18244 # type: verbatim
18245 #: ../fish/guestfish.pod:587
18246 #, no-wrap
18247 msgid ""
18248 " glob rm-rf /home/*\n"
18249 "\n"
18250 msgstr ""
18251
18252 # type: textblock
18253 #: ../fish/guestfish.pod:589
18254 msgid ""
18255 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18256 "many times), equivalent to:"
18257 msgstr ""
18258
18259 # type: verbatim
18260 #: ../fish/guestfish.pod:592
18261 #, no-wrap
18262 msgid ""
18263 " rm-rf /home/jim\n"
18264 " rm-rf /home/joe\n"
18265 " rm-rf /home/mary\n"
18266 "\n"
18267 msgstr ""
18268
18269 # type: textblock
18270 #: ../fish/guestfish.pod:596
18271 msgid "C<glob> only works on simple guest paths and not on device names."
18272 msgstr ""
18273
18274 # type: textblock
18275 #: ../fish/guestfish.pod:598
18276 msgid ""
18277 "If you have several parameters, each containing a wildcard, then glob will "
18278 "perform a Cartesian product."
18279 msgstr ""
18280
18281 # type: =head1
18282 #: ../fish/guestfish.pod:601
18283 msgid "COMMENTS"
18284 msgstr ""
18285
18286 # type: textblock
18287 #: ../fish/guestfish.pod:603
18288 msgid ""
18289 "Any line which starts with a I<#> character is treated as a comment and "
18290 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18291 "a command.  For example:"
18292 msgstr ""
18293
18294 # type: verbatim
18295 #: ../fish/guestfish.pod:607
18296 #, no-wrap
18297 msgid ""
18298 " # this is a comment\n"
18299 "         # this is a comment\n"
18300 " foo # NOT a comment\n"
18301 "\n"
18302 msgstr ""
18303
18304 # type: textblock
18305 #: ../fish/guestfish.pod:611
18306 msgid "Blank lines are also ignored."
18307 msgstr ""
18308
18309 # type: =head1
18310 #: ../fish/guestfish.pod:613
18311 msgid "RUNNING COMMANDS LOCALLY"
18312 msgstr ""
18313
18314 # type: textblock
18315 #: ../fish/guestfish.pod:615
18316 msgid ""
18317 "Any line which starts with a I<!> character is treated as a command sent to "
18318 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18319 msgstr ""
18320
18321 # type: verbatim
18322 #: ../fish/guestfish.pod:619
18323 #, no-wrap
18324 msgid ""
18325 " !mkdir local\n"
18326 " tgz-out /remote local/remote-data.tar.gz\n"
18327 "\n"
18328 msgstr ""
18329
18330 # type: textblock
18331 #: ../fish/guestfish.pod:622
18332 msgid ""
18333 "will create a directory C<local> on the host, and then export the contents "
18334 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18335 "(See C<tgz-out>)."
18336 msgstr ""
18337
18338 # type: textblock
18339 #: ../fish/guestfish.pod:626
18340 msgid ""
18341 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18342 "effect, due to the way that subprocesses work in Unix."
18343 msgstr ""
18344
18345 # type: =head1
18346 #: ../fish/guestfish.pod:629
18347 msgid "PIPES"
18348 msgstr ""
18349
18350 # type: textblock
18351 #: ../fish/guestfish.pod:631
18352 msgid ""
18353 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18354 "command (a guestfish command) to the second command (any host command).  For "
18355 "example:"
18356 msgstr ""
18357
18358 # type: verbatim
18359 #: ../fish/guestfish.pod:635
18360 #, no-wrap
18361 msgid ""
18362 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18363 "\n"
18364 msgstr ""
18365
18366 # type: textblock
18367 #: ../fish/guestfish.pod:637
18368 msgid ""
18369 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18370 "program).  The above command would list all accounts in the guest filesystem "
18371 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18372 msgstr ""
18373
18374 # type: verbatim
18375 #: ../fish/guestfish.pod:642
18376 #, no-wrap
18377 msgid ""
18378 " hexdump /bin/ls | head\n"
18379 " list-devices | tail -1\n"
18380 " tgz-out / - | tar ztf -\n"
18381 "\n"
18382 msgstr ""
18383
18384 # type: textblock
18385 #: ../fish/guestfish.pod:646
18386 msgid ""
18387 "The space before the pipe symbol is required, any space after the pipe "
18388 "symbol is optional.  Everything after the pipe symbol is just passed "
18389 "straight to the host shell, so it can contain redirections, globs and "
18390 "anything else that makes sense on the host side."
18391 msgstr ""
18392
18393 # type: textblock
18394 #: ../fish/guestfish.pod:651
18395 msgid ""
18396 "To use a literal argument which begins with a pipe symbol, you have to quote "
18397 "it, eg:"
18398 msgstr ""
18399
18400 # type: verbatim
18401 #: ../fish/guestfish.pod:654
18402 #, no-wrap
18403 msgid ""
18404 " echo \"|\"\n"
18405 "\n"
18406 msgstr ""
18407
18408 # type: =head1
18409 #: ../fish/guestfish.pod:656
18410 msgid "HOME DIRECTORIES"
18411 msgstr ""
18412
18413 # type: textblock
18414 #: ../fish/guestfish.pod:658
18415 msgid ""
18416 "If a parameter starts with the character C<~> then the tilde may be expanded "
18417 "as a home directory path (either C<~> for the current user's home directory, "
18418 "or C<~user> for another user)."
18419 msgstr ""
18420
18421 # type: textblock
18422 #: ../fish/guestfish.pod:662
18423 msgid ""
18424 "Note that home directory expansion happens for users known I<on the host>, "
18425 "not in the guest filesystem."
18426 msgstr ""
18427
18428 # type: textblock
18429 #: ../fish/guestfish.pod:665
18430 msgid ""
18431 "To use a literal argument which begins with a tilde, you have to quote it, "
18432 "eg:"
18433 msgstr ""
18434
18435 # type: verbatim
18436 #: ../fish/guestfish.pod:668
18437 #, no-wrap
18438 msgid ""
18439 " echo \"~\"\n"
18440 "\n"
18441 msgstr ""
18442
18443 # type: textblock
18444 #: ../fish/guestfish.pod:672
18445 msgid ""
18446 "Libguestfs has some support for Linux guests encrypted according to the "
18447 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18448 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18449 "LUKS is supported."
18450 msgstr ""
18451
18452 # type: textblock
18453 #: ../fish/guestfish.pod:677
18454 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18455 msgstr ""
18456
18457 # type: verbatim
18458 #: ../fish/guestfish.pod:679
18459 #, no-wrap
18460 msgid ""
18461 " ><fs> vfs-type /dev/sda2\n"
18462 " crypto_LUKS\n"
18463 "\n"
18464 msgstr ""
18465
18466 # type: textblock
18467 #: ../fish/guestfish.pod:682
18468 msgid ""
18469 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18470 "device called C</dev/mapper/luksdev>."
18471 msgstr ""
18472
18473 # type: verbatim
18474 #: ../fish/guestfish.pod:685
18475 #, no-wrap
18476 msgid ""
18477 " ><fs> luks-open /dev/sda2 luksdev\n"
18478 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18479 "\n"
18480 msgstr ""
18481
18482 # type: textblock
18483 #: ../fish/guestfish.pod:688
18484 msgid ""
18485 "Finally you have to tell LVM to scan for volume groups on the newly created "
18486 "mapper device:"
18487 msgstr ""
18488
18489 # type: verbatim
18490 #: ../fish/guestfish.pod:691
18491 #, no-wrap
18492 msgid ""
18493 " vgscan\n"
18494 " vg-activate-all true\n"
18495 "\n"
18496 msgstr ""
18497
18498 # type: textblock
18499 #: ../fish/guestfish.pod:694
18500 msgid "The logical volume(s) can now be mounted in the usual way."
18501 msgstr ""
18502
18503 # type: textblock
18504 #: ../fish/guestfish.pod:696
18505 msgid ""
18506 "Before closing a LUKS device you must unmount any logical volumes on it and "
18507 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18508 "one.  Then you can close the mapper device:"
18509 msgstr ""
18510
18511 # type: verbatim
18512 #: ../fish/guestfish.pod:700
18513 #, no-wrap
18514 msgid ""
18515 " vg-activate false /dev/VG\n"
18516 " luks-close /dev/mapper/luksdev\n"
18517 "\n"
18518 msgstr ""
18519
18520 # type: =head1
18521 #: ../fish/guestfish.pod:703
18522 msgid "WINDOWS PATHS"
18523 msgstr ""
18524
18525 # type: textblock
18526 #: ../fish/guestfish.pod:705
18527 msgid ""
18528 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18529 "(with some limitations).  The following commands are equivalent:"
18530 msgstr ""
18531
18532 # type: verbatim
18533 #: ../fish/guestfish.pod:708
18534 #, no-wrap
18535 msgid ""
18536 " file /WINDOWS/system32/config/system.LOG\n"
18537 "\n"
18538 msgstr ""
18539
18540 # type: verbatim
18541 #: ../fish/guestfish.pod:710
18542 #, no-wrap
18543 msgid ""
18544 " file win:/windows/system32/config/system.log\n"
18545 "\n"
18546 msgstr ""
18547
18548 # type: verbatim
18549 #: ../fish/guestfish.pod:712
18550 #, no-wrap
18551 msgid ""
18552 " file win:\\windows\\system32\\config\\system.log\n"
18553 "\n"
18554 msgstr ""
18555
18556 # type: verbatim
18557 #: ../fish/guestfish.pod:714
18558 #, no-wrap
18559 msgid ""
18560 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18561 "\n"
18562 msgstr ""
18563
18564 # type: textblock
18565 #: ../fish/guestfish.pod:716
18566 msgid ""
18567 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18568 "handles case insensitivity like Windows would.  This only works in argument "
18569 "positions that expect a path."
18570 msgstr ""
18571
18572 # type: =head1
18573 #: ../fish/guestfish.pod:720
18574 msgid "UPLOADING AND DOWNLOADING FILES"
18575 msgstr ""
18576
18577 # type: textblock
18578 #: ../fish/guestfish.pod:722
18579 msgid ""
18580 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18581 "others which upload from or download to a local file, you can use the "
18582 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18583 msgstr ""
18584
18585 # type: verbatim
18586 #: ../fish/guestfish.pod:726
18587 #, no-wrap
18588 msgid ""
18589 " upload - /foo\n"
18590 "\n"
18591 msgstr ""
18592
18593 # type: textblock
18594 #: ../fish/guestfish.pod:728
18595 msgid ""
18596 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18597 msgstr ""
18598
18599 # type: verbatim
18600 #: ../fish/guestfish.pod:731
18601 #, no-wrap
18602 msgid ""
18603 " tar-out /etc - | tar tf -\n"
18604 "\n"
18605 msgstr ""
18606
18607 # type: textblock
18608 #: ../fish/guestfish.pod:733
18609 msgid ""
18610 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18611 "command (see L</PIPES>)."
18612 msgstr ""
18613
18614 # type: textblock
18615 #: ../fish/guestfish.pod:736
18616 msgid ""
18617 "When using C<-> to read from stdin, the input is read up to the end of "
18618 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18619 "some arbitrary end marker:"
18620 msgstr ""
18621
18622 # type: verbatim
18623 #: ../fish/guestfish.pod:740
18624 #, no-wrap
18625 msgid ""
18626 " upload -<<END /foo\n"
18627 " input line 1\n"
18628 " input line 2\n"
18629 " input line 3\n"
18630 " END\n"
18631 "\n"
18632 msgstr ""
18633
18634 # type: textblock
18635 #: ../fish/guestfish.pod:746
18636 msgid ""
18637 "Any string of characters can be used instead of C<END>.  The end marker must "
18638 "appear on a line of its own, without any preceeding or following characters "
18639 "(not even spaces)."
18640 msgstr ""
18641
18642 # type: textblock
18643 #: ../fish/guestfish.pod:750
18644 msgid ""
18645 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18646 "upload local files (so-called \"FileIn\" parameters in the generator)."
18647 msgstr ""
18648
18649 # type: =head1
18650 #: ../fish/guestfish.pod:753
18651 msgid "EXIT ON ERROR BEHAVIOUR"
18652 msgstr ""
18653
18654 # type: textblock
18655 #: ../fish/guestfish.pod:755
18656 msgid ""
18657 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18658 "taking commands from a human over a tty), and will exit on the first error "
18659 "in non-interactive mode (scripts, commands given on the command line)."
18660 msgstr ""
18661
18662 # type: textblock
18663 #: ../fish/guestfish.pod:760
18664 msgid ""
18665 "If you prefix a command with a I<-> character, then that command will not "
18666 "cause guestfish to exit, even if that (one) command returns an error."
18667 msgstr ""
18668
18669 # type: =head1
18670 #: ../fish/guestfish.pod:764
18671 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18672 msgstr ""
18673
18674 # type: textblock
18675 #: ../fish/guestfish.pod:766
18676 msgid ""
18677 "Guestfish can be remote-controlled over a socket.  This is useful "
18678 "particularly in shell scripts where you want to make several different "
18679 "changes to a filesystem, but you don't want the overhead of starting up a "
18680 "guestfish process each time."
18681 msgstr ""
18682
18683 # type: textblock
18684 #: ../fish/guestfish.pod:771
18685 msgid "Start a guestfish server process using:"
18686 msgstr ""
18687
18688 # type: verbatim
18689 #: ../fish/guestfish.pod:773
18690 #, no-wrap
18691 msgid ""
18692 " eval \"`guestfish --listen`\"\n"
18693 "\n"
18694 msgstr ""
18695
18696 # type: textblock
18697 #: ../fish/guestfish.pod:775
18698 msgid "and then send it commands by doing:"
18699 msgstr ""
18700
18701 # type: verbatim
18702 #: ../fish/guestfish.pod:777
18703 #, no-wrap
18704 msgid ""
18705 " guestfish --remote cmd [...]\n"
18706 "\n"
18707 msgstr ""
18708
18709 # type: textblock
18710 #: ../fish/guestfish.pod:779
18711 msgid "To cause the server to exit, send it the exit command:"
18712 msgstr ""
18713
18714 # type: verbatim
18715 #: ../fish/guestfish.pod:781
18716 #, no-wrap
18717 msgid ""
18718 " guestfish --remote exit\n"
18719 "\n"
18720 msgstr ""
18721
18722 # type: textblock
18723 #: ../fish/guestfish.pod:783
18724 msgid ""
18725 "Note that the server will normally exit if there is an error in a command.  "
18726 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18727 "BEHAVIOUR>."
18728 msgstr ""
18729
18730 # type: =head2
18731 #: ../fish/guestfish.pod:787
18732 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18733 msgstr ""
18734
18735 # type: textblock
18736 #: ../fish/guestfish.pod:789
18737 msgid ""
18738 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18739 "is how the I<--remote> option knows where to send the commands.  You can "
18740 "have several guestfish listener processes running using:"
18741 msgstr ""
18742
18743 # type: verbatim
18744 #: ../fish/guestfish.pod:793
18745 #, no-wrap
18746 msgid ""
18747 " eval \"`guestfish --listen`\"\n"
18748 " pid1=$GUESTFISH_PID\n"
18749 " eval \"`guestfish --listen`\"\n"
18750 " pid2=$GUESTFISH_PID\n"
18751 " ...\n"
18752 " guestfish --remote=$pid1 cmd\n"
18753 " guestfish --remote=$pid2 cmd\n"
18754 "\n"
18755 msgstr ""
18756
18757 # type: =head2
18758 #: ../fish/guestfish.pod:801
18759 msgid "REMOTE CONTROL AND CSH"
18760 msgstr ""
18761
18762 # type: textblock
18763 #: ../fish/guestfish.pod:803
18764 msgid ""
18765 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18766 "option:"
18767 msgstr ""
18768
18769 # type: verbatim
18770 #: ../fish/guestfish.pod:806
18771 #, no-wrap
18772 msgid ""
18773 " eval \"`guestfish --listen --csh`\"\n"
18774 "\n"
18775 msgstr ""
18776
18777 # type: =head2
18778 #: ../fish/guestfish.pod:808
18779 msgid "REMOTE CONTROL DETAILS"
18780 msgstr ""
18781
18782 # type: textblock
18783 #: ../fish/guestfish.pod:810
18784 msgid ""
18785 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18786 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18787 "and C<$PID> is the process ID of the server."
18788 msgstr ""
18789
18790 # type: textblock
18791 #: ../fish/guestfish.pod:814
18792 msgid "Guestfish client and server versions must match exactly."
18793 msgstr ""
18794
18795 # type: =head1
18796 #: ../fish/guestfish.pod:816
18797 msgid "PREPARED DISK IMAGES"
18798 msgstr ""
18799
18800 # type: textblock
18801 #: ../fish/guestfish.pod:818
18802 msgid ""
18803 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18804 "preformatted disk images that guestfish can make for you to save typing.  "
18805 "This is particularly useful for testing purposes.  This option is used "
18806 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18807 "can be mixed with I<-a>)."
18808 msgstr ""
18809
18810 # type: textblock
18811 #: ../fish/guestfish.pod:824
18812 msgid ""
18813 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18814 "the second and so on.  Existing files in the current directory are "
18815 "I<overwritten>."
18816 msgstr ""
18817
18818 # type: textblock
18819 #: ../fish/guestfish.pod:828
18820 msgid ""
18821 "The type briefly describes how the disk should be sized, partitioned, how "
18822 "filesystem(s) should be created, and how content should be added.  "
18823 "Optionally the type can be followed by extra parameters, separated by C<:> "
18824 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18825 "allocated disk, containing a single partition, with the partition formatted "
18826 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18827 "disk instead."
18828 msgstr ""
18829
18830 # type: textblock
18831 #: ../fish/guestfish.pod:836
18832 msgid "To list the available types and any extra parameters they take, run:"
18833 msgstr ""
18834
18835 # type: textblock
18836 #: ../fish/guestfish.pod:840
18837 msgid ""
18838 "Note that the prepared filesystem is not mounted.  You would usually have to "
18839 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18840 msgstr ""
18841
18842 # type: textblock
18843 #: ../fish/guestfish.pod:844
18844 msgid ""
18845 "If any I<-N> or I<--new> options are given, the guest is automatically "
18846 "launched."
18847 msgstr ""
18848
18849 # type: textblock
18850 #: ../fish/guestfish.pod:849
18851 msgid "Create a 100MB disk with an ext4-formatted partition:"
18852 msgstr ""
18853
18854 # type: verbatim
18855 #: ../fish/guestfish.pod:851
18856 #, no-wrap
18857 msgid ""
18858 " guestfish -N fs:ext4\n"
18859 "\n"
18860 msgstr ""
18861
18862 # type: textblock
18863 #: ../fish/guestfish.pod:853
18864 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18865 msgstr ""
18866
18867 # type: verbatim
18868 #: ../fish/guestfish.pod:855
18869 #, no-wrap
18870 msgid ""
18871 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18872 "\n"
18873 msgstr ""
18874
18875 # type: textblock
18876 #: ../fish/guestfish.pod:857
18877 msgid "Create a blank 200MB disk:"
18878 msgstr ""
18879
18880 # type: verbatim
18881 #: ../fish/guestfish.pod:859
18882 #, no-wrap
18883 msgid ""
18884 " guestfish -N disk:200M\n"
18885 "\n"
18886 msgstr ""
18887
18888 # type: =head1
18889 #: ../fish/guestfish.pod:861
18890 msgid "PROGRESS BARS"
18891 msgstr ""
18892
18893 # type: textblock
18894 #: ../fish/guestfish.pod:863
18895 msgid ""
18896 "Some (not all) long-running commands send progress notification messages as "
18897 "they are running.  Guestfish turns these messages into progress bars."
18898 msgstr ""
18899
18900 # type: textblock
18901 #: ../fish/guestfish.pod:867
18902 msgid ""
18903 "When a command that supports progress bars takes longer than two seconds to "
18904 "run, and if progress bars are enabled, then you will see one appearing below "
18905 "the command:"
18906 msgstr ""
18907
18908 # type: verbatim
18909 #: ../fish/guestfish.pod:871
18910 #, no-wrap
18911 msgid ""
18912 " ><fs> copy-size /large-file /another-file 2048M\n"
18913 " / 10% [#####-----------------------------------------] 00:30\n"
18914 "\n"
18915 msgstr ""
18916
18917 # type: textblock
18918 #: ../fish/guestfish.pod:874
18919 msgid ""
18920 "The spinner on the left hand side moves round once for every progress "
18921 "notification received from the backend.  This is a (reasonably) golden "
18922 "assurance that the command is \"doing something\" even if the progress bar "
18923 "is not moving, because the command is able to send the progress "
18924 "notifications.  When the bar reaches 100% and the command finishes, the "
18925 "spinner disappears."
18926 msgstr ""
18927
18928 # type: textblock
18929 #: ../fish/guestfish.pod:881
18930 msgid ""
18931 "Progress bars are enabled by default when guestfish is used interactively.  "
18932 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18933 "and you can disable them completely using I<--no-progress-bars>."
18934 msgstr ""
18935
18936 # type: =head1
18937 #: ../fish/guestfish.pod:886
18938 msgid "GUESTFISH COMMANDS"
18939 msgstr ""
18940
18941 # type: textblock
18942 #: ../fish/guestfish.pod:888
18943 msgid ""
18944 "The commands in this section are guestfish convenience commands, in other "
18945 "words, they are not part of the L<guestfs(3)> API."
18946 msgstr ""
18947
18948 # type: =head2
18949 #: ../fish/guestfish.pod:891
18950 msgid "help"
18951 msgstr ""
18952
18953 # type: verbatim
18954 #: ../fish/guestfish.pod:893
18955 #, no-wrap
18956 msgid ""
18957 " help\n"
18958 " help cmd\n"
18959 "\n"
18960 msgstr ""
18961
18962 # type: textblock
18963 #: ../fish/guestfish.pod:896
18964 msgid "Without any parameter, this provides general help."
18965 msgstr ""
18966
18967 # type: textblock
18968 #: ../fish/guestfish.pod:898
18969 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18970 msgstr ""
18971
18972 # type: =head2
18973 #: ../fish/guestfish.pod:900
18974 msgid "quit | exit"
18975 msgstr ""
18976
18977 # type: textblock
18978 #: ../fish/guestfish.pod:902
18979 msgid "This exits guestfish.  You can also use C<^D> key."
18980 msgstr ""
18981
18982 # type: textblock
18983 #: ../fish/guestfish.pod:904
18984 msgid "@FISH_COMMANDS@"
18985 msgstr ""
18986
18987 # type: =head1
18988 #: ../fish/guestfish.pod:906
18989 msgid "COMMANDS"
18990 msgstr ""
18991
18992 # type: =head1
18993 #: ../fish/guestfish.pod:910 ../test-tool/libguestfs-test-tool.pod:83
18994 msgid "EXIT CODE"
18995 msgstr ""
18996
18997 # type: textblock
18998 #: ../fish/guestfish.pod:912
18999 msgid ""
19000 "guestfish returns 0 if the commands completed without error, or 1 if there "
19001 "was an error."
19002 msgstr ""
19003
19004 # type: =item
19005 #: ../fish/guestfish.pod:919
19006 msgid "EDITOR"
19007 msgstr ""
19008
19009 # type: textblock
19010 #: ../fish/guestfish.pod:921
19011 msgid ""
19012 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19013 "C<vi>."
19014 msgstr ""
19015
19016 # type: =item
19017 #: ../fish/guestfish.pod:924
19018 msgid "GUESTFISH_PID"
19019 msgstr ""
19020
19021 # type: textblock
19022 #: ../fish/guestfish.pod:926
19023 msgid ""
19024 "Used with the I<--remote> option to specify the remote guestfish process to "
19025 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19026 msgstr ""
19027
19028 # type: =item
19029 #: ../fish/guestfish.pod:930
19030 msgid "HEXEDITOR"
19031 msgstr ""
19032
19033 # type: textblock
19034 #: ../fish/guestfish.pod:932
19035 msgid ""
19036 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19037 "not specified, the external L<hexedit(1)> program is used."
19038 msgstr ""
19039
19040 # type: =item
19041 #: ../fish/guestfish.pod:936
19042 msgid "HOME"
19043 msgstr ""
19044
19045 # type: textblock
19046 #: ../fish/guestfish.pod:938
19047 msgid ""
19048 "If compiled with GNU readline support, various files in the home directory "
19049 "can be used.  See L</FILES>."
19050 msgstr ""
19051
19052 # type: textblock
19053 #: ../fish/guestfish.pod:947
19054 msgid ""
19055 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19056 "effect as using the B<-v> option."
19057 msgstr ""
19058
19059 # type: textblock
19060 #: ../fish/guestfish.pod:959
19061 msgid ""
19062 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19063 "the discussion of paths in L<guestfs(3)>."
19064 msgstr ""
19065
19066 # type: textblock
19067 #: ../fish/guestfish.pod:970
19068 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19069 msgstr ""
19070
19071 # type: =item
19072 #: ../fish/guestfish.pod:972
19073 msgid "PAGER"
19074 msgstr ""
19075
19076 # type: textblock
19077 #: ../fish/guestfish.pod:974
19078 msgid ""
19079 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19080 "C<more>."
19081 msgstr ""
19082
19083 # type: =head1
19084 #: ../fish/guestfish.pod:989 ../test-tool/libguestfs-test-tool.pod:88
19085 msgid "FILES"
19086 msgstr ""
19087
19088 # type: =item
19089 #: ../fish/guestfish.pod:993
19090 msgid "$HOME/.guestfish"
19091 msgstr ""
19092
19093 # type: textblock
19094 #: ../fish/guestfish.pod:995
19095 msgid ""
19096 "If compiled with GNU readline support, then the command history is saved in "
19097 "this file."
19098 msgstr ""
19099
19100 # type: =item
19101 #: ../fish/guestfish.pod:998
19102 msgid "$HOME/.inputrc"
19103 msgstr ""
19104
19105 # type: =item
19106 #: ../fish/guestfish.pod:1000
19107 msgid "/etc/inputrc"
19108 msgstr ""
19109
19110 # type: textblock
19111 #: ../fish/guestfish.pod:1002
19112 msgid ""
19113 "If compiled with GNU readline support, then these files can be used to "
19114 "configure readline.  For further information, please see L<readline(3)/"
19115 "INITIALIZATION FILE>."
19116 msgstr ""
19117
19118 # type: textblock
19119 #: ../fish/guestfish.pod:1006
19120 msgid "To write rules which only apply to guestfish, use:"
19121 msgstr ""
19122
19123 # type: verbatim
19124 #: ../fish/guestfish.pod:1008
19125 #, no-wrap
19126 msgid ""
19127 " $if guestfish\n"
19128 " ...\n"
19129 " $endif\n"
19130 "\n"
19131 msgstr ""
19132
19133 # type: textblock
19134 #: ../fish/guestfish.pod:1012
19135 msgid ""
19136 "Variables that you can set in inputrc that change the behaviour of guestfish "
19137 "in useful ways include:"
19138 msgstr ""
19139
19140 # type: =item
19141 #: ../fish/guestfish.pod:1017
19142 msgid "completion-ignore-case (default: on)"
19143 msgstr ""
19144
19145 # type: textblock
19146 #: ../fish/guestfish.pod:1019
19147 msgid ""
19148 "By default, guestfish will ignore case when tab-completing paths on the "
19149 "disk.  Use:"
19150 msgstr ""
19151
19152 # type: verbatim
19153 #: ../fish/guestfish.pod:1022
19154 #, no-wrap
19155 msgid ""
19156 " set completion-ignore-case off\n"
19157 "\n"
19158 msgstr ""
19159
19160 # type: textblock
19161 #: ../fish/guestfish.pod:1024
19162 msgid "to make guestfish case sensitive."
19163 msgstr ""
19164
19165 # type: =item
19166 #: ../fish/guestfish.pod:1028
19167 msgid "test1.img"
19168 msgstr ""
19169
19170 # type: =item
19171 #: ../fish/guestfish.pod:1030
19172 msgid "test2.img (etc)"
19173 msgstr ""
19174
19175 # type: textblock
19176 #: ../fish/guestfish.pod:1032
19177 msgid ""
19178 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19179 "will be created in the file C<test1.img> in the current directory.  The "
19180 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19181 "the same name will be overwritten."
19182 msgstr ""
19183
19184 # type: textblock
19185 #: ../fish/guestfish.pod:1041
19186 msgid ""
19187 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19188 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
19189 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
19190 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
19191 "L<hexedit(1)>."
19192 msgstr ""
19193
19194 # type: textblock
19195 #: ../fish/guestfish.pod:1067 ../test-tool/libguestfs-test-tool.pod:124
19196 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
19197 #: ../tools/virt-win-reg.pl:518 ../tools/virt-resize.pl:1512
19198 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300
19199 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
19200 msgid ""
19201 "This program is free software; you can redistribute it and/or modify it "
19202 "under the terms of the GNU General Public License as published by the Free "
19203 "Software Foundation; either version 2 of the License, or (at your option) "
19204 "any later version."
19205 msgstr ""
19206
19207 # type: textblock
19208 #: ../fish/guestfish.pod:1072 ../test-tool/libguestfs-test-tool.pod:129
19209 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
19210 #: ../tools/virt-win-reg.pl:523 ../tools/virt-resize.pl:1517
19211 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305
19212 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
19213 msgid ""
19214 "This program is distributed in the hope that it will be useful, but WITHOUT "
19215 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19216 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19217 "more details."
19218 msgstr ""
19219
19220 # type: textblock
19221 #: ../fish/guestfish.pod:1077 ../test-tool/libguestfs-test-tool.pod:134
19222 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
19223 #: ../tools/virt-win-reg.pl:528 ../tools/virt-resize.pl:1522
19224 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310
19225 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
19226 msgid ""
19227 "You should have received a copy of the GNU General Public License along with "
19228 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19229 "Ave, Cambridge, MA 02139, USA."
19230 msgstr ""
19231
19232 # type: =head2
19233 #: ../fish/guestfish-actions.pod:1
19234 msgid "add-cdrom"
19235 msgstr ""
19236
19237 # type: verbatim
19238 #: ../fish/guestfish-actions.pod:3
19239 #, no-wrap
19240 msgid ""
19241 " add-cdrom filename\n"
19242 "\n"
19243 msgstr ""
19244
19245 # type: textblock
19246 #: ../fish/guestfish-actions.pod:15
19247 msgid ""
19248 "This call checks for the existence of C<filename>.  This stops you from "
19249 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19250 "and C<http:> URLs.  To specify those, use the general L</config> call "
19251 "instead."
19252 msgstr ""
19253
19254 # type: textblock
19255 #: ../fish/guestfish-actions.pod:22
19256 msgid ""
19257 "If you just want to add an ISO file (often you use this as an efficient way "
19258 "to transfer large files into the guest), then you should probably use L</add-"
19259 "drive-ro> instead."
19260 msgstr ""
19261
19262 # type: =head2
19263 #: ../fish/guestfish-actions.pod:35
19264 msgid "add-domain"
19265 msgstr ""
19266
19267 # type: =head2
19268 #: ../fish/guestfish-actions.pod:37
19269 msgid "domain"
19270 msgstr ""
19271
19272 # type: verbatim
19273 #: ../fish/guestfish-actions.pod:39
19274 #, no-wrap
19275 msgid ""
19276 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19277 "\n"
19278 msgstr ""
19279
19280 # type: textblock
19281 #: ../fish/guestfish-actions.pod:41
19282 msgid ""
19283 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19284 "It works by connecting to libvirt, requesting the domain and domain XML from "
19285 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19286 msgstr ""
19287
19288 # type: textblock
19289 #: ../fish/guestfish-actions.pod:58
19290 msgid ""
19291 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19292 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19293 "libvirt URI (or one set through an environment variable, see the libvirt "
19294 "documentation for full details).  If you are using the C API directly then "
19295 "it is more flexible to create the libvirt connection object yourself, get "
19296 "the domain object, and call L</add-libvirt-dom>."
19297 msgstr ""
19298
19299 # type: textblock
19300 #: ../fish/guestfish-actions.pod:66
19301 msgid ""
19302 "The other optional parameters are passed directly through to L</add-drive-"
19303 "opts>."
19304 msgstr ""
19305
19306 # type: textblock
19307 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19308 msgid ""
19309 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19310 msgstr ""
19311
19312 # type: =head2
19313 #: ../fish/guestfish-actions.pod:71
19314 msgid "add-drive"
19315 msgstr ""
19316
19317 # type: verbatim
19318 #: ../fish/guestfish-actions.pod:73
19319 #, no-wrap
19320 msgid ""
19321 " add-drive filename\n"
19322 "\n"
19323 msgstr ""
19324
19325 # type: textblock
19326 #: ../fish/guestfish-actions.pod:75
19327 msgid ""
19328 "This function is the equivalent of calling L</add-drive-opts> with no "
19329 "optional parameters, so the disk is added writable, with the format being "
19330 "detected automatically."
19331 msgstr ""
19332
19333 # type: textblock
19334 #: ../fish/guestfish-actions.pod:79
19335 msgid ""
19336 "Automatic detection of the format opens you up to a potential security hole "
19337 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19338 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19339 "you should think about replacing calls to this function with calls to L</add-"
19340 "drive-opts>, and specifying the format."
19341 msgstr ""
19342
19343 # type: =head2
19344 #: ../fish/guestfish-actions.pod:86
19345 msgid "add-drive-opts"
19346 msgstr ""
19347
19348 # type: =head2
19349 #: ../fish/guestfish-actions.pod:88
19350 msgid "add"
19351 msgstr ""
19352
19353 # type: verbatim
19354 #: ../fish/guestfish-actions.pod:90
19355 #, no-wrap
19356 msgid ""
19357 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19358 "\n"
19359 msgstr ""
19360
19361 # type: textblock
19362 #: ../fish/guestfish-actions.pod:117
19363 msgid ""
19364 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19365 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19366 "include C<raw> and C<qcow2>."
19367 msgstr ""
19368
19369 # type: textblock
19370 #: ../fish/guestfish-actions.pod:128
19371 msgid ""
19372 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19373 "add-drive-with-if> call (q.v.)"
19374 msgstr ""
19375
19376 # type: =head2
19377 #: ../fish/guestfish-actions.pod:135
19378 msgid "add-drive-ro"
19379 msgstr ""
19380
19381 # type: =head2
19382 #: ../fish/guestfish-actions.pod:137
19383 msgid "add-ro"
19384 msgstr ""
19385
19386 # type: verbatim
19387 #: ../fish/guestfish-actions.pod:139
19388 #, no-wrap
19389 msgid ""
19390 " add-drive-ro filename\n"
19391 "\n"
19392 msgstr ""
19393
19394 # type: textblock
19395 #: ../fish/guestfish-actions.pod:141
19396 msgid ""
19397 "This function is the equivalent of calling L</add-drive-opts> with the "
19398 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19399 "is added read-only, with the format being detected automatically."
19400 msgstr ""
19401
19402 # type: =head2
19403 #: ../fish/guestfish-actions.pod:146
19404 msgid "add-drive-ro-with-if"
19405 msgstr ""
19406
19407 # type: verbatim
19408 #: ../fish/guestfish-actions.pod:148
19409 #, no-wrap
19410 msgid ""
19411 " add-drive-ro-with-if filename iface\n"
19412 "\n"
19413 msgstr ""
19414
19415 # type: textblock
19416 #: ../fish/guestfish-actions.pod:150
19417 msgid ""
19418 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19419 "interface emulation to use at run time."
19420 msgstr ""
19421
19422 # type: =head2
19423 #: ../fish/guestfish-actions.pod:160
19424 msgid "add-drive-with-if"
19425 msgstr ""
19426
19427 # type: verbatim
19428 #: ../fish/guestfish-actions.pod:162
19429 #, no-wrap
19430 msgid ""
19431 " add-drive-with-if filename iface\n"
19432 "\n"
19433 msgstr ""
19434
19435 # type: textblock
19436 #: ../fish/guestfish-actions.pod:164
19437 msgid ""
19438 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19439 "interface emulation to use at run time."
19440 msgstr ""
19441
19442 # type: =head2
19443 #: ../fish/guestfish-actions.pod:174
19444 msgid "aug-clear"
19445 msgstr ""
19446
19447 # type: verbatim
19448 #: ../fish/guestfish-actions.pod:176
19449 #, no-wrap
19450 msgid ""
19451 " aug-clear augpath\n"
19452 "\n"
19453 msgstr ""
19454
19455 # type: =head2
19456 #: ../fish/guestfish-actions.pod:181
19457 msgid "aug-close"
19458 msgstr ""
19459
19460 # type: verbatim
19461 #: ../fish/guestfish-actions.pod:183
19462 #, no-wrap
19463 msgid ""
19464 " aug-close\n"
19465 "\n"
19466 msgstr ""
19467
19468 # type: textblock
19469 #: ../fish/guestfish-actions.pod:185
19470 msgid ""
19471 "Close the current Augeas handle and free up any resources used by it.  After "
19472 "calling this, you have to call L</aug-init> again before you can use any "
19473 "other Augeas functions."
19474 msgstr ""
19475
19476 # type: =head2
19477 #: ../fish/guestfish-actions.pod:190
19478 msgid "aug-defnode"
19479 msgstr ""
19480
19481 # type: verbatim
19482 #: ../fish/guestfish-actions.pod:192
19483 #, no-wrap
19484 msgid ""
19485 " aug-defnode name expr val\n"
19486 "\n"
19487 msgstr ""
19488
19489 # type: textblock
19490 #: ../fish/guestfish-actions.pod:197
19491 msgid ""
19492 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19493 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19494 "containing that single node."
19495 msgstr ""
19496
19497 # type: =head2
19498 #: ../fish/guestfish-actions.pod:205
19499 msgid "aug-defvar"
19500 msgstr ""
19501
19502 # type: verbatim
19503 #: ../fish/guestfish-actions.pod:207
19504 #, no-wrap
19505 msgid ""
19506 " aug-defvar name expr\n"
19507 "\n"
19508 msgstr ""
19509
19510 # type: =head2
19511 #: ../fish/guestfish-actions.pod:216
19512 msgid "aug-get"
19513 msgstr ""
19514
19515 # type: verbatim
19516 #: ../fish/guestfish-actions.pod:218
19517 #, no-wrap
19518 msgid ""
19519 " aug-get augpath\n"
19520 "\n"
19521 msgstr ""
19522
19523 # type: =head2
19524 #: ../fish/guestfish-actions.pod:223
19525 msgid "aug-init"
19526 msgstr ""
19527
19528 # type: verbatim
19529 #: ../fish/guestfish-actions.pod:225
19530 #, no-wrap
19531 msgid ""
19532 " aug-init root flags\n"
19533 "\n"
19534 msgstr ""
19535
19536 # type: textblock
19537 #: ../fish/guestfish-actions.pod:231
19538 msgid "You must call this before using any other L</aug-*> commands."
19539 msgstr ""
19540
19541 # type: textblock
19542 #: ../fish/guestfish-actions.pod:266
19543 msgid "Do not load the tree in L</aug-init>."
19544 msgstr ""
19545
19546 # type: textblock
19547 #: ../fish/guestfish-actions.pod:270
19548 msgid "To close the handle, you can call L</aug-close>."
19549 msgstr ""
19550
19551 # type: =head2
19552 #: ../fish/guestfish-actions.pod:274
19553 msgid "aug-insert"
19554 msgstr ""
19555
19556 # type: verbatim
19557 #: ../fish/guestfish-actions.pod:276
19558 #, no-wrap
19559 msgid ""
19560 " aug-insert augpath label true|false\n"
19561 "\n"
19562 msgstr ""
19563
19564 # type: =head2
19565 #: ../fish/guestfish-actions.pod:286
19566 msgid "aug-load"
19567 msgstr ""
19568
19569 # type: verbatim
19570 #: ../fish/guestfish-actions.pod:288
19571 #, no-wrap
19572 msgid ""
19573 " aug-load\n"
19574 "\n"
19575 msgstr ""
19576
19577 # type: =head2
19578 #: ../fish/guestfish-actions.pod:295
19579 msgid "aug-ls"
19580 msgstr ""
19581
19582 # type: verbatim
19583 #: ../fish/guestfish-actions.pod:297
19584 #, no-wrap
19585 msgid ""
19586 " aug-ls augpath\n"
19587 "\n"
19588 msgstr ""
19589
19590 # type: textblock
19591 #: ../fish/guestfish-actions.pod:299
19592 msgid ""
19593 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19594 "resulting nodes into alphabetical order."
19595 msgstr ""
19596
19597 # type: =head2
19598 #: ../fish/guestfish-actions.pod:302
19599 msgid "aug-match"
19600 msgstr ""
19601
19602 # type: verbatim
19603 #: ../fish/guestfish-actions.pod:304
19604 #, no-wrap
19605 msgid ""
19606 " aug-match augpath\n"
19607 "\n"
19608 msgstr ""
19609
19610 # type: =head2
19611 #: ../fish/guestfish-actions.pod:310
19612 msgid "aug-mv"
19613 msgstr ""
19614
19615 # type: verbatim
19616 #: ../fish/guestfish-actions.pod:312
19617 #, no-wrap
19618 msgid ""
19619 " aug-mv src dest\n"
19620 "\n"
19621 msgstr ""
19622
19623 # type: =head2
19624 #: ../fish/guestfish-actions.pod:317
19625 msgid "aug-rm"
19626 msgstr ""
19627
19628 # type: verbatim
19629 #: ../fish/guestfish-actions.pod:319
19630 #, no-wrap
19631 msgid ""
19632 " aug-rm augpath\n"
19633 "\n"
19634 msgstr ""
19635
19636 # type: =head2
19637 #: ../fish/guestfish-actions.pod:325
19638 msgid "aug-save"
19639 msgstr ""
19640
19641 # type: verbatim
19642 #: ../fish/guestfish-actions.pod:327
19643 #, no-wrap
19644 msgid ""
19645 " aug-save\n"
19646 "\n"
19647 msgstr ""
19648
19649 # type: textblock
19650 #: ../fish/guestfish-actions.pod:331
19651 msgid ""
19652 "The flags which were passed to L</aug-init> affect exactly how files are "
19653 "saved."
19654 msgstr ""
19655
19656 # type: =head2
19657 #: ../fish/guestfish-actions.pod:334
19658 msgid "aug-set"
19659 msgstr ""
19660
19661 # type: verbatim
19662 #: ../fish/guestfish-actions.pod:336
19663 #, no-wrap
19664 msgid ""
19665 " aug-set augpath val\n"
19666 "\n"
19667 msgstr ""
19668
19669 # type: textblock
19670 #: ../fish/guestfish-actions.pod:340
19671 msgid ""
19672 "In the Augeas API, it is possible to clear a node by setting the value to "
19673 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19674 "this call.  Instead you must use the L</aug-clear> call."
19675 msgstr ""
19676
19677 # type: =head2
19678 #: ../fish/guestfish-actions.pod:345
19679 msgid "available"
19680 msgstr ""
19681
19682 # type: verbatim
19683 #: ../fish/guestfish-actions.pod:347
19684 #, no-wrap
19685 msgid ""
19686 " available 'groups ...'\n"
19687 "\n"
19688 msgstr ""
19689
19690 # type: textblock
19691 #: ../fish/guestfish-actions.pod:353
19692 msgid ""
19693 "The libguestfs groups, and the functions that those groups correspond to, "
19694 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19695 "runtime by calling L</available-all-groups>."
19696 msgstr ""
19697
19698 # type: textblock
19699 #: ../fish/guestfish-actions.pod:377
19700 msgid "You must call L</launch> before calling this function."
19701 msgstr ""
19702
19703 # type: textblock
19704 #: ../fish/guestfish-actions.pod:399
19705 msgid ""
19706 "This call was added in version C<1.0.80>.  In previous versions of "
19707 "libguestfs all you could do would be to speculatively execute a command to "
19708 "find out if the daemon implemented it.  See also L</version>."
19709 msgstr ""
19710
19711 # type: =head2
19712 #: ../fish/guestfish-actions.pod:406
19713 msgid "available-all-groups"
19714 msgstr ""
19715
19716 # type: verbatim
19717 #: ../fish/guestfish-actions.pod:408
19718 #, no-wrap
19719 msgid ""
19720 " available-all-groups\n"
19721 "\n"
19722 msgstr ""
19723
19724 # type: textblock
19725 #: ../fish/guestfish-actions.pod:410
19726 msgid ""
19727 "This command returns a list of all optional groups that this daemon knows "
19728 "about.  Note this returns both supported and unsupported groups.  To find "
19729 "out which ones the daemon can actually support you have to call L</"
19730 "available> on each member of the returned list."
19731 msgstr ""
19732
19733 # type: textblock
19734 #: ../fish/guestfish-actions.pod:416
19735 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19736 msgstr ""
19737
19738 # type: =head2
19739 #: ../fish/guestfish-actions.pod:418
19740 msgid "base64-in"
19741 msgstr ""
19742
19743 # type: verbatim
19744 #: ../fish/guestfish-actions.pod:420
19745 #, no-wrap
19746 msgid ""
19747 " base64-in (base64file|-) filename\n"
19748 "\n"
19749 msgstr ""
19750
19751 # type: textblock
19752 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19753 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19754 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19755 #: ../fish/guestfish-actions.pod:4128 ../fish/guestfish-actions.pod:4140
19756 #: ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4162
19757 #: ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4223
19758 #: ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4300
19759 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19760 msgstr ""
19761
19762 # type: =head2
19763 #: ../fish/guestfish-actions.pod:427
19764 msgid "base64-out"
19765 msgstr ""
19766
19767 # type: verbatim
19768 #: ../fish/guestfish-actions.pod:429
19769 #, no-wrap
19770 msgid ""
19771 " base64-out filename (base64file|-)\n"
19772 "\n"
19773 msgstr ""
19774
19775 # type: =head2
19776 #: ../fish/guestfish-actions.pod:436
19777 msgid "blockdev-flushbufs"
19778 msgstr ""
19779
19780 # type: verbatim
19781 #: ../fish/guestfish-actions.pod:438
19782 #, no-wrap
19783 msgid ""
19784 " blockdev-flushbufs device\n"
19785 "\n"
19786 msgstr ""
19787
19788 # type: =head2
19789 #: ../fish/guestfish-actions.pod:445
19790 msgid "blockdev-getbsz"
19791 msgstr ""
19792
19793 # type: verbatim
19794 #: ../fish/guestfish-actions.pod:447
19795 #, no-wrap
19796 msgid ""
19797 " blockdev-getbsz device\n"
19798 "\n"
19799 msgstr ""
19800
19801 # type: =head2
19802 #: ../fish/guestfish-actions.pod:456
19803 msgid "blockdev-getro"
19804 msgstr ""
19805
19806 # type: verbatim
19807 #: ../fish/guestfish-actions.pod:458
19808 #, no-wrap
19809 msgid ""
19810 " blockdev-getro device\n"
19811 "\n"
19812 msgstr ""
19813
19814 # type: =head2
19815 #: ../fish/guestfish-actions.pod:465
19816 msgid "blockdev-getsize64"
19817 msgstr ""
19818
19819 # type: verbatim
19820 #: ../fish/guestfish-actions.pod:467
19821 #, no-wrap
19822 msgid ""
19823 " blockdev-getsize64 device\n"
19824 "\n"
19825 msgstr ""
19826
19827 # type: textblock
19828 #: ../fish/guestfish-actions.pod:471
19829 msgid "See also L</blockdev-getsz>."
19830 msgstr ""
19831
19832 # type: =head2
19833 #: ../fish/guestfish-actions.pod:475
19834 msgid "blockdev-getss"
19835 msgstr ""
19836
19837 # type: verbatim
19838 #: ../fish/guestfish-actions.pod:477
19839 #, no-wrap
19840 msgid ""
19841 " blockdev-getss device\n"
19842 "\n"
19843 msgstr ""
19844
19845 # type: textblock
19846 #: ../fish/guestfish-actions.pod:482
19847 msgid ""
19848 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19849 msgstr ""
19850
19851 # type: =head2
19852 #: ../fish/guestfish-actions.pod:487
19853 msgid "blockdev-getsz"
19854 msgstr ""
19855
19856 # type: verbatim
19857 #: ../fish/guestfish-actions.pod:489
19858 #, no-wrap
19859 msgid ""
19860 " blockdev-getsz device\n"
19861 "\n"
19862 msgstr ""
19863
19864 # type: textblock
19865 #: ../fish/guestfish-actions.pod:494
19866 msgid ""
19867 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19868 "blockdev-getsize64> for the more useful I<size in bytes>."
19869 msgstr ""
19870
19871 # type: =head2
19872 #: ../fish/guestfish-actions.pod:500
19873 msgid "blockdev-rereadpt"
19874 msgstr ""
19875
19876 # type: verbatim
19877 #: ../fish/guestfish-actions.pod:502
19878 #, no-wrap
19879 msgid ""
19880 " blockdev-rereadpt device\n"
19881 "\n"
19882 msgstr ""
19883
19884 # type: =head2
19885 #: ../fish/guestfish-actions.pod:508
19886 msgid "blockdev-setbsz"
19887 msgstr ""
19888
19889 # type: verbatim
19890 #: ../fish/guestfish-actions.pod:510
19891 #, no-wrap
19892 msgid ""
19893 " blockdev-setbsz device blocksize\n"
19894 "\n"
19895 msgstr ""
19896
19897 # type: =head2
19898 #: ../fish/guestfish-actions.pod:519
19899 msgid "blockdev-setro"
19900 msgstr ""
19901
19902 # type: verbatim
19903 #: ../fish/guestfish-actions.pod:521
19904 #, no-wrap
19905 msgid ""
19906 " blockdev-setro device\n"
19907 "\n"
19908 msgstr ""
19909
19910 # type: =head2
19911 #: ../fish/guestfish-actions.pod:527
19912 msgid "blockdev-setrw"
19913 msgstr ""
19914
19915 # type: verbatim
19916 #: ../fish/guestfish-actions.pod:529
19917 #, no-wrap
19918 msgid ""
19919 " blockdev-setrw device\n"
19920 "\n"
19921 msgstr ""
19922
19923 # type: =head2
19924 #: ../fish/guestfish-actions.pod:535
19925 msgid "case-sensitive-path"
19926 msgstr ""
19927
19928 # type: verbatim
19929 #: ../fish/guestfish-actions.pod:537
19930 #, no-wrap
19931 msgid ""
19932 " case-sensitive-path path\n"
19933 "\n"
19934 msgstr ""
19935
19936 # type: textblock
19937 #: ../fish/guestfish-actions.pod:561
19938 msgid ""
19939 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19940 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19941 "the directories were originally created under Windows)."
19942 msgstr ""
19943
19944 # type: textblock
19945 #: ../fish/guestfish-actions.pod:569
19946 msgid "See also L</realpath>."
19947 msgstr ""
19948
19949 # type: =head2
19950 #: ../fish/guestfish-actions.pod:571
19951 msgid "cat"
19952 msgstr ""
19953
19954 # type: verbatim
19955 #: ../fish/guestfish-actions.pod:573
19956 #, no-wrap
19957 msgid ""
19958 " cat path\n"
19959 "\n"
19960 msgstr ""
19961
19962 # type: textblock
19963 #: ../fish/guestfish-actions.pod:577
19964 msgid ""
19965 "Note that this function cannot correctly handle binary files (specifically, "
19966 "files containing C<\\0> character which is treated as end of string).  For "
19967 "those you need to use the L</read-file> or L</download> functions which have "
19968 "a more complex interface."
19969 msgstr ""
19970
19971 # type: =head2
19972 #: ../fish/guestfish-actions.pod:585
19973 msgid "checksum"
19974 msgstr ""
19975
19976 # type: verbatim
19977 #: ../fish/guestfish-actions.pod:587
19978 #, no-wrap
19979 msgid ""
19980 " checksum csumtype path\n"
19981 "\n"
19982 msgstr ""
19983
19984 # type: textblock
19985 #: ../fish/guestfish-actions.pod:630
19986 msgid "To get the checksum for a device, use L</checksum-device>."
19987 msgstr ""
19988
19989 # type: textblock
19990 #: ../fish/guestfish-actions.pod:632
19991 msgid "To get the checksums for many files, use L</checksums-out>."
19992 msgstr ""
19993
19994 # type: =head2
19995 #: ../fish/guestfish-actions.pod:634
19996 msgid "checksum-device"
19997 msgstr ""
19998
19999 # type: verbatim
20000 #: ../fish/guestfish-actions.pod:636
20001 #, no-wrap
20002 msgid ""
20003 " checksum-device csumtype device\n"
20004 "\n"
20005 msgstr ""
20006
20007 # type: textblock
20008 #: ../fish/guestfish-actions.pod:638
20009 msgid ""
20010 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
20011 "device named C<device>.  For the types of checksums supported see the L</"
20012 "checksum> command."
20013 msgstr ""
20014
20015 # type: =head2
20016 #: ../fish/guestfish-actions.pod:642
20017 msgid "checksums-out"
20018 msgstr ""
20019
20020 # type: verbatim
20021 #: ../fish/guestfish-actions.pod:644
20022 #, no-wrap
20023 msgid ""
20024 " checksums-out csumtype directory (sumsfile|-)\n"
20025 "\n"
20026 msgstr ""
20027
20028 # type: =head2
20029 #: ../fish/guestfish-actions.pod:660
20030 msgid "chmod"
20031 msgstr ""
20032
20033 # type: verbatim
20034 #: ../fish/guestfish-actions.pod:662
20035 #, no-wrap
20036 msgid ""
20037 " chmod mode path\n"
20038 "\n"
20039 msgstr ""
20040
20041 # type: =head2
20042 #: ../fish/guestfish-actions.pod:673
20043 msgid "chown"
20044 msgstr ""
20045
20046 # type: verbatim
20047 #: ../fish/guestfish-actions.pod:675
20048 #, no-wrap
20049 msgid ""
20050 " chown owner group path\n"
20051 "\n"
20052 msgstr ""
20053
20054 # type: =head2
20055 #: ../fish/guestfish-actions.pod:683
20056 msgid "command"
20057 msgstr ""
20058
20059 # type: verbatim
20060 #: ../fish/guestfish-actions.pod:685
20061 #, no-wrap
20062 msgid ""
20063 " command 'arguments ...'\n"
20064 "\n"
20065 msgstr ""
20066
20067 # type: textblock
20068 #: ../fish/guestfish-actions.pod:692
20069 msgid ""
20070 "The single parameter is an argv-style list of arguments.  The first element "
20071 "is the name of the program to run.  Subsequent elements are parameters.  The "
20072 "list must be non-empty (ie. must contain a program name).  Note that the "
20073 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20074 msgstr ""
20075
20076 # type: =head2
20077 #: ../fish/guestfish-actions.pod:720
20078 msgid "command-lines"
20079 msgstr ""
20080
20081 # type: verbatim
20082 #: ../fish/guestfish-actions.pod:722
20083 #, no-wrap
20084 msgid ""
20085 " command-lines 'arguments ...'\n"
20086 "\n"
20087 msgstr ""
20088
20089 # type: textblock
20090 #: ../fish/guestfish-actions.pod:724
20091 msgid ""
20092 "This is the same as L</command>, but splits the result into a list of lines."
20093 msgstr ""
20094
20095 # type: textblock
20096 #: ../fish/guestfish-actions.pod:727
20097 msgid "See also: L</sh-lines>"
20098 msgstr ""
20099
20100 # type: =head2
20101 #: ../fish/guestfish-actions.pod:732
20102 msgid "config"
20103 msgstr ""
20104
20105 # type: verbatim
20106 #: ../fish/guestfish-actions.pod:734
20107 #, no-wrap
20108 msgid ""
20109 " config qemuparam qemuvalue\n"
20110 "\n"
20111 msgstr ""
20112
20113 # type: =head2
20114 #: ../fish/guestfish-actions.pod:745
20115 msgid "copy-size"
20116 msgstr ""
20117
20118 # type: verbatim
20119 #: ../fish/guestfish-actions.pod:747
20120 #, no-wrap
20121 msgid ""
20122 " copy-size src dest size\n"
20123 "\n"
20124 msgstr ""
20125
20126 # type: =head2
20127 #: ../fish/guestfish-actions.pod:755
20128 msgid "cp"
20129 msgstr ""
20130
20131 # type: verbatim
20132 #: ../fish/guestfish-actions.pod:757
20133 #, no-wrap
20134 msgid ""
20135 " cp src dest\n"
20136 "\n"
20137 msgstr ""
20138
20139 # type: =head2
20140 #: ../fish/guestfish-actions.pod:762
20141 msgid "cp-a"
20142 msgstr ""
20143
20144 # type: verbatim
20145 #: ../fish/guestfish-actions.pod:764
20146 #, no-wrap
20147 msgid ""
20148 " cp-a src dest\n"
20149 "\n"
20150 msgstr ""
20151
20152 # type: =head2
20153 #: ../fish/guestfish-actions.pod:769
20154 msgid "dd"
20155 msgstr ""
20156
20157 # type: verbatim
20158 #: ../fish/guestfish-actions.pod:771
20159 #, no-wrap
20160 msgid ""
20161 " dd src dest\n"
20162 "\n"
20163 msgstr ""
20164
20165 # type: textblock
20166 #: ../fish/guestfish-actions.pod:778
20167 msgid ""
20168 "If the destination is a device, it must be as large or larger than the "
20169 "source file or device, otherwise the copy will fail.  This command cannot do "
20170 "partial copies (see L</copy-size>)."
20171 msgstr ""
20172
20173 # type: =head2
20174 #: ../fish/guestfish-actions.pod:782
20175 msgid "df"
20176 msgstr ""
20177
20178 # type: verbatim
20179 #: ../fish/guestfish-actions.pod:784
20180 #, no-wrap
20181 msgid ""
20182 " df\n"
20183 "\n"
20184 msgstr ""
20185
20186 # type: =head2
20187 #: ../fish/guestfish-actions.pod:792
20188 msgid "df-h"
20189 msgstr ""
20190
20191 # type: verbatim
20192 #: ../fish/guestfish-actions.pod:794
20193 #, no-wrap
20194 msgid ""
20195 " df-h\n"
20196 "\n"
20197 msgstr ""
20198
20199 # type: =head2
20200 #: ../fish/guestfish-actions.pod:803
20201 msgid "dmesg"
20202 msgstr ""
20203
20204 # type: verbatim
20205 #: ../fish/guestfish-actions.pod:805
20206 #, no-wrap
20207 msgid ""
20208 " dmesg\n"
20209 "\n"
20210 msgstr ""
20211
20212 # type: textblock
20213 #: ../fish/guestfish-actions.pod:811
20214 msgid ""
20215 "Another way to get the same information is to enable verbose messages with "
20216 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20217 "before running the program."
20218 msgstr ""
20219
20220 # type: =head2
20221 #: ../fish/guestfish-actions.pod:816
20222 msgid "download"
20223 msgstr ""
20224
20225 # type: verbatim
20226 #: ../fish/guestfish-actions.pod:818
20227 #, no-wrap
20228 msgid ""
20229 " download remotefilename (filename|-)\n"
20230 "\n"
20231 msgstr ""
20232
20233 # type: textblock
20234 #: ../fish/guestfish-actions.pod:825
20235 msgid "See also L</upload>, L</cat>."
20236 msgstr ""
20237
20238 # type: =head2
20239 #: ../fish/guestfish-actions.pod:829
20240 msgid "download-offset"
20241 msgstr ""
20242
20243 # type: verbatim
20244 #: ../fish/guestfish-actions.pod:831
20245 #, no-wrap
20246 msgid ""
20247 " download-offset remotefilename (filename|-) offset size\n"
20248 "\n"
20249 msgstr ""
20250
20251 # type: textblock
20252 #: ../fish/guestfish-actions.pod:839
20253 msgid ""
20254 "Note that there is no limit on the amount of data that can be downloaded "
20255 "with this call, unlike with L</pread>, and this call always reads the full "
20256 "amount unless an error occurs."
20257 msgstr ""
20258
20259 # type: textblock
20260 #: ../fish/guestfish-actions.pod:844
20261 msgid "See also L</download>, L</pread>."
20262 msgstr ""
20263
20264 # type: =head2
20265 #: ../fish/guestfish-actions.pod:848
20266 msgid "drop-caches"
20267 msgstr ""
20268
20269 # type: verbatim
20270 #: ../fish/guestfish-actions.pod:850
20271 #, no-wrap
20272 msgid ""
20273 " drop-caches whattodrop\n"
20274 "\n"
20275 msgstr ""
20276
20277 # type: =head2
20278 #: ../fish/guestfish-actions.pod:862
20279 msgid "du"
20280 msgstr ""
20281
20282 # type: verbatim
20283 #: ../fish/guestfish-actions.pod:864
20284 #, no-wrap
20285 msgid ""
20286 " du path\n"
20287 "\n"
20288 msgstr ""
20289
20290 # type: =head2
20291 #: ../fish/guestfish-actions.pod:876
20292 msgid "e2fsck-f"
20293 msgstr ""
20294
20295 # type: verbatim
20296 #: ../fish/guestfish-actions.pod:878
20297 #, no-wrap
20298 msgid ""
20299 " e2fsck-f device\n"
20300 "\n"
20301 msgstr ""
20302
20303 # type: textblock
20304 #: ../fish/guestfish-actions.pod:884
20305 msgid ""
20306 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20307 "should use L</fsck>."
20308 msgstr ""
20309
20310 # type: =head2
20311 #: ../fish/guestfish-actions.pod:887
20312 msgid "echo-daemon"
20313 msgstr ""
20314
20315 # type: verbatim
20316 #: ../fish/guestfish-actions.pod:889
20317 #, no-wrap
20318 msgid ""
20319 " echo-daemon 'words ...'\n"
20320 "\n"
20321 msgstr ""
20322
20323 # type: textblock
20324 #: ../fish/guestfish-actions.pod:896
20325 msgid "See also L</ping-daemon>."
20326 msgstr ""
20327
20328 # type: =head2
20329 #: ../fish/guestfish-actions.pod:898
20330 msgid "egrep"
20331 msgstr ""
20332
20333 # type: verbatim
20334 #: ../fish/guestfish-actions.pod:900
20335 #, no-wrap
20336 msgid ""
20337 " egrep regex path\n"
20338 "\n"
20339 msgstr ""
20340
20341 # type: =head2
20342 #: ../fish/guestfish-actions.pod:908
20343 msgid "egrepi"
20344 msgstr ""
20345
20346 # type: verbatim
20347 #: ../fish/guestfish-actions.pod:910
20348 #, no-wrap
20349 msgid ""
20350 " egrepi regex path\n"
20351 "\n"
20352 msgstr ""
20353
20354 # type: =head2
20355 #: ../fish/guestfish-actions.pod:918
20356 msgid "equal"
20357 msgstr ""
20358
20359 # type: verbatim
20360 #: ../fish/guestfish-actions.pod:920
20361 #, no-wrap
20362 msgid ""
20363 " equal file1 file2\n"
20364 "\n"
20365 msgstr ""
20366
20367 # type: =head2
20368 #: ../fish/guestfish-actions.pod:927
20369 msgid "exists"
20370 msgstr ""
20371
20372 # type: verbatim
20373 #: ../fish/guestfish-actions.pod:929
20374 #, no-wrap
20375 msgid ""
20376 " exists path\n"
20377 "\n"
20378 msgstr ""
20379
20380 # type: textblock
20381 #: ../fish/guestfish-actions.pod:934
20382 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20383 msgstr ""
20384
20385 # type: =head2
20386 #: ../fish/guestfish-actions.pod:936
20387 msgid "fallocate"
20388 msgstr ""
20389
20390 # type: verbatim
20391 #: ../fish/guestfish-actions.pod:938
20392 #, no-wrap
20393 msgid ""
20394 " fallocate path len\n"
20395 "\n"
20396 msgstr ""
20397
20398 # type: =head2
20399 #: ../fish/guestfish-actions.pod:955
20400 msgid "fallocate64"
20401 msgstr ""
20402
20403 # type: verbatim
20404 #: ../fish/guestfish-actions.pod:957
20405 #, no-wrap
20406 msgid ""
20407 " fallocate64 path len\n"
20408 "\n"
20409 msgstr ""
20410
20411 # type: textblock
20412 #: ../fish/guestfish-actions.pod:963
20413 msgid ""
20414 "Note that this call allocates disk blocks for the file.  To create a sparse "
20415 "file use L</truncate-size> instead."
20416 msgstr ""
20417
20418 # type: textblock
20419 #: ../fish/guestfish-actions.pod:966
20420 msgid ""
20421 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20422 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20423 "maximum size of files created through that call to 1GB."
20424 msgstr ""
20425
20426 # type: =head2
20427 #: ../fish/guestfish-actions.pod:975
20428 msgid "fgrep"
20429 msgstr ""
20430
20431 # type: verbatim
20432 #: ../fish/guestfish-actions.pod:977
20433 #, no-wrap
20434 msgid ""
20435 " fgrep pattern path\n"
20436 "\n"
20437 msgstr ""
20438
20439 # type: =head2
20440 #: ../fish/guestfish-actions.pod:985
20441 msgid "fgrepi"
20442 msgstr ""
20443
20444 # type: verbatim
20445 #: ../fish/guestfish-actions.pod:987
20446 #, no-wrap
20447 msgid ""
20448 " fgrepi pattern path\n"
20449 "\n"
20450 msgstr ""
20451
20452 # type: =head2
20453 #: ../fish/guestfish-actions.pod:995
20454 msgid "file"
20455 msgstr ""
20456
20457 # type: verbatim
20458 #: ../fish/guestfish-actions.pod:997
20459 #, no-wrap
20460 msgid ""
20461 " file path\n"
20462 "\n"
20463 msgstr ""
20464
20465 # type: textblock
20466 #: ../fish/guestfish-actions.pod:1009
20467 msgid ""
20468 "This command can also be used on C</dev/> devices (and partitions, LV "
20469 "names).  You can for example use this to determine if a device contains a "
20470 "filesystem, although it's usually better to use L</vfs-type>."
20471 msgstr ""
20472
20473 # type: =head2
20474 #: ../fish/guestfish-actions.pod:1019
20475 msgid "file-architecture"
20476 msgstr ""
20477
20478 # type: verbatim
20479 #: ../fish/guestfish-actions.pod:1021
20480 #, no-wrap
20481 msgid ""
20482 " file-architecture filename\n"
20483 "\n"
20484 msgstr ""
20485
20486 # type: =head2
20487 #: ../fish/guestfish-actions.pod:1124
20488 msgid "filesize"
20489 msgstr ""
20490
20491 # type: verbatim
20492 #: ../fish/guestfish-actions.pod:1126
20493 #, no-wrap
20494 msgid ""
20495 " filesize file\n"
20496 "\n"
20497 msgstr ""
20498
20499 # type: textblock
20500 #: ../fish/guestfish-actions.pod:1130
20501 msgid ""
20502 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20503 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20504 msgstr ""
20505
20506 # type: =head2
20507 #: ../fish/guestfish-actions.pod:1134
20508 msgid "fill"
20509 msgstr ""
20510
20511 # type: verbatim
20512 #: ../fish/guestfish-actions.pod:1136
20513 #, no-wrap
20514 msgid ""
20515 " fill c len path\n"
20516 "\n"
20517 msgstr ""
20518
20519 # type: textblock
20520 #: ../fish/guestfish-actions.pod:1142
20521 msgid ""
20522 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20523 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20524 "L</fill-pattern>."
20525 msgstr ""
20526
20527 # type: =head2
20528 #: ../fish/guestfish-actions.pod:1147
20529 msgid "fill-pattern"
20530 msgstr ""
20531
20532 # type: verbatim
20533 #: ../fish/guestfish-actions.pod:1149
20534 #, no-wrap
20535 msgid ""
20536 " fill-pattern pattern len path\n"
20537 "\n"
20538 msgstr ""
20539
20540 # type: textblock
20541 #: ../fish/guestfish-actions.pod:1151
20542 msgid ""
20543 "This function is like L</fill> except that it creates a new file of length "
20544 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20545 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20546 "bytes."
20547 msgstr ""
20548
20549 # type: =head2
20550 #: ../fish/guestfish-actions.pod:1156
20551 msgid "find"
20552 msgstr ""
20553
20554 # type: verbatim
20555 #: ../fish/guestfish-actions.pod:1158
20556 #, no-wrap
20557 msgid ""
20558 " find directory\n"
20559 "\n"
20560 msgstr ""
20561
20562 # type: textblock
20563 #: ../fish/guestfish-actions.pod:1172
20564 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20565 msgstr ""
20566
20567 # type: textblock
20568 #: ../fish/guestfish-actions.pod:1185
20569 msgid "See also L</find0>."
20570 msgstr ""
20571
20572 # type: =head2
20573 #: ../fish/guestfish-actions.pod:1190
20574 msgid "find0"
20575 msgstr ""
20576
20577 # type: verbatim
20578 #: ../fish/guestfish-actions.pod:1192
20579 #, no-wrap
20580 msgid ""
20581 " find0 directory (files|-)\n"
20582 "\n"
20583 msgstr ""
20584
20585 # type: textblock
20586 #: ../fish/guestfish-actions.pod:1198
20587 msgid ""
20588 "This command works the same way as L</find> with the following exceptions:"
20589 msgstr ""
20590
20591 # type: =head2
20592 #: ../fish/guestfish-actions.pod:1225
20593 msgid "findfs-label"
20594 msgstr ""
20595
20596 # type: verbatim
20597 #: ../fish/guestfish-actions.pod:1227
20598 #, no-wrap
20599 msgid ""
20600 " findfs-label label\n"
20601 "\n"
20602 msgstr ""
20603
20604 # type: textblock
20605 #: ../fish/guestfish-actions.pod:1233
20606 msgid "To find the label of a filesystem, use L</vfs-label>."
20607 msgstr ""
20608
20609 # type: =head2
20610 #: ../fish/guestfish-actions.pod:1235
20611 msgid "findfs-uuid"
20612 msgstr ""
20613
20614 # type: verbatim
20615 #: ../fish/guestfish-actions.pod:1237
20616 #, no-wrap
20617 msgid ""
20618 " findfs-uuid uuid\n"
20619 "\n"
20620 msgstr ""
20621
20622 # type: textblock
20623 #: ../fish/guestfish-actions.pod:1243
20624 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20625 msgstr ""
20626
20627 # type: =head2
20628 #: ../fish/guestfish-actions.pod:1245
20629 msgid "fsck"
20630 msgstr ""
20631
20632 # type: verbatim
20633 #: ../fish/guestfish-actions.pod:1247
20634 #, no-wrap
20635 msgid ""
20636 " fsck fstype device\n"
20637 "\n"
20638 msgstr ""
20639
20640 # type: =head2
20641 #: ../fish/guestfish-actions.pod:1277
20642 msgid "get-append"
20643 msgstr ""
20644
20645 # type: verbatim
20646 #: ../fish/guestfish-actions.pod:1279
20647 #, no-wrap
20648 msgid ""
20649 " get-append\n"
20650 "\n"
20651 msgstr ""
20652
20653 # type: =head2
20654 #: ../fish/guestfish-actions.pod:1286
20655 msgid "get-autosync"
20656 msgstr ""
20657
20658 # type: verbatim
20659 #: ../fish/guestfish-actions.pod:1288
20660 #, no-wrap
20661 msgid ""
20662 " get-autosync\n"
20663 "\n"
20664 msgstr ""
20665
20666 # type: =head2
20667 #: ../fish/guestfish-actions.pod:1292
20668 msgid "get-direct"
20669 msgstr ""
20670
20671 # type: verbatim
20672 #: ../fish/guestfish-actions.pod:1294
20673 #, no-wrap
20674 msgid ""
20675 " get-direct\n"
20676 "\n"
20677 msgstr ""
20678
20679 # type: =head2
20680 #: ../fish/guestfish-actions.pod:1298
20681 msgid "get-e2label"
20682 msgstr ""
20683
20684 # type: verbatim
20685 #: ../fish/guestfish-actions.pod:1300
20686 #, no-wrap
20687 msgid ""
20688 " get-e2label device\n"
20689 "\n"
20690 msgstr ""
20691
20692 # type: =head2
20693 #: ../fish/guestfish-actions.pod:1312
20694 msgid "get-e2uuid"
20695 msgstr ""
20696
20697 # type: verbatim
20698 #: ../fish/guestfish-actions.pod:1314
20699 #, no-wrap
20700 msgid ""
20701 " get-e2uuid device\n"
20702 "\n"
20703 msgstr ""
20704
20705 # type: =head2
20706 #: ../fish/guestfish-actions.pod:1326
20707 msgid "get-memsize"
20708 msgstr ""
20709
20710 # type: verbatim
20711 #: ../fish/guestfish-actions.pod:1328
20712 #, no-wrap
20713 msgid ""
20714 " get-memsize\n"
20715 "\n"
20716 msgstr ""
20717
20718 # type: textblock
20719 #: ../fish/guestfish-actions.pod:1333
20720 msgid ""
20721 "If L</set-memsize> was not called on this handle, and if "
20722 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20723 "value for memsize."
20724 msgstr ""
20725
20726 # type: =head2
20727 #: ../fish/guestfish-actions.pod:1340
20728 msgid "get-network"
20729 msgstr ""
20730
20731 # type: verbatim
20732 #: ../fish/guestfish-actions.pod:1342
20733 #, no-wrap
20734 msgid ""
20735 " get-network\n"
20736 "\n"
20737 msgstr ""
20738
20739 # type: =head2
20740 #: ../fish/guestfish-actions.pod:1346
20741 msgid "get-path"
20742 msgstr ""
20743
20744 # type: verbatim
20745 #: ../fish/guestfish-actions.pod:1348
20746 #, no-wrap
20747 msgid ""
20748 " get-path\n"
20749 "\n"
20750 msgstr ""
20751
20752 # type: =head2
20753 #: ../fish/guestfish-actions.pod:1355
20754 msgid "get-pid"
20755 msgstr ""
20756
20757 # type: =head2
20758 #: ../fish/guestfish-actions.pod:1357
20759 msgid "pid"
20760 msgstr ""
20761
20762 # type: verbatim
20763 #: ../fish/guestfish-actions.pod:1359
20764 #, no-wrap
20765 msgid ""
20766 " get-pid\n"
20767 "\n"
20768 msgstr ""
20769
20770 # type: =head2
20771 #: ../fish/guestfish-actions.pod:1366
20772 msgid "get-qemu"
20773 msgstr ""
20774
20775 # type: verbatim
20776 #: ../fish/guestfish-actions.pod:1368
20777 #, no-wrap
20778 msgid ""
20779 " get-qemu\n"
20780 "\n"
20781 msgstr ""
20782
20783 # type: =head2
20784 #: ../fish/guestfish-actions.pod:1375
20785 msgid "get-recovery-proc"
20786 msgstr ""
20787
20788 # type: verbatim
20789 #: ../fish/guestfish-actions.pod:1377
20790 #, no-wrap
20791 msgid ""
20792 " get-recovery-proc\n"
20793 "\n"
20794 msgstr ""
20795
20796 # type: =head2
20797 #: ../fish/guestfish-actions.pod:1381
20798 msgid "get-selinux"
20799 msgstr ""
20800
20801 # type: verbatim
20802 #: ../fish/guestfish-actions.pod:1383
20803 #, no-wrap
20804 msgid ""
20805 " get-selinux\n"
20806 "\n"
20807 msgstr ""
20808
20809 # type: textblock
20810 #: ../fish/guestfish-actions.pod:1385
20811 msgid ""
20812 "This returns the current setting of the selinux flag which is passed to the "
20813 "appliance at boot time.  See L</set-selinux>."
20814 msgstr ""
20815
20816 # type: =head2
20817 #: ../fish/guestfish-actions.pod:1391
20818 msgid "get-state"
20819 msgstr ""
20820
20821 # type: verbatim
20822 #: ../fish/guestfish-actions.pod:1393
20823 #, no-wrap
20824 msgid ""
20825 " get-state\n"
20826 "\n"
20827 msgstr ""
20828
20829 # type: =head2
20830 #: ../fish/guestfish-actions.pod:1400
20831 msgid "get-trace"
20832 msgstr ""
20833
20834 # type: verbatim
20835 #: ../fish/guestfish-actions.pod:1402
20836 #, no-wrap
20837 msgid ""
20838 " get-trace\n"
20839 "\n"
20840 msgstr ""
20841
20842 # type: =head2
20843 #: ../fish/guestfish-actions.pod:1406
20844 msgid "get-umask"
20845 msgstr ""
20846
20847 # type: verbatim
20848 #: ../fish/guestfish-actions.pod:1408
20849 #, no-wrap
20850 msgid ""
20851 " get-umask\n"
20852 "\n"
20853 msgstr ""
20854
20855 # type: textblock
20856 #: ../fish/guestfish-actions.pod:1410
20857 msgid ""
20858 "Return the current umask.  By default the umask is C<022> unless it has been "
20859 "set by calling L</umask>."
20860 msgstr ""
20861
20862 # type: =head2
20863 #: ../fish/guestfish-actions.pod:1413
20864 msgid "get-verbose"
20865 msgstr ""
20866
20867 # type: verbatim
20868 #: ../fish/guestfish-actions.pod:1415
20869 #, no-wrap
20870 msgid ""
20871 " get-verbose\n"
20872 "\n"
20873 msgstr ""
20874
20875 # type: =head2
20876 #: ../fish/guestfish-actions.pod:1419
20877 msgid "getcon"
20878 msgstr ""
20879
20880 # type: verbatim
20881 #: ../fish/guestfish-actions.pod:1421
20882 #, no-wrap
20883 msgid ""
20884 " getcon\n"
20885 "\n"
20886 msgstr ""
20887
20888 # type: textblock
20889 #: ../fish/guestfish-actions.pod:1425
20890 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20891 msgstr ""
20892
20893 # type: =head2
20894 #: ../fish/guestfish-actions.pod:1428
20895 msgid "getxattrs"
20896 msgstr ""
20897
20898 # type: verbatim
20899 #: ../fish/guestfish-actions.pod:1430
20900 #, no-wrap
20901 msgid ""
20902 " getxattrs path\n"
20903 "\n"
20904 msgstr ""
20905
20906 # type: textblock
20907 #: ../fish/guestfish-actions.pod:1438
20908 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20909 msgstr ""
20910
20911 # type: =head2
20912 #: ../fish/guestfish-actions.pod:1440
20913 msgid "glob-expand"
20914 msgstr ""
20915
20916 # type: verbatim
20917 #: ../fish/guestfish-actions.pod:1442
20918 #, no-wrap
20919 msgid ""
20920 " glob-expand pattern\n"
20921 "\n"
20922 msgstr ""
20923
20924 # type: =head2
20925 #: ../fish/guestfish-actions.pod:1455
20926 msgid "grep"
20927 msgstr ""
20928
20929 # type: verbatim
20930 #: ../fish/guestfish-actions.pod:1457
20931 #, no-wrap
20932 msgid ""
20933 " grep regex path\n"
20934 "\n"
20935 msgstr ""
20936
20937 # type: =head2
20938 #: ../fish/guestfish-actions.pod:1465
20939 msgid "grepi"
20940 msgstr ""
20941
20942 # type: verbatim
20943 #: ../fish/guestfish-actions.pod:1467
20944 #, no-wrap
20945 msgid ""
20946 " grepi regex path\n"
20947 "\n"
20948 msgstr ""
20949
20950 # type: =head2
20951 #: ../fish/guestfish-actions.pod:1475
20952 msgid "grub-install"
20953 msgstr ""
20954
20955 # type: verbatim
20956 #: ../fish/guestfish-actions.pod:1477
20957 #, no-wrap
20958 msgid ""
20959 " grub-install root device\n"
20960 "\n"
20961 msgstr ""
20962
20963 # type: =head2
20964 #: ../fish/guestfish-actions.pod:1493
20965 msgid "head"
20966 msgstr ""
20967
20968 # type: verbatim
20969 #: ../fish/guestfish-actions.pod:1495
20970 #, no-wrap
20971 msgid ""
20972 " head path\n"
20973 "\n"
20974 msgstr ""
20975
20976 # type: =head2
20977 #: ../fish/guestfish-actions.pod:1503
20978 msgid "head-n"
20979 msgstr ""
20980
20981 # type: verbatim
20982 #: ../fish/guestfish-actions.pod:1505
20983 #, no-wrap
20984 msgid ""
20985 " head-n nrlines path\n"
20986 "\n"
20987 msgstr ""
20988
20989 # type: =head2
20990 #: ../fish/guestfish-actions.pod:1518
20991 msgid "hexdump"
20992 msgstr ""
20993
20994 # type: verbatim
20995 #: ../fish/guestfish-actions.pod:1520
20996 #, no-wrap
20997 msgid ""
20998 " hexdump path\n"
20999 "\n"
21000 msgstr ""
21001
21002 # type: =head2
21003 #: ../fish/guestfish-actions.pod:1528
21004 msgid "initrd-cat"
21005 msgstr ""
21006
21007 # type: verbatim
21008 #: ../fish/guestfish-actions.pod:1530
21009 #, no-wrap
21010 msgid ""
21011 " initrd-cat initrdpath filename\n"
21012 "\n"
21013 msgstr ""
21014
21015 # type: textblock
21016 #: ../fish/guestfish-actions.pod:1542
21017 msgid "See also L</initrd-list>."
21018 msgstr ""
21019
21020 # type: =head2
21021 #: ../fish/guestfish-actions.pod:1547
21022 msgid "initrd-list"
21023 msgstr ""
21024
21025 # type: verbatim
21026 #: ../fish/guestfish-actions.pod:1549
21027 #, no-wrap
21028 msgid ""
21029 " initrd-list path\n"
21030 "\n"
21031 msgstr ""
21032
21033 # type: =head2
21034 #: ../fish/guestfish-actions.pod:1561
21035 msgid "inotify-add-watch"
21036 msgstr ""
21037
21038 # type: verbatim
21039 #: ../fish/guestfish-actions.pod:1563
21040 #, no-wrap
21041 msgid ""
21042 " inotify-add-watch path mask\n"
21043 "\n"
21044 msgstr ""
21045
21046 # type: =head2
21047 #: ../fish/guestfish-actions.pod:1575
21048 msgid "inotify-close"
21049 msgstr ""
21050
21051 # type: verbatim
21052 #: ../fish/guestfish-actions.pod:1577
21053 #, no-wrap
21054 msgid ""
21055 " inotify-close\n"
21056 "\n"
21057 msgstr ""
21058
21059 # type: =head2
21060 #: ../fish/guestfish-actions.pod:1583
21061 msgid "inotify-files"
21062 msgstr ""
21063
21064 # type: verbatim
21065 #: ../fish/guestfish-actions.pod:1585
21066 #, no-wrap
21067 msgid ""
21068 " inotify-files\n"
21069 "\n"
21070 msgstr ""
21071
21072 # type: textblock
21073 #: ../fish/guestfish-actions.pod:1587
21074 msgid ""
21075 "This function is a helpful wrapper around L</inotify-read> which just "
21076 "returns a list of pathnames of objects that were touched.  The returned "
21077 "pathnames are sorted and deduplicated."
21078 msgstr ""
21079
21080 # type: =head2
21081 #: ../fish/guestfish-actions.pod:1591
21082 msgid "inotify-init"
21083 msgstr ""
21084
21085 # type: verbatim
21086 #: ../fish/guestfish-actions.pod:1593
21087 #, no-wrap
21088 msgid ""
21089 " inotify-init maxevents\n"
21090 "\n"
21091 msgstr ""
21092
21093 # type: textblock
21094 #: ../fish/guestfish-actions.pod:1599
21095 msgid ""
21096 "C<maxevents> is the maximum number of events which will be queued up between "
21097 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21098 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21099 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21100 "but records the fact that it threw them away by setting a flag "
21101 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21102 msgstr ""
21103
21104 # type: textblock
21105 #: ../fish/guestfish-actions.pod:1609
21106 msgid ""
21107 "Before any events are generated, you have to add some watches to the "
21108 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21109 "L</inotify-watch-all>."
21110 msgstr ""
21111
21112 # type: textblock
21113 #: ../fish/guestfish-actions.pod:1615
21114 msgid ""
21115 "Queued up events should be read periodically by calling L</inotify-read> (or "
21116 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21117 "If you don't read the events out often enough then you risk the internal "
21118 "queue overflowing."
21119 msgstr ""
21120
21121 # type: textblock
21122 #: ../fish/guestfish-actions.pod:1622
21123 msgid ""
21124 "The handle should be closed after use by calling L</inotify-close>.  This "
21125 "also removes any watches automatically."
21126 msgstr ""
21127
21128 # type: =head2
21129 #: ../fish/guestfish-actions.pod:1631
21130 msgid "inotify-read"
21131 msgstr ""
21132
21133 # type: verbatim
21134 #: ../fish/guestfish-actions.pod:1633
21135 #, no-wrap
21136 msgid ""
21137 " inotify-read\n"
21138 "\n"
21139 msgstr ""
21140
21141 # type: =head2
21142 #: ../fish/guestfish-actions.pod:1646
21143 msgid "inotify-rm-watch"
21144 msgstr ""
21145
21146 # type: verbatim
21147 #: ../fish/guestfish-actions.pod:1648
21148 #, no-wrap
21149 msgid ""
21150 " inotify-rm-watch wd\n"
21151 "\n"
21152 msgstr ""
21153
21154 # type: textblock
21155 #: ../fish/guestfish-actions.pod:1650
21156 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21157 msgstr ""
21158
21159 # type: =head2
21160 #: ../fish/guestfish-actions.pod:1653
21161 msgid "inspect-get-arch"
21162 msgstr ""
21163
21164 # type: verbatim
21165 #: ../fish/guestfish-actions.pod:1655
21166 #, no-wrap
21167 msgid ""
21168 " inspect-get-arch root\n"
21169 "\n"
21170 msgstr ""
21171
21172 # type: textblock
21173 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
21174 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765
21175 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801
21176 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839
21177 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885
21178 #: ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950
21179 #: ../fish/guestfish-actions.pod:1966
21180 msgid ""
21181 "This function should only be called with a root device string as returned by "
21182 "L</inspect-os>."
21183 msgstr ""
21184
21185 # type: textblock
21186 #: ../fish/guestfish-actions.pod:1660
21187 msgid ""
21188 "This returns the architecture of the inspected operating system.  The "
21189 "possible return values are listed under L</file-architecture>."
21190 msgstr ""
21191
21192 # type: =head2
21193 #: ../fish/guestfish-actions.pod:1669
21194 msgid "inspect-get-distro"
21195 msgstr ""
21196
21197 # type: verbatim
21198 #: ../fish/guestfish-actions.pod:1671
21199 #, no-wrap
21200 msgid ""
21201 " inspect-get-distro root\n"
21202 "\n"
21203 msgstr ""
21204
21205 # type: =head2
21206 #: ../fish/guestfish-actions.pod:1743
21207 msgid "inspect-get-filesystems"
21208 msgstr ""
21209
21210 # type: verbatim
21211 #: ../fish/guestfish-actions.pod:1745
21212 #, no-wrap
21213 msgid ""
21214 " inspect-get-filesystems root\n"
21215 "\n"
21216 msgstr ""
21217
21218 # type: textblock
21219 #: ../fish/guestfish-actions.pod:1758
21220 msgid ""
21221 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21222 "get-mountpoints>."
21223 msgstr ""
21224
21225 # type: =head2
21226 #: ../fish/guestfish-actions.pod:1761
21227 msgid "inspect-get-hostname"
21228 msgstr ""
21229
21230 # type: verbatim
21231 #: ../fish/guestfish-actions.pod:1763
21232 #, no-wrap
21233 msgid ""
21234 " inspect-get-hostname root\n"
21235 "\n"
21236 msgstr ""
21237
21238 # type: =head2
21239 #: ../fish/guestfish-actions.pod:1776
21240 msgid "inspect-get-major-version"
21241 msgstr ""
21242
21243 # type: verbatim
21244 #: ../fish/guestfish-actions.pod:1778
21245 #, no-wrap
21246 msgid ""
21247 " inspect-get-major-version root\n"
21248 "\n"
21249 msgstr ""
21250
21251 # type: =head2
21252 #: ../fish/guestfish-actions.pod:1797
21253 msgid "inspect-get-minor-version"
21254 msgstr ""
21255
21256 # type: verbatim
21257 #: ../fish/guestfish-actions.pod:1799
21258 #, no-wrap
21259 msgid ""
21260 " inspect-get-minor-version root\n"
21261 "\n"
21262 msgstr ""
21263
21264 # type: textblock
21265 #: ../fish/guestfish-actions.pod:1809
21266 msgid ""
21267 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21268 "get-major-version>."
21269 msgstr ""
21270
21271 # type: =head2
21272 #: ../fish/guestfish-actions.pod:1812
21273 msgid "inspect-get-mountpoints"
21274 msgstr ""
21275
21276 # type: verbatim
21277 #: ../fish/guestfish-actions.pod:1814
21278 #, no-wrap
21279 msgid ""
21280 " inspect-get-mountpoints root\n"
21281 "\n"
21282 msgstr ""
21283
21284 # type: textblock
21285 #: ../fish/guestfish-actions.pod:1832
21286 msgid ""
21287 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21288 "get-filesystems>."
21289 msgstr ""
21290
21291 # type: =head2
21292 #: ../fish/guestfish-actions.pod:1835
21293 msgid "inspect-get-package-format"
21294 msgstr ""
21295
21296 # type: verbatim
21297 #: ../fish/guestfish-actions.pod:1837
21298 #, no-wrap
21299 msgid ""
21300 " inspect-get-package-format root\n"
21301 "\n"
21302 msgstr ""
21303
21304 # type: textblock
21305 #: ../fish/guestfish-actions.pod:1842
21306 msgid ""
21307 "This function and L</inspect-get-package-management> return the package "
21308 "format and package management tool used by the inspected operating system.  "
21309 "For example for Fedora these functions would return C<rpm> (package format) "
21310 "and C<yum> (package management)."
21311 msgstr ""
21312
21313 # type: =head2
21314 #: ../fish/guestfish-actions.pod:1857
21315 msgid "inspect-get-package-management"
21316 msgstr ""
21317
21318 # type: verbatim
21319 #: ../fish/guestfish-actions.pod:1859
21320 #, no-wrap
21321 msgid ""
21322 " inspect-get-package-management root\n"
21323 "\n"
21324 msgstr ""
21325
21326 # type: textblock
21327 #: ../fish/guestfish-actions.pod:1864
21328 msgid ""
21329 "L</inspect-get-package-format> and this function return the package format "
21330 "and package management tool used by the inspected operating system.  For "
21331 "example for Fedora these functions would return C<rpm> (package format) and "
21332 "C<yum> (package management)."
21333 msgstr ""
21334
21335 # type: =head2
21336 #: ../fish/guestfish-actions.pod:1881
21337 msgid "inspect-get-product-name"
21338 msgstr ""
21339
21340 # type: verbatim
21341 #: ../fish/guestfish-actions.pod:1883
21342 #, no-wrap
21343 msgid ""
21344 " inspect-get-product-name root\n"
21345 "\n"
21346 msgstr ""
21347
21348 # type: =head2
21349 #: ../fish/guestfish-actions.pod:1898
21350 msgid "inspect-get-roots"
21351 msgstr ""
21352
21353 # type: verbatim
21354 #: ../fish/guestfish-actions.pod:1900
21355 #, no-wrap
21356 msgid ""
21357 " inspect-get-roots\n"
21358 "\n"
21359 msgstr ""
21360
21361 # type: textblock
21362 #: ../fish/guestfish-actions.pod:1902
21363 msgid ""
21364 "This function is a convenient way to get the list of root devices, as "
21365 "returned from a previous call to L</inspect-os>, but without redoing the "
21366 "whole inspection process."
21367 msgstr ""
21368
21369 # type: textblock
21370 #: ../fish/guestfish-actions.pod:1906
21371 msgid ""
21372 "This returns an empty list if either no root devices were found or the "
21373 "caller has not called L</inspect-os>."
21374 msgstr ""
21375
21376 # type: =head2
21377 #: ../fish/guestfish-actions.pod:1911
21378 msgid "inspect-get-type"
21379 msgstr ""
21380
21381 # type: verbatim
21382 #: ../fish/guestfish-actions.pod:1913
21383 #, no-wrap
21384 msgid ""
21385 " inspect-get-type root\n"
21386 "\n"
21387 msgstr ""
21388
21389 # type: =head2
21390 #: ../fish/guestfish-actions.pod:1946
21391 msgid "inspect-get-windows-systemroot"
21392 msgstr ""
21393
21394 # type: verbatim
21395 #: ../fish/guestfish-actions.pod:1948
21396 #, no-wrap
21397 msgid ""
21398 " inspect-get-windows-systemroot root\n"
21399 "\n"
21400 msgstr ""
21401
21402 # type: =head2
21403 #: ../fish/guestfish-actions.pod:1962
21404 msgid "inspect-list-applications"
21405 msgstr ""
21406
21407 # type: verbatim
21408 #: ../fish/guestfish-actions.pod:1964
21409 #, no-wrap
21410 msgid ""
21411 " inspect-list-applications root\n"
21412 "\n"
21413 msgstr ""
21414
21415 # type: textblock
21416 #: ../fish/guestfish-actions.pod:1971
21417 msgid ""
21418 "I<Note:> This call works differently from other parts of the inspection "
21419 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21420 "then mount up the disks, before calling this.  Listing applications is a "
21421 "significantly more difficult operation which requires access to the full "
21422 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21423 "are just returning data cached in the libguestfs handle, this call actually "
21424 "reads parts of the mounted filesystems during the call."
21425 msgstr ""
21426
21427 # type: =head2
21428 #: ../fish/guestfish-actions.pod:2061
21429 msgid "inspect-os"
21430 msgstr ""
21431
21432 # type: verbatim
21433 #: ../fish/guestfish-actions.pod:2063
21434 #, no-wrap
21435 msgid ""
21436 " inspect-os\n"
21437 "\n"
21438 msgstr ""
21439
21440 # type: textblock
21441 #: ../fish/guestfish-actions.pod:2078
21442 msgid ""
21443 "You can pass the root string(s) returned to other L</inspect-get-*> "
21444 "functions in order to query further information about each operating system, "
21445 "such as the name and version."
21446 msgstr ""
21447
21448 # type: textblock
21449 #: ../fish/guestfish-actions.pod:2083
21450 msgid ""
21451 "This function uses other libguestfs features such as L</mount-ro> and L</"
21452 "umount-all> in order to mount and unmount filesystems and look at the "
21453 "contents.  This should be called with no disks currently mounted.  The "
21454 "function may also use Augeas, so any existing Augeas handle will be closed."
21455 msgstr ""
21456
21457 # type: textblock
21458 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251
21459 #: ../fish/guestfish-actions.pod:2297
21460 msgid "See also L</list-filesystems>."
21461 msgstr ""
21462
21463 # type: =head2
21464 #: ../fish/guestfish-actions.pod:2097
21465 msgid "is-blockdev"
21466 msgstr ""
21467
21468 # type: verbatim
21469 #: ../fish/guestfish-actions.pod:2099
21470 #, no-wrap
21471 msgid ""
21472 " is-blockdev path\n"
21473 "\n"
21474 msgstr ""
21475
21476 # type: textblock
21477 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122
21478 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150
21479 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194
21480 #: ../fish/guestfish-actions.pod:2203
21481 msgid "See also L</stat>."
21482 msgstr ""
21483
21484 # type: =head2
21485 #: ../fish/guestfish-actions.pod:2106
21486 msgid "is-busy"
21487 msgstr ""
21488
21489 # type: verbatim
21490 #: ../fish/guestfish-actions.pod:2108
21491 #, no-wrap
21492 msgid ""
21493 " is-busy\n"
21494 "\n"
21495 msgstr ""
21496
21497 # type: =head2
21498 #: ../fish/guestfish-actions.pod:2115
21499 msgid "is-chardev"
21500 msgstr ""
21501
21502 # type: verbatim
21503 #: ../fish/guestfish-actions.pod:2117
21504 #, no-wrap
21505 msgid ""
21506 " is-chardev path\n"
21507 "\n"
21508 msgstr ""
21509
21510 # type: =head2
21511 #: ../fish/guestfish-actions.pod:2124
21512 msgid "is-config"
21513 msgstr ""
21514
21515 # type: verbatim
21516 #: ../fish/guestfish-actions.pod:2126
21517 #, no-wrap
21518 msgid ""
21519 " is-config\n"
21520 "\n"
21521 msgstr ""
21522
21523 # type: =head2
21524 #: ../fish/guestfish-actions.pod:2133
21525 msgid "is-dir"
21526 msgstr ""
21527
21528 # type: verbatim
21529 #: ../fish/guestfish-actions.pod:2135
21530 #, no-wrap
21531 msgid ""
21532 " is-dir path\n"
21533 "\n"
21534 msgstr ""
21535
21536 # type: =head2
21537 #: ../fish/guestfish-actions.pod:2143
21538 msgid "is-fifo"
21539 msgstr ""
21540
21541 # type: verbatim
21542 #: ../fish/guestfish-actions.pod:2145
21543 #, no-wrap
21544 msgid ""
21545 " is-fifo path\n"
21546 "\n"
21547 msgstr ""
21548
21549 # type: =head2
21550 #: ../fish/guestfish-actions.pod:2152
21551 msgid "is-file"
21552 msgstr ""
21553
21554 # type: verbatim
21555 #: ../fish/guestfish-actions.pod:2154
21556 #, no-wrap
21557 msgid ""
21558 " is-file path\n"
21559 "\n"
21560 msgstr ""
21561
21562 # type: =head2
21563 #: ../fish/guestfish-actions.pod:2162
21564 msgid "is-launching"
21565 msgstr ""
21566
21567 # type: verbatim
21568 #: ../fish/guestfish-actions.pod:2164
21569 #, no-wrap
21570 msgid ""
21571 " is-launching\n"
21572 "\n"
21573 msgstr ""
21574
21575 # type: =head2
21576 #: ../fish/guestfish-actions.pod:2171
21577 msgid "is-lv"
21578 msgstr ""
21579
21580 # type: verbatim
21581 #: ../fish/guestfish-actions.pod:2173
21582 #, no-wrap
21583 msgid ""
21584 " is-lv device\n"
21585 "\n"
21586 msgstr ""
21587
21588 # type: =head2
21589 #: ../fish/guestfish-actions.pod:2178
21590 msgid "is-ready"
21591 msgstr ""
21592
21593 # type: verbatim
21594 #: ../fish/guestfish-actions.pod:2180
21595 #, no-wrap
21596 msgid ""
21597 " is-ready\n"
21598 "\n"
21599 msgstr ""
21600
21601 # type: =head2
21602 #: ../fish/guestfish-actions.pod:2187
21603 msgid "is-socket"
21604 msgstr ""
21605
21606 # type: verbatim
21607 #: ../fish/guestfish-actions.pod:2189
21608 #, no-wrap
21609 msgid ""
21610 " is-socket path\n"
21611 "\n"
21612 msgstr ""
21613
21614 # type: =head2
21615 #: ../fish/guestfish-actions.pod:2196
21616 msgid "is-symlink"
21617 msgstr ""
21618
21619 # type: verbatim
21620 #: ../fish/guestfish-actions.pod:2198
21621 #, no-wrap
21622 msgid ""
21623 " is-symlink path\n"
21624 "\n"
21625 msgstr ""
21626
21627 # type: =head2
21628 #: ../fish/guestfish-actions.pod:2205
21629 msgid "kill-subprocess"
21630 msgstr ""
21631
21632 # type: verbatim
21633 #: ../fish/guestfish-actions.pod:2207
21634 #, no-wrap
21635 msgid ""
21636 " kill-subprocess\n"
21637 "\n"
21638 msgstr ""
21639
21640 # type: =head2
21641 #: ../fish/guestfish-actions.pod:2211
21642 msgid "launch"
21643 msgstr ""
21644
21645 # type: =head2
21646 #: ../fish/guestfish-actions.pod:2213
21647 msgid "run"
21648 msgstr ""
21649
21650 # type: verbatim
21651 #: ../fish/guestfish-actions.pod:2215
21652 #, no-wrap
21653 msgid ""
21654 " launch\n"
21655 "\n"
21656 msgstr ""
21657
21658 # type: =head2
21659 #: ../fish/guestfish-actions.pod:2223
21660 msgid "lchown"
21661 msgstr ""
21662
21663 # type: verbatim
21664 #: ../fish/guestfish-actions.pod:2225
21665 #, no-wrap
21666 msgid ""
21667 " lchown owner group path\n"
21668 "\n"
21669 msgstr ""
21670
21671 # type: textblock
21672 #: ../fish/guestfish-actions.pod:2227
21673 msgid ""
21674 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21675 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21676 "target."
21677 msgstr ""
21678
21679 # type: =head2
21680 #: ../fish/guestfish-actions.pod:2235
21681 msgid "lgetxattrs"
21682 msgstr ""
21683
21684 # type: verbatim
21685 #: ../fish/guestfish-actions.pod:2237
21686 #, no-wrap
21687 msgid ""
21688 " lgetxattrs path\n"
21689 "\n"
21690 msgstr ""
21691
21692 # type: textblock
21693 #: ../fish/guestfish-actions.pod:2239
21694 msgid ""
21695 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21696 "it returns the extended attributes of the link itself."
21697 msgstr ""
21698
21699 # type: =head2
21700 #: ../fish/guestfish-actions.pod:2243
21701 msgid "list-devices"
21702 msgstr ""
21703
21704 # type: verbatim
21705 #: ../fish/guestfish-actions.pod:2245
21706 #, no-wrap
21707 msgid ""
21708 " list-devices\n"
21709 "\n"
21710 msgstr ""
21711
21712 # type: =head2
21713 #: ../fish/guestfish-actions.pod:2253
21714 msgid "list-filesystems"
21715 msgstr ""
21716
21717 # type: verbatim
21718 #: ../fish/guestfish-actions.pod:2255
21719 #, no-wrap
21720 msgid ""
21721 " list-filesystems\n"
21722 "\n"
21723 msgstr ""
21724
21725 # type: textblock
21726 #: ../fish/guestfish-actions.pod:2274
21727 msgid ""
21728 "This command runs other libguestfs commands, which might include L</mount> "
21729 "and L</umount>, and therefore you should use this soon after launch and only "
21730 "when nothing is mounted."
21731 msgstr ""
21732
21733 # type: textblock
21734 #: ../fish/guestfish-actions.pod:2278
21735 msgid ""
21736 "Not all of the filesystems returned will be mountable.  In particular, swap "
21737 "partitions are returned in the list.  Also this command does not check that "
21738 "each filesystem found is valid and mountable, and some filesystems might be "
21739 "mountable but require special options.  Filesystems may not all belong to a "
21740 "single logical operating system (use L</inspect-os> to look for OSes)."
21741 msgstr ""
21742
21743 # type: =head2
21744 #: ../fish/guestfish-actions.pod:2286
21745 msgid "list-partitions"
21746 msgstr ""
21747
21748 # type: verbatim
21749 #: ../fish/guestfish-actions.pod:2288
21750 #, no-wrap
21751 msgid ""
21752 " list-partitions\n"
21753 "\n"
21754 msgstr ""
21755
21756 # type: textblock
21757 #: ../fish/guestfish-actions.pod:2294
21758 msgid ""
21759 "This does not return logical volumes.  For that you will need to call L</"
21760 "lvs>."
21761 msgstr ""
21762
21763 # type: =head2
21764 #: ../fish/guestfish-actions.pod:2299
21765 msgid "ll"
21766 msgstr ""
21767
21768 # type: verbatim
21769 #: ../fish/guestfish-actions.pod:2301
21770 #, no-wrap
21771 msgid ""
21772 " ll directory\n"
21773 "\n"
21774 msgstr ""
21775
21776 # type: =head2
21777 #: ../fish/guestfish-actions.pod:2309
21778 msgid "ln"
21779 msgstr ""
21780
21781 # type: verbatim
21782 #: ../fish/guestfish-actions.pod:2311
21783 #, no-wrap
21784 msgid ""
21785 " ln target linkname\n"
21786 "\n"
21787 msgstr ""
21788
21789 # type: =head2
21790 #: ../fish/guestfish-actions.pod:2315
21791 msgid "ln-f"
21792 msgstr ""
21793
21794 # type: verbatim
21795 #: ../fish/guestfish-actions.pod:2317
21796 #, no-wrap
21797 msgid ""
21798 " ln-f target linkname\n"
21799 "\n"
21800 msgstr ""
21801
21802 # type: =head2
21803 #: ../fish/guestfish-actions.pod:2322
21804 msgid "ln-s"
21805 msgstr ""
21806
21807 # type: verbatim
21808 #: ../fish/guestfish-actions.pod:2324
21809 #, no-wrap
21810 msgid ""
21811 " ln-s target linkname\n"
21812 "\n"
21813 msgstr ""
21814
21815 # type: =head2
21816 #: ../fish/guestfish-actions.pod:2328
21817 msgid "ln-sf"
21818 msgstr ""
21819
21820 # type: verbatim
21821 #: ../fish/guestfish-actions.pod:2330
21822 #, no-wrap
21823 msgid ""
21824 " ln-sf target linkname\n"
21825 "\n"
21826 msgstr ""
21827
21828 # type: =head2
21829 #: ../fish/guestfish-actions.pod:2335
21830 msgid "lremovexattr"
21831 msgstr ""
21832
21833 # type: verbatim
21834 #: ../fish/guestfish-actions.pod:2337
21835 #, no-wrap
21836 msgid ""
21837 " lremovexattr xattr path\n"
21838 "\n"
21839 msgstr ""
21840
21841 # type: textblock
21842 #: ../fish/guestfish-actions.pod:2339
21843 msgid ""
21844 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21845 "it removes an extended attribute of the link itself."
21846 msgstr ""
21847
21848 # type: =head2
21849 #: ../fish/guestfish-actions.pod:2343
21850 msgid "ls"
21851 msgstr ""
21852
21853 # type: verbatim
21854 #: ../fish/guestfish-actions.pod:2345
21855 #, no-wrap
21856 msgid ""
21857 " ls directory\n"
21858 "\n"
21859 msgstr ""
21860
21861 # type: textblock
21862 #: ../fish/guestfish-actions.pod:2351
21863 msgid ""
21864 "This command is mostly useful for interactive sessions.  Programs should "
21865 "probably use L</readdir> instead."
21866 msgstr ""
21867
21868 # type: =head2
21869 #: ../fish/guestfish-actions.pod:2354
21870 msgid "lsetxattr"
21871 msgstr ""
21872
21873 # type: verbatim
21874 #: ../fish/guestfish-actions.pod:2356
21875 #, no-wrap
21876 msgid ""
21877 " lsetxattr xattr val vallen path\n"
21878 "\n"
21879 msgstr ""
21880
21881 # type: textblock
21882 #: ../fish/guestfish-actions.pod:2358
21883 msgid ""
21884 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21885 "sets an extended attribute of the link itself."
21886 msgstr ""
21887
21888 # type: =head2
21889 #: ../fish/guestfish-actions.pod:2362
21890 msgid "lstat"
21891 msgstr ""
21892
21893 # type: verbatim
21894 #: ../fish/guestfish-actions.pod:2364
21895 #, no-wrap
21896 msgid ""
21897 " lstat path\n"
21898 "\n"
21899 msgstr ""
21900
21901 # type: textblock
21902 #: ../fish/guestfish-actions.pod:2368
21903 msgid ""
21904 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21905 "the link is stat-ed, not the file it refers to."
21906 msgstr ""
21907
21908 # type: =head2
21909 #: ../fish/guestfish-actions.pod:2374
21910 msgid "lstatlist"
21911 msgstr ""
21912
21913 # type: verbatim
21914 #: ../fish/guestfish-actions.pod:2376
21915 #, no-wrap
21916 msgid ""
21917 " lstatlist path 'names ...'\n"
21918 "\n"
21919 msgstr ""
21920
21921 # type: textblock
21922 #: ../fish/guestfish-actions.pod:2378
21923 msgid ""
21924 "This call allows you to perform the L</lstat> operation on multiple files, "
21925 "where all files are in the directory C<path>.  C<names> is the list of files "
21926 "from this directory."
21927 msgstr ""
21928
21929 # type: textblock
21930 #: ../fish/guestfish-actions.pod:2387
21931 msgid ""
21932 "This call is intended for programs that want to efficiently list a directory "
21933 "contents without making many round-trips.  See also L</lxattrlist> for a "
21934 "similarly efficient call for getting extended attributes.  Very long "
21935 "directory listings might cause the protocol message size to be exceeded, "
21936 "causing this call to fail.  The caller must split up such requests into "
21937 "smaller groups of names."
21938 msgstr ""
21939
21940 # type: =head2
21941 #: ../fish/guestfish-actions.pod:2395
21942 msgid "luks-add-key"
21943 msgstr ""
21944
21945 # type: verbatim
21946 #: ../fish/guestfish-actions.pod:2397
21947 #, no-wrap
21948 msgid ""
21949 " luks-add-key device keyslot\n"
21950 "\n"
21951 msgstr ""
21952
21953 # type: textblock
21954 #: ../fish/guestfish-actions.pod:2404
21955 msgid ""
21956 "Note that if C<keyslot> already contains a key, then this command will "
21957 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21958 msgstr ""
21959
21960 # type: textblock
21961 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430
21962 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457
21963 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
21964 msgid ""
21965 "This command has one or more key or passphrase parameters.  Guestfish will "
21966 "prompt for these separately."
21967 msgstr ""
21968
21969 # type: =head2
21970 #: ../fish/guestfish-actions.pod:2411
21971 msgid "luks-close"
21972 msgstr ""
21973
21974 # type: verbatim
21975 #: ../fish/guestfish-actions.pod:2413
21976 #, no-wrap
21977 msgid ""
21978 " luks-close device\n"
21979 "\n"
21980 msgstr ""
21981
21982 # type: textblock
21983 #: ../fish/guestfish-actions.pod:2415
21984 msgid ""
21985 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21986 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21987 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21988 "block device."
21989 msgstr ""
21990
21991 # type: =head2
21992 #: ../fish/guestfish-actions.pod:2421
21993 msgid "luks-format"
21994 msgstr ""
21995
21996 # type: verbatim
21997 #: ../fish/guestfish-actions.pod:2423
21998 #, no-wrap
21999 msgid ""
22000 " luks-format device keyslot\n"
22001 "\n"
22002 msgstr ""
22003
22004 # type: =head2
22005 #: ../fish/guestfish-actions.pod:2436
22006 msgid "luks-format-cipher"
22007 msgstr ""
22008
22009 # type: verbatim
22010 #: ../fish/guestfish-actions.pod:2438
22011 #, no-wrap
22012 msgid ""
22013 " luks-format-cipher device keyslot cipher\n"
22014 "\n"
22015 msgstr ""
22016
22017 # type: textblock
22018 #: ../fish/guestfish-actions.pod:2440
22019 msgid ""
22020 "This command is the same as L</luks-format> but it also allows you to set "
22021 "the C<cipher> used."
22022 msgstr ""
22023
22024 # type: =head2
22025 #: ../fish/guestfish-actions.pod:2449
22026 msgid "luks-kill-slot"
22027 msgstr ""
22028
22029 # type: verbatim
22030 #: ../fish/guestfish-actions.pod:2451
22031 #, no-wrap
22032 msgid ""
22033 " luks-kill-slot device keyslot\n"
22034 "\n"
22035 msgstr ""
22036
22037 # type: =head2
22038 #: ../fish/guestfish-actions.pod:2460
22039 msgid "luks-open"
22040 msgstr ""
22041
22042 # type: verbatim
22043 #: ../fish/guestfish-actions.pod:2462
22044 #, no-wrap
22045 msgid ""
22046 " luks-open device mapname\n"
22047 "\n"
22048 msgstr ""
22049
22050 # type: textblock
22051 #: ../fish/guestfish-actions.pod:2476
22052 msgid ""
22053 "If this block device contains LVM volume groups, then calling L</vgscan> "
22054 "followed by L</vg-activate-all> will make them visible."
22055 msgstr ""
22056
22057 # type: =head2
22058 #: ../fish/guestfish-actions.pod:2483
22059 msgid "luks-open-ro"
22060 msgstr ""
22061
22062 # type: verbatim
22063 #: ../fish/guestfish-actions.pod:2485
22064 #, no-wrap
22065 msgid ""
22066 " luks-open-ro device mapname\n"
22067 "\n"
22068 msgstr ""
22069
22070 # type: textblock
22071 #: ../fish/guestfish-actions.pod:2487
22072 msgid ""
22073 "This is the same as L</luks-open> except that a read-only mapping is created."
22074 msgstr ""
22075
22076 # type: =head2
22077 #: ../fish/guestfish-actions.pod:2493
22078 msgid "lvcreate"
22079 msgstr ""
22080
22081 # type: verbatim
22082 #: ../fish/guestfish-actions.pod:2495
22083 #, no-wrap
22084 msgid ""
22085 " lvcreate logvol volgroup mbytes\n"
22086 "\n"
22087 msgstr ""
22088
22089 # type: =head2
22090 #: ../fish/guestfish-actions.pod:2500
22091 msgid "lvm-canonical-lv-name"
22092 msgstr ""
22093
22094 # type: verbatim
22095 #: ../fish/guestfish-actions.pod:2502
22096 #, no-wrap
22097 msgid ""
22098 " lvm-canonical-lv-name lvname\n"
22099 "\n"
22100 msgstr ""
22101
22102 # type: textblock
22103 #: ../fish/guestfish-actions.pod:2511
22104 msgid "See also L</is-lv>."
22105 msgstr ""
22106
22107 # type: =head2
22108 #: ../fish/guestfish-actions.pod:2513
22109 msgid "lvm-clear-filter"
22110 msgstr ""
22111
22112 # type: verbatim
22113 #: ../fish/guestfish-actions.pod:2515
22114 #, no-wrap
22115 msgid ""
22116 " lvm-clear-filter\n"
22117 "\n"
22118 msgstr ""
22119
22120 # type: textblock
22121 #: ../fish/guestfish-actions.pod:2517
22122 msgid ""
22123 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22124 "block device."
22125 msgstr ""
22126
22127 # type: =head2
22128 #: ../fish/guestfish-actions.pod:2523
22129 msgid "lvm-remove-all"
22130 msgstr ""
22131
22132 # type: verbatim
22133 #: ../fish/guestfish-actions.pod:2525
22134 #, no-wrap
22135 msgid ""
22136 " lvm-remove-all\n"
22137 "\n"
22138 msgstr ""
22139
22140 # type: =head2
22141 #: ../fish/guestfish-actions.pod:2533
22142 msgid "lvm-set-filter"
22143 msgstr ""
22144
22145 # type: verbatim
22146 #: ../fish/guestfish-actions.pod:2535
22147 #, no-wrap
22148 msgid ""
22149 " lvm-set-filter 'devices ...'\n"
22150 "\n"
22151 msgstr ""
22152
22153 # type: =head2
22154 #: ../fish/guestfish-actions.pod:2560
22155 msgid "lvremove"
22156 msgstr ""
22157
22158 # type: verbatim
22159 #: ../fish/guestfish-actions.pod:2562
22160 #, no-wrap
22161 msgid ""
22162 " lvremove device\n"
22163 "\n"
22164 msgstr ""
22165
22166 # type: =head2
22167 #: ../fish/guestfish-actions.pod:2570
22168 msgid "lvrename"
22169 msgstr ""
22170
22171 # type: verbatim
22172 #: ../fish/guestfish-actions.pod:2572
22173 #, no-wrap
22174 msgid ""
22175 " lvrename logvol newlogvol\n"
22176 "\n"
22177 msgstr ""
22178
22179 # type: =head2
22180 #: ../fish/guestfish-actions.pod:2576
22181 msgid "lvresize"
22182 msgstr ""
22183
22184 # type: verbatim
22185 #: ../fish/guestfish-actions.pod:2578
22186 #, no-wrap
22187 msgid ""
22188 " lvresize device mbytes\n"
22189 "\n"
22190 msgstr ""
22191
22192 # type: =head2
22193 #: ../fish/guestfish-actions.pod:2584
22194 msgid "lvresize-free"
22195 msgstr ""
22196
22197 # type: verbatim
22198 #: ../fish/guestfish-actions.pod:2586
22199 #, no-wrap
22200 msgid ""
22201 " lvresize-free lv percent\n"
22202 "\n"
22203 msgstr ""
22204
22205 # type: =head2
22206 #: ../fish/guestfish-actions.pod:2594
22207 msgid "lvs"
22208 msgstr ""
22209
22210 # type: verbatim
22211 #: ../fish/guestfish-actions.pod:2596
22212 #, no-wrap
22213 msgid ""
22214 " lvs\n"
22215 "\n"
22216 msgstr ""
22217
22218 # type: textblock
22219 #: ../fish/guestfish-actions.pod:2604
22220 msgid "See also L</lvs-full>, L</list-filesystems>."
22221 msgstr ""
22222
22223 # type: =head2
22224 #: ../fish/guestfish-actions.pod:2606
22225 msgid "lvs-full"
22226 msgstr ""
22227
22228 # type: verbatim
22229 #: ../fish/guestfish-actions.pod:2608
22230 #, no-wrap
22231 msgid ""
22232 " lvs-full\n"
22233 "\n"
22234 msgstr ""
22235
22236 # type: =head2
22237 #: ../fish/guestfish-actions.pod:2613
22238 msgid "lvuuid"
22239 msgstr ""
22240
22241 # type: verbatim
22242 #: ../fish/guestfish-actions.pod:2615
22243 #, no-wrap
22244 msgid ""
22245 " lvuuid device\n"
22246 "\n"
22247 msgstr ""
22248
22249 # type: =head2
22250 #: ../fish/guestfish-actions.pod:2619
22251 msgid "lxattrlist"
22252 msgstr ""
22253
22254 # type: verbatim
22255 #: ../fish/guestfish-actions.pod:2621
22256 #, no-wrap
22257 msgid ""
22258 " lxattrlist path 'names ...'\n"
22259 "\n"
22260 msgstr ""
22261
22262 # type: textblock
22263 #: ../fish/guestfish-actions.pod:2637
22264 msgid ""
22265 "This call is intended for programs that want to efficiently list a directory "
22266 "contents without making many round-trips.  See also L</lstatlist> for a "
22267 "similarly efficient call for getting standard stats.  Very long directory "
22268 "listings might cause the protocol message size to be exceeded, causing this "
22269 "call to fail.  The caller must split up such requests into smaller groups of "
22270 "names."
22271 msgstr ""
22272
22273 # type: =head2
22274 #: ../fish/guestfish-actions.pod:2645
22275 msgid "mkdir"
22276 msgstr ""
22277
22278 # type: verbatim
22279 #: ../fish/guestfish-actions.pod:2647
22280 #, no-wrap
22281 msgid ""
22282 " mkdir path\n"
22283 "\n"
22284 msgstr ""
22285
22286 # type: =head2
22287 #: ../fish/guestfish-actions.pod:2651
22288 msgid "mkdir-mode"
22289 msgstr ""
22290
22291 # type: verbatim
22292 #: ../fish/guestfish-actions.pod:2653
22293 #, no-wrap
22294 msgid ""
22295 " mkdir-mode path mode\n"
22296 "\n"
22297 msgstr ""
22298
22299 # type: textblock
22300 #: ../fish/guestfish-actions.pod:2662
22301 msgid "See also L</mkdir>, L</umask>"
22302 msgstr ""
22303
22304 # type: =head2
22305 #: ../fish/guestfish-actions.pod:2664
22306 msgid "mkdir-p"
22307 msgstr ""
22308
22309 # type: verbatim
22310 #: ../fish/guestfish-actions.pod:2666
22311 #, no-wrap
22312 msgid ""
22313 " mkdir-p path\n"
22314 "\n"
22315 msgstr ""
22316
22317 # type: =head2
22318 #: ../fish/guestfish-actions.pod:2671
22319 msgid "mkdtemp"
22320 msgstr ""
22321
22322 # type: verbatim
22323 #: ../fish/guestfish-actions.pod:2673
22324 #, no-wrap
22325 msgid ""
22326 " mkdtemp template\n"
22327 "\n"
22328 msgstr ""
22329
22330 # type: =head2
22331 #: ../fish/guestfish-actions.pod:2694
22332 msgid "mke2fs-J"
22333 msgstr ""
22334
22335 # type: verbatim
22336 #: ../fish/guestfish-actions.pod:2696
22337 #, no-wrap
22338 msgid ""
22339 " mke2fs-J fstype blocksize device journal\n"
22340 "\n"
22341 msgstr ""
22342
22343 # type: textblock
22344 #: ../fish/guestfish-actions.pod:2704
22345 msgid "See also L</mke2journal>."
22346 msgstr ""
22347
22348 # type: =head2
22349 #: ../fish/guestfish-actions.pod:2706
22350 msgid "mke2fs-JL"
22351 msgstr ""
22352
22353 # type: verbatim
22354 #: ../fish/guestfish-actions.pod:2708
22355 #, no-wrap
22356 msgid ""
22357 " mke2fs-JL fstype blocksize device label\n"
22358 "\n"
22359 msgstr ""
22360
22361 # type: textblock
22362 #: ../fish/guestfish-actions.pod:2713
22363 msgid "See also L</mke2journal-L>."
22364 msgstr ""
22365
22366 # type: =head2
22367 #: ../fish/guestfish-actions.pod:2715
22368 msgid "mke2fs-JU"
22369 msgstr ""
22370
22371 # type: verbatim
22372 #: ../fish/guestfish-actions.pod:2717
22373 #, no-wrap
22374 msgid ""
22375 " mke2fs-JU fstype blocksize device uuid\n"
22376 "\n"
22377 msgstr ""
22378
22379 # type: textblock
22380 #: ../fish/guestfish-actions.pod:2722
22381 msgid "See also L</mke2journal-U>."
22382 msgstr ""
22383
22384 # type: =head2
22385 #: ../fish/guestfish-actions.pod:2724
22386 msgid "mke2journal"
22387 msgstr ""
22388
22389 # type: verbatim
22390 #: ../fish/guestfish-actions.pod:2726
22391 #, no-wrap
22392 msgid ""
22393 " mke2journal blocksize device\n"
22394 "\n"
22395 msgstr ""
22396
22397 # type: =head2
22398 #: ../fish/guestfish-actions.pod:2733
22399 msgid "mke2journal-L"
22400 msgstr ""
22401
22402 # type: verbatim
22403 #: ../fish/guestfish-actions.pod:2735
22404 #, no-wrap
22405 msgid ""
22406 " mke2journal-L blocksize label device\n"
22407 "\n"
22408 msgstr ""
22409
22410 # type: =head2
22411 #: ../fish/guestfish-actions.pod:2739
22412 msgid "mke2journal-U"
22413 msgstr ""
22414
22415 # type: verbatim
22416 #: ../fish/guestfish-actions.pod:2741
22417 #, no-wrap
22418 msgid ""
22419 " mke2journal-U blocksize uuid device\n"
22420 "\n"
22421 msgstr ""
22422
22423 # type: =head2
22424 #: ../fish/guestfish-actions.pod:2745
22425 msgid "mkfifo"
22426 msgstr ""
22427
22428 # type: verbatim
22429 #: ../fish/guestfish-actions.pod:2747
22430 #, no-wrap
22431 msgid ""
22432 " mkfifo mode path\n"
22433 "\n"
22434 msgstr ""
22435
22436 # type: textblock
22437 #: ../fish/guestfish-actions.pod:2749
22438 msgid ""
22439 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22440 "is just a convenient wrapper around L</mknod>."
22441 msgstr ""
22442
22443 # type: =head2
22444 #: ../fish/guestfish-actions.pod:2755
22445 msgid "mkfs"
22446 msgstr ""
22447
22448 # type: verbatim
22449 #: ../fish/guestfish-actions.pod:2757
22450 #, no-wrap
22451 msgid ""
22452 " mkfs fstype device\n"
22453 "\n"
22454 msgstr ""
22455
22456 # type: =head2
22457 #: ../fish/guestfish-actions.pod:2763
22458 msgid "mkfs-b"
22459 msgstr ""
22460
22461 # type: verbatim
22462 #: ../fish/guestfish-actions.pod:2765
22463 #, no-wrap
22464 msgid ""
22465 " mkfs-b fstype blocksize device\n"
22466 "\n"
22467 msgstr ""
22468
22469 # type: textblock
22470 #: ../fish/guestfish-actions.pod:2767
22471 msgid ""
22472 "This call is similar to L</mkfs>, but it allows you to control the block "
22473 "size of the resulting filesystem.  Supported block sizes depend on the "
22474 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22475 msgstr ""
22476
22477 # type: =head2
22478 #: ../fish/guestfish-actions.pod:2775
22479 msgid "mkmountpoint"
22480 msgstr ""
22481
22482 # type: verbatim
22483 #: ../fish/guestfish-actions.pod:2777
22484 #, no-wrap
22485 msgid ""
22486 " mkmountpoint exemptpath\n"
22487 "\n"
22488 msgstr ""
22489
22490 # type: textblock
22491 #: ../fish/guestfish-actions.pod:2779
22492 msgid ""
22493 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22494 "to create extra mountpoints before mounting the first filesystem."
22495 msgstr ""
22496
22497 # type: textblock
22498 #: ../fish/guestfish-actions.pod:2803
22499 msgid ""
22500 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22501 "unexpected errors if you try to mix these calls.  It is safest to manually "
22502 "unmount filesystems and remove mountpoints after use."
22503 msgstr ""
22504
22505 # type: textblock
22506 #: ../fish/guestfish-actions.pod:2807
22507 msgid ""
22508 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22509 "for this to work for manual mountpoints, you must ensure that the innermost "
22510 "mountpoints have the longest pathnames, as in the example code above."
22511 msgstr ""
22512
22513 # type: textblock
22514 #: ../fish/guestfish-actions.pod:2814
22515 msgid ""
22516 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22517 "that L</umount-all> is called when the handle is closed which can also "
22518 "trigger these issues."
22519 msgstr ""
22520
22521 # type: =head2
22522 #: ../fish/guestfish-actions.pod:2818
22523 msgid "mknod"
22524 msgstr ""
22525
22526 # type: verbatim
22527 #: ../fish/guestfish-actions.pod:2820
22528 #, no-wrap
22529 msgid ""
22530 " mknod mode devmajor devminor path\n"
22531 "\n"
22532 msgstr ""
22533
22534 # type: textblock
22535 #: ../fish/guestfish-actions.pod:2830
22536 msgid ""
22537 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22538 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22539 "regular file).  These constants are available in the standard Linux header "
22540 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22541 "wrappers around this command which bitwise OR in the appropriate constant "
22542 "for you."
22543 msgstr ""
22544
22545 # type: =head2
22546 #: ../fish/guestfish-actions.pod:2840
22547 msgid "mknod-b"
22548 msgstr ""
22549
22550 # type: verbatim
22551 #: ../fish/guestfish-actions.pod:2842
22552 #, no-wrap
22553 msgid ""
22554 " mknod-b mode devmajor devminor path\n"
22555 "\n"
22556 msgstr ""
22557
22558 # type: textblock
22559 #: ../fish/guestfish-actions.pod:2844
22560 msgid ""
22561 "This call creates a block device node called C<path> with mode C<mode> and "
22562 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22563 "wrapper around L</mknod>."
22564 msgstr ""
22565
22566 # type: =head2
22567 #: ../fish/guestfish-actions.pod:2850
22568 msgid "mknod-c"
22569 msgstr ""
22570
22571 # type: verbatim
22572 #: ../fish/guestfish-actions.pod:2852
22573 #, no-wrap
22574 msgid ""
22575 " mknod-c mode devmajor devminor path\n"
22576 "\n"
22577 msgstr ""
22578
22579 # type: textblock
22580 #: ../fish/guestfish-actions.pod:2854
22581 msgid ""
22582 "This call creates a char device node called C<path> with mode C<mode> and "
22583 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22584 "wrapper around L</mknod>."
22585 msgstr ""
22586
22587 # type: =head2
22588 #: ../fish/guestfish-actions.pod:2860
22589 msgid "mkswap"
22590 msgstr ""
22591
22592 # type: verbatim
22593 #: ../fish/guestfish-actions.pod:2862
22594 #, no-wrap
22595 msgid ""
22596 " mkswap device\n"
22597 "\n"
22598 msgstr ""
22599
22600 # type: =head2
22601 #: ../fish/guestfish-actions.pod:2866
22602 msgid "mkswap-L"
22603 msgstr ""
22604
22605 # type: verbatim
22606 #: ../fish/guestfish-actions.pod:2868
22607 #, no-wrap
22608 msgid ""
22609 " mkswap-L label device\n"
22610 "\n"
22611 msgstr ""
22612
22613 # type: =head2
22614 #: ../fish/guestfish-actions.pod:2876
22615 msgid "mkswap-U"
22616 msgstr ""
22617
22618 # type: verbatim
22619 #: ../fish/guestfish-actions.pod:2878
22620 #, no-wrap
22621 msgid ""
22622 " mkswap-U uuid device\n"
22623 "\n"
22624 msgstr ""
22625
22626 # type: =head2
22627 #: ../fish/guestfish-actions.pod:2882
22628 msgid "mkswap-file"
22629 msgstr ""
22630
22631 # type: verbatim
22632 #: ../fish/guestfish-actions.pod:2884
22633 #, no-wrap
22634 msgid ""
22635 " mkswap-file path\n"
22636 "\n"
22637 msgstr ""
22638
22639 # type: textblock
22640 #: ../fish/guestfish-actions.pod:2888
22641 msgid ""
22642 "This command just writes a swap file signature to an existing file.  To "
22643 "create the file itself, use something like L</fallocate>."
22644 msgstr ""
22645
22646 # type: =head2
22647 #: ../fish/guestfish-actions.pod:2891
22648 msgid "modprobe"
22649 msgstr ""
22650
22651 # type: verbatim
22652 #: ../fish/guestfish-actions.pod:2893
22653 #, no-wrap
22654 msgid ""
22655 " modprobe modulename\n"
22656 "\n"
22657 msgstr ""
22658
22659 # type: =head2
22660 #: ../fish/guestfish-actions.pod:2900
22661 msgid "mount"
22662 msgstr ""
22663
22664 # type: verbatim
22665 #: ../fish/guestfish-actions.pod:2902
22666 #, no-wrap
22667 msgid ""
22668 " mount device mountpoint\n"
22669 "\n"
22670 msgstr ""
22671
22672 # type: textblock
22673 #: ../fish/guestfish-actions.pod:2918
22674 msgid ""
22675 "B<Important note:> When you use this call, the filesystem options C<sync> "
22676 "and C<noatime> are set implicitly.  This was originally done because we "
22677 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22678 "very large negative performance impact and negligible effect on "
22679 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22680 "code that needs performance, and instead use L</mount-options> (use an empty "
22681 "string for the first parameter if you don't want any options)."
22682 msgstr ""
22683
22684 # type: =head2
22685 #: ../fish/guestfish-actions.pod:2928
22686 msgid "mount-loop"
22687 msgstr ""
22688
22689 # type: verbatim
22690 #: ../fish/guestfish-actions.pod:2930
22691 #, no-wrap
22692 msgid ""
22693 " mount-loop file mountpoint\n"
22694 "\n"
22695 msgstr ""
22696
22697 # type: =head2
22698 #: ../fish/guestfish-actions.pod:2936
22699 msgid "mount-options"
22700 msgstr ""
22701
22702 # type: verbatim
22703 #: ../fish/guestfish-actions.pod:2938
22704 #, no-wrap
22705 msgid ""
22706 " mount-options options device mountpoint\n"
22707 "\n"
22708 msgstr ""
22709
22710 # type: textblock
22711 #: ../fish/guestfish-actions.pod:2940
22712 msgid ""
22713 "This is the same as the L</mount> command, but it allows you to set the "
22714 "mount options as for the L<mount(8)> I<-o> flag."
22715 msgstr ""
22716
22717 # type: =head2
22718 #: ../fish/guestfish-actions.pod:2948
22719 msgid "mount-ro"
22720 msgstr ""
22721
22722 # type: verbatim
22723 #: ../fish/guestfish-actions.pod:2950
22724 #, no-wrap
22725 msgid ""
22726 " mount-ro device mountpoint\n"
22727 "\n"
22728 msgstr ""
22729
22730 # type: textblock
22731 #: ../fish/guestfish-actions.pod:2952
22732 msgid ""
22733 "This is the same as the L</mount> command, but it mounts the filesystem with "
22734 "the read-only (I<-o ro>) flag."
22735 msgstr ""
22736
22737 # type: =head2
22738 #: ../fish/guestfish-actions.pod:2955
22739 msgid "mount-vfs"
22740 msgstr ""
22741
22742 # type: verbatim
22743 #: ../fish/guestfish-actions.pod:2957
22744 #, no-wrap
22745 msgid ""
22746 " mount-vfs options vfstype device mountpoint\n"
22747 "\n"
22748 msgstr ""
22749
22750 # type: textblock
22751 #: ../fish/guestfish-actions.pod:2959
22752 msgid ""
22753 "This is the same as the L</mount> command, but it allows you to set both the "
22754 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22755 msgstr ""
22756
22757 # type: =head2
22758 #: ../fish/guestfish-actions.pod:2963
22759 msgid "mountpoints"
22760 msgstr ""
22761
22762 # type: verbatim
22763 #: ../fish/guestfish-actions.pod:2965
22764 #, no-wrap
22765 msgid ""
22766 " mountpoints\n"
22767 "\n"
22768 msgstr ""
22769
22770 # type: textblock
22771 #: ../fish/guestfish-actions.pod:2967
22772 msgid ""
22773 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22774 "This one returns a hash table (map) of device name to directory where the "
22775 "device is mounted."
22776 msgstr ""
22777
22778 # type: =head2
22779 #: ../fish/guestfish-actions.pod:2971
22780 msgid "mounts"
22781 msgstr ""
22782
22783 # type: verbatim
22784 #: ../fish/guestfish-actions.pod:2973
22785 #, no-wrap
22786 msgid ""
22787 " mounts\n"
22788 "\n"
22789 msgstr ""
22790
22791 # type: textblock
22792 #: ../fish/guestfish-actions.pod:2980
22793 msgid "See also: L</mountpoints>"
22794 msgstr ""
22795
22796 # type: =head2
22797 #: ../fish/guestfish-actions.pod:2982
22798 msgid "mv"
22799 msgstr ""
22800
22801 # type: verbatim
22802 #: ../fish/guestfish-actions.pod:2984
22803 #, no-wrap
22804 msgid ""
22805 " mv src dest\n"
22806 "\n"
22807 msgstr ""
22808
22809 # type: =head2
22810 #: ../fish/guestfish-actions.pod:2989
22811 msgid "ntfs-3g-probe"
22812 msgstr ""
22813
22814 # type: verbatim
22815 #: ../fish/guestfish-actions.pod:2991
22816 #, no-wrap
22817 msgid ""
22818 " ntfs-3g-probe true|false device\n"
22819 "\n"
22820 msgstr ""
22821
22822 # type: =head2
22823 #: ../fish/guestfish-actions.pod:3005
22824 msgid "ntfsresize"
22825 msgstr ""
22826
22827 # type: verbatim
22828 #: ../fish/guestfish-actions.pod:3007
22829 #, no-wrap
22830 msgid ""
22831 " ntfsresize device\n"
22832 "\n"
22833 msgstr ""
22834
22835 # type: =head2
22836 #: ../fish/guestfish-actions.pod:3013
22837 msgid "ntfsresize-size"
22838 msgstr ""
22839
22840 # type: verbatim
22841 #: ../fish/guestfish-actions.pod:3015
22842 #, no-wrap
22843 msgid ""
22844 " ntfsresize-size device size\n"
22845 "\n"
22846 msgstr ""
22847
22848 # type: textblock
22849 #: ../fish/guestfish-actions.pod:3017
22850 msgid ""
22851 "This command is the same as L</ntfsresize> except that it allows you to "
22852 "specify the new size (in bytes) explicitly."
22853 msgstr ""
22854
22855 # type: =head2
22856 #: ../fish/guestfish-actions.pod:3020
22857 msgid "part-add"
22858 msgstr ""
22859
22860 # type: verbatim
22861 #: ../fish/guestfish-actions.pod:3022
22862 #, no-wrap
22863 msgid ""
22864 " part-add device prlogex startsect endsect\n"
22865 "\n"
22866 msgstr ""
22867
22868 # type: textblock
22869 #: ../fish/guestfish-actions.pod:3024
22870 msgid ""
22871 "This command adds a partition to C<device>.  If there is no partition table "
22872 "on the device, call L</part-init> first."
22873 msgstr ""
22874
22875 # type: textblock
22876 #: ../fish/guestfish-actions.pod:3036
22877 msgid ""
22878 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22879 "part-disk> to do that."
22880 msgstr ""
22881
22882 # type: =head2
22883 #: ../fish/guestfish-actions.pod:3039
22884 msgid "part-del"
22885 msgstr ""
22886
22887 # type: verbatim
22888 #: ../fish/guestfish-actions.pod:3041
22889 #, no-wrap
22890 msgid ""
22891 " part-del device partnum\n"
22892 "\n"
22893 msgstr ""
22894
22895 # type: =head2
22896 #: ../fish/guestfish-actions.pod:3049
22897 msgid "part-disk"
22898 msgstr ""
22899
22900 # type: verbatim
22901 #: ../fish/guestfish-actions.pod:3051
22902 #, no-wrap
22903 msgid ""
22904 " part-disk device parttype\n"
22905 "\n"
22906 msgstr ""
22907
22908 # type: textblock
22909 #: ../fish/guestfish-actions.pod:3053
22910 msgid ""
22911 "This command is simply a combination of L</part-init> followed by L</part-"
22912 "add> to create a single primary partition covering the whole disk."
22913 msgstr ""
22914
22915 # type: textblock
22916 #: ../fish/guestfish-actions.pod:3057
22917 msgid ""
22918 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22919 "possible values are described in L</part-init>."
22920 msgstr ""
22921
22922 # type: =head2
22923 #: ../fish/guestfish-actions.pod:3063
22924 msgid "part-get-bootable"
22925 msgstr ""
22926
22927 # type: verbatim
22928 #: ../fish/guestfish-actions.pod:3065
22929 #, no-wrap
22930 msgid ""
22931 " part-get-bootable device partnum\n"
22932 "\n"
22933 msgstr ""
22934
22935 # type: textblock
22936 #: ../fish/guestfish-actions.pod:3070
22937 msgid "See also L</part-set-bootable>."
22938 msgstr ""
22939
22940 # type: =head2
22941 #: ../fish/guestfish-actions.pod:3072
22942 msgid "part-get-mbr-id"
22943 msgstr ""
22944
22945 # type: verbatim
22946 #: ../fish/guestfish-actions.pod:3074
22947 #, no-wrap
22948 msgid ""
22949 " part-get-mbr-id device partnum\n"
22950 "\n"
22951 msgstr ""
22952
22953 # type: textblock
22954 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22955 msgid ""
22956 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22957 "undefined results for other partition table types (see L</part-get-"
22958 "parttype>)."
22959 msgstr ""
22960
22961 # type: =head2
22962 #: ../fish/guestfish-actions.pod:3083
22963 msgid "part-get-parttype"
22964 msgstr ""
22965
22966 # type: verbatim
22967 #: ../fish/guestfish-actions.pod:3085
22968 #, no-wrap
22969 msgid ""
22970 " part-get-parttype device\n"
22971 "\n"
22972 msgstr ""
22973
22974 # type: textblock
22975 #: ../fish/guestfish-actions.pod:3090
22976 msgid ""
22977 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22978 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22979 "possible, although unusual.  See L</part-init> for a full list."
22980 msgstr ""
22981
22982 # type: =head2
22983 #: ../fish/guestfish-actions.pod:3095
22984 msgid "part-init"
22985 msgstr ""
22986
22987 # type: verbatim
22988 #: ../fish/guestfish-actions.pod:3097
22989 #, no-wrap
22990 msgid ""
22991 " part-init device parttype\n"
22992 "\n"
22993 msgstr ""
22994
22995 # type: textblock
22996 #: ../fish/guestfish-actions.pod:3103
22997 msgid ""
22998 "Initially there are no partitions.  Following this, you should call L</part-"
22999 "add> for each partition required."
23000 msgstr ""
23001
23002 # type: =head2
23003 #: ../fish/guestfish-actions.pod:3166
23004 msgid "part-list"
23005 msgstr ""
23006
23007 # type: verbatim
23008 #: ../fish/guestfish-actions.pod:3168
23009 #, no-wrap
23010 msgid ""
23011 " part-list device\n"
23012 "\n"
23013 msgstr ""
23014
23015 # type: textblock
23016 #: ../fish/guestfish-actions.pod:3183
23017 msgid ""
23018 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23019 "the device's sector size, see L</blockdev-getss>."
23020 msgstr ""
23021
23022 # type: =head2
23023 #: ../fish/guestfish-actions.pod:3196
23024 msgid "part-set-bootable"
23025 msgstr ""
23026
23027 # type: verbatim
23028 #: ../fish/guestfish-actions.pod:3198
23029 #, no-wrap
23030 msgid ""
23031 " part-set-bootable device partnum true|false\n"
23032 "\n"
23033 msgstr ""
23034
23035 # type: =head2
23036 #: ../fish/guestfish-actions.pod:3207
23037 msgid "part-set-mbr-id"
23038 msgstr ""
23039
23040 # type: verbatim
23041 #: ../fish/guestfish-actions.pod:3209
23042 #, no-wrap
23043 msgid ""
23044 " part-set-mbr-id device partnum idbyte\n"
23045 "\n"
23046 msgstr ""
23047
23048 # type: =head2
23049 #: ../fish/guestfish-actions.pod:3221
23050 msgid "part-set-name"
23051 msgstr ""
23052
23053 # type: verbatim
23054 #: ../fish/guestfish-actions.pod:3223
23055 #, no-wrap
23056 msgid ""
23057 " part-set-name device partnum name\n"
23058 "\n"
23059 msgstr ""
23060
23061 # type: =head2
23062 #: ../fish/guestfish-actions.pod:3231
23063 msgid "part-to-dev"
23064 msgstr ""
23065
23066 # type: verbatim
23067 #: ../fish/guestfish-actions.pod:3233
23068 #, no-wrap
23069 msgid ""
23070 " part-to-dev partition\n"
23071 "\n"
23072 msgstr ""
23073
23074 # type: textblock
23075 #: ../fish/guestfish-actions.pod:3239
23076 msgid ""
23077 "The named partition must exist, for example as a string returned from L</"
23078 "list-partitions>."
23079 msgstr ""
23080
23081 # type: =head2
23082 #: ../fish/guestfish-actions.pod:3242
23083 msgid "ping-daemon"
23084 msgstr ""
23085
23086 # type: verbatim
23087 #: ../fish/guestfish-actions.pod:3244
23088 #, no-wrap
23089 msgid ""
23090 " ping-daemon\n"
23091 "\n"
23092 msgstr ""
23093
23094 # type: =head2
23095 #: ../fish/guestfish-actions.pod:3251
23096 msgid "pread"
23097 msgstr ""
23098
23099 # type: verbatim
23100 #: ../fish/guestfish-actions.pod:3253
23101 #, no-wrap
23102 msgid ""
23103 " pread path count offset\n"
23104 "\n"
23105 msgstr ""
23106
23107 # type: textblock
23108 #: ../fish/guestfish-actions.pod:3261
23109 msgid "See also L</pwrite>, L</pread-device>."
23110 msgstr ""
23111
23112 # type: =head2
23113 #: ../fish/guestfish-actions.pod:3266
23114 msgid "pread-device"
23115 msgstr ""
23116
23117 # type: verbatim
23118 #: ../fish/guestfish-actions.pod:3268
23119 #, no-wrap
23120 msgid ""
23121 " pread-device device count offset\n"
23122 "\n"
23123 msgstr ""
23124
23125 # type: textblock
23126 #: ../fish/guestfish-actions.pod:3276
23127 msgid "See also L</pread>."
23128 msgstr ""
23129
23130 # type: =head2
23131 #: ../fish/guestfish-actions.pod:3281
23132 msgid "pvcreate"
23133 msgstr ""
23134
23135 # type: verbatim
23136 #: ../fish/guestfish-actions.pod:3283
23137 #, no-wrap
23138 msgid ""
23139 " pvcreate device\n"
23140 "\n"
23141 msgstr ""
23142
23143 # type: =head2
23144 #: ../fish/guestfish-actions.pod:3289
23145 msgid "pvremove"
23146 msgstr ""
23147
23148 # type: verbatim
23149 #: ../fish/guestfish-actions.pod:3291
23150 #, no-wrap
23151 msgid ""
23152 " pvremove device\n"
23153 "\n"
23154 msgstr ""
23155
23156 # type: =head2
23157 #: ../fish/guestfish-actions.pod:3300
23158 msgid "pvresize"
23159 msgstr ""
23160
23161 # type: verbatim
23162 #: ../fish/guestfish-actions.pod:3302
23163 #, no-wrap
23164 msgid ""
23165 " pvresize device\n"
23166 "\n"
23167 msgstr ""
23168
23169 # type: =head2
23170 #: ../fish/guestfish-actions.pod:3307
23171 msgid "pvresize-size"
23172 msgstr ""
23173
23174 # type: verbatim
23175 #: ../fish/guestfish-actions.pod:3309
23176 #, no-wrap
23177 msgid ""
23178 " pvresize-size device size\n"
23179 "\n"
23180 msgstr ""
23181
23182 # type: textblock
23183 #: ../fish/guestfish-actions.pod:3311
23184 msgid ""
23185 "This command is the same as L</pvresize> except that it allows you to "
23186 "specify the new size (in bytes) explicitly."
23187 msgstr ""
23188
23189 # type: =head2
23190 #: ../fish/guestfish-actions.pod:3314
23191 msgid "pvs"
23192 msgstr ""
23193
23194 # type: verbatim
23195 #: ../fish/guestfish-actions.pod:3316
23196 #, no-wrap
23197 msgid ""
23198 " pvs\n"
23199 "\n"
23200 msgstr ""
23201
23202 # type: textblock
23203 #: ../fish/guestfish-actions.pod:3324
23204 msgid "See also L</pvs-full>."
23205 msgstr ""
23206
23207 # type: =head2
23208 #: ../fish/guestfish-actions.pod:3326
23209 msgid "pvs-full"
23210 msgstr ""
23211
23212 # type: verbatim
23213 #: ../fish/guestfish-actions.pod:3328
23214 #, no-wrap
23215 msgid ""
23216 " pvs-full\n"
23217 "\n"
23218 msgstr ""
23219
23220 # type: =head2
23221 #: ../fish/guestfish-actions.pod:3333
23222 msgid "pvuuid"
23223 msgstr ""
23224
23225 # type: verbatim
23226 #: ../fish/guestfish-actions.pod:3335
23227 #, no-wrap
23228 msgid ""
23229 " pvuuid device\n"
23230 "\n"
23231 msgstr ""
23232
23233 # type: =head2
23234 #: ../fish/guestfish-actions.pod:3339
23235 msgid "pwrite"
23236 msgstr ""
23237
23238 # type: verbatim
23239 #: ../fish/guestfish-actions.pod:3341
23240 #, no-wrap
23241 msgid ""
23242 " pwrite path content offset\n"
23243 "\n"
23244 msgstr ""
23245
23246 # type: textblock
23247 #: ../fish/guestfish-actions.pod:3352
23248 msgid "See also L</pread>, L</pwrite-device>."
23249 msgstr ""
23250
23251 # type: =head2
23252 #: ../fish/guestfish-actions.pod:3357
23253 msgid "pwrite-device"
23254 msgstr ""
23255
23256 # type: verbatim
23257 #: ../fish/guestfish-actions.pod:3359
23258 #, no-wrap
23259 msgid ""
23260 " pwrite-device device content offset\n"
23261 "\n"
23262 msgstr ""
23263
23264 # type: textblock
23265 #: ../fish/guestfish-actions.pod:3369
23266 msgid "See also L</pwrite>."
23267 msgstr ""
23268
23269 # type: =head2
23270 #: ../fish/guestfish-actions.pod:3374
23271 msgid "read-file"
23272 msgstr ""
23273
23274 # type: verbatim
23275 #: ../fish/guestfish-actions.pod:3376
23276 #, no-wrap
23277 msgid ""
23278 " read-file path\n"
23279 "\n"
23280 msgstr ""
23281
23282 # type: textblock
23283 #: ../fish/guestfish-actions.pod:3381
23284 msgid ""
23285 "Unlike L</cat>, this function can correctly handle files that contain "
23286 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23287 "is limited in the total size of file that can be handled."
23288 msgstr ""
23289
23290 # type: =head2
23291 #: ../fish/guestfish-actions.pod:3389
23292 msgid "read-lines"
23293 msgstr ""
23294
23295 # type: verbatim
23296 #: ../fish/guestfish-actions.pod:3391
23297 #, no-wrap
23298 msgid ""
23299 " read-lines path\n"
23300 "\n"
23301 msgstr ""
23302
23303 # type: textblock
23304 #: ../fish/guestfish-actions.pod:3398
23305 msgid ""
23306 "Note that this function cannot correctly handle binary files (specifically, "
23307 "files containing C<\\0> character which is treated as end of line).  For "
23308 "those you need to use the L</read-file> function which has a more complex "
23309 "interface."
23310 msgstr ""
23311
23312 # type: =head2
23313 #: ../fish/guestfish-actions.pod:3403
23314 msgid "readdir"
23315 msgstr ""
23316
23317 # type: verbatim
23318 #: ../fish/guestfish-actions.pod:3405
23319 #, no-wrap
23320 msgid ""
23321 " readdir dir\n"
23322 "\n"
23323 msgstr ""
23324
23325 # type: textblock
23326 #: ../fish/guestfish-actions.pod:3457
23327 msgid ""
23328 "This function is primarily intended for use by programs.  To get a simple "
23329 "list of names, use L</ls>.  To get a printable directory for human "
23330 "consumption, use L</ll>."
23331 msgstr ""
23332
23333 # type: =head2
23334 #: ../fish/guestfish-actions.pod:3461
23335 msgid "readlink"
23336 msgstr ""
23337
23338 # type: verbatim
23339 #: ../fish/guestfish-actions.pod:3463
23340 #, no-wrap
23341 msgid ""
23342 " readlink path\n"
23343 "\n"
23344 msgstr ""
23345
23346 # type: =head2
23347 #: ../fish/guestfish-actions.pod:3467
23348 msgid "readlinklist"
23349 msgstr ""
23350
23351 # type: verbatim
23352 #: ../fish/guestfish-actions.pod:3469
23353 #, no-wrap
23354 msgid ""
23355 " readlinklist path 'names ...'\n"
23356 "\n"
23357 msgstr ""
23358
23359 # type: =head2
23360 #: ../fish/guestfish-actions.pod:3493
23361 msgid "realpath"
23362 msgstr ""
23363
23364 # type: verbatim
23365 #: ../fish/guestfish-actions.pod:3495
23366 #, no-wrap
23367 msgid ""
23368 " realpath path\n"
23369 "\n"
23370 msgstr ""
23371
23372 # type: =head2
23373 #: ../fish/guestfish-actions.pod:3500
23374 msgid "removexattr"
23375 msgstr ""
23376
23377 # type: verbatim
23378 #: ../fish/guestfish-actions.pod:3502
23379 #, no-wrap
23380 msgid ""
23381 " removexattr xattr path\n"
23382 "\n"
23383 msgstr ""
23384
23385 # type: textblock
23386 #: ../fish/guestfish-actions.pod:3507
23387 msgid "See also: L</lremovexattr>, L<attr(5)>."
23388 msgstr ""
23389
23390 # type: =head2
23391 #: ../fish/guestfish-actions.pod:3509
23392 msgid "resize2fs"
23393 msgstr ""
23394
23395 # type: verbatim
23396 #: ../fish/guestfish-actions.pod:3511
23397 #, no-wrap
23398 msgid ""
23399 " resize2fs device\n"
23400 "\n"
23401 msgstr ""
23402
23403 # type: textblock
23404 #: ../fish/guestfish-actions.pod:3516
23405 msgid ""
23406 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23407 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23408 "gives an error about this and sometimes not.  In any case, it is always safe "
23409 "to call L</e2fsck-f> before calling this function."
23410 msgstr ""
23411
23412 # type: =head2
23413 #: ../fish/guestfish-actions.pod:3522
23414 msgid "resize2fs-size"
23415 msgstr ""
23416
23417 # type: verbatim
23418 #: ../fish/guestfish-actions.pod:3524
23419 #, no-wrap
23420 msgid ""
23421 " resize2fs-size device size\n"
23422 "\n"
23423 msgstr ""
23424
23425 # type: textblock
23426 #: ../fish/guestfish-actions.pod:3526
23427 msgid ""
23428 "This command is the same as L</resize2fs> except that it allows you to "
23429 "specify the new size (in bytes) explicitly."
23430 msgstr ""
23431
23432 # type: =head2
23433 #: ../fish/guestfish-actions.pod:3529
23434 msgid "rm"
23435 msgstr ""
23436
23437 # type: verbatim
23438 #: ../fish/guestfish-actions.pod:3531
23439 #, no-wrap
23440 msgid ""
23441 " rm path\n"
23442 "\n"
23443 msgstr ""
23444
23445 # type: =head2
23446 #: ../fish/guestfish-actions.pod:3535
23447 msgid "rm-rf"
23448 msgstr ""
23449
23450 # type: verbatim
23451 #: ../fish/guestfish-actions.pod:3537
23452 #, no-wrap
23453 msgid ""
23454 " rm-rf path\n"
23455 "\n"
23456 msgstr ""
23457
23458 # type: =head2
23459 #: ../fish/guestfish-actions.pod:3543
23460 msgid "rmdir"
23461 msgstr ""
23462
23463 # type: verbatim
23464 #: ../fish/guestfish-actions.pod:3545
23465 #, no-wrap
23466 msgid ""
23467 " rmdir path\n"
23468 "\n"
23469 msgstr ""
23470
23471 # type: =head2
23472 #: ../fish/guestfish-actions.pod:3549
23473 msgid "rmmountpoint"
23474 msgstr ""
23475
23476 # type: verbatim
23477 #: ../fish/guestfish-actions.pod:3551
23478 #, no-wrap
23479 msgid ""
23480 " rmmountpoint exemptpath\n"
23481 "\n"
23482 msgstr ""
23483
23484 # type: textblock
23485 #: ../fish/guestfish-actions.pod:3553
23486 msgid ""
23487 "This calls removes a mountpoint that was previously created with L</"
23488 "mkmountpoint>.  See L</mkmountpoint> for full details."
23489 msgstr ""
23490
23491 # type: =head2
23492 #: ../fish/guestfish-actions.pod:3557
23493 msgid "scrub-device"
23494 msgstr ""
23495
23496 # type: verbatim
23497 #: ../fish/guestfish-actions.pod:3559
23498 #, no-wrap
23499 msgid ""
23500 " scrub-device device\n"
23501 "\n"
23502 msgstr ""
23503
23504 # type: =head2
23505 #: ../fish/guestfish-actions.pod:3570
23506 msgid "scrub-file"
23507 msgstr ""
23508
23509 # type: verbatim
23510 #: ../fish/guestfish-actions.pod:3572
23511 #, no-wrap
23512 msgid ""
23513 " scrub-file file\n"
23514 "\n"
23515 msgstr ""
23516
23517 # type: =head2
23518 #: ../fish/guestfish-actions.pod:3582
23519 msgid "scrub-freespace"
23520 msgstr ""
23521
23522 # type: verbatim
23523 #: ../fish/guestfish-actions.pod:3584
23524 #, no-wrap
23525 msgid ""
23526 " scrub-freespace dir\n"
23527 "\n"
23528 msgstr ""
23529
23530 # type: textblock
23531 #: ../fish/guestfish-actions.pod:3586
23532 msgid ""
23533 "This command creates the directory C<dir> and then fills it with files until "
23534 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23535 "deletes them.  The intention is to scrub any free space on the partition "
23536 "containing C<dir>."
23537 msgstr ""
23538
23539 # type: =head2
23540 #: ../fish/guestfish-actions.pod:3595
23541 msgid "set-append"
23542 msgstr ""
23543
23544 # type: =head2
23545 #: ../fish/guestfish-actions.pod:3597
23546 msgid "append"
23547 msgstr ""
23548
23549 # type: verbatim
23550 #: ../fish/guestfish-actions.pod:3599
23551 #, no-wrap
23552 msgid ""
23553 " set-append append\n"
23554 "\n"
23555 msgstr ""
23556
23557 # type: =head2
23558 #: ../fish/guestfish-actions.pod:3610
23559 msgid "set-autosync"
23560 msgstr ""
23561
23562 # type: =head2
23563 #: ../fish/guestfish-actions.pod:3612
23564 msgid "autosync"
23565 msgstr ""
23566
23567 # type: verbatim
23568 #: ../fish/guestfish-actions.pod:3614
23569 #, no-wrap
23570 msgid ""
23571 " set-autosync true|false\n"
23572 "\n"
23573 msgstr ""
23574
23575 # type: textblock
23576 #: ../fish/guestfish-actions.pod:3616
23577 msgid ""
23578 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23579 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23580 "closed (also if the program exits without closing handles)."
23581 msgstr ""
23582
23583 # type: =head2
23584 #: ../fish/guestfish-actions.pod:3624
23585 msgid "set-direct"
23586 msgstr ""
23587
23588 # type: =head2
23589 #: ../fish/guestfish-actions.pod:3626
23590 msgid "direct"
23591 msgstr ""
23592
23593 # type: verbatim
23594 #: ../fish/guestfish-actions.pod:3628
23595 #, no-wrap
23596 msgid ""
23597 " set-direct true|false\n"
23598 "\n"
23599 msgstr ""
23600
23601 # type: textblock
23602 #: ../fish/guestfish-actions.pod:3634
23603 msgid ""
23604 "One consequence of this is that log messages aren't caught by the library "
23605 "and handled by L</set-log-message-callback>, but go straight to stdout."
23606 msgstr ""
23607
23608 # type: =head2
23609 #: ../fish/guestfish-actions.pod:3643
23610 msgid "set-e2label"
23611 msgstr ""
23612
23613 # type: verbatim
23614 #: ../fish/guestfish-actions.pod:3645
23615 #, no-wrap
23616 msgid ""
23617 " set-e2label device label\n"
23618 "\n"
23619 msgstr ""
23620
23621 # type: textblock
23622 #: ../fish/guestfish-actions.pod:3651
23623 msgid ""
23624 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23625 "label on a filesystem."
23626 msgstr ""
23627
23628 # type: =head2
23629 #: ../fish/guestfish-actions.pod:3654
23630 msgid "set-e2uuid"
23631 msgstr ""
23632
23633 # type: verbatim
23634 #: ../fish/guestfish-actions.pod:3656
23635 #, no-wrap
23636 msgid ""
23637 " set-e2uuid device uuid\n"
23638 "\n"
23639 msgstr ""
23640
23641 # type: textblock
23642 #: ../fish/guestfish-actions.pod:3663
23643 msgid ""
23644 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23645 "UUID of a filesystem."
23646 msgstr ""
23647
23648 # type: =head2
23649 #: ../fish/guestfish-actions.pod:3666
23650 msgid "set-memsize"
23651 msgstr ""
23652
23653 # type: =head2
23654 #: ../fish/guestfish-actions.pod:3668
23655 msgid "memsize"
23656 msgstr ""
23657
23658 # type: verbatim
23659 #: ../fish/guestfish-actions.pod:3670
23660 #, no-wrap
23661 msgid ""
23662 " set-memsize memsize\n"
23663 "\n"
23664 msgstr ""
23665
23666 # type: textblock
23667 #: ../fish/guestfish-actions.pod:3672
23668 msgid ""
23669 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23670 "This only has any effect if called before L</launch>."
23671 msgstr ""
23672
23673 # type: =head2
23674 #: ../fish/guestfish-actions.pod:3683
23675 msgid "set-network"
23676 msgstr ""
23677
23678 # type: =head2
23679 #: ../fish/guestfish-actions.pod:3685
23680 msgid "network"
23681 msgstr ""
23682
23683 # type: verbatim
23684 #: ../fish/guestfish-actions.pod:3687
23685 #, no-wrap
23686 msgid ""
23687 " set-network true|false\n"
23688 "\n"
23689 msgstr ""
23690
23691 # type: textblock
23692 #: ../fish/guestfish-actions.pod:3695
23693 msgid ""
23694 "You must call this before calling L</launch>, otherwise it has no effect."
23695 msgstr ""
23696
23697 # type: =head2
23698 #: ../fish/guestfish-actions.pod:3698
23699 msgid "set-path"
23700 msgstr ""
23701
23702 # type: =head2
23703 #: ../fish/guestfish-actions.pod:3700
23704 msgid "path"
23705 msgstr ""
23706
23707 # type: verbatim
23708 #: ../fish/guestfish-actions.pod:3702
23709 #, no-wrap
23710 msgid ""
23711 " set-path searchpath\n"
23712 "\n"
23713 msgstr ""
23714
23715 # type: =head2
23716 #: ../fish/guestfish-actions.pod:3711
23717 msgid "set-qemu"
23718 msgstr ""
23719
23720 # type: =head2
23721 #: ../fish/guestfish-actions.pod:3713
23722 msgid "qemu"
23723 msgstr ""
23724
23725 # type: verbatim
23726 #: ../fish/guestfish-actions.pod:3715
23727 #, no-wrap
23728 msgid ""
23729 " set-qemu qemu\n"
23730 "\n"
23731 msgstr ""
23732
23733 # type: =head2
23734 #: ../fish/guestfish-actions.pod:3735
23735 msgid "set-recovery-proc"
23736 msgstr ""
23737
23738 # type: =head2
23739 #: ../fish/guestfish-actions.pod:3737
23740 msgid "recovery-proc"
23741 msgstr ""
23742
23743 # type: verbatim
23744 #: ../fish/guestfish-actions.pod:3739
23745 #, no-wrap
23746 msgid ""
23747 " set-recovery-proc true|false\n"
23748 "\n"
23749 msgstr ""
23750
23751 # type: textblock
23752 #: ../fish/guestfish-actions.pod:3741
23753 msgid ""
23754 "If this is called with the parameter C<false> then L</launch> does not "
23755 "create a recovery process.  The purpose of the recovery process is to stop "
23756 "runaway qemu processes in the case where the main program aborts abruptly."
23757 msgstr ""
23758
23759 # type: textblock
23760 #: ../fish/guestfish-actions.pod:3746
23761 msgid ""
23762 "This only has any effect if called before L</launch>, and the default is "
23763 "true."
23764 msgstr ""
23765
23766 # type: =head2
23767 #: ../fish/guestfish-actions.pod:3755
23768 msgid "set-selinux"
23769 msgstr ""
23770
23771 # type: =head2
23772 #: ../fish/guestfish-actions.pod:3757
23773 msgid "selinux"
23774 msgstr ""
23775
23776 # type: verbatim
23777 #: ../fish/guestfish-actions.pod:3759
23778 #, no-wrap
23779 msgid ""
23780 " set-selinux true|false\n"
23781 "\n"
23782 msgstr ""
23783
23784 # type: =head2
23785 #: ../fish/guestfish-actions.pod:3770
23786 msgid "set-trace"
23787 msgstr ""
23788
23789 # type: =head2
23790 #: ../fish/guestfish-actions.pod:3772
23791 msgid "trace"
23792 msgstr ""
23793
23794 # type: verbatim
23795 #: ../fish/guestfish-actions.pod:3774
23796 #, no-wrap
23797 msgid ""
23798 " set-trace true|false\n"
23799 "\n"
23800 msgstr ""
23801
23802 # type: =head2
23803 #: ../fish/guestfish-actions.pod:3790
23804 msgid "set-verbose"
23805 msgstr ""
23806
23807 # type: =head2
23808 #: ../fish/guestfish-actions.pod:3792
23809 msgid "verbose"
23810 msgstr ""
23811
23812 # type: verbatim
23813 #: ../fish/guestfish-actions.pod:3794
23814 #, no-wrap
23815 msgid ""
23816 " set-verbose true|false\n"
23817 "\n"
23818 msgstr ""
23819
23820 # type: =head2
23821 #: ../fish/guestfish-actions.pod:3801
23822 msgid "setcon"
23823 msgstr ""
23824
23825 # type: verbatim
23826 #: ../fish/guestfish-actions.pod:3803
23827 #, no-wrap
23828 msgid ""
23829 " setcon context\n"
23830 "\n"
23831 msgstr ""
23832
23833 # type: =head2
23834 #: ../fish/guestfish-actions.pod:3810
23835 msgid "setxattr"
23836 msgstr ""
23837
23838 # type: verbatim
23839 #: ../fish/guestfish-actions.pod:3812
23840 #, no-wrap
23841 msgid ""
23842 " setxattr xattr val vallen path\n"
23843 "\n"
23844 msgstr ""
23845
23846 # type: textblock
23847 #: ../fish/guestfish-actions.pod:3818
23848 msgid "See also: L</lsetxattr>, L<attr(5)>."
23849 msgstr ""
23850
23851 # type: =head2
23852 #: ../fish/guestfish-actions.pod:3820
23853 msgid "sfdisk"
23854 msgstr ""
23855
23856 # type: verbatim
23857 #: ../fish/guestfish-actions.pod:3822
23858 #, no-wrap
23859 msgid ""
23860 " sfdisk device cyls heads sectors 'lines ...'\n"
23861 "\n"
23862 msgstr ""
23863
23864 # type: textblock
23865 #: ../fish/guestfish-actions.pod:3844
23866 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23867 msgstr ""
23868
23869 # type: =head2
23870 #: ../fish/guestfish-actions.pod:3850
23871 msgid "sfdiskM"
23872 msgstr ""
23873
23874 # type: verbatim
23875 #: ../fish/guestfish-actions.pod:3852
23876 #, no-wrap
23877 msgid ""
23878 " sfdiskM device 'lines ...'\n"
23879 "\n"
23880 msgstr ""
23881
23882 # type: textblock
23883 #: ../fish/guestfish-actions.pod:3854
23884 msgid ""
23885 "This is a simplified interface to the L</sfdisk> command, where partition "
23886 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23887 "you don't need to specify the cyls, heads and sectors parameters which were "
23888 "rarely if ever used anyway."
23889 msgstr ""
23890
23891 # type: textblock
23892 #: ../fish/guestfish-actions.pod:3860
23893 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23894 msgstr ""
23895
23896 # type: =head2
23897 #: ../fish/guestfish-actions.pod:3866
23898 msgid "sfdisk-N"
23899 msgstr ""
23900
23901 # type: verbatim
23902 #: ../fish/guestfish-actions.pod:3868
23903 #, no-wrap
23904 msgid ""
23905 " sfdisk-N device partnum cyls heads sectors line\n"
23906 "\n"
23907 msgstr ""
23908
23909 # type: textblock
23910 #: ../fish/guestfish-actions.pod:3873
23911 msgid ""
23912 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23913 "cyls/heads/sectors parameters."
23914 msgstr ""
23915
23916 # type: textblock
23917 #: ../fish/guestfish-actions.pod:3876
23918 msgid "See also: L</part-add>"
23919 msgstr ""
23920
23921 # type: =head2
23922 #: ../fish/guestfish-actions.pod:3881
23923 msgid "sfdisk-disk-geometry"
23924 msgstr ""
23925
23926 # type: verbatim
23927 #: ../fish/guestfish-actions.pod:3883
23928 #, no-wrap
23929 msgid ""
23930 " sfdisk-disk-geometry device\n"
23931 "\n"
23932 msgstr ""
23933
23934 # type: textblock
23935 #: ../fish/guestfish-actions.pod:3885
23936 msgid ""
23937 "This displays the disk geometry of C<device> read from the partition table.  "
23938 "Especially in the case where the underlying block device has been resized, "
23939 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23940 "kernel-geometry>)."
23941 msgstr ""
23942
23943 # type: =head2
23944 #: ../fish/guestfish-actions.pod:3893
23945 msgid "sfdisk-kernel-geometry"
23946 msgstr ""
23947
23948 # type: verbatim
23949 #: ../fish/guestfish-actions.pod:3895
23950 #, no-wrap
23951 msgid ""
23952 " sfdisk-kernel-geometry device\n"
23953 "\n"
23954 msgstr ""
23955
23956 # type: =head2
23957 #: ../fish/guestfish-actions.pod:3902
23958 msgid "sfdisk-l"
23959 msgstr ""
23960
23961 # type: verbatim
23962 #: ../fish/guestfish-actions.pod:3904
23963 #, no-wrap
23964 msgid ""
23965 " sfdisk-l device\n"
23966 "\n"
23967 msgstr ""
23968
23969 # type: textblock
23970 #: ../fish/guestfish-actions.pod:3910
23971 msgid "See also: L</part-list>"
23972 msgstr ""
23973
23974 # type: =head2
23975 #: ../fish/guestfish-actions.pod:3912
23976 msgid "sh"
23977 msgstr ""
23978
23979 # type: verbatim
23980 #: ../fish/guestfish-actions.pod:3914
23981 #, no-wrap
23982 msgid ""
23983 " sh command\n"
23984 "\n"
23985 msgstr ""
23986
23987 # type: textblock
23988 #: ../fish/guestfish-actions.pod:3919
23989 msgid "This is like L</command>, but passes the command to:"
23990 msgstr ""
23991
23992 # type: textblock
23993 #: ../fish/guestfish-actions.pod:3927
23994 msgid "All the provisos about L</command> apply to this call."
23995 msgstr ""
23996
23997 # type: =head2
23998 #: ../fish/guestfish-actions.pod:3929
23999 msgid "sh-lines"
24000 msgstr ""
24001
24002 # type: verbatim
24003 #: ../fish/guestfish-actions.pod:3931
24004 #, no-wrap
24005 msgid ""
24006 " sh-lines command\n"
24007 "\n"
24008 msgstr ""
24009
24010 # type: textblock
24011 #: ../fish/guestfish-actions.pod:3933
24012 msgid "This is the same as L</sh>, but splits the result into a list of lines."
24013 msgstr ""
24014
24015 # type: textblock
24016 #: ../fish/guestfish-actions.pod:3936
24017 msgid "See also: L</command-lines>"
24018 msgstr ""
24019
24020 # type: =head2
24021 #: ../fish/guestfish-actions.pod:3938
24022 msgid "sleep"
24023 msgstr ""
24024
24025 # type: verbatim
24026 #: ../fish/guestfish-actions.pod:3940
24027 #, no-wrap
24028 msgid ""
24029 " sleep secs\n"
24030 "\n"
24031 msgstr ""
24032
24033 # type: =head2
24034 #: ../fish/guestfish-actions.pod:3944
24035 msgid "stat"
24036 msgstr ""
24037
24038 # type: verbatim
24039 #: ../fish/guestfish-actions.pod:3946
24040 #, no-wrap
24041 msgid ""
24042 " stat path\n"
24043 "\n"
24044 msgstr ""
24045
24046 # type: =head2
24047 #: ../fish/guestfish-actions.pod:3952
24048 msgid "statvfs"
24049 msgstr ""
24050
24051 # type: verbatim
24052 #: ../fish/guestfish-actions.pod:3954
24053 #, no-wrap
24054 msgid ""
24055 " statvfs path\n"
24056 "\n"
24057 msgstr ""
24058
24059 # type: =head2
24060 #: ../fish/guestfish-actions.pod:3962
24061 msgid "strings"
24062 msgstr ""
24063
24064 # type: verbatim
24065 #: ../fish/guestfish-actions.pod:3964
24066 #, no-wrap
24067 msgid ""
24068 " strings path\n"
24069 "\n"
24070 msgstr ""
24071
24072 # type: =head2
24073 #: ../fish/guestfish-actions.pod:3972
24074 msgid "strings-e"
24075 msgstr ""
24076
24077 # type: verbatim
24078 #: ../fish/guestfish-actions.pod:3974
24079 #, no-wrap
24080 msgid ""
24081 " strings-e encoding path\n"
24082 "\n"
24083 msgstr ""
24084
24085 # type: textblock
24086 #: ../fish/guestfish-actions.pod:3976
24087 msgid ""
24088 "This is like the L</strings> command, but allows you to specify the encoding "
24089 "of strings that are looked for in the source file C<path>."
24090 msgstr ""
24091
24092 # type: textblock
24093 #: ../fish/guestfish-actions.pod:3986
24094 msgid ""
24095 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24096 "ISO-8859-X (this is what L</strings> uses)."
24097 msgstr ""
24098
24099 # type: =head2
24100 #: ../fish/guestfish-actions.pod:4018
24101 msgid "swapoff-device"
24102 msgstr ""
24103
24104 # type: verbatim
24105 #: ../fish/guestfish-actions.pod:4020
24106 #, no-wrap
24107 msgid ""
24108 " swapoff-device device\n"
24109 "\n"
24110 msgstr ""
24111
24112 # type: textblock
24113 #: ../fish/guestfish-actions.pod:4022
24114 msgid ""
24115 "This command disables the libguestfs appliance swap device or partition "
24116 "named C<device>.  See L</swapon-device>."
24117 msgstr ""
24118
24119 # type: =head2
24120 #: ../fish/guestfish-actions.pod:4026
24121 msgid "swapoff-file"
24122 msgstr ""
24123
24124 # type: verbatim
24125 #: ../fish/guestfish-actions.pod:4028
24126 #, no-wrap
24127 msgid ""
24128 " swapoff-file file\n"
24129 "\n"
24130 msgstr ""
24131
24132 # type: =head2
24133 #: ../fish/guestfish-actions.pod:4032
24134 msgid "swapoff-label"
24135 msgstr ""
24136
24137 # type: verbatim
24138 #: ../fish/guestfish-actions.pod:4034
24139 #, no-wrap
24140 msgid ""
24141 " swapoff-label label\n"
24142 "\n"
24143 msgstr ""
24144
24145 # type: =head2
24146 #: ../fish/guestfish-actions.pod:4039
24147 msgid "swapoff-uuid"
24148 msgstr ""
24149
24150 # type: verbatim
24151 #: ../fish/guestfish-actions.pod:4041
24152 #, no-wrap
24153 msgid ""
24154 " swapoff-uuid uuid\n"
24155 "\n"
24156 msgstr ""
24157
24158 # type: =head2
24159 #: ../fish/guestfish-actions.pod:4046
24160 msgid "swapon-device"
24161 msgstr ""
24162
24163 # type: verbatim
24164 #: ../fish/guestfish-actions.pod:4048
24165 #, no-wrap
24166 msgid ""
24167 " swapon-device device\n"
24168 "\n"
24169 msgstr ""
24170
24171 # type: textblock
24172 #: ../fish/guestfish-actions.pod:4050
24173 msgid ""
24174 "This command enables the libguestfs appliance to use the swap device or "
24175 "partition named C<device>.  The increased memory is made available for all "
24176 "commands, for example those run using L</command> or L</sh>."
24177 msgstr ""
24178
24179 # type: =head2
24180 #: ../fish/guestfish-actions.pod:4062
24181 msgid "swapon-file"
24182 msgstr ""
24183
24184 # type: verbatim
24185 #: ../fish/guestfish-actions.pod:4064
24186 #, no-wrap
24187 msgid ""
24188 " swapon-file file\n"
24189 "\n"
24190 msgstr ""
24191
24192 # type: textblock
24193 #: ../fish/guestfish-actions.pod:4066
24194 msgid ""
24195 "This command enables swap to a file.  See L</swapon-device> for other notes."
24196 msgstr ""
24197
24198 # type: =head2
24199 #: ../fish/guestfish-actions.pod:4069
24200 msgid "swapon-label"
24201 msgstr ""
24202
24203 # type: verbatim
24204 #: ../fish/guestfish-actions.pod:4071
24205 #, no-wrap
24206 msgid ""
24207 " swapon-label label\n"
24208 "\n"
24209 msgstr ""
24210
24211 # type: textblock
24212 #: ../fish/guestfish-actions.pod:4073
24213 msgid ""
24214 "This command enables swap to a labeled swap partition.  See L</swapon-"
24215 "device> for other notes."
24216 msgstr ""
24217
24218 # type: =head2
24219 #: ../fish/guestfish-actions.pod:4076
24220 msgid "swapon-uuid"
24221 msgstr ""
24222
24223 # type: verbatim
24224 #: ../fish/guestfish-actions.pod:4078
24225 #, no-wrap
24226 msgid ""
24227 " swapon-uuid uuid\n"
24228 "\n"
24229 msgstr ""
24230
24231 # type: textblock
24232 #: ../fish/guestfish-actions.pod:4080
24233 msgid ""
24234 "This command enables swap to a swap partition with the given UUID.  See L</"
24235 "swapon-device> for other notes."
24236 msgstr ""
24237
24238 # type: =head2
24239 #: ../fish/guestfish-actions.pod:4083
24240 msgid "sync"
24241 msgstr ""
24242
24243 # type: verbatim
24244 #: ../fish/guestfish-actions.pod:4085
24245 #, no-wrap
24246 msgid ""
24247 " sync\n"
24248 "\n"
24249 msgstr ""
24250
24251 # type: =head2
24252 #: ../fish/guestfish-actions.pod:4093
24253 msgid "tail"
24254 msgstr ""
24255
24256 # type: verbatim
24257 #: ../fish/guestfish-actions.pod:4095
24258 #, no-wrap
24259 msgid ""
24260 " tail path\n"
24261 "\n"
24262 msgstr ""
24263
24264 # type: =head2
24265 #: ../fish/guestfish-actions.pod:4103
24266 msgid "tail-n"
24267 msgstr ""
24268
24269 # type: verbatim
24270 #: ../fish/guestfish-actions.pod:4105
24271 #, no-wrap
24272 msgid ""
24273 " tail-n nrlines path\n"
24274 "\n"
24275 msgstr ""
24276
24277 # type: =head2
24278 #: ../fish/guestfish-actions.pod:4118
24279 msgid "tar-in"
24280 msgstr ""
24281
24282 # type: verbatim
24283 #: ../fish/guestfish-actions.pod:4120
24284 #, no-wrap
24285 msgid ""
24286 " tar-in (tarfile|-) directory\n"
24287 "\n"
24288 msgstr ""
24289
24290 # type: textblock
24291 #: ../fish/guestfish-actions.pod:4125
24292 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24293 msgstr ""
24294
24295 # type: =head2
24296 #: ../fish/guestfish-actions.pod:4130
24297 msgid "tar-out"
24298 msgstr ""
24299
24300 # type: verbatim
24301 #: ../fish/guestfish-actions.pod:4132
24302 #, no-wrap
24303 msgid ""
24304 " tar-out directory (tarfile|-)\n"
24305 "\n"
24306 msgstr ""
24307
24308 # type: textblock
24309 #: ../fish/guestfish-actions.pod:4137
24310 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24311 msgstr ""
24312
24313 # type: =head2
24314 #: ../fish/guestfish-actions.pod:4142
24315 msgid "tgz-in"
24316 msgstr ""
24317
24318 # type: verbatim
24319 #: ../fish/guestfish-actions.pod:4144
24320 #, no-wrap
24321 msgid ""
24322 " tgz-in (tarball|-) directory\n"
24323 "\n"
24324 msgstr ""
24325
24326 # type: textblock
24327 #: ../fish/guestfish-actions.pod:4149
24328 msgid "To upload an uncompressed tarball, use L</tar-in>."
24329 msgstr ""
24330
24331 # type: =head2
24332 #: ../fish/guestfish-actions.pod:4153
24333 msgid "tgz-out"
24334 msgstr ""
24335
24336 # type: verbatim
24337 #: ../fish/guestfish-actions.pod:4155
24338 #, no-wrap
24339 msgid ""
24340 " tgz-out directory (tarball|-)\n"
24341 "\n"
24342 msgstr ""
24343
24344 # type: textblock
24345 #: ../fish/guestfish-actions.pod:4160
24346 msgid "To download an uncompressed tarball, use L</tar-out>."
24347 msgstr ""
24348
24349 # type: =head2
24350 #: ../fish/guestfish-actions.pod:4164
24351 msgid "touch"
24352 msgstr ""
24353
24354 # type: verbatim
24355 #: ../fish/guestfish-actions.pod:4166
24356 #, no-wrap
24357 msgid ""
24358 " touch path\n"
24359 "\n"
24360 msgstr ""
24361
24362 # type: =head2
24363 #: ../fish/guestfish-actions.pod:4175
24364 msgid "truncate"
24365 msgstr ""
24366
24367 # type: verbatim
24368 #: ../fish/guestfish-actions.pod:4177
24369 #, no-wrap
24370 msgid ""
24371 " truncate path\n"
24372 "\n"
24373 msgstr ""
24374
24375 # type: =head2
24376 #: ../fish/guestfish-actions.pod:4182
24377 msgid "truncate-size"
24378 msgstr ""
24379
24380 # type: verbatim
24381 #: ../fish/guestfish-actions.pod:4184
24382 #, no-wrap
24383 msgid ""
24384 " truncate-size path size\n"
24385 "\n"
24386 msgstr ""
24387
24388 # type: textblock
24389 #: ../fish/guestfish-actions.pod:4189
24390 msgid ""
24391 "If the current file size is less than C<size> then the file is extended to "
24392 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24393 "blocks are not allocated for the file until you write to it).  To create a "
24394 "non-sparse file of zeroes, use L</fallocate64> instead."
24395 msgstr ""
24396
24397 # type: =head2
24398 #: ../fish/guestfish-actions.pod:4195
24399 msgid "tune2fs-l"
24400 msgstr ""
24401
24402 # type: verbatim
24403 #: ../fish/guestfish-actions.pod:4197
24404 #, no-wrap
24405 msgid ""
24406 " tune2fs-l device\n"
24407 "\n"
24408 msgstr ""
24409
24410 # type: =head2
24411 #: ../fish/guestfish-actions.pod:4207
24412 msgid "txz-in"
24413 msgstr ""
24414
24415 # type: verbatim
24416 #: ../fish/guestfish-actions.pod:4209
24417 #, no-wrap
24418 msgid ""
24419 " txz-in (tarball|-) directory\n"
24420 "\n"
24421 msgstr ""
24422
24423 # type: =head2
24424 #: ../fish/guestfish-actions.pod:4216
24425 msgid "txz-out"
24426 msgstr ""
24427
24428 # type: verbatim
24429 #: ../fish/guestfish-actions.pod:4218
24430 #, no-wrap
24431 msgid ""
24432 " txz-out directory (tarball|-)\n"
24433 "\n"
24434 msgstr ""
24435
24436 # type: =head2
24437 #: ../fish/guestfish-actions.pod:4225
24438 msgid "umask"
24439 msgstr ""
24440
24441 # type: verbatim
24442 #: ../fish/guestfish-actions.pod:4227
24443 #, no-wrap
24444 msgid ""
24445 " umask mask\n"
24446 "\n"
24447 msgstr ""
24448
24449 # type: textblock
24450 #: ../fish/guestfish-actions.pod:4241
24451 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24452 msgstr ""
24453
24454 # type: =head2
24455 #: ../fish/guestfish-actions.pod:4246
24456 msgid "umount"
24457 msgstr ""
24458
24459 # type: =head2
24460 #: ../fish/guestfish-actions.pod:4248
24461 msgid "unmount"
24462 msgstr ""
24463
24464 # type: verbatim
24465 #: ../fish/guestfish-actions.pod:4250
24466 #, no-wrap
24467 msgid ""
24468 " umount pathordevice\n"
24469 "\n"
24470 msgstr ""
24471
24472 # type: =head2
24473 #: ../fish/guestfish-actions.pod:4256
24474 msgid "umount-all"
24475 msgstr ""
24476
24477 # type: =head2
24478 #: ../fish/guestfish-actions.pod:4258
24479 msgid "unmount-all"
24480 msgstr ""
24481
24482 # type: verbatim
24483 #: ../fish/guestfish-actions.pod:4260
24484 #, no-wrap
24485 msgid ""
24486 " umount-all\n"
24487 "\n"
24488 msgstr ""
24489
24490 # type: =head2
24491 #: ../fish/guestfish-actions.pod:4266
24492 msgid "upload"
24493 msgstr ""
24494
24495 # type: verbatim
24496 #: ../fish/guestfish-actions.pod:4268
24497 #, no-wrap
24498 msgid ""
24499 " upload (filename|-) remotefilename\n"
24500 "\n"
24501 msgstr ""
24502
24503 # type: textblock
24504 #: ../fish/guestfish-actions.pod:4275
24505 msgid "See also L</download>."
24506 msgstr ""
24507
24508 # type: =head2
24509 #: ../fish/guestfish-actions.pod:4279
24510 msgid "upload-offset"
24511 msgstr ""
24512
24513 # type: verbatim
24514 #: ../fish/guestfish-actions.pod:4281
24515 #, no-wrap
24516 msgid ""
24517 " upload-offset (filename|-) remotefilename offset\n"
24518 "\n"
24519 msgstr ""
24520
24521 # type: textblock
24522 #: ../fish/guestfish-actions.pod:4293
24523 msgid ""
24524 "Note that there is no limit on the amount of data that can be uploaded with "
24525 "this call, unlike with L</pwrite>, and this call always writes the full "
24526 "amount unless an error occurs."
24527 msgstr ""
24528
24529 # type: textblock
24530 #: ../fish/guestfish-actions.pod:4298
24531 msgid "See also L</upload>, L</pwrite>."
24532 msgstr ""
24533
24534 # type: =head2
24535 #: ../fish/guestfish-actions.pod:4302
24536 msgid "utimens"
24537 msgstr ""
24538
24539 # type: verbatim
24540 #: ../fish/guestfish-actions.pod:4304
24541 #, no-wrap
24542 msgid ""
24543 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24544 "\n"
24545 msgstr ""
24546
24547 # type: =head2
24548 #: ../fish/guestfish-actions.pod:4323
24549 msgid "version"
24550 msgstr ""
24551
24552 # type: verbatim
24553 #: ../fish/guestfish-actions.pod:4325
24554 #, no-wrap
24555 msgid ""
24556 " version\n"
24557 "\n"
24558 msgstr ""
24559
24560 # type: textblock
24561 #: ../fish/guestfish-actions.pod:4352
24562 msgid ""
24563 "I<Note:> Don't use this call to test for availability of features.  In "
24564 "enterprise distributions we backport features from later versions into "
24565 "earlier versions, making this an unreliable way to test for features.  Use "
24566 "L</available> instead."
24567 msgstr ""
24568
24569 # type: =head2
24570 #: ../fish/guestfish-actions.pod:4358
24571 msgid "vfs-label"
24572 msgstr ""
24573
24574 # type: verbatim
24575 #: ../fish/guestfish-actions.pod:4360
24576 #, no-wrap
24577 msgid ""
24578 " vfs-label device\n"
24579 "\n"
24580 msgstr ""
24581
24582 # type: textblock
24583 #: ../fish/guestfish-actions.pod:4367
24584 msgid "To find a filesystem from the label, use L</findfs-label>."
24585 msgstr ""
24586
24587 # type: =head2
24588 #: ../fish/guestfish-actions.pod:4369
24589 msgid "vfs-type"
24590 msgstr ""
24591
24592 # type: verbatim
24593 #: ../fish/guestfish-actions.pod:4371
24594 #, no-wrap
24595 msgid ""
24596 " vfs-type device\n"
24597 "\n"
24598 msgstr ""
24599
24600 # type: =head2
24601 #: ../fish/guestfish-actions.pod:4381
24602 msgid "vfs-uuid"
24603 msgstr ""
24604
24605 # type: verbatim
24606 #: ../fish/guestfish-actions.pod:4383
24607 #, no-wrap
24608 msgid ""
24609 " vfs-uuid device\n"
24610 "\n"
24611 msgstr ""
24612
24613 # type: textblock
24614 #: ../fish/guestfish-actions.pod:4390
24615 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24616 msgstr ""
24617
24618 # type: =head2
24619 #: ../fish/guestfish-actions.pod:4392
24620 msgid "vg-activate"
24621 msgstr ""
24622
24623 # type: verbatim
24624 #: ../fish/guestfish-actions.pod:4394
24625 #, no-wrap
24626 msgid ""
24627 " vg-activate true|false 'volgroups ...'\n"
24628 "\n"
24629 msgstr ""
24630
24631 # type: =head2
24632 #: ../fish/guestfish-actions.pod:4407
24633 msgid "vg-activate-all"
24634 msgstr ""
24635
24636 # type: verbatim
24637 #: ../fish/guestfish-actions.pod:4409
24638 #, no-wrap
24639 msgid ""
24640 " vg-activate-all true|false\n"
24641 "\n"
24642 msgstr ""
24643
24644 # type: =head2
24645 #: ../fish/guestfish-actions.pod:4419
24646 msgid "vgcreate"
24647 msgstr ""
24648
24649 # type: verbatim
24650 #: ../fish/guestfish-actions.pod:4421
24651 #, no-wrap
24652 msgid ""
24653 " vgcreate volgroup 'physvols ...'\n"
24654 "\n"
24655 msgstr ""
24656
24657 # type: =head2
24658 #: ../fish/guestfish-actions.pod:4426
24659 msgid "vglvuuids"
24660 msgstr ""
24661
24662 # type: verbatim
24663 #: ../fish/guestfish-actions.pod:4428
24664 #, no-wrap
24665 msgid ""
24666 " vglvuuids vgname\n"
24667 "\n"
24668 msgstr ""
24669
24670 # type: textblock
24671 #: ../fish/guestfish-actions.pod:4433
24672 msgid ""
24673 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24674 "logical volumes and volume groups."
24675 msgstr ""
24676
24677 # type: textblock
24678 #: ../fish/guestfish-actions.pod:4436
24679 msgid "See also L</vgpvuuids>."
24680 msgstr ""
24681
24682 # type: =head2
24683 #: ../fish/guestfish-actions.pod:4438
24684 msgid "vgpvuuids"
24685 msgstr ""
24686
24687 # type: verbatim
24688 #: ../fish/guestfish-actions.pod:4440
24689 #, no-wrap
24690 msgid ""
24691 " vgpvuuids vgname\n"
24692 "\n"
24693 msgstr ""
24694
24695 # type: textblock
24696 #: ../fish/guestfish-actions.pod:4445
24697 msgid ""
24698 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24699 "physical volumes and volume groups."
24700 msgstr ""
24701
24702 # type: textblock
24703 #: ../fish/guestfish-actions.pod:4448
24704 msgid "See also L</vglvuuids>."
24705 msgstr ""
24706
24707 # type: =head2
24708 #: ../fish/guestfish-actions.pod:4450
24709 msgid "vgremove"
24710 msgstr ""
24711
24712 # type: verbatim
24713 #: ../fish/guestfish-actions.pod:4452
24714 #, no-wrap
24715 msgid ""
24716 " vgremove vgname\n"
24717 "\n"
24718 msgstr ""
24719
24720 # type: =head2
24721 #: ../fish/guestfish-actions.pod:4459
24722 msgid "vgrename"
24723 msgstr ""
24724
24725 # type: verbatim
24726 #: ../fish/guestfish-actions.pod:4461
24727 #, no-wrap
24728 msgid ""
24729 " vgrename volgroup newvolgroup\n"
24730 "\n"
24731 msgstr ""
24732
24733 # type: =head2
24734 #: ../fish/guestfish-actions.pod:4465
24735 msgid "vgs"
24736 msgstr ""
24737
24738 # type: verbatim
24739 #: ../fish/guestfish-actions.pod:4467
24740 #, no-wrap
24741 msgid ""
24742 " vgs\n"
24743 "\n"
24744 msgstr ""
24745
24746 # type: textblock
24747 #: ../fish/guestfish-actions.pod:4475
24748 msgid "See also L</vgs-full>."
24749 msgstr ""
24750
24751 # type: =head2
24752 #: ../fish/guestfish-actions.pod:4477
24753 msgid "vgs-full"
24754 msgstr ""
24755
24756 # type: verbatim
24757 #: ../fish/guestfish-actions.pod:4479
24758 #, no-wrap
24759 msgid ""
24760 " vgs-full\n"
24761 "\n"
24762 msgstr ""
24763
24764 # type: =head2
24765 #: ../fish/guestfish-actions.pod:4484
24766 msgid "vgscan"
24767 msgstr ""
24768
24769 # type: verbatim
24770 #: ../fish/guestfish-actions.pod:4486
24771 #, no-wrap
24772 msgid ""
24773 " vgscan\n"
24774 "\n"
24775 msgstr ""
24776
24777 # type: =head2
24778 #: ../fish/guestfish-actions.pod:4491
24779 msgid "vguuid"
24780 msgstr ""
24781
24782 # type: verbatim
24783 #: ../fish/guestfish-actions.pod:4493
24784 #, no-wrap
24785 msgid ""
24786 " vguuid vgname\n"
24787 "\n"
24788 msgstr ""
24789
24790 # type: =head2
24791 #: ../fish/guestfish-actions.pod:4497
24792 msgid "wc-c"
24793 msgstr ""
24794
24795 # type: verbatim
24796 #: ../fish/guestfish-actions.pod:4499
24797 #, no-wrap
24798 msgid ""
24799 " wc-c path\n"
24800 "\n"
24801 msgstr ""
24802
24803 # type: =head2
24804 #: ../fish/guestfish-actions.pod:4504
24805 msgid "wc-l"
24806 msgstr ""
24807
24808 # type: verbatim
24809 #: ../fish/guestfish-actions.pod:4506
24810 #, no-wrap
24811 msgid ""
24812 " wc-l path\n"
24813 "\n"
24814 msgstr ""
24815
24816 # type: =head2
24817 #: ../fish/guestfish-actions.pod:4511
24818 msgid "wc-w"
24819 msgstr ""
24820
24821 # type: verbatim
24822 #: ../fish/guestfish-actions.pod:4513
24823 #, no-wrap
24824 msgid ""
24825 " wc-w path\n"
24826 "\n"
24827 msgstr ""
24828
24829 # type: =head2
24830 #: ../fish/guestfish-actions.pod:4518
24831 msgid "write"
24832 msgstr ""
24833
24834 # type: verbatim
24835 #: ../fish/guestfish-actions.pod:4520
24836 #, no-wrap
24837 msgid ""
24838 " write path content\n"
24839 "\n"
24840 msgstr ""
24841
24842 # type: =head2
24843 #: ../fish/guestfish-actions.pod:4528
24844 msgid "write-file"
24845 msgstr ""
24846
24847 # type: verbatim
24848 #: ../fish/guestfish-actions.pod:4530
24849 #, no-wrap
24850 msgid ""
24851 " write-file path content size\n"
24852 "\n"
24853 msgstr ""
24854
24855 # type: =head2
24856 #: ../fish/guestfish-actions.pod:4553
24857 msgid "zegrep"
24858 msgstr ""
24859
24860 # type: verbatim
24861 #: ../fish/guestfish-actions.pod:4555
24862 #, no-wrap
24863 msgid ""
24864 " zegrep regex path\n"
24865 "\n"
24866 msgstr ""
24867
24868 # type: =head2
24869 #: ../fish/guestfish-actions.pod:4563
24870 msgid "zegrepi"
24871 msgstr ""
24872
24873 # type: verbatim
24874 #: ../fish/guestfish-actions.pod:4565
24875 #, no-wrap
24876 msgid ""
24877 " zegrepi regex path\n"
24878 "\n"
24879 msgstr ""
24880
24881 # type: =head2
24882 #: ../fish/guestfish-actions.pod:4573
24883 msgid "zero"
24884 msgstr ""
24885
24886 # type: verbatim
24887 #: ../fish/guestfish-actions.pod:4575
24888 #, no-wrap
24889 msgid ""
24890 " zero device\n"
24891 "\n"
24892 msgstr ""
24893
24894 # type: textblock
24895 #: ../fish/guestfish-actions.pod:4583
24896 msgid "See also: L</zero-device>, L</scrub-device>."
24897 msgstr ""
24898
24899 # type: =head2
24900 #: ../fish/guestfish-actions.pod:4585
24901 msgid "zero-device"
24902 msgstr ""
24903
24904 # type: verbatim
24905 #: ../fish/guestfish-actions.pod:4587
24906 #, no-wrap
24907 msgid ""
24908 " zero-device device\n"
24909 "\n"
24910 msgstr ""
24911
24912 # type: textblock
24913 #: ../fish/guestfish-actions.pod:4589
24914 msgid ""
24915 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24916 "which just zeroes the first few blocks of a device."
24917 msgstr ""
24918
24919 # type: =head2
24920 #: ../fish/guestfish-actions.pod:4596
24921 msgid "zerofree"
24922 msgstr ""
24923
24924 # type: verbatim
24925 #: ../fish/guestfish-actions.pod:4598
24926 #, no-wrap
24927 msgid ""
24928 " zerofree device\n"
24929 "\n"
24930 msgstr ""
24931
24932 # type: =head2
24933 #: ../fish/guestfish-actions.pod:4611
24934 msgid "zfgrep"
24935 msgstr ""
24936
24937 # type: verbatim
24938 #: ../fish/guestfish-actions.pod:4613
24939 #, no-wrap
24940 msgid ""
24941 " zfgrep pattern path\n"
24942 "\n"
24943 msgstr ""
24944
24945 # type: =head2
24946 #: ../fish/guestfish-actions.pod:4621
24947 msgid "zfgrepi"
24948 msgstr ""
24949
24950 # type: verbatim
24951 #: ../fish/guestfish-actions.pod:4623
24952 #, no-wrap
24953 msgid ""
24954 " zfgrepi pattern path\n"
24955 "\n"
24956 msgstr ""
24957
24958 # type: =head2
24959 #: ../fish/guestfish-actions.pod:4631
24960 msgid "zfile"
24961 msgstr ""
24962
24963 # type: verbatim
24964 #: ../fish/guestfish-actions.pod:4633
24965 #, no-wrap
24966 msgid ""
24967 " zfile meth path\n"
24968 "\n"
24969 msgstr ""
24970
24971 # type: textblock
24972 #: ../fish/guestfish-actions.pod:4640
24973 msgid ""
24974 "Since 1.0.63, use L</file> instead which can now process compressed files."
24975 msgstr ""
24976
24977 # type: =head2
24978 #: ../fish/guestfish-actions.pod:4650
24979 msgid "zgrep"
24980 msgstr ""
24981
24982 # type: verbatim
24983 #: ../fish/guestfish-actions.pod:4652
24984 #, no-wrap
24985 msgid ""
24986 " zgrep regex path\n"
24987 "\n"
24988 msgstr ""
24989
24990 # type: =head2
24991 #: ../fish/guestfish-actions.pod:4660
24992 msgid "zgrepi"
24993 msgstr ""
24994
24995 # type: verbatim
24996 #: ../fish/guestfish-actions.pod:4662
24997 #, no-wrap
24998 msgid ""
24999 " zgrepi regex path\n"
25000 "\n"
25001 msgstr ""
25002
25003 # type: =head2
25004 #: ../fish/guestfish-commands.pod:1
25005 msgid "alloc"
25006 msgstr ""
25007
25008 # type: =head2
25009 #: ../fish/guestfish-commands.pod:3
25010 msgid "allocate"
25011 msgstr ""
25012
25013 # type: verbatim
25014 #: ../fish/guestfish-commands.pod:5
25015 #, no-wrap
25016 msgid ""
25017 " alloc filename size\n"
25018 "\n"
25019 msgstr ""
25020
25021 # type: textblock
25022 #: ../fish/guestfish-commands.pod:7
25023 msgid ""
25024 "This creates an empty (zeroed) file of the given size, and then adds so it "
25025 "can be further examined."
25026 msgstr ""
25027
25028 # type: textblock
25029 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25030 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25031 msgstr ""
25032
25033 # type: textblock
25034 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25035 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25036 msgstr ""
25037
25038 # type: textblock
25039 #: ../fish/guestfish-commands.pod:14
25040 msgid ""
25041 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25042 "image, see L</PREPARED DISK IMAGES>."
25043 msgstr ""
25044
25045 # type: =head2
25046 #: ../fish/guestfish-commands.pod:17
25047 msgid "copy-in"
25048 msgstr ""
25049
25050 # type: verbatim
25051 #: ../fish/guestfish-commands.pod:19
25052 #, no-wrap
25053 msgid ""
25054 " copy-in local [local ...] /remotedir\n"
25055 "\n"
25056 msgstr ""
25057
25058 # type: textblock
25059 #: ../fish/guestfish-commands.pod:21
25060 msgid ""
25061 "C<copy-in> copies local files or directories recursively into the disk "
25062 "image, placing them in the directory called C</remotedir> (which must "
25063 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25064 "other commands as necessary."
25065 msgstr ""
25066
25067 # type: textblock
25068 #: ../fish/guestfish-commands.pod:26
25069 msgid ""
25070 "Multiple local files and directories can be specified, but the last "
25071 "parameter must always be a remote directory.  Wildcards cannot be used."
25072 msgstr ""
25073
25074 # type: =head2
25075 #: ../fish/guestfish-commands.pod:30
25076 msgid "copy-out"
25077 msgstr ""
25078
25079 # type: verbatim
25080 #: ../fish/guestfish-commands.pod:32
25081 #, no-wrap
25082 msgid ""
25083 " copy-out remote [remote ...] localdir\n"
25084 "\n"
25085 msgstr ""
25086
25087 # type: textblock
25088 #: ../fish/guestfish-commands.pod:34
25089 msgid ""
25090 "C<copy-out> copies remote files or directories recursively out of the disk "
25091 "image, placing them on the host disk in a local directory called C<localdir> "
25092 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25093 "download>, L</tar-out> and other commands as necessary."
25094 msgstr ""
25095
25096 # type: textblock
25097 #: ../fish/guestfish-commands.pod:40
25098 msgid ""
25099 "Multiple remote files and directories can be specified, but the last "
25100 "parameter must always be a local directory.  To download to the current "
25101 "directory, use C<.> as in:"
25102 msgstr ""
25103
25104 # type: verbatim
25105 #: ../fish/guestfish-commands.pod:44
25106 #, no-wrap
25107 msgid ""
25108 " copy-out /home .\n"
25109 "\n"
25110 msgstr ""
25111
25112 # type: textblock
25113 #: ../fish/guestfish-commands.pod:46
25114 msgid ""
25115 "Wildcards cannot be used in the ordinary command, but you can use them with "
25116 "the help of L</glob> like this:"
25117 msgstr ""
25118
25119 # type: verbatim
25120 #: ../fish/guestfish-commands.pod:49
25121 #, no-wrap
25122 msgid ""
25123 " glob copy-out /home/* .\n"
25124 "\n"
25125 msgstr ""
25126
25127 # type: =head2
25128 #: ../fish/guestfish-commands.pod:51
25129 msgid "echo"
25130 msgstr ""
25131
25132 # type: verbatim
25133 #: ../fish/guestfish-commands.pod:53
25134 #, no-wrap
25135 msgid ""
25136 " echo [params ...]\n"
25137 "\n"
25138 msgstr ""
25139
25140 # type: textblock
25141 #: ../fish/guestfish-commands.pod:55
25142 msgid "This echos the parameters to the terminal."
25143 msgstr ""
25144
25145 # type: =head2
25146 #: ../fish/guestfish-commands.pod:57
25147 msgid "edit"
25148 msgstr ""
25149
25150 # type: =head2
25151 #: ../fish/guestfish-commands.pod:59
25152 msgid "vi"
25153 msgstr ""
25154
25155 # type: =head2
25156 #: ../fish/guestfish-commands.pod:61
25157 msgid "emacs"
25158 msgstr ""
25159
25160 # type: verbatim
25161 #: ../fish/guestfish-commands.pod:63
25162 #, no-wrap
25163 msgid ""
25164 " edit filename\n"
25165 "\n"
25166 msgstr ""
25167
25168 # type: textblock
25169 #: ../fish/guestfish-commands.pod:65
25170 msgid ""
25171 "This is used to edit a file.  It downloads the file, edits it locally using "
25172 "your editor, then uploads the result."
25173 msgstr ""
25174
25175 # type: textblock
25176 #: ../fish/guestfish-commands.pod:68
25177 msgid ""
25178 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25179 "or C<emacs> you will get those corresponding editors."
25180 msgstr ""
25181
25182 # type: =head2
25183 #: ../fish/guestfish-commands.pod:72
25184 msgid "glob"
25185 msgstr ""
25186
25187 # type: verbatim
25188 #: ../fish/guestfish-commands.pod:74
25189 #, no-wrap
25190 msgid ""
25191 " glob command args...\n"
25192 "\n"
25193 msgstr ""
25194
25195 # type: textblock
25196 #: ../fish/guestfish-commands.pod:76
25197 msgid ""
25198 "Expand wildcards in any paths in the args list, and run C<command> "
25199 "repeatedly on each matching path."
25200 msgstr ""
25201
25202 # type: textblock
25203 #: ../fish/guestfish-commands.pod:79
25204 msgid "See L</WILDCARDS AND GLOBBING>."
25205 msgstr ""
25206
25207 # type: =head2
25208 #: ../fish/guestfish-commands.pod:81
25209 msgid "hexedit"
25210 msgstr ""
25211
25212 # type: verbatim
25213 #: ../fish/guestfish-commands.pod:83
25214 #, no-wrap
25215 msgid ""
25216 " hexedit <filename|device>\n"
25217 " hexedit <filename|device> <max>\n"
25218 " hexedit <filename|device> <start> <max>\n"
25219 "\n"
25220 msgstr ""
25221
25222 # type: textblock
25223 #: ../fish/guestfish-commands.pod:87
25224 msgid ""
25225 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25226 "device."
25227 msgstr ""
25228
25229 # type: textblock
25230 #: ../fish/guestfish-commands.pod:90
25231 msgid ""
25232 "This command works by downloading potentially the whole file or device, "
25233 "editing it locally, then uploading it.  If the file or device is large, you "
25234 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25235 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25236 "usual modifiers allowed such as C<1M> (1 megabyte)."
25237 msgstr ""
25238
25239 # type: textblock
25240 #: ../fish/guestfish-commands.pod:97
25241 msgid "For example to edit the first few sectors of a disk you might do:"
25242 msgstr ""
25243
25244 # type: verbatim
25245 #: ../fish/guestfish-commands.pod:100
25246 #, no-wrap
25247 msgid ""
25248 " hexedit /dev/sda 1M\n"
25249 "\n"
25250 msgstr ""
25251
25252 # type: textblock
25253 #: ../fish/guestfish-commands.pod:102
25254 msgid ""
25255 "which would allow you to edit anywhere within the first megabyte of the disk."
25256 msgstr ""
25257
25258 # type: textblock
25259 #: ../fish/guestfish-commands.pod:105
25260 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25261 msgstr ""
25262
25263 # type: verbatim
25264 #: ../fish/guestfish-commands.pod:107
25265 #, no-wrap
25266 msgid ""
25267 " hexedit /dev/sda1 0x400 0x400\n"
25268 "\n"
25269 msgstr ""
25270
25271 # type: textblock
25272 #: ../fish/guestfish-commands.pod:109
25273 msgid "(assuming the superblock is in the standard location)."
25274 msgstr ""
25275
25276 # type: textblock
25277 #: ../fish/guestfish-commands.pod:111
25278 msgid ""
25279 "This command requires the external L<hexedit(1)> program.  You can specify "
25280 "another program to use by setting the C<HEXEDITOR> environment variable."
25281 msgstr ""
25282
25283 # type: textblock
25284 #: ../fish/guestfish-commands.pod:115
25285 msgid "See also L</hexdump>."
25286 msgstr ""
25287
25288 # type: =head2
25289 #: ../fish/guestfish-commands.pod:117
25290 msgid "lcd"
25291 msgstr ""
25292
25293 # type: verbatim
25294 #: ../fish/guestfish-commands.pod:119
25295 #, no-wrap
25296 msgid ""
25297 " lcd directory\n"
25298 "\n"
25299 msgstr ""
25300
25301 # type: textblock
25302 #: ../fish/guestfish-commands.pod:121
25303 msgid ""
25304 "Change the local directory, ie. the current directory of guestfish itself."
25305 msgstr ""
25306
25307 # type: textblock
25308 #: ../fish/guestfish-commands.pod:124
25309 msgid "Note that C<!cd> won't do what you might expect."
25310 msgstr ""
25311
25312 # type: =head2
25313 #: ../fish/guestfish-commands.pod:126
25314 msgid "man"
25315 msgstr ""
25316
25317 # type: =head2
25318 #: ../fish/guestfish-commands.pod:128
25319 msgid "manual"
25320 msgstr ""
25321
25322 # type: verbatim
25323 #: ../fish/guestfish-commands.pod:130
25324 #, no-wrap
25325 msgid ""
25326 "  man\n"
25327 "\n"
25328 msgstr ""
25329
25330 # type: textblock
25331 #: ../fish/guestfish-commands.pod:132
25332 msgid "Opens the manual page for guestfish."
25333 msgstr ""
25334
25335 # type: =head2
25336 #: ../fish/guestfish-commands.pod:134
25337 msgid "more"
25338 msgstr ""
25339
25340 # type: =head2
25341 #: ../fish/guestfish-commands.pod:136
25342 msgid "less"
25343 msgstr ""
25344
25345 # type: verbatim
25346 #: ../fish/guestfish-commands.pod:138
25347 #, no-wrap
25348 msgid ""
25349 " more filename\n"
25350 "\n"
25351 msgstr ""
25352
25353 # type: verbatim
25354 #: ../fish/guestfish-commands.pod:140
25355 #, no-wrap
25356 msgid ""
25357 " less filename\n"
25358 "\n"
25359 msgstr ""
25360
25361 # type: textblock
25362 #: ../fish/guestfish-commands.pod:142
25363 msgid "This is used to view a file."
25364 msgstr ""
25365
25366 # type: textblock
25367 #: ../fish/guestfish-commands.pod:144
25368 msgid ""
25369 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25370 "C<less> you will get the C<less> command specifically."
25371 msgstr ""
25372
25373 # type: =head2
25374 #: ../fish/guestfish-commands.pod:147
25375 msgid "reopen"
25376 msgstr ""
25377
25378 # type: verbatim
25379 #: ../fish/guestfish-commands.pod:149
25380 #, no-wrap
25381 msgid ""
25382 "  reopen\n"
25383 "\n"
25384 msgstr ""
25385
25386 # type: textblock
25387 #: ../fish/guestfish-commands.pod:151
25388 msgid ""
25389 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25390 "normally, because the handle is closed properly when guestfish exits.  "
25391 "However this is occasionally useful for testing."
25392 msgstr ""
25393
25394 # type: =head2
25395 #: ../fish/guestfish-commands.pod:155
25396 msgid "sparse"
25397 msgstr ""
25398
25399 # type: verbatim
25400 #: ../fish/guestfish-commands.pod:157
25401 #, no-wrap
25402 msgid ""
25403 " sparse filename size\n"
25404 "\n"
25405 msgstr ""
25406
25407 # type: textblock
25408 #: ../fish/guestfish-commands.pod:159
25409 msgid ""
25410 "This creates an empty sparse file of the given size, and then adds so it can "
25411 "be further examined."
25412 msgstr ""
25413
25414 # type: textblock
25415 #: ../fish/guestfish-commands.pod:162
25416 msgid ""
25417 "In all respects it works the same as the L</alloc> command, except that the "
25418 "image file is allocated sparsely, which means that disk blocks are not "
25419 "assigned to the file until they are needed.  Sparse disk files only use "
25420 "space when written to, but they are slower and there is a danger you could "
25421 "run out of real disk space during a write operation."
25422 msgstr ""
25423
25424 # type: =head2
25425 #: ../fish/guestfish-commands.pod:172
25426 msgid "supported"
25427 msgstr ""
25428
25429 # type: verbatim
25430 #: ../fish/guestfish-commands.pod:174
25431 #, no-wrap
25432 msgid ""
25433 " supported\n"
25434 "\n"
25435 msgstr ""
25436
25437 # type: textblock
25438 #: ../fish/guestfish-commands.pod:176
25439 msgid ""
25440 "This command returns a list of the optional groups known to the daemon, and "
25441 "indicates which ones are supported by this build of the libguestfs appliance."
25442 msgstr ""
25443
25444 # type: textblock
25445 #: ../fish/guestfish-commands.pod:180
25446 msgid "See also L<guestfs(3)/AVAILABILITY>."
25447 msgstr ""
25448
25449 # type: =head2
25450 #: ../fish/guestfish-commands.pod:182
25451 msgid "time"
25452 msgstr ""
25453
25454 # type: verbatim
25455 #: ../fish/guestfish-commands.pod:184
25456 #, no-wrap
25457 msgid ""
25458 " time command args...\n"
25459 "\n"
25460 msgstr ""
25461
25462 # type: textblock
25463 #: ../fish/guestfish-commands.pod:186
25464 msgid ""
25465 "Run the command as usual, but print the elapsed time afterwards.  This can "
25466 "be useful for benchmarking operations."
25467 msgstr ""
25468
25469 # type: textblock
25470 #: ../test-tool/libguestfs-test-tool.pod:5
25471 msgid "libguestfs-test-tool - End user tests for libguestfs"
25472 msgstr ""
25473
25474 # type: verbatim
25475 #: ../test-tool/libguestfs-test-tool.pod:9
25476 #, no-wrap
25477 msgid ""
25478 " libguestfs-test-tool [--options]\n"
25479 "\n"
25480 msgstr ""
25481
25482 # type: textblock
25483 #: ../test-tool/libguestfs-test-tool.pod:13
25484 msgid ""
25485 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25486 "and developers, to allow them to check basic libguestfs functionality is "
25487 "working.  This is needed because libguestfs occasionally breaks for reasons "
25488 "beyond our control: usually because of changes in the underlying qemu or "
25489 "kernel packages, or the host environment."
25490 msgstr ""
25491
25492 # type: textblock
25493 #: ../test-tool/libguestfs-test-tool.pod:20
25494 msgid "If you suspect a problem in libguestfs, then just run:"
25495 msgstr ""
25496
25497 # type: verbatim
25498 #: ../test-tool/libguestfs-test-tool.pod:22
25499 #, no-wrap
25500 msgid ""
25501 " libguestfs-test-tool\n"
25502 "\n"
25503 msgstr ""
25504
25505 # type: textblock
25506 #: ../test-tool/libguestfs-test-tool.pod:24
25507 msgid "It will print lots of diagnostic messages."
25508 msgstr ""
25509
25510 # type: textblock
25511 #: ../test-tool/libguestfs-test-tool.pod:26
25512 msgid "If it runs to completion successfully, you will see this near the end:"
25513 msgstr ""
25514
25515 # type: verbatim
25516 #: ../test-tool/libguestfs-test-tool.pod:28
25517 #, no-wrap
25518 msgid ""
25519 " ===== TEST FINISHED OK =====\n"
25520 "\n"
25521 msgstr ""
25522
25523 # type: textblock
25524 #: ../test-tool/libguestfs-test-tool.pod:30
25525 msgid "and the test tool will exit with code 0."
25526 msgstr ""
25527
25528 # type: textblock
25529 #: ../test-tool/libguestfs-test-tool.pod:32
25530 msgid ""
25531 "If it fails (and/or exits with non-zero error code), please paste the "
25532 "B<complete, unedited> output of the test tool into a bug report.  More "
25533 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25534 "> website."
25535 msgstr ""
25536
25537 # type: =item
25538 #: ../test-tool/libguestfs-test-tool.pod:41
25539 msgid "I<--help>"
25540 msgstr ""
25541
25542 # type: textblock
25543 #: ../test-tool/libguestfs-test-tool.pod:43
25544 msgid "Display short usage information and exit."
25545 msgstr ""
25546
25547 # type: =item
25548 #: ../test-tool/libguestfs-test-tool.pod:45
25549 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25550 msgstr ""
25551
25552 # type: textblock
25553 #: ../test-tool/libguestfs-test-tool.pod:47
25554 msgid ""
25555 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25556 "normally look in the C<$libexec> directory that was configured when the tool "
25557 "was built."
25558 msgstr ""
25559
25560 # type: =item
25561 #: ../test-tool/libguestfs-test-tool.pod:51
25562 msgid "I<--qemu qemu_binary>"
25563 msgstr ""
25564
25565 # type: textblock
25566 #: ../test-tool/libguestfs-test-tool.pod:53
25567 msgid ""
25568 "If you have downloaded another qemu binary, point this option at the full "
25569 "path of the binary to try it."
25570 msgstr ""
25571
25572 # type: =item
25573 #: ../test-tool/libguestfs-test-tool.pod:56
25574 msgid "I<--qemudir qemu_source_dir>"
25575 msgstr ""
25576
25577 # type: textblock
25578 #: ../test-tool/libguestfs-test-tool.pod:58
25579 msgid ""
25580 "If you have compiled qemu from source, point this option at the source "
25581 "directory to try it."
25582 msgstr ""
25583
25584 # type: =item
25585 #: ../test-tool/libguestfs-test-tool.pod:61
25586 msgid "I<--timeout N>"
25587 msgstr ""
25588
25589 # type: textblock
25590 #: ../test-tool/libguestfs-test-tool.pod:63
25591 msgid ""
25592 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25593 "does not usually need to be adjusted unless your machine is very slow."
25594 msgstr ""
25595
25596 # type: =head1
25597 #: ../test-tool/libguestfs-test-tool.pod:69
25598 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25599 msgstr ""
25600
25601 # type: textblock
25602 #: ../test-tool/libguestfs-test-tool.pod:71
25603 msgid ""
25604 "If you have compiled another version of qemu from source and would like to "
25605 "try that, then you can use the I<--qemudir> option to point to the qemu "
25606 "source directory."
25607 msgstr ""
25608
25609 # type: textblock
25610 #: ../test-tool/libguestfs-test-tool.pod:75
25611 msgid ""
25612 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25613 "option to point to the binary."
25614 msgstr ""
25615
25616 # type: textblock
25617 #: ../test-tool/libguestfs-test-tool.pod:78
25618 msgid ""
25619 "When using an alternate qemu with libguestfs, usually you would need to "
25620 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25621 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25622 "use either of the I<--qemudir> or I<--qemu> options."
25623 msgstr ""
25624
25625 # type: textblock
25626 #: ../test-tool/libguestfs-test-tool.pod:85
25627 msgid ""
25628 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25629 "I<1> if there was an error."
25630 msgstr ""
25631
25632 # type: =item
25633 #: ../test-tool/libguestfs-test-tool.pod:92
25634 msgid "/usr/libexec/libguestfs-test-tool-helper"
25635 msgstr ""
25636
25637 # type: textblock
25638 #: ../test-tool/libguestfs-test-tool.pod:94
25639 msgid ""
25640 "This helper program is run inside the appliance and provides additional "
25641 "tests."
25642 msgstr ""
25643
25644 # type: =item
25645 #: ../test-tool/libguestfs-test-tool.pod:97
25646 msgid "/usr/bin/mkisofs"
25647 msgstr ""
25648
25649 # type: textblock
25650 #: ../test-tool/libguestfs-test-tool.pod:99
25651 msgid ""
25652 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25653 "which is used as part of the tests."
25654 msgstr ""
25655
25656 # type: textblock
25657 #: ../test-tool/libguestfs-test-tool.pod:106
25658 msgid ""
25659 "For the full list of environment variables which may affect libguestfs, "
25660 "please see the L<guestfs(3)> manual page."
25661 msgstr ""
25662
25663 # type: textblock
25664 #: ../test-tool/libguestfs-test-tool.pod:111
25665 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25666 msgstr ""
25667
25668 # type: textblock
25669 #: ../test-tool/libguestfs-test-tool.pod:121
25670 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25671 msgstr ""
25672
25673 # type: textblock
25674 #: ../fuse/guestmount.pod:5
25675 msgid ""
25676 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25677 msgstr ""
25678
25679 # type: verbatim
25680 #: ../fuse/guestmount.pod:9
25681 #, no-wrap
25682 msgid ""
25683 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25684 "\n"
25685 msgstr ""
25686
25687 # type: verbatim
25688 #: ../fuse/guestmount.pod:11
25689 #, no-wrap
25690 msgid ""
25691 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25692 "\n"
25693 msgstr ""
25694
25695 # type: verbatim
25696 #: ../fuse/guestmount.pod:13
25697 #, no-wrap
25698 msgid ""
25699 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25700 "\n"
25701 msgstr ""
25702
25703 # type: textblock
25704 #: ../fuse/guestmount.pod:17
25705 msgid ""
25706 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25707 "machines.  If you do this, you risk disk corruption in the VM."
25708 msgstr ""
25709
25710 # type: textblock
25711 #: ../fuse/guestmount.pod:22
25712 msgid ""
25713 "The guestmount program can be used to mount virtual machine filesystems and "
25714 "other disk images on the host.  It uses libguestfs for access to the guest "
25715 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25716 "a mountable device."
25717 msgstr ""
25718
25719 # type: textblock
25720 #: ../fuse/guestmount.pod:27
25721 msgid ""
25722 "Along with other options, you have to give at least one device (I<-a> "
25723 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25724 "option) or use the I<-i> inspection option.  How this works is better "
25725 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25726 "below."
25727 msgstr ""
25728
25729 # type: textblock
25730 #: ../fuse/guestmount.pod:33
25731 msgid ""
25732 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25733 "by you, and the filesystem will not be visible to any other users unless you "
25734 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25735 "the filesystem, use the C<fusermount -u> command."
25736 msgstr ""
25737
25738 # type: textblock
25739 #: ../fuse/guestmount.pod:41
25740 msgid ""
25741 "For a typical Windows guest which has its main filesystem on the first "
25742 "partition:"
25743 msgstr ""
25744
25745 # type: verbatim
25746 #: ../fuse/guestmount.pod:44
25747 #, no-wrap
25748 msgid ""
25749 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25750 "\n"
25751 msgstr ""
25752
25753 # type: textblock
25754 #: ../fuse/guestmount.pod:46
25755 msgid ""
25756 "For a typical Linux guest which has a /boot filesystem on the first "
25757 "partition, and the root filesystem on a logical volume:"
25758 msgstr ""
25759
25760 # type: verbatim
25761 #: ../fuse/guestmount.pod:49
25762 #, no-wrap
25763 msgid ""
25764 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25765 "\n"
25766 msgstr ""
25767
25768 # type: textblock
25769 #: ../fuse/guestmount.pod:51
25770 msgid "To get libguestfs to detect guest mountpoints for you:"
25771 msgstr ""
25772
25773 # type: verbatim
25774 #: ../fuse/guestmount.pod:53
25775 #, no-wrap
25776 msgid ""
25777 " guestmount -a guest.img -i --ro /mnt\n"
25778 "\n"
25779 msgstr ""
25780
25781 # type: textblock
25782 #: ../fuse/guestmount.pod:55
25783 msgid "For a libvirt guest called \"Guest\" you could do:"
25784 msgstr ""
25785
25786 # type: verbatim
25787 #: ../fuse/guestmount.pod:57
25788 #, no-wrap
25789 msgid ""
25790 " guestmount -d Guest -i --ro /mnt\n"
25791 "\n"
25792 msgstr ""
25793
25794 # type: textblock
25795 #: ../fuse/guestmount.pod:59
25796 msgid ""
25797 "If you don't know what filesystems are contained in a guest or disk image, "
25798 "use L<virt-filesystems(1)> first:"
25799 msgstr ""
25800
25801 # type: verbatim
25802 #: ../fuse/guestmount.pod:62
25803 #, no-wrap
25804 msgid ""
25805 " virt-filesystems MyGuest\n"
25806 "\n"
25807 msgstr ""
25808
25809 # type: textblock
25810 #: ../fuse/guestmount.pod:64
25811 msgid ""
25812 "If you want to trace the libguestfs calls but without excessive debugging "
25813 "information, we recommend:"
25814 msgstr ""
25815
25816 # type: verbatim
25817 #: ../fuse/guestmount.pod:67
25818 #, no-wrap
25819 msgid ""
25820 " guestmount [...] --trace /mnt\n"
25821 "\n"
25822 msgstr ""
25823
25824 # type: textblock
25825 #: ../fuse/guestmount.pod:69
25826 msgid "If you want to debug the program, we recommend:"
25827 msgstr ""
25828
25829 # type: verbatim
25830 #: ../fuse/guestmount.pod:71
25831 #, no-wrap
25832 msgid ""
25833 " guestmount [...] --trace --verbose /mnt\n"
25834 "\n"
25835 msgstr ""
25836
25837 # type: textblock
25838 #: ../fuse/guestmount.pod:79
25839 msgid "Add a block device or virtual machine image."
25840 msgstr ""
25841
25842 # type: =item
25843 #: ../fuse/guestmount.pod:96
25844 msgid "B<--dir-cache-timeout N>"
25845 msgstr ""
25846
25847 # type: textblock
25848 #: ../fuse/guestmount.pod:98
25849 msgid ""
25850 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25851 "seconds.  The readdir cache [actually, there are several semi-independent "
25852 "caches] is populated after a readdir(2) call with the stat and extended "
25853 "attributes of the files in the directory, in anticipation that they will be "
25854 "requested soon after."
25855 msgstr ""
25856
25857 # type: textblock
25858 #: ../fuse/guestmount.pod:104
25859 msgid ""
25860 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25861 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25862 "requests, only cache existing ones."
25863 msgstr ""
25864
25865 # type: textblock
25866 #: ../fuse/guestmount.pod:122
25867 msgid ""
25868 "If you have untrusted raw-format guest disk images, you should use this "
25869 "option to specify the disk format.  This avoids a possible security problem "
25870 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25871 "guestfs_add_drive_opts>."
25872 msgstr ""
25873
25874 # type: =item
25875 #: ../fuse/guestmount.pod:127
25876 msgid "B<--fuse-help>"
25877 msgstr ""
25878
25879 # type: textblock
25880 #: ../fuse/guestmount.pod:129
25881 msgid "Display help on special FUSE options (see I<-o> below)."
25882 msgstr ""
25883
25884 # type: textblock
25885 #: ../fuse/guestmount.pod:133
25886 msgid "Display brief help and exit."
25887 msgstr ""
25888
25889 # type: =item
25890 #: ../fuse/guestmount.pod:146
25891 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25892 msgstr ""
25893
25894 # type: textblock
25895 #: ../fuse/guestmount.pod:148
25896 msgid ""
25897 "Mount the named partition or logical volume on the given mountpoint B<in the "
25898 "guest> (this has nothing to do with mountpoints in the host)."
25899 msgstr ""
25900
25901 # type: textblock
25902 #: ../fuse/guestmount.pod:151
25903 msgid ""
25904 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25905 "something on C</>."
25906 msgstr ""
25907
25908 # type: textblock
25909 #: ../fuse/guestmount.pod:156
25910 msgid ""
25911 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25912 "unmounted.  If you specify this option, then we don't attempt to sync the "
25913 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25914 msgstr ""
25915
25916 # type: =item
25917 #: ../fuse/guestmount.pod:161
25918 msgid "B<-o option> | B<--option option>"
25919 msgstr ""
25920
25921 # type: textblock
25922 #: ../fuse/guestmount.pod:163
25923 msgid "Pass extra options to FUSE."
25924 msgstr ""
25925
25926 # type: textblock
25927 #: ../fuse/guestmount.pod:165
25928 msgid ""
25929 "To get a list of all the extra options supported by FUSE, use the command "
25930 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25931 "of them are a good idea."
25932 msgstr ""
25933
25934 # type: verbatim
25935 #: ../fuse/guestmount.pod:169
25936 #, no-wrap
25937 msgid ""
25938 " guestmount --fuse-help\n"
25939 "\n"
25940 msgstr ""
25941
25942 # type: textblock
25943 #: ../fuse/guestmount.pod:171
25944 msgid "Some potentially useful FUSE options:"
25945 msgstr ""
25946
25947 # type: =item
25948 #: ../fuse/guestmount.pod:175
25949 msgid "B<-o allow_other>"
25950 msgstr ""
25951
25952 # type: textblock
25953 #: ../fuse/guestmount.pod:177
25954 msgid "Allow other users to see the filesystem."
25955 msgstr ""
25956
25957 # type: =item
25958 #: ../fuse/guestmount.pod:179
25959 msgid "B<-o attr_timeout=N>"
25960 msgstr ""
25961
25962 # type: textblock
25963 #: ../fuse/guestmount.pod:181
25964 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25965 msgstr ""
25966
25967 # type: =item
25968 #: ../fuse/guestmount.pod:183
25969 msgid "B<-o kernel_cache>"
25970 msgstr ""
25971
25972 # type: textblock
25973 #: ../fuse/guestmount.pod:185
25974 msgid ""
25975 "Allow the kernel to cache files (reduces the number of reads that have to go "
25976 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25977 "afford the extra memory usage."
25978 msgstr ""
25979
25980 # type: =item
25981 #: ../fuse/guestmount.pod:189
25982 msgid "B<-o uid=N> B<-o gid=N>"
25983 msgstr ""
25984
25985 # type: textblock
25986 #: ../fuse/guestmount.pod:191
25987 msgid ""
25988 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25989 "the chosen values."
25990 msgstr ""
25991
25992 # type: textblock
25993 #: ../fuse/guestmount.pod:198
25994 msgid ""
25995 "Add devices and mount everything read-only.  Also disallow writes and make "
25996 "the disk appear read-only to FUSE."
25997 msgstr ""
25998
25999 # type: textblock
26000 #: ../fuse/guestmount.pod:201
26001 msgid ""
26002 "This is highly recommended if you are not going to edit the guest disk.  If "
26003 "the guest is running and this option is I<not> supplied, then there is a "
26004 "strong risk of disk corruption in the guest.  We try to prevent this from "
26005 "happening, but it is not always possible."
26006 msgstr ""
26007
26008 # type: textblock
26009 #: ../fuse/guestmount.pod:206
26010 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
26011 msgstr ""
26012
26013 # type: textblock
26014 #: ../fuse/guestmount.pod:210
26015 msgid "Enable SELinux support for the guest."
26016 msgstr ""
26017
26018 # type: textblock
26019 #: ../fuse/guestmount.pod:214
26020 msgid "Enable verbose messages from underlying libguestfs."
26021 msgstr ""
26022
26023 # type: textblock
26024 #: ../fuse/guestmount.pod:218
26025 msgid "Display the program version and exit."
26026 msgstr ""
26027
26028 # type: textblock
26029 #: ../fuse/guestmount.pod:222
26030 msgid ""
26031 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26032 "FOR READ AND WRITE>."
26033 msgstr ""
26034
26035 # type: =item
26036 #: ../fuse/guestmount.pod:225
26037 msgid "B<-x> | B<--trace>"
26038 msgstr ""
26039
26040 # type: textblock
26041 #: ../fuse/guestmount.pod:227
26042 msgid "Trace libguestfs calls."
26043 msgstr ""
26044
26045 # type: textblock
26046 #: ../fuse/guestmount.pod:229
26047 msgid "This also stops the daemon from forking into the background."
26048 msgstr ""
26049
26050 # type: textblock
26051 #: ../fuse/guestmount.pod:235
26052 msgid ""
26053 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26054 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26055 "net/>."
26056 msgstr ""
26057
26058 # type: textblock
26059 #: ../tools/virt-edit.pl:34
26060 msgid "virt-edit - Edit a file in a virtual machine"
26061 msgstr ""
26062
26063 # type: verbatim
26064 #: ../tools/virt-edit.pl:38
26065 #, no-wrap
26066 msgid ""
26067 " virt-edit [--options] domname file\n"
26068 "\n"
26069 msgstr ""
26070
26071 # type: verbatim
26072 #: ../tools/virt-edit.pl:40
26073 #, no-wrap
26074 msgid ""
26075 " virt-edit [--options] disk.img [disk.img ...] file\n"
26076 "\n"
26077 msgstr ""
26078
26079 # type: verbatim
26080 #: ../tools/virt-edit.pl:42
26081 #, no-wrap
26082 msgid ""
26083 " virt-edit [domname|disk.img] file -e 'expr'\n"
26084 "\n"
26085 msgstr ""
26086
26087 # type: textblock
26088 #: ../tools/virt-edit.pl:46
26089 msgid ""
26090 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26091 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26092 "doing this, but doesn't catch all cases."
26093 msgstr ""
26094
26095 # type: textblock
26096 #: ../tools/virt-edit.pl:52
26097 msgid ""
26098 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26099 "the named virtual machine (or disk image)."
26100 msgstr ""
26101
26102 # type: textblock
26103 #: ../tools/virt-edit.pl:55
26104 msgid ""
26105 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26106 "you should look at the L<guestfish(1)> tool."
26107 msgstr ""
26108
26109 # type: textblock
26110 #: ../tools/virt-edit.pl:60
26111 msgid "Edit the named files interactively:"
26112 msgstr ""
26113
26114 # type: verbatim
26115 #: ../tools/virt-edit.pl:62
26116 #, no-wrap
26117 msgid ""
26118 " virt-edit mydomain /boot/grub/grub.conf\n"
26119 "\n"
26120 msgstr ""
26121
26122 # type: verbatim
26123 #: ../tools/virt-edit.pl:64
26124 #, no-wrap
26125 msgid ""
26126 " virt-edit mydomain /etc/passwd\n"
26127 "\n"
26128 msgstr ""
26129
26130 # type: textblock
26131 #: ../tools/virt-edit.pl:66
26132 msgid ""
26133 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26134 "below).  To change the init default level to 5:"
26135 msgstr ""
26136
26137 # type: verbatim
26138 #: ../tools/virt-edit.pl:70
26139 #, no-wrap
26140 msgid ""
26141 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26142 "\n"
26143 msgstr ""
26144
26145 # type: textblock
26146 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181
26147 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108
26148 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
26149 msgid "Display brief help."
26150 msgstr ""
26151
26152 # type: =item
26153 #: ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187
26154 #: ../tools/virt-resize.pl:270 ../tools/virt-list-filesystems.pl:69
26155 #: ../tools/virt-tar.pl:114 ../tools/virt-make-fs.pl:169
26156 #: ../tools/virt-list-partitions.pl:70
26157 msgid "B<--version>"
26158 msgstr ""
26159
26160 # type: textblock
26161 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189
26162 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
26163 #: ../tools/virt-tar.pl:116 ../tools/virt-make-fs.pl:171
26164 #: ../tools/virt-list-partitions.pl:72
26165 msgid "Display version number and exit."
26166 msgstr ""
26167
26168 # type: =item
26169 #: ../tools/virt-edit.pl:96
26170 msgid "B<--backup extension> | B<-b extension>"
26171 msgstr ""
26172
26173 # type: textblock
26174 #: ../tools/virt-edit.pl:98
26175 msgid ""
26176 "Create a backup of the original file I<in the guest disk image>.  The backup "
26177 "has the original filename with C<extension> added."
26178 msgstr ""
26179
26180 # type: textblock
26181 #: ../tools/virt-edit.pl:101
26182 msgid ""
26183 "Usually the first character of C<extension> would be a dot C<.> so you would "
26184 "write:"
26185 msgstr ""
26186
26187 # type: verbatim
26188 #: ../tools/virt-edit.pl:104
26189 #, no-wrap
26190 msgid ""
26191 " virt-edit -b .orig [etc]\n"
26192 "\n"
26193 msgstr ""
26194
26195 # type: textblock
26196 #: ../tools/virt-edit.pl:106
26197 msgid "By default, no backup file is made."
26198 msgstr ""
26199
26200 # type: =item
26201 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203
26202 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122
26203 #: ../tools/virt-list-partitions.pl:78
26204 msgid "B<--connect URI> | B<-c URI>"
26205 msgstr ""
26206
26207 # type: textblock
26208 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205
26209 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124
26210 #: ../tools/virt-list-partitions.pl:80
26211 msgid ""
26212 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26213 "to the default libvirt hypervisor."
26214 msgstr ""
26215
26216 # type: textblock
26217 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26218 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127
26219 #: ../tools/virt-list-partitions.pl:83
26220 msgid ""
26221 "If you specify guest block devices directly, then libvirt is not used at all."
26222 msgstr ""
26223
26224 # type: =item
26225 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215
26226 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
26227 #: ../tools/virt-tar.pl:134 ../tools/virt-list-partitions.pl:90
26228 msgid "B<--format> raw"
26229 msgstr ""
26230
26231 # type: textblock
26232 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217
26233 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136
26234 #: ../tools/virt-list-partitions.pl:92
26235 msgid ""
26236 "Specify the format of disk images given on the command line.  If this is "
26237 "omitted then the format is autodetected from the content of the disk image."
26238 msgstr ""
26239
26240 # type: textblock
26241 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221
26242 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140
26243 #: ../tools/virt-list-partitions.pl:96
26244 msgid ""
26245 "If disk images are requested from libvirt, then this program asks libvirt "
26246 "for this information.  In this case, the value of the format parameter is "
26247 "ignored."
26248 msgstr ""
26249
26250 # type: textblock
26251 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225
26252 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
26253 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144
26254 #: ../tools/virt-list-partitions.pl:100
26255 msgid ""
26256 "If working with untrusted raw-format guest disk images, you should ensure "
26257 "the format is always specified."
26258 msgstr ""
26259
26260 # type: =item
26261 #: ../tools/virt-edit.pl:141
26262 msgid "B<--expr EXPR> | B<-e EXPR>"
26263 msgstr ""
26264
26265 # type: textblock
26266 #: ../tools/virt-edit.pl:143
26267 msgid ""
26268 "Instead of launching the external editor, non-interactively apply the Perl "
26269 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26270 "EDITING> below."
26271 msgstr ""
26272
26273 # type: textblock
26274 #: ../tools/virt-edit.pl:147
26275 msgid ""
26276 "Be careful to properly quote the expression to prevent it from being altered "
26277 "by the shell."
26278 msgstr ""
26279
26280 # type: =head1
26281 #: ../tools/virt-edit.pl:268
26282 msgid "NON-INTERACTIVE EDITING"
26283 msgstr ""
26284
26285 # type: textblock
26286 #: ../tools/virt-edit.pl:270
26287 msgid ""
26288 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26289 "administrator can interactively edit the file."
26290 msgstr ""
26291
26292 # type: textblock
26293 #: ../tools/virt-edit.pl:273
26294 msgid ""
26295 "There are two ways also to use C<virt-edit> from scripts in order to make "
26296 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26297 "like this, it's less error-prone to write scripts directly using the "
26298 "libguestfs API and Augeas for configuration file editing.)"
26299 msgstr ""
26300
26301 # type: textblock
26302 #: ../tools/virt-edit.pl:279
26303 msgid ""
26304 "The first method is to temporarily set C<$EDITOR> to any script or program "
26305 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26306 "update C<tmpfile> in place however it likes."
26307 msgstr ""
26308
26309 # type: textblock
26310 #: ../tools/virt-edit.pl:283
26311 msgid ""
26312 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26313 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26314 "instances of C<foo> with C<bar> in a file:"
26315 msgstr ""
26316
26317 # type: verbatim
26318 #: ../tools/virt-edit.pl:287
26319 #, no-wrap
26320 msgid ""
26321 " virt-edit domname filename -e 's/foo/bar/'\n"
26322 "\n"
26323 msgstr ""
26324
26325 # type: textblock
26326 #: ../tools/virt-edit.pl:289
26327 msgid ""
26328 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26329 "For example to delete root's password you could do:"
26330 msgstr ""
26331
26332 # type: verbatim
26333 #: ../tools/virt-edit.pl:292
26334 #, no-wrap
26335 msgid ""
26336 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26337 "\n"
26338 msgstr ""
26339
26340 # type: textblock
26341 #: ../tools/virt-edit.pl:294
26342 msgid ""
26343 "What really happens is that the snippet is evaluated as a Perl expression "
26344 "for each line of the file.  The line, including the final C<\\n>, is passed "
26345 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26346 msgstr ""
26347
26348 # type: textblock
26349 #: ../tools/virt-edit.pl:299
26350 msgid ""
26351 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26352 "C<apache> user account from the password file you can do:"
26353 msgstr ""
26354
26355 # type: verbatim
26356 #: ../tools/virt-edit.pl:302
26357 #, no-wrap
26358 msgid ""
26359 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26360 "\n"
26361 msgstr ""
26362
26363 # type: textblock
26364 #: ../tools/virt-edit.pl:304
26365 msgid ""
26366 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26367 "the end of the file is rather difficult this way since there is no concept "
26368 "of \"last line of the file\" - your expression just doesn't get called "
26369 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26370 "want to do this."
26371 msgstr ""
26372
26373 # type: textblock
26374 #: ../tools/virt-edit.pl:310
26375 msgid ""
26376 "The variable C<$lineno> contains the current line number.  As is "
26377 "traditional, the first line in the file is number C<1>."
26378 msgstr ""
26379
26380 # type: textblock
26381 #: ../tools/virt-edit.pl:313
26382 msgid ""
26383 "The return value from the expression is ignored, but the expression may call "
26384 "C<die> in order to abort the whole program, leaving the original file "
26385 "untouched."
26386 msgstr ""
26387
26388 # type: textblock
26389 #: ../tools/virt-edit.pl:317
26390 msgid ""
26391 "Remember when matching the end of a line that C<$_> may contain the final C<"
26392 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26393 "newline then neither of these.  Thus to match or substitute some text at the "
26394 "end of a line, use this regular expression:"
26395 msgstr ""
26396
26397 # type: verbatim
26398 #: ../tools/virt-edit.pl:322
26399 #, no-wrap
26400 msgid ""
26401 " /some text(\\r?\\n)?$/\n"
26402 "\n"
26403 msgstr ""
26404
26405 # type: textblock
26406 #: ../tools/virt-edit.pl:324
26407 msgid ""
26408 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26409 "$_> itself (since that would remove all newlines from the file):"
26410 msgstr ""
26411
26412 # type: verbatim
26413 #: ../tools/virt-edit.pl:328
26414 #, no-wrap
26415 msgid ""
26416 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26417 "\n"
26418 msgstr ""
26419
26420 # type: =item
26421 #: ../tools/virt-edit.pl:334
26422 msgid "C<EDITOR>"
26423 msgstr ""
26424
26425 # type: textblock
26426 #: ../tools/virt-edit.pl:336
26427 msgid ""
26428 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26429 "\"emacs -nw\">"
26430 msgstr ""
26431
26432 # type: textblock
26433 #: ../tools/virt-edit.pl:339
26434 msgid "If not set, C<vi> is used."
26435 msgstr ""
26436
26437 # type: =head2
26438 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141
26439 #: ../tools/virt-win-reg.pl:477 ../tools/virt-resize.pl:1476
26440 #: ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:274
26441 #: ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:250
26442 msgid "SHELL QUOTING"
26443 msgstr ""
26444
26445 # type: textblock
26446 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479
26447 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184
26448 #: ../tools/virt-tar.pl:276 ../tools/virt-make-fs.pl:529
26449 #: ../tools/virt-list-partitions.pl:252
26450 msgid ""
26451 "Libvirt guest names can contain arbitrary characters, some of which have "
26452 "meaning to the shell such as C<#> and space.  You may need to quote or "
26453 "escape these characters on the command line.  See the shell manual page L<sh"
26454 "(1)> for details."
26455 msgstr ""
26456
26457 # type: textblock
26458 #: ../tools/virt-edit.pl:352
26459 msgid ""
26460 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26461 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26462 "L<perlre(1)>."
26463 msgstr ""
26464
26465 # type: =head1
26466 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26467 #: ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202
26468 #: ../tools/virt-tar.pl:292 ../tools/virt-make-fs.pl:559
26469 #: ../tools/virt-list-partitions.pl:269
26470 msgid "AUTHOR"
26471 msgstr ""
26472
26473 # type: textblock
26474 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512
26475 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204
26476 #: ../tools/virt-tar.pl:294 ../tools/virt-make-fs.pl:561
26477 #: ../tools/virt-list-partitions.pl:271
26478 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26479 msgstr ""
26480
26481 # type: textblock
26482 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
26483 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26484 msgstr ""
26485
26486 # type: textblock
26487 #: ../tools/virt-win-reg.pl:37
26488 msgid ""
26489 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26490 msgstr ""
26491
26492 # type: verbatim
26493 #: ../tools/virt-win-reg.pl:41
26494 #, no-wrap
26495 msgid ""
26496 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26497 "\n"
26498 msgstr ""
26499
26500 # type: verbatim
26501 #: ../tools/virt-win-reg.pl:43
26502 #, no-wrap
26503 msgid ""
26504 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26505 "\n"
26506 msgstr ""
26507
26508 # type: verbatim
26509 #: ../tools/virt-win-reg.pl:45
26510 #, no-wrap
26511 msgid ""
26512 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26513 "\n"
26514 msgstr ""
26515
26516 # type: verbatim
26517 #: ../tools/virt-win-reg.pl:47
26518 #, no-wrap
26519 msgid ""
26520 " virt-win-reg --merge domname [input.reg ...]\n"
26521 "\n"
26522 msgstr ""
26523
26524 # type: verbatim
26525 #: ../tools/virt-win-reg.pl:49
26526 #, no-wrap
26527 msgid ""
26528 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26529 "\n"
26530 msgstr ""
26531
26532 # type: textblock
26533 #: ../tools/virt-win-reg.pl:53
26534 msgid ""
26535 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26536 "virtual machines.  If you do this, you I<will> get irreversible disk "
26537 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26538 "but doesn't catch all cases."
26539 msgstr ""
26540
26541 # type: textblock
26542 #: ../tools/virt-win-reg.pl:58
26543 msgid ""
26544 "Modifying the Windows Registry is an inherently risky operation.  The format "
26545 "is deliberately obscure and undocumented, and Registry changes can leave the "
26546 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26547 "you have a reliable backup first."
26548 msgstr ""
26549
26550 # type: textblock
26551 #: ../tools/virt-win-reg.pl:65
26552 msgid ""
26553 "This program can export and merge Windows Registry entries from a Windows "
26554 "guest."
26555 msgstr ""
26556
26557 # type: textblock
26558 #: ../tools/virt-win-reg.pl:68
26559 msgid ""
26560 "The first parameter is the libvirt guest name or the raw disk image of a "
26561 "Windows guest."
26562 msgstr ""
26563
26564 # type: textblock
26565 #: ../tools/virt-win-reg.pl:71
26566 msgid ""
26567 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26568 "exported (recursively).  For example:"
26569 msgstr ""
26570
26571 # type: verbatim
26572 #: ../tools/virt-win-reg.pl:74
26573 #, no-wrap
26574 msgid ""
26575 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26576 "\n"
26577 msgstr ""
26578
26579 # type: textblock
26580 #: ../tools/virt-win-reg.pl:76
26581 msgid ""
26582 "You can also display single values from within registry keys, for example:"
26583 msgstr ""
26584
26585 # type: verbatim
26586 #: ../tools/virt-win-reg.pl:79
26587 #, no-wrap
26588 msgid ""
26589 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26590 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26591 " Windows 7 Enterprise\n"
26592 "\n"
26593 msgstr ""
26594
26595 # type: textblock
26596 #: ../tools/virt-win-reg.pl:83
26597 msgid ""
26598 "With C<--merge>, you can merge a textual regedit file into the Windows "
26599 "Registry:"
26600 msgstr ""
26601
26602 # type: verbatim
26603 #: ../tools/virt-win-reg.pl:86
26604 #, no-wrap
26605 msgid ""
26606 " $ virt-win-reg --merge Windows7 changes.reg\n"
26607 "\n"
26608 msgstr ""
26609
26610 # type: =head2
26611 #: ../tools/virt-win-reg.pl:88
26612 msgid "SUPPORTED SYSTEMS"
26613 msgstr ""
26614
26615 # type: textblock
26616 #: ../tools/virt-win-reg.pl:90
26617 msgid ""
26618 "The program currently supports Windows NT-derived guests starting with "
26619 "Windows XP through to at least Windows 7."
26620 msgstr ""
26621
26622 # type: textblock
26623 #: ../tools/virt-win-reg.pl:93
26624 msgid ""
26625 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26626 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26627 "and C<HKEY_USERS\\.DEFAULT>."
26628 msgstr ""
26629
26630 # type: textblock
26631 #: ../tools/virt-win-reg.pl:97
26632 msgid ""
26633 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26634 "C<HKEY_USERS>."
26635 msgstr ""
26636
26637 # type: textblock
26638 #: ../tools/virt-win-reg.pl:100
26639 msgid ""
26640 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26641 "time."
26642 msgstr ""
26643
26644 # type: =head2
26645 #: ../tools/virt-win-reg.pl:103
26646 msgid "NOTE"
26647 msgstr ""
26648
26649 # type: textblock
26650 #: ../tools/virt-win-reg.pl:105
26651 msgid ""
26652 "This program is only meant for simple access to the registry.  If you want "
26653 "to do complicated things with the registry, we suggest you download the "
26654 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26655 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26656 "L<hivexregedit(1)>."
26657 msgstr ""
26658
26659 # type: =head2
26660 #: ../tools/virt-win-reg.pl:111
26661 msgid "ENCODING"
26662 msgstr ""
26663
26664 # type: textblock
26665 #: ../tools/virt-win-reg.pl:113
26666 msgid ""
26667 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26668 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26669 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26670 "Windows-style line endings, you may need to reencode the whole file before "
26671 "or after processing."
26672 msgstr ""
26673
26674 # type: textblock
26675 #: ../tools/virt-win-reg.pl:119
26676 msgid ""
26677 "To reencode a file from Windows format to Linux (before processing it with "
26678 "the C<--merge> option), you would do something like this:"
26679 msgstr ""
26680
26681 # type: verbatim
26682 #: ../tools/virt-win-reg.pl:122
26683 #, no-wrap
26684 msgid ""
26685 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26686 "\n"
26687 msgstr ""
26688
26689 # type: textblock
26690 #: ../tools/virt-win-reg.pl:124
26691 msgid ""
26692 "To go in the opposite direction, after exporting and before sending the file "
26693 "to a Windows user, do something like this:"
26694 msgstr ""
26695
26696 # type: verbatim
26697 #: ../tools/virt-win-reg.pl:127
26698 #, no-wrap
26699 msgid ""
26700 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26701 "\n"
26702 msgstr ""
26703
26704 # type: textblock
26705 #: ../tools/virt-win-reg.pl:129
26706 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26707 msgstr ""
26708
26709 # type: textblock
26710 #: ../tools/virt-win-reg.pl:131
26711 msgid ""
26712 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26713 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26714 "style (CRLF) line endings, like this:"
26715 msgstr ""
26716
26717 # type: verbatim
26718 #: ../tools/virt-win-reg.pl:135
26719 #, no-wrap
26720 msgid ""
26721 " $ file software.reg\n"
26722 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26723 " with CRLF line terminators\n"
26724 "\n"
26725 msgstr ""
26726
26727 # type: textblock
26728 #: ../tools/virt-win-reg.pl:139
26729 msgid "This file would need conversion before you could C<--merge> it."
26730 msgstr ""
26731
26732 # type: textblock
26733 #: ../tools/virt-win-reg.pl:143
26734 msgid ""
26735 "Be careful when passing parameters containing C<\\> (backslash) in the "
26736 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26737 "(but not both) to protect them from the shell."
26738 msgstr ""
26739
26740 # type: textblock
26741 #: ../tools/virt-win-reg.pl:147
26742 msgid "Paths and value names are case-insensitive."
26743 msgstr ""
26744
26745 # type: =head2
26746 #: ../tools/virt-win-reg.pl:149
26747 msgid "CurrentControlSet etc."
26748 msgstr ""
26749
26750 # type: textblock
26751 #: ../tools/virt-win-reg.pl:151
26752 msgid ""
26753 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26754 "Registry at the level of the hive file, and therefore you cannot modify "
26755 "these."
26756 msgstr ""
26757
26758 # type: textblock
26759 #: ../tools/virt-win-reg.pl:155
26760 msgid ""
26761 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26762 "circumstances it might refer to another control set.  The way to find out is "
26763 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26764 msgstr ""
26765
26766 # type: verbatim
26767 #: ../tools/virt-win-reg.pl:159
26768 #, no-wrap
26769 msgid ""
26770 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26771 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26772 " \"Current\"=dword:00000001\n"
26773 " \"Default\"=dword:00000001\n"
26774 " \"Failed\"=dword:00000000\n"
26775 " \"LastKnownGood\"=dword:00000002\n"
26776 "\n"
26777 msgstr ""
26778
26779 # type: textblock
26780 #: ../tools/virt-win-reg.pl:166
26781 msgid "\"Current\" is the one which Windows will choose when it boots."
26782 msgstr ""
26783
26784 # type: textblock
26785 #: ../tools/virt-win-reg.pl:168
26786 msgid ""
26787 "Similarly, other C<Current...> keys in the path may need to be replaced."
26788 msgstr ""
26789
26790 # type: =item
26791 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26792 msgid "B<--debug>"
26793 msgstr ""
26794
26795 # type: textblock
26796 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:498
26797 msgid "Enable debugging messages."
26798 msgstr ""
26799
26800 # type: =item
26801 #: ../tools/virt-win-reg.pl:232
26802 msgid "B<--merge>"
26803 msgstr ""
26804
26805 # type: textblock
26806 #: ../tools/virt-win-reg.pl:234
26807 msgid ""
26808 "In merge mode, this merges a textual regedit file into the Windows Registry "
26809 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26810 "displays or exports Registry entries instead."
26811 msgstr ""
26812
26813 # type: textblock
26814 #: ../tools/virt-win-reg.pl:238
26815 msgid ""
26816 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26817 "result in disk corruption.  However exporting (without this flag)  is always "
26818 "safe."
26819 msgstr ""
26820
26821 # type: =item
26822 #: ../tools/virt-win-reg.pl:246
26823 msgid "B<--encoding> UTF-16LE|ASCII"
26824 msgstr ""
26825
26826 # type: textblock
26827 #: ../tools/virt-win-reg.pl:248
26828 msgid ""
26829 "When merging (only), you may need to specify the encoding for strings to be "
26830 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26831 "(3)/ENCODING STRINGS>."
26832 msgstr ""
26833
26834 # type: textblock
26835 #: ../tools/virt-win-reg.pl:252
26836 msgid ""
26837 "The default is to use UTF-16LE, which should work with recent versions of "
26838 "Windows."
26839 msgstr ""
26840
26841 # type: textblock
26842 #: ../tools/virt-win-reg.pl:486
26843 msgid ""
26844 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26845 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26846 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26847 msgstr ""
26848
26849 # type: textblock
26850 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26851 msgid ""
26852 "When reporting bugs, please enable debugging and capture the I<complete> "
26853 "output:"
26854 msgstr ""
26855
26856 # type: verbatim
26857 #: ../tools/virt-win-reg.pl:504
26858 #, no-wrap
26859 msgid ""
26860 " export LIBGUESTFS_DEBUG=1\n"
26861 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26862 "\n"
26863 msgstr ""
26864
26865 # type: textblock
26866 #: ../tools/virt-win-reg.pl:507
26867 msgid ""
26868 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26869 "redhat.com/>"
26870 msgstr ""
26871
26872 # type: textblock
26873 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1510
26874 #: ../tools/virt-make-fs.pl:565
26875 msgid "Copyright (C) 2010 Red Hat Inc."
26876 msgstr ""
26877
26878 # type: textblock
26879 #: ../tools/virt-resize.pl:42
26880 msgid "virt-resize - Resize a virtual machine disk"
26881 msgstr ""
26882
26883 # type: verbatim
26884 #: ../tools/virt-resize.pl:46
26885 #, no-wrap
26886 msgid ""
26887 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26888 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26889 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26890 "\n"
26891 msgstr ""
26892
26893 # type: textblock
26894 #: ../tools/virt-resize.pl:52
26895 msgid ""
26896 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26897 "larger or smaller overall, and resizing or deleting any partitions contained "
26898 "within."
26899 msgstr ""
26900
26901 # type: textblock
26902 #: ../tools/virt-resize.pl:56
26903 msgid ""
26904 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26905 "not> be used on live virtual machines - for consistent results, shut the "
26906 "virtual machine down before resizing it."
26907 msgstr ""
26908
26909 # type: textblock
26910 #: ../tools/virt-resize.pl:60
26911 msgid ""
26912 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
26913 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
26914 msgstr ""
26915
26916 # type: textblock
26917 #: ../tools/virt-resize.pl:66
26918 msgid ""
26919 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26920 "fill the extra 5GB of space."
26921 msgstr ""
26922
26923 # type: verbatim
26924 #: ../tools/virt-resize.pl:69
26925 #, no-wrap
26926 msgid ""
26927 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26928 " virt-filesystems --long --h --all -a olddisk\n"
26929 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26930 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26931 "\n"
26932 msgstr ""
26933
26934 # type: textblock
26935 #: ../tools/virt-resize.pl:74
26936 msgid ""
26937 "As above, but make the /boot partition 200MB bigger, while giving the "
26938 "remaining space to /dev/sda2:"
26939 msgstr ""
26940
26941 # type: verbatim
26942 #: ../tools/virt-resize.pl:77
26943 #, no-wrap
26944 msgid ""
26945 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26946 "\n"
26947 msgstr ""
26948
26949 # type: textblock
26950 #: ../tools/virt-resize.pl:79
26951 msgid "As above, but the output format will be uncompressed qcow2:"
26952 msgstr ""
26953
26954 # type: verbatim
26955 #: ../tools/virt-resize.pl:81
26956 #, no-wrap
26957 msgid ""
26958 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26959 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26960 "\n"
26961 msgstr ""
26962
26963 # type: =head1
26964 #: ../tools/virt-resize.pl:84
26965 msgid "DETAILED USAGE"
26966 msgstr ""
26967
26968 # type: =head2
26969 #: ../tools/virt-resize.pl:86
26970 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26971 msgstr ""
26972
26973 # type: =item
26974 #: ../tools/virt-resize.pl:90
26975 msgid "1. Shut down the virtual machine"
26976 msgstr ""
26977
26978 # type: =item
26979 #: ../tools/virt-resize.pl:92
26980 msgid "2. Locate input disk image"
26981 msgstr ""
26982
26983 # type: textblock
26984 #: ../tools/virt-resize.pl:94
26985 msgid ""
26986 "Locate the input disk image (ie. the file or device on the host containing "
26987 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26988 "dumpxml> like this to find the disk image name:"
26989 msgstr ""
26990
26991 # type: verbatim
26992 #: ../tools/virt-resize.pl:98
26993 #, no-wrap
26994 msgid ""
26995 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26996 " Found 1 nodes:\n"
26997 " -- NODE --\n"
26998 " <source dev=\"/dev/vg/lv_guest\" />\n"
26999 "\n"
27000 msgstr ""
27001
27002 # type: =item
27003 #: ../tools/virt-resize.pl:103
27004 msgid "3. Look at current sizing"
27005 msgstr ""
27006
27007 # type: textblock
27008 #: ../tools/virt-resize.pl:105
27009 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
27010 msgstr ""
27011
27012 # type: verbatim
27013 #: ../tools/virt-resize.pl:108
27014 #, no-wrap
27015 msgid ""
27016 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
27017 " Name       Type       Size  Parent\n"
27018 " /dev/sda1  partition  101M  /dev/sda\n"
27019 " /dev/sda2  partition  7.9G  /dev/sda\n"
27020 " /dev/sda   device     8.0G  -\n"
27021 "\n"
27022 msgstr ""
27023
27024 # type: textblock
27025 #: ../tools/virt-resize.pl:114
27026 msgid ""
27027 "(This example is a virtual machine with an 8 GB disk which we would like to "
27028 "expand up to 10 GB)."
27029 msgstr ""
27030
27031 # type: =item
27032 #: ../tools/virt-resize.pl:117
27033 msgid "4. Create output disk"
27034 msgstr ""
27035
27036 # type: textblock
27037 #: ../tools/virt-resize.pl:119
27038 msgid ""
27039 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27040 "to store the resized output disk."
27041 msgstr ""
27042
27043 # type: textblock
27044 #: ../tools/virt-resize.pl:122
27045 msgid ""
27046 "To store the resized disk image in a file, create a file of a suitable size:"
27047 msgstr ""
27048
27049 # type: verbatim
27050 #: ../tools/virt-resize.pl:125
27051 #, no-wrap
27052 msgid ""
27053 " # rm -f outdisk\n"
27054 " # truncate -s 10G outdisk\n"
27055 "\n"
27056 msgstr ""
27057
27058 # type: textblock
27059 #: ../tools/virt-resize.pl:128
27060 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27061 msgstr ""
27062
27063 # type: verbatim
27064 #: ../tools/virt-resize.pl:130
27065 #, no-wrap
27066 msgid ""
27067 " # lvcreate -L 10G -n lv_name vg_name\n"
27068 "\n"
27069 msgstr ""
27070
27071 # type: textblock
27072 #: ../tools/virt-resize.pl:132
27073 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27074 msgstr ""
27075
27076 # type: verbatim
27077 #: ../tools/virt-resize.pl:134
27078 #, no-wrap
27079 msgid ""
27080 " # virsh pool-list\n"
27081 " # virsh vol-create-as poolname newvol 10G\n"
27082 "\n"
27083 msgstr ""
27084
27085 # type: =item
27086 #: ../tools/virt-resize.pl:137
27087 msgid "5. Resize"
27088 msgstr ""
27089
27090 # type: textblock
27091 #: ../tools/virt-resize.pl:139
27092 msgid ""
27093 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27094 "file) and the output disk.  The output disk is the one created in the "
27095 "previous step."
27096 msgstr ""
27097
27098 # type: verbatim
27099 #: ../tools/virt-resize.pl:143
27100 #, no-wrap
27101 msgid ""
27102 " # virt-resize indisk outdisk\n"
27103 "\n"
27104 msgstr ""
27105
27106 # type: textblock
27107 #: ../tools/virt-resize.pl:145
27108 msgid ""
27109 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27110 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27111 "larger, then an extra, empty partition is created at the end of the disk "
27112 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27113 "error."
27114 msgstr ""
27115
27116 # type: textblock
27117 #: ../tools/virt-resize.pl:151
27118 msgid ""
27119 "More realistically you'd want to expand existing partitions in the disk "
27120 "image by passing extra options (for the full list see the L</OPTIONS> "
27121 "section below)."
27122 msgstr ""
27123
27124 # type: textblock
27125 #: ../tools/virt-resize.pl:155
27126 msgid ""
27127 "L</--expand> is the most useful option.  It expands the named partition "
27128 "within the disk to fill any extra space:"
27129 msgstr ""
27130
27131 # type: verbatim
27132 #: ../tools/virt-resize.pl:158
27133 #, no-wrap
27134 msgid ""
27135 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27136 "\n"
27137 msgstr ""
27138
27139 # type: textblock
27140 #: ../tools/virt-resize.pl:160
27141 msgid ""
27142 "(In this case, an extra partition is I<not> created at the end of the disk, "
27143 "because there will be no unused space)."
27144 msgstr ""
27145
27146 # type: textblock
27147 #: ../tools/virt-resize.pl:163
27148 msgid ""
27149 "L</--resize> is the other commonly used option.  The following would "
27150 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27151 "rest of the available space:"
27152 msgstr ""
27153
27154 # type: verbatim
27155 #: ../tools/virt-resize.pl:167
27156 #, no-wrap
27157 msgid ""
27158 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27159 "     indisk outdisk\n"
27160 "\n"
27161 msgstr ""
27162
27163 # type: textblock
27164 #: ../tools/virt-resize.pl:170
27165 msgid ""
27166 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27167 "if virt-resize knows how, it will resize the contents, the equivalent of "
27168 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27169 ">.  However virt-resize does not know how to resize some filesystems, so you "
27170 "would have to online resize them after booting the guest."
27171 msgstr ""
27172
27173 # type: textblock
27174 #: ../tools/virt-resize.pl:177
27175 msgid "Other options are covered below."
27176 msgstr ""
27177
27178 # type: =item
27179 #: ../tools/virt-resize.pl:179
27180 msgid "6. Test"
27181 msgstr ""
27182
27183 # type: textblock
27184 #: ../tools/virt-resize.pl:181
27185 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27186 msgstr ""
27187
27188 # type: textblock
27189 #: ../tools/virt-resize.pl:183
27190 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27191 msgstr ""
27192
27193 # type: verbatim
27194 #: ../tools/virt-resize.pl:185
27195 #, no-wrap
27196 msgid ""
27197 " # virsh edit guestname\n"
27198 "\n"
27199 msgstr ""
27200
27201 # type: textblock
27202 #: ../tools/virt-resize.pl:187
27203 msgid ""
27204 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27205 "html#elementsDisks>"
27206 msgstr ""
27207
27208 # type: textblock
27209 #: ../tools/virt-resize.pl:190
27210 msgid "Then start up the domain with the new, resized disk:"
27211 msgstr ""
27212
27213 # type: verbatim
27214 #: ../tools/virt-resize.pl:192
27215 #, no-wrap
27216 msgid ""
27217 " # virsh start guestname\n"
27218 "\n"
27219 msgstr ""
27220
27221 # type: textblock
27222 #: ../tools/virt-resize.pl:194
27223 msgid ""
27224 "and check that it still works.  See also the L</NOTES> section below for "
27225 "additional information."
27226 msgstr ""
27227
27228 # type: =item
27229 #: ../tools/virt-resize.pl:197
27230 msgid "7. Resize LVs etc inside the guest"
27231 msgstr ""
27232
27233 # type: textblock
27234 #: ../tools/virt-resize.pl:199
27235 msgid "(This can also be done offline using L<guestfish(1)>)"
27236 msgstr ""
27237
27238 # type: textblock
27239 #: ../tools/virt-resize.pl:201
27240 msgid ""
27241 "Once the guest has booted you should see the new space available, at least "
27242 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27243 "may need to resize LVs inside PVs, and also resize filesystem types that "
27244 "virt-resize does not know how to expand."
27245 msgstr ""
27246
27247 # type: =head2
27248 #: ../tools/virt-resize.pl:208
27249 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27250 msgstr ""
27251
27252 # type: textblock
27253 #: ../tools/virt-resize.pl:210
27254 msgid ""
27255 "Shrinking is somewhat more complex than expanding, and only an overview is "
27256 "given here."
27257 msgstr ""
27258
27259 # type: textblock
27260 #: ../tools/virt-resize.pl:213
27261 msgid ""
27262 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27263 "filesystems).  The user has to shrink content before passing the disk image "
27264 "to virt-resize, and virt-resize will check that the content has been shrunk "
27265 "properly."
27266 msgstr ""
27267
27268 # type: textblock
27269 #: ../tools/virt-resize.pl:218
27270 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27271 msgstr ""
27272
27273 # type: textblock
27274 #: ../tools/virt-resize.pl:220
27275 msgid ""
27276 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27277 "steps 3 and 4 above to allocate a new disk image."
27278 msgstr ""
27279
27280 # type: textblock
27281 #: ../tools/virt-resize.pl:223
27282 msgid ""
27283 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27284 msgstr ""
27285
27286 # type: =head2
27287 #: ../tools/virt-resize.pl:226
27288 msgid "IGNORING OR DELETING PARTITIONS"
27289 msgstr ""
27290
27291 # type: textblock
27292 #: ../tools/virt-resize.pl:228
27293 msgid ""
27294 "virt-resize also gives a convenient way to ignore or delete partitions when "
27295 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27296 "up the copy where you don't care about the existing contents of a "
27297 "partition.  Deleting a partition removes it completely, but note that it "
27298 "also renumbers any partitions after the one which is deleted, which can "
27299 "leave some guests unbootable."
27300 msgstr ""
27301
27302 # type: =head2
27303 #: ../tools/virt-resize.pl:235
27304 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27305 msgstr ""
27306
27307 # type: textblock
27308 #: ../tools/virt-resize.pl:237
27309 msgid ""
27310 "If the input disk is in qcow2 format, then you may prefer that the output is "
27311 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27312 "the fly.  The output format is simply determined by the format of the empty "
27313 "output container that you provide.  Thus to create qcow2 output, use:"
27314 msgstr ""
27315
27316 # type: verbatim
27317 #: ../tools/virt-resize.pl:243
27318 #, no-wrap
27319 msgid ""
27320 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27321 "\n"
27322 msgstr ""
27323
27324 # type: textblock
27325 #: ../tools/virt-resize.pl:245
27326 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27327 msgstr ""
27328
27329 # type: textblock
27330 #: ../tools/virt-resize.pl:247
27331 msgid "Similarly, to get non-sparse raw output use:"
27332 msgstr ""
27333
27334 # type: verbatim
27335 #: ../tools/virt-resize.pl:249
27336 #, no-wrap
27337 msgid ""
27338 " fallocate -l size outdisk\n"
27339 "\n"
27340 msgstr ""
27341
27342 # type: textblock
27343 #: ../tools/virt-resize.pl:251
27344 msgid ""
27345 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27346 "dev/zero of=outdisk bs=1M count=..>)"
27347 msgstr ""
27348
27349 # type: textblock
27350 #: ../tools/virt-resize.pl:264
27351 msgid "Display help."
27352 msgstr ""
27353
27354 # type: =item
27355 #: ../tools/virt-resize.pl:278
27356 msgid "B<--resize part=size>"
27357 msgstr ""
27358
27359 # type: textblock
27360 #: ../tools/virt-resize.pl:280
27361 msgid ""
27362 "Resize the named partition (expanding or shrinking it) so that it has the "
27363 "given size."
27364 msgstr ""
27365
27366 # type: textblock
27367 #: ../tools/virt-resize.pl:283
27368 msgid ""
27369 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27370 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27371 "Exabytes; or as a percentage of the current size; or as a relative number or "
27372 "percentage.  For example:"
27373 msgstr ""
27374
27375 # type: verbatim
27376 #: ../tools/virt-resize.pl:288
27377 #, no-wrap
27378 msgid ""
27379 " --resize /dev/sda2=10G\n"
27380 "\n"
27381 msgstr ""
27382
27383 # type: verbatim
27384 #: ../tools/virt-resize.pl:290
27385 #, no-wrap
27386 msgid ""
27387 " --resize /dev/sda4=90%\n"
27388 "\n"
27389 msgstr ""
27390
27391 # type: verbatim
27392 #: ../tools/virt-resize.pl:292
27393 #, no-wrap
27394 msgid ""
27395 " --resize /dev/sda2=+1G\n"
27396 "\n"
27397 msgstr ""
27398
27399 # type: verbatim
27400 #: ../tools/virt-resize.pl:294
27401 #, no-wrap
27402 msgid ""
27403 " --resize /dev/sda2=-200M\n"
27404 "\n"
27405 msgstr ""
27406
27407 # type: verbatim
27408 #: ../tools/virt-resize.pl:296
27409 #, no-wrap
27410 msgid ""
27411 " --resize /dev/sda1=+128K\n"
27412 "\n"
27413 msgstr ""
27414
27415 # type: verbatim
27416 #: ../tools/virt-resize.pl:298
27417 #, no-wrap
27418 msgid ""
27419 " --resize /dev/sda1=+10%\n"
27420 "\n"
27421 msgstr ""
27422
27423 # type: verbatim
27424 #: ../tools/virt-resize.pl:300
27425 #, no-wrap
27426 msgid ""
27427 " --resize /dev/sda1=-10%\n"
27428 "\n"
27429 msgstr ""
27430
27431 # type: textblock
27432 #: ../tools/virt-resize.pl:302
27433 msgid ""
27434 "You can increase the size of any partition.  Virt-resize will expand the "
27435 "direct content of the partition if it knows how (see C<--expand> below)."
27436 msgstr ""
27437
27438 # type: textblock
27439 #: ../tools/virt-resize.pl:306
27440 msgid ""
27441 "You can only I<decrease> the size of partitions that contain filesystems or "
27442 "PVs which have already been shrunk.  Virt-resize will check this has been "
27443 "done before proceeding, or else will print an error (see also C<--resize-"
27444 "force>)."
27445 msgstr ""
27446
27447 # type: textblock
27448 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
27449 #: ../tools/virt-resize.pl:420
27450 msgid "You can give this option multiple times."
27451 msgstr ""
27452
27453 # type: =item
27454 #: ../tools/virt-resize.pl:317
27455 msgid "B<--resize-force part=size>"
27456 msgstr ""
27457
27458 # type: textblock
27459 #: ../tools/virt-resize.pl:319
27460 msgid ""
27461 "This is the same as C<--resize> except that it will let you decrease the "
27462 "size of any partition.  Generally this means you will lose any data which "
27463 "was at the end of the partition you shrink, but you may not care about that "
27464 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27465 "as a swap partition)."
27466 msgstr ""
27467
27468 # type: textblock
27469 #: ../tools/virt-resize.pl:325
27470 msgid "See also the C<--ignore> option."
27471 msgstr ""
27472
27473 # type: =item
27474 #: ../tools/virt-resize.pl:331
27475 msgid "B<--expand part>"
27476 msgstr ""
27477
27478 # type: textblock
27479 #: ../tools/virt-resize.pl:333
27480 msgid ""
27481 "Expand the named partition so it uses up all extra space (space left over "
27482 "after any other resize changes that you request have been done)."
27483 msgstr ""
27484
27485 # type: textblock
27486 #: ../tools/virt-resize.pl:336
27487 msgid ""
27488 "If virt-resize knows how, it will expand the direct content of the "
27489 "partition.  For example, if the partition is an LVM PV, it will expand the "
27490 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27491 "content it doesn't know about alone."
27492 msgstr ""
27493
27494 # type: textblock
27495 #: ../tools/virt-resize.pl:341
27496 msgid "Currently virt-resize can resize:"
27497 msgstr ""
27498
27499 # type: textblock
27500 #: ../tools/virt-resize.pl:347
27501 msgid ""
27502 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27503 "partition."
27504 msgstr ""
27505
27506 # type: textblock
27507 #: ../tools/virt-resize.pl:352
27508 msgid ""
27509 "NTFS filesystems contained directly in a partition, if libguestfs was "
27510 "compiled with support for NTFS."
27511 msgstr ""
27512
27513 # type: textblock
27514 #: ../tools/virt-resize.pl:355
27515 msgid ""
27516 "The filesystem must have been shut down consistently last time it was used.  "
27517 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27518 "consistency check, so at the first boot after resizing Windows will check "
27519 "the disk."
27520 msgstr ""
27521
27522 # type: textblock
27523 #: ../tools/virt-resize.pl:362
27524 msgid ""
27525 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
27526 "inside the PV, but see the C<--LV-expand> option.  The user could also "
27527 "resize LVs as desired after boot."
27528 msgstr ""
27529
27530 # type: textblock
27531 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
27532 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27533 msgstr ""
27534
27535 # type: =item
27536 #: ../tools/virt-resize.pl:374
27537 msgid "B<--shrink part>"
27538 msgstr ""
27539
27540 # type: textblock
27541 #: ../tools/virt-resize.pl:376
27542 msgid ""
27543 "Shrink the named partition until the overall disk image fits in the "
27544 "destination.  The named partition B<must> contain a filesystem or PV which "
27545 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27546 "online tools).  Virt-resize will check this and give an error if it has not "
27547 "been done."
27548 msgstr ""
27549
27550 # type: textblock
27551 #: ../tools/virt-resize.pl:382
27552 msgid ""
27553 "The amount by which the overall disk must be shrunk (after carrying out all "
27554 "other operations requested by the user) is called the \"deficit\".  For "
27555 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27556 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27557 "would give an error unless the user specified a partition to shrink and that "
27558 "partition had more than a gigabyte of free space."
27559 msgstr ""
27560
27561 # type: =item
27562 #: ../tools/virt-resize.pl:396
27563 msgid "B<--ignore part>"
27564 msgstr ""
27565
27566 # type: textblock
27567 #: ../tools/virt-resize.pl:398
27568 msgid ""
27569 "Ignore the named partition.  Effectively this means the partition is "
27570 "allocated on the destination disk, but the content is not copied across from "
27571 "the source disk.  The content of the partition will be blank (all zero "
27572 "bytes)."
27573 msgstr ""
27574
27575 # type: =item
27576 #: ../tools/virt-resize.pl:409
27577 msgid "B<--delete part>"
27578 msgstr ""
27579
27580 # type: textblock
27581 #: ../tools/virt-resize.pl:411
27582 msgid ""
27583 "Delete the named partition.  It would be more accurate to describe this as "
27584 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27585 "the original disk image is left intact."
27586 msgstr ""
27587
27588 # type: textblock
27589 #: ../tools/virt-resize.pl:415
27590 msgid ""
27591 "Note that when you delete a partition, then anything contained in the "
27592 "partition is also deleted.  Furthermore, this causes any partitions that "
27593 "come after to be I<renumbered>, which can easily make your guest unbootable."
27594 msgstr ""
27595
27596 # type: =item
27597 #: ../tools/virt-resize.pl:426
27598 msgid "B<--LV-expand logvol>"
27599 msgstr ""
27600
27601 # type: textblock
27602 #: ../tools/virt-resize.pl:428
27603 msgid ""
27604 "This takes the logical volume and, as a final step, expands it to fill all "
27605 "the space available in its volume group.  A typical usage, assuming a Linux "
27606 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27607 "lv_root> would be:"
27608 msgstr ""
27609
27610 # type: verbatim
27611 #: ../tools/virt-resize.pl:433
27612 #, no-wrap
27613 msgid ""
27614 " virt-resize indisk outdisk \\\n"
27615 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27616 "\n"
27617 msgstr ""
27618
27619 # type: textblock
27620 #: ../tools/virt-resize.pl:436
27621 msgid ""
27622 "This would first expand the partition (and PV), and then expand the root "
27623 "device to fill the extra space in the PV."
27624 msgstr ""
27625
27626 # type: textblock
27627 #: ../tools/virt-resize.pl:439
27628 msgid ""
27629 "The contents of the LV are also resized if virt-resize knows how to do "
27630 "that.  You can stop virt-resize from trying to expand the content by using "
27631 "the option C<--no-expand-content>."
27632 msgstr ""
27633
27634 # type: textblock
27635 #: ../tools/virt-resize.pl:443
27636 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27637 msgstr ""
27638
27639 # type: textblock
27640 #: ../tools/virt-resize.pl:446
27641 msgid ""
27642 "You can give this option multiple times, I<but> it doesn't make sense to do "
27643 "this unless the logical volumes you specify are all in different volume "
27644 "groups."
27645 msgstr ""
27646
27647 # type: =item
27648 #: ../tools/virt-resize.pl:454
27649 msgid "B<--no-copy-boot-loader>"
27650 msgstr ""
27651
27652 # type: textblock
27653 #: ../tools/virt-resize.pl:456
27654 msgid ""
27655 "By default, virt-resize copies over some sectors at the start of the disk "
27656 "(up to the beginning of the first partition).  Commonly these sectors "
27657 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27658 "in order for the guest to boot correctly."
27659 msgstr ""
27660
27661 # type: textblock
27662 #: ../tools/virt-resize.pl:461
27663 msgid ""
27664 "If you specify this flag, then this initial copy is not done.  You may need "
27665 "to reinstall the boot loader in this case."
27666 msgstr ""
27667
27668 # type: =item
27669 #: ../tools/virt-resize.pl:469
27670 msgid "B<--no-extra-partition>"
27671 msgstr ""
27672
27673 # type: textblock
27674 #: ../tools/virt-resize.pl:471
27675 msgid ""
27676 "By default, virt-resize creates an extra partition if there is any extra, "
27677 "unused space after all resizing has happened.  Use this option to prevent "
27678 "the extra partition from being created.  If you do this then the extra space "
27679 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27680 "tool in the guest."
27681 msgstr ""
27682
27683 # type: textblock
27684 #: ../tools/virt-resize.pl:477
27685 msgid ""
27686 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27687 "will be created."
27688 msgstr ""
27689
27690 # type: =item
27691 #: ../tools/virt-resize.pl:484
27692 msgid "B<--no-expand-content>"
27693 msgstr ""
27694
27695 # type: textblock
27696 #: ../tools/virt-resize.pl:486
27697 msgid ""
27698 "By default, virt-resize will try to expand the direct contents of "
27699 "partitions, if it knows how (see C<--expand> option above)."
27700 msgstr ""
27701
27702 # type: textblock
27703 #: ../tools/virt-resize.pl:489
27704 msgid ""
27705 "If you give the C<--no-expand-content> option then virt-resize will not "
27706 "attempt this."
27707 msgstr ""
27708
27709 # type: =item
27710 #: ../tools/virt-resize.pl:496
27711 msgid "B<-d> | B<--debug>"
27712 msgstr ""
27713
27714 # type: =item
27715 #: ../tools/virt-resize.pl:504
27716 msgid "B<-n> | B<--dryrun>"
27717 msgstr ""
27718
27719 # type: textblock
27720 #: ../tools/virt-resize.pl:506
27721 msgid "Print a summary of what would be done, but don't do anything."
27722 msgstr ""
27723
27724 # type: =item
27725 #: ../tools/virt-resize.pl:512
27726 msgid "B<-q> | B<--quiet>"
27727 msgstr ""
27728
27729 # type: textblock
27730 #: ../tools/virt-resize.pl:514
27731 msgid "Don't print the summary."
27732 msgstr ""
27733
27734 # type: textblock
27735 #: ../tools/virt-resize.pl:522
27736 msgid ""
27737 "Specify the format of the input disk image.  If this flag is not given then "
27738 "it is auto-detected from the image itself."
27739 msgstr ""
27740
27741 # type: textblock
27742 #: ../tools/virt-resize.pl:528
27743 msgid ""
27744 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27745 "AND NON-SPARSE RAW FORMATS>."
27746 msgstr ""
27747
27748 # type: =item
27749 #: ../tools/virt-resize.pl:535
27750 msgid "B<--output-format> raw"
27751 msgstr ""
27752
27753 # type: textblock
27754 #: ../tools/virt-resize.pl:537
27755 msgid ""
27756 "Specify the format of the output disk image.  If this flag is not given then "
27757 "it is auto-detected from the image itself."
27758 msgstr ""
27759
27760 # type: textblock
27761 #: ../tools/virt-resize.pl:543
27762 msgid ""
27763 "Note that you still need to create the output disk with the right format.  "
27764 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27765 msgstr ""
27766
27767 # type: =head1
27768 #: ../tools/virt-resize.pl:1419
27769 msgid "NOTES"
27770 msgstr ""
27771
27772 # type: =head2
27773 #: ../tools/virt-resize.pl:1421
27774 msgid "\"Partition 1 does not end on cylinder boundary.\""
27775 msgstr ""
27776
27777 # type: textblock
27778 #: ../tools/virt-resize.pl:1423
27779 msgid ""
27780 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27781 "means the partitions will not be aligned to the ancient CHS geometry.  "
27782 "However CHS geometry is meaningless for disks manufactured since the early "
27783 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27784 "cylinders is not required by any modern operating system."
27785 msgstr ""
27786
27787 # type: =head2
27788 #: ../tools/virt-resize.pl:1430
27789 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27790 msgstr ""
27791
27792 # type: textblock
27793 #: ../tools/virt-resize.pl:1432
27794 msgid ""
27795 "In Windows Vista and later versions, Microsoft switched to using a separate "
27796 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27797 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27798 "the boot partition.  Doing so seems to break the guest completely.  However "
27799 "expanding the second partition (ie. C: drive) should work."
27800 msgstr ""
27801
27802 # type: textblock
27803 #: ../tools/virt-resize.pl:1439
27804 msgid ""
27805 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27806 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27807 "it find errors) is nothing to worry about."
27808 msgstr ""
27809
27810 # type: =head2
27811 #: ../tools/virt-resize.pl:1443
27812 msgid "GUEST BOOT STUCK AT \"GRUB\""
27813 msgstr ""
27814
27815 # type: textblock
27816 #: ../tools/virt-resize.pl:1445
27817 msgid ""
27818 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27819 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27820 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27821 "although we think is to do with partition alignment."
27822 msgstr ""
27823
27824 # type: verbatim
27825 #: ../tools/virt-resize.pl:1450
27826 #, no-wrap
27827 msgid ""
27828 " guestfish -i -a newdisk\n"
27829 " ><fs> cat /boot/grub/device.map\n"
27830 " # check the contents of this file are sensible or\n"
27831 " # edit the file if necessary\n"
27832 " ><fs> grub-install / /dev/vda\n"
27833 " ><fs> exit\n"
27834 "\n"
27835 msgstr ""
27836
27837 # type: textblock
27838 #: ../tools/virt-resize.pl:1457
27839 msgid ""
27840 "For more flexible guest reconfiguration, including if you need to specify "
27841 "other parameters to grub-install, use L<virt-rescue(1)>."
27842 msgstr ""
27843
27844 # type: =head1
27845 #: ../tools/virt-resize.pl:1460
27846 msgid "ALTERNATIVE TOOLS"
27847 msgstr ""
27848
27849 # type: textblock
27850 #: ../tools/virt-resize.pl:1462
27851 msgid ""
27852 "There are several proprietary tools for resizing partitions.  We won't "
27853 "mention any here."
27854 msgstr ""
27855
27856 # type: textblock
27857 #: ../tools/virt-resize.pl:1465
27858 msgid ""
27859 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27860 "operations on disk images.  They can resize and move partitions, but I don't "
27861 "think they can do anything with the contents, and they certainly don't "
27862 "understand LVM."
27863 msgstr ""
27864
27865 # type: textblock
27866 #: ../tools/virt-resize.pl:1470
27867 msgid ""
27868 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27869 "but at a much lower level.  You will probably end up hand-calculating sector "
27870 "offsets, which is something that virt-resize was designed to avoid.  If you "
27871 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27872 "C<--debug> flag."
27873 msgstr ""
27874
27875 # type: textblock
27876 #: ../tools/virt-resize.pl:1485
27877 msgid ""
27878 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
27879 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
27880 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
27881 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
27882 "libguestfs.org/>."
27883 msgstr ""
27884
27885 # type: textblock
27886 #: ../tools/virt-list-filesystems.pl:32
27887 msgid ""
27888 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27889 msgstr ""
27890
27891 # type: verbatim
27892 #: ../tools/virt-list-filesystems.pl:36
27893 #, no-wrap
27894 msgid ""
27895 " virt-list-filesystems [--options] domname\n"
27896 "\n"
27897 msgstr ""
27898
27899 # type: verbatim
27900 #: ../tools/virt-list-filesystems.pl:38
27901 #, no-wrap
27902 msgid ""
27903 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27904 "\n"
27905 msgstr ""
27906
27907 # type: textblock
27908 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
27909 msgid ""
27910 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
27911 "replacement."
27912 msgstr ""
27913
27914 # type: textblock
27915 #: ../tools/virt-list-filesystems.pl:45
27916 msgid ""
27917 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27918 "are contained in a virtual machine or disk image."
27919 msgstr ""
27920
27921 # type: textblock
27922 #: ../tools/virt-list-filesystems.pl:49
27923 msgid ""
27924 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27925 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27926 "> tool."
27927 msgstr ""
27928
27929 # type: =item
27930 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
27931 msgid "B<-l> | B<--long>"
27932 msgstr ""
27933
27934 # type: textblock
27935 #: ../tools/virt-list-filesystems.pl:108
27936 msgid ""
27937 "With this option, C<virt-list-filesystems> displays the type of each "
27938 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27939 msgstr ""
27940
27941 # type: =item
27942 #: ../tools/virt-list-filesystems.pl:115
27943 msgid "B<-a> | B<--all>"
27944 msgstr ""
27945
27946 # type: textblock
27947 #: ../tools/virt-list-filesystems.pl:117
27948 msgid ""
27949 "Normally we only show mountable filesystems.  If this option is given then "
27950 "swap devices are shown too."
27951 msgstr ""
27952
27953 # type: textblock
27954 #: ../tools/virt-list-filesystems.pl:191
27955 msgid ""
27956 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
27957 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27958 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27959 msgstr ""
27960
27961 # type: textblock
27962 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
27963 msgid "Copyright (C) 2009 Red Hat Inc."
27964 msgstr ""
27965
27966 # type: textblock
27967 #: ../tools/virt-tar.pl:33
27968 msgid "virt-tar - Extract or upload files to a virtual machine"
27969 msgstr ""
27970
27971 # type: verbatim
27972 #: ../tools/virt-tar.pl:37
27973 #, no-wrap
27974 msgid ""
27975 " virt-tar [--options] -x domname directory tarball\n"
27976 "\n"
27977 msgstr ""
27978
27979 # type: verbatim
27980 #: ../tools/virt-tar.pl:39
27981 #, no-wrap
27982 msgid ""
27983 " virt-tar [--options] -u domname tarball directory\n"
27984 "\n"
27985 msgstr ""
27986
27987 # type: verbatim
27988 #: ../tools/virt-tar.pl:41
27989 #, no-wrap
27990 msgid ""
27991 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27992 "\n"
27993 msgstr ""
27994
27995 # type: verbatim
27996 #: ../tools/virt-tar.pl:43
27997 #, no-wrap
27998 msgid ""
27999 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28000 "\n"
28001 msgstr ""
28002
28003 # type: textblock
28004 #: ../tools/virt-tar.pl:47
28005 msgid "Download C</home> from the VM into a local tarball:"
28006 msgstr ""
28007
28008 # type: verbatim
28009 #: ../tools/virt-tar.pl:49
28010 #, no-wrap
28011 msgid ""
28012 " virt-tar -x domname /home home.tar\n"
28013 "\n"
28014 msgstr ""
28015
28016 # type: verbatim
28017 #: ../tools/virt-tar.pl:51
28018 #, no-wrap
28019 msgid ""
28020 " virt-tar -zx domname /home home.tar.gz\n"
28021 "\n"
28022 msgstr ""
28023
28024 # type: textblock
28025 #: ../tools/virt-tar.pl:53
28026 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28027 msgstr ""
28028
28029 # type: verbatim
28030 #: ../tools/virt-tar.pl:55
28031 #, no-wrap
28032 msgid ""
28033 " virt-tar -u domname uploadstuff.tar /tmp\n"
28034 "\n"
28035 msgstr ""
28036
28037 # type: verbatim
28038 #: ../tools/virt-tar.pl:57
28039 #, no-wrap
28040 msgid ""
28041 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28042 "\n"
28043 msgstr ""
28044
28045 # type: textblock
28046 #: ../tools/virt-tar.pl:61
28047 msgid ""
28048 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28049 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28050 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28051 msgstr ""
28052
28053 # type: textblock
28054 #: ../tools/virt-tar.pl:66
28055 msgid ""
28056 "You can use C<-x> (extract) on live virtual machines, but you might get "
28057 "inconsistent results or errors if there is filesystem activity inside the "
28058 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28059 "work, but the only way to guarantee consistent results is if the virtual "
28060 "machine is shut down."
28061 msgstr ""
28062
28063 # type: textblock
28064 #: ../tools/virt-tar.pl:74
28065 msgid ""
28066 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28067 "parts of a guest filesystem.  There are many possibilities: making backups, "
28068 "uploading data files, snooping on guest activity, fixing or customizing "
28069 "guests, etc."
28070 msgstr ""
28071
28072 # type: textblock
28073 #: ../tools/virt-tar.pl:79
28074 msgid ""
28075 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28076 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28077 "should look at the L<guestfish(1)> tool."
28078 msgstr ""
28079
28080 # type: textblock
28081 #: ../tools/virt-tar.pl:83
28082 msgid ""
28083 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28084 "its contents (recursively) from the virtual machine into a local tarball.  "
28085 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28086 "virtual machine.  You cannot use these two options together."
28087 msgstr ""
28088
28089 # type: textblock
28090 #: ../tools/virt-tar.pl:89
28091 msgid ""
28092 "In addition, you may need to use the C<-z> (gZip) option to enable "
28093 "compression.  When uploading, you have to specify C<-z> if the upload file "
28094 "is compressed because virt-tar won't detect this on its own."
28095 msgstr ""
28096
28097 # type: textblock
28098 #: ../tools/virt-tar.pl:93
28099 msgid ""
28100 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28101 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28102 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28103 "the L<libguestfs(3)> API)."
28104 msgstr ""
28105
28106 # type: =item
28107 #: ../tools/virt-tar.pl:151
28108 msgid "B<-x> | B<--extract> | B<--download>"
28109 msgstr ""
28110
28111 # type: =item
28112 #: ../tools/virt-tar.pl:153
28113 msgid "B<-u> | B<--upload>"
28114 msgstr ""
28115
28116 # type: textblock
28117 #: ../tools/virt-tar.pl:155
28118 msgid ""
28119 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28120 "local tarball."
28121 msgstr ""
28122
28123 # type: textblock
28124 #: ../tools/virt-tar.pl:158
28125 msgid ""
28126 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28127 "Please read the L</WARNING> section above before using this option."
28128 msgstr ""
28129
28130 # type: textblock
28131 #: ../tools/virt-tar.pl:162
28132 msgid "You must specify exactly one of these options."
28133 msgstr ""
28134
28135 # type: =item
28136 #: ../tools/virt-tar.pl:168
28137 msgid "B<-z> | B<--gzip>"
28138 msgstr ""
28139
28140 # type: textblock
28141 #: ../tools/virt-tar.pl:170
28142 msgid "Specify that the input or output tarball is gzip-compressed."
28143 msgstr ""
28144
28145 # type: textblock
28146 #: ../tools/virt-tar.pl:283
28147 msgid ""
28148 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28149 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28150 "org/>."
28151 msgstr ""
28152
28153 # type: textblock
28154 #: ../tools/virt-make-fs.pl:37
28155 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28156 msgstr ""
28157
28158 # type: verbatim
28159 #: ../tools/virt-make-fs.pl:41
28160 #, no-wrap
28161 msgid ""
28162 " virt-make-fs [--options] input.tar output.img\n"
28163 "\n"
28164 msgstr ""
28165
28166 # type: verbatim
28167 #: ../tools/virt-make-fs.pl:43
28168 #, no-wrap
28169 msgid ""
28170 " virt-make-fs [--options] input.tar.gz output.img\n"
28171 "\n"
28172 msgstr ""
28173
28174 # type: verbatim
28175 #: ../tools/virt-make-fs.pl:45
28176 #, no-wrap
28177 msgid ""
28178 " virt-make-fs [--options] directory output.img\n"
28179 "\n"
28180 msgstr ""
28181
28182 # type: textblock
28183 #: ../tools/virt-make-fs.pl:49
28184 msgid ""
28185 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28186 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28187 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28188 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28189 "you want to attach these filesystems to existing virtual machines (eg. to "
28190 "import large amounts of read-only data to a VM)."
28191 msgstr ""
28192
28193 # type: textblock
28194 #: ../tools/virt-make-fs.pl:57
28195 msgid "Basic usage is:"
28196 msgstr ""
28197
28198 # type: verbatim
28199 #: ../tools/virt-make-fs.pl:59
28200 #, no-wrap
28201 msgid ""
28202 " virt-make-fs input output\n"
28203 "\n"
28204 msgstr ""
28205
28206 # type: textblock
28207 #: ../tools/virt-make-fs.pl:61
28208 msgid ""
28209 "where C<input> is either a directory containing files that you want to add, "
28210 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28211 "C<output> is a disk image.  The input type is detected automatically.  The "
28212 "output disk image defaults to a raw ext2 image unless you specify extra "
28213 "flags (see L</OPTIONS> below)."
28214 msgstr ""
28215
28216 # type: =head2
28217 #: ../tools/virt-make-fs.pl:67
28218 msgid "EXTRA SPACE"
28219 msgstr ""
28220
28221 # type: textblock
28222 #: ../tools/virt-make-fs.pl:69
28223 msgid ""
28224 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28225 "the files that it contains, but might have extra space.  Depending on how "
28226 "you are going to use the output, you might think this extra space is wasted "
28227 "and want to minimize it, or you might want to leave space so that more files "
28228 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28229 "but you can use the C<--size> flag to leave space in the filesystem if you "
28230 "want it."
28231 msgstr ""
28232
28233 # type: textblock
28234 #: ../tools/virt-make-fs.pl:77
28235 msgid ""
28236 "An alternative way to leave extra space but not make the output image any "
28237 "bigger is to use an alternative disk image format (instead of the default "
28238 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28239 "image format (check your hypervisor supports this before using it).  This "
28240 "allows you to choose a large C<--size> but the extra space won't actually be "
28241 "allocated in the image until you try to store something in it."
28242 msgstr ""
28243
28244 # type: textblock
28245 #: ../tools/virt-make-fs.pl:85
28246 msgid ""
28247 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28248 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28249 "resize to build another image from scratch."
28250 msgstr ""
28251
28252 # type: =head3
28253 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28254 #: ../tools/virt-make-fs.pl:142
28255 msgid "EXAMPLE"
28256 msgstr ""
28257
28258 # type: verbatim
28259 #: ../tools/virt-make-fs.pl:91
28260 #, no-wrap
28261 msgid ""
28262 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28263 "\n"
28264 msgstr ""
28265
28266 # type: =head2
28267 #: ../tools/virt-make-fs.pl:93
28268 msgid "FILESYSTEM TYPE"
28269 msgstr ""
28270
28271 # type: textblock
28272 #: ../tools/virt-make-fs.pl:95
28273 msgid ""
28274 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28275 "libguestfs supports can be used (but I<not> read-only formats like "
28276 "ISO9660).  Here are some of the more common choices:"
28277 msgstr ""
28278
28279 # type: =item
28280 #: ../tools/virt-make-fs.pl:101
28281 msgid "I<ext3>"
28282 msgstr ""
28283
28284 # type: textblock
28285 #: ../tools/virt-make-fs.pl:103
28286 msgid ""
28287 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28288 "you are not going to use the filesystem in a way that requires the journal, "
28289 "then this is just wasted overhead."
28290 msgstr ""
28291
28292 # type: =item
28293 #: ../tools/virt-make-fs.pl:107
28294 msgid "I<ntfs> or I<vfat>"
28295 msgstr ""
28296
28297 # type: textblock
28298 #: ../tools/virt-make-fs.pl:109
28299 msgid "Useful if exporting data to a Windows guest."
28300 msgstr ""
28301
28302 # type: textblock
28303 #: ../tools/virt-make-fs.pl:111
28304 msgid ""
28305 "I<Note for vfat>: The tar archive or local directory must only contain files "
28306 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28307 "program running within libguestfs is unable to change the ownership of non-"
28308 "root files, since vfat itself does not support this."
28309 msgstr ""
28310
28311 # type: =item
28312 #: ../tools/virt-make-fs.pl:116
28313 msgid "I<minix>"
28314 msgstr ""
28315
28316 # type: textblock
28317 #: ../tools/virt-make-fs.pl:118
28318 msgid ""
28319 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28320 "total filesystem size."
28321 msgstr ""
28322
28323 # type: verbatim
28324 #: ../tools/virt-make-fs.pl:125
28325 #, no-wrap
28326 msgid ""
28327 " virt-make-fs --type=minix input minixfs.img\n"
28328 "\n"
28329 msgstr ""
28330
28331 # type: =head2
28332 #: ../tools/virt-make-fs.pl:127
28333 msgid "TO PARTITION OR NOT TO PARTITION"
28334 msgstr ""
28335
28336 # type: textblock
28337 #: ../tools/virt-make-fs.pl:129
28338 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28339 msgstr ""
28340
28341 # type: textblock
28342 #: ../tools/virt-make-fs.pl:131
28343 msgid ""
28344 "Adding a partition can make the disk image more compatible with certain "
28345 "virtualized operating systems which don't expect to see a filesystem "
28346 "directly located on a block device (Linux doesn't care and will happily "
28347 "handle both types)."
28348 msgstr ""
28349
28350 # type: textblock
28351 #: ../tools/virt-make-fs.pl:136
28352 msgid ""
28353 "On the other hand, if you have a partition table then the output image is no "
28354 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28355 "directly on a partitioned disk image.  (However libguestfs tools such as "
28356 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28357 msgstr ""
28358
28359 # type: textblock
28360 #: ../tools/virt-make-fs.pl:144
28361 msgid "Add an MBR partition:"
28362 msgstr ""
28363
28364 # type: verbatim
28365 #: ../tools/virt-make-fs.pl:146
28366 #, no-wrap
28367 msgid ""
28368 " virt-make-fs --partition -- input disk.img\n"
28369 "\n"
28370 msgstr ""
28371
28372 # type: textblock
28373 #: ../tools/virt-make-fs.pl:148
28374 msgid ""
28375 "If the output disk image could be terabyte-sized or larger, it's better to "
28376 "use an EFI/GPT-compatible partition table:"
28377 msgstr ""
28378
28379 # type: verbatim
28380 #: ../tools/virt-make-fs.pl:151
28381 #, no-wrap
28382 msgid ""
28383 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28384 "\n"
28385 msgstr ""
28386
28387 # type: textblock
28388 #: ../tools/virt-make-fs.pl:179
28389 msgid "Enable debugging information."
28390 msgstr ""
28391
28392 # type: =item
28393 #: ../tools/virt-make-fs.pl:185
28394 msgid "B<--size=E<lt>NE<gt>>"
28395 msgstr ""
28396
28397 # type: =item
28398 #: ../tools/virt-make-fs.pl:187
28399 msgid "B<--size=+E<lt>NE<gt>>"
28400 msgstr ""
28401
28402 # type: =item
28403 #: ../tools/virt-make-fs.pl:189
28404 msgid "B<-s E<lt>NE<gt>>"
28405 msgstr ""
28406
28407 # type: =item
28408 #: ../tools/virt-make-fs.pl:191
28409 msgid "B<-s +E<lt>NE<gt>>"
28410 msgstr ""
28411
28412 # type: textblock
28413 #: ../tools/virt-make-fs.pl:193
28414 msgid ""
28415 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28416 msgstr ""
28417
28418 # type: textblock
28419 #: ../tools/virt-make-fs.pl:196
28420 msgid ""
28421 "If this option is I<not> given, then the output image will be just large "
28422 "enough to contain all the files, with not much wasted space."
28423 msgstr ""
28424
28425 # type: textblock
28426 #: ../tools/virt-make-fs.pl:199
28427 msgid ""
28428 "To choose a fixed size output disk, specify an absolute number followed by b/"
28429 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28430 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28431 "files, else you will get an error."
28432 msgstr ""
28433
28434 # type: textblock
28435 #: ../tools/virt-make-fs.pl:204
28436 msgid ""
28437 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28438 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28439 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28440 "the input files, and (approximately) an extra 200 MB free space."
28441 msgstr ""
28442
28443 # type: textblock
28444 #: ../tools/virt-make-fs.pl:210
28445 msgid ""
28446 "Note that virt-make-fs estimates free space, and therefore will not produce "
28447 "filesystems containing precisely the free space requested.  (It is much more "
28448 "expensive and time-consuming to produce a filesystem which has precisely the "
28449 "desired free space)."
28450 msgstr ""
28451
28452 # type: =item
28453 #: ../tools/virt-make-fs.pl:219
28454 msgid "B<--format=E<lt>fmtE<gt>>"
28455 msgstr ""
28456
28457 # type: =item
28458 #: ../tools/virt-make-fs.pl:221
28459 msgid "B<-F E<lt>fmtE<gt>>"
28460 msgstr ""
28461
28462 # type: textblock
28463 #: ../tools/virt-make-fs.pl:223
28464 msgid "Choose the output disk image format."
28465 msgstr ""
28466
28467 # type: textblock
28468 #: ../tools/virt-make-fs.pl:225
28469 msgid "The default is C<raw> (raw disk image)."
28470 msgstr ""
28471
28472 # type: textblock
28473 #: ../tools/virt-make-fs.pl:227
28474 msgid ""
28475 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28476 "that would really make sense here is C<qcow2>."
28477 msgstr ""
28478
28479 # type: =item
28480 #: ../tools/virt-make-fs.pl:234
28481 msgid "B<--type=E<lt>fsE<gt>>"
28482 msgstr ""
28483
28484 # type: =item
28485 #: ../tools/virt-make-fs.pl:236
28486 msgid "B<-t E<lt>fsE<gt>>"
28487 msgstr ""
28488
28489 # type: textblock
28490 #: ../tools/virt-make-fs.pl:238
28491 msgid "Choose the output filesystem type."
28492 msgstr ""
28493
28494 # type: textblock
28495 #: ../tools/virt-make-fs.pl:240
28496 msgid "The default is C<ext2>."
28497 msgstr ""
28498
28499 # type: textblock
28500 #: ../tools/virt-make-fs.pl:242
28501 msgid ""
28502 "Any filesystem which is supported read-write by libguestfs can be used here."
28503 msgstr ""
28504
28505 # type: =item
28506 #: ../tools/virt-make-fs.pl:249
28507 msgid "B<--partition>"
28508 msgstr ""
28509
28510 # type: =item
28511 #: ../tools/virt-make-fs.pl:251
28512 msgid "B<--partition=E<lt>parttypeE<gt>>"
28513 msgstr ""
28514
28515 # type: textblock
28516 #: ../tools/virt-make-fs.pl:253
28517 msgid ""
28518 "If specified, this flag adds an MBR partition table to the output disk image."
28519 msgstr ""
28520
28521 # type: textblock
28522 #: ../tools/virt-make-fs.pl:256
28523 msgid ""
28524 "You can change the partition table type, eg. C<--partition=gpt> for large "
28525 "disks."
28526 msgstr ""
28527
28528 # type: textblock
28529 #: ../tools/virt-make-fs.pl:259
28530 msgid ""
28531 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28532 "might consider the next parameter to be the partition type.  For example:"
28533 msgstr ""
28534
28535 # type: verbatim
28536 #: ../tools/virt-make-fs.pl:263
28537 #, no-wrap
28538 msgid ""
28539 " virt-make-fs --partition input.tar ...\n"
28540 "\n"
28541 msgstr ""
28542
28543 # type: textblock
28544 #: ../tools/virt-make-fs.pl:265
28545 msgid ""
28546 "would cause virt-make-fs to think you wanted to use a partition type of "
28547 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28548 "dash) between options and the input file argument:"
28549 msgstr ""
28550
28551 # type: verbatim
28552 #: ../tools/virt-make-fs.pl:269
28553 #, no-wrap
28554 msgid ""
28555 " virt-make-fs --partition -- input.tar ...\n"
28556 "\n"
28557 msgstr ""
28558
28559 # type: textblock
28560 #: ../tools/virt-make-fs.pl:536
28561 msgid ""
28562 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28563 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
28564 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28565 msgstr ""
28566
28567 # type: verbatim
28568 #: ../tools/virt-make-fs.pl:553
28569 #, no-wrap
28570 msgid ""
28571 " export LIBGUESTFS_DEBUG=1\n"
28572 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28573 "\n"
28574 msgstr ""
28575
28576 # type: textblock
28577 #: ../tools/virt-make-fs.pl:556
28578 msgid ""
28579 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
28580 "redhat.com/>"
28581 msgstr ""
28582
28583 # type: textblock
28584 #: ../tools/virt-list-partitions.pl:32
28585 msgid ""
28586 "virt-list-partitions - List partitions in a virtual machine or disk image"
28587 msgstr ""
28588
28589 # type: verbatim
28590 #: ../tools/virt-list-partitions.pl:36
28591 #, no-wrap
28592 msgid ""
28593 " virt-list-partitions [--options] domname\n"
28594 "\n"
28595 msgstr ""
28596
28597 # type: verbatim
28598 #: ../tools/virt-list-partitions.pl:38
28599 #, no-wrap
28600 msgid ""
28601 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28602 "\n"
28603 msgstr ""
28604
28605 # type: textblock
28606 #: ../tools/virt-list-partitions.pl:45
28607 msgid ""
28608 "C<virt-list-partitions> is a command line tool to list the partitions that "
28609 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28610 "first step to using L<virt-resize(1)>."
28611 msgstr ""
28612
28613 # type: textblock
28614 #: ../tools/virt-list-partitions.pl:50
28615 msgid ""
28616 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28617 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28618 "> tool."
28619 msgstr ""
28620
28621 # type: =item
28622 #: ../tools/virt-list-partitions.pl:107
28623 msgid "B<-h> | B<--human-readable>"
28624 msgstr ""
28625
28626 # type: textblock
28627 #: ../tools/virt-list-partitions.pl:109
28628 msgid "Show sizes in human-readable form (eg. \"1G\")."
28629 msgstr ""
28630
28631 # type: textblock
28632 #: ../tools/virt-list-partitions.pl:117
28633 msgid ""
28634 "With this option, C<virt-list-partitions> displays the type and size of each "
28635 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28636 msgstr ""
28637
28638 # type: =item
28639 #: ../tools/virt-list-partitions.pl:124
28640 msgid "B<-t> | B<--total>"
28641 msgstr ""
28642
28643 # type: textblock
28644 #: ../tools/virt-list-partitions.pl:126
28645 msgid ""
28646 "Display the total size of each block device (as a separate row or rows)."
28647 msgstr ""
28648
28649 # type: textblock
28650 #: ../tools/virt-list-partitions.pl:259
28651 msgid ""
28652 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
28653 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
28654 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28655 msgstr ""