Update POT file.
[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-04-09 18:35+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-edit.pl:32 ../tools/virt-win-reg.pl:35
25 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-tar.pl:31
26 #: ../tools/virt-make-fs.pl:35 ../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-edit.pl:36 ../tools/virt-win-reg.pl:39
41 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-tar.pl:35
42 #: ../tools/virt-make-fs.pl:39 ../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-edit.pl:50 ../tools/virt-win-reg.pl:63
96 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-tar.pl:77
97 #: ../tools/virt-make-fs.pl:47 ../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 pipe 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:1088
858 #: ../src/guestfs.pod:1092 ../src/guestfs.pod:1096 ../src/guestfs.pod:1101
859 #: ../src/guestfs.pod:1109 ../src/guestfs.pod:1128 ../src/guestfs.pod:1136
860 #: ../src/guestfs.pod:1158 ../src/guestfs.pod:1162 ../src/guestfs.pod:1166
861 #: ../src/guestfs.pod:1170 ../src/guestfs.pod:1174 ../src/guestfs.pod:1178
862 #: ../src/guestfs.pod:1660 ../src/guestfs.pod:1665 ../src/guestfs.pod:1669
863 #: ../src/guestfs.pod:1770 ../src/guestfs.pod:1775 ../src/guestfs.pod:1779
864 #: ../src/guestfs.pod:1789 ../src/guestfs.pod:2023 ../src/guestfs.pod:2028
865 #: ../src/guestfs.pod:2034 ../src/guestfs.pod:2042 ../src/guestfs.pod:2396
866 #: ../src/guestfs.pod:2402 ../src/guestfs.pod:2407 ../src/guestfs.pod:2413
867 #: ../src/guestfs.pod:2878 ../src/guestfs.pod:2882 ../src/guestfs.pod:2886
868 #: ../src/guestfs.pod:2890 ../src/guestfs-actions.pod:15
869 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:577
870 #: ../src/guestfs-actions.pod:585 ../src/guestfs-actions.pod:592
871 #: ../src/guestfs-actions.pod:599 ../src/guestfs-actions.pod:1600
872 #: ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1608
873 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1620
874 #: ../src/guestfs-actions.pod:1624 ../src/guestfs-actions.pod:1628
875 #: ../src/guestfs-actions.pod:1638 ../src/guestfs-actions.pod:1642
876 #: ../src/guestfs-actions.pod:1646 ../src/guestfs-actions.pod:1784
877 #: ../src/guestfs-actions.pod:1788 ../src/guestfs-actions.pod:1793
878 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1859
879 #: ../src/guestfs-actions.pod:1863 ../src/guestfs-actions.pod:1868
880 #: ../fish/guestfish.pod:443 ../fish/guestfish.pod:447
881 #: ../fish/guestfish.pod:451 ../fish/guestfish.pod:455
882 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
883 #: ../fish/guestfish-actions.pod:380 ../fish/guestfish-actions.pod:388
884 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:402
885 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1076
886 #: ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084
887 #: ../fish/guestfish-actions.pod:1092 ../fish/guestfish-actions.pod:1096
888 #: ../fish/guestfish-actions.pod:1100 ../fish/guestfish-actions.pod:1110
889 #: ../fish/guestfish-actions.pod:1114 ../fish/guestfish-actions.pod:1118
890 #: ../fish/guestfish-actions.pod:1208 ../fish/guestfish-actions.pod:1212
891 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1222
892 #: ../fish/guestfish-actions.pod:1264 ../fish/guestfish-actions.pod:1268
893 #: ../fish/guestfish-actions.pod:1273 ../tools/virt-edit.pl:351
894 #: ../tools/virt-edit.pl:356 ../tools/virt-edit.pl:361
895 #: ../tools/virt-edit.pl:372 ../tools/virt-edit.pl:376
896 #: ../tools/virt-win-reg.pl:536 ../tools/virt-win-reg.pl:542
897 #: ../tools/virt-win-reg.pl:548
898 msgid "*"
899 msgstr ""
900
901 #. type: textblock
902 #: ../src/guestfs.pod:390
903 msgid ""
904 "The kernel version that the command runs under will be different from what "
905 "it expects."
906 msgstr ""
907
908 #. type: textblock
909 #: ../src/guestfs.pod:395
910 msgid ""
911 "If the command needs to communicate with daemons, then most likely they "
912 "won't be running."
913 msgstr ""
914
915 #. type: textblock
916 #: ../src/guestfs.pod:400
917 msgid "The command will be running in limited memory."
918 msgstr ""
919
920 #. type: textblock
921 #: ../src/guestfs.pod:404
922 msgid ""
923 "The network may not be available unless you enable it (see L</"
924 "guestfs_set_network>)."
925 msgstr ""
926
927 #. type: textblock
928 #: ../src/guestfs.pod:409
929 msgid "Only supports Linux guests (not Windows, BSD, etc)."
930 msgstr ""
931
932 #. type: textblock
933 #: ../src/guestfs.pod:413
934 msgid ""
935 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
936 msgstr ""
937
938 #. type: textblock
939 #: ../src/guestfs.pod:418
940 msgid ""
941 "For SELinux guests, you may need to enable SELinux and load policy first.  "
942 "See L</SELINUX> in this manpage."
943 msgstr ""
944
945 #. type: textblock
946 #: ../src/guestfs.pod:423
947 msgid ""
948 "I<Security:> It is not safe to run commands from untrusted, possibly "
949 "malicious guests.  These commands may attempt to exploit your program by "
950 "sending unexpected output.  They could also try to exploit the Linux kernel "
951 "or qemu provided by the libguestfs appliance.  They could use the network "
952 "provided by the libguestfs appliance to bypass ordinary network partitions "
953 "and firewalls.  They could use the elevated privileges or different SELinux "
954 "context of your program to their advantage."
955 msgstr ""
956
957 #. type: textblock
958 #: ../src/guestfs.pod:432
959 msgid ""
960 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
961 "(a script which runs when the guest next boots normally), and to have this "
962 "script run the commands you want in the normal context of the running guest, "
963 "network security and so on.  For information about other security issues, "
964 "see L</SECURITY>."
965 msgstr ""
966
967 #. type: textblock
968 #: ../src/guestfs.pod:440
969 msgid ""
970 "The two main API calls to run commands are L</guestfs_command> and L</"
971 "guestfs_sh> (there are also variations)."
972 msgstr ""
973
974 #. type: textblock
975 #: ../src/guestfs.pod:443
976 msgid ""
977 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
978 "shell globs, redirections, etc will work."
979 msgstr ""
980
981 #. type: =head2
982 #: ../src/guestfs.pod:446
983 msgid "CONFIGURATION FILES"
984 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
985
986 #. type: textblock
987 #: ../src/guestfs.pod:448
988 msgid ""
989 "To read and write configuration files in Linux guest filesystems, we "
990 "strongly recommend using Augeas.  For example, Augeas understands how to "
991 "read and write, say, a Linux shadow password file or X.org configuration "
992 "file, and so avoids you having to write that code."
993 msgstr ""
994
995 #. type: textblock
996 #: ../src/guestfs.pod:453
997 msgid ""
998 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
999 "document Augeas itself here because there is excellent documentation on the "
1000 "L<http://augeas.net/> website."
1001 msgstr ""
1002
1003 #. type: textblock
1004 #: ../src/guestfs.pod:457
1005 msgid ""
1006 "If you don't want to use Augeas (you fool!) then try calling L</"
1007 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1008 "over."
1009 msgstr ""
1010
1011 #. type: =head2
1012 #: ../src/guestfs.pod:461
1013 msgid "SELINUX"
1014 msgstr "SELINUX"
1015
1016 #. type: textblock
1017 #: ../src/guestfs.pod:463
1018 msgid ""
1019 "We support SELinux guests.  To ensure that labeling happens correctly in "
1020 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1021 msgstr ""
1022
1023 #. type: =item
1024 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1281 ../src/guestfs.pod:1412
1025 #: ../src/guestfs.pod:2441
1026 msgid "1."
1027 msgstr ""
1028
1029 #. type: textblock
1030 #: ../src/guestfs.pod:471
1031 msgid "Before launching, do:"
1032 msgstr ""
1033
1034 #. type: verbatim
1035 #: ../src/guestfs.pod:473
1036 #, no-wrap
1037 msgid ""
1038 " guestfs_set_selinux (g, 1);\n"
1039 "\n"
1040 msgstr ""
1041
1042 #. type: =item
1043 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1285 ../src/guestfs.pod:1416
1044 #: ../src/guestfs.pod:2466
1045 msgid "2."
1046 msgstr ""
1047
1048 #. type: textblock
1049 #: ../src/guestfs.pod:477
1050 msgid ""
1051 "After mounting the guest's filesystem(s), load the policy.  This is best "
1052 "done by running the L<load_policy(8)> command in the guest itself:"
1053 msgstr ""
1054
1055 #. type: verbatim
1056 #: ../src/guestfs.pod:481
1057 #, no-wrap
1058 msgid ""
1059 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1060 "\n"
1061 msgstr ""
1062
1063 #. type: textblock
1064 #: ../src/guestfs.pod:483
1065 msgid ""
1066 "(Older versions of C<load_policy> require you to specify the name of the "
1067 "policy file)."
1068 msgstr ""
1069
1070 #. type: =item
1071 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1422
1072 msgid "3."
1073 msgstr ""
1074
1075 #. type: textblock
1076 #: ../src/guestfs.pod:488
1077 msgid ""
1078 "Optionally, set the security context for the API.  The correct security "
1079 "context to use can only be known by inspecting the guest.  As an example:"
1080 msgstr ""
1081
1082 #. type: verbatim
1083 #: ../src/guestfs.pod:492
1084 #, no-wrap
1085 msgid ""
1086 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1087 "\n"
1088 msgstr ""
1089
1090 #. type: textblock
1091 #: ../src/guestfs.pod:496
1092 msgid "This will work for running commands and editing existing files."
1093 msgstr ""
1094
1095 #. type: textblock
1096 #: ../src/guestfs.pod:498
1097 msgid ""
1098 "When new files are created, you may need to label them explicitly, for "
1099 "example by running the external command C<restorecon pathname>."
1100 msgstr ""
1101
1102 #. type: =head2
1103 #: ../src/guestfs.pod:502
1104 msgid "UMASK"
1105 msgstr ""
1106
1107 #. type: textblock
1108 #: ../src/guestfs.pod:504
1109 msgid ""
1110 "Certain calls are affected by the current file mode creation mask (the "
1111 "\"umask\").  In particular ones which create files or directories, such as "
1112 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1113 "either the default mode that the file is created with or modifies the mode "
1114 "that you supply."
1115 msgstr ""
1116
1117 #. type: textblock
1118 #: ../src/guestfs.pod:510
1119 msgid ""
1120 "The default umask is C<022>, so files are created with modes such as C<0644> "
1121 "and directories with C<0755>."
1122 msgstr ""
1123
1124 #. type: textblock
1125 #: ../src/guestfs.pod:513
1126 msgid ""
1127 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1128 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1129 "guestfs_chmod> after creating each file or directory."
1130 msgstr ""
1131
1132 #. type: textblock
1133 #: ../src/guestfs.pod:517
1134 msgid "For more information about umask, see L<umask(2)>."
1135 msgstr ""
1136
1137 #. type: =head1
1138 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:765
1139 msgid "ENCRYPTED DISKS"
1140 msgstr ""
1141
1142 #. type: textblock
1143 #: ../src/guestfs.pod:521
1144 msgid ""
1145 "Libguestfs allows you to access Linux guests which have been encrypted using "
1146 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1147 "standard.  This includes nearly all whole disk encryption systems used by "
1148 "modern Linux guests."
1149 msgstr ""
1150
1151 #. type: textblock
1152 #: ../src/guestfs.pod:527
1153 msgid ""
1154 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1155 "returns the string C<crypto_LUKS>)."
1156 msgstr ""
1157
1158 #. type: textblock
1159 #: ../src/guestfs.pod:530
1160 msgid ""
1161 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1162 "will require the passphrase!"
1163 msgstr ""
1164
1165 #. type: textblock
1166 #: ../src/guestfs.pod:533
1167 msgid ""
1168 "Opening a LUKS device creates a new device mapper device called C</dev/"
1169 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1170 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1171 "from and encrypted to the underlying block device respectively."
1172 msgstr ""
1173
1174 #. type: textblock
1175 #: ../src/guestfs.pod:539
1176 msgid ""
1177 "LVM volume groups on the device can be made visible by calling L</"
1178 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1179 "(s) can now be mounted in the usual way."
1180 msgstr ""
1181
1182 #. type: textblock
1183 #: ../src/guestfs.pod:543
1184 msgid ""
1185 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1186 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1187 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1188 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1189 "underlying encrypted block device)."
1190 msgstr ""
1191
1192 #. type: =head2
1193 #: ../src/guestfs.pod:550
1194 msgid "INSPECTION"
1195 msgstr "ПЕРЕВІРКА"
1196
1197 #. type: textblock
1198 #: ../src/guestfs.pod:552
1199 msgid ""
1200 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1201 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1202 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1203 "version 1.5.3 the most frequently used part of this library has been "
1204 "rewritten in C and moved into the core code)."
1205 msgstr ""
1206
1207 #. type: textblock
1208 #: ../src/guestfs.pod:559
1209 msgid ""
1210 "Add all disks belonging to the unknown virtual machine and call L</"
1211 "guestfs_launch> in the usual way."
1212 msgstr ""
1213
1214 #. type: textblock
1215 #: ../src/guestfs.pod:562
1216 msgid ""
1217 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1218 "and certain heuristics, and returns a list of operating systems that were "
1219 "found.  An empty list means none were found.  A single element is the root "
1220 "filesystem of the operating system.  For dual- or multi-boot guests, "
1221 "multiple roots can be returned, each one corresponding to a separate "
1222 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1223 "world of virtualization, but since this scenario can happen, we have built "
1224 "libguestfs to deal with it.)"
1225 msgstr ""
1226
1227 #. type: textblock
1228 #: ../src/guestfs.pod:571
1229 msgid ""
1230 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1231 "to get additional details about that operating system.  For example, call L</"
1232 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1233 "Windows and Linux-based operating systems respectively."
1234 msgstr ""
1235
1236 #. type: textblock
1237 #: ../src/guestfs.pod:577
1238 msgid ""
1239 "Un*x-like and Linux-based operating systems usually consist of several "
1240 "filesystems which are mounted at boot time (for example, a separate boot "
1241 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1242 "filesystems correspond to mount points.  Call "
1243 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1244 "hash table like this example:"
1245 msgstr ""
1246
1247 #. type: verbatim
1248 #: ../src/guestfs.pod:584
1249 #, no-wrap
1250 msgid ""
1251 " /boot => /dev/sda1\n"
1252 " /     => /dev/vg_guest/lv_root\n"
1253 " /usr  => /dev/vg_guest/lv_usr\n"
1254 "\n"
1255 msgstr ""
1256
1257 #. type: textblock
1258 #: ../src/guestfs.pod:588
1259 msgid ""
1260 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1261 "filesystems as suggested."
1262 msgstr ""
1263
1264 #. type: textblock
1265 #: ../src/guestfs.pod:591
1266 msgid ""
1267 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1268 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1269 msgstr ""
1270
1271 #. type: textblock
1272 #: ../src/guestfs.pod:595
1273 msgid ""
1274 "Inspection currently only works for some common operating systems.  "
1275 "Contributors are welcome to send patches for other operating systems that we "
1276 "currently cannot detect."
1277 msgstr ""
1278
1279 #. type: textblock
1280 #: ../src/guestfs.pod:599
1281 msgid ""
1282 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1283 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1284 "encrypted devices."
1285 msgstr ""
1286
1287 #. type: textblock
1288 #: ../src/guestfs.pod:603
1289 msgid ""
1290 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1291 "inspection and caches the results in the guest handle.  Subsequent calls to "
1292 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1293 "read the disks.  If you change the content of the guest disks, you can redo "
1294 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1295 "guestfs_inspect_list_applications> works a little differently from the other "
1296 "calls and does read the disks.  See documentation for that function for "
1297 "details)."
1298 msgstr ""
1299
1300 #. type: =head3
1301 #: ../src/guestfs.pod:612
1302 msgid "INSPECTING INSTALL DISKS"
1303 msgstr ""
1304
1305 #. type: textblock
1306 #: ../src/guestfs.pod:614
1307 msgid ""
1308 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1309 "CDs and more."
1310 msgstr ""
1311
1312 #. type: textblock
1313 #: ../src/guestfs.pod:617
1314 msgid ""
1315 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1316 "system, which currently can be C<installed> (a regular operating system) or "
1317 "C<installer> (some sort of install disk)."
1318 msgstr ""
1319
1320 #. type: textblock
1321 #: ../src/guestfs.pod:621
1322 msgid ""
1323 "Further information is available about the operating system that can be "
1324 "installed using the regular inspection APIs like L</"
1325 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1326 msgstr ""
1327
1328 #. type: textblock
1329 #: ../src/guestfs.pod:626
1330 msgid ""
1331 "Some additional information specific to installer disks is also available "
1332 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1333 "guestfs_inspect_is_multipart> calls."
1334 msgstr ""
1335
1336 #. type: =head2
1337 #: ../src/guestfs.pod:631
1338 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1339 msgstr ""
1340
1341 #. type: textblock
1342 #: ../src/guestfs.pod:633
1343 msgid ""
1344 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1345 "ntfs-3g.org/> driver."
1346 msgstr ""
1347
1348 #. type: =head3
1349 #: ../src/guestfs.pod:636
1350 msgid "DRIVE LETTERS AND PATHS"
1351 msgstr ""
1352
1353 #. type: textblock
1354 #: ../src/guestfs.pod:638
1355 msgid ""
1356 "DOS and Windows still use drive letters, and the filesystems are always "
1357 "treated as case insensitive by Windows itself, and therefore you might find "
1358 "a Windows configuration file referring to a path like C<c:\\windows"
1359 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1360 "might be referred to as C</WINDOWS/System32>."
1361 msgstr ""
1362
1363 #. type: textblock
1364 #: ../src/guestfs.pod:644
1365 msgid ""
1366 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1367 "libguestfs to read the appropriate Windows Registry and configuration files, "
1368 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1369 "inspector(1)>)."
1370 msgstr ""
1371
1372 #. type: textblock
1373 #: ../src/guestfs.pod:649
1374 msgid ""
1375 "Replacing backslash characters with forward slash characters is also outside "
1376 "the scope of libguestfs, but something that you can easily do."
1377 msgstr ""
1378
1379 #. type: textblock
1380 #: ../src/guestfs.pod:652
1381 msgid ""
1382 "Where we can help is in resolving the case insensitivity of paths.  For "
1383 "this, call L</guestfs_case_sensitive_path>."
1384 msgstr ""
1385
1386 #. type: =head3
1387 #: ../src/guestfs.pod:655
1388 msgid "ACCESSING THE WINDOWS REGISTRY"
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../src/guestfs.pod:657
1393 msgid ""
1394 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1395 "files, through the library C<hivex> which is part of the libguestfs project "
1396 "although ships as a separate tarball.  You have to locate and download the "
1397 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1398 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1399 "reg(1)> for more help on this issue."
1400 msgstr ""
1401
1402 #. type: =head3
1403 #: ../src/guestfs.pod:665
1404 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1405 msgstr ""
1406
1407 #. type: textblock
1408 #: ../src/guestfs.pod:667
1409 msgid ""
1410 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1411 "provide something which looks like a Linux symlink.  The way it tries to do "
1412 "the rewriting is described here:"
1413 msgstr ""
1414
1415 #. type: textblock
1416 #: ../src/guestfs.pod:671
1417 msgid ""
1418 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1419 "symbolic-links/>"
1420 msgstr ""
1421 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1422 "symbolic-links/>"
1423
1424 #. type: textblock
1425 #: ../src/guestfs.pod:673
1426 msgid ""
1427 "The essential problem is that ntfs-3g simply does not have enough "
1428 "information to do a correct job.  NTFS links can contain drive letters and "
1429 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1430 "It is almost certainly the case that libguestfs callers should ignore what "
1431 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1432 msgstr ""
1433
1434 #. type: textblock
1435 #: ../src/guestfs.pod:680
1436 msgid ""
1437 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1438 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1439 "attribute, and read the raw reparse data from that (you can find the format "
1440 "documented in various places around the web)."
1441 msgstr ""
1442
1443 #. type: =head3
1444 #: ../src/guestfs.pod:685
1445 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1446 msgstr ""
1447
1448 #. type: textblock
1449 #: ../src/guestfs.pod:687
1450 msgid ""
1451 "There are other useful extended attributes that can be read from ntfs-3g "
1452 "filesystems (using L</guestfs_getxattr>).  See:"
1453 msgstr ""
1454
1455 #. type: textblock
1456 #: ../src/guestfs.pod:690
1457 msgid ""
1458 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1459 msgstr ""
1460 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1461
1462 #. type: =head2
1463 #: ../src/guestfs.pod:692
1464 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1465 msgstr ""
1466
1467 #. type: textblock
1468 #: ../src/guestfs.pod:694
1469 msgid ""
1470 "Although we don't want to discourage you from using the C API, we will "
1471 "mention here that the same API is also available in other languages."
1472 msgstr ""
1473
1474 #. type: textblock
1475 #: ../src/guestfs.pod:697
1476 msgid ""
1477 "The API is broadly identical in all supported languages.  This means that "
1478 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1479 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1480 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1481 "each language."
1482 msgstr ""
1483
1484 #. type: textblock
1485 #: ../src/guestfs.pod:703
1486 msgid ""
1487 "Error messages are automatically transformed into exceptions if the language "
1488 "supports it."
1489 msgstr ""
1490
1491 #. type: textblock
1492 #: ../src/guestfs.pod:706
1493 msgid ""
1494 "We don't try to \"object orientify\" parts of the API in OO languages, "
1495 "although contributors are welcome to write higher level APIs above what we "
1496 "provide in their favourite languages if they wish."
1497 msgstr ""
1498
1499 #. type: =item
1500 #: ../src/guestfs.pod:712
1501 msgid "B<C++>"
1502 msgstr "B<C++>"
1503
1504 #. type: textblock
1505 #: ../src/guestfs.pod:714
1506 msgid ""
1507 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1508 "identical to the C API.  C++ classes and exceptions are not used."
1509 msgstr ""
1510
1511 #. type: =item
1512 #: ../src/guestfs.pod:718
1513 msgid "B<C#>"
1514 msgstr "B<C#>"
1515
1516 #. type: textblock
1517 #: ../src/guestfs.pod:720
1518 msgid ""
1519 "The C# bindings are highly experimental.  Please read the warnings at the "
1520 "top of C<csharp/Libguestfs.cs>."
1521 msgstr ""
1522
1523 #. type: =item
1524 #: ../src/guestfs.pod:723
1525 msgid "B<Haskell>"
1526 msgstr "B<Haskell>"
1527
1528 #. type: textblock
1529 #: ../src/guestfs.pod:725
1530 msgid ""
1531 "This is the only language binding that is working but incomplete.  Only "
1532 "calls which return simple integers have been bound in Haskell, and we are "
1533 "looking for help to complete this binding."
1534 msgstr ""
1535
1536 #. type: =item
1537 #: ../src/guestfs.pod:729
1538 msgid "B<Java>"
1539 msgstr "B<Java>"
1540
1541 #. type: textblock
1542 #: ../src/guestfs.pod:731
1543 msgid ""
1544 "Full documentation is contained in the Javadoc which is distributed with "
1545 "libguestfs."
1546 msgstr ""
1547
1548 #. type: =item
1549 #: ../src/guestfs.pod:734
1550 msgid "B<OCaml>"
1551 msgstr "B<OCaml>"
1552
1553 #. type: textblock
1554 #: ../src/guestfs.pod:736
1555 msgid "See L<guestfs-ocaml(3)>."
1556 msgstr "Див. L<guestfs-ocaml(3)>."
1557
1558 #. type: =item
1559 #: ../src/guestfs.pod:738
1560 msgid "B<Perl>"
1561 msgstr "B<Perl>"
1562
1563 #. type: textblock
1564 #: ../src/guestfs.pod:740
1565 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1566 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
1567
1568 #. type: =item
1569 #: ../src/guestfs.pod:742
1570 msgid "B<PHP>"
1571 msgstr "B<PHP>"
1572
1573 #. type: textblock
1574 #: ../src/guestfs.pod:744
1575 msgid ""
1576 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1577 "the php-libguestfs package for your distribution."
1578 msgstr ""
1579
1580 #. type: textblock
1581 #: ../src/guestfs.pod:747
1582 msgid "The PHP binding only works correctly on 64 bit machines."
1583 msgstr ""
1584
1585 #. type: =item
1586 #: ../src/guestfs.pod:749
1587 msgid "B<Python>"
1588 msgstr "B<Python>"
1589
1590 #. type: textblock
1591 #: ../src/guestfs.pod:751
1592 msgid "See L<guestfs-python(3)>."
1593 msgstr "Див. L<guestfs-python(3)>."
1594
1595 #. type: =item
1596 #: ../src/guestfs.pod:753
1597 msgid "B<Ruby>"
1598 msgstr "B<Ruby>"
1599
1600 #. type: textblock
1601 #: ../src/guestfs.pod:755
1602 msgid "See L<guestfs-ruby(3)>."
1603 msgstr "Див. L<guestfs-ruby(3)>."
1604
1605 #. type: =item
1606 #: ../src/guestfs.pod:757
1607 msgid "B<shell scripts>"
1608 msgstr "B<скрипти оболонки>"
1609
1610 #. type: textblock
1611 #: ../src/guestfs.pod:759
1612 msgid "See L<guestfish(1)>."
1613 msgstr "Див. L<guestfish(1)>."
1614
1615 #. type: =head2
1616 #: ../src/guestfs.pod:763
1617 msgid "LIBGUESTFS GOTCHAS"
1618 msgstr ""
1619
1620 #. type: textblock
1621 #: ../src/guestfs.pod:765
1622 msgid ""
1623 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1624 "system [...] that works in the way it is documented but is counterintuitive "
1625 "and almost invites mistakes.\""
1626 msgstr ""
1627
1628 #. type: textblock
1629 #: ../src/guestfs.pod:769
1630 msgid ""
1631 "Since we developed libguestfs and the associated tools, there are several "
1632 "things we would have designed differently, but are now stuck with for "
1633 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1634 "release, you can expect these to change.  Beware of them."
1635 msgstr ""
1636
1637 #. type: =item
1638 #: ../src/guestfs.pod:777
1639 msgid "Autosync / forgetting to sync."
1640 msgstr ""
1641
1642 #. type: textblock
1643 #: ../src/guestfs.pod:779
1644 msgid ""
1645 "When modifying a filesystem from C or another language, you B<must> unmount "
1646 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1647 "libguestfs handle.  You can also call:"
1648 msgstr ""
1649
1650 #. type: verbatim
1651 #: ../src/guestfs.pod:783
1652 #, no-wrap
1653 msgid ""
1654 " guestfs_set_autosync (g, 1);\n"
1655 "\n"
1656 msgstr ""
1657
1658 #. type: textblock
1659 #: ../src/guestfs.pod:785
1660 msgid ""
1661 "to have the unmount/sync done automatically for you when the handle 'g' is "
1662 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1663 msgstr ""
1664
1665 #. type: textblock
1666 #: ../src/guestfs.pod:789
1667 msgid ""
1668 "If you forget to do this, then it is entirely possible that your changes "
1669 "won't be written out, or will be partially written, or (very rarely) that "
1670 "you'll get disk corruption."
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../src/guestfs.pod:793
1675 msgid ""
1676 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1677 "guestfish scripts that forget to sync will work just fine, which can make "
1678 "this very puzzling if you are trying to debug a problem."
1679 msgstr ""
1680
1681 #. type: textblock
1682 #: ../src/guestfs.pod:797
1683 msgid ""
1684 "Update: Autosync is enabled by default for all API users starting from "
1685 "libguestfs 1.5.24."
1686 msgstr ""
1687
1688 #. type: =item
1689 #: ../src/guestfs.pod:800
1690 msgid "Mount option C<-o sync> should not be the default."
1691 msgstr ""
1692
1693 #. type: textblock
1694 #: ../src/guestfs.pod:802
1695 msgid ""
1696 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1697 "However C<-o sync> does not add any reliability benefit, but does have a "
1698 "very large performance impact."
1699 msgstr ""
1700
1701 #. type: textblock
1702 #: ../src/guestfs.pod:806
1703 msgid ""
1704 "The work around is to use L</guestfs_mount_options> and set the mount "
1705 "options that you actually want to use."
1706 msgstr ""
1707
1708 #. type: =item
1709 #: ../src/guestfs.pod:809
1710 msgid "Read-only should be the default."
1711 msgstr ""
1712
1713 #. type: textblock
1714 #: ../src/guestfs.pod:811
1715 msgid ""
1716 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1717 "specify I<--rw> if you want to make changes to the image."
1718 msgstr ""
1719
1720 #. type: textblock
1721 #: ../src/guestfs.pod:814
1722 msgid "This would reduce the potential to corrupt live VM images."
1723 msgstr ""
1724
1725 #. type: textblock
1726 #: ../src/guestfs.pod:816
1727 msgid ""
1728 "Note that many filesystems change the disk when you just mount and unmount, "
1729 "even if you didn't perform any writes.  You need to use L</"
1730 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1731 msgstr ""
1732
1733 #. type: =item
1734 #: ../src/guestfs.pod:820
1735 msgid "guestfish command line is hard to use."
1736 msgstr ""
1737
1738 #. type: textblock
1739 #: ../src/guestfs.pod:822
1740 msgid ""
1741 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1742 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1743 "exist, so it fails.  In earlier versions of guestfish the error message was "
1744 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1745 "we should have used C<guestfish -c command> to run commands."
1746 msgstr ""
1747
1748 #. type: =item
1749 #: ../src/guestfs.pod:829
1750 msgid "guestfish megabyte modifiers don't work right on all commands"
1751 msgstr ""
1752
1753 #. type: textblock
1754 #: ../src/guestfs.pod:831
1755 msgid ""
1756 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1757 "other modifiers).  What guestfish actually does is to multiply the number "
1758 "part by the modifier part and pass the result to the C API.  However this "
1759 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1760 "expecting some other unit (eg. megabytes)."
1761 msgstr ""
1762
1763 #. type: textblock
1764 #: ../src/guestfs.pod:838
1765 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1766 msgstr ""
1767
1768 #. type: verbatim
1769 #: ../src/guestfs.pod:840
1770 #, no-wrap
1771 msgid ""
1772 " lvcreate LV VG 100M\n"
1773 "\n"
1774 msgstr ""
1775
1776 #. type: textblock
1777 #: ../src/guestfs.pod:842
1778 msgid ""
1779 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1780 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1781 "megabytes * megabytes) logical volume.  The error message you get from this "
1782 "is also a little obscure."
1783 msgstr ""
1784
1785 #. type: textblock
1786 #: ../src/guestfs.pod:847
1787 msgid ""
1788 "This could be fixed in the generator by specially marking parameters and "
1789 "return values which take bytes or other units."
1790 msgstr ""
1791
1792 #. type: =item
1793 #: ../src/guestfs.pod:850
1794 msgid "Ambiguity between devices and paths"
1795 msgstr ""
1796
1797 #. type: textblock
1798 #: ../src/guestfs.pod:852
1799 msgid ""
1800 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1801 "sdb2>) and a similar pathname.  A file might just happen to be called "
1802 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1803 msgstr ""
1804
1805 #. type: textblock
1806 #: ../src/guestfs.pod:857
1807 msgid ""
1808 "In the current API we usually resolve this ambiguity by having two separate "
1809 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1810 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1811 "detecting if the path supplied begins with C</dev/>."
1812 msgstr ""
1813
1814 #. type: textblock
1815 #: ../src/guestfs.pod:863
1816 msgid ""
1817 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1818 "make paths/devices into structured names.  One way to do this would be to "
1819 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1820 "aspect of grub.  Another way would be to use a structured type, equivalent "
1821 "to this OCaml type:"
1822 msgstr ""
1823
1824 #. type: verbatim
1825 #: ../src/guestfs.pod:869
1826 #, no-wrap
1827 msgid ""
1828 " type path = Path of string | Device of int | Partition of int * int\n"
1829 "\n"
1830 msgstr ""
1831
1832 #. type: textblock
1833 #: ../src/guestfs.pod:871
1834 msgid "which would allow you to pass arguments like:"
1835 msgstr ""
1836
1837 #. type: verbatim
1838 #: ../src/guestfs.pod:873
1839 #, no-wrap
1840 msgid ""
1841 " Path \"/foo/bar\"\n"
1842 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1843 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1844 " Path \"/dev/sdb2\"    (* not a device *)\n"
1845 "\n"
1846 msgstr ""
1847
1848 #. type: textblock
1849 #: ../src/guestfs.pod:878
1850 msgid ""
1851 "As you can see there are still problems to resolve even with this "
1852 "representation.  Also consider how it might work in guestfish."
1853 msgstr ""
1854
1855 #. type: =head2
1856 #: ../src/guestfs.pod:883
1857 msgid "PROTOCOL LIMITS"
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../src/guestfs.pod:885
1862 msgid ""
1863 "Internally libguestfs uses a message-based protocol to pass API calls and "
1864 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1865 "plenty more detail about this).  The maximum message size used by the "
1866 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1867 "aware of this limit.  The API calls which may be affected are individually "
1868 "documented, with a link back to this section of the documentation."
1869 msgstr ""
1870
1871 #. type: textblock
1872 #: ../src/guestfs.pod:893
1873 msgid ""
1874 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1875 "a simple string.  Because this string is at some point internally encoded as "
1876 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1877 "the requested file is larger than this then you will get an error."
1878 msgstr ""
1879
1880 #. type: textblock
1881 #: ../src/guestfs.pod:899
1882 msgid ""
1883 "In order to transfer large files into and out of the guest filesystem, you "
1884 "need to use particular calls that support this.  The sections L</UPLOADING> "
1885 "and L</DOWNLOADING> document how to do this."
1886 msgstr ""
1887
1888 #. type: textblock
1889 #: ../src/guestfs.pod:903
1890 msgid ""
1891 "You might also consider mounting the disk image using our FUSE filesystem "
1892 "support (L<guestmount(1)>)."
1893 msgstr ""
1894
1895 #. type: =head2
1896 #: ../src/guestfs.pod:906
1897 msgid "KEYS AND PASSPHRASES"
1898 msgstr ""
1899
1900 #. type: textblock
1901 #: ../src/guestfs.pod:908
1902 msgid ""
1903 "Certain libguestfs calls take a parameter that contains sensitive key "
1904 "material, passed in as a C string."
1905 msgstr ""
1906
1907 #. type: textblock
1908 #: ../src/guestfs.pod:911
1909 msgid ""
1910 "In the future we would hope to change the libguestfs implementation so that "
1911 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1912 "swap.  However this is I<not> done at the moment, because of the complexity "
1913 "of such an implementation."
1914 msgstr ""
1915
1916 #. type: textblock
1917 #: ../src/guestfs.pod:916
1918 msgid ""
1919 "Therefore you should be aware that any key parameter you pass to libguestfs "
1920 "might end up being written out to the swap partition.  If this is a concern, "
1921 "scrub the swap partition or don't use libguestfs on encrypted devices."
1922 msgstr ""
1923
1924 #. type: =head2
1925 #: ../src/guestfs.pod:921
1926 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1927 msgstr ""
1928
1929 #. type: textblock
1930 #: ../src/guestfs.pod:923
1931 msgid ""
1932 "All high-level libguestfs actions are synchronous.  If you want to use "
1933 "libguestfs asynchronously then you must create a thread."
1934 msgstr ""
1935
1936 #. type: textblock
1937 #: ../src/guestfs.pod:926
1938 msgid ""
1939 "Only use the handle from a single thread.  Either use the handle exclusively "
1940 "from one thread, or provide your own mutex so that two threads cannot issue "
1941 "calls on the same handle at the same time."
1942 msgstr ""
1943
1944 #. type: textblock
1945 #: ../src/guestfs.pod:930
1946 msgid ""
1947 "See the graphical program guestfs-browser for one possible architecture for "
1948 "multithreaded programs using libvirt and libguestfs."
1949 msgstr ""
1950
1951 #. type: =head2
1952 #: ../src/guestfs.pod:933
1953 msgid "PATH"
1954 msgstr "ШЛЯХ"
1955
1956 #. type: textblock
1957 #: ../src/guestfs.pod:935
1958 msgid ""
1959 "Libguestfs needs a supermin appliance, which it finds by looking along an "
1960 "internal path."
1961 msgstr ""
1962
1963 #. type: textblock
1964 #: ../src/guestfs.pod:938
1965 msgid ""
1966 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1967 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1968 msgstr ""
1969
1970 #. type: textblock
1971 #: ../src/guestfs.pod:941
1972 msgid ""
1973 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1974 "to change the directories that libguestfs will search in.  The value is a "
1975 "colon-separated list of paths.  The current directory is I<not> searched "
1976 "unless the path contains an empty element or C<.>.  For example "
1977 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1978 "then C</usr/lib/guestfs>."
1979 msgstr ""
1980
1981 #. type: =head2
1982 #: ../src/guestfs.pod:948
1983 msgid "QEMU WRAPPERS"
1984 msgstr ""
1985
1986 #. type: textblock
1987 #: ../src/guestfs.pod:950
1988 msgid ""
1989 "If you want to compile your own qemu, run qemu from a non-standard location, "
1990 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1991 "around qemu."
1992 msgstr ""
1993
1994 #. type: textblock
1995 #: ../src/guestfs.pod:954
1996 msgid ""
1997 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1998 "last command in the shell script (so that qemu replaces the shell and "
1999 "becomes the direct child of the libguestfs-using program).  If you don't do "
2000 "this, then the qemu process won't be cleaned up correctly."
2001 msgstr ""
2002
2003 #. type: textblock
2004 #: ../src/guestfs.pod:959
2005 msgid ""
2006 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2007 "source:"
2008 msgstr ""
2009
2010 #. type: verbatim
2011 #: ../src/guestfs.pod:962
2012 #, no-wrap
2013 msgid ""
2014 " #!/bin/sh -\n"
2015 " qemudir=/home/rjones/d/qemu\n"
2016 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2017 "\n"
2018 msgstr ""
2019
2020 #. type: textblock
2021 #: ../src/guestfs.pod:966
2022 msgid ""
2023 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2024 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2025 "example:"
2026 msgstr ""
2027
2028 #. type: verbatim
2029 #: ../src/guestfs.pod:970
2030 #, no-wrap
2031 msgid ""
2032 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2033 "\n"
2034 msgstr ""
2035
2036 #. type: textblock
2037 #: ../src/guestfs.pod:972
2038 msgid ""
2039 "Note that libguestfs also calls qemu with the -help and -version options in "
2040 "order to determine features."
2041 msgstr ""
2042
2043 #. type: =head2
2044 #: ../src/guestfs.pod:975
2045 msgid "ATTACHING TO RUNNING DAEMONS"
2046 msgstr ""
2047
2048 #. type: textblock
2049 #: ../src/guestfs.pod:977
2050 msgid ""
2051 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2052 "babies.  Use with caution."
2053 msgstr ""
2054
2055 #. type: textblock
2056 #: ../src/guestfs.pod:980
2057 msgid ""
2058 "I<Note (2):> This section explains how to attach to a running daemon from a "
2059 "low level perspective.  For most users, simply using virt tools such as "
2060 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2061 msgstr ""
2062
2063 #. type: =head3
2064 #: ../src/guestfs.pod:984
2065 msgid "Using guestfs_set_attach_method"
2066 msgstr ""
2067
2068 #. type: textblock
2069 #: ../src/guestfs.pod:986
2070 msgid ""
2071 "By calling L</guestfs_set_attach_method> you can change how the library "
2072 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2073 "ARCHITECTURE> for some background)."
2074 msgstr ""
2075
2076 #. type: textblock
2077 #: ../src/guestfs.pod:990
2078 msgid ""
2079 "The normal attach method is C<appliance>, where a small appliance is created "
2080 "containing the daemon, and then the library connects to this."
2081 msgstr ""
2082
2083 #. type: textblock
2084 #: ../src/guestfs.pod:993
2085 msgid ""
2086 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2087 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2088 "daemon over the Unix domain socket."
2089 msgstr ""
2090
2091 #. type: textblock
2092 #: ../src/guestfs.pod:997
2093 msgid ""
2094 "The normal use for this is to connect to a running virtual machine that "
2095 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2096 "files inside the live virtual machine."
2097 msgstr ""
2098
2099 #. type: =head3
2100 #: ../src/guestfs.pod:1001
2101 msgid "Using guestfs_add_domain with live flag"
2102 msgstr ""
2103
2104 #. type: textblock
2105 #: ../src/guestfs.pod:1003
2106 msgid ""
2107 "L</guestfs_add_domain> provides some help for getting the correct attach "
2108 "method.  If you pass the C<live> option to this function, then (if the "
2109 "virtual machine is running) it will examine the libvirt XML looking for a "
2110 "virtio-serial channel to connect to:"
2111 msgstr ""
2112
2113 #. type: verbatim
2114 #: ../src/guestfs.pod:1009
2115 #, no-wrap
2116 msgid ""
2117 " <domain>\n"
2118 "   ...\n"
2119 "   <devices>\n"
2120 "     ...\n"
2121 "     <channel type='unix'>\n"
2122 "       <source mode='bind' path='/path/to/socket'/>\n"
2123 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2124 "     </channel>\n"
2125 "     ...\n"
2126 "   </devices>\n"
2127 " </domain>\n"
2128 "\n"
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../src/guestfs.pod:1021
2133 msgid ""
2134 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2135 "method to C<unix:/path/to/socket>."
2136 msgstr ""
2137
2138 #. type: textblock
2139 #: ../src/guestfs.pod:1024
2140 msgid ""
2141 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2142 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2143 "to attach to and modify live virtual machines."
2144 msgstr ""
2145
2146 #. type: textblock
2147 #: ../src/guestfs.pod:1028
2148 msgid ""
2149 "The virtual machine needs to have been set up beforehand so that it has the "
2150 "virtio-serial channel and so that guestfsd is running inside it."
2151 msgstr ""
2152
2153 #. type: =head2
2154 #: ../src/guestfs.pod:1032
2155 msgid "ABI GUARANTEE"
2156 msgstr ""
2157
2158 #. type: textblock
2159 #: ../src/guestfs.pod:1034
2160 msgid ""
2161 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2162 "actions as outlined in this section.  Although we will deprecate some "
2163 "actions, for example if they get replaced by newer calls, we will keep the "
2164 "old actions forever.  This allows you the developer to program in confidence "
2165 "against the libguestfs API."
2166 msgstr ""
2167
2168 #. type: =head2
2169 #: ../src/guestfs.pod:1040
2170 msgid "BLOCK DEVICE NAMING"
2171 msgstr ""
2172
2173 #. type: textblock
2174 #: ../src/guestfs.pod:1042
2175 msgid ""
2176 "In the kernel there is now quite a profusion of schemata for naming block "
2177 "devices (in this context, by I<block device> I mean a physical or virtual "
2178 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2179 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2180 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2181 "for the old IDE driver (particularly for SATA devices) those devices also "
2182 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2183 "paravirtualized drivers.  This has created several different naming systems, "
2184 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2185 msgstr ""
2186
2187 #. type: textblock
2188 #: ../src/guestfs.pod:1054
2189 msgid ""
2190 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2191 "Linux kernel to access block devices.  We can run a variety of appliances "
2192 "based on a variety of Linux kernels."
2193 msgstr ""
2194
2195 #. type: textblock
2196 #: ../src/guestfs.pod:1058
2197 msgid ""
2198 "This causes a problem for libguestfs because many API calls use device or "
2199 "partition names.  Working scripts and the recipe (example) scripts that we "
2200 "make available over the internet could fail if the naming scheme changes."
2201 msgstr ""
2202
2203 #. type: textblock
2204 #: ../src/guestfs.pod:1063
2205 msgid ""
2206 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2207 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2208 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2209 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2210 msgstr ""
2211
2212 #. type: textblock
2213 #: ../src/guestfs.pod:1069
2214 msgid ""
2215 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2216 "L</guestfs_list_partitions> and similar calls return the true names of the "
2217 "devices and partitions as known to the appliance."
2218 msgstr ""
2219
2220 #. type: =head3
2221 #: ../src/guestfs.pod:1074
2222 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2223 msgstr ""
2224
2225 #. type: textblock
2226 #: ../src/guestfs.pod:1076
2227 msgid ""
2228 "Usually this translation is transparent.  However in some (very rare)  cases "
2229 "you may need to know the exact algorithm.  Such cases include where you use "
2230 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2231 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2232 msgstr ""
2233
2234 #. type: textblock
2235 #: ../src/guestfs.pod:1082
2236 msgid ""
2237 "The algorithm is applied only to I<parameters> which are known to be either "
2238 "device or partition names.  Return values from functions such as L</"
2239 "guestfs_list_devices> are never changed."
2240 msgstr ""
2241
2242 #. type: textblock
2243 #: ../src/guestfs.pod:1090
2244 msgid "Is the string a parameter which is a device or partition name?"
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../src/guestfs.pod:1094
2249 msgid "Does the string begin with C</dev/sd>?"
2250 msgstr ""
2251
2252 #. type: textblock
2253 #: ../src/guestfs.pod:1098
2254 msgid ""
2255 "Does the named device exist? If so, we use that device.  However if I<not> "
2256 "then we continue with this algorithm."
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../src/guestfs.pod:1103
2261 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2262 msgstr ""
2263
2264 #. type: textblock
2265 #: ../src/guestfs.pod:1105
2266 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2267 msgstr ""
2268
2269 #. type: textblock
2270 #: ../src/guestfs.pod:1107
2271 msgid "If that named device exists, use it.  If not, continue."
2272 msgstr ""
2273
2274 #. type: textblock
2275 #: ../src/guestfs.pod:1111
2276 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2277 msgstr ""
2278
2279 #. type: textblock
2280 #: ../src/guestfs.pod:1113
2281 msgid "If that named device exists, use it.  If not, return an error."
2282 msgstr ""
2283
2284 #. type: =head3
2285 #: ../src/guestfs.pod:1117
2286 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2287 msgstr ""
2288
2289 #. type: textblock
2290 #: ../src/guestfs.pod:1119
2291 msgid ""
2292 "Although the standard naming scheme and automatic translation is useful for "
2293 "simple programs and guestfish scripts, for larger programs it is best not to "
2294 "rely on this mechanism."
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../src/guestfs.pod:1123
2299 msgid ""
2300 "Where possible for maximum future portability programs using libguestfs "
2301 "should use these future-proof techniques:"
2302 msgstr ""
2303
2304 #. type: textblock
2305 #: ../src/guestfs.pod:1130
2306 msgid ""
2307 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2308 "device names, and then use those names directly."
2309 msgstr ""
2310
2311 #. type: textblock
2312 #: ../src/guestfs.pod:1133
2313 msgid ""
2314 "Since those device names exist by definition, they will never be translated."
2315 msgstr ""
2316
2317 #. type: textblock
2318 #: ../src/guestfs.pod:1138
2319 msgid ""
2320 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2321 "filesystem labels."
2322 msgstr ""
2323
2324 #. type: =head1
2325 #: ../src/guestfs.pod:1143
2326 msgid "SECURITY"
2327 msgstr "БЕЗПЕКА"
2328
2329 #. type: textblock
2330 #: ../src/guestfs.pod:1145
2331 msgid ""
2332 "This section discusses security implications of using libguestfs, "
2333 "particularly with untrusted or malicious guests or disk images."
2334 msgstr ""
2335
2336 #. type: =head2
2337 #: ../src/guestfs.pod:1148
2338 msgid "GENERAL SECURITY CONSIDERATIONS"
2339 msgstr ""
2340
2341 #. type: textblock
2342 #: ../src/guestfs.pod:1150
2343 msgid ""
2344 "Be careful with any files or data that you download from a guest (by "
2345 "\"download\" we mean not just the L</guestfs_download> command but any "
2346 "command that reads files, filenames, directories or anything else from a "
2347 "disk image).  An attacker could manipulate the data to fool your program "
2348 "into doing the wrong thing.  Consider cases such as:"
2349 msgstr ""
2350
2351 #. type: textblock
2352 #: ../src/guestfs.pod:1160
2353 msgid "the data (file etc) not being present"
2354 msgstr ""
2355
2356 #. type: textblock
2357 #: ../src/guestfs.pod:1164
2358 msgid "being present but empty"
2359 msgstr ""
2360
2361 #. type: textblock
2362 #: ../src/guestfs.pod:1168
2363 msgid "being much larger than normal"
2364 msgstr ""
2365
2366 #. type: textblock
2367 #: ../src/guestfs.pod:1172
2368 msgid "containing arbitrary 8 bit data"
2369 msgstr ""
2370
2371 #. type: textblock
2372 #: ../src/guestfs.pod:1176
2373 msgid "being in an unexpected character encoding"
2374 msgstr ""
2375
2376 #. type: textblock
2377 #: ../src/guestfs.pod:1180
2378 msgid "containing homoglyphs."
2379 msgstr ""
2380
2381 #. type: =head2
2382 #: ../src/guestfs.pod:1184
2383 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2384 msgstr ""
2385
2386 #. type: textblock
2387 #: ../src/guestfs.pod:1186
2388 msgid ""
2389 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2390 "(VFS) module can sometimes be escalated into exploits by deliberately "
2391 "creating a malicious, malformed filesystem.  These exploits are very severe "
2392 "for two reasons.  Firstly there are very many filesystem drivers in the "
2393 "kernel, and many of them are infrequently used and not much developer "
2394 "attention has been paid to the code.  Linux userspace helps potential "
2395 "crackers by detecting the filesystem type and automatically choosing the "
2396 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2397 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2398 "exploit (worse in some ways), giving immediate and total access to the "
2399 "system right down to the hardware level."
2400 msgstr ""
2401
2402 #. type: textblock
2403 #: ../src/guestfs.pod:1199
2404 msgid ""
2405 "That explains why you should never mount a filesystem from an untrusted "
2406 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2407 "inside a qemu virtual machine, usually running as a non-root user.  The "
2408 "attacker would need to write a filesystem which first exploited the kernel, "
2409 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2410 "the libguestfs protocol, and finally to be as serious as the host kernel "
2411 "exploit it would need to escalate its privileges to root.  This multi-step "
2412 "escalation, performed by a static piece of data, is thought to be extremely "
2413 "hard to do, although we never say 'never' about security issues."
2414 msgstr ""
2415
2416 #. type: textblock
2417 #: ../src/guestfs.pod:1210
2418 msgid ""
2419 "In any case callers can reduce the attack surface by forcing the filesystem "
2420 "type when mounting (use L</guestfs_mount_vfs>)."
2421 msgstr ""
2422
2423 #. type: =head2
2424 #: ../src/guestfs.pod:1213
2425 msgid "PROTOCOL SECURITY"
2426 msgstr ""
2427
2428 #. type: textblock
2429 #: ../src/guestfs.pod:1215
2430 msgid ""
2431 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2432 "defined upper message size.  However a program that uses libguestfs must "
2433 "also take care - for example you can write a program that downloads a binary "
2434 "from a disk image and executes it locally, and no amount of protocol "
2435 "security will save you from the consequences."
2436 msgstr ""
2437
2438 #. type: =head2
2439 #: ../src/guestfs.pod:1221
2440 msgid "INSPECTION SECURITY"
2441 msgstr ""
2442
2443 #. type: textblock
2444 #: ../src/guestfs.pod:1223
2445 msgid ""
2446 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2447 "directly from the guest, and these could contain any 8 bit data.  Callers "
2448 "should be careful to escape these before printing them to a structured file "
2449 "(for example, use HTML escaping if creating a web page)."
2450 msgstr ""
2451
2452 #. type: textblock
2453 #: ../src/guestfs.pod:1229
2454 msgid ""
2455 "Guest configuration may be altered in unusual ways by the administrator of "
2456 "the virtual machine, and may not reflect reality (particularly for untrusted "
2457 "or actively malicious guests).  For example we parse the hostname from "
2458 "configuration files like C</etc/sysconfig/network> that we find in the "
2459 "guest, but the guest administrator can easily manipulate these files to "
2460 "provide the wrong hostname."
2461 msgstr ""
2462
2463 #. type: textblock
2464 #: ../src/guestfs.pod:1237
2465 msgid ""
2466 "The inspection API parses guest configuration using two external libraries: "
2467 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2468 "designed to be robust in the face of malicious data, although denial of "
2469 "service attacks are still possible, for example with oversized configuration "
2470 "files."
2471 msgstr ""
2472
2473 #. type: =head2
2474 #: ../src/guestfs.pod:1243
2475 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2476 msgstr ""
2477
2478 #. type: textblock
2479 #: ../src/guestfs.pod:1245
2480 msgid ""
2481 "Be very cautious about running commands from the guest.  By running a "
2482 "command in the guest, you are giving CPU time to a binary that you do not "
2483 "control, under the same user account as the library, albeit wrapped in qemu "
2484 "virtualization.  More information and alternatives can be found in the "
2485 "section L</RUNNING COMMANDS>."
2486 msgstr ""
2487
2488 #. type: =head2
2489 #: ../src/guestfs.pod:1251
2490 msgid "CVE-2010-3851"
2491 msgstr "CVE-2010-3851"
2492
2493 #. type: textblock
2494 #: ../src/guestfs.pod:1253
2495 msgid "https://bugzilla.redhat.com/642934"
2496 msgstr "https://bugzilla.redhat.com/642934"
2497
2498 #. type: textblock
2499 #: ../src/guestfs.pod:1255
2500 msgid ""
2501 "This security bug concerns the automatic disk format detection that qemu "
2502 "does on disk images."
2503 msgstr ""
2504
2505 #. type: textblock
2506 #: ../src/guestfs.pod:1258
2507 msgid ""
2508 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2509 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2510 "for one of the known headers, and if none is found then assuming the disk "
2511 "image must be raw."
2512 msgstr ""
2513
2514 #. type: textblock
2515 #: ../src/guestfs.pod:1263
2516 msgid ""
2517 "This allows a guest which has been given a raw disk image to write some "
2518 "other header.  At next boot (or when the disk image is accessed by "
2519 "libguestfs) qemu would do autodetection and think the disk image format was, "
2520 "say, qcow2 based on the header written by the guest."
2521 msgstr ""
2522
2523 #. type: textblock
2524 #: ../src/guestfs.pod:1268
2525 msgid ""
2526 "This in itself would not be a problem, but qcow2 offers many features, one "
2527 "of which is to allow a disk image to refer to another image (called the "
2528 "\"backing disk\").  It does this by placing the path to the backing disk "
2529 "into the qcow2 header.  This path is not validated and could point to any "
2530 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2531 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2532 "control of the attacker."
2533 msgstr ""
2534
2535 #. type: textblock
2536 #: ../src/guestfs.pod:1276
2537 msgid ""
2538 "In libguestfs this is rather hard to exploit except under two circumstances:"
2539 msgstr ""
2540
2541 #. type: textblock
2542 #: ../src/guestfs.pod:1283
2543 msgid "You have enabled the network or have opened the disk in write mode."
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../src/guestfs.pod:1287
2548 msgid ""
2549 "You are also running untrusted code from the guest (see L</RUNNING "
2550 "COMMANDS>)."
2551 msgstr ""
2552
2553 #. type: textblock
2554 #: ../src/guestfs.pod:1292
2555 msgid ""
2556 "The way to avoid this is to specify the expected disk format when adding "
2557 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2558 "should always do this if the disk is raw format, and it's a good idea for "
2559 "other cases too."
2560 msgstr ""
2561
2562 #. type: textblock
2563 #: ../src/guestfs.pod:1297
2564 msgid ""
2565 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2566 "format is fetched from libvirt and passed through."
2567 msgstr ""
2568
2569 #. type: textblock
2570 #: ../src/guestfs.pod:1300
2571 msgid ""
2572 "For libguestfs tools, use the I<--format> command line parameter as "
2573 "appropriate."
2574 msgstr ""
2575
2576 #. type: =head1
2577 #: ../src/guestfs.pod:1303
2578 msgid "CONNECTION MANAGEMENT"
2579 msgstr ""
2580
2581 #. type: =head2
2582 #: ../src/guestfs.pod:1305
2583 msgid "guestfs_h *"
2584 msgstr ""
2585
2586 #. type: textblock
2587 #: ../src/guestfs.pod:1307
2588 msgid ""
2589 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2590 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2591 "handle and release all resources used."
2592 msgstr ""
2593
2594 #. type: textblock
2595 #: ../src/guestfs.pod:1311
2596 msgid ""
2597 "For information on using multiple handles and threads, see the section L</"
2598 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2599 msgstr ""
2600
2601 #. type: =head2
2602 #: ../src/guestfs.pod:1314
2603 msgid "guestfs_create"
2604 msgstr ""
2605
2606 #. type: verbatim
2607 #: ../src/guestfs.pod:1316
2608 #, no-wrap
2609 msgid ""
2610 " guestfs_h *guestfs_create (void);\n"
2611 "\n"
2612 msgstr ""
2613
2614 #. type: textblock
2615 #: ../src/guestfs.pod:1318
2616 msgid "Create a connection handle."
2617 msgstr ""
2618
2619 #. type: textblock
2620 #: ../src/guestfs.pod:1320
2621 msgid ""
2622 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2623 "on the handle at least once."
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../src/guestfs.pod:1323
2628 msgid ""
2629 "This function returns a non-NULL pointer to a handle on success or NULL on "
2630 "error."
2631 msgstr ""
2632
2633 #. type: textblock
2634 #: ../src/guestfs.pod:1326
2635 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2636 msgstr ""
2637
2638 #. type: textblock
2639 #: ../src/guestfs.pod:1328
2640 msgid ""
2641 "You may also want to configure error handling for the handle.  See L</ERROR "
2642 "HANDLING> section below."
2643 msgstr ""
2644
2645 #. type: =head2
2646 #: ../src/guestfs.pod:1331
2647 msgid "guestfs_close"
2648 msgstr ""
2649
2650 #. type: verbatim
2651 #: ../src/guestfs.pod:1333
2652 #, no-wrap
2653 msgid ""
2654 " void guestfs_close (guestfs_h *g);\n"
2655 "\n"
2656 msgstr ""
2657
2658 #. type: textblock
2659 #: ../src/guestfs.pod:1335
2660 msgid "This closes the connection handle and frees up all resources used."
2661 msgstr ""
2662
2663 #. type: =head1
2664 #: ../src/guestfs.pod:1337
2665 msgid "ERROR HANDLING"
2666 msgstr "ОБРОБКА ПОМИЛОК"
2667
2668 #. type: textblock
2669 #: ../src/guestfs.pod:1339
2670 msgid ""
2671 "API functions can return errors.  For example, almost all functions that "
2672 "return C<int> will return C<-1> to indicate an error."
2673 msgstr ""
2674
2675 #. type: textblock
2676 #: ../src/guestfs.pod:1342
2677 msgid ""
2678 "Additional information is available for errors: an error message string and "
2679 "optionally an error number (errno) if the thing that failed was a system "
2680 "call."
2681 msgstr ""
2682
2683 #. type: textblock
2684 #: ../src/guestfs.pod:1346
2685 msgid ""
2686 "You can get at the additional information about the last error on the handle "
2687 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2688 "up an error handler with L</guestfs_set_error_handler>."
2689 msgstr ""
2690
2691 #. type: textblock
2692 #: ../src/guestfs.pod:1351
2693 msgid ""
2694 "When the handle is created, a default error handler is installed which "
2695 "prints the error message string to C<stderr>.  For small short-running "
2696 "command line programs it is sufficient to do:"
2697 msgstr ""
2698
2699 #. type: verbatim
2700 #: ../src/guestfs.pod:1355
2701 #, no-wrap
2702 msgid ""
2703 " if (guestfs_launch (g) == -1)\n"
2704 "   exit (EXIT_FAILURE);\n"
2705 "\n"
2706 msgstr ""
2707
2708 #. type: textblock
2709 #: ../src/guestfs.pod:1358
2710 msgid ""
2711 "since the default error handler will ensure that an error message has been "
2712 "printed to C<stderr> before the program exits."
2713 msgstr ""
2714
2715 #. type: textblock
2716 #: ../src/guestfs.pod:1361
2717 msgid ""
2718 "For other programs the caller will almost certainly want to install an "
2719 "alternate error handler or do error handling in-line like this:"
2720 msgstr ""
2721
2722 #. type: verbatim
2723 #: ../src/guestfs.pod:1364
2724 #, no-wrap
2725 msgid ""
2726 " g = guestfs_create ();\n"
2727 " \n"
2728 msgstr ""
2729
2730 #. type: verbatim
2731 #: ../src/guestfs.pod:1366
2732 #, no-wrap
2733 msgid ""
2734 " /* This disables the default behaviour of printing errors\n"
2735 "    on stderr. */\n"
2736 " guestfs_set_error_handler (g, NULL, NULL);\n"
2737 " \n"
2738 msgstr ""
2739
2740 #. type: verbatim
2741 #: ../src/guestfs.pod:1370
2742 #, no-wrap
2743 msgid ""
2744 " if (guestfs_launch (g) == -1) {\n"
2745 "   /* Examine the error message and print it etc. */\n"
2746 "   char *msg = guestfs_last_error (g);\n"
2747 "   int errnum = guestfs_last_errno (g);\n"
2748 "   fprintf (stderr, \"%s\\n\", msg);\n"
2749 "   /* ... */\n"
2750 "  }\n"
2751 "\n"
2752 msgstr ""
2753
2754 #. type: textblock
2755 #: ../src/guestfs.pod:1378
2756 msgid ""
2757 "Out of memory errors are handled differently.  The default action is to call "
2758 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2759 "guestfs_set_out_of_memory_handler>."
2760 msgstr ""
2761
2762 #. type: textblock
2763 #: ../src/guestfs.pod:1382
2764 msgid ""
2765 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2766 "because there is no handle if this happens there is no way to get additional "
2767 "error information.  However L</guestfs_create> is supposed to be a "
2768 "lightweight operation which can only fail because of insufficient memory (it "
2769 "returns NULL in this case)."
2770 msgstr ""
2771
2772 #. type: =head2
2773 #: ../src/guestfs.pod:1388
2774 msgid "guestfs_last_error"
2775 msgstr ""
2776
2777 #. type: verbatim
2778 #: ../src/guestfs.pod:1390
2779 #, no-wrap
2780 msgid ""
2781 " const char *guestfs_last_error (guestfs_h *g);\n"
2782 "\n"
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../src/guestfs.pod:1392
2787 msgid ""
2788 "This returns the last error message that happened on C<g>.  If there has not "
2789 "been an error since the handle was created, then this returns C<NULL>."
2790 msgstr ""
2791
2792 #. type: textblock
2793 #: ../src/guestfs.pod:1396
2794 msgid ""
2795 "The lifetime of the returned string is until the next error occurs, or L</"
2796 "guestfs_close> is called."
2797 msgstr ""
2798
2799 #. type: =head2
2800 #: ../src/guestfs.pod:1399
2801 msgid "guestfs_last_errno"
2802 msgstr ""
2803
2804 #. type: verbatim
2805 #: ../src/guestfs.pod:1401
2806 #, no-wrap
2807 msgid ""
2808 " int guestfs_last_errno (guestfs_h *g);\n"
2809 "\n"
2810 msgstr ""
2811
2812 #. type: textblock
2813 #: ../src/guestfs.pod:1403
2814 msgid "This returns the last error number (errno) that happened on C<g>."
2815 msgstr ""
2816
2817 #. type: textblock
2818 #: ../src/guestfs.pod:1405
2819 msgid "If successful, an errno integer not equal to zero is returned."
2820 msgstr ""
2821
2822 #. type: textblock
2823 #: ../src/guestfs.pod:1407
2824 msgid ""
2825 "If no error, this returns 0.  This call can return 0 in three situations:"
2826 msgstr ""
2827
2828 #. type: textblock
2829 #: ../src/guestfs.pod:1414
2830 msgid "There has not been any error on the handle."
2831 msgstr ""
2832
2833 #. type: textblock
2834 #: ../src/guestfs.pod:1418
2835 msgid ""
2836 "There has been an error but the errno was meaningless.  This corresponds to "
2837 "the case where the error did not come from a failed system call, but for "
2838 "some other reason."
2839 msgstr ""
2840
2841 #. type: textblock
2842 #: ../src/guestfs.pod:1424
2843 msgid ""
2844 "There was an error from a failed system call, but for some reason the errno "
2845 "was not captured and returned.  This usually indicates a bug in libguestfs."
2846 msgstr ""
2847
2848 #. type: textblock
2849 #: ../src/guestfs.pod:1430
2850 msgid ""
2851 "Libguestfs tries to convert the errno from inside the applicance into a "
2852 "corresponding errno for the caller (not entirely trivial: the appliance "
2853 "might be running a completely different operating system from the library "
2854 "and error numbers are not standardized across Un*xen).  If this could not be "
2855 "done, then the error is translated to C<EINVAL>.  In practice this should "
2856 "only happen in very rare circumstances."
2857 msgstr ""
2858
2859 #. type: =head2
2860 #: ../src/guestfs.pod:1438
2861 msgid "guestfs_set_error_handler"
2862 msgstr ""
2863
2864 #. type: verbatim
2865 #: ../src/guestfs.pod:1440
2866 #, no-wrap
2867 msgid ""
2868 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2869 "                                           void *opaque,\n"
2870 "                                           const char *msg);\n"
2871 " void guestfs_set_error_handler (guestfs_h *g,\n"
2872 "                                 guestfs_error_handler_cb cb,\n"
2873 "                                 void *opaque);\n"
2874 "\n"
2875 msgstr ""
2876
2877 #. type: textblock
2878 #: ../src/guestfs.pod:1447
2879 msgid ""
2880 "The callback C<cb> will be called if there is an error.  The parameters "
2881 "passed to the callback are an opaque data pointer and the error message "
2882 "string."
2883 msgstr ""
2884
2885 #. type: textblock
2886 #: ../src/guestfs.pod:1451
2887 msgid ""
2888 "C<errno> is not passed to the callback.  To get that the callback must call "
2889 "L</guestfs_last_errno>."
2890 msgstr ""
2891
2892 #. type: textblock
2893 #: ../src/guestfs.pod:1454
2894 msgid ""
2895 "Note that the message string C<msg> is freed as soon as the callback "
2896 "function returns, so if you want to stash it somewhere you must make your "
2897 "own copy."
2898 msgstr ""
2899
2900 #. type: textblock
2901 #: ../src/guestfs.pod:1458
2902 msgid "The default handler prints messages on C<stderr>."
2903 msgstr ""
2904
2905 #. type: textblock
2906 #: ../src/guestfs.pod:1460
2907 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2908 msgstr ""
2909
2910 #. type: =head2
2911 #: ../src/guestfs.pod:1462
2912 msgid "guestfs_get_error_handler"
2913 msgstr ""
2914
2915 #. type: verbatim
2916 #: ../src/guestfs.pod:1464
2917 #, no-wrap
2918 msgid ""
2919 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2920 "                                                     void **opaque_rtn);\n"
2921 "\n"
2922 msgstr ""
2923
2924 #. type: textblock
2925 #: ../src/guestfs.pod:1467
2926 msgid "Returns the current error handler callback."
2927 msgstr ""
2928
2929 #. type: =head2
2930 #: ../src/guestfs.pod:1469
2931 msgid "guestfs_set_out_of_memory_handler"
2932 msgstr ""
2933
2934 #. type: verbatim
2935 #: ../src/guestfs.pod:1471
2936 #, no-wrap
2937 msgid ""
2938 " typedef void (*guestfs_abort_cb) (void);\n"
2939 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2940 "                                        guestfs_abort_cb);\n"
2941 "\n"
2942 msgstr ""
2943
2944 #. type: textblock
2945 #: ../src/guestfs.pod:1475
2946 msgid ""
2947 "The callback C<cb> will be called if there is an out of memory situation.  "
2948 "I<Note this callback must not return>."
2949 msgstr ""
2950
2951 #. type: textblock
2952 #: ../src/guestfs.pod:1478
2953 msgid "The default is to call L<abort(3)>."
2954 msgstr ""
2955
2956 #. type: textblock
2957 #: ../src/guestfs.pod:1480
2958 msgid ""
2959 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2960 msgstr ""
2961
2962 #. type: =head2
2963 #: ../src/guestfs.pod:1483
2964 msgid "guestfs_get_out_of_memory_handler"
2965 msgstr ""
2966
2967 #. type: verbatim
2968 #: ../src/guestfs.pod:1485
2969 #, no-wrap
2970 msgid ""
2971 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2972 "\n"
2973 msgstr ""
2974
2975 #. type: textblock
2976 #: ../src/guestfs.pod:1487
2977 msgid "This returns the current out of memory handler."
2978 msgstr ""
2979
2980 #. type: =head1
2981 #: ../src/guestfs.pod:1489
2982 msgid "API CALLS"
2983 msgstr ""
2984
2985 #. type: textblock
2986 #: ../src/guestfs.pod:1491 ../fish/guestfish.pod:1003
2987 msgid "@ACTIONS@"
2988 msgstr "@ACTIONS@"
2989
2990 #. type: =head1
2991 #: ../src/guestfs.pod:1493
2992 msgid "STRUCTURES"
2993 msgstr "СТРУКТУРИ"
2994
2995 #. type: textblock
2996 #: ../src/guestfs.pod:1495
2997 msgid "@STRUCTS@"
2998 msgstr "@STRUCTS@"
2999
3000 #. type: =head1
3001 #: ../src/guestfs.pod:1497
3002 msgid "AVAILABILITY"
3003 msgstr ""
3004
3005 #. type: =head2
3006 #: ../src/guestfs.pod:1499
3007 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3008 msgstr ""
3009
3010 #. type: textblock
3011 #: ../src/guestfs.pod:1501
3012 msgid ""
3013 "Using L</guestfs_available> you can test availability of the following "
3014 "groups of functions.  This test queries the appliance to see if the "
3015 "appliance you are currently using supports the functionality."
3016 msgstr ""
3017
3018 #. type: textblock
3019 #: ../src/guestfs.pod:1506
3020 msgid "@AVAILABILITY@"
3021 msgstr ""
3022
3023 #. type: =head2
3024 #: ../src/guestfs.pod:1508
3025 msgid "GUESTFISH supported COMMAND"
3026 msgstr ""
3027
3028 #. type: textblock
3029 #: ../src/guestfs.pod:1510
3030 msgid ""
3031 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3032 "prints out the available groups and whether they are supported by this build "
3033 "of libguestfs.  Note however that you have to do C<run> first."
3034 msgstr ""
3035
3036 #. type: =head2
3037 #: ../src/guestfs.pod:1515
3038 msgid "SINGLE CALLS AT COMPILE TIME"
3039 msgstr ""
3040
3041 #. type: textblock
3042 #: ../src/guestfs.pod:1517
3043 msgid ""
3044 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3045 "function, such as:"
3046 msgstr ""
3047
3048 #. type: verbatim
3049 #: ../src/guestfs.pod:1520
3050 #, no-wrap
3051 msgid ""
3052 " #define LIBGUESTFS_HAVE_DD 1\n"
3053 "\n"
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../src/guestfs.pod:1522
3058 msgid "if L</guestfs_dd> is available."
3059 msgstr ""
3060
3061 #. type: textblock
3062 #: ../src/guestfs.pod:1524
3063 msgid ""
3064 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3065 "function is available at compile time, we recommended using build tools such "
3066 "as autoconf or cmake.  For example in autotools you could use:"
3067 msgstr ""
3068
3069 #. type: verbatim
3070 #: ../src/guestfs.pod:1529
3071 #, no-wrap
3072 msgid ""
3073 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3074 " AC_CHECK_FUNCS([guestfs_dd])\n"
3075 "\n"
3076 msgstr ""
3077
3078 #. type: textblock
3079 #: ../src/guestfs.pod:1532
3080 msgid ""
3081 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3082 "in your program."
3083 msgstr ""
3084
3085 #. type: =head2
3086 #: ../src/guestfs.pod:1535
3087 msgid "SINGLE CALLS AT RUN TIME"
3088 msgstr ""
3089
3090 #. type: textblock
3091 #: ../src/guestfs.pod:1537
3092 msgid ""
3093 "Testing at compile time doesn't guarantee that a function really exists in "
3094 "the library.  The reason is that you might be dynamically linked against a "
3095 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3096 "This situation unfortunately results in a segmentation fault, which is a "
3097 "shortcoming of the C dynamic linking system itself."
3098 msgstr ""
3099
3100 #. type: textblock
3101 #: ../src/guestfs.pod:1544
3102 msgid ""
3103 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3104 "in this example program (note that you still need the compile time check as "
3105 "well):"
3106 msgstr ""
3107
3108 #. type: verbatim
3109 #: ../src/guestfs.pod:1548
3110 #, no-wrap
3111 msgid ""
3112 " #include <stdio.h>\n"
3113 " #include <stdlib.h>\n"
3114 " #include <unistd.h>\n"
3115 " #include <dlfcn.h>\n"
3116 " #include <guestfs.h>\n"
3117 " \n"
3118 msgstr ""
3119
3120 #. type: verbatim
3121 #: ../src/guestfs.pod:1554
3122 #, no-wrap
3123 msgid ""
3124 " main ()\n"
3125 " {\n"
3126 " #ifdef LIBGUESTFS_HAVE_DD\n"
3127 "   void *dl;\n"
3128 "   int has_function;\n"
3129 " \n"
3130 msgstr ""
3131
3132 #. type: verbatim
3133 #: ../src/guestfs.pod:1560
3134 #, no-wrap
3135 msgid ""
3136 "   /* Test if the function guestfs_dd is really available. */\n"
3137 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3138 "   if (!dl) {\n"
3139 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3140 "     exit (EXIT_FAILURE);\n"
3141 "   }\n"
3142 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3143 "   dlclose (dl);\n"
3144 " \n"
3145 msgstr ""
3146
3147 #. type: verbatim
3148 #: ../src/guestfs.pod:1569
3149 #, no-wrap
3150 msgid ""
3151 "   if (!has_function)\n"
3152 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3153 "   else {\n"
3154 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3155 "     /* Now it's safe to call\n"
3156 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3157 "     */\n"
3158 "   }\n"
3159 " #else\n"
3160 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3161 " #endif\n"
3162 "  }\n"
3163 "\n"
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../src/guestfs.pod:1582
3168 msgid ""
3169 "You may think the above is an awful lot of hassle, and it is.  There are "
3170 "other ways outside of the C linking system to ensure that this kind of "
3171 "incompatibility never arises, such as using package versioning:"
3172 msgstr ""
3173
3174 #. type: verbatim
3175 #: ../src/guestfs.pod:1587
3176 #, no-wrap
3177 msgid ""
3178 " Requires: libguestfs >= 1.0.80\n"
3179 "\n"
3180 msgstr ""
3181
3182 #. type: =head1
3183 #: ../src/guestfs.pod:1589
3184 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3185 msgstr ""
3186
3187 #. type: textblock
3188 #: ../src/guestfs.pod:1591
3189 msgid ""
3190 "A recent feature of the API is the introduction of calls which take optional "
3191 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3192 "takes variable arguments (ie. C<...>), as in this example:"
3193 msgstr ""
3194
3195 #. type: verbatim
3196 #: ../src/guestfs.pod:1596
3197 #, no-wrap
3198 msgid ""
3199 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3200 "\n"
3201 msgstr ""
3202
3203 #. type: textblock
3204 #: ../src/guestfs.pod:1598
3205 msgid ""
3206 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3207 "call with no optional arguments specified:"
3208 msgstr ""
3209
3210 #. type: verbatim
3211 #: ../src/guestfs.pod:1601
3212 #, no-wrap
3213 msgid ""
3214 " guestfs_add_drive_opts (g, filename, -1);\n"
3215 "\n"
3216 msgstr ""
3217
3218 #. type: textblock
3219 #: ../src/guestfs.pod:1603
3220 msgid "With a single optional argument:"
3221 msgstr ""
3222
3223 #. type: verbatim
3224 #: ../src/guestfs.pod:1605
3225 #, no-wrap
3226 msgid ""
3227 " guestfs_add_drive_opts (g, filename,\n"
3228 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3229 "                         -1);\n"
3230 "\n"
3231 msgstr ""
3232
3233 #. type: textblock
3234 #: ../src/guestfs.pod:1609
3235 msgid "With two:"
3236 msgstr ""
3237
3238 #. type: verbatim
3239 #: ../src/guestfs.pod:1611
3240 #, no-wrap
3241 msgid ""
3242 " guestfs_add_drive_opts (g, filename,\n"
3243 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3244 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3245 "                         -1);\n"
3246 "\n"
3247 msgstr ""
3248
3249 #. type: textblock
3250 #: ../src/guestfs.pod:1616
3251 msgid ""
3252 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3253 "happen!"
3254 msgstr ""
3255
3256 #. type: =head2
3257 #: ../src/guestfs.pod:1619
3258 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3259 msgstr ""
3260
3261 #. type: textblock
3262 #: ../src/guestfs.pod:1621
3263 msgid ""
3264 "The second variant has the same name with the suffix C<_va>, which works the "
3265 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3266 "example function, this is declared:"
3267 msgstr ""
3268
3269 #. type: verbatim
3270 #: ../src/guestfs.pod:1625
3271 #, no-wrap
3272 msgid ""
3273 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3274 "                                va_list args);\n"
3275 "\n"
3276 msgstr ""
3277
3278 #. type: =head2
3279 #: ../src/guestfs.pod:1628
3280 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3281 msgstr ""
3282
3283 #. type: textblock
3284 #: ../src/guestfs.pod:1630
3285 msgid ""
3286 "The third variant is useful where you need to construct these calls.  You "
3287 "pass in a structure where you fill in the optional fields.  The structure "
3288 "has a bitmask as the first element which you must set to indicate which "
3289 "fields you have filled in.  For our example function the structure and call "
3290 "are declared:"
3291 msgstr ""
3292
3293 #. type: verbatim
3294 #: ../src/guestfs.pod:1636
3295 #, no-wrap
3296 msgid ""
3297 " struct guestfs_add_drive_opts_argv {\n"
3298 "   uint64_t bitmask;\n"
3299 "   int readonly;\n"
3300 "   const char *format;\n"
3301 "   /* ... */\n"
3302 " };\n"
3303 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3304 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3305 "\n"
3306 msgstr ""
3307
3308 #. type: textblock
3309 #: ../src/guestfs.pod:1645
3310 msgid "You could call it like this:"
3311 msgstr ""
3312
3313 #. type: verbatim
3314 #: ../src/guestfs.pod:1647
3315 #, no-wrap
3316 msgid ""
3317 " struct guestfs_add_drive_opts_argv optargs = {\n"
3318 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3319 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3320 "   .readonly = 1,\n"
3321 "   .format = \"qcow2\"\n"
3322 " };\n"
3323 " \n"
3324 msgstr ""
3325
3326 #. type: verbatim
3327 #: ../src/guestfs.pod:1654
3328 #, no-wrap
3329 msgid ""
3330 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3331 "\n"
3332 msgstr ""
3333
3334 #. type: textblock
3335 #: ../src/guestfs.pod:1656 ../src/guestfs-actions.pod:11
3336 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:9
3337 #: ../fish/guestfish-actions.pod:1260 ../tools/virt-win-reg.pl:532
3338 msgid "Notes:"
3339 msgstr "Нотатки:"
3340
3341 #. type: textblock
3342 #: ../src/guestfs.pod:1662
3343 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3344 msgstr ""
3345
3346 #. type: textblock
3347 #: ../src/guestfs.pod:1667
3348 msgid "You do not need to fill in all fields of the structure."
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../src/guestfs.pod:1671
3353 msgid ""
3354 "There must be a one-to-one correspondence between fields of the structure "
3355 "that are filled in, and bits set in the bitmask."
3356 msgstr ""
3357
3358 #. type: =head2
3359 #: ../src/guestfs.pod:1676
3360 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3361 msgstr ""
3362
3363 #. type: textblock
3364 #: ../src/guestfs.pod:1678
3365 msgid ""
3366 "In other languages, optional arguments are expressed in the way that is "
3367 "natural for that language.  We refer you to the language-specific "
3368 "documentation for more details on that."
3369 msgstr ""
3370
3371 #. type: textblock
3372 #: ../src/guestfs.pod:1682
3373 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3374 msgstr ""
3375
3376 #. type: =head2
3377 #: ../src/guestfs.pod:1684
3378 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3379 msgstr ""
3380
3381 #. type: textblock
3382 #: ../src/guestfs.pod:1686
3383 msgid ""
3384 "B<Note:> This section documents the generic event mechanism introduced in "
3385 "libguestfs 1.10, which you should use in new code if possible.  The old "
3386 "functions C<guestfs_set_log_message_callback>, "
3387 "C<guestfs_set_subprocess_quit_callback>, "
3388 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3389 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3390 "page."
3391 msgstr ""
3392
3393 #. type: textblock
3394 #: ../src/guestfs.pod:1694
3395 msgid ""
3396 "Handles generate events when certain things happen, such as log messages "
3397 "being generated, progress messages during long-running operations, or the "
3398 "handle being closed.  The API calls described below let you register a "
3399 "callback to be called when events happen.  You can register multiple "
3400 "callbacks (for the same, different or overlapping sets of events), and "
3401 "individually remove callbacks.  If callbacks are not removed, then they "
3402 "remain in force until the handle is closed."
3403 msgstr ""
3404
3405 #. type: textblock
3406 #: ../src/guestfs.pod:1702
3407 msgid ""
3408 "In the current implementation, events are only generated synchronously: that "
3409 "means that events (and hence callbacks) can only happen while you are in the "
3410 "middle of making another libguestfs call.  The callback is called in the "
3411 "same thread."
3412 msgstr ""
3413
3414 #. type: textblock
3415 #: ../src/guestfs.pod:1707
3416 msgid ""
3417 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3418 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3419 msgstr ""
3420
3421 #. type: =head3
3422 #: ../src/guestfs.pod:1711
3423 msgid "CLASSES OF EVENTS"
3424 msgstr ""
3425
3426 #. type: =item
3427 #: ../src/guestfs.pod:1715
3428 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3429 msgstr ""
3430
3431 #. type: textblock
3432 #: ../src/guestfs.pod:1718
3433 msgid ""
3434 "The callback function will be called while the handle is being closed "
3435 "(synchronously from L</guestfs_close>)."
3436 msgstr ""
3437
3438 #. type: textblock
3439 #: ../src/guestfs.pod:1721
3440 msgid ""
3441 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3442 "handles that are open when the program exits.  This means that this callback "
3443 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3444 "problems in higher-level languages (eg. if your HLL interpreter has already "
3445 "been cleaned up by the time this is called, and if your callback then jumps "
3446 "into some HLL function)."
3447 msgstr ""
3448
3449 #. type: textblock
3450 #: ../src/guestfs.pod:1728
3451 msgid ""
3452 "If no callback is registered: the handle is closed without any callback "
3453 "being invoked."
3454 msgstr ""
3455
3456 #. type: =item
3457 #: ../src/guestfs.pod:1731
3458 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../src/guestfs.pod:1734
3463 msgid ""
3464 "The callback function will be called when the child process quits, either "
3465 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3466 "corresponds to a transition from any state to the CONFIG state)."
3467 msgstr ""
3468
3469 #. type: textblock
3470 #: ../src/guestfs.pod:1738 ../src/guestfs.pod:1747
3471 msgid "If no callback is registered: the event is ignored."
3472 msgstr ""
3473
3474 #. type: =item
3475 #: ../src/guestfs.pod:1740
3476 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3477 msgstr ""
3478
3479 #. type: textblock
3480 #: ../src/guestfs.pod:1743
3481 msgid ""
3482 "The callback function will be called when the child process becomes ready "
3483 "first time after it has been launched.  (This corresponds to a transition "
3484 "from LAUNCHING to the READY state)."
3485 msgstr ""
3486
3487 #. type: =item
3488 #: ../src/guestfs.pod:1749
3489 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3490 msgstr ""
3491
3492 #. type: textblock
3493 #: ../src/guestfs.pod:1752
3494 msgid ""
3495 "Some long-running operations can generate progress messages.  If this "
3496 "callback is registered, then it will be called each time a progress message "
3497 "is generated (usually two seconds after the operation started, and three "
3498 "times per second thereafter until it completes, although the frequency may "
3499 "change in future versions)."
3500 msgstr ""
3501
3502 #. type: textblock
3503 #: ../src/guestfs.pod:1758
3504 msgid ""
3505 "The callback receives in the payload four unsigned 64 bit numbers which are "
3506 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3507 msgstr ""
3508
3509 #. type: textblock
3510 #: ../src/guestfs.pod:1761
3511 msgid ""
3512 "The units of C<total> are not defined, although for some operations C<total> "
3513 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3514 "or megabytes), and C<position> may be the portion which has been transferred."
3515 msgstr ""
3516
3517 #. type: textblock
3518 #: ../src/guestfs.pod:1766
3519 msgid "The only defined and stable parts of the API are:"
3520 msgstr ""
3521
3522 #. type: textblock
3523 #: ../src/guestfs.pod:1772
3524 msgid ""
3525 "The callback can display to the user some type of progress bar or indicator "
3526 "which shows the ratio of C<position>:C<total>."
3527 msgstr ""
3528
3529 #. type: textblock
3530 #: ../src/guestfs.pod:1777
3531 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3532 msgstr ""
3533
3534 #. type: textblock
3535 #: ../src/guestfs.pod:1781
3536 msgid ""
3537 "If any progress notification is sent during a call, then a final progress "
3538 "notification is always sent when C<position> = C<total> (I<unless> the call "
3539 "fails with an error)."
3540 msgstr ""
3541
3542 #. type: textblock
3543 #: ../src/guestfs.pod:1785
3544 msgid ""
3545 "This is to simplify caller code, so callers can easily set the progress "
3546 "indicator to \"100%\" at the end of the operation, without requiring special "
3547 "code to detect this case."
3548 msgstr ""
3549
3550 #. type: textblock
3551 #: ../src/guestfs.pod:1791
3552 msgid ""
3553 "For some calls we are unable to estimate the progress of the call, but we "
3554 "can still generate progress messages to indicate activity.  This is known as "
3555 "\"pulse mode\", and is directly supported by certain progress bar "
3556 "implementations (eg. GtkProgressBar)."
3557 msgstr ""
3558
3559 #. type: textblock
3560 #: ../src/guestfs.pod:1796
3561 msgid ""
3562 "For these calls, zero or more progress messages are generated with "
3563 "C<position = 0> and C<total = 1>, followed by a final message with "
3564 "C<position = total = 1>."
3565 msgstr ""
3566
3567 #. type: textblock
3568 #: ../src/guestfs.pod:1800
3569 msgid ""
3570 "As noted above, if the call fails with an error then the final message may "
3571 "not be generated."
3572 msgstr ""
3573
3574 #. type: textblock
3575 #: ../src/guestfs.pod:1805
3576 msgid ""
3577 "The callback also receives the procedure number (C<proc_nr>) and serial "
3578 "number (C<serial>) of the call.  These are only useful for debugging "
3579 "protocol issues, and the callback can normally ignore them.  The callback "
3580 "may want to print these numbers in error messages or debugging messages."
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../src/guestfs.pod:1811
3585 msgid "If no callback is registered: progress messages are discarded."
3586 msgstr ""
3587
3588 #. type: =item
3589 #: ../src/guestfs.pod:1813
3590 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3591 msgstr ""
3592
3593 #. type: textblock
3594 #: ../src/guestfs.pod:1816
3595 msgid ""
3596 "The callback function is called whenever a log message is generated by qemu, "
3597 "the appliance kernel, guestfsd (daemon), or utility programs."
3598 msgstr ""
3599
3600 #. type: textblock
3601 #: ../src/guestfs.pod:1819
3602 msgid ""
3603 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3604 "guestfs_launch>) then additional debug messages are generated."
3605 msgstr ""
3606
3607 #. type: textblock
3608 #: ../src/guestfs.pod:1822 ../src/guestfs.pod:1836
3609 msgid ""
3610 "If no callback is registered: the messages are discarded unless the verbose "
3611 "flag is set in which case they are sent to stderr.  You can override the "
3612 "printing of verbose messages to stderr by setting up a callback."
3613 msgstr ""
3614
3615 #. type: =item
3616 #: ../src/guestfs.pod:1827
3617 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3618 msgstr ""
3619
3620 #. type: textblock
3621 #: ../src/guestfs.pod:1830
3622 msgid ""
3623 "The callback function is called whenever a log message is generated by the "
3624 "library part of libguestfs."
3625 msgstr ""
3626
3627 #. type: textblock
3628 #: ../src/guestfs.pod:1833
3629 msgid ""
3630 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3631 "messages are generated."
3632 msgstr ""
3633
3634 #. type: =item
3635 #: ../src/guestfs.pod:1841
3636 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3637 msgstr ""
3638
3639 #. type: textblock
3640 #: ../src/guestfs.pod:1844
3641 msgid ""
3642 "The callback function is called whenever a trace message is generated.  This "
3643 "only applies if the trace flag (L</guestfs_set_trace>) is set."
3644 msgstr ""
3645
3646 #. type: textblock
3647 #: ../src/guestfs.pod:1847
3648 msgid ""
3649 "If no callback is registered: the messages are sent to stderr.  You can "
3650 "override the printing of trace messages to stderr by setting up a callback."
3651 msgstr ""
3652
3653 #. type: =head3
3654 #: ../src/guestfs.pod:1853
3655 msgid "guestfs_set_event_callback"
3656 msgstr ""
3657
3658 #. type: verbatim
3659 #: ../src/guestfs.pod:1855
3660 #, no-wrap
3661 msgid ""
3662 " int guestfs_set_event_callback (guestfs_h *g,\n"
3663 "                                 guestfs_event_callback cb,\n"
3664 "                                 uint64_t event_bitmask,\n"
3665 "                                 int flags,\n"
3666 "                                 void *opaque);\n"
3667 "\n"
3668 msgstr ""
3669
3670 #. type: textblock
3671 #: ../src/guestfs.pod:1861
3672 msgid ""
3673 "This function registers a callback (C<cb>) for all event classes in the "
3674 "C<event_bitmask>."
3675 msgstr ""
3676
3677 #. type: textblock
3678 #: ../src/guestfs.pod:1864
3679 msgid ""
3680 "For example, to register for all log message events, you could call this "
3681 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
3682 "To register a single callback for all possible classes of events, use "
3683 "C<GUESTFS_EVENT_ALL>."
3684 msgstr ""
3685
3686 #. type: textblock
3687 #: ../src/guestfs.pod:1870
3688 msgid "C<flags> should always be passed as 0."
3689 msgstr ""
3690
3691 #. type: textblock
3692 #: ../src/guestfs.pod:1872
3693 msgid ""
3694 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
3695 "it for any purpose."
3696 msgstr ""
3697
3698 #. type: textblock
3699 #: ../src/guestfs.pod:1875
3700 msgid ""
3701 "The return value is the event handle (an integer) which you can use to "
3702 "delete the callback (see below)."
3703 msgstr ""
3704
3705 #. type: textblock
3706 #: ../src/guestfs.pod:1878
3707 msgid ""
3708 "If there is an error, this function returns C<-1>, and sets the error in the "
3709 "handle in the usual way (see L</guestfs_last_error> etc.)"
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../src/guestfs.pod:1881
3714 msgid ""
3715 "Callbacks remain in effect until they are deleted, or until the handle is "
3716 "closed."
3717 msgstr ""
3718
3719 #. type: textblock
3720 #: ../src/guestfs.pod:1884
3721 msgid ""
3722 "In the case where multiple callbacks are registered for a particular event "
3723 "class, all of the callbacks are called.  The order in which multiple "
3724 "callbacks are called is not defined."
3725 msgstr ""
3726
3727 #. type: =head3
3728 #: ../src/guestfs.pod:1888
3729 msgid "guestfs_delete_event_callback"
3730 msgstr ""
3731
3732 #. type: verbatim
3733 #: ../src/guestfs.pod:1890
3734 #, no-wrap
3735 msgid ""
3736 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
3737 "\n"
3738 msgstr ""
3739
3740 #. type: textblock
3741 #: ../src/guestfs.pod:1892
3742 msgid ""
3743 "Delete a callback that was previously registered.  C<event_handle> should be "
3744 "the integer that was returned by a previous call to "
3745 "C<guestfs_set_event_callback> on the same handle."
3746 msgstr ""
3747
3748 #. type: =head3
3749 #: ../src/guestfs.pod:1896
3750 msgid "guestfs_event_callback"
3751 msgstr ""
3752
3753 #. type: verbatim
3754 #: ../src/guestfs.pod:1898
3755 #, no-wrap
3756 msgid ""
3757 " typedef void (*guestfs_event_callback) (\n"
3758 "                  guestfs_h *g,\n"
3759 "                  void *opaque,\n"
3760 "                  uint64_t event,\n"
3761 "                  int event_handle,\n"
3762 "                  int flags,\n"
3763 "                  const char *buf, size_t buf_len,\n"
3764 "                  const uint64_t *array, size_t array_len);\n"
3765 "\n"
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../src/guestfs.pod:1907
3770 msgid ""
3771 "This is the type of the event callback function that you have to provide."
3772 msgstr ""
3773
3774 #. type: textblock
3775 #: ../src/guestfs.pod:1910
3776 msgid ""
3777 "The basic parameters are: the handle (C<g>), the opaque user pointer "
3778 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
3779 "handle, and C<flags> which in the current API you should ignore."
3780 msgstr ""
3781
3782 #. type: textblock
3783 #: ../src/guestfs.pod:1914
3784 msgid ""
3785 "The remaining parameters contain the event payload (if any).  Each event may "
3786 "contain a payload, which usually relates to the event class, but for future "
3787 "proofing your code should be written to handle any payload for any event "
3788 "class."
3789 msgstr ""
3790
3791 #. type: textblock
3792 #: ../src/guestfs.pod:1919
3793 msgid ""
3794 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
3795 "there is no message buffer).  Note that this message buffer can contain "
3796 "arbitrary 8 bit data, including NUL bytes."
3797 msgstr ""
3798
3799 #. type: textblock
3800 #: ../src/guestfs.pod:1923
3801 msgid ""
3802 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
3803 "moment this is only used for progress messages."
3804 msgstr ""
3805
3806 #. type: =head3
3807 #: ../src/guestfs.pod:1926
3808 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
3809 msgstr ""
3810
3811 #. type: textblock
3812 #: ../src/guestfs.pod:1928
3813 msgid ""
3814 "One motivation for the generic event API was to allow GUI programs to "
3815 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
3816 "unconditionally to C<stderr>."
3817 msgstr ""
3818
3819 #. type: textblock
3820 #: ../src/guestfs.pod:1932
3821 msgid ""
3822 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
3823 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
3824 "messages are not events; you must capture error messages separately)."
3825 msgstr ""
3826
3827 #. type: textblock
3828 #: ../src/guestfs.pod:1937
3829 msgid ""
3830 "Programs have to set up a callback to capture the classes of events of "
3831 "interest:"
3832 msgstr ""
3833
3834 #. type: verbatim
3835 #: ../src/guestfs.pod:1940
3836 #, no-wrap
3837 msgid ""
3838 " int eh =\n"
3839 "   guestfs_set_event_callback\n"
3840 "     (g, message_callback,\n"
3841 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
3842 "      GUESTFS_EVENT_TRACE,\n"
3843 "      0, NULL) == -1)\n"
3844 " if (eh == -1) {\n"
3845 "   // handle error in the usual way\n"
3846 " }\n"
3847 "\n"
3848 msgstr ""
3849
3850 #. type: textblock
3851 #: ../src/guestfs.pod:1950
3852 msgid ""
3853 "The callback can then direct messages to the appropriate place.  In this "
3854 "example, messages are directed to syslog:"
3855 msgstr ""
3856
3857 #. type: verbatim
3858 #: ../src/guestfs.pod:1953
3859 #, no-wrap
3860 msgid ""
3861 " static void\n"
3862 " message_callback (\n"
3863 "         guestfs_h *g,\n"
3864 "         void *opaque,\n"
3865 "         uint64_t event,\n"
3866 "         int event_handle,\n"
3867 "         int flags,\n"
3868 "         const char *buf, size_t buf_len,\n"
3869 "         const uint64_t *array, size_t array_len)\n"
3870 " {\n"
3871 "   const int priority = LOG_USER|LOG_INFO;\n"
3872 "   if (buf_len > 0)\n"
3873 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
3874 " }\n"
3875 "\n"
3876 msgstr ""
3877
3878 #. type: =head1
3879 #: ../src/guestfs.pod:1968
3880 msgid "PRIVATE DATA AREA"
3881 msgstr ""
3882
3883 #. type: textblock
3884 #: ../src/guestfs.pod:1970
3885 msgid ""
3886 "You can attach named pieces of private data to the libguestfs handle, fetch "
3887 "them by name, and walk over them, for the lifetime of the handle.  This is "
3888 "called the private data area and is only available from the C API."
3889 msgstr ""
3890
3891 #. type: textblock
3892 #: ../src/guestfs.pod:1975
3893 msgid "To attach a named piece of data, use the following call:"
3894 msgstr ""
3895
3896 #. type: verbatim
3897 #: ../src/guestfs.pod:1977
3898 #, no-wrap
3899 msgid ""
3900 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3901 "\n"
3902 msgstr ""
3903
3904 #. type: textblock
3905 #: ../src/guestfs.pod:1979
3906 msgid ""
3907 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3908 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3909 "overwritten."
3910 msgstr ""
3911
3912 #. type: textblock
3913 #: ../src/guestfs.pod:1983
3914 msgid ""
3915 "You can use any C<key> you want, but names beginning with an underscore "
3916 "character are reserved for internal libguestfs purposes (for implementing "
3917 "language bindings).  It is recommended to prefix the name with some unique "
3918 "string to avoid collisions with other users."
3919 msgstr ""
3920
3921 #. type: textblock
3922 #: ../src/guestfs.pod:1988
3923 msgid "To retrieve the pointer, use:"
3924 msgstr ""
3925
3926 #. type: verbatim
3927 #: ../src/guestfs.pod:1990
3928 #, no-wrap
3929 msgid ""
3930 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3931 "\n"
3932 msgstr ""
3933
3934 #. type: textblock
3935 #: ../src/guestfs.pod:1992
3936 msgid ""
3937 "This function returns C<NULL> if either no data is found associated with "
3938 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3939 "C<NULL>."
3940 msgstr ""
3941
3942 #. type: textblock
3943 #: ../src/guestfs.pod:1996
3944 msgid ""
3945 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3946 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3947 "all.  In particular, libguestfs does I<not> try to free the data when the "
3948 "handle is closed.  If the data must be freed, then the caller must either "
3949 "free it before calling L</guestfs_close> or must set up a close callback to "
3950 "do it (see L</GUESTFS_EVENT_CLOSE>)."
3951 msgstr ""
3952
3953 #. type: textblock
3954 #: ../src/guestfs.pod:2003
3955 msgid "To walk over all entries, use these two functions:"
3956 msgstr ""
3957
3958 #. type: verbatim
3959 #: ../src/guestfs.pod:2005
3960 #, no-wrap
3961 msgid ""
3962 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
3963 "\n"
3964 msgstr ""
3965
3966 #. type: verbatim
3967 #: ../src/guestfs.pod:2007
3968 #, no-wrap
3969 msgid ""
3970 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
3971 "\n"
3972 msgstr ""
3973
3974 #. type: textblock
3975 #: ../src/guestfs.pod:2009
3976 msgid ""
3977 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
3978 "not have any particular meaning -- keys are not returned in any defined "
3979 "order).  A pointer to the key is returned in C<*key_rtn> and the "
3980 "corresponding data pointer is returned from the function.  C<NULL> is "
3981 "returned if there are no keys stored in the handle."
3982 msgstr ""
3983
3984 #. type: textblock
3985 #: ../src/guestfs.pod:2015
3986 msgid ""
3987 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
3988 "value of this function is also C<NULL> is there are no further entries to "
3989 "return."
3990 msgstr ""
3991
3992 #. type: textblock
3993 #: ../src/guestfs.pod:2019
3994 msgid "Notes about walking over entries:"
3995 msgstr ""
3996
3997 #. type: textblock
3998 #: ../src/guestfs.pod:2025
3999 msgid ""
4000 "You must not call C<guestfs_set_private> while walking over the entries."
4001 msgstr ""
4002
4003 #. type: textblock
4004 #: ../src/guestfs.pod:2030
4005 msgid ""
4006 "The handle maintains an internal iterator which is reset when you call "
4007 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
4008 "call C<guestfs_set_private>."
4009 msgstr ""
4010
4011 #. type: textblock
4012 #: ../src/guestfs.pod:2036
4013 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
4014 msgstr ""
4015
4016 #. type: verbatim
4017 #: ../src/guestfs.pod:2038
4018 #, no-wrap
4019 msgid ""
4020 " guestfs_set_private (g, key, NULL);\n"
4021 "\n"
4022 msgstr ""
4023
4024 #. type: textblock
4025 #: ../src/guestfs.pod:2040
4026 msgid "then that C<key> is not returned when walking."
4027 msgstr ""
4028
4029 #. type: textblock
4030 #: ../src/guestfs.pod:2044
4031 msgid ""
4032 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4033 "C<guestfs_next_private> or C<guestfs_set_private>."
4034 msgstr ""
4035
4036 #. type: textblock
4037 #: ../src/guestfs.pod:2050
4038 msgid ""
4039 "The following example code shows how to print all keys and data pointers "
4040 "that are associated with the handle C<g>:"
4041 msgstr ""
4042
4043 #. type: verbatim
4044 #: ../src/guestfs.pod:2053
4045 #, no-wrap
4046 msgid ""
4047 " const char *key;\n"
4048 " void *data = guestfs_first_private (g, &key);\n"
4049 " while (data != NULL)\n"
4050 "   {\n"
4051 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4052 "     data = guestfs_next_private (g, &key);\n"
4053 "   }\n"
4054 "\n"
4055 msgstr ""
4056
4057 #. type: textblock
4058 #: ../src/guestfs.pod:2061
4059 msgid ""
4060 "More commonly you are only interested in keys that begin with an application-"
4061 "specific prefix C<foo_>.  Modify the loop like so:"
4062 msgstr ""
4063
4064 #. type: verbatim
4065 #: ../src/guestfs.pod:2064
4066 #, no-wrap
4067 msgid ""
4068 " const char *key;\n"
4069 " void *data = guestfs_first_private (g, &key);\n"
4070 " while (data != NULL)\n"
4071 "   {\n"
4072 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4073 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4074 "     data = guestfs_next_private (g, &key);\n"
4075 "   }\n"
4076 "\n"
4077 msgstr ""
4078
4079 #. type: textblock
4080 #: ../src/guestfs.pod:2073
4081 msgid ""
4082 "If you need to modify keys while walking, then you have to jump back to the "
4083 "beginning of the loop.  For example, to delete all keys prefixed with "
4084 "C<foo_>:"
4085 msgstr ""
4086
4087 #. type: verbatim
4088 #: ../src/guestfs.pod:2077
4089 #, no-wrap
4090 msgid ""
4091 "  const char *key;\n"
4092 "  void *data;\n"
4093 " again:\n"
4094 "  data = guestfs_first_private (g, &key);\n"
4095 "  while (data != NULL)\n"
4096 "    {\n"
4097 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4098 "        {\n"
4099 "          guestfs_set_private (g, key, NULL);\n"
4100 "          /* note that 'key' pointer is now invalid, and so is\n"
4101 "             the internal iterator */\n"
4102 "          goto again;\n"
4103 "        }\n"
4104 "      data = guestfs_next_private (g, &key);\n"
4105 "    }\n"
4106 "\n"
4107 msgstr ""
4108
4109 #. type: textblock
4110 #: ../src/guestfs.pod:2093
4111 msgid ""
4112 "Note that the above loop is guaranteed to terminate because the keys are "
4113 "being deleted, but other manipulations of keys within the loop might not "
4114 "terminate unless you also maintain an indication of which keys have been "
4115 "visited."
4116 msgstr ""
4117
4118 #. type: =end
4119 #: ../src/guestfs.pod:2098 ../src/guestfs.pod:2103
4120 msgid "html"
4121 msgstr "html"
4122
4123 #. type: textblock
4124 #: ../src/guestfs.pod:2100
4125 msgid ""
4126 "<!-- old anchor for the next section --> <a name="
4127 "\"state_machine_and_low_level_event_api\"/>"
4128 msgstr ""
4129 "<!-- old anchor for the next section --> <a name="
4130 "\"state_machine_and_low_level_event_api\"/>"
4131
4132 #. type: =head1
4133 #: ../src/guestfs.pod:2105
4134 msgid "ARCHITECTURE"
4135 msgstr "АРХІТЕКТУРА"
4136
4137 #. type: textblock
4138 #: ../src/guestfs.pod:2107
4139 msgid ""
4140 "Internally, libguestfs is implemented by running an appliance (a special "
4141 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4142 "process of the main program."
4143 msgstr ""
4144
4145 #. type: verbatim
4146 #: ../src/guestfs.pod:2111
4147 #, no-wrap
4148 msgid ""
4149 "  ___________________\n"
4150 " /                   \\\n"
4151 " | main program      |\n"
4152 " |                   |\n"
4153 " |                   |           child process / appliance\n"
4154 " |                   |           __________________________\n"
4155 " |                   |          / qemu                     \\\n"
4156 " +-------------------+   RPC    |      +-----------------+ |\n"
4157 " | libguestfs     <--------------------> guestfsd        | |\n"
4158 " |                   |          |      +-----------------+ |\n"
4159 " \\___________________/          |      | Linux kernel    | |\n"
4160 "                                |      +--^--------------+ |\n"
4161 "                                \\_________|________________/\n"
4162 "                                          |\n"
4163 "                                   _______v______\n"
4164 "                                  /              \\\n"
4165 "                                  | Device or    |\n"
4166 "                                  | disk image   |\n"
4167 "                                  \\______________/\n"
4168 "\n"
4169 msgstr ""
4170
4171 #. type: textblock
4172 #: ../src/guestfs.pod:2131
4173 msgid ""
4174 "The library, linked to the main program, creates the child process and hence "
4175 "the appliance in the L</guestfs_launch> function."
4176 msgstr ""
4177
4178 #. type: textblock
4179 #: ../src/guestfs.pod:2134
4180 msgid ""
4181 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4182 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4183 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4184 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4185 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4186 "attached to the qemu process which translates device access by the "
4187 "appliance's Linux kernel into accesses to the image."
4188 msgstr ""
4189
4190 #. type: textblock
4191 #: ../src/guestfs.pod:2143
4192 msgid ""
4193 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4194 "Although the disk image you are attached to might also be used by some "
4195 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4196 "care if both libguestfs's qemu process and your virtual machine are trying "
4197 "to update the disk image at the same time, since these usually results in "
4198 "massive disk corruption)."
4199 msgstr ""
4200
4201 #. type: =head1
4202 #: ../src/guestfs.pod:2150
4203 msgid "STATE MACHINE"
4204 msgstr "СКІНЧЕННИЙ АВТОМАТ"
4205
4206 #. type: textblock
4207 #: ../src/guestfs.pod:2152
4208 msgid "libguestfs uses a state machine to model the child process:"
4209 msgstr ""
4210
4211 #. type: verbatim
4212 #: ../src/guestfs.pod:2154
4213 #, no-wrap
4214 msgid ""
4215 "                         |\n"
4216 "                    guestfs_create\n"
4217 "                         |\n"
4218 "                         |\n"
4219 "                     ____V_____\n"
4220 "                    /          \\\n"
4221 "                    |  CONFIG  |\n"
4222 "                    \\__________/\n"
4223 "                     ^ ^   ^  \\\n"
4224 "                    /  |    \\  \\ guestfs_launch\n"
4225 "                   /   |    _\\__V______\n"
4226 "                  /    |   /           \\\n"
4227 "                 /     |   | LAUNCHING |\n"
4228 "                /      |   \\___________/\n"
4229 "               /       |       /\n"
4230 "              /        |  guestfs_launch\n"
4231 "             /         |     /\n"
4232 "    ______  /        __|____V\n"
4233 "   /      \\ ------> /        \\\n"
4234 "   | BUSY |         | READY  |\n"
4235 "   \\______/ <------ \\________/\n"
4236 "\n"
4237 msgstr ""
4238
4239 #. type: textblock
4240 #: ../src/guestfs.pod:2176
4241 msgid ""
4242 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4243 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4244 "(3) alternating between READY and BUSY as commands are issued to, and "
4245 "carried out by, the child process."
4246 msgstr ""
4247
4248 #. type: textblock
4249 #: ../src/guestfs.pod:2181
4250 msgid ""
4251 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4252 "asynchronously at any time (eg. due to some internal error), and that causes "
4253 "the state to transition back to CONFIG."
4254 msgstr ""
4255
4256 #. type: textblock
4257 #: ../src/guestfs.pod:2185
4258 msgid ""
4259 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4260 "issued when in the CONFIG state."
4261 msgstr ""
4262
4263 #. type: textblock
4264 #: ../src/guestfs.pod:2188
4265 msgid ""
4266 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4267 "L</guestfs_launch> blocks until the child process is READY to accept "
4268 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4269 "moves the state from CONFIG to LAUNCHING while it is running."
4270 msgstr ""
4271
4272 #. type: textblock
4273 #: ../src/guestfs.pod:2194
4274 msgid ""
4275 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4276 "state.  These API calls block waiting for the command to be carried out (ie. "
4277 "the state to transition to BUSY and then back to READY).  There are no non-"
4278 "blocking versions, and no way to issue more than one command per handle at "
4279 "the same time."
4280 msgstr ""
4281
4282 #. type: textblock
4283 #: ../src/guestfs.pod:2200
4284 msgid ""
4285 "Finally, the child process sends asynchronous messages back to the main "
4286 "program, such as kernel log messages.  You can register a callback to "
4287 "receive these messages."
4288 msgstr ""
4289
4290 #. type: =head1
4291 #: ../src/guestfs.pod:2204
4292 msgid "INTERNALS"
4293 msgstr ""
4294
4295 #. type: =head2
4296 #: ../src/guestfs.pod:2206
4297 msgid "COMMUNICATION PROTOCOL"
4298 msgstr ""
4299
4300 #. type: textblock
4301 #: ../src/guestfs.pod:2208
4302 msgid ""
4303 "Don't rely on using this protocol directly.  This section documents how it "
4304 "currently works, but it may change at any time."
4305 msgstr ""
4306
4307 #. type: textblock
4308 #: ../src/guestfs.pod:2211
4309 msgid ""
4310 "The protocol used to talk between the library and the daemon running inside "
4311 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4312 "1014, RFC 1832, RFC 4506)."
4313 msgstr ""
4314
4315 #. type: textblock
4316 #: ../src/guestfs.pod:2215
4317 msgid ""
4318 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4319 "this file is automatically generated)."
4320 msgstr ""
4321
4322 #. type: textblock
4323 #: ../src/guestfs.pod:2218
4324 msgid ""
4325 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4326 "and C<FileOut> parameters, which are handled with very simple request/reply "
4327 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4328 "parameters, which use the same request and reply messages, but they may also "
4329 "be followed by files sent using a chunked encoding."
4330 msgstr ""
4331
4332 #. type: =head3
4333 #: ../src/guestfs.pod:2225
4334 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4335 msgstr ""
4336
4337 #. type: textblock
4338 #: ../src/guestfs.pod:2227
4339 msgid "For ordinary functions, the request message is:"
4340 msgstr ""
4341
4342 #. type: verbatim
4343 #: ../src/guestfs.pod:2229
4344 #, no-wrap
4345 msgid ""
4346 " total length (header + arguments,\n"
4347 "      but not including the length word itself)\n"
4348 " struct guestfs_message_header (encoded as XDR)\n"
4349 " struct guestfs_<foo>_args (encoded as XDR)\n"
4350 "\n"
4351 msgstr ""
4352
4353 #. type: textblock
4354 #: ../src/guestfs.pod:2234
4355 msgid ""
4356 "The total length field allows the daemon to allocate a fixed size buffer "
4357 "into which it slurps the rest of the message.  As a result, the total length "
4358 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4359 "effective size of any request is limited to somewhere under this size."
4360 msgstr ""
4361
4362 #. type: textblock
4363 #: ../src/guestfs.pod:2240
4364 msgid ""
4365 "Note also that many functions don't take any arguments, in which case the "
4366 "C<guestfs_I<foo>_args> is completely omitted."
4367 msgstr ""
4368
4369 #. type: textblock
4370 #: ../src/guestfs.pod:2243
4371 msgid ""
4372 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4373 "receiver knows what type of args structure to expect, or none at all."
4374 msgstr ""
4375
4376 #. type: textblock
4377 #: ../src/guestfs.pod:2247
4378 msgid ""
4379 "For functions that take optional arguments, the optional arguments are "
4380 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4381 "arguments.  A bitmask in the header indicates which optional arguments are "
4382 "meaningful.  The bitmask is also checked to see if it contains bits set "
4383 "which the daemon does not know about (eg. if more optional arguments were "
4384 "added in a later version of the library), and this causes the call to be "
4385 "rejected."
4386 msgstr ""
4387
4388 #. type: textblock
4389 #: ../src/guestfs.pod:2255
4390 msgid "The reply message for ordinary functions is:"
4391 msgstr ""
4392
4393 #. type: verbatim
4394 #: ../src/guestfs.pod:2257
4395 #, no-wrap
4396 msgid ""
4397 " total length (header + ret,\n"
4398 "      but not including the length word itself)\n"
4399 " struct guestfs_message_header (encoded as XDR)\n"
4400 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4401 "\n"
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../src/guestfs.pod:2262
4406 msgid ""
4407 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4408 "functions that return no formal return values."
4409 msgstr ""
4410
4411 #. type: textblock
4412 #: ../src/guestfs.pod:2265
4413 msgid ""
4414 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4415 msgstr ""
4416
4417 #. type: textblock
4418 #: ../src/guestfs.pod:2268
4419 msgid ""
4420 "In the case of an error, a flag is set in the header, and the reply message "
4421 "is slightly changed:"
4422 msgstr ""
4423
4424 #. type: verbatim
4425 #: ../src/guestfs.pod:2271
4426 #, no-wrap
4427 msgid ""
4428 " total length (header + error,\n"
4429 "      but not including the length word itself)\n"
4430 " struct guestfs_message_header (encoded as XDR)\n"
4431 " struct guestfs_message_error (encoded as XDR)\n"
4432 "\n"
4433 msgstr ""
4434
4435 #. type: textblock
4436 #: ../src/guestfs.pod:2276
4437 msgid ""
4438 "The C<guestfs_message_error> structure contains the error message as a "
4439 "string."
4440 msgstr ""
4441
4442 #. type: =head3
4443 #: ../src/guestfs.pod:2279
4444 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4445 msgstr ""
4446
4447 #. type: textblock
4448 #: ../src/guestfs.pod:2281
4449 msgid ""
4450 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4451 "The normal request message is sent (see above).  However this is followed by "
4452 "a sequence of file chunks."
4453 msgstr ""
4454
4455 #. type: verbatim
4456 #: ../src/guestfs.pod:2285
4457 #, no-wrap
4458 msgid ""
4459 " total length (header + arguments,\n"
4460 "      but not including the length word itself,\n"
4461 "      and not including the chunks)\n"
4462 " struct guestfs_message_header (encoded as XDR)\n"
4463 " struct guestfs_<foo>_args (encoded as XDR)\n"
4464 " sequence of chunks for FileIn param #0\n"
4465 " sequence of chunks for FileIn param #1 etc.\n"
4466 "\n"
4467 msgstr ""
4468
4469 #. type: textblock
4470 #: ../src/guestfs.pod:2293
4471 msgid "The \"sequence of chunks\" is:"
4472 msgstr ""
4473
4474 #. type: verbatim
4475 #: ../src/guestfs.pod:2295
4476 #, no-wrap
4477 msgid ""
4478 " length of chunk (not including length word itself)\n"
4479 " struct guestfs_chunk (encoded as XDR)\n"
4480 " length of chunk\n"
4481 " struct guestfs_chunk (encoded as XDR)\n"
4482 "   ...\n"
4483 " length of chunk\n"
4484 " struct guestfs_chunk (with data.data_len == 0)\n"
4485 "\n"
4486 msgstr ""
4487
4488 #. type: textblock
4489 #: ../src/guestfs.pod:2303
4490 msgid ""
4491 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4492 "is set in the final chunk to indicate either successful completion or early "
4493 "cancellation."
4494 msgstr ""
4495
4496 #. type: textblock
4497 #: ../src/guestfs.pod:2307
4498 msgid ""
4499 "At time of writing there are no functions that have more than one FileIn "
4500 "parameter.  However this is (theoretically) supported, by sending the "
4501 "sequence of chunks for each FileIn parameter one after another (from left to "
4502 "right)."
4503 msgstr ""
4504
4505 #. type: textblock
4506 #: ../src/guestfs.pod:2312
4507 msgid ""
4508 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4509 "transfer.  The library does this by sending a chunk with a special flag set "
4510 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4511 "RPC, does I<not> send any reply, and goes back to reading the next request."
4512 msgstr ""
4513
4514 #. type: textblock
4515 #: ../src/guestfs.pod:2318
4516 msgid ""
4517 "The daemon may also cancel.  It does this by writing a special word "
4518 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4519 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4520 "cancel chunk).  The special word is chosen so that even if cancellation "
4521 "happens right at the end of the transfer (after the library has finished "
4522 "writing and has started listening for the reply), the \"spurious\" cancel "
4523 "flag will not be confused with the reply message."
4524 msgstr ""
4525
4526 #. type: textblock
4527 #: ../src/guestfs.pod:2327
4528 msgid ""
4529 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4530 "limit), and also files where the size is not known in advance (eg. from "
4531 "pipes or sockets).  However the chunks are rather small "
4532 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4533 "to keep much in memory."
4534 msgstr ""
4535
4536 #. type: =head3
4537 #: ../src/guestfs.pod:2333
4538 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4539 msgstr ""
4540
4541 #. type: textblock
4542 #: ../src/guestfs.pod:2335
4543 msgid ""
4544 "The protocol for FileOut parameters is exactly the same as for FileIn "
4545 "parameters, but with the roles of daemon and library reversed."
4546 msgstr ""
4547
4548 #. type: verbatim
4549 #: ../src/guestfs.pod:2338
4550 #, no-wrap
4551 msgid ""
4552 " total length (header + ret,\n"
4553 "      but not including the length word itself,\n"
4554 "      and not including the chunks)\n"
4555 " struct guestfs_message_header (encoded as XDR)\n"
4556 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4557 " sequence of chunks for FileOut param #0\n"
4558 " sequence of chunks for FileOut param #1 etc.\n"
4559 "\n"
4560 msgstr ""
4561
4562 #. type: =head3
4563 #: ../src/guestfs.pod:2346
4564 msgid "INITIAL MESSAGE"
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../src/guestfs.pod:2348
4569 msgid ""
4570 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4571 "which indicates that the guest and daemon is alive.  This is what L</"
4572 "guestfs_launch> waits for."
4573 msgstr ""
4574
4575 #. type: =head3
4576 #: ../src/guestfs.pod:2352
4577 msgid "PROGRESS NOTIFICATION MESSAGES"
4578 msgstr ""
4579
4580 #. type: textblock
4581 #: ../src/guestfs.pod:2354
4582 msgid ""
4583 "The daemon may send progress notification messages at any time.  These are "
4584 "distinguished by the normal length word being replaced by "
4585 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4586 msgstr ""
4587
4588 #. type: textblock
4589 #: ../src/guestfs.pod:2358
4590 msgid ""
4591 "The library turns them into progress callbacks (see L</"
4592 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
4593 "if not."
4594 msgstr ""
4595
4596 #. type: textblock
4597 #: ../src/guestfs.pod:2362
4598 msgid ""
4599 "The daemon self-limits the frequency of progress messages it sends (see "
4600 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4601 "messages."
4602 msgstr ""
4603
4604 #. type: =head1
4605 #: ../src/guestfs.pod:2366
4606 msgid "LIBGUESTFS VERSION NUMBERS"
4607 msgstr ""
4608
4609 #. type: textblock
4610 #: ../src/guestfs.pod:2368
4611 msgid ""
4612 "Since April 2010, libguestfs has started to make separate development and "
4613 "stable releases, along with corresponding branches in our git repository.  "
4614 "These separate releases can be identified by version number:"
4615 msgstr ""
4616
4617 #. type: verbatim
4618 #: ../src/guestfs.pod:2373
4619 #, no-wrap
4620 msgid ""
4621 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4622 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4623 "       |\n"
4624 "       v\n"
4625 " 1  .  3  .  5\n"
4626 " ^           ^\n"
4627 " |           |\n"
4628 " |           `-------- sub-version\n"
4629 " |\n"
4630 " `------ always '1' because we don't change the ABI\n"
4631 "\n"
4632 msgstr ""
4633
4634 #. type: textblock
4635 #: ../src/guestfs.pod:2384
4636 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4637 msgstr ""
4638
4639 #. type: textblock
4640 #: ../src/guestfs.pod:2386
4641 msgid ""
4642 "As time passes we cherry pick fixes from the development branch and backport "
4643 "those into the stable branch, the effect being that the stable branch should "
4644 "get more stable and less buggy over time.  So the stable releases are ideal "
4645 "for people who don't need new features but would just like the software to "
4646 "work."
4647 msgstr ""
4648
4649 #. type: textblock
4650 #: ../src/guestfs.pod:2392
4651 msgid "Our criteria for backporting changes are:"
4652 msgstr ""
4653
4654 #. type: textblock
4655 #: ../src/guestfs.pod:2398
4656 msgid ""
4657 "Documentation changes which don't affect any code are backported unless the "
4658 "documentation refers to a future feature which is not in stable."
4659 msgstr ""
4660
4661 #. type: textblock
4662 #: ../src/guestfs.pod:2404
4663 msgid ""
4664 "Bug fixes which are not controversial, fix obvious problems, and have been "
4665 "well tested are backported."
4666 msgstr ""
4667
4668 #. type: textblock
4669 #: ../src/guestfs.pod:2409
4670 msgid ""
4671 "Simple rearrangements of code which shouldn't affect how it works get "
4672 "backported.  This is so that the code in the two branches doesn't get too "
4673 "far out of step, allowing us to backport future fixes more easily."
4674 msgstr ""
4675
4676 #. type: textblock
4677 #: ../src/guestfs.pod:2415
4678 msgid ""
4679 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4680 "exceptional case: the new feature is required in order to implement an "
4681 "important bug fix."
4682 msgstr ""
4683
4684 #. type: textblock
4685 #: ../src/guestfs.pod:2421
4686 msgid ""
4687 "A new stable branch starts when we think the new features in development are "
4688 "substantial and compelling enough over the current stable branch to warrant "
4689 "it.  When that happens we create new stable and development versions 1.N.0 "
4690 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4691 "stable at this point, but by backporting fixes from development, that branch "
4692 "will stabilize over time."
4693 msgstr ""
4694
4695 #. type: =head1
4696 #: ../src/guestfs.pod:2429
4697 msgid "EXTENDING LIBGUESTFS"
4698 msgstr ""
4699
4700 #. type: =head2
4701 #: ../src/guestfs.pod:2431
4702 msgid "ADDING A NEW API ACTION"
4703 msgstr ""
4704
4705 #. type: textblock
4706 #: ../src/guestfs.pod:2433
4707 msgid ""
4708 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4709 "documentation) are generated, and this makes it easy to extend the "
4710 "libguestfs API."
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../src/guestfs.pod:2437
4715 msgid "To add a new API action there are two changes:"
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../src/guestfs.pod:2443
4720 msgid ""
4721 "You need to add a description of the call (name, parameters, return type, "
4722 "tests, documentation) to C<generator/generator_actions.ml>."
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../src/guestfs.pod:2446
4727 msgid ""
4728 "There are two sorts of API action, depending on whether the call goes "
4729 "through to the daemon in the appliance, or is serviced entirely by the "
4730 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4731 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4732 "an example of the latter, since a trace flag is maintained in the handle and "
4733 "all tracing is done on the library side."
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../src/guestfs.pod:2454
4738 msgid ""
4739 "Most new actions are of the first type, and get added to the "
4740 "C<daemon_functions> list.  Each function has a unique procedure number used "
4741 "in the RPC protocol which is assigned to that action when we publish "
4742 "libguestfs and cannot be reused.  Take the latest procedure number and "
4743 "increment it."
4744 msgstr ""
4745
4746 #. type: textblock
4747 #: ../src/guestfs.pod:2460
4748 msgid ""
4749 "For library-only actions of the second type, add to the "
4750 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4751 "library and do not travel over the RPC mechanism to the daemon, these "
4752 "functions do not need a procedure number, and so the procedure number is set "
4753 "to C<-1>."
4754 msgstr ""
4755
4756 #. type: textblock
4757 #: ../src/guestfs.pod:2468
4758 msgid "Implement the action (in C):"
4759 msgstr ""
4760
4761 #. type: textblock
4762 #: ../src/guestfs.pod:2470
4763 msgid ""
4764 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4765 "C<daemon/> directory."
4766 msgstr ""
4767
4768 #. type: textblock
4769 #: ../src/guestfs.pod:2473
4770 msgid ""
4771 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4772 "(note: double underscore) in the C<src/> directory."
4773 msgstr ""
4774
4775 #. type: textblock
4776 #: ../src/guestfs.pod:2476
4777 msgid "In either case, use another function as an example of what to do."
4778 msgstr ""
4779
4780 #. type: textblock
4781 #: ../src/guestfs.pod:2480
4782 msgid "After making these changes, use C<make> to compile."
4783 msgstr ""
4784
4785 #. type: textblock
4786 #: ../src/guestfs.pod:2482
4787 msgid ""
4788 "Note that you don't need to implement the RPC, language bindings, manual "
4789 "pages or anything else.  It's all automatically generated from the OCaml "
4790 "description."
4791 msgstr ""
4792
4793 #. type: =head2
4794 #: ../src/guestfs.pod:2486
4795 msgid "ADDING TESTS FOR AN API ACTION"
4796 msgstr ""
4797
4798 #. type: textblock
4799 #: ../src/guestfs.pod:2488
4800 msgid ""
4801 "You can supply zero or as many tests as you want per API call.  The tests "
4802 "can either be added as part of the API description (C<generator/"
4803 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
4804 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
4805 "slower, so if possible use the first method."
4806 msgstr ""
4807
4808 #. type: textblock
4809 #: ../src/guestfs.pod:2494
4810 msgid ""
4811 "The following describes the test environment used when you add an API test "
4812 "in C<generator_actions.ml>."
4813 msgstr ""
4814
4815 #. type: textblock
4816 #: ../src/guestfs.pod:2497
4817 msgid "The test environment has 4 block devices:"
4818 msgstr ""
4819
4820 #. type: =item
4821 #: ../src/guestfs.pod:2501
4822 msgid "C</dev/sda> 500MB"
4823 msgstr ""
4824
4825 #. type: textblock
4826 #: ../src/guestfs.pod:2503
4827 msgid "General block device for testing."
4828 msgstr ""
4829
4830 #. type: =item
4831 #: ../src/guestfs.pod:2505
4832 msgid "C</dev/sdb> 50MB"
4833 msgstr ""
4834
4835 #. type: textblock
4836 #: ../src/guestfs.pod:2507
4837 msgid ""
4838 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4839 "operations."
4840 msgstr ""
4841
4842 #. type: =item
4843 #: ../src/guestfs.pod:2510
4844 msgid "C</dev/sdc> 10MB"
4845 msgstr ""
4846
4847 #. type: textblock
4848 #: ../src/guestfs.pod:2512
4849 msgid "Used in a few tests where two block devices are needed."
4850 msgstr ""
4851
4852 #. type: =item
4853 #: ../src/guestfs.pod:2514
4854 msgid "C</dev/sdd>"
4855 msgstr "C</dev/sdd>"
4856
4857 #. type: textblock
4858 #: ../src/guestfs.pod:2516
4859 msgid "ISO with fixed content (see C<images/test.iso>)."
4860 msgstr ""
4861
4862 #. type: textblock
4863 #: ../src/guestfs.pod:2520
4864 msgid ""
4865 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4866 "appliance and block devices are reused between tests.  So don't try testing "
4867 "L</guestfs_kill_subprocess> :-x"
4868 msgstr ""
4869
4870 #. type: textblock
4871 #: ../src/guestfs.pod:2524
4872 msgid ""
4873 "Each test starts with an initial scenario, selected using one of the "
4874 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4875 "initialize the disks mentioned above in a particular way as documented in "
4876 "C<generator_types.ml>.  You should not assume anything about the previous "
4877 "contents of other disks that are not initialized."
4878 msgstr ""
4879
4880 #. type: textblock
4881 #: ../src/guestfs.pod:2530
4882 msgid ""
4883 "You can add a prerequisite clause to any individual test.  This is a run-"
4884 "time check, which, if it fails, causes the test to be skipped.  Useful if "
4885 "testing a command which might not work on all variations of libguestfs "
4886 "builds.  A test that has prerequisite of C<Always> means to run "
4887 "unconditionally."
4888 msgstr ""
4889
4890 #. type: textblock
4891 #: ../src/guestfs.pod:2536
4892 msgid ""
4893 "In addition, packagers can skip individual tests by setting environment "
4894 "variables before running C<make check>."
4895 msgstr ""
4896
4897 #. type: verbatim
4898 #: ../src/guestfs.pod:2539
4899 #, no-wrap
4900 msgid ""
4901 " SKIP_TEST_<CMD>_<NUM>=1\n"
4902 "\n"
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../src/guestfs.pod:2541
4907 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4908 msgstr ""
4909
4910 #. type: textblock
4911 #: ../src/guestfs.pod:2543
4912 msgid "or:"
4913 msgstr "або:"
4914
4915 #. type: verbatim
4916 #: ../src/guestfs.pod:2545
4917 #, no-wrap
4918 msgid ""
4919 " SKIP_TEST_<CMD>=1\n"
4920 "\n"
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../src/guestfs.pod:2547
4925 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4926 msgstr ""
4927
4928 #. type: textblock
4929 #: ../src/guestfs.pod:2549
4930 msgid "Packagers can run only certain tests by setting for example:"
4931 msgstr ""
4932
4933 #. type: verbatim
4934 #: ../src/guestfs.pod:2551
4935 #, no-wrap
4936 msgid ""
4937 " TEST_ONLY=\"vfs_type zerofree\"\n"
4938 "\n"
4939 msgstr ""
4940
4941 #. type: textblock
4942 #: ../src/guestfs.pod:2553
4943 msgid ""
4944 "See C<capitests/tests.c> for more details of how these environment variables "
4945 "work."
4946 msgstr ""
4947
4948 #. type: =head2
4949 #: ../src/guestfs.pod:2556
4950 msgid "DEBUGGING NEW API ACTIONS"
4951 msgstr ""
4952
4953 #. type: textblock
4954 #: ../src/guestfs.pod:2558
4955 msgid "Test new actions work before submitting them."
4956 msgstr ""
4957
4958 #. type: textblock
4959 #: ../src/guestfs.pod:2560
4960 msgid "You can use guestfish to try out new commands."
4961 msgstr ""
4962
4963 #. type: textblock
4964 #: ../src/guestfs.pod:2562
4965 msgid ""
4966 "Debugging the daemon is a problem because it runs inside a minimal "
4967 "environment.  However you can fprintf messages in the daemon to stderr, and "
4968 "they will show up if you use C<guestfish -v>."
4969 msgstr ""
4970
4971 #. type: =head2
4972 #: ../src/guestfs.pod:2566
4973 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4974 msgstr ""
4975
4976 #. type: textblock
4977 #: ../src/guestfs.pod:2568
4978 msgid ""
4979 "Our C source code generally adheres to some basic code-formatting "
4980 "conventions.  The existing code base is not totally consistent on this "
4981 "front, but we do prefer that contributed code be formatted similarly.  In "
4982 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4983 "indentation level, and other than that, follow the K&R style."
4984 msgstr ""
4985
4986 #. type: textblock
4987 #: ../src/guestfs.pod:2574
4988 msgid ""
4989 "If you use Emacs, add the following to one of one of your start-up files (e."
4990 "g., ~/.emacs), to help ensure that you get indentation right:"
4991 msgstr ""
4992
4993 #. type: verbatim
4994 #: ../src/guestfs.pod:2577
4995 #, no-wrap
4996 msgid ""
4997 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4998 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4999 " (add-hook 'find-file-hook\n"
5000 "     '(lambda () (if (and buffer-file-name\n"
5001 "                          (string-match \"/libguestfs\\\\>\"\n"
5002 "                              (buffer-file-name))\n"
5003 "                          (not (string-equal mode-name \"Change Log\"))\n"
5004 "                          (not (string-equal mode-name \"Makefile\")))\n"
5005 "                     (setq indent-tabs-mode nil))))\n"
5006 " \n"
5007 msgstr ""
5008
5009 #. type: verbatim
5010 #: ../src/guestfs.pod:2587
5011 #, no-wrap
5012 msgid ""
5013 " ;;; When editing C sources in libguestfs, use this style.\n"
5014 " (defun libguestfs-c-mode ()\n"
5015 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
5016 "   (interactive)\n"
5017 "   (c-set-style \"K&R\")\n"
5018 "   (setq c-indent-level 2)\n"
5019 "   (setq c-basic-offset 2))\n"
5020 " (add-hook 'c-mode-hook\n"
5021 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
5022 "                               (buffer-file-name))\n"
5023 "                           (libguestfs-c-mode))))\n"
5024 "\n"
5025 msgstr ""
5026
5027 #. type: textblock
5028 #: ../src/guestfs.pod:2599
5029 msgid "Enable warnings when compiling (and fix any problems this finds):"
5030 msgstr ""
5031
5032 #. type: verbatim
5033 #: ../src/guestfs.pod:2602
5034 #, no-wrap
5035 msgid ""
5036 " ./configure --enable-gcc-warnings\n"
5037 "\n"
5038 msgstr ""
5039
5040 #. type: textblock
5041 #: ../src/guestfs.pod:2604
5042 msgid "Useful targets are:"
5043 msgstr ""
5044
5045 #. type: verbatim
5046 #: ../src/guestfs.pod:2606
5047 #, no-wrap
5048 msgid ""
5049 " make syntax-check  # checks the syntax of the C code\n"
5050 " make check         # runs the test suite\n"
5051 "\n"
5052 msgstr ""
5053
5054 #. type: =head2
5055 #: ../src/guestfs.pod:2609
5056 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5057 msgstr ""
5058
5059 #. type: textblock
5060 #: ../src/guestfs.pod:2611
5061 msgid ""
5062 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5063 "which are used to do shell quoting."
5064 msgstr ""
5065
5066 #. type: =item
5067 #: ../src/guestfs.pod:2616
5068 msgid "%Q"
5069 msgstr "%Q"
5070
5071 #. type: textblock
5072 #: ../src/guestfs.pod:2618
5073 msgid ""
5074 "Simple shell quoted string.  Any spaces or other shell characters are "
5075 "escaped for you."
5076 msgstr ""
5077
5078 #. type: =item
5079 #: ../src/guestfs.pod:2621
5080 msgid "%R"
5081 msgstr "%R"
5082
5083 #. type: textblock
5084 #: ../src/guestfs.pod:2623
5085 msgid ""
5086 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5087 "the sysroot."
5088 msgstr ""
5089
5090 #. type: textblock
5091 #: ../src/guestfs.pod:2628 ../fish/guestfish.pod:240 ../fish/guestfish.pod:613
5092 msgid "For example:"
5093 msgstr "Приклад:"
5094
5095 #. type: verbatim
5096 #: ../src/guestfs.pod:2630
5097 #, no-wrap
5098 msgid ""
5099 " asprintf (&cmd, \"cat %R\", path);\n"
5100 "\n"
5101 msgstr ""
5102
5103 #. type: textblock
5104 #: ../src/guestfs.pod:2632
5105 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../src/guestfs.pod:2634
5110 msgid ""
5111 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5112 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5113 "they are not passed via the shell (instead, straight to exec).  You probably "
5114 "want to use the C<sysroot_path()> function however."
5115 msgstr ""
5116
5117 #. type: =head2
5118 #: ../src/guestfs.pod:2640
5119 msgid "SUBMITTING YOUR NEW API ACTIONS"
5120 msgstr ""
5121
5122 #. type: textblock
5123 #: ../src/guestfs.pod:2642
5124 msgid ""
5125 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5126 "libguestfs> and CC to L<rjones@redhat.com>."
5127 msgstr ""
5128
5129 #. type: =head2
5130 #: ../src/guestfs.pod:2646
5131 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5132 msgstr ""
5133
5134 #. type: textblock
5135 #: ../src/guestfs.pod:2648
5136 msgid "We support i18n (gettext anyhow) in the library."
5137 msgstr ""
5138
5139 #. type: textblock
5140 #: ../src/guestfs.pod:2650
5141 msgid ""
5142 "However many messages come from the daemon, and we don't translate those at "
5143 "the moment.  One reason is that the appliance generally has all locale files "
5144 "removed from it, because they take up a lot of space.  So we'd have to readd "
5145 "some of those, as well as copying our PO files into the appliance."
5146 msgstr ""
5147
5148 #. type: textblock
5149 #: ../src/guestfs.pod:2656
5150 msgid ""
5151 "Debugging messages are never translated, since they are intended for the "
5152 "programmers."
5153 msgstr ""
5154
5155 #. type: =head2
5156 #: ../src/guestfs.pod:2659
5157 msgid "SOURCE CODE SUBDIRECTORIES"
5158 msgstr ""
5159
5160 #. type: =item
5161 #: ../src/guestfs.pod:2663 ../src/guestfs-actions.pod:5806
5162 #: ../fish/guestfish-actions.pod:3900
5163 msgid "C<appliance>"
5164 msgstr "C<appliance>"
5165
5166 #. type: textblock
5167 #: ../src/guestfs.pod:2665
5168 msgid "The libguestfs appliance, build scripts and so on."
5169 msgstr ""
5170
5171 #. type: =item
5172 #: ../src/guestfs.pod:2667
5173 msgid "C<capitests>"
5174 msgstr "C<capitests>"
5175
5176 #. type: textblock
5177 #: ../src/guestfs.pod:2669
5178 msgid "Automated tests of the C API."
5179 msgstr ""
5180
5181 #. type: =item
5182 #: ../src/guestfs.pod:2671
5183 msgid "C<cat>"
5184 msgstr "C<cat>"
5185
5186 #. type: textblock
5187 #: ../src/guestfs.pod:2673
5188 msgid ""
5189 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5190 "documentation."
5191 msgstr ""
5192
5193 #. type: =item
5194 #: ../src/guestfs.pod:2676
5195 msgid "C<contrib>"
5196 msgstr "C<contrib>"
5197
5198 #. type: textblock
5199 #: ../src/guestfs.pod:2678
5200 msgid "Outside contributions, experimental parts."
5201 msgstr ""
5202
5203 #. type: =item
5204 #: ../src/guestfs.pod:2680
5205 msgid "C<daemon>"
5206 msgstr "C<daemon>"
5207
5208 #. type: textblock
5209 #: ../src/guestfs.pod:2682
5210 msgid ""
5211 "The daemon that runs inside the libguestfs appliance and carries out actions."
5212 msgstr ""
5213
5214 #. type: =item
5215 #: ../src/guestfs.pod:2685
5216 msgid "C<df>"
5217 msgstr "C<df>"
5218
5219 #. type: textblock
5220 #: ../src/guestfs.pod:2687
5221 msgid "L<virt-df(1)> command and documentation."
5222 msgstr ""
5223
5224 #. type: =item
5225 #: ../src/guestfs.pod:2689
5226 msgid "C<examples>"
5227 msgstr "C<examples>"
5228
5229 #. type: textblock
5230 #: ../src/guestfs.pod:2691
5231 msgid "C API example code."
5232 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
5233
5234 #. type: =item
5235 #: ../src/guestfs.pod:2693
5236 msgid "C<fish>"
5237 msgstr "C<fish>"
5238
5239 #. type: textblock
5240 #: ../src/guestfs.pod:2695
5241 msgid ""
5242 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5243 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5244 "L<virt-tar-out(1)>."
5245 msgstr ""
5246
5247 #. type: =item
5248 #: ../src/guestfs.pod:2699
5249 msgid "C<fuse>"
5250 msgstr "C<fuse>"
5251
5252 #. type: textblock
5253 #: ../src/guestfs.pod:2701
5254 msgid ""
5255 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5256 msgstr ""
5257
5258 #. type: =item
5259 #: ../src/guestfs.pod:2703
5260 msgid "C<generator>"
5261 msgstr "C<generator>"
5262
5263 #. type: textblock
5264 #: ../src/guestfs.pod:2705
5265 msgid ""
5266 "The crucially important generator, used to automatically generate large "
5267 "amounts of boilerplate C code for things like RPC and bindings."
5268 msgstr ""
5269
5270 #. type: =item
5271 #: ../src/guestfs.pod:2708
5272 msgid "C<images>"
5273 msgstr "C<images>"
5274
5275 #. type: textblock
5276 #: ../src/guestfs.pod:2710
5277 msgid "Files used by the test suite."
5278 msgstr ""
5279
5280 #. type: textblock
5281 #: ../src/guestfs.pod:2712
5282 msgid "Some \"phony\" guest images which we test against."
5283 msgstr ""
5284
5285 #. type: =item
5286 #: ../src/guestfs.pod:2714
5287 msgid "C<inspector>"
5288 msgstr "C<inspector>"
5289
5290 #. type: textblock
5291 #: ../src/guestfs.pod:2716
5292 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5293 msgstr ""
5294
5295 #. type: =item
5296 #: ../src/guestfs.pod:2718
5297 msgid "C<logo>"
5298 msgstr "C<logo>"
5299
5300 #. type: textblock
5301 #: ../src/guestfs.pod:2720
5302 msgid "Logo used on the website.  The fish is called Arthur by the way."
5303 msgstr ""
5304
5305 #. type: =item
5306 #: ../src/guestfs.pod:2722
5307 msgid "C<m4>"
5308 msgstr "C<m4>"
5309
5310 #. type: textblock
5311 #: ../src/guestfs.pod:2724
5312 msgid "M4 macros used by autoconf."
5313 msgstr ""
5314
5315 #. type: =item
5316 #: ../src/guestfs.pod:2726
5317 msgid "C<po>"
5318 msgstr "C<po>"
5319
5320 #. type: textblock
5321 #: ../src/guestfs.pod:2728
5322 msgid "Translations of simple gettext strings."
5323 msgstr "Переклади простих рядків gettext."
5324
5325 #. type: =item
5326 #: ../src/guestfs.pod:2730
5327 msgid "C<po-docs>"
5328 msgstr "C<po-docs>"
5329
5330 #. type: textblock
5331 #: ../src/guestfs.pod:2732
5332 msgid ""
5333 "The build infrastructure and PO files for translations of manpages and POD "
5334 "files.  Eventually this will be combined with the C<po> directory, but that "
5335 "is rather complicated."
5336 msgstr ""
5337
5338 #. type: =item
5339 #: ../src/guestfs.pod:2736
5340 msgid "C<regressions>"
5341 msgstr "C<regressions>"
5342
5343 #. type: textblock
5344 #: ../src/guestfs.pod:2738
5345 msgid "Regression tests."
5346 msgstr "Тести на регресії."
5347
5348 #. type: =item
5349 #: ../src/guestfs.pod:2740
5350 msgid "C<rescue>"
5351 msgstr "C<rescue>"
5352
5353 #. type: textblock
5354 #: ../src/guestfs.pod:2742
5355 msgid "L<virt-rescue(1)> command and documentation."
5356 msgstr ""
5357
5358 #. type: =item
5359 #: ../src/guestfs.pod:2744
5360 msgid "C<src>"
5361 msgstr "C<src>"
5362
5363 #. type: textblock
5364 #: ../src/guestfs.pod:2746
5365 msgid "Source code to the C library."
5366 msgstr ""
5367
5368 #. type: =item
5369 #: ../src/guestfs.pod:2748
5370 msgid "C<tools>"
5371 msgstr "C<tools>"
5372
5373 #. type: textblock
5374 #: ../src/guestfs.pod:2750
5375 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5376 msgstr ""
5377
5378 #. type: =item
5379 #: ../src/guestfs.pod:2752
5380 msgid "C<test-tool>"
5381 msgstr "C<test-tool>"
5382
5383 #. type: textblock
5384 #: ../src/guestfs.pod:2754
5385 msgid ""
5386 "Test tool for end users to test if their qemu/kernel combination will work "
5387 "with libguestfs."
5388 msgstr ""
5389
5390 #. type: =item
5391 #: ../src/guestfs.pod:2757
5392 msgid "C<csharp>"
5393 msgstr "C<csharp>"
5394
5395 #. type: =item
5396 #: ../src/guestfs.pod:2759
5397 msgid "C<haskell>"
5398 msgstr "C<haskell>"
5399
5400 #. type: =item
5401 #: ../src/guestfs.pod:2761
5402 msgid "C<java>"
5403 msgstr "C<java>"
5404
5405 #. type: =item
5406 #: ../src/guestfs.pod:2763
5407 msgid "C<ocaml>"
5408 msgstr "C<ocaml>"
5409
5410 #. type: =item
5411 #: ../src/guestfs.pod:2765
5412 msgid "C<php>"
5413 msgstr "C<php>"
5414
5415 #. type: =item
5416 #: ../src/guestfs.pod:2767
5417 msgid "C<perl>"
5418 msgstr "C<perl>"
5419
5420 #. type: =item
5421 #: ../src/guestfs.pod:2769
5422 msgid "C<python>"
5423 msgstr "C<python>"
5424
5425 #. type: =item
5426 #: ../src/guestfs.pod:2771
5427 msgid "C<ruby>"
5428 msgstr "C<ruby>"
5429
5430 #. type: textblock
5431 #: ../src/guestfs.pod:2773
5432 msgid "Language bindings."
5433 msgstr "Прив’язки до мов програмування."
5434
5435 #. type: =head1
5436 #: ../src/guestfs.pod:2777 ../fish/guestfish.pod:1010
5437 #: ../test-tool/libguestfs-test-tool.pod:82 ../tools/virt-edit.pl:476
5438 msgid "ENVIRONMENT VARIABLES"
5439 msgstr "ЗМІННІ СЕРЕДОВИЩА"
5440
5441 #. type: =item
5442 #: ../src/guestfs.pod:2781 ../fish/guestfish.pod:1036
5443 msgid "LIBGUESTFS_APPEND"
5444 msgstr ""
5445
5446 #. type: textblock
5447 #: ../src/guestfs.pod:2783 ../fish/guestfish.pod:1038
5448 msgid "Pass additional options to the guest kernel."
5449 msgstr ""
5450
5451 #. type: =item
5452 #: ../src/guestfs.pod:2785 ../fish/guestfish.pod:1040
5453 msgid "LIBGUESTFS_DEBUG"
5454 msgstr ""
5455
5456 #. type: textblock
5457 #: ../src/guestfs.pod:2787
5458 msgid ""
5459 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5460 "effect as calling C<guestfs_set_verbose (g, 1)>."
5461 msgstr ""
5462
5463 #. type: =item
5464 #: ../src/guestfs.pod:2790 ../fish/guestfish.pod:1045
5465 msgid "LIBGUESTFS_MEMSIZE"
5466 msgstr ""
5467
5468 #. type: textblock
5469 #: ../src/guestfs.pod:2792 ../fish/guestfish.pod:1047
5470 msgid ""
5471 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5472 msgstr ""
5473
5474 #. type: verbatim
5475 #: ../src/guestfs.pod:2795 ../fish/guestfish.pod:1050
5476 #, no-wrap
5477 msgid ""
5478 " LIBGUESTFS_MEMSIZE=700\n"
5479 "\n"
5480 msgstr ""
5481
5482 #. type: =item
5483 #: ../src/guestfs.pod:2797 ../fish/guestfish.pod:1052
5484 msgid "LIBGUESTFS_PATH"
5485 msgstr ""
5486
5487 #. type: textblock
5488 #: ../src/guestfs.pod:2799
5489 msgid ""
5490 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5491 "the discussion of paths in section L</PATH> above."
5492 msgstr ""
5493
5494 #. type: =item
5495 #: ../src/guestfs.pod:2802 ../fish/guestfish.pod:1057
5496 msgid "LIBGUESTFS_QEMU"
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../src/guestfs.pod:2804 ../fish/guestfish.pod:1059
5501 msgid ""
5502 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5503 "which was found at compile time by the configure script is used."
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../src/guestfs.pod:2808
5508 msgid "See also L</QEMU WRAPPERS> above."
5509 msgstr ""
5510
5511 #. type: =item
5512 #: ../src/guestfs.pod:2810 ../fish/guestfish.pod:1063
5513 msgid "LIBGUESTFS_TRACE"
5514 msgstr ""
5515
5516 #. type: textblock
5517 #: ../src/guestfs.pod:2812
5518 msgid ""
5519 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5520 "effect as calling C<guestfs_set_trace (g, 1)>."
5521 msgstr ""
5522
5523 #. type: =item
5524 #: ../src/guestfs.pod:2815 ../fish/guestfish.pod:1072
5525 msgid "TMPDIR"
5526 msgstr ""
5527
5528 #. type: textblock
5529 #: ../src/guestfs.pod:2817 ../fish/guestfish.pod:1074
5530 msgid ""
5531 "Location of temporary directory, defaults to C</tmp> except for the cached "
5532 "supermin appliance which defaults to C</var/tmp>."
5533 msgstr ""
5534
5535 #. type: textblock
5536 #: ../src/guestfs.pod:2820 ../fish/guestfish.pod:1077
5537 msgid ""
5538 "If libguestfs was compiled to use the supermin appliance then the real "
5539 "appliance is cached in this directory, shared between all handles belonging "
5540 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5541 "use in case C</var/tmp> is not large enough."
5542 msgstr ""
5543
5544 #. type: =head1
5545 #: ../src/guestfs.pod:2828 ../fish/guestfish.pod:1144
5546 #: ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:267
5547 #: ../tools/virt-edit.pl:496 ../tools/virt-win-reg.pl:572
5548 #: ../tools/virt-list-filesystems.pl:189 ../tools/virt-tar.pl:286
5549 #: ../tools/virt-make-fs.pl:539 ../tools/virt-list-partitions.pl:257
5550 msgid "SEE ALSO"
5551 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
5552
5553 #. type: textblock
5554 #: ../src/guestfs.pod:2830
5555 msgid ""
5556 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
5557 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
5558 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
5559 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
5560 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
5561 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
5562 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
5563 msgstr ""
5564
5565 #. type: textblock
5566 #: ../src/guestfs.pod:2857
5567 msgid ""
5568 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
5569 "(8)>, L<disktype(1)>."
5570 msgstr ""
5571
5572 #. type: =head1
5573 #: ../src/guestfs.pod:2864 ../tools/virt-win-reg.pl:587
5574 #: ../tools/virt-make-fs.pl:553
5575 msgid "BUGS"
5576 msgstr "ВАДИ"
5577
5578 #. type: textblock
5579 #: ../src/guestfs.pod:2866
5580 msgid "To get a list of bugs against libguestfs use this link:"
5581 msgstr ""
5582 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
5583 "посиланням:"
5584
5585 #. type: textblock
5586 #: ../src/guestfs.pod:2868
5587 msgid ""
5588 "L<https://bugzilla.redhat.com/buglist.cgi?"
5589 "component=libguestfs&product=Virtualization+Tools>"
5590 msgstr ""
5591 "L<https://bugzilla.redhat.com/buglist.cgi?"
5592 "component=libguestfs&product=Virtualization+Tools>"
5593
5594 #. type: textblock
5595 #: ../src/guestfs.pod:2870
5596 msgid "To report a new bug against libguestfs use this link:"
5597 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
5598
5599 #. type: textblock
5600 #: ../src/guestfs.pod:2872
5601 msgid ""
5602 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5603 "component=libguestfs&product=Virtualization+Tools>"
5604 msgstr ""
5605 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5606 "component=libguestfs&product=Virtualization+Tools>"
5607
5608 #. type: textblock
5609 #: ../src/guestfs.pod:2874
5610 msgid "When reporting a bug, please check:"
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../src/guestfs.pod:2880
5615 msgid "That the bug hasn't been reported already."
5616 msgstr ""
5617
5618 #. type: textblock
5619 #: ../src/guestfs.pod:2884
5620 msgid "That you are testing a recent version."
5621 msgstr ""
5622
5623 #. type: textblock
5624 #: ../src/guestfs.pod:2888
5625 msgid "Describe the bug accurately, and give a way to reproduce it."
5626 msgstr ""
5627
5628 #. type: textblock
5629 #: ../src/guestfs.pod:2892
5630 msgid ""
5631 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5632 "bug report."
5633 msgstr ""
5634
5635 #. type: =head1
5636 #: ../src/guestfs.pod:2897 ../fish/guestfish.pod:1167
5637 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:278
5638 msgid "AUTHORS"
5639 msgstr "АВТОРИ"
5640
5641 #. type: textblock
5642 #: ../src/guestfs.pod:2899 ../fish/guestfish.pod:1169
5643 #: ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:280
5644 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5645 msgstr ""
5646
5647 #. type: =head1
5648 #: ../src/guestfs.pod:2901 ../fish/guestfish.pod:1171
5649 #: ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:282
5650 #: ../tools/virt-edit.pl:514 ../tools/virt-win-reg.pl:602
5651 #: ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:305
5652 #: ../tools/virt-make-fs.pl:568 ../tools/virt-list-partitions.pl:273
5653 msgid "COPYRIGHT"
5654 msgstr "АВТОРСЬКІ ПРАВА"
5655
5656 #. type: textblock
5657 #: ../src/guestfs.pod:2903 ../fish/guestfish.pod:1173
5658 #: ../test-tool/libguestfs-test-tool.pod:99
5659 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../src/guestfs.pod:2906
5664 msgid ""
5665 "This library is free software; you can redistribute it and/or modify it "
5666 "under the terms of the GNU Lesser General Public License as published by the "
5667 "Free Software Foundation; either version 2 of the License, or (at your "
5668 "option) any later version."
5669 msgstr ""
5670
5671 #. type: textblock
5672 #: ../src/guestfs.pod:2911
5673 msgid ""
5674 "This library is distributed in the hope that it will be useful, but WITHOUT "
5675 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5676 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5677 "for more details."
5678 msgstr ""
5679
5680 #. type: textblock
5681 #: ../src/guestfs.pod:2916
5682 msgid ""
5683 "You should have received a copy of the GNU Lesser General Public License "
5684 "along with this library; if not, write to the Free Software Foundation, "
5685 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5686 msgstr ""
5687
5688 #. type: =head2
5689 #: ../src/guestfs-actions.pod:1
5690 msgid "guestfs_add_cdrom"
5691 msgstr ""
5692
5693 #. type: verbatim
5694 #: ../src/guestfs-actions.pod:3
5695 #, no-wrap
5696 msgid ""
5697 " int\n"
5698 " guestfs_add_cdrom (guestfs_h *g,\n"
5699 "                    const char *filename);\n"
5700 "\n"
5701 msgstr ""
5702
5703 #. type: textblock
5704 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5705 msgid "This function adds a virtual CD-ROM disk image to the guest."
5706 msgstr ""
5707
5708 #. type: textblock
5709 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5710 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
5711 msgstr ""
5712
5713 #. type: textblock
5714 #: ../src/guestfs-actions.pod:17
5715 msgid ""
5716 "This call checks for the existence of C<filename>.  This stops you from "
5717 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5718 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5719 "instead."
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../src/guestfs-actions.pod:24
5724 msgid ""
5725 "If you just want to add an ISO file (often you use this as an efficient way "
5726 "to transfer large files into the guest), then you should probably use "
5727 "C<guestfs_add_drive_ro> instead."
5728 msgstr ""
5729
5730 #. type: textblock
5731 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:134
5732 #: ../src/guestfs-actions.pod:195 ../src/guestfs-actions.pod:232
5733 #: ../src/guestfs-actions.pod:246 ../src/guestfs-actions.pod:267
5734 #: ../src/guestfs-actions.pod:287 ../src/guestfs-actions.pod:301
5735 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:436
5736 #: ../src/guestfs-actions.pod:450 ../src/guestfs-actions.pod:495
5737 #: ../src/guestfs-actions.pod:523 ../src/guestfs-actions.pod:541
5738 #: ../src/guestfs-actions.pod:608 ../src/guestfs-actions.pod:641
5739 #: ../src/guestfs-actions.pod:655 ../src/guestfs-actions.pod:670
5740 #: ../src/guestfs-actions.pod:769 ../src/guestfs-actions.pod:787
5741 #: ../src/guestfs-actions.pod:801 ../src/guestfs-actions.pod:815
5742 #: ../src/guestfs-actions.pod:976 ../src/guestfs-actions.pod:996
5743 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1098
5744 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:1135
5745 #: ../src/guestfs-actions.pod:1149 ../src/guestfs-actions.pod:1169
5746 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1270
5747 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1337
5748 #: ../src/guestfs-actions.pod:1443 ../src/guestfs-actions.pod:1477
5749 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1717
5750 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2266
5751 #: ../src/guestfs-actions.pod:2410 ../src/guestfs-actions.pod:2471
5752 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:3451
5753 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3491
5754 #: ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3660
5755 #: ../src/guestfs-actions.pod:3673 ../src/guestfs-actions.pod:3687
5756 #: ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:3738
5757 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:3830
5758 #: ../src/guestfs-actions.pod:3847 ../src/guestfs-actions.pod:3870
5759 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3925
5760 #: ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3963
5761 #: ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4010
5762 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4062
5763 #: ../src/guestfs-actions.pod:4075 ../src/guestfs-actions.pod:4090
5764 #: ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:4200
5765 #: ../src/guestfs-actions.pod:4220 ../src/guestfs-actions.pod:4233
5766 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:4302
5767 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4336
5768 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4364
5769 #: ../src/guestfs-actions.pod:4381 ../src/guestfs-actions.pod:4396
5770 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:4474
5771 #: ../src/guestfs-actions.pod:4547 ../src/guestfs-actions.pod:4578
5772 #: ../src/guestfs-actions.pod:4597 ../src/guestfs-actions.pod:4616
5773 #: ../src/guestfs-actions.pod:4628 ../src/guestfs-actions.pod:4645
5774 #: ../src/guestfs-actions.pod:4658 ../src/guestfs-actions.pod:4673
5775 #: ../src/guestfs-actions.pod:4688 ../src/guestfs-actions.pod:4723
5776 #: ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4758
5777 #: ../src/guestfs-actions.pod:4772 ../src/guestfs-actions.pod:4789
5778 #: ../src/guestfs-actions.pod:4838 ../src/guestfs-actions.pod:4875
5779 #: ../src/guestfs-actions.pod:4889 ../src/guestfs-actions.pod:4917
5780 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4952
5781 #: ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5143
5782 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5183
5783 #: ../src/guestfs-actions.pod:5215 ../src/guestfs-actions.pod:5281
5784 #: ../src/guestfs-actions.pod:5298 ../src/guestfs-actions.pod:5311
5785 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5614
5786 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5652
5787 #: ../src/guestfs-actions.pod:5664 ../src/guestfs-actions.pod:5676
5788 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5702
5789 #: ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5732
5790 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5772
5791 #: ../src/guestfs-actions.pod:5791 ../src/guestfs-actions.pod:5821
5792 #: ../src/guestfs-actions.pod:5837 ../src/guestfs-actions.pod:5860
5793 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:5897
5794 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5937
5795 #: ../src/guestfs-actions.pod:5954 ../src/guestfs-actions.pod:5982
5796 #: ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6025
5797 #: ../src/guestfs-actions.pod:6049 ../src/guestfs-actions.pod:6068
5798 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6102
5799 #: ../src/guestfs-actions.pod:6139 ../src/guestfs-actions.pod:6162
5800 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6296
5801 #: ../src/guestfs-actions.pod:6417 ../src/guestfs-actions.pod:6429
5802 #: ../src/guestfs-actions.pod:6442 ../src/guestfs-actions.pod:6455
5803 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6490
5804 #: ../src/guestfs-actions.pod:6503 ../src/guestfs-actions.pod:6516
5805 #: ../src/guestfs-actions.pod:6531 ../src/guestfs-actions.pod:6590
5806 #: ../src/guestfs-actions.pod:6607 ../src/guestfs-actions.pod:6623
5807 #: ../src/guestfs-actions.pod:6639 ../src/guestfs-actions.pod:6656
5808 #: ../src/guestfs-actions.pod:6669 ../src/guestfs-actions.pod:6689
5809 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-actions.pod:6739
5810 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6793
5811 #: ../src/guestfs-actions.pod:6811 ../src/guestfs-actions.pod:6845
5812 #: ../src/guestfs-actions.pod:6881 ../src/guestfs-actions.pod:7000
5813 #: ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7032
5814 #: ../src/guestfs-actions.pod:7087 ../src/guestfs-actions.pod:7100
5815 #: ../src/guestfs-actions.pod:7145 ../src/guestfs-actions.pod:7178
5816 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7258
5817 #: ../src/guestfs-actions.pod:7324 ../src/guestfs-actions.pod:7343
5818 #: ../src/guestfs-actions.pod:7372
5819 msgid "This function returns 0 on success or -1 on error."
5820 msgstr ""
5821
5822 #. type: textblock
5823 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:248
5824 #: ../src/guestfs-actions.pod:269 ../fish/guestfish-actions.pod:28
5825 #: ../fish/guestfish-actions.pod:158 ../fish/guestfish-actions.pod:172
5826 msgid ""
5827 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
5828 "instead."
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:251
5833 #: ../src/guestfs-actions.pod:272 ../src/guestfs-actions.pod:1448
5834 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:1965
5835 #: ../src/guestfs-actions.pod:4421 ../src/guestfs-actions.pod:7266
5836 #: ../src/guestfs-actions.pod:7435 ../fish/guestfish-actions.pod:31
5837 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:175
5838 #: ../fish/guestfish-actions.pod:956 ../fish/guestfish-actions.pod:1319
5839 #: ../fish/guestfish-actions.pod:1333 ../fish/guestfish-actions.pod:3000
5840 #: ../fish/guestfish-actions.pod:4858 ../fish/guestfish-actions.pod:4955
5841 msgid ""
5842 "Deprecated functions will not be removed from the API, but the fact that "
5843 "they are deprecated indicates that there are problems with correct use of "
5844 "these functions."
5845 msgstr ""
5846
5847 #. type: textblock
5848 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:136
5849 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1916
5850 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2117
5851 #: ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:3473
5852 #: ../src/guestfs-actions.pod:4725 ../src/guestfs-actions.pod:5839
5853 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6070
5854 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6658
5855 #: ../src/guestfs-actions.pod:7180
5856 msgid "(Added in 0.3)"
5857 msgstr ""
5858
5859 #. type: =head2
5860 #: ../src/guestfs-actions.pod:41
5861 msgid "guestfs_add_domain"
5862 msgstr ""
5863
5864 #. type: verbatim
5865 #: ../src/guestfs-actions.pod:43
5866 #, no-wrap
5867 msgid ""
5868 " int\n"
5869 " guestfs_add_domain (guestfs_h *g,\n"
5870 "                     const char *dom,\n"
5871 "                     ...);\n"
5872 "\n"
5873 msgstr ""
5874
5875 #. type: textblock
5876 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:145
5877 #: ../src/guestfs-actions.pod:4435
5878 msgid ""
5879 "You may supply a list of optional arguments to this call.  Use zero or more "
5880 "of the following pairs of parameters, and terminate the list with C<-1> on "
5881 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
5882 msgstr ""
5883
5884 #. type: verbatim
5885 #: ../src/guestfs-actions.pod:53
5886 #, no-wrap
5887 msgid ""
5888 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
5889 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
5890 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
5891 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
5892 "\n"
5893 msgstr ""
5894
5895 #. type: textblock
5896 #: ../src/guestfs-actions.pod:58
5897 msgid ""
5898 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5899 "It works by connecting to libvirt, requesting the domain and domain XML from "
5900 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
5901 "one."
5902 msgstr ""
5903
5904 #. type: textblock
5905 #: ../src/guestfs-actions.pod:63 ../fish/guestfish-actions.pod:46
5906 msgid ""
5907 "The number of disks added is returned.  This operation is atomic: if an "
5908 "error is returned, then no disks are added."
5909 msgstr ""
5910
5911 #. type: textblock
5912 #: ../src/guestfs-actions.pod:66 ../fish/guestfish-actions.pod:49
5913 msgid ""
5914 "This function does some minimal checks to make sure the libvirt domain is "
5915 "not running (unless C<readonly> is true).  In a future version we will try "
5916 "to acquire the libvirt lock on each disk."
5917 msgstr ""
5918
5919 #. type: textblock
5920 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:53
5921 msgid ""
5922 "Disks must be accessible locally.  This often means that adding disks from a "
5923 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5924 "unless those disks are accessible via the same device path locally too."
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../src/guestfs-actions.pod:75 ../fish/guestfish-actions.pod:58
5929 msgid ""
5930 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5931 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5932 "libvirt URI (or one set through an environment variable, see the libvirt "
5933 "documentation for full details)."
5934 msgstr ""
5935
5936 #. type: textblock
5937 #: ../src/guestfs-actions.pod:81 ../fish/guestfish-actions.pod:64
5938 msgid ""
5939 "The optional C<live> flag controls whether this call will try to connect to "
5940 "a running virtual machine C<guestfsd> process if it sees a suitable "
5941 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5942 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5943 "DAEMONS> for more information."
5944 msgstr ""
5945
5946 #. type: textblock
5947 #: ../src/guestfs-actions.pod:88
5948 msgid ""
5949 "The other optional parameters are passed directly through to "
5950 "C<guestfs_add_drive_opts>."
5951 msgstr ""
5952
5953 #. type: textblock
5954 #: ../src/guestfs-actions.pod:91 ../src/guestfs-actions.pod:344
5955 #: ../src/guestfs-actions.pod:509 ../src/guestfs-actions.pod:687
5956 #: ../src/guestfs-actions.pod:718 ../src/guestfs-actions.pod:736
5957 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:1315
5958 #: ../src/guestfs-actions.pod:1674 ../src/guestfs-actions.pod:1877
5959 #: ../src/guestfs-actions.pod:1986 ../src/guestfs-actions.pod:2026
5960 #: ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:2104
5961 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2772
5962 #: ../src/guestfs-actions.pod:2793 ../src/guestfs-actions.pod:4861
5963 #: ../src/guestfs-actions.pod:4989 ../src/guestfs-actions.pod:5395
5964 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:6766
5965 #: ../src/guestfs-actions.pod:7191 ../src/guestfs-actions.pod:7204
5966 #: ../src/guestfs-actions.pod:7217
5967 msgid "On error this function returns -1."
5968 msgstr ""
5969
5970 #. type: textblock
5971 #: ../src/guestfs-actions.pod:93
5972 msgid "(Added in 1.7.4)"
5973 msgstr ""
5974
5975 #. type: =head2
5976 #: ../src/guestfs-actions.pod:95
5977 msgid "guestfs_add_domain_va"
5978 msgstr ""
5979
5980 #. type: verbatim
5981 #: ../src/guestfs-actions.pod:97
5982 #, no-wrap
5983 msgid ""
5984 " int\n"
5985 " guestfs_add_domain_va (guestfs_h *g,\n"
5986 "                        const char *dom,\n"
5987 "                        va_list args);\n"
5988 "\n"
5989 msgstr ""
5990
5991 #. type: textblock
5992 #: ../src/guestfs-actions.pod:102
5993 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
5994 msgstr ""
5995
5996 #. type: textblock
5997 #: ../src/guestfs-actions.pod:104 ../src/guestfs-actions.pod:115
5998 #: ../src/guestfs-actions.pod:208 ../src/guestfs-actions.pod:219
5999 #: ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4500
6000 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6001 msgstr ""
6002
6003 #. type: =head2
6004 #: ../src/guestfs-actions.pod:106
6005 msgid "guestfs_add_domain_argv"
6006 msgstr ""
6007
6008 #. type: verbatim
6009 #: ../src/guestfs-actions.pod:108
6010 #, no-wrap
6011 msgid ""
6012 " int\n"
6013 " guestfs_add_domain_argv (guestfs_h *g,\n"
6014 "                          const char *dom,\n"
6015 "                          const struct guestfs_add_domain_argv *optargs);\n"
6016 "\n"
6017 msgstr ""
6018
6019 #. type: textblock
6020 #: ../src/guestfs-actions.pod:113
6021 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6022 msgstr ""
6023
6024 #. type: =head2
6025 #: ../src/guestfs-actions.pod:117
6026 msgid "guestfs_add_drive"
6027 msgstr ""
6028
6029 #. type: verbatim
6030 #: ../src/guestfs-actions.pod:119
6031 #, no-wrap
6032 msgid ""
6033 " int\n"
6034 " guestfs_add_drive (guestfs_h *g,\n"
6035 "                    const char *filename);\n"
6036 "\n"
6037 msgstr ""
6038
6039 #. type: textblock
6040 #: ../src/guestfs-actions.pod:123
6041 msgid ""
6042 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6043 "optional parameters, so the disk is added writable, with the format being "
6044 "detected automatically."
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../src/guestfs-actions.pod:127
6049 msgid ""
6050 "Automatic detection of the format opens you up to a potential security hole "
6051 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6052 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6053 "you should think about replacing calls to this function with calls to "
6054 "C<guestfs_add_drive_opts>, and specifying the format."
6055 msgstr ""
6056
6057 #. type: =head2
6058 #: ../src/guestfs-actions.pod:138
6059 msgid "guestfs_add_drive_opts"
6060 msgstr ""
6061
6062 #. type: verbatim
6063 #: ../src/guestfs-actions.pod:140
6064 #, no-wrap
6065 msgid ""
6066 " int\n"
6067 " guestfs_add_drive_opts (guestfs_h *g,\n"
6068 "                         const char *filename,\n"
6069 "                         ...);\n"
6070 "\n"
6071 msgstr ""
6072
6073 #. type: verbatim
6074 #: ../src/guestfs-actions.pod:150
6075 #, no-wrap
6076 msgid ""
6077 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6078 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6079 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6080 "\n"
6081 msgstr ""
6082
6083 #. type: textblock
6084 #: ../src/guestfs-actions.pod:154 ../fish/guestfish-actions.pod:97
6085 msgid ""
6086 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6087 "The first time you call this function, the disk appears as C</dev/sda>, the "
6088 "second time as C</dev/sdb>, and so on."
6089 msgstr ""
6090
6091 #. type: textblock
6092 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:102
6093 msgid ""
6094 "You don't necessarily need to be root when using libguestfs.  However you "
6095 "obviously do need sufficient permissions to access the filename for whatever "
6096 "operations you want to perform (ie. read access if you just want to read the "
6097 "image or write access if you want to modify the image)."
6098 msgstr ""
6099
6100 #. type: textblock
6101 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:108
6102 msgid "This call checks that C<filename> exists."
6103 msgstr ""
6104
6105 #. type: textblock
6106 #: ../src/guestfs-actions.pod:167 ../src/guestfs-actions.pod:4446
6107 #: ../fish/guestfish-actions.pod:110 ../fish/guestfish-actions.pod:3011
6108 msgid "The optional arguments are:"
6109 msgstr ""
6110
6111 #. type: =item
6112 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:114
6113 msgid "C<readonly>"
6114 msgstr "C<readonly>"
6115
6116 #. type: textblock
6117 #: ../src/guestfs-actions.pod:173 ../fish/guestfish-actions.pod:116
6118 msgid ""
6119 "If true then the image is treated as read-only.  Writes are still allowed, "
6120 "but they are stored in a temporary snapshot overlay which is discarded at "
6121 "the end.  The disk that you add is not modified."
6122 msgstr ""
6123
6124 #. type: =item
6125 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:120
6126 msgid "C<format>"
6127 msgstr "C<format>"
6128
6129 #. type: textblock
6130 #: ../src/guestfs-actions.pod:179
6131 msgid ""
6132 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6133 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6134 "Possible formats include C<raw> and C<qcow2>."
6135 msgstr ""
6136
6137 #. type: textblock
6138 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:126
6139 msgid ""
6140 "Automatic detection of the format opens you up to a potential security hole "
6141 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6142 "RHBZ#642934.  Specifying the format closes this security hole."
6143 msgstr ""
6144
6145 #. type: =item
6146 #: ../src/guestfs-actions.pod:188 ../fish/guestfish-actions.pod:131
6147 msgid "C<iface>"
6148 msgstr "C<iface>"
6149
6150 #. type: textblock
6151 #: ../src/guestfs-actions.pod:190
6152 msgid ""
6153 "This rarely-used option lets you emulate the behaviour of the deprecated "
6154 "C<guestfs_add_drive_with_if> call (q.v.)"
6155 msgstr ""
6156
6157 #. type: textblock
6158 #: ../src/guestfs-actions.pod:197
6159 msgid "(Added in 1.5.23)"
6160 msgstr ""
6161
6162 #. type: =head2
6163 #: ../src/guestfs-actions.pod:199
6164 msgid "guestfs_add_drive_opts_va"
6165 msgstr ""
6166
6167 #. type: verbatim
6168 #: ../src/guestfs-actions.pod:201
6169 #, no-wrap
6170 msgid ""
6171 " int\n"
6172 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6173 "                            const char *filename,\n"
6174 "                            va_list args);\n"
6175 "\n"
6176 msgstr ""
6177
6178 #. type: textblock
6179 #: ../src/guestfs-actions.pod:206
6180 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6181 msgstr ""
6182
6183 #. type: =head2
6184 #: ../src/guestfs-actions.pod:210
6185 msgid "guestfs_add_drive_opts_argv"
6186 msgstr ""
6187
6188 #. type: verbatim
6189 #: ../src/guestfs-actions.pod:212
6190 #, no-wrap
6191 msgid ""
6192 " int\n"
6193 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6194 "                              const char *filename,\n"
6195 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6196 "\n"
6197 msgstr ""
6198
6199 #. type: textblock
6200 #: ../src/guestfs-actions.pod:217
6201 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6202 msgstr ""
6203
6204 #. type: =head2
6205 #: ../src/guestfs-actions.pod:221
6206 msgid "guestfs_add_drive_ro"
6207 msgstr ""
6208
6209 #. type: verbatim
6210 #: ../src/guestfs-actions.pod:223
6211 #, no-wrap
6212 msgid ""
6213 " int\n"
6214 " guestfs_add_drive_ro (guestfs_h *g,\n"
6215 "                       const char *filename);\n"
6216 "\n"
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../src/guestfs-actions.pod:227
6221 msgid ""
6222 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6223 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6224 "disk is added read-only, with the format being detected automatically."
6225 msgstr ""
6226
6227 #. type: textblock
6228 #: ../src/guestfs-actions.pod:234
6229 msgid "(Added in 1.0.38)"
6230 msgstr ""
6231
6232 #. type: =head2
6233 #: ../src/guestfs-actions.pod:236
6234 msgid "guestfs_add_drive_ro_with_if"
6235 msgstr ""
6236
6237 #. type: verbatim
6238 #: ../src/guestfs-actions.pod:238
6239 #, no-wrap
6240 msgid ""
6241 " int\n"
6242 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6243 "                               const char *filename,\n"
6244 "                               const char *iface);\n"
6245 "\n"
6246 msgstr ""
6247
6248 #. type: textblock
6249 #: ../src/guestfs-actions.pod:243
6250 msgid ""
6251 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6252 "QEMU interface emulation to use at run time."
6253 msgstr ""
6254
6255 #. type: textblock
6256 #: ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:276
6257 #: ../src/guestfs-actions.pod:2356
6258 msgid "(Added in 1.0.84)"
6259 msgstr ""
6260
6261 #. type: =head2
6262 #: ../src/guestfs-actions.pod:257
6263 msgid "guestfs_add_drive_with_if"
6264 msgstr ""
6265
6266 #. type: verbatim
6267 #: ../src/guestfs-actions.pod:259
6268 #, no-wrap
6269 msgid ""
6270 " int\n"
6271 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6272 "                            const char *filename,\n"
6273 "                            const char *iface);\n"
6274 "\n"
6275 msgstr ""
6276
6277 #. type: textblock
6278 #: ../src/guestfs-actions.pod:264
6279 msgid ""
6280 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6281 "QEMU interface emulation to use at run time."
6282 msgstr ""
6283
6284 #. type: =head2
6285 #: ../src/guestfs-actions.pod:278
6286 msgid "guestfs_aug_clear"
6287 msgstr ""
6288
6289 #. type: verbatim
6290 #: ../src/guestfs-actions.pod:280
6291 #, no-wrap
6292 msgid ""
6293 " int\n"
6294 " guestfs_aug_clear (guestfs_h *g,\n"
6295 "                    const char *augpath);\n"
6296 "\n"
6297 msgstr ""
6298
6299 #. type: textblock
6300 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:183
6301 msgid ""
6302 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6303 "L<augtool(1)> C<clear> command."
6304 msgstr ""
6305
6306 #. type: textblock
6307 #: ../src/guestfs-actions.pod:289 ../src/guestfs-actions.pod:2106
6308 msgid "(Added in 1.3.4)"
6309 msgstr ""
6310
6311 #. type: =head2
6312 #: ../src/guestfs-actions.pod:291
6313 msgid "guestfs_aug_close"
6314 msgstr ""
6315
6316 #. type: verbatim
6317 #: ../src/guestfs-actions.pod:293
6318 #, no-wrap
6319 msgid ""
6320 " int\n"
6321 " guestfs_aug_close (guestfs_h *g);\n"
6322 "\n"
6323 msgstr ""
6324
6325 #. type: textblock
6326 #: ../src/guestfs-actions.pod:296
6327 msgid ""
6328 "Close the current Augeas handle and free up any resources used by it.  After "
6329 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6330 "any other Augeas functions."
6331 msgstr ""
6332
6333 #. type: textblock
6334 #: ../src/guestfs-actions.pod:303 ../src/guestfs-actions.pod:328
6335 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
6336 #: ../src/guestfs-actions.pod:418 ../src/guestfs-actions.pod:438
6337 #: ../src/guestfs-actions.pod:452 ../src/guestfs-actions.pod:483
6338 #: ../src/guestfs-actions.pod:497 ../src/guestfs-actions.pod:511
6339 #: ../src/guestfs-actions.pod:525 ../src/guestfs-actions.pod:543
6340 #: ../src/guestfs-actions.pod:5472
6341 msgid "(Added in 0.7)"
6342 msgstr ""
6343
6344 #. type: =head2
6345 #: ../src/guestfs-actions.pod:305
6346 msgid "guestfs_aug_defnode"
6347 msgstr ""
6348
6349 #. type: verbatim
6350 #: ../src/guestfs-actions.pod:307
6351 #, no-wrap
6352 msgid ""
6353 " struct guestfs_int_bool *\n"
6354 " guestfs_aug_defnode (guestfs_h *g,\n"
6355 "                      const char *name,\n"
6356 "                      const char *expr,\n"
6357 "                      const char *val);\n"
6358 "\n"
6359 msgstr ""
6360
6361 #. type: textblock
6362 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:199
6363 msgid ""
6364 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6365 msgstr ""
6366
6367 #. type: textblock
6368 #: ../src/guestfs-actions.pod:316
6369 msgid ""
6370 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6371 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6372 "containing that single node."
6373 msgstr ""
6374
6375 #. type: textblock
6376 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:206
6377 msgid ""
6378 "On success this returns a pair containing the number of nodes in the "
6379 "nodeset, and a boolean flag if a node was created."
6380 msgstr ""
6381
6382 #. type: textblock
6383 #: ../src/guestfs-actions.pod:324
6384 msgid ""
6385 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6386 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6387 msgstr ""
6388
6389 #. type: =head2
6390 #: ../src/guestfs-actions.pod:330
6391 msgid "guestfs_aug_defvar"
6392 msgstr ""
6393
6394 #. type: verbatim
6395 #: ../src/guestfs-actions.pod:332
6396 #, no-wrap
6397 msgid ""
6398 " int\n"
6399 " guestfs_aug_defvar (guestfs_h *g,\n"
6400 "                     const char *name,\n"
6401 "                     const char *expr);\n"
6402 "\n"
6403 msgstr ""
6404
6405 #. type: textblock
6406 #: ../src/guestfs-actions.pod:337 ../fish/guestfish-actions.pod:214
6407 msgid ""
6408 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6409 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6410 msgstr ""
6411
6412 #. type: textblock
6413 #: ../src/guestfs-actions.pod:341 ../fish/guestfish-actions.pod:218
6414 msgid ""
6415 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6416 "evaluates to something which is not a nodeset."
6417 msgstr ""
6418
6419 #. type: =head2
6420 #: ../src/guestfs-actions.pod:348
6421 msgid "guestfs_aug_get"
6422 msgstr ""
6423
6424 #. type: verbatim
6425 #: ../src/guestfs-actions.pod:350
6426 #, no-wrap
6427 msgid ""
6428 " char *\n"
6429 " guestfs_aug_get (guestfs_h *g,\n"
6430 "                  const char *augpath);\n"
6431 "\n"
6432 msgstr ""
6433
6434 #. type: textblock
6435 #: ../src/guestfs-actions.pod:354 ../fish/guestfish-actions.pod:225
6436 msgid ""
6437 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6438 "node, the C<value> is returned."
6439 msgstr ""
6440
6441 #. type: textblock
6442 #: ../src/guestfs-actions.pod:357 ../src/guestfs-actions.pod:857
6443 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:935
6444 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1054
6445 #: ../src/guestfs-actions.pod:1184 ../src/guestfs-actions.pod:1201
6446 #: ../src/guestfs-actions.pod:1220 ../src/guestfs-actions.pod:1354
6447 #: ../src/guestfs-actions.pod:1545 ../src/guestfs-actions.pod:1657
6448 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1837
6449 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1938
6450 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2129
6451 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2528
6452 #: ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2724
6453 #: ../src/guestfs-actions.pod:2744 ../src/guestfs-actions.pod:2864
6454 #: ../src/guestfs-actions.pod:2895 ../src/guestfs-actions.pod:2919
6455 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3016
6456 #: ../src/guestfs-actions.pod:3039 ../src/guestfs-actions.pod:3060
6457 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3982
6458 #: ../src/guestfs-actions.pod:4152 ../src/guestfs-actions.pod:4262
6459 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5200
6460 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5548
6461 #: ../src/guestfs-actions.pod:5597 ../src/guestfs-actions.pod:6209
6462 #: ../src/guestfs-actions.pod:6225 ../src/guestfs-actions.pod:6242
6463 #: ../src/guestfs-actions.pod:6266 ../src/guestfs-actions.pod:6940
6464 #: ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6977
6465 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7429
6466 msgid ""
6467 "This function returns a string, or NULL on error.  I<The caller must free "
6468 "the returned string after use>."
6469 msgstr ""
6470
6471 #. type: =head2
6472 #: ../src/guestfs-actions.pod:362
6473 msgid "guestfs_aug_init"
6474 msgstr ""
6475
6476 #. type: verbatim
6477 #: ../src/guestfs-actions.pod:364
6478 #, no-wrap
6479 msgid ""
6480 " int\n"
6481 " guestfs_aug_init (guestfs_h *g,\n"
6482 "                   const char *root,\n"
6483 "                   int flags);\n"
6484 "\n"
6485 msgstr ""
6486
6487 #. type: textblock
6488 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:232
6489 msgid ""
6490 "Create a new Augeas handle for editing configuration files.  If there was "
6491 "any previous Augeas handle associated with this guestfs session, then it is "
6492 "closed."
6493 msgstr ""
6494
6495 #. type: textblock
6496 #: ../src/guestfs-actions.pod:373
6497 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6498 msgstr ""
6499
6500 #. type: textblock
6501 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:239
6502 msgid ""
6503 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6504 msgstr ""
6505
6506 #. type: textblock
6507 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:242
6508 msgid ""
6509 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6510 "logical I<or> of the following integers:"
6511 msgstr ""
6512
6513 #. type: =item
6514 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:248
6515 msgid "C<AUG_SAVE_BACKUP> = 1"
6516 msgstr "C<AUG_SAVE_BACKUP> = 1"
6517
6518 #. type: textblock
6519 #: ../src/guestfs-actions.pod:387 ../fish/guestfish-actions.pod:250
6520 msgid "Keep the original file with a C<.augsave> extension."
6521 msgstr ""
6522
6523 #. type: =item
6524 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:252
6525 msgid "C<AUG_SAVE_NEWFILE> = 2"
6526 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6527
6528 #. type: textblock
6529 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:254
6530 msgid ""
6531 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6532 "original.  Overrides C<AUG_SAVE_BACKUP>."
6533 msgstr ""
6534
6535 #. type: =item
6536 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:257
6537 msgid "C<AUG_TYPE_CHECK> = 4"
6538 msgstr "C<AUG_TYPE_CHECK> = 4"
6539
6540 #. type: textblock
6541 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:259
6542 msgid "Typecheck lenses (can be expensive)."
6543 msgstr ""
6544
6545 #. type: =item
6546 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:261
6547 msgid "C<AUG_NO_STDINC> = 8"
6548 msgstr "C<AUG_NO_STDINC> = 8"
6549
6550 #. type: textblock
6551 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:263
6552 msgid "Do not use standard load path for modules."
6553 msgstr ""
6554
6555 #. type: =item
6556 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:265
6557 msgid "C<AUG_SAVE_NOOP> = 16"
6558 msgstr "C<AUG_SAVE_NOOP> = 16"
6559
6560 #. type: textblock
6561 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:267
6562 msgid "Make save a no-op, just record what would have been changed."
6563 msgstr ""
6564
6565 #. type: =item
6566 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:269
6567 msgid "C<AUG_NO_LOAD> = 32"
6568 msgstr "C<AUG_NO_LOAD> = 32"
6569
6570 #. type: textblock
6571 #: ../src/guestfs-actions.pod:408
6572 msgid "Do not load the tree in C<guestfs_aug_init>."
6573 msgstr ""
6574
6575 #. type: textblock
6576 #: ../src/guestfs-actions.pod:412
6577 msgid "To close the handle, you can call C<guestfs_aug_close>."
6578 msgstr ""
6579
6580 #. type: textblock
6581 #: ../src/guestfs-actions.pod:414 ../fish/guestfish-actions.pod:277
6582 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6583 msgstr ""
6584
6585 #. type: =head2
6586 #: ../src/guestfs-actions.pod:420
6587 msgid "guestfs_aug_insert"
6588 msgstr ""
6589
6590 #. type: verbatim
6591 #: ../src/guestfs-actions.pod:422
6592 #, no-wrap
6593 msgid ""
6594 " int\n"
6595 " guestfs_aug_insert (guestfs_h *g,\n"
6596 "                     const char *augpath,\n"
6597 "                     const char *label,\n"
6598 "                     int before);\n"
6599 "\n"
6600 msgstr ""
6601
6602 #. type: textblock
6603 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:283
6604 msgid ""
6605 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6606 "or after C<path> (depending on the boolean flag C<before>)."
6607 msgstr ""
6608
6609 #. type: textblock
6610 #: ../src/guestfs-actions.pod:432 ../fish/guestfish-actions.pod:287
6611 msgid ""
6612 "C<path> must match exactly one existing node in the tree, and C<label> must "
6613 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6614 msgstr ""
6615
6616 #. type: =head2
6617 #: ../src/guestfs-actions.pod:440
6618 msgid "guestfs_aug_load"
6619 msgstr ""
6620
6621 #. type: verbatim
6622 #: ../src/guestfs-actions.pod:442
6623 #, no-wrap
6624 msgid ""
6625 " int\n"
6626 " guestfs_aug_load (guestfs_h *g);\n"
6627 "\n"
6628 msgstr ""
6629
6630 #. type: textblock
6631 #: ../src/guestfs-actions.pod:445 ../fish/guestfish-actions.pod:295
6632 msgid "Load files into the tree."
6633 msgstr "Завантажити файли до ієрархії."
6634
6635 #. type: textblock
6636 #: ../src/guestfs-actions.pod:447 ../fish/guestfish-actions.pod:297
6637 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6638 msgstr ""
6639
6640 #. type: =head2
6641 #: ../src/guestfs-actions.pod:454
6642 msgid "guestfs_aug_ls"
6643 msgstr ""
6644
6645 #. type: verbatim
6646 #: ../src/guestfs-actions.pod:456
6647 #, no-wrap
6648 msgid ""
6649 " char **\n"
6650 " guestfs_aug_ls (guestfs_h *g,\n"
6651 "                 const char *augpath);\n"
6652 "\n"
6653 msgstr ""
6654
6655 #. type: textblock
6656 #: ../src/guestfs-actions.pod:460
6657 msgid ""
6658 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6659 "sorting the resulting nodes into alphabetical order."
6660 msgstr ""
6661
6662 #. type: textblock
6663 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:479
6664 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:1073
6665 #: ../src/guestfs-actions.pod:1369 ../src/guestfs-actions.pod:1388
6666 #: ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:1510
6667 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:2201
6668 #: ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2236
6669 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2303
6670 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2423
6671 #: ../src/guestfs-actions.pod:2682 ../src/guestfs-actions.pod:2973
6672 #: ../src/guestfs-actions.pod:3262 ../src/guestfs-actions.pod:3552
6673 #: ../src/guestfs-actions.pod:3614 ../src/guestfs-actions.pod:3719
6674 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4822
6675 #: ../src/guestfs-actions.pod:5342 ../src/guestfs-actions.pod:5468
6676 #: ../src/guestfs-actions.pod:5582 ../src/guestfs-actions.pod:6282
6677 #: ../src/guestfs-actions.pod:6343 ../src/guestfs-actions.pod:6398
6678 #: ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6568
6679 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7070
6680 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7282
6681 #: ../src/guestfs-actions.pod:7301 ../src/guestfs-actions.pod:7386
6682 #: ../src/guestfs-actions.pod:7405 ../src/guestfs-actions.pod:7451
6683 #: ../src/guestfs-actions.pod:7470
6684 msgid ""
6685 "This function returns a NULL-terminated array of strings (like L<environ(3)"
6686 ">), or NULL if there was an error.  I<The caller must free the strings and "
6687 "the array after use>."
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:998
6692 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1426
6693 #: ../src/guestfs-actions.pod:3340 ../src/guestfs-actions.pod:3371
6694 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4015
6695 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4235
6696 #: ../src/guestfs-actions.pod:4398 ../src/guestfs-actions.pod:4826
6697 #: ../src/guestfs-actions.pod:5283 ../src/guestfs-actions.pod:5678
6698 #: ../src/guestfs-actions.pod:5692 ../src/guestfs-actions.pod:5704
6699 #: ../src/guestfs-actions.pod:6144 ../src/guestfs-actions.pod:6782
6700 #: ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:7034
6701 #: ../src/guestfs-actions.pod:7270
6702 msgid "(Added in 0.8)"
6703 msgstr ""
6704
6705 #. type: =head2
6706 #: ../src/guestfs-actions.pod:469
6707 msgid "guestfs_aug_match"
6708 msgstr ""
6709
6710 #. type: verbatim
6711 #: ../src/guestfs-actions.pod:471
6712 #, no-wrap
6713 msgid ""
6714 " char **\n"
6715 " guestfs_aug_match (guestfs_h *g,\n"
6716 "                    const char *augpath);\n"
6717 "\n"
6718 msgstr ""
6719
6720 #. type: textblock
6721 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:311
6722 msgid ""
6723 "Returns a list of paths which match the path expression C<path>.  The "
6724 "returned paths are sufficiently qualified so that they match exactly one "
6725 "node in the current tree."
6726 msgstr ""
6727
6728 #. type: =head2
6729 #: ../src/guestfs-actions.pod:485
6730 msgid "guestfs_aug_mv"
6731 msgstr ""
6732
6733 #. type: verbatim
6734 #: ../src/guestfs-actions.pod:487
6735 #, no-wrap
6736 msgid ""
6737 " int\n"
6738 " guestfs_aug_mv (guestfs_h *g,\n"
6739 "                 const char *src,\n"
6740 "                 const char *dest);\n"
6741 "\n"
6742 msgstr ""
6743
6744 #. type: textblock
6745 #: ../src/guestfs-actions.pod:492 ../fish/guestfish-actions.pod:319
6746 msgid ""
6747 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6748 "C<dest> is overwritten if it exists."
6749 msgstr ""
6750
6751 #. type: =head2
6752 #: ../src/guestfs-actions.pod:499
6753 msgid "guestfs_aug_rm"
6754 msgstr ""
6755
6756 #. type: verbatim
6757 #: ../src/guestfs-actions.pod:501
6758 #, no-wrap
6759 msgid ""
6760 " int\n"
6761 " guestfs_aug_rm (guestfs_h *g,\n"
6762 "                 const char *augpath);\n"
6763 "\n"
6764 msgstr ""
6765
6766 #. type: textblock
6767 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:326
6768 msgid "Remove C<path> and all of its children."
6769 msgstr ""
6770
6771 #. type: textblock
6772 #: ../src/guestfs-actions.pod:507 ../fish/guestfish-actions.pod:328
6773 msgid "On success this returns the number of entries which were removed."
6774 msgstr ""
6775
6776 #. type: =head2
6777 #: ../src/guestfs-actions.pod:513
6778 msgid "guestfs_aug_save"
6779 msgstr ""
6780
6781 #. type: verbatim
6782 #: ../src/guestfs-actions.pod:515
6783 #, no-wrap
6784 msgid ""
6785 " int\n"
6786 " guestfs_aug_save (guestfs_h *g);\n"
6787 "\n"
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:334
6792 msgid "This writes all pending changes to disk."
6793 msgstr ""
6794
6795 #. type: textblock
6796 #: ../src/guestfs-actions.pod:520
6797 msgid ""
6798 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
6799 "are saved."
6800 msgstr ""
6801
6802 #. type: =head2
6803 #: ../src/guestfs-actions.pod:527
6804 msgid "guestfs_aug_set"
6805 msgstr ""
6806
6807 #. type: verbatim
6808 #: ../src/guestfs-actions.pod:529
6809 #, no-wrap
6810 msgid ""
6811 " int\n"
6812 " guestfs_aug_set (guestfs_h *g,\n"
6813 "                  const char *augpath,\n"
6814 "                  const char *val);\n"
6815 "\n"
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../src/guestfs-actions.pod:534 ../fish/guestfish-actions.pod:343
6820 msgid "Set the value associated with C<path> to C<val>."
6821 msgstr ""
6822
6823 #. type: textblock
6824 #: ../src/guestfs-actions.pod:536
6825 msgid ""
6826 "In the Augeas API, it is possible to clear a node by setting the value to "
6827 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6828 "this call.  Instead you must use the C<guestfs_aug_clear> call."
6829 msgstr ""
6830
6831 #. type: =head2
6832 #: ../src/guestfs-actions.pod:545
6833 msgid "guestfs_available"
6834 msgstr ""
6835
6836 #. type: verbatim
6837 #: ../src/guestfs-actions.pod:547
6838 #, no-wrap
6839 msgid ""
6840 " int\n"
6841 " guestfs_available (guestfs_h *g,\n"
6842 "                    char *const *groups);\n"
6843 "\n"
6844 msgstr ""
6845
6846 #. type: textblock
6847 #: ../src/guestfs-actions.pod:551 ../fish/guestfish-actions.pod:354
6848 msgid ""
6849 "This command is used to check the availability of some groups of "
6850 "functionality in the appliance, which not all builds of the libguestfs "
6851 "appliance will be able to provide."
6852 msgstr ""
6853
6854 #. type: textblock
6855 #: ../src/guestfs-actions.pod:555
6856 msgid ""
6857 "The libguestfs groups, and the functions that those groups correspond to, "
6858 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6859 "runtime by calling C<guestfs_available_all_groups>."
6860 msgstr ""
6861
6862 #. type: textblock
6863 #: ../src/guestfs-actions.pod:560 ../fish/guestfish-actions.pod:363
6864 msgid ""
6865 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6866 "\"]> would check for the availability of the Linux inotify functions and "
6867 "Augeas (configuration file editing) functions."
6868 msgstr ""
6869
6870 #. type: textblock
6871 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:368
6872 msgid "The command returns no error if I<all> requested groups are available."
6873 msgstr ""
6874
6875 #. type: textblock
6876 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:370
6877 msgid ""
6878 "It fails with an error if one or more of the requested groups is unavailable "
6879 "in the appliance."
6880 msgstr ""
6881
6882 #. type: textblock
6883 #: ../src/guestfs-actions.pod:570 ../fish/guestfish-actions.pod:373
6884 msgid ""
6885 "If an unknown group name is included in the list of groups then an error is "
6886 "always returned."
6887 msgstr ""
6888
6889 #. type: textblock
6890 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:376
6891 msgid "I<Notes:>"
6892 msgstr "I<Нотатки:>"
6893
6894 #. type: textblock
6895 #: ../src/guestfs-actions.pod:579
6896 msgid "You must call C<guestfs_launch> before calling this function."
6897 msgstr ""
6898
6899 #. type: textblock
6900 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:384
6901 msgid ""
6902 "The reason is because we don't know what groups are supported by the "
6903 "appliance/daemon until it is running and can be queried."
6904 msgstr ""
6905
6906 #. type: textblock
6907 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:390
6908 msgid ""
6909 "If a group of functions is available, this does not necessarily mean that "
6910 "they will work.  You still have to check for errors when calling individual "
6911 "API functions even if they are available."
6912 msgstr ""
6913
6914 #. type: textblock
6915 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:397
6916 msgid ""
6917 "It is usually the job of distro packagers to build complete functionality "
6918 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6919 "with all requirements satisfied, will support everything."
6920 msgstr ""
6921
6922 #. type: textblock
6923 #: ../src/guestfs-actions.pod:601
6924 msgid ""
6925 "This call was added in version C<1.0.80>.  In previous versions of "
6926 "libguestfs all you could do would be to speculatively execute a command to "
6927 "find out if the daemon implemented it.  See also C<guestfs_version>."
6928 msgstr ""
6929
6930 #. type: textblock
6931 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1171
6932 msgid "(Added in 1.0.80)"
6933 msgstr ""
6934
6935 #. type: =head2
6936 #: ../src/guestfs-actions.pod:612
6937 msgid "guestfs_available_all_groups"
6938 msgstr ""
6939
6940 #. type: verbatim
6941 #: ../src/guestfs-actions.pod:614
6942 #, no-wrap
6943 msgid ""
6944 " char **\n"
6945 " guestfs_available_all_groups (guestfs_h *g);\n"
6946 "\n"
6947 msgstr ""
6948
6949 #. type: textblock
6950 #: ../src/guestfs-actions.pod:617
6951 msgid ""
6952 "This command returns a list of all optional groups that this daemon knows "
6953 "about.  Note this returns both supported and unsupported groups.  To find "
6954 "out which ones the daemon can actually support you have to call "
6955 "C<guestfs_available> on each member of the returned list."
6956 msgstr ""
6957
6958 #. type: textblock
6959 #: ../src/guestfs-actions.pod:623
6960 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
6961 msgstr ""
6962
6963 #. type: textblock
6964 #: ../src/guestfs-actions.pod:629
6965 msgid "(Added in 1.3.15)"
6966 msgstr ""
6967
6968 #. type: =head2
6969 #: ../src/guestfs-actions.pod:631
6970 msgid "guestfs_base64_in"
6971 msgstr ""
6972
6973 #. type: verbatim
6974 #: ../src/guestfs-actions.pod:633
6975 #, no-wrap
6976 msgid ""
6977 " int\n"
6978 " guestfs_base64_in (guestfs_h *g,\n"
6979 "                    const char *base64file,\n"
6980 "                    const char *filename);\n"
6981 "\n"
6982 msgstr ""
6983
6984 #. type: textblock
6985 #: ../src/guestfs-actions.pod:638 ../fish/guestfish-actions.pod:427
6986 msgid ""
6987 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6988 msgstr ""
6989
6990 #. type: textblock
6991 #: ../src/guestfs-actions.pod:643 ../src/guestfs-actions.pod:657
6992 msgid "(Added in 1.3.5)"
6993 msgstr ""
6994
6995 #. type: =head2
6996 #: ../src/guestfs-actions.pod:645
6997 msgid "guestfs_base64_out"
6998 msgstr ""
6999
7000 #. type: verbatim
7001 #: ../src/guestfs-actions.pod:647
7002 #, no-wrap
7003 msgid ""
7004 " int\n"
7005 " guestfs_base64_out (guestfs_h *g,\n"
7006 "                     const char *filename,\n"
7007 "                     const char *base64file);\n"
7008 "\n"
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:436
7013 msgid ""
7014 "This command downloads the contents of C<filename>, writing it out to local "
7015 "file C<base64file> encoded as base64."
7016 msgstr ""
7017
7018 #. type: =head2
7019 #: ../src/guestfs-actions.pod:659
7020 msgid "guestfs_blockdev_flushbufs"
7021 msgstr ""
7022
7023 #. type: verbatim
7024 #: ../src/guestfs-actions.pod:661
7025 #, no-wrap
7026 msgid ""
7027 " int\n"
7028 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7029 "                             const char *device);\n"
7030 "\n"
7031 msgstr ""
7032
7033 #. type: textblock
7034 #: ../src/guestfs-actions.pod:665 ../fish/guestfish-actions.pod:445
7035 msgid ""
7036 "This tells the kernel to flush internal buffers associated with C<device>."
7037 msgstr ""
7038
7039 #. type: textblock
7040 #: ../src/guestfs-actions.pod:668 ../src/guestfs-actions.pod:685
7041 #: ../src/guestfs-actions.pod:700 ../src/guestfs-actions.pod:716
7042 #: ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:753
7043 #: ../src/guestfs-actions.pod:767 ../src/guestfs-actions.pod:785
7044 #: ../src/guestfs-actions.pod:799 ../src/guestfs-actions.pod:813
7045 #: ../fish/guestfish-actions.pod:448 ../fish/guestfish-actions.pod:459
7046 #: ../fish/guestfish-actions.pod:468 ../fish/guestfish-actions.pod:478
7047 #: ../fish/guestfish-actions.pod:490 ../fish/guestfish-actions.pod:503
7048 #: ../fish/guestfish-actions.pod:511 ../fish/guestfish-actions.pod:522
7049 #: ../fish/guestfish-actions.pod:530 ../fish/guestfish-actions.pod:538
7050 msgid "This uses the L<blockdev(8)> command."
7051 msgstr ""
7052
7053 #. type: textblock
7054 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:689
7055 #: ../src/guestfs-actions.pod:704 ../src/guestfs-actions.pod:720
7056 #: ../src/guestfs-actions.pod:738 ../src/guestfs-actions.pod:757
7057 #: ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:789
7058 #: ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:817
7059 msgid "(Added in 0.9.3)"
7060 msgstr ""
7061
7062 #. type: =head2
7063 #: ../src/guestfs-actions.pod:674
7064 msgid "guestfs_blockdev_getbsz"
7065 msgstr ""
7066
7067 #. type: verbatim
7068 #: ../src/guestfs-actions.pod:676
7069 #, no-wrap
7070 msgid ""
7071 " int\n"
7072 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7073 "                          const char *device);\n"
7074 "\n"
7075 msgstr ""
7076
7077 #. type: textblock
7078 #: ../src/guestfs-actions.pod:680 ../fish/guestfish-actions.pod:454
7079 msgid "This returns the block size of a device."
7080 msgstr ""
7081
7082 #. type: textblock
7083 #: ../src/guestfs-actions.pod:682 ../src/guestfs-actions.pod:782
7084 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:519
7085 msgid ""
7086 "(Note this is different from both I<size in blocks> and I<filesystem block "
7087 "size>)."
7088 msgstr ""
7089
7090 #. type: =head2
7091 #: ../src/guestfs-actions.pod:691
7092 msgid "guestfs_blockdev_getro"
7093 msgstr ""
7094
7095 #. type: verbatim
7096 #: ../src/guestfs-actions.pod:693
7097 #, no-wrap
7098 msgid ""
7099 " int\n"
7100 " guestfs_blockdev_getro (guestfs_h *g,\n"
7101 "                         const char *device);\n"
7102 "\n"
7103 msgstr ""
7104
7105 #. type: textblock
7106 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:465
7107 msgid ""
7108 "Returns a boolean indicating if the block device is read-only (true if read-"
7109 "only, false if not)."
7110 msgstr ""
7111
7112 #. type: textblock
7113 #: ../src/guestfs-actions.pod:702 ../src/guestfs-actions.pod:1409
7114 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1914
7115 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1997
7116 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2067
7117 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2115
7118 #: ../src/guestfs-actions.pod:3080 ../src/guestfs-actions.pod:3097
7119 #: ../src/guestfs-actions.pod:3116 ../src/guestfs-actions.pod:3279
7120 #: ../src/guestfs-actions.pod:3293 ../src/guestfs-actions.pod:3308
7121 #: ../src/guestfs-actions.pod:3322 ../src/guestfs-actions.pod:3338
7122 #: ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3369
7123 #: ../src/guestfs-actions.pod:3383 ../src/guestfs-actions.pod:3396
7124 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3425
7125 #: ../src/guestfs-actions.pod:3440 ../src/guestfs-actions.pod:4971
7126 msgid "This function returns a C truth value on success or -1 on error."
7127 msgstr ""
7128
7129 #. type: =head2
7130 #: ../src/guestfs-actions.pod:706
7131 msgid "guestfs_blockdev_getsize64"
7132 msgstr ""
7133
7134 #. type: verbatim
7135 #: ../src/guestfs-actions.pod:708
7136 #, no-wrap
7137 msgid ""
7138 " int64_t\n"
7139 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7140 "                             const char *device);\n"
7141 "\n"
7142 msgstr ""
7143
7144 #. type: textblock
7145 #: ../src/guestfs-actions.pod:712 ../fish/guestfish-actions.pod:474
7146 msgid "This returns the size of the device in bytes."
7147 msgstr ""
7148
7149 #. type: textblock
7150 #: ../src/guestfs-actions.pod:714
7151 msgid "See also C<guestfs_blockdev_getsz>."
7152 msgstr ""
7153
7154 #. type: =head2
7155 #: ../src/guestfs-actions.pod:722
7156 msgid "guestfs_blockdev_getss"
7157 msgstr ""
7158
7159 #. type: verbatim
7160 #: ../src/guestfs-actions.pod:724
7161 #, no-wrap
7162 msgid ""
7163 " int\n"
7164 " guestfs_blockdev_getss (guestfs_h *g,\n"
7165 "                         const char *device);\n"
7166 "\n"
7167 msgstr ""
7168
7169 #. type: textblock
7170 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:484
7171 msgid ""
7172 "This returns the size of sectors on a block device.  Usually 512, but can be "
7173 "larger for modern devices."
7174 msgstr ""
7175
7176 #. type: textblock
7177 #: ../src/guestfs-actions.pod:731
7178 msgid ""
7179 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7180 "that)."
7181 msgstr ""
7182
7183 #. type: =head2
7184 #: ../src/guestfs-actions.pod:740
7185 msgid "guestfs_blockdev_getsz"
7186 msgstr ""
7187
7188 #. type: verbatim
7189 #: ../src/guestfs-actions.pod:742
7190 #, no-wrap
7191 msgid ""
7192 " int64_t\n"
7193 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7194 "                         const char *device);\n"
7195 "\n"
7196 msgstr ""
7197
7198 #. type: textblock
7199 #: ../src/guestfs-actions.pod:746 ../fish/guestfish-actions.pod:496
7200 msgid ""
7201 "This returns the size of the device in units of 512-byte sectors (even if "
7202 "the sectorsize isn't 512 bytes ... weird)."
7203 msgstr ""
7204
7205 #. type: textblock
7206 #: ../src/guestfs-actions.pod:749
7207 msgid ""
7208 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7209 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7210 msgstr ""
7211
7212 #. type: =head2
7213 #: ../src/guestfs-actions.pod:759
7214 msgid "guestfs_blockdev_rereadpt"
7215 msgstr ""
7216
7217 #. type: verbatim
7218 #: ../src/guestfs-actions.pod:761
7219 #, no-wrap
7220 msgid ""
7221 " int\n"
7222 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7223 "                            const char *device);\n"
7224 "\n"
7225 msgstr ""
7226
7227 #. type: textblock
7228 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:509
7229 msgid "Reread the partition table on C<device>."
7230 msgstr ""
7231
7232 #. type: =head2
7233 #: ../src/guestfs-actions.pod:773
7234 msgid "guestfs_blockdev_setbsz"
7235 msgstr ""
7236
7237 #. type: verbatim
7238 #: ../src/guestfs-actions.pod:775
7239 #, no-wrap
7240 msgid ""
7241 " int\n"
7242 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7243 "                          const char *device,\n"
7244 "                          int blocksize);\n"
7245 "\n"
7246 msgstr ""
7247
7248 #. type: textblock
7249 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:517
7250 msgid "This sets the block size of a device."
7251 msgstr ""
7252
7253 #. type: =head2
7254 #: ../src/guestfs-actions.pod:791
7255 msgid "guestfs_blockdev_setro"
7256 msgstr ""
7257
7258 #. type: verbatim
7259 #: ../src/guestfs-actions.pod:793
7260 #, no-wrap
7261 msgid ""
7262 " int\n"
7263 " guestfs_blockdev_setro (guestfs_h *g,\n"
7264 "                         const char *device);\n"
7265 "\n"
7266 msgstr ""
7267
7268 #. type: textblock
7269 #: ../src/guestfs-actions.pod:797 ../fish/guestfish-actions.pod:528
7270 msgid "Sets the block device named C<device> to read-only."
7271 msgstr ""
7272
7273 #. type: =head2
7274 #: ../src/guestfs-actions.pod:805
7275 msgid "guestfs_blockdev_setrw"
7276 msgstr ""
7277
7278 #. type: verbatim
7279 #: ../src/guestfs-actions.pod:807
7280 #, no-wrap
7281 msgid ""
7282 " int\n"
7283 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7284 "                         const char *device);\n"
7285 "\n"
7286 msgstr ""
7287
7288 #. type: textblock
7289 #: ../src/guestfs-actions.pod:811 ../fish/guestfish-actions.pod:536
7290 msgid "Sets the block device named C<device> to read-write."
7291 msgstr ""
7292
7293 #. type: =head2
7294 #: ../src/guestfs-actions.pod:819
7295 msgid "guestfs_case_sensitive_path"
7296 msgstr ""
7297
7298 #. type: verbatim
7299 #: ../src/guestfs-actions.pod:821
7300 #, no-wrap
7301 msgid ""
7302 " char *\n"
7303 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7304 "                              const char *path);\n"
7305 "\n"
7306 msgstr ""
7307
7308 #. type: textblock
7309 #: ../src/guestfs-actions.pod:825 ../fish/guestfish-actions.pod:544
7310 msgid ""
7311 "This can be used to resolve case insensitive paths on a filesystem which is "
7312 "case sensitive.  The use case is to resolve paths which you have read from "
7313 "Windows configuration files or the Windows Registry, to the true path."
7314 msgstr ""
7315
7316 #. type: textblock
7317 #: ../src/guestfs-actions.pod:830 ../fish/guestfish-actions.pod:549
7318 msgid ""
7319 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7320 "(and probably others), which is that although the underlying filesystem is "
7321 "case-insensitive, the driver exports the filesystem to Linux as case-"
7322 "sensitive."
7323 msgstr ""
7324
7325 #. type: textblock
7326 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:554
7327 msgid ""
7328 "One consequence of this is that special directories such as C<c:\\windows> "
7329 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7330 "precise details of how they were created.  In Windows itself this would not "
7331 "be a problem."
7332 msgstr ""
7333
7334 #. type: textblock
7335 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:560
7336 msgid ""
7337 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7338 "#posixfilenames1>"
7339 msgstr ""
7340
7341 #. type: textblock
7342 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:563
7343 msgid ""
7344 "This function resolves the true case of each element in the path and returns "
7345 "the case-sensitive path."
7346 msgstr ""
7347
7348 #. type: textblock
7349 #: ../src/guestfs-actions.pod:847
7350 msgid ""
7351 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
7352 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7353 "how the directories were originally created under Windows)."
7354 msgstr ""
7355
7356 #. type: textblock
7357 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:571
7358 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7359 msgstr ""
7360
7361 #. type: textblock
7362 #: ../src/guestfs-actions.pod:855
7363 msgid "See also C<guestfs_realpath>."
7364 msgstr ""
7365
7366 #. type: textblock
7367 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:6962
7368 msgid "(Added in 1.0.75)"
7369 msgstr ""
7370
7371 #. type: =head2
7372 #: ../src/guestfs-actions.pod:862
7373 msgid "guestfs_cat"
7374 msgstr ""
7375
7376 #. type: verbatim
7377 #: ../src/guestfs-actions.pod:864
7378 #, no-wrap
7379 msgid ""
7380 " char *\n"
7381 " guestfs_cat (guestfs_h *g,\n"
7382 "              const char *path);\n"
7383 "\n"
7384 msgstr ""
7385
7386 #. type: textblock
7387 #: ../src/guestfs-actions.pod:868 ../src/guestfs-actions.pod:5458
7388 #: ../fish/guestfish-actions.pod:580 ../fish/guestfish-actions.pod:3659
7389 msgid "Return the contents of the file named C<path>."
7390 msgstr ""
7391
7392 #. type: textblock
7393 #: ../src/guestfs-actions.pod:870
7394 msgid ""
7395 "Note that this function cannot correctly handle binary files (specifically, "
7396 "files containing C<\\0> character which is treated as end of string).  For "
7397 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7398 "functions which have a more complex interface."
7399 msgstr ""
7400
7401 #. type: textblock
7402 #: ../src/guestfs-actions.pod:878 ../src/guestfs-actions.pod:1057
7403 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:1373
7404 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:1495
7405 #: ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1763
7406 #: ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:2240
7407 #: ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2307
7408 #: ../src/guestfs-actions.pod:2324 ../src/guestfs-actions.pod:2353
7409 #: ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:5266
7410 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
7411 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:6347
7412 #: ../src/guestfs-actions.pod:6402 ../src/guestfs-actions.pod:6548
7413 #: ../src/guestfs-actions.pod:6572 ../src/guestfs-actions.pod:7234
7414 #: ../src/guestfs-actions.pod:7260 ../src/guestfs-actions.pod:7286
7415 #: ../src/guestfs-actions.pod:7305 ../src/guestfs-actions.pod:7390
7416 #: ../src/guestfs-actions.pod:7409 ../src/guestfs-actions.pod:7455
7417 #: ../src/guestfs-actions.pod:7474 ../fish/guestfish-actions.pod:587
7418 #: ../fish/guestfish-actions.pod:722 ../fish/guestfish-actions.pod:734
7419 #: ../fish/guestfish-actions.pod:910 ../fish/guestfish-actions.pod:920
7420 #: ../fish/guestfish-actions.pod:987 ../fish/guestfish-actions.pod:997
7421 #: ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1493
7422 #: ../fish/guestfish-actions.pod:1503 ../fish/guestfish-actions.pod:1531
7423 #: ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:1556
7424 #: ../fish/guestfish-actions.pod:1575 ../fish/guestfish-actions.pod:3529
7425 #: ../fish/guestfish-actions.pod:3544 ../fish/guestfish-actions.pod:3620
7426 #: ../fish/guestfish-actions.pod:3637 ../fish/guestfish-actions.pod:3652
7427 #: ../fish/guestfish-actions.pod:4278 ../fish/guestfish-actions.pod:4324
7428 #: ../fish/guestfish-actions.pod:4409 ../fish/guestfish-actions.pod:4424
7429 #: ../fish/guestfish-actions.pod:4834 ../fish/guestfish-actions.pod:4852
7430 #: ../fish/guestfish-actions.pod:4869 ../fish/guestfish-actions.pod:4879
7431 #: ../fish/guestfish-actions.pod:4927 ../fish/guestfish-actions.pod:4937
7432 #: ../fish/guestfish-actions.pod:4966 ../fish/guestfish-actions.pod:4976
7433 msgid ""
7434 "Because of the message protocol, there is a transfer limit of somewhere "
7435 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:3556
7440 #: ../src/guestfs-actions.pod:3618 ../src/guestfs-actions.pod:3635
7441 #: ../src/guestfs-actions.pod:3723 ../src/guestfs-actions.pod:4128
7442 #: ../src/guestfs-actions.pod:4142 ../src/guestfs-actions.pod:5346
7443 #: ../src/guestfs-actions.pod:5360 ../src/guestfs-actions.pod:7121
7444 #: ../src/guestfs-actions.pod:7135
7445 msgid "(Added in 0.4)"
7446 msgstr ""
7447
7448 #. type: =head2
7449 #: ../src/guestfs-actions.pod:883
7450 msgid "guestfs_checksum"
7451 msgstr ""
7452
7453 #. type: verbatim
7454 #: ../src/guestfs-actions.pod:885
7455 #, no-wrap
7456 msgid ""
7457 " char *\n"
7458 " guestfs_checksum (guestfs_h *g,\n"
7459 "                   const char *csumtype,\n"
7460 "                   const char *path);\n"
7461 "\n"
7462 msgstr ""
7463
7464 #. type: textblock
7465 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:594
7466 msgid ""
7467 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7468 msgstr ""
7469
7470 #. type: textblock
7471 #: ../src/guestfs-actions.pod:893 ../fish/guestfish-actions.pod:597
7472 msgid ""
7473 "The type of checksum to compute is given by the C<csumtype> parameter which "
7474 "must have one of the following values:"
7475 msgstr ""
7476
7477 #. type: =item
7478 #: ../src/guestfs-actions.pod:898 ../fish/guestfish-actions.pod:602
7479 msgid "C<crc>"
7480 msgstr "C<crc>"
7481
7482 #. type: textblock
7483 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:604
7484 msgid ""
7485 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7486 "C<cksum> command."
7487 msgstr ""
7488
7489 #. type: =item
7490 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:607
7491 msgid "C<md5>"
7492 msgstr "C<md5>"
7493
7494 #. type: textblock
7495 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:609
7496 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7497 msgstr ""
7498
7499 #. type: =item
7500 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:611
7501 msgid "C<sha1>"
7502 msgstr "C<sha1>"
7503
7504 #. type: textblock
7505 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:613
7506 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7507 msgstr ""
7508
7509 #. type: =item
7510 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:615
7511 msgid "C<sha224>"
7512 msgstr "C<sha224>"
7513
7514 #. type: textblock
7515 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:617
7516 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7517 msgstr ""
7518
7519 #. type: =item
7520 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:619
7521 msgid "C<sha256>"
7522 msgstr "C<sha256>"
7523
7524 #. type: textblock
7525 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:621
7526 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7527 msgstr ""
7528
7529 #. type: =item
7530 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:623
7531 msgid "C<sha384>"
7532 msgstr "C<sha384>"
7533
7534 #. type: textblock
7535 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:625
7536 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7537 msgstr ""
7538
7539 #. type: =item
7540 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:627
7541 msgid "C<sha512>"
7542 msgstr "C<sha512>"
7543
7544 #. type: textblock
7545 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:629
7546 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7547 msgstr ""
7548
7549 #. type: textblock
7550 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:633
7551 msgid "The checksum is returned as a printable string."
7552 msgstr ""
7553
7554 #. type: textblock
7555 #: ../src/guestfs-actions.pod:931
7556 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7557 msgstr ""
7558
7559 #. type: textblock
7560 #: ../src/guestfs-actions.pod:933
7561 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7562 msgstr ""
7563
7564 #. type: textblock
7565 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:1246
7566 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:3295
7567 #: ../src/guestfs-actions.pod:3324 ../src/guestfs-actions.pod:3385
7568 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:6818
7569 msgid "(Added in 1.0.2)"
7570 msgstr ""
7571
7572 #. type: =head2
7573 #: ../src/guestfs-actions.pod:940
7574 msgid "guestfs_checksum_device"
7575 msgstr ""
7576
7577 #. type: verbatim
7578 #: ../src/guestfs-actions.pod:942
7579 #, no-wrap
7580 msgid ""
7581 " char *\n"
7582 " guestfs_checksum_device (guestfs_h *g,\n"
7583 "                          const char *csumtype,\n"
7584 "                          const char *device);\n"
7585 "\n"
7586 msgstr ""
7587
7588 #. type: textblock
7589 #: ../src/guestfs-actions.pod:947
7590 msgid ""
7591 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7592 "device named C<device>.  For the types of checksums supported see the "
7593 "C<guestfs_checksum> command."
7594 msgstr ""
7595
7596 #. type: textblock
7597 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:4877
7598 #: ../src/guestfs-actions.pod:4936 ../src/guestfs-actions.pod:4973
7599 #: ../src/guestfs-actions.pod:4991 ../src/guestfs-actions.pod:5167
7600 #: ../src/guestfs-actions.pod:6727 ../src/guestfs-actions.pod:6741
7601 #: ../src/guestfs-actions.pod:7147
7602 msgid "(Added in 1.3.2)"
7603 msgstr ""
7604
7605 #. type: =head2
7606 #: ../src/guestfs-actions.pod:956
7607 msgid "guestfs_checksums_out"
7608 msgstr ""
7609
7610 #. type: verbatim
7611 #: ../src/guestfs-actions.pod:958
7612 #, no-wrap
7613 msgid ""
7614 " int\n"
7615 " guestfs_checksums_out (guestfs_h *g,\n"
7616 "                        const char *csumtype,\n"
7617 "                        const char *directory,\n"
7618 "                        const char *sumsfile);\n"
7619 "\n"
7620 msgstr ""
7621
7622 #. type: textblock
7623 #: ../src/guestfs-actions.pod:964 ../fish/guestfish-actions.pod:651
7624 msgid ""
7625 "This command computes the checksums of all regular files in C<directory> and "
7626 "then emits a list of those checksums to the local output file C<sumsfile>."
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:655
7631 msgid ""
7632 "This can be used for verifying the integrity of a virtual machine.  However "
7633 "to be properly secure you should pay attention to the output of the checksum "
7634 "command (it uses the ones from GNU coreutils).  In particular when the "
7635 "filename is not printable, coreutils uses a special backslash syntax.  For "
7636 "more information, see the GNU coreutils info file."
7637 msgstr ""
7638
7639 #. type: textblock
7640 #: ../src/guestfs-actions.pod:978
7641 msgid "(Added in 1.3.7)"
7642 msgstr ""
7643
7644 #. type: =head2
7645 #: ../src/guestfs-actions.pod:980
7646 msgid "guestfs_chmod"
7647 msgstr ""
7648
7649 #. type: verbatim
7650 #: ../src/guestfs-actions.pod:982
7651 #, no-wrap
7652 msgid ""
7653 " int\n"
7654 " guestfs_chmod (guestfs_h *g,\n"
7655 "                int mode,\n"
7656 "                const char *path);\n"
7657 "\n"
7658 msgstr ""
7659
7660 #. type: textblock
7661 #: ../src/guestfs-actions.pod:987 ../fish/guestfish-actions.pod:669
7662 msgid ""
7663 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7664 "supported."
7665 msgstr ""
7666
7667 #. type: textblock
7668 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:672
7669 msgid ""
7670 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7671 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7672 "C<700>."
7673 msgstr ""
7674
7675 #. type: textblock
7676 #: ../src/guestfs-actions.pod:994 ../src/guestfs-actions.pod:4379
7677 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4595
7678 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:676
7679 #: ../fish/guestfish-actions.pod:2975 ../fish/guestfish-actions.pod:3104
7680 #: ../fish/guestfish-actions.pod:3114 ../fish/guestfish-actions.pod:3124
7681 msgid "The mode actually set is affected by the umask."
7682 msgstr ""
7683
7684 #. type: =head2
7685 #: ../src/guestfs-actions.pod:1000
7686 msgid "guestfs_chown"
7687 msgstr ""
7688
7689 #. type: verbatim
7690 #: ../src/guestfs-actions.pod:1002
7691 #, no-wrap
7692 msgid ""
7693 " int\n"
7694 " guestfs_chown (guestfs_h *g,\n"
7695 "                int owner,\n"
7696 "                int group,\n"
7697 "                const char *path);\n"
7698 "\n"
7699 msgstr ""
7700
7701 #. type: textblock
7702 #: ../src/guestfs-actions.pod:1008 ../fish/guestfish-actions.pod:682
7703 msgid "Change the file owner to C<owner> and group to C<group>."
7704 msgstr ""
7705
7706 #. type: textblock
7707 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:3487
7708 #: ../fish/guestfish-actions.pod:684 ../fish/guestfish-actions.pod:2433
7709 msgid ""
7710 "Only numeric uid and gid are supported.  If you want to use names, you will "
7711 "need to locate and parse the password file yourself (Augeas support makes "
7712 "this relatively easy)."
7713 msgstr ""
7714
7715 #. type: =head2
7716 #: ../src/guestfs-actions.pod:1018
7717 msgid "guestfs_command"
7718 msgstr ""
7719
7720 #. type: verbatim
7721 #: ../src/guestfs-actions.pod:1020
7722 #, no-wrap
7723 msgid ""
7724 " char *\n"
7725 " guestfs_command (guestfs_h *g,\n"
7726 "                  char *const *arguments);\n"
7727 "\n"
7728 msgstr ""
7729
7730 #. type: textblock
7731 #: ../src/guestfs-actions.pod:1024 ../fish/guestfish-actions.pod:692
7732 msgid ""
7733 "This call runs a command from the guest filesystem.  The filesystem must be "
7734 "mounted, and must contain a compatible operating system (ie. something "
7735 "Linux, with the same or compatible processor architecture)."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../src/guestfs-actions.pod:1029
7740 msgid ""
7741 "The single parameter is an argv-style list of arguments.  The first element "
7742 "is the name of the program to run.  Subsequent elements are parameters.  The "
7743 "list must be non-empty (ie. must contain a program name).  Note that the "
7744 "command runs directly, and is I<not> invoked via the shell (see "
7745 "C<guestfs_sh>)."
7746 msgstr ""
7747
7748 #. type: textblock
7749 #: ../src/guestfs-actions.pod:1036 ../fish/guestfish-actions.pod:704
7750 msgid "The return value is anything printed to I<stdout> by the command."
7751 msgstr ""
7752
7753 #. type: textblock
7754 #: ../src/guestfs-actions.pod:1039 ../fish/guestfish-actions.pod:707
7755 msgid ""
7756 "If the command returns a non-zero exit status, then this function returns an "
7757 "error message.  The error message string is the content of I<stderr> from "
7758 "the command."
7759 msgstr ""
7760
7761 #. type: textblock
7762 #: ../src/guestfs-actions.pod:1043 ../fish/guestfish-actions.pod:711
7763 msgid ""
7764 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7765 "bin>.  If you require a program from another location, you should provide "
7766 "the full path in the first parameter."
7767 msgstr ""
7768
7769 #. type: textblock
7770 #: ../src/guestfs-actions.pod:1048 ../fish/guestfish-actions.pod:716
7771 msgid ""
7772 "Shared libraries and data files required by the program must be available on "
7773 "filesystems which are mounted in the correct places.  It is the caller's "
7774 "responsibility to ensure all filesystems that are needed are mounted at the "
7775 "right locations."
7776 msgstr ""
7777
7778 #. type: textblock
7779 #: ../src/guestfs-actions.pod:1060 ../src/guestfs-actions.pod:1080
7780 #: ../src/guestfs-actions.pod:1548
7781 msgid "(Added in 0.9.1)"
7782 msgstr ""
7783
7784 #. type: =head2
7785 #: ../src/guestfs-actions.pod:1062
7786 msgid "guestfs_command_lines"
7787 msgstr ""
7788
7789 #. type: verbatim
7790 #: ../src/guestfs-actions.pod:1064
7791 #, no-wrap
7792 msgid ""
7793 " char **\n"
7794 " guestfs_command_lines (guestfs_h *g,\n"
7795 "                        char *const *arguments);\n"
7796 "\n"
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../src/guestfs-actions.pod:1068
7801 msgid ""
7802 "This is the same as C<guestfs_command>, but splits the result into a list of "
7803 "lines."
7804 msgstr ""
7805
7806 #. type: textblock
7807 #: ../src/guestfs-actions.pod:1071
7808 msgid "See also: C<guestfs_sh_lines>"
7809 msgstr ""
7810
7811 #. type: =head2
7812 #: ../src/guestfs-actions.pod:1082
7813 msgid "guestfs_config"
7814 msgstr ""
7815
7816 #. type: verbatim
7817 #: ../src/guestfs-actions.pod:1084
7818 #, no-wrap
7819 msgid ""
7820 " int\n"
7821 " guestfs_config (guestfs_h *g,\n"
7822 "                 const char *qemuparam,\n"
7823 "                 const char *qemuvalue);\n"
7824 "\n"
7825 msgstr ""
7826
7827 #. type: textblock
7828 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:741
7829 msgid ""
7830 "This can be used to add arbitrary qemu command line parameters of the form "
7831 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7832 "setting some parameters which would interfere with parameters that we use."
7833 msgstr ""
7834
7835 #. type: textblock
7836 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:746
7837 msgid "The first character of C<param> string must be a C<-> (dash)."
7838 msgstr ""
7839
7840 #. type: textblock
7841 #: ../src/guestfs-actions.pod:1096 ../fish/guestfish-actions.pod:748
7842 msgid "C<value> can be NULL."
7843 msgstr ""
7844
7845 #. type: =head2
7846 #: ../src/guestfs-actions.pod:1102
7847 msgid "guestfs_copy_size"
7848 msgstr ""
7849
7850 #. type: verbatim
7851 #: ../src/guestfs-actions.pod:1104
7852 #, no-wrap
7853 msgid ""
7854 " int\n"
7855 " guestfs_copy_size (guestfs_h *g,\n"
7856 "                    const char *src,\n"
7857 "                    const char *dest,\n"
7858 "                    int64_t size);\n"
7859 "\n"
7860 msgstr ""
7861
7862 #. type: textblock
7863 #: ../src/guestfs-actions.pod:1110 ../fish/guestfish-actions.pod:754
7864 msgid ""
7865 "This command copies exactly C<size> bytes from one source device or file "
7866 "C<src> to another destination device or file C<dest>."
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:757
7871 msgid ""
7872 "Note this will fail if the source is too short or if the destination is not "
7873 "large enough."
7874 msgstr ""
7875
7876 #. type: textblock
7877 #: ../src/guestfs-actions.pod:1118 ../src/guestfs-actions.pod:1241
7878 #: ../src/guestfs-actions.pod:1272 ../src/guestfs-actions.pod:1317
7879 #: ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1719
7880 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:6813
7881 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:7326
7882 #: ../src/guestfs-actions.pod:7345
7883 msgid ""
7884 "This long-running command can generate progress notification messages so "
7885 "that the caller can display a progress bar or indicator.  To receive these "
7886 "messages, the caller must register a progress event callback.  See L<guestfs"
7887 "(3)/GUESTFS_EVENT_PROGRESS>."
7888 msgstr ""
7889
7890 #. type: textblock
7891 #: ../src/guestfs-actions.pod:1123 ../src/guestfs-actions.pod:4155
7892 #: ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:7054
7893 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7160
7894 msgid "(Added in 1.0.87)"
7895 msgstr ""
7896
7897 #. type: =head2
7898 #: ../src/guestfs-actions.pod:1125
7899 msgid "guestfs_cp"
7900 msgstr ""
7901
7902 #. type: verbatim
7903 #: ../src/guestfs-actions.pod:1127
7904 #, no-wrap
7905 msgid ""
7906 " int\n"
7907 " guestfs_cp (guestfs_h *g,\n"
7908 "             const char *src,\n"
7909 "             const char *dest);\n"
7910 "\n"
7911 msgstr ""
7912
7913 #. type: textblock
7914 #: ../src/guestfs-actions.pod:1132 ../fish/guestfish-actions.pod:764
7915 msgid ""
7916 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7917 "destination filename or destination directory."
7918 msgstr ""
7919
7920 #. type: textblock
7921 #: ../src/guestfs-actions.pod:1137 ../src/guestfs-actions.pod:1151
7922 #: ../src/guestfs-actions.pod:1223 ../src/guestfs-actions.pod:1297
7923 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:4840
7924 #: ../src/guestfs-actions.pod:5217
7925 msgid "(Added in 1.0.18)"
7926 msgstr ""
7927
7928 #. type: =head2
7929 #: ../src/guestfs-actions.pod:1139
7930 msgid "guestfs_cp_a"
7931 msgstr ""
7932
7933 #. type: verbatim
7934 #: ../src/guestfs-actions.pod:1141
7935 #, no-wrap
7936 msgid ""
7937 " int\n"
7938 " guestfs_cp_a (guestfs_h *g,\n"
7939 "               const char *src,\n"
7940 "               const char *dest);\n"
7941 "\n"
7942 msgstr ""
7943
7944 #. type: textblock
7945 #: ../src/guestfs-actions.pod:1146 ../fish/guestfish-actions.pod:771
7946 msgid ""
7947 "This copies a file or directory from C<src> to C<dest> recursively using the "
7948 "C<cp -a> command."
7949 msgstr ""
7950
7951 #. type: =head2
7952 #: ../src/guestfs-actions.pod:1153
7953 msgid "guestfs_dd"
7954 msgstr ""
7955
7956 #. type: verbatim
7957 #: ../src/guestfs-actions.pod:1155
7958 #, no-wrap
7959 msgid ""
7960 " int\n"
7961 " guestfs_dd (guestfs_h *g,\n"
7962 "             const char *src,\n"
7963 "             const char *dest);\n"
7964 "\n"
7965 msgstr ""
7966
7967 #. type: textblock
7968 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:778
7969 msgid ""
7970 "This command copies from one source device or file C<src> to another "
7971 "destination device or file C<dest>.  Normally you would use this to copy to "
7972 "or from a device or partition, for example to duplicate a filesystem."
7973 msgstr ""
7974
7975 #. type: textblock
7976 #: ../src/guestfs-actions.pod:1165
7977 msgid ""
7978 "If the destination is a device, it must be as large or larger than the "
7979 "source file or device, otherwise the copy will fail.  This command cannot do "
7980 "partial copies (see C<guestfs_copy_size>)."
7981 msgstr ""
7982
7983 #. type: =head2
7984 #: ../src/guestfs-actions.pod:1173
7985 msgid "guestfs_df"
7986 msgstr ""
7987
7988 #. type: verbatim
7989 #: ../src/guestfs-actions.pod:1175
7990 #, no-wrap
7991 msgid ""
7992 " char *\n"
7993 " guestfs_df (guestfs_h *g);\n"
7994 "\n"
7995 msgstr ""
7996
7997 #. type: textblock
7998 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:791
7999 msgid "This command runs the C<df> command to report disk space used."
8000 msgstr ""
8001
8002 #. type: textblock
8003 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1197
8004 msgid ""
8005 "This command is mostly useful for interactive sessions.  It is I<not> "
8006 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8007 "from programs."
8008 msgstr ""
8009
8010 #. type: textblock
8011 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1204
8012 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:2286
8013 #: ../src/guestfs-actions.pod:2310 ../src/guestfs-actions.pod:2378
8014 #: ../src/guestfs-actions.pod:4265 ../src/guestfs-actions.pod:4740
8015 #: ../src/guestfs-actions.pod:6551 ../src/guestfs-actions.pod:6575
8016 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7206
8017 #: ../src/guestfs-actions.pod:7219
8018 msgid "(Added in 1.0.54)"
8019 msgstr ""
8020
8021 #. type: =head2
8022 #: ../src/guestfs-actions.pod:1189
8023 msgid "guestfs_df_h"
8024 msgstr ""
8025
8026 #. type: verbatim
8027 #: ../src/guestfs-actions.pod:1191
8028 #, no-wrap
8029 msgid ""
8030 " char *\n"
8031 " guestfs_df_h (guestfs_h *g);\n"
8032 "\n"
8033 msgstr ""
8034
8035 #. type: textblock
8036 #: ../src/guestfs-actions.pod:1194 ../fish/guestfish-actions.pod:801
8037 msgid ""
8038 "This command runs the C<df -h> command to report disk space used in human-"
8039 "readable format."
8040 msgstr ""
8041
8042 #. type: =head2
8043 #: ../src/guestfs-actions.pod:1206
8044 msgid "guestfs_dmesg"
8045 msgstr ""
8046
8047 #. type: verbatim
8048 #: ../src/guestfs-actions.pod:1208
8049 #, no-wrap
8050 msgid ""
8051 " char *\n"
8052 " guestfs_dmesg (guestfs_h *g);\n"
8053 "\n"
8054 msgstr ""
8055
8056 #. type: textblock
8057 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:812
8058 msgid ""
8059 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8060 "This is sometimes useful for extended debugging of problems."
8061 msgstr ""
8062
8063 #. type: textblock
8064 #: ../src/guestfs-actions.pod:1215
8065 msgid ""
8066 "Another way to get the same information is to enable verbose messages with "
8067 "C<guestfs_set_verbose> or by setting the environment variable "
8068 "C<LIBGUESTFS_DEBUG=1> before running the program."
8069 msgstr ""
8070
8071 #. type: =head2
8072 #: ../src/guestfs-actions.pod:1225
8073 msgid "guestfs_download"
8074 msgstr ""
8075
8076 #. type: verbatim
8077 #: ../src/guestfs-actions.pod:1227
8078 #, no-wrap
8079 msgid ""
8080 " int\n"
8081 " guestfs_download (guestfs_h *g,\n"
8082 "                   const char *remotefilename,\n"
8083 "                   const char *filename);\n"
8084 "\n"
8085 msgstr ""
8086
8087 #. type: textblock
8088 #: ../src/guestfs-actions.pod:1232 ../src/guestfs-actions.pod:1257
8089 #: ../fish/guestfish-actions.pod:825 ../fish/guestfish-actions.pod:838
8090 msgid ""
8091 "Download file C<remotefilename> and save it as C<filename> on the local "
8092 "machine."
8093 msgstr ""
8094
8095 #. type: textblock
8096 #: ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:6807
8097 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:4582
8098 msgid "C<filename> can also be a named pipe."
8099 msgstr ""
8100
8101 #. type: textblock
8102 #: ../src/guestfs-actions.pod:1237
8103 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8104 msgstr ""
8105
8106 #. type: =head2
8107 #: ../src/guestfs-actions.pod:1248
8108 msgid "guestfs_download_offset"
8109 msgstr ""
8110
8111 #. type: verbatim
8112 #: ../src/guestfs-actions.pod:1250
8113 #, no-wrap
8114 msgid ""
8115 " int\n"
8116 " guestfs_download_offset (guestfs_h *g,\n"
8117 "                          const char *remotefilename,\n"
8118 "                          const char *filename,\n"
8119 "                          int64_t offset,\n"
8120 "                          int64_t size);\n"
8121 "\n"
8122 msgstr ""
8123
8124 #. type: textblock
8125 #: ../src/guestfs-actions.pod:1260 ../fish/guestfish-actions.pod:841
8126 msgid ""
8127 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8128 "region must be within the file or device)."
8129 msgstr ""
8130
8131 #. type: textblock
8132 #: ../src/guestfs-actions.pod:1263
8133 msgid ""
8134 "Note that there is no limit on the amount of data that can be downloaded "
8135 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8136 "full amount unless an error occurs."
8137 msgstr ""
8138
8139 #. type: textblock
8140 #: ../src/guestfs-actions.pod:1268
8141 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8142 msgstr ""
8143
8144 #. type: textblock
8145 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:6852
8146 msgid "(Added in 1.5.17)"
8147 msgstr ""
8148
8149 #. type: =head2
8150 #: ../src/guestfs-actions.pod:1279
8151 msgid "guestfs_drop_caches"
8152 msgstr ""
8153
8154 #. type: verbatim
8155 #: ../src/guestfs-actions.pod:1281
8156 #, no-wrap
8157 msgid ""
8158 " int\n"
8159 " guestfs_drop_caches (guestfs_h *g,\n"
8160 "                      int whattodrop);\n"
8161 "\n"
8162 msgstr ""
8163
8164 #. type: textblock
8165 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:857
8166 msgid ""
8167 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8168 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8169 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8170 msgstr ""
8171
8172 #. type: textblock
8173 #: ../src/guestfs-actions.pod:1290 ../fish/guestfish-actions.pod:862
8174 msgid "Setting C<whattodrop> to 3 should drop everything."
8175 msgstr ""
8176
8177 #. type: textblock
8178 #: ../src/guestfs-actions.pod:1292 ../fish/guestfish-actions.pod:864
8179 msgid ""
8180 "This automatically calls L<sync(2)> before the operation, so that the "
8181 "maximum guest memory is freed."
8182 msgstr ""
8183
8184 #. type: =head2
8185 #: ../src/guestfs-actions.pod:1299
8186 msgid "guestfs_du"
8187 msgstr ""
8188
8189 #. type: verbatim
8190 #: ../src/guestfs-actions.pod:1301
8191 #, no-wrap
8192 msgid ""
8193 " int64_t\n"
8194 " guestfs_du (guestfs_h *g,\n"
8195 "             const char *path);\n"
8196 "\n"
8197 msgstr ""
8198
8199 #. type: textblock
8200 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:871
8201 msgid ""
8202 "This command runs the C<du -s> command to estimate file space usage for "
8203 "C<path>."
8204 msgstr ""
8205
8206 #. type: textblock
8207 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:874
8208 msgid ""
8209 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8210 "estimate includes the contents of the directory and all subdirectories "
8211 "(recursively)."
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../src/guestfs-actions.pod:1312 ../fish/guestfish-actions.pod:878
8216 msgid ""
8217 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8218 msgstr ""
8219
8220 #. type: =head2
8221 #: ../src/guestfs-actions.pod:1324
8222 msgid "guestfs_e2fsck_f"
8223 msgstr ""
8224
8225 #. type: verbatim
8226 #: ../src/guestfs-actions.pod:1326
8227 #, no-wrap
8228 msgid ""
8229 " int\n"
8230 " guestfs_e2fsck_f (guestfs_h *g,\n"
8231 "                   const char *device);\n"
8232 "\n"
8233 msgstr ""
8234
8235 #. type: textblock
8236 #: ../src/guestfs-actions.pod:1330 ../fish/guestfish-actions.pod:885
8237 msgid ""
8238 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8239 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
8240 "clean (C<-f>)."
8241 msgstr ""
8242
8243 #. type: textblock
8244 #: ../src/guestfs-actions.pod:1334
8245 msgid ""
8246 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8247 "Normally you should use C<guestfs_fsck>."
8248 msgstr ""
8249
8250 #. type: textblock
8251 #: ../src/guestfs-actions.pod:1339
8252 msgid "(Added in 1.0.29)"
8253 msgstr ""
8254
8255 #. type: =head2
8256 #: ../src/guestfs-actions.pod:1341
8257 msgid "guestfs_echo_daemon"
8258 msgstr ""
8259
8260 #. type: verbatim
8261 #: ../src/guestfs-actions.pod:1343
8262 #, no-wrap
8263 msgid ""
8264 " char *\n"
8265 " guestfs_echo_daemon (guestfs_h *g,\n"
8266 "                      char *const *words);\n"
8267 "\n"
8268 msgstr ""
8269
8270 #. type: textblock
8271 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:896
8272 msgid ""
8273 "This command concatenates the list of C<words> passed with single spaces "
8274 "between them and returns the resulting string."
8275 msgstr ""
8276
8277 #. type: textblock
8278 #: ../src/guestfs-actions.pod:1350 ../fish/guestfish-actions.pod:899
8279 msgid "You can use this command to test the connection through to the daemon."
8280 msgstr ""
8281
8282 #. type: textblock
8283 #: ../src/guestfs-actions.pod:1352
8284 msgid "See also C<guestfs_ping_daemon>."
8285 msgstr ""
8286
8287 #. type: textblock
8288 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:2094
8289 #: ../src/guestfs-actions.pod:6051
8290 msgid "(Added in 1.0.69)"
8291 msgstr ""
8292
8293 #. type: =head2
8294 #: ../src/guestfs-actions.pod:1359
8295 msgid "guestfs_egrep"
8296 msgstr ""
8297
8298 #. type: verbatim
8299 #: ../src/guestfs-actions.pod:1361
8300 #, no-wrap
8301 msgid ""
8302 " char **\n"
8303 " guestfs_egrep (guestfs_h *g,\n"
8304 "                const char *regex,\n"
8305 "                const char *path);\n"
8306 "\n"
8307 msgstr ""
8308
8309 #. type: textblock
8310 #: ../src/guestfs-actions.pod:1366 ../fish/guestfish-actions.pod:907
8311 msgid ""
8312 "This calls the external C<egrep> program and returns the matching lines."
8313 msgstr ""
8314
8315 #. type: textblock
8316 #: ../src/guestfs-actions.pod:1376 ../src/guestfs-actions.pod:1395
8317 #: ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1498
8318 #: ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:2224
8319 #: ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2399
8320 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2427
8321 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2495
8322 #: ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:3648
8323 #: ../src/guestfs-actions.pod:3662 ../src/guestfs-actions.pod:3675
8324 #: ../src/guestfs-actions.pod:3689 ../src/guestfs-actions.pod:4675
8325 #: ../src/guestfs-actions.pod:5551 ../src/guestfs-actions.pod:5600
8326 #: ../src/guestfs-actions.pod:6419 ../src/guestfs-actions.pod:6431
8327 #: ../src/guestfs-actions.pod:6444 ../src/guestfs-actions.pod:6457
8328 #: ../src/guestfs-actions.pod:6479 ../src/guestfs-actions.pod:6492
8329 #: ../src/guestfs-actions.pod:6505 ../src/guestfs-actions.pod:6518
8330 #: ../src/guestfs-actions.pod:7289 ../src/guestfs-actions.pod:7308
8331 #: ../src/guestfs-actions.pod:7393 ../src/guestfs-actions.pod:7412
8332 #: ../src/guestfs-actions.pod:7458 ../src/guestfs-actions.pod:7477
8333 msgid "(Added in 1.0.66)"
8334 msgstr ""
8335
8336 #. type: =head2
8337 #: ../src/guestfs-actions.pod:1378
8338 msgid "guestfs_egrepi"
8339 msgstr ""
8340
8341 #. type: verbatim
8342 #: ../src/guestfs-actions.pod:1380
8343 #, no-wrap
8344 msgid ""
8345 " char **\n"
8346 " guestfs_egrepi (guestfs_h *g,\n"
8347 "                 const char *regex,\n"
8348 "                 const char *path);\n"
8349 "\n"
8350 msgstr ""
8351
8352 #. type: textblock
8353 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:917
8354 msgid ""
8355 "This calls the external C<egrep -i> program and returns the matching lines."
8356 msgstr ""
8357
8358 #. type: =head2
8359 #: ../src/guestfs-actions.pod:1397
8360 msgid "guestfs_equal"
8361 msgstr ""
8362
8363 #. type: verbatim
8364 #: ../src/guestfs-actions.pod:1399
8365 #, no-wrap
8366 msgid ""
8367 " int\n"
8368 " guestfs_equal (guestfs_h *g,\n"
8369 "                const char *file1,\n"
8370 "                const char *file2);\n"
8371 "\n"
8372 msgstr ""
8373
8374 #. type: textblock
8375 #: ../src/guestfs-actions.pod:1404 ../fish/guestfish-actions.pod:927
8376 msgid ""
8377 "This compares the two files C<file1> and C<file2> and returns true if their "
8378 "content is exactly equal, or false otherwise."
8379 msgstr ""
8380
8381 #. type: textblock
8382 #: ../src/guestfs-actions.pod:1407 ../fish/guestfish-actions.pod:930
8383 msgid "The external L<cmp(1)> program is used for the comparison."
8384 msgstr ""
8385
8386 #. type: =head2
8387 #: ../src/guestfs-actions.pod:1413
8388 msgid "guestfs_exists"
8389 msgstr ""
8390
8391 #. type: verbatim
8392 #: ../src/guestfs-actions.pod:1415
8393 #, no-wrap
8394 msgid ""
8395 " int\n"
8396 " guestfs_exists (guestfs_h *g,\n"
8397 "                 const char *path);\n"
8398 "\n"
8399 msgstr ""
8400
8401 #. type: textblock
8402 #: ../src/guestfs-actions.pod:1419 ../fish/guestfish-actions.pod:936
8403 msgid ""
8404 "This returns C<true> if and only if there is a file, directory (or anything) "
8405 "with the given C<path> name."
8406 msgstr ""
8407
8408 #. type: textblock
8409 #: ../src/guestfs-actions.pod:1422
8410 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
8411 msgstr ""
8412
8413 #. type: =head2
8414 #: ../src/guestfs-actions.pod:1428
8415 msgid "guestfs_fallocate"
8416 msgstr ""
8417
8418 #. type: verbatim
8419 #: ../src/guestfs-actions.pod:1430
8420 #, no-wrap
8421 msgid ""
8422 " int\n"
8423 " guestfs_fallocate (guestfs_h *g,\n"
8424 "                    const char *path,\n"
8425 "                    int len);\n"
8426 "\n"
8427 msgstr ""
8428
8429 #. type: textblock
8430 #: ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1461
8431 #: ../fish/guestfish-actions.pod:945 ../fish/guestfish-actions.pod:964
8432 msgid ""
8433 "This command preallocates a file (containing zero bytes) named C<path> of "
8434 "size C<len> bytes.  If the file exists already, it is overwritten."
8435 msgstr ""
8436
8437 #. type: textblock
8438 #: ../src/guestfs-actions.pod:1439 ../fish/guestfish-actions.pod:949
8439 msgid ""
8440 "Do not confuse this with the guestfish-specific C<alloc> command which "
8441 "allocates a file in the host and attaches it as a device."
8442 msgstr ""
8443
8444 #. type: textblock
8445 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:953
8446 msgid ""
8447 "This function is deprecated.  In new code, use the C<fallocate64> call "
8448 "instead."
8449 msgstr ""
8450
8451 #. type: =head2
8452 #: ../src/guestfs-actions.pod:1454
8453 msgid "guestfs_fallocate64"
8454 msgstr ""
8455
8456 #. type: verbatim
8457 #: ../src/guestfs-actions.pod:1456
8458 #, no-wrap
8459 msgid ""
8460 " int\n"
8461 " guestfs_fallocate64 (guestfs_h *g,\n"
8462 "                      const char *path,\n"
8463 "                      int64_t len);\n"
8464 "\n"
8465 msgstr ""
8466
8467 #. type: textblock
8468 #: ../src/guestfs-actions.pod:1465
8469 msgid ""
8470 "Note that this call allocates disk blocks for the file.  To create a sparse "
8471 "file use C<guestfs_truncate_size> instead."
8472 msgstr ""
8473
8474 #. type: textblock
8475 #: ../src/guestfs-actions.pod:1468
8476 msgid ""
8477 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8478 "oversight it only allowed 30 bit lengths to be specified, effectively "
8479 "limiting the maximum size of files created through that call to 1GB."
8480 msgstr ""
8481
8482 #. type: textblock
8483 #: ../src/guestfs-actions.pod:1473 ../fish/guestfish-actions.pod:976
8484 msgid ""
8485 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8486 "commands which create a file in the host and attach it as a device."
8487 msgstr ""
8488
8489 #. type: textblock
8490 #: ../src/guestfs-actions.pod:1479
8491 msgid "(Added in 1.3.17)"
8492 msgstr ""
8493
8494 #. type: =head2
8495 #: ../src/guestfs-actions.pod:1481
8496 msgid "guestfs_fgrep"
8497 msgstr ""
8498
8499 #. type: verbatim
8500 #: ../src/guestfs-actions.pod:1483
8501 #, no-wrap
8502 msgid ""
8503 " char **\n"
8504 " guestfs_fgrep (guestfs_h *g,\n"
8505 "                const char *pattern,\n"
8506 "                const char *path);\n"
8507 "\n"
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../src/guestfs-actions.pod:1488 ../fish/guestfish-actions.pod:984
8512 msgid ""
8513 "This calls the external C<fgrep> program and returns the matching lines."
8514 msgstr ""
8515
8516 #. type: =head2
8517 #: ../src/guestfs-actions.pod:1500
8518 msgid "guestfs_fgrepi"
8519 msgstr ""
8520
8521 #. type: verbatim
8522 #: ../src/guestfs-actions.pod:1502
8523 #, no-wrap
8524 msgid ""
8525 " char **\n"
8526 " guestfs_fgrepi (guestfs_h *g,\n"
8527 "                 const char *pattern,\n"
8528 "                 const char *path);\n"
8529 "\n"
8530 msgstr ""
8531
8532 #. type: textblock
8533 #: ../src/guestfs-actions.pod:1507 ../fish/guestfish-actions.pod:994
8534 msgid ""
8535 "This calls the external C<fgrep -i> program and returns the matching lines."
8536 msgstr ""
8537
8538 #. type: =head2
8539 #: ../src/guestfs-actions.pod:1519
8540 msgid "guestfs_file"
8541 msgstr ""
8542
8543 #. type: verbatim
8544 #: ../src/guestfs-actions.pod:1521
8545 #, no-wrap
8546 msgid ""
8547 " char *\n"
8548 " guestfs_file (guestfs_h *g,\n"
8549 "               const char *path);\n"
8550 "\n"
8551 msgstr ""
8552
8553 #. type: textblock
8554 #: ../src/guestfs-actions.pod:1525 ../fish/guestfish-actions.pod:1004
8555 msgid ""
8556 "This call uses the standard L<file(1)> command to determine the type or "
8557 "contents of the file."
8558 msgstr ""
8559
8560 #. type: textblock
8561 #: ../src/guestfs-actions.pod:1528 ../fish/guestfish-actions.pod:1007
8562 msgid ""
8563 "This call will also transparently look inside various types of compressed "
8564 "file."
8565 msgstr ""
8566
8567 #. type: textblock
8568 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1010
8569 msgid ""
8570 "The exact command which runs is C<file -zb path>.  Note in particular that "
8571 "the filename is not prepended to the output (the C<-b> option)."
8572 msgstr ""
8573
8574 #. type: textblock
8575 #: ../src/guestfs-actions.pod:1535
8576 msgid ""
8577 "This command can also be used on C</dev/> devices (and partitions, LV "
8578 "names).  You can for example use this to determine if a device contains a "
8579 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
8580 msgstr ""
8581
8582 #. type: textblock
8583 #: ../src/guestfs-actions.pod:1540 ../fish/guestfish-actions.pod:1019
8584 msgid ""
8585 "If the C<path> does not begin with C</dev/> then this command only works for "
8586 "the content of regular files.  For other file types (directory, symbolic "
8587 "link etc) it will just return the string C<directory> etc."
8588 msgstr ""
8589
8590 #. type: =head2
8591 #: ../src/guestfs-actions.pod:1550
8592 msgid "guestfs_file_architecture"
8593 msgstr ""
8594
8595 #. type: verbatim
8596 #: ../src/guestfs-actions.pod:1552
8597 #, no-wrap
8598 msgid ""
8599 " char *\n"
8600 " guestfs_file_architecture (guestfs_h *g,\n"
8601 "                            const char *filename);\n"
8602 "\n"
8603 msgstr ""
8604
8605 #. type: textblock
8606 #: ../src/guestfs-actions.pod:1556 ../fish/guestfish-actions.pod:1028
8607 msgid ""
8608 "This detects the architecture of the binary C<filename>, and returns it if "
8609 "known."
8610 msgstr ""
8611
8612 #. type: textblock
8613 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1031
8614 msgid "Currently defined architectures are:"
8615 msgstr ""
8616
8617 #. type: =item
8618 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1035
8619 msgid "\"i386\""
8620 msgstr "\"i386\""
8621
8622 #. type: textblock
8623 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1037
8624 msgid ""
8625 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8626 "irrespective of the precise processor requirements of the binary."
8627 msgstr ""
8628
8629 #. type: =item
8630 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1040
8631 msgid "\"x86_64\""
8632 msgstr "\"x86_64\""
8633
8634 #. type: textblock
8635 #: ../src/guestfs-actions.pod:1570 ../fish/guestfish-actions.pod:1042
8636 msgid "64 bit x86-64."
8637 msgstr ""
8638
8639 #. type: =item
8640 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1044
8641 msgid "\"sparc\""
8642 msgstr ""
8643
8644 #. type: textblock
8645 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1046
8646 msgid "32 bit SPARC."
8647 msgstr ""
8648
8649 #. type: =item
8650 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1048
8651 msgid "\"sparc64\""
8652 msgstr ""
8653
8654 #. type: textblock
8655 #: ../src/guestfs-actions.pod:1578 ../fish/guestfish-actions.pod:1050
8656 msgid "64 bit SPARC V9 and above."
8657 msgstr ""
8658
8659 #. type: =item
8660 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1052
8661 msgid "\"ia64\""
8662 msgstr "\"ia64\""
8663
8664 #. type: textblock
8665 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:1054
8666 msgid "Intel Itanium."
8667 msgstr "Intel Itanium."
8668
8669 #. type: =item
8670 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1056
8671 msgid "\"ppc\""
8672 msgstr ""
8673
8674 #. type: textblock
8675 #: ../src/guestfs-actions.pod:1586 ../fish/guestfish-actions.pod:1058
8676 msgid "32 bit Power PC."
8677 msgstr ""
8678
8679 #. type: =item
8680 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1060
8681 msgid "\"ppc64\""
8682 msgstr ""
8683
8684 #. type: textblock
8685 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1062
8686 msgid "64 bit Power PC."
8687 msgstr ""
8688
8689 #. type: textblock
8690 #: ../src/guestfs-actions.pod:1594 ../fish/guestfish-actions.pod:1066
8691 msgid "Libguestfs may return other architecture strings in future."
8692 msgstr ""
8693
8694 #. type: textblock
8695 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1068
8696 msgid "The function works on at least the following types of files:"
8697 msgstr ""
8698
8699 #. type: textblock
8700 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1074
8701 msgid "many types of Un*x and Linux binary"
8702 msgstr ""
8703
8704 #. type: textblock
8705 #: ../src/guestfs-actions.pod:1606 ../fish/guestfish-actions.pod:1078
8706 msgid "many types of Un*x and Linux shared library"
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1082
8711 msgid "Windows Win32 and Win64 binaries"
8712 msgstr ""
8713
8714 #. type: textblock
8715 #: ../src/guestfs-actions.pod:1614 ../fish/guestfish-actions.pod:1086
8716 msgid "Windows Win32 and Win64 DLLs"
8717 msgstr ""
8718
8719 #. type: textblock
8720 #: ../src/guestfs-actions.pod:1616 ../fish/guestfish-actions.pod:1088
8721 msgid "Win32 binaries and DLLs return C<i386>."
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../src/guestfs-actions.pod:1618 ../fish/guestfish-actions.pod:1090
8726 msgid "Win64 binaries and DLLs return C<x86_64>."
8727 msgstr ""
8728
8729 #. type: textblock
8730 #: ../src/guestfs-actions.pod:1622 ../fish/guestfish-actions.pod:1094
8731 msgid "Linux kernel modules"
8732 msgstr ""
8733
8734 #. type: textblock
8735 #: ../src/guestfs-actions.pod:1626 ../fish/guestfish-actions.pod:1098
8736 msgid "Linux new-style initrd images"
8737 msgstr ""
8738
8739 #. type: textblock
8740 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1102
8741 msgid "some non-x86 Linux vmlinuz kernels"
8742 msgstr ""
8743
8744 #. type: textblock
8745 #: ../src/guestfs-actions.pod:1634 ../fish/guestfish-actions.pod:1106
8746 msgid "What it can't do currently:"
8747 msgstr ""
8748
8749 #. type: textblock
8750 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1112
8751 msgid "static libraries (libfoo.a)"
8752 msgstr ""
8753
8754 #. type: textblock
8755 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1116
8756 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8757 msgstr ""
8758
8759 #. type: textblock
8760 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1120
8761 msgid "x86 Linux vmlinuz kernels"
8762 msgstr ""
8763
8764 #. type: textblock
8765 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1122
8766 msgid ""
8767 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8768 "compressed code, and are horribly hard to unpack.  If you want to find the "
8769 "architecture of a kernel, use the architecture of the associated initrd or "
8770 "kernel module(s) instead."
8771 msgstr ""
8772
8773 #. type: textblock
8774 #: ../src/guestfs-actions.pod:1660 ../src/guestfs-actions.pod:1823
8775 #: ../src/guestfs-actions.pod:1840 ../src/guestfs-actions.pod:2531
8776 #: ../src/guestfs-actions.pod:2616 ../src/guestfs-actions.pod:2686
8777 #: ../src/guestfs-actions.pod:2774 ../src/guestfs-actions.pod:2795
8778 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:2922
8779 #: ../src/guestfs-actions.pod:3019 ../src/guestfs-actions.pod:3266
8780 #: ../src/guestfs-actions.pod:3398
8781 msgid "(Added in 1.5.3)"
8782 msgstr ""
8783
8784 #. type: =head2
8785 #: ../src/guestfs-actions.pod:1662
8786 msgid "guestfs_filesize"
8787 msgstr ""
8788
8789 #. type: verbatim
8790 #: ../src/guestfs-actions.pod:1664
8791 #, no-wrap
8792 msgid ""
8793 " int64_t\n"
8794 " guestfs_filesize (guestfs_h *g,\n"
8795 "                   const char *file);\n"
8796 "\n"
8797 msgstr ""
8798
8799 #. type: textblock
8800 #: ../src/guestfs-actions.pod:1668 ../fish/guestfish-actions.pod:1133
8801 msgid "This command returns the size of C<file> in bytes."
8802 msgstr ""
8803
8804 #. type: textblock
8805 #: ../src/guestfs-actions.pod:1670
8806 msgid ""
8807 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
8808 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
8809 "devices, use C<guestfs_blockdev_getsize64>."
8810 msgstr ""
8811
8812 #. type: textblock
8813 #: ../src/guestfs-actions.pod:1676
8814 msgid "(Added in 1.0.82)"
8815 msgstr ""
8816
8817 #. type: =head2
8818 #: ../src/guestfs-actions.pod:1678
8819 msgid "guestfs_fill"
8820 msgstr ""
8821
8822 #. type: verbatim
8823 #: ../src/guestfs-actions.pod:1680
8824 #, no-wrap
8825 msgid ""
8826 " int\n"
8827 " guestfs_fill (guestfs_h *g,\n"
8828 "               int c,\n"
8829 "               int len,\n"
8830 "               const char *path);\n"
8831 "\n"
8832 msgstr ""
8833
8834 #. type: textblock
8835 #: ../src/guestfs-actions.pod:1686 ../fish/guestfish-actions.pod:1143
8836 msgid ""
8837 "This command creates a new file called C<path>.  The initial content of the "
8838 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8839 "[0..255]>."
8840 msgstr ""
8841
8842 #. type: textblock
8843 #: ../src/guestfs-actions.pod:1690
8844 msgid ""
8845 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8846 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
8847 "bytes use C<guestfs_fill_pattern>."
8848 msgstr ""
8849
8850 #. type: textblock
8851 #: ../src/guestfs-actions.pod:1702
8852 msgid "(Added in 1.0.79)"
8853 msgstr ""
8854
8855 #. type: =head2
8856 #: ../src/guestfs-actions.pod:1704
8857 msgid "guestfs_fill_pattern"
8858 msgstr ""
8859
8860 #. type: verbatim
8861 #: ../src/guestfs-actions.pod:1706
8862 #, no-wrap
8863 msgid ""
8864 " int\n"
8865 " guestfs_fill_pattern (guestfs_h *g,\n"
8866 "                       const char *pattern,\n"
8867 "                       int len,\n"
8868 "                       const char *path);\n"
8869 "\n"
8870 msgstr ""
8871
8872 #. type: textblock
8873 #: ../src/guestfs-actions.pod:1712
8874 msgid ""
8875 "This function is like C<guestfs_fill> except that it creates a new file of "
8876 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
8877 "pattern is truncated if necessary to ensure the length of the file is "
8878 "exactly C<len> bytes."
8879 msgstr ""
8880
8881 #. type: textblock
8882 #: ../src/guestfs-actions.pod:1724
8883 msgid "(Added in 1.3.12)"
8884 msgstr ""
8885
8886 #. type: =head2
8887 #: ../src/guestfs-actions.pod:1726
8888 msgid "guestfs_find"
8889 msgstr ""
8890
8891 #. type: verbatim
8892 #: ../src/guestfs-actions.pod:1728
8893 #, no-wrap
8894 msgid ""
8895 " char **\n"
8896 " guestfs_find (guestfs_h *g,\n"
8897 "               const char *directory);\n"
8898 "\n"
8899 msgstr ""
8900
8901 #. type: textblock
8902 #: ../src/guestfs-actions.pod:1732 ../fish/guestfish-actions.pod:1165
8903 msgid ""
8904 "This command lists out all files and directories, recursively, starting at "
8905 "C<directory>.  It is essentially equivalent to running the shell command "
8906 "C<find directory -print> but some post-processing happens on the output, "
8907 "described below."
8908 msgstr ""
8909
8910 #. type: textblock
8911 #: ../src/guestfs-actions.pod:1737 ../fish/guestfish-actions.pod:1170
8912 msgid ""
8913 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8914 "structure was:"
8915 msgstr ""
8916
8917 #. type: verbatim
8918 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1173
8919 #, no-wrap
8920 msgid ""
8921 " /tmp/a\n"
8922 " /tmp/b\n"
8923 " /tmp/c/d\n"
8924 "\n"
8925 msgstr ""
8926
8927 #. type: textblock
8928 #: ../src/guestfs-actions.pod:1744
8929 msgid ""
8930 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
8931 msgstr ""
8932
8933 #. type: verbatim
8934 #: ../src/guestfs-actions.pod:1747 ../fish/guestfish-actions.pod:1180
8935 #, no-wrap
8936 msgid ""
8937 " a\n"
8938 " b\n"
8939 " c\n"
8940 " c/d\n"
8941 "\n"
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../src/guestfs-actions.pod:1752 ../fish/guestfish-actions.pod:1185
8946 msgid "If C<directory> is not a directory, then this command returns an error."
8947 msgstr ""
8948
8949 #. type: textblock
8950 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1188
8951 msgid "The returned list is sorted."
8952 msgstr ""
8953
8954 #. type: textblock
8955 #: ../src/guestfs-actions.pod:1757
8956 msgid "See also C<guestfs_find0>."
8957 msgstr ""
8958
8959 #. type: textblock
8960 #: ../src/guestfs-actions.pod:1766 ../src/guestfs-actions.pod:4092
8961 #: ../src/guestfs-actions.pod:5635
8962 msgid "(Added in 1.0.27)"
8963 msgstr ""
8964
8965 #. type: =head2
8966 #: ../src/guestfs-actions.pod:1768
8967 msgid "guestfs_find0"
8968 msgstr ""
8969
8970 #. type: verbatim
8971 #: ../src/guestfs-actions.pod:1770
8972 #, no-wrap
8973 msgid ""
8974 " int\n"
8975 " guestfs_find0 (guestfs_h *g,\n"
8976 "                const char *directory,\n"
8977 "                const char *files);\n"
8978 "\n"
8979 msgstr ""
8980
8981 #. type: textblock
8982 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1199
8983 msgid ""
8984 "This command lists out all files and directories, recursively, starting at "
8985 "C<directory>, placing the resulting list in the external file called "
8986 "C<files>."
8987 msgstr ""
8988
8989 #. type: textblock
8990 #: ../src/guestfs-actions.pod:1779
8991 msgid ""
8992 "This command works the same way as C<guestfs_find> with the following "
8993 "exceptions:"
8994 msgstr ""
8995
8996 #. type: textblock
8997 #: ../src/guestfs-actions.pod:1786 ../fish/guestfish-actions.pod:1210
8998 msgid "The resulting list is written to an external file."
8999 msgstr ""
9000
9001 #. type: textblock
9002 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1214
9003 msgid ""
9004 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9005 "L<find(1)> option I<-print0>."
9006 msgstr ""
9007
9008 #. type: textblock
9009 #: ../src/guestfs-actions.pod:1795 ../fish/guestfish-actions.pod:1219
9010 msgid "This command is not limited in the number of names that it can return."
9011 msgstr ""
9012
9013 #. type: textblock
9014 #: ../src/guestfs-actions.pod:1800 ../fish/guestfish-actions.pod:1224
9015 msgid "The result list is not sorted."
9016 msgstr ""
9017
9018 #. type: textblock
9019 #: ../src/guestfs-actions.pod:1806
9020 msgid "(Added in 1.0.74)"
9021 msgstr ""
9022
9023 #. type: =head2
9024 #: ../src/guestfs-actions.pod:1808
9025 msgid "guestfs_findfs_label"
9026 msgstr ""
9027
9028 #. type: verbatim
9029 #: ../src/guestfs-actions.pod:1810
9030 #, no-wrap
9031 msgid ""
9032 " char *\n"
9033 " guestfs_findfs_label (guestfs_h *g,\n"
9034 "                       const char *label);\n"
9035 "\n"
9036 msgstr ""
9037
9038 #. type: textblock
9039 #: ../src/guestfs-actions.pod:1814 ../fish/guestfish-actions.pod:1234
9040 msgid ""
9041 "This command searches the filesystems and returns the one which has the "
9042 "given label.  An error is returned if no such filesystem can be found."
9043 msgstr ""
9044
9045 #. type: textblock
9046 #: ../src/guestfs-actions.pod:1818
9047 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9048 msgstr ""
9049
9050 #. type: =head2
9051 #: ../src/guestfs-actions.pod:1825
9052 msgid "guestfs_findfs_uuid"
9053 msgstr ""
9054
9055 #. type: verbatim
9056 #: ../src/guestfs-actions.pod:1827
9057 #, no-wrap
9058 msgid ""
9059 " char *\n"
9060 " guestfs_findfs_uuid (guestfs_h *g,\n"
9061 "                      const char *uuid);\n"
9062 "\n"
9063 msgstr ""
9064
9065 #. type: textblock
9066 #: ../src/guestfs-actions.pod:1831 ../fish/guestfish-actions.pod:1244
9067 msgid ""
9068 "This command searches the filesystems and returns the one which has the "
9069 "given UUID.  An error is returned if no such filesystem can be found."
9070 msgstr ""
9071
9072 #. type: textblock
9073 #: ../src/guestfs-actions.pod:1835
9074 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9075 msgstr ""
9076
9077 #. type: =head2
9078 #: ../src/guestfs-actions.pod:1842
9079 msgid "guestfs_fsck"
9080 msgstr ""
9081
9082 #. type: verbatim
9083 #: ../src/guestfs-actions.pod:1844
9084 #, no-wrap
9085 msgid ""
9086 " int\n"
9087 " guestfs_fsck (guestfs_h *g,\n"
9088 "               const char *fstype,\n"
9089 "               const char *device);\n"
9090 "\n"
9091 msgstr ""
9092
9093 #. type: textblock
9094 #: ../src/guestfs-actions.pod:1849 ../fish/guestfish-actions.pod:1254
9095 msgid ""
9096 "This runs the filesystem checker (fsck) on C<device> which should have "
9097 "filesystem type C<fstype>."
9098 msgstr ""
9099
9100 #. type: textblock
9101 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1257
9102 msgid ""
9103 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9104 "codes from C<fsck>."
9105 msgstr ""
9106
9107 #. type: textblock
9108 #: ../src/guestfs-actions.pod:1861 ../fish/guestfish-actions.pod:1266
9109 msgid "Multiple status codes can be summed together."
9110 msgstr ""
9111
9112 #. type: textblock
9113 #: ../src/guestfs-actions.pod:1865 ../fish/guestfish-actions.pod:1270
9114 msgid ""
9115 "A non-zero return code can mean \"success\", for example if errors have been "
9116 "corrected on the filesystem."
9117 msgstr ""
9118
9119 #. type: textblock
9120 #: ../src/guestfs-actions.pod:1870 ../fish/guestfish-actions.pod:1275
9121 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9122 msgstr ""
9123
9124 #. type: textblock
9125 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1280
9126 msgid ""
9127 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9128 msgstr ""
9129
9130 #. type: textblock
9131 #: ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:7331
9132 msgid "(Added in 1.0.16)"
9133 msgstr ""
9134
9135 #. type: =head2
9136 #: ../src/guestfs-actions.pod:1881
9137 msgid "guestfs_get_append"
9138 msgstr ""
9139
9140 #. type: verbatim
9141 #: ../src/guestfs-actions.pod:1883
9142 #, no-wrap
9143 msgid ""
9144 " const char *\n"
9145 " guestfs_get_append (guestfs_h *g);\n"
9146 "\n"
9147 msgstr ""
9148
9149 #. type: textblock
9150 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1286
9151 msgid ""
9152 "Return the additional kernel options which are added to the guest kernel "
9153 "command line."
9154 msgstr ""
9155
9156 #. type: textblock
9157 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1289
9158 msgid "If C<NULL> then no options are added."
9159 msgstr ""
9160
9161 #. type: textblock
9162 #: ../src/guestfs-actions.pod:1891
9163 msgid ""
9164 "This function returns a string which may be NULL.  There is no way to return "
9165 "an error from this function.  The string is owned by the guest handle and "
9166 "must I<not> be freed."
9167 msgstr ""
9168
9169 #. type: textblock
9170 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:5313
9171 #: ../src/guestfs-actions.pod:5793 ../src/guestfs-actions.pod:6193
9172 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:6228
9173 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:7002
9174 #: ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7374
9175 msgid "(Added in 1.0.26)"
9176 msgstr ""
9177
9178 #. type: =head2
9179 #: ../src/guestfs-actions.pod:1897
9180 msgid "guestfs_get_attach_method"
9181 msgstr ""
9182
9183 #. type: verbatim
9184 #: ../src/guestfs-actions.pod:1899
9185 #, no-wrap
9186 msgid ""
9187 " char *\n"
9188 " guestfs_get_attach_method (guestfs_h *g);\n"
9189 "\n"
9190 msgstr ""
9191
9192 #. type: textblock
9193 #: ../src/guestfs-actions.pod:1902
9194 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
9195 msgstr ""
9196
9197 #. type: =head2
9198 #: ../src/guestfs-actions.pod:1907
9199 msgid "guestfs_get_autosync"
9200 msgstr ""
9201
9202 #. type: verbatim
9203 #: ../src/guestfs-actions.pod:1909
9204 #, no-wrap
9205 msgid ""
9206 " int\n"
9207 " guestfs_get_autosync (guestfs_h *g);\n"
9208 "\n"
9209 msgstr ""
9210
9211 #. type: textblock
9212 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1301
9213 msgid "Get the autosync flag."
9214 msgstr ""
9215
9216 #. type: =head2
9217 #: ../src/guestfs-actions.pod:1918
9218 msgid "guestfs_get_direct"
9219 msgstr ""
9220
9221 #. type: verbatim
9222 #: ../src/guestfs-actions.pod:1920
9223 #, no-wrap
9224 msgid ""
9225 " int\n"
9226 " guestfs_get_direct (guestfs_h *g);\n"
9227 "\n"
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1307
9232 msgid "Return the direct appliance mode flag."
9233 msgstr ""
9234
9235 #. type: textblock
9236 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:5862
9237 msgid "(Added in 1.0.72)"
9238 msgstr ""
9239
9240 #. type: =head2
9241 #: ../src/guestfs-actions.pod:1929
9242 msgid "guestfs_get_e2label"
9243 msgstr ""
9244
9245 #. type: verbatim
9246 #: ../src/guestfs-actions.pod:1931
9247 #, no-wrap
9248 msgid ""
9249 " char *\n"
9250 " guestfs_get_e2label (guestfs_h *g,\n"
9251 "                      const char *device);\n"
9252 "\n"
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1313
9257 msgid ""
9258 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9259 msgstr ""
9260
9261 #. type: textblock
9262 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1316
9263 msgid ""
9264 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
9265 msgstr ""
9266
9267 #. type: textblock
9268 #: ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:1969
9269 #: ../src/guestfs-actions.pod:5880 ../src/guestfs-actions.pod:5899
9270 msgid "(Added in 1.0.15)"
9271 msgstr ""
9272
9273 #. type: =head2
9274 #: ../src/guestfs-actions.pod:1950
9275 msgid "guestfs_get_e2uuid"
9276 msgstr ""
9277
9278 #. type: verbatim
9279 #: ../src/guestfs-actions.pod:1952
9280 #, no-wrap
9281 msgid ""
9282 " char *\n"
9283 " guestfs_get_e2uuid (guestfs_h *g,\n"
9284 "                     const char *device);\n"
9285 "\n"
9286 msgstr ""
9287
9288 #. type: textblock
9289 #: ../src/guestfs-actions.pod:1956 ../fish/guestfish-actions.pod:1327
9290 msgid ""
9291 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9292 msgstr ""
9293
9294 #. type: textblock
9295 #: ../src/guestfs-actions.pod:1962 ../fish/guestfish-actions.pod:1330
9296 msgid ""
9297 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9298 msgstr ""
9299
9300 #. type: =head2
9301 #: ../src/guestfs-actions.pod:1971
9302 msgid "guestfs_get_memsize"
9303 msgstr ""
9304
9305 #. type: verbatim
9306 #: ../src/guestfs-actions.pod:1973
9307 #, no-wrap
9308 msgid ""
9309 " int\n"
9310 " guestfs_get_memsize (guestfs_h *g);\n"
9311 "\n"
9312 msgstr ""
9313
9314 #. type: textblock
9315 #: ../src/guestfs-actions.pod:1976 ../fish/guestfish-actions.pod:1341
9316 msgid ""
9317 "This gets the memory size in megabytes allocated to the qemu subprocess."
9318 msgstr ""
9319
9320 #. type: textblock
9321 #: ../src/guestfs-actions.pod:1979
9322 msgid ""
9323 "If C<guestfs_set_memsize> was not called on this handle, and if "
9324 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9325 "value for memsize."
9326 msgstr ""
9327
9328 #. type: textblock
9329 #: ../src/guestfs-actions.pod:1983 ../src/guestfs-actions.pod:2064
9330 #: ../src/guestfs-actions.pod:5915 ../src/guestfs-actions.pod:6022
9331 #: ../fish/guestfish-actions.pod:1348 ../fish/guestfish-actions.pod:1399
9332 #: ../fish/guestfish-actions.pod:3985 ../fish/guestfish-actions.pod:4072
9333 msgid ""
9334 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9335 msgstr ""
9336
9337 #. type: textblock
9338 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:4383
9339 #: ../src/guestfs-actions.pod:4580 ../src/guestfs-actions.pod:4599
9340 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4630
9341 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4660
9342 #: ../src/guestfs-actions.pod:5538 ../src/guestfs-actions.pod:5920
9343 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6768
9344 msgid "(Added in 1.0.55)"
9345 msgstr ""
9346
9347 #. type: =head2
9348 #: ../src/guestfs-actions.pod:1990
9349 msgid "guestfs_get_network"
9350 msgstr ""
9351
9352 #. type: verbatim
9353 #: ../src/guestfs-actions.pod:1992
9354 #, no-wrap
9355 msgid ""
9356 " int\n"
9357 " guestfs_get_network (guestfs_h *g);\n"
9358 "\n"
9359 msgstr ""
9360
9361 #. type: textblock
9362 #: ../src/guestfs-actions.pod:1995 ../fish/guestfish-actions.pod:1355
9363 msgid "This returns the enable network flag."
9364 msgstr ""
9365
9366 #. type: textblock
9367 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:5939
9368 msgid "(Added in 1.5.4)"
9369 msgstr ""
9370
9371 #. type: =head2
9372 #: ../src/guestfs-actions.pod:2001
9373 msgid "guestfs_get_path"
9374 msgstr ""
9375
9376 #. type: verbatim
9377 #: ../src/guestfs-actions.pod:2003
9378 #, no-wrap
9379 msgid ""
9380 " const char *\n"
9381 " guestfs_get_path (guestfs_h *g);\n"
9382 "\n"
9383 msgstr ""
9384
9385 #. type: textblock
9386 #: ../src/guestfs-actions.pod:2006 ../fish/guestfish-actions.pod:1361
9387 msgid "Return the current search path."
9388 msgstr ""
9389
9390 #. type: textblock
9391 #: ../src/guestfs-actions.pod:2008 ../fish/guestfish-actions.pod:1363
9392 msgid ""
9393 "This is always non-NULL.  If it wasn't set already, then this will return "
9394 "the default path."
9395 msgstr ""
9396
9397 #. type: textblock
9398 #: ../src/guestfs-actions.pod:2011 ../src/guestfs-actions.pod:2040
9399 msgid ""
9400 "This function returns a string, or NULL on error.  The string is owned by "
9401 "the guest handle and must I<not> be freed."
9402 msgstr ""
9403
9404 #. type: =head2
9405 #: ../src/guestfs-actions.pod:2016
9406 msgid "guestfs_get_pid"
9407 msgstr ""
9408
9409 #. type: verbatim
9410 #: ../src/guestfs-actions.pod:2018
9411 #, no-wrap
9412 msgid ""
9413 " int\n"
9414 " guestfs_get_pid (guestfs_h *g);\n"
9415 "\n"
9416 msgstr ""
9417
9418 #. type: textblock
9419 #: ../src/guestfs-actions.pod:2021 ../fish/guestfish-actions.pod:1372
9420 msgid ""
9421 "Return the process ID of the qemu subprocess.  If there is no qemu "
9422 "subprocess, then this will return an error."
9423 msgstr ""
9424
9425 #. type: textblock
9426 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1375
9427 msgid "This is an internal call used for debugging and testing."
9428 msgstr ""
9429
9430 #. type: textblock
9431 #: ../src/guestfs-actions.pod:2028
9432 msgid "(Added in 1.0.56)"
9433 msgstr ""
9434
9435 #. type: =head2
9436 #: ../src/guestfs-actions.pod:2030
9437 msgid "guestfs_get_qemu"
9438 msgstr ""
9439
9440 #. type: verbatim
9441 #: ../src/guestfs-actions.pod:2032
9442 #, no-wrap
9443 msgid ""
9444 " const char *\n"
9445 " guestfs_get_qemu (guestfs_h *g);\n"
9446 "\n"
9447 msgstr ""
9448
9449 #. type: textblock
9450 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1381
9451 msgid "Return the current qemu binary."
9452 msgstr ""
9453
9454 #. type: textblock
9455 #: ../src/guestfs-actions.pod:2037 ../fish/guestfish-actions.pod:1383
9456 msgid ""
9457 "This is always non-NULL.  If it wasn't set already, then this will return "
9458 "the default qemu binary name."
9459 msgstr ""
9460
9461 #. type: textblock
9462 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:5984
9463 msgid "(Added in 1.0.6)"
9464 msgstr ""
9465
9466 #. type: =head2
9467 #: ../src/guestfs-actions.pod:2045
9468 msgid "guestfs_get_recovery_proc"
9469 msgstr ""
9470
9471 #. type: verbatim
9472 #: ../src/guestfs-actions.pod:2047
9473 #, no-wrap
9474 msgid ""
9475 " int\n"
9476 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9477 "\n"
9478 msgstr ""
9479
9480 #. type: textblock
9481 #: ../src/guestfs-actions.pod:2050 ../fish/guestfish-actions.pod:1390
9482 msgid "Return the recovery process enabled flag."
9483 msgstr ""
9484
9485 #. type: textblock
9486 #: ../src/guestfs-actions.pod:2054 ../src/guestfs-actions.pod:3493
9487 #: ../src/guestfs-actions.pod:3790 ../src/guestfs-actions.pod:4190
9488 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:5243
9489 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:6008
9490 #: ../src/guestfs-actions.pod:6671 ../src/guestfs-actions.pod:6691
9491 #: ../src/guestfs-actions.pod:6883
9492 msgid "(Added in 1.0.77)"
9493 msgstr ""
9494
9495 #. type: =head2
9496 #: ../src/guestfs-actions.pod:2056
9497 msgid "guestfs_get_selinux"
9498 msgstr ""
9499
9500 #. type: verbatim
9501 #: ../src/guestfs-actions.pod:2058
9502 #, no-wrap
9503 msgid ""
9504 " int\n"
9505 " guestfs_get_selinux (guestfs_h *g);\n"
9506 "\n"
9507 msgstr ""
9508
9509 #. type: textblock
9510 #: ../src/guestfs-actions.pod:2061
9511 msgid ""
9512 "This returns the current setting of the selinux flag which is passed to the "
9513 "appliance at boot time.  See C<guestfs_set_selinux>."
9514 msgstr ""
9515
9516 #. type: textblock
9517 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2132
9518 #: ../src/guestfs-actions.pod:6027 ../src/guestfs-actions.pod:6085
9519 msgid "(Added in 1.0.67)"
9520 msgstr ""
9521
9522 #. type: =head2
9523 #: ../src/guestfs-actions.pod:2071
9524 msgid "guestfs_get_state"
9525 msgstr ""
9526
9527 #. type: verbatim
9528 #: ../src/guestfs-actions.pod:2073
9529 #, no-wrap
9530 msgid ""
9531 " int\n"
9532 " guestfs_get_state (guestfs_h *g);\n"
9533 "\n"
9534 msgstr ""
9535
9536 #. type: textblock
9537 #: ../src/guestfs-actions.pod:2076 ../fish/guestfish-actions.pod:1406
9538 msgid ""
9539 "This returns the current state as an opaque integer.  This is only useful "
9540 "for printing debug and internal error messages."
9541 msgstr ""
9542
9543 #. type: textblock
9544 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:3291
9545 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3381
9546 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:1409
9547 #: ../fish/guestfish-actions.pod:2315 ../fish/guestfish-actions.pod:2333
9548 #: ../fish/guestfish-actions.pod:2371 ../fish/guestfish-actions.pod:2387
9549 msgid "For more information on states, see L<guestfs(3)>."
9550 msgstr ""
9551
9552 #. type: =head2
9553 #: ../src/guestfs-actions.pod:2085
9554 msgid "guestfs_get_trace"
9555 msgstr ""
9556
9557 #. type: verbatim
9558 #: ../src/guestfs-actions.pod:2087
9559 #, no-wrap
9560 msgid ""
9561 " int\n"
9562 " guestfs_get_trace (guestfs_h *g);\n"
9563 "\n"
9564 msgstr ""
9565
9566 #. type: textblock
9567 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1415
9568 msgid "Return the command trace flag."
9569 msgstr ""
9570
9571 #. type: =head2
9572 #: ../src/guestfs-actions.pod:2096
9573 msgid "guestfs_get_umask"
9574 msgstr ""
9575
9576 #. type: verbatim
9577 #: ../src/guestfs-actions.pod:2098
9578 #, no-wrap
9579 msgid ""
9580 " int\n"
9581 " guestfs_get_umask (guestfs_h *g);\n"
9582 "\n"
9583 msgstr ""
9584
9585 #. type: textblock
9586 #: ../src/guestfs-actions.pod:2101
9587 msgid ""
9588 "Return the current umask.  By default the umask is C<022> unless it has been "
9589 "set by calling C<guestfs_umask>."
9590 msgstr ""
9591
9592 #. type: =head2
9593 #: ../src/guestfs-actions.pod:2108
9594 msgid "guestfs_get_verbose"
9595 msgstr ""
9596
9597 #. type: verbatim
9598 #: ../src/guestfs-actions.pod:2110
9599 #, no-wrap
9600 msgid ""
9601 " int\n"
9602 " guestfs_get_verbose (guestfs_h *g);\n"
9603 "\n"
9604 msgstr ""
9605
9606 #. type: textblock
9607 #: ../src/guestfs-actions.pod:2113 ../fish/guestfish-actions.pod:1428
9608 msgid "This returns the verbose messages flag."
9609 msgstr ""
9610
9611 #. type: =head2
9612 #: ../src/guestfs-actions.pod:2119
9613 msgid "guestfs_getcon"
9614 msgstr ""
9615
9616 #. type: verbatim
9617 #: ../src/guestfs-actions.pod:2121
9618 #, no-wrap
9619 msgid ""
9620 " char *\n"
9621 " guestfs_getcon (guestfs_h *g);\n"
9622 "\n"
9623 msgstr ""
9624
9625 #. type: textblock
9626 #: ../src/guestfs-actions.pod:2124 ../fish/guestfish-actions.pod:1434
9627 msgid "This gets the SELinux security context of the daemon."
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../src/guestfs-actions.pod:2126
9632 msgid ""
9633 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
9634 msgstr ""
9635
9636 #. type: =head2
9637 #: ../src/guestfs-actions.pod:2134
9638 msgid "guestfs_getxattr"
9639 msgstr ""
9640
9641 #. type: verbatim
9642 #: ../src/guestfs-actions.pod:2136
9643 #, no-wrap
9644 msgid ""
9645 " char *\n"
9646 " guestfs_getxattr (guestfs_h *g,\n"
9647 "                   const char *path,\n"
9648 "                   const char *name,\n"
9649 "                   size_t *size_r);\n"
9650 "\n"
9651 msgstr ""
9652
9653 #. type: textblock
9654 #: ../src/guestfs-actions.pod:2142
9655 msgid ""
9656 "Get a single extended attribute from file C<path> named C<name>.  This call "
9657 "follows symlinks.  If you want to lookup an extended attribute for the "
9658 "symlink itself, use C<guestfs_lgetxattr>."
9659 msgstr ""
9660
9661 #. type: textblock
9662 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:3507
9663 msgid ""
9664 "Normally it is better to get all extended attributes from a file in one go "
9665 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
9666 "implementations are buggy and do not provide a way to list out attributes.  "
9667 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
9668 "extended attributes you want in advance and call this function."
9669 msgstr ""
9670
9671 #. type: textblock
9672 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:3514
9673 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:2452
9674 msgid ""
9675 "Extended attribute values are blobs of binary data.  If there is no extended "
9676 "attribute named C<name>, this returns an error."
9677 msgstr ""
9678
9679 #. type: textblock
9680 #: ../src/guestfs-actions.pod:2156
9681 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
9682 msgstr ""
9683
9684 #. type: textblock
9685 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:2349
9686 #: ../src/guestfs-actions.pod:3519 ../src/guestfs-actions.pod:5236
9687 #: ../src/guestfs-actions.pod:5262 ../src/guestfs-actions.pod:5443
9688 msgid ""
9689 "This function returns a buffer, or NULL on error.  The size of the returned "
9690 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
9691 "after use>."
9692 msgstr ""
9693
9694 #. type: textblock
9695 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:3523
9696 msgid "(Added in 1.7.24)"
9697 msgstr ""
9698
9699 #. type: =head2
9700 #: ../src/guestfs-actions.pod:2164
9701 msgid "guestfs_getxattrs"
9702 msgstr ""
9703
9704 #. type: verbatim
9705 #: ../src/guestfs-actions.pod:2166
9706 #, no-wrap
9707 msgid ""
9708 " struct guestfs_xattr_list *\n"
9709 " guestfs_getxattrs (guestfs_h *g,\n"
9710 "                    const char *path);\n"
9711 "\n"
9712 msgstr ""
9713
9714 #. type: textblock
9715 #: ../src/guestfs-actions.pod:2170 ../fish/guestfish-actions.pod:1463
9716 msgid ""
9717 "This call lists the extended attributes of the file or directory C<path>."
9718 msgstr ""
9719
9720 #. type: textblock
9721 #: ../src/guestfs-actions.pod:2173 ../fish/guestfish-actions.pod:1466
9722 msgid ""
9723 "At the system call level, this is a combination of the L<listxattr(2)> and "
9724 "L<getxattr(2)> calls."
9725 msgstr ""
9726
9727 #. type: textblock
9728 #: ../src/guestfs-actions.pod:2176
9729 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
9730 msgstr ""
9731
9732 #. type: textblock
9733 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:3535
9734 #: ../src/guestfs-actions.pod:4186
9735 msgid ""
9736 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
9737 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
9738 msgstr ""
9739
9740 #. type: textblock
9741 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:3539
9742 #: ../src/guestfs-actions.pod:3704 ../src/guestfs-actions.pod:3740
9743 #: ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:6104
9744 #: ../src/guestfs-actions.pod:7439
9745 msgid "(Added in 1.0.59)"
9746 msgstr ""
9747
9748 #. type: =head2
9749 #: ../src/guestfs-actions.pod:2184
9750 msgid "guestfs_glob_expand"
9751 msgstr ""
9752
9753 #. type: verbatim
9754 #: ../src/guestfs-actions.pod:2186
9755 #, no-wrap
9756 msgid ""
9757 " char **\n"
9758 " guestfs_glob_expand (guestfs_h *g,\n"
9759 "                      const char *pattern);\n"
9760 "\n"
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../src/guestfs-actions.pod:2190 ../fish/guestfish-actions.pod:1475
9765 msgid ""
9766 "This command searches for all the pathnames matching C<pattern> according to "
9767 "the wildcard expansion rules used by the shell."
9768 msgstr ""
9769
9770 #. type: textblock
9771 #: ../src/guestfs-actions.pod:2194 ../fish/guestfish-actions.pod:1479
9772 msgid ""
9773 "If no paths match, then this returns an empty list (note: not an error)."
9774 msgstr ""
9775
9776 #. type: textblock
9777 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1482
9778 msgid ""
9779 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9780 "GLOB_BRACE>.  See that manual page for more details."
9781 msgstr ""
9782
9783 #. type: textblock
9784 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6269
9785 #: ../src/guestfs-actions.pod:6286
9786 msgid "(Added in 1.0.50)"
9787 msgstr ""
9788
9789 #. type: =head2
9790 #: ../src/guestfs-actions.pod:2207
9791 msgid "guestfs_grep"
9792 msgstr ""
9793
9794 #. type: verbatim
9795 #: ../src/guestfs-actions.pod:2209
9796 #, no-wrap
9797 msgid ""
9798 " char **\n"
9799 " guestfs_grep (guestfs_h *g,\n"
9800 "               const char *regex,\n"
9801 "               const char *path);\n"
9802 "\n"
9803 msgstr ""
9804
9805 #. type: textblock
9806 #: ../src/guestfs-actions.pod:2214 ../fish/guestfish-actions.pod:1490
9807 msgid "This calls the external C<grep> program and returns the matching lines."
9808 msgstr ""
9809
9810 #. type: =head2
9811 #: ../src/guestfs-actions.pod:2226
9812 msgid "guestfs_grepi"
9813 msgstr ""
9814
9815 #. type: verbatim
9816 #: ../src/guestfs-actions.pod:2228
9817 #, no-wrap
9818 msgid ""
9819 " char **\n"
9820 " guestfs_grepi (guestfs_h *g,\n"
9821 "                const char *regex,\n"
9822 "                const char *path);\n"
9823 "\n"
9824 msgstr ""
9825
9826 #. type: textblock
9827 #: ../src/guestfs-actions.pod:2233 ../fish/guestfish-actions.pod:1500
9828 msgid ""
9829 "This calls the external C<grep -i> program and returns the matching lines."
9830 msgstr ""
9831
9832 #. type: =head2
9833 #: ../src/guestfs-actions.pod:2245
9834 msgid "guestfs_grub_install"
9835 msgstr ""
9836
9837 #. type: verbatim
9838 #: ../src/guestfs-actions.pod:2247
9839 #, no-wrap
9840 msgid ""
9841 " int\n"
9842 " guestfs_grub_install (guestfs_h *g,\n"
9843 "                       const char *root,\n"
9844 "                       const char *device);\n"
9845 "\n"
9846 msgstr ""
9847
9848 #. type: textblock
9849 #: ../src/guestfs-actions.pod:2252 ../fish/guestfish-actions.pod:1510
9850 msgid ""
9851 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
9852 "the root directory being C<root>."
9853 msgstr ""
9854
9855 #. type: textblock
9856 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1513
9857 msgid ""
9858 "Note: If grub-install reports the error \"No suitable drive was found in the "
9859 "generated device map.\" it may be that you need to create a C</boot/grub/"
9860 "device.map> file first that contains the mapping between grub device names "
9861 "and Linux device names.  It is usually sufficient to create a file "
9862 "containing:"
9863 msgstr ""
9864
9865 #. type: verbatim
9866 #: ../src/guestfs-actions.pod:2262 ../fish/guestfish-actions.pod:1520
9867 #, no-wrap
9868 msgid ""
9869 " (hd0) /dev/vda\n"
9870 "\n"
9871 msgstr ""
9872
9873 #. type: textblock
9874 #: ../src/guestfs-actions.pod:2264 ../fish/guestfish-actions.pod:1522
9875 msgid "replacing C</dev/vda> with the name of the installation device."
9876 msgstr ""
9877
9878 #. type: textblock
9879 #: ../src/guestfs-actions.pod:2268
9880 msgid "(Added in 1.0.17)"
9881 msgstr ""
9882
9883 #. type: =head2
9884 #: ../src/guestfs-actions.pod:2270
9885 msgid "guestfs_head"
9886 msgstr ""
9887
9888 #. type: verbatim
9889 #: ../src/guestfs-actions.pod:2272
9890 #, no-wrap
9891 msgid ""
9892 " char **\n"
9893 " guestfs_head (guestfs_h *g,\n"
9894 "               const char *path);\n"
9895 "\n"
9896 msgstr ""
9897
9898 #. type: textblock
9899 #: ../src/guestfs-actions.pod:2276 ../fish/guestfish-actions.pod:1528
9900 msgid ""
9901 "This command returns up to the first 10 lines of a file as a list of strings."
9902 msgstr ""
9903
9904 #. type: =head2
9905 #: ../src/guestfs-actions.pod:2288
9906 msgid "guestfs_head_n"
9907 msgstr ""
9908
9909 #. type: verbatim
9910 #: ../src/guestfs-actions.pod:2290
9911 #, no-wrap
9912 msgid ""
9913 " char **\n"
9914 " guestfs_head_n (guestfs_h *g,\n"
9915 "                 int nrlines,\n"
9916 "                 const char *path);\n"
9917 "\n"
9918 msgstr ""
9919
9920 #. type: textblock
9921 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1538
9922 msgid ""
9923 "If the parameter C<nrlines> is a positive number, this returns the first "
9924 "C<nrlines> lines of the file C<path>."
9925 msgstr ""
9926
9927 #. type: textblock
9928 #: ../src/guestfs-actions.pod:2298 ../fish/guestfish-actions.pod:1541
9929 msgid ""
9930 "If the parameter C<nrlines> is a negative number, this returns lines from "
9931 "the file C<path>, excluding the last C<nrlines> lines."
9932 msgstr ""
9933
9934 #. type: textblock
9935 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:6566
9936 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:4422
9937 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9938 msgstr ""
9939
9940 #. type: =head2
9941 #: ../src/guestfs-actions.pod:2312
9942 msgid "guestfs_hexdump"
9943 msgstr ""
9944
9945 #. type: verbatim
9946 #: ../src/guestfs-actions.pod:2314
9947 #, no-wrap
9948 msgid ""
9949 " char *\n"
9950 " guestfs_hexdump (guestfs_h *g,\n"
9951 "                  const char *path);\n"
9952 "\n"
9953 msgstr ""
9954
9955 #. type: textblock
9956 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1553
9957 msgid ""
9958 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9959 "readable, canonical hex dump of the file."
9960 msgstr ""
9961
9962 #. type: textblock
9963 #: ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:6350
9964 #: ../src/guestfs-actions.pod:6405
9965 msgid "(Added in 1.0.22)"
9966 msgstr ""
9967
9968 #. type: =head2
9969 #: ../src/guestfs-actions.pod:2329
9970 msgid "guestfs_initrd_cat"
9971 msgstr ""
9972
9973 #. type: verbatim
9974 #: ../src/guestfs-actions.pod:2331
9975 #, no-wrap
9976 msgid ""
9977 " char *\n"
9978 " guestfs_initrd_cat (guestfs_h *g,\n"
9979 "                     const char *initrdpath,\n"
9980 "                     const char *filename,\n"
9981 "                     size_t *size_r);\n"
9982 "\n"
9983 msgstr ""
9984
9985 #. type: textblock
9986 #: ../src/guestfs-actions.pod:2337 ../fish/guestfish-actions.pod:1563
9987 msgid ""
9988 "This command unpacks the file C<filename> from the initrd file called "
9989 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9990 "character."
9991 msgstr ""
9992
9993 #. type: textblock
9994 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1567
9995 msgid ""
9996 "For example, in guestfish you could use the following command to examine the "
9997 "boot script (usually called C</init>)  contained in a Linux initrd or "
9998 "initramfs image:"
9999 msgstr ""
10000
10001 #. type: verbatim
10002 #: ../src/guestfs-actions.pod:2345 ../fish/guestfish-actions.pod:1571
10003 #, no-wrap
10004 msgid ""
10005 " initrd-cat /boot/initrd-<version>.img init\n"
10006 "\n"
10007 msgstr ""
10008
10009 #. type: textblock
10010 #: ../src/guestfs-actions.pod:2347
10011 msgid "See also C<guestfs_initrd_list>."
10012 msgstr ""
10013
10014 #. type: =head2
10015 #: ../src/guestfs-actions.pod:2358
10016 msgid "guestfs_initrd_list"
10017 msgstr ""
10018
10019 #. type: verbatim
10020 #: ../src/guestfs-actions.pod:2360
10021 #, no-wrap
10022 msgid ""
10023 " char **\n"
10024 " guestfs_initrd_list (guestfs_h *g,\n"
10025 "                      const char *path);\n"
10026 "\n"
10027 msgstr ""
10028
10029 #. type: textblock
10030 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1582
10031 msgid "This command lists out files contained in an initrd."
10032 msgstr ""
10033
10034 #. type: textblock
10035 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1584
10036 msgid ""
10037 "The files are listed without any initial C</> character.  The files are "
10038 "listed in the order they appear (not necessarily alphabetical).  Directory "
10039 "names are listed as separate items."
10040 msgstr ""
10041
10042 #. type: textblock
10043 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1588
10044 msgid ""
10045 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10046 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10047 "files)."
10048 msgstr ""
10049
10050 #. type: =head2
10051 #: ../src/guestfs-actions.pod:2380
10052 msgid "guestfs_inotify_add_watch"
10053 msgstr ""
10054
10055 #. type: verbatim
10056 #: ../src/guestfs-actions.pod:2382
10057 #, no-wrap
10058 msgid ""
10059 " int64_t\n"
10060 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10061 "                            const char *path,\n"
10062 "                            int mask);\n"
10063 "\n"
10064 msgstr ""
10065
10066 #. type: textblock
10067 #: ../src/guestfs-actions.pod:2387 ../fish/guestfish-actions.pod:1596
10068 msgid "Watch C<path> for the events listed in C<mask>."
10069 msgstr ""
10070
10071 #. type: textblock
10072 #: ../src/guestfs-actions.pod:2389 ../fish/guestfish-actions.pod:1598
10073 msgid ""
10074 "Note that if C<path> is a directory then events within that directory are "
10075 "watched, but this does I<not> happen recursively (in subdirectories)."
10076 msgstr ""
10077
10078 #. type: textblock
10079 #: ../src/guestfs-actions.pod:2393 ../fish/guestfish-actions.pod:1602
10080 msgid ""
10081 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10082 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10083 msgstr ""
10084
10085 #. type: =head2
10086 #: ../src/guestfs-actions.pod:2401
10087 msgid "guestfs_inotify_close"
10088 msgstr ""
10089
10090 #. type: verbatim
10091 #: ../src/guestfs-actions.pod:2403
10092 #, no-wrap
10093 msgid ""
10094 " int\n"
10095 " guestfs_inotify_close (guestfs_h *g);\n"
10096 "\n"
10097 msgstr ""
10098
10099 #. type: textblock
10100 #: ../src/guestfs-actions.pod:2406 ../fish/guestfish-actions.pod:1610
10101 msgid ""
10102 "This closes the inotify handle which was previously opened by inotify_init.  "
10103 "It removes all watches, throws away any pending events, and deallocates all "
10104 "resources."
10105 msgstr ""
10106
10107 #. type: =head2
10108 #: ../src/guestfs-actions.pod:2414
10109 msgid "guestfs_inotify_files"
10110 msgstr ""
10111
10112 #. type: verbatim
10113 #: ../src/guestfs-actions.pod:2416
10114 #, no-wrap
10115 msgid ""
10116 " char **\n"
10117 " guestfs_inotify_files (guestfs_h *g);\n"
10118 "\n"
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../src/guestfs-actions.pod:2419
10123 msgid ""
10124 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
10125 "returns a list of pathnames of objects that were touched.  The returned "
10126 "pathnames are sorted and deduplicated."
10127 msgstr ""
10128
10129 #. type: =head2
10130 #: ../src/guestfs-actions.pod:2429
10131 msgid "guestfs_inotify_init"
10132 msgstr ""
10133
10134 #. type: verbatim
10135 #: ../src/guestfs-actions.pod:2431
10136 #, no-wrap
10137 msgid ""
10138 " int\n"
10139 " guestfs_inotify_init (guestfs_h *g,\n"
10140 "                       int maxevents);\n"
10141 "\n"
10142 msgstr ""
10143
10144 #. type: textblock
10145 #: ../src/guestfs-actions.pod:2435 ../fish/guestfish-actions.pod:1626
10146 msgid ""
10147 "This command creates a new inotify handle.  The inotify subsystem can be "
10148 "used to notify events which happen to objects in the guest filesystem."
10149 msgstr ""
10150
10151 #. type: textblock
10152 #: ../src/guestfs-actions.pod:2439
10153 msgid ""
10154 "C<maxevents> is the maximum number of events which will be queued up between "
10155 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
10156 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
10157 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
10158 "throws away events, but records the fact that it threw them away by setting "
10159 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
10160 "C<guestfs_inotify_read>)."
10161 msgstr ""
10162
10163 #. type: textblock
10164 #: ../src/guestfs-actions.pod:2449
10165 msgid ""
10166 "Before any events are generated, you have to add some watches to the "
10167 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
10168 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
10169 msgstr ""
10170
10171 #. type: textblock
10172 #: ../src/guestfs-actions.pod:2455
10173 msgid ""
10174 "Queued up events should be read periodically by calling "
10175 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
10176 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
10177 "often enough then you risk the internal queue overflowing."
10178 msgstr ""
10179
10180 #. type: textblock
10181 #: ../src/guestfs-actions.pod:2462
10182 msgid ""
10183 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
10184 "This also removes any watches automatically."
10185 msgstr ""
10186
10187 #. type: textblock
10188 #: ../src/guestfs-actions.pod:2466 ../fish/guestfish-actions.pod:1657
10189 msgid ""
10190 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10191 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10192 "that there is one global inotify handle per libguestfs instance."
10193 msgstr ""
10194
10195 #. type: =head2
10196 #: ../src/guestfs-actions.pod:2475
10197 msgid "guestfs_inotify_read"
10198 msgstr ""
10199
10200 #. type: verbatim
10201 #: ../src/guestfs-actions.pod:2477
10202 #, no-wrap
10203 msgid ""
10204 " struct guestfs_inotify_event_list *\n"
10205 " guestfs_inotify_read (guestfs_h *g);\n"
10206 "\n"
10207 msgstr ""
10208
10209 #. type: textblock
10210 #: ../src/guestfs-actions.pod:2480 ../fish/guestfish-actions.pod:1666
10211 msgid ""
10212 "Return the complete queue of events that have happened since the previous "
10213 "read call."
10214 msgstr ""
10215
10216 #. type: textblock
10217 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1669
10218 msgid "If no events have happened, this returns an empty list."
10219 msgstr ""
10220
10221 #. type: textblock
10222 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1671
10223 msgid ""
10224 "I<Note>: In order to make sure that all events have been read, you must call "
10225 "this function repeatedly until it returns an empty list.  The reason is that "
10226 "the call will read events up to the maximum appliance-to-host message size "
10227 "and leave remaining events in the queue."
10228 msgstr ""
10229
10230 #. type: textblock
10231 #: ../src/guestfs-actions.pod:2491
10232 msgid ""
10233 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
10234 "there was an error.  I<The caller must call "
10235 "C<guestfs_free_inotify_event_list> after use>."
10236 msgstr ""
10237
10238 #. type: =head2
10239 #: ../src/guestfs-actions.pod:2497
10240 msgid "guestfs_inotify_rm_watch"
10241 msgstr ""
10242
10243 #. type: verbatim
10244 #: ../src/guestfs-actions.pod:2499
10245 #, no-wrap
10246 msgid ""
10247 " int\n"
10248 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10249 "                           int wd);\n"
10250 "\n"
10251 msgstr ""
10252
10253 #. type: textblock
10254 #: ../src/guestfs-actions.pod:2503
10255 msgid ""
10256 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
10257 msgstr ""
10258
10259 #. type: =head2
10260 #: ../src/guestfs-actions.pod:2510
10261 msgid "guestfs_inspect_get_arch"
10262 msgstr ""
10263
10264 #. type: verbatim
10265 #: ../src/guestfs-actions.pod:2512
10266 #, no-wrap
10267 msgid ""
10268 " char *\n"
10269 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10270 "                           const char *root);\n"
10271 "\n"
10272 msgstr ""
10273
10274 #. type: textblock
10275 #: ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2539
10276 #: ../src/guestfs-actions.pod:2624 ../src/guestfs-actions.pod:2668
10277 #: ../src/guestfs-actions.pod:2694 ../src/guestfs-actions.pod:2733
10278 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:2782
10279 #: ../src/guestfs-actions.pod:2803 ../src/guestfs-actions.pod:2846
10280 #: ../src/guestfs-actions.pod:2875 ../src/guestfs-actions.pod:2906
10281 #: ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:2985
10282 #: ../src/guestfs-actions.pod:3027 ../src/guestfs-actions.pod:3048
10283 #: ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3088
10284 #: ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3124
10285 msgid ""
10286 "This function should only be called with a root device string as returned by "
10287 "C<guestfs_inspect_os>."
10288 msgstr ""
10289
10290 #. type: textblock
10291 #: ../src/guestfs-actions.pod:2519
10292 msgid ""
10293 "This returns the architecture of the inspected operating system.  The "
10294 "possible return values are listed under C<guestfs_file_architecture>."
10295 msgstr ""
10296
10297 #. type: textblock
10298 #: ../src/guestfs-actions.pod:2523 ../fish/guestfish-actions.pod:1695
10299 msgid ""
10300 "If the architecture could not be determined, then the string C<unknown> is "
10301 "returned."
10302 msgstr ""
10303
10304 #. type: textblock
10305 #: ../src/guestfs-actions.pod:2526 ../src/guestfs-actions.pod:2611
10306 #: ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:2742
10307 #: ../src/guestfs-actions.pod:2770 ../src/guestfs-actions.pod:2862
10308 #: ../src/guestfs-actions.pod:2893 ../src/guestfs-actions.pod:2917
10309 #: ../src/guestfs-actions.pod:2971 ../src/guestfs-actions.pod:3014
10310 #: ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3058
10311 #: ../src/guestfs-actions.pod:3078 ../src/guestfs-actions.pod:3095
10312 #: ../src/guestfs-actions.pod:3114 ../src/guestfs-actions.pod:3217
10313 #: ../src/guestfs-actions.pod:3258 ../fish/guestfish-actions.pod:1698
10314 #: ../fish/guestfish-actions.pod:1776 ../fish/guestfish-actions.pod:1864
10315 #: ../fish/guestfish-actions.pod:1879 ../fish/guestfish-actions.pod:1900
10316 #: ../fish/guestfish-actions.pod:1970 ../fish/guestfish-actions.pod:1994
10317 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2054
10318 #: ../fish/guestfish-actions.pod:2089 ../fish/guestfish-actions.pod:2105
10319 #: ../fish/guestfish-actions.pod:2121 ../fish/guestfish-actions.pod:2134
10320 #: ../fish/guestfish-actions.pod:2147 ../fish/guestfish-actions.pod:2162
10321 #: ../fish/guestfish-actions.pod:2261 ../fish/guestfish-actions.pod:2295
10322 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10323 msgstr ""
10324
10325 #. type: =head2
10326 #: ../src/guestfs-actions.pod:2533
10327 msgid "guestfs_inspect_get_distro"
10328 msgstr ""
10329
10330 #. type: verbatim
10331 #: ../src/guestfs-actions.pod:2535
10332 #, no-wrap
10333 msgid ""
10334 " char *\n"
10335 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10336 "                             const char *root);\n"
10337 "\n"
10338 msgstr ""
10339
10340 #. type: textblock
10341 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1707
10342 msgid ""
10343 "This returns the distro (distribution) of the inspected operating system."
10344 msgstr ""
10345
10346 #. type: textblock
10347 #: ../src/guestfs-actions.pod:2545 ../fish/guestfish-actions.pod:1710
10348 msgid "Currently defined distros are:"
10349 msgstr ""
10350
10351 #. type: =item
10352 #: ../src/guestfs-actions.pod:2549 ../fish/guestfish-actions.pod:1714
10353 msgid "\"archlinux\""
10354 msgstr "\"archlinux\""
10355
10356 #. type: textblock
10357 #: ../src/guestfs-actions.pod:2551 ../fish/guestfish-actions.pod:1716
10358 msgid "Arch Linux."
10359 msgstr "Arch Linux."
10360
10361 #. type: =item
10362 #: ../src/guestfs-actions.pod:2553 ../fish/guestfish-actions.pod:1718
10363 msgid "\"debian\""
10364 msgstr "\"debian\""
10365
10366 #. type: textblock
10367 #: ../src/guestfs-actions.pod:2555 ../fish/guestfish-actions.pod:1720
10368 msgid "Debian."
10369 msgstr "Debian."
10370
10371 #. type: =item
10372 #: ../src/guestfs-actions.pod:2557 ../fish/guestfish-actions.pod:1722
10373 msgid "\"fedora\""
10374 msgstr "\"fedora\""
10375
10376 #. type: textblock
10377 #: ../src/guestfs-actions.pod:2559 ../fish/guestfish-actions.pod:1724
10378 msgid "Fedora."
10379 msgstr "Fedora."
10380
10381 #. type: =item
10382 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1726
10383 msgid "\"gentoo\""
10384 msgstr "\"gentoo\""
10385
10386 #. type: textblock
10387 #: ../src/guestfs-actions.pod:2563 ../fish/guestfish-actions.pod:1728
10388 msgid "Gentoo."
10389 msgstr "Gentoo."
10390
10391 #. type: =item
10392 #: ../src/guestfs-actions.pod:2565 ../fish/guestfish-actions.pod:1730
10393 msgid "\"linuxmint\""
10394 msgstr "\"linuxmint\""
10395
10396 #. type: textblock
10397 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1732
10398 msgid "Linux Mint."
10399 msgstr "Linux Mint."
10400
10401 #. type: =item
10402 #: ../src/guestfs-actions.pod:2569 ../fish/guestfish-actions.pod:1734
10403 msgid "\"mandriva\""
10404 msgstr "\"mandriva\""
10405
10406 #. type: textblock
10407 #: ../src/guestfs-actions.pod:2571 ../fish/guestfish-actions.pod:1736
10408 msgid "Mandriva."
10409 msgstr "Mandriva."
10410
10411 #. type: =item
10412 #: ../src/guestfs-actions.pod:2573 ../fish/guestfish-actions.pod:1738
10413 msgid "\"meego\""
10414 msgstr "\"meego\""
10415
10416 #. type: textblock
10417 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1740
10418 msgid "MeeGo."
10419 msgstr "MeeGo."
10420
10421 #. type: =item
10422 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1742
10423 msgid "\"pardus\""
10424 msgstr "\"pardus\""
10425
10426 #. type: textblock
10427 #: ../src/guestfs-actions.pod:2579 ../fish/guestfish-actions.pod:1744
10428 msgid "Pardus."
10429 msgstr "Pardus."
10430
10431 #. type: =item
10432 #: ../src/guestfs-actions.pod:2581 ../fish/guestfish-actions.pod:1746
10433 msgid "\"redhat-based\""
10434 msgstr "\"redhat-based\""
10435
10436 #. type: textblock
10437 #: ../src/guestfs-actions.pod:2583 ../fish/guestfish-actions.pod:1748
10438 msgid "Some Red Hat-derived distro."
10439 msgstr "Дистрибутив, що походить від Red Hat."
10440
10441 #. type: =item
10442 #: ../src/guestfs-actions.pod:2585 ../fish/guestfish-actions.pod:1750
10443 msgid "\"rhel\""
10444 msgstr "\"rhel\""
10445
10446 #. type: textblock
10447 #: ../src/guestfs-actions.pod:2587 ../fish/guestfish-actions.pod:1752
10448 msgid "Red Hat Enterprise Linux and some derivatives."
10449 msgstr "Red Hat Enterprise Linux та деякі з похідних дистрибутивів."
10450
10451 #. type: =item
10452 #: ../src/guestfs-actions.pod:2589 ../fish/guestfish-actions.pod:1754
10453 msgid "\"slackware\""
10454 msgstr ""
10455
10456 #. type: textblock
10457 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1756
10458 msgid "Slackware."
10459 msgstr ""
10460
10461 #. type: =item
10462 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1758
10463 msgid "\"ubuntu\""
10464 msgstr "\"ubuntu\""
10465
10466 #. type: textblock
10467 #: ../src/guestfs-actions.pod:2595 ../fish/guestfish-actions.pod:1760
10468 msgid "Ubuntu."
10469 msgstr "Ubuntu."
10470
10471 #. type: =item
10472 #: ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2713
10473 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:1762
10474 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:2080
10475 msgid "\"unknown\""
10476 msgstr "\"unknown\""
10477
10478 #. type: textblock
10479 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1764
10480 msgid "The distro could not be determined."
10481 msgstr "Дистрибутив, тип якого не вдалося визначити."
10482
10483 #. type: =item
10484 #: ../src/guestfs-actions.pod:2601 ../src/guestfs-actions.pod:2997
10485 #: ../fish/guestfish-actions.pod:1766 ../fish/guestfish-actions.pod:2072
10486 msgid "\"windows\""
10487 msgstr "\"windows\""
10488
10489 #. type: textblock
10490 #: ../src/guestfs-actions.pod:2603 ../fish/guestfish-actions.pod:1768
10491 msgid ""
10492 "Windows does not have distributions.  This string is returned if the OS type "
10493 "is Windows."
10494 msgstr ""
10495
10496 #. type: textblock
10497 #: ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2719
10498 #: ../src/guestfs-actions.pod:3011 ../fish/guestfish-actions.pod:1773
10499 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:2086
10500 msgid ""
10501 "Future versions of libguestfs may return other strings here.  The caller "
10502 "should be prepared to handle any string."
10503 msgstr ""
10504
10505 #. type: =head2
10506 #: ../src/guestfs-actions.pod:2618
10507 msgid "guestfs_inspect_get_drive_mappings"
10508 msgstr ""
10509
10510 #. type: verbatim
10511 #: ../src/guestfs-actions.pod:2620
10512 #, no-wrap
10513 msgid ""
10514 " char **\n"
10515 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
10516 "                                     const char *root);\n"
10517 "\n"
10518 msgstr ""
10519
10520 #. type: textblock
10521 #: ../src/guestfs-actions.pod:2627 ../fish/guestfish-actions.pod:1785
10522 msgid ""
10523 "This call is useful for Windows which uses a primitive system of assigning "
10524 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10525 "Windows Registry to find out how disks/partitions are mapped to drive "
10526 "letters, and returns a hash table as in the example below:"
10527 msgstr ""
10528
10529 #. type: verbatim
10530 #: ../src/guestfs-actions.pod:2633 ../fish/guestfish-actions.pod:1791
10531 #, no-wrap
10532 msgid ""
10533 " C      =>     /dev/vda2\n"
10534 " E      =>     /dev/vdb1\n"
10535 " F      =>     /dev/vdc1\n"
10536 "\n"
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../src/guestfs-actions.pod:2637 ../fish/guestfish-actions.pod:1795
10541 msgid ""
10542 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10543 "and just contains the drive letter, without the customary colon separator "
10544 "character."
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1799
10549 msgid ""
10550 "In future we may support other operating systems that also used drive "
10551 "letters, but the keys for those might not be case insensitive and might be "
10552 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10553 "C<h1> etc."
10554 msgstr ""
10555
10556 #. type: textblock
10557 #: ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1804
10558 msgid ""
10559 "For Windows guests, currently only hard drive mappings are returned.  "
10560 "Removable disks (eg. DVD-ROMs) are ignored."
10561 msgstr ""
10562
10563 #. type: textblock
10564 #: ../src/guestfs-actions.pod:2649 ../fish/guestfish-actions.pod:1807
10565 msgid ""
10566 "For guests that do not use drive mappings, or if the drive mappings could "
10567 "not be determined, this returns an empty hash table."
10568 msgstr ""
10569
10570 #. type: textblock
10571 #: ../src/guestfs-actions.pod:2652
10572 msgid ""
10573 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10574 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
10575 msgstr ""
10576
10577 #. type: textblock
10578 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:2832
10579 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:4802
10580 #: ../src/guestfs-actions.pod:6707
10581 msgid ""
10582 "This function returns a NULL-terminated array of strings, or NULL if there "
10583 "was an error.  The array of strings will always have length C<2n+1>, where "
10584 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
10585 "caller must free the strings and the array after use>."
10586 msgstr ""
10587
10588 #. type: =head2
10589 #: ../src/guestfs-actions.pod:2662
10590 msgid "guestfs_inspect_get_filesystems"
10591 msgstr ""
10592
10593 #. type: verbatim
10594 #: ../src/guestfs-actions.pod:2664
10595 #, no-wrap
10596 msgid ""
10597 " char **\n"
10598 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
10599 "                                  const char *root);\n"
10600 "\n"
10601 msgstr ""
10602
10603 #. type: textblock
10604 #: ../src/guestfs-actions.pod:2671 ../fish/guestfish-actions.pod:1821
10605 msgid ""
10606 "This returns a list of all the filesystems that we think are associated with "
10607 "this operating system.  This includes the root filesystem, other ordinary "
10608 "filesystems, and non-mounted devices like swap partitions."
10609 msgstr ""
10610
10611 #. type: textblock
10612 #: ../src/guestfs-actions.pod:2676 ../fish/guestfish-actions.pod:1826
10613 msgid ""
10614 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10615 "to be shared between operating systems."
10616 msgstr ""
10617
10618 #. type: textblock
10619 #: ../src/guestfs-actions.pod:2679
10620 msgid ""
10621 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10622 "C<guestfs_inspect_get_mountpoints>."
10623 msgstr ""
10624
10625 #. type: =head2
10626 #: ../src/guestfs-actions.pod:2688
10627 msgid "guestfs_inspect_get_format"
10628 msgstr ""
10629
10630 #. type: verbatim
10631 #: ../src/guestfs-actions.pod:2690
10632 #, no-wrap
10633 msgid ""
10634 " char *\n"
10635 " guestfs_inspect_get_format (guestfs_h *g,\n"
10636 "                             const char *root);\n"
10637 "\n"
10638 msgstr ""
10639
10640 #. type: textblock
10641 #: ../src/guestfs-actions.pod:2697 ../fish/guestfish-actions.pod:1839
10642 msgid ""
10643 "This returns the format of the inspected operating system.  You can use it "
10644 "to detect install images, live CDs and similar."
10645 msgstr ""
10646
10647 #. type: textblock
10648 #: ../src/guestfs-actions.pod:2700 ../fish/guestfish-actions.pod:1842
10649 msgid "Currently defined formats are:"
10650 msgstr ""
10651
10652 #. type: =item
10653 #: ../src/guestfs-actions.pod:2704 ../fish/guestfish-actions.pod:1846
10654 msgid "\"installed\""
10655 msgstr "\"installed\""
10656
10657 #. type: textblock
10658 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1848
10659 msgid "This is an installed operating system."
10660 msgstr "Це встановлена операційна система."
10661
10662 #. type: =item
10663 #: ../src/guestfs-actions.pod:2708 ../fish/guestfish-actions.pod:1850
10664 msgid "\"installer\""
10665 msgstr ""
10666
10667 #. type: textblock
10668 #: ../src/guestfs-actions.pod:2710 ../fish/guestfish-actions.pod:1852
10669 msgid ""
10670 "The disk image being inspected is not an installed operating system, but a "
10671 "I<bootable> install disk, live CD, or similar."
10672 msgstr ""
10673
10674 #. type: textblock
10675 #: ../src/guestfs-actions.pod:2715 ../fish/guestfish-actions.pod:1857
10676 msgid "The format of this disk image is not known."
10677 msgstr ""
10678
10679 #. type: =head2
10680 #: ../src/guestfs-actions.pod:2727
10681 msgid "guestfs_inspect_get_hostname"
10682 msgstr ""
10683
10684 #. type: verbatim
10685 #: ../src/guestfs-actions.pod:2729
10686 #, no-wrap
10687 msgid ""
10688 " char *\n"
10689 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
10690 "                               const char *root);\n"
10691 "\n"
10692 msgstr ""
10693
10694 #. type: textblock
10695 #: ../src/guestfs-actions.pod:2736 ../fish/guestfish-actions.pod:1873
10696 msgid ""
10697 "This function returns the hostname of the operating system as found by "
10698 "inspection of the guest's configuration files."
10699 msgstr ""
10700
10701 #. type: textblock
10702 #: ../src/guestfs-actions.pod:2739 ../fish/guestfish-actions.pod:1876
10703 msgid ""
10704 "If the hostname could not be determined, then the string C<unknown> is "
10705 "returned."
10706 msgstr ""
10707
10708 #. type: textblock
10709 #: ../src/guestfs-actions.pod:2747
10710 msgid "(Added in 1.7.9)"
10711 msgstr ""
10712
10713 #. type: =head2
10714 #: ../src/guestfs-actions.pod:2749
10715 msgid "guestfs_inspect_get_major_version"
10716 msgstr ""
10717
10718 #. type: verbatim
10719 #: ../src/guestfs-actions.pod:2751
10720 #, no-wrap
10721 msgid ""
10722 " int\n"
10723 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
10724 "                                    const char *root);\n"
10725 "\n"
10726 msgstr ""
10727
10728 #. type: textblock
10729 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1888
10730 msgid ""
10731 "This returns the major version number of the inspected operating system."
10732 msgstr ""
10733
10734 #. type: textblock
10735 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:1891
10736 msgid ""
10737 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10738 "popular public names used by the operating system.  Notably the operating "
10739 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10740 "1).  You can find out the real versions corresponding to releases of Windows "
10741 "by consulting Wikipedia or MSDN."
10742 msgstr ""
10743
10744 #. type: textblock
10745 #: ../src/guestfs-actions.pod:2768 ../src/guestfs-actions.pod:2788
10746 #: ../fish/guestfish-actions.pod:1898 ../fish/guestfish-actions.pod:1912
10747 msgid "If the version could not be determined, then C<0> is returned."
10748 msgstr ""
10749
10750 #. type: =head2
10751 #: ../src/guestfs-actions.pod:2776
10752 msgid "guestfs_inspect_get_minor_version"
10753 msgstr ""
10754
10755 #. type: verbatim
10756 #: ../src/guestfs-actions.pod:2778
10757 #, no-wrap
10758 msgid ""
10759 " int\n"
10760 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
10761 "                                    const char *root);\n"
10762 "\n"
10763 msgstr ""
10764
10765 #. type: textblock
10766 #: ../src/guestfs-actions.pod:2785 ../fish/guestfish-actions.pod:1909
10767 msgid ""
10768 "This returns the minor version number of the inspected operating system."
10769 msgstr ""
10770
10771 #. type: textblock
10772 #: ../src/guestfs-actions.pod:2790
10773 msgid ""
10774 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10775 "C<guestfs_inspect_get_major_version>."
10776 msgstr ""
10777
10778 #. type: =head2
10779 #: ../src/guestfs-actions.pod:2797
10780 msgid "guestfs_inspect_get_mountpoints"
10781 msgstr ""
10782
10783 #. type: verbatim
10784 #: ../src/guestfs-actions.pod:2799
10785 #, no-wrap
10786 msgid ""
10787 " char **\n"
10788 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
10789 "                                  const char *root);\n"
10790 "\n"
10791 msgstr ""
10792
10793 #. type: textblock
10794 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1924
10795 msgid ""
10796 "This returns a hash of where we think the filesystems associated with this "
10797 "operating system should be mounted.  Callers should note that this is at "
10798 "best an educated guess made by reading configuration files such as C</etc/"
10799 "fstab>.  I<In particular note> that this may return filesystems which are "
10800 "non-existent or not mountable and callers should be prepared to handle or "
10801 "ignore failures if they try to mount them."
10802 msgstr ""
10803
10804 #. type: textblock
10805 #: ../src/guestfs-actions.pod:2815 ../fish/guestfish-actions.pod:1933
10806 msgid ""
10807 "Each element in the returned hashtable has a key which is the path of the "
10808 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10809 "mounted there (eg. C</dev/sda1>)."
10810 msgstr ""
10811
10812 #. type: textblock
10813 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1938
10814 msgid ""
10815 "Non-mounted devices such as swap devices are I<not> returned in this list."
10816 msgstr ""
10817
10818 #. type: textblock
10819 #: ../src/guestfs-actions.pod:2823
10820 msgid ""
10821 "For operating systems like Windows which still use drive letters, this call "
10822 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10823 "information about the mapping of drive letters to partitions, see "
10824 "C<guestfs_inspect_get_drive_mappings>."
10825 msgstr ""
10826
10827 #. type: textblock
10828 #: ../src/guestfs-actions.pod:2829
10829 msgid ""
10830 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10831 "C<guestfs_inspect_get_filesystems>."
10832 msgstr ""
10833
10834 #. type: =head2
10835 #: ../src/guestfs-actions.pod:2840
10836 msgid "guestfs_inspect_get_package_format"
10837 msgstr ""
10838
10839 #. type: verbatim
10840 #: ../src/guestfs-actions.pod:2842
10841 #, no-wrap
10842 msgid ""
10843 " char *\n"
10844 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
10845 "                                     const char *root);\n"
10846 "\n"
10847 msgstr ""
10848
10849 #. type: textblock
10850 #: ../src/guestfs-actions.pod:2849
10851 msgid ""
10852 "This function and C<guestfs_inspect_get_package_management> return the "
10853 "package format and package management tool used by the inspected operating "
10854 "system.  For example for Fedora these functions would return C<rpm> (package "
10855 "format) and C<yum> (package management)."
10856 msgstr ""
10857
10858 #. type: textblock
10859 #: ../src/guestfs-actions.pod:2855 ../fish/guestfish-actions.pod:1963
10860 msgid ""
10861 "This returns the string C<unknown> if we could not determine the package "
10862 "format I<or> if the operating system does not have a real packaging system "
10863 "(eg. Windows)."
10864 msgstr ""
10865
10866 #. type: textblock
10867 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1967
10868 msgid ""
10869 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
10870 "Future versions of libguestfs may return other strings."
10871 msgstr ""
10872
10873 #. type: textblock
10874 #: ../src/guestfs-actions.pod:2867 ../src/guestfs-actions.pod:2898
10875 msgid "(Added in 1.7.5)"
10876 msgstr ""
10877
10878 #. type: =head2
10879 #: ../src/guestfs-actions.pod:2869
10880 msgid "guestfs_inspect_get_package_management"
10881 msgstr ""
10882
10883 #. type: verbatim
10884 #: ../src/guestfs-actions.pod:2871
10885 #, no-wrap
10886 msgid ""
10887 " char *\n"
10888 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
10889 "                                         const char *root);\n"
10890 "\n"
10891 msgstr ""
10892
10893 #. type: textblock
10894 #: ../src/guestfs-actions.pod:2878
10895 msgid ""
10896 "C<guestfs_inspect_get_package_format> and this function return the package "
10897 "format and package management tool used by the inspected operating system.  "
10898 "For example for Fedora these functions would return C<rpm> (package format) "
10899 "and C<yum> (package management)."
10900 msgstr ""
10901
10902 #. type: textblock
10903 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1985
10904 msgid ""
10905 "This returns the string C<unknown> if we could not determine the package "
10906 "management tool I<or> if the operating system does not have a real packaging "
10907 "system (eg. Windows)."
10908 msgstr ""
10909
10910 #. type: textblock
10911 #: ../src/guestfs-actions.pod:2888 ../fish/guestfish-actions.pod:1989
10912 msgid ""
10913 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10914 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
10915 "libguestfs may return other strings."
10916 msgstr ""
10917
10918 #. type: =head2
10919 #: ../src/guestfs-actions.pod:2900
10920 msgid "guestfs_inspect_get_product_name"
10921 msgstr ""
10922
10923 #. type: verbatim
10924 #: ../src/guestfs-actions.pod:2902
10925 #, no-wrap
10926 msgid ""
10927 " char *\n"
10928 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
10929 "                                   const char *root);\n"
10930 "\n"
10931 msgstr ""
10932
10933 #. type: textblock
10934 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2003
10935 msgid ""
10936 "This returns the product name of the inspected operating system.  The "
10937 "product name is generally some freeform string which can be displayed to the "
10938 "user, but should not be parsed by programs."
10939 msgstr ""
10940
10941 #. type: textblock
10942 #: ../src/guestfs-actions.pod:2914 ../fish/guestfish-actions.pod:2008
10943 msgid ""
10944 "If the product name could not be determined, then the string C<unknown> is "
10945 "returned."
10946 msgstr ""
10947
10948 #. type: =head2
10949 #: ../src/guestfs-actions.pod:2924
10950 msgid "guestfs_inspect_get_product_variant"
10951 msgstr ""
10952
10953 #. type: verbatim
10954 #: ../src/guestfs-actions.pod:2926
10955 #, no-wrap
10956 msgid ""
10957 " char *\n"
10958 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
10959 "                                      const char *root);\n"
10960 "\n"
10961 msgstr ""
10962
10963 #. type: textblock
10964 #: ../src/guestfs-actions.pod:2933 ../fish/guestfish-actions.pod:2020
10965 #, fuzzy
10966 #| msgid "This is an installed operating system."
10967 msgid "This returns the product variant of the inspected operating system."
10968 msgstr "Це встановлена операційна система."
10969
10970 #. type: textblock
10971 #: ../src/guestfs-actions.pod:2936 ../fish/guestfish-actions.pod:2023
10972 msgid ""
10973 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10974 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10975 "is usually a string such as C<Client> or C<Server> (other values are "
10976 "possible).  This can be used to distinguish consumer and enterprise versions "
10977 "of Windows that have the same version number (for example, Windows 7 and "
10978 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10979 "the latter is C<Server>)."
10980 msgstr ""
10981
10982 #. type: textblock
10983 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2032
10984 msgid ""
10985 "For enterprise Linux guests, in future we intend this to return the product "
10986 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10987 "implemented at present."
10988 msgstr ""
10989
10990 #. type: textblock
10991 #: ../src/guestfs-actions.pod:2949 ../fish/guestfish-actions.pod:2036
10992 msgid ""
10993 "If the product variant could not be determined, then the string C<unknown> "
10994 "is returned."
10995 msgstr ""
10996
10997 #. type: textblock
10998 #: ../src/guestfs-actions.pod:2952
10999 msgid ""
11000 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11001 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
11002 msgstr ""
11003
11004 #. type: =head2
11005 #: ../src/guestfs-actions.pod:2959
11006 msgid "guestfs_inspect_get_roots"
11007 msgstr ""
11008
11009 #. type: verbatim
11010 #: ../src/guestfs-actions.pod:2961
11011 #, no-wrap
11012 msgid ""
11013 " char **\n"
11014 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11015 "\n"
11016 msgstr ""
11017
11018 #. type: textblock
11019 #: ../src/guestfs-actions.pod:2964
11020 msgid ""
11021 "This function is a convenient way to get the list of root devices, as "
11022 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
11023 "the whole inspection process."
11024 msgstr ""
11025
11026 #. type: textblock
11027 #: ../src/guestfs-actions.pod:2968
11028 msgid ""
11029 "This returns an empty list if either no root devices were found or the "
11030 "caller has not called C<guestfs_inspect_os>."
11031 msgstr ""
11032
11033 #. type: textblock
11034 #: ../src/guestfs-actions.pod:2977
11035 msgid "(Added in 1.7.3)"
11036 msgstr ""
11037
11038 #. type: =head2
11039 #: ../src/guestfs-actions.pod:2979
11040 msgid "guestfs_inspect_get_type"
11041 msgstr ""
11042
11043 #. type: verbatim
11044 #: ../src/guestfs-actions.pod:2981
11045 #, no-wrap
11046 msgid ""
11047 " char *\n"
11048 " guestfs_inspect_get_type (guestfs_h *g,\n"
11049 "                           const char *root);\n"
11050 "\n"
11051 msgstr ""
11052
11053 #. type: textblock
11054 #: ../src/guestfs-actions.pod:2988 ../fish/guestfish-actions.pod:2063
11055 msgid ""
11056 "This returns the type of the inspected operating system.  Currently defined "
11057 "types are:"
11058 msgstr ""
11059
11060 #. type: =item
11061 #: ../src/guestfs-actions.pod:2993 ../fish/guestfish-actions.pod:2068
11062 msgid "\"linux\""
11063 msgstr "\"linux\""
11064
11065 #. type: textblock
11066 #: ../src/guestfs-actions.pod:2995 ../fish/guestfish-actions.pod:2070
11067 msgid "Any Linux-based operating system."
11068 msgstr ""
11069
11070 #. type: textblock
11071 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2074
11072 msgid "Any Microsoft Windows operating system."
11073 msgstr ""
11074
11075 #. type: =item
11076 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2076
11077 msgid "\"freebsd\""
11078 msgstr "\"freebsd\""
11079
11080 #. type: textblock
11081 #: ../src/guestfs-actions.pod:3003 ../fish/guestfish-actions.pod:2078
11082 msgid "FreeBSD."
11083 msgstr "FreeBSD."
11084
11085 #. type: textblock
11086 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2082
11087 msgid "The operating system type could not be determined."
11088 msgstr ""
11089
11090 #. type: =head2
11091 #: ../src/guestfs-actions.pod:3021
11092 msgid "guestfs_inspect_get_windows_current_control_set"
11093 msgstr ""
11094
11095 #. type: verbatim
11096 #: ../src/guestfs-actions.pod:3023
11097 #, no-wrap
11098 msgid ""
11099 " char *\n"
11100 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
11101 "                                                  const char *root);\n"
11102 "\n"
11103 msgstr ""
11104
11105 #. type: textblock
11106 #: ../src/guestfs-actions.pod:3030 ../fish/guestfish-actions.pod:2098
11107 msgid ""
11108 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11109 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11110 msgstr ""
11111
11112 #. type: textblock
11113 #: ../src/guestfs-actions.pod:3033 ../fish/guestfish-actions.pod:2101
11114 msgid ""
11115 "This call assumes that the guest is Windows and that the Registry could be "
11116 "examined by inspection.  If this is not the case then an error is returned."
11117 msgstr ""
11118
11119 #. type: =head2
11120 #: ../src/guestfs-actions.pod:3042
11121 msgid "guestfs_inspect_get_windows_systemroot"
11122 msgstr ""
11123
11124 #. type: verbatim
11125 #: ../src/guestfs-actions.pod:3044
11126 #, no-wrap
11127 msgid ""
11128 " char *\n"
11129 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11130 "                                         const char *root);\n"
11131 "\n"
11132 msgstr ""
11133
11134 #. type: textblock
11135 #: ../src/guestfs-actions.pod:3051 ../fish/guestfish-actions.pod:2114
11136 msgid ""
11137 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11138 "is a directory path such as C</WINDOWS>."
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../src/guestfs-actions.pod:3054 ../fish/guestfish-actions.pod:2117
11143 msgid ""
11144 "This call assumes that the guest is Windows and that the systemroot could be "
11145 "determined by inspection.  If this is not the case then an error is returned."
11146 msgstr ""
11147
11148 #. type: textblock
11149 #: ../src/guestfs-actions.pod:3063
11150 msgid "(Added in 1.5.25)"
11151 msgstr ""
11152
11153 #. type: =head2
11154 #: ../src/guestfs-actions.pod:3065
11155 msgid "guestfs_inspect_is_live"
11156 msgstr ""
11157
11158 #. type: verbatim
11159 #: ../src/guestfs-actions.pod:3067
11160 #, no-wrap
11161 msgid ""
11162 " int\n"
11163 " guestfs_inspect_is_live (guestfs_h *g,\n"
11164 "                          const char *root);\n"
11165 "\n"
11166 msgstr ""
11167
11168 #. type: textblock
11169 #: ../src/guestfs-actions.pod:3074
11170 msgid ""
11171 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11172 "disk), then this returns true if a live image was detected on the disk."
11173 msgstr ""
11174
11175 #. type: =head2
11176 #: ../src/guestfs-actions.pod:3082
11177 msgid "guestfs_inspect_is_multipart"
11178 msgstr ""
11179
11180 #. type: verbatim
11181 #: ../src/guestfs-actions.pod:3084
11182 #, no-wrap
11183 msgid ""
11184 " int\n"
11185 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
11186 "                               const char *root);\n"
11187 "\n"
11188 msgstr ""
11189
11190 #. type: textblock
11191 #: ../src/guestfs-actions.pod:3091
11192 msgid ""
11193 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11194 "disk), then this returns true if the disk is part of a set."
11195 msgstr ""
11196
11197 #. type: =head2
11198 #: ../src/guestfs-actions.pod:3099
11199 msgid "guestfs_inspect_is_netinst"
11200 msgstr ""
11201
11202 #. type: verbatim
11203 #: ../src/guestfs-actions.pod:3101
11204 #, no-wrap
11205 msgid ""
11206 " int\n"
11207 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
11208 "                             const char *root);\n"
11209 "\n"
11210 msgstr ""
11211
11212 #. type: textblock
11213 #: ../src/guestfs-actions.pod:3108
11214 msgid ""
11215 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11216 "disk), then this returns true if the disk is a network installer, ie. not a "
11217 "self-contained install CD but one which is likely to require network access "
11218 "to complete the install."
11219 msgstr ""
11220
11221 #. type: =head2
11222 #: ../src/guestfs-actions.pod:3118
11223 msgid "guestfs_inspect_list_applications"
11224 msgstr ""
11225
11226 #. type: verbatim
11227 #: ../src/guestfs-actions.pod:3120
11228 #, no-wrap
11229 msgid ""
11230 " struct guestfs_application_list *\n"
11231 " guestfs_inspect_list_applications (guestfs_h *g,\n"
11232 "                                    const char *root);\n"
11233 "\n"
11234 msgstr ""
11235
11236 #. type: textblock
11237 #: ../src/guestfs-actions.pod:3127 ../fish/guestfish-actions.pod:2171
11238 msgid "Return the list of applications installed in the operating system."
11239 msgstr ""
11240
11241 #. type: textblock
11242 #: ../src/guestfs-actions.pod:3129
11243 msgid ""
11244 "I<Note:> This call works differently from other parts of the inspection "
11245 "API.  You have to call C<guestfs_inspect_os>, then "
11246 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
11247 "this.  Listing applications is a significantly more difficult operation "
11248 "which requires access to the full filesystem.  Also note that unlike the "
11249 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
11250 "the libguestfs handle, this call actually reads parts of the mounted "
11251 "filesystems during the call."
11252 msgstr ""
11253
11254 #. type: textblock
11255 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2183
11256 msgid ""
11257 "This returns an empty list if the inspection code was not able to determine "
11258 "the list of applications."
11259 msgstr ""
11260
11261 #. type: textblock
11262 #: ../src/guestfs-actions.pod:3142 ../fish/guestfish-actions.pod:2186
11263 msgid "The application structure contains the following fields:"
11264 msgstr ""
11265
11266 #. type: =item
11267 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2190
11268 msgid "C<app_name>"
11269 msgstr "C<app_name>"
11270
11271 #. type: textblock
11272 #: ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:2192
11273 msgid ""
11274 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11275 "guests, this is the package name."
11276 msgstr ""
11277
11278 #. type: =item
11279 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2195
11280 msgid "C<app_display_name>"
11281 msgstr "C<app_display_name>"
11282
11283 #. type: textblock
11284 #: ../src/guestfs-actions.pod:3153 ../fish/guestfish-actions.pod:2197
11285 msgid ""
11286 "The display name of the application, sometimes localized to the install "
11287 "language of the guest operating system."
11288 msgstr ""
11289
11290 #. type: textblock
11291 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2200
11292 msgid ""
11293 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11294 "to display something can use C<app_name> instead."
11295 msgstr ""
11296
11297 #. type: =item
11298 #: ../src/guestfs-actions.pod:3159 ../fish/guestfish-actions.pod:2203
11299 msgid "C<app_epoch>"
11300 msgstr "C<app_epoch>"
11301
11302 #. type: textblock
11303 #: ../src/guestfs-actions.pod:3161 ../fish/guestfish-actions.pod:2205
11304 msgid ""
11305 "For package managers which use epochs, this contains the epoch of the "
11306 "package (an integer).  If unavailable, this is returned as C<0>."
11307 msgstr ""
11308
11309 #. type: =item
11310 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2208
11311 msgid "C<app_version>"
11312 msgstr "C<app_version>"
11313
11314 #. type: textblock
11315 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2210
11316 msgid ""
11317 "The version string of the application or package.  If unavailable this is "
11318 "returned as an empty string C<\"\">."
11319 msgstr ""
11320
11321 #. type: =item
11322 #: ../src/guestfs-actions.pod:3169 ../fish/guestfish-actions.pod:2213
11323 msgid "C<app_release>"
11324 msgstr "C<app_release>"
11325
11326 #. type: textblock
11327 #: ../src/guestfs-actions.pod:3171 ../fish/guestfish-actions.pod:2215
11328 msgid ""
11329 "The release string of the application or package, for package managers that "
11330 "use this.  If unavailable this is returned as an empty string C<\"\">."
11331 msgstr ""
11332
11333 #. type: =item
11334 #: ../src/guestfs-actions.pod:3175 ../fish/guestfish-actions.pod:2219
11335 msgid "C<app_install_path>"
11336 msgstr "C<app_install_path>"
11337
11338 #. type: textblock
11339 #: ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2221
11340 msgid ""
11341 "The installation path of the application (on operating systems such as "
11342 "Windows which use installation paths).  This path is in the format used by "
11343 "the guest operating system, it is not a libguestfs path."
11344 msgstr ""
11345
11346 #. type: textblock
11347 #: ../src/guestfs-actions.pod:3182 ../fish/guestfish-actions.pod:2226
11348 msgid "If unavailable this is returned as an empty string C<\"\">."
11349 msgstr ""
11350
11351 #. type: =item
11352 #: ../src/guestfs-actions.pod:3184 ../fish/guestfish-actions.pod:2228
11353 msgid "C<app_trans_path>"
11354 msgstr "C<app_trans_path>"
11355
11356 #. type: textblock
11357 #: ../src/guestfs-actions.pod:3186 ../fish/guestfish-actions.pod:2230
11358 msgid ""
11359 "The install path translated into a libguestfs path.  If unavailable this is "
11360 "returned as an empty string C<\"\">."
11361 msgstr ""
11362
11363 #. type: =item
11364 #: ../src/guestfs-actions.pod:3189 ../fish/guestfish-actions.pod:2233
11365 msgid "C<app_publisher>"
11366 msgstr "C<app_publisher>"
11367
11368 #. type: textblock
11369 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2235
11370 msgid ""
11371 "The name of the publisher of the application, for package managers that use "
11372 "this.  If unavailable this is returned as an empty string C<\"\">."
11373 msgstr ""
11374
11375 #. type: =item
11376 #: ../src/guestfs-actions.pod:3195 ../fish/guestfish-actions.pod:2239
11377 msgid "C<app_url>"
11378 msgstr "C<app_url>"
11379
11380 #. type: textblock
11381 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2241
11382 msgid ""
11383 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11384 "returned as an empty string C<\"\">."
11385 msgstr ""
11386
11387 #. type: =item
11388 #: ../src/guestfs-actions.pod:3200 ../fish/guestfish-actions.pod:2244
11389 msgid "C<app_source_package>"
11390 msgstr ""
11391
11392 #. type: textblock
11393 #: ../src/guestfs-actions.pod:3202 ../fish/guestfish-actions.pod:2246
11394 msgid ""
11395 "For packaging systems which support this, the name of the source package.  "
11396 "If unavailable this is returned as an empty string C<\"\">."
11397 msgstr ""
11398
11399 #. type: =item
11400 #: ../src/guestfs-actions.pod:3205 ../fish/guestfish-actions.pod:2249
11401 msgid "C<app_summary>"
11402 msgstr ""
11403
11404 #. type: textblock
11405 #: ../src/guestfs-actions.pod:3207 ../fish/guestfish-actions.pod:2251
11406 msgid ""
11407 "A short (usually one line) description of the application or package.  If "
11408 "unavailable this is returned as an empty string C<\"\">."
11409 msgstr ""
11410
11411 #. type: =item
11412 #: ../src/guestfs-actions.pod:3210 ../fish/guestfish-actions.pod:2254
11413 msgid "C<app_description>"
11414 msgstr ""
11415
11416 #. type: textblock
11417 #: ../src/guestfs-actions.pod:3212 ../fish/guestfish-actions.pod:2256
11418 msgid ""
11419 "A longer description of the application or package.  If unavailable this is "
11420 "returned as an empty string C<\"\">."
11421 msgstr ""
11422
11423 #. type: textblock
11424 #: ../src/guestfs-actions.pod:3219
11425 msgid ""
11426 "This function returns a C<struct guestfs_application_list *>, or NULL if "
11427 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
11428 "after use>."
11429 msgstr ""
11430
11431 #. type: textblock
11432 #: ../src/guestfs-actions.pod:3223
11433 msgid "(Added in 1.7.8)"
11434 msgstr ""
11435
11436 #. type: =head2
11437 #: ../src/guestfs-actions.pod:3225
11438 msgid "guestfs_inspect_os"
11439 msgstr ""
11440
11441 #. type: verbatim
11442 #: ../src/guestfs-actions.pod:3227
11443 #, no-wrap
11444 msgid ""
11445 " char **\n"
11446 " guestfs_inspect_os (guestfs_h *g);\n"
11447 "\n"
11448 msgstr ""
11449
11450 #. type: textblock
11451 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2267
11452 msgid ""
11453 "This function uses other libguestfs functions and certain heuristics to "
11454 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11455 "for operating systems."
11456 msgstr ""
11457
11458 #. type: textblock
11459 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2271
11460 msgid "The list returned is empty if no operating systems were found."
11461 msgstr ""
11462
11463 #. type: textblock
11464 #: ../src/guestfs-actions.pod:3236 ../fish/guestfish-actions.pod:2273
11465 msgid ""
11466 "If one operating system was found, then this returns a list with a single "
11467 "element, which is the name of the root filesystem of this operating system.  "
11468 "It is also possible for this function to return a list containing more than "
11469 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11470 "element being the root filesystem of one of the operating systems."
11471 msgstr ""
11472
11473 #. type: textblock
11474 #: ../src/guestfs-actions.pod:3243
11475 msgid ""
11476 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
11477 "functions in order to query further information about each operating system, "
11478 "such as the name and version."
11479 msgstr ""
11480
11481 #. type: textblock
11482 #: ../src/guestfs-actions.pod:3248
11483 msgid ""
11484 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
11485 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
11486 "the contents.  This should be called with no disks currently mounted.  The "
11487 "function may also use Augeas, so any existing Augeas handle will be closed."
11488 msgstr ""
11489
11490 #. type: textblock
11491 #: ../src/guestfs-actions.pod:3254 ../fish/guestfish-actions.pod:2291
11492 msgid ""
11493 "This function cannot decrypt encrypted disks.  The caller must do that first "
11494 "(supplying the necessary keys) if the disk is encrypted."
11495 msgstr ""
11496
11497 #. type: textblock
11498 #: ../src/guestfs-actions.pod:3260 ../src/guestfs-actions.pod:3550
11499 #: ../src/guestfs-actions.pod:3612
11500 msgid "See also C<guestfs_list_filesystems>."
11501 msgstr ""
11502
11503 #. type: =head2
11504 #: ../src/guestfs-actions.pod:3268
11505 msgid "guestfs_is_blockdev"
11506 msgstr ""
11507
11508 #. type: verbatim
11509 #: ../src/guestfs-actions.pod:3270
11510 #, no-wrap
11511 msgid ""
11512 " int\n"
11513 " guestfs_is_blockdev (guestfs_h *g,\n"
11514 "                      const char *path);\n"
11515 "\n"
11516 msgstr ""
11517
11518 #. type: textblock
11519 #: ../src/guestfs-actions.pod:3274 ../fish/guestfish-actions.pod:2303
11520 msgid ""
11521 "This returns C<true> if and only if there is a block device with the given "
11522 "C<path> name."
11523 msgstr ""
11524
11525 #. type: textblock
11526 #: ../src/guestfs-actions.pod:3277 ../src/guestfs-actions.pod:3306
11527 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3351
11528 #: ../src/guestfs-actions.pod:3367 ../src/guestfs-actions.pod:3423
11529 #: ../src/guestfs-actions.pod:3438
11530 msgid "See also C<guestfs_stat>."
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../src/guestfs-actions.pod:3281 ../src/guestfs-actions.pod:3310
11535 #: ../src/guestfs-actions.pod:3355 ../src/guestfs-actions.pod:3427
11536 #: ../src/guestfs-actions.pod:3442
11537 msgid "(Added in 1.5.10)"
11538 msgstr ""
11539
11540 #. type: =head2
11541 #: ../src/guestfs-actions.pod:3283
11542 msgid "guestfs_is_busy"
11543 msgstr ""
11544
11545 #. type: verbatim
11546 #: ../src/guestfs-actions.pod:3285
11547 #, no-wrap
11548 msgid ""
11549 " int\n"
11550 " guestfs_is_busy (guestfs_h *g);\n"
11551 "\n"
11552 msgstr ""
11553
11554 #. type: textblock
11555 #: ../src/guestfs-actions.pod:3288 ../fish/guestfish-actions.pod:2312
11556 msgid ""
11557 "This returns true iff this handle is busy processing a command (in the "
11558 "C<BUSY> state)."
11559 msgstr ""
11560
11561 #. type: =head2
11562 #: ../src/guestfs-actions.pod:3297
11563 msgid "guestfs_is_chardev"
11564 msgstr ""
11565
11566 #. type: verbatim
11567 #: ../src/guestfs-actions.pod:3299
11568 #, no-wrap
11569 msgid ""
11570 " int\n"
11571 " guestfs_is_chardev (guestfs_h *g,\n"
11572 "                     const char *path);\n"
11573 "\n"
11574 msgstr ""
11575
11576 #. type: textblock
11577 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2321
11578 msgid ""
11579 "This returns C<true> if and only if there is a character device with the "
11580 "given C<path> name."
11581 msgstr ""
11582
11583 #. type: =head2
11584 #: ../src/guestfs-actions.pod:3312
11585 msgid "guestfs_is_config"
11586 msgstr ""
11587
11588 #. type: verbatim
11589 #: ../src/guestfs-actions.pod:3314
11590 #, no-wrap
11591 msgid ""
11592 " int\n"
11593 " guestfs_is_config (guestfs_h *g);\n"
11594 "\n"
11595 msgstr ""
11596
11597 #. type: textblock
11598 #: ../src/guestfs-actions.pod:3317 ../fish/guestfish-actions.pod:2330
11599 msgid ""
11600 "This returns true iff this handle is being configured (in the C<CONFIG> "
11601 "state)."
11602 msgstr ""
11603
11604 #. type: =head2
11605 #: ../src/guestfs-actions.pod:3326
11606 msgid "guestfs_is_dir"
11607 msgstr ""
11608
11609 #. type: verbatim
11610 #: ../src/guestfs-actions.pod:3328
11611 #, no-wrap
11612 msgid ""
11613 " int\n"
11614 " guestfs_is_dir (guestfs_h *g,\n"
11615 "                 const char *path);\n"
11616 "\n"
11617 msgstr ""
11618
11619 #. type: textblock
11620 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2339
11621 msgid ""
11622 "This returns C<true> if and only if there is a directory with the given "
11623 "C<path> name.  Note that it returns false for other objects like files."
11624 msgstr ""
11625
11626 #. type: =head2
11627 #: ../src/guestfs-actions.pod:3342
11628 msgid "guestfs_is_fifo"
11629 msgstr ""
11630
11631 #. type: verbatim
11632 #: ../src/guestfs-actions.pod:3344
11633 #, no-wrap
11634 msgid ""
11635 " int\n"
11636 " guestfs_is_fifo (guestfs_h *g,\n"
11637 "                  const char *path);\n"
11638 "\n"
11639 msgstr ""
11640
11641 #. type: textblock
11642 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2349
11643 msgid ""
11644 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11645 "given C<path> name."
11646 msgstr ""
11647
11648 #. type: =head2
11649 #: ../src/guestfs-actions.pod:3357
11650 msgid "guestfs_is_file"
11651 msgstr ""
11652
11653 #. type: verbatim
11654 #: ../src/guestfs-actions.pod:3359
11655 #, no-wrap
11656 msgid ""
11657 " int\n"
11658 " guestfs_is_file (guestfs_h *g,\n"
11659 "                  const char *path);\n"
11660 "\n"
11661 msgstr ""
11662
11663 #. type: textblock
11664 #: ../src/guestfs-actions.pod:3363 ../fish/guestfish-actions.pod:2358
11665 msgid ""
11666 "This returns C<true> if and only if there is a regular file with the given "
11667 "C<path> name.  Note that it returns false for other objects like directories."
11668 msgstr ""
11669
11670 #. type: =head2
11671 #: ../src/guestfs-actions.pod:3373
11672 msgid "guestfs_is_launching"
11673 msgstr ""
11674
11675 #. type: verbatim
11676 #: ../src/guestfs-actions.pod:3375
11677 #, no-wrap
11678 msgid ""
11679 " int\n"
11680 " guestfs_is_launching (guestfs_h *g);\n"
11681 "\n"
11682 msgstr ""
11683
11684 #. type: textblock
11685 #: ../src/guestfs-actions.pod:3378 ../fish/guestfish-actions.pod:2368
11686 msgid ""
11687 "This returns true iff this handle is launching the subprocess (in the "
11688 "C<LAUNCHING> state)."
11689 msgstr ""
11690
11691 #. type: =head2
11692 #: ../src/guestfs-actions.pod:3387
11693 msgid "guestfs_is_lv"
11694 msgstr ""
11695
11696 #. type: verbatim
11697 #: ../src/guestfs-actions.pod:3389
11698 #, no-wrap
11699 msgid ""
11700 " int\n"
11701 " guestfs_is_lv (guestfs_h *g,\n"
11702 "                const char *device);\n"
11703 "\n"
11704 msgstr ""
11705
11706 #. type: textblock
11707 #: ../src/guestfs-actions.pod:3393 ../fish/guestfish-actions.pod:2377
11708 msgid ""
11709 "This command tests whether C<device> is a logical volume, and returns true "
11710 "iff this is the case."
11711 msgstr ""
11712
11713 #. type: =head2
11714 #: ../src/guestfs-actions.pod:3400
11715 msgid "guestfs_is_ready"
11716 msgstr ""
11717
11718 #. type: verbatim
11719 #: ../src/guestfs-actions.pod:3402
11720 #, no-wrap
11721 msgid ""
11722 " int\n"
11723 " guestfs_is_ready (guestfs_h *g);\n"
11724 "\n"
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../src/guestfs-actions.pod:3405 ../fish/guestfish-actions.pod:2384
11729 msgid ""
11730 "This returns true iff this handle is ready to accept commands (in the "
11731 "C<READY> state)."
11732 msgstr ""
11733
11734 #. type: =head2
11735 #: ../src/guestfs-actions.pod:3414
11736 msgid "guestfs_is_socket"
11737 msgstr ""
11738
11739 #. type: verbatim
11740 #: ../src/guestfs-actions.pod:3416
11741 #, no-wrap
11742 msgid ""
11743 " int\n"
11744 " guestfs_is_socket (guestfs_h *g,\n"
11745 "                    const char *path);\n"
11746 "\n"
11747 msgstr ""
11748
11749 #. type: textblock
11750 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2393
11751 msgid ""
11752 "This returns C<true> if and only if there is a Unix domain socket with the "
11753 "given C<path> name."
11754 msgstr ""
11755
11756 #. type: =head2
11757 #: ../src/guestfs-actions.pod:3429
11758 msgid "guestfs_is_symlink"
11759 msgstr ""
11760
11761 #. type: verbatim
11762 #: ../src/guestfs-actions.pod:3431
11763 #, no-wrap
11764 msgid ""
11765 " int\n"
11766 " guestfs_is_symlink (guestfs_h *g,\n"
11767 "                     const char *path);\n"
11768 "\n"
11769 msgstr ""
11770
11771 #. type: textblock
11772 #: ../src/guestfs-actions.pod:3435 ../fish/guestfish-actions.pod:2402
11773 msgid ""
11774 "This returns C<true> if and only if there is a symbolic link with the given "
11775 "C<path> name."
11776 msgstr ""
11777
11778 #. type: =head2
11779 #: ../src/guestfs-actions.pod:3444
11780 msgid "guestfs_kill_subprocess"
11781 msgstr ""
11782
11783 #. type: verbatim
11784 #: ../src/guestfs-actions.pod:3446
11785 #, no-wrap
11786 msgid ""
11787 " int\n"
11788 " guestfs_kill_subprocess (guestfs_h *g);\n"
11789 "\n"
11790 msgstr ""
11791
11792 #. type: textblock
11793 #: ../src/guestfs-actions.pod:3449 ../fish/guestfish-actions.pod:2411
11794 msgid "This kills the qemu subprocess.  You should never need to call this."
11795 msgstr ""
11796
11797 #. type: =head2
11798 #: ../src/guestfs-actions.pod:3455
11799 msgid "guestfs_launch"
11800 msgstr ""
11801
11802 #. type: verbatim
11803 #: ../src/guestfs-actions.pod:3457
11804 #, no-wrap
11805 msgid ""
11806 " int\n"
11807 " guestfs_launch (guestfs_h *g);\n"
11808 "\n"
11809 msgstr ""
11810
11811 #. type: textblock
11812 #: ../src/guestfs-actions.pod:3460 ../fish/guestfish-actions.pod:2419
11813 msgid ""
11814 "Internally libguestfs is implemented by running a virtual machine using "
11815 "L<qemu(1)>."
11816 msgstr ""
11817
11818 #. type: textblock
11819 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2422
11820 msgid ""
11821 "You should call this after configuring the handle (eg. adding drives) but "
11822 "before performing any actions."
11823 msgstr ""
11824
11825 #. type: =head2
11826 #: ../src/guestfs-actions.pod:3475
11827 msgid "guestfs_lchown"
11828 msgstr ""
11829
11830 #. type: verbatim
11831 #: ../src/guestfs-actions.pod:3477
11832 #, no-wrap
11833 msgid ""
11834 " int\n"
11835 " guestfs_lchown (guestfs_h *g,\n"
11836 "                 int owner,\n"
11837 "                 int group,\n"
11838 "                 const char *path);\n"
11839 "\n"
11840 msgstr ""
11841
11842 #. type: textblock
11843 #: ../src/guestfs-actions.pod:3483
11844 msgid ""
11845 "Change the file owner to C<owner> and group to C<group>.  This is like "
11846 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
11847 "changed, not the target."
11848 msgstr ""
11849
11850 #. type: =head2
11851 #: ../src/guestfs-actions.pod:3495
11852 msgid "guestfs_lgetxattr"
11853 msgstr ""
11854
11855 #. type: verbatim
11856 #: ../src/guestfs-actions.pod:3497
11857 #, no-wrap
11858 msgid ""
11859 " char *\n"
11860 " guestfs_lgetxattr (guestfs_h *g,\n"
11861 "                    const char *path,\n"
11862 "                    const char *name,\n"
11863 "                    size_t *size_r);\n"
11864 "\n"
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../src/guestfs-actions.pod:3503 ../fish/guestfish-actions.pod:2441
11869 msgid ""
11870 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11871 "is a symlink, then this call returns an extended attribute from the symlink."
11872 msgstr ""
11873
11874 #. type: textblock
11875 #: ../src/guestfs-actions.pod:3517
11876 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
11877 msgstr ""
11878
11879 #. type: =head2
11880 #: ../src/guestfs-actions.pod:3525
11881 msgid "guestfs_lgetxattrs"
11882 msgstr ""
11883
11884 #. type: verbatim
11885 #: ../src/guestfs-actions.pod:3527
11886 #, no-wrap
11887 msgid ""
11888 " struct guestfs_xattr_list *\n"
11889 " guestfs_lgetxattrs (guestfs_h *g,\n"
11890 "                     const char *path);\n"
11891 "\n"
11892 msgstr ""
11893
11894 #. type: textblock
11895 #: ../src/guestfs-actions.pod:3531
11896 msgid ""
11897 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
11898 "then it returns the extended attributes of the link itself."
11899 msgstr ""
11900
11901 #. type: =head2
11902 #: ../src/guestfs-actions.pod:3541
11903 msgid "guestfs_list_devices"
11904 msgstr ""
11905
11906 #. type: verbatim
11907 #: ../src/guestfs-actions.pod:3543
11908 #, no-wrap
11909 msgid ""
11910 " char **\n"
11911 " guestfs_list_devices (guestfs_h *g);\n"
11912 "\n"
11913 msgstr ""
11914
11915 #. type: textblock
11916 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2469
11917 msgid "List all the block devices."
11918 msgstr ""
11919
11920 #. type: textblock
11921 #: ../src/guestfs-actions.pod:3548 ../fish/guestfish-actions.pod:2471
11922 msgid "The full block device names are returned, eg. C</dev/sda>."
11923 msgstr ""
11924
11925 #. type: =head2
11926 #: ../src/guestfs-actions.pod:3558
11927 msgid "guestfs_list_filesystems"
11928 msgstr ""
11929
11930 #. type: verbatim
11931 #: ../src/guestfs-actions.pod:3560
11932 #, no-wrap
11933 msgid ""
11934 " char **\n"
11935 " guestfs_list_filesystems (guestfs_h *g);\n"
11936 "\n"
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../src/guestfs-actions.pod:3563 ../fish/guestfish-actions.pod:2479
11941 msgid ""
11942 "This inspection command looks for filesystems on partitions, block devices "
11943 "and logical volumes, returning a list of devices containing filesystems and "
11944 "their type."
11945 msgstr ""
11946
11947 #. type: textblock
11948 #: ../src/guestfs-actions.pod:3567 ../fish/guestfish-actions.pod:2483
11949 msgid ""
11950 "The return value is a hash, where the keys are the devices containing "
11951 "filesystems, and the values are the filesystem types.  For example:"
11952 msgstr ""
11953
11954 #. type: verbatim
11955 #: ../src/guestfs-actions.pod:3571 ../fish/guestfish-actions.pod:2487
11956 #, no-wrap
11957 msgid ""
11958 " \"/dev/sda1\" => \"ntfs\"\n"
11959 " \"/dev/sda2\" => \"ext2\"\n"
11960 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11961 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11962 "\n"
11963 msgstr ""
11964
11965 #. type: textblock
11966 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2492
11967 msgid ""
11968 "The value can have the special value \"unknown\", meaning the content of the "
11969 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11970 msgstr ""
11971
11972 #. type: textblock
11973 #: ../src/guestfs-actions.pod:3580
11974 msgid ""
11975 "This command runs other libguestfs commands, which might include "
11976 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
11977 "soon after launch and only when nothing is mounted."
11978 msgstr ""
11979
11980 #. type: textblock
11981 #: ../src/guestfs-actions.pod:3584
11982 msgid ""
11983 "Not all of the filesystems returned will be mountable.  In particular, swap "
11984 "partitions are returned in the list.  Also this command does not check that "
11985 "each filesystem found is valid and mountable, and some filesystems might be "
11986 "mountable but require special options.  Filesystems may not all belong to a "
11987 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
11988 msgstr ""
11989
11990 #. type: textblock
11991 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:5203
11992 msgid "(Added in 1.5.15)"
11993 msgstr ""
11994
11995 #. type: =head2
11996 #: ../src/guestfs-actions.pod:3600
11997 msgid "guestfs_list_partitions"
11998 msgstr ""
11999
12000 #. type: verbatim
12001 #: ../src/guestfs-actions.pod:3602
12002 #, no-wrap
12003 msgid ""
12004 " char **\n"
12005 " guestfs_list_partitions (guestfs_h *g);\n"
12006 "\n"
12007 msgstr ""
12008
12009 #. type: textblock
12010 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2512
12011 msgid "List all the partitions detected on all block devices."
12012 msgstr ""
12013
12014 #. type: textblock
12015 #: ../src/guestfs-actions.pod:3607 ../fish/guestfish-actions.pod:2514
12016 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12017 msgstr ""
12018
12019 #. type: textblock
12020 #: ../src/guestfs-actions.pod:3609
12021 msgid ""
12022 "This does not return logical volumes.  For that you will need to call "
12023 "C<guestfs_lvs>."
12024 msgstr ""
12025
12026 #. type: =head2
12027 #: ../src/guestfs-actions.pod:3620
12028 msgid "guestfs_ll"
12029 msgstr ""
12030
12031 #. type: verbatim
12032 #: ../src/guestfs-actions.pod:3622
12033 #, no-wrap
12034 msgid ""
12035 " char *\n"
12036 " guestfs_ll (guestfs_h *g,\n"
12037 "             const char *directory);\n"
12038 "\n"
12039 msgstr ""
12040
12041 #. type: textblock
12042 #: ../src/guestfs-actions.pod:3626 ../fish/guestfish-actions.pod:2525
12043 msgid ""
12044 "List the files in C<directory> (relative to the root directory, there is no "
12045 "cwd) in the format of 'ls -la'."
12046 msgstr ""
12047
12048 #. type: textblock
12049 #: ../src/guestfs-actions.pod:3629 ../fish/guestfish-actions.pod:2528
12050 msgid ""
12051 "This command is mostly useful for interactive sessions.  It is I<not> "
12052 "intended that you try to parse the output string."
12053 msgstr ""
12054
12055 #. type: =head2
12056 #: ../src/guestfs-actions.pod:3637
12057 msgid "guestfs_ln"
12058 msgstr ""
12059
12060 #. type: verbatim
12061 #: ../src/guestfs-actions.pod:3639
12062 #, no-wrap
12063 msgid ""
12064 " int\n"
12065 " guestfs_ln (guestfs_h *g,\n"
12066 "             const char *target,\n"
12067 "             const char *linkname);\n"
12068 "\n"
12069 msgstr ""
12070
12071 #. type: textblock
12072 #: ../src/guestfs-actions.pod:3644 ../fish/guestfish-actions.pod:2535
12073 msgid "This command creates a hard link using the C<ln> command."
12074 msgstr ""
12075
12076 #. type: =head2
12077 #: ../src/guestfs-actions.pod:3650
12078 msgid "guestfs_ln_f"
12079 msgstr ""
12080
12081 #. type: verbatim
12082 #: ../src/guestfs-actions.pod:3652
12083 #, no-wrap
12084 msgid ""
12085 " int\n"
12086 " guestfs_ln_f (guestfs_h *g,\n"
12087 "               const char *target,\n"
12088 "               const char *linkname);\n"
12089 "\n"
12090 msgstr ""
12091
12092 #. type: textblock
12093 #: ../src/guestfs-actions.pod:3657 ../fish/guestfish-actions.pod:2541
12094 msgid ""
12095 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
12096 "option removes the link (C<linkname>) if it exists already."
12097 msgstr ""
12098
12099 #. type: =head2
12100 #: ../src/guestfs-actions.pod:3664
12101 msgid "guestfs_ln_s"
12102 msgstr ""
12103
12104 #. type: verbatim
12105 #: ../src/guestfs-actions.pod:3666
12106 #, no-wrap
12107 msgid ""
12108 " int\n"
12109 " guestfs_ln_s (guestfs_h *g,\n"
12110 "               const char *target,\n"
12111 "               const char *linkname);\n"
12112 "\n"
12113 msgstr ""
12114
12115 #. type: textblock
12116 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2548
12117 msgid "This command creates a symbolic link using the C<ln -s> command."
12118 msgstr ""
12119
12120 #. type: =head2
12121 #: ../src/guestfs-actions.pod:3677
12122 msgid "guestfs_ln_sf"
12123 msgstr ""
12124
12125 #. type: verbatim
12126 #: ../src/guestfs-actions.pod:3679
12127 #, no-wrap
12128 msgid ""
12129 " int\n"
12130 " guestfs_ln_sf (guestfs_h *g,\n"
12131 "                const char *target,\n"
12132 "                const char *linkname);\n"
12133 "\n"
12134 msgstr ""
12135
12136 #. type: textblock
12137 #: ../src/guestfs-actions.pod:3684 ../fish/guestfish-actions.pod:2554
12138 msgid ""
12139 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
12140 "option removes the link (C<linkname>) if it exists already."
12141 msgstr ""
12142
12143 #. type: =head2
12144 #: ../src/guestfs-actions.pod:3691
12145 msgid "guestfs_lremovexattr"
12146 msgstr ""
12147
12148 #. type: verbatim
12149 #: ../src/guestfs-actions.pod:3693
12150 #, no-wrap
12151 msgid ""
12152 " int\n"
12153 " guestfs_lremovexattr (guestfs_h *g,\n"
12154 "                       const char *xattr,\n"
12155 "                       const char *path);\n"
12156 "\n"
12157 msgstr ""
12158
12159 #. type: textblock
12160 #: ../src/guestfs-actions.pod:3698
12161 msgid ""
12162 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
12163 "link, then it removes an extended attribute of the link itself."
12164 msgstr ""
12165
12166 #. type: =head2
12167 #: ../src/guestfs-actions.pod:3706
12168 msgid "guestfs_ls"
12169 msgstr ""
12170
12171 #. type: verbatim
12172 #: ../src/guestfs-actions.pod:3708
12173 #, no-wrap
12174 msgid ""
12175 " char **\n"
12176 " guestfs_ls (guestfs_h *g,\n"
12177 "             const char *directory);\n"
12178 "\n"
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../src/guestfs-actions.pod:3712 ../fish/guestfish-actions.pod:2569
12183 msgid ""
12184 "List the files in C<directory> (relative to the root directory, there is no "
12185 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12186 msgstr ""
12187
12188 #. type: textblock
12189 #: ../src/guestfs-actions.pod:3716
12190 msgid ""
12191 "This command is mostly useful for interactive sessions.  Programs should "
12192 "probably use C<guestfs_readdir> instead."
12193 msgstr ""
12194
12195 #. type: =head2
12196 #: ../src/guestfs-actions.pod:3725
12197 msgid "guestfs_lsetxattr"
12198 msgstr ""
12199
12200 #. type: verbatim
12201 #: ../src/guestfs-actions.pod:3727
12202 #, no-wrap
12203 msgid ""
12204 " int\n"
12205 " guestfs_lsetxattr (guestfs_h *g,\n"
12206 "                    const char *xattr,\n"
12207 "                    const char *val,\n"
12208 "                    int vallen,\n"
12209 "                    const char *path);\n"
12210 "\n"
12211 msgstr ""
12212
12213 #. type: textblock
12214 #: ../src/guestfs-actions.pod:3734
12215 msgid ""
12216 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
12217 "then it sets an extended attribute of the link itself."
12218 msgstr ""
12219
12220 #. type: =head2
12221 #: ../src/guestfs-actions.pod:3742
12222 msgid "guestfs_lstat"
12223 msgstr ""
12224
12225 #. type: verbatim
12226 #: ../src/guestfs-actions.pod:3744
12227 #, no-wrap
12228 msgid ""
12229 " struct guestfs_stat *\n"
12230 " guestfs_lstat (guestfs_h *g,\n"
12231 "                const char *path);\n"
12232 "\n"
12233 msgstr ""
12234
12235 #. type: textblock
12236 #: ../src/guestfs-actions.pod:3748 ../src/guestfs-actions.pod:6306
12237 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:4257
12238 msgid "Returns file information for the given C<path>."
12239 msgstr ""
12240
12241 #. type: textblock
12242 #: ../src/guestfs-actions.pod:3750
12243 msgid ""
12244 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
12245 "link, then the link is stat-ed, not the file it refers to."
12246 msgstr ""
12247
12248 #. type: textblock
12249 #: ../src/guestfs-actions.pod:3754 ../fish/guestfish-actions.pod:2594
12250 msgid "This is the same as the C<lstat(2)> system call."
12251 msgstr ""
12252
12253 #. type: textblock
12254 #: ../src/guestfs-actions.pod:3756 ../src/guestfs-actions.pod:6310
12255 msgid ""
12256 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
12257 "error.  I<The caller must call C<guestfs_free_stat> after use>."
12258 msgstr ""
12259
12260 #. type: textblock
12261 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:6314
12262 #: ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6713
12263 msgid "(Added in 0.9.2)"
12264 msgstr ""
12265
12266 #. type: =head2
12267 #: ../src/guestfs-actions.pod:3762
12268 msgid "guestfs_lstatlist"
12269 msgstr ""
12270
12271 #. type: verbatim
12272 #: ../src/guestfs-actions.pod:3764
12273 #, no-wrap
12274 msgid ""
12275 " struct guestfs_stat_list *\n"
12276 " guestfs_lstatlist (guestfs_h *g,\n"
12277 "                    const char *path,\n"
12278 "                    char *const *names);\n"
12279 "\n"
12280 msgstr ""
12281
12282 #. type: textblock
12283 #: ../src/guestfs-actions.pod:3769
12284 msgid ""
12285 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
12286 "files, where all files are in the directory C<path>.  C<names> is the list "
12287 "of files from this directory."
12288 msgstr ""
12289
12290 #. type: textblock
12291 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2604
12292 msgid ""
12293 "On return you get a list of stat structs, with a one-to-one correspondence "
12294 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12295 "then the C<ino> field of that structure is set to C<-1>."
12296 msgstr ""
12297
12298 #. type: textblock
12299 #: ../src/guestfs-actions.pod:3778
12300 msgid ""
12301 "This call is intended for programs that want to efficiently list a directory "
12302 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
12303 "for a similarly efficient call for getting extended attributes.  Very long "
12304 "directory listings might cause the protocol message size to be exceeded, "
12305 "causing this call to fail.  The caller must split up such requests into "
12306 "smaller groups of names."
12307 msgstr ""
12308
12309 #. type: textblock
12310 #: ../src/guestfs-actions.pod:3786
12311 msgid ""
12312 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
12313 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
12314 msgstr ""
12315
12316 #. type: =head2
12317 #: ../src/guestfs-actions.pod:3792
12318 msgid "guestfs_luks_add_key"
12319 msgstr ""
12320
12321 #. type: verbatim
12322 #: ../src/guestfs-actions.pod:3794
12323 #, no-wrap
12324 msgid ""
12325 " int\n"
12326 " guestfs_luks_add_key (guestfs_h *g,\n"
12327 "                       const char *device,\n"
12328 "                       const char *key,\n"
12329 "                       const char *newkey,\n"
12330 "                       int keyslot);\n"
12331 "\n"
12332 msgstr ""
12333
12334 #. type: textblock
12335 #: ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2621
12336 msgid ""
12337 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12338 "existing key, and is used to access the device.  C<newkey> is the new key to "
12339 "add.  C<keyslot> is the key slot that will be replaced."
12340 msgstr ""
12341
12342 #. type: textblock
12343 #: ../src/guestfs-actions.pod:3806
12344 msgid ""
12345 "Note that if C<keyslot> already contains a key, then this command will "
12346 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
12347 msgstr ""
12348
12349 #. type: textblock
12350 #: ../src/guestfs-actions.pod:3812 ../src/guestfs-actions.pod:3852
12351 #: ../src/guestfs-actions.pod:3875 ../src/guestfs-actions.pod:3895
12352 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:3946
12353 msgid ""
12354 "This function takes a key or passphrase parameter which could contain "
12355 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
12356 "information."
12357 msgstr ""
12358
12359 #. type: textblock
12360 #: ../src/guestfs-actions.pod:3816 ../src/guestfs-actions.pod:3856
12361 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3899
12362 msgid "(Added in 1.5.2)"
12363 msgstr ""
12364
12365 #. type: =head2
12366 #: ../src/guestfs-actions.pod:3818
12367 msgid "guestfs_luks_close"
12368 msgstr ""
12369
12370 #. type: verbatim
12371 #: ../src/guestfs-actions.pod:3820
12372 #, no-wrap
12373 msgid ""
12374 " int\n"
12375 " guestfs_luks_close (guestfs_h *g,\n"
12376 "                     const char *device);\n"
12377 "\n"
12378 msgstr ""
12379
12380 #. type: textblock
12381 #: ../src/guestfs-actions.pod:3824
12382 msgid ""
12383 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
12384 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
12385 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12386 "underlying block device."
12387 msgstr ""
12388
12389 #. type: textblock
12390 #: ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:3931
12391 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:4000
12392 #: ../src/guestfs-actions.pod:4048
12393 msgid "(Added in 1.5.1)"
12394 msgstr ""
12395
12396 #. type: =head2
12397 #: ../src/guestfs-actions.pod:3834
12398 msgid "guestfs_luks_format"
12399 msgstr ""
12400
12401 #. type: verbatim
12402 #: ../src/guestfs-actions.pod:3836
12403 #, no-wrap
12404 msgid ""
12405 " int\n"
12406 " guestfs_luks_format (guestfs_h *g,\n"
12407 "                      const char *device,\n"
12408 "                      const char *key,\n"
12409 "                      int keyslot);\n"
12410 "\n"
12411 msgstr ""
12412
12413 #. type: textblock
12414 #: ../src/guestfs-actions.pod:3842 ../fish/guestfish-actions.pod:2647
12415 msgid ""
12416 "This command erases existing data on C<device> and formats the device as a "
12417 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12418 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12419 msgstr ""
12420
12421 #. type: textblock
12422 #: ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3872
12423 #: ../src/guestfs-actions.pod:4012 ../src/guestfs-actions.pod:4954
12424 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:6141
12425 #: ../src/guestfs-actions.pod:6164 ../src/guestfs-actions.pod:6190
12426 #: ../src/guestfs-actions.pod:7350 ../fish/guestfish-actions.pod:2655
12427 #: ../fish/guestfish-actions.pod:2668 ../fish/guestfish-actions.pod:2752
12428 #: ../fish/guestfish-actions.pod:3326 ../fish/guestfish-actions.pod:3846
12429 #: ../fish/guestfish-actions.pod:4156 ../fish/guestfish-actions.pod:4172
12430 #: ../fish/guestfish-actions.pod:4187 ../fish/guestfish-actions.pod:4902
12431 msgid ""
12432 "B<This command is dangerous.  Without careful use you can easily destroy all "
12433 "your data>."
12434 msgstr ""
12435
12436 #. type: =head2
12437 #: ../src/guestfs-actions.pod:3858
12438 msgid "guestfs_luks_format_cipher"
12439 msgstr ""
12440
12441 #. type: verbatim
12442 #: ../src/guestfs-actions.pod:3860
12443 #, no-wrap
12444 msgid ""
12445 " int\n"
12446 " guestfs_luks_format_cipher (guestfs_h *g,\n"
12447 "                             const char *device,\n"
12448 "                             const char *key,\n"
12449 "                             int keyslot,\n"
12450 "                             const char *cipher);\n"
12451 "\n"
12452 msgstr ""
12453
12454 #. type: textblock
12455 #: ../src/guestfs-actions.pod:3867
12456 msgid ""
12457 "This command is the same as C<guestfs_luks_format> but it also allows you to "
12458 "set the C<cipher> used."
12459 msgstr ""
12460
12461 #. type: =head2
12462 #: ../src/guestfs-actions.pod:3881
12463 msgid "guestfs_luks_kill_slot"
12464 msgstr ""
12465
12466 #. type: verbatim
12467 #: ../src/guestfs-actions.pod:3883
12468 #, no-wrap
12469 msgid ""
12470 " int\n"
12471 " guestfs_luks_kill_slot (guestfs_h *g,\n"
12472 "                         const char *device,\n"
12473 "                         const char *key,\n"
12474 "                         int keyslot);\n"
12475 "\n"
12476 msgstr ""
12477
12478 #. type: textblock
12479 #: ../src/guestfs-actions.pod:3889 ../fish/guestfish-actions.pod:2675
12480 msgid ""
12481 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12482 "device C<device>.  C<key> must be one of the I<other> keys."
12483 msgstr ""
12484
12485 #. type: =head2
12486 #: ../src/guestfs-actions.pod:3901
12487 msgid "guestfs_luks_open"
12488 msgstr ""
12489
12490 #. type: verbatim
12491 #: ../src/guestfs-actions.pod:3903
12492 #, no-wrap
12493 msgid ""
12494 " int\n"
12495 " guestfs_luks_open (guestfs_h *g,\n"
12496 "                    const char *device,\n"
12497 "                    const char *key,\n"
12498 "                    const char *mapname);\n"
12499 "\n"
12500 msgstr ""
12501
12502 #. type: textblock
12503 #: ../src/guestfs-actions.pod:3909 ../fish/guestfish-actions.pod:2686
12504 msgid ""
12505 "This command opens a block device which has been encrypted according to the "
12506 "Linux Unified Key Setup (LUKS) standard."
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../src/guestfs-actions.pod:3912 ../fish/guestfish-actions.pod:2689
12511 msgid "C<device> is the encrypted block device or partition."
12512 msgstr ""
12513
12514 #. type: textblock
12515 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2691
12516 msgid ""
12517 "The caller must supply one of the keys associated with the LUKS block "
12518 "device, in the C<key> parameter."
12519 msgstr ""
12520
12521 #. type: textblock
12522 #: ../src/guestfs-actions.pod:3917 ../fish/guestfish-actions.pod:2694
12523 msgid ""
12524 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12525 "writes to this block device are decrypted from and encrypted to the "
12526 "underlying C<device> respectively."
12527 msgstr ""
12528
12529 #. type: textblock
12530 #: ../src/guestfs-actions.pod:3921
12531 msgid ""
12532 "If this block device contains LVM volume groups, then calling "
12533 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
12534 "visible."
12535 msgstr ""
12536
12537 #. type: =head2
12538 #: ../src/guestfs-actions.pod:3933
12539 msgid "guestfs_luks_open_ro"
12540 msgstr ""
12541
12542 #. type: verbatim
12543 #: ../src/guestfs-actions.pod:3935
12544 #, no-wrap
12545 msgid ""
12546 " int\n"
12547 " guestfs_luks_open_ro (guestfs_h *g,\n"
12548 "                       const char *device,\n"
12549 "                       const char *key,\n"
12550 "                       const char *mapname);\n"
12551 "\n"
12552 msgstr ""
12553
12554 #. type: textblock
12555 #: ../src/guestfs-actions.pod:3941
12556 msgid ""
12557 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
12558 "created."
12559 msgstr ""
12560
12561 #. type: =head2
12562 #: ../src/guestfs-actions.pod:3952
12563 msgid "guestfs_lvcreate"
12564 msgstr ""
12565
12566 #. type: verbatim
12567 #: ../src/guestfs-actions.pod:3954
12568 #, no-wrap
12569 msgid ""
12570 " int\n"
12571 " guestfs_lvcreate (guestfs_h *g,\n"
12572 "                   const char *logvol,\n"
12573 "                   const char *volgroup,\n"
12574 "                   int mbytes);\n"
12575 "\n"
12576 msgstr ""
12577
12578 #. type: textblock
12579 #: ../src/guestfs-actions.pod:3960 ../fish/guestfish-actions.pod:2719
12580 msgid ""
12581 "This creates an LVM logical volume called C<logvol> on the volume group "
12582 "C<volgroup>, with C<size> megabytes."
12583 msgstr ""
12584
12585 #. type: =head2
12586 #: ../src/guestfs-actions.pod:3967
12587 msgid "guestfs_lvm_canonical_lv_name"
12588 msgstr ""
12589
12590 #. type: verbatim
12591 #: ../src/guestfs-actions.pod:3969
12592 #, no-wrap
12593 msgid ""
12594 " char *\n"
12595 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
12596 "                                const char *lvname);\n"
12597 "\n"
12598 msgstr ""
12599
12600 #. type: textblock
12601 #: ../src/guestfs-actions.pod:3973 ../fish/guestfish-actions.pod:2726
12602 msgid ""
12603 "This converts alternative naming schemes for LVs that you might find to the "
12604 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12605 "LV>."
12606 msgstr ""
12607
12608 #. type: textblock
12609 #: ../src/guestfs-actions.pod:3977 ../fish/guestfish-actions.pod:2730
12610 msgid ""
12611 "This command returns an error if the C<lvname> parameter does not refer to a "
12612 "logical volume."
12613 msgstr ""
12614
12615 #. type: textblock
12616 #: ../src/guestfs-actions.pod:3980
12617 msgid "See also C<guestfs_is_lv>."
12618 msgstr ""
12619
12620 #. type: textblock
12621 #: ../src/guestfs-actions.pod:3985
12622 msgid "(Added in 1.5.24)"
12623 msgstr ""
12624
12625 #. type: =head2
12626 #: ../src/guestfs-actions.pod:3987
12627 msgid "guestfs_lvm_clear_filter"
12628 msgstr ""
12629
12630 #. type: verbatim
12631 #: ../src/guestfs-actions.pod:3989
12632 #, no-wrap
12633 msgid ""
12634 " int\n"
12635 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
12636 "\n"
12637 msgstr ""
12638
12639 #. type: textblock
12640 #: ../src/guestfs-actions.pod:3992
12641 msgid ""
12642 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
12643 "see every block device."
12644 msgstr ""
12645
12646 #. type: textblock
12647 #: ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4037
12648 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2773
12649 msgid ""
12650 "This command also clears the LVM cache and performs a volume group scan."
12651 msgstr ""
12652
12653 #. type: =head2
12654 #: ../src/guestfs-actions.pod:4002
12655 msgid "guestfs_lvm_remove_all"
12656 msgstr ""
12657
12658 #. type: verbatim
12659 #: ../src/guestfs-actions.pod:4004
12660 #, no-wrap
12661 msgid ""
12662 " int\n"
12663 " guestfs_lvm_remove_all (guestfs_h *g);\n"
12664 "\n"
12665 msgstr ""
12666
12667 #. type: textblock
12668 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2749
12669 msgid ""
12670 "This command removes all LVM logical volumes, volume groups and physical "
12671 "volumes."
12672 msgstr ""
12673
12674 #. type: =head2
12675 #: ../src/guestfs-actions.pod:4017
12676 msgid "guestfs_lvm_set_filter"
12677 msgstr ""
12678
12679 #. type: verbatim
12680 #: ../src/guestfs-actions.pod:4019
12681 #, no-wrap
12682 msgid ""
12683 " int\n"
12684 " guestfs_lvm_set_filter (guestfs_h *g,\n"
12685 "                         char *const *devices);\n"
12686 "\n"
12687 msgstr ""
12688
12689 #. type: textblock
12690 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2759
12691 msgid ""
12692 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12693 "block devices in the list C<devices>, and will ignore all other attached "
12694 "block devices."
12695 msgstr ""
12696
12697 #. type: textblock
12698 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:2763
12699 msgid ""
12700 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12701 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12702 "there are two types of duplication possible: either cloned PVs/VGs which "
12703 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12704 "same name.  In normal operation you cannot create this situation, but you "
12705 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12706 "inside the LVM metadata."
12707 msgstr ""
12708
12709 #. type: textblock
12710 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2776
12711 msgid "You can filter whole block devices or individual partitions."
12712 msgstr ""
12713
12714 #. type: textblock
12715 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2778
12716 msgid ""
12717 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12718 "filesystem), even if you are not filtering out that VG."
12719 msgstr ""
12720
12721 #. type: =head2
12722 #: ../src/guestfs-actions.pod:4050
12723 msgid "guestfs_lvremove"
12724 msgstr ""
12725
12726 #. type: verbatim
12727 #: ../src/guestfs-actions.pod:4052
12728 #, no-wrap
12729 msgid ""
12730 " int\n"
12731 " guestfs_lvremove (guestfs_h *g,\n"
12732 "                   const char *device);\n"
12733 "\n"
12734 msgstr ""
12735
12736 #. type: textblock
12737 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2786
12738 msgid ""
12739 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12740 "LV, such as C</dev/VG/LV>."
12741 msgstr ""
12742
12743 #. type: textblock
12744 #: ../src/guestfs-actions.pod:4059 ../fish/guestfish-actions.pod:2789
12745 msgid ""
12746 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12747 "dev/VG>."
12748 msgstr ""
12749
12750 #. type: textblock
12751 #: ../src/guestfs-actions.pod:4064 ../src/guestfs-actions.pod:5300
12752 #: ../src/guestfs-actions.pod:7089
12753 msgid "(Added in 1.0.13)"
12754 msgstr ""
12755
12756 #. type: =head2
12757 #: ../src/guestfs-actions.pod:4066
12758 msgid "guestfs_lvrename"
12759 msgstr ""
12760
12761 #. type: verbatim
12762 #: ../src/guestfs-actions.pod:4068
12763 #, no-wrap
12764 msgid ""
12765 " int\n"
12766 " guestfs_lvrename (guestfs_h *g,\n"
12767 "                   const char *logvol,\n"
12768 "                   const char *newlogvol);\n"
12769 "\n"
12770 msgstr ""
12771
12772 #. type: textblock
12773 #: ../src/guestfs-actions.pod:4073 ../fish/guestfish-actions.pod:2796
12774 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12775 msgstr ""
12776
12777 #. type: textblock
12778 #: ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:7102
12779 msgid "(Added in 1.0.83)"
12780 msgstr ""
12781
12782 #. type: =head2
12783 #: ../src/guestfs-actions.pod:4079
12784 msgid "guestfs_lvresize"
12785 msgstr ""
12786
12787 #. type: verbatim
12788 #: ../src/guestfs-actions.pod:4081
12789 #, no-wrap
12790 msgid ""
12791 " int\n"
12792 " guestfs_lvresize (guestfs_h *g,\n"
12793 "                   const char *device,\n"
12794 "                   int mbytes);\n"
12795 "\n"
12796 msgstr ""
12797
12798 #. type: textblock
12799 #: ../src/guestfs-actions.pod:4086 ../fish/guestfish-actions.pod:2802
12800 msgid ""
12801 "This resizes (expands or shrinks) an existing LVM logical volume to "
12802 "C<mbytes>.  When reducing, data in the reduced part is lost."
12803 msgstr ""
12804
12805 #. type: =head2
12806 #: ../src/guestfs-actions.pod:4094
12807 msgid "guestfs_lvresize_free"
12808 msgstr ""
12809
12810 #. type: verbatim
12811 #: ../src/guestfs-actions.pod:4096
12812 #, no-wrap
12813 msgid ""
12814 " int\n"
12815 " guestfs_lvresize_free (guestfs_h *g,\n"
12816 "                        const char *lv,\n"
12817 "                        int percent);\n"
12818 "\n"
12819 msgstr ""
12820
12821 #. type: textblock
12822 #: ../src/guestfs-actions.pod:4101 ../fish/guestfish-actions.pod:2810
12823 msgid ""
12824 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12825 "remaining free space in the volume group.  Commonly you would call this with "
12826 "pc = 100 which expands the logical volume as much as possible, using all "
12827 "remaining free space in the volume group."
12828 msgstr ""
12829
12830 #. type: textblock
12831 #: ../src/guestfs-actions.pod:4109
12832 msgid "(Added in 1.3.3)"
12833 msgstr ""
12834
12835 #. type: =head2
12836 #: ../src/guestfs-actions.pod:4111
12837 msgid "guestfs_lvs"
12838 msgstr ""
12839
12840 #. type: verbatim
12841 #: ../src/guestfs-actions.pod:4113
12842 #, no-wrap
12843 msgid ""
12844 " char **\n"
12845 " guestfs_lvs (guestfs_h *g);\n"
12846 "\n"
12847 msgstr ""
12848
12849 #. type: textblock
12850 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:2820
12851 msgid ""
12852 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12853 "(8)> command."
12854 msgstr ""
12855
12856 #. type: textblock
12857 #: ../src/guestfs-actions.pod:4119 ../fish/guestfish-actions.pod:2823
12858 msgid ""
12859 "This returns a list of the logical volume device names (eg. C</dev/"
12860 "VolGroup00/LogVol00>)."
12861 msgstr ""
12862
12863 #. type: textblock
12864 #: ../src/guestfs-actions.pod:4122
12865 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
12866 msgstr ""
12867
12868 #. type: =head2
12869 #: ../src/guestfs-actions.pod:4130
12870 msgid "guestfs_lvs_full"
12871 msgstr ""
12872
12873 #. type: verbatim
12874 #: ../src/guestfs-actions.pod:4132
12875 #, no-wrap
12876 msgid ""
12877 " struct guestfs_lvm_lv_list *\n"
12878 " guestfs_lvs_full (guestfs_h *g);\n"
12879 "\n"
12880 msgstr ""
12881
12882 #. type: textblock
12883 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2832
12884 msgid ""
12885 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12886 "(8)> command.  The \"full\" version includes all fields."
12887 msgstr ""
12888
12889 #. type: textblock
12890 #: ../src/guestfs-actions.pod:4138
12891 msgid ""
12892 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
12893 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
12894 msgstr ""
12895
12896 #. type: =head2
12897 #: ../src/guestfs-actions.pod:4144
12898 msgid "guestfs_lvuuid"
12899 msgstr ""
12900
12901 #. type: verbatim
12902 #: ../src/guestfs-actions.pod:4146
12903 #, no-wrap
12904 msgid ""
12905 " char *\n"
12906 " guestfs_lvuuid (guestfs_h *g,\n"
12907 "                 const char *device);\n"
12908 "\n"
12909 msgstr ""
12910
12911 #. type: textblock
12912 #: ../src/guestfs-actions.pod:4150 ../fish/guestfish-actions.pod:2839
12913 msgid "This command returns the UUID of the LVM LV C<device>."
12914 msgstr ""
12915
12916 #. type: =head2
12917 #: ../src/guestfs-actions.pod:4157
12918 msgid "guestfs_lxattrlist"
12919 msgstr ""
12920
12921 #. type: verbatim
12922 #: ../src/guestfs-actions.pod:4159
12923 #, no-wrap
12924 msgid ""
12925 " struct guestfs_xattr_list *\n"
12926 " guestfs_lxattrlist (guestfs_h *g,\n"
12927 "                     const char *path,\n"
12928 "                     char *const *names);\n"
12929 "\n"
12930 msgstr ""
12931
12932 #. type: textblock
12933 #: ../src/guestfs-actions.pod:4164 ../fish/guestfish-actions.pod:2845
12934 msgid ""
12935 "This call allows you to get the extended attributes of multiple files, where "
12936 "all files are in the directory C<path>.  C<names> is the list of files from "
12937 "this directory."
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../src/guestfs-actions.pod:4168 ../fish/guestfish-actions.pod:2849
12942 msgid ""
12943 "On return you get a flat list of xattr structs which must be interpreted "
12944 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12945 "C<attrval> in this struct is zero-length to indicate there was an error "
12946 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12947 "number (the number of following attributes for this file, which could be C<"
12948 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12949 "for the first named file.  This repeats for the second and subsequent files."
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../src/guestfs-actions.pod:4178
12954 msgid ""
12955 "This call is intended for programs that want to efficiently list a directory "
12956 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
12957 "a similarly efficient call for getting standard stats.  Very long directory "
12958 "listings might cause the protocol message size to be exceeded, causing this "
12959 "call to fail.  The caller must split up such requests into smaller groups of "
12960 "names."
12961 msgstr ""
12962
12963 #. type: =head2
12964 #: ../src/guestfs-actions.pod:4192
12965 msgid "guestfs_mkdir"
12966 msgstr ""
12967
12968 #. type: verbatim
12969 #: ../src/guestfs-actions.pod:4194
12970 #, no-wrap
12971 msgid ""
12972 " int\n"
12973 " guestfs_mkdir (guestfs_h *g,\n"
12974 "                const char *path);\n"
12975 "\n"
12976 msgstr ""
12977
12978 #. type: textblock
12979 #: ../src/guestfs-actions.pod:4198 ../fish/guestfish-actions.pod:2871
12980 msgid "Create a directory named C<path>."
12981 msgstr ""
12982
12983 #. type: =head2
12984 #: ../src/guestfs-actions.pod:4204
12985 msgid "guestfs_mkdir_mode"
12986 msgstr ""
12987
12988 #. type: verbatim
12989 #: ../src/guestfs-actions.pod:4206
12990 #, no-wrap
12991 msgid ""
12992 " int\n"
12993 " guestfs_mkdir_mode (guestfs_h *g,\n"
12994 "                     const char *path,\n"
12995 "                     int mode);\n"
12996 "\n"
12997 msgstr ""
12998
12999 #. type: textblock
13000 #: ../src/guestfs-actions.pod:4211 ../fish/guestfish-actions.pod:2877
13001 msgid ""
13002 "This command creates a directory, setting the initial permissions of the "
13003 "directory to C<mode>."
13004 msgstr ""
13005
13006 #. type: textblock
13007 #: ../src/guestfs-actions.pod:4214 ../fish/guestfish-actions.pod:2880
13008 msgid ""
13009 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13010 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13011 "other ways."
13012 msgstr ""
13013
13014 #. type: textblock
13015 #: ../src/guestfs-actions.pod:4218
13016 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
13017 msgstr ""
13018
13019 #. type: =head2
13020 #: ../src/guestfs-actions.pod:4224
13021 msgid "guestfs_mkdir_p"
13022 msgstr ""
13023
13024 #. type: verbatim
13025 #: ../src/guestfs-actions.pod:4226
13026 #, no-wrap
13027 msgid ""
13028 " int\n"
13029 " guestfs_mkdir_p (guestfs_h *g,\n"
13030 "                  const char *path);\n"
13031 "\n"
13032 msgstr ""
13033
13034 #. type: textblock
13035 #: ../src/guestfs-actions.pod:4230 ../fish/guestfish-actions.pod:2890
13036 msgid ""
13037 "Create a directory named C<path>, creating any parent directories as "
13038 "necessary.  This is like the C<mkdir -p> shell command."
13039 msgstr ""
13040
13041 #. type: =head2
13042 #: ../src/guestfs-actions.pod:4237
13043 msgid "guestfs_mkdtemp"
13044 msgstr ""
13045
13046 #. type: verbatim
13047 #: ../src/guestfs-actions.pod:4239
13048 #, no-wrap
13049 msgid ""
13050 " char *\n"
13051 " guestfs_mkdtemp (guestfs_h *g,\n"
13052 "                  const char *template);\n"
13053 "\n"
13054 msgstr ""
13055
13056 #. type: textblock
13057 #: ../src/guestfs-actions.pod:4243 ../fish/guestfish-actions.pod:2897
13058 msgid ""
13059 "This command creates a temporary directory.  The C<template> parameter "
13060 "should be a full pathname for the temporary directory name with the final "
13061 "six characters being \"XXXXXX\"."
13062 msgstr ""
13063
13064 #. type: textblock
13065 #: ../src/guestfs-actions.pod:4248 ../fish/guestfish-actions.pod:2902
13066 msgid ""
13067 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13068 "being suitable for Windows filesystems."
13069 msgstr ""
13070
13071 #. type: textblock
13072 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:2905
13073 msgid "The name of the temporary directory that was created is returned."
13074 msgstr ""
13075
13076 #. type: textblock
13077 #: ../src/guestfs-actions.pod:4254 ../fish/guestfish-actions.pod:2908
13078 msgid "The temporary directory is created with mode 0700 and is owned by root."
13079 msgstr ""
13080
13081 #. type: textblock
13082 #: ../src/guestfs-actions.pod:4257 ../fish/guestfish-actions.pod:2911
13083 msgid ""
13084 "The caller is responsible for deleting the temporary directory and its "
13085 "contents after use."
13086 msgstr ""
13087
13088 #. type: textblock
13089 #: ../src/guestfs-actions.pod:4260 ../fish/guestfish-actions.pod:2914
13090 msgid "See also: L<mkdtemp(3)>"
13091 msgstr ""
13092
13093 #. type: =head2
13094 #: ../src/guestfs-actions.pod:4267
13095 msgid "guestfs_mke2fs_J"
13096 msgstr ""
13097
13098 #. type: verbatim
13099 #: ../src/guestfs-actions.pod:4269
13100 #, no-wrap
13101 msgid ""
13102 " int\n"
13103 " guestfs_mke2fs_J (guestfs_h *g,\n"
13104 "                   const char *fstype,\n"
13105 "                   int blocksize,\n"
13106 "                   const char *device,\n"
13107 "                   const char *journal);\n"
13108 "\n"
13109 msgstr ""
13110
13111 #. type: textblock
13112 #: ../src/guestfs-actions.pod:4276 ../fish/guestfish-actions.pod:2920
13113 msgid ""
13114 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13115 "C<journal>.  It is equivalent to the command:"
13116 msgstr ""
13117
13118 #. type: verbatim
13119 #: ../src/guestfs-actions.pod:4280 ../fish/guestfish-actions.pod:2924
13120 #, no-wrap
13121 msgid ""
13122 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13123 "\n"
13124 msgstr ""
13125
13126 #. type: textblock
13127 #: ../src/guestfs-actions.pod:4282
13128 msgid "See also C<guestfs_mke2journal>."
13129 msgstr ""
13130
13131 #. type: textblock
13132 #: ../src/guestfs-actions.pod:4286 ../src/guestfs-actions.pod:4304
13133 #: ../src/guestfs-actions.pod:4322 ../src/guestfs-actions.pod:4338
13134 #: ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:4366
13135 #: ../src/guestfs-actions.pod:4425 ../src/guestfs-actions.pod:4690
13136 msgid "(Added in 1.0.68)"
13137 msgstr ""
13138
13139 #. type: =head2
13140 #: ../src/guestfs-actions.pod:4288
13141 msgid "guestfs_mke2fs_JL"
13142 msgstr ""
13143
13144 #. type: verbatim
13145 #: ../src/guestfs-actions.pod:4290
13146 #, no-wrap
13147 msgid ""
13148 " int\n"
13149 " guestfs_mke2fs_JL (guestfs_h *g,\n"
13150 "                    const char *fstype,\n"
13151 "                    int blocksize,\n"
13152 "                    const char *device,\n"
13153 "                    const char *label);\n"
13154 "\n"
13155 msgstr ""
13156
13157 #. type: textblock
13158 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:2932
13159 msgid ""
13160 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13161 "the journal labeled C<label>."
13162 msgstr ""
13163
13164 #. type: textblock
13165 #: ../src/guestfs-actions.pod:4300
13166 msgid "See also C<guestfs_mke2journal_L>."
13167 msgstr ""
13168
13169 #. type: =head2
13170 #: ../src/guestfs-actions.pod:4306
13171 msgid "guestfs_mke2fs_JU"
13172 msgstr ""
13173
13174 #. type: verbatim
13175 #: ../src/guestfs-actions.pod:4308
13176 #, no-wrap
13177 msgid ""
13178 " int\n"
13179 " guestfs_mke2fs_JU (guestfs_h *g,\n"
13180 "                    const char *fstype,\n"
13181 "                    int blocksize,\n"
13182 "                    const char *device,\n"
13183 "                    const char *uuid);\n"
13184 "\n"
13185 msgstr ""
13186
13187 #. type: textblock
13188 #: ../src/guestfs-actions.pod:4315 ../fish/guestfish-actions.pod:2941
13189 msgid ""
13190 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13191 "the journal with UUID C<uuid>."
13192 msgstr ""
13193
13194 #. type: textblock
13195 #: ../src/guestfs-actions.pod:4318
13196 msgid "See also C<guestfs_mke2journal_U>."
13197 msgstr ""
13198
13199 #. type: =head2
13200 #: ../src/guestfs-actions.pod:4324
13201 msgid "guestfs_mke2journal"
13202 msgstr ""
13203
13204 #. type: verbatim
13205 #: ../src/guestfs-actions.pod:4326
13206 #, no-wrap
13207 msgid ""
13208 " int\n"
13209 " guestfs_mke2journal (guestfs_h *g,\n"
13210 "                      int blocksize,\n"
13211 "                      const char *device);\n"
13212 "\n"
13213 msgstr ""
13214
13215 #. type: textblock
13216 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2950
13217 msgid ""
13218 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13219 "command:"
13220 msgstr ""
13221
13222 #. type: verbatim
13223 #: ../src/guestfs-actions.pod:4334 ../fish/guestfish-actions.pod:2953
13224 #, no-wrap
13225 msgid ""
13226 " mke2fs -O journal_dev -b blocksize device\n"
13227 "\n"
13228 msgstr ""
13229
13230 #. type: =head2
13231 #: ../src/guestfs-actions.pod:4340
13232 msgid "guestfs_mke2journal_L"
13233 msgstr ""
13234
13235 #. type: verbatim
13236 #: ../src/guestfs-actions.pod:4342
13237 #, no-wrap
13238 msgid ""
13239 " int\n"
13240 " guestfs_mke2journal_L (guestfs_h *g,\n"
13241 "                        int blocksize,\n"
13242 "                        const char *label,\n"
13243 "                        const char *device);\n"
13244 "\n"
13245 msgstr ""
13246
13247 #. type: textblock
13248 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2959
13249 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13250 msgstr ""
13251
13252 #. type: =head2
13253 #: ../src/guestfs-actions.pod:4354
13254 msgid "guestfs_mke2journal_U"
13255 msgstr ""
13256
13257 #. type: verbatim
13258 #: ../src/guestfs-actions.pod:4356
13259 #, no-wrap
13260 msgid ""
13261 " int\n"
13262 " guestfs_mke2journal_U (guestfs_h *g,\n"
13263 "                        int blocksize,\n"
13264 "                        const char *uuid,\n"
13265 "                        const char *device);\n"
13266 "\n"
13267 msgstr ""
13268
13269 #. type: textblock
13270 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:2965
13271 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13272 msgstr ""
13273
13274 #. type: =head2
13275 #: ../src/guestfs-actions.pod:4368
13276 msgid "guestfs_mkfifo"
13277 msgstr ""
13278
13279 #. type: verbatim
13280 #: ../src/guestfs-actions.pod:4370
13281 #, no-wrap
13282 msgid ""
13283 " int\n"
13284 " guestfs_mkfifo (guestfs_h *g,\n"
13285 "                 int mode,\n"
13286 "                 const char *path);\n"
13287 "\n"
13288 msgstr ""
13289
13290 #. type: textblock
13291 #: ../src/guestfs-actions.pod:4375
13292 msgid ""
13293 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13294 "is just a convenient wrapper around C<guestfs_mknod>."
13295 msgstr ""
13296
13297 #. type: =head2
13298 #: ../src/guestfs-actions.pod:4385
13299 msgid "guestfs_mkfs"
13300 msgstr ""
13301
13302 #. type: verbatim
13303 #: ../src/guestfs-actions.pod:4387
13304 #, no-wrap
13305 msgid ""
13306 " int\n"
13307 " guestfs_mkfs (guestfs_h *g,\n"
13308 "               const char *fstype,\n"
13309 "               const char *device);\n"
13310 "\n"
13311 msgstr ""
13312
13313 #. type: textblock
13314 #: ../src/guestfs-actions.pod:4392 ../fish/guestfish-actions.pod:2981
13315 msgid ""
13316 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13317 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13318 msgstr ""
13319
13320 #. type: =head2
13321 #: ../src/guestfs-actions.pod:4400
13322 msgid "guestfs_mkfs_b"
13323 msgstr ""
13324
13325 #. type: verbatim
13326 #: ../src/guestfs-actions.pod:4402
13327 #, no-wrap
13328 msgid ""
13329 " int\n"
13330 " guestfs_mkfs_b (guestfs_h *g,\n"
13331 "                 const char *fstype,\n"
13332 "                 int blocksize,\n"
13333 "                 const char *device);\n"
13334 "\n"
13335 msgstr ""
13336
13337 #. type: textblock
13338 #: ../src/guestfs-actions.pod:4408
13339 msgid ""
13340 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
13341 "block size of the resulting filesystem.  Supported block sizes depend on the "
13342 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13343 msgstr ""
13344
13345 #. type: textblock
13346 #: ../src/guestfs-actions.pod:4413 ../src/guestfs-actions.pod:4456
13347 #: ../fish/guestfish-actions.pod:2994 ../fish/guestfish-actions.pod:3021
13348 msgid ""
13349 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13350 "cluster size."
13351 msgstr ""
13352
13353 #. type: textblock
13354 #: ../src/guestfs-actions.pod:4418 ../fish/guestfish-actions.pod:2997
13355 msgid ""
13356 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
13357 msgstr ""
13358
13359 #. type: =head2
13360 #: ../src/guestfs-actions.pod:4427
13361 msgid "guestfs_mkfs_opts"
13362 msgstr ""
13363
13364 #. type: verbatim
13365 #: ../src/guestfs-actions.pod:4429
13366 #, no-wrap
13367 msgid ""
13368 " int\n"
13369 " guestfs_mkfs_opts (guestfs_h *g,\n"
13370 "                    const char *fstype,\n"
13371 "                    const char *device,\n"
13372 "                    ...);\n"
13373 "\n"
13374 msgstr ""
13375
13376 #. type: verbatim
13377 #: ../src/guestfs-actions.pod:4440
13378 #, no-wrap
13379 msgid ""
13380 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
13381 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
13382 "\n"
13383 msgstr ""
13384
13385 #. type: textblock
13386 #: ../src/guestfs-actions.pod:4443 ../fish/guestfish-actions.pod:3008
13387 msgid ""
13388 "This function creates a filesystem on C<device>.  The filesystem type is "
13389 "C<fstype>, for example C<ext3>."
13390 msgstr ""
13391
13392 #. type: =item
13393 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:3015
13394 msgid "C<blocksize>"
13395 msgstr ""
13396
13397 #. type: textblock
13398 #: ../src/guestfs-actions.pod:4452 ../fish/guestfish-actions.pod:3017
13399 msgid ""
13400 "The filesystem block size.  Supported block sizes depend on the filesystem "
13401 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13402 "filesystems."
13403 msgstr ""
13404
13405 #. type: textblock
13406 #: ../src/guestfs-actions.pod:4459 ../fish/guestfish-actions.pod:3024
13407 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13408 msgstr ""
13409
13410 #. type: =item
13411 #: ../src/guestfs-actions.pod:4461 ../fish/guestfish-actions.pod:3026
13412 msgid "C<features>"
13413 msgstr ""
13414
13415 #. type: textblock
13416 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:3028
13417 msgid "This passes the C<-O> parameter to the external mkfs program."
13418 msgstr ""
13419
13420 #. type: textblock
13421 #: ../src/guestfs-actions.pod:4465 ../fish/guestfish-actions.pod:3030
13422 msgid ""
13423 "For certain filesystem types, this allows extra filesystem features to be "
13424 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13425 msgstr ""
13426
13427 #. type: textblock
13428 #: ../src/guestfs-actions.pod:4469 ../fish/guestfish-actions.pod:3034
13429 msgid ""
13430 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13431 "type."
13432 msgstr ""
13433
13434 #. type: textblock
13435 #: ../src/guestfs-actions.pod:4476
13436 msgid "(Added in 1.7.19)"
13437 msgstr ""
13438
13439 #. type: =head2
13440 #: ../src/guestfs-actions.pod:4478
13441 msgid "guestfs_mkfs_opts_va"
13442 msgstr ""
13443
13444 #. type: verbatim
13445 #: ../src/guestfs-actions.pod:4480
13446 #, no-wrap
13447 msgid ""
13448 " int\n"
13449 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
13450 "                       const char *fstype,\n"
13451 "                       const char *device,\n"
13452 "                       va_list args);\n"
13453 "\n"
13454 msgstr ""
13455
13456 #. type: textblock
13457 #: ../src/guestfs-actions.pod:4486
13458 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
13459 msgstr ""
13460
13461 #. type: =head2
13462 #: ../src/guestfs-actions.pod:4490
13463 msgid "guestfs_mkfs_opts_argv"
13464 msgstr ""
13465
13466 #. type: verbatim
13467 #: ../src/guestfs-actions.pod:4492
13468 #, no-wrap
13469 msgid ""
13470 " int\n"
13471 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
13472 "                         const char *fstype,\n"
13473 "                         const char *device,\n"
13474 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
13475 "\n"
13476 msgstr ""
13477
13478 #. type: textblock
13479 #: ../src/guestfs-actions.pod:4498
13480 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
13481 msgstr ""
13482
13483 #. type: =head2
13484 #: ../src/guestfs-actions.pod:4502
13485 msgid "guestfs_mkmountpoint"
13486 msgstr ""
13487
13488 #. type: verbatim
13489 #: ../src/guestfs-actions.pod:4504
13490 #, no-wrap
13491 msgid ""
13492 " int\n"
13493 " guestfs_mkmountpoint (guestfs_h *g,\n"
13494 "                       const char *exemptpath);\n"
13495 "\n"
13496 msgstr ""
13497
13498 #. type: textblock
13499 #: ../src/guestfs-actions.pod:4508
13500 msgid ""
13501 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
13502 "that can be used to create extra mountpoints before mounting the first "
13503 "filesystem."
13504 msgstr ""
13505
13506 #. type: textblock
13507 #: ../src/guestfs-actions.pod:4512 ../fish/guestfish-actions.pod:3049
13508 msgid ""
13509 "These calls are I<only> necessary in some very limited circumstances, mainly "
13510 "the case where you want to mount a mix of unrelated and/or read-only "
13511 "filesystems together."
13512 msgstr ""
13513
13514 #. type: textblock
13515 #: ../src/guestfs-actions.pod:4516 ../fish/guestfish-actions.pod:3053
13516 msgid ""
13517 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13518 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13519 "inside that.  You can unpack this as follows in guestfish:"
13520 msgstr ""
13521
13522 #. type: verbatim
13523 #: ../src/guestfs-actions.pod:4521 ../fish/guestfish-actions.pod:3058
13524 #, no-wrap
13525 msgid ""
13526 " add-ro Fedora-11-i686-Live.iso\n"
13527 " run\n"
13528 " mkmountpoint /cd\n"
13529 " mkmountpoint /sqsh\n"
13530 " mkmountpoint /ext3fs\n"
13531 " mount /dev/sda /cd\n"
13532 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13533 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13534 "\n"
13535 msgstr ""
13536
13537 #. type: textblock
13538 #: ../src/guestfs-actions.pod:4530 ../fish/guestfish-actions.pod:3067
13539 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13540 msgstr ""
13541
13542 #. type: textblock
13543 #: ../src/guestfs-actions.pod:4532
13544 msgid ""
13545 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
13546 "may get unexpected errors if you try to mix these calls.  It is safest to "
13547 "manually unmount filesystems and remove mountpoints after use."
13548 msgstr ""
13549
13550 #. type: textblock
13551 #: ../src/guestfs-actions.pod:4536
13552 msgid ""
13553 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
13554 "first, so for this to work for manual mountpoints, you must ensure that the "
13555 "innermost mountpoints have the longest pathnames, as in the example code "
13556 "above."
13557 msgstr ""
13558
13559 #. type: textblock
13560 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3078
13561 msgid ""
13562 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13563 msgstr ""
13564
13565 #. type: textblock
13566 #: ../src/guestfs-actions.pod:4543
13567 msgid ""
13568 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
13569 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
13570 "can also trigger these issues."
13571 msgstr ""
13572
13573 #. type: textblock
13574 #: ../src/guestfs-actions.pod:4549 ../src/guestfs-actions.pod:4808
13575 #: ../src/guestfs-actions.pod:5718
13576 msgid "(Added in 1.0.62)"
13577 msgstr ""
13578
13579 #. type: =head2
13580 #: ../src/guestfs-actions.pod:4551
13581 msgid "guestfs_mknod"
13582 msgstr ""
13583
13584 #. type: verbatim
13585 #: ../src/guestfs-actions.pod:4553
13586 #, no-wrap
13587 msgid ""
13588 " int\n"
13589 " guestfs_mknod (guestfs_h *g,\n"
13590 "                int mode,\n"
13591 "                int devmajor,\n"
13592 "                int devminor,\n"
13593 "                const char *path);\n"
13594 "\n"
13595 msgstr ""
13596
13597 #. type: textblock
13598 #: ../src/guestfs-actions.pod:4560 ../fish/guestfish-actions.pod:3088
13599 msgid ""
13600 "This call creates block or character special devices, or named pipes (FIFOs)."
13601 msgstr ""
13602
13603 #. type: textblock
13604 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3091
13605 msgid ""
13606 "The C<mode> parameter should be the mode, using the standard constants.  "
13607 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13608 "used when creating block and character special devices."
13609 msgstr ""
13610
13611 #. type: textblock
13612 #: ../src/guestfs-actions.pod:4568
13613 msgid ""
13614 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13615 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13616 "regular file).  These constants are available in the standard Linux header "
13617 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
13618 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
13619 "the appropriate constant for you."
13620 msgstr ""
13621
13622 #. type: =head2
13623 #: ../src/guestfs-actions.pod:4582
13624 msgid "guestfs_mknod_b"
13625 msgstr ""
13626
13627 #. type: verbatim
13628 #: ../src/guestfs-actions.pod:4584
13629 #, no-wrap
13630 msgid ""
13631 " int\n"
13632 " guestfs_mknod_b (guestfs_h *g,\n"
13633 "                  int mode,\n"
13634 "                  int devmajor,\n"
13635 "                  int devminor,\n"
13636 "                  const char *path);\n"
13637 "\n"
13638 msgstr ""
13639
13640 #. type: textblock
13641 #: ../src/guestfs-actions.pod:4591
13642 msgid ""
13643 "This call creates a block device node called C<path> with mode C<mode> and "
13644 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13645 "wrapper around C<guestfs_mknod>."
13646 msgstr ""
13647
13648 #. type: =head2
13649 #: ../src/guestfs-actions.pod:4601
13650 msgid "guestfs_mknod_c"
13651 msgstr ""
13652
13653 #. type: verbatim
13654 #: ../src/guestfs-actions.pod:4603
13655 #, no-wrap
13656 msgid ""
13657 " int\n"
13658 " guestfs_mknod_c (guestfs_h *g,\n"
13659 "                  int mode,\n"
13660 "                  int devmajor,\n"
13661 "                  int devminor,\n"
13662 "                  const char *path);\n"
13663 "\n"
13664 msgstr ""
13665
13666 #. type: textblock
13667 #: ../src/guestfs-actions.pod:4610
13668 msgid ""
13669 "This call creates a char device node called C<path> with mode C<mode> and "
13670 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13671 "wrapper around C<guestfs_mknod>."
13672 msgstr ""
13673
13674 #. type: =head2
13675 #: ../src/guestfs-actions.pod:4620
13676 msgid "guestfs_mkswap"
13677 msgstr ""
13678
13679 #. type: verbatim
13680 #: ../src/guestfs-actions.pod:4622
13681 #, no-wrap
13682 msgid ""
13683 " int\n"
13684 " guestfs_mkswap (guestfs_h *g,\n"
13685 "                 const char *device);\n"
13686 "\n"
13687 msgstr ""
13688
13689 #. type: textblock
13690 #: ../src/guestfs-actions.pod:4626 ../fish/guestfish-actions.pod:3130
13691 msgid "Create a swap partition on C<device>."
13692 msgstr ""
13693
13694 #. type: =head2
13695 #: ../src/guestfs-actions.pod:4632
13696 msgid "guestfs_mkswap_L"
13697 msgstr ""
13698
13699 #. type: verbatim
13700 #: ../src/guestfs-actions.pod:4634
13701 #, no-wrap
13702 msgid ""
13703 " int\n"
13704 " guestfs_mkswap_L (guestfs_h *g,\n"
13705 "                   const char *label,\n"
13706 "                   const char *device);\n"
13707 "\n"
13708 msgstr ""
13709
13710 #. type: textblock
13711 #: ../src/guestfs-actions.pod:4639 ../fish/guestfish-actions.pod:3136
13712 msgid "Create a swap partition on C<device> with label C<label>."
13713 msgstr ""
13714
13715 #. type: textblock
13716 #: ../src/guestfs-actions.pod:4641 ../fish/guestfish-actions.pod:3138
13717 msgid ""
13718 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13719 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13720 "or swap tools."
13721 msgstr ""
13722
13723 #. type: =head2
13724 #: ../src/guestfs-actions.pod:4649
13725 msgid "guestfs_mkswap_U"
13726 msgstr ""
13727
13728 #. type: verbatim
13729 #: ../src/guestfs-actions.pod:4651
13730 #, no-wrap
13731 msgid ""
13732 " int\n"
13733 " guestfs_mkswap_U (guestfs_h *g,\n"
13734 "                   const char *uuid,\n"
13735 "                   const char *device);\n"
13736 "\n"
13737 msgstr ""
13738
13739 #. type: textblock
13740 #: ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3146
13741 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13742 msgstr ""
13743
13744 #. type: =head2
13745 #: ../src/guestfs-actions.pod:4662
13746 msgid "guestfs_mkswap_file"
13747 msgstr ""
13748
13749 #. type: verbatim
13750 #: ../src/guestfs-actions.pod:4664
13751 #, no-wrap
13752 msgid ""
13753 " int\n"
13754 " guestfs_mkswap_file (guestfs_h *g,\n"
13755 "                      const char *path);\n"
13756 "\n"
13757 msgstr ""
13758
13759 #. type: textblock
13760 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3152
13761 msgid "Create a swap file."
13762 msgstr ""
13763
13764 #. type: textblock
13765 #: ../src/guestfs-actions.pod:4670
13766 msgid ""
13767 "This command just writes a swap file signature to an existing file.  To "
13768 "create the file itself, use something like C<guestfs_fallocate>."
13769 msgstr ""
13770
13771 #. type: =head2
13772 #: ../src/guestfs-actions.pod:4677
13773 msgid "guestfs_modprobe"
13774 msgstr ""
13775
13776 #. type: verbatim
13777 #: ../src/guestfs-actions.pod:4679
13778 #, no-wrap
13779 msgid ""
13780 " int\n"
13781 " guestfs_modprobe (guestfs_h *g,\n"
13782 "                   const char *modulename);\n"
13783 "\n"
13784 msgstr ""
13785
13786 #. type: textblock
13787 #: ../src/guestfs-actions.pod:4683 ../fish/guestfish-actions.pod:3161
13788 msgid "This loads a kernel module in the appliance."
13789 msgstr ""
13790
13791 #. type: textblock
13792 #: ../src/guestfs-actions.pod:4685 ../fish/guestfish-actions.pod:3163
13793 msgid ""
13794 "The kernel module must have been whitelisted when libguestfs was built (see "
13795 "C<appliance/kmod.whitelist.in> in the source)."
13796 msgstr ""
13797
13798 #. type: =head2
13799 #: ../src/guestfs-actions.pod:4692
13800 msgid "guestfs_mount"
13801 msgstr ""
13802
13803 #. type: verbatim
13804 #: ../src/guestfs-actions.pod:4694
13805 #, no-wrap
13806 msgid ""
13807 " int\n"
13808 " guestfs_mount (guestfs_h *g,\n"
13809 "                const char *device,\n"
13810 "                const char *mountpoint);\n"
13811 "\n"
13812 msgstr ""
13813
13814 #. type: textblock
13815 #: ../src/guestfs-actions.pod:4699 ../fish/guestfish-actions.pod:3170
13816 msgid ""
13817 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13818 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13819 "those block devices contain partitions, they will have the usual names (eg. "
13820 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13821 msgstr ""
13822
13823 #. type: textblock
13824 #: ../src/guestfs-actions.pod:4705 ../fish/guestfish-actions.pod:3176
13825 msgid ""
13826 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13827 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13828 "mounted on directories which already exist."
13829 msgstr ""
13830
13831 #. type: textblock
13832 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3181
13833 msgid ""
13834 "The mounted filesystem is writable, if we have sufficient permissions on the "
13835 "underlying device."
13836 msgstr ""
13837
13838 #. type: textblock
13839 #: ../src/guestfs-actions.pod:4713
13840 msgid ""
13841 "B<Important note:> When you use this call, the filesystem options C<sync> "
13842 "and C<noatime> are set implicitly.  This was originally done because we "
13843 "thought it would improve reliability, but it turns out that I<-o sync> has a "
13844 "very large negative performance impact and negligible effect on "
13845 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
13846 "in any code that needs performance, and instead use C<guestfs_mount_options> "
13847 "(use an empty string for the first parameter if you don't want any options)."
13848 msgstr ""
13849
13850 #. type: =head2
13851 #: ../src/guestfs-actions.pod:4727
13852 msgid "guestfs_mount_loop"
13853 msgstr ""
13854
13855 #. type: verbatim
13856 #: ../src/guestfs-actions.pod:4729
13857 #, no-wrap
13858 msgid ""
13859 " int\n"
13860 " guestfs_mount_loop (guestfs_h *g,\n"
13861 "                     const char *file,\n"
13862 "                     const char *mountpoint);\n"
13863 "\n"
13864 msgstr ""
13865
13866 #. type: textblock
13867 #: ../src/guestfs-actions.pod:4734 ../fish/guestfish-actions.pod:3198
13868 msgid ""
13869 "This command lets you mount C<file> (a filesystem image in a file) on a "
13870 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13871 "mountpoint>."
13872 msgstr ""
13873
13874 #. type: =head2
13875 #: ../src/guestfs-actions.pod:4742
13876 msgid "guestfs_mount_options"
13877 msgstr ""
13878
13879 #. type: verbatim
13880 #: ../src/guestfs-actions.pod:4744
13881 #, no-wrap
13882 msgid ""
13883 " int\n"
13884 " guestfs_mount_options (guestfs_h *g,\n"
13885 "                        const char *options,\n"
13886 "                        const char *device,\n"
13887 "                        const char *mountpoint);\n"
13888 "\n"
13889 msgstr ""
13890
13891 #. type: textblock
13892 #: ../src/guestfs-actions.pod:4750
13893 msgid ""
13894 "This is the same as the C<guestfs_mount> command, but it allows you to set "
13895 "the mount options as for the L<mount(8)> I<-o> flag."
13896 msgstr ""
13897
13898 #. type: textblock
13899 #: ../src/guestfs-actions.pod:4754 ../fish/guestfish-actions.pod:3210
13900 msgid ""
13901 "If the C<options> parameter is an empty string, then no options are passed "
13902 "(all options default to whatever the filesystem uses)."
13903 msgstr ""
13904
13905 #. type: textblock
13906 #: ../src/guestfs-actions.pod:4760 ../src/guestfs-actions.pod:4774
13907 #: ../src/guestfs-actions.pod:4791
13908 msgid "(Added in 1.0.10)"
13909 msgstr ""
13910
13911 #. type: =head2
13912 #: ../src/guestfs-actions.pod:4762
13913 msgid "guestfs_mount_ro"
13914 msgstr ""
13915
13916 #. type: verbatim
13917 #: ../src/guestfs-actions.pod:4764
13918 #, no-wrap
13919 msgid ""
13920 " int\n"
13921 " guestfs_mount_ro (guestfs_h *g,\n"
13922 "                   const char *device,\n"
13923 "                   const char *mountpoint);\n"
13924 "\n"
13925 msgstr ""
13926
13927 #. type: textblock
13928 #: ../src/guestfs-actions.pod:4769
13929 msgid ""
13930 "This is the same as the C<guestfs_mount> command, but it mounts the "
13931 "filesystem with the read-only (I<-o ro>) flag."
13932 msgstr ""
13933
13934 #. type: =head2
13935 #: ../src/guestfs-actions.pod:4776
13936 msgid "guestfs_mount_vfs"
13937 msgstr ""
13938
13939 #. type: verbatim
13940 #: ../src/guestfs-actions.pod:4778
13941 #, no-wrap
13942 msgid ""
13943 " int\n"
13944 " guestfs_mount_vfs (guestfs_h *g,\n"
13945 "                    const char *options,\n"
13946 "                    const char *vfstype,\n"
13947 "                    const char *device,\n"
13948 "                    const char *mountpoint);\n"
13949 "\n"
13950 msgstr ""
13951
13952 #. type: textblock
13953 #: ../src/guestfs-actions.pod:4785
13954 msgid ""
13955 "This is the same as the C<guestfs_mount> command, but it allows you to set "
13956 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
13957 "t> flags."
13958 msgstr ""
13959
13960 #. type: =head2
13961 #: ../src/guestfs-actions.pod:4793
13962 msgid "guestfs_mountpoints"
13963 msgstr ""
13964
13965 #. type: verbatim
13966 #: ../src/guestfs-actions.pod:4795
13967 #, no-wrap
13968 msgid ""
13969 " char **\n"
13970 " guestfs_mountpoints (guestfs_h *g);\n"
13971 "\n"
13972 msgstr ""
13973
13974 #. type: textblock
13975 #: ../src/guestfs-actions.pod:4798
13976 msgid ""
13977 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
13978 "devices.  This one returns a hash table (map) of device name to directory "
13979 "where the device is mounted."
13980 msgstr ""
13981
13982 #. type: =head2
13983 #: ../src/guestfs-actions.pod:4810
13984 msgid "guestfs_mounts"
13985 msgstr ""
13986
13987 #. type: verbatim
13988 #: ../src/guestfs-actions.pod:4812
13989 #, no-wrap
13990 msgid ""
13991 " char **\n"
13992 " guestfs_mounts (guestfs_h *g);\n"
13993 "\n"
13994 msgstr ""
13995
13996 #. type: textblock
13997 #: ../src/guestfs-actions.pod:4815 ../fish/guestfish-actions.pod:3241
13998 msgid ""
13999 "This returns the list of currently mounted filesystems.  It returns the list "
14000 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14001 msgstr ""
14002
14003 #. type: textblock
14004 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3244
14005 msgid "Some internal mounts are not shown."
14006 msgstr ""
14007
14008 #. type: textblock
14009 #: ../src/guestfs-actions.pod:4820
14010 msgid "See also: C<guestfs_mountpoints>"
14011 msgstr ""
14012
14013 #. type: =head2
14014 #: ../src/guestfs-actions.pod:4828
14015 msgid "guestfs_mv"
14016 msgstr ""
14017
14018 #. type: verbatim
14019 #: ../src/guestfs-actions.pod:4830
14020 #, no-wrap
14021 msgid ""
14022 " int\n"
14023 " guestfs_mv (guestfs_h *g,\n"
14024 "             const char *src,\n"
14025 "             const char *dest);\n"
14026 "\n"
14027 msgstr ""
14028
14029 #. type: textblock
14030 #: ../src/guestfs-actions.pod:4835 ../fish/guestfish-actions.pod:3252
14031 msgid ""
14032 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14033 "destination filename or destination directory."
14034 msgstr ""
14035
14036 #. type: =head2
14037 #: ../src/guestfs-actions.pod:4842
14038 msgid "guestfs_ntfs_3g_probe"
14039 msgstr ""
14040
14041 #. type: verbatim
14042 #: ../src/guestfs-actions.pod:4844
14043 #, no-wrap
14044 msgid ""
14045 " int\n"
14046 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
14047 "                        int rw,\n"
14048 "                        const char *device);\n"
14049 "\n"
14050 msgstr ""
14051
14052 #. type: textblock
14053 #: ../src/guestfs-actions.pod:4849 ../fish/guestfish-actions.pod:3259
14054 msgid ""
14055 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14056 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14057 "write, and some cannot be mounted at all)."
14058 msgstr ""
14059
14060 #. type: textblock
14061 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3263
14062 msgid ""
14063 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14064 "can be mounted read-write.  Set it to false if you want to test if the "
14065 "volume can be mounted read-only."
14066 msgstr ""
14067
14068 #. type: textblock
14069 #: ../src/guestfs-actions.pod:4857 ../fish/guestfish-actions.pod:3267
14070 msgid ""
14071 "The return value is an integer which C<0> if the operation would succeed, or "
14072 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14073 msgstr ""
14074
14075 #. type: textblock
14076 #: ../src/guestfs-actions.pod:4863
14077 msgid "(Added in 1.0.43)"
14078 msgstr ""
14079
14080 #. type: =head2
14081 #: ../src/guestfs-actions.pod:4865
14082 msgid "guestfs_ntfsresize"
14083 msgstr ""
14084
14085 #. type: verbatim
14086 #: ../src/guestfs-actions.pod:4867
14087 #, no-wrap
14088 msgid ""
14089 " int\n"
14090 " guestfs_ntfsresize (guestfs_h *g,\n"
14091 "                     const char *device);\n"
14092 "\n"
14093 msgstr ""
14094
14095 #. type: textblock
14096 #: ../src/guestfs-actions.pod:4871 ../fish/guestfish-actions.pod:3275
14097 msgid ""
14098 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14099 "size of the underlying device.  See also L<ntfsresize(8)>."
14100 msgstr ""
14101
14102 #. type: =head2
14103 #: ../src/guestfs-actions.pod:4879
14104 msgid "guestfs_ntfsresize_size"
14105 msgstr ""
14106
14107 #. type: verbatim
14108 #: ../src/guestfs-actions.pod:4881
14109 #, no-wrap
14110 msgid ""
14111 " int\n"
14112 " guestfs_ntfsresize_size (guestfs_h *g,\n"
14113 "                          const char *device,\n"
14114 "                          int64_t size);\n"
14115 "\n"
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../src/guestfs-actions.pod:4886
14120 msgid ""
14121 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
14122 "to specify the new size (in bytes) explicitly."
14123 msgstr ""
14124
14125 #. type: textblock
14126 #: ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:5327
14127 #: ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:5666
14128 #: ../src/guestfs-actions.pod:7237
14129 msgid "(Added in 1.3.14)"
14130 msgstr ""
14131
14132 #. type: =head2
14133 #: ../src/guestfs-actions.pod:4893
14134 msgid "guestfs_part_add"
14135 msgstr ""
14136
14137 #. type: verbatim
14138 #: ../src/guestfs-actions.pod:4895
14139 #, no-wrap
14140 msgid ""
14141 " int\n"
14142 " guestfs_part_add (guestfs_h *g,\n"
14143 "                   const char *device,\n"
14144 "                   const char *prlogex,\n"
14145 "                   int64_t startsect,\n"
14146 "                   int64_t endsect);\n"
14147 "\n"
14148 msgstr ""
14149
14150 #. type: textblock
14151 #: ../src/guestfs-actions.pod:4902
14152 msgid ""
14153 "This command adds a partition to C<device>.  If there is no partition table "
14154 "on the device, call C<guestfs_part_init> first."
14155 msgstr ""
14156
14157 #. type: textblock
14158 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3293
14159 msgid ""
14160 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14161 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14162 "C<logical>) and C<e> (or C<extended>) partition types."
14163 msgstr ""
14164
14165 #. type: textblock
14166 #: ../src/guestfs-actions.pod:4910 ../fish/guestfish-actions.pod:3298
14167 msgid ""
14168 "C<startsect> and C<endsect> are the start and end of the partition in "
14169 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14170 "from the end of the disk (C<-1> is the last sector)."
14171 msgstr ""
14172
14173 #. type: textblock
14174 #: ../src/guestfs-actions.pod:4914
14175 msgid ""
14176 "Creating a partition which covers the whole disk is not so easy.  Use "
14177 "C<guestfs_part_disk> to do that."
14178 msgstr ""
14179
14180 #. type: textblock
14181 #: ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:4957
14182 #: ../src/guestfs-actions.pod:5010 ../src/guestfs-actions.pod:5088
14183 #: ../src/guestfs-actions.pod:5126 ../src/guestfs-actions.pod:5145
14184 #: ../src/guestfs-actions.pod:5185
14185 msgid "(Added in 1.0.78)"
14186 msgstr ""
14187
14188 #. type: =head2
14189 #: ../src/guestfs-actions.pod:4921
14190 msgid "guestfs_part_del"
14191 msgstr ""
14192
14193 #. type: verbatim
14194 #: ../src/guestfs-actions.pod:4923
14195 #, no-wrap
14196 msgid ""
14197 " int\n"
14198 " guestfs_part_del (guestfs_h *g,\n"
14199 "                   const char *device,\n"
14200 "                   int partnum);\n"
14201 "\n"
14202 msgstr ""
14203
14204 #. type: textblock
14205 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3309
14206 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14207 msgstr ""
14208
14209 #. type: textblock
14210 #: ../src/guestfs-actions.pod:4930 ../fish/guestfish-actions.pod:3311
14211 msgid ""
14212 "Note that in the case of MBR partitioning, deleting an extended partition "
14213 "also deletes any logical partitions it contains."
14214 msgstr ""
14215
14216 #. type: =head2
14217 #: ../src/guestfs-actions.pod:4938
14218 msgid "guestfs_part_disk"
14219 msgstr ""
14220
14221 #. type: verbatim
14222 #: ../src/guestfs-actions.pod:4940
14223 #, no-wrap
14224 msgid ""
14225 " int\n"
14226 " guestfs_part_disk (guestfs_h *g,\n"
14227 "                    const char *device,\n"
14228 "                    const char *parttype);\n"
14229 "\n"
14230 msgstr ""
14231
14232 #. type: textblock
14233 #: ../src/guestfs-actions.pod:4945
14234 msgid ""
14235 "This command is simply a combination of C<guestfs_part_init> followed by "
14236 "C<guestfs_part_add> to create a single primary partition covering the whole "
14237 "disk."
14238 msgstr ""
14239
14240 #. type: textblock
14241 #: ../src/guestfs-actions.pod:4949
14242 msgid ""
14243 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14244 "possible values are described in C<guestfs_part_init>."
14245 msgstr ""
14246
14247 #. type: =head2
14248 #: ../src/guestfs-actions.pod:4959
14249 msgid "guestfs_part_get_bootable"
14250 msgstr ""
14251
14252 #. type: verbatim
14253 #: ../src/guestfs-actions.pod:4961
14254 #, no-wrap
14255 msgid ""
14256 " int\n"
14257 " guestfs_part_get_bootable (guestfs_h *g,\n"
14258 "                            const char *device,\n"
14259 "                            int partnum);\n"
14260 "\n"
14261 msgstr ""
14262
14263 #. type: textblock
14264 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3333
14265 msgid ""
14266 "This command returns true if the partition C<partnum> on C<device> has the "
14267 "bootable flag set."
14268 msgstr ""
14269
14270 #. type: textblock
14271 #: ../src/guestfs-actions.pod:4969
14272 msgid "See also C<guestfs_part_set_bootable>."
14273 msgstr ""
14274
14275 #. type: =head2
14276 #: ../src/guestfs-actions.pod:4975
14277 msgid "guestfs_part_get_mbr_id"
14278 msgstr ""
14279
14280 #. type: verbatim
14281 #: ../src/guestfs-actions.pod:4977
14282 #, no-wrap
14283 msgid ""
14284 " int\n"
14285 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
14286 "                          const char *device,\n"
14287 "                          int partnum);\n"
14288 "\n"
14289 msgstr ""
14290
14291 #. type: textblock
14292 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3342
14293 msgid ""
14294 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14295 "partition C<partnum>."
14296 msgstr ""
14297
14298 #. type: textblock
14299 #: ../src/guestfs-actions.pod:4985 ../src/guestfs-actions.pod:5161
14300 msgid ""
14301 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14302 "undefined results for other partition table types (see "
14303 "C<guestfs_part_get_parttype>)."
14304 msgstr ""
14305
14306 #. type: =head2
14307 #: ../src/guestfs-actions.pod:4993
14308 msgid "guestfs_part_get_parttype"
14309 msgstr ""
14310
14311 #. type: verbatim
14312 #: ../src/guestfs-actions.pod:4995
14313 #, no-wrap
14314 msgid ""
14315 " char *\n"
14316 " guestfs_part_get_parttype (guestfs_h *g,\n"
14317 "                            const char *device);\n"
14318 "\n"
14319 msgstr ""
14320
14321 #. type: textblock
14322 #: ../src/guestfs-actions.pod:4999 ../fish/guestfish-actions.pod:3353
14323 msgid ""
14324 "This command examines the partition table on C<device> and returns the "
14325 "partition table type (format) being used."
14326 msgstr ""
14327
14328 #. type: textblock
14329 #: ../src/guestfs-actions.pod:5002
14330 msgid ""
14331 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14332 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14333 "possible, although unusual.  See C<guestfs_part_init> for a full list."
14334 msgstr ""
14335
14336 #. type: =head2
14337 #: ../src/guestfs-actions.pod:5012
14338 msgid "guestfs_part_init"
14339 msgstr ""
14340
14341 #. type: verbatim
14342 #: ../src/guestfs-actions.pod:5014
14343 #, no-wrap
14344 msgid ""
14345 " int\n"
14346 " guestfs_part_init (guestfs_h *g,\n"
14347 "                    const char *device,\n"
14348 "                    const char *parttype);\n"
14349 "\n"
14350 msgstr ""
14351
14352 #. type: textblock
14353 #: ../src/guestfs-actions.pod:5019 ../fish/guestfish-actions.pod:3365
14354 msgid ""
14355 "This creates an empty partition table on C<device> of one of the partition "
14356 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14357 "(for large disks)."
14358 msgstr ""
14359
14360 #. type: textblock
14361 #: ../src/guestfs-actions.pod:5023
14362 msgid ""
14363 "Initially there are no partitions.  Following this, you should call "
14364 "C<guestfs_part_add> for each partition required."
14365 msgstr ""
14366
14367 #. type: textblock
14368 #: ../src/guestfs-actions.pod:5026 ../fish/guestfish-actions.pod:3372
14369 msgid "Possible values for C<parttype> are:"
14370 msgstr ""
14371
14372 #. type: =item
14373 #: ../src/guestfs-actions.pod:5030 ../fish/guestfish-actions.pod:3376
14374 msgid "B<efi> | B<gpt>"
14375 msgstr ""
14376
14377 #. type: textblock
14378 #: ../src/guestfs-actions.pod:5032 ../fish/guestfish-actions.pod:3378
14379 msgid "Intel EFI / GPT partition table."
14380 msgstr ""
14381
14382 #. type: textblock
14383 #: ../src/guestfs-actions.pod:5034 ../fish/guestfish-actions.pod:3380
14384 msgid ""
14385 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14386 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14387 "the C<mbr> format."
14388 msgstr ""
14389
14390 #. type: =item
14391 #: ../src/guestfs-actions.pod:5038 ../fish/guestfish-actions.pod:3384
14392 msgid "B<mbr> | B<msdos>"
14393 msgstr ""
14394
14395 #. type: textblock
14396 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3386
14397 msgid ""
14398 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14399 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14400 "TB.  For large disks we recommend using C<gpt>."
14401 msgstr ""
14402
14403 #. type: textblock
14404 #: ../src/guestfs-actions.pod:5047 ../fish/guestfish-actions.pod:3393
14405 msgid ""
14406 "Other partition table types that may work but are not supported include:"
14407 msgstr ""
14408
14409 #. type: =item
14410 #: ../src/guestfs-actions.pod:5052 ../fish/guestfish-actions.pod:3398
14411 msgid "B<aix>"
14412 msgstr ""
14413
14414 #. type: textblock
14415 #: ../src/guestfs-actions.pod:5054 ../fish/guestfish-actions.pod:3400
14416 msgid "AIX disk labels."
14417 msgstr ""
14418
14419 #. type: =item
14420 #: ../src/guestfs-actions.pod:5056 ../fish/guestfish-actions.pod:3402
14421 msgid "B<amiga> | B<rdb>"
14422 msgstr ""
14423
14424 #. type: textblock
14425 #: ../src/guestfs-actions.pod:5058 ../fish/guestfish-actions.pod:3404
14426 msgid "Amiga \"Rigid Disk Block\" format."
14427 msgstr ""
14428
14429 #. type: =item
14430 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3406
14431 msgid "B<bsd>"
14432 msgstr ""
14433
14434 #. type: textblock
14435 #: ../src/guestfs-actions.pod:5062 ../fish/guestfish-actions.pod:3408
14436 msgid "BSD disk labels."
14437 msgstr ""
14438
14439 #. type: =item
14440 #: ../src/guestfs-actions.pod:5064 ../fish/guestfish-actions.pod:3410
14441 msgid "B<dasd>"
14442 msgstr ""
14443
14444 #. type: textblock
14445 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3412
14446 msgid "DASD, used on IBM mainframes."
14447 msgstr ""
14448
14449 #. type: =item
14450 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3414
14451 msgid "B<dvh>"
14452 msgstr ""
14453
14454 #. type: textblock
14455 #: ../src/guestfs-actions.pod:5070 ../fish/guestfish-actions.pod:3416
14456 msgid "MIPS/SGI volumes."
14457 msgstr ""
14458
14459 #. type: =item
14460 #: ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:3418
14461 msgid "B<mac>"
14462 msgstr ""
14463
14464 #. type: textblock
14465 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3420
14466 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14467 msgstr ""
14468
14469 #. type: =item
14470 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3422
14471 msgid "B<pc98>"
14472 msgstr ""
14473
14474 #. type: textblock
14475 #: ../src/guestfs-actions.pod:5078 ../fish/guestfish-actions.pod:3424
14476 msgid "NEC PC-98 format, common in Japan apparently."
14477 msgstr ""
14478
14479 #. type: =item
14480 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3426
14481 msgid "B<sun>"
14482 msgstr ""
14483
14484 #. type: textblock
14485 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3428
14486 msgid "Sun disk labels."
14487 msgstr ""
14488
14489 #. type: =head2
14490 #: ../src/guestfs-actions.pod:5090
14491 msgid "guestfs_part_list"
14492 msgstr ""
14493
14494 #. type: verbatim
14495 #: ../src/guestfs-actions.pod:5092
14496 #, no-wrap
14497 msgid ""
14498 " struct guestfs_partition_list *\n"
14499 " guestfs_part_list (guestfs_h *g,\n"
14500 "                    const char *device);\n"
14501 "\n"
14502 msgstr ""
14503
14504 #. type: textblock
14505 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3436
14506 msgid ""
14507 "This command parses the partition table on C<device> and returns the list of "
14508 "partitions found."
14509 msgstr ""
14510
14511 #. type: textblock
14512 #: ../src/guestfs-actions.pod:5099 ../fish/guestfish-actions.pod:3439
14513 msgid "The fields in the returned structure are:"
14514 msgstr ""
14515
14516 #. type: =item
14517 #: ../src/guestfs-actions.pod:5103 ../fish/guestfish-actions.pod:3443
14518 msgid "B<part_num>"
14519 msgstr ""
14520
14521 #. type: textblock
14522 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3445
14523 msgid "Partition number, counting from 1."
14524 msgstr ""
14525
14526 #. type: =item
14527 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3447
14528 msgid "B<part_start>"
14529 msgstr ""
14530
14531 #. type: textblock
14532 #: ../src/guestfs-actions.pod:5109
14533 msgid ""
14534 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14535 "the device's sector size, see C<guestfs_blockdev_getss>."
14536 msgstr ""
14537
14538 #. type: =item
14539 #: ../src/guestfs-actions.pod:5112 ../fish/guestfish-actions.pod:3452
14540 msgid "B<part_end>"
14541 msgstr ""
14542
14543 #. type: textblock
14544 #: ../src/guestfs-actions.pod:5114 ../fish/guestfish-actions.pod:3454
14545 msgid "End of the partition in bytes."
14546 msgstr ""
14547
14548 #. type: =item
14549 #: ../src/guestfs-actions.pod:5116 ../fish/guestfish-actions.pod:3456
14550 msgid "B<part_size>"
14551 msgstr ""
14552
14553 #. type: textblock
14554 #: ../src/guestfs-actions.pod:5118 ../fish/guestfish-actions.pod:3458
14555 msgid "Size of the partition in bytes."
14556 msgstr ""
14557
14558 #. type: textblock
14559 #: ../src/guestfs-actions.pod:5122
14560 msgid ""
14561 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
14562 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
14563 "use>."
14564 msgstr ""
14565
14566 #. type: =head2
14567 #: ../src/guestfs-actions.pod:5128
14568 msgid "guestfs_part_set_bootable"
14569 msgstr ""
14570
14571 #. type: verbatim
14572 #: ../src/guestfs-actions.pod:5130
14573 #, no-wrap
14574 msgid ""
14575 " int\n"
14576 " guestfs_part_set_bootable (guestfs_h *g,\n"
14577 "                            const char *device,\n"
14578 "                            int partnum,\n"
14579 "                            int bootable);\n"
14580 "\n"
14581 msgstr ""
14582
14583 #. type: textblock
14584 #: ../src/guestfs-actions.pod:5136 ../fish/guestfish-actions.pod:3466
14585 msgid ""
14586 "This sets the bootable flag on partition numbered C<partnum> on device "
14587 "C<device>.  Note that partitions are numbered from 1."
14588 msgstr ""
14589
14590 #. type: textblock
14591 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3469
14592 msgid ""
14593 "The bootable flag is used by some operating systems (notably Windows) to "
14594 "determine which partition to boot from.  It is by no means universally "
14595 "recognized."
14596 msgstr ""
14597
14598 #. type: =head2
14599 #: ../src/guestfs-actions.pod:5147
14600 msgid "guestfs_part_set_mbr_id"
14601 msgstr ""
14602
14603 #. type: verbatim
14604 #: ../src/guestfs-actions.pod:5149
14605 #, no-wrap
14606 msgid ""
14607 " int\n"
14608 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
14609 "                          const char *device,\n"
14610 "                          int partnum,\n"
14611 "                          int idbyte);\n"
14612 "\n"
14613 msgstr ""
14614
14615 #. type: textblock
14616 #: ../src/guestfs-actions.pod:5155 ../fish/guestfish-actions.pod:3477
14617 msgid ""
14618 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14619 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14620 "documentation are in fact hexadecimal numbers, but usually documented "
14621 "without any leading \"0x\" which might be confusing."
14622 msgstr ""
14623
14624 #. type: =head2
14625 #: ../src/guestfs-actions.pod:5169
14626 msgid "guestfs_part_set_name"
14627 msgstr ""
14628
14629 #. type: verbatim
14630 #: ../src/guestfs-actions.pod:5171
14631 #, no-wrap
14632 msgid ""
14633 " int\n"
14634 " guestfs_part_set_name (guestfs_h *g,\n"
14635 "                        const char *device,\n"
14636 "                        int partnum,\n"
14637 "                        const char *name);\n"
14638 "\n"
14639 msgstr ""
14640
14641 #. type: textblock
14642 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:3491
14643 msgid ""
14644 "This sets the partition name on partition numbered C<partnum> on device "
14645 "C<device>.  Note that partitions are numbered from 1."
14646 msgstr ""
14647
14648 #. type: textblock
14649 #: ../src/guestfs-actions.pod:5180 ../fish/guestfish-actions.pod:3494
14650 msgid ""
14651 "The partition name can only be set on certain types of partition table.  "
14652 "This works on C<gpt> but not on C<mbr> partitions."
14653 msgstr ""
14654
14655 #. type: =head2
14656 #: ../src/guestfs-actions.pod:5187
14657 msgid "guestfs_part_to_dev"
14658 msgstr ""
14659
14660 #. type: verbatim
14661 #: ../src/guestfs-actions.pod:5189
14662 #, no-wrap
14663 msgid ""
14664 " char *\n"
14665 " guestfs_part_to_dev (guestfs_h *g,\n"
14666 "                      const char *partition);\n"
14667 "\n"
14668 msgstr ""
14669
14670 #. type: textblock
14671 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3501
14672 msgid ""
14673 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14674 "partition number, returning the device name (eg. \"/dev/sdb\")."
14675 msgstr ""
14676
14677 #. type: textblock
14678 #: ../src/guestfs-actions.pod:5197
14679 msgid ""
14680 "The named partition must exist, for example as a string returned from "
14681 "C<guestfs_list_partitions>."
14682 msgstr ""
14683
14684 #. type: =head2
14685 #: ../src/guestfs-actions.pod:5205
14686 msgid "guestfs_ping_daemon"
14687 msgstr ""
14688
14689 #. type: verbatim
14690 #: ../src/guestfs-actions.pod:5207
14691 #, no-wrap
14692 msgid ""
14693 " int\n"
14694 " guestfs_ping_daemon (guestfs_h *g);\n"
14695 "\n"
14696 msgstr ""
14697
14698 #. type: textblock
14699 #: ../src/guestfs-actions.pod:5210 ../fish/guestfish-actions.pod:3512
14700 msgid ""
14701 "This is a test probe into the guestfs daemon running inside the qemu "
14702 "subprocess.  Calling this function checks that the daemon responds to the "
14703 "ping message, without affecting the daemon or attached block device(s) in "
14704 "any other way."
14705 msgstr ""
14706
14707 #. type: =head2
14708 #: ../src/guestfs-actions.pod:5219
14709 msgid "guestfs_pread"
14710 msgstr ""
14711
14712 #. type: verbatim
14713 #: ../src/guestfs-actions.pod:5221
14714 #, no-wrap
14715 msgid ""
14716 " char *\n"
14717 " guestfs_pread (guestfs_h *g,\n"
14718 "                const char *path,\n"
14719 "                int count,\n"
14720 "                int64_t offset,\n"
14721 "                size_t *size_r);\n"
14722 "\n"
14723 msgstr ""
14724
14725 #. type: textblock
14726 #: ../src/guestfs-actions.pod:5228 ../fish/guestfish-actions.pod:3521
14727 msgid ""
14728 "This command lets you read part of a file.  It reads C<count> bytes of the "
14729 "file, starting at C<offset>, from file C<path>."
14730 msgstr ""
14731
14732 #. type: textblock
14733 #: ../src/guestfs-actions.pod:5231 ../src/guestfs-actions.pod:5257
14734 #: ../fish/guestfish-actions.pod:3524 ../fish/guestfish-actions.pod:3539
14735 msgid ""
14736 "This may read fewer bytes than requested.  For further details see the "
14737 "L<pread(2)> system call."
14738 msgstr ""
14739
14740 #. type: textblock
14741 #: ../src/guestfs-actions.pod:5234
14742 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
14743 msgstr ""
14744
14745 #. type: =head2
14746 #: ../src/guestfs-actions.pod:5245
14747 msgid "guestfs_pread_device"
14748 msgstr ""
14749
14750 #. type: verbatim
14751 #: ../src/guestfs-actions.pod:5247
14752 #, no-wrap
14753 msgid ""
14754 " char *\n"
14755 " guestfs_pread_device (guestfs_h *g,\n"
14756 "                       const char *device,\n"
14757 "                       int count,\n"
14758 "                       int64_t offset,\n"
14759 "                       size_t *size_r);\n"
14760 "\n"
14761 msgstr ""
14762
14763 #. type: textblock
14764 #: ../src/guestfs-actions.pod:5254 ../fish/guestfish-actions.pod:3536
14765 msgid ""
14766 "This command lets you read part of a file.  It reads C<count> bytes of "
14767 "C<device>, starting at C<offset>."
14768 msgstr ""
14769
14770 #. type: textblock
14771 #: ../src/guestfs-actions.pod:5260
14772 msgid "See also C<guestfs_pread>."
14773 msgstr ""
14774
14775 #. type: textblock
14776 #: ../src/guestfs-actions.pod:5269
14777 msgid "(Added in 1.5.21)"
14778 msgstr ""
14779
14780 #. type: =head2
14781 #: ../src/guestfs-actions.pod:5271
14782 msgid "guestfs_pvcreate"
14783 msgstr ""
14784
14785 #. type: verbatim
14786 #: ../src/guestfs-actions.pod:5273
14787 #, no-wrap
14788 msgid ""
14789 " int\n"
14790 " guestfs_pvcreate (guestfs_h *g,\n"
14791 "                   const char *device);\n"
14792 "\n"
14793 msgstr ""
14794
14795 #. type: textblock
14796 #: ../src/guestfs-actions.pod:5277 ../fish/guestfish-actions.pod:3551
14797 msgid ""
14798 "This creates an LVM physical volume on the named C<device>, where C<device> "
14799 "should usually be a partition name such as C</dev/sda1>."
14800 msgstr ""
14801
14802 #. type: =head2
14803 #: ../src/guestfs-actions.pod:5285
14804 msgid "guestfs_pvremove"
14805 msgstr ""
14806
14807 #. type: verbatim
14808 #: ../src/guestfs-actions.pod:5287
14809 #, no-wrap
14810 msgid ""
14811 " int\n"
14812 " guestfs_pvremove (guestfs_h *g,\n"
14813 "                   const char *device);\n"
14814 "\n"
14815 msgstr ""
14816
14817 #. type: textblock
14818 #: ../src/guestfs-actions.pod:5291 ../fish/guestfish-actions.pod:3559
14819 msgid ""
14820 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14821 "it."
14822 msgstr ""
14823
14824 #. type: textblock
14825 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3562
14826 msgid ""
14827 "The implementation uses the C<pvremove> command which refuses to wipe "
14828 "physical volumes that contain any volume groups, so you have to remove those "
14829 "first."
14830 msgstr ""
14831
14832 #. type: =head2
14833 #: ../src/guestfs-actions.pod:5302
14834 msgid "guestfs_pvresize"
14835 msgstr ""
14836
14837 #. type: verbatim
14838 #: ../src/guestfs-actions.pod:5304
14839 #, no-wrap
14840 msgid ""
14841 " int\n"
14842 " guestfs_pvresize (guestfs_h *g,\n"
14843 "                   const char *device);\n"
14844 "\n"
14845 msgstr ""
14846
14847 #. type: textblock
14848 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3570
14849 msgid ""
14850 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14851 "the new size of the underlying device."
14852 msgstr ""
14853
14854 #. type: =head2
14855 #: ../src/guestfs-actions.pod:5315
14856 msgid "guestfs_pvresize_size"
14857 msgstr ""
14858
14859 #. type: verbatim
14860 #: ../src/guestfs-actions.pod:5317
14861 #, no-wrap
14862 msgid ""
14863 " int\n"
14864 " guestfs_pvresize_size (guestfs_h *g,\n"
14865 "                        const char *device,\n"
14866 "                        int64_t size);\n"
14867 "\n"
14868 msgstr ""
14869
14870 #. type: textblock
14871 #: ../src/guestfs-actions.pod:5322
14872 msgid ""
14873 "This command is the same as C<guestfs_pvresize> except that it allows you to "
14874 "specify the new size (in bytes) explicitly."
14875 msgstr ""
14876
14877 #. type: =head2
14878 #: ../src/guestfs-actions.pod:5329
14879 msgid "guestfs_pvs"
14880 msgstr ""
14881
14882 #. type: verbatim
14883 #: ../src/guestfs-actions.pod:5331
14884 #, no-wrap
14885 msgid ""
14886 " char **\n"
14887 " guestfs_pvs (guestfs_h *g);\n"
14888 "\n"
14889 msgstr ""
14890
14891 #. type: textblock
14892 #: ../src/guestfs-actions.pod:5334 ../fish/guestfish-actions.pod:3584
14893 msgid ""
14894 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14895 "(8)> command."
14896 msgstr ""
14897
14898 #. type: textblock
14899 #: ../src/guestfs-actions.pod:5337 ../fish/guestfish-actions.pod:3587
14900 msgid ""
14901 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14902 "sda2>)."
14903 msgstr ""
14904
14905 #. type: textblock
14906 #: ../src/guestfs-actions.pod:5340
14907 msgid "See also C<guestfs_pvs_full>."
14908 msgstr ""
14909
14910 #. type: =head2
14911 #: ../src/guestfs-actions.pod:5348
14912 msgid "guestfs_pvs_full"
14913 msgstr ""
14914
14915 #. type: verbatim
14916 #: ../src/guestfs-actions.pod:5350
14917 #, no-wrap
14918 msgid ""
14919 " struct guestfs_lvm_pv_list *\n"
14920 " guestfs_pvs_full (guestfs_h *g);\n"
14921 "\n"
14922 msgstr ""
14923
14924 #. type: textblock
14925 #: ../src/guestfs-actions.pod:5353 ../fish/guestfish-actions.pod:3596
14926 msgid ""
14927 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14928 "(8)> command.  The \"full\" version includes all fields."
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../src/guestfs-actions.pod:5356
14933 msgid ""
14934 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
14935 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
14936 msgstr ""
14937
14938 #. type: =head2
14939 #: ../src/guestfs-actions.pod:5362
14940 msgid "guestfs_pvuuid"
14941 msgstr ""
14942
14943 #. type: verbatim
14944 #: ../src/guestfs-actions.pod:5364
14945 #, no-wrap
14946 msgid ""
14947 " char *\n"
14948 " guestfs_pvuuid (guestfs_h *g,\n"
14949 "                 const char *device);\n"
14950 "\n"
14951 msgstr ""
14952
14953 #. type: textblock
14954 #: ../src/guestfs-actions.pod:5368 ../fish/guestfish-actions.pod:3603
14955 msgid "This command returns the UUID of the LVM PV C<device>."
14956 msgstr ""
14957
14958 #. type: =head2
14959 #: ../src/guestfs-actions.pod:5375
14960 msgid "guestfs_pwrite"
14961 msgstr ""
14962
14963 #. type: verbatim
14964 #: ../src/guestfs-actions.pod:5377
14965 #, no-wrap
14966 msgid ""
14967 " int\n"
14968 " guestfs_pwrite (guestfs_h *g,\n"
14969 "                 const char *path,\n"
14970 "                 const char *content,\n"
14971 "                 size_t content_size,\n"
14972 "                 int64_t offset);\n"
14973 "\n"
14974 msgstr ""
14975
14976 #. type: textblock
14977 #: ../src/guestfs-actions.pod:5384 ../fish/guestfish-actions.pod:3609
14978 msgid ""
14979 "This command writes to part of a file.  It writes the data buffer C<content> "
14980 "to the file C<path> starting at offset C<offset>."
14981 msgstr ""
14982
14983 #. type: textblock
14984 #: ../src/guestfs-actions.pod:5387 ../fish/guestfish-actions.pod:3612
14985 msgid ""
14986 "This command implements the L<pwrite(2)> system call, and like that system "
14987 "call it may not write the full data requested.  The return value is the "
14988 "number of bytes that were actually written to the file.  This could even be "
14989 "0, although short writes are unlikely for regular files in ordinary "
14990 "circumstances."
14991 msgstr ""
14992
14993 #. type: textblock
14994 #: ../src/guestfs-actions.pod:5393
14995 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
14996 msgstr ""
14997
14998 #. type: =head2
14999 #: ../src/guestfs-actions.pod:5402
15000 msgid "guestfs_pwrite_device"
15001 msgstr ""
15002
15003 #. type: verbatim
15004 #: ../src/guestfs-actions.pod:5404
15005 #, no-wrap
15006 msgid ""
15007 " int\n"
15008 " guestfs_pwrite_device (guestfs_h *g,\n"
15009 "                        const char *device,\n"
15010 "                        const char *content,\n"
15011 "                        size_t content_size,\n"
15012 "                        int64_t offset);\n"
15013 "\n"
15014 msgstr ""
15015
15016 #. type: textblock
15017 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:3627
15018 msgid ""
15019 "This command writes to part of a device.  It writes the data buffer "
15020 "C<content> to C<device> starting at offset C<offset>."
15021 msgstr ""
15022
15023 #. type: textblock
15024 #: ../src/guestfs-actions.pod:5414 ../fish/guestfish-actions.pod:3630
15025 msgid ""
15026 "This command implements the L<pwrite(2)> system call, and like that system "
15027 "call it may not write the full data requested (although short writes to disk "
15028 "devices and partitions are probably impossible with standard Linux kernels)."
15029 msgstr ""
15030
15031 #. type: textblock
15032 #: ../src/guestfs-actions.pod:5419
15033 msgid "See also C<guestfs_pwrite>."
15034 msgstr ""
15035
15036 #. type: textblock
15037 #: ../src/guestfs-actions.pod:5426
15038 msgid "(Added in 1.5.20)"
15039 msgstr ""
15040
15041 #. type: =head2
15042 #: ../src/guestfs-actions.pod:5428
15043 msgid "guestfs_read_file"
15044 msgstr ""
15045
15046 #. type: verbatim
15047 #: ../src/guestfs-actions.pod:5430
15048 #, no-wrap
15049 msgid ""
15050 " char *\n"
15051 " guestfs_read_file (guestfs_h *g,\n"
15052 "                    const char *path,\n"
15053 "                    size_t *size_r);\n"
15054 "\n"
15055 msgstr ""
15056
15057 #. type: textblock
15058 #: ../src/guestfs-actions.pod:5435 ../fish/guestfish-actions.pod:3644
15059 msgid "This calls returns the contents of the file C<path> as a buffer."
15060 msgstr ""
15061
15062 #. type: textblock
15063 #: ../src/guestfs-actions.pod:5438
15064 msgid ""
15065 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
15066 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
15067 "function is limited in the total size of file that can be handled."
15068 msgstr ""
15069
15070 #. type: textblock
15071 #: ../src/guestfs-actions.pod:5450
15072 msgid "(Added in 1.0.63)"
15073 msgstr ""
15074
15075 #. type: =head2
15076 #: ../src/guestfs-actions.pod:5452
15077 msgid "guestfs_read_lines"
15078 msgstr ""
15079
15080 #. type: verbatim
15081 #: ../src/guestfs-actions.pod:5454
15082 #, no-wrap
15083 msgid ""
15084 " char **\n"
15085 " guestfs_read_lines (guestfs_h *g,\n"
15086 "                     const char *path);\n"
15087 "\n"
15088 msgstr ""
15089
15090 #. type: textblock
15091 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:3661
15092 msgid ""
15093 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15094 "C<CRLF> character sequences are I<not> returned."
15095 msgstr ""
15096
15097 #. type: textblock
15098 #: ../src/guestfs-actions.pod:5463
15099 msgid ""
15100 "Note that this function cannot correctly handle binary files (specifically, "
15101 "files containing C<\\0> character which is treated as end of line).  For "
15102 "those you need to use the C<guestfs_read_file> function which has a more "
15103 "complex interface."
15104 msgstr ""
15105
15106 #. type: =head2
15107 #: ../src/guestfs-actions.pod:5474
15108 msgid "guestfs_readdir"
15109 msgstr ""
15110
15111 #. type: verbatim
15112 #: ../src/guestfs-actions.pod:5476
15113 #, no-wrap
15114 msgid ""
15115 " struct guestfs_dirent_list *\n"
15116 " guestfs_readdir (guestfs_h *g,\n"
15117 "                  const char *dir);\n"
15118 "\n"
15119 msgstr ""
15120
15121 #. type: textblock
15122 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3673
15123 msgid "This returns the list of directory entries in directory C<dir>."
15124 msgstr ""
15125
15126 #. type: textblock
15127 #: ../src/guestfs-actions.pod:5482 ../fish/guestfish-actions.pod:3675
15128 msgid ""
15129 "All entries in the directory are returned, including C<.> and C<..>.  The "
15130 "entries are I<not> sorted, but returned in the same order as the underlying "
15131 "filesystem."
15132 msgstr ""
15133
15134 #. type: textblock
15135 #: ../src/guestfs-actions.pod:5486 ../fish/guestfish-actions.pod:3679
15136 msgid ""
15137 "Also this call returns basic file type information about each file.  The "
15138 "C<ftyp> field will contain one of the following characters:"
15139 msgstr ""
15140
15141 #. type: =item
15142 #: ../src/guestfs-actions.pod:5491 ../fish/guestfish-actions.pod:3684
15143 msgid "'b'"
15144 msgstr ""
15145
15146 #. type: textblock
15147 #: ../src/guestfs-actions.pod:5493 ../fish/guestfish-actions.pod:3686
15148 msgid "Block special"
15149 msgstr ""
15150
15151 #. type: =item
15152 #: ../src/guestfs-actions.pod:5495 ../fish/guestfish-actions.pod:3688
15153 msgid "'c'"
15154 msgstr ""
15155
15156 #. type: textblock
15157 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3690
15158 msgid "Char special"
15159 msgstr ""
15160
15161 #. type: =item
15162 #: ../src/guestfs-actions.pod:5499 ../fish/guestfish-actions.pod:3692
15163 msgid "'d'"
15164 msgstr ""
15165
15166 #. type: textblock
15167 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:3694
15168 msgid "Directory"
15169 msgstr ""
15170
15171 #. type: =item
15172 #: ../src/guestfs-actions.pod:5503 ../fish/guestfish-actions.pod:3696
15173 msgid "'f'"
15174 msgstr ""
15175
15176 #. type: textblock
15177 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3698
15178 msgid "FIFO (named pipe)"
15179 msgstr ""
15180
15181 #. type: =item
15182 #: ../src/guestfs-actions.pod:5507 ../fish/guestfish-actions.pod:3700
15183 msgid "'l'"
15184 msgstr ""
15185
15186 #. type: textblock
15187 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3702
15188 msgid "Symbolic link"
15189 msgstr ""
15190
15191 #. type: =item
15192 #: ../src/guestfs-actions.pod:5511 ../fish/guestfish-actions.pod:3704
15193 msgid "'r'"
15194 msgstr ""
15195
15196 #. type: textblock
15197 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3706
15198 msgid "Regular file"
15199 msgstr ""
15200
15201 #. type: =item
15202 #: ../src/guestfs-actions.pod:5515 ../fish/guestfish-actions.pod:3708
15203 msgid "'s'"
15204 msgstr ""
15205
15206 #. type: textblock
15207 #: ../src/guestfs-actions.pod:5517 ../fish/guestfish-actions.pod:3710
15208 msgid "Socket"
15209 msgstr ""
15210
15211 #. type: =item
15212 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:3712
15213 msgid "'u'"
15214 msgstr ""
15215
15216 #. type: textblock
15217 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3714
15218 msgid "Unknown file type"
15219 msgstr ""
15220
15221 #. type: =item
15222 #: ../src/guestfs-actions.pod:5523 ../fish/guestfish-actions.pod:3716
15223 msgid "'?'"
15224 msgstr ""
15225
15226 #. type: textblock
15227 #: ../src/guestfs-actions.pod:5525 ../fish/guestfish-actions.pod:3718
15228 msgid ""
15229 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15230 msgstr ""
15231
15232 #. type: textblock
15233 #: ../src/guestfs-actions.pod:5530
15234 msgid ""
15235 "This function is primarily intended for use by programs.  To get a simple "
15236 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
15237 "consumption, use C<guestfs_ll>."
15238 msgstr ""
15239
15240 #. type: textblock
15241 #: ../src/guestfs-actions.pod:5534
15242 msgid ""
15243 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
15244 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
15245 msgstr ""
15246
15247 #. type: =head2
15248 #: ../src/guestfs-actions.pod:5540
15249 msgid "guestfs_readlink"
15250 msgstr ""
15251
15252 #. type: verbatim
15253 #: ../src/guestfs-actions.pod:5542
15254 #, no-wrap
15255 msgid ""
15256 " char *\n"
15257 " guestfs_readlink (guestfs_h *g,\n"
15258 "                   const char *path);\n"
15259 "\n"
15260 msgstr ""
15261
15262 #. type: textblock
15263 #: ../src/guestfs-actions.pod:5546 ../fish/guestfish-actions.pod:3731
15264 msgid "This command reads the target of a symbolic link."
15265 msgstr ""
15266
15267 #. type: =head2
15268 #: ../src/guestfs-actions.pod:5553
15269 msgid "guestfs_readlinklist"
15270 msgstr ""
15271
15272 #. type: verbatim
15273 #: ../src/guestfs-actions.pod:5555
15274 #, no-wrap
15275 msgid ""
15276 " char **\n"
15277 " guestfs_readlinklist (guestfs_h *g,\n"
15278 "                       const char *path,\n"
15279 "                       char *const *names);\n"
15280 "\n"
15281 msgstr ""
15282
15283 #. type: textblock
15284 #: ../src/guestfs-actions.pod:5560 ../fish/guestfish-actions.pod:3737
15285 msgid ""
15286 "This call allows you to do a C<readlink> operation on multiple files, where "
15287 "all files are in the directory C<path>.  C<names> is the list of files from "
15288 "this directory."
15289 msgstr ""
15290
15291 #. type: textblock
15292 #: ../src/guestfs-actions.pod:5564 ../fish/guestfish-actions.pod:3741
15293 msgid ""
15294 "On return you get a list of strings, with a one-to-one correspondence to the "
15295 "C<names> list.  Each string is the value of the symbolic link."
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../src/guestfs-actions.pod:5568 ../fish/guestfish-actions.pod:3745
15300 msgid ""
15301 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15302 "result string is the empty string C<\"\">.  However the whole operation is "
15303 "completed even if there were C<readlink(2)> errors, and so you can call this "
15304 "function with names where you don't know if they are symbolic links already "
15305 "(albeit slightly less efficient)."
15306 msgstr ""
15307
15308 #. type: textblock
15309 #: ../src/guestfs-actions.pod:5575 ../fish/guestfish-actions.pod:3752
15310 msgid ""
15311 "This call is intended for programs that want to efficiently list a directory "
15312 "contents without making many round-trips.  Very long directory listings "
15313 "might cause the protocol message size to be exceeded, causing this call to "
15314 "fail.  The caller must split up such requests into smaller groups of names."
15315 msgstr ""
15316
15317 #. type: =head2
15318 #: ../src/guestfs-actions.pod:5588
15319 msgid "guestfs_realpath"
15320 msgstr ""
15321
15322 #. type: verbatim
15323 #: ../src/guestfs-actions.pod:5590
15324 #, no-wrap
15325 msgid ""
15326 " char *\n"
15327 " guestfs_realpath (guestfs_h *g,\n"
15328 "                   const char *path);\n"
15329 "\n"
15330 msgstr ""
15331
15332 #. type: textblock
15333 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3763
15334 msgid ""
15335 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15336 "has no C<.>, C<..> or symbolic link path elements."
15337 msgstr ""
15338
15339 #. type: =head2
15340 #: ../src/guestfs-actions.pod:5602
15341 msgid "guestfs_removexattr"
15342 msgstr ""
15343
15344 #. type: verbatim
15345 #: ../src/guestfs-actions.pod:5604
15346 #, no-wrap
15347 msgid ""
15348 " int\n"
15349 " guestfs_removexattr (guestfs_h *g,\n"
15350 "                      const char *xattr,\n"
15351 "                      const char *path);\n"
15352 "\n"
15353 msgstr ""
15354
15355 #. type: textblock
15356 #: ../src/guestfs-actions.pod:5609 ../fish/guestfish-actions.pod:3770
15357 msgid ""
15358 "This call removes the extended attribute named C<xattr> of the file C<path>."
15359 msgstr ""
15360
15361 #. type: textblock
15362 #: ../src/guestfs-actions.pod:5612
15363 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
15364 msgstr ""
15365
15366 #. type: =head2
15367 #: ../src/guestfs-actions.pod:5618
15368 msgid "guestfs_resize2fs"
15369 msgstr ""
15370
15371 #. type: verbatim
15372 #: ../src/guestfs-actions.pod:5620
15373 #, no-wrap
15374 msgid ""
15375 " int\n"
15376 " guestfs_resize2fs (guestfs_h *g,\n"
15377 "                    const char *device);\n"
15378 "\n"
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../src/guestfs-actions.pod:5624 ../fish/guestfish-actions.pod:3779
15383 msgid ""
15384 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15385 "underlying device."
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../src/guestfs-actions.pod:5627
15390 msgid ""
15391 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
15392 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
15393 "sometimes gives an error about this and sometimes not.  In any case, it is "
15394 "always safe to call C<guestfs_e2fsck_f> before calling this function."
15395 msgstr ""
15396
15397 #. type: =head2
15398 #: ../src/guestfs-actions.pod:5637
15399 msgid "guestfs_resize2fs_M"
15400 msgstr ""
15401
15402 #. type: verbatim
15403 #: ../src/guestfs-actions.pod:5639
15404 #, no-wrap
15405 msgid ""
15406 " int\n"
15407 " guestfs_resize2fs_M (guestfs_h *g,\n"
15408 "                      const char *device);\n"
15409 "\n"
15410 msgstr ""
15411
15412 #. type: textblock
15413 #: ../src/guestfs-actions.pod:5643
15414 msgid ""
15415 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
15416 "resized to its minimum size.  This works like the C<-M> option to the "
15417 "C<resize2fs> command."
15418 msgstr ""
15419
15420 #. type: textblock
15421 #: ../src/guestfs-actions.pod:5647
15422 msgid ""
15423 "To get the resulting size of the filesystem you should call "
15424 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
15425 "These two numbers, multiplied together, give the resulting size of the "
15426 "minimal filesystem in bytes."
15427 msgstr ""
15428
15429 #. type: =head2
15430 #: ../src/guestfs-actions.pod:5654
15431 msgid "guestfs_resize2fs_size"
15432 msgstr ""
15433
15434 #. type: verbatim
15435 #: ../src/guestfs-actions.pod:5656
15436 #, no-wrap
15437 msgid ""
15438 " int\n"
15439 " guestfs_resize2fs_size (guestfs_h *g,\n"
15440 "                         const char *device,\n"
15441 "                         int64_t size);\n"
15442 "\n"
15443 msgstr ""
15444
15445 #. type: textblock
15446 #: ../src/guestfs-actions.pod:5661
15447 msgid ""
15448 "This command is the same as C<guestfs_resize2fs> except that it allows you "
15449 "to specify the new size (in bytes) explicitly."
15450 msgstr ""
15451
15452 #. type: =head2
15453 #: ../src/guestfs-actions.pod:5668
15454 msgid "guestfs_rm"
15455 msgstr ""
15456
15457 #. type: verbatim
15458 #: ../src/guestfs-actions.pod:5670
15459 #, no-wrap
15460 msgid ""
15461 " int\n"
15462 " guestfs_rm (guestfs_h *g,\n"
15463 "             const char *path);\n"
15464 "\n"
15465 msgstr ""
15466
15467 #. type: textblock
15468 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3812
15469 msgid "Remove the single file C<path>."
15470 msgstr ""
15471
15472 #. type: =head2
15473 #: ../src/guestfs-actions.pod:5680
15474 msgid "guestfs_rm_rf"
15475 msgstr ""
15476
15477 #. type: verbatim
15478 #: ../src/guestfs-actions.pod:5682
15479 #, no-wrap
15480 msgid ""
15481 " int\n"
15482 " guestfs_rm_rf (guestfs_h *g,\n"
15483 "                const char *path);\n"
15484 "\n"
15485 msgstr ""
15486
15487 #. type: textblock
15488 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3818
15489 msgid ""
15490 "Remove the file or directory C<path>, recursively removing the contents if "
15491 "its a directory.  This is like the C<rm -rf> shell command."
15492 msgstr ""
15493
15494 #. type: =head2
15495 #: ../src/guestfs-actions.pod:5694
15496 msgid "guestfs_rmdir"
15497 msgstr ""
15498
15499 #. type: verbatim
15500 #: ../src/guestfs-actions.pod:5696
15501 #, no-wrap
15502 msgid ""
15503 " int\n"
15504 " guestfs_rmdir (guestfs_h *g,\n"
15505 "                const char *path);\n"
15506 "\n"
15507 msgstr ""
15508
15509 #. type: textblock
15510 #: ../src/guestfs-actions.pod:5700 ../fish/guestfish-actions.pod:3826
15511 msgid "Remove the single directory C<path>."
15512 msgstr ""
15513
15514 #. type: =head2
15515 #: ../src/guestfs-actions.pod:5706
15516 msgid "guestfs_rmmountpoint"
15517 msgstr ""
15518
15519 #. type: verbatim
15520 #: ../src/guestfs-actions.pod:5708
15521 #, no-wrap
15522 msgid ""
15523 " int\n"
15524 " guestfs_rmmountpoint (guestfs_h *g,\n"
15525 "                       const char *exemptpath);\n"
15526 "\n"
15527 msgstr ""
15528
15529 #. type: textblock
15530 #: ../src/guestfs-actions.pod:5712
15531 msgid ""
15532 "This calls removes a mountpoint that was previously created with "
15533 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
15534 msgstr ""
15535
15536 #. type: =head2
15537 #: ../src/guestfs-actions.pod:5720
15538 msgid "guestfs_scrub_device"
15539 msgstr ""
15540
15541 #. type: verbatim
15542 #: ../src/guestfs-actions.pod:5722
15543 #, no-wrap
15544 msgid ""
15545 " int\n"
15546 " guestfs_scrub_device (guestfs_h *g,\n"
15547 "                       const char *device);\n"
15548 "\n"
15549 msgstr ""
15550
15551 #. type: textblock
15552 #: ../src/guestfs-actions.pod:5726 ../fish/guestfish-actions.pod:3840
15553 msgid ""
15554 "This command writes patterns over C<device> to make data retrieval more "
15555 "difficult."
15556 msgstr ""
15557
15558 #. type: textblock
15559 #: ../src/guestfs-actions.pod:5729 ../src/guestfs-actions.pod:5750
15560 #: ../src/guestfs-actions.pod:5769 ../fish/guestfish-actions.pod:3843
15561 #: ../fish/guestfish-actions.pod:3858 ../fish/guestfish-actions.pod:3871
15562 msgid ""
15563 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15564 "more details."
15565 msgstr ""
15566
15567 #. type: textblock
15568 #: ../src/guestfs-actions.pod:5737 ../src/guestfs-actions.pod:5755
15569 #: ../src/guestfs-actions.pod:5774
15570 msgid "(Added in 1.0.52)"
15571 msgstr ""
15572
15573 #. type: =head2
15574 #: ../src/guestfs-actions.pod:5739
15575 msgid "guestfs_scrub_file"
15576 msgstr ""
15577
15578 #. type: verbatim
15579 #: ../src/guestfs-actions.pod:5741
15580 #, no-wrap
15581 msgid ""
15582 " int\n"
15583 " guestfs_scrub_file (guestfs_h *g,\n"
15584 "                     const char *file);\n"
15585 "\n"
15586 msgstr ""
15587
15588 #. type: textblock
15589 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3853
15590 msgid ""
15591 "This command writes patterns over a file to make data retrieval more "
15592 "difficult."
15593 msgstr ""
15594
15595 #. type: textblock
15596 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:3856
15597 msgid "The file is I<removed> after scrubbing."
15598 msgstr ""
15599
15600 #. type: =head2
15601 #: ../src/guestfs-actions.pod:5757
15602 msgid "guestfs_scrub_freespace"
15603 msgstr ""
15604
15605 #. type: verbatim
15606 #: ../src/guestfs-actions.pod:5759
15607 #, no-wrap
15608 msgid ""
15609 " int\n"
15610 " guestfs_scrub_freespace (guestfs_h *g,\n"
15611 "                          const char *dir);\n"
15612 "\n"
15613 msgstr ""
15614
15615 #. type: textblock
15616 #: ../src/guestfs-actions.pod:5763
15617 msgid ""
15618 "This command creates the directory C<dir> and then fills it with files until "
15619 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
15620 "and deletes them.  The intention is to scrub any free space on the partition "
15621 "containing C<dir>."
15622 msgstr ""
15623
15624 #. type: =head2
15625 #: ../src/guestfs-actions.pod:5776
15626 msgid "guestfs_set_append"
15627 msgstr ""
15628
15629 #. type: verbatim
15630 #: ../src/guestfs-actions.pod:5778
15631 #, no-wrap
15632 msgid ""
15633 " int\n"
15634 " guestfs_set_append (guestfs_h *g,\n"
15635 "                     const char *append);\n"
15636 "\n"
15637 msgstr ""
15638
15639 #. type: textblock
15640 #: ../src/guestfs-actions.pod:5782 ../fish/guestfish-actions.pod:3880
15641 msgid ""
15642 "This function is used to add additional options to the guest kernel command "
15643 "line."
15644 msgstr ""
15645
15646 #. type: textblock
15647 #: ../src/guestfs-actions.pod:5785 ../fish/guestfish-actions.pod:3883
15648 msgid ""
15649 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15650 "environment variable."
15651 msgstr ""
15652
15653 #. type: textblock
15654 #: ../src/guestfs-actions.pod:5788 ../fish/guestfish-actions.pod:3886
15655 msgid ""
15656 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15657 "(libguestfs always adds a few of its own)."
15658 msgstr ""
15659
15660 #. type: =head2
15661 #: ../src/guestfs-actions.pod:5795
15662 msgid "guestfs_set_attach_method"
15663 msgstr ""
15664
15665 #. type: verbatim
15666 #: ../src/guestfs-actions.pod:5797
15667 #, no-wrap
15668 msgid ""
15669 " int\n"
15670 " guestfs_set_attach_method (guestfs_h *g,\n"
15671 "                            const char *attachmethod);\n"
15672 "\n"
15673 msgstr ""
15674
15675 #. type: textblock
15676 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3895
15677 msgid ""
15678 "Set the method that libguestfs uses to connect to the back end guestfsd "
15679 "daemon.  Possible methods are:"
15680 msgstr ""
15681
15682 #. type: textblock
15683 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:3902
15684 msgid ""
15685 "Launch an appliance and connect to it.  This is the ordinary method and the "
15686 "default."
15687 msgstr ""
15688
15689 #. type: =item
15690 #: ../src/guestfs-actions.pod:5811 ../fish/guestfish-actions.pod:3905
15691 msgid "C<unix:I<path>>"
15692 msgstr ""
15693
15694 #. type: textblock
15695 #: ../src/guestfs-actions.pod:5813 ../fish/guestfish-actions.pod:3907
15696 msgid "Connect to the Unix domain socket I<path>."
15697 msgstr ""
15698
15699 #. type: textblock
15700 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3909
15701 msgid ""
15702 "This method lets you connect to an existing daemon or (using virtio-serial) "
15703 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15704 "RUNNING DAEMONS>."
15705 msgstr ""
15706
15707 #. type: =head2
15708 #: ../src/guestfs-actions.pod:5823
15709 msgid "guestfs_set_autosync"
15710 msgstr ""
15711
15712 #. type: verbatim
15713 #: ../src/guestfs-actions.pod:5825
15714 #, no-wrap
15715 msgid ""
15716 " int\n"
15717 " guestfs_set_autosync (guestfs_h *g,\n"
15718 "                       int autosync);\n"
15719 "\n"
15720 msgstr ""
15721
15722 #. type: textblock
15723 #: ../src/guestfs-actions.pod:5829 ../fish/guestfish-actions.pod:3921
15724 msgid ""
15725 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15726 "effort attempt to make filesystems consistent and synchronized when the "
15727 "handle is closed (also if the program exits without closing handles)."
15728 msgstr ""
15729
15730 #. type: textblock
15731 #: ../src/guestfs-actions.pod:5834 ../fish/guestfish-actions.pod:3926
15732 msgid ""
15733 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15734 "disabled by default)."
15735 msgstr ""
15736
15737 #. type: =head2
15738 #: ../src/guestfs-actions.pod:5841
15739 msgid "guestfs_set_direct"
15740 msgstr ""
15741
15742 #. type: verbatim
15743 #: ../src/guestfs-actions.pod:5843
15744 #, no-wrap
15745 msgid ""
15746 " int\n"
15747 " guestfs_set_direct (guestfs_h *g,\n"
15748 "                     int direct);\n"
15749 "\n"
15750 msgstr ""
15751
15752 #. type: textblock
15753 #: ../src/guestfs-actions.pod:5847 ../fish/guestfish-actions.pod:3935
15754 msgid ""
15755 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15756 "passed directly through to the appliance once it is launched."
15757 msgstr ""
15758
15759 #. type: textblock
15760 #: ../src/guestfs-actions.pod:5851
15761 msgid ""
15762 "One consequence of this is that log messages aren't caught by the library "
15763 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
15764 "stdout."
15765 msgstr ""
15766
15767 #. type: textblock
15768 #: ../src/guestfs-actions.pod:5855 ../fish/guestfish-actions.pod:3943
15769 msgid "You probably don't want to use this unless you know what you are doing."
15770 msgstr ""
15771
15772 #. type: textblock
15773 #: ../src/guestfs-actions.pod:5858 ../fish/guestfish-actions.pod:3946
15774 msgid "The default is disabled."
15775 msgstr ""
15776
15777 #. type: =head2
15778 #: ../src/guestfs-actions.pod:5864
15779 msgid "guestfs_set_e2label"
15780 msgstr ""
15781
15782 #. type: verbatim
15783 #: ../src/guestfs-actions.pod:5866
15784 #, no-wrap
15785 msgid ""
15786 " int\n"
15787 " guestfs_set_e2label (guestfs_h *g,\n"
15788 "                      const char *device,\n"
15789 "                      const char *label);\n"
15790 "\n"
15791 msgstr ""
15792
15793 #. type: textblock
15794 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3952
15795 msgid ""
15796 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15797 "C<label>.  Filesystem labels are limited to 16 characters."
15798 msgstr ""
15799
15800 #. type: textblock
15801 #: ../src/guestfs-actions.pod:5875
15802 msgid ""
15803 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
15804 "the existing label on a filesystem."
15805 msgstr ""
15806
15807 #. type: =head2
15808 #: ../src/guestfs-actions.pod:5882
15809 msgid "guestfs_set_e2uuid"
15810 msgstr ""
15811
15812 #. type: verbatim
15813 #: ../src/guestfs-actions.pod:5884
15814 #, no-wrap
15815 msgid ""
15816 " int\n"
15817 " guestfs_set_e2uuid (guestfs_h *g,\n"
15818 "                     const char *device,\n"
15819 "                     const char *uuid);\n"
15820 "\n"
15821 msgstr ""
15822
15823 #. type: textblock
15824 #: ../src/guestfs-actions.pod:5889 ../fish/guestfish-actions.pod:3963
15825 msgid ""
15826 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15827 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15828 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15829 msgstr ""
15830
15831 #. type: textblock
15832 #: ../src/guestfs-actions.pod:5894
15833 msgid ""
15834 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
15835 "the existing UUID of a filesystem."
15836 msgstr ""
15837
15838 #. type: =head2
15839 #: ../src/guestfs-actions.pod:5901
15840 msgid "guestfs_set_memsize"
15841 msgstr ""
15842
15843 #. type: verbatim
15844 #: ../src/guestfs-actions.pod:5903
15845 #, no-wrap
15846 msgid ""
15847 " int\n"
15848 " guestfs_set_memsize (guestfs_h *g,\n"
15849 "                      int memsize);\n"
15850 "\n"
15851 msgstr ""
15852
15853 #. type: textblock
15854 #: ../src/guestfs-actions.pod:5907
15855 msgid ""
15856 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15857 "This only has any effect if called before C<guestfs_launch>."
15858 msgstr ""
15859
15860 #. type: textblock
15861 #: ../src/guestfs-actions.pod:5911 ../fish/guestfish-actions.pod:3981
15862 msgid ""
15863 "You can also change this by setting the environment variable "
15864 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15865 msgstr ""
15866
15867 #. type: =head2
15868 #: ../src/guestfs-actions.pod:5922
15869 msgid "guestfs_set_network"
15870 msgstr ""
15871
15872 #. type: verbatim
15873 #: ../src/guestfs-actions.pod:5924
15874 #, no-wrap
15875 msgid ""
15876 " int\n"
15877 " guestfs_set_network (guestfs_h *g,\n"
15878 "                      int network);\n"
15879 "\n"
15880 msgstr ""
15881
15882 #. type: textblock
15883 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3994
15884 msgid ""
15885 "If C<network> is true, then the network is enabled in the libguestfs "
15886 "appliance.  The default is false."
15887 msgstr ""
15888
15889 #. type: textblock
15890 #: ../src/guestfs-actions.pod:5931 ../fish/guestfish-actions.pod:3997
15891 msgid ""
15892 "This affects whether commands are able to access the network (see L<guestfs"
15893 "(3)/RUNNING COMMANDS>)."
15894 msgstr ""
15895
15896 #. type: textblock
15897 #: ../src/guestfs-actions.pod:5934
15898 msgid ""
15899 "You must call this before calling C<guestfs_launch>, otherwise it has no "
15900 "effect."
15901 msgstr ""
15902
15903 #. type: =head2
15904 #: ../src/guestfs-actions.pod:5941
15905 msgid "guestfs_set_path"
15906 msgstr ""
15907
15908 #. type: verbatim
15909 #: ../src/guestfs-actions.pod:5943
15910 #, no-wrap
15911 msgid ""
15912 " int\n"
15913 " guestfs_set_path (guestfs_h *g,\n"
15914 "                   const char *searchpath);\n"
15915 "\n"
15916 msgstr ""
15917
15918 #. type: textblock
15919 #: ../src/guestfs-actions.pod:5947 ../fish/guestfish-actions.pod:4009
15920 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15921 msgstr ""
15922
15923 #. type: textblock
15924 #: ../src/guestfs-actions.pod:5949 ../fish/guestfish-actions.pod:4011
15925 msgid ""
15926 "The default is C<$libdir/guestfs> unless overridden by setting "
15927 "C<LIBGUESTFS_PATH> environment variable."
15928 msgstr ""
15929
15930 #. type: textblock
15931 #: ../src/guestfs-actions.pod:5952 ../fish/guestfish-actions.pod:4014
15932 msgid "Setting C<path> to C<NULL> restores the default path."
15933 msgstr ""
15934
15935 #. type: =head2
15936 #: ../src/guestfs-actions.pod:5958
15937 msgid "guestfs_set_qemu"
15938 msgstr ""
15939
15940 #. type: verbatim
15941 #: ../src/guestfs-actions.pod:5960
15942 #, no-wrap
15943 msgid ""
15944 " int\n"
15945 " guestfs_set_qemu (guestfs_h *g,\n"
15946 "                   const char *qemu);\n"
15947 "\n"
15948 msgstr ""
15949
15950 #. type: textblock
15951 #: ../src/guestfs-actions.pod:5964 ../fish/guestfish-actions.pod:4022
15952 msgid "Set the qemu binary that we will use."
15953 msgstr ""
15954
15955 #. type: textblock
15956 #: ../src/guestfs-actions.pod:5966 ../fish/guestfish-actions.pod:4024
15957 msgid ""
15958 "The default is chosen when the library was compiled by the configure script."
15959 msgstr ""
15960
15961 #. type: textblock
15962 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:4027
15963 msgid ""
15964 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15965 "variable."
15966 msgstr ""
15967
15968 #. type: textblock
15969 #: ../src/guestfs-actions.pod:5972 ../fish/guestfish-actions.pod:4030
15970 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15971 msgstr ""
15972
15973 #. type: textblock
15974 #: ../src/guestfs-actions.pod:5974 ../fish/guestfish-actions.pod:4032
15975 msgid ""
15976 "Note that you should call this function as early as possible after creating "
15977 "the handle.  This is because some pre-launch operations depend on testing "
15978 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15979 "don't retest features, and so you might see inconsistent results.  Using the "
15980 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15981 "the qemu binary at the same time as the handle is created."
15982 msgstr ""
15983
15984 #. type: =head2
15985 #: ../src/guestfs-actions.pod:5986
15986 msgid "guestfs_set_recovery_proc"
15987 msgstr ""
15988
15989 #. type: verbatim
15990 #: ../src/guestfs-actions.pod:5988
15991 #, no-wrap
15992 msgid ""
15993 " int\n"
15994 " guestfs_set_recovery_proc (guestfs_h *g,\n"
15995 "                            int recoveryproc);\n"
15996 "\n"
15997 msgstr ""
15998
15999 #. type: textblock
16000 #: ../src/guestfs-actions.pod:5992
16001 msgid ""
16002 "If this is called with the parameter C<false> then C<guestfs_launch> does "
16003 "not create a recovery process.  The purpose of the recovery process is to "
16004 "stop runaway qemu processes in the case where the main program aborts "
16005 "abruptly."
16006 msgstr ""
16007
16008 #. type: textblock
16009 #: ../src/guestfs-actions.pod:5997
16010 msgid ""
16011 "This only has any effect if called before C<guestfs_launch>, and the default "
16012 "is true."
16013 msgstr ""
16014
16015 #. type: textblock
16016 #: ../src/guestfs-actions.pod:6000 ../fish/guestfish-actions.pod:4054
16017 msgid ""
16018 "About the only time when you would want to disable this is if the main "
16019 "process will fork itself into the background (\"daemonize\" itself).  In "
16020 "this case the recovery process thinks that the main program has disappeared "
16021 "and so kills qemu, which is not very helpful."
16022 msgstr ""
16023
16024 #. type: =head2
16025 #: ../src/guestfs-actions.pod:6010
16026 msgid "guestfs_set_selinux"
16027 msgstr ""
16028
16029 #. type: verbatim
16030 #: ../src/guestfs-actions.pod:6012
16031 #, no-wrap
16032 msgid ""
16033 " int\n"
16034 " guestfs_set_selinux (guestfs_h *g,\n"
16035 "                      int selinux);\n"
16036 "\n"
16037 msgstr ""
16038
16039 #. type: textblock
16040 #: ../src/guestfs-actions.pod:6016 ../fish/guestfish-actions.pod:4066
16041 msgid ""
16042 "This sets the selinux flag that is passed to the appliance at boot time.  "
16043 "The default is C<selinux=0> (disabled)."
16044 msgstr ""
16045
16046 #. type: textblock
16047 #: ../src/guestfs-actions.pod:6019 ../fish/guestfish-actions.pod:4069
16048 msgid ""
16049 "Note that if SELinux is enabled, it is always in Permissive mode "
16050 "(C<enforcing=0>)."
16051 msgstr ""
16052
16053 #. type: =head2
16054 #: ../src/guestfs-actions.pod:6029
16055 msgid "guestfs_set_trace"
16056 msgstr ""
16057
16058 #. type: verbatim
16059 #: ../src/guestfs-actions.pod:6031
16060 #, no-wrap
16061 msgid ""
16062 " int\n"
16063 " guestfs_set_trace (guestfs_h *g,\n"
16064 "                    int trace);\n"
16065 "\n"
16066 msgstr ""
16067
16068 #. type: textblock
16069 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4081
16070 msgid ""
16071 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16072 "return values are traced."
16073 msgstr ""
16074
16075 #. type: textblock
16076 #: ../src/guestfs-actions.pod:6038 ../fish/guestfish-actions.pod:4084
16077 msgid ""
16078 "If you want to trace C API calls into libguestfs (and other libraries) then "
16079 "possibly a better way is to use the external ltrace(1) command."
16080 msgstr ""
16081
16082 #. type: textblock
16083 #: ../src/guestfs-actions.pod:6042 ../fish/guestfish-actions.pod:4088
16084 msgid ""
16085 "Command traces are disabled unless the environment variable "
16086 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16087 msgstr ""
16088
16089 #. type: textblock
16090 #: ../src/guestfs-actions.pod:6045
16091 msgid ""
16092 "Trace messages are normally sent to C<stderr>, unless you register a "
16093 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16094 msgstr ""
16095
16096 #. type: =head2
16097 #: ../src/guestfs-actions.pod:6053
16098 msgid "guestfs_set_verbose"
16099 msgstr ""
16100
16101 #. type: verbatim
16102 #: ../src/guestfs-actions.pod:6055
16103 #, no-wrap
16104 msgid ""
16105 " int\n"
16106 " guestfs_set_verbose (guestfs_h *g,\n"
16107 "                      int verbose);\n"
16108 "\n"
16109 msgstr ""
16110
16111 #. type: textblock
16112 #: ../src/guestfs-actions.pod:6059 ../fish/guestfish-actions.pod:4101
16113 msgid "If C<verbose> is true, this turns on verbose messages."
16114 msgstr ""
16115
16116 #. type: textblock
16117 #: ../src/guestfs-actions.pod:6061 ../fish/guestfish-actions.pod:4103
16118 msgid ""
16119 "Verbose messages are disabled unless the environment variable "
16120 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16121 msgstr ""
16122
16123 #. type: textblock
16124 #: ../src/guestfs-actions.pod:6064
16125 msgid ""
16126 "Verbose messages are normally sent to C<stderr>, unless you register a "
16127 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16128 msgstr ""
16129
16130 #. type: =head2
16131 #: ../src/guestfs-actions.pod:6072
16132 msgid "guestfs_setcon"
16133 msgstr ""
16134
16135 #. type: verbatim
16136 #: ../src/guestfs-actions.pod:6074
16137 #, no-wrap
16138 msgid ""
16139 " int\n"
16140 " guestfs_setcon (guestfs_h *g,\n"
16141 "                 const char *context);\n"
16142 "\n"
16143 msgstr ""
16144
16145 #. type: textblock
16146 #: ../src/guestfs-actions.pod:6078 ../fish/guestfish-actions.pod:4114
16147 msgid ""
16148 "This sets the SELinux security context of the daemon to the string "
16149 "C<context>."
16150 msgstr ""
16151
16152 #. type: textblock
16153 #: ../src/guestfs-actions.pod:6081 ../fish/guestfish-actions.pod:4117
16154 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16155 msgstr ""
16156
16157 #. type: =head2
16158 #: ../src/guestfs-actions.pod:6087
16159 msgid "guestfs_setxattr"
16160 msgstr ""
16161
16162 #. type: verbatim
16163 #: ../src/guestfs-actions.pod:6089
16164 #, no-wrap
16165 msgid ""
16166 " int\n"
16167 " guestfs_setxattr (guestfs_h *g,\n"
16168 "                   const char *xattr,\n"
16169 "                   const char *val,\n"
16170 "                   int vallen,\n"
16171 "                   const char *path);\n"
16172 "\n"
16173 msgstr ""
16174
16175 #. type: textblock
16176 #: ../src/guestfs-actions.pod:6096 ../fish/guestfish-actions.pod:4123
16177 msgid ""
16178 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16179 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16180 msgstr ""
16181
16182 #. type: textblock
16183 #: ../src/guestfs-actions.pod:6100
16184 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
16185 msgstr ""
16186
16187 #. type: =head2
16188 #: ../src/guestfs-actions.pod:6106
16189 msgid "guestfs_sfdisk"
16190 msgstr ""
16191
16192 #. type: verbatim
16193 #: ../src/guestfs-actions.pod:6108
16194 #, no-wrap
16195 msgid ""
16196 " int\n"
16197 " guestfs_sfdisk (guestfs_h *g,\n"
16198 "                 const char *device,\n"
16199 "                 int cyls,\n"
16200 "                 int heads,\n"
16201 "                 int sectors,\n"
16202 "                 char *const *lines);\n"
16203 "\n"
16204 msgstr ""
16205
16206 #. type: textblock
16207 #: ../src/guestfs-actions.pod:6116 ../fish/guestfish-actions.pod:4133
16208 msgid ""
16209 "This is a direct interface to the L<sfdisk(8)> program for creating "
16210 "partitions on block devices."
16211 msgstr ""
16212
16213 #. type: textblock
16214 #: ../src/guestfs-actions.pod:6119 ../fish/guestfish-actions.pod:4136
16215 msgid "C<device> should be a block device, for example C</dev/sda>."
16216 msgstr ""
16217
16218 #. type: textblock
16219 #: ../src/guestfs-actions.pod:6121 ../fish/guestfish-actions.pod:4138
16220 msgid ""
16221 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16222 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16223 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16224 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16225 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16226 "the kernel) cannot work out the right geometry and you will need to tell it."
16227 msgstr ""
16228
16229 #. type: textblock
16230 #: ../src/guestfs-actions.pod:6129 ../fish/guestfish-actions.pod:4146
16231 msgid ""
16232 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16233 "refer to the L<sfdisk(8)> manpage."
16234 msgstr ""
16235
16236 #. type: textblock
16237 #: ../src/guestfs-actions.pod:6132 ../fish/guestfish-actions.pod:4149
16238 msgid ""
16239 "To create a single partition occupying the whole disk, you would pass "
16240 "C<lines> as a single element list, when the single element being the string "
16241 "C<,> (comma)."
16242 msgstr ""
16243
16244 #. type: textblock
16245 #: ../src/guestfs-actions.pod:6136
16246 msgid ""
16247 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
16248 msgstr ""
16249
16250 #. type: =head2
16251 #: ../src/guestfs-actions.pod:6146
16252 msgid "guestfs_sfdiskM"
16253 msgstr ""
16254
16255 #. type: verbatim
16256 #: ../src/guestfs-actions.pod:6148
16257 #, no-wrap
16258 msgid ""
16259 " int\n"
16260 " guestfs_sfdiskM (guestfs_h *g,\n"
16261 "                  const char *device,\n"
16262 "                  char *const *lines);\n"
16263 "\n"
16264 msgstr ""
16265
16266 #. type: textblock
16267 #: ../src/guestfs-actions.pod:6153
16268 msgid ""
16269 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
16270 "partition sizes are specified in megabytes only (rounded to the nearest "
16271 "cylinder) and you don't need to specify the cyls, heads and sectors "
16272 "parameters which were rarely if ever used anyway."
16273 msgstr ""
16274
16275 #. type: textblock
16276 #: ../src/guestfs-actions.pod:6159
16277 msgid ""
16278 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
16279 "C<guestfs_part_disk>"
16280 msgstr ""
16281
16282 #. type: =head2
16283 #: ../src/guestfs-actions.pod:6169
16284 msgid "guestfs_sfdisk_N"
16285 msgstr ""
16286
16287 #. type: verbatim
16288 #: ../src/guestfs-actions.pod:6171
16289 #, no-wrap
16290 msgid ""
16291 " int\n"
16292 " guestfs_sfdisk_N (guestfs_h *g,\n"
16293 "                   const char *device,\n"
16294 "                   int partnum,\n"
16295 "                   int cyls,\n"
16296 "                   int heads,\n"
16297 "                   int sectors,\n"
16298 "                   const char *line);\n"
16299 "\n"
16300 msgstr ""
16301
16302 #. type: textblock
16303 #: ../src/guestfs-actions.pod:6180 ../fish/guestfish-actions.pod:4179
16304 msgid ""
16305 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16306 "(note: C<n> counts from 1)."
16307 msgstr ""
16308
16309 #. type: textblock
16310 #: ../src/guestfs-actions.pod:6183
16311 msgid ""
16312 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
16313 "for the cyls/heads/sectors parameters."
16314 msgstr ""
16315
16316 #. type: textblock
16317 #: ../src/guestfs-actions.pod:6186
16318 msgid "See also: C<guestfs_part_add>"
16319 msgstr ""
16320
16321 #. type: =head2
16322 #: ../src/guestfs-actions.pod:6195
16323 msgid "guestfs_sfdisk_disk_geometry"
16324 msgstr ""
16325
16326 #. type: verbatim
16327 #: ../src/guestfs-actions.pod:6197
16328 #, no-wrap
16329 msgid ""
16330 " char *\n"
16331 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
16332 "                               const char *device);\n"
16333 "\n"
16334 msgstr ""
16335
16336 #. type: textblock
16337 #: ../src/guestfs-actions.pod:6201
16338 msgid ""
16339 "This displays the disk geometry of C<device> read from the partition table.  "
16340 "Especially in the case where the underlying block device has been resized, "
16341 "this can be different from the kernel's idea of the geometry (see "
16342 "C<guestfs_sfdisk_kernel_geometry>)."
16343 msgstr ""
16344
16345 #. type: textblock
16346 #: ../src/guestfs-actions.pod:6206 ../src/guestfs-actions.pod:6222
16347 #: ../fish/guestfish-actions.pod:4199 ../fish/guestfish-actions.pod:4208
16348 msgid "The result is in human-readable format, and not designed to be parsed."
16349 msgstr ""
16350
16351 #. type: =head2
16352 #: ../src/guestfs-actions.pod:6214
16353 msgid "guestfs_sfdisk_kernel_geometry"
16354 msgstr ""
16355
16356 #. type: verbatim
16357 #: ../src/guestfs-actions.pod:6216
16358 #, no-wrap
16359 msgid ""
16360 " char *\n"
16361 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
16362 "                                 const char *device);\n"
16363 "\n"
16364 msgstr ""
16365
16366 #. type: textblock
16367 #: ../src/guestfs-actions.pod:6220 ../fish/guestfish-actions.pod:4206
16368 msgid "This displays the kernel's idea of the geometry of C<device>."
16369 msgstr ""
16370
16371 #. type: =head2
16372 #: ../src/guestfs-actions.pod:6230
16373 msgid "guestfs_sfdisk_l"
16374 msgstr ""
16375
16376 #. type: verbatim
16377 #: ../src/guestfs-actions.pod:6232
16378 #, no-wrap
16379 msgid ""
16380 " char *\n"
16381 " guestfs_sfdisk_l (guestfs_h *g,\n"
16382 "                   const char *device);\n"
16383 "\n"
16384 msgstr ""
16385
16386 #. type: textblock
16387 #: ../src/guestfs-actions.pod:6236 ../fish/guestfish-actions.pod:4215
16388 msgid ""
16389 "This displays the partition table on C<device>, in the human-readable output "
16390 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16391 msgstr ""
16392
16393 #. type: textblock
16394 #: ../src/guestfs-actions.pod:6240
16395 msgid "See also: C<guestfs_part_list>"
16396 msgstr ""
16397
16398 #. type: =head2
16399 #: ../src/guestfs-actions.pod:6247
16400 msgid "guestfs_sh"
16401 msgstr ""
16402
16403 #. type: verbatim
16404 #: ../src/guestfs-actions.pod:6249
16405 #, no-wrap
16406 msgid ""
16407 " char *\n"
16408 " guestfs_sh (guestfs_h *g,\n"
16409 "             const char *command);\n"
16410 "\n"
16411 msgstr ""
16412
16413 #. type: textblock
16414 #: ../src/guestfs-actions.pod:6253 ../fish/guestfish-actions.pod:4225
16415 msgid ""
16416 "This call runs a command from the guest filesystem via the guest's C</bin/"
16417 "sh>."
16418 msgstr ""
16419
16420 #. type: textblock
16421 #: ../src/guestfs-actions.pod:6256
16422 msgid "This is like C<guestfs_command>, but passes the command to:"
16423 msgstr ""
16424
16425 #. type: verbatim
16426 #: ../src/guestfs-actions.pod:6258 ../fish/guestfish-actions.pod:4230
16427 #, no-wrap
16428 msgid ""
16429 " /bin/sh -c \"command\"\n"
16430 "\n"
16431 msgstr ""
16432
16433 #. type: textblock
16434 #: ../src/guestfs-actions.pod:6260 ../fish/guestfish-actions.pod:4232
16435 msgid ""
16436 "Depending on the guest's shell, this usually results in wildcards being "
16437 "expanded, shell expressions being interpolated and so on."
16438 msgstr ""
16439
16440 #. type: textblock
16441 #: ../src/guestfs-actions.pod:6264
16442 msgid "All the provisos about C<guestfs_command> apply to this call."
16443 msgstr ""
16444
16445 #. type: =head2
16446 #: ../src/guestfs-actions.pod:6271
16447 msgid "guestfs_sh_lines"
16448 msgstr ""
16449
16450 #. type: verbatim
16451 #: ../src/guestfs-actions.pod:6273
16452 #, no-wrap
16453 msgid ""
16454 " char **\n"
16455 " guestfs_sh_lines (guestfs_h *g,\n"
16456 "                   const char *command);\n"
16457 "\n"
16458 msgstr ""
16459
16460 #. type: textblock
16461 #: ../src/guestfs-actions.pod:6277
16462 msgid ""
16463 "This is the same as C<guestfs_sh>, but splits the result into a list of "
16464 "lines."
16465 msgstr ""
16466
16467 #. type: textblock
16468 #: ../src/guestfs-actions.pod:6280
16469 msgid "See also: C<guestfs_command_lines>"
16470 msgstr ""
16471
16472 #. type: =head2
16473 #: ../src/guestfs-actions.pod:6288
16474 msgid "guestfs_sleep"
16475 msgstr ""
16476
16477 #. type: verbatim
16478 #: ../src/guestfs-actions.pod:6290
16479 #, no-wrap
16480 msgid ""
16481 " int\n"
16482 " guestfs_sleep (guestfs_h *g,\n"
16483 "                int secs);\n"
16484 "\n"
16485 msgstr ""
16486
16487 #. type: textblock
16488 #: ../src/guestfs-actions.pod:6294 ../fish/guestfish-actions.pod:4251
16489 msgid "Sleep for C<secs> seconds."
16490 msgstr ""
16491
16492 #. type: textblock
16493 #: ../src/guestfs-actions.pod:6298
16494 msgid "(Added in 1.0.41)"
16495 msgstr ""
16496
16497 #. type: =head2
16498 #: ../src/guestfs-actions.pod:6300 ../src/guestfs-structs.pod:109
16499 msgid "guestfs_stat"
16500 msgstr ""
16501
16502 #. type: verbatim
16503 #: ../src/guestfs-actions.pod:6302
16504 #, no-wrap
16505 msgid ""
16506 " struct guestfs_stat *\n"
16507 " guestfs_stat (guestfs_h *g,\n"
16508 "               const char *path);\n"
16509 "\n"
16510 msgstr ""
16511
16512 #. type: textblock
16513 #: ../src/guestfs-actions.pod:6308 ../fish/guestfish-actions.pod:4259
16514 msgid "This is the same as the C<stat(2)> system call."
16515 msgstr ""
16516
16517 #. type: =head2
16518 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-structs.pod:135
16519 msgid "guestfs_statvfs"
16520 msgstr ""
16521
16522 #. type: verbatim
16523 #: ../src/guestfs-actions.pod:6318
16524 #, no-wrap
16525 msgid ""
16526 " struct guestfs_statvfs *\n"
16527 " guestfs_statvfs (guestfs_h *g,\n"
16528 "                  const char *path);\n"
16529 "\n"
16530 msgstr ""
16531
16532 #. type: textblock
16533 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4265
16534 msgid ""
16535 "Returns file system statistics for any mounted file system.  C<path> should "
16536 "be a file or directory in the mounted file system (typically it is the mount "
16537 "point itself, but it doesn't need to be)."
16538 msgstr ""
16539
16540 #. type: textblock
16541 #: ../src/guestfs-actions.pod:6326 ../fish/guestfish-actions.pod:4269
16542 msgid "This is the same as the C<statvfs(2)> system call."
16543 msgstr ""
16544
16545 #. type: textblock
16546 #: ../src/guestfs-actions.pod:6328
16547 msgid ""
16548 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
16549 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
16550 msgstr ""
16551
16552 #. type: =head2
16553 #: ../src/guestfs-actions.pod:6334
16554 msgid "guestfs_strings"
16555 msgstr ""
16556
16557 #. type: verbatim
16558 #: ../src/guestfs-actions.pod:6336
16559 #, no-wrap
16560 msgid ""
16561 " char **\n"
16562 " guestfs_strings (guestfs_h *g,\n"
16563 "                  const char *path);\n"
16564 "\n"
16565 msgstr ""
16566
16567 #. type: textblock
16568 #: ../src/guestfs-actions.pod:6340 ../fish/guestfish-actions.pod:4275
16569 msgid ""
16570 "This runs the L<strings(1)> command on a file and returns the list of "
16571 "printable strings found."
16572 msgstr ""
16573
16574 #. type: =head2
16575 #: ../src/guestfs-actions.pod:6352
16576 msgid "guestfs_strings_e"
16577 msgstr ""
16578
16579 #. type: verbatim
16580 #: ../src/guestfs-actions.pod:6354
16581 #, no-wrap
16582 msgid ""
16583 " char **\n"
16584 " guestfs_strings_e (guestfs_h *g,\n"
16585 "                    const char *encoding,\n"
16586 "                    const char *path);\n"
16587 "\n"
16588 msgstr ""
16589
16590 #. type: textblock
16591 #: ../src/guestfs-actions.pod:6359
16592 msgid ""
16593 "This is like the C<guestfs_strings> command, but allows you to specify the "
16594 "encoding of strings that are looked for in the source file C<path>."
16595 msgstr ""
16596
16597 #. type: textblock
16598 #: ../src/guestfs-actions.pod:6363 ../fish/guestfish-actions.pod:4289
16599 msgid "Allowed encodings are:"
16600 msgstr ""
16601
16602 #. type: =item
16603 #: ../src/guestfs-actions.pod:6367 ../fish/guestfish-actions.pod:4293
16604 msgid "s"
16605 msgstr ""
16606
16607 #. type: textblock
16608 #: ../src/guestfs-actions.pod:6369
16609 msgid ""
16610 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16611 "ISO-8859-X (this is what C<guestfs_strings> uses)."
16612 msgstr ""
16613
16614 #. type: =item
16615 #: ../src/guestfs-actions.pod:6372 ../fish/guestfish-actions.pod:4298
16616 msgid "S"
16617 msgstr ""
16618
16619 #. type: textblock
16620 #: ../src/guestfs-actions.pod:6374 ../fish/guestfish-actions.pod:4300
16621 msgid "Single 8-bit-byte characters."
16622 msgstr ""
16623
16624 #. type: =item
16625 #: ../src/guestfs-actions.pod:6376 ../fish/guestfish-actions.pod:4302
16626 msgid "b"
16627 msgstr ""
16628
16629 #. type: textblock
16630 #: ../src/guestfs-actions.pod:6378 ../fish/guestfish-actions.pod:4304
16631 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16632 msgstr ""
16633
16634 #. type: =item
16635 #: ../src/guestfs-actions.pod:6381 ../fish/guestfish-actions.pod:4307
16636 msgid "l (lower case letter L)"
16637 msgstr ""
16638
16639 #. type: textblock
16640 #: ../src/guestfs-actions.pod:6383 ../fish/guestfish-actions.pod:4309
16641 msgid ""
16642 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16643 "examining binaries in Windows guests."
16644 msgstr ""
16645
16646 #. type: =item
16647 #: ../src/guestfs-actions.pod:6386 ../fish/guestfish-actions.pod:4312
16648 msgid "B"
16649 msgstr ""
16650
16651 #. type: textblock
16652 #: ../src/guestfs-actions.pod:6388 ../fish/guestfish-actions.pod:4314
16653 msgid "32-bit big endian such as UCS-4BE."
16654 msgstr ""
16655
16656 #. type: =item
16657 #: ../src/guestfs-actions.pod:6390 ../fish/guestfish-actions.pod:4316
16658 msgid "L"
16659 msgstr ""
16660
16661 #. type: textblock
16662 #: ../src/guestfs-actions.pod:6392 ../fish/guestfish-actions.pod:4318
16663 msgid "32-bit little endian such as UCS-4LE."
16664 msgstr ""
16665
16666 #. type: textblock
16667 #: ../src/guestfs-actions.pod:6396 ../fish/guestfish-actions.pod:4322
16668 msgid "The returned strings are transcoded to UTF-8."
16669 msgstr ""
16670
16671 #. type: =head2
16672 #: ../src/guestfs-actions.pod:6407
16673 msgid "guestfs_swapoff_device"
16674 msgstr ""
16675
16676 #. type: verbatim
16677 #: ../src/guestfs-actions.pod:6409
16678 #, no-wrap
16679 msgid ""
16680 " int\n"
16681 " guestfs_swapoff_device (guestfs_h *g,\n"
16682 "                         const char *device);\n"
16683 "\n"
16684 msgstr ""
16685
16686 #. type: textblock
16687 #: ../src/guestfs-actions.pod:6413
16688 msgid ""
16689 "This command disables the libguestfs appliance swap device or partition "
16690 "named C<device>.  See C<guestfs_swapon_device>."
16691 msgstr ""
16692
16693 #. type: =head2
16694 #: ../src/guestfs-actions.pod:6421
16695 msgid "guestfs_swapoff_file"
16696 msgstr ""
16697
16698 #. type: verbatim
16699 #: ../src/guestfs-actions.pod:6423
16700 #, no-wrap
16701 msgid ""
16702 " int\n"
16703 " guestfs_swapoff_file (guestfs_h *g,\n"
16704 "                       const char *file);\n"
16705 "\n"
16706 msgstr ""
16707
16708 #. type: textblock
16709 #: ../src/guestfs-actions.pod:6427 ../fish/guestfish-actions.pod:4339
16710 msgid "This command disables the libguestfs appliance swap on file."
16711 msgstr ""
16712
16713 #. type: =head2
16714 #: ../src/guestfs-actions.pod:6433
16715 msgid "guestfs_swapoff_label"
16716 msgstr ""
16717
16718 #. type: verbatim
16719 #: ../src/guestfs-actions.pod:6435
16720 #, no-wrap
16721 msgid ""
16722 " int\n"
16723 " guestfs_swapoff_label (guestfs_h *g,\n"
16724 "                        const char *label);\n"
16725 "\n"
16726 msgstr ""
16727
16728 #. type: textblock
16729 #: ../src/guestfs-actions.pod:6439 ../fish/guestfish-actions.pod:4345
16730 msgid ""
16731 "This command disables the libguestfs appliance swap on labeled swap "
16732 "partition."
16733 msgstr ""
16734
16735 #. type: =head2
16736 #: ../src/guestfs-actions.pod:6446
16737 msgid "guestfs_swapoff_uuid"
16738 msgstr ""
16739
16740 #. type: verbatim
16741 #: ../src/guestfs-actions.pod:6448
16742 #, no-wrap
16743 msgid ""
16744 " int\n"
16745 " guestfs_swapoff_uuid (guestfs_h *g,\n"
16746 "                       const char *uuid);\n"
16747 "\n"
16748 msgstr ""
16749
16750 #. type: textblock
16751 #: ../src/guestfs-actions.pod:6452 ../fish/guestfish-actions.pod:4352
16752 msgid ""
16753 "This command disables the libguestfs appliance swap partition with the given "
16754 "UUID."
16755 msgstr ""
16756
16757 #. type: =head2
16758 #: ../src/guestfs-actions.pod:6459
16759 msgid "guestfs_swapon_device"
16760 msgstr ""
16761
16762 #. type: verbatim
16763 #: ../src/guestfs-actions.pod:6461
16764 #, no-wrap
16765 msgid ""
16766 " int\n"
16767 " guestfs_swapon_device (guestfs_h *g,\n"
16768 "                        const char *device);\n"
16769 "\n"
16770 msgstr ""
16771
16772 #. type: textblock
16773 #: ../src/guestfs-actions.pod:6465
16774 msgid ""
16775 "This command enables the libguestfs appliance to use the swap device or "
16776 "partition named C<device>.  The increased memory is made available for all "
16777 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
16778 msgstr ""
16779
16780 #. type: textblock
16781 #: ../src/guestfs-actions.pod:6470 ../fish/guestfish-actions.pod:4364
16782 msgid ""
16783 "Note that you should not swap to existing guest swap partitions unless you "
16784 "know what you are doing.  They may contain hibernation information, or other "
16785 "information that the guest doesn't want you to trash.  You also risk leaking "
16786 "information about the host to the guest this way.  Instead, attach a new "
16787 "host device to the guest and swap on that."
16788 msgstr ""
16789
16790 #. type: =head2
16791 #: ../src/guestfs-actions.pod:6481
16792 msgid "guestfs_swapon_file"
16793 msgstr ""
16794
16795 #. type: verbatim
16796 #: ../src/guestfs-actions.pod:6483
16797 #, no-wrap
16798 msgid ""
16799 " int\n"
16800 " guestfs_swapon_file (guestfs_h *g,\n"
16801 "                      const char *file);\n"
16802 "\n"
16803 msgstr ""
16804
16805 #. type: textblock
16806 #: ../src/guestfs-actions.pod:6487
16807 msgid ""
16808 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
16809 "notes."
16810 msgstr ""
16811
16812 #. type: =head2
16813 #: ../src/guestfs-actions.pod:6494
16814 msgid "guestfs_swapon_label"
16815 msgstr ""
16816
16817 #. type: verbatim
16818 #: ../src/guestfs-actions.pod:6496
16819 #, no-wrap
16820 msgid ""
16821 " int\n"
16822 " guestfs_swapon_label (guestfs_h *g,\n"
16823 "                       const char *label);\n"
16824 "\n"
16825 msgstr ""
16826
16827 #. type: textblock
16828 #: ../src/guestfs-actions.pod:6500
16829 msgid ""
16830 "This command enables swap to a labeled swap partition.  See "
16831 "C<guestfs_swapon_device> for other notes."
16832 msgstr ""
16833
16834 #. type: =head2
16835 #: ../src/guestfs-actions.pod:6507
16836 msgid "guestfs_swapon_uuid"
16837 msgstr ""
16838
16839 #. type: verbatim
16840 #: ../src/guestfs-actions.pod:6509
16841 #, no-wrap
16842 msgid ""
16843 " int\n"
16844 " guestfs_swapon_uuid (guestfs_h *g,\n"
16845 "                      const char *uuid);\n"
16846 "\n"
16847 msgstr ""
16848
16849 #. type: textblock
16850 #: ../src/guestfs-actions.pod:6513
16851 msgid ""
16852 "This command enables swap to a swap partition with the given UUID.  See "
16853 "C<guestfs_swapon_device> for other notes."
16854 msgstr ""
16855
16856 #. type: =head2
16857 #: ../src/guestfs-actions.pod:6520
16858 msgid "guestfs_sync"
16859 msgstr ""
16860
16861 #. type: verbatim
16862 #: ../src/guestfs-actions.pod:6522
16863 #, no-wrap
16864 msgid ""
16865 " int\n"
16866 " guestfs_sync (guestfs_h *g);\n"
16867 "\n"
16868 msgstr ""
16869
16870 #. type: textblock
16871 #: ../src/guestfs-actions.pod:6525 ../fish/guestfish-actions.pod:4396
16872 msgid ""
16873 "This syncs the disk, so that any writes are flushed through to the "
16874 "underlying disk image."
16875 msgstr ""
16876
16877 #. type: textblock
16878 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4399
16879 msgid ""
16880 "You should always call this if you have modified a disk image, before "
16881 "closing the handle."
16882 msgstr ""
16883
16884 #. type: =head2
16885 #: ../src/guestfs-actions.pod:6535
16886 msgid "guestfs_tail"
16887 msgstr ""
16888
16889 #. type: verbatim
16890 #: ../src/guestfs-actions.pod:6537
16891 #, no-wrap
16892 msgid ""
16893 " char **\n"
16894 " guestfs_tail (guestfs_h *g,\n"
16895 "               const char *path);\n"
16896 "\n"
16897 msgstr ""
16898
16899 #. type: textblock
16900 #: ../src/guestfs-actions.pod:6541 ../fish/guestfish-actions.pod:4406
16901 msgid ""
16902 "This command returns up to the last 10 lines of a file as a list of strings."
16903 msgstr ""
16904
16905 #. type: =head2
16906 #: ../src/guestfs-actions.pod:6553
16907 msgid "guestfs_tail_n"
16908 msgstr ""
16909
16910 #. type: verbatim
16911 #: ../src/guestfs-actions.pod:6555
16912 #, no-wrap
16913 msgid ""
16914 " char **\n"
16915 " guestfs_tail_n (guestfs_h *g,\n"
16916 "                 int nrlines,\n"
16917 "                 const char *path);\n"
16918 "\n"
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../src/guestfs-actions.pod:6560 ../fish/guestfish-actions.pod:4416
16923 msgid ""
16924 "If the parameter C<nrlines> is a positive number, this returns the last "
16925 "C<nrlines> lines of the file C<path>."
16926 msgstr ""
16927
16928 #. type: textblock
16929 #: ../src/guestfs-actions.pod:6563 ../fish/guestfish-actions.pod:4419
16930 msgid ""
16931 "If the parameter C<nrlines> is a negative number, this returns lines from "
16932 "the file C<path>, starting with the C<-nrlines>th line."
16933 msgstr ""
16934
16935 #. type: =head2
16936 #: ../src/guestfs-actions.pod:6577
16937 msgid "guestfs_tar_in"
16938 msgstr ""
16939
16940 #. type: verbatim
16941 #: ../src/guestfs-actions.pod:6579
16942 #, no-wrap
16943 msgid ""
16944 " int\n"
16945 " guestfs_tar_in (guestfs_h *g,\n"
16946 "                 const char *tarfile,\n"
16947 "                 const char *directory);\n"
16948 "\n"
16949 msgstr ""
16950
16951 #. type: textblock
16952 #: ../src/guestfs-actions.pod:6584 ../fish/guestfish-actions.pod:4431
16953 msgid ""
16954 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16955 "tar file) into C<directory>."
16956 msgstr ""
16957
16958 #. type: textblock
16959 #: ../src/guestfs-actions.pod:6587
16960 msgid ""
16961 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
16962 msgstr ""
16963
16964 #. type: textblock
16965 #: ../src/guestfs-actions.pod:6592 ../src/guestfs-actions.pod:6609
16966 #: ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6641
16967 msgid "(Added in 1.0.3)"
16968 msgstr ""
16969
16970 #. type: =head2
16971 #: ../src/guestfs-actions.pod:6594
16972 msgid "guestfs_tar_out"
16973 msgstr ""
16974
16975 #. type: verbatim
16976 #: ../src/guestfs-actions.pod:6596
16977 #, no-wrap
16978 msgid ""
16979 " int\n"
16980 " guestfs_tar_out (guestfs_h *g,\n"
16981 "                  const char *directory,\n"
16982 "                  const char *tarfile);\n"
16983 "\n"
16984 msgstr ""
16985
16986 #. type: textblock
16987 #: ../src/guestfs-actions.pod:6601 ../fish/guestfish-actions.pod:4443
16988 msgid ""
16989 "This command packs the contents of C<directory> and downloads it to local "
16990 "file C<tarfile>."
16991 msgstr ""
16992
16993 #. type: textblock
16994 #: ../src/guestfs-actions.pod:6604
16995 msgid ""
16996 "To download a compressed tarball, use C<guestfs_tgz_out> or "
16997 "C<guestfs_txz_out>."
16998 msgstr ""
16999
17000 #. type: =head2
17001 #: ../src/guestfs-actions.pod:6611
17002 msgid "guestfs_tgz_in"
17003 msgstr ""
17004
17005 #. type: verbatim
17006 #: ../src/guestfs-actions.pod:6613
17007 #, no-wrap
17008 msgid ""
17009 " int\n"
17010 " guestfs_tgz_in (guestfs_h *g,\n"
17011 "                 const char *tarball,\n"
17012 "                 const char *directory);\n"
17013 "\n"
17014 msgstr ""
17015
17016 #. type: textblock
17017 #: ../src/guestfs-actions.pod:6618 ../fish/guestfish-actions.pod:4455
17018 msgid ""
17019 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17020 "tar file) into C<directory>."
17021 msgstr ""
17022
17023 #. type: textblock
17024 #: ../src/guestfs-actions.pod:6621
17025 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
17026 msgstr ""
17027
17028 #. type: =head2
17029 #: ../src/guestfs-actions.pod:6627
17030 msgid "guestfs_tgz_out"
17031 msgstr ""
17032
17033 #. type: verbatim
17034 #: ../src/guestfs-actions.pod:6629
17035 #, no-wrap
17036 msgid ""
17037 " int\n"
17038 " guestfs_tgz_out (guestfs_h *g,\n"
17039 "                  const char *directory,\n"
17040 "                  const char *tarball);\n"
17041 "\n"
17042 msgstr ""
17043
17044 #. type: textblock
17045 #: ../src/guestfs-actions.pod:6634 ../fish/guestfish-actions.pod:4466
17046 msgid ""
17047 "This command packs the contents of C<directory> and downloads it to local "
17048 "file C<tarball>."
17049 msgstr ""
17050
17051 #. type: textblock
17052 #: ../src/guestfs-actions.pod:6637
17053 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
17054 msgstr ""
17055
17056 #. type: =head2
17057 #: ../src/guestfs-actions.pod:6643
17058 msgid "guestfs_touch"
17059 msgstr ""
17060
17061 #. type: verbatim
17062 #: ../src/guestfs-actions.pod:6645
17063 #, no-wrap
17064 msgid ""
17065 " int\n"
17066 " guestfs_touch (guestfs_h *g,\n"
17067 "                const char *path);\n"
17068 "\n"
17069 msgstr ""
17070
17071 #. type: textblock
17072 #: ../src/guestfs-actions.pod:6649 ../fish/guestfish-actions.pod:4477
17073 msgid ""
17074 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17075 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17076 "length file."
17077 msgstr ""
17078
17079 #. type: textblock
17080 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4481
17081 msgid ""
17082 "This command only works on regular files, and will fail on other file types "
17083 "such as directories, symbolic links, block special etc."
17084 msgstr ""
17085
17086 #. type: =head2
17087 #: ../src/guestfs-actions.pod:6660
17088 msgid "guestfs_truncate"
17089 msgstr ""
17090
17091 #. type: verbatim
17092 #: ../src/guestfs-actions.pod:6662
17093 #, no-wrap
17094 msgid ""
17095 " int\n"
17096 " guestfs_truncate (guestfs_h *g,\n"
17097 "                   const char *path);\n"
17098 "\n"
17099 msgstr ""
17100
17101 #. type: textblock
17102 #: ../src/guestfs-actions.pod:6666 ../fish/guestfish-actions.pod:4488
17103 msgid ""
17104 "This command truncates C<path> to a zero-length file.  The file must exist "
17105 "already."
17106 msgstr ""
17107
17108 #. type: =head2
17109 #: ../src/guestfs-actions.pod:6673
17110 msgid "guestfs_truncate_size"
17111 msgstr ""
17112
17113 #. type: verbatim
17114 #: ../src/guestfs-actions.pod:6675
17115 #, no-wrap
17116 msgid ""
17117 " int\n"
17118 " guestfs_truncate_size (guestfs_h *g,\n"
17119 "                        const char *path,\n"
17120 "                        int64_t size);\n"
17121 "\n"
17122 msgstr ""
17123
17124 #. type: textblock
17125 #: ../src/guestfs-actions.pod:6680 ../fish/guestfish-actions.pod:4495
17126 msgid ""
17127 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17128 "already."
17129 msgstr ""
17130
17131 #. type: textblock
17132 #: ../src/guestfs-actions.pod:6683
17133 msgid ""
17134 "If the current file size is less than C<size> then the file is extended to "
17135 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17136 "blocks are not allocated for the file until you write to it).  To create a "
17137 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
17138 msgstr ""
17139
17140 #. type: =head2
17141 #: ../src/guestfs-actions.pod:6693
17142 msgid "guestfs_tune2fs_l"
17143 msgstr ""
17144
17145 #. type: verbatim
17146 #: ../src/guestfs-actions.pod:6695
17147 #, no-wrap
17148 msgid ""
17149 " char **\n"
17150 " guestfs_tune2fs_l (guestfs_h *g,\n"
17151 "                    const char *device);\n"
17152 "\n"
17153 msgstr ""
17154
17155 #. type: textblock
17156 #: ../src/guestfs-actions.pod:6699 ../fish/guestfish-actions.pod:4508
17157 msgid ""
17158 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17159 "C<device>."
17160 msgstr ""
17161
17162 #. type: textblock
17163 #: ../src/guestfs-actions.pod:6702 ../fish/guestfish-actions.pod:4511
17164 msgid ""
17165 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17166 "for more details.  The list of fields returned isn't clearly defined, and "
17167 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17168 "and the filesystem itself."
17169 msgstr ""
17170
17171 #. type: =head2
17172 #: ../src/guestfs-actions.pod:6715
17173 msgid "guestfs_txz_in"
17174 msgstr ""
17175
17176 #. type: verbatim
17177 #: ../src/guestfs-actions.pod:6717
17178 #, no-wrap
17179 msgid ""
17180 " int\n"
17181 " guestfs_txz_in (guestfs_h *g,\n"
17182 "                 const char *tarball,\n"
17183 "                 const char *directory);\n"
17184 "\n"
17185 msgstr ""
17186
17187 #. type: textblock
17188 #: ../src/guestfs-actions.pod:6722 ../fish/guestfish-actions.pod:4520
17189 msgid ""
17190 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17191 "tar file) into C<directory>."
17192 msgstr ""
17193
17194 #. type: =head2
17195 #: ../src/guestfs-actions.pod:6729
17196 msgid "guestfs_txz_out"
17197 msgstr ""
17198
17199 #. type: verbatim
17200 #: ../src/guestfs-actions.pod:6731
17201 #, no-wrap
17202 msgid ""
17203 " int\n"
17204 " guestfs_txz_out (guestfs_h *g,\n"
17205 "                  const char *directory,\n"
17206 "                  const char *tarball);\n"
17207 "\n"
17208 msgstr ""
17209
17210 #. type: textblock
17211 #: ../src/guestfs-actions.pod:6736 ../fish/guestfish-actions.pod:4529
17212 msgid ""
17213 "This command packs the contents of C<directory> and downloads it to local "
17214 "file C<tarball> (as an xz compressed tar archive)."
17215 msgstr ""
17216
17217 #. type: =head2
17218 #: ../src/guestfs-actions.pod:6743
17219 msgid "guestfs_umask"
17220 msgstr ""
17221
17222 #. type: verbatim
17223 #: ../src/guestfs-actions.pod:6745
17224 #, no-wrap
17225 msgid ""
17226 " int\n"
17227 " guestfs_umask (guestfs_h *g,\n"
17228 "                int mask);\n"
17229 "\n"
17230 msgstr ""
17231
17232 #. type: textblock
17233 #: ../src/guestfs-actions.pod:6749 ../fish/guestfish-actions.pod:4538
17234 msgid ""
17235 "This function sets the mask used for creating new files and device nodes to "
17236 "C<mask & 0777>."
17237 msgstr ""
17238
17239 #. type: textblock
17240 #: ../src/guestfs-actions.pod:6752 ../fish/guestfish-actions.pod:4541
17241 msgid ""
17242 "Typical umask values would be C<022> which creates new files with "
17243 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17244 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17245 msgstr ""
17246
17247 #. type: textblock
17248 #: ../src/guestfs-actions.pod:6757 ../fish/guestfish-actions.pod:4546
17249 msgid ""
17250 "The default umask is C<022>.  This is important because it means that "
17251 "directories and device nodes will be created with C<0644> or C<0755> mode "
17252 "even if you specify C<0777>."
17253 msgstr ""
17254
17255 #. type: textblock
17256 #: ../src/guestfs-actions.pod:6761
17257 msgid ""
17258 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
17259 "C<guestfs_mkdir>."
17260 msgstr ""
17261
17262 #. type: textblock
17263 #: ../src/guestfs-actions.pod:6764 ../fish/guestfish-actions.pod:4553
17264 msgid "This call returns the previous umask."
17265 msgstr ""
17266
17267 #. type: =head2
17268 #: ../src/guestfs-actions.pod:6770
17269 msgid "guestfs_umount"
17270 msgstr ""
17271
17272 #. type: verbatim
17273 #: ../src/guestfs-actions.pod:6772
17274 #, no-wrap
17275 msgid ""
17276 " int\n"
17277 " guestfs_umount (guestfs_h *g,\n"
17278 "                 const char *pathordevice);\n"
17279 "\n"
17280 msgstr ""
17281
17282 #. type: textblock
17283 #: ../src/guestfs-actions.pod:6776 ../fish/guestfish-actions.pod:4561
17284 msgid ""
17285 "This unmounts the given filesystem.  The filesystem may be specified either "
17286 "by its mountpoint (path) or the device which contains the filesystem."
17287 msgstr ""
17288
17289 #. type: =head2
17290 #: ../src/guestfs-actions.pod:6784
17291 msgid "guestfs_umount_all"
17292 msgstr ""
17293
17294 #. type: verbatim
17295 #: ../src/guestfs-actions.pod:6786
17296 #, no-wrap
17297 msgid ""
17298 " int\n"
17299 " guestfs_umount_all (guestfs_h *g);\n"
17300 "\n"
17301 msgstr ""
17302
17303 #. type: textblock
17304 #: ../src/guestfs-actions.pod:6789 ../fish/guestfish-actions.pod:4571
17305 msgid "This unmounts all mounted filesystems."
17306 msgstr ""
17307
17308 #. type: textblock
17309 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4573
17310 msgid "Some internal mounts are not unmounted by this call."
17311 msgstr ""
17312
17313 #. type: =head2
17314 #: ../src/guestfs-actions.pod:6797
17315 msgid "guestfs_upload"
17316 msgstr ""
17317
17318 #. type: verbatim
17319 #: ../src/guestfs-actions.pod:6799
17320 #, no-wrap
17321 msgid ""
17322 " int\n"
17323 " guestfs_upload (guestfs_h *g,\n"
17324 "                 const char *filename,\n"
17325 "                 const char *remotefilename);\n"
17326 "\n"
17327 msgstr ""
17328
17329 #. type: textblock
17330 #: ../src/guestfs-actions.pod:6804 ../src/guestfs-actions.pod:6828
17331 #: ../fish/guestfish-actions.pod:4579 ../fish/guestfish-actions.pod:4592
17332 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17333 msgstr ""
17334
17335 #. type: textblock
17336 #: ../src/guestfs-actions.pod:6809
17337 msgid "See also C<guestfs_download>."
17338 msgstr ""
17339
17340 #. type: =head2
17341 #: ../src/guestfs-actions.pod:6820
17342 msgid "guestfs_upload_offset"
17343 msgstr ""
17344
17345 #. type: verbatim
17346 #: ../src/guestfs-actions.pod:6822
17347 #, no-wrap
17348 msgid ""
17349 " int\n"
17350 " guestfs_upload_offset (guestfs_h *g,\n"
17351 "                        const char *filename,\n"
17352 "                        const char *remotefilename,\n"
17353 "                        int64_t offset);\n"
17354 "\n"
17355 msgstr ""
17356
17357 #. type: textblock
17358 #: ../src/guestfs-actions.pod:6831 ../fish/guestfish-actions.pod:4595
17359 msgid ""
17360 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17361 "The intention is to overwrite parts of existing files or devices, although "
17362 "if a non-existant file is specified then it is created with a \"hole\" "
17363 "before C<offset>.  The size of the data written is implicit in the size of "
17364 "the source C<filename>."
17365 msgstr ""
17366
17367 #. type: textblock
17368 #: ../src/guestfs-actions.pod:6838
17369 msgid ""
17370 "Note that there is no limit on the amount of data that can be uploaded with "
17371 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
17372 "full amount unless an error occurs."
17373 msgstr ""
17374
17375 #. type: textblock
17376 #: ../src/guestfs-actions.pod:6843
17377 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
17378 msgstr ""
17379
17380 #. type: =head2
17381 #: ../src/guestfs-actions.pod:6854
17382 msgid "guestfs_utimens"
17383 msgstr ""
17384
17385 #. type: verbatim
17386 #: ../src/guestfs-actions.pod:6856
17387 #, no-wrap
17388 msgid ""
17389 " int\n"
17390 " guestfs_utimens (guestfs_h *g,\n"
17391 "                  const char *path,\n"
17392 "                  int64_t atsecs,\n"
17393 "                  int64_t atnsecs,\n"
17394 "                  int64_t mtsecs,\n"
17395 "                  int64_t mtnsecs);\n"
17396 "\n"
17397 msgstr ""
17398
17399 #. type: textblock
17400 #: ../src/guestfs-actions.pod:6864 ../fish/guestfish-actions.pod:4615
17401 msgid "This command sets the timestamps of a file with nanosecond precision."
17402 msgstr ""
17403
17404 #. type: textblock
17405 #: ../src/guestfs-actions.pod:6867 ../fish/guestfish-actions.pod:4618
17406 msgid ""
17407 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17408 "from the epoch."
17409 msgstr ""
17410
17411 #. type: textblock
17412 #: ../src/guestfs-actions.pod:6870 ../fish/guestfish-actions.pod:4621
17413 msgid ""
17414 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17415 "nanoseconds from the epoch."
17416 msgstr ""
17417
17418 #. type: textblock
17419 #: ../src/guestfs-actions.pod:6873 ../fish/guestfish-actions.pod:4624
17420 msgid ""
17421 "If the C<*nsecs> field contains the special value C<-1> then the "
17422 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17423 "ignored in this case)."
17424 msgstr ""
17425
17426 #. type: textblock
17427 #: ../src/guestfs-actions.pod:6877 ../fish/guestfish-actions.pod:4628
17428 msgid ""
17429 "If the C<*nsecs> field contains the special value C<-2> then the "
17430 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17431 "in this case)."
17432 msgstr ""
17433
17434 #. type: =head2
17435 #: ../src/guestfs-actions.pod:6885 ../src/guestfs-structs.pod:175
17436 msgid "guestfs_version"
17437 msgstr ""
17438
17439 #. type: verbatim
17440 #: ../src/guestfs-actions.pod:6887
17441 #, no-wrap
17442 msgid ""
17443 " struct guestfs_version *\n"
17444 " guestfs_version (guestfs_h *g);\n"
17445 "\n"
17446 msgstr ""
17447
17448 #. type: textblock
17449 #: ../src/guestfs-actions.pod:6890 ../fish/guestfish-actions.pod:4636
17450 msgid ""
17451 "Return the libguestfs version number that the program is linked against."
17452 msgstr ""
17453
17454 #. type: textblock
17455 #: ../src/guestfs-actions.pod:6893 ../fish/guestfish-actions.pod:4639
17456 msgid ""
17457 "Note that because of dynamic linking this is not necessarily the version of "
17458 "libguestfs that you compiled against.  You can compile the program, and then "
17459 "at runtime dynamically link against a completely different C<libguestfs.so> "
17460 "library."
17461 msgstr ""
17462
17463 #. type: textblock
17464 #: ../src/guestfs-actions.pod:6898 ../fish/guestfish-actions.pod:4644
17465 msgid ""
17466 "This call was added in version C<1.0.58>.  In previous versions of "
17467 "libguestfs there was no way to get the version number.  From C code you can "
17468 "use dynamic linker functions to find out if this symbol exists (if it "
17469 "doesn't, then it's an earlier version)."
17470 msgstr ""
17471
17472 #. type: textblock
17473 #: ../src/guestfs-actions.pod:6904 ../fish/guestfish-actions.pod:4650
17474 msgid ""
17475 "The call returns a structure with four elements.  The first three (C<major>, "
17476 "C<minor> and C<release>) are numbers and correspond to the usual version "
17477 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17478 "but may be used for distro-specific information."
17479 msgstr ""
17480
17481 #. type: textblock
17482 #: ../src/guestfs-actions.pod:6910 ../fish/guestfish-actions.pod:4656
17483 msgid ""
17484 "To construct the original version string: C<$major.$minor.$release$extra>"
17485 msgstr ""
17486
17487 #. type: textblock
17488 #: ../src/guestfs-actions.pod:6913 ../fish/guestfish-actions.pod:4659
17489 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17490 msgstr ""
17491
17492 #. type: textblock
17493 #: ../src/guestfs-actions.pod:6915
17494 msgid ""
17495 "I<Note:> Don't use this call to test for availability of features.  In "
17496 "enterprise distributions we backport features from later versions into "
17497 "earlier versions, making this an unreliable way to test for features.  Use "
17498 "C<guestfs_available> instead."
17499 msgstr ""
17500
17501 #. type: textblock
17502 #: ../src/guestfs-actions.pod:6921
17503 msgid ""
17504 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
17505 "error.  I<The caller must call C<guestfs_free_version> after use>."
17506 msgstr ""
17507
17508 #. type: textblock
17509 #: ../src/guestfs-actions.pod:6925
17510 msgid "(Added in 1.0.58)"
17511 msgstr ""
17512
17513 #. type: =head2
17514 #: ../src/guestfs-actions.pod:6927
17515 msgid "guestfs_vfs_label"
17516 msgstr ""
17517
17518 #. type: verbatim
17519 #: ../src/guestfs-actions.pod:6929
17520 #, no-wrap
17521 msgid ""
17522 " char *\n"
17523 " guestfs_vfs_label (guestfs_h *g,\n"
17524 "                    const char *device);\n"
17525 "\n"
17526 msgstr ""
17527
17528 #. type: textblock
17529 #: ../src/guestfs-actions.pod:6933 ../fish/guestfish-actions.pod:4671
17530 msgid "This returns the filesystem label of the filesystem on C<device>."
17531 msgstr ""
17532
17533 #. type: textblock
17534 #: ../src/guestfs-actions.pod:6936 ../fish/guestfish-actions.pod:4674
17535 msgid "If the filesystem is unlabeled, this returns the empty string."
17536 msgstr ""
17537
17538 #. type: textblock
17539 #: ../src/guestfs-actions.pod:6938
17540 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6980
17545 msgid "(Added in 1.3.18)"
17546 msgstr ""
17547
17548 #. type: =head2
17549 #: ../src/guestfs-actions.pod:6945
17550 msgid "guestfs_vfs_type"
17551 msgstr ""
17552
17553 #. type: verbatim
17554 #: ../src/guestfs-actions.pod:6947
17555 #, no-wrap
17556 msgid ""
17557 " char *\n"
17558 " guestfs_vfs_type (guestfs_h *g,\n"
17559 "                   const char *device);\n"
17560 "\n"
17561 msgstr ""
17562
17563 #. type: textblock
17564 #: ../src/guestfs-actions.pod:6951 ../fish/guestfish-actions.pod:4682
17565 msgid ""
17566 "This command gets the filesystem type corresponding to the filesystem on "
17567 "C<device>."
17568 msgstr ""
17569
17570 #. type: textblock
17571 #: ../src/guestfs-actions.pod:6954 ../fish/guestfish-actions.pod:4685
17572 msgid ""
17573 "For most filesystems, the result is the name of the Linux VFS module which "
17574 "would be used to mount this filesystem if you mounted it without specifying "
17575 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17576 msgstr ""
17577
17578 #. type: =head2
17579 #: ../src/guestfs-actions.pod:6964
17580 msgid "guestfs_vfs_uuid"
17581 msgstr ""
17582
17583 #. type: verbatim
17584 #: ../src/guestfs-actions.pod:6966
17585 #, no-wrap
17586 msgid ""
17587 " char *\n"
17588 " guestfs_vfs_uuid (guestfs_h *g,\n"
17589 "                   const char *device);\n"
17590 "\n"
17591 msgstr ""
17592
17593 #. type: textblock
17594 #: ../src/guestfs-actions.pod:6970 ../fish/guestfish-actions.pod:4694
17595 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17596 msgstr ""
17597
17598 #. type: textblock
17599 #: ../src/guestfs-actions.pod:6973 ../fish/guestfish-actions.pod:4697
17600 msgid "If the filesystem does not have a UUID, this returns the empty string."
17601 msgstr ""
17602
17603 #. type: textblock
17604 #: ../src/guestfs-actions.pod:6975
17605 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
17606 msgstr ""
17607
17608 #. type: =head2
17609 #: ../src/guestfs-actions.pod:6982
17610 msgid "guestfs_vg_activate"
17611 msgstr ""
17612
17613 #. type: verbatim
17614 #: ../src/guestfs-actions.pod:6984
17615 #, no-wrap
17616 msgid ""
17617 " int\n"
17618 " guestfs_vg_activate (guestfs_h *g,\n"
17619 "                      int activate,\n"
17620 "                      char *const *volgroups);\n"
17621 "\n"
17622 msgstr ""
17623
17624 #. type: textblock
17625 #: ../src/guestfs-actions.pod:6989 ../fish/guestfish-actions.pod:4705
17626 msgid ""
17627 "This command activates or (if C<activate> is false) deactivates all logical "
17628 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
17629 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
17630 "deactivated, then those devices disappear."
17631 msgstr ""
17632
17633 #. type: textblock
17634 #: ../src/guestfs-actions.pod:6995 ../fish/guestfish-actions.pod:4711
17635 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17636 msgstr ""
17637
17638 #. type: textblock
17639 #: ../src/guestfs-actions.pod:6997 ../fish/guestfish-actions.pod:4713
17640 msgid ""
17641 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17642 "activated or deactivated."
17643 msgstr ""
17644
17645 #. type: =head2
17646 #: ../src/guestfs-actions.pod:7004
17647 msgid "guestfs_vg_activate_all"
17648 msgstr ""
17649
17650 #. type: verbatim
17651 #: ../src/guestfs-actions.pod:7006
17652 #, no-wrap
17653 msgid ""
17654 " int\n"
17655 " guestfs_vg_activate_all (guestfs_h *g,\n"
17656 "                          int activate);\n"
17657 "\n"
17658 msgstr ""
17659
17660 #. type: textblock
17661 #: ../src/guestfs-actions.pod:7010 ../fish/guestfish-actions.pod:4720
17662 msgid ""
17663 "This command activates or (if C<activate> is false) deactivates all logical "
17664 "volumes in all volume groups.  If activated, then they are made known to the "
17665 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
17666 "those devices disappear."
17667 msgstr ""
17668
17669 #. type: textblock
17670 #: ../src/guestfs-actions.pod:7016 ../fish/guestfish-actions.pod:4726
17671 msgid "This command is the same as running C<vgchange -a y|n>"
17672 msgstr ""
17673
17674 #. type: =head2
17675 #: ../src/guestfs-actions.pod:7022
17676 msgid "guestfs_vgcreate"
17677 msgstr ""
17678
17679 #. type: verbatim
17680 #: ../src/guestfs-actions.pod:7024
17681 #, no-wrap
17682 msgid ""
17683 " int\n"
17684 " guestfs_vgcreate (guestfs_h *g,\n"
17685 "                   const char *volgroup,\n"
17686 "                   char *const *physvols);\n"
17687 "\n"
17688 msgstr ""
17689
17690 #. type: textblock
17691 #: ../src/guestfs-actions.pod:7029 ../fish/guestfish-actions.pod:4732
17692 msgid ""
17693 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17694 "of physical volumes C<physvols>."
17695 msgstr ""
17696
17697 #. type: =head2
17698 #: ../src/guestfs-actions.pod:7036
17699 msgid "guestfs_vglvuuids"
17700 msgstr ""
17701
17702 #. type: verbatim
17703 #: ../src/guestfs-actions.pod:7038
17704 #, no-wrap
17705 msgid ""
17706 " char **\n"
17707 " guestfs_vglvuuids (guestfs_h *g,\n"
17708 "                    const char *vgname);\n"
17709 "\n"
17710 msgstr ""
17711
17712 #. type: textblock
17713 #: ../src/guestfs-actions.pod:7042 ../fish/guestfish-actions.pod:4739
17714 msgid ""
17715 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17716 "volumes created in this volume group."
17717 msgstr ""
17718
17719 #. type: textblock
17720 #: ../src/guestfs-actions.pod:7045
17721 msgid ""
17722 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
17723 "associate logical volumes and volume groups."
17724 msgstr ""
17725
17726 #. type: textblock
17727 #: ../src/guestfs-actions.pod:7048
17728 msgid "See also C<guestfs_vgpvuuids>."
17729 msgstr ""
17730
17731 #. type: =head2
17732 #: ../src/guestfs-actions.pod:7056
17733 msgid "guestfs_vgpvuuids"
17734 msgstr ""
17735
17736 #. type: verbatim
17737 #: ../src/guestfs-actions.pod:7058
17738 #, no-wrap
17739 msgid ""
17740 " char **\n"
17741 " guestfs_vgpvuuids (guestfs_h *g,\n"
17742 "                    const char *vgname);\n"
17743 "\n"
17744 msgstr ""
17745
17746 #. type: textblock
17747 #: ../src/guestfs-actions.pod:7062 ../fish/guestfish-actions.pod:4751
17748 msgid ""
17749 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17750 "volumes that this volume group resides on."
17751 msgstr ""
17752
17753 #. type: textblock
17754 #: ../src/guestfs-actions.pod:7065
17755 msgid ""
17756 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
17757 "associate physical volumes and volume groups."
17758 msgstr ""
17759
17760 #. type: textblock
17761 #: ../src/guestfs-actions.pod:7068
17762 msgid "See also C<guestfs_vglvuuids>."
17763 msgstr ""
17764
17765 #. type: =head2
17766 #: ../src/guestfs-actions.pod:7076
17767 msgid "guestfs_vgremove"
17768 msgstr ""
17769
17770 #. type: verbatim
17771 #: ../src/guestfs-actions.pod:7078
17772 #, no-wrap
17773 msgid ""
17774 " int\n"
17775 " guestfs_vgremove (guestfs_h *g,\n"
17776 "                   const char *vgname);\n"
17777 "\n"
17778 msgstr ""
17779
17780 #. type: textblock
17781 #: ../src/guestfs-actions.pod:7082 ../fish/guestfish-actions.pod:4763
17782 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17783 msgstr ""
17784
17785 #. type: textblock
17786 #: ../src/guestfs-actions.pod:7084 ../fish/guestfish-actions.pod:4765
17787 msgid ""
17788 "This also forcibly removes all logical volumes in the volume group (if any)."
17789 msgstr ""
17790
17791 #. type: =head2
17792 #: ../src/guestfs-actions.pod:7091
17793 msgid "guestfs_vgrename"
17794 msgstr ""
17795
17796 #. type: verbatim
17797 #: ../src/guestfs-actions.pod:7093
17798 #, no-wrap
17799 msgid ""
17800 " int\n"
17801 " guestfs_vgrename (guestfs_h *g,\n"
17802 "                   const char *volgroup,\n"
17803 "                   const char *newvolgroup);\n"
17804 "\n"
17805 msgstr ""
17806
17807 #. type: textblock
17808 #: ../src/guestfs-actions.pod:7098 ../fish/guestfish-actions.pod:4772
17809 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17810 msgstr ""
17811
17812 #. type: =head2
17813 #: ../src/guestfs-actions.pod:7104
17814 msgid "guestfs_vgs"
17815 msgstr ""
17816
17817 #. type: verbatim
17818 #: ../src/guestfs-actions.pod:7106
17819 #, no-wrap
17820 msgid ""
17821 " char **\n"
17822 " guestfs_vgs (guestfs_h *g);\n"
17823 "\n"
17824 msgstr ""
17825
17826 #. type: textblock
17827 #: ../src/guestfs-actions.pod:7109 ../fish/guestfish-actions.pod:4778
17828 msgid ""
17829 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17830 "> command."
17831 msgstr ""
17832
17833 #. type: textblock
17834 #: ../src/guestfs-actions.pod:7112 ../fish/guestfish-actions.pod:4781
17835 msgid ""
17836 "This returns a list of just the volume group names that were detected (eg. "
17837 "C<VolGroup00>)."
17838 msgstr ""
17839
17840 #. type: textblock
17841 #: ../src/guestfs-actions.pod:7115
17842 msgid "See also C<guestfs_vgs_full>."
17843 msgstr ""
17844
17845 #. type: =head2
17846 #: ../src/guestfs-actions.pod:7123
17847 msgid "guestfs_vgs_full"
17848 msgstr ""
17849
17850 #. type: verbatim
17851 #: ../src/guestfs-actions.pod:7125
17852 #, no-wrap
17853 msgid ""
17854 " struct guestfs_lvm_vg_list *\n"
17855 " guestfs_vgs_full (guestfs_h *g);\n"
17856 "\n"
17857 msgstr ""
17858
17859 #. type: textblock
17860 #: ../src/guestfs-actions.pod:7128 ../fish/guestfish-actions.pod:4790
17861 msgid ""
17862 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17863 "> command.  The \"full\" version includes all fields."
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../src/guestfs-actions.pod:7131
17868 msgid ""
17869 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
17870 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
17871 msgstr ""
17872
17873 #. type: =head2
17874 #: ../src/guestfs-actions.pod:7137
17875 msgid "guestfs_vgscan"
17876 msgstr ""
17877
17878 #. type: verbatim
17879 #: ../src/guestfs-actions.pod:7139
17880 #, no-wrap
17881 msgid ""
17882 " int\n"
17883 " guestfs_vgscan (guestfs_h *g);\n"
17884 "\n"
17885 msgstr ""
17886
17887 #. type: textblock
17888 #: ../src/guestfs-actions.pod:7142 ../fish/guestfish-actions.pod:4797
17889 msgid ""
17890 "This rescans all block devices and rebuilds the list of LVM physical "
17891 "volumes, volume groups and logical volumes."
17892 msgstr ""
17893
17894 #. type: =head2
17895 #: ../src/guestfs-actions.pod:7149
17896 msgid "guestfs_vguuid"
17897 msgstr ""
17898
17899 #. type: verbatim
17900 #: ../src/guestfs-actions.pod:7151
17901 #, no-wrap
17902 msgid ""
17903 " char *\n"
17904 " guestfs_vguuid (guestfs_h *g,\n"
17905 "                 const char *vgname);\n"
17906 "\n"
17907 msgstr ""
17908
17909 #. type: textblock
17910 #: ../src/guestfs-actions.pod:7155 ../fish/guestfish-actions.pod:4804
17911 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17912 msgstr ""
17913
17914 #. type: =head2
17915 #: ../src/guestfs-actions.pod:7162
17916 msgid "guestfs_wait_ready"
17917 msgstr ""
17918
17919 #. type: verbatim
17920 #: ../src/guestfs-actions.pod:7164
17921 #, no-wrap
17922 msgid ""
17923 " int\n"
17924 " guestfs_wait_ready (guestfs_h *g);\n"
17925 "\n"
17926 msgstr ""
17927
17928 #. type: textblock
17929 #: ../src/guestfs-actions.pod:7167
17930 msgid "This function is a no op."
17931 msgstr ""
17932
17933 #. type: textblock
17934 #: ../src/guestfs-actions.pod:7169
17935 msgid ""
17936 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
17937 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
17938 "is no longer necessary because C<guestfs_launch> now does the waiting."
17939 msgstr ""
17940
17941 #. type: textblock
17942 #: ../src/guestfs-actions.pod:7174
17943 msgid ""
17944 "If you see any calls to this function in code then you can just remove them, "
17945 "unless you want to retain compatibility with older versions of the API."
17946 msgstr ""
17947
17948 #. type: =head2
17949 #: ../src/guestfs-actions.pod:7182
17950 msgid "guestfs_wc_c"
17951 msgstr ""
17952
17953 #. type: verbatim
17954 #: ../src/guestfs-actions.pod:7184
17955 #, no-wrap
17956 msgid ""
17957 " int\n"
17958 " guestfs_wc_c (guestfs_h *g,\n"
17959 "               const char *path);\n"
17960 "\n"
17961 msgstr ""
17962
17963 #. type: textblock
17964 #: ../src/guestfs-actions.pod:7188 ../fish/guestfish-actions.pod:4810
17965 msgid ""
17966 "This command counts the characters in a file, using the C<wc -c> external "
17967 "command."
17968 msgstr ""
17969
17970 #. type: =head2
17971 #: ../src/guestfs-actions.pod:7195
17972 msgid "guestfs_wc_l"
17973 msgstr ""
17974
17975 #. type: verbatim
17976 #: ../src/guestfs-actions.pod:7197
17977 #, no-wrap
17978 msgid ""
17979 " int\n"
17980 " guestfs_wc_l (guestfs_h *g,\n"
17981 "               const char *path);\n"
17982 "\n"
17983 msgstr ""
17984
17985 #. type: textblock
17986 #: ../src/guestfs-actions.pod:7201 ../fish/guestfish-actions.pod:4817
17987 msgid ""
17988 "This command counts the lines in a file, using the C<wc -l> external command."
17989 msgstr ""
17990
17991 #. type: =head2
17992 #: ../src/guestfs-actions.pod:7208
17993 msgid "guestfs_wc_w"
17994 msgstr ""
17995
17996 #. type: verbatim
17997 #: ../src/guestfs-actions.pod:7210
17998 #, no-wrap
17999 msgid ""
18000 " int\n"
18001 " guestfs_wc_w (guestfs_h *g,\n"
18002 "               const char *path);\n"
18003 "\n"
18004 msgstr ""
18005
18006 #. type: textblock
18007 #: ../src/guestfs-actions.pod:7214 ../fish/guestfish-actions.pod:4824
18008 msgid ""
18009 "This command counts the words in a file, using the C<wc -w> external command."
18010 msgstr ""
18011
18012 #. type: =head2
18013 #: ../src/guestfs-actions.pod:7221
18014 msgid "guestfs_write"
18015 msgstr ""
18016
18017 #. type: verbatim
18018 #: ../src/guestfs-actions.pod:7223
18019 #, no-wrap
18020 msgid ""
18021 " int\n"
18022 " guestfs_write (guestfs_h *g,\n"
18023 "                const char *path,\n"
18024 "                const char *content,\n"
18025 "                size_t content_size);\n"
18026 "\n"
18027 msgstr ""
18028
18029 #. type: textblock
18030 #: ../src/guestfs-actions.pod:7229 ../fish/guestfish-actions.pod:4831
18031 msgid ""
18032 "This call creates a file called C<path>.  The content of the file is the "
18033 "string C<content> (which can contain any 8 bit data)."
18034 msgstr ""
18035
18036 #. type: =head2
18037 #: ../src/guestfs-actions.pod:7239
18038 msgid "guestfs_write_file"
18039 msgstr ""
18040
18041 #. type: verbatim
18042 #: ../src/guestfs-actions.pod:7241
18043 #, no-wrap
18044 msgid ""
18045 " int\n"
18046 " guestfs_write_file (guestfs_h *g,\n"
18047 "                     const char *path,\n"
18048 "                     const char *content,\n"
18049 "                     int size);\n"
18050 "\n"
18051 msgstr ""
18052
18053 #. type: textblock
18054 #: ../src/guestfs-actions.pod:7247 ../fish/guestfish-actions.pod:4841
18055 msgid ""
18056 "This call creates a file called C<path>.  The contents of the file is the "
18057 "string C<content> (which can contain any 8 bit data), with length C<size>."
18058 msgstr ""
18059
18060 #. type: textblock
18061 #: ../src/guestfs-actions.pod:7251 ../fish/guestfish-actions.pod:4845
18062 msgid ""
18063 "As a special case, if C<size> is C<0> then the length is calculated using "
18064 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18065 msgstr ""
18066
18067 #. type: textblock
18068 #: ../src/guestfs-actions.pod:7255 ../fish/guestfish-actions.pod:4849
18069 msgid ""
18070 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18071 "I<not> work, even if the length is specified."
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../src/guestfs-actions.pod:7263 ../fish/guestfish-actions.pod:4855
18076 msgid ""
18077 "This function is deprecated.  In new code, use the C<write> call instead."
18078 msgstr ""
18079
18080 #. type: =head2
18081 #: ../src/guestfs-actions.pod:7272
18082 msgid "guestfs_zegrep"
18083 msgstr ""
18084
18085 #. type: verbatim
18086 #: ../src/guestfs-actions.pod:7274
18087 #, no-wrap
18088 msgid ""
18089 " char **\n"
18090 " guestfs_zegrep (guestfs_h *g,\n"
18091 "                 const char *regex,\n"
18092 "                 const char *path);\n"
18093 "\n"
18094 msgstr ""
18095
18096 #. type: textblock
18097 #: ../src/guestfs-actions.pod:7279 ../fish/guestfish-actions.pod:4866
18098 msgid ""
18099 "This calls the external C<zegrep> program and returns the matching lines."
18100 msgstr ""
18101
18102 #. type: =head2
18103 #: ../src/guestfs-actions.pod:7291
18104 msgid "guestfs_zegrepi"
18105 msgstr ""
18106
18107 #. type: verbatim
18108 #: ../src/guestfs-actions.pod:7293
18109 #, no-wrap
18110 msgid ""
18111 " char **\n"
18112 " guestfs_zegrepi (guestfs_h *g,\n"
18113 "                  const char *regex,\n"
18114 "                  const char *path);\n"
18115 "\n"
18116 msgstr ""
18117
18118 #. type: textblock
18119 #: ../src/guestfs-actions.pod:7298 ../fish/guestfish-actions.pod:4876
18120 msgid ""
18121 "This calls the external C<zegrep -i> program and returns the matching lines."
18122 msgstr ""
18123
18124 #. type: =head2
18125 #: ../src/guestfs-actions.pod:7310
18126 msgid "guestfs_zero"
18127 msgstr ""
18128
18129 #. type: verbatim
18130 #: ../src/guestfs-actions.pod:7312
18131 #, no-wrap
18132 msgid ""
18133 " int\n"
18134 " guestfs_zero (guestfs_h *g,\n"
18135 "               const char *device);\n"
18136 "\n"
18137 msgstr ""
18138
18139 #. type: textblock
18140 #: ../src/guestfs-actions.pod:7316 ../fish/guestfish-actions.pod:4886
18141 msgid "This command writes zeroes over the first few blocks of C<device>."
18142 msgstr ""
18143
18144 #. type: textblock
18145 #: ../src/guestfs-actions.pod:7318 ../fish/guestfish-actions.pod:4888
18146 msgid ""
18147 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18148 "securely wipe the device).  It should be sufficient to remove any partition "
18149 "tables, filesystem superblocks and so on."
18150 msgstr ""
18151
18152 #. type: textblock
18153 #: ../src/guestfs-actions.pod:7322
18154 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
18155 msgstr ""
18156
18157 #. type: =head2
18158 #: ../src/guestfs-actions.pod:7333
18159 msgid "guestfs_zero_device"
18160 msgstr ""
18161
18162 #. type: verbatim
18163 #: ../src/guestfs-actions.pod:7335
18164 #, no-wrap
18165 msgid ""
18166 " int\n"
18167 " guestfs_zero_device (guestfs_h *g,\n"
18168 "                      const char *device);\n"
18169 "\n"
18170 msgstr ""
18171
18172 #. type: textblock
18173 #: ../src/guestfs-actions.pod:7339
18174 msgid ""
18175 "This command writes zeroes over the entire C<device>.  Compare with "
18176 "C<guestfs_zero> which just zeroes the first few blocks of a device."
18177 msgstr ""
18178
18179 #. type: textblock
18180 #: ../src/guestfs-actions.pod:7353
18181 msgid "(Added in 1.3.1)"
18182 msgstr ""
18183
18184 #. type: =head2
18185 #: ../src/guestfs-actions.pod:7355
18186 msgid "guestfs_zerofree"
18187 msgstr ""
18188
18189 #. type: verbatim
18190 #: ../src/guestfs-actions.pod:7357
18191 #, no-wrap
18192 msgid ""
18193 " int\n"
18194 " guestfs_zerofree (guestfs_h *g,\n"
18195 "                   const char *device);\n"
18196 "\n"
18197 msgstr ""
18198
18199 #. type: textblock
18200 #: ../src/guestfs-actions.pod:7361 ../fish/guestfish-actions.pod:4909
18201 msgid ""
18202 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18203 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18204 "possible to compress the filesystem more effectively."
18205 msgstr ""
18206
18207 #. type: textblock
18208 #: ../src/guestfs-actions.pod:7366 ../fish/guestfish-actions.pod:4914
18209 msgid "You should B<not> run this program if the filesystem is mounted."
18210 msgstr ""
18211
18212 #. type: textblock
18213 #: ../src/guestfs-actions.pod:7369 ../fish/guestfish-actions.pod:4917
18214 msgid ""
18215 "It is possible that using this program can damage the filesystem or data on "
18216 "the filesystem."
18217 msgstr ""
18218
18219 #. type: =head2
18220 #: ../src/guestfs-actions.pod:7376
18221 msgid "guestfs_zfgrep"
18222 msgstr ""
18223
18224 #. type: verbatim
18225 #: ../src/guestfs-actions.pod:7378
18226 #, no-wrap
18227 msgid ""
18228 " char **\n"
18229 " guestfs_zfgrep (guestfs_h *g,\n"
18230 "                 const char *pattern,\n"
18231 "                 const char *path);\n"
18232 "\n"
18233 msgstr ""
18234
18235 #. type: textblock
18236 #: ../src/guestfs-actions.pod:7383 ../fish/guestfish-actions.pod:4924
18237 msgid ""
18238 "This calls the external C<zfgrep> program and returns the matching lines."
18239 msgstr ""
18240
18241 #. type: =head2
18242 #: ../src/guestfs-actions.pod:7395
18243 msgid "guestfs_zfgrepi"
18244 msgstr ""
18245
18246 #. type: verbatim
18247 #: ../src/guestfs-actions.pod:7397
18248 #, no-wrap
18249 msgid ""
18250 " char **\n"
18251 " guestfs_zfgrepi (guestfs_h *g,\n"
18252 "                  const char *pattern,\n"
18253 "                  const char *path);\n"
18254 "\n"
18255 msgstr ""
18256
18257 #. type: textblock
18258 #: ../src/guestfs-actions.pod:7402 ../fish/guestfish-actions.pod:4934
18259 msgid ""
18260 "This calls the external C<zfgrep -i> program and returns the matching lines."
18261 msgstr ""
18262
18263 #. type: =head2
18264 #: ../src/guestfs-actions.pod:7414
18265 msgid "guestfs_zfile"
18266 msgstr ""
18267
18268 #. type: verbatim
18269 #: ../src/guestfs-actions.pod:7416
18270 #, no-wrap
18271 msgid ""
18272 " char *\n"
18273 " guestfs_zfile (guestfs_h *g,\n"
18274 "                const char *meth,\n"
18275 "                const char *path);\n"
18276 "\n"
18277 msgstr ""
18278
18279 #. type: textblock
18280 #: ../src/guestfs-actions.pod:7421 ../fish/guestfish-actions.pod:4944
18281 msgid ""
18282 "This command runs C<file> after first decompressing C<path> using C<method>."
18283 msgstr ""
18284
18285 #. type: textblock
18286 #: ../src/guestfs-actions.pod:7424 ../fish/guestfish-actions.pod:4947
18287 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18288 msgstr ""
18289
18290 #. type: textblock
18291 #: ../src/guestfs-actions.pod:7426
18292 msgid ""
18293 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
18294 "files."
18295 msgstr ""
18296
18297 #. type: textblock
18298 #: ../src/guestfs-actions.pod:7432 ../fish/guestfish-actions.pod:4952
18299 msgid ""
18300 "This function is deprecated.  In new code, use the C<file> call instead."
18301 msgstr ""
18302
18303 #. type: =head2
18304 #: ../src/guestfs-actions.pod:7441
18305 msgid "guestfs_zgrep"
18306 msgstr ""
18307
18308 #. type: verbatim
18309 #: ../src/guestfs-actions.pod:7443
18310 #, no-wrap
18311 msgid ""
18312 " char **\n"
18313 " guestfs_zgrep (guestfs_h *g,\n"
18314 "                const char *regex,\n"
18315 "                const char *path);\n"
18316 "\n"
18317 msgstr ""
18318
18319 #. type: textblock
18320 #: ../src/guestfs-actions.pod:7448 ../fish/guestfish-actions.pod:4963
18321 msgid ""
18322 "This calls the external C<zgrep> program and returns the matching lines."
18323 msgstr ""
18324
18325 #. type: =head2
18326 #: ../src/guestfs-actions.pod:7460
18327 msgid "guestfs_zgrepi"
18328 msgstr ""
18329
18330 #. type: verbatim
18331 #: ../src/guestfs-actions.pod:7462
18332 #, no-wrap
18333 msgid ""
18334 " char **\n"
18335 " guestfs_zgrepi (guestfs_h *g,\n"
18336 "                 const char *regex,\n"
18337 "                 const char *path);\n"
18338 "\n"
18339 msgstr ""
18340
18341 #. type: textblock
18342 #: ../src/guestfs-actions.pod:7467 ../fish/guestfish-actions.pod:4973
18343 msgid ""
18344 "This calls the external C<zgrep -i> program and returns the matching lines."
18345 msgstr ""
18346
18347 #. type: =item
18348 #: ../src/guestfs-availability.pod:3
18349 msgid "B<augeas>"
18350 msgstr ""
18351
18352 #. type: textblock
18353 #: ../src/guestfs-availability.pod:5
18354 msgid ""
18355 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
18356 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
18357 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
18358 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
18359 "L</guestfs_aug_save> L</guestfs_aug_set>"
18360 msgstr ""
18361
18362 #. type: =item
18363 #: ../src/guestfs-availability.pod:21
18364 msgid "B<inotify>"
18365 msgstr ""
18366
18367 #. type: textblock
18368 #: ../src/guestfs-availability.pod:23
18369 msgid ""
18370 "The following functions: L</guestfs_inotify_add_watch> L</"
18371 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
18372 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
18373 msgstr ""
18374
18375 #. type: =item
18376 #: ../src/guestfs-availability.pod:31
18377 msgid "B<linuxfsuuid>"
18378 msgstr ""
18379
18380 #. type: textblock
18381 #: ../src/guestfs-availability.pod:33
18382 msgid ""
18383 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
18384 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
18385 msgstr ""
18386
18387 #. type: =item
18388 #: ../src/guestfs-availability.pod:40
18389 msgid "B<linuxmodules>"
18390 msgstr ""
18391
18392 #. type: textblock
18393 #: ../src/guestfs-availability.pod:42
18394 msgid "The following functions: L</guestfs_modprobe>"
18395 msgstr ""
18396
18397 #. type: =item
18398 #: ../src/guestfs-availability.pod:45
18399 msgid "B<linuxxattrs>"
18400 msgstr ""
18401
18402 #. type: textblock
18403 #: ../src/guestfs-availability.pod:47
18404 msgid ""
18405 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
18406 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
18407 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
18408 "guestfs_setxattr>"
18409 msgstr ""
18410
18411 #. type: =item
18412 #: ../src/guestfs-availability.pod:58
18413 msgid "B<luks>"
18414 msgstr ""
18415
18416 #. type: textblock
18417 #: ../src/guestfs-availability.pod:60
18418 msgid ""
18419 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
18420 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
18421 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
18422 msgstr ""
18423
18424 #. type: =item
18425 #: ../src/guestfs-availability.pod:69
18426 msgid "B<lvm2>"
18427 msgstr ""
18428
18429 #. type: textblock
18430 #: ../src/guestfs-availability.pod:71
18431 msgid ""
18432 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
18433 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
18434 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
18435 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
18436 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
18437 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
18438 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
18439 msgstr ""
18440
18441 #. type: =item
18442 #: ../src/guestfs-availability.pod:94
18443 msgid "B<mknod>"
18444 msgstr ""
18445
18446 #. type: textblock
18447 #: ../src/guestfs-availability.pod:96
18448 msgid ""
18449 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
18450 "guestfs_mknod_b> L</guestfs_mknod_c>"
18451 msgstr ""
18452
18453 #. type: =item
18454 #: ../src/guestfs-availability.pod:102
18455 msgid "B<ntfs3g>"
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../src/guestfs-availability.pod:104
18460 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
18461 msgstr ""
18462
18463 #. type: =item
18464 #: ../src/guestfs-availability.pod:107
18465 msgid "B<ntfsprogs>"
18466 msgstr ""
18467
18468 #. type: textblock
18469 #: ../src/guestfs-availability.pod:109
18470 msgid ""
18471 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
18472 msgstr ""
18473
18474 #. type: =item
18475 #: ../src/guestfs-availability.pod:113
18476 msgid "B<realpath>"
18477 msgstr ""
18478
18479 #. type: textblock
18480 #: ../src/guestfs-availability.pod:115
18481 msgid "The following functions: L</guestfs_realpath>"
18482 msgstr ""
18483
18484 #. type: =item
18485 #: ../src/guestfs-availability.pod:118
18486 msgid "B<scrub>"
18487 msgstr ""
18488
18489 #. type: textblock
18490 #: ../src/guestfs-availability.pod:120
18491 msgid ""
18492 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
18493 "guestfs_scrub_freespace>"
18494 msgstr ""
18495
18496 #. type: =item
18497 #: ../src/guestfs-availability.pod:125
18498 msgid "B<selinux>"
18499 msgstr ""
18500
18501 #. type: textblock
18502 #: ../src/guestfs-availability.pod:127
18503 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
18504 msgstr ""
18505
18506 #. type: =item
18507 #: ../src/guestfs-availability.pod:131
18508 msgid "B<xz>"
18509 msgstr ""
18510
18511 #. type: textblock
18512 #: ../src/guestfs-availability.pod:133
18513 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
18514 msgstr ""
18515
18516 #. type: =item
18517 #: ../src/guestfs-availability.pod:137
18518 msgid "B<zerofree>"
18519 msgstr ""
18520
18521 #. type: textblock
18522 #: ../src/guestfs-availability.pod:139
18523 msgid "The following functions: L</guestfs_zerofree>"
18524 msgstr ""
18525
18526 #. type: =head2
18527 #: ../src/guestfs-structs.pod:1
18528 msgid "guestfs_int_bool"
18529 msgstr ""
18530
18531 #. type: verbatim
18532 #: ../src/guestfs-structs.pod:3
18533 #, no-wrap
18534 msgid ""
18535 " struct guestfs_int_bool {\n"
18536 "   int32_t i;\n"
18537 "   int32_t b;\n"
18538 " };\n"
18539 " \n"
18540 msgstr ""
18541
18542 #. type: verbatim
18543 #: ../src/guestfs-structs.pod:8
18544 #, no-wrap
18545 msgid ""
18546 " struct guestfs_int_bool_list {\n"
18547 "   uint32_t len; /* Number of elements in list. */\n"
18548 "   struct guestfs_int_bool *val; /* Elements. */\n"
18549 " };\n"
18550 " \n"
18551 msgstr ""
18552
18553 #. type: verbatim
18554 #: ../src/guestfs-structs.pod:13
18555 #, no-wrap
18556 msgid ""
18557 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
18558 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
18559 "\n"
18560 msgstr ""
18561
18562 #. type: =head2
18563 #: ../src/guestfs-structs.pod:16
18564 msgid "guestfs_lvm_pv"
18565 msgstr ""
18566
18567 #. type: verbatim
18568 #: ../src/guestfs-structs.pod:18
18569 #, no-wrap
18570 msgid ""
18571 " struct guestfs_lvm_pv {\n"
18572 "   char *pv_name;\n"
18573 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18574 "   char pv_uuid[32];\n"
18575 "   char *pv_fmt;\n"
18576 "   uint64_t pv_size;\n"
18577 "   uint64_t dev_size;\n"
18578 "   uint64_t pv_free;\n"
18579 "   uint64_t pv_used;\n"
18580 "   char *pv_attr;\n"
18581 "   int64_t pv_pe_count;\n"
18582 "   int64_t pv_pe_alloc_count;\n"
18583 "   char *pv_tags;\n"
18584 "   uint64_t pe_start;\n"
18585 "   int64_t pv_mda_count;\n"
18586 "   uint64_t pv_mda_free;\n"
18587 " };\n"
18588 " \n"
18589 msgstr ""
18590
18591 #. type: verbatim
18592 #: ../src/guestfs-structs.pod:36
18593 #, no-wrap
18594 msgid ""
18595 " struct guestfs_lvm_pv_list {\n"
18596 "   uint32_t len; /* Number of elements in list. */\n"
18597 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
18598 " };\n"
18599 " \n"
18600 msgstr ""
18601
18602 #. type: verbatim
18603 #: ../src/guestfs-structs.pod:41
18604 #, no-wrap
18605 msgid ""
18606 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
18607 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
18608 "\n"
18609 msgstr ""
18610
18611 #. type: =head2
18612 #: ../src/guestfs-structs.pod:44
18613 msgid "guestfs_lvm_vg"
18614 msgstr ""
18615
18616 #. type: verbatim
18617 #: ../src/guestfs-structs.pod:46
18618 #, no-wrap
18619 msgid ""
18620 " struct guestfs_lvm_vg {\n"
18621 "   char *vg_name;\n"
18622 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18623 "   char vg_uuid[32];\n"
18624 "   char *vg_fmt;\n"
18625 "   char *vg_attr;\n"
18626 "   uint64_t vg_size;\n"
18627 "   uint64_t vg_free;\n"
18628 "   char *vg_sysid;\n"
18629 "   uint64_t vg_extent_size;\n"
18630 "   int64_t vg_extent_count;\n"
18631 "   int64_t vg_free_count;\n"
18632 "   int64_t max_lv;\n"
18633 "   int64_t max_pv;\n"
18634 "   int64_t pv_count;\n"
18635 "   int64_t lv_count;\n"
18636 "   int64_t snap_count;\n"
18637 "   int64_t vg_seqno;\n"
18638 "   char *vg_tags;\n"
18639 "   int64_t vg_mda_count;\n"
18640 "   uint64_t vg_mda_free;\n"
18641 " };\n"
18642 " \n"
18643 msgstr ""
18644
18645 #. type: verbatim
18646 #: ../src/guestfs-structs.pod:69
18647 #, no-wrap
18648 msgid ""
18649 " struct guestfs_lvm_vg_list {\n"
18650 "   uint32_t len; /* Number of elements in list. */\n"
18651 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
18652 " };\n"
18653 " \n"
18654 msgstr ""
18655
18656 #. type: verbatim
18657 #: ../src/guestfs-structs.pod:74
18658 #, no-wrap
18659 msgid ""
18660 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
18661 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
18662 "\n"
18663 msgstr ""
18664
18665 #. type: =head2
18666 #: ../src/guestfs-structs.pod:77
18667 msgid "guestfs_lvm_lv"
18668 msgstr ""
18669
18670 #. type: verbatim
18671 #: ../src/guestfs-structs.pod:79
18672 #, no-wrap
18673 msgid ""
18674 " struct guestfs_lvm_lv {\n"
18675 "   char *lv_name;\n"
18676 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18677 "   char lv_uuid[32];\n"
18678 "   char *lv_attr;\n"
18679 "   int64_t lv_major;\n"
18680 "   int64_t lv_minor;\n"
18681 "   int64_t lv_kernel_major;\n"
18682 "   int64_t lv_kernel_minor;\n"
18683 "   uint64_t lv_size;\n"
18684 "   int64_t seg_count;\n"
18685 "   char *origin;\n"
18686 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18687 "   float snap_percent;\n"
18688 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18689 "   float copy_percent;\n"
18690 "   char *move_pv;\n"
18691 "   char *lv_tags;\n"
18692 "   char *mirror_log;\n"
18693 "   char *modules;\n"
18694 " };\n"
18695 " \n"
18696 msgstr ""
18697
18698 #. type: verbatim
18699 #: ../src/guestfs-structs.pod:101
18700 #, no-wrap
18701 msgid ""
18702 " struct guestfs_lvm_lv_list {\n"
18703 "   uint32_t len; /* Number of elements in list. */\n"
18704 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
18705 " };\n"
18706 " \n"
18707 msgstr ""
18708
18709 #. type: verbatim
18710 #: ../src/guestfs-structs.pod:106
18711 #, no-wrap
18712 msgid ""
18713 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
18714 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
18715 "\n"
18716 msgstr ""
18717
18718 #. type: verbatim
18719 #: ../src/guestfs-structs.pod:111
18720 #, no-wrap
18721 msgid ""
18722 " struct guestfs_stat {\n"
18723 "   int64_t dev;\n"
18724 "   int64_t ino;\n"
18725 "   int64_t mode;\n"
18726 "   int64_t nlink;\n"
18727 "   int64_t uid;\n"
18728 "   int64_t gid;\n"
18729 "   int64_t rdev;\n"
18730 "   int64_t size;\n"
18731 "   int64_t blksize;\n"
18732 "   int64_t blocks;\n"
18733 "   int64_t atime;\n"
18734 "   int64_t mtime;\n"
18735 "   int64_t ctime;\n"
18736 " };\n"
18737 " \n"
18738 msgstr ""
18739
18740 #. type: verbatim
18741 #: ../src/guestfs-structs.pod:127
18742 #, no-wrap
18743 msgid ""
18744 " struct guestfs_stat_list {\n"
18745 "   uint32_t len; /* Number of elements in list. */\n"
18746 "   struct guestfs_stat *val; /* Elements. */\n"
18747 " };\n"
18748 " \n"
18749 msgstr ""
18750
18751 #. type: verbatim
18752 #: ../src/guestfs-structs.pod:132
18753 #, no-wrap
18754 msgid ""
18755 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
18756 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
18757 "\n"
18758 msgstr ""
18759
18760 #. type: verbatim
18761 #: ../src/guestfs-structs.pod:137
18762 #, no-wrap
18763 msgid ""
18764 " struct guestfs_statvfs {\n"
18765 "   int64_t bsize;\n"
18766 "   int64_t frsize;\n"
18767 "   int64_t blocks;\n"
18768 "   int64_t bfree;\n"
18769 "   int64_t bavail;\n"
18770 "   int64_t files;\n"
18771 "   int64_t ffree;\n"
18772 "   int64_t favail;\n"
18773 "   int64_t fsid;\n"
18774 "   int64_t flag;\n"
18775 "   int64_t namemax;\n"
18776 " };\n"
18777 " \n"
18778 msgstr ""
18779
18780 #. type: verbatim
18781 #: ../src/guestfs-structs.pod:151
18782 #, no-wrap
18783 msgid ""
18784 " struct guestfs_statvfs_list {\n"
18785 "   uint32_t len; /* Number of elements in list. */\n"
18786 "   struct guestfs_statvfs *val; /* Elements. */\n"
18787 " };\n"
18788 " \n"
18789 msgstr ""
18790
18791 #. type: verbatim
18792 #: ../src/guestfs-structs.pod:156
18793 #, no-wrap
18794 msgid ""
18795 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
18796 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
18797 "\n"
18798 msgstr ""
18799
18800 #. type: =head2
18801 #: ../src/guestfs-structs.pod:159
18802 msgid "guestfs_dirent"
18803 msgstr ""
18804
18805 #. type: verbatim
18806 #: ../src/guestfs-structs.pod:161
18807 #, no-wrap
18808 msgid ""
18809 " struct guestfs_dirent {\n"
18810 "   int64_t ino;\n"
18811 "   char ftyp;\n"
18812 "   char *name;\n"
18813 " };\n"
18814 " \n"
18815 msgstr ""
18816
18817 #. type: verbatim
18818 #: ../src/guestfs-structs.pod:167
18819 #, no-wrap
18820 msgid ""
18821 " struct guestfs_dirent_list {\n"
18822 "   uint32_t len; /* Number of elements in list. */\n"
18823 "   struct guestfs_dirent *val; /* Elements. */\n"
18824 " };\n"
18825 " \n"
18826 msgstr ""
18827
18828 #. type: verbatim
18829 #: ../src/guestfs-structs.pod:172
18830 #, no-wrap
18831 msgid ""
18832 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
18833 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
18834 "\n"
18835 msgstr ""
18836
18837 #. type: verbatim
18838 #: ../src/guestfs-structs.pod:177
18839 #, no-wrap
18840 msgid ""
18841 " struct guestfs_version {\n"
18842 "   int64_t major;\n"
18843 "   int64_t minor;\n"
18844 "   int64_t release;\n"
18845 "   char *extra;\n"
18846 " };\n"
18847 " \n"
18848 msgstr ""
18849
18850 #. type: verbatim
18851 #: ../src/guestfs-structs.pod:184
18852 #, no-wrap
18853 msgid ""
18854 " struct guestfs_version_list {\n"
18855 "   uint32_t len; /* Number of elements in list. */\n"
18856 "   struct guestfs_version *val; /* Elements. */\n"
18857 " };\n"
18858 " \n"
18859 msgstr ""
18860
18861 #. type: verbatim
18862 #: ../src/guestfs-structs.pod:189
18863 #, no-wrap
18864 msgid ""
18865 " void guestfs_free_version (struct guestfs_free_version *);\n"
18866 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
18867 "\n"
18868 msgstr ""
18869
18870 #. type: =head2
18871 #: ../src/guestfs-structs.pod:192
18872 msgid "guestfs_xattr"
18873 msgstr ""
18874
18875 #. type: verbatim
18876 #: ../src/guestfs-structs.pod:194
18877 #, no-wrap
18878 msgid ""
18879 " struct guestfs_xattr {\n"
18880 "   char *attrname;\n"
18881 "   /* The next two fields describe a byte array. */\n"
18882 "   uint32_t attrval_len;\n"
18883 "   char *attrval;\n"
18884 " };\n"
18885 " \n"
18886 msgstr ""
18887
18888 #. type: verbatim
18889 #: ../src/guestfs-structs.pod:201
18890 #, no-wrap
18891 msgid ""
18892 " struct guestfs_xattr_list {\n"
18893 "   uint32_t len; /* Number of elements in list. */\n"
18894 "   struct guestfs_xattr *val; /* Elements. */\n"
18895 " };\n"
18896 " \n"
18897 msgstr ""
18898
18899 #. type: verbatim
18900 #: ../src/guestfs-structs.pod:206
18901 #, no-wrap
18902 msgid ""
18903 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
18904 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
18905 "\n"
18906 msgstr ""
18907
18908 #. type: =head2
18909 #: ../src/guestfs-structs.pod:209
18910 msgid "guestfs_inotify_event"
18911 msgstr ""
18912
18913 #. type: verbatim
18914 #: ../src/guestfs-structs.pod:211
18915 #, no-wrap
18916 msgid ""
18917 " struct guestfs_inotify_event {\n"
18918 "   int64_t in_wd;\n"
18919 "   uint32_t in_mask;\n"
18920 "   uint32_t in_cookie;\n"
18921 "   char *in_name;\n"
18922 " };\n"
18923 " \n"
18924 msgstr ""
18925
18926 #. type: verbatim
18927 #: ../src/guestfs-structs.pod:218
18928 #, no-wrap
18929 msgid ""
18930 " struct guestfs_inotify_event_list {\n"
18931 "   uint32_t len; /* Number of elements in list. */\n"
18932 "   struct guestfs_inotify_event *val; /* Elements. */\n"
18933 " };\n"
18934 " \n"
18935 msgstr ""
18936
18937 #. type: verbatim
18938 #: ../src/guestfs-structs.pod:223
18939 #, no-wrap
18940 msgid ""
18941 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
18942 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
18943 "\n"
18944 msgstr ""
18945
18946 #. type: =head2
18947 #: ../src/guestfs-structs.pod:226
18948 msgid "guestfs_partition"
18949 msgstr ""
18950
18951 #. type: verbatim
18952 #: ../src/guestfs-structs.pod:228
18953 #, no-wrap
18954 msgid ""
18955 " struct guestfs_partition {\n"
18956 "   int32_t part_num;\n"
18957 "   uint64_t part_start;\n"
18958 "   uint64_t part_end;\n"
18959 "   uint64_t part_size;\n"
18960 " };\n"
18961 " \n"
18962 msgstr ""
18963
18964 #. type: verbatim
18965 #: ../src/guestfs-structs.pod:235
18966 #, no-wrap
18967 msgid ""
18968 " struct guestfs_partition_list {\n"
18969 "   uint32_t len; /* Number of elements in list. */\n"
18970 "   struct guestfs_partition *val; /* Elements. */\n"
18971 " };\n"
18972 " \n"
18973 msgstr ""
18974
18975 #. type: verbatim
18976 #: ../src/guestfs-structs.pod:240
18977 #, no-wrap
18978 msgid ""
18979 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
18980 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
18981 "\n"
18982 msgstr ""
18983
18984 #. type: =head2
18985 #: ../src/guestfs-structs.pod:243
18986 msgid "guestfs_application"
18987 msgstr ""
18988
18989 #. type: verbatim
18990 #: ../src/guestfs-structs.pod:245
18991 #, no-wrap
18992 msgid ""
18993 " struct guestfs_application {\n"
18994 "   char *app_name;\n"
18995 "   char *app_display_name;\n"
18996 "   int32_t app_epoch;\n"
18997 "   char *app_version;\n"
18998 "   char *app_release;\n"
18999 "   char *app_install_path;\n"
19000 "   char *app_trans_path;\n"
19001 "   char *app_publisher;\n"
19002 "   char *app_url;\n"
19003 "   char *app_source_package;\n"
19004 "   char *app_summary;\n"
19005 "   char *app_description;\n"
19006 " };\n"
19007 " \n"
19008 msgstr ""
19009
19010 #. type: verbatim
19011 #: ../src/guestfs-structs.pod:260
19012 #, no-wrap
19013 msgid ""
19014 " struct guestfs_application_list {\n"
19015 "   uint32_t len; /* Number of elements in list. */\n"
19016 "   struct guestfs_application *val; /* Elements. */\n"
19017 " };\n"
19018 " \n"
19019 msgstr ""
19020
19021 #. type: verbatim
19022 #: ../src/guestfs-structs.pod:265
19023 #, no-wrap
19024 msgid ""
19025 " void guestfs_free_application (struct guestfs_free_application *);\n"
19026 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
19027 "\n"
19028 msgstr ""
19029
19030 #. type: textblock
19031 #: ../fish/guestfish.pod:5
19032 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19033 msgstr ""
19034
19035 #. type: verbatim
19036 #: ../fish/guestfish.pod:9
19037 #, no-wrap
19038 msgid ""
19039 " guestfish [--options] [commands]\n"
19040 "\n"
19041 msgstr ""
19042
19043 #. type: verbatim
19044 #: ../fish/guestfish.pod:11
19045 #, no-wrap
19046 msgid ""
19047 " guestfish\n"
19048 "\n"
19049 msgstr ""
19050
19051 #. type: verbatim
19052 #: ../fish/guestfish.pod:13
19053 #, no-wrap
19054 msgid ""
19055 " guestfish [--ro|--rw] -a disk.img\n"
19056 "\n"
19057 msgstr ""
19058
19059 #. type: verbatim
19060 #: ../fish/guestfish.pod:15
19061 #, no-wrap
19062 msgid ""
19063 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19064 "\n"
19065 msgstr ""
19066
19067 #. type: verbatim
19068 #: ../fish/guestfish.pod:17
19069 #, no-wrap
19070 msgid ""
19071 " guestfish -d libvirt-domain\n"
19072 "\n"
19073 msgstr ""
19074
19075 #. type: verbatim
19076 #: ../fish/guestfish.pod:19
19077 #, no-wrap
19078 msgid ""
19079 " guestfish [--ro|--rw] -a disk.img -i\n"
19080 "\n"
19081 msgstr ""
19082
19083 #. type: verbatim
19084 #: ../fish/guestfish.pod:21
19085 #, no-wrap
19086 msgid ""
19087 " guestfish -d libvirt-domain -i\n"
19088 "\n"
19089 msgstr ""
19090
19091 #. type: =head1
19092 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
19093 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
19094 msgid "WARNING"
19095 msgstr ""
19096
19097 #. type: textblock
19098 #: ../fish/guestfish.pod:25
19099 msgid ""
19100 "Using guestfish in read/write mode on live virtual machines can be "
19101 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19102 "option to use guestfish safely if the disk image or virtual machine might be "
19103 "live."
19104 msgstr ""
19105
19106 #. type: textblock
19107 #: ../fish/guestfish.pod:32
19108 msgid ""
19109 "Guestfish is a shell and command-line tool for examining and modifying "
19110 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19111 "functionality of the guestfs API, see L<guestfs(3)>."
19112 msgstr ""
19113
19114 #. type: textblock
19115 #: ../fish/guestfish.pod:36
19116 msgid ""
19117 "Guestfish gives you structured access to the libguestfs API, from shell "
19118 "scripts or the command line or interactively.  If you want to rescue a "
19119 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19120 "command."
19121 msgstr ""
19122
19123 #. type: =head1
19124 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:942
19125 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:63 ../tools/virt-tar.pl:50
19126 msgid "EXAMPLES"
19127 msgstr ""
19128
19129 #. type: =head2
19130 #: ../fish/guestfish.pod:43
19131 msgid "As an interactive shell"
19132 msgstr ""
19133
19134 #. type: verbatim
19135 #: ../fish/guestfish.pod:45
19136 #, no-wrap
19137 msgid ""
19138 " $ guestfish\n"
19139 " \n"
19140 msgstr ""
19141
19142 #. type: verbatim
19143 #: ../fish/guestfish.pod:47
19144 #, no-wrap
19145 msgid ""
19146 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19147 " editing virtual machine filesystems.\n"
19148 " \n"
19149 msgstr ""
19150
19151 #. type: verbatim
19152 #: ../fish/guestfish.pod:50
19153 #, no-wrap
19154 msgid ""
19155 " Type: 'help' for a list of commands\n"
19156 "       'man' to read the manual\n"
19157 "       'quit' to quit the shell\n"
19158 " \n"
19159 msgstr ""
19160
19161 #. type: verbatim
19162 #: ../fish/guestfish.pod:54
19163 #, no-wrap
19164 msgid ""
19165 " ><fs> add-ro disk.img\n"
19166 " ><fs> run\n"
19167 " ><fs> list-filesystems\n"
19168 " /dev/sda1: ext4\n"
19169 " /dev/vg_guest/lv_root: ext4\n"
19170 " /dev/vg_guest/lv_swap: swap\n"
19171 " ><fs> mount /dev/vg_guest/lv_root /\n"
19172 " ><fs> cat /etc/fstab\n"
19173 " # /etc/fstab\n"
19174 " # Created by anaconda\n"
19175 " [...]\n"
19176 " ><fs> exit\n"
19177 "\n"
19178 msgstr ""
19179
19180 #. type: =head2
19181 #: ../fish/guestfish.pod:67
19182 msgid "From shell scripts"
19183 msgstr ""
19184
19185 #. type: textblock
19186 #: ../fish/guestfish.pod:69
19187 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19188 msgstr ""
19189
19190 #. type: verbatim
19191 #: ../fish/guestfish.pod:71
19192 #, no-wrap
19193 msgid ""
19194 " guestfish <<_EOF_\n"
19195 " add disk.img\n"
19196 " run\n"
19197 " mount /dev/vg_guest/lv_root /\n"
19198 " write /etc/motd \"Welcome, new users\"\n"
19199 " _EOF_\n"
19200 "\n"
19201 msgstr ""
19202
19203 #. type: textblock
19204 #: ../fish/guestfish.pod:78
19205 msgid "List the LVM logical volumes in a disk image:"
19206 msgstr ""
19207
19208 #. type: verbatim
19209 #: ../fish/guestfish.pod:80
19210 #, no-wrap
19211 msgid ""
19212 " guestfish -a disk.img --ro <<_EOF_\n"
19213 " run\n"
19214 " lvs\n"
19215 " _EOF_\n"
19216 "\n"
19217 msgstr ""
19218
19219 #. type: textblock
19220 #: ../fish/guestfish.pod:85
19221 msgid "List all the filesystems in a disk image:"
19222 msgstr ""
19223
19224 #. type: verbatim
19225 #: ../fish/guestfish.pod:87
19226 #, no-wrap
19227 msgid ""
19228 " guestfish -a disk.img --ro <<_EOF_\n"
19229 " run\n"
19230 " list-filesystems\n"
19231 " _EOF_\n"
19232 "\n"
19233 msgstr ""
19234
19235 #. type: =head2
19236 #: ../fish/guestfish.pod:92
19237 msgid "On one command line"
19238 msgstr ""
19239
19240 #. type: textblock
19241 #: ../fish/guestfish.pod:94
19242 msgid "Update C</etc/resolv.conf> in a guest:"
19243 msgstr ""
19244
19245 #. type: verbatim
19246 #: ../fish/guestfish.pod:96
19247 #, no-wrap
19248 msgid ""
19249 " guestfish \\\n"
19250 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19251 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19252 "\n"
19253 msgstr ""
19254
19255 #. type: textblock
19256 #: ../fish/guestfish.pod:100
19257 msgid "Edit C</boot/grub/grub.conf> interactively:"
19258 msgstr ""
19259
19260 #. type: verbatim
19261 #: ../fish/guestfish.pod:102
19262 #, no-wrap
19263 msgid ""
19264 " guestfish --rw --add disk.img \\\n"
19265 "   --mount /dev/vg_guest/lv_root \\\n"
19266 "   --mount /dev/sda1:/boot \\\n"
19267 "   edit /boot/grub/grub.conf\n"
19268 "\n"
19269 msgstr ""
19270
19271 #. type: =head2
19272 #: ../fish/guestfish.pod:107
19273 msgid "Mount disks automatically"
19274 msgstr ""
19275
19276 #. type: textblock
19277 #: ../fish/guestfish.pod:109
19278 msgid ""
19279 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19280 msgstr ""
19281
19282 #. type: verbatim
19283 #: ../fish/guestfish.pod:112
19284 #, no-wrap
19285 msgid ""
19286 " guestfish --ro -a disk.img -i cat /etc/group\n"
19287 "\n"
19288 msgstr ""
19289
19290 #. type: verbatim
19291 #: ../fish/guestfish.pod:114
19292 #, no-wrap
19293 msgid ""
19294 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19295 "\n"
19296 msgstr ""
19297
19298 #. type: textblock
19299 #: ../fish/guestfish.pod:116
19300 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19301 msgstr ""
19302
19303 #. type: verbatim
19304 #: ../fish/guestfish.pod:118
19305 #, no-wrap
19306 msgid ""
19307 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19308 "\n"
19309 msgstr ""
19310
19311 #. type: =head2
19312 #: ../fish/guestfish.pod:120
19313 msgid "As a script interpreter"
19314 msgstr ""
19315
19316 #. type: textblock
19317 #: ../fish/guestfish.pod:122
19318 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19319 msgstr ""
19320
19321 #. type: verbatim
19322 #: ../fish/guestfish.pod:124
19323 #, no-wrap
19324 msgid ""
19325 " #!/usr/bin/guestfish -f\n"
19326 " sparse test1.img 100M\n"
19327 " run\n"
19328 " part-disk /dev/sda mbr\n"
19329 " mkfs ext2 /dev/sda1\n"
19330 "\n"
19331 msgstr ""
19332
19333 #. type: =head2
19334 #: ../fish/guestfish.pod:130
19335 msgid "Start with a prepared disk"
19336 msgstr ""
19337
19338 #. type: textblock
19339 #: ../fish/guestfish.pod:132
19340 msgid ""
19341 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19342 "single ext2-formatted partition:"
19343 msgstr ""
19344
19345 #. type: verbatim
19346 #: ../fish/guestfish.pod:135
19347 #, no-wrap
19348 msgid ""
19349 " guestfish -N fs\n"
19350 "\n"
19351 msgstr ""
19352
19353 #. type: textblock
19354 #: ../fish/guestfish.pod:137
19355 msgid "To list what is available do:"
19356 msgstr ""
19357
19358 #. type: verbatim
19359 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:933
19360 #, no-wrap
19361 msgid ""
19362 " guestfish -N help | less\n"
19363 "\n"
19364 msgstr ""
19365
19366 #. type: =head2
19367 #: ../fish/guestfish.pod:141
19368 msgid "Remote control"
19369 msgstr ""
19370
19371 #. type: verbatim
19372 #: ../fish/guestfish.pod:143
19373 #, no-wrap
19374 msgid ""
19375 " eval \"`guestfish --listen`\"\n"
19376 " guestfish --remote add-ro disk.img\n"
19377 " guestfish --remote run\n"
19378 " guestfish --remote lvs\n"
19379 "\n"
19380 msgstr ""
19381
19382 #. type: =head1
19383 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
19384 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:81
19385 #: ../tools/virt-win-reg.pl:96 ../tools/virt-list-filesystems.pl:53
19386 #: ../tools/virt-tar.pl:103 ../tools/virt-make-fs.pl:153
19387 #: ../tools/virt-list-partitions.pl:54
19388 msgid "OPTIONS"
19389 msgstr ""
19390
19391 #. type: =item
19392 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
19393 #: ../tools/virt-edit.pl:89 ../tools/virt-win-reg.pl:104
19394 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-tar.pl:111
19395 #: ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:62
19396 msgid "B<--help>"
19397 msgstr ""
19398
19399 #. type: textblock
19400 #: ../fish/guestfish.pod:154
19401 msgid "Displays general help on options."
19402 msgstr ""
19403
19404 #. type: =item
19405 #: ../fish/guestfish.pod:156
19406 msgid "B<-h>"
19407 msgstr ""
19408
19409 #. type: =item
19410 #: ../fish/guestfish.pod:158
19411 msgid "B<--cmd-help>"
19412 msgstr ""
19413
19414 #. type: textblock
19415 #: ../fish/guestfish.pod:160
19416 msgid "Lists all available guestfish commands."
19417 msgstr ""
19418
19419 #. type: =item
19420 #: ../fish/guestfish.pod:162
19421 msgid "B<-h cmd>"
19422 msgstr ""
19423
19424 #. type: =item
19425 #: ../fish/guestfish.pod:164
19426 msgid "B<--cmd-help cmd>"
19427 msgstr ""
19428
19429 #. type: textblock
19430 #: ../fish/guestfish.pod:166
19431 msgid "Displays detailed help on a single command C<cmd>."
19432 msgstr ""
19433
19434 #. type: =item
19435 #: ../fish/guestfish.pod:168
19436 msgid "B<-a image>"
19437 msgstr ""
19438
19439 #. type: =item
19440 #: ../fish/guestfish.pod:170
19441 msgid "B<--add image>"
19442 msgstr ""
19443
19444 #. type: textblock
19445 #: ../fish/guestfish.pod:172
19446 msgid "Add a block device or virtual machine image to the shell."
19447 msgstr ""
19448
19449 #. type: textblock
19450 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
19451 msgid ""
19452 "The format of the disk image is auto-detected.  To override this and force a "
19453 "particular format use the I<--format=..> option."
19454 msgstr ""
19455
19456 #. type: textblock
19457 #: ../fish/guestfish.pod:177
19458 msgid ""
19459 "Using this flag is mostly equivalent to using the C<add> command, with "
19460 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19461 "the I<--format:...> flag was given."
19462 msgstr ""
19463
19464 #. type: =item
19465 #: ../fish/guestfish.pod:181
19466 msgid "B<-c URI>"
19467 msgstr ""
19468
19469 #. type: =item
19470 #: ../fish/guestfish.pod:183
19471 msgid "B<--connect URI>"
19472 msgstr ""
19473
19474 #. type: textblock
19475 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
19476 msgid ""
19477 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19478 "URI to use.  The default is to use the default libvirt connection."
19479 msgstr ""
19480
19481 #. type: =item
19482 #: ../fish/guestfish.pod:189
19483 msgid "B<--csh>"
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../fish/guestfish.pod:191
19488 msgid ""
19489 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19490 "section L</REMOTE CONTROL AND CSH> below."
19491 msgstr ""
19492
19493 #. type: =item
19494 #: ../fish/guestfish.pod:194
19495 msgid "B<-d libvirt-domain>"
19496 msgstr ""
19497
19498 #. type: =item
19499 #: ../fish/guestfish.pod:196
19500 msgid "B<--domain libvirt-domain>"
19501 msgstr ""
19502
19503 #. type: textblock
19504 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
19505 msgid ""
19506 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19507 "used, then any libvirt domain can be used.  However in write mode, only "
19508 "libvirt domains which are shut down can be named here."
19509 msgstr ""
19510
19511 #. type: textblock
19512 #: ../fish/guestfish.pod:202
19513 msgid ""
19514 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19515 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19516 "if the I<--format:...> flag was given."
19517 msgstr ""
19518
19519 #. type: =item
19520 #: ../fish/guestfish.pod:206
19521 msgid "B<-D>"
19522 msgstr ""
19523
19524 #. type: =item
19525 #: ../fish/guestfish.pod:208
19526 msgid "B<--no-dest-paths>"
19527 msgstr ""
19528
19529 #. type: textblock
19530 #: ../fish/guestfish.pod:210
19531 msgid ""
19532 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19533 "to hit the tab key to complete paths on the guest filesystem, but this "
19534 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19535 "allow this feature to be disabled."
19536 msgstr ""
19537
19538 #. type: =item
19539 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
19540 msgid "B<--echo-keys>"
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
19545 msgid ""
19546 "When prompting for keys and passphrases, guestfish normally turns echoing "
19547 "off so you cannot see what you are typing.  If you are not worried about "
19548 "Tempest attacks and there is no one else in the room you can specify this "
19549 "flag to see what you are typing."
19550 msgstr ""
19551
19552 #. type: =item
19553 #: ../fish/guestfish.pod:222
19554 msgid "B<-f file>"
19555 msgstr ""
19556
19557 #. type: =item
19558 #: ../fish/guestfish.pod:224
19559 msgid "B<--file file>"
19560 msgstr ""
19561
19562 #. type: textblock
19563 #: ../fish/guestfish.pod:226
19564 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19565 msgstr ""
19566
19567 #. type: verbatim
19568 #: ../fish/guestfish.pod:229
19569 #, no-wrap
19570 msgid ""
19571 " #!/usr/bin/guestfish -f\n"
19572 "\n"
19573 msgstr ""
19574
19575 #. type: =item
19576 #: ../fish/guestfish.pod:231
19577 msgid "B<--format=raw|qcow2|..>"
19578 msgstr ""
19579
19580 #. type: =item
19581 #: ../fish/guestfish.pod:233
19582 msgid "B<--format>"
19583 msgstr ""
19584
19585 #. type: textblock
19586 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
19587 msgid ""
19588 "The default for the I<-a> option is to auto-detect the format of the disk "
19589 "image.  Using this forces the disk format for I<-a> options which follow on "
19590 "the command line.  Using I<--format> with no argument switches back to auto-"
19591 "detection for subsequent I<-a> options."
19592 msgstr ""
19593
19594 #. type: verbatim
19595 #: ../fish/guestfish.pod:242
19596 #, no-wrap
19597 msgid ""
19598 " guestfish --format=raw -a disk.img\n"
19599 "\n"
19600 msgstr ""
19601
19602 #. type: textblock
19603 #: ../fish/guestfish.pod:244
19604 msgid "forces raw format (no auto-detection) for C<disk.img>."
19605 msgstr ""
19606
19607 #. type: verbatim
19608 #: ../fish/guestfish.pod:246
19609 #, no-wrap
19610 msgid ""
19611 " guestfish --format=raw -a disk.img --format -a another.img\n"
19612 "\n"
19613 msgstr ""
19614
19615 #. type: textblock
19616 #: ../fish/guestfish.pod:248
19617 msgid ""
19618 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
19619 "detection for C<another.img>."
19620 msgstr ""
19621
19622 #. type: textblock
19623 #: ../fish/guestfish.pod:251
19624 msgid ""
19625 "If you have untrusted raw-format guest disk images, you should use this "
19626 "option to specify the disk format.  This avoids a possible security problem "
19627 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19628 msgstr ""
19629
19630 #. type: =item
19631 #: ../fish/guestfish.pod:256
19632 msgid "B<-i>"
19633 msgstr ""
19634
19635 #. type: =item
19636 #: ../fish/guestfish.pod:258
19637 msgid "B<--inspector>"
19638 msgstr ""
19639
19640 #. type: textblock
19641 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
19642 msgid ""
19643 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19644 "system and mount filesystems as they would be mounted on the real virtual "
19645 "machine."
19646 msgstr ""
19647
19648 #. type: textblock
19649 #: ../fish/guestfish.pod:264
19650 msgid "Typical usage is either:"
19651 msgstr ""
19652
19653 #. type: verbatim
19654 #: ../fish/guestfish.pod:266
19655 #, no-wrap
19656 msgid ""
19657 " guestfish -d myguest -i\n"
19658 "\n"
19659 msgstr ""
19660
19661 #. type: textblock
19662 #: ../fish/guestfish.pod:268
19663 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19664 msgstr ""
19665
19666 #. type: verbatim
19667 #: ../fish/guestfish.pod:270
19668 #, no-wrap
19669 msgid ""
19670 " guestfish --ro -d myguest -i\n"
19671 "\n"
19672 msgstr ""
19673
19674 #. type: textblock
19675 #: ../fish/guestfish.pod:272
19676 msgid "(for active domains, readonly), or specify the block device directly:"
19677 msgstr ""
19678
19679 #. type: verbatim
19680 #: ../fish/guestfish.pod:274
19681 #, no-wrap
19682 msgid ""
19683 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19684 "\n"
19685 msgstr ""
19686
19687 #. type: textblock
19688 #: ../fish/guestfish.pod:276
19689 msgid ""
19690 "Note that the command line syntax changed slightly over older versions of "
19691 "guestfish.  You can still use the old syntax:"
19692 msgstr ""
19693
19694 #. type: verbatim
19695 #: ../fish/guestfish.pod:279
19696 #, no-wrap
19697 msgid ""
19698 " guestfish [--ro] -i disk.img\n"
19699 "\n"
19700 msgstr ""
19701
19702 #. type: verbatim
19703 #: ../fish/guestfish.pod:281
19704 #, no-wrap
19705 msgid ""
19706 " guestfish [--ro] -i libvirt-domain\n"
19707 "\n"
19708 msgstr ""
19709
19710 #. type: textblock
19711 #: ../fish/guestfish.pod:283
19712 msgid ""
19713 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19714 "then using other commands to mount the filesystems that were found."
19715 msgstr ""
19716
19717 #. type: =item
19718 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
19719 msgid "B<--keys-from-stdin>"
19720 msgstr ""
19721
19722 #. type: textblock
19723 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
19724 msgid ""
19725 "Read key or passphrase parameters from stdin.  The default is to try to read "
19726 "passphrases from the user by opening C</dev/tty>."
19727 msgstr ""
19728
19729 #. type: =item
19730 #: ../fish/guestfish.pod:292
19731 msgid "B<--listen>"
19732 msgstr ""
19733
19734 #. type: textblock
19735 #: ../fish/guestfish.pod:294
19736 msgid ""
19737 "Fork into the background and listen for remote commands.  See section L</"
19738 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19739 msgstr ""
19740
19741 #. type: =item
19742 #: ../fish/guestfish.pod:297 ../fuse/guestmount.pod:146
19743 msgid "B<--live>"
19744 msgstr ""
19745
19746 #. type: textblock
19747 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
19748 msgid ""
19749 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19750 "ATTACHING TO RUNNING DAEMONS>)."
19751 msgstr ""
19752
19753 #. type: =item
19754 #: ../fish/guestfish.pod:302 ../fuse/guestmount.pod:151
19755 msgid "B<-m dev[:mountpoint[:options]]>"
19756 msgstr ""
19757
19758 #. type: =item
19759 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:153
19760 msgid "B<--mount dev[:mountpoint[:options]]>"
19761 msgstr ""
19762
19763 #. type: textblock
19764 #: ../fish/guestfish.pod:306
19765 msgid "Mount the named partition or logical volume on the given mountpoint."
19766 msgstr ""
19767
19768 #. type: textblock
19769 #: ../fish/guestfish.pod:308
19770 msgid "If the mountpoint is omitted, it defaults to C</>."
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../fish/guestfish.pod:310
19775 msgid "You have to mount something on C</> before most commands will work."
19776 msgstr ""
19777
19778 #. type: textblock
19779 #: ../fish/guestfish.pod:312
19780 msgid ""
19781 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19782 "launched."
19783 msgstr ""
19784
19785 #. type: textblock
19786 #: ../fish/guestfish.pod:315
19787 msgid ""
19788 "If you don't know what filesystems a disk image contains, you can either run "
19789 "guestfish without this option, then list the partitions, filesystems and LVs "
19790 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19791 "commands), or you can use the L<virt-filesystems(1)> program."
19792 msgstr ""
19793
19794 #. type: textblock
19795 #: ../fish/guestfish.pod:321 ../fuse/guestmount.pod:161
19796 msgid ""
19797 "The third (and rarely used) part of the mount parameter is the list of mount "
19798 "options used to mount the underlying filesystem.  If this is not given, then "
19799 "the mount options are either the empty string or C<ro> (the latter if the "
19800 "I<--ro> flag is used).  By specifying the mount options, you override this "
19801 "default choice.  Probably the only time you would use this is to enable ACLs "
19802 "and/or extended attributes if the filesystem can support them:"
19803 msgstr ""
19804
19805 #. type: verbatim
19806 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:169
19807 #, no-wrap
19808 msgid ""
19809 " -m /dev/sda1:/:acl,user_xattr\n"
19810 "\n"
19811 msgstr ""
19812
19813 #. type: textblock
19814 #: ../fish/guestfish.pod:331
19815 msgid "Using this flag is equivalent to using the C<mount-options> command."
19816 msgstr ""
19817
19818 #. type: =item
19819 #: ../fish/guestfish.pod:333
19820 msgid "B<-n>"
19821 msgstr ""
19822
19823 #. type: =item
19824 #: ../fish/guestfish.pod:335
19825 msgid "B<--no-sync>"
19826 msgstr ""
19827
19828 #. type: textblock
19829 #: ../fish/guestfish.pod:337
19830 msgid ""
19831 "Disable autosync.  This is enabled by default.  See the discussion of "
19832 "autosync in the L<guestfs(3)> manpage."
19833 msgstr ""
19834
19835 #. type: =item
19836 #: ../fish/guestfish.pod:340
19837 msgid "B<-N type>"
19838 msgstr ""
19839
19840 #. type: =item
19841 #: ../fish/guestfish.pod:342
19842 msgid "B<--new type>"
19843 msgstr ""
19844
19845 #. type: =item
19846 #: ../fish/guestfish.pod:344
19847 msgid "B<-N help>"
19848 msgstr ""
19849
19850 #. type: textblock
19851 #: ../fish/guestfish.pod:346
19852 msgid ""
19853 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19854 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19855 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19856 "IMAGES> below."
19857 msgstr ""
19858
19859 #. type: =item
19860 #: ../fish/guestfish.pod:351
19861 msgid "B<--progress-bars>"
19862 msgstr ""
19863
19864 #. type: textblock
19865 #: ../fish/guestfish.pod:353
19866 msgid "Enable progress bars, even when guestfish is used non-interactively."
19867 msgstr ""
19868
19869 #. type: textblock
19870 #: ../fish/guestfish.pod:355
19871 msgid ""
19872 "Progress bars are enabled by default when guestfish is used as an "
19873 "interactive shell."
19874 msgstr ""
19875
19876 #. type: =item
19877 #: ../fish/guestfish.pod:358
19878 msgid "B<--no-progress-bars>"
19879 msgstr ""
19880
19881 #. type: textblock
19882 #: ../fish/guestfish.pod:360
19883 msgid "Disable progress bars."
19884 msgstr ""
19885
19886 #. type: =item
19887 #: ../fish/guestfish.pod:362
19888 msgid "B<--remote[=pid]>"
19889 msgstr ""
19890
19891 #. type: textblock
19892 #: ../fish/guestfish.pod:364
19893 msgid ""
19894 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19895 "CONTROL GUESTFISH OVER A SOCKET> below."
19896 msgstr ""
19897
19898 #. type: =item
19899 #: ../fish/guestfish.pod:367
19900 msgid "B<-r>"
19901 msgstr ""
19902
19903 #. type: =item
19904 #: ../fish/guestfish.pod:369
19905 msgid "B<--ro>"
19906 msgstr ""
19907
19908 #. type: textblock
19909 #: ../fish/guestfish.pod:371
19910 msgid ""
19911 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19912 "mounts are done read-only."
19913 msgstr ""
19914
19915 #. type: textblock
19916 #: ../fish/guestfish.pod:374
19917 msgid ""
19918 "The option must always be used if the disk image or virtual machine might be "
19919 "running, and is generally recommended in cases where you don't need write "
19920 "access to the disk."
19921 msgstr ""
19922
19923 #. type: textblock
19924 #: ../fish/guestfish.pod:378
19925 msgid ""
19926 "Note that prepared disk images created with I<-N> are not affected by this "
19927 "option.  Also commands like C<add> are not affected - you have to specify "
19928 "the C<readonly:true> option explicitly if you need it."
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:382
19933 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19934 msgstr ""
19935
19936 #. type: =item
19937 #: ../fish/guestfish.pod:384 ../fuse/guestmount.pod:225
19938 msgid "B<--selinux>"
19939 msgstr ""
19940
19941 #. type: textblock
19942 #: ../fish/guestfish.pod:386
19943 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19944 msgstr ""
19945
19946 #. type: =item
19947 #: ../fish/guestfish.pod:388
19948 msgid "B<-v>"
19949 msgstr ""
19950
19951 #. type: =item
19952 #: ../fish/guestfish.pod:390
19953 msgid "B<--verbose>"
19954 msgstr ""
19955
19956 #. type: textblock
19957 #: ../fish/guestfish.pod:392
19958 msgid ""
19959 "Enable very verbose messages.  This is particularly useful if you find a bug."
19960 msgstr ""
19961
19962 #. type: =item
19963 #: ../fish/guestfish.pod:395
19964 msgid "B<-V>"
19965 msgstr ""
19966
19967 #. type: =item
19968 #: ../fish/guestfish.pod:397 ../tools/virt-edit.pl:97
19969 #: ../tools/virt-win-reg.pl:112 ../tools/virt-list-filesystems.pl:69
19970 #: ../tools/virt-tar.pl:119 ../tools/virt-make-fs.pl:169
19971 #: ../tools/virt-list-partitions.pl:70
19972 msgid "B<--version>"
19973 msgstr ""
19974
19975 #. type: textblock
19976 #: ../fish/guestfish.pod:399
19977 msgid "Display the guestfish / libguestfs version number and exit."
19978 msgstr ""
19979
19980 #. type: =item
19981 #: ../fish/guestfish.pod:401
19982 msgid "B<-w>"
19983 msgstr ""
19984
19985 #. type: =item
19986 #: ../fish/guestfish.pod:403
19987 msgid "B<--rw>"
19988 msgstr ""
19989
19990 #. type: textblock
19991 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:239
19992 msgid ""
19993 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19994 "mounts are done read-write."
19995 msgstr ""
19996
19997 #. type: textblock
19998 #: ../fish/guestfish.pod:408
19999 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20000 msgstr ""
20001
20002 #. type: =item
20003 #: ../fish/guestfish.pod:410
20004 msgid "B<-x>"
20005 msgstr ""
20006
20007 #. type: textblock
20008 #: ../fish/guestfish.pod:412
20009 msgid "Echo each command before executing it."
20010 msgstr ""
20011
20012 #. type: =head1
20013 #: ../fish/guestfish.pod:416
20014 msgid "COMMANDS ON COMMAND LINE"
20015 msgstr ""
20016
20017 #. type: textblock
20018 #: ../fish/guestfish.pod:418
20019 msgid ""
20020 "Any additional (non-option) arguments are treated as commands to execute."
20021 msgstr ""
20022
20023 #. type: textblock
20024 #: ../fish/guestfish.pod:421
20025 msgid ""
20026 "Commands to execute should be separated by a colon (C<:>), where the colon "
20027 "is a separate parameter.  Thus:"
20028 msgstr ""
20029
20030 #. type: verbatim
20031 #: ../fish/guestfish.pod:424
20032 #, no-wrap
20033 msgid ""
20034 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20035 "\n"
20036 msgstr ""
20037
20038 #. type: textblock
20039 #: ../fish/guestfish.pod:426
20040 msgid ""
20041 "If there are no additional arguments, then we enter a shell, either an "
20042 "interactive shell with a prompt (if the input is a terminal) or a non-"
20043 "interactive shell."
20044 msgstr ""
20045
20046 #. type: textblock
20047 #: ../fish/guestfish.pod:430
20048 msgid ""
20049 "In either command line mode or non-interactive shell, the first command that "
20050 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20051 "prompt) if a command fails, you can continue to enter commands."
20052 msgstr ""
20053
20054 #. type: =head1
20055 #: ../fish/guestfish.pod:435
20056 msgid "USING launch (OR run)"
20057 msgstr ""
20058
20059 #. type: textblock
20060 #: ../fish/guestfish.pod:437
20061 msgid ""
20062 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20063 "then launch it, then mount any disks you need, and finally issue actions/"
20064 "commands.  So the general order of the day is:"
20065 msgstr ""
20066
20067 #. type: textblock
20068 #: ../fish/guestfish.pod:445
20069 msgid "add or -a/--add"
20070 msgstr ""
20071
20072 #. type: textblock
20073 #: ../fish/guestfish.pod:449
20074 msgid "launch (aka run)"
20075 msgstr ""
20076
20077 #. type: textblock
20078 #: ../fish/guestfish.pod:453
20079 msgid "mount or -m/--mount"
20080 msgstr ""
20081
20082 #. type: textblock
20083 #: ../fish/guestfish.pod:457
20084 msgid "any other commands"
20085 msgstr ""
20086
20087 #. type: textblock
20088 #: ../fish/guestfish.pod:461
20089 msgid ""
20090 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20091 "guest before mounting or performing any other commands."
20092 msgstr ""
20093
20094 #. type: textblock
20095 #: ../fish/guestfish.pod:464
20096 msgid ""
20097 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20098 "I<--new> options were given then C<run> is done automatically, simply "
20099 "because guestfish can't perform the action you asked for without doing this."
20100 msgstr ""
20101
20102 #. type: =head1
20103 #: ../fish/guestfish.pod:469
20104 msgid "OPENING DISKS FOR READ AND WRITE"
20105 msgstr ""
20106
20107 #. type: textblock
20108 #: ../fish/guestfish.pod:471
20109 msgid ""
20110 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20111 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20112 "I<-i> and I<-m> open disk images read-only or for writing."
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:476
20117 msgid ""
20118 "In libguestfs E<le> 1.8, guestfish, guestmount and virt-rescue defaulted to "
20119 "opening disk images supplied on the command line for write.  To open a disk "
20120 "image read-only you have to do I<-a image --ro>."
20121 msgstr ""
20122
20123 #. type: textblock
20124 #: ../fish/guestfish.pod:480
20125 msgid ""
20126 "This matters: If you accidentally open a live VM disk image writable then "
20127 "you will cause irreversible disk corruption."
20128 msgstr ""
20129
20130 #. type: textblock
20131 #: ../fish/guestfish.pod:483
20132 msgid ""
20133 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
20134 "images will be opened read-only.  You will have to either specify "
20135 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20136 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20137 "access for disk images specified by those other command line options."
20138 msgstr ""
20139
20140 #. type: textblock
20141 #: ../fish/guestfish.pod:490
20142 msgid ""
20143 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20144 "which does nothing (it is already the default).  However it is highly "
20145 "recommended that you use this option to indicate that you need write access, "
20146 "and prepare your scripts for the day when this option will be required for "
20147 "write access."
20148 msgstr ""
20149
20150 #. type: textblock
20151 #: ../fish/guestfish.pod:496
20152 msgid ""
20153 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20154 "other libguestfs program apart from guestfish and guestmount."
20155 msgstr ""
20156
20157 #. type: =head1
20158 #: ../fish/guestfish.pod:499
20159 msgid "QUOTING"
20160 msgstr ""
20161
20162 #. type: textblock
20163 #: ../fish/guestfish.pod:501
20164 msgid ""
20165 "You can quote ordinary parameters using either single or double quotes.  For "
20166 "example:"
20167 msgstr ""
20168
20169 #. type: verbatim
20170 #: ../fish/guestfish.pod:504
20171 #, no-wrap
20172 msgid ""
20173 " add \"file with a space.img\"\n"
20174 "\n"
20175 msgstr ""
20176
20177 #. type: verbatim
20178 #: ../fish/guestfish.pod:506
20179 #, no-wrap
20180 msgid ""
20181 " rm '/file name'\n"
20182 "\n"
20183 msgstr ""
20184
20185 #. type: verbatim
20186 #: ../fish/guestfish.pod:508
20187 #, no-wrap
20188 msgid ""
20189 " rm '/\"'\n"
20190 "\n"
20191 msgstr ""
20192
20193 #. type: textblock
20194 #: ../fish/guestfish.pod:510
20195 msgid ""
20196 "A few commands require a list of strings to be passed.  For these, use a "
20197 "whitespace-separated list, enclosed in quotes.  Strings containing "
20198 "whitespace to be passed through must be enclosed in single quotes.  A "
20199 "literal single quote must be escaped with a backslash."
20200 msgstr ""
20201
20202 #. type: verbatim
20203 #: ../fish/guestfish.pod:515
20204 #, no-wrap
20205 msgid ""
20206 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20207 " command \"/bin/echo 'foo      bar'\"\n"
20208 " command \"/bin/echo \\'foo\\'\"\n"
20209 "\n"
20210 msgstr ""
20211
20212 #. type: =head1
20213 #: ../fish/guestfish.pod:519
20214 msgid "OPTIONAL ARGUMENTS"
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../fish/guestfish.pod:521
20219 msgid ""
20220 "Some commands take optional arguments.  These arguments appear in this "
20221 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20222 msgstr ""
20223
20224 #. type: verbatim
20225 #: ../fish/guestfish.pod:525
20226 #, no-wrap
20227 msgid ""
20228 " add-drive-opts filename\n"
20229 "\n"
20230 msgstr ""
20231
20232 #. type: verbatim
20233 #: ../fish/guestfish.pod:527
20234 #, no-wrap
20235 msgid ""
20236 " add-drive-opts filename readonly:true\n"
20237 "\n"
20238 msgstr ""
20239
20240 #. type: verbatim
20241 #: ../fish/guestfish.pod:529
20242 #, no-wrap
20243 msgid ""
20244 " add-drive-opts filename format:qcow2 readonly:false\n"
20245 "\n"
20246 msgstr ""
20247
20248 #. type: textblock
20249 #: ../fish/guestfish.pod:531
20250 msgid ""
20251 "Each optional argument can appear at most once.  All optional arguments must "
20252 "appear after the required ones."
20253 msgstr ""
20254
20255 #. type: =head1
20256 #: ../fish/guestfish.pod:534
20257 msgid "NUMBERS"
20258 msgstr ""
20259
20260 #. type: textblock
20261 #: ../fish/guestfish.pod:536
20262 msgid ""
20263 "This section applies to all commands which can take integers as parameters."
20264 msgstr ""
20265
20266 #. type: =head2
20267 #: ../fish/guestfish.pod:539
20268 msgid "SIZE SUFFIX"
20269 msgstr ""
20270
20271 #. type: textblock
20272 #: ../fish/guestfish.pod:541
20273 msgid ""
20274 "When the command takes a parameter measured in bytes, you can use one of the "
20275 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20276 msgstr ""
20277
20278 #. type: =item
20279 #: ../fish/guestfish.pod:547
20280 msgid "B<k> or B<K> or B<KiB>"
20281 msgstr ""
20282
20283 #. type: textblock
20284 #: ../fish/guestfish.pod:549
20285 msgid "The size in kilobytes (multiplied by 1024)."
20286 msgstr ""
20287
20288 #. type: =item
20289 #: ../fish/guestfish.pod:551
20290 msgid "B<KB>"
20291 msgstr ""
20292
20293 #. type: textblock
20294 #: ../fish/guestfish.pod:553
20295 msgid "The size in SI 1000 byte units."
20296 msgstr ""
20297
20298 #. type: =item
20299 #: ../fish/guestfish.pod:555
20300 msgid "B<M> or B<MiB>"
20301 msgstr ""
20302
20303 #. type: textblock
20304 #: ../fish/guestfish.pod:557
20305 msgid "The size in megabytes (multiplied by 1048576)."
20306 msgstr ""
20307
20308 #. type: =item
20309 #: ../fish/guestfish.pod:559
20310 msgid "B<MB>"
20311 msgstr ""
20312
20313 #. type: textblock
20314 #: ../fish/guestfish.pod:561
20315 msgid "The size in SI 1000000 byte units."
20316 msgstr ""
20317
20318 #. type: =item
20319 #: ../fish/guestfish.pod:563
20320 msgid "B<G> or B<GiB>"
20321 msgstr ""
20322
20323 #. type: textblock
20324 #: ../fish/guestfish.pod:565
20325 msgid "The size in gigabytes (multiplied by 2**30)."
20326 msgstr ""
20327
20328 #. type: =item
20329 #: ../fish/guestfish.pod:567
20330 msgid "B<GB>"
20331 msgstr ""
20332
20333 #. type: textblock
20334 #: ../fish/guestfish.pod:569
20335 msgid "The size in SI 10**9 byte units."
20336 msgstr ""
20337
20338 #. type: =item
20339 #: ../fish/guestfish.pod:571
20340 msgid "B<T> or B<TiB>"
20341 msgstr ""
20342
20343 #. type: textblock
20344 #: ../fish/guestfish.pod:573
20345 msgid "The size in terabytes (multiplied by 2**40)."
20346 msgstr ""
20347
20348 #. type: =item
20349 #: ../fish/guestfish.pod:575
20350 msgid "B<TB>"
20351 msgstr ""
20352
20353 #. type: textblock
20354 #: ../fish/guestfish.pod:577
20355 msgid "The size in SI 10**12 byte units."
20356 msgstr ""
20357
20358 #. type: =item
20359 #: ../fish/guestfish.pod:579
20360 msgid "B<P> or B<PiB>"
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../fish/guestfish.pod:581
20365 msgid "The size in petabytes (multiplied by 2**50)."
20366 msgstr ""
20367
20368 #. type: =item
20369 #: ../fish/guestfish.pod:583
20370 msgid "B<PB>"
20371 msgstr ""
20372
20373 #. type: textblock
20374 #: ../fish/guestfish.pod:585
20375 msgid "The size in SI 10**15 byte units."
20376 msgstr ""
20377
20378 #. type: =item
20379 #: ../fish/guestfish.pod:587
20380 msgid "B<E> or B<EiB>"
20381 msgstr ""
20382
20383 #. type: textblock
20384 #: ../fish/guestfish.pod:589
20385 msgid "The size in exabytes (multiplied by 2**60)."
20386 msgstr ""
20387
20388 #. type: =item
20389 #: ../fish/guestfish.pod:591
20390 msgid "B<EB>"
20391 msgstr ""
20392
20393 #. type: textblock
20394 #: ../fish/guestfish.pod:593
20395 msgid "The size in SI 10**18 byte units."
20396 msgstr ""
20397
20398 #. type: =item
20399 #: ../fish/guestfish.pod:595
20400 msgid "B<Z> or B<ZiB>"
20401 msgstr ""
20402
20403 #. type: textblock
20404 #: ../fish/guestfish.pod:597
20405 msgid "The size in zettabytes (multiplied by 2**70)."
20406 msgstr ""
20407
20408 #. type: =item
20409 #: ../fish/guestfish.pod:599
20410 msgid "B<ZB>"
20411 msgstr ""
20412
20413 #. type: textblock
20414 #: ../fish/guestfish.pod:601
20415 msgid "The size in SI 10**21 byte units."
20416 msgstr ""
20417
20418 #. type: =item
20419 #: ../fish/guestfish.pod:603
20420 msgid "B<Y> or B<YiB>"
20421 msgstr ""
20422
20423 #. type: textblock
20424 #: ../fish/guestfish.pod:605
20425 msgid "The size in yottabytes (multiplied by 2**80)."
20426 msgstr ""
20427
20428 #. type: =item
20429 #: ../fish/guestfish.pod:607
20430 msgid "B<YB>"
20431 msgstr ""
20432
20433 #. type: textblock
20434 #: ../fish/guestfish.pod:609
20435 msgid "The size in SI 10**24 byte units."
20436 msgstr ""
20437
20438 #. type: verbatim
20439 #: ../fish/guestfish.pod:615
20440 #, no-wrap
20441 msgid ""
20442 " truncate-size /file 1G\n"
20443 "\n"
20444 msgstr ""
20445
20446 #. type: textblock
20447 #: ../fish/guestfish.pod:617
20448 msgid "would truncate the file to 1 gigabyte."
20449 msgstr ""
20450
20451 #. type: textblock
20452 #: ../fish/guestfish.pod:619
20453 msgid ""
20454 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20455 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20456 "suffix will probably not do what you expect."
20457 msgstr ""
20458
20459 #. type: =head2
20460 #: ../fish/guestfish.pod:623
20461 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20462 msgstr ""
20463
20464 #. type: textblock
20465 #: ../fish/guestfish.pod:625
20466 msgid ""
20467 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20468 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20469 msgstr ""
20470
20471 #. type: verbatim
20472 #: ../fish/guestfish.pod:628
20473 #, no-wrap
20474 msgid ""
20475 " 1234      decimal number 1234\n"
20476 " 02322     octal number, equivalent to decimal 1234\n"
20477 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20478 "\n"
20479 msgstr ""
20480
20481 #. type: textblock
20482 #: ../fish/guestfish.pod:632
20483 msgid ""
20484 "When using the C<chmod> command, you almost always want to specify an octal "
20485 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20486 "L<chmod(1)> program):"
20487 msgstr ""
20488
20489 #. type: verbatim
20490 #: ../fish/guestfish.pod:636
20491 #, no-wrap
20492 msgid ""
20493 " chmod 0777 /public  # OK\n"
20494 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20495 "\n"
20496 msgstr ""
20497
20498 #. type: textblock
20499 #: ../fish/guestfish.pod:639
20500 msgid ""
20501 "Commands that return numbers usually print them in decimal, but some "
20502 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20503 "octal, preceeded by C<0>)."
20504 msgstr ""
20505
20506 #. type: =head1
20507 #: ../fish/guestfish.pod:643
20508 msgid "WILDCARDS AND GLOBBING"
20509 msgstr ""
20510
20511 #. type: textblock
20512 #: ../fish/guestfish.pod:645
20513 msgid ""
20514 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20515 "(globbing) by default.  So for example the following will not do what you "
20516 "expect:"
20517 msgstr ""
20518
20519 #. type: verbatim
20520 #: ../fish/guestfish.pod:649
20521 #, no-wrap
20522 msgid ""
20523 " rm-rf /home/*\n"
20524 "\n"
20525 msgstr ""
20526
20527 #. type: textblock
20528 #: ../fish/guestfish.pod:651
20529 msgid ""
20530 "Assuming you don't have a directory called literally C</home/*> then the "
20531 "above command will return an error."
20532 msgstr ""
20533
20534 #. type: textblock
20535 #: ../fish/guestfish.pod:654
20536 msgid "To perform wildcard expansion, use the C<glob> command."
20537 msgstr ""
20538
20539 #. type: verbatim
20540 #: ../fish/guestfish.pod:656
20541 #, no-wrap
20542 msgid ""
20543 " glob rm-rf /home/*\n"
20544 "\n"
20545 msgstr ""
20546
20547 #. type: textblock
20548 #: ../fish/guestfish.pod:658
20549 msgid ""
20550 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20551 "many times), equivalent to:"
20552 msgstr ""
20553
20554 #. type: verbatim
20555 #: ../fish/guestfish.pod:661
20556 #, no-wrap
20557 msgid ""
20558 " rm-rf /home/jim\n"
20559 " rm-rf /home/joe\n"
20560 " rm-rf /home/mary\n"
20561 "\n"
20562 msgstr ""
20563
20564 #. type: textblock
20565 #: ../fish/guestfish.pod:665
20566 msgid "C<glob> only works on simple guest paths and not on device names."
20567 msgstr ""
20568
20569 #. type: textblock
20570 #: ../fish/guestfish.pod:667
20571 msgid ""
20572 "If you have several parameters, each containing a wildcard, then glob will "
20573 "perform a Cartesian product."
20574 msgstr ""
20575
20576 #. type: =head1
20577 #: ../fish/guestfish.pod:670
20578 msgid "COMMENTS"
20579 msgstr ""
20580
20581 #. type: textblock
20582 #: ../fish/guestfish.pod:672
20583 msgid ""
20584 "Any line which starts with a I<#> character is treated as a comment and "
20585 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20586 "a command.  For example:"
20587 msgstr ""
20588
20589 #. type: verbatim
20590 #: ../fish/guestfish.pod:676
20591 #, no-wrap
20592 msgid ""
20593 " # this is a comment\n"
20594 "         # this is a comment\n"
20595 " foo # NOT a comment\n"
20596 "\n"
20597 msgstr ""
20598
20599 #. type: textblock
20600 #: ../fish/guestfish.pod:680
20601 msgid "Blank lines are also ignored."
20602 msgstr ""
20603
20604 #. type: =head1
20605 #: ../fish/guestfish.pod:682
20606 msgid "RUNNING COMMANDS LOCALLY"
20607 msgstr ""
20608
20609 #. type: textblock
20610 #: ../fish/guestfish.pod:684
20611 msgid ""
20612 "Any line which starts with a I<!> character is treated as a command sent to "
20613 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20614 msgstr ""
20615
20616 #. type: verbatim
20617 #: ../fish/guestfish.pod:688
20618 #, no-wrap
20619 msgid ""
20620 " !mkdir local\n"
20621 " tgz-out /remote local/remote-data.tar.gz\n"
20622 "\n"
20623 msgstr ""
20624
20625 #. type: textblock
20626 #: ../fish/guestfish.pod:691
20627 msgid ""
20628 "will create a directory C<local> on the host, and then export the contents "
20629 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20630 "(See C<tgz-out>)."
20631 msgstr ""
20632
20633 #. type: textblock
20634 #: ../fish/guestfish.pod:695
20635 msgid ""
20636 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20637 "effect, due to the way that subprocesses work in Unix."
20638 msgstr ""
20639
20640 #. type: =head2
20641 #: ../fish/guestfish.pod:698
20642 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20643 msgstr ""
20644
20645 #. type: textblock
20646 #: ../fish/guestfish.pod:700
20647 msgid ""
20648 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20649 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20650 "and executed as guestfish commands."
20651 msgstr ""
20652
20653 #. type: textblock
20654 #: ../fish/guestfish.pod:704
20655 msgid ""
20656 "Thus you can use shell script to construct arbitrary guestfish commands "
20657 "which are then parsed by guestfish."
20658 msgstr ""
20659
20660 #. type: textblock
20661 #: ../fish/guestfish.pod:707
20662 msgid ""
20663 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20664 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20665 "if we use a shell script to create the guestfish commands for us:"
20666 msgstr ""
20667
20668 #. type: verbatim
20669 #: ../fish/guestfish.pod:712
20670 #, no-wrap
20671 msgid ""
20672 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20673 "\n"
20674 msgstr ""
20675
20676 #. type: textblock
20677 #: ../fish/guestfish.pod:714
20678 msgid "or with names like C</foo.001>:"
20679 msgstr ""
20680
20681 #. type: verbatim
20682 #: ../fish/guestfish.pod:716
20683 #, no-wrap
20684 msgid ""
20685 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20686 "\n"
20687 msgstr ""
20688
20689 #. type: textblock
20690 #: ../fish/guestfish.pod:718
20691 msgid ""
20692 "When using guestfish interactively it can be helpful to just run the shell "
20693 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20694 "ordinary I<!> local command), see what guestfish commands it would run, and "
20695 "when you are happy with those prepend the C<E<lt>> character to run the "
20696 "guestfish commands for real."
20697 msgstr ""
20698
20699 #. type: =head1
20700 #: ../fish/guestfish.pod:724
20701 msgid "PIPES"
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../fish/guestfish.pod:726
20706 msgid ""
20707 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20708 "command (a guestfish command) to the second command (any host command).  For "
20709 "example:"
20710 msgstr ""
20711
20712 #. type: verbatim
20713 #: ../fish/guestfish.pod:730
20714 #, no-wrap
20715 msgid ""
20716 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20717 "\n"
20718 msgstr ""
20719
20720 #. type: textblock
20721 #: ../fish/guestfish.pod:732
20722 msgid ""
20723 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20724 "program).  The above command would list all accounts in the guest filesystem "
20725 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20726 msgstr ""
20727
20728 #. type: verbatim
20729 #: ../fish/guestfish.pod:737
20730 #, no-wrap
20731 msgid ""
20732 " hexdump /bin/ls | head\n"
20733 " list-devices | tail -1\n"
20734 " tgz-out / - | tar ztf -\n"
20735 "\n"
20736 msgstr ""
20737
20738 #. type: textblock
20739 #: ../fish/guestfish.pod:741
20740 msgid ""
20741 "The space before the pipe symbol is required, any space after the pipe "
20742 "symbol is optional.  Everything after the pipe symbol is just passed "
20743 "straight to the host shell, so it can contain redirections, globs and "
20744 "anything else that makes sense on the host side."
20745 msgstr ""
20746
20747 #. type: textblock
20748 #: ../fish/guestfish.pod:746
20749 msgid ""
20750 "To use a literal argument which begins with a pipe symbol, you have to quote "
20751 "it, eg:"
20752 msgstr ""
20753
20754 #. type: verbatim
20755 #: ../fish/guestfish.pod:749
20756 #, no-wrap
20757 msgid ""
20758 " echo \"|\"\n"
20759 "\n"
20760 msgstr ""
20761
20762 #. type: =head1
20763 #: ../fish/guestfish.pod:751
20764 msgid "HOME DIRECTORIES"
20765 msgstr ""
20766
20767 #. type: textblock
20768 #: ../fish/guestfish.pod:753
20769 msgid ""
20770 "If a parameter starts with the character C<~> then the tilde may be expanded "
20771 "as a home directory path (either C<~> for the current user's home directory, "
20772 "or C<~user> for another user)."
20773 msgstr ""
20774
20775 #. type: textblock
20776 #: ../fish/guestfish.pod:757
20777 msgid ""
20778 "Note that home directory expansion happens for users known I<on the host>, "
20779 "not in the guest filesystem."
20780 msgstr ""
20781
20782 #. type: textblock
20783 #: ../fish/guestfish.pod:760
20784 msgid ""
20785 "To use a literal argument which begins with a tilde, you have to quote it, "
20786 "eg:"
20787 msgstr ""
20788
20789 #. type: verbatim
20790 #: ../fish/guestfish.pod:763
20791 #, no-wrap
20792 msgid ""
20793 " echo \"~\"\n"
20794 "\n"
20795 msgstr ""
20796
20797 #. type: textblock
20798 #: ../fish/guestfish.pod:767
20799 msgid ""
20800 "Libguestfs has some support for Linux guests encrypted according to the "
20801 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20802 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20803 "LUKS is supported."
20804 msgstr ""
20805
20806 #. type: textblock
20807 #: ../fish/guestfish.pod:772
20808 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20809 msgstr ""
20810
20811 #. type: verbatim
20812 #: ../fish/guestfish.pod:774
20813 #, no-wrap
20814 msgid ""
20815 " ><fs> vfs-type /dev/sda2\n"
20816 " crypto_LUKS\n"
20817 "\n"
20818 msgstr ""
20819
20820 #. type: textblock
20821 #: ../fish/guestfish.pod:777
20822 msgid ""
20823 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20824 "device called C</dev/mapper/luksdev>."
20825 msgstr ""
20826
20827 #. type: verbatim
20828 #: ../fish/guestfish.pod:780
20829 #, no-wrap
20830 msgid ""
20831 " ><fs> luks-open /dev/sda2 luksdev\n"
20832 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20833 "\n"
20834 msgstr ""
20835
20836 #. type: textblock
20837 #: ../fish/guestfish.pod:783
20838 msgid ""
20839 "Finally you have to tell LVM to scan for volume groups on the newly created "
20840 "mapper device:"
20841 msgstr ""
20842
20843 #. type: verbatim
20844 #: ../fish/guestfish.pod:786
20845 #, no-wrap
20846 msgid ""
20847 " vgscan\n"
20848 " vg-activate-all true\n"
20849 "\n"
20850 msgstr ""
20851
20852 #. type: textblock
20853 #: ../fish/guestfish.pod:789
20854 msgid "The logical volume(s) can now be mounted in the usual way."
20855 msgstr ""
20856
20857 #. type: textblock
20858 #: ../fish/guestfish.pod:791
20859 msgid ""
20860 "Before closing a LUKS device you must unmount any logical volumes on it and "
20861 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20862 "one.  Then you can close the mapper device:"
20863 msgstr ""
20864
20865 #. type: verbatim
20866 #: ../fish/guestfish.pod:795
20867 #, no-wrap
20868 msgid ""
20869 " vg-activate false /dev/VG\n"
20870 " luks-close /dev/mapper/luksdev\n"
20871 "\n"
20872 msgstr ""
20873
20874 #. type: =head1
20875 #: ../fish/guestfish.pod:798 ../tools/virt-edit.pl:342
20876 msgid "WINDOWS PATHS"
20877 msgstr ""
20878
20879 #. type: textblock
20880 #: ../fish/guestfish.pod:800
20881 msgid ""
20882 "If a path is prefixed with C<win:> then you can use Windows-style paths "
20883 "(with some limitations).  The following commands are equivalent:"
20884 msgstr ""
20885
20886 #. type: verbatim
20887 #: ../fish/guestfish.pod:803
20888 #, no-wrap
20889 msgid ""
20890 " file /WINDOWS/system32/config/system.LOG\n"
20891 "\n"
20892 msgstr ""
20893
20894 #. type: verbatim
20895 #: ../fish/guestfish.pod:805
20896 #, no-wrap
20897 msgid ""
20898 " file win:/windows/system32/config/system.log\n"
20899 "\n"
20900 msgstr ""
20901
20902 #. type: verbatim
20903 #: ../fish/guestfish.pod:807
20904 #, no-wrap
20905 msgid ""
20906 " file win:\\windows\\system32\\config\\system.log\n"
20907 "\n"
20908 msgstr ""
20909
20910 #. type: verbatim
20911 #: ../fish/guestfish.pod:809
20912 #, no-wrap
20913 msgid ""
20914 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
20915 "\n"
20916 msgstr ""
20917
20918 #. type: textblock
20919 #: ../fish/guestfish.pod:811
20920 msgid ""
20921 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
20922 "handles case insensitivity like Windows would.  This only works in argument "
20923 "positions that expect a path."
20924 msgstr ""
20925
20926 #. type: =head1
20927 #: ../fish/guestfish.pod:815
20928 msgid "UPLOADING AND DOWNLOADING FILES"
20929 msgstr ""
20930
20931 #. type: textblock
20932 #: ../fish/guestfish.pod:817
20933 msgid ""
20934 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20935 "others which upload from or download to a local file, you can use the "
20936 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20937 msgstr ""
20938
20939 #. type: verbatim
20940 #: ../fish/guestfish.pod:821
20941 #, no-wrap
20942 msgid ""
20943 " upload - /foo\n"
20944 "\n"
20945 msgstr ""
20946
20947 #. type: textblock
20948 #: ../fish/guestfish.pod:823
20949 msgid ""
20950 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20951 msgstr ""
20952
20953 #. type: verbatim
20954 #: ../fish/guestfish.pod:826
20955 #, no-wrap
20956 msgid ""
20957 " tar-out /etc - | tar tf -\n"
20958 "\n"
20959 msgstr ""
20960
20961 #. type: textblock
20962 #: ../fish/guestfish.pod:828
20963 msgid ""
20964 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20965 "command (see L</PIPES>)."
20966 msgstr ""
20967
20968 #. type: textblock
20969 #: ../fish/guestfish.pod:831
20970 msgid ""
20971 "When using C<-> to read from stdin, the input is read up to the end of "
20972 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20973 "some arbitrary end marker:"
20974 msgstr ""
20975
20976 #. type: verbatim
20977 #: ../fish/guestfish.pod:835
20978 #, no-wrap
20979 msgid ""
20980 " upload -<<END /foo\n"
20981 " input line 1\n"
20982 " input line 2\n"
20983 " input line 3\n"
20984 " END\n"
20985 "\n"
20986 msgstr ""
20987
20988 #. type: textblock
20989 #: ../fish/guestfish.pod:841
20990 msgid ""
20991 "Any string of characters can be used instead of C<END>.  The end marker must "
20992 "appear on a line of its own, without any preceeding or following characters "
20993 "(not even spaces)."
20994 msgstr ""
20995
20996 #. type: textblock
20997 #: ../fish/guestfish.pod:845
20998 msgid ""
20999 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21000 "upload local files (so-called \"FileIn\" parameters in the generator)."
21001 msgstr ""
21002
21003 #. type: =head1
21004 #: ../fish/guestfish.pod:848
21005 msgid "EXIT ON ERROR BEHAVIOUR"
21006 msgstr ""
21007
21008 #. type: textblock
21009 #: ../fish/guestfish.pod:850
21010 msgid ""
21011 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21012 "taking commands from a human over a tty), and will exit on the first error "
21013 "in non-interactive mode (scripts, commands given on the command line)."
21014 msgstr ""
21015
21016 #. type: textblock
21017 #: ../fish/guestfish.pod:855
21018 msgid ""
21019 "If you prefix a command with a I<-> character, then that command will not "
21020 "cause guestfish to exit, even if that (one) command returns an error."
21021 msgstr ""
21022
21023 #. type: =head1
21024 #: ../fish/guestfish.pod:859
21025 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21026 msgstr ""
21027
21028 #. type: textblock
21029 #: ../fish/guestfish.pod:861
21030 msgid ""
21031 "Guestfish can be remote-controlled over a socket.  This is useful "
21032 "particularly in shell scripts where you want to make several different "
21033 "changes to a filesystem, but you don't want the overhead of starting up a "
21034 "guestfish process each time."
21035 msgstr ""
21036
21037 #. type: textblock
21038 #: ../fish/guestfish.pod:866
21039 msgid "Start a guestfish server process using:"
21040 msgstr ""
21041
21042 #. type: verbatim
21043 #: ../fish/guestfish.pod:868
21044 #, no-wrap
21045 msgid ""
21046 " eval \"`guestfish --listen`\"\n"
21047 "\n"
21048 msgstr ""
21049
21050 #. type: textblock
21051 #: ../fish/guestfish.pod:870
21052 msgid "and then send it commands by doing:"
21053 msgstr ""
21054
21055 #. type: verbatim
21056 #: ../fish/guestfish.pod:872
21057 #, no-wrap
21058 msgid ""
21059 " guestfish --remote cmd [...]\n"
21060 "\n"
21061 msgstr ""
21062
21063 #. type: textblock
21064 #: ../fish/guestfish.pod:874
21065 msgid "To cause the server to exit, send it the exit command:"
21066 msgstr ""
21067
21068 #. type: verbatim
21069 #: ../fish/guestfish.pod:876
21070 #, no-wrap
21071 msgid ""
21072 " guestfish --remote exit\n"
21073 "\n"
21074 msgstr ""
21075
21076 #. type: textblock
21077 #: ../fish/guestfish.pod:878
21078 msgid ""
21079 "Note that the server will normally exit if there is an error in a command.  "
21080 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21081 "BEHAVIOUR>."
21082 msgstr ""
21083
21084 #. type: =head2
21085 #: ../fish/guestfish.pod:882
21086 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21087 msgstr ""
21088
21089 #. type: textblock
21090 #: ../fish/guestfish.pod:884
21091 msgid ""
21092 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21093 "is how the I<--remote> option knows where to send the commands.  You can "
21094 "have several guestfish listener processes running using:"
21095 msgstr ""
21096
21097 #. type: verbatim
21098 #: ../fish/guestfish.pod:888
21099 #, no-wrap
21100 msgid ""
21101 " eval \"`guestfish --listen`\"\n"
21102 " pid1=$GUESTFISH_PID\n"
21103 " eval \"`guestfish --listen`\"\n"
21104 " pid2=$GUESTFISH_PID\n"
21105 " ...\n"
21106 " guestfish --remote=$pid1 cmd\n"
21107 " guestfish --remote=$pid2 cmd\n"
21108 "\n"
21109 msgstr ""
21110
21111 #. type: =head2
21112 #: ../fish/guestfish.pod:896
21113 msgid "REMOTE CONTROL AND CSH"
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../fish/guestfish.pod:898
21118 msgid ""
21119 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21120 "option:"
21121 msgstr ""
21122
21123 #. type: verbatim
21124 #: ../fish/guestfish.pod:901
21125 #, no-wrap
21126 msgid ""
21127 " eval \"`guestfish --listen --csh`\"\n"
21128 "\n"
21129 msgstr ""
21130
21131 #. type: =head2
21132 #: ../fish/guestfish.pod:903
21133 msgid "REMOTE CONTROL DETAILS"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../fish/guestfish.pod:905
21138 msgid ""
21139 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21140 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21141 "and C<$PID> is the process ID of the server."
21142 msgstr ""
21143
21144 #. type: textblock
21145 #: ../fish/guestfish.pod:909
21146 msgid "Guestfish client and server versions must match exactly."
21147 msgstr ""
21148
21149 #. type: =head1
21150 #: ../fish/guestfish.pod:911
21151 msgid "PREPARED DISK IMAGES"
21152 msgstr ""
21153
21154 #. type: textblock
21155 #: ../fish/guestfish.pod:913
21156 msgid ""
21157 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21158 "preformatted disk images that guestfish can make for you to save typing.  "
21159 "This is particularly useful for testing purposes.  This option is used "
21160 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21161 "can be mixed with I<-a>)."
21162 msgstr ""
21163
21164 #. type: textblock
21165 #: ../fish/guestfish.pod:919
21166 msgid ""
21167 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21168 "the second and so on.  Existing files in the current directory are "
21169 "I<overwritten>."
21170 msgstr ""
21171
21172 #. type: textblock
21173 #: ../fish/guestfish.pod:923
21174 msgid ""
21175 "The type briefly describes how the disk should be sized, partitioned, how "
21176 "filesystem(s) should be created, and how content should be added.  "
21177 "Optionally the type can be followed by extra parameters, separated by C<:> "
21178 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21179 "allocated disk, containing a single partition, with the partition formatted "
21180 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21181 "disk instead."
21182 msgstr ""
21183
21184 #. type: textblock
21185 #: ../fish/guestfish.pod:931
21186 msgid "To list the available types and any extra parameters they take, run:"
21187 msgstr ""
21188
21189 #. type: textblock
21190 #: ../fish/guestfish.pod:935
21191 msgid ""
21192 "Note that the prepared filesystem is not mounted.  You would usually have to "
21193 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21194 msgstr ""
21195
21196 #. type: textblock
21197 #: ../fish/guestfish.pod:939
21198 msgid ""
21199 "If any I<-N> or I<--new> options are given, the guest is automatically "
21200 "launched."
21201 msgstr ""
21202
21203 #. type: textblock
21204 #: ../fish/guestfish.pod:944
21205 msgid "Create a 100MB disk with an ext4-formatted partition:"
21206 msgstr ""
21207
21208 #. type: verbatim
21209 #: ../fish/guestfish.pod:946
21210 #, no-wrap
21211 msgid ""
21212 " guestfish -N fs:ext4\n"
21213 "\n"
21214 msgstr ""
21215
21216 #. type: textblock
21217 #: ../fish/guestfish.pod:948
21218 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21219 msgstr ""
21220
21221 #. type: verbatim
21222 #: ../fish/guestfish.pod:950
21223 #, no-wrap
21224 msgid ""
21225 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21226 "\n"
21227 msgstr ""
21228
21229 #. type: textblock
21230 #: ../fish/guestfish.pod:952
21231 msgid "Create a blank 200MB disk:"
21232 msgstr ""
21233
21234 #. type: verbatim
21235 #: ../fish/guestfish.pod:954
21236 #, no-wrap
21237 msgid ""
21238 " guestfish -N disk:200M\n"
21239 "\n"
21240 msgstr ""
21241
21242 #. type: =head1
21243 #: ../fish/guestfish.pod:956
21244 msgid "PROGRESS BARS"
21245 msgstr ""
21246
21247 #. type: textblock
21248 #: ../fish/guestfish.pod:958
21249 msgid ""
21250 "Some (not all) long-running commands send progress notification messages as "
21251 "they are running.  Guestfish turns these messages into progress bars."
21252 msgstr ""
21253
21254 #. type: textblock
21255 #: ../fish/guestfish.pod:962
21256 msgid ""
21257 "When a command that supports progress bars takes longer than two seconds to "
21258 "run, and if progress bars are enabled, then you will see one appearing below "
21259 "the command:"
21260 msgstr ""
21261
21262 #. type: verbatim
21263 #: ../fish/guestfish.pod:966
21264 #, no-wrap
21265 msgid ""
21266 " ><fs> copy-size /large-file /another-file 2048M\n"
21267 " / 10% [#####-----------------------------------------] 00:30\n"
21268 "\n"
21269 msgstr ""
21270
21271 #. type: textblock
21272 #: ../fish/guestfish.pod:969
21273 msgid ""
21274 "The spinner on the left hand side moves round once for every progress "
21275 "notification received from the backend.  This is a (reasonably) golden "
21276 "assurance that the command is \"doing something\" even if the progress bar "
21277 "is not moving, because the command is able to send the progress "
21278 "notifications.  When the bar reaches 100% and the command finishes, the "
21279 "spinner disappears."
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../fish/guestfish.pod:976
21284 msgid ""
21285 "Progress bars are enabled by default when guestfish is used interactively.  "
21286 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21287 "and you can disable them completely using I<--no-progress-bars>."
21288 msgstr ""
21289
21290 #. type: =head1
21291 #: ../fish/guestfish.pod:981
21292 msgid "GUESTFISH COMMANDS"
21293 msgstr ""
21294
21295 #. type: textblock
21296 #: ../fish/guestfish.pod:983
21297 msgid ""
21298 "The commands in this section are guestfish convenience commands, in other "
21299 "words, they are not part of the L<guestfs(3)> API."
21300 msgstr ""
21301
21302 #. type: =head2
21303 #: ../fish/guestfish.pod:986
21304 msgid "help"
21305 msgstr ""
21306
21307 #. type: verbatim
21308 #: ../fish/guestfish.pod:988
21309 #, no-wrap
21310 msgid ""
21311 " help\n"
21312 " help cmd\n"
21313 "\n"
21314 msgstr ""
21315
21316 #. type: textblock
21317 #: ../fish/guestfish.pod:991
21318 msgid "Without any parameter, this provides general help."
21319 msgstr ""
21320
21321 #. type: textblock
21322 #: ../fish/guestfish.pod:993
21323 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21324 msgstr ""
21325
21326 #. type: =head2
21327 #: ../fish/guestfish.pod:995
21328 msgid "quit | exit"
21329 msgstr ""
21330
21331 #. type: textblock
21332 #: ../fish/guestfish.pod:997
21333 msgid "This exits guestfish.  You can also use C<^D> key."
21334 msgstr ""
21335
21336 #. type: textblock
21337 #: ../fish/guestfish.pod:999
21338 msgid "@FISH_COMMANDS@"
21339 msgstr ""
21340
21341 #. type: =head1
21342 #: ../fish/guestfish.pod:1001
21343 msgid "COMMANDS"
21344 msgstr ""
21345
21346 #. type: =head1
21347 #: ../fish/guestfish.pod:1005 ../test-tool/libguestfs-test-tool.pod:77
21348 msgid "EXIT CODE"
21349 msgstr ""
21350
21351 #. type: textblock
21352 #: ../fish/guestfish.pod:1007
21353 msgid ""
21354 "guestfish returns 0 if the commands completed without error, or 1 if there "
21355 "was an error."
21356 msgstr ""
21357
21358 #. type: =item
21359 #: ../fish/guestfish.pod:1014
21360 msgid "EDITOR"
21361 msgstr ""
21362
21363 #. type: textblock
21364 #: ../fish/guestfish.pod:1016
21365 msgid ""
21366 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21367 "C<vi>."
21368 msgstr ""
21369
21370 #. type: =item
21371 #: ../fish/guestfish.pod:1019
21372 msgid "GUESTFISH_PID"
21373 msgstr ""
21374
21375 #. type: textblock
21376 #: ../fish/guestfish.pod:1021
21377 msgid ""
21378 "Used with the I<--remote> option to specify the remote guestfish process to "
21379 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21380 msgstr ""
21381
21382 #. type: =item
21383 #: ../fish/guestfish.pod:1025
21384 msgid "HEXEDITOR"
21385 msgstr ""
21386
21387 #. type: textblock
21388 #: ../fish/guestfish.pod:1027
21389 msgid ""
21390 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21391 "not specified, the external L<hexedit(1)> program is used."
21392 msgstr ""
21393
21394 #. type: =item
21395 #: ../fish/guestfish.pod:1031
21396 msgid "HOME"
21397 msgstr ""
21398
21399 #. type: textblock
21400 #: ../fish/guestfish.pod:1033
21401 msgid ""
21402 "If compiled with GNU readline support, various files in the home directory "
21403 "can be used.  See L</FILES>."
21404 msgstr ""
21405
21406 #. type: textblock
21407 #: ../fish/guestfish.pod:1042
21408 msgid ""
21409 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21410 "effect as using the B<-v> option."
21411 msgstr ""
21412
21413 #. type: textblock
21414 #: ../fish/guestfish.pod:1054
21415 msgid ""
21416 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21417 "the discussion of paths in L<guestfs(3)>."
21418 msgstr ""
21419
21420 #. type: textblock
21421 #: ../fish/guestfish.pod:1065
21422 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21423 msgstr ""
21424
21425 #. type: =item
21426 #: ../fish/guestfish.pod:1067
21427 msgid "PAGER"
21428 msgstr ""
21429
21430 #. type: textblock
21431 #: ../fish/guestfish.pod:1069
21432 msgid ""
21433 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21434 "C<more>."
21435 msgstr ""
21436
21437 #. type: =head1
21438 #: ../fish/guestfish.pod:1085 ../fuse/guestmount.pod:252
21439 msgid "FILES"
21440 msgstr ""
21441
21442 #. type: =item
21443 #: ../fish/guestfish.pod:1089 ../fuse/guestmount.pod:256
21444 msgid "$HOME/.libguestfs-tools.rc"
21445 msgstr ""
21446
21447 #. type: =item
21448 #: ../fish/guestfish.pod:1091 ../fuse/guestmount.pod:258
21449 msgid "/etc/libguestfs-tools.conf"
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../fish/guestfish.pod:1093 ../fuse/guestmount.pod:260
21454 msgid ""
21455 "This configuration file controls the default read-only or read-write mode "
21456 "(I<--ro> or I<--rw>)."
21457 msgstr ""
21458
21459 #. type: textblock
21460 #: ../fish/guestfish.pod:1096
21461 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21462 msgstr ""
21463
21464 #. type: =item
21465 #: ../fish/guestfish.pod:1098
21466 msgid "$HOME/.guestfish"
21467 msgstr ""
21468
21469 #. type: textblock
21470 #: ../fish/guestfish.pod:1100
21471 msgid ""
21472 "If compiled with GNU readline support, then the command history is saved in "
21473 "this file."
21474 msgstr ""
21475
21476 #. type: =item
21477 #: ../fish/guestfish.pod:1103
21478 msgid "$HOME/.inputrc"
21479 msgstr ""
21480
21481 #. type: =item
21482 #: ../fish/guestfish.pod:1105
21483 msgid "/etc/inputrc"
21484 msgstr ""
21485
21486 #. type: textblock
21487 #: ../fish/guestfish.pod:1107
21488 msgid ""
21489 "If compiled with GNU readline support, then these files can be used to "
21490 "configure readline.  For further information, please see L<readline(3)/"
21491 "INITIALIZATION FILE>."
21492 msgstr ""
21493
21494 #. type: textblock
21495 #: ../fish/guestfish.pod:1111
21496 msgid "To write rules which only apply to guestfish, use:"
21497 msgstr ""
21498
21499 #. type: verbatim
21500 #: ../fish/guestfish.pod:1113
21501 #, no-wrap
21502 msgid ""
21503 " $if guestfish\n"
21504 " ...\n"
21505 " $endif\n"
21506 "\n"
21507 msgstr ""
21508
21509 #. type: textblock
21510 #: ../fish/guestfish.pod:1117
21511 msgid ""
21512 "Variables that you can set in inputrc that change the behaviour of guestfish "
21513 "in useful ways include:"
21514 msgstr ""
21515
21516 #. type: =item
21517 #: ../fish/guestfish.pod:1122
21518 msgid "completion-ignore-case (default: on)"
21519 msgstr ""
21520
21521 #. type: textblock
21522 #: ../fish/guestfish.pod:1124
21523 msgid ""
21524 "By default, guestfish will ignore case when tab-completing paths on the "
21525 "disk.  Use:"
21526 msgstr ""
21527
21528 #. type: verbatim
21529 #: ../fish/guestfish.pod:1127
21530 #, no-wrap
21531 msgid ""
21532 " set completion-ignore-case off\n"
21533 "\n"
21534 msgstr ""
21535
21536 #. type: textblock
21537 #: ../fish/guestfish.pod:1129
21538 msgid "to make guestfish case sensitive."
21539 msgstr ""
21540
21541 #. type: =item
21542 #: ../fish/guestfish.pod:1133
21543 msgid "test1.img"
21544 msgstr ""
21545
21546 #. type: =item
21547 #: ../fish/guestfish.pod:1135
21548 msgid "test2.img (etc)"
21549 msgstr ""
21550
21551 #. type: textblock
21552 #: ../fish/guestfish.pod:1137
21553 msgid ""
21554 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
21555 "will be created in the file C<test1.img> in the current directory.  The "
21556 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
21557 "the same name will be overwritten."
21558 msgstr ""
21559
21560 #. type: textblock
21561 #: ../fish/guestfish.pod:1146
21562 msgid ""
21563 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
21564 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
21565 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
21566 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
21567 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
21568 ">, L<hexedit(1)>."
21569 msgstr ""
21570
21571 #. type: textblock
21572 #: ../fish/guestfish.pod:1176 ../test-tool/libguestfs-test-tool.pod:102
21573 #: ../fuse/guestmount.pod:287 ../tools/virt-edit.pl:518
21574 #: ../tools/virt-win-reg.pl:606 ../tools/virt-list-filesystems.pl:210
21575 #: ../tools/virt-tar.pl:309 ../tools/virt-make-fs.pl:572
21576 #: ../tools/virt-list-partitions.pl:277
21577 msgid ""
21578 "This program is free software; you can redistribute it and/or modify it "
21579 "under the terms of the GNU General Public License as published by the Free "
21580 "Software Foundation; either version 2 of the License, or (at your option) "
21581 "any later version."
21582 msgstr ""
21583
21584 #. type: textblock
21585 #: ../fish/guestfish.pod:1181 ../test-tool/libguestfs-test-tool.pod:107
21586 #: ../fuse/guestmount.pod:292 ../tools/virt-edit.pl:523
21587 #: ../tools/virt-win-reg.pl:611 ../tools/virt-list-filesystems.pl:215
21588 #: ../tools/virt-tar.pl:314 ../tools/virt-make-fs.pl:577
21589 #: ../tools/virt-list-partitions.pl:282
21590 msgid ""
21591 "This program is distributed in the hope that it will be useful, but WITHOUT "
21592 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
21593 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
21594 "more details."
21595 msgstr ""
21596
21597 #. type: textblock
21598 #: ../fish/guestfish.pod:1186 ../test-tool/libguestfs-test-tool.pod:112
21599 #: ../fuse/guestmount.pod:297 ../tools/virt-edit.pl:528
21600 #: ../tools/virt-win-reg.pl:616 ../tools/virt-list-filesystems.pl:220
21601 #: ../tools/virt-tar.pl:319 ../tools/virt-make-fs.pl:582
21602 #: ../tools/virt-list-partitions.pl:287
21603 msgid ""
21604 "You should have received a copy of the GNU General Public License along with "
21605 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
21606 "Ave, Cambridge, MA 02139, USA."
21607 msgstr ""
21608
21609 #. type: =head2
21610 #: ../fish/guestfish-actions.pod:1
21611 msgid "add-cdrom"
21612 msgstr ""
21613
21614 #. type: verbatim
21615 #: ../fish/guestfish-actions.pod:3
21616 #, no-wrap
21617 msgid ""
21618 " add-cdrom filename\n"
21619 "\n"
21620 msgstr ""
21621
21622 #. type: textblock
21623 #: ../fish/guestfish-actions.pod:15
21624 msgid ""
21625 "This call checks for the existence of C<filename>.  This stops you from "
21626 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21627 "and C<http:> URLs.  To specify those, use the general L</config> call "
21628 "instead."
21629 msgstr ""
21630
21631 #. type: textblock
21632 #: ../fish/guestfish-actions.pod:22
21633 msgid ""
21634 "If you just want to add an ISO file (often you use this as an efficient way "
21635 "to transfer large files into the guest), then you should probably use L</add-"
21636 "drive-ro> instead."
21637 msgstr ""
21638
21639 #. type: =head2
21640 #: ../fish/guestfish-actions.pod:35
21641 msgid "add-domain"
21642 msgstr ""
21643
21644 #. type: =head2
21645 #: ../fish/guestfish-actions.pod:37
21646 msgid "domain"
21647 msgstr ""
21648
21649 #. type: verbatim
21650 #: ../fish/guestfish-actions.pod:39
21651 #, no-wrap
21652 msgid ""
21653 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..]\n"
21654 "\n"
21655 msgstr ""
21656
21657 #. type: textblock
21658 #: ../fish/guestfish-actions.pod:41
21659 msgid ""
21660 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21661 "It works by connecting to libvirt, requesting the domain and domain XML from "
21662 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
21663 msgstr ""
21664
21665 #. type: textblock
21666 #: ../fish/guestfish-actions.pod:71
21667 msgid ""
21668 "The other optional parameters are passed directly through to L</add-drive-"
21669 "opts>."
21670 msgstr ""
21671
21672 #. type: textblock
21673 #: ../fish/guestfish-actions.pod:74 ../fish/guestfish-actions.pod:138
21674 #: ../fish/guestfish-actions.pod:3039
21675 msgid ""
21676 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
21677 msgstr ""
21678
21679 #. type: =head2
21680 #: ../fish/guestfish-actions.pod:76
21681 msgid "add-drive"
21682 msgstr ""
21683
21684 #. type: verbatim
21685 #: ../fish/guestfish-actions.pod:78
21686 #, no-wrap
21687 msgid ""
21688 " add-drive filename\n"
21689 "\n"
21690 msgstr ""
21691
21692 #. type: textblock
21693 #: ../fish/guestfish-actions.pod:80
21694 msgid ""
21695 "This function is the equivalent of calling L</add-drive-opts> with no "
21696 "optional parameters, so the disk is added writable, with the format being "
21697 "detected automatically."
21698 msgstr ""
21699
21700 #. type: textblock
21701 #: ../fish/guestfish-actions.pod:84
21702 msgid ""
21703 "Automatic detection of the format opens you up to a potential security hole "
21704 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21705 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21706 "you should think about replacing calls to this function with calls to L</add-"
21707 "drive-opts>, and specifying the format."
21708 msgstr ""
21709
21710 #. type: =head2
21711 #: ../fish/guestfish-actions.pod:91
21712 msgid "add-drive-opts"
21713 msgstr ""
21714
21715 #. type: =head2
21716 #: ../fish/guestfish-actions.pod:93
21717 msgid "add"
21718 msgstr ""
21719
21720 #. type: verbatim
21721 #: ../fish/guestfish-actions.pod:95
21722 #, no-wrap
21723 msgid ""
21724 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
21725 "\n"
21726 msgstr ""
21727
21728 #. type: textblock
21729 #: ../fish/guestfish-actions.pod:122
21730 msgid ""
21731 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
21732 "add-drive-ro>) then the format is automatically detected.  Possible formats "
21733 "include C<raw> and C<qcow2>."
21734 msgstr ""
21735
21736 #. type: textblock
21737 #: ../fish/guestfish-actions.pod:133
21738 msgid ""
21739 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
21740 "add-drive-with-if> call (q.v.)"
21741 msgstr ""
21742
21743 #. type: =head2
21744 #: ../fish/guestfish-actions.pod:140
21745 msgid "add-drive-ro"
21746 msgstr ""
21747
21748 #. type: =head2
21749 #: ../fish/guestfish-actions.pod:142
21750 msgid "add-ro"
21751 msgstr ""
21752
21753 #. type: verbatim
21754 #: ../fish/guestfish-actions.pod:144
21755 #, no-wrap
21756 msgid ""
21757 " add-drive-ro filename\n"
21758 "\n"
21759 msgstr ""
21760
21761 #. type: textblock
21762 #: ../fish/guestfish-actions.pod:146
21763 msgid ""
21764 "This function is the equivalent of calling L</add-drive-opts> with the "
21765 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
21766 "is added read-only, with the format being detected automatically."
21767 msgstr ""
21768
21769 #. type: =head2
21770 #: ../fish/guestfish-actions.pod:151
21771 msgid "add-drive-ro-with-if"
21772 msgstr ""
21773
21774 #. type: verbatim
21775 #: ../fish/guestfish-actions.pod:153
21776 #, no-wrap
21777 msgid ""
21778 " add-drive-ro-with-if filename iface\n"
21779 "\n"
21780 msgstr ""
21781
21782 #. type: textblock
21783 #: ../fish/guestfish-actions.pod:155
21784 msgid ""
21785 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
21786 "interface emulation to use at run time."
21787 msgstr ""
21788
21789 #. type: =head2
21790 #: ../fish/guestfish-actions.pod:165
21791 msgid "add-drive-with-if"
21792 msgstr ""
21793
21794 #. type: verbatim
21795 #: ../fish/guestfish-actions.pod:167
21796 #, no-wrap
21797 msgid ""
21798 " add-drive-with-if filename iface\n"
21799 "\n"
21800 msgstr ""
21801
21802 #. type: textblock
21803 #: ../fish/guestfish-actions.pod:169
21804 msgid ""
21805 "This is the same as L</add-drive> but it allows you to specify the QEMU "
21806 "interface emulation to use at run time."
21807 msgstr ""
21808
21809 #. type: =head2
21810 #: ../fish/guestfish-actions.pod:179
21811 msgid "aug-clear"
21812 msgstr ""
21813
21814 #. type: verbatim
21815 #: ../fish/guestfish-actions.pod:181
21816 #, no-wrap
21817 msgid ""
21818 " aug-clear augpath\n"
21819 "\n"
21820 msgstr ""
21821
21822 #. type: =head2
21823 #: ../fish/guestfish-actions.pod:186
21824 msgid "aug-close"
21825 msgstr ""
21826
21827 #. type: verbatim
21828 #: ../fish/guestfish-actions.pod:188
21829 #, no-wrap
21830 msgid ""
21831 " aug-close\n"
21832 "\n"
21833 msgstr ""
21834
21835 #. type: textblock
21836 #: ../fish/guestfish-actions.pod:190
21837 msgid ""
21838 "Close the current Augeas handle and free up any resources used by it.  After "
21839 "calling this, you have to call L</aug-init> again before you can use any "
21840 "other Augeas functions."
21841 msgstr ""
21842
21843 #. type: =head2
21844 #: ../fish/guestfish-actions.pod:195
21845 msgid "aug-defnode"
21846 msgstr ""
21847
21848 #. type: verbatim
21849 #: ../fish/guestfish-actions.pod:197
21850 #, no-wrap
21851 msgid ""
21852 " aug-defnode name expr val\n"
21853 "\n"
21854 msgstr ""
21855
21856 #. type: textblock
21857 #: ../fish/guestfish-actions.pod:202
21858 msgid ""
21859 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
21860 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
21861 "containing that single node."
21862 msgstr ""
21863
21864 #. type: =head2
21865 #: ../fish/guestfish-actions.pod:210
21866 msgid "aug-defvar"
21867 msgstr ""
21868
21869 #. type: verbatim
21870 #: ../fish/guestfish-actions.pod:212
21871 #, no-wrap
21872 msgid ""
21873 " aug-defvar name expr\n"
21874 "\n"
21875 msgstr ""
21876
21877 #. type: =head2
21878 #: ../fish/guestfish-actions.pod:221
21879 msgid "aug-get"
21880 msgstr ""
21881
21882 #. type: verbatim
21883 #: ../fish/guestfish-actions.pod:223
21884 #, no-wrap
21885 msgid ""
21886 " aug-get augpath\n"
21887 "\n"
21888 msgstr ""
21889
21890 #. type: =head2
21891 #: ../fish/guestfish-actions.pod:228
21892 msgid "aug-init"
21893 msgstr ""
21894
21895 #. type: verbatim
21896 #: ../fish/guestfish-actions.pod:230
21897 #, no-wrap
21898 msgid ""
21899 " aug-init root flags\n"
21900 "\n"
21901 msgstr ""
21902
21903 #. type: textblock
21904 #: ../fish/guestfish-actions.pod:236
21905 msgid "You must call this before using any other L</aug-*> commands."
21906 msgstr ""
21907
21908 #. type: textblock
21909 #: ../fish/guestfish-actions.pod:271
21910 msgid "Do not load the tree in L</aug-init>."
21911 msgstr ""
21912
21913 #. type: textblock
21914 #: ../fish/guestfish-actions.pod:275
21915 msgid "To close the handle, you can call L</aug-close>."
21916 msgstr ""
21917
21918 #. type: =head2
21919 #: ../fish/guestfish-actions.pod:279
21920 msgid "aug-insert"
21921 msgstr ""
21922
21923 #. type: verbatim
21924 #: ../fish/guestfish-actions.pod:281
21925 #, no-wrap
21926 msgid ""
21927 " aug-insert augpath label true|false\n"
21928 "\n"
21929 msgstr ""
21930
21931 #. type: =head2
21932 #: ../fish/guestfish-actions.pod:291
21933 msgid "aug-load"
21934 msgstr ""
21935
21936 #. type: verbatim
21937 #: ../fish/guestfish-actions.pod:293
21938 #, no-wrap
21939 msgid ""
21940 " aug-load\n"
21941 "\n"
21942 msgstr ""
21943
21944 #. type: =head2
21945 #: ../fish/guestfish-actions.pod:300
21946 msgid "aug-ls"
21947 msgstr ""
21948
21949 #. type: verbatim
21950 #: ../fish/guestfish-actions.pod:302
21951 #, no-wrap
21952 msgid ""
21953 " aug-ls augpath\n"
21954 "\n"
21955 msgstr ""
21956
21957 #. type: textblock
21958 #: ../fish/guestfish-actions.pod:304
21959 msgid ""
21960 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
21961 "resulting nodes into alphabetical order."
21962 msgstr ""
21963
21964 #. type: =head2
21965 #: ../fish/guestfish-actions.pod:307
21966 msgid "aug-match"
21967 msgstr ""
21968
21969 #. type: verbatim
21970 #: ../fish/guestfish-actions.pod:309
21971 #, no-wrap
21972 msgid ""
21973 " aug-match augpath\n"
21974 "\n"
21975 msgstr ""
21976
21977 #. type: =head2
21978 #: ../fish/guestfish-actions.pod:315
21979 msgid "aug-mv"
21980 msgstr ""
21981
21982 #. type: verbatim
21983 #: ../fish/guestfish-actions.pod:317
21984 #, no-wrap
21985 msgid ""
21986 " aug-mv src dest\n"
21987 "\n"
21988 msgstr ""
21989
21990 #. type: =head2
21991 #: ../fish/guestfish-actions.pod:322
21992 msgid "aug-rm"
21993 msgstr ""
21994
21995 #. type: verbatim
21996 #: ../fish/guestfish-actions.pod:324
21997 #, no-wrap
21998 msgid ""
21999 " aug-rm augpath\n"
22000 "\n"
22001 msgstr ""
22002
22003 #. type: =head2
22004 #: ../fish/guestfish-actions.pod:330
22005 msgid "aug-save"
22006 msgstr ""
22007
22008 #. type: verbatim
22009 #: ../fish/guestfish-actions.pod:332
22010 #, no-wrap
22011 msgid ""
22012 " aug-save\n"
22013 "\n"
22014 msgstr ""
22015
22016 #. type: textblock
22017 #: ../fish/guestfish-actions.pod:336
22018 msgid ""
22019 "The flags which were passed to L</aug-init> affect exactly how files are "
22020 "saved."
22021 msgstr ""
22022
22023 #. type: =head2
22024 #: ../fish/guestfish-actions.pod:339
22025 msgid "aug-set"
22026 msgstr ""
22027
22028 #. type: verbatim
22029 #: ../fish/guestfish-actions.pod:341
22030 #, no-wrap
22031 msgid ""
22032 " aug-set augpath val\n"
22033 "\n"
22034 msgstr ""
22035
22036 #. type: textblock
22037 #: ../fish/guestfish-actions.pod:345
22038 msgid ""
22039 "In the Augeas API, it is possible to clear a node by setting the value to "
22040 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22041 "this call.  Instead you must use the L</aug-clear> call."
22042 msgstr ""
22043
22044 #. type: =head2
22045 #: ../fish/guestfish-actions.pod:350
22046 msgid "available"
22047 msgstr ""
22048
22049 #. type: verbatim
22050 #: ../fish/guestfish-actions.pod:352
22051 #, no-wrap
22052 msgid ""
22053 " available 'groups ...'\n"
22054 "\n"
22055 msgstr ""
22056
22057 #. type: textblock
22058 #: ../fish/guestfish-actions.pod:358
22059 msgid ""
22060 "The libguestfs groups, and the functions that those groups correspond to, "
22061 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22062 "runtime by calling L</available-all-groups>."
22063 msgstr ""
22064
22065 #. type: textblock
22066 #: ../fish/guestfish-actions.pod:382
22067 msgid "You must call L</launch> before calling this function."
22068 msgstr ""
22069
22070 #. type: textblock
22071 #: ../fish/guestfish-actions.pod:404
22072 msgid ""
22073 "This call was added in version C<1.0.80>.  In previous versions of "
22074 "libguestfs all you could do would be to speculatively execute a command to "
22075 "find out if the daemon implemented it.  See also L</version>."
22076 msgstr ""
22077
22078 #. type: =head2
22079 #: ../fish/guestfish-actions.pod:411
22080 msgid "available-all-groups"
22081 msgstr ""
22082
22083 #. type: verbatim
22084 #: ../fish/guestfish-actions.pod:413
22085 #, no-wrap
22086 msgid ""
22087 " available-all-groups\n"
22088 "\n"
22089 msgstr ""
22090
22091 #. type: textblock
22092 #: ../fish/guestfish-actions.pod:415
22093 msgid ""
22094 "This command returns a list of all optional groups that this daemon knows "
22095 "about.  Note this returns both supported and unsupported groups.  To find "
22096 "out which ones the daemon can actually support you have to call L</"
22097 "available> on each member of the returned list."
22098 msgstr ""
22099
22100 #. type: textblock
22101 #: ../fish/guestfish-actions.pod:421
22102 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
22103 msgstr ""
22104
22105 #. type: =head2
22106 #: ../fish/guestfish-actions.pod:423
22107 msgid "base64-in"
22108 msgstr ""
22109
22110 #. type: verbatim
22111 #: ../fish/guestfish-actions.pod:425
22112 #, no-wrap
22113 msgid ""
22114 " base64-in (base64file|-) filename\n"
22115 "\n"
22116 msgstr ""
22117
22118 #. type: textblock
22119 #: ../fish/guestfish-actions.pod:430 ../fish/guestfish-actions.pod:439
22120 #: ../fish/guestfish-actions.pod:663 ../fish/guestfish-actions.pod:832
22121 #: ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1228
22122 #: ../fish/guestfish-actions.pod:4437 ../fish/guestfish-actions.pod:4449
22123 #: ../fish/guestfish-actions.pod:4460 ../fish/guestfish-actions.pod:4471
22124 #: ../fish/guestfish-actions.pod:4523 ../fish/guestfish-actions.pod:4532
22125 #: ../fish/guestfish-actions.pod:4586 ../fish/guestfish-actions.pod:4609
22126 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
22127 msgstr ""
22128
22129 #. type: =head2
22130 #: ../fish/guestfish-actions.pod:432
22131 msgid "base64-out"
22132 msgstr ""
22133
22134 #. type: verbatim
22135 #: ../fish/guestfish-actions.pod:434
22136 #, no-wrap
22137 msgid ""
22138 " base64-out filename (base64file|-)\n"
22139 "\n"
22140 msgstr ""
22141
22142 #. type: =head2
22143 #: ../fish/guestfish-actions.pod:441
22144 msgid "blockdev-flushbufs"
22145 msgstr ""
22146
22147 #. type: verbatim
22148 #: ../fish/guestfish-actions.pod:443
22149 #, no-wrap
22150 msgid ""
22151 " blockdev-flushbufs device\n"
22152 "\n"
22153 msgstr ""
22154
22155 #. type: =head2
22156 #: ../fish/guestfish-actions.pod:450
22157 msgid "blockdev-getbsz"
22158 msgstr ""
22159
22160 #. type: verbatim
22161 #: ../fish/guestfish-actions.pod:452
22162 #, no-wrap
22163 msgid ""
22164 " blockdev-getbsz device\n"
22165 "\n"
22166 msgstr ""
22167
22168 #. type: =head2
22169 #: ../fish/guestfish-actions.pod:461
22170 msgid "blockdev-getro"
22171 msgstr ""
22172
22173 #. type: verbatim
22174 #: ../fish/guestfish-actions.pod:463
22175 #, no-wrap
22176 msgid ""
22177 " blockdev-getro device\n"
22178 "\n"
22179 msgstr ""
22180
22181 #. type: =head2
22182 #: ../fish/guestfish-actions.pod:470
22183 msgid "blockdev-getsize64"
22184 msgstr ""
22185
22186 #. type: verbatim
22187 #: ../fish/guestfish-actions.pod:472
22188 #, no-wrap
22189 msgid ""
22190 " blockdev-getsize64 device\n"
22191 "\n"
22192 msgstr ""
22193
22194 #. type: textblock
22195 #: ../fish/guestfish-actions.pod:476
22196 msgid "See also L</blockdev-getsz>."
22197 msgstr ""
22198
22199 #. type: =head2
22200 #: ../fish/guestfish-actions.pod:480
22201 msgid "blockdev-getss"
22202 msgstr ""
22203
22204 #. type: verbatim
22205 #: ../fish/guestfish-actions.pod:482
22206 #, no-wrap
22207 msgid ""
22208 " blockdev-getss device\n"
22209 "\n"
22210 msgstr ""
22211
22212 #. type: textblock
22213 #: ../fish/guestfish-actions.pod:487
22214 msgid ""
22215 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
22216 msgstr ""
22217
22218 #. type: =head2
22219 #: ../fish/guestfish-actions.pod:492
22220 msgid "blockdev-getsz"
22221 msgstr ""
22222
22223 #. type: verbatim
22224 #: ../fish/guestfish-actions.pod:494
22225 #, no-wrap
22226 msgid ""
22227 " blockdev-getsz device\n"
22228 "\n"
22229 msgstr ""
22230
22231 #. type: textblock
22232 #: ../fish/guestfish-actions.pod:499
22233 msgid ""
22234 "See also L</blockdev-getss> for the real sector size of the device, and L</"
22235 "blockdev-getsize64> for the more useful I<size in bytes>."
22236 msgstr ""
22237
22238 #. type: =head2
22239 #: ../fish/guestfish-actions.pod:505
22240 msgid "blockdev-rereadpt"
22241 msgstr ""
22242
22243 #. type: verbatim
22244 #: ../fish/guestfish-actions.pod:507
22245 #, no-wrap
22246 msgid ""
22247 " blockdev-rereadpt device\n"
22248 "\n"
22249 msgstr ""
22250
22251 #. type: =head2
22252 #: ../fish/guestfish-actions.pod:513
22253 msgid "blockdev-setbsz"
22254 msgstr ""
22255
22256 #. type: verbatim
22257 #: ../fish/guestfish-actions.pod:515
22258 #, no-wrap
22259 msgid ""
22260 " blockdev-setbsz device blocksize\n"
22261 "\n"
22262 msgstr ""
22263
22264 #. type: =head2
22265 #: ../fish/guestfish-actions.pod:524
22266 msgid "blockdev-setro"
22267 msgstr ""
22268
22269 #. type: verbatim
22270 #: ../fish/guestfish-actions.pod:526
22271 #, no-wrap
22272 msgid ""
22273 " blockdev-setro device\n"
22274 "\n"
22275 msgstr ""
22276
22277 #. type: =head2
22278 #: ../fish/guestfish-actions.pod:532
22279 msgid "blockdev-setrw"
22280 msgstr ""
22281
22282 #. type: verbatim
22283 #: ../fish/guestfish-actions.pod:534
22284 #, no-wrap
22285 msgid ""
22286 " blockdev-setrw device\n"
22287 "\n"
22288 msgstr ""
22289
22290 #. type: =head2
22291 #: ../fish/guestfish-actions.pod:540
22292 msgid "case-sensitive-path"
22293 msgstr ""
22294
22295 #. type: verbatim
22296 #: ../fish/guestfish-actions.pod:542
22297 #, no-wrap
22298 msgid ""
22299 " case-sensitive-path path\n"
22300 "\n"
22301 msgstr ""
22302
22303 #. type: textblock
22304 #: ../fish/guestfish-actions.pod:566
22305 msgid ""
22306 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
22307 "WINDOWS/system32\"> (the exact return value would depend on details of how "
22308 "the directories were originally created under Windows)."
22309 msgstr ""
22310
22311 #. type: textblock
22312 #: ../fish/guestfish-actions.pod:574
22313 msgid "See also L</realpath>."
22314 msgstr ""
22315
22316 #. type: =head2
22317 #: ../fish/guestfish-actions.pod:576
22318 msgid "cat"
22319 msgstr ""
22320
22321 #. type: verbatim
22322 #: ../fish/guestfish-actions.pod:578
22323 #, no-wrap
22324 msgid ""
22325 " cat path\n"
22326 "\n"
22327 msgstr ""
22328
22329 #. type: textblock
22330 #: ../fish/guestfish-actions.pod:582
22331 msgid ""
22332 "Note that this function cannot correctly handle binary files (specifically, "
22333 "files containing C<\\0> character which is treated as end of string).  For "
22334 "those you need to use the L</read-file> or L</download> functions which have "
22335 "a more complex interface."
22336 msgstr ""
22337
22338 #. type: =head2
22339 #: ../fish/guestfish-actions.pod:590
22340 msgid "checksum"
22341 msgstr ""
22342
22343 #. type: verbatim
22344 #: ../fish/guestfish-actions.pod:592
22345 #, no-wrap
22346 msgid ""
22347 " checksum csumtype path\n"
22348 "\n"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../fish/guestfish-actions.pod:635
22353 msgid "To get the checksum for a device, use L</checksum-device>."
22354 msgstr ""
22355
22356 #. type: textblock
22357 #: ../fish/guestfish-actions.pod:637
22358 msgid "To get the checksums for many files, use L</checksums-out>."
22359 msgstr ""
22360
22361 #. type: =head2
22362 #: ../fish/guestfish-actions.pod:639
22363 msgid "checksum-device"
22364 msgstr ""
22365
22366 #. type: verbatim
22367 #: ../fish/guestfish-actions.pod:641
22368 #, no-wrap
22369 msgid ""
22370 " checksum-device csumtype device\n"
22371 "\n"
22372 msgstr ""
22373
22374 #. type: textblock
22375 #: ../fish/guestfish-actions.pod:643
22376 msgid ""
22377 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22378 "device named C<device>.  For the types of checksums supported see the L</"
22379 "checksum> command."
22380 msgstr ""
22381
22382 #. type: =head2
22383 #: ../fish/guestfish-actions.pod:647
22384 msgid "checksums-out"
22385 msgstr ""
22386
22387 #. type: verbatim
22388 #: ../fish/guestfish-actions.pod:649
22389 #, no-wrap
22390 msgid ""
22391 " checksums-out csumtype directory (sumsfile|-)\n"
22392 "\n"
22393 msgstr ""
22394
22395 #. type: =head2
22396 #: ../fish/guestfish-actions.pod:665
22397 msgid "chmod"
22398 msgstr ""
22399
22400 #. type: verbatim
22401 #: ../fish/guestfish-actions.pod:667
22402 #, no-wrap
22403 msgid ""
22404 " chmod mode path\n"
22405 "\n"
22406 msgstr ""
22407
22408 #. type: =head2
22409 #: ../fish/guestfish-actions.pod:678
22410 msgid "chown"
22411 msgstr ""
22412
22413 #. type: verbatim
22414 #: ../fish/guestfish-actions.pod:680
22415 #, no-wrap
22416 msgid ""
22417 " chown owner group path\n"
22418 "\n"
22419 msgstr ""
22420
22421 #. type: =head2
22422 #: ../fish/guestfish-actions.pod:688
22423 msgid "command"
22424 msgstr ""
22425
22426 #. type: verbatim
22427 #: ../fish/guestfish-actions.pod:690
22428 #, no-wrap
22429 msgid ""
22430 " command 'arguments ...'\n"
22431 "\n"
22432 msgstr ""
22433
22434 #. type: textblock
22435 #: ../fish/guestfish-actions.pod:697
22436 msgid ""
22437 "The single parameter is an argv-style list of arguments.  The first element "
22438 "is the name of the program to run.  Subsequent elements are parameters.  The "
22439 "list must be non-empty (ie. must contain a program name).  Note that the "
22440 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
22441 msgstr ""
22442
22443 #. type: =head2
22444 #: ../fish/guestfish-actions.pod:725
22445 msgid "command-lines"
22446 msgstr ""
22447
22448 #. type: verbatim
22449 #: ../fish/guestfish-actions.pod:727
22450 #, no-wrap
22451 msgid ""
22452 " command-lines 'arguments ...'\n"
22453 "\n"
22454 msgstr ""
22455
22456 #. type: textblock
22457 #: ../fish/guestfish-actions.pod:729
22458 msgid ""
22459 "This is the same as L</command>, but splits the result into a list of lines."
22460 msgstr ""
22461
22462 #. type: textblock
22463 #: ../fish/guestfish-actions.pod:732
22464 msgid "See also: L</sh-lines>"
22465 msgstr ""
22466
22467 #. type: =head2
22468 #: ../fish/guestfish-actions.pod:737
22469 msgid "config"
22470 msgstr ""
22471
22472 #. type: verbatim
22473 #: ../fish/guestfish-actions.pod:739
22474 #, no-wrap
22475 msgid ""
22476 " config qemuparam qemuvalue\n"
22477 "\n"
22478 msgstr ""
22479
22480 #. type: =head2
22481 #: ../fish/guestfish-actions.pod:750
22482 msgid "copy-size"
22483 msgstr ""
22484
22485 #. type: verbatim
22486 #: ../fish/guestfish-actions.pod:752
22487 #, no-wrap
22488 msgid ""
22489 " copy-size src dest size\n"
22490 "\n"
22491 msgstr ""
22492
22493 #. type: =head2
22494 #: ../fish/guestfish-actions.pod:760
22495 msgid "cp"
22496 msgstr ""
22497
22498 #. type: verbatim
22499 #: ../fish/guestfish-actions.pod:762
22500 #, no-wrap
22501 msgid ""
22502 " cp src dest\n"
22503 "\n"
22504 msgstr ""
22505
22506 #. type: =head2
22507 #: ../fish/guestfish-actions.pod:767
22508 msgid "cp-a"
22509 msgstr ""
22510
22511 #. type: verbatim
22512 #: ../fish/guestfish-actions.pod:769
22513 #, no-wrap
22514 msgid ""
22515 " cp-a src dest\n"
22516 "\n"
22517 msgstr ""
22518
22519 #. type: =head2
22520 #: ../fish/guestfish-actions.pod:774
22521 msgid "dd"
22522 msgstr ""
22523
22524 #. type: verbatim
22525 #: ../fish/guestfish-actions.pod:776
22526 #, no-wrap
22527 msgid ""
22528 " dd src dest\n"
22529 "\n"
22530 msgstr ""
22531
22532 #. type: textblock
22533 #: ../fish/guestfish-actions.pod:783
22534 msgid ""
22535 "If the destination is a device, it must be as large or larger than the "
22536 "source file or device, otherwise the copy will fail.  This command cannot do "
22537 "partial copies (see L</copy-size>)."
22538 msgstr ""
22539
22540 #. type: =head2
22541 #: ../fish/guestfish-actions.pod:787
22542 msgid "df"
22543 msgstr ""
22544
22545 #. type: verbatim
22546 #: ../fish/guestfish-actions.pod:789
22547 #, no-wrap
22548 msgid ""
22549 " df\n"
22550 "\n"
22551 msgstr ""
22552
22553 #. type: textblock
22554 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:804
22555 msgid ""
22556 "This command is mostly useful for interactive sessions.  It is I<not> "
22557 "intended that you try to parse the output string.  Use L</statvfs> from "
22558 "programs."
22559 msgstr ""
22560
22561 #. type: =head2
22562 #: ../fish/guestfish-actions.pod:797
22563 msgid "df-h"
22564 msgstr ""
22565
22566 #. type: verbatim
22567 #: ../fish/guestfish-actions.pod:799
22568 #, no-wrap
22569 msgid ""
22570 " df-h\n"
22571 "\n"
22572 msgstr ""
22573
22574 #. type: =head2
22575 #: ../fish/guestfish-actions.pod:808
22576 msgid "dmesg"
22577 msgstr ""
22578
22579 #. type: verbatim
22580 #: ../fish/guestfish-actions.pod:810
22581 #, no-wrap
22582 msgid ""
22583 " dmesg\n"
22584 "\n"
22585 msgstr ""
22586
22587 #. type: textblock
22588 #: ../fish/guestfish-actions.pod:816
22589 msgid ""
22590 "Another way to get the same information is to enable verbose messages with "
22591 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
22592 "before running the program."
22593 msgstr ""
22594
22595 #. type: =head2
22596 #: ../fish/guestfish-actions.pod:821
22597 msgid "download"
22598 msgstr ""
22599
22600 #. type: verbatim
22601 #: ../fish/guestfish-actions.pod:823
22602 #, no-wrap
22603 msgid ""
22604 " download remotefilename (filename|-)\n"
22605 "\n"
22606 msgstr ""
22607
22608 #. type: textblock
22609 #: ../fish/guestfish-actions.pod:830
22610 msgid "See also L</upload>, L</cat>."
22611 msgstr ""
22612
22613 #. type: =head2
22614 #: ../fish/guestfish-actions.pod:834
22615 msgid "download-offset"
22616 msgstr ""
22617
22618 #. type: verbatim
22619 #: ../fish/guestfish-actions.pod:836
22620 #, no-wrap
22621 msgid ""
22622 " download-offset remotefilename (filename|-) offset size\n"
22623 "\n"
22624 msgstr ""
22625
22626 #. type: textblock
22627 #: ../fish/guestfish-actions.pod:844
22628 msgid ""
22629 "Note that there is no limit on the amount of data that can be downloaded "
22630 "with this call, unlike with L</pread>, and this call always reads the full "
22631 "amount unless an error occurs."
22632 msgstr ""
22633
22634 #. type: textblock
22635 #: ../fish/guestfish-actions.pod:849
22636 msgid "See also L</download>, L</pread>."
22637 msgstr ""
22638
22639 #. type: =head2
22640 #: ../fish/guestfish-actions.pod:853
22641 msgid "drop-caches"
22642 msgstr ""
22643
22644 #. type: verbatim
22645 #: ../fish/guestfish-actions.pod:855
22646 #, no-wrap
22647 msgid ""
22648 " drop-caches whattodrop\n"
22649 "\n"
22650 msgstr ""
22651
22652 #. type: =head2
22653 #: ../fish/guestfish-actions.pod:867
22654 msgid "du"
22655 msgstr ""
22656
22657 #. type: verbatim
22658 #: ../fish/guestfish-actions.pod:869
22659 #, no-wrap
22660 msgid ""
22661 " du path\n"
22662 "\n"
22663 msgstr ""
22664
22665 #. type: =head2
22666 #: ../fish/guestfish-actions.pod:881
22667 msgid "e2fsck-f"
22668 msgstr ""
22669
22670 #. type: verbatim
22671 #: ../fish/guestfish-actions.pod:883
22672 #, no-wrap
22673 msgid ""
22674 " e2fsck-f device\n"
22675 "\n"
22676 msgstr ""
22677
22678 #. type: textblock
22679 #: ../fish/guestfish-actions.pod:889
22680 msgid ""
22681 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
22682 "should use L</fsck>."
22683 msgstr ""
22684
22685 #. type: =head2
22686 #: ../fish/guestfish-actions.pod:892
22687 msgid "echo-daemon"
22688 msgstr ""
22689
22690 #. type: verbatim
22691 #: ../fish/guestfish-actions.pod:894
22692 #, no-wrap
22693 msgid ""
22694 " echo-daemon 'words ...'\n"
22695 "\n"
22696 msgstr ""
22697
22698 #. type: textblock
22699 #: ../fish/guestfish-actions.pod:901
22700 msgid "See also L</ping-daemon>."
22701 msgstr ""
22702
22703 #. type: =head2
22704 #: ../fish/guestfish-actions.pod:903
22705 msgid "egrep"
22706 msgstr ""
22707
22708 #. type: verbatim
22709 #: ../fish/guestfish-actions.pod:905
22710 #, no-wrap
22711 msgid ""
22712 " egrep regex path\n"
22713 "\n"
22714 msgstr ""
22715
22716 #. type: =head2
22717 #: ../fish/guestfish-actions.pod:913
22718 msgid "egrepi"
22719 msgstr ""
22720
22721 #. type: verbatim
22722 #: ../fish/guestfish-actions.pod:915
22723 #, no-wrap
22724 msgid ""
22725 " egrepi regex path\n"
22726 "\n"
22727 msgstr ""
22728
22729 #. type: =head2
22730 #: ../fish/guestfish-actions.pod:923
22731 msgid "equal"
22732 msgstr ""
22733
22734 #. type: verbatim
22735 #: ../fish/guestfish-actions.pod:925
22736 #, no-wrap
22737 msgid ""
22738 " equal file1 file2\n"
22739 "\n"
22740 msgstr ""
22741
22742 #. type: =head2
22743 #: ../fish/guestfish-actions.pod:932
22744 msgid "exists"
22745 msgstr ""
22746
22747 #. type: verbatim
22748 #: ../fish/guestfish-actions.pod:934
22749 #, no-wrap
22750 msgid ""
22751 " exists path\n"
22752 "\n"
22753 msgstr ""
22754
22755 #. type: textblock
22756 #: ../fish/guestfish-actions.pod:939
22757 msgid "See also L</is-file>, L</is-dir>, L</stat>."
22758 msgstr ""
22759
22760 #. type: =head2
22761 #: ../fish/guestfish-actions.pod:941
22762 msgid "fallocate"
22763 msgstr ""
22764
22765 #. type: verbatim
22766 #: ../fish/guestfish-actions.pod:943
22767 #, no-wrap
22768 msgid ""
22769 " fallocate path len\n"
22770 "\n"
22771 msgstr ""
22772
22773 #. type: =head2
22774 #: ../fish/guestfish-actions.pod:960
22775 msgid "fallocate64"
22776 msgstr ""
22777
22778 #. type: verbatim
22779 #: ../fish/guestfish-actions.pod:962
22780 #, no-wrap
22781 msgid ""
22782 " fallocate64 path len\n"
22783 "\n"
22784 msgstr ""
22785
22786 #. type: textblock
22787 #: ../fish/guestfish-actions.pod:968
22788 msgid ""
22789 "Note that this call allocates disk blocks for the file.  To create a sparse "
22790 "file use L</truncate-size> instead."
22791 msgstr ""
22792
22793 #. type: textblock
22794 #: ../fish/guestfish-actions.pod:971
22795 msgid ""
22796 "The deprecated call L</fallocate> does the same, but owing to an oversight "
22797 "it only allowed 30 bit lengths to be specified, effectively limiting the "
22798 "maximum size of files created through that call to 1GB."
22799 msgstr ""
22800
22801 #. type: =head2
22802 #: ../fish/guestfish-actions.pod:980
22803 msgid "fgrep"
22804 msgstr ""
22805
22806 #. type: verbatim
22807 #: ../fish/guestfish-actions.pod:982
22808 #, no-wrap
22809 msgid ""
22810 " fgrep pattern path\n"
22811 "\n"
22812 msgstr ""
22813
22814 #. type: =head2
22815 #: ../fish/guestfish-actions.pod:990
22816 msgid "fgrepi"
22817 msgstr ""
22818
22819 #. type: verbatim
22820 #: ../fish/guestfish-actions.pod:992
22821 #, no-wrap
22822 msgid ""
22823 " fgrepi pattern path\n"
22824 "\n"
22825 msgstr ""
22826
22827 #. type: =head2
22828 #: ../fish/guestfish-actions.pod:1000
22829 msgid "file"
22830 msgstr ""
22831
22832 #. type: verbatim
22833 #: ../fish/guestfish-actions.pod:1002
22834 #, no-wrap
22835 msgid ""
22836 " file path\n"
22837 "\n"
22838 msgstr ""
22839
22840 #. type: textblock
22841 #: ../fish/guestfish-actions.pod:1014
22842 msgid ""
22843 "This command can also be used on C</dev/> devices (and partitions, LV "
22844 "names).  You can for example use this to determine if a device contains a "
22845 "filesystem, although it's usually better to use L</vfs-type>."
22846 msgstr ""
22847
22848 #. type: =head2
22849 #: ../fish/guestfish-actions.pod:1024
22850 msgid "file-architecture"
22851 msgstr ""
22852
22853 #. type: verbatim
22854 #: ../fish/guestfish-actions.pod:1026
22855 #, no-wrap
22856 msgid ""
22857 " file-architecture filename\n"
22858 "\n"
22859 msgstr ""
22860
22861 #. type: =head2
22862 #: ../fish/guestfish-actions.pod:1129
22863 msgid "filesize"
22864 msgstr ""
22865
22866 #. type: verbatim
22867 #: ../fish/guestfish-actions.pod:1131
22868 #, no-wrap
22869 msgid ""
22870 " filesize file\n"
22871 "\n"
22872 msgstr ""
22873
22874 #. type: textblock
22875 #: ../fish/guestfish-actions.pod:1135
22876 msgid ""
22877 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
22878 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
22879 msgstr ""
22880
22881 #. type: =head2
22882 #: ../fish/guestfish-actions.pod:1139
22883 msgid "fill"
22884 msgstr ""
22885
22886 #. type: verbatim
22887 #: ../fish/guestfish-actions.pod:1141
22888 #, no-wrap
22889 msgid ""
22890 " fill c len path\n"
22891 "\n"
22892 msgstr ""
22893
22894 #. type: textblock
22895 #: ../fish/guestfish-actions.pod:1147
22896 msgid ""
22897 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
22898 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
22899 "L</fill-pattern>."
22900 msgstr ""
22901
22902 #. type: =head2
22903 #: ../fish/guestfish-actions.pod:1152
22904 msgid "fill-pattern"
22905 msgstr ""
22906
22907 #. type: verbatim
22908 #: ../fish/guestfish-actions.pod:1154
22909 #, no-wrap
22910 msgid ""
22911 " fill-pattern pattern len path\n"
22912 "\n"
22913 msgstr ""
22914
22915 #. type: textblock
22916 #: ../fish/guestfish-actions.pod:1156
22917 msgid ""
22918 "This function is like L</fill> except that it creates a new file of length "
22919 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
22920 "is truncated if necessary to ensure the length of the file is exactly C<len> "
22921 "bytes."
22922 msgstr ""
22923
22924 #. type: =head2
22925 #: ../fish/guestfish-actions.pod:1161
22926 msgid "find"
22927 msgstr ""
22928
22929 #. type: verbatim
22930 #: ../fish/guestfish-actions.pod:1163
22931 #, no-wrap
22932 msgid ""
22933 " find directory\n"
22934 "\n"
22935 msgstr ""
22936
22937 #. type: textblock
22938 #: ../fish/guestfish-actions.pod:1177
22939 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
22940 msgstr ""
22941
22942 #. type: textblock
22943 #: ../fish/guestfish-actions.pod:1190
22944 msgid "See also L</find0>."
22945 msgstr ""
22946
22947 #. type: =head2
22948 #: ../fish/guestfish-actions.pod:1195
22949 msgid "find0"
22950 msgstr ""
22951
22952 #. type: verbatim
22953 #: ../fish/guestfish-actions.pod:1197
22954 #, no-wrap
22955 msgid ""
22956 " find0 directory (files|-)\n"
22957 "\n"
22958 msgstr ""
22959
22960 #. type: textblock
22961 #: ../fish/guestfish-actions.pod:1203
22962 msgid ""
22963 "This command works the same way as L</find> with the following exceptions:"
22964 msgstr ""
22965
22966 #. type: =head2
22967 #: ../fish/guestfish-actions.pod:1230
22968 msgid "findfs-label"
22969 msgstr ""
22970
22971 #. type: verbatim
22972 #: ../fish/guestfish-actions.pod:1232
22973 #, no-wrap
22974 msgid ""
22975 " findfs-label label\n"
22976 "\n"
22977 msgstr ""
22978
22979 #. type: textblock
22980 #: ../fish/guestfish-actions.pod:1238
22981 msgid "To find the label of a filesystem, use L</vfs-label>."
22982 msgstr ""
22983
22984 #. type: =head2
22985 #: ../fish/guestfish-actions.pod:1240
22986 msgid "findfs-uuid"
22987 msgstr ""
22988
22989 #. type: verbatim
22990 #: ../fish/guestfish-actions.pod:1242
22991 #, no-wrap
22992 msgid ""
22993 " findfs-uuid uuid\n"
22994 "\n"
22995 msgstr ""
22996
22997 #. type: textblock
22998 #: ../fish/guestfish-actions.pod:1248
22999 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
23000 msgstr ""
23001
23002 #. type: =head2
23003 #: ../fish/guestfish-actions.pod:1250
23004 msgid "fsck"
23005 msgstr ""
23006
23007 #. type: verbatim
23008 #: ../fish/guestfish-actions.pod:1252
23009 #, no-wrap
23010 msgid ""
23011 " fsck fstype device\n"
23012 "\n"
23013 msgstr ""
23014
23015 #. type: =head2
23016 #: ../fish/guestfish-actions.pod:1282
23017 msgid "get-append"
23018 msgstr ""
23019
23020 #. type: verbatim
23021 #: ../fish/guestfish-actions.pod:1284
23022 #, no-wrap
23023 msgid ""
23024 " get-append\n"
23025 "\n"
23026 msgstr ""
23027
23028 #. type: =head2
23029 #: ../fish/guestfish-actions.pod:1291
23030 msgid "get-attach-method"
23031 msgstr ""
23032
23033 #. type: verbatim
23034 #: ../fish/guestfish-actions.pod:1293
23035 #, no-wrap
23036 msgid ""
23037 " get-attach-method\n"
23038 "\n"
23039 msgstr ""
23040
23041 #. type: textblock
23042 #: ../fish/guestfish-actions.pod:1295
23043 msgid "Return the current attach method.  See L</set-attach-method>."
23044 msgstr ""
23045
23046 #. type: =head2
23047 #: ../fish/guestfish-actions.pod:1297
23048 msgid "get-autosync"
23049 msgstr ""
23050
23051 #. type: verbatim
23052 #: ../fish/guestfish-actions.pod:1299
23053 #, no-wrap
23054 msgid ""
23055 " get-autosync\n"
23056 "\n"
23057 msgstr ""
23058
23059 #. type: =head2
23060 #: ../fish/guestfish-actions.pod:1303
23061 msgid "get-direct"
23062 msgstr ""
23063
23064 #. type: verbatim
23065 #: ../fish/guestfish-actions.pod:1305
23066 #, no-wrap
23067 msgid ""
23068 " get-direct\n"
23069 "\n"
23070 msgstr ""
23071
23072 #. type: =head2
23073 #: ../fish/guestfish-actions.pod:1309
23074 msgid "get-e2label"
23075 msgstr ""
23076
23077 #. type: verbatim
23078 #: ../fish/guestfish-actions.pod:1311
23079 #, no-wrap
23080 msgid ""
23081 " get-e2label device\n"
23082 "\n"
23083 msgstr ""
23084
23085 #. type: =head2
23086 #: ../fish/guestfish-actions.pod:1323
23087 msgid "get-e2uuid"
23088 msgstr ""
23089
23090 #. type: verbatim
23091 #: ../fish/guestfish-actions.pod:1325
23092 #, no-wrap
23093 msgid ""
23094 " get-e2uuid device\n"
23095 "\n"
23096 msgstr ""
23097
23098 #. type: =head2
23099 #: ../fish/guestfish-actions.pod:1337
23100 msgid "get-memsize"
23101 msgstr ""
23102
23103 #. type: verbatim
23104 #: ../fish/guestfish-actions.pod:1339
23105 #, no-wrap
23106 msgid ""
23107 " get-memsize\n"
23108 "\n"
23109 msgstr ""
23110
23111 #. type: textblock
23112 #: ../fish/guestfish-actions.pod:1344
23113 msgid ""
23114 "If L</set-memsize> was not called on this handle, and if "
23115 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23116 "value for memsize."
23117 msgstr ""
23118
23119 #. type: =head2
23120 #: ../fish/guestfish-actions.pod:1351
23121 msgid "get-network"
23122 msgstr ""
23123
23124 #. type: verbatim
23125 #: ../fish/guestfish-actions.pod:1353
23126 #, no-wrap
23127 msgid ""
23128 " get-network\n"
23129 "\n"
23130 msgstr ""
23131
23132 #. type: =head2
23133 #: ../fish/guestfish-actions.pod:1357
23134 msgid "get-path"
23135 msgstr ""
23136
23137 #. type: verbatim
23138 #: ../fish/guestfish-actions.pod:1359
23139 #, no-wrap
23140 msgid ""
23141 " get-path\n"
23142 "\n"
23143 msgstr ""
23144
23145 #. type: =head2
23146 #: ../fish/guestfish-actions.pod:1366
23147 msgid "get-pid"
23148 msgstr ""
23149
23150 #. type: =head2
23151 #: ../fish/guestfish-actions.pod:1368
23152 msgid "pid"
23153 msgstr ""
23154
23155 #. type: verbatim
23156 #: ../fish/guestfish-actions.pod:1370
23157 #, no-wrap
23158 msgid ""
23159 " get-pid\n"
23160 "\n"
23161 msgstr ""
23162
23163 #. type: =head2
23164 #: ../fish/guestfish-actions.pod:1377
23165 msgid "get-qemu"
23166 msgstr ""
23167
23168 #. type: verbatim
23169 #: ../fish/guestfish-actions.pod:1379
23170 #, no-wrap
23171 msgid ""
23172 " get-qemu\n"
23173 "\n"
23174 msgstr ""
23175
23176 #. type: =head2
23177 #: ../fish/guestfish-actions.pod:1386
23178 msgid "get-recovery-proc"
23179 msgstr ""
23180
23181 #. type: verbatim
23182 #: ../fish/guestfish-actions.pod:1388
23183 #, no-wrap
23184 msgid ""
23185 " get-recovery-proc\n"
23186 "\n"
23187 msgstr ""
23188
23189 #. type: =head2
23190 #: ../fish/guestfish-actions.pod:1392
23191 msgid "get-selinux"
23192 msgstr ""
23193
23194 #. type: verbatim
23195 #: ../fish/guestfish-actions.pod:1394
23196 #, no-wrap
23197 msgid ""
23198 " get-selinux\n"
23199 "\n"
23200 msgstr ""
23201
23202 #. type: textblock
23203 #: ../fish/guestfish-actions.pod:1396
23204 msgid ""
23205 "This returns the current setting of the selinux flag which is passed to the "
23206 "appliance at boot time.  See L</set-selinux>."
23207 msgstr ""
23208
23209 #. type: =head2
23210 #: ../fish/guestfish-actions.pod:1402
23211 msgid "get-state"
23212 msgstr ""
23213
23214 #. type: verbatim
23215 #: ../fish/guestfish-actions.pod:1404
23216 #, no-wrap
23217 msgid ""
23218 " get-state\n"
23219 "\n"
23220 msgstr ""
23221
23222 #. type: =head2
23223 #: ../fish/guestfish-actions.pod:1411
23224 msgid "get-trace"
23225 msgstr ""
23226
23227 #. type: verbatim
23228 #: ../fish/guestfish-actions.pod:1413
23229 #, no-wrap
23230 msgid ""
23231 " get-trace\n"
23232 "\n"
23233 msgstr ""
23234
23235 #. type: =head2
23236 #: ../fish/guestfish-actions.pod:1417
23237 msgid "get-umask"
23238 msgstr ""
23239
23240 #. type: verbatim
23241 #: ../fish/guestfish-actions.pod:1419
23242 #, no-wrap
23243 msgid ""
23244 " get-umask\n"
23245 "\n"
23246 msgstr ""
23247
23248 #. type: textblock
23249 #: ../fish/guestfish-actions.pod:1421
23250 msgid ""
23251 "Return the current umask.  By default the umask is C<022> unless it has been "
23252 "set by calling L</umask>."
23253 msgstr ""
23254
23255 #. type: =head2
23256 #: ../fish/guestfish-actions.pod:1424
23257 msgid "get-verbose"
23258 msgstr ""
23259
23260 #. type: verbatim
23261 #: ../fish/guestfish-actions.pod:1426
23262 #, no-wrap
23263 msgid ""
23264 " get-verbose\n"
23265 "\n"
23266 msgstr ""
23267
23268 #. type: =head2
23269 #: ../fish/guestfish-actions.pod:1430
23270 msgid "getcon"
23271 msgstr ""
23272
23273 #. type: verbatim
23274 #: ../fish/guestfish-actions.pod:1432
23275 #, no-wrap
23276 msgid ""
23277 " getcon\n"
23278 "\n"
23279 msgstr ""
23280
23281 #. type: textblock
23282 #: ../fish/guestfish-actions.pod:1436
23283 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
23284 msgstr ""
23285
23286 #. type: =head2
23287 #: ../fish/guestfish-actions.pod:1439
23288 msgid "getxattr"
23289 msgstr ""
23290
23291 #. type: verbatim
23292 #: ../fish/guestfish-actions.pod:1441
23293 #, no-wrap
23294 msgid ""
23295 " getxattr path name\n"
23296 "\n"
23297 msgstr ""
23298
23299 #. type: textblock
23300 #: ../fish/guestfish-actions.pod:1443
23301 msgid ""
23302 "Get a single extended attribute from file C<path> named C<name>.  This call "
23303 "follows symlinks.  If you want to lookup an extended attribute for the "
23304 "symlink itself, use L</lgetxattr>."
23305 msgstr ""
23306
23307 #. type: textblock
23308 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2445
23309 msgid ""
23310 "Normally it is better to get all extended attributes from a file in one go "
23311 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
23312 "buggy and do not provide a way to list out attributes.  For these "
23313 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
23314 "attributes you want in advance and call this function."
23315 msgstr ""
23316
23317 #. type: textblock
23318 #: ../fish/guestfish-actions.pod:1457
23319 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
23320 msgstr ""
23321
23322 #. type: =head2
23323 #: ../fish/guestfish-actions.pod:1459
23324 msgid "getxattrs"
23325 msgstr ""
23326
23327 #. type: verbatim
23328 #: ../fish/guestfish-actions.pod:1461
23329 #, no-wrap
23330 msgid ""
23331 " getxattrs path\n"
23332 "\n"
23333 msgstr ""
23334
23335 #. type: textblock
23336 #: ../fish/guestfish-actions.pod:1469
23337 msgid "See also: L</lgetxattrs>, L<attr(5)>."
23338 msgstr ""
23339
23340 #. type: =head2
23341 #: ../fish/guestfish-actions.pod:1471
23342 msgid "glob-expand"
23343 msgstr ""
23344
23345 #. type: verbatim
23346 #: ../fish/guestfish-actions.pod:1473
23347 #, no-wrap
23348 msgid ""
23349 " glob-expand pattern\n"
23350 "\n"
23351 msgstr ""
23352
23353 #. type: =head2
23354 #: ../fish/guestfish-actions.pod:1486
23355 msgid "grep"
23356 msgstr ""
23357
23358 #. type: verbatim
23359 #: ../fish/guestfish-actions.pod:1488
23360 #, no-wrap
23361 msgid ""
23362 " grep regex path\n"
23363 "\n"
23364 msgstr ""
23365
23366 #. type: =head2
23367 #: ../fish/guestfish-actions.pod:1496
23368 msgid "grepi"
23369 msgstr ""
23370
23371 #. type: verbatim
23372 #: ../fish/guestfish-actions.pod:1498
23373 #, no-wrap
23374 msgid ""
23375 " grepi regex path\n"
23376 "\n"
23377 msgstr ""
23378
23379 #. type: =head2
23380 #: ../fish/guestfish-actions.pod:1506
23381 msgid "grub-install"
23382 msgstr ""
23383
23384 #. type: verbatim
23385 #: ../fish/guestfish-actions.pod:1508
23386 #, no-wrap
23387 msgid ""
23388 " grub-install root device\n"
23389 "\n"
23390 msgstr ""
23391
23392 #. type: =head2
23393 #: ../fish/guestfish-actions.pod:1524
23394 msgid "head"
23395 msgstr ""
23396
23397 #. type: verbatim
23398 #: ../fish/guestfish-actions.pod:1526
23399 #, no-wrap
23400 msgid ""
23401 " head path\n"
23402 "\n"
23403 msgstr ""
23404
23405 #. type: =head2
23406 #: ../fish/guestfish-actions.pod:1534
23407 msgid "head-n"
23408 msgstr ""
23409
23410 #. type: verbatim
23411 #: ../fish/guestfish-actions.pod:1536
23412 #, no-wrap
23413 msgid ""
23414 " head-n nrlines path\n"
23415 "\n"
23416 msgstr ""
23417
23418 #. type: =head2
23419 #: ../fish/guestfish-actions.pod:1549
23420 msgid "hexdump"
23421 msgstr ""
23422
23423 #. type: verbatim
23424 #: ../fish/guestfish-actions.pod:1551
23425 #, no-wrap
23426 msgid ""
23427 " hexdump path\n"
23428 "\n"
23429 msgstr ""
23430
23431 #. type: =head2
23432 #: ../fish/guestfish-actions.pod:1559
23433 msgid "initrd-cat"
23434 msgstr ""
23435
23436 #. type: verbatim
23437 #: ../fish/guestfish-actions.pod:1561
23438 #, no-wrap
23439 msgid ""
23440 " initrd-cat initrdpath filename\n"
23441 "\n"
23442 msgstr ""
23443
23444 #. type: textblock
23445 #: ../fish/guestfish-actions.pod:1573
23446 msgid "See also L</initrd-list>."
23447 msgstr ""
23448
23449 #. type: =head2
23450 #: ../fish/guestfish-actions.pod:1578
23451 msgid "initrd-list"
23452 msgstr ""
23453
23454 #. type: verbatim
23455 #: ../fish/guestfish-actions.pod:1580
23456 #, no-wrap
23457 msgid ""
23458 " initrd-list path\n"
23459 "\n"
23460 msgstr ""
23461
23462 #. type: =head2
23463 #: ../fish/guestfish-actions.pod:1592
23464 msgid "inotify-add-watch"
23465 msgstr ""
23466
23467 #. type: verbatim
23468 #: ../fish/guestfish-actions.pod:1594
23469 #, no-wrap
23470 msgid ""
23471 " inotify-add-watch path mask\n"
23472 "\n"
23473 msgstr ""
23474
23475 #. type: =head2
23476 #: ../fish/guestfish-actions.pod:1606
23477 msgid "inotify-close"
23478 msgstr ""
23479
23480 #. type: verbatim
23481 #: ../fish/guestfish-actions.pod:1608
23482 #, no-wrap
23483 msgid ""
23484 " inotify-close\n"
23485 "\n"
23486 msgstr ""
23487
23488 #. type: =head2
23489 #: ../fish/guestfish-actions.pod:1614
23490 msgid "inotify-files"
23491 msgstr ""
23492
23493 #. type: verbatim
23494 #: ../fish/guestfish-actions.pod:1616
23495 #, no-wrap
23496 msgid ""
23497 " inotify-files\n"
23498 "\n"
23499 msgstr ""
23500
23501 #. type: textblock
23502 #: ../fish/guestfish-actions.pod:1618
23503 msgid ""
23504 "This function is a helpful wrapper around L</inotify-read> which just "
23505 "returns a list of pathnames of objects that were touched.  The returned "
23506 "pathnames are sorted and deduplicated."
23507 msgstr ""
23508
23509 #. type: =head2
23510 #: ../fish/guestfish-actions.pod:1622
23511 msgid "inotify-init"
23512 msgstr ""
23513
23514 #. type: verbatim
23515 #: ../fish/guestfish-actions.pod:1624
23516 #, no-wrap
23517 msgid ""
23518 " inotify-init maxevents\n"
23519 "\n"
23520 msgstr ""
23521
23522 #. type: textblock
23523 #: ../fish/guestfish-actions.pod:1630
23524 msgid ""
23525 "C<maxevents> is the maximum number of events which will be queued up between "
23526 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
23527 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
23528 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
23529 "but records the fact that it threw them away by setting a flag "
23530 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
23531 msgstr ""
23532
23533 #. type: textblock
23534 #: ../fish/guestfish-actions.pod:1640
23535 msgid ""
23536 "Before any events are generated, you have to add some watches to the "
23537 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
23538 "L</inotify-watch-all>."
23539 msgstr ""
23540
23541 #. type: textblock
23542 #: ../fish/guestfish-actions.pod:1646
23543 msgid ""
23544 "Queued up events should be read periodically by calling L</inotify-read> (or "
23545 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
23546 "If you don't read the events out often enough then you risk the internal "
23547 "queue overflowing."
23548 msgstr ""
23549
23550 #. type: textblock
23551 #: ../fish/guestfish-actions.pod:1653
23552 msgid ""
23553 "The handle should be closed after use by calling L</inotify-close>.  This "
23554 "also removes any watches automatically."
23555 msgstr ""
23556
23557 #. type: =head2
23558 #: ../fish/guestfish-actions.pod:1662
23559 msgid "inotify-read"
23560 msgstr ""
23561
23562 #. type: verbatim
23563 #: ../fish/guestfish-actions.pod:1664
23564 #, no-wrap
23565 msgid ""
23566 " inotify-read\n"
23567 "\n"
23568 msgstr ""
23569
23570 #. type: =head2
23571 #: ../fish/guestfish-actions.pod:1677
23572 msgid "inotify-rm-watch"
23573 msgstr ""
23574
23575 #. type: verbatim
23576 #: ../fish/guestfish-actions.pod:1679
23577 #, no-wrap
23578 msgid ""
23579 " inotify-rm-watch wd\n"
23580 "\n"
23581 msgstr ""
23582
23583 #. type: textblock
23584 #: ../fish/guestfish-actions.pod:1681
23585 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
23586 msgstr ""
23587
23588 #. type: =head2
23589 #: ../fish/guestfish-actions.pod:1684
23590 msgid "inspect-get-arch"
23591 msgstr ""
23592
23593 #. type: verbatim
23594 #: ../fish/guestfish-actions.pod:1686
23595 #, no-wrap
23596 msgid ""
23597 " inspect-get-arch root\n"
23598 "\n"
23599 msgstr ""
23600
23601 #. type: textblock
23602 #: ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1704
23603 #: ../fish/guestfish-actions.pod:1782 ../fish/guestfish-actions.pod:1818
23604 #: ../fish/guestfish-actions.pod:1836 ../fish/guestfish-actions.pod:1870
23605 #: ../fish/guestfish-actions.pod:1885 ../fish/guestfish-actions.pod:1906
23606 #: ../fish/guestfish-actions.pod:1921 ../fish/guestfish-actions.pod:1954
23607 #: ../fish/guestfish-actions.pod:1976 ../fish/guestfish-actions.pod:2000
23608 #: ../fish/guestfish-actions.pod:2017 ../fish/guestfish-actions.pod:2060
23609 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2111
23610 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2140
23611 #: ../fish/guestfish-actions.pod:2153 ../fish/guestfish-actions.pod:2168
23612 msgid ""
23613 "This function should only be called with a root device string as returned by "
23614 "L</inspect-os>."
23615 msgstr ""
23616
23617 #. type: textblock
23618 #: ../fish/guestfish-actions.pod:1691
23619 msgid ""
23620 "This returns the architecture of the inspected operating system.  The "
23621 "possible return values are listed under L</file-architecture>."
23622 msgstr ""
23623
23624 #. type: =head2
23625 #: ../fish/guestfish-actions.pod:1700
23626 msgid "inspect-get-distro"
23627 msgstr ""
23628
23629 #. type: verbatim
23630 #: ../fish/guestfish-actions.pod:1702
23631 #, no-wrap
23632 msgid ""
23633 " inspect-get-distro root\n"
23634 "\n"
23635 msgstr ""
23636
23637 #. type: =head2
23638 #: ../fish/guestfish-actions.pod:1778
23639 msgid "inspect-get-drive-mappings"
23640 msgstr ""
23641
23642 #. type: verbatim
23643 #: ../fish/guestfish-actions.pod:1780
23644 #, no-wrap
23645 msgid ""
23646 " inspect-get-drive-mappings root\n"
23647 "\n"
23648 msgstr ""
23649
23650 #. type: textblock
23651 #: ../fish/guestfish-actions.pod:1810
23652 msgid ""
23653 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23654 "get-mountpoints>, L</inspect-get-filesystems>."
23655 msgstr ""
23656
23657 #. type: =head2
23658 #: ../fish/guestfish-actions.pod:1814
23659 msgid "inspect-get-filesystems"
23660 msgstr ""
23661
23662 #. type: verbatim
23663 #: ../fish/guestfish-actions.pod:1816
23664 #, no-wrap
23665 msgid ""
23666 " inspect-get-filesystems root\n"
23667 "\n"
23668 msgstr ""
23669
23670 #. type: textblock
23671 #: ../fish/guestfish-actions.pod:1829
23672 msgid ""
23673 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23674 "get-mountpoints>."
23675 msgstr ""
23676
23677 #. type: =head2
23678 #: ../fish/guestfish-actions.pod:1832
23679 msgid "inspect-get-format"
23680 msgstr ""
23681
23682 #. type: verbatim
23683 #: ../fish/guestfish-actions.pod:1834
23684 #, no-wrap
23685 msgid ""
23686 " inspect-get-format root\n"
23687 "\n"
23688 msgstr ""
23689
23690 #. type: =head2
23691 #: ../fish/guestfish-actions.pod:1866
23692 msgid "inspect-get-hostname"
23693 msgstr ""
23694
23695 #. type: verbatim
23696 #: ../fish/guestfish-actions.pod:1868
23697 #, no-wrap
23698 msgid ""
23699 " inspect-get-hostname root\n"
23700 "\n"
23701 msgstr ""
23702
23703 #. type: =head2
23704 #: ../fish/guestfish-actions.pod:1881
23705 msgid "inspect-get-major-version"
23706 msgstr ""
23707
23708 #. type: verbatim
23709 #: ../fish/guestfish-actions.pod:1883
23710 #, no-wrap
23711 msgid ""
23712 " inspect-get-major-version root\n"
23713 "\n"
23714 msgstr ""
23715
23716 #. type: =head2
23717 #: ../fish/guestfish-actions.pod:1902
23718 msgid "inspect-get-minor-version"
23719 msgstr ""
23720
23721 #. type: verbatim
23722 #: ../fish/guestfish-actions.pod:1904
23723 #, no-wrap
23724 msgid ""
23725 " inspect-get-minor-version root\n"
23726 "\n"
23727 msgstr ""
23728
23729 #. type: textblock
23730 #: ../fish/guestfish-actions.pod:1914
23731 msgid ""
23732 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23733 "get-major-version>."
23734 msgstr ""
23735
23736 #. type: =head2
23737 #: ../fish/guestfish-actions.pod:1917
23738 msgid "inspect-get-mountpoints"
23739 msgstr ""
23740
23741 #. type: verbatim
23742 #: ../fish/guestfish-actions.pod:1919
23743 #, no-wrap
23744 msgid ""
23745 " inspect-get-mountpoints root\n"
23746 "\n"
23747 msgstr ""
23748
23749 #. type: textblock
23750 #: ../fish/guestfish-actions.pod:1941
23751 msgid ""
23752 "For operating systems like Windows which still use drive letters, this call "
23753 "will only return an entry for the first drive \"mounted on\" C</>.  For "
23754 "information about the mapping of drive letters to partitions, see L</inspect-"
23755 "get-drive-mappings>."
23756 msgstr ""
23757
23758 #. type: textblock
23759 #: ../fish/guestfish-actions.pod:1947
23760 msgid ""
23761 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23762 "get-filesystems>."
23763 msgstr ""
23764
23765 #. type: =head2
23766 #: ../fish/guestfish-actions.pod:1950
23767 msgid "inspect-get-package-format"
23768 msgstr ""
23769
23770 #. type: verbatim
23771 #: ../fish/guestfish-actions.pod:1952
23772 #, no-wrap
23773 msgid ""
23774 " inspect-get-package-format root\n"
23775 "\n"
23776 msgstr ""
23777
23778 #. type: textblock
23779 #: ../fish/guestfish-actions.pod:1957
23780 msgid ""
23781 "This function and L</inspect-get-package-management> return the package "
23782 "format and package management tool used by the inspected operating system.  "
23783 "For example for Fedora these functions would return C<rpm> (package format) "
23784 "and C<yum> (package management)."
23785 msgstr ""
23786
23787 #. type: =head2
23788 #: ../fish/guestfish-actions.pod:1972
23789 msgid "inspect-get-package-management"
23790 msgstr ""
23791
23792 #. type: verbatim
23793 #: ../fish/guestfish-actions.pod:1974
23794 #, no-wrap
23795 msgid ""
23796 " inspect-get-package-management root\n"
23797 "\n"
23798 msgstr ""
23799
23800 #. type: textblock
23801 #: ../fish/guestfish-actions.pod:1979
23802 msgid ""
23803 "L</inspect-get-package-format> and this function return the package format "
23804 "and package management tool used by the inspected operating system.  For "
23805 "example for Fedora these functions would return C<rpm> (package format) and "
23806 "C<yum> (package management)."
23807 msgstr ""
23808
23809 #. type: =head2
23810 #: ../fish/guestfish-actions.pod:1996
23811 msgid "inspect-get-product-name"
23812 msgstr ""
23813
23814 #. type: verbatim
23815 #: ../fish/guestfish-actions.pod:1998
23816 #, no-wrap
23817 msgid ""
23818 " inspect-get-product-name root\n"
23819 "\n"
23820 msgstr ""
23821
23822 #. type: =head2
23823 #: ../fish/guestfish-actions.pod:2013
23824 msgid "inspect-get-product-variant"
23825 msgstr ""
23826
23827 #. type: verbatim
23828 #: ../fish/guestfish-actions.pod:2015
23829 #, no-wrap
23830 msgid ""
23831 " inspect-get-product-variant root\n"
23832 "\n"
23833 msgstr ""
23834
23835 #. type: textblock
23836 #: ../fish/guestfish-actions.pod:2039
23837 msgid ""
23838 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23839 "get-product-name>, L</inspect-get-major-version>."
23840 msgstr ""
23841
23842 #. type: =head2
23843 #: ../fish/guestfish-actions.pod:2043
23844 msgid "inspect-get-roots"
23845 msgstr ""
23846
23847 #. type: verbatim
23848 #: ../fish/guestfish-actions.pod:2045
23849 #, no-wrap
23850 msgid ""
23851 " inspect-get-roots\n"
23852 "\n"
23853 msgstr ""
23854
23855 #. type: textblock
23856 #: ../fish/guestfish-actions.pod:2047
23857 msgid ""
23858 "This function is a convenient way to get the list of root devices, as "
23859 "returned from a previous call to L</inspect-os>, but without redoing the "
23860 "whole inspection process."
23861 msgstr ""
23862
23863 #. type: textblock
23864 #: ../fish/guestfish-actions.pod:2051
23865 msgid ""
23866 "This returns an empty list if either no root devices were found or the "
23867 "caller has not called L</inspect-os>."
23868 msgstr ""
23869
23870 #. type: =head2
23871 #: ../fish/guestfish-actions.pod:2056
23872 msgid "inspect-get-type"
23873 msgstr ""
23874
23875 #. type: verbatim
23876 #: ../fish/guestfish-actions.pod:2058
23877 #, no-wrap
23878 msgid ""
23879 " inspect-get-type root\n"
23880 "\n"
23881 msgstr ""
23882
23883 #. type: =head2
23884 #: ../fish/guestfish-actions.pod:2091
23885 msgid "inspect-get-windows-current-control-set"
23886 msgstr ""
23887
23888 #. type: verbatim
23889 #: ../fish/guestfish-actions.pod:2093
23890 #, no-wrap
23891 msgid ""
23892 " inspect-get-windows-current-control-set root\n"
23893 "\n"
23894 msgstr ""
23895
23896 #. type: =head2
23897 #: ../fish/guestfish-actions.pod:2107
23898 msgid "inspect-get-windows-systemroot"
23899 msgstr ""
23900
23901 #. type: verbatim
23902 #: ../fish/guestfish-actions.pod:2109
23903 #, no-wrap
23904 msgid ""
23905 " inspect-get-windows-systemroot root\n"
23906 "\n"
23907 msgstr ""
23908
23909 #. type: =head2
23910 #: ../fish/guestfish-actions.pod:2123
23911 msgid "inspect-is-live"
23912 msgstr ""
23913
23914 #. type: verbatim
23915 #: ../fish/guestfish-actions.pod:2125
23916 #, no-wrap
23917 msgid ""
23918 " inspect-is-live root\n"
23919 "\n"
23920 msgstr ""
23921
23922 #. type: textblock
23923 #: ../fish/guestfish-actions.pod:2130
23924 msgid ""
23925 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
23926 "then this returns true if a live image was detected on the disk."
23927 msgstr ""
23928
23929 #. type: =head2
23930 #: ../fish/guestfish-actions.pod:2136
23931 msgid "inspect-is-multipart"
23932 msgstr ""
23933
23934 #. type: verbatim
23935 #: ../fish/guestfish-actions.pod:2138
23936 #, no-wrap
23937 msgid ""
23938 " inspect-is-multipart root\n"
23939 "\n"
23940 msgstr ""
23941
23942 #. type: textblock
23943 #: ../fish/guestfish-actions.pod:2143
23944 msgid ""
23945 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
23946 "then this returns true if the disk is part of a set."
23947 msgstr ""
23948
23949 #. type: =head2
23950 #: ../fish/guestfish-actions.pod:2149
23951 msgid "inspect-is-netinst"
23952 msgstr ""
23953
23954 #. type: verbatim
23955 #: ../fish/guestfish-actions.pod:2151
23956 #, no-wrap
23957 msgid ""
23958 " inspect-is-netinst root\n"
23959 "\n"
23960 msgstr ""
23961
23962 #. type: textblock
23963 #: ../fish/guestfish-actions.pod:2156
23964 msgid ""
23965 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
23966 "then this returns true if the disk is a network installer, ie. not a self-"
23967 "contained install CD but one which is likely to require network access to "
23968 "complete the install."
23969 msgstr ""
23970
23971 #. type: =head2
23972 #: ../fish/guestfish-actions.pod:2164
23973 msgid "inspect-list-applications"
23974 msgstr ""
23975
23976 #. type: verbatim
23977 #: ../fish/guestfish-actions.pod:2166
23978 #, no-wrap
23979 msgid ""
23980 " inspect-list-applications root\n"
23981 "\n"
23982 msgstr ""
23983
23984 #. type: textblock
23985 #: ../fish/guestfish-actions.pod:2173
23986 msgid ""
23987 "I<Note:> This call works differently from other parts of the inspection "
23988 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
23989 "then mount up the disks, before calling this.  Listing applications is a "
23990 "significantly more difficult operation which requires access to the full "
23991 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
23992 "are just returning data cached in the libguestfs handle, this call actually "
23993 "reads parts of the mounted filesystems during the call."
23994 msgstr ""
23995
23996 #. type: =head2
23997 #: ../fish/guestfish-actions.pod:2263
23998 msgid "inspect-os"
23999 msgstr ""
24000
24001 #. type: verbatim
24002 #: ../fish/guestfish-actions.pod:2265
24003 #, no-wrap
24004 msgid ""
24005 " inspect-os\n"
24006 "\n"
24007 msgstr ""
24008
24009 #. type: textblock
24010 #: ../fish/guestfish-actions.pod:2280
24011 msgid ""
24012 "You can pass the root string(s) returned to other L</inspect-get-*> "
24013 "functions in order to query further information about each operating system, "
24014 "such as the name and version."
24015 msgstr ""
24016
24017 #. type: textblock
24018 #: ../fish/guestfish-actions.pod:2285
24019 msgid ""
24020 "This function uses other libguestfs features such as L</mount-ro> and L</"
24021 "umount-all> in order to mount and unmount filesystems and look at the "
24022 "contents.  This should be called with no disks currently mounted.  The "
24023 "function may also use Augeas, so any existing Augeas handle will be closed."
24024 msgstr ""
24025
24026 #. type: textblock
24027 #: ../fish/guestfish-actions.pod:2297 ../fish/guestfish-actions.pod:2473
24028 #: ../fish/guestfish-actions.pod:2519
24029 msgid "See also L</list-filesystems>."
24030 msgstr ""
24031
24032 #. type: =head2
24033 #: ../fish/guestfish-actions.pod:2299
24034 msgid "is-blockdev"
24035 msgstr ""
24036
24037 #. type: verbatim
24038 #: ../fish/guestfish-actions.pod:2301
24039 #, no-wrap
24040 msgid ""
24041 " is-blockdev path\n"
24042 "\n"
24043 msgstr ""
24044
24045 #. type: textblock
24046 #: ../fish/guestfish-actions.pod:2306 ../fish/guestfish-actions.pod:2324
24047 #: ../fish/guestfish-actions.pod:2343 ../fish/guestfish-actions.pod:2352
24048 #: ../fish/guestfish-actions.pod:2362 ../fish/guestfish-actions.pod:2396
24049 #: ../fish/guestfish-actions.pod:2405
24050 msgid "See also L</stat>."
24051 msgstr ""
24052
24053 #. type: =head2
24054 #: ../fish/guestfish-actions.pod:2308
24055 msgid "is-busy"
24056 msgstr ""
24057
24058 #. type: verbatim
24059 #: ../fish/guestfish-actions.pod:2310
24060 #, no-wrap
24061 msgid ""
24062 " is-busy\n"
24063 "\n"
24064 msgstr ""
24065
24066 #. type: =head2
24067 #: ../fish/guestfish-actions.pod:2317
24068 msgid "is-chardev"
24069 msgstr ""
24070
24071 #. type: verbatim
24072 #: ../fish/guestfish-actions.pod:2319
24073 #, no-wrap
24074 msgid ""
24075 " is-chardev path\n"
24076 "\n"
24077 msgstr ""
24078
24079 #. type: =head2
24080 #: ../fish/guestfish-actions.pod:2326
24081 msgid "is-config"
24082 msgstr ""
24083
24084 #. type: verbatim
24085 #: ../fish/guestfish-actions.pod:2328
24086 #, no-wrap
24087 msgid ""
24088 " is-config\n"
24089 "\n"
24090 msgstr ""
24091
24092 #. type: =head2
24093 #: ../fish/guestfish-actions.pod:2335
24094 msgid "is-dir"
24095 msgstr ""
24096
24097 #. type: verbatim
24098 #: ../fish/guestfish-actions.pod:2337
24099 #, no-wrap
24100 msgid ""
24101 " is-dir path\n"
24102 "\n"
24103 msgstr ""
24104
24105 #. type: =head2
24106 #: ../fish/guestfish-actions.pod:2345
24107 msgid "is-fifo"
24108 msgstr ""
24109
24110 #. type: verbatim
24111 #: ../fish/guestfish-actions.pod:2347
24112 #, no-wrap
24113 msgid ""
24114 " is-fifo path\n"
24115 "\n"
24116 msgstr ""
24117
24118 #. type: =head2
24119 #: ../fish/guestfish-actions.pod:2354
24120 msgid "is-file"
24121 msgstr ""
24122
24123 #. type: verbatim
24124 #: ../fish/guestfish-actions.pod:2356
24125 #, no-wrap
24126 msgid ""
24127 " is-file path\n"
24128 "\n"
24129 msgstr ""
24130
24131 #. type: =head2
24132 #: ../fish/guestfish-actions.pod:2364
24133 msgid "is-launching"
24134 msgstr ""
24135
24136 #. type: verbatim
24137 #: ../fish/guestfish-actions.pod:2366
24138 #, no-wrap
24139 msgid ""
24140 " is-launching\n"
24141 "\n"
24142 msgstr ""
24143
24144 #. type: =head2
24145 #: ../fish/guestfish-actions.pod:2373
24146 msgid "is-lv"
24147 msgstr ""
24148
24149 #. type: verbatim
24150 #: ../fish/guestfish-actions.pod:2375
24151 #, no-wrap
24152 msgid ""
24153 " is-lv device\n"
24154 "\n"
24155 msgstr ""
24156
24157 #. type: =head2
24158 #: ../fish/guestfish-actions.pod:2380
24159 msgid "is-ready"
24160 msgstr ""
24161
24162 #. type: verbatim
24163 #: ../fish/guestfish-actions.pod:2382
24164 #, no-wrap
24165 msgid ""
24166 " is-ready\n"
24167 "\n"
24168 msgstr ""
24169
24170 #. type: =head2
24171 #: ../fish/guestfish-actions.pod:2389
24172 msgid "is-socket"
24173 msgstr ""
24174
24175 #. type: verbatim
24176 #: ../fish/guestfish-actions.pod:2391
24177 #, no-wrap
24178 msgid ""
24179 " is-socket path\n"
24180 "\n"
24181 msgstr ""
24182
24183 #. type: =head2
24184 #: ../fish/guestfish-actions.pod:2398
24185 msgid "is-symlink"
24186 msgstr ""
24187
24188 #. type: verbatim
24189 #: ../fish/guestfish-actions.pod:2400
24190 #, no-wrap
24191 msgid ""
24192 " is-symlink path\n"
24193 "\n"
24194 msgstr ""
24195
24196 #. type: =head2
24197 #: ../fish/guestfish-actions.pod:2407
24198 msgid "kill-subprocess"
24199 msgstr ""
24200
24201 #. type: verbatim
24202 #: ../fish/guestfish-actions.pod:2409
24203 #, no-wrap
24204 msgid ""
24205 " kill-subprocess\n"
24206 "\n"
24207 msgstr ""
24208
24209 #. type: =head2
24210 #: ../fish/guestfish-actions.pod:2413
24211 msgid "launch"
24212 msgstr ""
24213
24214 #. type: =head2
24215 #: ../fish/guestfish-actions.pod:2415
24216 msgid "run"
24217 msgstr ""
24218
24219 #. type: verbatim
24220 #: ../fish/guestfish-actions.pod:2417
24221 #, no-wrap
24222 msgid ""
24223 " launch\n"
24224 "\n"
24225 msgstr ""
24226
24227 #. type: =head2
24228 #: ../fish/guestfish-actions.pod:2425
24229 msgid "lchown"
24230 msgstr ""
24231
24232 #. type: verbatim
24233 #: ../fish/guestfish-actions.pod:2427
24234 #, no-wrap
24235 msgid ""
24236 " lchown owner group path\n"
24237 "\n"
24238 msgstr ""
24239
24240 #. type: textblock
24241 #: ../fish/guestfish-actions.pod:2429
24242 msgid ""
24243 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
24244 "chown> but if C<path> is a symlink then the link itself is changed, not the "
24245 "target."
24246 msgstr ""
24247
24248 #. type: =head2
24249 #: ../fish/guestfish-actions.pod:2437
24250 msgid "lgetxattr"
24251 msgstr ""
24252
24253 #. type: verbatim
24254 #: ../fish/guestfish-actions.pod:2439
24255 #, no-wrap
24256 msgid ""
24257 " lgetxattr path name\n"
24258 "\n"
24259 msgstr ""
24260
24261 #. type: textblock
24262 #: ../fish/guestfish-actions.pod:2455
24263 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
24264 msgstr ""
24265
24266 #. type: =head2
24267 #: ../fish/guestfish-actions.pod:2457
24268 msgid "lgetxattrs"
24269 msgstr ""
24270
24271 #. type: verbatim
24272 #: ../fish/guestfish-actions.pod:2459
24273 #, no-wrap
24274 msgid ""
24275 " lgetxattrs path\n"
24276 "\n"
24277 msgstr ""
24278
24279 #. type: textblock
24280 #: ../fish/guestfish-actions.pod:2461
24281 msgid ""
24282 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
24283 "it returns the extended attributes of the link itself."
24284 msgstr ""
24285
24286 #. type: =head2
24287 #: ../fish/guestfish-actions.pod:2465
24288 msgid "list-devices"
24289 msgstr ""
24290
24291 #. type: verbatim
24292 #: ../fish/guestfish-actions.pod:2467
24293 #, no-wrap
24294 msgid ""
24295 " list-devices\n"
24296 "\n"
24297 msgstr ""
24298
24299 #. type: =head2
24300 #: ../fish/guestfish-actions.pod:2475
24301 msgid "list-filesystems"
24302 msgstr ""
24303
24304 #. type: verbatim
24305 #: ../fish/guestfish-actions.pod:2477
24306 #, no-wrap
24307 msgid ""
24308 " list-filesystems\n"
24309 "\n"
24310 msgstr ""
24311
24312 #. type: textblock
24313 #: ../fish/guestfish-actions.pod:2496
24314 msgid ""
24315 "This command runs other libguestfs commands, which might include L</mount> "
24316 "and L</umount>, and therefore you should use this soon after launch and only "
24317 "when nothing is mounted."
24318 msgstr ""
24319
24320 #. type: textblock
24321 #: ../fish/guestfish-actions.pod:2500
24322 msgid ""
24323 "Not all of the filesystems returned will be mountable.  In particular, swap "
24324 "partitions are returned in the list.  Also this command does not check that "
24325 "each filesystem found is valid and mountable, and some filesystems might be "
24326 "mountable but require special options.  Filesystems may not all belong to a "
24327 "single logical operating system (use L</inspect-os> to look for OSes)."
24328 msgstr ""
24329
24330 #. type: =head2
24331 #: ../fish/guestfish-actions.pod:2508
24332 msgid "list-partitions"
24333 msgstr ""
24334
24335 #. type: verbatim
24336 #: ../fish/guestfish-actions.pod:2510
24337 #, no-wrap
24338 msgid ""
24339 " list-partitions\n"
24340 "\n"
24341 msgstr ""
24342
24343 #. type: textblock
24344 #: ../fish/guestfish-actions.pod:2516
24345 msgid ""
24346 "This does not return logical volumes.  For that you will need to call L</"
24347 "lvs>."
24348 msgstr ""
24349
24350 #. type: =head2
24351 #: ../fish/guestfish-actions.pod:2521
24352 msgid "ll"
24353 msgstr ""
24354
24355 #. type: verbatim
24356 #: ../fish/guestfish-actions.pod:2523
24357 #, no-wrap
24358 msgid ""
24359 " ll directory\n"
24360 "\n"
24361 msgstr ""
24362
24363 #. type: =head2
24364 #: ../fish/guestfish-actions.pod:2531
24365 msgid "ln"
24366 msgstr ""
24367
24368 #. type: verbatim
24369 #: ../fish/guestfish-actions.pod:2533
24370 #, no-wrap
24371 msgid ""
24372 " ln target linkname\n"
24373 "\n"
24374 msgstr ""
24375
24376 #. type: =head2
24377 #: ../fish/guestfish-actions.pod:2537
24378 msgid "ln-f"
24379 msgstr ""
24380
24381 #. type: verbatim
24382 #: ../fish/guestfish-actions.pod:2539
24383 #, no-wrap
24384 msgid ""
24385 " ln-f target linkname\n"
24386 "\n"
24387 msgstr ""
24388
24389 #. type: =head2
24390 #: ../fish/guestfish-actions.pod:2544
24391 msgid "ln-s"
24392 msgstr ""
24393
24394 #. type: verbatim
24395 #: ../fish/guestfish-actions.pod:2546
24396 #, no-wrap
24397 msgid ""
24398 " ln-s target linkname\n"
24399 "\n"
24400 msgstr ""
24401
24402 #. type: =head2
24403 #: ../fish/guestfish-actions.pod:2550
24404 msgid "ln-sf"
24405 msgstr ""
24406
24407 #. type: verbatim
24408 #: ../fish/guestfish-actions.pod:2552
24409 #, no-wrap
24410 msgid ""
24411 " ln-sf target linkname\n"
24412 "\n"
24413 msgstr ""
24414
24415 #. type: =head2
24416 #: ../fish/guestfish-actions.pod:2557
24417 msgid "lremovexattr"
24418 msgstr ""
24419
24420 #. type: verbatim
24421 #: ../fish/guestfish-actions.pod:2559
24422 #, no-wrap
24423 msgid ""
24424 " lremovexattr xattr path\n"
24425 "\n"
24426 msgstr ""
24427
24428 #. type: textblock
24429 #: ../fish/guestfish-actions.pod:2561
24430 msgid ""
24431 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
24432 "it removes an extended attribute of the link itself."
24433 msgstr ""
24434
24435 #. type: =head2
24436 #: ../fish/guestfish-actions.pod:2565
24437 msgid "ls"
24438 msgstr ""
24439
24440 #. type: verbatim
24441 #: ../fish/guestfish-actions.pod:2567
24442 #, no-wrap
24443 msgid ""
24444 " ls directory\n"
24445 "\n"
24446 msgstr ""
24447
24448 #. type: textblock
24449 #: ../fish/guestfish-actions.pod:2573
24450 msgid ""
24451 "This command is mostly useful for interactive sessions.  Programs should "
24452 "probably use L</readdir> instead."
24453 msgstr ""
24454
24455 #. type: =head2
24456 #: ../fish/guestfish-actions.pod:2576
24457 msgid "lsetxattr"
24458 msgstr ""
24459
24460 #. type: verbatim
24461 #: ../fish/guestfish-actions.pod:2578
24462 #, no-wrap
24463 msgid ""
24464 " lsetxattr xattr val vallen path\n"
24465 "\n"
24466 msgstr ""
24467
24468 #. type: textblock
24469 #: ../fish/guestfish-actions.pod:2580
24470 msgid ""
24471 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
24472 "sets an extended attribute of the link itself."
24473 msgstr ""
24474
24475 #. type: =head2
24476 #: ../fish/guestfish-actions.pod:2584
24477 msgid "lstat"
24478 msgstr ""
24479
24480 #. type: verbatim
24481 #: ../fish/guestfish-actions.pod:2586
24482 #, no-wrap
24483 msgid ""
24484 " lstat path\n"
24485 "\n"
24486 msgstr ""
24487
24488 #. type: textblock
24489 #: ../fish/guestfish-actions.pod:2590
24490 msgid ""
24491 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
24492 "the link is stat-ed, not the file it refers to."
24493 msgstr ""
24494
24495 #. type: =head2
24496 #: ../fish/guestfish-actions.pod:2596
24497 msgid "lstatlist"
24498 msgstr ""
24499
24500 #. type: verbatim
24501 #: ../fish/guestfish-actions.pod:2598
24502 #, no-wrap
24503 msgid ""
24504 " lstatlist path 'names ...'\n"
24505 "\n"
24506 msgstr ""
24507
24508 #. type: textblock
24509 #: ../fish/guestfish-actions.pod:2600
24510 msgid ""
24511 "This call allows you to perform the L</lstat> operation on multiple files, "
24512 "where all files are in the directory C<path>.  C<names> is the list of files "
24513 "from this directory."
24514 msgstr ""
24515
24516 #. type: textblock
24517 #: ../fish/guestfish-actions.pod:2609
24518 msgid ""
24519 "This call is intended for programs that want to efficiently list a directory "
24520 "contents without making many round-trips.  See also L</lxattrlist> for a "
24521 "similarly efficient call for getting extended attributes.  Very long "
24522 "directory listings might cause the protocol message size to be exceeded, "
24523 "causing this call to fail.  The caller must split up such requests into "
24524 "smaller groups of names."
24525 msgstr ""
24526
24527 #. type: =head2
24528 #: ../fish/guestfish-actions.pod:2617
24529 msgid "luks-add-key"
24530 msgstr ""
24531
24532 #. type: verbatim
24533 #: ../fish/guestfish-actions.pod:2619
24534 #, no-wrap
24535 msgid ""
24536 " luks-add-key device keyslot\n"
24537 "\n"
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../fish/guestfish-actions.pod:2626
24542 msgid ""
24543 "Note that if C<keyslot> already contains a key, then this command will "
24544 "fail.  You have to use L</luks-kill-slot> first to remove that key."
24545 msgstr ""
24546
24547 #. type: textblock
24548 #: ../fish/guestfish-actions.pod:2630 ../fish/guestfish-actions.pod:2652
24549 #: ../fish/guestfish-actions.pod:2665 ../fish/guestfish-actions.pod:2679
24550 #: ../fish/guestfish-actions.pod:2702 ../fish/guestfish-actions.pod:2712
24551 msgid ""
24552 "This command has one or more key or passphrase parameters.  Guestfish will "
24553 "prompt for these separately."
24554 msgstr ""
24555
24556 #. type: =head2
24557 #: ../fish/guestfish-actions.pod:2633
24558 msgid "luks-close"
24559 msgstr ""
24560
24561 #. type: verbatim
24562 #: ../fish/guestfish-actions.pod:2635
24563 #, no-wrap
24564 msgid ""
24565 " luks-close device\n"
24566 "\n"
24567 msgstr ""
24568
24569 #. type: textblock
24570 #: ../fish/guestfish-actions.pod:2637
24571 msgid ""
24572 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
24573 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
24574 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
24575 "block device."
24576 msgstr ""
24577
24578 #. type: =head2
24579 #: ../fish/guestfish-actions.pod:2643
24580 msgid "luks-format"
24581 msgstr ""
24582
24583 #. type: verbatim
24584 #: ../fish/guestfish-actions.pod:2645
24585 #, no-wrap
24586 msgid ""
24587 " luks-format device keyslot\n"
24588 "\n"
24589 msgstr ""
24590
24591 #. type: =head2
24592 #: ../fish/guestfish-actions.pod:2658
24593 msgid "luks-format-cipher"
24594 msgstr ""
24595
24596 #. type: verbatim
24597 #: ../fish/guestfish-actions.pod:2660
24598 #, no-wrap
24599 msgid ""
24600 " luks-format-cipher device keyslot cipher\n"
24601 "\n"
24602 msgstr ""
24603
24604 #. type: textblock
24605 #: ../fish/guestfish-actions.pod:2662
24606 msgid ""
24607 "This command is the same as L</luks-format> but it also allows you to set "
24608 "the C<cipher> used."
24609 msgstr ""
24610
24611 #. type: =head2
24612 #: ../fish/guestfish-actions.pod:2671
24613 msgid "luks-kill-slot"
24614 msgstr ""
24615
24616 #. type: verbatim
24617 #: ../fish/guestfish-actions.pod:2673
24618 #, no-wrap
24619 msgid ""
24620 " luks-kill-slot device keyslot\n"
24621 "\n"
24622 msgstr ""
24623
24624 #. type: =head2
24625 #: ../fish/guestfish-actions.pod:2682
24626 msgid "luks-open"
24627 msgstr ""
24628
24629 #. type: verbatim
24630 #: ../fish/guestfish-actions.pod:2684
24631 #, no-wrap
24632 msgid ""
24633 " luks-open device mapname\n"
24634 "\n"
24635 msgstr ""
24636
24637 #. type: textblock
24638 #: ../fish/guestfish-actions.pod:2698
24639 msgid ""
24640 "If this block device contains LVM volume groups, then calling L</vgscan> "
24641 "followed by L</vg-activate-all> will make them visible."
24642 msgstr ""
24643
24644 #. type: =head2
24645 #: ../fish/guestfish-actions.pod:2705
24646 msgid "luks-open-ro"
24647 msgstr ""
24648
24649 #. type: verbatim
24650 #: ../fish/guestfish-actions.pod:2707
24651 #, no-wrap
24652 msgid ""
24653 " luks-open-ro device mapname\n"
24654 "\n"
24655 msgstr ""
24656
24657 #. type: textblock
24658 #: ../fish/guestfish-actions.pod:2709
24659 msgid ""
24660 "This is the same as L</luks-open> except that a read-only mapping is created."
24661 msgstr ""
24662
24663 #. type: =head2
24664 #: ../fish/guestfish-actions.pod:2715
24665 msgid "lvcreate"
24666 msgstr ""
24667
24668 #. type: verbatim
24669 #: ../fish/guestfish-actions.pod:2717
24670 #, no-wrap
24671 msgid ""
24672 " lvcreate logvol volgroup mbytes\n"
24673 "\n"
24674 msgstr ""
24675
24676 #. type: =head2
24677 #: ../fish/guestfish-actions.pod:2722
24678 msgid "lvm-canonical-lv-name"
24679 msgstr ""
24680
24681 #. type: verbatim
24682 #: ../fish/guestfish-actions.pod:2724
24683 #, no-wrap
24684 msgid ""
24685 " lvm-canonical-lv-name lvname\n"
24686 "\n"
24687 msgstr ""
24688
24689 #. type: textblock
24690 #: ../fish/guestfish-actions.pod:2733
24691 msgid "See also L</is-lv>."
24692 msgstr ""
24693
24694 #. type: =head2
24695 #: ../fish/guestfish-actions.pod:2735
24696 msgid "lvm-clear-filter"
24697 msgstr ""
24698
24699 #. type: verbatim
24700 #: ../fish/guestfish-actions.pod:2737
24701 #, no-wrap
24702 msgid ""
24703 " lvm-clear-filter\n"
24704 "\n"
24705 msgstr ""
24706
24707 #. type: textblock
24708 #: ../fish/guestfish-actions.pod:2739
24709 msgid ""
24710 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
24711 "block device."
24712 msgstr ""
24713
24714 #. type: =head2
24715 #: ../fish/guestfish-actions.pod:2745
24716 msgid "lvm-remove-all"
24717 msgstr ""
24718
24719 #. type: verbatim
24720 #: ../fish/guestfish-actions.pod:2747
24721 #, no-wrap
24722 msgid ""
24723 " lvm-remove-all\n"
24724 "\n"
24725 msgstr ""
24726
24727 #. type: =head2
24728 #: ../fish/guestfish-actions.pod:2755
24729 msgid "lvm-set-filter"
24730 msgstr ""
24731
24732 #. type: verbatim
24733 #: ../fish/guestfish-actions.pod:2757
24734 #, no-wrap
24735 msgid ""
24736 " lvm-set-filter 'devices ...'\n"
24737 "\n"
24738 msgstr ""
24739
24740 #. type: =head2
24741 #: ../fish/guestfish-actions.pod:2782
24742 msgid "lvremove"
24743 msgstr ""
24744
24745 #. type: verbatim
24746 #: ../fish/guestfish-actions.pod:2784
24747 #, no-wrap
24748 msgid ""
24749 " lvremove device\n"
24750 "\n"
24751 msgstr ""
24752
24753 #. type: =head2
24754 #: ../fish/guestfish-actions.pod:2792
24755 msgid "lvrename"
24756 msgstr ""
24757
24758 #. type: verbatim
24759 #: ../fish/guestfish-actions.pod:2794
24760 #, no-wrap
24761 msgid ""
24762 " lvrename logvol newlogvol\n"
24763 "\n"
24764 msgstr ""
24765
24766 #. type: =head2
24767 #: ../fish/guestfish-actions.pod:2798
24768 msgid "lvresize"
24769 msgstr ""
24770
24771 #. type: verbatim
24772 #: ../fish/guestfish-actions.pod:2800
24773 #, no-wrap
24774 msgid ""
24775 " lvresize device mbytes\n"
24776 "\n"
24777 msgstr ""
24778
24779 #. type: =head2
24780 #: ../fish/guestfish-actions.pod:2806
24781 msgid "lvresize-free"
24782 msgstr ""
24783
24784 #. type: verbatim
24785 #: ../fish/guestfish-actions.pod:2808
24786 #, no-wrap
24787 msgid ""
24788 " lvresize-free lv percent\n"
24789 "\n"
24790 msgstr ""
24791
24792 #. type: =head2
24793 #: ../fish/guestfish-actions.pod:2816
24794 msgid "lvs"
24795 msgstr ""
24796
24797 #. type: verbatim
24798 #: ../fish/guestfish-actions.pod:2818
24799 #, no-wrap
24800 msgid ""
24801 " lvs\n"
24802 "\n"
24803 msgstr ""
24804
24805 #. type: textblock
24806 #: ../fish/guestfish-actions.pod:2826
24807 msgid "See also L</lvs-full>, L</list-filesystems>."
24808 msgstr ""
24809
24810 #. type: =head2
24811 #: ../fish/guestfish-actions.pod:2828
24812 msgid "lvs-full"
24813 msgstr ""
24814
24815 #. type: verbatim
24816 #: ../fish/guestfish-actions.pod:2830
24817 #, no-wrap
24818 msgid ""
24819 " lvs-full\n"
24820 "\n"
24821 msgstr ""
24822
24823 #. type: =head2
24824 #: ../fish/guestfish-actions.pod:2835
24825 msgid "lvuuid"
24826 msgstr ""
24827
24828 #. type: verbatim
24829 #: ../fish/guestfish-actions.pod:2837
24830 #, no-wrap
24831 msgid ""
24832 " lvuuid device\n"
24833 "\n"
24834 msgstr ""
24835
24836 #. type: =head2
24837 #: ../fish/guestfish-actions.pod:2841
24838 msgid "lxattrlist"
24839 msgstr ""
24840
24841 #. type: verbatim
24842 #: ../fish/guestfish-actions.pod:2843
24843 #, no-wrap
24844 msgid ""
24845 " lxattrlist path 'names ...'\n"
24846 "\n"
24847 msgstr ""
24848
24849 #. type: textblock
24850 #: ../fish/guestfish-actions.pod:2859
24851 msgid ""
24852 "This call is intended for programs that want to efficiently list a directory "
24853 "contents without making many round-trips.  See also L</lstatlist> for a "
24854 "similarly efficient call for getting standard stats.  Very long directory "
24855 "listings might cause the protocol message size to be exceeded, causing this "
24856 "call to fail.  The caller must split up such requests into smaller groups of "
24857 "names."
24858 msgstr ""
24859
24860 #. type: =head2
24861 #: ../fish/guestfish-actions.pod:2867
24862 msgid "mkdir"
24863 msgstr ""
24864
24865 #. type: verbatim
24866 #: ../fish/guestfish-actions.pod:2869
24867 #, no-wrap
24868 msgid ""
24869 " mkdir path\n"
24870 "\n"
24871 msgstr ""
24872
24873 #. type: =head2
24874 #: ../fish/guestfish-actions.pod:2873
24875 msgid "mkdir-mode"
24876 msgstr ""
24877
24878 #. type: verbatim
24879 #: ../fish/guestfish-actions.pod:2875
24880 #, no-wrap
24881 msgid ""
24882 " mkdir-mode path mode\n"
24883 "\n"
24884 msgstr ""
24885
24886 #. type: textblock
24887 #: ../fish/guestfish-actions.pod:2884
24888 msgid "See also L</mkdir>, L</umask>"
24889 msgstr ""
24890
24891 #. type: =head2
24892 #: ../fish/guestfish-actions.pod:2886
24893 msgid "mkdir-p"
24894 msgstr ""
24895
24896 #. type: verbatim
24897 #: ../fish/guestfish-actions.pod:2888
24898 #, no-wrap
24899 msgid ""
24900 " mkdir-p path\n"
24901 "\n"
24902 msgstr ""
24903
24904 #. type: =head2
24905 #: ../fish/guestfish-actions.pod:2893
24906 msgid "mkdtemp"
24907 msgstr ""
24908
24909 #. type: verbatim
24910 #: ../fish/guestfish-actions.pod:2895
24911 #, no-wrap
24912 msgid ""
24913 " mkdtemp template\n"
24914 "\n"
24915 msgstr ""
24916
24917 #. type: =head2
24918 #: ../fish/guestfish-actions.pod:2916
24919 msgid "mke2fs-J"
24920 msgstr ""
24921
24922 #. type: verbatim
24923 #: ../fish/guestfish-actions.pod:2918
24924 #, no-wrap
24925 msgid ""
24926 " mke2fs-J fstype blocksize device journal\n"
24927 "\n"
24928 msgstr ""
24929
24930 #. type: textblock
24931 #: ../fish/guestfish-actions.pod:2926
24932 msgid "See also L</mke2journal>."
24933 msgstr ""
24934
24935 #. type: =head2
24936 #: ../fish/guestfish-actions.pod:2928
24937 msgid "mke2fs-JL"
24938 msgstr ""
24939
24940 #. type: verbatim
24941 #: ../fish/guestfish-actions.pod:2930
24942 #, no-wrap
24943 msgid ""
24944 " mke2fs-JL fstype blocksize device label\n"
24945 "\n"
24946 msgstr ""
24947
24948 #. type: textblock
24949 #: ../fish/guestfish-actions.pod:2935
24950 msgid "See also L</mke2journal-L>."
24951 msgstr ""
24952
24953 #. type: =head2
24954 #: ../fish/guestfish-actions.pod:2937
24955 msgid "mke2fs-JU"
24956 msgstr ""
24957
24958 #. type: verbatim
24959 #: ../fish/guestfish-actions.pod:2939
24960 #, no-wrap
24961 msgid ""
24962 " mke2fs-JU fstype blocksize device uuid\n"
24963 "\n"
24964 msgstr ""
24965
24966 #. type: textblock
24967 #: ../fish/guestfish-actions.pod:2944
24968 msgid "See also L</mke2journal-U>."
24969 msgstr ""
24970
24971 #. type: =head2
24972 #: ../fish/guestfish-actions.pod:2946
24973 msgid "mke2journal"
24974 msgstr ""
24975
24976 #. type: verbatim
24977 #: ../fish/guestfish-actions.pod:2948
24978 #, no-wrap
24979 msgid ""
24980 " mke2journal blocksize device\n"
24981 "\n"
24982 msgstr ""
24983
24984 #. type: =head2
24985 #: ../fish/guestfish-actions.pod:2955
24986 msgid "mke2journal-L"
24987 msgstr ""
24988
24989 #. type: verbatim
24990 #: ../fish/guestfish-actions.pod:2957
24991 #, no-wrap
24992 msgid ""
24993 " mke2journal-L blocksize label device\n"
24994 "\n"
24995 msgstr ""
24996
24997 #. type: =head2
24998 #: ../fish/guestfish-actions.pod:2961
24999 msgid "mke2journal-U"
25000 msgstr ""
25001
25002 #. type: verbatim
25003 #: ../fish/guestfish-actions.pod:2963
25004 #, no-wrap
25005 msgid ""
25006 " mke2journal-U blocksize uuid device\n"
25007 "\n"
25008 msgstr ""
25009
25010 #. type: =head2
25011 #: ../fish/guestfish-actions.pod:2967
25012 msgid "mkfifo"
25013 msgstr ""
25014
25015 #. type: verbatim
25016 #: ../fish/guestfish-actions.pod:2969
25017 #, no-wrap
25018 msgid ""
25019 " mkfifo mode path\n"
25020 "\n"
25021 msgstr ""
25022
25023 #. type: textblock
25024 #: ../fish/guestfish-actions.pod:2971
25025 msgid ""
25026 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
25027 "is just a convenient wrapper around L</mknod>."
25028 msgstr ""
25029
25030 #. type: =head2
25031 #: ../fish/guestfish-actions.pod:2977
25032 msgid "mkfs"
25033 msgstr ""
25034
25035 #. type: verbatim
25036 #: ../fish/guestfish-actions.pod:2979
25037 #, no-wrap
25038 msgid ""
25039 " mkfs fstype device\n"
25040 "\n"
25041 msgstr ""
25042
25043 #. type: =head2
25044 #: ../fish/guestfish-actions.pod:2985
25045 msgid "mkfs-b"
25046 msgstr ""
25047
25048 #. type: verbatim
25049 #: ../fish/guestfish-actions.pod:2987
25050 #, no-wrap
25051 msgid ""
25052 " mkfs-b fstype blocksize device\n"
25053 "\n"
25054 msgstr ""
25055
25056 #. type: textblock
25057 #: ../fish/guestfish-actions.pod:2989
25058 msgid ""
25059 "This call is similar to L</mkfs>, but it allows you to control the block "
25060 "size of the resulting filesystem.  Supported block sizes depend on the "
25061 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
25062 msgstr ""
25063
25064 #. type: =head2
25065 #: ../fish/guestfish-actions.pod:3004
25066 msgid "mkfs-opts"
25067 msgstr ""
25068
25069 #. type: verbatim
25070 #: ../fish/guestfish-actions.pod:3006
25071 #, no-wrap
25072 msgid ""
25073 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
25074 "\n"
25075 msgstr ""
25076
25077 #. type: =head2
25078 #: ../fish/guestfish-actions.pod:3041
25079 msgid "mkmountpoint"
25080 msgstr ""
25081
25082 #. type: verbatim
25083 #: ../fish/guestfish-actions.pod:3043
25084 #, no-wrap
25085 msgid ""
25086 " mkmountpoint exemptpath\n"
25087 "\n"
25088 msgstr ""
25089
25090 #. type: textblock
25091 #: ../fish/guestfish-actions.pod:3045
25092 msgid ""
25093 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
25094 "to create extra mountpoints before mounting the first filesystem."
25095 msgstr ""
25096
25097 #. type: textblock
25098 #: ../fish/guestfish-actions.pod:3069
25099 msgid ""
25100 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
25101 "unexpected errors if you try to mix these calls.  It is safest to manually "
25102 "unmount filesystems and remove mountpoints after use."
25103 msgstr ""
25104
25105 #. type: textblock
25106 #: ../fish/guestfish-actions.pod:3073
25107 msgid ""
25108 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
25109 "for this to work for manual mountpoints, you must ensure that the innermost "
25110 "mountpoints have the longest pathnames, as in the example code above."
25111 msgstr ""
25112
25113 #. type: textblock
25114 #: ../fish/guestfish-actions.pod:3080
25115 msgid ""
25116 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
25117 "L</umount-all> to be called when the handle is closed which can also trigger "
25118 "these issues."
25119 msgstr ""
25120
25121 #. type: =head2
25122 #: ../fish/guestfish-actions.pod:3084
25123 msgid "mknod"
25124 msgstr ""
25125
25126 #. type: verbatim
25127 #: ../fish/guestfish-actions.pod:3086
25128 #, no-wrap
25129 msgid ""
25130 " mknod mode devmajor devminor path\n"
25131 "\n"
25132 msgstr ""
25133
25134 #. type: textblock
25135 #: ../fish/guestfish-actions.pod:3096
25136 msgid ""
25137 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
25138 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
25139 "regular file).  These constants are available in the standard Linux header "
25140 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
25141 "wrappers around this command which bitwise OR in the appropriate constant "
25142 "for you."
25143 msgstr ""
25144
25145 #. type: =head2
25146 #: ../fish/guestfish-actions.pod:3106
25147 msgid "mknod-b"
25148 msgstr ""
25149
25150 #. type: verbatim
25151 #: ../fish/guestfish-actions.pod:3108
25152 #, no-wrap
25153 msgid ""
25154 " mknod-b mode devmajor devminor path\n"
25155 "\n"
25156 msgstr ""
25157
25158 #. type: textblock
25159 #: ../fish/guestfish-actions.pod:3110
25160 msgid ""
25161 "This call creates a block device node called C<path> with mode C<mode> and "
25162 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25163 "wrapper around L</mknod>."
25164 msgstr ""
25165
25166 #. type: =head2
25167 #: ../fish/guestfish-actions.pod:3116
25168 msgid "mknod-c"
25169 msgstr ""
25170
25171 #. type: verbatim
25172 #: ../fish/guestfish-actions.pod:3118
25173 #, no-wrap
25174 msgid ""
25175 " mknod-c mode devmajor devminor path\n"
25176 "\n"
25177 msgstr ""
25178
25179 #. type: textblock
25180 #: ../fish/guestfish-actions.pod:3120
25181 msgid ""
25182 "This call creates a char device node called C<path> with mode C<mode> and "
25183 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25184 "wrapper around L</mknod>."
25185 msgstr ""
25186
25187 #. type: =head2
25188 #: ../fish/guestfish-actions.pod:3126
25189 msgid "mkswap"
25190 msgstr ""
25191
25192 #. type: verbatim
25193 #: ../fish/guestfish-actions.pod:3128
25194 #, no-wrap
25195 msgid ""
25196 " mkswap device\n"
25197 "\n"
25198 msgstr ""
25199
25200 #. type: =head2
25201 #: ../fish/guestfish-actions.pod:3132
25202 msgid "mkswap-L"
25203 msgstr ""
25204
25205 #. type: verbatim
25206 #: ../fish/guestfish-actions.pod:3134
25207 #, no-wrap
25208 msgid ""
25209 " mkswap-L label device\n"
25210 "\n"
25211 msgstr ""
25212
25213 #. type: =head2
25214 #: ../fish/guestfish-actions.pod:3142
25215 msgid "mkswap-U"
25216 msgstr ""
25217
25218 #. type: verbatim
25219 #: ../fish/guestfish-actions.pod:3144
25220 #, no-wrap
25221 msgid ""
25222 " mkswap-U uuid device\n"
25223 "\n"
25224 msgstr ""
25225
25226 #. type: =head2
25227 #: ../fish/guestfish-actions.pod:3148
25228 msgid "mkswap-file"
25229 msgstr ""
25230
25231 #. type: verbatim
25232 #: ../fish/guestfish-actions.pod:3150
25233 #, no-wrap
25234 msgid ""
25235 " mkswap-file path\n"
25236 "\n"
25237 msgstr ""
25238
25239 #. type: textblock
25240 #: ../fish/guestfish-actions.pod:3154
25241 msgid ""
25242 "This command just writes a swap file signature to an existing file.  To "
25243 "create the file itself, use something like L</fallocate>."
25244 msgstr ""
25245
25246 #. type: =head2
25247 #: ../fish/guestfish-actions.pod:3157
25248 msgid "modprobe"
25249 msgstr ""
25250
25251 #. type: verbatim
25252 #: ../fish/guestfish-actions.pod:3159
25253 #, no-wrap
25254 msgid ""
25255 " modprobe modulename\n"
25256 "\n"
25257 msgstr ""
25258
25259 #. type: =head2
25260 #: ../fish/guestfish-actions.pod:3166
25261 msgid "mount"
25262 msgstr ""
25263
25264 #. type: verbatim
25265 #: ../fish/guestfish-actions.pod:3168
25266 #, no-wrap
25267 msgid ""
25268 " mount device mountpoint\n"
25269 "\n"
25270 msgstr ""
25271
25272 #. type: textblock
25273 #: ../fish/guestfish-actions.pod:3184
25274 msgid ""
25275 "B<Important note:> When you use this call, the filesystem options C<sync> "
25276 "and C<noatime> are set implicitly.  This was originally done because we "
25277 "thought it would improve reliability, but it turns out that I<-o sync> has a "
25278 "very large negative performance impact and negligible effect on "
25279 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
25280 "code that needs performance, and instead use L</mount-options> (use an empty "
25281 "string for the first parameter if you don't want any options)."
25282 msgstr ""
25283
25284 #. type: =head2
25285 #: ../fish/guestfish-actions.pod:3194
25286 msgid "mount-loop"
25287 msgstr ""
25288
25289 #. type: verbatim
25290 #: ../fish/guestfish-actions.pod:3196
25291 #, no-wrap
25292 msgid ""
25293 " mount-loop file mountpoint\n"
25294 "\n"
25295 msgstr ""
25296
25297 #. type: =head2
25298 #: ../fish/guestfish-actions.pod:3202
25299 msgid "mount-options"
25300 msgstr ""
25301
25302 #. type: verbatim
25303 #: ../fish/guestfish-actions.pod:3204
25304 #, no-wrap
25305 msgid ""
25306 " mount-options options device mountpoint\n"
25307 "\n"
25308 msgstr ""
25309
25310 #. type: textblock
25311 #: ../fish/guestfish-actions.pod:3206
25312 msgid ""
25313 "This is the same as the L</mount> command, but it allows you to set the "
25314 "mount options as for the L<mount(8)> I<-o> flag."
25315 msgstr ""
25316
25317 #. type: =head2
25318 #: ../fish/guestfish-actions.pod:3214
25319 msgid "mount-ro"
25320 msgstr ""
25321
25322 #. type: verbatim
25323 #: ../fish/guestfish-actions.pod:3216
25324 #, no-wrap
25325 msgid ""
25326 " mount-ro device mountpoint\n"
25327 "\n"
25328 msgstr ""
25329
25330 #. type: textblock
25331 #: ../fish/guestfish-actions.pod:3218
25332 msgid ""
25333 "This is the same as the L</mount> command, but it mounts the filesystem with "
25334 "the read-only (I<-o ro>) flag."
25335 msgstr ""
25336
25337 #. type: =head2
25338 #: ../fish/guestfish-actions.pod:3221
25339 msgid "mount-vfs"
25340 msgstr ""
25341
25342 #. type: verbatim
25343 #: ../fish/guestfish-actions.pod:3223
25344 #, no-wrap
25345 msgid ""
25346 " mount-vfs options vfstype device mountpoint\n"
25347 "\n"
25348 msgstr ""
25349
25350 #. type: textblock
25351 #: ../fish/guestfish-actions.pod:3225
25352 msgid ""
25353 "This is the same as the L</mount> command, but it allows you to set both the "
25354 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
25355 msgstr ""
25356
25357 #. type: =head2
25358 #: ../fish/guestfish-actions.pod:3229
25359 msgid "mountpoints"
25360 msgstr ""
25361
25362 #. type: verbatim
25363 #: ../fish/guestfish-actions.pod:3231
25364 #, no-wrap
25365 msgid ""
25366 " mountpoints\n"
25367 "\n"
25368 msgstr ""
25369
25370 #. type: textblock
25371 #: ../fish/guestfish-actions.pod:3233
25372 msgid ""
25373 "This call is similar to L</mounts>.  That call returns a list of devices.  "
25374 "This one returns a hash table (map) of device name to directory where the "
25375 "device is mounted."
25376 msgstr ""
25377
25378 #. type: =head2
25379 #: ../fish/guestfish-actions.pod:3237
25380 msgid "mounts"
25381 msgstr ""
25382
25383 #. type: verbatim
25384 #: ../fish/guestfish-actions.pod:3239
25385 #, no-wrap
25386 msgid ""
25387 " mounts\n"
25388 "\n"
25389 msgstr ""
25390
25391 #. type: textblock
25392 #: ../fish/guestfish-actions.pod:3246
25393 msgid "See also: L</mountpoints>"
25394 msgstr ""
25395
25396 #. type: =head2
25397 #: ../fish/guestfish-actions.pod:3248
25398 msgid "mv"
25399 msgstr ""
25400
25401 #. type: verbatim
25402 #: ../fish/guestfish-actions.pod:3250
25403 #, no-wrap
25404 msgid ""
25405 " mv src dest\n"
25406 "\n"
25407 msgstr ""
25408
25409 #. type: =head2
25410 #: ../fish/guestfish-actions.pod:3255
25411 msgid "ntfs-3g-probe"
25412 msgstr ""
25413
25414 #. type: verbatim
25415 #: ../fish/guestfish-actions.pod:3257
25416 #, no-wrap
25417 msgid ""
25418 " ntfs-3g-probe true|false device\n"
25419 "\n"
25420 msgstr ""
25421
25422 #. type: =head2
25423 #: ../fish/guestfish-actions.pod:3271
25424 msgid "ntfsresize"
25425 msgstr ""
25426
25427 #. type: verbatim
25428 #: ../fish/guestfish-actions.pod:3273
25429 #, no-wrap
25430 msgid ""
25431 " ntfsresize device\n"
25432 "\n"
25433 msgstr ""
25434
25435 #. type: =head2
25436 #: ../fish/guestfish-actions.pod:3279
25437 msgid "ntfsresize-size"
25438 msgstr ""
25439
25440 #. type: verbatim
25441 #: ../fish/guestfish-actions.pod:3281
25442 #, no-wrap
25443 msgid ""
25444 " ntfsresize-size device size\n"
25445 "\n"
25446 msgstr ""
25447
25448 #. type: textblock
25449 #: ../fish/guestfish-actions.pod:3283
25450 msgid ""
25451 "This command is the same as L</ntfsresize> except that it allows you to "
25452 "specify the new size (in bytes) explicitly."
25453 msgstr ""
25454
25455 #. type: =head2
25456 #: ../fish/guestfish-actions.pod:3286
25457 msgid "part-add"
25458 msgstr ""
25459
25460 #. type: verbatim
25461 #: ../fish/guestfish-actions.pod:3288
25462 #, no-wrap
25463 msgid ""
25464 " part-add device prlogex startsect endsect\n"
25465 "\n"
25466 msgstr ""
25467
25468 #. type: textblock
25469 #: ../fish/guestfish-actions.pod:3290
25470 msgid ""
25471 "This command adds a partition to C<device>.  If there is no partition table "
25472 "on the device, call L</part-init> first."
25473 msgstr ""
25474
25475 #. type: textblock
25476 #: ../fish/guestfish-actions.pod:3302
25477 msgid ""
25478 "Creating a partition which covers the whole disk is not so easy.  Use L</"
25479 "part-disk> to do that."
25480 msgstr ""
25481
25482 #. type: =head2
25483 #: ../fish/guestfish-actions.pod:3305
25484 msgid "part-del"
25485 msgstr ""
25486
25487 #. type: verbatim
25488 #: ../fish/guestfish-actions.pod:3307
25489 #, no-wrap
25490 msgid ""
25491 " part-del device partnum\n"
25492 "\n"
25493 msgstr ""
25494
25495 #. type: =head2
25496 #: ../fish/guestfish-actions.pod:3315
25497 msgid "part-disk"
25498 msgstr ""
25499
25500 #. type: verbatim
25501 #: ../fish/guestfish-actions.pod:3317
25502 #, no-wrap
25503 msgid ""
25504 " part-disk device parttype\n"
25505 "\n"
25506 msgstr ""
25507
25508 #. type: textblock
25509 #: ../fish/guestfish-actions.pod:3319
25510 msgid ""
25511 "This command is simply a combination of L</part-init> followed by L</part-"
25512 "add> to create a single primary partition covering the whole disk."
25513 msgstr ""
25514
25515 #. type: textblock
25516 #: ../fish/guestfish-actions.pod:3323
25517 msgid ""
25518 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
25519 "possible values are described in L</part-init>."
25520 msgstr ""
25521
25522 #. type: =head2
25523 #: ../fish/guestfish-actions.pod:3329
25524 msgid "part-get-bootable"
25525 msgstr ""
25526
25527 #. type: verbatim
25528 #: ../fish/guestfish-actions.pod:3331
25529 #, no-wrap
25530 msgid ""
25531 " part-get-bootable device partnum\n"
25532 "\n"
25533 msgstr ""
25534
25535 #. type: textblock
25536 #: ../fish/guestfish-actions.pod:3336
25537 msgid "See also L</part-set-bootable>."
25538 msgstr ""
25539
25540 #. type: =head2
25541 #: ../fish/guestfish-actions.pod:3338
25542 msgid "part-get-mbr-id"
25543 msgstr ""
25544
25545 #. type: verbatim
25546 #: ../fish/guestfish-actions.pod:3340
25547 #, no-wrap
25548 msgid ""
25549 " part-get-mbr-id device partnum\n"
25550 "\n"
25551 msgstr ""
25552
25553 #. type: textblock
25554 #: ../fish/guestfish-actions.pod:3345 ../fish/guestfish-actions.pod:3483
25555 msgid ""
25556 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
25557 "undefined results for other partition table types (see L</part-get-"
25558 "parttype>)."
25559 msgstr ""
25560
25561 #. type: =head2
25562 #: ../fish/guestfish-actions.pod:3349
25563 msgid "part-get-parttype"
25564 msgstr ""
25565
25566 #. type: verbatim
25567 #: ../fish/guestfish-actions.pod:3351
25568 #, no-wrap
25569 msgid ""
25570 " part-get-parttype device\n"
25571 "\n"
25572 msgstr ""
25573
25574 #. type: textblock
25575 #: ../fish/guestfish-actions.pod:3356
25576 msgid ""
25577 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
25578 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
25579 "possible, although unusual.  See L</part-init> for a full list."
25580 msgstr ""
25581
25582 #. type: =head2
25583 #: ../fish/guestfish-actions.pod:3361
25584 msgid "part-init"
25585 msgstr ""
25586
25587 #. type: verbatim
25588 #: ../fish/guestfish-actions.pod:3363
25589 #, no-wrap
25590 msgid ""
25591 " part-init device parttype\n"
25592 "\n"
25593 msgstr ""
25594
25595 #. type: textblock
25596 #: ../fish/guestfish-actions.pod:3369
25597 msgid ""
25598 "Initially there are no partitions.  Following this, you should call L</part-"
25599 "add> for each partition required."
25600 msgstr ""
25601
25602 #. type: =head2
25603 #: ../fish/guestfish-actions.pod:3432
25604 msgid "part-list"
25605 msgstr ""
25606
25607 #. type: verbatim
25608 #: ../fish/guestfish-actions.pod:3434
25609 #, no-wrap
25610 msgid ""
25611 " part-list device\n"
25612 "\n"
25613 msgstr ""
25614
25615 #. type: textblock
25616 #: ../fish/guestfish-actions.pod:3449
25617 msgid ""
25618 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
25619 "the device's sector size, see L</blockdev-getss>."
25620 msgstr ""
25621
25622 #. type: =head2
25623 #: ../fish/guestfish-actions.pod:3462
25624 msgid "part-set-bootable"
25625 msgstr ""
25626
25627 #. type: verbatim
25628 #: ../fish/guestfish-actions.pod:3464
25629 #, no-wrap
25630 msgid ""
25631 " part-set-bootable device partnum true|false\n"
25632 "\n"
25633 msgstr ""
25634
25635 #. type: =head2
25636 #: ../fish/guestfish-actions.pod:3473
25637 msgid "part-set-mbr-id"
25638 msgstr ""
25639
25640 #. type: verbatim
25641 #: ../fish/guestfish-actions.pod:3475
25642 #, no-wrap
25643 msgid ""
25644 " part-set-mbr-id device partnum idbyte\n"
25645 "\n"
25646 msgstr ""
25647
25648 #. type: =head2
25649 #: ../fish/guestfish-actions.pod:3487
25650 msgid "part-set-name"
25651 msgstr ""
25652
25653 #. type: verbatim
25654 #: ../fish/guestfish-actions.pod:3489
25655 #, no-wrap
25656 msgid ""
25657 " part-set-name device partnum name\n"
25658 "\n"
25659 msgstr ""
25660
25661 #. type: =head2
25662 #: ../fish/guestfish-actions.pod:3497
25663 msgid "part-to-dev"
25664 msgstr ""
25665
25666 #. type: verbatim
25667 #: ../fish/guestfish-actions.pod:3499
25668 #, no-wrap
25669 msgid ""
25670 " part-to-dev partition\n"
25671 "\n"
25672 msgstr ""
25673
25674 #. type: textblock
25675 #: ../fish/guestfish-actions.pod:3505
25676 msgid ""
25677 "The named partition must exist, for example as a string returned from L</"
25678 "list-partitions>."
25679 msgstr ""
25680
25681 #. type: =head2
25682 #: ../fish/guestfish-actions.pod:3508
25683 msgid "ping-daemon"
25684 msgstr ""
25685
25686 #. type: verbatim
25687 #: ../fish/guestfish-actions.pod:3510
25688 #, no-wrap
25689 msgid ""
25690 " ping-daemon\n"
25691 "\n"
25692 msgstr ""
25693
25694 #. type: =head2
25695 #: ../fish/guestfish-actions.pod:3517
25696 msgid "pread"
25697 msgstr ""
25698
25699 #. type: verbatim
25700 #: ../fish/guestfish-actions.pod:3519
25701 #, no-wrap
25702 msgid ""
25703 " pread path count offset\n"
25704 "\n"
25705 msgstr ""
25706
25707 #. type: textblock
25708 #: ../fish/guestfish-actions.pod:3527
25709 msgid "See also L</pwrite>, L</pread-device>."
25710 msgstr ""
25711
25712 #. type: =head2
25713 #: ../fish/guestfish-actions.pod:3532
25714 msgid "pread-device"
25715 msgstr ""
25716
25717 #. type: verbatim
25718 #: ../fish/guestfish-actions.pod:3534
25719 #, no-wrap
25720 msgid ""
25721 " pread-device device count offset\n"
25722 "\n"
25723 msgstr ""
25724
25725 #. type: textblock
25726 #: ../fish/guestfish-actions.pod:3542
25727 msgid "See also L</pread>."
25728 msgstr ""
25729
25730 #. type: =head2
25731 #: ../fish/guestfish-actions.pod:3547
25732 msgid "pvcreate"
25733 msgstr ""
25734
25735 #. type: verbatim
25736 #: ../fish/guestfish-actions.pod:3549
25737 #, no-wrap
25738 msgid ""
25739 " pvcreate device\n"
25740 "\n"
25741 msgstr ""
25742
25743 #. type: =head2
25744 #: ../fish/guestfish-actions.pod:3555
25745 msgid "pvremove"
25746 msgstr ""
25747
25748 #. type: verbatim
25749 #: ../fish/guestfish-actions.pod:3557
25750 #, no-wrap
25751 msgid ""
25752 " pvremove device\n"
25753 "\n"
25754 msgstr ""
25755
25756 #. type: =head2
25757 #: ../fish/guestfish-actions.pod:3566
25758 msgid "pvresize"
25759 msgstr ""
25760
25761 #. type: verbatim
25762 #: ../fish/guestfish-actions.pod:3568
25763 #, no-wrap
25764 msgid ""
25765 " pvresize device\n"
25766 "\n"
25767 msgstr ""
25768
25769 #. type: =head2
25770 #: ../fish/guestfish-actions.pod:3573
25771 msgid "pvresize-size"
25772 msgstr ""
25773
25774 #. type: verbatim
25775 #: ../fish/guestfish-actions.pod:3575
25776 #, no-wrap
25777 msgid ""
25778 " pvresize-size device size\n"
25779 "\n"
25780 msgstr ""
25781
25782 #. type: textblock
25783 #: ../fish/guestfish-actions.pod:3577
25784 msgid ""
25785 "This command is the same as L</pvresize> except that it allows you to "
25786 "specify the new size (in bytes) explicitly."
25787 msgstr ""
25788
25789 #. type: =head2
25790 #: ../fish/guestfish-actions.pod:3580
25791 msgid "pvs"
25792 msgstr ""
25793
25794 #. type: verbatim
25795 #: ../fish/guestfish-actions.pod:3582
25796 #, no-wrap
25797 msgid ""
25798 " pvs\n"
25799 "\n"
25800 msgstr ""
25801
25802 #. type: textblock
25803 #: ../fish/guestfish-actions.pod:3590
25804 msgid "See also L</pvs-full>."
25805 msgstr ""
25806
25807 #. type: =head2
25808 #: ../fish/guestfish-actions.pod:3592
25809 msgid "pvs-full"
25810 msgstr ""
25811
25812 #. type: verbatim
25813 #: ../fish/guestfish-actions.pod:3594
25814 #, no-wrap
25815 msgid ""
25816 " pvs-full\n"
25817 "\n"
25818 msgstr ""
25819
25820 #. type: =head2
25821 #: ../fish/guestfish-actions.pod:3599
25822 msgid "pvuuid"
25823 msgstr ""
25824
25825 #. type: verbatim
25826 #: ../fish/guestfish-actions.pod:3601
25827 #, no-wrap
25828 msgid ""
25829 " pvuuid device\n"
25830 "\n"
25831 msgstr ""
25832
25833 #. type: =head2
25834 #: ../fish/guestfish-actions.pod:3605
25835 msgid "pwrite"
25836 msgstr ""
25837
25838 #. type: verbatim
25839 #: ../fish/guestfish-actions.pod:3607
25840 #, no-wrap
25841 msgid ""
25842 " pwrite path content offset\n"
25843 "\n"
25844 msgstr ""
25845
25846 #. type: textblock
25847 #: ../fish/guestfish-actions.pod:3618
25848 msgid "See also L</pread>, L</pwrite-device>."
25849 msgstr ""
25850
25851 #. type: =head2
25852 #: ../fish/guestfish-actions.pod:3623
25853 msgid "pwrite-device"
25854 msgstr ""
25855
25856 #. type: verbatim
25857 #: ../fish/guestfish-actions.pod:3625
25858 #, no-wrap
25859 msgid ""
25860 " pwrite-device device content offset\n"
25861 "\n"
25862 msgstr ""
25863
25864 #. type: textblock
25865 #: ../fish/guestfish-actions.pod:3635
25866 msgid "See also L</pwrite>."
25867 msgstr ""
25868
25869 #. type: =head2
25870 #: ../fish/guestfish-actions.pod:3640
25871 msgid "read-file"
25872 msgstr ""
25873
25874 #. type: verbatim
25875 #: ../fish/guestfish-actions.pod:3642
25876 #, no-wrap
25877 msgid ""
25878 " read-file path\n"
25879 "\n"
25880 msgstr ""
25881
25882 #. type: textblock
25883 #: ../fish/guestfish-actions.pod:3647
25884 msgid ""
25885 "Unlike L</cat>, this function can correctly handle files that contain "
25886 "embedded ASCII NUL characters.  However unlike L</download>, this function "
25887 "is limited in the total size of file that can be handled."
25888 msgstr ""
25889
25890 #. type: =head2
25891 #: ../fish/guestfish-actions.pod:3655
25892 msgid "read-lines"
25893 msgstr ""
25894
25895 #. type: verbatim
25896 #: ../fish/guestfish-actions.pod:3657
25897 #, no-wrap
25898 msgid ""
25899 " read-lines path\n"
25900 "\n"
25901 msgstr ""
25902
25903 #. type: textblock
25904 #: ../fish/guestfish-actions.pod:3664
25905 msgid ""
25906 "Note that this function cannot correctly handle binary files (specifically, "
25907 "files containing C<\\0> character which is treated as end of line).  For "
25908 "those you need to use the L</read-file> function which has a more complex "
25909 "interface."
25910 msgstr ""
25911
25912 #. type: =head2
25913 #: ../fish/guestfish-actions.pod:3669
25914 msgid "readdir"
25915 msgstr ""
25916
25917 #. type: verbatim
25918 #: ../fish/guestfish-actions.pod:3671
25919 #, no-wrap
25920 msgid ""
25921 " readdir dir\n"
25922 "\n"
25923 msgstr ""
25924
25925 #. type: textblock
25926 #: ../fish/guestfish-actions.pod:3723
25927 msgid ""
25928 "This function is primarily intended for use by programs.  To get a simple "
25929 "list of names, use L</ls>.  To get a printable directory for human "
25930 "consumption, use L</ll>."
25931 msgstr ""
25932
25933 #. type: =head2
25934 #: ../fish/guestfish-actions.pod:3727
25935 msgid "readlink"
25936 msgstr ""
25937
25938 #. type: verbatim
25939 #: ../fish/guestfish-actions.pod:3729
25940 #, no-wrap
25941 msgid ""
25942 " readlink path\n"
25943 "\n"
25944 msgstr ""
25945
25946 #. type: =head2
25947 #: ../fish/guestfish-actions.pod:3733
25948 msgid "readlinklist"
25949 msgstr ""
25950
25951 #. type: verbatim
25952 #: ../fish/guestfish-actions.pod:3735
25953 #, no-wrap
25954 msgid ""
25955 " readlinklist path 'names ...'\n"
25956 "\n"
25957 msgstr ""
25958
25959 #. type: =head2
25960 #: ../fish/guestfish-actions.pod:3759
25961 msgid "realpath"
25962 msgstr ""
25963
25964 #. type: verbatim
25965 #: ../fish/guestfish-actions.pod:3761
25966 #, no-wrap
25967 msgid ""
25968 " realpath path\n"
25969 "\n"
25970 msgstr ""
25971
25972 #. type: =head2
25973 #: ../fish/guestfish-actions.pod:3766
25974 msgid "removexattr"
25975 msgstr ""
25976
25977 #. type: verbatim
25978 #: ../fish/guestfish-actions.pod:3768
25979 #, no-wrap
25980 msgid ""
25981 " removexattr xattr path\n"
25982 "\n"
25983 msgstr ""
25984
25985 #. type: textblock
25986 #: ../fish/guestfish-actions.pod:3773
25987 msgid "See also: L</lremovexattr>, L<attr(5)>."
25988 msgstr ""
25989
25990 #. type: =head2
25991 #: ../fish/guestfish-actions.pod:3775
25992 msgid "resize2fs"
25993 msgstr ""
25994
25995 #. type: verbatim
25996 #: ../fish/guestfish-actions.pod:3777
25997 #, no-wrap
25998 msgid ""
25999 " resize2fs device\n"
26000 "\n"
26001 msgstr ""
26002
26003 #. type: textblock
26004 #: ../fish/guestfish-actions.pod:3782
26005 msgid ""
26006 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
26007 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
26008 "gives an error about this and sometimes not.  In any case, it is always safe "
26009 "to call L</e2fsck-f> before calling this function."
26010 msgstr ""
26011
26012 #. type: =head2
26013 #: ../fish/guestfish-actions.pod:3788
26014 msgid "resize2fs-M"
26015 msgstr ""
26016
26017 #. type: verbatim
26018 #: ../fish/guestfish-actions.pod:3790
26019 #, no-wrap
26020 msgid ""
26021 " resize2fs-M device\n"
26022 "\n"
26023 msgstr ""
26024
26025 #. type: textblock
26026 #: ../fish/guestfish-actions.pod:3792
26027 msgid ""
26028 "This command is the same as L</resize2fs>, but the filesystem is resized to "
26029 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
26030 "command."
26031 msgstr ""
26032
26033 #. type: textblock
26034 #: ../fish/guestfish-actions.pod:3796
26035 msgid ""
26036 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
26037 "and read the C<Block size> and C<Block count> values.  These two numbers, "
26038 "multiplied together, give the resulting size of the minimal filesystem in "
26039 "bytes."
26040 msgstr ""
26041
26042 #. type: =head2
26043 #: ../fish/guestfish-actions.pod:3801
26044 msgid "resize2fs-size"
26045 msgstr ""
26046
26047 #. type: verbatim
26048 #: ../fish/guestfish-actions.pod:3803
26049 #, no-wrap
26050 msgid ""
26051 " resize2fs-size device size\n"
26052 "\n"
26053 msgstr ""
26054
26055 #. type: textblock
26056 #: ../fish/guestfish-actions.pod:3805
26057 msgid ""
26058 "This command is the same as L</resize2fs> except that it allows you to "
26059 "specify the new size (in bytes) explicitly."
26060 msgstr ""
26061
26062 #. type: =head2
26063 #: ../fish/guestfish-actions.pod:3808
26064 msgid "rm"
26065 msgstr ""
26066
26067 #. type: verbatim
26068 #: ../fish/guestfish-actions.pod:3810
26069 #, no-wrap
26070 msgid ""
26071 " rm path\n"
26072 "\n"
26073 msgstr ""
26074
26075 #. type: =head2
26076 #: ../fish/guestfish-actions.pod:3814
26077 msgid "rm-rf"
26078 msgstr ""
26079
26080 #. type: verbatim
26081 #: ../fish/guestfish-actions.pod:3816
26082 #, no-wrap
26083 msgid ""
26084 " rm-rf path\n"
26085 "\n"
26086 msgstr ""
26087
26088 #. type: =head2
26089 #: ../fish/guestfish-actions.pod:3822
26090 msgid "rmdir"
26091 msgstr ""
26092
26093 #. type: verbatim
26094 #: ../fish/guestfish-actions.pod:3824
26095 #, no-wrap
26096 msgid ""
26097 " rmdir path\n"
26098 "\n"
26099 msgstr ""
26100
26101 #. type: =head2
26102 #: ../fish/guestfish-actions.pod:3828
26103 msgid "rmmountpoint"
26104 msgstr ""
26105
26106 #. type: verbatim
26107 #: ../fish/guestfish-actions.pod:3830
26108 #, no-wrap
26109 msgid ""
26110 " rmmountpoint exemptpath\n"
26111 "\n"
26112 msgstr ""
26113
26114 #. type: textblock
26115 #: ../fish/guestfish-actions.pod:3832
26116 msgid ""
26117 "This calls removes a mountpoint that was previously created with L</"
26118 "mkmountpoint>.  See L</mkmountpoint> for full details."
26119 msgstr ""
26120
26121 #. type: =head2
26122 #: ../fish/guestfish-actions.pod:3836
26123 msgid "scrub-device"
26124 msgstr ""
26125
26126 #. type: verbatim
26127 #: ../fish/guestfish-actions.pod:3838
26128 #, no-wrap
26129 msgid ""
26130 " scrub-device device\n"
26131 "\n"
26132 msgstr ""
26133
26134 #. type: =head2
26135 #: ../fish/guestfish-actions.pod:3849
26136 msgid "scrub-file"
26137 msgstr ""
26138
26139 #. type: verbatim
26140 #: ../fish/guestfish-actions.pod:3851
26141 #, no-wrap
26142 msgid ""
26143 " scrub-file file\n"
26144 "\n"
26145 msgstr ""
26146
26147 #. type: =head2
26148 #: ../fish/guestfish-actions.pod:3861
26149 msgid "scrub-freespace"
26150 msgstr ""
26151
26152 #. type: verbatim
26153 #: ../fish/guestfish-actions.pod:3863
26154 #, no-wrap
26155 msgid ""
26156 " scrub-freespace dir\n"
26157 "\n"
26158 msgstr ""
26159
26160 #. type: textblock
26161 #: ../fish/guestfish-actions.pod:3865
26162 msgid ""
26163 "This command creates the directory C<dir> and then fills it with files until "
26164 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
26165 "deletes them.  The intention is to scrub any free space on the partition "
26166 "containing C<dir>."
26167 msgstr ""
26168
26169 #. type: =head2
26170 #: ../fish/guestfish-actions.pod:3874
26171 msgid "set-append"
26172 msgstr ""
26173
26174 #. type: =head2
26175 #: ../fish/guestfish-actions.pod:3876
26176 msgid "append"
26177 msgstr ""
26178
26179 #. type: verbatim
26180 #: ../fish/guestfish-actions.pod:3878
26181 #, no-wrap
26182 msgid ""
26183 " set-append append\n"
26184 "\n"
26185 msgstr ""
26186
26187 #. type: =head2
26188 #: ../fish/guestfish-actions.pod:3889
26189 msgid "set-attach-method"
26190 msgstr ""
26191
26192 #. type: =head2
26193 #: ../fish/guestfish-actions.pod:3891
26194 msgid "attach-method"
26195 msgstr ""
26196
26197 #. type: verbatim
26198 #: ../fish/guestfish-actions.pod:3893
26199 #, no-wrap
26200 msgid ""
26201 " set-attach-method attachmethod\n"
26202 "\n"
26203 msgstr ""
26204
26205 #. type: =head2
26206 #: ../fish/guestfish-actions.pod:3915
26207 msgid "set-autosync"
26208 msgstr ""
26209
26210 #. type: =head2
26211 #: ../fish/guestfish-actions.pod:3917
26212 msgid "autosync"
26213 msgstr ""
26214
26215 #. type: verbatim
26216 #: ../fish/guestfish-actions.pod:3919
26217 #, no-wrap
26218 msgid ""
26219 " set-autosync true|false\n"
26220 "\n"
26221 msgstr ""
26222
26223 #. type: =head2
26224 #: ../fish/guestfish-actions.pod:3929
26225 msgid "set-direct"
26226 msgstr ""
26227
26228 #. type: =head2
26229 #: ../fish/guestfish-actions.pod:3931
26230 msgid "direct"
26231 msgstr ""
26232
26233 #. type: verbatim
26234 #: ../fish/guestfish-actions.pod:3933
26235 #, no-wrap
26236 msgid ""
26237 " set-direct true|false\n"
26238 "\n"
26239 msgstr ""
26240
26241 #. type: textblock
26242 #: ../fish/guestfish-actions.pod:3939
26243 msgid ""
26244 "One consequence of this is that log messages aren't caught by the library "
26245 "and handled by L</set-log-message-callback>, but go straight to stdout."
26246 msgstr ""
26247
26248 #. type: =head2
26249 #: ../fish/guestfish-actions.pod:3948
26250 msgid "set-e2label"
26251 msgstr ""
26252
26253 #. type: verbatim
26254 #: ../fish/guestfish-actions.pod:3950
26255 #, no-wrap
26256 msgid ""
26257 " set-e2label device label\n"
26258 "\n"
26259 msgstr ""
26260
26261 #. type: textblock
26262 #: ../fish/guestfish-actions.pod:3956
26263 msgid ""
26264 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
26265 "label on a filesystem."
26266 msgstr ""
26267
26268 #. type: =head2
26269 #: ../fish/guestfish-actions.pod:3959
26270 msgid "set-e2uuid"
26271 msgstr ""
26272
26273 #. type: verbatim
26274 #: ../fish/guestfish-actions.pod:3961
26275 #, no-wrap
26276 msgid ""
26277 " set-e2uuid device uuid\n"
26278 "\n"
26279 msgstr ""
26280
26281 #. type: textblock
26282 #: ../fish/guestfish-actions.pod:3968
26283 msgid ""
26284 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
26285 "UUID of a filesystem."
26286 msgstr ""
26287
26288 #. type: =head2
26289 #: ../fish/guestfish-actions.pod:3971
26290 msgid "set-memsize"
26291 msgstr ""
26292
26293 #. type: =head2
26294 #: ../fish/guestfish-actions.pod:3973
26295 msgid "memsize"
26296 msgstr ""
26297
26298 #. type: verbatim
26299 #: ../fish/guestfish-actions.pod:3975
26300 #, no-wrap
26301 msgid ""
26302 " set-memsize memsize\n"
26303 "\n"
26304 msgstr ""
26305
26306 #. type: textblock
26307 #: ../fish/guestfish-actions.pod:3977
26308 msgid ""
26309 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
26310 "This only has any effect if called before L</launch>."
26311 msgstr ""
26312
26313 #. type: =head2
26314 #: ../fish/guestfish-actions.pod:3988
26315 msgid "set-network"
26316 msgstr ""
26317
26318 #. type: =head2
26319 #: ../fish/guestfish-actions.pod:3990
26320 msgid "network"
26321 msgstr ""
26322
26323 #. type: verbatim
26324 #: ../fish/guestfish-actions.pod:3992
26325 #, no-wrap
26326 msgid ""
26327 " set-network true|false\n"
26328 "\n"
26329 msgstr ""
26330
26331 #. type: textblock
26332 #: ../fish/guestfish-actions.pod:4000
26333 msgid ""
26334 "You must call this before calling L</launch>, otherwise it has no effect."
26335 msgstr ""
26336
26337 #. type: =head2
26338 #: ../fish/guestfish-actions.pod:4003
26339 msgid "set-path"
26340 msgstr ""
26341
26342 #. type: =head2
26343 #: ../fish/guestfish-actions.pod:4005
26344 msgid "path"
26345 msgstr ""
26346
26347 #. type: verbatim
26348 #: ../fish/guestfish-actions.pod:4007
26349 #, no-wrap
26350 msgid ""
26351 " set-path searchpath\n"
26352 "\n"
26353 msgstr ""
26354
26355 #. type: =head2
26356 #: ../fish/guestfish-actions.pod:4016
26357 msgid "set-qemu"
26358 msgstr ""
26359
26360 #. type: =head2
26361 #: ../fish/guestfish-actions.pod:4018
26362 msgid "qemu"
26363 msgstr ""
26364
26365 #. type: verbatim
26366 #: ../fish/guestfish-actions.pod:4020
26367 #, no-wrap
26368 msgid ""
26369 " set-qemu qemu\n"
26370 "\n"
26371 msgstr ""
26372
26373 #. type: =head2
26374 #: ../fish/guestfish-actions.pod:4040
26375 msgid "set-recovery-proc"
26376 msgstr ""
26377
26378 #. type: =head2
26379 #: ../fish/guestfish-actions.pod:4042
26380 msgid "recovery-proc"
26381 msgstr ""
26382
26383 #. type: verbatim
26384 #: ../fish/guestfish-actions.pod:4044
26385 #, no-wrap
26386 msgid ""
26387 " set-recovery-proc true|false\n"
26388 "\n"
26389 msgstr ""
26390
26391 #. type: textblock
26392 #: ../fish/guestfish-actions.pod:4046
26393 msgid ""
26394 "If this is called with the parameter C<false> then L</launch> does not "
26395 "create a recovery process.  The purpose of the recovery process is to stop "
26396 "runaway qemu processes in the case where the main program aborts abruptly."
26397 msgstr ""
26398
26399 #. type: textblock
26400 #: ../fish/guestfish-actions.pod:4051
26401 msgid ""
26402 "This only has any effect if called before L</launch>, and the default is "
26403 "true."
26404 msgstr ""
26405
26406 #. type: =head2
26407 #: ../fish/guestfish-actions.pod:4060
26408 msgid "set-selinux"
26409 msgstr ""
26410
26411 #. type: =head2
26412 #: ../fish/guestfish-actions.pod:4062
26413 msgid "selinux"
26414 msgstr ""
26415
26416 #. type: verbatim
26417 #: ../fish/guestfish-actions.pod:4064
26418 #, no-wrap
26419 msgid ""
26420 " set-selinux true|false\n"
26421 "\n"
26422 msgstr ""
26423
26424 #. type: =head2
26425 #: ../fish/guestfish-actions.pod:4075
26426 msgid "set-trace"
26427 msgstr ""
26428
26429 #. type: =head2
26430 #: ../fish/guestfish-actions.pod:4077
26431 msgid "trace"
26432 msgstr ""
26433
26434 #. type: verbatim
26435 #: ../fish/guestfish-actions.pod:4079
26436 #, no-wrap
26437 msgid ""
26438 " set-trace true|false\n"
26439 "\n"
26440 msgstr ""
26441
26442 #. type: textblock
26443 #: ../fish/guestfish-actions.pod:4091
26444 msgid ""
26445 "Trace messages are normally sent to C<stderr>, unless you register a "
26446 "callback to send them somewhere else (see L</set-event-callback>)."
26447 msgstr ""
26448
26449 #. type: =head2
26450 #: ../fish/guestfish-actions.pod:4095
26451 msgid "set-verbose"
26452 msgstr ""
26453
26454 #. type: =head2
26455 #: ../fish/guestfish-actions.pod:4097
26456 msgid "verbose"
26457 msgstr ""
26458
26459 #. type: verbatim
26460 #: ../fish/guestfish-actions.pod:4099
26461 #, no-wrap
26462 msgid ""
26463 " set-verbose true|false\n"
26464 "\n"
26465 msgstr ""
26466
26467 #. type: textblock
26468 #: ../fish/guestfish-actions.pod:4106
26469 msgid ""
26470 "Verbose messages are normally sent to C<stderr>, unless you register a "
26471 "callback to send them somewhere else (see L</set-event-callback>)."
26472 msgstr ""
26473
26474 #. type: =head2
26475 #: ../fish/guestfish-actions.pod:4110
26476 msgid "setcon"
26477 msgstr ""
26478
26479 #. type: verbatim
26480 #: ../fish/guestfish-actions.pod:4112
26481 #, no-wrap
26482 msgid ""
26483 " setcon context\n"
26484 "\n"
26485 msgstr ""
26486
26487 #. type: =head2
26488 #: ../fish/guestfish-actions.pod:4119
26489 msgid "setxattr"
26490 msgstr ""
26491
26492 #. type: verbatim
26493 #: ../fish/guestfish-actions.pod:4121
26494 #, no-wrap
26495 msgid ""
26496 " setxattr xattr val vallen path\n"
26497 "\n"
26498 msgstr ""
26499
26500 #. type: textblock
26501 #: ../fish/guestfish-actions.pod:4127
26502 msgid "See also: L</lsetxattr>, L<attr(5)>."
26503 msgstr ""
26504
26505 #. type: =head2
26506 #: ../fish/guestfish-actions.pod:4129
26507 msgid "sfdisk"
26508 msgstr ""
26509
26510 #. type: verbatim
26511 #: ../fish/guestfish-actions.pod:4131
26512 #, no-wrap
26513 msgid ""
26514 " sfdisk device cyls heads sectors 'lines ...'\n"
26515 "\n"
26516 msgstr ""
26517
26518 #. type: textblock
26519 #: ../fish/guestfish-actions.pod:4153
26520 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
26521 msgstr ""
26522
26523 #. type: =head2
26524 #: ../fish/guestfish-actions.pod:4159
26525 msgid "sfdiskM"
26526 msgstr ""
26527
26528 #. type: verbatim
26529 #: ../fish/guestfish-actions.pod:4161
26530 #, no-wrap
26531 msgid ""
26532 " sfdiskM device 'lines ...'\n"
26533 "\n"
26534 msgstr ""
26535
26536 #. type: textblock
26537 #: ../fish/guestfish-actions.pod:4163
26538 msgid ""
26539 "This is a simplified interface to the L</sfdisk> command, where partition "
26540 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
26541 "you don't need to specify the cyls, heads and sectors parameters which were "
26542 "rarely if ever used anyway."
26543 msgstr ""
26544
26545 #. type: textblock
26546 #: ../fish/guestfish-actions.pod:4169
26547 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
26548 msgstr ""
26549
26550 #. type: =head2
26551 #: ../fish/guestfish-actions.pod:4175
26552 msgid "sfdisk-N"
26553 msgstr ""
26554
26555 #. type: verbatim
26556 #: ../fish/guestfish-actions.pod:4177
26557 #, no-wrap
26558 msgid ""
26559 " sfdisk-N device partnum cyls heads sectors line\n"
26560 "\n"
26561 msgstr ""
26562
26563 #. type: textblock
26564 #: ../fish/guestfish-actions.pod:4182
26565 msgid ""
26566 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
26567 "cyls/heads/sectors parameters."
26568 msgstr ""
26569
26570 #. type: textblock
26571 #: ../fish/guestfish-actions.pod:4185
26572 msgid "See also: L</part-add>"
26573 msgstr ""
26574
26575 #. type: =head2
26576 #: ../fish/guestfish-actions.pod:4190
26577 msgid "sfdisk-disk-geometry"
26578 msgstr ""
26579
26580 #. type: verbatim
26581 #: ../fish/guestfish-actions.pod:4192
26582 #, no-wrap
26583 msgid ""
26584 " sfdisk-disk-geometry device\n"
26585 "\n"
26586 msgstr ""
26587
26588 #. type: textblock
26589 #: ../fish/guestfish-actions.pod:4194
26590 msgid ""
26591 "This displays the disk geometry of C<device> read from the partition table.  "
26592 "Especially in the case where the underlying block device has been resized, "
26593 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
26594 "kernel-geometry>)."
26595 msgstr ""
26596
26597 #. type: =head2
26598 #: ../fish/guestfish-actions.pod:4202
26599 msgid "sfdisk-kernel-geometry"
26600 msgstr ""
26601
26602 #. type: verbatim
26603 #: ../fish/guestfish-actions.pod:4204
26604 #, no-wrap
26605 msgid ""
26606 " sfdisk-kernel-geometry device\n"
26607 "\n"
26608 msgstr ""
26609
26610 #. type: =head2
26611 #: ../fish/guestfish-actions.pod:4211
26612 msgid "sfdisk-l"
26613 msgstr ""
26614
26615 #. type: verbatim
26616 #: ../fish/guestfish-actions.pod:4213
26617 #, no-wrap
26618 msgid ""
26619 " sfdisk-l device\n"
26620 "\n"
26621 msgstr ""
26622
26623 #. type: textblock
26624 #: ../fish/guestfish-actions.pod:4219
26625 msgid "See also: L</part-list>"
26626 msgstr ""
26627
26628 #. type: =head2
26629 #: ../fish/guestfish-actions.pod:4221
26630 msgid "sh"
26631 msgstr ""
26632
26633 #. type: verbatim
26634 #: ../fish/guestfish-actions.pod:4223
26635 #, no-wrap
26636 msgid ""
26637 " sh command\n"
26638 "\n"
26639 msgstr ""
26640
26641 #. type: textblock
26642 #: ../fish/guestfish-actions.pod:4228
26643 msgid "This is like L</command>, but passes the command to:"
26644 msgstr ""
26645
26646 #. type: textblock
26647 #: ../fish/guestfish-actions.pod:4236
26648 msgid "All the provisos about L</command> apply to this call."
26649 msgstr ""
26650
26651 #. type: =head2
26652 #: ../fish/guestfish-actions.pod:4238
26653 msgid "sh-lines"
26654 msgstr ""
26655
26656 #. type: verbatim
26657 #: ../fish/guestfish-actions.pod:4240
26658 #, no-wrap
26659 msgid ""
26660 " sh-lines command\n"
26661 "\n"
26662 msgstr ""
26663
26664 #. type: textblock
26665 #: ../fish/guestfish-actions.pod:4242
26666 msgid "This is the same as L</sh>, but splits the result into a list of lines."
26667 msgstr ""
26668
26669 #. type: textblock
26670 #: ../fish/guestfish-actions.pod:4245
26671 msgid "See also: L</command-lines>"
26672 msgstr ""
26673
26674 #. type: =head2
26675 #: ../fish/guestfish-actions.pod:4247
26676 msgid "sleep"
26677 msgstr ""
26678
26679 #. type: verbatim
26680 #: ../fish/guestfish-actions.pod:4249
26681 #, no-wrap
26682 msgid ""
26683 " sleep secs\n"
26684 "\n"
26685 msgstr ""
26686
26687 #. type: =head2
26688 #: ../fish/guestfish-actions.pod:4253
26689 msgid "stat"
26690 msgstr ""
26691
26692 #. type: verbatim
26693 #: ../fish/guestfish-actions.pod:4255
26694 #, no-wrap
26695 msgid ""
26696 " stat path\n"
26697 "\n"
26698 msgstr ""
26699
26700 #. type: =head2
26701 #: ../fish/guestfish-actions.pod:4261
26702 msgid "statvfs"
26703 msgstr ""
26704
26705 #. type: verbatim
26706 #: ../fish/guestfish-actions.pod:4263
26707 #, no-wrap
26708 msgid ""
26709 " statvfs path\n"
26710 "\n"
26711 msgstr ""
26712
26713 #. type: =head2
26714 #: ../fish/guestfish-actions.pod:4271
26715 msgid "strings"
26716 msgstr ""
26717
26718 #. type: verbatim
26719 #: ../fish/guestfish-actions.pod:4273
26720 #, no-wrap
26721 msgid ""
26722 " strings path\n"
26723 "\n"
26724 msgstr ""
26725
26726 #. type: =head2
26727 #: ../fish/guestfish-actions.pod:4281
26728 msgid "strings-e"
26729 msgstr ""
26730
26731 #. type: verbatim
26732 #: ../fish/guestfish-actions.pod:4283
26733 #, no-wrap
26734 msgid ""
26735 " strings-e encoding path\n"
26736 "\n"
26737 msgstr ""
26738
26739 #. type: textblock
26740 #: ../fish/guestfish-actions.pod:4285
26741 msgid ""
26742 "This is like the L</strings> command, but allows you to specify the encoding "
26743 "of strings that are looked for in the source file C<path>."
26744 msgstr ""
26745
26746 #. type: textblock
26747 #: ../fish/guestfish-actions.pod:4295
26748 msgid ""
26749 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
26750 "ISO-8859-X (this is what L</strings> uses)."
26751 msgstr ""
26752
26753 #. type: =head2
26754 #: ../fish/guestfish-actions.pod:4327
26755 msgid "swapoff-device"
26756 msgstr ""
26757
26758 #. type: verbatim
26759 #: ../fish/guestfish-actions.pod:4329
26760 #, no-wrap
26761 msgid ""
26762 " swapoff-device device\n"
26763 "\n"
26764 msgstr ""
26765
26766 #. type: textblock
26767 #: ../fish/guestfish-actions.pod:4331
26768 msgid ""
26769 "This command disables the libguestfs appliance swap device or partition "
26770 "named C<device>.  See L</swapon-device>."
26771 msgstr ""
26772
26773 #. type: =head2
26774 #: ../fish/guestfish-actions.pod:4335
26775 msgid "swapoff-file"
26776 msgstr ""
26777
26778 #. type: verbatim
26779 #: ../fish/guestfish-actions.pod:4337
26780 #, no-wrap
26781 msgid ""
26782 " swapoff-file file\n"
26783 "\n"
26784 msgstr ""
26785
26786 #. type: =head2
26787 #: ../fish/guestfish-actions.pod:4341
26788 msgid "swapoff-label"
26789 msgstr ""
26790
26791 #. type: verbatim
26792 #: ../fish/guestfish-actions.pod:4343
26793 #, no-wrap
26794 msgid ""
26795 " swapoff-label label\n"
26796 "\n"
26797 msgstr ""
26798
26799 #. type: =head2
26800 #: ../fish/guestfish-actions.pod:4348
26801 msgid "swapoff-uuid"
26802 msgstr ""
26803
26804 #. type: verbatim
26805 #: ../fish/guestfish-actions.pod:4350
26806 #, no-wrap
26807 msgid ""
26808 " swapoff-uuid uuid\n"
26809 "\n"
26810 msgstr ""
26811
26812 #. type: =head2
26813 #: ../fish/guestfish-actions.pod:4355
26814 msgid "swapon-device"
26815 msgstr ""
26816
26817 #. type: verbatim
26818 #: ../fish/guestfish-actions.pod:4357
26819 #, no-wrap
26820 msgid ""
26821 " swapon-device device\n"
26822 "\n"
26823 msgstr ""
26824
26825 #. type: textblock
26826 #: ../fish/guestfish-actions.pod:4359
26827 msgid ""
26828 "This command enables the libguestfs appliance to use the swap device or "
26829 "partition named C<device>.  The increased memory is made available for all "
26830 "commands, for example those run using L</command> or L</sh>."
26831 msgstr ""
26832
26833 #. type: =head2
26834 #: ../fish/guestfish-actions.pod:4371
26835 msgid "swapon-file"
26836 msgstr ""
26837
26838 #. type: verbatim
26839 #: ../fish/guestfish-actions.pod:4373
26840 #, no-wrap
26841 msgid ""
26842 " swapon-file file\n"
26843 "\n"
26844 msgstr ""
26845
26846 #. type: textblock
26847 #: ../fish/guestfish-actions.pod:4375
26848 msgid ""
26849 "This command enables swap to a file.  See L</swapon-device> for other notes."
26850 msgstr ""
26851
26852 #. type: =head2
26853 #: ../fish/guestfish-actions.pod:4378
26854 msgid "swapon-label"
26855 msgstr ""
26856
26857 #. type: verbatim
26858 #: ../fish/guestfish-actions.pod:4380
26859 #, no-wrap
26860 msgid ""
26861 " swapon-label label\n"
26862 "\n"
26863 msgstr ""
26864
26865 #. type: textblock
26866 #: ../fish/guestfish-actions.pod:4382
26867 msgid ""
26868 "This command enables swap to a labeled swap partition.  See L</swapon-"
26869 "device> for other notes."
26870 msgstr ""
26871
26872 #. type: =head2
26873 #: ../fish/guestfish-actions.pod:4385
26874 msgid "swapon-uuid"
26875 msgstr ""
26876
26877 #. type: verbatim
26878 #: ../fish/guestfish-actions.pod:4387
26879 #, no-wrap
26880 msgid ""
26881 " swapon-uuid uuid\n"
26882 "\n"
26883 msgstr ""
26884
26885 #. type: textblock
26886 #: ../fish/guestfish-actions.pod:4389
26887 msgid ""
26888 "This command enables swap to a swap partition with the given UUID.  See L</"
26889 "swapon-device> for other notes."
26890 msgstr ""
26891
26892 #. type: =head2
26893 #: ../fish/guestfish-actions.pod:4392
26894 msgid "sync"
26895 msgstr ""
26896
26897 #. type: verbatim
26898 #: ../fish/guestfish-actions.pod:4394
26899 #, no-wrap
26900 msgid ""
26901 " sync\n"
26902 "\n"
26903 msgstr ""
26904
26905 #. type: =head2
26906 #: ../fish/guestfish-actions.pod:4402
26907 msgid "tail"
26908 msgstr ""
26909
26910 #. type: verbatim
26911 #: ../fish/guestfish-actions.pod:4404
26912 #, no-wrap
26913 msgid ""
26914 " tail path\n"
26915 "\n"
26916 msgstr ""
26917
26918 #. type: =head2
26919 #: ../fish/guestfish-actions.pod:4412
26920 msgid "tail-n"
26921 msgstr ""
26922
26923 #. type: verbatim
26924 #: ../fish/guestfish-actions.pod:4414
26925 #, no-wrap
26926 msgid ""
26927 " tail-n nrlines path\n"
26928 "\n"
26929 msgstr ""
26930
26931 #. type: =head2
26932 #: ../fish/guestfish-actions.pod:4427
26933 msgid "tar-in"
26934 msgstr ""
26935
26936 #. type: verbatim
26937 #: ../fish/guestfish-actions.pod:4429
26938 #, no-wrap
26939 msgid ""
26940 " tar-in (tarfile|-) directory\n"
26941 "\n"
26942 msgstr ""
26943
26944 #. type: textblock
26945 #: ../fish/guestfish-actions.pod:4434
26946 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
26947 msgstr ""
26948
26949 #. type: =head2
26950 #: ../fish/guestfish-actions.pod:4439
26951 msgid "tar-out"
26952 msgstr ""
26953
26954 #. type: verbatim
26955 #: ../fish/guestfish-actions.pod:4441
26956 #, no-wrap
26957 msgid ""
26958 " tar-out directory (tarfile|-)\n"
26959 "\n"
26960 msgstr ""
26961
26962 #. type: textblock
26963 #: ../fish/guestfish-actions.pod:4446
26964 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
26965 msgstr ""
26966
26967 #. type: =head2
26968 #: ../fish/guestfish-actions.pod:4451
26969 msgid "tgz-in"
26970 msgstr ""
26971
26972 #. type: verbatim
26973 #: ../fish/guestfish-actions.pod:4453
26974 #, no-wrap
26975 msgid ""
26976 " tgz-in (tarball|-) directory\n"
26977 "\n"
26978 msgstr ""
26979
26980 #. type: textblock
26981 #: ../fish/guestfish-actions.pod:4458
26982 msgid "To upload an uncompressed tarball, use L</tar-in>."
26983 msgstr ""
26984
26985 #. type: =head2
26986 #: ../fish/guestfish-actions.pod:4462
26987 msgid "tgz-out"
26988 msgstr ""
26989
26990 #. type: verbatim
26991 #: ../fish/guestfish-actions.pod:4464
26992 #, no-wrap
26993 msgid ""
26994 " tgz-out directory (tarball|-)\n"
26995 "\n"
26996 msgstr ""
26997
26998 #. type: textblock
26999 #: ../fish/guestfish-actions.pod:4469
27000 msgid "To download an uncompressed tarball, use L</tar-out>."
27001 msgstr ""
27002
27003 #. type: =head2
27004 #: ../fish/guestfish-actions.pod:4473
27005 msgid "touch"
27006 msgstr ""
27007
27008 #. type: verbatim
27009 #: ../fish/guestfish-actions.pod:4475
27010 #, no-wrap
27011 msgid ""
27012 " touch path\n"
27013 "\n"
27014 msgstr ""
27015
27016 #. type: =head2
27017 #: ../fish/guestfish-actions.pod:4484
27018 msgid "truncate"
27019 msgstr ""
27020
27021 #. type: verbatim
27022 #: ../fish/guestfish-actions.pod:4486
27023 #, no-wrap
27024 msgid ""
27025 " truncate path\n"
27026 "\n"
27027 msgstr ""
27028
27029 #. type: =head2
27030 #: ../fish/guestfish-actions.pod:4491
27031 msgid "truncate-size"
27032 msgstr ""
27033
27034 #. type: verbatim
27035 #: ../fish/guestfish-actions.pod:4493
27036 #, no-wrap
27037 msgid ""
27038 " truncate-size path size\n"
27039 "\n"
27040 msgstr ""
27041
27042 #. type: textblock
27043 #: ../fish/guestfish-actions.pod:4498
27044 msgid ""
27045 "If the current file size is less than C<size> then the file is extended to "
27046 "the required size with zero bytes.  This creates a sparse file (ie. disk "
27047 "blocks are not allocated for the file until you write to it).  To create a "
27048 "non-sparse file of zeroes, use L</fallocate64> instead."
27049 msgstr ""
27050
27051 #. type: =head2
27052 #: ../fish/guestfish-actions.pod:4504
27053 msgid "tune2fs-l"
27054 msgstr ""
27055
27056 #. type: verbatim
27057 #: ../fish/guestfish-actions.pod:4506
27058 #, no-wrap
27059 msgid ""
27060 " tune2fs-l device\n"
27061 "\n"
27062 msgstr ""
27063
27064 #. type: =head2
27065 #: ../fish/guestfish-actions.pod:4516
27066 msgid "txz-in"
27067 msgstr ""
27068
27069 #. type: verbatim
27070 #: ../fish/guestfish-actions.pod:4518
27071 #, no-wrap
27072 msgid ""
27073 " txz-in (tarball|-) directory\n"
27074 "\n"
27075 msgstr ""
27076
27077 #. type: =head2
27078 #: ../fish/guestfish-actions.pod:4525
27079 msgid "txz-out"
27080 msgstr ""
27081
27082 #. type: verbatim
27083 #: ../fish/guestfish-actions.pod:4527
27084 #, no-wrap
27085 msgid ""
27086 " txz-out directory (tarball|-)\n"
27087 "\n"
27088 msgstr ""
27089
27090 #. type: =head2
27091 #: ../fish/guestfish-actions.pod:4534
27092 msgid "umask"
27093 msgstr ""
27094
27095 #. type: verbatim
27096 #: ../fish/guestfish-actions.pod:4536
27097 #, no-wrap
27098 msgid ""
27099 " umask mask\n"
27100 "\n"
27101 msgstr ""
27102
27103 #. type: textblock
27104 #: ../fish/guestfish-actions.pod:4550
27105 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
27106 msgstr ""
27107
27108 #. type: =head2
27109 #: ../fish/guestfish-actions.pod:4555
27110 msgid "umount"
27111 msgstr ""
27112
27113 #. type: =head2
27114 #: ../fish/guestfish-actions.pod:4557
27115 msgid "unmount"
27116 msgstr ""
27117
27118 #. type: verbatim
27119 #: ../fish/guestfish-actions.pod:4559
27120 #, no-wrap
27121 msgid ""
27122 " umount pathordevice\n"
27123 "\n"
27124 msgstr ""
27125
27126 #. type: =head2
27127 #: ../fish/guestfish-actions.pod:4565
27128 msgid "umount-all"
27129 msgstr ""
27130
27131 #. type: =head2
27132 #: ../fish/guestfish-actions.pod:4567
27133 msgid "unmount-all"
27134 msgstr ""
27135
27136 #. type: verbatim
27137 #: ../fish/guestfish-actions.pod:4569
27138 #, no-wrap
27139 msgid ""
27140 " umount-all\n"
27141 "\n"
27142 msgstr ""
27143
27144 #. type: =head2
27145 #: ../fish/guestfish-actions.pod:4575
27146 msgid "upload"
27147 msgstr ""
27148
27149 #. type: verbatim
27150 #: ../fish/guestfish-actions.pod:4577
27151 #, no-wrap
27152 msgid ""
27153 " upload (filename|-) remotefilename\n"
27154 "\n"
27155 msgstr ""
27156
27157 #. type: textblock
27158 #: ../fish/guestfish-actions.pod:4584
27159 msgid "See also L</download>."
27160 msgstr ""
27161
27162 #. type: =head2
27163 #: ../fish/guestfish-actions.pod:4588
27164 msgid "upload-offset"
27165 msgstr ""
27166
27167 #. type: verbatim
27168 #: ../fish/guestfish-actions.pod:4590
27169 #, no-wrap
27170 msgid ""
27171 " upload-offset (filename|-) remotefilename offset\n"
27172 "\n"
27173 msgstr ""
27174
27175 #. type: textblock
27176 #: ../fish/guestfish-actions.pod:4602
27177 msgid ""
27178 "Note that there is no limit on the amount of data that can be uploaded with "
27179 "this call, unlike with L</pwrite>, and this call always writes the full "
27180 "amount unless an error occurs."
27181 msgstr ""
27182
27183 #. type: textblock
27184 #: ../fish/guestfish-actions.pod:4607
27185 msgid "See also L</upload>, L</pwrite>."
27186 msgstr ""
27187
27188 #. type: =head2
27189 #: ../fish/guestfish-actions.pod:4611
27190 msgid "utimens"
27191 msgstr ""
27192
27193 #. type: verbatim
27194 #: ../fish/guestfish-actions.pod:4613
27195 #, no-wrap
27196 msgid ""
27197 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
27198 "\n"
27199 msgstr ""
27200
27201 #. type: =head2
27202 #: ../fish/guestfish-actions.pod:4632
27203 msgid "version"
27204 msgstr ""
27205
27206 #. type: verbatim
27207 #: ../fish/guestfish-actions.pod:4634
27208 #, no-wrap
27209 msgid ""
27210 " version\n"
27211 "\n"
27212 msgstr ""
27213
27214 #. type: textblock
27215 #: ../fish/guestfish-actions.pod:4661
27216 msgid ""
27217 "I<Note:> Don't use this call to test for availability of features.  In "
27218 "enterprise distributions we backport features from later versions into "
27219 "earlier versions, making this an unreliable way to test for features.  Use "
27220 "L</available> instead."
27221 msgstr ""
27222
27223 #. type: =head2
27224 #: ../fish/guestfish-actions.pod:4667
27225 msgid "vfs-label"
27226 msgstr ""
27227
27228 #. type: verbatim
27229 #: ../fish/guestfish-actions.pod:4669
27230 #, no-wrap
27231 msgid ""
27232 " vfs-label device\n"
27233 "\n"
27234 msgstr ""
27235
27236 #. type: textblock
27237 #: ../fish/guestfish-actions.pod:4676
27238 msgid "To find a filesystem from the label, use L</findfs-label>."
27239 msgstr ""
27240
27241 #. type: =head2
27242 #: ../fish/guestfish-actions.pod:4678
27243 msgid "vfs-type"
27244 msgstr ""
27245
27246 #. type: verbatim
27247 #: ../fish/guestfish-actions.pod:4680
27248 #, no-wrap
27249 msgid ""
27250 " vfs-type device\n"
27251 "\n"
27252 msgstr ""
27253
27254 #. type: =head2
27255 #: ../fish/guestfish-actions.pod:4690
27256 msgid "vfs-uuid"
27257 msgstr ""
27258
27259 #. type: verbatim
27260 #: ../fish/guestfish-actions.pod:4692
27261 #, no-wrap
27262 msgid ""
27263 " vfs-uuid device\n"
27264 "\n"
27265 msgstr ""
27266
27267 #. type: textblock
27268 #: ../fish/guestfish-actions.pod:4699
27269 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
27270 msgstr ""
27271
27272 #. type: =head2
27273 #: ../fish/guestfish-actions.pod:4701
27274 msgid "vg-activate"
27275 msgstr ""
27276
27277 #. type: verbatim
27278 #: ../fish/guestfish-actions.pod:4703
27279 #, no-wrap
27280 msgid ""
27281 " vg-activate true|false 'volgroups ...'\n"
27282 "\n"
27283 msgstr ""
27284
27285 #. type: =head2
27286 #: ../fish/guestfish-actions.pod:4716
27287 msgid "vg-activate-all"
27288 msgstr ""
27289
27290 #. type: verbatim
27291 #: ../fish/guestfish-actions.pod:4718
27292 #, no-wrap
27293 msgid ""
27294 " vg-activate-all true|false\n"
27295 "\n"
27296 msgstr ""
27297
27298 #. type: =head2
27299 #: ../fish/guestfish-actions.pod:4728
27300 msgid "vgcreate"
27301 msgstr ""
27302
27303 #. type: verbatim
27304 #: ../fish/guestfish-actions.pod:4730
27305 #, no-wrap
27306 msgid ""
27307 " vgcreate volgroup 'physvols ...'\n"
27308 "\n"
27309 msgstr ""
27310
27311 #. type: =head2
27312 #: ../fish/guestfish-actions.pod:4735
27313 msgid "vglvuuids"
27314 msgstr ""
27315
27316 #. type: verbatim
27317 #: ../fish/guestfish-actions.pod:4737
27318 #, no-wrap
27319 msgid ""
27320 " vglvuuids vgname\n"
27321 "\n"
27322 msgstr ""
27323
27324 #. type: textblock
27325 #: ../fish/guestfish-actions.pod:4742
27326 msgid ""
27327 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
27328 "logical volumes and volume groups."
27329 msgstr ""
27330
27331 #. type: textblock
27332 #: ../fish/guestfish-actions.pod:4745
27333 msgid "See also L</vgpvuuids>."
27334 msgstr ""
27335
27336 #. type: =head2
27337 #: ../fish/guestfish-actions.pod:4747
27338 msgid "vgpvuuids"
27339 msgstr ""
27340
27341 #. type: verbatim
27342 #: ../fish/guestfish-actions.pod:4749
27343 #, no-wrap
27344 msgid ""
27345 " vgpvuuids vgname\n"
27346 "\n"
27347 msgstr ""
27348
27349 #. type: textblock
27350 #: ../fish/guestfish-actions.pod:4754
27351 msgid ""
27352 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
27353 "physical volumes and volume groups."
27354 msgstr ""
27355
27356 #. type: textblock
27357 #: ../fish/guestfish-actions.pod:4757
27358 msgid "See also L</vglvuuids>."
27359 msgstr ""
27360
27361 #. type: =head2
27362 #: ../fish/guestfish-actions.pod:4759
27363 msgid "vgremove"
27364 msgstr ""
27365
27366 #. type: verbatim
27367 #: ../fish/guestfish-actions.pod:4761
27368 #, no-wrap
27369 msgid ""
27370 " vgremove vgname\n"
27371 "\n"
27372 msgstr ""
27373
27374 #. type: =head2
27375 #: ../fish/guestfish-actions.pod:4768
27376 msgid "vgrename"
27377 msgstr ""
27378
27379 #. type: verbatim
27380 #: ../fish/guestfish-actions.pod:4770
27381 #, no-wrap
27382 msgid ""
27383 " vgrename volgroup newvolgroup\n"
27384 "\n"
27385 msgstr ""
27386
27387 #. type: =head2
27388 #: ../fish/guestfish-actions.pod:4774
27389 msgid "vgs"
27390 msgstr ""
27391
27392 #. type: verbatim
27393 #: ../fish/guestfish-actions.pod:4776
27394 #, no-wrap
27395 msgid ""
27396 " vgs\n"
27397 "\n"
27398 msgstr ""
27399
27400 #. type: textblock
27401 #: ../fish/guestfish-actions.pod:4784
27402 msgid "See also L</vgs-full>."
27403 msgstr ""
27404
27405 #. type: =head2
27406 #: ../fish/guestfish-actions.pod:4786
27407 msgid "vgs-full"
27408 msgstr ""
27409
27410 #. type: verbatim
27411 #: ../fish/guestfish-actions.pod:4788
27412 #, no-wrap
27413 msgid ""
27414 " vgs-full\n"
27415 "\n"
27416 msgstr ""
27417
27418 #. type: =head2
27419 #: ../fish/guestfish-actions.pod:4793
27420 msgid "vgscan"
27421 msgstr ""
27422
27423 #. type: verbatim
27424 #: ../fish/guestfish-actions.pod:4795
27425 #, no-wrap
27426 msgid ""
27427 " vgscan\n"
27428 "\n"
27429 msgstr ""
27430
27431 #. type: =head2
27432 #: ../fish/guestfish-actions.pod:4800
27433 msgid "vguuid"
27434 msgstr ""
27435
27436 #. type: verbatim
27437 #: ../fish/guestfish-actions.pod:4802
27438 #, no-wrap
27439 msgid ""
27440 " vguuid vgname\n"
27441 "\n"
27442 msgstr ""
27443
27444 #. type: =head2
27445 #: ../fish/guestfish-actions.pod:4806
27446 msgid "wc-c"
27447 msgstr ""
27448
27449 #. type: verbatim
27450 #: ../fish/guestfish-actions.pod:4808
27451 #, no-wrap
27452 msgid ""
27453 " wc-c path\n"
27454 "\n"
27455 msgstr ""
27456
27457 #. type: =head2
27458 #: ../fish/guestfish-actions.pod:4813
27459 msgid "wc-l"
27460 msgstr ""
27461
27462 #. type: verbatim
27463 #: ../fish/guestfish-actions.pod:4815
27464 #, no-wrap
27465 msgid ""
27466 " wc-l path\n"
27467 "\n"
27468 msgstr ""
27469
27470 #. type: =head2
27471 #: ../fish/guestfish-actions.pod:4820
27472 msgid "wc-w"
27473 msgstr ""
27474
27475 #. type: verbatim
27476 #: ../fish/guestfish-actions.pod:4822
27477 #, no-wrap
27478 msgid ""
27479 " wc-w path\n"
27480 "\n"
27481 msgstr ""
27482
27483 #. type: =head2
27484 #: ../fish/guestfish-actions.pod:4827
27485 msgid "write"
27486 msgstr ""
27487
27488 #. type: verbatim
27489 #: ../fish/guestfish-actions.pod:4829
27490 #, no-wrap
27491 msgid ""
27492 " write path content\n"
27493 "\n"
27494 msgstr ""
27495
27496 #. type: =head2
27497 #: ../fish/guestfish-actions.pod:4837
27498 msgid "write-file"
27499 msgstr ""
27500
27501 #. type: verbatim
27502 #: ../fish/guestfish-actions.pod:4839
27503 #, no-wrap
27504 msgid ""
27505 " write-file path content size\n"
27506 "\n"
27507 msgstr ""
27508
27509 #. type: =head2
27510 #: ../fish/guestfish-actions.pod:4862
27511 msgid "zegrep"
27512 msgstr ""
27513
27514 #. type: verbatim
27515 #: ../fish/guestfish-actions.pod:4864
27516 #, no-wrap
27517 msgid ""
27518 " zegrep regex path\n"
27519 "\n"
27520 msgstr ""
27521
27522 #. type: =head2
27523 #: ../fish/guestfish-actions.pod:4872
27524 msgid "zegrepi"
27525 msgstr ""
27526
27527 #. type: verbatim
27528 #: ../fish/guestfish-actions.pod:4874
27529 #, no-wrap
27530 msgid ""
27531 " zegrepi regex path\n"
27532 "\n"
27533 msgstr ""
27534
27535 #. type: =head2
27536 #: ../fish/guestfish-actions.pod:4882
27537 msgid "zero"
27538 msgstr ""
27539
27540 #. type: verbatim
27541 #: ../fish/guestfish-actions.pod:4884
27542 #, no-wrap
27543 msgid ""
27544 " zero device\n"
27545 "\n"
27546 msgstr ""
27547
27548 #. type: textblock
27549 #: ../fish/guestfish-actions.pod:4892
27550 msgid "See also: L</zero-device>, L</scrub-device>."
27551 msgstr ""
27552
27553 #. type: =head2
27554 #: ../fish/guestfish-actions.pod:4894
27555 msgid "zero-device"
27556 msgstr ""
27557
27558 #. type: verbatim
27559 #: ../fish/guestfish-actions.pod:4896
27560 #, no-wrap
27561 msgid ""
27562 " zero-device device\n"
27563 "\n"
27564 msgstr ""
27565
27566 #. type: textblock
27567 #: ../fish/guestfish-actions.pod:4898
27568 msgid ""
27569 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
27570 "which just zeroes the first few blocks of a device."
27571 msgstr ""
27572
27573 #. type: =head2
27574 #: ../fish/guestfish-actions.pod:4905
27575 msgid "zerofree"
27576 msgstr ""
27577
27578 #. type: verbatim
27579 #: ../fish/guestfish-actions.pod:4907
27580 #, no-wrap
27581 msgid ""
27582 " zerofree device\n"
27583 "\n"
27584 msgstr ""
27585
27586 #. type: =head2
27587 #: ../fish/guestfish-actions.pod:4920
27588 msgid "zfgrep"
27589 msgstr ""
27590
27591 #. type: verbatim
27592 #: ../fish/guestfish-actions.pod:4922
27593 #, no-wrap
27594 msgid ""
27595 " zfgrep pattern path\n"
27596 "\n"
27597 msgstr ""
27598
27599 #. type: =head2
27600 #: ../fish/guestfish-actions.pod:4930
27601 msgid "zfgrepi"
27602 msgstr ""
27603
27604 #. type: verbatim
27605 #: ../fish/guestfish-actions.pod:4932
27606 #, no-wrap
27607 msgid ""
27608 " zfgrepi pattern path\n"
27609 "\n"
27610 msgstr ""
27611
27612 #. type: =head2
27613 #: ../fish/guestfish-actions.pod:4940
27614 msgid "zfile"
27615 msgstr ""
27616
27617 #. type: verbatim
27618 #: ../fish/guestfish-actions.pod:4942
27619 #, no-wrap
27620 msgid ""
27621 " zfile meth path\n"
27622 "\n"
27623 msgstr ""
27624
27625 #. type: textblock
27626 #: ../fish/guestfish-actions.pod:4949
27627 msgid ""
27628 "Since 1.0.63, use L</file> instead which can now process compressed files."
27629 msgstr ""
27630
27631 #. type: =head2
27632 #: ../fish/guestfish-actions.pod:4959
27633 msgid "zgrep"
27634 msgstr ""
27635
27636 #. type: verbatim
27637 #: ../fish/guestfish-actions.pod:4961
27638 #, no-wrap
27639 msgid ""
27640 " zgrep regex path\n"
27641 "\n"
27642 msgstr ""
27643
27644 #. type: =head2
27645 #: ../fish/guestfish-actions.pod:4969
27646 msgid "zgrepi"
27647 msgstr ""
27648
27649 #. type: verbatim
27650 #: ../fish/guestfish-actions.pod:4971
27651 #, no-wrap
27652 msgid ""
27653 " zgrepi regex path\n"
27654 "\n"
27655 msgstr ""
27656
27657 #. type: =head2
27658 #: ../fish/guestfish-commands.pod:1
27659 msgid "alloc"
27660 msgstr ""
27661
27662 #. type: =head2
27663 #: ../fish/guestfish-commands.pod:3
27664 msgid "allocate"
27665 msgstr ""
27666
27667 #. type: verbatim
27668 #: ../fish/guestfish-commands.pod:5
27669 #, no-wrap
27670 msgid ""
27671 " alloc filename size\n"
27672 "\n"
27673 msgstr ""
27674
27675 #. type: textblock
27676 #: ../fish/guestfish-commands.pod:7
27677 msgid ""
27678 "This creates an empty (zeroed) file of the given size, and then adds so it "
27679 "can be further examined."
27680 msgstr ""
27681
27682 #. type: textblock
27683 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
27684 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
27685 msgstr ""
27686
27687 #. type: textblock
27688 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
27689 msgid "Size can be specified using standard suffixes, eg. C<1M>."
27690 msgstr ""
27691
27692 #. type: textblock
27693 #: ../fish/guestfish-commands.pod:14
27694 msgid ""
27695 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
27696 "image, see L</PREPARED DISK IMAGES>."
27697 msgstr ""
27698
27699 #. type: =head2
27700 #: ../fish/guestfish-commands.pod:17
27701 msgid "copy-in"
27702 msgstr ""
27703
27704 #. type: verbatim
27705 #: ../fish/guestfish-commands.pod:19
27706 #, no-wrap
27707 msgid ""
27708 " copy-in local [local ...] /remotedir\n"
27709 "\n"
27710 msgstr ""
27711
27712 #. type: textblock
27713 #: ../fish/guestfish-commands.pod:21
27714 msgid ""
27715 "C<copy-in> copies local files or directories recursively into the disk "
27716 "image, placing them in the directory called C</remotedir> (which must "
27717 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
27718 "other commands as necessary."
27719 msgstr ""
27720
27721 #. type: textblock
27722 #: ../fish/guestfish-commands.pod:26
27723 msgid ""
27724 "Multiple local files and directories can be specified, but the last "
27725 "parameter must always be a remote directory.  Wildcards cannot be used."
27726 msgstr ""
27727
27728 #. type: =head2
27729 #: ../fish/guestfish-commands.pod:30
27730 msgid "copy-out"
27731 msgstr ""
27732
27733 #. type: verbatim
27734 #: ../fish/guestfish-commands.pod:32
27735 #, no-wrap
27736 msgid ""
27737 " copy-out remote [remote ...] localdir\n"
27738 "\n"
27739 msgstr ""
27740
27741 #. type: textblock
27742 #: ../fish/guestfish-commands.pod:34
27743 msgid ""
27744 "C<copy-out> copies remote files or directories recursively out of the disk "
27745 "image, placing them on the host disk in a local directory called C<localdir> "
27746 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
27747 "download>, L</tar-out> and other commands as necessary."
27748 msgstr ""
27749
27750 #. type: textblock
27751 #: ../fish/guestfish-commands.pod:40
27752 msgid ""
27753 "Multiple remote files and directories can be specified, but the last "
27754 "parameter must always be a local directory.  To download to the current "
27755 "directory, use C<.> as in:"
27756 msgstr ""
27757
27758 #. type: verbatim
27759 #: ../fish/guestfish-commands.pod:44
27760 #, no-wrap
27761 msgid ""
27762 " copy-out /home .\n"
27763 "\n"
27764 msgstr ""
27765
27766 #. type: textblock
27767 #: ../fish/guestfish-commands.pod:46
27768 msgid ""
27769 "Wildcards cannot be used in the ordinary command, but you can use them with "
27770 "the help of L</glob> like this:"
27771 msgstr ""
27772
27773 #. type: verbatim
27774 #: ../fish/guestfish-commands.pod:49
27775 #, no-wrap
27776 msgid ""
27777 " glob copy-out /home/* .\n"
27778 "\n"
27779 msgstr ""
27780
27781 #. type: =head2
27782 #: ../fish/guestfish-commands.pod:51
27783 msgid "echo"
27784 msgstr ""
27785
27786 #. type: verbatim
27787 #: ../fish/guestfish-commands.pod:53
27788 #, no-wrap
27789 msgid ""
27790 " echo [params ...]\n"
27791 "\n"
27792 msgstr ""
27793
27794 #. type: textblock
27795 #: ../fish/guestfish-commands.pod:55
27796 msgid "This echos the parameters to the terminal."
27797 msgstr ""
27798
27799 #. type: =head2
27800 #: ../fish/guestfish-commands.pod:57
27801 msgid "edit"
27802 msgstr ""
27803
27804 #. type: =head2
27805 #: ../fish/guestfish-commands.pod:59
27806 msgid "vi"
27807 msgstr ""
27808
27809 #. type: =head2
27810 #: ../fish/guestfish-commands.pod:61
27811 msgid "emacs"
27812 msgstr ""
27813
27814 #. type: verbatim
27815 #: ../fish/guestfish-commands.pod:63
27816 #, no-wrap
27817 msgid ""
27818 " edit filename\n"
27819 "\n"
27820 msgstr ""
27821
27822 #. type: textblock
27823 #: ../fish/guestfish-commands.pod:65
27824 msgid ""
27825 "This is used to edit a file.  It downloads the file, edits it locally using "
27826 "your editor, then uploads the result."
27827 msgstr ""
27828
27829 #. type: textblock
27830 #: ../fish/guestfish-commands.pod:68
27831 msgid ""
27832 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
27833 "or C<emacs> you will get those corresponding editors."
27834 msgstr ""
27835
27836 #. type: =head2
27837 #: ../fish/guestfish-commands.pod:72
27838 msgid "glob"
27839 msgstr ""
27840
27841 #. type: verbatim
27842 #: ../fish/guestfish-commands.pod:74
27843 #, no-wrap
27844 msgid ""
27845 " glob command args...\n"
27846 "\n"
27847 msgstr ""
27848
27849 #. type: textblock
27850 #: ../fish/guestfish-commands.pod:76
27851 msgid ""
27852 "Expand wildcards in any paths in the args list, and run C<command> "
27853 "repeatedly on each matching path."
27854 msgstr ""
27855
27856 #. type: textblock
27857 #: ../fish/guestfish-commands.pod:79
27858 msgid "See L</WILDCARDS AND GLOBBING>."
27859 msgstr ""
27860
27861 #. type: =head2
27862 #: ../fish/guestfish-commands.pod:81
27863 msgid "hexedit"
27864 msgstr ""
27865
27866 #. type: verbatim
27867 #: ../fish/guestfish-commands.pod:83
27868 #, no-wrap
27869 msgid ""
27870 " hexedit <filename|device>\n"
27871 " hexedit <filename|device> <max>\n"
27872 " hexedit <filename|device> <start> <max>\n"
27873 "\n"
27874 msgstr ""
27875
27876 #. type: textblock
27877 #: ../fish/guestfish-commands.pod:87
27878 msgid ""
27879 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
27880 "device."
27881 msgstr ""
27882
27883 #. type: textblock
27884 #: ../fish/guestfish-commands.pod:90
27885 msgid ""
27886 "This command works by downloading potentially the whole file or device, "
27887 "editing it locally, then uploading it.  If the file or device is large, you "
27888 "have to specify which part you wish to edit by using C<max> and/or C<start> "
27889 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
27890 "usual modifiers allowed such as C<1M> (1 megabyte)."
27891 msgstr ""
27892
27893 #. type: textblock
27894 #: ../fish/guestfish-commands.pod:97
27895 msgid "For example to edit the first few sectors of a disk you might do:"
27896 msgstr ""
27897
27898 #. type: verbatim
27899 #: ../fish/guestfish-commands.pod:100
27900 #, no-wrap
27901 msgid ""
27902 " hexedit /dev/sda 1M\n"
27903 "\n"
27904 msgstr ""
27905
27906 #. type: textblock
27907 #: ../fish/guestfish-commands.pod:102
27908 msgid ""
27909 "which would allow you to edit anywhere within the first megabyte of the disk."
27910 msgstr ""
27911
27912 #. type: textblock
27913 #: ../fish/guestfish-commands.pod:105
27914 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
27915 msgstr ""
27916
27917 #. type: verbatim
27918 #: ../fish/guestfish-commands.pod:107
27919 #, no-wrap
27920 msgid ""
27921 " hexedit /dev/sda1 0x400 0x400\n"
27922 "\n"
27923 msgstr ""
27924
27925 #. type: textblock
27926 #: ../fish/guestfish-commands.pod:109
27927 msgid "(assuming the superblock is in the standard location)."
27928 msgstr ""
27929
27930 #. type: textblock
27931 #: ../fish/guestfish-commands.pod:111
27932 msgid ""
27933 "This command requires the external L<hexedit(1)> program.  You can specify "
27934 "another program to use by setting the C<HEXEDITOR> environment variable."
27935 msgstr ""
27936
27937 #. type: textblock
27938 #: ../fish/guestfish-commands.pod:115
27939 msgid "See also L</hexdump>."
27940 msgstr ""
27941
27942 #. type: =head2
27943 #: ../fish/guestfish-commands.pod:117
27944 msgid "lcd"
27945 msgstr ""
27946
27947 #. type: verbatim
27948 #: ../fish/guestfish-commands.pod:119
27949 #, no-wrap
27950 msgid ""
27951 " lcd directory\n"
27952 "\n"
27953 msgstr ""
27954
27955 #. type: textblock
27956 #: ../fish/guestfish-commands.pod:121
27957 msgid ""
27958 "Change the local directory, ie. the current directory of guestfish itself."
27959 msgstr ""
27960
27961 #. type: textblock
27962 #: ../fish/guestfish-commands.pod:124
27963 msgid "Note that C<!cd> won't do what you might expect."
27964 msgstr ""
27965
27966 #. type: =head2
27967 #: ../fish/guestfish-commands.pod:126
27968 msgid "man"
27969 msgstr ""
27970
27971 #. type: =head2
27972 #: ../fish/guestfish-commands.pod:128
27973 msgid "manual"
27974 msgstr ""
27975
27976 #. type: verbatim
27977 #: ../fish/guestfish-commands.pod:130
27978 #, no-wrap
27979 msgid ""
27980 "  man\n"
27981 "\n"
27982 msgstr ""
27983
27984 #. type: textblock
27985 #: ../fish/guestfish-commands.pod:132
27986 msgid "Opens the manual page for guestfish."
27987 msgstr ""
27988
27989 #. type: =head2
27990 #: ../fish/guestfish-commands.pod:134
27991 msgid "more"
27992 msgstr ""
27993
27994 #. type: =head2
27995 #: ../fish/guestfish-commands.pod:136
27996 msgid "less"
27997 msgstr ""
27998
27999 #. type: verbatim
28000 #: ../fish/guestfish-commands.pod:138
28001 #, no-wrap
28002 msgid ""
28003 " more filename\n"
28004 "\n"
28005 msgstr ""
28006
28007 #. type: verbatim
28008 #: ../fish/guestfish-commands.pod:140
28009 #, no-wrap
28010 msgid ""
28011 " less filename\n"
28012 "\n"
28013 msgstr ""
28014
28015 #. type: textblock
28016 #: ../fish/guestfish-commands.pod:142
28017 msgid "This is used to view a file."
28018 msgstr ""
28019
28020 #. type: textblock
28021 #: ../fish/guestfish-commands.pod:144
28022 msgid ""
28023 "The default viewer is C<$PAGER>.  However if you use the alternate command "
28024 "C<less> you will get the C<less> command specifically."
28025 msgstr ""
28026
28027 #. type: =head2
28028 #: ../fish/guestfish-commands.pod:147
28029 msgid "reopen"
28030 msgstr ""
28031
28032 #. type: verbatim
28033 #: ../fish/guestfish-commands.pod:149
28034 #, no-wrap
28035 msgid ""
28036 "  reopen\n"
28037 "\n"
28038 msgstr ""
28039
28040 #. type: textblock
28041 #: ../fish/guestfish-commands.pod:151
28042 msgid ""
28043 "Close and reopen the libguestfs handle.  It is not necessary to use this "
28044 "normally, because the handle is closed properly when guestfish exits.  "
28045 "However this is occasionally useful for testing."
28046 msgstr ""
28047
28048 #. type: =head2
28049 #: ../fish/guestfish-commands.pod:155
28050 msgid "sparse"
28051 msgstr ""
28052
28053 #. type: verbatim
28054 #: ../fish/guestfish-commands.pod:157
28055 #, no-wrap
28056 msgid ""
28057 " sparse filename size\n"
28058 "\n"
28059 msgstr ""
28060
28061 #. type: textblock
28062 #: ../fish/guestfish-commands.pod:159
28063 msgid ""
28064 "This creates an empty sparse file of the given size, and then adds so it can "
28065 "be further examined."
28066 msgstr ""
28067
28068 #. type: textblock
28069 #: ../fish/guestfish-commands.pod:162
28070 msgid ""
28071 "In all respects it works the same as the L</alloc> command, except that the "
28072 "image file is allocated sparsely, which means that disk blocks are not "
28073 "assigned to the file until they are needed.  Sparse disk files only use "
28074 "space when written to, but they are slower and there is a danger you could "
28075 "run out of real disk space during a write operation."
28076 msgstr ""
28077
28078 #. type: =head2
28079 #: ../fish/guestfish-commands.pod:172
28080 msgid "supported"
28081 msgstr ""
28082
28083 #. type: verbatim
28084 #: ../fish/guestfish-commands.pod:174
28085 #, no-wrap
28086 msgid ""
28087 " supported\n"
28088 "\n"
28089 msgstr ""
28090
28091 #. type: textblock
28092 #: ../fish/guestfish-commands.pod:176
28093 msgid ""
28094 "This command returns a list of the optional groups known to the daemon, and "
28095 "indicates which ones are supported by this build of the libguestfs appliance."
28096 msgstr ""
28097
28098 #. type: textblock
28099 #: ../fish/guestfish-commands.pod:180
28100 msgid "See also L<guestfs(3)/AVAILABILITY>."
28101 msgstr ""
28102
28103 #. type: =head2
28104 #: ../fish/guestfish-commands.pod:182
28105 msgid "time"
28106 msgstr ""
28107
28108 #. type: verbatim
28109 #: ../fish/guestfish-commands.pod:184
28110 #, no-wrap
28111 msgid ""
28112 " time command args...\n"
28113 "\n"
28114 msgstr ""
28115
28116 #. type: textblock
28117 #: ../fish/guestfish-commands.pod:186
28118 msgid ""
28119 "Run the command as usual, but print the elapsed time afterwards.  This can "
28120 "be useful for benchmarking operations."
28121 msgstr ""
28122
28123 #. type: textblock
28124 #: ../test-tool/libguestfs-test-tool.pod:5
28125 msgid "libguestfs-test-tool - End user tests for libguestfs"
28126 msgstr ""
28127
28128 #. type: verbatim
28129 #: ../test-tool/libguestfs-test-tool.pod:9
28130 #, no-wrap
28131 msgid ""
28132 " libguestfs-test-tool [--options]\n"
28133 "\n"
28134 msgstr ""
28135
28136 #. type: textblock
28137 #: ../test-tool/libguestfs-test-tool.pod:13
28138 msgid ""
28139 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
28140 "and developers, to allow them to check basic libguestfs functionality is "
28141 "working.  This is needed because libguestfs occasionally breaks for reasons "
28142 "beyond our control: usually because of changes in the underlying qemu or "
28143 "kernel packages, or the host environment."
28144 msgstr ""
28145
28146 #. type: textblock
28147 #: ../test-tool/libguestfs-test-tool.pod:20
28148 msgid "If you suspect a problem in libguestfs, then just run:"
28149 msgstr ""
28150
28151 #. type: verbatim
28152 #: ../test-tool/libguestfs-test-tool.pod:22
28153 #, no-wrap
28154 msgid ""
28155 " libguestfs-test-tool\n"
28156 "\n"
28157 msgstr ""
28158
28159 #. type: textblock
28160 #: ../test-tool/libguestfs-test-tool.pod:24
28161 msgid "It will print lots of diagnostic messages."
28162 msgstr ""
28163
28164 #. type: textblock
28165 #: ../test-tool/libguestfs-test-tool.pod:26
28166 msgid "If it runs to completion successfully, you will see this near the end:"
28167 msgstr ""
28168
28169 #. type: verbatim
28170 #: ../test-tool/libguestfs-test-tool.pod:28
28171 #, no-wrap
28172 msgid ""
28173 " ===== TEST FINISHED OK =====\n"
28174 "\n"
28175 msgstr ""
28176
28177 #. type: textblock
28178 #: ../test-tool/libguestfs-test-tool.pod:30
28179 msgid "and the test tool will exit with code 0."
28180 msgstr ""
28181
28182 #. type: textblock
28183 #: ../test-tool/libguestfs-test-tool.pod:32
28184 msgid ""
28185 "If it fails (and/or exits with non-zero error code), please paste the "
28186 "B<complete, unedited> output of the test tool into a bug report.  More "
28187 "information about reporting bugs can be found on the L<http://libguestfs.org/"
28188 "> website."
28189 msgstr ""
28190
28191 #. type: =item
28192 #: ../test-tool/libguestfs-test-tool.pod:41
28193 msgid "I<--help>"
28194 msgstr ""
28195
28196 #. type: textblock
28197 #: ../test-tool/libguestfs-test-tool.pod:43
28198 msgid "Display short usage information and exit."
28199 msgstr ""
28200
28201 #. type: =item
28202 #: ../test-tool/libguestfs-test-tool.pod:45
28203 msgid "I<--qemu qemu_binary>"
28204 msgstr ""
28205
28206 #. type: textblock
28207 #: ../test-tool/libguestfs-test-tool.pod:47
28208 msgid ""
28209 "If you have downloaded another qemu binary, point this option at the full "
28210 "path of the binary to try it."
28211 msgstr ""
28212
28213 #. type: =item
28214 #: ../test-tool/libguestfs-test-tool.pod:50
28215 msgid "I<--qemudir qemu_source_dir>"
28216 msgstr ""
28217
28218 #. type: textblock
28219 #: ../test-tool/libguestfs-test-tool.pod:52
28220 msgid ""
28221 "If you have compiled qemu from source, point this option at the source "
28222 "directory to try it."
28223 msgstr ""
28224
28225 #. type: =item
28226 #: ../test-tool/libguestfs-test-tool.pod:55
28227 msgid "I<--timeout N>"
28228 msgstr ""
28229
28230 #. type: textblock
28231 #: ../test-tool/libguestfs-test-tool.pod:57
28232 msgid ""
28233 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
28234 "does not usually need to be adjusted unless your machine is very slow."
28235 msgstr ""
28236
28237 #. type: =head1
28238 #: ../test-tool/libguestfs-test-tool.pod:63
28239 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
28240 msgstr ""
28241
28242 #. type: textblock
28243 #: ../test-tool/libguestfs-test-tool.pod:65
28244 msgid ""
28245 "If you have compiled another version of qemu from source and would like to "
28246 "try that, then you can use the I<--qemudir> option to point to the qemu "
28247 "source directory."
28248 msgstr ""
28249
28250 #. type: textblock
28251 #: ../test-tool/libguestfs-test-tool.pod:69
28252 msgid ""
28253 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
28254 "option to point to the binary."
28255 msgstr ""
28256
28257 #. type: textblock
28258 #: ../test-tool/libguestfs-test-tool.pod:72
28259 msgid ""
28260 "When using an alternate qemu with libguestfs, usually you would need to "
28261 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
28262 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
28263 "use either of the I<--qemudir> or I<--qemu> options."
28264 msgstr ""
28265
28266 #. type: textblock
28267 #: ../test-tool/libguestfs-test-tool.pod:79
28268 msgid ""
28269 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
28270 "I<1> if there was an error."
28271 msgstr ""
28272
28273 #. type: textblock
28274 #: ../test-tool/libguestfs-test-tool.pod:84
28275 msgid ""
28276 "For the full list of environment variables which may affect libguestfs, "
28277 "please see the L<guestfs(3)> manual page."
28278 msgstr ""
28279
28280 #. type: textblock
28281 #: ../test-tool/libguestfs-test-tool.pod:89
28282 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
28283 msgstr ""
28284
28285 #. type: textblock
28286 #: ../fuse/guestmount.pod:5
28287 msgid ""
28288 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
28289 msgstr ""
28290
28291 #. type: verbatim
28292 #: ../fuse/guestmount.pod:9
28293 #, no-wrap
28294 msgid ""
28295 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
28296 "\n"
28297 msgstr ""
28298
28299 #. type: verbatim
28300 #: ../fuse/guestmount.pod:11
28301 #, no-wrap
28302 msgid ""
28303 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
28304 "\n"
28305 msgstr ""
28306
28307 #. type: verbatim
28308 #: ../fuse/guestmount.pod:13
28309 #, no-wrap
28310 msgid ""
28311 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
28312 "\n"
28313 msgstr ""
28314
28315 #. type: textblock
28316 #: ../fuse/guestmount.pod:17
28317 msgid ""
28318 "You must I<not> use C<guestmount> in read-write mode on live virtual "
28319 "machines.  If you do this, you risk disk corruption in the VM."
28320 msgstr ""
28321
28322 #. type: textblock
28323 #: ../fuse/guestmount.pod:22
28324 msgid ""
28325 "The guestmount program can be used to mount virtual machine filesystems and "
28326 "other disk images on the host.  It uses libguestfs for access to the guest "
28327 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
28328 "a mountable device."
28329 msgstr ""
28330
28331 #. type: textblock
28332 #: ../fuse/guestmount.pod:27
28333 msgid ""
28334 "Along with other options, you have to give at least one device (I<-a> "
28335 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
28336 "option) or use the I<-i> inspection option.  How this works is better "
28337 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
28338 "below."
28339 msgstr ""
28340
28341 #. type: textblock
28342 #: ../fuse/guestmount.pod:33
28343 msgid ""
28344 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
28345 "by you, and the filesystem will not be visible to any other users unless you "
28346 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
28347 "the filesystem, use the C<fusermount -u> command."
28348 msgstr ""
28349
28350 #. type: textblock
28351 #: ../fuse/guestmount.pod:41
28352 msgid ""
28353 "For a typical Windows guest which has its main filesystem on the first "
28354 "partition:"
28355 msgstr ""
28356
28357 #. type: verbatim
28358 #: ../fuse/guestmount.pod:44
28359 #, no-wrap
28360 msgid ""
28361 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
28362 "\n"
28363 msgstr ""
28364
28365 #. type: textblock
28366 #: ../fuse/guestmount.pod:46
28367 msgid ""
28368 "For a typical Linux guest which has a /boot filesystem on the first "
28369 "partition, and the root filesystem on a logical volume:"
28370 msgstr ""
28371
28372 #. type: verbatim
28373 #: ../fuse/guestmount.pod:49
28374 #, no-wrap
28375 msgid ""
28376 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
28377 "\n"
28378 msgstr ""
28379
28380 #. type: textblock
28381 #: ../fuse/guestmount.pod:51
28382 msgid "To get libguestfs to detect guest mountpoints for you:"
28383 msgstr ""
28384
28385 #. type: verbatim
28386 #: ../fuse/guestmount.pod:53
28387 #, no-wrap
28388 msgid ""
28389 " guestmount -a guest.img -i --ro /mnt\n"
28390 "\n"
28391 msgstr ""
28392
28393 #. type: textblock
28394 #: ../fuse/guestmount.pod:55
28395 msgid "For a libvirt guest called \"Guest\" you could do:"
28396 msgstr ""
28397
28398 #. type: verbatim
28399 #: ../fuse/guestmount.pod:57
28400 #, no-wrap
28401 msgid ""
28402 " guestmount -d Guest -i --ro /mnt\n"
28403 "\n"
28404 msgstr ""
28405
28406 #. type: textblock
28407 #: ../fuse/guestmount.pod:59
28408 msgid ""
28409 "If you don't know what filesystems are contained in a guest or disk image, "
28410 "use L<virt-filesystems(1)> first:"
28411 msgstr ""
28412
28413 #. type: verbatim
28414 #: ../fuse/guestmount.pod:62
28415 #, no-wrap
28416 msgid ""
28417 " virt-filesystems MyGuest\n"
28418 "\n"
28419 msgstr ""
28420
28421 #. type: textblock
28422 #: ../fuse/guestmount.pod:64
28423 msgid ""
28424 "If you want to trace the libguestfs calls but without excessive debugging "
28425 "information, we recommend:"
28426 msgstr ""
28427
28428 #. type: verbatim
28429 #: ../fuse/guestmount.pod:67
28430 #, no-wrap
28431 msgid ""
28432 " guestmount [...] --trace /mnt\n"
28433 "\n"
28434 msgstr ""
28435
28436 #. type: textblock
28437 #: ../fuse/guestmount.pod:69
28438 msgid "If you want to debug the program, we recommend:"
28439 msgstr ""
28440
28441 #. type: verbatim
28442 #: ../fuse/guestmount.pod:71
28443 #, no-wrap
28444 msgid ""
28445 " guestmount [...] --trace --verbose /mnt\n"
28446 "\n"
28447 msgstr ""
28448
28449 #. type: =item
28450 #: ../fuse/guestmount.pod:77
28451 msgid "B<-a image> | B<--add image>"
28452 msgstr ""
28453
28454 #. type: textblock
28455 #: ../fuse/guestmount.pod:79
28456 msgid "Add a block device or virtual machine image."
28457 msgstr ""
28458
28459 #. type: =item
28460 #: ../fuse/guestmount.pod:84
28461 msgid "B<-c URI> | B<--connect URI>"
28462 msgstr ""
28463
28464 #. type: =item
28465 #: ../fuse/guestmount.pod:90
28466 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
28467 msgstr ""
28468
28469 #. type: =item
28470 #: ../fuse/guestmount.pod:96
28471 msgid "B<--dir-cache-timeout N>"
28472 msgstr ""
28473
28474 #. type: textblock
28475 #: ../fuse/guestmount.pod:98
28476 msgid ""
28477 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
28478 "seconds.  The readdir cache [actually, there are several semi-independent "
28479 "caches] is populated after a readdir(2) call with the stat and extended "
28480 "attributes of the files in the directory, in anticipation that they will be "
28481 "requested soon after."
28482 msgstr ""
28483
28484 #. type: textblock
28485 #: ../fuse/guestmount.pod:104
28486 msgid ""
28487 "There is also a different attribute cache implemented by FUSE (see the FUSE "
28488 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
28489 "requests, only cache existing ones."
28490 msgstr ""
28491
28492 #. type: =item
28493 #: ../fuse/guestmount.pod:115
28494 msgid "B<--format=raw|qcow2|..> | B<--format>"
28495 msgstr ""
28496
28497 #. type: textblock
28498 #: ../fuse/guestmount.pod:122
28499 msgid ""
28500 "If you have untrusted raw-format guest disk images, you should use this "
28501 "option to specify the disk format.  This avoids a possible security problem "
28502 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
28503 "guestfs_add_drive_opts>."
28504 msgstr ""
28505
28506 #. type: =item
28507 #: ../fuse/guestmount.pod:127
28508 msgid "B<--fuse-help>"
28509 msgstr ""
28510
28511 #. type: textblock
28512 #: ../fuse/guestmount.pod:129
28513 msgid "Display help on special FUSE options (see I<-o> below)."
28514 msgstr ""
28515
28516 #. type: textblock
28517 #: ../fuse/guestmount.pod:133
28518 msgid "Display brief help and exit."
28519 msgstr ""
28520
28521 #. type: =item
28522 #: ../fuse/guestmount.pod:135
28523 msgid "B<-i> | B<--inspector>"
28524 msgstr ""
28525
28526 #. type: textblock
28527 #: ../fuse/guestmount.pod:155
28528 msgid ""
28529 "Mount the named partition or logical volume on the given mountpoint B<in the "
28530 "guest> (this has nothing to do with mountpoints in the host)."
28531 msgstr ""
28532
28533 #. type: textblock
28534 #: ../fuse/guestmount.pod:158
28535 msgid ""
28536 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
28537 "something on C</>."
28538 msgstr ""
28539
28540 #. type: =item
28541 #: ../fuse/guestmount.pod:171
28542 msgid "B<-n> | B<--no-sync>"
28543 msgstr ""
28544
28545 #. type: textblock
28546 #: ../fuse/guestmount.pod:173
28547 msgid ""
28548 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
28549 "unmounted.  If you specify this option, then we don't attempt to sync the "
28550 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
28551 msgstr ""
28552
28553 #. type: =item
28554 #: ../fuse/guestmount.pod:178
28555 msgid "B<-o option> | B<--option option>"
28556 msgstr ""
28557
28558 #. type: textblock
28559 #: ../fuse/guestmount.pod:180
28560 msgid "Pass extra options to FUSE."
28561 msgstr ""
28562
28563 #. type: textblock
28564 #: ../fuse/guestmount.pod:182
28565 msgid ""
28566 "To get a list of all the extra options supported by FUSE, use the command "
28567 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
28568 "of them are a good idea."
28569 msgstr ""
28570
28571 #. type: verbatim
28572 #: ../fuse/guestmount.pod:186
28573 #, no-wrap
28574 msgid ""
28575 " guestmount --fuse-help\n"
28576 "\n"
28577 msgstr ""
28578
28579 #. type: textblock
28580 #: ../fuse/guestmount.pod:188
28581 msgid "Some potentially useful FUSE options:"
28582 msgstr ""
28583
28584 #. type: =item
28585 #: ../fuse/guestmount.pod:192
28586 msgid "B<-o allow_other>"
28587 msgstr ""
28588
28589 #. type: textblock
28590 #: ../fuse/guestmount.pod:194
28591 msgid "Allow other users to see the filesystem."
28592 msgstr ""
28593
28594 #. type: =item
28595 #: ../fuse/guestmount.pod:196
28596 msgid "B<-o attr_timeout=N>"
28597 msgstr ""
28598
28599 #. type: textblock
28600 #: ../fuse/guestmount.pod:198
28601 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
28602 msgstr ""
28603
28604 #. type: =item
28605 #: ../fuse/guestmount.pod:200
28606 msgid "B<-o kernel_cache>"
28607 msgstr ""
28608
28609 #. type: textblock
28610 #: ../fuse/guestmount.pod:202
28611 msgid ""
28612 "Allow the kernel to cache files (reduces the number of reads that have to go "
28613 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
28614 "afford the extra memory usage."
28615 msgstr ""
28616
28617 #. type: =item
28618 #: ../fuse/guestmount.pod:206
28619 msgid "B<-o uid=N> B<-o gid=N>"
28620 msgstr ""
28621
28622 #. type: textblock
28623 #: ../fuse/guestmount.pod:208
28624 msgid ""
28625 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
28626 "the chosen values."
28627 msgstr ""
28628
28629 #. type: =item
28630 #: ../fuse/guestmount.pod:213
28631 msgid "B<-r> | B<--ro>"
28632 msgstr ""
28633
28634 #. type: textblock
28635 #: ../fuse/guestmount.pod:215
28636 msgid ""
28637 "Add devices and mount everything read-only.  Also disallow writes and make "
28638 "the disk appear read-only to FUSE."
28639 msgstr ""
28640
28641 #. type: textblock
28642 #: ../fuse/guestmount.pod:218
28643 msgid ""
28644 "This is highly recommended if you are not going to edit the guest disk.  If "
28645 "the guest is running and this option is I<not> supplied, then there is a "
28646 "strong risk of disk corruption in the guest.  We try to prevent this from "
28647 "happening, but it is not always possible."
28648 msgstr ""
28649
28650 #. type: textblock
28651 #: ../fuse/guestmount.pod:223
28652 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
28653 msgstr ""
28654
28655 #. type: textblock
28656 #: ../fuse/guestmount.pod:227
28657 msgid "Enable SELinux support for the guest."
28658 msgstr ""
28659
28660 #. type: =item
28661 #: ../fuse/guestmount.pod:229
28662 msgid "B<-v> | B<--verbose>"
28663 msgstr ""
28664
28665 #. type: textblock
28666 #: ../fuse/guestmount.pod:231
28667 msgid "Enable verbose messages from underlying libguestfs."
28668 msgstr ""
28669
28670 #. type: =item
28671 #: ../fuse/guestmount.pod:233
28672 msgid "B<-V> | B<--version>"
28673 msgstr ""
28674
28675 #. type: textblock
28676 #: ../fuse/guestmount.pod:235
28677 msgid "Display the program version and exit."
28678 msgstr ""
28679
28680 #. type: =item
28681 #: ../fuse/guestmount.pod:237
28682 msgid "B<-w> | B<--rw>"
28683 msgstr ""
28684
28685 #. type: textblock
28686 #: ../fuse/guestmount.pod:242 ../fuse/guestmount.pod:263
28687 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
28688 msgstr ""
28689
28690 #. type: =item
28691 #: ../fuse/guestmount.pod:244
28692 msgid "B<-x> | B<--trace>"
28693 msgstr ""
28694
28695 #. type: textblock
28696 #: ../fuse/guestmount.pod:246
28697 msgid "Trace libguestfs calls and entry into each FUSE function."
28698 msgstr ""
28699
28700 #. type: textblock
28701 #: ../fuse/guestmount.pod:248
28702 msgid "This also stops the daemon from forking into the background."
28703 msgstr ""
28704
28705 #. type: textblock
28706 #: ../fuse/guestmount.pod:269
28707 msgid ""
28708 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
28709 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
28710 "net/>."
28711 msgstr ""
28712
28713 #. type: textblock
28714 #: ../fuse/guestmount.pod:284
28715 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
28716 msgstr ""
28717
28718 #. type: textblock
28719 #: ../tools/virt-edit.pl:34
28720 msgid "virt-edit - Edit a file in a virtual machine"
28721 msgstr ""
28722
28723 #. type: verbatim
28724 #: ../tools/virt-edit.pl:38
28725 #, no-wrap
28726 msgid ""
28727 " virt-edit [--options] domname file\n"
28728 "\n"
28729 msgstr ""
28730
28731 #. type: verbatim
28732 #: ../tools/virt-edit.pl:40
28733 #, no-wrap
28734 msgid ""
28735 " virt-edit [--options] disk.img [disk.img ...] file\n"
28736 "\n"
28737 msgstr ""
28738
28739 #. type: verbatim
28740 #: ../tools/virt-edit.pl:42
28741 #, no-wrap
28742 msgid ""
28743 " virt-edit [domname|disk.img] file -e 'expr'\n"
28744 "\n"
28745 msgstr ""
28746
28747 #. type: textblock
28748 #: ../tools/virt-edit.pl:46
28749 msgid ""
28750 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
28751 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
28752 "doing this, but doesn't catch all cases."
28753 msgstr ""
28754
28755 #. type: textblock
28756 #: ../tools/virt-edit.pl:52
28757 msgid ""
28758 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
28759 "the named virtual machine (or disk image)."
28760 msgstr ""
28761
28762 #. type: textblock
28763 #: ../tools/virt-edit.pl:55
28764 msgid "If you want to just view a file, use L<virt-cat(1)>."
28765 msgstr ""
28766
28767 #. type: textblock
28768 #: ../tools/virt-edit.pl:57
28769 msgid ""
28770 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
28771 "USING GUESTFISH> below)."
28772 msgstr ""
28773
28774 #. type: textblock
28775 #: ../tools/virt-edit.pl:60
28776 msgid ""
28777 "C<virt-edit> cannot be used to create a new file, nor to edit multiple "
28778 "files.  L<guestfish(1)> can do that and much more."
28779 msgstr ""
28780
28781 #. type: textblock
28782 #: ../tools/virt-edit.pl:65
28783 msgid "Edit the named files interactively:"
28784 msgstr ""
28785
28786 #. type: verbatim
28787 #: ../tools/virt-edit.pl:67
28788 #, no-wrap
28789 msgid ""
28790 " virt-edit mydomain /boot/grub/grub.conf\n"
28791 "\n"
28792 msgstr ""
28793
28794 #. type: verbatim
28795 #: ../tools/virt-edit.pl:69
28796 #, no-wrap
28797 msgid ""
28798 " virt-edit mydomain /etc/passwd\n"
28799 "\n"
28800 msgstr ""
28801
28802 #. type: textblock
28803 #: ../tools/virt-edit.pl:71
28804 msgid "For Windows guests, some Windows paths are understood:"
28805 msgstr ""
28806
28807 #. type: verbatim
28808 #: ../tools/virt-edit.pl:73
28809 #, no-wrap
28810 msgid ""
28811 " virt-edit mywindomain 'c:\\autoexec.bat'\n"
28812 "\n"
28813 msgstr ""
28814
28815 #. type: textblock
28816 #: ../tools/virt-edit.pl:75
28817 msgid ""
28818 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
28819 "below).  To change the init default level to 5:"
28820 msgstr ""
28821
28822 #. type: verbatim
28823 #: ../tools/virt-edit.pl:79
28824 #, no-wrap
28825 msgid ""
28826 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
28827 "\n"
28828 msgstr ""
28829
28830 #. type: textblock
28831 #: ../tools/virt-edit.pl:91 ../tools/virt-win-reg.pl:106
28832 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113
28833 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
28834 msgid "Display brief help."
28835 msgstr ""
28836
28837 #. type: textblock
28838 #: ../tools/virt-edit.pl:99 ../tools/virt-win-reg.pl:114
28839 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-tar.pl:121
28840 #: ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:72
28841 msgid "Display version number and exit."
28842 msgstr ""
28843
28844 #. type: =item
28845 #: ../tools/virt-edit.pl:105
28846 msgid "B<--backup extension> | B<-b extension>"
28847 msgstr ""
28848
28849 #. type: textblock
28850 #: ../tools/virt-edit.pl:107
28851 msgid ""
28852 "Create a backup of the original file I<in the guest disk image>.  The backup "
28853 "has the original filename with C<extension> added."
28854 msgstr ""
28855
28856 #. type: textblock
28857 #: ../tools/virt-edit.pl:110
28858 msgid ""
28859 "Usually the first character of C<extension> would be a dot C<.> so you would "
28860 "write:"
28861 msgstr ""
28862
28863 #. type: verbatim
28864 #: ../tools/virt-edit.pl:113
28865 #, no-wrap
28866 msgid ""
28867 " virt-edit -b .orig [etc]\n"
28868 "\n"
28869 msgstr ""
28870
28871 #. type: textblock
28872 #: ../tools/virt-edit.pl:115
28873 msgid "By default, no backup file is made."
28874 msgstr ""
28875
28876 #. type: =item
28877 #: ../tools/virt-edit.pl:121 ../tools/virt-win-reg.pl:128
28878 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127
28879 #: ../tools/virt-list-partitions.pl:78
28880 msgid "B<--connect URI> | B<-c URI>"
28881 msgstr ""
28882
28883 #. type: textblock
28884 #: ../tools/virt-edit.pl:123 ../tools/virt-win-reg.pl:130
28885 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129
28886 #: ../tools/virt-list-partitions.pl:80
28887 msgid ""
28888 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
28889 "to the default libvirt hypervisor."
28890 msgstr ""
28891
28892 #. type: textblock
28893 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:133
28894 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132
28895 #: ../tools/virt-list-partitions.pl:83
28896 msgid ""
28897 "If you specify guest block devices directly, then libvirt is not used at all."
28898 msgstr ""
28899
28900 #. type: =item
28901 #: ../tools/virt-edit.pl:133 ../tools/virt-win-reg.pl:140
28902 #: ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:139
28903 #: ../tools/virt-list-partitions.pl:90
28904 msgid "B<--format> raw"
28905 msgstr ""
28906
28907 #. type: textblock
28908 #: ../tools/virt-edit.pl:135 ../tools/virt-win-reg.pl:142
28909 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141
28910 #: ../tools/virt-list-partitions.pl:92
28911 msgid ""
28912 "Specify the format of disk images given on the command line.  If this is "
28913 "omitted then the format is autodetected from the content of the disk image."
28914 msgstr ""
28915
28916 #. type: textblock
28917 #: ../tools/virt-edit.pl:139 ../tools/virt-win-reg.pl:146
28918 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145
28919 #: ../tools/virt-list-partitions.pl:96
28920 msgid ""
28921 "If disk images are requested from libvirt, then this program asks libvirt "
28922 "for this information.  In this case, the value of the format parameter is "
28923 "ignored."
28924 msgstr ""
28925
28926 #. type: textblock
28927 #: ../tools/virt-edit.pl:143 ../tools/virt-win-reg.pl:150
28928 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149
28929 #: ../tools/virt-list-partitions.pl:100
28930 msgid ""
28931 "If working with untrusted raw-format guest disk images, you should ensure "
28932 "the format is always specified."
28933 msgstr ""
28934
28935 #. type: =item
28936 #: ../tools/virt-edit.pl:150
28937 msgid "B<--expr EXPR> | B<-e EXPR>"
28938 msgstr ""
28939
28940 #. type: textblock
28941 #: ../tools/virt-edit.pl:152
28942 msgid ""
28943 "Instead of launching the external editor, non-interactively apply the Perl "
28944 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
28945 "EDITING> below."
28946 msgstr ""
28947
28948 #. type: textblock
28949 #: ../tools/virt-edit.pl:156
28950 msgid ""
28951 "Be careful to properly quote the expression to prevent it from being altered "
28952 "by the shell."
28953 msgstr ""
28954
28955 #. type: =head1
28956 #: ../tools/virt-edit.pl:280
28957 msgid "NON-INTERACTIVE EDITING"
28958 msgstr ""
28959
28960 #. type: textblock
28961 #: ../tools/virt-edit.pl:282
28962 msgid ""
28963 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
28964 "administrator can interactively edit the file."
28965 msgstr ""
28966
28967 #. type: textblock
28968 #: ../tools/virt-edit.pl:285
28969 msgid ""
28970 "There are two ways also to use C<virt-edit> from scripts in order to make "
28971 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
28972 "like this, it's less error-prone to write scripts directly using the "
28973 "libguestfs API and Augeas for configuration file editing.)"
28974 msgstr ""
28975
28976 #. type: textblock
28977 #: ../tools/virt-edit.pl:291
28978 msgid ""
28979 "The first method is to temporarily set C<$EDITOR> to any script or program "
28980 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
28981 "update C<tmpfile> in place however it likes."
28982 msgstr ""
28983
28984 #. type: textblock
28985 #: ../tools/virt-edit.pl:295
28986 msgid ""
28987 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
28988 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
28989 "instances of C<foo> with C<bar> in a file:"
28990 msgstr ""
28991
28992 #. type: verbatim
28993 #: ../tools/virt-edit.pl:299
28994 #, no-wrap
28995 msgid ""
28996 " virt-edit domname filename -e 's/foo/bar/'\n"
28997 "\n"
28998 msgstr ""
28999
29000 #. type: textblock
29001 #: ../tools/virt-edit.pl:301
29002 msgid ""
29003 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
29004 "For example to delete root's password you could do:"
29005 msgstr ""
29006
29007 #. type: verbatim
29008 #: ../tools/virt-edit.pl:304
29009 #, no-wrap
29010 msgid ""
29011 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
29012 "\n"
29013 msgstr ""
29014
29015 #. type: textblock
29016 #: ../tools/virt-edit.pl:306
29017 msgid ""
29018 "What really happens is that the snippet is evaluated as a Perl expression "
29019 "for each line of the file.  The line, including the final C<\\n>, is passed "
29020 "in C<$_> and the expression should update C<$_> or leave it unchanged."
29021 msgstr ""
29022
29023 #. type: textblock
29024 #: ../tools/virt-edit.pl:311
29025 msgid ""
29026 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
29027 "C<apache> user account from the password file you can do:"
29028 msgstr ""
29029
29030 #. type: verbatim
29031 #: ../tools/virt-edit.pl:314
29032 #, no-wrap
29033 msgid ""
29034 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
29035 "\n"
29036 msgstr ""
29037
29038 #. type: textblock
29039 #: ../tools/virt-edit.pl:316
29040 msgid ""
29041 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
29042 "the end of the file is rather difficult this way since there is no concept "
29043 "of \"last line of the file\" - your expression just doesn't get called "
29044 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
29045 "want to do this."
29046 msgstr ""
29047
29048 #. type: textblock
29049 #: ../tools/virt-edit.pl:322
29050 msgid ""
29051 "The variable C<$lineno> contains the current line number.  As is "
29052 "traditional, the first line in the file is number C<1>."
29053 msgstr ""
29054
29055 #. type: textblock
29056 #: ../tools/virt-edit.pl:325
29057 msgid ""
29058 "The return value from the expression is ignored, but the expression may call "
29059 "C<die> in order to abort the whole program, leaving the original file "
29060 "untouched."
29061 msgstr ""
29062
29063 #. type: textblock
29064 #: ../tools/virt-edit.pl:329
29065 msgid ""
29066 "Remember when matching the end of a line that C<$_> may contain the final C<"
29067 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
29068 "newline then neither of these.  Thus to match or substitute some text at the "
29069 "end of a line, use this regular expression:"
29070 msgstr ""
29071
29072 #. type: verbatim
29073 #: ../tools/virt-edit.pl:334
29074 #, no-wrap
29075 msgid ""
29076 " /some text(\\r?\\n)?$/\n"
29077 "\n"
29078 msgstr ""
29079
29080 #. type: textblock
29081 #: ../tools/virt-edit.pl:336
29082 msgid ""
29083 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
29084 "$_> itself (since that would remove all newlines from the file):"
29085 msgstr ""
29086
29087 #. type: verbatim
29088 #: ../tools/virt-edit.pl:340
29089 #, no-wrap
29090 msgid ""
29091 " my $m = $_; chomp $m; $m =~ /some text$/\n"
29092 "\n"
29093 msgstr ""
29094
29095 #. type: textblock
29096 #: ../tools/virt-edit.pl:344
29097 msgid ""
29098 "C<virt-edit> has a limited ability to understand Windows drive letters and "
29099 "paths (eg. C<E:\\foo\\bar.txt>)."
29100 msgstr ""
29101
29102 #. type: textblock
29103 #: ../tools/virt-edit.pl:347
29104 msgid "If and only if the guest is running Windows then:"
29105 msgstr ""
29106
29107 #. type: textblock
29108 #: ../tools/virt-edit.pl:353
29109 msgid ""
29110 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
29111 "to the correct filesystem."
29112 msgstr ""
29113
29114 #. type: textblock
29115 #: ../tools/virt-edit.pl:358
29116 msgid ""
29117 "Any backslash (C<\\>) characters in the path are replaced with forward "
29118 "slashes so that libguestfs can process it."
29119 msgstr ""
29120
29121 #. type: textblock
29122 #: ../tools/virt-edit.pl:363
29123 msgid ""
29124 "The path is resolved case insensitively to locate the file that should be "
29125 "edited."
29126 msgstr ""
29127
29128 #. type: textblock
29129 #: ../tools/virt-edit.pl:368
29130 msgid "There are some known shortcomings:"
29131 msgstr ""
29132
29133 #. type: textblock
29134 #: ../tools/virt-edit.pl:374
29135 msgid "Some NTFS symbolic links may not be followed correctly."
29136 msgstr ""
29137
29138 #. type: textblock
29139 #: ../tools/virt-edit.pl:378
29140 msgid "NTFS junction points that cross filesystems are not followed."
29141 msgstr ""
29142
29143 #. type: =head1
29144 #: ../tools/virt-edit.pl:435
29145 msgid "USING GUESTFISH"
29146 msgstr ""
29147
29148 #. type: textblock
29149 #: ../tools/virt-edit.pl:437
29150 msgid ""
29151 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
29152 "C<virt-edit> doesn't work."
29153 msgstr ""
29154
29155 #. type: textblock
29156 #: ../tools/virt-edit.pl:440
29157 msgid "Using C<virt-edit> is approximately equivalent to doing:"
29158 msgstr ""
29159
29160 #. type: verbatim
29161 #: ../tools/virt-edit.pl:442
29162 #, no-wrap
29163 msgid ""
29164 " guestfish --rw -i -d domname edit /file\n"
29165 "\n"
29166 msgstr ""
29167
29168 #. type: textblock
29169 #: ../tools/virt-edit.pl:444
29170 msgid ""
29171 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
29172 "path to the file."
29173 msgstr ""
29174
29175 #. type: textblock
29176 #: ../tools/virt-edit.pl:447
29177 msgid ""
29178 "The command above uses libguestfs's guest inspection feature and so does not "
29179 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
29180 "disk images that don't contain guests.  To edit a file on a disk image "
29181 "directly, use:"
29182 msgstr ""
29183
29184 #. type: verbatim
29185 #: ../tools/virt-edit.pl:452
29186 #, no-wrap
29187 msgid ""
29188 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
29189 "\n"
29190 msgstr ""
29191
29192 #. type: textblock
29193 #: ../tools/virt-edit.pl:454
29194 msgid ""
29195 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
29196 "the disk image to edit, and C</file> is the full path to the file."
29197 msgstr ""
29198
29199 #. type: textblock
29200 #: ../tools/virt-edit.pl:458
29201 msgid ""
29202 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
29203 "C<write> or C<upload> instead:"
29204 msgstr ""
29205
29206 #. type: verbatim
29207 #: ../tools/virt-edit.pl:461
29208 #, no-wrap
29209 msgid ""
29210 " guestfish --rw -i -d domname touch /newfile\n"
29211 "\n"
29212 msgstr ""
29213
29214 #. type: verbatim
29215 #: ../tools/virt-edit.pl:463
29216 #, no-wrap
29217 msgid ""
29218 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
29219 "\n"
29220 msgstr ""
29221
29222 #. type: verbatim
29223 #: ../tools/virt-edit.pl:465
29224 #, no-wrap
29225 msgid ""
29226 " guestfish --rw -i -d domname upload localfile /newfile\n"
29227 "\n"
29228 msgstr ""
29229
29230 #. type: textblock
29231 #: ../tools/virt-edit.pl:467
29232 msgid ""
29233 "C<virt-edit> cannot edit multiple files, but guestfish can do it like this:"
29234 msgstr ""
29235
29236 #. type: verbatim
29237 #: ../tools/virt-edit.pl:470
29238 #, no-wrap
29239 msgid ""
29240 " guestfish --rw -i -d domname edit /file1 : edit /file2\n"
29241 "\n"
29242 msgstr ""
29243
29244 #. type: =item
29245 #: ../tools/virt-edit.pl:480
29246 msgid "C<EDITOR>"
29247 msgstr ""
29248
29249 #. type: textblock
29250 #: ../tools/virt-edit.pl:482
29251 msgid ""
29252 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
29253 "\"emacs -nw\">"
29254 msgstr ""
29255
29256 #. type: textblock
29257 #: ../tools/virt-edit.pl:485
29258 msgid "If not set, C<vi> is used."
29259 msgstr ""
29260
29261 #. type: =head1
29262 #: ../tools/virt-edit.pl:489 ../tools/virt-win-reg.pl:559
29263 #: ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:279
29264 #: ../tools/virt-make-fs.pl:532 ../tools/virt-list-partitions.pl:250
29265 msgid "SHELL QUOTING"
29266 msgstr ""
29267
29268 #. type: textblock
29269 #: ../tools/virt-edit.pl:491 ../tools/virt-win-reg.pl:567
29270 #: ../tools/virt-list-filesystems.pl:184 ../tools/virt-tar.pl:281
29271 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:252
29272 msgid ""
29273 "Libvirt guest names can contain arbitrary characters, some of which have "
29274 "meaning to the shell such as C<#> and space.  You may need to quote or "
29275 "escape these characters on the command line.  See the shell manual page L<sh"
29276 "(1)> for details."
29277 msgstr ""
29278
29279 #. type: textblock
29280 #: ../tools/virt-edit.pl:498
29281 msgid ""
29282 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
29283 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
29284 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
29285 msgstr ""
29286
29287 #. type: =head1
29288 #: ../tools/virt-edit.pl:510 ../tools/virt-win-reg.pl:598
29289 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:301
29290 #: ../tools/virt-make-fs.pl:564 ../tools/virt-list-partitions.pl:269
29291 msgid "AUTHOR"
29292 msgstr ""
29293
29294 #. type: textblock
29295 #: ../tools/virt-edit.pl:512 ../tools/virt-win-reg.pl:600
29296 #: ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:303
29297 #: ../tools/virt-make-fs.pl:566 ../tools/virt-list-partitions.pl:271
29298 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
29299 msgstr ""
29300
29301 #. type: textblock
29302 #: ../tools/virt-edit.pl:516
29303 msgid "Copyright (C) 2009-2011 Red Hat Inc."
29304 msgstr ""
29305
29306 #. type: textblock
29307 #: ../tools/virt-win-reg.pl:37
29308 msgid ""
29309 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
29310 msgstr ""
29311
29312 #. type: verbatim
29313 #: ../tools/virt-win-reg.pl:41
29314 #, no-wrap
29315 msgid ""
29316 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
29317 "\n"
29318 msgstr ""
29319
29320 #. type: verbatim
29321 #: ../tools/virt-win-reg.pl:43
29322 #, no-wrap
29323 msgid ""
29324 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
29325 "\n"
29326 msgstr ""
29327
29328 #. type: verbatim
29329 #: ../tools/virt-win-reg.pl:45
29330 #, no-wrap
29331 msgid ""
29332 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
29333 "\n"
29334 msgstr ""
29335
29336 #. type: verbatim
29337 #: ../tools/virt-win-reg.pl:47
29338 #, no-wrap
29339 msgid ""
29340 " virt-win-reg --merge domname [input.reg ...]\n"
29341 "\n"
29342 msgstr ""
29343
29344 #. type: verbatim
29345 #: ../tools/virt-win-reg.pl:49
29346 #, no-wrap
29347 msgid ""
29348 " virt-win-reg [--options] disk.img ... # instead of domname\n"
29349 "\n"
29350 msgstr ""
29351
29352 #. type: textblock
29353 #: ../tools/virt-win-reg.pl:53
29354 msgid ""
29355 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
29356 "virtual machines.  If you do this, you I<will> get irreversible disk "
29357 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
29358 "but doesn't catch all cases."
29359 msgstr ""
29360
29361 #. type: textblock
29362 #: ../tools/virt-win-reg.pl:58
29363 msgid ""
29364 "Modifying the Windows Registry is an inherently risky operation.  The format "
29365 "is deliberately obscure and undocumented, and Registry changes can leave the "
29366 "system unbootable.  Therefore when using the C<--merge> option, make sure "
29367 "you have a reliable backup first."
29368 msgstr ""
29369
29370 #. type: textblock
29371 #: ../tools/virt-win-reg.pl:65
29372 msgid ""
29373 "This program can export and merge Windows Registry entries from a Windows "
29374 "guest."
29375 msgstr ""
29376
29377 #. type: textblock
29378 #: ../tools/virt-win-reg.pl:68
29379 msgid ""
29380 "The first parameter is the libvirt guest name or the raw disk image of a "
29381 "Windows guest."
29382 msgstr ""
29383
29384 #. type: textblock
29385 #: ../tools/virt-win-reg.pl:71
29386 msgid ""
29387 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
29388 "exported (recursively).  For example:"
29389 msgstr ""
29390
29391 #. type: verbatim
29392 #: ../tools/virt-win-reg.pl:74
29393 #, no-wrap
29394 msgid ""
29395 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
29396 "\n"
29397 msgstr ""
29398
29399 #. type: textblock
29400 #: ../tools/virt-win-reg.pl:76
29401 msgid ""
29402 "You can also display single values from within registry keys, for example:"
29403 msgstr ""
29404
29405 #. type: verbatim
29406 #: ../tools/virt-win-reg.pl:79
29407 #, no-wrap
29408 msgid ""
29409 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
29410 " $ virt-win-reg Windows7 $cvkey ProductName\n"
29411 " Windows 7 Enterprise\n"
29412 "\n"
29413 msgstr ""
29414
29415 #. type: textblock
29416 #: ../tools/virt-win-reg.pl:83
29417 msgid ""
29418 "With C<--merge>, you can merge a textual regedit file into the Windows "
29419 "Registry:"
29420 msgstr ""
29421
29422 #. type: verbatim
29423 #: ../tools/virt-win-reg.pl:86
29424 #, no-wrap
29425 msgid ""
29426 " $ virt-win-reg --merge Windows7 changes.reg\n"
29427 "\n"
29428 msgstr ""
29429
29430 #. type: =head1
29431 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
29432 msgid "NOTE"
29433 msgstr ""
29434
29435 #. type: textblock
29436 #: ../tools/virt-win-reg.pl:90
29437 msgid ""
29438 "This program is only meant for simple access to the registry.  If you want "
29439 "to do complicated things with the registry, we suggest you download the "
29440 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
29441 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
29442 "L<hivexregedit(1)>."
29443 msgstr ""
29444
29445 #. type: =item
29446 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
29447 msgid "B<--debug>"
29448 msgstr ""
29449
29450 #. type: textblock
29451 #: ../tools/virt-win-reg.pl:122
29452 msgid "Enable debugging messages."
29453 msgstr ""
29454
29455 #. type: =item
29456 #: ../tools/virt-win-reg.pl:157
29457 msgid "B<--merge>"
29458 msgstr ""
29459
29460 #. type: textblock
29461 #: ../tools/virt-win-reg.pl:159
29462 msgid ""
29463 "In merge mode, this merges a textual regedit file into the Windows Registry "
29464 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
29465 "displays or exports Registry entries instead."
29466 msgstr ""
29467
29468 #. type: textblock
29469 #: ../tools/virt-win-reg.pl:163
29470 msgid ""
29471 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
29472 "result in disk corruption.  However exporting (without this flag)  is always "
29473 "safe."
29474 msgstr ""
29475
29476 #. type: =item
29477 #: ../tools/virt-win-reg.pl:171
29478 msgid "B<--encoding> UTF-16LE|ASCII"
29479 msgstr ""
29480
29481 #. type: textblock
29482 #: ../tools/virt-win-reg.pl:173
29483 msgid ""
29484 "When merging (only), you may need to specify the encoding for strings to be "
29485 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
29486 "(3)/ENCODING STRINGS>."
29487 msgstr ""
29488
29489 #. type: textblock
29490 #: ../tools/virt-win-reg.pl:177
29491 msgid ""
29492 "The default is to use UTF-16LE, which should work with recent versions of "
29493 "Windows."
29494 msgstr ""
29495
29496 #. type: =head1
29497 #: ../tools/virt-win-reg.pl:402
29498 msgid "SUPPORTED SYSTEMS"
29499 msgstr ""
29500
29501 #. type: textblock
29502 #: ../tools/virt-win-reg.pl:404
29503 msgid ""
29504 "The program currently supports Windows NT-derived guests starting with "
29505 "Windows XP through to at least Windows 7."
29506 msgstr ""
29507
29508 #. type: textblock
29509 #: ../tools/virt-win-reg.pl:407
29510 msgid ""
29511 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
29512 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
29513 "and C<HKEY_USERS\\.DEFAULT>."
29514 msgstr ""
29515
29516 #. type: textblock
29517 #: ../tools/virt-win-reg.pl:411
29518 msgid ""
29519 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
29520 "C<HKEY_USERS>."
29521 msgstr ""
29522
29523 #. type: textblock
29524 #: ../tools/virt-win-reg.pl:414
29525 msgid ""
29526 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
29527 "time."
29528 msgstr ""
29529
29530 #. type: =head1
29531 #: ../tools/virt-win-reg.pl:417
29532 msgid "ENCODING"
29533 msgstr ""
29534
29535 #. type: textblock
29536 #: ../tools/virt-win-reg.pl:419
29537 msgid ""
29538 "C<virt-win-reg> expects that regedit files have already been reencoded in "
29539 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
29540 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
29541 "Windows-style line endings, you may need to reencode the whole file before "
29542 "or after processing."
29543 msgstr ""
29544
29545 #. type: textblock
29546 #: ../tools/virt-win-reg.pl:425
29547 msgid ""
29548 "To reencode a file from Windows format to Linux (before processing it with "
29549 "the C<--merge> option), you would do something like this:"
29550 msgstr ""
29551
29552 #. type: verbatim
29553 #: ../tools/virt-win-reg.pl:428
29554 #, no-wrap
29555 msgid ""
29556 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
29557 "\n"
29558 msgstr ""
29559
29560 #. type: textblock
29561 #: ../tools/virt-win-reg.pl:430
29562 msgid ""
29563 "To go in the opposite direction, after exporting and before sending the file "
29564 "to a Windows user, do something like this:"
29565 msgstr ""
29566
29567 #. type: verbatim
29568 #: ../tools/virt-win-reg.pl:433
29569 #, no-wrap
29570 msgid ""
29571 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
29572 "\n"
29573 msgstr ""
29574
29575 #. type: textblock
29576 #: ../tools/virt-win-reg.pl:435
29577 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
29578 msgstr ""
29579
29580 #. type: textblock
29581 #: ../tools/virt-win-reg.pl:437
29582 msgid ""
29583 "If you are unsure about the current encoding, use the L<file(1)> command.  "
29584 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
29585 "style (CRLF) line endings, like this:"
29586 msgstr ""
29587
29588 #. type: verbatim
29589 #: ../tools/virt-win-reg.pl:441
29590 #, no-wrap
29591 msgid ""
29592 " $ file software.reg\n"
29593 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
29594 " with CRLF line terminators\n"
29595 "\n"
29596 msgstr ""
29597
29598 #. type: textblock
29599 #: ../tools/virt-win-reg.pl:445
29600 msgid "This file would need conversion before you could C<--merge> it."
29601 msgstr ""
29602
29603 #. type: =head1
29604 #: ../tools/virt-win-reg.pl:447
29605 msgid "CurrentControlSet etc."
29606 msgstr ""
29607
29608 #. type: textblock
29609 #: ../tools/virt-win-reg.pl:449
29610 msgid ""
29611 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
29612 "Registry at the level of the hive file, and therefore you cannot modify "
29613 "these."
29614 msgstr ""
29615
29616 #. type: textblock
29617 #: ../tools/virt-win-reg.pl:453
29618 msgid ""
29619 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
29620 "circumstances it might refer to another control set.  The way to find out is "
29621 "to look at the C<HKLM\\SYSTEM\\Select> key:"
29622 msgstr ""
29623
29624 #. type: verbatim
29625 #: ../tools/virt-win-reg.pl:457
29626 #, no-wrap
29627 msgid ""
29628 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
29629 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
29630 " \"Current\"=dword:00000001\n"
29631 " \"Default\"=dword:00000001\n"
29632 " \"Failed\"=dword:00000000\n"
29633 " \"LastKnownGood\"=dword:00000002\n"
29634 "\n"
29635 msgstr ""
29636
29637 #. type: textblock
29638 #: ../tools/virt-win-reg.pl:464
29639 msgid "\"Current\" is the one which Windows will choose when it boots."
29640 msgstr ""
29641
29642 #. type: textblock
29643 #: ../tools/virt-win-reg.pl:466
29644 msgid ""
29645 "Similarly, other C<Current...> keys in the path may need to be replaced."
29646 msgstr ""
29647
29648 #. type: =head1
29649 #: ../tools/virt-win-reg.pl:469
29650 msgid "WINDOWS TIPS"
29651 msgstr ""
29652
29653 #. type: textblock
29654 #: ../tools/virt-win-reg.pl:471
29655 msgid ""
29656 "Note that some of these tips modify the guest disk image.  The guest I<must> "
29657 "be shut off, else you will get disk corruption."
29658 msgstr ""
29659
29660 #. type: =head2
29661 #: ../tools/virt-win-reg.pl:474
29662 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
29663 msgstr ""
29664
29665 #. type: textblock
29666 #: ../tools/virt-win-reg.pl:476
29667 msgid ""
29668 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
29669 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
29670 "is uploaded into C<C:\\>:"
29671 msgstr ""
29672
29673 #. type: verbatim
29674 #: ../tools/virt-win-reg.pl:480
29675 #, no-wrap
29676 msgid ""
29677 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
29678 "\n"
29679 msgstr ""
29680
29681 #. type: textblock
29682 #: ../tools/virt-win-reg.pl:482
29683 msgid "Prepare a regedit file containing the registry change:"
29684 msgstr ""
29685
29686 #. type: verbatim
29687 #: ../tools/virt-win-reg.pl:484
29688 #, no-wrap
29689 msgid ""
29690 " cat > test.reg <<'EOF'\n"
29691 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
29692 " \"Test\"=\"c:\\\\test.bat\"\n"
29693 " EOF\n"
29694 "\n"
29695 msgstr ""
29696
29697 #. type: textblock
29698 #: ../tools/virt-win-reg.pl:489
29699 msgid ""
29700 "In this example we use the key C<RunOnce> which means that the script will "
29701 "run precisely once when the first user logs in.  If you want it to run every "
29702 "time a user logs in, replace C<RunOnce> with C<Run>."
29703 msgstr ""
29704
29705 #. type: textblock
29706 #: ../tools/virt-win-reg.pl:493
29707 msgid "Now update the registry:"
29708 msgstr ""
29709
29710 #. type: verbatim
29711 #: ../tools/virt-win-reg.pl:495
29712 #, no-wrap
29713 msgid ""
29714 " virt-win-reg --merge WindowsGuest test.reg\n"
29715 "\n"
29716 msgstr ""
29717
29718 #. type: =head2
29719 #: ../tools/virt-win-reg.pl:497
29720 msgid "INSTALLING A SERVICE"
29721 msgstr ""
29722
29723 #. type: textblock
29724 #: ../tools/virt-win-reg.pl:499
29725 msgid ""
29726 "This section assumes you are familiar with Windows services, and you either "
29727 "have a program which handles the Windows Service Control Protocol directly "
29728 "or you want to run any program using a service wrapper like SrvAny or the "
29729 "free RHSrvAny."
29730 msgstr ""
29731
29732 #. type: textblock
29733 #: ../tools/virt-win-reg.pl:504
29734 msgid ""
29735 "First upload the program and optionally the service wrapper.  In this case "
29736 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
29737 msgstr ""
29738
29739 #. type: verbatim
29740 #: ../tools/virt-win-reg.pl:508
29741 #, no-wrap
29742 msgid ""
29743 " guestfish -i -d WindowsGuest <<EOF\n"
29744 "   upload rhsrvany.exe /rhsrvany.exe\n"
29745 "   upload test.exe /test.exe\n"
29746 " EOF\n"
29747 "\n"
29748 msgstr ""
29749
29750 #. type: textblock
29751 #: ../tools/virt-win-reg.pl:513
29752 msgid ""
29753 "Prepare a regedit file containing the registry changes.  In this example, "
29754 "the first registry change is needed for the service itself or the service "
29755 "wrapper (if used).  The second registry change is only needed because I am "
29756 "using the RHSrvAny service wrapper."
29757 msgstr ""
29758
29759 #. type: verbatim
29760 #: ../tools/virt-win-reg.pl:518
29761 #, no-wrap
29762 msgid ""
29763 " cat > service.reg <<'EOF'\n"
29764 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
29765 " \"Type\"=dword:00000010\n"
29766 " \"Start\"=dword:00000002\n"
29767 " \"ErrorControl\"=dword:00000001\n"
29768 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
29769 " \"DisplayName\"=\"RHSrvAny\"\n"
29770 " \"ObjectName\"=\"NetworkService\"\n"
29771 " \n"
29772 msgstr ""
29773
29774 #. type: verbatim
29775 #: ../tools/virt-win-reg.pl:527
29776 #, no-wrap
29777 msgid ""
29778 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
29779 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
29780 " \"PWD\"=\"c:\\\\Temp\"\n"
29781 " EOF\n"
29782 "\n"
29783 msgstr ""
29784
29785 #. type: textblock
29786 #: ../tools/virt-win-reg.pl:538
29787 msgid ""
29788 "For use of C<ControlSet001> see the section above in this manual page.  You "
29789 "may need to adjust this according to the control set that is in use by the "
29790 "guest."
29791 msgstr ""
29792
29793 #. type: textblock
29794 #: ../tools/virt-win-reg.pl:544
29795 msgid ""
29796 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
29797 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
29798 "privileged account."
29799 msgstr ""
29800
29801 #. type: textblock
29802 #: ../tools/virt-win-reg.pl:550
29803 msgid ""
29804 "For the meaning of the magic numbers, see this Microsoft KB article: "
29805 "L<http://support.microsoft.com/kb/103000>."
29806 msgstr ""
29807
29808 #. type: textblock
29809 #: ../tools/virt-win-reg.pl:555
29810 msgid "Update the registry:"
29811 msgstr ""
29812
29813 #. type: verbatim
29814 #: ../tools/virt-win-reg.pl:557
29815 #, no-wrap
29816 msgid ""
29817 " virt-win-reg --merge WindowsGuest service.reg\n"
29818 "\n"
29819 msgstr ""
29820
29821 #. type: textblock
29822 #: ../tools/virt-win-reg.pl:561
29823 msgid ""
29824 "Be careful when passing parameters containing C<\\> (backslash) in the "
29825 "shell.  Usually you will have to use 'single quotes' or double backslashes "
29826 "(but not both) to protect them from the shell."
29827 msgstr ""
29828
29829 #. type: textblock
29830 #: ../tools/virt-win-reg.pl:565
29831 msgid "Paths and value names are case-insensitive."
29832 msgstr ""
29833
29834 #. type: textblock
29835 #: ../tools/virt-win-reg.pl:574
29836 msgid ""
29837 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
29838 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
29839 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29840 msgstr ""
29841
29842 #. type: textblock
29843 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:555
29844 msgid ""
29845 "When reporting bugs, please enable debugging and capture the I<complete> "
29846 "output:"
29847 msgstr ""
29848
29849 #. type: verbatim
29850 #: ../tools/virt-win-reg.pl:592
29851 #, no-wrap
29852 msgid ""
29853 " export LIBGUESTFS_DEBUG=1\n"
29854 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
29855 "\n"
29856 msgstr ""
29857
29858 #. type: textblock
29859 #: ../tools/virt-win-reg.pl:595
29860 msgid ""
29861 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
29862 "redhat.com/>"
29863 msgstr ""
29864
29865 #. type: textblock
29866 #: ../tools/virt-win-reg.pl:604 ../tools/virt-make-fs.pl:570
29867 msgid "Copyright (C) 2010 Red Hat Inc."
29868 msgstr ""
29869
29870 #. type: textblock
29871 #: ../tools/virt-list-filesystems.pl:32
29872 msgid ""
29873 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
29874 msgstr ""
29875
29876 #. type: verbatim
29877 #: ../tools/virt-list-filesystems.pl:36
29878 #, no-wrap
29879 msgid ""
29880 " virt-list-filesystems [--options] domname\n"
29881 "\n"
29882 msgstr ""
29883
29884 #. type: verbatim
29885 #: ../tools/virt-list-filesystems.pl:38
29886 #, no-wrap
29887 msgid ""
29888 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
29889 "\n"
29890 msgstr ""
29891
29892 #. type: textblock
29893 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
29894 msgid ""
29895 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
29896 "replacement."
29897 msgstr ""
29898
29899 #. type: textblock
29900 #: ../tools/virt-list-filesystems.pl:45
29901 msgid ""
29902 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
29903 "are contained in a virtual machine or disk image."
29904 msgstr ""
29905
29906 #. type: textblock
29907 #: ../tools/virt-list-filesystems.pl:49
29908 msgid ""
29909 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
29910 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29911 "> tool."
29912 msgstr ""
29913
29914 #. type: =item
29915 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
29916 msgid "B<-l> | B<--long>"
29917 msgstr ""
29918
29919 #. type: textblock
29920 #: ../tools/virt-list-filesystems.pl:108
29921 msgid ""
29922 "With this option, C<virt-list-filesystems> displays the type of each "
29923 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
29924 msgstr ""
29925
29926 #. type: =item
29927 #: ../tools/virt-list-filesystems.pl:115
29928 msgid "B<-a> | B<--all>"
29929 msgstr ""
29930
29931 #. type: textblock
29932 #: ../tools/virt-list-filesystems.pl:117
29933 msgid ""
29934 "Normally we only show mountable filesystems.  If this option is given then "
29935 "swap devices are shown too."
29936 msgstr ""
29937
29938 #. type: textblock
29939 #: ../tools/virt-list-filesystems.pl:191
29940 msgid ""
29941 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
29942 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
29943 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29944 msgstr ""
29945
29946 #. type: textblock
29947 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
29948 msgid "Copyright (C) 2009 Red Hat Inc."
29949 msgstr ""
29950
29951 #. type: textblock
29952 #: ../tools/virt-tar.pl:33
29953 msgid "virt-tar - Extract or upload files to a virtual machine"
29954 msgstr ""
29955
29956 #. type: verbatim
29957 #: ../tools/virt-tar.pl:37
29958 #, no-wrap
29959 msgid ""
29960 " virt-tar [--options] -x domname directory tarball\n"
29961 "\n"
29962 msgstr ""
29963
29964 #. type: verbatim
29965 #: ../tools/virt-tar.pl:39
29966 #, no-wrap
29967 msgid ""
29968 " virt-tar [--options] -u domname tarball directory\n"
29969 "\n"
29970 msgstr ""
29971
29972 #. type: verbatim
29973 #: ../tools/virt-tar.pl:41
29974 #, no-wrap
29975 msgid ""
29976 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
29977 "\n"
29978 msgstr ""
29979
29980 #. type: verbatim
29981 #: ../tools/virt-tar.pl:43
29982 #, no-wrap
29983 msgid ""
29984 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
29985 "\n"
29986 msgstr ""
29987
29988 #. type: textblock
29989 #: ../tools/virt-tar.pl:47
29990 msgid ""
29991 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
29992 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
29993 msgstr ""
29994
29995 #. type: textblock
29996 #: ../tools/virt-tar.pl:52
29997 msgid "Download C</home> from the VM into a local tarball:"
29998 msgstr ""
29999
30000 #. type: verbatim
30001 #: ../tools/virt-tar.pl:54
30002 #, no-wrap
30003 msgid ""
30004 " virt-tar -x domname /home home.tar\n"
30005 "\n"
30006 msgstr ""
30007
30008 #. type: verbatim
30009 #: ../tools/virt-tar.pl:56
30010 #, no-wrap
30011 msgid ""
30012 " virt-tar -zx domname /home home.tar.gz\n"
30013 "\n"
30014 msgstr ""
30015
30016 #. type: textblock
30017 #: ../tools/virt-tar.pl:58
30018 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
30019 msgstr ""
30020
30021 #. type: verbatim
30022 #: ../tools/virt-tar.pl:60
30023 #, no-wrap
30024 msgid ""
30025 " virt-tar -u domname uploadstuff.tar /tmp\n"
30026 "\n"
30027 msgstr ""
30028
30029 #. type: verbatim
30030 #: ../tools/virt-tar.pl:62
30031 #, no-wrap
30032 msgid ""
30033 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
30034 "\n"
30035 msgstr ""
30036
30037 #. type: textblock
30038 #: ../tools/virt-tar.pl:66
30039 msgid ""
30040 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
30041 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
30042 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
30043 msgstr ""
30044
30045 #. type: textblock
30046 #: ../tools/virt-tar.pl:71
30047 msgid ""
30048 "You can use C<-x> (extract) on live virtual machines, but you might get "
30049 "inconsistent results or errors if there is filesystem activity inside the "
30050 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
30051 "work, but the only way to guarantee consistent results is if the virtual "
30052 "machine is shut down."
30053 msgstr ""
30054
30055 #. type: textblock
30056 #: ../tools/virt-tar.pl:79
30057 msgid ""
30058 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
30059 "parts of a guest filesystem.  There are many possibilities: making backups, "
30060 "uploading data files, snooping on guest activity, fixing or customizing "
30061 "guests, etc."
30062 msgstr ""
30063
30064 #. type: textblock
30065 #: ../tools/virt-tar.pl:84
30066 msgid ""
30067 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
30068 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
30069 "should look at the L<guestfish(1)> tool."
30070 msgstr ""
30071
30072 #. type: textblock
30073 #: ../tools/virt-tar.pl:88
30074 msgid ""
30075 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
30076 "its contents (recursively) from the virtual machine into a local tarball.  "
30077 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
30078 "virtual machine.  You cannot use these two options together."
30079 msgstr ""
30080
30081 #. type: textblock
30082 #: ../tools/virt-tar.pl:94
30083 msgid ""
30084 "In addition, you may need to use the C<-z> (gZip) option to enable "
30085 "compression.  When uploading, you have to specify C<-z> if the upload file "
30086 "is compressed because virt-tar won't detect this on its own."
30087 msgstr ""
30088
30089 #. type: textblock
30090 #: ../tools/virt-tar.pl:98
30091 msgid ""
30092 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
30093 "example it cannot do PKZip files or bzip2 compression.  If you want that "
30094 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
30095 "the L<libguestfs(3)> API)."
30096 msgstr ""
30097
30098 #. type: =item
30099 #: ../tools/virt-tar.pl:156
30100 msgid "B<-x> | B<--extract> | B<--download>"
30101 msgstr ""
30102
30103 #. type: =item
30104 #: ../tools/virt-tar.pl:158
30105 msgid "B<-u> | B<--upload>"
30106 msgstr ""
30107
30108 #. type: textblock
30109 #: ../tools/virt-tar.pl:160
30110 msgid ""
30111 "Use C<-x> to extract (download) a directory from a virtual machine to a "
30112 "local tarball."
30113 msgstr ""
30114
30115 #. type: textblock
30116 #: ../tools/virt-tar.pl:163
30117 msgid ""
30118 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
30119 "Please read the L</WARNING> section above before using this option."
30120 msgstr ""
30121
30122 #. type: textblock
30123 #: ../tools/virt-tar.pl:167
30124 msgid "You must specify exactly one of these options."
30125 msgstr ""
30126
30127 #. type: =item
30128 #: ../tools/virt-tar.pl:173
30129 msgid "B<-z> | B<--gzip>"
30130 msgstr ""
30131
30132 #. type: textblock
30133 #: ../tools/virt-tar.pl:175
30134 msgid "Specify that the input or output tarball is gzip-compressed."
30135 msgstr ""
30136
30137 #. type: textblock
30138 #: ../tools/virt-tar.pl:288
30139 msgid ""
30140 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
30141 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
30142 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
30143 "org/>."
30144 msgstr ""
30145
30146 #. type: textblock
30147 #: ../tools/virt-make-fs.pl:37
30148 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
30149 msgstr ""
30150
30151 #. type: verbatim
30152 #: ../tools/virt-make-fs.pl:41
30153 #, no-wrap
30154 msgid ""
30155 " virt-make-fs [--options] input.tar output.img\n"
30156 "\n"
30157 msgstr ""
30158
30159 #. type: verbatim
30160 #: ../tools/virt-make-fs.pl:43
30161 #, no-wrap
30162 msgid ""
30163 " virt-make-fs [--options] input.tar.gz output.img\n"
30164 "\n"
30165 msgstr ""
30166
30167 #. type: verbatim
30168 #: ../tools/virt-make-fs.pl:45
30169 #, no-wrap
30170 msgid ""
30171 " virt-make-fs [--options] directory output.img\n"
30172 "\n"
30173 msgstr ""
30174
30175 #. type: textblock
30176 #: ../tools/virt-make-fs.pl:49
30177 msgid ""
30178 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
30179 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
30180 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
30181 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
30182 "you want to attach these filesystems to existing virtual machines (eg. to "
30183 "import large amounts of read-only data to a VM)."
30184 msgstr ""
30185
30186 #. type: textblock
30187 #: ../tools/virt-make-fs.pl:57
30188 msgid "Basic usage is:"
30189 msgstr ""
30190
30191 #. type: verbatim
30192 #: ../tools/virt-make-fs.pl:59
30193 #, no-wrap
30194 msgid ""
30195 " virt-make-fs input output\n"
30196 "\n"
30197 msgstr ""
30198
30199 #. type: textblock
30200 #: ../tools/virt-make-fs.pl:61
30201 msgid ""
30202 "where C<input> is either a directory containing files that you want to add, "
30203 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
30204 "C<output> is a disk image.  The input type is detected automatically.  The "
30205 "output disk image defaults to a raw ext2 image unless you specify extra "
30206 "flags (see L</OPTIONS> below)."
30207 msgstr ""
30208
30209 #. type: =head2
30210 #: ../tools/virt-make-fs.pl:67
30211 msgid "EXTRA SPACE"
30212 msgstr ""
30213
30214 #. type: textblock
30215 #: ../tools/virt-make-fs.pl:69
30216 msgid ""
30217 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
30218 "the files that it contains, but might have extra space.  Depending on how "
30219 "you are going to use the output, you might think this extra space is wasted "
30220 "and want to minimize it, or you might want to leave space so that more files "
30221 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
30222 "but you can use the C<--size> flag to leave space in the filesystem if you "
30223 "want it."
30224 msgstr ""
30225
30226 #. type: textblock
30227 #: ../tools/virt-make-fs.pl:77
30228 msgid ""
30229 "An alternative way to leave extra space but not make the output image any "
30230 "bigger is to use an alternative disk image format (instead of the default "
30231 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
30232 "image format (check your hypervisor supports this before using it).  This "
30233 "allows you to choose a large C<--size> but the extra space won't actually be "
30234 "allocated in the image until you try to store something in it."
30235 msgstr ""
30236
30237 #. type: textblock
30238 #: ../tools/virt-make-fs.pl:85
30239 msgid ""
30240 "Don't forget that you can also use local commands including L<resize2fs(8)> "
30241 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
30242 "to build another image from scratch."
30243 msgstr ""
30244
30245 #. type: =head3
30246 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
30247 #: ../tools/virt-make-fs.pl:142
30248 msgid "EXAMPLE"
30249 msgstr ""
30250
30251 #. type: verbatim
30252 #: ../tools/virt-make-fs.pl:91
30253 #, no-wrap
30254 msgid ""
30255 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
30256 "\n"
30257 msgstr ""
30258
30259 #. type: =head2
30260 #: ../tools/virt-make-fs.pl:93
30261 msgid "FILESYSTEM TYPE"
30262 msgstr ""
30263
30264 #. type: textblock
30265 #: ../tools/virt-make-fs.pl:95
30266 msgid ""
30267 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
30268 "libguestfs supports can be used (but I<not> read-only formats like "
30269 "ISO9660).  Here are some of the more common choices:"
30270 msgstr ""
30271
30272 #. type: =item
30273 #: ../tools/virt-make-fs.pl:101
30274 msgid "I<ext3>"
30275 msgstr ""
30276
30277 #. type: textblock
30278 #: ../tools/virt-make-fs.pl:103
30279 msgid ""
30280 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
30281 "you are not going to use the filesystem in a way that requires the journal, "
30282 "then this is just wasted overhead."
30283 msgstr ""
30284
30285 #. type: =item
30286 #: ../tools/virt-make-fs.pl:107
30287 msgid "I<ntfs> or I<vfat>"
30288 msgstr ""
30289
30290 #. type: textblock
30291 #: ../tools/virt-make-fs.pl:109
30292 msgid "Useful if exporting data to a Windows guest."
30293 msgstr ""
30294
30295 #. type: textblock
30296 #: ../tools/virt-make-fs.pl:111
30297 msgid ""
30298 "I<Note for vfat>: The tar archive or local directory must only contain files "
30299 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
30300 "program running within libguestfs is unable to change the ownership of non-"
30301 "root files, since vfat itself does not support this."
30302 msgstr ""
30303
30304 #. type: =item
30305 #: ../tools/virt-make-fs.pl:116
30306 msgid "I<minix>"
30307 msgstr ""
30308
30309 #. type: textblock
30310 #: ../tools/virt-make-fs.pl:118
30311 msgid ""
30312 "Lower overhead than C<ext2>, but certain limitations on filename length and "
30313 "total filesystem size."
30314 msgstr ""
30315
30316 #. type: verbatim
30317 #: ../tools/virt-make-fs.pl:125
30318 #, no-wrap
30319 msgid ""
30320 " virt-make-fs --type=minix input minixfs.img\n"
30321 "\n"
30322 msgstr ""
30323
30324 #. type: =head2
30325 #: ../tools/virt-make-fs.pl:127
30326 msgid "TO PARTITION OR NOT TO PARTITION"
30327 msgstr ""
30328
30329 #. type: textblock
30330 #: ../tools/virt-make-fs.pl:129
30331 msgid "Optionally virt-make-fs can add a partition table to the output disk."
30332 msgstr ""
30333
30334 #. type: textblock
30335 #: ../tools/virt-make-fs.pl:131
30336 msgid ""
30337 "Adding a partition can make the disk image more compatible with certain "
30338 "virtualized operating systems which don't expect to see a filesystem "
30339 "directly located on a block device (Linux doesn't care and will happily "
30340 "handle both types)."
30341 msgstr ""
30342
30343 #. type: textblock
30344 #: ../tools/virt-make-fs.pl:136
30345 msgid ""
30346 "On the other hand, if you have a partition table then the output image is no "
30347 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
30348 "directly on a partitioned disk image.  (However libguestfs tools such as "
30349 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
30350 msgstr ""
30351
30352 #. type: textblock
30353 #: ../tools/virt-make-fs.pl:144
30354 msgid "Add an MBR partition:"
30355 msgstr ""
30356
30357 #. type: verbatim
30358 #: ../tools/virt-make-fs.pl:146
30359 #, no-wrap
30360 msgid ""
30361 " virt-make-fs --partition -- input disk.img\n"
30362 "\n"
30363 msgstr ""
30364
30365 #. type: textblock
30366 #: ../tools/virt-make-fs.pl:148
30367 msgid ""
30368 "If the output disk image could be terabyte-sized or larger, it's better to "
30369 "use an EFI/GPT-compatible partition table:"
30370 msgstr ""
30371
30372 #. type: verbatim
30373 #: ../tools/virt-make-fs.pl:151
30374 #, no-wrap
30375 msgid ""
30376 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
30377 "\n"
30378 msgstr ""
30379
30380 #. type: textblock
30381 #: ../tools/virt-make-fs.pl:179
30382 msgid "Enable debugging information."
30383 msgstr ""
30384
30385 #. type: =item
30386 #: ../tools/virt-make-fs.pl:185
30387 msgid "B<--size=E<lt>NE<gt>>"
30388 msgstr ""
30389
30390 #. type: =item
30391 #: ../tools/virt-make-fs.pl:187
30392 msgid "B<--size=+E<lt>NE<gt>>"
30393 msgstr ""
30394
30395 #. type: =item
30396 #: ../tools/virt-make-fs.pl:189
30397 msgid "B<-s E<lt>NE<gt>>"
30398 msgstr ""
30399
30400 #. type: =item
30401 #: ../tools/virt-make-fs.pl:191
30402 msgid "B<-s +E<lt>NE<gt>>"
30403 msgstr ""
30404
30405 #. type: textblock
30406 #: ../tools/virt-make-fs.pl:193
30407 msgid ""
30408 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
30409 msgstr ""
30410
30411 #. type: textblock
30412 #: ../tools/virt-make-fs.pl:196
30413 msgid ""
30414 "If this option is I<not> given, then the output image will be just large "
30415 "enough to contain all the files, with not much wasted space."
30416 msgstr ""
30417
30418 #. type: textblock
30419 #: ../tools/virt-make-fs.pl:199
30420 msgid ""
30421 "To choose a fixed size output disk, specify an absolute number followed by b/"
30422 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30423 "Petabytes or Exabytes.  This must be large enough to contain all the input "
30424 "files, else you will get an error."
30425 msgstr ""
30426
30427 #. type: textblock
30428 #: ../tools/virt-make-fs.pl:204
30429 msgid ""
30430 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
30431 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30432 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
30433 "the input files, and (approximately) an extra 200 MB free space."
30434 msgstr ""
30435
30436 #. type: textblock
30437 #: ../tools/virt-make-fs.pl:210
30438 msgid ""
30439 "Note that virt-make-fs estimates free space, and therefore will not produce "
30440 "filesystems containing precisely the free space requested.  (It is much more "
30441 "expensive and time-consuming to produce a filesystem which has precisely the "
30442 "desired free space)."
30443 msgstr ""
30444
30445 #. type: =item
30446 #: ../tools/virt-make-fs.pl:219
30447 msgid "B<--format=E<lt>fmtE<gt>>"
30448 msgstr ""
30449
30450 #. type: =item
30451 #: ../tools/virt-make-fs.pl:221
30452 msgid "B<-F E<lt>fmtE<gt>>"
30453 msgstr ""
30454
30455 #. type: textblock
30456 #: ../tools/virt-make-fs.pl:223
30457 msgid "Choose the output disk image format."
30458 msgstr ""
30459
30460 #. type: textblock
30461 #: ../tools/virt-make-fs.pl:225
30462 msgid "The default is C<raw> (raw disk image)."
30463 msgstr ""
30464
30465 #. type: textblock
30466 #: ../tools/virt-make-fs.pl:227
30467 msgid ""
30468 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
30469 "that would really make sense here is C<qcow2>."
30470 msgstr ""
30471
30472 #. type: =item
30473 #: ../tools/virt-make-fs.pl:234
30474 msgid "B<--type=E<lt>fsE<gt>>"
30475 msgstr ""
30476
30477 #. type: =item
30478 #: ../tools/virt-make-fs.pl:236
30479 msgid "B<-t E<lt>fsE<gt>>"
30480 msgstr ""
30481
30482 #. type: textblock
30483 #: ../tools/virt-make-fs.pl:238
30484 msgid "Choose the output filesystem type."
30485 msgstr ""
30486
30487 #. type: textblock
30488 #: ../tools/virt-make-fs.pl:240
30489 msgid "The default is C<ext2>."
30490 msgstr ""
30491
30492 #. type: textblock
30493 #: ../tools/virt-make-fs.pl:242
30494 msgid ""
30495 "Any filesystem which is supported read-write by libguestfs can be used here."
30496 msgstr ""
30497
30498 #. type: =item
30499 #: ../tools/virt-make-fs.pl:249
30500 msgid "B<--partition>"
30501 msgstr ""
30502
30503 #. type: =item
30504 #: ../tools/virt-make-fs.pl:251
30505 msgid "B<--partition=E<lt>parttypeE<gt>>"
30506 msgstr ""
30507
30508 #. type: textblock
30509 #: ../tools/virt-make-fs.pl:253
30510 msgid ""
30511 "If specified, this flag adds an MBR partition table to the output disk image."
30512 msgstr ""
30513
30514 #. type: textblock
30515 #: ../tools/virt-make-fs.pl:256
30516 msgid ""
30517 "You can change the partition table type, eg. C<--partition=gpt> for large "
30518 "disks."
30519 msgstr ""
30520
30521 #. type: textblock
30522 #: ../tools/virt-make-fs.pl:259
30523 msgid ""
30524 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
30525 "might consider the next parameter to be the partition type.  For example:"
30526 msgstr ""
30527
30528 #. type: verbatim
30529 #: ../tools/virt-make-fs.pl:263
30530 #, no-wrap
30531 msgid ""
30532 " virt-make-fs --partition input.tar ...\n"
30533 "\n"
30534 msgstr ""
30535
30536 #. type: textblock
30537 #: ../tools/virt-make-fs.pl:265
30538 msgid ""
30539 "would cause virt-make-fs to think you wanted to use a partition type of "
30540 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
30541 "dash) between options and the input file argument:"
30542 msgstr ""
30543
30544 #. type: verbatim
30545 #: ../tools/virt-make-fs.pl:269
30546 #, no-wrap
30547 msgid ""
30548 " virt-make-fs --partition -- input.tar ...\n"
30549 "\n"
30550 msgstr ""
30551
30552 #. type: textblock
30553 #: ../tools/virt-make-fs.pl:541
30554 msgid ""
30555 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
30556 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
30557 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
30558 msgstr ""
30559
30560 #. type: verbatim
30561 #: ../tools/virt-make-fs.pl:558
30562 #, no-wrap
30563 msgid ""
30564 " export LIBGUESTFS_DEBUG=1\n"
30565 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
30566 "\n"
30567 msgstr ""
30568
30569 #. type: textblock
30570 #: ../tools/virt-make-fs.pl:561
30571 msgid ""
30572 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
30573 "redhat.com/>"
30574 msgstr ""
30575
30576 #. type: textblock
30577 #: ../tools/virt-list-partitions.pl:32
30578 msgid ""
30579 "virt-list-partitions - List partitions in a virtual machine or disk image"
30580 msgstr ""
30581
30582 #. type: verbatim
30583 #: ../tools/virt-list-partitions.pl:36
30584 #, no-wrap
30585 msgid ""
30586 " virt-list-partitions [--options] domname\n"
30587 "\n"
30588 msgstr ""
30589
30590 #. type: verbatim
30591 #: ../tools/virt-list-partitions.pl:38
30592 #, no-wrap
30593 msgid ""
30594 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
30595 "\n"
30596 msgstr ""
30597
30598 #. type: textblock
30599 #: ../tools/virt-list-partitions.pl:45
30600 msgid ""
30601 "C<virt-list-partitions> is a command line tool to list the partitions that "
30602 "are contained in a virtual machine or disk image.  It is mainly useful as a "
30603 "first step to using L<virt-resize(1)>."
30604 msgstr ""
30605
30606 #. type: textblock
30607 #: ../tools/virt-list-partitions.pl:50
30608 msgid ""
30609 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
30610 "functionality.  For more complex cases you should look at the L<guestfish(1)"
30611 "> tool."
30612 msgstr ""
30613
30614 #. type: =item
30615 #: ../tools/virt-list-partitions.pl:107
30616 msgid "B<-h> | B<--human-readable>"
30617 msgstr ""
30618
30619 #. type: textblock
30620 #: ../tools/virt-list-partitions.pl:109
30621 msgid "Show sizes in human-readable form (eg. \"1G\")."
30622 msgstr ""
30623
30624 #. type: textblock
30625 #: ../tools/virt-list-partitions.pl:117
30626 msgid ""
30627 "With this option, C<virt-list-partitions> displays the type and size of each "
30628 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
30629 msgstr ""
30630
30631 #. type: =item
30632 #: ../tools/virt-list-partitions.pl:124
30633 msgid "B<-t> | B<--total>"
30634 msgstr ""
30635
30636 #. type: textblock
30637 #: ../tools/virt-list-partitions.pl:126
30638 msgid ""
30639 "Display the total size of each block device (as a separate row or rows)."
30640 msgstr ""
30641
30642 #. type: textblock
30643 #: ../tools/virt-list-partitions.pl:259
30644 msgid ""
30645 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
30646 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
30647 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30648 msgstr ""
30649
30650 #. type: textblock
30651 #: ../tools/virt-list-partitions.pl:275
30652 msgid "Copyright (C) 2009-2010 Red Hat Inc."
30653 msgstr ""