Version 1.11.5.
[libguestfs.git] / po-docs / uk.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-05-09 15:21+0200\n"
11 "PO-Revision-Date: 2011-04-01 15:39+0000\n"
12 "Last-Translator: yurchor <yurchor@ukr.net>\n"
13 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
14 "Language: uk\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
20
21 #. type: =head1
22 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
23 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
24 #: ../tools/virt-win-reg.pl:35 ../tools/virt-list-filesystems.pl:30
25 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
26 #: ../tools/virt-list-partitions.pl:30
27 msgid "NAME"
28 msgstr "НАЗВА"
29
30 #. type: textblock
31 #: ../src/guestfs.pod:5
32 msgid "guestfs - Library for accessing and modifying virtual machine images"
33 msgstr ""
34 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35 "машин"
36
37 #. type: =head1
38 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
39 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
40 #: ../tools/virt-win-reg.pl:39 ../tools/virt-list-filesystems.pl:34
41 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
42 #: ../tools/virt-list-partitions.pl:34
43 msgid "SYNOPSIS"
44 msgstr "КОРОТКИЙ ОПИС"
45
46 #. type: verbatim
47 #: ../src/guestfs.pod:9
48 #, no-wrap
49 msgid ""
50 " #include <guestfs.h>\n"
51 " \n"
52 msgstr ""
53 " #include <guestfs.h>\n"
54 " \n"
55
56 #. type: verbatim
57 #: ../src/guestfs.pod:11
58 #, no-wrap
59 msgid ""
60 " guestfs_h *g = guestfs_create ();\n"
61 " guestfs_add_drive (g, \"guest.img\");\n"
62 " guestfs_launch (g);\n"
63 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
64 " guestfs_touch (g, \"/hello\");\n"
65 " guestfs_umount (g, \"/\");\n"
66 " guestfs_close (g);\n"
67 "\n"
68 msgstr ""
69 " guestfs_h *g = guestfs_create ();\n"
70 " guestfs_add_drive (g, \"guest.img\");\n"
71 " guestfs_launch (g);\n"
72 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
73 " guestfs_touch (g, \"/hello\");\n"
74 " guestfs_umount (g, \"/\");\n"
75 " guestfs_close (g);\n"
76 "\n"
77
78 #. type: verbatim
79 #: ../src/guestfs.pod:19
80 #, no-wrap
81 msgid ""
82 " cc prog.c -o prog -lguestfs\n"
83 "or:\n"
84 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
85 "\n"
86 msgstr ""
87 " cc prog.c -o prog -lguestfs\n"
88 "або:\n"
89 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
90 "\n"
91
92 #. type: =head1
93 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
94 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
95 #: ../tools/virt-win-reg.pl:63 ../tools/virt-list-filesystems.pl:40
96 #: ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47
97 #: ../tools/virt-list-partitions.pl:40
98 msgid "DESCRIPTION"
99 msgstr "ОПИС"
100
101 #. type: textblock
102 #: ../src/guestfs.pod:25
103 msgid ""
104 "Libguestfs is a library for accessing and modifying guest disk images.  "
105 "Amongst the things this is good for: making batch configuration changes to "
106 "guests, getting disk used/free statistics (see also: virt-df), migrating "
107 "between virtualization systems (see also: virt-p2v), performing partial "
108 "backups, performing partial guest clones, cloning guests and changing "
109 "registry/UUID/hostname info, and much else besides."
110 msgstr ""
111
112 #. type: textblock
113 #: ../src/guestfs.pod:33
114 msgid ""
115 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
116 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
117 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
118 "qcow2, vmdk."
119 msgstr ""
120
121 #. type: textblock
122 #: ../src/guestfs.pod:38
123 msgid ""
124 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
125 "what filesystem is in each LV, etc.).  It can also run commands in the "
126 "context of the guest.  Also you can access filesystems over FUSE."
127 msgstr ""
128
129 #. type: textblock
130 #: ../src/guestfs.pod:43
131 msgid ""
132 "Libguestfs is a library that can be linked with C and C++ management "
133 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
134 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
135 "line."
136 msgstr ""
137
138 #. type: textblock
139 #: ../src/guestfs.pod:48
140 msgid ""
141 "You don't need to be root to use libguestfs, although obviously you do need "
142 "enough permissions to access the disk images."
143 msgstr ""
144
145 #. type: textblock
146 #: ../src/guestfs.pod:51
147 msgid ""
148 "Libguestfs is a large API because it can do many things.  For a gentle "
149 "introduction, please read the L</API OVERVIEW> section next."
150 msgstr ""
151
152 #. type: textblock
153 #: ../src/guestfs.pod:54
154 msgid ""
155 "There are also some example programs in the L<guestfs-examples(3)> manual "
156 "page."
157 msgstr ""
158
159 #. type: =head1
160 #: ../src/guestfs.pod:57
161 msgid "API OVERVIEW"
162 msgstr "ОГЛЯД API"
163
164 #. type: textblock
165 #: ../src/guestfs.pod:59
166 msgid ""
167 "This section provides a gentler overview of the libguestfs API.  We also try "
168 "to group API calls together, where that may not be obvious from reading "
169 "about the individual calls in the main section of this manual."
170 msgstr ""
171
172 #. type: =head2
173 #: ../src/guestfs.pod:64
174 msgid "HANDLES"
175 msgstr "ОБРОБНИКИ"
176
177 #. type: textblock
178 #: ../src/guestfs.pod:66
179 msgid ""
180 "Before you can use libguestfs calls, you have to create a handle.  Then you "
181 "must add at least one disk image to the handle, followed by launching the "
182 "handle, then performing whatever operations you want, and finally closing "
183 "the handle.  By convention we use the single letter C<g> for the name of the "
184 "handle variable, although of course you can use any name you want."
185 msgstr ""
186
187 #. type: textblock
188 #: ../src/guestfs.pod:73
189 msgid "The general structure of all libguestfs-using programs looks like this:"
190 msgstr ""
191
192 #. type: verbatim
193 #: ../src/guestfs.pod:76
194 #, no-wrap
195 msgid ""
196 " guestfs_h *g = guestfs_create ();\n"
197 " \n"
198 msgstr ""
199 " guestfs_h *g = guestfs_create ();\n"
200 " \n"
201
202 #. type: verbatim
203 #: ../src/guestfs.pod:78
204 #, no-wrap
205 msgid ""
206 " /* Call guestfs_add_drive additional times if there are\n"
207 "  * multiple disk images.\n"
208 "  */\n"
209 " guestfs_add_drive (g, \"guest.img\");\n"
210 " \n"
211 msgstr ""
212
213 #. type: verbatim
214 #: ../src/guestfs.pod:83
215 #, no-wrap
216 msgid ""
217 " /* Most manipulation calls won't work until you've launched\n"
218 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
219 "  * and _before_ other commands.\n"
220 "  */\n"
221 " guestfs_launch (g);\n"
222 " \n"
223 msgstr ""
224
225 #. type: verbatim
226 #: ../src/guestfs.pod:89
227 #, no-wrap
228 msgid ""
229 " /* Now you can examine what partitions, LVs etc are available.\n"
230 "  */\n"
231 " char **partitions = guestfs_list_partitions (g);\n"
232 " char **logvols = guestfs_lvs (g);\n"
233 " \n"
234 msgstr ""
235
236 #. type: verbatim
237 #: ../src/guestfs.pod:94
238 #, no-wrap
239 msgid ""
240 " /* To access a filesystem in the image, you must mount it.\n"
241 "  */\n"
242 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
243 " \n"
244 msgstr ""
245 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
246 "  */\n"
247 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
248 " \n"
249
250 #. type: verbatim
251 #: ../src/guestfs.pod:98
252 #, fuzzy, no-wrap
253 #| msgid ""
254 #| " /* Now you can perform filesystem actions on the guest\n"
255 #| "  * disk image.\n"
256 #| "  */\n"
257 #| " guestfs_touch (g, \"/hello\");\n"
258 #| "\n"
259 msgid ""
260 " /* Now you can perform filesystem actions on the guest\n"
261 "  * disk image.\n"
262 "  */\n"
263 " guestfs_touch (g, \"/hello\");\n"
264 " \n"
265 msgstr ""
266 " /* Тепер ви можете виконувати дії з файловою системою на\n"
267 "  * образі диска операційної системи.\n"
268 "  */\n"
269 " guestfs_touch (g, \"/hello\");\n"
270 "\n"
271
272 #. type: verbatim
273 #: ../src/guestfs.pod:103
274 #, no-wrap
275 msgid ""
276 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
277 "  * it is done automatically when you close the handle.  See\n"
278 "  * discussion of autosync in this page.\n"
279 "  */\n"
280 " guestfs_sync (g);\n"
281 " \n"
282 msgstr ""
283
284 #. type: verbatim
285 #: ../src/guestfs.pod:109
286 #, no-wrap
287 msgid ""
288 " /* Close the handle 'g'. */\n"
289 " guestfs_close (g);\n"
290 "\n"
291 msgstr ""
292
293 #. type: textblock
294 #: ../src/guestfs.pod:112
295 msgid ""
296 "The code above doesn't include any error checking.  In real code you should "
297 "check return values carefully for errors.  In general all functions that "
298 "return integers return C<-1> on error, and all functions that return "
299 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
300 "how to handle errors, and consult the documentation for each function call "
301 "below to see precisely how they return error indications.  See L<guestfs-"
302 "examples(3)> for fully worked examples."
303 msgstr ""
304
305 #. type: =head2
306 #: ../src/guestfs.pod:121
307 msgid "DISK IMAGES"
308 msgstr ""
309
310 #. type: textblock
311 #: ../src/guestfs.pod:123
312 msgid ""
313 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
314 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
315 "actual block device, or simply an empty file of zeroes that you have created "
316 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
317 "of these."
318 msgstr ""
319
320 #. type: textblock
321 #: ../src/guestfs.pod:129
322 msgid ""
323 "The call you should use in modern code for adding drives is L</"
324 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
325 "specifying that the format is raw, do:"
326 msgstr ""
327
328 #. type: verbatim
329 #: ../src/guestfs.pod:133
330 #, no-wrap
331 msgid ""
332 " guestfs_add_drive_opts (g, filename,\n"
333 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
334 "                         -1);\n"
335 "\n"
336 msgstr ""
337
338 #. type: textblock
339 #: ../src/guestfs.pod:137
340 msgid "You can add a disk read-only using:"
341 msgstr ""
342
343 #. type: verbatim
344 #: ../src/guestfs.pod:139
345 #, no-wrap
346 msgid ""
347 " guestfs_add_drive_opts (g, filename,\n"
348 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
349 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
350 "                         -1);\n"
351 "\n"
352 msgstr ""
353
354 #. type: textblock
355 #: ../src/guestfs.pod:144
356 msgid ""
357 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
358 "libguestfs won't modify the file."
359 msgstr ""
360
361 #. type: textblock
362 #: ../src/guestfs.pod:147
363 msgid ""
364 "Be extremely cautious if the disk image is in use, eg. if it is being used "
365 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
366 "corruption, but adding it read-only is safe."
367 msgstr ""
368
369 #. type: textblock
370 #: ../src/guestfs.pod:151
371 msgid ""
372 "You must add at least one disk image, and you may add multiple disk images.  "
373 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
374 "first one you added), C</dev/sdb> (for the second one you added), etc."
375 msgstr ""
376
377 #. type: textblock
378 #: ../src/guestfs.pod:156
379 msgid ""
380 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
381 "can call L</guestfs_list_devices> to get a list of the device names, in the "
382 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
383 msgstr ""
384
385 #. type: =head2
386 #: ../src/guestfs.pod:161
387 msgid "MOUNTING"
388 msgstr "МОНТУВАННЯ"
389
390 #. type: textblock
391 #: ../src/guestfs.pod:163
392 msgid ""
393 "Before you can read or write files, create directories and so on in a disk "
394 "image that contains filesystems, you have to mount those filesystems using "
395 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
396 "a disk image contains (for example) one partition with a filesystem on that "
397 "partition, then you can mount it directly:"
398 msgstr ""
399
400 #. type: verbatim
401 #: ../src/guestfs.pod:170
402 #, no-wrap
403 msgid ""
404 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
405 "\n"
406 msgstr ""
407
408 #. type: textblock
409 #: ../src/guestfs.pod:172
410 msgid ""
411 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
412 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
413 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
414 "that these are libguestfs virtual devices, and are nothing to do with host "
415 "devices."
416 msgstr ""
417
418 #. type: textblock
419 #: ../src/guestfs.pod:178
420 msgid ""
421 "If you are given a disk image and you don't know what it contains then you "
422 "have to find out.  Libguestfs can do that too: use L</"
423 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
424 "LVs, and either try mounting each to see what is mountable, or else examine "
425 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
426 "filesystems, use L</guestfs_list_filesystems>."
427 msgstr ""
428
429 #. type: textblock
430 #: ../src/guestfs.pod:186
431 msgid ""
432 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
433 "L</INSPECTION> below).  But you might find it easier to look at higher level "
434 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
435 msgstr ""
436
437 #. type: textblock
438 #: ../src/guestfs.pod:191
439 msgid ""
440 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
441 "several other variations of the C<guestfs_mount_*> call."
442 msgstr ""
443
444 #. type: =head2
445 #: ../src/guestfs.pod:194
446 msgid "FILESYSTEM ACCESS AND MODIFICATION"
447 msgstr ""
448
449 #. type: textblock
450 #: ../src/guestfs.pod:196
451 msgid ""
452 "The majority of the libguestfs API consists of fairly low-level calls for "
453 "accessing and modifying the files, directories, symlinks etc on mounted "
454 "filesystems.  There are over a hundred such calls which you can find listed "
455 "in detail below in this man page, and we don't even pretend to cover them "
456 "all in this overview."
457 msgstr ""
458
459 #. type: textblock
460 #: ../src/guestfs.pod:202
461 msgid ""
462 "Specify filenames as full paths, starting with C<\"/\"> and including the "
463 "mount point."
464 msgstr ""
465
466 #. type: textblock
467 #: ../src/guestfs.pod:205
468 msgid ""
469 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
470 "the file called C<\"etc/passwd\"> then you could do:"
471 msgstr ""
472
473 #. type: verbatim
474 #: ../src/guestfs.pod:208
475 #, no-wrap
476 msgid ""
477 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
478 "\n"
479 msgstr ""
480
481 #. type: textblock
482 #: ../src/guestfs.pod:210
483 msgid ""
484 "This would return C<data> as a newly allocated buffer containing the full "
485 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
486 "or C<NULL> if there was an error."
487 msgstr ""
488
489 #. type: textblock
490 #: ../src/guestfs.pod:214
491 msgid ""
492 "As another example, to create a top-level directory on that filesystem "
493 "called C<\"var\"> you would do:"
494 msgstr ""
495
496 #. type: verbatim
497 #: ../src/guestfs.pod:217
498 #, no-wrap
499 msgid ""
500 " guestfs_mkdir (g, \"/var\");\n"
501 "\n"
502 msgstr ""
503
504 #. type: textblock
505 #: ../src/guestfs.pod:219
506 msgid "To create a symlink you could do:"
507 msgstr ""
508
509 #. type: verbatim
510 #: ../src/guestfs.pod:221
511 #, no-wrap
512 msgid ""
513 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
514 "               \"/etc/rc3.d/S30portmap\");\n"
515 "\n"
516 msgstr ""
517
518 #. type: textblock
519 #: ../src/guestfs.pod:224
520 msgid ""
521 "Libguestfs will reject attempts to use relative paths and there is no "
522 "concept of a current working directory."
523 msgstr ""
524
525 #. type: textblock
526 #: ../src/guestfs.pod:227
527 msgid ""
528 "Libguestfs can return errors in many situations: for example if the "
529 "filesystem isn't writable, or if a file or directory that you requested "
530 "doesn't exist.  If you are using the C API (documented here)  you have to "
531 "check for those error conditions after each call.  (Other language bindings "
532 "turn these errors into exceptions)."
533 msgstr ""
534
535 #. type: textblock
536 #: ../src/guestfs.pod:233
537 msgid ""
538 "File writes are affected by the per-handle umask, set by calling L</"
539 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
540 msgstr ""
541
542 #. type: =head2
543 #: ../src/guestfs.pod:236
544 msgid "PARTITIONING"
545 msgstr "ПОДІЛ НА РОЗДІЛИ"
546
547 #. type: textblock
548 #: ../src/guestfs.pod:238
549 msgid ""
550 "Libguestfs contains API calls to read, create and modify partition tables on "
551 "disk images."
552 msgstr ""
553
554 #. type: textblock
555 #: ../src/guestfs.pod:241
556 msgid ""
557 "In the common case where you want to create a single partition covering the "
558 "whole disk, you should use the L</guestfs_part_disk> call:"
559 msgstr ""
560
561 #. type: verbatim
562 #: ../src/guestfs.pod:245
563 #, no-wrap
564 msgid ""
565 " const char *parttype = \"mbr\";\n"
566 " if (disk_is_larger_than_2TB)\n"
567 "   parttype = \"gpt\";\n"
568 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
569 "\n"
570 msgstr ""
571
572 #. type: textblock
573 #: ../src/guestfs.pod:250
574 msgid ""
575 "Obviously this effectively wipes anything that was on that disk image before."
576 msgstr ""
577
578 #. type: =head2
579 #: ../src/guestfs.pod:253
580 msgid "LVM2"
581 msgstr "LVM2"
582
583 #. type: textblock
584 #: ../src/guestfs.pod:255
585 msgid ""
586 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
587 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
588 "you familiarize yourself with the concepts of physical volumes, volume "
589 "groups and logical volumes."
590 msgstr ""
591
592 #. type: textblock
593 #: ../src/guestfs.pod:260
594 msgid ""
595 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
596 "tldp.org/HOWTO/LVM-HOWTO/>."
597 msgstr ""
598
599 #. type: =head2
600 #: ../src/guestfs.pod:263
601 msgid "DOWNLOADING"
602 msgstr ""
603
604 #. type: textblock
605 #: ../src/guestfs.pod:265
606 msgid ""
607 "Use L</guestfs_cat> to download small, text only files.  This call is "
608 "limited to files which are less than 2 MB and which cannot contain any ASCII "
609 "NUL (C<\\0>) characters.  However the API is very simple to use."
610 msgstr ""
611
612 #. type: textblock
613 #: ../src/guestfs.pod:269
614 msgid ""
615 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
616 "bit data, since it returns a (pointer, size) pair.  However it is still "
617 "limited to \"small\" files, less than 2 MB."
618 msgstr ""
619
620 #. type: textblock
621 #: ../src/guestfs.pod:273
622 msgid ""
623 "L</guestfs_download> can be used to download any file, with no limits on "
624 "content or size (even files larger than 4 GB)."
625 msgstr ""
626
627 #. type: textblock
628 #: ../src/guestfs.pod:276
629 msgid ""
630 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
631 msgstr ""
632
633 #. type: =head2
634 #: ../src/guestfs.pod:279
635 msgid "UPLOADING"
636 msgstr "ВИВАНТАЖЕННЯ"
637
638 #. type: textblock
639 #: ../src/guestfs.pod:281
640 msgid ""
641 "It's often the case that you want to write a file or files to the disk image."
642 msgstr ""
643
644 #. type: textblock
645 #: ../src/guestfs.pod:284
646 msgid ""
647 "To write a small file with fixed content, use L</guestfs_write>.  To create "
648 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
649 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
650 "of other functions for creating test files, for example L</guestfs_fill> and "
651 "L</guestfs_fill_pattern>."
652 msgstr ""
653
654 #. type: textblock
655 #: ../src/guestfs.pod:290
656 msgid ""
657 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
658 "file content or size (even files larger than 4 GB)."
659 msgstr ""
660
661 #. type: textblock
662 #: ../src/guestfs.pod:293
663 msgid ""
664 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
665 msgstr ""
666
667 #. type: textblock
668 #: ../src/guestfs.pod:295
669 msgid ""
670 "However the fastest way to upload I<large numbers of arbitrary files> is to "
671 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
672 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
673 "in a predictable way (eg. adding it last after all other drives) then you "
674 "can get the device name from L</guestfs_list_devices> and mount it directly "
675 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
676 "portable between kernel versions, and they don't support labels or UUIDs.  "
677 "If you want to pre-build an image or you need to mount it using a label or "
678 "UUID, use an ISO image instead."
679 msgstr ""
680
681 #. type: =head2
682 #: ../src/guestfs.pod:306
683 msgid "COPYING"
684 msgstr "КОПІЮВАННЯ"
685
686 #. type: textblock
687 #: ../src/guestfs.pod:308
688 msgid ""
689 "There are various different commands for copying between files and devices "
690 "and in and out of the guest filesystem.  These are summarised in the table "
691 "below."
692 msgstr ""
693
694 #. type: =item
695 #: ../src/guestfs.pod:314
696 msgid "B<file> to B<file>"
697 msgstr ""
698
699 #. type: textblock
700 #: ../src/guestfs.pod:316
701 msgid ""
702 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
703 "directories recursively."
704 msgstr ""
705
706 #. type: =item
707 #: ../src/guestfs.pod:319
708 msgid "B<file or device> to B<file or device>"
709 msgstr ""
710
711 #. type: textblock
712 #: ../src/guestfs.pod:321
713 msgid ""
714 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
715 "devices in the guest."
716 msgstr ""
717
718 #. type: textblock
719 #: ../src/guestfs.pod:324
720 msgid "Example: duplicate the contents of an LV:"
721 msgstr ""
722
723 #. type: verbatim
724 #: ../src/guestfs.pod:326
725 #, no-wrap
726 msgid ""
727 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
728 "\n"
729 msgstr ""
730
731 #. type: textblock
732 #: ../src/guestfs.pod:328
733 msgid ""
734 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
735 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
736 "guestfs_copy_size>."
737 msgstr ""
738
739 #. type: =item
740 #: ../src/guestfs.pod:332
741 msgid "B<file on the host> to B<file or device>"
742 msgstr ""
743
744 #. type: textblock
745 #: ../src/guestfs.pod:334
746 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
747 msgstr ""
748
749 #. type: =item
750 #: ../src/guestfs.pod:336
751 msgid "B<file or device> to B<file on the host>"
752 msgstr ""
753
754 #. type: textblock
755 #: ../src/guestfs.pod:338
756 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
757 msgstr ""
758
759 #. type: =head2
760 #: ../src/guestfs.pod:342
761 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
762 msgstr ""
763
764 #. type: textblock
765 #: ../src/guestfs.pod:344
766 msgid ""
767 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
768 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
769 "appears you can only upload and download to files.  However many Un*x-like "
770 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
771 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
772 "and arbitrary file descriptor N."
773 msgstr ""
774
775 #. type: textblock
776 #: ../src/guestfs.pod:352
777 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
778 msgstr ""
779
780 #. type: verbatim
781 #: ../src/guestfs.pod:355
782 #, no-wrap
783 msgid ""
784 " guestfs_download (g, filename, \"/dev/stdout\");\n"
785 "\n"
786 msgstr ""
787
788 #. type: textblock
789 #: ../src/guestfs.pod:357
790 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
791 msgstr ""
792
793 #. type: verbatim
794 #: ../src/guestfs.pod:359
795 #, no-wrap
796 msgid ""
797 " char devfd[64];\n"
798 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
799 " guestfs_tar_out (g, \"/\", devfd);\n"
800 "\n"
801 msgstr ""
802
803 #. type: =head2
804 #: ../src/guestfs.pod:363
805 msgid "LISTING FILES"
806 msgstr ""
807
808 #. type: textblock
809 #: ../src/guestfs.pod:365
810 msgid ""
811 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
812 "L<guestfish(1)>-equivalent command C<ll>)."
813 msgstr ""
814
815 #. type: textblock
816 #: ../src/guestfs.pod:368
817 msgid ""
818 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
819 "programs, as a flat list of strings."
820 msgstr ""
821
822 #. type: textblock
823 #: ../src/guestfs.pod:371
824 msgid ""
825 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
826 "directory, plus additional information about each one.  It is more "
827 "equivalent to using the L<readdir(3)> call on a local filesystem."
828 msgstr ""
829
830 #. type: textblock
831 #: ../src/guestfs.pod:375
832 msgid ""
833 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
834 msgstr ""
835
836 #. type: =head2
837 #: ../src/guestfs.pod:378
838 msgid "RUNNING COMMANDS"
839 msgstr ""
840
841 #. type: textblock
842 #: ../src/guestfs.pod:380
843 msgid ""
844 "Although libguestfs is primarily an API for manipulating files inside guest "
845 "images, we also provide some limited facilities for running commands inside "
846 "guests."
847 msgstr ""
848
849 #. type: textblock
850 #: ../src/guestfs.pod:384
851 msgid "There are many limitations to this:"
852 msgstr ""
853
854 #. type: =item
855 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
856 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
857 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
858 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
859 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
860 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
861 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
862 #: ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
863 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
864 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2008 ../src/guestfs.pod:2013
865 #: ../src/guestfs.pod:2019 ../src/guestfs.pod:2027 ../src/guestfs.pod:2381
866 #: ../src/guestfs.pod:2387 ../src/guestfs.pod:2392 ../src/guestfs.pod:2398
867 #: ../src/guestfs.pod:2967 ../src/guestfs.pod:2971 ../src/guestfs.pod:2975
868 #: ../src/guestfs.pod:2979 ../src/guestfs-actions.pod:15
869 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:583
870 #: ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:598
871 #: ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:1606
872 #: ../src/guestfs-actions.pod:1610 ../src/guestfs-actions.pod:1614
873 #: ../src/guestfs-actions.pod:1618 ../src/guestfs-actions.pod:1626
874 #: ../src/guestfs-actions.pod:1630 ../src/guestfs-actions.pod:1634
875 #: ../src/guestfs-actions.pod:1644 ../src/guestfs-actions.pod:1648
876 #: ../src/guestfs-actions.pod:1652 ../src/guestfs-actions.pod:1790
877 #: ../src/guestfs-actions.pod:1794 ../src/guestfs-actions.pod:1799
878 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1865
879 #: ../src/guestfs-actions.pod:1869 ../src/guestfs-actions.pod:1874
880 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
881 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
882 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
883 #: ../fish/guestfish-actions.pod:385 ../fish/guestfish-actions.pod:393
884 #: ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407
885 #: ../fish/guestfish-actions.pod:1077 ../fish/guestfish-actions.pod:1081
886 #: ../fish/guestfish-actions.pod:1085 ../fish/guestfish-actions.pod:1089
887 #: ../fish/guestfish-actions.pod:1097 ../fish/guestfish-actions.pod:1101
888 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1115
889 #: ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123
890 #: ../fish/guestfish-actions.pod:1213 ../fish/guestfish-actions.pod:1217
891 #: ../fish/guestfish-actions.pod:1222 ../fish/guestfish-actions.pod:1227
892 #: ../fish/guestfish-actions.pod:1269 ../fish/guestfish-actions.pod:1273
893 #: ../fish/guestfish-actions.pod:1278 ../tools/virt-win-reg.pl:536
894 #: ../tools/virt-win-reg.pl:542 ../tools/virt-win-reg.pl:548
895 msgid "*"
896 msgstr ""
897
898 #. type: textblock
899 #: ../src/guestfs.pod:390
900 msgid ""
901 "The kernel version that the command runs under will be different from what "
902 "it expects."
903 msgstr ""
904
905 #. type: textblock
906 #: ../src/guestfs.pod:395
907 msgid ""
908 "If the command needs to communicate with daemons, then most likely they "
909 "won't be running."
910 msgstr ""
911
912 #. type: textblock
913 #: ../src/guestfs.pod:400
914 msgid "The command will be running in limited memory."
915 msgstr ""
916
917 #. type: textblock
918 #: ../src/guestfs.pod:404
919 msgid ""
920 "The network may not be available unless you enable it (see L</"
921 "guestfs_set_network>)."
922 msgstr ""
923
924 #. type: textblock
925 #: ../src/guestfs.pod:409
926 msgid "Only supports Linux guests (not Windows, BSD, etc)."
927 msgstr ""
928
929 #. type: textblock
930 #: ../src/guestfs.pod:413
931 msgid ""
932 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
933 msgstr ""
934
935 #. type: textblock
936 #: ../src/guestfs.pod:418
937 msgid ""
938 "For SELinux guests, you may need to enable SELinux and load policy first.  "
939 "See L</SELINUX> in this manpage."
940 msgstr ""
941
942 #. type: textblock
943 #: ../src/guestfs.pod:423
944 msgid ""
945 "I<Security:> It is not safe to run commands from untrusted, possibly "
946 "malicious guests.  These commands may attempt to exploit your program by "
947 "sending unexpected output.  They could also try to exploit the Linux kernel "
948 "or qemu provided by the libguestfs appliance.  They could use the network "
949 "provided by the libguestfs appliance to bypass ordinary network partitions "
950 "and firewalls.  They could use the elevated privileges or different SELinux "
951 "context of your program to their advantage."
952 msgstr ""
953
954 #. type: textblock
955 #: ../src/guestfs.pod:432
956 msgid ""
957 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
958 "(a script which runs when the guest next boots normally), and to have this "
959 "script run the commands you want in the normal context of the running guest, "
960 "network security and so on.  For information about other security issues, "
961 "see L</SECURITY>."
962 msgstr ""
963
964 #. type: textblock
965 #: ../src/guestfs.pod:440
966 msgid ""
967 "The two main API calls to run commands are L</guestfs_command> and L</"
968 "guestfs_sh> (there are also variations)."
969 msgstr ""
970
971 #. type: textblock
972 #: ../src/guestfs.pod:443
973 msgid ""
974 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
975 "shell globs, redirections, etc will work."
976 msgstr ""
977
978 #. type: =head2
979 #: ../src/guestfs.pod:446
980 msgid "CONFIGURATION FILES"
981 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
982
983 #. type: textblock
984 #: ../src/guestfs.pod:448
985 msgid ""
986 "To read and write configuration files in Linux guest filesystems, we "
987 "strongly recommend using Augeas.  For example, Augeas understands how to "
988 "read and write, say, a Linux shadow password file or X.org configuration "
989 "file, and so avoids you having to write that code."
990 msgstr ""
991
992 #. type: textblock
993 #: ../src/guestfs.pod:453
994 msgid ""
995 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
996 "document Augeas itself here because there is excellent documentation on the "
997 "L<http://augeas.net/> website."
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../src/guestfs.pod:457
1002 msgid ""
1003 "If you don't want to use Augeas (you fool!) then try calling L</"
1004 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1005 "over."
1006 msgstr ""
1007
1008 #. type: =head2
1009 #: ../src/guestfs.pod:461
1010 msgid "SELINUX"
1011 msgstr "SELINUX"
1012
1013 #. type: textblock
1014 #: ../src/guestfs.pod:463
1015 msgid ""
1016 "We support SELinux guests.  To ensure that labeling happens correctly in "
1017 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1018 msgstr ""
1019
1020 #. type: =item
1021 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395
1022 #: ../src/guestfs.pod:2426
1023 msgid "1."
1024 msgstr ""
1025
1026 #. type: textblock
1027 #: ../src/guestfs.pod:471
1028 msgid "Before launching, do:"
1029 msgstr ""
1030
1031 #. type: verbatim
1032 #: ../src/guestfs.pod:473
1033 #, no-wrap
1034 msgid ""
1035 " guestfs_set_selinux (g, 1);\n"
1036 "\n"
1037 msgstr ""
1038
1039 #. type: =item
1040 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399
1041 #: ../src/guestfs.pod:2451
1042 msgid "2."
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../src/guestfs.pod:477
1047 msgid ""
1048 "After mounting the guest's filesystem(s), load the policy.  This is best "
1049 "done by running the L<load_policy(8)> command in the guest itself:"
1050 msgstr ""
1051
1052 #. type: verbatim
1053 #: ../src/guestfs.pod:481
1054 #, no-wrap
1055 msgid ""
1056 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1057 "\n"
1058 msgstr ""
1059
1060 #. type: textblock
1061 #: ../src/guestfs.pod:483
1062 msgid ""
1063 "(Older versions of C<load_policy> require you to specify the name of the "
1064 "policy file)."
1065 msgstr ""
1066
1067 #. type: =item
1068 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1405
1069 msgid "3."
1070 msgstr ""
1071
1072 #. type: textblock
1073 #: ../src/guestfs.pod:488
1074 msgid ""
1075 "Optionally, set the security context for the API.  The correct security "
1076 "context to use can only be known by inspecting the guest.  As an example:"
1077 msgstr ""
1078
1079 #. type: verbatim
1080 #: ../src/guestfs.pod:492
1081 #, no-wrap
1082 msgid ""
1083 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1084 "\n"
1085 msgstr ""
1086
1087 #. type: textblock
1088 #: ../src/guestfs.pod:496
1089 msgid "This will work for running commands and editing existing files."
1090 msgstr ""
1091
1092 #. type: textblock
1093 #: ../src/guestfs.pod:498
1094 msgid ""
1095 "When new files are created, you may need to label them explicitly, for "
1096 "example by running the external command C<restorecon pathname>."
1097 msgstr ""
1098
1099 #. type: =head2
1100 #: ../src/guestfs.pod:502
1101 msgid "UMASK"
1102 msgstr ""
1103
1104 #. type: textblock
1105 #: ../src/guestfs.pod:504
1106 msgid ""
1107 "Certain calls are affected by the current file mode creation mask (the "
1108 "\"umask\").  In particular ones which create files or directories, such as "
1109 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1110 "either the default mode that the file is created with or modifies the mode "
1111 "that you supply."
1112 msgstr ""
1113
1114 #. type: textblock
1115 #: ../src/guestfs.pod:510
1116 msgid ""
1117 "The default umask is C<022>, so files are created with modes such as C<0644> "
1118 "and directories with C<0755>."
1119 msgstr ""
1120
1121 #. type: textblock
1122 #: ../src/guestfs.pod:513
1123 msgid ""
1124 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1125 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1126 "guestfs_chmod> after creating each file or directory."
1127 msgstr ""
1128
1129 #. type: textblock
1130 #: ../src/guestfs.pod:517
1131 msgid "For more information about umask, see L<umask(2)>."
1132 msgstr ""
1133
1134 #. type: =head1
1135 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:767
1136 msgid "ENCRYPTED DISKS"
1137 msgstr ""
1138
1139 #. type: textblock
1140 #: ../src/guestfs.pod:521
1141 msgid ""
1142 "Libguestfs allows you to access Linux guests which have been encrypted using "
1143 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1144 "standard.  This includes nearly all whole disk encryption systems used by "
1145 "modern Linux guests."
1146 msgstr ""
1147
1148 #. type: textblock
1149 #: ../src/guestfs.pod:527
1150 msgid ""
1151 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1152 "returns the string C<crypto_LUKS>)."
1153 msgstr ""
1154
1155 #. type: textblock
1156 #: ../src/guestfs.pod:530
1157 msgid ""
1158 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1159 "will require the passphrase!"
1160 msgstr ""
1161
1162 #. type: textblock
1163 #: ../src/guestfs.pod:533
1164 msgid ""
1165 "Opening a LUKS device creates a new device mapper device called C</dev/"
1166 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1167 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1168 "from and encrypted to the underlying block device respectively."
1169 msgstr ""
1170
1171 #. type: textblock
1172 #: ../src/guestfs.pod:539
1173 msgid ""
1174 "LVM volume groups on the device can be made visible by calling L</"
1175 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1176 "(s) can now be mounted in the usual way."
1177 msgstr ""
1178
1179 #. type: textblock
1180 #: ../src/guestfs.pod:543
1181 msgid ""
1182 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1183 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1184 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1185 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1186 "underlying encrypted block device)."
1187 msgstr ""
1188
1189 #. type: =head2
1190 #: ../src/guestfs.pod:550
1191 msgid "INSPECTION"
1192 msgstr "ПЕРЕВІРКА"
1193
1194 #. type: textblock
1195 #: ../src/guestfs.pod:552
1196 msgid ""
1197 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1198 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1199 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1200 "version 1.5.3 the most frequently used part of this library has been "
1201 "rewritten in C and moved into the core code)."
1202 msgstr ""
1203
1204 #. type: textblock
1205 #: ../src/guestfs.pod:559
1206 msgid ""
1207 "Add all disks belonging to the unknown virtual machine and call L</"
1208 "guestfs_launch> in the usual way."
1209 msgstr ""
1210
1211 #. type: textblock
1212 #: ../src/guestfs.pod:562
1213 msgid ""
1214 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1215 "and certain heuristics, and returns a list of operating systems that were "
1216 "found.  An empty list means none were found.  A single element is the root "
1217 "filesystem of the operating system.  For dual- or multi-boot guests, "
1218 "multiple roots can be returned, each one corresponding to a separate "
1219 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1220 "world of virtualization, but since this scenario can happen, we have built "
1221 "libguestfs to deal with it.)"
1222 msgstr ""
1223
1224 #. type: textblock
1225 #: ../src/guestfs.pod:571
1226 msgid ""
1227 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1228 "to get additional details about that operating system.  For example, call L</"
1229 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1230 "Windows and Linux-based operating systems respectively."
1231 msgstr ""
1232
1233 #. type: textblock
1234 #: ../src/guestfs.pod:577
1235 msgid ""
1236 "Un*x-like and Linux-based operating systems usually consist of several "
1237 "filesystems which are mounted at boot time (for example, a separate boot "
1238 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1239 "filesystems correspond to mount points.  Call "
1240 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1241 "hash table like this example:"
1242 msgstr ""
1243
1244 #. type: verbatim
1245 #: ../src/guestfs.pod:584
1246 #, no-wrap
1247 msgid ""
1248 " /boot => /dev/sda1\n"
1249 " /     => /dev/vg_guest/lv_root\n"
1250 " /usr  => /dev/vg_guest/lv_usr\n"
1251 "\n"
1252 msgstr ""
1253
1254 #. type: textblock
1255 #: ../src/guestfs.pod:588
1256 msgid ""
1257 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1258 "filesystems as suggested."
1259 msgstr ""
1260
1261 #. type: textblock
1262 #: ../src/guestfs.pod:591
1263 msgid ""
1264 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1265 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1266 msgstr ""
1267
1268 #. type: textblock
1269 #: ../src/guestfs.pod:595
1270 msgid ""
1271 "Inspection currently only works for some common operating systems.  "
1272 "Contributors are welcome to send patches for other operating systems that we "
1273 "currently cannot detect."
1274 msgstr ""
1275
1276 #. type: textblock
1277 #: ../src/guestfs.pod:599
1278 msgid ""
1279 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1280 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1281 "encrypted devices."
1282 msgstr ""
1283
1284 #. type: textblock
1285 #: ../src/guestfs.pod:603
1286 msgid ""
1287 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1288 "inspection and caches the results in the guest handle.  Subsequent calls to "
1289 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1290 "read the disks.  If you change the content of the guest disks, you can redo "
1291 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1292 "guestfs_inspect_list_applications> works a little differently from the other "
1293 "calls and does read the disks.  See documentation for that function for "
1294 "details)."
1295 msgstr ""
1296
1297 #. type: =head3
1298 #: ../src/guestfs.pod:612
1299 msgid "INSPECTING INSTALL DISKS"
1300 msgstr ""
1301
1302 #. type: textblock
1303 #: ../src/guestfs.pod:614
1304 msgid ""
1305 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1306 "CDs and more."
1307 msgstr ""
1308
1309 #. type: textblock
1310 #: ../src/guestfs.pod:617
1311 msgid ""
1312 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1313 "system, which currently can be C<installed> (a regular operating system) or "
1314 "C<installer> (some sort of install disk)."
1315 msgstr ""
1316
1317 #. type: textblock
1318 #: ../src/guestfs.pod:621
1319 msgid ""
1320 "Further information is available about the operating system that can be "
1321 "installed using the regular inspection APIs like L</"
1322 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1323 msgstr ""
1324
1325 #. type: textblock
1326 #: ../src/guestfs.pod:626
1327 msgid ""
1328 "Some additional information specific to installer disks is also available "
1329 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1330 "guestfs_inspect_is_multipart> calls."
1331 msgstr ""
1332
1333 #. type: =head2
1334 #: ../src/guestfs.pod:631
1335 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1336 msgstr ""
1337
1338 #. type: textblock
1339 #: ../src/guestfs.pod:633
1340 msgid ""
1341 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1342 "ntfs-3g.org/> driver."
1343 msgstr ""
1344
1345 #. type: =head3
1346 #: ../src/guestfs.pod:636
1347 msgid "DRIVE LETTERS AND PATHS"
1348 msgstr ""
1349
1350 #. type: textblock
1351 #: ../src/guestfs.pod:638
1352 msgid ""
1353 "DOS and Windows still use drive letters, and the filesystems are always "
1354 "treated as case insensitive by Windows itself, and therefore you might find "
1355 "a Windows configuration file referring to a path like C<c:\\windows"
1356 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1357 "might be referred to as C</WINDOWS/System32>."
1358 msgstr ""
1359
1360 #. type: textblock
1361 #: ../src/guestfs.pod:644
1362 msgid ""
1363 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
1364 "L</guestfs_inspect_get_drive_mappings>)"
1365 msgstr ""
1366
1367 #. type: textblock
1368 #: ../src/guestfs.pod:647
1369 msgid ""
1370 "Dealing with separator characters (backslash vs forward slash) is outside "
1371 "the scope of libguestfs, but usually a simple character replacement will "
1372 "work."
1373 msgstr ""
1374
1375 #. type: textblock
1376 #: ../src/guestfs.pod:651
1377 msgid ""
1378 "To resolve the case insensitivity of paths, call L</"
1379 "guestfs_case_sensitive_path>."
1380 msgstr ""
1381
1382 #. type: =head3
1383 #: ../src/guestfs.pod:654
1384 msgid "ACCESSING THE WINDOWS REGISTRY"
1385 msgstr ""
1386
1387 #. type: textblock
1388 #: ../src/guestfs.pod:656
1389 msgid ""
1390 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1391 "files, through the library C<hivex> which is part of the libguestfs project "
1392 "although ships as a separate tarball.  You have to locate and download the "
1393 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1394 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1395 "reg(1)> for more help on this issue."
1396 msgstr ""
1397
1398 #. type: =head3
1399 #: ../src/guestfs.pod:664
1400 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1401 msgstr ""
1402
1403 #. type: textblock
1404 #: ../src/guestfs.pod:666
1405 msgid ""
1406 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1407 "provide something which looks like a Linux symlink.  The way it tries to do "
1408 "the rewriting is described here:"
1409 msgstr ""
1410
1411 #. type: textblock
1412 #: ../src/guestfs.pod:670
1413 msgid ""
1414 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1415 "symbolic-links/>"
1416 msgstr ""
1417 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1418 "symbolic-links/>"
1419
1420 #. type: textblock
1421 #: ../src/guestfs.pod:672
1422 msgid ""
1423 "The essential problem is that ntfs-3g simply does not have enough "
1424 "information to do a correct job.  NTFS links can contain drive letters and "
1425 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1426 "It is almost certainly the case that libguestfs callers should ignore what "
1427 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1428 msgstr ""
1429
1430 #. type: textblock
1431 #: ../src/guestfs.pod:679
1432 msgid ""
1433 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1434 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1435 "attribute, and read the raw reparse data from that (you can find the format "
1436 "documented in various places around the web)."
1437 msgstr ""
1438
1439 #. type: =head3
1440 #: ../src/guestfs.pod:684
1441 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1442 msgstr ""
1443
1444 #. type: textblock
1445 #: ../src/guestfs.pod:686
1446 msgid ""
1447 "There are other useful extended attributes that can be read from ntfs-3g "
1448 "filesystems (using L</guestfs_getxattr>).  See:"
1449 msgstr ""
1450
1451 #. type: textblock
1452 #: ../src/guestfs.pod:689
1453 msgid ""
1454 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1455 msgstr ""
1456 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1457
1458 #. type: =head2
1459 #: ../src/guestfs.pod:691
1460 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1461 msgstr ""
1462
1463 #. type: textblock
1464 #: ../src/guestfs.pod:693
1465 msgid ""
1466 "Although we don't want to discourage you from using the C API, we will "
1467 "mention here that the same API is also available in other languages."
1468 msgstr ""
1469
1470 #. type: textblock
1471 #: ../src/guestfs.pod:696
1472 msgid ""
1473 "The API is broadly identical in all supported languages.  This means that "
1474 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1475 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1476 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1477 "each language."
1478 msgstr ""
1479
1480 #. type: textblock
1481 #: ../src/guestfs.pod:702
1482 msgid ""
1483 "Error messages are automatically transformed into exceptions if the language "
1484 "supports it."
1485 msgstr ""
1486
1487 #. type: textblock
1488 #: ../src/guestfs.pod:705
1489 msgid ""
1490 "We don't try to \"object orientify\" parts of the API in OO languages, "
1491 "although contributors are welcome to write higher level APIs above what we "
1492 "provide in their favourite languages if they wish."
1493 msgstr ""
1494
1495 #. type: =item
1496 #: ../src/guestfs.pod:711
1497 msgid "B<C++>"
1498 msgstr "B<C++>"
1499
1500 #. type: textblock
1501 #: ../src/guestfs.pod:713
1502 msgid ""
1503 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1504 "identical to the C API.  C++ classes and exceptions are not used."
1505 msgstr ""
1506
1507 #. type: =item
1508 #: ../src/guestfs.pod:717
1509 msgid "B<C#>"
1510 msgstr "B<C#>"
1511
1512 #. type: textblock
1513 #: ../src/guestfs.pod:719
1514 msgid ""
1515 "The C# bindings are highly experimental.  Please read the warnings at the "
1516 "top of C<csharp/Libguestfs.cs>."
1517 msgstr ""
1518
1519 #. type: =item
1520 #: ../src/guestfs.pod:722
1521 msgid "B<Haskell>"
1522 msgstr "B<Haskell>"
1523
1524 #. type: textblock
1525 #: ../src/guestfs.pod:724
1526 msgid ""
1527 "This is the only language binding that is working but incomplete.  Only "
1528 "calls which return simple integers have been bound in Haskell, and we are "
1529 "looking for help to complete this binding."
1530 msgstr ""
1531
1532 #. type: =item
1533 #: ../src/guestfs.pod:728
1534 msgid "B<Java>"
1535 msgstr "B<Java>"
1536
1537 #. type: textblock
1538 #: ../src/guestfs.pod:730
1539 msgid ""
1540 "Full documentation is contained in the Javadoc which is distributed with "
1541 "libguestfs."
1542 msgstr ""
1543
1544 #. type: =item
1545 #: ../src/guestfs.pod:733
1546 msgid "B<OCaml>"
1547 msgstr "B<OCaml>"
1548
1549 #. type: textblock
1550 #: ../src/guestfs.pod:735
1551 msgid "See L<guestfs-ocaml(3)>."
1552 msgstr "Див. L<guestfs-ocaml(3)>."
1553
1554 #. type: =item
1555 #: ../src/guestfs.pod:737
1556 msgid "B<Perl>"
1557 msgstr "B<Perl>"
1558
1559 #. type: textblock
1560 #: ../src/guestfs.pod:739
1561 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1562 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
1563
1564 #. type: =item
1565 #: ../src/guestfs.pod:741
1566 msgid "B<PHP>"
1567 msgstr "B<PHP>"
1568
1569 #. type: textblock
1570 #: ../src/guestfs.pod:743
1571 msgid ""
1572 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1573 "the php-libguestfs package for your distribution."
1574 msgstr ""
1575
1576 #. type: textblock
1577 #: ../src/guestfs.pod:746
1578 msgid "The PHP binding only works correctly on 64 bit machines."
1579 msgstr ""
1580
1581 #. type: =item
1582 #: ../src/guestfs.pod:748
1583 msgid "B<Python>"
1584 msgstr "B<Python>"
1585
1586 #. type: textblock
1587 #: ../src/guestfs.pod:750
1588 msgid "See L<guestfs-python(3)>."
1589 msgstr "Див. L<guestfs-python(3)>."
1590
1591 #. type: =item
1592 #: ../src/guestfs.pod:752
1593 msgid "B<Ruby>"
1594 msgstr "B<Ruby>"
1595
1596 #. type: textblock
1597 #: ../src/guestfs.pod:754
1598 msgid "See L<guestfs-ruby(3)>."
1599 msgstr "Див. L<guestfs-ruby(3)>."
1600
1601 #. type: =item
1602 #: ../src/guestfs.pod:756
1603 msgid "B<shell scripts>"
1604 msgstr "B<скрипти оболонки>"
1605
1606 #. type: textblock
1607 #: ../src/guestfs.pod:758
1608 msgid "See L<guestfish(1)>."
1609 msgstr "Див. L<guestfish(1)>."
1610
1611 #. type: =head2
1612 #: ../src/guestfs.pod:762
1613 msgid "LIBGUESTFS GOTCHAS"
1614 msgstr ""
1615
1616 #. type: textblock
1617 #: ../src/guestfs.pod:764
1618 msgid ""
1619 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1620 "system [...] that works in the way it is documented but is counterintuitive "
1621 "and almost invites mistakes.\""
1622 msgstr ""
1623
1624 #. type: textblock
1625 #: ../src/guestfs.pod:768
1626 msgid ""
1627 "Since we developed libguestfs and the associated tools, there are several "
1628 "things we would have designed differently, but are now stuck with for "
1629 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1630 "release, you can expect these to change.  Beware of them."
1631 msgstr ""
1632
1633 #. type: =item
1634 #: ../src/guestfs.pod:776
1635 msgid "Autosync / forgetting to sync."
1636 msgstr ""
1637
1638 #. type: textblock
1639 #: ../src/guestfs.pod:778
1640 msgid ""
1641 "I<Update:> Autosync is enabled by default for all API users starting from "
1642 "libguestfs 1.5.24.  This section only applies to older versions."
1643 msgstr ""
1644
1645 #. type: textblock
1646 #: ../src/guestfs.pod:781
1647 msgid ""
1648 "When modifying a filesystem from C or another language, you B<must> unmount "
1649 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1650 "libguestfs handle.  You can also call:"
1651 msgstr ""
1652
1653 #. type: verbatim
1654 #: ../src/guestfs.pod:785
1655 #, no-wrap
1656 msgid ""
1657 " guestfs_set_autosync (g, 1);\n"
1658 "\n"
1659 msgstr ""
1660
1661 #. type: textblock
1662 #: ../src/guestfs.pod:787
1663 msgid ""
1664 "to have the unmount/sync done automatically for you when the handle 'g' is "
1665 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1666 msgstr ""
1667
1668 #. type: textblock
1669 #: ../src/guestfs.pod:791
1670 msgid ""
1671 "If you forget to do this, then it is entirely possible that your changes "
1672 "won't be written out, or will be partially written, or (very rarely) that "
1673 "you'll get disk corruption."
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../src/guestfs.pod:795
1678 msgid ""
1679 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1680 "guestfish scripts that forget to sync will work just fine, which can make "
1681 "this very puzzling if you are trying to debug a problem."
1682 msgstr ""
1683
1684 #. type: =item
1685 #: ../src/guestfs.pod:799
1686 msgid "Mount option C<-o sync> should not be the default."
1687 msgstr ""
1688
1689 #. type: textblock
1690 #: ../src/guestfs.pod:801
1691 msgid ""
1692 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1693 "However C<-o sync> does not add any reliability benefit, but does have a "
1694 "very large performance impact."
1695 msgstr ""
1696
1697 #. type: textblock
1698 #: ../src/guestfs.pod:805
1699 msgid ""
1700 "The work around is to use L</guestfs_mount_options> and set the mount "
1701 "options that you actually want to use."
1702 msgstr ""
1703
1704 #. type: =item
1705 #: ../src/guestfs.pod:808
1706 msgid "Read-only should be the default."
1707 msgstr ""
1708
1709 #. type: textblock
1710 #: ../src/guestfs.pod:810
1711 msgid ""
1712 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1713 "specify I<--rw> if you want to make changes to the image."
1714 msgstr ""
1715
1716 #. type: textblock
1717 #: ../src/guestfs.pod:813
1718 msgid "This would reduce the potential to corrupt live VM images."
1719 msgstr ""
1720
1721 #. type: textblock
1722 #: ../src/guestfs.pod:815
1723 msgid ""
1724 "Note that many filesystems change the disk when you just mount and unmount, "
1725 "even if you didn't perform any writes.  You need to use L</"
1726 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1727 msgstr ""
1728
1729 #. type: =item
1730 #: ../src/guestfs.pod:819
1731 msgid "guestfish command line is hard to use."
1732 msgstr ""
1733
1734 #. type: textblock
1735 #: ../src/guestfs.pod:821
1736 msgid ""
1737 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1738 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1739 "exist, so it fails.  In earlier versions of guestfish the error message was "
1740 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1741 "we should have used C<guestfish -c command> to run commands."
1742 msgstr ""
1743
1744 #. type: =item
1745 #: ../src/guestfs.pod:828
1746 msgid "guestfish megabyte modifiers don't work right on all commands"
1747 msgstr ""
1748
1749 #. type: textblock
1750 #: ../src/guestfs.pod:830
1751 msgid ""
1752 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1753 "other modifiers).  What guestfish actually does is to multiply the number "
1754 "part by the modifier part and pass the result to the C API.  However this "
1755 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1756 "expecting some other unit (eg. megabytes)."
1757 msgstr ""
1758
1759 #. type: textblock
1760 #: ../src/guestfs.pod:837
1761 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1762 msgstr ""
1763
1764 #. type: verbatim
1765 #: ../src/guestfs.pod:839
1766 #, no-wrap
1767 msgid ""
1768 " lvcreate LV VG 100M\n"
1769 "\n"
1770 msgstr ""
1771
1772 #. type: textblock
1773 #: ../src/guestfs.pod:841
1774 msgid ""
1775 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1776 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1777 "megabytes * megabytes) logical volume.  The error message you get from this "
1778 "is also a little obscure."
1779 msgstr ""
1780
1781 #. type: textblock
1782 #: ../src/guestfs.pod:846
1783 msgid ""
1784 "This could be fixed in the generator by specially marking parameters and "
1785 "return values which take bytes or other units."
1786 msgstr ""
1787
1788 #. type: =item
1789 #: ../src/guestfs.pod:849
1790 msgid "Ambiguity between devices and paths"
1791 msgstr ""
1792
1793 #. type: textblock
1794 #: ../src/guestfs.pod:851
1795 msgid ""
1796 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1797 "sdb2>) and a similar pathname.  A file might just happen to be called "
1798 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1799 msgstr ""
1800
1801 #. type: textblock
1802 #: ../src/guestfs.pod:856
1803 msgid ""
1804 "In the current API we usually resolve this ambiguity by having two separate "
1805 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1806 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1807 "detecting if the path supplied begins with C</dev/>."
1808 msgstr ""
1809
1810 #. type: textblock
1811 #: ../src/guestfs.pod:862
1812 msgid ""
1813 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1814 "make paths/devices into structured names.  One way to do this would be to "
1815 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1816 "aspect of grub.  Another way would be to use a structured type, equivalent "
1817 "to this OCaml type:"
1818 msgstr ""
1819
1820 #. type: verbatim
1821 #: ../src/guestfs.pod:868
1822 #, no-wrap
1823 msgid ""
1824 " type path = Path of string | Device of int | Partition of int * int\n"
1825 "\n"
1826 msgstr ""
1827
1828 #. type: textblock
1829 #: ../src/guestfs.pod:870
1830 msgid "which would allow you to pass arguments like:"
1831 msgstr ""
1832
1833 #. type: verbatim
1834 #: ../src/guestfs.pod:872
1835 #, no-wrap
1836 msgid ""
1837 " Path \"/foo/bar\"\n"
1838 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1839 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1840 " Path \"/dev/sdb2\"    (* not a device *)\n"
1841 "\n"
1842 msgstr ""
1843
1844 #. type: textblock
1845 #: ../src/guestfs.pod:877
1846 msgid ""
1847 "As you can see there are still problems to resolve even with this "
1848 "representation.  Also consider how it might work in guestfish."
1849 msgstr ""
1850
1851 #. type: =head2
1852 #: ../src/guestfs.pod:882
1853 msgid "KEYS AND PASSPHRASES"
1854 msgstr ""
1855
1856 #. type: textblock
1857 #: ../src/guestfs.pod:884
1858 msgid ""
1859 "Certain libguestfs calls take a parameter that contains sensitive key "
1860 "material, passed in as a C string."
1861 msgstr ""
1862
1863 #. type: textblock
1864 #: ../src/guestfs.pod:887
1865 msgid ""
1866 "In the future we would hope to change the libguestfs implementation so that "
1867 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1868 "swap.  However this is I<not> done at the moment, because of the complexity "
1869 "of such an implementation."
1870 msgstr ""
1871
1872 #. type: textblock
1873 #: ../src/guestfs.pod:892
1874 msgid ""
1875 "Therefore you should be aware that any key parameter you pass to libguestfs "
1876 "might end up being written out to the swap partition.  If this is a concern, "
1877 "scrub the swap partition or don't use libguestfs on encrypted devices."
1878 msgstr ""
1879
1880 #. type: =head2
1881 #: ../src/guestfs.pod:897
1882 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1883 msgstr ""
1884
1885 #. type: textblock
1886 #: ../src/guestfs.pod:899
1887 msgid ""
1888 "All high-level libguestfs actions are synchronous.  If you want to use "
1889 "libguestfs asynchronously then you must create a thread."
1890 msgstr ""
1891
1892 #. type: textblock
1893 #: ../src/guestfs.pod:902
1894 msgid ""
1895 "Only use the handle from a single thread.  Either use the handle exclusively "
1896 "from one thread, or provide your own mutex so that two threads cannot issue "
1897 "calls on the same handle at the same time."
1898 msgstr ""
1899
1900 #. type: textblock
1901 #: ../src/guestfs.pod:906
1902 msgid ""
1903 "See the graphical program guestfs-browser for one possible architecture for "
1904 "multithreaded programs using libvirt and libguestfs."
1905 msgstr ""
1906
1907 #. type: =head2
1908 #: ../src/guestfs.pod:909
1909 msgid "PATH"
1910 msgstr "ШЛЯХ"
1911
1912 #. type: textblock
1913 #: ../src/guestfs.pod:911
1914 msgid ""
1915 "Libguestfs needs a supermin appliance, which it finds by looking along an "
1916 "internal path."
1917 msgstr ""
1918
1919 #. type: textblock
1920 #: ../src/guestfs.pod:914
1921 msgid ""
1922 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1923 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1924 msgstr ""
1925
1926 #. type: textblock
1927 #: ../src/guestfs.pod:917
1928 msgid ""
1929 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1930 "to change the directories that libguestfs will search in.  The value is a "
1931 "colon-separated list of paths.  The current directory is I<not> searched "
1932 "unless the path contains an empty element or C<.>.  For example "
1933 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1934 "then C</usr/lib/guestfs>."
1935 msgstr ""
1936
1937 #. type: =head2
1938 #: ../src/guestfs.pod:924
1939 msgid "QEMU WRAPPERS"
1940 msgstr ""
1941
1942 #. type: textblock
1943 #: ../src/guestfs.pod:926
1944 msgid ""
1945 "If you want to compile your own qemu, run qemu from a non-standard location, "
1946 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1947 "around qemu."
1948 msgstr ""
1949
1950 #. type: textblock
1951 #: ../src/guestfs.pod:930
1952 msgid ""
1953 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1954 "last command in the shell script (so that qemu replaces the shell and "
1955 "becomes the direct child of the libguestfs-using program).  If you don't do "
1956 "this, then the qemu process won't be cleaned up correctly."
1957 msgstr ""
1958
1959 #. type: textblock
1960 #: ../src/guestfs.pod:935
1961 msgid ""
1962 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1963 "source:"
1964 msgstr ""
1965
1966 #. type: verbatim
1967 #: ../src/guestfs.pod:938
1968 #, no-wrap
1969 msgid ""
1970 " #!/bin/sh -\n"
1971 " qemudir=/home/rjones/d/qemu\n"
1972 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1973 "\n"
1974 msgstr ""
1975
1976 #. type: textblock
1977 #: ../src/guestfs.pod:942
1978 msgid ""
1979 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1980 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1981 "example:"
1982 msgstr ""
1983
1984 #. type: verbatim
1985 #: ../src/guestfs.pod:946
1986 #, no-wrap
1987 msgid ""
1988 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1989 "\n"
1990 msgstr ""
1991
1992 #. type: textblock
1993 #: ../src/guestfs.pod:948
1994 msgid ""
1995 "Note that libguestfs also calls qemu with the -help and -version options in "
1996 "order to determine features."
1997 msgstr ""
1998
1999 #. type: =head2
2000 #: ../src/guestfs.pod:951
2001 msgid "ATTACHING TO RUNNING DAEMONS"
2002 msgstr ""
2003
2004 #. type: textblock
2005 #: ../src/guestfs.pod:953
2006 msgid ""
2007 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2008 "babies.  Use with caution."
2009 msgstr ""
2010
2011 #. type: textblock
2012 #: ../src/guestfs.pod:956
2013 msgid ""
2014 "I<Note (2):> This section explains how to attach to a running daemon from a "
2015 "low level perspective.  For most users, simply using virt tools such as "
2016 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2017 msgstr ""
2018
2019 #. type: =head3
2020 #: ../src/guestfs.pod:960
2021 msgid "Using guestfs_set_attach_method"
2022 msgstr ""
2023
2024 #. type: textblock
2025 #: ../src/guestfs.pod:962
2026 msgid ""
2027 "By calling L</guestfs_set_attach_method> you can change how the library "
2028 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2029 "ARCHITECTURE> for some background)."
2030 msgstr ""
2031
2032 #. type: textblock
2033 #: ../src/guestfs.pod:966
2034 msgid ""
2035 "The normal attach method is C<appliance>, where a small appliance is created "
2036 "containing the daemon, and then the library connects to this."
2037 msgstr ""
2038
2039 #. type: textblock
2040 #: ../src/guestfs.pod:969
2041 msgid ""
2042 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2043 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2044 "daemon over the Unix domain socket."
2045 msgstr ""
2046
2047 #. type: textblock
2048 #: ../src/guestfs.pod:973
2049 msgid ""
2050 "The normal use for this is to connect to a running virtual machine that "
2051 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2052 "files inside the live virtual machine."
2053 msgstr ""
2054
2055 #. type: =head3
2056 #: ../src/guestfs.pod:977
2057 msgid "Using guestfs_add_domain with live flag"
2058 msgstr ""
2059
2060 #. type: textblock
2061 #: ../src/guestfs.pod:979
2062 msgid ""
2063 "L</guestfs_add_domain> provides some help for getting the correct attach "
2064 "method.  If you pass the C<live> option to this function, then (if the "
2065 "virtual machine is running) it will examine the libvirt XML looking for a "
2066 "virtio-serial channel to connect to:"
2067 msgstr ""
2068
2069 #. type: verbatim
2070 #: ../src/guestfs.pod:985
2071 #, no-wrap
2072 msgid ""
2073 " <domain>\n"
2074 "   ...\n"
2075 "   <devices>\n"
2076 "     ...\n"
2077 "     <channel type='unix'>\n"
2078 "       <source mode='bind' path='/path/to/socket'/>\n"
2079 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2080 "     </channel>\n"
2081 "     ...\n"
2082 "   </devices>\n"
2083 " </domain>\n"
2084 "\n"
2085 msgstr ""
2086
2087 #. type: textblock
2088 #: ../src/guestfs.pod:997
2089 msgid ""
2090 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2091 "method to C<unix:/path/to/socket>."
2092 msgstr ""
2093
2094 #. type: textblock
2095 #: ../src/guestfs.pod:1000
2096 msgid ""
2097 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2098 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2099 "to attach to and modify live virtual machines."
2100 msgstr ""
2101
2102 #. type: textblock
2103 #: ../src/guestfs.pod:1004
2104 msgid ""
2105 "The virtual machine needs to have been set up beforehand so that it has the "
2106 "virtio-serial channel and so that guestfsd is running inside it."
2107 msgstr ""
2108
2109 #. type: =head2
2110 #: ../src/guestfs.pod:1008
2111 msgid "ABI GUARANTEE"
2112 msgstr ""
2113
2114 #. type: textblock
2115 #: ../src/guestfs.pod:1010
2116 msgid ""
2117 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2118 "actions as outlined in this section.  Although we will deprecate some "
2119 "actions, for example if they get replaced by newer calls, we will keep the "
2120 "old actions forever.  This allows you the developer to program in confidence "
2121 "against the libguestfs API."
2122 msgstr ""
2123
2124 #. type: =head2
2125 #: ../src/guestfs.pod:1016
2126 msgid "BLOCK DEVICE NAMING"
2127 msgstr ""
2128
2129 #. type: textblock
2130 #: ../src/guestfs.pod:1018
2131 msgid ""
2132 "In the kernel there is now quite a profusion of schemata for naming block "
2133 "devices (in this context, by I<block device> I mean a physical or virtual "
2134 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2135 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2136 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2137 "for the old IDE driver (particularly for SATA devices) those devices also "
2138 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2139 "paravirtualized drivers.  This has created several different naming systems, "
2140 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2141 msgstr ""
2142
2143 #. type: textblock
2144 #: ../src/guestfs.pod:1030
2145 msgid ""
2146 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2147 "Linux kernel to access block devices.  We can run a variety of appliances "
2148 "based on a variety of Linux kernels."
2149 msgstr ""
2150
2151 #. type: textblock
2152 #: ../src/guestfs.pod:1034
2153 msgid ""
2154 "This causes a problem for libguestfs because many API calls use device or "
2155 "partition names.  Working scripts and the recipe (example) scripts that we "
2156 "make available over the internet could fail if the naming scheme changes."
2157 msgstr ""
2158
2159 #. type: textblock
2160 #: ../src/guestfs.pod:1039
2161 msgid ""
2162 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2163 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2164 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2165 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2166 msgstr ""
2167
2168 #. type: textblock
2169 #: ../src/guestfs.pod:1045
2170 msgid ""
2171 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2172 "L</guestfs_list_partitions> and similar calls return the true names of the "
2173 "devices and partitions as known to the appliance."
2174 msgstr ""
2175
2176 #. type: =head3
2177 #: ../src/guestfs.pod:1050
2178 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2179 msgstr ""
2180
2181 #. type: textblock
2182 #: ../src/guestfs.pod:1052
2183 msgid ""
2184 "Usually this translation is transparent.  However in some (very rare)  cases "
2185 "you may need to know the exact algorithm.  Such cases include where you use "
2186 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2187 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2188 msgstr ""
2189
2190 #. type: textblock
2191 #: ../src/guestfs.pod:1058
2192 msgid ""
2193 "The algorithm is applied only to I<parameters> which are known to be either "
2194 "device or partition names.  Return values from functions such as L</"
2195 "guestfs_list_devices> are never changed."
2196 msgstr ""
2197
2198 #. type: textblock
2199 #: ../src/guestfs.pod:1066
2200 msgid "Is the string a parameter which is a device or partition name?"
2201 msgstr ""
2202
2203 #. type: textblock
2204 #: ../src/guestfs.pod:1070
2205 msgid "Does the string begin with C</dev/sd>?"
2206 msgstr ""
2207
2208 #. type: textblock
2209 #: ../src/guestfs.pod:1074
2210 msgid ""
2211 "Does the named device exist? If so, we use that device.  However if I<not> "
2212 "then we continue with this algorithm."
2213 msgstr ""
2214
2215 #. type: textblock
2216 #: ../src/guestfs.pod:1079
2217 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2218 msgstr ""
2219
2220 #. type: textblock
2221 #: ../src/guestfs.pod:1081
2222 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2223 msgstr ""
2224
2225 #. type: textblock
2226 #: ../src/guestfs.pod:1083
2227 msgid "If that named device exists, use it.  If not, continue."
2228 msgstr ""
2229
2230 #. type: textblock
2231 #: ../src/guestfs.pod:1087
2232 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2233 msgstr ""
2234
2235 #. type: textblock
2236 #: ../src/guestfs.pod:1089
2237 msgid "If that named device exists, use it.  If not, return an error."
2238 msgstr ""
2239
2240 #. type: =head3
2241 #: ../src/guestfs.pod:1093
2242 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2243 msgstr ""
2244
2245 #. type: textblock
2246 #: ../src/guestfs.pod:1095
2247 msgid ""
2248 "Although the standard naming scheme and automatic translation is useful for "
2249 "simple programs and guestfish scripts, for larger programs it is best not to "
2250 "rely on this mechanism."
2251 msgstr ""
2252
2253 #. type: textblock
2254 #: ../src/guestfs.pod:1099
2255 msgid ""
2256 "Where possible for maximum future portability programs using libguestfs "
2257 "should use these future-proof techniques:"
2258 msgstr ""
2259
2260 #. type: textblock
2261 #: ../src/guestfs.pod:1106
2262 msgid ""
2263 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2264 "device names, and then use those names directly."
2265 msgstr ""
2266
2267 #. type: textblock
2268 #: ../src/guestfs.pod:1109
2269 msgid ""
2270 "Since those device names exist by definition, they will never be translated."
2271 msgstr ""
2272
2273 #. type: textblock
2274 #: ../src/guestfs.pod:1114
2275 msgid ""
2276 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2277 "filesystem labels."
2278 msgstr ""
2279
2280 #. type: =head1
2281 #: ../src/guestfs.pod:1119
2282 msgid "SECURITY"
2283 msgstr "БЕЗПЕКА"
2284
2285 #. type: textblock
2286 #: ../src/guestfs.pod:1121
2287 msgid ""
2288 "This section discusses security implications of using libguestfs, "
2289 "particularly with untrusted or malicious guests or disk images."
2290 msgstr ""
2291
2292 #. type: =head2
2293 #: ../src/guestfs.pod:1124
2294 msgid "GENERAL SECURITY CONSIDERATIONS"
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../src/guestfs.pod:1126
2299 msgid ""
2300 "Be careful with any files or data that you download from a guest (by "
2301 "\"download\" we mean not just the L</guestfs_download> command but any "
2302 "command that reads files, filenames, directories or anything else from a "
2303 "disk image).  An attacker could manipulate the data to fool your program "
2304 "into doing the wrong thing.  Consider cases such as:"
2305 msgstr ""
2306
2307 #. type: textblock
2308 #: ../src/guestfs.pod:1136
2309 msgid "the data (file etc) not being present"
2310 msgstr ""
2311
2312 #. type: textblock
2313 #: ../src/guestfs.pod:1140
2314 msgid "being present but empty"
2315 msgstr ""
2316
2317 #. type: textblock
2318 #: ../src/guestfs.pod:1144
2319 msgid "being much larger than normal"
2320 msgstr ""
2321
2322 #. type: textblock
2323 #: ../src/guestfs.pod:1148
2324 msgid "containing arbitrary 8 bit data"
2325 msgstr ""
2326
2327 #. type: textblock
2328 #: ../src/guestfs.pod:1152
2329 msgid "being in an unexpected character encoding"
2330 msgstr ""
2331
2332 #. type: textblock
2333 #: ../src/guestfs.pod:1156
2334 msgid "containing homoglyphs."
2335 msgstr ""
2336
2337 #. type: =head2
2338 #: ../src/guestfs.pod:1160
2339 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2340 msgstr ""
2341
2342 #. type: textblock
2343 #: ../src/guestfs.pod:1162
2344 msgid ""
2345 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2346 "(VFS) module can sometimes be escalated into exploits by deliberately "
2347 "creating a malicious, malformed filesystem.  These exploits are very severe "
2348 "for two reasons.  Firstly there are very many filesystem drivers in the "
2349 "kernel, and many of them are infrequently used and not much developer "
2350 "attention has been paid to the code.  Linux userspace helps potential "
2351 "crackers by detecting the filesystem type and automatically choosing the "
2352 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2353 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2354 "exploit (worse in some ways), giving immediate and total access to the "
2355 "system right down to the hardware level."
2356 msgstr ""
2357
2358 #. type: textblock
2359 #: ../src/guestfs.pod:1175
2360 msgid ""
2361 "That explains why you should never mount a filesystem from an untrusted "
2362 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2363 "inside a qemu virtual machine, usually running as a non-root user.  The "
2364 "attacker would need to write a filesystem which first exploited the kernel, "
2365 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2366 "the libguestfs protocol, and finally to be as serious as the host kernel "
2367 "exploit it would need to escalate its privileges to root.  This multi-step "
2368 "escalation, performed by a static piece of data, is thought to be extremely "
2369 "hard to do, although we never say 'never' about security issues."
2370 msgstr ""
2371
2372 #. type: textblock
2373 #: ../src/guestfs.pod:1186
2374 msgid ""
2375 "In any case callers can reduce the attack surface by forcing the filesystem "
2376 "type when mounting (use L</guestfs_mount_vfs>)."
2377 msgstr ""
2378
2379 #. type: =head2
2380 #: ../src/guestfs.pod:1189
2381 msgid "PROTOCOL SECURITY"
2382 msgstr ""
2383
2384 #. type: textblock
2385 #: ../src/guestfs.pod:1191
2386 msgid ""
2387 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2388 "defined upper message size.  However a program that uses libguestfs must "
2389 "also take care - for example you can write a program that downloads a binary "
2390 "from a disk image and executes it locally, and no amount of protocol "
2391 "security will save you from the consequences."
2392 msgstr ""
2393
2394 #. type: =head2
2395 #: ../src/guestfs.pod:1197
2396 msgid "INSPECTION SECURITY"
2397 msgstr ""
2398
2399 #. type: textblock
2400 #: ../src/guestfs.pod:1199
2401 msgid ""
2402 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2403 "directly from the guest, and these could contain any 8 bit data.  Callers "
2404 "should be careful to escape these before printing them to a structured file "
2405 "(for example, use HTML escaping if creating a web page)."
2406 msgstr ""
2407
2408 #. type: textblock
2409 #: ../src/guestfs.pod:1205
2410 msgid ""
2411 "Guest configuration may be altered in unusual ways by the administrator of "
2412 "the virtual machine, and may not reflect reality (particularly for untrusted "
2413 "or actively malicious guests).  For example we parse the hostname from "
2414 "configuration files like C</etc/sysconfig/network> that we find in the "
2415 "guest, but the guest administrator can easily manipulate these files to "
2416 "provide the wrong hostname."
2417 msgstr ""
2418
2419 #. type: textblock
2420 #: ../src/guestfs.pod:1213
2421 msgid ""
2422 "The inspection API parses guest configuration using two external libraries: "
2423 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2424 "designed to be robust in the face of malicious data, although denial of "
2425 "service attacks are still possible, for example with oversized configuration "
2426 "files."
2427 msgstr ""
2428
2429 #. type: =head2
2430 #: ../src/guestfs.pod:1219
2431 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2432 msgstr ""
2433
2434 #. type: textblock
2435 #: ../src/guestfs.pod:1221
2436 msgid ""
2437 "Be very cautious about running commands from the guest.  By running a "
2438 "command in the guest, you are giving CPU time to a binary that you do not "
2439 "control, under the same user account as the library, albeit wrapped in qemu "
2440 "virtualization.  More information and alternatives can be found in the "
2441 "section L</RUNNING COMMANDS>."
2442 msgstr ""
2443
2444 #. type: =head2
2445 #: ../src/guestfs.pod:1227
2446 msgid "CVE-2010-3851"
2447 msgstr "CVE-2010-3851"
2448
2449 #. type: textblock
2450 #: ../src/guestfs.pod:1229
2451 msgid "https://bugzilla.redhat.com/642934"
2452 msgstr "https://bugzilla.redhat.com/642934"
2453
2454 #. type: textblock
2455 #: ../src/guestfs.pod:1231
2456 msgid ""
2457 "This security bug concerns the automatic disk format detection that qemu "
2458 "does on disk images."
2459 msgstr ""
2460
2461 #. type: textblock
2462 #: ../src/guestfs.pod:1234
2463 msgid ""
2464 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2465 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2466 "for one of the known headers, and if none is found then assuming the disk "
2467 "image must be raw."
2468 msgstr ""
2469
2470 #. type: textblock
2471 #: ../src/guestfs.pod:1239
2472 msgid ""
2473 "This allows a guest which has been given a raw disk image to write some "
2474 "other header.  At next boot (or when the disk image is accessed by "
2475 "libguestfs) qemu would do autodetection and think the disk image format was, "
2476 "say, qcow2 based on the header written by the guest."
2477 msgstr ""
2478
2479 #. type: textblock
2480 #: ../src/guestfs.pod:1244
2481 msgid ""
2482 "This in itself would not be a problem, but qcow2 offers many features, one "
2483 "of which is to allow a disk image to refer to another image (called the "
2484 "\"backing disk\").  It does this by placing the path to the backing disk "
2485 "into the qcow2 header.  This path is not validated and could point to any "
2486 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2487 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2488 "control of the attacker."
2489 msgstr ""
2490
2491 #. type: textblock
2492 #: ../src/guestfs.pod:1252
2493 msgid ""
2494 "In libguestfs this is rather hard to exploit except under two circumstances:"
2495 msgstr ""
2496
2497 #. type: textblock
2498 #: ../src/guestfs.pod:1259
2499 msgid "You have enabled the network or have opened the disk in write mode."
2500 msgstr ""
2501
2502 #. type: textblock
2503 #: ../src/guestfs.pod:1263
2504 msgid ""
2505 "You are also running untrusted code from the guest (see L</RUNNING "
2506 "COMMANDS>)."
2507 msgstr ""
2508
2509 #. type: textblock
2510 #: ../src/guestfs.pod:1268
2511 msgid ""
2512 "The way to avoid this is to specify the expected disk format when adding "
2513 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2514 "should always do this if the disk is raw format, and it's a good idea for "
2515 "other cases too."
2516 msgstr ""
2517
2518 #. type: textblock
2519 #: ../src/guestfs.pod:1273
2520 msgid ""
2521 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2522 "format is fetched from libvirt and passed through."
2523 msgstr ""
2524
2525 #. type: textblock
2526 #: ../src/guestfs.pod:1276
2527 msgid ""
2528 "For libguestfs tools, use the I<--format> command line parameter as "
2529 "appropriate."
2530 msgstr ""
2531
2532 #. type: =head1
2533 #: ../src/guestfs.pod:1279
2534 msgid "CONNECTION MANAGEMENT"
2535 msgstr ""
2536
2537 #. type: =head2
2538 #: ../src/guestfs.pod:1281
2539 msgid "guestfs_h *"
2540 msgstr ""
2541
2542 #. type: textblock
2543 #: ../src/guestfs.pod:1283
2544 msgid ""
2545 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2546 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2547 "handle and release all resources used."
2548 msgstr ""
2549
2550 #. type: textblock
2551 #: ../src/guestfs.pod:1287
2552 msgid ""
2553 "For information on using multiple handles and threads, see the section L</"
2554 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
2555 msgstr ""
2556
2557 #. type: =head2
2558 #: ../src/guestfs.pod:1290
2559 msgid "guestfs_create"
2560 msgstr ""
2561
2562 #. type: verbatim
2563 #: ../src/guestfs.pod:1292
2564 #, no-wrap
2565 msgid ""
2566 " guestfs_h *guestfs_create (void);\n"
2567 "\n"
2568 msgstr ""
2569
2570 #. type: textblock
2571 #: ../src/guestfs.pod:1294
2572 msgid "Create a connection handle."
2573 msgstr ""
2574
2575 #. type: textblock
2576 #: ../src/guestfs.pod:1296
2577 msgid ""
2578 "On success this returns a non-NULL pointer to a handle.  On error it returns "
2579 "NULL."
2580 msgstr ""
2581
2582 #. type: textblock
2583 #: ../src/guestfs.pod:1299
2584 msgid ""
2585 "You have to \"configure\" the handle after creating it.  This includes "
2586 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
2587 "handle at least once."
2588 msgstr ""
2589
2590 #. type: textblock
2591 #: ../src/guestfs.pod:1303
2592 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2593 msgstr ""
2594
2595 #. type: textblock
2596 #: ../src/guestfs.pod:1305
2597 msgid ""
2598 "You may also want to configure error handling for the handle.  See the L</"
2599 "ERROR HANDLING> section below."
2600 msgstr ""
2601
2602 #. type: =head2
2603 #: ../src/guestfs.pod:1308
2604 msgid "guestfs_close"
2605 msgstr ""
2606
2607 #. type: verbatim
2608 #: ../src/guestfs.pod:1310
2609 #, no-wrap
2610 msgid ""
2611 " void guestfs_close (guestfs_h *g);\n"
2612 "\n"
2613 msgstr ""
2614
2615 #. type: textblock
2616 #: ../src/guestfs.pod:1312
2617 msgid "This closes the connection handle and frees up all resources used."
2618 msgstr ""
2619
2620 #. type: textblock
2621 #: ../src/guestfs.pod:1314
2622 msgid ""
2623 "If autosync was set on the handle and the handle was launched, then this "
2624 "implicitly calls various functions to unmount filesystems and sync the "
2625 "disk.  See L</guestfs_set_autosync> for more details."
2626 msgstr ""
2627
2628 #. type: textblock
2629 #: ../src/guestfs.pod:1318
2630 msgid "If a close callback was set on the handle, then it is called."
2631 msgstr ""
2632
2633 #. type: =head1
2634 #: ../src/guestfs.pod:1320
2635 msgid "ERROR HANDLING"
2636 msgstr "ОБРОБКА ПОМИЛОК"
2637
2638 #. type: textblock
2639 #: ../src/guestfs.pod:1322
2640 msgid ""
2641 "API functions can return errors.  For example, almost all functions that "
2642 "return C<int> will return C<-1> to indicate an error."
2643 msgstr ""
2644
2645 #. type: textblock
2646 #: ../src/guestfs.pod:1325
2647 msgid ""
2648 "Additional information is available for errors: an error message string and "
2649 "optionally an error number (errno) if the thing that failed was a system "
2650 "call."
2651 msgstr ""
2652
2653 #. type: textblock
2654 #: ../src/guestfs.pod:1329
2655 msgid ""
2656 "You can get at the additional information about the last error on the handle "
2657 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2658 "up an error handler with L</guestfs_set_error_handler>."
2659 msgstr ""
2660
2661 #. type: textblock
2662 #: ../src/guestfs.pod:1334
2663 msgid ""
2664 "When the handle is created, a default error handler is installed which "
2665 "prints the error message string to C<stderr>.  For small short-running "
2666 "command line programs it is sufficient to do:"
2667 msgstr ""
2668
2669 #. type: verbatim
2670 #: ../src/guestfs.pod:1338
2671 #, no-wrap
2672 msgid ""
2673 " if (guestfs_launch (g) == -1)\n"
2674 "   exit (EXIT_FAILURE);\n"
2675 "\n"
2676 msgstr ""
2677
2678 #. type: textblock
2679 #: ../src/guestfs.pod:1341
2680 msgid ""
2681 "since the default error handler will ensure that an error message has been "
2682 "printed to C<stderr> before the program exits."
2683 msgstr ""
2684
2685 #. type: textblock
2686 #: ../src/guestfs.pod:1344
2687 msgid ""
2688 "For other programs the caller will almost certainly want to install an "
2689 "alternate error handler or do error handling in-line like this:"
2690 msgstr ""
2691
2692 #. type: verbatim
2693 #: ../src/guestfs.pod:1347
2694 #, no-wrap
2695 msgid ""
2696 " g = guestfs_create ();\n"
2697 " \n"
2698 msgstr ""
2699
2700 #. type: verbatim
2701 #: ../src/guestfs.pod:1349
2702 #, no-wrap
2703 msgid ""
2704 " /* This disables the default behaviour of printing errors\n"
2705 "    on stderr. */\n"
2706 " guestfs_set_error_handler (g, NULL, NULL);\n"
2707 " \n"
2708 msgstr ""
2709
2710 #. type: verbatim
2711 #: ../src/guestfs.pod:1353
2712 #, no-wrap
2713 msgid ""
2714 " if (guestfs_launch (g) == -1) {\n"
2715 "   /* Examine the error message and print it etc. */\n"
2716 "   char *msg = guestfs_last_error (g);\n"
2717 "   int errnum = guestfs_last_errno (g);\n"
2718 "   fprintf (stderr, \"%s\\n\", msg);\n"
2719 "   /* ... */\n"
2720 "  }\n"
2721 "\n"
2722 msgstr ""
2723
2724 #. type: textblock
2725 #: ../src/guestfs.pod:1361
2726 msgid ""
2727 "Out of memory errors are handled differently.  The default action is to call "
2728 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2729 "guestfs_set_out_of_memory_handler>."
2730 msgstr ""
2731
2732 #. type: textblock
2733 #: ../src/guestfs.pod:1365
2734 msgid ""
2735 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2736 "because there is no handle if this happens there is no way to get additional "
2737 "error information.  However L</guestfs_create> is supposed to be a "
2738 "lightweight operation which can only fail because of insufficient memory (it "
2739 "returns NULL in this case)."
2740 msgstr ""
2741
2742 #. type: =head2
2743 #: ../src/guestfs.pod:1371
2744 msgid "guestfs_last_error"
2745 msgstr ""
2746
2747 #. type: verbatim
2748 #: ../src/guestfs.pod:1373
2749 #, no-wrap
2750 msgid ""
2751 " const char *guestfs_last_error (guestfs_h *g);\n"
2752 "\n"
2753 msgstr ""
2754
2755 #. type: textblock
2756 #: ../src/guestfs.pod:1375
2757 msgid ""
2758 "This returns the last error message that happened on C<g>.  If there has not "
2759 "been an error since the handle was created, then this returns C<NULL>."
2760 msgstr ""
2761
2762 #. type: textblock
2763 #: ../src/guestfs.pod:1379
2764 msgid ""
2765 "The lifetime of the returned string is until the next error occurs, or L</"
2766 "guestfs_close> is called."
2767 msgstr ""
2768
2769 #. type: =head2
2770 #: ../src/guestfs.pod:1382
2771 msgid "guestfs_last_errno"
2772 msgstr ""
2773
2774 #. type: verbatim
2775 #: ../src/guestfs.pod:1384
2776 #, no-wrap
2777 msgid ""
2778 " int guestfs_last_errno (guestfs_h *g);\n"
2779 "\n"
2780 msgstr ""
2781
2782 #. type: textblock
2783 #: ../src/guestfs.pod:1386
2784 msgid "This returns the last error number (errno) that happened on C<g>."
2785 msgstr ""
2786
2787 #. type: textblock
2788 #: ../src/guestfs.pod:1388
2789 msgid "If successful, an errno integer not equal to zero is returned."
2790 msgstr ""
2791
2792 #. type: textblock
2793 #: ../src/guestfs.pod:1390
2794 msgid ""
2795 "If no error, this returns 0.  This call can return 0 in three situations:"
2796 msgstr ""
2797
2798 #. type: textblock
2799 #: ../src/guestfs.pod:1397
2800 msgid "There has not been any error on the handle."
2801 msgstr ""
2802
2803 #. type: textblock
2804 #: ../src/guestfs.pod:1401
2805 msgid ""
2806 "There has been an error but the errno was meaningless.  This corresponds to "
2807 "the case where the error did not come from a failed system call, but for "
2808 "some other reason."
2809 msgstr ""
2810
2811 #. type: textblock
2812 #: ../src/guestfs.pod:1407
2813 msgid ""
2814 "There was an error from a failed system call, but for some reason the errno "
2815 "was not captured and returned.  This usually indicates a bug in libguestfs."
2816 msgstr ""
2817
2818 #. type: textblock
2819 #: ../src/guestfs.pod:1413
2820 msgid ""
2821 "Libguestfs tries to convert the errno from inside the applicance into a "
2822 "corresponding errno for the caller (not entirely trivial: the appliance "
2823 "might be running a completely different operating system from the library "
2824 "and error numbers are not standardized across Un*xen).  If this could not be "
2825 "done, then the error is translated to C<EINVAL>.  In practice this should "
2826 "only happen in very rare circumstances."
2827 msgstr ""
2828
2829 #. type: =head2
2830 #: ../src/guestfs.pod:1421
2831 msgid "guestfs_set_error_handler"
2832 msgstr ""
2833
2834 #. type: verbatim
2835 #: ../src/guestfs.pod:1423
2836 #, no-wrap
2837 msgid ""
2838 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2839 "                                           void *opaque,\n"
2840 "                                           const char *msg);\n"
2841 " void guestfs_set_error_handler (guestfs_h *g,\n"
2842 "                                 guestfs_error_handler_cb cb,\n"
2843 "                                 void *opaque);\n"
2844 "\n"
2845 msgstr ""
2846
2847 #. type: textblock
2848 #: ../src/guestfs.pod:1430
2849 msgid ""
2850 "The callback C<cb> will be called if there is an error.  The parameters "
2851 "passed to the callback are an opaque data pointer and the error message "
2852 "string."
2853 msgstr ""
2854
2855 #. type: textblock
2856 #: ../src/guestfs.pod:1434
2857 msgid ""
2858 "C<errno> is not passed to the callback.  To get that the callback must call "
2859 "L</guestfs_last_errno>."
2860 msgstr ""
2861
2862 #. type: textblock
2863 #: ../src/guestfs.pod:1437
2864 msgid ""
2865 "Note that the message string C<msg> is freed as soon as the callback "
2866 "function returns, so if you want to stash it somewhere you must make your "
2867 "own copy."
2868 msgstr ""
2869
2870 #. type: textblock
2871 #: ../src/guestfs.pod:1441
2872 msgid "The default handler prints messages on C<stderr>."
2873 msgstr ""
2874
2875 #. type: textblock
2876 #: ../src/guestfs.pod:1443
2877 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2878 msgstr ""
2879
2880 #. type: =head2
2881 #: ../src/guestfs.pod:1445
2882 msgid "guestfs_get_error_handler"
2883 msgstr ""
2884
2885 #. type: verbatim
2886 #: ../src/guestfs.pod:1447
2887 #, no-wrap
2888 msgid ""
2889 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2890 "                                                     void **opaque_rtn);\n"
2891 "\n"
2892 msgstr ""
2893
2894 #. type: textblock
2895 #: ../src/guestfs.pod:1450
2896 msgid "Returns the current error handler callback."
2897 msgstr ""
2898
2899 #. type: =head2
2900 #: ../src/guestfs.pod:1452
2901 msgid "guestfs_set_out_of_memory_handler"
2902 msgstr ""
2903
2904 #. type: verbatim
2905 #: ../src/guestfs.pod:1454
2906 #, no-wrap
2907 msgid ""
2908 " typedef void (*guestfs_abort_cb) (void);\n"
2909 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2910 "                                        guestfs_abort_cb);\n"
2911 "\n"
2912 msgstr ""
2913
2914 #. type: textblock
2915 #: ../src/guestfs.pod:1458
2916 msgid ""
2917 "The callback C<cb> will be called if there is an out of memory situation.  "
2918 "I<Note this callback must not return>."
2919 msgstr ""
2920
2921 #. type: textblock
2922 #: ../src/guestfs.pod:1461
2923 msgid "The default is to call L<abort(3)>."
2924 msgstr ""
2925
2926 #. type: textblock
2927 #: ../src/guestfs.pod:1463
2928 msgid ""
2929 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2930 msgstr ""
2931
2932 #. type: =head2
2933 #: ../src/guestfs.pod:1466
2934 msgid "guestfs_get_out_of_memory_handler"
2935 msgstr ""
2936
2937 #. type: verbatim
2938 #: ../src/guestfs.pod:1468
2939 #, no-wrap
2940 msgid ""
2941 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2942 "\n"
2943 msgstr ""
2944
2945 #. type: textblock
2946 #: ../src/guestfs.pod:1470
2947 msgid "This returns the current out of memory handler."
2948 msgstr ""
2949
2950 #. type: =head1
2951 #: ../src/guestfs.pod:1472
2952 msgid "API CALLS"
2953 msgstr ""
2954
2955 #. type: textblock
2956 #: ../src/guestfs.pod:1474 ../fish/guestfish.pod:1010
2957 msgid "@ACTIONS@"
2958 msgstr "@ACTIONS@"
2959
2960 #. type: =head1
2961 #: ../src/guestfs.pod:1476
2962 msgid "STRUCTURES"
2963 msgstr "СТРУКТУРИ"
2964
2965 #. type: textblock
2966 #: ../src/guestfs.pod:1478
2967 msgid "@STRUCTS@"
2968 msgstr "@STRUCTS@"
2969
2970 #. type: =head1
2971 #: ../src/guestfs.pod:1480
2972 msgid "AVAILABILITY"
2973 msgstr ""
2974
2975 #. type: =head2
2976 #: ../src/guestfs.pod:1482
2977 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2978 msgstr ""
2979
2980 #. type: textblock
2981 #: ../src/guestfs.pod:1484
2982 msgid ""
2983 "Using L</guestfs_available> you can test availability of the following "
2984 "groups of functions.  This test queries the appliance to see if the "
2985 "appliance you are currently using supports the functionality."
2986 msgstr ""
2987
2988 #. type: textblock
2989 #: ../src/guestfs.pod:1489
2990 msgid "@AVAILABILITY@"
2991 msgstr ""
2992
2993 #. type: =head2
2994 #: ../src/guestfs.pod:1491
2995 msgid "GUESTFISH supported COMMAND"
2996 msgstr ""
2997
2998 #. type: textblock
2999 #: ../src/guestfs.pod:1493
3000 msgid ""
3001 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3002 "prints out the available groups and whether they are supported by this build "
3003 "of libguestfs.  Note however that you have to do C<run> first."
3004 msgstr ""
3005
3006 #. type: =head2
3007 #: ../src/guestfs.pod:1498
3008 msgid "SINGLE CALLS AT COMPILE TIME"
3009 msgstr ""
3010
3011 #. type: textblock
3012 #: ../src/guestfs.pod:1500
3013 msgid ""
3014 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3015 "function, such as:"
3016 msgstr ""
3017
3018 #. type: verbatim
3019 #: ../src/guestfs.pod:1503
3020 #, no-wrap
3021 msgid ""
3022 " #define LIBGUESTFS_HAVE_DD 1\n"
3023 "\n"
3024 msgstr ""
3025
3026 #. type: textblock
3027 #: ../src/guestfs.pod:1505
3028 msgid "if L</guestfs_dd> is available."
3029 msgstr ""
3030
3031 #. type: textblock
3032 #: ../src/guestfs.pod:1507
3033 msgid ""
3034 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3035 "function is available at compile time, we recommended using build tools such "
3036 "as autoconf or cmake.  For example in autotools you could use:"
3037 msgstr ""
3038
3039 #. type: verbatim
3040 #: ../src/guestfs.pod:1512
3041 #, no-wrap
3042 msgid ""
3043 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3044 " AC_CHECK_FUNCS([guestfs_dd])\n"
3045 "\n"
3046 msgstr ""
3047
3048 #. type: textblock
3049 #: ../src/guestfs.pod:1515
3050 msgid ""
3051 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3052 "in your program."
3053 msgstr ""
3054
3055 #. type: =head2
3056 #: ../src/guestfs.pod:1518
3057 msgid "SINGLE CALLS AT RUN TIME"
3058 msgstr ""
3059
3060 #. type: textblock
3061 #: ../src/guestfs.pod:1520
3062 msgid ""
3063 "Testing at compile time doesn't guarantee that a function really exists in "
3064 "the library.  The reason is that you might be dynamically linked against a "
3065 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3066 "This situation unfortunately results in a segmentation fault, which is a "
3067 "shortcoming of the C dynamic linking system itself."
3068 msgstr ""
3069
3070 #. type: textblock
3071 #: ../src/guestfs.pod:1527
3072 msgid ""
3073 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3074 "in this example program (note that you still need the compile time check as "
3075 "well):"
3076 msgstr ""
3077
3078 #. type: verbatim
3079 #: ../src/guestfs.pod:1531
3080 #, no-wrap
3081 msgid ""
3082 " #include <stdio.h>\n"
3083 " #include <stdlib.h>\n"
3084 " #include <unistd.h>\n"
3085 " #include <dlfcn.h>\n"
3086 " #include <guestfs.h>\n"
3087 " \n"
3088 msgstr ""
3089
3090 #. type: verbatim
3091 #: ../src/guestfs.pod:1537
3092 #, no-wrap
3093 msgid ""
3094 " main ()\n"
3095 " {\n"
3096 " #ifdef LIBGUESTFS_HAVE_DD\n"
3097 "   void *dl;\n"
3098 "   int has_function;\n"
3099 " \n"
3100 msgstr ""
3101
3102 #. type: verbatim
3103 #: ../src/guestfs.pod:1543
3104 #, no-wrap
3105 msgid ""
3106 "   /* Test if the function guestfs_dd is really available. */\n"
3107 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3108 "   if (!dl) {\n"
3109 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3110 "     exit (EXIT_FAILURE);\n"
3111 "   }\n"
3112 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3113 "   dlclose (dl);\n"
3114 " \n"
3115 msgstr ""
3116
3117 #. type: verbatim
3118 #: ../src/guestfs.pod:1552
3119 #, no-wrap
3120 msgid ""
3121 "   if (!has_function)\n"
3122 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3123 "   else {\n"
3124 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3125 "     /* Now it's safe to call\n"
3126 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3127 "     */\n"
3128 "   }\n"
3129 " #else\n"
3130 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3131 " #endif\n"
3132 "  }\n"
3133 "\n"
3134 msgstr ""
3135
3136 #. type: textblock
3137 #: ../src/guestfs.pod:1565
3138 msgid ""
3139 "You may think the above is an awful lot of hassle, and it is.  There are "
3140 "other ways outside of the C linking system to ensure that this kind of "
3141 "incompatibility never arises, such as using package versioning:"
3142 msgstr ""
3143
3144 #. type: verbatim
3145 #: ../src/guestfs.pod:1570
3146 #, no-wrap
3147 msgid ""
3148 " Requires: libguestfs >= 1.0.80\n"
3149 "\n"
3150 msgstr ""
3151
3152 #. type: =head1
3153 #: ../src/guestfs.pod:1572
3154 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3155 msgstr ""
3156
3157 #. type: textblock
3158 #: ../src/guestfs.pod:1574
3159 msgid ""
3160 "A recent feature of the API is the introduction of calls which take optional "
3161 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3162 "takes variable arguments (ie. C<...>), as in this example:"
3163 msgstr ""
3164
3165 #. type: verbatim
3166 #: ../src/guestfs.pod:1579
3167 #, no-wrap
3168 msgid ""
3169 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3170 "\n"
3171 msgstr ""
3172
3173 #. type: textblock
3174 #: ../src/guestfs.pod:1581
3175 msgid ""
3176 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3177 "call with no optional arguments specified:"
3178 msgstr ""
3179
3180 #. type: verbatim
3181 #: ../src/guestfs.pod:1584
3182 #, no-wrap
3183 msgid ""
3184 " guestfs_add_drive_opts (g, filename, -1);\n"
3185 "\n"
3186 msgstr ""
3187
3188 #. type: textblock
3189 #: ../src/guestfs.pod:1586
3190 msgid "With a single optional argument:"
3191 msgstr ""
3192
3193 #. type: verbatim
3194 #: ../src/guestfs.pod:1588
3195 #, no-wrap
3196 msgid ""
3197 " guestfs_add_drive_opts (g, filename,\n"
3198 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3199 "                         -1);\n"
3200 "\n"
3201 msgstr ""
3202
3203 #. type: textblock
3204 #: ../src/guestfs.pod:1592
3205 msgid "With two:"
3206 msgstr ""
3207
3208 #. type: verbatim
3209 #: ../src/guestfs.pod:1594
3210 #, no-wrap
3211 msgid ""
3212 " guestfs_add_drive_opts (g, filename,\n"
3213 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3214 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3215 "                         -1);\n"
3216 "\n"
3217 msgstr ""
3218
3219 #. type: textblock
3220 #: ../src/guestfs.pod:1599
3221 msgid ""
3222 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3223 "happen!"
3224 msgstr ""
3225
3226 #. type: =head2
3227 #: ../src/guestfs.pod:1602
3228 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3229 msgstr ""
3230
3231 #. type: textblock
3232 #: ../src/guestfs.pod:1604
3233 msgid ""
3234 "The second variant has the same name with the suffix C<_va>, which works the "
3235 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3236 "example function, this is declared:"
3237 msgstr ""
3238
3239 #. type: verbatim
3240 #: ../src/guestfs.pod:1608
3241 #, no-wrap
3242 msgid ""
3243 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3244 "                                va_list args);\n"
3245 "\n"
3246 msgstr ""
3247
3248 #. type: =head2
3249 #: ../src/guestfs.pod:1611
3250 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3251 msgstr ""
3252
3253 #. type: textblock
3254 #: ../src/guestfs.pod:1613
3255 msgid ""
3256 "The third variant is useful where you need to construct these calls.  You "
3257 "pass in a structure where you fill in the optional fields.  The structure "
3258 "has a bitmask as the first element which you must set to indicate which "
3259 "fields you have filled in.  For our example function the structure and call "
3260 "are declared:"
3261 msgstr ""
3262
3263 #. type: verbatim
3264 #: ../src/guestfs.pod:1619
3265 #, no-wrap
3266 msgid ""
3267 " struct guestfs_add_drive_opts_argv {\n"
3268 "   uint64_t bitmask;\n"
3269 "   int readonly;\n"
3270 "   const char *format;\n"
3271 "   /* ... */\n"
3272 " };\n"
3273 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3274 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3275 "\n"
3276 msgstr ""
3277
3278 #. type: textblock
3279 #: ../src/guestfs.pod:1628
3280 msgid "You could call it like this:"
3281 msgstr ""
3282
3283 #. type: verbatim
3284 #: ../src/guestfs.pod:1630
3285 #, no-wrap
3286 msgid ""
3287 " struct guestfs_add_drive_opts_argv optargs = {\n"
3288 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3289 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3290 "   .readonly = 1,\n"
3291 "   .format = \"qcow2\"\n"
3292 " };\n"
3293 " \n"
3294 msgstr ""
3295
3296 #. type: verbatim
3297 #: ../src/guestfs.pod:1637
3298 #, no-wrap
3299 msgid ""
3300 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3301 "\n"
3302 msgstr ""
3303
3304 #. type: textblock
3305 #: ../src/guestfs.pod:1639 ../src/guestfs-actions.pod:11
3306 #: ../src/guestfs-actions.pod:1861 ../fish/guestfish-actions.pod:9
3307 #: ../fish/guestfish-actions.pod:1265 ../tools/virt-win-reg.pl:532
3308 msgid "Notes:"
3309 msgstr "Нотатки:"
3310
3311 #. type: textblock
3312 #: ../src/guestfs.pod:1645
3313 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3314 msgstr ""
3315
3316 #. type: textblock
3317 #: ../src/guestfs.pod:1650
3318 msgid "You do not need to fill in all fields of the structure."
3319 msgstr ""
3320
3321 #. type: textblock
3322 #: ../src/guestfs.pod:1654
3323 msgid ""
3324 "There must be a one-to-one correspondence between fields of the structure "
3325 "that are filled in, and bits set in the bitmask."
3326 msgstr ""
3327
3328 #. type: =head2
3329 #: ../src/guestfs.pod:1659
3330 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3331 msgstr ""
3332
3333 #. type: textblock
3334 #: ../src/guestfs.pod:1661
3335 msgid ""
3336 "In other languages, optional arguments are expressed in the way that is "
3337 "natural for that language.  We refer you to the language-specific "
3338 "documentation for more details on that."
3339 msgstr ""
3340
3341 #. type: textblock
3342 #: ../src/guestfs.pod:1665
3343 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3344 msgstr ""
3345
3346 #. type: =head2
3347 #: ../src/guestfs.pod:1667
3348 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../src/guestfs.pod:1669
3353 msgid ""
3354 "B<Note:> This section documents the generic event mechanism introduced in "
3355 "libguestfs 1.10, which you should use in new code if possible.  The old "
3356 "functions C<guestfs_set_log_message_callback>, "
3357 "C<guestfs_set_subprocess_quit_callback>, "
3358 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3359 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3360 "page.  Because of the ABI guarantee, the old functions continue to work."
3361 msgstr ""
3362
3363 #. type: textblock
3364 #: ../src/guestfs.pod:1678
3365 msgid ""
3366 "Handles generate events when certain things happen, such as log messages "
3367 "being generated, progress messages during long-running operations, or the "
3368 "handle being closed.  The API calls described below let you register a "
3369 "callback to be called when events happen.  You can register multiple "
3370 "callbacks (for the same, different or overlapping sets of events), and "
3371 "individually remove callbacks.  If callbacks are not removed, then they "
3372 "remain in force until the handle is closed."
3373 msgstr ""
3374
3375 #. type: textblock
3376 #: ../src/guestfs.pod:1686
3377 msgid ""
3378 "In the current implementation, events are only generated synchronously: that "
3379 "means that events (and hence callbacks) can only happen while you are in the "
3380 "middle of making another libguestfs call.  The callback is called in the "
3381 "same thread."
3382 msgstr ""
3383
3384 #. type: textblock
3385 #: ../src/guestfs.pod:1691
3386 msgid ""
3387 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3388 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3389 msgstr ""
3390
3391 #. type: =head3
3392 #: ../src/guestfs.pod:1695
3393 msgid "CLASSES OF EVENTS"
3394 msgstr ""
3395
3396 #. type: =item
3397 #: ../src/guestfs.pod:1699
3398 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3399 msgstr ""
3400
3401 #. type: textblock
3402 #: ../src/guestfs.pod:1702
3403 msgid ""
3404 "The callback function will be called while the handle is being closed "
3405 "(synchronously from L</guestfs_close>)."
3406 msgstr ""
3407
3408 #. type: textblock
3409 #: ../src/guestfs.pod:1705
3410 msgid ""
3411 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3412 "handles that are open when the program exits.  This means that this callback "
3413 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3414 "problems in higher-level languages (eg. if your HLL interpreter has already "
3415 "been cleaned up by the time this is called, and if your callback then jumps "
3416 "into some HLL function)."
3417 msgstr ""
3418
3419 #. type: textblock
3420 #: ../src/guestfs.pod:1712
3421 msgid ""
3422 "If no callback is registered: the handle is closed without any callback "
3423 "being invoked."
3424 msgstr ""
3425
3426 #. type: =item
3427 #: ../src/guestfs.pod:1715
3428 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3429 msgstr ""
3430
3431 #. type: textblock
3432 #: ../src/guestfs.pod:1718
3433 msgid ""
3434 "The callback function will be called when the child process quits, either "
3435 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3436 "corresponds to a transition from any state to the CONFIG state)."
3437 msgstr ""
3438
3439 #. type: textblock
3440 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
3441 msgid "If no callback is registered: the event is ignored."
3442 msgstr ""
3443
3444 #. type: =item
3445 #: ../src/guestfs.pod:1724
3446 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3447 msgstr ""
3448
3449 #. type: textblock
3450 #: ../src/guestfs.pod:1727
3451 msgid ""
3452 "The callback function will be called when the child process becomes ready "
3453 "first time after it has been launched.  (This corresponds to a transition "
3454 "from LAUNCHING to the READY state)."
3455 msgstr ""
3456
3457 #. type: =item
3458 #: ../src/guestfs.pod:1733
3459 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3460 msgstr ""
3461
3462 #. type: textblock
3463 #: ../src/guestfs.pod:1736
3464 msgid ""
3465 "Some long-running operations can generate progress messages.  If this "
3466 "callback is registered, then it will be called each time a progress message "
3467 "is generated (usually two seconds after the operation started, and three "
3468 "times per second thereafter until it completes, although the frequency may "
3469 "change in future versions)."
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../src/guestfs.pod:1742
3474 msgid ""
3475 "The callback receives in the payload four unsigned 64 bit numbers which are "
3476 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3477 msgstr ""
3478
3479 #. type: textblock
3480 #: ../src/guestfs.pod:1745
3481 msgid ""
3482 "The units of C<total> are not defined, although for some operations C<total> "
3483 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3484 "or megabytes), and C<position> may be the portion which has been transferred."
3485 msgstr ""
3486
3487 #. type: textblock
3488 #: ../src/guestfs.pod:1750
3489 msgid "The only defined and stable parts of the API are:"
3490 msgstr ""
3491
3492 #. type: textblock
3493 #: ../src/guestfs.pod:1756
3494 msgid ""
3495 "The callback can display to the user some type of progress bar or indicator "
3496 "which shows the ratio of C<position>:C<total>."
3497 msgstr ""
3498
3499 #. type: textblock
3500 #: ../src/guestfs.pod:1761
3501 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3502 msgstr ""
3503
3504 #. type: textblock
3505 #: ../src/guestfs.pod:1765
3506 msgid ""
3507 "If any progress notification is sent during a call, then a final progress "
3508 "notification is always sent when C<position> = C<total> (I<unless> the call "
3509 "fails with an error)."
3510 msgstr ""
3511
3512 #. type: textblock
3513 #: ../src/guestfs.pod:1769
3514 msgid ""
3515 "This is to simplify caller code, so callers can easily set the progress "
3516 "indicator to \"100%\" at the end of the operation, without requiring special "
3517 "code to detect this case."
3518 msgstr ""
3519
3520 #. type: textblock
3521 #: ../src/guestfs.pod:1775
3522 msgid ""
3523 "For some calls we are unable to estimate the progress of the call, but we "
3524 "can still generate progress messages to indicate activity.  This is known as "
3525 "\"pulse mode\", and is directly supported by certain progress bar "
3526 "implementations (eg. GtkProgressBar)."
3527 msgstr ""
3528
3529 #. type: textblock
3530 #: ../src/guestfs.pod:1780
3531 msgid ""
3532 "For these calls, zero or more progress messages are generated with "
3533 "C<position = 0> and C<total = 1>, followed by a final message with "
3534 "C<position = total = 1>."
3535 msgstr ""
3536
3537 #. type: textblock
3538 #: ../src/guestfs.pod:1784
3539 msgid ""
3540 "As noted above, if the call fails with an error then the final message may "
3541 "not be generated."
3542 msgstr ""
3543
3544 #. type: textblock
3545 #: ../src/guestfs.pod:1789
3546 msgid ""
3547 "The callback also receives the procedure number (C<proc_nr>) and serial "
3548 "number (C<serial>) of the call.  These are only useful for debugging "
3549 "protocol issues, and the callback can normally ignore them.  The callback "
3550 "may want to print these numbers in error messages or debugging messages."
3551 msgstr ""
3552
3553 #. type: textblock
3554 #: ../src/guestfs.pod:1795
3555 msgid "If no callback is registered: progress messages are discarded."
3556 msgstr ""
3557
3558 #. type: =item
3559 #: ../src/guestfs.pod:1797
3560 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../src/guestfs.pod:1800
3565 msgid ""
3566 "The callback function is called whenever a log message is generated by qemu, "
3567 "the appliance kernel, guestfsd (daemon), or utility programs."
3568 msgstr ""
3569
3570 #. type: textblock
3571 #: ../src/guestfs.pod:1803
3572 msgid ""
3573 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3574 "guestfs_launch>) then additional debug messages are generated."
3575 msgstr ""
3576
3577 #. type: textblock
3578 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
3579 msgid ""
3580 "If no callback is registered: the messages are discarded unless the verbose "
3581 "flag is set in which case they are sent to stderr.  You can override the "
3582 "printing of verbose messages to stderr by setting up a callback."
3583 msgstr ""
3584
3585 #. type: =item
3586 #: ../src/guestfs.pod:1811
3587 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3588 msgstr ""
3589
3590 #. type: textblock
3591 #: ../src/guestfs.pod:1814
3592 msgid ""
3593 "The callback function is called whenever a log message is generated by the "
3594 "library part of libguestfs."
3595 msgstr ""
3596
3597 #. type: textblock
3598 #: ../src/guestfs.pod:1817
3599 msgid ""
3600 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3601 "messages are generated."
3602 msgstr ""
3603
3604 #. type: =item
3605 #: ../src/guestfs.pod:1825
3606 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3607 msgstr ""
3608
3609 #. type: textblock
3610 #: ../src/guestfs.pod:1828
3611 msgid ""
3612 "The callback function is called whenever a trace message is generated.  This "
3613 "only applies if the trace flag (L</guestfs_set_trace>) is set."
3614 msgstr ""
3615
3616 #. type: textblock
3617 #: ../src/guestfs.pod:1831
3618 msgid ""
3619 "If no callback is registered: the messages are sent to stderr.  You can "
3620 "override the printing of trace messages to stderr by setting up a callback."
3621 msgstr ""
3622
3623 #. type: =head3
3624 #: ../src/guestfs.pod:1837
3625 msgid "guestfs_set_event_callback"
3626 msgstr ""
3627
3628 #. type: verbatim
3629 #: ../src/guestfs.pod:1839
3630 #, no-wrap
3631 msgid ""
3632 " int guestfs_set_event_callback (guestfs_h *g,\n"
3633 "                                 guestfs_event_callback cb,\n"
3634 "                                 uint64_t event_bitmask,\n"
3635 "                                 int flags,\n"
3636 "                                 void *opaque);\n"
3637 "\n"
3638 msgstr ""
3639
3640 #. type: textblock
3641 #: ../src/guestfs.pod:1845
3642 msgid ""
3643 "This function registers a callback (C<cb>) for all event classes in the "
3644 "C<event_bitmask>."
3645 msgstr ""
3646
3647 #. type: textblock
3648 #: ../src/guestfs.pod:1848
3649 msgid ""
3650 "For example, to register for all log message events, you could call this "
3651 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
3652 "To register a single callback for all possible classes of events, use "
3653 "C<GUESTFS_EVENT_ALL>."
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../src/guestfs.pod:1854
3658 msgid "C<flags> should always be passed as 0."
3659 msgstr ""
3660
3661 #. type: textblock
3662 #: ../src/guestfs.pod:1856
3663 msgid ""
3664 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
3665 "it for any purpose."
3666 msgstr ""
3667
3668 #. type: textblock
3669 #: ../src/guestfs.pod:1859
3670 msgid ""
3671 "The return value is the event handle (an integer) which you can use to "
3672 "delete the callback (see below)."
3673 msgstr ""
3674
3675 #. type: textblock
3676 #: ../src/guestfs.pod:1862
3677 msgid ""
3678 "If there is an error, this function returns C<-1>, and sets the error in the "
3679 "handle in the usual way (see L</guestfs_last_error> etc.)"
3680 msgstr ""
3681
3682 #. type: textblock
3683 #: ../src/guestfs.pod:1865
3684 msgid ""
3685 "Callbacks remain in effect until they are deleted, or until the handle is "
3686 "closed."
3687 msgstr ""
3688
3689 #. type: textblock
3690 #: ../src/guestfs.pod:1868
3691 msgid ""
3692 "In the case where multiple callbacks are registered for a particular event "
3693 "class, all of the callbacks are called.  The order in which multiple "
3694 "callbacks are called is not defined."
3695 msgstr ""
3696
3697 #. type: =head3
3698 #: ../src/guestfs.pod:1872
3699 msgid "guestfs_delete_event_callback"
3700 msgstr ""
3701
3702 #. type: verbatim
3703 #: ../src/guestfs.pod:1874
3704 #, no-wrap
3705 msgid ""
3706 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
3707 "\n"
3708 msgstr ""
3709
3710 #. type: textblock
3711 #: ../src/guestfs.pod:1876
3712 msgid ""
3713 "Delete a callback that was previously registered.  C<event_handle> should be "
3714 "the integer that was returned by a previous call to "
3715 "C<guestfs_set_event_callback> on the same handle."
3716 msgstr ""
3717
3718 #. type: =head3
3719 #: ../src/guestfs.pod:1880
3720 msgid "guestfs_event_callback"
3721 msgstr ""
3722
3723 #. type: verbatim
3724 #: ../src/guestfs.pod:1882
3725 #, no-wrap
3726 msgid ""
3727 " typedef void (*guestfs_event_callback) (\n"
3728 "                  guestfs_h *g,\n"
3729 "                  void *opaque,\n"
3730 "                  uint64_t event,\n"
3731 "                  int event_handle,\n"
3732 "                  int flags,\n"
3733 "                  const char *buf, size_t buf_len,\n"
3734 "                  const uint64_t *array, size_t array_len);\n"
3735 "\n"
3736 msgstr ""
3737
3738 #. type: textblock
3739 #: ../src/guestfs.pod:1891
3740 msgid ""
3741 "This is the type of the event callback function that you have to provide."
3742 msgstr ""
3743
3744 #. type: textblock
3745 #: ../src/guestfs.pod:1894
3746 msgid ""
3747 "The basic parameters are: the handle (C<g>), the opaque user pointer "
3748 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
3749 "handle, and C<flags> which in the current API you should ignore."
3750 msgstr ""
3751
3752 #. type: textblock
3753 #: ../src/guestfs.pod:1898
3754 msgid ""
3755 "The remaining parameters contain the event payload (if any).  Each event may "
3756 "contain a payload, which usually relates to the event class, but for future "
3757 "proofing your code should be written to handle any payload for any event "
3758 "class."
3759 msgstr ""
3760
3761 #. type: textblock
3762 #: ../src/guestfs.pod:1903
3763 msgid ""
3764 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
3765 "there is no message buffer).  Note that this message buffer can contain "
3766 "arbitrary 8 bit data, including NUL bytes."
3767 msgstr ""
3768
3769 #. type: textblock
3770 #: ../src/guestfs.pod:1907
3771 msgid ""
3772 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
3773 "moment this is only used for progress messages."
3774 msgstr ""
3775
3776 #. type: =head3
3777 #: ../src/guestfs.pod:1910
3778 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
3779 msgstr ""
3780
3781 #. type: textblock
3782 #: ../src/guestfs.pod:1912
3783 msgid ""
3784 "One motivation for the generic event API was to allow GUI programs to "
3785 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
3786 "unconditionally to C<stderr>."
3787 msgstr ""
3788
3789 #. type: textblock
3790 #: ../src/guestfs.pod:1916
3791 msgid ""
3792 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
3793 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
3794 "messages are not events; you must capture error messages separately)."
3795 msgstr ""
3796
3797 #. type: textblock
3798 #: ../src/guestfs.pod:1921
3799 msgid ""
3800 "Programs have to set up a callback to capture the classes of events of "
3801 "interest:"
3802 msgstr ""
3803
3804 #. type: verbatim
3805 #: ../src/guestfs.pod:1924
3806 #, no-wrap
3807 msgid ""
3808 " int eh =\n"
3809 "   guestfs_set_event_callback\n"
3810 "     (g, message_callback,\n"
3811 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
3812 "      GUESTFS_EVENT_TRACE,\n"
3813 "      0, NULL) == -1)\n"
3814 " if (eh == -1) {\n"
3815 "   // handle error in the usual way\n"
3816 " }\n"
3817 "\n"
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../src/guestfs.pod:1934
3822 msgid ""
3823 "The callback can then direct messages to the appropriate place.  In this "
3824 "example, messages are directed to syslog:"
3825 msgstr ""
3826
3827 #. type: verbatim
3828 #: ../src/guestfs.pod:1937
3829 #, no-wrap
3830 msgid ""
3831 " static void\n"
3832 " message_callback (\n"
3833 "         guestfs_h *g,\n"
3834 "         void *opaque,\n"
3835 "         uint64_t event,\n"
3836 "         int event_handle,\n"
3837 "         int flags,\n"
3838 "         const char *buf, size_t buf_len,\n"
3839 "         const uint64_t *array, size_t array_len)\n"
3840 " {\n"
3841 "   const int priority = LOG_USER|LOG_INFO;\n"
3842 "   if (buf_len > 0)\n"
3843 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
3844 " }\n"
3845 "\n"
3846 msgstr ""
3847
3848 #. type: =head1
3849 #: ../src/guestfs.pod:1952
3850 msgid "PRIVATE DATA AREA"
3851 msgstr ""
3852
3853 #. type: textblock
3854 #: ../src/guestfs.pod:1954
3855 msgid ""
3856 "You can attach named pieces of private data to the libguestfs handle, fetch "
3857 "them by name, and walk over them, for the lifetime of the handle.  This is "
3858 "called the private data area and is only available from the C API."
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../src/guestfs.pod:1959
3863 msgid "To attach a named piece of data, use the following call:"
3864 msgstr ""
3865
3866 #. type: verbatim
3867 #: ../src/guestfs.pod:1961
3868 #, no-wrap
3869 msgid ""
3870 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3871 "\n"
3872 msgstr ""
3873
3874 #. type: textblock
3875 #: ../src/guestfs.pod:1963
3876 msgid ""
3877 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3878 "pointer (which can be C<NULL>).  Any previous item with the same key is "
3879 "overwritten."
3880 msgstr ""
3881
3882 #. type: textblock
3883 #: ../src/guestfs.pod:1967
3884 msgid ""
3885 "You can use any C<key> you want, but your key should I<not> start with an "
3886 "underscore character.  Keys beginning with an underscore character are "
3887 "reserved for internal libguestfs purposes (eg. for implementing language "
3888 "bindings).  It is recommended that you prefix the key with some unique "
3889 "string to avoid collisions with other users."
3890 msgstr ""
3891
3892 #. type: textblock
3893 #: ../src/guestfs.pod:1973
3894 msgid "To retrieve the pointer, use:"
3895 msgstr ""
3896
3897 #. type: verbatim
3898 #: ../src/guestfs.pod:1975
3899 #, no-wrap
3900 msgid ""
3901 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3902 "\n"
3903 msgstr ""
3904
3905 #. type: textblock
3906 #: ../src/guestfs.pod:1977
3907 msgid ""
3908 "This function returns C<NULL> if either no data is found associated with "
3909 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3910 "C<NULL>."
3911 msgstr ""
3912
3913 #. type: textblock
3914 #: ../src/guestfs.pod:1981
3915 msgid ""
3916 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3917 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3918 "all.  In particular, libguestfs does I<not> try to free the data when the "
3919 "handle is closed.  If the data must be freed, then the caller must either "
3920 "free it before calling L</guestfs_close> or must set up a close callback to "
3921 "do it (see L</GUESTFS_EVENT_CLOSE>)."
3922 msgstr ""
3923
3924 #. type: textblock
3925 #: ../src/guestfs.pod:1988
3926 msgid "To walk over all entries, use these two functions:"
3927 msgstr ""
3928
3929 #. type: verbatim
3930 #: ../src/guestfs.pod:1990
3931 #, no-wrap
3932 msgid ""
3933 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
3934 "\n"
3935 msgstr ""
3936
3937 #. type: verbatim
3938 #: ../src/guestfs.pod:1992
3939 #, no-wrap
3940 msgid ""
3941 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
3942 "\n"
3943 msgstr ""
3944
3945 #. type: textblock
3946 #: ../src/guestfs.pod:1994
3947 msgid ""
3948 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
3949 "not have any particular meaning -- keys are not returned in any defined "
3950 "order).  A pointer to the key is returned in C<*key_rtn> and the "
3951 "corresponding data pointer is returned from the function.  C<NULL> is "
3952 "returned if there are no keys stored in the handle."
3953 msgstr ""
3954
3955 #. type: textblock
3956 #: ../src/guestfs.pod:2000
3957 msgid ""
3958 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
3959 "value of this function is also C<NULL> is there are no further entries to "
3960 "return."
3961 msgstr ""
3962
3963 #. type: textblock
3964 #: ../src/guestfs.pod:2004
3965 msgid "Notes about walking over entries:"
3966 msgstr ""
3967
3968 #. type: textblock
3969 #: ../src/guestfs.pod:2010
3970 msgid ""
3971 "You must not call C<guestfs_set_private> while walking over the entries."
3972 msgstr ""
3973
3974 #. type: textblock
3975 #: ../src/guestfs.pod:2015
3976 msgid ""
3977 "The handle maintains an internal iterator which is reset when you call "
3978 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
3979 "call C<guestfs_set_private>."
3980 msgstr ""
3981
3982 #. type: textblock
3983 #: ../src/guestfs.pod:2021
3984 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
3985 msgstr ""
3986
3987 #. type: verbatim
3988 #: ../src/guestfs.pod:2023
3989 #, no-wrap
3990 msgid ""
3991 " guestfs_set_private (g, key, NULL);\n"
3992 "\n"
3993 msgstr ""
3994
3995 #. type: textblock
3996 #: ../src/guestfs.pod:2025
3997 msgid "then that C<key> is not returned when walking."
3998 msgstr ""
3999
4000 #. type: textblock
4001 #: ../src/guestfs.pod:2029
4002 msgid ""
4003 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4004 "C<guestfs_next_private> or C<guestfs_set_private>."
4005 msgstr ""
4006
4007 #. type: textblock
4008 #: ../src/guestfs.pod:2035
4009 msgid ""
4010 "The following example code shows how to print all keys and data pointers "
4011 "that are associated with the handle C<g>:"
4012 msgstr ""
4013
4014 #. type: verbatim
4015 #: ../src/guestfs.pod:2038
4016 #, no-wrap
4017 msgid ""
4018 " const char *key;\n"
4019 " void *data = guestfs_first_private (g, &key);\n"
4020 " while (data != NULL)\n"
4021 "   {\n"
4022 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4023 "     data = guestfs_next_private (g, &key);\n"
4024 "   }\n"
4025 "\n"
4026 msgstr ""
4027
4028 #. type: textblock
4029 #: ../src/guestfs.pod:2046
4030 msgid ""
4031 "More commonly you are only interested in keys that begin with an application-"
4032 "specific prefix C<foo_>.  Modify the loop like so:"
4033 msgstr ""
4034
4035 #. type: verbatim
4036 #: ../src/guestfs.pod:2049
4037 #, no-wrap
4038 msgid ""
4039 " const char *key;\n"
4040 " void *data = guestfs_first_private (g, &key);\n"
4041 " while (data != NULL)\n"
4042 "   {\n"
4043 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4044 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4045 "     data = guestfs_next_private (g, &key);\n"
4046 "   }\n"
4047 "\n"
4048 msgstr ""
4049
4050 #. type: textblock
4051 #: ../src/guestfs.pod:2058
4052 msgid ""
4053 "If you need to modify keys while walking, then you have to jump back to the "
4054 "beginning of the loop.  For example, to delete all keys prefixed with "
4055 "C<foo_>:"
4056 msgstr ""
4057
4058 #. type: verbatim
4059 #: ../src/guestfs.pod:2062
4060 #, no-wrap
4061 msgid ""
4062 "  const char *key;\n"
4063 "  void *data;\n"
4064 " again:\n"
4065 "  data = guestfs_first_private (g, &key);\n"
4066 "  while (data != NULL)\n"
4067 "    {\n"
4068 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4069 "        {\n"
4070 "          guestfs_set_private (g, key, NULL);\n"
4071 "          /* note that 'key' pointer is now invalid, and so is\n"
4072 "             the internal iterator */\n"
4073 "          goto again;\n"
4074 "        }\n"
4075 "      data = guestfs_next_private (g, &key);\n"
4076 "    }\n"
4077 "\n"
4078 msgstr ""
4079
4080 #. type: textblock
4081 #: ../src/guestfs.pod:2078
4082 msgid ""
4083 "Note that the above loop is guaranteed to terminate because the keys are "
4084 "being deleted, but other manipulations of keys within the loop might not "
4085 "terminate unless you also maintain an indication of which keys have been "
4086 "visited."
4087 msgstr ""
4088
4089 #. type: =end
4090 #: ../src/guestfs.pod:2083 ../src/guestfs.pod:2088
4091 msgid "html"
4092 msgstr "html"
4093
4094 #. type: textblock
4095 #: ../src/guestfs.pod:2085
4096 msgid ""
4097 "<!-- old anchor for the next section --> <a name="
4098 "\"state_machine_and_low_level_event_api\"/>"
4099 msgstr ""
4100 "<!-- old anchor for the next section --> <a name="
4101 "\"state_machine_and_low_level_event_api\"/>"
4102
4103 #. type: =head1
4104 #: ../src/guestfs.pod:2090
4105 msgid "ARCHITECTURE"
4106 msgstr "АРХІТЕКТУРА"
4107
4108 #. type: textblock
4109 #: ../src/guestfs.pod:2092
4110 msgid ""
4111 "Internally, libguestfs is implemented by running an appliance (a special "
4112 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4113 "process of the main program."
4114 msgstr ""
4115
4116 #. type: verbatim
4117 #: ../src/guestfs.pod:2096
4118 #, no-wrap
4119 msgid ""
4120 "  ___________________\n"
4121 " /                   \\\n"
4122 " | main program      |\n"
4123 " |                   |\n"
4124 " |                   |           child process / appliance\n"
4125 " |                   |           __________________________\n"
4126 " |                   |          / qemu                     \\\n"
4127 " +-------------------+   RPC    |      +-----------------+ |\n"
4128 " | libguestfs     <--------------------> guestfsd        | |\n"
4129 " |                   |          |      +-----------------+ |\n"
4130 " \\___________________/          |      | Linux kernel    | |\n"
4131 "                                |      +--^--------------+ |\n"
4132 "                                \\_________|________________/\n"
4133 "                                          |\n"
4134 "                                   _______v______\n"
4135 "                                  /              \\\n"
4136 "                                  | Device or    |\n"
4137 "                                  | disk image   |\n"
4138 "                                  \\______________/\n"
4139 "\n"
4140 msgstr ""
4141
4142 #. type: textblock
4143 #: ../src/guestfs.pod:2116
4144 msgid ""
4145 "The library, linked to the main program, creates the child process and hence "
4146 "the appliance in the L</guestfs_launch> function."
4147 msgstr ""
4148
4149 #. type: textblock
4150 #: ../src/guestfs.pod:2119
4151 msgid ""
4152 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4153 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4154 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4155 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4156 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4157 "attached to the qemu process which translates device access by the "
4158 "appliance's Linux kernel into accesses to the image."
4159 msgstr ""
4160
4161 #. type: textblock
4162 #: ../src/guestfs.pod:2128
4163 msgid ""
4164 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4165 "Although the disk image you are attached to might also be used by some "
4166 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4167 "care if both libguestfs's qemu process and your virtual machine are trying "
4168 "to update the disk image at the same time, since these usually results in "
4169 "massive disk corruption)."
4170 msgstr ""
4171
4172 #. type: =head1
4173 #: ../src/guestfs.pod:2135
4174 msgid "STATE MACHINE"
4175 msgstr "СКІНЧЕННИЙ АВТОМАТ"
4176
4177 #. type: textblock
4178 #: ../src/guestfs.pod:2137
4179 msgid "libguestfs uses a state machine to model the child process:"
4180 msgstr ""
4181
4182 #. type: verbatim
4183 #: ../src/guestfs.pod:2139
4184 #, no-wrap
4185 msgid ""
4186 "                         |\n"
4187 "                    guestfs_create\n"
4188 "                         |\n"
4189 "                         |\n"
4190 "                     ____V_____\n"
4191 "                    /          \\\n"
4192 "                    |  CONFIG  |\n"
4193 "                    \\__________/\n"
4194 "                     ^ ^   ^  \\\n"
4195 "                    /  |    \\  \\ guestfs_launch\n"
4196 "                   /   |    _\\__V______\n"
4197 "                  /    |   /           \\\n"
4198 "                 /     |   | LAUNCHING |\n"
4199 "                /      |   \\___________/\n"
4200 "               /       |       /\n"
4201 "              /        |  guestfs_launch\n"
4202 "             /         |     /\n"
4203 "    ______  /        __|____V\n"
4204 "   /      \\ ------> /        \\\n"
4205 "   | BUSY |         | READY  |\n"
4206 "   \\______/ <------ \\________/\n"
4207 "\n"
4208 msgstr ""
4209
4210 #. type: textblock
4211 #: ../src/guestfs.pod:2161
4212 msgid ""
4213 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4214 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4215 "(3) alternating between READY and BUSY as commands are issued to, and "
4216 "carried out by, the child process."
4217 msgstr ""
4218
4219 #. type: textblock
4220 #: ../src/guestfs.pod:2166
4221 msgid ""
4222 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4223 "asynchronously at any time (eg. due to some internal error), and that causes "
4224 "the state to transition back to CONFIG."
4225 msgstr ""
4226
4227 #. type: textblock
4228 #: ../src/guestfs.pod:2170
4229 msgid ""
4230 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4231 "issued when in the CONFIG state."
4232 msgstr ""
4233
4234 #. type: textblock
4235 #: ../src/guestfs.pod:2173
4236 msgid ""
4237 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4238 "L</guestfs_launch> blocks until the child process is READY to accept "
4239 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4240 "moves the state from CONFIG to LAUNCHING while it is running."
4241 msgstr ""
4242
4243 #. type: textblock
4244 #: ../src/guestfs.pod:2179
4245 msgid ""
4246 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4247 "state.  These API calls block waiting for the command to be carried out (ie. "
4248 "the state to transition to BUSY and then back to READY).  There are no non-"
4249 "blocking versions, and no way to issue more than one command per handle at "
4250 "the same time."
4251 msgstr ""
4252
4253 #. type: textblock
4254 #: ../src/guestfs.pod:2185
4255 msgid ""
4256 "Finally, the child process sends asynchronous messages back to the main "
4257 "program, such as kernel log messages.  You can register a callback to "
4258 "receive these messages."
4259 msgstr ""
4260
4261 #. type: =head1
4262 #: ../src/guestfs.pod:2189
4263 msgid "INTERNALS"
4264 msgstr ""
4265
4266 #. type: =head2
4267 #: ../src/guestfs.pod:2191
4268 msgid "COMMUNICATION PROTOCOL"
4269 msgstr ""
4270
4271 #. type: textblock
4272 #: ../src/guestfs.pod:2193
4273 msgid ""
4274 "Don't rely on using this protocol directly.  This section documents how it "
4275 "currently works, but it may change at any time."
4276 msgstr ""
4277
4278 #. type: textblock
4279 #: ../src/guestfs.pod:2196
4280 msgid ""
4281 "The protocol used to talk between the library and the daemon running inside "
4282 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4283 "1014, RFC 1832, RFC 4506)."
4284 msgstr ""
4285
4286 #. type: textblock
4287 #: ../src/guestfs.pod:2200
4288 msgid ""
4289 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4290 "this file is automatically generated)."
4291 msgstr ""
4292
4293 #. type: textblock
4294 #: ../src/guestfs.pod:2203
4295 msgid ""
4296 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4297 "and C<FileOut> parameters, which are handled with very simple request/reply "
4298 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4299 "parameters, which use the same request and reply messages, but they may also "
4300 "be followed by files sent using a chunked encoding."
4301 msgstr ""
4302
4303 #. type: =head3
4304 #: ../src/guestfs.pod:2210
4305 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4306 msgstr ""
4307
4308 #. type: textblock
4309 #: ../src/guestfs.pod:2212
4310 msgid "For ordinary functions, the request message is:"
4311 msgstr ""
4312
4313 #. type: verbatim
4314 #: ../src/guestfs.pod:2214
4315 #, no-wrap
4316 msgid ""
4317 " total length (header + arguments,\n"
4318 "      but not including the length word itself)\n"
4319 " struct guestfs_message_header (encoded as XDR)\n"
4320 " struct guestfs_<foo>_args (encoded as XDR)\n"
4321 "\n"
4322 msgstr ""
4323
4324 #. type: textblock
4325 #: ../src/guestfs.pod:2219
4326 msgid ""
4327 "The total length field allows the daemon to allocate a fixed size buffer "
4328 "into which it slurps the rest of the message.  As a result, the total length "
4329 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4330 "effective size of any request is limited to somewhere under this size."
4331 msgstr ""
4332
4333 #. type: textblock
4334 #: ../src/guestfs.pod:2225
4335 msgid ""
4336 "Note also that many functions don't take any arguments, in which case the "
4337 "C<guestfs_I<foo>_args> is completely omitted."
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../src/guestfs.pod:2228
4342 msgid ""
4343 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4344 "receiver knows what type of args structure to expect, or none at all."
4345 msgstr ""
4346
4347 #. type: textblock
4348 #: ../src/guestfs.pod:2232
4349 msgid ""
4350 "For functions that take optional arguments, the optional arguments are "
4351 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4352 "arguments.  A bitmask in the header indicates which optional arguments are "
4353 "meaningful.  The bitmask is also checked to see if it contains bits set "
4354 "which the daemon does not know about (eg. if more optional arguments were "
4355 "added in a later version of the library), and this causes the call to be "
4356 "rejected."
4357 msgstr ""
4358
4359 #. type: textblock
4360 #: ../src/guestfs.pod:2240
4361 msgid "The reply message for ordinary functions is:"
4362 msgstr ""
4363
4364 #. type: verbatim
4365 #: ../src/guestfs.pod:2242
4366 #, no-wrap
4367 msgid ""
4368 " total length (header + ret,\n"
4369 "      but not including the length word itself)\n"
4370 " struct guestfs_message_header (encoded as XDR)\n"
4371 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4372 "\n"
4373 msgstr ""
4374
4375 #. type: textblock
4376 #: ../src/guestfs.pod:2247
4377 msgid ""
4378 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4379 "functions that return no formal return values."
4380 msgstr ""
4381
4382 #. type: textblock
4383 #: ../src/guestfs.pod:2250
4384 msgid ""
4385 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4386 msgstr ""
4387
4388 #. type: textblock
4389 #: ../src/guestfs.pod:2253
4390 msgid ""
4391 "In the case of an error, a flag is set in the header, and the reply message "
4392 "is slightly changed:"
4393 msgstr ""
4394
4395 #. type: verbatim
4396 #: ../src/guestfs.pod:2256
4397 #, no-wrap
4398 msgid ""
4399 " total length (header + error,\n"
4400 "      but not including the length word itself)\n"
4401 " struct guestfs_message_header (encoded as XDR)\n"
4402 " struct guestfs_message_error (encoded as XDR)\n"
4403 "\n"
4404 msgstr ""
4405
4406 #. type: textblock
4407 #: ../src/guestfs.pod:2261
4408 msgid ""
4409 "The C<guestfs_message_error> structure contains the error message as a "
4410 "string."
4411 msgstr ""
4412
4413 #. type: =head3
4414 #: ../src/guestfs.pod:2264
4415 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4416 msgstr ""
4417
4418 #. type: textblock
4419 #: ../src/guestfs.pod:2266
4420 msgid ""
4421 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4422 "The normal request message is sent (see above).  However this is followed by "
4423 "a sequence of file chunks."
4424 msgstr ""
4425
4426 #. type: verbatim
4427 #: ../src/guestfs.pod:2270
4428 #, no-wrap
4429 msgid ""
4430 " total length (header + arguments,\n"
4431 "      but not including the length word itself,\n"
4432 "      and not including the chunks)\n"
4433 " struct guestfs_message_header (encoded as XDR)\n"
4434 " struct guestfs_<foo>_args (encoded as XDR)\n"
4435 " sequence of chunks for FileIn param #0\n"
4436 " sequence of chunks for FileIn param #1 etc.\n"
4437 "\n"
4438 msgstr ""
4439
4440 #. type: textblock
4441 #: ../src/guestfs.pod:2278
4442 msgid "The \"sequence of chunks\" is:"
4443 msgstr ""
4444
4445 #. type: verbatim
4446 #: ../src/guestfs.pod:2280
4447 #, no-wrap
4448 msgid ""
4449 " length of chunk (not including length word itself)\n"
4450 " struct guestfs_chunk (encoded as XDR)\n"
4451 " length of chunk\n"
4452 " struct guestfs_chunk (encoded as XDR)\n"
4453 "   ...\n"
4454 " length of chunk\n"
4455 " struct guestfs_chunk (with data.data_len == 0)\n"
4456 "\n"
4457 msgstr ""
4458
4459 #. type: textblock
4460 #: ../src/guestfs.pod:2288
4461 msgid ""
4462 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4463 "is set in the final chunk to indicate either successful completion or early "
4464 "cancellation."
4465 msgstr ""
4466
4467 #. type: textblock
4468 #: ../src/guestfs.pod:2292
4469 msgid ""
4470 "At time of writing there are no functions that have more than one FileIn "
4471 "parameter.  However this is (theoretically) supported, by sending the "
4472 "sequence of chunks for each FileIn parameter one after another (from left to "
4473 "right)."
4474 msgstr ""
4475
4476 #. type: textblock
4477 #: ../src/guestfs.pod:2297
4478 msgid ""
4479 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4480 "transfer.  The library does this by sending a chunk with a special flag set "
4481 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4482 "RPC, does I<not> send any reply, and goes back to reading the next request."
4483 msgstr ""
4484
4485 #. type: textblock
4486 #: ../src/guestfs.pod:2303
4487 msgid ""
4488 "The daemon may also cancel.  It does this by writing a special word "
4489 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4490 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4491 "cancel chunk).  The special word is chosen so that even if cancellation "
4492 "happens right at the end of the transfer (after the library has finished "
4493 "writing and has started listening for the reply), the \"spurious\" cancel "
4494 "flag will not be confused with the reply message."
4495 msgstr ""
4496
4497 #. type: textblock
4498 #: ../src/guestfs.pod:2312
4499 msgid ""
4500 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4501 "limit), and also files where the size is not known in advance (eg. from "
4502 "pipes or sockets).  However the chunks are rather small "
4503 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4504 "to keep much in memory."
4505 msgstr ""
4506
4507 #. type: =head3
4508 #: ../src/guestfs.pod:2318
4509 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4510 msgstr ""
4511
4512 #. type: textblock
4513 #: ../src/guestfs.pod:2320
4514 msgid ""
4515 "The protocol for FileOut parameters is exactly the same as for FileIn "
4516 "parameters, but with the roles of daemon and library reversed."
4517 msgstr ""
4518
4519 #. type: verbatim
4520 #: ../src/guestfs.pod:2323
4521 #, no-wrap
4522 msgid ""
4523 " total length (header + ret,\n"
4524 "      but not including the length word itself,\n"
4525 "      and not including the chunks)\n"
4526 " struct guestfs_message_header (encoded as XDR)\n"
4527 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4528 " sequence of chunks for FileOut param #0\n"
4529 " sequence of chunks for FileOut param #1 etc.\n"
4530 "\n"
4531 msgstr ""
4532
4533 #. type: =head3
4534 #: ../src/guestfs.pod:2331
4535 msgid "INITIAL MESSAGE"
4536 msgstr ""
4537
4538 #. type: textblock
4539 #: ../src/guestfs.pod:2333
4540 msgid ""
4541 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4542 "which indicates that the guest and daemon is alive.  This is what L</"
4543 "guestfs_launch> waits for."
4544 msgstr ""
4545
4546 #. type: =head3
4547 #: ../src/guestfs.pod:2337
4548 msgid "PROGRESS NOTIFICATION MESSAGES"
4549 msgstr ""
4550
4551 #. type: textblock
4552 #: ../src/guestfs.pod:2339
4553 msgid ""
4554 "The daemon may send progress notification messages at any time.  These are "
4555 "distinguished by the normal length word being replaced by "
4556 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../src/guestfs.pod:2343
4561 msgid ""
4562 "The library turns them into progress callbacks (see L</"
4563 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
4564 "if not."
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../src/guestfs.pod:2347
4569 msgid ""
4570 "The daemon self-limits the frequency of progress messages it sends (see "
4571 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4572 "messages."
4573 msgstr ""
4574
4575 #. type: =head1
4576 #: ../src/guestfs.pod:2351
4577 msgid "LIBGUESTFS VERSION NUMBERS"
4578 msgstr ""
4579
4580 #. type: textblock
4581 #: ../src/guestfs.pod:2353
4582 msgid ""
4583 "Since April 2010, libguestfs has started to make separate development and "
4584 "stable releases, along with corresponding branches in our git repository.  "
4585 "These separate releases can be identified by version number:"
4586 msgstr ""
4587
4588 #. type: verbatim
4589 #: ../src/guestfs.pod:2358
4590 #, no-wrap
4591 msgid ""
4592 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4593 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4594 "       |\n"
4595 "       v\n"
4596 " 1  .  3  .  5\n"
4597 " ^           ^\n"
4598 " |           |\n"
4599 " |           `-------- sub-version\n"
4600 " |\n"
4601 " `------ always '1' because we don't change the ABI\n"
4602 "\n"
4603 msgstr ""
4604
4605 #. type: textblock
4606 #: ../src/guestfs.pod:2369
4607 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4608 msgstr ""
4609
4610 #. type: textblock
4611 #: ../src/guestfs.pod:2371
4612 msgid ""
4613 "As time passes we cherry pick fixes from the development branch and backport "
4614 "those into the stable branch, the effect being that the stable branch should "
4615 "get more stable and less buggy over time.  So the stable releases are ideal "
4616 "for people who don't need new features but would just like the software to "
4617 "work."
4618 msgstr ""
4619
4620 #. type: textblock
4621 #: ../src/guestfs.pod:2377
4622 msgid "Our criteria for backporting changes are:"
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../src/guestfs.pod:2383
4627 msgid ""
4628 "Documentation changes which don't affect any code are backported unless the "
4629 "documentation refers to a future feature which is not in stable."
4630 msgstr ""
4631
4632 #. type: textblock
4633 #: ../src/guestfs.pod:2389
4634 msgid ""
4635 "Bug fixes which are not controversial, fix obvious problems, and have been "
4636 "well tested are backported."
4637 msgstr ""
4638
4639 #. type: textblock
4640 #: ../src/guestfs.pod:2394
4641 msgid ""
4642 "Simple rearrangements of code which shouldn't affect how it works get "
4643 "backported.  This is so that the code in the two branches doesn't get too "
4644 "far out of step, allowing us to backport future fixes more easily."
4645 msgstr ""
4646
4647 #. type: textblock
4648 #: ../src/guestfs.pod:2400
4649 msgid ""
4650 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4651 "exceptional case: the new feature is required in order to implement an "
4652 "important bug fix."
4653 msgstr ""
4654
4655 #. type: textblock
4656 #: ../src/guestfs.pod:2406
4657 msgid ""
4658 "A new stable branch starts when we think the new features in development are "
4659 "substantial and compelling enough over the current stable branch to warrant "
4660 "it.  When that happens we create new stable and development versions 1.N.0 "
4661 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4662 "stable at this point, but by backporting fixes from development, that branch "
4663 "will stabilize over time."
4664 msgstr ""
4665
4666 #. type: =head1
4667 #: ../src/guestfs.pod:2414
4668 msgid "EXTENDING LIBGUESTFS"
4669 msgstr ""
4670
4671 #. type: =head2
4672 #: ../src/guestfs.pod:2416
4673 msgid "ADDING A NEW API ACTION"
4674 msgstr ""
4675
4676 #. type: textblock
4677 #: ../src/guestfs.pod:2418
4678 msgid ""
4679 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4680 "documentation) are generated, and this makes it easy to extend the "
4681 "libguestfs API."
4682 msgstr ""
4683
4684 #. type: textblock
4685 #: ../src/guestfs.pod:2422
4686 msgid "To add a new API action there are two changes:"
4687 msgstr ""
4688
4689 #. type: textblock
4690 #: ../src/guestfs.pod:2428
4691 msgid ""
4692 "You need to add a description of the call (name, parameters, return type, "
4693 "tests, documentation) to C<generator/generator_actions.ml>."
4694 msgstr ""
4695
4696 #. type: textblock
4697 #: ../src/guestfs.pod:2431
4698 msgid ""
4699 "There are two sorts of API action, depending on whether the call goes "
4700 "through to the daemon in the appliance, or is serviced entirely by the "
4701 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4702 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4703 "an example of the latter, since a trace flag is maintained in the handle and "
4704 "all tracing is done on the library side."
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../src/guestfs.pod:2439
4709 msgid ""
4710 "Most new actions are of the first type, and get added to the "
4711 "C<daemon_functions> list.  Each function has a unique procedure number used "
4712 "in the RPC protocol which is assigned to that action when we publish "
4713 "libguestfs and cannot be reused.  Take the latest procedure number and "
4714 "increment it."
4715 msgstr ""
4716
4717 #. type: textblock
4718 #: ../src/guestfs.pod:2445
4719 msgid ""
4720 "For library-only actions of the second type, add to the "
4721 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4722 "library and do not travel over the RPC mechanism to the daemon, these "
4723 "functions do not need a procedure number, and so the procedure number is set "
4724 "to C<-1>."
4725 msgstr ""
4726
4727 #. type: textblock
4728 #: ../src/guestfs.pod:2453
4729 msgid "Implement the action (in C):"
4730 msgstr ""
4731
4732 #. type: textblock
4733 #: ../src/guestfs.pod:2455
4734 msgid ""
4735 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4736 "C<daemon/> directory."
4737 msgstr ""
4738
4739 #. type: textblock
4740 #: ../src/guestfs.pod:2458
4741 msgid ""
4742 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4743 "(note: double underscore) in the C<src/> directory."
4744 msgstr ""
4745
4746 #. type: textblock
4747 #: ../src/guestfs.pod:2461
4748 msgid "In either case, use another function as an example of what to do."
4749 msgstr ""
4750
4751 #. type: textblock
4752 #: ../src/guestfs.pod:2465
4753 msgid "After making these changes, use C<make> to compile."
4754 msgstr ""
4755
4756 #. type: textblock
4757 #: ../src/guestfs.pod:2467
4758 msgid ""
4759 "Note that you don't need to implement the RPC, language bindings, manual "
4760 "pages or anything else.  It's all automatically generated from the OCaml "
4761 "description."
4762 msgstr ""
4763
4764 #. type: =head2
4765 #: ../src/guestfs.pod:2471
4766 msgid "ADDING TESTS FOR AN API ACTION"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../src/guestfs.pod:2473
4771 msgid ""
4772 "You can supply zero or as many tests as you want per API call.  The tests "
4773 "can either be added as part of the API description (C<generator/"
4774 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
4775 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
4776 "slower, so if possible use the first method."
4777 msgstr ""
4778
4779 #. type: textblock
4780 #: ../src/guestfs.pod:2479
4781 msgid ""
4782 "The following describes the test environment used when you add an API test "
4783 "in C<generator_actions.ml>."
4784 msgstr ""
4785
4786 #. type: textblock
4787 #: ../src/guestfs.pod:2482
4788 msgid "The test environment has 4 block devices:"
4789 msgstr ""
4790
4791 #. type: =item
4792 #: ../src/guestfs.pod:2486
4793 msgid "C</dev/sda> 500MB"
4794 msgstr ""
4795
4796 #. type: textblock
4797 #: ../src/guestfs.pod:2488
4798 msgid "General block device for testing."
4799 msgstr ""
4800
4801 #. type: =item
4802 #: ../src/guestfs.pod:2490
4803 msgid "C</dev/sdb> 50MB"
4804 msgstr ""
4805
4806 #. type: textblock
4807 #: ../src/guestfs.pod:2492
4808 msgid ""
4809 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4810 "operations."
4811 msgstr ""
4812
4813 #. type: =item
4814 #: ../src/guestfs.pod:2495
4815 msgid "C</dev/sdc> 10MB"
4816 msgstr ""
4817
4818 #. type: textblock
4819 #: ../src/guestfs.pod:2497
4820 msgid "Used in a few tests where two block devices are needed."
4821 msgstr ""
4822
4823 #. type: =item
4824 #: ../src/guestfs.pod:2499
4825 msgid "C</dev/sdd>"
4826 msgstr "C</dev/sdd>"
4827
4828 #. type: textblock
4829 #: ../src/guestfs.pod:2501
4830 msgid "ISO with fixed content (see C<images/test.iso>)."
4831 msgstr ""
4832
4833 #. type: textblock
4834 #: ../src/guestfs.pod:2505
4835 msgid ""
4836 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4837 "appliance and block devices are reused between tests.  So don't try testing "
4838 "L</guestfs_kill_subprocess> :-x"
4839 msgstr ""
4840
4841 #. type: textblock
4842 #: ../src/guestfs.pod:2509
4843 msgid ""
4844 "Each test starts with an initial scenario, selected using one of the "
4845 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4846 "initialize the disks mentioned above in a particular way as documented in "
4847 "C<generator_types.ml>.  You should not assume anything about the previous "
4848 "contents of other disks that are not initialized."
4849 msgstr ""
4850
4851 #. type: textblock
4852 #: ../src/guestfs.pod:2515
4853 msgid ""
4854 "You can add a prerequisite clause to any individual test.  This is a run-"
4855 "time check, which, if it fails, causes the test to be skipped.  Useful if "
4856 "testing a command which might not work on all variations of libguestfs "
4857 "builds.  A test that has prerequisite of C<Always> means to run "
4858 "unconditionally."
4859 msgstr ""
4860
4861 #. type: textblock
4862 #: ../src/guestfs.pod:2521
4863 msgid ""
4864 "In addition, packagers can skip individual tests by setting environment "
4865 "variables before running C<make check>."
4866 msgstr ""
4867
4868 #. type: verbatim
4869 #: ../src/guestfs.pod:2524
4870 #, no-wrap
4871 msgid ""
4872 " SKIP_TEST_<CMD>_<NUM>=1\n"
4873 "\n"
4874 msgstr ""
4875
4876 #. type: textblock
4877 #: ../src/guestfs.pod:2526
4878 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4879 msgstr ""
4880
4881 #. type: textblock
4882 #: ../src/guestfs.pod:2528
4883 msgid "or:"
4884 msgstr "або:"
4885
4886 #. type: verbatim
4887 #: ../src/guestfs.pod:2530
4888 #, no-wrap
4889 msgid ""
4890 " SKIP_TEST_<CMD>=1\n"
4891 "\n"
4892 msgstr ""
4893
4894 #. type: textblock
4895 #: ../src/guestfs.pod:2532
4896 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4897 msgstr ""
4898
4899 #. type: textblock
4900 #: ../src/guestfs.pod:2534
4901 msgid "Packagers can run only certain tests by setting for example:"
4902 msgstr ""
4903
4904 #. type: verbatim
4905 #: ../src/guestfs.pod:2536
4906 #, no-wrap
4907 msgid ""
4908 " TEST_ONLY=\"vfs_type zerofree\"\n"
4909 "\n"
4910 msgstr ""
4911
4912 #. type: textblock
4913 #: ../src/guestfs.pod:2538
4914 msgid ""
4915 "See C<capitests/tests.c> for more details of how these environment variables "
4916 "work."
4917 msgstr ""
4918
4919 #. type: =head2
4920 #: ../src/guestfs.pod:2541
4921 msgid "DEBUGGING NEW API ACTIONS"
4922 msgstr ""
4923
4924 #. type: textblock
4925 #: ../src/guestfs.pod:2543
4926 msgid "Test new actions work before submitting them."
4927 msgstr ""
4928
4929 #. type: textblock
4930 #: ../src/guestfs.pod:2545
4931 msgid "You can use guestfish to try out new commands."
4932 msgstr ""
4933
4934 #. type: textblock
4935 #: ../src/guestfs.pod:2547
4936 msgid ""
4937 "Debugging the daemon is a problem because it runs inside a minimal "
4938 "environment.  However you can fprintf messages in the daemon to stderr, and "
4939 "they will show up if you use C<guestfish -v>."
4940 msgstr ""
4941
4942 #. type: =head2
4943 #: ../src/guestfs.pod:2551
4944 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4945 msgstr ""
4946
4947 #. type: textblock
4948 #: ../src/guestfs.pod:2553
4949 msgid ""
4950 "Our C source code generally adheres to some basic code-formatting "
4951 "conventions.  The existing code base is not totally consistent on this "
4952 "front, but we do prefer that contributed code be formatted similarly.  In "
4953 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4954 "indentation level, and other than that, follow the K&R style."
4955 msgstr ""
4956
4957 #. type: textblock
4958 #: ../src/guestfs.pod:2559
4959 msgid ""
4960 "If you use Emacs, add the following to one of one of your start-up files (e."
4961 "g., ~/.emacs), to help ensure that you get indentation right:"
4962 msgstr ""
4963
4964 #. type: verbatim
4965 #: ../src/guestfs.pod:2562
4966 #, no-wrap
4967 msgid ""
4968 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4969 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4970 " (add-hook 'find-file-hook\n"
4971 "     '(lambda () (if (and buffer-file-name\n"
4972 "                          (string-match \"/libguestfs\\\\>\"\n"
4973 "                              (buffer-file-name))\n"
4974 "                          (not (string-equal mode-name \"Change Log\"))\n"
4975 "                          (not (string-equal mode-name \"Makefile\")))\n"
4976 "                     (setq indent-tabs-mode nil))))\n"
4977 " \n"
4978 msgstr ""
4979
4980 #. type: verbatim
4981 #: ../src/guestfs.pod:2572
4982 #, no-wrap
4983 msgid ""
4984 " ;;; When editing C sources in libguestfs, use this style.\n"
4985 " (defun libguestfs-c-mode ()\n"
4986 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
4987 "   (interactive)\n"
4988 "   (c-set-style \"K&R\")\n"
4989 "   (setq c-indent-level 2)\n"
4990 "   (setq c-basic-offset 2))\n"
4991 " (add-hook 'c-mode-hook\n"
4992 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
4993 "                               (buffer-file-name))\n"
4994 "                           (libguestfs-c-mode))))\n"
4995 "\n"
4996 msgstr ""
4997
4998 #. type: textblock
4999 #: ../src/guestfs.pod:2584
5000 msgid "Enable warnings when compiling (and fix any problems this finds):"
5001 msgstr ""
5002
5003 #. type: verbatim
5004 #: ../src/guestfs.pod:2587
5005 #, no-wrap
5006 msgid ""
5007 " ./configure --enable-gcc-warnings\n"
5008 "\n"
5009 msgstr ""
5010
5011 #. type: textblock
5012 #: ../src/guestfs.pod:2589
5013 msgid "Useful targets are:"
5014 msgstr ""
5015
5016 #. type: verbatim
5017 #: ../src/guestfs.pod:2591
5018 #, no-wrap
5019 msgid ""
5020 " make syntax-check  # checks the syntax of the C code\n"
5021 " make check         # runs the test suite\n"
5022 "\n"
5023 msgstr ""
5024
5025 #. type: =head2
5026 #: ../src/guestfs.pod:2594
5027 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5028 msgstr ""
5029
5030 #. type: textblock
5031 #: ../src/guestfs.pod:2596
5032 msgid ""
5033 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5034 "which are used to do shell quoting."
5035 msgstr ""
5036
5037 #. type: =item
5038 #: ../src/guestfs.pod:2601
5039 msgid "%Q"
5040 msgstr "%Q"
5041
5042 #. type: textblock
5043 #: ../src/guestfs.pod:2603
5044 msgid ""
5045 "Simple shell quoted string.  Any spaces or other shell characters are "
5046 "escaped for you."
5047 msgstr ""
5048
5049 #. type: =item
5050 #: ../src/guestfs.pod:2606
5051 msgid "%R"
5052 msgstr "%R"
5053
5054 #. type: textblock
5055 #: ../src/guestfs.pod:2608
5056 msgid ""
5057 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5058 "the sysroot."
5059 msgstr ""
5060
5061 #. type: textblock
5062 #: ../src/guestfs.pod:2613 ../fish/guestfish.pod:242 ../fish/guestfish.pod:615
5063 msgid "For example:"
5064 msgstr "Приклад:"
5065
5066 #. type: verbatim
5067 #: ../src/guestfs.pod:2615
5068 #, no-wrap
5069 msgid ""
5070 " asprintf (&cmd, \"cat %R\", path);\n"
5071 "\n"
5072 msgstr ""
5073
5074 #. type: textblock
5075 #: ../src/guestfs.pod:2617
5076 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5077 msgstr ""
5078
5079 #. type: textblock
5080 #: ../src/guestfs.pod:2619
5081 msgid ""
5082 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5083 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5084 "they are not passed via the shell (instead, straight to exec).  You probably "
5085 "want to use the C<sysroot_path()> function however."
5086 msgstr ""
5087
5088 #. type: =head2
5089 #: ../src/guestfs.pod:2625
5090 msgid "SUBMITTING YOUR NEW API ACTIONS"
5091 msgstr ""
5092
5093 #. type: textblock
5094 #: ../src/guestfs.pod:2627
5095 msgid ""
5096 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5097 "libguestfs> and CC to L<rjones@redhat.com>."
5098 msgstr ""
5099
5100 #. type: =head2
5101 #: ../src/guestfs.pod:2631
5102 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5103 msgstr ""
5104
5105 #. type: textblock
5106 #: ../src/guestfs.pod:2633
5107 msgid "We support i18n (gettext anyhow) in the library."
5108 msgstr ""
5109
5110 #. type: textblock
5111 #: ../src/guestfs.pod:2635
5112 msgid ""
5113 "However many messages come from the daemon, and we don't translate those at "
5114 "the moment.  One reason is that the appliance generally has all locale files "
5115 "removed from it, because they take up a lot of space.  So we'd have to readd "
5116 "some of those, as well as copying our PO files into the appliance."
5117 msgstr ""
5118
5119 #. type: textblock
5120 #: ../src/guestfs.pod:2641
5121 msgid ""
5122 "Debugging messages are never translated, since they are intended for the "
5123 "programmers."
5124 msgstr ""
5125
5126 #. type: =head2
5127 #: ../src/guestfs.pod:2644
5128 msgid "SOURCE CODE SUBDIRECTORIES"
5129 msgstr ""
5130
5131 #. type: =item
5132 #: ../src/guestfs.pod:2648 ../src/guestfs-actions.pod:5820
5133 #: ../fish/guestfish-actions.pod:3913
5134 msgid "C<appliance>"
5135 msgstr "C<appliance>"
5136
5137 #. type: textblock
5138 #: ../src/guestfs.pod:2650
5139 msgid "The libguestfs appliance, build scripts and so on."
5140 msgstr ""
5141
5142 #. type: =item
5143 #: ../src/guestfs.pod:2652
5144 msgid "C<capitests>"
5145 msgstr "C<capitests>"
5146
5147 #. type: textblock
5148 #: ../src/guestfs.pod:2654
5149 msgid "Automated tests of the C API."
5150 msgstr ""
5151
5152 #. type: =item
5153 #: ../src/guestfs.pod:2656
5154 msgid "C<cat>"
5155 msgstr "C<cat>"
5156
5157 #. type: textblock
5158 #: ../src/guestfs.pod:2658
5159 msgid ""
5160 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5161 "documentation."
5162 msgstr ""
5163
5164 #. type: =item
5165 #: ../src/guestfs.pod:2661
5166 msgid "C<contrib>"
5167 msgstr "C<contrib>"
5168
5169 #. type: textblock
5170 #: ../src/guestfs.pod:2663
5171 msgid "Outside contributions, experimental parts."
5172 msgstr ""
5173
5174 #. type: =item
5175 #: ../src/guestfs.pod:2665
5176 msgid "C<daemon>"
5177 msgstr "C<daemon>"
5178
5179 #. type: textblock
5180 #: ../src/guestfs.pod:2667
5181 msgid ""
5182 "The daemon that runs inside the libguestfs appliance and carries out actions."
5183 msgstr ""
5184
5185 #. type: =item
5186 #: ../src/guestfs.pod:2670
5187 msgid "C<df>"
5188 msgstr "C<df>"
5189
5190 #. type: textblock
5191 #: ../src/guestfs.pod:2672
5192 msgid "L<virt-df(1)> command and documentation."
5193 msgstr ""
5194
5195 #. type: =item
5196 #: ../src/guestfs.pod:2674
5197 msgid "C<edit>"
5198 msgstr ""
5199
5200 #. type: textblock
5201 #: ../src/guestfs.pod:2676
5202 msgid "L<virt-edit(1)> command and documentation."
5203 msgstr ""
5204
5205 #. type: =item
5206 #: ../src/guestfs.pod:2678
5207 msgid "C<examples>"
5208 msgstr "C<examples>"
5209
5210 #. type: textblock
5211 #: ../src/guestfs.pod:2680
5212 msgid "C API example code."
5213 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
5214
5215 #. type: =item
5216 #: ../src/guestfs.pod:2682
5217 msgid "C<fish>"
5218 msgstr "C<fish>"
5219
5220 #. type: textblock
5221 #: ../src/guestfs.pod:2684
5222 msgid ""
5223 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5224 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5225 "L<virt-tar-out(1)>."
5226 msgstr ""
5227
5228 #. type: =item
5229 #: ../src/guestfs.pod:2688
5230 msgid "C<fuse>"
5231 msgstr "C<fuse>"
5232
5233 #. type: textblock
5234 #: ../src/guestfs.pod:2690
5235 msgid ""
5236 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5237 msgstr ""
5238
5239 #. type: =item
5240 #: ../src/guestfs.pod:2692
5241 msgid "C<generator>"
5242 msgstr "C<generator>"
5243
5244 #. type: textblock
5245 #: ../src/guestfs.pod:2694
5246 msgid ""
5247 "The crucially important generator, used to automatically generate large "
5248 "amounts of boilerplate C code for things like RPC and bindings."
5249 msgstr ""
5250
5251 #. type: =item
5252 #: ../src/guestfs.pod:2697
5253 msgid "C<images>"
5254 msgstr "C<images>"
5255
5256 #. type: textblock
5257 #: ../src/guestfs.pod:2699
5258 msgid "Files used by the test suite."
5259 msgstr ""
5260
5261 #. type: textblock
5262 #: ../src/guestfs.pod:2701
5263 msgid "Some \"phony\" guest images which we test against."
5264 msgstr ""
5265
5266 #. type: =item
5267 #: ../src/guestfs.pod:2703
5268 msgid "C<inspector>"
5269 msgstr "C<inspector>"
5270
5271 #. type: textblock
5272 #: ../src/guestfs.pod:2705
5273 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5274 msgstr ""
5275
5276 #. type: =item
5277 #: ../src/guestfs.pod:2707
5278 msgid "C<logo>"
5279 msgstr "C<logo>"
5280
5281 #. type: textblock
5282 #: ../src/guestfs.pod:2709
5283 msgid "Logo used on the website.  The fish is called Arthur by the way."
5284 msgstr ""
5285
5286 #. type: =item
5287 #: ../src/guestfs.pod:2711
5288 msgid "C<m4>"
5289 msgstr "C<m4>"
5290
5291 #. type: textblock
5292 #: ../src/guestfs.pod:2713
5293 msgid "M4 macros used by autoconf."
5294 msgstr ""
5295
5296 #. type: =item
5297 #: ../src/guestfs.pod:2715
5298 msgid "C<po>"
5299 msgstr "C<po>"
5300
5301 #. type: textblock
5302 #: ../src/guestfs.pod:2717
5303 msgid "Translations of simple gettext strings."
5304 msgstr "Переклади простих рядків gettext."
5305
5306 #. type: =item
5307 #: ../src/guestfs.pod:2719
5308 msgid "C<po-docs>"
5309 msgstr "C<po-docs>"
5310
5311 #. type: textblock
5312 #: ../src/guestfs.pod:2721
5313 msgid ""
5314 "The build infrastructure and PO files for translations of manpages and POD "
5315 "files.  Eventually this will be combined with the C<po> directory, but that "
5316 "is rather complicated."
5317 msgstr ""
5318
5319 #. type: =item
5320 #: ../src/guestfs.pod:2725
5321 msgid "C<regressions>"
5322 msgstr "C<regressions>"
5323
5324 #. type: textblock
5325 #: ../src/guestfs.pod:2727
5326 msgid "Regression tests."
5327 msgstr "Тести на регресії."
5328
5329 #. type: =item
5330 #: ../src/guestfs.pod:2729
5331 msgid "C<rescue>"
5332 msgstr "C<rescue>"
5333
5334 #. type: textblock
5335 #: ../src/guestfs.pod:2731
5336 msgid "L<virt-rescue(1)> command and documentation."
5337 msgstr ""
5338
5339 #. type: =item
5340 #: ../src/guestfs.pod:2733
5341 msgid "C<src>"
5342 msgstr "C<src>"
5343
5344 #. type: textblock
5345 #: ../src/guestfs.pod:2735
5346 msgid "Source code to the C library."
5347 msgstr ""
5348
5349 #. type: =item
5350 #: ../src/guestfs.pod:2737
5351 msgid "C<tools>"
5352 msgstr "C<tools>"
5353
5354 #. type: textblock
5355 #: ../src/guestfs.pod:2739
5356 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5357 msgstr ""
5358
5359 #. type: =item
5360 #: ../src/guestfs.pod:2741
5361 msgid "C<test-tool>"
5362 msgstr "C<test-tool>"
5363
5364 #. type: textblock
5365 #: ../src/guestfs.pod:2743
5366 msgid ""
5367 "Test tool for end users to test if their qemu/kernel combination will work "
5368 "with libguestfs."
5369 msgstr ""
5370
5371 #. type: =item
5372 #: ../src/guestfs.pod:2746
5373 msgid "C<csharp>"
5374 msgstr "C<csharp>"
5375
5376 #. type: =item
5377 #: ../src/guestfs.pod:2748
5378 msgid "C<haskell>"
5379 msgstr "C<haskell>"
5380
5381 #. type: =item
5382 #: ../src/guestfs.pod:2750
5383 msgid "C<java>"
5384 msgstr "C<java>"
5385
5386 #. type: =item
5387 #: ../src/guestfs.pod:2752
5388 msgid "C<ocaml>"
5389 msgstr "C<ocaml>"
5390
5391 #. type: =item
5392 #: ../src/guestfs.pod:2754
5393 msgid "C<php>"
5394 msgstr "C<php>"
5395
5396 #. type: =item
5397 #: ../src/guestfs.pod:2756
5398 msgid "C<perl>"
5399 msgstr "C<perl>"
5400
5401 #. type: =item
5402 #: ../src/guestfs.pod:2758
5403 msgid "C<python>"
5404 msgstr "C<python>"
5405
5406 #. type: =item
5407 #: ../src/guestfs.pod:2760
5408 msgid "C<ruby>"
5409 msgstr "C<ruby>"
5410
5411 #. type: textblock
5412 #: ../src/guestfs.pod:2762
5413 msgid "Language bindings."
5414 msgstr "Прив’язки до мов програмування."
5415
5416 #. type: =head1
5417 #: ../src/guestfs.pod:2766
5418 msgid "LIMITS"
5419 msgstr ""
5420
5421 #. type: =head2
5422 #: ../src/guestfs.pod:2768
5423 msgid "PROTOCOL LIMITS"
5424 msgstr ""
5425
5426 #. type: textblock
5427 #: ../src/guestfs.pod:2770
5428 msgid ""
5429 "Internally libguestfs uses a message-based protocol to pass API calls and "
5430 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
5431 "plenty more detail about this).  The maximum message size used by the "
5432 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
5433 "aware of this limit.  The API calls which may be affected are individually "
5434 "documented, with a link back to this section of the documentation."
5435 msgstr ""
5436
5437 #. type: textblock
5438 #: ../src/guestfs.pod:2778
5439 msgid ""
5440 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
5441 "a simple string.  Because this string is at some point internally encoded as "
5442 "a message, the maximum size that it can return is slightly under 4 MB.  If "
5443 "the requested file is larger than this then you will get an error."
5444 msgstr ""
5445
5446 #. type: textblock
5447 #: ../src/guestfs.pod:2784
5448 msgid ""
5449 "In order to transfer large files into and out of the guest filesystem, you "
5450 "need to use particular calls that support this.  The sections L</UPLOADING> "
5451 "and L</DOWNLOADING> document how to do this."
5452 msgstr ""
5453
5454 #. type: textblock
5455 #: ../src/guestfs.pod:2788
5456 msgid ""
5457 "You might also consider mounting the disk image using our FUSE filesystem "
5458 "support (L<guestmount(1)>)."
5459 msgstr ""
5460
5461 #. type: =head2
5462 #: ../src/guestfs.pod:2791
5463 msgid "MAXIMUM NUMBER OF DISKS"
5464 msgstr ""
5465
5466 #. type: textblock
5467 #: ../src/guestfs.pod:2793
5468 msgid "When using virtio disks (the default) the current limit is B<25> disks."
5469 msgstr ""
5470
5471 #. type: textblock
5472 #: ../src/guestfs.pod:2796
5473 msgid ""
5474 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
5475 "slots.  However febootstrap only understands disks with names C</dev/vda> "
5476 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
5477 "purposes."
5478 msgstr ""
5479
5480 #. type: textblock
5481 #: ../src/guestfs.pod:2801
5482 msgid ""
5483 "We are working to substantially raise this limit in future versions but it "
5484 "requires complex changes to qemu."
5485 msgstr ""
5486
5487 #. type: textblock
5488 #: ../src/guestfs.pod:2804
5489 msgid ""
5490 "In future versions of libguestfs it should also be possible to \"hot plug\" "
5491 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
5492 "requires changes to qemu."
5493 msgstr ""
5494
5495 #. type: =head2
5496 #: ../src/guestfs.pod:2808
5497 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
5498 msgstr ""
5499
5500 #. type: textblock
5501 #: ../src/guestfs.pod:2810
5502 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
5503 msgstr ""
5504
5505 #. type: textblock
5506 #: ../src/guestfs.pod:2812
5507 msgid ""
5508 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
5509 "vda>, and C</dev/vda1> through C</dev/vda15>)."
5510 msgstr ""
5511
5512 #. type: textblock
5513 #: ../src/guestfs.pod:2815
5514 msgid ""
5515 "If you attach a disk with more than 15 partitions, the extra partitions are "
5516 "ignored by libguestfs."
5517 msgstr ""
5518
5519 #. type: =head2
5520 #: ../src/guestfs.pod:2818
5521 msgid "MAXIMUM SIZE OF A DISK"
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../src/guestfs.pod:2820
5526 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
5527 msgstr ""
5528
5529 #. type: textblock
5530 #: ../src/guestfs.pod:2822
5531 msgid ""
5532 "We have tested block devices up to 1 exabyte (2**60 or "
5533 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
5534 "filesystem."
5535 msgstr ""
5536
5537 #. type: textblock
5538 #: ../src/guestfs.pod:2826
5539 msgid ""
5540 "Although libguestfs probably does not impose any limit, the underlying host "
5541 "storage will.  If you store disk images on a host ext4 filesystem, then the "
5542 "maximum size will be limited by the maximum ext4 file size (currently 16 "
5543 "TB).  If you store disk images as host logical volumes then you are limited "
5544 "by the maximum size of an LV."
5545 msgstr ""
5546
5547 #. type: textblock
5548 #: ../src/guestfs.pod:2832
5549 msgid ""
5550 "For the hugest disk image files, we recommend using XFS on the host for "
5551 "storage."
5552 msgstr ""
5553
5554 #. type: =head2
5555 #: ../src/guestfs.pod:2835
5556 msgid "MAXIMUM SIZE OF A PARTITION"
5557 msgstr ""
5558
5559 #. type: textblock
5560 #: ../src/guestfs.pod:2837
5561 msgid ""
5562 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
5563 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
5564 "address a partition located beyond 2 TB on the disk."
5565 msgstr ""
5566
5567 #. type: textblock
5568 #: ../src/guestfs.pod:2841
5569 msgid ""
5570 "It is recommended that you use GPT partitions on disks which are larger than "
5571 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
5572 "which are theoretically larger than the largest disk we could support."
5573 msgstr ""
5574
5575 #. type: =head2
5576 #: ../src/guestfs.pod:2846
5577 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
5578 msgstr ""
5579
5580 #. type: textblock
5581 #: ../src/guestfs.pod:2848
5582 msgid ""
5583 "This depends on the filesystem type.  libguestfs itself does not impose any "
5584 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
5585 "what these limits are."
5586 msgstr ""
5587
5588 #. type: =head2
5589 #: ../src/guestfs.pod:2852
5590 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../src/guestfs.pod:2854
5595 msgid ""
5596 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
5597 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
5598 "uploads and downloads."
5599 msgstr ""
5600
5601 #. type: =head2
5602 #: ../src/guestfs.pod:2858
5603 #, fuzzy
5604 #| msgid "INSPECTION"
5605 msgid "INSPECTION LIMITS"
5606 msgstr "ПЕРЕВІРКА"
5607
5608 #. type: textblock
5609 #: ../src/guestfs.pod:2860
5610 msgid ""
5611 "The inspection code has several arbitrary limits on things like the size of "
5612 "Windows Registry hive it will read, and the length of product name.  These "
5613 "are intended to stop a malicious guest from consuming arbitrary amounts of "
5614 "memory and disk space on the host, and should not be reached in practice.  "
5615 "See the source code for more information."
5616 msgstr ""
5617
5618 #. type: =head1
5619 #: ../src/guestfs.pod:2866 ../fish/guestfish.pod:1017
5620 #: ../test-tool/libguestfs-test-tool.pod:82
5621 msgid "ENVIRONMENT VARIABLES"
5622 msgstr "ЗМІННІ СЕРЕДОВИЩА"
5623
5624 #. type: =item
5625 #: ../src/guestfs.pod:2870 ../fish/guestfish.pod:1043
5626 msgid "LIBGUESTFS_APPEND"
5627 msgstr ""
5628
5629 #. type: textblock
5630 #: ../src/guestfs.pod:2872 ../fish/guestfish.pod:1045
5631 msgid "Pass additional options to the guest kernel."
5632 msgstr ""
5633
5634 #. type: =item
5635 #: ../src/guestfs.pod:2874 ../fish/guestfish.pod:1047
5636 msgid "LIBGUESTFS_DEBUG"
5637 msgstr ""
5638
5639 #. type: textblock
5640 #: ../src/guestfs.pod:2876
5641 msgid ""
5642 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5643 "effect as calling C<guestfs_set_verbose (g, 1)>."
5644 msgstr ""
5645
5646 #. type: =item
5647 #: ../src/guestfs.pod:2879 ../fish/guestfish.pod:1052
5648 msgid "LIBGUESTFS_MEMSIZE"
5649 msgstr ""
5650
5651 #. type: textblock
5652 #: ../src/guestfs.pod:2881 ../fish/guestfish.pod:1054
5653 msgid ""
5654 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5655 msgstr ""
5656
5657 #. type: verbatim
5658 #: ../src/guestfs.pod:2884 ../fish/guestfish.pod:1057
5659 #, no-wrap
5660 msgid ""
5661 " LIBGUESTFS_MEMSIZE=700\n"
5662 "\n"
5663 msgstr ""
5664
5665 #. type: =item
5666 #: ../src/guestfs.pod:2886 ../fish/guestfish.pod:1059
5667 msgid "LIBGUESTFS_PATH"
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../src/guestfs.pod:2888
5672 msgid ""
5673 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5674 "the discussion of paths in section L</PATH> above."
5675 msgstr ""
5676
5677 #. type: =item
5678 #: ../src/guestfs.pod:2891 ../fish/guestfish.pod:1064
5679 msgid "LIBGUESTFS_QEMU"
5680 msgstr ""
5681
5682 #. type: textblock
5683 #: ../src/guestfs.pod:2893 ../fish/guestfish.pod:1066
5684 msgid ""
5685 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5686 "which was found at compile time by the configure script is used."
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../src/guestfs.pod:2897
5691 msgid "See also L</QEMU WRAPPERS> above."
5692 msgstr ""
5693
5694 #. type: =item
5695 #: ../src/guestfs.pod:2899 ../fish/guestfish.pod:1070
5696 msgid "LIBGUESTFS_TRACE"
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../src/guestfs.pod:2901
5701 msgid ""
5702 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5703 "effect as calling C<guestfs_set_trace (g, 1)>."
5704 msgstr ""
5705
5706 #. type: =item
5707 #: ../src/guestfs.pod:2904 ../fish/guestfish.pod:1079
5708 msgid "TMPDIR"
5709 msgstr ""
5710
5711 #. type: textblock
5712 #: ../src/guestfs.pod:2906 ../fish/guestfish.pod:1081
5713 msgid ""
5714 "Location of temporary directory, defaults to C</tmp> except for the cached "
5715 "supermin appliance which defaults to C</var/tmp>."
5716 msgstr ""
5717
5718 #. type: textblock
5719 #: ../src/guestfs.pod:2909 ../fish/guestfish.pod:1084
5720 msgid ""
5721 "If libguestfs was compiled to use the supermin appliance then the real "
5722 "appliance is cached in this directory, shared between all handles belonging "
5723 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5724 "use in case C</var/tmp> is not large enough."
5725 msgstr ""
5726
5727 #. type: =head1
5728 #: ../src/guestfs.pod:2917 ../fish/guestfish.pod:1151
5729 #: ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:269
5730 #: ../tools/virt-win-reg.pl:572 ../tools/virt-list-filesystems.pl:189
5731 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
5732 #: ../tools/virt-list-partitions.pl:257
5733 msgid "SEE ALSO"
5734 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
5735
5736 #. type: textblock
5737 #: ../src/guestfs.pod:2919
5738 msgid ""
5739 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
5740 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
5741 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
5742 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
5743 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
5744 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
5745 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
5746 msgstr ""
5747
5748 #. type: textblock
5749 #: ../src/guestfs.pod:2946
5750 msgid ""
5751 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
5752 "(8)>, L<disktype(1)>."
5753 msgstr ""
5754
5755 #. type: =head1
5756 #: ../src/guestfs.pod:2953 ../tools/virt-win-reg.pl:587
5757 #: ../tools/virt-make-fs.pl:553
5758 msgid "BUGS"
5759 msgstr "ВАДИ"
5760
5761 #. type: textblock
5762 #: ../src/guestfs.pod:2955
5763 msgid "To get a list of bugs against libguestfs use this link:"
5764 msgstr ""
5765 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
5766 "посиланням:"
5767
5768 #. type: textblock
5769 #: ../src/guestfs.pod:2957
5770 msgid ""
5771 "L<https://bugzilla.redhat.com/buglist.cgi?"
5772 "component=libguestfs&product=Virtualization+Tools>"
5773 msgstr ""
5774 "L<https://bugzilla.redhat.com/buglist.cgi?"
5775 "component=libguestfs&product=Virtualization+Tools>"
5776
5777 #. type: textblock
5778 #: ../src/guestfs.pod:2959
5779 msgid "To report a new bug against libguestfs use this link:"
5780 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
5781
5782 #. type: textblock
5783 #: ../src/guestfs.pod:2961
5784 msgid ""
5785 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5786 "component=libguestfs&product=Virtualization+Tools>"
5787 msgstr ""
5788 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5789 "component=libguestfs&product=Virtualization+Tools>"
5790
5791 #. type: textblock
5792 #: ../src/guestfs.pod:2963
5793 msgid "When reporting a bug, please check:"
5794 msgstr ""
5795
5796 #. type: textblock
5797 #: ../src/guestfs.pod:2969
5798 msgid "That the bug hasn't been reported already."
5799 msgstr ""
5800
5801 #. type: textblock
5802 #: ../src/guestfs.pod:2973
5803 msgid "That you are testing a recent version."
5804 msgstr ""
5805
5806 #. type: textblock
5807 #: ../src/guestfs.pod:2977
5808 msgid "Describe the bug accurately, and give a way to reproduce it."
5809 msgstr ""
5810
5811 #. type: textblock
5812 #: ../src/guestfs.pod:2981
5813 msgid ""
5814 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5815 "bug report."
5816 msgstr ""
5817
5818 #. type: =head1
5819 #: ../src/guestfs.pod:2986 ../fish/guestfish.pod:1174
5820 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:280
5821 msgid "AUTHORS"
5822 msgstr "АВТОРИ"
5823
5824 #. type: textblock
5825 #: ../src/guestfs.pod:2988 ../fish/guestfish.pod:1176
5826 #: ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:282
5827 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5828 msgstr ""
5829
5830 #. type: =head1
5831 #: ../src/guestfs.pod:2990 ../fish/guestfish.pod:1178
5832 #: ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:284
5833 #: ../tools/virt-win-reg.pl:602 ../tools/virt-list-filesystems.pl:206
5834 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
5835 #: ../tools/virt-list-partitions.pl:273
5836 msgid "COPYRIGHT"
5837 msgstr "АВТОРСЬКІ ПРАВА"
5838
5839 #. type: textblock
5840 #: ../src/guestfs.pod:2992 ../fish/guestfish.pod:1180
5841 #: ../test-tool/libguestfs-test-tool.pod:99
5842 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
5843 msgstr ""
5844
5845 #. type: textblock
5846 #: ../src/guestfs.pod:2995
5847 msgid ""
5848 "This library is free software; you can redistribute it and/or modify it "
5849 "under the terms of the GNU Lesser General Public License as published by the "
5850 "Free Software Foundation; either version 2 of the License, or (at your "
5851 "option) any later version."
5852 msgstr ""
5853
5854 #. type: textblock
5855 #: ../src/guestfs.pod:3000
5856 msgid ""
5857 "This library is distributed in the hope that it will be useful, but WITHOUT "
5858 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5859 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5860 "for more details."
5861 msgstr ""
5862
5863 #. type: textblock
5864 #: ../src/guestfs.pod:3005
5865 msgid ""
5866 "You should have received a copy of the GNU Lesser General Public License "
5867 "along with this library; if not, write to the Free Software Foundation, "
5868 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5869 msgstr ""
5870
5871 #. type: =head2
5872 #: ../src/guestfs-actions.pod:1
5873 msgid "guestfs_add_cdrom"
5874 msgstr ""
5875
5876 #. type: verbatim
5877 #: ../src/guestfs-actions.pod:3
5878 #, no-wrap
5879 msgid ""
5880 " int\n"
5881 " guestfs_add_cdrom (guestfs_h *g,\n"
5882 "                    const char *filename);\n"
5883 "\n"
5884 msgstr ""
5885
5886 #. type: textblock
5887 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5888 msgid "This function adds a virtual CD-ROM disk image to the guest."
5889 msgstr ""
5890
5891 #. type: textblock
5892 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5893 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5894 msgstr ""
5895
5896 #. type: textblock
5897 #: ../src/guestfs-actions.pod:17
5898 msgid ""
5899 "This call checks for the existence of C<filename>.  This stops you from "
5900 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5901 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5902 "instead."
5903 msgstr ""
5904
5905 #. type: textblock
5906 #: ../src/guestfs-actions.pod:24
5907 msgid ""
5908 "If you just want to add an ISO file (often you use this as an efficient way "
5909 "to transfer large files into the guest), then you should probably use "
5910 "C<guestfs_add_drive_ro> instead."
5911 msgstr ""
5912
5913 #. type: textblock
5914 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
5915 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
5916 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
5917 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
5918 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
5919 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
5920 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
5921 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
5922 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
5923 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
5924 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
5925 #: ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1002
5926 #: ../src/guestfs-actions.pod:1020 ../src/guestfs-actions.pod:1104
5927 #: ../src/guestfs-actions.pod:1122 ../src/guestfs-actions.pod:1141
5928 #: ../src/guestfs-actions.pod:1155 ../src/guestfs-actions.pod:1175
5929 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1276
5930 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1343
5931 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1483
5932 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1723
5933 #: ../src/guestfs-actions.pod:1810 ../src/guestfs-actions.pod:2272
5934 #: ../src/guestfs-actions.pod:2416 ../src/guestfs-actions.pod:2477
5935 #: ../src/guestfs-actions.pod:2512 ../src/guestfs-actions.pod:3465
5936 #: ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3505
5937 #: ../src/guestfs-actions.pod:3660 ../src/guestfs-actions.pod:3674
5938 #: ../src/guestfs-actions.pod:3687 ../src/guestfs-actions.pod:3701
5939 #: ../src/guestfs-actions.pod:3716 ../src/guestfs-actions.pod:3752
5940 #: ../src/guestfs-actions.pod:3824 ../src/guestfs-actions.pod:3844
5941 #: ../src/guestfs-actions.pod:3861 ../src/guestfs-actions.pod:3884
5942 #: ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:3939
5943 #: ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:3977
5944 #: ../src/guestfs-actions.pod:4012 ../src/guestfs-actions.pod:4024
5945 #: ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4076
5946 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4104
5947 #: ../src/guestfs-actions.pod:4121 ../src/guestfs-actions.pod:4214
5948 #: ../src/guestfs-actions.pod:4234 ../src/guestfs-actions.pod:4247
5949 #: ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:4316
5950 #: ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:4350
5951 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4378
5952 #: ../src/guestfs-actions.pod:4395 ../src/guestfs-actions.pod:4410
5953 #: ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:4488
5954 #: ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4592
5955 #: ../src/guestfs-actions.pod:4611 ../src/guestfs-actions.pod:4630
5956 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4659
5957 #: ../src/guestfs-actions.pod:4672 ../src/guestfs-actions.pod:4687
5958 #: ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:4737
5959 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:4772
5960 #: ../src/guestfs-actions.pod:4786 ../src/guestfs-actions.pod:4803
5961 #: ../src/guestfs-actions.pod:4852 ../src/guestfs-actions.pod:4889
5962 #: ../src/guestfs-actions.pod:4903 ../src/guestfs-actions.pod:4931
5963 #: ../src/guestfs-actions.pod:4948 ../src/guestfs-actions.pod:4966
5964 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5157
5965 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5197
5966 #: ../src/guestfs-actions.pod:5229 ../src/guestfs-actions.pod:5295
5967 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5325
5968 #: ../src/guestfs-actions.pod:5339 ../src/guestfs-actions.pod:5628
5969 #: ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5666
5970 #: ../src/guestfs-actions.pod:5678 ../src/guestfs-actions.pod:5690
5971 #: ../src/guestfs-actions.pod:5704 ../src/guestfs-actions.pod:5716
5972 #: ../src/guestfs-actions.pod:5730 ../src/guestfs-actions.pod:5746
5973 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5786
5974 #: ../src/guestfs-actions.pod:5805 ../src/guestfs-actions.pod:5835
5975 #: ../src/guestfs-actions.pod:5851 ../src/guestfs-actions.pod:5874
5976 #: ../src/guestfs-actions.pod:5892 ../src/guestfs-actions.pod:5911
5977 #: ../src/guestfs-actions.pod:5932 ../src/guestfs-actions.pod:5951
5978 #: ../src/guestfs-actions.pod:5968 ../src/guestfs-actions.pod:5996
5979 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6039
5980 #: ../src/guestfs-actions.pod:6063 ../src/guestfs-actions.pod:6082
5981 #: ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6116
5982 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6176
5983 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6310
5984 #: ../src/guestfs-actions.pod:6431 ../src/guestfs-actions.pod:6443
5985 #: ../src/guestfs-actions.pod:6456 ../src/guestfs-actions.pod:6469
5986 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6504
5987 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6530
5988 #: ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6604
5989 #: ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:6637
5990 #: ../src/guestfs-actions.pod:6653 ../src/guestfs-actions.pod:6670
5991 #: ../src/guestfs-actions.pod:6683 ../src/guestfs-actions.pod:6703
5992 #: ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:6753
5993 #: ../src/guestfs-actions.pod:6794 ../src/guestfs-actions.pod:6807
5994 #: ../src/guestfs-actions.pod:6825 ../src/guestfs-actions.pod:6859
5995 #: ../src/guestfs-actions.pod:6895 ../src/guestfs-actions.pod:7014
5996 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7046
5997 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7114
5998 #: ../src/guestfs-actions.pod:7159 ../src/guestfs-actions.pod:7192
5999 #: ../src/guestfs-actions.pod:7246 ../src/guestfs-actions.pod:7272
6000 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7357
6001 #: ../src/guestfs-actions.pod:7386
6002 msgid "This function returns 0 on success or -1 on error."
6003 msgstr ""
6004
6005 #. type: textblock
6006 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
6007 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28
6008 #: ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
6009 msgid ""
6010 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6011 "instead."
6012 msgstr ""
6013
6014 #. type: textblock
6015 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
6016 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1454
6017 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:1971
6018 #: ../src/guestfs-actions.pod:4435 ../src/guestfs-actions.pod:7280
6019 #: ../src/guestfs-actions.pod:7449 ../fish/guestfish-actions.pod:31
6020 #: ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180
6021 #: ../fish/guestfish-actions.pod:961 ../fish/guestfish-actions.pod:1324
6022 #: ../fish/guestfish-actions.pod:1338 ../fish/guestfish-actions.pod:3013
6023 #: ../fish/guestfish-actions.pod:4871 ../fish/guestfish-actions.pod:4968
6024 msgid ""
6025 "Deprecated functions will not be removed from the API, but the fact that "
6026 "they are deprecated indicates that there are problems with correct use of "
6027 "these functions."
6028 msgstr ""
6029
6030 #. type: textblock
6031 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
6032 #: ../src/guestfs-actions.pod:1106 ../src/guestfs-actions.pod:1922
6033 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:2123
6034 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3487
6035 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:5853
6036 #: ../src/guestfs-actions.pod:5970 ../src/guestfs-actions.pod:6084
6037 #: ../src/guestfs-actions.pod:6547 ../src/guestfs-actions.pod:6672
6038 #: ../src/guestfs-actions.pod:7194
6039 msgid "(Added in 0.3)"
6040 msgstr ""
6041
6042 #. type: =head2
6043 #: ../src/guestfs-actions.pod:41
6044 msgid "guestfs_add_domain"
6045 msgstr ""
6046
6047 #. type: verbatim
6048 #: ../src/guestfs-actions.pod:43
6049 #, no-wrap
6050 msgid ""
6051 " int\n"
6052 " guestfs_add_domain (guestfs_h *g,\n"
6053 "                     const char *dom,\n"
6054 "                     ...);\n"
6055 "\n"
6056 msgstr ""
6057
6058 #. type: textblock
6059 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
6060 #: ../src/guestfs-actions.pod:4449
6061 msgid ""
6062 "You may supply a list of optional arguments to this call.  Use zero or more "
6063 "of the following pairs of parameters, and terminate the list with C<-1> on "
6064 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6065 msgstr ""
6066
6067 #. type: verbatim
6068 #: ../src/guestfs-actions.pod:53
6069 #, no-wrap
6070 msgid ""
6071 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6072 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6073 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6074 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6075 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
6076 "\n"
6077 msgstr ""
6078
6079 #. type: textblock
6080 #: ../src/guestfs-actions.pod:59
6081 msgid ""
6082 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6083 "It works by connecting to libvirt, requesting the domain and domain XML from "
6084 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6085 "one."
6086 msgstr ""
6087
6088 #. type: textblock
6089 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6090 msgid ""
6091 "The number of disks added is returned.  This operation is atomic: if an "
6092 "error is returned, then no disks are added."
6093 msgstr ""
6094
6095 #. type: textblock
6096 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
6097 msgid ""
6098 "This function does some minimal checks to make sure the libvirt domain is "
6099 "not running (unless C<readonly> is true).  In a future version we will try "
6100 "to acquire the libvirt lock on each disk."
6101 msgstr ""
6102
6103 #. type: textblock
6104 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
6105 msgid ""
6106 "Disks must be accessible locally.  This often means that adding disks from a "
6107 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6108 "unless those disks are accessible via the same device path locally too."
6109 msgstr ""
6110
6111 #. type: textblock
6112 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
6113 msgid ""
6114 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6115 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6116 "libvirt URI (or one set through an environment variable, see the libvirt "
6117 "documentation for full details)."
6118 msgstr ""
6119
6120 #. type: textblock
6121 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
6122 msgid ""
6123 "The optional C<live> flag controls whether this call will try to connect to "
6124 "a running virtual machine C<guestfsd> process if it sees a suitable "
6125 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6126 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6127 "DAEMONS> for more information."
6128 msgstr ""
6129
6130 #. type: textblock
6131 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
6132 msgid ""
6133 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6134 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6135 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6136 "as usual."
6137 msgstr ""
6138
6139 #. type: textblock
6140 #: ../src/guestfs-actions.pod:94
6141 msgid ""
6142 "The other optional parameters are passed directly through to "
6143 "C<guestfs_add_drive_opts>."
6144 msgstr ""
6145
6146 #. type: textblock
6147 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
6148 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
6149 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
6150 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1321
6151 #: ../src/guestfs-actions.pod:1680 ../src/guestfs-actions.pod:1883
6152 #: ../src/guestfs-actions.pod:1992 ../src/guestfs-actions.pod:2032
6153 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2110
6154 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:2786
6155 #: ../src/guestfs-actions.pod:2807 ../src/guestfs-actions.pod:4875
6156 #: ../src/guestfs-actions.pod:5003 ../src/guestfs-actions.pod:5409
6157 #: ../src/guestfs-actions.pod:5435 ../src/guestfs-actions.pod:6780
6158 #: ../src/guestfs-actions.pod:7205 ../src/guestfs-actions.pod:7218
6159 #: ../src/guestfs-actions.pod:7231
6160 msgid "On error this function returns -1."
6161 msgstr ""
6162
6163 #. type: textblock
6164 #: ../src/guestfs-actions.pod:99
6165 msgid "(Added in 1.7.4)"
6166 msgstr ""
6167
6168 #. type: =head2
6169 #: ../src/guestfs-actions.pod:101
6170 msgid "guestfs_add_domain_va"
6171 msgstr ""
6172
6173 #. type: verbatim
6174 #: ../src/guestfs-actions.pod:103
6175 #, no-wrap
6176 msgid ""
6177 " int\n"
6178 " guestfs_add_domain_va (guestfs_h *g,\n"
6179 "                        const char *dom,\n"
6180 "                        va_list args);\n"
6181 "\n"
6182 msgstr ""
6183
6184 #. type: textblock
6185 #: ../src/guestfs-actions.pod:108
6186 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6187 msgstr ""
6188
6189 #. type: textblock
6190 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
6191 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
6192 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:4514
6193 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6194 msgstr ""
6195
6196 #. type: =head2
6197 #: ../src/guestfs-actions.pod:112
6198 msgid "guestfs_add_domain_argv"
6199 msgstr ""
6200
6201 #. type: verbatim
6202 #: ../src/guestfs-actions.pod:114
6203 #, no-wrap
6204 msgid ""
6205 " int\n"
6206 " guestfs_add_domain_argv (guestfs_h *g,\n"
6207 "                          const char *dom,\n"
6208 "                          const struct guestfs_add_domain_argv *optargs);\n"
6209 "\n"
6210 msgstr ""
6211
6212 #. type: textblock
6213 #: ../src/guestfs-actions.pod:119
6214 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6215 msgstr ""
6216
6217 #. type: =head2
6218 #: ../src/guestfs-actions.pod:123
6219 msgid "guestfs_add_drive"
6220 msgstr ""
6221
6222 #. type: verbatim
6223 #: ../src/guestfs-actions.pod:125
6224 #, no-wrap
6225 msgid ""
6226 " int\n"
6227 " guestfs_add_drive (guestfs_h *g,\n"
6228 "                    const char *filename);\n"
6229 "\n"
6230 msgstr ""
6231
6232 #. type: textblock
6233 #: ../src/guestfs-actions.pod:129
6234 msgid ""
6235 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6236 "optional parameters, so the disk is added writable, with the format being "
6237 "detected automatically."
6238 msgstr ""
6239
6240 #. type: textblock
6241 #: ../src/guestfs-actions.pod:133
6242 msgid ""
6243 "Automatic detection of the format opens you up to a potential security hole "
6244 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6245 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6246 "you should think about replacing calls to this function with calls to "
6247 "C<guestfs_add_drive_opts>, and specifying the format."
6248 msgstr ""
6249
6250 #. type: =head2
6251 #: ../src/guestfs-actions.pod:144
6252 msgid "guestfs_add_drive_opts"
6253 msgstr ""
6254
6255 #. type: verbatim
6256 #: ../src/guestfs-actions.pod:146
6257 #, no-wrap
6258 msgid ""
6259 " int\n"
6260 " guestfs_add_drive_opts (guestfs_h *g,\n"
6261 "                         const char *filename,\n"
6262 "                         ...);\n"
6263 "\n"
6264 msgstr ""
6265
6266 #. type: verbatim
6267 #: ../src/guestfs-actions.pod:156
6268 #, no-wrap
6269 msgid ""
6270 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6271 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6272 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6273 "\n"
6274 msgstr ""
6275
6276 #. type: textblock
6277 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6278 msgid ""
6279 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6280 "The first time you call this function, the disk appears as C</dev/sda>, the "
6281 "second time as C</dev/sdb>, and so on."
6282 msgstr ""
6283
6284 #. type: textblock
6285 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6286 msgid ""
6287 "You don't necessarily need to be root when using libguestfs.  However you "
6288 "obviously do need sufficient permissions to access the filename for whatever "
6289 "operations you want to perform (ie. read access if you just want to read the "
6290 "image or write access if you want to modify the image)."
6291 msgstr ""
6292
6293 #. type: textblock
6294 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6295 msgid "This call checks that C<filename> exists."
6296 msgstr ""
6297
6298 #. type: textblock
6299 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4460
6300 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3024
6301 msgid "The optional arguments are:"
6302 msgstr ""
6303
6304 #. type: =item
6305 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6306 msgid "C<readonly>"
6307 msgstr "C<readonly>"
6308
6309 #. type: textblock
6310 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6311 msgid ""
6312 "If true then the image is treated as read-only.  Writes are still allowed, "
6313 "but they are stored in a temporary snapshot overlay which is discarded at "
6314 "the end.  The disk that you add is not modified."
6315 msgstr ""
6316
6317 #. type: =item
6318 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6319 msgid "C<format>"
6320 msgstr "C<format>"
6321
6322 #. type: textblock
6323 #: ../src/guestfs-actions.pod:185
6324 msgid ""
6325 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6326 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6327 "Possible formats include C<raw> and C<qcow2>."
6328 msgstr ""
6329
6330 #. type: textblock
6331 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6332 msgid ""
6333 "Automatic detection of the format opens you up to a potential security hole "
6334 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6335 "RHBZ#642934.  Specifying the format closes this security hole."
6336 msgstr ""
6337
6338 #. type: =item
6339 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6340 msgid "C<iface>"
6341 msgstr "C<iface>"
6342
6343 #. type: textblock
6344 #: ../src/guestfs-actions.pod:196
6345 msgid ""
6346 "This rarely-used option lets you emulate the behaviour of the deprecated "
6347 "C<guestfs_add_drive_with_if> call (q.v.)"
6348 msgstr ""
6349
6350 #. type: textblock
6351 #: ../src/guestfs-actions.pod:203
6352 msgid "(Added in 1.5.23)"
6353 msgstr ""
6354
6355 #. type: =head2
6356 #: ../src/guestfs-actions.pod:205
6357 msgid "guestfs_add_drive_opts_va"
6358 msgstr ""
6359
6360 #. type: verbatim
6361 #: ../src/guestfs-actions.pod:207
6362 #, no-wrap
6363 msgid ""
6364 " int\n"
6365 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6366 "                            const char *filename,\n"
6367 "                            va_list args);\n"
6368 "\n"
6369 msgstr ""
6370
6371 #. type: textblock
6372 #: ../src/guestfs-actions.pod:212
6373 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6374 msgstr ""
6375
6376 #. type: =head2
6377 #: ../src/guestfs-actions.pod:216
6378 msgid "guestfs_add_drive_opts_argv"
6379 msgstr ""
6380
6381 #. type: verbatim
6382 #: ../src/guestfs-actions.pod:218
6383 #, no-wrap
6384 msgid ""
6385 " int\n"
6386 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6387 "                              const char *filename,\n"
6388 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6389 "\n"
6390 msgstr ""
6391
6392 #. type: textblock
6393 #: ../src/guestfs-actions.pod:223
6394 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6395 msgstr ""
6396
6397 #. type: =head2
6398 #: ../src/guestfs-actions.pod:227
6399 msgid "guestfs_add_drive_ro"
6400 msgstr ""
6401
6402 #. type: verbatim
6403 #: ../src/guestfs-actions.pod:229
6404 #, no-wrap
6405 msgid ""
6406 " int\n"
6407 " guestfs_add_drive_ro (guestfs_h *g,\n"
6408 "                       const char *filename);\n"
6409 "\n"
6410 msgstr ""
6411
6412 #. type: textblock
6413 #: ../src/guestfs-actions.pod:233
6414 msgid ""
6415 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6416 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6417 "disk is added read-only, with the format being detected automatically."
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../src/guestfs-actions.pod:240
6422 msgid "(Added in 1.0.38)"
6423 msgstr ""
6424
6425 #. type: =head2
6426 #: ../src/guestfs-actions.pod:242
6427 msgid "guestfs_add_drive_ro_with_if"
6428 msgstr ""
6429
6430 #. type: verbatim
6431 #: ../src/guestfs-actions.pod:244
6432 #, no-wrap
6433 msgid ""
6434 " int\n"
6435 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6436 "                               const char *filename,\n"
6437 "                               const char *iface);\n"
6438 "\n"
6439 msgstr ""
6440
6441 #. type: textblock
6442 #: ../src/guestfs-actions.pod:249
6443 msgid ""
6444 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6445 "QEMU interface emulation to use at run time."
6446 msgstr ""
6447
6448 #. type: textblock
6449 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
6450 #: ../src/guestfs-actions.pod:2362
6451 msgid "(Added in 1.0.84)"
6452 msgstr ""
6453
6454 #. type: =head2
6455 #: ../src/guestfs-actions.pod:263
6456 msgid "guestfs_add_drive_with_if"
6457 msgstr ""
6458
6459 #. type: verbatim
6460 #: ../src/guestfs-actions.pod:265
6461 #, no-wrap
6462 msgid ""
6463 " int\n"
6464 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6465 "                            const char *filename,\n"
6466 "                            const char *iface);\n"
6467 "\n"
6468 msgstr ""
6469
6470 #. type: textblock
6471 #: ../src/guestfs-actions.pod:270
6472 msgid ""
6473 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6474 "QEMU interface emulation to use at run time."
6475 msgstr ""
6476
6477 #. type: =head2
6478 #: ../src/guestfs-actions.pod:284
6479 msgid "guestfs_aug_clear"
6480 msgstr ""
6481
6482 #. type: verbatim
6483 #: ../src/guestfs-actions.pod:286
6484 #, no-wrap
6485 msgid ""
6486 " int\n"
6487 " guestfs_aug_clear (guestfs_h *g,\n"
6488 "                    const char *augpath);\n"
6489 "\n"
6490 msgstr ""
6491
6492 #. type: textblock
6493 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
6494 msgid ""
6495 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6496 "L<augtool(1)> C<clear> command."
6497 msgstr ""
6498
6499 #. type: textblock
6500 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2112
6501 msgid "(Added in 1.3.4)"
6502 msgstr ""
6503
6504 #. type: =head2
6505 #: ../src/guestfs-actions.pod:297
6506 msgid "guestfs_aug_close"
6507 msgstr ""
6508
6509 #. type: verbatim
6510 #: ../src/guestfs-actions.pod:299
6511 #, no-wrap
6512 msgid ""
6513 " int\n"
6514 " guestfs_aug_close (guestfs_h *g);\n"
6515 "\n"
6516 msgstr ""
6517
6518 #. type: textblock
6519 #: ../src/guestfs-actions.pod:302
6520 msgid ""
6521 "Close the current Augeas handle and free up any resources used by it.  After "
6522 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6523 "any other Augeas functions."
6524 msgstr ""
6525
6526 #. type: textblock
6527 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
6528 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
6529 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
6530 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
6531 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
6532 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
6533 #: ../src/guestfs-actions.pod:5486
6534 msgid "(Added in 0.7)"
6535 msgstr ""
6536
6537 #. type: =head2
6538 #: ../src/guestfs-actions.pod:311
6539 msgid "guestfs_aug_defnode"
6540 msgstr ""
6541
6542 #. type: verbatim
6543 #: ../src/guestfs-actions.pod:313
6544 #, no-wrap
6545 msgid ""
6546 " struct guestfs_int_bool *\n"
6547 " guestfs_aug_defnode (guestfs_h *g,\n"
6548 "                      const char *name,\n"
6549 "                      const char *expr,\n"
6550 "                      const char *val);\n"
6551 "\n"
6552 msgstr ""
6553
6554 #. type: textblock
6555 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
6556 msgid ""
6557 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6558 msgstr ""
6559
6560 #. type: textblock
6561 #: ../src/guestfs-actions.pod:322
6562 msgid ""
6563 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6564 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6565 "containing that single node."
6566 msgstr ""
6567
6568 #. type: textblock
6569 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
6570 msgid ""
6571 "On success this returns a pair containing the number of nodes in the "
6572 "nodeset, and a boolean flag if a node was created."
6573 msgstr ""
6574
6575 #. type: textblock
6576 #: ../src/guestfs-actions.pod:330
6577 msgid ""
6578 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6579 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6580 msgstr ""
6581
6582 #. type: =head2
6583 #: ../src/guestfs-actions.pod:336
6584 msgid "guestfs_aug_defvar"
6585 msgstr ""
6586
6587 #. type: verbatim
6588 #: ../src/guestfs-actions.pod:338
6589 #, no-wrap
6590 msgid ""
6591 " int\n"
6592 " guestfs_aug_defvar (guestfs_h *g,\n"
6593 "                     const char *name,\n"
6594 "                     const char *expr);\n"
6595 "\n"
6596 msgstr ""
6597
6598 #. type: textblock
6599 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
6600 msgid ""
6601 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6602 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6603 msgstr ""
6604
6605 #. type: textblock
6606 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
6607 msgid ""
6608 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6609 "evaluates to something which is not a nodeset."
6610 msgstr ""
6611
6612 #. type: =head2
6613 #: ../src/guestfs-actions.pod:354
6614 msgid "guestfs_aug_get"
6615 msgstr ""
6616
6617 #. type: verbatim
6618 #: ../src/guestfs-actions.pod:356
6619 #, no-wrap
6620 msgid ""
6621 " char *\n"
6622 " guestfs_aug_get (guestfs_h *g,\n"
6623 "                  const char *augpath);\n"
6624 "\n"
6625 msgstr ""
6626
6627 #. type: textblock
6628 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
6629 msgid ""
6630 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6631 "node, the C<value> is returned."
6632 msgstr ""
6633
6634 #. type: textblock
6635 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:863
6636 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:941
6637 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:1060
6638 #: ../src/guestfs-actions.pod:1190 ../src/guestfs-actions.pod:1207
6639 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1360
6640 #: ../src/guestfs-actions.pod:1551 ../src/guestfs-actions.pod:1663
6641 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1843
6642 #: ../src/guestfs-actions.pod:1910 ../src/guestfs-actions.pod:1944
6643 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2135
6644 #: ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:2534
6645 #: ../src/guestfs-actions.pod:2627 ../src/guestfs-actions.pod:2738
6646 #: ../src/guestfs-actions.pod:2758 ../src/guestfs-actions.pod:2878
6647 #: ../src/guestfs-actions.pod:2909 ../src/guestfs-actions.pod:2933
6648 #: ../src/guestfs-actions.pod:2970 ../src/guestfs-actions.pod:3030
6649 #: ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3074
6650 #: ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3996
6651 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4276
6652 #: ../src/guestfs-actions.pod:5021 ../src/guestfs-actions.pod:5214
6653 #: ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5562
6654 #: ../src/guestfs-actions.pod:5611 ../src/guestfs-actions.pod:6223
6655 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6256
6656 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6954
6657 #: ../src/guestfs-actions.pod:6973 ../src/guestfs-actions.pod:6991
6658 #: ../src/guestfs-actions.pod:7171 ../src/guestfs-actions.pod:7443
6659 msgid ""
6660 "This function returns a string, or NULL on error.  I<The caller must free "
6661 "the returned string after use>."
6662 msgstr ""
6663
6664 #. type: =head2
6665 #: ../src/guestfs-actions.pod:368
6666 msgid "guestfs_aug_init"
6667 msgstr ""
6668
6669 #. type: verbatim
6670 #: ../src/guestfs-actions.pod:370
6671 #, no-wrap
6672 msgid ""
6673 " int\n"
6674 " guestfs_aug_init (guestfs_h *g,\n"
6675 "                   const char *root,\n"
6676 "                   int flags);\n"
6677 "\n"
6678 msgstr ""
6679
6680 #. type: textblock
6681 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
6682 msgid ""
6683 "Create a new Augeas handle for editing configuration files.  If there was "
6684 "any previous Augeas handle associated with this guestfs session, then it is "
6685 "closed."
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../src/guestfs-actions.pod:379
6690 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6691 msgstr ""
6692
6693 #. type: textblock
6694 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
6695 msgid ""
6696 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6697 msgstr ""
6698
6699 #. type: textblock
6700 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
6701 msgid ""
6702 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6703 "logical I<or> of the following integers:"
6704 msgstr ""
6705
6706 #. type: =item
6707 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
6708 msgid "C<AUG_SAVE_BACKUP> = 1"
6709 msgstr "C<AUG_SAVE_BACKUP> = 1"
6710
6711 #. type: textblock
6712 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
6713 msgid "Keep the original file with a C<.augsave> extension."
6714 msgstr ""
6715
6716 #. type: =item
6717 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
6718 msgid "C<AUG_SAVE_NEWFILE> = 2"
6719 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6720
6721 #. type: textblock
6722 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
6723 msgid ""
6724 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6725 "original.  Overrides C<AUG_SAVE_BACKUP>."
6726 msgstr ""
6727
6728 #. type: =item
6729 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
6730 msgid "C<AUG_TYPE_CHECK> = 4"
6731 msgstr "C<AUG_TYPE_CHECK> = 4"
6732
6733 #. type: textblock
6734 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
6735 msgid "Typecheck lenses (can be expensive)."
6736 msgstr ""
6737
6738 #. type: =item
6739 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
6740 msgid "C<AUG_NO_STDINC> = 8"
6741 msgstr "C<AUG_NO_STDINC> = 8"
6742
6743 #. type: textblock
6744 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
6745 msgid "Do not use standard load path for modules."
6746 msgstr ""
6747
6748 #. type: =item
6749 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
6750 msgid "C<AUG_SAVE_NOOP> = 16"
6751 msgstr "C<AUG_SAVE_NOOP> = 16"
6752
6753 #. type: textblock
6754 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
6755 msgid "Make save a no-op, just record what would have been changed."
6756 msgstr ""
6757
6758 #. type: =item
6759 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
6760 msgid "C<AUG_NO_LOAD> = 32"
6761 msgstr "C<AUG_NO_LOAD> = 32"
6762
6763 #. type: textblock
6764 #: ../src/guestfs-actions.pod:414
6765 msgid "Do not load the tree in C<guestfs_aug_init>."
6766 msgstr ""
6767
6768 #. type: textblock
6769 #: ../src/guestfs-actions.pod:418
6770 msgid "To close the handle, you can call C<guestfs_aug_close>."
6771 msgstr ""
6772
6773 #. type: textblock
6774 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
6775 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6776 msgstr ""
6777
6778 #. type: =head2
6779 #: ../src/guestfs-actions.pod:426
6780 msgid "guestfs_aug_insert"
6781 msgstr ""
6782
6783 #. type: verbatim
6784 #: ../src/guestfs-actions.pod:428
6785 #, no-wrap
6786 msgid ""
6787 " int\n"
6788 " guestfs_aug_insert (guestfs_h *g,\n"
6789 "                     const char *augpath,\n"
6790 "                     const char *label,\n"
6791 "                     int before);\n"
6792 "\n"
6793 msgstr ""
6794
6795 #. type: textblock
6796 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
6797 msgid ""
6798 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6799 "or after C<path> (depending on the boolean flag C<before>)."
6800 msgstr ""
6801
6802 #. type: textblock
6803 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
6804 msgid ""
6805 "C<path> must match exactly one existing node in the tree, and C<label> must "
6806 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6807 msgstr ""
6808
6809 #. type: =head2
6810 #: ../src/guestfs-actions.pod:446
6811 msgid "guestfs_aug_load"
6812 msgstr ""
6813
6814 #. type: verbatim
6815 #: ../src/guestfs-actions.pod:448
6816 #, no-wrap
6817 msgid ""
6818 " int\n"
6819 " guestfs_aug_load (guestfs_h *g);\n"
6820 "\n"
6821 msgstr ""
6822
6823 #. type: textblock
6824 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
6825 msgid "Load files into the tree."
6826 msgstr "Завантажити файли до ієрархії."
6827
6828 #. type: textblock
6829 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
6830 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6831 msgstr ""
6832
6833 #. type: =head2
6834 #: ../src/guestfs-actions.pod:460
6835 msgid "guestfs_aug_ls"
6836 msgstr ""
6837
6838 #. type: verbatim
6839 #: ../src/guestfs-actions.pod:462
6840 #, no-wrap
6841 msgid ""
6842 " char **\n"
6843 " guestfs_aug_ls (guestfs_h *g,\n"
6844 "                 const char *augpath);\n"
6845 "\n"
6846 msgstr ""
6847
6848 #. type: textblock
6849 #: ../src/guestfs-actions.pod:466
6850 msgid ""
6851 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6852 "sorting the resulting nodes into alphabetical order."
6853 msgstr ""
6854
6855 #. type: textblock
6856 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
6857 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1079
6858 #: ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1394
6859 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1516
6860 #: ../src/guestfs-actions.pod:1765 ../src/guestfs-actions.pod:2207
6861 #: ../src/guestfs-actions.pod:2223 ../src/guestfs-actions.pod:2242
6862 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:2309
6863 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:2429
6864 #: ../src/guestfs-actions.pod:2696 ../src/guestfs-actions.pod:2987
6865 #: ../src/guestfs-actions.pod:3276 ../src/guestfs-actions.pod:3566
6866 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3733
6867 #: ../src/guestfs-actions.pod:4138 ../src/guestfs-actions.pod:4836
6868 #: ../src/guestfs-actions.pod:5356 ../src/guestfs-actions.pod:5482
6869 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:6296
6870 #: ../src/guestfs-actions.pod:6357 ../src/guestfs-actions.pod:6412
6871 #: ../src/guestfs-actions.pod:6558 ../src/guestfs-actions.pod:6582
6872 #: ../src/guestfs-actions.pod:7064 ../src/guestfs-actions.pod:7084
6873 #: ../src/guestfs-actions.pod:7131 ../src/guestfs-actions.pod:7296
6874 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-actions.pod:7400
6875 #: ../src/guestfs-actions.pod:7419 ../src/guestfs-actions.pod:7465
6876 #: ../src/guestfs-actions.pod:7484
6877 msgid ""
6878 "This function returns a NULL-terminated array of strings (like L<environ(3)"
6879 ">), or NULL if there was an error.  I<The caller must free the strings and "
6880 "the array after use>."
6881 msgstr ""
6882
6883 #. type: textblock
6884 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1004
6885 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:1432
6886 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3385
6887 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:4029
6888 #: ../src/guestfs-actions.pod:4216 ../src/guestfs-actions.pod:4249
6889 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4840
6890 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5692
6891 #: ../src/guestfs-actions.pod:5706 ../src/guestfs-actions.pod:5718
6892 #: ../src/guestfs-actions.pod:6158 ../src/guestfs-actions.pod:6796
6893 #: ../src/guestfs-actions.pod:6809 ../src/guestfs-actions.pod:7048
6894 #: ../src/guestfs-actions.pod:7284
6895 msgid "(Added in 0.8)"
6896 msgstr ""
6897
6898 #. type: =head2
6899 #: ../src/guestfs-actions.pod:475
6900 msgid "guestfs_aug_match"
6901 msgstr ""
6902
6903 #. type: verbatim
6904 #: ../src/guestfs-actions.pod:477
6905 #, no-wrap
6906 msgid ""
6907 " char **\n"
6908 " guestfs_aug_match (guestfs_h *g,\n"
6909 "                    const char *augpath);\n"
6910 "\n"
6911 msgstr ""
6912
6913 #. type: textblock
6914 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
6915 msgid ""
6916 "Returns a list of paths which match the path expression C<path>.  The "
6917 "returned paths are sufficiently qualified so that they match exactly one "
6918 "node in the current tree."
6919 msgstr ""
6920
6921 #. type: =head2
6922 #: ../src/guestfs-actions.pod:491
6923 msgid "guestfs_aug_mv"
6924 msgstr ""
6925
6926 #. type: verbatim
6927 #: ../src/guestfs-actions.pod:493
6928 #, no-wrap
6929 msgid ""
6930 " int\n"
6931 " guestfs_aug_mv (guestfs_h *g,\n"
6932 "                 const char *src,\n"
6933 "                 const char *dest);\n"
6934 "\n"
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
6939 msgid ""
6940 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6941 "C<dest> is overwritten if it exists."
6942 msgstr ""
6943
6944 #. type: =head2
6945 #: ../src/guestfs-actions.pod:505
6946 msgid "guestfs_aug_rm"
6947 msgstr ""
6948
6949 #. type: verbatim
6950 #: ../src/guestfs-actions.pod:507
6951 #, no-wrap
6952 msgid ""
6953 " int\n"
6954 " guestfs_aug_rm (guestfs_h *g,\n"
6955 "                 const char *augpath);\n"
6956 "\n"
6957 msgstr ""
6958
6959 #. type: textblock
6960 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
6961 msgid "Remove C<path> and all of its children."
6962 msgstr ""
6963
6964 #. type: textblock
6965 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
6966 msgid "On success this returns the number of entries which were removed."
6967 msgstr ""
6968
6969 #. type: =head2
6970 #: ../src/guestfs-actions.pod:519
6971 msgid "guestfs_aug_save"
6972 msgstr ""
6973
6974 #. type: verbatim
6975 #: ../src/guestfs-actions.pod:521
6976 #, no-wrap
6977 msgid ""
6978 " int\n"
6979 " guestfs_aug_save (guestfs_h *g);\n"
6980 "\n"
6981 msgstr ""
6982
6983 #. type: textblock
6984 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
6985 msgid "This writes all pending changes to disk."
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../src/guestfs-actions.pod:526
6990 msgid ""
6991 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
6992 "are saved."
6993 msgstr ""
6994
6995 #. type: =head2
6996 #: ../src/guestfs-actions.pod:533
6997 msgid "guestfs_aug_set"
6998 msgstr ""
6999
7000 #. type: verbatim
7001 #: ../src/guestfs-actions.pod:535
7002 #, no-wrap
7003 msgid ""
7004 " int\n"
7005 " guestfs_aug_set (guestfs_h *g,\n"
7006 "                  const char *augpath,\n"
7007 "                  const char *val);\n"
7008 "\n"
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7013 msgid "Set the value associated with C<path> to C<val>."
7014 msgstr ""
7015
7016 #. type: textblock
7017 #: ../src/guestfs-actions.pod:542
7018 msgid ""
7019 "In the Augeas API, it is possible to clear a node by setting the value to "
7020 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7021 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7022 msgstr ""
7023
7024 #. type: =head2
7025 #: ../src/guestfs-actions.pod:551
7026 msgid "guestfs_available"
7027 msgstr ""
7028
7029 #. type: verbatim
7030 #: ../src/guestfs-actions.pod:553
7031 #, no-wrap
7032 msgid ""
7033 " int\n"
7034 " guestfs_available (guestfs_h *g,\n"
7035 "                    char *const *groups);\n"
7036 "\n"
7037 msgstr ""
7038
7039 #. type: textblock
7040 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
7041 msgid ""
7042 "This command is used to check the availability of some groups of "
7043 "functionality in the appliance, which not all builds of the libguestfs "
7044 "appliance will be able to provide."
7045 msgstr ""
7046
7047 #. type: textblock
7048 #: ../src/guestfs-actions.pod:561
7049 msgid ""
7050 "The libguestfs groups, and the functions that those groups correspond to, "
7051 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7052 "runtime by calling C<guestfs_available_all_groups>."
7053 msgstr ""
7054
7055 #. type: textblock
7056 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
7057 msgid ""
7058 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7059 "\"]> would check for the availability of the Linux inotify functions and "
7060 "Augeas (configuration file editing) functions."
7061 msgstr ""
7062
7063 #. type: textblock
7064 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
7065 msgid "The command returns no error if I<all> requested groups are available."
7066 msgstr ""
7067
7068 #. type: textblock
7069 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7070 msgid ""
7071 "It fails with an error if one or more of the requested groups is unavailable "
7072 "in the appliance."
7073 msgstr ""
7074
7075 #. type: textblock
7076 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7077 msgid ""
7078 "If an unknown group name is included in the list of groups then an error is "
7079 "always returned."
7080 msgstr ""
7081
7082 #. type: textblock
7083 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7084 msgid "I<Notes:>"
7085 msgstr "I<Нотатки:>"
7086
7087 #. type: textblock
7088 #: ../src/guestfs-actions.pod:585
7089 msgid "You must call C<guestfs_launch> before calling this function."
7090 msgstr ""
7091
7092 #. type: textblock
7093 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
7094 msgid ""
7095 "The reason is because we don't know what groups are supported by the "
7096 "appliance/daemon until it is running and can be queried."
7097 msgstr ""
7098
7099 #. type: textblock
7100 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
7101 msgid ""
7102 "If a group of functions is available, this does not necessarily mean that "
7103 "they will work.  You still have to check for errors when calling individual "
7104 "API functions even if they are available."
7105 msgstr ""
7106
7107 #. type: textblock
7108 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
7109 msgid ""
7110 "It is usually the job of distro packagers to build complete functionality "
7111 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7112 "with all requirements satisfied, will support everything."
7113 msgstr ""
7114
7115 #. type: textblock
7116 #: ../src/guestfs-actions.pod:607
7117 msgid ""
7118 "This call was added in version C<1.0.80>.  In previous versions of "
7119 "libguestfs all you could do would be to speculatively execute a command to "
7120 "find out if the daemon implemented it.  See also C<guestfs_version>."
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1177
7125 msgid "(Added in 1.0.80)"
7126 msgstr ""
7127
7128 #. type: =head2
7129 #: ../src/guestfs-actions.pod:618
7130 msgid "guestfs_available_all_groups"
7131 msgstr ""
7132
7133 #. type: verbatim
7134 #: ../src/guestfs-actions.pod:620
7135 #, no-wrap
7136 msgid ""
7137 " char **\n"
7138 " guestfs_available_all_groups (guestfs_h *g);\n"
7139 "\n"
7140 msgstr ""
7141
7142 #. type: textblock
7143 #: ../src/guestfs-actions.pod:623
7144 msgid ""
7145 "This command returns a list of all optional groups that this daemon knows "
7146 "about.  Note this returns both supported and unsupported groups.  To find "
7147 "out which ones the daemon can actually support you have to call "
7148 "C<guestfs_available> on each member of the returned list."
7149 msgstr ""
7150
7151 #. type: textblock
7152 #: ../src/guestfs-actions.pod:629
7153 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7154 msgstr ""
7155
7156 #. type: textblock
7157 #: ../src/guestfs-actions.pod:635
7158 msgid "(Added in 1.3.15)"
7159 msgstr ""
7160
7161 #. type: =head2
7162 #: ../src/guestfs-actions.pod:637
7163 msgid "guestfs_base64_in"
7164 msgstr ""
7165
7166 #. type: verbatim
7167 #: ../src/guestfs-actions.pod:639
7168 #, no-wrap
7169 msgid ""
7170 " int\n"
7171 " guestfs_base64_in (guestfs_h *g,\n"
7172 "                    const char *base64file,\n"
7173 "                    const char *filename);\n"
7174 "\n"
7175 msgstr ""
7176
7177 #. type: textblock
7178 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7179 msgid ""
7180 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7181 msgstr ""
7182
7183 #. type: textblock
7184 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7185 msgid "(Added in 1.3.5)"
7186 msgstr ""
7187
7188 #. type: =head2
7189 #: ../src/guestfs-actions.pod:651
7190 msgid "guestfs_base64_out"
7191 msgstr ""
7192
7193 #. type: verbatim
7194 #: ../src/guestfs-actions.pod:653
7195 #, no-wrap
7196 msgid ""
7197 " int\n"
7198 " guestfs_base64_out (guestfs_h *g,\n"
7199 "                     const char *filename,\n"
7200 "                     const char *base64file);\n"
7201 "\n"
7202 msgstr ""
7203
7204 #. type: textblock
7205 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7206 msgid ""
7207 "This command downloads the contents of C<filename>, writing it out to local "
7208 "file C<base64file> encoded as base64."
7209 msgstr ""
7210
7211 #. type: =head2
7212 #: ../src/guestfs-actions.pod:665
7213 msgid "guestfs_blockdev_flushbufs"
7214 msgstr ""
7215
7216 #. type: verbatim
7217 #: ../src/guestfs-actions.pod:667
7218 #, no-wrap
7219 msgid ""
7220 " int\n"
7221 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7222 "                             const char *device);\n"
7223 "\n"
7224 msgstr ""
7225
7226 #. type: textblock
7227 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7228 msgid ""
7229 "This tells the kernel to flush internal buffers associated with C<device>."
7230 msgstr ""
7231
7232 #. type: textblock
7233 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
7234 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
7235 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
7236 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
7237 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
7238 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
7239 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
7240 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
7241 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
7242 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7243 msgid "This uses the L<blockdev(8)> command."
7244 msgstr ""
7245
7246 #. type: textblock
7247 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
7248 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
7249 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
7250 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
7251 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
7252 msgid "(Added in 0.9.3)"
7253 msgstr ""
7254
7255 #. type: =head2
7256 #: ../src/guestfs-actions.pod:680
7257 msgid "guestfs_blockdev_getbsz"
7258 msgstr ""
7259
7260 #. type: verbatim
7261 #: ../src/guestfs-actions.pod:682
7262 #, no-wrap
7263 msgid ""
7264 " int\n"
7265 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7266 "                          const char *device);\n"
7267 "\n"
7268 msgstr ""
7269
7270 #. type: textblock
7271 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7272 msgid "This returns the block size of a device."
7273 msgstr ""
7274
7275 #. type: textblock
7276 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
7277 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7278 msgid ""
7279 "(Note this is different from both I<size in blocks> and I<filesystem block "
7280 "size>)."
7281 msgstr ""
7282
7283 #. type: =head2
7284 #: ../src/guestfs-actions.pod:697
7285 msgid "guestfs_blockdev_getro"
7286 msgstr ""
7287
7288 #. type: verbatim
7289 #: ../src/guestfs-actions.pod:699
7290 #, no-wrap
7291 msgid ""
7292 " int\n"
7293 " guestfs_blockdev_getro (guestfs_h *g,\n"
7294 "                         const char *device);\n"
7295 "\n"
7296 msgstr ""
7297
7298 #. type: textblock
7299 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7300 msgid ""
7301 "Returns a boolean indicating if the block device is read-only (true if read-"
7302 "only, false if not)."
7303 msgstr ""
7304
7305 #. type: textblock
7306 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1415
7307 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1920
7308 #: ../src/guestfs-actions.pod:1931 ../src/guestfs-actions.pod:2003
7309 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2073
7310 #: ../src/guestfs-actions.pod:2098 ../src/guestfs-actions.pod:2121
7311 #: ../src/guestfs-actions.pod:3094 ../src/guestfs-actions.pod:3111
7312 #: ../src/guestfs-actions.pod:3130 ../src/guestfs-actions.pod:3293
7313 #: ../src/guestfs-actions.pod:3307 ../src/guestfs-actions.pod:3322
7314 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3352
7315 #: ../src/guestfs-actions.pod:3367 ../src/guestfs-actions.pod:3383
7316 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3410
7317 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3439
7318 #: ../src/guestfs-actions.pod:3454 ../src/guestfs-actions.pod:4985
7319 msgid "This function returns a C truth value on success or -1 on error."
7320 msgstr ""
7321
7322 #. type: =head2
7323 #: ../src/guestfs-actions.pod:712
7324 msgid "guestfs_blockdev_getsize64"
7325 msgstr ""
7326
7327 #. type: verbatim
7328 #: ../src/guestfs-actions.pod:714
7329 #, no-wrap
7330 msgid ""
7331 " int64_t\n"
7332 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7333 "                             const char *device);\n"
7334 "\n"
7335 msgstr ""
7336
7337 #. type: textblock
7338 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
7339 msgid "This returns the size of the device in bytes."
7340 msgstr ""
7341
7342 #. type: textblock
7343 #: ../src/guestfs-actions.pod:720
7344 msgid "See also C<guestfs_blockdev_getsz>."
7345 msgstr ""
7346
7347 #. type: =head2
7348 #: ../src/guestfs-actions.pod:728
7349 msgid "guestfs_blockdev_getss"
7350 msgstr ""
7351
7352 #. type: verbatim
7353 #: ../src/guestfs-actions.pod:730
7354 #, no-wrap
7355 msgid ""
7356 " int\n"
7357 " guestfs_blockdev_getss (guestfs_h *g,\n"
7358 "                         const char *device);\n"
7359 "\n"
7360 msgstr ""
7361
7362 #. type: textblock
7363 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
7364 msgid ""
7365 "This returns the size of sectors on a block device.  Usually 512, but can be "
7366 "larger for modern devices."
7367 msgstr ""
7368
7369 #. type: textblock
7370 #: ../src/guestfs-actions.pod:737
7371 msgid ""
7372 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7373 "that)."
7374 msgstr ""
7375
7376 #. type: =head2
7377 #: ../src/guestfs-actions.pod:746
7378 msgid "guestfs_blockdev_getsz"
7379 msgstr ""
7380
7381 #. type: verbatim
7382 #: ../src/guestfs-actions.pod:748
7383 #, no-wrap
7384 msgid ""
7385 " int64_t\n"
7386 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7387 "                         const char *device);\n"
7388 "\n"
7389 msgstr ""
7390
7391 #. type: textblock
7392 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
7393 msgid ""
7394 "This returns the size of the device in units of 512-byte sectors (even if "
7395 "the sectorsize isn't 512 bytes ... weird)."
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../src/guestfs-actions.pod:755
7400 msgid ""
7401 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7402 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7403 msgstr ""
7404
7405 #. type: =head2
7406 #: ../src/guestfs-actions.pod:765
7407 msgid "guestfs_blockdev_rereadpt"
7408 msgstr ""
7409
7410 #. type: verbatim
7411 #: ../src/guestfs-actions.pod:767
7412 #, no-wrap
7413 msgid ""
7414 " int\n"
7415 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7416 "                            const char *device);\n"
7417 "\n"
7418 msgstr ""
7419
7420 #. type: textblock
7421 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
7422 msgid "Reread the partition table on C<device>."
7423 msgstr ""
7424
7425 #. type: =head2
7426 #: ../src/guestfs-actions.pod:779
7427 msgid "guestfs_blockdev_setbsz"
7428 msgstr ""
7429
7430 #. type: verbatim
7431 #: ../src/guestfs-actions.pod:781
7432 #, no-wrap
7433 msgid ""
7434 " int\n"
7435 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7436 "                          const char *device,\n"
7437 "                          int blocksize);\n"
7438 "\n"
7439 msgstr ""
7440
7441 #. type: textblock
7442 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
7443 msgid "This sets the block size of a device."
7444 msgstr ""
7445
7446 #. type: =head2
7447 #: ../src/guestfs-actions.pod:797
7448 msgid "guestfs_blockdev_setro"
7449 msgstr ""
7450
7451 #. type: verbatim
7452 #: ../src/guestfs-actions.pod:799
7453 #, no-wrap
7454 msgid ""
7455 " int\n"
7456 " guestfs_blockdev_setro (guestfs_h *g,\n"
7457 "                         const char *device);\n"
7458 "\n"
7459 msgstr ""
7460
7461 #. type: textblock
7462 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
7463 msgid "Sets the block device named C<device> to read-only."
7464 msgstr ""
7465
7466 #. type: =head2
7467 #: ../src/guestfs-actions.pod:811
7468 msgid "guestfs_blockdev_setrw"
7469 msgstr ""
7470
7471 #. type: verbatim
7472 #: ../src/guestfs-actions.pod:813
7473 #, no-wrap
7474 msgid ""
7475 " int\n"
7476 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7477 "                         const char *device);\n"
7478 "\n"
7479 msgstr ""
7480
7481 #. type: textblock
7482 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
7483 msgid "Sets the block device named C<device> to read-write."
7484 msgstr ""
7485
7486 #. type: =head2
7487 #: ../src/guestfs-actions.pod:825
7488 msgid "guestfs_case_sensitive_path"
7489 msgstr ""
7490
7491 #. type: verbatim
7492 #: ../src/guestfs-actions.pod:827
7493 #, no-wrap
7494 msgid ""
7495 " char *\n"
7496 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7497 "                              const char *path);\n"
7498 "\n"
7499 msgstr ""
7500
7501 #. type: textblock
7502 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:549
7503 msgid ""
7504 "This can be used to resolve case insensitive paths on a filesystem which is "
7505 "case sensitive.  The use case is to resolve paths which you have read from "
7506 "Windows configuration files or the Windows Registry, to the true path."
7507 msgstr ""
7508
7509 #. type: textblock
7510 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:554
7511 msgid ""
7512 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7513 "(and probably others), which is that although the underlying filesystem is "
7514 "case-insensitive, the driver exports the filesystem to Linux as case-"
7515 "sensitive."
7516 msgstr ""
7517
7518 #. type: textblock
7519 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:559
7520 msgid ""
7521 "One consequence of this is that special directories such as C<c:\\windows> "
7522 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7523 "precise details of how they were created.  In Windows itself this would not "
7524 "be a problem."
7525 msgstr ""
7526
7527 #. type: textblock
7528 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:565
7529 msgid ""
7530 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7531 "#posixfilenames1>"
7532 msgstr ""
7533
7534 #. type: textblock
7535 #: ../src/guestfs-actions.pod:850 ../fish/guestfish-actions.pod:568
7536 msgid ""
7537 "This function resolves the true case of each element in the path and returns "
7538 "the case-sensitive path."
7539 msgstr ""
7540
7541 #. type: textblock
7542 #: ../src/guestfs-actions.pod:853
7543 msgid ""
7544 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
7545 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7546 "how the directories were originally created under Windows)."
7547 msgstr ""
7548
7549 #. type: textblock
7550 #: ../src/guestfs-actions.pod:858 ../fish/guestfish-actions.pod:576
7551 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7552 msgstr ""
7553
7554 #. type: textblock
7555 #: ../src/guestfs-actions.pod:861
7556 msgid "See also C<guestfs_realpath>."
7557 msgstr ""
7558
7559 #. type: textblock
7560 #: ../src/guestfs-actions.pod:866 ../src/guestfs-actions.pod:6976
7561 msgid "(Added in 1.0.75)"
7562 msgstr ""
7563
7564 #. type: =head2
7565 #: ../src/guestfs-actions.pod:868
7566 msgid "guestfs_cat"
7567 msgstr ""
7568
7569 #. type: verbatim
7570 #: ../src/guestfs-actions.pod:870
7571 #, no-wrap
7572 msgid ""
7573 " char *\n"
7574 " guestfs_cat (guestfs_h *g,\n"
7575 "              const char *path);\n"
7576 "\n"
7577 msgstr ""
7578
7579 #. type: textblock
7580 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:5472
7581 #: ../fish/guestfish-actions.pod:585 ../fish/guestfish-actions.pod:3672
7582 msgid "Return the contents of the file named C<path>."
7583 msgstr ""
7584
7585 #. type: textblock
7586 #: ../src/guestfs-actions.pod:876
7587 msgid ""
7588 "Note that this function cannot correctly handle binary files (specifically, "
7589 "files containing C<\\0> character which is treated as end of string).  For "
7590 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7591 "functions which have a more complex interface."
7592 msgstr ""
7593
7594 #. type: textblock
7595 #: ../src/guestfs-actions.pod:884 ../src/guestfs-actions.pod:1063
7596 #: ../src/guestfs-actions.pod:1083 ../src/guestfs-actions.pod:1379
7597 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:1501
7598 #: ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1769
7599 #: ../src/guestfs-actions.pod:2227 ../src/guestfs-actions.pod:2246
7600 #: ../src/guestfs-actions.pod:2289 ../src/guestfs-actions.pod:2313
7601 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:2359
7602 #: ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5280
7603 #: ../src/guestfs-actions.pod:5411 ../src/guestfs-actions.pod:5437
7604 #: ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:6361
7605 #: ../src/guestfs-actions.pod:6416 ../src/guestfs-actions.pod:6562
7606 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:7248
7607 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7300
7608 #: ../src/guestfs-actions.pod:7319 ../src/guestfs-actions.pod:7404
7609 #: ../src/guestfs-actions.pod:7423 ../src/guestfs-actions.pod:7469
7610 #: ../src/guestfs-actions.pod:7488 ../fish/guestfish-actions.pod:592
7611 #: ../fish/guestfish-actions.pod:727 ../fish/guestfish-actions.pod:739
7612 #: ../fish/guestfish-actions.pod:915 ../fish/guestfish-actions.pod:925
7613 #: ../fish/guestfish-actions.pod:992 ../fish/guestfish-actions.pod:1002
7614 #: ../fish/guestfish-actions.pod:1197 ../fish/guestfish-actions.pod:1498
7615 #: ../fish/guestfish-actions.pod:1508 ../fish/guestfish-actions.pod:1536
7616 #: ../fish/guestfish-actions.pod:1551 ../fish/guestfish-actions.pod:1561
7617 #: ../fish/guestfish-actions.pod:1580 ../fish/guestfish-actions.pod:3542
7618 #: ../fish/guestfish-actions.pod:3557 ../fish/guestfish-actions.pod:3633
7619 #: ../fish/guestfish-actions.pod:3650 ../fish/guestfish-actions.pod:3665
7620 #: ../fish/guestfish-actions.pod:4291 ../fish/guestfish-actions.pod:4337
7621 #: ../fish/guestfish-actions.pod:4422 ../fish/guestfish-actions.pod:4437
7622 #: ../fish/guestfish-actions.pod:4847 ../fish/guestfish-actions.pod:4865
7623 #: ../fish/guestfish-actions.pod:4882 ../fish/guestfish-actions.pod:4892
7624 #: ../fish/guestfish-actions.pod:4940 ../fish/guestfish-actions.pod:4950
7625 #: ../fish/guestfish-actions.pod:4979 ../fish/guestfish-actions.pod:4989
7626 msgid ""
7627 "Because of the message protocol, there is a transfer limit of somewhere "
7628 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7629 msgstr ""
7630
7631 #. type: textblock
7632 #: ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:3570
7633 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3649
7634 #: ../src/guestfs-actions.pod:3737 ../src/guestfs-actions.pod:4142
7635 #: ../src/guestfs-actions.pod:4156 ../src/guestfs-actions.pod:5360
7636 #: ../src/guestfs-actions.pod:5374 ../src/guestfs-actions.pod:7135
7637 #: ../src/guestfs-actions.pod:7149
7638 msgid "(Added in 0.4)"
7639 msgstr ""
7640
7641 #. type: =head2
7642 #: ../src/guestfs-actions.pod:889
7643 msgid "guestfs_checksum"
7644 msgstr ""
7645
7646 #. type: verbatim
7647 #: ../src/guestfs-actions.pod:891
7648 #, no-wrap
7649 msgid ""
7650 " char *\n"
7651 " guestfs_checksum (guestfs_h *g,\n"
7652 "                   const char *csumtype,\n"
7653 "                   const char *path);\n"
7654 "\n"
7655 msgstr ""
7656
7657 #. type: textblock
7658 #: ../src/guestfs-actions.pod:896 ../fish/guestfish-actions.pod:599
7659 msgid ""
7660 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7661 msgstr ""
7662
7663 #. type: textblock
7664 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:602
7665 msgid ""
7666 "The type of checksum to compute is given by the C<csumtype> parameter which "
7667 "must have one of the following values:"
7668 msgstr ""
7669
7670 #. type: =item
7671 #: ../src/guestfs-actions.pod:904 ../fish/guestfish-actions.pod:607
7672 msgid "C<crc>"
7673 msgstr "C<crc>"
7674
7675 #. type: textblock
7676 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:609
7677 msgid ""
7678 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7679 "C<cksum> command."
7680 msgstr ""
7681
7682 #. type: =item
7683 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:612
7684 msgid "C<md5>"
7685 msgstr "C<md5>"
7686
7687 #. type: textblock
7688 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:614
7689 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7690 msgstr ""
7691
7692 #. type: =item
7693 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:616
7694 msgid "C<sha1>"
7695 msgstr "C<sha1>"
7696
7697 #. type: textblock
7698 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:618
7699 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7700 msgstr ""
7701
7702 #. type: =item
7703 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:620
7704 msgid "C<sha224>"
7705 msgstr "C<sha224>"
7706
7707 #. type: textblock
7708 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:622
7709 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7710 msgstr ""
7711
7712 #. type: =item
7713 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:624
7714 msgid "C<sha256>"
7715 msgstr "C<sha256>"
7716
7717 #. type: textblock
7718 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:626
7719 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7720 msgstr ""
7721
7722 #. type: =item
7723 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:628
7724 msgid "C<sha384>"
7725 msgstr "C<sha384>"
7726
7727 #. type: textblock
7728 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:630
7729 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7730 msgstr ""
7731
7732 #. type: =item
7733 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:632
7734 msgid "C<sha512>"
7735 msgstr "C<sha512>"
7736
7737 #. type: textblock
7738 #: ../src/guestfs-actions.pod:931 ../fish/guestfish-actions.pod:634
7739 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7740 msgstr ""
7741
7742 #. type: textblock
7743 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:638
7744 msgid "The checksum is returned as a printable string."
7745 msgstr ""
7746
7747 #. type: textblock
7748 #: ../src/guestfs-actions.pod:937
7749 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7750 msgstr ""
7751
7752 #. type: textblock
7753 #: ../src/guestfs-actions.pod:939
7754 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7755 msgstr ""
7756
7757 #. type: textblock
7758 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:1252
7759 #: ../src/guestfs-actions.pod:2089 ../src/guestfs-actions.pod:3309
7760 #: ../src/guestfs-actions.pod:3338 ../src/guestfs-actions.pod:3399
7761 #: ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:6832
7762 msgid "(Added in 1.0.2)"
7763 msgstr ""
7764
7765 #. type: =head2
7766 #: ../src/guestfs-actions.pod:946
7767 msgid "guestfs_checksum_device"
7768 msgstr ""
7769
7770 #. type: verbatim
7771 #: ../src/guestfs-actions.pod:948
7772 #, no-wrap
7773 msgid ""
7774 " char *\n"
7775 " guestfs_checksum_device (guestfs_h *g,\n"
7776 "                          const char *csumtype,\n"
7777 "                          const char *device);\n"
7778 "\n"
7779 msgstr ""
7780
7781 #. type: textblock
7782 #: ../src/guestfs-actions.pod:953
7783 msgid ""
7784 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7785 "device named C<device>.  For the types of checksums supported see the "
7786 "C<guestfs_checksum> command."
7787 msgstr ""
7788
7789 #. type: textblock
7790 #: ../src/guestfs-actions.pod:960 ../src/guestfs-actions.pod:4891
7791 #: ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4987
7792 #: ../src/guestfs-actions.pod:5005 ../src/guestfs-actions.pod:5181
7793 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-actions.pod:6755
7794 #: ../src/guestfs-actions.pod:7161
7795 msgid "(Added in 1.3.2)"
7796 msgstr ""
7797
7798 #. type: =head2
7799 #: ../src/guestfs-actions.pod:962
7800 msgid "guestfs_checksums_out"
7801 msgstr ""
7802
7803 #. type: verbatim
7804 #: ../src/guestfs-actions.pod:964
7805 #, no-wrap
7806 msgid ""
7807 " int\n"
7808 " guestfs_checksums_out (guestfs_h *g,\n"
7809 "                        const char *csumtype,\n"
7810 "                        const char *directory,\n"
7811 "                        const char *sumsfile);\n"
7812 "\n"
7813 msgstr ""
7814
7815 #. type: textblock
7816 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:656
7817 msgid ""
7818 "This command computes the checksums of all regular files in C<directory> and "
7819 "then emits a list of those checksums to the local output file C<sumsfile>."
7820 msgstr ""
7821
7822 #. type: textblock
7823 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:660
7824 msgid ""
7825 "This can be used for verifying the integrity of a virtual machine.  However "
7826 "to be properly secure you should pay attention to the output of the checksum "
7827 "command (it uses the ones from GNU coreutils).  In particular when the "
7828 "filename is not printable, coreutils uses a special backslash syntax.  For "
7829 "more information, see the GNU coreutils info file."
7830 msgstr ""
7831
7832 #. type: textblock
7833 #: ../src/guestfs-actions.pod:984
7834 msgid "(Added in 1.3.7)"
7835 msgstr ""
7836
7837 #. type: =head2
7838 #: ../src/guestfs-actions.pod:986
7839 msgid "guestfs_chmod"
7840 msgstr ""
7841
7842 #. type: verbatim
7843 #: ../src/guestfs-actions.pod:988
7844 #, no-wrap
7845 msgid ""
7846 " int\n"
7847 " guestfs_chmod (guestfs_h *g,\n"
7848 "                int mode,\n"
7849 "                const char *path);\n"
7850 "\n"
7851 msgstr ""
7852
7853 #. type: textblock
7854 #: ../src/guestfs-actions.pod:993 ../fish/guestfish-actions.pod:674
7855 msgid ""
7856 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7857 "supported."
7858 msgstr ""
7859
7860 #. type: textblock
7861 #: ../src/guestfs-actions.pod:996 ../fish/guestfish-actions.pod:677
7862 msgid ""
7863 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7864 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7865 "C<700>."
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../src/guestfs-actions.pod:1000 ../src/guestfs-actions.pod:4393
7870 #: ../src/guestfs-actions.pod:4590 ../src/guestfs-actions.pod:4609
7871 #: ../src/guestfs-actions.pod:4628 ../fish/guestfish-actions.pod:681
7872 #: ../fish/guestfish-actions.pod:2988 ../fish/guestfish-actions.pod:3117
7873 #: ../fish/guestfish-actions.pod:3127 ../fish/guestfish-actions.pod:3137
7874 msgid "The mode actually set is affected by the umask."
7875 msgstr ""
7876
7877 #. type: =head2
7878 #: ../src/guestfs-actions.pod:1006
7879 msgid "guestfs_chown"
7880 msgstr ""
7881
7882 #. type: verbatim
7883 #: ../src/guestfs-actions.pod:1008
7884 #, no-wrap
7885 msgid ""
7886 " int\n"
7887 " guestfs_chown (guestfs_h *g,\n"
7888 "                int owner,\n"
7889 "                int group,\n"
7890 "                const char *path);\n"
7891 "\n"
7892 msgstr ""
7893
7894 #. type: textblock
7895 #: ../src/guestfs-actions.pod:1014 ../fish/guestfish-actions.pod:687
7896 msgid "Change the file owner to C<owner> and group to C<group>."
7897 msgstr ""
7898
7899 #. type: textblock
7900 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:3501
7901 #: ../fish/guestfish-actions.pod:689 ../fish/guestfish-actions.pod:2446
7902 msgid ""
7903 "Only numeric uid and gid are supported.  If you want to use names, you will "
7904 "need to locate and parse the password file yourself (Augeas support makes "
7905 "this relatively easy)."
7906 msgstr ""
7907
7908 #. type: =head2
7909 #: ../src/guestfs-actions.pod:1024
7910 msgid "guestfs_command"
7911 msgstr ""
7912
7913 #. type: verbatim
7914 #: ../src/guestfs-actions.pod:1026
7915 #, no-wrap
7916 msgid ""
7917 " char *\n"
7918 " guestfs_command (guestfs_h *g,\n"
7919 "                  char *const *arguments);\n"
7920 "\n"
7921 msgstr ""
7922
7923 #. type: textblock
7924 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:697
7925 msgid ""
7926 "This call runs a command from the guest filesystem.  The filesystem must be "
7927 "mounted, and must contain a compatible operating system (ie. something "
7928 "Linux, with the same or compatible processor architecture)."
7929 msgstr ""
7930
7931 #. type: textblock
7932 #: ../src/guestfs-actions.pod:1035
7933 msgid ""
7934 "The single parameter is an argv-style list of arguments.  The first element "
7935 "is the name of the program to run.  Subsequent elements are parameters.  The "
7936 "list must be non-empty (ie. must contain a program name).  Note that the "
7937 "command runs directly, and is I<not> invoked via the shell (see "
7938 "C<guestfs_sh>)."
7939 msgstr ""
7940
7941 #. type: textblock
7942 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:709
7943 msgid "The return value is anything printed to I<stdout> by the command."
7944 msgstr ""
7945
7946 #. type: textblock
7947 #: ../src/guestfs-actions.pod:1045 ../fish/guestfish-actions.pod:712
7948 msgid ""
7949 "If the command returns a non-zero exit status, then this function returns an "
7950 "error message.  The error message string is the content of I<stderr> from "
7951 "the command."
7952 msgstr ""
7953
7954 #. type: textblock
7955 #: ../src/guestfs-actions.pod:1049 ../fish/guestfish-actions.pod:716
7956 msgid ""
7957 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7958 "bin>.  If you require a program from another location, you should provide "
7959 "the full path in the first parameter."
7960 msgstr ""
7961
7962 #. type: textblock
7963 #: ../src/guestfs-actions.pod:1054 ../fish/guestfish-actions.pod:721
7964 msgid ""
7965 "Shared libraries and data files required by the program must be available on "
7966 "filesystems which are mounted in the correct places.  It is the caller's "
7967 "responsibility to ensure all filesystems that are needed are mounted at the "
7968 "right locations."
7969 msgstr ""
7970
7971 #. type: textblock
7972 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1086
7973 #: ../src/guestfs-actions.pod:1554
7974 msgid "(Added in 0.9.1)"
7975 msgstr ""
7976
7977 #. type: =head2
7978 #: ../src/guestfs-actions.pod:1068
7979 msgid "guestfs_command_lines"
7980 msgstr ""
7981
7982 #. type: verbatim
7983 #: ../src/guestfs-actions.pod:1070
7984 #, no-wrap
7985 msgid ""
7986 " char **\n"
7987 " guestfs_command_lines (guestfs_h *g,\n"
7988 "                        char *const *arguments);\n"
7989 "\n"
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../src/guestfs-actions.pod:1074
7994 msgid ""
7995 "This is the same as C<guestfs_command>, but splits the result into a list of "
7996 "lines."
7997 msgstr ""
7998
7999 #. type: textblock
8000 #: ../src/guestfs-actions.pod:1077
8001 msgid "See also: C<guestfs_sh_lines>"
8002 msgstr ""
8003
8004 #. type: =head2
8005 #: ../src/guestfs-actions.pod:1088
8006 msgid "guestfs_config"
8007 msgstr ""
8008
8009 #. type: verbatim
8010 #: ../src/guestfs-actions.pod:1090
8011 #, no-wrap
8012 msgid ""
8013 " int\n"
8014 " guestfs_config (guestfs_h *g,\n"
8015 "                 const char *qemuparam,\n"
8016 "                 const char *qemuvalue);\n"
8017 "\n"
8018 msgstr ""
8019
8020 #. type: textblock
8021 #: ../src/guestfs-actions.pod:1095 ../fish/guestfish-actions.pod:746
8022 msgid ""
8023 "This can be used to add arbitrary qemu command line parameters of the form "
8024 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8025 "setting some parameters which would interfere with parameters that we use."
8026 msgstr ""
8027
8028 #. type: textblock
8029 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:751
8030 msgid "The first character of C<param> string must be a C<-> (dash)."
8031 msgstr ""
8032
8033 #. type: textblock
8034 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:753
8035 msgid "C<value> can be NULL."
8036 msgstr ""
8037
8038 #. type: =head2
8039 #: ../src/guestfs-actions.pod:1108
8040 msgid "guestfs_copy_size"
8041 msgstr ""
8042
8043 #. type: verbatim
8044 #: ../src/guestfs-actions.pod:1110
8045 #, no-wrap
8046 msgid ""
8047 " int\n"
8048 " guestfs_copy_size (guestfs_h *g,\n"
8049 "                    const char *src,\n"
8050 "                    const char *dest,\n"
8051 "                    int64_t size);\n"
8052 "\n"
8053 msgstr ""
8054
8055 #. type: textblock
8056 #: ../src/guestfs-actions.pod:1116 ../fish/guestfish-actions.pod:759
8057 msgid ""
8058 "This command copies exactly C<size> bytes from one source device or file "
8059 "C<src> to another destination device or file C<dest>."
8060 msgstr ""
8061
8062 #. type: textblock
8063 #: ../src/guestfs-actions.pod:1119 ../fish/guestfish-actions.pod:762
8064 msgid ""
8065 "Note this will fail if the source is too short or if the destination is not "
8066 "large enough."
8067 msgstr ""
8068
8069 #. type: textblock
8070 #: ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1247
8071 #: ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1323
8072 #: ../src/guestfs-actions.pod:1703 ../src/guestfs-actions.pod:1725
8073 #: ../src/guestfs-actions.pod:3482 ../src/guestfs-actions.pod:6827
8074 #: ../src/guestfs-actions.pod:6861 ../src/guestfs-actions.pod:7340
8075 #: ../src/guestfs-actions.pod:7359
8076 msgid ""
8077 "This long-running command can generate progress notification messages so "
8078 "that the caller can display a progress bar or indicator.  To receive these "
8079 "messages, the caller must register a progress event callback.  See L<guestfs"
8080 "(3)/GUESTFS_EVENT_PROGRESS>."
8081 msgstr ""
8082
8083 #. type: textblock
8084 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:4169
8085 #: ../src/guestfs-actions.pod:5387 ../src/guestfs-actions.pod:7068
8086 #: ../src/guestfs-actions.pod:7088 ../src/guestfs-actions.pod:7174
8087 msgid "(Added in 1.0.87)"
8088 msgstr ""
8089
8090 #. type: =head2
8091 #: ../src/guestfs-actions.pod:1131
8092 msgid "guestfs_cp"
8093 msgstr ""
8094
8095 #. type: verbatim
8096 #: ../src/guestfs-actions.pod:1133
8097 #, no-wrap
8098 msgid ""
8099 " int\n"
8100 " guestfs_cp (guestfs_h *g,\n"
8101 "             const char *src,\n"
8102 "             const char *dest);\n"
8103 "\n"
8104 msgstr ""
8105
8106 #. type: textblock
8107 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:769
8108 msgid ""
8109 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8110 "destination filename or destination directory."
8111 msgstr ""
8112
8113 #. type: textblock
8114 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1157
8115 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1303
8116 #: ../src/guestfs-actions.pod:1417 ../src/guestfs-actions.pod:4854
8117 #: ../src/guestfs-actions.pod:5231
8118 msgid "(Added in 1.0.18)"
8119 msgstr ""
8120
8121 #. type: =head2
8122 #: ../src/guestfs-actions.pod:1145
8123 msgid "guestfs_cp_a"
8124 msgstr ""
8125
8126 #. type: verbatim
8127 #: ../src/guestfs-actions.pod:1147
8128 #, no-wrap
8129 msgid ""
8130 " int\n"
8131 " guestfs_cp_a (guestfs_h *g,\n"
8132 "               const char *src,\n"
8133 "               const char *dest);\n"
8134 "\n"
8135 msgstr ""
8136
8137 #. type: textblock
8138 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:776
8139 msgid ""
8140 "This copies a file or directory from C<src> to C<dest> recursively using the "
8141 "C<cp -a> command."
8142 msgstr ""
8143
8144 #. type: =head2
8145 #: ../src/guestfs-actions.pod:1159
8146 msgid "guestfs_dd"
8147 msgstr ""
8148
8149 #. type: verbatim
8150 #: ../src/guestfs-actions.pod:1161
8151 #, no-wrap
8152 msgid ""
8153 " int\n"
8154 " guestfs_dd (guestfs_h *g,\n"
8155 "             const char *src,\n"
8156 "             const char *dest);\n"
8157 "\n"
8158 msgstr ""
8159
8160 #. type: textblock
8161 #: ../src/guestfs-actions.pod:1166 ../fish/guestfish-actions.pod:783
8162 msgid ""
8163 "This command copies from one source device or file C<src> to another "
8164 "destination device or file C<dest>.  Normally you would use this to copy to "
8165 "or from a device or partition, for example to duplicate a filesystem."
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../src/guestfs-actions.pod:1171
8170 msgid ""
8171 "If the destination is a device, it must be as large or larger than the "
8172 "source file or device, otherwise the copy will fail.  This command cannot do "
8173 "partial copies (see C<guestfs_copy_size>)."
8174 msgstr ""
8175
8176 #. type: =head2
8177 #: ../src/guestfs-actions.pod:1179
8178 msgid "guestfs_df"
8179 msgstr ""
8180
8181 #. type: verbatim
8182 #: ../src/guestfs-actions.pod:1181
8183 #, no-wrap
8184 msgid ""
8185 " char *\n"
8186 " guestfs_df (guestfs_h *g);\n"
8187 "\n"
8188 msgstr ""
8189
8190 #. type: textblock
8191 #: ../src/guestfs-actions.pod:1184 ../fish/guestfish-actions.pod:796
8192 msgid "This command runs the C<df> command to report disk space used."
8193 msgstr ""
8194
8195 #. type: textblock
8196 #: ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1203
8197 msgid ""
8198 "This command is mostly useful for interactive sessions.  It is I<not> "
8199 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8200 "from programs."
8201 msgstr ""
8202
8203 #. type: textblock
8204 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1210
8205 #: ../src/guestfs-actions.pod:1328 ../src/guestfs-actions.pod:2292
8206 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2384
8207 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4754
8208 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6589
8209 #: ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7220
8210 #: ../src/guestfs-actions.pod:7233
8211 msgid "(Added in 1.0.54)"
8212 msgstr ""
8213
8214 #. type: =head2
8215 #: ../src/guestfs-actions.pod:1195
8216 msgid "guestfs_df_h"
8217 msgstr ""
8218
8219 #. type: verbatim
8220 #: ../src/guestfs-actions.pod:1197
8221 #, no-wrap
8222 msgid ""
8223 " char *\n"
8224 " guestfs_df_h (guestfs_h *g);\n"
8225 "\n"
8226 msgstr ""
8227
8228 #. type: textblock
8229 #: ../src/guestfs-actions.pod:1200 ../fish/guestfish-actions.pod:806
8230 msgid ""
8231 "This command runs the C<df -h> command to report disk space used in human-"
8232 "readable format."
8233 msgstr ""
8234
8235 #. type: =head2
8236 #: ../src/guestfs-actions.pod:1212
8237 msgid "guestfs_dmesg"
8238 msgstr ""
8239
8240 #. type: verbatim
8241 #: ../src/guestfs-actions.pod:1214
8242 #, no-wrap
8243 msgid ""
8244 " char *\n"
8245 " guestfs_dmesg (guestfs_h *g);\n"
8246 "\n"
8247 msgstr ""
8248
8249 #. type: textblock
8250 #: ../src/guestfs-actions.pod:1217 ../fish/guestfish-actions.pod:817
8251 msgid ""
8252 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8253 "This is sometimes useful for extended debugging of problems."
8254 msgstr ""
8255
8256 #. type: textblock
8257 #: ../src/guestfs-actions.pod:1221
8258 msgid ""
8259 "Another way to get the same information is to enable verbose messages with "
8260 "C<guestfs_set_verbose> or by setting the environment variable "
8261 "C<LIBGUESTFS_DEBUG=1> before running the program."
8262 msgstr ""
8263
8264 #. type: =head2
8265 #: ../src/guestfs-actions.pod:1231
8266 msgid "guestfs_download"
8267 msgstr ""
8268
8269 #. type: verbatim
8270 #: ../src/guestfs-actions.pod:1233
8271 #, no-wrap
8272 msgid ""
8273 " int\n"
8274 " guestfs_download (guestfs_h *g,\n"
8275 "                   const char *remotefilename,\n"
8276 "                   const char *filename);\n"
8277 "\n"
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:1263
8282 #: ../fish/guestfish-actions.pod:830 ../fish/guestfish-actions.pod:843
8283 msgid ""
8284 "Download file C<remotefilename> and save it as C<filename> on the local "
8285 "machine."
8286 msgstr ""
8287
8288 #. type: textblock
8289 #: ../src/guestfs-actions.pod:1241 ../src/guestfs-actions.pod:6821
8290 #: ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:4595
8291 msgid "C<filename> can also be a named pipe."
8292 msgstr ""
8293
8294 #. type: textblock
8295 #: ../src/guestfs-actions.pod:1243
8296 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8297 msgstr ""
8298
8299 #. type: =head2
8300 #: ../src/guestfs-actions.pod:1254
8301 msgid "guestfs_download_offset"
8302 msgstr ""
8303
8304 #. type: verbatim
8305 #: ../src/guestfs-actions.pod:1256
8306 #, no-wrap
8307 msgid ""
8308 " int\n"
8309 " guestfs_download_offset (guestfs_h *g,\n"
8310 "                          const char *remotefilename,\n"
8311 "                          const char *filename,\n"
8312 "                          int64_t offset,\n"
8313 "                          int64_t size);\n"
8314 "\n"
8315 msgstr ""
8316
8317 #. type: textblock
8318 #: ../src/guestfs-actions.pod:1266 ../fish/guestfish-actions.pod:846
8319 msgid ""
8320 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8321 "region must be within the file or device)."
8322 msgstr ""
8323
8324 #. type: textblock
8325 #: ../src/guestfs-actions.pod:1269
8326 msgid ""
8327 "Note that there is no limit on the amount of data that can be downloaded "
8328 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8329 "full amount unless an error occurs."
8330 msgstr ""
8331
8332 #. type: textblock
8333 #: ../src/guestfs-actions.pod:1274
8334 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8335 msgstr ""
8336
8337 #. type: textblock
8338 #: ../src/guestfs-actions.pod:1283 ../src/guestfs-actions.pod:6866
8339 msgid "(Added in 1.5.17)"
8340 msgstr ""
8341
8342 #. type: =head2
8343 #: ../src/guestfs-actions.pod:1285
8344 msgid "guestfs_drop_caches"
8345 msgstr ""
8346
8347 #. type: verbatim
8348 #: ../src/guestfs-actions.pod:1287
8349 #, no-wrap
8350 msgid ""
8351 " int\n"
8352 " guestfs_drop_caches (guestfs_h *g,\n"
8353 "                      int whattodrop);\n"
8354 "\n"
8355 msgstr ""
8356
8357 #. type: textblock
8358 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:862
8359 msgid ""
8360 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8361 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8362 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8363 msgstr ""
8364
8365 #. type: textblock
8366 #: ../src/guestfs-actions.pod:1296 ../fish/guestfish-actions.pod:867
8367 msgid "Setting C<whattodrop> to 3 should drop everything."
8368 msgstr ""
8369
8370 #. type: textblock
8371 #: ../src/guestfs-actions.pod:1298 ../fish/guestfish-actions.pod:869
8372 msgid ""
8373 "This automatically calls L<sync(2)> before the operation, so that the "
8374 "maximum guest memory is freed."
8375 msgstr ""
8376
8377 #. type: =head2
8378 #: ../src/guestfs-actions.pod:1305
8379 msgid "guestfs_du"
8380 msgstr ""
8381
8382 #. type: verbatim
8383 #: ../src/guestfs-actions.pod:1307
8384 #, no-wrap
8385 msgid ""
8386 " int64_t\n"
8387 " guestfs_du (guestfs_h *g,\n"
8388 "             const char *path);\n"
8389 "\n"
8390 msgstr ""
8391
8392 #. type: textblock
8393 #: ../src/guestfs-actions.pod:1311 ../fish/guestfish-actions.pod:876
8394 msgid ""
8395 "This command runs the C<du -s> command to estimate file space usage for "
8396 "C<path>."
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:879
8401 msgid ""
8402 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8403 "estimate includes the contents of the directory and all subdirectories "
8404 "(recursively)."
8405 msgstr ""
8406
8407 #. type: textblock
8408 #: ../src/guestfs-actions.pod:1318 ../fish/guestfish-actions.pod:883
8409 msgid ""
8410 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8411 msgstr ""
8412
8413 #. type: =head2
8414 #: ../src/guestfs-actions.pod:1330
8415 msgid "guestfs_e2fsck_f"
8416 msgstr ""
8417
8418 #. type: verbatim
8419 #: ../src/guestfs-actions.pod:1332
8420 #, no-wrap
8421 msgid ""
8422 " int\n"
8423 " guestfs_e2fsck_f (guestfs_h *g,\n"
8424 "                   const char *device);\n"
8425 "\n"
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:890
8430 msgid ""
8431 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8432 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8433 "clean (I<-f>)."
8434 msgstr ""
8435
8436 #. type: textblock
8437 #: ../src/guestfs-actions.pod:1340
8438 msgid ""
8439 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8440 "Normally you should use C<guestfs_fsck>."
8441 msgstr ""
8442
8443 #. type: textblock
8444 #: ../src/guestfs-actions.pod:1345
8445 msgid "(Added in 1.0.29)"
8446 msgstr ""
8447
8448 #. type: =head2
8449 #: ../src/guestfs-actions.pod:1347
8450 msgid "guestfs_echo_daemon"
8451 msgstr ""
8452
8453 #. type: verbatim
8454 #: ../src/guestfs-actions.pod:1349
8455 #, no-wrap
8456 msgid ""
8457 " char *\n"
8458 " guestfs_echo_daemon (guestfs_h *g,\n"
8459 "                      char *const *words);\n"
8460 "\n"
8461 msgstr ""
8462
8463 #. type: textblock
8464 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:901
8465 msgid ""
8466 "This command concatenates the list of C<words> passed with single spaces "
8467 "between them and returns the resulting string."
8468 msgstr ""
8469
8470 #. type: textblock
8471 #: ../src/guestfs-actions.pod:1356 ../fish/guestfish-actions.pod:904
8472 msgid "You can use this command to test the connection through to the daemon."
8473 msgstr ""
8474
8475 #. type: textblock
8476 #: ../src/guestfs-actions.pod:1358
8477 msgid "See also C<guestfs_ping_daemon>."
8478 msgstr ""
8479
8480 #. type: textblock
8481 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:2100
8482 #: ../src/guestfs-actions.pod:6065
8483 msgid "(Added in 1.0.69)"
8484 msgstr ""
8485
8486 #. type: =head2
8487 #: ../src/guestfs-actions.pod:1365
8488 msgid "guestfs_egrep"
8489 msgstr ""
8490
8491 #. type: verbatim
8492 #: ../src/guestfs-actions.pod:1367
8493 #, no-wrap
8494 msgid ""
8495 " char **\n"
8496 " guestfs_egrep (guestfs_h *g,\n"
8497 "                const char *regex,\n"
8498 "                const char *path);\n"
8499 "\n"
8500 msgstr ""
8501
8502 #. type: textblock
8503 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
8504 msgid ""
8505 "This calls the external C<egrep> program and returns the matching lines."
8506 msgstr ""
8507
8508 #. type: textblock
8509 #: ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1401
8510 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:1504
8511 #: ../src/guestfs-actions.pod:1523 ../src/guestfs-actions.pod:2230
8512 #: ../src/guestfs-actions.pod:2249 ../src/guestfs-actions.pod:2405
8513 #: ../src/guestfs-actions.pod:2418 ../src/guestfs-actions.pod:2433
8514 #: ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:2501
8515 #: ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:3662
8516 #: ../src/guestfs-actions.pod:3676 ../src/guestfs-actions.pod:3689
8517 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:4689
8518 #: ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:5614
8519 #: ../src/guestfs-actions.pod:6433 ../src/guestfs-actions.pod:6445
8520 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6471
8521 #: ../src/guestfs-actions.pod:6493 ../src/guestfs-actions.pod:6506
8522 #: ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6532
8523 #: ../src/guestfs-actions.pod:7303 ../src/guestfs-actions.pod:7322
8524 #: ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7426
8525 #: ../src/guestfs-actions.pod:7472 ../src/guestfs-actions.pod:7491
8526 msgid "(Added in 1.0.66)"
8527 msgstr ""
8528
8529 #. type: =head2
8530 #: ../src/guestfs-actions.pod:1384
8531 msgid "guestfs_egrepi"
8532 msgstr ""
8533
8534 #. type: verbatim
8535 #: ../src/guestfs-actions.pod:1386
8536 #, no-wrap
8537 msgid ""
8538 " char **\n"
8539 " guestfs_egrepi (guestfs_h *g,\n"
8540 "                 const char *regex,\n"
8541 "                 const char *path);\n"
8542 "\n"
8543 msgstr ""
8544
8545 #. type: textblock
8546 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
8547 msgid ""
8548 "This calls the external C<egrep -i> program and returns the matching lines."
8549 msgstr ""
8550
8551 #. type: =head2
8552 #: ../src/guestfs-actions.pod:1403
8553 msgid "guestfs_equal"
8554 msgstr ""
8555
8556 #. type: verbatim
8557 #: ../src/guestfs-actions.pod:1405
8558 #, no-wrap
8559 msgid ""
8560 " int\n"
8561 " guestfs_equal (guestfs_h *g,\n"
8562 "                const char *file1,\n"
8563 "                const char *file2);\n"
8564 "\n"
8565 msgstr ""
8566
8567 #. type: textblock
8568 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:932
8569 msgid ""
8570 "This compares the two files C<file1> and C<file2> and returns true if their "
8571 "content is exactly equal, or false otherwise."
8572 msgstr ""
8573
8574 #. type: textblock
8575 #: ../src/guestfs-actions.pod:1413 ../fish/guestfish-actions.pod:935
8576 msgid "The external L<cmp(1)> program is used for the comparison."
8577 msgstr ""
8578
8579 #. type: =head2
8580 #: ../src/guestfs-actions.pod:1419
8581 msgid "guestfs_exists"
8582 msgstr ""
8583
8584 #. type: verbatim
8585 #: ../src/guestfs-actions.pod:1421
8586 #, no-wrap
8587 msgid ""
8588 " int\n"
8589 " guestfs_exists (guestfs_h *g,\n"
8590 "                 const char *path);\n"
8591 "\n"
8592 msgstr ""
8593
8594 #. type: textblock
8595 #: ../src/guestfs-actions.pod:1425 ../fish/guestfish-actions.pod:941
8596 msgid ""
8597 "This returns C<true> if and only if there is a file, directory (or anything) "
8598 "with the given C<path> name."
8599 msgstr ""
8600
8601 #. type: textblock
8602 #: ../src/guestfs-actions.pod:1428
8603 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
8604 msgstr ""
8605
8606 #. type: =head2
8607 #: ../src/guestfs-actions.pod:1434
8608 msgid "guestfs_fallocate"
8609 msgstr ""
8610
8611 #. type: verbatim
8612 #: ../src/guestfs-actions.pod:1436
8613 #, no-wrap
8614 msgid ""
8615 " int\n"
8616 " guestfs_fallocate (guestfs_h *g,\n"
8617 "                    const char *path,\n"
8618 "                    int len);\n"
8619 "\n"
8620 msgstr ""
8621
8622 #. type: textblock
8623 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1467
8624 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:969
8625 msgid ""
8626 "This command preallocates a file (containing zero bytes) named C<path> of "
8627 "size C<len> bytes.  If the file exists already, it is overwritten."
8628 msgstr ""
8629
8630 #. type: textblock
8631 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:954
8632 msgid ""
8633 "Do not confuse this with the guestfish-specific C<alloc> command which "
8634 "allocates a file in the host and attaches it as a device."
8635 msgstr ""
8636
8637 #. type: textblock
8638 #: ../src/guestfs-actions.pod:1451 ../fish/guestfish-actions.pod:958
8639 msgid ""
8640 "This function is deprecated.  In new code, use the C<fallocate64> call "
8641 "instead."
8642 msgstr ""
8643
8644 #. type: =head2
8645 #: ../src/guestfs-actions.pod:1460
8646 msgid "guestfs_fallocate64"
8647 msgstr ""
8648
8649 #. type: verbatim
8650 #: ../src/guestfs-actions.pod:1462
8651 #, no-wrap
8652 msgid ""
8653 " int\n"
8654 " guestfs_fallocate64 (guestfs_h *g,\n"
8655 "                      const char *path,\n"
8656 "                      int64_t len);\n"
8657 "\n"
8658 msgstr ""
8659
8660 #. type: textblock
8661 #: ../src/guestfs-actions.pod:1471
8662 msgid ""
8663 "Note that this call allocates disk blocks for the file.  To create a sparse "
8664 "file use C<guestfs_truncate_size> instead."
8665 msgstr ""
8666
8667 #. type: textblock
8668 #: ../src/guestfs-actions.pod:1474
8669 msgid ""
8670 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8671 "oversight it only allowed 30 bit lengths to be specified, effectively "
8672 "limiting the maximum size of files created through that call to 1GB."
8673 msgstr ""
8674
8675 #. type: textblock
8676 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:981
8677 msgid ""
8678 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8679 "commands which create a file in the host and attach it as a device."
8680 msgstr ""
8681
8682 #. type: textblock
8683 #: ../src/guestfs-actions.pod:1485
8684 msgid "(Added in 1.3.17)"
8685 msgstr ""
8686
8687 #. type: =head2
8688 #: ../src/guestfs-actions.pod:1487
8689 msgid "guestfs_fgrep"
8690 msgstr ""
8691
8692 #. type: verbatim
8693 #: ../src/guestfs-actions.pod:1489
8694 #, no-wrap
8695 msgid ""
8696 " char **\n"
8697 " guestfs_fgrep (guestfs_h *g,\n"
8698 "                const char *pattern,\n"
8699 "                const char *path);\n"
8700 "\n"
8701 msgstr ""
8702
8703 #. type: textblock
8704 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
8705 msgid ""
8706 "This calls the external C<fgrep> program and returns the matching lines."
8707 msgstr ""
8708
8709 #. type: =head2
8710 #: ../src/guestfs-actions.pod:1506
8711 msgid "guestfs_fgrepi"
8712 msgstr ""
8713
8714 #. type: verbatim
8715 #: ../src/guestfs-actions.pod:1508
8716 #, no-wrap
8717 msgid ""
8718 " char **\n"
8719 " guestfs_fgrepi (guestfs_h *g,\n"
8720 "                 const char *pattern,\n"
8721 "                 const char *path);\n"
8722 "\n"
8723 msgstr ""
8724
8725 #. type: textblock
8726 #: ../src/guestfs-actions.pod:1513 ../fish/guestfish-actions.pod:999
8727 msgid ""
8728 "This calls the external C<fgrep -i> program and returns the matching lines."
8729 msgstr ""
8730
8731 #. type: =head2
8732 #: ../src/guestfs-actions.pod:1525
8733 msgid "guestfs_file"
8734 msgstr ""
8735
8736 #. type: verbatim
8737 #: ../src/guestfs-actions.pod:1527
8738 #, no-wrap
8739 msgid ""
8740 " char *\n"
8741 " guestfs_file (guestfs_h *g,\n"
8742 "               const char *path);\n"
8743 "\n"
8744 msgstr ""
8745
8746 #. type: textblock
8747 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1009
8748 msgid ""
8749 "This call uses the standard L<file(1)> command to determine the type or "
8750 "contents of the file."
8751 msgstr ""
8752
8753 #. type: textblock
8754 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1012
8755 msgid ""
8756 "This call will also transparently look inside various types of compressed "
8757 "file."
8758 msgstr ""
8759
8760 #. type: textblock
8761 #: ../src/guestfs-actions.pod:1537 ../fish/guestfish-actions.pod:1015
8762 msgid ""
8763 "The exact command which runs is C<file -zb path>.  Note in particular that "
8764 "the filename is not prepended to the output (the I<-b> option)."
8765 msgstr ""
8766
8767 #. type: textblock
8768 #: ../src/guestfs-actions.pod:1541
8769 msgid ""
8770 "This command can also be used on C</dev/> devices (and partitions, LV "
8771 "names).  You can for example use this to determine if a device contains a "
8772 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
8773 msgstr ""
8774
8775 #. type: textblock
8776 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1024
8777 msgid ""
8778 "If the C<path> does not begin with C</dev/> then this command only works for "
8779 "the content of regular files.  For other file types (directory, symbolic "
8780 "link etc) it will just return the string C<directory> etc."
8781 msgstr ""
8782
8783 #. type: =head2
8784 #: ../src/guestfs-actions.pod:1556
8785 msgid "guestfs_file_architecture"
8786 msgstr ""
8787
8788 #. type: verbatim
8789 #: ../src/guestfs-actions.pod:1558
8790 #, no-wrap
8791 msgid ""
8792 " char *\n"
8793 " guestfs_file_architecture (guestfs_h *g,\n"
8794 "                            const char *filename);\n"
8795 "\n"
8796 msgstr ""
8797
8798 #. type: textblock
8799 #: ../src/guestfs-actions.pod:1562 ../fish/guestfish-actions.pod:1033
8800 msgid ""
8801 "This detects the architecture of the binary C<filename>, and returns it if "
8802 "known."
8803 msgstr ""
8804
8805 #. type: textblock
8806 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1036
8807 msgid "Currently defined architectures are:"
8808 msgstr ""
8809
8810 #. type: =item
8811 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1040
8812 msgid "\"i386\""
8813 msgstr "\"i386\""
8814
8815 #. type: textblock
8816 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1042
8817 msgid ""
8818 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8819 "irrespective of the precise processor requirements of the binary."
8820 msgstr ""
8821
8822 #. type: =item
8823 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1045
8824 msgid "\"x86_64\""
8825 msgstr "\"x86_64\""
8826
8827 #. type: textblock
8828 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1047
8829 msgid "64 bit x86-64."
8830 msgstr ""
8831
8832 #. type: =item
8833 #: ../src/guestfs-actions.pod:1578 ../fish/guestfish-actions.pod:1049
8834 msgid "\"sparc\""
8835 msgstr ""
8836
8837 #. type: textblock
8838 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1051
8839 msgid "32 bit SPARC."
8840 msgstr ""
8841
8842 #. type: =item
8843 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:1053
8844 msgid "\"sparc64\""
8845 msgstr ""
8846
8847 #. type: textblock
8848 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1055
8849 msgid "64 bit SPARC V9 and above."
8850 msgstr ""
8851
8852 #. type: =item
8853 #: ../src/guestfs-actions.pod:1586 ../fish/guestfish-actions.pod:1057
8854 msgid "\"ia64\""
8855 msgstr "\"ia64\""
8856
8857 #. type: textblock
8858 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1059
8859 msgid "Intel Itanium."
8860 msgstr "Intel Itanium."
8861
8862 #. type: =item
8863 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1061
8864 msgid "\"ppc\""
8865 msgstr ""
8866
8867 #. type: textblock
8868 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1063
8869 msgid "32 bit Power PC."
8870 msgstr ""
8871
8872 #. type: =item
8873 #: ../src/guestfs-actions.pod:1594 ../fish/guestfish-actions.pod:1065
8874 msgid "\"ppc64\""
8875 msgstr ""
8876
8877 #. type: textblock
8878 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1067
8879 msgid "64 bit Power PC."
8880 msgstr ""
8881
8882 #. type: textblock
8883 #: ../src/guestfs-actions.pod:1600 ../fish/guestfish-actions.pod:1071
8884 msgid "Libguestfs may return other architecture strings in future."
8885 msgstr ""
8886
8887 #. type: textblock
8888 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1073
8889 msgid "The function works on at least the following types of files:"
8890 msgstr ""
8891
8892 #. type: textblock
8893 #: ../src/guestfs-actions.pod:1608 ../fish/guestfish-actions.pod:1079
8894 msgid "many types of Un*x and Linux binary"
8895 msgstr ""
8896
8897 #. type: textblock
8898 #: ../src/guestfs-actions.pod:1612 ../fish/guestfish-actions.pod:1083
8899 msgid "many types of Un*x and Linux shared library"
8900 msgstr ""
8901
8902 #. type: textblock
8903 #: ../src/guestfs-actions.pod:1616 ../fish/guestfish-actions.pod:1087
8904 msgid "Windows Win32 and Win64 binaries"
8905 msgstr ""
8906
8907 #. type: textblock
8908 #: ../src/guestfs-actions.pod:1620 ../fish/guestfish-actions.pod:1091
8909 msgid "Windows Win32 and Win64 DLLs"
8910 msgstr ""
8911
8912 #. type: textblock
8913 #: ../src/guestfs-actions.pod:1622 ../fish/guestfish-actions.pod:1093
8914 msgid "Win32 binaries and DLLs return C<i386>."
8915 msgstr ""
8916
8917 #. type: textblock
8918 #: ../src/guestfs-actions.pod:1624 ../fish/guestfish-actions.pod:1095
8919 msgid "Win64 binaries and DLLs return C<x86_64>."
8920 msgstr ""
8921
8922 #. type: textblock
8923 #: ../src/guestfs-actions.pod:1628 ../fish/guestfish-actions.pod:1099
8924 msgid "Linux kernel modules"
8925 msgstr ""
8926
8927 #. type: textblock
8928 #: ../src/guestfs-actions.pod:1632 ../fish/guestfish-actions.pod:1103
8929 msgid "Linux new-style initrd images"
8930 msgstr ""
8931
8932 #. type: textblock
8933 #: ../src/guestfs-actions.pod:1636 ../fish/guestfish-actions.pod:1107
8934 msgid "some non-x86 Linux vmlinuz kernels"
8935 msgstr ""
8936
8937 #. type: textblock
8938 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1111
8939 msgid "What it can't do currently:"
8940 msgstr ""
8941
8942 #. type: textblock
8943 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1117
8944 msgid "static libraries (libfoo.a)"
8945 msgstr ""
8946
8947 #. type: textblock
8948 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1121
8949 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8950 msgstr ""
8951
8952 #. type: textblock
8953 #: ../src/guestfs-actions.pod:1654 ../fish/guestfish-actions.pod:1125
8954 msgid "x86 Linux vmlinuz kernels"
8955 msgstr ""
8956
8957 #. type: textblock
8958 #: ../src/guestfs-actions.pod:1656 ../fish/guestfish-actions.pod:1127
8959 msgid ""
8960 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8961 "compressed code, and are horribly hard to unpack.  If you want to find the "
8962 "architecture of a kernel, use the architecture of the associated initrd or "
8963 "kernel module(s) instead."
8964 msgstr ""
8965
8966 #. type: textblock
8967 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1829
8968 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:2537
8969 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2700
8970 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:2809
8971 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:2936
8972 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3280
8973 #: ../src/guestfs-actions.pod:3412
8974 msgid "(Added in 1.5.3)"
8975 msgstr ""
8976
8977 #. type: =head2
8978 #: ../src/guestfs-actions.pod:1668
8979 msgid "guestfs_filesize"
8980 msgstr ""
8981
8982 #. type: verbatim
8983 #: ../src/guestfs-actions.pod:1670
8984 #, no-wrap
8985 msgid ""
8986 " int64_t\n"
8987 " guestfs_filesize (guestfs_h *g,\n"
8988 "                   const char *file);\n"
8989 "\n"
8990 msgstr ""
8991
8992 #. type: textblock
8993 #: ../src/guestfs-actions.pod:1674 ../fish/guestfish-actions.pod:1138
8994 msgid "This command returns the size of C<file> in bytes."
8995 msgstr ""
8996
8997 #. type: textblock
8998 #: ../src/guestfs-actions.pod:1676
8999 msgid ""
9000 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9001 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9002 "devices, use C<guestfs_blockdev_getsize64>."
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../src/guestfs-actions.pod:1682
9007 msgid "(Added in 1.0.82)"
9008 msgstr ""
9009
9010 #. type: =head2
9011 #: ../src/guestfs-actions.pod:1684
9012 msgid "guestfs_fill"
9013 msgstr ""
9014
9015 #. type: verbatim
9016 #: ../src/guestfs-actions.pod:1686
9017 #, no-wrap
9018 msgid ""
9019 " int\n"
9020 " guestfs_fill (guestfs_h *g,\n"
9021 "               int c,\n"
9022 "               int len,\n"
9023 "               const char *path);\n"
9024 "\n"
9025 msgstr ""
9026
9027 #. type: textblock
9028 #: ../src/guestfs-actions.pod:1692 ../fish/guestfish-actions.pod:1148
9029 msgid ""
9030 "This command creates a new file called C<path>.  The initial content of the "
9031 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9032 "[0..255]>."
9033 msgstr ""
9034
9035 #. type: textblock
9036 #: ../src/guestfs-actions.pod:1696
9037 msgid ""
9038 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9039 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9040 "bytes use C<guestfs_fill_pattern>."
9041 msgstr ""
9042
9043 #. type: textblock
9044 #: ../src/guestfs-actions.pod:1708
9045 msgid "(Added in 1.0.79)"
9046 msgstr ""
9047
9048 #. type: =head2
9049 #: ../src/guestfs-actions.pod:1710
9050 msgid "guestfs_fill_pattern"
9051 msgstr ""
9052
9053 #. type: verbatim
9054 #: ../src/guestfs-actions.pod:1712
9055 #, no-wrap
9056 msgid ""
9057 " int\n"
9058 " guestfs_fill_pattern (guestfs_h *g,\n"
9059 "                       const char *pattern,\n"
9060 "                       int len,\n"
9061 "                       const char *path);\n"
9062 "\n"
9063 msgstr ""
9064
9065 #. type: textblock
9066 #: ../src/guestfs-actions.pod:1718
9067 msgid ""
9068 "This function is like C<guestfs_fill> except that it creates a new file of "
9069 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9070 "pattern is truncated if necessary to ensure the length of the file is "
9071 "exactly C<len> bytes."
9072 msgstr ""
9073
9074 #. type: textblock
9075 #: ../src/guestfs-actions.pod:1730
9076 msgid "(Added in 1.3.12)"
9077 msgstr ""
9078
9079 #. type: =head2
9080 #: ../src/guestfs-actions.pod:1732
9081 msgid "guestfs_find"
9082 msgstr ""
9083
9084 #. type: verbatim
9085 #: ../src/guestfs-actions.pod:1734
9086 #, no-wrap
9087 msgid ""
9088 " char **\n"
9089 " guestfs_find (guestfs_h *g,\n"
9090 "               const char *directory);\n"
9091 "\n"
9092 msgstr ""
9093
9094 #. type: textblock
9095 #: ../src/guestfs-actions.pod:1738 ../fish/guestfish-actions.pod:1170
9096 msgid ""
9097 "This command lists out all files and directories, recursively, starting at "
9098 "C<directory>.  It is essentially equivalent to running the shell command "
9099 "C<find directory -print> but some post-processing happens on the output, "
9100 "described below."
9101 msgstr ""
9102
9103 #. type: textblock
9104 #: ../src/guestfs-actions.pod:1743 ../fish/guestfish-actions.pod:1175
9105 msgid ""
9106 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9107 "structure was:"
9108 msgstr ""
9109
9110 #. type: verbatim
9111 #: ../src/guestfs-actions.pod:1746 ../fish/guestfish-actions.pod:1178
9112 #, no-wrap
9113 msgid ""
9114 " /tmp/a\n"
9115 " /tmp/b\n"
9116 " /tmp/c/d\n"
9117 "\n"
9118 msgstr ""
9119
9120 #. type: textblock
9121 #: ../src/guestfs-actions.pod:1750
9122 msgid ""
9123 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9124 msgstr ""
9125
9126 #. type: verbatim
9127 #: ../src/guestfs-actions.pod:1753 ../fish/guestfish-actions.pod:1185
9128 #, no-wrap
9129 msgid ""
9130 " a\n"
9131 " b\n"
9132 " c\n"
9133 " c/d\n"
9134 "\n"
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1190
9139 msgid "If C<directory> is not a directory, then this command returns an error."
9140 msgstr ""
9141
9142 #. type: textblock
9143 #: ../src/guestfs-actions.pod:1761 ../fish/guestfish-actions.pod:1193
9144 msgid "The returned list is sorted."
9145 msgstr ""
9146
9147 #. type: textblock
9148 #: ../src/guestfs-actions.pod:1763
9149 msgid "See also C<guestfs_find0>."
9150 msgstr ""
9151
9152 #. type: textblock
9153 #: ../src/guestfs-actions.pod:1772 ../src/guestfs-actions.pod:4106
9154 #: ../src/guestfs-actions.pod:5649
9155 msgid "(Added in 1.0.27)"
9156 msgstr ""
9157
9158 #. type: =head2
9159 #: ../src/guestfs-actions.pod:1774
9160 msgid "guestfs_find0"
9161 msgstr ""
9162
9163 #. type: verbatim
9164 #: ../src/guestfs-actions.pod:1776
9165 #, no-wrap
9166 msgid ""
9167 " int\n"
9168 " guestfs_find0 (guestfs_h *g,\n"
9169 "                const char *directory,\n"
9170 "                const char *files);\n"
9171 "\n"
9172 msgstr ""
9173
9174 #. type: textblock
9175 #: ../src/guestfs-actions.pod:1781 ../fish/guestfish-actions.pod:1204
9176 msgid ""
9177 "This command lists out all files and directories, recursively, starting at "
9178 "C<directory>, placing the resulting list in the external file called "
9179 "C<files>."
9180 msgstr ""
9181
9182 #. type: textblock
9183 #: ../src/guestfs-actions.pod:1785
9184 msgid ""
9185 "This command works the same way as C<guestfs_find> with the following "
9186 "exceptions:"
9187 msgstr ""
9188
9189 #. type: textblock
9190 #: ../src/guestfs-actions.pod:1792 ../fish/guestfish-actions.pod:1215
9191 msgid "The resulting list is written to an external file."
9192 msgstr ""
9193
9194 #. type: textblock
9195 #: ../src/guestfs-actions.pod:1796 ../fish/guestfish-actions.pod:1219
9196 msgid ""
9197 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9198 "L<find(1)> option I<-print0>."
9199 msgstr ""
9200
9201 #. type: textblock
9202 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1224
9203 msgid "This command is not limited in the number of names that it can return."
9204 msgstr ""
9205
9206 #. type: textblock
9207 #: ../src/guestfs-actions.pod:1806 ../fish/guestfish-actions.pod:1229
9208 msgid "The result list is not sorted."
9209 msgstr ""
9210
9211 #. type: textblock
9212 #: ../src/guestfs-actions.pod:1812
9213 msgid "(Added in 1.0.74)"
9214 msgstr ""
9215
9216 #. type: =head2
9217 #: ../src/guestfs-actions.pod:1814
9218 msgid "guestfs_findfs_label"
9219 msgstr ""
9220
9221 #. type: verbatim
9222 #: ../src/guestfs-actions.pod:1816
9223 #, no-wrap
9224 msgid ""
9225 " char *\n"
9226 " guestfs_findfs_label (guestfs_h *g,\n"
9227 "                       const char *label);\n"
9228 "\n"
9229 msgstr ""
9230
9231 #. type: textblock
9232 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
9233 msgid ""
9234 "This command searches the filesystems and returns the one which has the "
9235 "given label.  An error is returned if no such filesystem can be found."
9236 msgstr ""
9237
9238 #. type: textblock
9239 #: ../src/guestfs-actions.pod:1824
9240 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9241 msgstr ""
9242
9243 #. type: =head2
9244 #: ../src/guestfs-actions.pod:1831
9245 msgid "guestfs_findfs_uuid"
9246 msgstr ""
9247
9248 #. type: verbatim
9249 #: ../src/guestfs-actions.pod:1833
9250 #, no-wrap
9251 msgid ""
9252 " char *\n"
9253 " guestfs_findfs_uuid (guestfs_h *g,\n"
9254 "                      const char *uuid);\n"
9255 "\n"
9256 msgstr ""
9257
9258 #. type: textblock
9259 #: ../src/guestfs-actions.pod:1837 ../fish/guestfish-actions.pod:1249
9260 msgid ""
9261 "This command searches the filesystems and returns the one which has the "
9262 "given UUID.  An error is returned if no such filesystem can be found."
9263 msgstr ""
9264
9265 #. type: textblock
9266 #: ../src/guestfs-actions.pod:1841
9267 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9268 msgstr ""
9269
9270 #. type: =head2
9271 #: ../src/guestfs-actions.pod:1848
9272 msgid "guestfs_fsck"
9273 msgstr ""
9274
9275 #. type: verbatim
9276 #: ../src/guestfs-actions.pod:1850
9277 #, no-wrap
9278 msgid ""
9279 " int\n"
9280 " guestfs_fsck (guestfs_h *g,\n"
9281 "               const char *fstype,\n"
9282 "               const char *device);\n"
9283 "\n"
9284 msgstr ""
9285
9286 #. type: textblock
9287 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:1259
9288 msgid ""
9289 "This runs the filesystem checker (fsck) on C<device> which should have "
9290 "filesystem type C<fstype>."
9291 msgstr ""
9292
9293 #. type: textblock
9294 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1262
9295 msgid ""
9296 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9297 "codes from C<fsck>."
9298 msgstr ""
9299
9300 #. type: textblock
9301 #: ../src/guestfs-actions.pod:1867 ../fish/guestfish-actions.pod:1271
9302 msgid "Multiple status codes can be summed together."
9303 msgstr ""
9304
9305 #. type: textblock
9306 #: ../src/guestfs-actions.pod:1871 ../fish/guestfish-actions.pod:1275
9307 msgid ""
9308 "A non-zero return code can mean \"success\", for example if errors have been "
9309 "corrected on the filesystem."
9310 msgstr ""
9311
9312 #. type: textblock
9313 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1280
9314 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9315 msgstr ""
9316
9317 #. type: textblock
9318 #: ../src/guestfs-actions.pod:1881 ../fish/guestfish-actions.pod:1285
9319 msgid ""
9320 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9321 msgstr ""
9322
9323 #. type: textblock
9324 #: ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:7345
9325 msgid "(Added in 1.0.16)"
9326 msgstr ""
9327
9328 #. type: =head2
9329 #: ../src/guestfs-actions.pod:1887
9330 msgid "guestfs_get_append"
9331 msgstr ""
9332
9333 #. type: verbatim
9334 #: ../src/guestfs-actions.pod:1889
9335 #, no-wrap
9336 msgid ""
9337 " const char *\n"
9338 " guestfs_get_append (guestfs_h *g);\n"
9339 "\n"
9340 msgstr ""
9341
9342 #. type: textblock
9343 #: ../src/guestfs-actions.pod:1892 ../fish/guestfish-actions.pod:1291
9344 msgid ""
9345 "Return the additional kernel options which are added to the guest kernel "
9346 "command line."
9347 msgstr ""
9348
9349 #. type: textblock
9350 #: ../src/guestfs-actions.pod:1895 ../fish/guestfish-actions.pod:1294
9351 msgid "If C<NULL> then no options are added."
9352 msgstr ""
9353
9354 #. type: textblock
9355 #: ../src/guestfs-actions.pod:1897
9356 msgid ""
9357 "This function returns a string which may be NULL.  There is no way to return "
9358 "an error from this function.  The string is owned by the guest handle and "
9359 "must I<not> be freed."
9360 msgstr ""
9361
9362 #. type: textblock
9363 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:5327
9364 #: ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:6207
9365 #: ../src/guestfs-actions.pod:6226 ../src/guestfs-actions.pod:6242
9366 #: ../src/guestfs-actions.pod:6259 ../src/guestfs-actions.pod:7016
9367 #: ../src/guestfs-actions.pod:7034 ../src/guestfs-actions.pod:7388
9368 msgid "(Added in 1.0.26)"
9369 msgstr ""
9370
9371 #. type: =head2
9372 #: ../src/guestfs-actions.pod:1903
9373 msgid "guestfs_get_attach_method"
9374 msgstr ""
9375
9376 #. type: verbatim
9377 #: ../src/guestfs-actions.pod:1905
9378 #, no-wrap
9379 msgid ""
9380 " char *\n"
9381 " guestfs_get_attach_method (guestfs_h *g);\n"
9382 "\n"
9383 msgstr ""
9384
9385 #. type: textblock
9386 #: ../src/guestfs-actions.pod:1908
9387 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
9388 msgstr ""
9389
9390 #. type: =head2
9391 #: ../src/guestfs-actions.pod:1913
9392 msgid "guestfs_get_autosync"
9393 msgstr ""
9394
9395 #. type: verbatim
9396 #: ../src/guestfs-actions.pod:1915
9397 #, no-wrap
9398 msgid ""
9399 " int\n"
9400 " guestfs_get_autosync (guestfs_h *g);\n"
9401 "\n"
9402 msgstr ""
9403
9404 #. type: textblock
9405 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1306
9406 msgid "Get the autosync flag."
9407 msgstr ""
9408
9409 #. type: =head2
9410 #: ../src/guestfs-actions.pod:1924
9411 msgid "guestfs_get_direct"
9412 msgstr ""
9413
9414 #. type: verbatim
9415 #: ../src/guestfs-actions.pod:1926
9416 #, no-wrap
9417 msgid ""
9418 " int\n"
9419 " guestfs_get_direct (guestfs_h *g);\n"
9420 "\n"
9421 msgstr ""
9422
9423 #. type: textblock
9424 #: ../src/guestfs-actions.pod:1929 ../fish/guestfish-actions.pod:1312
9425 msgid "Return the direct appliance mode flag."
9426 msgstr ""
9427
9428 #. type: textblock
9429 #: ../src/guestfs-actions.pod:1933 ../src/guestfs-actions.pod:5876
9430 msgid "(Added in 1.0.72)"
9431 msgstr ""
9432
9433 #. type: =head2
9434 #: ../src/guestfs-actions.pod:1935
9435 msgid "guestfs_get_e2label"
9436 msgstr ""
9437
9438 #. type: verbatim
9439 #: ../src/guestfs-actions.pod:1937
9440 #, no-wrap
9441 msgid ""
9442 " char *\n"
9443 " guestfs_get_e2label (guestfs_h *g,\n"
9444 "                      const char *device);\n"
9445 "\n"
9446 msgstr ""
9447
9448 #. type: textblock
9449 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1318
9450 msgid ""
9451 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9452 msgstr ""
9453
9454 #. type: textblock
9455 #: ../src/guestfs-actions.pod:1947 ../fish/guestfish-actions.pod:1321
9456 msgid ""
9457 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
9458 msgstr ""
9459
9460 #. type: textblock
9461 #: ../src/guestfs-actions.pod:1954 ../src/guestfs-actions.pod:1975
9462 #: ../src/guestfs-actions.pod:5894 ../src/guestfs-actions.pod:5913
9463 msgid "(Added in 1.0.15)"
9464 msgstr ""
9465
9466 #. type: =head2
9467 #: ../src/guestfs-actions.pod:1956
9468 msgid "guestfs_get_e2uuid"
9469 msgstr ""
9470
9471 #. type: verbatim
9472 #: ../src/guestfs-actions.pod:1958
9473 #, no-wrap
9474 msgid ""
9475 " char *\n"
9476 " guestfs_get_e2uuid (guestfs_h *g,\n"
9477 "                     const char *device);\n"
9478 "\n"
9479 msgstr ""
9480
9481 #. type: textblock
9482 #: ../src/guestfs-actions.pod:1962 ../fish/guestfish-actions.pod:1332
9483 msgid ""
9484 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9485 msgstr ""
9486
9487 #. type: textblock
9488 #: ../src/guestfs-actions.pod:1968 ../fish/guestfish-actions.pod:1335
9489 msgid ""
9490 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9491 msgstr ""
9492
9493 #. type: =head2
9494 #: ../src/guestfs-actions.pod:1977
9495 msgid "guestfs_get_memsize"
9496 msgstr ""
9497
9498 #. type: verbatim
9499 #: ../src/guestfs-actions.pod:1979
9500 #, no-wrap
9501 msgid ""
9502 " int\n"
9503 " guestfs_get_memsize (guestfs_h *g);\n"
9504 "\n"
9505 msgstr ""
9506
9507 #. type: textblock
9508 #: ../src/guestfs-actions.pod:1982 ../fish/guestfish-actions.pod:1346
9509 msgid ""
9510 "This gets the memory size in megabytes allocated to the qemu subprocess."
9511 msgstr ""
9512
9513 #. type: textblock
9514 #: ../src/guestfs-actions.pod:1985
9515 msgid ""
9516 "If C<guestfs_set_memsize> was not called on this handle, and if "
9517 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9518 "value for memsize."
9519 msgstr ""
9520
9521 #. type: textblock
9522 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2070
9523 #: ../src/guestfs-actions.pod:5929 ../src/guestfs-actions.pod:6036
9524 #: ../fish/guestfish-actions.pod:1353 ../fish/guestfish-actions.pod:1404
9525 #: ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4085
9526 msgid ""
9527 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9528 msgstr ""
9529
9530 #. type: textblock
9531 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:4397
9532 #: ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4613
9533 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4644
9534 #: ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4674
9535 #: ../src/guestfs-actions.pod:5552 ../src/guestfs-actions.pod:5934
9536 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6782
9537 msgid "(Added in 1.0.55)"
9538 msgstr ""
9539
9540 #. type: =head2
9541 #: ../src/guestfs-actions.pod:1996
9542 msgid "guestfs_get_network"
9543 msgstr ""
9544
9545 #. type: verbatim
9546 #: ../src/guestfs-actions.pod:1998
9547 #, no-wrap
9548 msgid ""
9549 " int\n"
9550 " guestfs_get_network (guestfs_h *g);\n"
9551 "\n"
9552 msgstr ""
9553
9554 #. type: textblock
9555 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1360
9556 msgid "This returns the enable network flag."
9557 msgstr ""
9558
9559 #. type: textblock
9560 #: ../src/guestfs-actions.pod:2005 ../src/guestfs-actions.pod:5953
9561 msgid "(Added in 1.5.4)"
9562 msgstr ""
9563
9564 #. type: =head2
9565 #: ../src/guestfs-actions.pod:2007
9566 msgid "guestfs_get_path"
9567 msgstr ""
9568
9569 #. type: verbatim
9570 #: ../src/guestfs-actions.pod:2009
9571 #, no-wrap
9572 msgid ""
9573 " const char *\n"
9574 " guestfs_get_path (guestfs_h *g);\n"
9575 "\n"
9576 msgstr ""
9577
9578 #. type: textblock
9579 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1366
9580 msgid "Return the current search path."
9581 msgstr ""
9582
9583 #. type: textblock
9584 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1368
9585 msgid ""
9586 "This is always non-NULL.  If it wasn't set already, then this will return "
9587 "the default path."
9588 msgstr ""
9589
9590 #. type: textblock
9591 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2046
9592 msgid ""
9593 "This function returns a string, or NULL on error.  The string is owned by "
9594 "the guest handle and must I<not> be freed."
9595 msgstr ""
9596
9597 #. type: =head2
9598 #: ../src/guestfs-actions.pod:2022
9599 msgid "guestfs_get_pid"
9600 msgstr ""
9601
9602 #. type: verbatim
9603 #: ../src/guestfs-actions.pod:2024
9604 #, no-wrap
9605 msgid ""
9606 " int\n"
9607 " guestfs_get_pid (guestfs_h *g);\n"
9608 "\n"
9609 msgstr ""
9610
9611 #. type: textblock
9612 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1377
9613 msgid ""
9614 "Return the process ID of the qemu subprocess.  If there is no qemu "
9615 "subprocess, then this will return an error."
9616 msgstr ""
9617
9618 #. type: textblock
9619 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1380
9620 msgid "This is an internal call used for debugging and testing."
9621 msgstr ""
9622
9623 #. type: textblock
9624 #: ../src/guestfs-actions.pod:2034
9625 msgid "(Added in 1.0.56)"
9626 msgstr ""
9627
9628 #. type: =head2
9629 #: ../src/guestfs-actions.pod:2036
9630 msgid "guestfs_get_qemu"
9631 msgstr ""
9632
9633 #. type: verbatim
9634 #: ../src/guestfs-actions.pod:2038
9635 #, no-wrap
9636 msgid ""
9637 " const char *\n"
9638 " guestfs_get_qemu (guestfs_h *g);\n"
9639 "\n"
9640 msgstr ""
9641
9642 #. type: textblock
9643 #: ../src/guestfs-actions.pod:2041 ../fish/guestfish-actions.pod:1386
9644 msgid "Return the current qemu binary."
9645 msgstr ""
9646
9647 #. type: textblock
9648 #: ../src/guestfs-actions.pod:2043 ../fish/guestfish-actions.pod:1388
9649 msgid ""
9650 "This is always non-NULL.  If it wasn't set already, then this will return "
9651 "the default qemu binary name."
9652 msgstr ""
9653
9654 #. type: textblock
9655 #: ../src/guestfs-actions.pod:2049 ../src/guestfs-actions.pod:5998
9656 msgid "(Added in 1.0.6)"
9657 msgstr ""
9658
9659 #. type: =head2
9660 #: ../src/guestfs-actions.pod:2051
9661 msgid "guestfs_get_recovery_proc"
9662 msgstr ""
9663
9664 #. type: verbatim
9665 #: ../src/guestfs-actions.pod:2053
9666 #, no-wrap
9667 msgid ""
9668 " int\n"
9669 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9670 "\n"
9671 msgstr ""
9672
9673 #. type: textblock
9674 #: ../src/guestfs-actions.pod:2056 ../fish/guestfish-actions.pod:1395
9675 msgid "Return the recovery process enabled flag."
9676 msgstr ""
9677
9678 #. type: textblock
9679 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3507
9680 #: ../src/guestfs-actions.pod:3804 ../src/guestfs-actions.pod:4204
9681 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:5257
9682 #: ../src/guestfs-actions.pod:5600 ../src/guestfs-actions.pod:6022
9683 #: ../src/guestfs-actions.pod:6685 ../src/guestfs-actions.pod:6705
9684 #: ../src/guestfs-actions.pod:6897
9685 msgid "(Added in 1.0.77)"
9686 msgstr ""
9687
9688 #. type: =head2
9689 #: ../src/guestfs-actions.pod:2062
9690 msgid "guestfs_get_selinux"
9691 msgstr ""
9692
9693 #. type: verbatim
9694 #: ../src/guestfs-actions.pod:2064
9695 #, no-wrap
9696 msgid ""
9697 " int\n"
9698 " guestfs_get_selinux (guestfs_h *g);\n"
9699 "\n"
9700 msgstr ""
9701
9702 #. type: textblock
9703 #: ../src/guestfs-actions.pod:2067
9704 msgid ""
9705 "This returns the current setting of the selinux flag which is passed to the "
9706 "appliance at boot time.  See C<guestfs_set_selinux>."
9707 msgstr ""
9708
9709 #. type: textblock
9710 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2138
9711 #: ../src/guestfs-actions.pod:6041 ../src/guestfs-actions.pod:6099
9712 msgid "(Added in 1.0.67)"
9713 msgstr ""
9714
9715 #. type: =head2
9716 #: ../src/guestfs-actions.pod:2077
9717 msgid "guestfs_get_state"
9718 msgstr ""
9719
9720 #. type: verbatim
9721 #: ../src/guestfs-actions.pod:2079
9722 #, no-wrap
9723 msgid ""
9724 " int\n"
9725 " guestfs_get_state (guestfs_h *g);\n"
9726 "\n"
9727 msgstr ""
9728
9729 #. type: textblock
9730 #: ../src/guestfs-actions.pod:2082 ../fish/guestfish-actions.pod:1411
9731 msgid ""
9732 "This returns the current state as an opaque integer.  This is only useful "
9733 "for printing debug and internal error messages."
9734 msgstr ""
9735
9736 #. type: textblock
9737 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:3305
9738 #: ../src/guestfs-actions.pod:3334 ../src/guestfs-actions.pod:3395
9739 #: ../src/guestfs-actions.pod:3422 ../fish/guestfish-actions.pod:1414
9740 #: ../fish/guestfish-actions.pod:2328 ../fish/guestfish-actions.pod:2346
9741 #: ../fish/guestfish-actions.pod:2384 ../fish/guestfish-actions.pod:2400
9742 msgid "For more information on states, see L<guestfs(3)>."
9743 msgstr ""
9744
9745 #. type: =head2
9746 #: ../src/guestfs-actions.pod:2091
9747 msgid "guestfs_get_trace"
9748 msgstr ""
9749
9750 #. type: verbatim
9751 #: ../src/guestfs-actions.pod:2093
9752 #, no-wrap
9753 msgid ""
9754 " int\n"
9755 " guestfs_get_trace (guestfs_h *g);\n"
9756 "\n"
9757 msgstr ""
9758
9759 #. type: textblock
9760 #: ../src/guestfs-actions.pod:2096 ../fish/guestfish-actions.pod:1420
9761 msgid "Return the command trace flag."
9762 msgstr ""
9763
9764 #. type: =head2
9765 #: ../src/guestfs-actions.pod:2102
9766 msgid "guestfs_get_umask"
9767 msgstr ""
9768
9769 #. type: verbatim
9770 #: ../src/guestfs-actions.pod:2104
9771 #, no-wrap
9772 msgid ""
9773 " int\n"
9774 " guestfs_get_umask (guestfs_h *g);\n"
9775 "\n"
9776 msgstr ""
9777
9778 #. type: textblock
9779 #: ../src/guestfs-actions.pod:2107
9780 msgid ""
9781 "Return the current umask.  By default the umask is C<022> unless it has been "
9782 "set by calling C<guestfs_umask>."
9783 msgstr ""
9784
9785 #. type: =head2
9786 #: ../src/guestfs-actions.pod:2114
9787 msgid "guestfs_get_verbose"
9788 msgstr ""
9789
9790 #. type: verbatim
9791 #: ../src/guestfs-actions.pod:2116
9792 #, no-wrap
9793 msgid ""
9794 " int\n"
9795 " guestfs_get_verbose (guestfs_h *g);\n"
9796 "\n"
9797 msgstr ""
9798
9799 #. type: textblock
9800 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1433
9801 msgid "This returns the verbose messages flag."
9802 msgstr ""
9803
9804 #. type: =head2
9805 #: ../src/guestfs-actions.pod:2125
9806 msgid "guestfs_getcon"
9807 msgstr ""
9808
9809 #. type: verbatim
9810 #: ../src/guestfs-actions.pod:2127
9811 #, no-wrap
9812 msgid ""
9813 " char *\n"
9814 " guestfs_getcon (guestfs_h *g);\n"
9815 "\n"
9816 msgstr ""
9817
9818 #. type: textblock
9819 #: ../src/guestfs-actions.pod:2130 ../fish/guestfish-actions.pod:1439
9820 msgid "This gets the SELinux security context of the daemon."
9821 msgstr ""
9822
9823 #. type: textblock
9824 #: ../src/guestfs-actions.pod:2132
9825 msgid ""
9826 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
9827 msgstr ""
9828
9829 #. type: =head2
9830 #: ../src/guestfs-actions.pod:2140
9831 msgid "guestfs_getxattr"
9832 msgstr ""
9833
9834 #. type: verbatim
9835 #: ../src/guestfs-actions.pod:2142
9836 #, no-wrap
9837 msgid ""
9838 " char *\n"
9839 " guestfs_getxattr (guestfs_h *g,\n"
9840 "                   const char *path,\n"
9841 "                   const char *name,\n"
9842 "                   size_t *size_r);\n"
9843 "\n"
9844 msgstr ""
9845
9846 #. type: textblock
9847 #: ../src/guestfs-actions.pod:2148
9848 msgid ""
9849 "Get a single extended attribute from file C<path> named C<name>.  This call "
9850 "follows symlinks.  If you want to lookup an extended attribute for the "
9851 "symlink itself, use C<guestfs_lgetxattr>."
9852 msgstr ""
9853
9854 #. type: textblock
9855 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:3521
9856 msgid ""
9857 "Normally it is better to get all extended attributes from a file in one go "
9858 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
9859 "implementations are buggy and do not provide a way to list out attributes.  "
9860 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
9861 "extended attributes you want in advance and call this function."
9862 msgstr ""
9863
9864 #. type: textblock
9865 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3528
9866 #: ../fish/guestfish-actions.pod:1459 ../fish/guestfish-actions.pod:2465
9867 msgid ""
9868 "Extended attribute values are blobs of binary data.  If there is no extended "
9869 "attribute named C<name>, this returns an error."
9870 msgstr ""
9871
9872 #. type: textblock
9873 #: ../src/guestfs-actions.pod:2162
9874 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
9875 msgstr ""
9876
9877 #. type: textblock
9878 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2355
9879 #: ../src/guestfs-actions.pod:3533 ../src/guestfs-actions.pod:5250
9880 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5457
9881 msgid ""
9882 "This function returns a buffer, or NULL on error.  The size of the returned "
9883 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
9884 "after use>."
9885 msgstr ""
9886
9887 #. type: textblock
9888 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:3537
9889 msgid "(Added in 1.7.24)"
9890 msgstr ""
9891
9892 #. type: =head2
9893 #: ../src/guestfs-actions.pod:2170
9894 msgid "guestfs_getxattrs"
9895 msgstr ""
9896
9897 #. type: verbatim
9898 #: ../src/guestfs-actions.pod:2172
9899 #, no-wrap
9900 msgid ""
9901 " struct guestfs_xattr_list *\n"
9902 " guestfs_getxattrs (guestfs_h *g,\n"
9903 "                    const char *path);\n"
9904 "\n"
9905 msgstr ""
9906
9907 #. type: textblock
9908 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1468
9909 msgid ""
9910 "This call lists the extended attributes of the file or directory C<path>."
9911 msgstr ""
9912
9913 #. type: textblock
9914 #: ../src/guestfs-actions.pod:2179 ../fish/guestfish-actions.pod:1471
9915 msgid ""
9916 "At the system call level, this is a combination of the L<listxattr(2)> and "
9917 "L<getxattr(2)> calls."
9918 msgstr ""
9919
9920 #. type: textblock
9921 #: ../src/guestfs-actions.pod:2182
9922 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
9923 msgstr ""
9924
9925 #. type: textblock
9926 #: ../src/guestfs-actions.pod:2184 ../src/guestfs-actions.pod:3549
9927 #: ../src/guestfs-actions.pod:4200
9928 msgid ""
9929 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
9930 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
9931 msgstr ""
9932
9933 #. type: textblock
9934 #: ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:3553
9935 #: ../src/guestfs-actions.pod:3718 ../src/guestfs-actions.pod:3754
9936 #: ../src/guestfs-actions.pod:5630 ../src/guestfs-actions.pod:6118
9937 #: ../src/guestfs-actions.pod:7453
9938 msgid "(Added in 1.0.59)"
9939 msgstr ""
9940
9941 #. type: =head2
9942 #: ../src/guestfs-actions.pod:2190
9943 msgid "guestfs_glob_expand"
9944 msgstr ""
9945
9946 #. type: verbatim
9947 #: ../src/guestfs-actions.pod:2192
9948 #, no-wrap
9949 msgid ""
9950 " char **\n"
9951 " guestfs_glob_expand (guestfs_h *g,\n"
9952 "                      const char *pattern);\n"
9953 "\n"
9954 msgstr ""
9955
9956 #. type: textblock
9957 #: ../src/guestfs-actions.pod:2196 ../fish/guestfish-actions.pod:1480
9958 msgid ""
9959 "This command searches for all the pathnames matching C<pattern> according to "
9960 "the wildcard expansion rules used by the shell."
9961 msgstr ""
9962
9963 #. type: textblock
9964 #: ../src/guestfs-actions.pod:2200 ../fish/guestfish-actions.pod:1484
9965 msgid ""
9966 "If no paths match, then this returns an empty list (note: not an error)."
9967 msgstr ""
9968
9969 #. type: textblock
9970 #: ../src/guestfs-actions.pod:2203 ../fish/guestfish-actions.pod:1487
9971 msgid ""
9972 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9973 "GLOB_BRACE>.  See that manual page for more details."
9974 msgstr ""
9975
9976 #. type: textblock
9977 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6283
9978 #: ../src/guestfs-actions.pod:6300
9979 msgid "(Added in 1.0.50)"
9980 msgstr ""
9981
9982 #. type: =head2
9983 #: ../src/guestfs-actions.pod:2213
9984 msgid "guestfs_grep"
9985 msgstr ""
9986
9987 #. type: verbatim
9988 #: ../src/guestfs-actions.pod:2215
9989 #, no-wrap
9990 msgid ""
9991 " char **\n"
9992 " guestfs_grep (guestfs_h *g,\n"
9993 "               const char *regex,\n"
9994 "               const char *path);\n"
9995 "\n"
9996 msgstr ""
9997
9998 #. type: textblock
9999 #: ../src/guestfs-actions.pod:2220 ../fish/guestfish-actions.pod:1495
10000 msgid "This calls the external C<grep> program and returns the matching lines."
10001 msgstr ""
10002
10003 #. type: =head2
10004 #: ../src/guestfs-actions.pod:2232
10005 msgid "guestfs_grepi"
10006 msgstr ""
10007
10008 #. type: verbatim
10009 #: ../src/guestfs-actions.pod:2234
10010 #, no-wrap
10011 msgid ""
10012 " char **\n"
10013 " guestfs_grepi (guestfs_h *g,\n"
10014 "                const char *regex,\n"
10015 "                const char *path);\n"
10016 "\n"
10017 msgstr ""
10018
10019 #. type: textblock
10020 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1505
10021 msgid ""
10022 "This calls the external C<grep -i> program and returns the matching lines."
10023 msgstr ""
10024
10025 #. type: =head2
10026 #: ../src/guestfs-actions.pod:2251
10027 msgid "guestfs_grub_install"
10028 msgstr ""
10029
10030 #. type: verbatim
10031 #: ../src/guestfs-actions.pod:2253
10032 #, no-wrap
10033 msgid ""
10034 " int\n"
10035 " guestfs_grub_install (guestfs_h *g,\n"
10036 "                       const char *root,\n"
10037 "                       const char *device);\n"
10038 "\n"
10039 msgstr ""
10040
10041 #. type: textblock
10042 #: ../src/guestfs-actions.pod:2258 ../fish/guestfish-actions.pod:1515
10043 msgid ""
10044 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10045 "the root directory being C<root>."
10046 msgstr ""
10047
10048 #. type: textblock
10049 #: ../src/guestfs-actions.pod:2261 ../fish/guestfish-actions.pod:1518
10050 msgid ""
10051 "Note: If grub-install reports the error \"No suitable drive was found in the "
10052 "generated device map.\" it may be that you need to create a C</boot/grub/"
10053 "device.map> file first that contains the mapping between grub device names "
10054 "and Linux device names.  It is usually sufficient to create a file "
10055 "containing:"
10056 msgstr ""
10057
10058 #. type: verbatim
10059 #: ../src/guestfs-actions.pod:2268 ../fish/guestfish-actions.pod:1525
10060 #, no-wrap
10061 msgid ""
10062 " (hd0) /dev/vda\n"
10063 "\n"
10064 msgstr ""
10065
10066 #. type: textblock
10067 #: ../src/guestfs-actions.pod:2270 ../fish/guestfish-actions.pod:1527
10068 msgid "replacing C</dev/vda> with the name of the installation device."
10069 msgstr ""
10070
10071 #. type: textblock
10072 #: ../src/guestfs-actions.pod:2274
10073 msgid "(Added in 1.0.17)"
10074 msgstr ""
10075
10076 #. type: =head2
10077 #: ../src/guestfs-actions.pod:2276
10078 msgid "guestfs_head"
10079 msgstr ""
10080
10081 #. type: verbatim
10082 #: ../src/guestfs-actions.pod:2278
10083 #, no-wrap
10084 msgid ""
10085 " char **\n"
10086 " guestfs_head (guestfs_h *g,\n"
10087 "               const char *path);\n"
10088 "\n"
10089 msgstr ""
10090
10091 #. type: textblock
10092 #: ../src/guestfs-actions.pod:2282 ../fish/guestfish-actions.pod:1533
10093 msgid ""
10094 "This command returns up to the first 10 lines of a file as a list of strings."
10095 msgstr ""
10096
10097 #. type: =head2
10098 #: ../src/guestfs-actions.pod:2294
10099 msgid "guestfs_head_n"
10100 msgstr ""
10101
10102 #. type: verbatim
10103 #: ../src/guestfs-actions.pod:2296
10104 #, no-wrap
10105 msgid ""
10106 " char **\n"
10107 " guestfs_head_n (guestfs_h *g,\n"
10108 "                 int nrlines,\n"
10109 "                 const char *path);\n"
10110 "\n"
10111 msgstr ""
10112
10113 #. type: textblock
10114 #: ../src/guestfs-actions.pod:2301 ../fish/guestfish-actions.pod:1543
10115 msgid ""
10116 "If the parameter C<nrlines> is a positive number, this returns the first "
10117 "C<nrlines> lines of the file C<path>."
10118 msgstr ""
10119
10120 #. type: textblock
10121 #: ../src/guestfs-actions.pod:2304 ../fish/guestfish-actions.pod:1546
10122 msgid ""
10123 "If the parameter C<nrlines> is a negative number, this returns lines from "
10124 "the file C<path>, excluding the last C<nrlines> lines."
10125 msgstr ""
10126
10127 #. type: textblock
10128 #: ../src/guestfs-actions.pod:2307 ../src/guestfs-actions.pod:6580
10129 #: ../fish/guestfish-actions.pod:1549 ../fish/guestfish-actions.pod:4435
10130 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10131 msgstr ""
10132
10133 #. type: =head2
10134 #: ../src/guestfs-actions.pod:2318
10135 msgid "guestfs_hexdump"
10136 msgstr ""
10137
10138 #. type: verbatim
10139 #: ../src/guestfs-actions.pod:2320
10140 #, no-wrap
10141 msgid ""
10142 " char *\n"
10143 " guestfs_hexdump (guestfs_h *g,\n"
10144 "                  const char *path);\n"
10145 "\n"
10146 msgstr ""
10147
10148 #. type: textblock
10149 #: ../src/guestfs-actions.pod:2324 ../fish/guestfish-actions.pod:1558
10150 msgid ""
10151 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10152 "readable, canonical hex dump of the file."
10153 msgstr ""
10154
10155 #. type: textblock
10156 #: ../src/guestfs-actions.pod:2333 ../src/guestfs-actions.pod:6364
10157 #: ../src/guestfs-actions.pod:6419
10158 msgid "(Added in 1.0.22)"
10159 msgstr ""
10160
10161 #. type: =head2
10162 #: ../src/guestfs-actions.pod:2335
10163 msgid "guestfs_initrd_cat"
10164 msgstr ""
10165
10166 #. type: verbatim
10167 #: ../src/guestfs-actions.pod:2337
10168 #, no-wrap
10169 msgid ""
10170 " char *\n"
10171 " guestfs_initrd_cat (guestfs_h *g,\n"
10172 "                     const char *initrdpath,\n"
10173 "                     const char *filename,\n"
10174 "                     size_t *size_r);\n"
10175 "\n"
10176 msgstr ""
10177
10178 #. type: textblock
10179 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1568
10180 msgid ""
10181 "This command unpacks the file C<filename> from the initrd file called "
10182 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10183 "character."
10184 msgstr ""
10185
10186 #. type: textblock
10187 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1572
10188 msgid ""
10189 "For example, in guestfish you could use the following command to examine the "
10190 "boot script (usually called C</init>)  contained in a Linux initrd or "
10191 "initramfs image:"
10192 msgstr ""
10193
10194 #. type: verbatim
10195 #: ../src/guestfs-actions.pod:2351 ../fish/guestfish-actions.pod:1576
10196 #, no-wrap
10197 msgid ""
10198 " initrd-cat /boot/initrd-<version>.img init\n"
10199 "\n"
10200 msgstr ""
10201
10202 #. type: textblock
10203 #: ../src/guestfs-actions.pod:2353
10204 msgid "See also C<guestfs_initrd_list>."
10205 msgstr ""
10206
10207 #. type: =head2
10208 #: ../src/guestfs-actions.pod:2364
10209 msgid "guestfs_initrd_list"
10210 msgstr ""
10211
10212 #. type: verbatim
10213 #: ../src/guestfs-actions.pod:2366
10214 #, no-wrap
10215 msgid ""
10216 " char **\n"
10217 " guestfs_initrd_list (guestfs_h *g,\n"
10218 "                      const char *path);\n"
10219 "\n"
10220 msgstr ""
10221
10222 #. type: textblock
10223 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1587
10224 msgid "This command lists out files contained in an initrd."
10225 msgstr ""
10226
10227 #. type: textblock
10228 #: ../src/guestfs-actions.pod:2372 ../fish/guestfish-actions.pod:1589
10229 msgid ""
10230 "The files are listed without any initial C</> character.  The files are "
10231 "listed in the order they appear (not necessarily alphabetical).  Directory "
10232 "names are listed as separate items."
10233 msgstr ""
10234
10235 #. type: textblock
10236 #: ../src/guestfs-actions.pod:2376 ../fish/guestfish-actions.pod:1593
10237 msgid ""
10238 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10239 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10240 "files)."
10241 msgstr ""
10242
10243 #. type: =head2
10244 #: ../src/guestfs-actions.pod:2386
10245 msgid "guestfs_inotify_add_watch"
10246 msgstr ""
10247
10248 #. type: verbatim
10249 #: ../src/guestfs-actions.pod:2388
10250 #, no-wrap
10251 msgid ""
10252 " int64_t\n"
10253 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10254 "                            const char *path,\n"
10255 "                            int mask);\n"
10256 "\n"
10257 msgstr ""
10258
10259 #. type: textblock
10260 #: ../src/guestfs-actions.pod:2393 ../fish/guestfish-actions.pod:1601
10261 msgid "Watch C<path> for the events listed in C<mask>."
10262 msgstr ""
10263
10264 #. type: textblock
10265 #: ../src/guestfs-actions.pod:2395 ../fish/guestfish-actions.pod:1603
10266 msgid ""
10267 "Note that if C<path> is a directory then events within that directory are "
10268 "watched, but this does I<not> happen recursively (in subdirectories)."
10269 msgstr ""
10270
10271 #. type: textblock
10272 #: ../src/guestfs-actions.pod:2399 ../fish/guestfish-actions.pod:1607
10273 msgid ""
10274 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10275 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10276 msgstr ""
10277
10278 #. type: =head2
10279 #: ../src/guestfs-actions.pod:2407
10280 msgid "guestfs_inotify_close"
10281 msgstr ""
10282
10283 #. type: verbatim
10284 #: ../src/guestfs-actions.pod:2409
10285 #, no-wrap
10286 msgid ""
10287 " int\n"
10288 " guestfs_inotify_close (guestfs_h *g);\n"
10289 "\n"
10290 msgstr ""
10291
10292 #. type: textblock
10293 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1615
10294 msgid ""
10295 "This closes the inotify handle which was previously opened by inotify_init.  "
10296 "It removes all watches, throws away any pending events, and deallocates all "
10297 "resources."
10298 msgstr ""
10299
10300 #. type: =head2
10301 #: ../src/guestfs-actions.pod:2420
10302 msgid "guestfs_inotify_files"
10303 msgstr ""
10304
10305 #. type: verbatim
10306 #: ../src/guestfs-actions.pod:2422
10307 #, no-wrap
10308 msgid ""
10309 " char **\n"
10310 " guestfs_inotify_files (guestfs_h *g);\n"
10311 "\n"
10312 msgstr ""
10313
10314 #. type: textblock
10315 #: ../src/guestfs-actions.pod:2425
10316 msgid ""
10317 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
10318 "returns a list of pathnames of objects that were touched.  The returned "
10319 "pathnames are sorted and deduplicated."
10320 msgstr ""
10321
10322 #. type: =head2
10323 #: ../src/guestfs-actions.pod:2435
10324 msgid "guestfs_inotify_init"
10325 msgstr ""
10326
10327 #. type: verbatim
10328 #: ../src/guestfs-actions.pod:2437
10329 #, no-wrap
10330 msgid ""
10331 " int\n"
10332 " guestfs_inotify_init (guestfs_h *g,\n"
10333 "                       int maxevents);\n"
10334 "\n"
10335 msgstr ""
10336
10337 #. type: textblock
10338 #: ../src/guestfs-actions.pod:2441 ../fish/guestfish-actions.pod:1631
10339 msgid ""
10340 "This command creates a new inotify handle.  The inotify subsystem can be "
10341 "used to notify events which happen to objects in the guest filesystem."
10342 msgstr ""
10343
10344 #. type: textblock
10345 #: ../src/guestfs-actions.pod:2445
10346 msgid ""
10347 "C<maxevents> is the maximum number of events which will be queued up between "
10348 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
10349 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
10350 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
10351 "throws away events, but records the fact that it threw them away by setting "
10352 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
10353 "C<guestfs_inotify_read>)."
10354 msgstr ""
10355
10356 #. type: textblock
10357 #: ../src/guestfs-actions.pod:2455
10358 msgid ""
10359 "Before any events are generated, you have to add some watches to the "
10360 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
10361 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
10362 msgstr ""
10363
10364 #. type: textblock
10365 #: ../src/guestfs-actions.pod:2461
10366 msgid ""
10367 "Queued up events should be read periodically by calling "
10368 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
10369 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
10370 "often enough then you risk the internal queue overflowing."
10371 msgstr ""
10372
10373 #. type: textblock
10374 #: ../src/guestfs-actions.pod:2468
10375 msgid ""
10376 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
10377 "This also removes any watches automatically."
10378 msgstr ""
10379
10380 #. type: textblock
10381 #: ../src/guestfs-actions.pod:2472 ../fish/guestfish-actions.pod:1662
10382 msgid ""
10383 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10384 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10385 "that there is one global inotify handle per libguestfs instance."
10386 msgstr ""
10387
10388 #. type: =head2
10389 #: ../src/guestfs-actions.pod:2481
10390 msgid "guestfs_inotify_read"
10391 msgstr ""
10392
10393 #. type: verbatim
10394 #: ../src/guestfs-actions.pod:2483
10395 #, no-wrap
10396 msgid ""
10397 " struct guestfs_inotify_event_list *\n"
10398 " guestfs_inotify_read (guestfs_h *g);\n"
10399 "\n"
10400 msgstr ""
10401
10402 #. type: textblock
10403 #: ../src/guestfs-actions.pod:2486 ../fish/guestfish-actions.pod:1671
10404 msgid ""
10405 "Return the complete queue of events that have happened since the previous "
10406 "read call."
10407 msgstr ""
10408
10409 #. type: textblock
10410 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1674
10411 msgid "If no events have happened, this returns an empty list."
10412 msgstr ""
10413
10414 #. type: textblock
10415 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1676
10416 msgid ""
10417 "I<Note>: In order to make sure that all events have been read, you must call "
10418 "this function repeatedly until it returns an empty list.  The reason is that "
10419 "the call will read events up to the maximum appliance-to-host message size "
10420 "and leave remaining events in the queue."
10421 msgstr ""
10422
10423 #. type: textblock
10424 #: ../src/guestfs-actions.pod:2497
10425 msgid ""
10426 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
10427 "there was an error.  I<The caller must call "
10428 "C<guestfs_free_inotify_event_list> after use>."
10429 msgstr ""
10430
10431 #. type: =head2
10432 #: ../src/guestfs-actions.pod:2503
10433 msgid "guestfs_inotify_rm_watch"
10434 msgstr ""
10435
10436 #. type: verbatim
10437 #: ../src/guestfs-actions.pod:2505
10438 #, no-wrap
10439 msgid ""
10440 " int\n"
10441 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10442 "                           int wd);\n"
10443 "\n"
10444 msgstr ""
10445
10446 #. type: textblock
10447 #: ../src/guestfs-actions.pod:2509
10448 msgid ""
10449 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
10450 msgstr ""
10451
10452 #. type: =head2
10453 #: ../src/guestfs-actions.pod:2516
10454 msgid "guestfs_inspect_get_arch"
10455 msgstr ""
10456
10457 #. type: verbatim
10458 #: ../src/guestfs-actions.pod:2518
10459 #, no-wrap
10460 msgid ""
10461 " char *\n"
10462 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10463 "                           const char *root);\n"
10464 "\n"
10465 msgstr ""
10466
10467 #. type: textblock
10468 #: ../src/guestfs-actions.pod:2522 ../src/guestfs-actions.pod:2545
10469 #: ../src/guestfs-actions.pod:2638 ../src/guestfs-actions.pod:2682
10470 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:2747
10471 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2796
10472 #: ../src/guestfs-actions.pod:2817 ../src/guestfs-actions.pod:2860
10473 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:2920
10474 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:2999
10475 #: ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3062
10476 #: ../src/guestfs-actions.pod:3085 ../src/guestfs-actions.pod:3102
10477 #: ../src/guestfs-actions.pod:3119 ../src/guestfs-actions.pod:3138
10478 msgid ""
10479 "This function should only be called with a root device string as returned by "
10480 "C<guestfs_inspect_os>."
10481 msgstr ""
10482
10483 #. type: textblock
10484 #: ../src/guestfs-actions.pod:2525
10485 msgid ""
10486 "This returns the architecture of the inspected operating system.  The "
10487 "possible return values are listed under C<guestfs_file_architecture>."
10488 msgstr ""
10489
10490 #. type: textblock
10491 #: ../src/guestfs-actions.pod:2529 ../fish/guestfish-actions.pod:1700
10492 msgid ""
10493 "If the architecture could not be determined, then the string C<unknown> is "
10494 "returned."
10495 msgstr ""
10496
10497 #. type: textblock
10498 #: ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2625
10499 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:2756
10500 #: ../src/guestfs-actions.pod:2784 ../src/guestfs-actions.pod:2876
10501 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2931
10502 #: ../src/guestfs-actions.pod:2985 ../src/guestfs-actions.pod:3028
10503 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3072
10504 #: ../src/guestfs-actions.pod:3092 ../src/guestfs-actions.pod:3109
10505 #: ../src/guestfs-actions.pod:3128 ../src/guestfs-actions.pod:3231
10506 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:1703
10507 #: ../fish/guestfish-actions.pod:1789 ../fish/guestfish-actions.pod:1877
10508 #: ../fish/guestfish-actions.pod:1892 ../fish/guestfish-actions.pod:1913
10509 #: ../fish/guestfish-actions.pod:1983 ../fish/guestfish-actions.pod:2007
10510 #: ../fish/guestfish-actions.pod:2024 ../fish/guestfish-actions.pod:2067
10511 #: ../fish/guestfish-actions.pod:2102 ../fish/guestfish-actions.pod:2118
10512 #: ../fish/guestfish-actions.pod:2134 ../fish/guestfish-actions.pod:2147
10513 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2175
10514 #: ../fish/guestfish-actions.pod:2274 ../fish/guestfish-actions.pod:2308
10515 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10516 msgstr ""
10517
10518 #. type: =head2
10519 #: ../src/guestfs-actions.pod:2539
10520 msgid "guestfs_inspect_get_distro"
10521 msgstr ""
10522
10523 #. type: verbatim
10524 #: ../src/guestfs-actions.pod:2541
10525 #, no-wrap
10526 msgid ""
10527 " char *\n"
10528 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10529 "                             const char *root);\n"
10530 "\n"
10531 msgstr ""
10532
10533 #. type: textblock
10534 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1712
10535 msgid ""
10536 "This returns the distro (distribution) of the inspected operating system."
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../src/guestfs-actions.pod:2551 ../fish/guestfish-actions.pod:1715
10541 msgid "Currently defined distros are:"
10542 msgstr ""
10543
10544 #. type: =item
10545 #: ../src/guestfs-actions.pod:2555 ../fish/guestfish-actions.pod:1719
10546 msgid "\"archlinux\""
10547 msgstr "\"archlinux\""
10548
10549 #. type: textblock
10550 #: ../src/guestfs-actions.pod:2557 ../fish/guestfish-actions.pod:1721
10551 msgid "Arch Linux."
10552 msgstr "Arch Linux."
10553
10554 #. type: =item
10555 #: ../src/guestfs-actions.pod:2559 ../fish/guestfish-actions.pod:1723
10556 #, fuzzy
10557 #| msgid "\"gentoo\""
10558 msgid "\"centos\""
10559 msgstr "\"gentoo\""
10560
10561 #. type: textblock
10562 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1725
10563 msgid "CentOS."
10564 msgstr ""
10565
10566 #. type: =item
10567 #: ../src/guestfs-actions.pod:2563 ../fish/guestfish-actions.pod:1727
10568 msgid "\"debian\""
10569 msgstr "\"debian\""
10570
10571 #. type: textblock
10572 #: ../src/guestfs-actions.pod:2565 ../fish/guestfish-actions.pod:1729
10573 msgid "Debian."
10574 msgstr "Debian."
10575
10576 #. type: =item
10577 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1731
10578 msgid "\"fedora\""
10579 msgstr "\"fedora\""
10580
10581 #. type: textblock
10582 #: ../src/guestfs-actions.pod:2569 ../fish/guestfish-actions.pod:1733
10583 msgid "Fedora."
10584 msgstr "Fedora."
10585
10586 #. type: =item
10587 #: ../src/guestfs-actions.pod:2571 ../fish/guestfish-actions.pod:1735
10588 msgid "\"gentoo\""
10589 msgstr "\"gentoo\""
10590
10591 #. type: textblock
10592 #: ../src/guestfs-actions.pod:2573 ../fish/guestfish-actions.pod:1737
10593 msgid "Gentoo."
10594 msgstr "Gentoo."
10595
10596 #. type: =item
10597 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1739
10598 msgid "\"linuxmint\""
10599 msgstr "\"linuxmint\""
10600
10601 #. type: textblock
10602 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1741
10603 msgid "Linux Mint."
10604 msgstr "Linux Mint."
10605
10606 #. type: =item
10607 #: ../src/guestfs-actions.pod:2579 ../fish/guestfish-actions.pod:1743
10608 msgid "\"mandriva\""
10609 msgstr "\"mandriva\""
10610
10611 #. type: textblock
10612 #: ../src/guestfs-actions.pod:2581 ../fish/guestfish-actions.pod:1745
10613 msgid "Mandriva."
10614 msgstr "Mandriva."
10615
10616 #. type: =item
10617 #: ../src/guestfs-actions.pod:2583 ../fish/guestfish-actions.pod:1747
10618 msgid "\"meego\""
10619 msgstr "\"meego\""
10620
10621 #. type: textblock
10622 #: ../src/guestfs-actions.pod:2585 ../fish/guestfish-actions.pod:1749
10623 msgid "MeeGo."
10624 msgstr "MeeGo."
10625
10626 #. type: =item
10627 #: ../src/guestfs-actions.pod:2587 ../fish/guestfish-actions.pod:1751
10628 msgid "\"pardus\""
10629 msgstr "\"pardus\""
10630
10631 #. type: textblock
10632 #: ../src/guestfs-actions.pod:2589 ../fish/guestfish-actions.pod:1753
10633 msgid "Pardus."
10634 msgstr "Pardus."
10635
10636 #. type: =item
10637 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1755
10638 msgid "\"redhat-based\""
10639 msgstr "\"redhat-based\""
10640
10641 #. type: textblock
10642 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1757
10643 msgid "Some Red Hat-derived distro."
10644 msgstr "Дистрибутив, що походить від Red Hat."
10645
10646 #. type: =item
10647 #: ../src/guestfs-actions.pod:2595 ../fish/guestfish-actions.pod:1759
10648 msgid "\"rhel\""
10649 msgstr "\"rhel\""
10650
10651 #. type: textblock
10652 #: ../src/guestfs-actions.pod:2597 ../fish/guestfish-actions.pod:1761
10653 #, fuzzy
10654 #| msgid "Red Hat Enterprise Linux and some derivatives."
10655 msgid "Red Hat Enterprise Linux."
10656 msgstr "Red Hat Enterprise Linux та деякі з похідних дистрибутивів."
10657
10658 #. type: =item
10659 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1763
10660 msgid "\"scientificlinux\""
10661 msgstr ""
10662
10663 #. type: textblock
10664 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1765
10665 msgid "Scientific Linux."
10666 msgstr ""
10667
10668 #. type: =item
10669 #: ../src/guestfs-actions.pod:2603 ../fish/guestfish-actions.pod:1767
10670 msgid "\"slackware\""
10671 msgstr ""
10672
10673 #. type: textblock
10674 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1769
10675 msgid "Slackware."
10676 msgstr ""
10677
10678 #. type: =item
10679 #: ../src/guestfs-actions.pod:2607 ../fish/guestfish-actions.pod:1771
10680 msgid "\"ubuntu\""
10681 msgstr "\"ubuntu\""
10682
10683 #. type: textblock
10684 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1773
10685 msgid "Ubuntu."
10686 msgstr "Ubuntu."
10687
10688 #. type: =item
10689 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2727
10690 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:1775
10691 #: ../fish/guestfish-actions.pod:1868 ../fish/guestfish-actions.pod:2093
10692 msgid "\"unknown\""
10693 msgstr "\"unknown\""
10694
10695 #. type: textblock
10696 #: ../src/guestfs-actions.pod:2613 ../fish/guestfish-actions.pod:1777
10697 msgid "The distro could not be determined."
10698 msgstr "Дистрибутив, тип якого не вдалося визначити."
10699
10700 #. type: =item
10701 #: ../src/guestfs-actions.pod:2615 ../src/guestfs-actions.pod:3011
10702 #: ../fish/guestfish-actions.pod:1779 ../fish/guestfish-actions.pod:2085
10703 msgid "\"windows\""
10704 msgstr "\"windows\""
10705
10706 #. type: textblock
10707 #: ../src/guestfs-actions.pod:2617 ../fish/guestfish-actions.pod:1781
10708 msgid ""
10709 "Windows does not have distributions.  This string is returned if the OS type "
10710 "is Windows."
10711 msgstr ""
10712
10713 #. type: textblock
10714 #: ../src/guestfs-actions.pod:2622 ../src/guestfs-actions.pod:2733
10715 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:1786
10716 #: ../fish/guestfish-actions.pod:1874 ../fish/guestfish-actions.pod:2099
10717 msgid ""
10718 "Future versions of libguestfs may return other strings here.  The caller "
10719 "should be prepared to handle any string."
10720 msgstr ""
10721
10722 #. type: =head2
10723 #: ../src/guestfs-actions.pod:2632
10724 msgid "guestfs_inspect_get_drive_mappings"
10725 msgstr ""
10726
10727 #. type: verbatim
10728 #: ../src/guestfs-actions.pod:2634
10729 #, no-wrap
10730 msgid ""
10731 " char **\n"
10732 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
10733 "                                     const char *root);\n"
10734 "\n"
10735 msgstr ""
10736
10737 #. type: textblock
10738 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1798
10739 msgid ""
10740 "This call is useful for Windows which uses a primitive system of assigning "
10741 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10742 "Windows Registry to find out how disks/partitions are mapped to drive "
10743 "letters, and returns a hash table as in the example below:"
10744 msgstr ""
10745
10746 #. type: verbatim
10747 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1804
10748 #, no-wrap
10749 msgid ""
10750 " C      =>     /dev/vda2\n"
10751 " E      =>     /dev/vdb1\n"
10752 " F      =>     /dev/vdc1\n"
10753 "\n"
10754 msgstr ""
10755
10756 #. type: textblock
10757 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1808
10758 msgid ""
10759 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10760 "and just contains the drive letter, without the customary colon separator "
10761 "character."
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../src/guestfs-actions.pod:2655 ../fish/guestfish-actions.pod:1812
10766 msgid ""
10767 "In future we may support other operating systems that also used drive "
10768 "letters, but the keys for those might not be case insensitive and might be "
10769 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10770 "C<h1> etc."
10771 msgstr ""
10772
10773 #. type: textblock
10774 #: ../src/guestfs-actions.pod:2660 ../fish/guestfish-actions.pod:1817
10775 msgid ""
10776 "For Windows guests, currently only hard drive mappings are returned.  "
10777 "Removable disks (eg. DVD-ROMs) are ignored."
10778 msgstr ""
10779
10780 #. type: textblock
10781 #: ../src/guestfs-actions.pod:2663 ../fish/guestfish-actions.pod:1820
10782 msgid ""
10783 "For guests that do not use drive mappings, or if the drive mappings could "
10784 "not be determined, this returns an empty hash table."
10785 msgstr ""
10786
10787 #. type: textblock
10788 #: ../src/guestfs-actions.pod:2666
10789 msgid ""
10790 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10791 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
10792 msgstr ""
10793
10794 #. type: textblock
10795 #: ../src/guestfs-actions.pod:2670 ../src/guestfs-actions.pod:2846
10796 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:4816
10797 #: ../src/guestfs-actions.pod:6721
10798 msgid ""
10799 "This function returns a NULL-terminated array of strings, or NULL if there "
10800 "was an error.  The array of strings will always have length C<2n+1>, where "
10801 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
10802 "caller must free the strings and the array after use>."
10803 msgstr ""
10804
10805 #. type: =head2
10806 #: ../src/guestfs-actions.pod:2676
10807 msgid "guestfs_inspect_get_filesystems"
10808 msgstr ""
10809
10810 #. type: verbatim
10811 #: ../src/guestfs-actions.pod:2678
10812 #, no-wrap
10813 msgid ""
10814 " char **\n"
10815 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
10816 "                                  const char *root);\n"
10817 "\n"
10818 msgstr ""
10819
10820 #. type: textblock
10821 #: ../src/guestfs-actions.pod:2685 ../fish/guestfish-actions.pod:1834
10822 msgid ""
10823 "This returns a list of all the filesystems that we think are associated with "
10824 "this operating system.  This includes the root filesystem, other ordinary "
10825 "filesystems, and non-mounted devices like swap partitions."
10826 msgstr ""
10827
10828 #. type: textblock
10829 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:1839
10830 msgid ""
10831 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10832 "to be shared between operating systems."
10833 msgstr ""
10834
10835 #. type: textblock
10836 #: ../src/guestfs-actions.pod:2693
10837 msgid ""
10838 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10839 "C<guestfs_inspect_get_mountpoints>."
10840 msgstr ""
10841
10842 #. type: =head2
10843 #: ../src/guestfs-actions.pod:2702
10844 msgid "guestfs_inspect_get_format"
10845 msgstr ""
10846
10847 #. type: verbatim
10848 #: ../src/guestfs-actions.pod:2704
10849 #, no-wrap
10850 msgid ""
10851 " char *\n"
10852 " guestfs_inspect_get_format (guestfs_h *g,\n"
10853 "                             const char *root);\n"
10854 "\n"
10855 msgstr ""
10856
10857 #. type: textblock
10858 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
10859 msgid ""
10860 "This returns the format of the inspected operating system.  You can use it "
10861 "to detect install images, live CDs and similar."
10862 msgstr ""
10863
10864 #. type: textblock
10865 #: ../src/guestfs-actions.pod:2714 ../fish/guestfish-actions.pod:1855
10866 msgid "Currently defined formats are:"
10867 msgstr ""
10868
10869 #. type: =item
10870 #: ../src/guestfs-actions.pod:2718 ../fish/guestfish-actions.pod:1859
10871 msgid "\"installed\""
10872 msgstr "\"installed\""
10873
10874 #. type: textblock
10875 #: ../src/guestfs-actions.pod:2720 ../fish/guestfish-actions.pod:1861
10876 msgid "This is an installed operating system."
10877 msgstr "Це встановлена операційна система."
10878
10879 #. type: =item
10880 #: ../src/guestfs-actions.pod:2722 ../fish/guestfish-actions.pod:1863
10881 msgid "\"installer\""
10882 msgstr ""
10883
10884 #. type: textblock
10885 #: ../src/guestfs-actions.pod:2724 ../fish/guestfish-actions.pod:1865
10886 msgid ""
10887 "The disk image being inspected is not an installed operating system, but a "
10888 "I<bootable> install disk, live CD, or similar."
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:1870
10893 msgid "The format of this disk image is not known."
10894 msgstr ""
10895
10896 #. type: =head2
10897 #: ../src/guestfs-actions.pod:2741
10898 msgid "guestfs_inspect_get_hostname"
10899 msgstr ""
10900
10901 #. type: verbatim
10902 #: ../src/guestfs-actions.pod:2743
10903 #, no-wrap
10904 msgid ""
10905 " char *\n"
10906 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
10907 "                               const char *root);\n"
10908 "\n"
10909 msgstr ""
10910
10911 #. type: textblock
10912 #: ../src/guestfs-actions.pod:2750 ../fish/guestfish-actions.pod:1886
10913 msgid ""
10914 "This function returns the hostname of the operating system as found by "
10915 "inspection of the guest's configuration files."
10916 msgstr ""
10917
10918 #. type: textblock
10919 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1889
10920 msgid ""
10921 "If the hostname could not be determined, then the string C<unknown> is "
10922 "returned."
10923 msgstr ""
10924
10925 #. type: textblock
10926 #: ../src/guestfs-actions.pod:2761
10927 msgid "(Added in 1.7.9)"
10928 msgstr ""
10929
10930 #. type: =head2
10931 #: ../src/guestfs-actions.pod:2763
10932 msgid "guestfs_inspect_get_major_version"
10933 msgstr ""
10934
10935 #. type: verbatim
10936 #: ../src/guestfs-actions.pod:2765
10937 #, no-wrap
10938 msgid ""
10939 " int\n"
10940 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
10941 "                                    const char *root);\n"
10942 "\n"
10943 msgstr ""
10944
10945 #. type: textblock
10946 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1901
10947 msgid ""
10948 "This returns the major version number of the inspected operating system."
10949 msgstr ""
10950
10951 #. type: textblock
10952 #: ../src/guestfs-actions.pod:2775 ../fish/guestfish-actions.pod:1904
10953 msgid ""
10954 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10955 "popular public names used by the operating system.  Notably the operating "
10956 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10957 "1).  You can find out the real versions corresponding to releases of Windows "
10958 "by consulting Wikipedia or MSDN."
10959 msgstr ""
10960
10961 #. type: textblock
10962 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2802
10963 #: ../fish/guestfish-actions.pod:1911 ../fish/guestfish-actions.pod:1925
10964 msgid "If the version could not be determined, then C<0> is returned."
10965 msgstr ""
10966
10967 #. type: =head2
10968 #: ../src/guestfs-actions.pod:2790
10969 msgid "guestfs_inspect_get_minor_version"
10970 msgstr ""
10971
10972 #. type: verbatim
10973 #: ../src/guestfs-actions.pod:2792
10974 #, no-wrap
10975 msgid ""
10976 " int\n"
10977 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
10978 "                                    const char *root);\n"
10979 "\n"
10980 msgstr ""
10981
10982 #. type: textblock
10983 #: ../src/guestfs-actions.pod:2799 ../fish/guestfish-actions.pod:1922
10984 msgid ""
10985 "This returns the minor version number of the inspected operating system."
10986 msgstr ""
10987
10988 #. type: textblock
10989 #: ../src/guestfs-actions.pod:2804
10990 msgid ""
10991 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10992 "C<guestfs_inspect_get_major_version>."
10993 msgstr ""
10994
10995 #. type: =head2
10996 #: ../src/guestfs-actions.pod:2811
10997 msgid "guestfs_inspect_get_mountpoints"
10998 msgstr ""
10999
11000 #. type: verbatim
11001 #: ../src/guestfs-actions.pod:2813
11002 #, no-wrap
11003 msgid ""
11004 " char **\n"
11005 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11006 "                                  const char *root);\n"
11007 "\n"
11008 msgstr ""
11009
11010 #. type: textblock
11011 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1937
11012 msgid ""
11013 "This returns a hash of where we think the filesystems associated with this "
11014 "operating system should be mounted.  Callers should note that this is at "
11015 "best an educated guess made by reading configuration files such as C</etc/"
11016 "fstab>.  I<In particular note> that this may return filesystems which are "
11017 "non-existent or not mountable and callers should be prepared to handle or "
11018 "ignore failures if they try to mount them."
11019 msgstr ""
11020
11021 #. type: textblock
11022 #: ../src/guestfs-actions.pod:2829 ../fish/guestfish-actions.pod:1946
11023 msgid ""
11024 "Each element in the returned hashtable has a key which is the path of the "
11025 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11026 "mounted there (eg. C</dev/sda1>)."
11027 msgstr ""
11028
11029 #. type: textblock
11030 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:1951
11031 msgid ""
11032 "Non-mounted devices such as swap devices are I<not> returned in this list."
11033 msgstr ""
11034
11035 #. type: textblock
11036 #: ../src/guestfs-actions.pod:2837
11037 msgid ""
11038 "For operating systems like Windows which still use drive letters, this call "
11039 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11040 "information about the mapping of drive letters to partitions, see "
11041 "C<guestfs_inspect_get_drive_mappings>."
11042 msgstr ""
11043
11044 #. type: textblock
11045 #: ../src/guestfs-actions.pod:2843
11046 msgid ""
11047 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11048 "C<guestfs_inspect_get_filesystems>."
11049 msgstr ""
11050
11051 #. type: =head2
11052 #: ../src/guestfs-actions.pod:2854
11053 msgid "guestfs_inspect_get_package_format"
11054 msgstr ""
11055
11056 #. type: verbatim
11057 #: ../src/guestfs-actions.pod:2856
11058 #, no-wrap
11059 msgid ""
11060 " char *\n"
11061 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11062 "                                     const char *root);\n"
11063 "\n"
11064 msgstr ""
11065
11066 #. type: textblock
11067 #: ../src/guestfs-actions.pod:2863
11068 msgid ""
11069 "This function and C<guestfs_inspect_get_package_management> return the "
11070 "package format and package management tool used by the inspected operating "
11071 "system.  For example for Fedora these functions would return C<rpm> (package "
11072 "format) and C<yum> (package management)."
11073 msgstr ""
11074
11075 #. type: textblock
11076 #: ../src/guestfs-actions.pod:2869 ../fish/guestfish-actions.pod:1976
11077 msgid ""
11078 "This returns the string C<unknown> if we could not determine the package "
11079 "format I<or> if the operating system does not have a real packaging system "
11080 "(eg. Windows)."
11081 msgstr ""
11082
11083 #. type: textblock
11084 #: ../src/guestfs-actions.pod:2873 ../fish/guestfish-actions.pod:1980
11085 msgid ""
11086 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11087 "Future versions of libguestfs may return other strings."
11088 msgstr ""
11089
11090 #. type: textblock
11091 #: ../src/guestfs-actions.pod:2881 ../src/guestfs-actions.pod:2912
11092 msgid "(Added in 1.7.5)"
11093 msgstr ""
11094
11095 #. type: =head2
11096 #: ../src/guestfs-actions.pod:2883
11097 msgid "guestfs_inspect_get_package_management"
11098 msgstr ""
11099
11100 #. type: verbatim
11101 #: ../src/guestfs-actions.pod:2885
11102 #, no-wrap
11103 msgid ""
11104 " char *\n"
11105 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11106 "                                         const char *root);\n"
11107 "\n"
11108 msgstr ""
11109
11110 #. type: textblock
11111 #: ../src/guestfs-actions.pod:2892
11112 msgid ""
11113 "C<guestfs_inspect_get_package_format> and this function return the package "
11114 "format and package management tool used by the inspected operating system.  "
11115 "For example for Fedora these functions would return C<rpm> (package format) "
11116 "and C<yum> (package management)."
11117 msgstr ""
11118
11119 #. type: textblock
11120 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:1998
11121 msgid ""
11122 "This returns the string C<unknown> if we could not determine the package "
11123 "management tool I<or> if the operating system does not have a real packaging "
11124 "system (eg. Windows)."
11125 msgstr ""
11126
11127 #. type: textblock
11128 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2002
11129 msgid ""
11130 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11131 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11132 "libguestfs may return other strings."
11133 msgstr ""
11134
11135 #. type: =head2
11136 #: ../src/guestfs-actions.pod:2914
11137 msgid "guestfs_inspect_get_product_name"
11138 msgstr ""
11139
11140 #. type: verbatim
11141 #: ../src/guestfs-actions.pod:2916
11142 #, no-wrap
11143 msgid ""
11144 " char *\n"
11145 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11146 "                                   const char *root);\n"
11147 "\n"
11148 msgstr ""
11149
11150 #. type: textblock
11151 #: ../src/guestfs-actions.pod:2923 ../fish/guestfish-actions.pod:2016
11152 msgid ""
11153 "This returns the product name of the inspected operating system.  The "
11154 "product name is generally some freeform string which can be displayed to the "
11155 "user, but should not be parsed by programs."
11156 msgstr ""
11157
11158 #. type: textblock
11159 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2021
11160 msgid ""
11161 "If the product name could not be determined, then the string C<unknown> is "
11162 "returned."
11163 msgstr ""
11164
11165 #. type: =head2
11166 #: ../src/guestfs-actions.pod:2938
11167 msgid "guestfs_inspect_get_product_variant"
11168 msgstr ""
11169
11170 #. type: verbatim
11171 #: ../src/guestfs-actions.pod:2940
11172 #, no-wrap
11173 msgid ""
11174 " char *\n"
11175 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
11176 "                                      const char *root);\n"
11177 "\n"
11178 msgstr ""
11179
11180 #. type: textblock
11181 #: ../src/guestfs-actions.pod:2947 ../fish/guestfish-actions.pod:2033
11182 #, fuzzy
11183 #| msgid "This is an installed operating system."
11184 msgid "This returns the product variant of the inspected operating system."
11185 msgstr "Це встановлена операційна система."
11186
11187 #. type: textblock
11188 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:2036
11189 msgid ""
11190 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11191 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11192 "is usually a string such as C<Client> or C<Server> (other values are "
11193 "possible).  This can be used to distinguish consumer and enterprise versions "
11194 "of Windows that have the same version number (for example, Windows 7 and "
11195 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11196 "the latter is C<Server>)."
11197 msgstr ""
11198
11199 #. type: textblock
11200 #: ../src/guestfs-actions.pod:2959 ../fish/guestfish-actions.pod:2045
11201 msgid ""
11202 "For enterprise Linux guests, in future we intend this to return the product "
11203 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11204 "implemented at present."
11205 msgstr ""
11206
11207 #. type: textblock
11208 #: ../src/guestfs-actions.pod:2963 ../fish/guestfish-actions.pod:2049
11209 msgid ""
11210 "If the product variant could not be determined, then the string C<unknown> "
11211 "is returned."
11212 msgstr ""
11213
11214 #. type: textblock
11215 #: ../src/guestfs-actions.pod:2966
11216 msgid ""
11217 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11218 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
11219 msgstr ""
11220
11221 #. type: =head2
11222 #: ../src/guestfs-actions.pod:2973
11223 msgid "guestfs_inspect_get_roots"
11224 msgstr ""
11225
11226 #. type: verbatim
11227 #: ../src/guestfs-actions.pod:2975
11228 #, no-wrap
11229 msgid ""
11230 " char **\n"
11231 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11232 "\n"
11233 msgstr ""
11234
11235 #. type: textblock
11236 #: ../src/guestfs-actions.pod:2978
11237 msgid ""
11238 "This function is a convenient way to get the list of root devices, as "
11239 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
11240 "the whole inspection process."
11241 msgstr ""
11242
11243 #. type: textblock
11244 #: ../src/guestfs-actions.pod:2982
11245 msgid ""
11246 "This returns an empty list if either no root devices were found or the "
11247 "caller has not called C<guestfs_inspect_os>."
11248 msgstr ""
11249
11250 #. type: textblock
11251 #: ../src/guestfs-actions.pod:2991
11252 msgid "(Added in 1.7.3)"
11253 msgstr ""
11254
11255 #. type: =head2
11256 #: ../src/guestfs-actions.pod:2993
11257 msgid "guestfs_inspect_get_type"
11258 msgstr ""
11259
11260 #. type: verbatim
11261 #: ../src/guestfs-actions.pod:2995
11262 #, no-wrap
11263 msgid ""
11264 " char *\n"
11265 " guestfs_inspect_get_type (guestfs_h *g,\n"
11266 "                           const char *root);\n"
11267 "\n"
11268 msgstr ""
11269
11270 #. type: textblock
11271 #: ../src/guestfs-actions.pod:3002 ../fish/guestfish-actions.pod:2076
11272 msgid ""
11273 "This returns the type of the inspected operating system.  Currently defined "
11274 "types are:"
11275 msgstr ""
11276
11277 #. type: =item
11278 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2081
11279 msgid "\"linux\""
11280 msgstr "\"linux\""
11281
11282 #. type: textblock
11283 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2083
11284 msgid "Any Linux-based operating system."
11285 msgstr ""
11286
11287 #. type: textblock
11288 #: ../src/guestfs-actions.pod:3013 ../fish/guestfish-actions.pod:2087
11289 msgid "Any Microsoft Windows operating system."
11290 msgstr ""
11291
11292 #. type: =item
11293 #: ../src/guestfs-actions.pod:3015 ../fish/guestfish-actions.pod:2089
11294 msgid "\"freebsd\""
11295 msgstr "\"freebsd\""
11296
11297 #. type: textblock
11298 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2091
11299 msgid "FreeBSD."
11300 msgstr "FreeBSD."
11301
11302 #. type: textblock
11303 #: ../src/guestfs-actions.pod:3021 ../fish/guestfish-actions.pod:2095
11304 msgid "The operating system type could not be determined."
11305 msgstr ""
11306
11307 #. type: =head2
11308 #: ../src/guestfs-actions.pod:3035
11309 msgid "guestfs_inspect_get_windows_current_control_set"
11310 msgstr ""
11311
11312 #. type: verbatim
11313 #: ../src/guestfs-actions.pod:3037
11314 #, no-wrap
11315 msgid ""
11316 " char *\n"
11317 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
11318 "                                                  const char *root);\n"
11319 "\n"
11320 msgstr ""
11321
11322 #. type: textblock
11323 #: ../src/guestfs-actions.pod:3044 ../fish/guestfish-actions.pod:2111
11324 msgid ""
11325 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11326 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11327 msgstr ""
11328
11329 #. type: textblock
11330 #: ../src/guestfs-actions.pod:3047 ../fish/guestfish-actions.pod:2114
11331 msgid ""
11332 "This call assumes that the guest is Windows and that the Registry could be "
11333 "examined by inspection.  If this is not the case then an error is returned."
11334 msgstr ""
11335
11336 #. type: =head2
11337 #: ../src/guestfs-actions.pod:3056
11338 msgid "guestfs_inspect_get_windows_systemroot"
11339 msgstr ""
11340
11341 #. type: verbatim
11342 #: ../src/guestfs-actions.pod:3058
11343 #, no-wrap
11344 msgid ""
11345 " char *\n"
11346 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11347 "                                         const char *root);\n"
11348 "\n"
11349 msgstr ""
11350
11351 #. type: textblock
11352 #: ../src/guestfs-actions.pod:3065 ../fish/guestfish-actions.pod:2127
11353 msgid ""
11354 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11355 "is a directory path such as C</WINDOWS>."
11356 msgstr ""
11357
11358 #. type: textblock
11359 #: ../src/guestfs-actions.pod:3068 ../fish/guestfish-actions.pod:2130
11360 msgid ""
11361 "This call assumes that the guest is Windows and that the systemroot could be "
11362 "determined by inspection.  If this is not the case then an error is returned."
11363 msgstr ""
11364
11365 #. type: textblock
11366 #: ../src/guestfs-actions.pod:3077
11367 msgid "(Added in 1.5.25)"
11368 msgstr ""
11369
11370 #. type: =head2
11371 #: ../src/guestfs-actions.pod:3079
11372 msgid "guestfs_inspect_is_live"
11373 msgstr ""
11374
11375 #. type: verbatim
11376 #: ../src/guestfs-actions.pod:3081
11377 #, no-wrap
11378 msgid ""
11379 " int\n"
11380 " guestfs_inspect_is_live (guestfs_h *g,\n"
11381 "                          const char *root);\n"
11382 "\n"
11383 msgstr ""
11384
11385 #. type: textblock
11386 #: ../src/guestfs-actions.pod:3088
11387 msgid ""
11388 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11389 "disk), then this returns true if a live image was detected on the disk."
11390 msgstr ""
11391
11392 #. type: =head2
11393 #: ../src/guestfs-actions.pod:3096
11394 msgid "guestfs_inspect_is_multipart"
11395 msgstr ""
11396
11397 #. type: verbatim
11398 #: ../src/guestfs-actions.pod:3098
11399 #, no-wrap
11400 msgid ""
11401 " int\n"
11402 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
11403 "                               const char *root);\n"
11404 "\n"
11405 msgstr ""
11406
11407 #. type: textblock
11408 #: ../src/guestfs-actions.pod:3105
11409 msgid ""
11410 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11411 "disk), then this returns true if the disk is part of a set."
11412 msgstr ""
11413
11414 #. type: =head2
11415 #: ../src/guestfs-actions.pod:3113
11416 msgid "guestfs_inspect_is_netinst"
11417 msgstr ""
11418
11419 #. type: verbatim
11420 #: ../src/guestfs-actions.pod:3115
11421 #, no-wrap
11422 msgid ""
11423 " int\n"
11424 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
11425 "                             const char *root);\n"
11426 "\n"
11427 msgstr ""
11428
11429 #. type: textblock
11430 #: ../src/guestfs-actions.pod:3122
11431 msgid ""
11432 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11433 "disk), then this returns true if the disk is a network installer, ie. not a "
11434 "self-contained install CD but one which is likely to require network access "
11435 "to complete the install."
11436 msgstr ""
11437
11438 #. type: =head2
11439 #: ../src/guestfs-actions.pod:3132
11440 msgid "guestfs_inspect_list_applications"
11441 msgstr ""
11442
11443 #. type: verbatim
11444 #: ../src/guestfs-actions.pod:3134
11445 #, no-wrap
11446 msgid ""
11447 " struct guestfs_application_list *\n"
11448 " guestfs_inspect_list_applications (guestfs_h *g,\n"
11449 "                                    const char *root);\n"
11450 "\n"
11451 msgstr ""
11452
11453 #. type: textblock
11454 #: ../src/guestfs-actions.pod:3141 ../fish/guestfish-actions.pod:2184
11455 msgid "Return the list of applications installed in the operating system."
11456 msgstr ""
11457
11458 #. type: textblock
11459 #: ../src/guestfs-actions.pod:3143
11460 msgid ""
11461 "I<Note:> This call works differently from other parts of the inspection "
11462 "API.  You have to call C<guestfs_inspect_os>, then "
11463 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
11464 "this.  Listing applications is a significantly more difficult operation "
11465 "which requires access to the full filesystem.  Also note that unlike the "
11466 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
11467 "the libguestfs handle, this call actually reads parts of the mounted "
11468 "filesystems during the call."
11469 msgstr ""
11470
11471 #. type: textblock
11472 #: ../src/guestfs-actions.pod:3153 ../fish/guestfish-actions.pod:2196
11473 msgid ""
11474 "This returns an empty list if the inspection code was not able to determine "
11475 "the list of applications."
11476 msgstr ""
11477
11478 #. type: textblock
11479 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2199
11480 msgid "The application structure contains the following fields:"
11481 msgstr ""
11482
11483 #. type: =item
11484 #: ../src/guestfs-actions.pod:3160 ../fish/guestfish-actions.pod:2203
11485 msgid "C<app_name>"
11486 msgstr "C<app_name>"
11487
11488 #. type: textblock
11489 #: ../src/guestfs-actions.pod:3162 ../fish/guestfish-actions.pod:2205
11490 msgid ""
11491 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11492 "guests, this is the package name."
11493 msgstr ""
11494
11495 #. type: =item
11496 #: ../src/guestfs-actions.pod:3165 ../fish/guestfish-actions.pod:2208
11497 msgid "C<app_display_name>"
11498 msgstr "C<app_display_name>"
11499
11500 #. type: textblock
11501 #: ../src/guestfs-actions.pod:3167 ../fish/guestfish-actions.pod:2210
11502 msgid ""
11503 "The display name of the application, sometimes localized to the install "
11504 "language of the guest operating system."
11505 msgstr ""
11506
11507 #. type: textblock
11508 #: ../src/guestfs-actions.pod:3170 ../fish/guestfish-actions.pod:2213
11509 msgid ""
11510 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11511 "to display something can use C<app_name> instead."
11512 msgstr ""
11513
11514 #. type: =item
11515 #: ../src/guestfs-actions.pod:3173 ../fish/guestfish-actions.pod:2216
11516 msgid "C<app_epoch>"
11517 msgstr "C<app_epoch>"
11518
11519 #. type: textblock
11520 #: ../src/guestfs-actions.pod:3175 ../fish/guestfish-actions.pod:2218
11521 msgid ""
11522 "For package managers which use epochs, this contains the epoch of the "
11523 "package (an integer).  If unavailable, this is returned as C<0>."
11524 msgstr ""
11525
11526 #. type: =item
11527 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2221
11528 msgid "C<app_version>"
11529 msgstr "C<app_version>"
11530
11531 #. type: textblock
11532 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2223
11533 msgid ""
11534 "The version string of the application or package.  If unavailable this is "
11535 "returned as an empty string C<\"\">."
11536 msgstr ""
11537
11538 #. type: =item
11539 #: ../src/guestfs-actions.pod:3183 ../fish/guestfish-actions.pod:2226
11540 msgid "C<app_release>"
11541 msgstr "C<app_release>"
11542
11543 #. type: textblock
11544 #: ../src/guestfs-actions.pod:3185 ../fish/guestfish-actions.pod:2228
11545 msgid ""
11546 "The release string of the application or package, for package managers that "
11547 "use this.  If unavailable this is returned as an empty string C<\"\">."
11548 msgstr ""
11549
11550 #. type: =item
11551 #: ../src/guestfs-actions.pod:3189 ../fish/guestfish-actions.pod:2232
11552 msgid "C<app_install_path>"
11553 msgstr "C<app_install_path>"
11554
11555 #. type: textblock
11556 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2234
11557 msgid ""
11558 "The installation path of the application (on operating systems such as "
11559 "Windows which use installation paths).  This path is in the format used by "
11560 "the guest operating system, it is not a libguestfs path."
11561 msgstr ""
11562
11563 #. type: textblock
11564 #: ../src/guestfs-actions.pod:3196 ../fish/guestfish-actions.pod:2239
11565 msgid "If unavailable this is returned as an empty string C<\"\">."
11566 msgstr ""
11567
11568 #. type: =item
11569 #: ../src/guestfs-actions.pod:3198 ../fish/guestfish-actions.pod:2241
11570 msgid "C<app_trans_path>"
11571 msgstr "C<app_trans_path>"
11572
11573 #. type: textblock
11574 #: ../src/guestfs-actions.pod:3200 ../fish/guestfish-actions.pod:2243
11575 msgid ""
11576 "The install path translated into a libguestfs path.  If unavailable this is "
11577 "returned as an empty string C<\"\">."
11578 msgstr ""
11579
11580 #. type: =item
11581 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2246
11582 msgid "C<app_publisher>"
11583 msgstr "C<app_publisher>"
11584
11585 #. type: textblock
11586 #: ../src/guestfs-actions.pod:3205 ../fish/guestfish-actions.pod:2248
11587 msgid ""
11588 "The name of the publisher of the application, for package managers that use "
11589 "this.  If unavailable this is returned as an empty string C<\"\">."
11590 msgstr ""
11591
11592 #. type: =item
11593 #: ../src/guestfs-actions.pod:3209 ../fish/guestfish-actions.pod:2252
11594 msgid "C<app_url>"
11595 msgstr "C<app_url>"
11596
11597 #. type: textblock
11598 #: ../src/guestfs-actions.pod:3211 ../fish/guestfish-actions.pod:2254
11599 msgid ""
11600 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11601 "returned as an empty string C<\"\">."
11602 msgstr ""
11603
11604 #. type: =item
11605 #: ../src/guestfs-actions.pod:3214 ../fish/guestfish-actions.pod:2257
11606 msgid "C<app_source_package>"
11607 msgstr ""
11608
11609 #. type: textblock
11610 #: ../src/guestfs-actions.pod:3216 ../fish/guestfish-actions.pod:2259
11611 msgid ""
11612 "For packaging systems which support this, the name of the source package.  "
11613 "If unavailable this is returned as an empty string C<\"\">."
11614 msgstr ""
11615
11616 #. type: =item
11617 #: ../src/guestfs-actions.pod:3219 ../fish/guestfish-actions.pod:2262
11618 msgid "C<app_summary>"
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../src/guestfs-actions.pod:3221 ../fish/guestfish-actions.pod:2264
11623 msgid ""
11624 "A short (usually one line) description of the application or package.  If "
11625 "unavailable this is returned as an empty string C<\"\">."
11626 msgstr ""
11627
11628 #. type: =item
11629 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2267
11630 msgid "C<app_description>"
11631 msgstr ""
11632
11633 #. type: textblock
11634 #: ../src/guestfs-actions.pod:3226 ../fish/guestfish-actions.pod:2269
11635 msgid ""
11636 "A longer description of the application or package.  If unavailable this is "
11637 "returned as an empty string C<\"\">."
11638 msgstr ""
11639
11640 #. type: textblock
11641 #: ../src/guestfs-actions.pod:3233
11642 msgid ""
11643 "This function returns a C<struct guestfs_application_list *>, or NULL if "
11644 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
11645 "after use>."
11646 msgstr ""
11647
11648 #. type: textblock
11649 #: ../src/guestfs-actions.pod:3237
11650 msgid "(Added in 1.7.8)"
11651 msgstr ""
11652
11653 #. type: =head2
11654 #: ../src/guestfs-actions.pod:3239
11655 msgid "guestfs_inspect_os"
11656 msgstr ""
11657
11658 #. type: verbatim
11659 #: ../src/guestfs-actions.pod:3241
11660 #, no-wrap
11661 msgid ""
11662 " char **\n"
11663 " guestfs_inspect_os (guestfs_h *g);\n"
11664 "\n"
11665 msgstr ""
11666
11667 #. type: textblock
11668 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2280
11669 msgid ""
11670 "This function uses other libguestfs functions and certain heuristics to "
11671 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11672 "for operating systems."
11673 msgstr ""
11674
11675 #. type: textblock
11676 #: ../src/guestfs-actions.pod:3248 ../fish/guestfish-actions.pod:2284
11677 msgid "The list returned is empty if no operating systems were found."
11678 msgstr ""
11679
11680 #. type: textblock
11681 #: ../src/guestfs-actions.pod:3250 ../fish/guestfish-actions.pod:2286
11682 msgid ""
11683 "If one operating system was found, then this returns a list with a single "
11684 "element, which is the name of the root filesystem of this operating system.  "
11685 "It is also possible for this function to return a list containing more than "
11686 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11687 "element being the root filesystem of one of the operating systems."
11688 msgstr ""
11689
11690 #. type: textblock
11691 #: ../src/guestfs-actions.pod:3257
11692 msgid ""
11693 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
11694 "functions in order to query further information about each operating system, "
11695 "such as the name and version."
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../src/guestfs-actions.pod:3262
11700 msgid ""
11701 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
11702 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
11703 "the contents.  This should be called with no disks currently mounted.  The "
11704 "function may also use Augeas, so any existing Augeas handle will be closed."
11705 msgstr ""
11706
11707 #. type: textblock
11708 #: ../src/guestfs-actions.pod:3268 ../fish/guestfish-actions.pod:2304
11709 msgid ""
11710 "This function cannot decrypt encrypted disks.  The caller must do that first "
11711 "(supplying the necessary keys) if the disk is encrypted."
11712 msgstr ""
11713
11714 #. type: textblock
11715 #: ../src/guestfs-actions.pod:3274 ../src/guestfs-actions.pod:3564
11716 #: ../src/guestfs-actions.pod:3626
11717 msgid "See also C<guestfs_list_filesystems>."
11718 msgstr ""
11719
11720 #. type: =head2
11721 #: ../src/guestfs-actions.pod:3282
11722 msgid "guestfs_is_blockdev"
11723 msgstr ""
11724
11725 #. type: verbatim
11726 #: ../src/guestfs-actions.pod:3284
11727 #, no-wrap
11728 msgid ""
11729 " int\n"
11730 " guestfs_is_blockdev (guestfs_h *g,\n"
11731 "                      const char *path);\n"
11732 "\n"
11733 msgstr ""
11734
11735 #. type: textblock
11736 #: ../src/guestfs-actions.pod:3288 ../fish/guestfish-actions.pod:2316
11737 msgid ""
11738 "This returns C<true> if and only if there is a block device with the given "
11739 "C<path> name."
11740 msgstr ""
11741
11742 #. type: textblock
11743 #: ../src/guestfs-actions.pod:3291 ../src/guestfs-actions.pod:3320
11744 #: ../src/guestfs-actions.pod:3350 ../src/guestfs-actions.pod:3365
11745 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3437
11746 #: ../src/guestfs-actions.pod:3452
11747 msgid "See also C<guestfs_stat>."
11748 msgstr ""
11749
11750 #. type: textblock
11751 #: ../src/guestfs-actions.pod:3295 ../src/guestfs-actions.pod:3324
11752 #: ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3441
11753 #: ../src/guestfs-actions.pod:3456
11754 msgid "(Added in 1.5.10)"
11755 msgstr ""
11756
11757 #. type: =head2
11758 #: ../src/guestfs-actions.pod:3297
11759 msgid "guestfs_is_busy"
11760 msgstr ""
11761
11762 #. type: verbatim
11763 #: ../src/guestfs-actions.pod:3299
11764 #, no-wrap
11765 msgid ""
11766 " int\n"
11767 " guestfs_is_busy (guestfs_h *g);\n"
11768 "\n"
11769 msgstr ""
11770
11771 #. type: textblock
11772 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2325
11773 msgid ""
11774 "This returns true iff this handle is busy processing a command (in the "
11775 "C<BUSY> state)."
11776 msgstr ""
11777
11778 #. type: =head2
11779 #: ../src/guestfs-actions.pod:3311
11780 msgid "guestfs_is_chardev"
11781 msgstr ""
11782
11783 #. type: verbatim
11784 #: ../src/guestfs-actions.pod:3313
11785 #, no-wrap
11786 msgid ""
11787 " int\n"
11788 " guestfs_is_chardev (guestfs_h *g,\n"
11789 "                     const char *path);\n"
11790 "\n"
11791 msgstr ""
11792
11793 #. type: textblock
11794 #: ../src/guestfs-actions.pod:3317 ../fish/guestfish-actions.pod:2334
11795 msgid ""
11796 "This returns C<true> if and only if there is a character device with the "
11797 "given C<path> name."
11798 msgstr ""
11799
11800 #. type: =head2
11801 #: ../src/guestfs-actions.pod:3326
11802 msgid "guestfs_is_config"
11803 msgstr ""
11804
11805 #. type: verbatim
11806 #: ../src/guestfs-actions.pod:3328
11807 #, no-wrap
11808 msgid ""
11809 " int\n"
11810 " guestfs_is_config (guestfs_h *g);\n"
11811 "\n"
11812 msgstr ""
11813
11814 #. type: textblock
11815 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:2343
11816 msgid ""
11817 "This returns true iff this handle is being configured (in the C<CONFIG> "
11818 "state)."
11819 msgstr ""
11820
11821 #. type: =head2
11822 #: ../src/guestfs-actions.pod:3340
11823 msgid "guestfs_is_dir"
11824 msgstr ""
11825
11826 #. type: verbatim
11827 #: ../src/guestfs-actions.pod:3342
11828 #, no-wrap
11829 msgid ""
11830 " int\n"
11831 " guestfs_is_dir (guestfs_h *g,\n"
11832 "                 const char *path);\n"
11833 "\n"
11834 msgstr ""
11835
11836 #. type: textblock
11837 #: ../src/guestfs-actions.pod:3346 ../fish/guestfish-actions.pod:2352
11838 msgid ""
11839 "This returns C<true> if and only if there is a directory with the given "
11840 "C<path> name.  Note that it returns false for other objects like files."
11841 msgstr ""
11842
11843 #. type: =head2
11844 #: ../src/guestfs-actions.pod:3356
11845 msgid "guestfs_is_fifo"
11846 msgstr ""
11847
11848 #. type: verbatim
11849 #: ../src/guestfs-actions.pod:3358
11850 #, no-wrap
11851 msgid ""
11852 " int\n"
11853 " guestfs_is_fifo (guestfs_h *g,\n"
11854 "                  const char *path);\n"
11855 "\n"
11856 msgstr ""
11857
11858 #. type: textblock
11859 #: ../src/guestfs-actions.pod:3362 ../fish/guestfish-actions.pod:2362
11860 msgid ""
11861 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11862 "given C<path> name."
11863 msgstr ""
11864
11865 #. type: =head2
11866 #: ../src/guestfs-actions.pod:3371
11867 msgid "guestfs_is_file"
11868 msgstr ""
11869
11870 #. type: verbatim
11871 #: ../src/guestfs-actions.pod:3373
11872 #, no-wrap
11873 msgid ""
11874 " int\n"
11875 " guestfs_is_file (guestfs_h *g,\n"
11876 "                  const char *path);\n"
11877 "\n"
11878 msgstr ""
11879
11880 #. type: textblock
11881 #: ../src/guestfs-actions.pod:3377 ../fish/guestfish-actions.pod:2371
11882 msgid ""
11883 "This returns C<true> if and only if there is a regular file with the given "
11884 "C<path> name.  Note that it returns false for other objects like directories."
11885 msgstr ""
11886
11887 #. type: =head2
11888 #: ../src/guestfs-actions.pod:3387
11889 msgid "guestfs_is_launching"
11890 msgstr ""
11891
11892 #. type: verbatim
11893 #: ../src/guestfs-actions.pod:3389
11894 #, no-wrap
11895 msgid ""
11896 " int\n"
11897 " guestfs_is_launching (guestfs_h *g);\n"
11898 "\n"
11899 msgstr ""
11900
11901 #. type: textblock
11902 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2381
11903 msgid ""
11904 "This returns true iff this handle is launching the subprocess (in the "
11905 "C<LAUNCHING> state)."
11906 msgstr ""
11907
11908 #. type: =head2
11909 #: ../src/guestfs-actions.pod:3401
11910 msgid "guestfs_is_lv"
11911 msgstr ""
11912
11913 #. type: verbatim
11914 #: ../src/guestfs-actions.pod:3403
11915 #, no-wrap
11916 msgid ""
11917 " int\n"
11918 " guestfs_is_lv (guestfs_h *g,\n"
11919 "                const char *device);\n"
11920 "\n"
11921 msgstr ""
11922
11923 #. type: textblock
11924 #: ../src/guestfs-actions.pod:3407 ../fish/guestfish-actions.pod:2390
11925 msgid ""
11926 "This command tests whether C<device> is a logical volume, and returns true "
11927 "iff this is the case."
11928 msgstr ""
11929
11930 #. type: =head2
11931 #: ../src/guestfs-actions.pod:3414
11932 msgid "guestfs_is_ready"
11933 msgstr ""
11934
11935 #. type: verbatim
11936 #: ../src/guestfs-actions.pod:3416
11937 #, no-wrap
11938 msgid ""
11939 " int\n"
11940 " guestfs_is_ready (guestfs_h *g);\n"
11941 "\n"
11942 msgstr ""
11943
11944 #. type: textblock
11945 #: ../src/guestfs-actions.pod:3419 ../fish/guestfish-actions.pod:2397
11946 msgid ""
11947 "This returns true iff this handle is ready to accept commands (in the "
11948 "C<READY> state)."
11949 msgstr ""
11950
11951 #. type: =head2
11952 #: ../src/guestfs-actions.pod:3428
11953 msgid "guestfs_is_socket"
11954 msgstr ""
11955
11956 #. type: verbatim
11957 #: ../src/guestfs-actions.pod:3430
11958 #, no-wrap
11959 msgid ""
11960 " int\n"
11961 " guestfs_is_socket (guestfs_h *g,\n"
11962 "                    const char *path);\n"
11963 "\n"
11964 msgstr ""
11965
11966 #. type: textblock
11967 #: ../src/guestfs-actions.pod:3434 ../fish/guestfish-actions.pod:2406
11968 msgid ""
11969 "This returns C<true> if and only if there is a Unix domain socket with the "
11970 "given C<path> name."
11971 msgstr ""
11972
11973 #. type: =head2
11974 #: ../src/guestfs-actions.pod:3443
11975 msgid "guestfs_is_symlink"
11976 msgstr ""
11977
11978 #. type: verbatim
11979 #: ../src/guestfs-actions.pod:3445
11980 #, no-wrap
11981 msgid ""
11982 " int\n"
11983 " guestfs_is_symlink (guestfs_h *g,\n"
11984 "                     const char *path);\n"
11985 "\n"
11986 msgstr ""
11987
11988 #. type: textblock
11989 #: ../src/guestfs-actions.pod:3449 ../fish/guestfish-actions.pod:2415
11990 msgid ""
11991 "This returns C<true> if and only if there is a symbolic link with the given "
11992 "C<path> name."
11993 msgstr ""
11994
11995 #. type: =head2
11996 #: ../src/guestfs-actions.pod:3458
11997 msgid "guestfs_kill_subprocess"
11998 msgstr ""
11999
12000 #. type: verbatim
12001 #: ../src/guestfs-actions.pod:3460
12002 #, no-wrap
12003 msgid ""
12004 " int\n"
12005 " guestfs_kill_subprocess (guestfs_h *g);\n"
12006 "\n"
12007 msgstr ""
12008
12009 #. type: textblock
12010 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2424
12011 msgid "This kills the qemu subprocess.  You should never need to call this."
12012 msgstr ""
12013
12014 #. type: =head2
12015 #: ../src/guestfs-actions.pod:3469
12016 msgid "guestfs_launch"
12017 msgstr ""
12018
12019 #. type: verbatim
12020 #: ../src/guestfs-actions.pod:3471
12021 #, no-wrap
12022 msgid ""
12023 " int\n"
12024 " guestfs_launch (guestfs_h *g);\n"
12025 "\n"
12026 msgstr ""
12027
12028 #. type: textblock
12029 #: ../src/guestfs-actions.pod:3474 ../fish/guestfish-actions.pod:2432
12030 msgid ""
12031 "Internally libguestfs is implemented by running a virtual machine using "
12032 "L<qemu(1)>."
12033 msgstr ""
12034
12035 #. type: textblock
12036 #: ../src/guestfs-actions.pod:3477 ../fish/guestfish-actions.pod:2435
12037 msgid ""
12038 "You should call this after configuring the handle (eg. adding drives) but "
12039 "before performing any actions."
12040 msgstr ""
12041
12042 #. type: =head2
12043 #: ../src/guestfs-actions.pod:3489
12044 msgid "guestfs_lchown"
12045 msgstr ""
12046
12047 #. type: verbatim
12048 #: ../src/guestfs-actions.pod:3491
12049 #, no-wrap
12050 msgid ""
12051 " int\n"
12052 " guestfs_lchown (guestfs_h *g,\n"
12053 "                 int owner,\n"
12054 "                 int group,\n"
12055 "                 const char *path);\n"
12056 "\n"
12057 msgstr ""
12058
12059 #. type: textblock
12060 #: ../src/guestfs-actions.pod:3497
12061 msgid ""
12062 "Change the file owner to C<owner> and group to C<group>.  This is like "
12063 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12064 "changed, not the target."
12065 msgstr ""
12066
12067 #. type: =head2
12068 #: ../src/guestfs-actions.pod:3509
12069 msgid "guestfs_lgetxattr"
12070 msgstr ""
12071
12072 #. type: verbatim
12073 #: ../src/guestfs-actions.pod:3511
12074 #, no-wrap
12075 msgid ""
12076 " char *\n"
12077 " guestfs_lgetxattr (guestfs_h *g,\n"
12078 "                    const char *path,\n"
12079 "                    const char *name,\n"
12080 "                    size_t *size_r);\n"
12081 "\n"
12082 msgstr ""
12083
12084 #. type: textblock
12085 #: ../src/guestfs-actions.pod:3517 ../fish/guestfish-actions.pod:2454
12086 msgid ""
12087 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12088 "is a symlink, then this call returns an extended attribute from the symlink."
12089 msgstr ""
12090
12091 #. type: textblock
12092 #: ../src/guestfs-actions.pod:3531
12093 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12094 msgstr ""
12095
12096 #. type: =head2
12097 #: ../src/guestfs-actions.pod:3539
12098 msgid "guestfs_lgetxattrs"
12099 msgstr ""
12100
12101 #. type: verbatim
12102 #: ../src/guestfs-actions.pod:3541
12103 #, no-wrap
12104 msgid ""
12105 " struct guestfs_xattr_list *\n"
12106 " guestfs_lgetxattrs (guestfs_h *g,\n"
12107 "                     const char *path);\n"
12108 "\n"
12109 msgstr ""
12110
12111 #. type: textblock
12112 #: ../src/guestfs-actions.pod:3545
12113 msgid ""
12114 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
12115 "then it returns the extended attributes of the link itself."
12116 msgstr ""
12117
12118 #. type: =head2
12119 #: ../src/guestfs-actions.pod:3555
12120 msgid "guestfs_list_devices"
12121 msgstr ""
12122
12123 #. type: verbatim
12124 #: ../src/guestfs-actions.pod:3557
12125 #, no-wrap
12126 msgid ""
12127 " char **\n"
12128 " guestfs_list_devices (guestfs_h *g);\n"
12129 "\n"
12130 msgstr ""
12131
12132 #. type: textblock
12133 #: ../src/guestfs-actions.pod:3560 ../fish/guestfish-actions.pod:2482
12134 msgid "List all the block devices."
12135 msgstr ""
12136
12137 #. type: textblock
12138 #: ../src/guestfs-actions.pod:3562 ../fish/guestfish-actions.pod:2484
12139 msgid "The full block device names are returned, eg. C</dev/sda>."
12140 msgstr ""
12141
12142 #. type: =head2
12143 #: ../src/guestfs-actions.pod:3572
12144 msgid "guestfs_list_filesystems"
12145 msgstr ""
12146
12147 #. type: verbatim
12148 #: ../src/guestfs-actions.pod:3574
12149 #, no-wrap
12150 msgid ""
12151 " char **\n"
12152 " guestfs_list_filesystems (guestfs_h *g);\n"
12153 "\n"
12154 msgstr ""
12155
12156 #. type: textblock
12157 #: ../src/guestfs-actions.pod:3577 ../fish/guestfish-actions.pod:2492
12158 msgid ""
12159 "This inspection command looks for filesystems on partitions, block devices "
12160 "and logical volumes, returning a list of devices containing filesystems and "
12161 "their type."
12162 msgstr ""
12163
12164 #. type: textblock
12165 #: ../src/guestfs-actions.pod:3581 ../fish/guestfish-actions.pod:2496
12166 msgid ""
12167 "The return value is a hash, where the keys are the devices containing "
12168 "filesystems, and the values are the filesystem types.  For example:"
12169 msgstr ""
12170
12171 #. type: verbatim
12172 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2500
12173 #, no-wrap
12174 msgid ""
12175 " \"/dev/sda1\" => \"ntfs\"\n"
12176 " \"/dev/sda2\" => \"ext2\"\n"
12177 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12178 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12179 "\n"
12180 msgstr ""
12181
12182 #. type: textblock
12183 #: ../src/guestfs-actions.pod:3590 ../fish/guestfish-actions.pod:2505
12184 msgid ""
12185 "The value can have the special value \"unknown\", meaning the content of the "
12186 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12187 msgstr ""
12188
12189 #. type: textblock
12190 #: ../src/guestfs-actions.pod:3594
12191 msgid ""
12192 "This command runs other libguestfs commands, which might include "
12193 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
12194 "soon after launch and only when nothing is mounted."
12195 msgstr ""
12196
12197 #. type: textblock
12198 #: ../src/guestfs-actions.pod:3598
12199 msgid ""
12200 "Not all of the filesystems returned will be mountable.  In particular, swap "
12201 "partitions are returned in the list.  Also this command does not check that "
12202 "each filesystem found is valid and mountable, and some filesystems might be "
12203 "mountable but require special options.  Filesystems may not all belong to a "
12204 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
12205 msgstr ""
12206
12207 #. type: textblock
12208 #: ../src/guestfs-actions.pod:3612 ../src/guestfs-actions.pod:5217
12209 msgid "(Added in 1.5.15)"
12210 msgstr ""
12211
12212 #. type: =head2
12213 #: ../src/guestfs-actions.pod:3614
12214 msgid "guestfs_list_partitions"
12215 msgstr ""
12216
12217 #. type: verbatim
12218 #: ../src/guestfs-actions.pod:3616
12219 #, no-wrap
12220 msgid ""
12221 " char **\n"
12222 " guestfs_list_partitions (guestfs_h *g);\n"
12223 "\n"
12224 msgstr ""
12225
12226 #. type: textblock
12227 #: ../src/guestfs-actions.pod:3619 ../fish/guestfish-actions.pod:2525
12228 msgid "List all the partitions detected on all block devices."
12229 msgstr ""
12230
12231 #. type: textblock
12232 #: ../src/guestfs-actions.pod:3621 ../fish/guestfish-actions.pod:2527
12233 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12234 msgstr ""
12235
12236 #. type: textblock
12237 #: ../src/guestfs-actions.pod:3623
12238 msgid ""
12239 "This does not return logical volumes.  For that you will need to call "
12240 "C<guestfs_lvs>."
12241 msgstr ""
12242
12243 #. type: =head2
12244 #: ../src/guestfs-actions.pod:3634
12245 msgid "guestfs_ll"
12246 msgstr ""
12247
12248 #. type: verbatim
12249 #: ../src/guestfs-actions.pod:3636
12250 #, no-wrap
12251 msgid ""
12252 " char *\n"
12253 " guestfs_ll (guestfs_h *g,\n"
12254 "             const char *directory);\n"
12255 "\n"
12256 msgstr ""
12257
12258 #. type: textblock
12259 #: ../src/guestfs-actions.pod:3640 ../fish/guestfish-actions.pod:2538
12260 msgid ""
12261 "List the files in C<directory> (relative to the root directory, there is no "
12262 "cwd) in the format of 'ls -la'."
12263 msgstr ""
12264
12265 #. type: textblock
12266 #: ../src/guestfs-actions.pod:3643 ../fish/guestfish-actions.pod:2541
12267 msgid ""
12268 "This command is mostly useful for interactive sessions.  It is I<not> "
12269 "intended that you try to parse the output string."
12270 msgstr ""
12271
12272 #. type: =head2
12273 #: ../src/guestfs-actions.pod:3651
12274 msgid "guestfs_ln"
12275 msgstr ""
12276
12277 #. type: verbatim
12278 #: ../src/guestfs-actions.pod:3653
12279 #, no-wrap
12280 msgid ""
12281 " int\n"
12282 " guestfs_ln (guestfs_h *g,\n"
12283 "             const char *target,\n"
12284 "             const char *linkname);\n"
12285 "\n"
12286 msgstr ""
12287
12288 #. type: textblock
12289 #: ../src/guestfs-actions.pod:3658 ../fish/guestfish-actions.pod:2548
12290 msgid "This command creates a hard link using the C<ln> command."
12291 msgstr ""
12292
12293 #. type: =head2
12294 #: ../src/guestfs-actions.pod:3664
12295 msgid "guestfs_ln_f"
12296 msgstr ""
12297
12298 #. type: verbatim
12299 #: ../src/guestfs-actions.pod:3666
12300 #, no-wrap
12301 msgid ""
12302 " int\n"
12303 " guestfs_ln_f (guestfs_h *g,\n"
12304 "               const char *target,\n"
12305 "               const char *linkname);\n"
12306 "\n"
12307 msgstr ""
12308
12309 #. type: textblock
12310 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2554
12311 msgid ""
12312 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12313 "option removes the link (C<linkname>) if it exists already."
12314 msgstr ""
12315
12316 #. type: =head2
12317 #: ../src/guestfs-actions.pod:3678
12318 msgid "guestfs_ln_s"
12319 msgstr ""
12320
12321 #. type: verbatim
12322 #: ../src/guestfs-actions.pod:3680
12323 #, no-wrap
12324 msgid ""
12325 " int\n"
12326 " guestfs_ln_s (guestfs_h *g,\n"
12327 "               const char *target,\n"
12328 "               const char *linkname);\n"
12329 "\n"
12330 msgstr ""
12331
12332 #. type: textblock
12333 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2561
12334 msgid "This command creates a symbolic link using the C<ln -s> command."
12335 msgstr ""
12336
12337 #. type: =head2
12338 #: ../src/guestfs-actions.pod:3691
12339 msgid "guestfs_ln_sf"
12340 msgstr ""
12341
12342 #. type: verbatim
12343 #: ../src/guestfs-actions.pod:3693
12344 #, no-wrap
12345 msgid ""
12346 " int\n"
12347 " guestfs_ln_sf (guestfs_h *g,\n"
12348 "                const char *target,\n"
12349 "                const char *linkname);\n"
12350 "\n"
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../src/guestfs-actions.pod:3698 ../fish/guestfish-actions.pod:2567
12355 msgid ""
12356 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12357 "option removes the link (C<linkname>) if it exists already."
12358 msgstr ""
12359
12360 #. type: =head2
12361 #: ../src/guestfs-actions.pod:3705
12362 msgid "guestfs_lremovexattr"
12363 msgstr ""
12364
12365 #. type: verbatim
12366 #: ../src/guestfs-actions.pod:3707
12367 #, no-wrap
12368 msgid ""
12369 " int\n"
12370 " guestfs_lremovexattr (guestfs_h *g,\n"
12371 "                       const char *xattr,\n"
12372 "                       const char *path);\n"
12373 "\n"
12374 msgstr ""
12375
12376 #. type: textblock
12377 #: ../src/guestfs-actions.pod:3712
12378 msgid ""
12379 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
12380 "link, then it removes an extended attribute of the link itself."
12381 msgstr ""
12382
12383 #. type: =head2
12384 #: ../src/guestfs-actions.pod:3720
12385 msgid "guestfs_ls"
12386 msgstr ""
12387
12388 #. type: verbatim
12389 #: ../src/guestfs-actions.pod:3722
12390 #, no-wrap
12391 msgid ""
12392 " char **\n"
12393 " guestfs_ls (guestfs_h *g,\n"
12394 "             const char *directory);\n"
12395 "\n"
12396 msgstr ""
12397
12398 #. type: textblock
12399 #: ../src/guestfs-actions.pod:3726 ../fish/guestfish-actions.pod:2582
12400 msgid ""
12401 "List the files in C<directory> (relative to the root directory, there is no "
12402 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../src/guestfs-actions.pod:3730
12407 msgid ""
12408 "This command is mostly useful for interactive sessions.  Programs should "
12409 "probably use C<guestfs_readdir> instead."
12410 msgstr ""
12411
12412 #. type: =head2
12413 #: ../src/guestfs-actions.pod:3739
12414 msgid "guestfs_lsetxattr"
12415 msgstr ""
12416
12417 #. type: verbatim
12418 #: ../src/guestfs-actions.pod:3741
12419 #, no-wrap
12420 msgid ""
12421 " int\n"
12422 " guestfs_lsetxattr (guestfs_h *g,\n"
12423 "                    const char *xattr,\n"
12424 "                    const char *val,\n"
12425 "                    int vallen,\n"
12426 "                    const char *path);\n"
12427 "\n"
12428 msgstr ""
12429
12430 #. type: textblock
12431 #: ../src/guestfs-actions.pod:3748
12432 msgid ""
12433 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
12434 "then it sets an extended attribute of the link itself."
12435 msgstr ""
12436
12437 #. type: =head2
12438 #: ../src/guestfs-actions.pod:3756
12439 msgid "guestfs_lstat"
12440 msgstr ""
12441
12442 #. type: verbatim
12443 #: ../src/guestfs-actions.pod:3758
12444 #, no-wrap
12445 msgid ""
12446 " struct guestfs_stat *\n"
12447 " guestfs_lstat (guestfs_h *g,\n"
12448 "                const char *path);\n"
12449 "\n"
12450 msgstr ""
12451
12452 #. type: textblock
12453 #: ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:6320
12454 #: ../fish/guestfish-actions.pod:2601 ../fish/guestfish-actions.pod:4270
12455 msgid "Returns file information for the given C<path>."
12456 msgstr ""
12457
12458 #. type: textblock
12459 #: ../src/guestfs-actions.pod:3764
12460 msgid ""
12461 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
12462 "link, then the link is stat-ed, not the file it refers to."
12463 msgstr ""
12464
12465 #. type: textblock
12466 #: ../src/guestfs-actions.pod:3768 ../fish/guestfish-actions.pod:2607
12467 msgid "This is the same as the C<lstat(2)> system call."
12468 msgstr ""
12469
12470 #. type: textblock
12471 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:6324
12472 msgid ""
12473 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
12474 "error.  I<The caller must call C<guestfs_free_stat> after use>."
12475 msgstr ""
12476
12477 #. type: textblock
12478 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:6328
12479 #: ../src/guestfs-actions.pod:6346 ../src/guestfs-actions.pod:6727
12480 msgid "(Added in 0.9.2)"
12481 msgstr ""
12482
12483 #. type: =head2
12484 #: ../src/guestfs-actions.pod:3776
12485 msgid "guestfs_lstatlist"
12486 msgstr ""
12487
12488 #. type: verbatim
12489 #: ../src/guestfs-actions.pod:3778
12490 #, no-wrap
12491 msgid ""
12492 " struct guestfs_stat_list *\n"
12493 " guestfs_lstatlist (guestfs_h *g,\n"
12494 "                    const char *path,\n"
12495 "                    char *const *names);\n"
12496 "\n"
12497 msgstr ""
12498
12499 #. type: textblock
12500 #: ../src/guestfs-actions.pod:3783
12501 msgid ""
12502 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
12503 "files, where all files are in the directory C<path>.  C<names> is the list "
12504 "of files from this directory."
12505 msgstr ""
12506
12507 #. type: textblock
12508 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2617
12509 msgid ""
12510 "On return you get a list of stat structs, with a one-to-one correspondence "
12511 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12512 "then the C<ino> field of that structure is set to C<-1>."
12513 msgstr ""
12514
12515 #. type: textblock
12516 #: ../src/guestfs-actions.pod:3792
12517 msgid ""
12518 "This call is intended for programs that want to efficiently list a directory "
12519 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
12520 "for a similarly efficient call for getting extended attributes.  Very long "
12521 "directory listings might cause the protocol message size to be exceeded, "
12522 "causing this call to fail.  The caller must split up such requests into "
12523 "smaller groups of names."
12524 msgstr ""
12525
12526 #. type: textblock
12527 #: ../src/guestfs-actions.pod:3800
12528 msgid ""
12529 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
12530 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
12531 msgstr ""
12532
12533 #. type: =head2
12534 #: ../src/guestfs-actions.pod:3806
12535 msgid "guestfs_luks_add_key"
12536 msgstr ""
12537
12538 #. type: verbatim
12539 #: ../src/guestfs-actions.pod:3808
12540 #, no-wrap
12541 msgid ""
12542 " int\n"
12543 " guestfs_luks_add_key (guestfs_h *g,\n"
12544 "                       const char *device,\n"
12545 "                       const char *key,\n"
12546 "                       const char *newkey,\n"
12547 "                       int keyslot);\n"
12548 "\n"
12549 msgstr ""
12550
12551 #. type: textblock
12552 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2634
12553 msgid ""
12554 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12555 "existing key, and is used to access the device.  C<newkey> is the new key to "
12556 "add.  C<keyslot> is the key slot that will be replaced."
12557 msgstr ""
12558
12559 #. type: textblock
12560 #: ../src/guestfs-actions.pod:3820
12561 msgid ""
12562 "Note that if C<keyslot> already contains a key, then this command will "
12563 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
12564 msgstr ""
12565
12566 #. type: textblock
12567 #: ../src/guestfs-actions.pod:3826 ../src/guestfs-actions.pod:3866
12568 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
12569 #: ../src/guestfs-actions.pod:3941 ../src/guestfs-actions.pod:3960
12570 msgid ""
12571 "This function takes a key or passphrase parameter which could contain "
12572 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
12573 "information."
12574 msgstr ""
12575
12576 #. type: textblock
12577 #: ../src/guestfs-actions.pod:3830 ../src/guestfs-actions.pod:3870
12578 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3913
12579 msgid "(Added in 1.5.2)"
12580 msgstr ""
12581
12582 #. type: =head2
12583 #: ../src/guestfs-actions.pod:3832
12584 msgid "guestfs_luks_close"
12585 msgstr ""
12586
12587 #. type: verbatim
12588 #: ../src/guestfs-actions.pod:3834
12589 #, no-wrap
12590 msgid ""
12591 " int\n"
12592 " guestfs_luks_close (guestfs_h *g,\n"
12593 "                     const char *device);\n"
12594 "\n"
12595 msgstr ""
12596
12597 #. type: textblock
12598 #: ../src/guestfs-actions.pod:3838
12599 msgid ""
12600 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
12601 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
12602 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12603 "underlying block device."
12604 msgstr ""
12605
12606 #. type: textblock
12607 #: ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:3945
12608 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:4014
12609 #: ../src/guestfs-actions.pod:4062
12610 msgid "(Added in 1.5.1)"
12611 msgstr ""
12612
12613 #. type: =head2
12614 #: ../src/guestfs-actions.pod:3848
12615 msgid "guestfs_luks_format"
12616 msgstr ""
12617
12618 #. type: verbatim
12619 #: ../src/guestfs-actions.pod:3850
12620 #, no-wrap
12621 msgid ""
12622 " int\n"
12623 " guestfs_luks_format (guestfs_h *g,\n"
12624 "                      const char *device,\n"
12625 "                      const char *key,\n"
12626 "                      int keyslot);\n"
12627 "\n"
12628 msgstr ""
12629
12630 #. type: textblock
12631 #: ../src/guestfs-actions.pod:3856 ../fish/guestfish-actions.pod:2660
12632 msgid ""
12633 "This command erases existing data on C<device> and formats the device as a "
12634 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12635 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12636 msgstr ""
12637
12638 #. type: textblock
12639 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:3886
12640 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4968
12641 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:6155
12642 #: ../src/guestfs-actions.pod:6178 ../src/guestfs-actions.pod:6204
12643 #: ../src/guestfs-actions.pod:7364 ../fish/guestfish-actions.pod:2668
12644 #: ../fish/guestfish-actions.pod:2681 ../fish/guestfish-actions.pod:2765
12645 #: ../fish/guestfish-actions.pod:3339 ../fish/guestfish-actions.pod:3859
12646 #: ../fish/guestfish-actions.pod:4169 ../fish/guestfish-actions.pod:4185
12647 #: ../fish/guestfish-actions.pod:4200 ../fish/guestfish-actions.pod:4915
12648 msgid ""
12649 "B<This command is dangerous.  Without careful use you can easily destroy all "
12650 "your data>."
12651 msgstr ""
12652
12653 #. type: =head2
12654 #: ../src/guestfs-actions.pod:3872
12655 msgid "guestfs_luks_format_cipher"
12656 msgstr ""
12657
12658 #. type: verbatim
12659 #: ../src/guestfs-actions.pod:3874
12660 #, no-wrap
12661 msgid ""
12662 " int\n"
12663 " guestfs_luks_format_cipher (guestfs_h *g,\n"
12664 "                             const char *device,\n"
12665 "                             const char *key,\n"
12666 "                             int keyslot,\n"
12667 "                             const char *cipher);\n"
12668 "\n"
12669 msgstr ""
12670
12671 #. type: textblock
12672 #: ../src/guestfs-actions.pod:3881
12673 msgid ""
12674 "This command is the same as C<guestfs_luks_format> but it also allows you to "
12675 "set the C<cipher> used."
12676 msgstr ""
12677
12678 #. type: =head2
12679 #: ../src/guestfs-actions.pod:3895
12680 msgid "guestfs_luks_kill_slot"
12681 msgstr ""
12682
12683 #. type: verbatim
12684 #: ../src/guestfs-actions.pod:3897
12685 #, no-wrap
12686 msgid ""
12687 " int\n"
12688 " guestfs_luks_kill_slot (guestfs_h *g,\n"
12689 "                         const char *device,\n"
12690 "                         const char *key,\n"
12691 "                         int keyslot);\n"
12692 "\n"
12693 msgstr ""
12694
12695 #. type: textblock
12696 #: ../src/guestfs-actions.pod:3903 ../fish/guestfish-actions.pod:2688
12697 msgid ""
12698 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12699 "device C<device>.  C<key> must be one of the I<other> keys."
12700 msgstr ""
12701
12702 #. type: =head2
12703 #: ../src/guestfs-actions.pod:3915
12704 msgid "guestfs_luks_open"
12705 msgstr ""
12706
12707 #. type: verbatim
12708 #: ../src/guestfs-actions.pod:3917
12709 #, no-wrap
12710 msgid ""
12711 " int\n"
12712 " guestfs_luks_open (guestfs_h *g,\n"
12713 "                    const char *device,\n"
12714 "                    const char *key,\n"
12715 "                    const char *mapname);\n"
12716 "\n"
12717 msgstr ""
12718
12719 #. type: textblock
12720 #: ../src/guestfs-actions.pod:3923 ../fish/guestfish-actions.pod:2699
12721 msgid ""
12722 "This command opens a block device which has been encrypted according to the "
12723 "Linux Unified Key Setup (LUKS) standard."
12724 msgstr ""
12725
12726 #. type: textblock
12727 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2702
12728 msgid "C<device> is the encrypted block device or partition."
12729 msgstr ""
12730
12731 #. type: textblock
12732 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:2704
12733 msgid ""
12734 "The caller must supply one of the keys associated with the LUKS block "
12735 "device, in the C<key> parameter."
12736 msgstr ""
12737
12738 #. type: textblock
12739 #: ../src/guestfs-actions.pod:3931 ../fish/guestfish-actions.pod:2707
12740 msgid ""
12741 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12742 "writes to this block device are decrypted from and encrypted to the "
12743 "underlying C<device> respectively."
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../src/guestfs-actions.pod:3935
12748 msgid ""
12749 "If this block device contains LVM volume groups, then calling "
12750 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
12751 "visible."
12752 msgstr ""
12753
12754 #. type: =head2
12755 #: ../src/guestfs-actions.pod:3947
12756 msgid "guestfs_luks_open_ro"
12757 msgstr ""
12758
12759 #. type: verbatim
12760 #: ../src/guestfs-actions.pod:3949
12761 #, no-wrap
12762 msgid ""
12763 " int\n"
12764 " guestfs_luks_open_ro (guestfs_h *g,\n"
12765 "                       const char *device,\n"
12766 "                       const char *key,\n"
12767 "                       const char *mapname);\n"
12768 "\n"
12769 msgstr ""
12770
12771 #. type: textblock
12772 #: ../src/guestfs-actions.pod:3955
12773 msgid ""
12774 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
12775 "created."
12776 msgstr ""
12777
12778 #. type: =head2
12779 #: ../src/guestfs-actions.pod:3966
12780 msgid "guestfs_lvcreate"
12781 msgstr ""
12782
12783 #. type: verbatim
12784 #: ../src/guestfs-actions.pod:3968
12785 #, no-wrap
12786 msgid ""
12787 " int\n"
12788 " guestfs_lvcreate (guestfs_h *g,\n"
12789 "                   const char *logvol,\n"
12790 "                   const char *volgroup,\n"
12791 "                   int mbytes);\n"
12792 "\n"
12793 msgstr ""
12794
12795 #. type: textblock
12796 #: ../src/guestfs-actions.pod:3974 ../fish/guestfish-actions.pod:2732
12797 msgid ""
12798 "This creates an LVM logical volume called C<logvol> on the volume group "
12799 "C<volgroup>, with C<size> megabytes."
12800 msgstr ""
12801
12802 #. type: =head2
12803 #: ../src/guestfs-actions.pod:3981
12804 msgid "guestfs_lvm_canonical_lv_name"
12805 msgstr ""
12806
12807 #. type: verbatim
12808 #: ../src/guestfs-actions.pod:3983
12809 #, no-wrap
12810 msgid ""
12811 " char *\n"
12812 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
12813 "                                const char *lvname);\n"
12814 "\n"
12815 msgstr ""
12816
12817 #. type: textblock
12818 #: ../src/guestfs-actions.pod:3987 ../fish/guestfish-actions.pod:2739
12819 msgid ""
12820 "This converts alternative naming schemes for LVs that you might find to the "
12821 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12822 "LV>."
12823 msgstr ""
12824
12825 #. type: textblock
12826 #: ../src/guestfs-actions.pod:3991 ../fish/guestfish-actions.pod:2743
12827 msgid ""
12828 "This command returns an error if the C<lvname> parameter does not refer to a "
12829 "logical volume."
12830 msgstr ""
12831
12832 #. type: textblock
12833 #: ../src/guestfs-actions.pod:3994
12834 msgid "See also C<guestfs_is_lv>."
12835 msgstr ""
12836
12837 #. type: textblock
12838 #: ../src/guestfs-actions.pod:3999
12839 msgid "(Added in 1.5.24)"
12840 msgstr ""
12841
12842 #. type: =head2
12843 #: ../src/guestfs-actions.pod:4001
12844 msgid "guestfs_lvm_clear_filter"
12845 msgstr ""
12846
12847 #. type: verbatim
12848 #: ../src/guestfs-actions.pod:4003
12849 #, no-wrap
12850 msgid ""
12851 " int\n"
12852 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
12853 "\n"
12854 msgstr ""
12855
12856 #. type: textblock
12857 #: ../src/guestfs-actions.pod:4006
12858 msgid ""
12859 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
12860 "see every block device."
12861 msgstr ""
12862
12863 #. type: textblock
12864 #: ../src/guestfs-actions.pod:4009 ../src/guestfs-actions.pod:4051
12865 #: ../fish/guestfish-actions.pod:2755 ../fish/guestfish-actions.pod:2786
12866 msgid ""
12867 "This command also clears the LVM cache and performs a volume group scan."
12868 msgstr ""
12869
12870 #. type: =head2
12871 #: ../src/guestfs-actions.pod:4016
12872 msgid "guestfs_lvm_remove_all"
12873 msgstr ""
12874
12875 #. type: verbatim
12876 #: ../src/guestfs-actions.pod:4018
12877 #, no-wrap
12878 msgid ""
12879 " int\n"
12880 " guestfs_lvm_remove_all (guestfs_h *g);\n"
12881 "\n"
12882 msgstr ""
12883
12884 #. type: textblock
12885 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:2762
12886 msgid ""
12887 "This command removes all LVM logical volumes, volume groups and physical "
12888 "volumes."
12889 msgstr ""
12890
12891 #. type: =head2
12892 #: ../src/guestfs-actions.pod:4031
12893 msgid "guestfs_lvm_set_filter"
12894 msgstr ""
12895
12896 #. type: verbatim
12897 #: ../src/guestfs-actions.pod:4033
12898 #, no-wrap
12899 msgid ""
12900 " int\n"
12901 " guestfs_lvm_set_filter (guestfs_h *g,\n"
12902 "                         char *const *devices);\n"
12903 "\n"
12904 msgstr ""
12905
12906 #. type: textblock
12907 #: ../src/guestfs-actions.pod:4037 ../fish/guestfish-actions.pod:2772
12908 msgid ""
12909 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12910 "block devices in the list C<devices>, and will ignore all other attached "
12911 "block devices."
12912 msgstr ""
12913
12914 #. type: textblock
12915 #: ../src/guestfs-actions.pod:4041 ../fish/guestfish-actions.pod:2776
12916 msgid ""
12917 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12918 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12919 "there are two types of duplication possible: either cloned PVs/VGs which "
12920 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12921 "same name.  In normal operation you cannot create this situation, but you "
12922 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12923 "inside the LVM metadata."
12924 msgstr ""
12925
12926 #. type: textblock
12927 #: ../src/guestfs-actions.pod:4054 ../fish/guestfish-actions.pod:2789
12928 msgid "You can filter whole block devices or individual partitions."
12929 msgstr ""
12930
12931 #. type: textblock
12932 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2791
12933 msgid ""
12934 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12935 "filesystem), even if you are not filtering out that VG."
12936 msgstr ""
12937
12938 #. type: =head2
12939 #: ../src/guestfs-actions.pod:4064
12940 msgid "guestfs_lvremove"
12941 msgstr ""
12942
12943 #. type: verbatim
12944 #: ../src/guestfs-actions.pod:4066
12945 #, no-wrap
12946 msgid ""
12947 " int\n"
12948 " guestfs_lvremove (guestfs_h *g,\n"
12949 "                   const char *device);\n"
12950 "\n"
12951 msgstr ""
12952
12953 #. type: textblock
12954 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:2799
12955 msgid ""
12956 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12957 "LV, such as C</dev/VG/LV>."
12958 msgstr ""
12959
12960 #. type: textblock
12961 #: ../src/guestfs-actions.pod:4073 ../fish/guestfish-actions.pod:2802
12962 msgid ""
12963 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12964 "dev/VG>."
12965 msgstr ""
12966
12967 #. type: textblock
12968 #: ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:5314
12969 #: ../src/guestfs-actions.pod:7103
12970 msgid "(Added in 1.0.13)"
12971 msgstr ""
12972
12973 #. type: =head2
12974 #: ../src/guestfs-actions.pod:4080
12975 msgid "guestfs_lvrename"
12976 msgstr ""
12977
12978 #. type: verbatim
12979 #: ../src/guestfs-actions.pod:4082
12980 #, no-wrap
12981 msgid ""
12982 " int\n"
12983 " guestfs_lvrename (guestfs_h *g,\n"
12984 "                   const char *logvol,\n"
12985 "                   const char *newlogvol);\n"
12986 "\n"
12987 msgstr ""
12988
12989 #. type: textblock
12990 #: ../src/guestfs-actions.pod:4087 ../fish/guestfish-actions.pod:2809
12991 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12992 msgstr ""
12993
12994 #. type: textblock
12995 #: ../src/guestfs-actions.pod:4091 ../src/guestfs-actions.pod:7116
12996 msgid "(Added in 1.0.83)"
12997 msgstr ""
12998
12999 #. type: =head2
13000 #: ../src/guestfs-actions.pod:4093
13001 msgid "guestfs_lvresize"
13002 msgstr ""
13003
13004 #. type: verbatim
13005 #: ../src/guestfs-actions.pod:4095
13006 #, no-wrap
13007 msgid ""
13008 " int\n"
13009 " guestfs_lvresize (guestfs_h *g,\n"
13010 "                   const char *device,\n"
13011 "                   int mbytes);\n"
13012 "\n"
13013 msgstr ""
13014
13015 #. type: textblock
13016 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2815
13017 msgid ""
13018 "This resizes (expands or shrinks) an existing LVM logical volume to "
13019 "C<mbytes>.  When reducing, data in the reduced part is lost."
13020 msgstr ""
13021
13022 #. type: =head2
13023 #: ../src/guestfs-actions.pod:4108
13024 msgid "guestfs_lvresize_free"
13025 msgstr ""
13026
13027 #. type: verbatim
13028 #: ../src/guestfs-actions.pod:4110
13029 #, no-wrap
13030 msgid ""
13031 " int\n"
13032 " guestfs_lvresize_free (guestfs_h *g,\n"
13033 "                        const char *lv,\n"
13034 "                        int percent);\n"
13035 "\n"
13036 msgstr ""
13037
13038 #. type: textblock
13039 #: ../src/guestfs-actions.pod:4115 ../fish/guestfish-actions.pod:2823
13040 msgid ""
13041 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13042 "remaining free space in the volume group.  Commonly you would call this with "
13043 "pc = 100 which expands the logical volume as much as possible, using all "
13044 "remaining free space in the volume group."
13045 msgstr ""
13046
13047 #. type: textblock
13048 #: ../src/guestfs-actions.pod:4123
13049 msgid "(Added in 1.3.3)"
13050 msgstr ""
13051
13052 #. type: =head2
13053 #: ../src/guestfs-actions.pod:4125
13054 msgid "guestfs_lvs"
13055 msgstr ""
13056
13057 #. type: verbatim
13058 #: ../src/guestfs-actions.pod:4127
13059 #, no-wrap
13060 msgid ""
13061 " char **\n"
13062 " guestfs_lvs (guestfs_h *g);\n"
13063 "\n"
13064 msgstr ""
13065
13066 #. type: textblock
13067 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2833
13068 msgid ""
13069 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13070 "(8)> command."
13071 msgstr ""
13072
13073 #. type: textblock
13074 #: ../src/guestfs-actions.pod:4133 ../fish/guestfish-actions.pod:2836
13075 msgid ""
13076 "This returns a list of the logical volume device names (eg. C</dev/"
13077 "VolGroup00/LogVol00>)."
13078 msgstr ""
13079
13080 #. type: textblock
13081 #: ../src/guestfs-actions.pod:4136
13082 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
13083 msgstr ""
13084
13085 #. type: =head2
13086 #: ../src/guestfs-actions.pod:4144
13087 msgid "guestfs_lvs_full"
13088 msgstr ""
13089
13090 #. type: verbatim
13091 #: ../src/guestfs-actions.pod:4146
13092 #, no-wrap
13093 msgid ""
13094 " struct guestfs_lvm_lv_list *\n"
13095 " guestfs_lvs_full (guestfs_h *g);\n"
13096 "\n"
13097 msgstr ""
13098
13099 #. type: textblock
13100 #: ../src/guestfs-actions.pod:4149 ../fish/guestfish-actions.pod:2845
13101 msgid ""
13102 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13103 "(8)> command.  The \"full\" version includes all fields."
13104 msgstr ""
13105
13106 #. type: textblock
13107 #: ../src/guestfs-actions.pod:4152
13108 msgid ""
13109 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
13110 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
13111 msgstr ""
13112
13113 #. type: =head2
13114 #: ../src/guestfs-actions.pod:4158
13115 msgid "guestfs_lvuuid"
13116 msgstr ""
13117
13118 #. type: verbatim
13119 #: ../src/guestfs-actions.pod:4160
13120 #, no-wrap
13121 msgid ""
13122 " char *\n"
13123 " guestfs_lvuuid (guestfs_h *g,\n"
13124 "                 const char *device);\n"
13125 "\n"
13126 msgstr ""
13127
13128 #. type: textblock
13129 #: ../src/guestfs-actions.pod:4164 ../fish/guestfish-actions.pod:2852
13130 msgid "This command returns the UUID of the LVM LV C<device>."
13131 msgstr ""
13132
13133 #. type: =head2
13134 #: ../src/guestfs-actions.pod:4171
13135 msgid "guestfs_lxattrlist"
13136 msgstr ""
13137
13138 #. type: verbatim
13139 #: ../src/guestfs-actions.pod:4173
13140 #, no-wrap
13141 msgid ""
13142 " struct guestfs_xattr_list *\n"
13143 " guestfs_lxattrlist (guestfs_h *g,\n"
13144 "                     const char *path,\n"
13145 "                     char *const *names);\n"
13146 "\n"
13147 msgstr ""
13148
13149 #. type: textblock
13150 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:2858
13151 msgid ""
13152 "This call allows you to get the extended attributes of multiple files, where "
13153 "all files are in the directory C<path>.  C<names> is the list of files from "
13154 "this directory."
13155 msgstr ""
13156
13157 #. type: textblock
13158 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2862
13159 msgid ""
13160 "On return you get a flat list of xattr structs which must be interpreted "
13161 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13162 "C<attrval> in this struct is zero-length to indicate there was an error "
13163 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13164 "number (the number of following attributes for this file, which could be C<"
13165 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13166 "for the first named file.  This repeats for the second and subsequent files."
13167 msgstr ""
13168
13169 #. type: textblock
13170 #: ../src/guestfs-actions.pod:4192
13171 msgid ""
13172 "This call is intended for programs that want to efficiently list a directory "
13173 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
13174 "a similarly efficient call for getting standard stats.  Very long directory "
13175 "listings might cause the protocol message size to be exceeded, causing this "
13176 "call to fail.  The caller must split up such requests into smaller groups of "
13177 "names."
13178 msgstr ""
13179
13180 #. type: =head2
13181 #: ../src/guestfs-actions.pod:4206
13182 msgid "guestfs_mkdir"
13183 msgstr ""
13184
13185 #. type: verbatim
13186 #: ../src/guestfs-actions.pod:4208
13187 #, no-wrap
13188 msgid ""
13189 " int\n"
13190 " guestfs_mkdir (guestfs_h *g,\n"
13191 "                const char *path);\n"
13192 "\n"
13193 msgstr ""
13194
13195 #. type: textblock
13196 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:2884
13197 msgid "Create a directory named C<path>."
13198 msgstr ""
13199
13200 #. type: =head2
13201 #: ../src/guestfs-actions.pod:4218
13202 msgid "guestfs_mkdir_mode"
13203 msgstr ""
13204
13205 #. type: verbatim
13206 #: ../src/guestfs-actions.pod:4220
13207 #, no-wrap
13208 msgid ""
13209 " int\n"
13210 " guestfs_mkdir_mode (guestfs_h *g,\n"
13211 "                     const char *path,\n"
13212 "                     int mode);\n"
13213 "\n"
13214 msgstr ""
13215
13216 #. type: textblock
13217 #: ../src/guestfs-actions.pod:4225 ../fish/guestfish-actions.pod:2890
13218 msgid ""
13219 "This command creates a directory, setting the initial permissions of the "
13220 "directory to C<mode>."
13221 msgstr ""
13222
13223 #. type: textblock
13224 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:2893
13225 msgid ""
13226 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13227 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13228 "other ways."
13229 msgstr ""
13230
13231 #. type: textblock
13232 #: ../src/guestfs-actions.pod:4232
13233 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
13234 msgstr ""
13235
13236 #. type: =head2
13237 #: ../src/guestfs-actions.pod:4238
13238 msgid "guestfs_mkdir_p"
13239 msgstr ""
13240
13241 #. type: verbatim
13242 #: ../src/guestfs-actions.pod:4240
13243 #, no-wrap
13244 msgid ""
13245 " int\n"
13246 " guestfs_mkdir_p (guestfs_h *g,\n"
13247 "                  const char *path);\n"
13248 "\n"
13249 msgstr ""
13250
13251 #. type: textblock
13252 #: ../src/guestfs-actions.pod:4244 ../fish/guestfish-actions.pod:2903
13253 msgid ""
13254 "Create a directory named C<path>, creating any parent directories as "
13255 "necessary.  This is like the C<mkdir -p> shell command."
13256 msgstr ""
13257
13258 #. type: =head2
13259 #: ../src/guestfs-actions.pod:4251
13260 msgid "guestfs_mkdtemp"
13261 msgstr ""
13262
13263 #. type: verbatim
13264 #: ../src/guestfs-actions.pod:4253
13265 #, no-wrap
13266 msgid ""
13267 " char *\n"
13268 " guestfs_mkdtemp (guestfs_h *g,\n"
13269 "                  const char *template);\n"
13270 "\n"
13271 msgstr ""
13272
13273 #. type: textblock
13274 #: ../src/guestfs-actions.pod:4257 ../fish/guestfish-actions.pod:2910
13275 msgid ""
13276 "This command creates a temporary directory.  The C<template> parameter "
13277 "should be a full pathname for the temporary directory name with the final "
13278 "six characters being \"XXXXXX\"."
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../src/guestfs-actions.pod:4262 ../fish/guestfish-actions.pod:2915
13283 msgid ""
13284 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13285 "being suitable for Windows filesystems."
13286 msgstr ""
13287
13288 #. type: textblock
13289 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:2918
13290 msgid "The name of the temporary directory that was created is returned."
13291 msgstr ""
13292
13293 #. type: textblock
13294 #: ../src/guestfs-actions.pod:4268 ../fish/guestfish-actions.pod:2921
13295 msgid "The temporary directory is created with mode 0700 and is owned by root."
13296 msgstr ""
13297
13298 #. type: textblock
13299 #: ../src/guestfs-actions.pod:4271 ../fish/guestfish-actions.pod:2924
13300 msgid ""
13301 "The caller is responsible for deleting the temporary directory and its "
13302 "contents after use."
13303 msgstr ""
13304
13305 #. type: textblock
13306 #: ../src/guestfs-actions.pod:4274 ../fish/guestfish-actions.pod:2927
13307 msgid "See also: L<mkdtemp(3)>"
13308 msgstr ""
13309
13310 #. type: =head2
13311 #: ../src/guestfs-actions.pod:4281
13312 msgid "guestfs_mke2fs_J"
13313 msgstr ""
13314
13315 #. type: verbatim
13316 #: ../src/guestfs-actions.pod:4283
13317 #, no-wrap
13318 msgid ""
13319 " int\n"
13320 " guestfs_mke2fs_J (guestfs_h *g,\n"
13321 "                   const char *fstype,\n"
13322 "                   int blocksize,\n"
13323 "                   const char *device,\n"
13324 "                   const char *journal);\n"
13325 "\n"
13326 msgstr ""
13327
13328 #. type: textblock
13329 #: ../src/guestfs-actions.pod:4290 ../fish/guestfish-actions.pod:2933
13330 msgid ""
13331 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13332 "C<journal>.  It is equivalent to the command:"
13333 msgstr ""
13334
13335 #. type: verbatim
13336 #: ../src/guestfs-actions.pod:4294 ../fish/guestfish-actions.pod:2937
13337 #, no-wrap
13338 msgid ""
13339 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13340 "\n"
13341 msgstr ""
13342
13343 #. type: textblock
13344 #: ../src/guestfs-actions.pod:4296
13345 msgid "See also C<guestfs_mke2journal>."
13346 msgstr ""
13347
13348 #. type: textblock
13349 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4318
13350 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4352
13351 #: ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:4380
13352 #: ../src/guestfs-actions.pod:4439 ../src/guestfs-actions.pod:4704
13353 msgid "(Added in 1.0.68)"
13354 msgstr ""
13355
13356 #. type: =head2
13357 #: ../src/guestfs-actions.pod:4302
13358 msgid "guestfs_mke2fs_JL"
13359 msgstr ""
13360
13361 #. type: verbatim
13362 #: ../src/guestfs-actions.pod:4304
13363 #, no-wrap
13364 msgid ""
13365 " int\n"
13366 " guestfs_mke2fs_JL (guestfs_h *g,\n"
13367 "                    const char *fstype,\n"
13368 "                    int blocksize,\n"
13369 "                    const char *device,\n"
13370 "                    const char *label);\n"
13371 "\n"
13372 msgstr ""
13373
13374 #. type: textblock
13375 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2945
13376 msgid ""
13377 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13378 "the journal labeled C<label>."
13379 msgstr ""
13380
13381 #. type: textblock
13382 #: ../src/guestfs-actions.pod:4314
13383 msgid "See also C<guestfs_mke2journal_L>."
13384 msgstr ""
13385
13386 #. type: =head2
13387 #: ../src/guestfs-actions.pod:4320
13388 msgid "guestfs_mke2fs_JU"
13389 msgstr ""
13390
13391 #. type: verbatim
13392 #: ../src/guestfs-actions.pod:4322
13393 #, no-wrap
13394 msgid ""
13395 " int\n"
13396 " guestfs_mke2fs_JU (guestfs_h *g,\n"
13397 "                    const char *fstype,\n"
13398 "                    int blocksize,\n"
13399 "                    const char *device,\n"
13400 "                    const char *uuid);\n"
13401 "\n"
13402 msgstr ""
13403
13404 #. type: textblock
13405 #: ../src/guestfs-actions.pod:4329 ../fish/guestfish-actions.pod:2954
13406 msgid ""
13407 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13408 "the journal with UUID C<uuid>."
13409 msgstr ""
13410
13411 #. type: textblock
13412 #: ../src/guestfs-actions.pod:4332
13413 msgid "See also C<guestfs_mke2journal_U>."
13414 msgstr ""
13415
13416 #. type: =head2
13417 #: ../src/guestfs-actions.pod:4338
13418 msgid "guestfs_mke2journal"
13419 msgstr ""
13420
13421 #. type: verbatim
13422 #: ../src/guestfs-actions.pod:4340
13423 #, no-wrap
13424 msgid ""
13425 " int\n"
13426 " guestfs_mke2journal (guestfs_h *g,\n"
13427 "                      int blocksize,\n"
13428 "                      const char *device);\n"
13429 "\n"
13430 msgstr ""
13431
13432 #. type: textblock
13433 #: ../src/guestfs-actions.pod:4345 ../fish/guestfish-actions.pod:2963
13434 msgid ""
13435 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13436 "command:"
13437 msgstr ""
13438
13439 #. type: verbatim
13440 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2966
13441 #, no-wrap
13442 msgid ""
13443 " mke2fs -O journal_dev -b blocksize device\n"
13444 "\n"
13445 msgstr ""
13446
13447 #. type: =head2
13448 #: ../src/guestfs-actions.pod:4354
13449 msgid "guestfs_mke2journal_L"
13450 msgstr ""
13451
13452 #. type: verbatim
13453 #: ../src/guestfs-actions.pod:4356
13454 #, no-wrap
13455 msgid ""
13456 " int\n"
13457 " guestfs_mke2journal_L (guestfs_h *g,\n"
13458 "                        int blocksize,\n"
13459 "                        const char *label,\n"
13460 "                        const char *device);\n"
13461 "\n"
13462 msgstr ""
13463
13464 #. type: textblock
13465 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:2972
13466 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13467 msgstr ""
13468
13469 #. type: =head2
13470 #: ../src/guestfs-actions.pod:4368
13471 msgid "guestfs_mke2journal_U"
13472 msgstr ""
13473
13474 #. type: verbatim
13475 #: ../src/guestfs-actions.pod:4370
13476 #, no-wrap
13477 msgid ""
13478 " int\n"
13479 " guestfs_mke2journal_U (guestfs_h *g,\n"
13480 "                        int blocksize,\n"
13481 "                        const char *uuid,\n"
13482 "                        const char *device);\n"
13483 "\n"
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../src/guestfs-actions.pod:4376 ../fish/guestfish-actions.pod:2978
13488 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13489 msgstr ""
13490
13491 #. type: =head2
13492 #: ../src/guestfs-actions.pod:4382
13493 msgid "guestfs_mkfifo"
13494 msgstr ""
13495
13496 #. type: verbatim
13497 #: ../src/guestfs-actions.pod:4384
13498 #, no-wrap
13499 msgid ""
13500 " int\n"
13501 " guestfs_mkfifo (guestfs_h *g,\n"
13502 "                 int mode,\n"
13503 "                 const char *path);\n"
13504 "\n"
13505 msgstr ""
13506
13507 #. type: textblock
13508 #: ../src/guestfs-actions.pod:4389
13509 msgid ""
13510 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13511 "is just a convenient wrapper around C<guestfs_mknod>."
13512 msgstr ""
13513
13514 #. type: =head2
13515 #: ../src/guestfs-actions.pod:4399
13516 msgid "guestfs_mkfs"
13517 msgstr ""
13518
13519 #. type: verbatim
13520 #: ../src/guestfs-actions.pod:4401
13521 #, no-wrap
13522 msgid ""
13523 " int\n"
13524 " guestfs_mkfs (guestfs_h *g,\n"
13525 "               const char *fstype,\n"
13526 "               const char *device);\n"
13527 "\n"
13528 msgstr ""
13529
13530 #. type: textblock
13531 #: ../src/guestfs-actions.pod:4406 ../fish/guestfish-actions.pod:2994
13532 msgid ""
13533 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13534 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13535 msgstr ""
13536
13537 #. type: =head2
13538 #: ../src/guestfs-actions.pod:4414
13539 msgid "guestfs_mkfs_b"
13540 msgstr ""
13541
13542 #. type: verbatim
13543 #: ../src/guestfs-actions.pod:4416
13544 #, no-wrap
13545 msgid ""
13546 " int\n"
13547 " guestfs_mkfs_b (guestfs_h *g,\n"
13548 "                 const char *fstype,\n"
13549 "                 int blocksize,\n"
13550 "                 const char *device);\n"
13551 "\n"
13552 msgstr ""
13553
13554 #. type: textblock
13555 #: ../src/guestfs-actions.pod:4422
13556 msgid ""
13557 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
13558 "block size of the resulting filesystem.  Supported block sizes depend on the "
13559 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13560 msgstr ""
13561
13562 #. type: textblock
13563 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:4470
13564 #: ../fish/guestfish-actions.pod:3007 ../fish/guestfish-actions.pod:3034
13565 msgid ""
13566 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13567 "cluster size."
13568 msgstr ""
13569
13570 #. type: textblock
13571 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:3010
13572 msgid ""
13573 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
13574 msgstr ""
13575
13576 #. type: =head2
13577 #: ../src/guestfs-actions.pod:4441
13578 msgid "guestfs_mkfs_opts"
13579 msgstr ""
13580
13581 #. type: verbatim
13582 #: ../src/guestfs-actions.pod:4443
13583 #, no-wrap
13584 msgid ""
13585 " int\n"
13586 " guestfs_mkfs_opts (guestfs_h *g,\n"
13587 "                    const char *fstype,\n"
13588 "                    const char *device,\n"
13589 "                    ...);\n"
13590 "\n"
13591 msgstr ""
13592
13593 #. type: verbatim
13594 #: ../src/guestfs-actions.pod:4454
13595 #, no-wrap
13596 msgid ""
13597 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
13598 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
13599 "\n"
13600 msgstr ""
13601
13602 #. type: textblock
13603 #: ../src/guestfs-actions.pod:4457 ../fish/guestfish-actions.pod:3021
13604 msgid ""
13605 "This function creates a filesystem on C<device>.  The filesystem type is "
13606 "C<fstype>, for example C<ext3>."
13607 msgstr ""
13608
13609 #. type: =item
13610 #: ../src/guestfs-actions.pod:4464 ../fish/guestfish-actions.pod:3028
13611 msgid "C<blocksize>"
13612 msgstr ""
13613
13614 #. type: textblock
13615 #: ../src/guestfs-actions.pod:4466 ../fish/guestfish-actions.pod:3030
13616 msgid ""
13617 "The filesystem block size.  Supported block sizes depend on the filesystem "
13618 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13619 "filesystems."
13620 msgstr ""
13621
13622 #. type: textblock
13623 #: ../src/guestfs-actions.pod:4473 ../fish/guestfish-actions.pod:3037
13624 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13625 msgstr ""
13626
13627 #. type: =item
13628 #: ../src/guestfs-actions.pod:4475 ../fish/guestfish-actions.pod:3039
13629 msgid "C<features>"
13630 msgstr ""
13631
13632 #. type: textblock
13633 #: ../src/guestfs-actions.pod:4477 ../fish/guestfish-actions.pod:3041
13634 msgid "This passes the I<-O> parameter to the external mkfs program."
13635 msgstr ""
13636
13637 #. type: textblock
13638 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:3043
13639 msgid ""
13640 "For certain filesystem types, this allows extra filesystem features to be "
13641 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13642 msgstr ""
13643
13644 #. type: textblock
13645 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3047
13646 msgid ""
13647 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13648 "type."
13649 msgstr ""
13650
13651 #. type: textblock
13652 #: ../src/guestfs-actions.pod:4490
13653 msgid "(Added in 1.7.19)"
13654 msgstr ""
13655
13656 #. type: =head2
13657 #: ../src/guestfs-actions.pod:4492
13658 msgid "guestfs_mkfs_opts_va"
13659 msgstr ""
13660
13661 #. type: verbatim
13662 #: ../src/guestfs-actions.pod:4494
13663 #, no-wrap
13664 msgid ""
13665 " int\n"
13666 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
13667 "                       const char *fstype,\n"
13668 "                       const char *device,\n"
13669 "                       va_list args);\n"
13670 "\n"
13671 msgstr ""
13672
13673 #. type: textblock
13674 #: ../src/guestfs-actions.pod:4500
13675 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
13676 msgstr ""
13677
13678 #. type: =head2
13679 #: ../src/guestfs-actions.pod:4504
13680 msgid "guestfs_mkfs_opts_argv"
13681 msgstr ""
13682
13683 #. type: verbatim
13684 #: ../src/guestfs-actions.pod:4506
13685 #, no-wrap
13686 msgid ""
13687 " int\n"
13688 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
13689 "                         const char *fstype,\n"
13690 "                         const char *device,\n"
13691 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
13692 "\n"
13693 msgstr ""
13694
13695 #. type: textblock
13696 #: ../src/guestfs-actions.pod:4512
13697 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
13698 msgstr ""
13699
13700 #. type: =head2
13701 #: ../src/guestfs-actions.pod:4516
13702 msgid "guestfs_mkmountpoint"
13703 msgstr ""
13704
13705 #. type: verbatim
13706 #: ../src/guestfs-actions.pod:4518
13707 #, no-wrap
13708 msgid ""
13709 " int\n"
13710 " guestfs_mkmountpoint (guestfs_h *g,\n"
13711 "                       const char *exemptpath);\n"
13712 "\n"
13713 msgstr ""
13714
13715 #. type: textblock
13716 #: ../src/guestfs-actions.pod:4522
13717 msgid ""
13718 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
13719 "that can be used to create extra mountpoints before mounting the first "
13720 "filesystem."
13721 msgstr ""
13722
13723 #. type: textblock
13724 #: ../src/guestfs-actions.pod:4526 ../fish/guestfish-actions.pod:3062
13725 msgid ""
13726 "These calls are I<only> necessary in some very limited circumstances, mainly "
13727 "the case where you want to mount a mix of unrelated and/or read-only "
13728 "filesystems together."
13729 msgstr ""
13730
13731 #. type: textblock
13732 #: ../src/guestfs-actions.pod:4530 ../fish/guestfish-actions.pod:3066
13733 msgid ""
13734 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13735 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13736 "inside that.  You can unpack this as follows in guestfish:"
13737 msgstr ""
13738
13739 #. type: verbatim
13740 #: ../src/guestfs-actions.pod:4535 ../fish/guestfish-actions.pod:3071
13741 #, no-wrap
13742 msgid ""
13743 " add-ro Fedora-11-i686-Live.iso\n"
13744 " run\n"
13745 " mkmountpoint /cd\n"
13746 " mkmountpoint /sqsh\n"
13747 " mkmountpoint /ext3fs\n"
13748 " mount /dev/sda /cd\n"
13749 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13750 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13751 "\n"
13752 msgstr ""
13753
13754 #. type: textblock
13755 #: ../src/guestfs-actions.pod:4544 ../fish/guestfish-actions.pod:3080
13756 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13757 msgstr ""
13758
13759 #. type: textblock
13760 #: ../src/guestfs-actions.pod:4546
13761 msgid ""
13762 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
13763 "may get unexpected errors if you try to mix these calls.  It is safest to "
13764 "manually unmount filesystems and remove mountpoints after use."
13765 msgstr ""
13766
13767 #. type: textblock
13768 #: ../src/guestfs-actions.pod:4550
13769 msgid ""
13770 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
13771 "first, so for this to work for manual mountpoints, you must ensure that the "
13772 "innermost mountpoints have the longest pathnames, as in the example code "
13773 "above."
13774 msgstr ""
13775
13776 #. type: textblock
13777 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3091
13778 msgid ""
13779 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13780 msgstr ""
13781
13782 #. type: textblock
13783 #: ../src/guestfs-actions.pod:4557
13784 msgid ""
13785 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
13786 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
13787 "can also trigger these issues."
13788 msgstr ""
13789
13790 #. type: textblock
13791 #: ../src/guestfs-actions.pod:4563 ../src/guestfs-actions.pod:4822
13792 #: ../src/guestfs-actions.pod:5732
13793 msgid "(Added in 1.0.62)"
13794 msgstr ""
13795
13796 #. type: =head2
13797 #: ../src/guestfs-actions.pod:4565
13798 msgid "guestfs_mknod"
13799 msgstr ""
13800
13801 #. type: verbatim
13802 #: ../src/guestfs-actions.pod:4567
13803 #, no-wrap
13804 msgid ""
13805 " int\n"
13806 " guestfs_mknod (guestfs_h *g,\n"
13807 "                int mode,\n"
13808 "                int devmajor,\n"
13809 "                int devminor,\n"
13810 "                const char *path);\n"
13811 "\n"
13812 msgstr ""
13813
13814 #. type: textblock
13815 #: ../src/guestfs-actions.pod:4574 ../fish/guestfish-actions.pod:3101
13816 msgid ""
13817 "This call creates block or character special devices, or named pipes (FIFOs)."
13818 msgstr ""
13819
13820 #. type: textblock
13821 #: ../src/guestfs-actions.pod:4577 ../fish/guestfish-actions.pod:3104
13822 msgid ""
13823 "The C<mode> parameter should be the mode, using the standard constants.  "
13824 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13825 "used when creating block and character special devices."
13826 msgstr ""
13827
13828 #. type: textblock
13829 #: ../src/guestfs-actions.pod:4582
13830 msgid ""
13831 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13832 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13833 "regular file).  These constants are available in the standard Linux header "
13834 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
13835 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
13836 "the appropriate constant for you."
13837 msgstr ""
13838
13839 #. type: =head2
13840 #: ../src/guestfs-actions.pod:4596
13841 msgid "guestfs_mknod_b"
13842 msgstr ""
13843
13844 #. type: verbatim
13845 #: ../src/guestfs-actions.pod:4598
13846 #, no-wrap
13847 msgid ""
13848 " int\n"
13849 " guestfs_mknod_b (guestfs_h *g,\n"
13850 "                  int mode,\n"
13851 "                  int devmajor,\n"
13852 "                  int devminor,\n"
13853 "                  const char *path);\n"
13854 "\n"
13855 msgstr ""
13856
13857 #. type: textblock
13858 #: ../src/guestfs-actions.pod:4605
13859 msgid ""
13860 "This call creates a block device node called C<path> with mode C<mode> and "
13861 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13862 "wrapper around C<guestfs_mknod>."
13863 msgstr ""
13864
13865 #. type: =head2
13866 #: ../src/guestfs-actions.pod:4615
13867 msgid "guestfs_mknod_c"
13868 msgstr ""
13869
13870 #. type: verbatim
13871 #: ../src/guestfs-actions.pod:4617
13872 #, no-wrap
13873 msgid ""
13874 " int\n"
13875 " guestfs_mknod_c (guestfs_h *g,\n"
13876 "                  int mode,\n"
13877 "                  int devmajor,\n"
13878 "                  int devminor,\n"
13879 "                  const char *path);\n"
13880 "\n"
13881 msgstr ""
13882
13883 #. type: textblock
13884 #: ../src/guestfs-actions.pod:4624
13885 msgid ""
13886 "This call creates a char device node called C<path> with mode C<mode> and "
13887 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13888 "wrapper around C<guestfs_mknod>."
13889 msgstr ""
13890
13891 #. type: =head2
13892 #: ../src/guestfs-actions.pod:4634
13893 msgid "guestfs_mkswap"
13894 msgstr ""
13895
13896 #. type: verbatim
13897 #: ../src/guestfs-actions.pod:4636
13898 #, no-wrap
13899 msgid ""
13900 " int\n"
13901 " guestfs_mkswap (guestfs_h *g,\n"
13902 "                 const char *device);\n"
13903 "\n"
13904 msgstr ""
13905
13906 #. type: textblock
13907 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3143
13908 msgid "Create a swap partition on C<device>."
13909 msgstr ""
13910
13911 #. type: =head2
13912 #: ../src/guestfs-actions.pod:4646
13913 msgid "guestfs_mkswap_L"
13914 msgstr ""
13915
13916 #. type: verbatim
13917 #: ../src/guestfs-actions.pod:4648
13918 #, no-wrap
13919 msgid ""
13920 " int\n"
13921 " guestfs_mkswap_L (guestfs_h *g,\n"
13922 "                   const char *label,\n"
13923 "                   const char *device);\n"
13924 "\n"
13925 msgstr ""
13926
13927 #. type: textblock
13928 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3149
13929 msgid "Create a swap partition on C<device> with label C<label>."
13930 msgstr ""
13931
13932 #. type: textblock
13933 #: ../src/guestfs-actions.pod:4655 ../fish/guestfish-actions.pod:3151
13934 msgid ""
13935 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13936 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13937 "or swap tools."
13938 msgstr ""
13939
13940 #. type: =head2
13941 #: ../src/guestfs-actions.pod:4663
13942 msgid "guestfs_mkswap_U"
13943 msgstr ""
13944
13945 #. type: verbatim
13946 #: ../src/guestfs-actions.pod:4665
13947 #, no-wrap
13948 msgid ""
13949 " int\n"
13950 " guestfs_mkswap_U (guestfs_h *g,\n"
13951 "                   const char *uuid,\n"
13952 "                   const char *device);\n"
13953 "\n"
13954 msgstr ""
13955
13956 #. type: textblock
13957 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3159
13958 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13959 msgstr ""
13960
13961 #. type: =head2
13962 #: ../src/guestfs-actions.pod:4676
13963 msgid "guestfs_mkswap_file"
13964 msgstr ""
13965
13966 #. type: verbatim
13967 #: ../src/guestfs-actions.pod:4678
13968 #, no-wrap
13969 msgid ""
13970 " int\n"
13971 " guestfs_mkswap_file (guestfs_h *g,\n"
13972 "                      const char *path);\n"
13973 "\n"
13974 msgstr ""
13975
13976 #. type: textblock
13977 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3165
13978 msgid "Create a swap file."
13979 msgstr ""
13980
13981 #. type: textblock
13982 #: ../src/guestfs-actions.pod:4684
13983 msgid ""
13984 "This command just writes a swap file signature to an existing file.  To "
13985 "create the file itself, use something like C<guestfs_fallocate>."
13986 msgstr ""
13987
13988 #. type: =head2
13989 #: ../src/guestfs-actions.pod:4691
13990 msgid "guestfs_modprobe"
13991 msgstr ""
13992
13993 #. type: verbatim
13994 #: ../src/guestfs-actions.pod:4693
13995 #, no-wrap
13996 msgid ""
13997 " int\n"
13998 " guestfs_modprobe (guestfs_h *g,\n"
13999 "                   const char *modulename);\n"
14000 "\n"
14001 msgstr ""
14002
14003 #. type: textblock
14004 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3174
14005 msgid "This loads a kernel module in the appliance."
14006 msgstr ""
14007
14008 #. type: textblock
14009 #: ../src/guestfs-actions.pod:4699 ../fish/guestfish-actions.pod:3176
14010 msgid ""
14011 "The kernel module must have been whitelisted when libguestfs was built (see "
14012 "C<appliance/kmod.whitelist.in> in the source)."
14013 msgstr ""
14014
14015 #. type: =head2
14016 #: ../src/guestfs-actions.pod:4706
14017 msgid "guestfs_mount"
14018 msgstr ""
14019
14020 #. type: verbatim
14021 #: ../src/guestfs-actions.pod:4708
14022 #, no-wrap
14023 msgid ""
14024 " int\n"
14025 " guestfs_mount (guestfs_h *g,\n"
14026 "                const char *device,\n"
14027 "                const char *mountpoint);\n"
14028 "\n"
14029 msgstr ""
14030
14031 #. type: textblock
14032 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3183
14033 msgid ""
14034 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14035 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14036 "those block devices contain partitions, they will have the usual names (eg. "
14037 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14038 msgstr ""
14039
14040 #. type: textblock
14041 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3189
14042 msgid ""
14043 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14044 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14045 "mounted on directories which already exist."
14046 msgstr ""
14047
14048 #. type: textblock
14049 #: ../src/guestfs-actions.pod:4724 ../fish/guestfish-actions.pod:3194
14050 msgid ""
14051 "The mounted filesystem is writable, if we have sufficient permissions on the "
14052 "underlying device."
14053 msgstr ""
14054
14055 #. type: textblock
14056 #: ../src/guestfs-actions.pod:4727
14057 msgid ""
14058 "B<Important note:> When you use this call, the filesystem options C<sync> "
14059 "and C<noatime> are set implicitly.  This was originally done because we "
14060 "thought it would improve reliability, but it turns out that I<-o sync> has a "
14061 "very large negative performance impact and negligible effect on "
14062 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
14063 "in any code that needs performance, and instead use C<guestfs_mount_options> "
14064 "(use an empty string for the first parameter if you don't want any options)."
14065 msgstr ""
14066
14067 #. type: =head2
14068 #: ../src/guestfs-actions.pod:4741
14069 msgid "guestfs_mount_loop"
14070 msgstr ""
14071
14072 #. type: verbatim
14073 #: ../src/guestfs-actions.pod:4743
14074 #, no-wrap
14075 msgid ""
14076 " int\n"
14077 " guestfs_mount_loop (guestfs_h *g,\n"
14078 "                     const char *file,\n"
14079 "                     const char *mountpoint);\n"
14080 "\n"
14081 msgstr ""
14082
14083 #. type: textblock
14084 #: ../src/guestfs-actions.pod:4748 ../fish/guestfish-actions.pod:3211
14085 msgid ""
14086 "This command lets you mount C<file> (a filesystem image in a file) on a "
14087 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14088 "mountpoint>."
14089 msgstr ""
14090
14091 #. type: =head2
14092 #: ../src/guestfs-actions.pod:4756
14093 msgid "guestfs_mount_options"
14094 msgstr ""
14095
14096 #. type: verbatim
14097 #: ../src/guestfs-actions.pod:4758
14098 #, no-wrap
14099 msgid ""
14100 " int\n"
14101 " guestfs_mount_options (guestfs_h *g,\n"
14102 "                        const char *options,\n"
14103 "                        const char *device,\n"
14104 "                        const char *mountpoint);\n"
14105 "\n"
14106 msgstr ""
14107
14108 #. type: textblock
14109 #: ../src/guestfs-actions.pod:4764
14110 msgid ""
14111 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14112 "the mount options as for the L<mount(8)> I<-o> flag."
14113 msgstr ""
14114
14115 #. type: textblock
14116 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3223
14117 msgid ""
14118 "If the C<options> parameter is an empty string, then no options are passed "
14119 "(all options default to whatever the filesystem uses)."
14120 msgstr ""
14121
14122 #. type: textblock
14123 #: ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4788
14124 #: ../src/guestfs-actions.pod:4805
14125 msgid "(Added in 1.0.10)"
14126 msgstr ""
14127
14128 #. type: =head2
14129 #: ../src/guestfs-actions.pod:4776
14130 msgid "guestfs_mount_ro"
14131 msgstr ""
14132
14133 #. type: verbatim
14134 #: ../src/guestfs-actions.pod:4778
14135 #, no-wrap
14136 msgid ""
14137 " int\n"
14138 " guestfs_mount_ro (guestfs_h *g,\n"
14139 "                   const char *device,\n"
14140 "                   const char *mountpoint);\n"
14141 "\n"
14142 msgstr ""
14143
14144 #. type: textblock
14145 #: ../src/guestfs-actions.pod:4783
14146 msgid ""
14147 "This is the same as the C<guestfs_mount> command, but it mounts the "
14148 "filesystem with the read-only (I<-o ro>) flag."
14149 msgstr ""
14150
14151 #. type: =head2
14152 #: ../src/guestfs-actions.pod:4790
14153 msgid "guestfs_mount_vfs"
14154 msgstr ""
14155
14156 #. type: verbatim
14157 #: ../src/guestfs-actions.pod:4792
14158 #, no-wrap
14159 msgid ""
14160 " int\n"
14161 " guestfs_mount_vfs (guestfs_h *g,\n"
14162 "                    const char *options,\n"
14163 "                    const char *vfstype,\n"
14164 "                    const char *device,\n"
14165 "                    const char *mountpoint);\n"
14166 "\n"
14167 msgstr ""
14168
14169 #. type: textblock
14170 #: ../src/guestfs-actions.pod:4799
14171 msgid ""
14172 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14173 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
14174 "t> flags."
14175 msgstr ""
14176
14177 #. type: =head2
14178 #: ../src/guestfs-actions.pod:4807
14179 msgid "guestfs_mountpoints"
14180 msgstr ""
14181
14182 #. type: verbatim
14183 #: ../src/guestfs-actions.pod:4809
14184 #, no-wrap
14185 msgid ""
14186 " char **\n"
14187 " guestfs_mountpoints (guestfs_h *g);\n"
14188 "\n"
14189 msgstr ""
14190
14191 #. type: textblock
14192 #: ../src/guestfs-actions.pod:4812
14193 msgid ""
14194 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
14195 "devices.  This one returns a hash table (map) of device name to directory "
14196 "where the device is mounted."
14197 msgstr ""
14198
14199 #. type: =head2
14200 #: ../src/guestfs-actions.pod:4824
14201 msgid "guestfs_mounts"
14202 msgstr ""
14203
14204 #. type: verbatim
14205 #: ../src/guestfs-actions.pod:4826
14206 #, no-wrap
14207 msgid ""
14208 " char **\n"
14209 " guestfs_mounts (guestfs_h *g);\n"
14210 "\n"
14211 msgstr ""
14212
14213 #. type: textblock
14214 #: ../src/guestfs-actions.pod:4829 ../fish/guestfish-actions.pod:3254
14215 msgid ""
14216 "This returns the list of currently mounted filesystems.  It returns the list "
14217 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14218 msgstr ""
14219
14220 #. type: textblock
14221 #: ../src/guestfs-actions.pod:4832 ../fish/guestfish-actions.pod:3257
14222 msgid "Some internal mounts are not shown."
14223 msgstr ""
14224
14225 #. type: textblock
14226 #: ../src/guestfs-actions.pod:4834
14227 msgid "See also: C<guestfs_mountpoints>"
14228 msgstr ""
14229
14230 #. type: =head2
14231 #: ../src/guestfs-actions.pod:4842
14232 msgid "guestfs_mv"
14233 msgstr ""
14234
14235 #. type: verbatim
14236 #: ../src/guestfs-actions.pod:4844
14237 #, no-wrap
14238 msgid ""
14239 " int\n"
14240 " guestfs_mv (guestfs_h *g,\n"
14241 "             const char *src,\n"
14242 "             const char *dest);\n"
14243 "\n"
14244 msgstr ""
14245
14246 #. type: textblock
14247 #: ../src/guestfs-actions.pod:4849 ../fish/guestfish-actions.pod:3265
14248 msgid ""
14249 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14250 "destination filename or destination directory."
14251 msgstr ""
14252
14253 #. type: =head2
14254 #: ../src/guestfs-actions.pod:4856
14255 msgid "guestfs_ntfs_3g_probe"
14256 msgstr ""
14257
14258 #. type: verbatim
14259 #: ../src/guestfs-actions.pod:4858
14260 #, no-wrap
14261 msgid ""
14262 " int\n"
14263 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
14264 "                        int rw,\n"
14265 "                        const char *device);\n"
14266 "\n"
14267 msgstr ""
14268
14269 #. type: textblock
14270 #: ../src/guestfs-actions.pod:4863 ../fish/guestfish-actions.pod:3272
14271 msgid ""
14272 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14273 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14274 "write, and some cannot be mounted at all)."
14275 msgstr ""
14276
14277 #. type: textblock
14278 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3276
14279 msgid ""
14280 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14281 "can be mounted read-write.  Set it to false if you want to test if the "
14282 "volume can be mounted read-only."
14283 msgstr ""
14284
14285 #. type: textblock
14286 #: ../src/guestfs-actions.pod:4871 ../fish/guestfish-actions.pod:3280
14287 msgid ""
14288 "The return value is an integer which C<0> if the operation would succeed, or "
14289 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14290 msgstr ""
14291
14292 #. type: textblock
14293 #: ../src/guestfs-actions.pod:4877
14294 msgid "(Added in 1.0.43)"
14295 msgstr ""
14296
14297 #. type: =head2
14298 #: ../src/guestfs-actions.pod:4879
14299 msgid "guestfs_ntfsresize"
14300 msgstr ""
14301
14302 #. type: verbatim
14303 #: ../src/guestfs-actions.pod:4881
14304 #, no-wrap
14305 msgid ""
14306 " int\n"
14307 " guestfs_ntfsresize (guestfs_h *g,\n"
14308 "                     const char *device);\n"
14309 "\n"
14310 msgstr ""
14311
14312 #. type: textblock
14313 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3288
14314 msgid ""
14315 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14316 "size of the underlying device.  See also L<ntfsresize(8)>."
14317 msgstr ""
14318
14319 #. type: =head2
14320 #: ../src/guestfs-actions.pod:4893
14321 msgid "guestfs_ntfsresize_size"
14322 msgstr ""
14323
14324 #. type: verbatim
14325 #: ../src/guestfs-actions.pod:4895
14326 #, no-wrap
14327 msgid ""
14328 " int\n"
14329 " guestfs_ntfsresize_size (guestfs_h *g,\n"
14330 "                          const char *device,\n"
14331 "                          int64_t size);\n"
14332 "\n"
14333 msgstr ""
14334
14335 #. type: textblock
14336 #: ../src/guestfs-actions.pod:4900
14337 msgid ""
14338 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
14339 "to specify the new size (in bytes) explicitly."
14340 msgstr ""
14341
14342 #. type: textblock
14343 #: ../src/guestfs-actions.pod:4905 ../src/guestfs-actions.pod:5341
14344 #: ../src/guestfs-actions.pod:5414 ../src/guestfs-actions.pod:5680
14345 #: ../src/guestfs-actions.pod:7251
14346 msgid "(Added in 1.3.14)"
14347 msgstr ""
14348
14349 #. type: =head2
14350 #: ../src/guestfs-actions.pod:4907
14351 msgid "guestfs_part_add"
14352 msgstr ""
14353
14354 #. type: verbatim
14355 #: ../src/guestfs-actions.pod:4909
14356 #, no-wrap
14357 msgid ""
14358 " int\n"
14359 " guestfs_part_add (guestfs_h *g,\n"
14360 "                   const char *device,\n"
14361 "                   const char *prlogex,\n"
14362 "                   int64_t startsect,\n"
14363 "                   int64_t endsect);\n"
14364 "\n"
14365 msgstr ""
14366
14367 #. type: textblock
14368 #: ../src/guestfs-actions.pod:4916
14369 msgid ""
14370 "This command adds a partition to C<device>.  If there is no partition table "
14371 "on the device, call C<guestfs_part_init> first."
14372 msgstr ""
14373
14374 #. type: textblock
14375 #: ../src/guestfs-actions.pod:4919 ../fish/guestfish-actions.pod:3306
14376 msgid ""
14377 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14378 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14379 "C<logical>) and C<e> (or C<extended>) partition types."
14380 msgstr ""
14381
14382 #. type: textblock
14383 #: ../src/guestfs-actions.pod:4924 ../fish/guestfish-actions.pod:3311
14384 msgid ""
14385 "C<startsect> and C<endsect> are the start and end of the partition in "
14386 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14387 "from the end of the disk (C<-1> is the last sector)."
14388 msgstr ""
14389
14390 #. type: textblock
14391 #: ../src/guestfs-actions.pod:4928
14392 msgid ""
14393 "Creating a partition which covers the whole disk is not so easy.  Use "
14394 "C<guestfs_part_disk> to do that."
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../src/guestfs-actions.pod:4933 ../src/guestfs-actions.pod:4971
14399 #: ../src/guestfs-actions.pod:5024 ../src/guestfs-actions.pod:5102
14400 #: ../src/guestfs-actions.pod:5140 ../src/guestfs-actions.pod:5159
14401 #: ../src/guestfs-actions.pod:5199
14402 msgid "(Added in 1.0.78)"
14403 msgstr ""
14404
14405 #. type: =head2
14406 #: ../src/guestfs-actions.pod:4935
14407 msgid "guestfs_part_del"
14408 msgstr ""
14409
14410 #. type: verbatim
14411 #: ../src/guestfs-actions.pod:4937
14412 #, no-wrap
14413 msgid ""
14414 " int\n"
14415 " guestfs_part_del (guestfs_h *g,\n"
14416 "                   const char *device,\n"
14417 "                   int partnum);\n"
14418 "\n"
14419 msgstr ""
14420
14421 #. type: textblock
14422 #: ../src/guestfs-actions.pod:4942 ../fish/guestfish-actions.pod:3322
14423 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14424 msgstr ""
14425
14426 #. type: textblock
14427 #: ../src/guestfs-actions.pod:4944 ../fish/guestfish-actions.pod:3324
14428 msgid ""
14429 "Note that in the case of MBR partitioning, deleting an extended partition "
14430 "also deletes any logical partitions it contains."
14431 msgstr ""
14432
14433 #. type: =head2
14434 #: ../src/guestfs-actions.pod:4952
14435 msgid "guestfs_part_disk"
14436 msgstr ""
14437
14438 #. type: verbatim
14439 #: ../src/guestfs-actions.pod:4954
14440 #, no-wrap
14441 msgid ""
14442 " int\n"
14443 " guestfs_part_disk (guestfs_h *g,\n"
14444 "                    const char *device,\n"
14445 "                    const char *parttype);\n"
14446 "\n"
14447 msgstr ""
14448
14449 #. type: textblock
14450 #: ../src/guestfs-actions.pod:4959
14451 msgid ""
14452 "This command is simply a combination of C<guestfs_part_init> followed by "
14453 "C<guestfs_part_add> to create a single primary partition covering the whole "
14454 "disk."
14455 msgstr ""
14456
14457 #. type: textblock
14458 #: ../src/guestfs-actions.pod:4963
14459 msgid ""
14460 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14461 "possible values are described in C<guestfs_part_init>."
14462 msgstr ""
14463
14464 #. type: =head2
14465 #: ../src/guestfs-actions.pod:4973
14466 msgid "guestfs_part_get_bootable"
14467 msgstr ""
14468
14469 #. type: verbatim
14470 #: ../src/guestfs-actions.pod:4975
14471 #, no-wrap
14472 msgid ""
14473 " int\n"
14474 " guestfs_part_get_bootable (guestfs_h *g,\n"
14475 "                            const char *device,\n"
14476 "                            int partnum);\n"
14477 "\n"
14478 msgstr ""
14479
14480 #. type: textblock
14481 #: ../src/guestfs-actions.pod:4980 ../fish/guestfish-actions.pod:3346
14482 msgid ""
14483 "This command returns true if the partition C<partnum> on C<device> has the "
14484 "bootable flag set."
14485 msgstr ""
14486
14487 #. type: textblock
14488 #: ../src/guestfs-actions.pod:4983
14489 msgid "See also C<guestfs_part_set_bootable>."
14490 msgstr ""
14491
14492 #. type: =head2
14493 #: ../src/guestfs-actions.pod:4989
14494 msgid "guestfs_part_get_mbr_id"
14495 msgstr ""
14496
14497 #. type: verbatim
14498 #: ../src/guestfs-actions.pod:4991
14499 #, no-wrap
14500 msgid ""
14501 " int\n"
14502 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
14503 "                          const char *device,\n"
14504 "                          int partnum);\n"
14505 "\n"
14506 msgstr ""
14507
14508 #. type: textblock
14509 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3355
14510 msgid ""
14511 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14512 "partition C<partnum>."
14513 msgstr ""
14514
14515 #. type: textblock
14516 #: ../src/guestfs-actions.pod:4999 ../src/guestfs-actions.pod:5175
14517 msgid ""
14518 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14519 "undefined results for other partition table types (see "
14520 "C<guestfs_part_get_parttype>)."
14521 msgstr ""
14522
14523 #. type: =head2
14524 #: ../src/guestfs-actions.pod:5007
14525 msgid "guestfs_part_get_parttype"
14526 msgstr ""
14527
14528 #. type: verbatim
14529 #: ../src/guestfs-actions.pod:5009
14530 #, no-wrap
14531 msgid ""
14532 " char *\n"
14533 " guestfs_part_get_parttype (guestfs_h *g,\n"
14534 "                            const char *device);\n"
14535 "\n"
14536 msgstr ""
14537
14538 #. type: textblock
14539 #: ../src/guestfs-actions.pod:5013 ../fish/guestfish-actions.pod:3366
14540 msgid ""
14541 "This command examines the partition table on C<device> and returns the "
14542 "partition table type (format) being used."
14543 msgstr ""
14544
14545 #. type: textblock
14546 #: ../src/guestfs-actions.pod:5016
14547 msgid ""
14548 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14549 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14550 "possible, although unusual.  See C<guestfs_part_init> for a full list."
14551 msgstr ""
14552
14553 #. type: =head2
14554 #: ../src/guestfs-actions.pod:5026
14555 msgid "guestfs_part_init"
14556 msgstr ""
14557
14558 #. type: verbatim
14559 #: ../src/guestfs-actions.pod:5028
14560 #, no-wrap
14561 msgid ""
14562 " int\n"
14563 " guestfs_part_init (guestfs_h *g,\n"
14564 "                    const char *device,\n"
14565 "                    const char *parttype);\n"
14566 "\n"
14567 msgstr ""
14568
14569 #. type: textblock
14570 #: ../src/guestfs-actions.pod:5033 ../fish/guestfish-actions.pod:3378
14571 msgid ""
14572 "This creates an empty partition table on C<device> of one of the partition "
14573 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14574 "(for large disks)."
14575 msgstr ""
14576
14577 #. type: textblock
14578 #: ../src/guestfs-actions.pod:5037
14579 msgid ""
14580 "Initially there are no partitions.  Following this, you should call "
14581 "C<guestfs_part_add> for each partition required."
14582 msgstr ""
14583
14584 #. type: textblock
14585 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3385
14586 msgid "Possible values for C<parttype> are:"
14587 msgstr ""
14588
14589 #. type: =item
14590 #: ../src/guestfs-actions.pod:5044 ../fish/guestfish-actions.pod:3389
14591 msgid "B<efi> | B<gpt>"
14592 msgstr ""
14593
14594 #. type: textblock
14595 #: ../src/guestfs-actions.pod:5046 ../fish/guestfish-actions.pod:3391
14596 msgid "Intel EFI / GPT partition table."
14597 msgstr ""
14598
14599 #. type: textblock
14600 #: ../src/guestfs-actions.pod:5048 ../fish/guestfish-actions.pod:3393
14601 msgid ""
14602 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14603 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14604 "the C<mbr> format."
14605 msgstr ""
14606
14607 #. type: =item
14608 #: ../src/guestfs-actions.pod:5052 ../fish/guestfish-actions.pod:3397
14609 msgid "B<mbr> | B<msdos>"
14610 msgstr ""
14611
14612 #. type: textblock
14613 #: ../src/guestfs-actions.pod:5054 ../fish/guestfish-actions.pod:3399
14614 msgid ""
14615 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14616 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14617 "TB.  For large disks we recommend using C<gpt>."
14618 msgstr ""
14619
14620 #. type: textblock
14621 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3406
14622 msgid ""
14623 "Other partition table types that may work but are not supported include:"
14624 msgstr ""
14625
14626 #. type: =item
14627 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3411
14628 msgid "B<aix>"
14629 msgstr ""
14630
14631 #. type: textblock
14632 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3413
14633 msgid "AIX disk labels."
14634 msgstr ""
14635
14636 #. type: =item
14637 #: ../src/guestfs-actions.pod:5070 ../fish/guestfish-actions.pod:3415
14638 msgid "B<amiga> | B<rdb>"
14639 msgstr ""
14640
14641 #. type: textblock
14642 #: ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:3417
14643 msgid "Amiga \"Rigid Disk Block\" format."
14644 msgstr ""
14645
14646 #. type: =item
14647 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3419
14648 msgid "B<bsd>"
14649 msgstr ""
14650
14651 #. type: textblock
14652 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3421
14653 msgid "BSD disk labels."
14654 msgstr ""
14655
14656 #. type: =item
14657 #: ../src/guestfs-actions.pod:5078 ../fish/guestfish-actions.pod:3423
14658 msgid "B<dasd>"
14659 msgstr ""
14660
14661 #. type: textblock
14662 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3425
14663 msgid "DASD, used on IBM mainframes."
14664 msgstr ""
14665
14666 #. type: =item
14667 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3427
14668 msgid "B<dvh>"
14669 msgstr ""
14670
14671 #. type: textblock
14672 #: ../src/guestfs-actions.pod:5084 ../fish/guestfish-actions.pod:3429
14673 msgid "MIPS/SGI volumes."
14674 msgstr ""
14675
14676 #. type: =item
14677 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3431
14678 msgid "B<mac>"
14679 msgstr ""
14680
14681 #. type: textblock
14682 #: ../src/guestfs-actions.pod:5088 ../fish/guestfish-actions.pod:3433
14683 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14684 msgstr ""
14685
14686 #. type: =item
14687 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3435
14688 msgid "B<pc98>"
14689 msgstr ""
14690
14691 #. type: textblock
14692 #: ../src/guestfs-actions.pod:5092 ../fish/guestfish-actions.pod:3437
14693 msgid "NEC PC-98 format, common in Japan apparently."
14694 msgstr ""
14695
14696 #. type: =item
14697 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3439
14698 msgid "B<sun>"
14699 msgstr ""
14700
14701 #. type: textblock
14702 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3441
14703 msgid "Sun disk labels."
14704 msgstr ""
14705
14706 #. type: =head2
14707 #: ../src/guestfs-actions.pod:5104
14708 msgid "guestfs_part_list"
14709 msgstr ""
14710
14711 #. type: verbatim
14712 #: ../src/guestfs-actions.pod:5106
14713 #, no-wrap
14714 msgid ""
14715 " struct guestfs_partition_list *\n"
14716 " guestfs_part_list (guestfs_h *g,\n"
14717 "                    const char *device);\n"
14718 "\n"
14719 msgstr ""
14720
14721 #. type: textblock
14722 #: ../src/guestfs-actions.pod:5110 ../fish/guestfish-actions.pod:3449
14723 msgid ""
14724 "This command parses the partition table on C<device> and returns the list of "
14725 "partitions found."
14726 msgstr ""
14727
14728 #. type: textblock
14729 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3452
14730 msgid "The fields in the returned structure are:"
14731 msgstr ""
14732
14733 #. type: =item
14734 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3456
14735 msgid "B<part_num>"
14736 msgstr ""
14737
14738 #. type: textblock
14739 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3458
14740 msgid "Partition number, counting from 1."
14741 msgstr ""
14742
14743 #. type: =item
14744 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3460
14745 msgid "B<part_start>"
14746 msgstr ""
14747
14748 #. type: textblock
14749 #: ../src/guestfs-actions.pod:5123
14750 msgid ""
14751 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14752 "the device's sector size, see C<guestfs_blockdev_getss>."
14753 msgstr ""
14754
14755 #. type: =item
14756 #: ../src/guestfs-actions.pod:5126 ../fish/guestfish-actions.pod:3465
14757 msgid "B<part_end>"
14758 msgstr ""
14759
14760 #. type: textblock
14761 #: ../src/guestfs-actions.pod:5128 ../fish/guestfish-actions.pod:3467
14762 msgid "End of the partition in bytes."
14763 msgstr ""
14764
14765 #. type: =item
14766 #: ../src/guestfs-actions.pod:5130 ../fish/guestfish-actions.pod:3469
14767 msgid "B<part_size>"
14768 msgstr ""
14769
14770 #. type: textblock
14771 #: ../src/guestfs-actions.pod:5132 ../fish/guestfish-actions.pod:3471
14772 msgid "Size of the partition in bytes."
14773 msgstr ""
14774
14775 #. type: textblock
14776 #: ../src/guestfs-actions.pod:5136
14777 msgid ""
14778 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
14779 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
14780 "use>."
14781 msgstr ""
14782
14783 #. type: =head2
14784 #: ../src/guestfs-actions.pod:5142
14785 msgid "guestfs_part_set_bootable"
14786 msgstr ""
14787
14788 #. type: verbatim
14789 #: ../src/guestfs-actions.pod:5144
14790 #, no-wrap
14791 msgid ""
14792 " int\n"
14793 " guestfs_part_set_bootable (guestfs_h *g,\n"
14794 "                            const char *device,\n"
14795 "                            int partnum,\n"
14796 "                            int bootable);\n"
14797 "\n"
14798 msgstr ""
14799
14800 #. type: textblock
14801 #: ../src/guestfs-actions.pod:5150 ../fish/guestfish-actions.pod:3479
14802 msgid ""
14803 "This sets the bootable flag on partition numbered C<partnum> on device "
14804 "C<device>.  Note that partitions are numbered from 1."
14805 msgstr ""
14806
14807 #. type: textblock
14808 #: ../src/guestfs-actions.pod:5153 ../fish/guestfish-actions.pod:3482
14809 msgid ""
14810 "The bootable flag is used by some operating systems (notably Windows) to "
14811 "determine which partition to boot from.  It is by no means universally "
14812 "recognized."
14813 msgstr ""
14814
14815 #. type: =head2
14816 #: ../src/guestfs-actions.pod:5161
14817 msgid "guestfs_part_set_mbr_id"
14818 msgstr ""
14819
14820 #. type: verbatim
14821 #: ../src/guestfs-actions.pod:5163
14822 #, no-wrap
14823 msgid ""
14824 " int\n"
14825 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
14826 "                          const char *device,\n"
14827 "                          int partnum,\n"
14828 "                          int idbyte);\n"
14829 "\n"
14830 msgstr ""
14831
14832 #. type: textblock
14833 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:3490
14834 msgid ""
14835 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14836 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14837 "documentation are in fact hexadecimal numbers, but usually documented "
14838 "without any leading \"0x\" which might be confusing."
14839 msgstr ""
14840
14841 #. type: =head2
14842 #: ../src/guestfs-actions.pod:5183
14843 msgid "guestfs_part_set_name"
14844 msgstr ""
14845
14846 #. type: verbatim
14847 #: ../src/guestfs-actions.pod:5185
14848 #, no-wrap
14849 msgid ""
14850 " int\n"
14851 " guestfs_part_set_name (guestfs_h *g,\n"
14852 "                        const char *device,\n"
14853 "                        int partnum,\n"
14854 "                        const char *name);\n"
14855 "\n"
14856 msgstr ""
14857
14858 #. type: textblock
14859 #: ../src/guestfs-actions.pod:5191 ../fish/guestfish-actions.pod:3504
14860 msgid ""
14861 "This sets the partition name on partition numbered C<partnum> on device "
14862 "C<device>.  Note that partitions are numbered from 1."
14863 msgstr ""
14864
14865 #. type: textblock
14866 #: ../src/guestfs-actions.pod:5194 ../fish/guestfish-actions.pod:3507
14867 msgid ""
14868 "The partition name can only be set on certain types of partition table.  "
14869 "This works on C<gpt> but not on C<mbr> partitions."
14870 msgstr ""
14871
14872 #. type: =head2
14873 #: ../src/guestfs-actions.pod:5201
14874 msgid "guestfs_part_to_dev"
14875 msgstr ""
14876
14877 #. type: verbatim
14878 #: ../src/guestfs-actions.pod:5203
14879 #, no-wrap
14880 msgid ""
14881 " char *\n"
14882 " guestfs_part_to_dev (guestfs_h *g,\n"
14883 "                      const char *partition);\n"
14884 "\n"
14885 msgstr ""
14886
14887 #. type: textblock
14888 #: ../src/guestfs-actions.pod:5207 ../fish/guestfish-actions.pod:3514
14889 msgid ""
14890 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14891 "partition number, returning the device name (eg. \"/dev/sdb\")."
14892 msgstr ""
14893
14894 #. type: textblock
14895 #: ../src/guestfs-actions.pod:5211
14896 msgid ""
14897 "The named partition must exist, for example as a string returned from "
14898 "C<guestfs_list_partitions>."
14899 msgstr ""
14900
14901 #. type: =head2
14902 #: ../src/guestfs-actions.pod:5219
14903 msgid "guestfs_ping_daemon"
14904 msgstr ""
14905
14906 #. type: verbatim
14907 #: ../src/guestfs-actions.pod:5221
14908 #, no-wrap
14909 msgid ""
14910 " int\n"
14911 " guestfs_ping_daemon (guestfs_h *g);\n"
14912 "\n"
14913 msgstr ""
14914
14915 #. type: textblock
14916 #: ../src/guestfs-actions.pod:5224 ../fish/guestfish-actions.pod:3525
14917 msgid ""
14918 "This is a test probe into the guestfs daemon running inside the qemu "
14919 "subprocess.  Calling this function checks that the daemon responds to the "
14920 "ping message, without affecting the daemon or attached block device(s) in "
14921 "any other way."
14922 msgstr ""
14923
14924 #. type: =head2
14925 #: ../src/guestfs-actions.pod:5233
14926 msgid "guestfs_pread"
14927 msgstr ""
14928
14929 #. type: verbatim
14930 #: ../src/guestfs-actions.pod:5235
14931 #, no-wrap
14932 msgid ""
14933 " char *\n"
14934 " guestfs_pread (guestfs_h *g,\n"
14935 "                const char *path,\n"
14936 "                int count,\n"
14937 "                int64_t offset,\n"
14938 "                size_t *size_r);\n"
14939 "\n"
14940 msgstr ""
14941
14942 #. type: textblock
14943 #: ../src/guestfs-actions.pod:5242 ../fish/guestfish-actions.pod:3534
14944 msgid ""
14945 "This command lets you read part of a file.  It reads C<count> bytes of the "
14946 "file, starting at C<offset>, from file C<path>."
14947 msgstr ""
14948
14949 #. type: textblock
14950 #: ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5271
14951 #: ../fish/guestfish-actions.pod:3537 ../fish/guestfish-actions.pod:3552
14952 msgid ""
14953 "This may read fewer bytes than requested.  For further details see the "
14954 "L<pread(2)> system call."
14955 msgstr ""
14956
14957 #. type: textblock
14958 #: ../src/guestfs-actions.pod:5248
14959 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
14960 msgstr ""
14961
14962 #. type: =head2
14963 #: ../src/guestfs-actions.pod:5259
14964 msgid "guestfs_pread_device"
14965 msgstr ""
14966
14967 #. type: verbatim
14968 #: ../src/guestfs-actions.pod:5261
14969 #, no-wrap
14970 msgid ""
14971 " char *\n"
14972 " guestfs_pread_device (guestfs_h *g,\n"
14973 "                       const char *device,\n"
14974 "                       int count,\n"
14975 "                       int64_t offset,\n"
14976 "                       size_t *size_r);\n"
14977 "\n"
14978 msgstr ""
14979
14980 #. type: textblock
14981 #: ../src/guestfs-actions.pod:5268 ../fish/guestfish-actions.pod:3549
14982 msgid ""
14983 "This command lets you read part of a file.  It reads C<count> bytes of "
14984 "C<device>, starting at C<offset>."
14985 msgstr ""
14986
14987 #. type: textblock
14988 #: ../src/guestfs-actions.pod:5274
14989 msgid "See also C<guestfs_pread>."
14990 msgstr ""
14991
14992 #. type: textblock
14993 #: ../src/guestfs-actions.pod:5283
14994 msgid "(Added in 1.5.21)"
14995 msgstr ""
14996
14997 #. type: =head2
14998 #: ../src/guestfs-actions.pod:5285
14999 msgid "guestfs_pvcreate"
15000 msgstr ""
15001
15002 #. type: verbatim
15003 #: ../src/guestfs-actions.pod:5287
15004 #, no-wrap
15005 msgid ""
15006 " int\n"
15007 " guestfs_pvcreate (guestfs_h *g,\n"
15008 "                   const char *device);\n"
15009 "\n"
15010 msgstr ""
15011
15012 #. type: textblock
15013 #: ../src/guestfs-actions.pod:5291 ../fish/guestfish-actions.pod:3564
15014 msgid ""
15015 "This creates an LVM physical volume on the named C<device>, where C<device> "
15016 "should usually be a partition name such as C</dev/sda1>."
15017 msgstr ""
15018
15019 #. type: =head2
15020 #: ../src/guestfs-actions.pod:5299
15021 msgid "guestfs_pvremove"
15022 msgstr ""
15023
15024 #. type: verbatim
15025 #: ../src/guestfs-actions.pod:5301
15026 #, no-wrap
15027 msgid ""
15028 " int\n"
15029 " guestfs_pvremove (guestfs_h *g,\n"
15030 "                   const char *device);\n"
15031 "\n"
15032 msgstr ""
15033
15034 #. type: textblock
15035 #: ../src/guestfs-actions.pod:5305 ../fish/guestfish-actions.pod:3572
15036 msgid ""
15037 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15038 "it."
15039 msgstr ""
15040
15041 #. type: textblock
15042 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3575
15043 msgid ""
15044 "The implementation uses the C<pvremove> command which refuses to wipe "
15045 "physical volumes that contain any volume groups, so you have to remove those "
15046 "first."
15047 msgstr ""
15048
15049 #. type: =head2
15050 #: ../src/guestfs-actions.pod:5316
15051 msgid "guestfs_pvresize"
15052 msgstr ""
15053
15054 #. type: verbatim
15055 #: ../src/guestfs-actions.pod:5318
15056 #, no-wrap
15057 msgid ""
15058 " int\n"
15059 " guestfs_pvresize (guestfs_h *g,\n"
15060 "                   const char *device);\n"
15061 "\n"
15062 msgstr ""
15063
15064 #. type: textblock
15065 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:3583
15066 msgid ""
15067 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15068 "the new size of the underlying device."
15069 msgstr ""
15070
15071 #. type: =head2
15072 #: ../src/guestfs-actions.pod:5329
15073 msgid "guestfs_pvresize_size"
15074 msgstr ""
15075
15076 #. type: verbatim
15077 #: ../src/guestfs-actions.pod:5331
15078 #, no-wrap
15079 msgid ""
15080 " int\n"
15081 " guestfs_pvresize_size (guestfs_h *g,\n"
15082 "                        const char *device,\n"
15083 "                        int64_t size);\n"
15084 "\n"
15085 msgstr ""
15086
15087 #. type: textblock
15088 #: ../src/guestfs-actions.pod:5336
15089 msgid ""
15090 "This command is the same as C<guestfs_pvresize> except that it allows you to "
15091 "specify the new size (in bytes) explicitly."
15092 msgstr ""
15093
15094 #. type: =head2
15095 #: ../src/guestfs-actions.pod:5343
15096 msgid "guestfs_pvs"
15097 msgstr ""
15098
15099 #. type: verbatim
15100 #: ../src/guestfs-actions.pod:5345
15101 #, no-wrap
15102 msgid ""
15103 " char **\n"
15104 " guestfs_pvs (guestfs_h *g);\n"
15105 "\n"
15106 msgstr ""
15107
15108 #. type: textblock
15109 #: ../src/guestfs-actions.pod:5348 ../fish/guestfish-actions.pod:3597
15110 msgid ""
15111 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15112 "(8)> command."
15113 msgstr ""
15114
15115 #. type: textblock
15116 #: ../src/guestfs-actions.pod:5351 ../fish/guestfish-actions.pod:3600
15117 msgid ""
15118 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15119 "sda2>)."
15120 msgstr ""
15121
15122 #. type: textblock
15123 #: ../src/guestfs-actions.pod:5354
15124 msgid "See also C<guestfs_pvs_full>."
15125 msgstr ""
15126
15127 #. type: =head2
15128 #: ../src/guestfs-actions.pod:5362
15129 msgid "guestfs_pvs_full"
15130 msgstr ""
15131
15132 #. type: verbatim
15133 #: ../src/guestfs-actions.pod:5364
15134 #, no-wrap
15135 msgid ""
15136 " struct guestfs_lvm_pv_list *\n"
15137 " guestfs_pvs_full (guestfs_h *g);\n"
15138 "\n"
15139 msgstr ""
15140
15141 #. type: textblock
15142 #: ../src/guestfs-actions.pod:5367 ../fish/guestfish-actions.pod:3609
15143 msgid ""
15144 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15145 "(8)> command.  The \"full\" version includes all fields."
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../src/guestfs-actions.pod:5370
15150 msgid ""
15151 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
15152 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
15153 msgstr ""
15154
15155 #. type: =head2
15156 #: ../src/guestfs-actions.pod:5376
15157 msgid "guestfs_pvuuid"
15158 msgstr ""
15159
15160 #. type: verbatim
15161 #: ../src/guestfs-actions.pod:5378
15162 #, no-wrap
15163 msgid ""
15164 " char *\n"
15165 " guestfs_pvuuid (guestfs_h *g,\n"
15166 "                 const char *device);\n"
15167 "\n"
15168 msgstr ""
15169
15170 #. type: textblock
15171 #: ../src/guestfs-actions.pod:5382 ../fish/guestfish-actions.pod:3616
15172 msgid "This command returns the UUID of the LVM PV C<device>."
15173 msgstr ""
15174
15175 #. type: =head2
15176 #: ../src/guestfs-actions.pod:5389
15177 msgid "guestfs_pwrite"
15178 msgstr ""
15179
15180 #. type: verbatim
15181 #: ../src/guestfs-actions.pod:5391
15182 #, no-wrap
15183 msgid ""
15184 " int\n"
15185 " guestfs_pwrite (guestfs_h *g,\n"
15186 "                 const char *path,\n"
15187 "                 const char *content,\n"
15188 "                 size_t content_size,\n"
15189 "                 int64_t offset);\n"
15190 "\n"
15191 msgstr ""
15192
15193 #. type: textblock
15194 #: ../src/guestfs-actions.pod:5398 ../fish/guestfish-actions.pod:3622
15195 msgid ""
15196 "This command writes to part of a file.  It writes the data buffer C<content> "
15197 "to the file C<path> starting at offset C<offset>."
15198 msgstr ""
15199
15200 #. type: textblock
15201 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3625
15202 msgid ""
15203 "This command implements the L<pwrite(2)> system call, and like that system "
15204 "call it may not write the full data requested.  The return value is the "
15205 "number of bytes that were actually written to the file.  This could even be "
15206 "0, although short writes are unlikely for regular files in ordinary "
15207 "circumstances."
15208 msgstr ""
15209
15210 #. type: textblock
15211 #: ../src/guestfs-actions.pod:5407
15212 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
15213 msgstr ""
15214
15215 #. type: =head2
15216 #: ../src/guestfs-actions.pod:5416
15217 msgid "guestfs_pwrite_device"
15218 msgstr ""
15219
15220 #. type: verbatim
15221 #: ../src/guestfs-actions.pod:5418
15222 #, no-wrap
15223 msgid ""
15224 " int\n"
15225 " guestfs_pwrite_device (guestfs_h *g,\n"
15226 "                        const char *device,\n"
15227 "                        const char *content,\n"
15228 "                        size_t content_size,\n"
15229 "                        int64_t offset);\n"
15230 "\n"
15231 msgstr ""
15232
15233 #. type: textblock
15234 #: ../src/guestfs-actions.pod:5425 ../fish/guestfish-actions.pod:3640
15235 msgid ""
15236 "This command writes to part of a device.  It writes the data buffer "
15237 "C<content> to C<device> starting at offset C<offset>."
15238 msgstr ""
15239
15240 #. type: textblock
15241 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3643
15242 msgid ""
15243 "This command implements the L<pwrite(2)> system call, and like that system "
15244 "call it may not write the full data requested (although short writes to disk "
15245 "devices and partitions are probably impossible with standard Linux kernels)."
15246 msgstr ""
15247
15248 #. type: textblock
15249 #: ../src/guestfs-actions.pod:5433
15250 msgid "See also C<guestfs_pwrite>."
15251 msgstr ""
15252
15253 #. type: textblock
15254 #: ../src/guestfs-actions.pod:5440
15255 msgid "(Added in 1.5.20)"
15256 msgstr ""
15257
15258 #. type: =head2
15259 #: ../src/guestfs-actions.pod:5442
15260 msgid "guestfs_read_file"
15261 msgstr ""
15262
15263 #. type: verbatim
15264 #: ../src/guestfs-actions.pod:5444
15265 #, no-wrap
15266 msgid ""
15267 " char *\n"
15268 " guestfs_read_file (guestfs_h *g,\n"
15269 "                    const char *path,\n"
15270 "                    size_t *size_r);\n"
15271 "\n"
15272 msgstr ""
15273
15274 #. type: textblock
15275 #: ../src/guestfs-actions.pod:5449 ../fish/guestfish-actions.pod:3657
15276 msgid "This calls returns the contents of the file C<path> as a buffer."
15277 msgstr ""
15278
15279 #. type: textblock
15280 #: ../src/guestfs-actions.pod:5452
15281 msgid ""
15282 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
15283 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
15284 "function is limited in the total size of file that can be handled."
15285 msgstr ""
15286
15287 #. type: textblock
15288 #: ../src/guestfs-actions.pod:5464
15289 msgid "(Added in 1.0.63)"
15290 msgstr ""
15291
15292 #. type: =head2
15293 #: ../src/guestfs-actions.pod:5466
15294 msgid "guestfs_read_lines"
15295 msgstr ""
15296
15297 #. type: verbatim
15298 #: ../src/guestfs-actions.pod:5468
15299 #, no-wrap
15300 msgid ""
15301 " char **\n"
15302 " guestfs_read_lines (guestfs_h *g,\n"
15303 "                     const char *path);\n"
15304 "\n"
15305 msgstr ""
15306
15307 #. type: textblock
15308 #: ../src/guestfs-actions.pod:5474 ../fish/guestfish-actions.pod:3674
15309 msgid ""
15310 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15311 "C<CRLF> character sequences are I<not> returned."
15312 msgstr ""
15313
15314 #. type: textblock
15315 #: ../src/guestfs-actions.pod:5477
15316 msgid ""
15317 "Note that this function cannot correctly handle binary files (specifically, "
15318 "files containing C<\\0> character which is treated as end of line).  For "
15319 "those you need to use the C<guestfs_read_file> function which has a more "
15320 "complex interface."
15321 msgstr ""
15322
15323 #. type: =head2
15324 #: ../src/guestfs-actions.pod:5488
15325 msgid "guestfs_readdir"
15326 msgstr ""
15327
15328 #. type: verbatim
15329 #: ../src/guestfs-actions.pod:5490
15330 #, no-wrap
15331 msgid ""
15332 " struct guestfs_dirent_list *\n"
15333 " guestfs_readdir (guestfs_h *g,\n"
15334 "                  const char *dir);\n"
15335 "\n"
15336 msgstr ""
15337
15338 #. type: textblock
15339 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:3686
15340 msgid "This returns the list of directory entries in directory C<dir>."
15341 msgstr ""
15342
15343 #. type: textblock
15344 #: ../src/guestfs-actions.pod:5496 ../fish/guestfish-actions.pod:3688
15345 msgid ""
15346 "All entries in the directory are returned, including C<.> and C<..>.  The "
15347 "entries are I<not> sorted, but returned in the same order as the underlying "
15348 "filesystem."
15349 msgstr ""
15350
15351 #. type: textblock
15352 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3692
15353 msgid ""
15354 "Also this call returns basic file type information about each file.  The "
15355 "C<ftyp> field will contain one of the following characters:"
15356 msgstr ""
15357
15358 #. type: =item
15359 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3697
15360 msgid "'b'"
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../src/guestfs-actions.pod:5507 ../fish/guestfish-actions.pod:3699
15365 msgid "Block special"
15366 msgstr ""
15367
15368 #. type: =item
15369 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3701
15370 msgid "'c'"
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../src/guestfs-actions.pod:5511 ../fish/guestfish-actions.pod:3703
15375 msgid "Char special"
15376 msgstr ""
15377
15378 #. type: =item
15379 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3705
15380 msgid "'d'"
15381 msgstr ""
15382
15383 #. type: textblock
15384 #: ../src/guestfs-actions.pod:5515 ../fish/guestfish-actions.pod:3707
15385 msgid "Directory"
15386 msgstr ""
15387
15388 #. type: =item
15389 #: ../src/guestfs-actions.pod:5517 ../fish/guestfish-actions.pod:3709
15390 msgid "'f'"
15391 msgstr ""
15392
15393 #. type: textblock
15394 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:3711
15395 msgid "FIFO (named pipe)"
15396 msgstr ""
15397
15398 #. type: =item
15399 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3713
15400 msgid "'l'"
15401 msgstr ""
15402
15403 #. type: textblock
15404 #: ../src/guestfs-actions.pod:5523 ../fish/guestfish-actions.pod:3715
15405 msgid "Symbolic link"
15406 msgstr ""
15407
15408 #. type: =item
15409 #: ../src/guestfs-actions.pod:5525 ../fish/guestfish-actions.pod:3717
15410 msgid "'r'"
15411 msgstr ""
15412
15413 #. type: textblock
15414 #: ../src/guestfs-actions.pod:5527 ../fish/guestfish-actions.pod:3719
15415 msgid "Regular file"
15416 msgstr ""
15417
15418 #. type: =item
15419 #: ../src/guestfs-actions.pod:5529 ../fish/guestfish-actions.pod:3721
15420 msgid "'s'"
15421 msgstr ""
15422
15423 #. type: textblock
15424 #: ../src/guestfs-actions.pod:5531 ../fish/guestfish-actions.pod:3723
15425 msgid "Socket"
15426 msgstr ""
15427
15428 #. type: =item
15429 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3725
15430 msgid "'u'"
15431 msgstr ""
15432
15433 #. type: textblock
15434 #: ../src/guestfs-actions.pod:5535 ../fish/guestfish-actions.pod:3727
15435 msgid "Unknown file type"
15436 msgstr ""
15437
15438 #. type: =item
15439 #: ../src/guestfs-actions.pod:5537 ../fish/guestfish-actions.pod:3729
15440 msgid "'?'"
15441 msgstr ""
15442
15443 #. type: textblock
15444 #: ../src/guestfs-actions.pod:5539 ../fish/guestfish-actions.pod:3731
15445 msgid ""
15446 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15447 msgstr ""
15448
15449 #. type: textblock
15450 #: ../src/guestfs-actions.pod:5544
15451 msgid ""
15452 "This function is primarily intended for use by programs.  To get a simple "
15453 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
15454 "consumption, use C<guestfs_ll>."
15455 msgstr ""
15456
15457 #. type: textblock
15458 #: ../src/guestfs-actions.pod:5548
15459 msgid ""
15460 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
15461 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
15462 msgstr ""
15463
15464 #. type: =head2
15465 #: ../src/guestfs-actions.pod:5554
15466 msgid "guestfs_readlink"
15467 msgstr ""
15468
15469 #. type: verbatim
15470 #: ../src/guestfs-actions.pod:5556
15471 #, no-wrap
15472 msgid ""
15473 " char *\n"
15474 " guestfs_readlink (guestfs_h *g,\n"
15475 "                   const char *path);\n"
15476 "\n"
15477 msgstr ""
15478
15479 #. type: textblock
15480 #: ../src/guestfs-actions.pod:5560 ../fish/guestfish-actions.pod:3744
15481 msgid "This command reads the target of a symbolic link."
15482 msgstr ""
15483
15484 #. type: =head2
15485 #: ../src/guestfs-actions.pod:5567
15486 msgid "guestfs_readlinklist"
15487 msgstr ""
15488
15489 #. type: verbatim
15490 #: ../src/guestfs-actions.pod:5569
15491 #, no-wrap
15492 msgid ""
15493 " char **\n"
15494 " guestfs_readlinklist (guestfs_h *g,\n"
15495 "                       const char *path,\n"
15496 "                       char *const *names);\n"
15497 "\n"
15498 msgstr ""
15499
15500 #. type: textblock
15501 #: ../src/guestfs-actions.pod:5574 ../fish/guestfish-actions.pod:3750
15502 msgid ""
15503 "This call allows you to do a C<readlink> operation on multiple files, where "
15504 "all files are in the directory C<path>.  C<names> is the list of files from "
15505 "this directory."
15506 msgstr ""
15507
15508 #. type: textblock
15509 #: ../src/guestfs-actions.pod:5578 ../fish/guestfish-actions.pod:3754
15510 msgid ""
15511 "On return you get a list of strings, with a one-to-one correspondence to the "
15512 "C<names> list.  Each string is the value of the symbolic link."
15513 msgstr ""
15514
15515 #. type: textblock
15516 #: ../src/guestfs-actions.pod:5582 ../fish/guestfish-actions.pod:3758
15517 msgid ""
15518 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15519 "result string is the empty string C<\"\">.  However the whole operation is "
15520 "completed even if there were C<readlink(2)> errors, and so you can call this "
15521 "function with names where you don't know if they are symbolic links already "
15522 "(albeit slightly less efficient)."
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../src/guestfs-actions.pod:5589 ../fish/guestfish-actions.pod:3765
15527 msgid ""
15528 "This call is intended for programs that want to efficiently list a directory "
15529 "contents without making many round-trips.  Very long directory listings "
15530 "might cause the protocol message size to be exceeded, causing this call to "
15531 "fail.  The caller must split up such requests into smaller groups of names."
15532 msgstr ""
15533
15534 #. type: =head2
15535 #: ../src/guestfs-actions.pod:5602
15536 msgid "guestfs_realpath"
15537 msgstr ""
15538
15539 #. type: verbatim
15540 #: ../src/guestfs-actions.pod:5604
15541 #, no-wrap
15542 msgid ""
15543 " char *\n"
15544 " guestfs_realpath (guestfs_h *g,\n"
15545 "                   const char *path);\n"
15546 "\n"
15547 msgstr ""
15548
15549 #. type: textblock
15550 #: ../src/guestfs-actions.pod:5608 ../fish/guestfish-actions.pod:3776
15551 msgid ""
15552 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15553 "has no C<.>, C<..> or symbolic link path elements."
15554 msgstr ""
15555
15556 #. type: =head2
15557 #: ../src/guestfs-actions.pod:5616
15558 msgid "guestfs_removexattr"
15559 msgstr ""
15560
15561 #. type: verbatim
15562 #: ../src/guestfs-actions.pod:5618
15563 #, no-wrap
15564 msgid ""
15565 " int\n"
15566 " guestfs_removexattr (guestfs_h *g,\n"
15567 "                      const char *xattr,\n"
15568 "                      const char *path);\n"
15569 "\n"
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:3783
15574 msgid ""
15575 "This call removes the extended attribute named C<xattr> of the file C<path>."
15576 msgstr ""
15577
15578 #. type: textblock
15579 #: ../src/guestfs-actions.pod:5626
15580 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
15581 msgstr ""
15582
15583 #. type: =head2
15584 #: ../src/guestfs-actions.pod:5632
15585 msgid "guestfs_resize2fs"
15586 msgstr ""
15587
15588 #. type: verbatim
15589 #: ../src/guestfs-actions.pod:5634
15590 #, no-wrap
15591 msgid ""
15592 " int\n"
15593 " guestfs_resize2fs (guestfs_h *g,\n"
15594 "                    const char *device);\n"
15595 "\n"
15596 msgstr ""
15597
15598 #. type: textblock
15599 #: ../src/guestfs-actions.pod:5638 ../fish/guestfish-actions.pod:3792
15600 msgid ""
15601 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15602 "underlying device."
15603 msgstr ""
15604
15605 #. type: textblock
15606 #: ../src/guestfs-actions.pod:5641
15607 msgid ""
15608 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
15609 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
15610 "sometimes gives an error about this and sometimes not.  In any case, it is "
15611 "always safe to call C<guestfs_e2fsck_f> before calling this function."
15612 msgstr ""
15613
15614 #. type: =head2
15615 #: ../src/guestfs-actions.pod:5651
15616 msgid "guestfs_resize2fs_M"
15617 msgstr ""
15618
15619 #. type: verbatim
15620 #: ../src/guestfs-actions.pod:5653
15621 #, no-wrap
15622 msgid ""
15623 " int\n"
15624 " guestfs_resize2fs_M (guestfs_h *g,\n"
15625 "                      const char *device);\n"
15626 "\n"
15627 msgstr ""
15628
15629 #. type: textblock
15630 #: ../src/guestfs-actions.pod:5657
15631 msgid ""
15632 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
15633 "resized to its minimum size.  This works like the I<-M> option to the "
15634 "C<resize2fs> command."
15635 msgstr ""
15636
15637 #. type: textblock
15638 #: ../src/guestfs-actions.pod:5661
15639 msgid ""
15640 "To get the resulting size of the filesystem you should call "
15641 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
15642 "These two numbers, multiplied together, give the resulting size of the "
15643 "minimal filesystem in bytes."
15644 msgstr ""
15645
15646 #. type: =head2
15647 #: ../src/guestfs-actions.pod:5668
15648 msgid "guestfs_resize2fs_size"
15649 msgstr ""
15650
15651 #. type: verbatim
15652 #: ../src/guestfs-actions.pod:5670
15653 #, no-wrap
15654 msgid ""
15655 " int\n"
15656 " guestfs_resize2fs_size (guestfs_h *g,\n"
15657 "                         const char *device,\n"
15658 "                         int64_t size);\n"
15659 "\n"
15660 msgstr ""
15661
15662 #. type: textblock
15663 #: ../src/guestfs-actions.pod:5675
15664 msgid ""
15665 "This command is the same as C<guestfs_resize2fs> except that it allows you "
15666 "to specify the new size (in bytes) explicitly."
15667 msgstr ""
15668
15669 #. type: =head2
15670 #: ../src/guestfs-actions.pod:5682
15671 msgid "guestfs_rm"
15672 msgstr ""
15673
15674 #. type: verbatim
15675 #: ../src/guestfs-actions.pod:5684
15676 #, no-wrap
15677 msgid ""
15678 " int\n"
15679 " guestfs_rm (guestfs_h *g,\n"
15680 "             const char *path);\n"
15681 "\n"
15682 msgstr ""
15683
15684 #. type: textblock
15685 #: ../src/guestfs-actions.pod:5688 ../fish/guestfish-actions.pod:3825
15686 msgid "Remove the single file C<path>."
15687 msgstr ""
15688
15689 #. type: =head2
15690 #: ../src/guestfs-actions.pod:5694
15691 msgid "guestfs_rm_rf"
15692 msgstr ""
15693
15694 #. type: verbatim
15695 #: ../src/guestfs-actions.pod:5696
15696 #, no-wrap
15697 msgid ""
15698 " int\n"
15699 " guestfs_rm_rf (guestfs_h *g,\n"
15700 "                const char *path);\n"
15701 "\n"
15702 msgstr ""
15703
15704 #. type: textblock
15705 #: ../src/guestfs-actions.pod:5700 ../fish/guestfish-actions.pod:3831
15706 msgid ""
15707 "Remove the file or directory C<path>, recursively removing the contents if "
15708 "its a directory.  This is like the C<rm -rf> shell command."
15709 msgstr ""
15710
15711 #. type: =head2
15712 #: ../src/guestfs-actions.pod:5708
15713 msgid "guestfs_rmdir"
15714 msgstr ""
15715
15716 #. type: verbatim
15717 #: ../src/guestfs-actions.pod:5710
15718 #, no-wrap
15719 msgid ""
15720 " int\n"
15721 " guestfs_rmdir (guestfs_h *g,\n"
15722 "                const char *path);\n"
15723 "\n"
15724 msgstr ""
15725
15726 #. type: textblock
15727 #: ../src/guestfs-actions.pod:5714 ../fish/guestfish-actions.pod:3839
15728 msgid "Remove the single directory C<path>."
15729 msgstr ""
15730
15731 #. type: =head2
15732 #: ../src/guestfs-actions.pod:5720
15733 msgid "guestfs_rmmountpoint"
15734 msgstr ""
15735
15736 #. type: verbatim
15737 #: ../src/guestfs-actions.pod:5722
15738 #, no-wrap
15739 msgid ""
15740 " int\n"
15741 " guestfs_rmmountpoint (guestfs_h *g,\n"
15742 "                       const char *exemptpath);\n"
15743 "\n"
15744 msgstr ""
15745
15746 #. type: textblock
15747 #: ../src/guestfs-actions.pod:5726
15748 msgid ""
15749 "This calls removes a mountpoint that was previously created with "
15750 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
15751 msgstr ""
15752
15753 #. type: =head2
15754 #: ../src/guestfs-actions.pod:5734
15755 msgid "guestfs_scrub_device"
15756 msgstr ""
15757
15758 #. type: verbatim
15759 #: ../src/guestfs-actions.pod:5736
15760 #, no-wrap
15761 msgid ""
15762 " int\n"
15763 " guestfs_scrub_device (guestfs_h *g,\n"
15764 "                       const char *device);\n"
15765 "\n"
15766 msgstr ""
15767
15768 #. type: textblock
15769 #: ../src/guestfs-actions.pod:5740 ../fish/guestfish-actions.pod:3853
15770 msgid ""
15771 "This command writes patterns over C<device> to make data retrieval more "
15772 "difficult."
15773 msgstr ""
15774
15775 #. type: textblock
15776 #: ../src/guestfs-actions.pod:5743 ../src/guestfs-actions.pod:5764
15777 #: ../src/guestfs-actions.pod:5783 ../fish/guestfish-actions.pod:3856
15778 #: ../fish/guestfish-actions.pod:3871 ../fish/guestfish-actions.pod:3884
15779 msgid ""
15780 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15781 "more details."
15782 msgstr ""
15783
15784 #. type: textblock
15785 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5769
15786 #: ../src/guestfs-actions.pod:5788
15787 msgid "(Added in 1.0.52)"
15788 msgstr ""
15789
15790 #. type: =head2
15791 #: ../src/guestfs-actions.pod:5753
15792 msgid "guestfs_scrub_file"
15793 msgstr ""
15794
15795 #. type: verbatim
15796 #: ../src/guestfs-actions.pod:5755
15797 #, no-wrap
15798 msgid ""
15799 " int\n"
15800 " guestfs_scrub_file (guestfs_h *g,\n"
15801 "                     const char *file);\n"
15802 "\n"
15803 msgstr ""
15804
15805 #. type: textblock
15806 #: ../src/guestfs-actions.pod:5759 ../fish/guestfish-actions.pod:3866
15807 msgid ""
15808 "This command writes patterns over a file to make data retrieval more "
15809 "difficult."
15810 msgstr ""
15811
15812 #. type: textblock
15813 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3869
15814 msgid "The file is I<removed> after scrubbing."
15815 msgstr ""
15816
15817 #. type: =head2
15818 #: ../src/guestfs-actions.pod:5771
15819 msgid "guestfs_scrub_freespace"
15820 msgstr ""
15821
15822 #. type: verbatim
15823 #: ../src/guestfs-actions.pod:5773
15824 #, no-wrap
15825 msgid ""
15826 " int\n"
15827 " guestfs_scrub_freespace (guestfs_h *g,\n"
15828 "                          const char *dir);\n"
15829 "\n"
15830 msgstr ""
15831
15832 #. type: textblock
15833 #: ../src/guestfs-actions.pod:5777
15834 msgid ""
15835 "This command creates the directory C<dir> and then fills it with files until "
15836 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
15837 "and deletes them.  The intention is to scrub any free space on the partition "
15838 "containing C<dir>."
15839 msgstr ""
15840
15841 #. type: =head2
15842 #: ../src/guestfs-actions.pod:5790
15843 msgid "guestfs_set_append"
15844 msgstr ""
15845
15846 #. type: verbatim
15847 #: ../src/guestfs-actions.pod:5792
15848 #, no-wrap
15849 msgid ""
15850 " int\n"
15851 " guestfs_set_append (guestfs_h *g,\n"
15852 "                     const char *append);\n"
15853 "\n"
15854 msgstr ""
15855
15856 #. type: textblock
15857 #: ../src/guestfs-actions.pod:5796 ../fish/guestfish-actions.pod:3893
15858 msgid ""
15859 "This function is used to add additional options to the guest kernel command "
15860 "line."
15861 msgstr ""
15862
15863 #. type: textblock
15864 #: ../src/guestfs-actions.pod:5799 ../fish/guestfish-actions.pod:3896
15865 msgid ""
15866 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15867 "environment variable."
15868 msgstr ""
15869
15870 #. type: textblock
15871 #: ../src/guestfs-actions.pod:5802 ../fish/guestfish-actions.pod:3899
15872 msgid ""
15873 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15874 "(libguestfs always adds a few of its own)."
15875 msgstr ""
15876
15877 #. type: =head2
15878 #: ../src/guestfs-actions.pod:5809
15879 msgid "guestfs_set_attach_method"
15880 msgstr ""
15881
15882 #. type: verbatim
15883 #: ../src/guestfs-actions.pod:5811
15884 #, no-wrap
15885 msgid ""
15886 " int\n"
15887 " guestfs_set_attach_method (guestfs_h *g,\n"
15888 "                            const char *attachmethod);\n"
15889 "\n"
15890 msgstr ""
15891
15892 #. type: textblock
15893 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3908
15894 msgid ""
15895 "Set the method that libguestfs uses to connect to the back end guestfsd "
15896 "daemon.  Possible methods are:"
15897 msgstr ""
15898
15899 #. type: textblock
15900 #: ../src/guestfs-actions.pod:5822 ../fish/guestfish-actions.pod:3915
15901 msgid ""
15902 "Launch an appliance and connect to it.  This is the ordinary method and the "
15903 "default."
15904 msgstr ""
15905
15906 #. type: =item
15907 #: ../src/guestfs-actions.pod:5825 ../fish/guestfish-actions.pod:3918
15908 msgid "C<unix:I<path>>"
15909 msgstr ""
15910
15911 #. type: textblock
15912 #: ../src/guestfs-actions.pod:5827 ../fish/guestfish-actions.pod:3920
15913 msgid "Connect to the Unix domain socket I<path>."
15914 msgstr ""
15915
15916 #. type: textblock
15917 #: ../src/guestfs-actions.pod:5829 ../fish/guestfish-actions.pod:3922
15918 msgid ""
15919 "This method lets you connect to an existing daemon or (using virtio-serial) "
15920 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15921 "RUNNING DAEMONS>."
15922 msgstr ""
15923
15924 #. type: =head2
15925 #: ../src/guestfs-actions.pod:5837
15926 msgid "guestfs_set_autosync"
15927 msgstr ""
15928
15929 #. type: verbatim
15930 #: ../src/guestfs-actions.pod:5839
15931 #, no-wrap
15932 msgid ""
15933 " int\n"
15934 " guestfs_set_autosync (guestfs_h *g,\n"
15935 "                       int autosync);\n"
15936 "\n"
15937 msgstr ""
15938
15939 #. type: textblock
15940 #: ../src/guestfs-actions.pod:5843 ../fish/guestfish-actions.pod:3934
15941 msgid ""
15942 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15943 "effort attempt to make filesystems consistent and synchronized when the "
15944 "handle is closed (also if the program exits without closing handles)."
15945 msgstr ""
15946
15947 #. type: textblock
15948 #: ../src/guestfs-actions.pod:5848 ../fish/guestfish-actions.pod:3939
15949 msgid ""
15950 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15951 "disabled by default)."
15952 msgstr ""
15953
15954 #. type: =head2
15955 #: ../src/guestfs-actions.pod:5855
15956 msgid "guestfs_set_direct"
15957 msgstr ""
15958
15959 #. type: verbatim
15960 #: ../src/guestfs-actions.pod:5857
15961 #, no-wrap
15962 msgid ""
15963 " int\n"
15964 " guestfs_set_direct (guestfs_h *g,\n"
15965 "                     int direct);\n"
15966 "\n"
15967 msgstr ""
15968
15969 #. type: textblock
15970 #: ../src/guestfs-actions.pod:5861 ../fish/guestfish-actions.pod:3948
15971 msgid ""
15972 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15973 "passed directly through to the appliance once it is launched."
15974 msgstr ""
15975
15976 #. type: textblock
15977 #: ../src/guestfs-actions.pod:5865
15978 msgid ""
15979 "One consequence of this is that log messages aren't caught by the library "
15980 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
15981 "stdout."
15982 msgstr ""
15983
15984 #. type: textblock
15985 #: ../src/guestfs-actions.pod:5869 ../fish/guestfish-actions.pod:3956
15986 msgid "You probably don't want to use this unless you know what you are doing."
15987 msgstr ""
15988
15989 #. type: textblock
15990 #: ../src/guestfs-actions.pod:5872 ../fish/guestfish-actions.pod:3959
15991 msgid "The default is disabled."
15992 msgstr ""
15993
15994 #. type: =head2
15995 #: ../src/guestfs-actions.pod:5878
15996 msgid "guestfs_set_e2label"
15997 msgstr ""
15998
15999 #. type: verbatim
16000 #: ../src/guestfs-actions.pod:5880
16001 #, no-wrap
16002 msgid ""
16003 " int\n"
16004 " guestfs_set_e2label (guestfs_h *g,\n"
16005 "                      const char *device,\n"
16006 "                      const char *label);\n"
16007 "\n"
16008 msgstr ""
16009
16010 #. type: textblock
16011 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3965
16012 msgid ""
16013 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16014 "C<label>.  Filesystem labels are limited to 16 characters."
16015 msgstr ""
16016
16017 #. type: textblock
16018 #: ../src/guestfs-actions.pod:5889
16019 msgid ""
16020 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
16021 "the existing label on a filesystem."
16022 msgstr ""
16023
16024 #. type: =head2
16025 #: ../src/guestfs-actions.pod:5896
16026 msgid "guestfs_set_e2uuid"
16027 msgstr ""
16028
16029 #. type: verbatim
16030 #: ../src/guestfs-actions.pod:5898
16031 #, no-wrap
16032 msgid ""
16033 " int\n"
16034 " guestfs_set_e2uuid (guestfs_h *g,\n"
16035 "                     const char *device,\n"
16036 "                     const char *uuid);\n"
16037 "\n"
16038 msgstr ""
16039
16040 #. type: textblock
16041 #: ../src/guestfs-actions.pod:5903 ../fish/guestfish-actions.pod:3976
16042 msgid ""
16043 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16044 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16045 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16046 msgstr ""
16047
16048 #. type: textblock
16049 #: ../src/guestfs-actions.pod:5908
16050 msgid ""
16051 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
16052 "the existing UUID of a filesystem."
16053 msgstr ""
16054
16055 #. type: =head2
16056 #: ../src/guestfs-actions.pod:5915
16057 msgid "guestfs_set_memsize"
16058 msgstr ""
16059
16060 #. type: verbatim
16061 #: ../src/guestfs-actions.pod:5917
16062 #, no-wrap
16063 msgid ""
16064 " int\n"
16065 " guestfs_set_memsize (guestfs_h *g,\n"
16066 "                      int memsize);\n"
16067 "\n"
16068 msgstr ""
16069
16070 #. type: textblock
16071 #: ../src/guestfs-actions.pod:5921
16072 msgid ""
16073 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16074 "This only has any effect if called before C<guestfs_launch>."
16075 msgstr ""
16076
16077 #. type: textblock
16078 #: ../src/guestfs-actions.pod:5925 ../fish/guestfish-actions.pod:3994
16079 msgid ""
16080 "You can also change this by setting the environment variable "
16081 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16082 msgstr ""
16083
16084 #. type: =head2
16085 #: ../src/guestfs-actions.pod:5936
16086 msgid "guestfs_set_network"
16087 msgstr ""
16088
16089 #. type: verbatim
16090 #: ../src/guestfs-actions.pod:5938
16091 #, no-wrap
16092 msgid ""
16093 " int\n"
16094 " guestfs_set_network (guestfs_h *g,\n"
16095 "                      int network);\n"
16096 "\n"
16097 msgstr ""
16098
16099 #. type: textblock
16100 #: ../src/guestfs-actions.pod:5942 ../fish/guestfish-actions.pod:4007
16101 msgid ""
16102 "If C<network> is true, then the network is enabled in the libguestfs "
16103 "appliance.  The default is false."
16104 msgstr ""
16105
16106 #. type: textblock
16107 #: ../src/guestfs-actions.pod:5945 ../fish/guestfish-actions.pod:4010
16108 msgid ""
16109 "This affects whether commands are able to access the network (see L<guestfs"
16110 "(3)/RUNNING COMMANDS>)."
16111 msgstr ""
16112
16113 #. type: textblock
16114 #: ../src/guestfs-actions.pod:5948
16115 msgid ""
16116 "You must call this before calling C<guestfs_launch>, otherwise it has no "
16117 "effect."
16118 msgstr ""
16119
16120 #. type: =head2
16121 #: ../src/guestfs-actions.pod:5955
16122 msgid "guestfs_set_path"
16123 msgstr ""
16124
16125 #. type: verbatim
16126 #: ../src/guestfs-actions.pod:5957
16127 #, no-wrap
16128 msgid ""
16129 " int\n"
16130 " guestfs_set_path (guestfs_h *g,\n"
16131 "                   const char *searchpath);\n"
16132 "\n"
16133 msgstr ""
16134
16135 #. type: textblock
16136 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4022
16137 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16138 msgstr ""
16139
16140 #. type: textblock
16141 #: ../src/guestfs-actions.pod:5963 ../fish/guestfish-actions.pod:4024
16142 msgid ""
16143 "The default is C<$libdir/guestfs> unless overridden by setting "
16144 "C<LIBGUESTFS_PATH> environment variable."
16145 msgstr ""
16146
16147 #. type: textblock
16148 #: ../src/guestfs-actions.pod:5966 ../fish/guestfish-actions.pod:4027
16149 msgid "Setting C<path> to C<NULL> restores the default path."
16150 msgstr ""
16151
16152 #. type: =head2
16153 #: ../src/guestfs-actions.pod:5972
16154 msgid "guestfs_set_qemu"
16155 msgstr ""
16156
16157 #. type: verbatim
16158 #: ../src/guestfs-actions.pod:5974
16159 #, no-wrap
16160 msgid ""
16161 " int\n"
16162 " guestfs_set_qemu (guestfs_h *g,\n"
16163 "                   const char *qemu);\n"
16164 "\n"
16165 msgstr ""
16166
16167 #. type: textblock
16168 #: ../src/guestfs-actions.pod:5978 ../fish/guestfish-actions.pod:4035
16169 msgid "Set the qemu binary that we will use."
16170 msgstr ""
16171
16172 #. type: textblock
16173 #: ../src/guestfs-actions.pod:5980 ../fish/guestfish-actions.pod:4037
16174 msgid ""
16175 "The default is chosen when the library was compiled by the configure script."
16176 msgstr ""
16177
16178 #. type: textblock
16179 #: ../src/guestfs-actions.pod:5983 ../fish/guestfish-actions.pod:4040
16180 msgid ""
16181 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16182 "variable."
16183 msgstr ""
16184
16185 #. type: textblock
16186 #: ../src/guestfs-actions.pod:5986 ../fish/guestfish-actions.pod:4043
16187 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16188 msgstr ""
16189
16190 #. type: textblock
16191 #: ../src/guestfs-actions.pod:5988 ../fish/guestfish-actions.pod:4045
16192 msgid ""
16193 "Note that you should call this function as early as possible after creating "
16194 "the handle.  This is because some pre-launch operations depend on testing "
16195 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16196 "don't retest features, and so you might see inconsistent results.  Using the "
16197 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16198 "the qemu binary at the same time as the handle is created."
16199 msgstr ""
16200
16201 #. type: =head2
16202 #: ../src/guestfs-actions.pod:6000
16203 msgid "guestfs_set_recovery_proc"
16204 msgstr ""
16205
16206 #. type: verbatim
16207 #: ../src/guestfs-actions.pod:6002
16208 #, no-wrap
16209 msgid ""
16210 " int\n"
16211 " guestfs_set_recovery_proc (guestfs_h *g,\n"
16212 "                            int recoveryproc);\n"
16213 "\n"
16214 msgstr ""
16215
16216 #. type: textblock
16217 #: ../src/guestfs-actions.pod:6006
16218 msgid ""
16219 "If this is called with the parameter C<false> then C<guestfs_launch> does "
16220 "not create a recovery process.  The purpose of the recovery process is to "
16221 "stop runaway qemu processes in the case where the main program aborts "
16222 "abruptly."
16223 msgstr ""
16224
16225 #. type: textblock
16226 #: ../src/guestfs-actions.pod:6011
16227 msgid ""
16228 "This only has any effect if called before C<guestfs_launch>, and the default "
16229 "is true."
16230 msgstr ""
16231
16232 #. type: textblock
16233 #: ../src/guestfs-actions.pod:6014 ../fish/guestfish-actions.pod:4067
16234 msgid ""
16235 "About the only time when you would want to disable this is if the main "
16236 "process will fork itself into the background (\"daemonize\" itself).  In "
16237 "this case the recovery process thinks that the main program has disappeared "
16238 "and so kills qemu, which is not very helpful."
16239 msgstr ""
16240
16241 #. type: =head2
16242 #: ../src/guestfs-actions.pod:6024
16243 msgid "guestfs_set_selinux"
16244 msgstr ""
16245
16246 #. type: verbatim
16247 #: ../src/guestfs-actions.pod:6026
16248 #, no-wrap
16249 msgid ""
16250 " int\n"
16251 " guestfs_set_selinux (guestfs_h *g,\n"
16252 "                      int selinux);\n"
16253 "\n"
16254 msgstr ""
16255
16256 #. type: textblock
16257 #: ../src/guestfs-actions.pod:6030 ../fish/guestfish-actions.pod:4079
16258 msgid ""
16259 "This sets the selinux flag that is passed to the appliance at boot time.  "
16260 "The default is C<selinux=0> (disabled)."
16261 msgstr ""
16262
16263 #. type: textblock
16264 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:4082
16265 msgid ""
16266 "Note that if SELinux is enabled, it is always in Permissive mode "
16267 "(C<enforcing=0>)."
16268 msgstr ""
16269
16270 #. type: =head2
16271 #: ../src/guestfs-actions.pod:6043
16272 msgid "guestfs_set_trace"
16273 msgstr ""
16274
16275 #. type: verbatim
16276 #: ../src/guestfs-actions.pod:6045
16277 #, no-wrap
16278 msgid ""
16279 " int\n"
16280 " guestfs_set_trace (guestfs_h *g,\n"
16281 "                    int trace);\n"
16282 "\n"
16283 msgstr ""
16284
16285 #. type: textblock
16286 #: ../src/guestfs-actions.pod:6049 ../fish/guestfish-actions.pod:4094
16287 msgid ""
16288 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16289 "return values are traced."
16290 msgstr ""
16291
16292 #. type: textblock
16293 #: ../src/guestfs-actions.pod:6052 ../fish/guestfish-actions.pod:4097
16294 msgid ""
16295 "If you want to trace C API calls into libguestfs (and other libraries) then "
16296 "possibly a better way is to use the external ltrace(1) command."
16297 msgstr ""
16298
16299 #. type: textblock
16300 #: ../src/guestfs-actions.pod:6056 ../fish/guestfish-actions.pod:4101
16301 msgid ""
16302 "Command traces are disabled unless the environment variable "
16303 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16304 msgstr ""
16305
16306 #. type: textblock
16307 #: ../src/guestfs-actions.pod:6059
16308 msgid ""
16309 "Trace messages are normally sent to C<stderr>, unless you register a "
16310 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16311 msgstr ""
16312
16313 #. type: =head2
16314 #: ../src/guestfs-actions.pod:6067
16315 msgid "guestfs_set_verbose"
16316 msgstr ""
16317
16318 #. type: verbatim
16319 #: ../src/guestfs-actions.pod:6069
16320 #, no-wrap
16321 msgid ""
16322 " int\n"
16323 " guestfs_set_verbose (guestfs_h *g,\n"
16324 "                      int verbose);\n"
16325 "\n"
16326 msgstr ""
16327
16328 #. type: textblock
16329 #: ../src/guestfs-actions.pod:6073 ../fish/guestfish-actions.pod:4114
16330 msgid "If C<verbose> is true, this turns on verbose messages."
16331 msgstr ""
16332
16333 #. type: textblock
16334 #: ../src/guestfs-actions.pod:6075 ../fish/guestfish-actions.pod:4116
16335 msgid ""
16336 "Verbose messages are disabled unless the environment variable "
16337 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16338 msgstr ""
16339
16340 #. type: textblock
16341 #: ../src/guestfs-actions.pod:6078
16342 msgid ""
16343 "Verbose messages are normally sent to C<stderr>, unless you register a "
16344 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16345 msgstr ""
16346
16347 #. type: =head2
16348 #: ../src/guestfs-actions.pod:6086
16349 msgid "guestfs_setcon"
16350 msgstr ""
16351
16352 #. type: verbatim
16353 #: ../src/guestfs-actions.pod:6088
16354 #, no-wrap
16355 msgid ""
16356 " int\n"
16357 " guestfs_setcon (guestfs_h *g,\n"
16358 "                 const char *context);\n"
16359 "\n"
16360 msgstr ""
16361
16362 #. type: textblock
16363 #: ../src/guestfs-actions.pod:6092 ../fish/guestfish-actions.pod:4127
16364 msgid ""
16365 "This sets the SELinux security context of the daemon to the string "
16366 "C<context>."
16367 msgstr ""
16368
16369 #. type: textblock
16370 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4130
16371 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16372 msgstr ""
16373
16374 #. type: =head2
16375 #: ../src/guestfs-actions.pod:6101
16376 msgid "guestfs_setxattr"
16377 msgstr ""
16378
16379 #. type: verbatim
16380 #: ../src/guestfs-actions.pod:6103
16381 #, no-wrap
16382 msgid ""
16383 " int\n"
16384 " guestfs_setxattr (guestfs_h *g,\n"
16385 "                   const char *xattr,\n"
16386 "                   const char *val,\n"
16387 "                   int vallen,\n"
16388 "                   const char *path);\n"
16389 "\n"
16390 msgstr ""
16391
16392 #. type: textblock
16393 #: ../src/guestfs-actions.pod:6110 ../fish/guestfish-actions.pod:4136
16394 msgid ""
16395 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16396 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16397 msgstr ""
16398
16399 #. type: textblock
16400 #: ../src/guestfs-actions.pod:6114
16401 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
16402 msgstr ""
16403
16404 #. type: =head2
16405 #: ../src/guestfs-actions.pod:6120
16406 msgid "guestfs_sfdisk"
16407 msgstr ""
16408
16409 #. type: verbatim
16410 #: ../src/guestfs-actions.pod:6122
16411 #, no-wrap
16412 msgid ""
16413 " int\n"
16414 " guestfs_sfdisk (guestfs_h *g,\n"
16415 "                 const char *device,\n"
16416 "                 int cyls,\n"
16417 "                 int heads,\n"
16418 "                 int sectors,\n"
16419 "                 char *const *lines);\n"
16420 "\n"
16421 msgstr ""
16422
16423 #. type: textblock
16424 #: ../src/guestfs-actions.pod:6130 ../fish/guestfish-actions.pod:4146
16425 msgid ""
16426 "This is a direct interface to the L<sfdisk(8)> program for creating "
16427 "partitions on block devices."
16428 msgstr ""
16429
16430 #. type: textblock
16431 #: ../src/guestfs-actions.pod:6133 ../fish/guestfish-actions.pod:4149
16432 msgid "C<device> should be a block device, for example C</dev/sda>."
16433 msgstr ""
16434
16435 #. type: textblock
16436 #: ../src/guestfs-actions.pod:6135 ../fish/guestfish-actions.pod:4151
16437 msgid ""
16438 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16439 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16440 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16441 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16442 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16443 "the kernel) cannot work out the right geometry and you will need to tell it."
16444 msgstr ""
16445
16446 #. type: textblock
16447 #: ../src/guestfs-actions.pod:6143 ../fish/guestfish-actions.pod:4159
16448 msgid ""
16449 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16450 "refer to the L<sfdisk(8)> manpage."
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../src/guestfs-actions.pod:6146 ../fish/guestfish-actions.pod:4162
16455 msgid ""
16456 "To create a single partition occupying the whole disk, you would pass "
16457 "C<lines> as a single element list, when the single element being the string "
16458 "C<,> (comma)."
16459 msgstr ""
16460
16461 #. type: textblock
16462 #: ../src/guestfs-actions.pod:6150
16463 msgid ""
16464 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
16465 msgstr ""
16466
16467 #. type: =head2
16468 #: ../src/guestfs-actions.pod:6160
16469 msgid "guestfs_sfdiskM"
16470 msgstr ""
16471
16472 #. type: verbatim
16473 #: ../src/guestfs-actions.pod:6162
16474 #, no-wrap
16475 msgid ""
16476 " int\n"
16477 " guestfs_sfdiskM (guestfs_h *g,\n"
16478 "                  const char *device,\n"
16479 "                  char *const *lines);\n"
16480 "\n"
16481 msgstr ""
16482
16483 #. type: textblock
16484 #: ../src/guestfs-actions.pod:6167
16485 msgid ""
16486 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
16487 "partition sizes are specified in megabytes only (rounded to the nearest "
16488 "cylinder) and you don't need to specify the cyls, heads and sectors "
16489 "parameters which were rarely if ever used anyway."
16490 msgstr ""
16491
16492 #. type: textblock
16493 #: ../src/guestfs-actions.pod:6173
16494 msgid ""
16495 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
16496 "C<guestfs_part_disk>"
16497 msgstr ""
16498
16499 #. type: =head2
16500 #: ../src/guestfs-actions.pod:6183
16501 msgid "guestfs_sfdisk_N"
16502 msgstr ""
16503
16504 #. type: verbatim
16505 #: ../src/guestfs-actions.pod:6185
16506 #, no-wrap
16507 msgid ""
16508 " int\n"
16509 " guestfs_sfdisk_N (guestfs_h *g,\n"
16510 "                   const char *device,\n"
16511 "                   int partnum,\n"
16512 "                   int cyls,\n"
16513 "                   int heads,\n"
16514 "                   int sectors,\n"
16515 "                   const char *line);\n"
16516 "\n"
16517 msgstr ""
16518
16519 #. type: textblock
16520 #: ../src/guestfs-actions.pod:6194 ../fish/guestfish-actions.pod:4192
16521 msgid ""
16522 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16523 "(note: C<n> counts from 1)."
16524 msgstr ""
16525
16526 #. type: textblock
16527 #: ../src/guestfs-actions.pod:6197
16528 msgid ""
16529 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
16530 "for the cyls/heads/sectors parameters."
16531 msgstr ""
16532
16533 #. type: textblock
16534 #: ../src/guestfs-actions.pod:6200
16535 msgid "See also: C<guestfs_part_add>"
16536 msgstr ""
16537
16538 #. type: =head2
16539 #: ../src/guestfs-actions.pod:6209
16540 msgid "guestfs_sfdisk_disk_geometry"
16541 msgstr ""
16542
16543 #. type: verbatim
16544 #: ../src/guestfs-actions.pod:6211
16545 #, no-wrap
16546 msgid ""
16547 " char *\n"
16548 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
16549 "                               const char *device);\n"
16550 "\n"
16551 msgstr ""
16552
16553 #. type: textblock
16554 #: ../src/guestfs-actions.pod:6215
16555 msgid ""
16556 "This displays the disk geometry of C<device> read from the partition table.  "
16557 "Especially in the case where the underlying block device has been resized, "
16558 "this can be different from the kernel's idea of the geometry (see "
16559 "C<guestfs_sfdisk_kernel_geometry>)."
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../src/guestfs-actions.pod:6220 ../src/guestfs-actions.pod:6236
16564 #: ../fish/guestfish-actions.pod:4212 ../fish/guestfish-actions.pod:4221
16565 msgid "The result is in human-readable format, and not designed to be parsed."
16566 msgstr ""
16567
16568 #. type: =head2
16569 #: ../src/guestfs-actions.pod:6228
16570 msgid "guestfs_sfdisk_kernel_geometry"
16571 msgstr ""
16572
16573 #. type: verbatim
16574 #: ../src/guestfs-actions.pod:6230
16575 #, no-wrap
16576 msgid ""
16577 " char *\n"
16578 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
16579 "                                 const char *device);\n"
16580 "\n"
16581 msgstr ""
16582
16583 #. type: textblock
16584 #: ../src/guestfs-actions.pod:6234 ../fish/guestfish-actions.pod:4219
16585 msgid "This displays the kernel's idea of the geometry of C<device>."
16586 msgstr ""
16587
16588 #. type: =head2
16589 #: ../src/guestfs-actions.pod:6244
16590 msgid "guestfs_sfdisk_l"
16591 msgstr ""
16592
16593 #. type: verbatim
16594 #: ../src/guestfs-actions.pod:6246
16595 #, no-wrap
16596 msgid ""
16597 " char *\n"
16598 " guestfs_sfdisk_l (guestfs_h *g,\n"
16599 "                   const char *device);\n"
16600 "\n"
16601 msgstr ""
16602
16603 #. type: textblock
16604 #: ../src/guestfs-actions.pod:6250 ../fish/guestfish-actions.pod:4228
16605 msgid ""
16606 "This displays the partition table on C<device>, in the human-readable output "
16607 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16608 msgstr ""
16609
16610 #. type: textblock
16611 #: ../src/guestfs-actions.pod:6254
16612 msgid "See also: C<guestfs_part_list>"
16613 msgstr ""
16614
16615 #. type: =head2
16616 #: ../src/guestfs-actions.pod:6261
16617 msgid "guestfs_sh"
16618 msgstr ""
16619
16620 #. type: verbatim
16621 #: ../src/guestfs-actions.pod:6263
16622 #, no-wrap
16623 msgid ""
16624 " char *\n"
16625 " guestfs_sh (guestfs_h *g,\n"
16626 "             const char *command);\n"
16627 "\n"
16628 msgstr ""
16629
16630 #. type: textblock
16631 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4238
16632 msgid ""
16633 "This call runs a command from the guest filesystem via the guest's C</bin/"
16634 "sh>."
16635 msgstr ""
16636
16637 #. type: textblock
16638 #: ../src/guestfs-actions.pod:6270
16639 msgid "This is like C<guestfs_command>, but passes the command to:"
16640 msgstr ""
16641
16642 #. type: verbatim
16643 #: ../src/guestfs-actions.pod:6272 ../fish/guestfish-actions.pod:4243
16644 #, no-wrap
16645 msgid ""
16646 " /bin/sh -c \"command\"\n"
16647 "\n"
16648 msgstr ""
16649
16650 #. type: textblock
16651 #: ../src/guestfs-actions.pod:6274 ../fish/guestfish-actions.pod:4245
16652 msgid ""
16653 "Depending on the guest's shell, this usually results in wildcards being "
16654 "expanded, shell expressions being interpolated and so on."
16655 msgstr ""
16656
16657 #. type: textblock
16658 #: ../src/guestfs-actions.pod:6278
16659 msgid "All the provisos about C<guestfs_command> apply to this call."
16660 msgstr ""
16661
16662 #. type: =head2
16663 #: ../src/guestfs-actions.pod:6285
16664 msgid "guestfs_sh_lines"
16665 msgstr ""
16666
16667 #. type: verbatim
16668 #: ../src/guestfs-actions.pod:6287
16669 #, no-wrap
16670 msgid ""
16671 " char **\n"
16672 " guestfs_sh_lines (guestfs_h *g,\n"
16673 "                   const char *command);\n"
16674 "\n"
16675 msgstr ""
16676
16677 #. type: textblock
16678 #: ../src/guestfs-actions.pod:6291
16679 msgid ""
16680 "This is the same as C<guestfs_sh>, but splits the result into a list of "
16681 "lines."
16682 msgstr ""
16683
16684 #. type: textblock
16685 #: ../src/guestfs-actions.pod:6294
16686 msgid "See also: C<guestfs_command_lines>"
16687 msgstr ""
16688
16689 #. type: =head2
16690 #: ../src/guestfs-actions.pod:6302
16691 msgid "guestfs_sleep"
16692 msgstr ""
16693
16694 #. type: verbatim
16695 #: ../src/guestfs-actions.pod:6304
16696 #, no-wrap
16697 msgid ""
16698 " int\n"
16699 " guestfs_sleep (guestfs_h *g,\n"
16700 "                int secs);\n"
16701 "\n"
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../src/guestfs-actions.pod:6308 ../fish/guestfish-actions.pod:4264
16706 msgid "Sleep for C<secs> seconds."
16707 msgstr ""
16708
16709 #. type: textblock
16710 #: ../src/guestfs-actions.pod:6312
16711 msgid "(Added in 1.0.41)"
16712 msgstr ""
16713
16714 #. type: =head2
16715 #: ../src/guestfs-actions.pod:6314 ../src/guestfs-structs.pod:109
16716 msgid "guestfs_stat"
16717 msgstr ""
16718
16719 #. type: verbatim
16720 #: ../src/guestfs-actions.pod:6316
16721 #, no-wrap
16722 msgid ""
16723 " struct guestfs_stat *\n"
16724 " guestfs_stat (guestfs_h *g,\n"
16725 "               const char *path);\n"
16726 "\n"
16727 msgstr ""
16728
16729 #. type: textblock
16730 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4272
16731 msgid "This is the same as the C<stat(2)> system call."
16732 msgstr ""
16733
16734 #. type: =head2
16735 #: ../src/guestfs-actions.pod:6330 ../src/guestfs-structs.pod:135
16736 msgid "guestfs_statvfs"
16737 msgstr ""
16738
16739 #. type: verbatim
16740 #: ../src/guestfs-actions.pod:6332
16741 #, no-wrap
16742 msgid ""
16743 " struct guestfs_statvfs *\n"
16744 " guestfs_statvfs (guestfs_h *g,\n"
16745 "                  const char *path);\n"
16746 "\n"
16747 msgstr ""
16748
16749 #. type: textblock
16750 #: ../src/guestfs-actions.pod:6336 ../fish/guestfish-actions.pod:4278
16751 msgid ""
16752 "Returns file system statistics for any mounted file system.  C<path> should "
16753 "be a file or directory in the mounted file system (typically it is the mount "
16754 "point itself, but it doesn't need to be)."
16755 msgstr ""
16756
16757 #. type: textblock
16758 #: ../src/guestfs-actions.pod:6340 ../fish/guestfish-actions.pod:4282
16759 msgid "This is the same as the C<statvfs(2)> system call."
16760 msgstr ""
16761
16762 #. type: textblock
16763 #: ../src/guestfs-actions.pod:6342
16764 msgid ""
16765 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
16766 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
16767 msgstr ""
16768
16769 #. type: =head2
16770 #: ../src/guestfs-actions.pod:6348
16771 msgid "guestfs_strings"
16772 msgstr ""
16773
16774 #. type: verbatim
16775 #: ../src/guestfs-actions.pod:6350
16776 #, no-wrap
16777 msgid ""
16778 " char **\n"
16779 " guestfs_strings (guestfs_h *g,\n"
16780 "                  const char *path);\n"
16781 "\n"
16782 msgstr ""
16783
16784 #. type: textblock
16785 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4288
16786 msgid ""
16787 "This runs the L<strings(1)> command on a file and returns the list of "
16788 "printable strings found."
16789 msgstr ""
16790
16791 #. type: =head2
16792 #: ../src/guestfs-actions.pod:6366
16793 msgid "guestfs_strings_e"
16794 msgstr ""
16795
16796 #. type: verbatim
16797 #: ../src/guestfs-actions.pod:6368
16798 #, no-wrap
16799 msgid ""
16800 " char **\n"
16801 " guestfs_strings_e (guestfs_h *g,\n"
16802 "                    const char *encoding,\n"
16803 "                    const char *path);\n"
16804 "\n"
16805 msgstr ""
16806
16807 #. type: textblock
16808 #: ../src/guestfs-actions.pod:6373
16809 msgid ""
16810 "This is like the C<guestfs_strings> command, but allows you to specify the "
16811 "encoding of strings that are looked for in the source file C<path>."
16812 msgstr ""
16813
16814 #. type: textblock
16815 #: ../src/guestfs-actions.pod:6377 ../fish/guestfish-actions.pod:4302
16816 msgid "Allowed encodings are:"
16817 msgstr ""
16818
16819 #. type: =item
16820 #: ../src/guestfs-actions.pod:6381 ../fish/guestfish-actions.pod:4306
16821 msgid "s"
16822 msgstr ""
16823
16824 #. type: textblock
16825 #: ../src/guestfs-actions.pod:6383
16826 msgid ""
16827 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16828 "ISO-8859-X (this is what C<guestfs_strings> uses)."
16829 msgstr ""
16830
16831 #. type: =item
16832 #: ../src/guestfs-actions.pod:6386 ../fish/guestfish-actions.pod:4311
16833 msgid "S"
16834 msgstr ""
16835
16836 #. type: textblock
16837 #: ../src/guestfs-actions.pod:6388 ../fish/guestfish-actions.pod:4313
16838 msgid "Single 8-bit-byte characters."
16839 msgstr ""
16840
16841 #. type: =item
16842 #: ../src/guestfs-actions.pod:6390 ../fish/guestfish-actions.pod:4315
16843 msgid "b"
16844 msgstr ""
16845
16846 #. type: textblock
16847 #: ../src/guestfs-actions.pod:6392 ../fish/guestfish-actions.pod:4317
16848 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16849 msgstr ""
16850
16851 #. type: =item
16852 #: ../src/guestfs-actions.pod:6395 ../fish/guestfish-actions.pod:4320
16853 msgid "l (lower case letter L)"
16854 msgstr ""
16855
16856 #. type: textblock
16857 #: ../src/guestfs-actions.pod:6397 ../fish/guestfish-actions.pod:4322
16858 msgid ""
16859 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16860 "examining binaries in Windows guests."
16861 msgstr ""
16862
16863 #. type: =item
16864 #: ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4325
16865 msgid "B"
16866 msgstr ""
16867
16868 #. type: textblock
16869 #: ../src/guestfs-actions.pod:6402 ../fish/guestfish-actions.pod:4327
16870 msgid "32-bit big endian such as UCS-4BE."
16871 msgstr ""
16872
16873 #. type: =item
16874 #: ../src/guestfs-actions.pod:6404 ../fish/guestfish-actions.pod:4329
16875 msgid "L"
16876 msgstr ""
16877
16878 #. type: textblock
16879 #: ../src/guestfs-actions.pod:6406 ../fish/guestfish-actions.pod:4331
16880 msgid "32-bit little endian such as UCS-4LE."
16881 msgstr ""
16882
16883 #. type: textblock
16884 #: ../src/guestfs-actions.pod:6410 ../fish/guestfish-actions.pod:4335
16885 msgid "The returned strings are transcoded to UTF-8."
16886 msgstr ""
16887
16888 #. type: =head2
16889 #: ../src/guestfs-actions.pod:6421
16890 msgid "guestfs_swapoff_device"
16891 msgstr ""
16892
16893 #. type: verbatim
16894 #: ../src/guestfs-actions.pod:6423
16895 #, no-wrap
16896 msgid ""
16897 " int\n"
16898 " guestfs_swapoff_device (guestfs_h *g,\n"
16899 "                         const char *device);\n"
16900 "\n"
16901 msgstr ""
16902
16903 #. type: textblock
16904 #: ../src/guestfs-actions.pod:6427
16905 msgid ""
16906 "This command disables the libguestfs appliance swap device or partition "
16907 "named C<device>.  See C<guestfs_swapon_device>."
16908 msgstr ""
16909
16910 #. type: =head2
16911 #: ../src/guestfs-actions.pod:6435
16912 msgid "guestfs_swapoff_file"
16913 msgstr ""
16914
16915 #. type: verbatim
16916 #: ../src/guestfs-actions.pod:6437
16917 #, no-wrap
16918 msgid ""
16919 " int\n"
16920 " guestfs_swapoff_file (guestfs_h *g,\n"
16921 "                       const char *file);\n"
16922 "\n"
16923 msgstr ""
16924
16925 #. type: textblock
16926 #: ../src/guestfs-actions.pod:6441 ../fish/guestfish-actions.pod:4352
16927 msgid "This command disables the libguestfs appliance swap on file."
16928 msgstr ""
16929
16930 #. type: =head2
16931 #: ../src/guestfs-actions.pod:6447
16932 msgid "guestfs_swapoff_label"
16933 msgstr ""
16934
16935 #. type: verbatim
16936 #: ../src/guestfs-actions.pod:6449
16937 #, no-wrap
16938 msgid ""
16939 " int\n"
16940 " guestfs_swapoff_label (guestfs_h *g,\n"
16941 "                        const char *label);\n"
16942 "\n"
16943 msgstr ""
16944
16945 #. type: textblock
16946 #: ../src/guestfs-actions.pod:6453 ../fish/guestfish-actions.pod:4358
16947 msgid ""
16948 "This command disables the libguestfs appliance swap on labeled swap "
16949 "partition."
16950 msgstr ""
16951
16952 #. type: =head2
16953 #: ../src/guestfs-actions.pod:6460
16954 msgid "guestfs_swapoff_uuid"
16955 msgstr ""
16956
16957 #. type: verbatim
16958 #: ../src/guestfs-actions.pod:6462
16959 #, no-wrap
16960 msgid ""
16961 " int\n"
16962 " guestfs_swapoff_uuid (guestfs_h *g,\n"
16963 "                       const char *uuid);\n"
16964 "\n"
16965 msgstr ""
16966
16967 #. type: textblock
16968 #: ../src/guestfs-actions.pod:6466 ../fish/guestfish-actions.pod:4365
16969 msgid ""
16970 "This command disables the libguestfs appliance swap partition with the given "
16971 "UUID."
16972 msgstr ""
16973
16974 #. type: =head2
16975 #: ../src/guestfs-actions.pod:6473
16976 msgid "guestfs_swapon_device"
16977 msgstr ""
16978
16979 #. type: verbatim
16980 #: ../src/guestfs-actions.pod:6475
16981 #, no-wrap
16982 msgid ""
16983 " int\n"
16984 " guestfs_swapon_device (guestfs_h *g,\n"
16985 "                        const char *device);\n"
16986 "\n"
16987 msgstr ""
16988
16989 #. type: textblock
16990 #: ../src/guestfs-actions.pod:6479
16991 msgid ""
16992 "This command enables the libguestfs appliance to use the swap device or "
16993 "partition named C<device>.  The increased memory is made available for all "
16994 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
16995 msgstr ""
16996
16997 #. type: textblock
16998 #: ../src/guestfs-actions.pod:6484 ../fish/guestfish-actions.pod:4377
16999 msgid ""
17000 "Note that you should not swap to existing guest swap partitions unless you "
17001 "know what you are doing.  They may contain hibernation information, or other "
17002 "information that the guest doesn't want you to trash.  You also risk leaking "
17003 "information about the host to the guest this way.  Instead, attach a new "
17004 "host device to the guest and swap on that."
17005 msgstr ""
17006
17007 #. type: =head2
17008 #: ../src/guestfs-actions.pod:6495
17009 msgid "guestfs_swapon_file"
17010 msgstr ""
17011
17012 #. type: verbatim
17013 #: ../src/guestfs-actions.pod:6497
17014 #, no-wrap
17015 msgid ""
17016 " int\n"
17017 " guestfs_swapon_file (guestfs_h *g,\n"
17018 "                      const char *file);\n"
17019 "\n"
17020 msgstr ""
17021
17022 #. type: textblock
17023 #: ../src/guestfs-actions.pod:6501
17024 msgid ""
17025 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
17026 "notes."
17027 msgstr ""
17028
17029 #. type: =head2
17030 #: ../src/guestfs-actions.pod:6508
17031 msgid "guestfs_swapon_label"
17032 msgstr ""
17033
17034 #. type: verbatim
17035 #: ../src/guestfs-actions.pod:6510
17036 #, no-wrap
17037 msgid ""
17038 " int\n"
17039 " guestfs_swapon_label (guestfs_h *g,\n"
17040 "                       const char *label);\n"
17041 "\n"
17042 msgstr ""
17043
17044 #. type: textblock
17045 #: ../src/guestfs-actions.pod:6514
17046 msgid ""
17047 "This command enables swap to a labeled swap partition.  See "
17048 "C<guestfs_swapon_device> for other notes."
17049 msgstr ""
17050
17051 #. type: =head2
17052 #: ../src/guestfs-actions.pod:6521
17053 msgid "guestfs_swapon_uuid"
17054 msgstr ""
17055
17056 #. type: verbatim
17057 #: ../src/guestfs-actions.pod:6523
17058 #, no-wrap
17059 msgid ""
17060 " int\n"
17061 " guestfs_swapon_uuid (guestfs_h *g,\n"
17062 "                      const char *uuid);\n"
17063 "\n"
17064 msgstr ""
17065
17066 #. type: textblock
17067 #: ../src/guestfs-actions.pod:6527
17068 msgid ""
17069 "This command enables swap to a swap partition with the given UUID.  See "
17070 "C<guestfs_swapon_device> for other notes."
17071 msgstr ""
17072
17073 #. type: =head2
17074 #: ../src/guestfs-actions.pod:6534
17075 msgid "guestfs_sync"
17076 msgstr ""
17077
17078 #. type: verbatim
17079 #: ../src/guestfs-actions.pod:6536
17080 #, no-wrap
17081 msgid ""
17082 " int\n"
17083 " guestfs_sync (guestfs_h *g);\n"
17084 "\n"
17085 msgstr ""
17086
17087 #. type: textblock
17088 #: ../src/guestfs-actions.pod:6539 ../fish/guestfish-actions.pod:4409
17089 msgid ""
17090 "This syncs the disk, so that any writes are flushed through to the "
17091 "underlying disk image."
17092 msgstr ""
17093
17094 #. type: textblock
17095 #: ../src/guestfs-actions.pod:6542 ../fish/guestfish-actions.pod:4412
17096 msgid ""
17097 "You should always call this if you have modified a disk image, before "
17098 "closing the handle."
17099 msgstr ""
17100
17101 #. type: =head2
17102 #: ../src/guestfs-actions.pod:6549
17103 msgid "guestfs_tail"
17104 msgstr ""
17105
17106 #. type: verbatim
17107 #: ../src/guestfs-actions.pod:6551
17108 #, no-wrap
17109 msgid ""
17110 " char **\n"
17111 " guestfs_tail (guestfs_h *g,\n"
17112 "               const char *path);\n"
17113 "\n"
17114 msgstr ""
17115
17116 #. type: textblock
17117 #: ../src/guestfs-actions.pod:6555 ../fish/guestfish-actions.pod:4419
17118 msgid ""
17119 "This command returns up to the last 10 lines of a file as a list of strings."
17120 msgstr ""
17121
17122 #. type: =head2
17123 #: ../src/guestfs-actions.pod:6567
17124 msgid "guestfs_tail_n"
17125 msgstr ""
17126
17127 #. type: verbatim
17128 #: ../src/guestfs-actions.pod:6569
17129 #, no-wrap
17130 msgid ""
17131 " char **\n"
17132 " guestfs_tail_n (guestfs_h *g,\n"
17133 "                 int nrlines,\n"
17134 "                 const char *path);\n"
17135 "\n"
17136 msgstr ""
17137
17138 #. type: textblock
17139 #: ../src/guestfs-actions.pod:6574 ../fish/guestfish-actions.pod:4429
17140 msgid ""
17141 "If the parameter C<nrlines> is a positive number, this returns the last "
17142 "C<nrlines> lines of the file C<path>."
17143 msgstr ""
17144
17145 #. type: textblock
17146 #: ../src/guestfs-actions.pod:6577 ../fish/guestfish-actions.pod:4432
17147 msgid ""
17148 "If the parameter C<nrlines> is a negative number, this returns lines from "
17149 "the file C<path>, starting with the C<-nrlines>th line."
17150 msgstr ""
17151
17152 #. type: =head2
17153 #: ../src/guestfs-actions.pod:6591
17154 msgid "guestfs_tar_in"
17155 msgstr ""
17156
17157 #. type: verbatim
17158 #: ../src/guestfs-actions.pod:6593
17159 #, no-wrap
17160 msgid ""
17161 " int\n"
17162 " guestfs_tar_in (guestfs_h *g,\n"
17163 "                 const char *tarfile,\n"
17164 "                 const char *directory);\n"
17165 "\n"
17166 msgstr ""
17167
17168 #. type: textblock
17169 #: ../src/guestfs-actions.pod:6598 ../fish/guestfish-actions.pod:4444
17170 msgid ""
17171 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17172 "tar file) into C<directory>."
17173 msgstr ""
17174
17175 #. type: textblock
17176 #: ../src/guestfs-actions.pod:6601
17177 msgid ""
17178 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
17179 msgstr ""
17180
17181 #. type: textblock
17182 #: ../src/guestfs-actions.pod:6606 ../src/guestfs-actions.pod:6623
17183 #: ../src/guestfs-actions.pod:6639 ../src/guestfs-actions.pod:6655
17184 msgid "(Added in 1.0.3)"
17185 msgstr ""
17186
17187 #. type: =head2
17188 #: ../src/guestfs-actions.pod:6608
17189 msgid "guestfs_tar_out"
17190 msgstr ""
17191
17192 #. type: verbatim
17193 #: ../src/guestfs-actions.pod:6610
17194 #, no-wrap
17195 msgid ""
17196 " int\n"
17197 " guestfs_tar_out (guestfs_h *g,\n"
17198 "                  const char *directory,\n"
17199 "                  const char *tarfile);\n"
17200 "\n"
17201 msgstr ""
17202
17203 #. type: textblock
17204 #: ../src/guestfs-actions.pod:6615 ../fish/guestfish-actions.pod:4456
17205 msgid ""
17206 "This command packs the contents of C<directory> and downloads it to local "
17207 "file C<tarfile>."
17208 msgstr ""
17209
17210 #. type: textblock
17211 #: ../src/guestfs-actions.pod:6618
17212 msgid ""
17213 "To download a compressed tarball, use C<guestfs_tgz_out> or "
17214 "C<guestfs_txz_out>."
17215 msgstr ""
17216
17217 #. type: =head2
17218 #: ../src/guestfs-actions.pod:6625
17219 msgid "guestfs_tgz_in"
17220 msgstr ""
17221
17222 #. type: verbatim
17223 #: ../src/guestfs-actions.pod:6627
17224 #, no-wrap
17225 msgid ""
17226 " int\n"
17227 " guestfs_tgz_in (guestfs_h *g,\n"
17228 "                 const char *tarball,\n"
17229 "                 const char *directory);\n"
17230 "\n"
17231 msgstr ""
17232
17233 #. type: textblock
17234 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4468
17235 msgid ""
17236 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17237 "tar file) into C<directory>."
17238 msgstr ""
17239
17240 #. type: textblock
17241 #: ../src/guestfs-actions.pod:6635
17242 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
17243 msgstr ""
17244
17245 #. type: =head2
17246 #: ../src/guestfs-actions.pod:6641
17247 msgid "guestfs_tgz_out"
17248 msgstr ""
17249
17250 #. type: verbatim
17251 #: ../src/guestfs-actions.pod:6643
17252 #, no-wrap
17253 msgid ""
17254 " int\n"
17255 " guestfs_tgz_out (guestfs_h *g,\n"
17256 "                  const char *directory,\n"
17257 "                  const char *tarball);\n"
17258 "\n"
17259 msgstr ""
17260
17261 #. type: textblock
17262 #: ../src/guestfs-actions.pod:6648 ../fish/guestfish-actions.pod:4479
17263 msgid ""
17264 "This command packs the contents of C<directory> and downloads it to local "
17265 "file C<tarball>."
17266 msgstr ""
17267
17268 #. type: textblock
17269 #: ../src/guestfs-actions.pod:6651
17270 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
17271 msgstr ""
17272
17273 #. type: =head2
17274 #: ../src/guestfs-actions.pod:6657
17275 msgid "guestfs_touch"
17276 msgstr ""
17277
17278 #. type: verbatim
17279 #: ../src/guestfs-actions.pod:6659
17280 #, no-wrap
17281 msgid ""
17282 " int\n"
17283 " guestfs_touch (guestfs_h *g,\n"
17284 "                const char *path);\n"
17285 "\n"
17286 msgstr ""
17287
17288 #. type: textblock
17289 #: ../src/guestfs-actions.pod:6663 ../fish/guestfish-actions.pod:4490
17290 msgid ""
17291 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17292 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17293 "length file."
17294 msgstr ""
17295
17296 #. type: textblock
17297 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4494
17298 msgid ""
17299 "This command only works on regular files, and will fail on other file types "
17300 "such as directories, symbolic links, block special etc."
17301 msgstr ""
17302
17303 #. type: =head2
17304 #: ../src/guestfs-actions.pod:6674
17305 msgid "guestfs_truncate"
17306 msgstr ""
17307
17308 #. type: verbatim
17309 #: ../src/guestfs-actions.pod:6676
17310 #, no-wrap
17311 msgid ""
17312 " int\n"
17313 " guestfs_truncate (guestfs_h *g,\n"
17314 "                   const char *path);\n"
17315 "\n"
17316 msgstr ""
17317
17318 #. type: textblock
17319 #: ../src/guestfs-actions.pod:6680 ../fish/guestfish-actions.pod:4501
17320 msgid ""
17321 "This command truncates C<path> to a zero-length file.  The file must exist "
17322 "already."
17323 msgstr ""
17324
17325 #. type: =head2
17326 #: ../src/guestfs-actions.pod:6687
17327 msgid "guestfs_truncate_size"
17328 msgstr ""
17329
17330 #. type: verbatim
17331 #: ../src/guestfs-actions.pod:6689
17332 #, no-wrap
17333 msgid ""
17334 " int\n"
17335 " guestfs_truncate_size (guestfs_h *g,\n"
17336 "                        const char *path,\n"
17337 "                        int64_t size);\n"
17338 "\n"
17339 msgstr ""
17340
17341 #. type: textblock
17342 #: ../src/guestfs-actions.pod:6694 ../fish/guestfish-actions.pod:4508
17343 msgid ""
17344 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17345 "already."
17346 msgstr ""
17347
17348 #. type: textblock
17349 #: ../src/guestfs-actions.pod:6697
17350 msgid ""
17351 "If the current file size is less than C<size> then the file is extended to "
17352 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17353 "blocks are not allocated for the file until you write to it).  To create a "
17354 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
17355 msgstr ""
17356
17357 #. type: =head2
17358 #: ../src/guestfs-actions.pod:6707
17359 msgid "guestfs_tune2fs_l"
17360 msgstr ""
17361
17362 #. type: verbatim
17363 #: ../src/guestfs-actions.pod:6709
17364 #, no-wrap
17365 msgid ""
17366 " char **\n"
17367 " guestfs_tune2fs_l (guestfs_h *g,\n"
17368 "                    const char *device);\n"
17369 "\n"
17370 msgstr ""
17371
17372 #. type: textblock
17373 #: ../src/guestfs-actions.pod:6713 ../fish/guestfish-actions.pod:4521
17374 msgid ""
17375 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17376 "C<device>."
17377 msgstr ""
17378
17379 #. type: textblock
17380 #: ../src/guestfs-actions.pod:6716 ../fish/guestfish-actions.pod:4524
17381 msgid ""
17382 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17383 "for more details.  The list of fields returned isn't clearly defined, and "
17384 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17385 "and the filesystem itself."
17386 msgstr ""
17387
17388 #. type: =head2
17389 #: ../src/guestfs-actions.pod:6729
17390 msgid "guestfs_txz_in"
17391 msgstr ""
17392
17393 #. type: verbatim
17394 #: ../src/guestfs-actions.pod:6731
17395 #, no-wrap
17396 msgid ""
17397 " int\n"
17398 " guestfs_txz_in (guestfs_h *g,\n"
17399 "                 const char *tarball,\n"
17400 "                 const char *directory);\n"
17401 "\n"
17402 msgstr ""
17403
17404 #. type: textblock
17405 #: ../src/guestfs-actions.pod:6736 ../fish/guestfish-actions.pod:4533
17406 msgid ""
17407 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17408 "tar file) into C<directory>."
17409 msgstr ""
17410
17411 #. type: =head2
17412 #: ../src/guestfs-actions.pod:6743
17413 msgid "guestfs_txz_out"
17414 msgstr ""
17415
17416 #. type: verbatim
17417 #: ../src/guestfs-actions.pod:6745
17418 #, no-wrap
17419 msgid ""
17420 " int\n"
17421 " guestfs_txz_out (guestfs_h *g,\n"
17422 "                  const char *directory,\n"
17423 "                  const char *tarball);\n"
17424 "\n"
17425 msgstr ""
17426
17427 #. type: textblock
17428 #: ../src/guestfs-actions.pod:6750 ../fish/guestfish-actions.pod:4542
17429 msgid ""
17430 "This command packs the contents of C<directory> and downloads it to local "
17431 "file C<tarball> (as an xz compressed tar archive)."
17432 msgstr ""
17433
17434 #. type: =head2
17435 #: ../src/guestfs-actions.pod:6757
17436 msgid "guestfs_umask"
17437 msgstr ""
17438
17439 #. type: verbatim
17440 #: ../src/guestfs-actions.pod:6759
17441 #, no-wrap
17442 msgid ""
17443 " int\n"
17444 " guestfs_umask (guestfs_h *g,\n"
17445 "                int mask);\n"
17446 "\n"
17447 msgstr ""
17448
17449 #. type: textblock
17450 #: ../src/guestfs-actions.pod:6763 ../fish/guestfish-actions.pod:4551
17451 msgid ""
17452 "This function sets the mask used for creating new files and device nodes to "
17453 "C<mask & 0777>."
17454 msgstr ""
17455
17456 #. type: textblock
17457 #: ../src/guestfs-actions.pod:6766 ../fish/guestfish-actions.pod:4554
17458 msgid ""
17459 "Typical umask values would be C<022> which creates new files with "
17460 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17461 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17462 msgstr ""
17463
17464 #. type: textblock
17465 #: ../src/guestfs-actions.pod:6771 ../fish/guestfish-actions.pod:4559
17466 msgid ""
17467 "The default umask is C<022>.  This is important because it means that "
17468 "directories and device nodes will be created with C<0644> or C<0755> mode "
17469 "even if you specify C<0777>."
17470 msgstr ""
17471
17472 #. type: textblock
17473 #: ../src/guestfs-actions.pod:6775
17474 msgid ""
17475 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
17476 "C<guestfs_mkdir>."
17477 msgstr ""
17478
17479 #. type: textblock
17480 #: ../src/guestfs-actions.pod:6778 ../fish/guestfish-actions.pod:4566
17481 msgid "This call returns the previous umask."
17482 msgstr ""
17483
17484 #. type: =head2
17485 #: ../src/guestfs-actions.pod:6784
17486 msgid "guestfs_umount"
17487 msgstr ""
17488
17489 #. type: verbatim
17490 #: ../src/guestfs-actions.pod:6786
17491 #, no-wrap
17492 msgid ""
17493 " int\n"
17494 " guestfs_umount (guestfs_h *g,\n"
17495 "                 const char *pathordevice);\n"
17496 "\n"
17497 msgstr ""
17498
17499 #. type: textblock
17500 #: ../src/guestfs-actions.pod:6790 ../fish/guestfish-actions.pod:4574
17501 msgid ""
17502 "This unmounts the given filesystem.  The filesystem may be specified either "
17503 "by its mountpoint (path) or the device which contains the filesystem."
17504 msgstr ""
17505
17506 #. type: =head2
17507 #: ../src/guestfs-actions.pod:6798
17508 msgid "guestfs_umount_all"
17509 msgstr ""
17510
17511 #. type: verbatim
17512 #: ../src/guestfs-actions.pod:6800
17513 #, no-wrap
17514 msgid ""
17515 " int\n"
17516 " guestfs_umount_all (guestfs_h *g);\n"
17517 "\n"
17518 msgstr ""
17519
17520 #. type: textblock
17521 #: ../src/guestfs-actions.pod:6803 ../fish/guestfish-actions.pod:4584
17522 msgid "This unmounts all mounted filesystems."
17523 msgstr ""
17524
17525 #. type: textblock
17526 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4586
17527 msgid "Some internal mounts are not unmounted by this call."
17528 msgstr ""
17529
17530 #. type: =head2
17531 #: ../src/guestfs-actions.pod:6811
17532 msgid "guestfs_upload"
17533 msgstr ""
17534
17535 #. type: verbatim
17536 #: ../src/guestfs-actions.pod:6813
17537 #, no-wrap
17538 msgid ""
17539 " int\n"
17540 " guestfs_upload (guestfs_h *g,\n"
17541 "                 const char *filename,\n"
17542 "                 const char *remotefilename);\n"
17543 "\n"
17544 msgstr ""
17545
17546 #. type: textblock
17547 #: ../src/guestfs-actions.pod:6818 ../src/guestfs-actions.pod:6842
17548 #: ../fish/guestfish-actions.pod:4592 ../fish/guestfish-actions.pod:4605
17549 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17550 msgstr ""
17551
17552 #. type: textblock
17553 #: ../src/guestfs-actions.pod:6823
17554 msgid "See also C<guestfs_download>."
17555 msgstr ""
17556
17557 #. type: =head2
17558 #: ../src/guestfs-actions.pod:6834
17559 msgid "guestfs_upload_offset"
17560 msgstr ""
17561
17562 #. type: verbatim
17563 #: ../src/guestfs-actions.pod:6836
17564 #, no-wrap
17565 msgid ""
17566 " int\n"
17567 " guestfs_upload_offset (guestfs_h *g,\n"
17568 "                        const char *filename,\n"
17569 "                        const char *remotefilename,\n"
17570 "                        int64_t offset);\n"
17571 "\n"
17572 msgstr ""
17573
17574 #. type: textblock
17575 #: ../src/guestfs-actions.pod:6845 ../fish/guestfish-actions.pod:4608
17576 msgid ""
17577 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17578 "The intention is to overwrite parts of existing files or devices, although "
17579 "if a non-existant file is specified then it is created with a \"hole\" "
17580 "before C<offset>.  The size of the data written is implicit in the size of "
17581 "the source C<filename>."
17582 msgstr ""
17583
17584 #. type: textblock
17585 #: ../src/guestfs-actions.pod:6852
17586 msgid ""
17587 "Note that there is no limit on the amount of data that can be uploaded with "
17588 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
17589 "full amount unless an error occurs."
17590 msgstr ""
17591
17592 #. type: textblock
17593 #: ../src/guestfs-actions.pod:6857
17594 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
17595 msgstr ""
17596
17597 #. type: =head2
17598 #: ../src/guestfs-actions.pod:6868
17599 msgid "guestfs_utimens"
17600 msgstr ""
17601
17602 #. type: verbatim
17603 #: ../src/guestfs-actions.pod:6870
17604 #, no-wrap
17605 msgid ""
17606 " int\n"
17607 " guestfs_utimens (guestfs_h *g,\n"
17608 "                  const char *path,\n"
17609 "                  int64_t atsecs,\n"
17610 "                  int64_t atnsecs,\n"
17611 "                  int64_t mtsecs,\n"
17612 "                  int64_t mtnsecs);\n"
17613 "\n"
17614 msgstr ""
17615
17616 #. type: textblock
17617 #: ../src/guestfs-actions.pod:6878 ../fish/guestfish-actions.pod:4628
17618 msgid "This command sets the timestamps of a file with nanosecond precision."
17619 msgstr ""
17620
17621 #. type: textblock
17622 #: ../src/guestfs-actions.pod:6881 ../fish/guestfish-actions.pod:4631
17623 msgid ""
17624 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17625 "from the epoch."
17626 msgstr ""
17627
17628 #. type: textblock
17629 #: ../src/guestfs-actions.pod:6884 ../fish/guestfish-actions.pod:4634
17630 msgid ""
17631 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17632 "nanoseconds from the epoch."
17633 msgstr ""
17634
17635 #. type: textblock
17636 #: ../src/guestfs-actions.pod:6887 ../fish/guestfish-actions.pod:4637
17637 msgid ""
17638 "If the C<*nsecs> field contains the special value C<-1> then the "
17639 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17640 "ignored in this case)."
17641 msgstr ""
17642
17643 #. type: textblock
17644 #: ../src/guestfs-actions.pod:6891 ../fish/guestfish-actions.pod:4641
17645 msgid ""
17646 "If the C<*nsecs> field contains the special value C<-2> then the "
17647 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17648 "in this case)."
17649 msgstr ""
17650
17651 #. type: =head2
17652 #: ../src/guestfs-actions.pod:6899 ../src/guestfs-structs.pod:175
17653 msgid "guestfs_version"
17654 msgstr ""
17655
17656 #. type: verbatim
17657 #: ../src/guestfs-actions.pod:6901
17658 #, no-wrap
17659 msgid ""
17660 " struct guestfs_version *\n"
17661 " guestfs_version (guestfs_h *g);\n"
17662 "\n"
17663 msgstr ""
17664
17665 #. type: textblock
17666 #: ../src/guestfs-actions.pod:6904 ../fish/guestfish-actions.pod:4649
17667 msgid ""
17668 "Return the libguestfs version number that the program is linked against."
17669 msgstr ""
17670
17671 #. type: textblock
17672 #: ../src/guestfs-actions.pod:6907 ../fish/guestfish-actions.pod:4652
17673 msgid ""
17674 "Note that because of dynamic linking this is not necessarily the version of "
17675 "libguestfs that you compiled against.  You can compile the program, and then "
17676 "at runtime dynamically link against a completely different C<libguestfs.so> "
17677 "library."
17678 msgstr ""
17679
17680 #. type: textblock
17681 #: ../src/guestfs-actions.pod:6912 ../fish/guestfish-actions.pod:4657
17682 msgid ""
17683 "This call was added in version C<1.0.58>.  In previous versions of "
17684 "libguestfs there was no way to get the version number.  From C code you can "
17685 "use dynamic linker functions to find out if this symbol exists (if it "
17686 "doesn't, then it's an earlier version)."
17687 msgstr ""
17688
17689 #. type: textblock
17690 #: ../src/guestfs-actions.pod:6918 ../fish/guestfish-actions.pod:4663
17691 msgid ""
17692 "The call returns a structure with four elements.  The first three (C<major>, "
17693 "C<minor> and C<release>) are numbers and correspond to the usual version "
17694 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17695 "but may be used for distro-specific information."
17696 msgstr ""
17697
17698 #. type: textblock
17699 #: ../src/guestfs-actions.pod:6924 ../fish/guestfish-actions.pod:4669
17700 msgid ""
17701 "To construct the original version string: C<$major.$minor.$release$extra>"
17702 msgstr ""
17703
17704 #. type: textblock
17705 #: ../src/guestfs-actions.pod:6927 ../fish/guestfish-actions.pod:4672
17706 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17707 msgstr ""
17708
17709 #. type: textblock
17710 #: ../src/guestfs-actions.pod:6929
17711 msgid ""
17712 "I<Note:> Don't use this call to test for availability of features.  In "
17713 "enterprise distributions we backport features from later versions into "
17714 "earlier versions, making this an unreliable way to test for features.  Use "
17715 "C<guestfs_available> instead."
17716 msgstr ""
17717
17718 #. type: textblock
17719 #: ../src/guestfs-actions.pod:6935
17720 msgid ""
17721 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
17722 "error.  I<The caller must call C<guestfs_free_version> after use>."
17723 msgstr ""
17724
17725 #. type: textblock
17726 #: ../src/guestfs-actions.pod:6939
17727 msgid "(Added in 1.0.58)"
17728 msgstr ""
17729
17730 #. type: =head2
17731 #: ../src/guestfs-actions.pod:6941
17732 msgid "guestfs_vfs_label"
17733 msgstr ""
17734
17735 #. type: verbatim
17736 #: ../src/guestfs-actions.pod:6943
17737 #, no-wrap
17738 msgid ""
17739 " char *\n"
17740 " guestfs_vfs_label (guestfs_h *g,\n"
17741 "                    const char *device);\n"
17742 "\n"
17743 msgstr ""
17744
17745 #. type: textblock
17746 #: ../src/guestfs-actions.pod:6947 ../fish/guestfish-actions.pod:4684
17747 msgid "This returns the filesystem label of the filesystem on C<device>."
17748 msgstr ""
17749
17750 #. type: textblock
17751 #: ../src/guestfs-actions.pod:6950 ../fish/guestfish-actions.pod:4687
17752 msgid "If the filesystem is unlabeled, this returns the empty string."
17753 msgstr ""
17754
17755 #. type: textblock
17756 #: ../src/guestfs-actions.pod:6952
17757 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
17758 msgstr ""
17759
17760 #. type: textblock
17761 #: ../src/guestfs-actions.pod:6957 ../src/guestfs-actions.pod:6994
17762 msgid "(Added in 1.3.18)"
17763 msgstr ""
17764
17765 #. type: =head2
17766 #: ../src/guestfs-actions.pod:6959
17767 msgid "guestfs_vfs_type"
17768 msgstr ""
17769
17770 #. type: verbatim
17771 #: ../src/guestfs-actions.pod:6961
17772 #, no-wrap
17773 msgid ""
17774 " char *\n"
17775 " guestfs_vfs_type (guestfs_h *g,\n"
17776 "                   const char *device);\n"
17777 "\n"
17778 msgstr ""
17779
17780 #. type: textblock
17781 #: ../src/guestfs-actions.pod:6965 ../fish/guestfish-actions.pod:4695
17782 msgid ""
17783 "This command gets the filesystem type corresponding to the filesystem on "
17784 "C<device>."
17785 msgstr ""
17786
17787 #. type: textblock
17788 #: ../src/guestfs-actions.pod:6968 ../fish/guestfish-actions.pod:4698
17789 msgid ""
17790 "For most filesystems, the result is the name of the Linux VFS module which "
17791 "would be used to mount this filesystem if you mounted it without specifying "
17792 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17793 msgstr ""
17794
17795 #. type: =head2
17796 #: ../src/guestfs-actions.pod:6978
17797 msgid "guestfs_vfs_uuid"
17798 msgstr ""
17799
17800 #. type: verbatim
17801 #: ../src/guestfs-actions.pod:6980
17802 #, no-wrap
17803 msgid ""
17804 " char *\n"
17805 " guestfs_vfs_uuid (guestfs_h *g,\n"
17806 "                   const char *device);\n"
17807 "\n"
17808 msgstr ""
17809
17810 #. type: textblock
17811 #: ../src/guestfs-actions.pod:6984 ../fish/guestfish-actions.pod:4707
17812 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17813 msgstr ""
17814
17815 #. type: textblock
17816 #: ../src/guestfs-actions.pod:6987 ../fish/guestfish-actions.pod:4710
17817 msgid "If the filesystem does not have a UUID, this returns the empty string."
17818 msgstr ""
17819
17820 #. type: textblock
17821 #: ../src/guestfs-actions.pod:6989
17822 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
17823 msgstr ""
17824
17825 #. type: =head2
17826 #: ../src/guestfs-actions.pod:6996
17827 msgid "guestfs_vg_activate"
17828 msgstr ""
17829
17830 #. type: verbatim
17831 #: ../src/guestfs-actions.pod:6998
17832 #, no-wrap
17833 msgid ""
17834 " int\n"
17835 " guestfs_vg_activate (guestfs_h *g,\n"
17836 "                      int activate,\n"
17837 "                      char *const *volgroups);\n"
17838 "\n"
17839 msgstr ""
17840
17841 #. type: textblock
17842 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4718
17843 msgid ""
17844 "This command activates or (if C<activate> is false) deactivates all logical "
17845 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
17846 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
17847 "deactivated, then those devices disappear."
17848 msgstr ""
17849
17850 #. type: textblock
17851 #: ../src/guestfs-actions.pod:7009 ../fish/guestfish-actions.pod:4724
17852 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17853 msgstr ""
17854
17855 #. type: textblock
17856 #: ../src/guestfs-actions.pod:7011 ../fish/guestfish-actions.pod:4726
17857 msgid ""
17858 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17859 "activated or deactivated."
17860 msgstr ""
17861
17862 #. type: =head2
17863 #: ../src/guestfs-actions.pod:7018
17864 msgid "guestfs_vg_activate_all"
17865 msgstr ""
17866
17867 #. type: verbatim
17868 #: ../src/guestfs-actions.pod:7020
17869 #, no-wrap
17870 msgid ""
17871 " int\n"
17872 " guestfs_vg_activate_all (guestfs_h *g,\n"
17873 "                          int activate);\n"
17874 "\n"
17875 msgstr ""
17876
17877 #. type: textblock
17878 #: ../src/guestfs-actions.pod:7024 ../fish/guestfish-actions.pod:4733
17879 msgid ""
17880 "This command activates or (if C<activate> is false) deactivates all logical "
17881 "volumes in all volume groups.  If activated, then they are made known to the "
17882 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
17883 "those devices disappear."
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../src/guestfs-actions.pod:7030 ../fish/guestfish-actions.pod:4739
17888 msgid "This command is the same as running C<vgchange -a y|n>"
17889 msgstr ""
17890
17891 #. type: =head2
17892 #: ../src/guestfs-actions.pod:7036
17893 msgid "guestfs_vgcreate"
17894 msgstr ""
17895
17896 #. type: verbatim
17897 #: ../src/guestfs-actions.pod:7038
17898 #, no-wrap
17899 msgid ""
17900 " int\n"
17901 " guestfs_vgcreate (guestfs_h *g,\n"
17902 "                   const char *volgroup,\n"
17903 "                   char *const *physvols);\n"
17904 "\n"
17905 msgstr ""
17906
17907 #. type: textblock
17908 #: ../src/guestfs-actions.pod:7043 ../fish/guestfish-actions.pod:4745
17909 msgid ""
17910 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17911 "of physical volumes C<physvols>."
17912 msgstr ""
17913
17914 #. type: =head2
17915 #: ../src/guestfs-actions.pod:7050
17916 msgid "guestfs_vglvuuids"
17917 msgstr ""
17918
17919 #. type: verbatim
17920 #: ../src/guestfs-actions.pod:7052
17921 #, no-wrap
17922 msgid ""
17923 " char **\n"
17924 " guestfs_vglvuuids (guestfs_h *g,\n"
17925 "                    const char *vgname);\n"
17926 "\n"
17927 msgstr ""
17928
17929 #. type: textblock
17930 #: ../src/guestfs-actions.pod:7056 ../fish/guestfish-actions.pod:4752
17931 msgid ""
17932 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17933 "volumes created in this volume group."
17934 msgstr ""
17935
17936 #. type: textblock
17937 #: ../src/guestfs-actions.pod:7059
17938 msgid ""
17939 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
17940 "associate logical volumes and volume groups."
17941 msgstr ""
17942
17943 #. type: textblock
17944 #: ../src/guestfs-actions.pod:7062
17945 msgid "See also C<guestfs_vgpvuuids>."
17946 msgstr ""
17947
17948 #. type: =head2
17949 #: ../src/guestfs-actions.pod:7070
17950 msgid "guestfs_vgpvuuids"
17951 msgstr ""
17952
17953 #. type: verbatim
17954 #: ../src/guestfs-actions.pod:7072
17955 #, no-wrap
17956 msgid ""
17957 " char **\n"
17958 " guestfs_vgpvuuids (guestfs_h *g,\n"
17959 "                    const char *vgname);\n"
17960 "\n"
17961 msgstr ""
17962
17963 #. type: textblock
17964 #: ../src/guestfs-actions.pod:7076 ../fish/guestfish-actions.pod:4764
17965 msgid ""
17966 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17967 "volumes that this volume group resides on."
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../src/guestfs-actions.pod:7079
17972 msgid ""
17973 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
17974 "associate physical volumes and volume groups."
17975 msgstr ""
17976
17977 #. type: textblock
17978 #: ../src/guestfs-actions.pod:7082
17979 msgid "See also C<guestfs_vglvuuids>."
17980 msgstr ""
17981
17982 #. type: =head2
17983 #: ../src/guestfs-actions.pod:7090
17984 msgid "guestfs_vgremove"
17985 msgstr ""
17986
17987 #. type: verbatim
17988 #: ../src/guestfs-actions.pod:7092
17989 #, no-wrap
17990 msgid ""
17991 " int\n"
17992 " guestfs_vgremove (guestfs_h *g,\n"
17993 "                   const char *vgname);\n"
17994 "\n"
17995 msgstr ""
17996
17997 #. type: textblock
17998 #: ../src/guestfs-actions.pod:7096 ../fish/guestfish-actions.pod:4776
17999 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18000 msgstr ""
18001
18002 #. type: textblock
18003 #: ../src/guestfs-actions.pod:7098 ../fish/guestfish-actions.pod:4778
18004 msgid ""
18005 "This also forcibly removes all logical volumes in the volume group (if any)."
18006 msgstr ""
18007
18008 #. type: =head2
18009 #: ../src/guestfs-actions.pod:7105
18010 msgid "guestfs_vgrename"
18011 msgstr ""
18012
18013 #. type: verbatim
18014 #: ../src/guestfs-actions.pod:7107
18015 #, no-wrap
18016 msgid ""
18017 " int\n"
18018 " guestfs_vgrename (guestfs_h *g,\n"
18019 "                   const char *volgroup,\n"
18020 "                   const char *newvolgroup);\n"
18021 "\n"
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../src/guestfs-actions.pod:7112 ../fish/guestfish-actions.pod:4785
18026 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18027 msgstr ""
18028
18029 #. type: =head2
18030 #: ../src/guestfs-actions.pod:7118
18031 msgid "guestfs_vgs"
18032 msgstr ""
18033
18034 #. type: verbatim
18035 #: ../src/guestfs-actions.pod:7120
18036 #, no-wrap
18037 msgid ""
18038 " char **\n"
18039 " guestfs_vgs (guestfs_h *g);\n"
18040 "\n"
18041 msgstr ""
18042
18043 #. type: textblock
18044 #: ../src/guestfs-actions.pod:7123 ../fish/guestfish-actions.pod:4791
18045 msgid ""
18046 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18047 "> command."
18048 msgstr ""
18049
18050 #. type: textblock
18051 #: ../src/guestfs-actions.pod:7126 ../fish/guestfish-actions.pod:4794
18052 msgid ""
18053 "This returns a list of just the volume group names that were detected (eg. "
18054 "C<VolGroup00>)."
18055 msgstr ""
18056
18057 #. type: textblock
18058 #: ../src/guestfs-actions.pod:7129
18059 msgid "See also C<guestfs_vgs_full>."
18060 msgstr ""
18061
18062 #. type: =head2
18063 #: ../src/guestfs-actions.pod:7137
18064 msgid "guestfs_vgs_full"
18065 msgstr ""
18066
18067 #. type: verbatim
18068 #: ../src/guestfs-actions.pod:7139
18069 #, no-wrap
18070 msgid ""
18071 " struct guestfs_lvm_vg_list *\n"
18072 " guestfs_vgs_full (guestfs_h *g);\n"
18073 "\n"
18074 msgstr ""
18075
18076 #. type: textblock
18077 #: ../src/guestfs-actions.pod:7142 ../fish/guestfish-actions.pod:4803
18078 msgid ""
18079 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18080 "> command.  The \"full\" version includes all fields."
18081 msgstr ""
18082
18083 #. type: textblock
18084 #: ../src/guestfs-actions.pod:7145
18085 msgid ""
18086 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
18087 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
18088 msgstr ""
18089
18090 #. type: =head2
18091 #: ../src/guestfs-actions.pod:7151
18092 msgid "guestfs_vgscan"
18093 msgstr ""
18094
18095 #. type: verbatim
18096 #: ../src/guestfs-actions.pod:7153
18097 #, no-wrap
18098 msgid ""
18099 " int\n"
18100 " guestfs_vgscan (guestfs_h *g);\n"
18101 "\n"
18102 msgstr ""
18103
18104 #. type: textblock
18105 #: ../src/guestfs-actions.pod:7156 ../fish/guestfish-actions.pod:4810
18106 msgid ""
18107 "This rescans all block devices and rebuilds the list of LVM physical "
18108 "volumes, volume groups and logical volumes."
18109 msgstr ""
18110
18111 #. type: =head2
18112 #: ../src/guestfs-actions.pod:7163
18113 msgid "guestfs_vguuid"
18114 msgstr ""
18115
18116 #. type: verbatim
18117 #: ../src/guestfs-actions.pod:7165
18118 #, no-wrap
18119 msgid ""
18120 " char *\n"
18121 " guestfs_vguuid (guestfs_h *g,\n"
18122 "                 const char *vgname);\n"
18123 "\n"
18124 msgstr ""
18125
18126 #. type: textblock
18127 #: ../src/guestfs-actions.pod:7169 ../fish/guestfish-actions.pod:4817
18128 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18129 msgstr ""
18130
18131 #. type: =head2
18132 #: ../src/guestfs-actions.pod:7176
18133 msgid "guestfs_wait_ready"
18134 msgstr ""
18135
18136 #. type: verbatim
18137 #: ../src/guestfs-actions.pod:7178
18138 #, no-wrap
18139 msgid ""
18140 " int\n"
18141 " guestfs_wait_ready (guestfs_h *g);\n"
18142 "\n"
18143 msgstr ""
18144
18145 #. type: textblock
18146 #: ../src/guestfs-actions.pod:7181
18147 msgid "This function is a no op."
18148 msgstr ""
18149
18150 #. type: textblock
18151 #: ../src/guestfs-actions.pod:7183
18152 msgid ""
18153 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
18154 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
18155 "is no longer necessary because C<guestfs_launch> now does the waiting."
18156 msgstr ""
18157
18158 #. type: textblock
18159 #: ../src/guestfs-actions.pod:7188
18160 msgid ""
18161 "If you see any calls to this function in code then you can just remove them, "
18162 "unless you want to retain compatibility with older versions of the API."
18163 msgstr ""
18164
18165 #. type: =head2
18166 #: ../src/guestfs-actions.pod:7196
18167 msgid "guestfs_wc_c"
18168 msgstr ""
18169
18170 #. type: verbatim
18171 #: ../src/guestfs-actions.pod:7198
18172 #, no-wrap
18173 msgid ""
18174 " int\n"
18175 " guestfs_wc_c (guestfs_h *g,\n"
18176 "               const char *path);\n"
18177 "\n"
18178 msgstr ""
18179
18180 #. type: textblock
18181 #: ../src/guestfs-actions.pod:7202 ../fish/guestfish-actions.pod:4823
18182 msgid ""
18183 "This command counts the characters in a file, using the C<wc -c> external "
18184 "command."
18185 msgstr ""
18186
18187 #. type: =head2
18188 #: ../src/guestfs-actions.pod:7209
18189 msgid "guestfs_wc_l"
18190 msgstr ""
18191
18192 #. type: verbatim
18193 #: ../src/guestfs-actions.pod:7211
18194 #, no-wrap
18195 msgid ""
18196 " int\n"
18197 " guestfs_wc_l (guestfs_h *g,\n"
18198 "               const char *path);\n"
18199 "\n"
18200 msgstr ""
18201
18202 #. type: textblock
18203 #: ../src/guestfs-actions.pod:7215 ../fish/guestfish-actions.pod:4830
18204 msgid ""
18205 "This command counts the lines in a file, using the C<wc -l> external command."
18206 msgstr ""
18207
18208 #. type: =head2
18209 #: ../src/guestfs-actions.pod:7222
18210 msgid "guestfs_wc_w"
18211 msgstr ""
18212
18213 #. type: verbatim
18214 #: ../src/guestfs-actions.pod:7224
18215 #, no-wrap
18216 msgid ""
18217 " int\n"
18218 " guestfs_wc_w (guestfs_h *g,\n"
18219 "               const char *path);\n"
18220 "\n"
18221 msgstr ""
18222
18223 #. type: textblock
18224 #: ../src/guestfs-actions.pod:7228 ../fish/guestfish-actions.pod:4837
18225 msgid ""
18226 "This command counts the words in a file, using the C<wc -w> external command."
18227 msgstr ""
18228
18229 #. type: =head2
18230 #: ../src/guestfs-actions.pod:7235
18231 msgid "guestfs_write"
18232 msgstr ""
18233
18234 #. type: verbatim
18235 #: ../src/guestfs-actions.pod:7237
18236 #, no-wrap
18237 msgid ""
18238 " int\n"
18239 " guestfs_write (guestfs_h *g,\n"
18240 "                const char *path,\n"
18241 "                const char *content,\n"
18242 "                size_t content_size);\n"
18243 "\n"
18244 msgstr ""
18245
18246 #. type: textblock
18247 #: ../src/guestfs-actions.pod:7243 ../fish/guestfish-actions.pod:4844
18248 msgid ""
18249 "This call creates a file called C<path>.  The content of the file is the "
18250 "string C<content> (which can contain any 8 bit data)."
18251 msgstr ""
18252
18253 #. type: =head2
18254 #: ../src/guestfs-actions.pod:7253
18255 msgid "guestfs_write_file"
18256 msgstr ""
18257
18258 #. type: verbatim
18259 #: ../src/guestfs-actions.pod:7255
18260 #, no-wrap
18261 msgid ""
18262 " int\n"
18263 " guestfs_write_file (guestfs_h *g,\n"
18264 "                     const char *path,\n"
18265 "                     const char *content,\n"
18266 "                     int size);\n"
18267 "\n"
18268 msgstr ""
18269
18270 #. type: textblock
18271 #: ../src/guestfs-actions.pod:7261 ../fish/guestfish-actions.pod:4854
18272 msgid ""
18273 "This call creates a file called C<path>.  The contents of the file is the "
18274 "string C<content> (which can contain any 8 bit data), with length C<size>."
18275 msgstr ""
18276
18277 #. type: textblock
18278 #: ../src/guestfs-actions.pod:7265 ../fish/guestfish-actions.pod:4858
18279 msgid ""
18280 "As a special case, if C<size> is C<0> then the length is calculated using "
18281 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18282 msgstr ""
18283
18284 #. type: textblock
18285 #: ../src/guestfs-actions.pod:7269 ../fish/guestfish-actions.pod:4862
18286 msgid ""
18287 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18288 "I<not> work, even if the length is specified."
18289 msgstr ""
18290
18291 #. type: textblock
18292 #: ../src/guestfs-actions.pod:7277 ../fish/guestfish-actions.pod:4868
18293 msgid ""
18294 "This function is deprecated.  In new code, use the C<write> call instead."
18295 msgstr ""
18296
18297 #. type: =head2
18298 #: ../src/guestfs-actions.pod:7286
18299 msgid "guestfs_zegrep"
18300 msgstr ""
18301
18302 #. type: verbatim
18303 #: ../src/guestfs-actions.pod:7288
18304 #, no-wrap
18305 msgid ""
18306 " char **\n"
18307 " guestfs_zegrep (guestfs_h *g,\n"
18308 "                 const char *regex,\n"
18309 "                 const char *path);\n"
18310 "\n"
18311 msgstr ""
18312
18313 #. type: textblock
18314 #: ../src/guestfs-actions.pod:7293 ../fish/guestfish-actions.pod:4879
18315 msgid ""
18316 "This calls the external C<zegrep> program and returns the matching lines."
18317 msgstr ""
18318
18319 #. type: =head2
18320 #: ../src/guestfs-actions.pod:7305
18321 msgid "guestfs_zegrepi"
18322 msgstr ""
18323
18324 #. type: verbatim
18325 #: ../src/guestfs-actions.pod:7307
18326 #, no-wrap
18327 msgid ""
18328 " char **\n"
18329 " guestfs_zegrepi (guestfs_h *g,\n"
18330 "                  const char *regex,\n"
18331 "                  const char *path);\n"
18332 "\n"
18333 msgstr ""
18334
18335 #. type: textblock
18336 #: ../src/guestfs-actions.pod:7312 ../fish/guestfish-actions.pod:4889
18337 msgid ""
18338 "This calls the external C<zegrep -i> program and returns the matching lines."
18339 msgstr ""
18340
18341 #. type: =head2
18342 #: ../src/guestfs-actions.pod:7324
18343 msgid "guestfs_zero"
18344 msgstr ""
18345
18346 #. type: verbatim
18347 #: ../src/guestfs-actions.pod:7326
18348 #, no-wrap
18349 msgid ""
18350 " int\n"
18351 " guestfs_zero (guestfs_h *g,\n"
18352 "               const char *device);\n"
18353 "\n"
18354 msgstr ""
18355
18356 #. type: textblock
18357 #: ../src/guestfs-actions.pod:7330 ../fish/guestfish-actions.pod:4899
18358 msgid "This command writes zeroes over the first few blocks of C<device>."
18359 msgstr ""
18360
18361 #. type: textblock
18362 #: ../src/guestfs-actions.pod:7332 ../fish/guestfish-actions.pod:4901
18363 msgid ""
18364 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18365 "securely wipe the device).  It should be sufficient to remove any partition "
18366 "tables, filesystem superblocks and so on."
18367 msgstr ""
18368
18369 #. type: textblock
18370 #: ../src/guestfs-actions.pod:7336
18371 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
18372 msgstr ""
18373
18374 #. type: =head2
18375 #: ../src/guestfs-actions.pod:7347
18376 msgid "guestfs_zero_device"
18377 msgstr ""
18378
18379 #. type: verbatim
18380 #: ../src/guestfs-actions.pod:7349
18381 #, no-wrap
18382 msgid ""
18383 " int\n"
18384 " guestfs_zero_device (guestfs_h *g,\n"
18385 "                      const char *device);\n"
18386 "\n"
18387 msgstr ""
18388
18389 #. type: textblock
18390 #: ../src/guestfs-actions.pod:7353
18391 msgid ""
18392 "This command writes zeroes over the entire C<device>.  Compare with "
18393 "C<guestfs_zero> which just zeroes the first few blocks of a device."
18394 msgstr ""
18395
18396 #. type: textblock
18397 #: ../src/guestfs-actions.pod:7367
18398 msgid "(Added in 1.3.1)"
18399 msgstr ""
18400
18401 #. type: =head2
18402 #: ../src/guestfs-actions.pod:7369
18403 msgid "guestfs_zerofree"
18404 msgstr ""
18405
18406 #. type: verbatim
18407 #: ../src/guestfs-actions.pod:7371
18408 #, no-wrap
18409 msgid ""
18410 " int\n"
18411 " guestfs_zerofree (guestfs_h *g,\n"
18412 "                   const char *device);\n"
18413 "\n"
18414 msgstr ""
18415
18416 #. type: textblock
18417 #: ../src/guestfs-actions.pod:7375 ../fish/guestfish-actions.pod:4922
18418 msgid ""
18419 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18420 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18421 "possible to compress the filesystem more effectively."
18422 msgstr ""
18423
18424 #. type: textblock
18425 #: ../src/guestfs-actions.pod:7380 ../fish/guestfish-actions.pod:4927
18426 msgid "You should B<not> run this program if the filesystem is mounted."
18427 msgstr ""
18428
18429 #. type: textblock
18430 #: ../src/guestfs-actions.pod:7383 ../fish/guestfish-actions.pod:4930
18431 msgid ""
18432 "It is possible that using this program can damage the filesystem or data on "
18433 "the filesystem."
18434 msgstr ""
18435
18436 #. type: =head2
18437 #: ../src/guestfs-actions.pod:7390
18438 msgid "guestfs_zfgrep"
18439 msgstr ""
18440
18441 #. type: verbatim
18442 #: ../src/guestfs-actions.pod:7392
18443 #, no-wrap
18444 msgid ""
18445 " char **\n"
18446 " guestfs_zfgrep (guestfs_h *g,\n"
18447 "                 const char *pattern,\n"
18448 "                 const char *path);\n"
18449 "\n"
18450 msgstr ""
18451
18452 #. type: textblock
18453 #: ../src/guestfs-actions.pod:7397 ../fish/guestfish-actions.pod:4937
18454 msgid ""
18455 "This calls the external C<zfgrep> program and returns the matching lines."
18456 msgstr ""
18457
18458 #. type: =head2
18459 #: ../src/guestfs-actions.pod:7409
18460 msgid "guestfs_zfgrepi"
18461 msgstr ""
18462
18463 #. type: verbatim
18464 #: ../src/guestfs-actions.pod:7411
18465 #, no-wrap
18466 msgid ""
18467 " char **\n"
18468 " guestfs_zfgrepi (guestfs_h *g,\n"
18469 "                  const char *pattern,\n"
18470 "                  const char *path);\n"
18471 "\n"
18472 msgstr ""
18473
18474 #. type: textblock
18475 #: ../src/guestfs-actions.pod:7416 ../fish/guestfish-actions.pod:4947
18476 msgid ""
18477 "This calls the external C<zfgrep -i> program and returns the matching lines."
18478 msgstr ""
18479
18480 #. type: =head2
18481 #: ../src/guestfs-actions.pod:7428
18482 msgid "guestfs_zfile"
18483 msgstr ""
18484
18485 #. type: verbatim
18486 #: ../src/guestfs-actions.pod:7430
18487 #, no-wrap
18488 msgid ""
18489 " char *\n"
18490 " guestfs_zfile (guestfs_h *g,\n"
18491 "                const char *meth,\n"
18492 "                const char *path);\n"
18493 "\n"
18494 msgstr ""
18495
18496 #. type: textblock
18497 #: ../src/guestfs-actions.pod:7435 ../fish/guestfish-actions.pod:4957
18498 msgid ""
18499 "This command runs C<file> after first decompressing C<path> using C<method>."
18500 msgstr ""
18501
18502 #. type: textblock
18503 #: ../src/guestfs-actions.pod:7438 ../fish/guestfish-actions.pod:4960
18504 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18505 msgstr ""
18506
18507 #. type: textblock
18508 #: ../src/guestfs-actions.pod:7440
18509 msgid ""
18510 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
18511 "files."
18512 msgstr ""
18513
18514 #. type: textblock
18515 #: ../src/guestfs-actions.pod:7446 ../fish/guestfish-actions.pod:4965
18516 msgid ""
18517 "This function is deprecated.  In new code, use the C<file> call instead."
18518 msgstr ""
18519
18520 #. type: =head2
18521 #: ../src/guestfs-actions.pod:7455
18522 msgid "guestfs_zgrep"
18523 msgstr ""
18524
18525 #. type: verbatim
18526 #: ../src/guestfs-actions.pod:7457
18527 #, no-wrap
18528 msgid ""
18529 " char **\n"
18530 " guestfs_zgrep (guestfs_h *g,\n"
18531 "                const char *regex,\n"
18532 "                const char *path);\n"
18533 "\n"
18534 msgstr ""
18535
18536 #. type: textblock
18537 #: ../src/guestfs-actions.pod:7462 ../fish/guestfish-actions.pod:4976
18538 msgid ""
18539 "This calls the external C<zgrep> program and returns the matching lines."
18540 msgstr ""
18541
18542 #. type: =head2
18543 #: ../src/guestfs-actions.pod:7474
18544 msgid "guestfs_zgrepi"
18545 msgstr ""
18546
18547 #. type: verbatim
18548 #: ../src/guestfs-actions.pod:7476
18549 #, no-wrap
18550 msgid ""
18551 " char **\n"
18552 " guestfs_zgrepi (guestfs_h *g,\n"
18553 "                 const char *regex,\n"
18554 "                 const char *path);\n"
18555 "\n"
18556 msgstr ""
18557
18558 #. type: textblock
18559 #: ../src/guestfs-actions.pod:7481 ../fish/guestfish-actions.pod:4986
18560 msgid ""
18561 "This calls the external C<zgrep -i> program and returns the matching lines."
18562 msgstr ""
18563
18564 #. type: =item
18565 #: ../src/guestfs-availability.pod:3
18566 msgid "B<augeas>"
18567 msgstr ""
18568
18569 #. type: textblock
18570 #: ../src/guestfs-availability.pod:5
18571 msgid ""
18572 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
18573 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
18574 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
18575 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
18576 "L</guestfs_aug_save> L</guestfs_aug_set>"
18577 msgstr ""
18578
18579 #. type: =item
18580 #: ../src/guestfs-availability.pod:21
18581 msgid "B<inotify>"
18582 msgstr ""
18583
18584 #. type: textblock
18585 #: ../src/guestfs-availability.pod:23
18586 msgid ""
18587 "The following functions: L</guestfs_inotify_add_watch> L</"
18588 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
18589 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
18590 msgstr ""
18591
18592 #. type: =item
18593 #: ../src/guestfs-availability.pod:31
18594 msgid "B<linuxfsuuid>"
18595 msgstr ""
18596
18597 #. type: textblock
18598 #: ../src/guestfs-availability.pod:33
18599 msgid ""
18600 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
18601 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
18602 msgstr ""
18603
18604 #. type: =item
18605 #: ../src/guestfs-availability.pod:40
18606 msgid "B<linuxmodules>"
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../src/guestfs-availability.pod:42
18611 msgid "The following functions: L</guestfs_modprobe>"
18612 msgstr ""
18613
18614 #. type: =item
18615 #: ../src/guestfs-availability.pod:45
18616 msgid "B<linuxxattrs>"
18617 msgstr ""
18618
18619 #. type: textblock
18620 #: ../src/guestfs-availability.pod:47
18621 msgid ""
18622 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
18623 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
18624 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
18625 "guestfs_setxattr>"
18626 msgstr ""
18627
18628 #. type: =item
18629 #: ../src/guestfs-availability.pod:58
18630 msgid "B<luks>"
18631 msgstr ""
18632
18633 #. type: textblock
18634 #: ../src/guestfs-availability.pod:60
18635 msgid ""
18636 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
18637 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
18638 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
18639 msgstr ""
18640
18641 #. type: =item
18642 #: ../src/guestfs-availability.pod:69
18643 msgid "B<lvm2>"
18644 msgstr ""
18645
18646 #. type: textblock
18647 #: ../src/guestfs-availability.pod:71
18648 msgid ""
18649 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
18650 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
18651 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
18652 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
18653 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
18654 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
18655 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
18656 msgstr ""
18657
18658 #. type: =item
18659 #: ../src/guestfs-availability.pod:94
18660 msgid "B<mknod>"
18661 msgstr ""
18662
18663 #. type: textblock
18664 #: ../src/guestfs-availability.pod:96
18665 msgid ""
18666 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
18667 "guestfs_mknod_b> L</guestfs_mknod_c>"
18668 msgstr ""
18669
18670 #. type: =item
18671 #: ../src/guestfs-availability.pod:102
18672 msgid "B<ntfs3g>"
18673 msgstr ""
18674
18675 #. type: textblock
18676 #: ../src/guestfs-availability.pod:104
18677 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
18678 msgstr ""
18679
18680 #. type: =item
18681 #: ../src/guestfs-availability.pod:107
18682 msgid "B<ntfsprogs>"
18683 msgstr ""
18684
18685 #. type: textblock
18686 #: ../src/guestfs-availability.pod:109
18687 msgid ""
18688 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
18689 msgstr ""
18690
18691 #. type: =item
18692 #: ../src/guestfs-availability.pod:113
18693 msgid "B<realpath>"
18694 msgstr ""
18695
18696 #. type: textblock
18697 #: ../src/guestfs-availability.pod:115
18698 msgid "The following functions: L</guestfs_realpath>"
18699 msgstr ""
18700
18701 #. type: =item
18702 #: ../src/guestfs-availability.pod:118
18703 msgid "B<scrub>"
18704 msgstr ""
18705
18706 #. type: textblock
18707 #: ../src/guestfs-availability.pod:120
18708 msgid ""
18709 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
18710 "guestfs_scrub_freespace>"
18711 msgstr ""
18712
18713 #. type: =item
18714 #: ../src/guestfs-availability.pod:125
18715 msgid "B<selinux>"
18716 msgstr ""
18717
18718 #. type: textblock
18719 #: ../src/guestfs-availability.pod:127
18720 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
18721 msgstr ""
18722
18723 #. type: =item
18724 #: ../src/guestfs-availability.pod:131
18725 msgid "B<xz>"
18726 msgstr ""
18727
18728 #. type: textblock
18729 #: ../src/guestfs-availability.pod:133
18730 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
18731 msgstr ""
18732
18733 #. type: =item
18734 #: ../src/guestfs-availability.pod:137
18735 msgid "B<zerofree>"
18736 msgstr ""
18737
18738 #. type: textblock
18739 #: ../src/guestfs-availability.pod:139
18740 msgid "The following functions: L</guestfs_zerofree>"
18741 msgstr ""
18742
18743 #. type: =head2
18744 #: ../src/guestfs-structs.pod:1
18745 msgid "guestfs_int_bool"
18746 msgstr ""
18747
18748 #. type: verbatim
18749 #: ../src/guestfs-structs.pod:3
18750 #, no-wrap
18751 msgid ""
18752 " struct guestfs_int_bool {\n"
18753 "   int32_t i;\n"
18754 "   int32_t b;\n"
18755 " };\n"
18756 " \n"
18757 msgstr ""
18758
18759 #. type: verbatim
18760 #: ../src/guestfs-structs.pod:8
18761 #, no-wrap
18762 msgid ""
18763 " struct guestfs_int_bool_list {\n"
18764 "   uint32_t len; /* Number of elements in list. */\n"
18765 "   struct guestfs_int_bool *val; /* Elements. */\n"
18766 " };\n"
18767 " \n"
18768 msgstr ""
18769
18770 #. type: verbatim
18771 #: ../src/guestfs-structs.pod:13
18772 #, no-wrap
18773 msgid ""
18774 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
18775 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
18776 "\n"
18777 msgstr ""
18778
18779 #. type: =head2
18780 #: ../src/guestfs-structs.pod:16
18781 msgid "guestfs_lvm_pv"
18782 msgstr ""
18783
18784 #. type: verbatim
18785 #: ../src/guestfs-structs.pod:18
18786 #, no-wrap
18787 msgid ""
18788 " struct guestfs_lvm_pv {\n"
18789 "   char *pv_name;\n"
18790 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18791 "   char pv_uuid[32];\n"
18792 "   char *pv_fmt;\n"
18793 "   uint64_t pv_size;\n"
18794 "   uint64_t dev_size;\n"
18795 "   uint64_t pv_free;\n"
18796 "   uint64_t pv_used;\n"
18797 "   char *pv_attr;\n"
18798 "   int64_t pv_pe_count;\n"
18799 "   int64_t pv_pe_alloc_count;\n"
18800 "   char *pv_tags;\n"
18801 "   uint64_t pe_start;\n"
18802 "   int64_t pv_mda_count;\n"
18803 "   uint64_t pv_mda_free;\n"
18804 " };\n"
18805 " \n"
18806 msgstr ""
18807
18808 #. type: verbatim
18809 #: ../src/guestfs-structs.pod:36
18810 #, no-wrap
18811 msgid ""
18812 " struct guestfs_lvm_pv_list {\n"
18813 "   uint32_t len; /* Number of elements in list. */\n"
18814 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
18815 " };\n"
18816 " \n"
18817 msgstr ""
18818
18819 #. type: verbatim
18820 #: ../src/guestfs-structs.pod:41
18821 #, no-wrap
18822 msgid ""
18823 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
18824 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
18825 "\n"
18826 msgstr ""
18827
18828 #. type: =head2
18829 #: ../src/guestfs-structs.pod:44
18830 msgid "guestfs_lvm_vg"
18831 msgstr ""
18832
18833 #. type: verbatim
18834 #: ../src/guestfs-structs.pod:46
18835 #, no-wrap
18836 msgid ""
18837 " struct guestfs_lvm_vg {\n"
18838 "   char *vg_name;\n"
18839 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18840 "   char vg_uuid[32];\n"
18841 "   char *vg_fmt;\n"
18842 "   char *vg_attr;\n"
18843 "   uint64_t vg_size;\n"
18844 "   uint64_t vg_free;\n"
18845 "   char *vg_sysid;\n"
18846 "   uint64_t vg_extent_size;\n"
18847 "   int64_t vg_extent_count;\n"
18848 "   int64_t vg_free_count;\n"
18849 "   int64_t max_lv;\n"
18850 "   int64_t max_pv;\n"
18851 "   int64_t pv_count;\n"
18852 "   int64_t lv_count;\n"
18853 "   int64_t snap_count;\n"
18854 "   int64_t vg_seqno;\n"
18855 "   char *vg_tags;\n"
18856 "   int64_t vg_mda_count;\n"
18857 "   uint64_t vg_mda_free;\n"
18858 " };\n"
18859 " \n"
18860 msgstr ""
18861
18862 #. type: verbatim
18863 #: ../src/guestfs-structs.pod:69
18864 #, no-wrap
18865 msgid ""
18866 " struct guestfs_lvm_vg_list {\n"
18867 "   uint32_t len; /* Number of elements in list. */\n"
18868 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
18869 " };\n"
18870 " \n"
18871 msgstr ""
18872
18873 #. type: verbatim
18874 #: ../src/guestfs-structs.pod:74
18875 #, no-wrap
18876 msgid ""
18877 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
18878 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
18879 "\n"
18880 msgstr ""
18881
18882 #. type: =head2
18883 #: ../src/guestfs-structs.pod:77
18884 msgid "guestfs_lvm_lv"
18885 msgstr ""
18886
18887 #. type: verbatim
18888 #: ../src/guestfs-structs.pod:79
18889 #, no-wrap
18890 msgid ""
18891 " struct guestfs_lvm_lv {\n"
18892 "   char *lv_name;\n"
18893 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
18894 "   char lv_uuid[32];\n"
18895 "   char *lv_attr;\n"
18896 "   int64_t lv_major;\n"
18897 "   int64_t lv_minor;\n"
18898 "   int64_t lv_kernel_major;\n"
18899 "   int64_t lv_kernel_minor;\n"
18900 "   uint64_t lv_size;\n"
18901 "   int64_t seg_count;\n"
18902 "   char *origin;\n"
18903 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18904 "   float snap_percent;\n"
18905 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18906 "   float copy_percent;\n"
18907 "   char *move_pv;\n"
18908 "   char *lv_tags;\n"
18909 "   char *mirror_log;\n"
18910 "   char *modules;\n"
18911 " };\n"
18912 " \n"
18913 msgstr ""
18914
18915 #. type: verbatim
18916 #: ../src/guestfs-structs.pod:101
18917 #, no-wrap
18918 msgid ""
18919 " struct guestfs_lvm_lv_list {\n"
18920 "   uint32_t len; /* Number of elements in list. */\n"
18921 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
18922 " };\n"
18923 " \n"
18924 msgstr ""
18925
18926 #. type: verbatim
18927 #: ../src/guestfs-structs.pod:106
18928 #, no-wrap
18929 msgid ""
18930 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
18931 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
18932 "\n"
18933 msgstr ""
18934
18935 #. type: verbatim
18936 #: ../src/guestfs-structs.pod:111
18937 #, no-wrap
18938 msgid ""
18939 " struct guestfs_stat {\n"
18940 "   int64_t dev;\n"
18941 "   int64_t ino;\n"
18942 "   int64_t mode;\n"
18943 "   int64_t nlink;\n"
18944 "   int64_t uid;\n"
18945 "   int64_t gid;\n"
18946 "   int64_t rdev;\n"
18947 "   int64_t size;\n"
18948 "   int64_t blksize;\n"
18949 "   int64_t blocks;\n"
18950 "   int64_t atime;\n"
18951 "   int64_t mtime;\n"
18952 "   int64_t ctime;\n"
18953 " };\n"
18954 " \n"
18955 msgstr ""
18956
18957 #. type: verbatim
18958 #: ../src/guestfs-structs.pod:127
18959 #, no-wrap
18960 msgid ""
18961 " struct guestfs_stat_list {\n"
18962 "   uint32_t len; /* Number of elements in list. */\n"
18963 "   struct guestfs_stat *val; /* Elements. */\n"
18964 " };\n"
18965 " \n"
18966 msgstr ""
18967
18968 #. type: verbatim
18969 #: ../src/guestfs-structs.pod:132
18970 #, no-wrap
18971 msgid ""
18972 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
18973 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
18974 "\n"
18975 msgstr ""
18976
18977 #. type: verbatim
18978 #: ../src/guestfs-structs.pod:137
18979 #, no-wrap
18980 msgid ""
18981 " struct guestfs_statvfs {\n"
18982 "   int64_t bsize;\n"
18983 "   int64_t frsize;\n"
18984 "   int64_t blocks;\n"
18985 "   int64_t bfree;\n"
18986 "   int64_t bavail;\n"
18987 "   int64_t files;\n"
18988 "   int64_t ffree;\n"
18989 "   int64_t favail;\n"
18990 "   int64_t fsid;\n"
18991 "   int64_t flag;\n"
18992 "   int64_t namemax;\n"
18993 " };\n"
18994 " \n"
18995 msgstr ""
18996
18997 #. type: verbatim
18998 #: ../src/guestfs-structs.pod:151
18999 #, no-wrap
19000 msgid ""
19001 " struct guestfs_statvfs_list {\n"
19002 "   uint32_t len; /* Number of elements in list. */\n"
19003 "   struct guestfs_statvfs *val; /* Elements. */\n"
19004 " };\n"
19005 " \n"
19006 msgstr ""
19007
19008 #. type: verbatim
19009 #: ../src/guestfs-structs.pod:156
19010 #, no-wrap
19011 msgid ""
19012 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
19013 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
19014 "\n"
19015 msgstr ""
19016
19017 #. type: =head2
19018 #: ../src/guestfs-structs.pod:159
19019 msgid "guestfs_dirent"
19020 msgstr ""
19021
19022 #. type: verbatim
19023 #: ../src/guestfs-structs.pod:161
19024 #, no-wrap
19025 msgid ""
19026 " struct guestfs_dirent {\n"
19027 "   int64_t ino;\n"
19028 "   char ftyp;\n"
19029 "   char *name;\n"
19030 " };\n"
19031 " \n"
19032 msgstr ""
19033
19034 #. type: verbatim
19035 #: ../src/guestfs-structs.pod:167
19036 #, no-wrap
19037 msgid ""
19038 " struct guestfs_dirent_list {\n"
19039 "   uint32_t len; /* Number of elements in list. */\n"
19040 "   struct guestfs_dirent *val; /* Elements. */\n"
19041 " };\n"
19042 " \n"
19043 msgstr ""
19044
19045 #. type: verbatim
19046 #: ../src/guestfs-structs.pod:172
19047 #, no-wrap
19048 msgid ""
19049 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
19050 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
19051 "\n"
19052 msgstr ""
19053
19054 #. type: verbatim
19055 #: ../src/guestfs-structs.pod:177
19056 #, no-wrap
19057 msgid ""
19058 " struct guestfs_version {\n"
19059 "   int64_t major;\n"
19060 "   int64_t minor;\n"
19061 "   int64_t release;\n"
19062 "   char *extra;\n"
19063 " };\n"
19064 " \n"
19065 msgstr ""
19066
19067 #. type: verbatim
19068 #: ../src/guestfs-structs.pod:184
19069 #, no-wrap
19070 msgid ""
19071 " struct guestfs_version_list {\n"
19072 "   uint32_t len; /* Number of elements in list. */\n"
19073 "   struct guestfs_version *val; /* Elements. */\n"
19074 " };\n"
19075 " \n"
19076 msgstr ""
19077
19078 #. type: verbatim
19079 #: ../src/guestfs-structs.pod:189
19080 #, no-wrap
19081 msgid ""
19082 " void guestfs_free_version (struct guestfs_free_version *);\n"
19083 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
19084 "\n"
19085 msgstr ""
19086
19087 #. type: =head2
19088 #: ../src/guestfs-structs.pod:192
19089 msgid "guestfs_xattr"
19090 msgstr ""
19091
19092 #. type: verbatim
19093 #: ../src/guestfs-structs.pod:194
19094 #, no-wrap
19095 msgid ""
19096 " struct guestfs_xattr {\n"
19097 "   char *attrname;\n"
19098 "   /* The next two fields describe a byte array. */\n"
19099 "   uint32_t attrval_len;\n"
19100 "   char *attrval;\n"
19101 " };\n"
19102 " \n"
19103 msgstr ""
19104
19105 #. type: verbatim
19106 #: ../src/guestfs-structs.pod:201
19107 #, no-wrap
19108 msgid ""
19109 " struct guestfs_xattr_list {\n"
19110 "   uint32_t len; /* Number of elements in list. */\n"
19111 "   struct guestfs_xattr *val; /* Elements. */\n"
19112 " };\n"
19113 " \n"
19114 msgstr ""
19115
19116 #. type: verbatim
19117 #: ../src/guestfs-structs.pod:206
19118 #, no-wrap
19119 msgid ""
19120 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
19121 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
19122 "\n"
19123 msgstr ""
19124
19125 #. type: =head2
19126 #: ../src/guestfs-structs.pod:209
19127 msgid "guestfs_inotify_event"
19128 msgstr ""
19129
19130 #. type: verbatim
19131 #: ../src/guestfs-structs.pod:211
19132 #, no-wrap
19133 msgid ""
19134 " struct guestfs_inotify_event {\n"
19135 "   int64_t in_wd;\n"
19136 "   uint32_t in_mask;\n"
19137 "   uint32_t in_cookie;\n"
19138 "   char *in_name;\n"
19139 " };\n"
19140 " \n"
19141 msgstr ""
19142
19143 #. type: verbatim
19144 #: ../src/guestfs-structs.pod:218
19145 #, no-wrap
19146 msgid ""
19147 " struct guestfs_inotify_event_list {\n"
19148 "   uint32_t len; /* Number of elements in list. */\n"
19149 "   struct guestfs_inotify_event *val; /* Elements. */\n"
19150 " };\n"
19151 " \n"
19152 msgstr ""
19153
19154 #. type: verbatim
19155 #: ../src/guestfs-structs.pod:223
19156 #, no-wrap
19157 msgid ""
19158 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
19159 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
19160 "\n"
19161 msgstr ""
19162
19163 #. type: =head2
19164 #: ../src/guestfs-structs.pod:226
19165 msgid "guestfs_partition"
19166 msgstr ""
19167
19168 #. type: verbatim
19169 #: ../src/guestfs-structs.pod:228
19170 #, no-wrap
19171 msgid ""
19172 " struct guestfs_partition {\n"
19173 "   int32_t part_num;\n"
19174 "   uint64_t part_start;\n"
19175 "   uint64_t part_end;\n"
19176 "   uint64_t part_size;\n"
19177 " };\n"
19178 " \n"
19179 msgstr ""
19180
19181 #. type: verbatim
19182 #: ../src/guestfs-structs.pod:235
19183 #, no-wrap
19184 msgid ""
19185 " struct guestfs_partition_list {\n"
19186 "   uint32_t len; /* Number of elements in list. */\n"
19187 "   struct guestfs_partition *val; /* Elements. */\n"
19188 " };\n"
19189 " \n"
19190 msgstr ""
19191
19192 #. type: verbatim
19193 #: ../src/guestfs-structs.pod:240
19194 #, no-wrap
19195 msgid ""
19196 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
19197 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
19198 "\n"
19199 msgstr ""
19200
19201 #. type: =head2
19202 #: ../src/guestfs-structs.pod:243
19203 msgid "guestfs_application"
19204 msgstr ""
19205
19206 #. type: verbatim
19207 #: ../src/guestfs-structs.pod:245
19208 #, no-wrap
19209 msgid ""
19210 " struct guestfs_application {\n"
19211 "   char *app_name;\n"
19212 "   char *app_display_name;\n"
19213 "   int32_t app_epoch;\n"
19214 "   char *app_version;\n"
19215 "   char *app_release;\n"
19216 "   char *app_install_path;\n"
19217 "   char *app_trans_path;\n"
19218 "   char *app_publisher;\n"
19219 "   char *app_url;\n"
19220 "   char *app_source_package;\n"
19221 "   char *app_summary;\n"
19222 "   char *app_description;\n"
19223 " };\n"
19224 " \n"
19225 msgstr ""
19226
19227 #. type: verbatim
19228 #: ../src/guestfs-structs.pod:260
19229 #, no-wrap
19230 msgid ""
19231 " struct guestfs_application_list {\n"
19232 "   uint32_t len; /* Number of elements in list. */\n"
19233 "   struct guestfs_application *val; /* Elements. */\n"
19234 " };\n"
19235 " \n"
19236 msgstr ""
19237
19238 #. type: verbatim
19239 #: ../src/guestfs-structs.pod:265
19240 #, no-wrap
19241 msgid ""
19242 " void guestfs_free_application (struct guestfs_free_application *);\n"
19243 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
19244 "\n"
19245 msgstr ""
19246
19247 #. type: textblock
19248 #: ../fish/guestfish.pod:5
19249 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19250 msgstr ""
19251
19252 #. type: verbatim
19253 #: ../fish/guestfish.pod:9
19254 #, no-wrap
19255 msgid ""
19256 " guestfish [--options] [commands]\n"
19257 "\n"
19258 msgstr ""
19259
19260 #. type: verbatim
19261 #: ../fish/guestfish.pod:11
19262 #, no-wrap
19263 msgid ""
19264 " guestfish\n"
19265 "\n"
19266 msgstr ""
19267
19268 #. type: verbatim
19269 #: ../fish/guestfish.pod:13
19270 #, no-wrap
19271 msgid ""
19272 " guestfish [--ro|--rw] -a disk.img\n"
19273 "\n"
19274 msgstr ""
19275
19276 #. type: verbatim
19277 #: ../fish/guestfish.pod:15
19278 #, no-wrap
19279 msgid ""
19280 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19281 "\n"
19282 msgstr ""
19283
19284 #. type: verbatim
19285 #: ../fish/guestfish.pod:17
19286 #, no-wrap
19287 msgid ""
19288 " guestfish -d libvirt-domain\n"
19289 "\n"
19290 msgstr ""
19291
19292 #. type: verbatim
19293 #: ../fish/guestfish.pod:19
19294 #, no-wrap
19295 msgid ""
19296 " guestfish [--ro|--rw] -a disk.img -i\n"
19297 "\n"
19298 msgstr ""
19299
19300 #. type: verbatim
19301 #: ../fish/guestfish.pod:21
19302 #, no-wrap
19303 msgid ""
19304 " guestfish -d libvirt-domain -i\n"
19305 "\n"
19306 msgstr ""
19307
19308 #. type: =head1
19309 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
19310 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
19311 msgid "WARNING"
19312 msgstr ""
19313
19314 #. type: textblock
19315 #: ../fish/guestfish.pod:25
19316 msgid ""
19317 "Using guestfish in read/write mode on live virtual machines can be "
19318 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19319 "option to use guestfish safely if the disk image or virtual machine might be "
19320 "live."
19321 msgstr ""
19322
19323 #. type: textblock
19324 #: ../fish/guestfish.pod:32
19325 msgid ""
19326 "Guestfish is a shell and command-line tool for examining and modifying "
19327 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19328 "functionality of the guestfs API, see L<guestfs(3)>."
19329 msgstr ""
19330
19331 #. type: textblock
19332 #: ../fish/guestfish.pod:36
19333 msgid ""
19334 "Guestfish gives you structured access to the libguestfs API, from shell "
19335 "scripts or the command line or interactively.  If you want to rescue a "
19336 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19337 "command."
19338 msgstr ""
19339
19340 #. type: =head1
19341 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:949
19342 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
19343 msgid "EXAMPLES"
19344 msgstr ""
19345
19346 #. type: =head2
19347 #: ../fish/guestfish.pod:43
19348 msgid "As an interactive shell"
19349 msgstr ""
19350
19351 #. type: verbatim
19352 #: ../fish/guestfish.pod:45
19353 #, no-wrap
19354 msgid ""
19355 " $ guestfish\n"
19356 " \n"
19357 msgstr ""
19358
19359 #. type: verbatim
19360 #: ../fish/guestfish.pod:47
19361 #, no-wrap
19362 msgid ""
19363 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19364 " editing virtual machine filesystems.\n"
19365 " \n"
19366 msgstr ""
19367
19368 #. type: verbatim
19369 #: ../fish/guestfish.pod:50
19370 #, no-wrap
19371 msgid ""
19372 " Type: 'help' for a list of commands\n"
19373 "       'man' to read the manual\n"
19374 "       'quit' to quit the shell\n"
19375 " \n"
19376 msgstr ""
19377
19378 #. type: verbatim
19379 #: ../fish/guestfish.pod:54
19380 #, no-wrap
19381 msgid ""
19382 " ><fs> add-ro disk.img\n"
19383 " ><fs> run\n"
19384 " ><fs> list-filesystems\n"
19385 " /dev/sda1: ext4\n"
19386 " /dev/vg_guest/lv_root: ext4\n"
19387 " /dev/vg_guest/lv_swap: swap\n"
19388 " ><fs> mount /dev/vg_guest/lv_root /\n"
19389 " ><fs> cat /etc/fstab\n"
19390 " # /etc/fstab\n"
19391 " # Created by anaconda\n"
19392 " [...]\n"
19393 " ><fs> exit\n"
19394 "\n"
19395 msgstr ""
19396
19397 #. type: =head2
19398 #: ../fish/guestfish.pod:67
19399 msgid "From shell scripts"
19400 msgstr ""
19401
19402 #. type: textblock
19403 #: ../fish/guestfish.pod:69
19404 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19405 msgstr ""
19406
19407 #. type: verbatim
19408 #: ../fish/guestfish.pod:71
19409 #, no-wrap
19410 msgid ""
19411 " guestfish <<_EOF_\n"
19412 " add disk.img\n"
19413 " run\n"
19414 " mount /dev/vg_guest/lv_root /\n"
19415 " write /etc/motd \"Welcome, new users\"\n"
19416 " _EOF_\n"
19417 "\n"
19418 msgstr ""
19419
19420 #. type: textblock
19421 #: ../fish/guestfish.pod:78
19422 msgid "List the LVM logical volumes in a disk image:"
19423 msgstr ""
19424
19425 #. type: verbatim
19426 #: ../fish/guestfish.pod:80
19427 #, no-wrap
19428 msgid ""
19429 " guestfish -a disk.img --ro <<_EOF_\n"
19430 " run\n"
19431 " lvs\n"
19432 " _EOF_\n"
19433 "\n"
19434 msgstr ""
19435
19436 #. type: textblock
19437 #: ../fish/guestfish.pod:85
19438 msgid "List all the filesystems in a disk image:"
19439 msgstr ""
19440
19441 #. type: verbatim
19442 #: ../fish/guestfish.pod:87
19443 #, no-wrap
19444 msgid ""
19445 " guestfish -a disk.img --ro <<_EOF_\n"
19446 " run\n"
19447 " list-filesystems\n"
19448 " _EOF_\n"
19449 "\n"
19450 msgstr ""
19451
19452 #. type: =head2
19453 #: ../fish/guestfish.pod:92
19454 msgid "On one command line"
19455 msgstr ""
19456
19457 #. type: textblock
19458 #: ../fish/guestfish.pod:94
19459 msgid "Update C</etc/resolv.conf> in a guest:"
19460 msgstr ""
19461
19462 #. type: verbatim
19463 #: ../fish/guestfish.pod:96
19464 #, no-wrap
19465 msgid ""
19466 " guestfish \\\n"
19467 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19468 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19469 "\n"
19470 msgstr ""
19471
19472 #. type: textblock
19473 #: ../fish/guestfish.pod:100
19474 msgid "Edit C</boot/grub/grub.conf> interactively:"
19475 msgstr ""
19476
19477 #. type: verbatim
19478 #: ../fish/guestfish.pod:102
19479 #, no-wrap
19480 msgid ""
19481 " guestfish --rw --add disk.img \\\n"
19482 "   --mount /dev/vg_guest/lv_root \\\n"
19483 "   --mount /dev/sda1:/boot \\\n"
19484 "   edit /boot/grub/grub.conf\n"
19485 "\n"
19486 msgstr ""
19487
19488 #. type: =head2
19489 #: ../fish/guestfish.pod:107
19490 msgid "Mount disks automatically"
19491 msgstr ""
19492
19493 #. type: textblock
19494 #: ../fish/guestfish.pod:109
19495 msgid ""
19496 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19497 msgstr ""
19498
19499 #. type: verbatim
19500 #: ../fish/guestfish.pod:112
19501 #, no-wrap
19502 msgid ""
19503 " guestfish --ro -a disk.img -i cat /etc/group\n"
19504 "\n"
19505 msgstr ""
19506
19507 #. type: verbatim
19508 #: ../fish/guestfish.pod:114
19509 #, no-wrap
19510 msgid ""
19511 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19512 "\n"
19513 msgstr ""
19514
19515 #. type: textblock
19516 #: ../fish/guestfish.pod:116
19517 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19518 msgstr ""
19519
19520 #. type: verbatim
19521 #: ../fish/guestfish.pod:118
19522 #, no-wrap
19523 msgid ""
19524 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19525 "\n"
19526 msgstr ""
19527
19528 #. type: =head2
19529 #: ../fish/guestfish.pod:120
19530 msgid "As a script interpreter"
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../fish/guestfish.pod:122
19535 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19536 msgstr ""
19537
19538 #. type: verbatim
19539 #: ../fish/guestfish.pod:124
19540 #, no-wrap
19541 msgid ""
19542 " #!/usr/bin/guestfish -f\n"
19543 " sparse test1.img 100M\n"
19544 " run\n"
19545 " part-disk /dev/sda mbr\n"
19546 " mkfs ext2 /dev/sda1\n"
19547 "\n"
19548 msgstr ""
19549
19550 #. type: =head2
19551 #: ../fish/guestfish.pod:130
19552 msgid "Start with a prepared disk"
19553 msgstr ""
19554
19555 #. type: textblock
19556 #: ../fish/guestfish.pod:132
19557 msgid ""
19558 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19559 "single ext2-formatted partition:"
19560 msgstr ""
19561
19562 #. type: verbatim
19563 #: ../fish/guestfish.pod:135
19564 #, no-wrap
19565 msgid ""
19566 " guestfish -N fs\n"
19567 "\n"
19568 msgstr ""
19569
19570 #. type: textblock
19571 #: ../fish/guestfish.pod:137
19572 msgid "To list what is available do:"
19573 msgstr ""
19574
19575 #. type: verbatim
19576 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:940
19577 #, no-wrap
19578 msgid ""
19579 " guestfish -N help | less\n"
19580 "\n"
19581 msgstr ""
19582
19583 #. type: =head2
19584 #: ../fish/guestfish.pod:141
19585 msgid "Remote control"
19586 msgstr ""
19587
19588 #. type: verbatim
19589 #: ../fish/guestfish.pod:143
19590 #, no-wrap
19591 msgid ""
19592 " eval \"`guestfish --listen`\"\n"
19593 " guestfish --remote add-ro disk.img\n"
19594 " guestfish --remote run\n"
19595 " guestfish --remote lvs\n"
19596 "\n"
19597 msgstr ""
19598
19599 #. type: =head1
19600 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
19601 #: ../fuse/guestmount.pod:73 ../tools/virt-win-reg.pl:96
19602 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
19603 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
19604 msgid "OPTIONS"
19605 msgstr ""
19606
19607 #. type: =item
19608 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:133
19609 #: ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61
19610 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
19611 #: ../tools/virt-list-partitions.pl:62
19612 msgid "B<--help>"
19613 msgstr ""
19614
19615 #. type: textblock
19616 #: ../fish/guestfish.pod:154
19617 msgid "Displays general help on options."
19618 msgstr ""
19619
19620 #. type: =item
19621 #: ../fish/guestfish.pod:156
19622 msgid "B<-h>"
19623 msgstr ""
19624
19625 #. type: =item
19626 #: ../fish/guestfish.pod:158
19627 msgid "B<--cmd-help>"
19628 msgstr ""
19629
19630 #. type: textblock
19631 #: ../fish/guestfish.pod:160
19632 msgid "Lists all available guestfish commands."
19633 msgstr ""
19634
19635 #. type: =item
19636 #: ../fish/guestfish.pod:162
19637 msgid "B<-h cmd>"
19638 msgstr ""
19639
19640 #. type: =item
19641 #: ../fish/guestfish.pod:164
19642 msgid "B<--cmd-help cmd>"
19643 msgstr ""
19644
19645 #. type: textblock
19646 #: ../fish/guestfish.pod:166
19647 msgid "Displays detailed help on a single command C<cmd>."
19648 msgstr ""
19649
19650 #. type: =item
19651 #: ../fish/guestfish.pod:168
19652 msgid "B<-a image>"
19653 msgstr ""
19654
19655 #. type: =item
19656 #: ../fish/guestfish.pod:170
19657 msgid "B<--add image>"
19658 msgstr ""
19659
19660 #. type: textblock
19661 #: ../fish/guestfish.pod:172
19662 msgid "Add a block device or virtual machine image to the shell."
19663 msgstr ""
19664
19665 #. type: textblock
19666 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
19667 msgid ""
19668 "The format of the disk image is auto-detected.  To override this and force a "
19669 "particular format use the I<--format=..> option."
19670 msgstr ""
19671
19672 #. type: textblock
19673 #: ../fish/guestfish.pod:177
19674 msgid ""
19675 "Using this flag is mostly equivalent to using the C<add> command, with "
19676 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19677 "the I<--format=...> flag was given."
19678 msgstr ""
19679
19680 #. type: =item
19681 #: ../fish/guestfish.pod:181
19682 msgid "B<-c URI>"
19683 msgstr ""
19684
19685 #. type: =item
19686 #: ../fish/guestfish.pod:183
19687 msgid "B<--connect URI>"
19688 msgstr ""
19689
19690 #. type: textblock
19691 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
19692 msgid ""
19693 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19694 "URI to use.  The default is to use the default libvirt connection."
19695 msgstr ""
19696
19697 #. type: =item
19698 #: ../fish/guestfish.pod:189
19699 msgid "B<--csh>"
19700 msgstr ""
19701
19702 #. type: textblock
19703 #: ../fish/guestfish.pod:191
19704 msgid ""
19705 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19706 "section L</REMOTE CONTROL AND CSH> below."
19707 msgstr ""
19708
19709 #. type: =item
19710 #: ../fish/guestfish.pod:194
19711 msgid "B<-d libvirt-domain>"
19712 msgstr ""
19713
19714 #. type: =item
19715 #: ../fish/guestfish.pod:196
19716 msgid "B<--domain libvirt-domain>"
19717 msgstr ""
19718
19719 #. type: textblock
19720 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
19721 msgid ""
19722 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19723 "used, then any libvirt domain can be used.  However in write mode, only "
19724 "libvirt domains which are shut down can be named here."
19725 msgstr ""
19726
19727 #. type: textblock
19728 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:96
19729 msgid "Domain UUIDs can be used instead of names."
19730 msgstr ""
19731
19732 #. type: textblock
19733 #: ../fish/guestfish.pod:204
19734 msgid ""
19735 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19736 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19737 "if the I<--format:...> flag was given."
19738 msgstr ""
19739
19740 #. type: =item
19741 #: ../fish/guestfish.pod:208
19742 msgid "B<-D>"
19743 msgstr ""
19744
19745 #. type: =item
19746 #: ../fish/guestfish.pod:210
19747 msgid "B<--no-dest-paths>"
19748 msgstr ""
19749
19750 #. type: textblock
19751 #: ../fish/guestfish.pod:212
19752 msgid ""
19753 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19754 "to hit the tab key to complete paths on the guest filesystem, but this "
19755 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19756 "allow this feature to be disabled."
19757 msgstr ""
19758
19759 #. type: =item
19760 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
19761 msgid "B<--echo-keys>"
19762 msgstr ""
19763
19764 #. type: textblock
19765 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:112
19766 msgid ""
19767 "When prompting for keys and passphrases, guestfish normally turns echoing "
19768 "off so you cannot see what you are typing.  If you are not worried about "
19769 "Tempest attacks and there is no one else in the room you can specify this "
19770 "flag to see what you are typing."
19771 msgstr ""
19772
19773 #. type: =item
19774 #: ../fish/guestfish.pod:224
19775 msgid "B<-f file>"
19776 msgstr ""
19777
19778 #. type: =item
19779 #: ../fish/guestfish.pod:226
19780 msgid "B<--file file>"
19781 msgstr ""
19782
19783 #. type: textblock
19784 #: ../fish/guestfish.pod:228
19785 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19786 msgstr ""
19787
19788 #. type: verbatim
19789 #: ../fish/guestfish.pod:231
19790 #, no-wrap
19791 msgid ""
19792 " #!/usr/bin/guestfish -f\n"
19793 "\n"
19794 msgstr ""
19795
19796 #. type: =item
19797 #: ../fish/guestfish.pod:233
19798 msgid "B<--format=raw|qcow2|..>"
19799 msgstr ""
19800
19801 #. type: =item
19802 #: ../fish/guestfish.pod:235
19803 msgid "B<--format>"
19804 msgstr ""
19805
19806 #. type: textblock
19807 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:119
19808 msgid ""
19809 "The default for the I<-a> option is to auto-detect the format of the disk "
19810 "image.  Using this forces the disk format for I<-a> options which follow on "
19811 "the command line.  Using I<--format> with no argument switches back to auto-"
19812 "detection for subsequent I<-a> options."
19813 msgstr ""
19814
19815 #. type: verbatim
19816 #: ../fish/guestfish.pod:244
19817 #, no-wrap
19818 msgid ""
19819 " guestfish --format=raw -a disk.img\n"
19820 "\n"
19821 msgstr ""
19822
19823 #. type: textblock
19824 #: ../fish/guestfish.pod:246
19825 msgid "forces raw format (no auto-detection) for C<disk.img>."
19826 msgstr ""
19827
19828 #. type: verbatim
19829 #: ../fish/guestfish.pod:248
19830 #, no-wrap
19831 msgid ""
19832 " guestfish --format=raw -a disk.img --format -a another.img\n"
19833 "\n"
19834 msgstr ""
19835
19836 #. type: textblock
19837 #: ../fish/guestfish.pod:250
19838 msgid ""
19839 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
19840 "detection for C<another.img>."
19841 msgstr ""
19842
19843 #. type: textblock
19844 #: ../fish/guestfish.pod:253
19845 msgid ""
19846 "If you have untrusted raw-format guest disk images, you should use this "
19847 "option to specify the disk format.  This avoids a possible security problem "
19848 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19849 msgstr ""
19850
19851 #. type: =item
19852 #: ../fish/guestfish.pod:258
19853 msgid "B<-i>"
19854 msgstr ""
19855
19856 #. type: =item
19857 #: ../fish/guestfish.pod:260
19858 msgid "B<--inspector>"
19859 msgstr ""
19860
19861 #. type: textblock
19862 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:139
19863 msgid ""
19864 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19865 "system and mount filesystems as they would be mounted on the real virtual "
19866 "machine."
19867 msgstr ""
19868
19869 #. type: textblock
19870 #: ../fish/guestfish.pod:266
19871 msgid "Typical usage is either:"
19872 msgstr ""
19873
19874 #. type: verbatim
19875 #: ../fish/guestfish.pod:268
19876 #, no-wrap
19877 msgid ""
19878 " guestfish -d myguest -i\n"
19879 "\n"
19880 msgstr ""
19881
19882 #. type: textblock
19883 #: ../fish/guestfish.pod:270
19884 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19885 msgstr ""
19886
19887 #. type: verbatim
19888 #: ../fish/guestfish.pod:272
19889 #, no-wrap
19890 msgid ""
19891 " guestfish --ro -d myguest -i\n"
19892 "\n"
19893 msgstr ""
19894
19895 #. type: textblock
19896 #: ../fish/guestfish.pod:274
19897 msgid "(for active domains, readonly), or specify the block device directly:"
19898 msgstr ""
19899
19900 #. type: verbatim
19901 #: ../fish/guestfish.pod:276
19902 #, no-wrap
19903 msgid ""
19904 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19905 "\n"
19906 msgstr ""
19907
19908 #. type: textblock
19909 #: ../fish/guestfish.pod:278
19910 msgid ""
19911 "Note that the command line syntax changed slightly over older versions of "
19912 "guestfish.  You can still use the old syntax:"
19913 msgstr ""
19914
19915 #. type: verbatim
19916 #: ../fish/guestfish.pod:281
19917 #, no-wrap
19918 msgid ""
19919 " guestfish [--ro] -i disk.img\n"
19920 "\n"
19921 msgstr ""
19922
19923 #. type: verbatim
19924 #: ../fish/guestfish.pod:283
19925 #, no-wrap
19926 msgid ""
19927 " guestfish [--ro] -i libvirt-domain\n"
19928 "\n"
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:285
19933 msgid ""
19934 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19935 "then using other commands to mount the filesystems that were found."
19936 msgstr ""
19937
19938 #. type: =item
19939 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
19940 msgid "B<--keys-from-stdin>"
19941 msgstr ""
19942
19943 #. type: textblock
19944 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:145
19945 msgid ""
19946 "Read key or passphrase parameters from stdin.  The default is to try to read "
19947 "passphrases from the user by opening C</dev/tty>."
19948 msgstr ""
19949
19950 #. type: =item
19951 #: ../fish/guestfish.pod:294
19952 msgid "B<--listen>"
19953 msgstr ""
19954
19955 #. type: textblock
19956 #: ../fish/guestfish.pod:296
19957 msgid ""
19958 "Fork into the background and listen for remote commands.  See section L</"
19959 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19960 msgstr ""
19961
19962 #. type: =item
19963 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
19964 msgid "B<--live>"
19965 msgstr ""
19966
19967 #. type: textblock
19968 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:150
19969 msgid ""
19970 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19971 "ATTACHING TO RUNNING DAEMONS>)."
19972 msgstr ""
19973
19974 #. type: =item
19975 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:153
19976 msgid "B<-m dev[:mountpoint[:options]]>"
19977 msgstr ""
19978
19979 #. type: =item
19980 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:155
19981 msgid "B<--mount dev[:mountpoint[:options]]>"
19982 msgstr ""
19983
19984 #. type: textblock
19985 #: ../fish/guestfish.pod:308
19986 msgid "Mount the named partition or logical volume on the given mountpoint."
19987 msgstr ""
19988
19989 #. type: textblock
19990 #: ../fish/guestfish.pod:310
19991 msgid "If the mountpoint is omitted, it defaults to C</>."
19992 msgstr ""
19993
19994 #. type: textblock
19995 #: ../fish/guestfish.pod:312
19996 msgid "You have to mount something on C</> before most commands will work."
19997 msgstr ""
19998
19999 #. type: textblock
20000 #: ../fish/guestfish.pod:314
20001 msgid ""
20002 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20003 "launched."
20004 msgstr ""
20005
20006 #. type: textblock
20007 #: ../fish/guestfish.pod:317
20008 msgid ""
20009 "If you don't know what filesystems a disk image contains, you can either run "
20010 "guestfish without this option, then list the partitions, filesystems and LVs "
20011 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20012 "commands), or you can use the L<virt-filesystems(1)> program."
20013 msgstr ""
20014
20015 #. type: textblock
20016 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:163
20017 msgid ""
20018 "The third (and rarely used) part of the mount parameter is the list of mount "
20019 "options used to mount the underlying filesystem.  If this is not given, then "
20020 "the mount options are either the empty string or C<ro> (the latter if the "
20021 "I<--ro> flag is used).  By specifying the mount options, you override this "
20022 "default choice.  Probably the only time you would use this is to enable ACLs "
20023 "and/or extended attributes if the filesystem can support them:"
20024 msgstr ""
20025
20026 #. type: verbatim
20027 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:171
20028 #, no-wrap
20029 msgid ""
20030 " -m /dev/sda1:/:acl,user_xattr\n"
20031 "\n"
20032 msgstr ""
20033
20034 #. type: textblock
20035 #: ../fish/guestfish.pod:333
20036 msgid "Using this flag is equivalent to using the C<mount-options> command."
20037 msgstr ""
20038
20039 #. type: =item
20040 #: ../fish/guestfish.pod:335
20041 msgid "B<-n>"
20042 msgstr ""
20043
20044 #. type: =item
20045 #: ../fish/guestfish.pod:337
20046 msgid "B<--no-sync>"
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fish/guestfish.pod:339
20051 msgid ""
20052 "Disable autosync.  This is enabled by default.  See the discussion of "
20053 "autosync in the L<guestfs(3)> manpage."
20054 msgstr ""
20055
20056 #. type: =item
20057 #: ../fish/guestfish.pod:342
20058 msgid "B<-N type>"
20059 msgstr ""
20060
20061 #. type: =item
20062 #: ../fish/guestfish.pod:344
20063 msgid "B<--new type>"
20064 msgstr ""
20065
20066 #. type: =item
20067 #: ../fish/guestfish.pod:346
20068 msgid "B<-N help>"
20069 msgstr ""
20070
20071 #. type: textblock
20072 #: ../fish/guestfish.pod:348
20073 msgid ""
20074 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
20075 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20076 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
20077 "IMAGES> below."
20078 msgstr ""
20079
20080 #. type: =item
20081 #: ../fish/guestfish.pod:353
20082 msgid "B<--progress-bars>"
20083 msgstr ""
20084
20085 #. type: textblock
20086 #: ../fish/guestfish.pod:355
20087 msgid "Enable progress bars, even when guestfish is used non-interactively."
20088 msgstr ""
20089
20090 #. type: textblock
20091 #: ../fish/guestfish.pod:357
20092 msgid ""
20093 "Progress bars are enabled by default when guestfish is used as an "
20094 "interactive shell."
20095 msgstr ""
20096
20097 #. type: =item
20098 #: ../fish/guestfish.pod:360
20099 msgid "B<--no-progress-bars>"
20100 msgstr ""
20101
20102 #. type: textblock
20103 #: ../fish/guestfish.pod:362
20104 msgid "Disable progress bars."
20105 msgstr ""
20106
20107 #. type: =item
20108 #: ../fish/guestfish.pod:364
20109 msgid "B<--remote[=pid]>"
20110 msgstr ""
20111
20112 #. type: textblock
20113 #: ../fish/guestfish.pod:366
20114 msgid ""
20115 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
20116 "CONTROL GUESTFISH OVER A SOCKET> below."
20117 msgstr ""
20118
20119 #. type: =item
20120 #: ../fish/guestfish.pod:369
20121 msgid "B<-r>"
20122 msgstr ""
20123
20124 #. type: =item
20125 #: ../fish/guestfish.pod:371
20126 msgid "B<--ro>"
20127 msgstr ""
20128
20129 #. type: textblock
20130 #: ../fish/guestfish.pod:373
20131 msgid ""
20132 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20133 "mounts are done read-only."
20134 msgstr ""
20135
20136 #. type: textblock
20137 #: ../fish/guestfish.pod:376
20138 msgid ""
20139 "The option must always be used if the disk image or virtual machine might be "
20140 "running, and is generally recommended in cases where you don't need write "
20141 "access to the disk."
20142 msgstr ""
20143
20144 #. type: textblock
20145 #: ../fish/guestfish.pod:380
20146 msgid ""
20147 "Note that prepared disk images created with I<-N> are not affected by this "
20148 "option.  Also commands like C<add> are not affected - you have to specify "
20149 "the C<readonly:true> option explicitly if you need it."
20150 msgstr ""
20151
20152 #. type: textblock
20153 #: ../fish/guestfish.pod:384
20154 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20155 msgstr ""
20156
20157 #. type: =item
20158 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:227
20159 msgid "B<--selinux>"
20160 msgstr ""
20161
20162 #. type: textblock
20163 #: ../fish/guestfish.pod:388
20164 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20165 msgstr ""
20166
20167 #. type: =item
20168 #: ../fish/guestfish.pod:390
20169 msgid "B<-v>"
20170 msgstr ""
20171
20172 #. type: =item
20173 #: ../fish/guestfish.pod:392
20174 msgid "B<--verbose>"
20175 msgstr ""
20176
20177 #. type: textblock
20178 #: ../fish/guestfish.pod:394
20179 msgid ""
20180 "Enable very verbose messages.  This is particularly useful if you find a bug."
20181 msgstr ""
20182
20183 #. type: =item
20184 #: ../fish/guestfish.pod:397
20185 msgid "B<-V>"
20186 msgstr ""
20187
20188 #. type: =item
20189 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112
20190 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
20191 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
20192 msgid "B<--version>"
20193 msgstr ""
20194
20195 #. type: textblock
20196 #: ../fish/guestfish.pod:401
20197 msgid "Display the guestfish / libguestfs version number and exit."
20198 msgstr ""
20199
20200 #. type: =item
20201 #: ../fish/guestfish.pod:403
20202 msgid "B<-w>"
20203 msgstr ""
20204
20205 #. type: =item
20206 #: ../fish/guestfish.pod:405
20207 msgid "B<--rw>"
20208 msgstr ""
20209
20210 #. type: textblock
20211 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:241
20212 msgid ""
20213 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20214 "mounts are done read-write."
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../fish/guestfish.pod:410
20219 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20220 msgstr ""
20221
20222 #. type: =item
20223 #: ../fish/guestfish.pod:412
20224 msgid "B<-x>"
20225 msgstr ""
20226
20227 #. type: textblock
20228 #: ../fish/guestfish.pod:414
20229 msgid "Echo each command before executing it."
20230 msgstr ""
20231
20232 #. type: =head1
20233 #: ../fish/guestfish.pod:418
20234 msgid "COMMANDS ON COMMAND LINE"
20235 msgstr ""
20236
20237 #. type: textblock
20238 #: ../fish/guestfish.pod:420
20239 msgid ""
20240 "Any additional (non-option) arguments are treated as commands to execute."
20241 msgstr ""
20242
20243 #. type: textblock
20244 #: ../fish/guestfish.pod:423
20245 msgid ""
20246 "Commands to execute should be separated by a colon (C<:>), where the colon "
20247 "is a separate parameter.  Thus:"
20248 msgstr ""
20249
20250 #. type: verbatim
20251 #: ../fish/guestfish.pod:426
20252 #, no-wrap
20253 msgid ""
20254 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20255 "\n"
20256 msgstr ""
20257
20258 #. type: textblock
20259 #: ../fish/guestfish.pod:428
20260 msgid ""
20261 "If there are no additional arguments, then we enter a shell, either an "
20262 "interactive shell with a prompt (if the input is a terminal) or a non-"
20263 "interactive shell."
20264 msgstr ""
20265
20266 #. type: textblock
20267 #: ../fish/guestfish.pod:432
20268 msgid ""
20269 "In either command line mode or non-interactive shell, the first command that "
20270 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20271 "prompt) if a command fails, you can continue to enter commands."
20272 msgstr ""
20273
20274 #. type: =head1
20275 #: ../fish/guestfish.pod:437
20276 msgid "USING launch (OR run)"
20277 msgstr ""
20278
20279 #. type: textblock
20280 #: ../fish/guestfish.pod:439
20281 msgid ""
20282 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20283 "then launch it, then mount any disks you need, and finally issue actions/"
20284 "commands.  So the general order of the day is:"
20285 msgstr ""
20286
20287 #. type: textblock
20288 #: ../fish/guestfish.pod:447
20289 msgid "add or -a/--add"
20290 msgstr ""
20291
20292 #. type: textblock
20293 #: ../fish/guestfish.pod:451
20294 msgid "launch (aka run)"
20295 msgstr ""
20296
20297 #. type: textblock
20298 #: ../fish/guestfish.pod:455
20299 msgid "mount or -m/--mount"
20300 msgstr ""
20301
20302 #. type: textblock
20303 #: ../fish/guestfish.pod:459
20304 msgid "any other commands"
20305 msgstr ""
20306
20307 #. type: textblock
20308 #: ../fish/guestfish.pod:463
20309 msgid ""
20310 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20311 "guest before mounting or performing any other commands."
20312 msgstr ""
20313
20314 #. type: textblock
20315 #: ../fish/guestfish.pod:466
20316 msgid ""
20317 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20318 "I<--new> options were given then C<run> is done automatically, simply "
20319 "because guestfish can't perform the action you asked for without doing this."
20320 msgstr ""
20321
20322 #. type: =head1
20323 #: ../fish/guestfish.pod:471
20324 msgid "OPENING DISKS FOR READ AND WRITE"
20325 msgstr ""
20326
20327 #. type: textblock
20328 #: ../fish/guestfish.pod:473
20329 msgid ""
20330 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20331 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20332 "I<-i> and I<-m> open disk images read-only or for writing."
20333 msgstr ""
20334
20335 #. type: textblock
20336 #: ../fish/guestfish.pod:478
20337 msgid ""
20338 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20339 "opening disk images supplied on the command line for write.  To open a disk "
20340 "image read-only you have to do I<-a image --ro>."
20341 msgstr ""
20342
20343 #. type: textblock
20344 #: ../fish/guestfish.pod:482
20345 msgid ""
20346 "This matters: If you accidentally open a live VM disk image writable then "
20347 "you will cause irreversible disk corruption."
20348 msgstr ""
20349
20350 #. type: textblock
20351 #: ../fish/guestfish.pod:485
20352 msgid ""
20353 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
20354 "images will be opened read-only.  You will have to either specify "
20355 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20356 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20357 "access for disk images specified by those other command line options."
20358 msgstr ""
20359
20360 #. type: textblock
20361 #: ../fish/guestfish.pod:492
20362 msgid ""
20363 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20364 "which does nothing (it is already the default).  However it is highly "
20365 "recommended that you use this option to indicate that you need write access, "
20366 "and prepare your scripts for the day when this option will be required for "
20367 "write access."
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../fish/guestfish.pod:498
20372 msgid ""
20373 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20374 "other libguestfs program apart from guestfish and guestmount."
20375 msgstr ""
20376
20377 #. type: =head1
20378 #: ../fish/guestfish.pod:501
20379 msgid "QUOTING"
20380 msgstr ""
20381
20382 #. type: textblock
20383 #: ../fish/guestfish.pod:503
20384 msgid ""
20385 "You can quote ordinary parameters using either single or double quotes.  For "
20386 "example:"
20387 msgstr ""
20388
20389 #. type: verbatim
20390 #: ../fish/guestfish.pod:506
20391 #, no-wrap
20392 msgid ""
20393 " add \"file with a space.img\"\n"
20394 "\n"
20395 msgstr ""
20396
20397 #. type: verbatim
20398 #: ../fish/guestfish.pod:508
20399 #, no-wrap
20400 msgid ""
20401 " rm '/file name'\n"
20402 "\n"
20403 msgstr ""
20404
20405 #. type: verbatim
20406 #: ../fish/guestfish.pod:510
20407 #, no-wrap
20408 msgid ""
20409 " rm '/\"'\n"
20410 "\n"
20411 msgstr ""
20412
20413 #. type: textblock
20414 #: ../fish/guestfish.pod:512
20415 msgid ""
20416 "A few commands require a list of strings to be passed.  For these, use a "
20417 "whitespace-separated list, enclosed in quotes.  Strings containing "
20418 "whitespace to be passed through must be enclosed in single quotes.  A "
20419 "literal single quote must be escaped with a backslash."
20420 msgstr ""
20421
20422 #. type: verbatim
20423 #: ../fish/guestfish.pod:517
20424 #, no-wrap
20425 msgid ""
20426 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20427 " command \"/bin/echo 'foo      bar'\"\n"
20428 " command \"/bin/echo \\'foo\\'\"\n"
20429 "\n"
20430 msgstr ""
20431
20432 #. type: =head1
20433 #: ../fish/guestfish.pod:521
20434 msgid "OPTIONAL ARGUMENTS"
20435 msgstr ""
20436
20437 #. type: textblock
20438 #: ../fish/guestfish.pod:523
20439 msgid ""
20440 "Some commands take optional arguments.  These arguments appear in this "
20441 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20442 msgstr ""
20443
20444 #. type: verbatim
20445 #: ../fish/guestfish.pod:527
20446 #, no-wrap
20447 msgid ""
20448 " add-drive-opts filename\n"
20449 "\n"
20450 msgstr ""
20451
20452 #. type: verbatim
20453 #: ../fish/guestfish.pod:529
20454 #, no-wrap
20455 msgid ""
20456 " add-drive-opts filename readonly:true\n"
20457 "\n"
20458 msgstr ""
20459
20460 #. type: verbatim
20461 #: ../fish/guestfish.pod:531
20462 #, no-wrap
20463 msgid ""
20464 " add-drive-opts filename format:qcow2 readonly:false\n"
20465 "\n"
20466 msgstr ""
20467
20468 #. type: textblock
20469 #: ../fish/guestfish.pod:533
20470 msgid ""
20471 "Each optional argument can appear at most once.  All optional arguments must "
20472 "appear after the required ones."
20473 msgstr ""
20474
20475 #. type: =head1
20476 #: ../fish/guestfish.pod:536
20477 msgid "NUMBERS"
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../fish/guestfish.pod:538
20482 msgid ""
20483 "This section applies to all commands which can take integers as parameters."
20484 msgstr ""
20485
20486 #. type: =head2
20487 #: ../fish/guestfish.pod:541
20488 msgid "SIZE SUFFIX"
20489 msgstr ""
20490
20491 #. type: textblock
20492 #: ../fish/guestfish.pod:543
20493 msgid ""
20494 "When the command takes a parameter measured in bytes, you can use one of the "
20495 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20496 msgstr ""
20497
20498 #. type: =item
20499 #: ../fish/guestfish.pod:549
20500 msgid "B<k> or B<K> or B<KiB>"
20501 msgstr ""
20502
20503 #. type: textblock
20504 #: ../fish/guestfish.pod:551
20505 msgid "The size in kilobytes (multiplied by 1024)."
20506 msgstr ""
20507
20508 #. type: =item
20509 #: ../fish/guestfish.pod:553
20510 msgid "B<KB>"
20511 msgstr ""
20512
20513 #. type: textblock
20514 #: ../fish/guestfish.pod:555
20515 msgid "The size in SI 1000 byte units."
20516 msgstr ""
20517
20518 #. type: =item
20519 #: ../fish/guestfish.pod:557
20520 msgid "B<M> or B<MiB>"
20521 msgstr ""
20522
20523 #. type: textblock
20524 #: ../fish/guestfish.pod:559
20525 msgid "The size in megabytes (multiplied by 1048576)."
20526 msgstr ""
20527
20528 #. type: =item
20529 #: ../fish/guestfish.pod:561
20530 msgid "B<MB>"
20531 msgstr ""
20532
20533 #. type: textblock
20534 #: ../fish/guestfish.pod:563
20535 msgid "The size in SI 1000000 byte units."
20536 msgstr ""
20537
20538 #. type: =item
20539 #: ../fish/guestfish.pod:565
20540 msgid "B<G> or B<GiB>"
20541 msgstr ""
20542
20543 #. type: textblock
20544 #: ../fish/guestfish.pod:567
20545 msgid "The size in gigabytes (multiplied by 2**30)."
20546 msgstr ""
20547
20548 #. type: =item
20549 #: ../fish/guestfish.pod:569
20550 msgid "B<GB>"
20551 msgstr ""
20552
20553 #. type: textblock
20554 #: ../fish/guestfish.pod:571
20555 msgid "The size in SI 10**9 byte units."
20556 msgstr ""
20557
20558 #. type: =item
20559 #: ../fish/guestfish.pod:573
20560 msgid "B<T> or B<TiB>"
20561 msgstr ""
20562
20563 #. type: textblock
20564 #: ../fish/guestfish.pod:575
20565 msgid "The size in terabytes (multiplied by 2**40)."
20566 msgstr ""
20567
20568 #. type: =item
20569 #: ../fish/guestfish.pod:577
20570 msgid "B<TB>"
20571 msgstr ""
20572
20573 #. type: textblock
20574 #: ../fish/guestfish.pod:579
20575 msgid "The size in SI 10**12 byte units."
20576 msgstr ""
20577
20578 #. type: =item
20579 #: ../fish/guestfish.pod:581
20580 msgid "B<P> or B<PiB>"
20581 msgstr ""
20582
20583 #. type: textblock
20584 #: ../fish/guestfish.pod:583
20585 msgid "The size in petabytes (multiplied by 2**50)."
20586 msgstr ""
20587
20588 #. type: =item
20589 #: ../fish/guestfish.pod:585
20590 msgid "B<PB>"
20591 msgstr ""
20592
20593 #. type: textblock
20594 #: ../fish/guestfish.pod:587
20595 msgid "The size in SI 10**15 byte units."
20596 msgstr ""
20597
20598 #. type: =item
20599 #: ../fish/guestfish.pod:589
20600 msgid "B<E> or B<EiB>"
20601 msgstr ""
20602
20603 #. type: textblock
20604 #: ../fish/guestfish.pod:591
20605 msgid "The size in exabytes (multiplied by 2**60)."
20606 msgstr ""
20607
20608 #. type: =item
20609 #: ../fish/guestfish.pod:593
20610 msgid "B<EB>"
20611 msgstr ""
20612
20613 #. type: textblock
20614 #: ../fish/guestfish.pod:595
20615 msgid "The size in SI 10**18 byte units."
20616 msgstr ""
20617
20618 #. type: =item
20619 #: ../fish/guestfish.pod:597
20620 msgid "B<Z> or B<ZiB>"
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../fish/guestfish.pod:599
20625 msgid "The size in zettabytes (multiplied by 2**70)."
20626 msgstr ""
20627
20628 #. type: =item
20629 #: ../fish/guestfish.pod:601
20630 msgid "B<ZB>"
20631 msgstr ""
20632
20633 #. type: textblock
20634 #: ../fish/guestfish.pod:603
20635 msgid "The size in SI 10**21 byte units."
20636 msgstr ""
20637
20638 #. type: =item
20639 #: ../fish/guestfish.pod:605
20640 msgid "B<Y> or B<YiB>"
20641 msgstr ""
20642
20643 #. type: textblock
20644 #: ../fish/guestfish.pod:607
20645 msgid "The size in yottabytes (multiplied by 2**80)."
20646 msgstr ""
20647
20648 #. type: =item
20649 #: ../fish/guestfish.pod:609
20650 msgid "B<YB>"
20651 msgstr ""
20652
20653 #. type: textblock
20654 #: ../fish/guestfish.pod:611
20655 msgid "The size in SI 10**24 byte units."
20656 msgstr ""
20657
20658 #. type: verbatim
20659 #: ../fish/guestfish.pod:617
20660 #, no-wrap
20661 msgid ""
20662 " truncate-size /file 1G\n"
20663 "\n"
20664 msgstr ""
20665
20666 #. type: textblock
20667 #: ../fish/guestfish.pod:619
20668 msgid "would truncate the file to 1 gigabyte."
20669 msgstr ""
20670
20671 #. type: textblock
20672 #: ../fish/guestfish.pod:621
20673 msgid ""
20674 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20675 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20676 "suffix will probably not do what you expect."
20677 msgstr ""
20678
20679 #. type: =head2
20680 #: ../fish/guestfish.pod:625
20681 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20682 msgstr ""
20683
20684 #. type: textblock
20685 #: ../fish/guestfish.pod:627
20686 msgid ""
20687 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20688 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20689 msgstr ""
20690
20691 #. type: verbatim
20692 #: ../fish/guestfish.pod:630
20693 #, no-wrap
20694 msgid ""
20695 " 1234      decimal number 1234\n"
20696 " 02322     octal number, equivalent to decimal 1234\n"
20697 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20698 "\n"
20699 msgstr ""
20700
20701 #. type: textblock
20702 #: ../fish/guestfish.pod:634
20703 msgid ""
20704 "When using the C<chmod> command, you almost always want to specify an octal "
20705 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20706 "L<chmod(1)> program):"
20707 msgstr ""
20708
20709 #. type: verbatim
20710 #: ../fish/guestfish.pod:638
20711 #, no-wrap
20712 msgid ""
20713 " chmod 0777 /public  # OK\n"
20714 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20715 "\n"
20716 msgstr ""
20717
20718 #. type: textblock
20719 #: ../fish/guestfish.pod:641
20720 msgid ""
20721 "Commands that return numbers usually print them in decimal, but some "
20722 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20723 "octal, preceeded by C<0>)."
20724 msgstr ""
20725
20726 #. type: =head1
20727 #: ../fish/guestfish.pod:645
20728 msgid "WILDCARDS AND GLOBBING"
20729 msgstr ""
20730
20731 #. type: textblock
20732 #: ../fish/guestfish.pod:647
20733 msgid ""
20734 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20735 "(globbing) by default.  So for example the following will not do what you "
20736 "expect:"
20737 msgstr ""
20738
20739 #. type: verbatim
20740 #: ../fish/guestfish.pod:651
20741 #, no-wrap
20742 msgid ""
20743 " rm-rf /home/*\n"
20744 "\n"
20745 msgstr ""
20746
20747 #. type: textblock
20748 #: ../fish/guestfish.pod:653
20749 msgid ""
20750 "Assuming you don't have a directory called literally C</home/*> then the "
20751 "above command will return an error."
20752 msgstr ""
20753
20754 #. type: textblock
20755 #: ../fish/guestfish.pod:656
20756 msgid "To perform wildcard expansion, use the C<glob> command."
20757 msgstr ""
20758
20759 #. type: verbatim
20760 #: ../fish/guestfish.pod:658
20761 #, no-wrap
20762 msgid ""
20763 " glob rm-rf /home/*\n"
20764 "\n"
20765 msgstr ""
20766
20767 #. type: textblock
20768 #: ../fish/guestfish.pod:660
20769 msgid ""
20770 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20771 "many times), equivalent to:"
20772 msgstr ""
20773
20774 #. type: verbatim
20775 #: ../fish/guestfish.pod:663
20776 #, no-wrap
20777 msgid ""
20778 " rm-rf /home/jim\n"
20779 " rm-rf /home/joe\n"
20780 " rm-rf /home/mary\n"
20781 "\n"
20782 msgstr ""
20783
20784 #. type: textblock
20785 #: ../fish/guestfish.pod:667
20786 msgid "C<glob> only works on simple guest paths and not on device names."
20787 msgstr ""
20788
20789 #. type: textblock
20790 #: ../fish/guestfish.pod:669
20791 msgid ""
20792 "If you have several parameters, each containing a wildcard, then glob will "
20793 "perform a Cartesian product."
20794 msgstr ""
20795
20796 #. type: =head1
20797 #: ../fish/guestfish.pod:672
20798 msgid "COMMENTS"
20799 msgstr ""
20800
20801 #. type: textblock
20802 #: ../fish/guestfish.pod:674
20803 msgid ""
20804 "Any line which starts with a I<#> character is treated as a comment and "
20805 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20806 "a command.  For example:"
20807 msgstr ""
20808
20809 #. type: verbatim
20810 #: ../fish/guestfish.pod:678
20811 #, no-wrap
20812 msgid ""
20813 " # this is a comment\n"
20814 "         # this is a comment\n"
20815 " foo # NOT a comment\n"
20816 "\n"
20817 msgstr ""
20818
20819 #. type: textblock
20820 #: ../fish/guestfish.pod:682
20821 msgid "Blank lines are also ignored."
20822 msgstr ""
20823
20824 #. type: =head1
20825 #: ../fish/guestfish.pod:684
20826 msgid "RUNNING COMMANDS LOCALLY"
20827 msgstr ""
20828
20829 #. type: textblock
20830 #: ../fish/guestfish.pod:686
20831 msgid ""
20832 "Any line which starts with a I<!> character is treated as a command sent to "
20833 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20834 msgstr ""
20835
20836 #. type: verbatim
20837 #: ../fish/guestfish.pod:690
20838 #, no-wrap
20839 msgid ""
20840 " !mkdir local\n"
20841 " tgz-out /remote local/remote-data.tar.gz\n"
20842 "\n"
20843 msgstr ""
20844
20845 #. type: textblock
20846 #: ../fish/guestfish.pod:693
20847 msgid ""
20848 "will create a directory C<local> on the host, and then export the contents "
20849 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20850 "(See C<tgz-out>)."
20851 msgstr ""
20852
20853 #. type: textblock
20854 #: ../fish/guestfish.pod:697
20855 msgid ""
20856 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20857 "effect, due to the way that subprocesses work in Unix."
20858 msgstr ""
20859
20860 #. type: =head2
20861 #: ../fish/guestfish.pod:700
20862 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20863 msgstr ""
20864
20865 #. type: textblock
20866 #: ../fish/guestfish.pod:702
20867 msgid ""
20868 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20869 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20870 "and executed as guestfish commands."
20871 msgstr ""
20872
20873 #. type: textblock
20874 #: ../fish/guestfish.pod:706
20875 msgid ""
20876 "Thus you can use shell script to construct arbitrary guestfish commands "
20877 "which are then parsed by guestfish."
20878 msgstr ""
20879
20880 #. type: textblock
20881 #: ../fish/guestfish.pod:709
20882 msgid ""
20883 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20884 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20885 "if we use a shell script to create the guestfish commands for us:"
20886 msgstr ""
20887
20888 #. type: verbatim
20889 #: ../fish/guestfish.pod:714
20890 #, no-wrap
20891 msgid ""
20892 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20893 "\n"
20894 msgstr ""
20895
20896 #. type: textblock
20897 #: ../fish/guestfish.pod:716
20898 msgid "or with names like C</foo.001>:"
20899 msgstr ""
20900
20901 #. type: verbatim
20902 #: ../fish/guestfish.pod:718
20903 #, no-wrap
20904 msgid ""
20905 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20906 "\n"
20907 msgstr ""
20908
20909 #. type: textblock
20910 #: ../fish/guestfish.pod:720
20911 msgid ""
20912 "When using guestfish interactively it can be helpful to just run the shell "
20913 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20914 "ordinary I<!> local command), see what guestfish commands it would run, and "
20915 "when you are happy with those prepend the C<E<lt>> character to run the "
20916 "guestfish commands for real."
20917 msgstr ""
20918
20919 #. type: =head1
20920 #: ../fish/guestfish.pod:726
20921 msgid "PIPES"
20922 msgstr ""
20923
20924 #. type: textblock
20925 #: ../fish/guestfish.pod:728
20926 msgid ""
20927 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20928 "command (a guestfish command) to the second command (any host command).  For "
20929 "example:"
20930 msgstr ""
20931
20932 #. type: verbatim
20933 #: ../fish/guestfish.pod:732
20934 #, no-wrap
20935 msgid ""
20936 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20937 "\n"
20938 msgstr ""
20939
20940 #. type: textblock
20941 #: ../fish/guestfish.pod:734
20942 msgid ""
20943 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20944 "program).  The above command would list all accounts in the guest filesystem "
20945 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20946 msgstr ""
20947
20948 #. type: verbatim
20949 #: ../fish/guestfish.pod:739
20950 #, no-wrap
20951 msgid ""
20952 " hexdump /bin/ls | head\n"
20953 " list-devices | tail -1\n"
20954 " tgz-out / - | tar ztf -\n"
20955 "\n"
20956 msgstr ""
20957
20958 #. type: textblock
20959 #: ../fish/guestfish.pod:743
20960 msgid ""
20961 "The space before the pipe symbol is required, any space after the pipe "
20962 "symbol is optional.  Everything after the pipe symbol is just passed "
20963 "straight to the host shell, so it can contain redirections, globs and "
20964 "anything else that makes sense on the host side."
20965 msgstr ""
20966
20967 #. type: textblock
20968 #: ../fish/guestfish.pod:748
20969 msgid ""
20970 "To use a literal argument which begins with a pipe symbol, you have to quote "
20971 "it, eg:"
20972 msgstr ""
20973
20974 #. type: verbatim
20975 #: ../fish/guestfish.pod:751
20976 #, no-wrap
20977 msgid ""
20978 " echo \"|\"\n"
20979 "\n"
20980 msgstr ""
20981
20982 #. type: =head1
20983 #: ../fish/guestfish.pod:753
20984 msgid "HOME DIRECTORIES"
20985 msgstr ""
20986
20987 #. type: textblock
20988 #: ../fish/guestfish.pod:755
20989 msgid ""
20990 "If a parameter starts with the character C<~> then the tilde may be expanded "
20991 "as a home directory path (either C<~> for the current user's home directory, "
20992 "or C<~user> for another user)."
20993 msgstr ""
20994
20995 #. type: textblock
20996 #: ../fish/guestfish.pod:759
20997 msgid ""
20998 "Note that home directory expansion happens for users known I<on the host>, "
20999 "not in the guest filesystem."
21000 msgstr ""
21001
21002 #. type: textblock
21003 #: ../fish/guestfish.pod:762
21004 msgid ""
21005 "To use a literal argument which begins with a tilde, you have to quote it, "
21006 "eg:"
21007 msgstr ""
21008
21009 #. type: verbatim
21010 #: ../fish/guestfish.pod:765
21011 #, no-wrap
21012 msgid ""
21013 " echo \"~\"\n"
21014 "\n"
21015 msgstr ""
21016
21017 #. type: textblock
21018 #: ../fish/guestfish.pod:769
21019 msgid ""
21020 "Libguestfs has some support for Linux guests encrypted according to the "
21021 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21022 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21023 "LUKS is supported."
21024 msgstr ""
21025
21026 #. type: textblock
21027 #: ../fish/guestfish.pod:774
21028 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21029 msgstr ""
21030
21031 #. type: verbatim
21032 #: ../fish/guestfish.pod:776
21033 #, no-wrap
21034 msgid ""
21035 " ><fs> vfs-type /dev/sda2\n"
21036 " crypto_LUKS\n"
21037 "\n"
21038 msgstr ""
21039
21040 #. type: textblock
21041 #: ../fish/guestfish.pod:779
21042 msgid ""
21043 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21044 "device called C</dev/mapper/luksdev>."
21045 msgstr ""
21046
21047 #. type: verbatim
21048 #: ../fish/guestfish.pod:782
21049 #, no-wrap
21050 msgid ""
21051 " ><fs> luks-open /dev/sda2 luksdev\n"
21052 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21053 "\n"
21054 msgstr ""
21055
21056 #. type: textblock
21057 #: ../fish/guestfish.pod:785
21058 msgid ""
21059 "Finally you have to tell LVM to scan for volume groups on the newly created "
21060 "mapper device:"
21061 msgstr ""
21062
21063 #. type: verbatim
21064 #: ../fish/guestfish.pod:788
21065 #, no-wrap
21066 msgid ""
21067 " vgscan\n"
21068 " vg-activate-all true\n"
21069 "\n"
21070 msgstr ""
21071
21072 #. type: textblock
21073 #: ../fish/guestfish.pod:791
21074 msgid "The logical volume(s) can now be mounted in the usual way."
21075 msgstr ""
21076
21077 #. type: textblock
21078 #: ../fish/guestfish.pod:793
21079 msgid ""
21080 "Before closing a LUKS device you must unmount any logical volumes on it and "
21081 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21082 "one.  Then you can close the mapper device:"
21083 msgstr ""
21084
21085 #. type: verbatim
21086 #: ../fish/guestfish.pod:797
21087 #, no-wrap
21088 msgid ""
21089 " vg-activate false /dev/VG\n"
21090 " luks-close /dev/mapper/luksdev\n"
21091 "\n"
21092 msgstr ""
21093
21094 #. type: =head1
21095 #: ../fish/guestfish.pod:800
21096 msgid "WINDOWS PATHS"
21097 msgstr ""
21098
21099 #. type: textblock
21100 #: ../fish/guestfish.pod:802
21101 msgid ""
21102 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21103 "letters and paths (with some limitations).  The following commands are "
21104 "equivalent:"
21105 msgstr ""
21106
21107 #. type: verbatim
21108 #: ../fish/guestfish.pod:806
21109 #, no-wrap
21110 msgid ""
21111 " file /WINDOWS/system32/config/system.LOG\n"
21112 "\n"
21113 msgstr ""
21114
21115 #. type: verbatim
21116 #: ../fish/guestfish.pod:808
21117 #, no-wrap
21118 msgid ""
21119 " file win:\\windows\\system32\\config\\system.log\n"
21120 "\n"
21121 msgstr ""
21122
21123 #. type: verbatim
21124 #: ../fish/guestfish.pod:810
21125 #, no-wrap
21126 msgid ""
21127 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21128 "\n"
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../fish/guestfish.pod:812
21133 msgid ""
21134 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21135 "where the drive is mounted, prepending that to the path, changing all "
21136 "backslash characters to forward slash, then resolving the result using L</"
21137 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21138 "the parameter might be rewritten like this:"
21139 msgstr ""
21140
21141 #. type: verbatim
21142 #: ../fish/guestfish.pod:818
21143 #, no-wrap
21144 msgid ""
21145 " win:e:\\foo\\bar => /e/FOO/bar\n"
21146 "\n"
21147 msgstr ""
21148
21149 #. type: textblock
21150 #: ../fish/guestfish.pod:820
21151 msgid "This only works in argument positions that expect a path."
21152 msgstr ""
21153
21154 #. type: =head1
21155 #: ../fish/guestfish.pod:822
21156 msgid "UPLOADING AND DOWNLOADING FILES"
21157 msgstr ""
21158
21159 #. type: textblock
21160 #: ../fish/guestfish.pod:824
21161 msgid ""
21162 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21163 "others which upload from or download to a local file, you can use the "
21164 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21165 msgstr ""
21166
21167 #. type: verbatim
21168 #: ../fish/guestfish.pod:828
21169 #, no-wrap
21170 msgid ""
21171 " upload - /foo\n"
21172 "\n"
21173 msgstr ""
21174
21175 #. type: textblock
21176 #: ../fish/guestfish.pod:830
21177 msgid ""
21178 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21179 msgstr ""
21180
21181 #. type: verbatim
21182 #: ../fish/guestfish.pod:833
21183 #, no-wrap
21184 msgid ""
21185 " tar-out /etc - | tar tf -\n"
21186 "\n"
21187 msgstr ""
21188
21189 #. type: textblock
21190 #: ../fish/guestfish.pod:835
21191 msgid ""
21192 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21193 "command (see L</PIPES>)."
21194 msgstr ""
21195
21196 #. type: textblock
21197 #: ../fish/guestfish.pod:838
21198 msgid ""
21199 "When using C<-> to read from stdin, the input is read up to the end of "
21200 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21201 "some arbitrary end marker:"
21202 msgstr ""
21203
21204 #. type: verbatim
21205 #: ../fish/guestfish.pod:842
21206 #, no-wrap
21207 msgid ""
21208 " upload -<<END /foo\n"
21209 " input line 1\n"
21210 " input line 2\n"
21211 " input line 3\n"
21212 " END\n"
21213 "\n"
21214 msgstr ""
21215
21216 #. type: textblock
21217 #: ../fish/guestfish.pod:848
21218 msgid ""
21219 "Any string of characters can be used instead of C<END>.  The end marker must "
21220 "appear on a line of its own, without any preceeding or following characters "
21221 "(not even spaces)."
21222 msgstr ""
21223
21224 #. type: textblock
21225 #: ../fish/guestfish.pod:852
21226 msgid ""
21227 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21228 "upload local files (so-called \"FileIn\" parameters in the generator)."
21229 msgstr ""
21230
21231 #. type: =head1
21232 #: ../fish/guestfish.pod:855
21233 msgid "EXIT ON ERROR BEHAVIOUR"
21234 msgstr ""
21235
21236 #. type: textblock
21237 #: ../fish/guestfish.pod:857
21238 msgid ""
21239 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21240 "taking commands from a human over a tty), and will exit on the first error "
21241 "in non-interactive mode (scripts, commands given on the command line)."
21242 msgstr ""
21243
21244 #. type: textblock
21245 #: ../fish/guestfish.pod:862
21246 msgid ""
21247 "If you prefix a command with a I<-> character, then that command will not "
21248 "cause guestfish to exit, even if that (one) command returns an error."
21249 msgstr ""
21250
21251 #. type: =head1
21252 #: ../fish/guestfish.pod:866
21253 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21254 msgstr ""
21255
21256 #. type: textblock
21257 #: ../fish/guestfish.pod:868
21258 msgid ""
21259 "Guestfish can be remote-controlled over a socket.  This is useful "
21260 "particularly in shell scripts where you want to make several different "
21261 "changes to a filesystem, but you don't want the overhead of starting up a "
21262 "guestfish process each time."
21263 msgstr ""
21264
21265 #. type: textblock
21266 #: ../fish/guestfish.pod:873
21267 msgid "Start a guestfish server process using:"
21268 msgstr ""
21269
21270 #. type: verbatim
21271 #: ../fish/guestfish.pod:875
21272 #, no-wrap
21273 msgid ""
21274 " eval \"`guestfish --listen`\"\n"
21275 "\n"
21276 msgstr ""
21277
21278 #. type: textblock
21279 #: ../fish/guestfish.pod:877
21280 msgid "and then send it commands by doing:"
21281 msgstr ""
21282
21283 #. type: verbatim
21284 #: ../fish/guestfish.pod:879
21285 #, no-wrap
21286 msgid ""
21287 " guestfish --remote cmd [...]\n"
21288 "\n"
21289 msgstr ""
21290
21291 #. type: textblock
21292 #: ../fish/guestfish.pod:881
21293 msgid "To cause the server to exit, send it the exit command:"
21294 msgstr ""
21295
21296 #. type: verbatim
21297 #: ../fish/guestfish.pod:883
21298 #, no-wrap
21299 msgid ""
21300 " guestfish --remote exit\n"
21301 "\n"
21302 msgstr ""
21303
21304 #. type: textblock
21305 #: ../fish/guestfish.pod:885
21306 msgid ""
21307 "Note that the server will normally exit if there is an error in a command.  "
21308 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21309 "BEHAVIOUR>."
21310 msgstr ""
21311
21312 #. type: =head2
21313 #: ../fish/guestfish.pod:889
21314 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21315 msgstr ""
21316
21317 #. type: textblock
21318 #: ../fish/guestfish.pod:891
21319 msgid ""
21320 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21321 "is how the I<--remote> option knows where to send the commands.  You can "
21322 "have several guestfish listener processes running using:"
21323 msgstr ""
21324
21325 #. type: verbatim
21326 #: ../fish/guestfish.pod:895
21327 #, no-wrap
21328 msgid ""
21329 " eval \"`guestfish --listen`\"\n"
21330 " pid1=$GUESTFISH_PID\n"
21331 " eval \"`guestfish --listen`\"\n"
21332 " pid2=$GUESTFISH_PID\n"
21333 " ...\n"
21334 " guestfish --remote=$pid1 cmd\n"
21335 " guestfish --remote=$pid2 cmd\n"
21336 "\n"
21337 msgstr ""
21338
21339 #. type: =head2
21340 #: ../fish/guestfish.pod:903
21341 msgid "REMOTE CONTROL AND CSH"
21342 msgstr ""
21343
21344 #. type: textblock
21345 #: ../fish/guestfish.pod:905
21346 msgid ""
21347 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21348 "option:"
21349 msgstr ""
21350
21351 #. type: verbatim
21352 #: ../fish/guestfish.pod:908
21353 #, no-wrap
21354 msgid ""
21355 " eval \"`guestfish --listen --csh`\"\n"
21356 "\n"
21357 msgstr ""
21358
21359 #. type: =head2
21360 #: ../fish/guestfish.pod:910
21361 msgid "REMOTE CONTROL DETAILS"
21362 msgstr ""
21363
21364 #. type: textblock
21365 #: ../fish/guestfish.pod:912
21366 msgid ""
21367 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21368 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21369 "and C<$PID> is the process ID of the server."
21370 msgstr ""
21371
21372 #. type: textblock
21373 #: ../fish/guestfish.pod:916
21374 msgid "Guestfish client and server versions must match exactly."
21375 msgstr ""
21376
21377 #. type: =head1
21378 #: ../fish/guestfish.pod:918
21379 msgid "PREPARED DISK IMAGES"
21380 msgstr ""
21381
21382 #. type: textblock
21383 #: ../fish/guestfish.pod:920
21384 msgid ""
21385 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21386 "preformatted disk images that guestfish can make for you to save typing.  "
21387 "This is particularly useful for testing purposes.  This option is used "
21388 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21389 "can be mixed with I<-a>)."
21390 msgstr ""
21391
21392 #. type: textblock
21393 #: ../fish/guestfish.pod:926
21394 msgid ""
21395 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21396 "the second and so on.  Existing files in the current directory are "
21397 "I<overwritten>."
21398 msgstr ""
21399
21400 #. type: textblock
21401 #: ../fish/guestfish.pod:930
21402 msgid ""
21403 "The type briefly describes how the disk should be sized, partitioned, how "
21404 "filesystem(s) should be created, and how content should be added.  "
21405 "Optionally the type can be followed by extra parameters, separated by C<:> "
21406 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21407 "allocated disk, containing a single partition, with the partition formatted "
21408 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21409 "disk instead."
21410 msgstr ""
21411
21412 #. type: textblock
21413 #: ../fish/guestfish.pod:938
21414 msgid "To list the available types and any extra parameters they take, run:"
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../fish/guestfish.pod:942
21419 msgid ""
21420 "Note that the prepared filesystem is not mounted.  You would usually have to "
21421 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21422 msgstr ""
21423
21424 #. type: textblock
21425 #: ../fish/guestfish.pod:946
21426 msgid ""
21427 "If any I<-N> or I<--new> options are given, the guest is automatically "
21428 "launched."
21429 msgstr ""
21430
21431 #. type: textblock
21432 #: ../fish/guestfish.pod:951
21433 msgid "Create a 100MB disk with an ext4-formatted partition:"
21434 msgstr ""
21435
21436 #. type: verbatim
21437 #: ../fish/guestfish.pod:953
21438 #, no-wrap
21439 msgid ""
21440 " guestfish -N fs:ext4\n"
21441 "\n"
21442 msgstr ""
21443
21444 #. type: textblock
21445 #: ../fish/guestfish.pod:955
21446 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21447 msgstr ""
21448
21449 #. type: verbatim
21450 #: ../fish/guestfish.pod:957
21451 #, no-wrap
21452 msgid ""
21453 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21454 "\n"
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../fish/guestfish.pod:959
21459 msgid "Create a blank 200MB disk:"
21460 msgstr ""
21461
21462 #. type: verbatim
21463 #: ../fish/guestfish.pod:961
21464 #, no-wrap
21465 msgid ""
21466 " guestfish -N disk:200M\n"
21467 "\n"
21468 msgstr ""
21469
21470 #. type: =head1
21471 #: ../fish/guestfish.pod:963
21472 msgid "PROGRESS BARS"
21473 msgstr ""
21474
21475 #. type: textblock
21476 #: ../fish/guestfish.pod:965
21477 msgid ""
21478 "Some (not all) long-running commands send progress notification messages as "
21479 "they are running.  Guestfish turns these messages into progress bars."
21480 msgstr ""
21481
21482 #. type: textblock
21483 #: ../fish/guestfish.pod:969
21484 msgid ""
21485 "When a command that supports progress bars takes longer than two seconds to "
21486 "run, and if progress bars are enabled, then you will see one appearing below "
21487 "the command:"
21488 msgstr ""
21489
21490 #. type: verbatim
21491 #: ../fish/guestfish.pod:973
21492 #, no-wrap
21493 msgid ""
21494 " ><fs> copy-size /large-file /another-file 2048M\n"
21495 " / 10% [#####-----------------------------------------] 00:30\n"
21496 "\n"
21497 msgstr ""
21498
21499 #. type: textblock
21500 #: ../fish/guestfish.pod:976
21501 msgid ""
21502 "The spinner on the left hand side moves round once for every progress "
21503 "notification received from the backend.  This is a (reasonably) golden "
21504 "assurance that the command is \"doing something\" even if the progress bar "
21505 "is not moving, because the command is able to send the progress "
21506 "notifications.  When the bar reaches 100% and the command finishes, the "
21507 "spinner disappears."
21508 msgstr ""
21509
21510 #. type: textblock
21511 #: ../fish/guestfish.pod:983
21512 msgid ""
21513 "Progress bars are enabled by default when guestfish is used interactively.  "
21514 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21515 "and you can disable them completely using I<--no-progress-bars>."
21516 msgstr ""
21517
21518 #. type: =head1
21519 #: ../fish/guestfish.pod:988
21520 msgid "GUESTFISH COMMANDS"
21521 msgstr ""
21522
21523 #. type: textblock
21524 #: ../fish/guestfish.pod:990
21525 msgid ""
21526 "The commands in this section are guestfish convenience commands, in other "
21527 "words, they are not part of the L<guestfs(3)> API."
21528 msgstr ""
21529
21530 #. type: =head2
21531 #: ../fish/guestfish.pod:993
21532 msgid "help"
21533 msgstr ""
21534
21535 #. type: verbatim
21536 #: ../fish/guestfish.pod:995
21537 #, no-wrap
21538 msgid ""
21539 " help\n"
21540 " help cmd\n"
21541 "\n"
21542 msgstr ""
21543
21544 #. type: textblock
21545 #: ../fish/guestfish.pod:998
21546 msgid "Without any parameter, this provides general help."
21547 msgstr ""
21548
21549 #. type: textblock
21550 #: ../fish/guestfish.pod:1000
21551 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21552 msgstr ""
21553
21554 #. type: =head2
21555 #: ../fish/guestfish.pod:1002
21556 msgid "quit | exit"
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../fish/guestfish.pod:1004
21561 msgid "This exits guestfish.  You can also use C<^D> key."
21562 msgstr ""
21563
21564 #. type: textblock
21565 #: ../fish/guestfish.pod:1006
21566 msgid "@FISH_COMMANDS@"
21567 msgstr ""
21568
21569 #. type: =head1
21570 #: ../fish/guestfish.pod:1008
21571 msgid "COMMANDS"
21572 msgstr ""
21573
21574 #. type: =head1
21575 #: ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:77
21576 msgid "EXIT CODE"
21577 msgstr ""
21578
21579 #. type: textblock
21580 #: ../fish/guestfish.pod:1014
21581 msgid ""
21582 "guestfish returns 0 if the commands completed without error, or 1 if there "
21583 "was an error."
21584 msgstr ""
21585
21586 #. type: =item
21587 #: ../fish/guestfish.pod:1021
21588 msgid "EDITOR"
21589 msgstr ""
21590
21591 #. type: textblock
21592 #: ../fish/guestfish.pod:1023
21593 msgid ""
21594 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21595 "C<vi>."
21596 msgstr ""
21597
21598 #. type: =item
21599 #: ../fish/guestfish.pod:1026
21600 msgid "GUESTFISH_PID"
21601 msgstr ""
21602
21603 #. type: textblock
21604 #: ../fish/guestfish.pod:1028
21605 msgid ""
21606 "Used with the I<--remote> option to specify the remote guestfish process to "
21607 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21608 msgstr ""
21609
21610 #. type: =item
21611 #: ../fish/guestfish.pod:1032
21612 msgid "HEXEDITOR"
21613 msgstr ""
21614
21615 #. type: textblock
21616 #: ../fish/guestfish.pod:1034
21617 msgid ""
21618 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21619 "not specified, the external L<hexedit(1)> program is used."
21620 msgstr ""
21621
21622 #. type: =item
21623 #: ../fish/guestfish.pod:1038
21624 msgid "HOME"
21625 msgstr ""
21626
21627 #. type: textblock
21628 #: ../fish/guestfish.pod:1040
21629 msgid ""
21630 "If compiled with GNU readline support, various files in the home directory "
21631 "can be used.  See L</FILES>."
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../fish/guestfish.pod:1049
21636 msgid ""
21637 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21638 "effect as using the B<-v> option."
21639 msgstr ""
21640
21641 #. type: textblock
21642 #: ../fish/guestfish.pod:1061
21643 msgid ""
21644 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21645 "the discussion of paths in L<guestfs(3)>."
21646 msgstr ""
21647
21648 #. type: textblock
21649 #: ../fish/guestfish.pod:1072
21650 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21651 msgstr ""
21652
21653 #. type: =item
21654 #: ../fish/guestfish.pod:1074
21655 msgid "PAGER"
21656 msgstr ""
21657
21658 #. type: textblock
21659 #: ../fish/guestfish.pod:1076
21660 msgid ""
21661 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21662 "C<more>."
21663 msgstr ""
21664
21665 #. type: =head1
21666 #: ../fish/guestfish.pod:1092 ../fuse/guestmount.pod:254
21667 msgid "FILES"
21668 msgstr ""
21669
21670 #. type: =item
21671 #: ../fish/guestfish.pod:1096 ../fuse/guestmount.pod:258
21672 msgid "$HOME/.libguestfs-tools.rc"
21673 msgstr ""
21674
21675 #. type: =item
21676 #: ../fish/guestfish.pod:1098 ../fuse/guestmount.pod:260
21677 msgid "/etc/libguestfs-tools.conf"
21678 msgstr ""
21679
21680 #. type: textblock
21681 #: ../fish/guestfish.pod:1100 ../fuse/guestmount.pod:262
21682 msgid ""
21683 "This configuration file controls the default read-only or read-write mode "
21684 "(I<--ro> or I<--rw>)."
21685 msgstr ""
21686
21687 #. type: textblock
21688 #: ../fish/guestfish.pod:1103
21689 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21690 msgstr ""
21691
21692 #. type: =item
21693 #: ../fish/guestfish.pod:1105
21694 msgid "$HOME/.guestfish"
21695 msgstr ""
21696
21697 #. type: textblock
21698 #: ../fish/guestfish.pod:1107
21699 msgid ""
21700 "If compiled with GNU readline support, then the command history is saved in "
21701 "this file."
21702 msgstr ""
21703
21704 #. type: =item
21705 #: ../fish/guestfish.pod:1110
21706 msgid "$HOME/.inputrc"
21707 msgstr ""
21708
21709 #. type: =item
21710 #: ../fish/guestfish.pod:1112
21711 msgid "/etc/inputrc"
21712 msgstr ""
21713
21714 #. type: textblock
21715 #: ../fish/guestfish.pod:1114
21716 msgid ""
21717 "If compiled with GNU readline support, then these files can be used to "
21718 "configure readline.  For further information, please see L<readline(3)/"
21719 "INITIALIZATION FILE>."
21720 msgstr ""
21721
21722 #. type: textblock
21723 #: ../fish/guestfish.pod:1118
21724 msgid "To write rules which only apply to guestfish, use:"
21725 msgstr ""
21726
21727 #. type: verbatim
21728 #: ../fish/guestfish.pod:1120
21729 #, no-wrap
21730 msgid ""
21731 " $if guestfish\n"
21732 " ...\n"
21733 " $endif\n"
21734 "\n"
21735 msgstr ""
21736
21737 #. type: textblock
21738 #: ../fish/guestfish.pod:1124
21739 msgid ""
21740 "Variables that you can set in inputrc that change the behaviour of guestfish "
21741 "in useful ways include:"
21742 msgstr ""
21743
21744 #. type: =item
21745 #: ../fish/guestfish.pod:1129
21746 msgid "completion-ignore-case (default: on)"
21747 msgstr ""
21748
21749 #. type: textblock
21750 #: ../fish/guestfish.pod:1131
21751 msgid ""
21752 "By default, guestfish will ignore case when tab-completing paths on the "
21753 "disk.  Use:"
21754 msgstr ""
21755
21756 #. type: verbatim
21757 #: ../fish/guestfish.pod:1134
21758 #, no-wrap
21759 msgid ""
21760 " set completion-ignore-case off\n"
21761 "\n"
21762 msgstr ""
21763
21764 #. type: textblock
21765 #: ../fish/guestfish.pod:1136
21766 msgid "to make guestfish case sensitive."
21767 msgstr ""
21768
21769 #. type: =item
21770 #: ../fish/guestfish.pod:1140
21771 msgid "test1.img"
21772 msgstr ""
21773
21774 #. type: =item
21775 #: ../fish/guestfish.pod:1142
21776 msgid "test2.img (etc)"
21777 msgstr ""
21778
21779 #. type: textblock
21780 #: ../fish/guestfish.pod:1144
21781 msgid ""
21782 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21783 "will be created in the file C<test1.img> in the current directory.  The "
21784 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21785 "the same name will be overwritten."
21786 msgstr ""
21787
21788 #. type: textblock
21789 #: ../fish/guestfish.pod:1153
21790 msgid ""
21791 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
21792 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
21793 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
21794 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
21795 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
21796 ">, L<hexedit(1)>."
21797 msgstr ""
21798
21799 #. type: textblock
21800 #: ../fish/guestfish.pod:1183 ../test-tool/libguestfs-test-tool.pod:102
21801 #: ../fuse/guestmount.pod:289 ../tools/virt-win-reg.pl:606
21802 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
21803 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
21804 msgid ""
21805 "This program is free software; you can redistribute it and/or modify it "
21806 "under the terms of the GNU General Public License as published by the Free "
21807 "Software Foundation; either version 2 of the License, or (at your option) "
21808 "any later version."
21809 msgstr ""
21810
21811 #. type: textblock
21812 #: ../fish/guestfish.pod:1188 ../test-tool/libguestfs-test-tool.pod:107
21813 #: ../fuse/guestmount.pod:294 ../tools/virt-win-reg.pl:611
21814 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
21815 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
21816 msgid ""
21817 "This program is distributed in the hope that it will be useful, but WITHOUT "
21818 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
21819 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
21820 "more details."
21821 msgstr ""
21822
21823 #. type: textblock
21824 #: ../fish/guestfish.pod:1193 ../test-tool/libguestfs-test-tool.pod:112
21825 #: ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:616
21826 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
21827 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
21828 msgid ""
21829 "You should have received a copy of the GNU General Public License along with "
21830 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
21831 "Ave, Cambridge, MA 02139, USA."
21832 msgstr ""
21833
21834 #. type: =head2
21835 #: ../fish/guestfish-actions.pod:1
21836 msgid "add-cdrom"
21837 msgstr ""
21838
21839 #. type: verbatim
21840 #: ../fish/guestfish-actions.pod:3
21841 #, no-wrap
21842 msgid ""
21843 " add-cdrom filename\n"
21844 "\n"
21845 msgstr ""
21846
21847 #. type: textblock
21848 #: ../fish/guestfish-actions.pod:15
21849 msgid ""
21850 "This call checks for the existence of C<filename>.  This stops you from "
21851 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21852 "and C<http:> URLs.  To specify those, use the general L</config> call "
21853 "instead."
21854 msgstr ""
21855
21856 #. type: textblock
21857 #: ../fish/guestfish-actions.pod:22
21858 msgid ""
21859 "If you just want to add an ISO file (often you use this as an efficient way "
21860 "to transfer large files into the guest), then you should probably use L</add-"
21861 "drive-ro> instead."
21862 msgstr ""
21863
21864 #. type: =head2
21865 #: ../fish/guestfish-actions.pod:35
21866 msgid "add-domain"
21867 msgstr ""
21868
21869 #. type: =head2
21870 #: ../fish/guestfish-actions.pod:37
21871 msgid "domain"
21872 msgstr ""
21873
21874 #. type: verbatim
21875 #: ../fish/guestfish-actions.pod:39
21876 #, no-wrap
21877 msgid ""
21878 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
21879 "\n"
21880 msgstr ""
21881
21882 #. type: textblock
21883 #: ../fish/guestfish-actions.pod:41
21884 msgid ""
21885 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21886 "It works by connecting to libvirt, requesting the domain and domain XML from "
21887 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
21888 msgstr ""
21889
21890 #. type: textblock
21891 #: ../fish/guestfish-actions.pod:76
21892 msgid ""
21893 "The other optional parameters are passed directly through to L</add-drive-"
21894 "opts>."
21895 msgstr ""
21896
21897 #. type: textblock
21898 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
21899 #: ../fish/guestfish-actions.pod:3052
21900 msgid ""
21901 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
21902 msgstr ""
21903
21904 #. type: =head2
21905 #: ../fish/guestfish-actions.pod:81
21906 msgid "add-drive"
21907 msgstr ""
21908
21909 #. type: verbatim
21910 #: ../fish/guestfish-actions.pod:83
21911 #, no-wrap
21912 msgid ""
21913 " add-drive filename\n"
21914 "\n"
21915 msgstr ""
21916
21917 #. type: textblock
21918 #: ../fish/guestfish-actions.pod:85
21919 msgid ""
21920 "This function is the equivalent of calling L</add-drive-opts> with no "
21921 "optional parameters, so the disk is added writable, with the format being "
21922 "detected automatically."
21923 msgstr ""
21924
21925 #. type: textblock
21926 #: ../fish/guestfish-actions.pod:89
21927 msgid ""
21928 "Automatic detection of the format opens you up to a potential security hole "
21929 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21930 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21931 "you should think about replacing calls to this function with calls to L</add-"
21932 "drive-opts>, and specifying the format."
21933 msgstr ""
21934
21935 #. type: =head2
21936 #: ../fish/guestfish-actions.pod:96
21937 msgid "add-drive-opts"
21938 msgstr ""
21939
21940 #. type: =head2
21941 #: ../fish/guestfish-actions.pod:98
21942 msgid "add"
21943 msgstr ""
21944
21945 #. type: verbatim
21946 #: ../fish/guestfish-actions.pod:100
21947 #, no-wrap
21948 msgid ""
21949 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
21950 "\n"
21951 msgstr ""
21952
21953 #. type: textblock
21954 #: ../fish/guestfish-actions.pod:127
21955 msgid ""
21956 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
21957 "add-drive-ro>) then the format is automatically detected.  Possible formats "
21958 "include C<raw> and C<qcow2>."
21959 msgstr ""
21960
21961 #. type: textblock
21962 #: ../fish/guestfish-actions.pod:138
21963 msgid ""
21964 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
21965 "add-drive-with-if> call (q.v.)"
21966 msgstr ""
21967
21968 #. type: =head2
21969 #: ../fish/guestfish-actions.pod:145
21970 msgid "add-drive-ro"
21971 msgstr ""
21972
21973 #. type: =head2
21974 #: ../fish/guestfish-actions.pod:147
21975 msgid "add-ro"
21976 msgstr ""
21977
21978 #. type: verbatim
21979 #: ../fish/guestfish-actions.pod:149
21980 #, no-wrap
21981 msgid ""
21982 " add-drive-ro filename\n"
21983 "\n"
21984 msgstr ""
21985
21986 #. type: textblock
21987 #: ../fish/guestfish-actions.pod:151
21988 msgid ""
21989 "This function is the equivalent of calling L</add-drive-opts> with the "
21990 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
21991 "is added read-only, with the format being detected automatically."
21992 msgstr ""
21993
21994 #. type: =head2
21995 #: ../fish/guestfish-actions.pod:156
21996 msgid "add-drive-ro-with-if"
21997 msgstr ""
21998
21999 #. type: verbatim
22000 #: ../fish/guestfish-actions.pod:158
22001 #, no-wrap
22002 msgid ""
22003 " add-drive-ro-with-if filename iface\n"
22004 "\n"
22005 msgstr ""
22006
22007 #. type: textblock
22008 #: ../fish/guestfish-actions.pod:160
22009 msgid ""
22010 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
22011 "interface emulation to use at run time."
22012 msgstr ""
22013
22014 #. type: =head2
22015 #: ../fish/guestfish-actions.pod:170
22016 msgid "add-drive-with-if"
22017 msgstr ""
22018
22019 #. type: verbatim
22020 #: ../fish/guestfish-actions.pod:172
22021 #, no-wrap
22022 msgid ""
22023 " add-drive-with-if filename iface\n"
22024 "\n"
22025 msgstr ""
22026
22027 #. type: textblock
22028 #: ../fish/guestfish-actions.pod:174
22029 msgid ""
22030 "This is the same as L</add-drive> but it allows you to specify the QEMU "
22031 "interface emulation to use at run time."
22032 msgstr ""
22033
22034 #. type: =head2
22035 #: ../fish/guestfish-actions.pod:184
22036 msgid "aug-clear"
22037 msgstr ""
22038
22039 #. type: verbatim
22040 #: ../fish/guestfish-actions.pod:186
22041 #, no-wrap
22042 msgid ""
22043 " aug-clear augpath\n"
22044 "\n"
22045 msgstr ""
22046
22047 #. type: =head2
22048 #: ../fish/guestfish-actions.pod:191
22049 msgid "aug-close"
22050 msgstr ""
22051
22052 #. type: verbatim
22053 #: ../fish/guestfish-actions.pod:193
22054 #, no-wrap
22055 msgid ""
22056 " aug-close\n"
22057 "\n"
22058 msgstr ""
22059
22060 #. type: textblock
22061 #: ../fish/guestfish-actions.pod:195
22062 msgid ""
22063 "Close the current Augeas handle and free up any resources used by it.  After "
22064 "calling this, you have to call L</aug-init> again before you can use any "
22065 "other Augeas functions."
22066 msgstr ""
22067
22068 #. type: =head2
22069 #: ../fish/guestfish-actions.pod:200
22070 msgid "aug-defnode"
22071 msgstr ""
22072
22073 #. type: verbatim
22074 #: ../fish/guestfish-actions.pod:202
22075 #, no-wrap
22076 msgid ""
22077 " aug-defnode name expr val\n"
22078 "\n"
22079 msgstr ""
22080
22081 #. type: textblock
22082 #: ../fish/guestfish-actions.pod:207
22083 msgid ""
22084 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22085 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
22086 "containing that single node."
22087 msgstr ""
22088
22089 #. type: =head2
22090 #: ../fish/guestfish-actions.pod:215
22091 msgid "aug-defvar"
22092 msgstr ""
22093
22094 #. type: verbatim
22095 #: ../fish/guestfish-actions.pod:217
22096 #, no-wrap
22097 msgid ""
22098 " aug-defvar name expr\n"
22099 "\n"
22100 msgstr ""
22101
22102 #. type: =head2
22103 #: ../fish/guestfish-actions.pod:226
22104 msgid "aug-get"
22105 msgstr ""
22106
22107 #. type: verbatim
22108 #: ../fish/guestfish-actions.pod:228
22109 #, no-wrap
22110 msgid ""
22111 " aug-get augpath\n"
22112 "\n"
22113 msgstr ""
22114
22115 #. type: =head2
22116 #: ../fish/guestfish-actions.pod:233
22117 msgid "aug-init"
22118 msgstr ""
22119
22120 #. type: verbatim
22121 #: ../fish/guestfish-actions.pod:235
22122 #, no-wrap
22123 msgid ""
22124 " aug-init root flags\n"
22125 "\n"
22126 msgstr ""
22127
22128 #. type: textblock
22129 #: ../fish/guestfish-actions.pod:241
22130 msgid "You must call this before using any other L</aug-*> commands."
22131 msgstr ""
22132
22133 #. type: textblock
22134 #: ../fish/guestfish-actions.pod:276
22135 msgid "Do not load the tree in L</aug-init>."
22136 msgstr ""
22137
22138 #. type: textblock
22139 #: ../fish/guestfish-actions.pod:280
22140 msgid "To close the handle, you can call L</aug-close>."
22141 msgstr ""
22142
22143 #. type: =head2
22144 #: ../fish/guestfish-actions.pod:284
22145 msgid "aug-insert"
22146 msgstr ""
22147
22148 #. type: verbatim
22149 #: ../fish/guestfish-actions.pod:286
22150 #, no-wrap
22151 msgid ""
22152 " aug-insert augpath label true|false\n"
22153 "\n"
22154 msgstr ""
22155
22156 #. type: =head2
22157 #: ../fish/guestfish-actions.pod:296
22158 msgid "aug-load"
22159 msgstr ""
22160
22161 #. type: verbatim
22162 #: ../fish/guestfish-actions.pod:298
22163 #, no-wrap
22164 msgid ""
22165 " aug-load\n"
22166 "\n"
22167 msgstr ""
22168
22169 #. type: =head2
22170 #: ../fish/guestfish-actions.pod:305
22171 msgid "aug-ls"
22172 msgstr ""
22173
22174 #. type: verbatim
22175 #: ../fish/guestfish-actions.pod:307
22176 #, no-wrap
22177 msgid ""
22178 " aug-ls augpath\n"
22179 "\n"
22180 msgstr ""
22181
22182 #. type: textblock
22183 #: ../fish/guestfish-actions.pod:309
22184 msgid ""
22185 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
22186 "resulting nodes into alphabetical order."
22187 msgstr ""
22188
22189 #. type: =head2
22190 #: ../fish/guestfish-actions.pod:312
22191 msgid "aug-match"
22192 msgstr ""
22193
22194 #. type: verbatim
22195 #: ../fish/guestfish-actions.pod:314
22196 #, no-wrap
22197 msgid ""
22198 " aug-match augpath\n"
22199 "\n"
22200 msgstr ""
22201
22202 #. type: =head2
22203 #: ../fish/guestfish-actions.pod:320
22204 msgid "aug-mv"
22205 msgstr ""
22206
22207 #. type: verbatim
22208 #: ../fish/guestfish-actions.pod:322
22209 #, no-wrap
22210 msgid ""
22211 " aug-mv src dest\n"
22212 "\n"
22213 msgstr ""
22214
22215 #. type: =head2
22216 #: ../fish/guestfish-actions.pod:327
22217 msgid "aug-rm"
22218 msgstr ""
22219
22220 #. type: verbatim
22221 #: ../fish/guestfish-actions.pod:329
22222 #, no-wrap
22223 msgid ""
22224 " aug-rm augpath\n"
22225 "\n"
22226 msgstr ""
22227
22228 #. type: =head2
22229 #: ../fish/guestfish-actions.pod:335
22230 msgid "aug-save"
22231 msgstr ""
22232
22233 #. type: verbatim
22234 #: ../fish/guestfish-actions.pod:337
22235 #, no-wrap
22236 msgid ""
22237 " aug-save\n"
22238 "\n"
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../fish/guestfish-actions.pod:341
22243 msgid ""
22244 "The flags which were passed to L</aug-init> affect exactly how files are "
22245 "saved."
22246 msgstr ""
22247
22248 #. type: =head2
22249 #: ../fish/guestfish-actions.pod:344
22250 msgid "aug-set"
22251 msgstr ""
22252
22253 #. type: verbatim
22254 #: ../fish/guestfish-actions.pod:346
22255 #, no-wrap
22256 msgid ""
22257 " aug-set augpath val\n"
22258 "\n"
22259 msgstr ""
22260
22261 #. type: textblock
22262 #: ../fish/guestfish-actions.pod:350
22263 msgid ""
22264 "In the Augeas API, it is possible to clear a node by setting the value to "
22265 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22266 "this call.  Instead you must use the L</aug-clear> call."
22267 msgstr ""
22268
22269 #. type: =head2
22270 #: ../fish/guestfish-actions.pod:355
22271 msgid "available"
22272 msgstr ""
22273
22274 #. type: verbatim
22275 #: ../fish/guestfish-actions.pod:357
22276 #, no-wrap
22277 msgid ""
22278 " available 'groups ...'\n"
22279 "\n"
22280 msgstr ""
22281
22282 #. type: textblock
22283 #: ../fish/guestfish-actions.pod:363
22284 msgid ""
22285 "The libguestfs groups, and the functions that those groups correspond to, "
22286 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22287 "runtime by calling L</available-all-groups>."
22288 msgstr ""
22289
22290 #. type: textblock
22291 #: ../fish/guestfish-actions.pod:387
22292 msgid "You must call L</launch> before calling this function."
22293 msgstr ""
22294
22295 #. type: textblock
22296 #: ../fish/guestfish-actions.pod:409
22297 msgid ""
22298 "This call was added in version C<1.0.80>.  In previous versions of "
22299 "libguestfs all you could do would be to speculatively execute a command to "
22300 "find out if the daemon implemented it.  See also L</version>."
22301 msgstr ""
22302
22303 #. type: =head2
22304 #: ../fish/guestfish-actions.pod:416
22305 msgid "available-all-groups"
22306 msgstr ""
22307
22308 #. type: verbatim
22309 #: ../fish/guestfish-actions.pod:418
22310 #, no-wrap
22311 msgid ""
22312 " available-all-groups\n"
22313 "\n"
22314 msgstr ""
22315
22316 #. type: textblock
22317 #: ../fish/guestfish-actions.pod:420
22318 msgid ""
22319 "This command returns a list of all optional groups that this daemon knows "
22320 "about.  Note this returns both supported and unsupported groups.  To find "
22321 "out which ones the daemon can actually support you have to call L</"
22322 "available> on each member of the returned list."
22323 msgstr ""
22324
22325 #. type: textblock
22326 #: ../fish/guestfish-actions.pod:426
22327 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
22328 msgstr ""
22329
22330 #. type: =head2
22331 #: ../fish/guestfish-actions.pod:428
22332 msgid "base64-in"
22333 msgstr ""
22334
22335 #. type: verbatim
22336 #: ../fish/guestfish-actions.pod:430
22337 #, no-wrap
22338 msgid ""
22339 " base64-in (base64file|-) filename\n"
22340 "\n"
22341 msgstr ""
22342
22343 #. type: textblock
22344 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
22345 #: ../fish/guestfish-actions.pod:668 ../fish/guestfish-actions.pod:837
22346 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:1233
22347 #: ../fish/guestfish-actions.pod:4450 ../fish/guestfish-actions.pod:4462
22348 #: ../fish/guestfish-actions.pod:4473 ../fish/guestfish-actions.pod:4484
22349 #: ../fish/guestfish-actions.pod:4536 ../fish/guestfish-actions.pod:4545
22350 #: ../fish/guestfish-actions.pod:4599 ../fish/guestfish-actions.pod:4622
22351 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
22352 msgstr ""
22353
22354 #. type: =head2
22355 #: ../fish/guestfish-actions.pod:437
22356 msgid "base64-out"
22357 msgstr ""
22358
22359 #. type: verbatim
22360 #: ../fish/guestfish-actions.pod:439
22361 #, no-wrap
22362 msgid ""
22363 " base64-out filename (base64file|-)\n"
22364 "\n"
22365 msgstr ""
22366
22367 #. type: =head2
22368 #: ../fish/guestfish-actions.pod:446
22369 msgid "blockdev-flushbufs"
22370 msgstr ""
22371
22372 #. type: verbatim
22373 #: ../fish/guestfish-actions.pod:448
22374 #, no-wrap
22375 msgid ""
22376 " blockdev-flushbufs device\n"
22377 "\n"
22378 msgstr ""
22379
22380 #. type: =head2
22381 #: ../fish/guestfish-actions.pod:455
22382 msgid "blockdev-getbsz"
22383 msgstr ""
22384
22385 #. type: verbatim
22386 #: ../fish/guestfish-actions.pod:457
22387 #, no-wrap
22388 msgid ""
22389 " blockdev-getbsz device\n"
22390 "\n"
22391 msgstr ""
22392
22393 #. type: =head2
22394 #: ../fish/guestfish-actions.pod:466
22395 msgid "blockdev-getro"
22396 msgstr ""
22397
22398 #. type: verbatim
22399 #: ../fish/guestfish-actions.pod:468
22400 #, no-wrap
22401 msgid ""
22402 " blockdev-getro device\n"
22403 "\n"
22404 msgstr ""
22405
22406 #. type: =head2
22407 #: ../fish/guestfish-actions.pod:475
22408 msgid "blockdev-getsize64"
22409 msgstr ""
22410
22411 #. type: verbatim
22412 #: ../fish/guestfish-actions.pod:477
22413 #, no-wrap
22414 msgid ""
22415 " blockdev-getsize64 device\n"
22416 "\n"
22417 msgstr ""
22418
22419 #. type: textblock
22420 #: ../fish/guestfish-actions.pod:481
22421 msgid "See also L</blockdev-getsz>."
22422 msgstr ""
22423
22424 #. type: =head2
22425 #: ../fish/guestfish-actions.pod:485
22426 msgid "blockdev-getss"
22427 msgstr ""
22428
22429 #. type: verbatim
22430 #: ../fish/guestfish-actions.pod:487
22431 #, no-wrap
22432 msgid ""
22433 " blockdev-getss device\n"
22434 "\n"
22435 msgstr ""
22436
22437 #. type: textblock
22438 #: ../fish/guestfish-actions.pod:492
22439 msgid ""
22440 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
22441 msgstr ""
22442
22443 #. type: =head2
22444 #: ../fish/guestfish-actions.pod:497
22445 msgid "blockdev-getsz"
22446 msgstr ""
22447
22448 #. type: verbatim
22449 #: ../fish/guestfish-actions.pod:499
22450 #, no-wrap
22451 msgid ""
22452 " blockdev-getsz device\n"
22453 "\n"
22454 msgstr ""
22455
22456 #. type: textblock
22457 #: ../fish/guestfish-actions.pod:504
22458 msgid ""
22459 "See also L</blockdev-getss> for the real sector size of the device, and L</"
22460 "blockdev-getsize64> for the more useful I<size in bytes>."
22461 msgstr ""
22462
22463 #. type: =head2
22464 #: ../fish/guestfish-actions.pod:510
22465 msgid "blockdev-rereadpt"
22466 msgstr ""
22467
22468 #. type: verbatim
22469 #: ../fish/guestfish-actions.pod:512
22470 #, no-wrap
22471 msgid ""
22472 " blockdev-rereadpt device\n"
22473 "\n"
22474 msgstr ""
22475
22476 #. type: =head2
22477 #: ../fish/guestfish-actions.pod:518
22478 msgid "blockdev-setbsz"
22479 msgstr ""
22480
22481 #. type: verbatim
22482 #: ../fish/guestfish-actions.pod:520
22483 #, no-wrap
22484 msgid ""
22485 " blockdev-setbsz device blocksize\n"
22486 "\n"
22487 msgstr ""
22488
22489 #. type: =head2
22490 #: ../fish/guestfish-actions.pod:529
22491 msgid "blockdev-setro"
22492 msgstr ""
22493
22494 #. type: verbatim
22495 #: ../fish/guestfish-actions.pod:531
22496 #, no-wrap
22497 msgid ""
22498 " blockdev-setro device\n"
22499 "\n"
22500 msgstr ""
22501
22502 #. type: =head2
22503 #: ../fish/guestfish-actions.pod:537
22504 msgid "blockdev-setrw"
22505 msgstr ""
22506
22507 #. type: verbatim
22508 #: ../fish/guestfish-actions.pod:539
22509 #, no-wrap
22510 msgid ""
22511 " blockdev-setrw device\n"
22512 "\n"
22513 msgstr ""
22514
22515 #. type: =head2
22516 #: ../fish/guestfish-actions.pod:545
22517 msgid "case-sensitive-path"
22518 msgstr ""
22519
22520 #. type: verbatim
22521 #: ../fish/guestfish-actions.pod:547
22522 #, no-wrap
22523 msgid ""
22524 " case-sensitive-path path\n"
22525 "\n"
22526 msgstr ""
22527
22528 #. type: textblock
22529 #: ../fish/guestfish-actions.pod:571
22530 msgid ""
22531 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
22532 "WINDOWS/system32\"> (the exact return value would depend on details of how "
22533 "the directories were originally created under Windows)."
22534 msgstr ""
22535
22536 #. type: textblock
22537 #: ../fish/guestfish-actions.pod:579
22538 msgid "See also L</realpath>."
22539 msgstr ""
22540
22541 #. type: =head2
22542 #: ../fish/guestfish-actions.pod:581
22543 msgid "cat"
22544 msgstr ""
22545
22546 #. type: verbatim
22547 #: ../fish/guestfish-actions.pod:583
22548 #, no-wrap
22549 msgid ""
22550 " cat path\n"
22551 "\n"
22552 msgstr ""
22553
22554 #. type: textblock
22555 #: ../fish/guestfish-actions.pod:587
22556 msgid ""
22557 "Note that this function cannot correctly handle binary files (specifically, "
22558 "files containing C<\\0> character which is treated as end of string).  For "
22559 "those you need to use the L</read-file> or L</download> functions which have "
22560 "a more complex interface."
22561 msgstr ""
22562
22563 #. type: =head2
22564 #: ../fish/guestfish-actions.pod:595
22565 msgid "checksum"
22566 msgstr ""
22567
22568 #. type: verbatim
22569 #: ../fish/guestfish-actions.pod:597
22570 #, no-wrap
22571 msgid ""
22572 " checksum csumtype path\n"
22573 "\n"
22574 msgstr ""
22575
22576 #. type: textblock
22577 #: ../fish/guestfish-actions.pod:640
22578 msgid "To get the checksum for a device, use L</checksum-device>."
22579 msgstr ""
22580
22581 #. type: textblock
22582 #: ../fish/guestfish-actions.pod:642
22583 msgid "To get the checksums for many files, use L</checksums-out>."
22584 msgstr ""
22585
22586 #. type: =head2
22587 #: ../fish/guestfish-actions.pod:644
22588 msgid "checksum-device"
22589 msgstr ""
22590
22591 #. type: verbatim
22592 #: ../fish/guestfish-actions.pod:646
22593 #, no-wrap
22594 msgid ""
22595 " checksum-device csumtype device\n"
22596 "\n"
22597 msgstr ""
22598
22599 #. type: textblock
22600 #: ../fish/guestfish-actions.pod:648
22601 msgid ""
22602 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22603 "device named C<device>.  For the types of checksums supported see the L</"
22604 "checksum> command."
22605 msgstr ""
22606
22607 #. type: =head2
22608 #: ../fish/guestfish-actions.pod:652
22609 msgid "checksums-out"
22610 msgstr ""
22611
22612 #. type: verbatim
22613 #: ../fish/guestfish-actions.pod:654
22614 #, no-wrap
22615 msgid ""
22616 " checksums-out csumtype directory (sumsfile|-)\n"
22617 "\n"
22618 msgstr ""
22619
22620 #. type: =head2
22621 #: ../fish/guestfish-actions.pod:670
22622 msgid "chmod"
22623 msgstr ""
22624
22625 #. type: verbatim
22626 #: ../fish/guestfish-actions.pod:672
22627 #, no-wrap
22628 msgid ""
22629 " chmod mode path\n"
22630 "\n"
22631 msgstr ""
22632
22633 #. type: =head2
22634 #: ../fish/guestfish-actions.pod:683
22635 msgid "chown"
22636 msgstr ""
22637
22638 #. type: verbatim
22639 #: ../fish/guestfish-actions.pod:685
22640 #, no-wrap
22641 msgid ""
22642 " chown owner group path\n"
22643 "\n"
22644 msgstr ""
22645
22646 #. type: =head2
22647 #: ../fish/guestfish-actions.pod:693
22648 msgid "command"
22649 msgstr ""
22650
22651 #. type: verbatim
22652 #: ../fish/guestfish-actions.pod:695
22653 #, no-wrap
22654 msgid ""
22655 " command 'arguments ...'\n"
22656 "\n"
22657 msgstr ""
22658
22659 #. type: textblock
22660 #: ../fish/guestfish-actions.pod:702
22661 msgid ""
22662 "The single parameter is an argv-style list of arguments.  The first element "
22663 "is the name of the program to run.  Subsequent elements are parameters.  The "
22664 "list must be non-empty (ie. must contain a program name).  Note that the "
22665 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
22666 msgstr ""
22667
22668 #. type: =head2
22669 #: ../fish/guestfish-actions.pod:730
22670 msgid "command-lines"
22671 msgstr ""
22672
22673 #. type: verbatim
22674 #: ../fish/guestfish-actions.pod:732
22675 #, no-wrap
22676 msgid ""
22677 " command-lines 'arguments ...'\n"
22678 "\n"
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../fish/guestfish-actions.pod:734
22683 msgid ""
22684 "This is the same as L</command>, but splits the result into a list of lines."
22685 msgstr ""
22686
22687 #. type: textblock
22688 #: ../fish/guestfish-actions.pod:737
22689 msgid "See also: L</sh-lines>"
22690 msgstr ""
22691
22692 #. type: =head2
22693 #: ../fish/guestfish-actions.pod:742
22694 msgid "config"
22695 msgstr ""
22696
22697 #. type: verbatim
22698 #: ../fish/guestfish-actions.pod:744
22699 #, no-wrap
22700 msgid ""
22701 " config qemuparam qemuvalue\n"
22702 "\n"
22703 msgstr ""
22704
22705 #. type: =head2
22706 #: ../fish/guestfish-actions.pod:755
22707 msgid "copy-size"
22708 msgstr ""
22709
22710 #. type: verbatim
22711 #: ../fish/guestfish-actions.pod:757
22712 #, no-wrap
22713 msgid ""
22714 " copy-size src dest size\n"
22715 "\n"
22716 msgstr ""
22717
22718 #. type: =head2
22719 #: ../fish/guestfish-actions.pod:765
22720 msgid "cp"
22721 msgstr ""
22722
22723 #. type: verbatim
22724 #: ../fish/guestfish-actions.pod:767
22725 #, no-wrap
22726 msgid ""
22727 " cp src dest\n"
22728 "\n"
22729 msgstr ""
22730
22731 #. type: =head2
22732 #: ../fish/guestfish-actions.pod:772
22733 msgid "cp-a"
22734 msgstr ""
22735
22736 #. type: verbatim
22737 #: ../fish/guestfish-actions.pod:774
22738 #, no-wrap
22739 msgid ""
22740 " cp-a src dest\n"
22741 "\n"
22742 msgstr ""
22743
22744 #. type: =head2
22745 #: ../fish/guestfish-actions.pod:779
22746 msgid "dd"
22747 msgstr ""
22748
22749 #. type: verbatim
22750 #: ../fish/guestfish-actions.pod:781
22751 #, no-wrap
22752 msgid ""
22753 " dd src dest\n"
22754 "\n"
22755 msgstr ""
22756
22757 #. type: textblock
22758 #: ../fish/guestfish-actions.pod:788
22759 msgid ""
22760 "If the destination is a device, it must be as large or larger than the "
22761 "source file or device, otherwise the copy will fail.  This command cannot do "
22762 "partial copies (see L</copy-size>)."
22763 msgstr ""
22764
22765 #. type: =head2
22766 #: ../fish/guestfish-actions.pod:792
22767 msgid "df"
22768 msgstr ""
22769
22770 #. type: verbatim
22771 #: ../fish/guestfish-actions.pod:794
22772 #, no-wrap
22773 msgid ""
22774 " df\n"
22775 "\n"
22776 msgstr ""
22777
22778 #. type: textblock
22779 #: ../fish/guestfish-actions.pod:798 ../fish/guestfish-actions.pod:809
22780 msgid ""
22781 "This command is mostly useful for interactive sessions.  It is I<not> "
22782 "intended that you try to parse the output string.  Use L</statvfs> from "
22783 "programs."
22784 msgstr ""
22785
22786 #. type: =head2
22787 #: ../fish/guestfish-actions.pod:802
22788 msgid "df-h"
22789 msgstr ""
22790
22791 #. type: verbatim
22792 #: ../fish/guestfish-actions.pod:804
22793 #, no-wrap
22794 msgid ""
22795 " df-h\n"
22796 "\n"
22797 msgstr ""
22798
22799 #. type: =head2
22800 #: ../fish/guestfish-actions.pod:813
22801 msgid "dmesg"
22802 msgstr ""
22803
22804 #. type: verbatim
22805 #: ../fish/guestfish-actions.pod:815
22806 #, no-wrap
22807 msgid ""
22808 " dmesg\n"
22809 "\n"
22810 msgstr ""
22811
22812 #. type: textblock
22813 #: ../fish/guestfish-actions.pod:821
22814 msgid ""
22815 "Another way to get the same information is to enable verbose messages with "
22816 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
22817 "before running the program."
22818 msgstr ""
22819
22820 #. type: =head2
22821 #: ../fish/guestfish-actions.pod:826
22822 msgid "download"
22823 msgstr ""
22824
22825 #. type: verbatim
22826 #: ../fish/guestfish-actions.pod:828
22827 #, no-wrap
22828 msgid ""
22829 " download remotefilename (filename|-)\n"
22830 "\n"
22831 msgstr ""
22832
22833 #. type: textblock
22834 #: ../fish/guestfish-actions.pod:835
22835 msgid "See also L</upload>, L</cat>."
22836 msgstr ""
22837
22838 #. type: =head2
22839 #: ../fish/guestfish-actions.pod:839
22840 msgid "download-offset"
22841 msgstr ""
22842
22843 #. type: verbatim
22844 #: ../fish/guestfish-actions.pod:841
22845 #, no-wrap
22846 msgid ""
22847 " download-offset remotefilename (filename|-) offset size\n"
22848 "\n"
22849 msgstr ""
22850
22851 #. type: textblock
22852 #: ../fish/guestfish-actions.pod:849
22853 msgid ""
22854 "Note that there is no limit on the amount of data that can be downloaded "
22855 "with this call, unlike with L</pread>, and this call always reads the full "
22856 "amount unless an error occurs."
22857 msgstr ""
22858
22859 #. type: textblock
22860 #: ../fish/guestfish-actions.pod:854
22861 msgid "See also L</download>, L</pread>."
22862 msgstr ""
22863
22864 #. type: =head2
22865 #: ../fish/guestfish-actions.pod:858
22866 msgid "drop-caches"
22867 msgstr ""
22868
22869 #. type: verbatim
22870 #: ../fish/guestfish-actions.pod:860
22871 #, no-wrap
22872 msgid ""
22873 " drop-caches whattodrop\n"
22874 "\n"
22875 msgstr ""
22876
22877 #. type: =head2
22878 #: ../fish/guestfish-actions.pod:872
22879 msgid "du"
22880 msgstr ""
22881
22882 #. type: verbatim
22883 #: ../fish/guestfish-actions.pod:874
22884 #, no-wrap
22885 msgid ""
22886 " du path\n"
22887 "\n"
22888 msgstr ""
22889
22890 #. type: =head2
22891 #: ../fish/guestfish-actions.pod:886
22892 msgid "e2fsck-f"
22893 msgstr ""
22894
22895 #. type: verbatim
22896 #: ../fish/guestfish-actions.pod:888
22897 #, no-wrap
22898 msgid ""
22899 " e2fsck-f device\n"
22900 "\n"
22901 msgstr ""
22902
22903 #. type: textblock
22904 #: ../fish/guestfish-actions.pod:894
22905 msgid ""
22906 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
22907 "should use L</fsck>."
22908 msgstr ""
22909
22910 #. type: =head2
22911 #: ../fish/guestfish-actions.pod:897
22912 msgid "echo-daemon"
22913 msgstr ""
22914
22915 #. type: verbatim
22916 #: ../fish/guestfish-actions.pod:899
22917 #, no-wrap
22918 msgid ""
22919 " echo-daemon 'words ...'\n"
22920 "\n"
22921 msgstr ""
22922
22923 #. type: textblock
22924 #: ../fish/guestfish-actions.pod:906
22925 msgid "See also L</ping-daemon>."
22926 msgstr ""
22927
22928 #. type: =head2
22929 #: ../fish/guestfish-actions.pod:908
22930 msgid "egrep"
22931 msgstr ""
22932
22933 #. type: verbatim
22934 #: ../fish/guestfish-actions.pod:910
22935 #, no-wrap
22936 msgid ""
22937 " egrep regex path\n"
22938 "\n"
22939 msgstr ""
22940
22941 #. type: =head2
22942 #: ../fish/guestfish-actions.pod:918
22943 msgid "egrepi"
22944 msgstr ""
22945
22946 #. type: verbatim
22947 #: ../fish/guestfish-actions.pod:920
22948 #, no-wrap
22949 msgid ""
22950 " egrepi regex path\n"
22951 "\n"
22952 msgstr ""
22953
22954 #. type: =head2
22955 #: ../fish/guestfish-actions.pod:928
22956 msgid "equal"
22957 msgstr ""
22958
22959 #. type: verbatim
22960 #: ../fish/guestfish-actions.pod:930
22961 #, no-wrap
22962 msgid ""
22963 " equal file1 file2\n"
22964 "\n"
22965 msgstr ""
22966
22967 #. type: =head2
22968 #: ../fish/guestfish-actions.pod:937
22969 msgid "exists"
22970 msgstr ""
22971
22972 #. type: verbatim
22973 #: ../fish/guestfish-actions.pod:939
22974 #, no-wrap
22975 msgid ""
22976 " exists path\n"
22977 "\n"
22978 msgstr ""
22979
22980 #. type: textblock
22981 #: ../fish/guestfish-actions.pod:944
22982 msgid "See also L</is-file>, L</is-dir>, L</stat>."
22983 msgstr ""
22984
22985 #. type: =head2
22986 #: ../fish/guestfish-actions.pod:946
22987 msgid "fallocate"
22988 msgstr ""
22989
22990 #. type: verbatim
22991 #: ../fish/guestfish-actions.pod:948
22992 #, no-wrap
22993 msgid ""
22994 " fallocate path len\n"
22995 "\n"
22996 msgstr ""
22997
22998 #. type: =head2
22999 #: ../fish/guestfish-actions.pod:965
23000 msgid "fallocate64"
23001 msgstr ""
23002
23003 #. type: verbatim
23004 #: ../fish/guestfish-actions.pod:967
23005 #, no-wrap
23006 msgid ""
23007 " fallocate64 path len\n"
23008 "\n"
23009 msgstr ""
23010
23011 #. type: textblock
23012 #: ../fish/guestfish-actions.pod:973
23013 msgid ""
23014 "Note that this call allocates disk blocks for the file.  To create a sparse "
23015 "file use L</truncate-size> instead."
23016 msgstr ""
23017
23018 #. type: textblock
23019 #: ../fish/guestfish-actions.pod:976
23020 msgid ""
23021 "The deprecated call L</fallocate> does the same, but owing to an oversight "
23022 "it only allowed 30 bit lengths to be specified, effectively limiting the "
23023 "maximum size of files created through that call to 1GB."
23024 msgstr ""
23025
23026 #. type: =head2
23027 #: ../fish/guestfish-actions.pod:985
23028 msgid "fgrep"
23029 msgstr ""
23030
23031 #. type: verbatim
23032 #: ../fish/guestfish-actions.pod:987
23033 #, no-wrap
23034 msgid ""
23035 " fgrep pattern path\n"
23036 "\n"
23037 msgstr ""
23038
23039 #. type: =head2
23040 #: ../fish/guestfish-actions.pod:995
23041 msgid "fgrepi"
23042 msgstr ""
23043
23044 #. type: verbatim
23045 #: ../fish/guestfish-actions.pod:997
23046 #, no-wrap
23047 msgid ""
23048 " fgrepi pattern path\n"
23049 "\n"
23050 msgstr ""
23051
23052 #. type: =head2
23053 #: ../fish/guestfish-actions.pod:1005
23054 msgid "file"
23055 msgstr ""
23056
23057 #. type: verbatim
23058 #: ../fish/guestfish-actions.pod:1007
23059 #, no-wrap
23060 msgid ""
23061 " file path\n"
23062 "\n"
23063 msgstr ""
23064
23065 #. type: textblock
23066 #: ../fish/guestfish-actions.pod:1019
23067 msgid ""
23068 "This command can also be used on C</dev/> devices (and partitions, LV "
23069 "names).  You can for example use this to determine if a device contains a "
23070 "filesystem, although it's usually better to use L</vfs-type>."
23071 msgstr ""
23072
23073 #. type: =head2
23074 #: ../fish/guestfish-actions.pod:1029
23075 msgid "file-architecture"
23076 msgstr ""
23077
23078 #. type: verbatim
23079 #: ../fish/guestfish-actions.pod:1031
23080 #, no-wrap
23081 msgid ""
23082 " file-architecture filename\n"
23083 "\n"
23084 msgstr ""
23085
23086 #. type: =head2
23087 #: ../fish/guestfish-actions.pod:1134
23088 msgid "filesize"
23089 msgstr ""
23090
23091 #. type: verbatim
23092 #: ../fish/guestfish-actions.pod:1136
23093 #, no-wrap
23094 msgid ""
23095 " filesize file\n"
23096 "\n"
23097 msgstr ""
23098
23099 #. type: textblock
23100 #: ../fish/guestfish-actions.pod:1140
23101 msgid ""
23102 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
23103 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
23104 msgstr ""
23105
23106 #. type: =head2
23107 #: ../fish/guestfish-actions.pod:1144
23108 msgid "fill"
23109 msgstr ""
23110
23111 #. type: verbatim
23112 #: ../fish/guestfish-actions.pod:1146
23113 #, no-wrap
23114 msgid ""
23115 " fill c len path\n"
23116 "\n"
23117 msgstr ""
23118
23119 #. type: textblock
23120 #: ../fish/guestfish-actions.pod:1152
23121 msgid ""
23122 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23123 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
23124 "L</fill-pattern>."
23125 msgstr ""
23126
23127 #. type: =head2
23128 #: ../fish/guestfish-actions.pod:1157
23129 msgid "fill-pattern"
23130 msgstr ""
23131
23132 #. type: verbatim
23133 #: ../fish/guestfish-actions.pod:1159
23134 #, no-wrap
23135 msgid ""
23136 " fill-pattern pattern len path\n"
23137 "\n"
23138 msgstr ""
23139
23140 #. type: textblock
23141 #: ../fish/guestfish-actions.pod:1161
23142 msgid ""
23143 "This function is like L</fill> except that it creates a new file of length "
23144 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
23145 "is truncated if necessary to ensure the length of the file is exactly C<len> "
23146 "bytes."
23147 msgstr ""
23148
23149 #. type: =head2
23150 #: ../fish/guestfish-actions.pod:1166
23151 msgid "find"
23152 msgstr ""
23153
23154 #. type: verbatim
23155 #: ../fish/guestfish-actions.pod:1168
23156 #, no-wrap
23157 msgid ""
23158 " find directory\n"
23159 "\n"
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../fish/guestfish-actions.pod:1182
23164 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
23165 msgstr ""
23166
23167 #. type: textblock
23168 #: ../fish/guestfish-actions.pod:1195
23169 msgid "See also L</find0>."
23170 msgstr ""
23171
23172 #. type: =head2
23173 #: ../fish/guestfish-actions.pod:1200
23174 msgid "find0"
23175 msgstr ""
23176
23177 #. type: verbatim
23178 #: ../fish/guestfish-actions.pod:1202
23179 #, no-wrap
23180 msgid ""
23181 " find0 directory (files|-)\n"
23182 "\n"
23183 msgstr ""
23184
23185 #. type: textblock
23186 #: ../fish/guestfish-actions.pod:1208
23187 msgid ""
23188 "This command works the same way as L</find> with the following exceptions:"
23189 msgstr ""
23190
23191 #. type: =head2
23192 #: ../fish/guestfish-actions.pod:1235
23193 msgid "findfs-label"
23194 msgstr ""
23195
23196 #. type: verbatim
23197 #: ../fish/guestfish-actions.pod:1237
23198 #, no-wrap
23199 msgid ""
23200 " findfs-label label\n"
23201 "\n"
23202 msgstr ""
23203
23204 #. type: textblock
23205 #: ../fish/guestfish-actions.pod:1243
23206 msgid "To find the label of a filesystem, use L</vfs-label>."
23207 msgstr ""
23208
23209 #. type: =head2
23210 #: ../fish/guestfish-actions.pod:1245
23211 msgid "findfs-uuid"
23212 msgstr ""
23213
23214 #. type: verbatim
23215 #: ../fish/guestfish-actions.pod:1247
23216 #, no-wrap
23217 msgid ""
23218 " findfs-uuid uuid\n"
23219 "\n"
23220 msgstr ""
23221
23222 #. type: textblock
23223 #: ../fish/guestfish-actions.pod:1253
23224 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
23225 msgstr ""
23226
23227 #. type: =head2
23228 #: ../fish/guestfish-actions.pod:1255
23229 msgid "fsck"
23230 msgstr ""
23231
23232 #. type: verbatim
23233 #: ../fish/guestfish-actions.pod:1257
23234 #, no-wrap
23235 msgid ""
23236 " fsck fstype device\n"
23237 "\n"
23238 msgstr ""
23239
23240 #. type: =head2
23241 #: ../fish/guestfish-actions.pod:1287
23242 msgid "get-append"
23243 msgstr ""
23244
23245 #. type: verbatim
23246 #: ../fish/guestfish-actions.pod:1289
23247 #, no-wrap
23248 msgid ""
23249 " get-append\n"
23250 "\n"
23251 msgstr ""
23252
23253 #. type: =head2
23254 #: ../fish/guestfish-actions.pod:1296
23255 msgid "get-attach-method"
23256 msgstr ""
23257
23258 #. type: verbatim
23259 #: ../fish/guestfish-actions.pod:1298
23260 #, no-wrap
23261 msgid ""
23262 " get-attach-method\n"
23263 "\n"
23264 msgstr ""
23265
23266 #. type: textblock
23267 #: ../fish/guestfish-actions.pod:1300
23268 msgid "Return the current attach method.  See L</set-attach-method>."
23269 msgstr ""
23270
23271 #. type: =head2
23272 #: ../fish/guestfish-actions.pod:1302
23273 msgid "get-autosync"
23274 msgstr ""
23275
23276 #. type: verbatim
23277 #: ../fish/guestfish-actions.pod:1304
23278 #, no-wrap
23279 msgid ""
23280 " get-autosync\n"
23281 "\n"
23282 msgstr ""
23283
23284 #. type: =head2
23285 #: ../fish/guestfish-actions.pod:1308
23286 msgid "get-direct"
23287 msgstr ""
23288
23289 #. type: verbatim
23290 #: ../fish/guestfish-actions.pod:1310
23291 #, no-wrap
23292 msgid ""
23293 " get-direct\n"
23294 "\n"
23295 msgstr ""
23296
23297 #. type: =head2
23298 #: ../fish/guestfish-actions.pod:1314
23299 msgid "get-e2label"
23300 msgstr ""
23301
23302 #. type: verbatim
23303 #: ../fish/guestfish-actions.pod:1316
23304 #, no-wrap
23305 msgid ""
23306 " get-e2label device\n"
23307 "\n"
23308 msgstr ""
23309
23310 #. type: =head2
23311 #: ../fish/guestfish-actions.pod:1328
23312 msgid "get-e2uuid"
23313 msgstr ""
23314
23315 #. type: verbatim
23316 #: ../fish/guestfish-actions.pod:1330
23317 #, no-wrap
23318 msgid ""
23319 " get-e2uuid device\n"
23320 "\n"
23321 msgstr ""
23322
23323 #. type: =head2
23324 #: ../fish/guestfish-actions.pod:1342
23325 msgid "get-memsize"
23326 msgstr ""
23327
23328 #. type: verbatim
23329 #: ../fish/guestfish-actions.pod:1344
23330 #, no-wrap
23331 msgid ""
23332 " get-memsize\n"
23333 "\n"
23334 msgstr ""
23335
23336 #. type: textblock
23337 #: ../fish/guestfish-actions.pod:1349
23338 msgid ""
23339 "If L</set-memsize> was not called on this handle, and if "
23340 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23341 "value for memsize."
23342 msgstr ""
23343
23344 #. type: =head2
23345 #: ../fish/guestfish-actions.pod:1356
23346 msgid "get-network"
23347 msgstr ""
23348
23349 #. type: verbatim
23350 #: ../fish/guestfish-actions.pod:1358
23351 #, no-wrap
23352 msgid ""
23353 " get-network\n"
23354 "\n"
23355 msgstr ""
23356
23357 #. type: =head2
23358 #: ../fish/guestfish-actions.pod:1362
23359 msgid "get-path"
23360 msgstr ""
23361
23362 #. type: verbatim
23363 #: ../fish/guestfish-actions.pod:1364
23364 #, no-wrap
23365 msgid ""
23366 " get-path\n"
23367 "\n"
23368 msgstr ""
23369
23370 #. type: =head2
23371 #: ../fish/guestfish-actions.pod:1371
23372 msgid "get-pid"
23373 msgstr ""
23374
23375 #. type: =head2
23376 #: ../fish/guestfish-actions.pod:1373
23377 msgid "pid"
23378 msgstr ""
23379
23380 #. type: verbatim
23381 #: ../fish/guestfish-actions.pod:1375
23382 #, no-wrap
23383 msgid ""
23384 " get-pid\n"
23385 "\n"
23386 msgstr ""
23387
23388 #. type: =head2
23389 #: ../fish/guestfish-actions.pod:1382
23390 msgid "get-qemu"
23391 msgstr ""
23392
23393 #. type: verbatim
23394 #: ../fish/guestfish-actions.pod:1384
23395 #, no-wrap
23396 msgid ""
23397 " get-qemu\n"
23398 "\n"
23399 msgstr ""
23400
23401 #. type: =head2
23402 #: ../fish/guestfish-actions.pod:1391
23403 msgid "get-recovery-proc"
23404 msgstr ""
23405
23406 #. type: verbatim
23407 #: ../fish/guestfish-actions.pod:1393
23408 #, no-wrap
23409 msgid ""
23410 " get-recovery-proc\n"
23411 "\n"
23412 msgstr ""
23413
23414 #. type: =head2
23415 #: ../fish/guestfish-actions.pod:1397
23416 msgid "get-selinux"
23417 msgstr ""
23418
23419 #. type: verbatim
23420 #: ../fish/guestfish-actions.pod:1399
23421 #, no-wrap
23422 msgid ""
23423 " get-selinux\n"
23424 "\n"
23425 msgstr ""
23426
23427 #. type: textblock
23428 #: ../fish/guestfish-actions.pod:1401
23429 msgid ""
23430 "This returns the current setting of the selinux flag which is passed to the "
23431 "appliance at boot time.  See L</set-selinux>."
23432 msgstr ""
23433
23434 #. type: =head2
23435 #: ../fish/guestfish-actions.pod:1407
23436 msgid "get-state"
23437 msgstr ""
23438
23439 #. type: verbatim
23440 #: ../fish/guestfish-actions.pod:1409
23441 #, no-wrap
23442 msgid ""
23443 " get-state\n"
23444 "\n"
23445 msgstr ""
23446
23447 #. type: =head2
23448 #: ../fish/guestfish-actions.pod:1416
23449 msgid "get-trace"
23450 msgstr ""
23451
23452 #. type: verbatim
23453 #: ../fish/guestfish-actions.pod:1418
23454 #, no-wrap
23455 msgid ""
23456 " get-trace\n"
23457 "\n"
23458 msgstr ""
23459
23460 #. type: =head2
23461 #: ../fish/guestfish-actions.pod:1422
23462 msgid "get-umask"
23463 msgstr ""
23464
23465 #. type: verbatim
23466 #: ../fish/guestfish-actions.pod:1424
23467 #, no-wrap
23468 msgid ""
23469 " get-umask\n"
23470 "\n"
23471 msgstr ""
23472
23473 #. type: textblock
23474 #: ../fish/guestfish-actions.pod:1426
23475 msgid ""
23476 "Return the current umask.  By default the umask is C<022> unless it has been "
23477 "set by calling L</umask>."
23478 msgstr ""
23479
23480 #. type: =head2
23481 #: ../fish/guestfish-actions.pod:1429
23482 msgid "get-verbose"
23483 msgstr ""
23484
23485 #. type: verbatim
23486 #: ../fish/guestfish-actions.pod:1431
23487 #, no-wrap
23488 msgid ""
23489 " get-verbose\n"
23490 "\n"
23491 msgstr ""
23492
23493 #. type: =head2
23494 #: ../fish/guestfish-actions.pod:1435
23495 msgid "getcon"
23496 msgstr ""
23497
23498 #. type: verbatim
23499 #: ../fish/guestfish-actions.pod:1437
23500 #, no-wrap
23501 msgid ""
23502 " getcon\n"
23503 "\n"
23504 msgstr ""
23505
23506 #. type: textblock
23507 #: ../fish/guestfish-actions.pod:1441
23508 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
23509 msgstr ""
23510
23511 #. type: =head2
23512 #: ../fish/guestfish-actions.pod:1444
23513 msgid "getxattr"
23514 msgstr ""
23515
23516 #. type: verbatim
23517 #: ../fish/guestfish-actions.pod:1446
23518 #, no-wrap
23519 msgid ""
23520 " getxattr path name\n"
23521 "\n"
23522 msgstr ""
23523
23524 #. type: textblock
23525 #: ../fish/guestfish-actions.pod:1448
23526 msgid ""
23527 "Get a single extended attribute from file C<path> named C<name>.  This call "
23528 "follows symlinks.  If you want to lookup an extended attribute for the "
23529 "symlink itself, use L</lgetxattr>."
23530 msgstr ""
23531
23532 #. type: textblock
23533 #: ../fish/guestfish-actions.pod:1452 ../fish/guestfish-actions.pod:2458
23534 msgid ""
23535 "Normally it is better to get all extended attributes from a file in one go "
23536 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
23537 "buggy and do not provide a way to list out attributes.  For these "
23538 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
23539 "attributes you want in advance and call this function."
23540 msgstr ""
23541
23542 #. type: textblock
23543 #: ../fish/guestfish-actions.pod:1462
23544 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
23545 msgstr ""
23546
23547 #. type: =head2
23548 #: ../fish/guestfish-actions.pod:1464
23549 msgid "getxattrs"
23550 msgstr ""
23551
23552 #. type: verbatim
23553 #: ../fish/guestfish-actions.pod:1466
23554 #, no-wrap
23555 msgid ""
23556 " getxattrs path\n"
23557 "\n"
23558 msgstr ""
23559
23560 #. type: textblock
23561 #: ../fish/guestfish-actions.pod:1474
23562 msgid "See also: L</lgetxattrs>, L<attr(5)>."
23563 msgstr ""
23564
23565 #. type: =head2
23566 #: ../fish/guestfish-actions.pod:1476
23567 msgid "glob-expand"
23568 msgstr ""
23569
23570 #. type: verbatim
23571 #: ../fish/guestfish-actions.pod:1478
23572 #, no-wrap
23573 msgid ""
23574 " glob-expand pattern\n"
23575 "\n"
23576 msgstr ""
23577
23578 #. type: =head2
23579 #: ../fish/guestfish-actions.pod:1491
23580 msgid "grep"
23581 msgstr ""
23582
23583 #. type: verbatim
23584 #: ../fish/guestfish-actions.pod:1493
23585 #, no-wrap
23586 msgid ""
23587 " grep regex path\n"
23588 "\n"
23589 msgstr ""
23590
23591 #. type: =head2
23592 #: ../fish/guestfish-actions.pod:1501
23593 msgid "grepi"
23594 msgstr ""
23595
23596 #. type: verbatim
23597 #: ../fish/guestfish-actions.pod:1503
23598 #, no-wrap
23599 msgid ""
23600 " grepi regex path\n"
23601 "\n"
23602 msgstr ""
23603
23604 #. type: =head2
23605 #: ../fish/guestfish-actions.pod:1511
23606 msgid "grub-install"
23607 msgstr ""
23608
23609 #. type: verbatim
23610 #: ../fish/guestfish-actions.pod:1513
23611 #, no-wrap
23612 msgid ""
23613 " grub-install root device\n"
23614 "\n"
23615 msgstr ""
23616
23617 #. type: =head2
23618 #: ../fish/guestfish-actions.pod:1529
23619 msgid "head"
23620 msgstr ""
23621
23622 #. type: verbatim
23623 #: ../fish/guestfish-actions.pod:1531
23624 #, no-wrap
23625 msgid ""
23626 " head path\n"
23627 "\n"
23628 msgstr ""
23629
23630 #. type: =head2
23631 #: ../fish/guestfish-actions.pod:1539
23632 msgid "head-n"
23633 msgstr ""
23634
23635 #. type: verbatim
23636 #: ../fish/guestfish-actions.pod:1541
23637 #, no-wrap
23638 msgid ""
23639 " head-n nrlines path\n"
23640 "\n"
23641 msgstr ""
23642
23643 #. type: =head2
23644 #: ../fish/guestfish-actions.pod:1554
23645 msgid "hexdump"
23646 msgstr ""
23647
23648 #. type: verbatim
23649 #: ../fish/guestfish-actions.pod:1556
23650 #, no-wrap
23651 msgid ""
23652 " hexdump path\n"
23653 "\n"
23654 msgstr ""
23655
23656 #. type: =head2
23657 #: ../fish/guestfish-actions.pod:1564
23658 msgid "initrd-cat"
23659 msgstr ""
23660
23661 #. type: verbatim
23662 #: ../fish/guestfish-actions.pod:1566
23663 #, no-wrap
23664 msgid ""
23665 " initrd-cat initrdpath filename\n"
23666 "\n"
23667 msgstr ""
23668
23669 #. type: textblock
23670 #: ../fish/guestfish-actions.pod:1578
23671 msgid "See also L</initrd-list>."
23672 msgstr ""
23673
23674 #. type: =head2
23675 #: ../fish/guestfish-actions.pod:1583
23676 msgid "initrd-list"
23677 msgstr ""
23678
23679 #. type: verbatim
23680 #: ../fish/guestfish-actions.pod:1585
23681 #, no-wrap
23682 msgid ""
23683 " initrd-list path\n"
23684 "\n"
23685 msgstr ""
23686
23687 #. type: =head2
23688 #: ../fish/guestfish-actions.pod:1597
23689 msgid "inotify-add-watch"
23690 msgstr ""
23691
23692 #. type: verbatim
23693 #: ../fish/guestfish-actions.pod:1599
23694 #, no-wrap
23695 msgid ""
23696 " inotify-add-watch path mask\n"
23697 "\n"
23698 msgstr ""
23699
23700 #. type: =head2
23701 #: ../fish/guestfish-actions.pod:1611
23702 msgid "inotify-close"
23703 msgstr ""
23704
23705 #. type: verbatim
23706 #: ../fish/guestfish-actions.pod:1613
23707 #, no-wrap
23708 msgid ""
23709 " inotify-close\n"
23710 "\n"
23711 msgstr ""
23712
23713 #. type: =head2
23714 #: ../fish/guestfish-actions.pod:1619
23715 msgid "inotify-files"
23716 msgstr ""
23717
23718 #. type: verbatim
23719 #: ../fish/guestfish-actions.pod:1621
23720 #, no-wrap
23721 msgid ""
23722 " inotify-files\n"
23723 "\n"
23724 msgstr ""
23725
23726 #. type: textblock
23727 #: ../fish/guestfish-actions.pod:1623
23728 msgid ""
23729 "This function is a helpful wrapper around L</inotify-read> which just "
23730 "returns a list of pathnames of objects that were touched.  The returned "
23731 "pathnames are sorted and deduplicated."
23732 msgstr ""
23733
23734 #. type: =head2
23735 #: ../fish/guestfish-actions.pod:1627
23736 msgid "inotify-init"
23737 msgstr ""
23738
23739 #. type: verbatim
23740 #: ../fish/guestfish-actions.pod:1629
23741 #, no-wrap
23742 msgid ""
23743 " inotify-init maxevents\n"
23744 "\n"
23745 msgstr ""
23746
23747 #. type: textblock
23748 #: ../fish/guestfish-actions.pod:1635
23749 msgid ""
23750 "C<maxevents> is the maximum number of events which will be queued up between "
23751 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
23752 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
23753 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
23754 "but records the fact that it threw them away by setting a flag "
23755 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
23756 msgstr ""
23757
23758 #. type: textblock
23759 #: ../fish/guestfish-actions.pod:1645
23760 msgid ""
23761 "Before any events are generated, you have to add some watches to the "
23762 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
23763 "L</inotify-watch-all>."
23764 msgstr ""
23765
23766 #. type: textblock
23767 #: ../fish/guestfish-actions.pod:1651
23768 msgid ""
23769 "Queued up events should be read periodically by calling L</inotify-read> (or "
23770 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
23771 "If you don't read the events out often enough then you risk the internal "
23772 "queue overflowing."
23773 msgstr ""
23774
23775 #. type: textblock
23776 #: ../fish/guestfish-actions.pod:1658
23777 msgid ""
23778 "The handle should be closed after use by calling L</inotify-close>.  This "
23779 "also removes any watches automatically."
23780 msgstr ""
23781
23782 #. type: =head2
23783 #: ../fish/guestfish-actions.pod:1667
23784 msgid "inotify-read"
23785 msgstr ""
23786
23787 #. type: verbatim
23788 #: ../fish/guestfish-actions.pod:1669
23789 #, no-wrap
23790 msgid ""
23791 " inotify-read\n"
23792 "\n"
23793 msgstr ""
23794
23795 #. type: =head2
23796 #: ../fish/guestfish-actions.pod:1682
23797 msgid "inotify-rm-watch"
23798 msgstr ""
23799
23800 #. type: verbatim
23801 #: ../fish/guestfish-actions.pod:1684
23802 #, no-wrap
23803 msgid ""
23804 " inotify-rm-watch wd\n"
23805 "\n"
23806 msgstr ""
23807
23808 #. type: textblock
23809 #: ../fish/guestfish-actions.pod:1686
23810 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
23811 msgstr ""
23812
23813 #. type: =head2
23814 #: ../fish/guestfish-actions.pod:1689
23815 msgid "inspect-get-arch"
23816 msgstr ""
23817
23818 #. type: verbatim
23819 #: ../fish/guestfish-actions.pod:1691
23820 #, no-wrap
23821 msgid ""
23822 " inspect-get-arch root\n"
23823 "\n"
23824 msgstr ""
23825
23826 #. type: textblock
23827 #: ../fish/guestfish-actions.pod:1693 ../fish/guestfish-actions.pod:1709
23828 #: ../fish/guestfish-actions.pod:1795 ../fish/guestfish-actions.pod:1831
23829 #: ../fish/guestfish-actions.pod:1849 ../fish/guestfish-actions.pod:1883
23830 #: ../fish/guestfish-actions.pod:1898 ../fish/guestfish-actions.pod:1919
23831 #: ../fish/guestfish-actions.pod:1934 ../fish/guestfish-actions.pod:1967
23832 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2013
23833 #: ../fish/guestfish-actions.pod:2030 ../fish/guestfish-actions.pod:2073
23834 #: ../fish/guestfish-actions.pod:2108 ../fish/guestfish-actions.pod:2124
23835 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2153
23836 #: ../fish/guestfish-actions.pod:2166 ../fish/guestfish-actions.pod:2181
23837 msgid ""
23838 "This function should only be called with a root device string as returned by "
23839 "L</inspect-os>."
23840 msgstr ""
23841
23842 #. type: textblock
23843 #: ../fish/guestfish-actions.pod:1696
23844 msgid ""
23845 "This returns the architecture of the inspected operating system.  The "
23846 "possible return values are listed under L</file-architecture>."
23847 msgstr ""
23848
23849 #. type: =head2
23850 #: ../fish/guestfish-actions.pod:1705
23851 msgid "inspect-get-distro"
23852 msgstr ""
23853
23854 #. type: verbatim
23855 #: ../fish/guestfish-actions.pod:1707
23856 #, no-wrap
23857 msgid ""
23858 " inspect-get-distro root\n"
23859 "\n"
23860 msgstr ""
23861
23862 #. type: =head2
23863 #: ../fish/guestfish-actions.pod:1791
23864 msgid "inspect-get-drive-mappings"
23865 msgstr ""
23866
23867 #. type: verbatim
23868 #: ../fish/guestfish-actions.pod:1793
23869 #, no-wrap
23870 msgid ""
23871 " inspect-get-drive-mappings root\n"
23872 "\n"
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../fish/guestfish-actions.pod:1823
23877 msgid ""
23878 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23879 "get-mountpoints>, L</inspect-get-filesystems>."
23880 msgstr ""
23881
23882 #. type: =head2
23883 #: ../fish/guestfish-actions.pod:1827
23884 msgid "inspect-get-filesystems"
23885 msgstr ""
23886
23887 #. type: verbatim
23888 #: ../fish/guestfish-actions.pod:1829
23889 #, no-wrap
23890 msgid ""
23891 " inspect-get-filesystems root\n"
23892 "\n"
23893 msgstr ""
23894
23895 #. type: textblock
23896 #: ../fish/guestfish-actions.pod:1842
23897 msgid ""
23898 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23899 "get-mountpoints>."
23900 msgstr ""
23901
23902 #. type: =head2
23903 #: ../fish/guestfish-actions.pod:1845
23904 msgid "inspect-get-format"
23905 msgstr ""
23906
23907 #. type: verbatim
23908 #: ../fish/guestfish-actions.pod:1847
23909 #, no-wrap
23910 msgid ""
23911 " inspect-get-format root\n"
23912 "\n"
23913 msgstr ""
23914
23915 #. type: =head2
23916 #: ../fish/guestfish-actions.pod:1879
23917 msgid "inspect-get-hostname"
23918 msgstr ""
23919
23920 #. type: verbatim
23921 #: ../fish/guestfish-actions.pod:1881
23922 #, no-wrap
23923 msgid ""
23924 " inspect-get-hostname root\n"
23925 "\n"
23926 msgstr ""
23927
23928 #. type: =head2
23929 #: ../fish/guestfish-actions.pod:1894
23930 msgid "inspect-get-major-version"
23931 msgstr ""
23932
23933 #. type: verbatim
23934 #: ../fish/guestfish-actions.pod:1896
23935 #, no-wrap
23936 msgid ""
23937 " inspect-get-major-version root\n"
23938 "\n"
23939 msgstr ""
23940
23941 #. type: =head2
23942 #: ../fish/guestfish-actions.pod:1915
23943 msgid "inspect-get-minor-version"
23944 msgstr ""
23945
23946 #. type: verbatim
23947 #: ../fish/guestfish-actions.pod:1917
23948 #, no-wrap
23949 msgid ""
23950 " inspect-get-minor-version root\n"
23951 "\n"
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../fish/guestfish-actions.pod:1927
23956 msgid ""
23957 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23958 "get-major-version>."
23959 msgstr ""
23960
23961 #. type: =head2
23962 #: ../fish/guestfish-actions.pod:1930
23963 msgid "inspect-get-mountpoints"
23964 msgstr ""
23965
23966 #. type: verbatim
23967 #: ../fish/guestfish-actions.pod:1932
23968 #, no-wrap
23969 msgid ""
23970 " inspect-get-mountpoints root\n"
23971 "\n"
23972 msgstr ""
23973
23974 #. type: textblock
23975 #: ../fish/guestfish-actions.pod:1954
23976 msgid ""
23977 "For operating systems like Windows which still use drive letters, this call "
23978 "will only return an entry for the first drive \"mounted on\" C</>.  For "
23979 "information about the mapping of drive letters to partitions, see L</inspect-"
23980 "get-drive-mappings>."
23981 msgstr ""
23982
23983 #. type: textblock
23984 #: ../fish/guestfish-actions.pod:1960
23985 msgid ""
23986 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
23987 "get-filesystems>."
23988 msgstr ""
23989
23990 #. type: =head2
23991 #: ../fish/guestfish-actions.pod:1963
23992 msgid "inspect-get-package-format"
23993 msgstr ""
23994
23995 #. type: verbatim
23996 #: ../fish/guestfish-actions.pod:1965
23997 #, no-wrap
23998 msgid ""
23999 " inspect-get-package-format root\n"
24000 "\n"
24001 msgstr ""
24002
24003 #. type: textblock
24004 #: ../fish/guestfish-actions.pod:1970
24005 msgid ""
24006 "This function and L</inspect-get-package-management> return the package "
24007 "format and package management tool used by the inspected operating system.  "
24008 "For example for Fedora these functions would return C<rpm> (package format) "
24009 "and C<yum> (package management)."
24010 msgstr ""
24011
24012 #. type: =head2
24013 #: ../fish/guestfish-actions.pod:1985
24014 msgid "inspect-get-package-management"
24015 msgstr ""
24016
24017 #. type: verbatim
24018 #: ../fish/guestfish-actions.pod:1987
24019 #, no-wrap
24020 msgid ""
24021 " inspect-get-package-management root\n"
24022 "\n"
24023 msgstr ""
24024
24025 #. type: textblock
24026 #: ../fish/guestfish-actions.pod:1992
24027 msgid ""
24028 "L</inspect-get-package-format> and this function return the package format "
24029 "and package management tool used by the inspected operating system.  For "
24030 "example for Fedora these functions would return C<rpm> (package format) and "
24031 "C<yum> (package management)."
24032 msgstr ""
24033
24034 #. type: =head2
24035 #: ../fish/guestfish-actions.pod:2009
24036 msgid "inspect-get-product-name"
24037 msgstr ""
24038
24039 #. type: verbatim
24040 #: ../fish/guestfish-actions.pod:2011
24041 #, no-wrap
24042 msgid ""
24043 " inspect-get-product-name root\n"
24044 "\n"
24045 msgstr ""
24046
24047 #. type: =head2
24048 #: ../fish/guestfish-actions.pod:2026
24049 msgid "inspect-get-product-variant"
24050 msgstr ""
24051
24052 #. type: verbatim
24053 #: ../fish/guestfish-actions.pod:2028
24054 #, no-wrap
24055 msgid ""
24056 " inspect-get-product-variant root\n"
24057 "\n"
24058 msgstr ""
24059
24060 #. type: textblock
24061 #: ../fish/guestfish-actions.pod:2052
24062 msgid ""
24063 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
24064 "get-product-name>, L</inspect-get-major-version>."
24065 msgstr ""
24066
24067 #. type: =head2
24068 #: ../fish/guestfish-actions.pod:2056
24069 msgid "inspect-get-roots"
24070 msgstr ""
24071
24072 #. type: verbatim
24073 #: ../fish/guestfish-actions.pod:2058
24074 #, no-wrap
24075 msgid ""
24076 " inspect-get-roots\n"
24077 "\n"
24078 msgstr ""
24079
24080 #. type: textblock
24081 #: ../fish/guestfish-actions.pod:2060
24082 msgid ""
24083 "This function is a convenient way to get the list of root devices, as "
24084 "returned from a previous call to L</inspect-os>, but without redoing the "
24085 "whole inspection process."
24086 msgstr ""
24087
24088 #. type: textblock
24089 #: ../fish/guestfish-actions.pod:2064
24090 msgid ""
24091 "This returns an empty list if either no root devices were found or the "
24092 "caller has not called L</inspect-os>."
24093 msgstr ""
24094
24095 #. type: =head2
24096 #: ../fish/guestfish-actions.pod:2069
24097 msgid "inspect-get-type"
24098 msgstr ""
24099
24100 #. type: verbatim
24101 #: ../fish/guestfish-actions.pod:2071
24102 #, no-wrap
24103 msgid ""
24104 " inspect-get-type root\n"
24105 "\n"
24106 msgstr ""
24107
24108 #. type: =head2
24109 #: ../fish/guestfish-actions.pod:2104
24110 msgid "inspect-get-windows-current-control-set"
24111 msgstr ""
24112
24113 #. type: verbatim
24114 #: ../fish/guestfish-actions.pod:2106
24115 #, no-wrap
24116 msgid ""
24117 " inspect-get-windows-current-control-set root\n"
24118 "\n"
24119 msgstr ""
24120
24121 #. type: =head2
24122 #: ../fish/guestfish-actions.pod:2120
24123 msgid "inspect-get-windows-systemroot"
24124 msgstr ""
24125
24126 #. type: verbatim
24127 #: ../fish/guestfish-actions.pod:2122
24128 #, no-wrap
24129 msgid ""
24130 " inspect-get-windows-systemroot root\n"
24131 "\n"
24132 msgstr ""
24133
24134 #. type: =head2
24135 #: ../fish/guestfish-actions.pod:2136
24136 msgid "inspect-is-live"
24137 msgstr ""
24138
24139 #. type: verbatim
24140 #: ../fish/guestfish-actions.pod:2138
24141 #, no-wrap
24142 msgid ""
24143 " inspect-is-live root\n"
24144 "\n"
24145 msgstr ""
24146
24147 #. type: textblock
24148 #: ../fish/guestfish-actions.pod:2143
24149 msgid ""
24150 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24151 "then this returns true if a live image was detected on the disk."
24152 msgstr ""
24153
24154 #. type: =head2
24155 #: ../fish/guestfish-actions.pod:2149
24156 msgid "inspect-is-multipart"
24157 msgstr ""
24158
24159 #. type: verbatim
24160 #: ../fish/guestfish-actions.pod:2151
24161 #, no-wrap
24162 msgid ""
24163 " inspect-is-multipart root\n"
24164 "\n"
24165 msgstr ""
24166
24167 #. type: textblock
24168 #: ../fish/guestfish-actions.pod:2156
24169 msgid ""
24170 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24171 "then this returns true if the disk is part of a set."
24172 msgstr ""
24173
24174 #. type: =head2
24175 #: ../fish/guestfish-actions.pod:2162
24176 msgid "inspect-is-netinst"
24177 msgstr ""
24178
24179 #. type: verbatim
24180 #: ../fish/guestfish-actions.pod:2164
24181 #, no-wrap
24182 msgid ""
24183 " inspect-is-netinst root\n"
24184 "\n"
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../fish/guestfish-actions.pod:2169
24189 msgid ""
24190 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24191 "then this returns true if the disk is a network installer, ie. not a self-"
24192 "contained install CD but one which is likely to require network access to "
24193 "complete the install."
24194 msgstr ""
24195
24196 #. type: =head2
24197 #: ../fish/guestfish-actions.pod:2177
24198 msgid "inspect-list-applications"
24199 msgstr ""
24200
24201 #. type: verbatim
24202 #: ../fish/guestfish-actions.pod:2179
24203 #, no-wrap
24204 msgid ""
24205 " inspect-list-applications root\n"
24206 "\n"
24207 msgstr ""
24208
24209 #. type: textblock
24210 #: ../fish/guestfish-actions.pod:2186
24211 msgid ""
24212 "I<Note:> This call works differently from other parts of the inspection "
24213 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
24214 "then mount up the disks, before calling this.  Listing applications is a "
24215 "significantly more difficult operation which requires access to the full "
24216 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
24217 "are just returning data cached in the libguestfs handle, this call actually "
24218 "reads parts of the mounted filesystems during the call."
24219 msgstr ""
24220
24221 #. type: =head2
24222 #: ../fish/guestfish-actions.pod:2276
24223 msgid "inspect-os"
24224 msgstr ""
24225
24226 #. type: verbatim
24227 #: ../fish/guestfish-actions.pod:2278
24228 #, no-wrap
24229 msgid ""
24230 " inspect-os\n"
24231 "\n"
24232 msgstr ""
24233
24234 #. type: textblock
24235 #: ../fish/guestfish-actions.pod:2293
24236 msgid ""
24237 "You can pass the root string(s) returned to other L</inspect-get-*> "
24238 "functions in order to query further information about each operating system, "
24239 "such as the name and version."
24240 msgstr ""
24241
24242 #. type: textblock
24243 #: ../fish/guestfish-actions.pod:2298
24244 msgid ""
24245 "This function uses other libguestfs features such as L</mount-ro> and L</"
24246 "umount-all> in order to mount and unmount filesystems and look at the "
24247 "contents.  This should be called with no disks currently mounted.  The "
24248 "function may also use Augeas, so any existing Augeas handle will be closed."
24249 msgstr ""
24250
24251 #. type: textblock
24252 #: ../fish/guestfish-actions.pod:2310 ../fish/guestfish-actions.pod:2486
24253 #: ../fish/guestfish-actions.pod:2532
24254 msgid "See also L</list-filesystems>."
24255 msgstr ""
24256
24257 #. type: =head2
24258 #: ../fish/guestfish-actions.pod:2312
24259 msgid "is-blockdev"
24260 msgstr ""
24261
24262 #. type: verbatim
24263 #: ../fish/guestfish-actions.pod:2314
24264 #, no-wrap
24265 msgid ""
24266 " is-blockdev path\n"
24267 "\n"
24268 msgstr ""
24269
24270 #. type: textblock
24271 #: ../fish/guestfish-actions.pod:2319 ../fish/guestfish-actions.pod:2337
24272 #: ../fish/guestfish-actions.pod:2356 ../fish/guestfish-actions.pod:2365
24273 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2409
24274 #: ../fish/guestfish-actions.pod:2418
24275 msgid "See also L</stat>."
24276 msgstr ""
24277
24278 #. type: =head2
24279 #: ../fish/guestfish-actions.pod:2321
24280 msgid "is-busy"
24281 msgstr ""
24282
24283 #. type: verbatim
24284 #: ../fish/guestfish-actions.pod:2323
24285 #, no-wrap
24286 msgid ""
24287 " is-busy\n"
24288 "\n"
24289 msgstr ""
24290
24291 #. type: =head2
24292 #: ../fish/guestfish-actions.pod:2330
24293 msgid "is-chardev"
24294 msgstr ""
24295
24296 #. type: verbatim
24297 #: ../fish/guestfish-actions.pod:2332
24298 #, no-wrap
24299 msgid ""
24300 " is-chardev path\n"
24301 "\n"
24302 msgstr ""
24303
24304 #. type: =head2
24305 #: ../fish/guestfish-actions.pod:2339
24306 msgid "is-config"
24307 msgstr ""
24308
24309 #. type: verbatim
24310 #: ../fish/guestfish-actions.pod:2341
24311 #, no-wrap
24312 msgid ""
24313 " is-config\n"
24314 "\n"
24315 msgstr ""
24316
24317 #. type: =head2
24318 #: ../fish/guestfish-actions.pod:2348
24319 msgid "is-dir"
24320 msgstr ""
24321
24322 #. type: verbatim
24323 #: ../fish/guestfish-actions.pod:2350
24324 #, no-wrap
24325 msgid ""
24326 " is-dir path\n"
24327 "\n"
24328 msgstr ""
24329
24330 #. type: =head2
24331 #: ../fish/guestfish-actions.pod:2358
24332 msgid "is-fifo"
24333 msgstr ""
24334
24335 #. type: verbatim
24336 #: ../fish/guestfish-actions.pod:2360
24337 #, no-wrap
24338 msgid ""
24339 " is-fifo path\n"
24340 "\n"
24341 msgstr ""
24342
24343 #. type: =head2
24344 #: ../fish/guestfish-actions.pod:2367
24345 msgid "is-file"
24346 msgstr ""
24347
24348 #. type: verbatim
24349 #: ../fish/guestfish-actions.pod:2369
24350 #, no-wrap
24351 msgid ""
24352 " is-file path\n"
24353 "\n"
24354 msgstr ""
24355
24356 #. type: =head2
24357 #: ../fish/guestfish-actions.pod:2377
24358 msgid "is-launching"
24359 msgstr ""
24360
24361 #. type: verbatim
24362 #: ../fish/guestfish-actions.pod:2379
24363 #, no-wrap
24364 msgid ""
24365 " is-launching\n"
24366 "\n"
24367 msgstr ""
24368
24369 #. type: =head2
24370 #: ../fish/guestfish-actions.pod:2386
24371 msgid "is-lv"
24372 msgstr ""
24373
24374 #. type: verbatim
24375 #: ../fish/guestfish-actions.pod:2388
24376 #, no-wrap
24377 msgid ""
24378 " is-lv device\n"
24379 "\n"
24380 msgstr ""
24381
24382 #. type: =head2
24383 #: ../fish/guestfish-actions.pod:2393
24384 msgid "is-ready"
24385 msgstr ""
24386
24387 #. type: verbatim
24388 #: ../fish/guestfish-actions.pod:2395
24389 #, no-wrap
24390 msgid ""
24391 " is-ready\n"
24392 "\n"
24393 msgstr ""
24394
24395 #. type: =head2
24396 #: ../fish/guestfish-actions.pod:2402
24397 msgid "is-socket"
24398 msgstr ""
24399
24400 #. type: verbatim
24401 #: ../fish/guestfish-actions.pod:2404
24402 #, no-wrap
24403 msgid ""
24404 " is-socket path\n"
24405 "\n"
24406 msgstr ""
24407
24408 #. type: =head2
24409 #: ../fish/guestfish-actions.pod:2411
24410 msgid "is-symlink"
24411 msgstr ""
24412
24413 #. type: verbatim
24414 #: ../fish/guestfish-actions.pod:2413
24415 #, no-wrap
24416 msgid ""
24417 " is-symlink path\n"
24418 "\n"
24419 msgstr ""
24420
24421 #. type: =head2
24422 #: ../fish/guestfish-actions.pod:2420
24423 msgid "kill-subprocess"
24424 msgstr ""
24425
24426 #. type: verbatim
24427 #: ../fish/guestfish-actions.pod:2422
24428 #, no-wrap
24429 msgid ""
24430 " kill-subprocess\n"
24431 "\n"
24432 msgstr ""
24433
24434 #. type: =head2
24435 #: ../fish/guestfish-actions.pod:2426
24436 msgid "launch"
24437 msgstr ""
24438
24439 #. type: =head2
24440 #: ../fish/guestfish-actions.pod:2428
24441 msgid "run"
24442 msgstr ""
24443
24444 #. type: verbatim
24445 #: ../fish/guestfish-actions.pod:2430
24446 #, no-wrap
24447 msgid ""
24448 " launch\n"
24449 "\n"
24450 msgstr ""
24451
24452 #. type: =head2
24453 #: ../fish/guestfish-actions.pod:2438
24454 msgid "lchown"
24455 msgstr ""
24456
24457 #. type: verbatim
24458 #: ../fish/guestfish-actions.pod:2440
24459 #, no-wrap
24460 msgid ""
24461 " lchown owner group path\n"
24462 "\n"
24463 msgstr ""
24464
24465 #. type: textblock
24466 #: ../fish/guestfish-actions.pod:2442
24467 msgid ""
24468 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
24469 "chown> but if C<path> is a symlink then the link itself is changed, not the "
24470 "target."
24471 msgstr ""
24472
24473 #. type: =head2
24474 #: ../fish/guestfish-actions.pod:2450
24475 msgid "lgetxattr"
24476 msgstr ""
24477
24478 #. type: verbatim
24479 #: ../fish/guestfish-actions.pod:2452
24480 #, no-wrap
24481 msgid ""
24482 " lgetxattr path name\n"
24483 "\n"
24484 msgstr ""
24485
24486 #. type: textblock
24487 #: ../fish/guestfish-actions.pod:2468
24488 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
24489 msgstr ""
24490
24491 #. type: =head2
24492 #: ../fish/guestfish-actions.pod:2470
24493 msgid "lgetxattrs"
24494 msgstr ""
24495
24496 #. type: verbatim
24497 #: ../fish/guestfish-actions.pod:2472
24498 #, no-wrap
24499 msgid ""
24500 " lgetxattrs path\n"
24501 "\n"
24502 msgstr ""
24503
24504 #. type: textblock
24505 #: ../fish/guestfish-actions.pod:2474
24506 msgid ""
24507 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
24508 "it returns the extended attributes of the link itself."
24509 msgstr ""
24510
24511 #. type: =head2
24512 #: ../fish/guestfish-actions.pod:2478
24513 msgid "list-devices"
24514 msgstr ""
24515
24516 #. type: verbatim
24517 #: ../fish/guestfish-actions.pod:2480
24518 #, no-wrap
24519 msgid ""
24520 " list-devices\n"
24521 "\n"
24522 msgstr ""
24523
24524 #. type: =head2
24525 #: ../fish/guestfish-actions.pod:2488
24526 msgid "list-filesystems"
24527 msgstr ""
24528
24529 #. type: verbatim
24530 #: ../fish/guestfish-actions.pod:2490
24531 #, no-wrap
24532 msgid ""
24533 " list-filesystems\n"
24534 "\n"
24535 msgstr ""
24536
24537 #. type: textblock
24538 #: ../fish/guestfish-actions.pod:2509
24539 msgid ""
24540 "This command runs other libguestfs commands, which might include L</mount> "
24541 "and L</umount>, and therefore you should use this soon after launch and only "
24542 "when nothing is mounted."
24543 msgstr ""
24544
24545 #. type: textblock
24546 #: ../fish/guestfish-actions.pod:2513
24547 msgid ""
24548 "Not all of the filesystems returned will be mountable.  In particular, swap "
24549 "partitions are returned in the list.  Also this command does not check that "
24550 "each filesystem found is valid and mountable, and some filesystems might be "
24551 "mountable but require special options.  Filesystems may not all belong to a "
24552 "single logical operating system (use L</inspect-os> to look for OSes)."
24553 msgstr ""
24554
24555 #. type: =head2
24556 #: ../fish/guestfish-actions.pod:2521
24557 msgid "list-partitions"
24558 msgstr ""
24559
24560 #. type: verbatim
24561 #: ../fish/guestfish-actions.pod:2523
24562 #, no-wrap
24563 msgid ""
24564 " list-partitions\n"
24565 "\n"
24566 msgstr ""
24567
24568 #. type: textblock
24569 #: ../fish/guestfish-actions.pod:2529
24570 msgid ""
24571 "This does not return logical volumes.  For that you will need to call L</"
24572 "lvs>."
24573 msgstr ""
24574
24575 #. type: =head2
24576 #: ../fish/guestfish-actions.pod:2534
24577 msgid "ll"
24578 msgstr ""
24579
24580 #. type: verbatim
24581 #: ../fish/guestfish-actions.pod:2536
24582 #, no-wrap
24583 msgid ""
24584 " ll directory\n"
24585 "\n"
24586 msgstr ""
24587
24588 #. type: =head2
24589 #: ../fish/guestfish-actions.pod:2544
24590 msgid "ln"
24591 msgstr ""
24592
24593 #. type: verbatim
24594 #: ../fish/guestfish-actions.pod:2546
24595 #, no-wrap
24596 msgid ""
24597 " ln target linkname\n"
24598 "\n"
24599 msgstr ""
24600
24601 #. type: =head2
24602 #: ../fish/guestfish-actions.pod:2550
24603 msgid "ln-f"
24604 msgstr ""
24605
24606 #. type: verbatim
24607 #: ../fish/guestfish-actions.pod:2552
24608 #, no-wrap
24609 msgid ""
24610 " ln-f target linkname\n"
24611 "\n"
24612 msgstr ""
24613
24614 #. type: =head2
24615 #: ../fish/guestfish-actions.pod:2557
24616 msgid "ln-s"
24617 msgstr ""
24618
24619 #. type: verbatim
24620 #: ../fish/guestfish-actions.pod:2559
24621 #, no-wrap
24622 msgid ""
24623 " ln-s target linkname\n"
24624 "\n"
24625 msgstr ""
24626
24627 #. type: =head2
24628 #: ../fish/guestfish-actions.pod:2563
24629 msgid "ln-sf"
24630 msgstr ""
24631
24632 #. type: verbatim
24633 #: ../fish/guestfish-actions.pod:2565
24634 #, no-wrap
24635 msgid ""
24636 " ln-sf target linkname\n"
24637 "\n"
24638 msgstr ""
24639
24640 #. type: =head2
24641 #: ../fish/guestfish-actions.pod:2570
24642 msgid "lremovexattr"
24643 msgstr ""
24644
24645 #. type: verbatim
24646 #: ../fish/guestfish-actions.pod:2572
24647 #, no-wrap
24648 msgid ""
24649 " lremovexattr xattr path\n"
24650 "\n"
24651 msgstr ""
24652
24653 #. type: textblock
24654 #: ../fish/guestfish-actions.pod:2574
24655 msgid ""
24656 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
24657 "it removes an extended attribute of the link itself."
24658 msgstr ""
24659
24660 #. type: =head2
24661 #: ../fish/guestfish-actions.pod:2578
24662 msgid "ls"
24663 msgstr ""
24664
24665 #. type: verbatim
24666 #: ../fish/guestfish-actions.pod:2580
24667 #, no-wrap
24668 msgid ""
24669 " ls directory\n"
24670 "\n"
24671 msgstr ""
24672
24673 #. type: textblock
24674 #: ../fish/guestfish-actions.pod:2586
24675 msgid ""
24676 "This command is mostly useful for interactive sessions.  Programs should "
24677 "probably use L</readdir> instead."
24678 msgstr ""
24679
24680 #. type: =head2
24681 #: ../fish/guestfish-actions.pod:2589
24682 msgid "lsetxattr"
24683 msgstr ""
24684
24685 #. type: verbatim
24686 #: ../fish/guestfish-actions.pod:2591
24687 #, no-wrap
24688 msgid ""
24689 " lsetxattr xattr val vallen path\n"
24690 "\n"
24691 msgstr ""
24692
24693 #. type: textblock
24694 #: ../fish/guestfish-actions.pod:2593
24695 msgid ""
24696 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
24697 "sets an extended attribute of the link itself."
24698 msgstr ""
24699
24700 #. type: =head2
24701 #: ../fish/guestfish-actions.pod:2597
24702 msgid "lstat"
24703 msgstr ""
24704
24705 #. type: verbatim
24706 #: ../fish/guestfish-actions.pod:2599
24707 #, no-wrap
24708 msgid ""
24709 " lstat path\n"
24710 "\n"
24711 msgstr ""
24712
24713 #. type: textblock
24714 #: ../fish/guestfish-actions.pod:2603
24715 msgid ""
24716 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
24717 "the link is stat-ed, not the file it refers to."
24718 msgstr ""
24719
24720 #. type: =head2
24721 #: ../fish/guestfish-actions.pod:2609
24722 msgid "lstatlist"
24723 msgstr ""
24724
24725 #. type: verbatim
24726 #: ../fish/guestfish-actions.pod:2611
24727 #, no-wrap
24728 msgid ""
24729 " lstatlist path 'names ...'\n"
24730 "\n"
24731 msgstr ""
24732
24733 #. type: textblock
24734 #: ../fish/guestfish-actions.pod:2613
24735 msgid ""
24736 "This call allows you to perform the L</lstat> operation on multiple files, "
24737 "where all files are in the directory C<path>.  C<names> is the list of files "
24738 "from this directory."
24739 msgstr ""
24740
24741 #. type: textblock
24742 #: ../fish/guestfish-actions.pod:2622
24743 msgid ""
24744 "This call is intended for programs that want to efficiently list a directory "
24745 "contents without making many round-trips.  See also L</lxattrlist> for a "
24746 "similarly efficient call for getting extended attributes.  Very long "
24747 "directory listings might cause the protocol message size to be exceeded, "
24748 "causing this call to fail.  The caller must split up such requests into "
24749 "smaller groups of names."
24750 msgstr ""
24751
24752 #. type: =head2
24753 #: ../fish/guestfish-actions.pod:2630
24754 msgid "luks-add-key"
24755 msgstr ""
24756
24757 #. type: verbatim
24758 #: ../fish/guestfish-actions.pod:2632
24759 #, no-wrap
24760 msgid ""
24761 " luks-add-key device keyslot\n"
24762 "\n"
24763 msgstr ""
24764
24765 #. type: textblock
24766 #: ../fish/guestfish-actions.pod:2639
24767 msgid ""
24768 "Note that if C<keyslot> already contains a key, then this command will "
24769 "fail.  You have to use L</luks-kill-slot> first to remove that key."
24770 msgstr ""
24771
24772 #. type: textblock
24773 #: ../fish/guestfish-actions.pod:2643 ../fish/guestfish-actions.pod:2665
24774 #: ../fish/guestfish-actions.pod:2678 ../fish/guestfish-actions.pod:2692
24775 #: ../fish/guestfish-actions.pod:2715 ../fish/guestfish-actions.pod:2725
24776 msgid ""
24777 "This command has one or more key or passphrase parameters.  Guestfish will "
24778 "prompt for these separately."
24779 msgstr ""
24780
24781 #. type: =head2
24782 #: ../fish/guestfish-actions.pod:2646
24783 msgid "luks-close"
24784 msgstr ""
24785
24786 #. type: verbatim
24787 #: ../fish/guestfish-actions.pod:2648
24788 #, no-wrap
24789 msgid ""
24790 " luks-close device\n"
24791 "\n"
24792 msgstr ""
24793
24794 #. type: textblock
24795 #: ../fish/guestfish-actions.pod:2650
24796 msgid ""
24797 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
24798 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
24799 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
24800 "block device."
24801 msgstr ""
24802
24803 #. type: =head2
24804 #: ../fish/guestfish-actions.pod:2656
24805 msgid "luks-format"
24806 msgstr ""
24807
24808 #. type: verbatim
24809 #: ../fish/guestfish-actions.pod:2658
24810 #, no-wrap
24811 msgid ""
24812 " luks-format device keyslot\n"
24813 "\n"
24814 msgstr ""
24815
24816 #. type: =head2
24817 #: ../fish/guestfish-actions.pod:2671
24818 msgid "luks-format-cipher"
24819 msgstr ""
24820
24821 #. type: verbatim
24822 #: ../fish/guestfish-actions.pod:2673
24823 #, no-wrap
24824 msgid ""
24825 " luks-format-cipher device keyslot cipher\n"
24826 "\n"
24827 msgstr ""
24828
24829 #. type: textblock
24830 #: ../fish/guestfish-actions.pod:2675
24831 msgid ""
24832 "This command is the same as L</luks-format> but it also allows you to set "
24833 "the C<cipher> used."
24834 msgstr ""
24835
24836 #. type: =head2
24837 #: ../fish/guestfish-actions.pod:2684
24838 msgid "luks-kill-slot"
24839 msgstr ""
24840
24841 #. type: verbatim
24842 #: ../fish/guestfish-actions.pod:2686
24843 #, no-wrap
24844 msgid ""
24845 " luks-kill-slot device keyslot\n"
24846 "\n"
24847 msgstr ""
24848
24849 #. type: =head2
24850 #: ../fish/guestfish-actions.pod:2695
24851 msgid "luks-open"
24852 msgstr ""
24853
24854 #. type: verbatim
24855 #: ../fish/guestfish-actions.pod:2697
24856 #, no-wrap
24857 msgid ""
24858 " luks-open device mapname\n"
24859 "\n"
24860 msgstr ""
24861
24862 #. type: textblock
24863 #: ../fish/guestfish-actions.pod:2711
24864 msgid ""
24865 "If this block device contains LVM volume groups, then calling L</vgscan> "
24866 "followed by L</vg-activate-all> will make them visible."
24867 msgstr ""
24868
24869 #. type: =head2
24870 #: ../fish/guestfish-actions.pod:2718
24871 msgid "luks-open-ro"
24872 msgstr ""
24873
24874 #. type: verbatim
24875 #: ../fish/guestfish-actions.pod:2720
24876 #, no-wrap
24877 msgid ""
24878 " luks-open-ro device mapname\n"
24879 "\n"
24880 msgstr ""
24881
24882 #. type: textblock
24883 #: ../fish/guestfish-actions.pod:2722
24884 msgid ""
24885 "This is the same as L</luks-open> except that a read-only mapping is created."
24886 msgstr ""
24887
24888 #. type: =head2
24889 #: ../fish/guestfish-actions.pod:2728
24890 msgid "lvcreate"
24891 msgstr ""
24892
24893 #. type: verbatim
24894 #: ../fish/guestfish-actions.pod:2730
24895 #, no-wrap
24896 msgid ""
24897 " lvcreate logvol volgroup mbytes\n"
24898 "\n"
24899 msgstr ""
24900
24901 #. type: =head2
24902 #: ../fish/guestfish-actions.pod:2735
24903 msgid "lvm-canonical-lv-name"
24904 msgstr ""
24905
24906 #. type: verbatim
24907 #: ../fish/guestfish-actions.pod:2737
24908 #, no-wrap
24909 msgid ""
24910 " lvm-canonical-lv-name lvname\n"
24911 "\n"
24912 msgstr ""
24913
24914 #. type: textblock
24915 #: ../fish/guestfish-actions.pod:2746
24916 msgid "See also L</is-lv>."
24917 msgstr ""
24918
24919 #. type: =head2
24920 #: ../fish/guestfish-actions.pod:2748
24921 msgid "lvm-clear-filter"
24922 msgstr ""
24923
24924 #. type: verbatim
24925 #: ../fish/guestfish-actions.pod:2750
24926 #, no-wrap
24927 msgid ""
24928 " lvm-clear-filter\n"
24929 "\n"
24930 msgstr ""
24931
24932 #. type: textblock
24933 #: ../fish/guestfish-actions.pod:2752
24934 msgid ""
24935 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
24936 "block device."
24937 msgstr ""
24938
24939 #. type: =head2
24940 #: ../fish/guestfish-actions.pod:2758
24941 msgid "lvm-remove-all"
24942 msgstr ""
24943
24944 #. type: verbatim
24945 #: ../fish/guestfish-actions.pod:2760
24946 #, no-wrap
24947 msgid ""
24948 " lvm-remove-all\n"
24949 "\n"
24950 msgstr ""
24951
24952 #. type: =head2
24953 #: ../fish/guestfish-actions.pod:2768
24954 msgid "lvm-set-filter"
24955 msgstr ""
24956
24957 #. type: verbatim
24958 #: ../fish/guestfish-actions.pod:2770
24959 #, no-wrap
24960 msgid ""
24961 " lvm-set-filter 'devices ...'\n"
24962 "\n"
24963 msgstr ""
24964
24965 #. type: =head2
24966 #: ../fish/guestfish-actions.pod:2795
24967 msgid "lvremove"
24968 msgstr ""
24969
24970 #. type: verbatim
24971 #: ../fish/guestfish-actions.pod:2797
24972 #, no-wrap
24973 msgid ""
24974 " lvremove device\n"
24975 "\n"
24976 msgstr ""
24977
24978 #. type: =head2
24979 #: ../fish/guestfish-actions.pod:2805
24980 msgid "lvrename"
24981 msgstr ""
24982
24983 #. type: verbatim
24984 #: ../fish/guestfish-actions.pod:2807
24985 #, no-wrap
24986 msgid ""
24987 " lvrename logvol newlogvol\n"
24988 "\n"
24989 msgstr ""
24990
24991 #. type: =head2
24992 #: ../fish/guestfish-actions.pod:2811
24993 msgid "lvresize"
24994 msgstr ""
24995
24996 #. type: verbatim
24997 #: ../fish/guestfish-actions.pod:2813
24998 #, no-wrap
24999 msgid ""
25000 " lvresize device mbytes\n"
25001 "\n"
25002 msgstr ""
25003
25004 #. type: =head2
25005 #: ../fish/guestfish-actions.pod:2819
25006 msgid "lvresize-free"
25007 msgstr ""
25008
25009 #. type: verbatim
25010 #: ../fish/guestfish-actions.pod:2821
25011 #, no-wrap
25012 msgid ""
25013 " lvresize-free lv percent\n"
25014 "\n"
25015 msgstr ""
25016
25017 #. type: =head2
25018 #: ../fish/guestfish-actions.pod:2829
25019 msgid "lvs"
25020 msgstr ""
25021
25022 #. type: verbatim
25023 #: ../fish/guestfish-actions.pod:2831
25024 #, no-wrap
25025 msgid ""
25026 " lvs\n"
25027 "\n"
25028 msgstr ""
25029
25030 #. type: textblock
25031 #: ../fish/guestfish-actions.pod:2839
25032 msgid "See also L</lvs-full>, L</list-filesystems>."
25033 msgstr ""
25034
25035 #. type: =head2
25036 #: ../fish/guestfish-actions.pod:2841
25037 msgid "lvs-full"
25038 msgstr ""
25039
25040 #. type: verbatim
25041 #: ../fish/guestfish-actions.pod:2843
25042 #, no-wrap
25043 msgid ""
25044 " lvs-full\n"
25045 "\n"
25046 msgstr ""
25047
25048 #. type: =head2
25049 #: ../fish/guestfish-actions.pod:2848
25050 msgid "lvuuid"
25051 msgstr ""
25052
25053 #. type: verbatim
25054 #: ../fish/guestfish-actions.pod:2850
25055 #, no-wrap
25056 msgid ""
25057 " lvuuid device\n"
25058 "\n"
25059 msgstr ""
25060
25061 #. type: =head2
25062 #: ../fish/guestfish-actions.pod:2854
25063 msgid "lxattrlist"
25064 msgstr ""
25065
25066 #. type: verbatim
25067 #: ../fish/guestfish-actions.pod:2856
25068 #, no-wrap
25069 msgid ""
25070 " lxattrlist path 'names ...'\n"
25071 "\n"
25072 msgstr ""
25073
25074 #. type: textblock
25075 #: ../fish/guestfish-actions.pod:2872
25076 msgid ""
25077 "This call is intended for programs that want to efficiently list a directory "
25078 "contents without making many round-trips.  See also L</lstatlist> for a "
25079 "similarly efficient call for getting standard stats.  Very long directory "
25080 "listings might cause the protocol message size to be exceeded, causing this "
25081 "call to fail.  The caller must split up such requests into smaller groups of "
25082 "names."
25083 msgstr ""
25084
25085 #. type: =head2
25086 #: ../fish/guestfish-actions.pod:2880
25087 msgid "mkdir"
25088 msgstr ""
25089
25090 #. type: verbatim
25091 #: ../fish/guestfish-actions.pod:2882
25092 #, no-wrap
25093 msgid ""
25094 " mkdir path\n"
25095 "\n"
25096 msgstr ""
25097
25098 #. type: =head2
25099 #: ../fish/guestfish-actions.pod:2886
25100 msgid "mkdir-mode"
25101 msgstr ""
25102
25103 #. type: verbatim
25104 #: ../fish/guestfish-actions.pod:2888
25105 #, no-wrap
25106 msgid ""
25107 " mkdir-mode path mode\n"
25108 "\n"
25109 msgstr ""
25110
25111 #. type: textblock
25112 #: ../fish/guestfish-actions.pod:2897
25113 msgid "See also L</mkdir>, L</umask>"
25114 msgstr ""
25115
25116 #. type: =head2
25117 #: ../fish/guestfish-actions.pod:2899
25118 msgid "mkdir-p"
25119 msgstr ""
25120
25121 #. type: verbatim
25122 #: ../fish/guestfish-actions.pod:2901
25123 #, no-wrap
25124 msgid ""
25125 " mkdir-p path\n"
25126 "\n"
25127 msgstr ""
25128
25129 #. type: =head2
25130 #: ../fish/guestfish-actions.pod:2906
25131 msgid "mkdtemp"
25132 msgstr ""
25133
25134 #. type: verbatim
25135 #: ../fish/guestfish-actions.pod:2908
25136 #, no-wrap
25137 msgid ""
25138 " mkdtemp template\n"
25139 "\n"
25140 msgstr ""
25141
25142 #. type: =head2
25143 #: ../fish/guestfish-actions.pod:2929
25144 msgid "mke2fs-J"
25145 msgstr ""
25146
25147 #. type: verbatim
25148 #: ../fish/guestfish-actions.pod:2931
25149 #, no-wrap
25150 msgid ""
25151 " mke2fs-J fstype blocksize device journal\n"
25152 "\n"
25153 msgstr ""
25154
25155 #. type: textblock
25156 #: ../fish/guestfish-actions.pod:2939
25157 msgid "See also L</mke2journal>."
25158 msgstr ""
25159
25160 #. type: =head2
25161 #: ../fish/guestfish-actions.pod:2941
25162 msgid "mke2fs-JL"
25163 msgstr ""
25164
25165 #. type: verbatim
25166 #: ../fish/guestfish-actions.pod:2943
25167 #, no-wrap
25168 msgid ""
25169 " mke2fs-JL fstype blocksize device label\n"
25170 "\n"
25171 msgstr ""
25172
25173 #. type: textblock
25174 #: ../fish/guestfish-actions.pod:2948
25175 msgid "See also L</mke2journal-L>."
25176 msgstr ""
25177
25178 #. type: =head2
25179 #: ../fish/guestfish-actions.pod:2950
25180 msgid "mke2fs-JU"
25181 msgstr ""
25182
25183 #. type: verbatim
25184 #: ../fish/guestfish-actions.pod:2952
25185 #, no-wrap
25186 msgid ""
25187 " mke2fs-JU fstype blocksize device uuid\n"
25188 "\n"
25189 msgstr ""
25190
25191 #. type: textblock
25192 #: ../fish/guestfish-actions.pod:2957
25193 msgid "See also L</mke2journal-U>."
25194 msgstr ""
25195
25196 #. type: =head2
25197 #: ../fish/guestfish-actions.pod:2959
25198 msgid "mke2journal"
25199 msgstr ""
25200
25201 #. type: verbatim
25202 #: ../fish/guestfish-actions.pod:2961
25203 #, no-wrap
25204 msgid ""
25205 " mke2journal blocksize device\n"
25206 "\n"
25207 msgstr ""
25208
25209 #. type: =head2
25210 #: ../fish/guestfish-actions.pod:2968
25211 msgid "mke2journal-L"
25212 msgstr ""
25213
25214 #. type: verbatim
25215 #: ../fish/guestfish-actions.pod:2970
25216 #, no-wrap
25217 msgid ""
25218 " mke2journal-L blocksize label device\n"
25219 "\n"
25220 msgstr ""
25221
25222 #. type: =head2
25223 #: ../fish/guestfish-actions.pod:2974
25224 msgid "mke2journal-U"
25225 msgstr ""
25226
25227 #. type: verbatim
25228 #: ../fish/guestfish-actions.pod:2976
25229 #, no-wrap
25230 msgid ""
25231 " mke2journal-U blocksize uuid device\n"
25232 "\n"
25233 msgstr ""
25234
25235 #. type: =head2
25236 #: ../fish/guestfish-actions.pod:2980
25237 msgid "mkfifo"
25238 msgstr ""
25239
25240 #. type: verbatim
25241 #: ../fish/guestfish-actions.pod:2982
25242 #, no-wrap
25243 msgid ""
25244 " mkfifo mode path\n"
25245 "\n"
25246 msgstr ""
25247
25248 #. type: textblock
25249 #: ../fish/guestfish-actions.pod:2984
25250 msgid ""
25251 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
25252 "is just a convenient wrapper around L</mknod>."
25253 msgstr ""
25254
25255 #. type: =head2
25256 #: ../fish/guestfish-actions.pod:2990
25257 msgid "mkfs"
25258 msgstr ""
25259
25260 #. type: verbatim
25261 #: ../fish/guestfish-actions.pod:2992
25262 #, no-wrap
25263 msgid ""
25264 " mkfs fstype device\n"
25265 "\n"
25266 msgstr ""
25267
25268 #. type: =head2
25269 #: ../fish/guestfish-actions.pod:2998
25270 msgid "mkfs-b"
25271 msgstr ""
25272
25273 #. type: verbatim
25274 #: ../fish/guestfish-actions.pod:3000
25275 #, no-wrap
25276 msgid ""
25277 " mkfs-b fstype blocksize device\n"
25278 "\n"
25279 msgstr ""
25280
25281 #. type: textblock
25282 #: ../fish/guestfish-actions.pod:3002
25283 msgid ""
25284 "This call is similar to L</mkfs>, but it allows you to control the block "
25285 "size of the resulting filesystem.  Supported block sizes depend on the "
25286 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
25287 msgstr ""
25288
25289 #. type: =head2
25290 #: ../fish/guestfish-actions.pod:3017
25291 msgid "mkfs-opts"
25292 msgstr ""
25293
25294 #. type: verbatim
25295 #: ../fish/guestfish-actions.pod:3019
25296 #, no-wrap
25297 msgid ""
25298 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
25299 "\n"
25300 msgstr ""
25301
25302 #. type: =head2
25303 #: ../fish/guestfish-actions.pod:3054
25304 msgid "mkmountpoint"
25305 msgstr ""
25306
25307 #. type: verbatim
25308 #: ../fish/guestfish-actions.pod:3056
25309 #, no-wrap
25310 msgid ""
25311 " mkmountpoint exemptpath\n"
25312 "\n"
25313 msgstr ""
25314
25315 #. type: textblock
25316 #: ../fish/guestfish-actions.pod:3058
25317 msgid ""
25318 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
25319 "to create extra mountpoints before mounting the first filesystem."
25320 msgstr ""
25321
25322 #. type: textblock
25323 #: ../fish/guestfish-actions.pod:3082
25324 msgid ""
25325 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
25326 "unexpected errors if you try to mix these calls.  It is safest to manually "
25327 "unmount filesystems and remove mountpoints after use."
25328 msgstr ""
25329
25330 #. type: textblock
25331 #: ../fish/guestfish-actions.pod:3086
25332 msgid ""
25333 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
25334 "for this to work for manual mountpoints, you must ensure that the innermost "
25335 "mountpoints have the longest pathnames, as in the example code above."
25336 msgstr ""
25337
25338 #. type: textblock
25339 #: ../fish/guestfish-actions.pod:3093
25340 msgid ""
25341 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
25342 "L</umount-all> to be called when the handle is closed which can also trigger "
25343 "these issues."
25344 msgstr ""
25345
25346 #. type: =head2
25347 #: ../fish/guestfish-actions.pod:3097
25348 msgid "mknod"
25349 msgstr ""
25350
25351 #. type: verbatim
25352 #: ../fish/guestfish-actions.pod:3099
25353 #, no-wrap
25354 msgid ""
25355 " mknod mode devmajor devminor path\n"
25356 "\n"
25357 msgstr ""
25358
25359 #. type: textblock
25360 #: ../fish/guestfish-actions.pod:3109
25361 msgid ""
25362 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
25363 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
25364 "regular file).  These constants are available in the standard Linux header "
25365 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
25366 "wrappers around this command which bitwise OR in the appropriate constant "
25367 "for you."
25368 msgstr ""
25369
25370 #. type: =head2
25371 #: ../fish/guestfish-actions.pod:3119
25372 msgid "mknod-b"
25373 msgstr ""
25374
25375 #. type: verbatim
25376 #: ../fish/guestfish-actions.pod:3121
25377 #, no-wrap
25378 msgid ""
25379 " mknod-b mode devmajor devminor path\n"
25380 "\n"
25381 msgstr ""
25382
25383 #. type: textblock
25384 #: ../fish/guestfish-actions.pod:3123
25385 msgid ""
25386 "This call creates a block device node called C<path> with mode C<mode> and "
25387 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25388 "wrapper around L</mknod>."
25389 msgstr ""
25390
25391 #. type: =head2
25392 #: ../fish/guestfish-actions.pod:3129
25393 msgid "mknod-c"
25394 msgstr ""
25395
25396 #. type: verbatim
25397 #: ../fish/guestfish-actions.pod:3131
25398 #, no-wrap
25399 msgid ""
25400 " mknod-c mode devmajor devminor path\n"
25401 "\n"
25402 msgstr ""
25403
25404 #. type: textblock
25405 #: ../fish/guestfish-actions.pod:3133
25406 msgid ""
25407 "This call creates a char device node called C<path> with mode C<mode> and "
25408 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25409 "wrapper around L</mknod>."
25410 msgstr ""
25411
25412 #. type: =head2
25413 #: ../fish/guestfish-actions.pod:3139
25414 msgid "mkswap"
25415 msgstr ""
25416
25417 #. type: verbatim
25418 #: ../fish/guestfish-actions.pod:3141
25419 #, no-wrap
25420 msgid ""
25421 " mkswap device\n"
25422 "\n"
25423 msgstr ""
25424
25425 #. type: =head2
25426 #: ../fish/guestfish-actions.pod:3145
25427 msgid "mkswap-L"
25428 msgstr ""
25429
25430 #. type: verbatim
25431 #: ../fish/guestfish-actions.pod:3147
25432 #, no-wrap
25433 msgid ""
25434 " mkswap-L label device\n"
25435 "\n"
25436 msgstr ""
25437
25438 #. type: =head2
25439 #: ../fish/guestfish-actions.pod:3155
25440 msgid "mkswap-U"
25441 msgstr ""
25442
25443 #. type: verbatim
25444 #: ../fish/guestfish-actions.pod:3157
25445 #, no-wrap
25446 msgid ""
25447 " mkswap-U uuid device\n"
25448 "\n"
25449 msgstr ""
25450
25451 #. type: =head2
25452 #: ../fish/guestfish-actions.pod:3161
25453 msgid "mkswap-file"
25454 msgstr ""
25455
25456 #. type: verbatim
25457 #: ../fish/guestfish-actions.pod:3163
25458 #, no-wrap
25459 msgid ""
25460 " mkswap-file path\n"
25461 "\n"
25462 msgstr ""
25463
25464 #. type: textblock
25465 #: ../fish/guestfish-actions.pod:3167
25466 msgid ""
25467 "This command just writes a swap file signature to an existing file.  To "
25468 "create the file itself, use something like L</fallocate>."
25469 msgstr ""
25470
25471 #. type: =head2
25472 #: ../fish/guestfish-actions.pod:3170
25473 msgid "modprobe"
25474 msgstr ""
25475
25476 #. type: verbatim
25477 #: ../fish/guestfish-actions.pod:3172
25478 #, no-wrap
25479 msgid ""
25480 " modprobe modulename\n"
25481 "\n"
25482 msgstr ""
25483
25484 #. type: =head2
25485 #: ../fish/guestfish-actions.pod:3179
25486 msgid "mount"
25487 msgstr ""
25488
25489 #. type: verbatim
25490 #: ../fish/guestfish-actions.pod:3181
25491 #, no-wrap
25492 msgid ""
25493 " mount device mountpoint\n"
25494 "\n"
25495 msgstr ""
25496
25497 #. type: textblock
25498 #: ../fish/guestfish-actions.pod:3197
25499 msgid ""
25500 "B<Important note:> When you use this call, the filesystem options C<sync> "
25501 "and C<noatime> are set implicitly.  This was originally done because we "
25502 "thought it would improve reliability, but it turns out that I<-o sync> has a "
25503 "very large negative performance impact and negligible effect on "
25504 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
25505 "code that needs performance, and instead use L</mount-options> (use an empty "
25506 "string for the first parameter if you don't want any options)."
25507 msgstr ""
25508
25509 #. type: =head2
25510 #: ../fish/guestfish-actions.pod:3207
25511 msgid "mount-loop"
25512 msgstr ""
25513
25514 #. type: verbatim
25515 #: ../fish/guestfish-actions.pod:3209
25516 #, no-wrap
25517 msgid ""
25518 " mount-loop file mountpoint\n"
25519 "\n"
25520 msgstr ""
25521
25522 #. type: =head2
25523 #: ../fish/guestfish-actions.pod:3215
25524 msgid "mount-options"
25525 msgstr ""
25526
25527 #. type: verbatim
25528 #: ../fish/guestfish-actions.pod:3217
25529 #, no-wrap
25530 msgid ""
25531 " mount-options options device mountpoint\n"
25532 "\n"
25533 msgstr ""
25534
25535 #. type: textblock
25536 #: ../fish/guestfish-actions.pod:3219
25537 msgid ""
25538 "This is the same as the L</mount> command, but it allows you to set the "
25539 "mount options as for the L<mount(8)> I<-o> flag."
25540 msgstr ""
25541
25542 #. type: =head2
25543 #: ../fish/guestfish-actions.pod:3227
25544 msgid "mount-ro"
25545 msgstr ""
25546
25547 #. type: verbatim
25548 #: ../fish/guestfish-actions.pod:3229
25549 #, no-wrap
25550 msgid ""
25551 " mount-ro device mountpoint\n"
25552 "\n"
25553 msgstr ""
25554
25555 #. type: textblock
25556 #: ../fish/guestfish-actions.pod:3231
25557 msgid ""
25558 "This is the same as the L</mount> command, but it mounts the filesystem with "
25559 "the read-only (I<-o ro>) flag."
25560 msgstr ""
25561
25562 #. type: =head2
25563 #: ../fish/guestfish-actions.pod:3234
25564 msgid "mount-vfs"
25565 msgstr ""
25566
25567 #. type: verbatim
25568 #: ../fish/guestfish-actions.pod:3236
25569 #, no-wrap
25570 msgid ""
25571 " mount-vfs options vfstype device mountpoint\n"
25572 "\n"
25573 msgstr ""
25574
25575 #. type: textblock
25576 #: ../fish/guestfish-actions.pod:3238
25577 msgid ""
25578 "This is the same as the L</mount> command, but it allows you to set both the "
25579 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
25580 msgstr ""
25581
25582 #. type: =head2
25583 #: ../fish/guestfish-actions.pod:3242
25584 msgid "mountpoints"
25585 msgstr ""
25586
25587 #. type: verbatim
25588 #: ../fish/guestfish-actions.pod:3244
25589 #, no-wrap
25590 msgid ""
25591 " mountpoints\n"
25592 "\n"
25593 msgstr ""
25594
25595 #. type: textblock
25596 #: ../fish/guestfish-actions.pod:3246
25597 msgid ""
25598 "This call is similar to L</mounts>.  That call returns a list of devices.  "
25599 "This one returns a hash table (map) of device name to directory where the "
25600 "device is mounted."
25601 msgstr ""
25602
25603 #. type: =head2
25604 #: ../fish/guestfish-actions.pod:3250
25605 msgid "mounts"
25606 msgstr ""
25607
25608 #. type: verbatim
25609 #: ../fish/guestfish-actions.pod:3252
25610 #, no-wrap
25611 msgid ""
25612 " mounts\n"
25613 "\n"
25614 msgstr ""
25615
25616 #. type: textblock
25617 #: ../fish/guestfish-actions.pod:3259
25618 msgid "See also: L</mountpoints>"
25619 msgstr ""
25620
25621 #. type: =head2
25622 #: ../fish/guestfish-actions.pod:3261
25623 msgid "mv"
25624 msgstr ""
25625
25626 #. type: verbatim
25627 #: ../fish/guestfish-actions.pod:3263
25628 #, no-wrap
25629 msgid ""
25630 " mv src dest\n"
25631 "\n"
25632 msgstr ""
25633
25634 #. type: =head2
25635 #: ../fish/guestfish-actions.pod:3268
25636 msgid "ntfs-3g-probe"
25637 msgstr ""
25638
25639 #. type: verbatim
25640 #: ../fish/guestfish-actions.pod:3270
25641 #, no-wrap
25642 msgid ""
25643 " ntfs-3g-probe true|false device\n"
25644 "\n"
25645 msgstr ""
25646
25647 #. type: =head2
25648 #: ../fish/guestfish-actions.pod:3284
25649 msgid "ntfsresize"
25650 msgstr ""
25651
25652 #. type: verbatim
25653 #: ../fish/guestfish-actions.pod:3286
25654 #, no-wrap
25655 msgid ""
25656 " ntfsresize device\n"
25657 "\n"
25658 msgstr ""
25659
25660 #. type: =head2
25661 #: ../fish/guestfish-actions.pod:3292
25662 msgid "ntfsresize-size"
25663 msgstr ""
25664
25665 #. type: verbatim
25666 #: ../fish/guestfish-actions.pod:3294
25667 #, no-wrap
25668 msgid ""
25669 " ntfsresize-size device size\n"
25670 "\n"
25671 msgstr ""
25672
25673 #. type: textblock
25674 #: ../fish/guestfish-actions.pod:3296
25675 msgid ""
25676 "This command is the same as L</ntfsresize> except that it allows you to "
25677 "specify the new size (in bytes) explicitly."
25678 msgstr ""
25679
25680 #. type: =head2
25681 #: ../fish/guestfish-actions.pod:3299
25682 msgid "part-add"
25683 msgstr ""
25684
25685 #. type: verbatim
25686 #: ../fish/guestfish-actions.pod:3301
25687 #, no-wrap
25688 msgid ""
25689 " part-add device prlogex startsect endsect\n"
25690 "\n"
25691 msgstr ""
25692
25693 #. type: textblock
25694 #: ../fish/guestfish-actions.pod:3303
25695 msgid ""
25696 "This command adds a partition to C<device>.  If there is no partition table "
25697 "on the device, call L</part-init> first."
25698 msgstr ""
25699
25700 #. type: textblock
25701 #: ../fish/guestfish-actions.pod:3315
25702 msgid ""
25703 "Creating a partition which covers the whole disk is not so easy.  Use L</"
25704 "part-disk> to do that."
25705 msgstr ""
25706
25707 #. type: =head2
25708 #: ../fish/guestfish-actions.pod:3318
25709 msgid "part-del"
25710 msgstr ""
25711
25712 #. type: verbatim
25713 #: ../fish/guestfish-actions.pod:3320
25714 #, no-wrap
25715 msgid ""
25716 " part-del device partnum\n"
25717 "\n"
25718 msgstr ""
25719
25720 #. type: =head2
25721 #: ../fish/guestfish-actions.pod:3328
25722 msgid "part-disk"
25723 msgstr ""
25724
25725 #. type: verbatim
25726 #: ../fish/guestfish-actions.pod:3330
25727 #, no-wrap
25728 msgid ""
25729 " part-disk device parttype\n"
25730 "\n"
25731 msgstr ""
25732
25733 #. type: textblock
25734 #: ../fish/guestfish-actions.pod:3332
25735 msgid ""
25736 "This command is simply a combination of L</part-init> followed by L</part-"
25737 "add> to create a single primary partition covering the whole disk."
25738 msgstr ""
25739
25740 #. type: textblock
25741 #: ../fish/guestfish-actions.pod:3336
25742 msgid ""
25743 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
25744 "possible values are described in L</part-init>."
25745 msgstr ""
25746
25747 #. type: =head2
25748 #: ../fish/guestfish-actions.pod:3342
25749 msgid "part-get-bootable"
25750 msgstr ""
25751
25752 #. type: verbatim
25753 #: ../fish/guestfish-actions.pod:3344
25754 #, no-wrap
25755 msgid ""
25756 " part-get-bootable device partnum\n"
25757 "\n"
25758 msgstr ""
25759
25760 #. type: textblock
25761 #: ../fish/guestfish-actions.pod:3349
25762 msgid "See also L</part-set-bootable>."
25763 msgstr ""
25764
25765 #. type: =head2
25766 #: ../fish/guestfish-actions.pod:3351
25767 msgid "part-get-mbr-id"
25768 msgstr ""
25769
25770 #. type: verbatim
25771 #: ../fish/guestfish-actions.pod:3353
25772 #, no-wrap
25773 msgid ""
25774 " part-get-mbr-id device partnum\n"
25775 "\n"
25776 msgstr ""
25777
25778 #. type: textblock
25779 #: ../fish/guestfish-actions.pod:3358 ../fish/guestfish-actions.pod:3496
25780 msgid ""
25781 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
25782 "undefined results for other partition table types (see L</part-get-"
25783 "parttype>)."
25784 msgstr ""
25785
25786 #. type: =head2
25787 #: ../fish/guestfish-actions.pod:3362
25788 msgid "part-get-parttype"
25789 msgstr ""
25790
25791 #. type: verbatim
25792 #: ../fish/guestfish-actions.pod:3364
25793 #, no-wrap
25794 msgid ""
25795 " part-get-parttype device\n"
25796 "\n"
25797 msgstr ""
25798
25799 #. type: textblock
25800 #: ../fish/guestfish-actions.pod:3369
25801 msgid ""
25802 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
25803 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
25804 "possible, although unusual.  See L</part-init> for a full list."
25805 msgstr ""
25806
25807 #. type: =head2
25808 #: ../fish/guestfish-actions.pod:3374
25809 msgid "part-init"
25810 msgstr ""
25811
25812 #. type: verbatim
25813 #: ../fish/guestfish-actions.pod:3376
25814 #, no-wrap
25815 msgid ""
25816 " part-init device parttype\n"
25817 "\n"
25818 msgstr ""
25819
25820 #. type: textblock
25821 #: ../fish/guestfish-actions.pod:3382
25822 msgid ""
25823 "Initially there are no partitions.  Following this, you should call L</part-"
25824 "add> for each partition required."
25825 msgstr ""
25826
25827 #. type: =head2
25828 #: ../fish/guestfish-actions.pod:3445
25829 msgid "part-list"
25830 msgstr ""
25831
25832 #. type: verbatim
25833 #: ../fish/guestfish-actions.pod:3447
25834 #, no-wrap
25835 msgid ""
25836 " part-list device\n"
25837 "\n"
25838 msgstr ""
25839
25840 #. type: textblock
25841 #: ../fish/guestfish-actions.pod:3462
25842 msgid ""
25843 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
25844 "the device's sector size, see L</blockdev-getss>."
25845 msgstr ""
25846
25847 #. type: =head2
25848 #: ../fish/guestfish-actions.pod:3475
25849 msgid "part-set-bootable"
25850 msgstr ""
25851
25852 #. type: verbatim
25853 #: ../fish/guestfish-actions.pod:3477
25854 #, no-wrap
25855 msgid ""
25856 " part-set-bootable device partnum true|false\n"
25857 "\n"
25858 msgstr ""
25859
25860 #. type: =head2
25861 #: ../fish/guestfish-actions.pod:3486
25862 msgid "part-set-mbr-id"
25863 msgstr ""
25864
25865 #. type: verbatim
25866 #: ../fish/guestfish-actions.pod:3488
25867 #, no-wrap
25868 msgid ""
25869 " part-set-mbr-id device partnum idbyte\n"
25870 "\n"
25871 msgstr ""
25872
25873 #. type: =head2
25874 #: ../fish/guestfish-actions.pod:3500
25875 msgid "part-set-name"
25876 msgstr ""
25877
25878 #. type: verbatim
25879 #: ../fish/guestfish-actions.pod:3502
25880 #, no-wrap
25881 msgid ""
25882 " part-set-name device partnum name\n"
25883 "\n"
25884 msgstr ""
25885
25886 #. type: =head2
25887 #: ../fish/guestfish-actions.pod:3510
25888 msgid "part-to-dev"
25889 msgstr ""
25890
25891 #. type: verbatim
25892 #: ../fish/guestfish-actions.pod:3512
25893 #, no-wrap
25894 msgid ""
25895 " part-to-dev partition\n"
25896 "\n"
25897 msgstr ""
25898
25899 #. type: textblock
25900 #: ../fish/guestfish-actions.pod:3518
25901 msgid ""
25902 "The named partition must exist, for example as a string returned from L</"
25903 "list-partitions>."
25904 msgstr ""
25905
25906 #. type: =head2
25907 #: ../fish/guestfish-actions.pod:3521
25908 msgid "ping-daemon"
25909 msgstr ""
25910
25911 #. type: verbatim
25912 #: ../fish/guestfish-actions.pod:3523
25913 #, no-wrap
25914 msgid ""
25915 " ping-daemon\n"
25916 "\n"
25917 msgstr ""
25918
25919 #. type: =head2
25920 #: ../fish/guestfish-actions.pod:3530
25921 msgid "pread"
25922 msgstr ""
25923
25924 #. type: verbatim
25925 #: ../fish/guestfish-actions.pod:3532
25926 #, no-wrap
25927 msgid ""
25928 " pread path count offset\n"
25929 "\n"
25930 msgstr ""
25931
25932 #. type: textblock
25933 #: ../fish/guestfish-actions.pod:3540
25934 msgid "See also L</pwrite>, L</pread-device>."
25935 msgstr ""
25936
25937 #. type: =head2
25938 #: ../fish/guestfish-actions.pod:3545
25939 msgid "pread-device"
25940 msgstr ""
25941
25942 #. type: verbatim
25943 #: ../fish/guestfish-actions.pod:3547
25944 #, no-wrap
25945 msgid ""
25946 " pread-device device count offset\n"
25947 "\n"
25948 msgstr ""
25949
25950 #. type: textblock
25951 #: ../fish/guestfish-actions.pod:3555
25952 msgid "See also L</pread>."
25953 msgstr ""
25954
25955 #. type: =head2
25956 #: ../fish/guestfish-actions.pod:3560
25957 msgid "pvcreate"
25958 msgstr ""
25959
25960 #. type: verbatim
25961 #: ../fish/guestfish-actions.pod:3562
25962 #, no-wrap
25963 msgid ""
25964 " pvcreate device\n"
25965 "\n"
25966 msgstr ""
25967
25968 #. type: =head2
25969 #: ../fish/guestfish-actions.pod:3568
25970 msgid "pvremove"
25971 msgstr ""
25972
25973 #. type: verbatim
25974 #: ../fish/guestfish-actions.pod:3570
25975 #, no-wrap
25976 msgid ""
25977 " pvremove device\n"
25978 "\n"
25979 msgstr ""
25980
25981 #. type: =head2
25982 #: ../fish/guestfish-actions.pod:3579
25983 msgid "pvresize"
25984 msgstr ""
25985
25986 #. type: verbatim
25987 #: ../fish/guestfish-actions.pod:3581
25988 #, no-wrap
25989 msgid ""
25990 " pvresize device\n"
25991 "\n"
25992 msgstr ""
25993
25994 #. type: =head2
25995 #: ../fish/guestfish-actions.pod:3586
25996 msgid "pvresize-size"
25997 msgstr ""
25998
25999 #. type: verbatim
26000 #: ../fish/guestfish-actions.pod:3588
26001 #, no-wrap
26002 msgid ""
26003 " pvresize-size device size\n"
26004 "\n"
26005 msgstr ""
26006
26007 #. type: textblock
26008 #: ../fish/guestfish-actions.pod:3590
26009 msgid ""
26010 "This command is the same as L</pvresize> except that it allows you to "
26011 "specify the new size (in bytes) explicitly."
26012 msgstr ""
26013
26014 #. type: =head2
26015 #: ../fish/guestfish-actions.pod:3593
26016 msgid "pvs"
26017 msgstr ""
26018
26019 #. type: verbatim
26020 #: ../fish/guestfish-actions.pod:3595
26021 #, no-wrap
26022 msgid ""
26023 " pvs\n"
26024 "\n"
26025 msgstr ""
26026
26027 #. type: textblock
26028 #: ../fish/guestfish-actions.pod:3603
26029 msgid "See also L</pvs-full>."
26030 msgstr ""
26031
26032 #. type: =head2
26033 #: ../fish/guestfish-actions.pod:3605
26034 msgid "pvs-full"
26035 msgstr ""
26036
26037 #. type: verbatim
26038 #: ../fish/guestfish-actions.pod:3607
26039 #, no-wrap
26040 msgid ""
26041 " pvs-full\n"
26042 "\n"
26043 msgstr ""
26044
26045 #. type: =head2
26046 #: ../fish/guestfish-actions.pod:3612
26047 msgid "pvuuid"
26048 msgstr ""
26049
26050 #. type: verbatim
26051 #: ../fish/guestfish-actions.pod:3614
26052 #, no-wrap
26053 msgid ""
26054 " pvuuid device\n"
26055 "\n"
26056 msgstr ""
26057
26058 #. type: =head2
26059 #: ../fish/guestfish-actions.pod:3618
26060 msgid "pwrite"
26061 msgstr ""
26062
26063 #. type: verbatim
26064 #: ../fish/guestfish-actions.pod:3620
26065 #, no-wrap
26066 msgid ""
26067 " pwrite path content offset\n"
26068 "\n"
26069 msgstr ""
26070
26071 #. type: textblock
26072 #: ../fish/guestfish-actions.pod:3631
26073 msgid "See also L</pread>, L</pwrite-device>."
26074 msgstr ""
26075
26076 #. type: =head2
26077 #: ../fish/guestfish-actions.pod:3636
26078 msgid "pwrite-device"
26079 msgstr ""
26080
26081 #. type: verbatim
26082 #: ../fish/guestfish-actions.pod:3638
26083 #, no-wrap
26084 msgid ""
26085 " pwrite-device device content offset\n"
26086 "\n"
26087 msgstr ""
26088
26089 #. type: textblock
26090 #: ../fish/guestfish-actions.pod:3648
26091 msgid "See also L</pwrite>."
26092 msgstr ""
26093
26094 #. type: =head2
26095 #: ../fish/guestfish-actions.pod:3653
26096 msgid "read-file"
26097 msgstr ""
26098
26099 #. type: verbatim
26100 #: ../fish/guestfish-actions.pod:3655
26101 #, no-wrap
26102 msgid ""
26103 " read-file path\n"
26104 "\n"
26105 msgstr ""
26106
26107 #. type: textblock
26108 #: ../fish/guestfish-actions.pod:3660
26109 msgid ""
26110 "Unlike L</cat>, this function can correctly handle files that contain "
26111 "embedded ASCII NUL characters.  However unlike L</download>, this function "
26112 "is limited in the total size of file that can be handled."
26113 msgstr ""
26114
26115 #. type: =head2
26116 #: ../fish/guestfish-actions.pod:3668
26117 msgid "read-lines"
26118 msgstr ""
26119
26120 #. type: verbatim
26121 #: ../fish/guestfish-actions.pod:3670
26122 #, no-wrap
26123 msgid ""
26124 " read-lines path\n"
26125 "\n"
26126 msgstr ""
26127
26128 #. type: textblock
26129 #: ../fish/guestfish-actions.pod:3677
26130 msgid ""
26131 "Note that this function cannot correctly handle binary files (specifically, "
26132 "files containing C<\\0> character which is treated as end of line).  For "
26133 "those you need to use the L</read-file> function which has a more complex "
26134 "interface."
26135 msgstr ""
26136
26137 #. type: =head2
26138 #: ../fish/guestfish-actions.pod:3682
26139 msgid "readdir"
26140 msgstr ""
26141
26142 #. type: verbatim
26143 #: ../fish/guestfish-actions.pod:3684
26144 #, no-wrap
26145 msgid ""
26146 " readdir dir\n"
26147 "\n"
26148 msgstr ""
26149
26150 #. type: textblock
26151 #: ../fish/guestfish-actions.pod:3736
26152 msgid ""
26153 "This function is primarily intended for use by programs.  To get a simple "
26154 "list of names, use L</ls>.  To get a printable directory for human "
26155 "consumption, use L</ll>."
26156 msgstr ""
26157
26158 #. type: =head2
26159 #: ../fish/guestfish-actions.pod:3740
26160 msgid "readlink"
26161 msgstr ""
26162
26163 #. type: verbatim
26164 #: ../fish/guestfish-actions.pod:3742
26165 #, no-wrap
26166 msgid ""
26167 " readlink path\n"
26168 "\n"
26169 msgstr ""
26170
26171 #. type: =head2
26172 #: ../fish/guestfish-actions.pod:3746
26173 msgid "readlinklist"
26174 msgstr ""
26175
26176 #. type: verbatim
26177 #: ../fish/guestfish-actions.pod:3748
26178 #, no-wrap
26179 msgid ""
26180 " readlinklist path 'names ...'\n"
26181 "\n"
26182 msgstr ""
26183
26184 #. type: =head2
26185 #: ../fish/guestfish-actions.pod:3772
26186 msgid "realpath"
26187 msgstr ""
26188
26189 #. type: verbatim
26190 #: ../fish/guestfish-actions.pod:3774
26191 #, no-wrap
26192 msgid ""
26193 " realpath path\n"
26194 "\n"
26195 msgstr ""
26196
26197 #. type: =head2
26198 #: ../fish/guestfish-actions.pod:3779
26199 msgid "removexattr"
26200 msgstr ""
26201
26202 #. type: verbatim
26203 #: ../fish/guestfish-actions.pod:3781
26204 #, no-wrap
26205 msgid ""
26206 " removexattr xattr path\n"
26207 "\n"
26208 msgstr ""
26209
26210 #. type: textblock
26211 #: ../fish/guestfish-actions.pod:3786
26212 msgid "See also: L</lremovexattr>, L<attr(5)>."
26213 msgstr ""
26214
26215 #. type: =head2
26216 #: ../fish/guestfish-actions.pod:3788
26217 msgid "resize2fs"
26218 msgstr ""
26219
26220 #. type: verbatim
26221 #: ../fish/guestfish-actions.pod:3790
26222 #, no-wrap
26223 msgid ""
26224 " resize2fs device\n"
26225 "\n"
26226 msgstr ""
26227
26228 #. type: textblock
26229 #: ../fish/guestfish-actions.pod:3795
26230 msgid ""
26231 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
26232 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
26233 "gives an error about this and sometimes not.  In any case, it is always safe "
26234 "to call L</e2fsck-f> before calling this function."
26235 msgstr ""
26236
26237 #. type: =head2
26238 #: ../fish/guestfish-actions.pod:3801
26239 msgid "resize2fs-M"
26240 msgstr ""
26241
26242 #. type: verbatim
26243 #: ../fish/guestfish-actions.pod:3803
26244 #, no-wrap
26245 msgid ""
26246 " resize2fs-M device\n"
26247 "\n"
26248 msgstr ""
26249
26250 #. type: textblock
26251 #: ../fish/guestfish-actions.pod:3805
26252 msgid ""
26253 "This command is the same as L</resize2fs>, but the filesystem is resized to "
26254 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
26255 "command."
26256 msgstr ""
26257
26258 #. type: textblock
26259 #: ../fish/guestfish-actions.pod:3809
26260 msgid ""
26261 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
26262 "and read the C<Block size> and C<Block count> values.  These two numbers, "
26263 "multiplied together, give the resulting size of the minimal filesystem in "
26264 "bytes."
26265 msgstr ""
26266
26267 #. type: =head2
26268 #: ../fish/guestfish-actions.pod:3814
26269 msgid "resize2fs-size"
26270 msgstr ""
26271
26272 #. type: verbatim
26273 #: ../fish/guestfish-actions.pod:3816
26274 #, no-wrap
26275 msgid ""
26276 " resize2fs-size device size\n"
26277 "\n"
26278 msgstr ""
26279
26280 #. type: textblock
26281 #: ../fish/guestfish-actions.pod:3818
26282 msgid ""
26283 "This command is the same as L</resize2fs> except that it allows you to "
26284 "specify the new size (in bytes) explicitly."
26285 msgstr ""
26286
26287 #. type: =head2
26288 #: ../fish/guestfish-actions.pod:3821
26289 msgid "rm"
26290 msgstr ""
26291
26292 #. type: verbatim
26293 #: ../fish/guestfish-actions.pod:3823
26294 #, no-wrap
26295 msgid ""
26296 " rm path\n"
26297 "\n"
26298 msgstr ""
26299
26300 #. type: =head2
26301 #: ../fish/guestfish-actions.pod:3827
26302 msgid "rm-rf"
26303 msgstr ""
26304
26305 #. type: verbatim
26306 #: ../fish/guestfish-actions.pod:3829
26307 #, no-wrap
26308 msgid ""
26309 " rm-rf path\n"
26310 "\n"
26311 msgstr ""
26312
26313 #. type: =head2
26314 #: ../fish/guestfish-actions.pod:3835
26315 msgid "rmdir"
26316 msgstr ""
26317
26318 #. type: verbatim
26319 #: ../fish/guestfish-actions.pod:3837
26320 #, no-wrap
26321 msgid ""
26322 " rmdir path\n"
26323 "\n"
26324 msgstr ""
26325
26326 #. type: =head2
26327 #: ../fish/guestfish-actions.pod:3841
26328 msgid "rmmountpoint"
26329 msgstr ""
26330
26331 #. type: verbatim
26332 #: ../fish/guestfish-actions.pod:3843
26333 #, no-wrap
26334 msgid ""
26335 " rmmountpoint exemptpath\n"
26336 "\n"
26337 msgstr ""
26338
26339 #. type: textblock
26340 #: ../fish/guestfish-actions.pod:3845
26341 msgid ""
26342 "This calls removes a mountpoint that was previously created with L</"
26343 "mkmountpoint>.  See L</mkmountpoint> for full details."
26344 msgstr ""
26345
26346 #. type: =head2
26347 #: ../fish/guestfish-actions.pod:3849
26348 msgid "scrub-device"
26349 msgstr ""
26350
26351 #. type: verbatim
26352 #: ../fish/guestfish-actions.pod:3851
26353 #, no-wrap
26354 msgid ""
26355 " scrub-device device\n"
26356 "\n"
26357 msgstr ""
26358
26359 #. type: =head2
26360 #: ../fish/guestfish-actions.pod:3862
26361 msgid "scrub-file"
26362 msgstr ""
26363
26364 #. type: verbatim
26365 #: ../fish/guestfish-actions.pod:3864
26366 #, no-wrap
26367 msgid ""
26368 " scrub-file file\n"
26369 "\n"
26370 msgstr ""
26371
26372 #. type: =head2
26373 #: ../fish/guestfish-actions.pod:3874
26374 msgid "scrub-freespace"
26375 msgstr ""
26376
26377 #. type: verbatim
26378 #: ../fish/guestfish-actions.pod:3876
26379 #, no-wrap
26380 msgid ""
26381 " scrub-freespace dir\n"
26382 "\n"
26383 msgstr ""
26384
26385 #. type: textblock
26386 #: ../fish/guestfish-actions.pod:3878
26387 msgid ""
26388 "This command creates the directory C<dir> and then fills it with files until "
26389 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
26390 "deletes them.  The intention is to scrub any free space on the partition "
26391 "containing C<dir>."
26392 msgstr ""
26393
26394 #. type: =head2
26395 #: ../fish/guestfish-actions.pod:3887
26396 msgid "set-append"
26397 msgstr ""
26398
26399 #. type: =head2
26400 #: ../fish/guestfish-actions.pod:3889
26401 msgid "append"
26402 msgstr ""
26403
26404 #. type: verbatim
26405 #: ../fish/guestfish-actions.pod:3891
26406 #, no-wrap
26407 msgid ""
26408 " set-append append\n"
26409 "\n"
26410 msgstr ""
26411
26412 #. type: =head2
26413 #: ../fish/guestfish-actions.pod:3902
26414 msgid "set-attach-method"
26415 msgstr ""
26416
26417 #. type: =head2
26418 #: ../fish/guestfish-actions.pod:3904
26419 msgid "attach-method"
26420 msgstr ""
26421
26422 #. type: verbatim
26423 #: ../fish/guestfish-actions.pod:3906
26424 #, no-wrap
26425 msgid ""
26426 " set-attach-method attachmethod\n"
26427 "\n"
26428 msgstr ""
26429
26430 #. type: =head2
26431 #: ../fish/guestfish-actions.pod:3928
26432 msgid "set-autosync"
26433 msgstr ""
26434
26435 #. type: =head2
26436 #: ../fish/guestfish-actions.pod:3930
26437 msgid "autosync"
26438 msgstr ""
26439
26440 #. type: verbatim
26441 #: ../fish/guestfish-actions.pod:3932
26442 #, no-wrap
26443 msgid ""
26444 " set-autosync true|false\n"
26445 "\n"
26446 msgstr ""
26447
26448 #. type: =head2
26449 #: ../fish/guestfish-actions.pod:3942
26450 msgid "set-direct"
26451 msgstr ""
26452
26453 #. type: =head2
26454 #: ../fish/guestfish-actions.pod:3944
26455 msgid "direct"
26456 msgstr ""
26457
26458 #. type: verbatim
26459 #: ../fish/guestfish-actions.pod:3946
26460 #, no-wrap
26461 msgid ""
26462 " set-direct true|false\n"
26463 "\n"
26464 msgstr ""
26465
26466 #. type: textblock
26467 #: ../fish/guestfish-actions.pod:3952
26468 msgid ""
26469 "One consequence of this is that log messages aren't caught by the library "
26470 "and handled by L</set-log-message-callback>, but go straight to stdout."
26471 msgstr ""
26472
26473 #. type: =head2
26474 #: ../fish/guestfish-actions.pod:3961
26475 msgid "set-e2label"
26476 msgstr ""
26477
26478 #. type: verbatim
26479 #: ../fish/guestfish-actions.pod:3963
26480 #, no-wrap
26481 msgid ""
26482 " set-e2label device label\n"
26483 "\n"
26484 msgstr ""
26485
26486 #. type: textblock
26487 #: ../fish/guestfish-actions.pod:3969
26488 msgid ""
26489 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
26490 "label on a filesystem."
26491 msgstr ""
26492
26493 #. type: =head2
26494 #: ../fish/guestfish-actions.pod:3972
26495 msgid "set-e2uuid"
26496 msgstr ""
26497
26498 #. type: verbatim
26499 #: ../fish/guestfish-actions.pod:3974
26500 #, no-wrap
26501 msgid ""
26502 " set-e2uuid device uuid\n"
26503 "\n"
26504 msgstr ""
26505
26506 #. type: textblock
26507 #: ../fish/guestfish-actions.pod:3981
26508 msgid ""
26509 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
26510 "UUID of a filesystem."
26511 msgstr ""
26512
26513 #. type: =head2
26514 #: ../fish/guestfish-actions.pod:3984
26515 msgid "set-memsize"
26516 msgstr ""
26517
26518 #. type: =head2
26519 #: ../fish/guestfish-actions.pod:3986
26520 msgid "memsize"
26521 msgstr ""
26522
26523 #. type: verbatim
26524 #: ../fish/guestfish-actions.pod:3988
26525 #, no-wrap
26526 msgid ""
26527 " set-memsize memsize\n"
26528 "\n"
26529 msgstr ""
26530
26531 #. type: textblock
26532 #: ../fish/guestfish-actions.pod:3990
26533 msgid ""
26534 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
26535 "This only has any effect if called before L</launch>."
26536 msgstr ""
26537
26538 #. type: =head2
26539 #: ../fish/guestfish-actions.pod:4001
26540 msgid "set-network"
26541 msgstr ""
26542
26543 #. type: =head2
26544 #: ../fish/guestfish-actions.pod:4003
26545 msgid "network"
26546 msgstr ""
26547
26548 #. type: verbatim
26549 #: ../fish/guestfish-actions.pod:4005
26550 #, no-wrap
26551 msgid ""
26552 " set-network true|false\n"
26553 "\n"
26554 msgstr ""
26555
26556 #. type: textblock
26557 #: ../fish/guestfish-actions.pod:4013
26558 msgid ""
26559 "You must call this before calling L</launch>, otherwise it has no effect."
26560 msgstr ""
26561
26562 #. type: =head2
26563 #: ../fish/guestfish-actions.pod:4016
26564 msgid "set-path"
26565 msgstr ""
26566
26567 #. type: =head2
26568 #: ../fish/guestfish-actions.pod:4018
26569 msgid "path"
26570 msgstr ""
26571
26572 #. type: verbatim
26573 #: ../fish/guestfish-actions.pod:4020
26574 #, no-wrap
26575 msgid ""
26576 " set-path searchpath\n"
26577 "\n"
26578 msgstr ""
26579
26580 #. type: =head2
26581 #: ../fish/guestfish-actions.pod:4029
26582 msgid "set-qemu"
26583 msgstr ""
26584
26585 #. type: =head2
26586 #: ../fish/guestfish-actions.pod:4031
26587 msgid "qemu"
26588 msgstr ""
26589
26590 #. type: verbatim
26591 #: ../fish/guestfish-actions.pod:4033
26592 #, no-wrap
26593 msgid ""
26594 " set-qemu qemu\n"
26595 "\n"
26596 msgstr ""
26597
26598 #. type: =head2
26599 #: ../fish/guestfish-actions.pod:4053
26600 msgid "set-recovery-proc"
26601 msgstr ""
26602
26603 #. type: =head2
26604 #: ../fish/guestfish-actions.pod:4055
26605 msgid "recovery-proc"
26606 msgstr ""
26607
26608 #. type: verbatim
26609 #: ../fish/guestfish-actions.pod:4057
26610 #, no-wrap
26611 msgid ""
26612 " set-recovery-proc true|false\n"
26613 "\n"
26614 msgstr ""
26615
26616 #. type: textblock
26617 #: ../fish/guestfish-actions.pod:4059
26618 msgid ""
26619 "If this is called with the parameter C<false> then L</launch> does not "
26620 "create a recovery process.  The purpose of the recovery process is to stop "
26621 "runaway qemu processes in the case where the main program aborts abruptly."
26622 msgstr ""
26623
26624 #. type: textblock
26625 #: ../fish/guestfish-actions.pod:4064
26626 msgid ""
26627 "This only has any effect if called before L</launch>, and the default is "
26628 "true."
26629 msgstr ""
26630
26631 #. type: =head2
26632 #: ../fish/guestfish-actions.pod:4073
26633 msgid "set-selinux"
26634 msgstr ""
26635
26636 #. type: =head2
26637 #: ../fish/guestfish-actions.pod:4075
26638 msgid "selinux"
26639 msgstr ""
26640
26641 #. type: verbatim
26642 #: ../fish/guestfish-actions.pod:4077
26643 #, no-wrap
26644 msgid ""
26645 " set-selinux true|false\n"
26646 "\n"
26647 msgstr ""
26648
26649 #. type: =head2
26650 #: ../fish/guestfish-actions.pod:4088
26651 msgid "set-trace"
26652 msgstr ""
26653
26654 #. type: =head2
26655 #: ../fish/guestfish-actions.pod:4090
26656 msgid "trace"
26657 msgstr ""
26658
26659 #. type: verbatim
26660 #: ../fish/guestfish-actions.pod:4092
26661 #, no-wrap
26662 msgid ""
26663 " set-trace true|false\n"
26664 "\n"
26665 msgstr ""
26666
26667 #. type: textblock
26668 #: ../fish/guestfish-actions.pod:4104
26669 msgid ""
26670 "Trace messages are normally sent to C<stderr>, unless you register a "
26671 "callback to send them somewhere else (see L</set-event-callback>)."
26672 msgstr ""
26673
26674 #. type: =head2
26675 #: ../fish/guestfish-actions.pod:4108
26676 msgid "set-verbose"
26677 msgstr ""
26678
26679 #. type: =head2
26680 #: ../fish/guestfish-actions.pod:4110
26681 msgid "verbose"
26682 msgstr ""
26683
26684 #. type: verbatim
26685 #: ../fish/guestfish-actions.pod:4112
26686 #, no-wrap
26687 msgid ""
26688 " set-verbose true|false\n"
26689 "\n"
26690 msgstr ""
26691
26692 #. type: textblock
26693 #: ../fish/guestfish-actions.pod:4119
26694 msgid ""
26695 "Verbose messages are normally sent to C<stderr>, unless you register a "
26696 "callback to send them somewhere else (see L</set-event-callback>)."
26697 msgstr ""
26698
26699 #. type: =head2
26700 #: ../fish/guestfish-actions.pod:4123
26701 msgid "setcon"
26702 msgstr ""
26703
26704 #. type: verbatim
26705 #: ../fish/guestfish-actions.pod:4125
26706 #, no-wrap
26707 msgid ""
26708 " setcon context\n"
26709 "\n"
26710 msgstr ""
26711
26712 #. type: =head2
26713 #: ../fish/guestfish-actions.pod:4132
26714 msgid "setxattr"
26715 msgstr ""
26716
26717 #. type: verbatim
26718 #: ../fish/guestfish-actions.pod:4134
26719 #, no-wrap
26720 msgid ""
26721 " setxattr xattr val vallen path\n"
26722 "\n"
26723 msgstr ""
26724
26725 #. type: textblock
26726 #: ../fish/guestfish-actions.pod:4140
26727 msgid "See also: L</lsetxattr>, L<attr(5)>."
26728 msgstr ""
26729
26730 #. type: =head2
26731 #: ../fish/guestfish-actions.pod:4142
26732 msgid "sfdisk"
26733 msgstr ""
26734
26735 #. type: verbatim
26736 #: ../fish/guestfish-actions.pod:4144
26737 #, no-wrap
26738 msgid ""
26739 " sfdisk device cyls heads sectors 'lines ...'\n"
26740 "\n"
26741 msgstr ""
26742
26743 #. type: textblock
26744 #: ../fish/guestfish-actions.pod:4166
26745 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
26746 msgstr ""
26747
26748 #. type: =head2
26749 #: ../fish/guestfish-actions.pod:4172
26750 msgid "sfdiskM"
26751 msgstr ""
26752
26753 #. type: verbatim
26754 #: ../fish/guestfish-actions.pod:4174
26755 #, no-wrap
26756 msgid ""
26757 " sfdiskM device 'lines ...'\n"
26758 "\n"
26759 msgstr ""
26760
26761 #. type: textblock
26762 #: ../fish/guestfish-actions.pod:4176
26763 msgid ""
26764 "This is a simplified interface to the L</sfdisk> command, where partition "
26765 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
26766 "you don't need to specify the cyls, heads and sectors parameters which were "
26767 "rarely if ever used anyway."
26768 msgstr ""
26769
26770 #. type: textblock
26771 #: ../fish/guestfish-actions.pod:4182
26772 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
26773 msgstr ""
26774
26775 #. type: =head2
26776 #: ../fish/guestfish-actions.pod:4188
26777 msgid "sfdisk-N"
26778 msgstr ""
26779
26780 #. type: verbatim
26781 #: ../fish/guestfish-actions.pod:4190
26782 #, no-wrap
26783 msgid ""
26784 " sfdisk-N device partnum cyls heads sectors line\n"
26785 "\n"
26786 msgstr ""
26787
26788 #. type: textblock
26789 #: ../fish/guestfish-actions.pod:4195
26790 msgid ""
26791 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
26792 "cyls/heads/sectors parameters."
26793 msgstr ""
26794
26795 #. type: textblock
26796 #: ../fish/guestfish-actions.pod:4198
26797 msgid "See also: L</part-add>"
26798 msgstr ""
26799
26800 #. type: =head2
26801 #: ../fish/guestfish-actions.pod:4203
26802 msgid "sfdisk-disk-geometry"
26803 msgstr ""
26804
26805 #. type: verbatim
26806 #: ../fish/guestfish-actions.pod:4205
26807 #, no-wrap
26808 msgid ""
26809 " sfdisk-disk-geometry device\n"
26810 "\n"
26811 msgstr ""
26812
26813 #. type: textblock
26814 #: ../fish/guestfish-actions.pod:4207
26815 msgid ""
26816 "This displays the disk geometry of C<device> read from the partition table.  "
26817 "Especially in the case where the underlying block device has been resized, "
26818 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
26819 "kernel-geometry>)."
26820 msgstr ""
26821
26822 #. type: =head2
26823 #: ../fish/guestfish-actions.pod:4215
26824 msgid "sfdisk-kernel-geometry"
26825 msgstr ""
26826
26827 #. type: verbatim
26828 #: ../fish/guestfish-actions.pod:4217
26829 #, no-wrap
26830 msgid ""
26831 " sfdisk-kernel-geometry device\n"
26832 "\n"
26833 msgstr ""
26834
26835 #. type: =head2
26836 #: ../fish/guestfish-actions.pod:4224
26837 msgid "sfdisk-l"
26838 msgstr ""
26839
26840 #. type: verbatim
26841 #: ../fish/guestfish-actions.pod:4226
26842 #, no-wrap
26843 msgid ""
26844 " sfdisk-l device\n"
26845 "\n"
26846 msgstr ""
26847
26848 #. type: textblock
26849 #: ../fish/guestfish-actions.pod:4232
26850 msgid "See also: L</part-list>"
26851 msgstr ""
26852
26853 #. type: =head2
26854 #: ../fish/guestfish-actions.pod:4234
26855 msgid "sh"
26856 msgstr ""
26857
26858 #. type: verbatim
26859 #: ../fish/guestfish-actions.pod:4236
26860 #, no-wrap
26861 msgid ""
26862 " sh command\n"
26863 "\n"
26864 msgstr ""
26865
26866 #. type: textblock
26867 #: ../fish/guestfish-actions.pod:4241
26868 msgid "This is like L</command>, but passes the command to:"
26869 msgstr ""
26870
26871 #. type: textblock
26872 #: ../fish/guestfish-actions.pod:4249
26873 msgid "All the provisos about L</command> apply to this call."
26874 msgstr ""
26875
26876 #. type: =head2
26877 #: ../fish/guestfish-actions.pod:4251
26878 msgid "sh-lines"
26879 msgstr ""
26880
26881 #. type: verbatim
26882 #: ../fish/guestfish-actions.pod:4253
26883 #, no-wrap
26884 msgid ""
26885 " sh-lines command\n"
26886 "\n"
26887 msgstr ""
26888
26889 #. type: textblock
26890 #: ../fish/guestfish-actions.pod:4255
26891 msgid "This is the same as L</sh>, but splits the result into a list of lines."
26892 msgstr ""
26893
26894 #. type: textblock
26895 #: ../fish/guestfish-actions.pod:4258
26896 msgid "See also: L</command-lines>"
26897 msgstr ""
26898
26899 #. type: =head2
26900 #: ../fish/guestfish-actions.pod:4260
26901 msgid "sleep"
26902 msgstr ""
26903
26904 #. type: verbatim
26905 #: ../fish/guestfish-actions.pod:4262
26906 #, no-wrap
26907 msgid ""
26908 " sleep secs\n"
26909 "\n"
26910 msgstr ""
26911
26912 #. type: =head2
26913 #: ../fish/guestfish-actions.pod:4266
26914 msgid "stat"
26915 msgstr ""
26916
26917 #. type: verbatim
26918 #: ../fish/guestfish-actions.pod:4268
26919 #, no-wrap
26920 msgid ""
26921 " stat path\n"
26922 "\n"
26923 msgstr ""
26924
26925 #. type: =head2
26926 #: ../fish/guestfish-actions.pod:4274
26927 msgid "statvfs"
26928 msgstr ""
26929
26930 #. type: verbatim
26931 #: ../fish/guestfish-actions.pod:4276
26932 #, no-wrap
26933 msgid ""
26934 " statvfs path\n"
26935 "\n"
26936 msgstr ""
26937
26938 #. type: =head2
26939 #: ../fish/guestfish-actions.pod:4284
26940 msgid "strings"
26941 msgstr ""
26942
26943 #. type: verbatim
26944 #: ../fish/guestfish-actions.pod:4286
26945 #, no-wrap
26946 msgid ""
26947 " strings path\n"
26948 "\n"
26949 msgstr ""
26950
26951 #. type: =head2
26952 #: ../fish/guestfish-actions.pod:4294
26953 msgid "strings-e"
26954 msgstr ""
26955
26956 #. type: verbatim
26957 #: ../fish/guestfish-actions.pod:4296
26958 #, no-wrap
26959 msgid ""
26960 " strings-e encoding path\n"
26961 "\n"
26962 msgstr ""
26963
26964 #. type: textblock
26965 #: ../fish/guestfish-actions.pod:4298
26966 msgid ""
26967 "This is like the L</strings> command, but allows you to specify the encoding "
26968 "of strings that are looked for in the source file C<path>."
26969 msgstr ""
26970
26971 #. type: textblock
26972 #: ../fish/guestfish-actions.pod:4308
26973 msgid ""
26974 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
26975 "ISO-8859-X (this is what L</strings> uses)."
26976 msgstr ""
26977
26978 #. type: =head2
26979 #: ../fish/guestfish-actions.pod:4340
26980 msgid "swapoff-device"
26981 msgstr ""
26982
26983 #. type: verbatim
26984 #: ../fish/guestfish-actions.pod:4342
26985 #, no-wrap
26986 msgid ""
26987 " swapoff-device device\n"
26988 "\n"
26989 msgstr ""
26990
26991 #. type: textblock
26992 #: ../fish/guestfish-actions.pod:4344
26993 msgid ""
26994 "This command disables the libguestfs appliance swap device or partition "
26995 "named C<device>.  See L</swapon-device>."
26996 msgstr ""
26997
26998 #. type: =head2
26999 #: ../fish/guestfish-actions.pod:4348
27000 msgid "swapoff-file"
27001 msgstr ""
27002
27003 #. type: verbatim
27004 #: ../fish/guestfish-actions.pod:4350
27005 #, no-wrap
27006 msgid ""
27007 " swapoff-file file\n"
27008 "\n"
27009 msgstr ""
27010
27011 #. type: =head2
27012 #: ../fish/guestfish-actions.pod:4354
27013 msgid "swapoff-label"
27014 msgstr ""
27015
27016 #. type: verbatim
27017 #: ../fish/guestfish-actions.pod:4356
27018 #, no-wrap
27019 msgid ""
27020 " swapoff-label label\n"
27021 "\n"
27022 msgstr ""
27023
27024 #. type: =head2
27025 #: ../fish/guestfish-actions.pod:4361
27026 msgid "swapoff-uuid"
27027 msgstr ""
27028
27029 #. type: verbatim
27030 #: ../fish/guestfish-actions.pod:4363
27031 #, no-wrap
27032 msgid ""
27033 " swapoff-uuid uuid\n"
27034 "\n"
27035 msgstr ""
27036
27037 #. type: =head2
27038 #: ../fish/guestfish-actions.pod:4368
27039 msgid "swapon-device"
27040 msgstr ""
27041
27042 #. type: verbatim
27043 #: ../fish/guestfish-actions.pod:4370
27044 #, no-wrap
27045 msgid ""
27046 " swapon-device device\n"
27047 "\n"
27048 msgstr ""
27049
27050 #. type: textblock
27051 #: ../fish/guestfish-actions.pod:4372
27052 msgid ""
27053 "This command enables the libguestfs appliance to use the swap device or "
27054 "partition named C<device>.  The increased memory is made available for all "
27055 "commands, for example those run using L</command> or L</sh>."
27056 msgstr ""
27057
27058 #. type: =head2
27059 #: ../fish/guestfish-actions.pod:4384
27060 msgid "swapon-file"
27061 msgstr ""
27062
27063 #. type: verbatim
27064 #: ../fish/guestfish-actions.pod:4386
27065 #, no-wrap
27066 msgid ""
27067 " swapon-file file\n"
27068 "\n"
27069 msgstr ""
27070
27071 #. type: textblock
27072 #: ../fish/guestfish-actions.pod:4388
27073 msgid ""
27074 "This command enables swap to a file.  See L</swapon-device> for other notes."
27075 msgstr ""
27076
27077 #. type: =head2
27078 #: ../fish/guestfish-actions.pod:4391
27079 msgid "swapon-label"
27080 msgstr ""
27081
27082 #. type: verbatim
27083 #: ../fish/guestfish-actions.pod:4393
27084 #, no-wrap
27085 msgid ""
27086 " swapon-label label\n"
27087 "\n"
27088 msgstr ""
27089
27090 #. type: textblock
27091 #: ../fish/guestfish-actions.pod:4395
27092 msgid ""
27093 "This command enables swap to a labeled swap partition.  See L</swapon-"
27094 "device> for other notes."
27095 msgstr ""
27096
27097 #. type: =head2
27098 #: ../fish/guestfish-actions.pod:4398
27099 msgid "swapon-uuid"
27100 msgstr ""
27101
27102 #. type: verbatim
27103 #: ../fish/guestfish-actions.pod:4400
27104 #, no-wrap
27105 msgid ""
27106 " swapon-uuid uuid\n"
27107 "\n"
27108 msgstr ""
27109
27110 #. type: textblock
27111 #: ../fish/guestfish-actions.pod:4402
27112 msgid ""
27113 "This command enables swap to a swap partition with the given UUID.  See L</"
27114 "swapon-device> for other notes."
27115 msgstr ""
27116
27117 #. type: =head2
27118 #: ../fish/guestfish-actions.pod:4405
27119 msgid "sync"
27120 msgstr ""
27121
27122 #. type: verbatim
27123 #: ../fish/guestfish-actions.pod:4407
27124 #, no-wrap
27125 msgid ""
27126 " sync\n"
27127 "\n"
27128 msgstr ""
27129
27130 #. type: =head2
27131 #: ../fish/guestfish-actions.pod:4415
27132 msgid "tail"
27133 msgstr ""
27134
27135 #. type: verbatim
27136 #: ../fish/guestfish-actions.pod:4417
27137 #, no-wrap
27138 msgid ""
27139 " tail path\n"
27140 "\n"
27141 msgstr ""
27142
27143 #. type: =head2
27144 #: ../fish/guestfish-actions.pod:4425
27145 msgid "tail-n"
27146 msgstr ""
27147
27148 #. type: verbatim
27149 #: ../fish/guestfish-actions.pod:4427
27150 #, no-wrap
27151 msgid ""
27152 " tail-n nrlines path\n"
27153 "\n"
27154 msgstr ""
27155
27156 #. type: =head2
27157 #: ../fish/guestfish-actions.pod:4440
27158 msgid "tar-in"
27159 msgstr ""
27160
27161 #. type: verbatim
27162 #: ../fish/guestfish-actions.pod:4442
27163 #, no-wrap
27164 msgid ""
27165 " tar-in (tarfile|-) directory\n"
27166 "\n"
27167 msgstr ""
27168
27169 #. type: textblock
27170 #: ../fish/guestfish-actions.pod:4447
27171 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
27172 msgstr ""
27173
27174 #. type: =head2
27175 #: ../fish/guestfish-actions.pod:4452
27176 msgid "tar-out"
27177 msgstr ""
27178
27179 #. type: verbatim
27180 #: ../fish/guestfish-actions.pod:4454
27181 #, no-wrap
27182 msgid ""
27183 " tar-out directory (tarfile|-)\n"
27184 "\n"
27185 msgstr ""
27186
27187 #. type: textblock
27188 #: ../fish/guestfish-actions.pod:4459
27189 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
27190 msgstr ""
27191
27192 #. type: =head2
27193 #: ../fish/guestfish-actions.pod:4464
27194 msgid "tgz-in"
27195 msgstr ""
27196
27197 #. type: verbatim
27198 #: ../fish/guestfish-actions.pod:4466
27199 #, no-wrap
27200 msgid ""
27201 " tgz-in (tarball|-) directory\n"
27202 "\n"
27203 msgstr ""
27204
27205 #. type: textblock
27206 #: ../fish/guestfish-actions.pod:4471
27207 msgid "To upload an uncompressed tarball, use L</tar-in>."
27208 msgstr ""
27209
27210 #. type: =head2
27211 #: ../fish/guestfish-actions.pod:4475
27212 msgid "tgz-out"
27213 msgstr ""
27214
27215 #. type: verbatim
27216 #: ../fish/guestfish-actions.pod:4477
27217 #, no-wrap
27218 msgid ""
27219 " tgz-out directory (tarball|-)\n"
27220 "\n"
27221 msgstr ""
27222
27223 #. type: textblock
27224 #: ../fish/guestfish-actions.pod:4482
27225 msgid "To download an uncompressed tarball, use L</tar-out>."
27226 msgstr ""
27227
27228 #. type: =head2
27229 #: ../fish/guestfish-actions.pod:4486
27230 msgid "touch"
27231 msgstr ""
27232
27233 #. type: verbatim
27234 #: ../fish/guestfish-actions.pod:4488
27235 #, no-wrap
27236 msgid ""
27237 " touch path\n"
27238 "\n"
27239 msgstr ""
27240
27241 #. type: =head2
27242 #: ../fish/guestfish-actions.pod:4497
27243 msgid "truncate"
27244 msgstr ""
27245
27246 #. type: verbatim
27247 #: ../fish/guestfish-actions.pod:4499
27248 #, no-wrap
27249 msgid ""
27250 " truncate path\n"
27251 "\n"
27252 msgstr ""
27253
27254 #. type: =head2
27255 #: ../fish/guestfish-actions.pod:4504
27256 msgid "truncate-size"
27257 msgstr ""
27258
27259 #. type: verbatim
27260 #: ../fish/guestfish-actions.pod:4506
27261 #, no-wrap
27262 msgid ""
27263 " truncate-size path size\n"
27264 "\n"
27265 msgstr ""
27266
27267 #. type: textblock
27268 #: ../fish/guestfish-actions.pod:4511
27269 msgid ""
27270 "If the current file size is less than C<size> then the file is extended to "
27271 "the required size with zero bytes.  This creates a sparse file (ie. disk "
27272 "blocks are not allocated for the file until you write to it).  To create a "
27273 "non-sparse file of zeroes, use L</fallocate64> instead."
27274 msgstr ""
27275
27276 #. type: =head2
27277 #: ../fish/guestfish-actions.pod:4517
27278 msgid "tune2fs-l"
27279 msgstr ""
27280
27281 #. type: verbatim
27282 #: ../fish/guestfish-actions.pod:4519
27283 #, no-wrap
27284 msgid ""
27285 " tune2fs-l device\n"
27286 "\n"
27287 msgstr ""
27288
27289 #. type: =head2
27290 #: ../fish/guestfish-actions.pod:4529
27291 msgid "txz-in"
27292 msgstr ""
27293
27294 #. type: verbatim
27295 #: ../fish/guestfish-actions.pod:4531
27296 #, no-wrap
27297 msgid ""
27298 " txz-in (tarball|-) directory\n"
27299 "\n"
27300 msgstr ""
27301
27302 #. type: =head2
27303 #: ../fish/guestfish-actions.pod:4538
27304 msgid "txz-out"
27305 msgstr ""
27306
27307 #. type: verbatim
27308 #: ../fish/guestfish-actions.pod:4540
27309 #, no-wrap
27310 msgid ""
27311 " txz-out directory (tarball|-)\n"
27312 "\n"
27313 msgstr ""
27314
27315 #. type: =head2
27316 #: ../fish/guestfish-actions.pod:4547
27317 msgid "umask"
27318 msgstr ""
27319
27320 #. type: verbatim
27321 #: ../fish/guestfish-actions.pod:4549
27322 #, no-wrap
27323 msgid ""
27324 " umask mask\n"
27325 "\n"
27326 msgstr ""
27327
27328 #. type: textblock
27329 #: ../fish/guestfish-actions.pod:4563
27330 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
27331 msgstr ""
27332
27333 #. type: =head2
27334 #: ../fish/guestfish-actions.pod:4568
27335 msgid "umount"
27336 msgstr ""
27337
27338 #. type: =head2
27339 #: ../fish/guestfish-actions.pod:4570
27340 msgid "unmount"
27341 msgstr ""
27342
27343 #. type: verbatim
27344 #: ../fish/guestfish-actions.pod:4572
27345 #, no-wrap
27346 msgid ""
27347 " umount pathordevice\n"
27348 "\n"
27349 msgstr ""
27350
27351 #. type: =head2
27352 #: ../fish/guestfish-actions.pod:4578
27353 msgid "umount-all"
27354 msgstr ""
27355
27356 #. type: =head2
27357 #: ../fish/guestfish-actions.pod:4580
27358 msgid "unmount-all"
27359 msgstr ""
27360
27361 #. type: verbatim
27362 #: ../fish/guestfish-actions.pod:4582
27363 #, no-wrap
27364 msgid ""
27365 " umount-all\n"
27366 "\n"
27367 msgstr ""
27368
27369 #. type: =head2
27370 #: ../fish/guestfish-actions.pod:4588
27371 msgid "upload"
27372 msgstr ""
27373
27374 #. type: verbatim
27375 #: ../fish/guestfish-actions.pod:4590
27376 #, no-wrap
27377 msgid ""
27378 " upload (filename|-) remotefilename\n"
27379 "\n"
27380 msgstr ""
27381
27382 #. type: textblock
27383 #: ../fish/guestfish-actions.pod:4597
27384 msgid "See also L</download>."
27385 msgstr ""
27386
27387 #. type: =head2
27388 #: ../fish/guestfish-actions.pod:4601
27389 msgid "upload-offset"
27390 msgstr ""
27391
27392 #. type: verbatim
27393 #: ../fish/guestfish-actions.pod:4603
27394 #, no-wrap
27395 msgid ""
27396 " upload-offset (filename|-) remotefilename offset\n"
27397 "\n"
27398 msgstr ""
27399
27400 #. type: textblock
27401 #: ../fish/guestfish-actions.pod:4615
27402 msgid ""
27403 "Note that there is no limit on the amount of data that can be uploaded with "
27404 "this call, unlike with L</pwrite>, and this call always writes the full "
27405 "amount unless an error occurs."
27406 msgstr ""
27407
27408 #. type: textblock
27409 #: ../fish/guestfish-actions.pod:4620
27410 msgid "See also L</upload>, L</pwrite>."
27411 msgstr ""
27412
27413 #. type: =head2
27414 #: ../fish/guestfish-actions.pod:4624
27415 msgid "utimens"
27416 msgstr ""
27417
27418 #. type: verbatim
27419 #: ../fish/guestfish-actions.pod:4626
27420 #, no-wrap
27421 msgid ""
27422 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
27423 "\n"
27424 msgstr ""
27425
27426 #. type: =head2
27427 #: ../fish/guestfish-actions.pod:4645
27428 msgid "version"
27429 msgstr ""
27430
27431 #. type: verbatim
27432 #: ../fish/guestfish-actions.pod:4647
27433 #, no-wrap
27434 msgid ""
27435 " version\n"
27436 "\n"
27437 msgstr ""
27438
27439 #. type: textblock
27440 #: ../fish/guestfish-actions.pod:4674
27441 msgid ""
27442 "I<Note:> Don't use this call to test for availability of features.  In "
27443 "enterprise distributions we backport features from later versions into "
27444 "earlier versions, making this an unreliable way to test for features.  Use "
27445 "L</available> instead."
27446 msgstr ""
27447
27448 #. type: =head2
27449 #: ../fish/guestfish-actions.pod:4680
27450 msgid "vfs-label"
27451 msgstr ""
27452
27453 #. type: verbatim
27454 #: ../fish/guestfish-actions.pod:4682
27455 #, no-wrap
27456 msgid ""
27457 " vfs-label device\n"
27458 "\n"
27459 msgstr ""
27460
27461 #. type: textblock
27462 #: ../fish/guestfish-actions.pod:4689
27463 msgid "To find a filesystem from the label, use L</findfs-label>."
27464 msgstr ""
27465
27466 #. type: =head2
27467 #: ../fish/guestfish-actions.pod:4691
27468 msgid "vfs-type"
27469 msgstr ""
27470
27471 #. type: verbatim
27472 #: ../fish/guestfish-actions.pod:4693
27473 #, no-wrap
27474 msgid ""
27475 " vfs-type device\n"
27476 "\n"
27477 msgstr ""
27478
27479 #. type: =head2
27480 #: ../fish/guestfish-actions.pod:4703
27481 msgid "vfs-uuid"
27482 msgstr ""
27483
27484 #. type: verbatim
27485 #: ../fish/guestfish-actions.pod:4705
27486 #, no-wrap
27487 msgid ""
27488 " vfs-uuid device\n"
27489 "\n"
27490 msgstr ""
27491
27492 #. type: textblock
27493 #: ../fish/guestfish-actions.pod:4712
27494 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
27495 msgstr ""
27496
27497 #. type: =head2
27498 #: ../fish/guestfish-actions.pod:4714
27499 msgid "vg-activate"
27500 msgstr ""
27501
27502 #. type: verbatim
27503 #: ../fish/guestfish-actions.pod:4716
27504 #, no-wrap
27505 msgid ""
27506 " vg-activate true|false 'volgroups ...'\n"
27507 "\n"
27508 msgstr ""
27509
27510 #. type: =head2
27511 #: ../fish/guestfish-actions.pod:4729
27512 msgid "vg-activate-all"
27513 msgstr ""
27514
27515 #. type: verbatim
27516 #: ../fish/guestfish-actions.pod:4731
27517 #, no-wrap
27518 msgid ""
27519 " vg-activate-all true|false\n"
27520 "\n"
27521 msgstr ""
27522
27523 #. type: =head2
27524 #: ../fish/guestfish-actions.pod:4741
27525 msgid "vgcreate"
27526 msgstr ""
27527
27528 #. type: verbatim
27529 #: ../fish/guestfish-actions.pod:4743
27530 #, no-wrap
27531 msgid ""
27532 " vgcreate volgroup 'physvols ...'\n"
27533 "\n"
27534 msgstr ""
27535
27536 #. type: =head2
27537 #: ../fish/guestfish-actions.pod:4748
27538 msgid "vglvuuids"
27539 msgstr ""
27540
27541 #. type: verbatim
27542 #: ../fish/guestfish-actions.pod:4750
27543 #, no-wrap
27544 msgid ""
27545 " vglvuuids vgname\n"
27546 "\n"
27547 msgstr ""
27548
27549 #. type: textblock
27550 #: ../fish/guestfish-actions.pod:4755
27551 msgid ""
27552 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
27553 "logical volumes and volume groups."
27554 msgstr ""
27555
27556 #. type: textblock
27557 #: ../fish/guestfish-actions.pod:4758
27558 msgid "See also L</vgpvuuids>."
27559 msgstr ""
27560
27561 #. type: =head2
27562 #: ../fish/guestfish-actions.pod:4760
27563 msgid "vgpvuuids"
27564 msgstr ""
27565
27566 #. type: verbatim
27567 #: ../fish/guestfish-actions.pod:4762
27568 #, no-wrap
27569 msgid ""
27570 " vgpvuuids vgname\n"
27571 "\n"
27572 msgstr ""
27573
27574 #. type: textblock
27575 #: ../fish/guestfish-actions.pod:4767
27576 msgid ""
27577 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
27578 "physical volumes and volume groups."
27579 msgstr ""
27580
27581 #. type: textblock
27582 #: ../fish/guestfish-actions.pod:4770
27583 msgid "See also L</vglvuuids>."
27584 msgstr ""
27585
27586 #. type: =head2
27587 #: ../fish/guestfish-actions.pod:4772
27588 msgid "vgremove"
27589 msgstr ""
27590
27591 #. type: verbatim
27592 #: ../fish/guestfish-actions.pod:4774
27593 #, no-wrap
27594 msgid ""
27595 " vgremove vgname\n"
27596 "\n"
27597 msgstr ""
27598
27599 #. type: =head2
27600 #: ../fish/guestfish-actions.pod:4781
27601 msgid "vgrename"
27602 msgstr ""
27603
27604 #. type: verbatim
27605 #: ../fish/guestfish-actions.pod:4783
27606 #, no-wrap
27607 msgid ""
27608 " vgrename volgroup newvolgroup\n"
27609 "\n"
27610 msgstr ""
27611
27612 #. type: =head2
27613 #: ../fish/guestfish-actions.pod:4787
27614 msgid "vgs"
27615 msgstr ""
27616
27617 #. type: verbatim
27618 #: ../fish/guestfish-actions.pod:4789
27619 #, no-wrap
27620 msgid ""
27621 " vgs\n"
27622 "\n"
27623 msgstr ""
27624
27625 #. type: textblock
27626 #: ../fish/guestfish-actions.pod:4797
27627 msgid "See also L</vgs-full>."
27628 msgstr ""
27629
27630 #. type: =head2
27631 #: ../fish/guestfish-actions.pod:4799
27632 msgid "vgs-full"
27633 msgstr ""
27634
27635 #. type: verbatim
27636 #: ../fish/guestfish-actions.pod:4801
27637 #, no-wrap
27638 msgid ""
27639 " vgs-full\n"
27640 "\n"
27641 msgstr ""
27642
27643 #. type: =head2
27644 #: ../fish/guestfish-actions.pod:4806
27645 msgid "vgscan"
27646 msgstr ""
27647
27648 #. type: verbatim
27649 #: ../fish/guestfish-actions.pod:4808
27650 #, no-wrap
27651 msgid ""
27652 " vgscan\n"
27653 "\n"
27654 msgstr ""
27655
27656 #. type: =head2
27657 #: ../fish/guestfish-actions.pod:4813
27658 msgid "vguuid"
27659 msgstr ""
27660
27661 #. type: verbatim
27662 #: ../fish/guestfish-actions.pod:4815
27663 #, no-wrap
27664 msgid ""
27665 " vguuid vgname\n"
27666 "\n"
27667 msgstr ""
27668
27669 #. type: =head2
27670 #: ../fish/guestfish-actions.pod:4819
27671 msgid "wc-c"
27672 msgstr ""
27673
27674 #. type: verbatim
27675 #: ../fish/guestfish-actions.pod:4821
27676 #, no-wrap
27677 msgid ""
27678 " wc-c path\n"
27679 "\n"
27680 msgstr ""
27681
27682 #. type: =head2
27683 #: ../fish/guestfish-actions.pod:4826
27684 msgid "wc-l"
27685 msgstr ""
27686
27687 #. type: verbatim
27688 #: ../fish/guestfish-actions.pod:4828
27689 #, no-wrap
27690 msgid ""
27691 " wc-l path\n"
27692 "\n"
27693 msgstr ""
27694
27695 #. type: =head2
27696 #: ../fish/guestfish-actions.pod:4833
27697 msgid "wc-w"
27698 msgstr ""
27699
27700 #. type: verbatim
27701 #: ../fish/guestfish-actions.pod:4835
27702 #, no-wrap
27703 msgid ""
27704 " wc-w path\n"
27705 "\n"
27706 msgstr ""
27707
27708 #. type: =head2
27709 #: ../fish/guestfish-actions.pod:4840
27710 msgid "write"
27711 msgstr ""
27712
27713 #. type: verbatim
27714 #: ../fish/guestfish-actions.pod:4842
27715 #, no-wrap
27716 msgid ""
27717 " write path content\n"
27718 "\n"
27719 msgstr ""
27720
27721 #. type: =head2
27722 #: ../fish/guestfish-actions.pod:4850
27723 msgid "write-file"
27724 msgstr ""
27725
27726 #. type: verbatim
27727 #: ../fish/guestfish-actions.pod:4852
27728 #, no-wrap
27729 msgid ""
27730 " write-file path content size\n"
27731 "\n"
27732 msgstr ""
27733
27734 #. type: =head2
27735 #: ../fish/guestfish-actions.pod:4875
27736 msgid "zegrep"
27737 msgstr ""
27738
27739 #. type: verbatim
27740 #: ../fish/guestfish-actions.pod:4877
27741 #, no-wrap
27742 msgid ""
27743 " zegrep regex path\n"
27744 "\n"
27745 msgstr ""
27746
27747 #. type: =head2
27748 #: ../fish/guestfish-actions.pod:4885
27749 msgid "zegrepi"
27750 msgstr ""
27751
27752 #. type: verbatim
27753 #: ../fish/guestfish-actions.pod:4887
27754 #, no-wrap
27755 msgid ""
27756 " zegrepi regex path\n"
27757 "\n"
27758 msgstr ""
27759
27760 #. type: =head2
27761 #: ../fish/guestfish-actions.pod:4895
27762 msgid "zero"
27763 msgstr ""
27764
27765 #. type: verbatim
27766 #: ../fish/guestfish-actions.pod:4897
27767 #, no-wrap
27768 msgid ""
27769 " zero device\n"
27770 "\n"
27771 msgstr ""
27772
27773 #. type: textblock
27774 #: ../fish/guestfish-actions.pod:4905
27775 msgid "See also: L</zero-device>, L</scrub-device>."
27776 msgstr ""
27777
27778 #. type: =head2
27779 #: ../fish/guestfish-actions.pod:4907
27780 msgid "zero-device"
27781 msgstr ""
27782
27783 #. type: verbatim
27784 #: ../fish/guestfish-actions.pod:4909
27785 #, no-wrap
27786 msgid ""
27787 " zero-device device\n"
27788 "\n"
27789 msgstr ""
27790
27791 #. type: textblock
27792 #: ../fish/guestfish-actions.pod:4911
27793 msgid ""
27794 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
27795 "which just zeroes the first few blocks of a device."
27796 msgstr ""
27797
27798 #. type: =head2
27799 #: ../fish/guestfish-actions.pod:4918
27800 msgid "zerofree"
27801 msgstr ""
27802
27803 #. type: verbatim
27804 #: ../fish/guestfish-actions.pod:4920
27805 #, no-wrap
27806 msgid ""
27807 " zerofree device\n"
27808 "\n"
27809 msgstr ""
27810
27811 #. type: =head2
27812 #: ../fish/guestfish-actions.pod:4933
27813 msgid "zfgrep"
27814 msgstr ""
27815
27816 #. type: verbatim
27817 #: ../fish/guestfish-actions.pod:4935
27818 #, no-wrap
27819 msgid ""
27820 " zfgrep pattern path\n"
27821 "\n"
27822 msgstr ""
27823
27824 #. type: =head2
27825 #: ../fish/guestfish-actions.pod:4943
27826 msgid "zfgrepi"
27827 msgstr ""
27828
27829 #. type: verbatim
27830 #: ../fish/guestfish-actions.pod:4945
27831 #, no-wrap
27832 msgid ""
27833 " zfgrepi pattern path\n"
27834 "\n"
27835 msgstr ""
27836
27837 #. type: =head2
27838 #: ../fish/guestfish-actions.pod:4953
27839 msgid "zfile"
27840 msgstr ""
27841
27842 #. type: verbatim
27843 #: ../fish/guestfish-actions.pod:4955
27844 #, no-wrap
27845 msgid ""
27846 " zfile meth path\n"
27847 "\n"
27848 msgstr ""
27849
27850 #. type: textblock
27851 #: ../fish/guestfish-actions.pod:4962
27852 msgid ""
27853 "Since 1.0.63, use L</file> instead which can now process compressed files."
27854 msgstr ""
27855
27856 #. type: =head2
27857 #: ../fish/guestfish-actions.pod:4972
27858 msgid "zgrep"
27859 msgstr ""
27860
27861 #. type: verbatim
27862 #: ../fish/guestfish-actions.pod:4974
27863 #, no-wrap
27864 msgid ""
27865 " zgrep regex path\n"
27866 "\n"
27867 msgstr ""
27868
27869 #. type: =head2
27870 #: ../fish/guestfish-actions.pod:4982
27871 msgid "zgrepi"
27872 msgstr ""
27873
27874 #. type: verbatim
27875 #: ../fish/guestfish-actions.pod:4984
27876 #, no-wrap
27877 msgid ""
27878 " zgrepi regex path\n"
27879 "\n"
27880 msgstr ""
27881
27882 #. type: =head2
27883 #: ../fish/guestfish-commands.pod:1
27884 msgid "alloc"
27885 msgstr ""
27886
27887 #. type: =head2
27888 #: ../fish/guestfish-commands.pod:3
27889 msgid "allocate"
27890 msgstr ""
27891
27892 #. type: verbatim
27893 #: ../fish/guestfish-commands.pod:5
27894 #, no-wrap
27895 msgid ""
27896 " alloc filename size\n"
27897 "\n"
27898 msgstr ""
27899
27900 #. type: textblock
27901 #: ../fish/guestfish-commands.pod:7
27902 msgid ""
27903 "This creates an empty (zeroed) file of the given size, and then adds so it "
27904 "can be further examined."
27905 msgstr ""
27906
27907 #. type: textblock
27908 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
27909 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
27910 msgstr ""
27911
27912 #. type: textblock
27913 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
27914 msgid "Size can be specified using standard suffixes, eg. C<1M>."
27915 msgstr ""
27916
27917 #. type: textblock
27918 #: ../fish/guestfish-commands.pod:14
27919 msgid ""
27920 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
27921 "image, see L</PREPARED DISK IMAGES>."
27922 msgstr ""
27923
27924 #. type: =head2
27925 #: ../fish/guestfish-commands.pod:17
27926 msgid "copy-in"
27927 msgstr ""
27928
27929 #. type: verbatim
27930 #: ../fish/guestfish-commands.pod:19
27931 #, no-wrap
27932 msgid ""
27933 " copy-in local [local ...] /remotedir\n"
27934 "\n"
27935 msgstr ""
27936
27937 #. type: textblock
27938 #: ../fish/guestfish-commands.pod:21
27939 msgid ""
27940 "C<copy-in> copies local files or directories recursively into the disk "
27941 "image, placing them in the directory called C</remotedir> (which must "
27942 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
27943 "other commands as necessary."
27944 msgstr ""
27945
27946 #. type: textblock
27947 #: ../fish/guestfish-commands.pod:26
27948 msgid ""
27949 "Multiple local files and directories can be specified, but the last "
27950 "parameter must always be a remote directory.  Wildcards cannot be used."
27951 msgstr ""
27952
27953 #. type: =head2
27954 #: ../fish/guestfish-commands.pod:30
27955 msgid "copy-out"
27956 msgstr ""
27957
27958 #. type: verbatim
27959 #: ../fish/guestfish-commands.pod:32
27960 #, no-wrap
27961 msgid ""
27962 " copy-out remote [remote ...] localdir\n"
27963 "\n"
27964 msgstr ""
27965
27966 #. type: textblock
27967 #: ../fish/guestfish-commands.pod:34
27968 msgid ""
27969 "C<copy-out> copies remote files or directories recursively out of the disk "
27970 "image, placing them on the host disk in a local directory called C<localdir> "
27971 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
27972 "download>, L</tar-out> and other commands as necessary."
27973 msgstr ""
27974
27975 #. type: textblock
27976 #: ../fish/guestfish-commands.pod:40
27977 msgid ""
27978 "Multiple remote files and directories can be specified, but the last "
27979 "parameter must always be a local directory.  To download to the current "
27980 "directory, use C<.> as in:"
27981 msgstr ""
27982
27983 #. type: verbatim
27984 #: ../fish/guestfish-commands.pod:44
27985 #, no-wrap
27986 msgid ""
27987 " copy-out /home .\n"
27988 "\n"
27989 msgstr ""
27990
27991 #. type: textblock
27992 #: ../fish/guestfish-commands.pod:46
27993 msgid ""
27994 "Wildcards cannot be used in the ordinary command, but you can use them with "
27995 "the help of L</glob> like this:"
27996 msgstr ""
27997
27998 #. type: verbatim
27999 #: ../fish/guestfish-commands.pod:49
28000 #, no-wrap
28001 msgid ""
28002 " glob copy-out /home/* .\n"
28003 "\n"
28004 msgstr ""
28005
28006 #. type: =head2
28007 #: ../fish/guestfish-commands.pod:51
28008 msgid "echo"
28009 msgstr ""
28010
28011 #. type: verbatim
28012 #: ../fish/guestfish-commands.pod:53
28013 #, no-wrap
28014 msgid ""
28015 " echo [params ...]\n"
28016 "\n"
28017 msgstr ""
28018
28019 #. type: textblock
28020 #: ../fish/guestfish-commands.pod:55
28021 msgid "This echos the parameters to the terminal."
28022 msgstr ""
28023
28024 #. type: =head2
28025 #: ../fish/guestfish-commands.pod:57
28026 msgid "edit"
28027 msgstr ""
28028
28029 #. type: =head2
28030 #: ../fish/guestfish-commands.pod:59
28031 msgid "vi"
28032 msgstr ""
28033
28034 #. type: =head2
28035 #: ../fish/guestfish-commands.pod:61
28036 msgid "emacs"
28037 msgstr ""
28038
28039 #. type: verbatim
28040 #: ../fish/guestfish-commands.pod:63
28041 #, no-wrap
28042 msgid ""
28043 " edit filename\n"
28044 "\n"
28045 msgstr ""
28046
28047 #. type: textblock
28048 #: ../fish/guestfish-commands.pod:65
28049 msgid ""
28050 "This is used to edit a file.  It downloads the file, edits it locally using "
28051 "your editor, then uploads the result."
28052 msgstr ""
28053
28054 #. type: textblock
28055 #: ../fish/guestfish-commands.pod:68
28056 msgid ""
28057 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
28058 "or C<emacs> you will get those corresponding editors."
28059 msgstr ""
28060
28061 #. type: =head2
28062 #: ../fish/guestfish-commands.pod:72
28063 msgid "glob"
28064 msgstr ""
28065
28066 #. type: verbatim
28067 #: ../fish/guestfish-commands.pod:74
28068 #, no-wrap
28069 msgid ""
28070 " glob command args...\n"
28071 "\n"
28072 msgstr ""
28073
28074 #. type: textblock
28075 #: ../fish/guestfish-commands.pod:76
28076 msgid ""
28077 "Expand wildcards in any paths in the args list, and run C<command> "
28078 "repeatedly on each matching path."
28079 msgstr ""
28080
28081 #. type: textblock
28082 #: ../fish/guestfish-commands.pod:79
28083 msgid "See L</WILDCARDS AND GLOBBING>."
28084 msgstr ""
28085
28086 #. type: =head2
28087 #: ../fish/guestfish-commands.pod:81
28088 msgid "hexedit"
28089 msgstr ""
28090
28091 #. type: verbatim
28092 #: ../fish/guestfish-commands.pod:83
28093 #, no-wrap
28094 msgid ""
28095 " hexedit <filename|device>\n"
28096 " hexedit <filename|device> <max>\n"
28097 " hexedit <filename|device> <start> <max>\n"
28098 "\n"
28099 msgstr ""
28100
28101 #. type: textblock
28102 #: ../fish/guestfish-commands.pod:87
28103 msgid ""
28104 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
28105 "device."
28106 msgstr ""
28107
28108 #. type: textblock
28109 #: ../fish/guestfish-commands.pod:90
28110 msgid ""
28111 "This command works by downloading potentially the whole file or device, "
28112 "editing it locally, then uploading it.  If the file or device is large, you "
28113 "have to specify which part you wish to edit by using C<max> and/or C<start> "
28114 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
28115 "usual modifiers allowed such as C<1M> (1 megabyte)."
28116 msgstr ""
28117
28118 #. type: textblock
28119 #: ../fish/guestfish-commands.pod:97
28120 msgid "For example to edit the first few sectors of a disk you might do:"
28121 msgstr ""
28122
28123 #. type: verbatim
28124 #: ../fish/guestfish-commands.pod:100
28125 #, no-wrap
28126 msgid ""
28127 " hexedit /dev/sda 1M\n"
28128 "\n"
28129 msgstr ""
28130
28131 #. type: textblock
28132 #: ../fish/guestfish-commands.pod:102
28133 msgid ""
28134 "which would allow you to edit anywhere within the first megabyte of the disk."
28135 msgstr ""
28136
28137 #. type: textblock
28138 #: ../fish/guestfish-commands.pod:105
28139 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
28140 msgstr ""
28141
28142 #. type: verbatim
28143 #: ../fish/guestfish-commands.pod:107
28144 #, no-wrap
28145 msgid ""
28146 " hexedit /dev/sda1 0x400 0x400\n"
28147 "\n"
28148 msgstr ""
28149
28150 #. type: textblock
28151 #: ../fish/guestfish-commands.pod:109
28152 msgid "(assuming the superblock is in the standard location)."
28153 msgstr ""
28154
28155 #. type: textblock
28156 #: ../fish/guestfish-commands.pod:111
28157 msgid ""
28158 "This command requires the external L<hexedit(1)> program.  You can specify "
28159 "another program to use by setting the C<HEXEDITOR> environment variable."
28160 msgstr ""
28161
28162 #. type: textblock
28163 #: ../fish/guestfish-commands.pod:115
28164 msgid "See also L</hexdump>."
28165 msgstr ""
28166
28167 #. type: =head2
28168 #: ../fish/guestfish-commands.pod:117
28169 msgid "lcd"
28170 msgstr ""
28171
28172 #. type: verbatim
28173 #: ../fish/guestfish-commands.pod:119
28174 #, no-wrap
28175 msgid ""
28176 " lcd directory\n"
28177 "\n"
28178 msgstr ""
28179
28180 #. type: textblock
28181 #: ../fish/guestfish-commands.pod:121
28182 msgid ""
28183 "Change the local directory, ie. the current directory of guestfish itself."
28184 msgstr ""
28185
28186 #. type: textblock
28187 #: ../fish/guestfish-commands.pod:124
28188 msgid "Note that C<!cd> won't do what you might expect."
28189 msgstr ""
28190
28191 #. type: =head2
28192 #: ../fish/guestfish-commands.pod:126
28193 msgid "man"
28194 msgstr ""
28195
28196 #. type: =head2
28197 #: ../fish/guestfish-commands.pod:128
28198 msgid "manual"
28199 msgstr ""
28200
28201 #. type: verbatim
28202 #: ../fish/guestfish-commands.pod:130
28203 #, no-wrap
28204 msgid ""
28205 "  man\n"
28206 "\n"
28207 msgstr ""
28208
28209 #. type: textblock
28210 #: ../fish/guestfish-commands.pod:132
28211 msgid "Opens the manual page for guestfish."
28212 msgstr ""
28213
28214 #. type: =head2
28215 #: ../fish/guestfish-commands.pod:134
28216 msgid "more"
28217 msgstr ""
28218
28219 #. type: =head2
28220 #: ../fish/guestfish-commands.pod:136
28221 msgid "less"
28222 msgstr ""
28223
28224 #. type: verbatim
28225 #: ../fish/guestfish-commands.pod:138
28226 #, no-wrap
28227 msgid ""
28228 " more filename\n"
28229 "\n"
28230 msgstr ""
28231
28232 #. type: verbatim
28233 #: ../fish/guestfish-commands.pod:140
28234 #, no-wrap
28235 msgid ""
28236 " less filename\n"
28237 "\n"
28238 msgstr ""
28239
28240 #. type: textblock
28241 #: ../fish/guestfish-commands.pod:142
28242 msgid "This is used to view a file."
28243 msgstr ""
28244
28245 #. type: textblock
28246 #: ../fish/guestfish-commands.pod:144
28247 msgid ""
28248 "The default viewer is C<$PAGER>.  However if you use the alternate command "
28249 "C<less> you will get the C<less> command specifically."
28250 msgstr ""
28251
28252 #. type: =head2
28253 #: ../fish/guestfish-commands.pod:147
28254 msgid "reopen"
28255 msgstr ""
28256
28257 #. type: verbatim
28258 #: ../fish/guestfish-commands.pod:149
28259 #, no-wrap
28260 msgid ""
28261 "  reopen\n"
28262 "\n"
28263 msgstr ""
28264
28265 #. type: textblock
28266 #: ../fish/guestfish-commands.pod:151
28267 msgid ""
28268 "Close and reopen the libguestfs handle.  It is not necessary to use this "
28269 "normally, because the handle is closed properly when guestfish exits.  "
28270 "However this is occasionally useful for testing."
28271 msgstr ""
28272
28273 #. type: =head2
28274 #: ../fish/guestfish-commands.pod:155
28275 msgid "sparse"
28276 msgstr ""
28277
28278 #. type: verbatim
28279 #: ../fish/guestfish-commands.pod:157
28280 #, no-wrap
28281 msgid ""
28282 " sparse filename size\n"
28283 "\n"
28284 msgstr ""
28285
28286 #. type: textblock
28287 #: ../fish/guestfish-commands.pod:159
28288 msgid ""
28289 "This creates an empty sparse file of the given size, and then adds so it can "
28290 "be further examined."
28291 msgstr ""
28292
28293 #. type: textblock
28294 #: ../fish/guestfish-commands.pod:162
28295 msgid ""
28296 "In all respects it works the same as the L</alloc> command, except that the "
28297 "image file is allocated sparsely, which means that disk blocks are not "
28298 "assigned to the file until they are needed.  Sparse disk files only use "
28299 "space when written to, but they are slower and there is a danger you could "
28300 "run out of real disk space during a write operation."
28301 msgstr ""
28302
28303 #. type: =head2
28304 #: ../fish/guestfish-commands.pod:172
28305 msgid "supported"
28306 msgstr ""
28307
28308 #. type: verbatim
28309 #: ../fish/guestfish-commands.pod:174
28310 #, no-wrap
28311 msgid ""
28312 " supported\n"
28313 "\n"
28314 msgstr ""
28315
28316 #. type: textblock
28317 #: ../fish/guestfish-commands.pod:176
28318 msgid ""
28319 "This command returns a list of the optional groups known to the daemon, and "
28320 "indicates which ones are supported by this build of the libguestfs appliance."
28321 msgstr ""
28322
28323 #. type: textblock
28324 #: ../fish/guestfish-commands.pod:180
28325 msgid "See also L<guestfs(3)/AVAILABILITY>."
28326 msgstr ""
28327
28328 #. type: =head2
28329 #: ../fish/guestfish-commands.pod:182
28330 msgid "time"
28331 msgstr ""
28332
28333 #. type: verbatim
28334 #: ../fish/guestfish-commands.pod:184
28335 #, no-wrap
28336 msgid ""
28337 " time command args...\n"
28338 "\n"
28339 msgstr ""
28340
28341 #. type: textblock
28342 #: ../fish/guestfish-commands.pod:186
28343 msgid ""
28344 "Run the command as usual, but print the elapsed time afterwards.  This can "
28345 "be useful for benchmarking operations."
28346 msgstr ""
28347
28348 #. type: textblock
28349 #: ../test-tool/libguestfs-test-tool.pod:5
28350 msgid "libguestfs-test-tool - End user tests for libguestfs"
28351 msgstr ""
28352
28353 #. type: verbatim
28354 #: ../test-tool/libguestfs-test-tool.pod:9
28355 #, no-wrap
28356 msgid ""
28357 " libguestfs-test-tool [--options]\n"
28358 "\n"
28359 msgstr ""
28360
28361 #. type: textblock
28362 #: ../test-tool/libguestfs-test-tool.pod:13
28363 msgid ""
28364 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
28365 "and developers, to allow them to check basic libguestfs functionality is "
28366 "working.  This is needed because libguestfs occasionally breaks for reasons "
28367 "beyond our control: usually because of changes in the underlying qemu or "
28368 "kernel packages, or the host environment."
28369 msgstr ""
28370
28371 #. type: textblock
28372 #: ../test-tool/libguestfs-test-tool.pod:20
28373 msgid "If you suspect a problem in libguestfs, then just run:"
28374 msgstr ""
28375
28376 #. type: verbatim
28377 #: ../test-tool/libguestfs-test-tool.pod:22
28378 #, no-wrap
28379 msgid ""
28380 " libguestfs-test-tool\n"
28381 "\n"
28382 msgstr ""
28383
28384 #. type: textblock
28385 #: ../test-tool/libguestfs-test-tool.pod:24
28386 msgid "It will print lots of diagnostic messages."
28387 msgstr ""
28388
28389 #. type: textblock
28390 #: ../test-tool/libguestfs-test-tool.pod:26
28391 msgid "If it runs to completion successfully, you will see this near the end:"
28392 msgstr ""
28393
28394 #. type: verbatim
28395 #: ../test-tool/libguestfs-test-tool.pod:28
28396 #, no-wrap
28397 msgid ""
28398 " ===== TEST FINISHED OK =====\n"
28399 "\n"
28400 msgstr ""
28401
28402 #. type: textblock
28403 #: ../test-tool/libguestfs-test-tool.pod:30
28404 msgid "and the test tool will exit with code 0."
28405 msgstr ""
28406
28407 #. type: textblock
28408 #: ../test-tool/libguestfs-test-tool.pod:32
28409 msgid ""
28410 "If it fails (and/or exits with non-zero error code), please paste the "
28411 "B<complete, unedited> output of the test tool into a bug report.  More "
28412 "information about reporting bugs can be found on the L<http://libguestfs.org/"
28413 "> website."
28414 msgstr ""
28415
28416 #. type: =item
28417 #: ../test-tool/libguestfs-test-tool.pod:41
28418 msgid "I<--help>"
28419 msgstr ""
28420
28421 #. type: textblock
28422 #: ../test-tool/libguestfs-test-tool.pod:43
28423 msgid "Display short usage information and exit."
28424 msgstr ""
28425
28426 #. type: =item
28427 #: ../test-tool/libguestfs-test-tool.pod:45
28428 msgid "I<--qemu qemu_binary>"
28429 msgstr ""
28430
28431 #. type: textblock
28432 #: ../test-tool/libguestfs-test-tool.pod:47
28433 msgid ""
28434 "If you have downloaded another qemu binary, point this option at the full "
28435 "path of the binary to try it."
28436 msgstr ""
28437
28438 #. type: =item
28439 #: ../test-tool/libguestfs-test-tool.pod:50
28440 msgid "I<--qemudir qemu_source_dir>"
28441 msgstr ""
28442
28443 #. type: textblock
28444 #: ../test-tool/libguestfs-test-tool.pod:52
28445 msgid ""
28446 "If you have compiled qemu from source, point this option at the source "
28447 "directory to try it."
28448 msgstr ""
28449
28450 #. type: =item
28451 #: ../test-tool/libguestfs-test-tool.pod:55
28452 msgid "I<--timeout N>"
28453 msgstr ""
28454
28455 #. type: textblock
28456 #: ../test-tool/libguestfs-test-tool.pod:57
28457 msgid ""
28458 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
28459 "does not usually need to be adjusted unless your machine is very slow."
28460 msgstr ""
28461
28462 #. type: =head1
28463 #: ../test-tool/libguestfs-test-tool.pod:63
28464 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
28465 msgstr ""
28466
28467 #. type: textblock
28468 #: ../test-tool/libguestfs-test-tool.pod:65
28469 msgid ""
28470 "If you have compiled another version of qemu from source and would like to "
28471 "try that, then you can use the I<--qemudir> option to point to the qemu "
28472 "source directory."
28473 msgstr ""
28474
28475 #. type: textblock
28476 #: ../test-tool/libguestfs-test-tool.pod:69
28477 msgid ""
28478 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
28479 "option to point to the binary."
28480 msgstr ""
28481
28482 #. type: textblock
28483 #: ../test-tool/libguestfs-test-tool.pod:72
28484 msgid ""
28485 "When using an alternate qemu with libguestfs, usually you would need to "
28486 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
28487 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
28488 "use either of the I<--qemudir> or I<--qemu> options."
28489 msgstr ""
28490
28491 #. type: textblock
28492 #: ../test-tool/libguestfs-test-tool.pod:79
28493 msgid ""
28494 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
28495 "I<1> if there was an error."
28496 msgstr ""
28497
28498 #. type: textblock
28499 #: ../test-tool/libguestfs-test-tool.pod:84
28500 msgid ""
28501 "For the full list of environment variables which may affect libguestfs, "
28502 "please see the L<guestfs(3)> manual page."
28503 msgstr ""
28504
28505 #. type: textblock
28506 #: ../test-tool/libguestfs-test-tool.pod:89
28507 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
28508 msgstr ""
28509
28510 #. type: textblock
28511 #: ../fuse/guestmount.pod:5
28512 msgid ""
28513 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
28514 msgstr ""
28515
28516 #. type: verbatim
28517 #: ../fuse/guestmount.pod:9
28518 #, no-wrap
28519 msgid ""
28520 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
28521 "\n"
28522 msgstr ""
28523
28524 #. type: verbatim
28525 #: ../fuse/guestmount.pod:11
28526 #, no-wrap
28527 msgid ""
28528 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
28529 "\n"
28530 msgstr ""
28531
28532 #. type: verbatim
28533 #: ../fuse/guestmount.pod:13
28534 #, no-wrap
28535 msgid ""
28536 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
28537 "\n"
28538 msgstr ""
28539
28540 #. type: textblock
28541 #: ../fuse/guestmount.pod:17
28542 msgid ""
28543 "You must I<not> use C<guestmount> in read-write mode on live virtual "
28544 "machines.  If you do this, you risk disk corruption in the VM."
28545 msgstr ""
28546
28547 #. type: textblock
28548 #: ../fuse/guestmount.pod:22
28549 msgid ""
28550 "The guestmount program can be used to mount virtual machine filesystems and "
28551 "other disk images on the host.  It uses libguestfs for access to the guest "
28552 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
28553 "a mountable device."
28554 msgstr ""
28555
28556 #. type: textblock
28557 #: ../fuse/guestmount.pod:27
28558 msgid ""
28559 "Along with other options, you have to give at least one device (I<-a> "
28560 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
28561 "option) or use the I<-i> inspection option.  How this works is better "
28562 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
28563 "below."
28564 msgstr ""
28565
28566 #. type: textblock
28567 #: ../fuse/guestmount.pod:33
28568 msgid ""
28569 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
28570 "by you, and the filesystem will not be visible to any other users unless you "
28571 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
28572 "the filesystem, use the C<fusermount -u> command."
28573 msgstr ""
28574
28575 #. type: textblock
28576 #: ../fuse/guestmount.pod:41
28577 msgid ""
28578 "For a typical Windows guest which has its main filesystem on the first "
28579 "partition:"
28580 msgstr ""
28581
28582 #. type: verbatim
28583 #: ../fuse/guestmount.pod:44
28584 #, no-wrap
28585 msgid ""
28586 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
28587 "\n"
28588 msgstr ""
28589
28590 #. type: textblock
28591 #: ../fuse/guestmount.pod:46
28592 msgid ""
28593 "For a typical Linux guest which has a /boot filesystem on the first "
28594 "partition, and the root filesystem on a logical volume:"
28595 msgstr ""
28596
28597 #. type: verbatim
28598 #: ../fuse/guestmount.pod:49
28599 #, no-wrap
28600 msgid ""
28601 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
28602 "\n"
28603 msgstr ""
28604
28605 #. type: textblock
28606 #: ../fuse/guestmount.pod:51
28607 msgid "To get libguestfs to detect guest mountpoints for you:"
28608 msgstr ""
28609
28610 #. type: verbatim
28611 #: ../fuse/guestmount.pod:53
28612 #, no-wrap
28613 msgid ""
28614 " guestmount -a guest.img -i --ro /mnt\n"
28615 "\n"
28616 msgstr ""
28617
28618 #. type: textblock
28619 #: ../fuse/guestmount.pod:55
28620 msgid "For a libvirt guest called \"Guest\" you could do:"
28621 msgstr ""
28622
28623 #. type: verbatim
28624 #: ../fuse/guestmount.pod:57
28625 #, no-wrap
28626 msgid ""
28627 " guestmount -d Guest -i --ro /mnt\n"
28628 "\n"
28629 msgstr ""
28630
28631 #. type: textblock
28632 #: ../fuse/guestmount.pod:59
28633 msgid ""
28634 "If you don't know what filesystems are contained in a guest or disk image, "
28635 "use L<virt-filesystems(1)> first:"
28636 msgstr ""
28637
28638 #. type: verbatim
28639 #: ../fuse/guestmount.pod:62
28640 #, no-wrap
28641 msgid ""
28642 " virt-filesystems MyGuest\n"
28643 "\n"
28644 msgstr ""
28645
28646 #. type: textblock
28647 #: ../fuse/guestmount.pod:64
28648 msgid ""
28649 "If you want to trace the libguestfs calls but without excessive debugging "
28650 "information, we recommend:"
28651 msgstr ""
28652
28653 #. type: verbatim
28654 #: ../fuse/guestmount.pod:67
28655 #, no-wrap
28656 msgid ""
28657 " guestmount [...] --trace /mnt\n"
28658 "\n"
28659 msgstr ""
28660
28661 #. type: textblock
28662 #: ../fuse/guestmount.pod:69
28663 msgid "If you want to debug the program, we recommend:"
28664 msgstr ""
28665
28666 #. type: verbatim
28667 #: ../fuse/guestmount.pod:71
28668 #, no-wrap
28669 msgid ""
28670 " guestmount [...] --trace --verbose /mnt\n"
28671 "\n"
28672 msgstr ""
28673
28674 #. type: =item
28675 #: ../fuse/guestmount.pod:77
28676 msgid "B<-a image> | B<--add image>"
28677 msgstr ""
28678
28679 #. type: textblock
28680 #: ../fuse/guestmount.pod:79
28681 msgid "Add a block device or virtual machine image."
28682 msgstr ""
28683
28684 #. type: =item
28685 #: ../fuse/guestmount.pod:84
28686 msgid "B<-c URI> | B<--connect URI>"
28687 msgstr ""
28688
28689 #. type: =item
28690 #: ../fuse/guestmount.pod:90
28691 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
28692 msgstr ""
28693
28694 #. type: =item
28695 #: ../fuse/guestmount.pod:98
28696 msgid "B<--dir-cache-timeout N>"
28697 msgstr ""
28698
28699 #. type: textblock
28700 #: ../fuse/guestmount.pod:100
28701 msgid ""
28702 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
28703 "seconds.  The readdir cache [actually, there are several semi-independent "
28704 "caches] is populated after a readdir(2) call with the stat and extended "
28705 "attributes of the files in the directory, in anticipation that they will be "
28706 "requested soon after."
28707 msgstr ""
28708
28709 #. type: textblock
28710 #: ../fuse/guestmount.pod:106
28711 msgid ""
28712 "There is also a different attribute cache implemented by FUSE (see the FUSE "
28713 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
28714 "requests, only cache existing ones."
28715 msgstr ""
28716
28717 #. type: =item
28718 #: ../fuse/guestmount.pod:117
28719 msgid "B<--format=raw|qcow2|..> | B<--format>"
28720 msgstr ""
28721
28722 #. type: textblock
28723 #: ../fuse/guestmount.pod:124
28724 msgid ""
28725 "If you have untrusted raw-format guest disk images, you should use this "
28726 "option to specify the disk format.  This avoids a possible security problem "
28727 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
28728 "guestfs_add_drive_opts>."
28729 msgstr ""
28730
28731 #. type: =item
28732 #: ../fuse/guestmount.pod:129
28733 msgid "B<--fuse-help>"
28734 msgstr ""
28735
28736 #. type: textblock
28737 #: ../fuse/guestmount.pod:131
28738 msgid "Display help on special FUSE options (see I<-o> below)."
28739 msgstr ""
28740
28741 #. type: textblock
28742 #: ../fuse/guestmount.pod:135
28743 msgid "Display brief help and exit."
28744 msgstr ""
28745
28746 #. type: =item
28747 #: ../fuse/guestmount.pod:137
28748 msgid "B<-i> | B<--inspector>"
28749 msgstr ""
28750
28751 #. type: textblock
28752 #: ../fuse/guestmount.pod:157
28753 msgid ""
28754 "Mount the named partition or logical volume on the given mountpoint B<in the "
28755 "guest> (this has nothing to do with mountpoints in the host)."
28756 msgstr ""
28757
28758 #. type: textblock
28759 #: ../fuse/guestmount.pod:160
28760 msgid ""
28761 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
28762 "something on C</>."
28763 msgstr ""
28764
28765 #. type: =item
28766 #: ../fuse/guestmount.pod:173
28767 msgid "B<-n> | B<--no-sync>"
28768 msgstr ""
28769
28770 #. type: textblock
28771 #: ../fuse/guestmount.pod:175
28772 msgid ""
28773 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
28774 "unmounted.  If you specify this option, then we don't attempt to sync the "
28775 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
28776 msgstr ""
28777
28778 #. type: =item
28779 #: ../fuse/guestmount.pod:180
28780 msgid "B<-o option> | B<--option option>"
28781 msgstr ""
28782
28783 #. type: textblock
28784 #: ../fuse/guestmount.pod:182
28785 msgid "Pass extra options to FUSE."
28786 msgstr ""
28787
28788 #. type: textblock
28789 #: ../fuse/guestmount.pod:184
28790 msgid ""
28791 "To get a list of all the extra options supported by FUSE, use the command "
28792 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
28793 "of them are a good idea."
28794 msgstr ""
28795
28796 #. type: verbatim
28797 #: ../fuse/guestmount.pod:188
28798 #, no-wrap
28799 msgid ""
28800 " guestmount --fuse-help\n"
28801 "\n"
28802 msgstr ""
28803
28804 #. type: textblock
28805 #: ../fuse/guestmount.pod:190
28806 msgid "Some potentially useful FUSE options:"
28807 msgstr ""
28808
28809 #. type: =item
28810 #: ../fuse/guestmount.pod:194
28811 msgid "B<-o allow_other>"
28812 msgstr ""
28813
28814 #. type: textblock
28815 #: ../fuse/guestmount.pod:196
28816 msgid "Allow other users to see the filesystem."
28817 msgstr ""
28818
28819 #. type: =item
28820 #: ../fuse/guestmount.pod:198
28821 msgid "B<-o attr_timeout=N>"
28822 msgstr ""
28823
28824 #. type: textblock
28825 #: ../fuse/guestmount.pod:200
28826 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
28827 msgstr ""
28828
28829 #. type: =item
28830 #: ../fuse/guestmount.pod:202
28831 msgid "B<-o kernel_cache>"
28832 msgstr ""
28833
28834 #. type: textblock
28835 #: ../fuse/guestmount.pod:204
28836 msgid ""
28837 "Allow the kernel to cache files (reduces the number of reads that have to go "
28838 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
28839 "afford the extra memory usage."
28840 msgstr ""
28841
28842 #. type: =item
28843 #: ../fuse/guestmount.pod:208
28844 msgid "B<-o uid=N> B<-o gid=N>"
28845 msgstr ""
28846
28847 #. type: textblock
28848 #: ../fuse/guestmount.pod:210
28849 msgid ""
28850 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
28851 "the chosen values."
28852 msgstr ""
28853
28854 #. type: =item
28855 #: ../fuse/guestmount.pod:215
28856 msgid "B<-r> | B<--ro>"
28857 msgstr ""
28858
28859 #. type: textblock
28860 #: ../fuse/guestmount.pod:217
28861 msgid ""
28862 "Add devices and mount everything read-only.  Also disallow writes and make "
28863 "the disk appear read-only to FUSE."
28864 msgstr ""
28865
28866 #. type: textblock
28867 #: ../fuse/guestmount.pod:220
28868 msgid ""
28869 "This is highly recommended if you are not going to edit the guest disk.  If "
28870 "the guest is running and this option is I<not> supplied, then there is a "
28871 "strong risk of disk corruption in the guest.  We try to prevent this from "
28872 "happening, but it is not always possible."
28873 msgstr ""
28874
28875 #. type: textblock
28876 #: ../fuse/guestmount.pod:225
28877 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
28878 msgstr ""
28879
28880 #. type: textblock
28881 #: ../fuse/guestmount.pod:229
28882 msgid "Enable SELinux support for the guest."
28883 msgstr ""
28884
28885 #. type: =item
28886 #: ../fuse/guestmount.pod:231
28887 msgid "B<-v> | B<--verbose>"
28888 msgstr ""
28889
28890 #. type: textblock
28891 #: ../fuse/guestmount.pod:233
28892 msgid "Enable verbose messages from underlying libguestfs."
28893 msgstr ""
28894
28895 #. type: =item
28896 #: ../fuse/guestmount.pod:235
28897 msgid "B<-V> | B<--version>"
28898 msgstr ""
28899
28900 #. type: textblock
28901 #: ../fuse/guestmount.pod:237
28902 msgid "Display the program version and exit."
28903 msgstr ""
28904
28905 #. type: =item
28906 #: ../fuse/guestmount.pod:239
28907 msgid "B<-w> | B<--rw>"
28908 msgstr ""
28909
28910 #. type: textblock
28911 #: ../fuse/guestmount.pod:244 ../fuse/guestmount.pod:265
28912 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
28913 msgstr ""
28914
28915 #. type: =item
28916 #: ../fuse/guestmount.pod:246
28917 msgid "B<-x> | B<--trace>"
28918 msgstr ""
28919
28920 #. type: textblock
28921 #: ../fuse/guestmount.pod:248
28922 msgid "Trace libguestfs calls and entry into each FUSE function."
28923 msgstr ""
28924
28925 #. type: textblock
28926 #: ../fuse/guestmount.pod:250
28927 msgid "This also stops the daemon from forking into the background."
28928 msgstr ""
28929
28930 #. type: textblock
28931 #: ../fuse/guestmount.pod:271
28932 msgid ""
28933 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
28934 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
28935 "net/>."
28936 msgstr ""
28937
28938 #. type: textblock
28939 #: ../fuse/guestmount.pod:286
28940 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
28941 msgstr ""
28942
28943 #. type: textblock
28944 #: ../tools/virt-win-reg.pl:37
28945 msgid ""
28946 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
28947 msgstr ""
28948
28949 #. type: verbatim
28950 #: ../tools/virt-win-reg.pl:41
28951 #, no-wrap
28952 msgid ""
28953 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
28954 "\n"
28955 msgstr ""
28956
28957 #. type: verbatim
28958 #: ../tools/virt-win-reg.pl:43
28959 #, no-wrap
28960 msgid ""
28961 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
28962 "\n"
28963 msgstr ""
28964
28965 #. type: verbatim
28966 #: ../tools/virt-win-reg.pl:45
28967 #, no-wrap
28968 msgid ""
28969 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
28970 "\n"
28971 msgstr ""
28972
28973 #. type: verbatim
28974 #: ../tools/virt-win-reg.pl:47
28975 #, no-wrap
28976 msgid ""
28977 " virt-win-reg --merge domname [input.reg ...]\n"
28978 "\n"
28979 msgstr ""
28980
28981 #. type: verbatim
28982 #: ../tools/virt-win-reg.pl:49
28983 #, no-wrap
28984 msgid ""
28985 " virt-win-reg [--options] disk.img ... # instead of domname\n"
28986 "\n"
28987 msgstr ""
28988
28989 #. type: textblock
28990 #: ../tools/virt-win-reg.pl:53
28991 msgid ""
28992 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
28993 "virtual machines.  If you do this, you I<will> get irreversible disk "
28994 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
28995 "but doesn't catch all cases."
28996 msgstr ""
28997
28998 #. type: textblock
28999 #: ../tools/virt-win-reg.pl:58
29000 msgid ""
29001 "Modifying the Windows Registry is an inherently risky operation.  The format "
29002 "is deliberately obscure and undocumented, and Registry changes can leave the "
29003 "system unbootable.  Therefore when using the I<--merge> option, make sure "
29004 "you have a reliable backup first."
29005 msgstr ""
29006
29007 #. type: textblock
29008 #: ../tools/virt-win-reg.pl:65
29009 msgid ""
29010 "This program can export and merge Windows Registry entries from a Windows "
29011 "guest."
29012 msgstr ""
29013
29014 #. type: textblock
29015 #: ../tools/virt-win-reg.pl:68
29016 msgid ""
29017 "The first parameter is the libvirt guest name or the raw disk image of a "
29018 "Windows guest."
29019 msgstr ""
29020
29021 #. type: textblock
29022 #: ../tools/virt-win-reg.pl:71
29023 msgid ""
29024 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
29025 "exported (recursively).  For example:"
29026 msgstr ""
29027
29028 #. type: verbatim
29029 #: ../tools/virt-win-reg.pl:74
29030 #, no-wrap
29031 msgid ""
29032 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
29033 "\n"
29034 msgstr ""
29035
29036 #. type: textblock
29037 #: ../tools/virt-win-reg.pl:76
29038 msgid ""
29039 "You can also display single values from within registry keys, for example:"
29040 msgstr ""
29041
29042 #. type: verbatim
29043 #: ../tools/virt-win-reg.pl:79
29044 #, no-wrap
29045 msgid ""
29046 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
29047 " $ virt-win-reg Windows7 $cvkey ProductName\n"
29048 " Windows 7 Enterprise\n"
29049 "\n"
29050 msgstr ""
29051
29052 #. type: textblock
29053 #: ../tools/virt-win-reg.pl:83
29054 msgid ""
29055 "With I<--merge>, you can merge a textual regedit file into the Windows "
29056 "Registry:"
29057 msgstr ""
29058
29059 #. type: verbatim
29060 #: ../tools/virt-win-reg.pl:86
29061 #, no-wrap
29062 msgid ""
29063 " $ virt-win-reg --merge Windows7 changes.reg\n"
29064 "\n"
29065 msgstr ""
29066
29067 #. type: =head1
29068 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
29069 msgid "NOTE"
29070 msgstr ""
29071
29072 #. type: textblock
29073 #: ../tools/virt-win-reg.pl:90
29074 msgid ""
29075 "This program is only meant for simple access to the registry.  If you want "
29076 "to do complicated things with the registry, we suggest you download the "
29077 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
29078 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
29079 "L<hivexregedit(1)>."
29080 msgstr ""
29081
29082 #. type: textblock
29083 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63
29084 #: ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163
29085 #: ../tools/virt-list-partitions.pl:64
29086 msgid "Display brief help."
29087 msgstr ""
29088
29089 #. type: textblock
29090 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71
29091 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
29092 #: ../tools/virt-list-partitions.pl:72
29093 msgid "Display version number and exit."
29094 msgstr ""
29095
29096 #. type: =item
29097 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
29098 msgid "B<--debug>"
29099 msgstr ""
29100
29101 #. type: textblock
29102 #: ../tools/virt-win-reg.pl:122
29103 msgid "Enable debugging messages."
29104 msgstr ""
29105
29106 #. type: =item
29107 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77
29108 #: ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
29109 msgid "B<--connect URI> | B<-c URI>"
29110 msgstr ""
29111
29112 #. type: textblock
29113 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79
29114 #: ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
29115 msgid ""
29116 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
29117 "to the default libvirt hypervisor."
29118 msgstr ""
29119
29120 #. type: textblock
29121 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82
29122 #: ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
29123 msgid ""
29124 "If you specify guest block devices directly, then libvirt is not used at all."
29125 msgstr ""
29126
29127 #. type: =item
29128 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89
29129 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
29130 msgid "B<--format> raw"
29131 msgstr ""
29132
29133 #. type: textblock
29134 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91
29135 #: ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
29136 msgid ""
29137 "Specify the format of disk images given on the command line.  If this is "
29138 "omitted then the format is autodetected from the content of the disk image."
29139 msgstr ""
29140
29141 #. type: textblock
29142 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95
29143 #: ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
29144 msgid ""
29145 "If disk images are requested from libvirt, then this program asks libvirt "
29146 "for this information.  In this case, the value of the format parameter is "
29147 "ignored."
29148 msgstr ""
29149
29150 #. type: textblock
29151 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99
29152 #: ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
29153 msgid ""
29154 "If working with untrusted raw-format guest disk images, you should ensure "
29155 "the format is always specified."
29156 msgstr ""
29157
29158 #. type: =item
29159 #: ../tools/virt-win-reg.pl:157
29160 msgid "B<--merge>"
29161 msgstr ""
29162
29163 #. type: textblock
29164 #: ../tools/virt-win-reg.pl:159
29165 msgid ""
29166 "In merge mode, this merges a textual regedit file into the Windows Registry "
29167 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
29168 "displays or exports Registry entries instead."
29169 msgstr ""
29170
29171 #. type: textblock
29172 #: ../tools/virt-win-reg.pl:163
29173 msgid ""
29174 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
29175 "result in disk corruption.  However exporting (without this flag)  is always "
29176 "safe."
29177 msgstr ""
29178
29179 #. type: =item
29180 #: ../tools/virt-win-reg.pl:171
29181 msgid "B<--encoding> UTF-16LE|ASCII"
29182 msgstr ""
29183
29184 #. type: textblock
29185 #: ../tools/virt-win-reg.pl:173
29186 msgid ""
29187 "When merging (only), you may need to specify the encoding for strings to be "
29188 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
29189 "(3)/ENCODING STRINGS>."
29190 msgstr ""
29191
29192 #. type: textblock
29193 #: ../tools/virt-win-reg.pl:177
29194 msgid ""
29195 "The default is to use UTF-16LE, which should work with recent versions of "
29196 "Windows."
29197 msgstr ""
29198
29199 #. type: =head1
29200 #: ../tools/virt-win-reg.pl:402
29201 msgid "SUPPORTED SYSTEMS"
29202 msgstr ""
29203
29204 #. type: textblock
29205 #: ../tools/virt-win-reg.pl:404
29206 msgid ""
29207 "The program currently supports Windows NT-derived guests starting with "
29208 "Windows XP through to at least Windows 7."
29209 msgstr ""
29210
29211 #. type: textblock
29212 #: ../tools/virt-win-reg.pl:407
29213 msgid ""
29214 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
29215 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
29216 "and C<HKEY_USERS\\.DEFAULT>."
29217 msgstr ""
29218
29219 #. type: textblock
29220 #: ../tools/virt-win-reg.pl:411
29221 msgid ""
29222 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
29223 "C<HKEY_USERS>."
29224 msgstr ""
29225
29226 #. type: textblock
29227 #: ../tools/virt-win-reg.pl:414
29228 msgid ""
29229 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
29230 "time."
29231 msgstr ""
29232
29233 #. type: =head1
29234 #: ../tools/virt-win-reg.pl:417
29235 msgid "ENCODING"
29236 msgstr ""
29237
29238 #. type: textblock
29239 #: ../tools/virt-win-reg.pl:419
29240 msgid ""
29241 "C<virt-win-reg> expects that regedit files have already been reencoded in "
29242 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
29243 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
29244 "Windows-style line endings, you may need to reencode the whole file before "
29245 "or after processing."
29246 msgstr ""
29247
29248 #. type: textblock
29249 #: ../tools/virt-win-reg.pl:425
29250 msgid ""
29251 "To reencode a file from Windows format to Linux (before processing it with "
29252 "the I<--merge> option), you would do something like this:"
29253 msgstr ""
29254
29255 #. type: verbatim
29256 #: ../tools/virt-win-reg.pl:428
29257 #, no-wrap
29258 msgid ""
29259 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
29260 "\n"
29261 msgstr ""
29262
29263 #. type: textblock
29264 #: ../tools/virt-win-reg.pl:430
29265 msgid ""
29266 "To go in the opposite direction, after exporting and before sending the file "
29267 "to a Windows user, do something like this:"
29268 msgstr ""
29269
29270 #. type: verbatim
29271 #: ../tools/virt-win-reg.pl:433
29272 #, no-wrap
29273 msgid ""
29274 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
29275 "\n"
29276 msgstr ""
29277
29278 #. type: textblock
29279 #: ../tools/virt-win-reg.pl:435
29280 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
29281 msgstr ""
29282
29283 #. type: textblock
29284 #: ../tools/virt-win-reg.pl:437
29285 msgid ""
29286 "If you are unsure about the current encoding, use the L<file(1)> command.  "
29287 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
29288 "style (CRLF) line endings, like this:"
29289 msgstr ""
29290
29291 #. type: verbatim
29292 #: ../tools/virt-win-reg.pl:441
29293 #, no-wrap
29294 msgid ""
29295 " $ file software.reg\n"
29296 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
29297 " with CRLF line terminators\n"
29298 "\n"
29299 msgstr ""
29300
29301 #. type: textblock
29302 #: ../tools/virt-win-reg.pl:445
29303 msgid "This file would need conversion before you could I<--merge> it."
29304 msgstr ""
29305
29306 #. type: =head1
29307 #: ../tools/virt-win-reg.pl:447
29308 msgid "CurrentControlSet etc."
29309 msgstr ""
29310
29311 #. type: textblock
29312 #: ../tools/virt-win-reg.pl:449
29313 msgid ""
29314 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
29315 "Registry at the level of the hive file, and therefore you cannot modify "
29316 "these."
29317 msgstr ""
29318
29319 #. type: textblock
29320 #: ../tools/virt-win-reg.pl:453
29321 msgid ""
29322 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
29323 "circumstances it might refer to another control set.  The way to find out is "
29324 "to look at the C<HKLM\\SYSTEM\\Select> key:"
29325 msgstr ""
29326
29327 #. type: verbatim
29328 #: ../tools/virt-win-reg.pl:457
29329 #, no-wrap
29330 msgid ""
29331 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
29332 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
29333 " \"Current\"=dword:00000001\n"
29334 " \"Default\"=dword:00000001\n"
29335 " \"Failed\"=dword:00000000\n"
29336 " \"LastKnownGood\"=dword:00000002\n"
29337 "\n"
29338 msgstr ""
29339
29340 #. type: textblock
29341 #: ../tools/virt-win-reg.pl:464
29342 msgid "\"Current\" is the one which Windows will choose when it boots."
29343 msgstr ""
29344
29345 #. type: textblock
29346 #: ../tools/virt-win-reg.pl:466
29347 msgid ""
29348 "Similarly, other C<Current...> keys in the path may need to be replaced."
29349 msgstr ""
29350
29351 #. type: =head1
29352 #: ../tools/virt-win-reg.pl:469
29353 msgid "WINDOWS TIPS"
29354 msgstr ""
29355
29356 #. type: textblock
29357 #: ../tools/virt-win-reg.pl:471
29358 msgid ""
29359 "Note that some of these tips modify the guest disk image.  The guest I<must> "
29360 "be shut off, else you will get disk corruption."
29361 msgstr ""
29362
29363 #. type: =head2
29364 #: ../tools/virt-win-reg.pl:474
29365 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
29366 msgstr ""
29367
29368 #. type: textblock
29369 #: ../tools/virt-win-reg.pl:476
29370 msgid ""
29371 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
29372 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
29373 "is uploaded into C<C:\\>:"
29374 msgstr ""
29375
29376 #. type: verbatim
29377 #: ../tools/virt-win-reg.pl:480
29378 #, no-wrap
29379 msgid ""
29380 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
29381 "\n"
29382 msgstr ""
29383
29384 #. type: textblock
29385 #: ../tools/virt-win-reg.pl:482
29386 msgid "Prepare a regedit file containing the registry change:"
29387 msgstr ""
29388
29389 #. type: verbatim
29390 #: ../tools/virt-win-reg.pl:484
29391 #, no-wrap
29392 msgid ""
29393 " cat > test.reg <<'EOF'\n"
29394 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
29395 " \"Test\"=\"c:\\\\test.bat\"\n"
29396 " EOF\n"
29397 "\n"
29398 msgstr ""
29399
29400 #. type: textblock
29401 #: ../tools/virt-win-reg.pl:489
29402 msgid ""
29403 "In this example we use the key C<RunOnce> which means that the script will "
29404 "run precisely once when the first user logs in.  If you want it to run every "
29405 "time a user logs in, replace C<RunOnce> with C<Run>."
29406 msgstr ""
29407
29408 #. type: textblock
29409 #: ../tools/virt-win-reg.pl:493
29410 msgid "Now update the registry:"
29411 msgstr ""
29412
29413 #. type: verbatim
29414 #: ../tools/virt-win-reg.pl:495
29415 #, no-wrap
29416 msgid ""
29417 " virt-win-reg --merge WindowsGuest test.reg\n"
29418 "\n"
29419 msgstr ""
29420
29421 #. type: =head2
29422 #: ../tools/virt-win-reg.pl:497
29423 msgid "INSTALLING A SERVICE"
29424 msgstr ""
29425
29426 #. type: textblock
29427 #: ../tools/virt-win-reg.pl:499
29428 msgid ""
29429 "This section assumes you are familiar with Windows services, and you either "
29430 "have a program which handles the Windows Service Control Protocol directly "
29431 "or you want to run any program using a service wrapper like SrvAny or the "
29432 "free RHSrvAny."
29433 msgstr ""
29434
29435 #. type: textblock
29436 #: ../tools/virt-win-reg.pl:504
29437 msgid ""
29438 "First upload the program and optionally the service wrapper.  In this case "
29439 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
29440 msgstr ""
29441
29442 #. type: verbatim
29443 #: ../tools/virt-win-reg.pl:508
29444 #, no-wrap
29445 msgid ""
29446 " guestfish -i -d WindowsGuest <<EOF\n"
29447 "   upload rhsrvany.exe /rhsrvany.exe\n"
29448 "   upload test.exe /test.exe\n"
29449 " EOF\n"
29450 "\n"
29451 msgstr ""
29452
29453 #. type: textblock
29454 #: ../tools/virt-win-reg.pl:513
29455 msgid ""
29456 "Prepare a regedit file containing the registry changes.  In this example, "
29457 "the first registry change is needed for the service itself or the service "
29458 "wrapper (if used).  The second registry change is only needed because I am "
29459 "using the RHSrvAny service wrapper."
29460 msgstr ""
29461
29462 #. type: verbatim
29463 #: ../tools/virt-win-reg.pl:518
29464 #, no-wrap
29465 msgid ""
29466 " cat > service.reg <<'EOF'\n"
29467 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
29468 " \"Type\"=dword:00000010\n"
29469 " \"Start\"=dword:00000002\n"
29470 " \"ErrorControl\"=dword:00000001\n"
29471 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
29472 " \"DisplayName\"=\"RHSrvAny\"\n"
29473 " \"ObjectName\"=\"NetworkService\"\n"
29474 " \n"
29475 msgstr ""
29476
29477 #. type: verbatim
29478 #: ../tools/virt-win-reg.pl:527
29479 #, no-wrap
29480 msgid ""
29481 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
29482 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
29483 " \"PWD\"=\"c:\\\\Temp\"\n"
29484 " EOF\n"
29485 "\n"
29486 msgstr ""
29487
29488 #. type: textblock
29489 #: ../tools/virt-win-reg.pl:538
29490 msgid ""
29491 "For use of C<ControlSet001> see the section above in this manual page.  You "
29492 "may need to adjust this according to the control set that is in use by the "
29493 "guest."
29494 msgstr ""
29495
29496 #. type: textblock
29497 #: ../tools/virt-win-reg.pl:544
29498 msgid ""
29499 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
29500 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
29501 "privileged account."
29502 msgstr ""
29503
29504 #. type: textblock
29505 #: ../tools/virt-win-reg.pl:550
29506 msgid ""
29507 "For the meaning of the magic numbers, see this Microsoft KB article: "
29508 "L<http://support.microsoft.com/kb/103000>."
29509 msgstr ""
29510
29511 #. type: textblock
29512 #: ../tools/virt-win-reg.pl:555
29513 msgid "Update the registry:"
29514 msgstr ""
29515
29516 #. type: verbatim
29517 #: ../tools/virt-win-reg.pl:557
29518 #, no-wrap
29519 msgid ""
29520 " virt-win-reg --merge WindowsGuest service.reg\n"
29521 "\n"
29522 msgstr ""
29523
29524 #. type: =head1
29525 #: ../tools/virt-win-reg.pl:559 ../tools/virt-list-filesystems.pl:182
29526 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
29527 #: ../tools/virt-list-partitions.pl:250
29528 msgid "SHELL QUOTING"
29529 msgstr ""
29530
29531 #. type: textblock
29532 #: ../tools/virt-win-reg.pl:561
29533 msgid ""
29534 "Be careful when passing parameters containing C<\\> (backslash) in the "
29535 "shell.  Usually you will have to use 'single quotes' or double backslashes "
29536 "(but not both) to protect them from the shell."
29537 msgstr ""
29538
29539 #. type: textblock
29540 #: ../tools/virt-win-reg.pl:565
29541 msgid "Paths and value names are case-insensitive."
29542 msgstr ""
29543
29544 #. type: textblock
29545 #: ../tools/virt-win-reg.pl:567 ../tools/virt-list-filesystems.pl:184
29546 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
29547 #: ../tools/virt-list-partitions.pl:252
29548 msgid ""
29549 "Libvirt guest names can contain arbitrary characters, some of which have "
29550 "meaning to the shell such as C<#> and space.  You may need to quote or "
29551 "escape these characters on the command line.  See the shell manual page L<sh"
29552 "(1)> for details."
29553 msgstr ""
29554
29555 #. type: textblock
29556 #: ../tools/virt-win-reg.pl:574
29557 msgid ""
29558 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
29559 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
29560 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29561 msgstr ""
29562
29563 #. type: textblock
29564 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:555
29565 msgid ""
29566 "When reporting bugs, please enable debugging and capture the I<complete> "
29567 "output:"
29568 msgstr ""
29569
29570 #. type: verbatim
29571 #: ../tools/virt-win-reg.pl:592
29572 #, no-wrap
29573 msgid ""
29574 " export LIBGUESTFS_DEBUG=1\n"
29575 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
29576 "\n"
29577 msgstr ""
29578
29579 #. type: textblock
29580 #: ../tools/virt-win-reg.pl:595
29581 msgid ""
29582 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
29583 "redhat.com/>"
29584 msgstr ""
29585
29586 #. type: =head1
29587 #: ../tools/virt-win-reg.pl:598 ../tools/virt-list-filesystems.pl:202
29588 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
29589 #: ../tools/virt-list-partitions.pl:269
29590 msgid "AUTHOR"
29591 msgstr ""
29592
29593 #. type: textblock
29594 #: ../tools/virt-win-reg.pl:600 ../tools/virt-list-filesystems.pl:204
29595 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
29596 #: ../tools/virt-list-partitions.pl:271
29597 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
29598 msgstr ""
29599
29600 #. type: textblock
29601 #: ../tools/virt-win-reg.pl:604 ../tools/virt-make-fs.pl:570
29602 msgid "Copyright (C) 2010 Red Hat Inc."
29603 msgstr ""
29604
29605 #. type: textblock
29606 #: ../tools/virt-list-filesystems.pl:32
29607 msgid ""
29608 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
29609 msgstr ""
29610
29611 #. type: verbatim
29612 #: ../tools/virt-list-filesystems.pl:36
29613 #, no-wrap
29614 msgid ""
29615 " virt-list-filesystems [--options] domname\n"
29616 "\n"
29617 msgstr ""
29618
29619 #. type: verbatim
29620 #: ../tools/virt-list-filesystems.pl:38
29621 #, no-wrap
29622 msgid ""
29623 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
29624 "\n"
29625 msgstr ""
29626
29627 #. type: textblock
29628 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
29629 msgid ""
29630 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
29631 "replacement."
29632 msgstr ""
29633
29634 #. type: textblock
29635 #: ../tools/virt-list-filesystems.pl:45
29636 msgid ""
29637 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
29638 "are contained in a virtual machine or disk image."
29639 msgstr ""
29640
29641 #. type: textblock
29642 #: ../tools/virt-list-filesystems.pl:49
29643 msgid ""
29644 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
29645 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29646 "> tool."
29647 msgstr ""
29648
29649 #. type: =item
29650 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
29651 msgid "B<-l> | B<--long>"
29652 msgstr ""
29653
29654 #. type: textblock
29655 #: ../tools/virt-list-filesystems.pl:108
29656 msgid ""
29657 "With this option, C<virt-list-filesystems> displays the type of each "
29658 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
29659 msgstr ""
29660
29661 #. type: =item
29662 #: ../tools/virt-list-filesystems.pl:115
29663 msgid "B<-a> | B<--all>"
29664 msgstr ""
29665
29666 #. type: textblock
29667 #: ../tools/virt-list-filesystems.pl:117
29668 msgid ""
29669 "Normally we only show mountable filesystems.  If this option is given then "
29670 "swap devices are shown too."
29671 msgstr ""
29672
29673 #. type: textblock
29674 #: ../tools/virt-list-filesystems.pl:191
29675 msgid ""
29676 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
29677 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
29678 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29679 msgstr ""
29680
29681 #. type: textblock
29682 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
29683 msgid "Copyright (C) 2009 Red Hat Inc."
29684 msgstr ""
29685
29686 #. type: textblock
29687 #: ../tools/virt-tar.pl:33
29688 msgid "virt-tar - Extract or upload files to a virtual machine"
29689 msgstr ""
29690
29691 #. type: verbatim
29692 #: ../tools/virt-tar.pl:37
29693 #, no-wrap
29694 msgid ""
29695 " virt-tar [--options] -x domname directory tarball\n"
29696 "\n"
29697 msgstr ""
29698
29699 #. type: verbatim
29700 #: ../tools/virt-tar.pl:39
29701 #, no-wrap
29702 msgid ""
29703 " virt-tar [--options] -u domname tarball directory\n"
29704 "\n"
29705 msgstr ""
29706
29707 #. type: verbatim
29708 #: ../tools/virt-tar.pl:41
29709 #, no-wrap
29710 msgid ""
29711 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
29712 "\n"
29713 msgstr ""
29714
29715 #. type: verbatim
29716 #: ../tools/virt-tar.pl:43
29717 #, no-wrap
29718 msgid ""
29719 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
29720 "\n"
29721 msgstr ""
29722
29723 #. type: textblock
29724 #: ../tools/virt-tar.pl:47
29725 msgid ""
29726 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
29727 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
29728 msgstr ""
29729
29730 #. type: textblock
29731 #: ../tools/virt-tar.pl:52
29732 msgid "Download C</home> from the VM into a local tarball:"
29733 msgstr ""
29734
29735 #. type: verbatim
29736 #: ../tools/virt-tar.pl:54
29737 #, no-wrap
29738 msgid ""
29739 " virt-tar -x domname /home home.tar\n"
29740 "\n"
29741 msgstr ""
29742
29743 #. type: verbatim
29744 #: ../tools/virt-tar.pl:56
29745 #, no-wrap
29746 msgid ""
29747 " virt-tar -zx domname /home home.tar.gz\n"
29748 "\n"
29749 msgstr ""
29750
29751 #. type: textblock
29752 #: ../tools/virt-tar.pl:58
29753 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
29754 msgstr ""
29755
29756 #. type: verbatim
29757 #: ../tools/virt-tar.pl:60
29758 #, no-wrap
29759 msgid ""
29760 " virt-tar -u domname uploadstuff.tar /tmp\n"
29761 "\n"
29762 msgstr ""
29763
29764 #. type: verbatim
29765 #: ../tools/virt-tar.pl:62
29766 #, no-wrap
29767 msgid ""
29768 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
29769 "\n"
29770 msgstr ""
29771
29772 #. type: textblock
29773 #: ../tools/virt-tar.pl:66
29774 msgid ""
29775 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
29776 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
29777 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
29778 msgstr ""
29779
29780 #. type: textblock
29781 #: ../tools/virt-tar.pl:71
29782 msgid ""
29783 "You can use I<-x> (extract) on live virtual machines, but you might get "
29784 "inconsistent results or errors if there is filesystem activity inside the "
29785 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
29786 "work, but the only way to guarantee consistent results is if the virtual "
29787 "machine is shut down."
29788 msgstr ""
29789
29790 #. type: textblock
29791 #: ../tools/virt-tar.pl:79
29792 msgid ""
29793 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
29794 "parts of a guest filesystem.  There are many possibilities: making backups, "
29795 "uploading data files, snooping on guest activity, fixing or customizing "
29796 "guests, etc."
29797 msgstr ""
29798
29799 #. type: textblock
29800 #: ../tools/virt-tar.pl:84
29801 msgid ""
29802 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
29803 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
29804 "should look at the L<guestfish(1)> tool."
29805 msgstr ""
29806
29807 #. type: textblock
29808 #: ../tools/virt-tar.pl:88
29809 msgid ""
29810 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
29811 "its contents (recursively) from the virtual machine into a local tarball.  "
29812 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
29813 "virtual machine.  You cannot use these two options together."
29814 msgstr ""
29815
29816 #. type: textblock
29817 #: ../tools/virt-tar.pl:94
29818 msgid ""
29819 "In addition, you may need to use the I<-z> (gZip) option to enable "
29820 "compression.  When uploading, you have to specify I<-z> if the upload file "
29821 "is compressed because virt-tar won't detect this on its own."
29822 msgstr ""
29823
29824 #. type: textblock
29825 #: ../tools/virt-tar.pl:98
29826 msgid ""
29827 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
29828 "example it cannot do PKZip files or bzip2 compression.  If you want that "
29829 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
29830 "the L<libguestfs(3)> API)."
29831 msgstr ""
29832
29833 #. type: =item
29834 #: ../tools/virt-tar.pl:156
29835 msgid "B<-x> | B<--extract> | B<--download>"
29836 msgstr ""
29837
29838 #. type: =item
29839 #: ../tools/virt-tar.pl:158
29840 msgid "B<-u> | B<--upload>"
29841 msgstr ""
29842
29843 #. type: textblock
29844 #: ../tools/virt-tar.pl:160
29845 msgid ""
29846 "Use I<-x> to extract (download) a directory from a virtual machine to a "
29847 "local tarball."
29848 msgstr ""
29849
29850 #. type: textblock
29851 #: ../tools/virt-tar.pl:163
29852 msgid ""
29853 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
29854 "Please read the L</WARNING> section above before using this option."
29855 msgstr ""
29856
29857 #. type: textblock
29858 #: ../tools/virt-tar.pl:167
29859 msgid "You must specify exactly one of these options."
29860 msgstr ""
29861
29862 #. type: =item
29863 #: ../tools/virt-tar.pl:173
29864 msgid "B<-z> | B<--gzip>"
29865 msgstr ""
29866
29867 #. type: textblock
29868 #: ../tools/virt-tar.pl:175
29869 msgid "Specify that the input or output tarball is gzip-compressed."
29870 msgstr ""
29871
29872 #. type: textblock
29873 #: ../tools/virt-tar.pl:288
29874 msgid ""
29875 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
29876 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
29877 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
29878 "org/>."
29879 msgstr ""
29880
29881 #. type: textblock
29882 #: ../tools/virt-make-fs.pl:37
29883 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
29884 msgstr ""
29885
29886 #. type: verbatim
29887 #: ../tools/virt-make-fs.pl:41
29888 #, no-wrap
29889 msgid ""
29890 " virt-make-fs [--options] input.tar output.img\n"
29891 "\n"
29892 msgstr ""
29893
29894 #. type: verbatim
29895 #: ../tools/virt-make-fs.pl:43
29896 #, no-wrap
29897 msgid ""
29898 " virt-make-fs [--options] input.tar.gz output.img\n"
29899 "\n"
29900 msgstr ""
29901
29902 #. type: verbatim
29903 #: ../tools/virt-make-fs.pl:45
29904 #, no-wrap
29905 msgid ""
29906 " virt-make-fs [--options] directory output.img\n"
29907 "\n"
29908 msgstr ""
29909
29910 #. type: textblock
29911 #: ../tools/virt-make-fs.pl:49
29912 msgid ""
29913 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
29914 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
29915 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
29916 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
29917 "you want to attach these filesystems to existing virtual machines (eg. to "
29918 "import large amounts of read-only data to a VM)."
29919 msgstr ""
29920
29921 #. type: textblock
29922 #: ../tools/virt-make-fs.pl:57
29923 msgid "Basic usage is:"
29924 msgstr ""
29925
29926 #. type: verbatim
29927 #: ../tools/virt-make-fs.pl:59
29928 #, no-wrap
29929 msgid ""
29930 " virt-make-fs input output\n"
29931 "\n"
29932 msgstr ""
29933
29934 #. type: textblock
29935 #: ../tools/virt-make-fs.pl:61
29936 msgid ""
29937 "where C<input> is either a directory containing files that you want to add, "
29938 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
29939 "C<output> is a disk image.  The input type is detected automatically.  The "
29940 "output disk image defaults to a raw ext2 image unless you specify extra "
29941 "flags (see L</OPTIONS> below)."
29942 msgstr ""
29943
29944 #. type: =head2
29945 #: ../tools/virt-make-fs.pl:67
29946 msgid "EXTRA SPACE"
29947 msgstr ""
29948
29949 #. type: textblock
29950 #: ../tools/virt-make-fs.pl:69
29951 msgid ""
29952 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
29953 "the files that it contains, but might have extra space.  Depending on how "
29954 "you are going to use the output, you might think this extra space is wasted "
29955 "and want to minimize it, or you might want to leave space so that more files "
29956 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
29957 "but you can use the I<--size> flag to leave space in the filesystem if you "
29958 "want it."
29959 msgstr ""
29960
29961 #. type: textblock
29962 #: ../tools/virt-make-fs.pl:77
29963 msgid ""
29964 "An alternative way to leave extra space but not make the output image any "
29965 "bigger is to use an alternative disk image format (instead of the default "
29966 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
29967 "image format (check your hypervisor supports this before using it).  This "
29968 "allows you to choose a large I<--size> but the extra space won't actually be "
29969 "allocated in the image until you try to store something in it."
29970 msgstr ""
29971
29972 #. type: textblock
29973 #: ../tools/virt-make-fs.pl:85
29974 msgid ""
29975 "Don't forget that you can also use local commands including L<resize2fs(8)> "
29976 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
29977 "to build another image from scratch."
29978 msgstr ""
29979
29980 #. type: =head3
29981 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
29982 #: ../tools/virt-make-fs.pl:142
29983 msgid "EXAMPLE"
29984 msgstr ""
29985
29986 #. type: verbatim
29987 #: ../tools/virt-make-fs.pl:91
29988 #, no-wrap
29989 msgid ""
29990 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
29991 "\n"
29992 msgstr ""
29993
29994 #. type: =head2
29995 #: ../tools/virt-make-fs.pl:93
29996 msgid "FILESYSTEM TYPE"
29997 msgstr ""
29998
29999 #. type: textblock
30000 #: ../tools/virt-make-fs.pl:95
30001 msgid ""
30002 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
30003 "libguestfs supports can be used (but I<not> read-only formats like "
30004 "ISO9660).  Here are some of the more common choices:"
30005 msgstr ""
30006
30007 #. type: =item
30008 #: ../tools/virt-make-fs.pl:101
30009 msgid "I<ext3>"
30010 msgstr ""
30011
30012 #. type: textblock
30013 #: ../tools/virt-make-fs.pl:103
30014 msgid ""
30015 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
30016 "you are not going to use the filesystem in a way that requires the journal, "
30017 "then this is just wasted overhead."
30018 msgstr ""
30019
30020 #. type: =item
30021 #: ../tools/virt-make-fs.pl:107
30022 msgid "I<ntfs> or I<vfat>"
30023 msgstr ""
30024
30025 #. type: textblock
30026 #: ../tools/virt-make-fs.pl:109
30027 msgid "Useful if exporting data to a Windows guest."
30028 msgstr ""
30029
30030 #. type: textblock
30031 #: ../tools/virt-make-fs.pl:111
30032 msgid ""
30033 "I<Note for vfat>: The tar archive or local directory must only contain files "
30034 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
30035 "program running within libguestfs is unable to change the ownership of non-"
30036 "root files, since vfat itself does not support this."
30037 msgstr ""
30038
30039 #. type: =item
30040 #: ../tools/virt-make-fs.pl:116
30041 msgid "I<minix>"
30042 msgstr ""
30043
30044 #. type: textblock
30045 #: ../tools/virt-make-fs.pl:118
30046 msgid ""
30047 "Lower overhead than C<ext2>, but certain limitations on filename length and "
30048 "total filesystem size."
30049 msgstr ""
30050
30051 #. type: verbatim
30052 #: ../tools/virt-make-fs.pl:125
30053 #, no-wrap
30054 msgid ""
30055 " virt-make-fs --type=minix input minixfs.img\n"
30056 "\n"
30057 msgstr ""
30058
30059 #. type: =head2
30060 #: ../tools/virt-make-fs.pl:127
30061 msgid "TO PARTITION OR NOT TO PARTITION"
30062 msgstr ""
30063
30064 #. type: textblock
30065 #: ../tools/virt-make-fs.pl:129
30066 msgid "Optionally virt-make-fs can add a partition table to the output disk."
30067 msgstr ""
30068
30069 #. type: textblock
30070 #: ../tools/virt-make-fs.pl:131
30071 msgid ""
30072 "Adding a partition can make the disk image more compatible with certain "
30073 "virtualized operating systems which don't expect to see a filesystem "
30074 "directly located on a block device (Linux doesn't care and will happily "
30075 "handle both types)."
30076 msgstr ""
30077
30078 #. type: textblock
30079 #: ../tools/virt-make-fs.pl:136
30080 msgid ""
30081 "On the other hand, if you have a partition table then the output image is no "
30082 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
30083 "directly on a partitioned disk image.  (However libguestfs tools such as "
30084 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
30085 msgstr ""
30086
30087 #. type: textblock
30088 #: ../tools/virt-make-fs.pl:144
30089 msgid "Add an MBR partition:"
30090 msgstr ""
30091
30092 #. type: verbatim
30093 #: ../tools/virt-make-fs.pl:146
30094 #, no-wrap
30095 msgid ""
30096 " virt-make-fs --partition -- input disk.img\n"
30097 "\n"
30098 msgstr ""
30099
30100 #. type: textblock
30101 #: ../tools/virt-make-fs.pl:148
30102 msgid ""
30103 "If the output disk image could be terabyte-sized or larger, it's better to "
30104 "use an EFI/GPT-compatible partition table:"
30105 msgstr ""
30106
30107 #. type: verbatim
30108 #: ../tools/virt-make-fs.pl:151
30109 #, no-wrap
30110 msgid ""
30111 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
30112 "\n"
30113 msgstr ""
30114
30115 #. type: textblock
30116 #: ../tools/virt-make-fs.pl:179
30117 msgid "Enable debugging information."
30118 msgstr ""
30119
30120 #. type: =item
30121 #: ../tools/virt-make-fs.pl:185
30122 msgid "B<--size=E<lt>NE<gt>>"
30123 msgstr ""
30124
30125 #. type: =item
30126 #: ../tools/virt-make-fs.pl:187
30127 msgid "B<--size=+E<lt>NE<gt>>"
30128 msgstr ""
30129
30130 #. type: =item
30131 #: ../tools/virt-make-fs.pl:189
30132 msgid "B<-s E<lt>NE<gt>>"
30133 msgstr ""
30134
30135 #. type: =item
30136 #: ../tools/virt-make-fs.pl:191
30137 msgid "B<-s +E<lt>NE<gt>>"
30138 msgstr ""
30139
30140 #. type: textblock
30141 #: ../tools/virt-make-fs.pl:193
30142 msgid ""
30143 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
30144 msgstr ""
30145
30146 #. type: textblock
30147 #: ../tools/virt-make-fs.pl:196
30148 msgid ""
30149 "If this option is I<not> given, then the output image will be just large "
30150 "enough to contain all the files, with not much wasted space."
30151 msgstr ""
30152
30153 #. type: textblock
30154 #: ../tools/virt-make-fs.pl:199
30155 msgid ""
30156 "To choose a fixed size output disk, specify an absolute number followed by b/"
30157 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30158 "Petabytes or Exabytes.  This must be large enough to contain all the input "
30159 "files, else you will get an error."
30160 msgstr ""
30161
30162 #. type: textblock
30163 #: ../tools/virt-make-fs.pl:204
30164 msgid ""
30165 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
30166 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30167 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
30168 "the input files, and (approximately) an extra 200 MB free space."
30169 msgstr ""
30170
30171 #. type: textblock
30172 #: ../tools/virt-make-fs.pl:210
30173 msgid ""
30174 "Note that virt-make-fs estimates free space, and therefore will not produce "
30175 "filesystems containing precisely the free space requested.  (It is much more "
30176 "expensive and time-consuming to produce a filesystem which has precisely the "
30177 "desired free space)."
30178 msgstr ""
30179
30180 #. type: =item
30181 #: ../tools/virt-make-fs.pl:219
30182 msgid "B<--format=E<lt>fmtE<gt>>"
30183 msgstr ""
30184
30185 #. type: =item
30186 #: ../tools/virt-make-fs.pl:221
30187 msgid "B<-F E<lt>fmtE<gt>>"
30188 msgstr ""
30189
30190 #. type: textblock
30191 #: ../tools/virt-make-fs.pl:223
30192 msgid "Choose the output disk image format."
30193 msgstr ""
30194
30195 #. type: textblock
30196 #: ../tools/virt-make-fs.pl:225
30197 msgid "The default is C<raw> (raw disk image)."
30198 msgstr ""
30199
30200 #. type: textblock
30201 #: ../tools/virt-make-fs.pl:227
30202 msgid ""
30203 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
30204 "that would really make sense here is C<qcow2>."
30205 msgstr ""
30206
30207 #. type: =item
30208 #: ../tools/virt-make-fs.pl:234
30209 msgid "B<--type=E<lt>fsE<gt>>"
30210 msgstr ""
30211
30212 #. type: =item
30213 #: ../tools/virt-make-fs.pl:236
30214 msgid "B<-t E<lt>fsE<gt>>"
30215 msgstr ""
30216
30217 #. type: textblock
30218 #: ../tools/virt-make-fs.pl:238
30219 msgid "Choose the output filesystem type."
30220 msgstr ""
30221
30222 #. type: textblock
30223 #: ../tools/virt-make-fs.pl:240
30224 msgid "The default is C<ext2>."
30225 msgstr ""
30226
30227 #. type: textblock
30228 #: ../tools/virt-make-fs.pl:242
30229 msgid ""
30230 "Any filesystem which is supported read-write by libguestfs can be used here."
30231 msgstr ""
30232
30233 #. type: =item
30234 #: ../tools/virt-make-fs.pl:249
30235 msgid "B<--partition>"
30236 msgstr ""
30237
30238 #. type: =item
30239 #: ../tools/virt-make-fs.pl:251
30240 msgid "B<--partition=E<lt>parttypeE<gt>>"
30241 msgstr ""
30242
30243 #. type: textblock
30244 #: ../tools/virt-make-fs.pl:253
30245 msgid ""
30246 "If specified, this flag adds an MBR partition table to the output disk image."
30247 msgstr ""
30248
30249 #. type: textblock
30250 #: ../tools/virt-make-fs.pl:256
30251 msgid ""
30252 "You can change the partition table type, eg. I<--partition=gpt> for large "
30253 "disks."
30254 msgstr ""
30255
30256 #. type: textblock
30257 #: ../tools/virt-make-fs.pl:259
30258 msgid ""
30259 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
30260 "might consider the next parameter to be the partition type.  For example:"
30261 msgstr ""
30262
30263 #. type: verbatim
30264 #: ../tools/virt-make-fs.pl:263
30265 #, no-wrap
30266 msgid ""
30267 " virt-make-fs --partition input.tar ...\n"
30268 "\n"
30269 msgstr ""
30270
30271 #. type: textblock
30272 #: ../tools/virt-make-fs.pl:265
30273 msgid ""
30274 "would cause virt-make-fs to think you wanted to use a partition type of "
30275 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
30276 "dash) between options and the input file argument:"
30277 msgstr ""
30278
30279 #. type: verbatim
30280 #: ../tools/virt-make-fs.pl:269
30281 #, no-wrap
30282 msgid ""
30283 " virt-make-fs --partition -- input.tar ...\n"
30284 "\n"
30285 msgstr ""
30286
30287 #. type: textblock
30288 #: ../tools/virt-make-fs.pl:541
30289 msgid ""
30290 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
30291 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
30292 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
30293 msgstr ""
30294
30295 #. type: verbatim
30296 #: ../tools/virt-make-fs.pl:558
30297 #, no-wrap
30298 msgid ""
30299 " export LIBGUESTFS_DEBUG=1\n"
30300 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
30301 "\n"
30302 msgstr ""
30303
30304 #. type: textblock
30305 #: ../tools/virt-make-fs.pl:561
30306 msgid ""
30307 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
30308 "redhat.com/>"
30309 msgstr ""
30310
30311 #. type: textblock
30312 #: ../tools/virt-list-partitions.pl:32
30313 msgid ""
30314 "virt-list-partitions - List partitions in a virtual machine or disk image"
30315 msgstr ""
30316
30317 #. type: verbatim
30318 #: ../tools/virt-list-partitions.pl:36
30319 #, no-wrap
30320 msgid ""
30321 " virt-list-partitions [--options] domname\n"
30322 "\n"
30323 msgstr ""
30324
30325 #. type: verbatim
30326 #: ../tools/virt-list-partitions.pl:38
30327 #, no-wrap
30328 msgid ""
30329 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
30330 "\n"
30331 msgstr ""
30332
30333 #. type: textblock
30334 #: ../tools/virt-list-partitions.pl:45
30335 msgid ""
30336 "C<virt-list-partitions> is a command line tool to list the partitions that "
30337 "are contained in a virtual machine or disk image.  It is mainly useful as a "
30338 "first step to using L<virt-resize(1)>."
30339 msgstr ""
30340
30341 #. type: textblock
30342 #: ../tools/virt-list-partitions.pl:50
30343 msgid ""
30344 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
30345 "functionality.  For more complex cases you should look at the L<guestfish(1)"
30346 "> tool."
30347 msgstr ""
30348
30349 #. type: =item
30350 #: ../tools/virt-list-partitions.pl:107
30351 msgid "B<-h> | B<--human-readable>"
30352 msgstr ""
30353
30354 #. type: textblock
30355 #: ../tools/virt-list-partitions.pl:109
30356 msgid "Show sizes in human-readable form (eg. \"1G\")."
30357 msgstr ""
30358
30359 #. type: textblock
30360 #: ../tools/virt-list-partitions.pl:117
30361 msgid ""
30362 "With this option, C<virt-list-partitions> displays the type and size of each "
30363 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
30364 msgstr ""
30365
30366 #. type: =item
30367 #: ../tools/virt-list-partitions.pl:124
30368 msgid "B<-t> | B<--total>"
30369 msgstr ""
30370
30371 #. type: textblock
30372 #: ../tools/virt-list-partitions.pl:126
30373 msgid ""
30374 "Display the total size of each block device (as a separate row or rows)."
30375 msgstr ""
30376
30377 #. type: textblock
30378 #: ../tools/virt-list-partitions.pl:259
30379 msgid ""
30380 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
30381 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
30382 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30383 msgstr ""
30384
30385 #. type: textblock
30386 #: ../tools/virt-list-partitions.pl:275
30387 msgid "Copyright (C) 2009-2010 Red Hat Inc."
30388 msgstr ""