Version 1.11.7.
[libguestfs.git] / po-docs / uk.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-05-17 17:29+0200\n"
11 "PO-Revision-Date: 2011-04-01 15:39+0000\n"
12 "Last-Translator: yurchor <yurchor@ukr.net>\n"
13 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
14 "Language: uk\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
20
21 #. type: =head1
22 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
23 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
24 #: ../tools/virt-win-reg.pl:35 ../tools/virt-list-filesystems.pl:30
25 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
26 #: ../tools/virt-list-partitions.pl:30
27 msgid "NAME"
28 msgstr "НАЗВА"
29
30 #. type: textblock
31 #: ../src/guestfs.pod:5
32 msgid "guestfs - Library for accessing and modifying virtual machine images"
33 msgstr ""
34 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35 "машин"
36
37 #. type: =head1
38 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
39 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
40 #: ../tools/virt-win-reg.pl:39 ../tools/virt-list-filesystems.pl:34
41 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
42 #: ../tools/virt-list-partitions.pl:34
43 msgid "SYNOPSIS"
44 msgstr "КОРОТКИЙ ОПИС"
45
46 #. type: verbatim
47 #: ../src/guestfs.pod:9
48 #, no-wrap
49 msgid ""
50 " #include <guestfs.h>\n"
51 " \n"
52 msgstr ""
53 " #include <guestfs.h>\n"
54 " \n"
55
56 #. type: verbatim
57 #: ../src/guestfs.pod:11
58 #, no-wrap
59 msgid ""
60 " guestfs_h *g = guestfs_create ();\n"
61 " guestfs_add_drive (g, \"guest.img\");\n"
62 " guestfs_launch (g);\n"
63 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
64 " guestfs_touch (g, \"/hello\");\n"
65 " guestfs_umount (g, \"/\");\n"
66 " guestfs_close (g);\n"
67 "\n"
68 msgstr ""
69 " guestfs_h *g = guestfs_create ();\n"
70 " guestfs_add_drive (g, \"guest.img\");\n"
71 " guestfs_launch (g);\n"
72 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
73 " guestfs_touch (g, \"/hello\");\n"
74 " guestfs_umount (g, \"/\");\n"
75 " guestfs_close (g);\n"
76 "\n"
77
78 #. type: verbatim
79 #: ../src/guestfs.pod:19
80 #, no-wrap
81 msgid ""
82 " cc prog.c -o prog -lguestfs\n"
83 "or:\n"
84 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
85 "\n"
86 msgstr ""
87 " cc prog.c -o prog -lguestfs\n"
88 "або:\n"
89 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
90 "\n"
91
92 #. type: =head1
93 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
94 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
95 #: ../tools/virt-win-reg.pl:63 ../tools/virt-list-filesystems.pl:40
96 #: ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47
97 #: ../tools/virt-list-partitions.pl:40
98 msgid "DESCRIPTION"
99 msgstr "ОПИС"
100
101 #. type: textblock
102 #: ../src/guestfs.pod:25
103 msgid ""
104 "Libguestfs is a library for accessing and modifying guest disk images.  "
105 "Amongst the things this is good for: making batch configuration changes to "
106 "guests, getting disk used/free statistics (see also: virt-df), migrating "
107 "between virtualization systems (see also: virt-p2v), performing partial "
108 "backups, performing partial guest clones, cloning guests and changing "
109 "registry/UUID/hostname info, and much else besides."
110 msgstr ""
111
112 #. type: textblock
113 #: ../src/guestfs.pod:33
114 msgid ""
115 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
116 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
117 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
118 "qcow2, vmdk."
119 msgstr ""
120
121 #. type: textblock
122 #: ../src/guestfs.pod:38
123 msgid ""
124 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
125 "what filesystem is in each LV, etc.).  It can also run commands in the "
126 "context of the guest.  Also you can access filesystems over FUSE."
127 msgstr ""
128
129 #. type: textblock
130 #: ../src/guestfs.pod:43
131 msgid ""
132 "Libguestfs is a library that can be linked with C and C++ management "
133 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
134 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
135 "line."
136 msgstr ""
137
138 #. type: textblock
139 #: ../src/guestfs.pod:48
140 msgid ""
141 "You don't need to be root to use libguestfs, although obviously you do need "
142 "enough permissions to access the disk images."
143 msgstr ""
144
145 #. type: textblock
146 #: ../src/guestfs.pod:51
147 msgid ""
148 "Libguestfs is a large API because it can do many things.  For a gentle "
149 "introduction, please read the L</API OVERVIEW> section next."
150 msgstr ""
151
152 #. type: textblock
153 #: ../src/guestfs.pod:54
154 msgid ""
155 "There are also some example programs in the L<guestfs-examples(3)> manual "
156 "page."
157 msgstr ""
158
159 #. type: =head1
160 #: ../src/guestfs.pod:57
161 msgid "API OVERVIEW"
162 msgstr "ОГЛЯД API"
163
164 #. type: textblock
165 #: ../src/guestfs.pod:59
166 msgid ""
167 "This section provides a gentler overview of the libguestfs API.  We also try "
168 "to group API calls together, where that may not be obvious from reading "
169 "about the individual calls in the main section of this manual."
170 msgstr ""
171
172 #. type: =head2
173 #: ../src/guestfs.pod:64
174 msgid "HANDLES"
175 msgstr "ОБРОБНИКИ"
176
177 #. type: textblock
178 #: ../src/guestfs.pod:66
179 msgid ""
180 "Before you can use libguestfs calls, you have to create a handle.  Then you "
181 "must add at least one disk image to the handle, followed by launching the "
182 "handle, then performing whatever operations you want, and finally closing "
183 "the handle.  By convention we use the single letter C<g> for the name of the "
184 "handle variable, although of course you can use any name you want."
185 msgstr ""
186
187 #. type: textblock
188 #: ../src/guestfs.pod:73
189 msgid "The general structure of all libguestfs-using programs looks like this:"
190 msgstr ""
191
192 #. type: verbatim
193 #: ../src/guestfs.pod:76
194 #, no-wrap
195 msgid ""
196 " guestfs_h *g = guestfs_create ();\n"
197 " \n"
198 msgstr ""
199 " guestfs_h *g = guestfs_create ();\n"
200 " \n"
201
202 #. type: verbatim
203 #: ../src/guestfs.pod:78
204 #, no-wrap
205 msgid ""
206 " /* Call guestfs_add_drive additional times if there are\n"
207 "  * multiple disk images.\n"
208 "  */\n"
209 " guestfs_add_drive (g, \"guest.img\");\n"
210 " \n"
211 msgstr ""
212
213 #. type: verbatim
214 #: ../src/guestfs.pod:83
215 #, no-wrap
216 msgid ""
217 " /* Most manipulation calls won't work until you've launched\n"
218 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
219 "  * and _before_ other commands.\n"
220 "  */\n"
221 " guestfs_launch (g);\n"
222 " \n"
223 msgstr ""
224
225 #. type: verbatim
226 #: ../src/guestfs.pod:89
227 #, no-wrap
228 msgid ""
229 " /* Now you can examine what partitions, LVs etc are available.\n"
230 "  */\n"
231 " char **partitions = guestfs_list_partitions (g);\n"
232 " char **logvols = guestfs_lvs (g);\n"
233 " \n"
234 msgstr ""
235
236 #. type: verbatim
237 #: ../src/guestfs.pod:94
238 #, no-wrap
239 msgid ""
240 " /* To access a filesystem in the image, you must mount it.\n"
241 "  */\n"
242 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
243 " \n"
244 msgstr ""
245 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
246 "  */\n"
247 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
248 " \n"
249
250 #. type: verbatim
251 #: ../src/guestfs.pod:98
252 #, fuzzy, no-wrap
253 #| msgid ""
254 #| " /* Now you can perform filesystem actions on the guest\n"
255 #| "  * disk image.\n"
256 #| "  */\n"
257 #| " guestfs_touch (g, \"/hello\");\n"
258 #| "\n"
259 msgid ""
260 " /* Now you can perform filesystem actions on the guest\n"
261 "  * disk image.\n"
262 "  */\n"
263 " guestfs_touch (g, \"/hello\");\n"
264 " \n"
265 msgstr ""
266 " /* Тепер ви можете виконувати дії з файловою системою на\n"
267 "  * образі диска операційної системи.\n"
268 "  */\n"
269 " guestfs_touch (g, \"/hello\");\n"
270 "\n"
271
272 #. type: verbatim
273 #: ../src/guestfs.pod:103
274 #, no-wrap
275 msgid ""
276 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
277 "  * it is done automatically when you close the handle.  See\n"
278 "  * discussion of autosync in this page.\n"
279 "  */\n"
280 " guestfs_sync (g);\n"
281 " \n"
282 msgstr ""
283
284 #. type: verbatim
285 #: ../src/guestfs.pod:109
286 #, no-wrap
287 msgid ""
288 " /* Close the handle 'g'. */\n"
289 " guestfs_close (g);\n"
290 "\n"
291 msgstr ""
292
293 #. type: textblock
294 #: ../src/guestfs.pod:112
295 msgid ""
296 "The code above doesn't include any error checking.  In real code you should "
297 "check return values carefully for errors.  In general all functions that "
298 "return integers return C<-1> on error, and all functions that return "
299 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
300 "how to handle errors, and consult the documentation for each function call "
301 "below to see precisely how they return error indications.  See L<guestfs-"
302 "examples(3)> for fully worked examples."
303 msgstr ""
304
305 #. type: =head2
306 #: ../src/guestfs.pod:121
307 msgid "DISK IMAGES"
308 msgstr ""
309
310 #. type: textblock
311 #: ../src/guestfs.pod:123
312 msgid ""
313 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
314 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
315 "actual block device, or simply an empty file of zeroes that you have created "
316 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
317 "of these."
318 msgstr ""
319
320 #. type: textblock
321 #: ../src/guestfs.pod:129
322 msgid ""
323 "The call you should use in modern code for adding drives is L</"
324 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
325 "specifying that the format is raw, do:"
326 msgstr ""
327
328 #. type: verbatim
329 #: ../src/guestfs.pod:133
330 #, no-wrap
331 msgid ""
332 " guestfs_add_drive_opts (g, filename,\n"
333 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
334 "                         -1);\n"
335 "\n"
336 msgstr ""
337
338 #. type: textblock
339 #: ../src/guestfs.pod:137
340 msgid "You can add a disk read-only using:"
341 msgstr ""
342
343 #. type: verbatim
344 #: ../src/guestfs.pod:139
345 #, no-wrap
346 msgid ""
347 " guestfs_add_drive_opts (g, filename,\n"
348 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
349 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
350 "                         -1);\n"
351 "\n"
352 msgstr ""
353
354 #. type: textblock
355 #: ../src/guestfs.pod:144
356 msgid ""
357 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
358 "libguestfs won't modify the file."
359 msgstr ""
360
361 #. type: textblock
362 #: ../src/guestfs.pod:147
363 msgid ""
364 "Be extremely cautious if the disk image is in use, eg. if it is being used "
365 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
366 "corruption, but adding it read-only is safe."
367 msgstr ""
368
369 #. type: textblock
370 #: ../src/guestfs.pod:151
371 msgid ""
372 "You must add at least one disk image, and you may add multiple disk images.  "
373 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
374 "first one you added), C</dev/sdb> (for the second one you added), etc."
375 msgstr ""
376
377 #. type: textblock
378 #: ../src/guestfs.pod:156
379 msgid ""
380 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
381 "can call L</guestfs_list_devices> to get a list of the device names, in the "
382 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
383 msgstr ""
384
385 #. type: =head2
386 #: ../src/guestfs.pod:161
387 msgid "MOUNTING"
388 msgstr "МОНТУВАННЯ"
389
390 #. type: textblock
391 #: ../src/guestfs.pod:163
392 msgid ""
393 "Before you can read or write files, create directories and so on in a disk "
394 "image that contains filesystems, you have to mount those filesystems using "
395 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
396 "a disk image contains (for example) one partition with a filesystem on that "
397 "partition, then you can mount it directly:"
398 msgstr ""
399
400 #. type: verbatim
401 #: ../src/guestfs.pod:170
402 #, no-wrap
403 msgid ""
404 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
405 "\n"
406 msgstr ""
407
408 #. type: textblock
409 #: ../src/guestfs.pod:172
410 msgid ""
411 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
412 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
413 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
414 "that these are libguestfs virtual devices, and are nothing to do with host "
415 "devices."
416 msgstr ""
417
418 #. type: textblock
419 #: ../src/guestfs.pod:178
420 msgid ""
421 "If you are given a disk image and you don't know what it contains then you "
422 "have to find out.  Libguestfs can do that too: use L</"
423 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
424 "LVs, and either try mounting each to see what is mountable, or else examine "
425 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
426 "filesystems, use L</guestfs_list_filesystems>."
427 msgstr ""
428
429 #. type: textblock
430 #: ../src/guestfs.pod:186
431 msgid ""
432 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
433 "L</INSPECTION> below).  But you might find it easier to look at higher level "
434 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
435 msgstr ""
436
437 #. type: textblock
438 #: ../src/guestfs.pod:191
439 msgid ""
440 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
441 "several other variations of the C<guestfs_mount_*> call."
442 msgstr ""
443
444 #. type: =head2
445 #: ../src/guestfs.pod:194
446 msgid "FILESYSTEM ACCESS AND MODIFICATION"
447 msgstr ""
448
449 #. type: textblock
450 #: ../src/guestfs.pod:196
451 msgid ""
452 "The majority of the libguestfs API consists of fairly low-level calls for "
453 "accessing and modifying the files, directories, symlinks etc on mounted "
454 "filesystems.  There are over a hundred such calls which you can find listed "
455 "in detail below in this man page, and we don't even pretend to cover them "
456 "all in this overview."
457 msgstr ""
458
459 #. type: textblock
460 #: ../src/guestfs.pod:202
461 msgid ""
462 "Specify filenames as full paths, starting with C<\"/\"> and including the "
463 "mount point."
464 msgstr ""
465
466 #. type: textblock
467 #: ../src/guestfs.pod:205
468 msgid ""
469 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
470 "the file called C<\"etc/passwd\"> then you could do:"
471 msgstr ""
472
473 #. type: verbatim
474 #: ../src/guestfs.pod:208
475 #, no-wrap
476 msgid ""
477 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
478 "\n"
479 msgstr ""
480
481 #. type: textblock
482 #: ../src/guestfs.pod:210
483 msgid ""
484 "This would return C<data> as a newly allocated buffer containing the full "
485 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
486 "or C<NULL> if there was an error."
487 msgstr ""
488
489 #. type: textblock
490 #: ../src/guestfs.pod:214
491 msgid ""
492 "As another example, to create a top-level directory on that filesystem "
493 "called C<\"var\"> you would do:"
494 msgstr ""
495
496 #. type: verbatim
497 #: ../src/guestfs.pod:217
498 #, no-wrap
499 msgid ""
500 " guestfs_mkdir (g, \"/var\");\n"
501 "\n"
502 msgstr ""
503
504 #. type: textblock
505 #: ../src/guestfs.pod:219
506 msgid "To create a symlink you could do:"
507 msgstr ""
508
509 #. type: verbatim
510 #: ../src/guestfs.pod:221
511 #, no-wrap
512 msgid ""
513 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
514 "               \"/etc/rc3.d/S30portmap\");\n"
515 "\n"
516 msgstr ""
517
518 #. type: textblock
519 #: ../src/guestfs.pod:224
520 msgid ""
521 "Libguestfs will reject attempts to use relative paths and there is no "
522 "concept of a current working directory."
523 msgstr ""
524
525 #. type: textblock
526 #: ../src/guestfs.pod:227
527 msgid ""
528 "Libguestfs can return errors in many situations: for example if the "
529 "filesystem isn't writable, or if a file or directory that you requested "
530 "doesn't exist.  If you are using the C API (documented here)  you have to "
531 "check for those error conditions after each call.  (Other language bindings "
532 "turn these errors into exceptions)."
533 msgstr ""
534
535 #. type: textblock
536 #: ../src/guestfs.pod:233
537 msgid ""
538 "File writes are affected by the per-handle umask, set by calling L</"
539 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
540 msgstr ""
541
542 #. type: =head2
543 #: ../src/guestfs.pod:236
544 msgid "PARTITIONING"
545 msgstr "ПОДІЛ НА РОЗДІЛИ"
546
547 #. type: textblock
548 #: ../src/guestfs.pod:238
549 msgid ""
550 "Libguestfs contains API calls to read, create and modify partition tables on "
551 "disk images."
552 msgstr ""
553
554 #. type: textblock
555 #: ../src/guestfs.pod:241
556 msgid ""
557 "In the common case where you want to create a single partition covering the "
558 "whole disk, you should use the L</guestfs_part_disk> call:"
559 msgstr ""
560
561 #. type: verbatim
562 #: ../src/guestfs.pod:245
563 #, no-wrap
564 msgid ""
565 " const char *parttype = \"mbr\";\n"
566 " if (disk_is_larger_than_2TB)\n"
567 "   parttype = \"gpt\";\n"
568 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
569 "\n"
570 msgstr ""
571
572 #. type: textblock
573 #: ../src/guestfs.pod:250
574 msgid ""
575 "Obviously this effectively wipes anything that was on that disk image before."
576 msgstr ""
577
578 #. type: =head2
579 #: ../src/guestfs.pod:253
580 msgid "LVM2"
581 msgstr "LVM2"
582
583 #. type: textblock
584 #: ../src/guestfs.pod:255
585 msgid ""
586 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
587 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
588 "you familiarize yourself with the concepts of physical volumes, volume "
589 "groups and logical volumes."
590 msgstr ""
591
592 #. type: textblock
593 #: ../src/guestfs.pod:260
594 msgid ""
595 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
596 "tldp.org/HOWTO/LVM-HOWTO/>."
597 msgstr ""
598
599 #. type: =head2
600 #: ../src/guestfs.pod:263
601 msgid "DOWNLOADING"
602 msgstr ""
603
604 #. type: textblock
605 #: ../src/guestfs.pod:265
606 msgid ""
607 "Use L</guestfs_cat> to download small, text only files.  This call is "
608 "limited to files which are less than 2 MB and which cannot contain any ASCII "
609 "NUL (C<\\0>) characters.  However the API is very simple to use."
610 msgstr ""
611
612 #. type: textblock
613 #: ../src/guestfs.pod:269
614 msgid ""
615 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
616 "bit data, since it returns a (pointer, size) pair.  However it is still "
617 "limited to \"small\" files, less than 2 MB."
618 msgstr ""
619
620 #. type: textblock
621 #: ../src/guestfs.pod:273
622 msgid ""
623 "L</guestfs_download> can be used to download any file, with no limits on "
624 "content or size (even files larger than 4 GB)."
625 msgstr ""
626
627 #. type: textblock
628 #: ../src/guestfs.pod:276
629 msgid ""
630 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
631 msgstr ""
632
633 #. type: =head2
634 #: ../src/guestfs.pod:279
635 msgid "UPLOADING"
636 msgstr "ВИВАНТАЖЕННЯ"
637
638 #. type: textblock
639 #: ../src/guestfs.pod:281
640 msgid ""
641 "It's often the case that you want to write a file or files to the disk image."
642 msgstr ""
643
644 #. type: textblock
645 #: ../src/guestfs.pod:284
646 msgid ""
647 "To write a small file with fixed content, use L</guestfs_write>.  To create "
648 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
649 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
650 "of other functions for creating test files, for example L</guestfs_fill> and "
651 "L</guestfs_fill_pattern>."
652 msgstr ""
653
654 #. type: textblock
655 #: ../src/guestfs.pod:290
656 msgid ""
657 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
658 "file content or size (even files larger than 4 GB)."
659 msgstr ""
660
661 #. type: textblock
662 #: ../src/guestfs.pod:293
663 msgid ""
664 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
665 msgstr ""
666
667 #. type: textblock
668 #: ../src/guestfs.pod:295
669 msgid ""
670 "However the fastest way to upload I<large numbers of arbitrary files> is to "
671 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
672 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
673 "in a predictable way (eg. adding it last after all other drives) then you "
674 "can get the device name from L</guestfs_list_devices> and mount it directly "
675 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
676 "portable between kernel versions, and they don't support labels or UUIDs.  "
677 "If you want to pre-build an image or you need to mount it using a label or "
678 "UUID, use an ISO image instead."
679 msgstr ""
680
681 #. type: =head2
682 #: ../src/guestfs.pod:306
683 msgid "COPYING"
684 msgstr "КОПІЮВАННЯ"
685
686 #. type: textblock
687 #: ../src/guestfs.pod:308
688 msgid ""
689 "There are various different commands for copying between files and devices "
690 "and in and out of the guest filesystem.  These are summarised in the table "
691 "below."
692 msgstr ""
693
694 #. type: =item
695 #: ../src/guestfs.pod:314
696 msgid "B<file> to B<file>"
697 msgstr ""
698
699 #. type: textblock
700 #: ../src/guestfs.pod:316
701 msgid ""
702 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
703 "directories recursively."
704 msgstr ""
705
706 #. type: =item
707 #: ../src/guestfs.pod:319
708 msgid "B<file or device> to B<file or device>"
709 msgstr ""
710
711 #. type: textblock
712 #: ../src/guestfs.pod:321
713 msgid ""
714 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
715 "devices in the guest."
716 msgstr ""
717
718 #. type: textblock
719 #: ../src/guestfs.pod:324
720 msgid "Example: duplicate the contents of an LV:"
721 msgstr ""
722
723 #. type: verbatim
724 #: ../src/guestfs.pod:326
725 #, no-wrap
726 msgid ""
727 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
728 "\n"
729 msgstr ""
730
731 #. type: textblock
732 #: ../src/guestfs.pod:328
733 msgid ""
734 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
735 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
736 "guestfs_copy_size>."
737 msgstr ""
738
739 #. type: =item
740 #: ../src/guestfs.pod:332
741 msgid "B<file on the host> to B<file or device>"
742 msgstr ""
743
744 #. type: textblock
745 #: ../src/guestfs.pod:334
746 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
747 msgstr ""
748
749 #. type: =item
750 #: ../src/guestfs.pod:336
751 msgid "B<file or device> to B<file on the host>"
752 msgstr ""
753
754 #. type: textblock
755 #: ../src/guestfs.pod:338
756 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
757 msgstr ""
758
759 #. type: =head2
760 #: ../src/guestfs.pod:342
761 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
762 msgstr ""
763
764 #. type: textblock
765 #: ../src/guestfs.pod:344
766 msgid ""
767 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
768 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
769 "appears you can only upload and download to files.  However many Un*x-like "
770 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
771 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
772 "and arbitrary file descriptor N."
773 msgstr ""
774
775 #. type: textblock
776 #: ../src/guestfs.pod:352
777 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
778 msgstr ""
779
780 #. type: verbatim
781 #: ../src/guestfs.pod:355
782 #, no-wrap
783 msgid ""
784 " guestfs_download (g, filename, \"/dev/stdout\");\n"
785 "\n"
786 msgstr ""
787
788 #. type: textblock
789 #: ../src/guestfs.pod:357
790 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
791 msgstr ""
792
793 #. type: verbatim
794 #: ../src/guestfs.pod:359
795 #, no-wrap
796 msgid ""
797 " char devfd[64];\n"
798 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
799 " guestfs_tar_out (g, \"/\", devfd);\n"
800 "\n"
801 msgstr ""
802
803 #. type: =head2
804 #: ../src/guestfs.pod:363
805 msgid "LISTING FILES"
806 msgstr ""
807
808 #. type: textblock
809 #: ../src/guestfs.pod:365
810 msgid ""
811 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
812 "L<guestfish(1)>-equivalent command C<ll>)."
813 msgstr ""
814
815 #. type: textblock
816 #: ../src/guestfs.pod:368
817 msgid ""
818 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
819 "programs, as a flat list of strings."
820 msgstr ""
821
822 #. type: textblock
823 #: ../src/guestfs.pod:371
824 msgid ""
825 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
826 "directory, plus additional information about each one.  It is more "
827 "equivalent to using the L<readdir(3)> call on a local filesystem."
828 msgstr ""
829
830 #. type: textblock
831 #: ../src/guestfs.pod:375
832 msgid ""
833 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
834 msgstr ""
835
836 #. type: =head2
837 #: ../src/guestfs.pod:378
838 msgid "RUNNING COMMANDS"
839 msgstr ""
840
841 #. type: textblock
842 #: ../src/guestfs.pod:380
843 msgid ""
844 "Although libguestfs is primarily an API for manipulating files inside guest "
845 "images, we also provide some limited facilities for running commands inside "
846 "guests."
847 msgstr ""
848
849 #. type: textblock
850 #: ../src/guestfs.pod:384
851 msgid "There are many limitations to this:"
852 msgstr ""
853
854 #. type: =item
855 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
856 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
857 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
858 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
859 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
860 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
861 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
862 #: ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
863 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
864 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2008 ../src/guestfs.pod:2013
865 #: ../src/guestfs.pod:2019 ../src/guestfs.pod:2027 ../src/guestfs.pod:2381
866 #: ../src/guestfs.pod:2387 ../src/guestfs.pod:2392 ../src/guestfs.pod:2398
867 #: ../src/guestfs.pod:2967 ../src/guestfs.pod:2971 ../src/guestfs.pod:2975
868 #: ../src/guestfs.pod:2979 ../src/guestfs-actions.pod:15
869 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:583
870 #: ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:598
871 #: ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:1606
872 #: ../src/guestfs-actions.pod:1610 ../src/guestfs-actions.pod:1614
873 #: ../src/guestfs-actions.pod:1618 ../src/guestfs-actions.pod:1626
874 #: ../src/guestfs-actions.pod:1630 ../src/guestfs-actions.pod:1634
875 #: ../src/guestfs-actions.pod:1644 ../src/guestfs-actions.pod:1648
876 #: ../src/guestfs-actions.pod:1652 ../src/guestfs-actions.pod:1790
877 #: ../src/guestfs-actions.pod:1794 ../src/guestfs-actions.pod:1799
878 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1865
879 #: ../src/guestfs-actions.pod:1869 ../src/guestfs-actions.pod:1874
880 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
881 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
882 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
883 #: ../fish/guestfish-actions.pod:385 ../fish/guestfish-actions.pod:393
884 #: ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407
885 #: ../fish/guestfish-actions.pod:1077 ../fish/guestfish-actions.pod:1081
886 #: ../fish/guestfish-actions.pod:1085 ../fish/guestfish-actions.pod:1089
887 #: ../fish/guestfish-actions.pod:1097 ../fish/guestfish-actions.pod:1101
888 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1115
889 #: ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123
890 #: ../fish/guestfish-actions.pod:1213 ../fish/guestfish-actions.pod:1217
891 #: ../fish/guestfish-actions.pod:1222 ../fish/guestfish-actions.pod:1227
892 #: ../fish/guestfish-actions.pod:1269 ../fish/guestfish-actions.pod:1273
893 #: ../fish/guestfish-actions.pod:1278 ../tools/virt-win-reg.pl:195
894 #: ../tools/virt-win-reg.pl:200 ../tools/virt-win-reg.pl:206
895 #: ../tools/virt-win-reg.pl:707 ../tools/virt-win-reg.pl:713
896 #: ../tools/virt-win-reg.pl:719
897 msgid "*"
898 msgstr ""
899
900 #. type: textblock
901 #: ../src/guestfs.pod:390
902 msgid ""
903 "The kernel version that the command runs under will be different from what "
904 "it expects."
905 msgstr ""
906
907 #. type: textblock
908 #: ../src/guestfs.pod:395
909 msgid ""
910 "If the command needs to communicate with daemons, then most likely they "
911 "won't be running."
912 msgstr ""
913
914 #. type: textblock
915 #: ../src/guestfs.pod:400
916 msgid "The command will be running in limited memory."
917 msgstr ""
918
919 #. type: textblock
920 #: ../src/guestfs.pod:404
921 msgid ""
922 "The network may not be available unless you enable it (see L</"
923 "guestfs_set_network>)."
924 msgstr ""
925
926 #. type: textblock
927 #: ../src/guestfs.pod:409
928 msgid "Only supports Linux guests (not Windows, BSD, etc)."
929 msgstr ""
930
931 #. type: textblock
932 #: ../src/guestfs.pod:413
933 msgid ""
934 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
935 msgstr ""
936
937 #. type: textblock
938 #: ../src/guestfs.pod:418
939 msgid ""
940 "For SELinux guests, you may need to enable SELinux and load policy first.  "
941 "See L</SELINUX> in this manpage."
942 msgstr ""
943
944 #. type: textblock
945 #: ../src/guestfs.pod:423
946 msgid ""
947 "I<Security:> It is not safe to run commands from untrusted, possibly "
948 "malicious guests.  These commands may attempt to exploit your program by "
949 "sending unexpected output.  They could also try to exploit the Linux kernel "
950 "or qemu provided by the libguestfs appliance.  They could use the network "
951 "provided by the libguestfs appliance to bypass ordinary network partitions "
952 "and firewalls.  They could use the elevated privileges or different SELinux "
953 "context of your program to their advantage."
954 msgstr ""
955
956 #. type: textblock
957 #: ../src/guestfs.pod:432
958 msgid ""
959 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
960 "(a script which runs when the guest next boots normally), and to have this "
961 "script run the commands you want in the normal context of the running guest, "
962 "network security and so on.  For information about other security issues, "
963 "see L</SECURITY>."
964 msgstr ""
965
966 #. type: textblock
967 #: ../src/guestfs.pod:440
968 msgid ""
969 "The two main API calls to run commands are L</guestfs_command> and L</"
970 "guestfs_sh> (there are also variations)."
971 msgstr ""
972
973 #. type: textblock
974 #: ../src/guestfs.pod:443
975 msgid ""
976 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
977 "shell globs, redirections, etc will work."
978 msgstr ""
979
980 #. type: =head2
981 #: ../src/guestfs.pod:446
982 msgid "CONFIGURATION FILES"
983 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
984
985 #. type: textblock
986 #: ../src/guestfs.pod:448
987 msgid ""
988 "To read and write configuration files in Linux guest filesystems, we "
989 "strongly recommend using Augeas.  For example, Augeas understands how to "
990 "read and write, say, a Linux shadow password file or X.org configuration "
991 "file, and so avoids you having to write that code."
992 msgstr ""
993
994 #. type: textblock
995 #: ../src/guestfs.pod:453
996 msgid ""
997 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
998 "document Augeas itself here because there is excellent documentation on the "
999 "L<http://augeas.net/> website."
1000 msgstr ""
1001
1002 #. type: textblock
1003 #: ../src/guestfs.pod:457
1004 msgid ""
1005 "If you don't want to use Augeas (you fool!) then try calling L</"
1006 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1007 "over."
1008 msgstr ""
1009
1010 #. type: =head2
1011 #: ../src/guestfs.pod:461
1012 msgid "SELINUX"
1013 msgstr "SELINUX"
1014
1015 #. type: textblock
1016 #: ../src/guestfs.pod:463
1017 msgid ""
1018 "We support SELinux guests.  To ensure that labeling happens correctly in "
1019 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1020 msgstr ""
1021
1022 #. type: =item
1023 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395
1024 #: ../src/guestfs.pod:2426
1025 msgid "1."
1026 msgstr ""
1027
1028 #. type: textblock
1029 #: ../src/guestfs.pod:471
1030 msgid "Before launching, do:"
1031 msgstr ""
1032
1033 #. type: verbatim
1034 #: ../src/guestfs.pod:473
1035 #, no-wrap
1036 msgid ""
1037 " guestfs_set_selinux (g, 1);\n"
1038 "\n"
1039 msgstr ""
1040
1041 #. type: =item
1042 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399
1043 #: ../src/guestfs.pod:2451
1044 msgid "2."
1045 msgstr ""
1046
1047 #. type: textblock
1048 #: ../src/guestfs.pod:477
1049 msgid ""
1050 "After mounting the guest's filesystem(s), load the policy.  This is best "
1051 "done by running the L<load_policy(8)> command in the guest itself:"
1052 msgstr ""
1053
1054 #. type: verbatim
1055 #: ../src/guestfs.pod:481
1056 #, no-wrap
1057 msgid ""
1058 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1059 "\n"
1060 msgstr ""
1061
1062 #. type: textblock
1063 #: ../src/guestfs.pod:483
1064 msgid ""
1065 "(Older versions of C<load_policy> require you to specify the name of the "
1066 "policy file)."
1067 msgstr ""
1068
1069 #. type: =item
1070 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1405
1071 msgid "3."
1072 msgstr ""
1073
1074 #. type: textblock
1075 #: ../src/guestfs.pod:488
1076 msgid ""
1077 "Optionally, set the security context for the API.  The correct security "
1078 "context to use can only be known by inspecting the guest.  As an example:"
1079 msgstr ""
1080
1081 #. type: verbatim
1082 #: ../src/guestfs.pod:492
1083 #, no-wrap
1084 msgid ""
1085 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1086 "\n"
1087 msgstr ""
1088
1089 #. type: textblock
1090 #: ../src/guestfs.pod:496
1091 msgid "This will work for running commands and editing existing files."
1092 msgstr ""
1093
1094 #. type: textblock
1095 #: ../src/guestfs.pod:498
1096 msgid ""
1097 "When new files are created, you may need to label them explicitly, for "
1098 "example by running the external command C<restorecon pathname>."
1099 msgstr ""
1100
1101 #. type: =head2
1102 #: ../src/guestfs.pod:502
1103 msgid "UMASK"
1104 msgstr ""
1105
1106 #. type: textblock
1107 #: ../src/guestfs.pod:504
1108 msgid ""
1109 "Certain calls are affected by the current file mode creation mask (the "
1110 "\"umask\").  In particular ones which create files or directories, such as "
1111 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1112 "either the default mode that the file is created with or modifies the mode "
1113 "that you supply."
1114 msgstr ""
1115
1116 #. type: textblock
1117 #: ../src/guestfs.pod:510
1118 msgid ""
1119 "The default umask is C<022>, so files are created with modes such as C<0644> "
1120 "and directories with C<0755>."
1121 msgstr ""
1122
1123 #. type: textblock
1124 #: ../src/guestfs.pod:513
1125 msgid ""
1126 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1127 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1128 "guestfs_chmod> after creating each file or directory."
1129 msgstr ""
1130
1131 #. type: textblock
1132 #: ../src/guestfs.pod:517
1133 msgid "For more information about umask, see L<umask(2)>."
1134 msgstr ""
1135
1136 #. type: =head1
1137 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:767
1138 msgid "ENCRYPTED DISKS"
1139 msgstr ""
1140
1141 #. type: textblock
1142 #: ../src/guestfs.pod:521
1143 msgid ""
1144 "Libguestfs allows you to access Linux guests which have been encrypted using "
1145 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1146 "standard.  This includes nearly all whole disk encryption systems used by "
1147 "modern Linux guests."
1148 msgstr ""
1149
1150 #. type: textblock
1151 #: ../src/guestfs.pod:527
1152 msgid ""
1153 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1154 "returns the string C<crypto_LUKS>)."
1155 msgstr ""
1156
1157 #. type: textblock
1158 #: ../src/guestfs.pod:530
1159 msgid ""
1160 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1161 "will require the passphrase!"
1162 msgstr ""
1163
1164 #. type: textblock
1165 #: ../src/guestfs.pod:533
1166 msgid ""
1167 "Opening a LUKS device creates a new device mapper device called C</dev/"
1168 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1169 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1170 "from and encrypted to the underlying block device respectively."
1171 msgstr ""
1172
1173 #. type: textblock
1174 #: ../src/guestfs.pod:539
1175 msgid ""
1176 "LVM volume groups on the device can be made visible by calling L</"
1177 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1178 "(s) can now be mounted in the usual way."
1179 msgstr ""
1180
1181 #. type: textblock
1182 #: ../src/guestfs.pod:543
1183 msgid ""
1184 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1185 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1186 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1187 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1188 "underlying encrypted block device)."
1189 msgstr ""
1190
1191 #. type: =head2
1192 #: ../src/guestfs.pod:550
1193 msgid "INSPECTION"
1194 msgstr "ПЕРЕВІРКА"
1195
1196 #. type: textblock
1197 #: ../src/guestfs.pod:552
1198 msgid ""
1199 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1200 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1201 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1202 "version 1.5.3 the most frequently used part of this library has been "
1203 "rewritten in C and moved into the core code)."
1204 msgstr ""
1205
1206 #. type: textblock
1207 #: ../src/guestfs.pod:559
1208 msgid ""
1209 "Add all disks belonging to the unknown virtual machine and call L</"
1210 "guestfs_launch> in the usual way."
1211 msgstr ""
1212
1213 #. type: textblock
1214 #: ../src/guestfs.pod:562
1215 msgid ""
1216 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1217 "and certain heuristics, and returns a list of operating systems that were "
1218 "found.  An empty list means none were found.  A single element is the root "
1219 "filesystem of the operating system.  For dual- or multi-boot guests, "
1220 "multiple roots can be returned, each one corresponding to a separate "
1221 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1222 "world of virtualization, but since this scenario can happen, we have built "
1223 "libguestfs to deal with it.)"
1224 msgstr ""
1225
1226 #. type: textblock
1227 #: ../src/guestfs.pod:571
1228 msgid ""
1229 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1230 "to get additional details about that operating system.  For example, call L</"
1231 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1232 "Windows and Linux-based operating systems respectively."
1233 msgstr ""
1234
1235 #. type: textblock
1236 #: ../src/guestfs.pod:577
1237 msgid ""
1238 "Un*x-like and Linux-based operating systems usually consist of several "
1239 "filesystems which are mounted at boot time (for example, a separate boot "
1240 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1241 "filesystems correspond to mount points.  Call "
1242 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1243 "hash table like this example:"
1244 msgstr ""
1245
1246 #. type: verbatim
1247 #: ../src/guestfs.pod:584
1248 #, no-wrap
1249 msgid ""
1250 " /boot => /dev/sda1\n"
1251 " /     => /dev/vg_guest/lv_root\n"
1252 " /usr  => /dev/vg_guest/lv_usr\n"
1253 "\n"
1254 msgstr ""
1255
1256 #. type: textblock
1257 #: ../src/guestfs.pod:588
1258 msgid ""
1259 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1260 "filesystems as suggested."
1261 msgstr ""
1262
1263 #. type: textblock
1264 #: ../src/guestfs.pod:591
1265 msgid ""
1266 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1267 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1268 msgstr ""
1269
1270 #. type: textblock
1271 #: ../src/guestfs.pod:595
1272 msgid ""
1273 "Inspection currently only works for some common operating systems.  "
1274 "Contributors are welcome to send patches for other operating systems that we "
1275 "currently cannot detect."
1276 msgstr ""
1277
1278 #. type: textblock
1279 #: ../src/guestfs.pod:599
1280 msgid ""
1281 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1282 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1283 "encrypted devices."
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../src/guestfs.pod:603
1288 msgid ""
1289 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1290 "inspection and caches the results in the guest handle.  Subsequent calls to "
1291 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1292 "read the disks.  If you change the content of the guest disks, you can redo "
1293 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1294 "guestfs_inspect_list_applications> works a little differently from the other "
1295 "calls and does read the disks.  See documentation for that function for "
1296 "details)."
1297 msgstr ""
1298
1299 #. type: =head3
1300 #: ../src/guestfs.pod:612
1301 msgid "INSPECTING INSTALL DISKS"
1302 msgstr ""
1303
1304 #. type: textblock
1305 #: ../src/guestfs.pod:614
1306 msgid ""
1307 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1308 "CDs and more."
1309 msgstr ""
1310
1311 #. type: textblock
1312 #: ../src/guestfs.pod:617
1313 msgid ""
1314 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1315 "system, which currently can be C<installed> (a regular operating system) or "
1316 "C<installer> (some sort of install disk)."
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../src/guestfs.pod:621
1321 msgid ""
1322 "Further information is available about the operating system that can be "
1323 "installed using the regular inspection APIs like L</"
1324 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1325 msgstr ""
1326
1327 #. type: textblock
1328 #: ../src/guestfs.pod:626
1329 msgid ""
1330 "Some additional information specific to installer disks is also available "
1331 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1332 "guestfs_inspect_is_multipart> calls."
1333 msgstr ""
1334
1335 #. type: =head2
1336 #: ../src/guestfs.pod:631
1337 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1338 msgstr ""
1339
1340 #. type: textblock
1341 #: ../src/guestfs.pod:633
1342 msgid ""
1343 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1344 "ntfs-3g.org/> driver."
1345 msgstr ""
1346
1347 #. type: =head3
1348 #: ../src/guestfs.pod:636
1349 msgid "DRIVE LETTERS AND PATHS"
1350 msgstr ""
1351
1352 #. type: textblock
1353 #: ../src/guestfs.pod:638
1354 msgid ""
1355 "DOS and Windows still use drive letters, and the filesystems are always "
1356 "treated as case insensitive by Windows itself, and therefore you might find "
1357 "a Windows configuration file referring to a path like C<c:\\windows"
1358 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1359 "might be referred to as C</WINDOWS/System32>."
1360 msgstr ""
1361
1362 #. type: textblock
1363 #: ../src/guestfs.pod:644
1364 msgid ""
1365 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
1366 "L</guestfs_inspect_get_drive_mappings>)"
1367 msgstr ""
1368
1369 #. type: textblock
1370 #: ../src/guestfs.pod:647
1371 msgid ""
1372 "Dealing with separator characters (backslash vs forward slash) is outside "
1373 "the scope of libguestfs, but usually a simple character replacement will "
1374 "work."
1375 msgstr ""
1376
1377 #. type: textblock
1378 #: ../src/guestfs.pod:651
1379 msgid ""
1380 "To resolve the case insensitivity of paths, call L</"
1381 "guestfs_case_sensitive_path>."
1382 msgstr ""
1383
1384 #. type: =head3
1385 #: ../src/guestfs.pod:654
1386 msgid "ACCESSING THE WINDOWS REGISTRY"
1387 msgstr ""
1388
1389 #. type: textblock
1390 #: ../src/guestfs.pod:656
1391 msgid ""
1392 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1393 "files, through the library C<hivex> which is part of the libguestfs project "
1394 "although ships as a separate tarball.  You have to locate and download the "
1395 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1396 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1397 "reg(1)> for more help on this issue."
1398 msgstr ""
1399
1400 #. type: =head3
1401 #: ../src/guestfs.pod:664
1402 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1403 msgstr ""
1404
1405 #. type: textblock
1406 #: ../src/guestfs.pod:666
1407 msgid ""
1408 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1409 "provide something which looks like a Linux symlink.  The way it tries to do "
1410 "the rewriting is described here:"
1411 msgstr ""
1412
1413 #. type: textblock
1414 #: ../src/guestfs.pod:670
1415 msgid ""
1416 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1417 "symbolic-links/>"
1418 msgstr ""
1419 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1420 "symbolic-links/>"
1421
1422 #. type: textblock
1423 #: ../src/guestfs.pod:672
1424 msgid ""
1425 "The essential problem is that ntfs-3g simply does not have enough "
1426 "information to do a correct job.  NTFS links can contain drive letters and "
1427 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1428 "It is almost certainly the case that libguestfs callers should ignore what "
1429 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1430 msgstr ""
1431
1432 #. type: textblock
1433 #: ../src/guestfs.pod:679
1434 msgid ""
1435 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1436 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1437 "attribute, and read the raw reparse data from that (you can find the format "
1438 "documented in various places around the web)."
1439 msgstr ""
1440
1441 #. type: =head3
1442 #: ../src/guestfs.pod:684
1443 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1444 msgstr ""
1445
1446 #. type: textblock
1447 #: ../src/guestfs.pod:686
1448 msgid ""
1449 "There are other useful extended attributes that can be read from ntfs-3g "
1450 "filesystems (using L</guestfs_getxattr>).  See:"
1451 msgstr ""
1452
1453 #. type: textblock
1454 #: ../src/guestfs.pod:689
1455 msgid ""
1456 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1457 msgstr ""
1458 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1459
1460 #. type: =head2
1461 #: ../src/guestfs.pod:691
1462 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1463 msgstr ""
1464
1465 #. type: textblock
1466 #: ../src/guestfs.pod:693
1467 msgid ""
1468 "Although we don't want to discourage you from using the C API, we will "
1469 "mention here that the same API is also available in other languages."
1470 msgstr ""
1471
1472 #. type: textblock
1473 #: ../src/guestfs.pod:696
1474 msgid ""
1475 "The API is broadly identical in all supported languages.  This means that "
1476 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1477 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1478 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1479 "each language."
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../src/guestfs.pod:702
1484 msgid ""
1485 "Error messages are automatically transformed into exceptions if the language "
1486 "supports it."
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../src/guestfs.pod:705
1491 msgid ""
1492 "We don't try to \"object orientify\" parts of the API in OO languages, "
1493 "although contributors are welcome to write higher level APIs above what we "
1494 "provide in their favourite languages if they wish."
1495 msgstr ""
1496
1497 #. type: =item
1498 #: ../src/guestfs.pod:711
1499 msgid "B<C++>"
1500 msgstr "B<C++>"
1501
1502 #. type: textblock
1503 #: ../src/guestfs.pod:713
1504 msgid ""
1505 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1506 "identical to the C API.  C++ classes and exceptions are not used."
1507 msgstr ""
1508
1509 #. type: =item
1510 #: ../src/guestfs.pod:717
1511 msgid "B<C#>"
1512 msgstr "B<C#>"
1513
1514 #. type: textblock
1515 #: ../src/guestfs.pod:719
1516 msgid ""
1517 "The C# bindings are highly experimental.  Please read the warnings at the "
1518 "top of C<csharp/Libguestfs.cs>."
1519 msgstr ""
1520
1521 #. type: =item
1522 #: ../src/guestfs.pod:722
1523 msgid "B<Haskell>"
1524 msgstr "B<Haskell>"
1525
1526 #. type: textblock
1527 #: ../src/guestfs.pod:724
1528 msgid ""
1529 "This is the only language binding that is working but incomplete.  Only "
1530 "calls which return simple integers have been bound in Haskell, and we are "
1531 "looking for help to complete this binding."
1532 msgstr ""
1533
1534 #. type: =item
1535 #: ../src/guestfs.pod:728
1536 msgid "B<Java>"
1537 msgstr "B<Java>"
1538
1539 #. type: textblock
1540 #: ../src/guestfs.pod:730
1541 msgid ""
1542 "Full documentation is contained in the Javadoc which is distributed with "
1543 "libguestfs."
1544 msgstr ""
1545
1546 #. type: =item
1547 #: ../src/guestfs.pod:733
1548 msgid "B<OCaml>"
1549 msgstr "B<OCaml>"
1550
1551 #. type: textblock
1552 #: ../src/guestfs.pod:735
1553 msgid "See L<guestfs-ocaml(3)>."
1554 msgstr "Див. L<guestfs-ocaml(3)>."
1555
1556 #. type: =item
1557 #: ../src/guestfs.pod:737
1558 msgid "B<Perl>"
1559 msgstr "B<Perl>"
1560
1561 #. type: textblock
1562 #: ../src/guestfs.pod:739
1563 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1564 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
1565
1566 #. type: =item
1567 #: ../src/guestfs.pod:741
1568 msgid "B<PHP>"
1569 msgstr "B<PHP>"
1570
1571 #. type: textblock
1572 #: ../src/guestfs.pod:743
1573 msgid ""
1574 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1575 "the php-libguestfs package for your distribution."
1576 msgstr ""
1577
1578 #. type: textblock
1579 #: ../src/guestfs.pod:746
1580 msgid "The PHP binding only works correctly on 64 bit machines."
1581 msgstr ""
1582
1583 #. type: =item
1584 #: ../src/guestfs.pod:748
1585 msgid "B<Python>"
1586 msgstr "B<Python>"
1587
1588 #. type: textblock
1589 #: ../src/guestfs.pod:750
1590 msgid "See L<guestfs-python(3)>."
1591 msgstr "Див. L<guestfs-python(3)>."
1592
1593 #. type: =item
1594 #: ../src/guestfs.pod:752
1595 msgid "B<Ruby>"
1596 msgstr "B<Ruby>"
1597
1598 #. type: textblock
1599 #: ../src/guestfs.pod:754
1600 msgid "See L<guestfs-ruby(3)>."
1601 msgstr "Див. L<guestfs-ruby(3)>."
1602
1603 #. type: =item
1604 #: ../src/guestfs.pod:756
1605 msgid "B<shell scripts>"
1606 msgstr "B<скрипти оболонки>"
1607
1608 #. type: textblock
1609 #: ../src/guestfs.pod:758
1610 msgid "See L<guestfish(1)>."
1611 msgstr "Див. L<guestfish(1)>."
1612
1613 #. type: =head2
1614 #: ../src/guestfs.pod:762
1615 msgid "LIBGUESTFS GOTCHAS"
1616 msgstr ""
1617
1618 #. type: textblock
1619 #: ../src/guestfs.pod:764
1620 msgid ""
1621 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1622 "system [...] that works in the way it is documented but is counterintuitive "
1623 "and almost invites mistakes.\""
1624 msgstr ""
1625
1626 #. type: textblock
1627 #: ../src/guestfs.pod:768
1628 msgid ""
1629 "Since we developed libguestfs and the associated tools, there are several "
1630 "things we would have designed differently, but are now stuck with for "
1631 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1632 "release, you can expect these to change.  Beware of them."
1633 msgstr ""
1634
1635 #. type: =item
1636 #: ../src/guestfs.pod:776
1637 msgid "Autosync / forgetting to sync."
1638 msgstr ""
1639
1640 #. type: textblock
1641 #: ../src/guestfs.pod:778
1642 msgid ""
1643 "I<Update:> Autosync is enabled by default for all API users starting from "
1644 "libguestfs 1.5.24.  This section only applies to older versions."
1645 msgstr ""
1646
1647 #. type: textblock
1648 #: ../src/guestfs.pod:781
1649 msgid ""
1650 "When modifying a filesystem from C or another language, you B<must> unmount "
1651 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1652 "libguestfs handle.  You can also call:"
1653 msgstr ""
1654
1655 #. type: verbatim
1656 #: ../src/guestfs.pod:785
1657 #, no-wrap
1658 msgid ""
1659 " guestfs_set_autosync (g, 1);\n"
1660 "\n"
1661 msgstr ""
1662
1663 #. type: textblock
1664 #: ../src/guestfs.pod:787
1665 msgid ""
1666 "to have the unmount/sync done automatically for you when the handle 'g' is "
1667 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1668 msgstr ""
1669
1670 #. type: textblock
1671 #: ../src/guestfs.pod:791
1672 msgid ""
1673 "If you forget to do this, then it is entirely possible that your changes "
1674 "won't be written out, or will be partially written, or (very rarely) that "
1675 "you'll get disk corruption."
1676 msgstr ""
1677
1678 #. type: textblock
1679 #: ../src/guestfs.pod:795
1680 msgid ""
1681 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1682 "guestfish scripts that forget to sync will work just fine, which can make "
1683 "this very puzzling if you are trying to debug a problem."
1684 msgstr ""
1685
1686 #. type: =item
1687 #: ../src/guestfs.pod:799
1688 msgid "Mount option C<-o sync> should not be the default."
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../src/guestfs.pod:801
1693 msgid ""
1694 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1695 "However C<-o sync> does not add any reliability benefit, but does have a "
1696 "very large performance impact."
1697 msgstr ""
1698
1699 #. type: textblock
1700 #: ../src/guestfs.pod:805
1701 msgid ""
1702 "The work around is to use L</guestfs_mount_options> and set the mount "
1703 "options that you actually want to use."
1704 msgstr ""
1705
1706 #. type: =item
1707 #: ../src/guestfs.pod:808
1708 msgid "Read-only should be the default."
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../src/guestfs.pod:810
1713 msgid ""
1714 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1715 "specify I<--rw> if you want to make changes to the image."
1716 msgstr ""
1717
1718 #. type: textblock
1719 #: ../src/guestfs.pod:813
1720 msgid "This would reduce the potential to corrupt live VM images."
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../src/guestfs.pod:815
1725 msgid ""
1726 "Note that many filesystems change the disk when you just mount and unmount, "
1727 "even if you didn't perform any writes.  You need to use L</"
1728 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1729 msgstr ""
1730
1731 #. type: =item
1732 #: ../src/guestfs.pod:819
1733 msgid "guestfish command line is hard to use."
1734 msgstr ""
1735
1736 #. type: textblock
1737 #: ../src/guestfs.pod:821
1738 msgid ""
1739 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1740 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1741 "exist, so it fails.  In earlier versions of guestfish the error message was "
1742 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1743 "we should have used C<guestfish -c command> to run commands."
1744 msgstr ""
1745
1746 #. type: =item
1747 #: ../src/guestfs.pod:828
1748 msgid "guestfish megabyte modifiers don't work right on all commands"
1749 msgstr ""
1750
1751 #. type: textblock
1752 #: ../src/guestfs.pod:830
1753 msgid ""
1754 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1755 "other modifiers).  What guestfish actually does is to multiply the number "
1756 "part by the modifier part and pass the result to the C API.  However this "
1757 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1758 "expecting some other unit (eg. megabytes)."
1759 msgstr ""
1760
1761 #. type: textblock
1762 #: ../src/guestfs.pod:837
1763 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1764 msgstr ""
1765
1766 #. type: verbatim
1767 #: ../src/guestfs.pod:839
1768 #, no-wrap
1769 msgid ""
1770 " lvcreate LV VG 100M\n"
1771 "\n"
1772 msgstr ""
1773
1774 #. type: textblock
1775 #: ../src/guestfs.pod:841
1776 msgid ""
1777 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1778 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1779 "megabytes * megabytes) logical volume.  The error message you get from this "
1780 "is also a little obscure."
1781 msgstr ""
1782
1783 #. type: textblock
1784 #: ../src/guestfs.pod:846
1785 msgid ""
1786 "This could be fixed in the generator by specially marking parameters and "
1787 "return values which take bytes or other units."
1788 msgstr ""
1789
1790 #. type: =item
1791 #: ../src/guestfs.pod:849
1792 msgid "Ambiguity between devices and paths"
1793 msgstr ""
1794
1795 #. type: textblock
1796 #: ../src/guestfs.pod:851
1797 msgid ""
1798 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1799 "sdb2>) and a similar pathname.  A file might just happen to be called "
1800 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1801 msgstr ""
1802
1803 #. type: textblock
1804 #: ../src/guestfs.pod:856
1805 msgid ""
1806 "In the current API we usually resolve this ambiguity by having two separate "
1807 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1808 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1809 "detecting if the path supplied begins with C</dev/>."
1810 msgstr ""
1811
1812 #. type: textblock
1813 #: ../src/guestfs.pod:862
1814 msgid ""
1815 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1816 "make paths/devices into structured names.  One way to do this would be to "
1817 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1818 "aspect of grub.  Another way would be to use a structured type, equivalent "
1819 "to this OCaml type:"
1820 msgstr ""
1821
1822 #. type: verbatim
1823 #: ../src/guestfs.pod:868
1824 #, no-wrap
1825 msgid ""
1826 " type path = Path of string | Device of int | Partition of int * int\n"
1827 "\n"
1828 msgstr ""
1829
1830 #. type: textblock
1831 #: ../src/guestfs.pod:870
1832 msgid "which would allow you to pass arguments like:"
1833 msgstr ""
1834
1835 #. type: verbatim
1836 #: ../src/guestfs.pod:872
1837 #, no-wrap
1838 msgid ""
1839 " Path \"/foo/bar\"\n"
1840 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1841 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1842 " Path \"/dev/sdb2\"    (* not a device *)\n"
1843 "\n"
1844 msgstr ""
1845
1846 #. type: textblock
1847 #: ../src/guestfs.pod:877
1848 msgid ""
1849 "As you can see there are still problems to resolve even with this "
1850 "representation.  Also consider how it might work in guestfish."
1851 msgstr ""
1852
1853 #. type: =head2
1854 #: ../src/guestfs.pod:882
1855 msgid "KEYS AND PASSPHRASES"
1856 msgstr ""
1857
1858 #. type: textblock
1859 #: ../src/guestfs.pod:884
1860 msgid ""
1861 "Certain libguestfs calls take a parameter that contains sensitive key "
1862 "material, passed in as a C string."
1863 msgstr ""
1864
1865 #. type: textblock
1866 #: ../src/guestfs.pod:887
1867 msgid ""
1868 "In the future we would hope to change the libguestfs implementation so that "
1869 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1870 "swap.  However this is I<not> done at the moment, because of the complexity "
1871 "of such an implementation."
1872 msgstr ""
1873
1874 #. type: textblock
1875 #: ../src/guestfs.pod:892
1876 msgid ""
1877 "Therefore you should be aware that any key parameter you pass to libguestfs "
1878 "might end up being written out to the swap partition.  If this is a concern, "
1879 "scrub the swap partition or don't use libguestfs on encrypted devices."
1880 msgstr ""
1881
1882 #. type: =head2
1883 #: ../src/guestfs.pod:897
1884 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1885 msgstr ""
1886
1887 #. type: textblock
1888 #: ../src/guestfs.pod:899
1889 msgid ""
1890 "All high-level libguestfs actions are synchronous.  If you want to use "
1891 "libguestfs asynchronously then you must create a thread."
1892 msgstr ""
1893
1894 #. type: textblock
1895 #: ../src/guestfs.pod:902
1896 msgid ""
1897 "Only use the handle from a single thread.  Either use the handle exclusively "
1898 "from one thread, or provide your own mutex so that two threads cannot issue "
1899 "calls on the same handle at the same time."
1900 msgstr ""
1901
1902 #. type: textblock
1903 #: ../src/guestfs.pod:906
1904 msgid ""
1905 "See the graphical program guestfs-browser for one possible architecture for "
1906 "multithreaded programs using libvirt and libguestfs."
1907 msgstr ""
1908
1909 #. type: =head2
1910 #: ../src/guestfs.pod:909
1911 msgid "PATH"
1912 msgstr "ШЛЯХ"
1913
1914 #. type: textblock
1915 #: ../src/guestfs.pod:911
1916 msgid ""
1917 "Libguestfs needs a supermin appliance, which it finds by looking along an "
1918 "internal path."
1919 msgstr ""
1920
1921 #. type: textblock
1922 #: ../src/guestfs.pod:914
1923 msgid ""
1924 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1925 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1926 msgstr ""
1927
1928 #. type: textblock
1929 #: ../src/guestfs.pod:917
1930 msgid ""
1931 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1932 "to change the directories that libguestfs will search in.  The value is a "
1933 "colon-separated list of paths.  The current directory is I<not> searched "
1934 "unless the path contains an empty element or C<.>.  For example "
1935 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1936 "then C</usr/lib/guestfs>."
1937 msgstr ""
1938
1939 #. type: =head2
1940 #: ../src/guestfs.pod:924
1941 msgid "QEMU WRAPPERS"
1942 msgstr ""
1943
1944 #. type: textblock
1945 #: ../src/guestfs.pod:926
1946 msgid ""
1947 "If you want to compile your own qemu, run qemu from a non-standard location, "
1948 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1949 "around qemu."
1950 msgstr ""
1951
1952 #. type: textblock
1953 #: ../src/guestfs.pod:930
1954 msgid ""
1955 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1956 "last command in the shell script (so that qemu replaces the shell and "
1957 "becomes the direct child of the libguestfs-using program).  If you don't do "
1958 "this, then the qemu process won't be cleaned up correctly."
1959 msgstr ""
1960
1961 #. type: textblock
1962 #: ../src/guestfs.pod:935
1963 msgid ""
1964 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1965 "source:"
1966 msgstr ""
1967
1968 #. type: verbatim
1969 #: ../src/guestfs.pod:938
1970 #, no-wrap
1971 msgid ""
1972 " #!/bin/sh -\n"
1973 " qemudir=/home/rjones/d/qemu\n"
1974 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1975 "\n"
1976 msgstr ""
1977
1978 #. type: textblock
1979 #: ../src/guestfs.pod:942
1980 msgid ""
1981 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1982 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1983 "example:"
1984 msgstr ""
1985
1986 #. type: verbatim
1987 #: ../src/guestfs.pod:946
1988 #, no-wrap
1989 msgid ""
1990 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1991 "\n"
1992 msgstr ""
1993
1994 #. type: textblock
1995 #: ../src/guestfs.pod:948
1996 msgid ""
1997 "Note that libguestfs also calls qemu with the -help and -version options in "
1998 "order to determine features."
1999 msgstr ""
2000
2001 #. type: =head2
2002 #: ../src/guestfs.pod:951
2003 msgid "ATTACHING TO RUNNING DAEMONS"
2004 msgstr ""
2005
2006 #. type: textblock
2007 #: ../src/guestfs.pod:953
2008 msgid ""
2009 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2010 "babies.  Use with caution."
2011 msgstr ""
2012
2013 #. type: textblock
2014 #: ../src/guestfs.pod:956
2015 msgid ""
2016 "I<Note (2):> This section explains how to attach to a running daemon from a "
2017 "low level perspective.  For most users, simply using virt tools such as "
2018 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2019 msgstr ""
2020
2021 #. type: =head3
2022 #: ../src/guestfs.pod:960
2023 msgid "Using guestfs_set_attach_method"
2024 msgstr ""
2025
2026 #. type: textblock
2027 #: ../src/guestfs.pod:962
2028 msgid ""
2029 "By calling L</guestfs_set_attach_method> you can change how the library "
2030 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2031 "ARCHITECTURE> for some background)."
2032 msgstr ""
2033
2034 #. type: textblock
2035 #: ../src/guestfs.pod:966
2036 msgid ""
2037 "The normal attach method is C<appliance>, where a small appliance is created "
2038 "containing the daemon, and then the library connects to this."
2039 msgstr ""
2040
2041 #. type: textblock
2042 #: ../src/guestfs.pod:969
2043 msgid ""
2044 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2045 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2046 "daemon over the Unix domain socket."
2047 msgstr ""
2048
2049 #. type: textblock
2050 #: ../src/guestfs.pod:973
2051 msgid ""
2052 "The normal use for this is to connect to a running virtual machine that "
2053 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2054 "files inside the live virtual machine."
2055 msgstr ""
2056
2057 #. type: =head3
2058 #: ../src/guestfs.pod:977
2059 msgid "Using guestfs_add_domain with live flag"
2060 msgstr ""
2061
2062 #. type: textblock
2063 #: ../src/guestfs.pod:979
2064 msgid ""
2065 "L</guestfs_add_domain> provides some help for getting the correct attach "
2066 "method.  If you pass the C<live> option to this function, then (if the "
2067 "virtual machine is running) it will examine the libvirt XML looking for a "
2068 "virtio-serial channel to connect to:"
2069 msgstr ""
2070
2071 #. type: verbatim
2072 #: ../src/guestfs.pod:985
2073 #, no-wrap
2074 msgid ""
2075 " <domain>\n"
2076 "   ...\n"
2077 "   <devices>\n"
2078 "     ...\n"
2079 "     <channel type='unix'>\n"
2080 "       <source mode='bind' path='/path/to/socket'/>\n"
2081 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2082 "     </channel>\n"
2083 "     ...\n"
2084 "   </devices>\n"
2085 " </domain>\n"
2086 "\n"
2087 msgstr ""
2088
2089 #. type: textblock
2090 #: ../src/guestfs.pod:997
2091 msgid ""
2092 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2093 "method to C<unix:/path/to/socket>."
2094 msgstr ""
2095
2096 #. type: textblock
2097 #: ../src/guestfs.pod:1000
2098 msgid ""
2099 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2100 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2101 "to attach to and modify live virtual machines."
2102 msgstr ""
2103
2104 #. type: textblock
2105 #: ../src/guestfs.pod:1004
2106 msgid ""
2107 "The virtual machine needs to have been set up beforehand so that it has the "
2108 "virtio-serial channel and so that guestfsd is running inside it."
2109 msgstr ""
2110
2111 #. type: =head2
2112 #: ../src/guestfs.pod:1008
2113 msgid "ABI GUARANTEE"
2114 msgstr ""
2115
2116 #. type: textblock
2117 #: ../src/guestfs.pod:1010
2118 msgid ""
2119 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2120 "actions as outlined in this section.  Although we will deprecate some "
2121 "actions, for example if they get replaced by newer calls, we will keep the "
2122 "old actions forever.  This allows you the developer to program in confidence "
2123 "against the libguestfs API."
2124 msgstr ""
2125
2126 #. type: =head2
2127 #: ../src/guestfs.pod:1016
2128 msgid "BLOCK DEVICE NAMING"
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../src/guestfs.pod:1018
2133 msgid ""
2134 "In the kernel there is now quite a profusion of schemata for naming block "
2135 "devices (in this context, by I<block device> I mean a physical or virtual "
2136 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2137 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2138 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2139 "for the old IDE driver (particularly for SATA devices) those devices also "
2140 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2141 "paravirtualized drivers.  This has created several different naming systems, "
2142 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2143 msgstr ""
2144
2145 #. type: textblock
2146 #: ../src/guestfs.pod:1030
2147 msgid ""
2148 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2149 "Linux kernel to access block devices.  We can run a variety of appliances "
2150 "based on a variety of Linux kernels."
2151 msgstr ""
2152
2153 #. type: textblock
2154 #: ../src/guestfs.pod:1034
2155 msgid ""
2156 "This causes a problem for libguestfs because many API calls use device or "
2157 "partition names.  Working scripts and the recipe (example) scripts that we "
2158 "make available over the internet could fail if the naming scheme changes."
2159 msgstr ""
2160
2161 #. type: textblock
2162 #: ../src/guestfs.pod:1039
2163 msgid ""
2164 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2165 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2166 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2167 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2168 msgstr ""
2169
2170 #. type: textblock
2171 #: ../src/guestfs.pod:1045
2172 msgid ""
2173 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2174 "L</guestfs_list_partitions> and similar calls return the true names of the "
2175 "devices and partitions as known to the appliance."
2176 msgstr ""
2177
2178 #. type: =head3
2179 #: ../src/guestfs.pod:1050
2180 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2181 msgstr ""
2182
2183 #. type: textblock
2184 #: ../src/guestfs.pod:1052
2185 msgid ""
2186 "Usually this translation is transparent.  However in some (very rare)  cases "
2187 "you may need to know the exact algorithm.  Such cases include where you use "
2188 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2189 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2190 msgstr ""
2191
2192 #. type: textblock
2193 #: ../src/guestfs.pod:1058
2194 msgid ""
2195 "The algorithm is applied only to I<parameters> which are known to be either "
2196 "device or partition names.  Return values from functions such as L</"
2197 "guestfs_list_devices> are never changed."
2198 msgstr ""
2199
2200 #. type: textblock
2201 #: ../src/guestfs.pod:1066
2202 msgid "Is the string a parameter which is a device or partition name?"
2203 msgstr ""
2204
2205 #. type: textblock
2206 #: ../src/guestfs.pod:1070
2207 msgid "Does the string begin with C</dev/sd>?"
2208 msgstr ""
2209
2210 #. type: textblock
2211 #: ../src/guestfs.pod:1074
2212 msgid ""
2213 "Does the named device exist? If so, we use that device.  However if I<not> "
2214 "then we continue with this algorithm."
2215 msgstr ""
2216
2217 #. type: textblock
2218 #: ../src/guestfs.pod:1079
2219 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2220 msgstr ""
2221
2222 #. type: textblock
2223 #: ../src/guestfs.pod:1081
2224 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2225 msgstr ""
2226
2227 #. type: textblock
2228 #: ../src/guestfs.pod:1083
2229 msgid "If that named device exists, use it.  If not, continue."
2230 msgstr ""
2231
2232 #. type: textblock
2233 #: ../src/guestfs.pod:1087
2234 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../src/guestfs.pod:1089
2239 msgid "If that named device exists, use it.  If not, return an error."
2240 msgstr ""
2241
2242 #. type: =head3
2243 #: ../src/guestfs.pod:1093
2244 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../src/guestfs.pod:1095
2249 msgid ""
2250 "Although the standard naming scheme and automatic translation is useful for "
2251 "simple programs and guestfish scripts, for larger programs it is best not to "
2252 "rely on this mechanism."
2253 msgstr ""
2254
2255 #. type: textblock
2256 #: ../src/guestfs.pod:1099
2257 msgid ""
2258 "Where possible for maximum future portability programs using libguestfs "
2259 "should use these future-proof techniques:"
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../src/guestfs.pod:1106
2264 msgid ""
2265 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2266 "device names, and then use those names directly."
2267 msgstr ""
2268
2269 #. type: textblock
2270 #: ../src/guestfs.pod:1109
2271 msgid ""
2272 "Since those device names exist by definition, they will never be translated."
2273 msgstr ""
2274
2275 #. type: textblock
2276 #: ../src/guestfs.pod:1114
2277 msgid ""
2278 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2279 "filesystem labels."
2280 msgstr ""
2281
2282 #. type: =head1
2283 #: ../src/guestfs.pod:1119
2284 msgid "SECURITY"
2285 msgstr "БЕЗПЕКА"
2286
2287 #. type: textblock
2288 #: ../src/guestfs.pod:1121
2289 msgid ""
2290 "This section discusses security implications of using libguestfs, "
2291 "particularly with untrusted or malicious guests or disk images."
2292 msgstr ""
2293
2294 #. type: =head2
2295 #: ../src/guestfs.pod:1124
2296 msgid "GENERAL SECURITY CONSIDERATIONS"
2297 msgstr ""
2298
2299 #. type: textblock
2300 #: ../src/guestfs.pod:1126
2301 msgid ""
2302 "Be careful with any files or data that you download from a guest (by "
2303 "\"download\" we mean not just the L</guestfs_download> command but any "
2304 "command that reads files, filenames, directories or anything else from a "
2305 "disk image).  An attacker could manipulate the data to fool your program "
2306 "into doing the wrong thing.  Consider cases such as:"
2307 msgstr ""
2308
2309 #. type: textblock
2310 #: ../src/guestfs.pod:1136
2311 msgid "the data (file etc) not being present"
2312 msgstr ""
2313
2314 #. type: textblock
2315 #: ../src/guestfs.pod:1140
2316 msgid "being present but empty"
2317 msgstr ""
2318
2319 #. type: textblock
2320 #: ../src/guestfs.pod:1144
2321 msgid "being much larger than normal"
2322 msgstr ""
2323
2324 #. type: textblock
2325 #: ../src/guestfs.pod:1148
2326 msgid "containing arbitrary 8 bit data"
2327 msgstr ""
2328
2329 #. type: textblock
2330 #: ../src/guestfs.pod:1152
2331 msgid "being in an unexpected character encoding"
2332 msgstr ""
2333
2334 #. type: textblock
2335 #: ../src/guestfs.pod:1156
2336 msgid "containing homoglyphs."
2337 msgstr ""
2338
2339 #. type: =head2
2340 #: ../src/guestfs.pod:1160
2341 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2342 msgstr ""
2343
2344 #. type: textblock
2345 #: ../src/guestfs.pod:1162
2346 msgid ""
2347 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2348 "(VFS) module can sometimes be escalated into exploits by deliberately "
2349 "creating a malicious, malformed filesystem.  These exploits are very severe "
2350 "for two reasons.  Firstly there are very many filesystem drivers in the "
2351 "kernel, and many of them are infrequently used and not much developer "
2352 "attention has been paid to the code.  Linux userspace helps potential "
2353 "crackers by detecting the filesystem type and automatically choosing the "
2354 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2355 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2356 "exploit (worse in some ways), giving immediate and total access to the "
2357 "system right down to the hardware level."
2358 msgstr ""
2359
2360 #. type: textblock
2361 #: ../src/guestfs.pod:1175
2362 msgid ""
2363 "That explains why you should never mount a filesystem from an untrusted "
2364 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2365 "inside a qemu virtual machine, usually running as a non-root user.  The "
2366 "attacker would need to write a filesystem which first exploited the kernel, "
2367 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2368 "the libguestfs protocol, and finally to be as serious as the host kernel "
2369 "exploit it would need to escalate its privileges to root.  This multi-step "
2370 "escalation, performed by a static piece of data, is thought to be extremely "
2371 "hard to do, although we never say 'never' about security issues."
2372 msgstr ""
2373
2374 #. type: textblock
2375 #: ../src/guestfs.pod:1186
2376 msgid ""
2377 "In any case callers can reduce the attack surface by forcing the filesystem "
2378 "type when mounting (use L</guestfs_mount_vfs>)."
2379 msgstr ""
2380
2381 #. type: =head2
2382 #: ../src/guestfs.pod:1189
2383 msgid "PROTOCOL SECURITY"
2384 msgstr ""
2385
2386 #. type: textblock
2387 #: ../src/guestfs.pod:1191
2388 msgid ""
2389 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2390 "defined upper message size.  However a program that uses libguestfs must "
2391 "also take care - for example you can write a program that downloads a binary "
2392 "from a disk image and executes it locally, and no amount of protocol "
2393 "security will save you from the consequences."
2394 msgstr ""
2395
2396 #. type: =head2
2397 #: ../src/guestfs.pod:1197
2398 msgid "INSPECTION SECURITY"
2399 msgstr ""
2400
2401 #. type: textblock
2402 #: ../src/guestfs.pod:1199
2403 msgid ""
2404 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2405 "directly from the guest, and these could contain any 8 bit data.  Callers "
2406 "should be careful to escape these before printing them to a structured file "
2407 "(for example, use HTML escaping if creating a web page)."
2408 msgstr ""
2409
2410 #. type: textblock
2411 #: ../src/guestfs.pod:1205
2412 msgid ""
2413 "Guest configuration may be altered in unusual ways by the administrator of "
2414 "the virtual machine, and may not reflect reality (particularly for untrusted "
2415 "or actively malicious guests).  For example we parse the hostname from "
2416 "configuration files like C</etc/sysconfig/network> that we find in the "
2417 "guest, but the guest administrator can easily manipulate these files to "
2418 "provide the wrong hostname."
2419 msgstr ""
2420
2421 #. type: textblock
2422 #: ../src/guestfs.pod:1213
2423 msgid ""
2424 "The inspection API parses guest configuration using two external libraries: "
2425 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2426 "designed to be robust in the face of malicious data, although denial of "
2427 "service attacks are still possible, for example with oversized configuration "
2428 "files."
2429 msgstr ""
2430
2431 #. type: =head2
2432 #: ../src/guestfs.pod:1219
2433 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2434 msgstr ""
2435
2436 #. type: textblock
2437 #: ../src/guestfs.pod:1221
2438 msgid ""
2439 "Be very cautious about running commands from the guest.  By running a "
2440 "command in the guest, you are giving CPU time to a binary that you do not "
2441 "control, under the same user account as the library, albeit wrapped in qemu "
2442 "virtualization.  More information and alternatives can be found in the "
2443 "section L</RUNNING COMMANDS>."
2444 msgstr ""
2445
2446 #. type: =head2
2447 #: ../src/guestfs.pod:1227
2448 msgid "CVE-2010-3851"
2449 msgstr "CVE-2010-3851"
2450
2451 #. type: textblock
2452 #: ../src/guestfs.pod:1229
2453 msgid "https://bugzilla.redhat.com/642934"
2454 msgstr "https://bugzilla.redhat.com/642934"
2455
2456 #. type: textblock
2457 #: ../src/guestfs.pod:1231
2458 msgid ""
2459 "This security bug concerns the automatic disk format detection that qemu "
2460 "does on disk images."
2461 msgstr ""
2462
2463 #. type: textblock
2464 #: ../src/guestfs.pod:1234
2465 msgid ""
2466 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2467 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2468 "for one of the known headers, and if none is found then assuming the disk "
2469 "image must be raw."
2470 msgstr ""
2471
2472 #. type: textblock
2473 #: ../src/guestfs.pod:1239
2474 msgid ""
2475 "This allows a guest which has been given a raw disk image to write some "
2476 "other header.  At next boot (or when the disk image is accessed by "
2477 "libguestfs) qemu would do autodetection and think the disk image format was, "
2478 "say, qcow2 based on the header written by the guest."
2479 msgstr ""
2480
2481 #. type: textblock
2482 #: ../src/guestfs.pod:1244
2483 msgid ""
2484 "This in itself would not be a problem, but qcow2 offers many features, one "
2485 "of which is to allow a disk image to refer to another image (called the "
2486 "\"backing disk\").  It does this by placing the path to the backing disk "
2487 "into the qcow2 header.  This path is not validated and could point to any "
2488 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2489 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2490 "control of the attacker."
2491 msgstr ""
2492
2493 #. type: textblock
2494 #: ../src/guestfs.pod:1252
2495 msgid ""
2496 "In libguestfs this is rather hard to exploit except under two circumstances:"
2497 msgstr ""
2498
2499 #. type: textblock
2500 #: ../src/guestfs.pod:1259
2501 msgid "You have enabled the network or have opened the disk in write mode."
2502 msgstr ""
2503
2504 #. type: textblock
2505 #: ../src/guestfs.pod:1263
2506 msgid ""
2507 "You are also running untrusted code from the guest (see L</RUNNING "
2508 "COMMANDS>)."
2509 msgstr ""
2510
2511 #. type: textblock
2512 #: ../src/guestfs.pod:1268
2513 msgid ""
2514 "The way to avoid this is to specify the expected disk format when adding "
2515 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2516 "should always do this if the disk is raw format, and it's a good idea for "
2517 "other cases too."
2518 msgstr ""
2519
2520 #. type: textblock
2521 #: ../src/guestfs.pod:1273
2522 msgid ""
2523 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2524 "format is fetched from libvirt and passed through."
2525 msgstr ""
2526
2527 #. type: textblock
2528 #: ../src/guestfs.pod:1276
2529 msgid ""
2530 "For libguestfs tools, use the I<--format> command line parameter as "
2531 "appropriate."
2532 msgstr ""
2533
2534 #. type: =head1
2535 #: ../src/guestfs.pod:1279
2536 msgid "CONNECTION MANAGEMENT"
2537 msgstr ""
2538
2539 #. type: =head2
2540 #: ../src/guestfs.pod:1281
2541 msgid "guestfs_h *"
2542 msgstr ""
2543
2544 #. type: textblock
2545 #: ../src/guestfs.pod:1283
2546 msgid ""
2547 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2548 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2549 "handle and release all resources used."
2550 msgstr ""
2551
2552 #. type: textblock
2553 #: ../src/guestfs.pod:1287
2554 msgid ""
2555 "For information on using multiple handles and threads, see the section L</"
2556 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
2557 msgstr ""
2558
2559 #. type: =head2
2560 #: ../src/guestfs.pod:1290
2561 msgid "guestfs_create"
2562 msgstr ""
2563
2564 #. type: verbatim
2565 #: ../src/guestfs.pod:1292
2566 #, no-wrap
2567 msgid ""
2568 " guestfs_h *guestfs_create (void);\n"
2569 "\n"
2570 msgstr ""
2571
2572 #. type: textblock
2573 #: ../src/guestfs.pod:1294
2574 msgid "Create a connection handle."
2575 msgstr ""
2576
2577 #. type: textblock
2578 #: ../src/guestfs.pod:1296
2579 msgid ""
2580 "On success this returns a non-NULL pointer to a handle.  On error it returns "
2581 "NULL."
2582 msgstr ""
2583
2584 #. type: textblock
2585 #: ../src/guestfs.pod:1299
2586 msgid ""
2587 "You have to \"configure\" the handle after creating it.  This includes "
2588 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
2589 "handle at least once."
2590 msgstr ""
2591
2592 #. type: textblock
2593 #: ../src/guestfs.pod:1303
2594 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2595 msgstr ""
2596
2597 #. type: textblock
2598 #: ../src/guestfs.pod:1305
2599 msgid ""
2600 "You may also want to configure error handling for the handle.  See the L</"
2601 "ERROR HANDLING> section below."
2602 msgstr ""
2603
2604 #. type: =head2
2605 #: ../src/guestfs.pod:1308
2606 msgid "guestfs_close"
2607 msgstr ""
2608
2609 #. type: verbatim
2610 #: ../src/guestfs.pod:1310
2611 #, no-wrap
2612 msgid ""
2613 " void guestfs_close (guestfs_h *g);\n"
2614 "\n"
2615 msgstr ""
2616
2617 #. type: textblock
2618 #: ../src/guestfs.pod:1312
2619 msgid "This closes the connection handle and frees up all resources used."
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../src/guestfs.pod:1314
2624 msgid ""
2625 "If autosync was set on the handle and the handle was launched, then this "
2626 "implicitly calls various functions to unmount filesystems and sync the "
2627 "disk.  See L</guestfs_set_autosync> for more details."
2628 msgstr ""
2629
2630 #. type: textblock
2631 #: ../src/guestfs.pod:1318
2632 msgid "If a close callback was set on the handle, then it is called."
2633 msgstr ""
2634
2635 #. type: =head1
2636 #: ../src/guestfs.pod:1320
2637 msgid "ERROR HANDLING"
2638 msgstr "ОБРОБКА ПОМИЛОК"
2639
2640 #. type: textblock
2641 #: ../src/guestfs.pod:1322
2642 msgid ""
2643 "API functions can return errors.  For example, almost all functions that "
2644 "return C<int> will return C<-1> to indicate an error."
2645 msgstr ""
2646
2647 #. type: textblock
2648 #: ../src/guestfs.pod:1325
2649 msgid ""
2650 "Additional information is available for errors: an error message string and "
2651 "optionally an error number (errno) if the thing that failed was a system "
2652 "call."
2653 msgstr ""
2654
2655 #. type: textblock
2656 #: ../src/guestfs.pod:1329
2657 msgid ""
2658 "You can get at the additional information about the last error on the handle "
2659 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2660 "up an error handler with L</guestfs_set_error_handler>."
2661 msgstr ""
2662
2663 #. type: textblock
2664 #: ../src/guestfs.pod:1334
2665 msgid ""
2666 "When the handle is created, a default error handler is installed which "
2667 "prints the error message string to C<stderr>.  For small short-running "
2668 "command line programs it is sufficient to do:"
2669 msgstr ""
2670
2671 #. type: verbatim
2672 #: ../src/guestfs.pod:1338
2673 #, no-wrap
2674 msgid ""
2675 " if (guestfs_launch (g) == -1)\n"
2676 "   exit (EXIT_FAILURE);\n"
2677 "\n"
2678 msgstr ""
2679
2680 #. type: textblock
2681 #: ../src/guestfs.pod:1341
2682 msgid ""
2683 "since the default error handler will ensure that an error message has been "
2684 "printed to C<stderr> before the program exits."
2685 msgstr ""
2686
2687 #. type: textblock
2688 #: ../src/guestfs.pod:1344
2689 msgid ""
2690 "For other programs the caller will almost certainly want to install an "
2691 "alternate error handler or do error handling in-line like this:"
2692 msgstr ""
2693
2694 #. type: verbatim
2695 #: ../src/guestfs.pod:1347
2696 #, no-wrap
2697 msgid ""
2698 " g = guestfs_create ();\n"
2699 " \n"
2700 msgstr ""
2701
2702 #. type: verbatim
2703 #: ../src/guestfs.pod:1349
2704 #, no-wrap
2705 msgid ""
2706 " /* This disables the default behaviour of printing errors\n"
2707 "    on stderr. */\n"
2708 " guestfs_set_error_handler (g, NULL, NULL);\n"
2709 " \n"
2710 msgstr ""
2711
2712 #. type: verbatim
2713 #: ../src/guestfs.pod:1353
2714 #, no-wrap
2715 msgid ""
2716 " if (guestfs_launch (g) == -1) {\n"
2717 "   /* Examine the error message and print it etc. */\n"
2718 "   char *msg = guestfs_last_error (g);\n"
2719 "   int errnum = guestfs_last_errno (g);\n"
2720 "   fprintf (stderr, \"%s\\n\", msg);\n"
2721 "   /* ... */\n"
2722 "  }\n"
2723 "\n"
2724 msgstr ""
2725
2726 #. type: textblock
2727 #: ../src/guestfs.pod:1361
2728 msgid ""
2729 "Out of memory errors are handled differently.  The default action is to call "
2730 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2731 "guestfs_set_out_of_memory_handler>."
2732 msgstr ""
2733
2734 #. type: textblock
2735 #: ../src/guestfs.pod:1365
2736 msgid ""
2737 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2738 "because there is no handle if this happens there is no way to get additional "
2739 "error information.  However L</guestfs_create> is supposed to be a "
2740 "lightweight operation which can only fail because of insufficient memory (it "
2741 "returns NULL in this case)."
2742 msgstr ""
2743
2744 #. type: =head2
2745 #: ../src/guestfs.pod:1371
2746 msgid "guestfs_last_error"
2747 msgstr ""
2748
2749 #. type: verbatim
2750 #: ../src/guestfs.pod:1373
2751 #, no-wrap
2752 msgid ""
2753 " const char *guestfs_last_error (guestfs_h *g);\n"
2754 "\n"
2755 msgstr ""
2756
2757 #. type: textblock
2758 #: ../src/guestfs.pod:1375
2759 msgid ""
2760 "This returns the last error message that happened on C<g>.  If there has not "
2761 "been an error since the handle was created, then this returns C<NULL>."
2762 msgstr ""
2763
2764 #. type: textblock
2765 #: ../src/guestfs.pod:1379
2766 msgid ""
2767 "The lifetime of the returned string is until the next error occurs, or L</"
2768 "guestfs_close> is called."
2769 msgstr ""
2770
2771 #. type: =head2
2772 #: ../src/guestfs.pod:1382
2773 msgid "guestfs_last_errno"
2774 msgstr ""
2775
2776 #. type: verbatim
2777 #: ../src/guestfs.pod:1384
2778 #, no-wrap
2779 msgid ""
2780 " int guestfs_last_errno (guestfs_h *g);\n"
2781 "\n"
2782 msgstr ""
2783
2784 #. type: textblock
2785 #: ../src/guestfs.pod:1386
2786 msgid "This returns the last error number (errno) that happened on C<g>."
2787 msgstr ""
2788
2789 #. type: textblock
2790 #: ../src/guestfs.pod:1388
2791 msgid "If successful, an errno integer not equal to zero is returned."
2792 msgstr ""
2793
2794 #. type: textblock
2795 #: ../src/guestfs.pod:1390
2796 msgid ""
2797 "If no error, this returns 0.  This call can return 0 in three situations:"
2798 msgstr ""
2799
2800 #. type: textblock
2801 #: ../src/guestfs.pod:1397
2802 msgid "There has not been any error on the handle."
2803 msgstr ""
2804
2805 #. type: textblock
2806 #: ../src/guestfs.pod:1401
2807 msgid ""
2808 "There has been an error but the errno was meaningless.  This corresponds to "
2809 "the case where the error did not come from a failed system call, but for "
2810 "some other reason."
2811 msgstr ""
2812
2813 #. type: textblock
2814 #: ../src/guestfs.pod:1407
2815 msgid ""
2816 "There was an error from a failed system call, but for some reason the errno "
2817 "was not captured and returned.  This usually indicates a bug in libguestfs."
2818 msgstr ""
2819
2820 #. type: textblock
2821 #: ../src/guestfs.pod:1413
2822 msgid ""
2823 "Libguestfs tries to convert the errno from inside the applicance into a "
2824 "corresponding errno for the caller (not entirely trivial: the appliance "
2825 "might be running a completely different operating system from the library "
2826 "and error numbers are not standardized across Un*xen).  If this could not be "
2827 "done, then the error is translated to C<EINVAL>.  In practice this should "
2828 "only happen in very rare circumstances."
2829 msgstr ""
2830
2831 #. type: =head2
2832 #: ../src/guestfs.pod:1421
2833 msgid "guestfs_set_error_handler"
2834 msgstr ""
2835
2836 #. type: verbatim
2837 #: ../src/guestfs.pod:1423
2838 #, no-wrap
2839 msgid ""
2840 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2841 "                                           void *opaque,\n"
2842 "                                           const char *msg);\n"
2843 " void guestfs_set_error_handler (guestfs_h *g,\n"
2844 "                                 guestfs_error_handler_cb cb,\n"
2845 "                                 void *opaque);\n"
2846 "\n"
2847 msgstr ""
2848
2849 #. type: textblock
2850 #: ../src/guestfs.pod:1430
2851 msgid ""
2852 "The callback C<cb> will be called if there is an error.  The parameters "
2853 "passed to the callback are an opaque data pointer and the error message "
2854 "string."
2855 msgstr ""
2856
2857 #. type: textblock
2858 #: ../src/guestfs.pod:1434
2859 msgid ""
2860 "C<errno> is not passed to the callback.  To get that the callback must call "
2861 "L</guestfs_last_errno>."
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../src/guestfs.pod:1437
2866 msgid ""
2867 "Note that the message string C<msg> is freed as soon as the callback "
2868 "function returns, so if you want to stash it somewhere you must make your "
2869 "own copy."
2870 msgstr ""
2871
2872 #. type: textblock
2873 #: ../src/guestfs.pod:1441
2874 msgid "The default handler prints messages on C<stderr>."
2875 msgstr ""
2876
2877 #. type: textblock
2878 #: ../src/guestfs.pod:1443
2879 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2880 msgstr ""
2881
2882 #. type: =head2
2883 #: ../src/guestfs.pod:1445
2884 msgid "guestfs_get_error_handler"
2885 msgstr ""
2886
2887 #. type: verbatim
2888 #: ../src/guestfs.pod:1447
2889 #, no-wrap
2890 msgid ""
2891 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2892 "                                                     void **opaque_rtn);\n"
2893 "\n"
2894 msgstr ""
2895
2896 #. type: textblock
2897 #: ../src/guestfs.pod:1450
2898 msgid "Returns the current error handler callback."
2899 msgstr ""
2900
2901 #. type: =head2
2902 #: ../src/guestfs.pod:1452
2903 msgid "guestfs_set_out_of_memory_handler"
2904 msgstr ""
2905
2906 #. type: verbatim
2907 #: ../src/guestfs.pod:1454
2908 #, no-wrap
2909 msgid ""
2910 " typedef void (*guestfs_abort_cb) (void);\n"
2911 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2912 "                                        guestfs_abort_cb);\n"
2913 "\n"
2914 msgstr ""
2915
2916 #. type: textblock
2917 #: ../src/guestfs.pod:1458
2918 msgid ""
2919 "The callback C<cb> will be called if there is an out of memory situation.  "
2920 "I<Note this callback must not return>."
2921 msgstr ""
2922
2923 #. type: textblock
2924 #: ../src/guestfs.pod:1461
2925 msgid "The default is to call L<abort(3)>."
2926 msgstr ""
2927
2928 #. type: textblock
2929 #: ../src/guestfs.pod:1463
2930 msgid ""
2931 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2932 msgstr ""
2933
2934 #. type: =head2
2935 #: ../src/guestfs.pod:1466
2936 msgid "guestfs_get_out_of_memory_handler"
2937 msgstr ""
2938
2939 #. type: verbatim
2940 #: ../src/guestfs.pod:1468
2941 #, no-wrap
2942 msgid ""
2943 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2944 "\n"
2945 msgstr ""
2946
2947 #. type: textblock
2948 #: ../src/guestfs.pod:1470
2949 msgid "This returns the current out of memory handler."
2950 msgstr ""
2951
2952 #. type: =head1
2953 #: ../src/guestfs.pod:1472
2954 msgid "API CALLS"
2955 msgstr ""
2956
2957 #. type: textblock
2958 #: ../src/guestfs.pod:1474 ../fish/guestfish.pod:1010
2959 msgid "@ACTIONS@"
2960 msgstr "@ACTIONS@"
2961
2962 #. type: =head1
2963 #: ../src/guestfs.pod:1476
2964 msgid "STRUCTURES"
2965 msgstr "СТРУКТУРИ"
2966
2967 #. type: textblock
2968 #: ../src/guestfs.pod:1478
2969 msgid "@STRUCTS@"
2970 msgstr "@STRUCTS@"
2971
2972 #. type: =head1
2973 #: ../src/guestfs.pod:1480
2974 msgid "AVAILABILITY"
2975 msgstr ""
2976
2977 #. type: =head2
2978 #: ../src/guestfs.pod:1482
2979 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2980 msgstr ""
2981
2982 #. type: textblock
2983 #: ../src/guestfs.pod:1484
2984 msgid ""
2985 "Using L</guestfs_available> you can test availability of the following "
2986 "groups of functions.  This test queries the appliance to see if the "
2987 "appliance you are currently using supports the functionality."
2988 msgstr ""
2989
2990 #. type: textblock
2991 #: ../src/guestfs.pod:1489
2992 msgid "@AVAILABILITY@"
2993 msgstr ""
2994
2995 #. type: =head2
2996 #: ../src/guestfs.pod:1491
2997 msgid "GUESTFISH supported COMMAND"
2998 msgstr ""
2999
3000 #. type: textblock
3001 #: ../src/guestfs.pod:1493
3002 msgid ""
3003 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3004 "prints out the available groups and whether they are supported by this build "
3005 "of libguestfs.  Note however that you have to do C<run> first."
3006 msgstr ""
3007
3008 #. type: =head2
3009 #: ../src/guestfs.pod:1498
3010 msgid "SINGLE CALLS AT COMPILE TIME"
3011 msgstr ""
3012
3013 #. type: textblock
3014 #: ../src/guestfs.pod:1500
3015 msgid ""
3016 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3017 "function, such as:"
3018 msgstr ""
3019
3020 #. type: verbatim
3021 #: ../src/guestfs.pod:1503
3022 #, no-wrap
3023 msgid ""
3024 " #define LIBGUESTFS_HAVE_DD 1\n"
3025 "\n"
3026 msgstr ""
3027
3028 #. type: textblock
3029 #: ../src/guestfs.pod:1505
3030 msgid "if L</guestfs_dd> is available."
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../src/guestfs.pod:1507
3035 msgid ""
3036 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3037 "function is available at compile time, we recommended using build tools such "
3038 "as autoconf or cmake.  For example in autotools you could use:"
3039 msgstr ""
3040
3041 #. type: verbatim
3042 #: ../src/guestfs.pod:1512
3043 #, no-wrap
3044 msgid ""
3045 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3046 " AC_CHECK_FUNCS([guestfs_dd])\n"
3047 "\n"
3048 msgstr ""
3049
3050 #. type: textblock
3051 #: ../src/guestfs.pod:1515
3052 msgid ""
3053 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3054 "in your program."
3055 msgstr ""
3056
3057 #. type: =head2
3058 #: ../src/guestfs.pod:1518
3059 msgid "SINGLE CALLS AT RUN TIME"
3060 msgstr ""
3061
3062 #. type: textblock
3063 #: ../src/guestfs.pod:1520
3064 msgid ""
3065 "Testing at compile time doesn't guarantee that a function really exists in "
3066 "the library.  The reason is that you might be dynamically linked against a "
3067 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3068 "This situation unfortunately results in a segmentation fault, which is a "
3069 "shortcoming of the C dynamic linking system itself."
3070 msgstr ""
3071
3072 #. type: textblock
3073 #: ../src/guestfs.pod:1527
3074 msgid ""
3075 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3076 "in this example program (note that you still need the compile time check as "
3077 "well):"
3078 msgstr ""
3079
3080 #. type: verbatim
3081 #: ../src/guestfs.pod:1531
3082 #, no-wrap
3083 msgid ""
3084 " #include <stdio.h>\n"
3085 " #include <stdlib.h>\n"
3086 " #include <unistd.h>\n"
3087 " #include <dlfcn.h>\n"
3088 " #include <guestfs.h>\n"
3089 " \n"
3090 msgstr ""
3091
3092 #. type: verbatim
3093 #: ../src/guestfs.pod:1537
3094 #, no-wrap
3095 msgid ""
3096 " main ()\n"
3097 " {\n"
3098 " #ifdef LIBGUESTFS_HAVE_DD\n"
3099 "   void *dl;\n"
3100 "   int has_function;\n"
3101 " \n"
3102 msgstr ""
3103
3104 #. type: verbatim
3105 #: ../src/guestfs.pod:1543
3106 #, no-wrap
3107 msgid ""
3108 "   /* Test if the function guestfs_dd is really available. */\n"
3109 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3110 "   if (!dl) {\n"
3111 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3112 "     exit (EXIT_FAILURE);\n"
3113 "   }\n"
3114 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3115 "   dlclose (dl);\n"
3116 " \n"
3117 msgstr ""
3118
3119 #. type: verbatim
3120 #: ../src/guestfs.pod:1552
3121 #, no-wrap
3122 msgid ""
3123 "   if (!has_function)\n"
3124 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3125 "   else {\n"
3126 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3127 "     /* Now it's safe to call\n"
3128 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3129 "     */\n"
3130 "   }\n"
3131 " #else\n"
3132 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3133 " #endif\n"
3134 "  }\n"
3135 "\n"
3136 msgstr ""
3137
3138 #. type: textblock
3139 #: ../src/guestfs.pod:1565
3140 msgid ""
3141 "You may think the above is an awful lot of hassle, and it is.  There are "
3142 "other ways outside of the C linking system to ensure that this kind of "
3143 "incompatibility never arises, such as using package versioning:"
3144 msgstr ""
3145
3146 #. type: verbatim
3147 #: ../src/guestfs.pod:1570
3148 #, no-wrap
3149 msgid ""
3150 " Requires: libguestfs >= 1.0.80\n"
3151 "\n"
3152 msgstr ""
3153
3154 #. type: =head1
3155 #: ../src/guestfs.pod:1572
3156 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3157 msgstr ""
3158
3159 #. type: textblock
3160 #: ../src/guestfs.pod:1574
3161 msgid ""
3162 "A recent feature of the API is the introduction of calls which take optional "
3163 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3164 "takes variable arguments (ie. C<...>), as in this example:"
3165 msgstr ""
3166
3167 #. type: verbatim
3168 #: ../src/guestfs.pod:1579
3169 #, no-wrap
3170 msgid ""
3171 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3172 "\n"
3173 msgstr ""
3174
3175 #. type: textblock
3176 #: ../src/guestfs.pod:1581
3177 msgid ""
3178 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3179 "call with no optional arguments specified:"
3180 msgstr ""
3181
3182 #. type: verbatim
3183 #: ../src/guestfs.pod:1584
3184 #, no-wrap
3185 msgid ""
3186 " guestfs_add_drive_opts (g, filename, -1);\n"
3187 "\n"
3188 msgstr ""
3189
3190 #. type: textblock
3191 #: ../src/guestfs.pod:1586
3192 msgid "With a single optional argument:"
3193 msgstr ""
3194
3195 #. type: verbatim
3196 #: ../src/guestfs.pod:1588
3197 #, no-wrap
3198 msgid ""
3199 " guestfs_add_drive_opts (g, filename,\n"
3200 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3201 "                         -1);\n"
3202 "\n"
3203 msgstr ""
3204
3205 #. type: textblock
3206 #: ../src/guestfs.pod:1592
3207 msgid "With two:"
3208 msgstr ""
3209
3210 #. type: verbatim
3211 #: ../src/guestfs.pod:1594
3212 #, no-wrap
3213 msgid ""
3214 " guestfs_add_drive_opts (g, filename,\n"
3215 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3216 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3217 "                         -1);\n"
3218 "\n"
3219 msgstr ""
3220
3221 #. type: textblock
3222 #: ../src/guestfs.pod:1599
3223 msgid ""
3224 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3225 "happen!"
3226 msgstr ""
3227
3228 #. type: =head2
3229 #: ../src/guestfs.pod:1602
3230 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3231 msgstr ""
3232
3233 #. type: textblock
3234 #: ../src/guestfs.pod:1604
3235 msgid ""
3236 "The second variant has the same name with the suffix C<_va>, which works the "
3237 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3238 "example function, this is declared:"
3239 msgstr ""
3240
3241 #. type: verbatim
3242 #: ../src/guestfs.pod:1608
3243 #, no-wrap
3244 msgid ""
3245 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3246 "                                va_list args);\n"
3247 "\n"
3248 msgstr ""
3249
3250 #. type: =head2
3251 #: ../src/guestfs.pod:1611
3252 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3253 msgstr ""
3254
3255 #. type: textblock
3256 #: ../src/guestfs.pod:1613
3257 msgid ""
3258 "The third variant is useful where you need to construct these calls.  You "
3259 "pass in a structure where you fill in the optional fields.  The structure "
3260 "has a bitmask as the first element which you must set to indicate which "
3261 "fields you have filled in.  For our example function the structure and call "
3262 "are declared:"
3263 msgstr ""
3264
3265 #. type: verbatim
3266 #: ../src/guestfs.pod:1619
3267 #, no-wrap
3268 msgid ""
3269 " struct guestfs_add_drive_opts_argv {\n"
3270 "   uint64_t bitmask;\n"
3271 "   int readonly;\n"
3272 "   const char *format;\n"
3273 "   /* ... */\n"
3274 " };\n"
3275 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3276 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3277 "\n"
3278 msgstr ""
3279
3280 #. type: textblock
3281 #: ../src/guestfs.pod:1628
3282 msgid "You could call it like this:"
3283 msgstr ""
3284
3285 #. type: verbatim
3286 #: ../src/guestfs.pod:1630
3287 #, no-wrap
3288 msgid ""
3289 " struct guestfs_add_drive_opts_argv optargs = {\n"
3290 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3291 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3292 "   .readonly = 1,\n"
3293 "   .format = \"qcow2\"\n"
3294 " };\n"
3295 " \n"
3296 msgstr ""
3297
3298 #. type: verbatim
3299 #: ../src/guestfs.pod:1637
3300 #, no-wrap
3301 msgid ""
3302 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3303 "\n"
3304 msgstr ""
3305
3306 #. type: textblock
3307 #: ../src/guestfs.pod:1639 ../src/guestfs-actions.pod:11
3308 #: ../src/guestfs-actions.pod:1861 ../fish/guestfish-actions.pod:9
3309 #: ../fish/guestfish-actions.pod:1265 ../tools/virt-win-reg.pl:703
3310 msgid "Notes:"
3311 msgstr "Нотатки:"
3312
3313 #. type: textblock
3314 #: ../src/guestfs.pod:1645
3315 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3316 msgstr ""
3317
3318 #. type: textblock
3319 #: ../src/guestfs.pod:1650
3320 msgid "You do not need to fill in all fields of the structure."
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../src/guestfs.pod:1654
3325 msgid ""
3326 "There must be a one-to-one correspondence between fields of the structure "
3327 "that are filled in, and bits set in the bitmask."
3328 msgstr ""
3329
3330 #. type: =head2
3331 #: ../src/guestfs.pod:1659
3332 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3333 msgstr ""
3334
3335 #. type: textblock
3336 #: ../src/guestfs.pod:1661
3337 msgid ""
3338 "In other languages, optional arguments are expressed in the way that is "
3339 "natural for that language.  We refer you to the language-specific "
3340 "documentation for more details on that."
3341 msgstr ""
3342
3343 #. type: textblock
3344 #: ../src/guestfs.pod:1665
3345 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3346 msgstr ""
3347
3348 #. type: =head2
3349 #: ../src/guestfs.pod:1667
3350 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3351 msgstr ""
3352
3353 #. type: textblock
3354 #: ../src/guestfs.pod:1669
3355 msgid ""
3356 "B<Note:> This section documents the generic event mechanism introduced in "
3357 "libguestfs 1.10, which you should use in new code if possible.  The old "
3358 "functions C<guestfs_set_log_message_callback>, "
3359 "C<guestfs_set_subprocess_quit_callback>, "
3360 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3361 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3362 "page.  Because of the ABI guarantee, the old functions continue to work."
3363 msgstr ""
3364
3365 #. type: textblock
3366 #: ../src/guestfs.pod:1678
3367 msgid ""
3368 "Handles generate events when certain things happen, such as log messages "
3369 "being generated, progress messages during long-running operations, or the "
3370 "handle being closed.  The API calls described below let you register a "
3371 "callback to be called when events happen.  You can register multiple "
3372 "callbacks (for the same, different or overlapping sets of events), and "
3373 "individually remove callbacks.  If callbacks are not removed, then they "
3374 "remain in force until the handle is closed."
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../src/guestfs.pod:1686
3379 msgid ""
3380 "In the current implementation, events are only generated synchronously: that "
3381 "means that events (and hence callbacks) can only happen while you are in the "
3382 "middle of making another libguestfs call.  The callback is called in the "
3383 "same thread."
3384 msgstr ""
3385
3386 #. type: textblock
3387 #: ../src/guestfs.pod:1691
3388 msgid ""
3389 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3390 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3391 msgstr ""
3392
3393 #. type: =head3
3394 #: ../src/guestfs.pod:1695
3395 msgid "CLASSES OF EVENTS"
3396 msgstr ""
3397
3398 #. type: =item
3399 #: ../src/guestfs.pod:1699
3400 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3401 msgstr ""
3402
3403 #. type: textblock
3404 #: ../src/guestfs.pod:1702
3405 msgid ""
3406 "The callback function will be called while the handle is being closed "
3407 "(synchronously from L</guestfs_close>)."
3408 msgstr ""
3409
3410 #. type: textblock
3411 #: ../src/guestfs.pod:1705
3412 msgid ""
3413 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3414 "handles that are open when the program exits.  This means that this callback "
3415 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3416 "problems in higher-level languages (eg. if your HLL interpreter has already "
3417 "been cleaned up by the time this is called, and if your callback then jumps "
3418 "into some HLL function)."
3419 msgstr ""
3420
3421 #. type: textblock
3422 #: ../src/guestfs.pod:1712
3423 msgid ""
3424 "If no callback is registered: the handle is closed without any callback "
3425 "being invoked."
3426 msgstr ""
3427
3428 #. type: =item
3429 #: ../src/guestfs.pod:1715
3430 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3431 msgstr ""
3432
3433 #. type: textblock
3434 #: ../src/guestfs.pod:1718
3435 msgid ""
3436 "The callback function will be called when the child process quits, either "
3437 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3438 "corresponds to a transition from any state to the CONFIG state)."
3439 msgstr ""
3440
3441 #. type: textblock
3442 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
3443 msgid "If no callback is registered: the event is ignored."
3444 msgstr ""
3445
3446 #. type: =item
3447 #: ../src/guestfs.pod:1724
3448 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3449 msgstr ""
3450
3451 #. type: textblock
3452 #: ../src/guestfs.pod:1727
3453 msgid ""
3454 "The callback function will be called when the child process becomes ready "
3455 "first time after it has been launched.  (This corresponds to a transition "
3456 "from LAUNCHING to the READY state)."
3457 msgstr ""
3458
3459 #. type: =item
3460 #: ../src/guestfs.pod:1733
3461 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3462 msgstr ""
3463
3464 #. type: textblock
3465 #: ../src/guestfs.pod:1736
3466 msgid ""
3467 "Some long-running operations can generate progress messages.  If this "
3468 "callback is registered, then it will be called each time a progress message "
3469 "is generated (usually two seconds after the operation started, and three "
3470 "times per second thereafter until it completes, although the frequency may "
3471 "change in future versions)."
3472 msgstr ""
3473
3474 #. type: textblock
3475 #: ../src/guestfs.pod:1742
3476 msgid ""
3477 "The callback receives in the payload four unsigned 64 bit numbers which are "
3478 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3479 msgstr ""
3480
3481 #. type: textblock
3482 #: ../src/guestfs.pod:1745
3483 msgid ""
3484 "The units of C<total> are not defined, although for some operations C<total> "
3485 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3486 "or megabytes), and C<position> may be the portion which has been transferred."
3487 msgstr ""
3488
3489 #. type: textblock
3490 #: ../src/guestfs.pod:1750
3491 msgid "The only defined and stable parts of the API are:"
3492 msgstr ""
3493
3494 #. type: textblock
3495 #: ../src/guestfs.pod:1756
3496 msgid ""
3497 "The callback can display to the user some type of progress bar or indicator "
3498 "which shows the ratio of C<position>:C<total>."
3499 msgstr ""
3500
3501 #. type: textblock
3502 #: ../src/guestfs.pod:1761
3503 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3504 msgstr ""
3505
3506 #. type: textblock
3507 #: ../src/guestfs.pod:1765
3508 msgid ""
3509 "If any progress notification is sent during a call, then a final progress "
3510 "notification is always sent when C<position> = C<total> (I<unless> the call "
3511 "fails with an error)."
3512 msgstr ""
3513
3514 #. type: textblock
3515 #: ../src/guestfs.pod:1769
3516 msgid ""
3517 "This is to simplify caller code, so callers can easily set the progress "
3518 "indicator to \"100%\" at the end of the operation, without requiring special "
3519 "code to detect this case."
3520 msgstr ""
3521
3522 #. type: textblock
3523 #: ../src/guestfs.pod:1775
3524 msgid ""
3525 "For some calls we are unable to estimate the progress of the call, but we "
3526 "can still generate progress messages to indicate activity.  This is known as "
3527 "\"pulse mode\", and is directly supported by certain progress bar "
3528 "implementations (eg. GtkProgressBar)."
3529 msgstr ""
3530
3531 #. type: textblock
3532 #: ../src/guestfs.pod:1780
3533 msgid ""
3534 "For these calls, zero or more progress messages are generated with "
3535 "C<position = 0> and C<total = 1>, followed by a final message with "
3536 "C<position = total = 1>."
3537 msgstr ""
3538
3539 #. type: textblock
3540 #: ../src/guestfs.pod:1784
3541 msgid ""
3542 "As noted above, if the call fails with an error then the final message may "
3543 "not be generated."
3544 msgstr ""
3545
3546 #. type: textblock
3547 #: ../src/guestfs.pod:1789
3548 msgid ""
3549 "The callback also receives the procedure number (C<proc_nr>) and serial "
3550 "number (C<serial>) of the call.  These are only useful for debugging "
3551 "protocol issues, and the callback can normally ignore them.  The callback "
3552 "may want to print these numbers in error messages or debugging messages."
3553 msgstr ""
3554
3555 #. type: textblock
3556 #: ../src/guestfs.pod:1795
3557 msgid "If no callback is registered: progress messages are discarded."
3558 msgstr ""
3559
3560 #. type: =item
3561 #: ../src/guestfs.pod:1797
3562 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3563 msgstr ""
3564
3565 #. type: textblock
3566 #: ../src/guestfs.pod:1800
3567 msgid ""
3568 "The callback function is called whenever a log message is generated by qemu, "
3569 "the appliance kernel, guestfsd (daemon), or utility programs."
3570 msgstr ""
3571
3572 #. type: textblock
3573 #: ../src/guestfs.pod:1803
3574 msgid ""
3575 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3576 "guestfs_launch>) then additional debug messages are generated."
3577 msgstr ""
3578
3579 #. type: textblock
3580 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
3581 msgid ""
3582 "If no callback is registered: the messages are discarded unless the verbose "
3583 "flag is set in which case they are sent to stderr.  You can override the "
3584 "printing of verbose messages to stderr by setting up a callback."
3585 msgstr ""
3586
3587 #. type: =item
3588 #: ../src/guestfs.pod:1811
3589 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3590 msgstr ""
3591
3592 #. type: textblock
3593 #: ../src/guestfs.pod:1814
3594 msgid ""
3595 "The callback function is called whenever a log message is generated by the "
3596 "library part of libguestfs."
3597 msgstr ""
3598
3599 #. type: textblock
3600 #: ../src/guestfs.pod:1817
3601 msgid ""
3602 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3603 "messages are generated."
3604 msgstr ""
3605
3606 #. type: =item
3607 #: ../src/guestfs.pod:1825
3608 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3609 msgstr ""
3610
3611 #. type: textblock
3612 #: ../src/guestfs.pod:1828
3613 msgid ""
3614 "The callback function is called whenever a trace message is generated.  This "
3615 "only applies if the trace flag (L</guestfs_set_trace>) is set."
3616 msgstr ""
3617
3618 #. type: textblock
3619 #: ../src/guestfs.pod:1831
3620 msgid ""
3621 "If no callback is registered: the messages are sent to stderr.  You can "
3622 "override the printing of trace messages to stderr by setting up a callback."
3623 msgstr ""
3624
3625 #. type: =head3
3626 #: ../src/guestfs.pod:1837
3627 msgid "guestfs_set_event_callback"
3628 msgstr ""
3629
3630 #. type: verbatim
3631 #: ../src/guestfs.pod:1839
3632 #, no-wrap
3633 msgid ""
3634 " int guestfs_set_event_callback (guestfs_h *g,\n"
3635 "                                 guestfs_event_callback cb,\n"
3636 "                                 uint64_t event_bitmask,\n"
3637 "                                 int flags,\n"
3638 "                                 void *opaque);\n"
3639 "\n"
3640 msgstr ""
3641
3642 #. type: textblock
3643 #: ../src/guestfs.pod:1845
3644 msgid ""
3645 "This function registers a callback (C<cb>) for all event classes in the "
3646 "C<event_bitmask>."
3647 msgstr ""
3648
3649 #. type: textblock
3650 #: ../src/guestfs.pod:1848
3651 msgid ""
3652 "For example, to register for all log message events, you could call this "
3653 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
3654 "To register a single callback for all possible classes of events, use "
3655 "C<GUESTFS_EVENT_ALL>."
3656 msgstr ""
3657
3658 #. type: textblock
3659 #: ../src/guestfs.pod:1854
3660 msgid "C<flags> should always be passed as 0."
3661 msgstr ""
3662
3663 #. type: textblock
3664 #: ../src/guestfs.pod:1856
3665 msgid ""
3666 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
3667 "it for any purpose."
3668 msgstr ""
3669
3670 #. type: textblock
3671 #: ../src/guestfs.pod:1859
3672 msgid ""
3673 "The return value is the event handle (an integer) which you can use to "
3674 "delete the callback (see below)."
3675 msgstr ""
3676
3677 #. type: textblock
3678 #: ../src/guestfs.pod:1862
3679 msgid ""
3680 "If there is an error, this function returns C<-1>, and sets the error in the "
3681 "handle in the usual way (see L</guestfs_last_error> etc.)"
3682 msgstr ""
3683
3684 #. type: textblock
3685 #: ../src/guestfs.pod:1865
3686 msgid ""
3687 "Callbacks remain in effect until they are deleted, or until the handle is "
3688 "closed."
3689 msgstr ""
3690
3691 #. type: textblock
3692 #: ../src/guestfs.pod:1868
3693 msgid ""
3694 "In the case where multiple callbacks are registered for a particular event "
3695 "class, all of the callbacks are called.  The order in which multiple "
3696 "callbacks are called is not defined."
3697 msgstr ""
3698
3699 #. type: =head3
3700 #: ../src/guestfs.pod:1872
3701 msgid "guestfs_delete_event_callback"
3702 msgstr ""
3703
3704 #. type: verbatim
3705 #: ../src/guestfs.pod:1874
3706 #, no-wrap
3707 msgid ""
3708 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
3709 "\n"
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../src/guestfs.pod:1876
3714 msgid ""
3715 "Delete a callback that was previously registered.  C<event_handle> should be "
3716 "the integer that was returned by a previous call to "
3717 "C<guestfs_set_event_callback> on the same handle."
3718 msgstr ""
3719
3720 #. type: =head3
3721 #: ../src/guestfs.pod:1880
3722 msgid "guestfs_event_callback"
3723 msgstr ""
3724
3725 #. type: verbatim
3726 #: ../src/guestfs.pod:1882
3727 #, no-wrap
3728 msgid ""
3729 " typedef void (*guestfs_event_callback) (\n"
3730 "                  guestfs_h *g,\n"
3731 "                  void *opaque,\n"
3732 "                  uint64_t event,\n"
3733 "                  int event_handle,\n"
3734 "                  int flags,\n"
3735 "                  const char *buf, size_t buf_len,\n"
3736 "                  const uint64_t *array, size_t array_len);\n"
3737 "\n"
3738 msgstr ""
3739
3740 #. type: textblock
3741 #: ../src/guestfs.pod:1891
3742 msgid ""
3743 "This is the type of the event callback function that you have to provide."
3744 msgstr ""
3745
3746 #. type: textblock
3747 #: ../src/guestfs.pod:1894
3748 msgid ""
3749 "The basic parameters are: the handle (C<g>), the opaque user pointer "
3750 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
3751 "handle, and C<flags> which in the current API you should ignore."
3752 msgstr ""
3753
3754 #. type: textblock
3755 #: ../src/guestfs.pod:1898
3756 msgid ""
3757 "The remaining parameters contain the event payload (if any).  Each event may "
3758 "contain a payload, which usually relates to the event class, but for future "
3759 "proofing your code should be written to handle any payload for any event "
3760 "class."
3761 msgstr ""
3762
3763 #. type: textblock
3764 #: ../src/guestfs.pod:1903
3765 msgid ""
3766 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
3767 "there is no message buffer).  Note that this message buffer can contain "
3768 "arbitrary 8 bit data, including NUL bytes."
3769 msgstr ""
3770
3771 #. type: textblock
3772 #: ../src/guestfs.pod:1907
3773 msgid ""
3774 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
3775 "moment this is only used for progress messages."
3776 msgstr ""
3777
3778 #. type: =head3
3779 #: ../src/guestfs.pod:1910
3780 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
3781 msgstr ""
3782
3783 #. type: textblock
3784 #: ../src/guestfs.pod:1912
3785 msgid ""
3786 "One motivation for the generic event API was to allow GUI programs to "
3787 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
3788 "unconditionally to C<stderr>."
3789 msgstr ""
3790
3791 #. type: textblock
3792 #: ../src/guestfs.pod:1916
3793 msgid ""
3794 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
3795 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
3796 "messages are not events; you must capture error messages separately)."
3797 msgstr ""
3798
3799 #. type: textblock
3800 #: ../src/guestfs.pod:1921
3801 msgid ""
3802 "Programs have to set up a callback to capture the classes of events of "
3803 "interest:"
3804 msgstr ""
3805
3806 #. type: verbatim
3807 #: ../src/guestfs.pod:1924
3808 #, no-wrap
3809 msgid ""
3810 " int eh =\n"
3811 "   guestfs_set_event_callback\n"
3812 "     (g, message_callback,\n"
3813 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
3814 "      GUESTFS_EVENT_TRACE,\n"
3815 "      0, NULL) == -1)\n"
3816 " if (eh == -1) {\n"
3817 "   // handle error in the usual way\n"
3818 " }\n"
3819 "\n"
3820 msgstr ""
3821
3822 #. type: textblock
3823 #: ../src/guestfs.pod:1934
3824 msgid ""
3825 "The callback can then direct messages to the appropriate place.  In this "
3826 "example, messages are directed to syslog:"
3827 msgstr ""
3828
3829 #. type: verbatim
3830 #: ../src/guestfs.pod:1937
3831 #, no-wrap
3832 msgid ""
3833 " static void\n"
3834 " message_callback (\n"
3835 "         guestfs_h *g,\n"
3836 "         void *opaque,\n"
3837 "         uint64_t event,\n"
3838 "         int event_handle,\n"
3839 "         int flags,\n"
3840 "         const char *buf, size_t buf_len,\n"
3841 "         const uint64_t *array, size_t array_len)\n"
3842 " {\n"
3843 "   const int priority = LOG_USER|LOG_INFO;\n"
3844 "   if (buf_len > 0)\n"
3845 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
3846 " }\n"
3847 "\n"
3848 msgstr ""
3849
3850 #. type: =head1
3851 #: ../src/guestfs.pod:1952
3852 msgid "PRIVATE DATA AREA"
3853 msgstr ""
3854
3855 #. type: textblock
3856 #: ../src/guestfs.pod:1954
3857 msgid ""
3858 "You can attach named pieces of private data to the libguestfs handle, fetch "
3859 "them by name, and walk over them, for the lifetime of the handle.  This is "
3860 "called the private data area and is only available from the C API."
3861 msgstr ""
3862
3863 #. type: textblock
3864 #: ../src/guestfs.pod:1959
3865 msgid "To attach a named piece of data, use the following call:"
3866 msgstr ""
3867
3868 #. type: verbatim
3869 #: ../src/guestfs.pod:1961
3870 #, no-wrap
3871 msgid ""
3872 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3873 "\n"
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../src/guestfs.pod:1963
3878 msgid ""
3879 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3880 "pointer (which can be C<NULL>).  Any previous item with the same key is "
3881 "overwritten."
3882 msgstr ""
3883
3884 #. type: textblock
3885 #: ../src/guestfs.pod:1967
3886 msgid ""
3887 "You can use any C<key> you want, but your key should I<not> start with an "
3888 "underscore character.  Keys beginning with an underscore character are "
3889 "reserved for internal libguestfs purposes (eg. for implementing language "
3890 "bindings).  It is recommended that you prefix the key with some unique "
3891 "string to avoid collisions with other users."
3892 msgstr ""
3893
3894 #. type: textblock
3895 #: ../src/guestfs.pod:1973
3896 msgid "To retrieve the pointer, use:"
3897 msgstr ""
3898
3899 #. type: verbatim
3900 #: ../src/guestfs.pod:1975
3901 #, no-wrap
3902 msgid ""
3903 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3904 "\n"
3905 msgstr ""
3906
3907 #. type: textblock
3908 #: ../src/guestfs.pod:1977
3909 msgid ""
3910 "This function returns C<NULL> if either no data is found associated with "
3911 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3912 "C<NULL>."
3913 msgstr ""
3914
3915 #. type: textblock
3916 #: ../src/guestfs.pod:1981
3917 msgid ""
3918 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3919 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3920 "all.  In particular, libguestfs does I<not> try to free the data when the "
3921 "handle is closed.  If the data must be freed, then the caller must either "
3922 "free it before calling L</guestfs_close> or must set up a close callback to "
3923 "do it (see L</GUESTFS_EVENT_CLOSE>)."
3924 msgstr ""
3925
3926 #. type: textblock
3927 #: ../src/guestfs.pod:1988
3928 msgid "To walk over all entries, use these two functions:"
3929 msgstr ""
3930
3931 #. type: verbatim
3932 #: ../src/guestfs.pod:1990
3933 #, no-wrap
3934 msgid ""
3935 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
3936 "\n"
3937 msgstr ""
3938
3939 #. type: verbatim
3940 #: ../src/guestfs.pod:1992
3941 #, no-wrap
3942 msgid ""
3943 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
3944 "\n"
3945 msgstr ""
3946
3947 #. type: textblock
3948 #: ../src/guestfs.pod:1994
3949 msgid ""
3950 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
3951 "not have any particular meaning -- keys are not returned in any defined "
3952 "order).  A pointer to the key is returned in C<*key_rtn> and the "
3953 "corresponding data pointer is returned from the function.  C<NULL> is "
3954 "returned if there are no keys stored in the handle."
3955 msgstr ""
3956
3957 #. type: textblock
3958 #: ../src/guestfs.pod:2000
3959 msgid ""
3960 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
3961 "value of this function is also C<NULL> is there are no further entries to "
3962 "return."
3963 msgstr ""
3964
3965 #. type: textblock
3966 #: ../src/guestfs.pod:2004
3967 msgid "Notes about walking over entries:"
3968 msgstr ""
3969
3970 #. type: textblock
3971 #: ../src/guestfs.pod:2010
3972 msgid ""
3973 "You must not call C<guestfs_set_private> while walking over the entries."
3974 msgstr ""
3975
3976 #. type: textblock
3977 #: ../src/guestfs.pod:2015
3978 msgid ""
3979 "The handle maintains an internal iterator which is reset when you call "
3980 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
3981 "call C<guestfs_set_private>."
3982 msgstr ""
3983
3984 #. type: textblock
3985 #: ../src/guestfs.pod:2021
3986 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
3987 msgstr ""
3988
3989 #. type: verbatim
3990 #: ../src/guestfs.pod:2023
3991 #, no-wrap
3992 msgid ""
3993 " guestfs_set_private (g, key, NULL);\n"
3994 "\n"
3995 msgstr ""
3996
3997 #. type: textblock
3998 #: ../src/guestfs.pod:2025
3999 msgid "then that C<key> is not returned when walking."
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../src/guestfs.pod:2029
4004 msgid ""
4005 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4006 "C<guestfs_next_private> or C<guestfs_set_private>."
4007 msgstr ""
4008
4009 #. type: textblock
4010 #: ../src/guestfs.pod:2035
4011 msgid ""
4012 "The following example code shows how to print all keys and data pointers "
4013 "that are associated with the handle C<g>:"
4014 msgstr ""
4015
4016 #. type: verbatim
4017 #: ../src/guestfs.pod:2038
4018 #, no-wrap
4019 msgid ""
4020 " const char *key;\n"
4021 " void *data = guestfs_first_private (g, &key);\n"
4022 " while (data != NULL)\n"
4023 "   {\n"
4024 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4025 "     data = guestfs_next_private (g, &key);\n"
4026 "   }\n"
4027 "\n"
4028 msgstr ""
4029
4030 #. type: textblock
4031 #: ../src/guestfs.pod:2046
4032 msgid ""
4033 "More commonly you are only interested in keys that begin with an application-"
4034 "specific prefix C<foo_>.  Modify the loop like so:"
4035 msgstr ""
4036
4037 #. type: verbatim
4038 #: ../src/guestfs.pod:2049
4039 #, no-wrap
4040 msgid ""
4041 " const char *key;\n"
4042 " void *data = guestfs_first_private (g, &key);\n"
4043 " while (data != NULL)\n"
4044 "   {\n"
4045 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4046 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4047 "     data = guestfs_next_private (g, &key);\n"
4048 "   }\n"
4049 "\n"
4050 msgstr ""
4051
4052 #. type: textblock
4053 #: ../src/guestfs.pod:2058
4054 msgid ""
4055 "If you need to modify keys while walking, then you have to jump back to the "
4056 "beginning of the loop.  For example, to delete all keys prefixed with "
4057 "C<foo_>:"
4058 msgstr ""
4059
4060 #. type: verbatim
4061 #: ../src/guestfs.pod:2062
4062 #, no-wrap
4063 msgid ""
4064 "  const char *key;\n"
4065 "  void *data;\n"
4066 " again:\n"
4067 "  data = guestfs_first_private (g, &key);\n"
4068 "  while (data != NULL)\n"
4069 "    {\n"
4070 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4071 "        {\n"
4072 "          guestfs_set_private (g, key, NULL);\n"
4073 "          /* note that 'key' pointer is now invalid, and so is\n"
4074 "             the internal iterator */\n"
4075 "          goto again;\n"
4076 "        }\n"
4077 "      data = guestfs_next_private (g, &key);\n"
4078 "    }\n"
4079 "\n"
4080 msgstr ""
4081
4082 #. type: textblock
4083 #: ../src/guestfs.pod:2078
4084 msgid ""
4085 "Note that the above loop is guaranteed to terminate because the keys are "
4086 "being deleted, but other manipulations of keys within the loop might not "
4087 "terminate unless you also maintain an indication of which keys have been "
4088 "visited."
4089 msgstr ""
4090
4091 #. type: =end
4092 #: ../src/guestfs.pod:2083 ../src/guestfs.pod:2088
4093 msgid "html"
4094 msgstr "html"
4095
4096 #. type: textblock
4097 #: ../src/guestfs.pod:2085
4098 msgid ""
4099 "<!-- old anchor for the next section --> <a name="
4100 "\"state_machine_and_low_level_event_api\"/>"
4101 msgstr ""
4102 "<!-- old anchor for the next section --> <a name="
4103 "\"state_machine_and_low_level_event_api\"/>"
4104
4105 #. type: =head1
4106 #: ../src/guestfs.pod:2090
4107 msgid "ARCHITECTURE"
4108 msgstr "АРХІТЕКТУРА"
4109
4110 #. type: textblock
4111 #: ../src/guestfs.pod:2092
4112 msgid ""
4113 "Internally, libguestfs is implemented by running an appliance (a special "
4114 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4115 "process of the main program."
4116 msgstr ""
4117
4118 #. type: verbatim
4119 #: ../src/guestfs.pod:2096
4120 #, no-wrap
4121 msgid ""
4122 "  ___________________\n"
4123 " /                   \\\n"
4124 " | main program      |\n"
4125 " |                   |\n"
4126 " |                   |           child process / appliance\n"
4127 " |                   |           __________________________\n"
4128 " |                   |          / qemu                     \\\n"
4129 " +-------------------+   RPC    |      +-----------------+ |\n"
4130 " | libguestfs     <--------------------> guestfsd        | |\n"
4131 " |                   |          |      +-----------------+ |\n"
4132 " \\___________________/          |      | Linux kernel    | |\n"
4133 "                                |      +--^--------------+ |\n"
4134 "                                \\_________|________________/\n"
4135 "                                          |\n"
4136 "                                   _______v______\n"
4137 "                                  /              \\\n"
4138 "                                  | Device or    |\n"
4139 "                                  | disk image   |\n"
4140 "                                  \\______________/\n"
4141 "\n"
4142 msgstr ""
4143
4144 #. type: textblock
4145 #: ../src/guestfs.pod:2116
4146 msgid ""
4147 "The library, linked to the main program, creates the child process and hence "
4148 "the appliance in the L</guestfs_launch> function."
4149 msgstr ""
4150
4151 #. type: textblock
4152 #: ../src/guestfs.pod:2119
4153 msgid ""
4154 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4155 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4156 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4157 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4158 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4159 "attached to the qemu process which translates device access by the "
4160 "appliance's Linux kernel into accesses to the image."
4161 msgstr ""
4162
4163 #. type: textblock
4164 #: ../src/guestfs.pod:2128
4165 msgid ""
4166 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4167 "Although the disk image you are attached to might also be used by some "
4168 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4169 "care if both libguestfs's qemu process and your virtual machine are trying "
4170 "to update the disk image at the same time, since these usually results in "
4171 "massive disk corruption)."
4172 msgstr ""
4173
4174 #. type: =head1
4175 #: ../src/guestfs.pod:2135
4176 msgid "STATE MACHINE"
4177 msgstr "СКІНЧЕННИЙ АВТОМАТ"
4178
4179 #. type: textblock
4180 #: ../src/guestfs.pod:2137
4181 msgid "libguestfs uses a state machine to model the child process:"
4182 msgstr ""
4183
4184 #. type: verbatim
4185 #: ../src/guestfs.pod:2139
4186 #, no-wrap
4187 msgid ""
4188 "                         |\n"
4189 "                    guestfs_create\n"
4190 "                         |\n"
4191 "                         |\n"
4192 "                     ____V_____\n"
4193 "                    /          \\\n"
4194 "                    |  CONFIG  |\n"
4195 "                    \\__________/\n"
4196 "                     ^ ^   ^  \\\n"
4197 "                    /  |    \\  \\ guestfs_launch\n"
4198 "                   /   |    _\\__V______\n"
4199 "                  /    |   /           \\\n"
4200 "                 /     |   | LAUNCHING |\n"
4201 "                /      |   \\___________/\n"
4202 "               /       |       /\n"
4203 "              /        |  guestfs_launch\n"
4204 "             /         |     /\n"
4205 "    ______  /        __|____V\n"
4206 "   /      \\ ------> /        \\\n"
4207 "   | BUSY |         | READY  |\n"
4208 "   \\______/ <------ \\________/\n"
4209 "\n"
4210 msgstr ""
4211
4212 #. type: textblock
4213 #: ../src/guestfs.pod:2161
4214 msgid ""
4215 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4216 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4217 "(3) alternating between READY and BUSY as commands are issued to, and "
4218 "carried out by, the child process."
4219 msgstr ""
4220
4221 #. type: textblock
4222 #: ../src/guestfs.pod:2166
4223 msgid ""
4224 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4225 "asynchronously at any time (eg. due to some internal error), and that causes "
4226 "the state to transition back to CONFIG."
4227 msgstr ""
4228
4229 #. type: textblock
4230 #: ../src/guestfs.pod:2170
4231 msgid ""
4232 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4233 "issued when in the CONFIG state."
4234 msgstr ""
4235
4236 #. type: textblock
4237 #: ../src/guestfs.pod:2173
4238 msgid ""
4239 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4240 "L</guestfs_launch> blocks until the child process is READY to accept "
4241 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4242 "moves the state from CONFIG to LAUNCHING while it is running."
4243 msgstr ""
4244
4245 #. type: textblock
4246 #: ../src/guestfs.pod:2179
4247 msgid ""
4248 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4249 "state.  These API calls block waiting for the command to be carried out (ie. "
4250 "the state to transition to BUSY and then back to READY).  There are no non-"
4251 "blocking versions, and no way to issue more than one command per handle at "
4252 "the same time."
4253 msgstr ""
4254
4255 #. type: textblock
4256 #: ../src/guestfs.pod:2185
4257 msgid ""
4258 "Finally, the child process sends asynchronous messages back to the main "
4259 "program, such as kernel log messages.  You can register a callback to "
4260 "receive these messages."
4261 msgstr ""
4262
4263 #. type: =head1
4264 #: ../src/guestfs.pod:2189
4265 msgid "INTERNALS"
4266 msgstr ""
4267
4268 #. type: =head2
4269 #: ../src/guestfs.pod:2191
4270 msgid "COMMUNICATION PROTOCOL"
4271 msgstr ""
4272
4273 #. type: textblock
4274 #: ../src/guestfs.pod:2193
4275 msgid ""
4276 "Don't rely on using this protocol directly.  This section documents how it "
4277 "currently works, but it may change at any time."
4278 msgstr ""
4279
4280 #. type: textblock
4281 #: ../src/guestfs.pod:2196
4282 msgid ""
4283 "The protocol used to talk between the library and the daemon running inside "
4284 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4285 "1014, RFC 1832, RFC 4506)."
4286 msgstr ""
4287
4288 #. type: textblock
4289 #: ../src/guestfs.pod:2200
4290 msgid ""
4291 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4292 "this file is automatically generated)."
4293 msgstr ""
4294
4295 #. type: textblock
4296 #: ../src/guestfs.pod:2203
4297 msgid ""
4298 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4299 "and C<FileOut> parameters, which are handled with very simple request/reply "
4300 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4301 "parameters, which use the same request and reply messages, but they may also "
4302 "be followed by files sent using a chunked encoding."
4303 msgstr ""
4304
4305 #. type: =head3
4306 #: ../src/guestfs.pod:2210
4307 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4308 msgstr ""
4309
4310 #. type: textblock
4311 #: ../src/guestfs.pod:2212
4312 msgid "For ordinary functions, the request message is:"
4313 msgstr ""
4314
4315 #. type: verbatim
4316 #: ../src/guestfs.pod:2214
4317 #, no-wrap
4318 msgid ""
4319 " total length (header + arguments,\n"
4320 "      but not including the length word itself)\n"
4321 " struct guestfs_message_header (encoded as XDR)\n"
4322 " struct guestfs_<foo>_args (encoded as XDR)\n"
4323 "\n"
4324 msgstr ""
4325
4326 #. type: textblock
4327 #: ../src/guestfs.pod:2219
4328 msgid ""
4329 "The total length field allows the daemon to allocate a fixed size buffer "
4330 "into which it slurps the rest of the message.  As a result, the total length "
4331 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4332 "effective size of any request is limited to somewhere under this size."
4333 msgstr ""
4334
4335 #. type: textblock
4336 #: ../src/guestfs.pod:2225
4337 msgid ""
4338 "Note also that many functions don't take any arguments, in which case the "
4339 "C<guestfs_I<foo>_args> is completely omitted."
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../src/guestfs.pod:2228
4344 msgid ""
4345 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4346 "receiver knows what type of args structure to expect, or none at all."
4347 msgstr ""
4348
4349 #. type: textblock
4350 #: ../src/guestfs.pod:2232
4351 msgid ""
4352 "For functions that take optional arguments, the optional arguments are "
4353 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4354 "arguments.  A bitmask in the header indicates which optional arguments are "
4355 "meaningful.  The bitmask is also checked to see if it contains bits set "
4356 "which the daemon does not know about (eg. if more optional arguments were "
4357 "added in a later version of the library), and this causes the call to be "
4358 "rejected."
4359 msgstr ""
4360
4361 #. type: textblock
4362 #: ../src/guestfs.pod:2240
4363 msgid "The reply message for ordinary functions is:"
4364 msgstr ""
4365
4366 #. type: verbatim
4367 #: ../src/guestfs.pod:2242
4368 #, no-wrap
4369 msgid ""
4370 " total length (header + ret,\n"
4371 "      but not including the length word itself)\n"
4372 " struct guestfs_message_header (encoded as XDR)\n"
4373 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4374 "\n"
4375 msgstr ""
4376
4377 #. type: textblock
4378 #: ../src/guestfs.pod:2247
4379 msgid ""
4380 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4381 "functions that return no formal return values."
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../src/guestfs.pod:2250
4386 msgid ""
4387 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4388 msgstr ""
4389
4390 #. type: textblock
4391 #: ../src/guestfs.pod:2253
4392 msgid ""
4393 "In the case of an error, a flag is set in the header, and the reply message "
4394 "is slightly changed:"
4395 msgstr ""
4396
4397 #. type: verbatim
4398 #: ../src/guestfs.pod:2256
4399 #, no-wrap
4400 msgid ""
4401 " total length (header + error,\n"
4402 "      but not including the length word itself)\n"
4403 " struct guestfs_message_header (encoded as XDR)\n"
4404 " struct guestfs_message_error (encoded as XDR)\n"
4405 "\n"
4406 msgstr ""
4407
4408 #. type: textblock
4409 #: ../src/guestfs.pod:2261
4410 msgid ""
4411 "The C<guestfs_message_error> structure contains the error message as a "
4412 "string."
4413 msgstr ""
4414
4415 #. type: =head3
4416 #: ../src/guestfs.pod:2264
4417 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4418 msgstr ""
4419
4420 #. type: textblock
4421 #: ../src/guestfs.pod:2266
4422 msgid ""
4423 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4424 "The normal request message is sent (see above).  However this is followed by "
4425 "a sequence of file chunks."
4426 msgstr ""
4427
4428 #. type: verbatim
4429 #: ../src/guestfs.pod:2270
4430 #, no-wrap
4431 msgid ""
4432 " total length (header + arguments,\n"
4433 "      but not including the length word itself,\n"
4434 "      and not including the chunks)\n"
4435 " struct guestfs_message_header (encoded as XDR)\n"
4436 " struct guestfs_<foo>_args (encoded as XDR)\n"
4437 " sequence of chunks for FileIn param #0\n"
4438 " sequence of chunks for FileIn param #1 etc.\n"
4439 "\n"
4440 msgstr ""
4441
4442 #. type: textblock
4443 #: ../src/guestfs.pod:2278
4444 msgid "The \"sequence of chunks\" is:"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../src/guestfs.pod:2280
4449 #, no-wrap
4450 msgid ""
4451 " length of chunk (not including length word itself)\n"
4452 " struct guestfs_chunk (encoded as XDR)\n"
4453 " length of chunk\n"
4454 " struct guestfs_chunk (encoded as XDR)\n"
4455 "   ...\n"
4456 " length of chunk\n"
4457 " struct guestfs_chunk (with data.data_len == 0)\n"
4458 "\n"
4459 msgstr ""
4460
4461 #. type: textblock
4462 #: ../src/guestfs.pod:2288
4463 msgid ""
4464 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4465 "is set in the final chunk to indicate either successful completion or early "
4466 "cancellation."
4467 msgstr ""
4468
4469 #. type: textblock
4470 #: ../src/guestfs.pod:2292
4471 msgid ""
4472 "At time of writing there are no functions that have more than one FileIn "
4473 "parameter.  However this is (theoretically) supported, by sending the "
4474 "sequence of chunks for each FileIn parameter one after another (from left to "
4475 "right)."
4476 msgstr ""
4477
4478 #. type: textblock
4479 #: ../src/guestfs.pod:2297
4480 msgid ""
4481 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4482 "transfer.  The library does this by sending a chunk with a special flag set "
4483 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4484 "RPC, does I<not> send any reply, and goes back to reading the next request."
4485 msgstr ""
4486
4487 #. type: textblock
4488 #: ../src/guestfs.pod:2303
4489 msgid ""
4490 "The daemon may also cancel.  It does this by writing a special word "
4491 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4492 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4493 "cancel chunk).  The special word is chosen so that even if cancellation "
4494 "happens right at the end of the transfer (after the library has finished "
4495 "writing and has started listening for the reply), the \"spurious\" cancel "
4496 "flag will not be confused with the reply message."
4497 msgstr ""
4498
4499 #. type: textblock
4500 #: ../src/guestfs.pod:2312
4501 msgid ""
4502 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4503 "limit), and also files where the size is not known in advance (eg. from "
4504 "pipes or sockets).  However the chunks are rather small "
4505 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4506 "to keep much in memory."
4507 msgstr ""
4508
4509 #. type: =head3
4510 #: ../src/guestfs.pod:2318
4511 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4512 msgstr ""
4513
4514 #. type: textblock
4515 #: ../src/guestfs.pod:2320
4516 msgid ""
4517 "The protocol for FileOut parameters is exactly the same as for FileIn "
4518 "parameters, but with the roles of daemon and library reversed."
4519 msgstr ""
4520
4521 #. type: verbatim
4522 #: ../src/guestfs.pod:2323
4523 #, no-wrap
4524 msgid ""
4525 " total length (header + ret,\n"
4526 "      but not including the length word itself,\n"
4527 "      and not including the chunks)\n"
4528 " struct guestfs_message_header (encoded as XDR)\n"
4529 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4530 " sequence of chunks for FileOut param #0\n"
4531 " sequence of chunks for FileOut param #1 etc.\n"
4532 "\n"
4533 msgstr ""
4534
4535 #. type: =head3
4536 #: ../src/guestfs.pod:2331
4537 msgid "INITIAL MESSAGE"
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../src/guestfs.pod:2333
4542 msgid ""
4543 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4544 "which indicates that the guest and daemon is alive.  This is what L</"
4545 "guestfs_launch> waits for."
4546 msgstr ""
4547
4548 #. type: =head3
4549 #: ../src/guestfs.pod:2337
4550 msgid "PROGRESS NOTIFICATION MESSAGES"
4551 msgstr ""
4552
4553 #. type: textblock
4554 #: ../src/guestfs.pod:2339
4555 msgid ""
4556 "The daemon may send progress notification messages at any time.  These are "
4557 "distinguished by the normal length word being replaced by "
4558 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4559 msgstr ""
4560
4561 #. type: textblock
4562 #: ../src/guestfs.pod:2343
4563 msgid ""
4564 "The library turns them into progress callbacks (see L</"
4565 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
4566 "if not."
4567 msgstr ""
4568
4569 #. type: textblock
4570 #: ../src/guestfs.pod:2347
4571 msgid ""
4572 "The daemon self-limits the frequency of progress messages it sends (see "
4573 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4574 "messages."
4575 msgstr ""
4576
4577 #. type: =head1
4578 #: ../src/guestfs.pod:2351
4579 msgid "LIBGUESTFS VERSION NUMBERS"
4580 msgstr ""
4581
4582 #. type: textblock
4583 #: ../src/guestfs.pod:2353
4584 msgid ""
4585 "Since April 2010, libguestfs has started to make separate development and "
4586 "stable releases, along with corresponding branches in our git repository.  "
4587 "These separate releases can be identified by version number:"
4588 msgstr ""
4589
4590 #. type: verbatim
4591 #: ../src/guestfs.pod:2358
4592 #, no-wrap
4593 msgid ""
4594 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4595 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4596 "       |\n"
4597 "       v\n"
4598 " 1  .  3  .  5\n"
4599 " ^           ^\n"
4600 " |           |\n"
4601 " |           `-------- sub-version\n"
4602 " |\n"
4603 " `------ always '1' because we don't change the ABI\n"
4604 "\n"
4605 msgstr ""
4606
4607 #. type: textblock
4608 #: ../src/guestfs.pod:2369
4609 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4610 msgstr ""
4611
4612 #. type: textblock
4613 #: ../src/guestfs.pod:2371
4614 msgid ""
4615 "As time passes we cherry pick fixes from the development branch and backport "
4616 "those into the stable branch, the effect being that the stable branch should "
4617 "get more stable and less buggy over time.  So the stable releases are ideal "
4618 "for people who don't need new features but would just like the software to "
4619 "work."
4620 msgstr ""
4621
4622 #. type: textblock
4623 #: ../src/guestfs.pod:2377
4624 msgid "Our criteria for backporting changes are:"
4625 msgstr ""
4626
4627 #. type: textblock
4628 #: ../src/guestfs.pod:2383
4629 msgid ""
4630 "Documentation changes which don't affect any code are backported unless the "
4631 "documentation refers to a future feature which is not in stable."
4632 msgstr ""
4633
4634 #. type: textblock
4635 #: ../src/guestfs.pod:2389
4636 msgid ""
4637 "Bug fixes which are not controversial, fix obvious problems, and have been "
4638 "well tested are backported."
4639 msgstr ""
4640
4641 #. type: textblock
4642 #: ../src/guestfs.pod:2394
4643 msgid ""
4644 "Simple rearrangements of code which shouldn't affect how it works get "
4645 "backported.  This is so that the code in the two branches doesn't get too "
4646 "far out of step, allowing us to backport future fixes more easily."
4647 msgstr ""
4648
4649 #. type: textblock
4650 #: ../src/guestfs.pod:2400
4651 msgid ""
4652 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4653 "exceptional case: the new feature is required in order to implement an "
4654 "important bug fix."
4655 msgstr ""
4656
4657 #. type: textblock
4658 #: ../src/guestfs.pod:2406
4659 msgid ""
4660 "A new stable branch starts when we think the new features in development are "
4661 "substantial and compelling enough over the current stable branch to warrant "
4662 "it.  When that happens we create new stable and development versions 1.N.0 "
4663 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4664 "stable at this point, but by backporting fixes from development, that branch "
4665 "will stabilize over time."
4666 msgstr ""
4667
4668 #. type: =head1
4669 #: ../src/guestfs.pod:2414
4670 msgid "EXTENDING LIBGUESTFS"
4671 msgstr ""
4672
4673 #. type: =head2
4674 #: ../src/guestfs.pod:2416
4675 msgid "ADDING A NEW API ACTION"
4676 msgstr ""
4677
4678 #. type: textblock
4679 #: ../src/guestfs.pod:2418
4680 msgid ""
4681 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4682 "documentation) are generated, and this makes it easy to extend the "
4683 "libguestfs API."
4684 msgstr ""
4685
4686 #. type: textblock
4687 #: ../src/guestfs.pod:2422
4688 msgid "To add a new API action there are two changes:"
4689 msgstr ""
4690
4691 #. type: textblock
4692 #: ../src/guestfs.pod:2428
4693 msgid ""
4694 "You need to add a description of the call (name, parameters, return type, "
4695 "tests, documentation) to C<generator/generator_actions.ml>."
4696 msgstr ""
4697
4698 #. type: textblock
4699 #: ../src/guestfs.pod:2431
4700 msgid ""
4701 "There are two sorts of API action, depending on whether the call goes "
4702 "through to the daemon in the appliance, or is serviced entirely by the "
4703 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4704 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4705 "an example of the latter, since a trace flag is maintained in the handle and "
4706 "all tracing is done on the library side."
4707 msgstr ""
4708
4709 #. type: textblock
4710 #: ../src/guestfs.pod:2439
4711 msgid ""
4712 "Most new actions are of the first type, and get added to the "
4713 "C<daemon_functions> list.  Each function has a unique procedure number used "
4714 "in the RPC protocol which is assigned to that action when we publish "
4715 "libguestfs and cannot be reused.  Take the latest procedure number and "
4716 "increment it."
4717 msgstr ""
4718
4719 #. type: textblock
4720 #: ../src/guestfs.pod:2445
4721 msgid ""
4722 "For library-only actions of the second type, add to the "
4723 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4724 "library and do not travel over the RPC mechanism to the daemon, these "
4725 "functions do not need a procedure number, and so the procedure number is set "
4726 "to C<-1>."
4727 msgstr ""
4728
4729 #. type: textblock
4730 #: ../src/guestfs.pod:2453
4731 msgid "Implement the action (in C):"
4732 msgstr ""
4733
4734 #. type: textblock
4735 #: ../src/guestfs.pod:2455
4736 msgid ""
4737 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4738 "C<daemon/> directory."
4739 msgstr ""
4740
4741 #. type: textblock
4742 #: ../src/guestfs.pod:2458
4743 msgid ""
4744 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4745 "(note: double underscore) in the C<src/> directory."
4746 msgstr ""
4747
4748 #. type: textblock
4749 #: ../src/guestfs.pod:2461
4750 msgid "In either case, use another function as an example of what to do."
4751 msgstr ""
4752
4753 #. type: textblock
4754 #: ../src/guestfs.pod:2465
4755 msgid "After making these changes, use C<make> to compile."
4756 msgstr ""
4757
4758 #. type: textblock
4759 #: ../src/guestfs.pod:2467
4760 msgid ""
4761 "Note that you don't need to implement the RPC, language bindings, manual "
4762 "pages or anything else.  It's all automatically generated from the OCaml "
4763 "description."
4764 msgstr ""
4765
4766 #. type: =head2
4767 #: ../src/guestfs.pod:2471
4768 msgid "ADDING TESTS FOR AN API ACTION"
4769 msgstr ""
4770
4771 #. type: textblock
4772 #: ../src/guestfs.pod:2473
4773 msgid ""
4774 "You can supply zero or as many tests as you want per API call.  The tests "
4775 "can either be added as part of the API description (C<generator/"
4776 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
4777 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
4778 "slower, so if possible use the first method."
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../src/guestfs.pod:2479
4783 msgid ""
4784 "The following describes the test environment used when you add an API test "
4785 "in C<generator_actions.ml>."
4786 msgstr ""
4787
4788 #. type: textblock
4789 #: ../src/guestfs.pod:2482
4790 msgid "The test environment has 4 block devices:"
4791 msgstr ""
4792
4793 #. type: =item
4794 #: ../src/guestfs.pod:2486
4795 msgid "C</dev/sda> 500MB"
4796 msgstr ""
4797
4798 #. type: textblock
4799 #: ../src/guestfs.pod:2488
4800 msgid "General block device for testing."
4801 msgstr ""
4802
4803 #. type: =item
4804 #: ../src/guestfs.pod:2490
4805 msgid "C</dev/sdb> 50MB"
4806 msgstr ""
4807
4808 #. type: textblock
4809 #: ../src/guestfs.pod:2492
4810 msgid ""
4811 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4812 "operations."
4813 msgstr ""
4814
4815 #. type: =item
4816 #: ../src/guestfs.pod:2495
4817 msgid "C</dev/sdc> 10MB"
4818 msgstr ""
4819
4820 #. type: textblock
4821 #: ../src/guestfs.pod:2497
4822 msgid "Used in a few tests where two block devices are needed."
4823 msgstr ""
4824
4825 #. type: =item
4826 #: ../src/guestfs.pod:2499
4827 msgid "C</dev/sdd>"
4828 msgstr "C</dev/sdd>"
4829
4830 #. type: textblock
4831 #: ../src/guestfs.pod:2501
4832 msgid "ISO with fixed content (see C<images/test.iso>)."
4833 msgstr ""
4834
4835 #. type: textblock
4836 #: ../src/guestfs.pod:2505
4837 msgid ""
4838 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4839 "appliance and block devices are reused between tests.  So don't try testing "
4840 "L</guestfs_kill_subprocess> :-x"
4841 msgstr ""
4842
4843 #. type: textblock
4844 #: ../src/guestfs.pod:2509
4845 msgid ""
4846 "Each test starts with an initial scenario, selected using one of the "
4847 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4848 "initialize the disks mentioned above in a particular way as documented in "
4849 "C<generator_types.ml>.  You should not assume anything about the previous "
4850 "contents of other disks that are not initialized."
4851 msgstr ""
4852
4853 #. type: textblock
4854 #: ../src/guestfs.pod:2515
4855 msgid ""
4856 "You can add a prerequisite clause to any individual test.  This is a run-"
4857 "time check, which, if it fails, causes the test to be skipped.  Useful if "
4858 "testing a command which might not work on all variations of libguestfs "
4859 "builds.  A test that has prerequisite of C<Always> means to run "
4860 "unconditionally."
4861 msgstr ""
4862
4863 #. type: textblock
4864 #: ../src/guestfs.pod:2521
4865 msgid ""
4866 "In addition, packagers can skip individual tests by setting environment "
4867 "variables before running C<make check>."
4868 msgstr ""
4869
4870 #. type: verbatim
4871 #: ../src/guestfs.pod:2524
4872 #, no-wrap
4873 msgid ""
4874 " SKIP_TEST_<CMD>_<NUM>=1\n"
4875 "\n"
4876 msgstr ""
4877
4878 #. type: textblock
4879 #: ../src/guestfs.pod:2526
4880 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4881 msgstr ""
4882
4883 #. type: textblock
4884 #: ../src/guestfs.pod:2528
4885 msgid "or:"
4886 msgstr "або:"
4887
4888 #. type: verbatim
4889 #: ../src/guestfs.pod:2530
4890 #, no-wrap
4891 msgid ""
4892 " SKIP_TEST_<CMD>=1\n"
4893 "\n"
4894 msgstr ""
4895
4896 #. type: textblock
4897 #: ../src/guestfs.pod:2532
4898 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4899 msgstr ""
4900
4901 #. type: textblock
4902 #: ../src/guestfs.pod:2534
4903 msgid "Packagers can run only certain tests by setting for example:"
4904 msgstr ""
4905
4906 #. type: verbatim
4907 #: ../src/guestfs.pod:2536
4908 #, no-wrap
4909 msgid ""
4910 " TEST_ONLY=\"vfs_type zerofree\"\n"
4911 "\n"
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../src/guestfs.pod:2538
4916 msgid ""
4917 "See C<capitests/tests.c> for more details of how these environment variables "
4918 "work."
4919 msgstr ""
4920
4921 #. type: =head2
4922 #: ../src/guestfs.pod:2541
4923 msgid "DEBUGGING NEW API ACTIONS"
4924 msgstr ""
4925
4926 #. type: textblock
4927 #: ../src/guestfs.pod:2543
4928 msgid "Test new actions work before submitting them."
4929 msgstr ""
4930
4931 #. type: textblock
4932 #: ../src/guestfs.pod:2545
4933 msgid "You can use guestfish to try out new commands."
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../src/guestfs.pod:2547
4938 msgid ""
4939 "Debugging the daemon is a problem because it runs inside a minimal "
4940 "environment.  However you can fprintf messages in the daemon to stderr, and "
4941 "they will show up if you use C<guestfish -v>."
4942 msgstr ""
4943
4944 #. type: =head2
4945 #: ../src/guestfs.pod:2551
4946 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4947 msgstr ""
4948
4949 #. type: textblock
4950 #: ../src/guestfs.pod:2553
4951 msgid ""
4952 "Our C source code generally adheres to some basic code-formatting "
4953 "conventions.  The existing code base is not totally consistent on this "
4954 "front, but we do prefer that contributed code be formatted similarly.  In "
4955 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4956 "indentation level, and other than that, follow the K&R style."
4957 msgstr ""
4958
4959 #. type: textblock
4960 #: ../src/guestfs.pod:2559
4961 msgid ""
4962 "If you use Emacs, add the following to one of one of your start-up files (e."
4963 "g., ~/.emacs), to help ensure that you get indentation right:"
4964 msgstr ""
4965
4966 #. type: verbatim
4967 #: ../src/guestfs.pod:2562
4968 #, no-wrap
4969 msgid ""
4970 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4971 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4972 " (add-hook 'find-file-hook\n"
4973 "     '(lambda () (if (and buffer-file-name\n"
4974 "                          (string-match \"/libguestfs\\\\>\"\n"
4975 "                              (buffer-file-name))\n"
4976 "                          (not (string-equal mode-name \"Change Log\"))\n"
4977 "                          (not (string-equal mode-name \"Makefile\")))\n"
4978 "                     (setq indent-tabs-mode nil))))\n"
4979 " \n"
4980 msgstr ""
4981
4982 #. type: verbatim
4983 #: ../src/guestfs.pod:2572
4984 #, no-wrap
4985 msgid ""
4986 " ;;; When editing C sources in libguestfs, use this style.\n"
4987 " (defun libguestfs-c-mode ()\n"
4988 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
4989 "   (interactive)\n"
4990 "   (c-set-style \"K&R\")\n"
4991 "   (setq c-indent-level 2)\n"
4992 "   (setq c-basic-offset 2))\n"
4993 " (add-hook 'c-mode-hook\n"
4994 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
4995 "                               (buffer-file-name))\n"
4996 "                           (libguestfs-c-mode))))\n"
4997 "\n"
4998 msgstr ""
4999
5000 #. type: textblock
5001 #: ../src/guestfs.pod:2584
5002 msgid "Enable warnings when compiling (and fix any problems this finds):"
5003 msgstr ""
5004
5005 #. type: verbatim
5006 #: ../src/guestfs.pod:2587
5007 #, no-wrap
5008 msgid ""
5009 " ./configure --enable-gcc-warnings\n"
5010 "\n"
5011 msgstr ""
5012
5013 #. type: textblock
5014 #: ../src/guestfs.pod:2589
5015 msgid "Useful targets are:"
5016 msgstr ""
5017
5018 #. type: verbatim
5019 #: ../src/guestfs.pod:2591
5020 #, no-wrap
5021 msgid ""
5022 " make syntax-check  # checks the syntax of the C code\n"
5023 " make check         # runs the test suite\n"
5024 "\n"
5025 msgstr ""
5026
5027 #. type: =head2
5028 #: ../src/guestfs.pod:2594
5029 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5030 msgstr ""
5031
5032 #. type: textblock
5033 #: ../src/guestfs.pod:2596
5034 msgid ""
5035 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5036 "which are used to do shell quoting."
5037 msgstr ""
5038
5039 #. type: =item
5040 #: ../src/guestfs.pod:2601
5041 msgid "%Q"
5042 msgstr "%Q"
5043
5044 #. type: textblock
5045 #: ../src/guestfs.pod:2603
5046 msgid ""
5047 "Simple shell quoted string.  Any spaces or other shell characters are "
5048 "escaped for you."
5049 msgstr ""
5050
5051 #. type: =item
5052 #: ../src/guestfs.pod:2606
5053 msgid "%R"
5054 msgstr "%R"
5055
5056 #. type: textblock
5057 #: ../src/guestfs.pod:2608
5058 msgid ""
5059 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5060 "the sysroot."
5061 msgstr ""
5062
5063 #. type: textblock
5064 #: ../src/guestfs.pod:2613 ../fish/guestfish.pod:242 ../fish/guestfish.pod:615
5065 msgid "For example:"
5066 msgstr "Приклад:"
5067
5068 #. type: verbatim
5069 #: ../src/guestfs.pod:2615
5070 #, no-wrap
5071 msgid ""
5072 " asprintf (&cmd, \"cat %R\", path);\n"
5073 "\n"
5074 msgstr ""
5075
5076 #. type: textblock
5077 #: ../src/guestfs.pod:2617
5078 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5079 msgstr ""
5080
5081 #. type: textblock
5082 #: ../src/guestfs.pod:2619
5083 msgid ""
5084 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5085 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5086 "they are not passed via the shell (instead, straight to exec).  You probably "
5087 "want to use the C<sysroot_path()> function however."
5088 msgstr ""
5089
5090 #. type: =head2
5091 #: ../src/guestfs.pod:2625
5092 msgid "SUBMITTING YOUR NEW API ACTIONS"
5093 msgstr ""
5094
5095 #. type: textblock
5096 #: ../src/guestfs.pod:2627
5097 msgid ""
5098 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5099 "libguestfs> and CC to L<rjones@redhat.com>."
5100 msgstr ""
5101
5102 #. type: =head2
5103 #: ../src/guestfs.pod:2631
5104 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5105 msgstr ""
5106
5107 #. type: textblock
5108 #: ../src/guestfs.pod:2633
5109 msgid "We support i18n (gettext anyhow) in the library."
5110 msgstr ""
5111
5112 #. type: textblock
5113 #: ../src/guestfs.pod:2635
5114 msgid ""
5115 "However many messages come from the daemon, and we don't translate those at "
5116 "the moment.  One reason is that the appliance generally has all locale files "
5117 "removed from it, because they take up a lot of space.  So we'd have to readd "
5118 "some of those, as well as copying our PO files into the appliance."
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../src/guestfs.pod:2641
5123 msgid ""
5124 "Debugging messages are never translated, since they are intended for the "
5125 "programmers."
5126 msgstr ""
5127
5128 #. type: =head2
5129 #: ../src/guestfs.pod:2644
5130 msgid "SOURCE CODE SUBDIRECTORIES"
5131 msgstr ""
5132
5133 #. type: =item
5134 #: ../src/guestfs.pod:2648 ../src/guestfs-actions.pod:5827
5135 #: ../fish/guestfish-actions.pod:3920
5136 msgid "C<appliance>"
5137 msgstr "C<appliance>"
5138
5139 #. type: textblock
5140 #: ../src/guestfs.pod:2650
5141 msgid "The libguestfs appliance, build scripts and so on."
5142 msgstr ""
5143
5144 #. type: =item
5145 #: ../src/guestfs.pod:2652
5146 msgid "C<capitests>"
5147 msgstr "C<capitests>"
5148
5149 #. type: textblock
5150 #: ../src/guestfs.pod:2654
5151 msgid "Automated tests of the C API."
5152 msgstr ""
5153
5154 #. type: =item
5155 #: ../src/guestfs.pod:2656
5156 msgid "C<cat>"
5157 msgstr "C<cat>"
5158
5159 #. type: textblock
5160 #: ../src/guestfs.pod:2658
5161 msgid ""
5162 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5163 "documentation."
5164 msgstr ""
5165
5166 #. type: =item
5167 #: ../src/guestfs.pod:2661
5168 msgid "C<contrib>"
5169 msgstr "C<contrib>"
5170
5171 #. type: textblock
5172 #: ../src/guestfs.pod:2663
5173 msgid "Outside contributions, experimental parts."
5174 msgstr ""
5175
5176 #. type: =item
5177 #: ../src/guestfs.pod:2665
5178 msgid "C<daemon>"
5179 msgstr "C<daemon>"
5180
5181 #. type: textblock
5182 #: ../src/guestfs.pod:2667
5183 msgid ""
5184 "The daemon that runs inside the libguestfs appliance and carries out actions."
5185 msgstr ""
5186
5187 #. type: =item
5188 #: ../src/guestfs.pod:2670
5189 msgid "C<df>"
5190 msgstr "C<df>"
5191
5192 #. type: textblock
5193 #: ../src/guestfs.pod:2672
5194 msgid "L<virt-df(1)> command and documentation."
5195 msgstr ""
5196
5197 #. type: =item
5198 #: ../src/guestfs.pod:2674
5199 msgid "C<edit>"
5200 msgstr ""
5201
5202 #. type: textblock
5203 #: ../src/guestfs.pod:2676
5204 msgid "L<virt-edit(1)> command and documentation."
5205 msgstr ""
5206
5207 #. type: =item
5208 #: ../src/guestfs.pod:2678
5209 msgid "C<examples>"
5210 msgstr "C<examples>"
5211
5212 #. type: textblock
5213 #: ../src/guestfs.pod:2680
5214 msgid "C API example code."
5215 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
5216
5217 #. type: =item
5218 #: ../src/guestfs.pod:2682
5219 msgid "C<fish>"
5220 msgstr "C<fish>"
5221
5222 #. type: textblock
5223 #: ../src/guestfs.pod:2684
5224 msgid ""
5225 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5226 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5227 "L<virt-tar-out(1)>."
5228 msgstr ""
5229
5230 #. type: =item
5231 #: ../src/guestfs.pod:2688
5232 msgid "C<fuse>"
5233 msgstr "C<fuse>"
5234
5235 #. type: textblock
5236 #: ../src/guestfs.pod:2690
5237 msgid ""
5238 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5239 msgstr ""
5240
5241 #. type: =item
5242 #: ../src/guestfs.pod:2692
5243 msgid "C<generator>"
5244 msgstr "C<generator>"
5245
5246 #. type: textblock
5247 #: ../src/guestfs.pod:2694
5248 msgid ""
5249 "The crucially important generator, used to automatically generate large "
5250 "amounts of boilerplate C code for things like RPC and bindings."
5251 msgstr ""
5252
5253 #. type: =item
5254 #: ../src/guestfs.pod:2697
5255 msgid "C<images>"
5256 msgstr "C<images>"
5257
5258 #. type: textblock
5259 #: ../src/guestfs.pod:2699
5260 msgid "Files used by the test suite."
5261 msgstr ""
5262
5263 #. type: textblock
5264 #: ../src/guestfs.pod:2701
5265 msgid "Some \"phony\" guest images which we test against."
5266 msgstr ""
5267
5268 #. type: =item
5269 #: ../src/guestfs.pod:2703
5270 msgid "C<inspector>"
5271 msgstr "C<inspector>"
5272
5273 #. type: textblock
5274 #: ../src/guestfs.pod:2705
5275 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5276 msgstr ""
5277
5278 #. type: =item
5279 #: ../src/guestfs.pod:2707
5280 msgid "C<logo>"
5281 msgstr "C<logo>"
5282
5283 #. type: textblock
5284 #: ../src/guestfs.pod:2709
5285 msgid "Logo used on the website.  The fish is called Arthur by the way."
5286 msgstr ""
5287
5288 #. type: =item
5289 #: ../src/guestfs.pod:2711
5290 msgid "C<m4>"
5291 msgstr "C<m4>"
5292
5293 #. type: textblock
5294 #: ../src/guestfs.pod:2713
5295 msgid "M4 macros used by autoconf."
5296 msgstr ""
5297
5298 #. type: =item
5299 #: ../src/guestfs.pod:2715
5300 msgid "C<po>"
5301 msgstr "C<po>"
5302
5303 #. type: textblock
5304 #: ../src/guestfs.pod:2717
5305 msgid "Translations of simple gettext strings."
5306 msgstr "Переклади простих рядків gettext."
5307
5308 #. type: =item
5309 #: ../src/guestfs.pod:2719
5310 msgid "C<po-docs>"
5311 msgstr "C<po-docs>"
5312
5313 #. type: textblock
5314 #: ../src/guestfs.pod:2721
5315 msgid ""
5316 "The build infrastructure and PO files for translations of manpages and POD "
5317 "files.  Eventually this will be combined with the C<po> directory, but that "
5318 "is rather complicated."
5319 msgstr ""
5320
5321 #. type: =item
5322 #: ../src/guestfs.pod:2725
5323 msgid "C<regressions>"
5324 msgstr "C<regressions>"
5325
5326 #. type: textblock
5327 #: ../src/guestfs.pod:2727
5328 msgid "Regression tests."
5329 msgstr "Тести на регресії."
5330
5331 #. type: =item
5332 #: ../src/guestfs.pod:2729
5333 msgid "C<rescue>"
5334 msgstr "C<rescue>"
5335
5336 #. type: textblock
5337 #: ../src/guestfs.pod:2731
5338 msgid "L<virt-rescue(1)> command and documentation."
5339 msgstr ""
5340
5341 #. type: =item
5342 #: ../src/guestfs.pod:2733
5343 msgid "C<src>"
5344 msgstr "C<src>"
5345
5346 #. type: textblock
5347 #: ../src/guestfs.pod:2735
5348 msgid "Source code to the C library."
5349 msgstr ""
5350
5351 #. type: =item
5352 #: ../src/guestfs.pod:2737
5353 msgid "C<tools>"
5354 msgstr "C<tools>"
5355
5356 #. type: textblock
5357 #: ../src/guestfs.pod:2739
5358 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5359 msgstr ""
5360
5361 #. type: =item
5362 #: ../src/guestfs.pod:2741
5363 msgid "C<test-tool>"
5364 msgstr "C<test-tool>"
5365
5366 #. type: textblock
5367 #: ../src/guestfs.pod:2743
5368 msgid ""
5369 "Test tool for end users to test if their qemu/kernel combination will work "
5370 "with libguestfs."
5371 msgstr ""
5372
5373 #. type: =item
5374 #: ../src/guestfs.pod:2746
5375 msgid "C<csharp>"
5376 msgstr "C<csharp>"
5377
5378 #. type: =item
5379 #: ../src/guestfs.pod:2748
5380 msgid "C<haskell>"
5381 msgstr "C<haskell>"
5382
5383 #. type: =item
5384 #: ../src/guestfs.pod:2750
5385 msgid "C<java>"
5386 msgstr "C<java>"
5387
5388 #. type: =item
5389 #: ../src/guestfs.pod:2752
5390 msgid "C<ocaml>"
5391 msgstr "C<ocaml>"
5392
5393 #. type: =item
5394 #: ../src/guestfs.pod:2754
5395 msgid "C<php>"
5396 msgstr "C<php>"
5397
5398 #. type: =item
5399 #: ../src/guestfs.pod:2756
5400 msgid "C<perl>"
5401 msgstr "C<perl>"
5402
5403 #. type: =item
5404 #: ../src/guestfs.pod:2758
5405 msgid "C<python>"
5406 msgstr "C<python>"
5407
5408 #. type: =item
5409 #: ../src/guestfs.pod:2760
5410 msgid "C<ruby>"
5411 msgstr "C<ruby>"
5412
5413 #. type: textblock
5414 #: ../src/guestfs.pod:2762
5415 msgid "Language bindings."
5416 msgstr "Прив’язки до мов програмування."
5417
5418 #. type: =head1
5419 #: ../src/guestfs.pod:2766
5420 msgid "LIMITS"
5421 msgstr ""
5422
5423 #. type: =head2
5424 #: ../src/guestfs.pod:2768
5425 msgid "PROTOCOL LIMITS"
5426 msgstr ""
5427
5428 #. type: textblock
5429 #: ../src/guestfs.pod:2770
5430 msgid ""
5431 "Internally libguestfs uses a message-based protocol to pass API calls and "
5432 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
5433 "plenty more detail about this).  The maximum message size used by the "
5434 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
5435 "aware of this limit.  The API calls which may be affected are individually "
5436 "documented, with a link back to this section of the documentation."
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../src/guestfs.pod:2778
5441 msgid ""
5442 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
5443 "a simple string.  Because this string is at some point internally encoded as "
5444 "a message, the maximum size that it can return is slightly under 4 MB.  If "
5445 "the requested file is larger than this then you will get an error."
5446 msgstr ""
5447
5448 #. type: textblock
5449 #: ../src/guestfs.pod:2784
5450 msgid ""
5451 "In order to transfer large files into and out of the guest filesystem, you "
5452 "need to use particular calls that support this.  The sections L</UPLOADING> "
5453 "and L</DOWNLOADING> document how to do this."
5454 msgstr ""
5455
5456 #. type: textblock
5457 #: ../src/guestfs.pod:2788
5458 msgid ""
5459 "You might also consider mounting the disk image using our FUSE filesystem "
5460 "support (L<guestmount(1)>)."
5461 msgstr ""
5462
5463 #. type: =head2
5464 #: ../src/guestfs.pod:2791
5465 msgid "MAXIMUM NUMBER OF DISKS"
5466 msgstr ""
5467
5468 #. type: textblock
5469 #: ../src/guestfs.pod:2793
5470 msgid "When using virtio disks (the default) the current limit is B<25> disks."
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../src/guestfs.pod:2796
5475 msgid ""
5476 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
5477 "slots.  However febootstrap only understands disks with names C</dev/vda> "
5478 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
5479 "purposes."
5480 msgstr ""
5481
5482 #. type: textblock
5483 #: ../src/guestfs.pod:2801
5484 msgid ""
5485 "We are working to substantially raise this limit in future versions but it "
5486 "requires complex changes to qemu."
5487 msgstr ""
5488
5489 #. type: textblock
5490 #: ../src/guestfs.pod:2804
5491 msgid ""
5492 "In future versions of libguestfs it should also be possible to \"hot plug\" "
5493 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
5494 "requires changes to qemu."
5495 msgstr ""
5496
5497 #. type: =head2
5498 #: ../src/guestfs.pod:2808
5499 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
5500 msgstr ""
5501
5502 #. type: textblock
5503 #: ../src/guestfs.pod:2810
5504 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
5505 msgstr ""
5506
5507 #. type: textblock
5508 #: ../src/guestfs.pod:2812
5509 msgid ""
5510 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
5511 "vda>, and C</dev/vda1> through C</dev/vda15>)."
5512 msgstr ""
5513
5514 #. type: textblock
5515 #: ../src/guestfs.pod:2815
5516 msgid ""
5517 "If you attach a disk with more than 15 partitions, the extra partitions are "
5518 "ignored by libguestfs."
5519 msgstr ""
5520
5521 #. type: =head2
5522 #: ../src/guestfs.pod:2818
5523 msgid "MAXIMUM SIZE OF A DISK"
5524 msgstr ""
5525
5526 #. type: textblock
5527 #: ../src/guestfs.pod:2820
5528 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../src/guestfs.pod:2822
5533 msgid ""
5534 "We have tested block devices up to 1 exabyte (2**60 or "
5535 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
5536 "filesystem."
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../src/guestfs.pod:2826
5541 msgid ""
5542 "Although libguestfs probably does not impose any limit, the underlying host "
5543 "storage will.  If you store disk images on a host ext4 filesystem, then the "
5544 "maximum size will be limited by the maximum ext4 file size (currently 16 "
5545 "TB).  If you store disk images as host logical volumes then you are limited "
5546 "by the maximum size of an LV."
5547 msgstr ""
5548
5549 #. type: textblock
5550 #: ../src/guestfs.pod:2832
5551 msgid ""
5552 "For the hugest disk image files, we recommend using XFS on the host for "
5553 "storage."
5554 msgstr ""
5555
5556 #. type: =head2
5557 #: ../src/guestfs.pod:2835
5558 msgid "MAXIMUM SIZE OF A PARTITION"
5559 msgstr ""
5560
5561 #. type: textblock
5562 #: ../src/guestfs.pod:2837
5563 msgid ""
5564 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
5565 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
5566 "address a partition located beyond 2 TB on the disk."
5567 msgstr ""
5568
5569 #. type: textblock
5570 #: ../src/guestfs.pod:2841
5571 msgid ""
5572 "It is recommended that you use GPT partitions on disks which are larger than "
5573 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
5574 "which are theoretically larger than the largest disk we could support."
5575 msgstr ""
5576
5577 #. type: =head2
5578 #: ../src/guestfs.pod:2846
5579 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
5580 msgstr ""
5581
5582 #. type: textblock
5583 #: ../src/guestfs.pod:2848
5584 msgid ""
5585 "This depends on the filesystem type.  libguestfs itself does not impose any "
5586 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
5587 "what these limits are."
5588 msgstr ""
5589
5590 #. type: =head2
5591 #: ../src/guestfs.pod:2852
5592 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
5593 msgstr ""
5594
5595 #. type: textblock
5596 #: ../src/guestfs.pod:2854
5597 msgid ""
5598 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
5599 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
5600 "uploads and downloads."
5601 msgstr ""
5602
5603 #. type: =head2
5604 #: ../src/guestfs.pod:2858
5605 #, fuzzy
5606 #| msgid "INSPECTION"
5607 msgid "INSPECTION LIMITS"
5608 msgstr "ПЕРЕВІРКА"
5609
5610 #. type: textblock
5611 #: ../src/guestfs.pod:2860
5612 msgid ""
5613 "The inspection code has several arbitrary limits on things like the size of "
5614 "Windows Registry hive it will read, and the length of product name.  These "
5615 "are intended to stop a malicious guest from consuming arbitrary amounts of "
5616 "memory and disk space on the host, and should not be reached in practice.  "
5617 "See the source code for more information."
5618 msgstr ""
5619
5620 #. type: =head1
5621 #: ../src/guestfs.pod:2866 ../fish/guestfish.pod:1017
5622 #: ../test-tool/libguestfs-test-tool.pod:82
5623 msgid "ENVIRONMENT VARIABLES"
5624 msgstr "ЗМІННІ СЕРЕДОВИЩА"
5625
5626 #. type: =item
5627 #: ../src/guestfs.pod:2870 ../fish/guestfish.pod:1043
5628 msgid "LIBGUESTFS_APPEND"
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../src/guestfs.pod:2872 ../fish/guestfish.pod:1045
5633 msgid "Pass additional options to the guest kernel."
5634 msgstr ""
5635
5636 #. type: =item
5637 #: ../src/guestfs.pod:2874 ../fish/guestfish.pod:1047
5638 msgid "LIBGUESTFS_DEBUG"
5639 msgstr ""
5640
5641 #. type: textblock
5642 #: ../src/guestfs.pod:2876
5643 msgid ""
5644 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5645 "effect as calling C<guestfs_set_verbose (g, 1)>."
5646 msgstr ""
5647
5648 #. type: =item
5649 #: ../src/guestfs.pod:2879 ../fish/guestfish.pod:1052
5650 msgid "LIBGUESTFS_MEMSIZE"
5651 msgstr ""
5652
5653 #. type: textblock
5654 #: ../src/guestfs.pod:2881 ../fish/guestfish.pod:1054
5655 msgid ""
5656 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5657 msgstr ""
5658
5659 #. type: verbatim
5660 #: ../src/guestfs.pod:2884 ../fish/guestfish.pod:1057
5661 #, no-wrap
5662 msgid ""
5663 " LIBGUESTFS_MEMSIZE=700\n"
5664 "\n"
5665 msgstr ""
5666
5667 #. type: =item
5668 #: ../src/guestfs.pod:2886 ../fish/guestfish.pod:1059
5669 msgid "LIBGUESTFS_PATH"
5670 msgstr ""
5671
5672 #. type: textblock
5673 #: ../src/guestfs.pod:2888
5674 msgid ""
5675 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5676 "the discussion of paths in section L</PATH> above."
5677 msgstr ""
5678
5679 #. type: =item
5680 #: ../src/guestfs.pod:2891 ../fish/guestfish.pod:1064
5681 msgid "LIBGUESTFS_QEMU"
5682 msgstr ""
5683
5684 #. type: textblock
5685 #: ../src/guestfs.pod:2893 ../fish/guestfish.pod:1066
5686 msgid ""
5687 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5688 "which was found at compile time by the configure script is used."
5689 msgstr ""
5690
5691 #. type: textblock
5692 #: ../src/guestfs.pod:2897
5693 msgid "See also L</QEMU WRAPPERS> above."
5694 msgstr ""
5695
5696 #. type: =item
5697 #: ../src/guestfs.pod:2899 ../fish/guestfish.pod:1070
5698 msgid "LIBGUESTFS_TRACE"
5699 msgstr ""
5700
5701 #. type: textblock
5702 #: ../src/guestfs.pod:2901
5703 msgid ""
5704 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5705 "effect as calling C<guestfs_set_trace (g, 1)>."
5706 msgstr ""
5707
5708 #. type: =item
5709 #: ../src/guestfs.pod:2904 ../fish/guestfish.pod:1079
5710 msgid "TMPDIR"
5711 msgstr ""
5712
5713 #. type: textblock
5714 #: ../src/guestfs.pod:2906 ../fish/guestfish.pod:1081
5715 msgid ""
5716 "Location of temporary directory, defaults to C</tmp> except for the cached "
5717 "supermin appliance which defaults to C</var/tmp>."
5718 msgstr ""
5719
5720 #. type: textblock
5721 #: ../src/guestfs.pod:2909 ../fish/guestfish.pod:1084
5722 msgid ""
5723 "If libguestfs was compiled to use the supermin appliance then the real "
5724 "appliance is cached in this directory, shared between all handles belonging "
5725 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5726 "use in case C</var/tmp> is not large enough."
5727 msgstr ""
5728
5729 #. type: =head1
5730 #: ../src/guestfs.pod:2917 ../fish/guestfish.pod:1151
5731 #: ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:269
5732 #: ../tools/virt-win-reg.pl:743 ../tools/virt-list-filesystems.pl:189
5733 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
5734 #: ../tools/virt-list-partitions.pl:257
5735 msgid "SEE ALSO"
5736 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
5737
5738 #. type: textblock
5739 #: ../src/guestfs.pod:2919
5740 msgid ""
5741 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
5742 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
5743 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
5744 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
5745 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
5746 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
5747 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
5748 msgstr ""
5749
5750 #. type: textblock
5751 #: ../src/guestfs.pod:2946
5752 msgid ""
5753 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
5754 "(8)>, L<disktype(1)>."
5755 msgstr ""
5756
5757 #. type: =head1
5758 #: ../src/guestfs.pod:2953 ../tools/virt-win-reg.pl:758
5759 #: ../tools/virt-make-fs.pl:553
5760 msgid "BUGS"
5761 msgstr "ВАДИ"
5762
5763 #. type: textblock
5764 #: ../src/guestfs.pod:2955
5765 msgid "To get a list of bugs against libguestfs use this link:"
5766 msgstr ""
5767 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
5768 "посиланням:"
5769
5770 #. type: textblock
5771 #: ../src/guestfs.pod:2957
5772 msgid ""
5773 "L<https://bugzilla.redhat.com/buglist.cgi?"
5774 "component=libguestfs&product=Virtualization+Tools>"
5775 msgstr ""
5776 "L<https://bugzilla.redhat.com/buglist.cgi?"
5777 "component=libguestfs&product=Virtualization+Tools>"
5778
5779 #. type: textblock
5780 #: ../src/guestfs.pod:2959
5781 msgid "To report a new bug against libguestfs use this link:"
5782 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
5783
5784 #. type: textblock
5785 #: ../src/guestfs.pod:2961
5786 msgid ""
5787 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5788 "component=libguestfs&product=Virtualization+Tools>"
5789 msgstr ""
5790 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5791 "component=libguestfs&product=Virtualization+Tools>"
5792
5793 #. type: textblock
5794 #: ../src/guestfs.pod:2963
5795 msgid "When reporting a bug, please check:"
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../src/guestfs.pod:2969
5800 msgid "That the bug hasn't been reported already."
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../src/guestfs.pod:2973
5805 msgid "That you are testing a recent version."
5806 msgstr ""
5807
5808 #. type: textblock
5809 #: ../src/guestfs.pod:2977
5810 msgid "Describe the bug accurately, and give a way to reproduce it."
5811 msgstr ""
5812
5813 #. type: textblock
5814 #: ../src/guestfs.pod:2981
5815 msgid ""
5816 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5817 "bug report."
5818 msgstr ""
5819
5820 #. type: =head1
5821 #: ../src/guestfs.pod:2986 ../fish/guestfish.pod:1174
5822 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:280
5823 msgid "AUTHORS"
5824 msgstr "АВТОРИ"
5825
5826 #. type: textblock
5827 #: ../src/guestfs.pod:2988 ../fish/guestfish.pod:1176
5828 #: ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:282
5829 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5830 msgstr ""
5831
5832 #. type: =head1
5833 #: ../src/guestfs.pod:2990 ../fish/guestfish.pod:1178
5834 #: ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:284
5835 #: ../tools/virt-win-reg.pl:773 ../tools/virt-list-filesystems.pl:206
5836 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
5837 #: ../tools/virt-list-partitions.pl:273
5838 msgid "COPYRIGHT"
5839 msgstr "АВТОРСЬКІ ПРАВА"
5840
5841 #. type: textblock
5842 #: ../src/guestfs.pod:2992 ../fish/guestfish.pod:1180
5843 #: ../test-tool/libguestfs-test-tool.pod:99
5844 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
5845 msgstr ""
5846
5847 #. type: textblock
5848 #: ../src/guestfs.pod:2995
5849 msgid ""
5850 "This library is free software; you can redistribute it and/or modify it "
5851 "under the terms of the GNU Lesser General Public License as published by the "
5852 "Free Software Foundation; either version 2 of the License, or (at your "
5853 "option) any later version."
5854 msgstr ""
5855
5856 #. type: textblock
5857 #: ../src/guestfs.pod:3000
5858 msgid ""
5859 "This library is distributed in the hope that it will be useful, but WITHOUT "
5860 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5861 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5862 "for more details."
5863 msgstr ""
5864
5865 #. type: textblock
5866 #: ../src/guestfs.pod:3005
5867 msgid ""
5868 "You should have received a copy of the GNU Lesser General Public License "
5869 "along with this library; if not, write to the Free Software Foundation, "
5870 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5871 msgstr ""
5872
5873 #. type: =head2
5874 #: ../src/guestfs-actions.pod:1
5875 msgid "guestfs_add_cdrom"
5876 msgstr ""
5877
5878 #. type: verbatim
5879 #: ../src/guestfs-actions.pod:3
5880 #, no-wrap
5881 msgid ""
5882 " int\n"
5883 " guestfs_add_cdrom (guestfs_h *g,\n"
5884 "                    const char *filename);\n"
5885 "\n"
5886 msgstr ""
5887
5888 #. type: textblock
5889 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5890 msgid "This function adds a virtual CD-ROM disk image to the guest."
5891 msgstr ""
5892
5893 #. type: textblock
5894 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5895 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../src/guestfs-actions.pod:17
5900 msgid ""
5901 "This call checks for the existence of C<filename>.  This stops you from "
5902 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5903 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5904 "instead."
5905 msgstr ""
5906
5907 #. type: textblock
5908 #: ../src/guestfs-actions.pod:24
5909 msgid ""
5910 "If you just want to add an ISO file (often you use this as an efficient way "
5911 "to transfer large files into the guest), then you should probably use "
5912 "C<guestfs_add_drive_ro> instead."
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
5917 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
5918 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
5919 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
5920 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
5921 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
5922 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
5923 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
5924 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
5925 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
5926 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
5927 #: ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1002
5928 #: ../src/guestfs-actions.pod:1020 ../src/guestfs-actions.pod:1104
5929 #: ../src/guestfs-actions.pod:1122 ../src/guestfs-actions.pod:1141
5930 #: ../src/guestfs-actions.pod:1155 ../src/guestfs-actions.pod:1175
5931 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1276
5932 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1343
5933 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1483
5934 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1723
5935 #: ../src/guestfs-actions.pod:1810 ../src/guestfs-actions.pod:2272
5936 #: ../src/guestfs-actions.pod:2416 ../src/guestfs-actions.pod:2477
5937 #: ../src/guestfs-actions.pod:2512 ../src/guestfs-actions.pod:3465
5938 #: ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3505
5939 #: ../src/guestfs-actions.pod:3660 ../src/guestfs-actions.pod:3674
5940 #: ../src/guestfs-actions.pod:3687 ../src/guestfs-actions.pod:3701
5941 #: ../src/guestfs-actions.pod:3716 ../src/guestfs-actions.pod:3752
5942 #: ../src/guestfs-actions.pod:3824 ../src/guestfs-actions.pod:3844
5943 #: ../src/guestfs-actions.pod:3861 ../src/guestfs-actions.pod:3884
5944 #: ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:3939
5945 #: ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:3977
5946 #: ../src/guestfs-actions.pod:4012 ../src/guestfs-actions.pod:4024
5947 #: ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4076
5948 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4104
5949 #: ../src/guestfs-actions.pod:4121 ../src/guestfs-actions.pod:4214
5950 #: ../src/guestfs-actions.pod:4234 ../src/guestfs-actions.pod:4247
5951 #: ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:4316
5952 #: ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:4350
5953 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4378
5954 #: ../src/guestfs-actions.pod:4395 ../src/guestfs-actions.pod:4410
5955 #: ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:4488
5956 #: ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4592
5957 #: ../src/guestfs-actions.pod:4611 ../src/guestfs-actions.pod:4630
5958 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4659
5959 #: ../src/guestfs-actions.pod:4672 ../src/guestfs-actions.pod:4687
5960 #: ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:4737
5961 #: ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:4779
5962 #: ../src/guestfs-actions.pod:4793 ../src/guestfs-actions.pod:4810
5963 #: ../src/guestfs-actions.pod:4859 ../src/guestfs-actions.pod:4896
5964 #: ../src/guestfs-actions.pod:4910 ../src/guestfs-actions.pod:4938
5965 #: ../src/guestfs-actions.pod:4955 ../src/guestfs-actions.pod:4973
5966 #: ../src/guestfs-actions.pod:5107 ../src/guestfs-actions.pod:5164
5967 #: ../src/guestfs-actions.pod:5186 ../src/guestfs-actions.pod:5204
5968 #: ../src/guestfs-actions.pod:5236 ../src/guestfs-actions.pod:5302
5969 #: ../src/guestfs-actions.pod:5319 ../src/guestfs-actions.pod:5332
5970 #: ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5635
5971 #: ../src/guestfs-actions.pod:5654 ../src/guestfs-actions.pod:5673
5972 #: ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5697
5973 #: ../src/guestfs-actions.pod:5711 ../src/guestfs-actions.pod:5723
5974 #: ../src/guestfs-actions.pod:5737 ../src/guestfs-actions.pod:5753
5975 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:5793
5976 #: ../src/guestfs-actions.pod:5812 ../src/guestfs-actions.pod:5842
5977 #: ../src/guestfs-actions.pod:5858 ../src/guestfs-actions.pod:5881
5978 #: ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5918
5979 #: ../src/guestfs-actions.pod:5939 ../src/guestfs-actions.pod:5958
5980 #: ../src/guestfs-actions.pod:5975 ../src/guestfs-actions.pod:6003
5981 #: ../src/guestfs-actions.pod:6027 ../src/guestfs-actions.pod:6046
5982 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6089
5983 #: ../src/guestfs-actions.pod:6104 ../src/guestfs-actions.pod:6123
5984 #: ../src/guestfs-actions.pod:6160 ../src/guestfs-actions.pod:6190
5985 #: ../src/guestfs-actions.pod:6223 ../src/guestfs-actions.pod:6345
5986 #: ../src/guestfs-actions.pod:6466 ../src/guestfs-actions.pod:6478
5987 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6504
5988 #: ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6539
5989 #: ../src/guestfs-actions.pod:6552 ../src/guestfs-actions.pod:6565
5990 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6639
5991 #: ../src/guestfs-actions.pod:6656 ../src/guestfs-actions.pod:6672
5992 #: ../src/guestfs-actions.pod:6688 ../src/guestfs-actions.pod:6705
5993 #: ../src/guestfs-actions.pod:6718 ../src/guestfs-actions.pod:6738
5994 #: ../src/guestfs-actions.pod:6774 ../src/guestfs-actions.pod:6788
5995 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:6842
5996 #: ../src/guestfs-actions.pod:6860 ../src/guestfs-actions.pod:6894
5997 #: ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:7049
5998 #: ../src/guestfs-actions.pod:7067 ../src/guestfs-actions.pod:7081
5999 #: ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7149
6000 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-actions.pod:7227
6001 #: ../src/guestfs-actions.pod:7288 ../src/guestfs-actions.pod:7314
6002 #: ../src/guestfs-actions.pod:7380 ../src/guestfs-actions.pod:7399
6003 #: ../src/guestfs-actions.pod:7428
6004 msgid "This function returns 0 on success or -1 on error."
6005 msgstr ""
6006
6007 #. type: textblock
6008 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
6009 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28
6010 #: ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
6011 msgid ""
6012 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6013 "instead."
6014 msgstr ""
6015
6016 #. type: textblock
6017 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
6018 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1454
6019 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:1971
6020 #: ../src/guestfs-actions.pod:4435 ../src/guestfs-actions.pod:4742
6021 #: ../src/guestfs-actions.pod:6168 ../src/guestfs-actions.pod:6198
6022 #: ../src/guestfs-actions.pod:6231 ../src/guestfs-actions.pod:6290
6023 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7322
6024 #: ../src/guestfs-actions.pod:7491 ../fish/guestfish-actions.pod:31
6025 #: ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180
6026 #: ../fish/guestfish-actions.pod:961 ../fish/guestfish-actions.pod:1324
6027 #: ../fish/guestfish-actions.pod:1338 ../fish/guestfish-actions.pod:3013
6028 #: ../fish/guestfish-actions.pod:3210 ../fish/guestfish-actions.pod:4182
6029 #: ../fish/guestfish-actions.pod:4205 ../fish/guestfish-actions.pod:4227
6030 #: ../fish/guestfish-actions.pod:4265 ../fish/guestfish-actions.pod:4906
6031 #: ../fish/guestfish-actions.pod:5003
6032 msgid ""
6033 "Deprecated functions will not be removed from the API, but the fact that "
6034 "they are deprecated indicates that there are problems with correct use of "
6035 "these functions."
6036 msgstr ""
6037
6038 #. type: textblock
6039 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
6040 #: ../src/guestfs-actions.pod:1106 ../src/guestfs-actions.pod:1922
6041 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:2123
6042 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3487
6043 #: ../src/guestfs-actions.pod:4746 ../src/guestfs-actions.pod:5860
6044 #: ../src/guestfs-actions.pod:5977 ../src/guestfs-actions.pod:6091
6045 #: ../src/guestfs-actions.pod:6582 ../src/guestfs-actions.pod:6707
6046 #: ../src/guestfs-actions.pod:7236
6047 msgid "(Added in 0.3)"
6048 msgstr ""
6049
6050 #. type: =head2
6051 #: ../src/guestfs-actions.pod:41
6052 msgid "guestfs_add_domain"
6053 msgstr ""
6054
6055 #. type: verbatim
6056 #: ../src/guestfs-actions.pod:43
6057 #, no-wrap
6058 msgid ""
6059 " int\n"
6060 " guestfs_add_domain (guestfs_h *g,\n"
6061 "                     const char *dom,\n"
6062 "                     ...);\n"
6063 "\n"
6064 msgstr ""
6065
6066 #. type: textblock
6067 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
6068 #: ../src/guestfs-actions.pod:4449
6069 msgid ""
6070 "You may supply a list of optional arguments to this call.  Use zero or more "
6071 "of the following pairs of parameters, and terminate the list with C<-1> on "
6072 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6073 msgstr ""
6074
6075 #. type: verbatim
6076 #: ../src/guestfs-actions.pod:53
6077 #, no-wrap
6078 msgid ""
6079 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6080 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6081 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6082 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6083 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
6084 "\n"
6085 msgstr ""
6086
6087 #. type: textblock
6088 #: ../src/guestfs-actions.pod:59
6089 msgid ""
6090 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6091 "It works by connecting to libvirt, requesting the domain and domain XML from "
6092 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6093 "one."
6094 msgstr ""
6095
6096 #. type: textblock
6097 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6098 msgid ""
6099 "The number of disks added is returned.  This operation is atomic: if an "
6100 "error is returned, then no disks are added."
6101 msgstr ""
6102
6103 #. type: textblock
6104 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
6105 msgid ""
6106 "This function does some minimal checks to make sure the libvirt domain is "
6107 "not running (unless C<readonly> is true).  In a future version we will try "
6108 "to acquire the libvirt lock on each disk."
6109 msgstr ""
6110
6111 #. type: textblock
6112 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
6113 msgid ""
6114 "Disks must be accessible locally.  This often means that adding disks from a "
6115 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6116 "unless those disks are accessible via the same device path locally too."
6117 msgstr ""
6118
6119 #. type: textblock
6120 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
6121 msgid ""
6122 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6123 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6124 "libvirt URI (or one set through an environment variable, see the libvirt "
6125 "documentation for full details)."
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
6130 msgid ""
6131 "The optional C<live> flag controls whether this call will try to connect to "
6132 "a running virtual machine C<guestfsd> process if it sees a suitable "
6133 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6134 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6135 "DAEMONS> for more information."
6136 msgstr ""
6137
6138 #. type: textblock
6139 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
6140 msgid ""
6141 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6142 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6143 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6144 "as usual."
6145 msgstr ""
6146
6147 #. type: textblock
6148 #: ../src/guestfs-actions.pod:94
6149 msgid ""
6150 "The other optional parameters are passed directly through to "
6151 "C<guestfs_add_drive_opts>."
6152 msgstr ""
6153
6154 #. type: textblock
6155 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
6156 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
6157 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
6158 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1321
6159 #: ../src/guestfs-actions.pod:1680 ../src/guestfs-actions.pod:1883
6160 #: ../src/guestfs-actions.pod:1992 ../src/guestfs-actions.pod:2032
6161 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2110
6162 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:2786
6163 #: ../src/guestfs-actions.pod:2807 ../src/guestfs-actions.pod:4882
6164 #: ../src/guestfs-actions.pod:5010 ../src/guestfs-actions.pod:5416
6165 #: ../src/guestfs-actions.pod:5442 ../src/guestfs-actions.pod:6815
6166 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7260
6167 #: ../src/guestfs-actions.pod:7273
6168 msgid "On error this function returns -1."
6169 msgstr ""
6170
6171 #. type: textblock
6172 #: ../src/guestfs-actions.pod:99
6173 msgid "(Added in 1.7.4)"
6174 msgstr ""
6175
6176 #. type: =head2
6177 #: ../src/guestfs-actions.pod:101
6178 msgid "guestfs_add_domain_va"
6179 msgstr ""
6180
6181 #. type: verbatim
6182 #: ../src/guestfs-actions.pod:103
6183 #, no-wrap
6184 msgid ""
6185 " int\n"
6186 " guestfs_add_domain_va (guestfs_h *g,\n"
6187 "                        const char *dom,\n"
6188 "                        va_list args);\n"
6189 "\n"
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../src/guestfs-actions.pod:108
6194 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6195 msgstr ""
6196
6197 #. type: textblock
6198 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
6199 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
6200 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:4514
6201 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6202 msgstr ""
6203
6204 #. type: =head2
6205 #: ../src/guestfs-actions.pod:112
6206 msgid "guestfs_add_domain_argv"
6207 msgstr ""
6208
6209 #. type: verbatim
6210 #: ../src/guestfs-actions.pod:114
6211 #, no-wrap
6212 msgid ""
6213 " int\n"
6214 " guestfs_add_domain_argv (guestfs_h *g,\n"
6215 "                          const char *dom,\n"
6216 "                          const struct guestfs_add_domain_argv *optargs);\n"
6217 "\n"
6218 msgstr ""
6219
6220 #. type: textblock
6221 #: ../src/guestfs-actions.pod:119
6222 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6223 msgstr ""
6224
6225 #. type: =head2
6226 #: ../src/guestfs-actions.pod:123
6227 msgid "guestfs_add_drive"
6228 msgstr ""
6229
6230 #. type: verbatim
6231 #: ../src/guestfs-actions.pod:125
6232 #, no-wrap
6233 msgid ""
6234 " int\n"
6235 " guestfs_add_drive (guestfs_h *g,\n"
6236 "                    const char *filename);\n"
6237 "\n"
6238 msgstr ""
6239
6240 #. type: textblock
6241 #: ../src/guestfs-actions.pod:129
6242 msgid ""
6243 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6244 "optional parameters, so the disk is added writable, with the format being "
6245 "detected automatically."
6246 msgstr ""
6247
6248 #. type: textblock
6249 #: ../src/guestfs-actions.pod:133
6250 msgid ""
6251 "Automatic detection of the format opens you up to a potential security hole "
6252 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6253 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6254 "you should think about replacing calls to this function with calls to "
6255 "C<guestfs_add_drive_opts>, and specifying the format."
6256 msgstr ""
6257
6258 #. type: =head2
6259 #: ../src/guestfs-actions.pod:144
6260 msgid "guestfs_add_drive_opts"
6261 msgstr ""
6262
6263 #. type: verbatim
6264 #: ../src/guestfs-actions.pod:146
6265 #, no-wrap
6266 msgid ""
6267 " int\n"
6268 " guestfs_add_drive_opts (guestfs_h *g,\n"
6269 "                         const char *filename,\n"
6270 "                         ...);\n"
6271 "\n"
6272 msgstr ""
6273
6274 #. type: verbatim
6275 #: ../src/guestfs-actions.pod:156
6276 #, no-wrap
6277 msgid ""
6278 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6279 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6280 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6281 "\n"
6282 msgstr ""
6283
6284 #. type: textblock
6285 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6286 msgid ""
6287 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6288 "The first time you call this function, the disk appears as C</dev/sda>, the "
6289 "second time as C</dev/sdb>, and so on."
6290 msgstr ""
6291
6292 #. type: textblock
6293 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6294 msgid ""
6295 "You don't necessarily need to be root when using libguestfs.  However you "
6296 "obviously do need sufficient permissions to access the filename for whatever "
6297 "operations you want to perform (ie. read access if you just want to read the "
6298 "image or write access if you want to modify the image)."
6299 msgstr ""
6300
6301 #. type: textblock
6302 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6303 msgid "This call checks that C<filename> exists."
6304 msgstr ""
6305
6306 #. type: textblock
6307 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4460
6308 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3024
6309 msgid "The optional arguments are:"
6310 msgstr ""
6311
6312 #. type: =item
6313 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6314 msgid "C<readonly>"
6315 msgstr "C<readonly>"
6316
6317 #. type: textblock
6318 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6319 msgid ""
6320 "If true then the image is treated as read-only.  Writes are still allowed, "
6321 "but they are stored in a temporary snapshot overlay which is discarded at "
6322 "the end.  The disk that you add is not modified."
6323 msgstr ""
6324
6325 #. type: =item
6326 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6327 msgid "C<format>"
6328 msgstr "C<format>"
6329
6330 #. type: textblock
6331 #: ../src/guestfs-actions.pod:185
6332 msgid ""
6333 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6334 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6335 "Possible formats include C<raw> and C<qcow2>."
6336 msgstr ""
6337
6338 #. type: textblock
6339 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6340 msgid ""
6341 "Automatic detection of the format opens you up to a potential security hole "
6342 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6343 "RHBZ#642934.  Specifying the format closes this security hole."
6344 msgstr ""
6345
6346 #. type: =item
6347 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6348 msgid "C<iface>"
6349 msgstr "C<iface>"
6350
6351 #. type: textblock
6352 #: ../src/guestfs-actions.pod:196
6353 msgid ""
6354 "This rarely-used option lets you emulate the behaviour of the deprecated "
6355 "C<guestfs_add_drive_with_if> call (q.v.)"
6356 msgstr ""
6357
6358 #. type: textblock
6359 #: ../src/guestfs-actions.pod:203
6360 msgid "(Added in 1.5.23)"
6361 msgstr ""
6362
6363 #. type: =head2
6364 #: ../src/guestfs-actions.pod:205
6365 msgid "guestfs_add_drive_opts_va"
6366 msgstr ""
6367
6368 #. type: verbatim
6369 #: ../src/guestfs-actions.pod:207
6370 #, no-wrap
6371 msgid ""
6372 " int\n"
6373 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6374 "                            const char *filename,\n"
6375 "                            va_list args);\n"
6376 "\n"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../src/guestfs-actions.pod:212
6381 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6382 msgstr ""
6383
6384 #. type: =head2
6385 #: ../src/guestfs-actions.pod:216
6386 msgid "guestfs_add_drive_opts_argv"
6387 msgstr ""
6388
6389 #. type: verbatim
6390 #: ../src/guestfs-actions.pod:218
6391 #, no-wrap
6392 msgid ""
6393 " int\n"
6394 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6395 "                              const char *filename,\n"
6396 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6397 "\n"
6398 msgstr ""
6399
6400 #. type: textblock
6401 #: ../src/guestfs-actions.pod:223
6402 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6403 msgstr ""
6404
6405 #. type: =head2
6406 #: ../src/guestfs-actions.pod:227
6407 msgid "guestfs_add_drive_ro"
6408 msgstr ""
6409
6410 #. type: verbatim
6411 #: ../src/guestfs-actions.pod:229
6412 #, no-wrap
6413 msgid ""
6414 " int\n"
6415 " guestfs_add_drive_ro (guestfs_h *g,\n"
6416 "                       const char *filename);\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../src/guestfs-actions.pod:233
6422 msgid ""
6423 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6424 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6425 "disk is added read-only, with the format being detected automatically."
6426 msgstr ""
6427
6428 #. type: textblock
6429 #: ../src/guestfs-actions.pod:240
6430 msgid "(Added in 1.0.38)"
6431 msgstr ""
6432
6433 #. type: =head2
6434 #: ../src/guestfs-actions.pod:242
6435 msgid "guestfs_add_drive_ro_with_if"
6436 msgstr ""
6437
6438 #. type: verbatim
6439 #: ../src/guestfs-actions.pod:244
6440 #, no-wrap
6441 msgid ""
6442 " int\n"
6443 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6444 "                               const char *filename,\n"
6445 "                               const char *iface);\n"
6446 "\n"
6447 msgstr ""
6448
6449 #. type: textblock
6450 #: ../src/guestfs-actions.pod:249
6451 msgid ""
6452 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6453 "QEMU interface emulation to use at run time."
6454 msgstr ""
6455
6456 #. type: textblock
6457 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
6458 #: ../src/guestfs-actions.pod:2362
6459 msgid "(Added in 1.0.84)"
6460 msgstr ""
6461
6462 #. type: =head2
6463 #: ../src/guestfs-actions.pod:263
6464 msgid "guestfs_add_drive_with_if"
6465 msgstr ""
6466
6467 #. type: verbatim
6468 #: ../src/guestfs-actions.pod:265
6469 #, no-wrap
6470 msgid ""
6471 " int\n"
6472 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6473 "                            const char *filename,\n"
6474 "                            const char *iface);\n"
6475 "\n"
6476 msgstr ""
6477
6478 #. type: textblock
6479 #: ../src/guestfs-actions.pod:270
6480 msgid ""
6481 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6482 "QEMU interface emulation to use at run time."
6483 msgstr ""
6484
6485 #. type: =head2
6486 #: ../src/guestfs-actions.pod:284
6487 msgid "guestfs_aug_clear"
6488 msgstr ""
6489
6490 #. type: verbatim
6491 #: ../src/guestfs-actions.pod:286
6492 #, no-wrap
6493 msgid ""
6494 " int\n"
6495 " guestfs_aug_clear (guestfs_h *g,\n"
6496 "                    const char *augpath);\n"
6497 "\n"
6498 msgstr ""
6499
6500 #. type: textblock
6501 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
6502 msgid ""
6503 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6504 "L<augtool(1)> C<clear> command."
6505 msgstr ""
6506
6507 #. type: textblock
6508 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2112
6509 msgid "(Added in 1.3.4)"
6510 msgstr ""
6511
6512 #. type: =head2
6513 #: ../src/guestfs-actions.pod:297
6514 msgid "guestfs_aug_close"
6515 msgstr ""
6516
6517 #. type: verbatim
6518 #: ../src/guestfs-actions.pod:299
6519 #, no-wrap
6520 msgid ""
6521 " int\n"
6522 " guestfs_aug_close (guestfs_h *g);\n"
6523 "\n"
6524 msgstr ""
6525
6526 #. type: textblock
6527 #: ../src/guestfs-actions.pod:302
6528 msgid ""
6529 "Close the current Augeas handle and free up any resources used by it.  After "
6530 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6531 "any other Augeas functions."
6532 msgstr ""
6533
6534 #. type: textblock
6535 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
6536 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
6537 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
6538 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
6539 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
6540 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
6541 #: ../src/guestfs-actions.pod:5493
6542 msgid "(Added in 0.7)"
6543 msgstr ""
6544
6545 #. type: =head2
6546 #: ../src/guestfs-actions.pod:311
6547 msgid "guestfs_aug_defnode"
6548 msgstr ""
6549
6550 #. type: verbatim
6551 #: ../src/guestfs-actions.pod:313
6552 #, no-wrap
6553 msgid ""
6554 " struct guestfs_int_bool *\n"
6555 " guestfs_aug_defnode (guestfs_h *g,\n"
6556 "                      const char *name,\n"
6557 "                      const char *expr,\n"
6558 "                      const char *val);\n"
6559 "\n"
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
6564 msgid ""
6565 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6566 msgstr ""
6567
6568 #. type: textblock
6569 #: ../src/guestfs-actions.pod:322
6570 msgid ""
6571 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6572 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6573 "containing that single node."
6574 msgstr ""
6575
6576 #. type: textblock
6577 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
6578 msgid ""
6579 "On success this returns a pair containing the number of nodes in the "
6580 "nodeset, and a boolean flag if a node was created."
6581 msgstr ""
6582
6583 #. type: textblock
6584 #: ../src/guestfs-actions.pod:330
6585 msgid ""
6586 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6587 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6588 msgstr ""
6589
6590 #. type: =head2
6591 #: ../src/guestfs-actions.pod:336
6592 msgid "guestfs_aug_defvar"
6593 msgstr ""
6594
6595 #. type: verbatim
6596 #: ../src/guestfs-actions.pod:338
6597 #, no-wrap
6598 msgid ""
6599 " int\n"
6600 " guestfs_aug_defvar (guestfs_h *g,\n"
6601 "                     const char *name,\n"
6602 "                     const char *expr);\n"
6603 "\n"
6604 msgstr ""
6605
6606 #. type: textblock
6607 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
6608 msgid ""
6609 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6610 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6611 msgstr ""
6612
6613 #. type: textblock
6614 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
6615 msgid ""
6616 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6617 "evaluates to something which is not a nodeset."
6618 msgstr ""
6619
6620 #. type: =head2
6621 #: ../src/guestfs-actions.pod:354
6622 msgid "guestfs_aug_get"
6623 msgstr ""
6624
6625 #. type: verbatim
6626 #: ../src/guestfs-actions.pod:356
6627 #, no-wrap
6628 msgid ""
6629 " char *\n"
6630 " guestfs_aug_get (guestfs_h *g,\n"
6631 "                  const char *augpath);\n"
6632 "\n"
6633 msgstr ""
6634
6635 #. type: textblock
6636 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
6637 msgid ""
6638 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6639 "node, the C<value> is returned."
6640 msgstr ""
6641
6642 #. type: textblock
6643 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:863
6644 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:941
6645 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:1060
6646 #: ../src/guestfs-actions.pod:1190 ../src/guestfs-actions.pod:1207
6647 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1360
6648 #: ../src/guestfs-actions.pod:1551 ../src/guestfs-actions.pod:1663
6649 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1843
6650 #: ../src/guestfs-actions.pod:1910 ../src/guestfs-actions.pod:1944
6651 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2135
6652 #: ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:2534
6653 #: ../src/guestfs-actions.pod:2627 ../src/guestfs-actions.pod:2738
6654 #: ../src/guestfs-actions.pod:2758 ../src/guestfs-actions.pod:2878
6655 #: ../src/guestfs-actions.pod:2909 ../src/guestfs-actions.pod:2933
6656 #: ../src/guestfs-actions.pod:2970 ../src/guestfs-actions.pod:3030
6657 #: ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3074
6658 #: ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3996
6659 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4276
6660 #: ../src/guestfs-actions.pod:5028 ../src/guestfs-actions.pod:5221
6661 #: ../src/guestfs-actions.pod:5391 ../src/guestfs-actions.pod:5569
6662 #: ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:6251
6663 #: ../src/guestfs-actions.pod:6267 ../src/guestfs-actions.pod:6284
6664 #: ../src/guestfs-actions.pod:6315 ../src/guestfs-actions.pod:6989
6665 #: ../src/guestfs-actions.pod:7008 ../src/guestfs-actions.pod:7026
6666 #: ../src/guestfs-actions.pod:7206 ../src/guestfs-actions.pod:7485
6667 msgid ""
6668 "This function returns a string, or NULL on error.  I<The caller must free "
6669 "the returned string after use>."
6670 msgstr ""
6671
6672 #. type: =head2
6673 #: ../src/guestfs-actions.pod:368
6674 msgid "guestfs_aug_init"
6675 msgstr ""
6676
6677 #. type: verbatim
6678 #: ../src/guestfs-actions.pod:370
6679 #, no-wrap
6680 msgid ""
6681 " int\n"
6682 " guestfs_aug_init (guestfs_h *g,\n"
6683 "                   const char *root,\n"
6684 "                   int flags);\n"
6685 "\n"
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
6690 msgid ""
6691 "Create a new Augeas handle for editing configuration files.  If there was "
6692 "any previous Augeas handle associated with this guestfs session, then it is "
6693 "closed."
6694 msgstr ""
6695
6696 #. type: textblock
6697 #: ../src/guestfs-actions.pod:379
6698 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6699 msgstr ""
6700
6701 #. type: textblock
6702 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
6703 msgid ""
6704 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6705 msgstr ""
6706
6707 #. type: textblock
6708 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
6709 msgid ""
6710 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6711 "logical I<or> of the following integers:"
6712 msgstr ""
6713
6714 #. type: =item
6715 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
6716 msgid "C<AUG_SAVE_BACKUP> = 1"
6717 msgstr "C<AUG_SAVE_BACKUP> = 1"
6718
6719 #. type: textblock
6720 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
6721 msgid "Keep the original file with a C<.augsave> extension."
6722 msgstr ""
6723
6724 #. type: =item
6725 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
6726 msgid "C<AUG_SAVE_NEWFILE> = 2"
6727 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6728
6729 #. type: textblock
6730 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
6731 msgid ""
6732 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6733 "original.  Overrides C<AUG_SAVE_BACKUP>."
6734 msgstr ""
6735
6736 #. type: =item
6737 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
6738 msgid "C<AUG_TYPE_CHECK> = 4"
6739 msgstr "C<AUG_TYPE_CHECK> = 4"
6740
6741 #. type: textblock
6742 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
6743 msgid "Typecheck lenses (can be expensive)."
6744 msgstr ""
6745
6746 #. type: =item
6747 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
6748 msgid "C<AUG_NO_STDINC> = 8"
6749 msgstr "C<AUG_NO_STDINC> = 8"
6750
6751 #. type: textblock
6752 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
6753 msgid "Do not use standard load path for modules."
6754 msgstr ""
6755
6756 #. type: =item
6757 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
6758 msgid "C<AUG_SAVE_NOOP> = 16"
6759 msgstr "C<AUG_SAVE_NOOP> = 16"
6760
6761 #. type: textblock
6762 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
6763 msgid "Make save a no-op, just record what would have been changed."
6764 msgstr ""
6765
6766 #. type: =item
6767 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
6768 msgid "C<AUG_NO_LOAD> = 32"
6769 msgstr "C<AUG_NO_LOAD> = 32"
6770
6771 #. type: textblock
6772 #: ../src/guestfs-actions.pod:414
6773 msgid "Do not load the tree in C<guestfs_aug_init>."
6774 msgstr ""
6775
6776 #. type: textblock
6777 #: ../src/guestfs-actions.pod:418
6778 msgid "To close the handle, you can call C<guestfs_aug_close>."
6779 msgstr ""
6780
6781 #. type: textblock
6782 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
6783 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6784 msgstr ""
6785
6786 #. type: =head2
6787 #: ../src/guestfs-actions.pod:426
6788 msgid "guestfs_aug_insert"
6789 msgstr ""
6790
6791 #. type: verbatim
6792 #: ../src/guestfs-actions.pod:428
6793 #, no-wrap
6794 msgid ""
6795 " int\n"
6796 " guestfs_aug_insert (guestfs_h *g,\n"
6797 "                     const char *augpath,\n"
6798 "                     const char *label,\n"
6799 "                     int before);\n"
6800 "\n"
6801 msgstr ""
6802
6803 #. type: textblock
6804 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
6805 msgid ""
6806 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6807 "or after C<path> (depending on the boolean flag C<before>)."
6808 msgstr ""
6809
6810 #. type: textblock
6811 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
6812 msgid ""
6813 "C<path> must match exactly one existing node in the tree, and C<label> must "
6814 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6815 msgstr ""
6816
6817 #. type: =head2
6818 #: ../src/guestfs-actions.pod:446
6819 msgid "guestfs_aug_load"
6820 msgstr ""
6821
6822 #. type: verbatim
6823 #: ../src/guestfs-actions.pod:448
6824 #, no-wrap
6825 msgid ""
6826 " int\n"
6827 " guestfs_aug_load (guestfs_h *g);\n"
6828 "\n"
6829 msgstr ""
6830
6831 #. type: textblock
6832 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
6833 msgid "Load files into the tree."
6834 msgstr "Завантажити файли до ієрархії."
6835
6836 #. type: textblock
6837 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
6838 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6839 msgstr ""
6840
6841 #. type: =head2
6842 #: ../src/guestfs-actions.pod:460
6843 msgid "guestfs_aug_ls"
6844 msgstr ""
6845
6846 #. type: verbatim
6847 #: ../src/guestfs-actions.pod:462
6848 #, no-wrap
6849 msgid ""
6850 " char **\n"
6851 " guestfs_aug_ls (guestfs_h *g,\n"
6852 "                 const char *augpath);\n"
6853 "\n"
6854 msgstr ""
6855
6856 #. type: textblock
6857 #: ../src/guestfs-actions.pod:466
6858 msgid ""
6859 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6860 "sorting the resulting nodes into alphabetical order."
6861 msgstr ""
6862
6863 #. type: textblock
6864 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
6865 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1079
6866 #: ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1394
6867 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1516
6868 #: ../src/guestfs-actions.pod:1765 ../src/guestfs-actions.pod:2207
6869 #: ../src/guestfs-actions.pod:2223 ../src/guestfs-actions.pod:2242
6870 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:2309
6871 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:2429
6872 #: ../src/guestfs-actions.pod:2696 ../src/guestfs-actions.pod:2987
6873 #: ../src/guestfs-actions.pod:3276 ../src/guestfs-actions.pod:3566
6874 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3733
6875 #: ../src/guestfs-actions.pod:4138 ../src/guestfs-actions.pod:4843
6876 #: ../src/guestfs-actions.pod:5363 ../src/guestfs-actions.pod:5489
6877 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:6331
6878 #: ../src/guestfs-actions.pod:6392 ../src/guestfs-actions.pod:6447
6879 #: ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:6617
6880 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
6881 #: ../src/guestfs-actions.pod:7166 ../src/guestfs-actions.pod:7338
6882 #: ../src/guestfs-actions.pod:7357 ../src/guestfs-actions.pod:7442
6883 #: ../src/guestfs-actions.pod:7461 ../src/guestfs-actions.pod:7507
6884 #: ../src/guestfs-actions.pod:7526
6885 msgid ""
6886 "This function returns a NULL-terminated array of strings (like L<environ(3)"
6887 ">), or NULL if there was an error.  I<The caller must free the strings and "
6888 "the array after use>."
6889 msgstr ""
6890
6891 #. type: textblock
6892 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1004
6893 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:1432
6894 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3385
6895 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:4029
6896 #: ../src/guestfs-actions.pod:4216 ../src/guestfs-actions.pod:4249
6897 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4847
6898 #: ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5699
6899 #: ../src/guestfs-actions.pod:5713 ../src/guestfs-actions.pod:5725
6900 #: ../src/guestfs-actions.pod:6172 ../src/guestfs-actions.pod:6831
6901 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:7083
6902 #: ../src/guestfs-actions.pod:7326
6903 msgid "(Added in 0.8)"
6904 msgstr ""
6905
6906 #. type: =head2
6907 #: ../src/guestfs-actions.pod:475
6908 msgid "guestfs_aug_match"
6909 msgstr ""
6910
6911 #. type: verbatim
6912 #: ../src/guestfs-actions.pod:477
6913 #, no-wrap
6914 msgid ""
6915 " char **\n"
6916 " guestfs_aug_match (guestfs_h *g,\n"
6917 "                    const char *augpath);\n"
6918 "\n"
6919 msgstr ""
6920
6921 #. type: textblock
6922 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
6923 msgid ""
6924 "Returns a list of paths which match the path expression C<path>.  The "
6925 "returned paths are sufficiently qualified so that they match exactly one "
6926 "node in the current tree."
6927 msgstr ""
6928
6929 #. type: =head2
6930 #: ../src/guestfs-actions.pod:491
6931 msgid "guestfs_aug_mv"
6932 msgstr ""
6933
6934 #. type: verbatim
6935 #: ../src/guestfs-actions.pod:493
6936 #, no-wrap
6937 msgid ""
6938 " int\n"
6939 " guestfs_aug_mv (guestfs_h *g,\n"
6940 "                 const char *src,\n"
6941 "                 const char *dest);\n"
6942 "\n"
6943 msgstr ""
6944
6945 #. type: textblock
6946 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
6947 msgid ""
6948 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6949 "C<dest> is overwritten if it exists."
6950 msgstr ""
6951
6952 #. type: =head2
6953 #: ../src/guestfs-actions.pod:505
6954 msgid "guestfs_aug_rm"
6955 msgstr ""
6956
6957 #. type: verbatim
6958 #: ../src/guestfs-actions.pod:507
6959 #, no-wrap
6960 msgid ""
6961 " int\n"
6962 " guestfs_aug_rm (guestfs_h *g,\n"
6963 "                 const char *augpath);\n"
6964 "\n"
6965 msgstr ""
6966
6967 #. type: textblock
6968 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
6969 msgid "Remove C<path> and all of its children."
6970 msgstr ""
6971
6972 #. type: textblock
6973 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
6974 msgid "On success this returns the number of entries which were removed."
6975 msgstr ""
6976
6977 #. type: =head2
6978 #: ../src/guestfs-actions.pod:519
6979 msgid "guestfs_aug_save"
6980 msgstr ""
6981
6982 #. type: verbatim
6983 #: ../src/guestfs-actions.pod:521
6984 #, no-wrap
6985 msgid ""
6986 " int\n"
6987 " guestfs_aug_save (guestfs_h *g);\n"
6988 "\n"
6989 msgstr ""
6990
6991 #. type: textblock
6992 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
6993 msgid "This writes all pending changes to disk."
6994 msgstr ""
6995
6996 #. type: textblock
6997 #: ../src/guestfs-actions.pod:526
6998 msgid ""
6999 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7000 "are saved."
7001 msgstr ""
7002
7003 #. type: =head2
7004 #: ../src/guestfs-actions.pod:533
7005 msgid "guestfs_aug_set"
7006 msgstr ""
7007
7008 #. type: verbatim
7009 #: ../src/guestfs-actions.pod:535
7010 #, no-wrap
7011 msgid ""
7012 " int\n"
7013 " guestfs_aug_set (guestfs_h *g,\n"
7014 "                  const char *augpath,\n"
7015 "                  const char *val);\n"
7016 "\n"
7017 msgstr ""
7018
7019 #. type: textblock
7020 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7021 msgid "Set the value associated with C<path> to C<val>."
7022 msgstr ""
7023
7024 #. type: textblock
7025 #: ../src/guestfs-actions.pod:542
7026 msgid ""
7027 "In the Augeas API, it is possible to clear a node by setting the value to "
7028 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7029 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7030 msgstr ""
7031
7032 #. type: =head2
7033 #: ../src/guestfs-actions.pod:551
7034 msgid "guestfs_available"
7035 msgstr ""
7036
7037 #. type: verbatim
7038 #: ../src/guestfs-actions.pod:553
7039 #, no-wrap
7040 msgid ""
7041 " int\n"
7042 " guestfs_available (guestfs_h *g,\n"
7043 "                    char *const *groups);\n"
7044 "\n"
7045 msgstr ""
7046
7047 #. type: textblock
7048 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
7049 msgid ""
7050 "This command is used to check the availability of some groups of "
7051 "functionality in the appliance, which not all builds of the libguestfs "
7052 "appliance will be able to provide."
7053 msgstr ""
7054
7055 #. type: textblock
7056 #: ../src/guestfs-actions.pod:561
7057 msgid ""
7058 "The libguestfs groups, and the functions that those groups correspond to, "
7059 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7060 "runtime by calling C<guestfs_available_all_groups>."
7061 msgstr ""
7062
7063 #. type: textblock
7064 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
7065 msgid ""
7066 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7067 "\"]> would check for the availability of the Linux inotify functions and "
7068 "Augeas (configuration file editing) functions."
7069 msgstr ""
7070
7071 #. type: textblock
7072 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
7073 msgid "The command returns no error if I<all> requested groups are available."
7074 msgstr ""
7075
7076 #. type: textblock
7077 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7078 msgid ""
7079 "It fails with an error if one or more of the requested groups is unavailable "
7080 "in the appliance."
7081 msgstr ""
7082
7083 #. type: textblock
7084 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7085 msgid ""
7086 "If an unknown group name is included in the list of groups then an error is "
7087 "always returned."
7088 msgstr ""
7089
7090 #. type: textblock
7091 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7092 msgid "I<Notes:>"
7093 msgstr "I<Нотатки:>"
7094
7095 #. type: textblock
7096 #: ../src/guestfs-actions.pod:585
7097 msgid "You must call C<guestfs_launch> before calling this function."
7098 msgstr ""
7099
7100 #. type: textblock
7101 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
7102 msgid ""
7103 "The reason is because we don't know what groups are supported by the "
7104 "appliance/daemon until it is running and can be queried."
7105 msgstr ""
7106
7107 #. type: textblock
7108 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
7109 msgid ""
7110 "If a group of functions is available, this does not necessarily mean that "
7111 "they will work.  You still have to check for errors when calling individual "
7112 "API functions even if they are available."
7113 msgstr ""
7114
7115 #. type: textblock
7116 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
7117 msgid ""
7118 "It is usually the job of distro packagers to build complete functionality "
7119 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7120 "with all requirements satisfied, will support everything."
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../src/guestfs-actions.pod:607
7125 msgid ""
7126 "This call was added in version C<1.0.80>.  In previous versions of "
7127 "libguestfs all you could do would be to speculatively execute a command to "
7128 "find out if the daemon implemented it.  See also C<guestfs_version>."
7129 msgstr ""
7130
7131 #. type: textblock
7132 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1177
7133 msgid "(Added in 1.0.80)"
7134 msgstr ""
7135
7136 #. type: =head2
7137 #: ../src/guestfs-actions.pod:618
7138 msgid "guestfs_available_all_groups"
7139 msgstr ""
7140
7141 #. type: verbatim
7142 #: ../src/guestfs-actions.pod:620
7143 #, no-wrap
7144 msgid ""
7145 " char **\n"
7146 " guestfs_available_all_groups (guestfs_h *g);\n"
7147 "\n"
7148 msgstr ""
7149
7150 #. type: textblock
7151 #: ../src/guestfs-actions.pod:623
7152 msgid ""
7153 "This command returns a list of all optional groups that this daemon knows "
7154 "about.  Note this returns both supported and unsupported groups.  To find "
7155 "out which ones the daemon can actually support you have to call "
7156 "C<guestfs_available> on each member of the returned list."
7157 msgstr ""
7158
7159 #. type: textblock
7160 #: ../src/guestfs-actions.pod:629
7161 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7162 msgstr ""
7163
7164 #. type: textblock
7165 #: ../src/guestfs-actions.pod:635
7166 msgid "(Added in 1.3.15)"
7167 msgstr ""
7168
7169 #. type: =head2
7170 #: ../src/guestfs-actions.pod:637
7171 msgid "guestfs_base64_in"
7172 msgstr ""
7173
7174 #. type: verbatim
7175 #: ../src/guestfs-actions.pod:639
7176 #, no-wrap
7177 msgid ""
7178 " int\n"
7179 " guestfs_base64_in (guestfs_h *g,\n"
7180 "                    const char *base64file,\n"
7181 "                    const char *filename);\n"
7182 "\n"
7183 msgstr ""
7184
7185 #. type: textblock
7186 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7187 msgid ""
7188 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7189 msgstr ""
7190
7191 #. type: textblock
7192 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7193 msgid "(Added in 1.3.5)"
7194 msgstr ""
7195
7196 #. type: =head2
7197 #: ../src/guestfs-actions.pod:651
7198 msgid "guestfs_base64_out"
7199 msgstr ""
7200
7201 #. type: verbatim
7202 #: ../src/guestfs-actions.pod:653
7203 #, no-wrap
7204 msgid ""
7205 " int\n"
7206 " guestfs_base64_out (guestfs_h *g,\n"
7207 "                     const char *filename,\n"
7208 "                     const char *base64file);\n"
7209 "\n"
7210 msgstr ""
7211
7212 #. type: textblock
7213 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7214 msgid ""
7215 "This command downloads the contents of C<filename>, writing it out to local "
7216 "file C<base64file> encoded as base64."
7217 msgstr ""
7218
7219 #. type: =head2
7220 #: ../src/guestfs-actions.pod:665
7221 msgid "guestfs_blockdev_flushbufs"
7222 msgstr ""
7223
7224 #. type: verbatim
7225 #: ../src/guestfs-actions.pod:667
7226 #, no-wrap
7227 msgid ""
7228 " int\n"
7229 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7230 "                             const char *device);\n"
7231 "\n"
7232 msgstr ""
7233
7234 #. type: textblock
7235 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7236 msgid ""
7237 "This tells the kernel to flush internal buffers associated with C<device>."
7238 msgstr ""
7239
7240 #. type: textblock
7241 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
7242 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
7243 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
7244 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
7245 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
7246 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
7247 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
7248 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
7249 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
7250 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7251 msgid "This uses the L<blockdev(8)> command."
7252 msgstr ""
7253
7254 #. type: textblock
7255 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
7256 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
7257 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
7258 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
7259 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
7260 msgid "(Added in 0.9.3)"
7261 msgstr ""
7262
7263 #. type: =head2
7264 #: ../src/guestfs-actions.pod:680
7265 msgid "guestfs_blockdev_getbsz"
7266 msgstr ""
7267
7268 #. type: verbatim
7269 #: ../src/guestfs-actions.pod:682
7270 #, no-wrap
7271 msgid ""
7272 " int\n"
7273 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7274 "                          const char *device);\n"
7275 "\n"
7276 msgstr ""
7277
7278 #. type: textblock
7279 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7280 msgid "This returns the block size of a device."
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
7285 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7286 msgid ""
7287 "(Note this is different from both I<size in blocks> and I<filesystem block "
7288 "size>)."
7289 msgstr ""
7290
7291 #. type: =head2
7292 #: ../src/guestfs-actions.pod:697
7293 msgid "guestfs_blockdev_getro"
7294 msgstr ""
7295
7296 #. type: verbatim
7297 #: ../src/guestfs-actions.pod:699
7298 #, no-wrap
7299 msgid ""
7300 " int\n"
7301 " guestfs_blockdev_getro (guestfs_h *g,\n"
7302 "                         const char *device);\n"
7303 "\n"
7304 msgstr ""
7305
7306 #. type: textblock
7307 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7308 msgid ""
7309 "Returns a boolean indicating if the block device is read-only (true if read-"
7310 "only, false if not)."
7311 msgstr ""
7312
7313 #. type: textblock
7314 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1415
7315 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1920
7316 #: ../src/guestfs-actions.pod:1931 ../src/guestfs-actions.pod:2003
7317 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2073
7318 #: ../src/guestfs-actions.pod:2098 ../src/guestfs-actions.pod:2121
7319 #: ../src/guestfs-actions.pod:3094 ../src/guestfs-actions.pod:3111
7320 #: ../src/guestfs-actions.pod:3130 ../src/guestfs-actions.pod:3293
7321 #: ../src/guestfs-actions.pod:3307 ../src/guestfs-actions.pod:3322
7322 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3352
7323 #: ../src/guestfs-actions.pod:3367 ../src/guestfs-actions.pod:3383
7324 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3410
7325 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3439
7326 #: ../src/guestfs-actions.pod:3454 ../src/guestfs-actions.pod:4992
7327 msgid "This function returns a C truth value on success or -1 on error."
7328 msgstr ""
7329
7330 #. type: =head2
7331 #: ../src/guestfs-actions.pod:712
7332 msgid "guestfs_blockdev_getsize64"
7333 msgstr ""
7334
7335 #. type: verbatim
7336 #: ../src/guestfs-actions.pod:714
7337 #, no-wrap
7338 msgid ""
7339 " int64_t\n"
7340 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7341 "                             const char *device);\n"
7342 "\n"
7343 msgstr ""
7344
7345 #. type: textblock
7346 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
7347 msgid "This returns the size of the device in bytes."
7348 msgstr ""
7349
7350 #. type: textblock
7351 #: ../src/guestfs-actions.pod:720
7352 msgid "See also C<guestfs_blockdev_getsz>."
7353 msgstr ""
7354
7355 #. type: =head2
7356 #: ../src/guestfs-actions.pod:728
7357 msgid "guestfs_blockdev_getss"
7358 msgstr ""
7359
7360 #. type: verbatim
7361 #: ../src/guestfs-actions.pod:730
7362 #, no-wrap
7363 msgid ""
7364 " int\n"
7365 " guestfs_blockdev_getss (guestfs_h *g,\n"
7366 "                         const char *device);\n"
7367 "\n"
7368 msgstr ""
7369
7370 #. type: textblock
7371 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
7372 msgid ""
7373 "This returns the size of sectors on a block device.  Usually 512, but can be "
7374 "larger for modern devices."
7375 msgstr ""
7376
7377 #. type: textblock
7378 #: ../src/guestfs-actions.pod:737
7379 msgid ""
7380 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7381 "that)."
7382 msgstr ""
7383
7384 #. type: =head2
7385 #: ../src/guestfs-actions.pod:746
7386 msgid "guestfs_blockdev_getsz"
7387 msgstr ""
7388
7389 #. type: verbatim
7390 #: ../src/guestfs-actions.pod:748
7391 #, no-wrap
7392 msgid ""
7393 " int64_t\n"
7394 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7395 "                         const char *device);\n"
7396 "\n"
7397 msgstr ""
7398
7399 #. type: textblock
7400 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
7401 msgid ""
7402 "This returns the size of the device in units of 512-byte sectors (even if "
7403 "the sectorsize isn't 512 bytes ... weird)."
7404 msgstr ""
7405
7406 #. type: textblock
7407 #: ../src/guestfs-actions.pod:755
7408 msgid ""
7409 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7410 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7411 msgstr ""
7412
7413 #. type: =head2
7414 #: ../src/guestfs-actions.pod:765
7415 msgid "guestfs_blockdev_rereadpt"
7416 msgstr ""
7417
7418 #. type: verbatim
7419 #: ../src/guestfs-actions.pod:767
7420 #, no-wrap
7421 msgid ""
7422 " int\n"
7423 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7424 "                            const char *device);\n"
7425 "\n"
7426 msgstr ""
7427
7428 #. type: textblock
7429 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
7430 msgid "Reread the partition table on C<device>."
7431 msgstr ""
7432
7433 #. type: =head2
7434 #: ../src/guestfs-actions.pod:779
7435 msgid "guestfs_blockdev_setbsz"
7436 msgstr ""
7437
7438 #. type: verbatim
7439 #: ../src/guestfs-actions.pod:781
7440 #, no-wrap
7441 msgid ""
7442 " int\n"
7443 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7444 "                          const char *device,\n"
7445 "                          int blocksize);\n"
7446 "\n"
7447 msgstr ""
7448
7449 #. type: textblock
7450 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
7451 msgid "This sets the block size of a device."
7452 msgstr ""
7453
7454 #. type: =head2
7455 #: ../src/guestfs-actions.pod:797
7456 msgid "guestfs_blockdev_setro"
7457 msgstr ""
7458
7459 #. type: verbatim
7460 #: ../src/guestfs-actions.pod:799
7461 #, no-wrap
7462 msgid ""
7463 " int\n"
7464 " guestfs_blockdev_setro (guestfs_h *g,\n"
7465 "                         const char *device);\n"
7466 "\n"
7467 msgstr ""
7468
7469 #. type: textblock
7470 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
7471 msgid "Sets the block device named C<device> to read-only."
7472 msgstr ""
7473
7474 #. type: =head2
7475 #: ../src/guestfs-actions.pod:811
7476 msgid "guestfs_blockdev_setrw"
7477 msgstr ""
7478
7479 #. type: verbatim
7480 #: ../src/guestfs-actions.pod:813
7481 #, no-wrap
7482 msgid ""
7483 " int\n"
7484 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7485 "                         const char *device);\n"
7486 "\n"
7487 msgstr ""
7488
7489 #. type: textblock
7490 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
7491 msgid "Sets the block device named C<device> to read-write."
7492 msgstr ""
7493
7494 #. type: =head2
7495 #: ../src/guestfs-actions.pod:825
7496 msgid "guestfs_case_sensitive_path"
7497 msgstr ""
7498
7499 #. type: verbatim
7500 #: ../src/guestfs-actions.pod:827
7501 #, no-wrap
7502 msgid ""
7503 " char *\n"
7504 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7505 "                              const char *path);\n"
7506 "\n"
7507 msgstr ""
7508
7509 #. type: textblock
7510 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:549
7511 msgid ""
7512 "This can be used to resolve case insensitive paths on a filesystem which is "
7513 "case sensitive.  The use case is to resolve paths which you have read from "
7514 "Windows configuration files or the Windows Registry, to the true path."
7515 msgstr ""
7516
7517 #. type: textblock
7518 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:554
7519 msgid ""
7520 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7521 "(and probably others), which is that although the underlying filesystem is "
7522 "case-insensitive, the driver exports the filesystem to Linux as case-"
7523 "sensitive."
7524 msgstr ""
7525
7526 #. type: textblock
7527 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:559
7528 msgid ""
7529 "One consequence of this is that special directories such as C<c:\\windows> "
7530 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7531 "precise details of how they were created.  In Windows itself this would not "
7532 "be a problem."
7533 msgstr ""
7534
7535 #. type: textblock
7536 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:565
7537 msgid ""
7538 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7539 "#posixfilenames1>"
7540 msgstr ""
7541
7542 #. type: textblock
7543 #: ../src/guestfs-actions.pod:850 ../fish/guestfish-actions.pod:568
7544 msgid ""
7545 "This function resolves the true case of each element in the path and returns "
7546 "the case-sensitive path."
7547 msgstr ""
7548
7549 #. type: textblock
7550 #: ../src/guestfs-actions.pod:853
7551 msgid ""
7552 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
7553 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7554 "how the directories were originally created under Windows)."
7555 msgstr ""
7556
7557 #. type: textblock
7558 #: ../src/guestfs-actions.pod:858 ../fish/guestfish-actions.pod:576
7559 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7560 msgstr ""
7561
7562 #. type: textblock
7563 #: ../src/guestfs-actions.pod:861
7564 msgid "See also C<guestfs_realpath>."
7565 msgstr ""
7566
7567 #. type: textblock
7568 #: ../src/guestfs-actions.pod:866 ../src/guestfs-actions.pod:7011
7569 msgid "(Added in 1.0.75)"
7570 msgstr ""
7571
7572 #. type: =head2
7573 #: ../src/guestfs-actions.pod:868
7574 msgid "guestfs_cat"
7575 msgstr ""
7576
7577 #. type: verbatim
7578 #: ../src/guestfs-actions.pod:870
7579 #, no-wrap
7580 msgid ""
7581 " char *\n"
7582 " guestfs_cat (guestfs_h *g,\n"
7583 "              const char *path);\n"
7584 "\n"
7585 msgstr ""
7586
7587 #. type: textblock
7588 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:5479
7589 #: ../fish/guestfish-actions.pod:585 ../fish/guestfish-actions.pod:3679
7590 msgid "Return the contents of the file named C<path>."
7591 msgstr ""
7592
7593 #. type: textblock
7594 #: ../src/guestfs-actions.pod:876
7595 msgid ""
7596 "Note that this function cannot correctly handle binary files (specifically, "
7597 "files containing C<\\0> character which is treated as end of string).  For "
7598 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7599 "functions which have a more complex interface."
7600 msgstr ""
7601
7602 #. type: textblock
7603 #: ../src/guestfs-actions.pod:884 ../src/guestfs-actions.pod:1063
7604 #: ../src/guestfs-actions.pod:1083 ../src/guestfs-actions.pod:1379
7605 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:1501
7606 #: ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1769
7607 #: ../src/guestfs-actions.pod:2227 ../src/guestfs-actions.pod:2246
7608 #: ../src/guestfs-actions.pod:2289 ../src/guestfs-actions.pod:2313
7609 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:2359
7610 #: ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5287
7611 #: ../src/guestfs-actions.pod:5418 ../src/guestfs-actions.pod:5444
7612 #: ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:6396
7613 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6597
7614 #: ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:7290
7615 #: ../src/guestfs-actions.pod:7316 ../src/guestfs-actions.pod:7342
7616 #: ../src/guestfs-actions.pod:7361 ../src/guestfs-actions.pod:7446
7617 #: ../src/guestfs-actions.pod:7465 ../src/guestfs-actions.pod:7511
7618 #: ../src/guestfs-actions.pod:7530 ../fish/guestfish-actions.pod:592
7619 #: ../fish/guestfish-actions.pod:727 ../fish/guestfish-actions.pod:739
7620 #: ../fish/guestfish-actions.pod:915 ../fish/guestfish-actions.pod:925
7621 #: ../fish/guestfish-actions.pod:992 ../fish/guestfish-actions.pod:1002
7622 #: ../fish/guestfish-actions.pod:1197 ../fish/guestfish-actions.pod:1498
7623 #: ../fish/guestfish-actions.pod:1508 ../fish/guestfish-actions.pod:1536
7624 #: ../fish/guestfish-actions.pod:1551 ../fish/guestfish-actions.pod:1561
7625 #: ../fish/guestfish-actions.pod:1580 ../fish/guestfish-actions.pod:3549
7626 #: ../fish/guestfish-actions.pod:3564 ../fish/guestfish-actions.pod:3640
7627 #: ../fish/guestfish-actions.pod:3657 ../fish/guestfish-actions.pod:3672
7628 #: ../fish/guestfish-actions.pod:4326 ../fish/guestfish-actions.pod:4372
7629 #: ../fish/guestfish-actions.pod:4457 ../fish/guestfish-actions.pod:4472
7630 #: ../fish/guestfish-actions.pod:4882 ../fish/guestfish-actions.pod:4900
7631 #: ../fish/guestfish-actions.pod:4917 ../fish/guestfish-actions.pod:4927
7632 #: ../fish/guestfish-actions.pod:4975 ../fish/guestfish-actions.pod:4985
7633 #: ../fish/guestfish-actions.pod:5014 ../fish/guestfish-actions.pod:5024
7634 msgid ""
7635 "Because of the message protocol, there is a transfer limit of somewhere "
7636 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7637 msgstr ""
7638
7639 #. type: textblock
7640 #: ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:3570
7641 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3649
7642 #: ../src/guestfs-actions.pod:3737 ../src/guestfs-actions.pod:4142
7643 #: ../src/guestfs-actions.pod:4156 ../src/guestfs-actions.pod:5367
7644 #: ../src/guestfs-actions.pod:5381 ../src/guestfs-actions.pod:7170
7645 #: ../src/guestfs-actions.pod:7184
7646 msgid "(Added in 0.4)"
7647 msgstr ""
7648
7649 #. type: =head2
7650 #: ../src/guestfs-actions.pod:889
7651 msgid "guestfs_checksum"
7652 msgstr ""
7653
7654 #. type: verbatim
7655 #: ../src/guestfs-actions.pod:891
7656 #, no-wrap
7657 msgid ""
7658 " char *\n"
7659 " guestfs_checksum (guestfs_h *g,\n"
7660 "                   const char *csumtype,\n"
7661 "                   const char *path);\n"
7662 "\n"
7663 msgstr ""
7664
7665 #. type: textblock
7666 #: ../src/guestfs-actions.pod:896 ../fish/guestfish-actions.pod:599
7667 msgid ""
7668 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7669 msgstr ""
7670
7671 #. type: textblock
7672 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:602
7673 msgid ""
7674 "The type of checksum to compute is given by the C<csumtype> parameter which "
7675 "must have one of the following values:"
7676 msgstr ""
7677
7678 #. type: =item
7679 #: ../src/guestfs-actions.pod:904 ../fish/guestfish-actions.pod:607
7680 msgid "C<crc>"
7681 msgstr "C<crc>"
7682
7683 #. type: textblock
7684 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:609
7685 msgid ""
7686 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7687 "C<cksum> command."
7688 msgstr ""
7689
7690 #. type: =item
7691 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:612
7692 msgid "C<md5>"
7693 msgstr "C<md5>"
7694
7695 #. type: textblock
7696 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:614
7697 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7698 msgstr ""
7699
7700 #. type: =item
7701 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:616
7702 msgid "C<sha1>"
7703 msgstr "C<sha1>"
7704
7705 #. type: textblock
7706 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:618
7707 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7708 msgstr ""
7709
7710 #. type: =item
7711 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:620
7712 msgid "C<sha224>"
7713 msgstr "C<sha224>"
7714
7715 #. type: textblock
7716 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:622
7717 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7718 msgstr ""
7719
7720 #. type: =item
7721 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:624
7722 msgid "C<sha256>"
7723 msgstr "C<sha256>"
7724
7725 #. type: textblock
7726 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:626
7727 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7728 msgstr ""
7729
7730 #. type: =item
7731 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:628
7732 msgid "C<sha384>"
7733 msgstr "C<sha384>"
7734
7735 #. type: textblock
7736 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:630
7737 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7738 msgstr ""
7739
7740 #. type: =item
7741 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:632
7742 msgid "C<sha512>"
7743 msgstr "C<sha512>"
7744
7745 #. type: textblock
7746 #: ../src/guestfs-actions.pod:931 ../fish/guestfish-actions.pod:634
7747 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7748 msgstr ""
7749
7750 #. type: textblock
7751 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:638
7752 msgid "The checksum is returned as a printable string."
7753 msgstr ""
7754
7755 #. type: textblock
7756 #: ../src/guestfs-actions.pod:937
7757 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7758 msgstr ""
7759
7760 #. type: textblock
7761 #: ../src/guestfs-actions.pod:939
7762 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7763 msgstr ""
7764
7765 #. type: textblock
7766 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:1252
7767 #: ../src/guestfs-actions.pod:2089 ../src/guestfs-actions.pod:3309
7768 #: ../src/guestfs-actions.pod:3338 ../src/guestfs-actions.pod:3399
7769 #: ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:6867
7770 msgid "(Added in 1.0.2)"
7771 msgstr ""
7772
7773 #. type: =head2
7774 #: ../src/guestfs-actions.pod:946
7775 msgid "guestfs_checksum_device"
7776 msgstr ""
7777
7778 #. type: verbatim
7779 #: ../src/guestfs-actions.pod:948
7780 #, no-wrap
7781 msgid ""
7782 " char *\n"
7783 " guestfs_checksum_device (guestfs_h *g,\n"
7784 "                          const char *csumtype,\n"
7785 "                          const char *device);\n"
7786 "\n"
7787 msgstr ""
7788
7789 #. type: textblock
7790 #: ../src/guestfs-actions.pod:953
7791 msgid ""
7792 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7793 "device named C<device>.  For the types of checksums supported see the "
7794 "C<guestfs_checksum> command."
7795 msgstr ""
7796
7797 #. type: textblock
7798 #: ../src/guestfs-actions.pod:960 ../src/guestfs-actions.pod:4898
7799 #: ../src/guestfs-actions.pod:4957 ../src/guestfs-actions.pod:4994
7800 #: ../src/guestfs-actions.pod:5012 ../src/guestfs-actions.pod:5188
7801 #: ../src/guestfs-actions.pod:6776 ../src/guestfs-actions.pod:6790
7802 #: ../src/guestfs-actions.pod:7196
7803 msgid "(Added in 1.3.2)"
7804 msgstr ""
7805
7806 #. type: =head2
7807 #: ../src/guestfs-actions.pod:962
7808 msgid "guestfs_checksums_out"
7809 msgstr ""
7810
7811 #. type: verbatim
7812 #: ../src/guestfs-actions.pod:964
7813 #, no-wrap
7814 msgid ""
7815 " int\n"
7816 " guestfs_checksums_out (guestfs_h *g,\n"
7817 "                        const char *csumtype,\n"
7818 "                        const char *directory,\n"
7819 "                        const char *sumsfile);\n"
7820 "\n"
7821 msgstr ""
7822
7823 #. type: textblock
7824 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:656
7825 msgid ""
7826 "This command computes the checksums of all regular files in C<directory> and "
7827 "then emits a list of those checksums to the local output file C<sumsfile>."
7828 msgstr ""
7829
7830 #. type: textblock
7831 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:660
7832 msgid ""
7833 "This can be used for verifying the integrity of a virtual machine.  However "
7834 "to be properly secure you should pay attention to the output of the checksum "
7835 "command (it uses the ones from GNU coreutils).  In particular when the "
7836 "filename is not printable, coreutils uses a special backslash syntax.  For "
7837 "more information, see the GNU coreutils info file."
7838 msgstr ""
7839
7840 #. type: textblock
7841 #: ../src/guestfs-actions.pod:984
7842 msgid "(Added in 1.3.7)"
7843 msgstr ""
7844
7845 #. type: =head2
7846 #: ../src/guestfs-actions.pod:986
7847 msgid "guestfs_chmod"
7848 msgstr ""
7849
7850 #. type: verbatim
7851 #: ../src/guestfs-actions.pod:988
7852 #, no-wrap
7853 msgid ""
7854 " int\n"
7855 " guestfs_chmod (guestfs_h *g,\n"
7856 "                int mode,\n"
7857 "                const char *path);\n"
7858 "\n"
7859 msgstr ""
7860
7861 #. type: textblock
7862 #: ../src/guestfs-actions.pod:993 ../fish/guestfish-actions.pod:674
7863 msgid ""
7864 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7865 "supported."
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../src/guestfs-actions.pod:996 ../fish/guestfish-actions.pod:677
7870 msgid ""
7871 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7872 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7873 "C<700>."
7874 msgstr ""
7875
7876 #. type: textblock
7877 #: ../src/guestfs-actions.pod:1000 ../src/guestfs-actions.pod:4393
7878 #: ../src/guestfs-actions.pod:4590 ../src/guestfs-actions.pod:4609
7879 #: ../src/guestfs-actions.pod:4628 ../fish/guestfish-actions.pod:681
7880 #: ../fish/guestfish-actions.pod:2988 ../fish/guestfish-actions.pod:3117
7881 #: ../fish/guestfish-actions.pod:3127 ../fish/guestfish-actions.pod:3137
7882 msgid "The mode actually set is affected by the umask."
7883 msgstr ""
7884
7885 #. type: =head2
7886 #: ../src/guestfs-actions.pod:1006
7887 msgid "guestfs_chown"
7888 msgstr ""
7889
7890 #. type: verbatim
7891 #: ../src/guestfs-actions.pod:1008
7892 #, no-wrap
7893 msgid ""
7894 " int\n"
7895 " guestfs_chown (guestfs_h *g,\n"
7896 "                int owner,\n"
7897 "                int group,\n"
7898 "                const char *path);\n"
7899 "\n"
7900 msgstr ""
7901
7902 #. type: textblock
7903 #: ../src/guestfs-actions.pod:1014 ../fish/guestfish-actions.pod:687
7904 msgid "Change the file owner to C<owner> and group to C<group>."
7905 msgstr ""
7906
7907 #. type: textblock
7908 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:3501
7909 #: ../fish/guestfish-actions.pod:689 ../fish/guestfish-actions.pod:2446
7910 msgid ""
7911 "Only numeric uid and gid are supported.  If you want to use names, you will "
7912 "need to locate and parse the password file yourself (Augeas support makes "
7913 "this relatively easy)."
7914 msgstr ""
7915
7916 #. type: =head2
7917 #: ../src/guestfs-actions.pod:1024
7918 msgid "guestfs_command"
7919 msgstr ""
7920
7921 #. type: verbatim
7922 #: ../src/guestfs-actions.pod:1026
7923 #, no-wrap
7924 msgid ""
7925 " char *\n"
7926 " guestfs_command (guestfs_h *g,\n"
7927 "                  char *const *arguments);\n"
7928 "\n"
7929 msgstr ""
7930
7931 #. type: textblock
7932 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:697
7933 msgid ""
7934 "This call runs a command from the guest filesystem.  The filesystem must be "
7935 "mounted, and must contain a compatible operating system (ie. something "
7936 "Linux, with the same or compatible processor architecture)."
7937 msgstr ""
7938
7939 #. type: textblock
7940 #: ../src/guestfs-actions.pod:1035
7941 msgid ""
7942 "The single parameter is an argv-style list of arguments.  The first element "
7943 "is the name of the program to run.  Subsequent elements are parameters.  The "
7944 "list must be non-empty (ie. must contain a program name).  Note that the "
7945 "command runs directly, and is I<not> invoked via the shell (see "
7946 "C<guestfs_sh>)."
7947 msgstr ""
7948
7949 #. type: textblock
7950 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:709
7951 msgid "The return value is anything printed to I<stdout> by the command."
7952 msgstr ""
7953
7954 #. type: textblock
7955 #: ../src/guestfs-actions.pod:1045 ../fish/guestfish-actions.pod:712
7956 msgid ""
7957 "If the command returns a non-zero exit status, then this function returns an "
7958 "error message.  The error message string is the content of I<stderr> from "
7959 "the command."
7960 msgstr ""
7961
7962 #. type: textblock
7963 #: ../src/guestfs-actions.pod:1049 ../fish/guestfish-actions.pod:716
7964 msgid ""
7965 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7966 "bin>.  If you require a program from another location, you should provide "
7967 "the full path in the first parameter."
7968 msgstr ""
7969
7970 #. type: textblock
7971 #: ../src/guestfs-actions.pod:1054 ../fish/guestfish-actions.pod:721
7972 msgid ""
7973 "Shared libraries and data files required by the program must be available on "
7974 "filesystems which are mounted in the correct places.  It is the caller's "
7975 "responsibility to ensure all filesystems that are needed are mounted at the "
7976 "right locations."
7977 msgstr ""
7978
7979 #. type: textblock
7980 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1086
7981 #: ../src/guestfs-actions.pod:1554
7982 msgid "(Added in 0.9.1)"
7983 msgstr ""
7984
7985 #. type: =head2
7986 #: ../src/guestfs-actions.pod:1068
7987 msgid "guestfs_command_lines"
7988 msgstr ""
7989
7990 #. type: verbatim
7991 #: ../src/guestfs-actions.pod:1070
7992 #, no-wrap
7993 msgid ""
7994 " char **\n"
7995 " guestfs_command_lines (guestfs_h *g,\n"
7996 "                        char *const *arguments);\n"
7997 "\n"
7998 msgstr ""
7999
8000 #. type: textblock
8001 #: ../src/guestfs-actions.pod:1074
8002 msgid ""
8003 "This is the same as C<guestfs_command>, but splits the result into a list of "
8004 "lines."
8005 msgstr ""
8006
8007 #. type: textblock
8008 #: ../src/guestfs-actions.pod:1077
8009 msgid "See also: C<guestfs_sh_lines>"
8010 msgstr ""
8011
8012 #. type: =head2
8013 #: ../src/guestfs-actions.pod:1088
8014 msgid "guestfs_config"
8015 msgstr ""
8016
8017 #. type: verbatim
8018 #: ../src/guestfs-actions.pod:1090
8019 #, no-wrap
8020 msgid ""
8021 " int\n"
8022 " guestfs_config (guestfs_h *g,\n"
8023 "                 const char *qemuparam,\n"
8024 "                 const char *qemuvalue);\n"
8025 "\n"
8026 msgstr ""
8027
8028 #. type: textblock
8029 #: ../src/guestfs-actions.pod:1095 ../fish/guestfish-actions.pod:746
8030 msgid ""
8031 "This can be used to add arbitrary qemu command line parameters of the form "
8032 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8033 "setting some parameters which would interfere with parameters that we use."
8034 msgstr ""
8035
8036 #. type: textblock
8037 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:751
8038 msgid "The first character of C<param> string must be a C<-> (dash)."
8039 msgstr ""
8040
8041 #. type: textblock
8042 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:753
8043 msgid "C<value> can be NULL."
8044 msgstr ""
8045
8046 #. type: =head2
8047 #: ../src/guestfs-actions.pod:1108
8048 msgid "guestfs_copy_size"
8049 msgstr ""
8050
8051 #. type: verbatim
8052 #: ../src/guestfs-actions.pod:1110
8053 #, no-wrap
8054 msgid ""
8055 " int\n"
8056 " guestfs_copy_size (guestfs_h *g,\n"
8057 "                    const char *src,\n"
8058 "                    const char *dest,\n"
8059 "                    int64_t size);\n"
8060 "\n"
8061 msgstr ""
8062
8063 #. type: textblock
8064 #: ../src/guestfs-actions.pod:1116 ../fish/guestfish-actions.pod:759
8065 msgid ""
8066 "This command copies exactly C<size> bytes from one source device or file "
8067 "C<src> to another destination device or file C<dest>."
8068 msgstr ""
8069
8070 #. type: textblock
8071 #: ../src/guestfs-actions.pod:1119 ../fish/guestfish-actions.pod:762
8072 msgid ""
8073 "Note this will fail if the source is too short or if the destination is not "
8074 "large enough."
8075 msgstr ""
8076
8077 #. type: textblock
8078 #: ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1247
8079 #: ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1323
8080 #: ../src/guestfs-actions.pod:1703 ../src/guestfs-actions.pod:1725
8081 #: ../src/guestfs-actions.pod:3482 ../src/guestfs-actions.pod:6862
8082 #: ../src/guestfs-actions.pod:6896 ../src/guestfs-actions.pod:7382
8083 #: ../src/guestfs-actions.pod:7401
8084 msgid ""
8085 "This long-running command can generate progress notification messages so "
8086 "that the caller can display a progress bar or indicator.  To receive these "
8087 "messages, the caller must register a progress event callback.  See L<guestfs"
8088 "(3)/GUESTFS_EVENT_PROGRESS>."
8089 msgstr ""
8090
8091 #. type: textblock
8092 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:4169
8093 #: ../src/guestfs-actions.pod:5394 ../src/guestfs-actions.pod:7103
8094 #: ../src/guestfs-actions.pod:7123 ../src/guestfs-actions.pod:7209
8095 msgid "(Added in 1.0.87)"
8096 msgstr ""
8097
8098 #. type: =head2
8099 #: ../src/guestfs-actions.pod:1131
8100 msgid "guestfs_cp"
8101 msgstr ""
8102
8103 #. type: verbatim
8104 #: ../src/guestfs-actions.pod:1133
8105 #, no-wrap
8106 msgid ""
8107 " int\n"
8108 " guestfs_cp (guestfs_h *g,\n"
8109 "             const char *src,\n"
8110 "             const char *dest);\n"
8111 "\n"
8112 msgstr ""
8113
8114 #. type: textblock
8115 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:769
8116 msgid ""
8117 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8118 "destination filename or destination directory."
8119 msgstr ""
8120
8121 #. type: textblock
8122 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1157
8123 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1303
8124 #: ../src/guestfs-actions.pod:1417 ../src/guestfs-actions.pod:4861
8125 #: ../src/guestfs-actions.pod:5238
8126 msgid "(Added in 1.0.18)"
8127 msgstr ""
8128
8129 #. type: =head2
8130 #: ../src/guestfs-actions.pod:1145
8131 msgid "guestfs_cp_a"
8132 msgstr ""
8133
8134 #. type: verbatim
8135 #: ../src/guestfs-actions.pod:1147
8136 #, no-wrap
8137 msgid ""
8138 " int\n"
8139 " guestfs_cp_a (guestfs_h *g,\n"
8140 "               const char *src,\n"
8141 "               const char *dest);\n"
8142 "\n"
8143 msgstr ""
8144
8145 #. type: textblock
8146 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:776
8147 msgid ""
8148 "This copies a file or directory from C<src> to C<dest> recursively using the "
8149 "C<cp -a> command."
8150 msgstr ""
8151
8152 #. type: =head2
8153 #: ../src/guestfs-actions.pod:1159
8154 msgid "guestfs_dd"
8155 msgstr ""
8156
8157 #. type: verbatim
8158 #: ../src/guestfs-actions.pod:1161
8159 #, no-wrap
8160 msgid ""
8161 " int\n"
8162 " guestfs_dd (guestfs_h *g,\n"
8163 "             const char *src,\n"
8164 "             const char *dest);\n"
8165 "\n"
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../src/guestfs-actions.pod:1166 ../fish/guestfish-actions.pod:783
8170 msgid ""
8171 "This command copies from one source device or file C<src> to another "
8172 "destination device or file C<dest>.  Normally you would use this to copy to "
8173 "or from a device or partition, for example to duplicate a filesystem."
8174 msgstr ""
8175
8176 #. type: textblock
8177 #: ../src/guestfs-actions.pod:1171
8178 msgid ""
8179 "If the destination is a device, it must be as large or larger than the "
8180 "source file or device, otherwise the copy will fail.  This command cannot do "
8181 "partial copies (see C<guestfs_copy_size>)."
8182 msgstr ""
8183
8184 #. type: =head2
8185 #: ../src/guestfs-actions.pod:1179
8186 msgid "guestfs_df"
8187 msgstr ""
8188
8189 #. type: verbatim
8190 #: ../src/guestfs-actions.pod:1181
8191 #, no-wrap
8192 msgid ""
8193 " char *\n"
8194 " guestfs_df (guestfs_h *g);\n"
8195 "\n"
8196 msgstr ""
8197
8198 #. type: textblock
8199 #: ../src/guestfs-actions.pod:1184 ../fish/guestfish-actions.pod:796
8200 msgid "This command runs the C<df> command to report disk space used."
8201 msgstr ""
8202
8203 #. type: textblock
8204 #: ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1203
8205 msgid ""
8206 "This command is mostly useful for interactive sessions.  It is I<not> "
8207 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8208 "from programs."
8209 msgstr ""
8210
8211 #. type: textblock
8212 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1210
8213 #: ../src/guestfs-actions.pod:1328 ../src/guestfs-actions.pod:2292
8214 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2384
8215 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4761
8216 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624
8217 #: ../src/guestfs-actions.pod:7249 ../src/guestfs-actions.pod:7262
8218 #: ../src/guestfs-actions.pod:7275
8219 msgid "(Added in 1.0.54)"
8220 msgstr ""
8221
8222 #. type: =head2
8223 #: ../src/guestfs-actions.pod:1195
8224 msgid "guestfs_df_h"
8225 msgstr ""
8226
8227 #. type: verbatim
8228 #: ../src/guestfs-actions.pod:1197
8229 #, no-wrap
8230 msgid ""
8231 " char *\n"
8232 " guestfs_df_h (guestfs_h *g);\n"
8233 "\n"
8234 msgstr ""
8235
8236 #. type: textblock
8237 #: ../src/guestfs-actions.pod:1200 ../fish/guestfish-actions.pod:806
8238 msgid ""
8239 "This command runs the C<df -h> command to report disk space used in human-"
8240 "readable format."
8241 msgstr ""
8242
8243 #. type: =head2
8244 #: ../src/guestfs-actions.pod:1212
8245 msgid "guestfs_dmesg"
8246 msgstr ""
8247
8248 #. type: verbatim
8249 #: ../src/guestfs-actions.pod:1214
8250 #, no-wrap
8251 msgid ""
8252 " char *\n"
8253 " guestfs_dmesg (guestfs_h *g);\n"
8254 "\n"
8255 msgstr ""
8256
8257 #. type: textblock
8258 #: ../src/guestfs-actions.pod:1217 ../fish/guestfish-actions.pod:817
8259 msgid ""
8260 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8261 "This is sometimes useful for extended debugging of problems."
8262 msgstr ""
8263
8264 #. type: textblock
8265 #: ../src/guestfs-actions.pod:1221
8266 msgid ""
8267 "Another way to get the same information is to enable verbose messages with "
8268 "C<guestfs_set_verbose> or by setting the environment variable "
8269 "C<LIBGUESTFS_DEBUG=1> before running the program."
8270 msgstr ""
8271
8272 #. type: =head2
8273 #: ../src/guestfs-actions.pod:1231
8274 msgid "guestfs_download"
8275 msgstr ""
8276
8277 #. type: verbatim
8278 #: ../src/guestfs-actions.pod:1233
8279 #, no-wrap
8280 msgid ""
8281 " int\n"
8282 " guestfs_download (guestfs_h *g,\n"
8283 "                   const char *remotefilename,\n"
8284 "                   const char *filename);\n"
8285 "\n"
8286 msgstr ""
8287
8288 #. type: textblock
8289 #: ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:1263
8290 #: ../fish/guestfish-actions.pod:830 ../fish/guestfish-actions.pod:843
8291 msgid ""
8292 "Download file C<remotefilename> and save it as C<filename> on the local "
8293 "machine."
8294 msgstr ""
8295
8296 #. type: textblock
8297 #: ../src/guestfs-actions.pod:1241 ../src/guestfs-actions.pod:6856
8298 #: ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:4630
8299 msgid "C<filename> can also be a named pipe."
8300 msgstr ""
8301
8302 #. type: textblock
8303 #: ../src/guestfs-actions.pod:1243
8304 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8305 msgstr ""
8306
8307 #. type: =head2
8308 #: ../src/guestfs-actions.pod:1254
8309 msgid "guestfs_download_offset"
8310 msgstr ""
8311
8312 #. type: verbatim
8313 #: ../src/guestfs-actions.pod:1256
8314 #, no-wrap
8315 msgid ""
8316 " int\n"
8317 " guestfs_download_offset (guestfs_h *g,\n"
8318 "                          const char *remotefilename,\n"
8319 "                          const char *filename,\n"
8320 "                          int64_t offset,\n"
8321 "                          int64_t size);\n"
8322 "\n"
8323 msgstr ""
8324
8325 #. type: textblock
8326 #: ../src/guestfs-actions.pod:1266 ../fish/guestfish-actions.pod:846
8327 msgid ""
8328 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8329 "region must be within the file or device)."
8330 msgstr ""
8331
8332 #. type: textblock
8333 #: ../src/guestfs-actions.pod:1269
8334 msgid ""
8335 "Note that there is no limit on the amount of data that can be downloaded "
8336 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8337 "full amount unless an error occurs."
8338 msgstr ""
8339
8340 #. type: textblock
8341 #: ../src/guestfs-actions.pod:1274
8342 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8343 msgstr ""
8344
8345 #. type: textblock
8346 #: ../src/guestfs-actions.pod:1283 ../src/guestfs-actions.pod:6901
8347 msgid "(Added in 1.5.17)"
8348 msgstr ""
8349
8350 #. type: =head2
8351 #: ../src/guestfs-actions.pod:1285
8352 msgid "guestfs_drop_caches"
8353 msgstr ""
8354
8355 #. type: verbatim
8356 #: ../src/guestfs-actions.pod:1287
8357 #, no-wrap
8358 msgid ""
8359 " int\n"
8360 " guestfs_drop_caches (guestfs_h *g,\n"
8361 "                      int whattodrop);\n"
8362 "\n"
8363 msgstr ""
8364
8365 #. type: textblock
8366 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:862
8367 msgid ""
8368 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8369 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8370 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8371 msgstr ""
8372
8373 #. type: textblock
8374 #: ../src/guestfs-actions.pod:1296 ../fish/guestfish-actions.pod:867
8375 msgid "Setting C<whattodrop> to 3 should drop everything."
8376 msgstr ""
8377
8378 #. type: textblock
8379 #: ../src/guestfs-actions.pod:1298 ../fish/guestfish-actions.pod:869
8380 msgid ""
8381 "This automatically calls L<sync(2)> before the operation, so that the "
8382 "maximum guest memory is freed."
8383 msgstr ""
8384
8385 #. type: =head2
8386 #: ../src/guestfs-actions.pod:1305
8387 msgid "guestfs_du"
8388 msgstr ""
8389
8390 #. type: verbatim
8391 #: ../src/guestfs-actions.pod:1307
8392 #, no-wrap
8393 msgid ""
8394 " int64_t\n"
8395 " guestfs_du (guestfs_h *g,\n"
8396 "             const char *path);\n"
8397 "\n"
8398 msgstr ""
8399
8400 #. type: textblock
8401 #: ../src/guestfs-actions.pod:1311 ../fish/guestfish-actions.pod:876
8402 msgid ""
8403 "This command runs the C<du -s> command to estimate file space usage for "
8404 "C<path>."
8405 msgstr ""
8406
8407 #. type: textblock
8408 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:879
8409 msgid ""
8410 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8411 "estimate includes the contents of the directory and all subdirectories "
8412 "(recursively)."
8413 msgstr ""
8414
8415 #. type: textblock
8416 #: ../src/guestfs-actions.pod:1318 ../fish/guestfish-actions.pod:883
8417 msgid ""
8418 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8419 msgstr ""
8420
8421 #. type: =head2
8422 #: ../src/guestfs-actions.pod:1330
8423 msgid "guestfs_e2fsck_f"
8424 msgstr ""
8425
8426 #. type: verbatim
8427 #: ../src/guestfs-actions.pod:1332
8428 #, no-wrap
8429 msgid ""
8430 " int\n"
8431 " guestfs_e2fsck_f (guestfs_h *g,\n"
8432 "                   const char *device);\n"
8433 "\n"
8434 msgstr ""
8435
8436 #. type: textblock
8437 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:890
8438 msgid ""
8439 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8440 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8441 "clean (I<-f>)."
8442 msgstr ""
8443
8444 #. type: textblock
8445 #: ../src/guestfs-actions.pod:1340
8446 msgid ""
8447 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8448 "Normally you should use C<guestfs_fsck>."
8449 msgstr ""
8450
8451 #. type: textblock
8452 #: ../src/guestfs-actions.pod:1345
8453 msgid "(Added in 1.0.29)"
8454 msgstr ""
8455
8456 #. type: =head2
8457 #: ../src/guestfs-actions.pod:1347
8458 msgid "guestfs_echo_daemon"
8459 msgstr ""
8460
8461 #. type: verbatim
8462 #: ../src/guestfs-actions.pod:1349
8463 #, no-wrap
8464 msgid ""
8465 " char *\n"
8466 " guestfs_echo_daemon (guestfs_h *g,\n"
8467 "                      char *const *words);\n"
8468 "\n"
8469 msgstr ""
8470
8471 #. type: textblock
8472 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:901
8473 msgid ""
8474 "This command concatenates the list of C<words> passed with single spaces "
8475 "between them and returns the resulting string."
8476 msgstr ""
8477
8478 #. type: textblock
8479 #: ../src/guestfs-actions.pod:1356 ../fish/guestfish-actions.pod:904
8480 msgid "You can use this command to test the connection through to the daemon."
8481 msgstr ""
8482
8483 #. type: textblock
8484 #: ../src/guestfs-actions.pod:1358
8485 msgid "See also C<guestfs_ping_daemon>."
8486 msgstr ""
8487
8488 #. type: textblock
8489 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:2100
8490 #: ../src/guestfs-actions.pod:6072
8491 msgid "(Added in 1.0.69)"
8492 msgstr ""
8493
8494 #. type: =head2
8495 #: ../src/guestfs-actions.pod:1365
8496 msgid "guestfs_egrep"
8497 msgstr ""
8498
8499 #. type: verbatim
8500 #: ../src/guestfs-actions.pod:1367
8501 #, no-wrap
8502 msgid ""
8503 " char **\n"
8504 " guestfs_egrep (guestfs_h *g,\n"
8505 "                const char *regex,\n"
8506 "                const char *path);\n"
8507 "\n"
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
8512 msgid ""
8513 "This calls the external C<egrep> program and returns the matching lines."
8514 msgstr ""
8515
8516 #. type: textblock
8517 #: ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1401
8518 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:1504
8519 #: ../src/guestfs-actions.pod:1523 ../src/guestfs-actions.pod:2230
8520 #: ../src/guestfs-actions.pod:2249 ../src/guestfs-actions.pod:2405
8521 #: ../src/guestfs-actions.pod:2418 ../src/guestfs-actions.pod:2433
8522 #: ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:2501
8523 #: ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:3662
8524 #: ../src/guestfs-actions.pod:3676 ../src/guestfs-actions.pod:3689
8525 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:4689
8526 #: ../src/guestfs-actions.pod:5572 ../src/guestfs-actions.pod:5621
8527 #: ../src/guestfs-actions.pod:6468 ../src/guestfs-actions.pod:6480
8528 #: ../src/guestfs-actions.pod:6493 ../src/guestfs-actions.pod:6506
8529 #: ../src/guestfs-actions.pod:6528 ../src/guestfs-actions.pod:6541
8530 #: ../src/guestfs-actions.pod:6554 ../src/guestfs-actions.pod:6567
8531 #: ../src/guestfs-actions.pod:7345 ../src/guestfs-actions.pod:7364
8532 #: ../src/guestfs-actions.pod:7449 ../src/guestfs-actions.pod:7468
8533 #: ../src/guestfs-actions.pod:7514 ../src/guestfs-actions.pod:7533
8534 msgid "(Added in 1.0.66)"
8535 msgstr ""
8536
8537 #. type: =head2
8538 #: ../src/guestfs-actions.pod:1384
8539 msgid "guestfs_egrepi"
8540 msgstr ""
8541
8542 #. type: verbatim
8543 #: ../src/guestfs-actions.pod:1386
8544 #, no-wrap
8545 msgid ""
8546 " char **\n"
8547 " guestfs_egrepi (guestfs_h *g,\n"
8548 "                 const char *regex,\n"
8549 "                 const char *path);\n"
8550 "\n"
8551 msgstr ""
8552
8553 #. type: textblock
8554 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
8555 msgid ""
8556 "This calls the external C<egrep -i> program and returns the matching lines."
8557 msgstr ""
8558
8559 #. type: =head2
8560 #: ../src/guestfs-actions.pod:1403
8561 msgid "guestfs_equal"
8562 msgstr ""
8563
8564 #. type: verbatim
8565 #: ../src/guestfs-actions.pod:1405
8566 #, no-wrap
8567 msgid ""
8568 " int\n"
8569 " guestfs_equal (guestfs_h *g,\n"
8570 "                const char *file1,\n"
8571 "                const char *file2);\n"
8572 "\n"
8573 msgstr ""
8574
8575 #. type: textblock
8576 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:932
8577 msgid ""
8578 "This compares the two files C<file1> and C<file2> and returns true if their "
8579 "content is exactly equal, or false otherwise."
8580 msgstr ""
8581
8582 #. type: textblock
8583 #: ../src/guestfs-actions.pod:1413 ../fish/guestfish-actions.pod:935
8584 msgid "The external L<cmp(1)> program is used for the comparison."
8585 msgstr ""
8586
8587 #. type: =head2
8588 #: ../src/guestfs-actions.pod:1419
8589 msgid "guestfs_exists"
8590 msgstr ""
8591
8592 #. type: verbatim
8593 #: ../src/guestfs-actions.pod:1421
8594 #, no-wrap
8595 msgid ""
8596 " int\n"
8597 " guestfs_exists (guestfs_h *g,\n"
8598 "                 const char *path);\n"
8599 "\n"
8600 msgstr ""
8601
8602 #. type: textblock
8603 #: ../src/guestfs-actions.pod:1425 ../fish/guestfish-actions.pod:941
8604 msgid ""
8605 "This returns C<true> if and only if there is a file, directory (or anything) "
8606 "with the given C<path> name."
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../src/guestfs-actions.pod:1428
8611 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
8612 msgstr ""
8613
8614 #. type: =head2
8615 #: ../src/guestfs-actions.pod:1434
8616 msgid "guestfs_fallocate"
8617 msgstr ""
8618
8619 #. type: verbatim
8620 #: ../src/guestfs-actions.pod:1436
8621 #, no-wrap
8622 msgid ""
8623 " int\n"
8624 " guestfs_fallocate (guestfs_h *g,\n"
8625 "                    const char *path,\n"
8626 "                    int len);\n"
8627 "\n"
8628 msgstr ""
8629
8630 #. type: textblock
8631 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1467
8632 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:969
8633 msgid ""
8634 "This command preallocates a file (containing zero bytes) named C<path> of "
8635 "size C<len> bytes.  If the file exists already, it is overwritten."
8636 msgstr ""
8637
8638 #. type: textblock
8639 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:954
8640 msgid ""
8641 "Do not confuse this with the guestfish-specific C<alloc> command which "
8642 "allocates a file in the host and attaches it as a device."
8643 msgstr ""
8644
8645 #. type: textblock
8646 #: ../src/guestfs-actions.pod:1451 ../fish/guestfish-actions.pod:958
8647 msgid ""
8648 "This function is deprecated.  In new code, use the C<fallocate64> call "
8649 "instead."
8650 msgstr ""
8651
8652 #. type: =head2
8653 #: ../src/guestfs-actions.pod:1460
8654 msgid "guestfs_fallocate64"
8655 msgstr ""
8656
8657 #. type: verbatim
8658 #: ../src/guestfs-actions.pod:1462
8659 #, no-wrap
8660 msgid ""
8661 " int\n"
8662 " guestfs_fallocate64 (guestfs_h *g,\n"
8663 "                      const char *path,\n"
8664 "                      int64_t len);\n"
8665 "\n"
8666 msgstr ""
8667
8668 #. type: textblock
8669 #: ../src/guestfs-actions.pod:1471
8670 msgid ""
8671 "Note that this call allocates disk blocks for the file.  To create a sparse "
8672 "file use C<guestfs_truncate_size> instead."
8673 msgstr ""
8674
8675 #. type: textblock
8676 #: ../src/guestfs-actions.pod:1474
8677 msgid ""
8678 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8679 "oversight it only allowed 30 bit lengths to be specified, effectively "
8680 "limiting the maximum size of files created through that call to 1GB."
8681 msgstr ""
8682
8683 #. type: textblock
8684 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:981
8685 msgid ""
8686 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8687 "commands which create a file in the host and attach it as a device."
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../src/guestfs-actions.pod:1485
8692 msgid "(Added in 1.3.17)"
8693 msgstr ""
8694
8695 #. type: =head2
8696 #: ../src/guestfs-actions.pod:1487
8697 msgid "guestfs_fgrep"
8698 msgstr ""
8699
8700 #. type: verbatim
8701 #: ../src/guestfs-actions.pod:1489
8702 #, no-wrap
8703 msgid ""
8704 " char **\n"
8705 " guestfs_fgrep (guestfs_h *g,\n"
8706 "                const char *pattern,\n"
8707 "                const char *path);\n"
8708 "\n"
8709 msgstr ""
8710
8711 #. type: textblock
8712 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
8713 msgid ""
8714 "This calls the external C<fgrep> program and returns the matching lines."
8715 msgstr ""
8716
8717 #. type: =head2
8718 #: ../src/guestfs-actions.pod:1506
8719 msgid "guestfs_fgrepi"
8720 msgstr ""
8721
8722 #. type: verbatim
8723 #: ../src/guestfs-actions.pod:1508
8724 #, no-wrap
8725 msgid ""
8726 " char **\n"
8727 " guestfs_fgrepi (guestfs_h *g,\n"
8728 "                 const char *pattern,\n"
8729 "                 const char *path);\n"
8730 "\n"
8731 msgstr ""
8732
8733 #. type: textblock
8734 #: ../src/guestfs-actions.pod:1513 ../fish/guestfish-actions.pod:999
8735 msgid ""
8736 "This calls the external C<fgrep -i> program and returns the matching lines."
8737 msgstr ""
8738
8739 #. type: =head2
8740 #: ../src/guestfs-actions.pod:1525
8741 msgid "guestfs_file"
8742 msgstr ""
8743
8744 #. type: verbatim
8745 #: ../src/guestfs-actions.pod:1527
8746 #, no-wrap
8747 msgid ""
8748 " char *\n"
8749 " guestfs_file (guestfs_h *g,\n"
8750 "               const char *path);\n"
8751 "\n"
8752 msgstr ""
8753
8754 #. type: textblock
8755 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1009
8756 msgid ""
8757 "This call uses the standard L<file(1)> command to determine the type or "
8758 "contents of the file."
8759 msgstr ""
8760
8761 #. type: textblock
8762 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1012
8763 msgid ""
8764 "This call will also transparently look inside various types of compressed "
8765 "file."
8766 msgstr ""
8767
8768 #. type: textblock
8769 #: ../src/guestfs-actions.pod:1537 ../fish/guestfish-actions.pod:1015
8770 msgid ""
8771 "The exact command which runs is C<file -zb path>.  Note in particular that "
8772 "the filename is not prepended to the output (the I<-b> option)."
8773 msgstr ""
8774
8775 #. type: textblock
8776 #: ../src/guestfs-actions.pod:1541
8777 msgid ""
8778 "This command can also be used on C</dev/> devices (and partitions, LV "
8779 "names).  You can for example use this to determine if a device contains a "
8780 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
8781 msgstr ""
8782
8783 #. type: textblock
8784 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1024
8785 msgid ""
8786 "If the C<path> does not begin with C</dev/> then this command only works for "
8787 "the content of regular files.  For other file types (directory, symbolic "
8788 "link etc) it will just return the string C<directory> etc."
8789 msgstr ""
8790
8791 #. type: =head2
8792 #: ../src/guestfs-actions.pod:1556
8793 msgid "guestfs_file_architecture"
8794 msgstr ""
8795
8796 #. type: verbatim
8797 #: ../src/guestfs-actions.pod:1558
8798 #, no-wrap
8799 msgid ""
8800 " char *\n"
8801 " guestfs_file_architecture (guestfs_h *g,\n"
8802 "                            const char *filename);\n"
8803 "\n"
8804 msgstr ""
8805
8806 #. type: textblock
8807 #: ../src/guestfs-actions.pod:1562 ../fish/guestfish-actions.pod:1033
8808 msgid ""
8809 "This detects the architecture of the binary C<filename>, and returns it if "
8810 "known."
8811 msgstr ""
8812
8813 #. type: textblock
8814 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1036
8815 msgid "Currently defined architectures are:"
8816 msgstr ""
8817
8818 #. type: =item
8819 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1040
8820 msgid "\"i386\""
8821 msgstr "\"i386\""
8822
8823 #. type: textblock
8824 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1042
8825 msgid ""
8826 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8827 "irrespective of the precise processor requirements of the binary."
8828 msgstr ""
8829
8830 #. type: =item
8831 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1045
8832 msgid "\"x86_64\""
8833 msgstr "\"x86_64\""
8834
8835 #. type: textblock
8836 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1047
8837 msgid "64 bit x86-64."
8838 msgstr ""
8839
8840 #. type: =item
8841 #: ../src/guestfs-actions.pod:1578 ../fish/guestfish-actions.pod:1049
8842 msgid "\"sparc\""
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1051
8847 msgid "32 bit SPARC."
8848 msgstr ""
8849
8850 #. type: =item
8851 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:1053
8852 msgid "\"sparc64\""
8853 msgstr ""
8854
8855 #. type: textblock
8856 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1055
8857 msgid "64 bit SPARC V9 and above."
8858 msgstr ""
8859
8860 #. type: =item
8861 #: ../src/guestfs-actions.pod:1586 ../fish/guestfish-actions.pod:1057
8862 msgid "\"ia64\""
8863 msgstr "\"ia64\""
8864
8865 #. type: textblock
8866 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1059
8867 msgid "Intel Itanium."
8868 msgstr "Intel Itanium."
8869
8870 #. type: =item
8871 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1061
8872 msgid "\"ppc\""
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1063
8877 msgid "32 bit Power PC."
8878 msgstr ""
8879
8880 #. type: =item
8881 #: ../src/guestfs-actions.pod:1594 ../fish/guestfish-actions.pod:1065
8882 msgid "\"ppc64\""
8883 msgstr ""
8884
8885 #. type: textblock
8886 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1067
8887 msgid "64 bit Power PC."
8888 msgstr ""
8889
8890 #. type: textblock
8891 #: ../src/guestfs-actions.pod:1600 ../fish/guestfish-actions.pod:1071
8892 msgid "Libguestfs may return other architecture strings in future."
8893 msgstr ""
8894
8895 #. type: textblock
8896 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1073
8897 msgid "The function works on at least the following types of files:"
8898 msgstr ""
8899
8900 #. type: textblock
8901 #: ../src/guestfs-actions.pod:1608 ../fish/guestfish-actions.pod:1079
8902 msgid "many types of Un*x and Linux binary"
8903 msgstr ""
8904
8905 #. type: textblock
8906 #: ../src/guestfs-actions.pod:1612 ../fish/guestfish-actions.pod:1083
8907 msgid "many types of Un*x and Linux shared library"
8908 msgstr ""
8909
8910 #. type: textblock
8911 #: ../src/guestfs-actions.pod:1616 ../fish/guestfish-actions.pod:1087
8912 msgid "Windows Win32 and Win64 binaries"
8913 msgstr ""
8914
8915 #. type: textblock
8916 #: ../src/guestfs-actions.pod:1620 ../fish/guestfish-actions.pod:1091
8917 msgid "Windows Win32 and Win64 DLLs"
8918 msgstr ""
8919
8920 #. type: textblock
8921 #: ../src/guestfs-actions.pod:1622 ../fish/guestfish-actions.pod:1093
8922 msgid "Win32 binaries and DLLs return C<i386>."
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../src/guestfs-actions.pod:1624 ../fish/guestfish-actions.pod:1095
8927 msgid "Win64 binaries and DLLs return C<x86_64>."
8928 msgstr ""
8929
8930 #. type: textblock
8931 #: ../src/guestfs-actions.pod:1628 ../fish/guestfish-actions.pod:1099
8932 msgid "Linux kernel modules"
8933 msgstr ""
8934
8935 #. type: textblock
8936 #: ../src/guestfs-actions.pod:1632 ../fish/guestfish-actions.pod:1103
8937 msgid "Linux new-style initrd images"
8938 msgstr ""
8939
8940 #. type: textblock
8941 #: ../src/guestfs-actions.pod:1636 ../fish/guestfish-actions.pod:1107
8942 msgid "some non-x86 Linux vmlinuz kernels"
8943 msgstr ""
8944
8945 #. type: textblock
8946 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1111
8947 msgid "What it can't do currently:"
8948 msgstr ""
8949
8950 #. type: textblock
8951 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1117
8952 msgid "static libraries (libfoo.a)"
8953 msgstr ""
8954
8955 #. type: textblock
8956 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1121
8957 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8958 msgstr ""
8959
8960 #. type: textblock
8961 #: ../src/guestfs-actions.pod:1654 ../fish/guestfish-actions.pod:1125
8962 msgid "x86 Linux vmlinuz kernels"
8963 msgstr ""
8964
8965 #. type: textblock
8966 #: ../src/guestfs-actions.pod:1656 ../fish/guestfish-actions.pod:1127
8967 msgid ""
8968 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8969 "compressed code, and are horribly hard to unpack.  If you want to find the "
8970 "architecture of a kernel, use the architecture of the associated initrd or "
8971 "kernel module(s) instead."
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1829
8976 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:2537
8977 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2700
8978 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:2809
8979 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:2936
8980 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3280
8981 #: ../src/guestfs-actions.pod:3412
8982 msgid "(Added in 1.5.3)"
8983 msgstr ""
8984
8985 #. type: =head2
8986 #: ../src/guestfs-actions.pod:1668
8987 msgid "guestfs_filesize"
8988 msgstr ""
8989
8990 #. type: verbatim
8991 #: ../src/guestfs-actions.pod:1670
8992 #, no-wrap
8993 msgid ""
8994 " int64_t\n"
8995 " guestfs_filesize (guestfs_h *g,\n"
8996 "                   const char *file);\n"
8997 "\n"
8998 msgstr ""
8999
9000 #. type: textblock
9001 #: ../src/guestfs-actions.pod:1674 ../fish/guestfish-actions.pod:1138
9002 msgid "This command returns the size of C<file> in bytes."
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../src/guestfs-actions.pod:1676
9007 msgid ""
9008 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9009 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9010 "devices, use C<guestfs_blockdev_getsize64>."
9011 msgstr ""
9012
9013 #. type: textblock
9014 #: ../src/guestfs-actions.pod:1682
9015 msgid "(Added in 1.0.82)"
9016 msgstr ""
9017
9018 #. type: =head2
9019 #: ../src/guestfs-actions.pod:1684
9020 msgid "guestfs_fill"
9021 msgstr ""
9022
9023 #. type: verbatim
9024 #: ../src/guestfs-actions.pod:1686
9025 #, no-wrap
9026 msgid ""
9027 " int\n"
9028 " guestfs_fill (guestfs_h *g,\n"
9029 "               int c,\n"
9030 "               int len,\n"
9031 "               const char *path);\n"
9032 "\n"
9033 msgstr ""
9034
9035 #. type: textblock
9036 #: ../src/guestfs-actions.pod:1692 ../fish/guestfish-actions.pod:1148
9037 msgid ""
9038 "This command creates a new file called C<path>.  The initial content of the "
9039 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9040 "[0..255]>."
9041 msgstr ""
9042
9043 #. type: textblock
9044 #: ../src/guestfs-actions.pod:1696
9045 msgid ""
9046 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9047 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9048 "bytes use C<guestfs_fill_pattern>."
9049 msgstr ""
9050
9051 #. type: textblock
9052 #: ../src/guestfs-actions.pod:1708
9053 msgid "(Added in 1.0.79)"
9054 msgstr ""
9055
9056 #. type: =head2
9057 #: ../src/guestfs-actions.pod:1710
9058 msgid "guestfs_fill_pattern"
9059 msgstr ""
9060
9061 #. type: verbatim
9062 #: ../src/guestfs-actions.pod:1712
9063 #, no-wrap
9064 msgid ""
9065 " int\n"
9066 " guestfs_fill_pattern (guestfs_h *g,\n"
9067 "                       const char *pattern,\n"
9068 "                       int len,\n"
9069 "                       const char *path);\n"
9070 "\n"
9071 msgstr ""
9072
9073 #. type: textblock
9074 #: ../src/guestfs-actions.pod:1718
9075 msgid ""
9076 "This function is like C<guestfs_fill> except that it creates a new file of "
9077 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9078 "pattern is truncated if necessary to ensure the length of the file is "
9079 "exactly C<len> bytes."
9080 msgstr ""
9081
9082 #. type: textblock
9083 #: ../src/guestfs-actions.pod:1730
9084 msgid "(Added in 1.3.12)"
9085 msgstr ""
9086
9087 #. type: =head2
9088 #: ../src/guestfs-actions.pod:1732
9089 msgid "guestfs_find"
9090 msgstr ""
9091
9092 #. type: verbatim
9093 #: ../src/guestfs-actions.pod:1734
9094 #, no-wrap
9095 msgid ""
9096 " char **\n"
9097 " guestfs_find (guestfs_h *g,\n"
9098 "               const char *directory);\n"
9099 "\n"
9100 msgstr ""
9101
9102 #. type: textblock
9103 #: ../src/guestfs-actions.pod:1738 ../fish/guestfish-actions.pod:1170
9104 msgid ""
9105 "This command lists out all files and directories, recursively, starting at "
9106 "C<directory>.  It is essentially equivalent to running the shell command "
9107 "C<find directory -print> but some post-processing happens on the output, "
9108 "described below."
9109 msgstr ""
9110
9111 #. type: textblock
9112 #: ../src/guestfs-actions.pod:1743 ../fish/guestfish-actions.pod:1175
9113 msgid ""
9114 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9115 "structure was:"
9116 msgstr ""
9117
9118 #. type: verbatim
9119 #: ../src/guestfs-actions.pod:1746 ../fish/guestfish-actions.pod:1178
9120 #, no-wrap
9121 msgid ""
9122 " /tmp/a\n"
9123 " /tmp/b\n"
9124 " /tmp/c/d\n"
9125 "\n"
9126 msgstr ""
9127
9128 #. type: textblock
9129 #: ../src/guestfs-actions.pod:1750
9130 msgid ""
9131 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9132 msgstr ""
9133
9134 #. type: verbatim
9135 #: ../src/guestfs-actions.pod:1753 ../fish/guestfish-actions.pod:1185
9136 #, no-wrap
9137 msgid ""
9138 " a\n"
9139 " b\n"
9140 " c\n"
9141 " c/d\n"
9142 "\n"
9143 msgstr ""
9144
9145 #. type: textblock
9146 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1190
9147 msgid "If C<directory> is not a directory, then this command returns an error."
9148 msgstr ""
9149
9150 #. type: textblock
9151 #: ../src/guestfs-actions.pod:1761 ../fish/guestfish-actions.pod:1193
9152 msgid "The returned list is sorted."
9153 msgstr ""
9154
9155 #. type: textblock
9156 #: ../src/guestfs-actions.pod:1763
9157 msgid "See also C<guestfs_find0>."
9158 msgstr ""
9159
9160 #. type: textblock
9161 #: ../src/guestfs-actions.pod:1772 ../src/guestfs-actions.pod:4106
9162 #: ../src/guestfs-actions.pod:5656
9163 msgid "(Added in 1.0.27)"
9164 msgstr ""
9165
9166 #. type: =head2
9167 #: ../src/guestfs-actions.pod:1774
9168 msgid "guestfs_find0"
9169 msgstr ""
9170
9171 #. type: verbatim
9172 #: ../src/guestfs-actions.pod:1776
9173 #, no-wrap
9174 msgid ""
9175 " int\n"
9176 " guestfs_find0 (guestfs_h *g,\n"
9177 "                const char *directory,\n"
9178 "                const char *files);\n"
9179 "\n"
9180 msgstr ""
9181
9182 #. type: textblock
9183 #: ../src/guestfs-actions.pod:1781 ../fish/guestfish-actions.pod:1204
9184 msgid ""
9185 "This command lists out all files and directories, recursively, starting at "
9186 "C<directory>, placing the resulting list in the external file called "
9187 "C<files>."
9188 msgstr ""
9189
9190 #. type: textblock
9191 #: ../src/guestfs-actions.pod:1785
9192 msgid ""
9193 "This command works the same way as C<guestfs_find> with the following "
9194 "exceptions:"
9195 msgstr ""
9196
9197 #. type: textblock
9198 #: ../src/guestfs-actions.pod:1792 ../fish/guestfish-actions.pod:1215
9199 msgid "The resulting list is written to an external file."
9200 msgstr ""
9201
9202 #. type: textblock
9203 #: ../src/guestfs-actions.pod:1796 ../fish/guestfish-actions.pod:1219
9204 msgid ""
9205 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9206 "L<find(1)> option I<-print0>."
9207 msgstr ""
9208
9209 #. type: textblock
9210 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1224
9211 msgid "This command is not limited in the number of names that it can return."
9212 msgstr ""
9213
9214 #. type: textblock
9215 #: ../src/guestfs-actions.pod:1806 ../fish/guestfish-actions.pod:1229
9216 msgid "The result list is not sorted."
9217 msgstr ""
9218
9219 #. type: textblock
9220 #: ../src/guestfs-actions.pod:1812
9221 msgid "(Added in 1.0.74)"
9222 msgstr ""
9223
9224 #. type: =head2
9225 #: ../src/guestfs-actions.pod:1814
9226 msgid "guestfs_findfs_label"
9227 msgstr ""
9228
9229 #. type: verbatim
9230 #: ../src/guestfs-actions.pod:1816
9231 #, no-wrap
9232 msgid ""
9233 " char *\n"
9234 " guestfs_findfs_label (guestfs_h *g,\n"
9235 "                       const char *label);\n"
9236 "\n"
9237 msgstr ""
9238
9239 #. type: textblock
9240 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
9241 msgid ""
9242 "This command searches the filesystems and returns the one which has the "
9243 "given label.  An error is returned if no such filesystem can be found."
9244 msgstr ""
9245
9246 #. type: textblock
9247 #: ../src/guestfs-actions.pod:1824
9248 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9249 msgstr ""
9250
9251 #. type: =head2
9252 #: ../src/guestfs-actions.pod:1831
9253 msgid "guestfs_findfs_uuid"
9254 msgstr ""
9255
9256 #. type: verbatim
9257 #: ../src/guestfs-actions.pod:1833
9258 #, no-wrap
9259 msgid ""
9260 " char *\n"
9261 " guestfs_findfs_uuid (guestfs_h *g,\n"
9262 "                      const char *uuid);\n"
9263 "\n"
9264 msgstr ""
9265
9266 #. type: textblock
9267 #: ../src/guestfs-actions.pod:1837 ../fish/guestfish-actions.pod:1249
9268 msgid ""
9269 "This command searches the filesystems and returns the one which has the "
9270 "given UUID.  An error is returned if no such filesystem can be found."
9271 msgstr ""
9272
9273 #. type: textblock
9274 #: ../src/guestfs-actions.pod:1841
9275 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9276 msgstr ""
9277
9278 #. type: =head2
9279 #: ../src/guestfs-actions.pod:1848
9280 msgid "guestfs_fsck"
9281 msgstr ""
9282
9283 #. type: verbatim
9284 #: ../src/guestfs-actions.pod:1850
9285 #, no-wrap
9286 msgid ""
9287 " int\n"
9288 " guestfs_fsck (guestfs_h *g,\n"
9289 "               const char *fstype,\n"
9290 "               const char *device);\n"
9291 "\n"
9292 msgstr ""
9293
9294 #. type: textblock
9295 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:1259
9296 msgid ""
9297 "This runs the filesystem checker (fsck) on C<device> which should have "
9298 "filesystem type C<fstype>."
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1262
9303 msgid ""
9304 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9305 "codes from C<fsck>."
9306 msgstr ""
9307
9308 #. type: textblock
9309 #: ../src/guestfs-actions.pod:1867 ../fish/guestfish-actions.pod:1271
9310 msgid "Multiple status codes can be summed together."
9311 msgstr ""
9312
9313 #. type: textblock
9314 #: ../src/guestfs-actions.pod:1871 ../fish/guestfish-actions.pod:1275
9315 msgid ""
9316 "A non-zero return code can mean \"success\", for example if errors have been "
9317 "corrected on the filesystem."
9318 msgstr ""
9319
9320 #. type: textblock
9321 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1280
9322 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9323 msgstr ""
9324
9325 #. type: textblock
9326 #: ../src/guestfs-actions.pod:1881 ../fish/guestfish-actions.pod:1285
9327 msgid ""
9328 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:7387
9333 msgid "(Added in 1.0.16)"
9334 msgstr ""
9335
9336 #. type: =head2
9337 #: ../src/guestfs-actions.pod:1887
9338 msgid "guestfs_get_append"
9339 msgstr ""
9340
9341 #. type: verbatim
9342 #: ../src/guestfs-actions.pod:1889
9343 #, no-wrap
9344 msgid ""
9345 " const char *\n"
9346 " guestfs_get_append (guestfs_h *g);\n"
9347 "\n"
9348 msgstr ""
9349
9350 #. type: textblock
9351 #: ../src/guestfs-actions.pod:1892 ../fish/guestfish-actions.pod:1291
9352 msgid ""
9353 "Return the additional kernel options which are added to the guest kernel "
9354 "command line."
9355 msgstr ""
9356
9357 #. type: textblock
9358 #: ../src/guestfs-actions.pod:1895 ../fish/guestfish-actions.pod:1294
9359 msgid "If C<NULL> then no options are added."
9360 msgstr ""
9361
9362 #. type: textblock
9363 #: ../src/guestfs-actions.pod:1897
9364 msgid ""
9365 "This function returns a string which may be NULL.  There is no way to return "
9366 "an error from this function.  The string is owned by the guest handle and "
9367 "must I<not> be freed."
9368 msgstr ""
9369
9370 #. type: textblock
9371 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:5334
9372 #: ../src/guestfs-actions.pod:5814 ../src/guestfs-actions.pod:6235
9373 #: ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6270
9374 #: ../src/guestfs-actions.pod:6294 ../src/guestfs-actions.pod:7051
9375 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7430
9376 msgid "(Added in 1.0.26)"
9377 msgstr ""
9378
9379 #. type: =head2
9380 #: ../src/guestfs-actions.pod:1903
9381 msgid "guestfs_get_attach_method"
9382 msgstr ""
9383
9384 #. type: verbatim
9385 #: ../src/guestfs-actions.pod:1905
9386 #, no-wrap
9387 msgid ""
9388 " char *\n"
9389 " guestfs_get_attach_method (guestfs_h *g);\n"
9390 "\n"
9391 msgstr ""
9392
9393 #. type: textblock
9394 #: ../src/guestfs-actions.pod:1908
9395 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
9396 msgstr ""
9397
9398 #. type: =head2
9399 #: ../src/guestfs-actions.pod:1913
9400 msgid "guestfs_get_autosync"
9401 msgstr ""
9402
9403 #. type: verbatim
9404 #: ../src/guestfs-actions.pod:1915
9405 #, no-wrap
9406 msgid ""
9407 " int\n"
9408 " guestfs_get_autosync (guestfs_h *g);\n"
9409 "\n"
9410 msgstr ""
9411
9412 #. type: textblock
9413 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1306
9414 msgid "Get the autosync flag."
9415 msgstr ""
9416
9417 #. type: =head2
9418 #: ../src/guestfs-actions.pod:1924
9419 msgid "guestfs_get_direct"
9420 msgstr ""
9421
9422 #. type: verbatim
9423 #: ../src/guestfs-actions.pod:1926
9424 #, no-wrap
9425 msgid ""
9426 " int\n"
9427 " guestfs_get_direct (guestfs_h *g);\n"
9428 "\n"
9429 msgstr ""
9430
9431 #. type: textblock
9432 #: ../src/guestfs-actions.pod:1929 ../fish/guestfish-actions.pod:1312
9433 msgid "Return the direct appliance mode flag."
9434 msgstr ""
9435
9436 #. type: textblock
9437 #: ../src/guestfs-actions.pod:1933 ../src/guestfs-actions.pod:5883
9438 msgid "(Added in 1.0.72)"
9439 msgstr ""
9440
9441 #. type: =head2
9442 #: ../src/guestfs-actions.pod:1935
9443 msgid "guestfs_get_e2label"
9444 msgstr ""
9445
9446 #. type: verbatim
9447 #: ../src/guestfs-actions.pod:1937
9448 #, no-wrap
9449 msgid ""
9450 " char *\n"
9451 " guestfs_get_e2label (guestfs_h *g,\n"
9452 "                      const char *device);\n"
9453 "\n"
9454 msgstr ""
9455
9456 #. type: textblock
9457 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1318
9458 msgid ""
9459 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9460 msgstr ""
9461
9462 #. type: textblock
9463 #: ../src/guestfs-actions.pod:1947 ../fish/guestfish-actions.pod:1321
9464 msgid ""
9465 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
9466 msgstr ""
9467
9468 #. type: textblock
9469 #: ../src/guestfs-actions.pod:1954 ../src/guestfs-actions.pod:1975
9470 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5920
9471 msgid "(Added in 1.0.15)"
9472 msgstr ""
9473
9474 #. type: =head2
9475 #: ../src/guestfs-actions.pod:1956
9476 msgid "guestfs_get_e2uuid"
9477 msgstr ""
9478
9479 #. type: verbatim
9480 #: ../src/guestfs-actions.pod:1958
9481 #, no-wrap
9482 msgid ""
9483 " char *\n"
9484 " guestfs_get_e2uuid (guestfs_h *g,\n"
9485 "                     const char *device);\n"
9486 "\n"
9487 msgstr ""
9488
9489 #. type: textblock
9490 #: ../src/guestfs-actions.pod:1962 ../fish/guestfish-actions.pod:1332
9491 msgid ""
9492 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../src/guestfs-actions.pod:1968 ../fish/guestfish-actions.pod:1335
9497 msgid ""
9498 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9499 msgstr ""
9500
9501 #. type: =head2
9502 #: ../src/guestfs-actions.pod:1977
9503 msgid "guestfs_get_memsize"
9504 msgstr ""
9505
9506 #. type: verbatim
9507 #: ../src/guestfs-actions.pod:1979
9508 #, no-wrap
9509 msgid ""
9510 " int\n"
9511 " guestfs_get_memsize (guestfs_h *g);\n"
9512 "\n"
9513 msgstr ""
9514
9515 #. type: textblock
9516 #: ../src/guestfs-actions.pod:1982 ../fish/guestfish-actions.pod:1346
9517 msgid ""
9518 "This gets the memory size in megabytes allocated to the qemu subprocess."
9519 msgstr ""
9520
9521 #. type: textblock
9522 #: ../src/guestfs-actions.pod:1985
9523 msgid ""
9524 "If C<guestfs_set_memsize> was not called on this handle, and if "
9525 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9526 "value for memsize."
9527 msgstr ""
9528
9529 #. type: textblock
9530 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2070
9531 #: ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6043
9532 #: ../fish/guestfish-actions.pod:1353 ../fish/guestfish-actions.pod:1404
9533 #: ../fish/guestfish-actions.pod:4005 ../fish/guestfish-actions.pod:4092
9534 msgid ""
9535 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9536 msgstr ""
9537
9538 #. type: textblock
9539 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:4397
9540 #: ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4613
9541 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4644
9542 #: ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4674
9543 #: ../src/guestfs-actions.pod:5559 ../src/guestfs-actions.pod:5941
9544 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6817
9545 msgid "(Added in 1.0.55)"
9546 msgstr ""
9547
9548 #. type: =head2
9549 #: ../src/guestfs-actions.pod:1996
9550 msgid "guestfs_get_network"
9551 msgstr ""
9552
9553 #. type: verbatim
9554 #: ../src/guestfs-actions.pod:1998
9555 #, no-wrap
9556 msgid ""
9557 " int\n"
9558 " guestfs_get_network (guestfs_h *g);\n"
9559 "\n"
9560 msgstr ""
9561
9562 #. type: textblock
9563 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1360
9564 msgid "This returns the enable network flag."
9565 msgstr ""
9566
9567 #. type: textblock
9568 #: ../src/guestfs-actions.pod:2005 ../src/guestfs-actions.pod:5960
9569 msgid "(Added in 1.5.4)"
9570 msgstr ""
9571
9572 #. type: =head2
9573 #: ../src/guestfs-actions.pod:2007
9574 msgid "guestfs_get_path"
9575 msgstr ""
9576
9577 #. type: verbatim
9578 #: ../src/guestfs-actions.pod:2009
9579 #, no-wrap
9580 msgid ""
9581 " const char *\n"
9582 " guestfs_get_path (guestfs_h *g);\n"
9583 "\n"
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1366
9588 msgid "Return the current search path."
9589 msgstr ""
9590
9591 #. type: textblock
9592 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1368
9593 msgid ""
9594 "This is always non-NULL.  If it wasn't set already, then this will return "
9595 "the default path."
9596 msgstr ""
9597
9598 #. type: textblock
9599 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2046
9600 msgid ""
9601 "This function returns a string, or NULL on error.  The string is owned by "
9602 "the guest handle and must I<not> be freed."
9603 msgstr ""
9604
9605 #. type: =head2
9606 #: ../src/guestfs-actions.pod:2022
9607 msgid "guestfs_get_pid"
9608 msgstr ""
9609
9610 #. type: verbatim
9611 #: ../src/guestfs-actions.pod:2024
9612 #, no-wrap
9613 msgid ""
9614 " int\n"
9615 " guestfs_get_pid (guestfs_h *g);\n"
9616 "\n"
9617 msgstr ""
9618
9619 #. type: textblock
9620 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1377
9621 msgid ""
9622 "Return the process ID of the qemu subprocess.  If there is no qemu "
9623 "subprocess, then this will return an error."
9624 msgstr ""
9625
9626 #. type: textblock
9627 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1380
9628 msgid "This is an internal call used for debugging and testing."
9629 msgstr ""
9630
9631 #. type: textblock
9632 #: ../src/guestfs-actions.pod:2034
9633 msgid "(Added in 1.0.56)"
9634 msgstr ""
9635
9636 #. type: =head2
9637 #: ../src/guestfs-actions.pod:2036
9638 msgid "guestfs_get_qemu"
9639 msgstr ""
9640
9641 #. type: verbatim
9642 #: ../src/guestfs-actions.pod:2038
9643 #, no-wrap
9644 msgid ""
9645 " const char *\n"
9646 " guestfs_get_qemu (guestfs_h *g);\n"
9647 "\n"
9648 msgstr ""
9649
9650 #. type: textblock
9651 #: ../src/guestfs-actions.pod:2041 ../fish/guestfish-actions.pod:1386
9652 msgid "Return the current qemu binary."
9653 msgstr ""
9654
9655 #. type: textblock
9656 #: ../src/guestfs-actions.pod:2043 ../fish/guestfish-actions.pod:1388
9657 msgid ""
9658 "This is always non-NULL.  If it wasn't set already, then this will return "
9659 "the default qemu binary name."
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../src/guestfs-actions.pod:2049 ../src/guestfs-actions.pod:6005
9664 msgid "(Added in 1.0.6)"
9665 msgstr ""
9666
9667 #. type: =head2
9668 #: ../src/guestfs-actions.pod:2051
9669 msgid "guestfs_get_recovery_proc"
9670 msgstr ""
9671
9672 #. type: verbatim
9673 #: ../src/guestfs-actions.pod:2053
9674 #, no-wrap
9675 msgid ""
9676 " int\n"
9677 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9678 "\n"
9679 msgstr ""
9680
9681 #. type: textblock
9682 #: ../src/guestfs-actions.pod:2056 ../fish/guestfish-actions.pod:1395
9683 msgid "Return the recovery process enabled flag."
9684 msgstr ""
9685
9686 #. type: textblock
9687 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3507
9688 #: ../src/guestfs-actions.pod:3804 ../src/guestfs-actions.pod:4204
9689 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:5264
9690 #: ../src/guestfs-actions.pod:5607 ../src/guestfs-actions.pod:6029
9691 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6740
9692 #: ../src/guestfs-actions.pod:6932
9693 msgid "(Added in 1.0.77)"
9694 msgstr ""
9695
9696 #. type: =head2
9697 #: ../src/guestfs-actions.pod:2062
9698 msgid "guestfs_get_selinux"
9699 msgstr ""
9700
9701 #. type: verbatim
9702 #: ../src/guestfs-actions.pod:2064
9703 #, no-wrap
9704 msgid ""
9705 " int\n"
9706 " guestfs_get_selinux (guestfs_h *g);\n"
9707 "\n"
9708 msgstr ""
9709
9710 #. type: textblock
9711 #: ../src/guestfs-actions.pod:2067
9712 msgid ""
9713 "This returns the current setting of the selinux flag which is passed to the "
9714 "appliance at boot time.  See C<guestfs_set_selinux>."
9715 msgstr ""
9716
9717 #. type: textblock
9718 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2138
9719 #: ../src/guestfs-actions.pod:6048 ../src/guestfs-actions.pod:6106
9720 msgid "(Added in 1.0.67)"
9721 msgstr ""
9722
9723 #. type: =head2
9724 #: ../src/guestfs-actions.pod:2077
9725 msgid "guestfs_get_state"
9726 msgstr ""
9727
9728 #. type: verbatim
9729 #: ../src/guestfs-actions.pod:2079
9730 #, no-wrap
9731 msgid ""
9732 " int\n"
9733 " guestfs_get_state (guestfs_h *g);\n"
9734 "\n"
9735 msgstr ""
9736
9737 #. type: textblock
9738 #: ../src/guestfs-actions.pod:2082 ../fish/guestfish-actions.pod:1411
9739 msgid ""
9740 "This returns the current state as an opaque integer.  This is only useful "
9741 "for printing debug and internal error messages."
9742 msgstr ""
9743
9744 #. type: textblock
9745 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:3305
9746 #: ../src/guestfs-actions.pod:3334 ../src/guestfs-actions.pod:3395
9747 #: ../src/guestfs-actions.pod:3422 ../fish/guestfish-actions.pod:1414
9748 #: ../fish/guestfish-actions.pod:2328 ../fish/guestfish-actions.pod:2346
9749 #: ../fish/guestfish-actions.pod:2384 ../fish/guestfish-actions.pod:2400
9750 msgid "For more information on states, see L<guestfs(3)>."
9751 msgstr ""
9752
9753 #. type: =head2
9754 #: ../src/guestfs-actions.pod:2091
9755 msgid "guestfs_get_trace"
9756 msgstr ""
9757
9758 #. type: verbatim
9759 #: ../src/guestfs-actions.pod:2093
9760 #, no-wrap
9761 msgid ""
9762 " int\n"
9763 " guestfs_get_trace (guestfs_h *g);\n"
9764 "\n"
9765 msgstr ""
9766
9767 #. type: textblock
9768 #: ../src/guestfs-actions.pod:2096 ../fish/guestfish-actions.pod:1420
9769 msgid "Return the command trace flag."
9770 msgstr ""
9771
9772 #. type: =head2
9773 #: ../src/guestfs-actions.pod:2102
9774 msgid "guestfs_get_umask"
9775 msgstr ""
9776
9777 #. type: verbatim
9778 #: ../src/guestfs-actions.pod:2104
9779 #, no-wrap
9780 msgid ""
9781 " int\n"
9782 " guestfs_get_umask (guestfs_h *g);\n"
9783 "\n"
9784 msgstr ""
9785
9786 #. type: textblock
9787 #: ../src/guestfs-actions.pod:2107
9788 msgid ""
9789 "Return the current umask.  By default the umask is C<022> unless it has been "
9790 "set by calling C<guestfs_umask>."
9791 msgstr ""
9792
9793 #. type: =head2
9794 #: ../src/guestfs-actions.pod:2114
9795 msgid "guestfs_get_verbose"
9796 msgstr ""
9797
9798 #. type: verbatim
9799 #: ../src/guestfs-actions.pod:2116
9800 #, no-wrap
9801 msgid ""
9802 " int\n"
9803 " guestfs_get_verbose (guestfs_h *g);\n"
9804 "\n"
9805 msgstr ""
9806
9807 #. type: textblock
9808 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1433
9809 msgid "This returns the verbose messages flag."
9810 msgstr ""
9811
9812 #. type: =head2
9813 #: ../src/guestfs-actions.pod:2125
9814 msgid "guestfs_getcon"
9815 msgstr ""
9816
9817 #. type: verbatim
9818 #: ../src/guestfs-actions.pod:2127
9819 #, no-wrap
9820 msgid ""
9821 " char *\n"
9822 " guestfs_getcon (guestfs_h *g);\n"
9823 "\n"
9824 msgstr ""
9825
9826 #. type: textblock
9827 #: ../src/guestfs-actions.pod:2130 ../fish/guestfish-actions.pod:1439
9828 msgid "This gets the SELinux security context of the daemon."
9829 msgstr ""
9830
9831 #. type: textblock
9832 #: ../src/guestfs-actions.pod:2132
9833 msgid ""
9834 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
9835 msgstr ""
9836
9837 #. type: =head2
9838 #: ../src/guestfs-actions.pod:2140
9839 msgid "guestfs_getxattr"
9840 msgstr ""
9841
9842 #. type: verbatim
9843 #: ../src/guestfs-actions.pod:2142
9844 #, no-wrap
9845 msgid ""
9846 " char *\n"
9847 " guestfs_getxattr (guestfs_h *g,\n"
9848 "                   const char *path,\n"
9849 "                   const char *name,\n"
9850 "                   size_t *size_r);\n"
9851 "\n"
9852 msgstr ""
9853
9854 #. type: textblock
9855 #: ../src/guestfs-actions.pod:2148
9856 msgid ""
9857 "Get a single extended attribute from file C<path> named C<name>.  This call "
9858 "follows symlinks.  If you want to lookup an extended attribute for the "
9859 "symlink itself, use C<guestfs_lgetxattr>."
9860 msgstr ""
9861
9862 #. type: textblock
9863 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:3521
9864 msgid ""
9865 "Normally it is better to get all extended attributes from a file in one go "
9866 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
9867 "implementations are buggy and do not provide a way to list out attributes.  "
9868 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
9869 "extended attributes you want in advance and call this function."
9870 msgstr ""
9871
9872 #. type: textblock
9873 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3528
9874 #: ../fish/guestfish-actions.pod:1459 ../fish/guestfish-actions.pod:2465
9875 msgid ""
9876 "Extended attribute values are blobs of binary data.  If there is no extended "
9877 "attribute named C<name>, this returns an error."
9878 msgstr ""
9879
9880 #. type: textblock
9881 #: ../src/guestfs-actions.pod:2162
9882 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
9883 msgstr ""
9884
9885 #. type: textblock
9886 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2355
9887 #: ../src/guestfs-actions.pod:3533 ../src/guestfs-actions.pod:5257
9888 #: ../src/guestfs-actions.pod:5283 ../src/guestfs-actions.pod:5464
9889 msgid ""
9890 "This function returns a buffer, or NULL on error.  The size of the returned "
9891 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
9892 "after use>."
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:3537
9897 msgid "(Added in 1.7.24)"
9898 msgstr ""
9899
9900 #. type: =head2
9901 #: ../src/guestfs-actions.pod:2170
9902 msgid "guestfs_getxattrs"
9903 msgstr ""
9904
9905 #. type: verbatim
9906 #: ../src/guestfs-actions.pod:2172
9907 #, no-wrap
9908 msgid ""
9909 " struct guestfs_xattr_list *\n"
9910 " guestfs_getxattrs (guestfs_h *g,\n"
9911 "                    const char *path);\n"
9912 "\n"
9913 msgstr ""
9914
9915 #. type: textblock
9916 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1468
9917 msgid ""
9918 "This call lists the extended attributes of the file or directory C<path>."
9919 msgstr ""
9920
9921 #. type: textblock
9922 #: ../src/guestfs-actions.pod:2179 ../fish/guestfish-actions.pod:1471
9923 msgid ""
9924 "At the system call level, this is a combination of the L<listxattr(2)> and "
9925 "L<getxattr(2)> calls."
9926 msgstr ""
9927
9928 #. type: textblock
9929 #: ../src/guestfs-actions.pod:2182
9930 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
9931 msgstr ""
9932
9933 #. type: textblock
9934 #: ../src/guestfs-actions.pod:2184 ../src/guestfs-actions.pod:3549
9935 #: ../src/guestfs-actions.pod:4200
9936 msgid ""
9937 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
9938 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
9939 msgstr ""
9940
9941 #. type: textblock
9942 #: ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:3553
9943 #: ../src/guestfs-actions.pod:3718 ../src/guestfs-actions.pod:3754
9944 #: ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:6125
9945 #: ../src/guestfs-actions.pod:7495
9946 msgid "(Added in 1.0.59)"
9947 msgstr ""
9948
9949 #. type: =head2
9950 #: ../src/guestfs-actions.pod:2190
9951 msgid "guestfs_glob_expand"
9952 msgstr ""
9953
9954 #. type: verbatim
9955 #: ../src/guestfs-actions.pod:2192
9956 #, no-wrap
9957 msgid ""
9958 " char **\n"
9959 " guestfs_glob_expand (guestfs_h *g,\n"
9960 "                      const char *pattern);\n"
9961 "\n"
9962 msgstr ""
9963
9964 #. type: textblock
9965 #: ../src/guestfs-actions.pod:2196 ../fish/guestfish-actions.pod:1480
9966 msgid ""
9967 "This command searches for all the pathnames matching C<pattern> according to "
9968 "the wildcard expansion rules used by the shell."
9969 msgstr ""
9970
9971 #. type: textblock
9972 #: ../src/guestfs-actions.pod:2200 ../fish/guestfish-actions.pod:1484
9973 msgid ""
9974 "If no paths match, then this returns an empty list (note: not an error)."
9975 msgstr ""
9976
9977 #. type: textblock
9978 #: ../src/guestfs-actions.pod:2203 ../fish/guestfish-actions.pod:1487
9979 msgid ""
9980 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9981 "GLOB_BRACE>.  See that manual page for more details."
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6318
9986 #: ../src/guestfs-actions.pod:6335
9987 msgid "(Added in 1.0.50)"
9988 msgstr ""
9989
9990 #. type: =head2
9991 #: ../src/guestfs-actions.pod:2213
9992 msgid "guestfs_grep"
9993 msgstr ""
9994
9995 #. type: verbatim
9996 #: ../src/guestfs-actions.pod:2215
9997 #, no-wrap
9998 msgid ""
9999 " char **\n"
10000 " guestfs_grep (guestfs_h *g,\n"
10001 "               const char *regex,\n"
10002 "               const char *path);\n"
10003 "\n"
10004 msgstr ""
10005
10006 #. type: textblock
10007 #: ../src/guestfs-actions.pod:2220 ../fish/guestfish-actions.pod:1495
10008 msgid "This calls the external C<grep> program and returns the matching lines."
10009 msgstr ""
10010
10011 #. type: =head2
10012 #: ../src/guestfs-actions.pod:2232
10013 msgid "guestfs_grepi"
10014 msgstr ""
10015
10016 #. type: verbatim
10017 #: ../src/guestfs-actions.pod:2234
10018 #, no-wrap
10019 msgid ""
10020 " char **\n"
10021 " guestfs_grepi (guestfs_h *g,\n"
10022 "                const char *regex,\n"
10023 "                const char *path);\n"
10024 "\n"
10025 msgstr ""
10026
10027 #. type: textblock
10028 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1505
10029 msgid ""
10030 "This calls the external C<grep -i> program and returns the matching lines."
10031 msgstr ""
10032
10033 #. type: =head2
10034 #: ../src/guestfs-actions.pod:2251
10035 msgid "guestfs_grub_install"
10036 msgstr ""
10037
10038 #. type: verbatim
10039 #: ../src/guestfs-actions.pod:2253
10040 #, no-wrap
10041 msgid ""
10042 " int\n"
10043 " guestfs_grub_install (guestfs_h *g,\n"
10044 "                       const char *root,\n"
10045 "                       const char *device);\n"
10046 "\n"
10047 msgstr ""
10048
10049 #. type: textblock
10050 #: ../src/guestfs-actions.pod:2258 ../fish/guestfish-actions.pod:1515
10051 msgid ""
10052 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10053 "the root directory being C<root>."
10054 msgstr ""
10055
10056 #. type: textblock
10057 #: ../src/guestfs-actions.pod:2261 ../fish/guestfish-actions.pod:1518
10058 msgid ""
10059 "Note: If grub-install reports the error \"No suitable drive was found in the "
10060 "generated device map.\" it may be that you need to create a C</boot/grub/"
10061 "device.map> file first that contains the mapping between grub device names "
10062 "and Linux device names.  It is usually sufficient to create a file "
10063 "containing:"
10064 msgstr ""
10065
10066 #. type: verbatim
10067 #: ../src/guestfs-actions.pod:2268 ../fish/guestfish-actions.pod:1525
10068 #, no-wrap
10069 msgid ""
10070 " (hd0) /dev/vda\n"
10071 "\n"
10072 msgstr ""
10073
10074 #. type: textblock
10075 #: ../src/guestfs-actions.pod:2270 ../fish/guestfish-actions.pod:1527
10076 msgid "replacing C</dev/vda> with the name of the installation device."
10077 msgstr ""
10078
10079 #. type: textblock
10080 #: ../src/guestfs-actions.pod:2274
10081 msgid "(Added in 1.0.17)"
10082 msgstr ""
10083
10084 #. type: =head2
10085 #: ../src/guestfs-actions.pod:2276
10086 msgid "guestfs_head"
10087 msgstr ""
10088
10089 #. type: verbatim
10090 #: ../src/guestfs-actions.pod:2278
10091 #, no-wrap
10092 msgid ""
10093 " char **\n"
10094 " guestfs_head (guestfs_h *g,\n"
10095 "               const char *path);\n"
10096 "\n"
10097 msgstr ""
10098
10099 #. type: textblock
10100 #: ../src/guestfs-actions.pod:2282 ../fish/guestfish-actions.pod:1533
10101 msgid ""
10102 "This command returns up to the first 10 lines of a file as a list of strings."
10103 msgstr ""
10104
10105 #. type: =head2
10106 #: ../src/guestfs-actions.pod:2294
10107 msgid "guestfs_head_n"
10108 msgstr ""
10109
10110 #. type: verbatim
10111 #: ../src/guestfs-actions.pod:2296
10112 #, no-wrap
10113 msgid ""
10114 " char **\n"
10115 " guestfs_head_n (guestfs_h *g,\n"
10116 "                 int nrlines,\n"
10117 "                 const char *path);\n"
10118 "\n"
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../src/guestfs-actions.pod:2301 ../fish/guestfish-actions.pod:1543
10123 msgid ""
10124 "If the parameter C<nrlines> is a positive number, this returns the first "
10125 "C<nrlines> lines of the file C<path>."
10126 msgstr ""
10127
10128 #. type: textblock
10129 #: ../src/guestfs-actions.pod:2304 ../fish/guestfish-actions.pod:1546
10130 msgid ""
10131 "If the parameter C<nrlines> is a negative number, this returns lines from "
10132 "the file C<path>, excluding the last C<nrlines> lines."
10133 msgstr ""
10134
10135 #. type: textblock
10136 #: ../src/guestfs-actions.pod:2307 ../src/guestfs-actions.pod:6615
10137 #: ../fish/guestfish-actions.pod:1549 ../fish/guestfish-actions.pod:4470
10138 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10139 msgstr ""
10140
10141 #. type: =head2
10142 #: ../src/guestfs-actions.pod:2318
10143 msgid "guestfs_hexdump"
10144 msgstr ""
10145
10146 #. type: verbatim
10147 #: ../src/guestfs-actions.pod:2320
10148 #, no-wrap
10149 msgid ""
10150 " char *\n"
10151 " guestfs_hexdump (guestfs_h *g,\n"
10152 "                  const char *path);\n"
10153 "\n"
10154 msgstr ""
10155
10156 #. type: textblock
10157 #: ../src/guestfs-actions.pod:2324 ../fish/guestfish-actions.pod:1558
10158 msgid ""
10159 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10160 "readable, canonical hex dump of the file."
10161 msgstr ""
10162
10163 #. type: textblock
10164 #: ../src/guestfs-actions.pod:2333 ../src/guestfs-actions.pod:6399
10165 #: ../src/guestfs-actions.pod:6454
10166 msgid "(Added in 1.0.22)"
10167 msgstr ""
10168
10169 #. type: =head2
10170 #: ../src/guestfs-actions.pod:2335
10171 msgid "guestfs_initrd_cat"
10172 msgstr ""
10173
10174 #. type: verbatim
10175 #: ../src/guestfs-actions.pod:2337
10176 #, no-wrap
10177 msgid ""
10178 " char *\n"
10179 " guestfs_initrd_cat (guestfs_h *g,\n"
10180 "                     const char *initrdpath,\n"
10181 "                     const char *filename,\n"
10182 "                     size_t *size_r);\n"
10183 "\n"
10184 msgstr ""
10185
10186 #. type: textblock
10187 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1568
10188 msgid ""
10189 "This command unpacks the file C<filename> from the initrd file called "
10190 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10191 "character."
10192 msgstr ""
10193
10194 #. type: textblock
10195 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1572
10196 msgid ""
10197 "For example, in guestfish you could use the following command to examine the "
10198 "boot script (usually called C</init>)  contained in a Linux initrd or "
10199 "initramfs image:"
10200 msgstr ""
10201
10202 #. type: verbatim
10203 #: ../src/guestfs-actions.pod:2351 ../fish/guestfish-actions.pod:1576
10204 #, no-wrap
10205 msgid ""
10206 " initrd-cat /boot/initrd-<version>.img init\n"
10207 "\n"
10208 msgstr ""
10209
10210 #. type: textblock
10211 #: ../src/guestfs-actions.pod:2353
10212 msgid "See also C<guestfs_initrd_list>."
10213 msgstr ""
10214
10215 #. type: =head2
10216 #: ../src/guestfs-actions.pod:2364
10217 msgid "guestfs_initrd_list"
10218 msgstr ""
10219
10220 #. type: verbatim
10221 #: ../src/guestfs-actions.pod:2366
10222 #, no-wrap
10223 msgid ""
10224 " char **\n"
10225 " guestfs_initrd_list (guestfs_h *g,\n"
10226 "                      const char *path);\n"
10227 "\n"
10228 msgstr ""
10229
10230 #. type: textblock
10231 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1587
10232 msgid "This command lists out files contained in an initrd."
10233 msgstr ""
10234
10235 #. type: textblock
10236 #: ../src/guestfs-actions.pod:2372 ../fish/guestfish-actions.pod:1589
10237 msgid ""
10238 "The files are listed without any initial C</> character.  The files are "
10239 "listed in the order they appear (not necessarily alphabetical).  Directory "
10240 "names are listed as separate items."
10241 msgstr ""
10242
10243 #. type: textblock
10244 #: ../src/guestfs-actions.pod:2376 ../fish/guestfish-actions.pod:1593
10245 msgid ""
10246 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10247 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10248 "files)."
10249 msgstr ""
10250
10251 #. type: =head2
10252 #: ../src/guestfs-actions.pod:2386
10253 msgid "guestfs_inotify_add_watch"
10254 msgstr ""
10255
10256 #. type: verbatim
10257 #: ../src/guestfs-actions.pod:2388
10258 #, no-wrap
10259 msgid ""
10260 " int64_t\n"
10261 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10262 "                            const char *path,\n"
10263 "                            int mask);\n"
10264 "\n"
10265 msgstr ""
10266
10267 #. type: textblock
10268 #: ../src/guestfs-actions.pod:2393 ../fish/guestfish-actions.pod:1601
10269 msgid "Watch C<path> for the events listed in C<mask>."
10270 msgstr ""
10271
10272 #. type: textblock
10273 #: ../src/guestfs-actions.pod:2395 ../fish/guestfish-actions.pod:1603
10274 msgid ""
10275 "Note that if C<path> is a directory then events within that directory are "
10276 "watched, but this does I<not> happen recursively (in subdirectories)."
10277 msgstr ""
10278
10279 #. type: textblock
10280 #: ../src/guestfs-actions.pod:2399 ../fish/guestfish-actions.pod:1607
10281 msgid ""
10282 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10283 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10284 msgstr ""
10285
10286 #. type: =head2
10287 #: ../src/guestfs-actions.pod:2407
10288 msgid "guestfs_inotify_close"
10289 msgstr ""
10290
10291 #. type: verbatim
10292 #: ../src/guestfs-actions.pod:2409
10293 #, no-wrap
10294 msgid ""
10295 " int\n"
10296 " guestfs_inotify_close (guestfs_h *g);\n"
10297 "\n"
10298 msgstr ""
10299
10300 #. type: textblock
10301 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1615
10302 msgid ""
10303 "This closes the inotify handle which was previously opened by inotify_init.  "
10304 "It removes all watches, throws away any pending events, and deallocates all "
10305 "resources."
10306 msgstr ""
10307
10308 #. type: =head2
10309 #: ../src/guestfs-actions.pod:2420
10310 msgid "guestfs_inotify_files"
10311 msgstr ""
10312
10313 #. type: verbatim
10314 #: ../src/guestfs-actions.pod:2422
10315 #, no-wrap
10316 msgid ""
10317 " char **\n"
10318 " guestfs_inotify_files (guestfs_h *g);\n"
10319 "\n"
10320 msgstr ""
10321
10322 #. type: textblock
10323 #: ../src/guestfs-actions.pod:2425
10324 msgid ""
10325 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
10326 "returns a list of pathnames of objects that were touched.  The returned "
10327 "pathnames are sorted and deduplicated."
10328 msgstr ""
10329
10330 #. type: =head2
10331 #: ../src/guestfs-actions.pod:2435
10332 msgid "guestfs_inotify_init"
10333 msgstr ""
10334
10335 #. type: verbatim
10336 #: ../src/guestfs-actions.pod:2437
10337 #, no-wrap
10338 msgid ""
10339 " int\n"
10340 " guestfs_inotify_init (guestfs_h *g,\n"
10341 "                       int maxevents);\n"
10342 "\n"
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../src/guestfs-actions.pod:2441 ../fish/guestfish-actions.pod:1631
10347 msgid ""
10348 "This command creates a new inotify handle.  The inotify subsystem can be "
10349 "used to notify events which happen to objects in the guest filesystem."
10350 msgstr ""
10351
10352 #. type: textblock
10353 #: ../src/guestfs-actions.pod:2445
10354 msgid ""
10355 "C<maxevents> is the maximum number of events which will be queued up between "
10356 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
10357 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
10358 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
10359 "throws away events, but records the fact that it threw them away by setting "
10360 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
10361 "C<guestfs_inotify_read>)."
10362 msgstr ""
10363
10364 #. type: textblock
10365 #: ../src/guestfs-actions.pod:2455
10366 msgid ""
10367 "Before any events are generated, you have to add some watches to the "
10368 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
10369 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
10370 msgstr ""
10371
10372 #. type: textblock
10373 #: ../src/guestfs-actions.pod:2461
10374 msgid ""
10375 "Queued up events should be read periodically by calling "
10376 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
10377 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
10378 "often enough then you risk the internal queue overflowing."
10379 msgstr ""
10380
10381 #. type: textblock
10382 #: ../src/guestfs-actions.pod:2468
10383 msgid ""
10384 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
10385 "This also removes any watches automatically."
10386 msgstr ""
10387
10388 #. type: textblock
10389 #: ../src/guestfs-actions.pod:2472 ../fish/guestfish-actions.pod:1662
10390 msgid ""
10391 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10392 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10393 "that there is one global inotify handle per libguestfs instance."
10394 msgstr ""
10395
10396 #. type: =head2
10397 #: ../src/guestfs-actions.pod:2481
10398 msgid "guestfs_inotify_read"
10399 msgstr ""
10400
10401 #. type: verbatim
10402 #: ../src/guestfs-actions.pod:2483
10403 #, no-wrap
10404 msgid ""
10405 " struct guestfs_inotify_event_list *\n"
10406 " guestfs_inotify_read (guestfs_h *g);\n"
10407 "\n"
10408 msgstr ""
10409
10410 #. type: textblock
10411 #: ../src/guestfs-actions.pod:2486 ../fish/guestfish-actions.pod:1671
10412 msgid ""
10413 "Return the complete queue of events that have happened since the previous "
10414 "read call."
10415 msgstr ""
10416
10417 #. type: textblock
10418 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1674
10419 msgid "If no events have happened, this returns an empty list."
10420 msgstr ""
10421
10422 #. type: textblock
10423 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1676
10424 msgid ""
10425 "I<Note>: In order to make sure that all events have been read, you must call "
10426 "this function repeatedly until it returns an empty list.  The reason is that "
10427 "the call will read events up to the maximum appliance-to-host message size "
10428 "and leave remaining events in the queue."
10429 msgstr ""
10430
10431 #. type: textblock
10432 #: ../src/guestfs-actions.pod:2497
10433 msgid ""
10434 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
10435 "there was an error.  I<The caller must call "
10436 "C<guestfs_free_inotify_event_list> after use>."
10437 msgstr ""
10438
10439 #. type: =head2
10440 #: ../src/guestfs-actions.pod:2503
10441 msgid "guestfs_inotify_rm_watch"
10442 msgstr ""
10443
10444 #. type: verbatim
10445 #: ../src/guestfs-actions.pod:2505
10446 #, no-wrap
10447 msgid ""
10448 " int\n"
10449 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10450 "                           int wd);\n"
10451 "\n"
10452 msgstr ""
10453
10454 #. type: textblock
10455 #: ../src/guestfs-actions.pod:2509
10456 msgid ""
10457 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
10458 msgstr ""
10459
10460 #. type: =head2
10461 #: ../src/guestfs-actions.pod:2516
10462 msgid "guestfs_inspect_get_arch"
10463 msgstr ""
10464
10465 #. type: verbatim
10466 #: ../src/guestfs-actions.pod:2518
10467 #, no-wrap
10468 msgid ""
10469 " char *\n"
10470 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10471 "                           const char *root);\n"
10472 "\n"
10473 msgstr ""
10474
10475 #. type: textblock
10476 #: ../src/guestfs-actions.pod:2522 ../src/guestfs-actions.pod:2545
10477 #: ../src/guestfs-actions.pod:2638 ../src/guestfs-actions.pod:2682
10478 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:2747
10479 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2796
10480 #: ../src/guestfs-actions.pod:2817 ../src/guestfs-actions.pod:2860
10481 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:2920
10482 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:2999
10483 #: ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3062
10484 #: ../src/guestfs-actions.pod:3085 ../src/guestfs-actions.pod:3102
10485 #: ../src/guestfs-actions.pod:3119 ../src/guestfs-actions.pod:3138
10486 msgid ""
10487 "This function should only be called with a root device string as returned by "
10488 "C<guestfs_inspect_os>."
10489 msgstr ""
10490
10491 #. type: textblock
10492 #: ../src/guestfs-actions.pod:2525
10493 msgid ""
10494 "This returns the architecture of the inspected operating system.  The "
10495 "possible return values are listed under C<guestfs_file_architecture>."
10496 msgstr ""
10497
10498 #. type: textblock
10499 #: ../src/guestfs-actions.pod:2529 ../fish/guestfish-actions.pod:1700
10500 msgid ""
10501 "If the architecture could not be determined, then the string C<unknown> is "
10502 "returned."
10503 msgstr ""
10504
10505 #. type: textblock
10506 #: ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2625
10507 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:2756
10508 #: ../src/guestfs-actions.pod:2784 ../src/guestfs-actions.pod:2876
10509 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2931
10510 #: ../src/guestfs-actions.pod:2985 ../src/guestfs-actions.pod:3028
10511 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3072
10512 #: ../src/guestfs-actions.pod:3092 ../src/guestfs-actions.pod:3109
10513 #: ../src/guestfs-actions.pod:3128 ../src/guestfs-actions.pod:3231
10514 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:1703
10515 #: ../fish/guestfish-actions.pod:1789 ../fish/guestfish-actions.pod:1877
10516 #: ../fish/guestfish-actions.pod:1892 ../fish/guestfish-actions.pod:1913
10517 #: ../fish/guestfish-actions.pod:1983 ../fish/guestfish-actions.pod:2007
10518 #: ../fish/guestfish-actions.pod:2024 ../fish/guestfish-actions.pod:2067
10519 #: ../fish/guestfish-actions.pod:2102 ../fish/guestfish-actions.pod:2118
10520 #: ../fish/guestfish-actions.pod:2134 ../fish/guestfish-actions.pod:2147
10521 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2175
10522 #: ../fish/guestfish-actions.pod:2274 ../fish/guestfish-actions.pod:2308
10523 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10524 msgstr ""
10525
10526 #. type: =head2
10527 #: ../src/guestfs-actions.pod:2539
10528 msgid "guestfs_inspect_get_distro"
10529 msgstr ""
10530
10531 #. type: verbatim
10532 #: ../src/guestfs-actions.pod:2541
10533 #, no-wrap
10534 msgid ""
10535 " char *\n"
10536 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10537 "                             const char *root);\n"
10538 "\n"
10539 msgstr ""
10540
10541 #. type: textblock
10542 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1712
10543 msgid ""
10544 "This returns the distro (distribution) of the inspected operating system."
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../src/guestfs-actions.pod:2551 ../fish/guestfish-actions.pod:1715
10549 msgid "Currently defined distros are:"
10550 msgstr ""
10551
10552 #. type: =item
10553 #: ../src/guestfs-actions.pod:2555 ../fish/guestfish-actions.pod:1719
10554 msgid "\"archlinux\""
10555 msgstr "\"archlinux\""
10556
10557 #. type: textblock
10558 #: ../src/guestfs-actions.pod:2557 ../fish/guestfish-actions.pod:1721
10559 msgid "Arch Linux."
10560 msgstr "Arch Linux."
10561
10562 #. type: =item
10563 #: ../src/guestfs-actions.pod:2559 ../fish/guestfish-actions.pod:1723
10564 #, fuzzy
10565 #| msgid "\"gentoo\""
10566 msgid "\"centos\""
10567 msgstr "\"gentoo\""
10568
10569 #. type: textblock
10570 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1725
10571 msgid "CentOS."
10572 msgstr ""
10573
10574 #. type: =item
10575 #: ../src/guestfs-actions.pod:2563 ../fish/guestfish-actions.pod:1727
10576 msgid "\"debian\""
10577 msgstr "\"debian\""
10578
10579 #. type: textblock
10580 #: ../src/guestfs-actions.pod:2565 ../fish/guestfish-actions.pod:1729
10581 msgid "Debian."
10582 msgstr "Debian."
10583
10584 #. type: =item
10585 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1731
10586 msgid "\"fedora\""
10587 msgstr "\"fedora\""
10588
10589 #. type: textblock
10590 #: ../src/guestfs-actions.pod:2569 ../fish/guestfish-actions.pod:1733
10591 msgid "Fedora."
10592 msgstr "Fedora."
10593
10594 #. type: =item
10595 #: ../src/guestfs-actions.pod:2571 ../fish/guestfish-actions.pod:1735
10596 msgid "\"gentoo\""
10597 msgstr "\"gentoo\""
10598
10599 #. type: textblock
10600 #: ../src/guestfs-actions.pod:2573 ../fish/guestfish-actions.pod:1737
10601 msgid "Gentoo."
10602 msgstr "Gentoo."
10603
10604 #. type: =item
10605 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1739
10606 msgid "\"linuxmint\""
10607 msgstr "\"linuxmint\""
10608
10609 #. type: textblock
10610 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1741
10611 msgid "Linux Mint."
10612 msgstr "Linux Mint."
10613
10614 #. type: =item
10615 #: ../src/guestfs-actions.pod:2579 ../fish/guestfish-actions.pod:1743
10616 msgid "\"mandriva\""
10617 msgstr "\"mandriva\""
10618
10619 #. type: textblock
10620 #: ../src/guestfs-actions.pod:2581 ../fish/guestfish-actions.pod:1745
10621 msgid "Mandriva."
10622 msgstr "Mandriva."
10623
10624 #. type: =item
10625 #: ../src/guestfs-actions.pod:2583 ../fish/guestfish-actions.pod:1747
10626 msgid "\"meego\""
10627 msgstr "\"meego\""
10628
10629 #. type: textblock
10630 #: ../src/guestfs-actions.pod:2585 ../fish/guestfish-actions.pod:1749
10631 msgid "MeeGo."
10632 msgstr "MeeGo."
10633
10634 #. type: =item
10635 #: ../src/guestfs-actions.pod:2587 ../fish/guestfish-actions.pod:1751
10636 msgid "\"pardus\""
10637 msgstr "\"pardus\""
10638
10639 #. type: textblock
10640 #: ../src/guestfs-actions.pod:2589 ../fish/guestfish-actions.pod:1753
10641 msgid "Pardus."
10642 msgstr "Pardus."
10643
10644 #. type: =item
10645 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1755
10646 msgid "\"redhat-based\""
10647 msgstr "\"redhat-based\""
10648
10649 #. type: textblock
10650 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1757
10651 msgid "Some Red Hat-derived distro."
10652 msgstr "Дистрибутив, що походить від Red Hat."
10653
10654 #. type: =item
10655 #: ../src/guestfs-actions.pod:2595 ../fish/guestfish-actions.pod:1759
10656 msgid "\"rhel\""
10657 msgstr "\"rhel\""
10658
10659 #. type: textblock
10660 #: ../src/guestfs-actions.pod:2597 ../fish/guestfish-actions.pod:1761
10661 #, fuzzy
10662 #| msgid "Red Hat Enterprise Linux and some derivatives."
10663 msgid "Red Hat Enterprise Linux."
10664 msgstr "Red Hat Enterprise Linux та деякі з похідних дистрибутивів."
10665
10666 #. type: =item
10667 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1763
10668 msgid "\"scientificlinux\""
10669 msgstr ""
10670
10671 #. type: textblock
10672 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1765
10673 msgid "Scientific Linux."
10674 msgstr ""
10675
10676 #. type: =item
10677 #: ../src/guestfs-actions.pod:2603 ../fish/guestfish-actions.pod:1767
10678 msgid "\"slackware\""
10679 msgstr ""
10680
10681 #. type: textblock
10682 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1769
10683 msgid "Slackware."
10684 msgstr ""
10685
10686 #. type: =item
10687 #: ../src/guestfs-actions.pod:2607 ../fish/guestfish-actions.pod:1771
10688 msgid "\"ubuntu\""
10689 msgstr "\"ubuntu\""
10690
10691 #. type: textblock
10692 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1773
10693 msgid "Ubuntu."
10694 msgstr "Ubuntu."
10695
10696 #. type: =item
10697 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2727
10698 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:1775
10699 #: ../fish/guestfish-actions.pod:1868 ../fish/guestfish-actions.pod:2093
10700 msgid "\"unknown\""
10701 msgstr "\"unknown\""
10702
10703 #. type: textblock
10704 #: ../src/guestfs-actions.pod:2613 ../fish/guestfish-actions.pod:1777
10705 msgid "The distro could not be determined."
10706 msgstr "Дистрибутив, тип якого не вдалося визначити."
10707
10708 #. type: =item
10709 #: ../src/guestfs-actions.pod:2615 ../src/guestfs-actions.pod:3011
10710 #: ../fish/guestfish-actions.pod:1779 ../fish/guestfish-actions.pod:2085
10711 msgid "\"windows\""
10712 msgstr "\"windows\""
10713
10714 #. type: textblock
10715 #: ../src/guestfs-actions.pod:2617 ../fish/guestfish-actions.pod:1781
10716 msgid ""
10717 "Windows does not have distributions.  This string is returned if the OS type "
10718 "is Windows."
10719 msgstr ""
10720
10721 #. type: textblock
10722 #: ../src/guestfs-actions.pod:2622 ../src/guestfs-actions.pod:2733
10723 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:1786
10724 #: ../fish/guestfish-actions.pod:1874 ../fish/guestfish-actions.pod:2099
10725 msgid ""
10726 "Future versions of libguestfs may return other strings here.  The caller "
10727 "should be prepared to handle any string."
10728 msgstr ""
10729
10730 #. type: =head2
10731 #: ../src/guestfs-actions.pod:2632
10732 msgid "guestfs_inspect_get_drive_mappings"
10733 msgstr ""
10734
10735 #. type: verbatim
10736 #: ../src/guestfs-actions.pod:2634
10737 #, no-wrap
10738 msgid ""
10739 " char **\n"
10740 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
10741 "                                     const char *root);\n"
10742 "\n"
10743 msgstr ""
10744
10745 #. type: textblock
10746 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1798
10747 msgid ""
10748 "This call is useful for Windows which uses a primitive system of assigning "
10749 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10750 "Windows Registry to find out how disks/partitions are mapped to drive "
10751 "letters, and returns a hash table as in the example below:"
10752 msgstr ""
10753
10754 #. type: verbatim
10755 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1804
10756 #, no-wrap
10757 msgid ""
10758 " C      =>     /dev/vda2\n"
10759 " E      =>     /dev/vdb1\n"
10760 " F      =>     /dev/vdc1\n"
10761 "\n"
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1808
10766 msgid ""
10767 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10768 "and just contains the drive letter, without the customary colon separator "
10769 "character."
10770 msgstr ""
10771
10772 #. type: textblock
10773 #: ../src/guestfs-actions.pod:2655 ../fish/guestfish-actions.pod:1812
10774 msgid ""
10775 "In future we may support other operating systems that also used drive "
10776 "letters, but the keys for those might not be case insensitive and might be "
10777 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10778 "C<h1> etc."
10779 msgstr ""
10780
10781 #. type: textblock
10782 #: ../src/guestfs-actions.pod:2660 ../fish/guestfish-actions.pod:1817
10783 msgid ""
10784 "For Windows guests, currently only hard drive mappings are returned.  "
10785 "Removable disks (eg. DVD-ROMs) are ignored."
10786 msgstr ""
10787
10788 #. type: textblock
10789 #: ../src/guestfs-actions.pod:2663 ../fish/guestfish-actions.pod:1820
10790 msgid ""
10791 "For guests that do not use drive mappings, or if the drive mappings could "
10792 "not be determined, this returns an empty hash table."
10793 msgstr ""
10794
10795 #. type: textblock
10796 #: ../src/guestfs-actions.pod:2666
10797 msgid ""
10798 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10799 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../src/guestfs-actions.pod:2670 ../src/guestfs-actions.pod:2846
10804 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:4823
10805 #: ../src/guestfs-actions.pod:6756
10806 msgid ""
10807 "This function returns a NULL-terminated array of strings, or NULL if there "
10808 "was an error.  The array of strings will always have length C<2n+1>, where "
10809 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
10810 "caller must free the strings and the array after use>."
10811 msgstr ""
10812
10813 #. type: =head2
10814 #: ../src/guestfs-actions.pod:2676
10815 msgid "guestfs_inspect_get_filesystems"
10816 msgstr ""
10817
10818 #. type: verbatim
10819 #: ../src/guestfs-actions.pod:2678
10820 #, no-wrap
10821 msgid ""
10822 " char **\n"
10823 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
10824 "                                  const char *root);\n"
10825 "\n"
10826 msgstr ""
10827
10828 #. type: textblock
10829 #: ../src/guestfs-actions.pod:2685 ../fish/guestfish-actions.pod:1834
10830 msgid ""
10831 "This returns a list of all the filesystems that we think are associated with "
10832 "this operating system.  This includes the root filesystem, other ordinary "
10833 "filesystems, and non-mounted devices like swap partitions."
10834 msgstr ""
10835
10836 #. type: textblock
10837 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:1839
10838 msgid ""
10839 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10840 "to be shared between operating systems."
10841 msgstr ""
10842
10843 #. type: textblock
10844 #: ../src/guestfs-actions.pod:2693
10845 msgid ""
10846 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10847 "C<guestfs_inspect_get_mountpoints>."
10848 msgstr ""
10849
10850 #. type: =head2
10851 #: ../src/guestfs-actions.pod:2702
10852 msgid "guestfs_inspect_get_format"
10853 msgstr ""
10854
10855 #. type: verbatim
10856 #: ../src/guestfs-actions.pod:2704
10857 #, no-wrap
10858 msgid ""
10859 " char *\n"
10860 " guestfs_inspect_get_format (guestfs_h *g,\n"
10861 "                             const char *root);\n"
10862 "\n"
10863 msgstr ""
10864
10865 #. type: textblock
10866 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
10867 msgid ""
10868 "This returns the format of the inspected operating system.  You can use it "
10869 "to detect install images, live CDs and similar."
10870 msgstr ""
10871
10872 #. type: textblock
10873 #: ../src/guestfs-actions.pod:2714 ../fish/guestfish-actions.pod:1855
10874 msgid "Currently defined formats are:"
10875 msgstr ""
10876
10877 #. type: =item
10878 #: ../src/guestfs-actions.pod:2718 ../fish/guestfish-actions.pod:1859
10879 msgid "\"installed\""
10880 msgstr "\"installed\""
10881
10882 #. type: textblock
10883 #: ../src/guestfs-actions.pod:2720 ../fish/guestfish-actions.pod:1861
10884 msgid "This is an installed operating system."
10885 msgstr "Це встановлена операційна система."
10886
10887 #. type: =item
10888 #: ../src/guestfs-actions.pod:2722 ../fish/guestfish-actions.pod:1863
10889 msgid "\"installer\""
10890 msgstr ""
10891
10892 #. type: textblock
10893 #: ../src/guestfs-actions.pod:2724 ../fish/guestfish-actions.pod:1865
10894 msgid ""
10895 "The disk image being inspected is not an installed operating system, but a "
10896 "I<bootable> install disk, live CD, or similar."
10897 msgstr ""
10898
10899 #. type: textblock
10900 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:1870
10901 msgid "The format of this disk image is not known."
10902 msgstr ""
10903
10904 #. type: =head2
10905 #: ../src/guestfs-actions.pod:2741
10906 msgid "guestfs_inspect_get_hostname"
10907 msgstr ""
10908
10909 #. type: verbatim
10910 #: ../src/guestfs-actions.pod:2743
10911 #, no-wrap
10912 msgid ""
10913 " char *\n"
10914 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
10915 "                               const char *root);\n"
10916 "\n"
10917 msgstr ""
10918
10919 #. type: textblock
10920 #: ../src/guestfs-actions.pod:2750 ../fish/guestfish-actions.pod:1886
10921 msgid ""
10922 "This function returns the hostname of the operating system as found by "
10923 "inspection of the guest's configuration files."
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1889
10928 msgid ""
10929 "If the hostname could not be determined, then the string C<unknown> is "
10930 "returned."
10931 msgstr ""
10932
10933 #. type: textblock
10934 #: ../src/guestfs-actions.pod:2761
10935 msgid "(Added in 1.7.9)"
10936 msgstr ""
10937
10938 #. type: =head2
10939 #: ../src/guestfs-actions.pod:2763
10940 msgid "guestfs_inspect_get_major_version"
10941 msgstr ""
10942
10943 #. type: verbatim
10944 #: ../src/guestfs-actions.pod:2765
10945 #, no-wrap
10946 msgid ""
10947 " int\n"
10948 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
10949 "                                    const char *root);\n"
10950 "\n"
10951 msgstr ""
10952
10953 #. type: textblock
10954 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1901
10955 msgid ""
10956 "This returns the major version number of the inspected operating system."
10957 msgstr ""
10958
10959 #. type: textblock
10960 #: ../src/guestfs-actions.pod:2775 ../fish/guestfish-actions.pod:1904
10961 msgid ""
10962 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10963 "popular public names used by the operating system.  Notably the operating "
10964 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10965 "1).  You can find out the real versions corresponding to releases of Windows "
10966 "by consulting Wikipedia or MSDN."
10967 msgstr ""
10968
10969 #. type: textblock
10970 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2802
10971 #: ../fish/guestfish-actions.pod:1911 ../fish/guestfish-actions.pod:1925
10972 msgid "If the version could not be determined, then C<0> is returned."
10973 msgstr ""
10974
10975 #. type: =head2
10976 #: ../src/guestfs-actions.pod:2790
10977 msgid "guestfs_inspect_get_minor_version"
10978 msgstr ""
10979
10980 #. type: verbatim
10981 #: ../src/guestfs-actions.pod:2792
10982 #, no-wrap
10983 msgid ""
10984 " int\n"
10985 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
10986 "                                    const char *root);\n"
10987 "\n"
10988 msgstr ""
10989
10990 #. type: textblock
10991 #: ../src/guestfs-actions.pod:2799 ../fish/guestfish-actions.pod:1922
10992 msgid ""
10993 "This returns the minor version number of the inspected operating system."
10994 msgstr ""
10995
10996 #. type: textblock
10997 #: ../src/guestfs-actions.pod:2804
10998 msgid ""
10999 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11000 "C<guestfs_inspect_get_major_version>."
11001 msgstr ""
11002
11003 #. type: =head2
11004 #: ../src/guestfs-actions.pod:2811
11005 msgid "guestfs_inspect_get_mountpoints"
11006 msgstr ""
11007
11008 #. type: verbatim
11009 #: ../src/guestfs-actions.pod:2813
11010 #, no-wrap
11011 msgid ""
11012 " char **\n"
11013 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11014 "                                  const char *root);\n"
11015 "\n"
11016 msgstr ""
11017
11018 #. type: textblock
11019 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1937
11020 msgid ""
11021 "This returns a hash of where we think the filesystems associated with this "
11022 "operating system should be mounted.  Callers should note that this is at "
11023 "best an educated guess made by reading configuration files such as C</etc/"
11024 "fstab>.  I<In particular note> that this may return filesystems which are "
11025 "non-existent or not mountable and callers should be prepared to handle or "
11026 "ignore failures if they try to mount them."
11027 msgstr ""
11028
11029 #. type: textblock
11030 #: ../src/guestfs-actions.pod:2829 ../fish/guestfish-actions.pod:1946
11031 msgid ""
11032 "Each element in the returned hashtable has a key which is the path of the "
11033 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11034 "mounted there (eg. C</dev/sda1>)."
11035 msgstr ""
11036
11037 #. type: textblock
11038 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:1951
11039 msgid ""
11040 "Non-mounted devices such as swap devices are I<not> returned in this list."
11041 msgstr ""
11042
11043 #. type: textblock
11044 #: ../src/guestfs-actions.pod:2837
11045 msgid ""
11046 "For operating systems like Windows which still use drive letters, this call "
11047 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11048 "information about the mapping of drive letters to partitions, see "
11049 "C<guestfs_inspect_get_drive_mappings>."
11050 msgstr ""
11051
11052 #. type: textblock
11053 #: ../src/guestfs-actions.pod:2843
11054 msgid ""
11055 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11056 "C<guestfs_inspect_get_filesystems>."
11057 msgstr ""
11058
11059 #. type: =head2
11060 #: ../src/guestfs-actions.pod:2854
11061 msgid "guestfs_inspect_get_package_format"
11062 msgstr ""
11063
11064 #. type: verbatim
11065 #: ../src/guestfs-actions.pod:2856
11066 #, no-wrap
11067 msgid ""
11068 " char *\n"
11069 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11070 "                                     const char *root);\n"
11071 "\n"
11072 msgstr ""
11073
11074 #. type: textblock
11075 #: ../src/guestfs-actions.pod:2863
11076 msgid ""
11077 "This function and C<guestfs_inspect_get_package_management> return the "
11078 "package format and package management tool used by the inspected operating "
11079 "system.  For example for Fedora these functions would return C<rpm> (package "
11080 "format) and C<yum> (package management)."
11081 msgstr ""
11082
11083 #. type: textblock
11084 #: ../src/guestfs-actions.pod:2869 ../fish/guestfish-actions.pod:1976
11085 msgid ""
11086 "This returns the string C<unknown> if we could not determine the package "
11087 "format I<or> if the operating system does not have a real packaging system "
11088 "(eg. Windows)."
11089 msgstr ""
11090
11091 #. type: textblock
11092 #: ../src/guestfs-actions.pod:2873 ../fish/guestfish-actions.pod:1980
11093 msgid ""
11094 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11095 "Future versions of libguestfs may return other strings."
11096 msgstr ""
11097
11098 #. type: textblock
11099 #: ../src/guestfs-actions.pod:2881 ../src/guestfs-actions.pod:2912
11100 msgid "(Added in 1.7.5)"
11101 msgstr ""
11102
11103 #. type: =head2
11104 #: ../src/guestfs-actions.pod:2883
11105 msgid "guestfs_inspect_get_package_management"
11106 msgstr ""
11107
11108 #. type: verbatim
11109 #: ../src/guestfs-actions.pod:2885
11110 #, no-wrap
11111 msgid ""
11112 " char *\n"
11113 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11114 "                                         const char *root);\n"
11115 "\n"
11116 msgstr ""
11117
11118 #. type: textblock
11119 #: ../src/guestfs-actions.pod:2892
11120 msgid ""
11121 "C<guestfs_inspect_get_package_format> and this function return the package "
11122 "format and package management tool used by the inspected operating system.  "
11123 "For example for Fedora these functions would return C<rpm> (package format) "
11124 "and C<yum> (package management)."
11125 msgstr ""
11126
11127 #. type: textblock
11128 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:1998
11129 msgid ""
11130 "This returns the string C<unknown> if we could not determine the package "
11131 "management tool I<or> if the operating system does not have a real packaging "
11132 "system (eg. Windows)."
11133 msgstr ""
11134
11135 #. type: textblock
11136 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2002
11137 msgid ""
11138 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11139 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11140 "libguestfs may return other strings."
11141 msgstr ""
11142
11143 #. type: =head2
11144 #: ../src/guestfs-actions.pod:2914
11145 msgid "guestfs_inspect_get_product_name"
11146 msgstr ""
11147
11148 #. type: verbatim
11149 #: ../src/guestfs-actions.pod:2916
11150 #, no-wrap
11151 msgid ""
11152 " char *\n"
11153 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11154 "                                   const char *root);\n"
11155 "\n"
11156 msgstr ""
11157
11158 #. type: textblock
11159 #: ../src/guestfs-actions.pod:2923 ../fish/guestfish-actions.pod:2016
11160 msgid ""
11161 "This returns the product name of the inspected operating system.  The "
11162 "product name is generally some freeform string which can be displayed to the "
11163 "user, but should not be parsed by programs."
11164 msgstr ""
11165
11166 #. type: textblock
11167 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2021
11168 msgid ""
11169 "If the product name could not be determined, then the string C<unknown> is "
11170 "returned."
11171 msgstr ""
11172
11173 #. type: =head2
11174 #: ../src/guestfs-actions.pod:2938
11175 msgid "guestfs_inspect_get_product_variant"
11176 msgstr ""
11177
11178 #. type: verbatim
11179 #: ../src/guestfs-actions.pod:2940
11180 #, no-wrap
11181 msgid ""
11182 " char *\n"
11183 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
11184 "                                      const char *root);\n"
11185 "\n"
11186 msgstr ""
11187
11188 #. type: textblock
11189 #: ../src/guestfs-actions.pod:2947 ../fish/guestfish-actions.pod:2033
11190 #, fuzzy
11191 #| msgid "This is an installed operating system."
11192 msgid "This returns the product variant of the inspected operating system."
11193 msgstr "Це встановлена операційна система."
11194
11195 #. type: textblock
11196 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:2036
11197 msgid ""
11198 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11199 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11200 "is usually a string such as C<Client> or C<Server> (other values are "
11201 "possible).  This can be used to distinguish consumer and enterprise versions "
11202 "of Windows that have the same version number (for example, Windows 7 and "
11203 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11204 "the latter is C<Server>)."
11205 msgstr ""
11206
11207 #. type: textblock
11208 #: ../src/guestfs-actions.pod:2959 ../fish/guestfish-actions.pod:2045
11209 msgid ""
11210 "For enterprise Linux guests, in future we intend this to return the product "
11211 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11212 "implemented at present."
11213 msgstr ""
11214
11215 #. type: textblock
11216 #: ../src/guestfs-actions.pod:2963 ../fish/guestfish-actions.pod:2049
11217 msgid ""
11218 "If the product variant could not be determined, then the string C<unknown> "
11219 "is returned."
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../src/guestfs-actions.pod:2966
11224 msgid ""
11225 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11226 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
11227 msgstr ""
11228
11229 #. type: =head2
11230 #: ../src/guestfs-actions.pod:2973
11231 msgid "guestfs_inspect_get_roots"
11232 msgstr ""
11233
11234 #. type: verbatim
11235 #: ../src/guestfs-actions.pod:2975
11236 #, no-wrap
11237 msgid ""
11238 " char **\n"
11239 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11240 "\n"
11241 msgstr ""
11242
11243 #. type: textblock
11244 #: ../src/guestfs-actions.pod:2978
11245 msgid ""
11246 "This function is a convenient way to get the list of root devices, as "
11247 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
11248 "the whole inspection process."
11249 msgstr ""
11250
11251 #. type: textblock
11252 #: ../src/guestfs-actions.pod:2982
11253 msgid ""
11254 "This returns an empty list if either no root devices were found or the "
11255 "caller has not called C<guestfs_inspect_os>."
11256 msgstr ""
11257
11258 #. type: textblock
11259 #: ../src/guestfs-actions.pod:2991
11260 msgid "(Added in 1.7.3)"
11261 msgstr ""
11262
11263 #. type: =head2
11264 #: ../src/guestfs-actions.pod:2993
11265 msgid "guestfs_inspect_get_type"
11266 msgstr ""
11267
11268 #. type: verbatim
11269 #: ../src/guestfs-actions.pod:2995
11270 #, no-wrap
11271 msgid ""
11272 " char *\n"
11273 " guestfs_inspect_get_type (guestfs_h *g,\n"
11274 "                           const char *root);\n"
11275 "\n"
11276 msgstr ""
11277
11278 #. type: textblock
11279 #: ../src/guestfs-actions.pod:3002 ../fish/guestfish-actions.pod:2076
11280 msgid ""
11281 "This returns the type of the inspected operating system.  Currently defined "
11282 "types are:"
11283 msgstr ""
11284
11285 #. type: =item
11286 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2081
11287 msgid "\"linux\""
11288 msgstr "\"linux\""
11289
11290 #. type: textblock
11291 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2083
11292 msgid "Any Linux-based operating system."
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../src/guestfs-actions.pod:3013 ../fish/guestfish-actions.pod:2087
11297 msgid "Any Microsoft Windows operating system."
11298 msgstr ""
11299
11300 #. type: =item
11301 #: ../src/guestfs-actions.pod:3015 ../fish/guestfish-actions.pod:2089
11302 msgid "\"freebsd\""
11303 msgstr "\"freebsd\""
11304
11305 #. type: textblock
11306 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2091
11307 msgid "FreeBSD."
11308 msgstr "FreeBSD."
11309
11310 #. type: textblock
11311 #: ../src/guestfs-actions.pod:3021 ../fish/guestfish-actions.pod:2095
11312 msgid "The operating system type could not be determined."
11313 msgstr ""
11314
11315 #. type: =head2
11316 #: ../src/guestfs-actions.pod:3035
11317 msgid "guestfs_inspect_get_windows_current_control_set"
11318 msgstr ""
11319
11320 #. type: verbatim
11321 #: ../src/guestfs-actions.pod:3037
11322 #, no-wrap
11323 msgid ""
11324 " char *\n"
11325 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
11326 "                                                  const char *root);\n"
11327 "\n"
11328 msgstr ""
11329
11330 #. type: textblock
11331 #: ../src/guestfs-actions.pod:3044 ../fish/guestfish-actions.pod:2111
11332 msgid ""
11333 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11334 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11335 msgstr ""
11336
11337 #. type: textblock
11338 #: ../src/guestfs-actions.pod:3047 ../fish/guestfish-actions.pod:2114
11339 msgid ""
11340 "This call assumes that the guest is Windows and that the Registry could be "
11341 "examined by inspection.  If this is not the case then an error is returned."
11342 msgstr ""
11343
11344 #. type: =head2
11345 #: ../src/guestfs-actions.pod:3056
11346 msgid "guestfs_inspect_get_windows_systemroot"
11347 msgstr ""
11348
11349 #. type: verbatim
11350 #: ../src/guestfs-actions.pod:3058
11351 #, no-wrap
11352 msgid ""
11353 " char *\n"
11354 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11355 "                                         const char *root);\n"
11356 "\n"
11357 msgstr ""
11358
11359 #. type: textblock
11360 #: ../src/guestfs-actions.pod:3065 ../fish/guestfish-actions.pod:2127
11361 msgid ""
11362 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11363 "is a directory path such as C</WINDOWS>."
11364 msgstr ""
11365
11366 #. type: textblock
11367 #: ../src/guestfs-actions.pod:3068 ../fish/guestfish-actions.pod:2130
11368 msgid ""
11369 "This call assumes that the guest is Windows and that the systemroot could be "
11370 "determined by inspection.  If this is not the case then an error is returned."
11371 msgstr ""
11372
11373 #. type: textblock
11374 #: ../src/guestfs-actions.pod:3077
11375 msgid "(Added in 1.5.25)"
11376 msgstr ""
11377
11378 #. type: =head2
11379 #: ../src/guestfs-actions.pod:3079
11380 msgid "guestfs_inspect_is_live"
11381 msgstr ""
11382
11383 #. type: verbatim
11384 #: ../src/guestfs-actions.pod:3081
11385 #, no-wrap
11386 msgid ""
11387 " int\n"
11388 " guestfs_inspect_is_live (guestfs_h *g,\n"
11389 "                          const char *root);\n"
11390 "\n"
11391 msgstr ""
11392
11393 #. type: textblock
11394 #: ../src/guestfs-actions.pod:3088
11395 msgid ""
11396 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11397 "disk), then this returns true if a live image was detected on the disk."
11398 msgstr ""
11399
11400 #. type: =head2
11401 #: ../src/guestfs-actions.pod:3096
11402 msgid "guestfs_inspect_is_multipart"
11403 msgstr ""
11404
11405 #. type: verbatim
11406 #: ../src/guestfs-actions.pod:3098
11407 #, no-wrap
11408 msgid ""
11409 " int\n"
11410 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
11411 "                               const char *root);\n"
11412 "\n"
11413 msgstr ""
11414
11415 #. type: textblock
11416 #: ../src/guestfs-actions.pod:3105
11417 msgid ""
11418 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11419 "disk), then this returns true if the disk is part of a set."
11420 msgstr ""
11421
11422 #. type: =head2
11423 #: ../src/guestfs-actions.pod:3113
11424 msgid "guestfs_inspect_is_netinst"
11425 msgstr ""
11426
11427 #. type: verbatim
11428 #: ../src/guestfs-actions.pod:3115
11429 #, no-wrap
11430 msgid ""
11431 " int\n"
11432 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
11433 "                             const char *root);\n"
11434 "\n"
11435 msgstr ""
11436
11437 #. type: textblock
11438 #: ../src/guestfs-actions.pod:3122
11439 msgid ""
11440 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11441 "disk), then this returns true if the disk is a network installer, ie. not a "
11442 "self-contained install CD but one which is likely to require network access "
11443 "to complete the install."
11444 msgstr ""
11445
11446 #. type: =head2
11447 #: ../src/guestfs-actions.pod:3132
11448 msgid "guestfs_inspect_list_applications"
11449 msgstr ""
11450
11451 #. type: verbatim
11452 #: ../src/guestfs-actions.pod:3134
11453 #, no-wrap
11454 msgid ""
11455 " struct guestfs_application_list *\n"
11456 " guestfs_inspect_list_applications (guestfs_h *g,\n"
11457 "                                    const char *root);\n"
11458 "\n"
11459 msgstr ""
11460
11461 #. type: textblock
11462 #: ../src/guestfs-actions.pod:3141 ../fish/guestfish-actions.pod:2184
11463 msgid "Return the list of applications installed in the operating system."
11464 msgstr ""
11465
11466 #. type: textblock
11467 #: ../src/guestfs-actions.pod:3143
11468 msgid ""
11469 "I<Note:> This call works differently from other parts of the inspection "
11470 "API.  You have to call C<guestfs_inspect_os>, then "
11471 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
11472 "this.  Listing applications is a significantly more difficult operation "
11473 "which requires access to the full filesystem.  Also note that unlike the "
11474 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
11475 "the libguestfs handle, this call actually reads parts of the mounted "
11476 "filesystems during the call."
11477 msgstr ""
11478
11479 #. type: textblock
11480 #: ../src/guestfs-actions.pod:3153 ../fish/guestfish-actions.pod:2196
11481 msgid ""
11482 "This returns an empty list if the inspection code was not able to determine "
11483 "the list of applications."
11484 msgstr ""
11485
11486 #. type: textblock
11487 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2199
11488 msgid "The application structure contains the following fields:"
11489 msgstr ""
11490
11491 #. type: =item
11492 #: ../src/guestfs-actions.pod:3160 ../fish/guestfish-actions.pod:2203
11493 msgid "C<app_name>"
11494 msgstr "C<app_name>"
11495
11496 #. type: textblock
11497 #: ../src/guestfs-actions.pod:3162 ../fish/guestfish-actions.pod:2205
11498 msgid ""
11499 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11500 "guests, this is the package name."
11501 msgstr ""
11502
11503 #. type: =item
11504 #: ../src/guestfs-actions.pod:3165 ../fish/guestfish-actions.pod:2208
11505 msgid "C<app_display_name>"
11506 msgstr "C<app_display_name>"
11507
11508 #. type: textblock
11509 #: ../src/guestfs-actions.pod:3167 ../fish/guestfish-actions.pod:2210
11510 msgid ""
11511 "The display name of the application, sometimes localized to the install "
11512 "language of the guest operating system."
11513 msgstr ""
11514
11515 #. type: textblock
11516 #: ../src/guestfs-actions.pod:3170 ../fish/guestfish-actions.pod:2213
11517 msgid ""
11518 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11519 "to display something can use C<app_name> instead."
11520 msgstr ""
11521
11522 #. type: =item
11523 #: ../src/guestfs-actions.pod:3173 ../fish/guestfish-actions.pod:2216
11524 msgid "C<app_epoch>"
11525 msgstr "C<app_epoch>"
11526
11527 #. type: textblock
11528 #: ../src/guestfs-actions.pod:3175 ../fish/guestfish-actions.pod:2218
11529 msgid ""
11530 "For package managers which use epochs, this contains the epoch of the "
11531 "package (an integer).  If unavailable, this is returned as C<0>."
11532 msgstr ""
11533
11534 #. type: =item
11535 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2221
11536 msgid "C<app_version>"
11537 msgstr "C<app_version>"
11538
11539 #. type: textblock
11540 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2223
11541 msgid ""
11542 "The version string of the application or package.  If unavailable this is "
11543 "returned as an empty string C<\"\">."
11544 msgstr ""
11545
11546 #. type: =item
11547 #: ../src/guestfs-actions.pod:3183 ../fish/guestfish-actions.pod:2226
11548 msgid "C<app_release>"
11549 msgstr "C<app_release>"
11550
11551 #. type: textblock
11552 #: ../src/guestfs-actions.pod:3185 ../fish/guestfish-actions.pod:2228
11553 msgid ""
11554 "The release string of the application or package, for package managers that "
11555 "use this.  If unavailable this is returned as an empty string C<\"\">."
11556 msgstr ""
11557
11558 #. type: =item
11559 #: ../src/guestfs-actions.pod:3189 ../fish/guestfish-actions.pod:2232
11560 msgid "C<app_install_path>"
11561 msgstr "C<app_install_path>"
11562
11563 #. type: textblock
11564 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2234
11565 msgid ""
11566 "The installation path of the application (on operating systems such as "
11567 "Windows which use installation paths).  This path is in the format used by "
11568 "the guest operating system, it is not a libguestfs path."
11569 msgstr ""
11570
11571 #. type: textblock
11572 #: ../src/guestfs-actions.pod:3196 ../fish/guestfish-actions.pod:2239
11573 msgid "If unavailable this is returned as an empty string C<\"\">."
11574 msgstr ""
11575
11576 #. type: =item
11577 #: ../src/guestfs-actions.pod:3198 ../fish/guestfish-actions.pod:2241
11578 msgid "C<app_trans_path>"
11579 msgstr "C<app_trans_path>"
11580
11581 #. type: textblock
11582 #: ../src/guestfs-actions.pod:3200 ../fish/guestfish-actions.pod:2243
11583 msgid ""
11584 "The install path translated into a libguestfs path.  If unavailable this is "
11585 "returned as an empty string C<\"\">."
11586 msgstr ""
11587
11588 #. type: =item
11589 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2246
11590 msgid "C<app_publisher>"
11591 msgstr "C<app_publisher>"
11592
11593 #. type: textblock
11594 #: ../src/guestfs-actions.pod:3205 ../fish/guestfish-actions.pod:2248
11595 msgid ""
11596 "The name of the publisher of the application, for package managers that use "
11597 "this.  If unavailable this is returned as an empty string C<\"\">."
11598 msgstr ""
11599
11600 #. type: =item
11601 #: ../src/guestfs-actions.pod:3209 ../fish/guestfish-actions.pod:2252
11602 msgid "C<app_url>"
11603 msgstr "C<app_url>"
11604
11605 #. type: textblock
11606 #: ../src/guestfs-actions.pod:3211 ../fish/guestfish-actions.pod:2254
11607 msgid ""
11608 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11609 "returned as an empty string C<\"\">."
11610 msgstr ""
11611
11612 #. type: =item
11613 #: ../src/guestfs-actions.pod:3214 ../fish/guestfish-actions.pod:2257
11614 msgid "C<app_source_package>"
11615 msgstr ""
11616
11617 #. type: textblock
11618 #: ../src/guestfs-actions.pod:3216 ../fish/guestfish-actions.pod:2259
11619 msgid ""
11620 "For packaging systems which support this, the name of the source package.  "
11621 "If unavailable this is returned as an empty string C<\"\">."
11622 msgstr ""
11623
11624 #. type: =item
11625 #: ../src/guestfs-actions.pod:3219 ../fish/guestfish-actions.pod:2262
11626 msgid "C<app_summary>"
11627 msgstr ""
11628
11629 #. type: textblock
11630 #: ../src/guestfs-actions.pod:3221 ../fish/guestfish-actions.pod:2264
11631 msgid ""
11632 "A short (usually one line) description of the application or package.  If "
11633 "unavailable this is returned as an empty string C<\"\">."
11634 msgstr ""
11635
11636 #. type: =item
11637 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2267
11638 msgid "C<app_description>"
11639 msgstr ""
11640
11641 #. type: textblock
11642 #: ../src/guestfs-actions.pod:3226 ../fish/guestfish-actions.pod:2269
11643 msgid ""
11644 "A longer description of the application or package.  If unavailable this is "
11645 "returned as an empty string C<\"\">."
11646 msgstr ""
11647
11648 #. type: textblock
11649 #: ../src/guestfs-actions.pod:3233
11650 msgid ""
11651 "This function returns a C<struct guestfs_application_list *>, or NULL if "
11652 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
11653 "after use>."
11654 msgstr ""
11655
11656 #. type: textblock
11657 #: ../src/guestfs-actions.pod:3237
11658 msgid "(Added in 1.7.8)"
11659 msgstr ""
11660
11661 #. type: =head2
11662 #: ../src/guestfs-actions.pod:3239
11663 msgid "guestfs_inspect_os"
11664 msgstr ""
11665
11666 #. type: verbatim
11667 #: ../src/guestfs-actions.pod:3241
11668 #, no-wrap
11669 msgid ""
11670 " char **\n"
11671 " guestfs_inspect_os (guestfs_h *g);\n"
11672 "\n"
11673 msgstr ""
11674
11675 #. type: textblock
11676 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2280
11677 msgid ""
11678 "This function uses other libguestfs functions and certain heuristics to "
11679 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11680 "for operating systems."
11681 msgstr ""
11682
11683 #. type: textblock
11684 #: ../src/guestfs-actions.pod:3248 ../fish/guestfish-actions.pod:2284
11685 msgid "The list returned is empty if no operating systems were found."
11686 msgstr ""
11687
11688 #. type: textblock
11689 #: ../src/guestfs-actions.pod:3250 ../fish/guestfish-actions.pod:2286
11690 msgid ""
11691 "If one operating system was found, then this returns a list with a single "
11692 "element, which is the name of the root filesystem of this operating system.  "
11693 "It is also possible for this function to return a list containing more than "
11694 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11695 "element being the root filesystem of one of the operating systems."
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../src/guestfs-actions.pod:3257
11700 msgid ""
11701 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
11702 "functions in order to query further information about each operating system, "
11703 "such as the name and version."
11704 msgstr ""
11705
11706 #. type: textblock
11707 #: ../src/guestfs-actions.pod:3262
11708 msgid ""
11709 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
11710 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
11711 "the contents.  This should be called with no disks currently mounted.  The "
11712 "function may also use Augeas, so any existing Augeas handle will be closed."
11713 msgstr ""
11714
11715 #. type: textblock
11716 #: ../src/guestfs-actions.pod:3268 ../fish/guestfish-actions.pod:2304
11717 msgid ""
11718 "This function cannot decrypt encrypted disks.  The caller must do that first "
11719 "(supplying the necessary keys) if the disk is encrypted."
11720 msgstr ""
11721
11722 #. type: textblock
11723 #: ../src/guestfs-actions.pod:3274 ../src/guestfs-actions.pod:3564
11724 #: ../src/guestfs-actions.pod:3626
11725 msgid "See also C<guestfs_list_filesystems>."
11726 msgstr ""
11727
11728 #. type: =head2
11729 #: ../src/guestfs-actions.pod:3282
11730 msgid "guestfs_is_blockdev"
11731 msgstr ""
11732
11733 #. type: verbatim
11734 #: ../src/guestfs-actions.pod:3284
11735 #, no-wrap
11736 msgid ""
11737 " int\n"
11738 " guestfs_is_blockdev (guestfs_h *g,\n"
11739 "                      const char *path);\n"
11740 "\n"
11741 msgstr ""
11742
11743 #. type: textblock
11744 #: ../src/guestfs-actions.pod:3288 ../fish/guestfish-actions.pod:2316
11745 msgid ""
11746 "This returns C<true> if and only if there is a block device with the given "
11747 "C<path> name."
11748 msgstr ""
11749
11750 #. type: textblock
11751 #: ../src/guestfs-actions.pod:3291 ../src/guestfs-actions.pod:3320
11752 #: ../src/guestfs-actions.pod:3350 ../src/guestfs-actions.pod:3365
11753 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3437
11754 #: ../src/guestfs-actions.pod:3452
11755 msgid "See also C<guestfs_stat>."
11756 msgstr ""
11757
11758 #. type: textblock
11759 #: ../src/guestfs-actions.pod:3295 ../src/guestfs-actions.pod:3324
11760 #: ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3441
11761 #: ../src/guestfs-actions.pod:3456
11762 msgid "(Added in 1.5.10)"
11763 msgstr ""
11764
11765 #. type: =head2
11766 #: ../src/guestfs-actions.pod:3297
11767 msgid "guestfs_is_busy"
11768 msgstr ""
11769
11770 #. type: verbatim
11771 #: ../src/guestfs-actions.pod:3299
11772 #, no-wrap
11773 msgid ""
11774 " int\n"
11775 " guestfs_is_busy (guestfs_h *g);\n"
11776 "\n"
11777 msgstr ""
11778
11779 #. type: textblock
11780 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2325
11781 msgid ""
11782 "This returns true iff this handle is busy processing a command (in the "
11783 "C<BUSY> state)."
11784 msgstr ""
11785
11786 #. type: =head2
11787 #: ../src/guestfs-actions.pod:3311
11788 msgid "guestfs_is_chardev"
11789 msgstr ""
11790
11791 #. type: verbatim
11792 #: ../src/guestfs-actions.pod:3313
11793 #, no-wrap
11794 msgid ""
11795 " int\n"
11796 " guestfs_is_chardev (guestfs_h *g,\n"
11797 "                     const char *path);\n"
11798 "\n"
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../src/guestfs-actions.pod:3317 ../fish/guestfish-actions.pod:2334
11803 msgid ""
11804 "This returns C<true> if and only if there is a character device with the "
11805 "given C<path> name."
11806 msgstr ""
11807
11808 #. type: =head2
11809 #: ../src/guestfs-actions.pod:3326
11810 msgid "guestfs_is_config"
11811 msgstr ""
11812
11813 #. type: verbatim
11814 #: ../src/guestfs-actions.pod:3328
11815 #, no-wrap
11816 msgid ""
11817 " int\n"
11818 " guestfs_is_config (guestfs_h *g);\n"
11819 "\n"
11820 msgstr ""
11821
11822 #. type: textblock
11823 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:2343
11824 msgid ""
11825 "This returns true iff this handle is being configured (in the C<CONFIG> "
11826 "state)."
11827 msgstr ""
11828
11829 #. type: =head2
11830 #: ../src/guestfs-actions.pod:3340
11831 msgid "guestfs_is_dir"
11832 msgstr ""
11833
11834 #. type: verbatim
11835 #: ../src/guestfs-actions.pod:3342
11836 #, no-wrap
11837 msgid ""
11838 " int\n"
11839 " guestfs_is_dir (guestfs_h *g,\n"
11840 "                 const char *path);\n"
11841 "\n"
11842 msgstr ""
11843
11844 #. type: textblock
11845 #: ../src/guestfs-actions.pod:3346 ../fish/guestfish-actions.pod:2352
11846 msgid ""
11847 "This returns C<true> if and only if there is a directory with the given "
11848 "C<path> name.  Note that it returns false for other objects like files."
11849 msgstr ""
11850
11851 #. type: =head2
11852 #: ../src/guestfs-actions.pod:3356
11853 msgid "guestfs_is_fifo"
11854 msgstr ""
11855
11856 #. type: verbatim
11857 #: ../src/guestfs-actions.pod:3358
11858 #, no-wrap
11859 msgid ""
11860 " int\n"
11861 " guestfs_is_fifo (guestfs_h *g,\n"
11862 "                  const char *path);\n"
11863 "\n"
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../src/guestfs-actions.pod:3362 ../fish/guestfish-actions.pod:2362
11868 msgid ""
11869 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11870 "given C<path> name."
11871 msgstr ""
11872
11873 #. type: =head2
11874 #: ../src/guestfs-actions.pod:3371
11875 msgid "guestfs_is_file"
11876 msgstr ""
11877
11878 #. type: verbatim
11879 #: ../src/guestfs-actions.pod:3373
11880 #, no-wrap
11881 msgid ""
11882 " int\n"
11883 " guestfs_is_file (guestfs_h *g,\n"
11884 "                  const char *path);\n"
11885 "\n"
11886 msgstr ""
11887
11888 #. type: textblock
11889 #: ../src/guestfs-actions.pod:3377 ../fish/guestfish-actions.pod:2371
11890 msgid ""
11891 "This returns C<true> if and only if there is a regular file with the given "
11892 "C<path> name.  Note that it returns false for other objects like directories."
11893 msgstr ""
11894
11895 #. type: =head2
11896 #: ../src/guestfs-actions.pod:3387
11897 msgid "guestfs_is_launching"
11898 msgstr ""
11899
11900 #. type: verbatim
11901 #: ../src/guestfs-actions.pod:3389
11902 #, no-wrap
11903 msgid ""
11904 " int\n"
11905 " guestfs_is_launching (guestfs_h *g);\n"
11906 "\n"
11907 msgstr ""
11908
11909 #. type: textblock
11910 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2381
11911 msgid ""
11912 "This returns true iff this handle is launching the subprocess (in the "
11913 "C<LAUNCHING> state)."
11914 msgstr ""
11915
11916 #. type: =head2
11917 #: ../src/guestfs-actions.pod:3401
11918 msgid "guestfs_is_lv"
11919 msgstr ""
11920
11921 #. type: verbatim
11922 #: ../src/guestfs-actions.pod:3403
11923 #, no-wrap
11924 msgid ""
11925 " int\n"
11926 " guestfs_is_lv (guestfs_h *g,\n"
11927 "                const char *device);\n"
11928 "\n"
11929 msgstr ""
11930
11931 #. type: textblock
11932 #: ../src/guestfs-actions.pod:3407 ../fish/guestfish-actions.pod:2390
11933 msgid ""
11934 "This command tests whether C<device> is a logical volume, and returns true "
11935 "iff this is the case."
11936 msgstr ""
11937
11938 #. type: =head2
11939 #: ../src/guestfs-actions.pod:3414
11940 msgid "guestfs_is_ready"
11941 msgstr ""
11942
11943 #. type: verbatim
11944 #: ../src/guestfs-actions.pod:3416
11945 #, no-wrap
11946 msgid ""
11947 " int\n"
11948 " guestfs_is_ready (guestfs_h *g);\n"
11949 "\n"
11950 msgstr ""
11951
11952 #. type: textblock
11953 #: ../src/guestfs-actions.pod:3419 ../fish/guestfish-actions.pod:2397
11954 msgid ""
11955 "This returns true iff this handle is ready to accept commands (in the "
11956 "C<READY> state)."
11957 msgstr ""
11958
11959 #. type: =head2
11960 #: ../src/guestfs-actions.pod:3428
11961 msgid "guestfs_is_socket"
11962 msgstr ""
11963
11964 #. type: verbatim
11965 #: ../src/guestfs-actions.pod:3430
11966 #, no-wrap
11967 msgid ""
11968 " int\n"
11969 " guestfs_is_socket (guestfs_h *g,\n"
11970 "                    const char *path);\n"
11971 "\n"
11972 msgstr ""
11973
11974 #. type: textblock
11975 #: ../src/guestfs-actions.pod:3434 ../fish/guestfish-actions.pod:2406
11976 msgid ""
11977 "This returns C<true> if and only if there is a Unix domain socket with the "
11978 "given C<path> name."
11979 msgstr ""
11980
11981 #. type: =head2
11982 #: ../src/guestfs-actions.pod:3443
11983 msgid "guestfs_is_symlink"
11984 msgstr ""
11985
11986 #. type: verbatim
11987 #: ../src/guestfs-actions.pod:3445
11988 #, no-wrap
11989 msgid ""
11990 " int\n"
11991 " guestfs_is_symlink (guestfs_h *g,\n"
11992 "                     const char *path);\n"
11993 "\n"
11994 msgstr ""
11995
11996 #. type: textblock
11997 #: ../src/guestfs-actions.pod:3449 ../fish/guestfish-actions.pod:2415
11998 msgid ""
11999 "This returns C<true> if and only if there is a symbolic link with the given "
12000 "C<path> name."
12001 msgstr ""
12002
12003 #. type: =head2
12004 #: ../src/guestfs-actions.pod:3458
12005 msgid "guestfs_kill_subprocess"
12006 msgstr ""
12007
12008 #. type: verbatim
12009 #: ../src/guestfs-actions.pod:3460
12010 #, no-wrap
12011 msgid ""
12012 " int\n"
12013 " guestfs_kill_subprocess (guestfs_h *g);\n"
12014 "\n"
12015 msgstr ""
12016
12017 #. type: textblock
12018 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2424
12019 msgid "This kills the qemu subprocess.  You should never need to call this."
12020 msgstr ""
12021
12022 #. type: =head2
12023 #: ../src/guestfs-actions.pod:3469
12024 msgid "guestfs_launch"
12025 msgstr ""
12026
12027 #. type: verbatim
12028 #: ../src/guestfs-actions.pod:3471
12029 #, no-wrap
12030 msgid ""
12031 " int\n"
12032 " guestfs_launch (guestfs_h *g);\n"
12033 "\n"
12034 msgstr ""
12035
12036 #. type: textblock
12037 #: ../src/guestfs-actions.pod:3474 ../fish/guestfish-actions.pod:2432
12038 msgid ""
12039 "Internally libguestfs is implemented by running a virtual machine using "
12040 "L<qemu(1)>."
12041 msgstr ""
12042
12043 #. type: textblock
12044 #: ../src/guestfs-actions.pod:3477 ../fish/guestfish-actions.pod:2435
12045 msgid ""
12046 "You should call this after configuring the handle (eg. adding drives) but "
12047 "before performing any actions."
12048 msgstr ""
12049
12050 #. type: =head2
12051 #: ../src/guestfs-actions.pod:3489
12052 msgid "guestfs_lchown"
12053 msgstr ""
12054
12055 #. type: verbatim
12056 #: ../src/guestfs-actions.pod:3491
12057 #, no-wrap
12058 msgid ""
12059 " int\n"
12060 " guestfs_lchown (guestfs_h *g,\n"
12061 "                 int owner,\n"
12062 "                 int group,\n"
12063 "                 const char *path);\n"
12064 "\n"
12065 msgstr ""
12066
12067 #. type: textblock
12068 #: ../src/guestfs-actions.pod:3497
12069 msgid ""
12070 "Change the file owner to C<owner> and group to C<group>.  This is like "
12071 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12072 "changed, not the target."
12073 msgstr ""
12074
12075 #. type: =head2
12076 #: ../src/guestfs-actions.pod:3509
12077 msgid "guestfs_lgetxattr"
12078 msgstr ""
12079
12080 #. type: verbatim
12081 #: ../src/guestfs-actions.pod:3511
12082 #, no-wrap
12083 msgid ""
12084 " char *\n"
12085 " guestfs_lgetxattr (guestfs_h *g,\n"
12086 "                    const char *path,\n"
12087 "                    const char *name,\n"
12088 "                    size_t *size_r);\n"
12089 "\n"
12090 msgstr ""
12091
12092 #. type: textblock
12093 #: ../src/guestfs-actions.pod:3517 ../fish/guestfish-actions.pod:2454
12094 msgid ""
12095 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12096 "is a symlink, then this call returns an extended attribute from the symlink."
12097 msgstr ""
12098
12099 #. type: textblock
12100 #: ../src/guestfs-actions.pod:3531
12101 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12102 msgstr ""
12103
12104 #. type: =head2
12105 #: ../src/guestfs-actions.pod:3539
12106 msgid "guestfs_lgetxattrs"
12107 msgstr ""
12108
12109 #. type: verbatim
12110 #: ../src/guestfs-actions.pod:3541
12111 #, no-wrap
12112 msgid ""
12113 " struct guestfs_xattr_list *\n"
12114 " guestfs_lgetxattrs (guestfs_h *g,\n"
12115 "                     const char *path);\n"
12116 "\n"
12117 msgstr ""
12118
12119 #. type: textblock
12120 #: ../src/guestfs-actions.pod:3545
12121 msgid ""
12122 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
12123 "then it returns the extended attributes of the link itself."
12124 msgstr ""
12125
12126 #. type: =head2
12127 #: ../src/guestfs-actions.pod:3555
12128 msgid "guestfs_list_devices"
12129 msgstr ""
12130
12131 #. type: verbatim
12132 #: ../src/guestfs-actions.pod:3557
12133 #, no-wrap
12134 msgid ""
12135 " char **\n"
12136 " guestfs_list_devices (guestfs_h *g);\n"
12137 "\n"
12138 msgstr ""
12139
12140 #. type: textblock
12141 #: ../src/guestfs-actions.pod:3560 ../fish/guestfish-actions.pod:2482
12142 msgid "List all the block devices."
12143 msgstr ""
12144
12145 #. type: textblock
12146 #: ../src/guestfs-actions.pod:3562 ../fish/guestfish-actions.pod:2484
12147 msgid "The full block device names are returned, eg. C</dev/sda>."
12148 msgstr ""
12149
12150 #. type: =head2
12151 #: ../src/guestfs-actions.pod:3572
12152 msgid "guestfs_list_filesystems"
12153 msgstr ""
12154
12155 #. type: verbatim
12156 #: ../src/guestfs-actions.pod:3574
12157 #, no-wrap
12158 msgid ""
12159 " char **\n"
12160 " guestfs_list_filesystems (guestfs_h *g);\n"
12161 "\n"
12162 msgstr ""
12163
12164 #. type: textblock
12165 #: ../src/guestfs-actions.pod:3577 ../fish/guestfish-actions.pod:2492
12166 msgid ""
12167 "This inspection command looks for filesystems on partitions, block devices "
12168 "and logical volumes, returning a list of devices containing filesystems and "
12169 "their type."
12170 msgstr ""
12171
12172 #. type: textblock
12173 #: ../src/guestfs-actions.pod:3581 ../fish/guestfish-actions.pod:2496
12174 msgid ""
12175 "The return value is a hash, where the keys are the devices containing "
12176 "filesystems, and the values are the filesystem types.  For example:"
12177 msgstr ""
12178
12179 #. type: verbatim
12180 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2500
12181 #, no-wrap
12182 msgid ""
12183 " \"/dev/sda1\" => \"ntfs\"\n"
12184 " \"/dev/sda2\" => \"ext2\"\n"
12185 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12186 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12187 "\n"
12188 msgstr ""
12189
12190 #. type: textblock
12191 #: ../src/guestfs-actions.pod:3590 ../fish/guestfish-actions.pod:2505
12192 msgid ""
12193 "The value can have the special value \"unknown\", meaning the content of the "
12194 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12195 msgstr ""
12196
12197 #. type: textblock
12198 #: ../src/guestfs-actions.pod:3594
12199 msgid ""
12200 "This command runs other libguestfs commands, which might include "
12201 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
12202 "soon after launch and only when nothing is mounted."
12203 msgstr ""
12204
12205 #. type: textblock
12206 #: ../src/guestfs-actions.pod:3598
12207 msgid ""
12208 "Not all of the filesystems returned will be mountable.  In particular, swap "
12209 "partitions are returned in the list.  Also this command does not check that "
12210 "each filesystem found is valid and mountable, and some filesystems might be "
12211 "mountable but require special options.  Filesystems may not all belong to a "
12212 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../src/guestfs-actions.pod:3612 ../src/guestfs-actions.pod:5224
12217 msgid "(Added in 1.5.15)"
12218 msgstr ""
12219
12220 #. type: =head2
12221 #: ../src/guestfs-actions.pod:3614
12222 msgid "guestfs_list_partitions"
12223 msgstr ""
12224
12225 #. type: verbatim
12226 #: ../src/guestfs-actions.pod:3616
12227 #, no-wrap
12228 msgid ""
12229 " char **\n"
12230 " guestfs_list_partitions (guestfs_h *g);\n"
12231 "\n"
12232 msgstr ""
12233
12234 #. type: textblock
12235 #: ../src/guestfs-actions.pod:3619 ../fish/guestfish-actions.pod:2525
12236 msgid "List all the partitions detected on all block devices."
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../src/guestfs-actions.pod:3621 ../fish/guestfish-actions.pod:2527
12241 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12242 msgstr ""
12243
12244 #. type: textblock
12245 #: ../src/guestfs-actions.pod:3623
12246 msgid ""
12247 "This does not return logical volumes.  For that you will need to call "
12248 "C<guestfs_lvs>."
12249 msgstr ""
12250
12251 #. type: =head2
12252 #: ../src/guestfs-actions.pod:3634
12253 msgid "guestfs_ll"
12254 msgstr ""
12255
12256 #. type: verbatim
12257 #: ../src/guestfs-actions.pod:3636
12258 #, no-wrap
12259 msgid ""
12260 " char *\n"
12261 " guestfs_ll (guestfs_h *g,\n"
12262 "             const char *directory);\n"
12263 "\n"
12264 msgstr ""
12265
12266 #. type: textblock
12267 #: ../src/guestfs-actions.pod:3640 ../fish/guestfish-actions.pod:2538
12268 msgid ""
12269 "List the files in C<directory> (relative to the root directory, there is no "
12270 "cwd) in the format of 'ls -la'."
12271 msgstr ""
12272
12273 #. type: textblock
12274 #: ../src/guestfs-actions.pod:3643 ../fish/guestfish-actions.pod:2541
12275 msgid ""
12276 "This command is mostly useful for interactive sessions.  It is I<not> "
12277 "intended that you try to parse the output string."
12278 msgstr ""
12279
12280 #. type: =head2
12281 #: ../src/guestfs-actions.pod:3651
12282 msgid "guestfs_ln"
12283 msgstr ""
12284
12285 #. type: verbatim
12286 #: ../src/guestfs-actions.pod:3653
12287 #, no-wrap
12288 msgid ""
12289 " int\n"
12290 " guestfs_ln (guestfs_h *g,\n"
12291 "             const char *target,\n"
12292 "             const char *linkname);\n"
12293 "\n"
12294 msgstr ""
12295
12296 #. type: textblock
12297 #: ../src/guestfs-actions.pod:3658 ../fish/guestfish-actions.pod:2548
12298 msgid "This command creates a hard link using the C<ln> command."
12299 msgstr ""
12300
12301 #. type: =head2
12302 #: ../src/guestfs-actions.pod:3664
12303 msgid "guestfs_ln_f"
12304 msgstr ""
12305
12306 #. type: verbatim
12307 #: ../src/guestfs-actions.pod:3666
12308 #, no-wrap
12309 msgid ""
12310 " int\n"
12311 " guestfs_ln_f (guestfs_h *g,\n"
12312 "               const char *target,\n"
12313 "               const char *linkname);\n"
12314 "\n"
12315 msgstr ""
12316
12317 #. type: textblock
12318 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2554
12319 msgid ""
12320 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12321 "option removes the link (C<linkname>) if it exists already."
12322 msgstr ""
12323
12324 #. type: =head2
12325 #: ../src/guestfs-actions.pod:3678
12326 msgid "guestfs_ln_s"
12327 msgstr ""
12328
12329 #. type: verbatim
12330 #: ../src/guestfs-actions.pod:3680
12331 #, no-wrap
12332 msgid ""
12333 " int\n"
12334 " guestfs_ln_s (guestfs_h *g,\n"
12335 "               const char *target,\n"
12336 "               const char *linkname);\n"
12337 "\n"
12338 msgstr ""
12339
12340 #. type: textblock
12341 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2561
12342 msgid "This command creates a symbolic link using the C<ln -s> command."
12343 msgstr ""
12344
12345 #. type: =head2
12346 #: ../src/guestfs-actions.pod:3691
12347 msgid "guestfs_ln_sf"
12348 msgstr ""
12349
12350 #. type: verbatim
12351 #: ../src/guestfs-actions.pod:3693
12352 #, no-wrap
12353 msgid ""
12354 " int\n"
12355 " guestfs_ln_sf (guestfs_h *g,\n"
12356 "                const char *target,\n"
12357 "                const char *linkname);\n"
12358 "\n"
12359 msgstr ""
12360
12361 #. type: textblock
12362 #: ../src/guestfs-actions.pod:3698 ../fish/guestfish-actions.pod:2567
12363 msgid ""
12364 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12365 "option removes the link (C<linkname>) if it exists already."
12366 msgstr ""
12367
12368 #. type: =head2
12369 #: ../src/guestfs-actions.pod:3705
12370 msgid "guestfs_lremovexattr"
12371 msgstr ""
12372
12373 #. type: verbatim
12374 #: ../src/guestfs-actions.pod:3707
12375 #, no-wrap
12376 msgid ""
12377 " int\n"
12378 " guestfs_lremovexattr (guestfs_h *g,\n"
12379 "                       const char *xattr,\n"
12380 "                       const char *path);\n"
12381 "\n"
12382 msgstr ""
12383
12384 #. type: textblock
12385 #: ../src/guestfs-actions.pod:3712
12386 msgid ""
12387 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
12388 "link, then it removes an extended attribute of the link itself."
12389 msgstr ""
12390
12391 #. type: =head2
12392 #: ../src/guestfs-actions.pod:3720
12393 msgid "guestfs_ls"
12394 msgstr ""
12395
12396 #. type: verbatim
12397 #: ../src/guestfs-actions.pod:3722
12398 #, no-wrap
12399 msgid ""
12400 " char **\n"
12401 " guestfs_ls (guestfs_h *g,\n"
12402 "             const char *directory);\n"
12403 "\n"
12404 msgstr ""
12405
12406 #. type: textblock
12407 #: ../src/guestfs-actions.pod:3726 ../fish/guestfish-actions.pod:2582
12408 msgid ""
12409 "List the files in C<directory> (relative to the root directory, there is no "
12410 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12411 msgstr ""
12412
12413 #. type: textblock
12414 #: ../src/guestfs-actions.pod:3730
12415 msgid ""
12416 "This command is mostly useful for interactive sessions.  Programs should "
12417 "probably use C<guestfs_readdir> instead."
12418 msgstr ""
12419
12420 #. type: =head2
12421 #: ../src/guestfs-actions.pod:3739
12422 msgid "guestfs_lsetxattr"
12423 msgstr ""
12424
12425 #. type: verbatim
12426 #: ../src/guestfs-actions.pod:3741
12427 #, no-wrap
12428 msgid ""
12429 " int\n"
12430 " guestfs_lsetxattr (guestfs_h *g,\n"
12431 "                    const char *xattr,\n"
12432 "                    const char *val,\n"
12433 "                    int vallen,\n"
12434 "                    const char *path);\n"
12435 "\n"
12436 msgstr ""
12437
12438 #. type: textblock
12439 #: ../src/guestfs-actions.pod:3748
12440 msgid ""
12441 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
12442 "then it sets an extended attribute of the link itself."
12443 msgstr ""
12444
12445 #. type: =head2
12446 #: ../src/guestfs-actions.pod:3756
12447 msgid "guestfs_lstat"
12448 msgstr ""
12449
12450 #. type: verbatim
12451 #: ../src/guestfs-actions.pod:3758
12452 #, no-wrap
12453 msgid ""
12454 " struct guestfs_stat *\n"
12455 " guestfs_lstat (guestfs_h *g,\n"
12456 "                const char *path);\n"
12457 "\n"
12458 msgstr ""
12459
12460 #. type: textblock
12461 #: ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:6355
12462 #: ../fish/guestfish-actions.pod:2601 ../fish/guestfish-actions.pod:4305
12463 msgid "Returns file information for the given C<path>."
12464 msgstr ""
12465
12466 #. type: textblock
12467 #: ../src/guestfs-actions.pod:3764
12468 msgid ""
12469 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
12470 "link, then the link is stat-ed, not the file it refers to."
12471 msgstr ""
12472
12473 #. type: textblock
12474 #: ../src/guestfs-actions.pod:3768 ../fish/guestfish-actions.pod:2607
12475 msgid "This is the same as the C<lstat(2)> system call."
12476 msgstr ""
12477
12478 #. type: textblock
12479 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:6359
12480 msgid ""
12481 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
12482 "error.  I<The caller must call C<guestfs_free_stat> after use>."
12483 msgstr ""
12484
12485 #. type: textblock
12486 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:6363
12487 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6762
12488 msgid "(Added in 0.9.2)"
12489 msgstr ""
12490
12491 #. type: =head2
12492 #: ../src/guestfs-actions.pod:3776
12493 msgid "guestfs_lstatlist"
12494 msgstr ""
12495
12496 #. type: verbatim
12497 #: ../src/guestfs-actions.pod:3778
12498 #, no-wrap
12499 msgid ""
12500 " struct guestfs_stat_list *\n"
12501 " guestfs_lstatlist (guestfs_h *g,\n"
12502 "                    const char *path,\n"
12503 "                    char *const *names);\n"
12504 "\n"
12505 msgstr ""
12506
12507 #. type: textblock
12508 #: ../src/guestfs-actions.pod:3783
12509 msgid ""
12510 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
12511 "files, where all files are in the directory C<path>.  C<names> is the list "
12512 "of files from this directory."
12513 msgstr ""
12514
12515 #. type: textblock
12516 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2617
12517 msgid ""
12518 "On return you get a list of stat structs, with a one-to-one correspondence "
12519 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12520 "then the C<ino> field of that structure is set to C<-1>."
12521 msgstr ""
12522
12523 #. type: textblock
12524 #: ../src/guestfs-actions.pod:3792
12525 msgid ""
12526 "This call is intended for programs that want to efficiently list a directory "
12527 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
12528 "for a similarly efficient call for getting extended attributes.  Very long "
12529 "directory listings might cause the protocol message size to be exceeded, "
12530 "causing this call to fail.  The caller must split up such requests into "
12531 "smaller groups of names."
12532 msgstr ""
12533
12534 #. type: textblock
12535 #: ../src/guestfs-actions.pod:3800
12536 msgid ""
12537 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
12538 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
12539 msgstr ""
12540
12541 #. type: =head2
12542 #: ../src/guestfs-actions.pod:3806
12543 msgid "guestfs_luks_add_key"
12544 msgstr ""
12545
12546 #. type: verbatim
12547 #: ../src/guestfs-actions.pod:3808
12548 #, no-wrap
12549 msgid ""
12550 " int\n"
12551 " guestfs_luks_add_key (guestfs_h *g,\n"
12552 "                       const char *device,\n"
12553 "                       const char *key,\n"
12554 "                       const char *newkey,\n"
12555 "                       int keyslot);\n"
12556 "\n"
12557 msgstr ""
12558
12559 #. type: textblock
12560 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2634
12561 msgid ""
12562 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12563 "existing key, and is used to access the device.  C<newkey> is the new key to "
12564 "add.  C<keyslot> is the key slot that will be replaced."
12565 msgstr ""
12566
12567 #. type: textblock
12568 #: ../src/guestfs-actions.pod:3820
12569 msgid ""
12570 "Note that if C<keyslot> already contains a key, then this command will "
12571 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
12572 msgstr ""
12573
12574 #. type: textblock
12575 #: ../src/guestfs-actions.pod:3826 ../src/guestfs-actions.pod:3866
12576 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
12577 #: ../src/guestfs-actions.pod:3941 ../src/guestfs-actions.pod:3960
12578 msgid ""
12579 "This function takes a key or passphrase parameter which could contain "
12580 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
12581 "information."
12582 msgstr ""
12583
12584 #. type: textblock
12585 #: ../src/guestfs-actions.pod:3830 ../src/guestfs-actions.pod:3870
12586 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3913
12587 msgid "(Added in 1.5.2)"
12588 msgstr ""
12589
12590 #. type: =head2
12591 #: ../src/guestfs-actions.pod:3832
12592 msgid "guestfs_luks_close"
12593 msgstr ""
12594
12595 #. type: verbatim
12596 #: ../src/guestfs-actions.pod:3834
12597 #, no-wrap
12598 msgid ""
12599 " int\n"
12600 " guestfs_luks_close (guestfs_h *g,\n"
12601 "                     const char *device);\n"
12602 "\n"
12603 msgstr ""
12604
12605 #. type: textblock
12606 #: ../src/guestfs-actions.pod:3838
12607 msgid ""
12608 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
12609 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
12610 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12611 "underlying block device."
12612 msgstr ""
12613
12614 #. type: textblock
12615 #: ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:3945
12616 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:4014
12617 #: ../src/guestfs-actions.pod:4062
12618 msgid "(Added in 1.5.1)"
12619 msgstr ""
12620
12621 #. type: =head2
12622 #: ../src/guestfs-actions.pod:3848
12623 msgid "guestfs_luks_format"
12624 msgstr ""
12625
12626 #. type: verbatim
12627 #: ../src/guestfs-actions.pod:3850
12628 #, no-wrap
12629 msgid ""
12630 " int\n"
12631 " guestfs_luks_format (guestfs_h *g,\n"
12632 "                      const char *device,\n"
12633 "                      const char *key,\n"
12634 "                      int keyslot);\n"
12635 "\n"
12636 msgstr ""
12637
12638 #. type: textblock
12639 #: ../src/guestfs-actions.pod:3856 ../fish/guestfish-actions.pod:2660
12640 msgid ""
12641 "This command erases existing data on C<device> and formats the device as a "
12642 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12643 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12644 msgstr ""
12645
12646 #. type: textblock
12647 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:3886
12648 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4975
12649 #: ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:6162
12650 #: ../src/guestfs-actions.pod:6192 ../src/guestfs-actions.pod:6225
12651 #: ../src/guestfs-actions.pod:7406 ../fish/guestfish-actions.pod:2668
12652 #: ../fish/guestfish-actions.pod:2681 ../fish/guestfish-actions.pod:2765
12653 #: ../fish/guestfish-actions.pod:3346 ../fish/guestfish-actions.pod:3866
12654 #: ../fish/guestfish-actions.pod:4176 ../fish/guestfish-actions.pod:4199
12655 #: ../fish/guestfish-actions.pod:4221 ../fish/guestfish-actions.pod:4950
12656 msgid ""
12657 "B<This command is dangerous.  Without careful use you can easily destroy all "
12658 "your data>."
12659 msgstr ""
12660
12661 #. type: =head2
12662 #: ../src/guestfs-actions.pod:3872
12663 msgid "guestfs_luks_format_cipher"
12664 msgstr ""
12665
12666 #. type: verbatim
12667 #: ../src/guestfs-actions.pod:3874
12668 #, no-wrap
12669 msgid ""
12670 " int\n"
12671 " guestfs_luks_format_cipher (guestfs_h *g,\n"
12672 "                             const char *device,\n"
12673 "                             const char *key,\n"
12674 "                             int keyslot,\n"
12675 "                             const char *cipher);\n"
12676 "\n"
12677 msgstr ""
12678
12679 #. type: textblock
12680 #: ../src/guestfs-actions.pod:3881
12681 msgid ""
12682 "This command is the same as C<guestfs_luks_format> but it also allows you to "
12683 "set the C<cipher> used."
12684 msgstr ""
12685
12686 #. type: =head2
12687 #: ../src/guestfs-actions.pod:3895
12688 msgid "guestfs_luks_kill_slot"
12689 msgstr ""
12690
12691 #. type: verbatim
12692 #: ../src/guestfs-actions.pod:3897
12693 #, no-wrap
12694 msgid ""
12695 " int\n"
12696 " guestfs_luks_kill_slot (guestfs_h *g,\n"
12697 "                         const char *device,\n"
12698 "                         const char *key,\n"
12699 "                         int keyslot);\n"
12700 "\n"
12701 msgstr ""
12702
12703 #. type: textblock
12704 #: ../src/guestfs-actions.pod:3903 ../fish/guestfish-actions.pod:2688
12705 msgid ""
12706 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12707 "device C<device>.  C<key> must be one of the I<other> keys."
12708 msgstr ""
12709
12710 #. type: =head2
12711 #: ../src/guestfs-actions.pod:3915
12712 msgid "guestfs_luks_open"
12713 msgstr ""
12714
12715 #. type: verbatim
12716 #: ../src/guestfs-actions.pod:3917
12717 #, no-wrap
12718 msgid ""
12719 " int\n"
12720 " guestfs_luks_open (guestfs_h *g,\n"
12721 "                    const char *device,\n"
12722 "                    const char *key,\n"
12723 "                    const char *mapname);\n"
12724 "\n"
12725 msgstr ""
12726
12727 #. type: textblock
12728 #: ../src/guestfs-actions.pod:3923 ../fish/guestfish-actions.pod:2699
12729 msgid ""
12730 "This command opens a block device which has been encrypted according to the "
12731 "Linux Unified Key Setup (LUKS) standard."
12732 msgstr ""
12733
12734 #. type: textblock
12735 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2702
12736 msgid "C<device> is the encrypted block device or partition."
12737 msgstr ""
12738
12739 #. type: textblock
12740 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:2704
12741 msgid ""
12742 "The caller must supply one of the keys associated with the LUKS block "
12743 "device, in the C<key> parameter."
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../src/guestfs-actions.pod:3931 ../fish/guestfish-actions.pod:2707
12748 msgid ""
12749 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12750 "writes to this block device are decrypted from and encrypted to the "
12751 "underlying C<device> respectively."
12752 msgstr ""
12753
12754 #. type: textblock
12755 #: ../src/guestfs-actions.pod:3935
12756 msgid ""
12757 "If this block device contains LVM volume groups, then calling "
12758 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
12759 "visible."
12760 msgstr ""
12761
12762 #. type: =head2
12763 #: ../src/guestfs-actions.pod:3947
12764 msgid "guestfs_luks_open_ro"
12765 msgstr ""
12766
12767 #. type: verbatim
12768 #: ../src/guestfs-actions.pod:3949
12769 #, no-wrap
12770 msgid ""
12771 " int\n"
12772 " guestfs_luks_open_ro (guestfs_h *g,\n"
12773 "                       const char *device,\n"
12774 "                       const char *key,\n"
12775 "                       const char *mapname);\n"
12776 "\n"
12777 msgstr ""
12778
12779 #. type: textblock
12780 #: ../src/guestfs-actions.pod:3955
12781 msgid ""
12782 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
12783 "created."
12784 msgstr ""
12785
12786 #. type: =head2
12787 #: ../src/guestfs-actions.pod:3966
12788 msgid "guestfs_lvcreate"
12789 msgstr ""
12790
12791 #. type: verbatim
12792 #: ../src/guestfs-actions.pod:3968
12793 #, no-wrap
12794 msgid ""
12795 " int\n"
12796 " guestfs_lvcreate (guestfs_h *g,\n"
12797 "                   const char *logvol,\n"
12798 "                   const char *volgroup,\n"
12799 "                   int mbytes);\n"
12800 "\n"
12801 msgstr ""
12802
12803 #. type: textblock
12804 #: ../src/guestfs-actions.pod:3974 ../fish/guestfish-actions.pod:2732
12805 msgid ""
12806 "This creates an LVM logical volume called C<logvol> on the volume group "
12807 "C<volgroup>, with C<size> megabytes."
12808 msgstr ""
12809
12810 #. type: =head2
12811 #: ../src/guestfs-actions.pod:3981
12812 msgid "guestfs_lvm_canonical_lv_name"
12813 msgstr ""
12814
12815 #. type: verbatim
12816 #: ../src/guestfs-actions.pod:3983
12817 #, no-wrap
12818 msgid ""
12819 " char *\n"
12820 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
12821 "                                const char *lvname);\n"
12822 "\n"
12823 msgstr ""
12824
12825 #. type: textblock
12826 #: ../src/guestfs-actions.pod:3987 ../fish/guestfish-actions.pod:2739
12827 msgid ""
12828 "This converts alternative naming schemes for LVs that you might find to the "
12829 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12830 "LV>."
12831 msgstr ""
12832
12833 #. type: textblock
12834 #: ../src/guestfs-actions.pod:3991 ../fish/guestfish-actions.pod:2743
12835 msgid ""
12836 "This command returns an error if the C<lvname> parameter does not refer to a "
12837 "logical volume."
12838 msgstr ""
12839
12840 #. type: textblock
12841 #: ../src/guestfs-actions.pod:3994
12842 msgid "See also C<guestfs_is_lv>."
12843 msgstr ""
12844
12845 #. type: textblock
12846 #: ../src/guestfs-actions.pod:3999
12847 msgid "(Added in 1.5.24)"
12848 msgstr ""
12849
12850 #. type: =head2
12851 #: ../src/guestfs-actions.pod:4001
12852 msgid "guestfs_lvm_clear_filter"
12853 msgstr ""
12854
12855 #. type: verbatim
12856 #: ../src/guestfs-actions.pod:4003
12857 #, no-wrap
12858 msgid ""
12859 " int\n"
12860 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
12861 "\n"
12862 msgstr ""
12863
12864 #. type: textblock
12865 #: ../src/guestfs-actions.pod:4006
12866 msgid ""
12867 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
12868 "see every block device."
12869 msgstr ""
12870
12871 #. type: textblock
12872 #: ../src/guestfs-actions.pod:4009 ../src/guestfs-actions.pod:4051
12873 #: ../fish/guestfish-actions.pod:2755 ../fish/guestfish-actions.pod:2786
12874 msgid ""
12875 "This command also clears the LVM cache and performs a volume group scan."
12876 msgstr ""
12877
12878 #. type: =head2
12879 #: ../src/guestfs-actions.pod:4016
12880 msgid "guestfs_lvm_remove_all"
12881 msgstr ""
12882
12883 #. type: verbatim
12884 #: ../src/guestfs-actions.pod:4018
12885 #, no-wrap
12886 msgid ""
12887 " int\n"
12888 " guestfs_lvm_remove_all (guestfs_h *g);\n"
12889 "\n"
12890 msgstr ""
12891
12892 #. type: textblock
12893 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:2762
12894 msgid ""
12895 "This command removes all LVM logical volumes, volume groups and physical "
12896 "volumes."
12897 msgstr ""
12898
12899 #. type: =head2
12900 #: ../src/guestfs-actions.pod:4031
12901 msgid "guestfs_lvm_set_filter"
12902 msgstr ""
12903
12904 #. type: verbatim
12905 #: ../src/guestfs-actions.pod:4033
12906 #, no-wrap
12907 msgid ""
12908 " int\n"
12909 " guestfs_lvm_set_filter (guestfs_h *g,\n"
12910 "                         char *const *devices);\n"
12911 "\n"
12912 msgstr ""
12913
12914 #. type: textblock
12915 #: ../src/guestfs-actions.pod:4037 ../fish/guestfish-actions.pod:2772
12916 msgid ""
12917 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12918 "block devices in the list C<devices>, and will ignore all other attached "
12919 "block devices."
12920 msgstr ""
12921
12922 #. type: textblock
12923 #: ../src/guestfs-actions.pod:4041 ../fish/guestfish-actions.pod:2776
12924 msgid ""
12925 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12926 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12927 "there are two types of duplication possible: either cloned PVs/VGs which "
12928 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12929 "same name.  In normal operation you cannot create this situation, but you "
12930 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12931 "inside the LVM metadata."
12932 msgstr ""
12933
12934 #. type: textblock
12935 #: ../src/guestfs-actions.pod:4054 ../fish/guestfish-actions.pod:2789
12936 msgid "You can filter whole block devices or individual partitions."
12937 msgstr ""
12938
12939 #. type: textblock
12940 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2791
12941 msgid ""
12942 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12943 "filesystem), even if you are not filtering out that VG."
12944 msgstr ""
12945
12946 #. type: =head2
12947 #: ../src/guestfs-actions.pod:4064
12948 msgid "guestfs_lvremove"
12949 msgstr ""
12950
12951 #. type: verbatim
12952 #: ../src/guestfs-actions.pod:4066
12953 #, no-wrap
12954 msgid ""
12955 " int\n"
12956 " guestfs_lvremove (guestfs_h *g,\n"
12957 "                   const char *device);\n"
12958 "\n"
12959 msgstr ""
12960
12961 #. type: textblock
12962 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:2799
12963 msgid ""
12964 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12965 "LV, such as C</dev/VG/LV>."
12966 msgstr ""
12967
12968 #. type: textblock
12969 #: ../src/guestfs-actions.pod:4073 ../fish/guestfish-actions.pod:2802
12970 msgid ""
12971 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12972 "dev/VG>."
12973 msgstr ""
12974
12975 #. type: textblock
12976 #: ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:5321
12977 #: ../src/guestfs-actions.pod:7138
12978 msgid "(Added in 1.0.13)"
12979 msgstr ""
12980
12981 #. type: =head2
12982 #: ../src/guestfs-actions.pod:4080
12983 msgid "guestfs_lvrename"
12984 msgstr ""
12985
12986 #. type: verbatim
12987 #: ../src/guestfs-actions.pod:4082
12988 #, no-wrap
12989 msgid ""
12990 " int\n"
12991 " guestfs_lvrename (guestfs_h *g,\n"
12992 "                   const char *logvol,\n"
12993 "                   const char *newlogvol);\n"
12994 "\n"
12995 msgstr ""
12996
12997 #. type: textblock
12998 #: ../src/guestfs-actions.pod:4087 ../fish/guestfish-actions.pod:2809
12999 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13000 msgstr ""
13001
13002 #. type: textblock
13003 #: ../src/guestfs-actions.pod:4091 ../src/guestfs-actions.pod:7151
13004 msgid "(Added in 1.0.83)"
13005 msgstr ""
13006
13007 #. type: =head2
13008 #: ../src/guestfs-actions.pod:4093
13009 msgid "guestfs_lvresize"
13010 msgstr ""
13011
13012 #. type: verbatim
13013 #: ../src/guestfs-actions.pod:4095
13014 #, no-wrap
13015 msgid ""
13016 " int\n"
13017 " guestfs_lvresize (guestfs_h *g,\n"
13018 "                   const char *device,\n"
13019 "                   int mbytes);\n"
13020 "\n"
13021 msgstr ""
13022
13023 #. type: textblock
13024 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2815
13025 msgid ""
13026 "This resizes (expands or shrinks) an existing LVM logical volume to "
13027 "C<mbytes>.  When reducing, data in the reduced part is lost."
13028 msgstr ""
13029
13030 #. type: =head2
13031 #: ../src/guestfs-actions.pod:4108
13032 msgid "guestfs_lvresize_free"
13033 msgstr ""
13034
13035 #. type: verbatim
13036 #: ../src/guestfs-actions.pod:4110
13037 #, no-wrap
13038 msgid ""
13039 " int\n"
13040 " guestfs_lvresize_free (guestfs_h *g,\n"
13041 "                        const char *lv,\n"
13042 "                        int percent);\n"
13043 "\n"
13044 msgstr ""
13045
13046 #. type: textblock
13047 #: ../src/guestfs-actions.pod:4115 ../fish/guestfish-actions.pod:2823
13048 msgid ""
13049 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13050 "remaining free space in the volume group.  Commonly you would call this with "
13051 "pc = 100 which expands the logical volume as much as possible, using all "
13052 "remaining free space in the volume group."
13053 msgstr ""
13054
13055 #. type: textblock
13056 #: ../src/guestfs-actions.pod:4123
13057 msgid "(Added in 1.3.3)"
13058 msgstr ""
13059
13060 #. type: =head2
13061 #: ../src/guestfs-actions.pod:4125
13062 msgid "guestfs_lvs"
13063 msgstr ""
13064
13065 #. type: verbatim
13066 #: ../src/guestfs-actions.pod:4127
13067 #, no-wrap
13068 msgid ""
13069 " char **\n"
13070 " guestfs_lvs (guestfs_h *g);\n"
13071 "\n"
13072 msgstr ""
13073
13074 #. type: textblock
13075 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2833
13076 msgid ""
13077 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13078 "(8)> command."
13079 msgstr ""
13080
13081 #. type: textblock
13082 #: ../src/guestfs-actions.pod:4133 ../fish/guestfish-actions.pod:2836
13083 msgid ""
13084 "This returns a list of the logical volume device names (eg. C</dev/"
13085 "VolGroup00/LogVol00>)."
13086 msgstr ""
13087
13088 #. type: textblock
13089 #: ../src/guestfs-actions.pod:4136
13090 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
13091 msgstr ""
13092
13093 #. type: =head2
13094 #: ../src/guestfs-actions.pod:4144
13095 msgid "guestfs_lvs_full"
13096 msgstr ""
13097
13098 #. type: verbatim
13099 #: ../src/guestfs-actions.pod:4146
13100 #, no-wrap
13101 msgid ""
13102 " struct guestfs_lvm_lv_list *\n"
13103 " guestfs_lvs_full (guestfs_h *g);\n"
13104 "\n"
13105 msgstr ""
13106
13107 #. type: textblock
13108 #: ../src/guestfs-actions.pod:4149 ../fish/guestfish-actions.pod:2845
13109 msgid ""
13110 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13111 "(8)> command.  The \"full\" version includes all fields."
13112 msgstr ""
13113
13114 #. type: textblock
13115 #: ../src/guestfs-actions.pod:4152
13116 msgid ""
13117 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
13118 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
13119 msgstr ""
13120
13121 #. type: =head2
13122 #: ../src/guestfs-actions.pod:4158
13123 msgid "guestfs_lvuuid"
13124 msgstr ""
13125
13126 #. type: verbatim
13127 #: ../src/guestfs-actions.pod:4160
13128 #, no-wrap
13129 msgid ""
13130 " char *\n"
13131 " guestfs_lvuuid (guestfs_h *g,\n"
13132 "                 const char *device);\n"
13133 "\n"
13134 msgstr ""
13135
13136 #. type: textblock
13137 #: ../src/guestfs-actions.pod:4164 ../fish/guestfish-actions.pod:2852
13138 msgid "This command returns the UUID of the LVM LV C<device>."
13139 msgstr ""
13140
13141 #. type: =head2
13142 #: ../src/guestfs-actions.pod:4171
13143 msgid "guestfs_lxattrlist"
13144 msgstr ""
13145
13146 #. type: verbatim
13147 #: ../src/guestfs-actions.pod:4173
13148 #, no-wrap
13149 msgid ""
13150 " struct guestfs_xattr_list *\n"
13151 " guestfs_lxattrlist (guestfs_h *g,\n"
13152 "                     const char *path,\n"
13153 "                     char *const *names);\n"
13154 "\n"
13155 msgstr ""
13156
13157 #. type: textblock
13158 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:2858
13159 msgid ""
13160 "This call allows you to get the extended attributes of multiple files, where "
13161 "all files are in the directory C<path>.  C<names> is the list of files from "
13162 "this directory."
13163 msgstr ""
13164
13165 #. type: textblock
13166 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2862
13167 msgid ""
13168 "On return you get a flat list of xattr structs which must be interpreted "
13169 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13170 "C<attrval> in this struct is zero-length to indicate there was an error "
13171 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13172 "number (the number of following attributes for this file, which could be C<"
13173 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13174 "for the first named file.  This repeats for the second and subsequent files."
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../src/guestfs-actions.pod:4192
13179 msgid ""
13180 "This call is intended for programs that want to efficiently list a directory "
13181 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
13182 "a similarly efficient call for getting standard stats.  Very long directory "
13183 "listings might cause the protocol message size to be exceeded, causing this "
13184 "call to fail.  The caller must split up such requests into smaller groups of "
13185 "names."
13186 msgstr ""
13187
13188 #. type: =head2
13189 #: ../src/guestfs-actions.pod:4206
13190 msgid "guestfs_mkdir"
13191 msgstr ""
13192
13193 #. type: verbatim
13194 #: ../src/guestfs-actions.pod:4208
13195 #, no-wrap
13196 msgid ""
13197 " int\n"
13198 " guestfs_mkdir (guestfs_h *g,\n"
13199 "                const char *path);\n"
13200 "\n"
13201 msgstr ""
13202
13203 #. type: textblock
13204 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:2884
13205 msgid "Create a directory named C<path>."
13206 msgstr ""
13207
13208 #. type: =head2
13209 #: ../src/guestfs-actions.pod:4218
13210 msgid "guestfs_mkdir_mode"
13211 msgstr ""
13212
13213 #. type: verbatim
13214 #: ../src/guestfs-actions.pod:4220
13215 #, no-wrap
13216 msgid ""
13217 " int\n"
13218 " guestfs_mkdir_mode (guestfs_h *g,\n"
13219 "                     const char *path,\n"
13220 "                     int mode);\n"
13221 "\n"
13222 msgstr ""
13223
13224 #. type: textblock
13225 #: ../src/guestfs-actions.pod:4225 ../fish/guestfish-actions.pod:2890
13226 msgid ""
13227 "This command creates a directory, setting the initial permissions of the "
13228 "directory to C<mode>."
13229 msgstr ""
13230
13231 #. type: textblock
13232 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:2893
13233 msgid ""
13234 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13235 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13236 "other ways."
13237 msgstr ""
13238
13239 #. type: textblock
13240 #: ../src/guestfs-actions.pod:4232
13241 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
13242 msgstr ""
13243
13244 #. type: =head2
13245 #: ../src/guestfs-actions.pod:4238
13246 msgid "guestfs_mkdir_p"
13247 msgstr ""
13248
13249 #. type: verbatim
13250 #: ../src/guestfs-actions.pod:4240
13251 #, no-wrap
13252 msgid ""
13253 " int\n"
13254 " guestfs_mkdir_p (guestfs_h *g,\n"
13255 "                  const char *path);\n"
13256 "\n"
13257 msgstr ""
13258
13259 #. type: textblock
13260 #: ../src/guestfs-actions.pod:4244 ../fish/guestfish-actions.pod:2903
13261 msgid ""
13262 "Create a directory named C<path>, creating any parent directories as "
13263 "necessary.  This is like the C<mkdir -p> shell command."
13264 msgstr ""
13265
13266 #. type: =head2
13267 #: ../src/guestfs-actions.pod:4251
13268 msgid "guestfs_mkdtemp"
13269 msgstr ""
13270
13271 #. type: verbatim
13272 #: ../src/guestfs-actions.pod:4253
13273 #, no-wrap
13274 msgid ""
13275 " char *\n"
13276 " guestfs_mkdtemp (guestfs_h *g,\n"
13277 "                  const char *template);\n"
13278 "\n"
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../src/guestfs-actions.pod:4257 ../fish/guestfish-actions.pod:2910
13283 msgid ""
13284 "This command creates a temporary directory.  The C<template> parameter "
13285 "should be a full pathname for the temporary directory name with the final "
13286 "six characters being \"XXXXXX\"."
13287 msgstr ""
13288
13289 #. type: textblock
13290 #: ../src/guestfs-actions.pod:4262 ../fish/guestfish-actions.pod:2915
13291 msgid ""
13292 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13293 "being suitable for Windows filesystems."
13294 msgstr ""
13295
13296 #. type: textblock
13297 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:2918
13298 msgid "The name of the temporary directory that was created is returned."
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../src/guestfs-actions.pod:4268 ../fish/guestfish-actions.pod:2921
13303 msgid "The temporary directory is created with mode 0700 and is owned by root."
13304 msgstr ""
13305
13306 #. type: textblock
13307 #: ../src/guestfs-actions.pod:4271 ../fish/guestfish-actions.pod:2924
13308 msgid ""
13309 "The caller is responsible for deleting the temporary directory and its "
13310 "contents after use."
13311 msgstr ""
13312
13313 #. type: textblock
13314 #: ../src/guestfs-actions.pod:4274 ../fish/guestfish-actions.pod:2927
13315 msgid "See also: L<mkdtemp(3)>"
13316 msgstr ""
13317
13318 #. type: =head2
13319 #: ../src/guestfs-actions.pod:4281
13320 msgid "guestfs_mke2fs_J"
13321 msgstr ""
13322
13323 #. type: verbatim
13324 #: ../src/guestfs-actions.pod:4283
13325 #, no-wrap
13326 msgid ""
13327 " int\n"
13328 " guestfs_mke2fs_J (guestfs_h *g,\n"
13329 "                   const char *fstype,\n"
13330 "                   int blocksize,\n"
13331 "                   const char *device,\n"
13332 "                   const char *journal);\n"
13333 "\n"
13334 msgstr ""
13335
13336 #. type: textblock
13337 #: ../src/guestfs-actions.pod:4290 ../fish/guestfish-actions.pod:2933
13338 msgid ""
13339 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13340 "C<journal>.  It is equivalent to the command:"
13341 msgstr ""
13342
13343 #. type: verbatim
13344 #: ../src/guestfs-actions.pod:4294 ../fish/guestfish-actions.pod:2937
13345 #, no-wrap
13346 msgid ""
13347 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13348 "\n"
13349 msgstr ""
13350
13351 #. type: textblock
13352 #: ../src/guestfs-actions.pod:4296
13353 msgid "See also C<guestfs_mke2journal>."
13354 msgstr ""
13355
13356 #. type: textblock
13357 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4318
13358 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4352
13359 #: ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:4380
13360 #: ../src/guestfs-actions.pod:4439 ../src/guestfs-actions.pod:4704
13361 msgid "(Added in 1.0.68)"
13362 msgstr ""
13363
13364 #. type: =head2
13365 #: ../src/guestfs-actions.pod:4302
13366 msgid "guestfs_mke2fs_JL"
13367 msgstr ""
13368
13369 #. type: verbatim
13370 #: ../src/guestfs-actions.pod:4304
13371 #, no-wrap
13372 msgid ""
13373 " int\n"
13374 " guestfs_mke2fs_JL (guestfs_h *g,\n"
13375 "                    const char *fstype,\n"
13376 "                    int blocksize,\n"
13377 "                    const char *device,\n"
13378 "                    const char *label);\n"
13379 "\n"
13380 msgstr ""
13381
13382 #. type: textblock
13383 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2945
13384 msgid ""
13385 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13386 "the journal labeled C<label>."
13387 msgstr ""
13388
13389 #. type: textblock
13390 #: ../src/guestfs-actions.pod:4314
13391 msgid "See also C<guestfs_mke2journal_L>."
13392 msgstr ""
13393
13394 #. type: =head2
13395 #: ../src/guestfs-actions.pod:4320
13396 msgid "guestfs_mke2fs_JU"
13397 msgstr ""
13398
13399 #. type: verbatim
13400 #: ../src/guestfs-actions.pod:4322
13401 #, no-wrap
13402 msgid ""
13403 " int\n"
13404 " guestfs_mke2fs_JU (guestfs_h *g,\n"
13405 "                    const char *fstype,\n"
13406 "                    int blocksize,\n"
13407 "                    const char *device,\n"
13408 "                    const char *uuid);\n"
13409 "\n"
13410 msgstr ""
13411
13412 #. type: textblock
13413 #: ../src/guestfs-actions.pod:4329 ../fish/guestfish-actions.pod:2954
13414 msgid ""
13415 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13416 "the journal with UUID C<uuid>."
13417 msgstr ""
13418
13419 #. type: textblock
13420 #: ../src/guestfs-actions.pod:4332
13421 msgid "See also C<guestfs_mke2journal_U>."
13422 msgstr ""
13423
13424 #. type: =head2
13425 #: ../src/guestfs-actions.pod:4338
13426 msgid "guestfs_mke2journal"
13427 msgstr ""
13428
13429 #. type: verbatim
13430 #: ../src/guestfs-actions.pod:4340
13431 #, no-wrap
13432 msgid ""
13433 " int\n"
13434 " guestfs_mke2journal (guestfs_h *g,\n"
13435 "                      int blocksize,\n"
13436 "                      const char *device);\n"
13437 "\n"
13438 msgstr ""
13439
13440 #. type: textblock
13441 #: ../src/guestfs-actions.pod:4345 ../fish/guestfish-actions.pod:2963
13442 msgid ""
13443 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13444 "command:"
13445 msgstr ""
13446
13447 #. type: verbatim
13448 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2966
13449 #, no-wrap
13450 msgid ""
13451 " mke2fs -O journal_dev -b blocksize device\n"
13452 "\n"
13453 msgstr ""
13454
13455 #. type: =head2
13456 #: ../src/guestfs-actions.pod:4354
13457 msgid "guestfs_mke2journal_L"
13458 msgstr ""
13459
13460 #. type: verbatim
13461 #: ../src/guestfs-actions.pod:4356
13462 #, no-wrap
13463 msgid ""
13464 " int\n"
13465 " guestfs_mke2journal_L (guestfs_h *g,\n"
13466 "                        int blocksize,\n"
13467 "                        const char *label,\n"
13468 "                        const char *device);\n"
13469 "\n"
13470 msgstr ""
13471
13472 #. type: textblock
13473 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:2972
13474 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13475 msgstr ""
13476
13477 #. type: =head2
13478 #: ../src/guestfs-actions.pod:4368
13479 msgid "guestfs_mke2journal_U"
13480 msgstr ""
13481
13482 #. type: verbatim
13483 #: ../src/guestfs-actions.pod:4370
13484 #, no-wrap
13485 msgid ""
13486 " int\n"
13487 " guestfs_mke2journal_U (guestfs_h *g,\n"
13488 "                        int blocksize,\n"
13489 "                        const char *uuid,\n"
13490 "                        const char *device);\n"
13491 "\n"
13492 msgstr ""
13493
13494 #. type: textblock
13495 #: ../src/guestfs-actions.pod:4376 ../fish/guestfish-actions.pod:2978
13496 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13497 msgstr ""
13498
13499 #. type: =head2
13500 #: ../src/guestfs-actions.pod:4382
13501 msgid "guestfs_mkfifo"
13502 msgstr ""
13503
13504 #. type: verbatim
13505 #: ../src/guestfs-actions.pod:4384
13506 #, no-wrap
13507 msgid ""
13508 " int\n"
13509 " guestfs_mkfifo (guestfs_h *g,\n"
13510 "                 int mode,\n"
13511 "                 const char *path);\n"
13512 "\n"
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../src/guestfs-actions.pod:4389
13517 msgid ""
13518 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13519 "is just a convenient wrapper around C<guestfs_mknod>."
13520 msgstr ""
13521
13522 #. type: =head2
13523 #: ../src/guestfs-actions.pod:4399
13524 msgid "guestfs_mkfs"
13525 msgstr ""
13526
13527 #. type: verbatim
13528 #: ../src/guestfs-actions.pod:4401
13529 #, no-wrap
13530 msgid ""
13531 " int\n"
13532 " guestfs_mkfs (guestfs_h *g,\n"
13533 "               const char *fstype,\n"
13534 "               const char *device);\n"
13535 "\n"
13536 msgstr ""
13537
13538 #. type: textblock
13539 #: ../src/guestfs-actions.pod:4406 ../fish/guestfish-actions.pod:2994
13540 msgid ""
13541 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13542 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13543 msgstr ""
13544
13545 #. type: =head2
13546 #: ../src/guestfs-actions.pod:4414
13547 msgid "guestfs_mkfs_b"
13548 msgstr ""
13549
13550 #. type: verbatim
13551 #: ../src/guestfs-actions.pod:4416
13552 #, no-wrap
13553 msgid ""
13554 " int\n"
13555 " guestfs_mkfs_b (guestfs_h *g,\n"
13556 "                 const char *fstype,\n"
13557 "                 int blocksize,\n"
13558 "                 const char *device);\n"
13559 "\n"
13560 msgstr ""
13561
13562 #. type: textblock
13563 #: ../src/guestfs-actions.pod:4422
13564 msgid ""
13565 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
13566 "block size of the resulting filesystem.  Supported block sizes depend on the "
13567 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13568 msgstr ""
13569
13570 #. type: textblock
13571 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:4470
13572 #: ../fish/guestfish-actions.pod:3007 ../fish/guestfish-actions.pod:3034
13573 msgid ""
13574 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13575 "cluster size."
13576 msgstr ""
13577
13578 #. type: textblock
13579 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:3010
13580 msgid ""
13581 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
13582 msgstr ""
13583
13584 #. type: =head2
13585 #: ../src/guestfs-actions.pod:4441
13586 msgid "guestfs_mkfs_opts"
13587 msgstr ""
13588
13589 #. type: verbatim
13590 #: ../src/guestfs-actions.pod:4443
13591 #, no-wrap
13592 msgid ""
13593 " int\n"
13594 " guestfs_mkfs_opts (guestfs_h *g,\n"
13595 "                    const char *fstype,\n"
13596 "                    const char *device,\n"
13597 "                    ...);\n"
13598 "\n"
13599 msgstr ""
13600
13601 #. type: verbatim
13602 #: ../src/guestfs-actions.pod:4454
13603 #, no-wrap
13604 msgid ""
13605 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
13606 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
13607 "\n"
13608 msgstr ""
13609
13610 #. type: textblock
13611 #: ../src/guestfs-actions.pod:4457 ../fish/guestfish-actions.pod:3021
13612 msgid ""
13613 "This function creates a filesystem on C<device>.  The filesystem type is "
13614 "C<fstype>, for example C<ext3>."
13615 msgstr ""
13616
13617 #. type: =item
13618 #: ../src/guestfs-actions.pod:4464 ../fish/guestfish-actions.pod:3028
13619 msgid "C<blocksize>"
13620 msgstr ""
13621
13622 #. type: textblock
13623 #: ../src/guestfs-actions.pod:4466 ../fish/guestfish-actions.pod:3030
13624 msgid ""
13625 "The filesystem block size.  Supported block sizes depend on the filesystem "
13626 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13627 "filesystems."
13628 msgstr ""
13629
13630 #. type: textblock
13631 #: ../src/guestfs-actions.pod:4473 ../fish/guestfish-actions.pod:3037
13632 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13633 msgstr ""
13634
13635 #. type: =item
13636 #: ../src/guestfs-actions.pod:4475 ../fish/guestfish-actions.pod:3039
13637 msgid "C<features>"
13638 msgstr ""
13639
13640 #. type: textblock
13641 #: ../src/guestfs-actions.pod:4477 ../fish/guestfish-actions.pod:3041
13642 msgid "This passes the I<-O> parameter to the external mkfs program."
13643 msgstr ""
13644
13645 #. type: textblock
13646 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:3043
13647 msgid ""
13648 "For certain filesystem types, this allows extra filesystem features to be "
13649 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13650 msgstr ""
13651
13652 #. type: textblock
13653 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3047
13654 msgid ""
13655 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13656 "type."
13657 msgstr ""
13658
13659 #. type: textblock
13660 #: ../src/guestfs-actions.pod:4490
13661 msgid "(Added in 1.7.19)"
13662 msgstr ""
13663
13664 #. type: =head2
13665 #: ../src/guestfs-actions.pod:4492
13666 msgid "guestfs_mkfs_opts_va"
13667 msgstr ""
13668
13669 #. type: verbatim
13670 #: ../src/guestfs-actions.pod:4494
13671 #, no-wrap
13672 msgid ""
13673 " int\n"
13674 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
13675 "                       const char *fstype,\n"
13676 "                       const char *device,\n"
13677 "                       va_list args);\n"
13678 "\n"
13679 msgstr ""
13680
13681 #. type: textblock
13682 #: ../src/guestfs-actions.pod:4500
13683 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
13684 msgstr ""
13685
13686 #. type: =head2
13687 #: ../src/guestfs-actions.pod:4504
13688 msgid "guestfs_mkfs_opts_argv"
13689 msgstr ""
13690
13691 #. type: verbatim
13692 #: ../src/guestfs-actions.pod:4506
13693 #, no-wrap
13694 msgid ""
13695 " int\n"
13696 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
13697 "                         const char *fstype,\n"
13698 "                         const char *device,\n"
13699 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
13700 "\n"
13701 msgstr ""
13702
13703 #. type: textblock
13704 #: ../src/guestfs-actions.pod:4512
13705 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
13706 msgstr ""
13707
13708 #. type: =head2
13709 #: ../src/guestfs-actions.pod:4516
13710 msgid "guestfs_mkmountpoint"
13711 msgstr ""
13712
13713 #. type: verbatim
13714 #: ../src/guestfs-actions.pod:4518
13715 #, no-wrap
13716 msgid ""
13717 " int\n"
13718 " guestfs_mkmountpoint (guestfs_h *g,\n"
13719 "                       const char *exemptpath);\n"
13720 "\n"
13721 msgstr ""
13722
13723 #. type: textblock
13724 #: ../src/guestfs-actions.pod:4522
13725 msgid ""
13726 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
13727 "that can be used to create extra mountpoints before mounting the first "
13728 "filesystem."
13729 msgstr ""
13730
13731 #. type: textblock
13732 #: ../src/guestfs-actions.pod:4526 ../fish/guestfish-actions.pod:3062
13733 msgid ""
13734 "These calls are I<only> necessary in some very limited circumstances, mainly "
13735 "the case where you want to mount a mix of unrelated and/or read-only "
13736 "filesystems together."
13737 msgstr ""
13738
13739 #. type: textblock
13740 #: ../src/guestfs-actions.pod:4530 ../fish/guestfish-actions.pod:3066
13741 msgid ""
13742 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13743 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13744 "inside that.  You can unpack this as follows in guestfish:"
13745 msgstr ""
13746
13747 #. type: verbatim
13748 #: ../src/guestfs-actions.pod:4535 ../fish/guestfish-actions.pod:3071
13749 #, no-wrap
13750 msgid ""
13751 " add-ro Fedora-11-i686-Live.iso\n"
13752 " run\n"
13753 " mkmountpoint /cd\n"
13754 " mkmountpoint /sqsh\n"
13755 " mkmountpoint /ext3fs\n"
13756 " mount /dev/sda /cd\n"
13757 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13758 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13759 "\n"
13760 msgstr ""
13761
13762 #. type: textblock
13763 #: ../src/guestfs-actions.pod:4544 ../fish/guestfish-actions.pod:3080
13764 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13765 msgstr ""
13766
13767 #. type: textblock
13768 #: ../src/guestfs-actions.pod:4546
13769 msgid ""
13770 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
13771 "may get unexpected errors if you try to mix these calls.  It is safest to "
13772 "manually unmount filesystems and remove mountpoints after use."
13773 msgstr ""
13774
13775 #. type: textblock
13776 #: ../src/guestfs-actions.pod:4550
13777 msgid ""
13778 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
13779 "first, so for this to work for manual mountpoints, you must ensure that the "
13780 "innermost mountpoints have the longest pathnames, as in the example code "
13781 "above."
13782 msgstr ""
13783
13784 #. type: textblock
13785 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3091
13786 msgid ""
13787 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13788 msgstr ""
13789
13790 #. type: textblock
13791 #: ../src/guestfs-actions.pod:4557
13792 msgid ""
13793 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
13794 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
13795 "can also trigger these issues."
13796 msgstr ""
13797
13798 #. type: textblock
13799 #: ../src/guestfs-actions.pod:4563 ../src/guestfs-actions.pod:4829
13800 #: ../src/guestfs-actions.pod:5739
13801 msgid "(Added in 1.0.62)"
13802 msgstr ""
13803
13804 #. type: =head2
13805 #: ../src/guestfs-actions.pod:4565
13806 msgid "guestfs_mknod"
13807 msgstr ""
13808
13809 #. type: verbatim
13810 #: ../src/guestfs-actions.pod:4567
13811 #, no-wrap
13812 msgid ""
13813 " int\n"
13814 " guestfs_mknod (guestfs_h *g,\n"
13815 "                int mode,\n"
13816 "                int devmajor,\n"
13817 "                int devminor,\n"
13818 "                const char *path);\n"
13819 "\n"
13820 msgstr ""
13821
13822 #. type: textblock
13823 #: ../src/guestfs-actions.pod:4574 ../fish/guestfish-actions.pod:3101
13824 msgid ""
13825 "This call creates block or character special devices, or named pipes (FIFOs)."
13826 msgstr ""
13827
13828 #. type: textblock
13829 #: ../src/guestfs-actions.pod:4577 ../fish/guestfish-actions.pod:3104
13830 msgid ""
13831 "The C<mode> parameter should be the mode, using the standard constants.  "
13832 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13833 "used when creating block and character special devices."
13834 msgstr ""
13835
13836 #. type: textblock
13837 #: ../src/guestfs-actions.pod:4582
13838 msgid ""
13839 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13840 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13841 "regular file).  These constants are available in the standard Linux header "
13842 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
13843 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
13844 "the appropriate constant for you."
13845 msgstr ""
13846
13847 #. type: =head2
13848 #: ../src/guestfs-actions.pod:4596
13849 msgid "guestfs_mknod_b"
13850 msgstr ""
13851
13852 #. type: verbatim
13853 #: ../src/guestfs-actions.pod:4598
13854 #, no-wrap
13855 msgid ""
13856 " int\n"
13857 " guestfs_mknod_b (guestfs_h *g,\n"
13858 "                  int mode,\n"
13859 "                  int devmajor,\n"
13860 "                  int devminor,\n"
13861 "                  const char *path);\n"
13862 "\n"
13863 msgstr ""
13864
13865 #. type: textblock
13866 #: ../src/guestfs-actions.pod:4605
13867 msgid ""
13868 "This call creates a block device node called C<path> with mode C<mode> and "
13869 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13870 "wrapper around C<guestfs_mknod>."
13871 msgstr ""
13872
13873 #. type: =head2
13874 #: ../src/guestfs-actions.pod:4615
13875 msgid "guestfs_mknod_c"
13876 msgstr ""
13877
13878 #. type: verbatim
13879 #: ../src/guestfs-actions.pod:4617
13880 #, no-wrap
13881 msgid ""
13882 " int\n"
13883 " guestfs_mknod_c (guestfs_h *g,\n"
13884 "                  int mode,\n"
13885 "                  int devmajor,\n"
13886 "                  int devminor,\n"
13887 "                  const char *path);\n"
13888 "\n"
13889 msgstr ""
13890
13891 #. type: textblock
13892 #: ../src/guestfs-actions.pod:4624
13893 msgid ""
13894 "This call creates a char device node called C<path> with mode C<mode> and "
13895 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13896 "wrapper around C<guestfs_mknod>."
13897 msgstr ""
13898
13899 #. type: =head2
13900 #: ../src/guestfs-actions.pod:4634
13901 msgid "guestfs_mkswap"
13902 msgstr ""
13903
13904 #. type: verbatim
13905 #: ../src/guestfs-actions.pod:4636
13906 #, no-wrap
13907 msgid ""
13908 " int\n"
13909 " guestfs_mkswap (guestfs_h *g,\n"
13910 "                 const char *device);\n"
13911 "\n"
13912 msgstr ""
13913
13914 #. type: textblock
13915 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3143
13916 msgid "Create a swap partition on C<device>."
13917 msgstr ""
13918
13919 #. type: =head2
13920 #: ../src/guestfs-actions.pod:4646
13921 msgid "guestfs_mkswap_L"
13922 msgstr ""
13923
13924 #. type: verbatim
13925 #: ../src/guestfs-actions.pod:4648
13926 #, no-wrap
13927 msgid ""
13928 " int\n"
13929 " guestfs_mkswap_L (guestfs_h *g,\n"
13930 "                   const char *label,\n"
13931 "                   const char *device);\n"
13932 "\n"
13933 msgstr ""
13934
13935 #. type: textblock
13936 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3149
13937 msgid "Create a swap partition on C<device> with label C<label>."
13938 msgstr ""
13939
13940 #. type: textblock
13941 #: ../src/guestfs-actions.pod:4655 ../fish/guestfish-actions.pod:3151
13942 msgid ""
13943 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13944 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13945 "or swap tools."
13946 msgstr ""
13947
13948 #. type: =head2
13949 #: ../src/guestfs-actions.pod:4663
13950 msgid "guestfs_mkswap_U"
13951 msgstr ""
13952
13953 #. type: verbatim
13954 #: ../src/guestfs-actions.pod:4665
13955 #, no-wrap
13956 msgid ""
13957 " int\n"
13958 " guestfs_mkswap_U (guestfs_h *g,\n"
13959 "                   const char *uuid,\n"
13960 "                   const char *device);\n"
13961 "\n"
13962 msgstr ""
13963
13964 #. type: textblock
13965 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3159
13966 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13967 msgstr ""
13968
13969 #. type: =head2
13970 #: ../src/guestfs-actions.pod:4676
13971 msgid "guestfs_mkswap_file"
13972 msgstr ""
13973
13974 #. type: verbatim
13975 #: ../src/guestfs-actions.pod:4678
13976 #, no-wrap
13977 msgid ""
13978 " int\n"
13979 " guestfs_mkswap_file (guestfs_h *g,\n"
13980 "                      const char *path);\n"
13981 "\n"
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3165
13986 msgid "Create a swap file."
13987 msgstr ""
13988
13989 #. type: textblock
13990 #: ../src/guestfs-actions.pod:4684
13991 msgid ""
13992 "This command just writes a swap file signature to an existing file.  To "
13993 "create the file itself, use something like C<guestfs_fallocate>."
13994 msgstr ""
13995
13996 #. type: =head2
13997 #: ../src/guestfs-actions.pod:4691
13998 msgid "guestfs_modprobe"
13999 msgstr ""
14000
14001 #. type: verbatim
14002 #: ../src/guestfs-actions.pod:4693
14003 #, no-wrap
14004 msgid ""
14005 " int\n"
14006 " guestfs_modprobe (guestfs_h *g,\n"
14007 "                   const char *modulename);\n"
14008 "\n"
14009 msgstr ""
14010
14011 #. type: textblock
14012 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3174
14013 msgid "This loads a kernel module in the appliance."
14014 msgstr ""
14015
14016 #. type: textblock
14017 #: ../src/guestfs-actions.pod:4699 ../fish/guestfish-actions.pod:3176
14018 msgid ""
14019 "The kernel module must have been whitelisted when libguestfs was built (see "
14020 "C<appliance/kmod.whitelist.in> in the source)."
14021 msgstr ""
14022
14023 #. type: =head2
14024 #: ../src/guestfs-actions.pod:4706
14025 msgid "guestfs_mount"
14026 msgstr ""
14027
14028 #. type: verbatim
14029 #: ../src/guestfs-actions.pod:4708
14030 #, no-wrap
14031 msgid ""
14032 " int\n"
14033 " guestfs_mount (guestfs_h *g,\n"
14034 "                const char *device,\n"
14035 "                const char *mountpoint);\n"
14036 "\n"
14037 msgstr ""
14038
14039 #. type: textblock
14040 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3183
14041 msgid ""
14042 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14043 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14044 "those block devices contain partitions, they will have the usual names (eg. "
14045 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14046 msgstr ""
14047
14048 #. type: textblock
14049 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3189
14050 msgid ""
14051 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14052 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14053 "mounted on directories which already exist."
14054 msgstr ""
14055
14056 #. type: textblock
14057 #: ../src/guestfs-actions.pod:4724 ../fish/guestfish-actions.pod:3194
14058 msgid ""
14059 "The mounted filesystem is writable, if we have sufficient permissions on the "
14060 "underlying device."
14061 msgstr ""
14062
14063 #. type: textblock
14064 #: ../src/guestfs-actions.pod:4727
14065 msgid ""
14066 "B<Important note:> When you use this call, the filesystem options C<sync> "
14067 "and C<noatime> are set implicitly.  This was originally done because we "
14068 "thought it would improve reliability, but it turns out that I<-o sync> has a "
14069 "very large negative performance impact and negligible effect on "
14070 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
14071 "in any code that needs performance, and instead use C<guestfs_mount_options> "
14072 "(use an empty string for the first parameter if you don't want any options)."
14073 msgstr ""
14074
14075 #. type: textblock
14076 #: ../src/guestfs-actions.pod:4739 ../fish/guestfish-actions.pod:3207
14077 msgid ""
14078 "This function is deprecated.  In new code, use the C<mount_options> call "
14079 "instead."
14080 msgstr ""
14081
14082 #. type: =head2
14083 #: ../src/guestfs-actions.pod:4748
14084 msgid "guestfs_mount_loop"
14085 msgstr ""
14086
14087 #. type: verbatim
14088 #: ../src/guestfs-actions.pod:4750
14089 #, no-wrap
14090 msgid ""
14091 " int\n"
14092 " guestfs_mount_loop (guestfs_h *g,\n"
14093 "                     const char *file,\n"
14094 "                     const char *mountpoint);\n"
14095 "\n"
14096 msgstr ""
14097
14098 #. type: textblock
14099 #: ../src/guestfs-actions.pod:4755 ../fish/guestfish-actions.pod:3218
14100 msgid ""
14101 "This command lets you mount C<file> (a filesystem image in a file) on a "
14102 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14103 "mountpoint>."
14104 msgstr ""
14105
14106 #. type: =head2
14107 #: ../src/guestfs-actions.pod:4763
14108 msgid "guestfs_mount_options"
14109 msgstr ""
14110
14111 #. type: verbatim
14112 #: ../src/guestfs-actions.pod:4765
14113 #, no-wrap
14114 msgid ""
14115 " int\n"
14116 " guestfs_mount_options (guestfs_h *g,\n"
14117 "                        const char *options,\n"
14118 "                        const char *device,\n"
14119 "                        const char *mountpoint);\n"
14120 "\n"
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../src/guestfs-actions.pod:4771
14125 msgid ""
14126 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14127 "the mount options as for the L<mount(8)> I<-o> flag."
14128 msgstr ""
14129
14130 #. type: textblock
14131 #: ../src/guestfs-actions.pod:4775 ../fish/guestfish-actions.pod:3230
14132 msgid ""
14133 "If the C<options> parameter is an empty string, then no options are passed "
14134 "(all options default to whatever the filesystem uses)."
14135 msgstr ""
14136
14137 #. type: textblock
14138 #: ../src/guestfs-actions.pod:4781 ../src/guestfs-actions.pod:4795
14139 #: ../src/guestfs-actions.pod:4812
14140 msgid "(Added in 1.0.10)"
14141 msgstr ""
14142
14143 #. type: =head2
14144 #: ../src/guestfs-actions.pod:4783
14145 msgid "guestfs_mount_ro"
14146 msgstr ""
14147
14148 #. type: verbatim
14149 #: ../src/guestfs-actions.pod:4785
14150 #, no-wrap
14151 msgid ""
14152 " int\n"
14153 " guestfs_mount_ro (guestfs_h *g,\n"
14154 "                   const char *device,\n"
14155 "                   const char *mountpoint);\n"
14156 "\n"
14157 msgstr ""
14158
14159 #. type: textblock
14160 #: ../src/guestfs-actions.pod:4790
14161 msgid ""
14162 "This is the same as the C<guestfs_mount> command, but it mounts the "
14163 "filesystem with the read-only (I<-o ro>) flag."
14164 msgstr ""
14165
14166 #. type: =head2
14167 #: ../src/guestfs-actions.pod:4797
14168 msgid "guestfs_mount_vfs"
14169 msgstr ""
14170
14171 #. type: verbatim
14172 #: ../src/guestfs-actions.pod:4799
14173 #, no-wrap
14174 msgid ""
14175 " int\n"
14176 " guestfs_mount_vfs (guestfs_h *g,\n"
14177 "                    const char *options,\n"
14178 "                    const char *vfstype,\n"
14179 "                    const char *device,\n"
14180 "                    const char *mountpoint);\n"
14181 "\n"
14182 msgstr ""
14183
14184 #. type: textblock
14185 #: ../src/guestfs-actions.pod:4806
14186 msgid ""
14187 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14188 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
14189 "t> flags."
14190 msgstr ""
14191
14192 #. type: =head2
14193 #: ../src/guestfs-actions.pod:4814
14194 msgid "guestfs_mountpoints"
14195 msgstr ""
14196
14197 #. type: verbatim
14198 #: ../src/guestfs-actions.pod:4816
14199 #, no-wrap
14200 msgid ""
14201 " char **\n"
14202 " guestfs_mountpoints (guestfs_h *g);\n"
14203 "\n"
14204 msgstr ""
14205
14206 #. type: textblock
14207 #: ../src/guestfs-actions.pod:4819
14208 msgid ""
14209 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
14210 "devices.  This one returns a hash table (map) of device name to directory "
14211 "where the device is mounted."
14212 msgstr ""
14213
14214 #. type: =head2
14215 #: ../src/guestfs-actions.pod:4831
14216 msgid "guestfs_mounts"
14217 msgstr ""
14218
14219 #. type: verbatim
14220 #: ../src/guestfs-actions.pod:4833
14221 #, no-wrap
14222 msgid ""
14223 " char **\n"
14224 " guestfs_mounts (guestfs_h *g);\n"
14225 "\n"
14226 msgstr ""
14227
14228 #. type: textblock
14229 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3261
14230 msgid ""
14231 "This returns the list of currently mounted filesystems.  It returns the list "
14232 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14233 msgstr ""
14234
14235 #. type: textblock
14236 #: ../src/guestfs-actions.pod:4839 ../fish/guestfish-actions.pod:3264
14237 msgid "Some internal mounts are not shown."
14238 msgstr ""
14239
14240 #. type: textblock
14241 #: ../src/guestfs-actions.pod:4841
14242 msgid "See also: C<guestfs_mountpoints>"
14243 msgstr ""
14244
14245 #. type: =head2
14246 #: ../src/guestfs-actions.pod:4849
14247 msgid "guestfs_mv"
14248 msgstr ""
14249
14250 #. type: verbatim
14251 #: ../src/guestfs-actions.pod:4851
14252 #, no-wrap
14253 msgid ""
14254 " int\n"
14255 " guestfs_mv (guestfs_h *g,\n"
14256 "             const char *src,\n"
14257 "             const char *dest);\n"
14258 "\n"
14259 msgstr ""
14260
14261 #. type: textblock
14262 #: ../src/guestfs-actions.pod:4856 ../fish/guestfish-actions.pod:3272
14263 msgid ""
14264 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14265 "destination filename or destination directory."
14266 msgstr ""
14267
14268 #. type: =head2
14269 #: ../src/guestfs-actions.pod:4863
14270 msgid "guestfs_ntfs_3g_probe"
14271 msgstr ""
14272
14273 #. type: verbatim
14274 #: ../src/guestfs-actions.pod:4865
14275 #, no-wrap
14276 msgid ""
14277 " int\n"
14278 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
14279 "                        int rw,\n"
14280 "                        const char *device);\n"
14281 "\n"
14282 msgstr ""
14283
14284 #. type: textblock
14285 #: ../src/guestfs-actions.pod:4870 ../fish/guestfish-actions.pod:3279
14286 msgid ""
14287 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14288 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14289 "write, and some cannot be mounted at all)."
14290 msgstr ""
14291
14292 #. type: textblock
14293 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3283
14294 msgid ""
14295 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14296 "can be mounted read-write.  Set it to false if you want to test if the "
14297 "volume can be mounted read-only."
14298 msgstr ""
14299
14300 #. type: textblock
14301 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3287
14302 msgid ""
14303 "The return value is an integer which C<0> if the operation would succeed, or "
14304 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14305 msgstr ""
14306
14307 #. type: textblock
14308 #: ../src/guestfs-actions.pod:4884
14309 msgid "(Added in 1.0.43)"
14310 msgstr ""
14311
14312 #. type: =head2
14313 #: ../src/guestfs-actions.pod:4886
14314 msgid "guestfs_ntfsresize"
14315 msgstr ""
14316
14317 #. type: verbatim
14318 #: ../src/guestfs-actions.pod:4888
14319 #, no-wrap
14320 msgid ""
14321 " int\n"
14322 " guestfs_ntfsresize (guestfs_h *g,\n"
14323 "                     const char *device);\n"
14324 "\n"
14325 msgstr ""
14326
14327 #. type: textblock
14328 #: ../src/guestfs-actions.pod:4892 ../fish/guestfish-actions.pod:3295
14329 msgid ""
14330 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14331 "size of the underlying device.  See also L<ntfsresize(8)>."
14332 msgstr ""
14333
14334 #. type: =head2
14335 #: ../src/guestfs-actions.pod:4900
14336 msgid "guestfs_ntfsresize_size"
14337 msgstr ""
14338
14339 #. type: verbatim
14340 #: ../src/guestfs-actions.pod:4902
14341 #, no-wrap
14342 msgid ""
14343 " int\n"
14344 " guestfs_ntfsresize_size (guestfs_h *g,\n"
14345 "                          const char *device,\n"
14346 "                          int64_t size);\n"
14347 "\n"
14348 msgstr ""
14349
14350 #. type: textblock
14351 #: ../src/guestfs-actions.pod:4907
14352 msgid ""
14353 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
14354 "to specify the new size (in bytes) explicitly."
14355 msgstr ""
14356
14357 #. type: textblock
14358 #: ../src/guestfs-actions.pod:4912 ../src/guestfs-actions.pod:5348
14359 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5687
14360 #: ../src/guestfs-actions.pod:7293
14361 msgid "(Added in 1.3.14)"
14362 msgstr ""
14363
14364 #. type: =head2
14365 #: ../src/guestfs-actions.pod:4914
14366 msgid "guestfs_part_add"
14367 msgstr ""
14368
14369 #. type: verbatim
14370 #: ../src/guestfs-actions.pod:4916
14371 #, no-wrap
14372 msgid ""
14373 " int\n"
14374 " guestfs_part_add (guestfs_h *g,\n"
14375 "                   const char *device,\n"
14376 "                   const char *prlogex,\n"
14377 "                   int64_t startsect,\n"
14378 "                   int64_t endsect);\n"
14379 "\n"
14380 msgstr ""
14381
14382 #. type: textblock
14383 #: ../src/guestfs-actions.pod:4923
14384 msgid ""
14385 "This command adds a partition to C<device>.  If there is no partition table "
14386 "on the device, call C<guestfs_part_init> first."
14387 msgstr ""
14388
14389 #. type: textblock
14390 #: ../src/guestfs-actions.pod:4926 ../fish/guestfish-actions.pod:3313
14391 msgid ""
14392 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14393 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14394 "C<logical>) and C<e> (or C<extended>) partition types."
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../src/guestfs-actions.pod:4931 ../fish/guestfish-actions.pod:3318
14399 msgid ""
14400 "C<startsect> and C<endsect> are the start and end of the partition in "
14401 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14402 "from the end of the disk (C<-1> is the last sector)."
14403 msgstr ""
14404
14405 #. type: textblock
14406 #: ../src/guestfs-actions.pod:4935
14407 msgid ""
14408 "Creating a partition which covers the whole disk is not so easy.  Use "
14409 "C<guestfs_part_disk> to do that."
14410 msgstr ""
14411
14412 #. type: textblock
14413 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:4978
14414 #: ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5109
14415 #: ../src/guestfs-actions.pod:5147 ../src/guestfs-actions.pod:5166
14416 #: ../src/guestfs-actions.pod:5206
14417 msgid "(Added in 1.0.78)"
14418 msgstr ""
14419
14420 #. type: =head2
14421 #: ../src/guestfs-actions.pod:4942
14422 msgid "guestfs_part_del"
14423 msgstr ""
14424
14425 #. type: verbatim
14426 #: ../src/guestfs-actions.pod:4944
14427 #, no-wrap
14428 msgid ""
14429 " int\n"
14430 " guestfs_part_del (guestfs_h *g,\n"
14431 "                   const char *device,\n"
14432 "                   int partnum);\n"
14433 "\n"
14434 msgstr ""
14435
14436 #. type: textblock
14437 #: ../src/guestfs-actions.pod:4949 ../fish/guestfish-actions.pod:3329
14438 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14439 msgstr ""
14440
14441 #. type: textblock
14442 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3331
14443 msgid ""
14444 "Note that in the case of MBR partitioning, deleting an extended partition "
14445 "also deletes any logical partitions it contains."
14446 msgstr ""
14447
14448 #. type: =head2
14449 #: ../src/guestfs-actions.pod:4959
14450 msgid "guestfs_part_disk"
14451 msgstr ""
14452
14453 #. type: verbatim
14454 #: ../src/guestfs-actions.pod:4961
14455 #, no-wrap
14456 msgid ""
14457 " int\n"
14458 " guestfs_part_disk (guestfs_h *g,\n"
14459 "                    const char *device,\n"
14460 "                    const char *parttype);\n"
14461 "\n"
14462 msgstr ""
14463
14464 #. type: textblock
14465 #: ../src/guestfs-actions.pod:4966
14466 msgid ""
14467 "This command is simply a combination of C<guestfs_part_init> followed by "
14468 "C<guestfs_part_add> to create a single primary partition covering the whole "
14469 "disk."
14470 msgstr ""
14471
14472 #. type: textblock
14473 #: ../src/guestfs-actions.pod:4970
14474 msgid ""
14475 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14476 "possible values are described in C<guestfs_part_init>."
14477 msgstr ""
14478
14479 #. type: =head2
14480 #: ../src/guestfs-actions.pod:4980
14481 msgid "guestfs_part_get_bootable"
14482 msgstr ""
14483
14484 #. type: verbatim
14485 #: ../src/guestfs-actions.pod:4982
14486 #, no-wrap
14487 msgid ""
14488 " int\n"
14489 " guestfs_part_get_bootable (guestfs_h *g,\n"
14490 "                            const char *device,\n"
14491 "                            int partnum);\n"
14492 "\n"
14493 msgstr ""
14494
14495 #. type: textblock
14496 #: ../src/guestfs-actions.pod:4987 ../fish/guestfish-actions.pod:3353
14497 msgid ""
14498 "This command returns true if the partition C<partnum> on C<device> has the "
14499 "bootable flag set."
14500 msgstr ""
14501
14502 #. type: textblock
14503 #: ../src/guestfs-actions.pod:4990
14504 msgid "See also C<guestfs_part_set_bootable>."
14505 msgstr ""
14506
14507 #. type: =head2
14508 #: ../src/guestfs-actions.pod:4996
14509 msgid "guestfs_part_get_mbr_id"
14510 msgstr ""
14511
14512 #. type: verbatim
14513 #: ../src/guestfs-actions.pod:4998
14514 #, no-wrap
14515 msgid ""
14516 " int\n"
14517 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
14518 "                          const char *device,\n"
14519 "                          int partnum);\n"
14520 "\n"
14521 msgstr ""
14522
14523 #. type: textblock
14524 #: ../src/guestfs-actions.pod:5003 ../fish/guestfish-actions.pod:3362
14525 msgid ""
14526 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14527 "partition C<partnum>."
14528 msgstr ""
14529
14530 #. type: textblock
14531 #: ../src/guestfs-actions.pod:5006 ../src/guestfs-actions.pod:5182
14532 msgid ""
14533 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14534 "undefined results for other partition table types (see "
14535 "C<guestfs_part_get_parttype>)."
14536 msgstr ""
14537
14538 #. type: =head2
14539 #: ../src/guestfs-actions.pod:5014
14540 msgid "guestfs_part_get_parttype"
14541 msgstr ""
14542
14543 #. type: verbatim
14544 #: ../src/guestfs-actions.pod:5016
14545 #, no-wrap
14546 msgid ""
14547 " char *\n"
14548 " guestfs_part_get_parttype (guestfs_h *g,\n"
14549 "                            const char *device);\n"
14550 "\n"
14551 msgstr ""
14552
14553 #. type: textblock
14554 #: ../src/guestfs-actions.pod:5020 ../fish/guestfish-actions.pod:3373
14555 msgid ""
14556 "This command examines the partition table on C<device> and returns the "
14557 "partition table type (format) being used."
14558 msgstr ""
14559
14560 #. type: textblock
14561 #: ../src/guestfs-actions.pod:5023
14562 msgid ""
14563 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14564 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14565 "possible, although unusual.  See C<guestfs_part_init> for a full list."
14566 msgstr ""
14567
14568 #. type: =head2
14569 #: ../src/guestfs-actions.pod:5033
14570 msgid "guestfs_part_init"
14571 msgstr ""
14572
14573 #. type: verbatim
14574 #: ../src/guestfs-actions.pod:5035
14575 #, no-wrap
14576 msgid ""
14577 " int\n"
14578 " guestfs_part_init (guestfs_h *g,\n"
14579 "                    const char *device,\n"
14580 "                    const char *parttype);\n"
14581 "\n"
14582 msgstr ""
14583
14584 #. type: textblock
14585 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3385
14586 msgid ""
14587 "This creates an empty partition table on C<device> of one of the partition "
14588 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14589 "(for large disks)."
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../src/guestfs-actions.pod:5044
14594 msgid ""
14595 "Initially there are no partitions.  Following this, you should call "
14596 "C<guestfs_part_add> for each partition required."
14597 msgstr ""
14598
14599 #. type: textblock
14600 #: ../src/guestfs-actions.pod:5047 ../fish/guestfish-actions.pod:3392
14601 msgid "Possible values for C<parttype> are:"
14602 msgstr ""
14603
14604 #. type: =item
14605 #: ../src/guestfs-actions.pod:5051 ../fish/guestfish-actions.pod:3396
14606 msgid "B<efi> | B<gpt>"
14607 msgstr ""
14608
14609 #. type: textblock
14610 #: ../src/guestfs-actions.pod:5053 ../fish/guestfish-actions.pod:3398
14611 msgid "Intel EFI / GPT partition table."
14612 msgstr ""
14613
14614 #. type: textblock
14615 #: ../src/guestfs-actions.pod:5055 ../fish/guestfish-actions.pod:3400
14616 msgid ""
14617 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14618 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14619 "the C<mbr> format."
14620 msgstr ""
14621
14622 #. type: =item
14623 #: ../src/guestfs-actions.pod:5059 ../fish/guestfish-actions.pod:3404
14624 msgid "B<mbr> | B<msdos>"
14625 msgstr ""
14626
14627 #. type: textblock
14628 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3406
14629 msgid ""
14630 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14631 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14632 "TB.  For large disks we recommend using C<gpt>."
14633 msgstr ""
14634
14635 #. type: textblock
14636 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3413
14637 msgid ""
14638 "Other partition table types that may work but are not supported include:"
14639 msgstr ""
14640
14641 #. type: =item
14642 #: ../src/guestfs-actions.pod:5073 ../fish/guestfish-actions.pod:3418
14643 msgid "B<aix>"
14644 msgstr ""
14645
14646 #. type: textblock
14647 #: ../src/guestfs-actions.pod:5075 ../fish/guestfish-actions.pod:3420
14648 msgid "AIX disk labels."
14649 msgstr ""
14650
14651 #. type: =item
14652 #: ../src/guestfs-actions.pod:5077 ../fish/guestfish-actions.pod:3422
14653 msgid "B<amiga> | B<rdb>"
14654 msgstr ""
14655
14656 #. type: textblock
14657 #: ../src/guestfs-actions.pod:5079 ../fish/guestfish-actions.pod:3424
14658 msgid "Amiga \"Rigid Disk Block\" format."
14659 msgstr ""
14660
14661 #. type: =item
14662 #: ../src/guestfs-actions.pod:5081 ../fish/guestfish-actions.pod:3426
14663 msgid "B<bsd>"
14664 msgstr ""
14665
14666 #. type: textblock
14667 #: ../src/guestfs-actions.pod:5083 ../fish/guestfish-actions.pod:3428
14668 msgid "BSD disk labels."
14669 msgstr ""
14670
14671 #. type: =item
14672 #: ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3430
14673 msgid "B<dasd>"
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../src/guestfs-actions.pod:5087 ../fish/guestfish-actions.pod:3432
14678 msgid "DASD, used on IBM mainframes."
14679 msgstr ""
14680
14681 #. type: =item
14682 #: ../src/guestfs-actions.pod:5089 ../fish/guestfish-actions.pod:3434
14683 msgid "B<dvh>"
14684 msgstr ""
14685
14686 #. type: textblock
14687 #: ../src/guestfs-actions.pod:5091 ../fish/guestfish-actions.pod:3436
14688 msgid "MIPS/SGI volumes."
14689 msgstr ""
14690
14691 #. type: =item
14692 #: ../src/guestfs-actions.pod:5093 ../fish/guestfish-actions.pod:3438
14693 msgid "B<mac>"
14694 msgstr ""
14695
14696 #. type: textblock
14697 #: ../src/guestfs-actions.pod:5095 ../fish/guestfish-actions.pod:3440
14698 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14699 msgstr ""
14700
14701 #. type: =item
14702 #: ../src/guestfs-actions.pod:5097 ../fish/guestfish-actions.pod:3442
14703 msgid "B<pc98>"
14704 msgstr ""
14705
14706 #. type: textblock
14707 #: ../src/guestfs-actions.pod:5099 ../fish/guestfish-actions.pod:3444
14708 msgid "NEC PC-98 format, common in Japan apparently."
14709 msgstr ""
14710
14711 #. type: =item
14712 #: ../src/guestfs-actions.pod:5101 ../fish/guestfish-actions.pod:3446
14713 msgid "B<sun>"
14714 msgstr ""
14715
14716 #. type: textblock
14717 #: ../src/guestfs-actions.pod:5103 ../fish/guestfish-actions.pod:3448
14718 msgid "Sun disk labels."
14719 msgstr ""
14720
14721 #. type: =head2
14722 #: ../src/guestfs-actions.pod:5111
14723 msgid "guestfs_part_list"
14724 msgstr ""
14725
14726 #. type: verbatim
14727 #: ../src/guestfs-actions.pod:5113
14728 #, no-wrap
14729 msgid ""
14730 " struct guestfs_partition_list *\n"
14731 " guestfs_part_list (guestfs_h *g,\n"
14732 "                    const char *device);\n"
14733 "\n"
14734 msgstr ""
14735
14736 #. type: textblock
14737 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3456
14738 msgid ""
14739 "This command parses the partition table on C<device> and returns the list of "
14740 "partitions found."
14741 msgstr ""
14742
14743 #. type: textblock
14744 #: ../src/guestfs-actions.pod:5120 ../fish/guestfish-actions.pod:3459
14745 msgid "The fields in the returned structure are:"
14746 msgstr ""
14747
14748 #. type: =item
14749 #: ../src/guestfs-actions.pod:5124 ../fish/guestfish-actions.pod:3463
14750 msgid "B<part_num>"
14751 msgstr ""
14752
14753 #. type: textblock
14754 #: ../src/guestfs-actions.pod:5126 ../fish/guestfish-actions.pod:3465
14755 msgid "Partition number, counting from 1."
14756 msgstr ""
14757
14758 #. type: =item
14759 #: ../src/guestfs-actions.pod:5128 ../fish/guestfish-actions.pod:3467
14760 msgid "B<part_start>"
14761 msgstr ""
14762
14763 #. type: textblock
14764 #: ../src/guestfs-actions.pod:5130
14765 msgid ""
14766 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14767 "the device's sector size, see C<guestfs_blockdev_getss>."
14768 msgstr ""
14769
14770 #. type: =item
14771 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3472
14772 msgid "B<part_end>"
14773 msgstr ""
14774
14775 #. type: textblock
14776 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3474
14777 msgid "End of the partition in bytes."
14778 msgstr ""
14779
14780 #. type: =item
14781 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3476
14782 msgid "B<part_size>"
14783 msgstr ""
14784
14785 #. type: textblock
14786 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3478
14787 msgid "Size of the partition in bytes."
14788 msgstr ""
14789
14790 #. type: textblock
14791 #: ../src/guestfs-actions.pod:5143
14792 msgid ""
14793 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
14794 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
14795 "use>."
14796 msgstr ""
14797
14798 #. type: =head2
14799 #: ../src/guestfs-actions.pod:5149
14800 msgid "guestfs_part_set_bootable"
14801 msgstr ""
14802
14803 #. type: verbatim
14804 #: ../src/guestfs-actions.pod:5151
14805 #, no-wrap
14806 msgid ""
14807 " int\n"
14808 " guestfs_part_set_bootable (guestfs_h *g,\n"
14809 "                            const char *device,\n"
14810 "                            int partnum,\n"
14811 "                            int bootable);\n"
14812 "\n"
14813 msgstr ""
14814
14815 #. type: textblock
14816 #: ../src/guestfs-actions.pod:5157 ../fish/guestfish-actions.pod:3486
14817 msgid ""
14818 "This sets the bootable flag on partition numbered C<partnum> on device "
14819 "C<device>.  Note that partitions are numbered from 1."
14820 msgstr ""
14821
14822 #. type: textblock
14823 #: ../src/guestfs-actions.pod:5160 ../fish/guestfish-actions.pod:3489
14824 msgid ""
14825 "The bootable flag is used by some operating systems (notably Windows) to "
14826 "determine which partition to boot from.  It is by no means universally "
14827 "recognized."
14828 msgstr ""
14829
14830 #. type: =head2
14831 #: ../src/guestfs-actions.pod:5168
14832 msgid "guestfs_part_set_mbr_id"
14833 msgstr ""
14834
14835 #. type: verbatim
14836 #: ../src/guestfs-actions.pod:5170
14837 #, no-wrap
14838 msgid ""
14839 " int\n"
14840 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
14841 "                          const char *device,\n"
14842 "                          int partnum,\n"
14843 "                          int idbyte);\n"
14844 "\n"
14845 msgstr ""
14846
14847 #. type: textblock
14848 #: ../src/guestfs-actions.pod:5176 ../fish/guestfish-actions.pod:3497
14849 msgid ""
14850 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14851 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14852 "documentation are in fact hexadecimal numbers, but usually documented "
14853 "without any leading \"0x\" which might be confusing."
14854 msgstr ""
14855
14856 #. type: =head2
14857 #: ../src/guestfs-actions.pod:5190
14858 msgid "guestfs_part_set_name"
14859 msgstr ""
14860
14861 #. type: verbatim
14862 #: ../src/guestfs-actions.pod:5192
14863 #, no-wrap
14864 msgid ""
14865 " int\n"
14866 " guestfs_part_set_name (guestfs_h *g,\n"
14867 "                        const char *device,\n"
14868 "                        int partnum,\n"
14869 "                        const char *name);\n"
14870 "\n"
14871 msgstr ""
14872
14873 #. type: textblock
14874 #: ../src/guestfs-actions.pod:5198 ../fish/guestfish-actions.pod:3511
14875 msgid ""
14876 "This sets the partition name on partition numbered C<partnum> on device "
14877 "C<device>.  Note that partitions are numbered from 1."
14878 msgstr ""
14879
14880 #. type: textblock
14881 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3514
14882 msgid ""
14883 "The partition name can only be set on certain types of partition table.  "
14884 "This works on C<gpt> but not on C<mbr> partitions."
14885 msgstr ""
14886
14887 #. type: =head2
14888 #: ../src/guestfs-actions.pod:5208
14889 msgid "guestfs_part_to_dev"
14890 msgstr ""
14891
14892 #. type: verbatim
14893 #: ../src/guestfs-actions.pod:5210
14894 #, no-wrap
14895 msgid ""
14896 " char *\n"
14897 " guestfs_part_to_dev (guestfs_h *g,\n"
14898 "                      const char *partition);\n"
14899 "\n"
14900 msgstr ""
14901
14902 #. type: textblock
14903 #: ../src/guestfs-actions.pod:5214 ../fish/guestfish-actions.pod:3521
14904 msgid ""
14905 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14906 "partition number, returning the device name (eg. \"/dev/sdb\")."
14907 msgstr ""
14908
14909 #. type: textblock
14910 #: ../src/guestfs-actions.pod:5218
14911 msgid ""
14912 "The named partition must exist, for example as a string returned from "
14913 "C<guestfs_list_partitions>."
14914 msgstr ""
14915
14916 #. type: =head2
14917 #: ../src/guestfs-actions.pod:5226
14918 msgid "guestfs_ping_daemon"
14919 msgstr ""
14920
14921 #. type: verbatim
14922 #: ../src/guestfs-actions.pod:5228
14923 #, no-wrap
14924 msgid ""
14925 " int\n"
14926 " guestfs_ping_daemon (guestfs_h *g);\n"
14927 "\n"
14928 msgstr ""
14929
14930 #. type: textblock
14931 #: ../src/guestfs-actions.pod:5231 ../fish/guestfish-actions.pod:3532
14932 msgid ""
14933 "This is a test probe into the guestfs daemon running inside the qemu "
14934 "subprocess.  Calling this function checks that the daemon responds to the "
14935 "ping message, without affecting the daemon or attached block device(s) in "
14936 "any other way."
14937 msgstr ""
14938
14939 #. type: =head2
14940 #: ../src/guestfs-actions.pod:5240
14941 msgid "guestfs_pread"
14942 msgstr ""
14943
14944 #. type: verbatim
14945 #: ../src/guestfs-actions.pod:5242
14946 #, no-wrap
14947 msgid ""
14948 " char *\n"
14949 " guestfs_pread (guestfs_h *g,\n"
14950 "                const char *path,\n"
14951 "                int count,\n"
14952 "                int64_t offset,\n"
14953 "                size_t *size_r);\n"
14954 "\n"
14955 msgstr ""
14956
14957 #. type: textblock
14958 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3541
14959 msgid ""
14960 "This command lets you read part of a file.  It reads C<count> bytes of the "
14961 "file, starting at C<offset>, from file C<path>."
14962 msgstr ""
14963
14964 #. type: textblock
14965 #: ../src/guestfs-actions.pod:5252 ../src/guestfs-actions.pod:5278
14966 #: ../fish/guestfish-actions.pod:3544 ../fish/guestfish-actions.pod:3559
14967 msgid ""
14968 "This may read fewer bytes than requested.  For further details see the "
14969 "L<pread(2)> system call."
14970 msgstr ""
14971
14972 #. type: textblock
14973 #: ../src/guestfs-actions.pod:5255
14974 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
14975 msgstr ""
14976
14977 #. type: =head2
14978 #: ../src/guestfs-actions.pod:5266
14979 msgid "guestfs_pread_device"
14980 msgstr ""
14981
14982 #. type: verbatim
14983 #: ../src/guestfs-actions.pod:5268
14984 #, no-wrap
14985 msgid ""
14986 " char *\n"
14987 " guestfs_pread_device (guestfs_h *g,\n"
14988 "                       const char *device,\n"
14989 "                       int count,\n"
14990 "                       int64_t offset,\n"
14991 "                       size_t *size_r);\n"
14992 "\n"
14993 msgstr ""
14994
14995 #. type: textblock
14996 #: ../src/guestfs-actions.pod:5275 ../fish/guestfish-actions.pod:3556
14997 msgid ""
14998 "This command lets you read part of a file.  It reads C<count> bytes of "
14999 "C<device>, starting at C<offset>."
15000 msgstr ""
15001
15002 #. type: textblock
15003 #: ../src/guestfs-actions.pod:5281
15004 msgid "See also C<guestfs_pread>."
15005 msgstr ""
15006
15007 #. type: textblock
15008 #: ../src/guestfs-actions.pod:5290
15009 msgid "(Added in 1.5.21)"
15010 msgstr ""
15011
15012 #. type: =head2
15013 #: ../src/guestfs-actions.pod:5292
15014 msgid "guestfs_pvcreate"
15015 msgstr ""
15016
15017 #. type: verbatim
15018 #: ../src/guestfs-actions.pod:5294
15019 #, no-wrap
15020 msgid ""
15021 " int\n"
15022 " guestfs_pvcreate (guestfs_h *g,\n"
15023 "                   const char *device);\n"
15024 "\n"
15025 msgstr ""
15026
15027 #. type: textblock
15028 #: ../src/guestfs-actions.pod:5298 ../fish/guestfish-actions.pod:3571
15029 msgid ""
15030 "This creates an LVM physical volume on the named C<device>, where C<device> "
15031 "should usually be a partition name such as C</dev/sda1>."
15032 msgstr ""
15033
15034 #. type: =head2
15035 #: ../src/guestfs-actions.pod:5306
15036 msgid "guestfs_pvremove"
15037 msgstr ""
15038
15039 #. type: verbatim
15040 #: ../src/guestfs-actions.pod:5308
15041 #, no-wrap
15042 msgid ""
15043 " int\n"
15044 " guestfs_pvremove (guestfs_h *g,\n"
15045 "                   const char *device);\n"
15046 "\n"
15047 msgstr ""
15048
15049 #. type: textblock
15050 #: ../src/guestfs-actions.pod:5312 ../fish/guestfish-actions.pod:3579
15051 msgid ""
15052 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15053 "it."
15054 msgstr ""
15055
15056 #. type: textblock
15057 #: ../src/guestfs-actions.pod:5315 ../fish/guestfish-actions.pod:3582
15058 msgid ""
15059 "The implementation uses the C<pvremove> command which refuses to wipe "
15060 "physical volumes that contain any volume groups, so you have to remove those "
15061 "first."
15062 msgstr ""
15063
15064 #. type: =head2
15065 #: ../src/guestfs-actions.pod:5323
15066 msgid "guestfs_pvresize"
15067 msgstr ""
15068
15069 #. type: verbatim
15070 #: ../src/guestfs-actions.pod:5325
15071 #, no-wrap
15072 msgid ""
15073 " int\n"
15074 " guestfs_pvresize (guestfs_h *g,\n"
15075 "                   const char *device);\n"
15076 "\n"
15077 msgstr ""
15078
15079 #. type: textblock
15080 #: ../src/guestfs-actions.pod:5329 ../fish/guestfish-actions.pod:3590
15081 msgid ""
15082 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15083 "the new size of the underlying device."
15084 msgstr ""
15085
15086 #. type: =head2
15087 #: ../src/guestfs-actions.pod:5336
15088 msgid "guestfs_pvresize_size"
15089 msgstr ""
15090
15091 #. type: verbatim
15092 #: ../src/guestfs-actions.pod:5338
15093 #, no-wrap
15094 msgid ""
15095 " int\n"
15096 " guestfs_pvresize_size (guestfs_h *g,\n"
15097 "                        const char *device,\n"
15098 "                        int64_t size);\n"
15099 "\n"
15100 msgstr ""
15101
15102 #. type: textblock
15103 #: ../src/guestfs-actions.pod:5343
15104 msgid ""
15105 "This command is the same as C<guestfs_pvresize> except that it allows you to "
15106 "specify the new size (in bytes) explicitly."
15107 msgstr ""
15108
15109 #. type: =head2
15110 #: ../src/guestfs-actions.pod:5350
15111 msgid "guestfs_pvs"
15112 msgstr ""
15113
15114 #. type: verbatim
15115 #: ../src/guestfs-actions.pod:5352
15116 #, no-wrap
15117 msgid ""
15118 " char **\n"
15119 " guestfs_pvs (guestfs_h *g);\n"
15120 "\n"
15121 msgstr ""
15122
15123 #. type: textblock
15124 #: ../src/guestfs-actions.pod:5355 ../fish/guestfish-actions.pod:3604
15125 msgid ""
15126 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15127 "(8)> command."
15128 msgstr ""
15129
15130 #. type: textblock
15131 #: ../src/guestfs-actions.pod:5358 ../fish/guestfish-actions.pod:3607
15132 msgid ""
15133 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15134 "sda2>)."
15135 msgstr ""
15136
15137 #. type: textblock
15138 #: ../src/guestfs-actions.pod:5361
15139 msgid "See also C<guestfs_pvs_full>."
15140 msgstr ""
15141
15142 #. type: =head2
15143 #: ../src/guestfs-actions.pod:5369
15144 msgid "guestfs_pvs_full"
15145 msgstr ""
15146
15147 #. type: verbatim
15148 #: ../src/guestfs-actions.pod:5371
15149 #, no-wrap
15150 msgid ""
15151 " struct guestfs_lvm_pv_list *\n"
15152 " guestfs_pvs_full (guestfs_h *g);\n"
15153 "\n"
15154 msgstr ""
15155
15156 #. type: textblock
15157 #: ../src/guestfs-actions.pod:5374 ../fish/guestfish-actions.pod:3616
15158 msgid ""
15159 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15160 "(8)> command.  The \"full\" version includes all fields."
15161 msgstr ""
15162
15163 #. type: textblock
15164 #: ../src/guestfs-actions.pod:5377
15165 msgid ""
15166 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
15167 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
15168 msgstr ""
15169
15170 #. type: =head2
15171 #: ../src/guestfs-actions.pod:5383
15172 msgid "guestfs_pvuuid"
15173 msgstr ""
15174
15175 #. type: verbatim
15176 #: ../src/guestfs-actions.pod:5385
15177 #, no-wrap
15178 msgid ""
15179 " char *\n"
15180 " guestfs_pvuuid (guestfs_h *g,\n"
15181 "                 const char *device);\n"
15182 "\n"
15183 msgstr ""
15184
15185 #. type: textblock
15186 #: ../src/guestfs-actions.pod:5389 ../fish/guestfish-actions.pod:3623
15187 msgid "This command returns the UUID of the LVM PV C<device>."
15188 msgstr ""
15189
15190 #. type: =head2
15191 #: ../src/guestfs-actions.pod:5396
15192 msgid "guestfs_pwrite"
15193 msgstr ""
15194
15195 #. type: verbatim
15196 #: ../src/guestfs-actions.pod:5398
15197 #, no-wrap
15198 msgid ""
15199 " int\n"
15200 " guestfs_pwrite (guestfs_h *g,\n"
15201 "                 const char *path,\n"
15202 "                 const char *content,\n"
15203 "                 size_t content_size,\n"
15204 "                 int64_t offset);\n"
15205 "\n"
15206 msgstr ""
15207
15208 #. type: textblock
15209 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:3629
15210 msgid ""
15211 "This command writes to part of a file.  It writes the data buffer C<content> "
15212 "to the file C<path> starting at offset C<offset>."
15213 msgstr ""
15214
15215 #. type: textblock
15216 #: ../src/guestfs-actions.pod:5408 ../fish/guestfish-actions.pod:3632
15217 msgid ""
15218 "This command implements the L<pwrite(2)> system call, and like that system "
15219 "call it may not write the full data requested.  The return value is the "
15220 "number of bytes that were actually written to the file.  This could even be "
15221 "0, although short writes are unlikely for regular files in ordinary "
15222 "circumstances."
15223 msgstr ""
15224
15225 #. type: textblock
15226 #: ../src/guestfs-actions.pod:5414
15227 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
15228 msgstr ""
15229
15230 #. type: =head2
15231 #: ../src/guestfs-actions.pod:5423
15232 msgid "guestfs_pwrite_device"
15233 msgstr ""
15234
15235 #. type: verbatim
15236 #: ../src/guestfs-actions.pod:5425
15237 #, no-wrap
15238 msgid ""
15239 " int\n"
15240 " guestfs_pwrite_device (guestfs_h *g,\n"
15241 "                        const char *device,\n"
15242 "                        const char *content,\n"
15243 "                        size_t content_size,\n"
15244 "                        int64_t offset);\n"
15245 "\n"
15246 msgstr ""
15247
15248 #. type: textblock
15249 #: ../src/guestfs-actions.pod:5432 ../fish/guestfish-actions.pod:3647
15250 msgid ""
15251 "This command writes to part of a device.  It writes the data buffer "
15252 "C<content> to C<device> starting at offset C<offset>."
15253 msgstr ""
15254
15255 #. type: textblock
15256 #: ../src/guestfs-actions.pod:5435 ../fish/guestfish-actions.pod:3650
15257 msgid ""
15258 "This command implements the L<pwrite(2)> system call, and like that system "
15259 "call it may not write the full data requested (although short writes to disk "
15260 "devices and partitions are probably impossible with standard Linux kernels)."
15261 msgstr ""
15262
15263 #. type: textblock
15264 #: ../src/guestfs-actions.pod:5440
15265 msgid "See also C<guestfs_pwrite>."
15266 msgstr ""
15267
15268 #. type: textblock
15269 #: ../src/guestfs-actions.pod:5447
15270 msgid "(Added in 1.5.20)"
15271 msgstr ""
15272
15273 #. type: =head2
15274 #: ../src/guestfs-actions.pod:5449
15275 msgid "guestfs_read_file"
15276 msgstr ""
15277
15278 #. type: verbatim
15279 #: ../src/guestfs-actions.pod:5451
15280 #, no-wrap
15281 msgid ""
15282 " char *\n"
15283 " guestfs_read_file (guestfs_h *g,\n"
15284 "                    const char *path,\n"
15285 "                    size_t *size_r);\n"
15286 "\n"
15287 msgstr ""
15288
15289 #. type: textblock
15290 #: ../src/guestfs-actions.pod:5456 ../fish/guestfish-actions.pod:3664
15291 msgid "This calls returns the contents of the file C<path> as a buffer."
15292 msgstr ""
15293
15294 #. type: textblock
15295 #: ../src/guestfs-actions.pod:5459
15296 msgid ""
15297 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
15298 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
15299 "function is limited in the total size of file that can be handled."
15300 msgstr ""
15301
15302 #. type: textblock
15303 #: ../src/guestfs-actions.pod:5471
15304 msgid "(Added in 1.0.63)"
15305 msgstr ""
15306
15307 #. type: =head2
15308 #: ../src/guestfs-actions.pod:5473
15309 msgid "guestfs_read_lines"
15310 msgstr ""
15311
15312 #. type: verbatim
15313 #: ../src/guestfs-actions.pod:5475
15314 #, no-wrap
15315 msgid ""
15316 " char **\n"
15317 " guestfs_read_lines (guestfs_h *g,\n"
15318 "                     const char *path);\n"
15319 "\n"
15320 msgstr ""
15321
15322 #. type: textblock
15323 #: ../src/guestfs-actions.pod:5481 ../fish/guestfish-actions.pod:3681
15324 msgid ""
15325 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15326 "C<CRLF> character sequences are I<not> returned."
15327 msgstr ""
15328
15329 #. type: textblock
15330 #: ../src/guestfs-actions.pod:5484
15331 msgid ""
15332 "Note that this function cannot correctly handle binary files (specifically, "
15333 "files containing C<\\0> character which is treated as end of line).  For "
15334 "those you need to use the C<guestfs_read_file> function which has a more "
15335 "complex interface."
15336 msgstr ""
15337
15338 #. type: =head2
15339 #: ../src/guestfs-actions.pod:5495
15340 msgid "guestfs_readdir"
15341 msgstr ""
15342
15343 #. type: verbatim
15344 #: ../src/guestfs-actions.pod:5497
15345 #, no-wrap
15346 msgid ""
15347 " struct guestfs_dirent_list *\n"
15348 " guestfs_readdir (guestfs_h *g,\n"
15349 "                  const char *dir);\n"
15350 "\n"
15351 msgstr ""
15352
15353 #. type: textblock
15354 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:3693
15355 msgid "This returns the list of directory entries in directory C<dir>."
15356 msgstr ""
15357
15358 #. type: textblock
15359 #: ../src/guestfs-actions.pod:5503 ../fish/guestfish-actions.pod:3695
15360 msgid ""
15361 "All entries in the directory are returned, including C<.> and C<..>.  The "
15362 "entries are I<not> sorted, but returned in the same order as the underlying "
15363 "filesystem."
15364 msgstr ""
15365
15366 #. type: textblock
15367 #: ../src/guestfs-actions.pod:5507 ../fish/guestfish-actions.pod:3699
15368 msgid ""
15369 "Also this call returns basic file type information about each file.  The "
15370 "C<ftyp> field will contain one of the following characters:"
15371 msgstr ""
15372
15373 #. type: =item
15374 #: ../src/guestfs-actions.pod:5512 ../fish/guestfish-actions.pod:3704
15375 msgid "'b'"
15376 msgstr ""
15377
15378 #. type: textblock
15379 #: ../src/guestfs-actions.pod:5514 ../fish/guestfish-actions.pod:3706
15380 msgid "Block special"
15381 msgstr ""
15382
15383 #. type: =item
15384 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3708
15385 msgid "'c'"
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3710
15390 msgid "Char special"
15391 msgstr ""
15392
15393 #. type: =item
15394 #: ../src/guestfs-actions.pod:5520 ../fish/guestfish-actions.pod:3712
15395 msgid "'d'"
15396 msgstr ""
15397
15398 #. type: textblock
15399 #: ../src/guestfs-actions.pod:5522 ../fish/guestfish-actions.pod:3714
15400 msgid "Directory"
15401 msgstr ""
15402
15403 #. type: =item
15404 #: ../src/guestfs-actions.pod:5524 ../fish/guestfish-actions.pod:3716
15405 msgid "'f'"
15406 msgstr ""
15407
15408 #. type: textblock
15409 #: ../src/guestfs-actions.pod:5526 ../fish/guestfish-actions.pod:3718
15410 msgid "FIFO (named pipe)"
15411 msgstr ""
15412
15413 #. type: =item
15414 #: ../src/guestfs-actions.pod:5528 ../fish/guestfish-actions.pod:3720
15415 msgid "'l'"
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../src/guestfs-actions.pod:5530 ../fish/guestfish-actions.pod:3722
15420 msgid "Symbolic link"
15421 msgstr ""
15422
15423 #. type: =item
15424 #: ../src/guestfs-actions.pod:5532 ../fish/guestfish-actions.pod:3724
15425 msgid "'r'"
15426 msgstr ""
15427
15428 #. type: textblock
15429 #: ../src/guestfs-actions.pod:5534 ../fish/guestfish-actions.pod:3726
15430 msgid "Regular file"
15431 msgstr ""
15432
15433 #. type: =item
15434 #: ../src/guestfs-actions.pod:5536 ../fish/guestfish-actions.pod:3728
15435 msgid "'s'"
15436 msgstr ""
15437
15438 #. type: textblock
15439 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:3730
15440 msgid "Socket"
15441 msgstr ""
15442
15443 #. type: =item
15444 #: ../src/guestfs-actions.pod:5540 ../fish/guestfish-actions.pod:3732
15445 msgid "'u'"
15446 msgstr ""
15447
15448 #. type: textblock
15449 #: ../src/guestfs-actions.pod:5542 ../fish/guestfish-actions.pod:3734
15450 msgid "Unknown file type"
15451 msgstr ""
15452
15453 #. type: =item
15454 #: ../src/guestfs-actions.pod:5544 ../fish/guestfish-actions.pod:3736
15455 msgid "'?'"
15456 msgstr ""
15457
15458 #. type: textblock
15459 #: ../src/guestfs-actions.pod:5546 ../fish/guestfish-actions.pod:3738
15460 msgid ""
15461 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15462 msgstr ""
15463
15464 #. type: textblock
15465 #: ../src/guestfs-actions.pod:5551
15466 msgid ""
15467 "This function is primarily intended for use by programs.  To get a simple "
15468 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
15469 "consumption, use C<guestfs_ll>."
15470 msgstr ""
15471
15472 #. type: textblock
15473 #: ../src/guestfs-actions.pod:5555
15474 msgid ""
15475 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
15476 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
15477 msgstr ""
15478
15479 #. type: =head2
15480 #: ../src/guestfs-actions.pod:5561
15481 msgid "guestfs_readlink"
15482 msgstr ""
15483
15484 #. type: verbatim
15485 #: ../src/guestfs-actions.pod:5563
15486 #, no-wrap
15487 msgid ""
15488 " char *\n"
15489 " guestfs_readlink (guestfs_h *g,\n"
15490 "                   const char *path);\n"
15491 "\n"
15492 msgstr ""
15493
15494 #. type: textblock
15495 #: ../src/guestfs-actions.pod:5567 ../fish/guestfish-actions.pod:3751
15496 msgid "This command reads the target of a symbolic link."
15497 msgstr ""
15498
15499 #. type: =head2
15500 #: ../src/guestfs-actions.pod:5574
15501 msgid "guestfs_readlinklist"
15502 msgstr ""
15503
15504 #. type: verbatim
15505 #: ../src/guestfs-actions.pod:5576
15506 #, no-wrap
15507 msgid ""
15508 " char **\n"
15509 " guestfs_readlinklist (guestfs_h *g,\n"
15510 "                       const char *path,\n"
15511 "                       char *const *names);\n"
15512 "\n"
15513 msgstr ""
15514
15515 #. type: textblock
15516 #: ../src/guestfs-actions.pod:5581 ../fish/guestfish-actions.pod:3757
15517 msgid ""
15518 "This call allows you to do a C<readlink> operation on multiple files, where "
15519 "all files are in the directory C<path>.  C<names> is the list of files from "
15520 "this directory."
15521 msgstr ""
15522
15523 #. type: textblock
15524 #: ../src/guestfs-actions.pod:5585 ../fish/guestfish-actions.pod:3761
15525 msgid ""
15526 "On return you get a list of strings, with a one-to-one correspondence to the "
15527 "C<names> list.  Each string is the value of the symbolic link."
15528 msgstr ""
15529
15530 #. type: textblock
15531 #: ../src/guestfs-actions.pod:5589 ../fish/guestfish-actions.pod:3765
15532 msgid ""
15533 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15534 "result string is the empty string C<\"\">.  However the whole operation is "
15535 "completed even if there were C<readlink(2)> errors, and so you can call this "
15536 "function with names where you don't know if they are symbolic links already "
15537 "(albeit slightly less efficient)."
15538 msgstr ""
15539
15540 #. type: textblock
15541 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:3772
15542 msgid ""
15543 "This call is intended for programs that want to efficiently list a directory "
15544 "contents without making many round-trips.  Very long directory listings "
15545 "might cause the protocol message size to be exceeded, causing this call to "
15546 "fail.  The caller must split up such requests into smaller groups of names."
15547 msgstr ""
15548
15549 #. type: =head2
15550 #: ../src/guestfs-actions.pod:5609
15551 msgid "guestfs_realpath"
15552 msgstr ""
15553
15554 #. type: verbatim
15555 #: ../src/guestfs-actions.pod:5611
15556 #, no-wrap
15557 msgid ""
15558 " char *\n"
15559 " guestfs_realpath (guestfs_h *g,\n"
15560 "                   const char *path);\n"
15561 "\n"
15562 msgstr ""
15563
15564 #. type: textblock
15565 #: ../src/guestfs-actions.pod:5615 ../fish/guestfish-actions.pod:3783
15566 msgid ""
15567 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15568 "has no C<.>, C<..> or symbolic link path elements."
15569 msgstr ""
15570
15571 #. type: =head2
15572 #: ../src/guestfs-actions.pod:5623
15573 msgid "guestfs_removexattr"
15574 msgstr ""
15575
15576 #. type: verbatim
15577 #: ../src/guestfs-actions.pod:5625
15578 #, no-wrap
15579 msgid ""
15580 " int\n"
15581 " guestfs_removexattr (guestfs_h *g,\n"
15582 "                      const char *xattr,\n"
15583 "                      const char *path);\n"
15584 "\n"
15585 msgstr ""
15586
15587 #. type: textblock
15588 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3790
15589 msgid ""
15590 "This call removes the extended attribute named C<xattr> of the file C<path>."
15591 msgstr ""
15592
15593 #. type: textblock
15594 #: ../src/guestfs-actions.pod:5633
15595 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
15596 msgstr ""
15597
15598 #. type: =head2
15599 #: ../src/guestfs-actions.pod:5639
15600 msgid "guestfs_resize2fs"
15601 msgstr ""
15602
15603 #. type: verbatim
15604 #: ../src/guestfs-actions.pod:5641
15605 #, no-wrap
15606 msgid ""
15607 " int\n"
15608 " guestfs_resize2fs (guestfs_h *g,\n"
15609 "                    const char *device);\n"
15610 "\n"
15611 msgstr ""
15612
15613 #. type: textblock
15614 #: ../src/guestfs-actions.pod:5645 ../fish/guestfish-actions.pod:3799
15615 msgid ""
15616 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15617 "underlying device."
15618 msgstr ""
15619
15620 #. type: textblock
15621 #: ../src/guestfs-actions.pod:5648
15622 msgid ""
15623 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
15624 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
15625 "sometimes gives an error about this and sometimes not.  In any case, it is "
15626 "always safe to call C<guestfs_e2fsck_f> before calling this function."
15627 msgstr ""
15628
15629 #. type: =head2
15630 #: ../src/guestfs-actions.pod:5658
15631 msgid "guestfs_resize2fs_M"
15632 msgstr ""
15633
15634 #. type: verbatim
15635 #: ../src/guestfs-actions.pod:5660
15636 #, no-wrap
15637 msgid ""
15638 " int\n"
15639 " guestfs_resize2fs_M (guestfs_h *g,\n"
15640 "                      const char *device);\n"
15641 "\n"
15642 msgstr ""
15643
15644 #. type: textblock
15645 #: ../src/guestfs-actions.pod:5664
15646 msgid ""
15647 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
15648 "resized to its minimum size.  This works like the I<-M> option to the "
15649 "C<resize2fs> command."
15650 msgstr ""
15651
15652 #. type: textblock
15653 #: ../src/guestfs-actions.pod:5668
15654 msgid ""
15655 "To get the resulting size of the filesystem you should call "
15656 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
15657 "These two numbers, multiplied together, give the resulting size of the "
15658 "minimal filesystem in bytes."
15659 msgstr ""
15660
15661 #. type: =head2
15662 #: ../src/guestfs-actions.pod:5675
15663 msgid "guestfs_resize2fs_size"
15664 msgstr ""
15665
15666 #. type: verbatim
15667 #: ../src/guestfs-actions.pod:5677
15668 #, no-wrap
15669 msgid ""
15670 " int\n"
15671 " guestfs_resize2fs_size (guestfs_h *g,\n"
15672 "                         const char *device,\n"
15673 "                         int64_t size);\n"
15674 "\n"
15675 msgstr ""
15676
15677 #. type: textblock
15678 #: ../src/guestfs-actions.pod:5682
15679 msgid ""
15680 "This command is the same as C<guestfs_resize2fs> except that it allows you "
15681 "to specify the new size (in bytes) explicitly."
15682 msgstr ""
15683
15684 #. type: =head2
15685 #: ../src/guestfs-actions.pod:5689
15686 msgid "guestfs_rm"
15687 msgstr ""
15688
15689 #. type: verbatim
15690 #: ../src/guestfs-actions.pod:5691
15691 #, no-wrap
15692 msgid ""
15693 " int\n"
15694 " guestfs_rm (guestfs_h *g,\n"
15695 "             const char *path);\n"
15696 "\n"
15697 msgstr ""
15698
15699 #. type: textblock
15700 #: ../src/guestfs-actions.pod:5695 ../fish/guestfish-actions.pod:3832
15701 msgid "Remove the single file C<path>."
15702 msgstr ""
15703
15704 #. type: =head2
15705 #: ../src/guestfs-actions.pod:5701
15706 msgid "guestfs_rm_rf"
15707 msgstr ""
15708
15709 #. type: verbatim
15710 #: ../src/guestfs-actions.pod:5703
15711 #, no-wrap
15712 msgid ""
15713 " int\n"
15714 " guestfs_rm_rf (guestfs_h *g,\n"
15715 "                const char *path);\n"
15716 "\n"
15717 msgstr ""
15718
15719 #. type: textblock
15720 #: ../src/guestfs-actions.pod:5707 ../fish/guestfish-actions.pod:3838
15721 msgid ""
15722 "Remove the file or directory C<path>, recursively removing the contents if "
15723 "its a directory.  This is like the C<rm -rf> shell command."
15724 msgstr ""
15725
15726 #. type: =head2
15727 #: ../src/guestfs-actions.pod:5715
15728 msgid "guestfs_rmdir"
15729 msgstr ""
15730
15731 #. type: verbatim
15732 #: ../src/guestfs-actions.pod:5717
15733 #, no-wrap
15734 msgid ""
15735 " int\n"
15736 " guestfs_rmdir (guestfs_h *g,\n"
15737 "                const char *path);\n"
15738 "\n"
15739 msgstr ""
15740
15741 #. type: textblock
15742 #: ../src/guestfs-actions.pod:5721 ../fish/guestfish-actions.pod:3846
15743 msgid "Remove the single directory C<path>."
15744 msgstr ""
15745
15746 #. type: =head2
15747 #: ../src/guestfs-actions.pod:5727
15748 msgid "guestfs_rmmountpoint"
15749 msgstr ""
15750
15751 #. type: verbatim
15752 #: ../src/guestfs-actions.pod:5729
15753 #, no-wrap
15754 msgid ""
15755 " int\n"
15756 " guestfs_rmmountpoint (guestfs_h *g,\n"
15757 "                       const char *exemptpath);\n"
15758 "\n"
15759 msgstr ""
15760
15761 #. type: textblock
15762 #: ../src/guestfs-actions.pod:5733
15763 msgid ""
15764 "This calls removes a mountpoint that was previously created with "
15765 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
15766 msgstr ""
15767
15768 #. type: =head2
15769 #: ../src/guestfs-actions.pod:5741
15770 msgid "guestfs_scrub_device"
15771 msgstr ""
15772
15773 #. type: verbatim
15774 #: ../src/guestfs-actions.pod:5743
15775 #, no-wrap
15776 msgid ""
15777 " int\n"
15778 " guestfs_scrub_device (guestfs_h *g,\n"
15779 "                       const char *device);\n"
15780 "\n"
15781 msgstr ""
15782
15783 #. type: textblock
15784 #: ../src/guestfs-actions.pod:5747 ../fish/guestfish-actions.pod:3860
15785 msgid ""
15786 "This command writes patterns over C<device> to make data retrieval more "
15787 "difficult."
15788 msgstr ""
15789
15790 #. type: textblock
15791 #: ../src/guestfs-actions.pod:5750 ../src/guestfs-actions.pod:5771
15792 #: ../src/guestfs-actions.pod:5790 ../fish/guestfish-actions.pod:3863
15793 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3891
15794 msgid ""
15795 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15796 "more details."
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../src/guestfs-actions.pod:5758 ../src/guestfs-actions.pod:5776
15801 #: ../src/guestfs-actions.pod:5795
15802 msgid "(Added in 1.0.52)"
15803 msgstr ""
15804
15805 #. type: =head2
15806 #: ../src/guestfs-actions.pod:5760
15807 msgid "guestfs_scrub_file"
15808 msgstr ""
15809
15810 #. type: verbatim
15811 #: ../src/guestfs-actions.pod:5762
15812 #, no-wrap
15813 msgid ""
15814 " int\n"
15815 " guestfs_scrub_file (guestfs_h *g,\n"
15816 "                     const char *file);\n"
15817 "\n"
15818 msgstr ""
15819
15820 #. type: textblock
15821 #: ../src/guestfs-actions.pod:5766 ../fish/guestfish-actions.pod:3873
15822 msgid ""
15823 "This command writes patterns over a file to make data retrieval more "
15824 "difficult."
15825 msgstr ""
15826
15827 #. type: textblock
15828 #: ../src/guestfs-actions.pod:5769 ../fish/guestfish-actions.pod:3876
15829 msgid "The file is I<removed> after scrubbing."
15830 msgstr ""
15831
15832 #. type: =head2
15833 #: ../src/guestfs-actions.pod:5778
15834 msgid "guestfs_scrub_freespace"
15835 msgstr ""
15836
15837 #. type: verbatim
15838 #: ../src/guestfs-actions.pod:5780
15839 #, no-wrap
15840 msgid ""
15841 " int\n"
15842 " guestfs_scrub_freespace (guestfs_h *g,\n"
15843 "                          const char *dir);\n"
15844 "\n"
15845 msgstr ""
15846
15847 #. type: textblock
15848 #: ../src/guestfs-actions.pod:5784
15849 msgid ""
15850 "This command creates the directory C<dir> and then fills it with files until "
15851 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
15852 "and deletes them.  The intention is to scrub any free space on the partition "
15853 "containing C<dir>."
15854 msgstr ""
15855
15856 #. type: =head2
15857 #: ../src/guestfs-actions.pod:5797
15858 msgid "guestfs_set_append"
15859 msgstr ""
15860
15861 #. type: verbatim
15862 #: ../src/guestfs-actions.pod:5799
15863 #, no-wrap
15864 msgid ""
15865 " int\n"
15866 " guestfs_set_append (guestfs_h *g,\n"
15867 "                     const char *append);\n"
15868 "\n"
15869 msgstr ""
15870
15871 #. type: textblock
15872 #: ../src/guestfs-actions.pod:5803 ../fish/guestfish-actions.pod:3900
15873 msgid ""
15874 "This function is used to add additional options to the guest kernel command "
15875 "line."
15876 msgstr ""
15877
15878 #. type: textblock
15879 #: ../src/guestfs-actions.pod:5806 ../fish/guestfish-actions.pod:3903
15880 msgid ""
15881 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15882 "environment variable."
15883 msgstr ""
15884
15885 #. type: textblock
15886 #: ../src/guestfs-actions.pod:5809 ../fish/guestfish-actions.pod:3906
15887 msgid ""
15888 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15889 "(libguestfs always adds a few of its own)."
15890 msgstr ""
15891
15892 #. type: =head2
15893 #: ../src/guestfs-actions.pod:5816
15894 msgid "guestfs_set_attach_method"
15895 msgstr ""
15896
15897 #. type: verbatim
15898 #: ../src/guestfs-actions.pod:5818
15899 #, no-wrap
15900 msgid ""
15901 " int\n"
15902 " guestfs_set_attach_method (guestfs_h *g,\n"
15903 "                            const char *attachmethod);\n"
15904 "\n"
15905 msgstr ""
15906
15907 #. type: textblock
15908 #: ../src/guestfs-actions.pod:5822 ../fish/guestfish-actions.pod:3915
15909 msgid ""
15910 "Set the method that libguestfs uses to connect to the back end guestfsd "
15911 "daemon.  Possible methods are:"
15912 msgstr ""
15913
15914 #. type: textblock
15915 #: ../src/guestfs-actions.pod:5829 ../fish/guestfish-actions.pod:3922
15916 msgid ""
15917 "Launch an appliance and connect to it.  This is the ordinary method and the "
15918 "default."
15919 msgstr ""
15920
15921 #. type: =item
15922 #: ../src/guestfs-actions.pod:5832 ../fish/guestfish-actions.pod:3925
15923 msgid "C<unix:I<path>>"
15924 msgstr ""
15925
15926 #. type: textblock
15927 #: ../src/guestfs-actions.pod:5834 ../fish/guestfish-actions.pod:3927
15928 msgid "Connect to the Unix domain socket I<path>."
15929 msgstr ""
15930
15931 #. type: textblock
15932 #: ../src/guestfs-actions.pod:5836 ../fish/guestfish-actions.pod:3929
15933 msgid ""
15934 "This method lets you connect to an existing daemon or (using virtio-serial) "
15935 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15936 "RUNNING DAEMONS>."
15937 msgstr ""
15938
15939 #. type: =head2
15940 #: ../src/guestfs-actions.pod:5844
15941 msgid "guestfs_set_autosync"
15942 msgstr ""
15943
15944 #. type: verbatim
15945 #: ../src/guestfs-actions.pod:5846
15946 #, no-wrap
15947 msgid ""
15948 " int\n"
15949 " guestfs_set_autosync (guestfs_h *g,\n"
15950 "                       int autosync);\n"
15951 "\n"
15952 msgstr ""
15953
15954 #. type: textblock
15955 #: ../src/guestfs-actions.pod:5850 ../fish/guestfish-actions.pod:3941
15956 msgid ""
15957 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15958 "effort attempt to make filesystems consistent and synchronized when the "
15959 "handle is closed (also if the program exits without closing handles)."
15960 msgstr ""
15961
15962 #. type: textblock
15963 #: ../src/guestfs-actions.pod:5855 ../fish/guestfish-actions.pod:3946
15964 msgid ""
15965 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15966 "disabled by default)."
15967 msgstr ""
15968
15969 #. type: =head2
15970 #: ../src/guestfs-actions.pod:5862
15971 msgid "guestfs_set_direct"
15972 msgstr ""
15973
15974 #. type: verbatim
15975 #: ../src/guestfs-actions.pod:5864
15976 #, no-wrap
15977 msgid ""
15978 " int\n"
15979 " guestfs_set_direct (guestfs_h *g,\n"
15980 "                     int direct);\n"
15981 "\n"
15982 msgstr ""
15983
15984 #. type: textblock
15985 #: ../src/guestfs-actions.pod:5868 ../fish/guestfish-actions.pod:3955
15986 msgid ""
15987 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15988 "passed directly through to the appliance once it is launched."
15989 msgstr ""
15990
15991 #. type: textblock
15992 #: ../src/guestfs-actions.pod:5872
15993 msgid ""
15994 "One consequence of this is that log messages aren't caught by the library "
15995 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
15996 "stdout."
15997 msgstr ""
15998
15999 #. type: textblock
16000 #: ../src/guestfs-actions.pod:5876 ../fish/guestfish-actions.pod:3963
16001 msgid "You probably don't want to use this unless you know what you are doing."
16002 msgstr ""
16003
16004 #. type: textblock
16005 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3966
16006 msgid "The default is disabled."
16007 msgstr ""
16008
16009 #. type: =head2
16010 #: ../src/guestfs-actions.pod:5885
16011 msgid "guestfs_set_e2label"
16012 msgstr ""
16013
16014 #. type: verbatim
16015 #: ../src/guestfs-actions.pod:5887
16016 #, no-wrap
16017 msgid ""
16018 " int\n"
16019 " guestfs_set_e2label (guestfs_h *g,\n"
16020 "                      const char *device,\n"
16021 "                      const char *label);\n"
16022 "\n"
16023 msgstr ""
16024
16025 #. type: textblock
16026 #: ../src/guestfs-actions.pod:5892 ../fish/guestfish-actions.pod:3972
16027 msgid ""
16028 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16029 "C<label>.  Filesystem labels are limited to 16 characters."
16030 msgstr ""
16031
16032 #. type: textblock
16033 #: ../src/guestfs-actions.pod:5896
16034 msgid ""
16035 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
16036 "the existing label on a filesystem."
16037 msgstr ""
16038
16039 #. type: =head2
16040 #: ../src/guestfs-actions.pod:5903
16041 msgid "guestfs_set_e2uuid"
16042 msgstr ""
16043
16044 #. type: verbatim
16045 #: ../src/guestfs-actions.pod:5905
16046 #, no-wrap
16047 msgid ""
16048 " int\n"
16049 " guestfs_set_e2uuid (guestfs_h *g,\n"
16050 "                     const char *device,\n"
16051 "                     const char *uuid);\n"
16052 "\n"
16053 msgstr ""
16054
16055 #. type: textblock
16056 #: ../src/guestfs-actions.pod:5910 ../fish/guestfish-actions.pod:3983
16057 msgid ""
16058 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16059 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16060 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16061 msgstr ""
16062
16063 #. type: textblock
16064 #: ../src/guestfs-actions.pod:5915
16065 msgid ""
16066 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
16067 "the existing UUID of a filesystem."
16068 msgstr ""
16069
16070 #. type: =head2
16071 #: ../src/guestfs-actions.pod:5922
16072 msgid "guestfs_set_memsize"
16073 msgstr ""
16074
16075 #. type: verbatim
16076 #: ../src/guestfs-actions.pod:5924
16077 #, no-wrap
16078 msgid ""
16079 " int\n"
16080 " guestfs_set_memsize (guestfs_h *g,\n"
16081 "                      int memsize);\n"
16082 "\n"
16083 msgstr ""
16084
16085 #. type: textblock
16086 #: ../src/guestfs-actions.pod:5928
16087 msgid ""
16088 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16089 "This only has any effect if called before C<guestfs_launch>."
16090 msgstr ""
16091
16092 #. type: textblock
16093 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:4001
16094 msgid ""
16095 "You can also change this by setting the environment variable "
16096 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16097 msgstr ""
16098
16099 #. type: =head2
16100 #: ../src/guestfs-actions.pod:5943
16101 msgid "guestfs_set_network"
16102 msgstr ""
16103
16104 #. type: verbatim
16105 #: ../src/guestfs-actions.pod:5945
16106 #, no-wrap
16107 msgid ""
16108 " int\n"
16109 " guestfs_set_network (guestfs_h *g,\n"
16110 "                      int network);\n"
16111 "\n"
16112 msgstr ""
16113
16114 #. type: textblock
16115 #: ../src/guestfs-actions.pod:5949 ../fish/guestfish-actions.pod:4014
16116 msgid ""
16117 "If C<network> is true, then the network is enabled in the libguestfs "
16118 "appliance.  The default is false."
16119 msgstr ""
16120
16121 #. type: textblock
16122 #: ../src/guestfs-actions.pod:5952 ../fish/guestfish-actions.pod:4017
16123 msgid ""
16124 "This affects whether commands are able to access the network (see L<guestfs"
16125 "(3)/RUNNING COMMANDS>)."
16126 msgstr ""
16127
16128 #. type: textblock
16129 #: ../src/guestfs-actions.pod:5955
16130 msgid ""
16131 "You must call this before calling C<guestfs_launch>, otherwise it has no "
16132 "effect."
16133 msgstr ""
16134
16135 #. type: =head2
16136 #: ../src/guestfs-actions.pod:5962
16137 msgid "guestfs_set_path"
16138 msgstr ""
16139
16140 #. type: verbatim
16141 #: ../src/guestfs-actions.pod:5964
16142 #, no-wrap
16143 msgid ""
16144 " int\n"
16145 " guestfs_set_path (guestfs_h *g,\n"
16146 "                   const char *searchpath);\n"
16147 "\n"
16148 msgstr ""
16149
16150 #. type: textblock
16151 #: ../src/guestfs-actions.pod:5968 ../fish/guestfish-actions.pod:4029
16152 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16153 msgstr ""
16154
16155 #. type: textblock
16156 #: ../src/guestfs-actions.pod:5970 ../fish/guestfish-actions.pod:4031
16157 msgid ""
16158 "The default is C<$libdir/guestfs> unless overridden by setting "
16159 "C<LIBGUESTFS_PATH> environment variable."
16160 msgstr ""
16161
16162 #. type: textblock
16163 #: ../src/guestfs-actions.pod:5973 ../fish/guestfish-actions.pod:4034
16164 msgid "Setting C<path> to C<NULL> restores the default path."
16165 msgstr ""
16166
16167 #. type: =head2
16168 #: ../src/guestfs-actions.pod:5979
16169 msgid "guestfs_set_qemu"
16170 msgstr ""
16171
16172 #. type: verbatim
16173 #: ../src/guestfs-actions.pod:5981
16174 #, no-wrap
16175 msgid ""
16176 " int\n"
16177 " guestfs_set_qemu (guestfs_h *g,\n"
16178 "                   const char *qemu);\n"
16179 "\n"
16180 msgstr ""
16181
16182 #. type: textblock
16183 #: ../src/guestfs-actions.pod:5985 ../fish/guestfish-actions.pod:4042
16184 msgid "Set the qemu binary that we will use."
16185 msgstr ""
16186
16187 #. type: textblock
16188 #: ../src/guestfs-actions.pod:5987 ../fish/guestfish-actions.pod:4044
16189 msgid ""
16190 "The default is chosen when the library was compiled by the configure script."
16191 msgstr ""
16192
16193 #. type: textblock
16194 #: ../src/guestfs-actions.pod:5990 ../fish/guestfish-actions.pod:4047
16195 msgid ""
16196 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16197 "variable."
16198 msgstr ""
16199
16200 #. type: textblock
16201 #: ../src/guestfs-actions.pod:5993 ../fish/guestfish-actions.pod:4050
16202 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16203 msgstr ""
16204
16205 #. type: textblock
16206 #: ../src/guestfs-actions.pod:5995 ../fish/guestfish-actions.pod:4052
16207 msgid ""
16208 "Note that you should call this function as early as possible after creating "
16209 "the handle.  This is because some pre-launch operations depend on testing "
16210 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16211 "don't retest features, and so you might see inconsistent results.  Using the "
16212 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16213 "the qemu binary at the same time as the handle is created."
16214 msgstr ""
16215
16216 #. type: =head2
16217 #: ../src/guestfs-actions.pod:6007
16218 msgid "guestfs_set_recovery_proc"
16219 msgstr ""
16220
16221 #. type: verbatim
16222 #: ../src/guestfs-actions.pod:6009
16223 #, no-wrap
16224 msgid ""
16225 " int\n"
16226 " guestfs_set_recovery_proc (guestfs_h *g,\n"
16227 "                            int recoveryproc);\n"
16228 "\n"
16229 msgstr ""
16230
16231 #. type: textblock
16232 #: ../src/guestfs-actions.pod:6013
16233 msgid ""
16234 "If this is called with the parameter C<false> then C<guestfs_launch> does "
16235 "not create a recovery process.  The purpose of the recovery process is to "
16236 "stop runaway qemu processes in the case where the main program aborts "
16237 "abruptly."
16238 msgstr ""
16239
16240 #. type: textblock
16241 #: ../src/guestfs-actions.pod:6018
16242 msgid ""
16243 "This only has any effect if called before C<guestfs_launch>, and the default "
16244 "is true."
16245 msgstr ""
16246
16247 #. type: textblock
16248 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:4074
16249 msgid ""
16250 "About the only time when you would want to disable this is if the main "
16251 "process will fork itself into the background (\"daemonize\" itself).  In "
16252 "this case the recovery process thinks that the main program has disappeared "
16253 "and so kills qemu, which is not very helpful."
16254 msgstr ""
16255
16256 #. type: =head2
16257 #: ../src/guestfs-actions.pod:6031
16258 msgid "guestfs_set_selinux"
16259 msgstr ""
16260
16261 #. type: verbatim
16262 #: ../src/guestfs-actions.pod:6033
16263 #, no-wrap
16264 msgid ""
16265 " int\n"
16266 " guestfs_set_selinux (guestfs_h *g,\n"
16267 "                      int selinux);\n"
16268 "\n"
16269 msgstr ""
16270
16271 #. type: textblock
16272 #: ../src/guestfs-actions.pod:6037 ../fish/guestfish-actions.pod:4086
16273 msgid ""
16274 "This sets the selinux flag that is passed to the appliance at boot time.  "
16275 "The default is C<selinux=0> (disabled)."
16276 msgstr ""
16277
16278 #. type: textblock
16279 #: ../src/guestfs-actions.pod:6040 ../fish/guestfish-actions.pod:4089
16280 msgid ""
16281 "Note that if SELinux is enabled, it is always in Permissive mode "
16282 "(C<enforcing=0>)."
16283 msgstr ""
16284
16285 #. type: =head2
16286 #: ../src/guestfs-actions.pod:6050
16287 msgid "guestfs_set_trace"
16288 msgstr ""
16289
16290 #. type: verbatim
16291 #: ../src/guestfs-actions.pod:6052
16292 #, no-wrap
16293 msgid ""
16294 " int\n"
16295 " guestfs_set_trace (guestfs_h *g,\n"
16296 "                    int trace);\n"
16297 "\n"
16298 msgstr ""
16299
16300 #. type: textblock
16301 #: ../src/guestfs-actions.pod:6056 ../fish/guestfish-actions.pod:4101
16302 msgid ""
16303 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16304 "return values are traced."
16305 msgstr ""
16306
16307 #. type: textblock
16308 #: ../src/guestfs-actions.pod:6059 ../fish/guestfish-actions.pod:4104
16309 msgid ""
16310 "If you want to trace C API calls into libguestfs (and other libraries) then "
16311 "possibly a better way is to use the external ltrace(1) command."
16312 msgstr ""
16313
16314 #. type: textblock
16315 #: ../src/guestfs-actions.pod:6063 ../fish/guestfish-actions.pod:4108
16316 msgid ""
16317 "Command traces are disabled unless the environment variable "
16318 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../src/guestfs-actions.pod:6066
16323 msgid ""
16324 "Trace messages are normally sent to C<stderr>, unless you register a "
16325 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16326 msgstr ""
16327
16328 #. type: =head2
16329 #: ../src/guestfs-actions.pod:6074
16330 msgid "guestfs_set_verbose"
16331 msgstr ""
16332
16333 #. type: verbatim
16334 #: ../src/guestfs-actions.pod:6076
16335 #, no-wrap
16336 msgid ""
16337 " int\n"
16338 " guestfs_set_verbose (guestfs_h *g,\n"
16339 "                      int verbose);\n"
16340 "\n"
16341 msgstr ""
16342
16343 #. type: textblock
16344 #: ../src/guestfs-actions.pod:6080 ../fish/guestfish-actions.pod:4121
16345 msgid "If C<verbose> is true, this turns on verbose messages."
16346 msgstr ""
16347
16348 #. type: textblock
16349 #: ../src/guestfs-actions.pod:6082 ../fish/guestfish-actions.pod:4123
16350 msgid ""
16351 "Verbose messages are disabled unless the environment variable "
16352 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16353 msgstr ""
16354
16355 #. type: textblock
16356 #: ../src/guestfs-actions.pod:6085
16357 msgid ""
16358 "Verbose messages are normally sent to C<stderr>, unless you register a "
16359 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16360 msgstr ""
16361
16362 #. type: =head2
16363 #: ../src/guestfs-actions.pod:6093
16364 msgid "guestfs_setcon"
16365 msgstr ""
16366
16367 #. type: verbatim
16368 #: ../src/guestfs-actions.pod:6095
16369 #, no-wrap
16370 msgid ""
16371 " int\n"
16372 " guestfs_setcon (guestfs_h *g,\n"
16373 "                 const char *context);\n"
16374 "\n"
16375 msgstr ""
16376
16377 #. type: textblock
16378 #: ../src/guestfs-actions.pod:6099 ../fish/guestfish-actions.pod:4134
16379 msgid ""
16380 "This sets the SELinux security context of the daemon to the string "
16381 "C<context>."
16382 msgstr ""
16383
16384 #. type: textblock
16385 #: ../src/guestfs-actions.pod:6102 ../fish/guestfish-actions.pod:4137
16386 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16387 msgstr ""
16388
16389 #. type: =head2
16390 #: ../src/guestfs-actions.pod:6108
16391 msgid "guestfs_setxattr"
16392 msgstr ""
16393
16394 #. type: verbatim
16395 #: ../src/guestfs-actions.pod:6110
16396 #, no-wrap
16397 msgid ""
16398 " int\n"
16399 " guestfs_setxattr (guestfs_h *g,\n"
16400 "                   const char *xattr,\n"
16401 "                   const char *val,\n"
16402 "                   int vallen,\n"
16403 "                   const char *path);\n"
16404 "\n"
16405 msgstr ""
16406
16407 #. type: textblock
16408 #: ../src/guestfs-actions.pod:6117 ../fish/guestfish-actions.pod:4143
16409 msgid ""
16410 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16411 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16412 msgstr ""
16413
16414 #. type: textblock
16415 #: ../src/guestfs-actions.pod:6121
16416 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
16417 msgstr ""
16418
16419 #. type: =head2
16420 #: ../src/guestfs-actions.pod:6127
16421 msgid "guestfs_sfdisk"
16422 msgstr ""
16423
16424 #. type: verbatim
16425 #: ../src/guestfs-actions.pod:6129
16426 #, no-wrap
16427 msgid ""
16428 " int\n"
16429 " guestfs_sfdisk (guestfs_h *g,\n"
16430 "                 const char *device,\n"
16431 "                 int cyls,\n"
16432 "                 int heads,\n"
16433 "                 int sectors,\n"
16434 "                 char *const *lines);\n"
16435 "\n"
16436 msgstr ""
16437
16438 #. type: textblock
16439 #: ../src/guestfs-actions.pod:6137 ../fish/guestfish-actions.pod:4153
16440 msgid ""
16441 "This is a direct interface to the L<sfdisk(8)> program for creating "
16442 "partitions on block devices."
16443 msgstr ""
16444
16445 #. type: textblock
16446 #: ../src/guestfs-actions.pod:6140 ../fish/guestfish-actions.pod:4156
16447 msgid "C<device> should be a block device, for example C</dev/sda>."
16448 msgstr ""
16449
16450 #. type: textblock
16451 #: ../src/guestfs-actions.pod:6142 ../fish/guestfish-actions.pod:4158
16452 msgid ""
16453 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16454 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16455 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16456 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16457 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16458 "the kernel) cannot work out the right geometry and you will need to tell it."
16459 msgstr ""
16460
16461 #. type: textblock
16462 #: ../src/guestfs-actions.pod:6150 ../fish/guestfish-actions.pod:4166
16463 msgid ""
16464 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16465 "refer to the L<sfdisk(8)> manpage."
16466 msgstr ""
16467
16468 #. type: textblock
16469 #: ../src/guestfs-actions.pod:6153 ../fish/guestfish-actions.pod:4169
16470 msgid ""
16471 "To create a single partition occupying the whole disk, you would pass "
16472 "C<lines> as a single element list, when the single element being the string "
16473 "C<,> (comma)."
16474 msgstr ""
16475
16476 #. type: textblock
16477 #: ../src/guestfs-actions.pod:6157
16478 msgid ""
16479 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
16480 msgstr ""
16481
16482 #. type: textblock
16483 #: ../src/guestfs-actions.pod:6165 ../src/guestfs-actions.pod:6195
16484 #: ../src/guestfs-actions.pod:6228 ../fish/guestfish-actions.pod:4179
16485 #: ../fish/guestfish-actions.pod:4202 ../fish/guestfish-actions.pod:4224
16486 msgid ""
16487 "This function is deprecated.  In new code, use the C<part_add> call instead."
16488 msgstr ""
16489
16490 #. type: =head2
16491 #: ../src/guestfs-actions.pod:6174
16492 msgid "guestfs_sfdiskM"
16493 msgstr ""
16494
16495 #. type: verbatim
16496 #: ../src/guestfs-actions.pod:6176
16497 #, no-wrap
16498 msgid ""
16499 " int\n"
16500 " guestfs_sfdiskM (guestfs_h *g,\n"
16501 "                  const char *device,\n"
16502 "                  char *const *lines);\n"
16503 "\n"
16504 msgstr ""
16505
16506 #. type: textblock
16507 #: ../src/guestfs-actions.pod:6181
16508 msgid ""
16509 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
16510 "partition sizes are specified in megabytes only (rounded to the nearest "
16511 "cylinder) and you don't need to specify the cyls, heads and sectors "
16512 "parameters which were rarely if ever used anyway."
16513 msgstr ""
16514
16515 #. type: textblock
16516 #: ../src/guestfs-actions.pod:6187
16517 msgid ""
16518 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
16519 "C<guestfs_part_disk>"
16520 msgstr ""
16521
16522 #. type: =head2
16523 #: ../src/guestfs-actions.pod:6204
16524 msgid "guestfs_sfdisk_N"
16525 msgstr ""
16526
16527 #. type: verbatim
16528 #: ../src/guestfs-actions.pod:6206
16529 #, no-wrap
16530 msgid ""
16531 " int\n"
16532 " guestfs_sfdisk_N (guestfs_h *g,\n"
16533 "                   const char *device,\n"
16534 "                   int partnum,\n"
16535 "                   int cyls,\n"
16536 "                   int heads,\n"
16537 "                   int sectors,\n"
16538 "                   const char *line);\n"
16539 "\n"
16540 msgstr ""
16541
16542 #. type: textblock
16543 #: ../src/guestfs-actions.pod:6215 ../fish/guestfish-actions.pod:4213
16544 msgid ""
16545 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16546 "(note: C<n> counts from 1)."
16547 msgstr ""
16548
16549 #. type: textblock
16550 #: ../src/guestfs-actions.pod:6218
16551 msgid ""
16552 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
16553 "for the cyls/heads/sectors parameters."
16554 msgstr ""
16555
16556 #. type: textblock
16557 #: ../src/guestfs-actions.pod:6221
16558 msgid "See also: C<guestfs_part_add>"
16559 msgstr ""
16560
16561 #. type: =head2
16562 #: ../src/guestfs-actions.pod:6237
16563 msgid "guestfs_sfdisk_disk_geometry"
16564 msgstr ""
16565
16566 #. type: verbatim
16567 #: ../src/guestfs-actions.pod:6239
16568 #, no-wrap
16569 msgid ""
16570 " char *\n"
16571 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
16572 "                               const char *device);\n"
16573 "\n"
16574 msgstr ""
16575
16576 #. type: textblock
16577 #: ../src/guestfs-actions.pod:6243
16578 msgid ""
16579 "This displays the disk geometry of C<device> read from the partition table.  "
16580 "Especially in the case where the underlying block device has been resized, "
16581 "this can be different from the kernel's idea of the geometry (see "
16582 "C<guestfs_sfdisk_kernel_geometry>)."
16583 msgstr ""
16584
16585 #. type: textblock
16586 #: ../src/guestfs-actions.pod:6248 ../src/guestfs-actions.pod:6264
16587 #: ../fish/guestfish-actions.pod:4240 ../fish/guestfish-actions.pod:4249
16588 msgid "The result is in human-readable format, and not designed to be parsed."
16589 msgstr ""
16590
16591 #. type: =head2
16592 #: ../src/guestfs-actions.pod:6256
16593 msgid "guestfs_sfdisk_kernel_geometry"
16594 msgstr ""
16595
16596 #. type: verbatim
16597 #: ../src/guestfs-actions.pod:6258
16598 #, no-wrap
16599 msgid ""
16600 " char *\n"
16601 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
16602 "                                 const char *device);\n"
16603 "\n"
16604 msgstr ""
16605
16606 #. type: textblock
16607 #: ../src/guestfs-actions.pod:6262 ../fish/guestfish-actions.pod:4247
16608 msgid "This displays the kernel's idea of the geometry of C<device>."
16609 msgstr ""
16610
16611 #. type: =head2
16612 #: ../src/guestfs-actions.pod:6272
16613 msgid "guestfs_sfdisk_l"
16614 msgstr ""
16615
16616 #. type: verbatim
16617 #: ../src/guestfs-actions.pod:6274
16618 #, no-wrap
16619 msgid ""
16620 " char *\n"
16621 " guestfs_sfdisk_l (guestfs_h *g,\n"
16622 "                   const char *device);\n"
16623 "\n"
16624 msgstr ""
16625
16626 #. type: textblock
16627 #: ../src/guestfs-actions.pod:6278 ../fish/guestfish-actions.pod:4256
16628 msgid ""
16629 "This displays the partition table on C<device>, in the human-readable output "
16630 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16631 msgstr ""
16632
16633 #. type: textblock
16634 #: ../src/guestfs-actions.pod:6282
16635 msgid "See also: C<guestfs_part_list>"
16636 msgstr ""
16637
16638 #. type: textblock
16639 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4262
16640 msgid ""
16641 "This function is deprecated.  In new code, use the C<part_list> call instead."
16642 msgstr ""
16643
16644 #. type: =head2
16645 #: ../src/guestfs-actions.pod:6296
16646 msgid "guestfs_sh"
16647 msgstr ""
16648
16649 #. type: verbatim
16650 #: ../src/guestfs-actions.pod:6298
16651 #, no-wrap
16652 msgid ""
16653 " char *\n"
16654 " guestfs_sh (guestfs_h *g,\n"
16655 "             const char *command);\n"
16656 "\n"
16657 msgstr ""
16658
16659 #. type: textblock
16660 #: ../src/guestfs-actions.pod:6302 ../fish/guestfish-actions.pod:4273
16661 msgid ""
16662 "This call runs a command from the guest filesystem via the guest's C</bin/"
16663 "sh>."
16664 msgstr ""
16665
16666 #. type: textblock
16667 #: ../src/guestfs-actions.pod:6305
16668 msgid "This is like C<guestfs_command>, but passes the command to:"
16669 msgstr ""
16670
16671 #. type: verbatim
16672 #: ../src/guestfs-actions.pod:6307 ../fish/guestfish-actions.pod:4278
16673 #, no-wrap
16674 msgid ""
16675 " /bin/sh -c \"command\"\n"
16676 "\n"
16677 msgstr ""
16678
16679 #. type: textblock
16680 #: ../src/guestfs-actions.pod:6309 ../fish/guestfish-actions.pod:4280
16681 msgid ""
16682 "Depending on the guest's shell, this usually results in wildcards being "
16683 "expanded, shell expressions being interpolated and so on."
16684 msgstr ""
16685
16686 #. type: textblock
16687 #: ../src/guestfs-actions.pod:6313
16688 msgid "All the provisos about C<guestfs_command> apply to this call."
16689 msgstr ""
16690
16691 #. type: =head2
16692 #: ../src/guestfs-actions.pod:6320
16693 msgid "guestfs_sh_lines"
16694 msgstr ""
16695
16696 #. type: verbatim
16697 #: ../src/guestfs-actions.pod:6322
16698 #, no-wrap
16699 msgid ""
16700 " char **\n"
16701 " guestfs_sh_lines (guestfs_h *g,\n"
16702 "                   const char *command);\n"
16703 "\n"
16704 msgstr ""
16705
16706 #. type: textblock
16707 #: ../src/guestfs-actions.pod:6326
16708 msgid ""
16709 "This is the same as C<guestfs_sh>, but splits the result into a list of "
16710 "lines."
16711 msgstr ""
16712
16713 #. type: textblock
16714 #: ../src/guestfs-actions.pod:6329
16715 msgid "See also: C<guestfs_command_lines>"
16716 msgstr ""
16717
16718 #. type: =head2
16719 #: ../src/guestfs-actions.pod:6337
16720 msgid "guestfs_sleep"
16721 msgstr ""
16722
16723 #. type: verbatim
16724 #: ../src/guestfs-actions.pod:6339
16725 #, no-wrap
16726 msgid ""
16727 " int\n"
16728 " guestfs_sleep (guestfs_h *g,\n"
16729 "                int secs);\n"
16730 "\n"
16731 msgstr ""
16732
16733 #. type: textblock
16734 #: ../src/guestfs-actions.pod:6343 ../fish/guestfish-actions.pod:4299
16735 msgid "Sleep for C<secs> seconds."
16736 msgstr ""
16737
16738 #. type: textblock
16739 #: ../src/guestfs-actions.pod:6347
16740 msgid "(Added in 1.0.41)"
16741 msgstr ""
16742
16743 #. type: =head2
16744 #: ../src/guestfs-actions.pod:6349 ../src/guestfs-structs.pod:109
16745 msgid "guestfs_stat"
16746 msgstr ""
16747
16748 #. type: verbatim
16749 #: ../src/guestfs-actions.pod:6351
16750 #, no-wrap
16751 msgid ""
16752 " struct guestfs_stat *\n"
16753 " guestfs_stat (guestfs_h *g,\n"
16754 "               const char *path);\n"
16755 "\n"
16756 msgstr ""
16757
16758 #. type: textblock
16759 #: ../src/guestfs-actions.pod:6357 ../fish/guestfish-actions.pod:4307
16760 msgid "This is the same as the C<stat(2)> system call."
16761 msgstr ""
16762
16763 #. type: =head2
16764 #: ../src/guestfs-actions.pod:6365 ../src/guestfs-structs.pod:135
16765 msgid "guestfs_statvfs"
16766 msgstr ""
16767
16768 #. type: verbatim
16769 #: ../src/guestfs-actions.pod:6367
16770 #, no-wrap
16771 msgid ""
16772 " struct guestfs_statvfs *\n"
16773 " guestfs_statvfs (guestfs_h *g,\n"
16774 "                  const char *path);\n"
16775 "\n"
16776 msgstr ""
16777
16778 #. type: textblock
16779 #: ../src/guestfs-actions.pod:6371 ../fish/guestfish-actions.pod:4313
16780 msgid ""
16781 "Returns file system statistics for any mounted file system.  C<path> should "
16782 "be a file or directory in the mounted file system (typically it is the mount "
16783 "point itself, but it doesn't need to be)."
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../src/guestfs-actions.pod:6375 ../fish/guestfish-actions.pod:4317
16788 msgid "This is the same as the C<statvfs(2)> system call."
16789 msgstr ""
16790
16791 #. type: textblock
16792 #: ../src/guestfs-actions.pod:6377
16793 msgid ""
16794 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
16795 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
16796 msgstr ""
16797
16798 #. type: =head2
16799 #: ../src/guestfs-actions.pod:6383
16800 msgid "guestfs_strings"
16801 msgstr ""
16802
16803 #. type: verbatim
16804 #: ../src/guestfs-actions.pod:6385
16805 #, no-wrap
16806 msgid ""
16807 " char **\n"
16808 " guestfs_strings (guestfs_h *g,\n"
16809 "                  const char *path);\n"
16810 "\n"
16811 msgstr ""
16812
16813 #. type: textblock
16814 #: ../src/guestfs-actions.pod:6389 ../fish/guestfish-actions.pod:4323
16815 msgid ""
16816 "This runs the L<strings(1)> command on a file and returns the list of "
16817 "printable strings found."
16818 msgstr ""
16819
16820 #. type: =head2
16821 #: ../src/guestfs-actions.pod:6401
16822 msgid "guestfs_strings_e"
16823 msgstr ""
16824
16825 #. type: verbatim
16826 #: ../src/guestfs-actions.pod:6403
16827 #, no-wrap
16828 msgid ""
16829 " char **\n"
16830 " guestfs_strings_e (guestfs_h *g,\n"
16831 "                    const char *encoding,\n"
16832 "                    const char *path);\n"
16833 "\n"
16834 msgstr ""
16835
16836 #. type: textblock
16837 #: ../src/guestfs-actions.pod:6408
16838 msgid ""
16839 "This is like the C<guestfs_strings> command, but allows you to specify the "
16840 "encoding of strings that are looked for in the source file C<path>."
16841 msgstr ""
16842
16843 #. type: textblock
16844 #: ../src/guestfs-actions.pod:6412 ../fish/guestfish-actions.pod:4337
16845 msgid "Allowed encodings are:"
16846 msgstr ""
16847
16848 #. type: =item
16849 #: ../src/guestfs-actions.pod:6416 ../fish/guestfish-actions.pod:4341
16850 msgid "s"
16851 msgstr ""
16852
16853 #. type: textblock
16854 #: ../src/guestfs-actions.pod:6418
16855 msgid ""
16856 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16857 "ISO-8859-X (this is what C<guestfs_strings> uses)."
16858 msgstr ""
16859
16860 #. type: =item
16861 #: ../src/guestfs-actions.pod:6421 ../fish/guestfish-actions.pod:4346
16862 msgid "S"
16863 msgstr ""
16864
16865 #. type: textblock
16866 #: ../src/guestfs-actions.pod:6423 ../fish/guestfish-actions.pod:4348
16867 msgid "Single 8-bit-byte characters."
16868 msgstr ""
16869
16870 #. type: =item
16871 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4350
16872 msgid "b"
16873 msgstr ""
16874
16875 #. type: textblock
16876 #: ../src/guestfs-actions.pod:6427 ../fish/guestfish-actions.pod:4352
16877 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16878 msgstr ""
16879
16880 #. type: =item
16881 #: ../src/guestfs-actions.pod:6430 ../fish/guestfish-actions.pod:4355
16882 msgid "l (lower case letter L)"
16883 msgstr ""
16884
16885 #. type: textblock
16886 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4357
16887 msgid ""
16888 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16889 "examining binaries in Windows guests."
16890 msgstr ""
16891
16892 #. type: =item
16893 #: ../src/guestfs-actions.pod:6435 ../fish/guestfish-actions.pod:4360
16894 msgid "B"
16895 msgstr ""
16896
16897 #. type: textblock
16898 #: ../src/guestfs-actions.pod:6437 ../fish/guestfish-actions.pod:4362
16899 msgid "32-bit big endian such as UCS-4BE."
16900 msgstr ""
16901
16902 #. type: =item
16903 #: ../src/guestfs-actions.pod:6439 ../fish/guestfish-actions.pod:4364
16904 msgid "L"
16905 msgstr ""
16906
16907 #. type: textblock
16908 #: ../src/guestfs-actions.pod:6441 ../fish/guestfish-actions.pod:4366
16909 msgid "32-bit little endian such as UCS-4LE."
16910 msgstr ""
16911
16912 #. type: textblock
16913 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4370
16914 msgid "The returned strings are transcoded to UTF-8."
16915 msgstr ""
16916
16917 #. type: =head2
16918 #: ../src/guestfs-actions.pod:6456
16919 msgid "guestfs_swapoff_device"
16920 msgstr ""
16921
16922 #. type: verbatim
16923 #: ../src/guestfs-actions.pod:6458
16924 #, no-wrap
16925 msgid ""
16926 " int\n"
16927 " guestfs_swapoff_device (guestfs_h *g,\n"
16928 "                         const char *device);\n"
16929 "\n"
16930 msgstr ""
16931
16932 #. type: textblock
16933 #: ../src/guestfs-actions.pod:6462
16934 msgid ""
16935 "This command disables the libguestfs appliance swap device or partition "
16936 "named C<device>.  See C<guestfs_swapon_device>."
16937 msgstr ""
16938
16939 #. type: =head2
16940 #: ../src/guestfs-actions.pod:6470
16941 msgid "guestfs_swapoff_file"
16942 msgstr ""
16943
16944 #. type: verbatim
16945 #: ../src/guestfs-actions.pod:6472
16946 #, no-wrap
16947 msgid ""
16948 " int\n"
16949 " guestfs_swapoff_file (guestfs_h *g,\n"
16950 "                       const char *file);\n"
16951 "\n"
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../src/guestfs-actions.pod:6476 ../fish/guestfish-actions.pod:4387
16956 msgid "This command disables the libguestfs appliance swap on file."
16957 msgstr ""
16958
16959 #. type: =head2
16960 #: ../src/guestfs-actions.pod:6482
16961 msgid "guestfs_swapoff_label"
16962 msgstr ""
16963
16964 #. type: verbatim
16965 #: ../src/guestfs-actions.pod:6484
16966 #, no-wrap
16967 msgid ""
16968 " int\n"
16969 " guestfs_swapoff_label (guestfs_h *g,\n"
16970 "                        const char *label);\n"
16971 "\n"
16972 msgstr ""
16973
16974 #. type: textblock
16975 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4393
16976 msgid ""
16977 "This command disables the libguestfs appliance swap on labeled swap "
16978 "partition."
16979 msgstr ""
16980
16981 #. type: =head2
16982 #: ../src/guestfs-actions.pod:6495
16983 msgid "guestfs_swapoff_uuid"
16984 msgstr ""
16985
16986 #. type: verbatim
16987 #: ../src/guestfs-actions.pod:6497
16988 #, no-wrap
16989 msgid ""
16990 " int\n"
16991 " guestfs_swapoff_uuid (guestfs_h *g,\n"
16992 "                       const char *uuid);\n"
16993 "\n"
16994 msgstr ""
16995
16996 #. type: textblock
16997 #: ../src/guestfs-actions.pod:6501 ../fish/guestfish-actions.pod:4400
16998 msgid ""
16999 "This command disables the libguestfs appliance swap partition with the given "
17000 "UUID."
17001 msgstr ""
17002
17003 #. type: =head2
17004 #: ../src/guestfs-actions.pod:6508
17005 msgid "guestfs_swapon_device"
17006 msgstr ""
17007
17008 #. type: verbatim
17009 #: ../src/guestfs-actions.pod:6510
17010 #, no-wrap
17011 msgid ""
17012 " int\n"
17013 " guestfs_swapon_device (guestfs_h *g,\n"
17014 "                        const char *device);\n"
17015 "\n"
17016 msgstr ""
17017
17018 #. type: textblock
17019 #: ../src/guestfs-actions.pod:6514
17020 msgid ""
17021 "This command enables the libguestfs appliance to use the swap device or "
17022 "partition named C<device>.  The increased memory is made available for all "
17023 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
17024 msgstr ""
17025
17026 #. type: textblock
17027 #: ../src/guestfs-actions.pod:6519 ../fish/guestfish-actions.pod:4412
17028 msgid ""
17029 "Note that you should not swap to existing guest swap partitions unless you "
17030 "know what you are doing.  They may contain hibernation information, or other "
17031 "information that the guest doesn't want you to trash.  You also risk leaking "
17032 "information about the host to the guest this way.  Instead, attach a new "
17033 "host device to the guest and swap on that."
17034 msgstr ""
17035
17036 #. type: =head2
17037 #: ../src/guestfs-actions.pod:6530
17038 msgid "guestfs_swapon_file"
17039 msgstr ""
17040
17041 #. type: verbatim
17042 #: ../src/guestfs-actions.pod:6532
17043 #, no-wrap
17044 msgid ""
17045 " int\n"
17046 " guestfs_swapon_file (guestfs_h *g,\n"
17047 "                      const char *file);\n"
17048 "\n"
17049 msgstr ""
17050
17051 #. type: textblock
17052 #: ../src/guestfs-actions.pod:6536
17053 msgid ""
17054 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
17055 "notes."
17056 msgstr ""
17057
17058 #. type: =head2
17059 #: ../src/guestfs-actions.pod:6543
17060 msgid "guestfs_swapon_label"
17061 msgstr ""
17062
17063 #. type: verbatim
17064 #: ../src/guestfs-actions.pod:6545
17065 #, no-wrap
17066 msgid ""
17067 " int\n"
17068 " guestfs_swapon_label (guestfs_h *g,\n"
17069 "                       const char *label);\n"
17070 "\n"
17071 msgstr ""
17072
17073 #. type: textblock
17074 #: ../src/guestfs-actions.pod:6549
17075 msgid ""
17076 "This command enables swap to a labeled swap partition.  See "
17077 "C<guestfs_swapon_device> for other notes."
17078 msgstr ""
17079
17080 #. type: =head2
17081 #: ../src/guestfs-actions.pod:6556
17082 msgid "guestfs_swapon_uuid"
17083 msgstr ""
17084
17085 #. type: verbatim
17086 #: ../src/guestfs-actions.pod:6558
17087 #, no-wrap
17088 msgid ""
17089 " int\n"
17090 " guestfs_swapon_uuid (guestfs_h *g,\n"
17091 "                      const char *uuid);\n"
17092 "\n"
17093 msgstr ""
17094
17095 #. type: textblock
17096 #: ../src/guestfs-actions.pod:6562
17097 msgid ""
17098 "This command enables swap to a swap partition with the given UUID.  See "
17099 "C<guestfs_swapon_device> for other notes."
17100 msgstr ""
17101
17102 #. type: =head2
17103 #: ../src/guestfs-actions.pod:6569
17104 msgid "guestfs_sync"
17105 msgstr ""
17106
17107 #. type: verbatim
17108 #: ../src/guestfs-actions.pod:6571
17109 #, no-wrap
17110 msgid ""
17111 " int\n"
17112 " guestfs_sync (guestfs_h *g);\n"
17113 "\n"
17114 msgstr ""
17115
17116 #. type: textblock
17117 #: ../src/guestfs-actions.pod:6574 ../fish/guestfish-actions.pod:4444
17118 msgid ""
17119 "This syncs the disk, so that any writes are flushed through to the "
17120 "underlying disk image."
17121 msgstr ""
17122
17123 #. type: textblock
17124 #: ../src/guestfs-actions.pod:6577 ../fish/guestfish-actions.pod:4447
17125 msgid ""
17126 "You should always call this if you have modified a disk image, before "
17127 "closing the handle."
17128 msgstr ""
17129
17130 #. type: =head2
17131 #: ../src/guestfs-actions.pod:6584
17132 msgid "guestfs_tail"
17133 msgstr ""
17134
17135 #. type: verbatim
17136 #: ../src/guestfs-actions.pod:6586
17137 #, no-wrap
17138 msgid ""
17139 " char **\n"
17140 " guestfs_tail (guestfs_h *g,\n"
17141 "               const char *path);\n"
17142 "\n"
17143 msgstr ""
17144
17145 #. type: textblock
17146 #: ../src/guestfs-actions.pod:6590 ../fish/guestfish-actions.pod:4454
17147 msgid ""
17148 "This command returns up to the last 10 lines of a file as a list of strings."
17149 msgstr ""
17150
17151 #. type: =head2
17152 #: ../src/guestfs-actions.pod:6602
17153 msgid "guestfs_tail_n"
17154 msgstr ""
17155
17156 #. type: verbatim
17157 #: ../src/guestfs-actions.pod:6604
17158 #, no-wrap
17159 msgid ""
17160 " char **\n"
17161 " guestfs_tail_n (guestfs_h *g,\n"
17162 "                 int nrlines,\n"
17163 "                 const char *path);\n"
17164 "\n"
17165 msgstr ""
17166
17167 #. type: textblock
17168 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4464
17169 msgid ""
17170 "If the parameter C<nrlines> is a positive number, this returns the last "
17171 "C<nrlines> lines of the file C<path>."
17172 msgstr ""
17173
17174 #. type: textblock
17175 #: ../src/guestfs-actions.pod:6612 ../fish/guestfish-actions.pod:4467
17176 msgid ""
17177 "If the parameter C<nrlines> is a negative number, this returns lines from "
17178 "the file C<path>, starting with the C<-nrlines>th line."
17179 msgstr ""
17180
17181 #. type: =head2
17182 #: ../src/guestfs-actions.pod:6626
17183 msgid "guestfs_tar_in"
17184 msgstr ""
17185
17186 #. type: verbatim
17187 #: ../src/guestfs-actions.pod:6628
17188 #, no-wrap
17189 msgid ""
17190 " int\n"
17191 " guestfs_tar_in (guestfs_h *g,\n"
17192 "                 const char *tarfile,\n"
17193 "                 const char *directory);\n"
17194 "\n"
17195 msgstr ""
17196
17197 #. type: textblock
17198 #: ../src/guestfs-actions.pod:6633 ../fish/guestfish-actions.pod:4479
17199 msgid ""
17200 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17201 "tar file) into C<directory>."
17202 msgstr ""
17203
17204 #. type: textblock
17205 #: ../src/guestfs-actions.pod:6636
17206 msgid ""
17207 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
17208 msgstr ""
17209
17210 #. type: textblock
17211 #: ../src/guestfs-actions.pod:6641 ../src/guestfs-actions.pod:6658
17212 #: ../src/guestfs-actions.pod:6674 ../src/guestfs-actions.pod:6690
17213 msgid "(Added in 1.0.3)"
17214 msgstr ""
17215
17216 #. type: =head2
17217 #: ../src/guestfs-actions.pod:6643
17218 msgid "guestfs_tar_out"
17219 msgstr ""
17220
17221 #. type: verbatim
17222 #: ../src/guestfs-actions.pod:6645
17223 #, no-wrap
17224 msgid ""
17225 " int\n"
17226 " guestfs_tar_out (guestfs_h *g,\n"
17227 "                  const char *directory,\n"
17228 "                  const char *tarfile);\n"
17229 "\n"
17230 msgstr ""
17231
17232 #. type: textblock
17233 #: ../src/guestfs-actions.pod:6650 ../fish/guestfish-actions.pod:4491
17234 msgid ""
17235 "This command packs the contents of C<directory> and downloads it to local "
17236 "file C<tarfile>."
17237 msgstr ""
17238
17239 #. type: textblock
17240 #: ../src/guestfs-actions.pod:6653
17241 msgid ""
17242 "To download a compressed tarball, use C<guestfs_tgz_out> or "
17243 "C<guestfs_txz_out>."
17244 msgstr ""
17245
17246 #. type: =head2
17247 #: ../src/guestfs-actions.pod:6660
17248 msgid "guestfs_tgz_in"
17249 msgstr ""
17250
17251 #. type: verbatim
17252 #: ../src/guestfs-actions.pod:6662
17253 #, no-wrap
17254 msgid ""
17255 " int\n"
17256 " guestfs_tgz_in (guestfs_h *g,\n"
17257 "                 const char *tarball,\n"
17258 "                 const char *directory);\n"
17259 "\n"
17260 msgstr ""
17261
17262 #. type: textblock
17263 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4503
17264 msgid ""
17265 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17266 "tar file) into C<directory>."
17267 msgstr ""
17268
17269 #. type: textblock
17270 #: ../src/guestfs-actions.pod:6670
17271 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
17272 msgstr ""
17273
17274 #. type: =head2
17275 #: ../src/guestfs-actions.pod:6676
17276 msgid "guestfs_tgz_out"
17277 msgstr ""
17278
17279 #. type: verbatim
17280 #: ../src/guestfs-actions.pod:6678
17281 #, no-wrap
17282 msgid ""
17283 " int\n"
17284 " guestfs_tgz_out (guestfs_h *g,\n"
17285 "                  const char *directory,\n"
17286 "                  const char *tarball);\n"
17287 "\n"
17288 msgstr ""
17289
17290 #. type: textblock
17291 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4514
17292 msgid ""
17293 "This command packs the contents of C<directory> and downloads it to local "
17294 "file C<tarball>."
17295 msgstr ""
17296
17297 #. type: textblock
17298 #: ../src/guestfs-actions.pod:6686
17299 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
17300 msgstr ""
17301
17302 #. type: =head2
17303 #: ../src/guestfs-actions.pod:6692
17304 msgid "guestfs_touch"
17305 msgstr ""
17306
17307 #. type: verbatim
17308 #: ../src/guestfs-actions.pod:6694
17309 #, no-wrap
17310 msgid ""
17311 " int\n"
17312 " guestfs_touch (guestfs_h *g,\n"
17313 "                const char *path);\n"
17314 "\n"
17315 msgstr ""
17316
17317 #. type: textblock
17318 #: ../src/guestfs-actions.pod:6698 ../fish/guestfish-actions.pod:4525
17319 msgid ""
17320 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17321 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17322 "length file."
17323 msgstr ""
17324
17325 #. type: textblock
17326 #: ../src/guestfs-actions.pod:6702 ../fish/guestfish-actions.pod:4529
17327 msgid ""
17328 "This command only works on regular files, and will fail on other file types "
17329 "such as directories, symbolic links, block special etc."
17330 msgstr ""
17331
17332 #. type: =head2
17333 #: ../src/guestfs-actions.pod:6709
17334 msgid "guestfs_truncate"
17335 msgstr ""
17336
17337 #. type: verbatim
17338 #: ../src/guestfs-actions.pod:6711
17339 #, no-wrap
17340 msgid ""
17341 " int\n"
17342 " guestfs_truncate (guestfs_h *g,\n"
17343 "                   const char *path);\n"
17344 "\n"
17345 msgstr ""
17346
17347 #. type: textblock
17348 #: ../src/guestfs-actions.pod:6715 ../fish/guestfish-actions.pod:4536
17349 msgid ""
17350 "This command truncates C<path> to a zero-length file.  The file must exist "
17351 "already."
17352 msgstr ""
17353
17354 #. type: =head2
17355 #: ../src/guestfs-actions.pod:6722
17356 msgid "guestfs_truncate_size"
17357 msgstr ""
17358
17359 #. type: verbatim
17360 #: ../src/guestfs-actions.pod:6724
17361 #, no-wrap
17362 msgid ""
17363 " int\n"
17364 " guestfs_truncate_size (guestfs_h *g,\n"
17365 "                        const char *path,\n"
17366 "                        int64_t size);\n"
17367 "\n"
17368 msgstr ""
17369
17370 #. type: textblock
17371 #: ../src/guestfs-actions.pod:6729 ../fish/guestfish-actions.pod:4543
17372 msgid ""
17373 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17374 "already."
17375 msgstr ""
17376
17377 #. type: textblock
17378 #: ../src/guestfs-actions.pod:6732
17379 msgid ""
17380 "If the current file size is less than C<size> then the file is extended to "
17381 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17382 "blocks are not allocated for the file until you write to it).  To create a "
17383 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
17384 msgstr ""
17385
17386 #. type: =head2
17387 #: ../src/guestfs-actions.pod:6742
17388 msgid "guestfs_tune2fs_l"
17389 msgstr ""
17390
17391 #. type: verbatim
17392 #: ../src/guestfs-actions.pod:6744
17393 #, no-wrap
17394 msgid ""
17395 " char **\n"
17396 " guestfs_tune2fs_l (guestfs_h *g,\n"
17397 "                    const char *device);\n"
17398 "\n"
17399 msgstr ""
17400
17401 #. type: textblock
17402 #: ../src/guestfs-actions.pod:6748 ../fish/guestfish-actions.pod:4556
17403 msgid ""
17404 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17405 "C<device>."
17406 msgstr ""
17407
17408 #. type: textblock
17409 #: ../src/guestfs-actions.pod:6751 ../fish/guestfish-actions.pod:4559
17410 msgid ""
17411 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17412 "for more details.  The list of fields returned isn't clearly defined, and "
17413 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17414 "and the filesystem itself."
17415 msgstr ""
17416
17417 #. type: =head2
17418 #: ../src/guestfs-actions.pod:6764
17419 msgid "guestfs_txz_in"
17420 msgstr ""
17421
17422 #. type: verbatim
17423 #: ../src/guestfs-actions.pod:6766
17424 #, no-wrap
17425 msgid ""
17426 " int\n"
17427 " guestfs_txz_in (guestfs_h *g,\n"
17428 "                 const char *tarball,\n"
17429 "                 const char *directory);\n"
17430 "\n"
17431 msgstr ""
17432
17433 #. type: textblock
17434 #: ../src/guestfs-actions.pod:6771 ../fish/guestfish-actions.pod:4568
17435 msgid ""
17436 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17437 "tar file) into C<directory>."
17438 msgstr ""
17439
17440 #. type: =head2
17441 #: ../src/guestfs-actions.pod:6778
17442 msgid "guestfs_txz_out"
17443 msgstr ""
17444
17445 #. type: verbatim
17446 #: ../src/guestfs-actions.pod:6780
17447 #, no-wrap
17448 msgid ""
17449 " int\n"
17450 " guestfs_txz_out (guestfs_h *g,\n"
17451 "                  const char *directory,\n"
17452 "                  const char *tarball);\n"
17453 "\n"
17454 msgstr ""
17455
17456 #. type: textblock
17457 #: ../src/guestfs-actions.pod:6785 ../fish/guestfish-actions.pod:4577
17458 msgid ""
17459 "This command packs the contents of C<directory> and downloads it to local "
17460 "file C<tarball> (as an xz compressed tar archive)."
17461 msgstr ""
17462
17463 #. type: =head2
17464 #: ../src/guestfs-actions.pod:6792
17465 msgid "guestfs_umask"
17466 msgstr ""
17467
17468 #. type: verbatim
17469 #: ../src/guestfs-actions.pod:6794
17470 #, no-wrap
17471 msgid ""
17472 " int\n"
17473 " guestfs_umask (guestfs_h *g,\n"
17474 "                int mask);\n"
17475 "\n"
17476 msgstr ""
17477
17478 #. type: textblock
17479 #: ../src/guestfs-actions.pod:6798 ../fish/guestfish-actions.pod:4586
17480 msgid ""
17481 "This function sets the mask used for creating new files and device nodes to "
17482 "C<mask & 0777>."
17483 msgstr ""
17484
17485 #. type: textblock
17486 #: ../src/guestfs-actions.pod:6801 ../fish/guestfish-actions.pod:4589
17487 msgid ""
17488 "Typical umask values would be C<022> which creates new files with "
17489 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17490 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17491 msgstr ""
17492
17493 #. type: textblock
17494 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4594
17495 msgid ""
17496 "The default umask is C<022>.  This is important because it means that "
17497 "directories and device nodes will be created with C<0644> or C<0755> mode "
17498 "even if you specify C<0777>."
17499 msgstr ""
17500
17501 #. type: textblock
17502 #: ../src/guestfs-actions.pod:6810
17503 msgid ""
17504 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
17505 "C<guestfs_mkdir>."
17506 msgstr ""
17507
17508 #. type: textblock
17509 #: ../src/guestfs-actions.pod:6813 ../fish/guestfish-actions.pod:4601
17510 msgid "This call returns the previous umask."
17511 msgstr ""
17512
17513 #. type: =head2
17514 #: ../src/guestfs-actions.pod:6819
17515 msgid "guestfs_umount"
17516 msgstr ""
17517
17518 #. type: verbatim
17519 #: ../src/guestfs-actions.pod:6821
17520 #, no-wrap
17521 msgid ""
17522 " int\n"
17523 " guestfs_umount (guestfs_h *g,\n"
17524 "                 const char *pathordevice);\n"
17525 "\n"
17526 msgstr ""
17527
17528 #. type: textblock
17529 #: ../src/guestfs-actions.pod:6825 ../fish/guestfish-actions.pod:4609
17530 msgid ""
17531 "This unmounts the given filesystem.  The filesystem may be specified either "
17532 "by its mountpoint (path) or the device which contains the filesystem."
17533 msgstr ""
17534
17535 #. type: =head2
17536 #: ../src/guestfs-actions.pod:6833
17537 msgid "guestfs_umount_all"
17538 msgstr ""
17539
17540 #. type: verbatim
17541 #: ../src/guestfs-actions.pod:6835
17542 #, no-wrap
17543 msgid ""
17544 " int\n"
17545 " guestfs_umount_all (guestfs_h *g);\n"
17546 "\n"
17547 msgstr ""
17548
17549 #. type: textblock
17550 #: ../src/guestfs-actions.pod:6838 ../fish/guestfish-actions.pod:4619
17551 msgid "This unmounts all mounted filesystems."
17552 msgstr ""
17553
17554 #. type: textblock
17555 #: ../src/guestfs-actions.pod:6840 ../fish/guestfish-actions.pod:4621
17556 msgid "Some internal mounts are not unmounted by this call."
17557 msgstr ""
17558
17559 #. type: =head2
17560 #: ../src/guestfs-actions.pod:6846
17561 msgid "guestfs_upload"
17562 msgstr ""
17563
17564 #. type: verbatim
17565 #: ../src/guestfs-actions.pod:6848
17566 #, no-wrap
17567 msgid ""
17568 " int\n"
17569 " guestfs_upload (guestfs_h *g,\n"
17570 "                 const char *filename,\n"
17571 "                 const char *remotefilename);\n"
17572 "\n"
17573 msgstr ""
17574
17575 #. type: textblock
17576 #: ../src/guestfs-actions.pod:6853 ../src/guestfs-actions.pod:6877
17577 #: ../fish/guestfish-actions.pod:4627 ../fish/guestfish-actions.pod:4640
17578 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17579 msgstr ""
17580
17581 #. type: textblock
17582 #: ../src/guestfs-actions.pod:6858
17583 msgid "See also C<guestfs_download>."
17584 msgstr ""
17585
17586 #. type: =head2
17587 #: ../src/guestfs-actions.pod:6869
17588 msgid "guestfs_upload_offset"
17589 msgstr ""
17590
17591 #. type: verbatim
17592 #: ../src/guestfs-actions.pod:6871
17593 #, no-wrap
17594 msgid ""
17595 " int\n"
17596 " guestfs_upload_offset (guestfs_h *g,\n"
17597 "                        const char *filename,\n"
17598 "                        const char *remotefilename,\n"
17599 "                        int64_t offset);\n"
17600 "\n"
17601 msgstr ""
17602
17603 #. type: textblock
17604 #: ../src/guestfs-actions.pod:6880 ../fish/guestfish-actions.pod:4643
17605 msgid ""
17606 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17607 "The intention is to overwrite parts of existing files or devices, although "
17608 "if a non-existant file is specified then it is created with a \"hole\" "
17609 "before C<offset>.  The size of the data written is implicit in the size of "
17610 "the source C<filename>."
17611 msgstr ""
17612
17613 #. type: textblock
17614 #: ../src/guestfs-actions.pod:6887
17615 msgid ""
17616 "Note that there is no limit on the amount of data that can be uploaded with "
17617 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
17618 "full amount unless an error occurs."
17619 msgstr ""
17620
17621 #. type: textblock
17622 #: ../src/guestfs-actions.pod:6892
17623 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
17624 msgstr ""
17625
17626 #. type: =head2
17627 #: ../src/guestfs-actions.pod:6903
17628 msgid "guestfs_utimens"
17629 msgstr ""
17630
17631 #. type: verbatim
17632 #: ../src/guestfs-actions.pod:6905
17633 #, no-wrap
17634 msgid ""
17635 " int\n"
17636 " guestfs_utimens (guestfs_h *g,\n"
17637 "                  const char *path,\n"
17638 "                  int64_t atsecs,\n"
17639 "                  int64_t atnsecs,\n"
17640 "                  int64_t mtsecs,\n"
17641 "                  int64_t mtnsecs);\n"
17642 "\n"
17643 msgstr ""
17644
17645 #. type: textblock
17646 #: ../src/guestfs-actions.pod:6913 ../fish/guestfish-actions.pod:4663
17647 msgid "This command sets the timestamps of a file with nanosecond precision."
17648 msgstr ""
17649
17650 #. type: textblock
17651 #: ../src/guestfs-actions.pod:6916 ../fish/guestfish-actions.pod:4666
17652 msgid ""
17653 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17654 "from the epoch."
17655 msgstr ""
17656
17657 #. type: textblock
17658 #: ../src/guestfs-actions.pod:6919 ../fish/guestfish-actions.pod:4669
17659 msgid ""
17660 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17661 "nanoseconds from the epoch."
17662 msgstr ""
17663
17664 #. type: textblock
17665 #: ../src/guestfs-actions.pod:6922 ../fish/guestfish-actions.pod:4672
17666 msgid ""
17667 "If the C<*nsecs> field contains the special value C<-1> then the "
17668 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17669 "ignored in this case)."
17670 msgstr ""
17671
17672 #. type: textblock
17673 #: ../src/guestfs-actions.pod:6926 ../fish/guestfish-actions.pod:4676
17674 msgid ""
17675 "If the C<*nsecs> field contains the special value C<-2> then the "
17676 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17677 "in this case)."
17678 msgstr ""
17679
17680 #. type: =head2
17681 #: ../src/guestfs-actions.pod:6934 ../src/guestfs-structs.pod:175
17682 msgid "guestfs_version"
17683 msgstr ""
17684
17685 #. type: verbatim
17686 #: ../src/guestfs-actions.pod:6936
17687 #, no-wrap
17688 msgid ""
17689 " struct guestfs_version *\n"
17690 " guestfs_version (guestfs_h *g);\n"
17691 "\n"
17692 msgstr ""
17693
17694 #. type: textblock
17695 #: ../src/guestfs-actions.pod:6939 ../fish/guestfish-actions.pod:4684
17696 msgid ""
17697 "Return the libguestfs version number that the program is linked against."
17698 msgstr ""
17699
17700 #. type: textblock
17701 #: ../src/guestfs-actions.pod:6942 ../fish/guestfish-actions.pod:4687
17702 msgid ""
17703 "Note that because of dynamic linking this is not necessarily the version of "
17704 "libguestfs that you compiled against.  You can compile the program, and then "
17705 "at runtime dynamically link against a completely different C<libguestfs.so> "
17706 "library."
17707 msgstr ""
17708
17709 #. type: textblock
17710 #: ../src/guestfs-actions.pod:6947 ../fish/guestfish-actions.pod:4692
17711 msgid ""
17712 "This call was added in version C<1.0.58>.  In previous versions of "
17713 "libguestfs there was no way to get the version number.  From C code you can "
17714 "use dynamic linker functions to find out if this symbol exists (if it "
17715 "doesn't, then it's an earlier version)."
17716 msgstr ""
17717
17718 #. type: textblock
17719 #: ../src/guestfs-actions.pod:6953 ../fish/guestfish-actions.pod:4698
17720 msgid ""
17721 "The call returns a structure with four elements.  The first three (C<major>, "
17722 "C<minor> and C<release>) are numbers and correspond to the usual version "
17723 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17724 "but may be used for distro-specific information."
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../src/guestfs-actions.pod:6959 ../fish/guestfish-actions.pod:4704
17729 msgid ""
17730 "To construct the original version string: C<$major.$minor.$release$extra>"
17731 msgstr ""
17732
17733 #. type: textblock
17734 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4707
17735 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17736 msgstr ""
17737
17738 #. type: textblock
17739 #: ../src/guestfs-actions.pod:6964
17740 msgid ""
17741 "I<Note:> Don't use this call to test for availability of features.  In "
17742 "enterprise distributions we backport features from later versions into "
17743 "earlier versions, making this an unreliable way to test for features.  Use "
17744 "C<guestfs_available> instead."
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../src/guestfs-actions.pod:6970
17749 msgid ""
17750 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
17751 "error.  I<The caller must call C<guestfs_free_version> after use>."
17752 msgstr ""
17753
17754 #. type: textblock
17755 #: ../src/guestfs-actions.pod:6974
17756 msgid "(Added in 1.0.58)"
17757 msgstr ""
17758
17759 #. type: =head2
17760 #: ../src/guestfs-actions.pod:6976
17761 msgid "guestfs_vfs_label"
17762 msgstr ""
17763
17764 #. type: verbatim
17765 #: ../src/guestfs-actions.pod:6978
17766 #, no-wrap
17767 msgid ""
17768 " char *\n"
17769 " guestfs_vfs_label (guestfs_h *g,\n"
17770 "                    const char *device);\n"
17771 "\n"
17772 msgstr ""
17773
17774 #. type: textblock
17775 #: ../src/guestfs-actions.pod:6982 ../fish/guestfish-actions.pod:4719
17776 msgid "This returns the filesystem label of the filesystem on C<device>."
17777 msgstr ""
17778
17779 #. type: textblock
17780 #: ../src/guestfs-actions.pod:6985 ../fish/guestfish-actions.pod:4722
17781 msgid "If the filesystem is unlabeled, this returns the empty string."
17782 msgstr ""
17783
17784 #. type: textblock
17785 #: ../src/guestfs-actions.pod:6987
17786 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
17787 msgstr ""
17788
17789 #. type: textblock
17790 #: ../src/guestfs-actions.pod:6992 ../src/guestfs-actions.pod:7029
17791 msgid "(Added in 1.3.18)"
17792 msgstr ""
17793
17794 #. type: =head2
17795 #: ../src/guestfs-actions.pod:6994
17796 msgid "guestfs_vfs_type"
17797 msgstr ""
17798
17799 #. type: verbatim
17800 #: ../src/guestfs-actions.pod:6996
17801 #, no-wrap
17802 msgid ""
17803 " char *\n"
17804 " guestfs_vfs_type (guestfs_h *g,\n"
17805 "                   const char *device);\n"
17806 "\n"
17807 msgstr ""
17808
17809 #. type: textblock
17810 #: ../src/guestfs-actions.pod:7000 ../fish/guestfish-actions.pod:4730
17811 msgid ""
17812 "This command gets the filesystem type corresponding to the filesystem on "
17813 "C<device>."
17814 msgstr ""
17815
17816 #. type: textblock
17817 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4733
17818 msgid ""
17819 "For most filesystems, the result is the name of the Linux VFS module which "
17820 "would be used to mount this filesystem if you mounted it without specifying "
17821 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17822 msgstr ""
17823
17824 #. type: =head2
17825 #: ../src/guestfs-actions.pod:7013
17826 msgid "guestfs_vfs_uuid"
17827 msgstr ""
17828
17829 #. type: verbatim
17830 #: ../src/guestfs-actions.pod:7015
17831 #, no-wrap
17832 msgid ""
17833 " char *\n"
17834 " guestfs_vfs_uuid (guestfs_h *g,\n"
17835 "                   const char *device);\n"
17836 "\n"
17837 msgstr ""
17838
17839 #. type: textblock
17840 #: ../src/guestfs-actions.pod:7019 ../fish/guestfish-actions.pod:4742
17841 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17842 msgstr ""
17843
17844 #. type: textblock
17845 #: ../src/guestfs-actions.pod:7022 ../fish/guestfish-actions.pod:4745
17846 msgid "If the filesystem does not have a UUID, this returns the empty string."
17847 msgstr ""
17848
17849 #. type: textblock
17850 #: ../src/guestfs-actions.pod:7024
17851 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
17852 msgstr ""
17853
17854 #. type: =head2
17855 #: ../src/guestfs-actions.pod:7031
17856 msgid "guestfs_vg_activate"
17857 msgstr ""
17858
17859 #. type: verbatim
17860 #: ../src/guestfs-actions.pod:7033
17861 #, no-wrap
17862 msgid ""
17863 " int\n"
17864 " guestfs_vg_activate (guestfs_h *g,\n"
17865 "                      int activate,\n"
17866 "                      char *const *volgroups);\n"
17867 "\n"
17868 msgstr ""
17869
17870 #. type: textblock
17871 #: ../src/guestfs-actions.pod:7038 ../fish/guestfish-actions.pod:4753
17872 msgid ""
17873 "This command activates or (if C<activate> is false) deactivates all logical "
17874 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
17875 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
17876 "deactivated, then those devices disappear."
17877 msgstr ""
17878
17879 #. type: textblock
17880 #: ../src/guestfs-actions.pod:7044 ../fish/guestfish-actions.pod:4759
17881 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17882 msgstr ""
17883
17884 #. type: textblock
17885 #: ../src/guestfs-actions.pod:7046 ../fish/guestfish-actions.pod:4761
17886 msgid ""
17887 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17888 "activated or deactivated."
17889 msgstr ""
17890
17891 #. type: =head2
17892 #: ../src/guestfs-actions.pod:7053
17893 msgid "guestfs_vg_activate_all"
17894 msgstr ""
17895
17896 #. type: verbatim
17897 #: ../src/guestfs-actions.pod:7055
17898 #, no-wrap
17899 msgid ""
17900 " int\n"
17901 " guestfs_vg_activate_all (guestfs_h *g,\n"
17902 "                          int activate);\n"
17903 "\n"
17904 msgstr ""
17905
17906 #. type: textblock
17907 #: ../src/guestfs-actions.pod:7059 ../fish/guestfish-actions.pod:4768
17908 msgid ""
17909 "This command activates or (if C<activate> is false) deactivates all logical "
17910 "volumes in all volume groups.  If activated, then they are made known to the "
17911 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
17912 "those devices disappear."
17913 msgstr ""
17914
17915 #. type: textblock
17916 #: ../src/guestfs-actions.pod:7065 ../fish/guestfish-actions.pod:4774
17917 msgid "This command is the same as running C<vgchange -a y|n>"
17918 msgstr ""
17919
17920 #. type: =head2
17921 #: ../src/guestfs-actions.pod:7071
17922 msgid "guestfs_vgcreate"
17923 msgstr ""
17924
17925 #. type: verbatim
17926 #: ../src/guestfs-actions.pod:7073
17927 #, no-wrap
17928 msgid ""
17929 " int\n"
17930 " guestfs_vgcreate (guestfs_h *g,\n"
17931 "                   const char *volgroup,\n"
17932 "                   char *const *physvols);\n"
17933 "\n"
17934 msgstr ""
17935
17936 #. type: textblock
17937 #: ../src/guestfs-actions.pod:7078 ../fish/guestfish-actions.pod:4780
17938 msgid ""
17939 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17940 "of physical volumes C<physvols>."
17941 msgstr ""
17942
17943 #. type: =head2
17944 #: ../src/guestfs-actions.pod:7085
17945 msgid "guestfs_vglvuuids"
17946 msgstr ""
17947
17948 #. type: verbatim
17949 #: ../src/guestfs-actions.pod:7087
17950 #, no-wrap
17951 msgid ""
17952 " char **\n"
17953 " guestfs_vglvuuids (guestfs_h *g,\n"
17954 "                    const char *vgname);\n"
17955 "\n"
17956 msgstr ""
17957
17958 #. type: textblock
17959 #: ../src/guestfs-actions.pod:7091 ../fish/guestfish-actions.pod:4787
17960 msgid ""
17961 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17962 "volumes created in this volume group."
17963 msgstr ""
17964
17965 #. type: textblock
17966 #: ../src/guestfs-actions.pod:7094
17967 msgid ""
17968 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
17969 "associate logical volumes and volume groups."
17970 msgstr ""
17971
17972 #. type: textblock
17973 #: ../src/guestfs-actions.pod:7097
17974 msgid "See also C<guestfs_vgpvuuids>."
17975 msgstr ""
17976
17977 #. type: =head2
17978 #: ../src/guestfs-actions.pod:7105
17979 msgid "guestfs_vgpvuuids"
17980 msgstr ""
17981
17982 #. type: verbatim
17983 #: ../src/guestfs-actions.pod:7107
17984 #, no-wrap
17985 msgid ""
17986 " char **\n"
17987 " guestfs_vgpvuuids (guestfs_h *g,\n"
17988 "                    const char *vgname);\n"
17989 "\n"
17990 msgstr ""
17991
17992 #. type: textblock
17993 #: ../src/guestfs-actions.pod:7111 ../fish/guestfish-actions.pod:4799
17994 msgid ""
17995 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17996 "volumes that this volume group resides on."
17997 msgstr ""
17998
17999 #. type: textblock
18000 #: ../src/guestfs-actions.pod:7114
18001 msgid ""
18002 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
18003 "associate physical volumes and volume groups."
18004 msgstr ""
18005
18006 #. type: textblock
18007 #: ../src/guestfs-actions.pod:7117
18008 msgid "See also C<guestfs_vglvuuids>."
18009 msgstr ""
18010
18011 #. type: =head2
18012 #: ../src/guestfs-actions.pod:7125
18013 msgid "guestfs_vgremove"
18014 msgstr ""
18015
18016 #. type: verbatim
18017 #: ../src/guestfs-actions.pod:7127
18018 #, no-wrap
18019 msgid ""
18020 " int\n"
18021 " guestfs_vgremove (guestfs_h *g,\n"
18022 "                   const char *vgname);\n"
18023 "\n"
18024 msgstr ""
18025
18026 #. type: textblock
18027 #: ../src/guestfs-actions.pod:7131 ../fish/guestfish-actions.pod:4811
18028 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18029 msgstr ""
18030
18031 #. type: textblock
18032 #: ../src/guestfs-actions.pod:7133 ../fish/guestfish-actions.pod:4813
18033 msgid ""
18034 "This also forcibly removes all logical volumes in the volume group (if any)."
18035 msgstr ""
18036
18037 #. type: =head2
18038 #: ../src/guestfs-actions.pod:7140
18039 msgid "guestfs_vgrename"
18040 msgstr ""
18041
18042 #. type: verbatim
18043 #: ../src/guestfs-actions.pod:7142
18044 #, no-wrap
18045 msgid ""
18046 " int\n"
18047 " guestfs_vgrename (guestfs_h *g,\n"
18048 "                   const char *volgroup,\n"
18049 "                   const char *newvolgroup);\n"
18050 "\n"
18051 msgstr ""
18052
18053 #. type: textblock
18054 #: ../src/guestfs-actions.pod:7147 ../fish/guestfish-actions.pod:4820
18055 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18056 msgstr ""
18057
18058 #. type: =head2
18059 #: ../src/guestfs-actions.pod:7153
18060 msgid "guestfs_vgs"
18061 msgstr ""
18062
18063 #. type: verbatim
18064 #: ../src/guestfs-actions.pod:7155
18065 #, no-wrap
18066 msgid ""
18067 " char **\n"
18068 " guestfs_vgs (guestfs_h *g);\n"
18069 "\n"
18070 msgstr ""
18071
18072 #. type: textblock
18073 #: ../src/guestfs-actions.pod:7158 ../fish/guestfish-actions.pod:4826
18074 msgid ""
18075 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18076 "> command."
18077 msgstr ""
18078
18079 #. type: textblock
18080 #: ../src/guestfs-actions.pod:7161 ../fish/guestfish-actions.pod:4829
18081 msgid ""
18082 "This returns a list of just the volume group names that were detected (eg. "
18083 "C<VolGroup00>)."
18084 msgstr ""
18085
18086 #. type: textblock
18087 #: ../src/guestfs-actions.pod:7164
18088 msgid "See also C<guestfs_vgs_full>."
18089 msgstr ""
18090
18091 #. type: =head2
18092 #: ../src/guestfs-actions.pod:7172
18093 msgid "guestfs_vgs_full"
18094 msgstr ""
18095
18096 #. type: verbatim
18097 #: ../src/guestfs-actions.pod:7174
18098 #, no-wrap
18099 msgid ""
18100 " struct guestfs_lvm_vg_list *\n"
18101 " guestfs_vgs_full (guestfs_h *g);\n"
18102 "\n"
18103 msgstr ""
18104
18105 #. type: textblock
18106 #: ../src/guestfs-actions.pod:7177 ../fish/guestfish-actions.pod:4838
18107 msgid ""
18108 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18109 "> command.  The \"full\" version includes all fields."
18110 msgstr ""
18111
18112 #. type: textblock
18113 #: ../src/guestfs-actions.pod:7180
18114 msgid ""
18115 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
18116 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
18117 msgstr ""
18118
18119 #. type: =head2
18120 #: ../src/guestfs-actions.pod:7186
18121 msgid "guestfs_vgscan"
18122 msgstr ""
18123
18124 #. type: verbatim
18125 #: ../src/guestfs-actions.pod:7188
18126 #, no-wrap
18127 msgid ""
18128 " int\n"
18129 " guestfs_vgscan (guestfs_h *g);\n"
18130 "\n"
18131 msgstr ""
18132
18133 #. type: textblock
18134 #: ../src/guestfs-actions.pod:7191 ../fish/guestfish-actions.pod:4845
18135 msgid ""
18136 "This rescans all block devices and rebuilds the list of LVM physical "
18137 "volumes, volume groups and logical volumes."
18138 msgstr ""
18139
18140 #. type: =head2
18141 #: ../src/guestfs-actions.pod:7198
18142 msgid "guestfs_vguuid"
18143 msgstr ""
18144
18145 #. type: verbatim
18146 #: ../src/guestfs-actions.pod:7200
18147 #, no-wrap
18148 msgid ""
18149 " char *\n"
18150 " guestfs_vguuid (guestfs_h *g,\n"
18151 "                 const char *vgname);\n"
18152 "\n"
18153 msgstr ""
18154
18155 #. type: textblock
18156 #: ../src/guestfs-actions.pod:7204 ../fish/guestfish-actions.pod:4852
18157 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18158 msgstr ""
18159
18160 #. type: =head2
18161 #: ../src/guestfs-actions.pod:7211
18162 msgid "guestfs_wait_ready"
18163 msgstr ""
18164
18165 #. type: verbatim
18166 #: ../src/guestfs-actions.pod:7213
18167 #, no-wrap
18168 msgid ""
18169 " int\n"
18170 " guestfs_wait_ready (guestfs_h *g);\n"
18171 "\n"
18172 msgstr ""
18173
18174 #. type: textblock
18175 #: ../src/guestfs-actions.pod:7216
18176 msgid "This function is a no op."
18177 msgstr ""
18178
18179 #. type: textblock
18180 #: ../src/guestfs-actions.pod:7218
18181 msgid ""
18182 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
18183 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
18184 "is no longer necessary because C<guestfs_launch> now does the waiting."
18185 msgstr ""
18186
18187 #. type: textblock
18188 #: ../src/guestfs-actions.pod:7223
18189 msgid ""
18190 "If you see any calls to this function in code then you can just remove them, "
18191 "unless you want to retain compatibility with older versions of the API."
18192 msgstr ""
18193
18194 #. type: textblock
18195 #: ../src/guestfs-actions.pod:7229
18196 msgid ""
18197 "This function is deprecated.  In new code, use the C<launch> call instead."
18198 msgstr ""
18199
18200 #. type: =head2
18201 #: ../src/guestfs-actions.pod:7238
18202 msgid "guestfs_wc_c"
18203 msgstr ""
18204
18205 #. type: verbatim
18206 #: ../src/guestfs-actions.pod:7240
18207 #, no-wrap
18208 msgid ""
18209 " int\n"
18210 " guestfs_wc_c (guestfs_h *g,\n"
18211 "               const char *path);\n"
18212 "\n"
18213 msgstr ""
18214
18215 #. type: textblock
18216 #: ../src/guestfs-actions.pod:7244 ../fish/guestfish-actions.pod:4858
18217 msgid ""
18218 "This command counts the characters in a file, using the C<wc -c> external "
18219 "command."
18220 msgstr ""
18221
18222 #. type: =head2
18223 #: ../src/guestfs-actions.pod:7251
18224 msgid "guestfs_wc_l"
18225 msgstr ""
18226
18227 #. type: verbatim
18228 #: ../src/guestfs-actions.pod:7253
18229 #, no-wrap
18230 msgid ""
18231 " int\n"
18232 " guestfs_wc_l (guestfs_h *g,\n"
18233 "               const char *path);\n"
18234 "\n"
18235 msgstr ""
18236
18237 #. type: textblock
18238 #: ../src/guestfs-actions.pod:7257 ../fish/guestfish-actions.pod:4865
18239 msgid ""
18240 "This command counts the lines in a file, using the C<wc -l> external command."
18241 msgstr ""
18242
18243 #. type: =head2
18244 #: ../src/guestfs-actions.pod:7264
18245 msgid "guestfs_wc_w"
18246 msgstr ""
18247
18248 #. type: verbatim
18249 #: ../src/guestfs-actions.pod:7266
18250 #, no-wrap
18251 msgid ""
18252 " int\n"
18253 " guestfs_wc_w (guestfs_h *g,\n"
18254 "               const char *path);\n"
18255 "\n"
18256 msgstr ""
18257
18258 #. type: textblock
18259 #: ../src/guestfs-actions.pod:7270 ../fish/guestfish-actions.pod:4872
18260 msgid ""
18261 "This command counts the words in a file, using the C<wc -w> external command."
18262 msgstr ""
18263
18264 #. type: =head2
18265 #: ../src/guestfs-actions.pod:7277
18266 msgid "guestfs_write"
18267 msgstr ""
18268
18269 #. type: verbatim
18270 #: ../src/guestfs-actions.pod:7279
18271 #, no-wrap
18272 msgid ""
18273 " int\n"
18274 " guestfs_write (guestfs_h *g,\n"
18275 "                const char *path,\n"
18276 "                const char *content,\n"
18277 "                size_t content_size);\n"
18278 "\n"
18279 msgstr ""
18280
18281 #. type: textblock
18282 #: ../src/guestfs-actions.pod:7285 ../fish/guestfish-actions.pod:4879
18283 msgid ""
18284 "This call creates a file called C<path>.  The content of the file is the "
18285 "string C<content> (which can contain any 8 bit data)."
18286 msgstr ""
18287
18288 #. type: =head2
18289 #: ../src/guestfs-actions.pod:7295
18290 msgid "guestfs_write_file"
18291 msgstr ""
18292
18293 #. type: verbatim
18294 #: ../src/guestfs-actions.pod:7297
18295 #, no-wrap
18296 msgid ""
18297 " int\n"
18298 " guestfs_write_file (guestfs_h *g,\n"
18299 "                     const char *path,\n"
18300 "                     const char *content,\n"
18301 "                     int size);\n"
18302 "\n"
18303 msgstr ""
18304
18305 #. type: textblock
18306 #: ../src/guestfs-actions.pod:7303 ../fish/guestfish-actions.pod:4889
18307 msgid ""
18308 "This call creates a file called C<path>.  The contents of the file is the "
18309 "string C<content> (which can contain any 8 bit data), with length C<size>."
18310 msgstr ""
18311
18312 #. type: textblock
18313 #: ../src/guestfs-actions.pod:7307 ../fish/guestfish-actions.pod:4893
18314 msgid ""
18315 "As a special case, if C<size> is C<0> then the length is calculated using "
18316 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18317 msgstr ""
18318
18319 #. type: textblock
18320 #: ../src/guestfs-actions.pod:7311 ../fish/guestfish-actions.pod:4897
18321 msgid ""
18322 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18323 "I<not> work, even if the length is specified."
18324 msgstr ""
18325
18326 #. type: textblock
18327 #: ../src/guestfs-actions.pod:7319 ../fish/guestfish-actions.pod:4903
18328 msgid ""
18329 "This function is deprecated.  In new code, use the C<write> call instead."
18330 msgstr ""
18331
18332 #. type: =head2
18333 #: ../src/guestfs-actions.pod:7328
18334 msgid "guestfs_zegrep"
18335 msgstr ""
18336
18337 #. type: verbatim
18338 #: ../src/guestfs-actions.pod:7330
18339 #, no-wrap
18340 msgid ""
18341 " char **\n"
18342 " guestfs_zegrep (guestfs_h *g,\n"
18343 "                 const char *regex,\n"
18344 "                 const char *path);\n"
18345 "\n"
18346 msgstr ""
18347
18348 #. type: textblock
18349 #: ../src/guestfs-actions.pod:7335 ../fish/guestfish-actions.pod:4914
18350 msgid ""
18351 "This calls the external C<zegrep> program and returns the matching lines."
18352 msgstr ""
18353
18354 #. type: =head2
18355 #: ../src/guestfs-actions.pod:7347
18356 msgid "guestfs_zegrepi"
18357 msgstr ""
18358
18359 #. type: verbatim
18360 #: ../src/guestfs-actions.pod:7349
18361 #, no-wrap
18362 msgid ""
18363 " char **\n"
18364 " guestfs_zegrepi (guestfs_h *g,\n"
18365 "                  const char *regex,\n"
18366 "                  const char *path);\n"
18367 "\n"
18368 msgstr ""
18369
18370 #. type: textblock
18371 #: ../src/guestfs-actions.pod:7354 ../fish/guestfish-actions.pod:4924
18372 msgid ""
18373 "This calls the external C<zegrep -i> program and returns the matching lines."
18374 msgstr ""
18375
18376 #. type: =head2
18377 #: ../src/guestfs-actions.pod:7366
18378 msgid "guestfs_zero"
18379 msgstr ""
18380
18381 #. type: verbatim
18382 #: ../src/guestfs-actions.pod:7368
18383 #, no-wrap
18384 msgid ""
18385 " int\n"
18386 " guestfs_zero (guestfs_h *g,\n"
18387 "               const char *device);\n"
18388 "\n"
18389 msgstr ""
18390
18391 #. type: textblock
18392 #: ../src/guestfs-actions.pod:7372 ../fish/guestfish-actions.pod:4934
18393 msgid "This command writes zeroes over the first few blocks of C<device>."
18394 msgstr ""
18395
18396 #. type: textblock
18397 #: ../src/guestfs-actions.pod:7374 ../fish/guestfish-actions.pod:4936
18398 msgid ""
18399 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18400 "securely wipe the device).  It should be sufficient to remove any partition "
18401 "tables, filesystem superblocks and so on."
18402 msgstr ""
18403
18404 #. type: textblock
18405 #: ../src/guestfs-actions.pod:7378
18406 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
18407 msgstr ""
18408
18409 #. type: =head2
18410 #: ../src/guestfs-actions.pod:7389
18411 msgid "guestfs_zero_device"
18412 msgstr ""
18413
18414 #. type: verbatim
18415 #: ../src/guestfs-actions.pod:7391
18416 #, no-wrap
18417 msgid ""
18418 " int\n"
18419 " guestfs_zero_device (guestfs_h *g,\n"
18420 "                      const char *device);\n"
18421 "\n"
18422 msgstr ""
18423
18424 #. type: textblock
18425 #: ../src/guestfs-actions.pod:7395
18426 msgid ""
18427 "This command writes zeroes over the entire C<device>.  Compare with "
18428 "C<guestfs_zero> which just zeroes the first few blocks of a device."
18429 msgstr ""
18430
18431 #. type: textblock
18432 #: ../src/guestfs-actions.pod:7409
18433 msgid "(Added in 1.3.1)"
18434 msgstr ""
18435
18436 #. type: =head2
18437 #: ../src/guestfs-actions.pod:7411
18438 msgid "guestfs_zerofree"
18439 msgstr ""
18440
18441 #. type: verbatim
18442 #: ../src/guestfs-actions.pod:7413
18443 #, no-wrap
18444 msgid ""
18445 " int\n"
18446 " guestfs_zerofree (guestfs_h *g,\n"
18447 "                   const char *device);\n"
18448 "\n"
18449 msgstr ""
18450
18451 #. type: textblock
18452 #: ../src/guestfs-actions.pod:7417 ../fish/guestfish-actions.pod:4957
18453 msgid ""
18454 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18455 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18456 "possible to compress the filesystem more effectively."
18457 msgstr ""
18458
18459 #. type: textblock
18460 #: ../src/guestfs-actions.pod:7422 ../fish/guestfish-actions.pod:4962
18461 msgid "You should B<not> run this program if the filesystem is mounted."
18462 msgstr ""
18463
18464 #. type: textblock
18465 #: ../src/guestfs-actions.pod:7425 ../fish/guestfish-actions.pod:4965
18466 msgid ""
18467 "It is possible that using this program can damage the filesystem or data on "
18468 "the filesystem."
18469 msgstr ""
18470
18471 #. type: =head2
18472 #: ../src/guestfs-actions.pod:7432
18473 msgid "guestfs_zfgrep"
18474 msgstr ""
18475
18476 #. type: verbatim
18477 #: ../src/guestfs-actions.pod:7434
18478 #, no-wrap
18479 msgid ""
18480 " char **\n"
18481 " guestfs_zfgrep (guestfs_h *g,\n"
18482 "                 const char *pattern,\n"
18483 "                 const char *path);\n"
18484 "\n"
18485 msgstr ""
18486
18487 #. type: textblock
18488 #: ../src/guestfs-actions.pod:7439 ../fish/guestfish-actions.pod:4972
18489 msgid ""
18490 "This calls the external C<zfgrep> program and returns the matching lines."
18491 msgstr ""
18492
18493 #. type: =head2
18494 #: ../src/guestfs-actions.pod:7451
18495 msgid "guestfs_zfgrepi"
18496 msgstr ""
18497
18498 #. type: verbatim
18499 #: ../src/guestfs-actions.pod:7453
18500 #, no-wrap
18501 msgid ""
18502 " char **\n"
18503 " guestfs_zfgrepi (guestfs_h *g,\n"
18504 "                  const char *pattern,\n"
18505 "                  const char *path);\n"
18506 "\n"
18507 msgstr ""
18508
18509 #. type: textblock
18510 #: ../src/guestfs-actions.pod:7458 ../fish/guestfish-actions.pod:4982
18511 msgid ""
18512 "This calls the external C<zfgrep -i> program and returns the matching lines."
18513 msgstr ""
18514
18515 #. type: =head2
18516 #: ../src/guestfs-actions.pod:7470
18517 msgid "guestfs_zfile"
18518 msgstr ""
18519
18520 #. type: verbatim
18521 #: ../src/guestfs-actions.pod:7472
18522 #, no-wrap
18523 msgid ""
18524 " char *\n"
18525 " guestfs_zfile (guestfs_h *g,\n"
18526 "                const char *meth,\n"
18527 "                const char *path);\n"
18528 "\n"
18529 msgstr ""
18530
18531 #. type: textblock
18532 #: ../src/guestfs-actions.pod:7477 ../fish/guestfish-actions.pod:4992
18533 msgid ""
18534 "This command runs C<file> after first decompressing C<path> using C<method>."
18535 msgstr ""
18536
18537 #. type: textblock
18538 #: ../src/guestfs-actions.pod:7480 ../fish/guestfish-actions.pod:4995
18539 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18540 msgstr ""
18541
18542 #. type: textblock
18543 #: ../src/guestfs-actions.pod:7482
18544 msgid ""
18545 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
18546 "files."
18547 msgstr ""
18548
18549 #. type: textblock
18550 #: ../src/guestfs-actions.pod:7488 ../fish/guestfish-actions.pod:5000
18551 msgid ""
18552 "This function is deprecated.  In new code, use the C<file> call instead."
18553 msgstr ""
18554
18555 #. type: =head2
18556 #: ../src/guestfs-actions.pod:7497
18557 msgid "guestfs_zgrep"
18558 msgstr ""
18559
18560 #. type: verbatim
18561 #: ../src/guestfs-actions.pod:7499
18562 #, no-wrap
18563 msgid ""
18564 " char **\n"
18565 " guestfs_zgrep (guestfs_h *g,\n"
18566 "                const char *regex,\n"
18567 "                const char *path);\n"
18568 "\n"
18569 msgstr ""
18570
18571 #. type: textblock
18572 #: ../src/guestfs-actions.pod:7504 ../fish/guestfish-actions.pod:5011
18573 msgid ""
18574 "This calls the external C<zgrep> program and returns the matching lines."
18575 msgstr ""
18576
18577 #. type: =head2
18578 #: ../src/guestfs-actions.pod:7516
18579 msgid "guestfs_zgrepi"
18580 msgstr ""
18581
18582 #. type: verbatim
18583 #: ../src/guestfs-actions.pod:7518
18584 #, no-wrap
18585 msgid ""
18586 " char **\n"
18587 " guestfs_zgrepi (guestfs_h *g,\n"
18588 "                 const char *regex,\n"
18589 "                 const char *path);\n"
18590 "\n"
18591 msgstr ""
18592
18593 #. type: textblock
18594 #: ../src/guestfs-actions.pod:7523 ../fish/guestfish-actions.pod:5021
18595 msgid ""
18596 "This calls the external C<zgrep -i> program and returns the matching lines."
18597 msgstr ""
18598
18599 #. type: =item
18600 #: ../src/guestfs-availability.pod:3
18601 msgid "B<augeas>"
18602 msgstr ""
18603
18604 #. type: textblock
18605 #: ../src/guestfs-availability.pod:5
18606 msgid ""
18607 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
18608 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
18609 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
18610 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
18611 "L</guestfs_aug_save> L</guestfs_aug_set>"
18612 msgstr ""
18613
18614 #. type: =item
18615 #: ../src/guestfs-availability.pod:21
18616 msgid "B<inotify>"
18617 msgstr ""
18618
18619 #. type: textblock
18620 #: ../src/guestfs-availability.pod:23
18621 msgid ""
18622 "The following functions: L</guestfs_inotify_add_watch> L</"
18623 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
18624 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
18625 msgstr ""
18626
18627 #. type: =item
18628 #: ../src/guestfs-availability.pod:31
18629 msgid "B<linuxfsuuid>"
18630 msgstr ""
18631
18632 #. type: textblock
18633 #: ../src/guestfs-availability.pod:33
18634 msgid ""
18635 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
18636 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
18637 msgstr ""
18638
18639 #. type: =item
18640 #: ../src/guestfs-availability.pod:40
18641 msgid "B<linuxmodules>"
18642 msgstr ""
18643
18644 #. type: textblock
18645 #: ../src/guestfs-availability.pod:42
18646 msgid "The following functions: L</guestfs_modprobe>"
18647 msgstr ""
18648
18649 #. type: =item
18650 #: ../src/guestfs-availability.pod:45
18651 msgid "B<linuxxattrs>"
18652 msgstr ""
18653
18654 #. type: textblock
18655 #: ../src/guestfs-availability.pod:47
18656 msgid ""
18657 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
18658 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
18659 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
18660 "guestfs_setxattr>"
18661 msgstr ""
18662
18663 #. type: =item
18664 #: ../src/guestfs-availability.pod:58
18665 msgid "B<luks>"
18666 msgstr ""
18667
18668 #. type: textblock
18669 #: ../src/guestfs-availability.pod:60
18670 msgid ""
18671 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
18672 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
18673 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
18674 msgstr ""
18675
18676 #. type: =item
18677 #: ../src/guestfs-availability.pod:69
18678 msgid "B<lvm2>"
18679 msgstr ""
18680
18681 #. type: textblock
18682 #: ../src/guestfs-availability.pod:71
18683 msgid ""
18684 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
18685 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
18686 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
18687 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
18688 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
18689 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
18690 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
18691 msgstr ""
18692
18693 #. type: =item
18694 #: ../src/guestfs-availability.pod:94
18695 msgid "B<mknod>"
18696 msgstr ""
18697
18698 #. type: textblock
18699 #: ../src/guestfs-availability.pod:96
18700 msgid ""
18701 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
18702 "guestfs_mknod_b> L</guestfs_mknod_c>"
18703 msgstr ""
18704
18705 #. type: =item
18706 #: ../src/guestfs-availability.pod:102
18707 msgid "B<ntfs3g>"
18708 msgstr ""
18709
18710 #. type: textblock
18711 #: ../src/guestfs-availability.pod:104
18712 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
18713 msgstr ""
18714
18715 #. type: =item
18716 #: ../src/guestfs-availability.pod:107
18717 msgid "B<ntfsprogs>"
18718 msgstr ""
18719
18720 #. type: textblock
18721 #: ../src/guestfs-availability.pod:109
18722 msgid ""
18723 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
18724 msgstr ""
18725
18726 #. type: =item
18727 #: ../src/guestfs-availability.pod:113
18728 msgid "B<realpath>"
18729 msgstr ""
18730
18731 #. type: textblock
18732 #: ../src/guestfs-availability.pod:115
18733 msgid "The following functions: L</guestfs_realpath>"
18734 msgstr ""
18735
18736 #. type: =item
18737 #: ../src/guestfs-availability.pod:118
18738 msgid "B<scrub>"
18739 msgstr ""
18740
18741 #. type: textblock
18742 #: ../src/guestfs-availability.pod:120
18743 msgid ""
18744 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
18745 "guestfs_scrub_freespace>"
18746 msgstr ""
18747
18748 #. type: =item
18749 #: ../src/guestfs-availability.pod:125
18750 msgid "B<selinux>"
18751 msgstr ""
18752
18753 #. type: textblock
18754 #: ../src/guestfs-availability.pod:127
18755 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
18756 msgstr ""
18757
18758 #. type: =item
18759 #: ../src/guestfs-availability.pod:131
18760 msgid "B<xz>"
18761 msgstr ""
18762
18763 #. type: textblock
18764 #: ../src/guestfs-availability.pod:133
18765 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
18766 msgstr ""
18767
18768 #. type: =item
18769 #: ../src/guestfs-availability.pod:137
18770 msgid "B<zerofree>"
18771 msgstr ""
18772
18773 #. type: textblock
18774 #: ../src/guestfs-availability.pod:139
18775 msgid "The following functions: L</guestfs_zerofree>"
18776 msgstr ""
18777
18778 #. type: =head2
18779 #: ../src/guestfs-structs.pod:1
18780 msgid "guestfs_int_bool"
18781 msgstr ""
18782
18783 #. type: verbatim
18784 #: ../src/guestfs-structs.pod:3
18785 #, no-wrap
18786 msgid ""
18787 " struct guestfs_int_bool {\n"
18788 "   int32_t i;\n"
18789 "   int32_t b;\n"
18790 " };\n"
18791 " \n"
18792 msgstr ""
18793
18794 #. type: verbatim
18795 #: ../src/guestfs-structs.pod:8
18796 #, no-wrap
18797 msgid ""
18798 " struct guestfs_int_bool_list {\n"
18799 "   uint32_t len; /* Number of elements in list. */\n"
18800 "   struct guestfs_int_bool *val; /* Elements. */\n"
18801 " };\n"
18802 " \n"
18803 msgstr ""
18804
18805 #. type: verbatim
18806 #: ../src/guestfs-structs.pod:13
18807 #, no-wrap
18808 msgid ""
18809 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
18810 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
18811 "\n"
18812 msgstr ""
18813
18814 #. type: =head2
18815 #: ../src/guestfs-structs.pod:16
18816 msgid "guestfs_lvm_pv"
18817 msgstr ""
18818
18819 #. type: verbatim
18820 #: ../src/guestfs-structs.pod:18
18821 #, no-wrap
18822 msgid ""
18823 " struct guestfs_lvm_pv {\n"
18824 "   char *pv_name;\n"
18825 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18826 "   char pv_uuid[32];\n"
18827 "   char *pv_fmt;\n"
18828 "   uint64_t pv_size;\n"
18829 "   uint64_t dev_size;\n"
18830 "   uint64_t pv_free;\n"
18831 "   uint64_t pv_used;\n"
18832 "   char *pv_attr;\n"
18833 "   int64_t pv_pe_count;\n"
18834 "   int64_t pv_pe_alloc_count;\n"
18835 "   char *pv_tags;\n"
18836 "   uint64_t pe_start;\n"
18837 "   int64_t pv_mda_count;\n"
18838 "   uint64_t pv_mda_free;\n"
18839 " };\n"
18840 " \n"
18841 msgstr ""
18842
18843 #. type: verbatim
18844 #: ../src/guestfs-structs.pod:36
18845 #, no-wrap
18846 msgid ""
18847 " struct guestfs_lvm_pv_list {\n"
18848 "   uint32_t len; /* Number of elements in list. */\n"
18849 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
18850 " };\n"
18851 " \n"
18852 msgstr ""
18853
18854 #. type: verbatim
18855 #: ../src/guestfs-structs.pod:41
18856 #, no-wrap
18857 msgid ""
18858 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
18859 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
18860 "\n"
18861 msgstr ""
18862
18863 #. type: =head2
18864 #: ../src/guestfs-structs.pod:44
18865 msgid "guestfs_lvm_vg"
18866 msgstr ""
18867
18868 #. type: verbatim
18869 #: ../src/guestfs-structs.pod:46
18870 #, no-wrap
18871 msgid ""
18872 " struct guestfs_lvm_vg {\n"
18873 "   char *vg_name;\n"
18874 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18875 "   char vg_uuid[32];\n"
18876 "   char *vg_fmt;\n"
18877 "   char *vg_attr;\n"
18878 "   uint64_t vg_size;\n"
18879 "   uint64_t vg_free;\n"
18880 "   char *vg_sysid;\n"
18881 "   uint64_t vg_extent_size;\n"
18882 "   int64_t vg_extent_count;\n"
18883 "   int64_t vg_free_count;\n"
18884 "   int64_t max_lv;\n"
18885 "   int64_t max_pv;\n"
18886 "   int64_t pv_count;\n"
18887 "   int64_t lv_count;\n"
18888 "   int64_t snap_count;\n"
18889 "   int64_t vg_seqno;\n"
18890 "   char *vg_tags;\n"
18891 "   int64_t vg_mda_count;\n"
18892 "   uint64_t vg_mda_free;\n"
18893 " };\n"
18894 " \n"
18895 msgstr ""
18896
18897 #. type: verbatim
18898 #: ../src/guestfs-structs.pod:69
18899 #, no-wrap
18900 msgid ""
18901 " struct guestfs_lvm_vg_list {\n"
18902 "   uint32_t len; /* Number of elements in list. */\n"
18903 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
18904 " };\n"
18905 " \n"
18906 msgstr ""
18907
18908 #. type: verbatim
18909 #: ../src/guestfs-structs.pod:74
18910 #, no-wrap
18911 msgid ""
18912 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
18913 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
18914 "\n"
18915 msgstr ""
18916
18917 #. type: =head2
18918 #: ../src/guestfs-structs.pod:77
18919 msgid "guestfs_lvm_lv"
18920 msgstr ""
18921
18922 #. type: verbatim
18923 #: ../src/guestfs-structs.pod:79
18924 #, no-wrap
18925 msgid ""
18926 " struct guestfs_lvm_lv {\n"
18927 "   char *lv_name;\n"
18928 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18929 "   char lv_uuid[32];\n"
18930 "   char *lv_attr;\n"
18931 "   int64_t lv_major;\n"
18932 "   int64_t lv_minor;\n"
18933 "   int64_t lv_kernel_major;\n"
18934 "   int64_t lv_kernel_minor;\n"
18935 "   uint64_t lv_size;\n"
18936 "   int64_t seg_count;\n"
18937 "   char *origin;\n"
18938 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18939 "   float snap_percent;\n"
18940 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18941 "   float copy_percent;\n"
18942 "   char *move_pv;\n"
18943 "   char *lv_tags;\n"
18944 "   char *mirror_log;\n"
18945 "   char *modules;\n"
18946 " };\n"
18947 " \n"
18948 msgstr ""
18949
18950 #. type: verbatim
18951 #: ../src/guestfs-structs.pod:101
18952 #, no-wrap
18953 msgid ""
18954 " struct guestfs_lvm_lv_list {\n"
18955 "   uint32_t len; /* Number of elements in list. */\n"
18956 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
18957 " };\n"
18958 " \n"
18959 msgstr ""
18960
18961 #. type: verbatim
18962 #: ../src/guestfs-structs.pod:106
18963 #, no-wrap
18964 msgid ""
18965 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
18966 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
18967 "\n"
18968 msgstr ""
18969
18970 #. type: verbatim
18971 #: ../src/guestfs-structs.pod:111
18972 #, no-wrap
18973 msgid ""
18974 " struct guestfs_stat {\n"
18975 "   int64_t dev;\n"
18976 "   int64_t ino;\n"
18977 "   int64_t mode;\n"
18978 "   int64_t nlink;\n"
18979 "   int64_t uid;\n"
18980 "   int64_t gid;\n"
18981 "   int64_t rdev;\n"
18982 "   int64_t size;\n"
18983 "   int64_t blksize;\n"
18984 "   int64_t blocks;\n"
18985 "   int64_t atime;\n"
18986 "   int64_t mtime;\n"
18987 "   int64_t ctime;\n"
18988 " };\n"
18989 " \n"
18990 msgstr ""
18991
18992 #. type: verbatim
18993 #: ../src/guestfs-structs.pod:127
18994 #, no-wrap
18995 msgid ""
18996 " struct guestfs_stat_list {\n"
18997 "   uint32_t len; /* Number of elements in list. */\n"
18998 "   struct guestfs_stat *val; /* Elements. */\n"
18999 " };\n"
19000 " \n"
19001 msgstr ""
19002
19003 #. type: verbatim
19004 #: ../src/guestfs-structs.pod:132
19005 #, no-wrap
19006 msgid ""
19007 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
19008 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
19009 "\n"
19010 msgstr ""
19011
19012 #. type: verbatim
19013 #: ../src/guestfs-structs.pod:137
19014 #, no-wrap
19015 msgid ""
19016 " struct guestfs_statvfs {\n"
19017 "   int64_t bsize;\n"
19018 "   int64_t frsize;\n"
19019 "   int64_t blocks;\n"
19020 "   int64_t bfree;\n"
19021 "   int64_t bavail;\n"
19022 "   int64_t files;\n"
19023 "   int64_t ffree;\n"
19024 "   int64_t favail;\n"
19025 "   int64_t fsid;\n"
19026 "   int64_t flag;\n"
19027 "   int64_t namemax;\n"
19028 " };\n"
19029 " \n"
19030 msgstr ""
19031
19032 #. type: verbatim
19033 #: ../src/guestfs-structs.pod:151
19034 #, no-wrap
19035 msgid ""
19036 " struct guestfs_statvfs_list {\n"
19037 "   uint32_t len; /* Number of elements in list. */\n"
19038 "   struct guestfs_statvfs *val; /* Elements. */\n"
19039 " };\n"
19040 " \n"
19041 msgstr ""
19042
19043 #. type: verbatim
19044 #: ../src/guestfs-structs.pod:156
19045 #, no-wrap
19046 msgid ""
19047 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
19048 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
19049 "\n"
19050 msgstr ""
19051
19052 #. type: =head2
19053 #: ../src/guestfs-structs.pod:159
19054 msgid "guestfs_dirent"
19055 msgstr ""
19056
19057 #. type: verbatim
19058 #: ../src/guestfs-structs.pod:161
19059 #, no-wrap
19060 msgid ""
19061 " struct guestfs_dirent {\n"
19062 "   int64_t ino;\n"
19063 "   char ftyp;\n"
19064 "   char *name;\n"
19065 " };\n"
19066 " \n"
19067 msgstr ""
19068
19069 #. type: verbatim
19070 #: ../src/guestfs-structs.pod:167
19071 #, no-wrap
19072 msgid ""
19073 " struct guestfs_dirent_list {\n"
19074 "   uint32_t len; /* Number of elements in list. */\n"
19075 "   struct guestfs_dirent *val; /* Elements. */\n"
19076 " };\n"
19077 " \n"
19078 msgstr ""
19079
19080 #. type: verbatim
19081 #: ../src/guestfs-structs.pod:172
19082 #, no-wrap
19083 msgid ""
19084 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
19085 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
19086 "\n"
19087 msgstr ""
19088
19089 #. type: verbatim
19090 #: ../src/guestfs-structs.pod:177
19091 #, no-wrap
19092 msgid ""
19093 " struct guestfs_version {\n"
19094 "   int64_t major;\n"
19095 "   int64_t minor;\n"
19096 "   int64_t release;\n"
19097 "   char *extra;\n"
19098 " };\n"
19099 " \n"
19100 msgstr ""
19101
19102 #. type: verbatim
19103 #: ../src/guestfs-structs.pod:184
19104 #, no-wrap
19105 msgid ""
19106 " struct guestfs_version_list {\n"
19107 "   uint32_t len; /* Number of elements in list. */\n"
19108 "   struct guestfs_version *val; /* Elements. */\n"
19109 " };\n"
19110 " \n"
19111 msgstr ""
19112
19113 #. type: verbatim
19114 #: ../src/guestfs-structs.pod:189
19115 #, no-wrap
19116 msgid ""
19117 " void guestfs_free_version (struct guestfs_free_version *);\n"
19118 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
19119 "\n"
19120 msgstr ""
19121
19122 #. type: =head2
19123 #: ../src/guestfs-structs.pod:192
19124 msgid "guestfs_xattr"
19125 msgstr ""
19126
19127 #. type: verbatim
19128 #: ../src/guestfs-structs.pod:194
19129 #, no-wrap
19130 msgid ""
19131 " struct guestfs_xattr {\n"
19132 "   char *attrname;\n"
19133 "   /* The next two fields describe a byte array. */\n"
19134 "   uint32_t attrval_len;\n"
19135 "   char *attrval;\n"
19136 " };\n"
19137 " \n"
19138 msgstr ""
19139
19140 #. type: verbatim
19141 #: ../src/guestfs-structs.pod:201
19142 #, no-wrap
19143 msgid ""
19144 " struct guestfs_xattr_list {\n"
19145 "   uint32_t len; /* Number of elements in list. */\n"
19146 "   struct guestfs_xattr *val; /* Elements. */\n"
19147 " };\n"
19148 " \n"
19149 msgstr ""
19150
19151 #. type: verbatim
19152 #: ../src/guestfs-structs.pod:206
19153 #, no-wrap
19154 msgid ""
19155 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
19156 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
19157 "\n"
19158 msgstr ""
19159
19160 #. type: =head2
19161 #: ../src/guestfs-structs.pod:209
19162 msgid "guestfs_inotify_event"
19163 msgstr ""
19164
19165 #. type: verbatim
19166 #: ../src/guestfs-structs.pod:211
19167 #, no-wrap
19168 msgid ""
19169 " struct guestfs_inotify_event {\n"
19170 "   int64_t in_wd;\n"
19171 "   uint32_t in_mask;\n"
19172 "   uint32_t in_cookie;\n"
19173 "   char *in_name;\n"
19174 " };\n"
19175 " \n"
19176 msgstr ""
19177
19178 #. type: verbatim
19179 #: ../src/guestfs-structs.pod:218
19180 #, no-wrap
19181 msgid ""
19182 " struct guestfs_inotify_event_list {\n"
19183 "   uint32_t len; /* Number of elements in list. */\n"
19184 "   struct guestfs_inotify_event *val; /* Elements. */\n"
19185 " };\n"
19186 " \n"
19187 msgstr ""
19188
19189 #. type: verbatim
19190 #: ../src/guestfs-structs.pod:223
19191 #, no-wrap
19192 msgid ""
19193 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
19194 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
19195 "\n"
19196 msgstr ""
19197
19198 #. type: =head2
19199 #: ../src/guestfs-structs.pod:226
19200 msgid "guestfs_partition"
19201 msgstr ""
19202
19203 #. type: verbatim
19204 #: ../src/guestfs-structs.pod:228
19205 #, no-wrap
19206 msgid ""
19207 " struct guestfs_partition {\n"
19208 "   int32_t part_num;\n"
19209 "   uint64_t part_start;\n"
19210 "   uint64_t part_end;\n"
19211 "   uint64_t part_size;\n"
19212 " };\n"
19213 " \n"
19214 msgstr ""
19215
19216 #. type: verbatim
19217 #: ../src/guestfs-structs.pod:235
19218 #, no-wrap
19219 msgid ""
19220 " struct guestfs_partition_list {\n"
19221 "   uint32_t len; /* Number of elements in list. */\n"
19222 "   struct guestfs_partition *val; /* Elements. */\n"
19223 " };\n"
19224 " \n"
19225 msgstr ""
19226
19227 #. type: verbatim
19228 #: ../src/guestfs-structs.pod:240
19229 #, no-wrap
19230 msgid ""
19231 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
19232 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
19233 "\n"
19234 msgstr ""
19235
19236 #. type: =head2
19237 #: ../src/guestfs-structs.pod:243
19238 msgid "guestfs_application"
19239 msgstr ""
19240
19241 #. type: verbatim
19242 #: ../src/guestfs-structs.pod:245
19243 #, no-wrap
19244 msgid ""
19245 " struct guestfs_application {\n"
19246 "   char *app_name;\n"
19247 "   char *app_display_name;\n"
19248 "   int32_t app_epoch;\n"
19249 "   char *app_version;\n"
19250 "   char *app_release;\n"
19251 "   char *app_install_path;\n"
19252 "   char *app_trans_path;\n"
19253 "   char *app_publisher;\n"
19254 "   char *app_url;\n"
19255 "   char *app_source_package;\n"
19256 "   char *app_summary;\n"
19257 "   char *app_description;\n"
19258 " };\n"
19259 " \n"
19260 msgstr ""
19261
19262 #. type: verbatim
19263 #: ../src/guestfs-structs.pod:260
19264 #, no-wrap
19265 msgid ""
19266 " struct guestfs_application_list {\n"
19267 "   uint32_t len; /* Number of elements in list. */\n"
19268 "   struct guestfs_application *val; /* Elements. */\n"
19269 " };\n"
19270 " \n"
19271 msgstr ""
19272
19273 #. type: verbatim
19274 #: ../src/guestfs-structs.pod:265
19275 #, no-wrap
19276 msgid ""
19277 " void guestfs_free_application (struct guestfs_free_application *);\n"
19278 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
19279 "\n"
19280 msgstr ""
19281
19282 #. type: textblock
19283 #: ../fish/guestfish.pod:5
19284 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19285 msgstr ""
19286
19287 #. type: verbatim
19288 #: ../fish/guestfish.pod:9
19289 #, no-wrap
19290 msgid ""
19291 " guestfish [--options] [commands]\n"
19292 "\n"
19293 msgstr ""
19294
19295 #. type: verbatim
19296 #: ../fish/guestfish.pod:11
19297 #, no-wrap
19298 msgid ""
19299 " guestfish\n"
19300 "\n"
19301 msgstr ""
19302
19303 #. type: verbatim
19304 #: ../fish/guestfish.pod:13
19305 #, no-wrap
19306 msgid ""
19307 " guestfish [--ro|--rw] -a disk.img\n"
19308 "\n"
19309 msgstr ""
19310
19311 #. type: verbatim
19312 #: ../fish/guestfish.pod:15
19313 #, no-wrap
19314 msgid ""
19315 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19316 "\n"
19317 msgstr ""
19318
19319 #. type: verbatim
19320 #: ../fish/guestfish.pod:17
19321 #, no-wrap
19322 msgid ""
19323 " guestfish -d libvirt-domain\n"
19324 "\n"
19325 msgstr ""
19326
19327 #. type: verbatim
19328 #: ../fish/guestfish.pod:19
19329 #, no-wrap
19330 msgid ""
19331 " guestfish [--ro|--rw] -a disk.img -i\n"
19332 "\n"
19333 msgstr ""
19334
19335 #. type: verbatim
19336 #: ../fish/guestfish.pod:21
19337 #, no-wrap
19338 msgid ""
19339 " guestfish -d libvirt-domain -i\n"
19340 "\n"
19341 msgstr ""
19342
19343 #. type: =head1
19344 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
19345 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
19346 msgid "WARNING"
19347 msgstr ""
19348
19349 #. type: textblock
19350 #: ../fish/guestfish.pod:25
19351 msgid ""
19352 "Using guestfish in read/write mode on live virtual machines can be "
19353 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19354 "option to use guestfish safely if the disk image or virtual machine might be "
19355 "live."
19356 msgstr ""
19357
19358 #. type: textblock
19359 #: ../fish/guestfish.pod:32
19360 msgid ""
19361 "Guestfish is a shell and command-line tool for examining and modifying "
19362 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19363 "functionality of the guestfs API, see L<guestfs(3)>."
19364 msgstr ""
19365
19366 #. type: textblock
19367 #: ../fish/guestfish.pod:36
19368 msgid ""
19369 "Guestfish gives you structured access to the libguestfs API, from shell "
19370 "scripts or the command line or interactively.  If you want to rescue a "
19371 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19372 "command."
19373 msgstr ""
19374
19375 #. type: =head1
19376 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:949
19377 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
19378 msgid "EXAMPLES"
19379 msgstr ""
19380
19381 #. type: =head2
19382 #: ../fish/guestfish.pod:43
19383 msgid "As an interactive shell"
19384 msgstr ""
19385
19386 #. type: verbatim
19387 #: ../fish/guestfish.pod:45
19388 #, no-wrap
19389 msgid ""
19390 " $ guestfish\n"
19391 " \n"
19392 msgstr ""
19393
19394 #. type: verbatim
19395 #: ../fish/guestfish.pod:47
19396 #, no-wrap
19397 msgid ""
19398 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19399 " editing virtual machine filesystems.\n"
19400 " \n"
19401 msgstr ""
19402
19403 #. type: verbatim
19404 #: ../fish/guestfish.pod:50
19405 #, no-wrap
19406 msgid ""
19407 " Type: 'help' for a list of commands\n"
19408 "       'man' to read the manual\n"
19409 "       'quit' to quit the shell\n"
19410 " \n"
19411 msgstr ""
19412
19413 #. type: verbatim
19414 #: ../fish/guestfish.pod:54
19415 #, no-wrap
19416 msgid ""
19417 " ><fs> add-ro disk.img\n"
19418 " ><fs> run\n"
19419 " ><fs> list-filesystems\n"
19420 " /dev/sda1: ext4\n"
19421 " /dev/vg_guest/lv_root: ext4\n"
19422 " /dev/vg_guest/lv_swap: swap\n"
19423 " ><fs> mount /dev/vg_guest/lv_root /\n"
19424 " ><fs> cat /etc/fstab\n"
19425 " # /etc/fstab\n"
19426 " # Created by anaconda\n"
19427 " [...]\n"
19428 " ><fs> exit\n"
19429 "\n"
19430 msgstr ""
19431
19432 #. type: =head2
19433 #: ../fish/guestfish.pod:67
19434 msgid "From shell scripts"
19435 msgstr ""
19436
19437 #. type: textblock
19438 #: ../fish/guestfish.pod:69
19439 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19440 msgstr ""
19441
19442 #. type: verbatim
19443 #: ../fish/guestfish.pod:71
19444 #, no-wrap
19445 msgid ""
19446 " guestfish <<_EOF_\n"
19447 " add disk.img\n"
19448 " run\n"
19449 " mount /dev/vg_guest/lv_root /\n"
19450 " write /etc/motd \"Welcome, new users\"\n"
19451 " _EOF_\n"
19452 "\n"
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../fish/guestfish.pod:78
19457 msgid "List the LVM logical volumes in a disk image:"
19458 msgstr ""
19459
19460 #. type: verbatim
19461 #: ../fish/guestfish.pod:80
19462 #, no-wrap
19463 msgid ""
19464 " guestfish -a disk.img --ro <<_EOF_\n"
19465 " run\n"
19466 " lvs\n"
19467 " _EOF_\n"
19468 "\n"
19469 msgstr ""
19470
19471 #. type: textblock
19472 #: ../fish/guestfish.pod:85
19473 msgid "List all the filesystems in a disk image:"
19474 msgstr ""
19475
19476 #. type: verbatim
19477 #: ../fish/guestfish.pod:87
19478 #, no-wrap
19479 msgid ""
19480 " guestfish -a disk.img --ro <<_EOF_\n"
19481 " run\n"
19482 " list-filesystems\n"
19483 " _EOF_\n"
19484 "\n"
19485 msgstr ""
19486
19487 #. type: =head2
19488 #: ../fish/guestfish.pod:92
19489 msgid "On one command line"
19490 msgstr ""
19491
19492 #. type: textblock
19493 #: ../fish/guestfish.pod:94
19494 msgid "Update C</etc/resolv.conf> in a guest:"
19495 msgstr ""
19496
19497 #. type: verbatim
19498 #: ../fish/guestfish.pod:96
19499 #, no-wrap
19500 msgid ""
19501 " guestfish \\\n"
19502 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19503 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19504 "\n"
19505 msgstr ""
19506
19507 #. type: textblock
19508 #: ../fish/guestfish.pod:100
19509 msgid "Edit C</boot/grub/grub.conf> interactively:"
19510 msgstr ""
19511
19512 #. type: verbatim
19513 #: ../fish/guestfish.pod:102
19514 #, no-wrap
19515 msgid ""
19516 " guestfish --rw --add disk.img \\\n"
19517 "   --mount /dev/vg_guest/lv_root \\\n"
19518 "   --mount /dev/sda1:/boot \\\n"
19519 "   edit /boot/grub/grub.conf\n"
19520 "\n"
19521 msgstr ""
19522
19523 #. type: =head2
19524 #: ../fish/guestfish.pod:107
19525 msgid "Mount disks automatically"
19526 msgstr ""
19527
19528 #. type: textblock
19529 #: ../fish/guestfish.pod:109
19530 msgid ""
19531 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19532 msgstr ""
19533
19534 #. type: verbatim
19535 #: ../fish/guestfish.pod:112
19536 #, no-wrap
19537 msgid ""
19538 " guestfish --ro -a disk.img -i cat /etc/group\n"
19539 "\n"
19540 msgstr ""
19541
19542 #. type: verbatim
19543 #: ../fish/guestfish.pod:114
19544 #, no-wrap
19545 msgid ""
19546 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19547 "\n"
19548 msgstr ""
19549
19550 #. type: textblock
19551 #: ../fish/guestfish.pod:116
19552 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19553 msgstr ""
19554
19555 #. type: verbatim
19556 #: ../fish/guestfish.pod:118
19557 #, no-wrap
19558 msgid ""
19559 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19560 "\n"
19561 msgstr ""
19562
19563 #. type: =head2
19564 #: ../fish/guestfish.pod:120
19565 msgid "As a script interpreter"
19566 msgstr ""
19567
19568 #. type: textblock
19569 #: ../fish/guestfish.pod:122
19570 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19571 msgstr ""
19572
19573 #. type: verbatim
19574 #: ../fish/guestfish.pod:124
19575 #, no-wrap
19576 msgid ""
19577 " #!/usr/bin/guestfish -f\n"
19578 " sparse test1.img 100M\n"
19579 " run\n"
19580 " part-disk /dev/sda mbr\n"
19581 " mkfs ext2 /dev/sda1\n"
19582 "\n"
19583 msgstr ""
19584
19585 #. type: =head2
19586 #: ../fish/guestfish.pod:130
19587 msgid "Start with a prepared disk"
19588 msgstr ""
19589
19590 #. type: textblock
19591 #: ../fish/guestfish.pod:132
19592 msgid ""
19593 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19594 "single ext2-formatted partition:"
19595 msgstr ""
19596
19597 #. type: verbatim
19598 #: ../fish/guestfish.pod:135
19599 #, no-wrap
19600 msgid ""
19601 " guestfish -N fs\n"
19602 "\n"
19603 msgstr ""
19604
19605 #. type: textblock
19606 #: ../fish/guestfish.pod:137
19607 msgid "To list what is available do:"
19608 msgstr ""
19609
19610 #. type: verbatim
19611 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:940
19612 #, no-wrap
19613 msgid ""
19614 " guestfish -N help | less\n"
19615 "\n"
19616 msgstr ""
19617
19618 #. type: =head2
19619 #: ../fish/guestfish.pod:141
19620 msgid "Remote control"
19621 msgstr ""
19622
19623 #. type: verbatim
19624 #: ../fish/guestfish.pod:143
19625 #, no-wrap
19626 msgid ""
19627 " eval \"`guestfish --listen`\"\n"
19628 " guestfish --remote add-ro disk.img\n"
19629 " guestfish --remote run\n"
19630 " guestfish --remote lvs\n"
19631 "\n"
19632 msgstr ""
19633
19634 #. type: =head1
19635 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
19636 #: ../fuse/guestmount.pod:73 ../tools/virt-win-reg.pl:96
19637 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
19638 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
19639 msgid "OPTIONS"
19640 msgstr ""
19641
19642 #. type: =item
19643 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:133
19644 #: ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61
19645 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
19646 #: ../tools/virt-list-partitions.pl:62
19647 msgid "B<--help>"
19648 msgstr ""
19649
19650 #. type: textblock
19651 #: ../fish/guestfish.pod:154
19652 msgid "Displays general help on options."
19653 msgstr ""
19654
19655 #. type: =item
19656 #: ../fish/guestfish.pod:156
19657 msgid "B<-h>"
19658 msgstr ""
19659
19660 #. type: =item
19661 #: ../fish/guestfish.pod:158
19662 msgid "B<--cmd-help>"
19663 msgstr ""
19664
19665 #. type: textblock
19666 #: ../fish/guestfish.pod:160
19667 msgid "Lists all available guestfish commands."
19668 msgstr ""
19669
19670 #. type: =item
19671 #: ../fish/guestfish.pod:162
19672 msgid "B<-h cmd>"
19673 msgstr ""
19674
19675 #. type: =item
19676 #: ../fish/guestfish.pod:164
19677 msgid "B<--cmd-help cmd>"
19678 msgstr ""
19679
19680 #. type: textblock
19681 #: ../fish/guestfish.pod:166
19682 msgid "Displays detailed help on a single command C<cmd>."
19683 msgstr ""
19684
19685 #. type: =item
19686 #: ../fish/guestfish.pod:168
19687 msgid "B<-a image>"
19688 msgstr ""
19689
19690 #. type: =item
19691 #: ../fish/guestfish.pod:170
19692 msgid "B<--add image>"
19693 msgstr ""
19694
19695 #. type: textblock
19696 #: ../fish/guestfish.pod:172
19697 msgid "Add a block device or virtual machine image to the shell."
19698 msgstr ""
19699
19700 #. type: textblock
19701 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
19702 msgid ""
19703 "The format of the disk image is auto-detected.  To override this and force a "
19704 "particular format use the I<--format=..> option."
19705 msgstr ""
19706
19707 #. type: textblock
19708 #: ../fish/guestfish.pod:177
19709 msgid ""
19710 "Using this flag is mostly equivalent to using the C<add> command, with "
19711 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19712 "the I<--format=...> flag was given."
19713 msgstr ""
19714
19715 #. type: =item
19716 #: ../fish/guestfish.pod:181
19717 msgid "B<-c URI>"
19718 msgstr ""
19719
19720 #. type: =item
19721 #: ../fish/guestfish.pod:183
19722 msgid "B<--connect URI>"
19723 msgstr ""
19724
19725 #. type: textblock
19726 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
19727 msgid ""
19728 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19729 "URI to use.  The default is to use the default libvirt connection."
19730 msgstr ""
19731
19732 #. type: =item
19733 #: ../fish/guestfish.pod:189
19734 msgid "B<--csh>"
19735 msgstr ""
19736
19737 #. type: textblock
19738 #: ../fish/guestfish.pod:191
19739 msgid ""
19740 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19741 "section L</REMOTE CONTROL AND CSH> below."
19742 msgstr ""
19743
19744 #. type: =item
19745 #: ../fish/guestfish.pod:194
19746 msgid "B<-d libvirt-domain>"
19747 msgstr ""
19748
19749 #. type: =item
19750 #: ../fish/guestfish.pod:196
19751 msgid "B<--domain libvirt-domain>"
19752 msgstr ""
19753
19754 #. type: textblock
19755 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
19756 msgid ""
19757 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19758 "used, then any libvirt domain can be used.  However in write mode, only "
19759 "libvirt domains which are shut down can be named here."
19760 msgstr ""
19761
19762 #. type: textblock
19763 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:96
19764 msgid "Domain UUIDs can be used instead of names."
19765 msgstr ""
19766
19767 #. type: textblock
19768 #: ../fish/guestfish.pod:204
19769 msgid ""
19770 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19771 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19772 "if the I<--format:...> flag was given."
19773 msgstr ""
19774
19775 #. type: =item
19776 #: ../fish/guestfish.pod:208
19777 msgid "B<-D>"
19778 msgstr ""
19779
19780 #. type: =item
19781 #: ../fish/guestfish.pod:210
19782 msgid "B<--no-dest-paths>"
19783 msgstr ""
19784
19785 #. type: textblock
19786 #: ../fish/guestfish.pod:212
19787 msgid ""
19788 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19789 "to hit the tab key to complete paths on the guest filesystem, but this "
19790 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19791 "allow this feature to be disabled."
19792 msgstr ""
19793
19794 #. type: =item
19795 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
19796 msgid "B<--echo-keys>"
19797 msgstr ""
19798
19799 #. type: textblock
19800 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:112
19801 msgid ""
19802 "When prompting for keys and passphrases, guestfish normally turns echoing "
19803 "off so you cannot see what you are typing.  If you are not worried about "
19804 "Tempest attacks and there is no one else in the room you can specify this "
19805 "flag to see what you are typing."
19806 msgstr ""
19807
19808 #. type: =item
19809 #: ../fish/guestfish.pod:224
19810 msgid "B<-f file>"
19811 msgstr ""
19812
19813 #. type: =item
19814 #: ../fish/guestfish.pod:226
19815 msgid "B<--file file>"
19816 msgstr ""
19817
19818 #. type: textblock
19819 #: ../fish/guestfish.pod:228
19820 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19821 msgstr ""
19822
19823 #. type: verbatim
19824 #: ../fish/guestfish.pod:231
19825 #, no-wrap
19826 msgid ""
19827 " #!/usr/bin/guestfish -f\n"
19828 "\n"
19829 msgstr ""
19830
19831 #. type: =item
19832 #: ../fish/guestfish.pod:233
19833 msgid "B<--format=raw|qcow2|..>"
19834 msgstr ""
19835
19836 #. type: =item
19837 #: ../fish/guestfish.pod:235
19838 msgid "B<--format>"
19839 msgstr ""
19840
19841 #. type: textblock
19842 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:119
19843 msgid ""
19844 "The default for the I<-a> option is to auto-detect the format of the disk "
19845 "image.  Using this forces the disk format for I<-a> options which follow on "
19846 "the command line.  Using I<--format> with no argument switches back to auto-"
19847 "detection for subsequent I<-a> options."
19848 msgstr ""
19849
19850 #. type: verbatim
19851 #: ../fish/guestfish.pod:244
19852 #, no-wrap
19853 msgid ""
19854 " guestfish --format=raw -a disk.img\n"
19855 "\n"
19856 msgstr ""
19857
19858 #. type: textblock
19859 #: ../fish/guestfish.pod:246
19860 msgid "forces raw format (no auto-detection) for C<disk.img>."
19861 msgstr ""
19862
19863 #. type: verbatim
19864 #: ../fish/guestfish.pod:248
19865 #, no-wrap
19866 msgid ""
19867 " guestfish --format=raw -a disk.img --format -a another.img\n"
19868 "\n"
19869 msgstr ""
19870
19871 #. type: textblock
19872 #: ../fish/guestfish.pod:250
19873 msgid ""
19874 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
19875 "detection for C<another.img>."
19876 msgstr ""
19877
19878 #. type: textblock
19879 #: ../fish/guestfish.pod:253
19880 msgid ""
19881 "If you have untrusted raw-format guest disk images, you should use this "
19882 "option to specify the disk format.  This avoids a possible security problem "
19883 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19884 msgstr ""
19885
19886 #. type: =item
19887 #: ../fish/guestfish.pod:258
19888 msgid "B<-i>"
19889 msgstr ""
19890
19891 #. type: =item
19892 #: ../fish/guestfish.pod:260
19893 msgid "B<--inspector>"
19894 msgstr ""
19895
19896 #. type: textblock
19897 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:139
19898 msgid ""
19899 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19900 "system and mount filesystems as they would be mounted on the real virtual "
19901 "machine."
19902 msgstr ""
19903
19904 #. type: textblock
19905 #: ../fish/guestfish.pod:266
19906 msgid "Typical usage is either:"
19907 msgstr ""
19908
19909 #. type: verbatim
19910 #: ../fish/guestfish.pod:268
19911 #, no-wrap
19912 msgid ""
19913 " guestfish -d myguest -i\n"
19914 "\n"
19915 msgstr ""
19916
19917 #. type: textblock
19918 #: ../fish/guestfish.pod:270
19919 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19920 msgstr ""
19921
19922 #. type: verbatim
19923 #: ../fish/guestfish.pod:272
19924 #, no-wrap
19925 msgid ""
19926 " guestfish --ro -d myguest -i\n"
19927 "\n"
19928 msgstr ""
19929
19930 #. type: textblock
19931 #: ../fish/guestfish.pod:274
19932 msgid "(for active domains, readonly), or specify the block device directly:"
19933 msgstr ""
19934
19935 #. type: verbatim
19936 #: ../fish/guestfish.pod:276
19937 #, no-wrap
19938 msgid ""
19939 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19940 "\n"
19941 msgstr ""
19942
19943 #. type: textblock
19944 #: ../fish/guestfish.pod:278
19945 msgid ""
19946 "Note that the command line syntax changed slightly over older versions of "
19947 "guestfish.  You can still use the old syntax:"
19948 msgstr ""
19949
19950 #. type: verbatim
19951 #: ../fish/guestfish.pod:281
19952 #, no-wrap
19953 msgid ""
19954 " guestfish [--ro] -i disk.img\n"
19955 "\n"
19956 msgstr ""
19957
19958 #. type: verbatim
19959 #: ../fish/guestfish.pod:283
19960 #, no-wrap
19961 msgid ""
19962 " guestfish [--ro] -i libvirt-domain\n"
19963 "\n"
19964 msgstr ""
19965
19966 #. type: textblock
19967 #: ../fish/guestfish.pod:285
19968 msgid ""
19969 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19970 "then using other commands to mount the filesystems that were found."
19971 msgstr ""
19972
19973 #. type: =item
19974 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
19975 msgid "B<--keys-from-stdin>"
19976 msgstr ""
19977
19978 #. type: textblock
19979 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:145
19980 msgid ""
19981 "Read key or passphrase parameters from stdin.  The default is to try to read "
19982 "passphrases from the user by opening C</dev/tty>."
19983 msgstr ""
19984
19985 #. type: =item
19986 #: ../fish/guestfish.pod:294
19987 msgid "B<--listen>"
19988 msgstr ""
19989
19990 #. type: textblock
19991 #: ../fish/guestfish.pod:296
19992 msgid ""
19993 "Fork into the background and listen for remote commands.  See section L</"
19994 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19995 msgstr ""
19996
19997 #. type: =item
19998 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
19999 msgid "B<--live>"
20000 msgstr ""
20001
20002 #. type: textblock
20003 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:150
20004 msgid ""
20005 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
20006 "ATTACHING TO RUNNING DAEMONS>)."
20007 msgstr ""
20008
20009 #. type: =item
20010 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:153
20011 msgid "B<-m dev[:mountpoint[:options]]>"
20012 msgstr ""
20013
20014 #. type: =item
20015 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:155
20016 msgid "B<--mount dev[:mountpoint[:options]]>"
20017 msgstr ""
20018
20019 #. type: textblock
20020 #: ../fish/guestfish.pod:308
20021 msgid "Mount the named partition or logical volume on the given mountpoint."
20022 msgstr ""
20023
20024 #. type: textblock
20025 #: ../fish/guestfish.pod:310
20026 msgid "If the mountpoint is omitted, it defaults to C</>."
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../fish/guestfish.pod:312
20031 msgid "You have to mount something on C</> before most commands will work."
20032 msgstr ""
20033
20034 #. type: textblock
20035 #: ../fish/guestfish.pod:314
20036 msgid ""
20037 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20038 "launched."
20039 msgstr ""
20040
20041 #. type: textblock
20042 #: ../fish/guestfish.pod:317
20043 msgid ""
20044 "If you don't know what filesystems a disk image contains, you can either run "
20045 "guestfish without this option, then list the partitions, filesystems and LVs "
20046 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20047 "commands), or you can use the L<virt-filesystems(1)> program."
20048 msgstr ""
20049
20050 #. type: textblock
20051 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:163
20052 msgid ""
20053 "The third (and rarely used) part of the mount parameter is the list of mount "
20054 "options used to mount the underlying filesystem.  If this is not given, then "
20055 "the mount options are either the empty string or C<ro> (the latter if the "
20056 "I<--ro> flag is used).  By specifying the mount options, you override this "
20057 "default choice.  Probably the only time you would use this is to enable ACLs "
20058 "and/or extended attributes if the filesystem can support them:"
20059 msgstr ""
20060
20061 #. type: verbatim
20062 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:171
20063 #, no-wrap
20064 msgid ""
20065 " -m /dev/sda1:/:acl,user_xattr\n"
20066 "\n"
20067 msgstr ""
20068
20069 #. type: textblock
20070 #: ../fish/guestfish.pod:333
20071 msgid "Using this flag is equivalent to using the C<mount-options> command."
20072 msgstr ""
20073
20074 #. type: =item
20075 #: ../fish/guestfish.pod:335
20076 msgid "B<-n>"
20077 msgstr ""
20078
20079 #. type: =item
20080 #: ../fish/guestfish.pod:337
20081 msgid "B<--no-sync>"
20082 msgstr ""
20083
20084 #. type: textblock
20085 #: ../fish/guestfish.pod:339
20086 msgid ""
20087 "Disable autosync.  This is enabled by default.  See the discussion of "
20088 "autosync in the L<guestfs(3)> manpage."
20089 msgstr ""
20090
20091 #. type: =item
20092 #: ../fish/guestfish.pod:342
20093 msgid "B<-N type>"
20094 msgstr ""
20095
20096 #. type: =item
20097 #: ../fish/guestfish.pod:344
20098 msgid "B<--new type>"
20099 msgstr ""
20100
20101 #. type: =item
20102 #: ../fish/guestfish.pod:346
20103 msgid "B<-N help>"
20104 msgstr ""
20105
20106 #. type: textblock
20107 #: ../fish/guestfish.pod:348
20108 msgid ""
20109 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
20110 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20111 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
20112 "IMAGES> below."
20113 msgstr ""
20114
20115 #. type: =item
20116 #: ../fish/guestfish.pod:353
20117 msgid "B<--progress-bars>"
20118 msgstr ""
20119
20120 #. type: textblock
20121 #: ../fish/guestfish.pod:355
20122 msgid "Enable progress bars, even when guestfish is used non-interactively."
20123 msgstr ""
20124
20125 #. type: textblock
20126 #: ../fish/guestfish.pod:357
20127 msgid ""
20128 "Progress bars are enabled by default when guestfish is used as an "
20129 "interactive shell."
20130 msgstr ""
20131
20132 #. type: =item
20133 #: ../fish/guestfish.pod:360
20134 msgid "B<--no-progress-bars>"
20135 msgstr ""
20136
20137 #. type: textblock
20138 #: ../fish/guestfish.pod:362
20139 msgid "Disable progress bars."
20140 msgstr ""
20141
20142 #. type: =item
20143 #: ../fish/guestfish.pod:364
20144 msgid "B<--remote[=pid]>"
20145 msgstr ""
20146
20147 #. type: textblock
20148 #: ../fish/guestfish.pod:366
20149 msgid ""
20150 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
20151 "CONTROL GUESTFISH OVER A SOCKET> below."
20152 msgstr ""
20153
20154 #. type: =item
20155 #: ../fish/guestfish.pod:369
20156 msgid "B<-r>"
20157 msgstr ""
20158
20159 #. type: =item
20160 #: ../fish/guestfish.pod:371
20161 msgid "B<--ro>"
20162 msgstr ""
20163
20164 #. type: textblock
20165 #: ../fish/guestfish.pod:373
20166 msgid ""
20167 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20168 "mounts are done read-only."
20169 msgstr ""
20170
20171 #. type: textblock
20172 #: ../fish/guestfish.pod:376
20173 msgid ""
20174 "The option must always be used if the disk image or virtual machine might be "
20175 "running, and is generally recommended in cases where you don't need write "
20176 "access to the disk."
20177 msgstr ""
20178
20179 #. type: textblock
20180 #: ../fish/guestfish.pod:380
20181 msgid ""
20182 "Note that prepared disk images created with I<-N> are not affected by this "
20183 "option.  Also commands like C<add> are not affected - you have to specify "
20184 "the C<readonly:true> option explicitly if you need it."
20185 msgstr ""
20186
20187 #. type: textblock
20188 #: ../fish/guestfish.pod:384
20189 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20190 msgstr ""
20191
20192 #. type: =item
20193 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:227
20194 msgid "B<--selinux>"
20195 msgstr ""
20196
20197 #. type: textblock
20198 #: ../fish/guestfish.pod:388
20199 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20200 msgstr ""
20201
20202 #. type: =item
20203 #: ../fish/guestfish.pod:390
20204 msgid "B<-v>"
20205 msgstr ""
20206
20207 #. type: =item
20208 #: ../fish/guestfish.pod:392
20209 msgid "B<--verbose>"
20210 msgstr ""
20211
20212 #. type: textblock
20213 #: ../fish/guestfish.pod:394
20214 msgid ""
20215 "Enable very verbose messages.  This is particularly useful if you find a bug."
20216 msgstr ""
20217
20218 #. type: =item
20219 #: ../fish/guestfish.pod:397
20220 msgid "B<-V>"
20221 msgstr ""
20222
20223 #. type: =item
20224 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112
20225 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
20226 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
20227 msgid "B<--version>"
20228 msgstr ""
20229
20230 #. type: textblock
20231 #: ../fish/guestfish.pod:401
20232 msgid "Display the guestfish / libguestfs version number and exit."
20233 msgstr ""
20234
20235 #. type: =item
20236 #: ../fish/guestfish.pod:403
20237 msgid "B<-w>"
20238 msgstr ""
20239
20240 #. type: =item
20241 #: ../fish/guestfish.pod:405
20242 msgid "B<--rw>"
20243 msgstr ""
20244
20245 #. type: textblock
20246 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:241
20247 msgid ""
20248 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20249 "mounts are done read-write."
20250 msgstr ""
20251
20252 #. type: textblock
20253 #: ../fish/guestfish.pod:410
20254 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20255 msgstr ""
20256
20257 #. type: =item
20258 #: ../fish/guestfish.pod:412
20259 msgid "B<-x>"
20260 msgstr ""
20261
20262 #. type: textblock
20263 #: ../fish/guestfish.pod:414
20264 msgid "Echo each command before executing it."
20265 msgstr ""
20266
20267 #. type: =head1
20268 #: ../fish/guestfish.pod:418
20269 msgid "COMMANDS ON COMMAND LINE"
20270 msgstr ""
20271
20272 #. type: textblock
20273 #: ../fish/guestfish.pod:420
20274 msgid ""
20275 "Any additional (non-option) arguments are treated as commands to execute."
20276 msgstr ""
20277
20278 #. type: textblock
20279 #: ../fish/guestfish.pod:423
20280 msgid ""
20281 "Commands to execute should be separated by a colon (C<:>), where the colon "
20282 "is a separate parameter.  Thus:"
20283 msgstr ""
20284
20285 #. type: verbatim
20286 #: ../fish/guestfish.pod:426
20287 #, no-wrap
20288 msgid ""
20289 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20290 "\n"
20291 msgstr ""
20292
20293 #. type: textblock
20294 #: ../fish/guestfish.pod:428
20295 msgid ""
20296 "If there are no additional arguments, then we enter a shell, either an "
20297 "interactive shell with a prompt (if the input is a terminal) or a non-"
20298 "interactive shell."
20299 msgstr ""
20300
20301 #. type: textblock
20302 #: ../fish/guestfish.pod:432
20303 msgid ""
20304 "In either command line mode or non-interactive shell, the first command that "
20305 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20306 "prompt) if a command fails, you can continue to enter commands."
20307 msgstr ""
20308
20309 #. type: =head1
20310 #: ../fish/guestfish.pod:437
20311 msgid "USING launch (OR run)"
20312 msgstr ""
20313
20314 #. type: textblock
20315 #: ../fish/guestfish.pod:439
20316 msgid ""
20317 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20318 "then launch it, then mount any disks you need, and finally issue actions/"
20319 "commands.  So the general order of the day is:"
20320 msgstr ""
20321
20322 #. type: textblock
20323 #: ../fish/guestfish.pod:447
20324 msgid "add or -a/--add"
20325 msgstr ""
20326
20327 #. type: textblock
20328 #: ../fish/guestfish.pod:451
20329 msgid "launch (aka run)"
20330 msgstr ""
20331
20332 #. type: textblock
20333 #: ../fish/guestfish.pod:455
20334 msgid "mount or -m/--mount"
20335 msgstr ""
20336
20337 #. type: textblock
20338 #: ../fish/guestfish.pod:459
20339 msgid "any other commands"
20340 msgstr ""
20341
20342 #. type: textblock
20343 #: ../fish/guestfish.pod:463
20344 msgid ""
20345 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20346 "guest before mounting or performing any other commands."
20347 msgstr ""
20348
20349 #. type: textblock
20350 #: ../fish/guestfish.pod:466
20351 msgid ""
20352 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20353 "I<--new> options were given then C<run> is done automatically, simply "
20354 "because guestfish can't perform the action you asked for without doing this."
20355 msgstr ""
20356
20357 #. type: =head1
20358 #: ../fish/guestfish.pod:471
20359 msgid "OPENING DISKS FOR READ AND WRITE"
20360 msgstr ""
20361
20362 #. type: textblock
20363 #: ../fish/guestfish.pod:473
20364 msgid ""
20365 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20366 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20367 "I<-i> and I<-m> open disk images read-only or for writing."
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../fish/guestfish.pod:478
20372 msgid ""
20373 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20374 "opening disk images supplied on the command line for write.  To open a disk "
20375 "image read-only you have to do I<-a image --ro>."
20376 msgstr ""
20377
20378 #. type: textblock
20379 #: ../fish/guestfish.pod:482
20380 msgid ""
20381 "This matters: If you accidentally open a live VM disk image writable then "
20382 "you will cause irreversible disk corruption."
20383 msgstr ""
20384
20385 #. type: textblock
20386 #: ../fish/guestfish.pod:485
20387 msgid ""
20388 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
20389 "images will be opened read-only.  You will have to either specify "
20390 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20391 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20392 "access for disk images specified by those other command line options."
20393 msgstr ""
20394
20395 #. type: textblock
20396 #: ../fish/guestfish.pod:492
20397 msgid ""
20398 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20399 "which does nothing (it is already the default).  However it is highly "
20400 "recommended that you use this option to indicate that you need write access, "
20401 "and prepare your scripts for the day when this option will be required for "
20402 "write access."
20403 msgstr ""
20404
20405 #. type: textblock
20406 #: ../fish/guestfish.pod:498
20407 msgid ""
20408 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20409 "other libguestfs program apart from guestfish and guestmount."
20410 msgstr ""
20411
20412 #. type: =head1
20413 #: ../fish/guestfish.pod:501
20414 msgid "QUOTING"
20415 msgstr ""
20416
20417 #. type: textblock
20418 #: ../fish/guestfish.pod:503
20419 msgid ""
20420 "You can quote ordinary parameters using either single or double quotes.  For "
20421 "example:"
20422 msgstr ""
20423
20424 #. type: verbatim
20425 #: ../fish/guestfish.pod:506
20426 #, no-wrap
20427 msgid ""
20428 " add \"file with a space.img\"\n"
20429 "\n"
20430 msgstr ""
20431
20432 #. type: verbatim
20433 #: ../fish/guestfish.pod:508
20434 #, no-wrap
20435 msgid ""
20436 " rm '/file name'\n"
20437 "\n"
20438 msgstr ""
20439
20440 #. type: verbatim
20441 #: ../fish/guestfish.pod:510
20442 #, no-wrap
20443 msgid ""
20444 " rm '/\"'\n"
20445 "\n"
20446 msgstr ""
20447
20448 #. type: textblock
20449 #: ../fish/guestfish.pod:512
20450 msgid ""
20451 "A few commands require a list of strings to be passed.  For these, use a "
20452 "whitespace-separated list, enclosed in quotes.  Strings containing "
20453 "whitespace to be passed through must be enclosed in single quotes.  A "
20454 "literal single quote must be escaped with a backslash."
20455 msgstr ""
20456
20457 #. type: verbatim
20458 #: ../fish/guestfish.pod:517
20459 #, no-wrap
20460 msgid ""
20461 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20462 " command \"/bin/echo 'foo      bar'\"\n"
20463 " command \"/bin/echo \\'foo\\'\"\n"
20464 "\n"
20465 msgstr ""
20466
20467 #. type: =head1
20468 #: ../fish/guestfish.pod:521
20469 msgid "OPTIONAL ARGUMENTS"
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../fish/guestfish.pod:523
20474 msgid ""
20475 "Some commands take optional arguments.  These arguments appear in this "
20476 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20477 msgstr ""
20478
20479 #. type: verbatim
20480 #: ../fish/guestfish.pod:527
20481 #, no-wrap
20482 msgid ""
20483 " add-drive-opts filename\n"
20484 "\n"
20485 msgstr ""
20486
20487 #. type: verbatim
20488 #: ../fish/guestfish.pod:529
20489 #, no-wrap
20490 msgid ""
20491 " add-drive-opts filename readonly:true\n"
20492 "\n"
20493 msgstr ""
20494
20495 #. type: verbatim
20496 #: ../fish/guestfish.pod:531
20497 #, no-wrap
20498 msgid ""
20499 " add-drive-opts filename format:qcow2 readonly:false\n"
20500 "\n"
20501 msgstr ""
20502
20503 #. type: textblock
20504 #: ../fish/guestfish.pod:533
20505 msgid ""
20506 "Each optional argument can appear at most once.  All optional arguments must "
20507 "appear after the required ones."
20508 msgstr ""
20509
20510 #. type: =head1
20511 #: ../fish/guestfish.pod:536
20512 msgid "NUMBERS"
20513 msgstr ""
20514
20515 #. type: textblock
20516 #: ../fish/guestfish.pod:538
20517 msgid ""
20518 "This section applies to all commands which can take integers as parameters."
20519 msgstr ""
20520
20521 #. type: =head2
20522 #: ../fish/guestfish.pod:541
20523 msgid "SIZE SUFFIX"
20524 msgstr ""
20525
20526 #. type: textblock
20527 #: ../fish/guestfish.pod:543
20528 msgid ""
20529 "When the command takes a parameter measured in bytes, you can use one of the "
20530 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20531 msgstr ""
20532
20533 #. type: =item
20534 #: ../fish/guestfish.pod:549
20535 msgid "B<k> or B<K> or B<KiB>"
20536 msgstr ""
20537
20538 #. type: textblock
20539 #: ../fish/guestfish.pod:551
20540 msgid "The size in kilobytes (multiplied by 1024)."
20541 msgstr ""
20542
20543 #. type: =item
20544 #: ../fish/guestfish.pod:553
20545 msgid "B<KB>"
20546 msgstr ""
20547
20548 #. type: textblock
20549 #: ../fish/guestfish.pod:555
20550 msgid "The size in SI 1000 byte units."
20551 msgstr ""
20552
20553 #. type: =item
20554 #: ../fish/guestfish.pod:557
20555 msgid "B<M> or B<MiB>"
20556 msgstr ""
20557
20558 #. type: textblock
20559 #: ../fish/guestfish.pod:559
20560 msgid "The size in megabytes (multiplied by 1048576)."
20561 msgstr ""
20562
20563 #. type: =item
20564 #: ../fish/guestfish.pod:561
20565 msgid "B<MB>"
20566 msgstr ""
20567
20568 #. type: textblock
20569 #: ../fish/guestfish.pod:563
20570 msgid "The size in SI 1000000 byte units."
20571 msgstr ""
20572
20573 #. type: =item
20574 #: ../fish/guestfish.pod:565
20575 msgid "B<G> or B<GiB>"
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../fish/guestfish.pod:567
20580 msgid "The size in gigabytes (multiplied by 2**30)."
20581 msgstr ""
20582
20583 #. type: =item
20584 #: ../fish/guestfish.pod:569
20585 msgid "B<GB>"
20586 msgstr ""
20587
20588 #. type: textblock
20589 #: ../fish/guestfish.pod:571
20590 msgid "The size in SI 10**9 byte units."
20591 msgstr ""
20592
20593 #. type: =item
20594 #: ../fish/guestfish.pod:573
20595 msgid "B<T> or B<TiB>"
20596 msgstr ""
20597
20598 #. type: textblock
20599 #: ../fish/guestfish.pod:575
20600 msgid "The size in terabytes (multiplied by 2**40)."
20601 msgstr ""
20602
20603 #. type: =item
20604 #: ../fish/guestfish.pod:577
20605 msgid "B<TB>"
20606 msgstr ""
20607
20608 #. type: textblock
20609 #: ../fish/guestfish.pod:579
20610 msgid "The size in SI 10**12 byte units."
20611 msgstr ""
20612
20613 #. type: =item
20614 #: ../fish/guestfish.pod:581
20615 msgid "B<P> or B<PiB>"
20616 msgstr ""
20617
20618 #. type: textblock
20619 #: ../fish/guestfish.pod:583
20620 msgid "The size in petabytes (multiplied by 2**50)."
20621 msgstr ""
20622
20623 #. type: =item
20624 #: ../fish/guestfish.pod:585
20625 msgid "B<PB>"
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../fish/guestfish.pod:587
20630 msgid "The size in SI 10**15 byte units."
20631 msgstr ""
20632
20633 #. type: =item
20634 #: ../fish/guestfish.pod:589
20635 msgid "B<E> or B<EiB>"
20636 msgstr ""
20637
20638 #. type: textblock
20639 #: ../fish/guestfish.pod:591
20640 msgid "The size in exabytes (multiplied by 2**60)."
20641 msgstr ""
20642
20643 #. type: =item
20644 #: ../fish/guestfish.pod:593
20645 msgid "B<EB>"
20646 msgstr ""
20647
20648 #. type: textblock
20649 #: ../fish/guestfish.pod:595
20650 msgid "The size in SI 10**18 byte units."
20651 msgstr ""
20652
20653 #. type: =item
20654 #: ../fish/guestfish.pod:597
20655 msgid "B<Z> or B<ZiB>"
20656 msgstr ""
20657
20658 #. type: textblock
20659 #: ../fish/guestfish.pod:599
20660 msgid "The size in zettabytes (multiplied by 2**70)."
20661 msgstr ""
20662
20663 #. type: =item
20664 #: ../fish/guestfish.pod:601
20665 msgid "B<ZB>"
20666 msgstr ""
20667
20668 #. type: textblock
20669 #: ../fish/guestfish.pod:603
20670 msgid "The size in SI 10**21 byte units."
20671 msgstr ""
20672
20673 #. type: =item
20674 #: ../fish/guestfish.pod:605
20675 msgid "B<Y> or B<YiB>"
20676 msgstr ""
20677
20678 #. type: textblock
20679 #: ../fish/guestfish.pod:607
20680 msgid "The size in yottabytes (multiplied by 2**80)."
20681 msgstr ""
20682
20683 #. type: =item
20684 #: ../fish/guestfish.pod:609
20685 msgid "B<YB>"
20686 msgstr ""
20687
20688 #. type: textblock
20689 #: ../fish/guestfish.pod:611
20690 msgid "The size in SI 10**24 byte units."
20691 msgstr ""
20692
20693 #. type: verbatim
20694 #: ../fish/guestfish.pod:617
20695 #, no-wrap
20696 msgid ""
20697 " truncate-size /file 1G\n"
20698 "\n"
20699 msgstr ""
20700
20701 #. type: textblock
20702 #: ../fish/guestfish.pod:619
20703 msgid "would truncate the file to 1 gigabyte."
20704 msgstr ""
20705
20706 #. type: textblock
20707 #: ../fish/guestfish.pod:621
20708 msgid ""
20709 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20710 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20711 "suffix will probably not do what you expect."
20712 msgstr ""
20713
20714 #. type: =head2
20715 #: ../fish/guestfish.pod:625
20716 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20717 msgstr ""
20718
20719 #. type: textblock
20720 #: ../fish/guestfish.pod:627
20721 msgid ""
20722 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20723 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20724 msgstr ""
20725
20726 #. type: verbatim
20727 #: ../fish/guestfish.pod:630
20728 #, no-wrap
20729 msgid ""
20730 " 1234      decimal number 1234\n"
20731 " 02322     octal number, equivalent to decimal 1234\n"
20732 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20733 "\n"
20734 msgstr ""
20735
20736 #. type: textblock
20737 #: ../fish/guestfish.pod:634
20738 msgid ""
20739 "When using the C<chmod> command, you almost always want to specify an octal "
20740 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20741 "L<chmod(1)> program):"
20742 msgstr ""
20743
20744 #. type: verbatim
20745 #: ../fish/guestfish.pod:638
20746 #, no-wrap
20747 msgid ""
20748 " chmod 0777 /public  # OK\n"
20749 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20750 "\n"
20751 msgstr ""
20752
20753 #. type: textblock
20754 #: ../fish/guestfish.pod:641
20755 msgid ""
20756 "Commands that return numbers usually print them in decimal, but some "
20757 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20758 "octal, preceeded by C<0>)."
20759 msgstr ""
20760
20761 #. type: =head1
20762 #: ../fish/guestfish.pod:645
20763 msgid "WILDCARDS AND GLOBBING"
20764 msgstr ""
20765
20766 #. type: textblock
20767 #: ../fish/guestfish.pod:647
20768 msgid ""
20769 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20770 "(globbing) by default.  So for example the following will not do what you "
20771 "expect:"
20772 msgstr ""
20773
20774 #. type: verbatim
20775 #: ../fish/guestfish.pod:651
20776 #, no-wrap
20777 msgid ""
20778 " rm-rf /home/*\n"
20779 "\n"
20780 msgstr ""
20781
20782 #. type: textblock
20783 #: ../fish/guestfish.pod:653
20784 msgid ""
20785 "Assuming you don't have a directory called literally C</home/*> then the "
20786 "above command will return an error."
20787 msgstr ""
20788
20789 #. type: textblock
20790 #: ../fish/guestfish.pod:656
20791 msgid "To perform wildcard expansion, use the C<glob> command."
20792 msgstr ""
20793
20794 #. type: verbatim
20795 #: ../fish/guestfish.pod:658
20796 #, no-wrap
20797 msgid ""
20798 " glob rm-rf /home/*\n"
20799 "\n"
20800 msgstr ""
20801
20802 #. type: textblock
20803 #: ../fish/guestfish.pod:660
20804 msgid ""
20805 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20806 "many times), equivalent to:"
20807 msgstr ""
20808
20809 #. type: verbatim
20810 #: ../fish/guestfish.pod:663
20811 #, no-wrap
20812 msgid ""
20813 " rm-rf /home/jim\n"
20814 " rm-rf /home/joe\n"
20815 " rm-rf /home/mary\n"
20816 "\n"
20817 msgstr ""
20818
20819 #. type: textblock
20820 #: ../fish/guestfish.pod:667
20821 msgid "C<glob> only works on simple guest paths and not on device names."
20822 msgstr ""
20823
20824 #. type: textblock
20825 #: ../fish/guestfish.pod:669
20826 msgid ""
20827 "If you have several parameters, each containing a wildcard, then glob will "
20828 "perform a Cartesian product."
20829 msgstr ""
20830
20831 #. type: =head1
20832 #: ../fish/guestfish.pod:672
20833 msgid "COMMENTS"
20834 msgstr ""
20835
20836 #. type: textblock
20837 #: ../fish/guestfish.pod:674
20838 msgid ""
20839 "Any line which starts with a I<#> character is treated as a comment and "
20840 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20841 "a command.  For example:"
20842 msgstr ""
20843
20844 #. type: verbatim
20845 #: ../fish/guestfish.pod:678
20846 #, no-wrap
20847 msgid ""
20848 " # this is a comment\n"
20849 "         # this is a comment\n"
20850 " foo # NOT a comment\n"
20851 "\n"
20852 msgstr ""
20853
20854 #. type: textblock
20855 #: ../fish/guestfish.pod:682
20856 msgid "Blank lines are also ignored."
20857 msgstr ""
20858
20859 #. type: =head1
20860 #: ../fish/guestfish.pod:684
20861 msgid "RUNNING COMMANDS LOCALLY"
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../fish/guestfish.pod:686
20866 msgid ""
20867 "Any line which starts with a I<!> character is treated as a command sent to "
20868 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20869 msgstr ""
20870
20871 #. type: verbatim
20872 #: ../fish/guestfish.pod:690
20873 #, no-wrap
20874 msgid ""
20875 " !mkdir local\n"
20876 " tgz-out /remote local/remote-data.tar.gz\n"
20877 "\n"
20878 msgstr ""
20879
20880 #. type: textblock
20881 #: ../fish/guestfish.pod:693
20882 msgid ""
20883 "will create a directory C<local> on the host, and then export the contents "
20884 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20885 "(See C<tgz-out>)."
20886 msgstr ""
20887
20888 #. type: textblock
20889 #: ../fish/guestfish.pod:697
20890 msgid ""
20891 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20892 "effect, due to the way that subprocesses work in Unix."
20893 msgstr ""
20894
20895 #. type: =head2
20896 #: ../fish/guestfish.pod:700
20897 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20898 msgstr ""
20899
20900 #. type: textblock
20901 #: ../fish/guestfish.pod:702
20902 msgid ""
20903 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20904 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20905 "and executed as guestfish commands."
20906 msgstr ""
20907
20908 #. type: textblock
20909 #: ../fish/guestfish.pod:706
20910 msgid ""
20911 "Thus you can use shell script to construct arbitrary guestfish commands "
20912 "which are then parsed by guestfish."
20913 msgstr ""
20914
20915 #. type: textblock
20916 #: ../fish/guestfish.pod:709
20917 msgid ""
20918 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20919 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20920 "if we use a shell script to create the guestfish commands for us:"
20921 msgstr ""
20922
20923 #. type: verbatim
20924 #: ../fish/guestfish.pod:714
20925 #, no-wrap
20926 msgid ""
20927 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20928 "\n"
20929 msgstr ""
20930
20931 #. type: textblock
20932 #: ../fish/guestfish.pod:716
20933 msgid "or with names like C</foo.001>:"
20934 msgstr ""
20935
20936 #. type: verbatim
20937 #: ../fish/guestfish.pod:718
20938 #, no-wrap
20939 msgid ""
20940 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20941 "\n"
20942 msgstr ""
20943
20944 #. type: textblock
20945 #: ../fish/guestfish.pod:720
20946 msgid ""
20947 "When using guestfish interactively it can be helpful to just run the shell "
20948 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20949 "ordinary I<!> local command), see what guestfish commands it would run, and "
20950 "when you are happy with those prepend the C<E<lt>> character to run the "
20951 "guestfish commands for real."
20952 msgstr ""
20953
20954 #. type: =head1
20955 #: ../fish/guestfish.pod:726
20956 msgid "PIPES"
20957 msgstr ""
20958
20959 #. type: textblock
20960 #: ../fish/guestfish.pod:728
20961 msgid ""
20962 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20963 "command (a guestfish command) to the second command (any host command).  For "
20964 "example:"
20965 msgstr ""
20966
20967 #. type: verbatim
20968 #: ../fish/guestfish.pod:732
20969 #, no-wrap
20970 msgid ""
20971 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20972 "\n"
20973 msgstr ""
20974
20975 #. type: textblock
20976 #: ../fish/guestfish.pod:734
20977 msgid ""
20978 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20979 "program).  The above command would list all accounts in the guest filesystem "
20980 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20981 msgstr ""
20982
20983 #. type: verbatim
20984 #: ../fish/guestfish.pod:739
20985 #, no-wrap
20986 msgid ""
20987 " hexdump /bin/ls | head\n"
20988 " list-devices | tail -1\n"
20989 " tgz-out / - | tar ztf -\n"
20990 "\n"
20991 msgstr ""
20992
20993 #. type: textblock
20994 #: ../fish/guestfish.pod:743
20995 msgid ""
20996 "The space before the pipe symbol is required, any space after the pipe "
20997 "symbol is optional.  Everything after the pipe symbol is just passed "
20998 "straight to the host shell, so it can contain redirections, globs and "
20999 "anything else that makes sense on the host side."
21000 msgstr ""
21001
21002 #. type: textblock
21003 #: ../fish/guestfish.pod:748
21004 msgid ""
21005 "To use a literal argument which begins with a pipe symbol, you have to quote "
21006 "it, eg:"
21007 msgstr ""
21008
21009 #. type: verbatim
21010 #: ../fish/guestfish.pod:751
21011 #, no-wrap
21012 msgid ""
21013 " echo \"|\"\n"
21014 "\n"
21015 msgstr ""
21016
21017 #. type: =head1
21018 #: ../fish/guestfish.pod:753
21019 msgid "HOME DIRECTORIES"
21020 msgstr ""
21021
21022 #. type: textblock
21023 #: ../fish/guestfish.pod:755
21024 msgid ""
21025 "If a parameter starts with the character C<~> then the tilde may be expanded "
21026 "as a home directory path (either C<~> for the current user's home directory, "
21027 "or C<~user> for another user)."
21028 msgstr ""
21029
21030 #. type: textblock
21031 #: ../fish/guestfish.pod:759
21032 msgid ""
21033 "Note that home directory expansion happens for users known I<on the host>, "
21034 "not in the guest filesystem."
21035 msgstr ""
21036
21037 #. type: textblock
21038 #: ../fish/guestfish.pod:762
21039 msgid ""
21040 "To use a literal argument which begins with a tilde, you have to quote it, "
21041 "eg:"
21042 msgstr ""
21043
21044 #. type: verbatim
21045 #: ../fish/guestfish.pod:765
21046 #, no-wrap
21047 msgid ""
21048 " echo \"~\"\n"
21049 "\n"
21050 msgstr ""
21051
21052 #. type: textblock
21053 #: ../fish/guestfish.pod:769
21054 msgid ""
21055 "Libguestfs has some support for Linux guests encrypted according to the "
21056 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21057 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21058 "LUKS is supported."
21059 msgstr ""
21060
21061 #. type: textblock
21062 #: ../fish/guestfish.pod:774
21063 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21064 msgstr ""
21065
21066 #. type: verbatim
21067 #: ../fish/guestfish.pod:776
21068 #, no-wrap
21069 msgid ""
21070 " ><fs> vfs-type /dev/sda2\n"
21071 " crypto_LUKS\n"
21072 "\n"
21073 msgstr ""
21074
21075 #. type: textblock
21076 #: ../fish/guestfish.pod:779
21077 msgid ""
21078 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21079 "device called C</dev/mapper/luksdev>."
21080 msgstr ""
21081
21082 #. type: verbatim
21083 #: ../fish/guestfish.pod:782
21084 #, no-wrap
21085 msgid ""
21086 " ><fs> luks-open /dev/sda2 luksdev\n"
21087 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21088 "\n"
21089 msgstr ""
21090
21091 #. type: textblock
21092 #: ../fish/guestfish.pod:785
21093 msgid ""
21094 "Finally you have to tell LVM to scan for volume groups on the newly created "
21095 "mapper device:"
21096 msgstr ""
21097
21098 #. type: verbatim
21099 #: ../fish/guestfish.pod:788
21100 #, no-wrap
21101 msgid ""
21102 " vgscan\n"
21103 " vg-activate-all true\n"
21104 "\n"
21105 msgstr ""
21106
21107 #. type: textblock
21108 #: ../fish/guestfish.pod:791
21109 msgid "The logical volume(s) can now be mounted in the usual way."
21110 msgstr ""
21111
21112 #. type: textblock
21113 #: ../fish/guestfish.pod:793
21114 msgid ""
21115 "Before closing a LUKS device you must unmount any logical volumes on it and "
21116 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21117 "one.  Then you can close the mapper device:"
21118 msgstr ""
21119
21120 #. type: verbatim
21121 #: ../fish/guestfish.pod:797
21122 #, no-wrap
21123 msgid ""
21124 " vg-activate false /dev/VG\n"
21125 " luks-close /dev/mapper/luksdev\n"
21126 "\n"
21127 msgstr ""
21128
21129 #. type: =head1
21130 #: ../fish/guestfish.pod:800
21131 msgid "WINDOWS PATHS"
21132 msgstr ""
21133
21134 #. type: textblock
21135 #: ../fish/guestfish.pod:802
21136 msgid ""
21137 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21138 "letters and paths (with some limitations).  The following commands are "
21139 "equivalent:"
21140 msgstr ""
21141
21142 #. type: verbatim
21143 #: ../fish/guestfish.pod:806
21144 #, no-wrap
21145 msgid ""
21146 " file /WINDOWS/system32/config/system.LOG\n"
21147 "\n"
21148 msgstr ""
21149
21150 #. type: verbatim
21151 #: ../fish/guestfish.pod:808
21152 #, no-wrap
21153 msgid ""
21154 " file win:\\windows\\system32\\config\\system.log\n"
21155 "\n"
21156 msgstr ""
21157
21158 #. type: verbatim
21159 #: ../fish/guestfish.pod:810
21160 #, no-wrap
21161 msgid ""
21162 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21163 "\n"
21164 msgstr ""
21165
21166 #. type: textblock
21167 #: ../fish/guestfish.pod:812
21168 msgid ""
21169 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21170 "where the drive is mounted, prepending that to the path, changing all "
21171 "backslash characters to forward slash, then resolving the result using L</"
21172 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21173 "the parameter might be rewritten like this:"
21174 msgstr ""
21175
21176 #. type: verbatim
21177 #: ../fish/guestfish.pod:818
21178 #, no-wrap
21179 msgid ""
21180 " win:e:\\foo\\bar => /e/FOO/bar\n"
21181 "\n"
21182 msgstr ""
21183
21184 #. type: textblock
21185 #: ../fish/guestfish.pod:820
21186 msgid "This only works in argument positions that expect a path."
21187 msgstr ""
21188
21189 #. type: =head1
21190 #: ../fish/guestfish.pod:822
21191 msgid "UPLOADING AND DOWNLOADING FILES"
21192 msgstr ""
21193
21194 #. type: textblock
21195 #: ../fish/guestfish.pod:824
21196 msgid ""
21197 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21198 "others which upload from or download to a local file, you can use the "
21199 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21200 msgstr ""
21201
21202 #. type: verbatim
21203 #: ../fish/guestfish.pod:828
21204 #, no-wrap
21205 msgid ""
21206 " upload - /foo\n"
21207 "\n"
21208 msgstr ""
21209
21210 #. type: textblock
21211 #: ../fish/guestfish.pod:830
21212 msgid ""
21213 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21214 msgstr ""
21215
21216 #. type: verbatim
21217 #: ../fish/guestfish.pod:833
21218 #, no-wrap
21219 msgid ""
21220 " tar-out /etc - | tar tf -\n"
21221 "\n"
21222 msgstr ""
21223
21224 #. type: textblock
21225 #: ../fish/guestfish.pod:835
21226 msgid ""
21227 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21228 "command (see L</PIPES>)."
21229 msgstr ""
21230
21231 #. type: textblock
21232 #: ../fish/guestfish.pod:838
21233 msgid ""
21234 "When using C<-> to read from stdin, the input is read up to the end of "
21235 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21236 "some arbitrary end marker:"
21237 msgstr ""
21238
21239 #. type: verbatim
21240 #: ../fish/guestfish.pod:842
21241 #, no-wrap
21242 msgid ""
21243 " upload -<<END /foo\n"
21244 " input line 1\n"
21245 " input line 2\n"
21246 " input line 3\n"
21247 " END\n"
21248 "\n"
21249 msgstr ""
21250
21251 #. type: textblock
21252 #: ../fish/guestfish.pod:848
21253 msgid ""
21254 "Any string of characters can be used instead of C<END>.  The end marker must "
21255 "appear on a line of its own, without any preceeding or following characters "
21256 "(not even spaces)."
21257 msgstr ""
21258
21259 #. type: textblock
21260 #: ../fish/guestfish.pod:852
21261 msgid ""
21262 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21263 "upload local files (so-called \"FileIn\" parameters in the generator)."
21264 msgstr ""
21265
21266 #. type: =head1
21267 #: ../fish/guestfish.pod:855
21268 msgid "EXIT ON ERROR BEHAVIOUR"
21269 msgstr ""
21270
21271 #. type: textblock
21272 #: ../fish/guestfish.pod:857
21273 msgid ""
21274 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21275 "taking commands from a human over a tty), and will exit on the first error "
21276 "in non-interactive mode (scripts, commands given on the command line)."
21277 msgstr ""
21278
21279 #. type: textblock
21280 #: ../fish/guestfish.pod:862
21281 msgid ""
21282 "If you prefix a command with a I<-> character, then that command will not "
21283 "cause guestfish to exit, even if that (one) command returns an error."
21284 msgstr ""
21285
21286 #. type: =head1
21287 #: ../fish/guestfish.pod:866
21288 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21289 msgstr ""
21290
21291 #. type: textblock
21292 #: ../fish/guestfish.pod:868
21293 msgid ""
21294 "Guestfish can be remote-controlled over a socket.  This is useful "
21295 "particularly in shell scripts where you want to make several different "
21296 "changes to a filesystem, but you don't want the overhead of starting up a "
21297 "guestfish process each time."
21298 msgstr ""
21299
21300 #. type: textblock
21301 #: ../fish/guestfish.pod:873
21302 msgid "Start a guestfish server process using:"
21303 msgstr ""
21304
21305 #. type: verbatim
21306 #: ../fish/guestfish.pod:875
21307 #, no-wrap
21308 msgid ""
21309 " eval \"`guestfish --listen`\"\n"
21310 "\n"
21311 msgstr ""
21312
21313 #. type: textblock
21314 #: ../fish/guestfish.pod:877
21315 msgid "and then send it commands by doing:"
21316 msgstr ""
21317
21318 #. type: verbatim
21319 #: ../fish/guestfish.pod:879
21320 #, no-wrap
21321 msgid ""
21322 " guestfish --remote cmd [...]\n"
21323 "\n"
21324 msgstr ""
21325
21326 #. type: textblock
21327 #: ../fish/guestfish.pod:881
21328 msgid "To cause the server to exit, send it the exit command:"
21329 msgstr ""
21330
21331 #. type: verbatim
21332 #: ../fish/guestfish.pod:883
21333 #, no-wrap
21334 msgid ""
21335 " guestfish --remote exit\n"
21336 "\n"
21337 msgstr ""
21338
21339 #. type: textblock
21340 #: ../fish/guestfish.pod:885
21341 msgid ""
21342 "Note that the server will normally exit if there is an error in a command.  "
21343 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21344 "BEHAVIOUR>."
21345 msgstr ""
21346
21347 #. type: =head2
21348 #: ../fish/guestfish.pod:889
21349 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21350 msgstr ""
21351
21352 #. type: textblock
21353 #: ../fish/guestfish.pod:891
21354 msgid ""
21355 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21356 "is how the I<--remote> option knows where to send the commands.  You can "
21357 "have several guestfish listener processes running using:"
21358 msgstr ""
21359
21360 #. type: verbatim
21361 #: ../fish/guestfish.pod:895
21362 #, no-wrap
21363 msgid ""
21364 " eval \"`guestfish --listen`\"\n"
21365 " pid1=$GUESTFISH_PID\n"
21366 " eval \"`guestfish --listen`\"\n"
21367 " pid2=$GUESTFISH_PID\n"
21368 " ...\n"
21369 " guestfish --remote=$pid1 cmd\n"
21370 " guestfish --remote=$pid2 cmd\n"
21371 "\n"
21372 msgstr ""
21373
21374 #. type: =head2
21375 #: ../fish/guestfish.pod:903
21376 msgid "REMOTE CONTROL AND CSH"
21377 msgstr ""
21378
21379 #. type: textblock
21380 #: ../fish/guestfish.pod:905
21381 msgid ""
21382 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21383 "option:"
21384 msgstr ""
21385
21386 #. type: verbatim
21387 #: ../fish/guestfish.pod:908
21388 #, no-wrap
21389 msgid ""
21390 " eval \"`guestfish --listen --csh`\"\n"
21391 "\n"
21392 msgstr ""
21393
21394 #. type: =head2
21395 #: ../fish/guestfish.pod:910
21396 msgid "REMOTE CONTROL DETAILS"
21397 msgstr ""
21398
21399 #. type: textblock
21400 #: ../fish/guestfish.pod:912
21401 msgid ""
21402 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21403 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21404 "and C<$PID> is the process ID of the server."
21405 msgstr ""
21406
21407 #. type: textblock
21408 #: ../fish/guestfish.pod:916
21409 msgid "Guestfish client and server versions must match exactly."
21410 msgstr ""
21411
21412 #. type: =head1
21413 #: ../fish/guestfish.pod:918
21414 msgid "PREPARED DISK IMAGES"
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../fish/guestfish.pod:920
21419 msgid ""
21420 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21421 "preformatted disk images that guestfish can make for you to save typing.  "
21422 "This is particularly useful for testing purposes.  This option is used "
21423 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21424 "can be mixed with I<-a>)."
21425 msgstr ""
21426
21427 #. type: textblock
21428 #: ../fish/guestfish.pod:926
21429 msgid ""
21430 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21431 "the second and so on.  Existing files in the current directory are "
21432 "I<overwritten>."
21433 msgstr ""
21434
21435 #. type: textblock
21436 #: ../fish/guestfish.pod:930
21437 msgid ""
21438 "The type briefly describes how the disk should be sized, partitioned, how "
21439 "filesystem(s) should be created, and how content should be added.  "
21440 "Optionally the type can be followed by extra parameters, separated by C<:> "
21441 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21442 "allocated disk, containing a single partition, with the partition formatted "
21443 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21444 "disk instead."
21445 msgstr ""
21446
21447 #. type: textblock
21448 #: ../fish/guestfish.pod:938
21449 msgid "To list the available types and any extra parameters they take, run:"
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../fish/guestfish.pod:942
21454 msgid ""
21455 "Note that the prepared filesystem is not mounted.  You would usually have to "
21456 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21457 msgstr ""
21458
21459 #. type: textblock
21460 #: ../fish/guestfish.pod:946
21461 msgid ""
21462 "If any I<-N> or I<--new> options are given, the guest is automatically "
21463 "launched."
21464 msgstr ""
21465
21466 #. type: textblock
21467 #: ../fish/guestfish.pod:951
21468 msgid "Create a 100MB disk with an ext4-formatted partition:"
21469 msgstr ""
21470
21471 #. type: verbatim
21472 #: ../fish/guestfish.pod:953
21473 #, no-wrap
21474 msgid ""
21475 " guestfish -N fs:ext4\n"
21476 "\n"
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../fish/guestfish.pod:955
21481 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21482 msgstr ""
21483
21484 #. type: verbatim
21485 #: ../fish/guestfish.pod:957
21486 #, no-wrap
21487 msgid ""
21488 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21489 "\n"
21490 msgstr ""
21491
21492 #. type: textblock
21493 #: ../fish/guestfish.pod:959
21494 msgid "Create a blank 200MB disk:"
21495 msgstr ""
21496
21497 #. type: verbatim
21498 #: ../fish/guestfish.pod:961
21499 #, no-wrap
21500 msgid ""
21501 " guestfish -N disk:200M\n"
21502 "\n"
21503 msgstr ""
21504
21505 #. type: =head1
21506 #: ../fish/guestfish.pod:963
21507 msgid "PROGRESS BARS"
21508 msgstr ""
21509
21510 #. type: textblock
21511 #: ../fish/guestfish.pod:965
21512 msgid ""
21513 "Some (not all) long-running commands send progress notification messages as "
21514 "they are running.  Guestfish turns these messages into progress bars."
21515 msgstr ""
21516
21517 #. type: textblock
21518 #: ../fish/guestfish.pod:969
21519 msgid ""
21520 "When a command that supports progress bars takes longer than two seconds to "
21521 "run, and if progress bars are enabled, then you will see one appearing below "
21522 "the command:"
21523 msgstr ""
21524
21525 #. type: verbatim
21526 #: ../fish/guestfish.pod:973
21527 #, no-wrap
21528 msgid ""
21529 " ><fs> copy-size /large-file /another-file 2048M\n"
21530 " / 10% [#####-----------------------------------------] 00:30\n"
21531 "\n"
21532 msgstr ""
21533
21534 #. type: textblock
21535 #: ../fish/guestfish.pod:976
21536 msgid ""
21537 "The spinner on the left hand side moves round once for every progress "
21538 "notification received from the backend.  This is a (reasonably) golden "
21539 "assurance that the command is \"doing something\" even if the progress bar "
21540 "is not moving, because the command is able to send the progress "
21541 "notifications.  When the bar reaches 100% and the command finishes, the "
21542 "spinner disappears."
21543 msgstr ""
21544
21545 #. type: textblock
21546 #: ../fish/guestfish.pod:983
21547 msgid ""
21548 "Progress bars are enabled by default when guestfish is used interactively.  "
21549 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21550 "and you can disable them completely using I<--no-progress-bars>."
21551 msgstr ""
21552
21553 #. type: =head1
21554 #: ../fish/guestfish.pod:988
21555 msgid "GUESTFISH COMMANDS"
21556 msgstr ""
21557
21558 #. type: textblock
21559 #: ../fish/guestfish.pod:990
21560 msgid ""
21561 "The commands in this section are guestfish convenience commands, in other "
21562 "words, they are not part of the L<guestfs(3)> API."
21563 msgstr ""
21564
21565 #. type: =head2
21566 #: ../fish/guestfish.pod:993
21567 msgid "help"
21568 msgstr ""
21569
21570 #. type: verbatim
21571 #: ../fish/guestfish.pod:995
21572 #, no-wrap
21573 msgid ""
21574 " help\n"
21575 " help cmd\n"
21576 "\n"
21577 msgstr ""
21578
21579 #. type: textblock
21580 #: ../fish/guestfish.pod:998
21581 msgid "Without any parameter, this provides general help."
21582 msgstr ""
21583
21584 #. type: textblock
21585 #: ../fish/guestfish.pod:1000
21586 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21587 msgstr ""
21588
21589 #. type: =head2
21590 #: ../fish/guestfish.pod:1002
21591 msgid "quit | exit"
21592 msgstr ""
21593
21594 #. type: textblock
21595 #: ../fish/guestfish.pod:1004
21596 msgid "This exits guestfish.  You can also use C<^D> key."
21597 msgstr ""
21598
21599 #. type: textblock
21600 #: ../fish/guestfish.pod:1006
21601 msgid "@FISH_COMMANDS@"
21602 msgstr ""
21603
21604 #. type: =head1
21605 #: ../fish/guestfish.pod:1008
21606 msgid "COMMANDS"
21607 msgstr ""
21608
21609 #. type: =head1
21610 #: ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:77
21611 msgid "EXIT CODE"
21612 msgstr ""
21613
21614 #. type: textblock
21615 #: ../fish/guestfish.pod:1014
21616 msgid ""
21617 "guestfish returns 0 if the commands completed without error, or 1 if there "
21618 "was an error."
21619 msgstr ""
21620
21621 #. type: =item
21622 #: ../fish/guestfish.pod:1021
21623 msgid "EDITOR"
21624 msgstr ""
21625
21626 #. type: textblock
21627 #: ../fish/guestfish.pod:1023
21628 msgid ""
21629 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21630 "C<vi>."
21631 msgstr ""
21632
21633 #. type: =item
21634 #: ../fish/guestfish.pod:1026
21635 msgid "GUESTFISH_PID"
21636 msgstr ""
21637
21638 #. type: textblock
21639 #: ../fish/guestfish.pod:1028
21640 msgid ""
21641 "Used with the I<--remote> option to specify the remote guestfish process to "
21642 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21643 msgstr ""
21644
21645 #. type: =item
21646 #: ../fish/guestfish.pod:1032
21647 msgid "HEXEDITOR"
21648 msgstr ""
21649
21650 #. type: textblock
21651 #: ../fish/guestfish.pod:1034
21652 msgid ""
21653 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21654 "not specified, the external L<hexedit(1)> program is used."
21655 msgstr ""
21656
21657 #. type: =item
21658 #: ../fish/guestfish.pod:1038
21659 msgid "HOME"
21660 msgstr ""
21661
21662 #. type: textblock
21663 #: ../fish/guestfish.pod:1040
21664 msgid ""
21665 "If compiled with GNU readline support, various files in the home directory "
21666 "can be used.  See L</FILES>."
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../fish/guestfish.pod:1049
21671 msgid ""
21672 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21673 "effect as using the B<-v> option."
21674 msgstr ""
21675
21676 #. type: textblock
21677 #: ../fish/guestfish.pod:1061
21678 msgid ""
21679 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21680 "the discussion of paths in L<guestfs(3)>."
21681 msgstr ""
21682
21683 #. type: textblock
21684 #: ../fish/guestfish.pod:1072
21685 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21686 msgstr ""
21687
21688 #. type: =item
21689 #: ../fish/guestfish.pod:1074
21690 msgid "PAGER"
21691 msgstr ""
21692
21693 #. type: textblock
21694 #: ../fish/guestfish.pod:1076
21695 msgid ""
21696 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21697 "C<more>."
21698 msgstr ""
21699
21700 #. type: =head1
21701 #: ../fish/guestfish.pod:1092 ../fuse/guestmount.pod:254
21702 msgid "FILES"
21703 msgstr ""
21704
21705 #. type: =item
21706 #: ../fish/guestfish.pod:1096 ../fuse/guestmount.pod:258
21707 msgid "$HOME/.libguestfs-tools.rc"
21708 msgstr ""
21709
21710 #. type: =item
21711 #: ../fish/guestfish.pod:1098 ../fuse/guestmount.pod:260
21712 msgid "/etc/libguestfs-tools.conf"
21713 msgstr ""
21714
21715 #. type: textblock
21716 #: ../fish/guestfish.pod:1100 ../fuse/guestmount.pod:262
21717 msgid ""
21718 "This configuration file controls the default read-only or read-write mode "
21719 "(I<--ro> or I<--rw>)."
21720 msgstr ""
21721
21722 #. type: textblock
21723 #: ../fish/guestfish.pod:1103
21724 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21725 msgstr ""
21726
21727 #. type: =item
21728 #: ../fish/guestfish.pod:1105
21729 msgid "$HOME/.guestfish"
21730 msgstr ""
21731
21732 #. type: textblock
21733 #: ../fish/guestfish.pod:1107
21734 msgid ""
21735 "If compiled with GNU readline support, then the command history is saved in "
21736 "this file."
21737 msgstr ""
21738
21739 #. type: =item
21740 #: ../fish/guestfish.pod:1110
21741 msgid "$HOME/.inputrc"
21742 msgstr ""
21743
21744 #. type: =item
21745 #: ../fish/guestfish.pod:1112
21746 msgid "/etc/inputrc"
21747 msgstr ""
21748
21749 #. type: textblock
21750 #: ../fish/guestfish.pod:1114
21751 msgid ""
21752 "If compiled with GNU readline support, then these files can be used to "
21753 "configure readline.  For further information, please see L<readline(3)/"
21754 "INITIALIZATION FILE>."
21755 msgstr ""
21756
21757 #. type: textblock
21758 #: ../fish/guestfish.pod:1118
21759 msgid "To write rules which only apply to guestfish, use:"
21760 msgstr ""
21761
21762 #. type: verbatim
21763 #: ../fish/guestfish.pod:1120
21764 #, no-wrap
21765 msgid ""
21766 " $if guestfish\n"
21767 " ...\n"
21768 " $endif\n"
21769 "\n"
21770 msgstr ""
21771
21772 #. type: textblock
21773 #: ../fish/guestfish.pod:1124
21774 msgid ""
21775 "Variables that you can set in inputrc that change the behaviour of guestfish "
21776 "in useful ways include:"
21777 msgstr ""
21778
21779 #. type: =item
21780 #: ../fish/guestfish.pod:1129
21781 msgid "completion-ignore-case (default: on)"
21782 msgstr ""
21783
21784 #. type: textblock
21785 #: ../fish/guestfish.pod:1131
21786 msgid ""
21787 "By default, guestfish will ignore case when tab-completing paths on the "
21788 "disk.  Use:"
21789 msgstr ""
21790
21791 #. type: verbatim
21792 #: ../fish/guestfish.pod:1134
21793 #, no-wrap
21794 msgid ""
21795 " set completion-ignore-case off\n"
21796 "\n"
21797 msgstr ""
21798
21799 #. type: textblock
21800 #: ../fish/guestfish.pod:1136
21801 msgid "to make guestfish case sensitive."
21802 msgstr ""
21803
21804 #. type: =item
21805 #: ../fish/guestfish.pod:1140
21806 msgid "test1.img"
21807 msgstr ""
21808
21809 #. type: =item
21810 #: ../fish/guestfish.pod:1142
21811 msgid "test2.img (etc)"
21812 msgstr ""
21813
21814 #. type: textblock
21815 #: ../fish/guestfish.pod:1144
21816 msgid ""
21817 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21818 "will be created in the file C<test1.img> in the current directory.  The "
21819 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21820 "the same name will be overwritten."
21821 msgstr ""
21822
21823 #. type: textblock
21824 #: ../fish/guestfish.pod:1153
21825 msgid ""
21826 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
21827 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
21828 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
21829 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
21830 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
21831 ">, L<hexedit(1)>."
21832 msgstr ""
21833
21834 #. type: textblock
21835 #: ../fish/guestfish.pod:1183 ../test-tool/libguestfs-test-tool.pod:102
21836 #: ../fuse/guestmount.pod:289 ../tools/virt-win-reg.pl:777
21837 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
21838 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
21839 msgid ""
21840 "This program is free software; you can redistribute it and/or modify it "
21841 "under the terms of the GNU General Public License as published by the Free "
21842 "Software Foundation; either version 2 of the License, or (at your option) "
21843 "any later version."
21844 msgstr ""
21845
21846 #. type: textblock
21847 #: ../fish/guestfish.pod:1188 ../test-tool/libguestfs-test-tool.pod:107
21848 #: ../fuse/guestmount.pod:294 ../tools/virt-win-reg.pl:782
21849 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
21850 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
21851 msgid ""
21852 "This program is distributed in the hope that it will be useful, but WITHOUT "
21853 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
21854 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
21855 "more details."
21856 msgstr ""
21857
21858 #. type: textblock
21859 #: ../fish/guestfish.pod:1193 ../test-tool/libguestfs-test-tool.pod:112
21860 #: ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:787
21861 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
21862 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
21863 msgid ""
21864 "You should have received a copy of the GNU General Public License along with "
21865 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
21866 "Ave, Cambridge, MA 02139, USA."
21867 msgstr ""
21868
21869 #. type: =head2
21870 #: ../fish/guestfish-actions.pod:1
21871 msgid "add-cdrom"
21872 msgstr ""
21873
21874 #. type: verbatim
21875 #: ../fish/guestfish-actions.pod:3
21876 #, no-wrap
21877 msgid ""
21878 " add-cdrom filename\n"
21879 "\n"
21880 msgstr ""
21881
21882 #. type: textblock
21883 #: ../fish/guestfish-actions.pod:15
21884 msgid ""
21885 "This call checks for the existence of C<filename>.  This stops you from "
21886 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21887 "and C<http:> URLs.  To specify those, use the general L</config> call "
21888 "instead."
21889 msgstr ""
21890
21891 #. type: textblock
21892 #: ../fish/guestfish-actions.pod:22
21893 msgid ""
21894 "If you just want to add an ISO file (often you use this as an efficient way "
21895 "to transfer large files into the guest), then you should probably use L</add-"
21896 "drive-ro> instead."
21897 msgstr ""
21898
21899 #. type: =head2
21900 #: ../fish/guestfish-actions.pod:35
21901 msgid "add-domain"
21902 msgstr ""
21903
21904 #. type: =head2
21905 #: ../fish/guestfish-actions.pod:37
21906 msgid "domain"
21907 msgstr ""
21908
21909 #. type: verbatim
21910 #: ../fish/guestfish-actions.pod:39
21911 #, no-wrap
21912 msgid ""
21913 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
21914 "\n"
21915 msgstr ""
21916
21917 #. type: textblock
21918 #: ../fish/guestfish-actions.pod:41
21919 msgid ""
21920 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21921 "It works by connecting to libvirt, requesting the domain and domain XML from "
21922 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
21923 msgstr ""
21924
21925 #. type: textblock
21926 #: ../fish/guestfish-actions.pod:76
21927 msgid ""
21928 "The other optional parameters are passed directly through to L</add-drive-"
21929 "opts>."
21930 msgstr ""
21931
21932 #. type: textblock
21933 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
21934 #: ../fish/guestfish-actions.pod:3052
21935 msgid ""
21936 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
21937 msgstr ""
21938
21939 #. type: =head2
21940 #: ../fish/guestfish-actions.pod:81
21941 msgid "add-drive"
21942 msgstr ""
21943
21944 #. type: verbatim
21945 #: ../fish/guestfish-actions.pod:83
21946 #, no-wrap
21947 msgid ""
21948 " add-drive filename\n"
21949 "\n"
21950 msgstr ""
21951
21952 #. type: textblock
21953 #: ../fish/guestfish-actions.pod:85
21954 msgid ""
21955 "This function is the equivalent of calling L</add-drive-opts> with no "
21956 "optional parameters, so the disk is added writable, with the format being "
21957 "detected automatically."
21958 msgstr ""
21959
21960 #. type: textblock
21961 #: ../fish/guestfish-actions.pod:89
21962 msgid ""
21963 "Automatic detection of the format opens you up to a potential security hole "
21964 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21965 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21966 "you should think about replacing calls to this function with calls to L</add-"
21967 "drive-opts>, and specifying the format."
21968 msgstr ""
21969
21970 #. type: =head2
21971 #: ../fish/guestfish-actions.pod:96
21972 msgid "add-drive-opts"
21973 msgstr ""
21974
21975 #. type: =head2
21976 #: ../fish/guestfish-actions.pod:98
21977 msgid "add"
21978 msgstr ""
21979
21980 #. type: verbatim
21981 #: ../fish/guestfish-actions.pod:100
21982 #, no-wrap
21983 msgid ""
21984 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
21985 "\n"
21986 msgstr ""
21987
21988 #. type: textblock
21989 #: ../fish/guestfish-actions.pod:127
21990 msgid ""
21991 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
21992 "add-drive-ro>) then the format is automatically detected.  Possible formats "
21993 "include C<raw> and C<qcow2>."
21994 msgstr ""
21995
21996 #. type: textblock
21997 #: ../fish/guestfish-actions.pod:138
21998 msgid ""
21999 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
22000 "add-drive-with-if> call (q.v.)"
22001 msgstr ""
22002
22003 #. type: =head2
22004 #: ../fish/guestfish-actions.pod:145
22005 msgid "add-drive-ro"
22006 msgstr ""
22007
22008 #. type: =head2
22009 #: ../fish/guestfish-actions.pod:147
22010 msgid "add-ro"
22011 msgstr ""
22012
22013 #. type: verbatim
22014 #: ../fish/guestfish-actions.pod:149
22015 #, no-wrap
22016 msgid ""
22017 " add-drive-ro filename\n"
22018 "\n"
22019 msgstr ""
22020
22021 #. type: textblock
22022 #: ../fish/guestfish-actions.pod:151
22023 msgid ""
22024 "This function is the equivalent of calling L</add-drive-opts> with the "
22025 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
22026 "is added read-only, with the format being detected automatically."
22027 msgstr ""
22028
22029 #. type: =head2
22030 #: ../fish/guestfish-actions.pod:156
22031 msgid "add-drive-ro-with-if"
22032 msgstr ""
22033
22034 #. type: verbatim
22035 #: ../fish/guestfish-actions.pod:158
22036 #, no-wrap
22037 msgid ""
22038 " add-drive-ro-with-if filename iface\n"
22039 "\n"
22040 msgstr ""
22041
22042 #. type: textblock
22043 #: ../fish/guestfish-actions.pod:160
22044 msgid ""
22045 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
22046 "interface emulation to use at run time."
22047 msgstr ""
22048
22049 #. type: =head2
22050 #: ../fish/guestfish-actions.pod:170
22051 msgid "add-drive-with-if"
22052 msgstr ""
22053
22054 #. type: verbatim
22055 #: ../fish/guestfish-actions.pod:172
22056 #, no-wrap
22057 msgid ""
22058 " add-drive-with-if filename iface\n"
22059 "\n"
22060 msgstr ""
22061
22062 #. type: textblock
22063 #: ../fish/guestfish-actions.pod:174
22064 msgid ""
22065 "This is the same as L</add-drive> but it allows you to specify the QEMU "
22066 "interface emulation to use at run time."
22067 msgstr ""
22068
22069 #. type: =head2
22070 #: ../fish/guestfish-actions.pod:184
22071 msgid "aug-clear"
22072 msgstr ""
22073
22074 #. type: verbatim
22075 #: ../fish/guestfish-actions.pod:186
22076 #, no-wrap
22077 msgid ""
22078 " aug-clear augpath\n"
22079 "\n"
22080 msgstr ""
22081
22082 #. type: =head2
22083 #: ../fish/guestfish-actions.pod:191
22084 msgid "aug-close"
22085 msgstr ""
22086
22087 #. type: verbatim
22088 #: ../fish/guestfish-actions.pod:193
22089 #, no-wrap
22090 msgid ""
22091 " aug-close\n"
22092 "\n"
22093 msgstr ""
22094
22095 #. type: textblock
22096 #: ../fish/guestfish-actions.pod:195
22097 msgid ""
22098 "Close the current Augeas handle and free up any resources used by it.  After "
22099 "calling this, you have to call L</aug-init> again before you can use any "
22100 "other Augeas functions."
22101 msgstr ""
22102
22103 #. type: =head2
22104 #: ../fish/guestfish-actions.pod:200
22105 msgid "aug-defnode"
22106 msgstr ""
22107
22108 #. type: verbatim
22109 #: ../fish/guestfish-actions.pod:202
22110 #, no-wrap
22111 msgid ""
22112 " aug-defnode name expr val\n"
22113 "\n"
22114 msgstr ""
22115
22116 #. type: textblock
22117 #: ../fish/guestfish-actions.pod:207
22118 msgid ""
22119 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22120 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
22121 "containing that single node."
22122 msgstr ""
22123
22124 #. type: =head2
22125 #: ../fish/guestfish-actions.pod:215
22126 msgid "aug-defvar"
22127 msgstr ""
22128
22129 #. type: verbatim
22130 #: ../fish/guestfish-actions.pod:217
22131 #, no-wrap
22132 msgid ""
22133 " aug-defvar name expr\n"
22134 "\n"
22135 msgstr ""
22136
22137 #. type: =head2
22138 #: ../fish/guestfish-actions.pod:226
22139 msgid "aug-get"
22140 msgstr ""
22141
22142 #. type: verbatim
22143 #: ../fish/guestfish-actions.pod:228
22144 #, no-wrap
22145 msgid ""
22146 " aug-get augpath\n"
22147 "\n"
22148 msgstr ""
22149
22150 #. type: =head2
22151 #: ../fish/guestfish-actions.pod:233
22152 msgid "aug-init"
22153 msgstr ""
22154
22155 #. type: verbatim
22156 #: ../fish/guestfish-actions.pod:235
22157 #, no-wrap
22158 msgid ""
22159 " aug-init root flags\n"
22160 "\n"
22161 msgstr ""
22162
22163 #. type: textblock
22164 #: ../fish/guestfish-actions.pod:241
22165 msgid "You must call this before using any other L</aug-*> commands."
22166 msgstr ""
22167
22168 #. type: textblock
22169 #: ../fish/guestfish-actions.pod:276
22170 msgid "Do not load the tree in L</aug-init>."
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../fish/guestfish-actions.pod:280
22175 msgid "To close the handle, you can call L</aug-close>."
22176 msgstr ""
22177
22178 #. type: =head2
22179 #: ../fish/guestfish-actions.pod:284
22180 msgid "aug-insert"
22181 msgstr ""
22182
22183 #. type: verbatim
22184 #: ../fish/guestfish-actions.pod:286
22185 #, no-wrap
22186 msgid ""
22187 " aug-insert augpath label true|false\n"
22188 "\n"
22189 msgstr ""
22190
22191 #. type: =head2
22192 #: ../fish/guestfish-actions.pod:296
22193 msgid "aug-load"
22194 msgstr ""
22195
22196 #. type: verbatim
22197 #: ../fish/guestfish-actions.pod:298
22198 #, no-wrap
22199 msgid ""
22200 " aug-load\n"
22201 "\n"
22202 msgstr ""
22203
22204 #. type: =head2
22205 #: ../fish/guestfish-actions.pod:305
22206 msgid "aug-ls"
22207 msgstr ""
22208
22209 #. type: verbatim
22210 #: ../fish/guestfish-actions.pod:307
22211 #, no-wrap
22212 msgid ""
22213 " aug-ls augpath\n"
22214 "\n"
22215 msgstr ""
22216
22217 #. type: textblock
22218 #: ../fish/guestfish-actions.pod:309
22219 msgid ""
22220 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
22221 "resulting nodes into alphabetical order."
22222 msgstr ""
22223
22224 #. type: =head2
22225 #: ../fish/guestfish-actions.pod:312
22226 msgid "aug-match"
22227 msgstr ""
22228
22229 #. type: verbatim
22230 #: ../fish/guestfish-actions.pod:314
22231 #, no-wrap
22232 msgid ""
22233 " aug-match augpath\n"
22234 "\n"
22235 msgstr ""
22236
22237 #. type: =head2
22238 #: ../fish/guestfish-actions.pod:320
22239 msgid "aug-mv"
22240 msgstr ""
22241
22242 #. type: verbatim
22243 #: ../fish/guestfish-actions.pod:322
22244 #, no-wrap
22245 msgid ""
22246 " aug-mv src dest\n"
22247 "\n"
22248 msgstr ""
22249
22250 #. type: =head2
22251 #: ../fish/guestfish-actions.pod:327
22252 msgid "aug-rm"
22253 msgstr ""
22254
22255 #. type: verbatim
22256 #: ../fish/guestfish-actions.pod:329
22257 #, no-wrap
22258 msgid ""
22259 " aug-rm augpath\n"
22260 "\n"
22261 msgstr ""
22262
22263 #. type: =head2
22264 #: ../fish/guestfish-actions.pod:335
22265 msgid "aug-save"
22266 msgstr ""
22267
22268 #. type: verbatim
22269 #: ../fish/guestfish-actions.pod:337
22270 #, no-wrap
22271 msgid ""
22272 " aug-save\n"
22273 "\n"
22274 msgstr ""
22275
22276 #. type: textblock
22277 #: ../fish/guestfish-actions.pod:341
22278 msgid ""
22279 "The flags which were passed to L</aug-init> affect exactly how files are "
22280 "saved."
22281 msgstr ""
22282
22283 #. type: =head2
22284 #: ../fish/guestfish-actions.pod:344
22285 msgid "aug-set"
22286 msgstr ""
22287
22288 #. type: verbatim
22289 #: ../fish/guestfish-actions.pod:346
22290 #, no-wrap
22291 msgid ""
22292 " aug-set augpath val\n"
22293 "\n"
22294 msgstr ""
22295
22296 #. type: textblock
22297 #: ../fish/guestfish-actions.pod:350
22298 msgid ""
22299 "In the Augeas API, it is possible to clear a node by setting the value to "
22300 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22301 "this call.  Instead you must use the L</aug-clear> call."
22302 msgstr ""
22303
22304 #. type: =head2
22305 #: ../fish/guestfish-actions.pod:355
22306 msgid "available"
22307 msgstr ""
22308
22309 #. type: verbatim
22310 #: ../fish/guestfish-actions.pod:357
22311 #, no-wrap
22312 msgid ""
22313 " available 'groups ...'\n"
22314 "\n"
22315 msgstr ""
22316
22317 #. type: textblock
22318 #: ../fish/guestfish-actions.pod:363
22319 msgid ""
22320 "The libguestfs groups, and the functions that those groups correspond to, "
22321 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22322 "runtime by calling L</available-all-groups>."
22323 msgstr ""
22324
22325 #. type: textblock
22326 #: ../fish/guestfish-actions.pod:387
22327 msgid "You must call L</launch> before calling this function."
22328 msgstr ""
22329
22330 #. type: textblock
22331 #: ../fish/guestfish-actions.pod:409
22332 msgid ""
22333 "This call was added in version C<1.0.80>.  In previous versions of "
22334 "libguestfs all you could do would be to speculatively execute a command to "
22335 "find out if the daemon implemented it.  See also L</version>."
22336 msgstr ""
22337
22338 #. type: =head2
22339 #: ../fish/guestfish-actions.pod:416
22340 msgid "available-all-groups"
22341 msgstr ""
22342
22343 #. type: verbatim
22344 #: ../fish/guestfish-actions.pod:418
22345 #, no-wrap
22346 msgid ""
22347 " available-all-groups\n"
22348 "\n"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../fish/guestfish-actions.pod:420
22353 msgid ""
22354 "This command returns a list of all optional groups that this daemon knows "
22355 "about.  Note this returns both supported and unsupported groups.  To find "
22356 "out which ones the daemon can actually support you have to call L</"
22357 "available> on each member of the returned list."
22358 msgstr ""
22359
22360 #. type: textblock
22361 #: ../fish/guestfish-actions.pod:426
22362 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
22363 msgstr ""
22364
22365 #. type: =head2
22366 #: ../fish/guestfish-actions.pod:428
22367 msgid "base64-in"
22368 msgstr ""
22369
22370 #. type: verbatim
22371 #: ../fish/guestfish-actions.pod:430
22372 #, no-wrap
22373 msgid ""
22374 " base64-in (base64file|-) filename\n"
22375 "\n"
22376 msgstr ""
22377
22378 #. type: textblock
22379 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
22380 #: ../fish/guestfish-actions.pod:668 ../fish/guestfish-actions.pod:837
22381 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:1233
22382 #: ../fish/guestfish-actions.pod:4485 ../fish/guestfish-actions.pod:4497
22383 #: ../fish/guestfish-actions.pod:4508 ../fish/guestfish-actions.pod:4519
22384 #: ../fish/guestfish-actions.pod:4571 ../fish/guestfish-actions.pod:4580
22385 #: ../fish/guestfish-actions.pod:4634 ../fish/guestfish-actions.pod:4657
22386 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
22387 msgstr ""
22388
22389 #. type: =head2
22390 #: ../fish/guestfish-actions.pod:437
22391 msgid "base64-out"
22392 msgstr ""
22393
22394 #. type: verbatim
22395 #: ../fish/guestfish-actions.pod:439
22396 #, no-wrap
22397 msgid ""
22398 " base64-out filename (base64file|-)\n"
22399 "\n"
22400 msgstr ""
22401
22402 #. type: =head2
22403 #: ../fish/guestfish-actions.pod:446
22404 msgid "blockdev-flushbufs"
22405 msgstr ""
22406
22407 #. type: verbatim
22408 #: ../fish/guestfish-actions.pod:448
22409 #, no-wrap
22410 msgid ""
22411 " blockdev-flushbufs device\n"
22412 "\n"
22413 msgstr ""
22414
22415 #. type: =head2
22416 #: ../fish/guestfish-actions.pod:455
22417 msgid "blockdev-getbsz"
22418 msgstr ""
22419
22420 #. type: verbatim
22421 #: ../fish/guestfish-actions.pod:457
22422 #, no-wrap
22423 msgid ""
22424 " blockdev-getbsz device\n"
22425 "\n"
22426 msgstr ""
22427
22428 #. type: =head2
22429 #: ../fish/guestfish-actions.pod:466
22430 msgid "blockdev-getro"
22431 msgstr ""
22432
22433 #. type: verbatim
22434 #: ../fish/guestfish-actions.pod:468
22435 #, no-wrap
22436 msgid ""
22437 " blockdev-getro device\n"
22438 "\n"
22439 msgstr ""
22440
22441 #. type: =head2
22442 #: ../fish/guestfish-actions.pod:475
22443 msgid "blockdev-getsize64"
22444 msgstr ""
22445
22446 #. type: verbatim
22447 #: ../fish/guestfish-actions.pod:477
22448 #, no-wrap
22449 msgid ""
22450 " blockdev-getsize64 device\n"
22451 "\n"
22452 msgstr ""
22453
22454 #. type: textblock
22455 #: ../fish/guestfish-actions.pod:481
22456 msgid "See also L</blockdev-getsz>."
22457 msgstr ""
22458
22459 #. type: =head2
22460 #: ../fish/guestfish-actions.pod:485
22461 msgid "blockdev-getss"
22462 msgstr ""
22463
22464 #. type: verbatim
22465 #: ../fish/guestfish-actions.pod:487
22466 #, no-wrap
22467 msgid ""
22468 " blockdev-getss device\n"
22469 "\n"
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../fish/guestfish-actions.pod:492
22474 msgid ""
22475 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
22476 msgstr ""
22477
22478 #. type: =head2
22479 #: ../fish/guestfish-actions.pod:497
22480 msgid "blockdev-getsz"
22481 msgstr ""
22482
22483 #. type: verbatim
22484 #: ../fish/guestfish-actions.pod:499
22485 #, no-wrap
22486 msgid ""
22487 " blockdev-getsz device\n"
22488 "\n"
22489 msgstr ""
22490
22491 #. type: textblock
22492 #: ../fish/guestfish-actions.pod:504
22493 msgid ""
22494 "See also L</blockdev-getss> for the real sector size of the device, and L</"
22495 "blockdev-getsize64> for the more useful I<size in bytes>."
22496 msgstr ""
22497
22498 #. type: =head2
22499 #: ../fish/guestfish-actions.pod:510
22500 msgid "blockdev-rereadpt"
22501 msgstr ""
22502
22503 #. type: verbatim
22504 #: ../fish/guestfish-actions.pod:512
22505 #, no-wrap
22506 msgid ""
22507 " blockdev-rereadpt device\n"
22508 "\n"
22509 msgstr ""
22510
22511 #. type: =head2
22512 #: ../fish/guestfish-actions.pod:518
22513 msgid "blockdev-setbsz"
22514 msgstr ""
22515
22516 #. type: verbatim
22517 #: ../fish/guestfish-actions.pod:520
22518 #, no-wrap
22519 msgid ""
22520 " blockdev-setbsz device blocksize\n"
22521 "\n"
22522 msgstr ""
22523
22524 #. type: =head2
22525 #: ../fish/guestfish-actions.pod:529
22526 msgid "blockdev-setro"
22527 msgstr ""
22528
22529 #. type: verbatim
22530 #: ../fish/guestfish-actions.pod:531
22531 #, no-wrap
22532 msgid ""
22533 " blockdev-setro device\n"
22534 "\n"
22535 msgstr ""
22536
22537 #. type: =head2
22538 #: ../fish/guestfish-actions.pod:537
22539 msgid "blockdev-setrw"
22540 msgstr ""
22541
22542 #. type: verbatim
22543 #: ../fish/guestfish-actions.pod:539
22544 #, no-wrap
22545 msgid ""
22546 " blockdev-setrw device\n"
22547 "\n"
22548 msgstr ""
22549
22550 #. type: =head2
22551 #: ../fish/guestfish-actions.pod:545
22552 msgid "case-sensitive-path"
22553 msgstr ""
22554
22555 #. type: verbatim
22556 #: ../fish/guestfish-actions.pod:547
22557 #, no-wrap
22558 msgid ""
22559 " case-sensitive-path path\n"
22560 "\n"
22561 msgstr ""
22562
22563 #. type: textblock
22564 #: ../fish/guestfish-actions.pod:571
22565 msgid ""
22566 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
22567 "WINDOWS/system32\"> (the exact return value would depend on details of how "
22568 "the directories were originally created under Windows)."
22569 msgstr ""
22570
22571 #. type: textblock
22572 #: ../fish/guestfish-actions.pod:579
22573 msgid "See also L</realpath>."
22574 msgstr ""
22575
22576 #. type: =head2
22577 #: ../fish/guestfish-actions.pod:581
22578 msgid "cat"
22579 msgstr ""
22580
22581 #. type: verbatim
22582 #: ../fish/guestfish-actions.pod:583
22583 #, no-wrap
22584 msgid ""
22585 " cat path\n"
22586 "\n"
22587 msgstr ""
22588
22589 #. type: textblock
22590 #: ../fish/guestfish-actions.pod:587
22591 msgid ""
22592 "Note that this function cannot correctly handle binary files (specifically, "
22593 "files containing C<\\0> character which is treated as end of string).  For "
22594 "those you need to use the L</read-file> or L</download> functions which have "
22595 "a more complex interface."
22596 msgstr ""
22597
22598 #. type: =head2
22599 #: ../fish/guestfish-actions.pod:595
22600 msgid "checksum"
22601 msgstr ""
22602
22603 #. type: verbatim
22604 #: ../fish/guestfish-actions.pod:597
22605 #, no-wrap
22606 msgid ""
22607 " checksum csumtype path\n"
22608 "\n"
22609 msgstr ""
22610
22611 #. type: textblock
22612 #: ../fish/guestfish-actions.pod:640
22613 msgid "To get the checksum for a device, use L</checksum-device>."
22614 msgstr ""
22615
22616 #. type: textblock
22617 #: ../fish/guestfish-actions.pod:642
22618 msgid "To get the checksums for many files, use L</checksums-out>."
22619 msgstr ""
22620
22621 #. type: =head2
22622 #: ../fish/guestfish-actions.pod:644
22623 msgid "checksum-device"
22624 msgstr ""
22625
22626 #. type: verbatim
22627 #: ../fish/guestfish-actions.pod:646
22628 #, no-wrap
22629 msgid ""
22630 " checksum-device csumtype device\n"
22631 "\n"
22632 msgstr ""
22633
22634 #. type: textblock
22635 #: ../fish/guestfish-actions.pod:648
22636 msgid ""
22637 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22638 "device named C<device>.  For the types of checksums supported see the L</"
22639 "checksum> command."
22640 msgstr ""
22641
22642 #. type: =head2
22643 #: ../fish/guestfish-actions.pod:652
22644 msgid "checksums-out"
22645 msgstr ""
22646
22647 #. type: verbatim
22648 #: ../fish/guestfish-actions.pod:654
22649 #, no-wrap
22650 msgid ""
22651 " checksums-out csumtype directory (sumsfile|-)\n"
22652 "\n"
22653 msgstr ""
22654
22655 #. type: =head2
22656 #: ../fish/guestfish-actions.pod:670
22657 msgid "chmod"
22658 msgstr ""
22659
22660 #. type: verbatim
22661 #: ../fish/guestfish-actions.pod:672
22662 #, no-wrap
22663 msgid ""
22664 " chmod mode path\n"
22665 "\n"
22666 msgstr ""
22667
22668 #. type: =head2
22669 #: ../fish/guestfish-actions.pod:683
22670 msgid "chown"
22671 msgstr ""
22672
22673 #. type: verbatim
22674 #: ../fish/guestfish-actions.pod:685
22675 #, no-wrap
22676 msgid ""
22677 " chown owner group path\n"
22678 "\n"
22679 msgstr ""
22680
22681 #. type: =head2
22682 #: ../fish/guestfish-actions.pod:693
22683 msgid "command"
22684 msgstr ""
22685
22686 #. type: verbatim
22687 #: ../fish/guestfish-actions.pod:695
22688 #, no-wrap
22689 msgid ""
22690 " command 'arguments ...'\n"
22691 "\n"
22692 msgstr ""
22693
22694 #. type: textblock
22695 #: ../fish/guestfish-actions.pod:702
22696 msgid ""
22697 "The single parameter is an argv-style list of arguments.  The first element "
22698 "is the name of the program to run.  Subsequent elements are parameters.  The "
22699 "list must be non-empty (ie. must contain a program name).  Note that the "
22700 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
22701 msgstr ""
22702
22703 #. type: =head2
22704 #: ../fish/guestfish-actions.pod:730
22705 msgid "command-lines"
22706 msgstr ""
22707
22708 #. type: verbatim
22709 #: ../fish/guestfish-actions.pod:732
22710 #, no-wrap
22711 msgid ""
22712 " command-lines 'arguments ...'\n"
22713 "\n"
22714 msgstr ""
22715
22716 #. type: textblock
22717 #: ../fish/guestfish-actions.pod:734
22718 msgid ""
22719 "This is the same as L</command>, but splits the result into a list of lines."
22720 msgstr ""
22721
22722 #. type: textblock
22723 #: ../fish/guestfish-actions.pod:737
22724 msgid "See also: L</sh-lines>"
22725 msgstr ""
22726
22727 #. type: =head2
22728 #: ../fish/guestfish-actions.pod:742
22729 msgid "config"
22730 msgstr ""
22731
22732 #. type: verbatim
22733 #: ../fish/guestfish-actions.pod:744
22734 #, no-wrap
22735 msgid ""
22736 " config qemuparam qemuvalue\n"
22737 "\n"
22738 msgstr ""
22739
22740 #. type: =head2
22741 #: ../fish/guestfish-actions.pod:755
22742 msgid "copy-size"
22743 msgstr ""
22744
22745 #. type: verbatim
22746 #: ../fish/guestfish-actions.pod:757
22747 #, no-wrap
22748 msgid ""
22749 " copy-size src dest size\n"
22750 "\n"
22751 msgstr ""
22752
22753 #. type: =head2
22754 #: ../fish/guestfish-actions.pod:765
22755 msgid "cp"
22756 msgstr ""
22757
22758 #. type: verbatim
22759 #: ../fish/guestfish-actions.pod:767
22760 #, no-wrap
22761 msgid ""
22762 " cp src dest\n"
22763 "\n"
22764 msgstr ""
22765
22766 #. type: =head2
22767 #: ../fish/guestfish-actions.pod:772
22768 msgid "cp-a"
22769 msgstr ""
22770
22771 #. type: verbatim
22772 #: ../fish/guestfish-actions.pod:774
22773 #, no-wrap
22774 msgid ""
22775 " cp-a src dest\n"
22776 "\n"
22777 msgstr ""
22778
22779 #. type: =head2
22780 #: ../fish/guestfish-actions.pod:779
22781 msgid "dd"
22782 msgstr ""
22783
22784 #. type: verbatim
22785 #: ../fish/guestfish-actions.pod:781
22786 #, no-wrap
22787 msgid ""
22788 " dd src dest\n"
22789 "\n"
22790 msgstr ""
22791
22792 #. type: textblock
22793 #: ../fish/guestfish-actions.pod:788
22794 msgid ""
22795 "If the destination is a device, it must be as large or larger than the "
22796 "source file or device, otherwise the copy will fail.  This command cannot do "
22797 "partial copies (see L</copy-size>)."
22798 msgstr ""
22799
22800 #. type: =head2
22801 #: ../fish/guestfish-actions.pod:792
22802 msgid "df"
22803 msgstr ""
22804
22805 #. type: verbatim
22806 #: ../fish/guestfish-actions.pod:794
22807 #, no-wrap
22808 msgid ""
22809 " df\n"
22810 "\n"
22811 msgstr ""
22812
22813 #. type: textblock
22814 #: ../fish/guestfish-actions.pod:798 ../fish/guestfish-actions.pod:809
22815 msgid ""
22816 "This command is mostly useful for interactive sessions.  It is I<not> "
22817 "intended that you try to parse the output string.  Use L</statvfs> from "
22818 "programs."
22819 msgstr ""
22820
22821 #. type: =head2
22822 #: ../fish/guestfish-actions.pod:802
22823 msgid "df-h"
22824 msgstr ""
22825
22826 #. type: verbatim
22827 #: ../fish/guestfish-actions.pod:804
22828 #, no-wrap
22829 msgid ""
22830 " df-h\n"
22831 "\n"
22832 msgstr ""
22833
22834 #. type: =head2
22835 #: ../fish/guestfish-actions.pod:813
22836 msgid "dmesg"
22837 msgstr ""
22838
22839 #. type: verbatim
22840 #: ../fish/guestfish-actions.pod:815
22841 #, no-wrap
22842 msgid ""
22843 " dmesg\n"
22844 "\n"
22845 msgstr ""
22846
22847 #. type: textblock
22848 #: ../fish/guestfish-actions.pod:821
22849 msgid ""
22850 "Another way to get the same information is to enable verbose messages with "
22851 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
22852 "before running the program."
22853 msgstr ""
22854
22855 #. type: =head2
22856 #: ../fish/guestfish-actions.pod:826
22857 msgid "download"
22858 msgstr ""
22859
22860 #. type: verbatim
22861 #: ../fish/guestfish-actions.pod:828
22862 #, no-wrap
22863 msgid ""
22864 " download remotefilename (filename|-)\n"
22865 "\n"
22866 msgstr ""
22867
22868 #. type: textblock
22869 #: ../fish/guestfish-actions.pod:835
22870 msgid "See also L</upload>, L</cat>."
22871 msgstr ""
22872
22873 #. type: =head2
22874 #: ../fish/guestfish-actions.pod:839
22875 msgid "download-offset"
22876 msgstr ""
22877
22878 #. type: verbatim
22879 #: ../fish/guestfish-actions.pod:841
22880 #, no-wrap
22881 msgid ""
22882 " download-offset remotefilename (filename|-) offset size\n"
22883 "\n"
22884 msgstr ""
22885
22886 #. type: textblock
22887 #: ../fish/guestfish-actions.pod:849
22888 msgid ""
22889 "Note that there is no limit on the amount of data that can be downloaded "
22890 "with this call, unlike with L</pread>, and this call always reads the full "
22891 "amount unless an error occurs."
22892 msgstr ""
22893
22894 #. type: textblock
22895 #: ../fish/guestfish-actions.pod:854
22896 msgid "See also L</download>, L</pread>."
22897 msgstr ""
22898
22899 #. type: =head2
22900 #: ../fish/guestfish-actions.pod:858
22901 msgid "drop-caches"
22902 msgstr ""
22903
22904 #. type: verbatim
22905 #: ../fish/guestfish-actions.pod:860
22906 #, no-wrap
22907 msgid ""
22908 " drop-caches whattodrop\n"
22909 "\n"
22910 msgstr ""
22911
22912 #. type: =head2
22913 #: ../fish/guestfish-actions.pod:872
22914 msgid "du"
22915 msgstr ""
22916
22917 #. type: verbatim
22918 #: ../fish/guestfish-actions.pod:874
22919 #, no-wrap
22920 msgid ""
22921 " du path\n"
22922 "\n"
22923 msgstr ""
22924
22925 #. type: =head2
22926 #: ../fish/guestfish-actions.pod:886
22927 msgid "e2fsck-f"
22928 msgstr ""
22929
22930 #. type: verbatim
22931 #: ../fish/guestfish-actions.pod:888
22932 #, no-wrap
22933 msgid ""
22934 " e2fsck-f device\n"
22935 "\n"
22936 msgstr ""
22937
22938 #. type: textblock
22939 #: ../fish/guestfish-actions.pod:894
22940 msgid ""
22941 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
22942 "should use L</fsck>."
22943 msgstr ""
22944
22945 #. type: =head2
22946 #: ../fish/guestfish-actions.pod:897
22947 msgid "echo-daemon"
22948 msgstr ""
22949
22950 #. type: verbatim
22951 #: ../fish/guestfish-actions.pod:899
22952 #, no-wrap
22953 msgid ""
22954 " echo-daemon 'words ...'\n"
22955 "\n"
22956 msgstr ""
22957
22958 #. type: textblock
22959 #: ../fish/guestfish-actions.pod:906
22960 msgid "See also L</ping-daemon>."
22961 msgstr ""
22962
22963 #. type: =head2
22964 #: ../fish/guestfish-actions.pod:908
22965 msgid "egrep"
22966 msgstr ""
22967
22968 #. type: verbatim
22969 #: ../fish/guestfish-actions.pod:910
22970 #, no-wrap
22971 msgid ""
22972 " egrep regex path\n"
22973 "\n"
22974 msgstr ""
22975
22976 #. type: =head2
22977 #: ../fish/guestfish-actions.pod:918
22978 msgid "egrepi"
22979 msgstr ""
22980
22981 #. type: verbatim
22982 #: ../fish/guestfish-actions.pod:920
22983 #, no-wrap
22984 msgid ""
22985 " egrepi regex path\n"
22986 "\n"
22987 msgstr ""
22988
22989 #. type: =head2
22990 #: ../fish/guestfish-actions.pod:928
22991 msgid "equal"
22992 msgstr ""
22993
22994 #. type: verbatim
22995 #: ../fish/guestfish-actions.pod:930
22996 #, no-wrap
22997 msgid ""
22998 " equal file1 file2\n"
22999 "\n"
23000 msgstr ""
23001
23002 #. type: =head2
23003 #: ../fish/guestfish-actions.pod:937
23004 msgid "exists"
23005 msgstr ""
23006
23007 #. type: verbatim
23008 #: ../fish/guestfish-actions.pod:939
23009 #, no-wrap
23010 msgid ""
23011 " exists path\n"
23012 "\n"
23013 msgstr ""
23014
23015 #. type: textblock
23016 #: ../fish/guestfish-actions.pod:944
23017 msgid "See also L</is-file>, L</is-dir>, L</stat>."
23018 msgstr ""
23019
23020 #. type: =head2
23021 #: ../fish/guestfish-actions.pod:946
23022 msgid "fallocate"
23023 msgstr ""
23024
23025 #. type: verbatim
23026 #: ../fish/guestfish-actions.pod:948
23027 #, no-wrap
23028 msgid ""
23029 " fallocate path len\n"
23030 "\n"
23031 msgstr ""
23032
23033 #. type: =head2
23034 #: ../fish/guestfish-actions.pod:965
23035 msgid "fallocate64"
23036 msgstr ""
23037
23038 #. type: verbatim
23039 #: ../fish/guestfish-actions.pod:967
23040 #, no-wrap
23041 msgid ""
23042 " fallocate64 path len\n"
23043 "\n"
23044 msgstr ""
23045
23046 #. type: textblock
23047 #: ../fish/guestfish-actions.pod:973
23048 msgid ""
23049 "Note that this call allocates disk blocks for the file.  To create a sparse "
23050 "file use L</truncate-size> instead."
23051 msgstr ""
23052
23053 #. type: textblock
23054 #: ../fish/guestfish-actions.pod:976
23055 msgid ""
23056 "The deprecated call L</fallocate> does the same, but owing to an oversight "
23057 "it only allowed 30 bit lengths to be specified, effectively limiting the "
23058 "maximum size of files created through that call to 1GB."
23059 msgstr ""
23060
23061 #. type: =head2
23062 #: ../fish/guestfish-actions.pod:985
23063 msgid "fgrep"
23064 msgstr ""
23065
23066 #. type: verbatim
23067 #: ../fish/guestfish-actions.pod:987
23068 #, no-wrap
23069 msgid ""
23070 " fgrep pattern path\n"
23071 "\n"
23072 msgstr ""
23073
23074 #. type: =head2
23075 #: ../fish/guestfish-actions.pod:995
23076 msgid "fgrepi"
23077 msgstr ""
23078
23079 #. type: verbatim
23080 #: ../fish/guestfish-actions.pod:997
23081 #, no-wrap
23082 msgid ""
23083 " fgrepi pattern path\n"
23084 "\n"
23085 msgstr ""
23086
23087 #. type: =head2
23088 #: ../fish/guestfish-actions.pod:1005
23089 msgid "file"
23090 msgstr ""
23091
23092 #. type: verbatim
23093 #: ../fish/guestfish-actions.pod:1007
23094 #, no-wrap
23095 msgid ""
23096 " file path\n"
23097 "\n"
23098 msgstr ""
23099
23100 #. type: textblock
23101 #: ../fish/guestfish-actions.pod:1019
23102 msgid ""
23103 "This command can also be used on C</dev/> devices (and partitions, LV "
23104 "names).  You can for example use this to determine if a device contains a "
23105 "filesystem, although it's usually better to use L</vfs-type>."
23106 msgstr ""
23107
23108 #. type: =head2
23109 #: ../fish/guestfish-actions.pod:1029
23110 msgid "file-architecture"
23111 msgstr ""
23112
23113 #. type: verbatim
23114 #: ../fish/guestfish-actions.pod:1031
23115 #, no-wrap
23116 msgid ""
23117 " file-architecture filename\n"
23118 "\n"
23119 msgstr ""
23120
23121 #. type: =head2
23122 #: ../fish/guestfish-actions.pod:1134
23123 msgid "filesize"
23124 msgstr ""
23125
23126 #. type: verbatim
23127 #: ../fish/guestfish-actions.pod:1136
23128 #, no-wrap
23129 msgid ""
23130 " filesize file\n"
23131 "\n"
23132 msgstr ""
23133
23134 #. type: textblock
23135 #: ../fish/guestfish-actions.pod:1140
23136 msgid ""
23137 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
23138 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
23139 msgstr ""
23140
23141 #. type: =head2
23142 #: ../fish/guestfish-actions.pod:1144
23143 msgid "fill"
23144 msgstr ""
23145
23146 #. type: verbatim
23147 #: ../fish/guestfish-actions.pod:1146
23148 #, no-wrap
23149 msgid ""
23150 " fill c len path\n"
23151 "\n"
23152 msgstr ""
23153
23154 #. type: textblock
23155 #: ../fish/guestfish-actions.pod:1152
23156 msgid ""
23157 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23158 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
23159 "L</fill-pattern>."
23160 msgstr ""
23161
23162 #. type: =head2
23163 #: ../fish/guestfish-actions.pod:1157
23164 msgid "fill-pattern"
23165 msgstr ""
23166
23167 #. type: verbatim
23168 #: ../fish/guestfish-actions.pod:1159
23169 #, no-wrap
23170 msgid ""
23171 " fill-pattern pattern len path\n"
23172 "\n"
23173 msgstr ""
23174
23175 #. type: textblock
23176 #: ../fish/guestfish-actions.pod:1161
23177 msgid ""
23178 "This function is like L</fill> except that it creates a new file of length "
23179 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
23180 "is truncated if necessary to ensure the length of the file is exactly C<len> "
23181 "bytes."
23182 msgstr ""
23183
23184 #. type: =head2
23185 #: ../fish/guestfish-actions.pod:1166
23186 msgid "find"
23187 msgstr ""
23188
23189 #. type: verbatim
23190 #: ../fish/guestfish-actions.pod:1168
23191 #, no-wrap
23192 msgid ""
23193 " find directory\n"
23194 "\n"
23195 msgstr ""
23196
23197 #. type: textblock
23198 #: ../fish/guestfish-actions.pod:1182
23199 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
23200 msgstr ""
23201
23202 #. type: textblock
23203 #: ../fish/guestfish-actions.pod:1195
23204 msgid "See also L</find0>."
23205 msgstr ""
23206
23207 #. type: =head2
23208 #: ../fish/guestfish-actions.pod:1200
23209 msgid "find0"
23210 msgstr ""
23211
23212 #. type: verbatim
23213 #: ../fish/guestfish-actions.pod:1202
23214 #, no-wrap
23215 msgid ""
23216 " find0 directory (files|-)\n"
23217 "\n"
23218 msgstr ""
23219
23220 #. type: textblock
23221 #: ../fish/guestfish-actions.pod:1208
23222 msgid ""
23223 "This command works the same way as L</find> with the following exceptions:"
23224 msgstr ""
23225
23226 #. type: =head2
23227 #: ../fish/guestfish-actions.pod:1235
23228 msgid "findfs-label"
23229 msgstr ""
23230
23231 #. type: verbatim
23232 #: ../fish/guestfish-actions.pod:1237
23233 #, no-wrap
23234 msgid ""
23235 " findfs-label label\n"
23236 "\n"
23237 msgstr ""
23238
23239 #. type: textblock
23240 #: ../fish/guestfish-actions.pod:1243
23241 msgid "To find the label of a filesystem, use L</vfs-label>."
23242 msgstr ""
23243
23244 #. type: =head2
23245 #: ../fish/guestfish-actions.pod:1245
23246 msgid "findfs-uuid"
23247 msgstr ""
23248
23249 #. type: verbatim
23250 #: ../fish/guestfish-actions.pod:1247
23251 #, no-wrap
23252 msgid ""
23253 " findfs-uuid uuid\n"
23254 "\n"
23255 msgstr ""
23256
23257 #. type: textblock
23258 #: ../fish/guestfish-actions.pod:1253
23259 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
23260 msgstr ""
23261
23262 #. type: =head2
23263 #: ../fish/guestfish-actions.pod:1255
23264 msgid "fsck"
23265 msgstr ""
23266
23267 #. type: verbatim
23268 #: ../fish/guestfish-actions.pod:1257
23269 #, no-wrap
23270 msgid ""
23271 " fsck fstype device\n"
23272 "\n"
23273 msgstr ""
23274
23275 #. type: =head2
23276 #: ../fish/guestfish-actions.pod:1287
23277 msgid "get-append"
23278 msgstr ""
23279
23280 #. type: verbatim
23281 #: ../fish/guestfish-actions.pod:1289
23282 #, no-wrap
23283 msgid ""
23284 " get-append\n"
23285 "\n"
23286 msgstr ""
23287
23288 #. type: =head2
23289 #: ../fish/guestfish-actions.pod:1296
23290 msgid "get-attach-method"
23291 msgstr ""
23292
23293 #. type: verbatim
23294 #: ../fish/guestfish-actions.pod:1298
23295 #, no-wrap
23296 msgid ""
23297 " get-attach-method\n"
23298 "\n"
23299 msgstr ""
23300
23301 #. type: textblock
23302 #: ../fish/guestfish-actions.pod:1300
23303 msgid "Return the current attach method.  See L</set-attach-method>."
23304 msgstr ""
23305
23306 #. type: =head2
23307 #: ../fish/guestfish-actions.pod:1302
23308 msgid "get-autosync"
23309 msgstr ""
23310
23311 #. type: verbatim
23312 #: ../fish/guestfish-actions.pod:1304
23313 #, no-wrap
23314 msgid ""
23315 " get-autosync\n"
23316 "\n"
23317 msgstr ""
23318
23319 #. type: =head2
23320 #: ../fish/guestfish-actions.pod:1308
23321 msgid "get-direct"
23322 msgstr ""
23323
23324 #. type: verbatim
23325 #: ../fish/guestfish-actions.pod:1310
23326 #, no-wrap
23327 msgid ""
23328 " get-direct\n"
23329 "\n"
23330 msgstr ""
23331
23332 #. type: =head2
23333 #: ../fish/guestfish-actions.pod:1314
23334 msgid "get-e2label"
23335 msgstr ""
23336
23337 #. type: verbatim
23338 #: ../fish/guestfish-actions.pod:1316
23339 #, no-wrap
23340 msgid ""
23341 " get-e2label device\n"
23342 "\n"
23343 msgstr ""
23344
23345 #. type: =head2
23346 #: ../fish/guestfish-actions.pod:1328
23347 msgid "get-e2uuid"
23348 msgstr ""
23349
23350 #. type: verbatim
23351 #: ../fish/guestfish-actions.pod:1330
23352 #, no-wrap
23353 msgid ""
23354 " get-e2uuid device\n"
23355 "\n"
23356 msgstr ""
23357
23358 #. type: =head2
23359 #: ../fish/guestfish-actions.pod:1342
23360 msgid "get-memsize"
23361 msgstr ""
23362
23363 #. type: verbatim
23364 #: ../fish/guestfish-actions.pod:1344
23365 #, no-wrap
23366 msgid ""
23367 " get-memsize\n"
23368 "\n"
23369 msgstr ""
23370
23371 #. type: textblock
23372 #: ../fish/guestfish-actions.pod:1349
23373 msgid ""
23374 "If L</set-memsize> was not called on this handle, and if "
23375 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23376 "value for memsize."
23377 msgstr ""
23378
23379 #. type: =head2
23380 #: ../fish/guestfish-actions.pod:1356
23381 msgid "get-network"
23382 msgstr ""
23383
23384 #. type: verbatim
23385 #: ../fish/guestfish-actions.pod:1358
23386 #, no-wrap
23387 msgid ""
23388 " get-network\n"
23389 "\n"
23390 msgstr ""
23391
23392 #. type: =head2
23393 #: ../fish/guestfish-actions.pod:1362
23394 msgid "get-path"
23395 msgstr ""
23396
23397 #. type: verbatim
23398 #: ../fish/guestfish-actions.pod:1364
23399 #, no-wrap
23400 msgid ""
23401 " get-path\n"
23402 "\n"
23403 msgstr ""
23404
23405 #. type: =head2
23406 #: ../fish/guestfish-actions.pod:1371
23407 msgid "get-pid"
23408 msgstr ""
23409
23410 #. type: =head2
23411 #: ../fish/guestfish-actions.pod:1373
23412 msgid "pid"
23413 msgstr ""
23414
23415 #. type: verbatim
23416 #: ../fish/guestfish-actions.pod:1375
23417 #, no-wrap
23418 msgid ""
23419 " get-pid\n"
23420 "\n"
23421 msgstr ""
23422
23423 #. type: =head2
23424 #: ../fish/guestfish-actions.pod:1382
23425 msgid "get-qemu"
23426 msgstr ""
23427
23428 #. type: verbatim
23429 #: ../fish/guestfish-actions.pod:1384
23430 #, no-wrap
23431 msgid ""
23432 " get-qemu\n"
23433 "\n"
23434 msgstr ""
23435
23436 #. type: =head2
23437 #: ../fish/guestfish-actions.pod:1391
23438 msgid "get-recovery-proc"
23439 msgstr ""
23440
23441 #. type: verbatim
23442 #: ../fish/guestfish-actions.pod:1393
23443 #, no-wrap
23444 msgid ""
23445 " get-recovery-proc\n"
23446 "\n"
23447 msgstr ""
23448
23449 #. type: =head2
23450 #: ../fish/guestfish-actions.pod:1397
23451 msgid "get-selinux"
23452 msgstr ""
23453
23454 #. type: verbatim
23455 #: ../fish/guestfish-actions.pod:1399
23456 #, no-wrap
23457 msgid ""
23458 " get-selinux\n"
23459 "\n"
23460 msgstr ""
23461
23462 #. type: textblock
23463 #: ../fish/guestfish-actions.pod:1401
23464 msgid ""
23465 "This returns the current setting of the selinux flag which is passed to the "
23466 "appliance at boot time.  See L</set-selinux>."
23467 msgstr ""
23468
23469 #. type: =head2
23470 #: ../fish/guestfish-actions.pod:1407
23471 msgid "get-state"
23472 msgstr ""
23473
23474 #. type: verbatim
23475 #: ../fish/guestfish-actions.pod:1409
23476 #, no-wrap
23477 msgid ""
23478 " get-state\n"
23479 "\n"
23480 msgstr ""
23481
23482 #. type: =head2
23483 #: ../fish/guestfish-actions.pod:1416
23484 msgid "get-trace"
23485 msgstr ""
23486
23487 #. type: verbatim
23488 #: ../fish/guestfish-actions.pod:1418
23489 #, no-wrap
23490 msgid ""
23491 " get-trace\n"
23492 "\n"
23493 msgstr ""
23494
23495 #. type: =head2
23496 #: ../fish/guestfish-actions.pod:1422
23497 msgid "get-umask"
23498 msgstr ""
23499
23500 #. type: verbatim
23501 #: ../fish/guestfish-actions.pod:1424
23502 #, no-wrap
23503 msgid ""
23504 " get-umask\n"
23505 "\n"
23506 msgstr ""
23507
23508 #. type: textblock
23509 #: ../fish/guestfish-actions.pod:1426
23510 msgid ""
23511 "Return the current umask.  By default the umask is C<022> unless it has been "
23512 "set by calling L</umask>."
23513 msgstr ""
23514
23515 #. type: =head2
23516 #: ../fish/guestfish-actions.pod:1429
23517 msgid "get-verbose"
23518 msgstr ""
23519
23520 #. type: verbatim
23521 #: ../fish/guestfish-actions.pod:1431
23522 #, no-wrap
23523 msgid ""
23524 " get-verbose\n"
23525 "\n"
23526 msgstr ""
23527
23528 #. type: =head2
23529 #: ../fish/guestfish-actions.pod:1435
23530 msgid "getcon"
23531 msgstr ""
23532
23533 #. type: verbatim
23534 #: ../fish/guestfish-actions.pod:1437
23535 #, no-wrap
23536 msgid ""
23537 " getcon\n"
23538 "\n"
23539 msgstr ""
23540
23541 #. type: textblock
23542 #: ../fish/guestfish-actions.pod:1441
23543 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
23544 msgstr ""
23545
23546 #. type: =head2
23547 #: ../fish/guestfish-actions.pod:1444
23548 msgid "getxattr"
23549 msgstr ""
23550
23551 #. type: verbatim
23552 #: ../fish/guestfish-actions.pod:1446
23553 #, no-wrap
23554 msgid ""
23555 " getxattr path name\n"
23556 "\n"
23557 msgstr ""
23558
23559 #. type: textblock
23560 #: ../fish/guestfish-actions.pod:1448
23561 msgid ""
23562 "Get a single extended attribute from file C<path> named C<name>.  This call "
23563 "follows symlinks.  If you want to lookup an extended attribute for the "
23564 "symlink itself, use L</lgetxattr>."
23565 msgstr ""
23566
23567 #. type: textblock
23568 #: ../fish/guestfish-actions.pod:1452 ../fish/guestfish-actions.pod:2458
23569 msgid ""
23570 "Normally it is better to get all extended attributes from a file in one go "
23571 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
23572 "buggy and do not provide a way to list out attributes.  For these "
23573 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
23574 "attributes you want in advance and call this function."
23575 msgstr ""
23576
23577 #. type: textblock
23578 #: ../fish/guestfish-actions.pod:1462
23579 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
23580 msgstr ""
23581
23582 #. type: =head2
23583 #: ../fish/guestfish-actions.pod:1464
23584 msgid "getxattrs"
23585 msgstr ""
23586
23587 #. type: verbatim
23588 #: ../fish/guestfish-actions.pod:1466
23589 #, no-wrap
23590 msgid ""
23591 " getxattrs path\n"
23592 "\n"
23593 msgstr ""
23594
23595 #. type: textblock
23596 #: ../fish/guestfish-actions.pod:1474
23597 msgid "See also: L</lgetxattrs>, L<attr(5)>."
23598 msgstr ""
23599
23600 #. type: =head2
23601 #: ../fish/guestfish-actions.pod:1476
23602 msgid "glob-expand"
23603 msgstr ""
23604
23605 #. type: verbatim
23606 #: ../fish/guestfish-actions.pod:1478
23607 #, no-wrap
23608 msgid ""
23609 " glob-expand pattern\n"
23610 "\n"
23611 msgstr ""
23612
23613 #. type: =head2
23614 #: ../fish/guestfish-actions.pod:1491
23615 msgid "grep"
23616 msgstr ""
23617
23618 #. type: verbatim
23619 #: ../fish/guestfish-actions.pod:1493
23620 #, no-wrap
23621 msgid ""
23622 " grep regex path\n"
23623 "\n"
23624 msgstr ""
23625
23626 #. type: =head2
23627 #: ../fish/guestfish-actions.pod:1501
23628 msgid "grepi"
23629 msgstr ""
23630
23631 #. type: verbatim
23632 #: ../fish/guestfish-actions.pod:1503
23633 #, no-wrap
23634 msgid ""
23635 " grepi regex path\n"
23636 "\n"
23637 msgstr ""
23638
23639 #. type: =head2
23640 #: ../fish/guestfish-actions.pod:1511
23641 msgid "grub-install"
23642 msgstr ""
23643
23644 #. type: verbatim
23645 #: ../fish/guestfish-actions.pod:1513
23646 #, no-wrap
23647 msgid ""
23648 " grub-install root device\n"
23649 "\n"
23650 msgstr ""
23651
23652 #. type: =head2
23653 #: ../fish/guestfish-actions.pod:1529
23654 msgid "head"
23655 msgstr ""
23656
23657 #. type: verbatim
23658 #: ../fish/guestfish-actions.pod:1531
23659 #, no-wrap
23660 msgid ""
23661 " head path\n"
23662 "\n"
23663 msgstr ""
23664
23665 #. type: =head2
23666 #: ../fish/guestfish-actions.pod:1539
23667 msgid "head-n"
23668 msgstr ""
23669
23670 #. type: verbatim
23671 #: ../fish/guestfish-actions.pod:1541
23672 #, no-wrap
23673 msgid ""
23674 " head-n nrlines path\n"
23675 "\n"
23676 msgstr ""
23677
23678 #. type: =head2
23679 #: ../fish/guestfish-actions.pod:1554
23680 msgid "hexdump"
23681 msgstr ""
23682
23683 #. type: verbatim
23684 #: ../fish/guestfish-actions.pod:1556
23685 #, no-wrap
23686 msgid ""
23687 " hexdump path\n"
23688 "\n"
23689 msgstr ""
23690
23691 #. type: =head2
23692 #: ../fish/guestfish-actions.pod:1564
23693 msgid "initrd-cat"
23694 msgstr ""
23695
23696 #. type: verbatim
23697 #: ../fish/guestfish-actions.pod:1566
23698 #, no-wrap
23699 msgid ""
23700 " initrd-cat initrdpath filename\n"
23701 "\n"
23702 msgstr ""
23703
23704 #. type: textblock
23705 #: ../fish/guestfish-actions.pod:1578
23706 msgid "See also L</initrd-list>."
23707 msgstr ""
23708
23709 #. type: =head2
23710 #: ../fish/guestfish-actions.pod:1583
23711 msgid "initrd-list"
23712 msgstr ""
23713
23714 #. type: verbatim
23715 #: ../fish/guestfish-actions.pod:1585
23716 #, no-wrap
23717 msgid ""
23718 " initrd-list path\n"
23719 "\n"
23720 msgstr ""
23721
23722 #. type: =head2
23723 #: ../fish/guestfish-actions.pod:1597
23724 msgid "inotify-add-watch"
23725 msgstr ""
23726
23727 #. type: verbatim
23728 #: ../fish/guestfish-actions.pod:1599
23729 #, no-wrap
23730 msgid ""
23731 " inotify-add-watch path mask\n"
23732 "\n"
23733 msgstr ""
23734
23735 #. type: =head2
23736 #: ../fish/guestfish-actions.pod:1611
23737 msgid "inotify-close"
23738 msgstr ""
23739
23740 #. type: verbatim
23741 #: ../fish/guestfish-actions.pod:1613
23742 #, no-wrap
23743 msgid ""
23744 " inotify-close\n"
23745 "\n"
23746 msgstr ""
23747
23748 #. type: =head2
23749 #: ../fish/guestfish-actions.pod:1619
23750 msgid "inotify-files"
23751 msgstr ""
23752
23753 #. type: verbatim
23754 #: ../fish/guestfish-actions.pod:1621
23755 #, no-wrap
23756 msgid ""
23757 " inotify-files\n"
23758 "\n"
23759 msgstr ""
23760
23761 #. type: textblock
23762 #: ../fish/guestfish-actions.pod:1623
23763 msgid ""
23764 "This function is a helpful wrapper around L</inotify-read> which just "
23765 "returns a list of pathnames of objects that were touched.  The returned "
23766 "pathnames are sorted and deduplicated."
23767 msgstr ""
23768
23769 #. type: =head2
23770 #: ../fish/guestfish-actions.pod:1627
23771 msgid "inotify-init"
23772 msgstr ""
23773
23774 #. type: verbatim
23775 #: ../fish/guestfish-actions.pod:1629
23776 #, no-wrap
23777 msgid ""
23778 " inotify-init maxevents\n"
23779 "\n"
23780 msgstr ""
23781
23782 #. type: textblock
23783 #: ../fish/guestfish-actions.pod:1635
23784 msgid ""
23785 "C<maxevents> is the maximum number of events which will be queued up between "
23786 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
23787 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
23788 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
23789 "but records the fact that it threw them away by setting a flag "
23790 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
23791 msgstr ""
23792
23793 #. type: textblock
23794 #: ../fish/guestfish-actions.pod:1645
23795 msgid ""
23796 "Before any events are generated, you have to add some watches to the "
23797 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
23798 "L</inotify-watch-all>."
23799 msgstr ""
23800
23801 #. type: textblock
23802 #: ../fish/guestfish-actions.pod:1651
23803 msgid ""
23804 "Queued up events should be read periodically by calling L</inotify-read> (or "
23805 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
23806 "If you don't read the events out often enough then you risk the internal "
23807 "queue overflowing."
23808 msgstr ""
23809
23810 #. type: textblock
23811 #: ../fish/guestfish-actions.pod:1658
23812 msgid ""
23813 "The handle should be closed after use by calling L</inotify-close>.  This "
23814 "also removes any watches automatically."
23815 msgstr ""
23816
23817 #. type: =head2
23818 #: ../fish/guestfish-actions.pod:1667
23819 msgid "inotify-read"
23820 msgstr ""
23821
23822 #. type: verbatim
23823 #: ../fish/guestfish-actions.pod:1669
23824 #, no-wrap
23825 msgid ""
23826 " inotify-read\n"
23827 "\n"
23828 msgstr ""
23829
23830 #. type: =head2
23831 #: ../fish/guestfish-actions.pod:1682
23832 msgid "inotify-rm-watch"
23833 msgstr ""
23834
23835 #. type: verbatim
23836 #: ../fish/guestfish-actions.pod:1684
23837 #, no-wrap
23838 msgid ""
23839 " inotify-rm-watch wd\n"
23840 "\n"
23841 msgstr ""
23842
23843 #. type: textblock
23844 #: ../fish/guestfish-actions.pod:1686
23845 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
23846 msgstr ""
23847
23848 #. type: =head2
23849 #: ../fish/guestfish-actions.pod:1689
23850 msgid "inspect-get-arch"
23851 msgstr ""
23852
23853 #. type: verbatim
23854 #: ../fish/guestfish-actions.pod:1691
23855 #, no-wrap
23856 msgid ""
23857 " inspect-get-arch root\n"
23858 "\n"
23859 msgstr ""
23860
23861 #. type: textblock
23862 #: ../fish/guestfish-actions.pod:1693 ../fish/guestfish-actions.pod:1709
23863 #: ../fish/guestfish-actions.pod:1795 ../fish/guestfish-actions.pod:1831
23864 #: ../fish/guestfish-actions.pod:1849 ../fish/guestfish-actions.pod:1883
23865 #: ../fish/guestfish-actions.pod:1898 ../fish/guestfish-actions.pod:1919
23866 #: ../fish/guestfish-actions.pod:1934 ../fish/guestfish-actions.pod:1967
23867 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2013
23868 #: ../fish/guestfish-actions.pod:2030 ../fish/guestfish-actions.pod:2073
23869 #: ../fish/guestfish-actions.pod:2108 ../fish/guestfish-actions.pod:2124
23870 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2153
23871 #: ../fish/guestfish-actions.pod:2166 ../fish/guestfish-actions.pod:2181
23872 msgid ""
23873 "This function should only be called with a root device string as returned by "
23874 "L</inspect-os>."
23875 msgstr ""
23876
23877 #. type: textblock
23878 #: ../fish/guestfish-actions.pod:1696
23879 msgid ""
23880 "This returns the architecture of the inspected operating system.  The "
23881 "possible return values are listed under L</file-architecture>."
23882 msgstr ""
23883
23884 #. type: =head2
23885 #: ../fish/guestfish-actions.pod:1705
23886 msgid "inspect-get-distro"
23887 msgstr ""
23888
23889 #. type: verbatim
23890 #: ../fish/guestfish-actions.pod:1707
23891 #, no-wrap
23892 msgid ""
23893 " inspect-get-distro root\n"
23894 "\n"
23895 msgstr ""
23896
23897 #. type: =head2
23898 #: ../fish/guestfish-actions.pod:1791
23899 msgid "inspect-get-drive-mappings"
23900 msgstr ""
23901
23902 #. type: verbatim
23903 #: ../fish/guestfish-actions.pod:1793
23904 #, no-wrap
23905 msgid ""
23906 " inspect-get-drive-mappings root\n"
23907 "\n"
23908 msgstr ""
23909
23910 #. type: textblock
23911 #: ../fish/guestfish-actions.pod:1823
23912 msgid ""
23913 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23914 "get-mountpoints>, L</inspect-get-filesystems>."
23915 msgstr ""
23916
23917 #. type: =head2
23918 #: ../fish/guestfish-actions.pod:1827
23919 msgid "inspect-get-filesystems"
23920 msgstr ""
23921
23922 #. type: verbatim
23923 #: ../fish/guestfish-actions.pod:1829
23924 #, no-wrap
23925 msgid ""
23926 " inspect-get-filesystems root\n"
23927 "\n"
23928 msgstr ""
23929
23930 #. type: textblock
23931 #: ../fish/guestfish-actions.pod:1842
23932 msgid ""
23933 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23934 "get-mountpoints>."
23935 msgstr ""
23936
23937 #. type: =head2
23938 #: ../fish/guestfish-actions.pod:1845
23939 msgid "inspect-get-format"
23940 msgstr ""
23941
23942 #. type: verbatim
23943 #: ../fish/guestfish-actions.pod:1847
23944 #, no-wrap
23945 msgid ""
23946 " inspect-get-format root\n"
23947 "\n"
23948 msgstr ""
23949
23950 #. type: =head2
23951 #: ../fish/guestfish-actions.pod:1879
23952 msgid "inspect-get-hostname"
23953 msgstr ""
23954
23955 #. type: verbatim
23956 #: ../fish/guestfish-actions.pod:1881
23957 #, no-wrap
23958 msgid ""
23959 " inspect-get-hostname root\n"
23960 "\n"
23961 msgstr ""
23962
23963 #. type: =head2
23964 #: ../fish/guestfish-actions.pod:1894
23965 msgid "inspect-get-major-version"
23966 msgstr ""
23967
23968 #. type: verbatim
23969 #: ../fish/guestfish-actions.pod:1896
23970 #, no-wrap
23971 msgid ""
23972 " inspect-get-major-version root\n"
23973 "\n"
23974 msgstr ""
23975
23976 #. type: =head2
23977 #: ../fish/guestfish-actions.pod:1915
23978 msgid "inspect-get-minor-version"
23979 msgstr ""
23980
23981 #. type: verbatim
23982 #: ../fish/guestfish-actions.pod:1917
23983 #, no-wrap
23984 msgid ""
23985 " inspect-get-minor-version root\n"
23986 "\n"
23987 msgstr ""
23988
23989 #. type: textblock
23990 #: ../fish/guestfish-actions.pod:1927
23991 msgid ""
23992 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23993 "get-major-version>."
23994 msgstr ""
23995
23996 #. type: =head2
23997 #: ../fish/guestfish-actions.pod:1930
23998 msgid "inspect-get-mountpoints"
23999 msgstr ""
24000
24001 #. type: verbatim
24002 #: ../fish/guestfish-actions.pod:1932
24003 #, no-wrap
24004 msgid ""
24005 " inspect-get-mountpoints root\n"
24006 "\n"
24007 msgstr ""
24008
24009 #. type: textblock
24010 #: ../fish/guestfish-actions.pod:1954
24011 msgid ""
24012 "For operating systems like Windows which still use drive letters, this call "
24013 "will only return an entry for the first drive \"mounted on\" C</>.  For "
24014 "information about the mapping of drive letters to partitions, see L</inspect-"
24015 "get-drive-mappings>."
24016 msgstr ""
24017
24018 #. type: textblock
24019 #: ../fish/guestfish-actions.pod:1960
24020 msgid ""
24021 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
24022 "get-filesystems>."
24023 msgstr ""
24024
24025 #. type: =head2
24026 #: ../fish/guestfish-actions.pod:1963
24027 msgid "inspect-get-package-format"
24028 msgstr ""
24029
24030 #. type: verbatim
24031 #: ../fish/guestfish-actions.pod:1965
24032 #, no-wrap
24033 msgid ""
24034 " inspect-get-package-format root\n"
24035 "\n"
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../fish/guestfish-actions.pod:1970
24040 msgid ""
24041 "This function and L</inspect-get-package-management> return the package "
24042 "format and package management tool used by the inspected operating system.  "
24043 "For example for Fedora these functions would return C<rpm> (package format) "
24044 "and C<yum> (package management)."
24045 msgstr ""
24046
24047 #. type: =head2
24048 #: ../fish/guestfish-actions.pod:1985
24049 msgid "inspect-get-package-management"
24050 msgstr ""
24051
24052 #. type: verbatim
24053 #: ../fish/guestfish-actions.pod:1987
24054 #, no-wrap
24055 msgid ""
24056 " inspect-get-package-management root\n"
24057 "\n"
24058 msgstr ""
24059
24060 #. type: textblock
24061 #: ../fish/guestfish-actions.pod:1992
24062 msgid ""
24063 "L</inspect-get-package-format> and this function return the package format "
24064 "and package management tool used by the inspected operating system.  For "
24065 "example for Fedora these functions would return C<rpm> (package format) and "
24066 "C<yum> (package management)."
24067 msgstr ""
24068
24069 #. type: =head2
24070 #: ../fish/guestfish-actions.pod:2009
24071 msgid "inspect-get-product-name"
24072 msgstr ""
24073
24074 #. type: verbatim
24075 #: ../fish/guestfish-actions.pod:2011
24076 #, no-wrap
24077 msgid ""
24078 " inspect-get-product-name root\n"
24079 "\n"
24080 msgstr ""
24081
24082 #. type: =head2
24083 #: ../fish/guestfish-actions.pod:2026
24084 msgid "inspect-get-product-variant"
24085 msgstr ""
24086
24087 #. type: verbatim
24088 #: ../fish/guestfish-actions.pod:2028
24089 #, no-wrap
24090 msgid ""
24091 " inspect-get-product-variant root\n"
24092 "\n"
24093 msgstr ""
24094
24095 #. type: textblock
24096 #: ../fish/guestfish-actions.pod:2052
24097 msgid ""
24098 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
24099 "get-product-name>, L</inspect-get-major-version>."
24100 msgstr ""
24101
24102 #. type: =head2
24103 #: ../fish/guestfish-actions.pod:2056
24104 msgid "inspect-get-roots"
24105 msgstr ""
24106
24107 #. type: verbatim
24108 #: ../fish/guestfish-actions.pod:2058
24109 #, no-wrap
24110 msgid ""
24111 " inspect-get-roots\n"
24112 "\n"
24113 msgstr ""
24114
24115 #. type: textblock
24116 #: ../fish/guestfish-actions.pod:2060
24117 msgid ""
24118 "This function is a convenient way to get the list of root devices, as "
24119 "returned from a previous call to L</inspect-os>, but without redoing the "
24120 "whole inspection process."
24121 msgstr ""
24122
24123 #. type: textblock
24124 #: ../fish/guestfish-actions.pod:2064
24125 msgid ""
24126 "This returns an empty list if either no root devices were found or the "
24127 "caller has not called L</inspect-os>."
24128 msgstr ""
24129
24130 #. type: =head2
24131 #: ../fish/guestfish-actions.pod:2069
24132 msgid "inspect-get-type"
24133 msgstr ""
24134
24135 #. type: verbatim
24136 #: ../fish/guestfish-actions.pod:2071
24137 #, no-wrap
24138 msgid ""
24139 " inspect-get-type root\n"
24140 "\n"
24141 msgstr ""
24142
24143 #. type: =head2
24144 #: ../fish/guestfish-actions.pod:2104
24145 msgid "inspect-get-windows-current-control-set"
24146 msgstr ""
24147
24148 #. type: verbatim
24149 #: ../fish/guestfish-actions.pod:2106
24150 #, no-wrap
24151 msgid ""
24152 " inspect-get-windows-current-control-set root\n"
24153 "\n"
24154 msgstr ""
24155
24156 #. type: =head2
24157 #: ../fish/guestfish-actions.pod:2120
24158 msgid "inspect-get-windows-systemroot"
24159 msgstr ""
24160
24161 #. type: verbatim
24162 #: ../fish/guestfish-actions.pod:2122
24163 #, no-wrap
24164 msgid ""
24165 " inspect-get-windows-systemroot root\n"
24166 "\n"
24167 msgstr ""
24168
24169 #. type: =head2
24170 #: ../fish/guestfish-actions.pod:2136
24171 msgid "inspect-is-live"
24172 msgstr ""
24173
24174 #. type: verbatim
24175 #: ../fish/guestfish-actions.pod:2138
24176 #, no-wrap
24177 msgid ""
24178 " inspect-is-live root\n"
24179 "\n"
24180 msgstr ""
24181
24182 #. type: textblock
24183 #: ../fish/guestfish-actions.pod:2143
24184 msgid ""
24185 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24186 "then this returns true if a live image was detected on the disk."
24187 msgstr ""
24188
24189 #. type: =head2
24190 #: ../fish/guestfish-actions.pod:2149
24191 msgid "inspect-is-multipart"
24192 msgstr ""
24193
24194 #. type: verbatim
24195 #: ../fish/guestfish-actions.pod:2151
24196 #, no-wrap
24197 msgid ""
24198 " inspect-is-multipart root\n"
24199 "\n"
24200 msgstr ""
24201
24202 #. type: textblock
24203 #: ../fish/guestfish-actions.pod:2156
24204 msgid ""
24205 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24206 "then this returns true if the disk is part of a set."
24207 msgstr ""
24208
24209 #. type: =head2
24210 #: ../fish/guestfish-actions.pod:2162
24211 msgid "inspect-is-netinst"
24212 msgstr ""
24213
24214 #. type: verbatim
24215 #: ../fish/guestfish-actions.pod:2164
24216 #, no-wrap
24217 msgid ""
24218 " inspect-is-netinst root\n"
24219 "\n"
24220 msgstr ""
24221
24222 #. type: textblock
24223 #: ../fish/guestfish-actions.pod:2169
24224 msgid ""
24225 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24226 "then this returns true if the disk is a network installer, ie. not a self-"
24227 "contained install CD but one which is likely to require network access to "
24228 "complete the install."
24229 msgstr ""
24230
24231 #. type: =head2
24232 #: ../fish/guestfish-actions.pod:2177
24233 msgid "inspect-list-applications"
24234 msgstr ""
24235
24236 #. type: verbatim
24237 #: ../fish/guestfish-actions.pod:2179
24238 #, no-wrap
24239 msgid ""
24240 " inspect-list-applications root\n"
24241 "\n"
24242 msgstr ""
24243
24244 #. type: textblock
24245 #: ../fish/guestfish-actions.pod:2186
24246 msgid ""
24247 "I<Note:> This call works differently from other parts of the inspection "
24248 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
24249 "then mount up the disks, before calling this.  Listing applications is a "
24250 "significantly more difficult operation which requires access to the full "
24251 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
24252 "are just returning data cached in the libguestfs handle, this call actually "
24253 "reads parts of the mounted filesystems during the call."
24254 msgstr ""
24255
24256 #. type: =head2
24257 #: ../fish/guestfish-actions.pod:2276
24258 msgid "inspect-os"
24259 msgstr ""
24260
24261 #. type: verbatim
24262 #: ../fish/guestfish-actions.pod:2278
24263 #, no-wrap
24264 msgid ""
24265 " inspect-os\n"
24266 "\n"
24267 msgstr ""
24268
24269 #. type: textblock
24270 #: ../fish/guestfish-actions.pod:2293
24271 msgid ""
24272 "You can pass the root string(s) returned to other L</inspect-get-*> "
24273 "functions in order to query further information about each operating system, "
24274 "such as the name and version."
24275 msgstr ""
24276
24277 #. type: textblock
24278 #: ../fish/guestfish-actions.pod:2298
24279 msgid ""
24280 "This function uses other libguestfs features such as L</mount-ro> and L</"
24281 "umount-all> in order to mount and unmount filesystems and look at the "
24282 "contents.  This should be called with no disks currently mounted.  The "
24283 "function may also use Augeas, so any existing Augeas handle will be closed."
24284 msgstr ""
24285
24286 #. type: textblock
24287 #: ../fish/guestfish-actions.pod:2310 ../fish/guestfish-actions.pod:2486
24288 #: ../fish/guestfish-actions.pod:2532
24289 msgid "See also L</list-filesystems>."
24290 msgstr ""
24291
24292 #. type: =head2
24293 #: ../fish/guestfish-actions.pod:2312
24294 msgid "is-blockdev"
24295 msgstr ""
24296
24297 #. type: verbatim
24298 #: ../fish/guestfish-actions.pod:2314
24299 #, no-wrap
24300 msgid ""
24301 " is-blockdev path\n"
24302 "\n"
24303 msgstr ""
24304
24305 #. type: textblock
24306 #: ../fish/guestfish-actions.pod:2319 ../fish/guestfish-actions.pod:2337
24307 #: ../fish/guestfish-actions.pod:2356 ../fish/guestfish-actions.pod:2365
24308 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2409
24309 #: ../fish/guestfish-actions.pod:2418
24310 msgid "See also L</stat>."
24311 msgstr ""
24312
24313 #. type: =head2
24314 #: ../fish/guestfish-actions.pod:2321
24315 msgid "is-busy"
24316 msgstr ""
24317
24318 #. type: verbatim
24319 #: ../fish/guestfish-actions.pod:2323
24320 #, no-wrap
24321 msgid ""
24322 " is-busy\n"
24323 "\n"
24324 msgstr ""
24325
24326 #. type: =head2
24327 #: ../fish/guestfish-actions.pod:2330
24328 msgid "is-chardev"
24329 msgstr ""
24330
24331 #. type: verbatim
24332 #: ../fish/guestfish-actions.pod:2332
24333 #, no-wrap
24334 msgid ""
24335 " is-chardev path\n"
24336 "\n"
24337 msgstr ""
24338
24339 #. type: =head2
24340 #: ../fish/guestfish-actions.pod:2339
24341 msgid "is-config"
24342 msgstr ""
24343
24344 #. type: verbatim
24345 #: ../fish/guestfish-actions.pod:2341
24346 #, no-wrap
24347 msgid ""
24348 " is-config\n"
24349 "\n"
24350 msgstr ""
24351
24352 #. type: =head2
24353 #: ../fish/guestfish-actions.pod:2348
24354 msgid "is-dir"
24355 msgstr ""
24356
24357 #. type: verbatim
24358 #: ../fish/guestfish-actions.pod:2350
24359 #, no-wrap
24360 msgid ""
24361 " is-dir path\n"
24362 "\n"
24363 msgstr ""
24364
24365 #. type: =head2
24366 #: ../fish/guestfish-actions.pod:2358
24367 msgid "is-fifo"
24368 msgstr ""
24369
24370 #. type: verbatim
24371 #: ../fish/guestfish-actions.pod:2360
24372 #, no-wrap
24373 msgid ""
24374 " is-fifo path\n"
24375 "\n"
24376 msgstr ""
24377
24378 #. type: =head2
24379 #: ../fish/guestfish-actions.pod:2367
24380 msgid "is-file"
24381 msgstr ""
24382
24383 #. type: verbatim
24384 #: ../fish/guestfish-actions.pod:2369
24385 #, no-wrap
24386 msgid ""
24387 " is-file path\n"
24388 "\n"
24389 msgstr ""
24390
24391 #. type: =head2
24392 #: ../fish/guestfish-actions.pod:2377
24393 msgid "is-launching"
24394 msgstr ""
24395
24396 #. type: verbatim
24397 #: ../fish/guestfish-actions.pod:2379
24398 #, no-wrap
24399 msgid ""
24400 " is-launching\n"
24401 "\n"
24402 msgstr ""
24403
24404 #. type: =head2
24405 #: ../fish/guestfish-actions.pod:2386
24406 msgid "is-lv"
24407 msgstr ""
24408
24409 #. type: verbatim
24410 #: ../fish/guestfish-actions.pod:2388
24411 #, no-wrap
24412 msgid ""
24413 " is-lv device\n"
24414 "\n"
24415 msgstr ""
24416
24417 #. type: =head2
24418 #: ../fish/guestfish-actions.pod:2393
24419 msgid "is-ready"
24420 msgstr ""
24421
24422 #. type: verbatim
24423 #: ../fish/guestfish-actions.pod:2395
24424 #, no-wrap
24425 msgid ""
24426 " is-ready\n"
24427 "\n"
24428 msgstr ""
24429
24430 #. type: =head2
24431 #: ../fish/guestfish-actions.pod:2402
24432 msgid "is-socket"
24433 msgstr ""
24434
24435 #. type: verbatim
24436 #: ../fish/guestfish-actions.pod:2404
24437 #, no-wrap
24438 msgid ""
24439 " is-socket path\n"
24440 "\n"
24441 msgstr ""
24442
24443 #. type: =head2
24444 #: ../fish/guestfish-actions.pod:2411
24445 msgid "is-symlink"
24446 msgstr ""
24447
24448 #. type: verbatim
24449 #: ../fish/guestfish-actions.pod:2413
24450 #, no-wrap
24451 msgid ""
24452 " is-symlink path\n"
24453 "\n"
24454 msgstr ""
24455
24456 #. type: =head2
24457 #: ../fish/guestfish-actions.pod:2420
24458 msgid "kill-subprocess"
24459 msgstr ""
24460
24461 #. type: verbatim
24462 #: ../fish/guestfish-actions.pod:2422
24463 #, no-wrap
24464 msgid ""
24465 " kill-subprocess\n"
24466 "\n"
24467 msgstr ""
24468
24469 #. type: =head2
24470 #: ../fish/guestfish-actions.pod:2426
24471 msgid "launch"
24472 msgstr ""
24473
24474 #. type: =head2
24475 #: ../fish/guestfish-actions.pod:2428
24476 msgid "run"
24477 msgstr ""
24478
24479 #. type: verbatim
24480 #: ../fish/guestfish-actions.pod:2430
24481 #, no-wrap
24482 msgid ""
24483 " launch\n"
24484 "\n"
24485 msgstr ""
24486
24487 #. type: =head2
24488 #: ../fish/guestfish-actions.pod:2438
24489 msgid "lchown"
24490 msgstr ""
24491
24492 #. type: verbatim
24493 #: ../fish/guestfish-actions.pod:2440
24494 #, no-wrap
24495 msgid ""
24496 " lchown owner group path\n"
24497 "\n"
24498 msgstr ""
24499
24500 #. type: textblock
24501 #: ../fish/guestfish-actions.pod:2442
24502 msgid ""
24503 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
24504 "chown> but if C<path> is a symlink then the link itself is changed, not the "
24505 "target."
24506 msgstr ""
24507
24508 #. type: =head2
24509 #: ../fish/guestfish-actions.pod:2450
24510 msgid "lgetxattr"
24511 msgstr ""
24512
24513 #. type: verbatim
24514 #: ../fish/guestfish-actions.pod:2452
24515 #, no-wrap
24516 msgid ""
24517 " lgetxattr path name\n"
24518 "\n"
24519 msgstr ""
24520
24521 #. type: textblock
24522 #: ../fish/guestfish-actions.pod:2468
24523 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
24524 msgstr ""
24525
24526 #. type: =head2
24527 #: ../fish/guestfish-actions.pod:2470
24528 msgid "lgetxattrs"
24529 msgstr ""
24530
24531 #. type: verbatim
24532 #: ../fish/guestfish-actions.pod:2472
24533 #, no-wrap
24534 msgid ""
24535 " lgetxattrs path\n"
24536 "\n"
24537 msgstr ""
24538
24539 #. type: textblock
24540 #: ../fish/guestfish-actions.pod:2474
24541 msgid ""
24542 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
24543 "it returns the extended attributes of the link itself."
24544 msgstr ""
24545
24546 #. type: =head2
24547 #: ../fish/guestfish-actions.pod:2478
24548 msgid "list-devices"
24549 msgstr ""
24550
24551 #. type: verbatim
24552 #: ../fish/guestfish-actions.pod:2480
24553 #, no-wrap
24554 msgid ""
24555 " list-devices\n"
24556 "\n"
24557 msgstr ""
24558
24559 #. type: =head2
24560 #: ../fish/guestfish-actions.pod:2488
24561 msgid "list-filesystems"
24562 msgstr ""
24563
24564 #. type: verbatim
24565 #: ../fish/guestfish-actions.pod:2490
24566 #, no-wrap
24567 msgid ""
24568 " list-filesystems\n"
24569 "\n"
24570 msgstr ""
24571
24572 #. type: textblock
24573 #: ../fish/guestfish-actions.pod:2509
24574 msgid ""
24575 "This command runs other libguestfs commands, which might include L</mount> "
24576 "and L</umount>, and therefore you should use this soon after launch and only "
24577 "when nothing is mounted."
24578 msgstr ""
24579
24580 #. type: textblock
24581 #: ../fish/guestfish-actions.pod:2513
24582 msgid ""
24583 "Not all of the filesystems returned will be mountable.  In particular, swap "
24584 "partitions are returned in the list.  Also this command does not check that "
24585 "each filesystem found is valid and mountable, and some filesystems might be "
24586 "mountable but require special options.  Filesystems may not all belong to a "
24587 "single logical operating system (use L</inspect-os> to look for OSes)."
24588 msgstr ""
24589
24590 #. type: =head2
24591 #: ../fish/guestfish-actions.pod:2521
24592 msgid "list-partitions"
24593 msgstr ""
24594
24595 #. type: verbatim
24596 #: ../fish/guestfish-actions.pod:2523
24597 #, no-wrap
24598 msgid ""
24599 " list-partitions\n"
24600 "\n"
24601 msgstr ""
24602
24603 #. type: textblock
24604 #: ../fish/guestfish-actions.pod:2529
24605 msgid ""
24606 "This does not return logical volumes.  For that you will need to call L</"
24607 "lvs>."
24608 msgstr ""
24609
24610 #. type: =head2
24611 #: ../fish/guestfish-actions.pod:2534
24612 msgid "ll"
24613 msgstr ""
24614
24615 #. type: verbatim
24616 #: ../fish/guestfish-actions.pod:2536
24617 #, no-wrap
24618 msgid ""
24619 " ll directory\n"
24620 "\n"
24621 msgstr ""
24622
24623 #. type: =head2
24624 #: ../fish/guestfish-actions.pod:2544
24625 msgid "ln"
24626 msgstr ""
24627
24628 #. type: verbatim
24629 #: ../fish/guestfish-actions.pod:2546
24630 #, no-wrap
24631 msgid ""
24632 " ln target linkname\n"
24633 "\n"
24634 msgstr ""
24635
24636 #. type: =head2
24637 #: ../fish/guestfish-actions.pod:2550
24638 msgid "ln-f"
24639 msgstr ""
24640
24641 #. type: verbatim
24642 #: ../fish/guestfish-actions.pod:2552
24643 #, no-wrap
24644 msgid ""
24645 " ln-f target linkname\n"
24646 "\n"
24647 msgstr ""
24648
24649 #. type: =head2
24650 #: ../fish/guestfish-actions.pod:2557
24651 msgid "ln-s"
24652 msgstr ""
24653
24654 #. type: verbatim
24655 #: ../fish/guestfish-actions.pod:2559
24656 #, no-wrap
24657 msgid ""
24658 " ln-s target linkname\n"
24659 "\n"
24660 msgstr ""
24661
24662 #. type: =head2
24663 #: ../fish/guestfish-actions.pod:2563
24664 msgid "ln-sf"
24665 msgstr ""
24666
24667 #. type: verbatim
24668 #: ../fish/guestfish-actions.pod:2565
24669 #, no-wrap
24670 msgid ""
24671 " ln-sf target linkname\n"
24672 "\n"
24673 msgstr ""
24674
24675 #. type: =head2
24676 #: ../fish/guestfish-actions.pod:2570
24677 msgid "lremovexattr"
24678 msgstr ""
24679
24680 #. type: verbatim
24681 #: ../fish/guestfish-actions.pod:2572
24682 #, no-wrap
24683 msgid ""
24684 " lremovexattr xattr path\n"
24685 "\n"
24686 msgstr ""
24687
24688 #. type: textblock
24689 #: ../fish/guestfish-actions.pod:2574
24690 msgid ""
24691 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
24692 "it removes an extended attribute of the link itself."
24693 msgstr ""
24694
24695 #. type: =head2
24696 #: ../fish/guestfish-actions.pod:2578
24697 msgid "ls"
24698 msgstr ""
24699
24700 #. type: verbatim
24701 #: ../fish/guestfish-actions.pod:2580
24702 #, no-wrap
24703 msgid ""
24704 " ls directory\n"
24705 "\n"
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../fish/guestfish-actions.pod:2586
24710 msgid ""
24711 "This command is mostly useful for interactive sessions.  Programs should "
24712 "probably use L</readdir> instead."
24713 msgstr ""
24714
24715 #. type: =head2
24716 #: ../fish/guestfish-actions.pod:2589
24717 msgid "lsetxattr"
24718 msgstr ""
24719
24720 #. type: verbatim
24721 #: ../fish/guestfish-actions.pod:2591
24722 #, no-wrap
24723 msgid ""
24724 " lsetxattr xattr val vallen path\n"
24725 "\n"
24726 msgstr ""
24727
24728 #. type: textblock
24729 #: ../fish/guestfish-actions.pod:2593
24730 msgid ""
24731 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
24732 "sets an extended attribute of the link itself."
24733 msgstr ""
24734
24735 #. type: =head2
24736 #: ../fish/guestfish-actions.pod:2597
24737 msgid "lstat"
24738 msgstr ""
24739
24740 #. type: verbatim
24741 #: ../fish/guestfish-actions.pod:2599
24742 #, no-wrap
24743 msgid ""
24744 " lstat path\n"
24745 "\n"
24746 msgstr ""
24747
24748 #. type: textblock
24749 #: ../fish/guestfish-actions.pod:2603
24750 msgid ""
24751 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
24752 "the link is stat-ed, not the file it refers to."
24753 msgstr ""
24754
24755 #. type: =head2
24756 #: ../fish/guestfish-actions.pod:2609
24757 msgid "lstatlist"
24758 msgstr ""
24759
24760 #. type: verbatim
24761 #: ../fish/guestfish-actions.pod:2611
24762 #, no-wrap
24763 msgid ""
24764 " lstatlist path 'names ...'\n"
24765 "\n"
24766 msgstr ""
24767
24768 #. type: textblock
24769 #: ../fish/guestfish-actions.pod:2613
24770 msgid ""
24771 "This call allows you to perform the L</lstat> operation on multiple files, "
24772 "where all files are in the directory C<path>.  C<names> is the list of files "
24773 "from this directory."
24774 msgstr ""
24775
24776 #. type: textblock
24777 #: ../fish/guestfish-actions.pod:2622
24778 msgid ""
24779 "This call is intended for programs that want to efficiently list a directory "
24780 "contents without making many round-trips.  See also L</lxattrlist> for a "
24781 "similarly efficient call for getting extended attributes.  Very long "
24782 "directory listings might cause the protocol message size to be exceeded, "
24783 "causing this call to fail.  The caller must split up such requests into "
24784 "smaller groups of names."
24785 msgstr ""
24786
24787 #. type: =head2
24788 #: ../fish/guestfish-actions.pod:2630
24789 msgid "luks-add-key"
24790 msgstr ""
24791
24792 #. type: verbatim
24793 #: ../fish/guestfish-actions.pod:2632
24794 #, no-wrap
24795 msgid ""
24796 " luks-add-key device keyslot\n"
24797 "\n"
24798 msgstr ""
24799
24800 #. type: textblock
24801 #: ../fish/guestfish-actions.pod:2639
24802 msgid ""
24803 "Note that if C<keyslot> already contains a key, then this command will "
24804 "fail.  You have to use L</luks-kill-slot> first to remove that key."
24805 msgstr ""
24806
24807 #. type: textblock
24808 #: ../fish/guestfish-actions.pod:2643 ../fish/guestfish-actions.pod:2665
24809 #: ../fish/guestfish-actions.pod:2678 ../fish/guestfish-actions.pod:2692
24810 #: ../fish/guestfish-actions.pod:2715 ../fish/guestfish-actions.pod:2725
24811 msgid ""
24812 "This command has one or more key or passphrase parameters.  Guestfish will "
24813 "prompt for these separately."
24814 msgstr ""
24815
24816 #. type: =head2
24817 #: ../fish/guestfish-actions.pod:2646
24818 msgid "luks-close"
24819 msgstr ""
24820
24821 #. type: verbatim
24822 #: ../fish/guestfish-actions.pod:2648
24823 #, no-wrap
24824 msgid ""
24825 " luks-close device\n"
24826 "\n"
24827 msgstr ""
24828
24829 #. type: textblock
24830 #: ../fish/guestfish-actions.pod:2650
24831 msgid ""
24832 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
24833 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
24834 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
24835 "block device."
24836 msgstr ""
24837
24838 #. type: =head2
24839 #: ../fish/guestfish-actions.pod:2656
24840 msgid "luks-format"
24841 msgstr ""
24842
24843 #. type: verbatim
24844 #: ../fish/guestfish-actions.pod:2658
24845 #, no-wrap
24846 msgid ""
24847 " luks-format device keyslot\n"
24848 "\n"
24849 msgstr ""
24850
24851 #. type: =head2
24852 #: ../fish/guestfish-actions.pod:2671
24853 msgid "luks-format-cipher"
24854 msgstr ""
24855
24856 #. type: verbatim
24857 #: ../fish/guestfish-actions.pod:2673
24858 #, no-wrap
24859 msgid ""
24860 " luks-format-cipher device keyslot cipher\n"
24861 "\n"
24862 msgstr ""
24863
24864 #. type: textblock
24865 #: ../fish/guestfish-actions.pod:2675
24866 msgid ""
24867 "This command is the same as L</luks-format> but it also allows you to set "
24868 "the C<cipher> used."
24869 msgstr ""
24870
24871 #. type: =head2
24872 #: ../fish/guestfish-actions.pod:2684
24873 msgid "luks-kill-slot"
24874 msgstr ""
24875
24876 #. type: verbatim
24877 #: ../fish/guestfish-actions.pod:2686
24878 #, no-wrap
24879 msgid ""
24880 " luks-kill-slot device keyslot\n"
24881 "\n"
24882 msgstr ""
24883
24884 #. type: =head2
24885 #: ../fish/guestfish-actions.pod:2695
24886 msgid "luks-open"
24887 msgstr ""
24888
24889 #. type: verbatim
24890 #: ../fish/guestfish-actions.pod:2697
24891 #, no-wrap
24892 msgid ""
24893 " luks-open device mapname\n"
24894 "\n"
24895 msgstr ""
24896
24897 #. type: textblock
24898 #: ../fish/guestfish-actions.pod:2711
24899 msgid ""
24900 "If this block device contains LVM volume groups, then calling L</vgscan> "
24901 "followed by L</vg-activate-all> will make them visible."
24902 msgstr ""
24903
24904 #. type: =head2
24905 #: ../fish/guestfish-actions.pod:2718
24906 msgid "luks-open-ro"
24907 msgstr ""
24908
24909 #. type: verbatim
24910 #: ../fish/guestfish-actions.pod:2720
24911 #, no-wrap
24912 msgid ""
24913 " luks-open-ro device mapname\n"
24914 "\n"
24915 msgstr ""
24916
24917 #. type: textblock
24918 #: ../fish/guestfish-actions.pod:2722
24919 msgid ""
24920 "This is the same as L</luks-open> except that a read-only mapping is created."
24921 msgstr ""
24922
24923 #. type: =head2
24924 #: ../fish/guestfish-actions.pod:2728
24925 msgid "lvcreate"
24926 msgstr ""
24927
24928 #. type: verbatim
24929 #: ../fish/guestfish-actions.pod:2730
24930 #, no-wrap
24931 msgid ""
24932 " lvcreate logvol volgroup mbytes\n"
24933 "\n"
24934 msgstr ""
24935
24936 #. type: =head2
24937 #: ../fish/guestfish-actions.pod:2735
24938 msgid "lvm-canonical-lv-name"
24939 msgstr ""
24940
24941 #. type: verbatim
24942 #: ../fish/guestfish-actions.pod:2737
24943 #, no-wrap
24944 msgid ""
24945 " lvm-canonical-lv-name lvname\n"
24946 "\n"
24947 msgstr ""
24948
24949 #. type: textblock
24950 #: ../fish/guestfish-actions.pod:2746
24951 msgid "See also L</is-lv>."
24952 msgstr ""
24953
24954 #. type: =head2
24955 #: ../fish/guestfish-actions.pod:2748
24956 msgid "lvm-clear-filter"
24957 msgstr ""
24958
24959 #. type: verbatim
24960 #: ../fish/guestfish-actions.pod:2750
24961 #, no-wrap
24962 msgid ""
24963 " lvm-clear-filter\n"
24964 "\n"
24965 msgstr ""
24966
24967 #. type: textblock
24968 #: ../fish/guestfish-actions.pod:2752
24969 msgid ""
24970 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
24971 "block device."
24972 msgstr ""
24973
24974 #. type: =head2
24975 #: ../fish/guestfish-actions.pod:2758
24976 msgid "lvm-remove-all"
24977 msgstr ""
24978
24979 #. type: verbatim
24980 #: ../fish/guestfish-actions.pod:2760
24981 #, no-wrap
24982 msgid ""
24983 " lvm-remove-all\n"
24984 "\n"
24985 msgstr ""
24986
24987 #. type: =head2
24988 #: ../fish/guestfish-actions.pod:2768
24989 msgid "lvm-set-filter"
24990 msgstr ""
24991
24992 #. type: verbatim
24993 #: ../fish/guestfish-actions.pod:2770
24994 #, no-wrap
24995 msgid ""
24996 " lvm-set-filter 'devices ...'\n"
24997 "\n"
24998 msgstr ""
24999
25000 #. type: =head2
25001 #: ../fish/guestfish-actions.pod:2795
25002 msgid "lvremove"
25003 msgstr ""
25004
25005 #. type: verbatim
25006 #: ../fish/guestfish-actions.pod:2797
25007 #, no-wrap
25008 msgid ""
25009 " lvremove device\n"
25010 "\n"
25011 msgstr ""
25012
25013 #. type: =head2
25014 #: ../fish/guestfish-actions.pod:2805
25015 msgid "lvrename"
25016 msgstr ""
25017
25018 #. type: verbatim
25019 #: ../fish/guestfish-actions.pod:2807
25020 #, no-wrap
25021 msgid ""
25022 " lvrename logvol newlogvol\n"
25023 "\n"
25024 msgstr ""
25025
25026 #. type: =head2
25027 #: ../fish/guestfish-actions.pod:2811
25028 msgid "lvresize"
25029 msgstr ""
25030
25031 #. type: verbatim
25032 #: ../fish/guestfish-actions.pod:2813
25033 #, no-wrap
25034 msgid ""
25035 " lvresize device mbytes\n"
25036 "\n"
25037 msgstr ""
25038
25039 #. type: =head2
25040 #: ../fish/guestfish-actions.pod:2819
25041 msgid "lvresize-free"
25042 msgstr ""
25043
25044 #. type: verbatim
25045 #: ../fish/guestfish-actions.pod:2821
25046 #, no-wrap
25047 msgid ""
25048 " lvresize-free lv percent\n"
25049 "\n"
25050 msgstr ""
25051
25052 #. type: =head2
25053 #: ../fish/guestfish-actions.pod:2829
25054 msgid "lvs"
25055 msgstr ""
25056
25057 #. type: verbatim
25058 #: ../fish/guestfish-actions.pod:2831
25059 #, no-wrap
25060 msgid ""
25061 " lvs\n"
25062 "\n"
25063 msgstr ""
25064
25065 #. type: textblock
25066 #: ../fish/guestfish-actions.pod:2839
25067 msgid "See also L</lvs-full>, L</list-filesystems>."
25068 msgstr ""
25069
25070 #. type: =head2
25071 #: ../fish/guestfish-actions.pod:2841
25072 msgid "lvs-full"
25073 msgstr ""
25074
25075 #. type: verbatim
25076 #: ../fish/guestfish-actions.pod:2843
25077 #, no-wrap
25078 msgid ""
25079 " lvs-full\n"
25080 "\n"
25081 msgstr ""
25082
25083 #. type: =head2
25084 #: ../fish/guestfish-actions.pod:2848
25085 msgid "lvuuid"
25086 msgstr ""
25087
25088 #. type: verbatim
25089 #: ../fish/guestfish-actions.pod:2850
25090 #, no-wrap
25091 msgid ""
25092 " lvuuid device\n"
25093 "\n"
25094 msgstr ""
25095
25096 #. type: =head2
25097 #: ../fish/guestfish-actions.pod:2854
25098 msgid "lxattrlist"
25099 msgstr ""
25100
25101 #. type: verbatim
25102 #: ../fish/guestfish-actions.pod:2856
25103 #, no-wrap
25104 msgid ""
25105 " lxattrlist path 'names ...'\n"
25106 "\n"
25107 msgstr ""
25108
25109 #. type: textblock
25110 #: ../fish/guestfish-actions.pod:2872
25111 msgid ""
25112 "This call is intended for programs that want to efficiently list a directory "
25113 "contents without making many round-trips.  See also L</lstatlist> for a "
25114 "similarly efficient call for getting standard stats.  Very long directory "
25115 "listings might cause the protocol message size to be exceeded, causing this "
25116 "call to fail.  The caller must split up such requests into smaller groups of "
25117 "names."
25118 msgstr ""
25119
25120 #. type: =head2
25121 #: ../fish/guestfish-actions.pod:2880
25122 msgid "mkdir"
25123 msgstr ""
25124
25125 #. type: verbatim
25126 #: ../fish/guestfish-actions.pod:2882
25127 #, no-wrap
25128 msgid ""
25129 " mkdir path\n"
25130 "\n"
25131 msgstr ""
25132
25133 #. type: =head2
25134 #: ../fish/guestfish-actions.pod:2886
25135 msgid "mkdir-mode"
25136 msgstr ""
25137
25138 #. type: verbatim
25139 #: ../fish/guestfish-actions.pod:2888
25140 #, no-wrap
25141 msgid ""
25142 " mkdir-mode path mode\n"
25143 "\n"
25144 msgstr ""
25145
25146 #. type: textblock
25147 #: ../fish/guestfish-actions.pod:2897
25148 msgid "See also L</mkdir>, L</umask>"
25149 msgstr ""
25150
25151 #. type: =head2
25152 #: ../fish/guestfish-actions.pod:2899
25153 msgid "mkdir-p"
25154 msgstr ""
25155
25156 #. type: verbatim
25157 #: ../fish/guestfish-actions.pod:2901
25158 #, no-wrap
25159 msgid ""
25160 " mkdir-p path\n"
25161 "\n"
25162 msgstr ""
25163
25164 #. type: =head2
25165 #: ../fish/guestfish-actions.pod:2906
25166 msgid "mkdtemp"
25167 msgstr ""
25168
25169 #. type: verbatim
25170 #: ../fish/guestfish-actions.pod:2908
25171 #, no-wrap
25172 msgid ""
25173 " mkdtemp template\n"
25174 "\n"
25175 msgstr ""
25176
25177 #. type: =head2
25178 #: ../fish/guestfish-actions.pod:2929
25179 msgid "mke2fs-J"
25180 msgstr ""
25181
25182 #. type: verbatim
25183 #: ../fish/guestfish-actions.pod:2931
25184 #, no-wrap
25185 msgid ""
25186 " mke2fs-J fstype blocksize device journal\n"
25187 "\n"
25188 msgstr ""
25189
25190 #. type: textblock
25191 #: ../fish/guestfish-actions.pod:2939
25192 msgid "See also L</mke2journal>."
25193 msgstr ""
25194
25195 #. type: =head2
25196 #: ../fish/guestfish-actions.pod:2941
25197 msgid "mke2fs-JL"
25198 msgstr ""
25199
25200 #. type: verbatim
25201 #: ../fish/guestfish-actions.pod:2943
25202 #, no-wrap
25203 msgid ""
25204 " mke2fs-JL fstype blocksize device label\n"
25205 "\n"
25206 msgstr ""
25207
25208 #. type: textblock
25209 #: ../fish/guestfish-actions.pod:2948
25210 msgid "See also L</mke2journal-L>."
25211 msgstr ""
25212
25213 #. type: =head2
25214 #: ../fish/guestfish-actions.pod:2950
25215 msgid "mke2fs-JU"
25216 msgstr ""
25217
25218 #. type: verbatim
25219 #: ../fish/guestfish-actions.pod:2952
25220 #, no-wrap
25221 msgid ""
25222 " mke2fs-JU fstype blocksize device uuid\n"
25223 "\n"
25224 msgstr ""
25225
25226 #. type: textblock
25227 #: ../fish/guestfish-actions.pod:2957
25228 msgid "See also L</mke2journal-U>."
25229 msgstr ""
25230
25231 #. type: =head2
25232 #: ../fish/guestfish-actions.pod:2959
25233 msgid "mke2journal"
25234 msgstr ""
25235
25236 #. type: verbatim
25237 #: ../fish/guestfish-actions.pod:2961
25238 #, no-wrap
25239 msgid ""
25240 " mke2journal blocksize device\n"
25241 "\n"
25242 msgstr ""
25243
25244 #. type: =head2
25245 #: ../fish/guestfish-actions.pod:2968
25246 msgid "mke2journal-L"
25247 msgstr ""
25248
25249 #. type: verbatim
25250 #: ../fish/guestfish-actions.pod:2970
25251 #, no-wrap
25252 msgid ""
25253 " mke2journal-L blocksize label device\n"
25254 "\n"
25255 msgstr ""
25256
25257 #. type: =head2
25258 #: ../fish/guestfish-actions.pod:2974
25259 msgid "mke2journal-U"
25260 msgstr ""
25261
25262 #. type: verbatim
25263 #: ../fish/guestfish-actions.pod:2976
25264 #, no-wrap
25265 msgid ""
25266 " mke2journal-U blocksize uuid device\n"
25267 "\n"
25268 msgstr ""
25269
25270 #. type: =head2
25271 #: ../fish/guestfish-actions.pod:2980
25272 msgid "mkfifo"
25273 msgstr ""
25274
25275 #. type: verbatim
25276 #: ../fish/guestfish-actions.pod:2982
25277 #, no-wrap
25278 msgid ""
25279 " mkfifo mode path\n"
25280 "\n"
25281 msgstr ""
25282
25283 #. type: textblock
25284 #: ../fish/guestfish-actions.pod:2984
25285 msgid ""
25286 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
25287 "is just a convenient wrapper around L</mknod>."
25288 msgstr ""
25289
25290 #. type: =head2
25291 #: ../fish/guestfish-actions.pod:2990
25292 msgid "mkfs"
25293 msgstr ""
25294
25295 #. type: verbatim
25296 #: ../fish/guestfish-actions.pod:2992
25297 #, no-wrap
25298 msgid ""
25299 " mkfs fstype device\n"
25300 "\n"
25301 msgstr ""
25302
25303 #. type: =head2
25304 #: ../fish/guestfish-actions.pod:2998
25305 msgid "mkfs-b"
25306 msgstr ""
25307
25308 #. type: verbatim
25309 #: ../fish/guestfish-actions.pod:3000
25310 #, no-wrap
25311 msgid ""
25312 " mkfs-b fstype blocksize device\n"
25313 "\n"
25314 msgstr ""
25315
25316 #. type: textblock
25317 #: ../fish/guestfish-actions.pod:3002
25318 msgid ""
25319 "This call is similar to L</mkfs>, but it allows you to control the block "
25320 "size of the resulting filesystem.  Supported block sizes depend on the "
25321 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
25322 msgstr ""
25323
25324 #. type: =head2
25325 #: ../fish/guestfish-actions.pod:3017
25326 msgid "mkfs-opts"
25327 msgstr ""
25328
25329 #. type: verbatim
25330 #: ../fish/guestfish-actions.pod:3019
25331 #, no-wrap
25332 msgid ""
25333 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
25334 "\n"
25335 msgstr ""
25336
25337 #. type: =head2
25338 #: ../fish/guestfish-actions.pod:3054
25339 msgid "mkmountpoint"
25340 msgstr ""
25341
25342 #. type: verbatim
25343 #: ../fish/guestfish-actions.pod:3056
25344 #, no-wrap
25345 msgid ""
25346 " mkmountpoint exemptpath\n"
25347 "\n"
25348 msgstr ""
25349
25350 #. type: textblock
25351 #: ../fish/guestfish-actions.pod:3058
25352 msgid ""
25353 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
25354 "to create extra mountpoints before mounting the first filesystem."
25355 msgstr ""
25356
25357 #. type: textblock
25358 #: ../fish/guestfish-actions.pod:3082
25359 msgid ""
25360 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
25361 "unexpected errors if you try to mix these calls.  It is safest to manually "
25362 "unmount filesystems and remove mountpoints after use."
25363 msgstr ""
25364
25365 #. type: textblock
25366 #: ../fish/guestfish-actions.pod:3086
25367 msgid ""
25368 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
25369 "for this to work for manual mountpoints, you must ensure that the innermost "
25370 "mountpoints have the longest pathnames, as in the example code above."
25371 msgstr ""
25372
25373 #. type: textblock
25374 #: ../fish/guestfish-actions.pod:3093
25375 msgid ""
25376 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
25377 "L</umount-all> to be called when the handle is closed which can also trigger "
25378 "these issues."
25379 msgstr ""
25380
25381 #. type: =head2
25382 #: ../fish/guestfish-actions.pod:3097
25383 msgid "mknod"
25384 msgstr ""
25385
25386 #. type: verbatim
25387 #: ../fish/guestfish-actions.pod:3099
25388 #, no-wrap
25389 msgid ""
25390 " mknod mode devmajor devminor path\n"
25391 "\n"
25392 msgstr ""
25393
25394 #. type: textblock
25395 #: ../fish/guestfish-actions.pod:3109
25396 msgid ""
25397 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
25398 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
25399 "regular file).  These constants are available in the standard Linux header "
25400 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
25401 "wrappers around this command which bitwise OR in the appropriate constant "
25402 "for you."
25403 msgstr ""
25404
25405 #. type: =head2
25406 #: ../fish/guestfish-actions.pod:3119
25407 msgid "mknod-b"
25408 msgstr ""
25409
25410 #. type: verbatim
25411 #: ../fish/guestfish-actions.pod:3121
25412 #, no-wrap
25413 msgid ""
25414 " mknod-b mode devmajor devminor path\n"
25415 "\n"
25416 msgstr ""
25417
25418 #. type: textblock
25419 #: ../fish/guestfish-actions.pod:3123
25420 msgid ""
25421 "This call creates a block device node called C<path> with mode C<mode> and "
25422 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25423 "wrapper around L</mknod>."
25424 msgstr ""
25425
25426 #. type: =head2
25427 #: ../fish/guestfish-actions.pod:3129
25428 msgid "mknod-c"
25429 msgstr ""
25430
25431 #. type: verbatim
25432 #: ../fish/guestfish-actions.pod:3131
25433 #, no-wrap
25434 msgid ""
25435 " mknod-c mode devmajor devminor path\n"
25436 "\n"
25437 msgstr ""
25438
25439 #. type: textblock
25440 #: ../fish/guestfish-actions.pod:3133
25441 msgid ""
25442 "This call creates a char device node called C<path> with mode C<mode> and "
25443 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25444 "wrapper around L</mknod>."
25445 msgstr ""
25446
25447 #. type: =head2
25448 #: ../fish/guestfish-actions.pod:3139
25449 msgid "mkswap"
25450 msgstr ""
25451
25452 #. type: verbatim
25453 #: ../fish/guestfish-actions.pod:3141
25454 #, no-wrap
25455 msgid ""
25456 " mkswap device\n"
25457 "\n"
25458 msgstr ""
25459
25460 #. type: =head2
25461 #: ../fish/guestfish-actions.pod:3145
25462 msgid "mkswap-L"
25463 msgstr ""
25464
25465 #. type: verbatim
25466 #: ../fish/guestfish-actions.pod:3147
25467 #, no-wrap
25468 msgid ""
25469 " mkswap-L label device\n"
25470 "\n"
25471 msgstr ""
25472
25473 #. type: =head2
25474 #: ../fish/guestfish-actions.pod:3155
25475 msgid "mkswap-U"
25476 msgstr ""
25477
25478 #. type: verbatim
25479 #: ../fish/guestfish-actions.pod:3157
25480 #, no-wrap
25481 msgid ""
25482 " mkswap-U uuid device\n"
25483 "\n"
25484 msgstr ""
25485
25486 #. type: =head2
25487 #: ../fish/guestfish-actions.pod:3161
25488 msgid "mkswap-file"
25489 msgstr ""
25490
25491 #. type: verbatim
25492 #: ../fish/guestfish-actions.pod:3163
25493 #, no-wrap
25494 msgid ""
25495 " mkswap-file path\n"
25496 "\n"
25497 msgstr ""
25498
25499 #. type: textblock
25500 #: ../fish/guestfish-actions.pod:3167
25501 msgid ""
25502 "This command just writes a swap file signature to an existing file.  To "
25503 "create the file itself, use something like L</fallocate>."
25504 msgstr ""
25505
25506 #. type: =head2
25507 #: ../fish/guestfish-actions.pod:3170
25508 msgid "modprobe"
25509 msgstr ""
25510
25511 #. type: verbatim
25512 #: ../fish/guestfish-actions.pod:3172
25513 #, no-wrap
25514 msgid ""
25515 " modprobe modulename\n"
25516 "\n"
25517 msgstr ""
25518
25519 #. type: =head2
25520 #: ../fish/guestfish-actions.pod:3179
25521 msgid "mount"
25522 msgstr ""
25523
25524 #. type: verbatim
25525 #: ../fish/guestfish-actions.pod:3181
25526 #, no-wrap
25527 msgid ""
25528 " mount device mountpoint\n"
25529 "\n"
25530 msgstr ""
25531
25532 #. type: textblock
25533 #: ../fish/guestfish-actions.pod:3197
25534 msgid ""
25535 "B<Important note:> When you use this call, the filesystem options C<sync> "
25536 "and C<noatime> are set implicitly.  This was originally done because we "
25537 "thought it would improve reliability, but it turns out that I<-o sync> has a "
25538 "very large negative performance impact and negligible effect on "
25539 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
25540 "code that needs performance, and instead use L</mount-options> (use an empty "
25541 "string for the first parameter if you don't want any options)."
25542 msgstr ""
25543
25544 #. type: =head2
25545 #: ../fish/guestfish-actions.pod:3214
25546 msgid "mount-loop"
25547 msgstr ""
25548
25549 #. type: verbatim
25550 #: ../fish/guestfish-actions.pod:3216
25551 #, no-wrap
25552 msgid ""
25553 " mount-loop file mountpoint\n"
25554 "\n"
25555 msgstr ""
25556
25557 #. type: =head2
25558 #: ../fish/guestfish-actions.pod:3222
25559 msgid "mount-options"
25560 msgstr ""
25561
25562 #. type: verbatim
25563 #: ../fish/guestfish-actions.pod:3224
25564 #, no-wrap
25565 msgid ""
25566 " mount-options options device mountpoint\n"
25567 "\n"
25568 msgstr ""
25569
25570 #. type: textblock
25571 #: ../fish/guestfish-actions.pod:3226
25572 msgid ""
25573 "This is the same as the L</mount> command, but it allows you to set the "
25574 "mount options as for the L<mount(8)> I<-o> flag."
25575 msgstr ""
25576
25577 #. type: =head2
25578 #: ../fish/guestfish-actions.pod:3234
25579 msgid "mount-ro"
25580 msgstr ""
25581
25582 #. type: verbatim
25583 #: ../fish/guestfish-actions.pod:3236
25584 #, no-wrap
25585 msgid ""
25586 " mount-ro device mountpoint\n"
25587 "\n"
25588 msgstr ""
25589
25590 #. type: textblock
25591 #: ../fish/guestfish-actions.pod:3238
25592 msgid ""
25593 "This is the same as the L</mount> command, but it mounts the filesystem with "
25594 "the read-only (I<-o ro>) flag."
25595 msgstr ""
25596
25597 #. type: =head2
25598 #: ../fish/guestfish-actions.pod:3241
25599 msgid "mount-vfs"
25600 msgstr ""
25601
25602 #. type: verbatim
25603 #: ../fish/guestfish-actions.pod:3243
25604 #, no-wrap
25605 msgid ""
25606 " mount-vfs options vfstype device mountpoint\n"
25607 "\n"
25608 msgstr ""
25609
25610 #. type: textblock
25611 #: ../fish/guestfish-actions.pod:3245
25612 msgid ""
25613 "This is the same as the L</mount> command, but it allows you to set both the "
25614 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
25615 msgstr ""
25616
25617 #. type: =head2
25618 #: ../fish/guestfish-actions.pod:3249
25619 msgid "mountpoints"
25620 msgstr ""
25621
25622 #. type: verbatim
25623 #: ../fish/guestfish-actions.pod:3251
25624 #, no-wrap
25625 msgid ""
25626 " mountpoints\n"
25627 "\n"
25628 msgstr ""
25629
25630 #. type: textblock
25631 #: ../fish/guestfish-actions.pod:3253
25632 msgid ""
25633 "This call is similar to L</mounts>.  That call returns a list of devices.  "
25634 "This one returns a hash table (map) of device name to directory where the "
25635 "device is mounted."
25636 msgstr ""
25637
25638 #. type: =head2
25639 #: ../fish/guestfish-actions.pod:3257
25640 msgid "mounts"
25641 msgstr ""
25642
25643 #. type: verbatim
25644 #: ../fish/guestfish-actions.pod:3259
25645 #, no-wrap
25646 msgid ""
25647 " mounts\n"
25648 "\n"
25649 msgstr ""
25650
25651 #. type: textblock
25652 #: ../fish/guestfish-actions.pod:3266
25653 msgid "See also: L</mountpoints>"
25654 msgstr ""
25655
25656 #. type: =head2
25657 #: ../fish/guestfish-actions.pod:3268
25658 msgid "mv"
25659 msgstr ""
25660
25661 #. type: verbatim
25662 #: ../fish/guestfish-actions.pod:3270
25663 #, no-wrap
25664 msgid ""
25665 " mv src dest\n"
25666 "\n"
25667 msgstr ""
25668
25669 #. type: =head2
25670 #: ../fish/guestfish-actions.pod:3275
25671 msgid "ntfs-3g-probe"
25672 msgstr ""
25673
25674 #. type: verbatim
25675 #: ../fish/guestfish-actions.pod:3277
25676 #, no-wrap
25677 msgid ""
25678 " ntfs-3g-probe true|false device\n"
25679 "\n"
25680 msgstr ""
25681
25682 #. type: =head2
25683 #: ../fish/guestfish-actions.pod:3291
25684 msgid "ntfsresize"
25685 msgstr ""
25686
25687 #. type: verbatim
25688 #: ../fish/guestfish-actions.pod:3293
25689 #, no-wrap
25690 msgid ""
25691 " ntfsresize device\n"
25692 "\n"
25693 msgstr ""
25694
25695 #. type: =head2
25696 #: ../fish/guestfish-actions.pod:3299
25697 msgid "ntfsresize-size"
25698 msgstr ""
25699
25700 #. type: verbatim
25701 #: ../fish/guestfish-actions.pod:3301
25702 #, no-wrap
25703 msgid ""
25704 " ntfsresize-size device size\n"
25705 "\n"
25706 msgstr ""
25707
25708 #. type: textblock
25709 #: ../fish/guestfish-actions.pod:3303
25710 msgid ""
25711 "This command is the same as L</ntfsresize> except that it allows you to "
25712 "specify the new size (in bytes) explicitly."
25713 msgstr ""
25714
25715 #. type: =head2
25716 #: ../fish/guestfish-actions.pod:3306
25717 msgid "part-add"
25718 msgstr ""
25719
25720 #. type: verbatim
25721 #: ../fish/guestfish-actions.pod:3308
25722 #, no-wrap
25723 msgid ""
25724 " part-add device prlogex startsect endsect\n"
25725 "\n"
25726 msgstr ""
25727
25728 #. type: textblock
25729 #: ../fish/guestfish-actions.pod:3310
25730 msgid ""
25731 "This command adds a partition to C<device>.  If there is no partition table "
25732 "on the device, call L</part-init> first."
25733 msgstr ""
25734
25735 #. type: textblock
25736 #: ../fish/guestfish-actions.pod:3322
25737 msgid ""
25738 "Creating a partition which covers the whole disk is not so easy.  Use L</"
25739 "part-disk> to do that."
25740 msgstr ""
25741
25742 #. type: =head2
25743 #: ../fish/guestfish-actions.pod:3325
25744 msgid "part-del"
25745 msgstr ""
25746
25747 #. type: verbatim
25748 #: ../fish/guestfish-actions.pod:3327
25749 #, no-wrap
25750 msgid ""
25751 " part-del device partnum\n"
25752 "\n"
25753 msgstr ""
25754
25755 #. type: =head2
25756 #: ../fish/guestfish-actions.pod:3335
25757 msgid "part-disk"
25758 msgstr ""
25759
25760 #. type: verbatim
25761 #: ../fish/guestfish-actions.pod:3337
25762 #, no-wrap
25763 msgid ""
25764 " part-disk device parttype\n"
25765 "\n"
25766 msgstr ""
25767
25768 #. type: textblock
25769 #: ../fish/guestfish-actions.pod:3339
25770 msgid ""
25771 "This command is simply a combination of L</part-init> followed by L</part-"
25772 "add> to create a single primary partition covering the whole disk."
25773 msgstr ""
25774
25775 #. type: textblock
25776 #: ../fish/guestfish-actions.pod:3343
25777 msgid ""
25778 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
25779 "possible values are described in L</part-init>."
25780 msgstr ""
25781
25782 #. type: =head2
25783 #: ../fish/guestfish-actions.pod:3349
25784 msgid "part-get-bootable"
25785 msgstr ""
25786
25787 #. type: verbatim
25788 #: ../fish/guestfish-actions.pod:3351
25789 #, no-wrap
25790 msgid ""
25791 " part-get-bootable device partnum\n"
25792 "\n"
25793 msgstr ""
25794
25795 #. type: textblock
25796 #: ../fish/guestfish-actions.pod:3356
25797 msgid "See also L</part-set-bootable>."
25798 msgstr ""
25799
25800 #. type: =head2
25801 #: ../fish/guestfish-actions.pod:3358
25802 msgid "part-get-mbr-id"
25803 msgstr ""
25804
25805 #. type: verbatim
25806 #: ../fish/guestfish-actions.pod:3360
25807 #, no-wrap
25808 msgid ""
25809 " part-get-mbr-id device partnum\n"
25810 "\n"
25811 msgstr ""
25812
25813 #. type: textblock
25814 #: ../fish/guestfish-actions.pod:3365 ../fish/guestfish-actions.pod:3503
25815 msgid ""
25816 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
25817 "undefined results for other partition table types (see L</part-get-"
25818 "parttype>)."
25819 msgstr ""
25820
25821 #. type: =head2
25822 #: ../fish/guestfish-actions.pod:3369
25823 msgid "part-get-parttype"
25824 msgstr ""
25825
25826 #. type: verbatim
25827 #: ../fish/guestfish-actions.pod:3371
25828 #, no-wrap
25829 msgid ""
25830 " part-get-parttype device\n"
25831 "\n"
25832 msgstr ""
25833
25834 #. type: textblock
25835 #: ../fish/guestfish-actions.pod:3376
25836 msgid ""
25837 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
25838 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
25839 "possible, although unusual.  See L</part-init> for a full list."
25840 msgstr ""
25841
25842 #. type: =head2
25843 #: ../fish/guestfish-actions.pod:3381
25844 msgid "part-init"
25845 msgstr ""
25846
25847 #. type: verbatim
25848 #: ../fish/guestfish-actions.pod:3383
25849 #, no-wrap
25850 msgid ""
25851 " part-init device parttype\n"
25852 "\n"
25853 msgstr ""
25854
25855 #. type: textblock
25856 #: ../fish/guestfish-actions.pod:3389
25857 msgid ""
25858 "Initially there are no partitions.  Following this, you should call L</part-"
25859 "add> for each partition required."
25860 msgstr ""
25861
25862 #. type: =head2
25863 #: ../fish/guestfish-actions.pod:3452
25864 msgid "part-list"
25865 msgstr ""
25866
25867 #. type: verbatim
25868 #: ../fish/guestfish-actions.pod:3454
25869 #, no-wrap
25870 msgid ""
25871 " part-list device\n"
25872 "\n"
25873 msgstr ""
25874
25875 #. type: textblock
25876 #: ../fish/guestfish-actions.pod:3469
25877 msgid ""
25878 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
25879 "the device's sector size, see L</blockdev-getss>."
25880 msgstr ""
25881
25882 #. type: =head2
25883 #: ../fish/guestfish-actions.pod:3482
25884 msgid "part-set-bootable"
25885 msgstr ""
25886
25887 #. type: verbatim
25888 #: ../fish/guestfish-actions.pod:3484
25889 #, no-wrap
25890 msgid ""
25891 " part-set-bootable device partnum true|false\n"
25892 "\n"
25893 msgstr ""
25894
25895 #. type: =head2
25896 #: ../fish/guestfish-actions.pod:3493
25897 msgid "part-set-mbr-id"
25898 msgstr ""
25899
25900 #. type: verbatim
25901 #: ../fish/guestfish-actions.pod:3495
25902 #, no-wrap
25903 msgid ""
25904 " part-set-mbr-id device partnum idbyte\n"
25905 "\n"
25906 msgstr ""
25907
25908 #. type: =head2
25909 #: ../fish/guestfish-actions.pod:3507
25910 msgid "part-set-name"
25911 msgstr ""
25912
25913 #. type: verbatim
25914 #: ../fish/guestfish-actions.pod:3509
25915 #, no-wrap
25916 msgid ""
25917 " part-set-name device partnum name\n"
25918 "\n"
25919 msgstr ""
25920
25921 #. type: =head2
25922 #: ../fish/guestfish-actions.pod:3517
25923 msgid "part-to-dev"
25924 msgstr ""
25925
25926 #. type: verbatim
25927 #: ../fish/guestfish-actions.pod:3519
25928 #, no-wrap
25929 msgid ""
25930 " part-to-dev partition\n"
25931 "\n"
25932 msgstr ""
25933
25934 #. type: textblock
25935 #: ../fish/guestfish-actions.pod:3525
25936 msgid ""
25937 "The named partition must exist, for example as a string returned from L</"
25938 "list-partitions>."
25939 msgstr ""
25940
25941 #. type: =head2
25942 #: ../fish/guestfish-actions.pod:3528
25943 msgid "ping-daemon"
25944 msgstr ""
25945
25946 #. type: verbatim
25947 #: ../fish/guestfish-actions.pod:3530
25948 #, no-wrap
25949 msgid ""
25950 " ping-daemon\n"
25951 "\n"
25952 msgstr ""
25953
25954 #. type: =head2
25955 #: ../fish/guestfish-actions.pod:3537
25956 msgid "pread"
25957 msgstr ""
25958
25959 #. type: verbatim
25960 #: ../fish/guestfish-actions.pod:3539
25961 #, no-wrap
25962 msgid ""
25963 " pread path count offset\n"
25964 "\n"
25965 msgstr ""
25966
25967 #. type: textblock
25968 #: ../fish/guestfish-actions.pod:3547
25969 msgid "See also L</pwrite>, L</pread-device>."
25970 msgstr ""
25971
25972 #. type: =head2
25973 #: ../fish/guestfish-actions.pod:3552
25974 msgid "pread-device"
25975 msgstr ""
25976
25977 #. type: verbatim
25978 #: ../fish/guestfish-actions.pod:3554
25979 #, no-wrap
25980 msgid ""
25981 " pread-device device count offset\n"
25982 "\n"
25983 msgstr ""
25984
25985 #. type: textblock
25986 #: ../fish/guestfish-actions.pod:3562
25987 msgid "See also L</pread>."
25988 msgstr ""
25989
25990 #. type: =head2
25991 #: ../fish/guestfish-actions.pod:3567
25992 msgid "pvcreate"
25993 msgstr ""
25994
25995 #. type: verbatim
25996 #: ../fish/guestfish-actions.pod:3569
25997 #, no-wrap
25998 msgid ""
25999 " pvcreate device\n"
26000 "\n"
26001 msgstr ""
26002
26003 #. type: =head2
26004 #: ../fish/guestfish-actions.pod:3575
26005 msgid "pvremove"
26006 msgstr ""
26007
26008 #. type: verbatim
26009 #: ../fish/guestfish-actions.pod:3577
26010 #, no-wrap
26011 msgid ""
26012 " pvremove device\n"
26013 "\n"
26014 msgstr ""
26015
26016 #. type: =head2
26017 #: ../fish/guestfish-actions.pod:3586
26018 msgid "pvresize"
26019 msgstr ""
26020
26021 #. type: verbatim
26022 #: ../fish/guestfish-actions.pod:3588
26023 #, no-wrap
26024 msgid ""
26025 " pvresize device\n"
26026 "\n"
26027 msgstr ""
26028
26029 #. type: =head2
26030 #: ../fish/guestfish-actions.pod:3593
26031 msgid "pvresize-size"
26032 msgstr ""
26033
26034 #. type: verbatim
26035 #: ../fish/guestfish-actions.pod:3595
26036 #, no-wrap
26037 msgid ""
26038 " pvresize-size device size\n"
26039 "\n"
26040 msgstr ""
26041
26042 #. type: textblock
26043 #: ../fish/guestfish-actions.pod:3597
26044 msgid ""
26045 "This command is the same as L</pvresize> except that it allows you to "
26046 "specify the new size (in bytes) explicitly."
26047 msgstr ""
26048
26049 #. type: =head2
26050 #: ../fish/guestfish-actions.pod:3600
26051 msgid "pvs"
26052 msgstr ""
26053
26054 #. type: verbatim
26055 #: ../fish/guestfish-actions.pod:3602
26056 #, no-wrap
26057 msgid ""
26058 " pvs\n"
26059 "\n"
26060 msgstr ""
26061
26062 #. type: textblock
26063 #: ../fish/guestfish-actions.pod:3610
26064 msgid "See also L</pvs-full>."
26065 msgstr ""
26066
26067 #. type: =head2
26068 #: ../fish/guestfish-actions.pod:3612
26069 msgid "pvs-full"
26070 msgstr ""
26071
26072 #. type: verbatim
26073 #: ../fish/guestfish-actions.pod:3614
26074 #, no-wrap
26075 msgid ""
26076 " pvs-full\n"
26077 "\n"
26078 msgstr ""
26079
26080 #. type: =head2
26081 #: ../fish/guestfish-actions.pod:3619
26082 msgid "pvuuid"
26083 msgstr ""
26084
26085 #. type: verbatim
26086 #: ../fish/guestfish-actions.pod:3621
26087 #, no-wrap
26088 msgid ""
26089 " pvuuid device\n"
26090 "\n"
26091 msgstr ""
26092
26093 #. type: =head2
26094 #: ../fish/guestfish-actions.pod:3625
26095 msgid "pwrite"
26096 msgstr ""
26097
26098 #. type: verbatim
26099 #: ../fish/guestfish-actions.pod:3627
26100 #, no-wrap
26101 msgid ""
26102 " pwrite path content offset\n"
26103 "\n"
26104 msgstr ""
26105
26106 #. type: textblock
26107 #: ../fish/guestfish-actions.pod:3638
26108 msgid "See also L</pread>, L</pwrite-device>."
26109 msgstr ""
26110
26111 #. type: =head2
26112 #: ../fish/guestfish-actions.pod:3643
26113 msgid "pwrite-device"
26114 msgstr ""
26115
26116 #. type: verbatim
26117 #: ../fish/guestfish-actions.pod:3645
26118 #, no-wrap
26119 msgid ""
26120 " pwrite-device device content offset\n"
26121 "\n"
26122 msgstr ""
26123
26124 #. type: textblock
26125 #: ../fish/guestfish-actions.pod:3655
26126 msgid "See also L</pwrite>."
26127 msgstr ""
26128
26129 #. type: =head2
26130 #: ../fish/guestfish-actions.pod:3660
26131 msgid "read-file"
26132 msgstr ""
26133
26134 #. type: verbatim
26135 #: ../fish/guestfish-actions.pod:3662
26136 #, no-wrap
26137 msgid ""
26138 " read-file path\n"
26139 "\n"
26140 msgstr ""
26141
26142 #. type: textblock
26143 #: ../fish/guestfish-actions.pod:3667
26144 msgid ""
26145 "Unlike L</cat>, this function can correctly handle files that contain "
26146 "embedded ASCII NUL characters.  However unlike L</download>, this function "
26147 "is limited in the total size of file that can be handled."
26148 msgstr ""
26149
26150 #. type: =head2
26151 #: ../fish/guestfish-actions.pod:3675
26152 msgid "read-lines"
26153 msgstr ""
26154
26155 #. type: verbatim
26156 #: ../fish/guestfish-actions.pod:3677
26157 #, no-wrap
26158 msgid ""
26159 " read-lines path\n"
26160 "\n"
26161 msgstr ""
26162
26163 #. type: textblock
26164 #: ../fish/guestfish-actions.pod:3684
26165 msgid ""
26166 "Note that this function cannot correctly handle binary files (specifically, "
26167 "files containing C<\\0> character which is treated as end of line).  For "
26168 "those you need to use the L</read-file> function which has a more complex "
26169 "interface."
26170 msgstr ""
26171
26172 #. type: =head2
26173 #: ../fish/guestfish-actions.pod:3689
26174 msgid "readdir"
26175 msgstr ""
26176
26177 #. type: verbatim
26178 #: ../fish/guestfish-actions.pod:3691
26179 #, no-wrap
26180 msgid ""
26181 " readdir dir\n"
26182 "\n"
26183 msgstr ""
26184
26185 #. type: textblock
26186 #: ../fish/guestfish-actions.pod:3743
26187 msgid ""
26188 "This function is primarily intended for use by programs.  To get a simple "
26189 "list of names, use L</ls>.  To get a printable directory for human "
26190 "consumption, use L</ll>."
26191 msgstr ""
26192
26193 #. type: =head2
26194 #: ../fish/guestfish-actions.pod:3747
26195 msgid "readlink"
26196 msgstr ""
26197
26198 #. type: verbatim
26199 #: ../fish/guestfish-actions.pod:3749
26200 #, no-wrap
26201 msgid ""
26202 " readlink path\n"
26203 "\n"
26204 msgstr ""
26205
26206 #. type: =head2
26207 #: ../fish/guestfish-actions.pod:3753
26208 msgid "readlinklist"
26209 msgstr ""
26210
26211 #. type: verbatim
26212 #: ../fish/guestfish-actions.pod:3755
26213 #, no-wrap
26214 msgid ""
26215 " readlinklist path 'names ...'\n"
26216 "\n"
26217 msgstr ""
26218
26219 #. type: =head2
26220 #: ../fish/guestfish-actions.pod:3779
26221 msgid "realpath"
26222 msgstr ""
26223
26224 #. type: verbatim
26225 #: ../fish/guestfish-actions.pod:3781
26226 #, no-wrap
26227 msgid ""
26228 " realpath path\n"
26229 "\n"
26230 msgstr ""
26231
26232 #. type: =head2
26233 #: ../fish/guestfish-actions.pod:3786
26234 msgid "removexattr"
26235 msgstr ""
26236
26237 #. type: verbatim
26238 #: ../fish/guestfish-actions.pod:3788
26239 #, no-wrap
26240 msgid ""
26241 " removexattr xattr path\n"
26242 "\n"
26243 msgstr ""
26244
26245 #. type: textblock
26246 #: ../fish/guestfish-actions.pod:3793
26247 msgid "See also: L</lremovexattr>, L<attr(5)>."
26248 msgstr ""
26249
26250 #. type: =head2
26251 #: ../fish/guestfish-actions.pod:3795
26252 msgid "resize2fs"
26253 msgstr ""
26254
26255 #. type: verbatim
26256 #: ../fish/guestfish-actions.pod:3797
26257 #, no-wrap
26258 msgid ""
26259 " resize2fs device\n"
26260 "\n"
26261 msgstr ""
26262
26263 #. type: textblock
26264 #: ../fish/guestfish-actions.pod:3802
26265 msgid ""
26266 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
26267 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
26268 "gives an error about this and sometimes not.  In any case, it is always safe "
26269 "to call L</e2fsck-f> before calling this function."
26270 msgstr ""
26271
26272 #. type: =head2
26273 #: ../fish/guestfish-actions.pod:3808
26274 msgid "resize2fs-M"
26275 msgstr ""
26276
26277 #. type: verbatim
26278 #: ../fish/guestfish-actions.pod:3810
26279 #, no-wrap
26280 msgid ""
26281 " resize2fs-M device\n"
26282 "\n"
26283 msgstr ""
26284
26285 #. type: textblock
26286 #: ../fish/guestfish-actions.pod:3812
26287 msgid ""
26288 "This command is the same as L</resize2fs>, but the filesystem is resized to "
26289 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
26290 "command."
26291 msgstr ""
26292
26293 #. type: textblock
26294 #: ../fish/guestfish-actions.pod:3816
26295 msgid ""
26296 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
26297 "and read the C<Block size> and C<Block count> values.  These two numbers, "
26298 "multiplied together, give the resulting size of the minimal filesystem in "
26299 "bytes."
26300 msgstr ""
26301
26302 #. type: =head2
26303 #: ../fish/guestfish-actions.pod:3821
26304 msgid "resize2fs-size"
26305 msgstr ""
26306
26307 #. type: verbatim
26308 #: ../fish/guestfish-actions.pod:3823
26309 #, no-wrap
26310 msgid ""
26311 " resize2fs-size device size\n"
26312 "\n"
26313 msgstr ""
26314
26315 #. type: textblock
26316 #: ../fish/guestfish-actions.pod:3825
26317 msgid ""
26318 "This command is the same as L</resize2fs> except that it allows you to "
26319 "specify the new size (in bytes) explicitly."
26320 msgstr ""
26321
26322 #. type: =head2
26323 #: ../fish/guestfish-actions.pod:3828
26324 msgid "rm"
26325 msgstr ""
26326
26327 #. type: verbatim
26328 #: ../fish/guestfish-actions.pod:3830
26329 #, no-wrap
26330 msgid ""
26331 " rm path\n"
26332 "\n"
26333 msgstr ""
26334
26335 #. type: =head2
26336 #: ../fish/guestfish-actions.pod:3834
26337 msgid "rm-rf"
26338 msgstr ""
26339
26340 #. type: verbatim
26341 #: ../fish/guestfish-actions.pod:3836
26342 #, no-wrap
26343 msgid ""
26344 " rm-rf path\n"
26345 "\n"
26346 msgstr ""
26347
26348 #. type: =head2
26349 #: ../fish/guestfish-actions.pod:3842
26350 msgid "rmdir"
26351 msgstr ""
26352
26353 #. type: verbatim
26354 #: ../fish/guestfish-actions.pod:3844
26355 #, no-wrap
26356 msgid ""
26357 " rmdir path\n"
26358 "\n"
26359 msgstr ""
26360
26361 #. type: =head2
26362 #: ../fish/guestfish-actions.pod:3848
26363 msgid "rmmountpoint"
26364 msgstr ""
26365
26366 #. type: verbatim
26367 #: ../fish/guestfish-actions.pod:3850
26368 #, no-wrap
26369 msgid ""
26370 " rmmountpoint exemptpath\n"
26371 "\n"
26372 msgstr ""
26373
26374 #. type: textblock
26375 #: ../fish/guestfish-actions.pod:3852
26376 msgid ""
26377 "This calls removes a mountpoint that was previously created with L</"
26378 "mkmountpoint>.  See L</mkmountpoint> for full details."
26379 msgstr ""
26380
26381 #. type: =head2
26382 #: ../fish/guestfish-actions.pod:3856
26383 msgid "scrub-device"
26384 msgstr ""
26385
26386 #. type: verbatim
26387 #: ../fish/guestfish-actions.pod:3858
26388 #, no-wrap
26389 msgid ""
26390 " scrub-device device\n"
26391 "\n"
26392 msgstr ""
26393
26394 #. type: =head2
26395 #: ../fish/guestfish-actions.pod:3869
26396 msgid "scrub-file"
26397 msgstr ""
26398
26399 #. type: verbatim
26400 #: ../fish/guestfish-actions.pod:3871
26401 #, no-wrap
26402 msgid ""
26403 " scrub-file file\n"
26404 "\n"
26405 msgstr ""
26406
26407 #. type: =head2
26408 #: ../fish/guestfish-actions.pod:3881
26409 msgid "scrub-freespace"
26410 msgstr ""
26411
26412 #. type: verbatim
26413 #: ../fish/guestfish-actions.pod:3883
26414 #, no-wrap
26415 msgid ""
26416 " scrub-freespace dir\n"
26417 "\n"
26418 msgstr ""
26419
26420 #. type: textblock
26421 #: ../fish/guestfish-actions.pod:3885
26422 msgid ""
26423 "This command creates the directory C<dir> and then fills it with files until "
26424 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
26425 "deletes them.  The intention is to scrub any free space on the partition "
26426 "containing C<dir>."
26427 msgstr ""
26428
26429 #. type: =head2
26430 #: ../fish/guestfish-actions.pod:3894
26431 msgid "set-append"
26432 msgstr ""
26433
26434 #. type: =head2
26435 #: ../fish/guestfish-actions.pod:3896
26436 msgid "append"
26437 msgstr ""
26438
26439 #. type: verbatim
26440 #: ../fish/guestfish-actions.pod:3898
26441 #, no-wrap
26442 msgid ""
26443 " set-append append\n"
26444 "\n"
26445 msgstr ""
26446
26447 #. type: =head2
26448 #: ../fish/guestfish-actions.pod:3909
26449 msgid "set-attach-method"
26450 msgstr ""
26451
26452 #. type: =head2
26453 #: ../fish/guestfish-actions.pod:3911
26454 msgid "attach-method"
26455 msgstr ""
26456
26457 #. type: verbatim
26458 #: ../fish/guestfish-actions.pod:3913
26459 #, no-wrap
26460 msgid ""
26461 " set-attach-method attachmethod\n"
26462 "\n"
26463 msgstr ""
26464
26465 #. type: =head2
26466 #: ../fish/guestfish-actions.pod:3935
26467 msgid "set-autosync"
26468 msgstr ""
26469
26470 #. type: =head2
26471 #: ../fish/guestfish-actions.pod:3937
26472 msgid "autosync"
26473 msgstr ""
26474
26475 #. type: verbatim
26476 #: ../fish/guestfish-actions.pod:3939
26477 #, no-wrap
26478 msgid ""
26479 " set-autosync true|false\n"
26480 "\n"
26481 msgstr ""
26482
26483 #. type: =head2
26484 #: ../fish/guestfish-actions.pod:3949
26485 msgid "set-direct"
26486 msgstr ""
26487
26488 #. type: =head2
26489 #: ../fish/guestfish-actions.pod:3951
26490 msgid "direct"
26491 msgstr ""
26492
26493 #. type: verbatim
26494 #: ../fish/guestfish-actions.pod:3953
26495 #, no-wrap
26496 msgid ""
26497 " set-direct true|false\n"
26498 "\n"
26499 msgstr ""
26500
26501 #. type: textblock
26502 #: ../fish/guestfish-actions.pod:3959
26503 msgid ""
26504 "One consequence of this is that log messages aren't caught by the library "
26505 "and handled by L</set-log-message-callback>, but go straight to stdout."
26506 msgstr ""
26507
26508 #. type: =head2
26509 #: ../fish/guestfish-actions.pod:3968
26510 msgid "set-e2label"
26511 msgstr ""
26512
26513 #. type: verbatim
26514 #: ../fish/guestfish-actions.pod:3970
26515 #, no-wrap
26516 msgid ""
26517 " set-e2label device label\n"
26518 "\n"
26519 msgstr ""
26520
26521 #. type: textblock
26522 #: ../fish/guestfish-actions.pod:3976
26523 msgid ""
26524 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
26525 "label on a filesystem."
26526 msgstr ""
26527
26528 #. type: =head2
26529 #: ../fish/guestfish-actions.pod:3979
26530 msgid "set-e2uuid"
26531 msgstr ""
26532
26533 #. type: verbatim
26534 #: ../fish/guestfish-actions.pod:3981
26535 #, no-wrap
26536 msgid ""
26537 " set-e2uuid device uuid\n"
26538 "\n"
26539 msgstr ""
26540
26541 #. type: textblock
26542 #: ../fish/guestfish-actions.pod:3988
26543 msgid ""
26544 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
26545 "UUID of a filesystem."
26546 msgstr ""
26547
26548 #. type: =head2
26549 #: ../fish/guestfish-actions.pod:3991
26550 msgid "set-memsize"
26551 msgstr ""
26552
26553 #. type: =head2
26554 #: ../fish/guestfish-actions.pod:3993
26555 msgid "memsize"
26556 msgstr ""
26557
26558 #. type: verbatim
26559 #: ../fish/guestfish-actions.pod:3995
26560 #, no-wrap
26561 msgid ""
26562 " set-memsize memsize\n"
26563 "\n"
26564 msgstr ""
26565
26566 #. type: textblock
26567 #: ../fish/guestfish-actions.pod:3997
26568 msgid ""
26569 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
26570 "This only has any effect if called before L</launch>."
26571 msgstr ""
26572
26573 #. type: =head2
26574 #: ../fish/guestfish-actions.pod:4008
26575 msgid "set-network"
26576 msgstr ""
26577
26578 #. type: =head2
26579 #: ../fish/guestfish-actions.pod:4010
26580 msgid "network"
26581 msgstr ""
26582
26583 #. type: verbatim
26584 #: ../fish/guestfish-actions.pod:4012
26585 #, no-wrap
26586 msgid ""
26587 " set-network true|false\n"
26588 "\n"
26589 msgstr ""
26590
26591 #. type: textblock
26592 #: ../fish/guestfish-actions.pod:4020
26593 msgid ""
26594 "You must call this before calling L</launch>, otherwise it has no effect."
26595 msgstr ""
26596
26597 #. type: =head2
26598 #: ../fish/guestfish-actions.pod:4023
26599 msgid "set-path"
26600 msgstr ""
26601
26602 #. type: =head2
26603 #: ../fish/guestfish-actions.pod:4025
26604 msgid "path"
26605 msgstr ""
26606
26607 #. type: verbatim
26608 #: ../fish/guestfish-actions.pod:4027
26609 #, no-wrap
26610 msgid ""
26611 " set-path searchpath\n"
26612 "\n"
26613 msgstr ""
26614
26615 #. type: =head2
26616 #: ../fish/guestfish-actions.pod:4036
26617 msgid "set-qemu"
26618 msgstr ""
26619
26620 #. type: =head2
26621 #: ../fish/guestfish-actions.pod:4038
26622 msgid "qemu"
26623 msgstr ""
26624
26625 #. type: verbatim
26626 #: ../fish/guestfish-actions.pod:4040
26627 #, no-wrap
26628 msgid ""
26629 " set-qemu qemu\n"
26630 "\n"
26631 msgstr ""
26632
26633 #. type: =head2
26634 #: ../fish/guestfish-actions.pod:4060
26635 msgid "set-recovery-proc"
26636 msgstr ""
26637
26638 #. type: =head2
26639 #: ../fish/guestfish-actions.pod:4062
26640 msgid "recovery-proc"
26641 msgstr ""
26642
26643 #. type: verbatim
26644 #: ../fish/guestfish-actions.pod:4064
26645 #, no-wrap
26646 msgid ""
26647 " set-recovery-proc true|false\n"
26648 "\n"
26649 msgstr ""
26650
26651 #. type: textblock
26652 #: ../fish/guestfish-actions.pod:4066
26653 msgid ""
26654 "If this is called with the parameter C<false> then L</launch> does not "
26655 "create a recovery process.  The purpose of the recovery process is to stop "
26656 "runaway qemu processes in the case where the main program aborts abruptly."
26657 msgstr ""
26658
26659 #. type: textblock
26660 #: ../fish/guestfish-actions.pod:4071
26661 msgid ""
26662 "This only has any effect if called before L</launch>, and the default is "
26663 "true."
26664 msgstr ""
26665
26666 #. type: =head2
26667 #: ../fish/guestfish-actions.pod:4080
26668 msgid "set-selinux"
26669 msgstr ""
26670
26671 #. type: =head2
26672 #: ../fish/guestfish-actions.pod:4082
26673 msgid "selinux"
26674 msgstr ""
26675
26676 #. type: verbatim
26677 #: ../fish/guestfish-actions.pod:4084
26678 #, no-wrap
26679 msgid ""
26680 " set-selinux true|false\n"
26681 "\n"
26682 msgstr ""
26683
26684 #. type: =head2
26685 #: ../fish/guestfish-actions.pod:4095
26686 msgid "set-trace"
26687 msgstr ""
26688
26689 #. type: =head2
26690 #: ../fish/guestfish-actions.pod:4097
26691 msgid "trace"
26692 msgstr ""
26693
26694 #. type: verbatim
26695 #: ../fish/guestfish-actions.pod:4099
26696 #, no-wrap
26697 msgid ""
26698 " set-trace true|false\n"
26699 "\n"
26700 msgstr ""
26701
26702 #. type: textblock
26703 #: ../fish/guestfish-actions.pod:4111
26704 msgid ""
26705 "Trace messages are normally sent to C<stderr>, unless you register a "
26706 "callback to send them somewhere else (see L</set-event-callback>)."
26707 msgstr ""
26708
26709 #. type: =head2
26710 #: ../fish/guestfish-actions.pod:4115
26711 msgid "set-verbose"
26712 msgstr ""
26713
26714 #. type: =head2
26715 #: ../fish/guestfish-actions.pod:4117
26716 msgid "verbose"
26717 msgstr ""
26718
26719 #. type: verbatim
26720 #: ../fish/guestfish-actions.pod:4119
26721 #, no-wrap
26722 msgid ""
26723 " set-verbose true|false\n"
26724 "\n"
26725 msgstr ""
26726
26727 #. type: textblock
26728 #: ../fish/guestfish-actions.pod:4126
26729 msgid ""
26730 "Verbose messages are normally sent to C<stderr>, unless you register a "
26731 "callback to send them somewhere else (see L</set-event-callback>)."
26732 msgstr ""
26733
26734 #. type: =head2
26735 #: ../fish/guestfish-actions.pod:4130
26736 msgid "setcon"
26737 msgstr ""
26738
26739 #. type: verbatim
26740 #: ../fish/guestfish-actions.pod:4132
26741 #, no-wrap
26742 msgid ""
26743 " setcon context\n"
26744 "\n"
26745 msgstr ""
26746
26747 #. type: =head2
26748 #: ../fish/guestfish-actions.pod:4139
26749 msgid "setxattr"
26750 msgstr ""
26751
26752 #. type: verbatim
26753 #: ../fish/guestfish-actions.pod:4141
26754 #, no-wrap
26755 msgid ""
26756 " setxattr xattr val vallen path\n"
26757 "\n"
26758 msgstr ""
26759
26760 #. type: textblock
26761 #: ../fish/guestfish-actions.pod:4147
26762 msgid "See also: L</lsetxattr>, L<attr(5)>."
26763 msgstr ""
26764
26765 #. type: =head2
26766 #: ../fish/guestfish-actions.pod:4149
26767 msgid "sfdisk"
26768 msgstr ""
26769
26770 #. type: verbatim
26771 #: ../fish/guestfish-actions.pod:4151
26772 #, no-wrap
26773 msgid ""
26774 " sfdisk device cyls heads sectors 'lines ...'\n"
26775 "\n"
26776 msgstr ""
26777
26778 #. type: textblock
26779 #: ../fish/guestfish-actions.pod:4173
26780 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
26781 msgstr ""
26782
26783 #. type: =head2
26784 #: ../fish/guestfish-actions.pod:4186
26785 msgid "sfdiskM"
26786 msgstr ""
26787
26788 #. type: verbatim
26789 #: ../fish/guestfish-actions.pod:4188
26790 #, no-wrap
26791 msgid ""
26792 " sfdiskM device 'lines ...'\n"
26793 "\n"
26794 msgstr ""
26795
26796 #. type: textblock
26797 #: ../fish/guestfish-actions.pod:4190
26798 msgid ""
26799 "This is a simplified interface to the L</sfdisk> command, where partition "
26800 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
26801 "you don't need to specify the cyls, heads and sectors parameters which were "
26802 "rarely if ever used anyway."
26803 msgstr ""
26804
26805 #. type: textblock
26806 #: ../fish/guestfish-actions.pod:4196
26807 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
26808 msgstr ""
26809
26810 #. type: =head2
26811 #: ../fish/guestfish-actions.pod:4209
26812 msgid "sfdisk-N"
26813 msgstr ""
26814
26815 #. type: verbatim
26816 #: ../fish/guestfish-actions.pod:4211
26817 #, no-wrap
26818 msgid ""
26819 " sfdisk-N device partnum cyls heads sectors line\n"
26820 "\n"
26821 msgstr ""
26822
26823 #. type: textblock
26824 #: ../fish/guestfish-actions.pod:4216
26825 msgid ""
26826 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
26827 "cyls/heads/sectors parameters."
26828 msgstr ""
26829
26830 #. type: textblock
26831 #: ../fish/guestfish-actions.pod:4219
26832 msgid "See also: L</part-add>"
26833 msgstr ""
26834
26835 #. type: =head2
26836 #: ../fish/guestfish-actions.pod:4231
26837 msgid "sfdisk-disk-geometry"
26838 msgstr ""
26839
26840 #. type: verbatim
26841 #: ../fish/guestfish-actions.pod:4233
26842 #, no-wrap
26843 msgid ""
26844 " sfdisk-disk-geometry device\n"
26845 "\n"
26846 msgstr ""
26847
26848 #. type: textblock
26849 #: ../fish/guestfish-actions.pod:4235
26850 msgid ""
26851 "This displays the disk geometry of C<device> read from the partition table.  "
26852 "Especially in the case where the underlying block device has been resized, "
26853 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
26854 "kernel-geometry>)."
26855 msgstr ""
26856
26857 #. type: =head2
26858 #: ../fish/guestfish-actions.pod:4243
26859 msgid "sfdisk-kernel-geometry"
26860 msgstr ""
26861
26862 #. type: verbatim
26863 #: ../fish/guestfish-actions.pod:4245
26864 #, no-wrap
26865 msgid ""
26866 " sfdisk-kernel-geometry device\n"
26867 "\n"
26868 msgstr ""
26869
26870 #. type: =head2
26871 #: ../fish/guestfish-actions.pod:4252
26872 msgid "sfdisk-l"
26873 msgstr ""
26874
26875 #. type: verbatim
26876 #: ../fish/guestfish-actions.pod:4254
26877 #, no-wrap
26878 msgid ""
26879 " sfdisk-l device\n"
26880 "\n"
26881 msgstr ""
26882
26883 #. type: textblock
26884 #: ../fish/guestfish-actions.pod:4260
26885 msgid "See also: L</part-list>"
26886 msgstr ""
26887
26888 #. type: =head2
26889 #: ../fish/guestfish-actions.pod:4269
26890 msgid "sh"
26891 msgstr ""
26892
26893 #. type: verbatim
26894 #: ../fish/guestfish-actions.pod:4271
26895 #, no-wrap
26896 msgid ""
26897 " sh command\n"
26898 "\n"
26899 msgstr ""
26900
26901 #. type: textblock
26902 #: ../fish/guestfish-actions.pod:4276
26903 msgid "This is like L</command>, but passes the command to:"
26904 msgstr ""
26905
26906 #. type: textblock
26907 #: ../fish/guestfish-actions.pod:4284
26908 msgid "All the provisos about L</command> apply to this call."
26909 msgstr ""
26910
26911 #. type: =head2
26912 #: ../fish/guestfish-actions.pod:4286
26913 msgid "sh-lines"
26914 msgstr ""
26915
26916 #. type: verbatim
26917 #: ../fish/guestfish-actions.pod:4288
26918 #, no-wrap
26919 msgid ""
26920 " sh-lines command\n"
26921 "\n"
26922 msgstr ""
26923
26924 #. type: textblock
26925 #: ../fish/guestfish-actions.pod:4290
26926 msgid "This is the same as L</sh>, but splits the result into a list of lines."
26927 msgstr ""
26928
26929 #. type: textblock
26930 #: ../fish/guestfish-actions.pod:4293
26931 msgid "See also: L</command-lines>"
26932 msgstr ""
26933
26934 #. type: =head2
26935 #: ../fish/guestfish-actions.pod:4295
26936 msgid "sleep"
26937 msgstr ""
26938
26939 #. type: verbatim
26940 #: ../fish/guestfish-actions.pod:4297
26941 #, no-wrap
26942 msgid ""
26943 " sleep secs\n"
26944 "\n"
26945 msgstr ""
26946
26947 #. type: =head2
26948 #: ../fish/guestfish-actions.pod:4301
26949 msgid "stat"
26950 msgstr ""
26951
26952 #. type: verbatim
26953 #: ../fish/guestfish-actions.pod:4303
26954 #, no-wrap
26955 msgid ""
26956 " stat path\n"
26957 "\n"
26958 msgstr ""
26959
26960 #. type: =head2
26961 #: ../fish/guestfish-actions.pod:4309
26962 msgid "statvfs"
26963 msgstr ""
26964
26965 #. type: verbatim
26966 #: ../fish/guestfish-actions.pod:4311
26967 #, no-wrap
26968 msgid ""
26969 " statvfs path\n"
26970 "\n"
26971 msgstr ""
26972
26973 #. type: =head2
26974 #: ../fish/guestfish-actions.pod:4319
26975 msgid "strings"
26976 msgstr ""
26977
26978 #. type: verbatim
26979 #: ../fish/guestfish-actions.pod:4321
26980 #, no-wrap
26981 msgid ""
26982 " strings path\n"
26983 "\n"
26984 msgstr ""
26985
26986 #. type: =head2
26987 #: ../fish/guestfish-actions.pod:4329
26988 msgid "strings-e"
26989 msgstr ""
26990
26991 #. type: verbatim
26992 #: ../fish/guestfish-actions.pod:4331
26993 #, no-wrap
26994 msgid ""
26995 " strings-e encoding path\n"
26996 "\n"
26997 msgstr ""
26998
26999 #. type: textblock
27000 #: ../fish/guestfish-actions.pod:4333
27001 msgid ""
27002 "This is like the L</strings> command, but allows you to specify the encoding "
27003 "of strings that are looked for in the source file C<path>."
27004 msgstr ""
27005
27006 #. type: textblock
27007 #: ../fish/guestfish-actions.pod:4343
27008 msgid ""
27009 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
27010 "ISO-8859-X (this is what L</strings> uses)."
27011 msgstr ""
27012
27013 #. type: =head2
27014 #: ../fish/guestfish-actions.pod:4375
27015 msgid "swapoff-device"
27016 msgstr ""
27017
27018 #. type: verbatim
27019 #: ../fish/guestfish-actions.pod:4377
27020 #, no-wrap
27021 msgid ""
27022 " swapoff-device device\n"
27023 "\n"
27024 msgstr ""
27025
27026 #. type: textblock
27027 #: ../fish/guestfish-actions.pod:4379
27028 msgid ""
27029 "This command disables the libguestfs appliance swap device or partition "
27030 "named C<device>.  See L</swapon-device>."
27031 msgstr ""
27032
27033 #. type: =head2
27034 #: ../fish/guestfish-actions.pod:4383
27035 msgid "swapoff-file"
27036 msgstr ""
27037
27038 #. type: verbatim
27039 #: ../fish/guestfish-actions.pod:4385
27040 #, no-wrap
27041 msgid ""
27042 " swapoff-file file\n"
27043 "\n"
27044 msgstr ""
27045
27046 #. type: =head2
27047 #: ../fish/guestfish-actions.pod:4389
27048 msgid "swapoff-label"
27049 msgstr ""
27050
27051 #. type: verbatim
27052 #: ../fish/guestfish-actions.pod:4391
27053 #, no-wrap
27054 msgid ""
27055 " swapoff-label label\n"
27056 "\n"
27057 msgstr ""
27058
27059 #. type: =head2
27060 #: ../fish/guestfish-actions.pod:4396
27061 msgid "swapoff-uuid"
27062 msgstr ""
27063
27064 #. type: verbatim
27065 #: ../fish/guestfish-actions.pod:4398
27066 #, no-wrap
27067 msgid ""
27068 " swapoff-uuid uuid\n"
27069 "\n"
27070 msgstr ""
27071
27072 #. type: =head2
27073 #: ../fish/guestfish-actions.pod:4403
27074 msgid "swapon-device"
27075 msgstr ""
27076
27077 #. type: verbatim
27078 #: ../fish/guestfish-actions.pod:4405
27079 #, no-wrap
27080 msgid ""
27081 " swapon-device device\n"
27082 "\n"
27083 msgstr ""
27084
27085 #. type: textblock
27086 #: ../fish/guestfish-actions.pod:4407
27087 msgid ""
27088 "This command enables the libguestfs appliance to use the swap device or "
27089 "partition named C<device>.  The increased memory is made available for all "
27090 "commands, for example those run using L</command> or L</sh>."
27091 msgstr ""
27092
27093 #. type: =head2
27094 #: ../fish/guestfish-actions.pod:4419
27095 msgid "swapon-file"
27096 msgstr ""
27097
27098 #. type: verbatim
27099 #: ../fish/guestfish-actions.pod:4421
27100 #, no-wrap
27101 msgid ""
27102 " swapon-file file\n"
27103 "\n"
27104 msgstr ""
27105
27106 #. type: textblock
27107 #: ../fish/guestfish-actions.pod:4423
27108 msgid ""
27109 "This command enables swap to a file.  See L</swapon-device> for other notes."
27110 msgstr ""
27111
27112 #. type: =head2
27113 #: ../fish/guestfish-actions.pod:4426
27114 msgid "swapon-label"
27115 msgstr ""
27116
27117 #. type: verbatim
27118 #: ../fish/guestfish-actions.pod:4428
27119 #, no-wrap
27120 msgid ""
27121 " swapon-label label\n"
27122 "\n"
27123 msgstr ""
27124
27125 #. type: textblock
27126 #: ../fish/guestfish-actions.pod:4430
27127 msgid ""
27128 "This command enables swap to a labeled swap partition.  See L</swapon-"
27129 "device> for other notes."
27130 msgstr ""
27131
27132 #. type: =head2
27133 #: ../fish/guestfish-actions.pod:4433
27134 msgid "swapon-uuid"
27135 msgstr ""
27136
27137 #. type: verbatim
27138 #: ../fish/guestfish-actions.pod:4435
27139 #, no-wrap
27140 msgid ""
27141 " swapon-uuid uuid\n"
27142 "\n"
27143 msgstr ""
27144
27145 #. type: textblock
27146 #: ../fish/guestfish-actions.pod:4437
27147 msgid ""
27148 "This command enables swap to a swap partition with the given UUID.  See L</"
27149 "swapon-device> for other notes."
27150 msgstr ""
27151
27152 #. type: =head2
27153 #: ../fish/guestfish-actions.pod:4440
27154 msgid "sync"
27155 msgstr ""
27156
27157 #. type: verbatim
27158 #: ../fish/guestfish-actions.pod:4442
27159 #, no-wrap
27160 msgid ""
27161 " sync\n"
27162 "\n"
27163 msgstr ""
27164
27165 #. type: =head2
27166 #: ../fish/guestfish-actions.pod:4450
27167 msgid "tail"
27168 msgstr ""
27169
27170 #. type: verbatim
27171 #: ../fish/guestfish-actions.pod:4452
27172 #, no-wrap
27173 msgid ""
27174 " tail path\n"
27175 "\n"
27176 msgstr ""
27177
27178 #. type: =head2
27179 #: ../fish/guestfish-actions.pod:4460
27180 msgid "tail-n"
27181 msgstr ""
27182
27183 #. type: verbatim
27184 #: ../fish/guestfish-actions.pod:4462
27185 #, no-wrap
27186 msgid ""
27187 " tail-n nrlines path\n"
27188 "\n"
27189 msgstr ""
27190
27191 #. type: =head2
27192 #: ../fish/guestfish-actions.pod:4475
27193 msgid "tar-in"
27194 msgstr ""
27195
27196 #. type: verbatim
27197 #: ../fish/guestfish-actions.pod:4477
27198 #, no-wrap
27199 msgid ""
27200 " tar-in (tarfile|-) directory\n"
27201 "\n"
27202 msgstr ""
27203
27204 #. type: textblock
27205 #: ../fish/guestfish-actions.pod:4482
27206 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
27207 msgstr ""
27208
27209 #. type: =head2
27210 #: ../fish/guestfish-actions.pod:4487
27211 msgid "tar-out"
27212 msgstr ""
27213
27214 #. type: verbatim
27215 #: ../fish/guestfish-actions.pod:4489
27216 #, no-wrap
27217 msgid ""
27218 " tar-out directory (tarfile|-)\n"
27219 "\n"
27220 msgstr ""
27221
27222 #. type: textblock
27223 #: ../fish/guestfish-actions.pod:4494
27224 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
27225 msgstr ""
27226
27227 #. type: =head2
27228 #: ../fish/guestfish-actions.pod:4499
27229 msgid "tgz-in"
27230 msgstr ""
27231
27232 #. type: verbatim
27233 #: ../fish/guestfish-actions.pod:4501
27234 #, no-wrap
27235 msgid ""
27236 " tgz-in (tarball|-) directory\n"
27237 "\n"
27238 msgstr ""
27239
27240 #. type: textblock
27241 #: ../fish/guestfish-actions.pod:4506
27242 msgid "To upload an uncompressed tarball, use L</tar-in>."
27243 msgstr ""
27244
27245 #. type: =head2
27246 #: ../fish/guestfish-actions.pod:4510
27247 msgid "tgz-out"
27248 msgstr ""
27249
27250 #. type: verbatim
27251 #: ../fish/guestfish-actions.pod:4512
27252 #, no-wrap
27253 msgid ""
27254 " tgz-out directory (tarball|-)\n"
27255 "\n"
27256 msgstr ""
27257
27258 #. type: textblock
27259 #: ../fish/guestfish-actions.pod:4517
27260 msgid "To download an uncompressed tarball, use L</tar-out>."
27261 msgstr ""
27262
27263 #. type: =head2
27264 #: ../fish/guestfish-actions.pod:4521
27265 msgid "touch"
27266 msgstr ""
27267
27268 #. type: verbatim
27269 #: ../fish/guestfish-actions.pod:4523
27270 #, no-wrap
27271 msgid ""
27272 " touch path\n"
27273 "\n"
27274 msgstr ""
27275
27276 #. type: =head2
27277 #: ../fish/guestfish-actions.pod:4532
27278 msgid "truncate"
27279 msgstr ""
27280
27281 #. type: verbatim
27282 #: ../fish/guestfish-actions.pod:4534
27283 #, no-wrap
27284 msgid ""
27285 " truncate path\n"
27286 "\n"
27287 msgstr ""
27288
27289 #. type: =head2
27290 #: ../fish/guestfish-actions.pod:4539
27291 msgid "truncate-size"
27292 msgstr ""
27293
27294 #. type: verbatim
27295 #: ../fish/guestfish-actions.pod:4541
27296 #, no-wrap
27297 msgid ""
27298 " truncate-size path size\n"
27299 "\n"
27300 msgstr ""
27301
27302 #. type: textblock
27303 #: ../fish/guestfish-actions.pod:4546
27304 msgid ""
27305 "If the current file size is less than C<size> then the file is extended to "
27306 "the required size with zero bytes.  This creates a sparse file (ie. disk "
27307 "blocks are not allocated for the file until you write to it).  To create a "
27308 "non-sparse file of zeroes, use L</fallocate64> instead."
27309 msgstr ""
27310
27311 #. type: =head2
27312 #: ../fish/guestfish-actions.pod:4552
27313 msgid "tune2fs-l"
27314 msgstr ""
27315
27316 #. type: verbatim
27317 #: ../fish/guestfish-actions.pod:4554
27318 #, no-wrap
27319 msgid ""
27320 " tune2fs-l device\n"
27321 "\n"
27322 msgstr ""
27323
27324 #. type: =head2
27325 #: ../fish/guestfish-actions.pod:4564
27326 msgid "txz-in"
27327 msgstr ""
27328
27329 #. type: verbatim
27330 #: ../fish/guestfish-actions.pod:4566
27331 #, no-wrap
27332 msgid ""
27333 " txz-in (tarball|-) directory\n"
27334 "\n"
27335 msgstr ""
27336
27337 #. type: =head2
27338 #: ../fish/guestfish-actions.pod:4573
27339 msgid "txz-out"
27340 msgstr ""
27341
27342 #. type: verbatim
27343 #: ../fish/guestfish-actions.pod:4575
27344 #, no-wrap
27345 msgid ""
27346 " txz-out directory (tarball|-)\n"
27347 "\n"
27348 msgstr ""
27349
27350 #. type: =head2
27351 #: ../fish/guestfish-actions.pod:4582
27352 msgid "umask"
27353 msgstr ""
27354
27355 #. type: verbatim
27356 #: ../fish/guestfish-actions.pod:4584
27357 #, no-wrap
27358 msgid ""
27359 " umask mask\n"
27360 "\n"
27361 msgstr ""
27362
27363 #. type: textblock
27364 #: ../fish/guestfish-actions.pod:4598
27365 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
27366 msgstr ""
27367
27368 #. type: =head2
27369 #: ../fish/guestfish-actions.pod:4603
27370 msgid "umount"
27371 msgstr ""
27372
27373 #. type: =head2
27374 #: ../fish/guestfish-actions.pod:4605
27375 msgid "unmount"
27376 msgstr ""
27377
27378 #. type: verbatim
27379 #: ../fish/guestfish-actions.pod:4607
27380 #, no-wrap
27381 msgid ""
27382 " umount pathordevice\n"
27383 "\n"
27384 msgstr ""
27385
27386 #. type: =head2
27387 #: ../fish/guestfish-actions.pod:4613
27388 msgid "umount-all"
27389 msgstr ""
27390
27391 #. type: =head2
27392 #: ../fish/guestfish-actions.pod:4615
27393 msgid "unmount-all"
27394 msgstr ""
27395
27396 #. type: verbatim
27397 #: ../fish/guestfish-actions.pod:4617
27398 #, no-wrap
27399 msgid ""
27400 " umount-all\n"
27401 "\n"
27402 msgstr ""
27403
27404 #. type: =head2
27405 #: ../fish/guestfish-actions.pod:4623
27406 msgid "upload"
27407 msgstr ""
27408
27409 #. type: verbatim
27410 #: ../fish/guestfish-actions.pod:4625
27411 #, no-wrap
27412 msgid ""
27413 " upload (filename|-) remotefilename\n"
27414 "\n"
27415 msgstr ""
27416
27417 #. type: textblock
27418 #: ../fish/guestfish-actions.pod:4632
27419 msgid "See also L</download>."
27420 msgstr ""
27421
27422 #. type: =head2
27423 #: ../fish/guestfish-actions.pod:4636
27424 msgid "upload-offset"
27425 msgstr ""
27426
27427 #. type: verbatim
27428 #: ../fish/guestfish-actions.pod:4638
27429 #, no-wrap
27430 msgid ""
27431 " upload-offset (filename|-) remotefilename offset\n"
27432 "\n"
27433 msgstr ""
27434
27435 #. type: textblock
27436 #: ../fish/guestfish-actions.pod:4650
27437 msgid ""
27438 "Note that there is no limit on the amount of data that can be uploaded with "
27439 "this call, unlike with L</pwrite>, and this call always writes the full "
27440 "amount unless an error occurs."
27441 msgstr ""
27442
27443 #. type: textblock
27444 #: ../fish/guestfish-actions.pod:4655
27445 msgid "See also L</upload>, L</pwrite>."
27446 msgstr ""
27447
27448 #. type: =head2
27449 #: ../fish/guestfish-actions.pod:4659
27450 msgid "utimens"
27451 msgstr ""
27452
27453 #. type: verbatim
27454 #: ../fish/guestfish-actions.pod:4661
27455 #, no-wrap
27456 msgid ""
27457 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
27458 "\n"
27459 msgstr ""
27460
27461 #. type: =head2
27462 #: ../fish/guestfish-actions.pod:4680
27463 msgid "version"
27464 msgstr ""
27465
27466 #. type: verbatim
27467 #: ../fish/guestfish-actions.pod:4682
27468 #, no-wrap
27469 msgid ""
27470 " version\n"
27471 "\n"
27472 msgstr ""
27473
27474 #. type: textblock
27475 #: ../fish/guestfish-actions.pod:4709
27476 msgid ""
27477 "I<Note:> Don't use this call to test for availability of features.  In "
27478 "enterprise distributions we backport features from later versions into "
27479 "earlier versions, making this an unreliable way to test for features.  Use "
27480 "L</available> instead."
27481 msgstr ""
27482
27483 #. type: =head2
27484 #: ../fish/guestfish-actions.pod:4715
27485 msgid "vfs-label"
27486 msgstr ""
27487
27488 #. type: verbatim
27489 #: ../fish/guestfish-actions.pod:4717
27490 #, no-wrap
27491 msgid ""
27492 " vfs-label device\n"
27493 "\n"
27494 msgstr ""
27495
27496 #. type: textblock
27497 #: ../fish/guestfish-actions.pod:4724
27498 msgid "To find a filesystem from the label, use L</findfs-label>."
27499 msgstr ""
27500
27501 #. type: =head2
27502 #: ../fish/guestfish-actions.pod:4726
27503 msgid "vfs-type"
27504 msgstr ""
27505
27506 #. type: verbatim
27507 #: ../fish/guestfish-actions.pod:4728
27508 #, no-wrap
27509 msgid ""
27510 " vfs-type device\n"
27511 "\n"
27512 msgstr ""
27513
27514 #. type: =head2
27515 #: ../fish/guestfish-actions.pod:4738
27516 msgid "vfs-uuid"
27517 msgstr ""
27518
27519 #. type: verbatim
27520 #: ../fish/guestfish-actions.pod:4740
27521 #, no-wrap
27522 msgid ""
27523 " vfs-uuid device\n"
27524 "\n"
27525 msgstr ""
27526
27527 #. type: textblock
27528 #: ../fish/guestfish-actions.pod:4747
27529 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
27530 msgstr ""
27531
27532 #. type: =head2
27533 #: ../fish/guestfish-actions.pod:4749
27534 msgid "vg-activate"
27535 msgstr ""
27536
27537 #. type: verbatim
27538 #: ../fish/guestfish-actions.pod:4751
27539 #, no-wrap
27540 msgid ""
27541 " vg-activate true|false 'volgroups ...'\n"
27542 "\n"
27543 msgstr ""
27544
27545 #. type: =head2
27546 #: ../fish/guestfish-actions.pod:4764
27547 msgid "vg-activate-all"
27548 msgstr ""
27549
27550 #. type: verbatim
27551 #: ../fish/guestfish-actions.pod:4766
27552 #, no-wrap
27553 msgid ""
27554 " vg-activate-all true|false\n"
27555 "\n"
27556 msgstr ""
27557
27558 #. type: =head2
27559 #: ../fish/guestfish-actions.pod:4776
27560 msgid "vgcreate"
27561 msgstr ""
27562
27563 #. type: verbatim
27564 #: ../fish/guestfish-actions.pod:4778
27565 #, no-wrap
27566 msgid ""
27567 " vgcreate volgroup 'physvols ...'\n"
27568 "\n"
27569 msgstr ""
27570
27571 #. type: =head2
27572 #: ../fish/guestfish-actions.pod:4783
27573 msgid "vglvuuids"
27574 msgstr ""
27575
27576 #. type: verbatim
27577 #: ../fish/guestfish-actions.pod:4785
27578 #, no-wrap
27579 msgid ""
27580 " vglvuuids vgname\n"
27581 "\n"
27582 msgstr ""
27583
27584 #. type: textblock
27585 #: ../fish/guestfish-actions.pod:4790
27586 msgid ""
27587 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
27588 "logical volumes and volume groups."
27589 msgstr ""
27590
27591 #. type: textblock
27592 #: ../fish/guestfish-actions.pod:4793
27593 msgid "See also L</vgpvuuids>."
27594 msgstr ""
27595
27596 #. type: =head2
27597 #: ../fish/guestfish-actions.pod:4795
27598 msgid "vgpvuuids"
27599 msgstr ""
27600
27601 #. type: verbatim
27602 #: ../fish/guestfish-actions.pod:4797
27603 #, no-wrap
27604 msgid ""
27605 " vgpvuuids vgname\n"
27606 "\n"
27607 msgstr ""
27608
27609 #. type: textblock
27610 #: ../fish/guestfish-actions.pod:4802
27611 msgid ""
27612 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
27613 "physical volumes and volume groups."
27614 msgstr ""
27615
27616 #. type: textblock
27617 #: ../fish/guestfish-actions.pod:4805
27618 msgid "See also L</vglvuuids>."
27619 msgstr ""
27620
27621 #. type: =head2
27622 #: ../fish/guestfish-actions.pod:4807
27623 msgid "vgremove"
27624 msgstr ""
27625
27626 #. type: verbatim
27627 #: ../fish/guestfish-actions.pod:4809
27628 #, no-wrap
27629 msgid ""
27630 " vgremove vgname\n"
27631 "\n"
27632 msgstr ""
27633
27634 #. type: =head2
27635 #: ../fish/guestfish-actions.pod:4816
27636 msgid "vgrename"
27637 msgstr ""
27638
27639 #. type: verbatim
27640 #: ../fish/guestfish-actions.pod:4818
27641 #, no-wrap
27642 msgid ""
27643 " vgrename volgroup newvolgroup\n"
27644 "\n"
27645 msgstr ""
27646
27647 #. type: =head2
27648 #: ../fish/guestfish-actions.pod:4822
27649 msgid "vgs"
27650 msgstr ""
27651
27652 #. type: verbatim
27653 #: ../fish/guestfish-actions.pod:4824
27654 #, no-wrap
27655 msgid ""
27656 " vgs\n"
27657 "\n"
27658 msgstr ""
27659
27660 #. type: textblock
27661 #: ../fish/guestfish-actions.pod:4832
27662 msgid "See also L</vgs-full>."
27663 msgstr ""
27664
27665 #. type: =head2
27666 #: ../fish/guestfish-actions.pod:4834
27667 msgid "vgs-full"
27668 msgstr ""
27669
27670 #. type: verbatim
27671 #: ../fish/guestfish-actions.pod:4836
27672 #, no-wrap
27673 msgid ""
27674 " vgs-full\n"
27675 "\n"
27676 msgstr ""
27677
27678 #. type: =head2
27679 #: ../fish/guestfish-actions.pod:4841
27680 msgid "vgscan"
27681 msgstr ""
27682
27683 #. type: verbatim
27684 #: ../fish/guestfish-actions.pod:4843
27685 #, no-wrap
27686 msgid ""
27687 " vgscan\n"
27688 "\n"
27689 msgstr ""
27690
27691 #. type: =head2
27692 #: ../fish/guestfish-actions.pod:4848
27693 msgid "vguuid"
27694 msgstr ""
27695
27696 #. type: verbatim
27697 #: ../fish/guestfish-actions.pod:4850
27698 #, no-wrap
27699 msgid ""
27700 " vguuid vgname\n"
27701 "\n"
27702 msgstr ""
27703
27704 #. type: =head2
27705 #: ../fish/guestfish-actions.pod:4854
27706 msgid "wc-c"
27707 msgstr ""
27708
27709 #. type: verbatim
27710 #: ../fish/guestfish-actions.pod:4856
27711 #, no-wrap
27712 msgid ""
27713 " wc-c path\n"
27714 "\n"
27715 msgstr ""
27716
27717 #. type: =head2
27718 #: ../fish/guestfish-actions.pod:4861
27719 msgid "wc-l"
27720 msgstr ""
27721
27722 #. type: verbatim
27723 #: ../fish/guestfish-actions.pod:4863
27724 #, no-wrap
27725 msgid ""
27726 " wc-l path\n"
27727 "\n"
27728 msgstr ""
27729
27730 #. type: =head2
27731 #: ../fish/guestfish-actions.pod:4868
27732 msgid "wc-w"
27733 msgstr ""
27734
27735 #. type: verbatim
27736 #: ../fish/guestfish-actions.pod:4870
27737 #, no-wrap
27738 msgid ""
27739 " wc-w path\n"
27740 "\n"
27741 msgstr ""
27742
27743 #. type: =head2
27744 #: ../fish/guestfish-actions.pod:4875
27745 msgid "write"
27746 msgstr ""
27747
27748 #. type: verbatim
27749 #: ../fish/guestfish-actions.pod:4877
27750 #, no-wrap
27751 msgid ""
27752 " write path content\n"
27753 "\n"
27754 msgstr ""
27755
27756 #. type: =head2
27757 #: ../fish/guestfish-actions.pod:4885
27758 msgid "write-file"
27759 msgstr ""
27760
27761 #. type: verbatim
27762 #: ../fish/guestfish-actions.pod:4887
27763 #, no-wrap
27764 msgid ""
27765 " write-file path content size\n"
27766 "\n"
27767 msgstr ""
27768
27769 #. type: =head2
27770 #: ../fish/guestfish-actions.pod:4910
27771 msgid "zegrep"
27772 msgstr ""
27773
27774 #. type: verbatim
27775 #: ../fish/guestfish-actions.pod:4912
27776 #, no-wrap
27777 msgid ""
27778 " zegrep regex path\n"
27779 "\n"
27780 msgstr ""
27781
27782 #. type: =head2
27783 #: ../fish/guestfish-actions.pod:4920
27784 msgid "zegrepi"
27785 msgstr ""
27786
27787 #. type: verbatim
27788 #: ../fish/guestfish-actions.pod:4922
27789 #, no-wrap
27790 msgid ""
27791 " zegrepi regex path\n"
27792 "\n"
27793 msgstr ""
27794
27795 #. type: =head2
27796 #: ../fish/guestfish-actions.pod:4930
27797 msgid "zero"
27798 msgstr ""
27799
27800 #. type: verbatim
27801 #: ../fish/guestfish-actions.pod:4932
27802 #, no-wrap
27803 msgid ""
27804 " zero device\n"
27805 "\n"
27806 msgstr ""
27807
27808 #. type: textblock
27809 #: ../fish/guestfish-actions.pod:4940
27810 msgid "See also: L</zero-device>, L</scrub-device>."
27811 msgstr ""
27812
27813 #. type: =head2
27814 #: ../fish/guestfish-actions.pod:4942
27815 msgid "zero-device"
27816 msgstr ""
27817
27818 #. type: verbatim
27819 #: ../fish/guestfish-actions.pod:4944
27820 #, no-wrap
27821 msgid ""
27822 " zero-device device\n"
27823 "\n"
27824 msgstr ""
27825
27826 #. type: textblock
27827 #: ../fish/guestfish-actions.pod:4946
27828 msgid ""
27829 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
27830 "which just zeroes the first few blocks of a device."
27831 msgstr ""
27832
27833 #. type: =head2
27834 #: ../fish/guestfish-actions.pod:4953
27835 msgid "zerofree"
27836 msgstr ""
27837
27838 #. type: verbatim
27839 #: ../fish/guestfish-actions.pod:4955
27840 #, no-wrap
27841 msgid ""
27842 " zerofree device\n"
27843 "\n"
27844 msgstr ""
27845
27846 #. type: =head2
27847 #: ../fish/guestfish-actions.pod:4968
27848 msgid "zfgrep"
27849 msgstr ""
27850
27851 #. type: verbatim
27852 #: ../fish/guestfish-actions.pod:4970
27853 #, no-wrap
27854 msgid ""
27855 " zfgrep pattern path\n"
27856 "\n"
27857 msgstr ""
27858
27859 #. type: =head2
27860 #: ../fish/guestfish-actions.pod:4978
27861 msgid "zfgrepi"
27862 msgstr ""
27863
27864 #. type: verbatim
27865 #: ../fish/guestfish-actions.pod:4980
27866 #, no-wrap
27867 msgid ""
27868 " zfgrepi pattern path\n"
27869 "\n"
27870 msgstr ""
27871
27872 #. type: =head2
27873 #: ../fish/guestfish-actions.pod:4988
27874 msgid "zfile"
27875 msgstr ""
27876
27877 #. type: verbatim
27878 #: ../fish/guestfish-actions.pod:4990
27879 #, no-wrap
27880 msgid ""
27881 " zfile meth path\n"
27882 "\n"
27883 msgstr ""
27884
27885 #. type: textblock
27886 #: ../fish/guestfish-actions.pod:4997
27887 msgid ""
27888 "Since 1.0.63, use L</file> instead which can now process compressed files."
27889 msgstr ""
27890
27891 #. type: =head2
27892 #: ../fish/guestfish-actions.pod:5007
27893 msgid "zgrep"
27894 msgstr ""
27895
27896 #. type: verbatim
27897 #: ../fish/guestfish-actions.pod:5009
27898 #, no-wrap
27899 msgid ""
27900 " zgrep regex path\n"
27901 "\n"
27902 msgstr ""
27903
27904 #. type: =head2
27905 #: ../fish/guestfish-actions.pod:5017
27906 msgid "zgrepi"
27907 msgstr ""
27908
27909 #. type: verbatim
27910 #: ../fish/guestfish-actions.pod:5019
27911 #, no-wrap
27912 msgid ""
27913 " zgrepi regex path\n"
27914 "\n"
27915 msgstr ""
27916
27917 #. type: =head2
27918 #: ../fish/guestfish-commands.pod:1
27919 msgid "alloc"
27920 msgstr ""
27921
27922 #. type: =head2
27923 #: ../fish/guestfish-commands.pod:3
27924 msgid "allocate"
27925 msgstr ""
27926
27927 #. type: verbatim
27928 #: ../fish/guestfish-commands.pod:5
27929 #, no-wrap
27930 msgid ""
27931 " alloc filename size\n"
27932 "\n"
27933 msgstr ""
27934
27935 #. type: textblock
27936 #: ../fish/guestfish-commands.pod:7
27937 msgid ""
27938 "This creates an empty (zeroed) file of the given size, and then adds so it "
27939 "can be further examined."
27940 msgstr ""
27941
27942 #. type: textblock
27943 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
27944 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
27945 msgstr ""
27946
27947 #. type: textblock
27948 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
27949 msgid "Size can be specified using standard suffixes, eg. C<1M>."
27950 msgstr ""
27951
27952 #. type: textblock
27953 #: ../fish/guestfish-commands.pod:14
27954 msgid ""
27955 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
27956 "image, see L</PREPARED DISK IMAGES>."
27957 msgstr ""
27958
27959 #. type: =head2
27960 #: ../fish/guestfish-commands.pod:17
27961 msgid "copy-in"
27962 msgstr ""
27963
27964 #. type: verbatim
27965 #: ../fish/guestfish-commands.pod:19
27966 #, no-wrap
27967 msgid ""
27968 " copy-in local [local ...] /remotedir\n"
27969 "\n"
27970 msgstr ""
27971
27972 #. type: textblock
27973 #: ../fish/guestfish-commands.pod:21
27974 msgid ""
27975 "C<copy-in> copies local files or directories recursively into the disk "
27976 "image, placing them in the directory called C</remotedir> (which must "
27977 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
27978 "other commands as necessary."
27979 msgstr ""
27980
27981 #. type: textblock
27982 #: ../fish/guestfish-commands.pod:26
27983 msgid ""
27984 "Multiple local files and directories can be specified, but the last "
27985 "parameter must always be a remote directory.  Wildcards cannot be used."
27986 msgstr ""
27987
27988 #. type: =head2
27989 #: ../fish/guestfish-commands.pod:30
27990 msgid "copy-out"
27991 msgstr ""
27992
27993 #. type: verbatim
27994 #: ../fish/guestfish-commands.pod:32
27995 #, no-wrap
27996 msgid ""
27997 " copy-out remote [remote ...] localdir\n"
27998 "\n"
27999 msgstr ""
28000
28001 #. type: textblock
28002 #: ../fish/guestfish-commands.pod:34
28003 msgid ""
28004 "C<copy-out> copies remote files or directories recursively out of the disk "
28005 "image, placing them on the host disk in a local directory called C<localdir> "
28006 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
28007 "download>, L</tar-out> and other commands as necessary."
28008 msgstr ""
28009
28010 #. type: textblock
28011 #: ../fish/guestfish-commands.pod:40
28012 msgid ""
28013 "Multiple remote files and directories can be specified, but the last "
28014 "parameter must always be a local directory.  To download to the current "
28015 "directory, use C<.> as in:"
28016 msgstr ""
28017
28018 #. type: verbatim
28019 #: ../fish/guestfish-commands.pod:44
28020 #, no-wrap
28021 msgid ""
28022 " copy-out /home .\n"
28023 "\n"
28024 msgstr ""
28025
28026 #. type: textblock
28027 #: ../fish/guestfish-commands.pod:46
28028 msgid ""
28029 "Wildcards cannot be used in the ordinary command, but you can use them with "
28030 "the help of L</glob> like this:"
28031 msgstr ""
28032
28033 #. type: verbatim
28034 #: ../fish/guestfish-commands.pod:49
28035 #, no-wrap
28036 msgid ""
28037 " glob copy-out /home/* .\n"
28038 "\n"
28039 msgstr ""
28040
28041 #. type: =head2
28042 #: ../fish/guestfish-commands.pod:51
28043 msgid "echo"
28044 msgstr ""
28045
28046 #. type: verbatim
28047 #: ../fish/guestfish-commands.pod:53
28048 #, no-wrap
28049 msgid ""
28050 " echo [params ...]\n"
28051 "\n"
28052 msgstr ""
28053
28054 #. type: textblock
28055 #: ../fish/guestfish-commands.pod:55
28056 msgid "This echos the parameters to the terminal."
28057 msgstr ""
28058
28059 #. type: =head2
28060 #: ../fish/guestfish-commands.pod:57
28061 msgid "edit"
28062 msgstr ""
28063
28064 #. type: =head2
28065 #: ../fish/guestfish-commands.pod:59
28066 msgid "vi"
28067 msgstr ""
28068
28069 #. type: =head2
28070 #: ../fish/guestfish-commands.pod:61
28071 msgid "emacs"
28072 msgstr ""
28073
28074 #. type: verbatim
28075 #: ../fish/guestfish-commands.pod:63
28076 #, no-wrap
28077 msgid ""
28078 " edit filename\n"
28079 "\n"
28080 msgstr ""
28081
28082 #. type: textblock
28083 #: ../fish/guestfish-commands.pod:65
28084 msgid ""
28085 "This is used to edit a file.  It downloads the file, edits it locally using "
28086 "your editor, then uploads the result."
28087 msgstr ""
28088
28089 #. type: textblock
28090 #: ../fish/guestfish-commands.pod:68
28091 msgid ""
28092 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
28093 "or C<emacs> you will get those corresponding editors."
28094 msgstr ""
28095
28096 #. type: =head2
28097 #: ../fish/guestfish-commands.pod:72
28098 msgid "glob"
28099 msgstr ""
28100
28101 #. type: verbatim
28102 #: ../fish/guestfish-commands.pod:74
28103 #, no-wrap
28104 msgid ""
28105 " glob command args...\n"
28106 "\n"
28107 msgstr ""
28108
28109 #. type: textblock
28110 #: ../fish/guestfish-commands.pod:76
28111 msgid ""
28112 "Expand wildcards in any paths in the args list, and run C<command> "
28113 "repeatedly on each matching path."
28114 msgstr ""
28115
28116 #. type: textblock
28117 #: ../fish/guestfish-commands.pod:79
28118 msgid "See L</WILDCARDS AND GLOBBING>."
28119 msgstr ""
28120
28121 #. type: =head2
28122 #: ../fish/guestfish-commands.pod:81
28123 msgid "hexedit"
28124 msgstr ""
28125
28126 #. type: verbatim
28127 #: ../fish/guestfish-commands.pod:83
28128 #, no-wrap
28129 msgid ""
28130 " hexedit <filename|device>\n"
28131 " hexedit <filename|device> <max>\n"
28132 " hexedit <filename|device> <start> <max>\n"
28133 "\n"
28134 msgstr ""
28135
28136 #. type: textblock
28137 #: ../fish/guestfish-commands.pod:87
28138 msgid ""
28139 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
28140 "device."
28141 msgstr ""
28142
28143 #. type: textblock
28144 #: ../fish/guestfish-commands.pod:90
28145 msgid ""
28146 "This command works by downloading potentially the whole file or device, "
28147 "editing it locally, then uploading it.  If the file or device is large, you "
28148 "have to specify which part you wish to edit by using C<max> and/or C<start> "
28149 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
28150 "usual modifiers allowed such as C<1M> (1 megabyte)."
28151 msgstr ""
28152
28153 #. type: textblock
28154 #: ../fish/guestfish-commands.pod:97
28155 msgid "For example to edit the first few sectors of a disk you might do:"
28156 msgstr ""
28157
28158 #. type: verbatim
28159 #: ../fish/guestfish-commands.pod:100
28160 #, no-wrap
28161 msgid ""
28162 " hexedit /dev/sda 1M\n"
28163 "\n"
28164 msgstr ""
28165
28166 #. type: textblock
28167 #: ../fish/guestfish-commands.pod:102
28168 msgid ""
28169 "which would allow you to edit anywhere within the first megabyte of the disk."
28170 msgstr ""
28171
28172 #. type: textblock
28173 #: ../fish/guestfish-commands.pod:105
28174 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
28175 msgstr ""
28176
28177 #. type: verbatim
28178 #: ../fish/guestfish-commands.pod:107
28179 #, no-wrap
28180 msgid ""
28181 " hexedit /dev/sda1 0x400 0x400\n"
28182 "\n"
28183 msgstr ""
28184
28185 #. type: textblock
28186 #: ../fish/guestfish-commands.pod:109
28187 msgid "(assuming the superblock is in the standard location)."
28188 msgstr ""
28189
28190 #. type: textblock
28191 #: ../fish/guestfish-commands.pod:111
28192 msgid ""
28193 "This command requires the external L<hexedit(1)> program.  You can specify "
28194 "another program to use by setting the C<HEXEDITOR> environment variable."
28195 msgstr ""
28196
28197 #. type: textblock
28198 #: ../fish/guestfish-commands.pod:115
28199 msgid "See also L</hexdump>."
28200 msgstr ""
28201
28202 #. type: =head2
28203 #: ../fish/guestfish-commands.pod:117
28204 msgid "lcd"
28205 msgstr ""
28206
28207 #. type: verbatim
28208 #: ../fish/guestfish-commands.pod:119
28209 #, no-wrap
28210 msgid ""
28211 " lcd directory\n"
28212 "\n"
28213 msgstr ""
28214
28215 #. type: textblock
28216 #: ../fish/guestfish-commands.pod:121
28217 msgid ""
28218 "Change the local directory, ie. the current directory of guestfish itself."
28219 msgstr ""
28220
28221 #. type: textblock
28222 #: ../fish/guestfish-commands.pod:124
28223 msgid "Note that C<!cd> won't do what you might expect."
28224 msgstr ""
28225
28226 #. type: =head2
28227 #: ../fish/guestfish-commands.pod:126
28228 msgid "man"
28229 msgstr ""
28230
28231 #. type: =head2
28232 #: ../fish/guestfish-commands.pod:128
28233 msgid "manual"
28234 msgstr ""
28235
28236 #. type: verbatim
28237 #: ../fish/guestfish-commands.pod:130
28238 #, no-wrap
28239 msgid ""
28240 "  man\n"
28241 "\n"
28242 msgstr ""
28243
28244 #. type: textblock
28245 #: ../fish/guestfish-commands.pod:132
28246 msgid "Opens the manual page for guestfish."
28247 msgstr ""
28248
28249 #. type: =head2
28250 #: ../fish/guestfish-commands.pod:134
28251 msgid "more"
28252 msgstr ""
28253
28254 #. type: =head2
28255 #: ../fish/guestfish-commands.pod:136
28256 msgid "less"
28257 msgstr ""
28258
28259 #. type: verbatim
28260 #: ../fish/guestfish-commands.pod:138
28261 #, no-wrap
28262 msgid ""
28263 " more filename\n"
28264 "\n"
28265 msgstr ""
28266
28267 #. type: verbatim
28268 #: ../fish/guestfish-commands.pod:140
28269 #, no-wrap
28270 msgid ""
28271 " less filename\n"
28272 "\n"
28273 msgstr ""
28274
28275 #. type: textblock
28276 #: ../fish/guestfish-commands.pod:142
28277 msgid "This is used to view a file."
28278 msgstr ""
28279
28280 #. type: textblock
28281 #: ../fish/guestfish-commands.pod:144
28282 msgid ""
28283 "The default viewer is C<$PAGER>.  However if you use the alternate command "
28284 "C<less> you will get the C<less> command specifically."
28285 msgstr ""
28286
28287 #. type: =head2
28288 #: ../fish/guestfish-commands.pod:147
28289 msgid "reopen"
28290 msgstr ""
28291
28292 #. type: verbatim
28293 #: ../fish/guestfish-commands.pod:149
28294 #, no-wrap
28295 msgid ""
28296 "  reopen\n"
28297 "\n"
28298 msgstr ""
28299
28300 #. type: textblock
28301 #: ../fish/guestfish-commands.pod:151
28302 msgid ""
28303 "Close and reopen the libguestfs handle.  It is not necessary to use this "
28304 "normally, because the handle is closed properly when guestfish exits.  "
28305 "However this is occasionally useful for testing."
28306 msgstr ""
28307
28308 #. type: =head2
28309 #: ../fish/guestfish-commands.pod:155
28310 msgid "sparse"
28311 msgstr ""
28312
28313 #. type: verbatim
28314 #: ../fish/guestfish-commands.pod:157
28315 #, no-wrap
28316 msgid ""
28317 " sparse filename size\n"
28318 "\n"
28319 msgstr ""
28320
28321 #. type: textblock
28322 #: ../fish/guestfish-commands.pod:159
28323 msgid ""
28324 "This creates an empty sparse file of the given size, and then adds so it can "
28325 "be further examined."
28326 msgstr ""
28327
28328 #. type: textblock
28329 #: ../fish/guestfish-commands.pod:162
28330 msgid ""
28331 "In all respects it works the same as the L</alloc> command, except that the "
28332 "image file is allocated sparsely, which means that disk blocks are not "
28333 "assigned to the file until they are needed.  Sparse disk files only use "
28334 "space when written to, but they are slower and there is a danger you could "
28335 "run out of real disk space during a write operation."
28336 msgstr ""
28337
28338 #. type: =head2
28339 #: ../fish/guestfish-commands.pod:172
28340 msgid "supported"
28341 msgstr ""
28342
28343 #. type: verbatim
28344 #: ../fish/guestfish-commands.pod:174
28345 #, no-wrap
28346 msgid ""
28347 " supported\n"
28348 "\n"
28349 msgstr ""
28350
28351 #. type: textblock
28352 #: ../fish/guestfish-commands.pod:176
28353 msgid ""
28354 "This command returns a list of the optional groups known to the daemon, and "
28355 "indicates which ones are supported by this build of the libguestfs appliance."
28356 msgstr ""
28357
28358 #. type: textblock
28359 #: ../fish/guestfish-commands.pod:180
28360 msgid "See also L<guestfs(3)/AVAILABILITY>."
28361 msgstr ""
28362
28363 #. type: =head2
28364 #: ../fish/guestfish-commands.pod:182
28365 msgid "time"
28366 msgstr ""
28367
28368 #. type: verbatim
28369 #: ../fish/guestfish-commands.pod:184
28370 #, no-wrap
28371 msgid ""
28372 " time command args...\n"
28373 "\n"
28374 msgstr ""
28375
28376 #. type: textblock
28377 #: ../fish/guestfish-commands.pod:186
28378 msgid ""
28379 "Run the command as usual, but print the elapsed time afterwards.  This can "
28380 "be useful for benchmarking operations."
28381 msgstr ""
28382
28383 #. type: textblock
28384 #: ../test-tool/libguestfs-test-tool.pod:5
28385 msgid "libguestfs-test-tool - End user tests for libguestfs"
28386 msgstr ""
28387
28388 #. type: verbatim
28389 #: ../test-tool/libguestfs-test-tool.pod:9
28390 #, no-wrap
28391 msgid ""
28392 " libguestfs-test-tool [--options]\n"
28393 "\n"
28394 msgstr ""
28395
28396 #. type: textblock
28397 #: ../test-tool/libguestfs-test-tool.pod:13
28398 msgid ""
28399 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
28400 "and developers, to allow them to check basic libguestfs functionality is "
28401 "working.  This is needed because libguestfs occasionally breaks for reasons "
28402 "beyond our control: usually because of changes in the underlying qemu or "
28403 "kernel packages, or the host environment."
28404 msgstr ""
28405
28406 #. type: textblock
28407 #: ../test-tool/libguestfs-test-tool.pod:20
28408 msgid "If you suspect a problem in libguestfs, then just run:"
28409 msgstr ""
28410
28411 #. type: verbatim
28412 #: ../test-tool/libguestfs-test-tool.pod:22
28413 #, no-wrap
28414 msgid ""
28415 " libguestfs-test-tool\n"
28416 "\n"
28417 msgstr ""
28418
28419 #. type: textblock
28420 #: ../test-tool/libguestfs-test-tool.pod:24
28421 msgid "It will print lots of diagnostic messages."
28422 msgstr ""
28423
28424 #. type: textblock
28425 #: ../test-tool/libguestfs-test-tool.pod:26
28426 msgid "If it runs to completion successfully, you will see this near the end:"
28427 msgstr ""
28428
28429 #. type: verbatim
28430 #: ../test-tool/libguestfs-test-tool.pod:28
28431 #, no-wrap
28432 msgid ""
28433 " ===== TEST FINISHED OK =====\n"
28434 "\n"
28435 msgstr ""
28436
28437 #. type: textblock
28438 #: ../test-tool/libguestfs-test-tool.pod:30
28439 msgid "and the test tool will exit with code 0."
28440 msgstr ""
28441
28442 #. type: textblock
28443 #: ../test-tool/libguestfs-test-tool.pod:32
28444 msgid ""
28445 "If it fails (and/or exits with non-zero error code), please paste the "
28446 "B<complete, unedited> output of the test tool into a bug report.  More "
28447 "information about reporting bugs can be found on the L<http://libguestfs.org/"
28448 "> website."
28449 msgstr ""
28450
28451 #. type: =item
28452 #: ../test-tool/libguestfs-test-tool.pod:41
28453 msgid "I<--help>"
28454 msgstr ""
28455
28456 #. type: textblock
28457 #: ../test-tool/libguestfs-test-tool.pod:43
28458 msgid "Display short usage information and exit."
28459 msgstr ""
28460
28461 #. type: =item
28462 #: ../test-tool/libguestfs-test-tool.pod:45
28463 msgid "I<--qemu qemu_binary>"
28464 msgstr ""
28465
28466 #. type: textblock
28467 #: ../test-tool/libguestfs-test-tool.pod:47
28468 msgid ""
28469 "If you have downloaded another qemu binary, point this option at the full "
28470 "path of the binary to try it."
28471 msgstr ""
28472
28473 #. type: =item
28474 #: ../test-tool/libguestfs-test-tool.pod:50
28475 msgid "I<--qemudir qemu_source_dir>"
28476 msgstr ""
28477
28478 #. type: textblock
28479 #: ../test-tool/libguestfs-test-tool.pod:52
28480 msgid ""
28481 "If you have compiled qemu from source, point this option at the source "
28482 "directory to try it."
28483 msgstr ""
28484
28485 #. type: =item
28486 #: ../test-tool/libguestfs-test-tool.pod:55
28487 msgid "I<--timeout N>"
28488 msgstr ""
28489
28490 #. type: textblock
28491 #: ../test-tool/libguestfs-test-tool.pod:57
28492 msgid ""
28493 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
28494 "does not usually need to be adjusted unless your machine is very slow."
28495 msgstr ""
28496
28497 #. type: =head1
28498 #: ../test-tool/libguestfs-test-tool.pod:63
28499 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
28500 msgstr ""
28501
28502 #. type: textblock
28503 #: ../test-tool/libguestfs-test-tool.pod:65
28504 msgid ""
28505 "If you have compiled another version of qemu from source and would like to "
28506 "try that, then you can use the I<--qemudir> option to point to the qemu "
28507 "source directory."
28508 msgstr ""
28509
28510 #. type: textblock
28511 #: ../test-tool/libguestfs-test-tool.pod:69
28512 msgid ""
28513 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
28514 "option to point to the binary."
28515 msgstr ""
28516
28517 #. type: textblock
28518 #: ../test-tool/libguestfs-test-tool.pod:72
28519 msgid ""
28520 "When using an alternate qemu with libguestfs, usually you would need to "
28521 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
28522 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
28523 "use either of the I<--qemudir> or I<--qemu> options."
28524 msgstr ""
28525
28526 #. type: textblock
28527 #: ../test-tool/libguestfs-test-tool.pod:79
28528 msgid ""
28529 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
28530 "I<1> if there was an error."
28531 msgstr ""
28532
28533 #. type: textblock
28534 #: ../test-tool/libguestfs-test-tool.pod:84
28535 msgid ""
28536 "For the full list of environment variables which may affect libguestfs, "
28537 "please see the L<guestfs(3)> manual page."
28538 msgstr ""
28539
28540 #. type: textblock
28541 #: ../test-tool/libguestfs-test-tool.pod:89
28542 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
28543 msgstr ""
28544
28545 #. type: textblock
28546 #: ../fuse/guestmount.pod:5
28547 msgid ""
28548 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
28549 msgstr ""
28550
28551 #. type: verbatim
28552 #: ../fuse/guestmount.pod:9
28553 #, no-wrap
28554 msgid ""
28555 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
28556 "\n"
28557 msgstr ""
28558
28559 #. type: verbatim
28560 #: ../fuse/guestmount.pod:11
28561 #, no-wrap
28562 msgid ""
28563 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
28564 "\n"
28565 msgstr ""
28566
28567 #. type: verbatim
28568 #: ../fuse/guestmount.pod:13
28569 #, no-wrap
28570 msgid ""
28571 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
28572 "\n"
28573 msgstr ""
28574
28575 #. type: textblock
28576 #: ../fuse/guestmount.pod:17
28577 msgid ""
28578 "You must I<not> use C<guestmount> in read-write mode on live virtual "
28579 "machines.  If you do this, you risk disk corruption in the VM."
28580 msgstr ""
28581
28582 #. type: textblock
28583 #: ../fuse/guestmount.pod:22
28584 msgid ""
28585 "The guestmount program can be used to mount virtual machine filesystems and "
28586 "other disk images on the host.  It uses libguestfs for access to the guest "
28587 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
28588 "a mountable device."
28589 msgstr ""
28590
28591 #. type: textblock
28592 #: ../fuse/guestmount.pod:27
28593 msgid ""
28594 "Along with other options, you have to give at least one device (I<-a> "
28595 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
28596 "option) or use the I<-i> inspection option.  How this works is better "
28597 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
28598 "below."
28599 msgstr ""
28600
28601 #. type: textblock
28602 #: ../fuse/guestmount.pod:33
28603 msgid ""
28604 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
28605 "by you, and the filesystem will not be visible to any other users unless you "
28606 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
28607 "the filesystem, use the C<fusermount -u> command."
28608 msgstr ""
28609
28610 #. type: textblock
28611 #: ../fuse/guestmount.pod:41
28612 msgid ""
28613 "For a typical Windows guest which has its main filesystem on the first "
28614 "partition:"
28615 msgstr ""
28616
28617 #. type: verbatim
28618 #: ../fuse/guestmount.pod:44
28619 #, no-wrap
28620 msgid ""
28621 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
28622 "\n"
28623 msgstr ""
28624
28625 #. type: textblock
28626 #: ../fuse/guestmount.pod:46
28627 msgid ""
28628 "For a typical Linux guest which has a /boot filesystem on the first "
28629 "partition, and the root filesystem on a logical volume:"
28630 msgstr ""
28631
28632 #. type: verbatim
28633 #: ../fuse/guestmount.pod:49
28634 #, no-wrap
28635 msgid ""
28636 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
28637 "\n"
28638 msgstr ""
28639
28640 #. type: textblock
28641 #: ../fuse/guestmount.pod:51
28642 msgid "To get libguestfs to detect guest mountpoints for you:"
28643 msgstr ""
28644
28645 #. type: verbatim
28646 #: ../fuse/guestmount.pod:53
28647 #, no-wrap
28648 msgid ""
28649 " guestmount -a guest.img -i --ro /mnt\n"
28650 "\n"
28651 msgstr ""
28652
28653 #. type: textblock
28654 #: ../fuse/guestmount.pod:55
28655 msgid "For a libvirt guest called \"Guest\" you could do:"
28656 msgstr ""
28657
28658 #. type: verbatim
28659 #: ../fuse/guestmount.pod:57
28660 #, no-wrap
28661 msgid ""
28662 " guestmount -d Guest -i --ro /mnt\n"
28663 "\n"
28664 msgstr ""
28665
28666 #. type: textblock
28667 #: ../fuse/guestmount.pod:59
28668 msgid ""
28669 "If you don't know what filesystems are contained in a guest or disk image, "
28670 "use L<virt-filesystems(1)> first:"
28671 msgstr ""
28672
28673 #. type: verbatim
28674 #: ../fuse/guestmount.pod:62
28675 #, no-wrap
28676 msgid ""
28677 " virt-filesystems MyGuest\n"
28678 "\n"
28679 msgstr ""
28680
28681 #. type: textblock
28682 #: ../fuse/guestmount.pod:64
28683 msgid ""
28684 "If you want to trace the libguestfs calls but without excessive debugging "
28685 "information, we recommend:"
28686 msgstr ""
28687
28688 #. type: verbatim
28689 #: ../fuse/guestmount.pod:67
28690 #, no-wrap
28691 msgid ""
28692 " guestmount [...] --trace /mnt\n"
28693 "\n"
28694 msgstr ""
28695
28696 #. type: textblock
28697 #: ../fuse/guestmount.pod:69
28698 msgid "If you want to debug the program, we recommend:"
28699 msgstr ""
28700
28701 #. type: verbatim
28702 #: ../fuse/guestmount.pod:71
28703 #, no-wrap
28704 msgid ""
28705 " guestmount [...] --trace --verbose /mnt\n"
28706 "\n"
28707 msgstr ""
28708
28709 #. type: =item
28710 #: ../fuse/guestmount.pod:77
28711 msgid "B<-a image> | B<--add image>"
28712 msgstr ""
28713
28714 #. type: textblock
28715 #: ../fuse/guestmount.pod:79
28716 msgid "Add a block device or virtual machine image."
28717 msgstr ""
28718
28719 #. type: =item
28720 #: ../fuse/guestmount.pod:84
28721 msgid "B<-c URI> | B<--connect URI>"
28722 msgstr ""
28723
28724 #. type: =item
28725 #: ../fuse/guestmount.pod:90
28726 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
28727 msgstr ""
28728
28729 #. type: =item
28730 #: ../fuse/guestmount.pod:98
28731 msgid "B<--dir-cache-timeout N>"
28732 msgstr ""
28733
28734 #. type: textblock
28735 #: ../fuse/guestmount.pod:100
28736 msgid ""
28737 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
28738 "seconds.  The readdir cache [actually, there are several semi-independent "
28739 "caches] is populated after a readdir(2) call with the stat and extended "
28740 "attributes of the files in the directory, in anticipation that they will be "
28741 "requested soon after."
28742 msgstr ""
28743
28744 #. type: textblock
28745 #: ../fuse/guestmount.pod:106
28746 msgid ""
28747 "There is also a different attribute cache implemented by FUSE (see the FUSE "
28748 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
28749 "requests, only cache existing ones."
28750 msgstr ""
28751
28752 #. type: =item
28753 #: ../fuse/guestmount.pod:117
28754 msgid "B<--format=raw|qcow2|..> | B<--format>"
28755 msgstr ""
28756
28757 #. type: textblock
28758 #: ../fuse/guestmount.pod:124
28759 msgid ""
28760 "If you have untrusted raw-format guest disk images, you should use this "
28761 "option to specify the disk format.  This avoids a possible security problem "
28762 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
28763 "guestfs_add_drive_opts>."
28764 msgstr ""
28765
28766 #. type: =item
28767 #: ../fuse/guestmount.pod:129
28768 msgid "B<--fuse-help>"
28769 msgstr ""
28770
28771 #. type: textblock
28772 #: ../fuse/guestmount.pod:131
28773 msgid "Display help on special FUSE options (see I<-o> below)."
28774 msgstr ""
28775
28776 #. type: textblock
28777 #: ../fuse/guestmount.pod:135
28778 msgid "Display brief help and exit."
28779 msgstr ""
28780
28781 #. type: =item
28782 #: ../fuse/guestmount.pod:137
28783 msgid "B<-i> | B<--inspector>"
28784 msgstr ""
28785
28786 #. type: textblock
28787 #: ../fuse/guestmount.pod:157
28788 msgid ""
28789 "Mount the named partition or logical volume on the given mountpoint B<in the "
28790 "guest> (this has nothing to do with mountpoints in the host)."
28791 msgstr ""
28792
28793 #. type: textblock
28794 #: ../fuse/guestmount.pod:160
28795 msgid ""
28796 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
28797 "something on C</>."
28798 msgstr ""
28799
28800 #. type: =item
28801 #: ../fuse/guestmount.pod:173
28802 msgid "B<-n> | B<--no-sync>"
28803 msgstr ""
28804
28805 #. type: textblock
28806 #: ../fuse/guestmount.pod:175
28807 msgid ""
28808 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
28809 "unmounted.  If you specify this option, then we don't attempt to sync the "
28810 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
28811 msgstr ""
28812
28813 #. type: =item
28814 #: ../fuse/guestmount.pod:180
28815 msgid "B<-o option> | B<--option option>"
28816 msgstr ""
28817
28818 #. type: textblock
28819 #: ../fuse/guestmount.pod:182
28820 msgid "Pass extra options to FUSE."
28821 msgstr ""
28822
28823 #. type: textblock
28824 #: ../fuse/guestmount.pod:184
28825 msgid ""
28826 "To get a list of all the extra options supported by FUSE, use the command "
28827 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
28828 "of them are a good idea."
28829 msgstr ""
28830
28831 #. type: verbatim
28832 #: ../fuse/guestmount.pod:188
28833 #, no-wrap
28834 msgid ""
28835 " guestmount --fuse-help\n"
28836 "\n"
28837 msgstr ""
28838
28839 #. type: textblock
28840 #: ../fuse/guestmount.pod:190
28841 msgid "Some potentially useful FUSE options:"
28842 msgstr ""
28843
28844 #. type: =item
28845 #: ../fuse/guestmount.pod:194
28846 msgid "B<-o allow_other>"
28847 msgstr ""
28848
28849 #. type: textblock
28850 #: ../fuse/guestmount.pod:196
28851 msgid "Allow other users to see the filesystem."
28852 msgstr ""
28853
28854 #. type: =item
28855 #: ../fuse/guestmount.pod:198
28856 msgid "B<-o attr_timeout=N>"
28857 msgstr ""
28858
28859 #. type: textblock
28860 #: ../fuse/guestmount.pod:200
28861 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
28862 msgstr ""
28863
28864 #. type: =item
28865 #: ../fuse/guestmount.pod:202
28866 msgid "B<-o kernel_cache>"
28867 msgstr ""
28868
28869 #. type: textblock
28870 #: ../fuse/guestmount.pod:204
28871 msgid ""
28872 "Allow the kernel to cache files (reduces the number of reads that have to go "
28873 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
28874 "afford the extra memory usage."
28875 msgstr ""
28876
28877 #. type: =item
28878 #: ../fuse/guestmount.pod:208
28879 msgid "B<-o uid=N> B<-o gid=N>"
28880 msgstr ""
28881
28882 #. type: textblock
28883 #: ../fuse/guestmount.pod:210
28884 msgid ""
28885 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
28886 "the chosen values."
28887 msgstr ""
28888
28889 #. type: =item
28890 #: ../fuse/guestmount.pod:215
28891 msgid "B<-r> | B<--ro>"
28892 msgstr ""
28893
28894 #. type: textblock
28895 #: ../fuse/guestmount.pod:217
28896 msgid ""
28897 "Add devices and mount everything read-only.  Also disallow writes and make "
28898 "the disk appear read-only to FUSE."
28899 msgstr ""
28900
28901 #. type: textblock
28902 #: ../fuse/guestmount.pod:220
28903 msgid ""
28904 "This is highly recommended if you are not going to edit the guest disk.  If "
28905 "the guest is running and this option is I<not> supplied, then there is a "
28906 "strong risk of disk corruption in the guest.  We try to prevent this from "
28907 "happening, but it is not always possible."
28908 msgstr ""
28909
28910 #. type: textblock
28911 #: ../fuse/guestmount.pod:225
28912 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
28913 msgstr ""
28914
28915 #. type: textblock
28916 #: ../fuse/guestmount.pod:229
28917 msgid "Enable SELinux support for the guest."
28918 msgstr ""
28919
28920 #. type: =item
28921 #: ../fuse/guestmount.pod:231
28922 msgid "B<-v> | B<--verbose>"
28923 msgstr ""
28924
28925 #. type: textblock
28926 #: ../fuse/guestmount.pod:233
28927 msgid "Enable verbose messages from underlying libguestfs."
28928 msgstr ""
28929
28930 #. type: =item
28931 #: ../fuse/guestmount.pod:235
28932 msgid "B<-V> | B<--version>"
28933 msgstr ""
28934
28935 #. type: textblock
28936 #: ../fuse/guestmount.pod:237
28937 msgid "Display the program version and exit."
28938 msgstr ""
28939
28940 #. type: =item
28941 #: ../fuse/guestmount.pod:239
28942 msgid "B<-w> | B<--rw>"
28943 msgstr ""
28944
28945 #. type: textblock
28946 #: ../fuse/guestmount.pod:244 ../fuse/guestmount.pod:265
28947 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
28948 msgstr ""
28949
28950 #. type: =item
28951 #: ../fuse/guestmount.pod:246
28952 msgid "B<-x> | B<--trace>"
28953 msgstr ""
28954
28955 #. type: textblock
28956 #: ../fuse/guestmount.pod:248
28957 msgid "Trace libguestfs calls and entry into each FUSE function."
28958 msgstr ""
28959
28960 #. type: textblock
28961 #: ../fuse/guestmount.pod:250
28962 msgid "This also stops the daemon from forking into the background."
28963 msgstr ""
28964
28965 #. type: textblock
28966 #: ../fuse/guestmount.pod:271
28967 msgid ""
28968 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
28969 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
28970 "net/>."
28971 msgstr ""
28972
28973 #. type: textblock
28974 #: ../fuse/guestmount.pod:286
28975 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
28976 msgstr ""
28977
28978 #. type: textblock
28979 #: ../tools/virt-win-reg.pl:37
28980 msgid ""
28981 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
28982 msgstr ""
28983
28984 #. type: verbatim
28985 #: ../tools/virt-win-reg.pl:41
28986 #, no-wrap
28987 msgid ""
28988 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
28989 "\n"
28990 msgstr ""
28991
28992 #. type: verbatim
28993 #: ../tools/virt-win-reg.pl:43
28994 #, no-wrap
28995 msgid ""
28996 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
28997 "\n"
28998 msgstr ""
28999
29000 #. type: verbatim
29001 #: ../tools/virt-win-reg.pl:45
29002 #, no-wrap
29003 msgid ""
29004 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
29005 "\n"
29006 msgstr ""
29007
29008 #. type: verbatim
29009 #: ../tools/virt-win-reg.pl:47
29010 #, no-wrap
29011 msgid ""
29012 " virt-win-reg --merge domname [input.reg ...]\n"
29013 "\n"
29014 msgstr ""
29015
29016 #. type: verbatim
29017 #: ../tools/virt-win-reg.pl:49
29018 #, no-wrap
29019 msgid ""
29020 " virt-win-reg [--options] disk.img ... # instead of domname\n"
29021 "\n"
29022 msgstr ""
29023
29024 #. type: textblock
29025 #: ../tools/virt-win-reg.pl:53
29026 msgid ""
29027 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
29028 "virtual machines.  If you do this, you I<will> get irreversible disk "
29029 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
29030 "but doesn't catch all cases."
29031 msgstr ""
29032
29033 #. type: textblock
29034 #: ../tools/virt-win-reg.pl:58
29035 msgid ""
29036 "Modifying the Windows Registry is an inherently risky operation.  The format "
29037 "is deliberately obscure and undocumented, and Registry changes can leave the "
29038 "system unbootable.  Therefore when using the I<--merge> option, make sure "
29039 "you have a reliable backup first."
29040 msgstr ""
29041
29042 #. type: textblock
29043 #: ../tools/virt-win-reg.pl:65
29044 msgid ""
29045 "This program can export and merge Windows Registry entries from a Windows "
29046 "guest."
29047 msgstr ""
29048
29049 #. type: textblock
29050 #: ../tools/virt-win-reg.pl:68
29051 msgid ""
29052 "The first parameter is the libvirt guest name or the raw disk image of a "
29053 "Windows guest."
29054 msgstr ""
29055
29056 #. type: textblock
29057 #: ../tools/virt-win-reg.pl:71
29058 msgid ""
29059 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
29060 "exported (recursively).  For example:"
29061 msgstr ""
29062
29063 #. type: verbatim
29064 #: ../tools/virt-win-reg.pl:74
29065 #, no-wrap
29066 msgid ""
29067 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
29068 "\n"
29069 msgstr ""
29070
29071 #. type: textblock
29072 #: ../tools/virt-win-reg.pl:76
29073 msgid ""
29074 "You can also display single values from within registry keys, for example:"
29075 msgstr ""
29076
29077 #. type: verbatim
29078 #: ../tools/virt-win-reg.pl:79
29079 #, no-wrap
29080 msgid ""
29081 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
29082 " $ virt-win-reg Windows7 $cvkey ProductName\n"
29083 " Windows 7 Enterprise\n"
29084 "\n"
29085 msgstr ""
29086
29087 #. type: textblock
29088 #: ../tools/virt-win-reg.pl:83
29089 msgid ""
29090 "With I<--merge>, you can merge a textual regedit file into the Windows "
29091 "Registry:"
29092 msgstr ""
29093
29094 #. type: verbatim
29095 #: ../tools/virt-win-reg.pl:86
29096 #, no-wrap
29097 msgid ""
29098 " $ virt-win-reg --merge Windows7 changes.reg\n"
29099 "\n"
29100 msgstr ""
29101
29102 #. type: =head1
29103 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
29104 msgid "NOTE"
29105 msgstr ""
29106
29107 #. type: textblock
29108 #: ../tools/virt-win-reg.pl:90
29109 msgid ""
29110 "This program is only meant for simple access to the registry.  If you want "
29111 "to do complicated things with the registry, we suggest you download the "
29112 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
29113 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
29114 "L<hivexregedit(1)>."
29115 msgstr ""
29116
29117 #. type: textblock
29118 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63
29119 #: ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163
29120 #: ../tools/virt-list-partitions.pl:64
29121 msgid "Display brief help."
29122 msgstr ""
29123
29124 #. type: textblock
29125 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71
29126 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
29127 #: ../tools/virt-list-partitions.pl:72
29128 msgid "Display version number and exit."
29129 msgstr ""
29130
29131 #. type: =item
29132 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
29133 msgid "B<--debug>"
29134 msgstr ""
29135
29136 #. type: textblock
29137 #: ../tools/virt-win-reg.pl:122
29138 msgid "Enable debugging messages."
29139 msgstr ""
29140
29141 #. type: =item
29142 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77
29143 #: ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
29144 msgid "B<--connect URI> | B<-c URI>"
29145 msgstr ""
29146
29147 #. type: textblock
29148 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79
29149 #: ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
29150 msgid ""
29151 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
29152 "to the default libvirt hypervisor."
29153 msgstr ""
29154
29155 #. type: textblock
29156 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82
29157 #: ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
29158 msgid ""
29159 "If you specify guest block devices directly, then libvirt is not used at all."
29160 msgstr ""
29161
29162 #. type: =item
29163 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89
29164 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
29165 msgid "B<--format> raw"
29166 msgstr ""
29167
29168 #. type: textblock
29169 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91
29170 #: ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
29171 msgid ""
29172 "Specify the format of disk images given on the command line.  If this is "
29173 "omitted then the format is autodetected from the content of the disk image."
29174 msgstr ""
29175
29176 #. type: textblock
29177 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95
29178 #: ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
29179 msgid ""
29180 "If disk images are requested from libvirt, then this program asks libvirt "
29181 "for this information.  In this case, the value of the format parameter is "
29182 "ignored."
29183 msgstr ""
29184
29185 #. type: textblock
29186 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99
29187 #: ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
29188 msgid ""
29189 "If working with untrusted raw-format guest disk images, you should ensure "
29190 "the format is always specified."
29191 msgstr ""
29192
29193 #. type: =item
29194 #: ../tools/virt-win-reg.pl:157
29195 msgid "B<--merge>"
29196 msgstr ""
29197
29198 #. type: textblock
29199 #: ../tools/virt-win-reg.pl:159
29200 msgid ""
29201 "In merge mode, this merges a textual regedit file into the Windows Registry "
29202 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
29203 "displays or exports Registry entries instead."
29204 msgstr ""
29205
29206 #. type: textblock
29207 #: ../tools/virt-win-reg.pl:163
29208 msgid ""
29209 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
29210 "result in disk corruption.  However exporting (without this flag)  is always "
29211 "safe."
29212 msgstr ""
29213
29214 #. type: =item
29215 #: ../tools/virt-win-reg.pl:171
29216 msgid "B<--encoding> UTF-16LE|ASCII"
29217 msgstr ""
29218
29219 #. type: textblock
29220 #: ../tools/virt-win-reg.pl:173
29221 msgid ""
29222 "When merging (only), you may need to specify the encoding for strings to be "
29223 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
29224 "(3)/ENCODING STRINGS>."
29225 msgstr ""
29226
29227 #. type: textblock
29228 #: ../tools/virt-win-reg.pl:177
29229 msgid ""
29230 "The default is to use UTF-16LE, which should work with recent versions of "
29231 "Windows."
29232 msgstr ""
29233
29234 #. type: =item
29235 #: ../tools/virt-win-reg.pl:184
29236 msgid "B<--unsafe-printable-strings>"
29237 msgstr ""
29238
29239 #. type: textblock
29240 #: ../tools/virt-win-reg.pl:186
29241 msgid ""
29242 "When exporting (only), assume strings are UTF-16LE and print them as strings "
29243 "instead of hex sequences.  Remove the final zero codepoint from strings if "
29244 "present."
29245 msgstr ""
29246
29247 #. type: textblock
29248 #: ../tools/virt-win-reg.pl:190
29249 msgid ""
29250 "This is unsafe and does not preserve the fidelity of strings in the original "
29251 "Registry for various reasons:"
29252 msgstr ""
29253
29254 #. type: textblock
29255 #: ../tools/virt-win-reg.pl:197
29256 msgid ""
29257 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
29258 "other encodings will be corrupted by this transformation."
29259 msgstr ""
29260
29261 #. type: textblock
29262 #: ../tools/virt-win-reg.pl:202
29263 msgid ""
29264 "Assumes that everything which has type 1 or 2 is really a string and that "
29265 "everything else is not a string, but the type field in real Registries is "
29266 "not reliable."
29267 msgstr ""
29268
29269 #. type: textblock
29270 #: ../tools/virt-win-reg.pl:208
29271 msgid ""
29272 "Loses information about whether a zero codepoint followed the string in the "
29273 "Registry or not."
29274 msgstr ""
29275
29276 #. type: textblock
29277 #: ../tools/virt-win-reg.pl:213
29278 msgid ""
29279 "This all happens because the Registry itself contains no information about "
29280 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
29281 msgstr ""
29282
29283 #. type: textblock
29284 #: ../tools/virt-win-reg.pl:217
29285 msgid ""
29286 "You should only use this option for quick hacking and debugging of the "
29287 "Registry contents, and I<never> use it if the output is going to be passed "
29288 "into another program or stored in another Registry."
29289 msgstr ""
29290
29291 #. type: =head1
29292 #: ../tools/virt-win-reg.pl:553
29293 msgid "SUPPORTED SYSTEMS"
29294 msgstr ""
29295
29296 #. type: textblock
29297 #: ../tools/virt-win-reg.pl:555
29298 msgid ""
29299 "The program currently supports Windows NT-derived guests starting with "
29300 "Windows XP through to at least Windows 7."
29301 msgstr ""
29302
29303 #. type: textblock
29304 #: ../tools/virt-win-reg.pl:558
29305 msgid "The following Registry keys are supported:"
29306 msgstr ""
29307
29308 #. type: =item
29309 #: ../tools/virt-win-reg.pl:562
29310 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
29311 msgstr ""
29312
29313 #. type: =item
29314 #: ../tools/virt-win-reg.pl:564
29315 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
29316 msgstr ""
29317
29318 #. type: =item
29319 #: ../tools/virt-win-reg.pl:566
29320 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
29321 msgstr ""
29322
29323 #. type: =item
29324 #: ../tools/virt-win-reg.pl:568
29325 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
29326 msgstr ""
29327
29328 #. type: =item
29329 #: ../tools/virt-win-reg.pl:570
29330 msgid "C<HKEY_USERS\\.DEFAULT>"
29331 msgstr ""
29332
29333 #. type: =item
29334 #: ../tools/virt-win-reg.pl:572
29335 msgid "C<HKEY_USERS\\I<SID>>"
29336 msgstr ""
29337
29338 #. type: textblock
29339 #: ../tools/virt-win-reg.pl:574
29340 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
29341 msgstr ""
29342
29343 #. type: =item
29344 #: ../tools/virt-win-reg.pl:576
29345 msgid "C<HKEY_USERS\\I<username>>"
29346 msgstr ""
29347
29348 #. type: textblock
29349 #: ../tools/virt-win-reg.pl:578
29350 msgid ""
29351 "where I<username> is a local user name (this is a libguestfs extension)."
29352 msgstr ""
29353
29354 #. type: textblock
29355 #: ../tools/virt-win-reg.pl:582
29356 msgid ""
29357 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
29358 "C<HKEY_USERS>."
29359 msgstr ""
29360
29361 #. type: textblock
29362 #: ../tools/virt-win-reg.pl:585
29363 msgid ""
29364 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
29365 "supported (there is no \"current user\")."
29366 msgstr ""
29367
29368 #. type: =head1
29369 #: ../tools/virt-win-reg.pl:588
29370 msgid "ENCODING"
29371 msgstr ""
29372
29373 #. type: textblock
29374 #: ../tools/virt-win-reg.pl:590
29375 msgid ""
29376 "C<virt-win-reg> expects that regedit files have already been reencoded in "
29377 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
29378 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
29379 "Windows-style line endings, you may need to reencode the whole file before "
29380 "or after processing."
29381 msgstr ""
29382
29383 #. type: textblock
29384 #: ../tools/virt-win-reg.pl:596
29385 msgid ""
29386 "To reencode a file from Windows format to Linux (before processing it with "
29387 "the I<--merge> option), you would do something like this:"
29388 msgstr ""
29389
29390 #. type: verbatim
29391 #: ../tools/virt-win-reg.pl:599
29392 #, no-wrap
29393 msgid ""
29394 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
29395 "\n"
29396 msgstr ""
29397
29398 #. type: textblock
29399 #: ../tools/virt-win-reg.pl:601
29400 msgid ""
29401 "To go in the opposite direction, after exporting and before sending the file "
29402 "to a Windows user, do something like this:"
29403 msgstr ""
29404
29405 #. type: verbatim
29406 #: ../tools/virt-win-reg.pl:604
29407 #, no-wrap
29408 msgid ""
29409 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: textblock
29414 #: ../tools/virt-win-reg.pl:606
29415 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
29416 msgstr ""
29417
29418 #. type: textblock
29419 #: ../tools/virt-win-reg.pl:608
29420 msgid ""
29421 "If you are unsure about the current encoding, use the L<file(1)> command.  "
29422 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
29423 "style (CRLF) line endings, like this:"
29424 msgstr ""
29425
29426 #. type: verbatim
29427 #: ../tools/virt-win-reg.pl:612
29428 #, no-wrap
29429 msgid ""
29430 " $ file software.reg\n"
29431 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
29432 " with CRLF line terminators\n"
29433 "\n"
29434 msgstr ""
29435
29436 #. type: textblock
29437 #: ../tools/virt-win-reg.pl:616
29438 msgid "This file would need conversion before you could I<--merge> it."
29439 msgstr ""
29440
29441 #. type: =head1
29442 #: ../tools/virt-win-reg.pl:618
29443 msgid "CurrentControlSet etc."
29444 msgstr ""
29445
29446 #. type: textblock
29447 #: ../tools/virt-win-reg.pl:620
29448 msgid ""
29449 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
29450 "Registry at the level of the hive file, and therefore you cannot modify "
29451 "these."
29452 msgstr ""
29453
29454 #. type: textblock
29455 #: ../tools/virt-win-reg.pl:624
29456 msgid ""
29457 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
29458 "circumstances it might refer to another control set.  The way to find out is "
29459 "to look at the C<HKLM\\SYSTEM\\Select> key:"
29460 msgstr ""
29461
29462 #. type: verbatim
29463 #: ../tools/virt-win-reg.pl:628
29464 #, no-wrap
29465 msgid ""
29466 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
29467 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
29468 " \"Current\"=dword:00000001\n"
29469 " \"Default\"=dword:00000001\n"
29470 " \"Failed\"=dword:00000000\n"
29471 " \"LastKnownGood\"=dword:00000002\n"
29472 "\n"
29473 msgstr ""
29474
29475 #. type: textblock
29476 #: ../tools/virt-win-reg.pl:635
29477 msgid "\"Current\" is the one which Windows will choose when it boots."
29478 msgstr ""
29479
29480 #. type: textblock
29481 #: ../tools/virt-win-reg.pl:637
29482 msgid ""
29483 "Similarly, other C<Current...> keys in the path may need to be replaced."
29484 msgstr ""
29485
29486 #. type: =head1
29487 #: ../tools/virt-win-reg.pl:640
29488 msgid "WINDOWS TIPS"
29489 msgstr ""
29490
29491 #. type: textblock
29492 #: ../tools/virt-win-reg.pl:642
29493 msgid ""
29494 "Note that some of these tips modify the guest disk image.  The guest I<must> "
29495 "be shut off, else you will get disk corruption."
29496 msgstr ""
29497
29498 #. type: =head2
29499 #: ../tools/virt-win-reg.pl:645
29500 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
29501 msgstr ""
29502
29503 #. type: textblock
29504 #: ../tools/virt-win-reg.pl:647
29505 msgid ""
29506 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
29507 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
29508 "is uploaded into C<C:\\>:"
29509 msgstr ""
29510
29511 #. type: verbatim
29512 #: ../tools/virt-win-reg.pl:651
29513 #, no-wrap
29514 msgid ""
29515 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
29516 "\n"
29517 msgstr ""
29518
29519 #. type: textblock
29520 #: ../tools/virt-win-reg.pl:653
29521 msgid "Prepare a regedit file containing the registry change:"
29522 msgstr ""
29523
29524 #. type: verbatim
29525 #: ../tools/virt-win-reg.pl:655
29526 #, no-wrap
29527 msgid ""
29528 " cat > test.reg <<'EOF'\n"
29529 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
29530 " \"Test\"=\"c:\\\\test.bat\"\n"
29531 " EOF\n"
29532 "\n"
29533 msgstr ""
29534
29535 #. type: textblock
29536 #: ../tools/virt-win-reg.pl:660
29537 msgid ""
29538 "In this example we use the key C<RunOnce> which means that the script will "
29539 "run precisely once when the first user logs in.  If you want it to run every "
29540 "time a user logs in, replace C<RunOnce> with C<Run>."
29541 msgstr ""
29542
29543 #. type: textblock
29544 #: ../tools/virt-win-reg.pl:664
29545 msgid "Now update the registry:"
29546 msgstr ""
29547
29548 #. type: verbatim
29549 #: ../tools/virt-win-reg.pl:666
29550 #, no-wrap
29551 msgid ""
29552 " virt-win-reg --merge WindowsGuest test.reg\n"
29553 "\n"
29554 msgstr ""
29555
29556 #. type: =head2
29557 #: ../tools/virt-win-reg.pl:668
29558 msgid "INSTALLING A SERVICE"
29559 msgstr ""
29560
29561 #. type: textblock
29562 #: ../tools/virt-win-reg.pl:670
29563 msgid ""
29564 "This section assumes you are familiar with Windows services, and you either "
29565 "have a program which handles the Windows Service Control Protocol directly "
29566 "or you want to run any program using a service wrapper like SrvAny or the "
29567 "free RHSrvAny."
29568 msgstr ""
29569
29570 #. type: textblock
29571 #: ../tools/virt-win-reg.pl:675
29572 msgid ""
29573 "First upload the program and optionally the service wrapper.  In this case "
29574 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
29575 msgstr ""
29576
29577 #. type: verbatim
29578 #: ../tools/virt-win-reg.pl:679
29579 #, no-wrap
29580 msgid ""
29581 " guestfish -i -d WindowsGuest <<EOF\n"
29582 "   upload rhsrvany.exe /rhsrvany.exe\n"
29583 "   upload test.exe /test.exe\n"
29584 " EOF\n"
29585 "\n"
29586 msgstr ""
29587
29588 #. type: textblock
29589 #: ../tools/virt-win-reg.pl:684
29590 msgid ""
29591 "Prepare a regedit file containing the registry changes.  In this example, "
29592 "the first registry change is needed for the service itself or the service "
29593 "wrapper (if used).  The second registry change is only needed because I am "
29594 "using the RHSrvAny service wrapper."
29595 msgstr ""
29596
29597 #. type: verbatim
29598 #: ../tools/virt-win-reg.pl:689
29599 #, no-wrap
29600 msgid ""
29601 " cat > service.reg <<'EOF'\n"
29602 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
29603 " \"Type\"=dword:00000010\n"
29604 " \"Start\"=dword:00000002\n"
29605 " \"ErrorControl\"=dword:00000001\n"
29606 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
29607 " \"DisplayName\"=\"RHSrvAny\"\n"
29608 " \"ObjectName\"=\"NetworkService\"\n"
29609 " \n"
29610 msgstr ""
29611
29612 #. type: verbatim
29613 #: ../tools/virt-win-reg.pl:698
29614 #, no-wrap
29615 msgid ""
29616 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
29617 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
29618 " \"PWD\"=\"c:\\\\Temp\"\n"
29619 " EOF\n"
29620 "\n"
29621 msgstr ""
29622
29623 #. type: textblock
29624 #: ../tools/virt-win-reg.pl:709
29625 msgid ""
29626 "For use of C<ControlSet001> see the section above in this manual page.  You "
29627 "may need to adjust this according to the control set that is in use by the "
29628 "guest."
29629 msgstr ""
29630
29631 #. type: textblock
29632 #: ../tools/virt-win-reg.pl:715
29633 msgid ""
29634 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
29635 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
29636 "privileged account."
29637 msgstr ""
29638
29639 #. type: textblock
29640 #: ../tools/virt-win-reg.pl:721
29641 msgid ""
29642 "For the meaning of the magic numbers, see this Microsoft KB article: "
29643 "L<http://support.microsoft.com/kb/103000>."
29644 msgstr ""
29645
29646 #. type: textblock
29647 #: ../tools/virt-win-reg.pl:726
29648 msgid "Update the registry:"
29649 msgstr ""
29650
29651 #. type: verbatim
29652 #: ../tools/virt-win-reg.pl:728
29653 #, no-wrap
29654 msgid ""
29655 " virt-win-reg --merge WindowsGuest service.reg\n"
29656 "\n"
29657 msgstr ""
29658
29659 #. type: =head1
29660 #: ../tools/virt-win-reg.pl:730 ../tools/virt-list-filesystems.pl:182
29661 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
29662 #: ../tools/virt-list-partitions.pl:250
29663 msgid "SHELL QUOTING"
29664 msgstr ""
29665
29666 #. type: textblock
29667 #: ../tools/virt-win-reg.pl:732
29668 msgid ""
29669 "Be careful when passing parameters containing C<\\> (backslash) in the "
29670 "shell.  Usually you will have to use 'single quotes' or double backslashes "
29671 "(but not both) to protect them from the shell."
29672 msgstr ""
29673
29674 #. type: textblock
29675 #: ../tools/virt-win-reg.pl:736
29676 msgid "Paths and value names are case-insensitive."
29677 msgstr ""
29678
29679 #. type: textblock
29680 #: ../tools/virt-win-reg.pl:738 ../tools/virt-list-filesystems.pl:184
29681 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
29682 #: ../tools/virt-list-partitions.pl:252
29683 msgid ""
29684 "Libvirt guest names can contain arbitrary characters, some of which have "
29685 "meaning to the shell such as C<#> and space.  You may need to quote or "
29686 "escape these characters on the command line.  See the shell manual page L<sh"
29687 "(1)> for details."
29688 msgstr ""
29689
29690 #. type: textblock
29691 #: ../tools/virt-win-reg.pl:745
29692 msgid ""
29693 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
29694 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
29695 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29696 msgstr ""
29697
29698 #. type: textblock
29699 #: ../tools/virt-win-reg.pl:760 ../tools/virt-make-fs.pl:555
29700 msgid ""
29701 "When reporting bugs, please enable debugging and capture the I<complete> "
29702 "output:"
29703 msgstr ""
29704
29705 #. type: verbatim
29706 #: ../tools/virt-win-reg.pl:763
29707 #, no-wrap
29708 msgid ""
29709 " export LIBGUESTFS_DEBUG=1\n"
29710 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
29711 "\n"
29712 msgstr ""
29713
29714 #. type: textblock
29715 #: ../tools/virt-win-reg.pl:766
29716 msgid ""
29717 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
29718 "redhat.com/>"
29719 msgstr ""
29720
29721 #. type: =head1
29722 #: ../tools/virt-win-reg.pl:769 ../tools/virt-list-filesystems.pl:202
29723 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
29724 #: ../tools/virt-list-partitions.pl:269
29725 msgid "AUTHOR"
29726 msgstr ""
29727
29728 #. type: textblock
29729 #: ../tools/virt-win-reg.pl:771 ../tools/virt-list-filesystems.pl:204
29730 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
29731 #: ../tools/virt-list-partitions.pl:271
29732 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
29733 msgstr ""
29734
29735 #. type: textblock
29736 #: ../tools/virt-win-reg.pl:775 ../tools/virt-make-fs.pl:570
29737 msgid "Copyright (C) 2010 Red Hat Inc."
29738 msgstr ""
29739
29740 #. type: textblock
29741 #: ../tools/virt-list-filesystems.pl:32
29742 msgid ""
29743 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
29744 msgstr ""
29745
29746 #. type: verbatim
29747 #: ../tools/virt-list-filesystems.pl:36
29748 #, no-wrap
29749 msgid ""
29750 " virt-list-filesystems [--options] domname\n"
29751 "\n"
29752 msgstr ""
29753
29754 #. type: verbatim
29755 #: ../tools/virt-list-filesystems.pl:38
29756 #, no-wrap
29757 msgid ""
29758 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
29759 "\n"
29760 msgstr ""
29761
29762 #. type: textblock
29763 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
29764 msgid ""
29765 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
29766 "replacement."
29767 msgstr ""
29768
29769 #. type: textblock
29770 #: ../tools/virt-list-filesystems.pl:45
29771 msgid ""
29772 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
29773 "are contained in a virtual machine or disk image."
29774 msgstr ""
29775
29776 #. type: textblock
29777 #: ../tools/virt-list-filesystems.pl:49
29778 msgid ""
29779 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
29780 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29781 "> tool."
29782 msgstr ""
29783
29784 #. type: =item
29785 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
29786 msgid "B<-l> | B<--long>"
29787 msgstr ""
29788
29789 #. type: textblock
29790 #: ../tools/virt-list-filesystems.pl:108
29791 msgid ""
29792 "With this option, C<virt-list-filesystems> displays the type of each "
29793 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
29794 msgstr ""
29795
29796 #. type: =item
29797 #: ../tools/virt-list-filesystems.pl:115
29798 msgid "B<-a> | B<--all>"
29799 msgstr ""
29800
29801 #. type: textblock
29802 #: ../tools/virt-list-filesystems.pl:117
29803 msgid ""
29804 "Normally we only show mountable filesystems.  If this option is given then "
29805 "swap devices are shown too."
29806 msgstr ""
29807
29808 #. type: textblock
29809 #: ../tools/virt-list-filesystems.pl:191
29810 msgid ""
29811 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
29812 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
29813 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29814 msgstr ""
29815
29816 #. type: textblock
29817 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
29818 msgid "Copyright (C) 2009 Red Hat Inc."
29819 msgstr ""
29820
29821 #. type: textblock
29822 #: ../tools/virt-tar.pl:33
29823 msgid "virt-tar - Extract or upload files to a virtual machine"
29824 msgstr ""
29825
29826 #. type: verbatim
29827 #: ../tools/virt-tar.pl:37
29828 #, no-wrap
29829 msgid ""
29830 " virt-tar [--options] -x domname directory tarball\n"
29831 "\n"
29832 msgstr ""
29833
29834 #. type: verbatim
29835 #: ../tools/virt-tar.pl:39
29836 #, no-wrap
29837 msgid ""
29838 " virt-tar [--options] -u domname tarball directory\n"
29839 "\n"
29840 msgstr ""
29841
29842 #. type: verbatim
29843 #: ../tools/virt-tar.pl:41
29844 #, no-wrap
29845 msgid ""
29846 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
29847 "\n"
29848 msgstr ""
29849
29850 #. type: verbatim
29851 #: ../tools/virt-tar.pl:43
29852 #, no-wrap
29853 msgid ""
29854 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
29855 "\n"
29856 msgstr ""
29857
29858 #. type: textblock
29859 #: ../tools/virt-tar.pl:47
29860 msgid ""
29861 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
29862 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
29863 msgstr ""
29864
29865 #. type: textblock
29866 #: ../tools/virt-tar.pl:52
29867 msgid "Download C</home> from the VM into a local tarball:"
29868 msgstr ""
29869
29870 #. type: verbatim
29871 #: ../tools/virt-tar.pl:54
29872 #, no-wrap
29873 msgid ""
29874 " virt-tar -x domname /home home.tar\n"
29875 "\n"
29876 msgstr ""
29877
29878 #. type: verbatim
29879 #: ../tools/virt-tar.pl:56
29880 #, no-wrap
29881 msgid ""
29882 " virt-tar -zx domname /home home.tar.gz\n"
29883 "\n"
29884 msgstr ""
29885
29886 #. type: textblock
29887 #: ../tools/virt-tar.pl:58
29888 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
29889 msgstr ""
29890
29891 #. type: verbatim
29892 #: ../tools/virt-tar.pl:60
29893 #, no-wrap
29894 msgid ""
29895 " virt-tar -u domname uploadstuff.tar /tmp\n"
29896 "\n"
29897 msgstr ""
29898
29899 #. type: verbatim
29900 #: ../tools/virt-tar.pl:62
29901 #, no-wrap
29902 msgid ""
29903 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
29904 "\n"
29905 msgstr ""
29906
29907 #. type: textblock
29908 #: ../tools/virt-tar.pl:66
29909 msgid ""
29910 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
29911 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
29912 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
29913 msgstr ""
29914
29915 #. type: textblock
29916 #: ../tools/virt-tar.pl:71
29917 msgid ""
29918 "You can use I<-x> (extract) on live virtual machines, but you might get "
29919 "inconsistent results or errors if there is filesystem activity inside the "
29920 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
29921 "work, but the only way to guarantee consistent results is if the virtual "
29922 "machine is shut down."
29923 msgstr ""
29924
29925 #. type: textblock
29926 #: ../tools/virt-tar.pl:79
29927 msgid ""
29928 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
29929 "parts of a guest filesystem.  There are many possibilities: making backups, "
29930 "uploading data files, snooping on guest activity, fixing or customizing "
29931 "guests, etc."
29932 msgstr ""
29933
29934 #. type: textblock
29935 #: ../tools/virt-tar.pl:84
29936 msgid ""
29937 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
29938 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
29939 "should look at the L<guestfish(1)> tool."
29940 msgstr ""
29941
29942 #. type: textblock
29943 #: ../tools/virt-tar.pl:88
29944 msgid ""
29945 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
29946 "its contents (recursively) from the virtual machine into a local tarball.  "
29947 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
29948 "virtual machine.  You cannot use these two options together."
29949 msgstr ""
29950
29951 #. type: textblock
29952 #: ../tools/virt-tar.pl:94
29953 msgid ""
29954 "In addition, you may need to use the I<-z> (gZip) option to enable "
29955 "compression.  When uploading, you have to specify I<-z> if the upload file "
29956 "is compressed because virt-tar won't detect this on its own."
29957 msgstr ""
29958
29959 #. type: textblock
29960 #: ../tools/virt-tar.pl:98
29961 msgid ""
29962 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
29963 "example it cannot do PKZip files or bzip2 compression.  If you want that "
29964 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
29965 "the L<libguestfs(3)> API)."
29966 msgstr ""
29967
29968 #. type: =item
29969 #: ../tools/virt-tar.pl:156
29970 msgid "B<-x> | B<--extract> | B<--download>"
29971 msgstr ""
29972
29973 #. type: =item
29974 #: ../tools/virt-tar.pl:158
29975 msgid "B<-u> | B<--upload>"
29976 msgstr ""
29977
29978 #. type: textblock
29979 #: ../tools/virt-tar.pl:160
29980 msgid ""
29981 "Use I<-x> to extract (download) a directory from a virtual machine to a "
29982 "local tarball."
29983 msgstr ""
29984
29985 #. type: textblock
29986 #: ../tools/virt-tar.pl:163
29987 msgid ""
29988 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
29989 "Please read the L</WARNING> section above before using this option."
29990 msgstr ""
29991
29992 #. type: textblock
29993 #: ../tools/virt-tar.pl:167
29994 msgid "You must specify exactly one of these options."
29995 msgstr ""
29996
29997 #. type: =item
29998 #: ../tools/virt-tar.pl:173
29999 msgid "B<-z> | B<--gzip>"
30000 msgstr ""
30001
30002 #. type: textblock
30003 #: ../tools/virt-tar.pl:175
30004 msgid "Specify that the input or output tarball is gzip-compressed."
30005 msgstr ""
30006
30007 #. type: textblock
30008 #: ../tools/virt-tar.pl:288
30009 msgid ""
30010 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
30011 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
30012 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
30013 "org/>."
30014 msgstr ""
30015
30016 #. type: textblock
30017 #: ../tools/virt-make-fs.pl:37
30018 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
30019 msgstr ""
30020
30021 #. type: verbatim
30022 #: ../tools/virt-make-fs.pl:41
30023 #, no-wrap
30024 msgid ""
30025 " virt-make-fs [--options] input.tar output.img\n"
30026 "\n"
30027 msgstr ""
30028
30029 #. type: verbatim
30030 #: ../tools/virt-make-fs.pl:43
30031 #, no-wrap
30032 msgid ""
30033 " virt-make-fs [--options] input.tar.gz output.img\n"
30034 "\n"
30035 msgstr ""
30036
30037 #. type: verbatim
30038 #: ../tools/virt-make-fs.pl:45
30039 #, no-wrap
30040 msgid ""
30041 " virt-make-fs [--options] directory output.img\n"
30042 "\n"
30043 msgstr ""
30044
30045 #. type: textblock
30046 #: ../tools/virt-make-fs.pl:49
30047 msgid ""
30048 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
30049 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
30050 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
30051 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
30052 "you want to attach these filesystems to existing virtual machines (eg. to "
30053 "import large amounts of read-only data to a VM)."
30054 msgstr ""
30055
30056 #. type: textblock
30057 #: ../tools/virt-make-fs.pl:57
30058 msgid "Basic usage is:"
30059 msgstr ""
30060
30061 #. type: verbatim
30062 #: ../tools/virt-make-fs.pl:59
30063 #, no-wrap
30064 msgid ""
30065 " virt-make-fs input output\n"
30066 "\n"
30067 msgstr ""
30068
30069 #. type: textblock
30070 #: ../tools/virt-make-fs.pl:61
30071 msgid ""
30072 "where C<input> is either a directory containing files that you want to add, "
30073 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
30074 "C<output> is a disk image.  The input type is detected automatically.  The "
30075 "output disk image defaults to a raw ext2 image unless you specify extra "
30076 "flags (see L</OPTIONS> below)."
30077 msgstr ""
30078
30079 #. type: =head2
30080 #: ../tools/virt-make-fs.pl:67
30081 msgid "EXTRA SPACE"
30082 msgstr ""
30083
30084 #. type: textblock
30085 #: ../tools/virt-make-fs.pl:69
30086 msgid ""
30087 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
30088 "the files that it contains, but might have extra space.  Depending on how "
30089 "you are going to use the output, you might think this extra space is wasted "
30090 "and want to minimize it, or you might want to leave space so that more files "
30091 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
30092 "but you can use the I<--size> flag to leave space in the filesystem if you "
30093 "want it."
30094 msgstr ""
30095
30096 #. type: textblock
30097 #: ../tools/virt-make-fs.pl:77
30098 msgid ""
30099 "An alternative way to leave extra space but not make the output image any "
30100 "bigger is to use an alternative disk image format (instead of the default "
30101 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
30102 "image format (check your hypervisor supports this before using it).  This "
30103 "allows you to choose a large I<--size> but the extra space won't actually be "
30104 "allocated in the image until you try to store something in it."
30105 msgstr ""
30106
30107 #. type: textblock
30108 #: ../tools/virt-make-fs.pl:85
30109 msgid ""
30110 "Don't forget that you can also use local commands including L<resize2fs(8)> "
30111 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
30112 "to build another image from scratch."
30113 msgstr ""
30114
30115 #. type: =head3
30116 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
30117 #: ../tools/virt-make-fs.pl:142
30118 msgid "EXAMPLE"
30119 msgstr ""
30120
30121 #. type: verbatim
30122 #: ../tools/virt-make-fs.pl:91
30123 #, no-wrap
30124 msgid ""
30125 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
30126 "\n"
30127 msgstr ""
30128
30129 #. type: =head2
30130 #: ../tools/virt-make-fs.pl:93
30131 msgid "FILESYSTEM TYPE"
30132 msgstr ""
30133
30134 #. type: textblock
30135 #: ../tools/virt-make-fs.pl:95
30136 msgid ""
30137 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
30138 "libguestfs supports can be used (but I<not> read-only formats like "
30139 "ISO9660).  Here are some of the more common choices:"
30140 msgstr ""
30141
30142 #. type: =item
30143 #: ../tools/virt-make-fs.pl:101
30144 msgid "I<ext3>"
30145 msgstr ""
30146
30147 #. type: textblock
30148 #: ../tools/virt-make-fs.pl:103
30149 msgid ""
30150 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
30151 "you are not going to use the filesystem in a way that requires the journal, "
30152 "then this is just wasted overhead."
30153 msgstr ""
30154
30155 #. type: =item
30156 #: ../tools/virt-make-fs.pl:107
30157 msgid "I<ntfs> or I<vfat>"
30158 msgstr ""
30159
30160 #. type: textblock
30161 #: ../tools/virt-make-fs.pl:109
30162 msgid "Useful if exporting data to a Windows guest."
30163 msgstr ""
30164
30165 #. type: textblock
30166 #: ../tools/virt-make-fs.pl:111
30167 msgid ""
30168 "I<Note for vfat>: The tar archive or local directory must only contain files "
30169 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
30170 "program running within libguestfs is unable to change the ownership of non-"
30171 "root files, since vfat itself does not support this."
30172 msgstr ""
30173
30174 #. type: =item
30175 #: ../tools/virt-make-fs.pl:116
30176 msgid "I<minix>"
30177 msgstr ""
30178
30179 #. type: textblock
30180 #: ../tools/virt-make-fs.pl:118
30181 msgid ""
30182 "Lower overhead than C<ext2>, but certain limitations on filename length and "
30183 "total filesystem size."
30184 msgstr ""
30185
30186 #. type: verbatim
30187 #: ../tools/virt-make-fs.pl:125
30188 #, no-wrap
30189 msgid ""
30190 " virt-make-fs --type=minix input minixfs.img\n"
30191 "\n"
30192 msgstr ""
30193
30194 #. type: =head2
30195 #: ../tools/virt-make-fs.pl:127
30196 msgid "TO PARTITION OR NOT TO PARTITION"
30197 msgstr ""
30198
30199 #. type: textblock
30200 #: ../tools/virt-make-fs.pl:129
30201 msgid "Optionally virt-make-fs can add a partition table to the output disk."
30202 msgstr ""
30203
30204 #. type: textblock
30205 #: ../tools/virt-make-fs.pl:131
30206 msgid ""
30207 "Adding a partition can make the disk image more compatible with certain "
30208 "virtualized operating systems which don't expect to see a filesystem "
30209 "directly located on a block device (Linux doesn't care and will happily "
30210 "handle both types)."
30211 msgstr ""
30212
30213 #. type: textblock
30214 #: ../tools/virt-make-fs.pl:136
30215 msgid ""
30216 "On the other hand, if you have a partition table then the output image is no "
30217 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
30218 "directly on a partitioned disk image.  (However libguestfs tools such as "
30219 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
30220 msgstr ""
30221
30222 #. type: textblock
30223 #: ../tools/virt-make-fs.pl:144
30224 msgid "Add an MBR partition:"
30225 msgstr ""
30226
30227 #. type: verbatim
30228 #: ../tools/virt-make-fs.pl:146
30229 #, no-wrap
30230 msgid ""
30231 " virt-make-fs --partition -- input disk.img\n"
30232 "\n"
30233 msgstr ""
30234
30235 #. type: textblock
30236 #: ../tools/virt-make-fs.pl:148
30237 msgid ""
30238 "If the output disk image could be terabyte-sized or larger, it's better to "
30239 "use an EFI/GPT-compatible partition table:"
30240 msgstr ""
30241
30242 #. type: verbatim
30243 #: ../tools/virt-make-fs.pl:151
30244 #, no-wrap
30245 msgid ""
30246 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
30247 "\n"
30248 msgstr ""
30249
30250 #. type: textblock
30251 #: ../tools/virt-make-fs.pl:179
30252 msgid "Enable debugging information."
30253 msgstr ""
30254
30255 #. type: =item
30256 #: ../tools/virt-make-fs.pl:185
30257 msgid "B<--size=E<lt>NE<gt>>"
30258 msgstr ""
30259
30260 #. type: =item
30261 #: ../tools/virt-make-fs.pl:187
30262 msgid "B<--size=+E<lt>NE<gt>>"
30263 msgstr ""
30264
30265 #. type: =item
30266 #: ../tools/virt-make-fs.pl:189
30267 msgid "B<-s E<lt>NE<gt>>"
30268 msgstr ""
30269
30270 #. type: =item
30271 #: ../tools/virt-make-fs.pl:191
30272 msgid "B<-s +E<lt>NE<gt>>"
30273 msgstr ""
30274
30275 #. type: textblock
30276 #: ../tools/virt-make-fs.pl:193
30277 msgid ""
30278 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
30279 msgstr ""
30280
30281 #. type: textblock
30282 #: ../tools/virt-make-fs.pl:196
30283 msgid ""
30284 "If this option is I<not> given, then the output image will be just large "
30285 "enough to contain all the files, with not much wasted space."
30286 msgstr ""
30287
30288 #. type: textblock
30289 #: ../tools/virt-make-fs.pl:199
30290 msgid ""
30291 "To choose a fixed size output disk, specify an absolute number followed by b/"
30292 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30293 "Petabytes or Exabytes.  This must be large enough to contain all the input "
30294 "files, else you will get an error."
30295 msgstr ""
30296
30297 #. type: textblock
30298 #: ../tools/virt-make-fs.pl:204
30299 msgid ""
30300 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
30301 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30302 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
30303 "the input files, and (approximately) an extra 200 MB free space."
30304 msgstr ""
30305
30306 #. type: textblock
30307 #: ../tools/virt-make-fs.pl:210
30308 msgid ""
30309 "Note that virt-make-fs estimates free space, and therefore will not produce "
30310 "filesystems containing precisely the free space requested.  (It is much more "
30311 "expensive and time-consuming to produce a filesystem which has precisely the "
30312 "desired free space)."
30313 msgstr ""
30314
30315 #. type: =item
30316 #: ../tools/virt-make-fs.pl:219
30317 msgid "B<--format=E<lt>fmtE<gt>>"
30318 msgstr ""
30319
30320 #. type: =item
30321 #: ../tools/virt-make-fs.pl:221
30322 msgid "B<-F E<lt>fmtE<gt>>"
30323 msgstr ""
30324
30325 #. type: textblock
30326 #: ../tools/virt-make-fs.pl:223
30327 msgid "Choose the output disk image format."
30328 msgstr ""
30329
30330 #. type: textblock
30331 #: ../tools/virt-make-fs.pl:225
30332 msgid "The default is C<raw> (raw disk image)."
30333 msgstr ""
30334
30335 #. type: textblock
30336 #: ../tools/virt-make-fs.pl:227
30337 msgid ""
30338 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
30339 "that would really make sense here is C<qcow2>."
30340 msgstr ""
30341
30342 #. type: =item
30343 #: ../tools/virt-make-fs.pl:234
30344 msgid "B<--type=E<lt>fsE<gt>>"
30345 msgstr ""
30346
30347 #. type: =item
30348 #: ../tools/virt-make-fs.pl:236
30349 msgid "B<-t E<lt>fsE<gt>>"
30350 msgstr ""
30351
30352 #. type: textblock
30353 #: ../tools/virt-make-fs.pl:238
30354 msgid "Choose the output filesystem type."
30355 msgstr ""
30356
30357 #. type: textblock
30358 #: ../tools/virt-make-fs.pl:240
30359 msgid "The default is C<ext2>."
30360 msgstr ""
30361
30362 #. type: textblock
30363 #: ../tools/virt-make-fs.pl:242
30364 msgid ""
30365 "Any filesystem which is supported read-write by libguestfs can be used here."
30366 msgstr ""
30367
30368 #. type: =item
30369 #: ../tools/virt-make-fs.pl:249
30370 msgid "B<--partition>"
30371 msgstr ""
30372
30373 #. type: =item
30374 #: ../tools/virt-make-fs.pl:251
30375 msgid "B<--partition=E<lt>parttypeE<gt>>"
30376 msgstr ""
30377
30378 #. type: textblock
30379 #: ../tools/virt-make-fs.pl:253
30380 msgid ""
30381 "If specified, this flag adds an MBR partition table to the output disk image."
30382 msgstr ""
30383
30384 #. type: textblock
30385 #: ../tools/virt-make-fs.pl:256
30386 msgid ""
30387 "You can change the partition table type, eg. I<--partition=gpt> for large "
30388 "disks."
30389 msgstr ""
30390
30391 #. type: textblock
30392 #: ../tools/virt-make-fs.pl:259
30393 msgid ""
30394 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
30395 "might consider the next parameter to be the partition type.  For example:"
30396 msgstr ""
30397
30398 #. type: verbatim
30399 #: ../tools/virt-make-fs.pl:263
30400 #, no-wrap
30401 msgid ""
30402 " virt-make-fs --partition input.tar ...\n"
30403 "\n"
30404 msgstr ""
30405
30406 #. type: textblock
30407 #: ../tools/virt-make-fs.pl:265
30408 msgid ""
30409 "would cause virt-make-fs to think you wanted to use a partition type of "
30410 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
30411 "dash) between options and the input file argument:"
30412 msgstr ""
30413
30414 #. type: verbatim
30415 #: ../tools/virt-make-fs.pl:269
30416 #, no-wrap
30417 msgid ""
30418 " virt-make-fs --partition -- input.tar ...\n"
30419 "\n"
30420 msgstr ""
30421
30422 #. type: textblock
30423 #: ../tools/virt-make-fs.pl:541
30424 msgid ""
30425 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
30426 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
30427 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
30428 msgstr ""
30429
30430 #. type: verbatim
30431 #: ../tools/virt-make-fs.pl:558
30432 #, no-wrap
30433 msgid ""
30434 " export LIBGUESTFS_DEBUG=1\n"
30435 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
30436 "\n"
30437 msgstr ""
30438
30439 #. type: textblock
30440 #: ../tools/virt-make-fs.pl:561
30441 msgid ""
30442 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
30443 "redhat.com/>"
30444 msgstr ""
30445
30446 #. type: textblock
30447 #: ../tools/virt-list-partitions.pl:32
30448 msgid ""
30449 "virt-list-partitions - List partitions in a virtual machine or disk image"
30450 msgstr ""
30451
30452 #. type: verbatim
30453 #: ../tools/virt-list-partitions.pl:36
30454 #, no-wrap
30455 msgid ""
30456 " virt-list-partitions [--options] domname\n"
30457 "\n"
30458 msgstr ""
30459
30460 #. type: verbatim
30461 #: ../tools/virt-list-partitions.pl:38
30462 #, no-wrap
30463 msgid ""
30464 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
30465 "\n"
30466 msgstr ""
30467
30468 #. type: textblock
30469 #: ../tools/virt-list-partitions.pl:45
30470 msgid ""
30471 "C<virt-list-partitions> is a command line tool to list the partitions that "
30472 "are contained in a virtual machine or disk image.  It is mainly useful as a "
30473 "first step to using L<virt-resize(1)>."
30474 msgstr ""
30475
30476 #. type: textblock
30477 #: ../tools/virt-list-partitions.pl:50
30478 msgid ""
30479 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
30480 "functionality.  For more complex cases you should look at the L<guestfish(1)"
30481 "> tool."
30482 msgstr ""
30483
30484 #. type: =item
30485 #: ../tools/virt-list-partitions.pl:107
30486 msgid "B<-h> | B<--human-readable>"
30487 msgstr ""
30488
30489 #. type: textblock
30490 #: ../tools/virt-list-partitions.pl:109
30491 msgid "Show sizes in human-readable form (eg. \"1G\")."
30492 msgstr ""
30493
30494 #. type: textblock
30495 #: ../tools/virt-list-partitions.pl:117
30496 msgid ""
30497 "With this option, C<virt-list-partitions> displays the type and size of each "
30498 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
30499 msgstr ""
30500
30501 #. type: =item
30502 #: ../tools/virt-list-partitions.pl:124
30503 msgid "B<-t> | B<--total>"
30504 msgstr ""
30505
30506 #. type: textblock
30507 #: ../tools/virt-list-partitions.pl:126
30508 msgid ""
30509 "Display the total size of each block device (as a separate row or rows)."
30510 msgstr ""
30511
30512 #. type: textblock
30513 #: ../tools/virt-list-partitions.pl:259
30514 msgid ""
30515 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
30516 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
30517 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30518 msgstr ""
30519
30520 #. type: textblock
30521 #: ../tools/virt-list-partitions.pl:275
30522 msgid "Copyright (C) 2009-2010 Red Hat Inc."
30523 msgstr ""